@archieai/ui 1.2.3 → 1.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("react/jsx-runtime"),V=require("react"),ye=require("framer-motion"),p=require("./Search-jJp9VWfl.cjs"),Wo=require("@radix-ui/react-tabs"),s0=require("sonner"),Xo=require("@radix-ui/react-tooltip"),Ln=require("react-dom");function Ot(r){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const t in r)if(t!=="default"){const a=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(e,t,a.get?a:{enumerable:!0,get:()=>r[t]})}}return e.default=r,Object.freeze(e)}const T=Ot(V),R0=Ot(Wo),D0=Ot(Xo),Yo=Ot(Ln);function jn(r){var e,t,a="";if(typeof r=="string"||typeof r=="number")a+=r;else if(typeof r=="object")if(Array.isArray(r)){var n=r.length;for(e=0;e<n;e++)r[e]&&(t=jn(r[e]))&&(a&&(a+=" "),a+=t)}else for(t in r)r[t]&&(a&&(a+=" "),a+=t);return a}function In(){for(var r,e,t=0,a="",n=arguments.length;t<n;t++)(r=arguments[t])&&(e=jn(r))&&(a&&(a+=" "),a+=e);return a}const Hr="-",Zo=r=>{const e=Jo(r),{conflictingClassGroups:t,conflictingClassGroupModifiers:a}=r;return{getClassGroupId:o=>{const l=o.split(Hr);return l[0]===""&&l.length!==1&&l.shift(),Pn(l,e)||Ko(o)},getConflictingClassGroupIds:(o,l)=>{const u=t[o]||[];return l&&a[o]?[...u,...a[o]]:u}}},Pn=(r,e)=>{var o;if(r.length===0)return e.classGroupId;const t=r[0],a=e.nextPart.get(t),n=a?Pn(r.slice(1),a):void 0;if(n)return n;if(e.validators.length===0)return;const s=r.join(Hr);return(o=e.validators.find(({validator:l})=>l(s)))==null?void 0:o.classGroupId},wa=/^\[(.+)\]$/,Ko=r=>{if(wa.test(r)){const e=wa.exec(r)[1],t=e==null?void 0:e.substring(0,e.indexOf(":"));if(t)return"arbitrary.."+t}},Jo=r=>{const{theme:e,classGroups:t}=r,a={nextPart:new Map,validators:[]};for(const n in t)Cr(t[n],a,n,e);return a},Cr=(r,e,t,a)=>{r.forEach(n=>{if(typeof n=="string"){const s=n===""?e:Sa(e,n);s.classGroupId=t;return}if(typeof n=="function"){if(Qo(n)){Cr(n(a),e,t,a);return}e.validators.push({validator:n,classGroupId:t});return}Object.entries(n).forEach(([s,o])=>{Cr(o,Sa(e,s),t,a)})})},Sa=(r,e)=>{let t=r;return e.split(Hr).forEach(a=>{t.nextPart.has(a)||t.nextPart.set(a,{nextPart:new Map,validators:[]}),t=t.nextPart.get(a)}),t},Qo=r=>r.isThemeGetter,ei=r=>{if(r<1)return{get:()=>{},set:()=>{}};let e=0,t=new Map,a=new Map;const n=(s,o)=>{t.set(s,o),e++,e>r&&(e=0,a=t,t=new Map)};return{get(s){let o=t.get(s);if(o!==void 0)return o;if((o=a.get(s))!==void 0)return n(s,o),o},set(s,o){t.has(s)?t.set(s,o):n(s,o)}}},Mr="!",Tr=":",ti=Tr.length,ri=r=>{const{prefix:e,experimentalParseClassName:t}=r;let a=n=>{const s=[];let o=0,l=0,u=0,d;for(let M=0;M<n.length;M++){let k=n[M];if(o===0&&l===0){if(k===Tr){s.push(n.slice(u,M)),u=M+ti;continue}if(k==="/"){d=M;continue}}k==="["?o++:k==="]"?o--:k==="("?l++:k===")"&&l--}const f=s.length===0?n:n.substring(u),g=ai(f),x=g!==f,w=d&&d>u?d-u:void 0;return{modifiers:s,hasImportantModifier:x,baseClassName:g,maybePostfixModifierPosition:w}};if(e){const n=e+Tr,s=a;a=o=>o.startsWith(n)?s(o.substring(n.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:o,maybePostfixModifierPosition:void 0}}if(t){const n=a;a=s=>t({className:s,parseClassName:n})}return a},ai=r=>r.endsWith(Mr)?r.substring(0,r.length-1):r.startsWith(Mr)?r.substring(1):r,ni=r=>{const e=Object.fromEntries(r.orderSensitiveModifiers.map(a=>[a,!0]));return a=>{if(a.length<=1)return a;const n=[];let s=[];return a.forEach(o=>{o[0]==="["||e[o]?(n.push(...s.sort(),o),s=[]):s.push(o)}),n.push(...s.sort()),n}},si=r=>({cache:ei(r.cacheSize),parseClassName:ri(r),sortModifiers:ni(r),...Zo(r)}),oi=/\s+/,ii=(r,e)=>{const{parseClassName:t,getClassGroupId:a,getConflictingClassGroupIds:n,sortModifiers:s}=e,o=[],l=r.trim().split(oi);let u="";for(let d=l.length-1;d>=0;d-=1){const f=l[d],{isExternal:g,modifiers:x,hasImportantModifier:w,baseClassName:M,maybePostfixModifierPosition:k}=t(f);if(g){u=f+(u.length>0?" "+u:u);continue}let A=!!k,N=a(A?M.substring(0,k):M);if(!N){if(!A){u=f+(u.length>0?" "+u:u);continue}if(N=a(M),!N){u=f+(u.length>0?" "+u:u);continue}A=!1}const E=s(x).join(":"),R=w?E+Mr:E,P=R+N;if(o.includes(P))continue;o.push(P);const O=n(N,A);for(let Y=0;Y<O.length;++Y){const q=O[Y];o.push(R+q)}u=f+(u.length>0?" "+u:u)}return u};function li(){let r=0,e,t,a="";for(;r<arguments.length;)(e=arguments[r++])&&(t=On(e))&&(a&&(a+=" "),a+=t);return a}const On=r=>{if(typeof r=="string")return r;let e,t="";for(let a=0;a<r.length;a++)r[a]&&(e=On(r[a]))&&(t&&(t+=" "),t+=e);return t};function ci(r,...e){let t,a,n,s=o;function o(u){const d=e.reduce((f,g)=>g(f),r());return t=si(d),a=t.cache.get,n=t.cache.set,s=l,l(u)}function l(u){const d=a(u);if(d)return d;const f=ii(u,t);return n(u,f),f}return function(){return s(li.apply(null,arguments))}}const ke=r=>{const e=t=>t[r]||[];return e.isThemeGetter=!0,e},Fn=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,qn=/^\((?:(\w[\w-]*):)?(.+)\)$/i,ui=/^\d+\/\d+$/,di=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,mi=/\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$/,hi=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,fi=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,pi=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,j0=r=>ui.test(r),ee=r=>!!r&&!Number.isNaN(Number(r)),p0=r=>!!r&&Number.isInteger(Number(r)),Kt=r=>r.endsWith("%")&&ee(r.slice(0,-1)),a0=r=>di.test(r),vi=()=>!0,gi=r=>mi.test(r)&&!hi.test(r),Hn=()=>!1,bi=r=>fi.test(r),yi=r=>pi.test(r),xi=r=>!U(r)&&!$(r),wi=r=>$0(r,Gn,Hn),U=r=>Fn.test(r),T0=r=>$0(r,Un,gi),Jt=r=>$0(r,Ti,ee),ka=r=>$0(r,Vn,Hn),Si=r=>$0(r,_n,yi),ct=r=>$0(r,$n,bi),$=r=>qn.test(r),Z0=r=>W0(r,Un),ki=r=>W0(r,zi),Ca=r=>W0(r,Vn),Ci=r=>W0(r,Gn),Mi=r=>W0(r,_n),ut=r=>W0(r,$n,!0),$0=(r,e,t)=>{const a=Fn.exec(r);return a?a[1]?e(a[1]):t(a[2]):!1},W0=(r,e,t=!1)=>{const a=qn.exec(r);return a?a[1]?e(a[1]):t:!1},Vn=r=>r==="position"||r==="percentage",_n=r=>r==="image"||r==="url",Gn=r=>r==="length"||r==="size"||r==="bg-size",Un=r=>r==="length",Ti=r=>r==="number",zi=r=>r==="family-name",$n=r=>r==="shadow",Ai=()=>{const r=ke("color"),e=ke("font"),t=ke("text"),a=ke("font-weight"),n=ke("tracking"),s=ke("leading"),o=ke("breakpoint"),l=ke("container"),u=ke("spacing"),d=ke("radius"),f=ke("shadow"),g=ke("inset-shadow"),x=ke("text-shadow"),w=ke("drop-shadow"),M=ke("blur"),k=ke("perspective"),A=ke("aspect"),N=ke("ease"),E=ke("animate"),R=()=>["auto","avoid","all","avoid-page","page","left","right","column"],P=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],O=()=>[...P(),$,U],Y=()=>["auto","hidden","clip","visible","scroll"],q=()=>["auto","contain","none"],j=()=>[$,U,u],_=()=>[j0,"full","auto",...j()],le=()=>[p0,"none","subgrid",$,U],pe=()=>["auto",{span:["full",p0,$,U]},p0,$,U],ae=()=>[p0,"auto",$,U],be=()=>["auto","min","max","fr",$,U],ne=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],de=()=>["start","end","center","stretch","center-safe","end-safe"],ce=()=>["auto",...j()],Me=()=>[j0,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...j()],X=()=>[r,$,U],t0=()=>[...P(),Ca,ka,{position:[$,U]}],Be=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Te=()=>["auto","cover","contain",Ci,wi,{size:[$,U]}],we=()=>[Kt,Z0,T0],me=()=>["","none","full",d,$,U],Se=()=>["",ee,Z0,T0],Le=()=>["solid","dashed","dotted","double"],He=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],se=()=>[ee,Kt,Ca,ka],Ve=()=>["","none",M,$,U],_e=()=>["none",ee,$,U],Ge=()=>["none",ee,$,U],M0=()=>[ee,$,U],r0=()=>[j0,"full",...j()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[a0],breakpoint:[a0],color:[vi],container:[a0],"drop-shadow":[a0],ease:["in","out","in-out"],font:[xi],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[a0],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[a0],shadow:[a0],spacing:["px",ee],text:[a0],"text-shadow":[a0],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",j0,U,$,A]}],container:["container"],columns:[{columns:[ee,U,$,l]}],"break-after":[{"break-after":R()}],"break-before":[{"break-before":R()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:O()}],overflow:[{overflow:Y()}],"overflow-x":[{"overflow-x":Y()}],"overflow-y":[{"overflow-y":Y()}],overscroll:[{overscroll:q()}],"overscroll-x":[{"overscroll-x":q()}],"overscroll-y":[{"overscroll-y":q()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:_()}],"inset-x":[{"inset-x":_()}],"inset-y":[{"inset-y":_()}],start:[{start:_()}],end:[{end:_()}],top:[{top:_()}],right:[{right:_()}],bottom:[{bottom:_()}],left:[{left:_()}],visibility:["visible","invisible","collapse"],z:[{z:[p0,"auto",$,U]}],basis:[{basis:[j0,"full","auto",l,...j()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ee,j0,"auto","initial","none",U]}],grow:[{grow:["",ee,$,U]}],shrink:[{shrink:["",ee,$,U]}],order:[{order:[p0,"first","last","none",$,U]}],"grid-cols":[{"grid-cols":le()}],"col-start-end":[{col:pe()}],"col-start":[{"col-start":ae()}],"col-end":[{"col-end":ae()}],"grid-rows":[{"grid-rows":le()}],"row-start-end":[{row:pe()}],"row-start":[{"row-start":ae()}],"row-end":[{"row-end":ae()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":be()}],"auto-rows":[{"auto-rows":be()}],gap:[{gap:j()}],"gap-x":[{"gap-x":j()}],"gap-y":[{"gap-y":j()}],"justify-content":[{justify:[...ne(),"normal"]}],"justify-items":[{"justify-items":[...de(),"normal"]}],"justify-self":[{"justify-self":["auto",...de()]}],"align-content":[{content:["normal",...ne()]}],"align-items":[{items:[...de(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...de(),{baseline:["","last"]}]}],"place-content":[{"place-content":ne()}],"place-items":[{"place-items":[...de(),"baseline"]}],"place-self":[{"place-self":["auto",...de()]}],p:[{p:j()}],px:[{px:j()}],py:[{py:j()}],ps:[{ps:j()}],pe:[{pe:j()}],pt:[{pt:j()}],pr:[{pr:j()}],pb:[{pb:j()}],pl:[{pl:j()}],m:[{m:ce()}],mx:[{mx:ce()}],my:[{my:ce()}],ms:[{ms:ce()}],me:[{me:ce()}],mt:[{mt:ce()}],mr:[{mr:ce()}],mb:[{mb:ce()}],ml:[{ml:ce()}],"space-x":[{"space-x":j()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":j()}],"space-y-reverse":["space-y-reverse"],size:[{size:Me()}],w:[{w:[l,"screen",...Me()]}],"min-w":[{"min-w":[l,"screen","none",...Me()]}],"max-w":[{"max-w":[l,"screen","none","prose",{screen:[o]},...Me()]}],h:[{h:["screen","lh",...Me()]}],"min-h":[{"min-h":["screen","lh","none",...Me()]}],"max-h":[{"max-h":["screen","lh",...Me()]}],"font-size":[{text:["base",t,Z0,T0]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[a,$,Jt]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Kt,U]}],"font-family":[{font:[ki,U,e]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[n,$,U]}],"line-clamp":[{"line-clamp":[ee,"none",$,Jt]}],leading:[{leading:[s,...j()]}],"list-image":[{"list-image":["none",$,U]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",$,U]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:X()}],"text-color":[{text:X()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Le(),"wavy"]}],"text-decoration-thickness":[{decoration:[ee,"from-font","auto",$,T0]}],"text-decoration-color":[{decoration:X()}],"underline-offset":[{"underline-offset":[ee,"auto",$,U]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:j()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",$,U]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",$,U]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:t0()}],"bg-repeat":[{bg:Be()}],"bg-size":[{bg:Te()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},p0,$,U],radial:["",$,U],conic:[p0,$,U]},Mi,Si]}],"bg-color":[{bg:X()}],"gradient-from-pos":[{from:we()}],"gradient-via-pos":[{via:we()}],"gradient-to-pos":[{to:we()}],"gradient-from":[{from:X()}],"gradient-via":[{via:X()}],"gradient-to":[{to:X()}],rounded:[{rounded:me()}],"rounded-s":[{"rounded-s":me()}],"rounded-e":[{"rounded-e":me()}],"rounded-t":[{"rounded-t":me()}],"rounded-r":[{"rounded-r":me()}],"rounded-b":[{"rounded-b":me()}],"rounded-l":[{"rounded-l":me()}],"rounded-ss":[{"rounded-ss":me()}],"rounded-se":[{"rounded-se":me()}],"rounded-ee":[{"rounded-ee":me()}],"rounded-es":[{"rounded-es":me()}],"rounded-tl":[{"rounded-tl":me()}],"rounded-tr":[{"rounded-tr":me()}],"rounded-br":[{"rounded-br":me()}],"rounded-bl":[{"rounded-bl":me()}],"border-w":[{border:Se()}],"border-w-x":[{"border-x":Se()}],"border-w-y":[{"border-y":Se()}],"border-w-s":[{"border-s":Se()}],"border-w-e":[{"border-e":Se()}],"border-w-t":[{"border-t":Se()}],"border-w-r":[{"border-r":Se()}],"border-w-b":[{"border-b":Se()}],"border-w-l":[{"border-l":Se()}],"divide-x":[{"divide-x":Se()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Se()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Le(),"hidden","none"]}],"divide-style":[{divide:[...Le(),"hidden","none"]}],"border-color":[{border:X()}],"border-color-x":[{"border-x":X()}],"border-color-y":[{"border-y":X()}],"border-color-s":[{"border-s":X()}],"border-color-e":[{"border-e":X()}],"border-color-t":[{"border-t":X()}],"border-color-r":[{"border-r":X()}],"border-color-b":[{"border-b":X()}],"border-color-l":[{"border-l":X()}],"divide-color":[{divide:X()}],"outline-style":[{outline:[...Le(),"none","hidden"]}],"outline-offset":[{"outline-offset":[ee,$,U]}],"outline-w":[{outline:["",ee,Z0,T0]}],"outline-color":[{outline:X()}],shadow:[{shadow:["","none",f,ut,ct]}],"shadow-color":[{shadow:X()}],"inset-shadow":[{"inset-shadow":["none",g,ut,ct]}],"inset-shadow-color":[{"inset-shadow":X()}],"ring-w":[{ring:Se()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:X()}],"ring-offset-w":[{"ring-offset":[ee,T0]}],"ring-offset-color":[{"ring-offset":X()}],"inset-ring-w":[{"inset-ring":Se()}],"inset-ring-color":[{"inset-ring":X()}],"text-shadow":[{"text-shadow":["none",x,ut,ct]}],"text-shadow-color":[{"text-shadow":X()}],opacity:[{opacity:[ee,$,U]}],"mix-blend":[{"mix-blend":[...He(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":He()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[ee]}],"mask-image-linear-from-pos":[{"mask-linear-from":se()}],"mask-image-linear-to-pos":[{"mask-linear-to":se()}],"mask-image-linear-from-color":[{"mask-linear-from":X()}],"mask-image-linear-to-color":[{"mask-linear-to":X()}],"mask-image-t-from-pos":[{"mask-t-from":se()}],"mask-image-t-to-pos":[{"mask-t-to":se()}],"mask-image-t-from-color":[{"mask-t-from":X()}],"mask-image-t-to-color":[{"mask-t-to":X()}],"mask-image-r-from-pos":[{"mask-r-from":se()}],"mask-image-r-to-pos":[{"mask-r-to":se()}],"mask-image-r-from-color":[{"mask-r-from":X()}],"mask-image-r-to-color":[{"mask-r-to":X()}],"mask-image-b-from-pos":[{"mask-b-from":se()}],"mask-image-b-to-pos":[{"mask-b-to":se()}],"mask-image-b-from-color":[{"mask-b-from":X()}],"mask-image-b-to-color":[{"mask-b-to":X()}],"mask-image-l-from-pos":[{"mask-l-from":se()}],"mask-image-l-to-pos":[{"mask-l-to":se()}],"mask-image-l-from-color":[{"mask-l-from":X()}],"mask-image-l-to-color":[{"mask-l-to":X()}],"mask-image-x-from-pos":[{"mask-x-from":se()}],"mask-image-x-to-pos":[{"mask-x-to":se()}],"mask-image-x-from-color":[{"mask-x-from":X()}],"mask-image-x-to-color":[{"mask-x-to":X()}],"mask-image-y-from-pos":[{"mask-y-from":se()}],"mask-image-y-to-pos":[{"mask-y-to":se()}],"mask-image-y-from-color":[{"mask-y-from":X()}],"mask-image-y-to-color":[{"mask-y-to":X()}],"mask-image-radial":[{"mask-radial":[$,U]}],"mask-image-radial-from-pos":[{"mask-radial-from":se()}],"mask-image-radial-to-pos":[{"mask-radial-to":se()}],"mask-image-radial-from-color":[{"mask-radial-from":X()}],"mask-image-radial-to-color":[{"mask-radial-to":X()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":P()}],"mask-image-conic-pos":[{"mask-conic":[ee]}],"mask-image-conic-from-pos":[{"mask-conic-from":se()}],"mask-image-conic-to-pos":[{"mask-conic-to":se()}],"mask-image-conic-from-color":[{"mask-conic-from":X()}],"mask-image-conic-to-color":[{"mask-conic-to":X()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:t0()}],"mask-repeat":[{mask:Be()}],"mask-size":[{mask:Te()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",$,U]}],filter:[{filter:["","none",$,U]}],blur:[{blur:Ve()}],brightness:[{brightness:[ee,$,U]}],contrast:[{contrast:[ee,$,U]}],"drop-shadow":[{"drop-shadow":["","none",w,ut,ct]}],"drop-shadow-color":[{"drop-shadow":X()}],grayscale:[{grayscale:["",ee,$,U]}],"hue-rotate":[{"hue-rotate":[ee,$,U]}],invert:[{invert:["",ee,$,U]}],saturate:[{saturate:[ee,$,U]}],sepia:[{sepia:["",ee,$,U]}],"backdrop-filter":[{"backdrop-filter":["","none",$,U]}],"backdrop-blur":[{"backdrop-blur":Ve()}],"backdrop-brightness":[{"backdrop-brightness":[ee,$,U]}],"backdrop-contrast":[{"backdrop-contrast":[ee,$,U]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ee,$,U]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ee,$,U]}],"backdrop-invert":[{"backdrop-invert":["",ee,$,U]}],"backdrop-opacity":[{"backdrop-opacity":[ee,$,U]}],"backdrop-saturate":[{"backdrop-saturate":[ee,$,U]}],"backdrop-sepia":[{"backdrop-sepia":["",ee,$,U]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":j()}],"border-spacing-x":[{"border-spacing-x":j()}],"border-spacing-y":[{"border-spacing-y":j()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",$,U]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[ee,"initial",$,U]}],ease:[{ease:["linear","initial",N,$,U]}],delay:[{delay:[ee,$,U]}],animate:[{animate:["none",E,$,U]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[k,$,U]}],"perspective-origin":[{"perspective-origin":O()}],rotate:[{rotate:_e()}],"rotate-x":[{"rotate-x":_e()}],"rotate-y":[{"rotate-y":_e()}],"rotate-z":[{"rotate-z":_e()}],scale:[{scale:Ge()}],"scale-x":[{"scale-x":Ge()}],"scale-y":[{"scale-y":Ge()}],"scale-z":[{"scale-z":Ge()}],"scale-3d":["scale-3d"],skew:[{skew:M0()}],"skew-x":[{"skew-x":M0()}],"skew-y":[{"skew-y":M0()}],transform:[{transform:[$,U,"","none","gpu","cpu"]}],"transform-origin":[{origin:O()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:r0()}],"translate-x":[{"translate-x":r0()}],"translate-y":[{"translate-y":r0()}],"translate-z":[{"translate-z":r0()}],"translate-none":["translate-none"],accent:[{accent:X()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:X()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",$,U]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":j()}],"scroll-mx":[{"scroll-mx":j()}],"scroll-my":[{"scroll-my":j()}],"scroll-ms":[{"scroll-ms":j()}],"scroll-me":[{"scroll-me":j()}],"scroll-mt":[{"scroll-mt":j()}],"scroll-mr":[{"scroll-mr":j()}],"scroll-mb":[{"scroll-mb":j()}],"scroll-ml":[{"scroll-ml":j()}],"scroll-p":[{"scroll-p":j()}],"scroll-px":[{"scroll-px":j()}],"scroll-py":[{"scroll-py":j()}],"scroll-ps":[{"scroll-ps":j()}],"scroll-pe":[{"scroll-pe":j()}],"scroll-pt":[{"scroll-pt":j()}],"scroll-pr":[{"scroll-pr":j()}],"scroll-pb":[{"scroll-pb":j()}],"scroll-pl":[{"scroll-pl":j()}],"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",$,U]}],fill:[{fill:["none",...X()]}],"stroke-w":[{stroke:[ee,Z0,T0,Jt]}],stroke:[{stroke:["none",...X()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Ni=ci(Ai);function G(...r){return Ni(In(r))}const Ma=r=>typeof r=="boolean"?`${r}`:r===0?"0":r,Ta=In,z=(r,e)=>t=>{var a;if((e==null?void 0:e.variants)==null)return Ta(r,t==null?void 0:t.class,t==null?void 0:t.className);const{variants:n,defaultVariants:s}=e,o=Object.keys(n).map(d=>{const f=t==null?void 0:t[d],g=s==null?void 0:s[d];if(f===null)return null;const x=Ma(f)||Ma(g);return n[d][x]}),l=t&&Object.entries(t).reduce((d,f)=>{let[g,x]=f;return x===void 0||(d[g]=x),d},{}),u=e==null||(a=e.compoundVariants)===null||a===void 0?void 0:a.reduce((d,f)=>{let{class:g,className:x,...w}=f;return Object.entries(w).every(M=>{let[k,A]=M;return Array.isArray(A)?A.includes({...s,...l}[k]):{...s,...l}[k]===A})?[...d,g,x]:d},[]);return Ta(r,o,u,t==null?void 0:t.class,t==null?void 0:t.className)},Di=z("relative inline-flex items-center justify-center shrink-0 overflow-hidden",{variants:{shape:{circular:"rounded-full",square:""},size:{small:"size-[16px]",big:"size-[32px]"}},compoundVariants:[{shape:"square",size:"small",className:"rounded-[4px]"},{shape:"square",size:"big",className:"rounded-[8px]"}],defaultVariants:{shape:"circular",size:"small"}}),Ei=z('font-["Inter",sans-serif] font-normal text-center text-[var(--color-blue-800)]',{variants:{size:{small:"text-[8px] leading-[16px]",big:"text-[16px] leading-[24px]"}},defaultVariants:{size:"small"}}),Ri=z("absolute inset-0 w-full h-full object-cover"),Bi=r=>{const e=r.trim().split(/\s+/);return e.length>=2?(e[0][0]+e[1][0]).toUpperCase():r.slice(0,2).toUpperCase()},Li=(r,e)=>`https://picsum.photos/seed/${r}/${e}/${e}`,Vr=V.forwardRef(({className:r,type:e="text",shape:t="circular",size:a="small",initials:n="AR",src:s,alt:o="Avatar",fallbackInitials:l,...u},d)=>{const[f,g]=V.useState(!1),x=V.useMemo(()=>Math.floor(Math.random()*1e3),[]),M=s||Li(x,a==="big"?64:32),k=f&&l?l:n,A=e==="image"&&!f,N=()=>{g(!0)},E={backgroundImage:"linear-gradient(90deg, rgba(21, 177, 205, 0.08) 0%, rgba(21, 177, 205, 0.08) 100%), linear-gradient(90deg, rgb(255, 255, 255) 0%, rgb(255, 255, 255) 100%)"};return h.jsx("div",{ref:d,className:G(Di({shape:t,size:a}),r),style:A?void 0:E,role:"img","aria-label":o,...u,children:A?h.jsx("img",{src:M,alt:o,className:G(Ri()),onError:N}):h.jsx("span",{className:G(Ei({size:a})),children:Bi(k)})})});Vr.displayName="Avatar";const ji=z("relative inline-flex items-center justify-center shrink-0",{variants:{size:{small:"w-2 h-2",medium:"w-3 h-3",large:"w-4 h-4"}},defaultVariants:{size:"medium"}}),Ii=z("w-full h-full rounded-full",{variants:{variant:{success:"bg-[var(--color-green-1000)]",warning:"bg-[var(--color-orange-800)]",error:"bg-[var(--color-red-1000)]",info:"bg-[var(--color-blue-800)]",neutral:"bg-[var(--color-gray-600)]"}},defaultVariants:{variant:"neutral"}}),Pi=z("absolute w-full h-full rounded-full opacity-75 animate-ping",{variants:{variant:{success:"bg-[var(--color-green-1000)]",warning:"bg-[var(--color-orange-800)]",error:"bg-[var(--color-red-1000)]",info:"bg-[var(--color-blue-800)]",neutral:"bg-[var(--color-gray-600)]"}},defaultVariants:{variant:"neutral"}}),_r=V.forwardRef(({className:r,variant:e="neutral",size:t="medium",animated:a=!1,...n},s)=>h.jsxs("div",{ref:s,className:G(ji({size:t}),r),...n,children:[a&&h.jsx("span",{className:Pi({variant:e})}),h.jsx("span",{className:Ii({variant:e})})]}));_r.displayName="StatusIndicator";const Oi={display:"typography-display",h1:"typography-h1",h2:"typography-h2",h3:"typography-h3",h4:"typography-h4",small:"typography-small",tiny:"typography-tiny","x-small":"typography-x-small","column-header":"typography-column-header",tag:"typography-tag"},Fi={display:"h1",h1:"h1",h2:"h2",h3:"h3",h4:"h4",small:"p",tiny:"p","x-small":"p","column-header":"span",tag:"span"},qi={primary:"text-[var(--color-gray-1000)]",secondary:"text-[var(--color-gray-600)]",inherit:""},Hi={thin:"font-thin",extralight:"font-extralight",light:"font-light",regular:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold",black:"font-black"},Vi={serif:"!font-heading",sans:"!font-body"},i0=({variant:r,as:e,children:t,className:a,color:n="primary",weight:s,fontFamily:o})=>{const l=e||Fi[r],u=Oi[r],d=qi[n],f=s?Hi[s]:"",g=o?Vi[o]:"";return h.jsx(l,{className:G(u,d,f,g,a),children:t})},_i={dark:"rgba(0, 6, 38, 1)",darkTeal:"rgba(2, 46, 64, 1)",teal:"rgba(21, 177, 205, 1)",lightTeal:"rgba(106, 234, 253, 1)",orange:"rgba(255, 111, 0, 1)",white:"rgba(255, 255, 255, 1)"},Gr=({size:r=256,colorVariant:e="dark",...t})=>{const a=_i[e];return h.jsxs("svg",{...t,width:r,height:r,viewBox:"0 0 256 256",fill:"none",children:[h.jsx("path",{d:"M35.2761 209.996L27.7832 218.211H11V227H79.5141V218.211H53.3838L48.1047 212.422L62.2011 175.529H138.132L151.434 212.289L146.041 218.211H120.914V227H206.306V218.211H192.664L187.404 212.441L115.029 30H79.7412L81.3306 34.872L93.5916 64.7535M46.0234 218.211H45.9098L46.9127 215.575L46.0234 218.211ZM126.496 162.633H73.9891L69.4858 157.703L97.7164 88.5402H103.223L113.383 113.951L126.269 146.182L130.923 157.818L126.515 162.652L126.496 162.633ZM131.548 159.06H131.567L133.024 162.652L131.548 159.06Z",fill:a}),h.jsx("path",{d:"M233.477 227C239.841 227 245 221.791 245 215.365C245 208.938 239.841 203.729 233.477 203.729C227.113 203.729 221.954 208.938 221.954 215.365C221.954 221.791 227.113 227 233.477 227Z",fill:a})]})};Gr.displayName="LogoA";const Gi={dark:"rgba(0, 6, 38, 1)",darkTeal:"rgba(2, 46, 64, 1)",teal:"rgba(21, 177, 205, 1)",lightTeal:"rgba(106, 234, 253, 1)",orange:"rgba(255, 111, 0, 1)",white:"rgba(255, 255, 255, 1)"},Wn=({size:r=163,colorVariant:e="dark",...t})=>{const a=Gi[e],n=603/163,s=typeof r=="number"?r:parseFloat(r),o=s*n;return h.jsxs("svg",{...t,width:o,height:s,viewBox:"0 0 603 163",fill:"none",children:[h.jsxs("g",{clipPath:"url(#clip0_full_logo)",children:[h.jsx("path",{d:"M303.686 142.03C284.282 142.03 267.966 127.819 267.966 105.332C267.966 84.0925 278.722 69.1137 300.637 67.9807L314.384 93.9439H326.694V59.4543H301.96C284.723 59.4543 270.554 65.5226 260.642 75.2972C250.537 85.2639 244.862 99.0905 244.862 114.3C244.862 142.702 267.506 163.019 293.025 163.019C314.615 163.019 330.107 148.156 332.733 127.416C326.406 136.365 315.727 142.049 303.724 142.049L303.686 142.03Z",fill:a}),h.jsx("path",{d:"M481.48 48.6811C490.204 48.6811 497.183 41.4797 497.183 32.9534C497.183 24.427 490.204 17.2256 481.48 17.2256C472.756 17.2256 465.547 24.2157 465.547 32.9534C465.547 41.691 472.526 48.6811 481.48 48.6811Z",fill:a}),h.jsx("path",{d:"M570.942 141.588C550.868 141.588 534.724 126.072 534.724 102.912V101.376H603C603 78.8691 587.949 59.4351 562.87 59.4351C536.047 59.4351 513.787 84.7838 513.787 112.533C513.787 140.282 534.513 163 561.336 163C581.622 163 598.859 150.114 602.348 126.955C594.487 137.229 583.367 141.588 570.942 141.588ZM558.94 69.9202C570.501 69.9202 578.132 79.0996 578.132 92.6381H535.606C538.654 78.005 548.049 69.9202 558.94 69.9202Z",fill:a}),h.jsx("path",{d:"M198.233 79.0995V57.2459L155.476 73.204L172.502 86.5313V148.866L168.073 153.667H146.81L84.8802 0H55.8901L57.7691 4.53204L67.8351 28.8438L19.9402 146.984L13.7856 153.667H0V160.811H56.2736V153.667H34.8187L30.4855 148.962L42.0662 118.947H104.437L115.366 148.847L110.937 153.667H90.3062V160.811H221.26V153.667H198.233V89.1622L213.725 78.0242L230.961 91.2362H240.088V59.4543H230.079C217.118 59.4543 204.847 64.6585 198.233 79.1188V79.0995ZM28.7791 153.667H28.6641L29.4885 151.516L28.7599 153.667H28.7791ZM51.7487 108.462L48.0483 104.448L71.2288 48.1818H75.7537L84.094 68.8448L94.6777 95.0577L98.4932 104.525L94.8694 108.462H51.7487ZM99.0109 105.543H99.03L100.219 108.462L99.0109 105.543Z",fill:a}),h.jsx("path",{d:"M495.668 153.667V57.2459L452.911 73.204L469.918 86.5313V148.866L465.489 153.667H443.344L438.934 148.885V91.5627C438.934 72.7816 429.328 59.4543 411.229 59.4543H407.394C392.995 59.4543 382.737 68.1919 374.895 76.2766H374.799V1.92035L328.764 16.7839L349.05 29.6695V148.866L344.64 153.667H333.404V160.811H390.253V153.667H379.229L374.819 148.866V84.3421C379.401 80.6358 385.728 76.6991 392.707 76.6991C406.014 76.6991 413.223 84.5726 413.223 98.5528V148.866L408.794 153.667H399.706V160.811H514.745V153.667H495.687H495.668Z",fill:a})]}),h.jsx("defs",{children:h.jsx("clipPath",{id:"clip0_full_logo",children:h.jsx("rect",{width:"603",height:"163",fill:"white"})})})]})};Wn.displayName="FullLogo";const Ui={dark:"rgba(0, 6, 38, 1)",darkTeal:"rgba(2, 46, 64, 1)",teal:"rgba(21, 177, 205, 1)",lightTeal:"rgba(106, 234, 253, 1)",orange:"rgba(255, 111, 0, 1)",white:"rgba(255, 255, 255, 1)"},Ur=({size:r=329,colorVariant:e="dark",animated:t=!1,animationDuration:a=2,animationDelay:n=0,...s})=>{const o=Ui[e],l=V.useId(),u=2800;return t?h.jsxs("svg",{...s,width:r,height:r,viewBox:"0 0 329 329",fill:"none",children:[h.jsx("style",{children:`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("react/jsx-runtime"),Y=require("react"),Ve=require("framer-motion"),b=require("./Search-jJp9VWfl.cjs"),D1=require("@radix-ui/react-tabs"),Bt=require("sonner"),I1=require("@radix-ui/react-tooltip"),Jl=require("react-dom");function ra(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const P=ra(Y),fr=ra(D1),hr=ra(I1),L1=ra(Jl);function es(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(r=es(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function ts(){for(var e,t,r=0,n="",a=arguments.length;r<a;r++)(e=arguments[r])&&(t=es(e))&&(n&&(n+=" "),n+=t);return n}const _i="-",R1=e=>{const t=B1(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:o=>{const l=o.split(_i);return l[0]===""&&l.length!==1&&l.shift(),rs(l,t)||P1(o)},getConflictingClassGroupIds:(o,l)=>{const s=r[o]||[];return l&&n[o]?[...s,...n[o]]:s}}},rs=(e,t)=>{var o;if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),a=n?rs(e.slice(1),n):void 0;if(a)return a;if(t.validators.length===0)return;const i=e.join(_i);return(o=t.validators.find(({validator:l})=>l(i)))==null?void 0:o.classGroupId},j0=/^\[(.+)\]$/,P1=e=>{if(j0.test(e)){const t=j0.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},B1=e=>{const{theme:t,classGroups:r}=e,n={nextPart:new Map,validators:[]};for(const a in r)hi(r[a],n,a,t);return n},hi=(e,t,r,n)=>{e.forEach(a=>{if(typeof a=="string"){const i=a===""?t:_0(t,a);i.classGroupId=r;return}if(typeof a=="function"){if(F1(a)){hi(a(n),t,r,n);return}t.validators.push({validator:a,classGroupId:r});return}Object.entries(a).forEach(([i,o])=>{hi(o,_0(t,i),r,n)})})},_0=(e,t)=>{let r=e;return t.split(_i).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},F1=e=>e.isThemeGetter,O1=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const a=(i,o)=>{r.set(i,o),t++,t>e&&(t=0,n=r,r=new Map)};return{get(i){let o=r.get(i);if(o!==void 0)return o;if((o=n.get(i))!==void 0)return a(i,o),o},set(i,o){r.has(i)?r.set(i,o):a(i,o)}}},di="!",mi=":",j1=mi.length,_1=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=a=>{const i=[];let o=0,l=0,s=0,u;for(let y=0;y<a.length;y++){let w=a[y];if(o===0&&l===0){if(w===mi){i.push(a.slice(s,y)),s=y+j1;continue}if(w==="/"){u=y;continue}}w==="["?o++:w==="]"?o--:w==="("?l++:w===")"&&l--}const c=i.length===0?a:a.substring(s),h=q1(c),m=h!==c,p=u&&u>s?u-s:void 0;return{modifiers:i,hasImportantModifier:m,baseClassName:h,maybePostfixModifierPosition:p}};if(t){const a=t+mi,i=n;n=o=>o.startsWith(a)?i(o.substring(a.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:o,maybePostfixModifierPosition:void 0}}if(r){const a=n;n=i=>r({className:i,parseClassName:a})}return n},q1=e=>e.endsWith(di)?e.substring(0,e.length-1):e.startsWith(di)?e.substring(1):e,H1=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(n=>[n,!0]));return n=>{if(n.length<=1)return n;const a=[];let i=[];return n.forEach(o=>{o[0]==="["||t[o]?(a.push(...i.sort(),o),i=[]):i.push(o)}),a.push(...i.sort()),a}},V1=e=>({cache:O1(e.cacheSize),parseClassName:_1(e),sortModifiers:H1(e),...R1(e)}),$1=/\s+/,U1=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:a,sortModifiers:i}=t,o=[],l=e.trim().split($1);let s="";for(let u=l.length-1;u>=0;u-=1){const c=l[u],{isExternal:h,modifiers:m,hasImportantModifier:p,baseClassName:y,maybePostfixModifierPosition:w}=r(c);if(h){s=c+(s.length>0?" "+s:s);continue}let C=!!w,k=n(C?y.substring(0,w):y);if(!k){if(!C){s=c+(s.length>0?" "+s:s);continue}if(k=n(y),!k){s=c+(s.length>0?" "+s:s);continue}C=!1}const A=i(m).join(":"),E=p?A+di:A,B=E+k;if(o.includes(B))continue;o.push(B);const F=a(k,C);for(let D=0;D<F.length;++D){const _=F[D];o.push(E+_)}s=c+(s.length>0?" "+s:s)}return s};function G1(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=ns(t))&&(n&&(n+=" "),n+=r);return n}const ns=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=ns(e[n]))&&(r&&(r+=" "),r+=t);return r};function W1(e,...t){let r,n,a,i=o;function o(s){const u=t.reduce((c,h)=>h(c),e());return r=V1(u),n=r.cache.get,a=r.cache.set,i=l,l(s)}function l(s){const u=n(s);if(u)return u;const c=U1(s,r);return a(s,c),c}return function(){return i(G1.apply(null,arguments))}}const Ue=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},as=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,is=/^\((?:(\w[\w-]*):)?(.+)\)$/i,X1=/^\d+\/\d+$/,Y1=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,K1=/\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$/,Z1=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Q1=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,J1=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,kr=e=>X1.test(e),ge=e=>!!e&&!Number.isNaN(Number(e)),Gt=e=>!!e&&Number.isInteger(Number(e)),ya=e=>e.endsWith("%")&&ge(e.slice(0,-1)),Rt=e=>Y1.test(e),eh=()=>!0,th=e=>K1.test(e)&&!Z1.test(e),os=()=>!1,rh=e=>Q1.test(e),nh=e=>J1.test(e),ah=e=>!ae(e)&&!ie(e),ih=e=>Or(e,us,os),ae=e=>as.test(e),or=e=>Or(e,cs,th),xa=e=>Or(e,ch,ge),q0=e=>Or(e,ls,os),oh=e=>Or(e,ss,nh),bn=e=>Or(e,hs,rh),ie=e=>is.test(e),Wr=e=>jr(e,cs),lh=e=>jr(e,hh),H0=e=>jr(e,ls),sh=e=>jr(e,us),uh=e=>jr(e,ss),yn=e=>jr(e,hs,!0),Or=(e,t,r)=>{const n=as.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},jr=(e,t,r=!1)=>{const n=is.exec(e);return n?n[1]?t(n[1]):r:!1},ls=e=>e==="position"||e==="percentage",ss=e=>e==="image"||e==="url",us=e=>e==="length"||e==="size"||e==="bg-size",cs=e=>e==="length",ch=e=>e==="number",hh=e=>e==="family-name",hs=e=>e==="shadow",dh=()=>{const e=Ue("color"),t=Ue("font"),r=Ue("text"),n=Ue("font-weight"),a=Ue("tracking"),i=Ue("leading"),o=Ue("breakpoint"),l=Ue("container"),s=Ue("spacing"),u=Ue("radius"),c=Ue("shadow"),h=Ue("inset-shadow"),m=Ue("text-shadow"),p=Ue("drop-shadow"),y=Ue("blur"),w=Ue("perspective"),C=Ue("aspect"),k=Ue("ease"),A=Ue("animate"),E=()=>["auto","avoid","all","avoid-page","page","left","right","column"],B=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],F=()=>[...B(),ie,ae],D=()=>["auto","hidden","clip","visible","scroll"],_=()=>["auto","contain","none"],O=()=>[ie,ae,s],H=()=>[kr,"full","auto",...O()],L=()=>[Gt,"none","subgrid",ie,ae],K=()=>["auto",{span:["full",Gt,ie,ae]},Gt,ie,ae],G=()=>[Gt,"auto",ie,ae],ce=()=>["auto","min","max","fr",ie,ae],J=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],V=()=>["start","end","center","stretch","center-safe","end-safe"],le=()=>["auto",...O()],pe=()=>[kr,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...O()],Q=()=>[e,ie,ae],Ee=()=>[...B(),H0,q0,{position:[ie,ae]}],M=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Me=()=>["auto","cover","contain",sh,ih,{size:[ie,ae]}],ke=()=>[ya,Wr,or],z=()=>["","none","full",u,ie,ae],xe=()=>["",ge,Wr,or],Le=()=>["solid","dashed","dotted","double"],Te=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ye=()=>[ge,ya,H0,q0],Pe=()=>["","none",y,ie,ae],_e=()=>["none",ge,ie,ae],qe=()=>["none",ge,ie,ae],Ke=()=>[ge,ie,ae],tt=()=>[kr,"full",...O()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Rt],breakpoint:[Rt],color:[eh],container:[Rt],"drop-shadow":[Rt],ease:["in","out","in-out"],font:[ah],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Rt],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Rt],shadow:[Rt],spacing:["px",ge],text:[Rt],"text-shadow":[Rt],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",kr,ae,ie,C]}],container:["container"],columns:[{columns:[ge,ae,ie,l]}],"break-after":[{"break-after":E()}],"break-before":[{"break-before":E()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:F()}],overflow:[{overflow:D()}],"overflow-x":[{"overflow-x":D()}],"overflow-y":[{"overflow-y":D()}],overscroll:[{overscroll:_()}],"overscroll-x":[{"overscroll-x":_()}],"overscroll-y":[{"overscroll-y":_()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:H()}],"inset-x":[{"inset-x":H()}],"inset-y":[{"inset-y":H()}],start:[{start:H()}],end:[{end:H()}],top:[{top:H()}],right:[{right:H()}],bottom:[{bottom:H()}],left:[{left:H()}],visibility:["visible","invisible","collapse"],z:[{z:[Gt,"auto",ie,ae]}],basis:[{basis:[kr,"full","auto",l,...O()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ge,kr,"auto","initial","none",ae]}],grow:[{grow:["",ge,ie,ae]}],shrink:[{shrink:["",ge,ie,ae]}],order:[{order:[Gt,"first","last","none",ie,ae]}],"grid-cols":[{"grid-cols":L()}],"col-start-end":[{col:K()}],"col-start":[{"col-start":G()}],"col-end":[{"col-end":G()}],"grid-rows":[{"grid-rows":L()}],"row-start-end":[{row:K()}],"row-start":[{"row-start":G()}],"row-end":[{"row-end":G()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ce()}],"auto-rows":[{"auto-rows":ce()}],gap:[{gap:O()}],"gap-x":[{"gap-x":O()}],"gap-y":[{"gap-y":O()}],"justify-content":[{justify:[...J(),"normal"]}],"justify-items":[{"justify-items":[...V(),"normal"]}],"justify-self":[{"justify-self":["auto",...V()]}],"align-content":[{content:["normal",...J()]}],"align-items":[{items:[...V(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...V(),{baseline:["","last"]}]}],"place-content":[{"place-content":J()}],"place-items":[{"place-items":[...V(),"baseline"]}],"place-self":[{"place-self":["auto",...V()]}],p:[{p:O()}],px:[{px:O()}],py:[{py:O()}],ps:[{ps:O()}],pe:[{pe:O()}],pt:[{pt:O()}],pr:[{pr:O()}],pb:[{pb:O()}],pl:[{pl:O()}],m:[{m:le()}],mx:[{mx:le()}],my:[{my:le()}],ms:[{ms:le()}],me:[{me:le()}],mt:[{mt:le()}],mr:[{mr:le()}],mb:[{mb:le()}],ml:[{ml:le()}],"space-x":[{"space-x":O()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":O()}],"space-y-reverse":["space-y-reverse"],size:[{size:pe()}],w:[{w:[l,"screen",...pe()]}],"min-w":[{"min-w":[l,"screen","none",...pe()]}],"max-w":[{"max-w":[l,"screen","none","prose",{screen:[o]},...pe()]}],h:[{h:["screen","lh",...pe()]}],"min-h":[{"min-h":["screen","lh","none",...pe()]}],"max-h":[{"max-h":["screen","lh",...pe()]}],"font-size":[{text:["base",r,Wr,or]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,ie,xa]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ya,ae]}],"font-family":[{font:[lh,ae,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[a,ie,ae]}],"line-clamp":[{"line-clamp":[ge,"none",ie,xa]}],leading:[{leading:[i,...O()]}],"list-image":[{"list-image":["none",ie,ae]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ie,ae]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:Q()}],"text-color":[{text:Q()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Le(),"wavy"]}],"text-decoration-thickness":[{decoration:[ge,"from-font","auto",ie,or]}],"text-decoration-color":[{decoration:Q()}],"underline-offset":[{"underline-offset":[ge,"auto",ie,ae]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:O()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ie,ae]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ie,ae]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:Ee()}],"bg-repeat":[{bg:M()}],"bg-size":[{bg:Me()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Gt,ie,ae],radial:["",ie,ae],conic:[Gt,ie,ae]},uh,oh]}],"bg-color":[{bg:Q()}],"gradient-from-pos":[{from:ke()}],"gradient-via-pos":[{via:ke()}],"gradient-to-pos":[{to:ke()}],"gradient-from":[{from:Q()}],"gradient-via":[{via:Q()}],"gradient-to":[{to:Q()}],rounded:[{rounded:z()}],"rounded-s":[{"rounded-s":z()}],"rounded-e":[{"rounded-e":z()}],"rounded-t":[{"rounded-t":z()}],"rounded-r":[{"rounded-r":z()}],"rounded-b":[{"rounded-b":z()}],"rounded-l":[{"rounded-l":z()}],"rounded-ss":[{"rounded-ss":z()}],"rounded-se":[{"rounded-se":z()}],"rounded-ee":[{"rounded-ee":z()}],"rounded-es":[{"rounded-es":z()}],"rounded-tl":[{"rounded-tl":z()}],"rounded-tr":[{"rounded-tr":z()}],"rounded-br":[{"rounded-br":z()}],"rounded-bl":[{"rounded-bl":z()}],"border-w":[{border:xe()}],"border-w-x":[{"border-x":xe()}],"border-w-y":[{"border-y":xe()}],"border-w-s":[{"border-s":xe()}],"border-w-e":[{"border-e":xe()}],"border-w-t":[{"border-t":xe()}],"border-w-r":[{"border-r":xe()}],"border-w-b":[{"border-b":xe()}],"border-w-l":[{"border-l":xe()}],"divide-x":[{"divide-x":xe()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":xe()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Le(),"hidden","none"]}],"divide-style":[{divide:[...Le(),"hidden","none"]}],"border-color":[{border:Q()}],"border-color-x":[{"border-x":Q()}],"border-color-y":[{"border-y":Q()}],"border-color-s":[{"border-s":Q()}],"border-color-e":[{"border-e":Q()}],"border-color-t":[{"border-t":Q()}],"border-color-r":[{"border-r":Q()}],"border-color-b":[{"border-b":Q()}],"border-color-l":[{"border-l":Q()}],"divide-color":[{divide:Q()}],"outline-style":[{outline:[...Le(),"none","hidden"]}],"outline-offset":[{"outline-offset":[ge,ie,ae]}],"outline-w":[{outline:["",ge,Wr,or]}],"outline-color":[{outline:Q()}],shadow:[{shadow:["","none",c,yn,bn]}],"shadow-color":[{shadow:Q()}],"inset-shadow":[{"inset-shadow":["none",h,yn,bn]}],"inset-shadow-color":[{"inset-shadow":Q()}],"ring-w":[{ring:xe()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:Q()}],"ring-offset-w":[{"ring-offset":[ge,or]}],"ring-offset-color":[{"ring-offset":Q()}],"inset-ring-w":[{"inset-ring":xe()}],"inset-ring-color":[{"inset-ring":Q()}],"text-shadow":[{"text-shadow":["none",m,yn,bn]}],"text-shadow-color":[{"text-shadow":Q()}],opacity:[{opacity:[ge,ie,ae]}],"mix-blend":[{"mix-blend":[...Te(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Te()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[ge]}],"mask-image-linear-from-pos":[{"mask-linear-from":ye()}],"mask-image-linear-to-pos":[{"mask-linear-to":ye()}],"mask-image-linear-from-color":[{"mask-linear-from":Q()}],"mask-image-linear-to-color":[{"mask-linear-to":Q()}],"mask-image-t-from-pos":[{"mask-t-from":ye()}],"mask-image-t-to-pos":[{"mask-t-to":ye()}],"mask-image-t-from-color":[{"mask-t-from":Q()}],"mask-image-t-to-color":[{"mask-t-to":Q()}],"mask-image-r-from-pos":[{"mask-r-from":ye()}],"mask-image-r-to-pos":[{"mask-r-to":ye()}],"mask-image-r-from-color":[{"mask-r-from":Q()}],"mask-image-r-to-color":[{"mask-r-to":Q()}],"mask-image-b-from-pos":[{"mask-b-from":ye()}],"mask-image-b-to-pos":[{"mask-b-to":ye()}],"mask-image-b-from-color":[{"mask-b-from":Q()}],"mask-image-b-to-color":[{"mask-b-to":Q()}],"mask-image-l-from-pos":[{"mask-l-from":ye()}],"mask-image-l-to-pos":[{"mask-l-to":ye()}],"mask-image-l-from-color":[{"mask-l-from":Q()}],"mask-image-l-to-color":[{"mask-l-to":Q()}],"mask-image-x-from-pos":[{"mask-x-from":ye()}],"mask-image-x-to-pos":[{"mask-x-to":ye()}],"mask-image-x-from-color":[{"mask-x-from":Q()}],"mask-image-x-to-color":[{"mask-x-to":Q()}],"mask-image-y-from-pos":[{"mask-y-from":ye()}],"mask-image-y-to-pos":[{"mask-y-to":ye()}],"mask-image-y-from-color":[{"mask-y-from":Q()}],"mask-image-y-to-color":[{"mask-y-to":Q()}],"mask-image-radial":[{"mask-radial":[ie,ae]}],"mask-image-radial-from-pos":[{"mask-radial-from":ye()}],"mask-image-radial-to-pos":[{"mask-radial-to":ye()}],"mask-image-radial-from-color":[{"mask-radial-from":Q()}],"mask-image-radial-to-color":[{"mask-radial-to":Q()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":B()}],"mask-image-conic-pos":[{"mask-conic":[ge]}],"mask-image-conic-from-pos":[{"mask-conic-from":ye()}],"mask-image-conic-to-pos":[{"mask-conic-to":ye()}],"mask-image-conic-from-color":[{"mask-conic-from":Q()}],"mask-image-conic-to-color":[{"mask-conic-to":Q()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Ee()}],"mask-repeat":[{mask:M()}],"mask-size":[{mask:Me()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ie,ae]}],filter:[{filter:["","none",ie,ae]}],blur:[{blur:Pe()}],brightness:[{brightness:[ge,ie,ae]}],contrast:[{contrast:[ge,ie,ae]}],"drop-shadow":[{"drop-shadow":["","none",p,yn,bn]}],"drop-shadow-color":[{"drop-shadow":Q()}],grayscale:[{grayscale:["",ge,ie,ae]}],"hue-rotate":[{"hue-rotate":[ge,ie,ae]}],invert:[{invert:["",ge,ie,ae]}],saturate:[{saturate:[ge,ie,ae]}],sepia:[{sepia:["",ge,ie,ae]}],"backdrop-filter":[{"backdrop-filter":["","none",ie,ae]}],"backdrop-blur":[{"backdrop-blur":Pe()}],"backdrop-brightness":[{"backdrop-brightness":[ge,ie,ae]}],"backdrop-contrast":[{"backdrop-contrast":[ge,ie,ae]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ge,ie,ae]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ge,ie,ae]}],"backdrop-invert":[{"backdrop-invert":["",ge,ie,ae]}],"backdrop-opacity":[{"backdrop-opacity":[ge,ie,ae]}],"backdrop-saturate":[{"backdrop-saturate":[ge,ie,ae]}],"backdrop-sepia":[{"backdrop-sepia":["",ge,ie,ae]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":O()}],"border-spacing-x":[{"border-spacing-x":O()}],"border-spacing-y":[{"border-spacing-y":O()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ie,ae]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[ge,"initial",ie,ae]}],ease:[{ease:["linear","initial",k,ie,ae]}],delay:[{delay:[ge,ie,ae]}],animate:[{animate:["none",A,ie,ae]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[w,ie,ae]}],"perspective-origin":[{"perspective-origin":F()}],rotate:[{rotate:_e()}],"rotate-x":[{"rotate-x":_e()}],"rotate-y":[{"rotate-y":_e()}],"rotate-z":[{"rotate-z":_e()}],scale:[{scale:qe()}],"scale-x":[{"scale-x":qe()}],"scale-y":[{"scale-y":qe()}],"scale-z":[{"scale-z":qe()}],"scale-3d":["scale-3d"],skew:[{skew:Ke()}],"skew-x":[{"skew-x":Ke()}],"skew-y":[{"skew-y":Ke()}],transform:[{transform:[ie,ae,"","none","gpu","cpu"]}],"transform-origin":[{origin:F()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:tt()}],"translate-x":[{"translate-x":tt()}],"translate-y":[{"translate-y":tt()}],"translate-z":[{"translate-z":tt()}],"translate-none":["translate-none"],accent:[{accent:Q()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:Q()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ie,ae]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":O()}],"scroll-mx":[{"scroll-mx":O()}],"scroll-my":[{"scroll-my":O()}],"scroll-ms":[{"scroll-ms":O()}],"scroll-me":[{"scroll-me":O()}],"scroll-mt":[{"scroll-mt":O()}],"scroll-mr":[{"scroll-mr":O()}],"scroll-mb":[{"scroll-mb":O()}],"scroll-ml":[{"scroll-ml":O()}],"scroll-p":[{"scroll-p":O()}],"scroll-px":[{"scroll-px":O()}],"scroll-py":[{"scroll-py":O()}],"scroll-ps":[{"scroll-ps":O()}],"scroll-pe":[{"scroll-pe":O()}],"scroll-pt":[{"scroll-pt":O()}],"scroll-pr":[{"scroll-pr":O()}],"scroll-pb":[{"scroll-pb":O()}],"scroll-pl":[{"scroll-pl":O()}],"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",ie,ae]}],fill:[{fill:["none",...Q()]}],"stroke-w":[{stroke:[ge,Wr,or,xa]}],stroke:[{stroke:["none",...Q()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},mh=W1(dh);function te(...e){return mh(ts(e))}const V0=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,$0=ts,R=(e,t)=>r=>{var n;if((t==null?void 0:t.variants)==null)return $0(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:a,defaultVariants:i}=t,o=Object.keys(a).map(u=>{const c=r==null?void 0:r[u],h=i==null?void 0:i[u];if(c===null)return null;const m=V0(c)||V0(h);return a[u][m]}),l=r&&Object.entries(r).reduce((u,c)=>{let[h,m]=c;return m===void 0||(u[h]=m),u},{}),s=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((u,c)=>{let{class:h,className:m,...p}=c;return Object.entries(p).every(y=>{let[w,C]=y;return Array.isArray(C)?C.includes({...i,...l}[w]):{...i,...l}[w]===C})?[...u,h,m]:u},[]);return $0(e,o,s,r==null?void 0:r.class,r==null?void 0:r.className)},fh=R("relative inline-flex items-center justify-center shrink-0 overflow-hidden",{variants:{shape:{circular:"rounded-full",square:""},size:{small:"size-[16px]",big:"size-[32px]"}},compoundVariants:[{shape:"square",size:"small",className:"rounded-[4px]"},{shape:"square",size:"big",className:"rounded-[8px]"}],defaultVariants:{shape:"circular",size:"small"}}),ph=R('font-["Inter",sans-serif] font-normal text-center text-[var(--color-blue-800)]',{variants:{size:{small:"text-[8px] leading-[16px]",big:"text-[16px] leading-[24px]"}},defaultVariants:{size:"small"}}),gh=R("absolute inset-0 w-full h-full object-cover"),vh=e=>{const t=e.trim().split(/\s+/);return t.length>=2?(t[0][0]+t[1][0]).toUpperCase():e.slice(0,2).toUpperCase()},bh=(e,t)=>`https://picsum.photos/seed/${e}/${t}/${t}`,qi=Y.forwardRef(({className:e,type:t="text",shape:r="circular",size:n="small",initials:a="AR",src:i,alt:o="Avatar",fallbackInitials:l,...s},u)=>{const[c,h]=Y.useState(!1),m=Y.useMemo(()=>Math.floor(Math.random()*1e3),[]),y=i||bh(m,n==="big"?64:32),w=c&&l?l:a,C=t==="image"&&!c,k=()=>{h(!0)},A={backgroundImage:"linear-gradient(90deg, rgba(21, 177, 205, 0.08) 0%, rgba(21, 177, 205, 0.08) 100%), linear-gradient(90deg, rgb(255, 255, 255) 0%, rgb(255, 255, 255) 100%)"};return v.jsx("div",{ref:u,className:te(fh({shape:r,size:n}),e),style:C?void 0:A,role:"img","aria-label":o,...s,children:C?v.jsx("img",{src:y,alt:o,className:te(gh()),onError:k}):v.jsx("span",{className:te(ph({size:n})),children:vh(w)})})});qi.displayName="Avatar";const yh=R("relative inline-flex items-center justify-center shrink-0",{variants:{size:{small:"w-2 h-2",medium:"w-3 h-3",large:"w-4 h-4"}},defaultVariants:{size:"medium"}}),xh=R("w-full h-full rounded-full",{variants:{variant:{success:"bg-[var(--color-green-1000)]",warning:"bg-[var(--color-orange-800)]",error:"bg-[var(--color-red-1000)]",info:"bg-[var(--color-blue-800)]",neutral:"bg-[var(--color-gray-600)]"}},defaultVariants:{variant:"neutral"}}),wh=R("absolute w-full h-full rounded-full opacity-75 animate-ping",{variants:{variant:{success:"bg-[var(--color-green-1000)]",warning:"bg-[var(--color-orange-800)]",error:"bg-[var(--color-red-1000)]",info:"bg-[var(--color-blue-800)]",neutral:"bg-[var(--color-gray-600)]"}},defaultVariants:{variant:"neutral"}}),Hi=Y.forwardRef(({className:e,variant:t="neutral",size:r="medium",animated:n=!1,...a},i)=>v.jsxs("div",{ref:i,className:te(yh({size:r}),e),...a,children:[n&&v.jsx("span",{className:wh({variant:t})}),v.jsx("span",{className:xh({variant:t})})]}));Hi.displayName="StatusIndicator";const kh={display:"typography-display",h1:"typography-h1",h2:"typography-h2",h3:"typography-h3",h4:"typography-h4",small:"typography-small",tiny:"typography-tiny","x-small":"typography-x-small","column-header":"typography-column-header",tag:"typography-tag"},Sh={display:"h1",h1:"h1",h2:"h2",h3:"h3",h4:"h4",small:"p",tiny:"p","x-small":"p","column-header":"span",tag:"span"},Ch={primary:"text-[var(--color-gray-1000)]",secondary:"text-[var(--color-gray-600)]",inherit:""},Th={thin:"font-thin",extralight:"font-extralight",light:"font-light",regular:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold",black:"font-black"},Mh={serif:"!font-heading",sans:"!font-body"},Ot=({variant:e,as:t,children:r,className:n,color:a="primary",weight:i,fontFamily:o})=>{const l=t||Sh[e],s=kh[e],u=Ch[a],c=i?Th[i]:"",h=o?Mh[o]:"";return v.jsx(l,{className:te(s,u,c,h,n),children:r})},Ah={dark:"rgba(0, 6, 38, 1)",darkTeal:"rgba(2, 46, 64, 1)",teal:"rgba(21, 177, 205, 1)",lightTeal:"rgba(106, 234, 253, 1)",orange:"rgba(255, 111, 0, 1)",white:"rgba(255, 255, 255, 1)"},Vi=({size:e=256,colorVariant:t="dark",...r})=>{const n=Ah[t];return v.jsxs("svg",{...r,width:e,height:e,viewBox:"0 0 256 256",fill:"none",children:[v.jsx("path",{d:"M35.2761 209.996L27.7832 218.211H11V227H79.5141V218.211H53.3838L48.1047 212.422L62.2011 175.529H138.132L151.434 212.289L146.041 218.211H120.914V227H206.306V218.211H192.664L187.404 212.441L115.029 30H79.7412L81.3306 34.872L93.5916 64.7535M46.0234 218.211H45.9098L46.9127 215.575L46.0234 218.211ZM126.496 162.633H73.9891L69.4858 157.703L97.7164 88.5402H103.223L113.383 113.951L126.269 146.182L130.923 157.818L126.515 162.652L126.496 162.633ZM131.548 159.06H131.567L133.024 162.652L131.548 159.06Z",fill:n}),v.jsx("path",{d:"M233.477 227C239.841 227 245 221.791 245 215.365C245 208.938 239.841 203.729 233.477 203.729C227.113 203.729 221.954 208.938 221.954 215.365C221.954 221.791 227.113 227 233.477 227Z",fill:n})]})};Vi.displayName="LogoA";const zh={dark:"rgba(0, 6, 38, 1)",darkTeal:"rgba(2, 46, 64, 1)",teal:"rgba(21, 177, 205, 1)",lightTeal:"rgba(106, 234, 253, 1)",orange:"rgba(255, 111, 0, 1)",white:"rgba(255, 255, 255, 1)"},ds=({size:e=163,colorVariant:t="dark",...r})=>{const n=zh[t],a=603/163,i=typeof e=="number"?e:parseFloat(e),o=i*a;return v.jsxs("svg",{...r,width:o,height:i,viewBox:"0 0 603 163",fill:"none",children:[v.jsxs("g",{clipPath:"url(#clip0_full_logo)",children:[v.jsx("path",{d:"M303.686 142.03C284.282 142.03 267.966 127.819 267.966 105.332C267.966 84.0925 278.722 69.1137 300.637 67.9807L314.384 93.9439H326.694V59.4543H301.96C284.723 59.4543 270.554 65.5226 260.642 75.2972C250.537 85.2639 244.862 99.0905 244.862 114.3C244.862 142.702 267.506 163.019 293.025 163.019C314.615 163.019 330.107 148.156 332.733 127.416C326.406 136.365 315.727 142.049 303.724 142.049L303.686 142.03Z",fill:n}),v.jsx("path",{d:"M481.48 48.6811C490.204 48.6811 497.183 41.4797 497.183 32.9534C497.183 24.427 490.204 17.2256 481.48 17.2256C472.756 17.2256 465.547 24.2157 465.547 32.9534C465.547 41.691 472.526 48.6811 481.48 48.6811Z",fill:n}),v.jsx("path",{d:"M570.942 141.588C550.868 141.588 534.724 126.072 534.724 102.912V101.376H603C603 78.8691 587.949 59.4351 562.87 59.4351C536.047 59.4351 513.787 84.7838 513.787 112.533C513.787 140.282 534.513 163 561.336 163C581.622 163 598.859 150.114 602.348 126.955C594.487 137.229 583.367 141.588 570.942 141.588ZM558.94 69.9202C570.501 69.9202 578.132 79.0996 578.132 92.6381H535.606C538.654 78.005 548.049 69.9202 558.94 69.9202Z",fill:n}),v.jsx("path",{d:"M198.233 79.0995V57.2459L155.476 73.204L172.502 86.5313V148.866L168.073 153.667H146.81L84.8802 0H55.8901L57.7691 4.53204L67.8351 28.8438L19.9402 146.984L13.7856 153.667H0V160.811H56.2736V153.667H34.8187L30.4855 148.962L42.0662 118.947H104.437L115.366 148.847L110.937 153.667H90.3062V160.811H221.26V153.667H198.233V89.1622L213.725 78.0242L230.961 91.2362H240.088V59.4543H230.079C217.118 59.4543 204.847 64.6585 198.233 79.1188V79.0995ZM28.7791 153.667H28.6641L29.4885 151.516L28.7599 153.667H28.7791ZM51.7487 108.462L48.0483 104.448L71.2288 48.1818H75.7537L84.094 68.8448L94.6777 95.0577L98.4932 104.525L94.8694 108.462H51.7487ZM99.0109 105.543H99.03L100.219 108.462L99.0109 105.543Z",fill:n}),v.jsx("path",{d:"M495.668 153.667V57.2459L452.911 73.204L469.918 86.5313V148.866L465.489 153.667H443.344L438.934 148.885V91.5627C438.934 72.7816 429.328 59.4543 411.229 59.4543H407.394C392.995 59.4543 382.737 68.1919 374.895 76.2766H374.799V1.92035L328.764 16.7839L349.05 29.6695V148.866L344.64 153.667H333.404V160.811H390.253V153.667H379.229L374.819 148.866V84.3421C379.401 80.6358 385.728 76.6991 392.707 76.6991C406.014 76.6991 413.223 84.5726 413.223 98.5528V148.866L408.794 153.667H399.706V160.811H514.745V153.667H495.687H495.668Z",fill:n})]}),v.jsx("defs",{children:v.jsx("clipPath",{id:"clip0_full_logo",children:v.jsx("rect",{width:"603",height:"163",fill:"white"})})})]})};ds.displayName="FullLogo";const Nh={dark:"rgba(0, 6, 38, 1)",darkTeal:"rgba(2, 46, 64, 1)",teal:"rgba(21, 177, 205, 1)",lightTeal:"rgba(106, 234, 253, 1)",orange:"rgba(255, 111, 0, 1)",white:"rgba(255, 255, 255, 1)"},$i=({size:e=329,colorVariant:t="dark",animated:r=!1,animationDuration:n=2,animationDelay:a=0,...i})=>{const o=Nh[t],l=Y.useId(),s=2800;return r?v.jsxs("svg",{...i,width:e,height:e,viewBox:"0 0 329 329",fill:"none",children:[v.jsx("style",{children:`
2
2
  @keyframes drawSignature-${l.replace(/:/g,"")} {
3
3
  0% {
4
4
  stroke-dashoffset: var(--path-length);
@@ -23,102 +23,134 @@
23
23
  transform: scale(1);
24
24
  }
25
25
  }
26
- `}),h.jsx("path",{d:"M239.997 257.024C239.13 256.261 238.348 255.328 237.671 254.268C236.994 253.208 236.55 252.126 236.359 251.066C236.169 250.006 236.359 249.179 236.93 248.585C239.659 245.277 243.233 242.118 247.696 239.107C252.138 236.095 256.601 234.59 261.063 234.59C263.2 234.59 264.595 235.375 265.293 236.922C265.97 238.47 266.309 240.018 266.309 241.587C266.309 244.302 265.568 246.443 264.13 247.991C262.692 249.539 260.831 250.854 258.61 251.914C256.389 252.996 254.062 253.907 251.63 254.692C249.198 255.455 247.04 256.24 245.095 257.024L242.768 258.191C241.795 258.191 240.886 257.809 239.997 257.024Z",fill:o,style:{transformOrigin:"252px 247px",animation:`drawDot-${l.replace(/:/g,"")} 0.3s ease-out ${n+a*.9}s forwards`,opacity:0}}),h.jsx("path",{d:"M308.102 176.765C306.453 175.663 304.126 174.963 301.123 174.687C298.119 174.411 294.46 174.433 290.167 174.772C285.873 175.111 281.008 175.578 275.594 176.193C273.648 176.405 271.829 176.617 270.179 176.808L245.793 180.942C242.091 181.536 239.003 182.003 236.486 182.406C233.969 182.808 231.558 182.702 229.232 182.13L193.572 185.777C193.952 184.293 194.587 182.893 195.517 181.6C196.469 180.243 197.548 179.161 198.711 178.398C205.099 169.068 211.254 160.056 217.176 151.299C223.077 142.562 228.639 134.102 233.885 125.959L234.752 121.888L253.936 88.6814C253.936 87.3243 254.422 86.2641 255.395 85.4795C256.368 84.7162 257.045 83.4439 257.425 81.7051L260.344 73.2445C260.915 71.6966 261.465 70.0426 261.93 68.2826C262.417 66.5439 262.671 64.5082 262.671 62.1757C262.671 60.8186 262.459 59.1223 262.1 57.0866C261.698 55.051 261.084 53.1426 260.217 51.4038C259.35 49.6438 258.271 48.1595 257.024 46.8872C255.776 45.615 254.168 45 252.243 45C250.89 45 249.388 45.3817 247.738 46.1663C246.089 46.9509 244.439 47.9263 242.789 49.0925C241.139 50.2588 239.595 51.4674 238.136 52.7397C236.677 54.012 235.471 55.0298 234.498 55.7932L207.468 81.7263L206.008 82.5957L192.641 96.2939C192.429 96.2939 192.112 96.3999 191.626 96.5907C191.139 96.7816 190.801 96.8876 190.61 96.8876L122.04 164.763C120.094 164.763 117.493 163.894 114.193 162.134C110.915 160.374 107.023 159.505 102.56 159.505C101.587 159.505 100.53 159.802 99.3666 160.374C98.2033 160.947 97.3361 161.243 96.7439 161.243C95.9613 161.243 95.2422 160.798 94.5654 159.929C93.8885 159.059 92.7887 158.635 91.2236 158.635C86.5704 159.611 83.567 160.183 82.2134 160.374C80.8597 160.586 79.9714 160.671 79.5907 160.671C77.6448 159.886 76.397 159.696 75.8047 160.098C75.2125 160.501 74.7472 160.777 74.3453 160.968C73.7743 160.586 72.3149 160.247 69.9883 159.95C67.6617 159.674 65.5255 159.505 63.6008 159.505C60.682 159.505 56.6634 159.611 51.5449 159.802C46.4053 159.992 41.3715 160.629 36.4434 161.689C31.5153 162.749 27.2005 164.488 23.5203 166.926C19.8401 169.365 18 172.8 18 177.274C18 181.155 18.9518 184.462 20.8976 187.177C22.8435 189.912 25.3181 192.223 28.3215 194.174C31.3249 196.125 34.6667 197.524 38.3469 198.394C42.0271 199.263 45.6016 199.709 49.0915 199.709C51.2277 200.281 53.1524 200.09 54.9079 199.136C54.6964 199.136 55.7328 199.369 57.9536 199.857C60.1744 200.345 62.9451 200.79 66.2235 201.172C69.523 201.553 72.9494 201.999 76.545 202.465C80.1195 202.953 83.0806 203.207 85.4071 203.207L59.5399 232.915L54.0196 239.319C52.8563 240.294 52.4333 241.948 52.7294 244.281C53.0043 246.613 53.6389 247.779 54.6118 247.779C57.1287 247.779 60.3225 246.083 64.193 242.69C68.0636 239.297 72.1457 235.163 76.397 230.307C80.6694 225.451 84.9207 220.51 89.1931 215.464C93.4444 210.417 97.2303 206.24 100.53 202.932C100.911 202.932 101.312 202.974 101.693 203.08C102.074 203.165 102.455 203.228 102.856 203.228C115.822 203.228 127.878 202.847 139.045 202.062C150.192 201.299 160.407 200.896 169.692 200.896C166.985 205.37 164.066 209.929 160.978 214.594C157.89 219.259 154.591 224.115 151.101 229.162L127.285 264.701C125.932 266.842 124.726 268.984 123.648 271.104C122.569 273.225 122.061 275.366 122.061 277.508C122.061 279.056 122.59 280.371 123.648 281.431C124.705 282.491 125.826 283.042 126.989 283.042C129.316 283.042 131.346 282.364 133.081 281.007C134.815 279.65 136.613 278.038 138.453 276.193C140.293 274.349 142.197 272.44 144.121 270.511C146.046 268.56 148.373 267.012 151.08 265.846L182.467 237.007C182.658 236.414 183.102 235.777 183.758 235.12C184.434 234.442 185.259 233.615 186.232 232.639L197.273 223.33C200.192 220.807 202.941 217.881 205.543 214.573C208.166 211.286 209.477 209.145 209.477 208.169C209.477 206.027 208.229 204.967 205.712 204.967C205.331 204.967 204.697 205.116 203.83 205.413C202.962 205.709 201.947 206.346 200.784 207.3L156.896 248.076L146.152 255.646L149.049 251.575C149.832 250.218 151.186 248.034 153.132 245.023C155.056 242.012 157.192 238.725 159.519 235.12C161.846 231.537 164.32 227.805 166.943 223.903C169.566 220.022 172.019 216.418 174.367 213.11C176.693 209.823 178.724 207.045 180.458 204.819C182.193 202.592 183.44 201.278 184.223 200.875C184.604 200.684 185.386 200.493 186.55 200.302C186.803 200.281 187.121 200.281 187.374 200.239L196.871 199.433C201.672 199.009 206.304 198.161 210.746 196.931C215.166 195.68 219.798 194.853 224.6 194.407C226.122 194.301 228.893 193.983 232.891 193.474C236.909 192.965 241.266 192.393 245.941 191.757C250.615 191.142 254.993 190.527 259.075 189.912C263.157 189.297 265.991 188.852 267.599 188.555C269.206 188.258 270.602 188.025 271.787 187.834C272.971 187.664 274.431 187.516 276.165 187.41C276.313 187.41 276.503 187.177 276.651 187.134L281.579 186.583C284.435 186.265 286.888 186.095 288.961 186.095C291.013 186.095 292.514 186.18 293.445 186.392C292.726 188.152 292.112 189.361 291.563 190.039C291.034 190.718 290.59 191.142 290.23 191.333C289.871 191.524 289.659 191.672 289.596 191.757C289.532 191.842 289.532 192.181 289.596 192.796C289.807 194.768 291.647 195.531 295.116 195.15C295.708 195.086 296.491 194.81 297.421 194.323C298.352 193.835 299.325 193.305 300.319 192.732C301.313 192.16 302.286 191.545 303.195 190.909C304.126 190.272 304.782 189.7 305.184 189.191C306.072 188.937 307.299 188.046 308.885 186.477C310.45 184.929 311.169 183.402 311 181.875C310.746 179.628 309.794 177.931 308.145 176.829L308.102 176.765ZM96.7227 190.039C76.5662 189.276 60.9781 188.088 49.9375 186.54C38.8968 184.993 31.5364 181.981 27.8562 177.507C28.6388 176.15 31.3884 175.026 36.1473 174.157C40.885 173.288 46.0246 172.567 51.5449 171.973C57.0653 171.379 62.1414 170.955 66.7946 170.679C71.4477 170.383 74.0704 170.234 74.6415 170.234H79.2946C88.6009 170.807 96.0882 171.4 101.82 171.973C107.531 172.545 111.549 173.033 113.876 173.436L96.7227 190.039ZM147.146 188.576C136.592 188.958 125.488 189.255 113.876 189.446C115.23 187.495 117.366 184.971 120.263 181.875C123.182 178.78 126.376 175.472 129.845 171.973C133.335 168.474 137.015 164.891 140.885 161.201C144.756 157.511 148.436 154.013 151.926 150.705L172.273 129.14C172.654 127.973 173.33 127.401 174.303 127.401L184.181 118.092C185.154 117.71 186.55 116.629 188.411 114.89C190.251 113.151 192.176 111.201 194.206 109.08C196.237 106.96 198.182 104.818 200.023 102.676C201.863 100.535 203.259 98.902 204.231 97.7146L211.211 93.0496C213.919 90.3354 216.541 87.706 219.058 85.1827C221.575 82.6593 224.092 80.3268 226.609 78.1852L231.262 73.5202C233.99 70.9968 236.74 68.8128 239.553 66.968C242.345 65.1232 246.279 62.727 251.313 59.822V63.0239C251.313 66.3318 250.551 70.1062 248.986 74.3896C247.421 78.6729 245.877 82.3625 244.333 85.4583L184.181 180.137C182.446 181.494 180.881 183.445 179.528 185.968C168.487 187.325 157.679 188.194 147.125 188.597L147.146 188.576Z",stroke:o,strokeWidth:"2",fill:o,style:{"--path-length":u,strokeDasharray:u,strokeDashoffset:u,fillOpacity:0,animation:`drawSignature-${l.replace(/:/g,"")} ${a}s ease-out ${n}s forwards`}})]}):h.jsxs("svg",{...s,width:r,height:r,viewBox:"0 0 329 329",fill:"none",children:[h.jsx("path",{d:"M239.997 257.024C239.13 256.261 238.348 255.328 237.671 254.268C236.994 253.208 236.55 252.126 236.359 251.066C236.169 250.006 236.359 249.179 236.93 248.585C239.659 245.277 243.233 242.118 247.696 239.107C252.138 236.095 256.601 234.59 261.063 234.59C263.2 234.59 264.595 235.375 265.293 236.922C265.97 238.47 266.309 240.018 266.309 241.587C266.309 244.302 265.568 246.443 264.13 247.991C262.692 249.539 260.831 250.854 258.61 251.914C256.389 252.996 254.062 253.907 251.63 254.692C249.198 255.455 247.04 256.24 245.095 257.024L242.768 258.191C241.795 258.191 240.886 257.809 239.997 257.024Z",fill:o}),h.jsx("path",{d:"M308.102 176.765C306.453 175.663 304.126 174.963 301.123 174.687C298.119 174.411 294.46 174.433 290.167 174.772C285.873 175.111 281.008 175.578 275.594 176.193C273.648 176.405 271.829 176.617 270.179 176.808L245.793 180.942C242.091 181.536 239.003 182.003 236.486 182.406C233.969 182.808 231.558 182.702 229.232 182.13L193.572 185.777C193.952 184.293 194.587 182.893 195.517 181.6C196.469 180.243 197.548 179.161 198.711 178.398C205.099 169.068 211.254 160.056 217.176 151.299C223.077 142.562 228.639 134.102 233.885 125.959L234.752 121.888L253.936 88.6814C253.936 87.3243 254.422 86.2641 255.395 85.4795C256.368 84.7162 257.045 83.4439 257.425 81.7051L260.344 73.2445C260.915 71.6966 261.465 70.0426 261.93 68.2826C262.417 66.5439 262.671 64.5082 262.671 62.1757C262.671 60.8186 262.459 59.1223 262.1 57.0866C261.698 55.051 261.084 53.1426 260.217 51.4038C259.35 49.6438 258.271 48.1595 257.024 46.8872C255.776 45.615 254.168 45 252.243 45C250.89 45 249.388 45.3817 247.738 46.1663C246.089 46.9509 244.439 47.9263 242.789 49.0925C241.139 50.2588 239.595 51.4674 238.136 52.7397C236.677 54.012 235.471 55.0298 234.498 55.7932L207.468 81.7263L206.008 82.5957L192.641 96.2939C192.429 96.2939 192.112 96.3999 191.626 96.5907C191.139 96.7816 190.801 96.8876 190.61 96.8876L122.04 164.763C120.094 164.763 117.493 163.894 114.193 162.134C110.915 160.374 107.023 159.505 102.56 159.505C101.587 159.505 100.53 159.802 99.3666 160.374C98.2033 160.947 97.3361 161.243 96.7439 161.243C95.9613 161.243 95.2422 160.798 94.5654 159.929C93.8885 159.059 92.7887 158.635 91.2236 158.635C86.5704 159.611 83.567 160.183 82.2134 160.374C80.8597 160.586 79.9714 160.671 79.5907 160.671C77.6448 159.886 76.397 159.696 75.8047 160.098C75.2125 160.501 74.7472 160.777 74.3453 160.968C73.7743 160.586 72.3149 160.247 69.9883 159.95C67.6617 159.674 65.5255 159.505 63.6008 159.505C60.682 159.505 56.6634 159.611 51.5449 159.802C46.4053 159.992 41.3715 160.629 36.4434 161.689C31.5153 162.749 27.2005 164.488 23.5203 166.926C19.8401 169.365 18 172.8 18 177.274C18 181.155 18.9518 184.462 20.8976 187.177C22.8435 189.912 25.3181 192.223 28.3215 194.174C31.3249 196.125 34.6667 197.524 38.3469 198.394C42.0271 199.263 45.6016 199.709 49.0915 199.709C51.2277 200.281 53.1524 200.09 54.9079 199.136C54.6964 199.136 55.7328 199.369 57.9536 199.857C60.1744 200.345 62.9451 200.79 66.2235 201.172C69.523 201.553 72.9494 201.999 76.545 202.465C80.1195 202.953 83.0806 203.207 85.4071 203.207L59.5399 232.915L54.0196 239.319C52.8563 240.294 52.4333 241.948 52.7294 244.281C53.0043 246.613 53.6389 247.779 54.6118 247.779C57.1287 247.779 60.3225 246.083 64.193 242.69C68.0636 239.297 72.1457 235.163 76.397 230.307C80.6694 225.451 84.9207 220.51 89.1931 215.464C93.4444 210.417 97.2303 206.24 100.53 202.932C100.911 202.932 101.312 202.974 101.693 203.08C102.074 203.165 102.455 203.228 102.856 203.228C115.822 203.228 127.878 202.847 139.045 202.062C150.192 201.299 160.407 200.896 169.692 200.896C166.985 205.37 164.066 209.929 160.978 214.594C157.89 219.259 154.591 224.115 151.101 229.162L127.285 264.701C125.932 266.842 124.726 268.984 123.648 271.104C122.569 273.225 122.061 275.366 122.061 277.508C122.061 279.056 122.59 280.371 123.648 281.431C124.705 282.491 125.826 283.042 126.989 283.042C129.316 283.042 131.346 282.364 133.081 281.007C134.815 279.65 136.613 278.038 138.453 276.193C140.293 274.349 142.197 272.44 144.121 270.511C146.046 268.56 148.373 267.012 151.08 265.846L182.467 237.007C182.658 236.414 183.102 235.777 183.758 235.12C184.434 234.442 185.259 233.615 186.232 232.639L197.273 223.33C200.192 220.807 202.941 217.881 205.543 214.573C208.166 211.286 209.477 209.145 209.477 208.169C209.477 206.027 208.229 204.967 205.712 204.967C205.331 204.967 204.697 205.116 203.83 205.413C202.962 205.709 201.947 206.346 200.784 207.3L156.896 248.076L146.152 255.646L149.049 251.575C149.832 250.218 151.186 248.034 153.132 245.023C155.056 242.012 157.192 238.725 159.519 235.12C161.846 231.537 164.32 227.805 166.943 223.903C169.566 220.022 172.019 216.418 174.367 213.11C176.693 209.823 178.724 207.045 180.458 204.819C182.193 202.592 183.44 201.278 184.223 200.875C184.604 200.684 185.386 200.493 186.55 200.302C186.803 200.281 187.121 200.281 187.374 200.239L196.871 199.433C201.672 199.009 206.304 198.161 210.746 196.931C215.166 195.68 219.798 194.853 224.6 194.407C226.122 194.301 228.893 193.983 232.891 193.474C236.909 192.965 241.266 192.393 245.941 191.757C250.615 191.142 254.993 190.527 259.075 189.912C263.157 189.297 265.991 188.852 267.599 188.555C269.206 188.258 270.602 188.025 271.787 187.834C272.971 187.664 274.431 187.516 276.165 187.41C276.313 187.41 276.503 187.177 276.651 187.134L281.579 186.583C284.435 186.265 286.888 186.095 288.961 186.095C291.013 186.095 292.514 186.18 293.445 186.392C292.726 188.152 292.112 189.361 291.563 190.039C291.034 190.718 290.59 191.142 290.23 191.333C289.871 191.524 289.659 191.672 289.596 191.757C289.532 191.842 289.532 192.181 289.596 192.796C289.807 194.768 291.647 195.531 295.116 195.15C295.708 195.086 296.491 194.81 297.421 194.323C298.352 193.835 299.325 193.305 300.319 192.732C301.313 192.16 302.286 191.545 303.195 190.909C304.126 190.272 304.782 189.7 305.184 189.191C306.072 188.937 307.299 188.046 308.885 186.477C310.45 184.929 311.169 183.402 311 181.875C310.746 179.628 309.794 177.931 308.145 176.829L308.102 176.765ZM96.7227 190.039C76.5662 189.276 60.9781 188.088 49.9375 186.54C38.8968 184.993 31.5364 181.981 27.8562 177.507C28.6388 176.15 31.3884 175.026 36.1473 174.157C40.885 173.288 46.0246 172.567 51.5449 171.973C57.0653 171.379 62.1414 170.955 66.7946 170.679C71.4477 170.383 74.0704 170.234 74.6415 170.234H79.2946C88.6009 170.807 96.0882 171.4 101.82 171.973C107.531 172.545 111.549 173.033 113.876 173.436L96.7227 190.039ZM147.146 188.576C136.592 188.958 125.488 189.255 113.876 189.446C115.23 187.495 117.366 184.971 120.263 181.875C123.182 178.78 126.376 175.472 129.845 171.973C133.335 168.474 137.015 164.891 140.885 161.201C144.756 157.511 148.436 154.013 151.926 150.705L172.273 129.14C172.654 127.973 173.33 127.401 174.303 127.401L184.181 118.092C185.154 117.71 186.55 116.629 188.411 114.89C190.251 113.151 192.176 111.201 194.206 109.08C196.237 106.96 198.182 104.818 200.023 102.676C201.863 100.535 203.259 98.902 204.231 97.7146L211.211 93.0496C213.919 90.3354 216.541 87.706 219.058 85.1827C221.575 82.6593 224.092 80.3268 226.609 78.1852L231.262 73.5202C233.99 70.9968 236.74 68.8128 239.553 66.968C242.345 65.1232 246.279 62.727 251.313 59.822V63.0239C251.313 66.3318 250.551 70.1062 248.986 74.3896C247.421 78.6729 245.877 82.3625 244.333 85.4583L184.181 180.137C182.446 181.494 180.881 183.445 179.528 185.968C168.487 187.325 157.679 188.194 147.125 188.597L147.146 188.576Z",fill:o})]})};Ur.displayName="SignatureA";const $i=z("group relative flex items-center rounded-[8px] border box-border cursor-pointer w-full overflow-hidden isolate transition-[border-color] duration-300",{variants:{status:{normal:"bg-[var(--color-white)] border-[var(--color-gray-200)]",hover:"border-[var(--color-blue-800)]",generating:"bg-[var(--color-white)] border-[var(--color-gray-200)] cursor-default",error:"border-[var(--color-red-1000)]"},disabled:{true:"opacity-50 cursor-not-allowed pointer-events-none",false:""}},defaultVariants:{status:"normal",disabled:!1}}),Wi=z("absolute inset-0 -z-10 transition-opacity duration-300",{variants:{status:{normal:"opacity-0 group-hover:opacity-100",hover:"opacity-100",generating:"opacity-0",error:"opacity-100"}},defaultVariants:{status:"normal"}}),Xi=z("absolute inset-0",{variants:{status:{normal:"bg-[var(--color-blue-200)]",hover:"bg-[var(--color-blue-200)]",generating:"",error:"bg-[var(--color-red-200)]"}},defaultVariants:{status:"normal"}}),Qt=z("flex gap-2 h-[75px] shrink-0",{variants:{status:{normal:"p-2 items-end",hover:"p-2 items-end",generating:"px-4 py-2 items-center",error:"px-4 py-2 items-center"}},defaultVariants:{status:"normal"}}),Yi=z("relative -bottom-2 w-[60px] h-[66px] bg-[var(--color-gray-50)] border border-[var(--color-gray-200)] border-b-0 rounded-t-[4px] overflow-hidden transition-transform duration-300 group-hover:opacity-90 group-hover:shadow-sm"),Zi=z("w-full h-full bg-[var(--color-blue-200)]/30 p-2 space-y-2 flex flex-col items-start justify-start gap-1"),Ki=z("h-1 bg-[var(--color-gray-200)] rounded-full origin-left"),Ji=z("flex flex-col gap-[4px] grow items-start p-4 min-w-0"),Qi=z("font-medium text-[14px] leading-[20px] text-[var(--color-blue-1000)]"),el=z("text-[12px] leading-[16px] text-[var(--color-gray-600)]"),tl=z("px-4 overflow-hidden flex items-center w-[56px] relative"),rl=z("absolute w-6 h-6 text-[var(--color-blue-800)]"),al=z("w-6 h-6 text-[var(--color-gray-200)]"),nl=z("w-4 h-4 shrink-0 transition-all duration-300",{variants:{status:{normal:"text-[var(--color-blue-1000)] group-hover:text-[var(--color-blue-800)] group-hover:translate-x-0.5",hover:"text-[var(--color-blue-800)] translate-x-0.5",generating:"text-[var(--color-gray-600)] animate-spin",error:"text-[var(--color-blue-1000)] group-hover:rotate-[-20deg]"}},defaultVariants:{status:"normal"}}),sl=z("w-4 h-4 shrink-0 text-[var(--color-red-1000)] transition-transform duration-300 group-hover:scale-110"),ol={rest:{scaleX:1},hover:{scaleX:[0,1]}},il={rest:{x:0},hover:{x:4}},ll={rest:{x:-20,opacity:0},hover:{x:0,opacity:1}},cl={rest:{x:0,opacity:1},hover:{x:20,opacity:0}},ul=[100,66,75,50],Xn=V.forwardRef(({title:r,subtitle:e,status:t,onClick:a,onActionClick:n,className:s,disabled:o=!1},l)=>{const[u,d]=V.useState(!1),f=t||(u&&!o?"hover":"normal"),g=V.useMemo(()=>f==="generating"||f==="error"?"rest":u?"hover":"rest",[f,u]),x=V.useCallback(()=>{!t&&!o&&d(!0)},[t,o]),w=V.useCallback(()=>{!t&&!o&&d(!1)},[t,o]),M=V.useCallback(()=>{!o&&a&&a()},[o,a]),k=V.useCallback(R=>{R.stopPropagation(),!o&&n&&n()},[o,n]),A=V.useCallback(R=>{(R.key==="Enter"||R.key===" ")&&(R.preventDefault(),M())},[M]),N=()=>f==="generating"?h.jsx("div",{className:Qt({status:"generating"}),children:h.jsx(p.Loader,{size:16,className:"text-[var(--color-gray-600)] animate-spin"})}):f==="error"?h.jsx("div",{className:Qt({status:"error"}),children:h.jsx(p.TriangleAlert,{size:16,className:sl()})}):h.jsx("div",{className:Qt({status:f}),children:h.jsx("div",{className:Yi(),children:h.jsx(ye.motion.div,{className:Zi(),variants:{rest:{},hover:{transition:{staggerChildren:.1}}},children:ul.map((R,P)=>h.jsx(ye.motion.div,{className:Ki(),style:{width:`${R}%`},variants:ol,transition:{duration:.4,ease:"easeInOut"}},P))})})}),E=()=>f==="generating"?null:f==="error"?h.jsx("button",{type:"button",onClick:k,className:"focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-blue-800)] focus-visible:ring-offset-2 rounded-sm","aria-label":"Retry",children:h.jsx(p.RotateCcw,{size:16,className:nl({status:"error"})})}):h.jsxs(h.Fragment,{children:[h.jsx(ye.motion.div,{className:rl(),variants:ll,transition:{duration:.3,ease:"backOut"},children:h.jsx(p.ArrowUp,{size:24,className:"rotate-90"})}),h.jsx(ye.motion.div,{className:al(),variants:cl,transition:{duration:.3},children:h.jsx(p.ArrowUp,{size:24,className:"rotate-90"})})]});return h.jsxs(ye.motion.div,{ref:l,role:"button",tabIndex:o?-1:0,className:G($i({status:f,disabled:o}),s),onClick:M,onKeyDown:A,onMouseEnter:x,onMouseLeave:w,"aria-disabled":o,"aria-label":`${r} - ${e}${f==="error"?" - Error occurred":""}${f==="generating"?" - Generating":""}`,initial:"rest",whileHover:"hover",animate:g,children:[h.jsx("div",{className:Wi({status:f}),children:h.jsx("div",{className:Xi({status:f})})}),N(),h.jsxs(ye.motion.div,{className:Ji(),variants:il,children:[h.jsx("p",{className:Qi(),title:r,children:r}),h.jsx("p",{className:el(),title:e,children:e})]}),h.jsx("div",{className:tl(),children:E()})]})});Xn.displayName="ArtifactCard";const dl=z("flex items-center flex-wrap gap-2",{variants:{size:{small:"text-[0.875rem] leading-[1.25rem]",medium:"text-[1rem] leading-[1.5rem]"}},defaultVariants:{size:"medium"}}),dt=z("inline-flex items-center gap-2 transition-colors duration-200",{variants:{state:{default:"text-[var(--color-gray-600)] hover:text-[var(--color-blue-1000)] cursor-pointer",active:"text-[var(--color-blue-1000)] font-medium cursor-default",inactive:"text-[var(--color-gray-600)] cursor-default"}},defaultVariants:{state:"default"}}),ml=z("text-[var(--color-gray-600)] flex items-center justify-center"),Yn=({items:r,separator:e=h.jsx(p.ChevronRight,{size:16}),className:t,size:a="medium"})=>h.jsx("nav",{"aria-label":"Breadcrumb",className:G(dl({size:a}),t),children:h.jsx("ol",{className:"flex items-center flex-wrap gap-2",children:r.map((n,s)=>{const o=s===r.length-1;let l;return o?l=h.jsxs("span",{className:dt({state:"active"}),"aria-current":"page",children:[n.icon,n.label]}):n.href?l=h.jsxs("a",{href:n.href,className:dt({state:"default"}),onClick:n.onClick,children:[n.icon,n.label]}):n.onClick?l=h.jsxs("button",{type:"button",className:dt({state:"default"}),onClick:n.onClick,children:[n.icon,n.label]}):l=h.jsxs("span",{className:dt({state:"inactive"}),children:[n.icon,n.label]}),h.jsxs("li",{className:"flex items-center gap-2",children:[l,!o&&h.jsx("span",{className:ml(),"aria-hidden":"true",children:e})]},`${n.label}-${s}`)})})}),hl=z("inline-flex items-center justify-center rounded-[8px] font-normal transition-colors duration-200 box-border cursor-pointer disabled:cursor-not-allowed disabled:opacity-50 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2",{variants:{variant:{primary:"bg-[var(--color-white)] border border-[var(--color-blue-1000)] text-[var(--color-blue-1000)] hover:bg-[var(--color-blue-200)] active:bg-[var(--color-blue-400)] focus-visible:outline-[var(--color-blue-800)]",secondary:"bg-[rgba(255,255,255,0.01)] border border-[var(--color-gray-600)] text-[var(--color-gray-600)] hover:bg-[var(--color-gray-100)] hover:border-[var(--color-gray-800)] hover:text-[var(--color-gray-800)] active:bg-[var(--color-gray-200)] active:border-[var(--color-gray-1000)] active:text-[var(--color-gray-1000)] focus-visible:outline-[var(--color-blue-800)]",tertiary:"bg-transparent border border-transparent text-[var(--color-blue-1000)] hover:bg-[var(--color-gray-100)] active:bg-[var(--color-gray-200)] focus-visible:outline-[var(--color-blue-800)]",cta:"bg-[var(--color-blue-800)] border border-transparent text-[var(--color-white)] hover:bg-[var(--color-blue-400)] active:bg-[var(--color-blue-1000)] focus-visible:outline-[var(--color-blue-1000)]",danger:"bg-[var(--color-red-1000)] border border-transparent text-[var(--color-white)] hover:bg-[#e54545] active:bg-[#cc3d3d] focus-visible:outline-[var(--color-red-1000)]"},tone:{brand:"",neutral:""},size:{small:"px-2 py-2 gap-1 text-[0.75rem] leading-[1rem]",medium:"px-3 py-2 gap-1 text-[1rem] leading-[1.5rem]",large:"px-4 py-3 gap-1 text-[1rem] leading-[1.5rem]"}},compoundVariants:[{variant:"primary",tone:"neutral",className:"bg-[rgba(0,6,38,0.9)] border-transparent text-[var(--color-white)] hover:bg-[rgba(0,6,38,0.8)] active:bg-[rgba(0,6,38,1)] focus-visible:outline-[var(--color-blue-800)]"},{variant:"secondary",tone:"neutral",className:"bg-[rgba(255,255,255,0.01)] border-[rgba(0,13,77,0.45)] text-[rgba(0,9,51,0.65)] hover:bg-[rgba(0,13,77,0.05)] hover:border-[rgba(0,13,77,0.65)] hover:text-[rgba(0,9,51,0.85)] active:bg-[rgba(0,13,77,0.1)] active:border-[rgba(0,13,77,0.85)] active:text-[rgba(0,9,51,1)] focus-visible:outline-[var(--color-blue-800)]"},{variant:"tertiary",tone:"neutral",className:"text-[rgba(0,9,51,0.65)] hover:bg-[rgba(0,13,77,0.05)] active:bg-[rgba(0,13,77,0.1)] hover:text-[rgba(0,9,51,0.85)] active:text-[rgba(0,9,51,1)] focus-visible:outline-[var(--color-blue-800)]"}],defaultVariants:{variant:"primary",tone:"brand",size:"medium"}}),_0=V.forwardRef(({className:r,variant:e="primary",tone:t="brand",size:a="medium",startIcon:n,endIcon:s,children:o,disabled:l,...u},d)=>{const f=a==="small"?13:a==="large"?20:16;return h.jsxs("button",{ref:d,className:G(hl({variant:e,tone:t,size:a}),r),disabled:l,...u,children:[n&&h.jsx("span",{className:"flex items-center justify-center shrink-0",style:{width:f,height:f},children:n}),o,s&&h.jsx("span",{className:"flex items-center justify-center shrink-0",style:{width:f,height:f},children:s})]})});_0.displayName="Button";const fl=z("relative inline-flex items-center px-1 py-1 gap-1 rounded-[5px] border overflow-hidden transition-colors",{variants:{status:{uploading:"border-[var(--color-gray-600)] bg-[var(--color-gray-50)]",processing:"border-[var(--color-gray-600)] bg-[var(--color-gray-50)]",done:"border-[var(--color-gray-200)] bg-[var(--color-white)]",error:"border-[var(--color-gray-200)] bg-[var(--color-white)]"}},defaultVariants:{status:"done"}}),pl=z("truncate text-[0.75rem] leading-[1rem] font-normal",{variants:{status:{uploading:"text-[var(--color-gray-600)]",processing:"text-[var(--color-gray-800)]",done:"text-[var(--color-gray-800)]",error:"text-[var(--color-gray-800)]"}},defaultVariants:{status:"done"}}),mt=z("shrink-0",{variants:{status:{uploading:"text-[var(--color-blue-800)]",processing:"text-[var(--color-blue-800)]",done:"text-[var(--color-gray-600)]",error:"text-[var(--color-red-1000)]"}},defaultVariants:{status:"done"}}),vl=z("absolute top-0 left-0 bottom-0 bg-[var(--color-gray-200)] z-0 rounded-bl-[4px] rounded-tl-[4px]",{variants:{status:{uploading:"opacity-100",processing:"opacity-100",done:"opacity-0",error:"opacity-0"}},defaultVariants:{status:"uploading"}});var Zn=(r=>(r.Uploading="uploading",r.Processing="processing",r.Done="done",r.Error="error",r))(Zn||{});const Kn=({filename:r,status:e="done",progress:t=0,onDelete:a,className:n})=>{const s=e==="uploading",o=e==="processing",l=e==="error",d=s?"uploading":o?"processing":l?"error":"done",f=()=>s?h.jsx(p.ArrowUp,{size:12,className:mt({status:d})}):o?h.jsx(p.Loader,{size:12,className:G(mt({status:d}),"animate-spin")}):l?h.jsx(p.TriangleAlert,{size:12,className:mt({status:d})}):h.jsx(p.FileText,{size:12,className:mt({status:d})});return h.jsxs("div",{className:"relative inline-block group",children:[h.jsxs("div",{className:G(fl({status:d}),n),children:[(s||o)&&h.jsx(ye.motion.div,{className:vl({status:d}),initial:{width:"0%"},animate:{width:`${t}%`},transition:{duration:.3,ease:"easeOut"}}),h.jsxs("div",{className:"relative z-10 flex items-center gap-1 pr-1",children:[h.jsx("div",{className:G("flex items-center justify-center shrink-0 p-1 rounded-[2px]",l&&"bg-[#fff2f2]"),children:f()}),h.jsx("span",{className:pl({status:d}),title:r,children:r})]})]}),a&&!s&&!o&&h.jsx(ye.motion.button,{onClick:a,className:"absolute -top-[6px] -right-[6px] hidden group-hover:flex items-center justify-center bg-[var(--color-white)] border border-[var(--color-gray-200)] rounded-[8px] p-[2px] focus:outline-none focus:ring-2 focus:ring-[var(--color-blue-800)] shrink-0 z-20","aria-label":"Remove file",initial:{scale:0,opacity:0},whileInView:{scale:1,opacity:1},whileHover:{scale:1.1},whileTap:{scale:.95},transition:{scale:{type:"spring",stiffness:400,damping:17},opacity:{duration:.2}},children:h.jsx(p.X,{size:10,className:"text-[var(--color-gray-800)]"})})]})},gl=z("inline-flex items-center gap-2 cursor-pointer select-none group disabled:cursor-not-allowed disabled:opacity-50 w-fit",{variants:{size:{medium:"text-[1rem] leading-[1.5rem] gap-2",small:"gap-1"}},defaultVariants:{size:"medium"}}),bl=z("flex items-center justify-center transition-colors duration-200 ease-in-out rounded-[2px] border shrink-0",{variants:{checked:{true:"bg-[var(--color-blue-1000)] border-[var(--color-blue-1000)] text-white",false:"bg-white border-[var(--color-gray-200)] group-hover:border-[var(--color-gray-600)]"},size:{medium:"w-[16px] h-[16px]",small:"w-[12px] h-[12px]"}},defaultVariants:{checked:!1,size:"medium"}}),yl="sr-only peer",Jn=V.forwardRef(({className:r,checked:e,defaultChecked:t,onChange:a,label:n,size:s="medium",disabled:o,...l},u)=>{const[d,f]=V.useState(t||!1),g=e!==void 0,x=g?e:d,w=M=>{g||f(M.target.checked),a==null||a(M)};return h.jsxs("label",{className:gl({size:s,className:r}),children:[h.jsx("input",{type:"checkbox",className:yl,ref:u,checked:g?e:void 0,defaultChecked:g?void 0:t,onChange:w,disabled:o,...l}),h.jsx("span",{className:bl({checked:!!x,size:s}),children:h.jsx(p.Check,{size:s==="medium"?12:8,strokeWidth:3,className:G("text-white transition-opacity duration-200",x?"opacity-100":"opacity-0")})}),n&&h.jsx(i0,{as:"span",variant:s==="medium"?"small":"x-small",color:"secondary",children:n})]})});Jn.displayName="Checkbox";const xl=z("relative inline-flex items-center justify-center",{variants:{size:{xs:"w-[18px] h-[18px]",small:"w-[24px] h-[24px]",medium:"w-[32px] h-[32px]",large:"w-[40px] h-[40px]"}},defaultVariants:{size:"medium"}}),wl=z("transform"),Sl=z("stroke-[var(--color-gray-200)]"),kl=z("transition-[stroke-dashoffset] duration-300 ease-in-out",{variants:{variant:{default:"stroke-[var(--color-blue-800)]",success:"stroke-[var(--color-green-1000)]",warning:"stroke-[var(--color-orange-800)]",error:"stroke-[var(--color-red-1000)]"}},defaultVariants:{variant:"default"}}),Cl=z("absolute inset-0 flex items-center justify-center font-medium text-[var(--color-gray-800)]",{variants:{size:{xs:"text-[6px]",small:"text-[8px]",medium:"text-[10px]",large:"text-[12px]"}},defaultVariants:{size:"medium"}}),Ml={xs:18,small:24,medium:32,large:40},$r=V.forwardRef(({className:r,value:e=0,max:t=100,size:a="medium",variant:n="default",showLabel:s=!0,labelFormatter:o,strokeWidth:l=3,...u},d)=>{const f=Math.min(Math.max(e/t*100,0),100),g=Ml[a],x=(g-l)/2,w=2*Math.PI*x,M=w-f/100*w,k=o?o(e,t):`${Math.round(e)}`;return h.jsxs("div",{ref:d,className:G(xl({size:a}),r),role:"progressbar","aria-valuemin":0,"aria-valuemax":t,"aria-valuenow":e,...u,children:[h.jsxs("svg",{className:wl(),width:g,height:g,viewBox:`0 0 ${g} ${g}`,children:[h.jsx("circle",{className:Sl(),cx:g/2,cy:g/2,r:x,fill:"none",strokeWidth:l}),h.jsx("circle",{className:kl({variant:n}),cx:g/2,cy:g/2,r:x,fill:"none",strokeWidth:l,strokeLinecap:"round",strokeDasharray:w,strokeDashoffset:M,transform:`rotate(-90 ${g/2} ${g/2})`})]}),s&&h.jsx("span",{className:Cl({size:a}),children:k})]})});$r.displayName="CircularProgress";function Tl(r,e){V.useEffect(()=>{const t=a=>{const n=r==null?void 0:r.current;!n||n.contains(a.target)||e(a)};return document.addEventListener("mousedown",t),document.addEventListener("touchstart",t),()=>{document.removeEventListener("mousedown",t),document.removeEventListener("touchstart",t)}},[r,e])}const zl=z("absolute top-full left-0 z-50 min-w-[200px] overflow-hidden rounded-[8px] border border-[var(--color-gray-200)] bg-[var(--color-white)] shadow-lg focus:outline-none",{variants:{align:{start:"left-0",end:"right-0 left-auto",center:"left-1/2 -translate-x-1/2"},attached:{true:"mt-0 rounded-t-none border-t-0",false:"mt-2"}},defaultVariants:{align:"start",attached:!1}}),Al=z("flex w-full cursor-pointer items-center px-3 py-2 text-[0.875rem] text-[var(--color-gray-800)] transition-colors hover:bg-[var(--color-gray-50)] focus:bg-[var(--color-gray-50)] focus:outline-none disabled:pointer-events-none disabled:opacity-50",{variants:{active:{true:"bg-[var(--color-gray-50)] text-[var(--color-gray-1000)]"},variant:{default:"",destructive:"text-[var(--color-red-1000)] hover:bg-[var(--color-red-200)] focus:bg-[var(--color-red-200)]"}},defaultVariants:{variant:"default",active:!1}}),Nl=z("px-3 py-1 text-[0.625rem] font-bold text-[var(--color-gray-600)] uppercase tracking-wider select-none"),Dl=z("h-px bg-[var(--color-gray-200)] my-1"),Qn=V.createContext(void 0),Ft=()=>{const r=V.useContext(Qn);if(!r)throw new Error("useDropdown must be used within a Dropdown");return r},Wr=({children:r,defaultOpen:e=!1,open:t,onOpenChange:a,className:n,...s})=>{const[o,l]=V.useState(e),u=t!==void 0,d=u?t:o,f=V.useRef(null),g=()=>{const w=!d;u||l(w),a==null||a(w)},x=()=>{u||l(!1),a==null||a(!1)};return Tl(f,x),h.jsx(Qn.Provider,{value:{isOpen:d,toggle:g,close:x},children:h.jsx("div",{ref:f,className:G("relative inline-block text-left",n),...s,children:r})})};Wr.displayName="Dropdown";const Xr=V.forwardRef(({className:r,children:e,onClick:t,...a},n)=>{const{toggle:s,isOpen:o}=Ft(),l=u=>{s(),t==null||t(u)};return h.jsx("div",{ref:n,className:G("cursor-pointer inline-block",r),onClick:l,"aria-haspopup":"true","aria-expanded":o,...a,children:e})});Xr.displayName="DropdownTrigger";const Yr=V.forwardRef(({className:r,align:e="start",attached:t=!1,children:a,...n},s)=>{const{isOpen:o}=Ft();return h.jsx(ye.AnimatePresence,{children:o&&h.jsx(ye.motion.div,{ref:s,initial:{opacity:0,y:-4,scale:.98},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:-4,scale:.98},transition:{duration:.2,ease:[.16,1,.3,1]},style:{transformOrigin:"top center"},className:G(zl({align:e,attached:t}),r),...n,children:a})})});Yr.displayName="DropdownContent";const Zr=V.forwardRef(({className:r,active:e,variant:t,closeOnSelect:a=!0,children:n,onClick:s,...o},l)=>{const{close:u}=Ft(),d=f=>{s==null||s(f),a&&u()};return h.jsx("div",{ref:l,className:G(Al({active:e,variant:t}),r),onClick:d,role:"menuitem",...o,children:n})});Zr.displayName="DropdownItem";const El=V.forwardRef(({className:r,children:e,...t},a)=>h.jsx("div",{ref:a,className:G(Nl(),r),...t,children:e}));El.displayName="DropdownLabel";const Rl=V.forwardRef(({className:r,animated:e=!1,animationDelay:t=.2,...a},n)=>e?h.jsx("div",{ref:n,className:G("h-px my-1 overflow-hidden",r),...a,children:h.jsx(ye.motion.div,{className:"h-full bg-[var(--color-gray-200)]",initial:{width:0},animate:{width:"100%"},transition:{duration:.3,ease:[.16,1,.3,1],delay:t}})}):h.jsx("div",{ref:n,className:G(Dl(),r),...a}));Rl.displayName="DropdownSeparator";const Bl=z("w-full bg-[var(--color-white)] border border-solid rounded-[8px] font-normal transition-colors duration-200 box-border focus:outline-none disabled:cursor-not-allowed disabled:opacity-50",{variants:{status:{default:"border-[var(--color-gray-200)] text-[var(--color-gray-600)] placeholder:text-[var(--color-gray-600)] focus:border-[var(--color-blue-1000)] focus:text-[var(--color-blue-1000)]",error:"border-[var(--color-red-1000)] text-[var(--color-red-1000)] placeholder:text-[var(--color-red-1000)] focus:border-[var(--color-red-1000)]",success:"border-[var(--color-green-1000)] text-[var(--color-green-1000)] placeholder:text-[var(--color-green-1000)] focus:border-[var(--color-green-1000)]"},size:{medium:"px-4 py-4 text-[1rem] leading-[1.5rem]",small:"px-3 py-2 text-[0.875rem] leading-[1.25rem]",tiny:"p-2 text-[0.75rem] leading-[1rem]"}},defaultVariants:{status:"default",size:"medium"}}),Ll=z("relative w-full",{variants:{size:{medium:"",small:"",tiny:""}},defaultVariants:{size:"medium"}}),za=z("absolute top-1/2 -translate-y-1/2 pointer-events-none flex items-center justify-center",{variants:{status:{default:"text-[var(--color-gray-600)]",error:"text-[var(--color-red-1000)]",success:"text-[var(--color-green-1000)]"},position:{start:"",end:""},size:{medium:"size-[24px]",small:"size-[16px]",tiny:"size-[16px]"}},compoundVariants:[{position:"start",size:"medium",className:"left-4"},{position:"start",size:"small",className:"left-3"},{position:"start",size:"tiny",className:"left-2"},{position:"end",size:"medium",className:"right-4"},{position:"end",size:"small",className:"right-3"},{position:"end",size:"tiny",className:"right-2"}],defaultVariants:{status:"default",size:"medium",position:"end"}}),es=V.forwardRef(({className:r,status:e="default",size:t="medium",startIcon:a,endIcon:n,disabled:s,...o},l)=>{const u={medium:"pl-12",small:"pl-9",tiny:"pl-8"},d={medium:"pr-12",small:"pr-9",tiny:"pr-8"};return h.jsxs("div",{className:Ll({size:t}),children:[a&&h.jsx("span",{className:za({status:e,size:t,position:"start"}),children:a}),h.jsx("input",{ref:l,className:G(Bl({status:e,size:t}),a&&u[t],n&&d[t],r),disabled:s,...o}),n&&h.jsx("span",{className:za({status:e,size:t,position:"end"}),children:n})]})});es.displayName="Input";const jl=z("flex flex-col items-center justify-center"),Il=z("relative",{variants:{size:{sm:"w-8 h-8",md:"w-12 h-12",lg:"w-16 h-16"}},defaultVariants:{size:"lg"}}),Pl=z("absolute inset-0 rounded-full border-4 border-transparent animate-spin",{variants:{color:{primary:"border-t-[var(--color-blue-800)]",secondary:"border-t-[var(--color-gray-600)]"}},defaultVariants:{color:"primary"}}),Ol=z("mt-4 typography-small",{variants:{color:{primary:"text-[var(--color-gray-1000)]",muted:"text-[var(--color-gray-600)]"}},defaultVariants:{color:"muted"}}),Fl=({size:r="lg",color:e="primary",text:t,textColor:a="muted"})=>h.jsxs("div",{className:jl(),children:[h.jsx("div",{className:Il({size:r}),children:h.jsx("div",{className:Pl({color:e})})}),t&&h.jsx("p",{className:Ol({color:a}),children:t})]}),Aa=z("relative flex flex-col w-full max-w-[668px] transition-colors duration-200 group",{variants:{variant:{user:"",assistant:"",system:"",loader:""},alignment:{left:"items-start",center:"items-center",right:"items-end"}},compoundVariants:[{variant:"user",alignment:void 0,className:"items-end"},{variant:"assistant",alignment:void 0,className:"items-start"},{variant:"system",alignment:void 0,className:"items-start"},{variant:"loader",alignment:void 0,className:"items-start"}],defaultVariants:{variant:"user"}}),ql=z("flex gap-[12px] items-start w-full"),Hl=z("flex flex-col flex-1 min-w-0"),Na=z("flex flex-col w-full transition-colors duration-200",{variants:{variant:{user:"bg-[var(--color-white)] border border-[var(--color-gray-200)] rounded-[16px] p-[16px] gap-[24px]",assistant:"bg-transparent p-[8px] gap-[8px]",system:"bg-transparent p-[8px] gap-[8px]",loader:"bg-transparent p-[8px] gap-[24px]"},isSticky:{true:"shadow-[0px_8px_16px_-4px_rgba(0,0,0,0.1),0px_4px_8px_-4px_rgba(0,0,0,0.06)]",false:""}},defaultVariants:{variant:"user",isSticky:!1}}),Vl=z("flex w-full",{variants:{variant:{user:"flex-col gap-[8px]",assistant:"flex-col gap-[8px]",system:"flex-row items-center gap-[8px]",loader:"flex-col items-start"}},defaultVariants:{variant:"user"}}),_l=z("typography-h4 text-[var(--color-blue-1000)]"),Da=z("typography-small",{variants:{variant:{user:"text-[var(--color-blue-1000)]",assistant:"text-[var(--color-blue-1000)]",system:"text-[var(--color-gray-600)]",loader:""}},defaultVariants:{variant:"user"}}),Gl=z("flex gap-[8px] p-[4px] rounded-[4px] opacity-0 group-hover:opacity-100 transition-opacity duration-200",{variants:{variant:{user:"",assistant:"",system:"hidden",loader:"hidden"}},defaultVariants:{variant:"user"}}),Ul=z("p-1 rounded-[4px] text-[var(--color-gray-400)] hover:text-[var(--color-gray-800)] hover:drop-shadow-[0_1px_2px_rgba(0,0,0,0.15)] transition-all duration-200 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[var(--color-blue-800)]",{variants:{isActive:{true:"text-[var(--color-blue-800)]",false:""}},defaultVariants:{isActive:!1}}),$l=z("flex items-start justify-center shrink-0 pt-[4px]"),Wl=z("flex items-center justify-center size-[32px] rounded-full bg-[var(--color-blue-1000)]"),Xl=z("text-[12px] text-[var(--color-gray-600)] mt-[4px]"),Yl=z("flex items-center justify-center"),Zl=z("relative overflow-hidden flex items-center gap-[8px] py-[2px] select-none"),Kl=z(["absolute -inset-y-2 -inset-x-4","animate-shimmer","bg-[linear-gradient(90deg,transparent_0%,transparent_35%,rgba(255,255,255,0.4)_50%,transparent_65%,transparent_100%)]","blur-[1px]","z-10 pointer-events-none"]),Jl=z(["relative shrink-0 flex items-center justify-center","text-[var(--color-gray-600)]","animate-signal-rhythm","origin-center"]),Ql=z(["absolute inset-0","bg-[var(--color-blue-200)]","rounded-full","opacity-0","animate-ping-slow","-z-10"]),Ea=({onClick:r,icon:e,label:t,className:a,isActive:n=!1})=>h.jsx("button",{className:G(Ul({isActive:n}),a),onClick:r,type:"button","aria-label":t,children:h.jsx(e,{size:12})}),e1=()=>{const[r,e]=V.useState(0);return V.useEffect(()=>{const t=setInterval(()=>{e(a=>a+1)},2500);return()=>clearInterval(t)},[]),h.jsx("div",{className:G(Yl()),children:h.jsx(Ur,{size:28,colorVariant:"lightTeal",animated:!0,animationDuration:2},r)})},ts=V.forwardRef(({className:r,variant:e="user",heading:t,children:a,isLoading:n,timestamp:s,hideAvatar:o=!1,showTimestamp:l=!1,isSticky:u=!1,isInitialPrompt:d=!1,alignment:f,actions:g=[],enableCopy:x=!1,copyIcon:w,onCopySuccess:M,...k},A)=>{const N=V.useRef(null),[E,R]=V.useState(!1),P=f??(e==="user"?d?"center":"right":"left"),O=async()=>{if(!N.current)return;const _=N.current.innerText;try{navigator.clipboard&&navigator.clipboard.writeText?(await navigator.clipboard.writeText(_),R(!0),M==null||M(),setTimeout(()=>{R(!1)},2e3)):console.warn("Clipboard API not available")}catch(le){console.error("Failed to copy:",le)}},Y=_=>{const le=typeof _=="string"?new Date(_):_,ae=new Date().getTime()-le.getTime(),be=Math.floor(ae/6e4);if(be<1)return"Just now";if(be<60)return`${be} min ago`;const ne=Math.floor(be/60);return ne<24?`${ne}h ago`:le.toLocaleDateString()},q=g.length>0||x,j=!u&&(e==="user"||e==="assistant")&&q;return e==="loader"||n?h.jsx("div",{ref:A,className:G(Aa({variant:"loader",alignment:"left"}),r),...k,children:h.jsx("div",{className:G(Na({variant:"loader",isSticky:u})),children:h.jsx(e1,{})})}):h.jsx("div",{ref:A,className:G(Aa({variant:e,alignment:P}),"group",r),...k,children:h.jsxs("div",{className:G(ql()),children:[!o&&e==="assistant"&&h.jsx("div",{className:G($l()),children:h.jsx("div",{className:G(Wl()),children:h.jsx(Gr,{size:20,colorVariant:"lightTeal"})})}),h.jsxs("div",{className:G(Hl()),children:[h.jsx("div",{className:G(Na({variant:e,isSticky:u})),children:h.jsx("div",{className:G(Vl({variant:e})),ref:N,children:e==="system"?h.jsxs("div",{className:G(Zl()),children:[h.jsx("div",{className:G(Kl())}),h.jsxs("div",{className:G(Jl()),children:[h.jsx(p.Activity,{size:16}),h.jsx("div",{className:G(Ql())})]}),h.jsx("span",{className:G(Da({variant:e})),children:a})]}):h.jsxs(h.Fragment,{children:[e==="assistant"&&t&&h.jsx("h4",{className:G(_l()),children:t}),h.jsx("div",{className:G(Da({variant:e})),children:a})]})})}),l&&s&&h.jsx("div",{className:G(Xl()),children:Y(s)}),j&&h.jsxs("div",{className:G(Gl({variant:e})),children:[x&&w&&h.jsx(Ea,{onClick:O,icon:E?p.Check:w,label:E?"Copied":"Copy",isActive:E}),g.map((_,le)=>h.jsx(Ea,{onClick:_.onClick,icon:_.icon,label:_.label,isActive:_.isActive},`${_.label}-${le}`))]})]})]})})});ts.displayName="MessageBubble";const t1=z("w-full overflow-hidden rounded-full bg-[var(--color-gray-200)]",{variants:{size:{small:"h-1",medium:"h-2",large:"h-3"}},defaultVariants:{size:"medium"}}),r1=z("h-full w-full flex-1 transition-all duration-300 ease-in-out rounded-full",{variants:{variant:{default:"bg-[var(--color-blue-800)]",success:"bg-[var(--color-green-1000)]",error:"bg-[var(--color-red-1000)]",warning:"bg-[var(--color-amber-1000)]"}},defaultVariants:{variant:"default"}}),a1=z("flex justify-between mb-2 text-[var(--color-gray-800)]",{variants:{size:{small:"text-xs",medium:"text-sm",large:"text-base"}},defaultVariants:{size:"medium"}}),rs=V.forwardRef(({className:r,value:e=0,max:t=100,variant:a="default",size:n="medium",showValueLabel:s=!1,label:o,valueFormatter:l,...u},d)=>{const f=Math.min(Math.max(e/t*100,0),100),g=l?l(e,t):`${Math.round(f)}%`;return h.jsxs("div",{ref:d,className:G("w-full",r),role:"progressbar","aria-valuemin":0,"aria-valuemax":t,"aria-valuenow":e,...u,children:[(o||s)&&h.jsxs("div",{className:a1({size:n}),children:[o&&h.jsx("span",{className:"font-medium",children:o}),s&&h.jsx("span",{className:"ml-auto",children:g})]}),h.jsx("div",{className:t1({size:n}),children:h.jsx("div",{className:r1({variant:a}),style:{transform:`translateX(-${100-f}%)`}})})]})});rs.displayName="ProgressBar";const n1=z(["w-full h-2 rounded-lg appearance-none cursor-pointer","focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2","disabled:cursor-not-allowed disabled:opacity-50","[&::-webkit-slider-thumb]:appearance-none","[&::-webkit-slider-thumb]:w-5 [&::-webkit-slider-thumb]:h-5","[&::-webkit-slider-thumb]:bg-[var(--color-white)]","[&::-webkit-slider-thumb]:border-2","[&::-webkit-slider-thumb]:rounded-full","[&::-webkit-slider-thumb]:shadow-sm","[&::-webkit-slider-thumb]:transition-all [&::-webkit-slider-thumb]:duration-200","[&::-webkit-slider-thumb]:hover:scale-110","[&::-moz-range-thumb]:w-5 [&::-moz-range-thumb]:h-5","[&::-moz-range-thumb]:bg-[var(--color-white)]","[&::-moz-range-thumb]:border-2","[&::-moz-range-thumb]:rounded-full","[&::-moz-range-thumb]:shadow-sm","[&::-moz-range-thumb]:transition-all [&::-moz-range-thumb]:duration-200","[&::-moz-range-thumb]:hover:scale-110"].join(" "),{variants:{variant:{cyan:["focus-visible:ring-[var(--color-blue-800)]","[&::-webkit-slider-thumb]:border-[var(--color-gray-200)] [&::-webkit-slider-thumb]:hover:border-[var(--color-blue-800)]","[&::-moz-range-thumb]:border-[var(--color-gray-200)] [&::-moz-range-thumb]:hover:border-[var(--color-blue-800)]"],orange:["focus-visible:ring-[var(--color-orange-800)]","[&::-webkit-slider-thumb]:border-[var(--color-gray-200)] [&::-webkit-slider-thumb]:hover:border-[var(--color-orange-800)]","[&::-moz-range-thumb]:border-[var(--color-gray-200)] [&::-moz-range-thumb]:hover:border-[var(--color-orange-800)]"]},animated:{true:["[&::-webkit-slider-thumb]:animate-pulse","[&::-moz-range-thumb]:animate-pulse"],false:[]}},defaultVariants:{variant:"cyan",animated:!1}}),as=V.forwardRef(({className:r,variant:e="cyan",animated:t=!1,style:a,...n},s)=>{const{min:o=0,max:l=100,value:u,defaultValue:d}=n,f=Number(u??d??0),g=Number(o),x=Number(l),w=Math.min(Math.max((f-g)*100/(x-g),0),100),M=e==="orange"?"var(--color-orange-800)":"var(--color-blue-800)",k=`linear-gradient(to right, ${M} 0%, ${M} ${w}%, var(--color-gray-200) ${w}%, var(--color-gray-200) 100%)`;return h.jsx("input",{ref:s,type:"range",className:G(n1({variant:e,animated:t}),r),style:{background:k,...a},...n})});as.displayName="RangeInput";const s1=z("box-border flex cursor-pointer transition-all duration-200",{variants:{type:{collapsed:"flex-col items-center justify-center w-[64px] py-[6px] px-[4px] gap-[4px] rounded-[4px]",expanded:"flex-row items-center w-full h-[32px] px-[4px] py-[6px] gap-[8px] rounded-[4px]"},variant:{default:"text-[var(--color-gray-800)] hover:bg-[var(--color-gray-100)]",active:"text-[var(--color-blue-800)] bg-gradient-to-r from-[rgba(21,177,205,0.08)] to-[rgba(21,177,205,0.08)]",brand:"h-[44px] rounded-[24px] bg-transparent hover:bg-transparent"}},compoundVariants:[{type:"collapsed",variant:"active",className:"bg-gradient-to-r from-[rgba(21,177,205,0.08)] to-[rgba(21,177,205,0.08)]"}],defaultVariants:{type:"expanded",variant:"default"}}),o1=z("relative shrink-0 flex items-center justify-center",{variants:{type:{collapsed:"size-[16px]",expanded:"size-[16px]"},variant:{default:"text-[var(--color-gray-800)]",active:"text-[var(--color-blue-800)]",brand:"text-[var(--color-blue-1000)] size-[24px]"}},defaultVariants:{type:"expanded",variant:"default"}}),i1=z("font-normal whitespace-nowrap shrink-0",{variants:{type:{collapsed:"text-[8px] leading-[10px] text-center min-w-full",expanded:"text-[14px] leading-[20px]"},variant:{default:"text-[var(--color-gray-800)]",active:"text-[var(--color-blue-800)]",brand:"hidden"}},defaultVariants:{type:"expanded",variant:"default"}}),ns=V.forwardRef(({className:r,icon:e,label:t,isCollapsed:a=!1,isActive:n=!1,variant:s="default",onClick:o,children:l,...u},d)=>{const f=a?"collapsed":"expanded",g=n?"active":s,x=w=>{o&&(w.key==="Enter"||w.key===" ")&&(w.preventDefault(),o())};return h.jsxs("div",{ref:d,className:G(s1({type:f,variant:g}),r),role:"button",tabIndex:0,"aria-label":t,onClick:o,onKeyDown:x,...u,children:[e&&h.jsx("div",{className:G(o1({type:f,variant:g})),children:e}),(s!=="brand"||!a)&&h.jsx("span",{className:G(i1({type:f,variant:g})),children:t})]})});ns.displayName="SidebarItem";const l1=z("inline-flex items-center justify-center rounded-[4px] whitespace-nowrap transition-colors duration-200 box-border",{variants:{variant:{default:"border border-[var(--color-gray-200)] bg-[var(--color-gray-100)] px-2 py-[2px] text-[var(--color-gray-800)] gap-1",collaborator:"border border-[var(--color-gray-200)] bg-[var(--color-gray-100)] px-2 py-[2px] text-[var(--color-gray-800)] gap-1",indicator:"bg-[var(--color-gray-100)] px-[2px] h-[12px] gap-[4px] text-[var(--color-gray-600)]",error:"bg-[var(--color-red-200)] px-[2px] h-[12px] gap-[4px] text-[var(--color-red-1000)]"}},defaultVariants:{variant:"default"}}),c1=z("w-4 h-4 rounded-full object-cover shrink-0"),Ra=z("flex items-center justify-center shrink-0"),G0=V.forwardRef(({className:r,variant:e="default",startIcon:t,endIcon:a,avatarSrc:n,children:s,...o},l)=>h.jsxs("div",{ref:l,className:G(l1({variant:e}),r),...o,children:[n&&h.jsx("img",{src:n,alt:"avatar",className:c1()}),t&&h.jsx("span",{className:Ra(),children:t}),h.jsx(i0,{variant:"tag",color:"inherit",className:"whitespace-nowrap",children:s}),a&&h.jsx("span",{className:Ra(),children:a})]}));G0.displayName="Tag";const u1=z("inline-flex h-8 items-center justify-start rounded-none bg-transparent p-0 text-muted-foreground w-full relative"),d1=z("inline-flex items-center justify-center whitespace-nowrap px-2 py-2 text-[10px] leading-4 font-normal ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-transparent data-[state=active]:text-[var(--color-blue-1000)] data-[state=active]:shadow-none border-b border-[var(--color-gray-200)] data-[state=active]:border-[var(--color-blue-1000)] text-[var(--color-gray-600)] gap-2 hover:bg-[var(--color-gray-50)] hover:text-[var(--color-gray-800)] cursor-pointer group relative",{variants:{variant:{default:""}},defaultVariants:{variant:"default"}}),m1=z("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2"),h1=z("absolute bottom-0 left-0 right-0 h-[2px] bg-[var(--color-blue-1000)]"),f1=z("flex items-center gap-[2px]"),Ba=z("group-data-[state=active]:text-[var(--color-blue-1000)]"),p1=R0.Root,ss=T.forwardRef(({className:r,...e},t)=>h.jsx(R0.List,{ref:t,className:G(u1(),r),...e}));ss.displayName=R0.List.displayName;const os=T.forwardRef(({className:r,children:e,errorCount:t,configurationCount:a,...n},s)=>{const[o,l]=T.useState(!1),u=T.useRef(null);T.useEffect(()=>{const f=u.current;if(!f)return;const g=new MutationObserver(()=>{l(f.getAttribute("data-state")==="active")});return g.observe(f,{attributes:!0,attributeFilter:["data-state"]}),l(f.getAttribute("data-state")==="active"),()=>g.disconnect()},[]);const d=T.useCallback(f=>{u.current=f,typeof s=="function"?s(f):s&&(s.current=f)},[s]);return h.jsxs(R0.Trigger,{ref:d,className:G(d1(),r),...n,children:[e,(a!==void 0||t!==void 0)&&h.jsxs("div",{className:f1(),children:[a!==void 0&&h.jsx(G0,{variant:"indicator",startIcon:h.jsx(p.Settings,{size:10,className:"text-[#15B1CD]"}),className:Ba(),children:a}),t!==void 0&&h.jsx(G0,{variant:"indicator",startIcon:h.jsx(p.TriangleAlert,{size:10,className:"text-[#FB6060]"}),className:Ba(),children:t})]}),h.jsx(ye.motion.div,{className:h1(),initial:!1,animate:{scaleX:o?1:0,opacity:o?1:0},transition:{duration:.3,ease:"easeInOut"},style:{originX:0}})]})});os.displayName=R0.Trigger.displayName;const is=T.forwardRef(({className:r,...e},t)=>h.jsx(R0.Content,{ref:t,className:G(m1(),r),...e,asChild:!0,children:h.jsx(ye.motion.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2,ease:"easeOut"},children:e.children})}));is.displayName=R0.Content.displayName;const v1=z("w-full bg-[var(--color-white)] border border-solid rounded-[8px] font-normal transition-colors duration-200 box-border focus:outline-none disabled:cursor-not-allowed disabled:opacity-50 min-h-[80px]",{variants:{status:{default:"border-[var(--color-gray-200)] text-[var(--color-gray-600)] placeholder:text-[var(--color-gray-600)] focus:border-[var(--color-blue-1000)] focus:text-[var(--color-blue-1000)]",error:"border-[var(--color-red-1000)] text-[var(--color-red-1000)] placeholder:text-[var(--color-red-1000)] focus:border-[var(--color-red-1000)]",success:"border-[var(--color-green-1000)] text-[var(--color-green-1000)] placeholder:text-[var(--color-green-1000)] focus:border-[var(--color-green-1000)]"},size:{medium:"px-4 py-4 text-[1rem] leading-[1.5rem]",small:"px-3 py-2 text-[0.875rem] leading-[1.25rem]",tiny:"p-2 text-[0.75rem] leading-[1rem]"},resize:{none:"resize-none",vertical:"resize-y",horizontal:"resize-x",both:"resize"}},defaultVariants:{status:"default",size:"medium",resize:"vertical"}}),g1=z("relative w-full",{variants:{size:{medium:"",small:"",tiny:""}},defaultVariants:{size:"medium"}}),ls=V.forwardRef(({className:r,status:e="default",size:t="medium",resize:a="vertical",disabled:n,...s},o)=>h.jsx("div",{className:g1({size:t}),children:h.jsx("textarea",{ref:o,className:G(v1({status:e,size:t,resize:a}),r),disabled:n,...s})}));ls.displayName="TextArea";const b1=z("inline-flex items-center gap-1 font-sans whitespace-nowrap",{variants:{size:{small:"text-[0.625rem] leading-[1rem]",medium:"text-[0.75rem] leading-[1rem]",large:"text-[0.875rem] leading-[1.25rem]"},variant:{default:"text-[var(--color-gray-600)]",primary:"text-[var(--color-gray-800)]",muted:"text-[var(--color-gray-600)]"}},defaultVariants:{size:"medium",variant:"default"}}),y1=z("flex items-center justify-center shrink-0",{variants:{size:{small:"[&>svg]:w-[10px] [&>svg]:h-[10px]",medium:"[&>svg]:w-[12px] [&>svg]:h-[12px]",large:"[&>svg]:w-[14px] [&>svg]:h-[14px]"}},defaultVariants:{size:"medium"}}),x1=(r,e)=>{const t=e.getTime()-r.getTime(),a=Math.floor(t/1e3),n=Math.floor(a/60),s=Math.floor(n/60),o=Math.floor(s/24),l=Math.floor(o/7),u=Math.floor(o/30),d=Math.floor(o/365),f=t<0,g=Math.abs(a),x=Math.abs(n),w=Math.abs(s),M=Math.abs(o),k=Math.abs(l),A=Math.abs(u),N=Math.abs(d),E=(R,P)=>{const O=R===1?"":"s";return f?`in ${R} ${P}${O}`:`${R} ${P}${O} ago`};return g<60?"just now":x<60?E(x,"minute"):w<24?E(w,"hour"):M===1?f?"tomorrow":"yesterday":M<7?E(M,"day"):k<4?E(k,"week"):A<12?E(A,"month"):E(N,"year")},w1=(r,e,t)=>{switch(e){case"relative":return x1(r,new Date);case"short":return r.toLocaleDateString(t,{month:"short",day:"numeric",year:"numeric"});case"long":return r.toLocaleDateString(t,{month:"long",day:"numeric",year:"numeric"});case"time":return r.toLocaleTimeString(t,{hour:"numeric",minute:"2-digit",hour12:!0});case"datetime":return r.toLocaleDateString(t,{month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit",hour12:!0});default:return r.toLocaleDateString(t)}},S1=r=>r instanceof Date?r:typeof r=="number"?new Date(r):new Date(r),cs=V.forwardRef(({className:r,date:e,format:t="relative",size:a="medium",variant:n="default",showIcon:s=!1,locale:o="en-US",...l},u)=>{const d=V.useMemo(()=>S1(e),[e]),f=V.useMemo(()=>w1(d,t,o),[d,t,o]),g=V.useMemo(()=>d.toISOString(),[d]),x=n==="primary"?"var(--color-gray-800)":"var(--color-gray-600)",w=a==="small"?10:a==="large"?14:12;return h.jsxs("time",{ref:u,dateTime:g,className:G(b1({size:a,variant:n}),r),...l,children:[s&&h.jsx("span",{className:y1({size:a}),children:h.jsx(p.ClockHistory,{size:w,color:x})}),f]})});cs.displayName="Timestamp";const k1=z("flex min-w-[420px] w-fit max-w-[850px] pl-4 pr-3 py-3 rounded-[12px] shadow-xl border pointer-events-auto gap-2 relative items-center bg-white",{variants:{variant:{info:"bg-[linear-gradient(90deg,rgba(21,177,205,0.08)_0%,rgba(21,177,205,0.08)_100%),linear-gradient(90deg,rgb(255,255,255)_0%,rgb(255,255,255)_100%)] border-[var(--color-blue-800)]",success:"bg-[linear-gradient(90deg,rgba(113,212,129,0.08)_0%,rgba(113,212,129,0.08)_100%),linear-gradient(90deg,rgb(255,255,255)_0%,rgb(255,255,255)_100%)] border-[var(--color-green-1000)]",warning:"bg-[linear-gradient(90deg,rgba(242,229,40,0.08)_0%,rgba(242,229,40,0.08)_100%),linear-gradient(90deg,rgb(255,255,255)_0%,rgb(255,255,255)_100%)] border-[var(--color-orange-800)]",error:"bg-[linear-gradient(90deg,rgba(251,96,96,0.08)_0%,rgba(251,96,96,0.08)_100%),linear-gradient(90deg,rgb(255,255,255)_0%,rgb(255,255,255)_100%)] border-[var(--color-red-1000)]",prompt:"bg-[var(--color-gray-50)] border-[var(--color-blue-1000)]"}},defaultVariants:{variant:"info"}}),C1=z("flex-shrink-0",{variants:{variant:{info:"text-[var(--color-blue-800)]",success:"text-[var(--color-green-1000)]",warning:"text-[var(--color-orange-800)]",error:"text-[var(--color-red-1000)]",prompt:"text-[var(--color-blue-1000)]"}},defaultVariants:{variant:"info"}}),M1=z("flex items-center gap-1 flex-1"),T1=z("font-bold text-[var(--color-blue-1000)] text-[0.75rem] leading-normal"),z1=z("font-normal text-[var(--color-blue-1000)] text-[0.75rem] leading-normal"),A1=z("flex items-center gap-2 shrink-0"),N1=z("w-[1px] self-stretch flex-shrink-0 bg-current",{variants:{variant:{info:"text-[var(--color-blue-800)]",success:"text-[var(--color-green-1000)]",warning:"text-[var(--color-orange-800)]",error:"text-[var(--color-red-1000)]",prompt:"text-[var(--color-blue-1000)]"}},defaultVariants:{variant:"info"}}),D1=z("p-0 bg-transparent border-none text-[var(--color-blue-1000)] hover:opacity-70 transition-opacity flex items-center justify-center w-4 h-4 shrink-0 cursor-pointer"),E1={info:p.Info,success:p.CheckCircle,warning:p.TriangleAlert,error:p.AlertCircle,prompt:p.Sparks},R1={info:"var(--color-blue-800)",success:"var(--color-green-1000)",warning:"var(--color-orange-800)",error:"var(--color-red-1000)",prompt:"var(--color-blue-800)"},N0=({id:r,variant:e="info",title:t,description:a,icon:n,action:s,secondaryAction:o,onClose:l})=>{const u=E1[e],d=R1[e],f=()=>{l&&l(),r&&s0.toast.dismiss(r)},g=w=>M=>{w(M),r&&s0.toast.dismiss(r)},x=()=>n||(e==="success"?h.jsx(p.CheckCircle,{size:16,color:d}):e==="error"?h.jsx(p.AlertCircle,{size:16,color:d}):e==="prompt"?h.jsx(p.Sparks,{size:16,color:d}):h.jsx(u,{size:16}));return h.jsxs("div",{className:G(k1({variant:e})),role:"alert",children:[h.jsx("div",{className:C1({variant:e}),children:x()}),h.jsxs("div",{className:M1(),children:[h.jsx("span",{className:T1(),children:t}),a&&h.jsx("span",{className:z1(),children:a})]}),h.jsx("div",{className:N1({variant:e})}),h.jsxs("div",{className:A1(),children:[o&&h.jsx(_0,{onClick:g(o.onClick),variant:"tertiary",size:"small",startIcon:o.icon||h.jsx(p.Trash,{size:13,color:"currentColor"}),className:"w-auto",children:o.label}),s&&h.jsx(_0,{onClick:g(s.onClick),variant:"primary",size:"small",startIcon:s.icon||h.jsx(p.Check,{size:13,color:"currentColor"}),className:"w-auto",children:s.label}),h.jsx("button",{onClick:f,className:D1(),"aria-label":"Close",children:h.jsx(p.X,{size:16})})]})]})},B1=({position:r="bottom-right",offset:e=24,gap:t=8,width:a,...n})=>h.jsx(s0.Toaster,{position:r,offset:e,gap:t,toastOptions:{unstyled:!0,classNames:{toast:G("bg-transparent p-0",a?"":"w-auto")},style:a?{width:typeof a=="number"?`${a}px`:a}:void 0},...n}),L1={success:(r,e,t)=>s0.toast.custom(a=>h.jsx(N0,{id:a,variant:"success",title:r,description:e,action:t})),error:(r,e,t)=>s0.toast.custom(a=>h.jsx(N0,{id:a,variant:"error",title:r,description:e,action:t})),warning:(r,e,t)=>s0.toast.custom(a=>h.jsx(N0,{id:a,variant:"warning",title:r,description:e,action:t})),info:(r,e,t)=>s0.toast.custom(a=>h.jsx(N0,{id:a,variant:"info",title:r,description:e,action:t})),prompt:(r,e,t,a)=>s0.toast.custom(n=>h.jsx(N0,{id:n,variant:"prompt",title:r,description:e,action:t,secondaryAction:a})),custom:r=>s0.toast.custom(e=>h.jsx(N0,{id:e,...r}))},j1=z("flex items-center gap-3"),I1=z("text-[var(--color-gray-1000)] font-medium select-none"),P1=z("relative inline-flex h-[24px] w-[44px] shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 disabled:cursor-not-allowed disabled:opacity-50",{variants:{enabled:{true:"bg-[var(--color-blue-800)] focus-visible:outline-[var(--color-blue-800)]",false:"bg-[var(--color-gray-200)]"}},defaultVariants:{enabled:!1}}),O1=z("pointer-events-none inline-block h-[20px] w-[20px] transform rounded-full bg-[var(--color-white)] shadow-lg ring-0 transition duration-200 ease-in-out",{variants:{enabled:{true:"translate-x-[20px]",false:"translate-x-0"}},defaultVariants:{enabled:!1}}),us=V.forwardRef(({enabled:r,onChange:e,label:t,className:a,disabled:n,...s},o)=>h.jsxs("div",{className:G(j1(),a),children:[t&&h.jsx(i0,{variant:"small",className:I1(),children:t}),h.jsx("button",{ref:o,type:"button",role:"switch","aria-checked":r,disabled:n,onClick:()=>!n&&e(!r),className:P1({enabled:r}),...s,children:h.jsx("span",{className:O1({enabled:r})})})]}));us.displayName="Toggle";const F1=z("flex items-center justify-between w-full gap-2 min-h-[20px]"),q1=z("text-xs font-normal font-sans leading-4 whitespace-nowrap",{variants:{status:{success:"text-[var(--color-gray-800)]",warning:"text-[var(--color-gray-800)]",error:"text-[var(--color-gray-800)]",info:"text-[var(--color-gray-800)]",neutral:"text-[var(--color-gray-800)]",loading:"text-[var(--color-gray-800)]"}},defaultVariants:{status:"neutral"}}),H1={success:"var(--color-green-1000)",warning:"var(--color-orange-800)",error:"var(--color-red-1000)",info:"var(--color-blue-800)",neutral:"var(--color-gray-600)",loading:"var(--color-blue-800)"},ds=V.forwardRef(({className:r,status:e="neutral",message:t,...a},n)=>{const s=e==="loading"?"info":e,o=H1[e],l=()=>e==="loading"?h.jsx(p.Loader,{size:16,color:o,className:"animate-spin"}):e==="success"?h.jsx(p.CheckCircle,{size:16,color:o}):e==="warning"?h.jsx(p.TriangleAlert,{size:16,color:o}):e==="error"?h.jsx(p.AlertCircle,{size:16,color:o}):e==="info"?h.jsx(p.Info,{size:16,color:o}):null;return h.jsxs("div",{ref:n,className:G(F1(),r),...a,children:[h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx(_r,{variant:s,size:"small"}),h.jsx("span",{className:q1({status:e}),children:t})]}),h.jsx("div",{className:"w-4 h-4 flex items-center justify-center",children:l()})]})});ds.displayName="StatusMessage";const V1=z("flex items-center justify-between w-full gap-2 min-h-[20px]"),_1=z("flex items-center gap-2"),G1=z("text-[12px] font-normal font-sans leading-[16px]",{variants:{status:{running:"text-[var(--color-gray-800)]",completed:"text-[var(--color-gray-800)]",stopped:"text-[var(--color-blue-800)]"}},defaultVariants:{status:"running"}}),La=z("w-4 h-4 flex items-center justify-center shrink-0"),U1={running:"var(--color-gray-800)",completed:"var(--color-gray-800)",stopped:"var(--color-blue-800)"},$1={running:"var(--color-gray-800)",completed:"var(--color-green-1000)",stopped:"var(--color-blue-800)"},ms=V.forwardRef(({className:r,status:e="running",message:t,...a},n)=>{const s=U1[e],o=$1[e],l=()=>e==="completed"?h.jsx(p.CheckCircle,{size:16,color:o}):e==="stopped"?h.jsx(p.Hand,{size:16,color:o}):h.jsx(p.Pause,{size:16,color:o});return h.jsxs("div",{ref:n,className:G(V1(),r),...a,children:[h.jsxs("div",{className:_1(),children:[h.jsx("div",{className:La(),children:h.jsx(p.Hexagon,{size:16,color:s})}),h.jsx("span",{className:G1({status:e}),children:t})]}),h.jsx("div",{className:La(),children:l()})]})});ms.displayName="AutopilotAction";const W1=z("z-50 rounded-[4px] px-3 py-3 shadow-[0px_8px_8px_-4px_rgba(0,0,0,0.04),0px_20px_24px_-4px_rgba(0,0,0,0.08)] max-w-[var(--radix-tooltip-content-available-width)] origin-[var(--radix-tooltip-content-transform-origin)]",{variants:{variant:{default:"bg-[var(--color-blue-1000)] text-[var(--color-gray-50)]",light:"bg-[var(--color-gray-50)] text-[var(--color-gray-1000)]"}},defaultVariants:{variant:"default"}}),X1=z("",{variants:{variant:{default:"fill-[var(--color-blue-1000)]",light:"fill-[var(--color-gray-50)]"}},defaultVariants:{variant:"default"}}),zr=({delayDuration:r=0,...e})=>h.jsx(D0.Provider,{delayDuration:r,...e}),Ar=D0.Root,Nr=D0.Trigger,Et=T.forwardRef(({className:r,sideOffset:e=4,children:t,variant:a,...n},s)=>h.jsx(D0.Portal,{children:h.jsx(D0.Content,{ref:s,sideOffset:e,asChild:!0,className:G(W1({variant:a}),r),...n,children:h.jsxs(ye.motion.div,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},transition:{duration:.1,ease:"easeOut"},children:[h.jsx(i0,{variant:"x-small",color:"inherit",className:"font-normal relative z-10",children:t}),h.jsx(D0.Arrow,{className:X1({variant:a})})]})})}));Et.displayName=D0.Content.displayName;const Y1=z("relative flex flex-col w-full"),Z1=z("box-border flex flex-col items-start p-4 rounded-[16px] w-full transition-all duration-200 min-w-[300px] max-w-[800px] relative z-10",{variants:{state:{default:"",active:"",withFiles:"",dragOver:""},variant:{default:"[background-image:linear-gradient(var(--color-white),var(--color-white)),linear-gradient(180deg,#B9BCCB_0%,#E5E7F0_100%)] [background-origin:padding-box,border-box] [background-clip:padding-box,border-box] border border-transparent shadow-[0px_8px_8px_-4px_rgba(0,0,0,0.04),0px_20px_24px_-4px_rgba(0,0,0,0.08)]",transparent:"bg-transparent border-none shadow-none"},isMagicActive:{true:"[background-image:linear-gradient(var(--color-white),var(--color-white))] border-transparent shadow-[0_0_40px_-10px_rgba(106,234,253,0.5),0_0_40px_-10px_rgba(255,111,0,0.4)]",false:""}},defaultVariants:{state:"default",variant:"default",isMagicActive:!1}}),K1=z("w-full transition-all duration-200",{variants:{state:{default:"border-[var(--color-gray-600)]",active:"border-[var(--color-blue-800)]",withFiles:"border-[var(--color-gray-600)]",dragOver:"border-[var(--color-blue-800)] border-dashed"},variant:{default:"bg-[var(--color-white)]",transparent:"bg-transparent"}},defaultVariants:{state:"default",variant:"default"}}),J1=z("box-border flex flex-col gap-[1.25rem] items-start justify-center w-full rounded-[inherit]"),Q1=z("flex flex-col gap-5 w-full"),ec=z("flex flex-wrap gap-[8px] items-start w-full"),tc=z("flex items-start justify-between w-full max-h-[200px] overflow-y-auto"),rc=z("w-full bg-transparent border-none outline-none resize-none font-normal text-[16px] leading-[24px] min-h-[24px] placeholder:text-[var(--color-gray-600)] text-[var(--color-gray-1000)]",{variants:{state:{default:"",active:"",withFiles:"",dragOver:""}},defaultVariants:{state:"default"}}),ac=z("flex items-center justify-between w-full"),nc=z("flex gap-[8px] items-center"),sc=z("flex items-center gap-2.5"),er=z("flex items-center justify-center shrink-0 transition-all duration-200 disabled:opacity-40 disabled:cursor-not-allowed focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[var(--color-blue-800)]",{variants:{variant:{default:"size-[16px] text-[var(--color-gray-600)] hover:text-[var(--color-gray-800)] active:text-[var(--color-gray-1000)] cursor-pointer",add:"bg-[var(--color-gray-100)] border border-[var(--color-gray-200)] border-solid rounded-[100px] p-[8px] size-auto text-[var(--color-gray-600)] hover:bg-[var(--color-gray-200)] active:bg-[var(--color-gray-200)] cursor-pointer"}},defaultVariants:{variant:"default"}}),oc=z("flex items-center justify-center shrink-0 size-[32px] rounded-[100px] transition-all duration-200 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2",{variants:{disabled:{true:"bg-[var(--color-gray-200)] text-[var(--color-white)] cursor-not-allowed",false:"bg-[var(--color-blue-800)] text-[var(--color-white)] hover:opacity-80 active:bg-[var(--color-blue-1000)] cursor-pointer focus-visible:outline-[var(--color-blue-800)]"}},defaultVariants:{disabled:!1}}),ic=z("animate-spin"),lc=z("flex flex-col gap-[12px] items-center justify-center px-[16px] py-[40px] min-h-[120px] w-full absolute inset-0 z-50 bg-[var(--color-white)] h-full rounded-xl min-h-0 border border-solid border-[var(--color-blue-1000)]"),cc=z("flex items-center justify-center"),uc=z("flex items-center gap-1 px-2 py-1 rounded-[6px] text-[var(--color-gray-600)] border border-[var(--color-gray-200)] transition-colors duration-200 cursor-pointer hover:bg-[var(--color-gray-50)] hover:border-[var(--color-gray-300)] hover:text-[var(--color-gray-800)] disabled:cursor-not-allowed disabled:opacity-50"),dc=z("min-w-[120px]"),mc=z("py-1.5 px-2"),hc=z("absolute -inset-[2px] rounded-[18px] z-0 pointer-events-none"),ja=z("absolute inset-0 rounded-[18px] w-full h-full",{variants:{layer:{base:"opacity-40",blur:"blur-xl opacity-20"}},defaultVariants:{layer:"base"}}),hs=V.forwardRef(({placeholder:r="Type message",value:e,files:t=[],disabled:a=!1,maxFiles:n=10,maxFileSize:s=1024*1024*1024,className:o,variant:l="default",actions:u=[],models:d=[],selectedModel:f,isLoading:g=!1,isUploading:x=!1,onChange:w,onSend:M,onFileAdd:k,onFileRemove:A,onModelChange:N,isUsingMagic:E=!1,contextUsage:R,contextMax:P=100},O)=>{var r0,ot;const[Y,q]=V.useState(""),[j,_]=V.useState(!1),[le,pe]=V.useState(!1),ae=V.useRef(null),be=V.useRef(null),ne=e!==void 0?e:Y,de=ne.trim().length>0,ce=t.length>0,X=j?"dragOver":ce?"withFiles":le?"active":"default",t0=W=>{w?w(W):q(W)},Be=W=>{t0(W.target.value),Te()},Te=V.useCallback(()=>{const W=ae.current;W&&(W.style.height="auto",W.style.height=`${Math.min(W.scrollHeight,200)}px`)},[]);V.useEffect(()=>{Te()},[ne,Te]);const we=V.useCallback(()=>{a||x||!de&&!ce||M&&(M(ne,t),t0(""),ae.current&&(ae.current.style.height="auto"))},[a,x,de,ce,M,ne,t]),me=W=>{W.key==="Enter"&&!W.shiftKey&&(W.preventDefault(),we())},Se=W=>{const f0=Array.from(W.target.files||[]);f0.length>0&&k&&k(f0),be.current&&(be.current.value="")},Le=()=>{var W;(W=be.current)==null||W.click()},He=V.useRef(0),se=W=>{W.preventDefault(),W.stopPropagation(),He.current+=1,He.current===1&&_(!0)},Ve=W=>{W.preventDefault(),W.stopPropagation(),He.current-=1,He.current===0&&_(!1)},_e=W=>{W.preventDefault(),W.stopPropagation()},Ge=W=>{W.preventDefault(),W.stopPropagation(),He.current=0,_(!1);const f0=Array.from(W.dataTransfer.files);f0.length>0&&k&&k(f0)},M0=W=>{A&&A(W)};return h.jsxs("div",{ref:O,className:G(Y1(),o),children:[h.jsx(ye.AnimatePresence,{children:E&&h.jsxs(ye.motion.div,{initial:{opacity:0,scale:.98},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.98},transition:{duration:1.2,ease:"easeInOut"},className:hc(),children:[h.jsx("div",{className:ja({layer:"base"}),children:h.jsx(ye.motion.div,{className:"w-full h-full rounded-[inherit]",style:{background:"linear-gradient(90deg, var(--color-blue-800), var(--color-blue-400), var(--color-orange-800), var(--color-blue-800))",backgroundSize:"300% 100%"},animate:{backgroundPosition:["0% 50%","100% 50%"]},transition:{duration:4,repeat:1/0,ease:"linear"}})}),h.jsx("div",{className:ja({layer:"blur"}),children:h.jsx(ye.motion.div,{className:"w-full h-full rounded-[inherit]",style:{background:"linear-gradient(90deg, var(--color-blue-800), var(--color-blue-400), var(--color-orange-800), var(--color-blue-800))",backgroundSize:"300% 100%"},animate:{backgroundPosition:["0% 50%","100% 50%"]},transition:{duration:4,repeat:1/0,ease:"linear"}})})]})}),h.jsxs("div",{className:Z1({state:X,variant:l,isMagicActive:E}),onDragEnter:se,onDragLeave:Ve,onDragOver:_e,onDrop:Ge,children:[h.jsx("div",{className:K1({state:X,variant:l}),children:h.jsx("div",{className:J1(),children:h.jsxs("div",{className:Q1(),children:[ce&&h.jsx("div",{className:ec(),children:t.map(W=>h.jsx(Kn,{filename:W.filename,status:W.status,progress:W.progress,onDelete:()=>M0(W.id)},W.id))}),h.jsx("div",{className:tc(),children:h.jsx("textarea",{ref:ae,className:rc({state:X}),placeholder:r,value:ne,disabled:a||g,onChange:Be,onKeyDown:me,onFocus:()=>pe(!0),onBlur:()=>pe(!1),rows:2,maxLength:1e4,"aria-label":"Chat message input"})}),h.jsxs("div",{className:ac(),children:[h.jsxs("div",{className:nc(),children:[h.jsx("button",{type:"button",onClick:Le,className:er({variant:"add"}),disabled:a,"aria-label":"Add file",tabIndex:0,children:h.jsx(p.Plus,{size:16})}),u.map(W=>h.jsx(V.Fragment,{children:W.tooltip?h.jsx(zr,{children:h.jsxs(Ar,{children:[h.jsx(Nr,{asChild:!0,children:h.jsx("button",{type:"button",onClick:W.onClick,className:er(),disabled:a||W.disabled,"aria-label":W.label,tabIndex:0,children:W.icon})}),h.jsx(Et,{variant:"light",children:W.tooltip})]})}):h.jsx("button",{type:"button",onClick:W.onClick,className:er(),disabled:a||W.disabled,"aria-label":W.label,tabIndex:0,children:W.icon})},`--action-${W.id}`))]}),h.jsxs("div",{className:sc(),children:[d.length>0&&h.jsxs(Wr,{children:[h.jsx(Xr,{children:h.jsxs("button",{type:"button",className:uc(),disabled:a||g,"aria-label":"Select AI model",children:[h.jsx(i0,{variant:"tiny",color:"inherit",as:"span",className:a||g?"opacity-50":void 0,children:((r0=d.find(W=>W.id===f))==null?void 0:r0.name)||((ot=d[0])==null?void 0:ot.name)||"Select model"}),h.jsx(p.ChevronDown,{size:10,color:"currentColor"})]})}),h.jsx(Yr,{align:"end",className:dc(),children:d.map(W=>h.jsx(Zr,{active:W.id===f,onClick:()=>N==null?void 0:N(W.id),className:mc(),children:h.jsx(i0,{variant:"tiny",color:"inherit",as:"span",children:W.name})},W.id))})]}),R!==void 0&&h.jsx(zr,{children:h.jsxs(Ar,{children:[h.jsx(Nr,{asChild:!0,children:h.jsx("div",{className:"flex items-center justify-center h-[32px]",children:h.jsx($r,{value:R,max:P,size:"xs",showLabel:!1,variant:R>=90?"error":R>=75?"warning":"default",strokeWidth:2,"aria-label":`Context usage: ${R} of ${P}`})})}),h.jsxs(Et,{variant:"light",children:["Context: ",R,"/",P]})]})}),h.jsx("button",{type:"button",onClick:we,className:oc({disabled:a||g||x||!de&&!ce}),disabled:a||g||x||!de&&!ce,"aria-label":g?"Loading":"Send message",tabIndex:0,children:g?h.jsx(p.Loader,{size:16,color:"currentColor",className:ic()}):h.jsx(p.ArrowUp,{size:16,strokeWidth:2.5,color:"currentColor"})})]})]})]})})}),h.jsx(ye.AnimatePresence,{children:j&&h.jsxs(ye.motion.div,{initial:{opacity:0,filter:"blur(2px)"},animate:{opacity:1,filter:"blur(0px)"},exit:{opacity:0,filter:"blur(2px)"},transition:{duration:.2,ease:"easeInOut"},className:lc(),children:[h.jsx("div",{className:cc(),children:h.jsx(p.Uploadfile,{size:32,color:"var(--color-gray-1000)"})}),h.jsx(i0,{variant:"small",weight:"bold",color:"primary",className:"text-center",children:"Drop your files here"}),h.jsxs(i0,{variant:"small",color:"secondary",className:"text-center",children:["Up to ",n," files or a maximum size of"," ",Math.round(s/(1024*1024*1024)),"GB"]})]},"overlay")}),h.jsx("input",{ref:be,type:"file",multiple:!0,onChange:Se,className:"hidden","aria-hidden":"true"})]})]})});hs.displayName="ChatInput";const fc=z("w-full h-[48px] box-border flex items-center justify-between px-[16px] py-[12px] bg-[var(--color-white)] border-b border-[var(--color-gray-200)]"),pc=z("flex items-center gap-[12px] h-[24px]"),vc=z("flex items-center gap-[12px] h-[24px] rounded-[8px]"),Ia=z("flex items-center justify-center size-[16px] overflow-hidden text-[var(--color-gray-800)] hover:text-[var(--color-blue-800)] transition-colors bg-transparent border-none cursor-pointer outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-blue-800)] rounded-sm"),gc=z("flex items-center gap-[8px]"),bc=z("flex items-center"),fs=V.forwardRef(({className:r,breadcrumbs:e,tags:t=[],collaborators:a=[],onAddTag:n,onAddCollaborator:s,tagsOverflowCount:o=0,...l},u)=>h.jsxs("div",{ref:u,className:G(fc(),r),...l,children:[h.jsx(Yn,{items:e,size:"medium"}),h.jsx("div",{className:pc(),children:h.jsxs("div",{className:vc(),children:[(t.length>0||o>0)&&h.jsxs("div",{className:gc(),children:[t.map(d=>h.jsx(G0,{variant:"default",className:"bg-[var(--color-gray-100)] border border-[var(--color-gray-200)] text-[var(--color-gray-800)] px-[8px] py-[2px] text-[10px] h-[20px]",children:d.label},d.id)),o>0&&h.jsxs(G0,{variant:"default",className:"bg-[var(--color-gray-100)] border border-[var(--color-gray-200)] text-[var(--color-gray-800)] px-[8px] py-[2px] text-[10px] h-[20px]",children:["+",o]})]}),a.length>0&&h.jsx("div",{className:bc(),children:h.jsx("div",{className:"flex items-center flex-row-reverse",children:a.map((d,f)=>h.jsx("div",{className:"relative shrink-0 border-[1.5px] border-white rounded-full",style:{zIndex:a.length-f,marginRight:f<a.length-1?-4:0},children:h.jsx(Vr,{initials:d.name,src:d.src,alt:d.name,className:"size-[24px] text-[10px]"})},d.id))})}),h.jsx("button",{type:"button",onClick:n,className:Ia(),"aria-label":"Add tag",children:h.jsx(p.TagPlus,{size:16})}),h.jsx("button",{type:"button",onClick:s,className:Ia(),"aria-label":"Add collaborator",children:h.jsx(p.UserPlus,{size:16})})]})})]}));fs.displayName="ConversationHeader";function x0(r,e,{checkForDefaultPrevented:t=!0}={}){return function(n){if(r==null||r(n),t===!1||!n.defaultPrevented)return e==null?void 0:e(n)}}function Pa(r,e){if(typeof r=="function")return r(e);r!=null&&(r.current=e)}function ps(...r){return e=>{let t=!1;const a=r.map(n=>{const s=Pa(n,e);return!t&&typeof s=="function"&&(t=!0),s});if(t)return()=>{for(let n=0;n<a.length;n++){const s=a[n];typeof s=="function"?s():Pa(r[n],null)}}}}function B0(...r){return T.useCallback(ps(...r),r)}function yc(r,e){const t=T.createContext(e),a=s=>{const{children:o,...l}=s,u=T.useMemo(()=>l,Object.values(l));return h.jsx(t.Provider,{value:u,children:o})};a.displayName=r+"Provider";function n(s){const o=T.useContext(t);if(o)return o;if(e!==void 0)return e;throw new Error(`\`${s}\` must be used within \`${r}\``)}return[a,n]}function xc(r,e=[]){let t=[];function a(s,o){const l=T.createContext(o),u=t.length;t=[...t,o];const d=g=>{var N;const{scope:x,children:w,...M}=g,k=((N=x==null?void 0:x[r])==null?void 0:N[u])||l,A=T.useMemo(()=>M,Object.values(M));return h.jsx(k.Provider,{value:A,children:w})};d.displayName=s+"Provider";function f(g,x){var k;const w=((k=x==null?void 0:x[r])==null?void 0:k[u])||l,M=T.useContext(w);if(M)return M;if(o!==void 0)return o;throw new Error(`\`${g}\` must be used within \`${s}\``)}return[d,f]}const n=()=>{const s=t.map(o=>T.createContext(o));return function(l){const u=(l==null?void 0:l[r])||s;return T.useMemo(()=>({[`__scope${r}`]:{...l,[r]:u}}),[l,u])}};return n.scopeName=r,[a,wc(n,...e)]}function wc(...r){const e=r[0];if(r.length===1)return e;const t=()=>{const a=r.map(n=>({useScope:n(),scopeName:n.scopeName}));return function(s){const o=a.reduce((l,{useScope:u,scopeName:d})=>{const g=u(s)[`__scope${d}`];return{...l,...g}},{});return T.useMemo(()=>({[`__scope${e.scopeName}`]:o}),[o])}};return t.scopeName=e.scopeName,t}var Q0=globalThis!=null&&globalThis.document?T.useLayoutEffect:()=>{},Sc=T[" useId ".trim().toString()]||(()=>{}),kc=0;function tr(r){const[e,t]=T.useState(Sc());return Q0(()=>{t(a=>a??String(kc++))},[r]),r||(e?`radix-${e}`:"")}var Cc=T[" useInsertionEffect ".trim().toString()]||Q0;function Mc({prop:r,defaultProp:e,onChange:t=()=>{},caller:a}){const[n,s,o]=Tc({defaultProp:e,onChange:t}),l=r!==void 0,u=l?r:n;{const f=T.useRef(r!==void 0);T.useEffect(()=>{const g=f.current;g!==l&&console.warn(`${a} is changing from ${g?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),f.current=l},[l,a])}const d=T.useCallback(f=>{var g;if(l){const x=zc(f)?f(r):f;x!==r&&((g=o.current)==null||g.call(o,x))}else s(f)},[l,r,s,o]);return[u,d]}function Tc({defaultProp:r,onChange:e}){const[t,a]=T.useState(r),n=T.useRef(t),s=T.useRef(e);return Cc(()=>{s.current=e},[e]),T.useEffect(()=>{var o;n.current!==t&&((o=s.current)==null||o.call(s,t),n.current=t)},[t,n]),[t,a,s]}function zc(r){return typeof r=="function"}function vs(r){const e=Ac(r),t=T.forwardRef((a,n)=>{const{children:s,...o}=a,l=T.Children.toArray(s),u=l.find(Dc);if(u){const d=u.props.children,f=l.map(g=>g===u?T.Children.count(d)>1?T.Children.only(null):T.isValidElement(d)?d.props.children:null:g);return h.jsx(e,{...o,ref:n,children:T.isValidElement(d)?T.cloneElement(d,void 0,f):null})}return h.jsx(e,{...o,ref:n,children:s})});return t.displayName=`${r}.Slot`,t}function Ac(r){const e=T.forwardRef((t,a)=>{const{children:n,...s}=t;if(T.isValidElement(n)){const o=Rc(n),l=Ec(s,n.props);return n.type!==T.Fragment&&(l.ref=a?ps(a,o):o),T.cloneElement(n,l)}return T.Children.count(n)>1?T.Children.only(null):null});return e.displayName=`${r}.SlotClone`,e}var Nc=Symbol("radix.slottable");function Dc(r){return T.isValidElement(r)&&typeof r.type=="function"&&"__radixId"in r.type&&r.type.__radixId===Nc}function Ec(r,e){const t={...e};for(const a in e){const n=r[a],s=e[a];/^on[A-Z]/.test(a)?n&&s?t[a]=(...l)=>{const u=s(...l);return n(...l),u}:n&&(t[a]=n):a==="style"?t[a]={...n,...s}:a==="className"&&(t[a]=[n,s].filter(Boolean).join(" "))}return{...r,...t}}function Rc(r){var a,n;let e=(a=Object.getOwnPropertyDescriptor(r.props,"ref"))==null?void 0:a.get,t=e&&"isReactWarning"in e&&e.isReactWarning;return t?r.ref:(e=(n=Object.getOwnPropertyDescriptor(r,"ref"))==null?void 0:n.get,t=e&&"isReactWarning"in e&&e.isReactWarning,t?r.props.ref:r.props.ref||r.ref)}var Bc=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ke=Bc.reduce((r,e)=>{const t=vs(`Primitive.${e}`),a=T.forwardRef((n,s)=>{const{asChild:o,...l}=n,u=o?t:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),h.jsx(u,{...l,ref:s})});return a.displayName=`Primitive.${e}`,{...r,[e]:a}},{});function Lc(r,e){r&&Yo.flushSync(()=>r.dispatchEvent(e))}function et(r){const e=T.useRef(r);return T.useEffect(()=>{e.current=r}),T.useMemo(()=>(...t)=>{var a;return(a=e.current)==null?void 0:a.call(e,...t)},[])}function jc(r,e=globalThis==null?void 0:globalThis.document){const t=et(r);T.useEffect(()=>{const a=n=>{n.key==="Escape"&&t(n)};return e.addEventListener("keydown",a,{capture:!0}),()=>e.removeEventListener("keydown",a,{capture:!0})},[t,e])}var Ic="DismissableLayer",Dr="dismissableLayer.update",Pc="dismissableLayer.pointerDownOutside",Oc="dismissableLayer.focusOutside",Oa,gs=T.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),bs=T.forwardRef((r,e)=>{const{disableOutsidePointerEvents:t=!1,onEscapeKeyDown:a,onPointerDownOutside:n,onFocusOutside:s,onInteractOutside:o,onDismiss:l,...u}=r,d=T.useContext(gs),[f,g]=T.useState(null),x=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,w]=T.useState({}),M=B0(e,q=>g(q)),k=Array.from(d.layers),[A]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),N=k.indexOf(A),E=f?k.indexOf(f):-1,R=d.layersWithOutsidePointerEventsDisabled.size>0,P=E>=N,O=Hc(q=>{const j=q.target,_=[...d.branches].some(le=>le.contains(j));!P||_||(n==null||n(q),o==null||o(q),q.defaultPrevented||l==null||l())},x),Y=Vc(q=>{const j=q.target;[...d.branches].some(le=>le.contains(j))||(s==null||s(q),o==null||o(q),q.defaultPrevented||l==null||l())},x);return jc(q=>{E===d.layers.size-1&&(a==null||a(q),!q.defaultPrevented&&l&&(q.preventDefault(),l()))},x),T.useEffect(()=>{if(f)return t&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(Oa=x.body.style.pointerEvents,x.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),Fa(),()=>{t&&d.layersWithOutsidePointerEventsDisabled.size===1&&(x.body.style.pointerEvents=Oa)}},[f,x,t,d]),T.useEffect(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),Fa())},[f,d]),T.useEffect(()=>{const q=()=>w({});return document.addEventListener(Dr,q),()=>document.removeEventListener(Dr,q)},[]),h.jsx(Ke.div,{...u,ref:M,style:{pointerEvents:R?P?"auto":"none":void 0,...r.style},onFocusCapture:x0(r.onFocusCapture,Y.onFocusCapture),onBlurCapture:x0(r.onBlurCapture,Y.onBlurCapture),onPointerDownCapture:x0(r.onPointerDownCapture,O.onPointerDownCapture)})});bs.displayName=Ic;var Fc="DismissableLayerBranch",qc=T.forwardRef((r,e)=>{const t=T.useContext(gs),a=T.useRef(null),n=B0(e,a);return T.useEffect(()=>{const s=a.current;if(s)return t.branches.add(s),()=>{t.branches.delete(s)}},[t.branches]),h.jsx(Ke.div,{...r,ref:n})});qc.displayName=Fc;function Hc(r,e=globalThis==null?void 0:globalThis.document){const t=et(r),a=T.useRef(!1),n=T.useRef(()=>{});return T.useEffect(()=>{const s=l=>{if(l.target&&!a.current){let u=function(){ys(Pc,t,d,{discrete:!0})};const d={originalEvent:l};l.pointerType==="touch"?(e.removeEventListener("click",n.current),n.current=u,e.addEventListener("click",n.current,{once:!0})):u()}else e.removeEventListener("click",n.current);a.current=!1},o=window.setTimeout(()=>{e.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(o),e.removeEventListener("pointerdown",s),e.removeEventListener("click",n.current)}},[e,t]),{onPointerDownCapture:()=>a.current=!0}}function Vc(r,e=globalThis==null?void 0:globalThis.document){const t=et(r),a=T.useRef(!1);return T.useEffect(()=>{const n=s=>{s.target&&!a.current&&ys(Oc,t,{originalEvent:s},{discrete:!1})};return e.addEventListener("focusin",n),()=>e.removeEventListener("focusin",n)},[e,t]),{onFocusCapture:()=>a.current=!0,onBlurCapture:()=>a.current=!1}}function Fa(){const r=new CustomEvent(Dr);document.dispatchEvent(r)}function ys(r,e,t,{discrete:a}){const n=t.originalEvent.target,s=new CustomEvent(r,{bubbles:!1,cancelable:!0,detail:t});e&&n.addEventListener(r,e,{once:!0}),a?Lc(n,s):n.dispatchEvent(s)}var rr="focusScope.autoFocusOnMount",ar="focusScope.autoFocusOnUnmount",qa={bubbles:!1,cancelable:!0},_c="FocusScope",xs=T.forwardRef((r,e)=>{const{loop:t=!1,trapped:a=!1,onMountAutoFocus:n,onUnmountAutoFocus:s,...o}=r,[l,u]=T.useState(null),d=et(n),f=et(s),g=T.useRef(null),x=B0(e,k=>u(k)),w=T.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;T.useEffect(()=>{if(a){let k=function(R){if(w.paused||!l)return;const P=R.target;l.contains(P)?g.current=P:b0(g.current,{select:!0})},A=function(R){if(w.paused||!l)return;const P=R.relatedTarget;P!==null&&(l.contains(P)||b0(g.current,{select:!0}))},N=function(R){if(document.activeElement===document.body)for(const O of R)O.removedNodes.length>0&&b0(l)};document.addEventListener("focusin",k),document.addEventListener("focusout",A);const E=new MutationObserver(N);return l&&E.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",k),document.removeEventListener("focusout",A),E.disconnect()}}},[a,l,w.paused]),T.useEffect(()=>{if(l){Va.add(w);const k=document.activeElement;if(!l.contains(k)){const N=new CustomEvent(rr,qa);l.addEventListener(rr,d),l.dispatchEvent(N),N.defaultPrevented||(Gc(Yc(ws(l)),{select:!0}),document.activeElement===k&&b0(l))}return()=>{l.removeEventListener(rr,d),setTimeout(()=>{const N=new CustomEvent(ar,qa);l.addEventListener(ar,f),l.dispatchEvent(N),N.defaultPrevented||b0(k??document.body,{select:!0}),l.removeEventListener(ar,f),Va.remove(w)},0)}}},[l,d,f,w]);const M=T.useCallback(k=>{if(!t&&!a||w.paused)return;const A=k.key==="Tab"&&!k.altKey&&!k.ctrlKey&&!k.metaKey,N=document.activeElement;if(A&&N){const E=k.currentTarget,[R,P]=Uc(E);R&&P?!k.shiftKey&&N===P?(k.preventDefault(),t&&b0(R,{select:!0})):k.shiftKey&&N===R&&(k.preventDefault(),t&&b0(P,{select:!0})):N===E&&k.preventDefault()}},[t,a,w.paused]);return h.jsx(Ke.div,{tabIndex:-1,...o,ref:x,onKeyDown:M})});xs.displayName=_c;function Gc(r,{select:e=!1}={}){const t=document.activeElement;for(const a of r)if(b0(a,{select:e}),document.activeElement!==t)return}function Uc(r){const e=ws(r),t=Ha(e,r),a=Ha(e.reverse(),r);return[t,a]}function ws(r){const e=[],t=document.createTreeWalker(r,NodeFilter.SHOW_ELEMENT,{acceptNode:a=>{const n=a.tagName==="INPUT"&&a.type==="hidden";return a.disabled||a.hidden||n?NodeFilter.FILTER_SKIP:a.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;t.nextNode();)e.push(t.currentNode);return e}function Ha(r,e){for(const t of r)if(!$c(t,{upTo:e}))return t}function $c(r,{upTo:e}){if(getComputedStyle(r).visibility==="hidden")return!0;for(;r;){if(e!==void 0&&r===e)return!1;if(getComputedStyle(r).display==="none")return!0;r=r.parentElement}return!1}function Wc(r){return r instanceof HTMLInputElement&&"select"in r}function b0(r,{select:e=!1}={}){if(r&&r.focus){const t=document.activeElement;r.focus({preventScroll:!0}),r!==t&&Wc(r)&&e&&r.select()}}var Va=Xc();function Xc(){let r=[];return{add(e){const t=r[0];e!==t&&(t==null||t.pause()),r=_a(r,e),r.unshift(e)},remove(e){var t;r=_a(r,e),(t=r[0])==null||t.resume()}}}function _a(r,e){const t=[...r],a=t.indexOf(e);return a!==-1&&t.splice(a,1),t}function Yc(r){return r.filter(e=>e.tagName!=="A")}var Zc="Portal",Ss=T.forwardRef((r,e)=>{var l;const{container:t,...a}=r,[n,s]=T.useState(!1);Q0(()=>s(!0),[]);const o=t||n&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return o?Ln.createPortal(h.jsx(Ke.div,{...a,ref:e}),o):null});Ss.displayName=Zc;function Kc(r,e){return T.useReducer((t,a)=>e[t][a]??t,r)}var qt=r=>{const{present:e,children:t}=r,a=Jc(e),n=typeof t=="function"?t({present:a.isPresent}):T.Children.only(t),s=B0(a.ref,Qc(n));return typeof t=="function"||a.isPresent?T.cloneElement(n,{ref:s}):null};qt.displayName="Presence";function Jc(r){const[e,t]=T.useState(),a=T.useRef(null),n=T.useRef(r),s=T.useRef("none"),o=r?"mounted":"unmounted",[l,u]=Kc(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return T.useEffect(()=>{const d=ht(a.current);s.current=l==="mounted"?d:"none"},[l]),Q0(()=>{const d=a.current,f=n.current;if(f!==r){const x=s.current,w=ht(d);r?u("MOUNT"):w==="none"||(d==null?void 0:d.display)==="none"?u("UNMOUNT"):u(f&&x!==w?"ANIMATION_OUT":"UNMOUNT"),n.current=r}},[r,u]),Q0(()=>{if(e){let d;const f=e.ownerDocument.defaultView??window,g=w=>{const k=ht(a.current).includes(CSS.escape(w.animationName));if(w.target===e&&k&&(u("ANIMATION_END"),!n.current)){const A=e.style.animationFillMode;e.style.animationFillMode="forwards",d=f.setTimeout(()=>{e.style.animationFillMode==="forwards"&&(e.style.animationFillMode=A)})}},x=w=>{w.target===e&&(s.current=ht(a.current))};return e.addEventListener("animationstart",x),e.addEventListener("animationcancel",g),e.addEventListener("animationend",g),()=>{f.clearTimeout(d),e.removeEventListener("animationstart",x),e.removeEventListener("animationcancel",g),e.removeEventListener("animationend",g)}}else u("ANIMATION_END")},[e,u]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:T.useCallback(d=>{a.current=d?getComputedStyle(d):null,t(d)},[])}}function ht(r){return(r==null?void 0:r.animationName)||"none"}function Qc(r){var a,n;let e=(a=Object.getOwnPropertyDescriptor(r.props,"ref"))==null?void 0:a.get,t=e&&"isReactWarning"in e&&e.isReactWarning;return t?r.ref:(e=(n=Object.getOwnPropertyDescriptor(r,"ref"))==null?void 0:n.get,t=e&&"isReactWarning"in e&&e.isReactWarning,t?r.props.ref:r.props.ref||r.ref)}var nr=0;function eu(){T.useEffect(()=>{const r=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",r[0]??Ga()),document.body.insertAdjacentElement("beforeend",r[1]??Ga()),nr++,()=>{nr===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),nr--}},[])}function Ga(){const r=document.createElement("span");return r.setAttribute("data-radix-focus-guard",""),r.tabIndex=0,r.style.outline="none",r.style.opacity="0",r.style.position="fixed",r.style.pointerEvents="none",r}var Xe=function(){return Xe=Object.assign||function(e){for(var t,a=1,n=arguments.length;a<n;a++){t=arguments[a];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s])}return e},Xe.apply(this,arguments)};function ks(r,e){var t={};for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&e.indexOf(a)<0&&(t[a]=r[a]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,a=Object.getOwnPropertySymbols(r);n<a.length;n++)e.indexOf(a[n])<0&&Object.prototype.propertyIsEnumerable.call(r,a[n])&&(t[a[n]]=r[a[n]]);return t}function tu(r,e,t){if(t||arguments.length===2)for(var a=0,n=e.length,s;a<n;a++)(s||!(a in e))&&(s||(s=Array.prototype.slice.call(e,0,a)),s[a]=e[a]);return r.concat(s||Array.prototype.slice.call(e))}var zt="right-scroll-bar-position",At="width-before-scroll-bar",ru="with-scroll-bars-hidden",au="--removed-body-scroll-bar-size";function sr(r,e){return typeof r=="function"?r(e):r&&(r.current=e),r}function nu(r,e){var t=V.useState(function(){return{value:r,callback:e,facade:{get current(){return t.value},set current(a){var n=t.value;n!==a&&(t.value=a,t.callback(a,n))}}}})[0];return t.callback=e,t.facade}var su=typeof window<"u"?T.useLayoutEffect:T.useEffect,Ua=new WeakMap;function ou(r,e){var t=nu(null,function(a){return r.forEach(function(n){return sr(n,a)})});return su(function(){var a=Ua.get(t);if(a){var n=new Set(a),s=new Set(r),o=t.current;n.forEach(function(l){s.has(l)||sr(l,null)}),s.forEach(function(l){n.has(l)||sr(l,o)})}Ua.set(t,r)},[r]),t}function iu(r){return r}function lu(r,e){e===void 0&&(e=iu);var t=[],a=!1,n={read:function(){if(a)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return t.length?t[t.length-1]:r},useMedium:function(s){var o=e(s,a);return t.push(o),function(){t=t.filter(function(l){return l!==o})}},assignSyncMedium:function(s){for(a=!0;t.length;){var o=t;t=[],o.forEach(s)}t={push:function(l){return s(l)},filter:function(){return t}}},assignMedium:function(s){a=!0;var o=[];if(t.length){var l=t;t=[],l.forEach(s),o=t}var u=function(){var f=o;o=[],f.forEach(s)},d=function(){return Promise.resolve().then(u)};d(),t={push:function(f){o.push(f),d()},filter:function(f){return o=o.filter(f),t}}}};return n}function cu(r){r===void 0&&(r={});var e=lu(null);return e.options=Xe({async:!0,ssr:!1},r),e}var Cs=function(r){var e=r.sideCar,t=ks(r,["sideCar"]);if(!e)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var a=e.read();if(!a)throw new Error("Sidecar medium not found");return T.createElement(a,Xe({},t))};Cs.isSideCarExport=!0;function uu(r,e){return r.useMedium(e),Cs}var Ms=cu(),or=function(){},Ht=T.forwardRef(function(r,e){var t=T.useRef(null),a=T.useState({onScrollCapture:or,onWheelCapture:or,onTouchMoveCapture:or}),n=a[0],s=a[1],o=r.forwardProps,l=r.children,u=r.className,d=r.removeScrollBar,f=r.enabled,g=r.shards,x=r.sideCar,w=r.noRelative,M=r.noIsolation,k=r.inert,A=r.allowPinchZoom,N=r.as,E=N===void 0?"div":N,R=r.gapMode,P=ks(r,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),O=x,Y=ou([t,e]),q=Xe(Xe({},P),n);return T.createElement(T.Fragment,null,f&&T.createElement(O,{sideCar:Ms,removeScrollBar:d,shards:g,noRelative:w,noIsolation:M,inert:k,setCallbacks:s,allowPinchZoom:!!A,lockRef:t,gapMode:R}),o?T.cloneElement(T.Children.only(l),Xe(Xe({},q),{ref:Y})):T.createElement(E,Xe({},q,{className:u,ref:Y}),l))});Ht.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Ht.classNames={fullWidth:At,zeroRight:zt};var du=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function mu(){if(!document)return null;var r=document.createElement("style");r.type="text/css";var e=du();return e&&r.setAttribute("nonce",e),r}function hu(r,e){r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}function fu(r){var e=document.head||document.getElementsByTagName("head")[0];e.appendChild(r)}var pu=function(){var r=0,e=null;return{add:function(t){r==0&&(e=mu())&&(hu(e,t),fu(e)),r++},remove:function(){r--,!r&&e&&(e.parentNode&&e.parentNode.removeChild(e),e=null)}}},vu=function(){var r=pu();return function(e,t){T.useEffect(function(){return r.add(e),function(){r.remove()}},[e&&t])}},Ts=function(){var r=vu(),e=function(t){var a=t.styles,n=t.dynamic;return r(a,n),null};return e},gu={left:0,top:0,right:0,gap:0},ir=function(r){return parseInt(r||"",10)||0},bu=function(r){var e=window.getComputedStyle(document.body),t=e[r==="padding"?"paddingLeft":"marginLeft"],a=e[r==="padding"?"paddingTop":"marginTop"],n=e[r==="padding"?"paddingRight":"marginRight"];return[ir(t),ir(a),ir(n)]},yu=function(r){if(r===void 0&&(r="margin"),typeof window>"u")return gu;var e=bu(r),t=document.documentElement.clientWidth,a=window.innerWidth;return{left:e[0],top:e[1],right:e[2],gap:Math.max(0,a-t+e[2]-e[0])}},xu=Ts(),H0="data-scroll-locked",wu=function(r,e,t,a){var n=r.left,s=r.top,o=r.right,l=r.gap;return t===void 0&&(t="margin"),`
27
- .`.concat(ru,` {
28
- overflow: hidden `).concat(a,`;
29
- padding-right: `).concat(l,"px ").concat(a,`;
26
+ `}),v.jsx("path",{d:"M239.997 257.024C239.13 256.261 238.348 255.328 237.671 254.268C236.994 253.208 236.55 252.126 236.359 251.066C236.169 250.006 236.359 249.179 236.93 248.585C239.659 245.277 243.233 242.118 247.696 239.107C252.138 236.095 256.601 234.59 261.063 234.59C263.2 234.59 264.595 235.375 265.293 236.922C265.97 238.47 266.309 240.018 266.309 241.587C266.309 244.302 265.568 246.443 264.13 247.991C262.692 249.539 260.831 250.854 258.61 251.914C256.389 252.996 254.062 253.907 251.63 254.692C249.198 255.455 247.04 256.24 245.095 257.024L242.768 258.191C241.795 258.191 240.886 257.809 239.997 257.024Z",fill:o,style:{transformOrigin:"252px 247px",animation:`drawDot-${l.replace(/:/g,"")} 0.3s ease-out ${a+n*.9}s forwards`,opacity:0}}),v.jsx("path",{d:"M308.102 176.765C306.453 175.663 304.126 174.963 301.123 174.687C298.119 174.411 294.46 174.433 290.167 174.772C285.873 175.111 281.008 175.578 275.594 176.193C273.648 176.405 271.829 176.617 270.179 176.808L245.793 180.942C242.091 181.536 239.003 182.003 236.486 182.406C233.969 182.808 231.558 182.702 229.232 182.13L193.572 185.777C193.952 184.293 194.587 182.893 195.517 181.6C196.469 180.243 197.548 179.161 198.711 178.398C205.099 169.068 211.254 160.056 217.176 151.299C223.077 142.562 228.639 134.102 233.885 125.959L234.752 121.888L253.936 88.6814C253.936 87.3243 254.422 86.2641 255.395 85.4795C256.368 84.7162 257.045 83.4439 257.425 81.7051L260.344 73.2445C260.915 71.6966 261.465 70.0426 261.93 68.2826C262.417 66.5439 262.671 64.5082 262.671 62.1757C262.671 60.8186 262.459 59.1223 262.1 57.0866C261.698 55.051 261.084 53.1426 260.217 51.4038C259.35 49.6438 258.271 48.1595 257.024 46.8872C255.776 45.615 254.168 45 252.243 45C250.89 45 249.388 45.3817 247.738 46.1663C246.089 46.9509 244.439 47.9263 242.789 49.0925C241.139 50.2588 239.595 51.4674 238.136 52.7397C236.677 54.012 235.471 55.0298 234.498 55.7932L207.468 81.7263L206.008 82.5957L192.641 96.2939C192.429 96.2939 192.112 96.3999 191.626 96.5907C191.139 96.7816 190.801 96.8876 190.61 96.8876L122.04 164.763C120.094 164.763 117.493 163.894 114.193 162.134C110.915 160.374 107.023 159.505 102.56 159.505C101.587 159.505 100.53 159.802 99.3666 160.374C98.2033 160.947 97.3361 161.243 96.7439 161.243C95.9613 161.243 95.2422 160.798 94.5654 159.929C93.8885 159.059 92.7887 158.635 91.2236 158.635C86.5704 159.611 83.567 160.183 82.2134 160.374C80.8597 160.586 79.9714 160.671 79.5907 160.671C77.6448 159.886 76.397 159.696 75.8047 160.098C75.2125 160.501 74.7472 160.777 74.3453 160.968C73.7743 160.586 72.3149 160.247 69.9883 159.95C67.6617 159.674 65.5255 159.505 63.6008 159.505C60.682 159.505 56.6634 159.611 51.5449 159.802C46.4053 159.992 41.3715 160.629 36.4434 161.689C31.5153 162.749 27.2005 164.488 23.5203 166.926C19.8401 169.365 18 172.8 18 177.274C18 181.155 18.9518 184.462 20.8976 187.177C22.8435 189.912 25.3181 192.223 28.3215 194.174C31.3249 196.125 34.6667 197.524 38.3469 198.394C42.0271 199.263 45.6016 199.709 49.0915 199.709C51.2277 200.281 53.1524 200.09 54.9079 199.136C54.6964 199.136 55.7328 199.369 57.9536 199.857C60.1744 200.345 62.9451 200.79 66.2235 201.172C69.523 201.553 72.9494 201.999 76.545 202.465C80.1195 202.953 83.0806 203.207 85.4071 203.207L59.5399 232.915L54.0196 239.319C52.8563 240.294 52.4333 241.948 52.7294 244.281C53.0043 246.613 53.6389 247.779 54.6118 247.779C57.1287 247.779 60.3225 246.083 64.193 242.69C68.0636 239.297 72.1457 235.163 76.397 230.307C80.6694 225.451 84.9207 220.51 89.1931 215.464C93.4444 210.417 97.2303 206.24 100.53 202.932C100.911 202.932 101.312 202.974 101.693 203.08C102.074 203.165 102.455 203.228 102.856 203.228C115.822 203.228 127.878 202.847 139.045 202.062C150.192 201.299 160.407 200.896 169.692 200.896C166.985 205.37 164.066 209.929 160.978 214.594C157.89 219.259 154.591 224.115 151.101 229.162L127.285 264.701C125.932 266.842 124.726 268.984 123.648 271.104C122.569 273.225 122.061 275.366 122.061 277.508C122.061 279.056 122.59 280.371 123.648 281.431C124.705 282.491 125.826 283.042 126.989 283.042C129.316 283.042 131.346 282.364 133.081 281.007C134.815 279.65 136.613 278.038 138.453 276.193C140.293 274.349 142.197 272.44 144.121 270.511C146.046 268.56 148.373 267.012 151.08 265.846L182.467 237.007C182.658 236.414 183.102 235.777 183.758 235.12C184.434 234.442 185.259 233.615 186.232 232.639L197.273 223.33C200.192 220.807 202.941 217.881 205.543 214.573C208.166 211.286 209.477 209.145 209.477 208.169C209.477 206.027 208.229 204.967 205.712 204.967C205.331 204.967 204.697 205.116 203.83 205.413C202.962 205.709 201.947 206.346 200.784 207.3L156.896 248.076L146.152 255.646L149.049 251.575C149.832 250.218 151.186 248.034 153.132 245.023C155.056 242.012 157.192 238.725 159.519 235.12C161.846 231.537 164.32 227.805 166.943 223.903C169.566 220.022 172.019 216.418 174.367 213.11C176.693 209.823 178.724 207.045 180.458 204.819C182.193 202.592 183.44 201.278 184.223 200.875C184.604 200.684 185.386 200.493 186.55 200.302C186.803 200.281 187.121 200.281 187.374 200.239L196.871 199.433C201.672 199.009 206.304 198.161 210.746 196.931C215.166 195.68 219.798 194.853 224.6 194.407C226.122 194.301 228.893 193.983 232.891 193.474C236.909 192.965 241.266 192.393 245.941 191.757C250.615 191.142 254.993 190.527 259.075 189.912C263.157 189.297 265.991 188.852 267.599 188.555C269.206 188.258 270.602 188.025 271.787 187.834C272.971 187.664 274.431 187.516 276.165 187.41C276.313 187.41 276.503 187.177 276.651 187.134L281.579 186.583C284.435 186.265 286.888 186.095 288.961 186.095C291.013 186.095 292.514 186.18 293.445 186.392C292.726 188.152 292.112 189.361 291.563 190.039C291.034 190.718 290.59 191.142 290.23 191.333C289.871 191.524 289.659 191.672 289.596 191.757C289.532 191.842 289.532 192.181 289.596 192.796C289.807 194.768 291.647 195.531 295.116 195.15C295.708 195.086 296.491 194.81 297.421 194.323C298.352 193.835 299.325 193.305 300.319 192.732C301.313 192.16 302.286 191.545 303.195 190.909C304.126 190.272 304.782 189.7 305.184 189.191C306.072 188.937 307.299 188.046 308.885 186.477C310.45 184.929 311.169 183.402 311 181.875C310.746 179.628 309.794 177.931 308.145 176.829L308.102 176.765ZM96.7227 190.039C76.5662 189.276 60.9781 188.088 49.9375 186.54C38.8968 184.993 31.5364 181.981 27.8562 177.507C28.6388 176.15 31.3884 175.026 36.1473 174.157C40.885 173.288 46.0246 172.567 51.5449 171.973C57.0653 171.379 62.1414 170.955 66.7946 170.679C71.4477 170.383 74.0704 170.234 74.6415 170.234H79.2946C88.6009 170.807 96.0882 171.4 101.82 171.973C107.531 172.545 111.549 173.033 113.876 173.436L96.7227 190.039ZM147.146 188.576C136.592 188.958 125.488 189.255 113.876 189.446C115.23 187.495 117.366 184.971 120.263 181.875C123.182 178.78 126.376 175.472 129.845 171.973C133.335 168.474 137.015 164.891 140.885 161.201C144.756 157.511 148.436 154.013 151.926 150.705L172.273 129.14C172.654 127.973 173.33 127.401 174.303 127.401L184.181 118.092C185.154 117.71 186.55 116.629 188.411 114.89C190.251 113.151 192.176 111.201 194.206 109.08C196.237 106.96 198.182 104.818 200.023 102.676C201.863 100.535 203.259 98.902 204.231 97.7146L211.211 93.0496C213.919 90.3354 216.541 87.706 219.058 85.1827C221.575 82.6593 224.092 80.3268 226.609 78.1852L231.262 73.5202C233.99 70.9968 236.74 68.8128 239.553 66.968C242.345 65.1232 246.279 62.727 251.313 59.822V63.0239C251.313 66.3318 250.551 70.1062 248.986 74.3896C247.421 78.6729 245.877 82.3625 244.333 85.4583L184.181 180.137C182.446 181.494 180.881 183.445 179.528 185.968C168.487 187.325 157.679 188.194 147.125 188.597L147.146 188.576Z",stroke:o,strokeWidth:"2",fill:o,style:{"--path-length":s,strokeDasharray:s,strokeDashoffset:s,fillOpacity:0,animation:`drawSignature-${l.replace(/:/g,"")} ${n}s ease-out ${a}s forwards`}})]}):v.jsxs("svg",{...i,width:e,height:e,viewBox:"0 0 329 329",fill:"none",children:[v.jsx("path",{d:"M239.997 257.024C239.13 256.261 238.348 255.328 237.671 254.268C236.994 253.208 236.55 252.126 236.359 251.066C236.169 250.006 236.359 249.179 236.93 248.585C239.659 245.277 243.233 242.118 247.696 239.107C252.138 236.095 256.601 234.59 261.063 234.59C263.2 234.59 264.595 235.375 265.293 236.922C265.97 238.47 266.309 240.018 266.309 241.587C266.309 244.302 265.568 246.443 264.13 247.991C262.692 249.539 260.831 250.854 258.61 251.914C256.389 252.996 254.062 253.907 251.63 254.692C249.198 255.455 247.04 256.24 245.095 257.024L242.768 258.191C241.795 258.191 240.886 257.809 239.997 257.024Z",fill:o}),v.jsx("path",{d:"M308.102 176.765C306.453 175.663 304.126 174.963 301.123 174.687C298.119 174.411 294.46 174.433 290.167 174.772C285.873 175.111 281.008 175.578 275.594 176.193C273.648 176.405 271.829 176.617 270.179 176.808L245.793 180.942C242.091 181.536 239.003 182.003 236.486 182.406C233.969 182.808 231.558 182.702 229.232 182.13L193.572 185.777C193.952 184.293 194.587 182.893 195.517 181.6C196.469 180.243 197.548 179.161 198.711 178.398C205.099 169.068 211.254 160.056 217.176 151.299C223.077 142.562 228.639 134.102 233.885 125.959L234.752 121.888L253.936 88.6814C253.936 87.3243 254.422 86.2641 255.395 85.4795C256.368 84.7162 257.045 83.4439 257.425 81.7051L260.344 73.2445C260.915 71.6966 261.465 70.0426 261.93 68.2826C262.417 66.5439 262.671 64.5082 262.671 62.1757C262.671 60.8186 262.459 59.1223 262.1 57.0866C261.698 55.051 261.084 53.1426 260.217 51.4038C259.35 49.6438 258.271 48.1595 257.024 46.8872C255.776 45.615 254.168 45 252.243 45C250.89 45 249.388 45.3817 247.738 46.1663C246.089 46.9509 244.439 47.9263 242.789 49.0925C241.139 50.2588 239.595 51.4674 238.136 52.7397C236.677 54.012 235.471 55.0298 234.498 55.7932L207.468 81.7263L206.008 82.5957L192.641 96.2939C192.429 96.2939 192.112 96.3999 191.626 96.5907C191.139 96.7816 190.801 96.8876 190.61 96.8876L122.04 164.763C120.094 164.763 117.493 163.894 114.193 162.134C110.915 160.374 107.023 159.505 102.56 159.505C101.587 159.505 100.53 159.802 99.3666 160.374C98.2033 160.947 97.3361 161.243 96.7439 161.243C95.9613 161.243 95.2422 160.798 94.5654 159.929C93.8885 159.059 92.7887 158.635 91.2236 158.635C86.5704 159.611 83.567 160.183 82.2134 160.374C80.8597 160.586 79.9714 160.671 79.5907 160.671C77.6448 159.886 76.397 159.696 75.8047 160.098C75.2125 160.501 74.7472 160.777 74.3453 160.968C73.7743 160.586 72.3149 160.247 69.9883 159.95C67.6617 159.674 65.5255 159.505 63.6008 159.505C60.682 159.505 56.6634 159.611 51.5449 159.802C46.4053 159.992 41.3715 160.629 36.4434 161.689C31.5153 162.749 27.2005 164.488 23.5203 166.926C19.8401 169.365 18 172.8 18 177.274C18 181.155 18.9518 184.462 20.8976 187.177C22.8435 189.912 25.3181 192.223 28.3215 194.174C31.3249 196.125 34.6667 197.524 38.3469 198.394C42.0271 199.263 45.6016 199.709 49.0915 199.709C51.2277 200.281 53.1524 200.09 54.9079 199.136C54.6964 199.136 55.7328 199.369 57.9536 199.857C60.1744 200.345 62.9451 200.79 66.2235 201.172C69.523 201.553 72.9494 201.999 76.545 202.465C80.1195 202.953 83.0806 203.207 85.4071 203.207L59.5399 232.915L54.0196 239.319C52.8563 240.294 52.4333 241.948 52.7294 244.281C53.0043 246.613 53.6389 247.779 54.6118 247.779C57.1287 247.779 60.3225 246.083 64.193 242.69C68.0636 239.297 72.1457 235.163 76.397 230.307C80.6694 225.451 84.9207 220.51 89.1931 215.464C93.4444 210.417 97.2303 206.24 100.53 202.932C100.911 202.932 101.312 202.974 101.693 203.08C102.074 203.165 102.455 203.228 102.856 203.228C115.822 203.228 127.878 202.847 139.045 202.062C150.192 201.299 160.407 200.896 169.692 200.896C166.985 205.37 164.066 209.929 160.978 214.594C157.89 219.259 154.591 224.115 151.101 229.162L127.285 264.701C125.932 266.842 124.726 268.984 123.648 271.104C122.569 273.225 122.061 275.366 122.061 277.508C122.061 279.056 122.59 280.371 123.648 281.431C124.705 282.491 125.826 283.042 126.989 283.042C129.316 283.042 131.346 282.364 133.081 281.007C134.815 279.65 136.613 278.038 138.453 276.193C140.293 274.349 142.197 272.44 144.121 270.511C146.046 268.56 148.373 267.012 151.08 265.846L182.467 237.007C182.658 236.414 183.102 235.777 183.758 235.12C184.434 234.442 185.259 233.615 186.232 232.639L197.273 223.33C200.192 220.807 202.941 217.881 205.543 214.573C208.166 211.286 209.477 209.145 209.477 208.169C209.477 206.027 208.229 204.967 205.712 204.967C205.331 204.967 204.697 205.116 203.83 205.413C202.962 205.709 201.947 206.346 200.784 207.3L156.896 248.076L146.152 255.646L149.049 251.575C149.832 250.218 151.186 248.034 153.132 245.023C155.056 242.012 157.192 238.725 159.519 235.12C161.846 231.537 164.32 227.805 166.943 223.903C169.566 220.022 172.019 216.418 174.367 213.11C176.693 209.823 178.724 207.045 180.458 204.819C182.193 202.592 183.44 201.278 184.223 200.875C184.604 200.684 185.386 200.493 186.55 200.302C186.803 200.281 187.121 200.281 187.374 200.239L196.871 199.433C201.672 199.009 206.304 198.161 210.746 196.931C215.166 195.68 219.798 194.853 224.6 194.407C226.122 194.301 228.893 193.983 232.891 193.474C236.909 192.965 241.266 192.393 245.941 191.757C250.615 191.142 254.993 190.527 259.075 189.912C263.157 189.297 265.991 188.852 267.599 188.555C269.206 188.258 270.602 188.025 271.787 187.834C272.971 187.664 274.431 187.516 276.165 187.41C276.313 187.41 276.503 187.177 276.651 187.134L281.579 186.583C284.435 186.265 286.888 186.095 288.961 186.095C291.013 186.095 292.514 186.18 293.445 186.392C292.726 188.152 292.112 189.361 291.563 190.039C291.034 190.718 290.59 191.142 290.23 191.333C289.871 191.524 289.659 191.672 289.596 191.757C289.532 191.842 289.532 192.181 289.596 192.796C289.807 194.768 291.647 195.531 295.116 195.15C295.708 195.086 296.491 194.81 297.421 194.323C298.352 193.835 299.325 193.305 300.319 192.732C301.313 192.16 302.286 191.545 303.195 190.909C304.126 190.272 304.782 189.7 305.184 189.191C306.072 188.937 307.299 188.046 308.885 186.477C310.45 184.929 311.169 183.402 311 181.875C310.746 179.628 309.794 177.931 308.145 176.829L308.102 176.765ZM96.7227 190.039C76.5662 189.276 60.9781 188.088 49.9375 186.54C38.8968 184.993 31.5364 181.981 27.8562 177.507C28.6388 176.15 31.3884 175.026 36.1473 174.157C40.885 173.288 46.0246 172.567 51.5449 171.973C57.0653 171.379 62.1414 170.955 66.7946 170.679C71.4477 170.383 74.0704 170.234 74.6415 170.234H79.2946C88.6009 170.807 96.0882 171.4 101.82 171.973C107.531 172.545 111.549 173.033 113.876 173.436L96.7227 190.039ZM147.146 188.576C136.592 188.958 125.488 189.255 113.876 189.446C115.23 187.495 117.366 184.971 120.263 181.875C123.182 178.78 126.376 175.472 129.845 171.973C133.335 168.474 137.015 164.891 140.885 161.201C144.756 157.511 148.436 154.013 151.926 150.705L172.273 129.14C172.654 127.973 173.33 127.401 174.303 127.401L184.181 118.092C185.154 117.71 186.55 116.629 188.411 114.89C190.251 113.151 192.176 111.201 194.206 109.08C196.237 106.96 198.182 104.818 200.023 102.676C201.863 100.535 203.259 98.902 204.231 97.7146L211.211 93.0496C213.919 90.3354 216.541 87.706 219.058 85.1827C221.575 82.6593 224.092 80.3268 226.609 78.1852L231.262 73.5202C233.99 70.9968 236.74 68.8128 239.553 66.968C242.345 65.1232 246.279 62.727 251.313 59.822V63.0239C251.313 66.3318 250.551 70.1062 248.986 74.3896C247.421 78.6729 245.877 82.3625 244.333 85.4583L184.181 180.137C182.446 181.494 180.881 183.445 179.528 185.968C168.487 187.325 157.679 188.194 147.125 188.597L147.146 188.576Z",fill:o})]})};$i.displayName="SignatureA";const Eh=R("group relative flex items-center rounded-[8px] border box-border cursor-pointer w-full overflow-hidden isolate transition-[border-color] duration-300",{variants:{status:{normal:"bg-[var(--color-white)] border-[var(--color-gray-200)]",hover:"border-[var(--color-blue-800)]",generating:"bg-[var(--color-white)] border-[var(--color-gray-200)] cursor-default",error:"border-[var(--color-red-1000)]"},disabled:{true:"opacity-50 cursor-not-allowed pointer-events-none",false:""}},defaultVariants:{status:"normal",disabled:!1}}),Dh=R("absolute inset-0 -z-10 transition-opacity duration-300",{variants:{status:{normal:"opacity-0 group-hover:opacity-100",hover:"opacity-100",generating:"opacity-0",error:"opacity-100"}},defaultVariants:{status:"normal"}}),Ih=R("absolute inset-0",{variants:{status:{normal:"bg-[var(--color-blue-200)]",hover:"bg-[var(--color-blue-200)]",generating:"",error:"bg-[var(--color-red-200)]"}},defaultVariants:{status:"normal"}}),wa=R("flex gap-2 h-[75px] shrink-0",{variants:{status:{normal:"p-2 items-end",hover:"p-2 items-end",generating:"px-4 py-2 items-center",error:"px-4 py-2 items-center"}},defaultVariants:{status:"normal"}}),Lh=R("relative -bottom-2 w-[60px] h-[66px] bg-[var(--color-gray-50)] border border-[var(--color-gray-200)] border-b-0 rounded-t-[4px] overflow-hidden transition-transform duration-300 group-hover:opacity-90 group-hover:shadow-sm"),Rh=R("w-full h-full bg-[var(--color-blue-200)]/30 p-2 space-y-2 flex flex-col items-start justify-start gap-1"),Ph=R("h-1 bg-[var(--color-gray-200)] rounded-full origin-left"),Bh=R("flex flex-col gap-[4px] grow items-start p-4 min-w-0"),Fh=R("font-medium text-[14px] leading-[20px] text-[var(--color-blue-1000)]"),Oh=R("text-[12px] leading-[16px] text-[var(--color-gray-600)]"),jh=R("px-4 overflow-hidden flex items-center w-[56px] relative"),_h=R("absolute w-6 h-6 text-[var(--color-blue-800)]"),qh=R("w-6 h-6 text-[var(--color-gray-200)]"),Hh=R("w-4 h-4 shrink-0 transition-all duration-300",{variants:{status:{normal:"text-[var(--color-blue-1000)] group-hover:text-[var(--color-blue-800)] group-hover:translate-x-0.5",hover:"text-[var(--color-blue-800)] translate-x-0.5",generating:"text-[var(--color-gray-600)] animate-spin",error:"text-[var(--color-blue-1000)] group-hover:rotate-[-20deg]"}},defaultVariants:{status:"normal"}}),Vh=R("w-4 h-4 shrink-0 text-[var(--color-red-1000)] transition-transform duration-300 group-hover:scale-110"),$h={rest:{scaleX:1},hover:{scaleX:[0,1]}},Uh={rest:{x:0},hover:{x:4}},Gh={rest:{x:-20,opacity:0},hover:{x:0,opacity:1}},Wh={rest:{x:0,opacity:1},hover:{x:20,opacity:0}},Xh=[100,66,75,50],ms=Y.forwardRef(({title:e,subtitle:t,status:r,onClick:n,onActionClick:a,className:i,disabled:o=!1},l)=>{const[s,u]=Y.useState(!1),c=r||(s&&!o?"hover":"normal"),h=Y.useMemo(()=>c==="generating"||c==="error"?"rest":s?"hover":"rest",[c,s]),m=Y.useCallback(()=>{!r&&!o&&u(!0)},[r,o]),p=Y.useCallback(()=>{!r&&!o&&u(!1)},[r,o]),y=Y.useCallback(()=>{!o&&n&&n()},[o,n]),w=Y.useCallback(E=>{E.stopPropagation(),!o&&a&&a()},[o,a]),C=Y.useCallback(E=>{(E.key==="Enter"||E.key===" ")&&(E.preventDefault(),y())},[y]),k=()=>c==="generating"?v.jsx("div",{className:wa({status:"generating"}),children:v.jsx(b.Loader,{size:16,className:"text-[var(--color-gray-600)] animate-spin"})}):c==="error"?v.jsx("div",{className:wa({status:"error"}),children:v.jsx(b.TriangleAlert,{size:16,className:Vh()})}):v.jsx("div",{className:wa({status:c}),children:v.jsx("div",{className:Lh(),children:v.jsx(Ve.motion.div,{className:Rh(),variants:{rest:{},hover:{transition:{staggerChildren:.1}}},children:Xh.map((E,B)=>v.jsx(Ve.motion.div,{className:Ph(),style:{width:`${E}%`},variants:$h,transition:{duration:.4,ease:"easeInOut"}},B))})})}),A=()=>c==="generating"?null:c==="error"?v.jsx("button",{type:"button",onClick:w,className:"focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-blue-800)] focus-visible:ring-offset-2 rounded-sm","aria-label":"Retry",children:v.jsx(b.RotateCcw,{size:16,className:Hh({status:"error"})})}):v.jsxs(v.Fragment,{children:[v.jsx(Ve.motion.div,{className:_h(),variants:Gh,transition:{duration:.3,ease:"backOut"},children:v.jsx(b.ArrowUp,{size:24,className:"rotate-90"})}),v.jsx(Ve.motion.div,{className:qh(),variants:Wh,transition:{duration:.3},children:v.jsx(b.ArrowUp,{size:24,className:"rotate-90"})})]});return v.jsxs(Ve.motion.div,{ref:l,role:"button",tabIndex:o?-1:0,className:te(Eh({status:c,disabled:o}),i),onClick:y,onKeyDown:C,onMouseEnter:m,onMouseLeave:p,"aria-disabled":o,"aria-label":`${e} - ${t}${c==="error"?" - Error occurred":""}${c==="generating"?" - Generating":""}`,initial:"rest",whileHover:"hover",animate:h,children:[v.jsx("div",{className:Dh({status:c}),children:v.jsx("div",{className:Ih({status:c})})}),k(),v.jsxs(Ve.motion.div,{className:Bh(),variants:Uh,children:[v.jsx("p",{className:Fh(),title:e,children:e}),v.jsx("p",{className:Oh(),title:t,children:t})]}),v.jsx("div",{className:jh(),children:A()})]})});ms.displayName="ArtifactCard";const Yh=R("flex items-center flex-wrap gap-2",{variants:{size:{small:"text-[0.875rem] leading-[1.25rem]",medium:"text-[1rem] leading-[1.5rem]"}},defaultVariants:{size:"medium"}}),xn=R("inline-flex items-center gap-2 transition-colors duration-200",{variants:{state:{default:"text-[var(--color-gray-600)] hover:text-[var(--color-blue-1000)] cursor-pointer",active:"text-[var(--color-blue-1000)] font-medium cursor-default",inactive:"text-[var(--color-gray-600)] cursor-default"}},defaultVariants:{state:"default"}}),Kh=R("text-[var(--color-gray-600)] flex items-center justify-center"),fs=({items:e,separator:t=v.jsx(b.ChevronRight,{size:16}),className:r,size:n="medium"})=>v.jsx("nav",{"aria-label":"Breadcrumb",className:te(Yh({size:n}),r),children:v.jsx("ol",{className:"flex items-center flex-wrap gap-2",children:e.map((a,i)=>{const o=i===e.length-1;let l;return o?l=v.jsxs("span",{className:xn({state:"active"}),"aria-current":"page",children:[a.icon,a.label]}):a.href?l=v.jsxs("a",{href:a.href,className:xn({state:"default"}),onClick:a.onClick,children:[a.icon,a.label]}):a.onClick?l=v.jsxs("button",{type:"button",className:xn({state:"default"}),onClick:a.onClick,children:[a.icon,a.label]}):l=v.jsxs("span",{className:xn({state:"inactive"}),children:[a.icon,a.label]}),v.jsxs("li",{className:"flex items-center gap-2",children:[l,!o&&v.jsx("span",{className:Kh(),"aria-hidden":"true",children:t})]},`${a.label}-${i}`)})})}),Zh=R("inline-flex items-center justify-center rounded-[8px] font-normal transition-colors duration-200 box-border cursor-pointer disabled:cursor-not-allowed disabled:opacity-50 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2",{variants:{variant:{primary:"bg-[var(--color-white)] border border-[var(--color-blue-1000)] text-[var(--color-blue-1000)] hover:bg-[var(--color-blue-200)] active:bg-[var(--color-blue-400)] focus-visible:outline-[var(--color-blue-800)]",secondary:"bg-[rgba(255,255,255,0.01)] border border-[var(--color-gray-600)] text-[var(--color-gray-600)] hover:bg-[var(--color-gray-100)] hover:border-[var(--color-gray-800)] hover:text-[var(--color-gray-800)] active:bg-[var(--color-gray-200)] active:border-[var(--color-gray-1000)] active:text-[var(--color-gray-1000)] focus-visible:outline-[var(--color-blue-800)]",tertiary:"bg-transparent border border-transparent text-[var(--color-blue-1000)] hover:bg-[var(--color-gray-100)] active:bg-[var(--color-gray-200)] focus-visible:outline-[var(--color-blue-800)]",cta:"bg-[var(--color-blue-800)] border border-transparent text-[var(--color-white)] hover:bg-[var(--color-blue-400)] active:bg-[var(--color-blue-1000)] focus-visible:outline-[var(--color-blue-1000)]",danger:"bg-[var(--color-red-1000)] border border-transparent text-[var(--color-white)] hover:bg-[#e54545] active:bg-[#cc3d3d] focus-visible:outline-[var(--color-red-1000)]"},tone:{brand:"",neutral:""},size:{small:"px-2 py-2 gap-1 text-[0.75rem] leading-[1rem]",medium:"px-3 py-2 gap-1 text-[1rem] leading-[1.5rem]",large:"px-4 py-3 gap-1 text-[1rem] leading-[1.5rem]"}},compoundVariants:[{variant:"primary",tone:"neutral",className:"bg-[rgba(0,6,38,0.9)] border-transparent text-[var(--color-white)] hover:bg-[rgba(0,6,38,0.8)] active:bg-[rgba(0,6,38,1)] focus-visible:outline-[var(--color-blue-800)]"},{variant:"secondary",tone:"neutral",className:"bg-[rgba(255,255,255,0.01)] border-[rgba(0,13,77,0.45)] text-[rgba(0,9,51,0.65)] hover:bg-[rgba(0,13,77,0.05)] hover:border-[rgba(0,13,77,0.65)] hover:text-[rgba(0,9,51,0.85)] active:bg-[rgba(0,13,77,0.1)] active:border-[rgba(0,13,77,0.85)] active:text-[rgba(0,9,51,1)] focus-visible:outline-[var(--color-blue-800)]"},{variant:"tertiary",tone:"neutral",className:"text-[rgba(0,9,51,0.65)] hover:bg-[rgba(0,13,77,0.05)] active:bg-[rgba(0,13,77,0.1)] hover:text-[rgba(0,9,51,0.85)] active:text-[rgba(0,9,51,1)] focus-visible:outline-[var(--color-blue-800)]"}],defaultVariants:{variant:"primary",tone:"brand",size:"medium"}}),Rr=Y.forwardRef(({className:e,variant:t="primary",tone:r="brand",size:n="medium",startIcon:a,endIcon:i,children:o,disabled:l,...s},u)=>{const c=n==="small"?13:n==="large"?20:16;return v.jsxs("button",{ref:u,className:te(Zh({variant:t,tone:r,size:n}),e),disabled:l,...s,children:[a&&v.jsx("span",{className:"flex items-center justify-center shrink-0",style:{width:c,height:c},children:a}),o,i&&v.jsx("span",{className:"flex items-center justify-center shrink-0",style:{width:c,height:c},children:i})]})});Rr.displayName="Button";const Qh=R("relative inline-flex items-center px-1 py-1 gap-1 rounded-[5px] border overflow-hidden transition-colors",{variants:{status:{uploading:"border-[var(--color-gray-600)] bg-[var(--color-gray-50)]",processing:"border-[var(--color-gray-600)] bg-[var(--color-gray-50)]",done:"border-[var(--color-gray-200)] bg-[var(--color-white)]",error:"border-[var(--color-gray-200)] bg-[var(--color-white)]"}},defaultVariants:{status:"done"}}),Jh=R("truncate text-[0.75rem] leading-[1rem] font-normal",{variants:{status:{uploading:"text-[var(--color-gray-600)]",processing:"text-[var(--color-gray-800)]",done:"text-[var(--color-gray-800)]",error:"text-[var(--color-gray-800)]"}},defaultVariants:{status:"done"}}),wn=R("shrink-0",{variants:{status:{uploading:"text-[var(--color-blue-800)]",processing:"text-[var(--color-blue-800)]",done:"text-[var(--color-gray-600)]",error:"text-[var(--color-red-1000)]"}},defaultVariants:{status:"done"}}),ed=R("absolute top-0 left-0 bottom-0 bg-[var(--color-gray-200)] z-0 rounded-bl-[4px] rounded-tl-[4px]",{variants:{status:{uploading:"opacity-100",processing:"opacity-100",done:"opacity-0",error:"opacity-0"}},defaultVariants:{status:"uploading"}});var ps=(e=>(e.Uploading="uploading",e.Processing="processing",e.Done="done",e.Error="error",e))(ps||{});const gs=({filename:e,status:t="done",progress:r=0,onDelete:n,className:a})=>{const i=t==="uploading",o=t==="processing",l=t==="error",u=i?"uploading":o?"processing":l?"error":"done",c=()=>i?v.jsx(b.ArrowUp,{size:12,className:wn({status:u})}):o?v.jsx(b.Loader,{size:12,className:te(wn({status:u}),"animate-spin")}):l?v.jsx(b.TriangleAlert,{size:12,className:wn({status:u})}):v.jsx(b.FileText,{size:12,className:wn({status:u})});return v.jsxs("div",{className:"relative inline-block group",children:[v.jsxs("div",{className:te(Qh({status:u}),a),children:[(i||o)&&v.jsx(Ve.motion.div,{className:ed({status:u}),initial:{width:"0%"},animate:{width:`${r}%`},transition:{duration:.3,ease:"easeOut"}}),v.jsxs("div",{className:"relative z-10 flex items-center gap-1 pr-1",children:[v.jsx("div",{className:te("flex items-center justify-center shrink-0 p-1 rounded-[2px]",l&&"bg-[#fff2f2]"),children:c()}),v.jsx("span",{className:Jh({status:u}),title:e,children:e})]})]}),n&&!i&&!o&&v.jsx(Ve.motion.button,{onClick:n,className:"absolute -top-[6px] -right-[6px] hidden group-hover:flex items-center justify-center bg-[var(--color-white)] border border-[var(--color-gray-200)] rounded-[8px] p-[2px] focus:outline-none focus:ring-2 focus:ring-[var(--color-blue-800)] shrink-0 z-20","aria-label":"Remove file",initial:{scale:0,opacity:0},whileInView:{scale:1,opacity:1},whileHover:{scale:1.1},whileTap:{scale:.95},transition:{scale:{type:"spring",stiffness:400,damping:17},opacity:{duration:.2}},children:v.jsx(b.X,{size:10,className:"text-[var(--color-gray-800)]"})})]})},td=R("inline-flex items-center gap-2 cursor-pointer select-none group disabled:cursor-not-allowed disabled:opacity-50 w-fit",{variants:{size:{medium:"text-[1rem] leading-[1.5rem] gap-2",small:"gap-1"}},defaultVariants:{size:"medium"}}),rd=R("flex items-center justify-center transition-colors duration-200 ease-in-out rounded-[2px] border shrink-0",{variants:{checked:{true:"bg-[var(--color-blue-1000)] border-[var(--color-blue-1000)] text-white",false:"bg-white border-[var(--color-gray-200)] group-hover:border-[var(--color-gray-600)]"},size:{medium:"w-[16px] h-[16px]",small:"w-[12px] h-[12px]"}},defaultVariants:{checked:!1,size:"medium"}}),nd="sr-only peer",vs=Y.forwardRef(({className:e,checked:t,defaultChecked:r,onChange:n,label:a,size:i="medium",disabled:o,...l},s)=>{const[u,c]=Y.useState(r||!1),h=t!==void 0,m=h?t:u,p=y=>{h||c(y.target.checked),n==null||n(y)};return v.jsxs("label",{className:td({size:i,className:e}),children:[v.jsx("input",{type:"checkbox",className:nd,ref:s,checked:h?t:void 0,defaultChecked:h?void 0:r,onChange:p,disabled:o,...l}),v.jsx("span",{className:rd({checked:!!m,size:i}),children:v.jsx(b.Check,{size:i==="medium"?12:8,strokeWidth:3,className:te("text-white transition-opacity duration-200",m?"opacity-100":"opacity-0")})}),a&&v.jsx(Ot,{as:"span",variant:i==="medium"?"small":"x-small",color:"secondary",children:a})]})});vs.displayName="Checkbox";const ad=R("relative inline-flex items-center justify-center",{variants:{size:{xs:"w-[18px] h-[18px]",small:"w-[24px] h-[24px]",medium:"w-[32px] h-[32px]",large:"w-[40px] h-[40px]"}},defaultVariants:{size:"medium"}}),id=R("transform"),od=R("stroke-[var(--color-gray-200)]"),ld=R("transition-[stroke-dashoffset] duration-300 ease-in-out",{variants:{variant:{default:"stroke-[var(--color-blue-800)]",success:"stroke-[var(--color-green-1000)]",warning:"stroke-[var(--color-orange-800)]",error:"stroke-[var(--color-red-1000)]"}},defaultVariants:{variant:"default"}}),sd=R("absolute inset-0 flex items-center justify-center font-medium text-[var(--color-gray-800)]",{variants:{size:{xs:"text-[6px]",small:"text-[8px]",medium:"text-[10px]",large:"text-[12px]"}},defaultVariants:{size:"medium"}}),ud={xs:18,small:24,medium:32,large:40},Ui=Y.forwardRef(({className:e,value:t=0,max:r=100,size:n="medium",variant:a="default",showLabel:i=!0,labelFormatter:o,strokeWidth:l=3,...s},u)=>{const c=Math.min(Math.max(t/r*100,0),100),h=ud[n],m=(h-l)/2,p=2*Math.PI*m,y=p-c/100*p,w=o?o(t,r):`${Math.round(t)}`;return v.jsxs("div",{ref:u,className:te(ad({size:n}),e),role:"progressbar","aria-valuemin":0,"aria-valuemax":r,"aria-valuenow":t,...s,children:[v.jsxs("svg",{className:id(),width:h,height:h,viewBox:`0 0 ${h} ${h}`,children:[v.jsx("circle",{className:od(),cx:h/2,cy:h/2,r:m,fill:"none",strokeWidth:l}),v.jsx("circle",{className:ld({variant:a}),cx:h/2,cy:h/2,r:m,fill:"none",strokeWidth:l,strokeLinecap:"round",strokeDasharray:p,strokeDashoffset:y,transform:`rotate(-90 ${h/2} ${h/2})`})]}),i&&v.jsx("span",{className:sd({size:n}),children:w})]})});Ui.displayName="CircularProgress";function cd(e,t){Y.useEffect(()=>{const r=n=>{const a=e==null?void 0:e.current;!a||a.contains(n.target)||t(n)};return document.addEventListener("mousedown",r),document.addEventListener("touchstart",r),()=>{document.removeEventListener("mousedown",r),document.removeEventListener("touchstart",r)}},[e,t])}const hd=R("absolute top-full left-0 z-50 min-w-[200px] overflow-hidden rounded-[8px] border border-[var(--color-gray-200)] bg-[var(--color-white)] shadow-lg focus:outline-none",{variants:{align:{start:"left-0",end:"right-0 left-auto",center:"left-1/2 -translate-x-1/2"},attached:{true:"mt-0 rounded-t-none border-t-0",false:"mt-2"}},defaultVariants:{align:"start",attached:!1}}),dd=R("flex w-full cursor-pointer items-center px-3 py-2 text-[0.875rem] text-[var(--color-gray-800)] transition-colors hover:bg-[var(--color-gray-50)] focus:bg-[var(--color-gray-50)] focus:outline-none disabled:pointer-events-none disabled:opacity-50",{variants:{active:{true:"bg-[var(--color-gray-50)] text-[var(--color-gray-1000)]"},variant:{default:"",destructive:"text-[var(--color-red-1000)] hover:bg-[var(--color-red-200)] focus:bg-[var(--color-red-200)]"}},defaultVariants:{variant:"default",active:!1}}),md=R("px-3 py-1 text-[0.625rem] font-bold text-[var(--color-gray-600)] uppercase tracking-wider select-none"),fd=R("h-px bg-[var(--color-gray-200)] my-1"),bs=Y.createContext(void 0),na=()=>{const e=Y.useContext(bs);if(!e)throw new Error("useDropdown must be used within a Dropdown");return e},Gi=({children:e,defaultOpen:t=!1,open:r,onOpenChange:n,className:a,...i})=>{const[o,l]=Y.useState(t),s=r!==void 0,u=s?r:o,c=Y.useRef(null),h=()=>{const p=!u;s||l(p),n==null||n(p)},m=()=>{s||l(!1),n==null||n(!1)};return cd(c,m),v.jsx(bs.Provider,{value:{isOpen:u,toggle:h,close:m},children:v.jsx("div",{ref:c,className:te("relative inline-block text-left",a),...i,children:e})})};Gi.displayName="Dropdown";const Wi=Y.forwardRef(({className:e,children:t,onClick:r,...n},a)=>{const{toggle:i,isOpen:o}=na(),l=s=>{i(),r==null||r(s)};return v.jsx("div",{ref:a,className:te("cursor-pointer inline-block",e),onClick:l,"aria-haspopup":"true","aria-expanded":o,...n,children:t})});Wi.displayName="DropdownTrigger";const Xi=Y.forwardRef(({className:e,align:t="start",attached:r=!1,children:n,...a},i)=>{const{isOpen:o}=na();return v.jsx(Ve.AnimatePresence,{children:o&&v.jsx(Ve.motion.div,{ref:i,initial:{opacity:0,y:-4,scale:.98},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:-4,scale:.98},transition:{duration:.2,ease:[.16,1,.3,1]},style:{transformOrigin:"top center"},className:te(hd({align:t,attached:r}),e),...a,children:n})})});Xi.displayName="DropdownContent";const Yi=Y.forwardRef(({className:e,active:t,variant:r,closeOnSelect:n=!0,children:a,onClick:i,...o},l)=>{const{close:s}=na(),u=c=>{i==null||i(c),n&&s()};return v.jsx("div",{ref:l,className:te(dd({active:t,variant:r}),e),onClick:u,role:"menuitem",...o,children:a})});Yi.displayName="DropdownItem";const pd=Y.forwardRef(({className:e,children:t,...r},n)=>v.jsx("div",{ref:n,className:te(md(),e),...r,children:t}));pd.displayName="DropdownLabel";const gd=Y.forwardRef(({className:e,animated:t=!1,animationDelay:r=.2,...n},a)=>t?v.jsx("div",{ref:a,className:te("h-px my-1 overflow-hidden",e),...n,children:v.jsx(Ve.motion.div,{className:"h-full bg-[var(--color-gray-200)]",initial:{width:0},animate:{width:"100%"},transition:{duration:.3,ease:[.16,1,.3,1],delay:r}})}):v.jsx("div",{ref:a,className:te(fd(),e),...n}));gd.displayName="DropdownSeparator";const vd=R("w-full bg-[var(--color-white)] border border-solid rounded-[8px] font-normal transition-colors duration-200 box-border focus:outline-none disabled:cursor-not-allowed disabled:opacity-50",{variants:{status:{default:"border-[var(--color-gray-200)] text-[var(--color-gray-600)] placeholder:text-[var(--color-gray-600)] focus:border-[var(--color-blue-1000)] focus:text-[var(--color-blue-1000)]",error:"border-[var(--color-red-1000)] text-[var(--color-red-1000)] placeholder:text-[var(--color-red-1000)] focus:border-[var(--color-red-1000)]",success:"border-[var(--color-green-1000)] text-[var(--color-green-1000)] placeholder:text-[var(--color-green-1000)] focus:border-[var(--color-green-1000)]"},size:{medium:"px-4 py-4 text-[1rem] leading-[1.5rem]",small:"px-3 py-2 text-[0.875rem] leading-[1.25rem]",tiny:"p-2 text-[0.75rem] leading-[1rem]"}},defaultVariants:{status:"default",size:"medium"}}),bd=R("relative w-full",{variants:{size:{medium:"",small:"",tiny:""}},defaultVariants:{size:"medium"}}),U0=R("absolute top-1/2 -translate-y-1/2 pointer-events-none flex items-center justify-center",{variants:{status:{default:"text-[var(--color-gray-600)]",error:"text-[var(--color-red-1000)]",success:"text-[var(--color-green-1000)]"},position:{start:"",end:""},size:{medium:"size-[24px]",small:"size-[16px]",tiny:"size-[16px]"}},compoundVariants:[{position:"start",size:"medium",className:"left-4"},{position:"start",size:"small",className:"left-3"},{position:"start",size:"tiny",className:"left-2"},{position:"end",size:"medium",className:"right-4"},{position:"end",size:"small",className:"right-3"},{position:"end",size:"tiny",className:"right-2"}],defaultVariants:{status:"default",size:"medium",position:"end"}}),ys=Y.forwardRef(({className:e,status:t="default",size:r="medium",startIcon:n,endIcon:a,disabled:i,...o},l)=>{const s={medium:"pl-12",small:"pl-9",tiny:"pl-8"},u={medium:"pr-12",small:"pr-9",tiny:"pr-8"};return v.jsxs("div",{className:bd({size:r}),children:[n&&v.jsx("span",{className:U0({status:t,size:r,position:"start"}),children:n}),v.jsx("input",{ref:l,className:te(vd({status:t,size:r}),n&&s[r],a&&u[r],e),disabled:i,...o}),a&&v.jsx("span",{className:U0({status:t,size:r,position:"end"}),children:a})]})});ys.displayName="Input";const yd=R("flex flex-col items-center justify-center"),xd=R("relative",{variants:{size:{sm:"w-8 h-8",md:"w-12 h-12",lg:"w-16 h-16"}},defaultVariants:{size:"lg"}}),wd=R("absolute inset-0 rounded-full border-4 border-transparent animate-spin",{variants:{color:{primary:"border-t-[var(--color-blue-800)]",secondary:"border-t-[var(--color-gray-600)]"}},defaultVariants:{color:"primary"}}),kd=R("mt-4 typography-small",{variants:{color:{primary:"text-[var(--color-gray-1000)]",muted:"text-[var(--color-gray-600)]"}},defaultVariants:{color:"muted"}}),Sd=({size:e="lg",color:t="primary",text:r,textColor:n="muted"})=>v.jsxs("div",{className:yd(),children:[v.jsx("div",{className:xd({size:e}),children:v.jsx("div",{className:wd({color:t})})}),r&&v.jsx("p",{className:kd({color:n}),children:r})]}),ka=R("relative flex flex-col w-full max-w-[668px] transition-colors duration-200 group",{variants:{variant:{user:"",assistant:"",system:"",loader:""},alignment:{left:"items-start",center:"items-center",right:"items-end"},isEditing:{true:"items-stretch",false:""}},compoundVariants:[{variant:"user",alignment:void 0,isEditing:!1,className:"items-end"},{variant:"assistant",alignment:void 0,isEditing:!1,className:"items-start"},{variant:"system",alignment:void 0,className:"items-start"},{variant:"loader",alignment:void 0,className:"items-start"}],defaultVariants:{variant:"user",isEditing:!1}}),Cd=R("flex gap-[12px] items-start w-full"),Td=R("flex flex-col flex-1 min-w-0"),G0=R("flex flex-col w-full transition-colors duration-200",{variants:{variant:{user:"bg-[var(--color-white)] border border-[var(--color-gray-200)] rounded-[16px] p-[16px] gap-[24px]",assistant:"bg-transparent p-[8px] gap-[8px]",system:"bg-transparent p-[8px] gap-[8px]",loader:"bg-transparent p-[8px] gap-[24px]"},isSticky:{true:"shadow-[0px_8px_16px_-4px_rgba(0,0,0,0.1),0px_4px_8px_-4px_rgba(0,0,0,0.06)]",false:""}},defaultVariants:{variant:"user",isSticky:!1}}),Md=R("flex w-full",{variants:{variant:{user:"flex-col gap-[8px]",assistant:"flex-col gap-[8px]",system:"flex-row items-center gap-[8px]",loader:"flex-col items-start"}},defaultVariants:{variant:"user"}}),Ad=R("typography-h4 text-[var(--color-blue-1000)]"),W0=R("typography-small",{variants:{variant:{user:"text-[var(--color-blue-1000)]",assistant:"text-[var(--color-blue-1000)]",system:"text-[var(--color-gray-600)]",loader:""}},defaultVariants:{variant:"user"}}),X0=R("flex gap-[8px] p-[4px] rounded-[4px] transition-opacity duration-200",{variants:{variant:{user:"",assistant:"",system:"hidden",loader:"hidden"}},defaultVariants:{variant:"user"}}),zd=R(["flex","gap-[8px]","opacity-0","group-hover:opacity-100","transition-opacity","duration-200"]),Nd=R("p-1 rounded-[4px] text-[var(--color-gray-400)] hover:text-[var(--color-gray-800)] hover:drop-shadow-[0_1px_2px_rgba(0,0,0,0.15)] transition-all duration-200 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[var(--color-blue-800)] disabled:opacity-30 disabled:cursor-not-allowed disabled:hover:text-[var(--color-gray-400)] disabled:hover:drop-shadow-none",{variants:{isActive:{true:"text-[var(--color-blue-800)]",false:""}},defaultVariants:{isActive:!1}}),Ed=R("flex items-start justify-center shrink-0 pt-[4px]"),Dd=R("flex items-center justify-center size-[32px] rounded-full bg-[var(--color-blue-1000)]"),Id=R("text-[12px] text-[var(--color-gray-600)] mt-[4px]"),Ld=R("flex items-center justify-center"),Rd=R("relative overflow-hidden flex items-center gap-[8px] py-[2px] select-none"),Pd=R(["absolute -inset-y-2 -inset-x-4","animate-shimmer","bg-[linear-gradient(90deg,transparent_0%,transparent_35%,rgba(255,255,255,0.4)_50%,transparent_65%,transparent_100%)]","blur-[1px]","z-10 pointer-events-none"]),Bd=R(["relative shrink-0 flex items-center justify-center","text-[var(--color-gray-600)]","animate-signal-rhythm","origin-center"]),Fd=R(["absolute inset-0","bg-[var(--color-blue-200)]","rounded-full","opacity-0","animate-ping-slow","-z-10"]),Od=R(["flex","flex-col","w-full","bg-[var(--color-white)]","rounded-[16px]","border","border-[var(--color-blue-800)]","p-[16px]","gap-[8px]","transition-colors","duration-200"]),jd=R(["w-full","min-h-[60px]","bg-transparent","border-none","resize-none","typography-small","text-[var(--color-blue-1000)]","placeholder:text-[var(--color-gray-600)]","focus:outline-none","disabled:opacity-50","disabled:cursor-not-allowed"]),_d=R(["text-[12px]","leading-[16px]","text-[var(--color-gray-600)]"]),qd=R(["flex","items-center","gap-[4px]"]),Y0=R(["p-[4px]","rounded-[4px]","text-[var(--color-gray-400)]","transition-colors","duration-200","hover:text-[var(--color-gray-800)]","hover:bg-[var(--color-gray-100)]","disabled:opacity-30","disabled:cursor-not-allowed","disabled:hover:bg-transparent","disabled:hover:text-[var(--color-gray-400)]","focus-visible:outline","focus-visible:outline-2","focus-visible:outline-offset-1","focus-visible:outline-[var(--color-blue-800)]"]),Hd=R(["text-[12px]","leading-[16px]","text-[var(--color-gray-600)]","font-normal","tabular-nums","select-none","min-w-[32px]","text-center"]),Vd=[],$d=typeof navigator<"u"&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),Ud=$d?"⌘+Enter to save, Esc to cancel":"Ctrl+Enter to save, Esc to cancel",Gd=e=>{const t=typeof e=="string"?new Date(e):e,n=new Date().getTime()-t.getTime(),a=Math.floor(n/6e4);if(a<1)return"Just now";if(a<60)return`${a} min ago`;const i=Math.floor(a/60);return i<24?`${i}h ago`:t.toLocaleDateString()},Nr=Y.memo(({onClick:e,icon:t,label:r,className:n,isActive:a=!1,disabled:i=!1})=>v.jsx("button",{className:te(Nd({isActive:a}),n),onClick:e,type:"button","aria-label":r,disabled:i,children:v.jsx(t,{size:12})}));Nr.displayName="ActionButton";const xs=Y.memo(({branchInfo:e,onPrevious:t,onNext:r,isLoading:n=!1})=>{const a=e.currentIndex>1,i=e.currentIndex<e.totalBranches;return e.totalBranches<=1?null:v.jsxs("div",{className:te(qd()),children:[v.jsx("button",{type:"button",className:te(Y0()),onClick:t,disabled:!a||n,"aria-label":"Previous version",children:v.jsx(b.ChevronLeft,{size:14})}),v.jsxs("span",{className:te(Hd()),children:[e.currentIndex," / ",e.totalBranches]}),v.jsx("button",{type:"button",className:te(Y0()),onClick:r,disabled:!i||n,"aria-label":"Next version",children:v.jsx(b.ChevronRight,{size:14})})]})});xs.displayName="BranchNavigator";const Wd=()=>{const[e,t]=Y.useState(0);return Y.useEffect(()=>{const r=setInterval(()=>{t(n=>n+1)},2500);return()=>clearInterval(r)},[]),v.jsx("div",{className:te(Ld()),children:v.jsx($i,{size:28,colorVariant:"lightTeal",animated:!0,animationDuration:2},e)})},ws=Y.forwardRef(({className:e,variant:t="user",heading:r,children:n,isLoading:a,timestamp:i,hideAvatar:o=!1,showTimestamp:l=!1,isSticky:s=!1,isInitialPrompt:u=!1,alignment:c,actions:h=Vd,enableCopy:m=!1,copyIcon:p,onCopySuccess:y,enableEdit:w=!1,isEditing:C,initialEditContent:k,onEditStart:A,onEditCancel:E,onEditSave:B,isSaving:F=!1,branchInfo:D,onPreviousBranch:_,onNextBranch:O,isBranchLoading:H=!1,...L},K)=>{const G=Y.useRef(null),ce=Y.useRef(null),[J,V]=Y.useState(!1),[le,pe]=Y.useState(!1),[Q,Ee]=Y.useState(k??""),M=C??le,Me=c??(t==="user"?u?"center":"right":"left"),ke=Y.useCallback(()=>G.current?G.current.innerText:typeof n=="string"?n:"",[n]),z=Y.useCallback(()=>{if(C===void 0){const X=k??ke();Ee(X),pe(!0)}A==null||A()},[k,ke,C,A]),xe=Y.useCallback(()=>{C===void 0&&pe(!1),Ee(""),E==null||E()},[C,E]),Le=Y.useCallback(async()=>{if(!(!(Q!=null&&Q.trim())||F)&&Q.trim()!==(k==null?void 0:k.trim()))try{await(B==null?void 0:B(Q)),C===void 0&&pe(!1),Ee("")}catch(X){console.error("Failed to save edit:",X)}},[Q,F,B,C,k]),Te=Y.useCallback(X=>{X.key==="Escape"?xe():X.key==="Enter"&&(X.metaKey||X.ctrlKey)&&(X.preventDefault(),Le())},[xe,Le]),ye=Y.useRef(!1),Pe=Y.useRef(k);Y.useEffect(()=>{Pe.current=k},[k]),Y.useEffect(()=>{const X=ye.current;if(ye.current=M,M&&!X){const We=k||Pe.current||ke()||"";Ee(We)}else!M&&X&&Ee("")},[M,k,ke]),Y.useEffect(()=>{if(M&&ce.current){ce.current.focus();const X=ce.current.value.length;ce.current.setSelectionRange(X,X)}},[M]);const _e=Y.useCallback(async()=>{if(!G.current)return;const X=G.current.innerText;try{navigator.clipboard&&navigator.clipboard.writeText?(await navigator.clipboard.writeText(X),V(!0),y==null||y(),setTimeout(()=>{V(!1)},2e3)):console.warn("Clipboard API not available")}catch(We){console.error("Failed to copy:",We)}},[y]),qe=Y.useCallback(X=>{Ee(X.target.value)},[]),Ke=Y.useMemo(()=>h.length>0||m||w&&t==="user",[h.length,m,w,t]),tt=Y.useMemo(()=>!s&&!M&&(t==="user"||t==="assistant")&&Ke,[s,M,t,Ke]),Dt=Y.useMemo(()=>!M&&D&&D.totalBranches>1&&t==="user",[M,D,t]);return t==="loader"||a?v.jsx("div",{ref:K,className:te(ka({variant:"loader",alignment:"left",isEditing:!1}),e),...L,children:v.jsx("div",{className:te(G0({variant:"loader",isSticky:s})),children:v.jsx(Wd,{})})}):M&&t==="user"?v.jsxs("div",{ref:K,className:te(ka({variant:t,alignment:"right",isEditing:!0}),"group",e),...L,children:[v.jsx("div",{className:te(Od()),children:v.jsx("textarea",{ref:ce,value:Q,onChange:qe,onKeyDown:Te,className:te(jd()),placeholder:"Edit your message...",disabled:F,"aria-label":"Edit message"})}),v.jsxs("div",{className:te(X0({variant:t}),"opacity-100 justify-between"),children:[v.jsx("span",{className:te(_d()),children:Ud}),v.jsxs("div",{className:"flex",children:[v.jsx(Nr,{onClick:Le,icon:b.Check,label:"Save",disabled:F||!(Q!=null&&Q.trim())||Q.trim()===(k==null?void 0:k.trim())}),v.jsx(Nr,{onClick:xe,icon:b.X,label:"Cancel",disabled:F})]})]})]}):v.jsx("div",{ref:K,className:te(ka({variant:t,alignment:Me,isEditing:!1}),"group",e),...L,children:v.jsxs("div",{className:te(Cd()),children:[!o&&t==="assistant"&&v.jsx("div",{className:te(Ed()),children:v.jsx("div",{className:te(Dd()),children:v.jsx(Vi,{size:20,colorVariant:"lightTeal"})})}),v.jsxs("div",{className:te(Td()),children:[v.jsx("div",{className:te(G0({variant:t,isSticky:s})),children:v.jsx("div",{className:te(Md({variant:t})),ref:G,children:t==="system"?v.jsxs("div",{className:te(Rd()),children:[v.jsx("div",{className:te(Pd())}),v.jsxs("div",{className:te(Bd()),children:[v.jsx(b.Activity,{size:16}),v.jsx("div",{className:te(Fd())})]}),v.jsx("span",{className:te(W0({variant:t})),children:n})]}):v.jsxs(v.Fragment,{children:[t==="assistant"&&r&&v.jsx("h4",{className:te(Ad()),children:r}),v.jsx("div",{className:te(W0({variant:t})),children:n})]})})}),l&&i&&v.jsx("div",{className:te(Id()),children:Gd(i)}),(tt||Dt)&&v.jsxs("div",{className:te(X0({variant:t}),"justify-between"),children:[v.jsx("div",{className:te(zd()),children:tt&&v.jsxs(v.Fragment,{children:[m&&p&&v.jsx(Nr,{onClick:_e,icon:J?b.Check:p,label:J?"Copied":"Copy",isActive:J}),w&&t==="user"&&v.jsx(Nr,{onClick:z,icon:b.Edit2,label:"Edit"}),h.map((X,We)=>v.jsx(Nr,{onClick:X.onClick,icon:X.icon,label:X.label,isActive:X.isActive},`${X.label}-${We}`))]})}),Dt&&D&&v.jsx(xs,{branchInfo:D,onPrevious:_,onNext:O,isLoading:H})]})]})]})})});ws.displayName="MessageBubble";const Xd=R("w-full overflow-hidden rounded-full bg-[var(--color-gray-200)]",{variants:{size:{small:"h-1",medium:"h-2",large:"h-3"}},defaultVariants:{size:"medium"}}),Yd=R("h-full w-full flex-1 transition-all duration-300 ease-in-out rounded-full",{variants:{variant:{default:"bg-[var(--color-blue-800)]",success:"bg-[var(--color-green-1000)]",error:"bg-[var(--color-red-1000)]",warning:"bg-[var(--color-amber-1000)]"}},defaultVariants:{variant:"default"}}),Kd=R("flex justify-between mb-2 text-[var(--color-gray-800)]",{variants:{size:{small:"text-xs",medium:"text-sm",large:"text-base"}},defaultVariants:{size:"medium"}}),ks=Y.forwardRef(({className:e,value:t=0,max:r=100,variant:n="default",size:a="medium",showValueLabel:i=!1,label:o,valueFormatter:l,...s},u)=>{const c=Math.min(Math.max(t/r*100,0),100),h=l?l(t,r):`${Math.round(c)}%`;return v.jsxs("div",{ref:u,className:te("w-full",e),role:"progressbar","aria-valuemin":0,"aria-valuemax":r,"aria-valuenow":t,...s,children:[(o||i)&&v.jsxs("div",{className:Kd({size:a}),children:[o&&v.jsx("span",{className:"font-medium",children:o}),i&&v.jsx("span",{className:"ml-auto",children:h})]}),v.jsx("div",{className:Xd({size:a}),children:v.jsx("div",{className:Yd({variant:n}),style:{transform:`translateX(-${100-c}%)`}})})]})});ks.displayName="ProgressBar";const Zd=R(["w-full h-2 rounded-lg appearance-none cursor-pointer","focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2","disabled:cursor-not-allowed disabled:opacity-50","[&::-webkit-slider-thumb]:appearance-none","[&::-webkit-slider-thumb]:w-5 [&::-webkit-slider-thumb]:h-5","[&::-webkit-slider-thumb]:bg-[var(--color-white)]","[&::-webkit-slider-thumb]:border-2","[&::-webkit-slider-thumb]:rounded-full","[&::-webkit-slider-thumb]:shadow-sm","[&::-webkit-slider-thumb]:transition-all [&::-webkit-slider-thumb]:duration-200","[&::-webkit-slider-thumb]:hover:scale-110","[&::-moz-range-thumb]:w-5 [&::-moz-range-thumb]:h-5","[&::-moz-range-thumb]:bg-[var(--color-white)]","[&::-moz-range-thumb]:border-2","[&::-moz-range-thumb]:rounded-full","[&::-moz-range-thumb]:shadow-sm","[&::-moz-range-thumb]:transition-all [&::-moz-range-thumb]:duration-200","[&::-moz-range-thumb]:hover:scale-110"].join(" "),{variants:{variant:{cyan:["focus-visible:ring-[var(--color-blue-800)]","[&::-webkit-slider-thumb]:border-[var(--color-gray-200)] [&::-webkit-slider-thumb]:hover:border-[var(--color-blue-800)]","[&::-moz-range-thumb]:border-[var(--color-gray-200)] [&::-moz-range-thumb]:hover:border-[var(--color-blue-800)]"],orange:["focus-visible:ring-[var(--color-orange-800)]","[&::-webkit-slider-thumb]:border-[var(--color-gray-200)] [&::-webkit-slider-thumb]:hover:border-[var(--color-orange-800)]","[&::-moz-range-thumb]:border-[var(--color-gray-200)] [&::-moz-range-thumb]:hover:border-[var(--color-orange-800)]"]},animated:{true:["[&::-webkit-slider-thumb]:animate-pulse","[&::-moz-range-thumb]:animate-pulse"],false:[]}},defaultVariants:{variant:"cyan",animated:!1}}),Ss=Y.forwardRef(({className:e,variant:t="cyan",animated:r=!1,style:n,...a},i)=>{const{min:o=0,max:l=100,value:s,defaultValue:u}=a,c=Number(s??u??0),h=Number(o),m=Number(l),p=Math.min(Math.max((c-h)*100/(m-h),0),100),y=t==="orange"?"var(--color-orange-800)":"var(--color-blue-800)",w=`linear-gradient(to right, ${y} 0%, ${y} ${p}%, var(--color-gray-200) ${p}%, var(--color-gray-200) 100%)`;return v.jsx("input",{ref:i,type:"range",className:te(Zd({variant:t,animated:r}),e),style:{background:w,...n},...a})});Ss.displayName="RangeInput";const Qd=R("box-border flex cursor-pointer transition-all duration-200",{variants:{type:{collapsed:"flex-col items-center justify-center w-[64px] py-[6px] px-[4px] gap-[4px] rounded-[4px]",expanded:"flex-row items-center w-full h-[32px] px-[4px] py-[6px] gap-[8px] rounded-[4px]"},variant:{default:"text-[var(--color-gray-800)] hover:bg-[var(--color-gray-100)]",active:"text-[var(--color-blue-800)] bg-gradient-to-r from-[rgba(21,177,205,0.08)] to-[rgba(21,177,205,0.08)]",brand:"h-[44px] rounded-[24px] bg-transparent hover:bg-transparent"}},compoundVariants:[{type:"collapsed",variant:"active",className:"bg-gradient-to-r from-[rgba(21,177,205,0.08)] to-[rgba(21,177,205,0.08)]"}],defaultVariants:{type:"expanded",variant:"default"}}),Jd=R("relative shrink-0 flex items-center justify-center",{variants:{type:{collapsed:"size-[16px]",expanded:"size-[16px]"},variant:{default:"text-[var(--color-gray-800)]",active:"text-[var(--color-blue-800)]",brand:"text-[var(--color-blue-1000)] size-[24px]"}},defaultVariants:{type:"expanded",variant:"default"}}),em=R("font-normal whitespace-nowrap shrink-0",{variants:{type:{collapsed:"text-[8px] leading-[10px] text-center min-w-full",expanded:"text-[14px] leading-[20px]"},variant:{default:"text-[var(--color-gray-800)]",active:"text-[var(--color-blue-800)]",brand:"hidden"}},defaultVariants:{type:"expanded",variant:"default"}}),Cs=Y.forwardRef(({className:e,icon:t,label:r,isCollapsed:n=!1,isActive:a=!1,variant:i="default",onClick:o,children:l,...s},u)=>{const c=n?"collapsed":"expanded",h=a?"active":i,m=p=>{o&&(p.key==="Enter"||p.key===" ")&&(p.preventDefault(),o())};return v.jsxs("div",{ref:u,className:te(Qd({type:c,variant:h}),e),role:"button",tabIndex:0,"aria-label":r,onClick:o,onKeyDown:m,...s,children:[t&&v.jsx("div",{className:te(Jd({type:c,variant:h})),children:t}),(i!=="brand"||!n)&&v.jsx("span",{className:te(em({type:c,variant:h})),children:r})]})});Cs.displayName="SidebarItem";const tm=R("inline-flex items-center justify-center rounded-[4px] whitespace-nowrap transition-colors duration-200 box-border",{variants:{variant:{default:"border border-[var(--color-gray-200)] bg-[var(--color-gray-100)] px-2 py-[2px] text-[var(--color-gray-800)] gap-1",collaborator:"border border-[var(--color-gray-200)] bg-[var(--color-gray-100)] px-2 py-[2px] text-[var(--color-gray-800)] gap-1",indicator:"bg-[var(--color-gray-100)] px-[2px] h-[12px] gap-[4px] text-[var(--color-gray-600)]",error:"bg-[var(--color-red-200)] px-[2px] h-[12px] gap-[4px] text-[var(--color-red-1000)]"}},defaultVariants:{variant:"default"}}),rm=R("w-4 h-4 rounded-full object-cover shrink-0"),K0=R("flex items-center justify-center shrink-0"),Pr=Y.forwardRef(({className:e,variant:t="default",startIcon:r,endIcon:n,avatarSrc:a,children:i,...o},l)=>v.jsxs("div",{ref:l,className:te(tm({variant:t}),e),...o,children:[a&&v.jsx("img",{src:a,alt:"avatar",className:rm()}),r&&v.jsx("span",{className:K0(),children:r}),v.jsx(Ot,{variant:"tag",color:"inherit",className:"whitespace-nowrap",children:i}),n&&v.jsx("span",{className:K0(),children:n})]}));Pr.displayName="Tag";const nm=R("inline-flex h-8 items-center justify-start rounded-none bg-transparent p-0 text-muted-foreground w-full relative"),am=R("inline-flex items-center justify-center whitespace-nowrap px-2 py-2 text-[10px] leading-4 font-normal ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-transparent data-[state=active]:text-[var(--color-blue-1000)] data-[state=active]:shadow-none border-b border-[var(--color-gray-200)] data-[state=active]:border-[var(--color-blue-1000)] text-[var(--color-gray-600)] gap-2 hover:bg-[var(--color-gray-50)] hover:text-[var(--color-gray-800)] cursor-pointer group relative",{variants:{variant:{default:""}},defaultVariants:{variant:"default"}}),im=R("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2"),om=R("absolute bottom-0 left-0 right-0 h-[2px] bg-[var(--color-blue-1000)]"),lm=R("flex items-center gap-[2px]"),Z0=R("group-data-[state=active]:text-[var(--color-blue-1000)]"),sm=fr.Root,Ts=P.forwardRef(({className:e,...t},r)=>v.jsx(fr.List,{ref:r,className:te(nm(),e),...t}));Ts.displayName=fr.List.displayName;const Ms=P.forwardRef(({className:e,children:t,errorCount:r,configurationCount:n,...a},i)=>{const[o,l]=P.useState(!1),s=P.useRef(null);P.useEffect(()=>{const c=s.current;if(!c)return;const h=new MutationObserver(()=>{l(c.getAttribute("data-state")==="active")});return h.observe(c,{attributes:!0,attributeFilter:["data-state"]}),l(c.getAttribute("data-state")==="active"),()=>h.disconnect()},[]);const u=P.useCallback(c=>{s.current=c,typeof i=="function"?i(c):i&&(i.current=c)},[i]);return v.jsxs(fr.Trigger,{ref:u,className:te(am(),e),...a,children:[t,(n!==void 0||r!==void 0)&&v.jsxs("div",{className:lm(),children:[n!==void 0&&v.jsx(Pr,{variant:"indicator",startIcon:v.jsx(b.Settings,{size:10,className:"text-[#15B1CD]"}),className:Z0(),children:n}),r!==void 0&&v.jsx(Pr,{variant:"indicator",startIcon:v.jsx(b.TriangleAlert,{size:10,className:"text-[#FB6060]"}),className:Z0(),children:r})]}),v.jsx(Ve.motion.div,{className:om(),initial:!1,animate:{scaleX:o?1:0,opacity:o?1:0},transition:{duration:.3,ease:"easeInOut"},style:{originX:0}})]})});Ms.displayName=fr.Trigger.displayName;const As=P.forwardRef(({className:e,...t},r)=>v.jsx(fr.Content,{ref:r,className:te(im(),e),...t,asChild:!0,children:v.jsx(Ve.motion.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2,ease:"easeOut"},children:t.children})}));As.displayName=fr.Content.displayName;const um=R("w-full bg-[var(--color-white)] border border-solid rounded-[8px] font-normal transition-colors duration-200 box-border focus:outline-none disabled:cursor-not-allowed disabled:opacity-50 min-h-[80px]",{variants:{status:{default:"border-[var(--color-gray-200)] text-[var(--color-gray-600)] placeholder:text-[var(--color-gray-600)] focus:border-[var(--color-blue-1000)] focus:text-[var(--color-blue-1000)]",error:"border-[var(--color-red-1000)] text-[var(--color-red-1000)] placeholder:text-[var(--color-red-1000)] focus:border-[var(--color-red-1000)]",success:"border-[var(--color-green-1000)] text-[var(--color-green-1000)] placeholder:text-[var(--color-green-1000)] focus:border-[var(--color-green-1000)]"},size:{medium:"px-4 py-4 text-[1rem] leading-[1.5rem]",small:"px-3 py-2 text-[0.875rem] leading-[1.25rem]",tiny:"p-2 text-[0.75rem] leading-[1rem]"},resize:{none:"resize-none",vertical:"resize-y",horizontal:"resize-x",both:"resize"}},defaultVariants:{status:"default",size:"medium",resize:"vertical"}}),cm=R("relative w-full",{variants:{size:{medium:"",small:"",tiny:""}},defaultVariants:{size:"medium"}}),zs=Y.forwardRef(({className:e,status:t="default",size:r="medium",resize:n="vertical",disabled:a,...i},o)=>v.jsx("div",{className:cm({size:r}),children:v.jsx("textarea",{ref:o,className:te(um({status:t,size:r,resize:n}),e),disabled:a,...i})}));zs.displayName="TextArea";const hm=R("inline-flex items-center gap-1 font-sans whitespace-nowrap",{variants:{size:{small:"text-[0.625rem] leading-[1rem]",medium:"text-[0.75rem] leading-[1rem]",large:"text-[0.875rem] leading-[1.25rem]"},variant:{default:"text-[var(--color-gray-600)]",primary:"text-[var(--color-gray-800)]",muted:"text-[var(--color-gray-600)]"}},defaultVariants:{size:"medium",variant:"default"}}),dm=R("flex items-center justify-center shrink-0",{variants:{size:{small:"[&>svg]:w-[10px] [&>svg]:h-[10px]",medium:"[&>svg]:w-[12px] [&>svg]:h-[12px]",large:"[&>svg]:w-[14px] [&>svg]:h-[14px]"}},defaultVariants:{size:"medium"}}),mm=(e,t)=>{const r=t.getTime()-e.getTime(),n=Math.floor(r/1e3),a=Math.floor(n/60),i=Math.floor(a/60),o=Math.floor(i/24),l=Math.floor(o/7),s=Math.floor(o/30),u=Math.floor(o/365),c=r<0,h=Math.abs(n),m=Math.abs(a),p=Math.abs(i),y=Math.abs(o),w=Math.abs(l),C=Math.abs(s),k=Math.abs(u),A=(E,B)=>{const F=E===1?"":"s";return c?`in ${E} ${B}${F}`:`${E} ${B}${F} ago`};return h<60?"just now":m<60?A(m,"minute"):p<24?A(p,"hour"):y===1?c?"tomorrow":"yesterday":y<7?A(y,"day"):w<4?A(w,"week"):C<12?A(C,"month"):A(k,"year")},fm=(e,t,r)=>{switch(t){case"relative":return mm(e,new Date);case"short":return e.toLocaleDateString(r,{month:"short",day:"numeric",year:"numeric"});case"long":return e.toLocaleDateString(r,{month:"long",day:"numeric",year:"numeric"});case"time":return e.toLocaleTimeString(r,{hour:"numeric",minute:"2-digit",hour12:!0});case"datetime":return e.toLocaleDateString(r,{month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit",hour12:!0});default:return e.toLocaleDateString(r)}},pm=e=>e instanceof Date?e:typeof e=="number"?new Date(e):new Date(e),Ns=Y.forwardRef(({className:e,date:t,format:r="relative",size:n="medium",variant:a="default",showIcon:i=!1,locale:o="en-US",...l},s)=>{const u=Y.useMemo(()=>pm(t),[t]),c=Y.useMemo(()=>fm(u,r,o),[u,r,o]),h=Y.useMemo(()=>u.toISOString(),[u]),m=a==="primary"?"var(--color-gray-800)":"var(--color-gray-600)",p=n==="small"?10:n==="large"?14:12;return v.jsxs("time",{ref:s,dateTime:h,className:te(hm({size:n,variant:a}),e),...l,children:[i&&v.jsx("span",{className:dm({size:n}),children:v.jsx(b.ClockHistory,{size:p,color:m})}),c]})});Ns.displayName="Timestamp";const gm=R("flex min-w-[420px] w-fit max-w-[850px] pl-4 pr-3 py-3 rounded-[12px] shadow-xl border pointer-events-auto gap-2 relative items-center bg-white",{variants:{variant:{info:"bg-[linear-gradient(90deg,rgba(21,177,205,0.08)_0%,rgba(21,177,205,0.08)_100%),linear-gradient(90deg,rgb(255,255,255)_0%,rgb(255,255,255)_100%)] border-[var(--color-blue-800)]",success:"bg-[linear-gradient(90deg,rgba(113,212,129,0.08)_0%,rgba(113,212,129,0.08)_100%),linear-gradient(90deg,rgb(255,255,255)_0%,rgb(255,255,255)_100%)] border-[var(--color-green-1000)]",warning:"bg-[linear-gradient(90deg,rgba(242,229,40,0.08)_0%,rgba(242,229,40,0.08)_100%),linear-gradient(90deg,rgb(255,255,255)_0%,rgb(255,255,255)_100%)] border-[var(--color-orange-800)]",error:"bg-[linear-gradient(90deg,rgba(251,96,96,0.08)_0%,rgba(251,96,96,0.08)_100%),linear-gradient(90deg,rgb(255,255,255)_0%,rgb(255,255,255)_100%)] border-[var(--color-red-1000)]",prompt:"bg-[var(--color-gray-50)] border-[var(--color-blue-1000)]"}},defaultVariants:{variant:"info"}}),vm=R("flex-shrink-0",{variants:{variant:{info:"text-[var(--color-blue-800)]",success:"text-[var(--color-green-1000)]",warning:"text-[var(--color-orange-800)]",error:"text-[var(--color-red-1000)]",prompt:"text-[var(--color-blue-1000)]"}},defaultVariants:{variant:"info"}}),bm=R("flex items-center gap-1 flex-1"),ym=R("font-bold text-[var(--color-blue-1000)] text-[0.75rem] leading-normal"),xm=R("font-normal text-[var(--color-blue-1000)] text-[0.75rem] leading-normal"),wm=R("flex items-center gap-2 shrink-0"),km=R("w-[1px] self-stretch flex-shrink-0 bg-current",{variants:{variant:{info:"text-[var(--color-blue-800)]",success:"text-[var(--color-green-1000)]",warning:"text-[var(--color-orange-800)]",error:"text-[var(--color-red-1000)]",prompt:"text-[var(--color-blue-1000)]"}},defaultVariants:{variant:"info"}}),Sm=R("p-0 bg-transparent border-none text-[var(--color-blue-1000)] hover:opacity-70 transition-opacity flex items-center justify-center w-4 h-4 shrink-0 cursor-pointer"),Cm={info:b.Info,success:b.CheckCircle,warning:b.TriangleAlert,error:b.AlertCircle,prompt:b.Sparks},Tm={info:"var(--color-blue-800)",success:"var(--color-green-1000)",warning:"var(--color-orange-800)",error:"var(--color-red-1000)",prompt:"var(--color-blue-800)"},cr=({id:e,variant:t="info",title:r,description:n,icon:a,action:i,secondaryAction:o,onClose:l})=>{const s=Cm[t],u=Tm[t],c=()=>{l&&l(),e&&Bt.toast.dismiss(e)},h=p=>y=>{p(y),e&&Bt.toast.dismiss(e)},m=()=>a||(t==="success"?v.jsx(b.CheckCircle,{size:16,color:u}):t==="error"?v.jsx(b.AlertCircle,{size:16,color:u}):t==="prompt"?v.jsx(b.Sparks,{size:16,color:u}):v.jsx(s,{size:16}));return v.jsxs("div",{className:te(gm({variant:t})),role:"alert",children:[v.jsx("div",{className:vm({variant:t}),children:m()}),v.jsxs("div",{className:bm(),children:[v.jsx("span",{className:ym(),children:r}),n&&v.jsx("span",{className:xm(),children:n})]}),v.jsx("div",{className:km({variant:t})}),v.jsxs("div",{className:wm(),children:[o&&v.jsx(Rr,{onClick:h(o.onClick),variant:"tertiary",size:"small",startIcon:o.icon||v.jsx(b.Trash,{size:13,color:"currentColor"}),className:"w-auto",children:o.label}),i&&v.jsx(Rr,{onClick:h(i.onClick),variant:"primary",size:"small",startIcon:i.icon||v.jsx(b.Check,{size:13,color:"currentColor"}),className:"w-auto",children:i.label}),v.jsx("button",{onClick:c,className:Sm(),"aria-label":"Close",children:v.jsx(b.X,{size:16})})]})]})},Mm=({position:e="bottom-right",offset:t=24,gap:r=8,width:n,...a})=>v.jsx(Bt.Toaster,{position:e,offset:t,gap:r,toastOptions:{unstyled:!0,classNames:{toast:te("bg-transparent p-0",n?"":"w-auto")},style:n?{width:typeof n=="number"?`${n}px`:n}:void 0},...a}),Am={success:(e,t,r)=>Bt.toast.custom(n=>v.jsx(cr,{id:n,variant:"success",title:e,description:t,action:r})),error:(e,t,r)=>Bt.toast.custom(n=>v.jsx(cr,{id:n,variant:"error",title:e,description:t,action:r})),warning:(e,t,r)=>Bt.toast.custom(n=>v.jsx(cr,{id:n,variant:"warning",title:e,description:t,action:r})),info:(e,t,r)=>Bt.toast.custom(n=>v.jsx(cr,{id:n,variant:"info",title:e,description:t,action:r})),prompt:(e,t,r,n)=>Bt.toast.custom(a=>v.jsx(cr,{id:a,variant:"prompt",title:e,description:t,action:r,secondaryAction:n})),custom:e=>Bt.toast.custom(t=>v.jsx(cr,{id:t,...e}))},zm=R("flex items-center gap-3"),Nm=R("text-[var(--color-gray-1000)] font-medium select-none"),Em=R("relative inline-flex h-[24px] w-[44px] shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 disabled:cursor-not-allowed disabled:opacity-50",{variants:{enabled:{true:"bg-[var(--color-blue-800)] focus-visible:outline-[var(--color-blue-800)]",false:"bg-[var(--color-gray-200)]"}},defaultVariants:{enabled:!1}}),Dm=R("pointer-events-none inline-block h-[20px] w-[20px] transform rounded-full bg-[var(--color-white)] shadow-lg ring-0 transition duration-200 ease-in-out",{variants:{enabled:{true:"translate-x-[20px]",false:"translate-x-0"}},defaultVariants:{enabled:!1}}),Es=Y.forwardRef(({enabled:e,onChange:t,label:r,className:n,disabled:a,...i},o)=>v.jsxs("div",{className:te(zm(),n),children:[r&&v.jsx(Ot,{variant:"small",className:Nm(),children:r}),v.jsx("button",{ref:o,type:"button",role:"switch","aria-checked":e,disabled:a,onClick:()=>!a&&t(!e),className:Em({enabled:e}),...i,children:v.jsx("span",{className:Dm({enabled:e})})})]}));Es.displayName="Toggle";const Im=R("flex items-center justify-between w-full gap-2 min-h-[20px]"),Lm=R("text-xs font-normal font-sans leading-4 whitespace-nowrap",{variants:{status:{success:"text-[var(--color-gray-800)]",warning:"text-[var(--color-gray-800)]",error:"text-[var(--color-gray-800)]",info:"text-[var(--color-gray-800)]",neutral:"text-[var(--color-gray-800)]",loading:"text-[var(--color-gray-800)]"}},defaultVariants:{status:"neutral"}}),Rm={success:"var(--color-green-1000)",warning:"var(--color-orange-800)",error:"var(--color-red-1000)",info:"var(--color-blue-800)",neutral:"var(--color-gray-600)",loading:"var(--color-blue-800)"},Ds=Y.forwardRef(({className:e,status:t="neutral",message:r,...n},a)=>{const i=t==="loading"?"info":t,o=Rm[t],l=()=>t==="loading"?v.jsx(b.Loader,{size:16,color:o,className:"animate-spin"}):t==="success"?v.jsx(b.CheckCircle,{size:16,color:o}):t==="warning"?v.jsx(b.TriangleAlert,{size:16,color:o}):t==="error"?v.jsx(b.AlertCircle,{size:16,color:o}):t==="info"?v.jsx(b.Info,{size:16,color:o}):null;return v.jsxs("div",{ref:a,className:te(Im(),e),...n,children:[v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx(Hi,{variant:i,size:"small"}),v.jsx("span",{className:Lm({status:t}),children:r})]}),v.jsx("div",{className:"w-4 h-4 flex items-center justify-center",children:l()})]})});Ds.displayName="StatusMessage";const Pm=R("flex items-center justify-between w-full gap-2 min-h-[20px]"),Bm=R("flex items-center gap-2"),Fm=R("text-[12px] font-normal font-sans leading-[16px]",{variants:{status:{running:"text-[var(--color-gray-800)]",completed:"text-[var(--color-gray-800)]",stopped:"text-[var(--color-blue-800)]"}},defaultVariants:{status:"running"}}),Q0=R("w-4 h-4 flex items-center justify-center shrink-0"),Om={running:"var(--color-gray-800)",completed:"var(--color-gray-800)",stopped:"var(--color-blue-800)"},jm={running:"var(--color-gray-800)",completed:"var(--color-green-1000)",stopped:"var(--color-blue-800)"},Is=Y.forwardRef(({className:e,status:t="running",message:r,...n},a)=>{const i=Om[t],o=jm[t],l=()=>t==="completed"?v.jsx(b.CheckCircle,{size:16,color:o}):t==="stopped"?v.jsx(b.Hand,{size:16,color:o}):v.jsx(b.Pause,{size:16,color:o});return v.jsxs("div",{ref:a,className:te(Pm(),e),...n,children:[v.jsxs("div",{className:Bm(),children:[v.jsx("div",{className:Q0(),children:v.jsx(b.Hexagon,{size:16,color:i})}),v.jsx("span",{className:Fm({status:t}),children:r})]}),v.jsx("div",{className:Q0(),children:l()})]})});Is.displayName="AutopilotAction";const _m=R("z-50 rounded-[4px] px-3 py-3 shadow-[0px_8px_8px_-4px_rgba(0,0,0,0.04),0px_20px_24px_-4px_rgba(0,0,0,0.08)] max-w-[var(--radix-tooltip-content-available-width)] origin-[var(--radix-tooltip-content-transform-origin)]",{variants:{variant:{default:"bg-[var(--color-blue-1000)] text-[var(--color-gray-50)]",light:"bg-[var(--color-gray-50)] text-[var(--color-gray-1000)]"}},defaultVariants:{variant:"default"}}),qm=R("",{variants:{variant:{default:"fill-[var(--color-blue-1000)]",light:"fill-[var(--color-gray-50)]"}},defaultVariants:{variant:"default"}}),fi=({delayDuration:e=0,...t})=>v.jsx(hr.Provider,{delayDuration:e,...t}),pi=hr.Root,gi=hr.Trigger,Un=P.forwardRef(({className:e,sideOffset:t=4,children:r,variant:n,...a},i)=>v.jsx(hr.Portal,{children:v.jsx(hr.Content,{ref:i,sideOffset:t,asChild:!0,className:te(_m({variant:n}),e),...a,children:v.jsxs(Ve.motion.div,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},transition:{duration:.1,ease:"easeOut"},children:[v.jsx(Ot,{variant:"x-small",color:"inherit",className:"font-normal relative z-10",children:r}),v.jsx(hr.Arrow,{className:qm({variant:n})})]})})}));Un.displayName=hr.Content.displayName;const Hm=R("relative flex flex-col w-full"),Vm=R("box-border flex flex-col items-start p-4 rounded-[16px] w-full transition-all duration-200 min-w-[300px] max-w-[800px] relative z-10",{variants:{state:{default:"",active:"",withFiles:"",dragOver:""},variant:{default:"[background-image:linear-gradient(var(--color-white),var(--color-white)),linear-gradient(180deg,#B9BCCB_0%,#E5E7F0_100%)] [background-origin:padding-box,border-box] [background-clip:padding-box,border-box] border border-transparent shadow-[0px_8px_8px_-4px_rgba(0,0,0,0.04),0px_20px_24px_-4px_rgba(0,0,0,0.08)]",transparent:"bg-transparent border-none shadow-none"},isMagicActive:{true:"[background-image:linear-gradient(var(--color-white),var(--color-white))] border-transparent shadow-[0_0_40px_-10px_rgba(106,234,253,0.5),0_0_40px_-10px_rgba(255,111,0,0.4)]",false:""}},defaultVariants:{state:"default",variant:"default",isMagicActive:!1}}),$m=R("w-full transition-all duration-200",{variants:{state:{default:"border-[var(--color-gray-600)]",active:"border-[var(--color-blue-800)]",withFiles:"border-[var(--color-gray-600)]",dragOver:"border-[var(--color-blue-800)] border-dashed"},variant:{default:"bg-[var(--color-white)]",transparent:"bg-transparent"}},defaultVariants:{state:"default",variant:"default"}}),Um=R("box-border flex flex-col gap-[1.25rem] items-start justify-center w-full rounded-[inherit]"),Gm=R("flex flex-col gap-5 w-full"),Wm=R("flex flex-wrap gap-[8px] items-start w-full"),Xm=R("flex items-start justify-between w-full max-h-[200px] overflow-y-auto"),Ym=R("w-full bg-transparent border-none outline-none resize-none font-normal text-[16px] leading-[24px] min-h-[24px] placeholder:text-[var(--color-gray-600)] text-[var(--color-gray-1000)]",{variants:{state:{default:"",active:"",withFiles:"",dragOver:""}},defaultVariants:{state:"default"}}),Km=R("flex items-center justify-between w-full"),Zm=R("flex gap-[8px] items-center"),Qm=R("flex items-center gap-2.5"),Sa=R("flex items-center justify-center shrink-0 transition-all duration-200 disabled:opacity-40 disabled:cursor-not-allowed focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[var(--color-blue-800)]",{variants:{variant:{default:"size-[16px] text-[var(--color-gray-600)] hover:text-[var(--color-gray-800)] active:text-[var(--color-gray-1000)] cursor-pointer",add:"bg-[var(--color-gray-100)] border border-[var(--color-gray-200)] border-solid rounded-[100px] p-[8px] size-auto text-[var(--color-gray-600)] hover:bg-[var(--color-gray-200)] active:bg-[var(--color-gray-200)] cursor-pointer"}},defaultVariants:{variant:"default"}}),Jm=R("flex items-center justify-center shrink-0 size-[32px] rounded-[100px] transition-all duration-200 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2",{variants:{disabled:{true:"bg-[var(--color-gray-200)] text-[var(--color-white)] cursor-not-allowed",false:"bg-[var(--color-blue-800)] text-[var(--color-white)] hover:opacity-80 active:bg-[var(--color-blue-1000)] cursor-pointer focus-visible:outline-[var(--color-blue-800)]"}},defaultVariants:{disabled:!1}}),ef=R("animate-spin"),tf=R("flex flex-col gap-[12px] items-center justify-center px-[16px] py-[40px] min-h-[120px] w-full absolute inset-0 z-50 bg-[var(--color-white)] h-full rounded-xl min-h-0 border border-solid border-[var(--color-blue-1000)]"),rf=R("flex items-center justify-center"),nf=R("flex items-center gap-1 px-2 py-1 rounded-[6px] text-[var(--color-gray-600)] border border-[var(--color-gray-200)] transition-colors duration-200 cursor-pointer hover:bg-[var(--color-gray-50)] hover:border-[var(--color-gray-300)] hover:text-[var(--color-gray-800)] disabled:cursor-not-allowed disabled:opacity-50"),af=R("min-w-[120px]"),of=R("py-1.5 px-2"),lf=R("absolute -inset-[2px] rounded-[18px] z-0 pointer-events-none"),J0=R("absolute inset-0 rounded-[18px] w-full h-full",{variants:{layer:{base:"opacity-40",blur:"blur-xl opacity-20"}},defaultVariants:{layer:"base"}}),Ls=Y.forwardRef(({placeholder:e="Type message",value:t,files:r=[],disabled:n=!1,maxFiles:a=10,maxFileSize:i=1024*1024*1024,className:o,variant:l="default",actions:s=[],models:u=[],selectedModel:c,isLoading:h=!1,isUploading:m=!1,onChange:p,onSend:y,onFileAdd:w,onFileRemove:C,onModelChange:k,isUsingMagic:A=!1,contextUsage:E,contextMax:B=100},F)=>{var tt,Dt;const[D,_]=Y.useState(""),[O,H]=Y.useState(!1),[L,K]=Y.useState(!1),G=Y.useRef(null),ce=Y.useRef(null),J=t!==void 0?t:D,V=J.trim().length>0,le=r.length>0,Q=O?"dragOver":le?"withFiles":L?"active":"default",Ee=X=>{p?p(X):_(X)},M=X=>{Ee(X.target.value),Me()},Me=Y.useCallback(()=>{const X=G.current;X&&(X.style.height="auto",X.style.height=`${Math.min(X.scrollHeight,200)}px`)},[]);Y.useEffect(()=>{Me()},[J,Me]);const ke=Y.useCallback(()=>{n||m||!V&&!le||y&&(y(J,r),Ee(""),G.current&&(G.current.style.height="auto"))},[n,m,V,le,y,J,r]),z=X=>{X.key==="Enter"&&!X.shiftKey&&(X.preventDefault(),ke())},xe=X=>{const We=Array.from(X.target.files||[]);We.length>0&&w&&w(We),ce.current&&(ce.current.value="")},Le=()=>{var X;(X=ce.current)==null||X.click()},Te=Y.useRef(0),ye=X=>{X.preventDefault(),X.stopPropagation(),Te.current+=1,Te.current===1&&H(!0)},Pe=X=>{X.preventDefault(),X.stopPropagation(),Te.current-=1,Te.current===0&&H(!1)},_e=X=>{X.preventDefault(),X.stopPropagation()},qe=X=>{X.preventDefault(),X.stopPropagation(),Te.current=0,H(!1);const We=Array.from(X.dataTransfer.files);We.length>0&&w&&w(We)},Ke=X=>{C&&C(X)};return v.jsxs("div",{ref:F,className:te(Hm(),o),children:[v.jsx(Ve.AnimatePresence,{children:A&&v.jsxs(Ve.motion.div,{initial:{opacity:0,scale:.98},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.98},transition:{duration:1.2,ease:"easeInOut"},className:lf(),children:[v.jsx("div",{className:J0({layer:"base"}),children:v.jsx(Ve.motion.div,{className:"w-full h-full rounded-[inherit]",style:{background:"linear-gradient(90deg, var(--color-blue-800), var(--color-blue-400), var(--color-orange-800), var(--color-blue-800))",backgroundSize:"300% 100%"},animate:{backgroundPosition:["0% 50%","100% 50%"]},transition:{duration:4,repeat:1/0,ease:"linear"}})}),v.jsx("div",{className:J0({layer:"blur"}),children:v.jsx(Ve.motion.div,{className:"w-full h-full rounded-[inherit]",style:{background:"linear-gradient(90deg, var(--color-blue-800), var(--color-blue-400), var(--color-orange-800), var(--color-blue-800))",backgroundSize:"300% 100%"},animate:{backgroundPosition:["0% 50%","100% 50%"]},transition:{duration:4,repeat:1/0,ease:"linear"}})})]})}),v.jsxs("div",{className:Vm({state:Q,variant:l,isMagicActive:A}),onDragEnter:ye,onDragLeave:Pe,onDragOver:_e,onDrop:qe,children:[v.jsx("div",{className:$m({state:Q,variant:l}),children:v.jsx("div",{className:Um(),children:v.jsxs("div",{className:Gm(),children:[le&&v.jsx("div",{className:Wm(),children:r.map(X=>v.jsx(gs,{filename:X.filename,status:X.status,progress:X.progress,onDelete:()=>Ke(X.id)},X.id))}),v.jsx("div",{className:Xm(),children:v.jsx("textarea",{ref:G,className:Ym({state:Q}),placeholder:e,value:J,disabled:n||h,onChange:M,onKeyDown:z,onFocus:()=>K(!0),onBlur:()=>K(!1),rows:2,maxLength:1e4,"aria-label":"Chat message input"})}),v.jsxs("div",{className:Km(),children:[v.jsxs("div",{className:Zm(),children:[v.jsx("button",{type:"button",onClick:Le,className:Sa({variant:"add"}),disabled:n,"aria-label":"Add file",tabIndex:0,children:v.jsx(b.Plus,{size:16})}),s.map(X=>v.jsx(Y.Fragment,{children:X.tooltip?v.jsx(fi,{children:v.jsxs(pi,{children:[v.jsx(gi,{asChild:!0,children:v.jsx("button",{type:"button",onClick:X.onClick,className:Sa(),disabled:n||X.disabled,"aria-label":X.label,tabIndex:0,children:X.icon})}),v.jsx(Un,{variant:"light",children:X.tooltip})]})}):v.jsx("button",{type:"button",onClick:X.onClick,className:Sa(),disabled:n||X.disabled,"aria-label":X.label,tabIndex:0,children:X.icon})},`--action-${X.id}`))]}),v.jsxs("div",{className:Qm(),children:[u.length>0&&v.jsxs(Gi,{children:[v.jsx(Wi,{children:v.jsxs("button",{type:"button",className:nf(),disabled:n||h,"aria-label":"Select AI model",children:[v.jsx(Ot,{variant:"tiny",color:"inherit",as:"span",className:n||h?"opacity-50":void 0,children:((tt=u.find(X=>X.id===c))==null?void 0:tt.name)||((Dt=u[0])==null?void 0:Dt.name)||"Select model"}),v.jsx(b.ChevronDown,{size:10,color:"currentColor"})]})}),v.jsx(Xi,{align:"end",className:af(),children:u.map(X=>v.jsx(Yi,{active:X.id===c,onClick:()=>k==null?void 0:k(X.id),className:of(),children:v.jsx(Ot,{variant:"tiny",color:"inherit",as:"span",children:X.name})},X.id))})]}),E!==void 0&&v.jsx(fi,{children:v.jsxs(pi,{children:[v.jsx(gi,{asChild:!0,children:v.jsx("div",{className:"flex items-center justify-center h-[32px]",children:v.jsx(Ui,{value:E,max:B,size:"xs",showLabel:!1,variant:E>=90?"error":E>=75?"warning":"default",strokeWidth:2,"aria-label":`Context usage: ${E} of ${B}`})})}),v.jsxs(Un,{variant:"light",children:["Context: ",E,"/",B]})]})}),v.jsx("button",{type:"button",onClick:ke,className:Jm({disabled:n||h||m||!V&&!le}),disabled:n||h||m||!V&&!le,"aria-label":h?"Loading":"Send message",tabIndex:0,children:h?v.jsx(b.Loader,{size:16,color:"currentColor",className:ef()}):v.jsx(b.ArrowUp,{size:16,strokeWidth:2.5,color:"currentColor"})})]})]})]})})}),v.jsx(Ve.AnimatePresence,{children:O&&v.jsxs(Ve.motion.div,{initial:{opacity:0,filter:"blur(2px)"},animate:{opacity:1,filter:"blur(0px)"},exit:{opacity:0,filter:"blur(2px)"},transition:{duration:.2,ease:"easeInOut"},className:tf(),children:[v.jsx("div",{className:rf(),children:v.jsx(b.Uploadfile,{size:32,color:"var(--color-gray-1000)"})}),v.jsx(Ot,{variant:"small",weight:"bold",color:"primary",className:"text-center",children:"Drop your files here"}),v.jsxs(Ot,{variant:"small",color:"secondary",className:"text-center",children:["Up to ",a," files or a maximum size of"," ",Math.round(i/(1024*1024*1024)),"GB"]})]},"overlay")}),v.jsx("input",{ref:ce,type:"file",multiple:!0,onChange:xe,className:"hidden","aria-hidden":"true"})]})]})});Ls.displayName="ChatInput";const sf=R("w-full h-[48px] box-border flex items-center justify-between px-[16px] py-[12px] bg-[var(--color-white)] border-b border-[var(--color-gray-200)]"),uf=R("flex items-center gap-[12px] h-[24px]"),cf=R("flex items-center gap-[12px] h-[24px] rounded-[8px]"),eo=R("flex items-center justify-center size-[16px] overflow-hidden text-[var(--color-gray-800)] hover:text-[var(--color-blue-800)] transition-colors bg-transparent border-none cursor-pointer outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-blue-800)] rounded-sm"),hf=R("flex items-center gap-[8px]"),df=R("flex items-center"),Rs=Y.forwardRef(({className:e,breadcrumbs:t,tags:r=[],collaborators:n=[],onAddTag:a,onAddCollaborator:i,tagsOverflowCount:o=0,...l},s)=>v.jsxs("div",{ref:s,className:te(sf(),e),...l,children:[v.jsx(fs,{items:t,size:"medium"}),v.jsx("div",{className:uf(),children:v.jsxs("div",{className:cf(),children:[(r.length>0||o>0)&&v.jsxs("div",{className:hf(),children:[r.map(u=>v.jsx(Pr,{variant:"default",className:"bg-[var(--color-gray-100)] border border-[var(--color-gray-200)] text-[var(--color-gray-800)] px-[8px] py-[2px] text-[10px] h-[20px]",children:u.label},u.id)),o>0&&v.jsxs(Pr,{variant:"default",className:"bg-[var(--color-gray-100)] border border-[var(--color-gray-200)] text-[var(--color-gray-800)] px-[8px] py-[2px] text-[10px] h-[20px]",children:["+",o]})]}),n.length>0&&v.jsx("div",{className:df(),children:v.jsx("div",{className:"flex items-center flex-row-reverse",children:n.map((u,c)=>v.jsx("div",{className:"relative shrink-0 border-[1.5px] border-white rounded-full",style:{zIndex:n.length-c,marginRight:c<n.length-1?-4:0},children:v.jsx(qi,{initials:u.name,src:u.src,alt:u.name,className:"size-[24px] text-[10px]"})},u.id))})}),v.jsx("button",{type:"button",onClick:a,className:eo(),"aria-label":"Add tag",children:v.jsx(b.TagPlus,{size:16})}),v.jsx("button",{type:"button",onClick:i,className:eo(),"aria-label":"Add collaborator",children:v.jsx(b.UserPlus,{size:16})})]})})]}));Rs.displayName="ConversationHeader";function Qt(e,t,{checkForDefaultPrevented:r=!0}={}){return function(a){if(e==null||e(a),r===!1||!a.defaultPrevented)return t==null?void 0:t(a)}}function to(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Ps(...e){return t=>{let r=!1;const n=e.map(a=>{const i=to(a,t);return!r&&typeof i=="function"&&(r=!0),i});if(r)return()=>{for(let a=0;a<n.length;a++){const i=n[a];typeof i=="function"?i():to(e[a],null)}}}}function pr(...e){return P.useCallback(Ps(...e),e)}function mf(e,t){const r=P.createContext(t),n=i=>{const{children:o,...l}=i,s=P.useMemo(()=>l,Object.values(l));return v.jsx(r.Provider,{value:s,children:o})};n.displayName=e+"Provider";function a(i){const o=P.useContext(r);if(o)return o;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[n,a]}function ff(e,t=[]){let r=[];function n(i,o){const l=P.createContext(o),s=r.length;r=[...r,o];const u=h=>{var k;const{scope:m,children:p,...y}=h,w=((k=m==null?void 0:m[e])==null?void 0:k[s])||l,C=P.useMemo(()=>y,Object.values(y));return v.jsx(w.Provider,{value:C,children:p})};u.displayName=i+"Provider";function c(h,m){var w;const p=((w=m==null?void 0:m[e])==null?void 0:w[s])||l,y=P.useContext(p);if(y)return y;if(o!==void 0)return o;throw new Error(`\`${h}\` must be used within \`${i}\``)}return[u,c]}const a=()=>{const i=r.map(o=>P.createContext(o));return function(l){const s=(l==null?void 0:l[e])||i;return P.useMemo(()=>({[`__scope${e}`]:{...l,[e]:s}}),[l,s])}};return a.scopeName=e,[n,pf(a,...t)]}function pf(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(i){const o=n.reduce((l,{useScope:s,scopeName:u})=>{const h=s(i)[`__scope${u}`];return{...l,...h}},{});return P.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return r.scopeName=t.scopeName,r}var nn=globalThis!=null&&globalThis.document?P.useLayoutEffect:()=>{},gf=P[" useId ".trim().toString()]||(()=>{}),vf=0;function Ca(e){const[t,r]=P.useState(gf());return nn(()=>{r(n=>n??String(vf++))},[e]),e||(t?`radix-${t}`:"")}var bf=P[" useInsertionEffect ".trim().toString()]||nn;function yf({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[a,i,o]=xf({defaultProp:t,onChange:r}),l=e!==void 0,s=l?e:a;{const c=P.useRef(e!==void 0);P.useEffect(()=>{const h=c.current;h!==l&&console.warn(`${n} is changing from ${h?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),c.current=l},[l,n])}const u=P.useCallback(c=>{var h;if(l){const m=wf(c)?c(e):c;m!==e&&((h=o.current)==null||h.call(o,m))}else i(c)},[l,e,i,o]);return[s,u]}function xf({defaultProp:e,onChange:t}){const[r,n]=P.useState(e),a=P.useRef(r),i=P.useRef(t);return bf(()=>{i.current=t},[t]),P.useEffect(()=>{var o;a.current!==r&&((o=i.current)==null||o.call(i,r),a.current=r)},[r,a]),[r,n,i]}function wf(e){return typeof e=="function"}function Bs(e){const t=kf(e),r=P.forwardRef((n,a)=>{const{children:i,...o}=n,l=P.Children.toArray(i),s=l.find(Cf);if(s){const u=s.props.children,c=l.map(h=>h===s?P.Children.count(u)>1?P.Children.only(null):P.isValidElement(u)?u.props.children:null:h);return v.jsx(t,{...o,ref:a,children:P.isValidElement(u)?P.cloneElement(u,void 0,c):null})}return v.jsx(t,{...o,ref:a,children:i})});return r.displayName=`${e}.Slot`,r}function kf(e){const t=P.forwardRef((r,n)=>{const{children:a,...i}=r;if(P.isValidElement(a)){const o=Mf(a),l=Tf(i,a.props);return a.type!==P.Fragment&&(l.ref=n?Ps(n,o):o),P.cloneElement(a,l)}return P.Children.count(a)>1?P.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Sf=Symbol("radix.slottable");function Cf(e){return P.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Sf}function Tf(e,t){const r={...t};for(const n in t){const a=e[n],i=t[n];/^on[A-Z]/.test(n)?a&&i?r[n]=(...l)=>{const s=i(...l);return a(...l),s}:a&&(r[n]=a):n==="style"?r[n]={...a,...i}:n==="className"&&(r[n]=[a,i].filter(Boolean).join(" "))}return{...e,...r}}function Mf(e){var n,a;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(a=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:a.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var Af=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Mt=Af.reduce((e,t)=>{const r=Bs(`Primitive.${t}`),n=P.forwardRef((a,i)=>{const{asChild:o,...l}=a,s=o?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),v.jsx(s,{...l,ref:i})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function zf(e,t){e&&L1.flushSync(()=>e.dispatchEvent(t))}function an(e){const t=P.useRef(e);return P.useEffect(()=>{t.current=e}),P.useMemo(()=>(...r)=>{var n;return(n=t.current)==null?void 0:n.call(t,...r)},[])}function Nf(e,t=globalThis==null?void 0:globalThis.document){const r=an(e);P.useEffect(()=>{const n=a=>{a.key==="Escape"&&r(a)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var Ef="DismissableLayer",vi="dismissableLayer.update",Df="dismissableLayer.pointerDownOutside",If="dismissableLayer.focusOutside",ro,Fs=P.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Os=P.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:a,onFocusOutside:i,onInteractOutside:o,onDismiss:l,...s}=e,u=P.useContext(Fs),[c,h]=P.useState(null),m=(c==null?void 0:c.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,p]=P.useState({}),y=pr(t,_=>h(_)),w=Array.from(u.layers),[C]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),k=w.indexOf(C),A=c?w.indexOf(c):-1,E=u.layersWithOutsidePointerEventsDisabled.size>0,B=A>=k,F=Pf(_=>{const O=_.target,H=[...u.branches].some(L=>L.contains(O));!B||H||(a==null||a(_),o==null||o(_),_.defaultPrevented||l==null||l())},m),D=Bf(_=>{const O=_.target;[...u.branches].some(L=>L.contains(O))||(i==null||i(_),o==null||o(_),_.defaultPrevented||l==null||l())},m);return Nf(_=>{A===u.layers.size-1&&(n==null||n(_),!_.defaultPrevented&&l&&(_.preventDefault(),l()))},m),P.useEffect(()=>{if(c)return r&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(ro=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(c)),u.layers.add(c),no(),()=>{r&&u.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=ro)}},[c,m,r,u]),P.useEffect(()=>()=>{c&&(u.layers.delete(c),u.layersWithOutsidePointerEventsDisabled.delete(c),no())},[c,u]),P.useEffect(()=>{const _=()=>p({});return document.addEventListener(vi,_),()=>document.removeEventListener(vi,_)},[]),v.jsx(Mt.div,{...s,ref:y,style:{pointerEvents:E?B?"auto":"none":void 0,...e.style},onFocusCapture:Qt(e.onFocusCapture,D.onFocusCapture),onBlurCapture:Qt(e.onBlurCapture,D.onBlurCapture),onPointerDownCapture:Qt(e.onPointerDownCapture,F.onPointerDownCapture)})});Os.displayName=Ef;var Lf="DismissableLayerBranch",Rf=P.forwardRef((e,t)=>{const r=P.useContext(Fs),n=P.useRef(null),a=pr(t,n);return P.useEffect(()=>{const i=n.current;if(i)return r.branches.add(i),()=>{r.branches.delete(i)}},[r.branches]),v.jsx(Mt.div,{...e,ref:a})});Rf.displayName=Lf;function Pf(e,t=globalThis==null?void 0:globalThis.document){const r=an(e),n=P.useRef(!1),a=P.useRef(()=>{});return P.useEffect(()=>{const i=l=>{if(l.target&&!n.current){let s=function(){js(Df,r,u,{discrete:!0})};const u={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",a.current),a.current=s,t.addEventListener("click",a.current,{once:!0})):s()}else t.removeEventListener("click",a.current);n.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",i),t.removeEventListener("click",a.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function Bf(e,t=globalThis==null?void 0:globalThis.document){const r=an(e),n=P.useRef(!1);return P.useEffect(()=>{const a=i=>{i.target&&!n.current&&js(If,r,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",a),()=>t.removeEventListener("focusin",a)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function no(){const e=new CustomEvent(vi);document.dispatchEvent(e)}function js(e,t,r,{discrete:n}){const a=r.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&a.addEventListener(e,t,{once:!0}),n?zf(a,i):a.dispatchEvent(i)}var Ta="focusScope.autoFocusOnMount",Ma="focusScope.autoFocusOnUnmount",ao={bubbles:!1,cancelable:!0},Ff="FocusScope",_s=P.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:a,onUnmountAutoFocus:i,...o}=e,[l,s]=P.useState(null),u=an(a),c=an(i),h=P.useRef(null),m=pr(t,w=>s(w)),p=P.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;P.useEffect(()=>{if(n){let w=function(E){if(p.paused||!l)return;const B=E.target;l.contains(B)?h.current=B:Kt(h.current,{select:!0})},C=function(E){if(p.paused||!l)return;const B=E.relatedTarget;B!==null&&(l.contains(B)||Kt(h.current,{select:!0}))},k=function(E){if(document.activeElement===document.body)for(const F of E)F.removedNodes.length>0&&Kt(l)};document.addEventListener("focusin",w),document.addEventListener("focusout",C);const A=new MutationObserver(k);return l&&A.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",w),document.removeEventListener("focusout",C),A.disconnect()}}},[n,l,p.paused]),P.useEffect(()=>{if(l){oo.add(p);const w=document.activeElement;if(!l.contains(w)){const k=new CustomEvent(Ta,ao);l.addEventListener(Ta,u),l.dispatchEvent(k),k.defaultPrevented||(Of(Vf(qs(l)),{select:!0}),document.activeElement===w&&Kt(l))}return()=>{l.removeEventListener(Ta,u),setTimeout(()=>{const k=new CustomEvent(Ma,ao);l.addEventListener(Ma,c),l.dispatchEvent(k),k.defaultPrevented||Kt(w??document.body,{select:!0}),l.removeEventListener(Ma,c),oo.remove(p)},0)}}},[l,u,c,p]);const y=P.useCallback(w=>{if(!r&&!n||p.paused)return;const C=w.key==="Tab"&&!w.altKey&&!w.ctrlKey&&!w.metaKey,k=document.activeElement;if(C&&k){const A=w.currentTarget,[E,B]=jf(A);E&&B?!w.shiftKey&&k===B?(w.preventDefault(),r&&Kt(E,{select:!0})):w.shiftKey&&k===E&&(w.preventDefault(),r&&Kt(B,{select:!0})):k===A&&w.preventDefault()}},[r,n,p.paused]);return v.jsx(Mt.div,{tabIndex:-1,...o,ref:m,onKeyDown:y})});_s.displayName=Ff;function Of(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(Kt(n,{select:t}),document.activeElement!==r)return}function jf(e){const t=qs(e),r=io(t,e),n=io(t.reverse(),e);return[r,n]}function qs(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const a=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||a?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function io(e,t){for(const r of e)if(!_f(r,{upTo:t}))return r}function _f(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function qf(e){return e instanceof HTMLInputElement&&"select"in e}function Kt(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&qf(e)&&t&&e.select()}}var oo=Hf();function Hf(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=lo(e,t),e.unshift(t)},remove(t){var r;e=lo(e,t),(r=e[0])==null||r.resume()}}}function lo(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function Vf(e){return e.filter(t=>t.tagName!=="A")}var $f="Portal",Hs=P.forwardRef((e,t)=>{var l;const{container:r,...n}=e,[a,i]=P.useState(!1);nn(()=>i(!0),[]);const o=r||a&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return o?Jl.createPortal(v.jsx(Mt.div,{...n,ref:t}),o):null});Hs.displayName=$f;function Uf(e,t){return P.useReducer((r,n)=>t[r][n]??r,e)}var aa=e=>{const{present:t,children:r}=e,n=Gf(t),a=typeof r=="function"?r({present:n.isPresent}):P.Children.only(r),i=pr(n.ref,Wf(a));return typeof r=="function"||n.isPresent?P.cloneElement(a,{ref:i}):null};aa.displayName="Presence";function Gf(e){const[t,r]=P.useState(),n=P.useRef(null),a=P.useRef(e),i=P.useRef("none"),o=e?"mounted":"unmounted",[l,s]=Uf(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return P.useEffect(()=>{const u=kn(n.current);i.current=l==="mounted"?u:"none"},[l]),nn(()=>{const u=n.current,c=a.current;if(c!==e){const m=i.current,p=kn(u);e?s("MOUNT"):p==="none"||(u==null?void 0:u.display)==="none"?s("UNMOUNT"):s(c&&m!==p?"ANIMATION_OUT":"UNMOUNT"),a.current=e}},[e,s]),nn(()=>{if(t){let u;const c=t.ownerDocument.defaultView??window,h=p=>{const w=kn(n.current).includes(CSS.escape(p.animationName));if(p.target===t&&w&&(s("ANIMATION_END"),!a.current)){const C=t.style.animationFillMode;t.style.animationFillMode="forwards",u=c.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=C)})}},m=p=>{p.target===t&&(i.current=kn(n.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",h),t.addEventListener("animationend",h),()=>{c.clearTimeout(u),t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",h),t.removeEventListener("animationend",h)}}else s("ANIMATION_END")},[t,s]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:P.useCallback(u=>{n.current=u?getComputedStyle(u):null,r(u)},[])}}function kn(e){return(e==null?void 0:e.animationName)||"none"}function Wf(e){var n,a;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(a=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:a.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var Aa=0;function Xf(){P.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??so()),document.body.insertAdjacentElement("beforeend",e[1]??so()),Aa++,()=>{Aa===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Aa--}},[])}function so(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var St=function(){return St=Object.assign||function(t){for(var r,n=1,a=arguments.length;n<a;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},St.apply(this,arguments)};function Vs(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r}function Yf(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,i;n<a;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}var _n="right-scroll-bar-position",qn="width-before-scroll-bar",Kf="with-scroll-bars-hidden",Zf="--removed-body-scroll-bar-size";function za(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Qf(e,t){var r=Y.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var a=r.value;a!==n&&(r.value=n,r.callback(n,a))}}}})[0];return r.callback=t,r.facade}var Jf=typeof window<"u"?P.useLayoutEffect:P.useEffect,uo=new WeakMap;function e2(e,t){var r=Qf(null,function(n){return e.forEach(function(a){return za(a,n)})});return Jf(function(){var n=uo.get(r);if(n){var a=new Set(n),i=new Set(e),o=r.current;a.forEach(function(l){i.has(l)||za(l,null)}),i.forEach(function(l){a.has(l)||za(l,o)})}uo.set(r,e)},[e]),r}function t2(e){return e}function r2(e,t){t===void 0&&(t=t2);var r=[],n=!1,a={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(i){var o=t(i,n);return r.push(o),function(){r=r.filter(function(l){return l!==o})}},assignSyncMedium:function(i){for(n=!0;r.length;){var o=r;r=[],o.forEach(i)}r={push:function(l){return i(l)},filter:function(){return r}}},assignMedium:function(i){n=!0;var o=[];if(r.length){var l=r;r=[],l.forEach(i),o=r}var s=function(){var c=o;o=[],c.forEach(i)},u=function(){return Promise.resolve().then(s)};u(),r={push:function(c){o.push(c),u()},filter:function(c){return o=o.filter(c),r}}}};return a}function n2(e){e===void 0&&(e={});var t=r2(null);return t.options=St({async:!0,ssr:!1},e),t}var $s=function(e){var t=e.sideCar,r=Vs(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return P.createElement(n,St({},r))};$s.isSideCarExport=!0;function a2(e,t){return e.useMedium(t),$s}var Us=n2(),Na=function(){},ia=P.forwardRef(function(e,t){var r=P.useRef(null),n=P.useState({onScrollCapture:Na,onWheelCapture:Na,onTouchMoveCapture:Na}),a=n[0],i=n[1],o=e.forwardProps,l=e.children,s=e.className,u=e.removeScrollBar,c=e.enabled,h=e.shards,m=e.sideCar,p=e.noRelative,y=e.noIsolation,w=e.inert,C=e.allowPinchZoom,k=e.as,A=k===void 0?"div":k,E=e.gapMode,B=Vs(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),F=m,D=e2([r,t]),_=St(St({},B),a);return P.createElement(P.Fragment,null,c&&P.createElement(F,{sideCar:Us,removeScrollBar:u,shards:h,noRelative:p,noIsolation:y,inert:w,setCallbacks:i,allowPinchZoom:!!C,lockRef:r,gapMode:E}),o?P.cloneElement(P.Children.only(l),St(St({},_),{ref:D})):P.createElement(A,St({},_,{className:s,ref:D}),l))});ia.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};ia.classNames={fullWidth:qn,zeroRight:_n};var i2=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function o2(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=i2();return t&&e.setAttribute("nonce",t),e}function l2(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function s2(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var u2=function(){var e=0,t=null;return{add:function(r){e==0&&(t=o2())&&(l2(t,r),s2(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},c2=function(){var e=u2();return function(t,r){P.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},Gs=function(){var e=c2(),t=function(r){var n=r.styles,a=r.dynamic;return e(n,a),null};return t},h2={left:0,top:0,right:0,gap:0},Ea=function(e){return parseInt(e||"",10)||0},d2=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],a=t[e==="padding"?"paddingRight":"marginRight"];return[Ea(r),Ea(n),Ea(a)]},m2=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return h2;var t=d2(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},f2=Gs(),Dr="data-scroll-locked",p2=function(e,t,r,n){var a=e.left,i=e.top,o=e.right,l=e.gap;return r===void 0&&(r="margin"),`
27
+ .`.concat(Kf,` {
28
+ overflow: hidden `).concat(n,`;
29
+ padding-right: `).concat(l,"px ").concat(n,`;
30
30
  }
31
- body[`).concat(H0,`] {
32
- overflow: hidden `).concat(a,`;
31
+ body[`).concat(Dr,`] {
32
+ overflow: hidden `).concat(n,`;
33
33
  overscroll-behavior: contain;
34
- `).concat([e&&"position: relative ".concat(a,";"),t==="margin"&&`
35
- padding-left: `.concat(n,`px;
36
- padding-top: `).concat(s,`px;
34
+ `).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
35
+ padding-left: `.concat(a,`px;
36
+ padding-top: `).concat(i,`px;
37
37
  padding-right: `).concat(o,`px;
38
38
  margin-left:0;
39
39
  margin-top:0;
40
- margin-right: `).concat(l,"px ").concat(a,`;
41
- `),t==="padding"&&"padding-right: ".concat(l,"px ").concat(a,";")].filter(Boolean).join(""),`
40
+ margin-right: `).concat(l,"px ").concat(n,`;
41
+ `),r==="padding"&&"padding-right: ".concat(l,"px ").concat(n,";")].filter(Boolean).join(""),`
42
42
  }
43
43
 
44
- .`).concat(zt,` {
45
- right: `).concat(l,"px ").concat(a,`;
44
+ .`).concat(_n,` {
45
+ right: `).concat(l,"px ").concat(n,`;
46
46
  }
47
47
 
48
- .`).concat(At,` {
49
- margin-right: `).concat(l,"px ").concat(a,`;
48
+ .`).concat(qn,` {
49
+ margin-right: `).concat(l,"px ").concat(n,`;
50
50
  }
51
51
 
52
- .`).concat(zt," .").concat(zt,` {
53
- right: 0 `).concat(a,`;
52
+ .`).concat(_n," .").concat(_n,` {
53
+ right: 0 `).concat(n,`;
54
54
  }
55
55
 
56
- .`).concat(At," .").concat(At,` {
57
- margin-right: 0 `).concat(a,`;
56
+ .`).concat(qn," .").concat(qn,` {
57
+ margin-right: 0 `).concat(n,`;
58
58
  }
59
59
 
60
- body[`).concat(H0,`] {
61
- `).concat(au,": ").concat(l,`px;
60
+ body[`).concat(Dr,`] {
61
+ `).concat(Zf,": ").concat(l,`px;
62
62
  }
63
- `)},$a=function(){var r=parseInt(document.body.getAttribute(H0)||"0",10);return isFinite(r)?r:0},Su=function(){T.useEffect(function(){return document.body.setAttribute(H0,($a()+1).toString()),function(){var r=$a()-1;r<=0?document.body.removeAttribute(H0):document.body.setAttribute(H0,r.toString())}},[])},ku=function(r){var e=r.noRelative,t=r.noImportant,a=r.gapMode,n=a===void 0?"margin":a;Su();var s=T.useMemo(function(){return yu(n)},[n]);return T.createElement(xu,{styles:wu(s,!e,n,t?"":"!important")})},Er=!1;if(typeof window<"u")try{var ft=Object.defineProperty({},"passive",{get:function(){return Er=!0,!0}});window.addEventListener("test",ft,ft),window.removeEventListener("test",ft,ft)}catch{Er=!1}var I0=Er?{passive:!1}:!1,Cu=function(r){return r.tagName==="TEXTAREA"},zs=function(r,e){if(!(r instanceof Element))return!1;var t=window.getComputedStyle(r);return t[e]!=="hidden"&&!(t.overflowY===t.overflowX&&!Cu(r)&&t[e]==="visible")},Mu=function(r){return zs(r,"overflowY")},Tu=function(r){return zs(r,"overflowX")},Wa=function(r,e){var t=e.ownerDocument,a=e;do{typeof ShadowRoot<"u"&&a instanceof ShadowRoot&&(a=a.host);var n=As(r,a);if(n){var s=Ns(r,a),o=s[1],l=s[2];if(o>l)return!0}a=a.parentNode}while(a&&a!==t.body);return!1},zu=function(r){var e=r.scrollTop,t=r.scrollHeight,a=r.clientHeight;return[e,t,a]},Au=function(r){var e=r.scrollLeft,t=r.scrollWidth,a=r.clientWidth;return[e,t,a]},As=function(r,e){return r==="v"?Mu(e):Tu(e)},Ns=function(r,e){return r==="v"?zu(e):Au(e)},Nu=function(r,e){return r==="h"&&e==="rtl"?-1:1},Du=function(r,e,t,a,n){var s=Nu(r,window.getComputedStyle(e).direction),o=s*a,l=t.target,u=e.contains(l),d=!1,f=o>0,g=0,x=0;do{if(!l)break;var w=Ns(r,l),M=w[0],k=w[1],A=w[2],N=k-A-s*M;(M||N)&&As(r,l)&&(g+=N,x+=M);var E=l.parentNode;l=E&&E.nodeType===Node.DOCUMENT_FRAGMENT_NODE?E.host:E}while(!u&&l!==document.body||u&&(e.contains(l)||e===l));return(f&&Math.abs(g)<1||!f&&Math.abs(x)<1)&&(d=!0),d},pt=function(r){return"changedTouches"in r?[r.changedTouches[0].clientX,r.changedTouches[0].clientY]:[0,0]},Xa=function(r){return[r.deltaX,r.deltaY]},Ya=function(r){return r&&"current"in r?r.current:r},Eu=function(r,e){return r[0]===e[0]&&r[1]===e[1]},Ru=function(r){return`
64
- .block-interactivity-`.concat(r,` {pointer-events: none;}
65
- .allow-interactivity-`).concat(r,` {pointer-events: all;}
66
- `)},Bu=0,P0=[];function Lu(r){var e=T.useRef([]),t=T.useRef([0,0]),a=T.useRef(),n=T.useState(Bu++)[0],s=T.useState(Ts)[0],o=T.useRef(r);T.useEffect(function(){o.current=r},[r]),T.useEffect(function(){if(r.inert){document.body.classList.add("block-interactivity-".concat(n));var k=tu([r.lockRef.current],(r.shards||[]).map(Ya),!0).filter(Boolean);return k.forEach(function(A){return A.classList.add("allow-interactivity-".concat(n))}),function(){document.body.classList.remove("block-interactivity-".concat(n)),k.forEach(function(A){return A.classList.remove("allow-interactivity-".concat(n))})}}},[r.inert,r.lockRef.current,r.shards]);var l=T.useCallback(function(k,A){if("touches"in k&&k.touches.length===2||k.type==="wheel"&&k.ctrlKey)return!o.current.allowPinchZoom;var N=pt(k),E=t.current,R="deltaX"in k?k.deltaX:E[0]-N[0],P="deltaY"in k?k.deltaY:E[1]-N[1],O,Y=k.target,q=Math.abs(R)>Math.abs(P)?"h":"v";if("touches"in k&&q==="h"&&Y.type==="range")return!1;var j=Wa(q,Y);if(!j)return!0;if(j?O=q:(O=q==="v"?"h":"v",j=Wa(q,Y)),!j)return!1;if(!a.current&&"changedTouches"in k&&(R||P)&&(a.current=O),!O)return!0;var _=a.current||O;return Du(_,A,k,_==="h"?R:P)},[]),u=T.useCallback(function(k){var A=k;if(!(!P0.length||P0[P0.length-1]!==s)){var N="deltaY"in A?Xa(A):pt(A),E=e.current.filter(function(O){return O.name===A.type&&(O.target===A.target||A.target===O.shadowParent)&&Eu(O.delta,N)})[0];if(E&&E.should){A.cancelable&&A.preventDefault();return}if(!E){var R=(o.current.shards||[]).map(Ya).filter(Boolean).filter(function(O){return O.contains(A.target)}),P=R.length>0?l(A,R[0]):!o.current.noIsolation;P&&A.cancelable&&A.preventDefault()}}},[]),d=T.useCallback(function(k,A,N,E){var R={name:k,delta:A,target:N,should:E,shadowParent:ju(N)};e.current.push(R),setTimeout(function(){e.current=e.current.filter(function(P){return P!==R})},1)},[]),f=T.useCallback(function(k){t.current=pt(k),a.current=void 0},[]),g=T.useCallback(function(k){d(k.type,Xa(k),k.target,l(k,r.lockRef.current))},[]),x=T.useCallback(function(k){d(k.type,pt(k),k.target,l(k,r.lockRef.current))},[]);T.useEffect(function(){return P0.push(s),r.setCallbacks({onScrollCapture:g,onWheelCapture:g,onTouchMoveCapture:x}),document.addEventListener("wheel",u,I0),document.addEventListener("touchmove",u,I0),document.addEventListener("touchstart",f,I0),function(){P0=P0.filter(function(k){return k!==s}),document.removeEventListener("wheel",u,I0),document.removeEventListener("touchmove",u,I0),document.removeEventListener("touchstart",f,I0)}},[]);var w=r.removeScrollBar,M=r.inert;return T.createElement(T.Fragment,null,M?T.createElement(s,{styles:Ru(n)}):null,w?T.createElement(ku,{noRelative:r.noRelative,gapMode:r.gapMode}):null)}function ju(r){for(var e=null;r!==null;)r instanceof ShadowRoot&&(e=r.host,r=r.host),r=r.parentNode;return e}const Iu=uu(Ms,Lu);var Ds=T.forwardRef(function(r,e){return T.createElement(Ht,Xe({},r,{ref:e,sideCar:Iu}))});Ds.classNames=Ht.classNames;var Pu=function(r){if(typeof document>"u")return null;var e=Array.isArray(r)?r[0]:r;return e.ownerDocument.body},O0=new WeakMap,vt=new WeakMap,gt={},lr=0,Es=function(r){return r&&(r.host||Es(r.parentNode))},Ou=function(r,e){return e.map(function(t){if(r.contains(t))return t;var a=Es(t);return a&&r.contains(a)?a:(console.error("aria-hidden",t,"in not contained inside",r,". Doing nothing"),null)}).filter(function(t){return!!t})},Fu=function(r,e,t,a){var n=Ou(e,Array.isArray(r)?r:[r]);gt[t]||(gt[t]=new WeakMap);var s=gt[t],o=[],l=new Set,u=new Set(n),d=function(g){!g||l.has(g)||(l.add(g),d(g.parentNode))};n.forEach(d);var f=function(g){!g||u.has(g)||Array.prototype.forEach.call(g.children,function(x){if(l.has(x))f(x);else try{var w=x.getAttribute(a),M=w!==null&&w!=="false",k=(O0.get(x)||0)+1,A=(s.get(x)||0)+1;O0.set(x,k),s.set(x,A),o.push(x),k===1&&M&&vt.set(x,!0),A===1&&x.setAttribute(t,"true"),M||x.setAttribute(a,"true")}catch(N){console.error("aria-hidden: cannot operate on ",x,N)}})};return f(e),l.clear(),lr++,function(){o.forEach(function(g){var x=O0.get(g)-1,w=s.get(g)-1;O0.set(g,x),s.set(g,w),x||(vt.has(g)||g.removeAttribute(a),vt.delete(g)),w||g.removeAttribute(t)}),lr--,lr||(O0=new WeakMap,O0=new WeakMap,vt=new WeakMap,gt={})}},qu=function(r,e,t){t===void 0&&(t="data-aria-hidden");var a=Array.from(Array.isArray(r)?r:[r]),n=Pu(r);return n?(a.push.apply(a,Array.from(n.querySelectorAll("[aria-live], script"))),Fu(a,n,t,"aria-hidden")):function(){return null}},Vt="Dialog",[Rs]=xc(Vt),[Hu,$e]=Rs(Vt),Bs=r=>{const{__scopeDialog:e,children:t,open:a,defaultOpen:n,onOpenChange:s,modal:o=!0}=r,l=T.useRef(null),u=T.useRef(null),[d,f]=Mc({prop:a,defaultProp:n??!1,onChange:s,caller:Vt});return h.jsx(Hu,{scope:e,triggerRef:l,contentRef:u,contentId:tr(),titleId:tr(),descriptionId:tr(),open:d,onOpenChange:f,onOpenToggle:T.useCallback(()=>f(g=>!g),[f]),modal:o,children:t})};Bs.displayName=Vt;var Ls="DialogTrigger",Vu=T.forwardRef((r,e)=>{const{__scopeDialog:t,...a}=r,n=$e(Ls,t),s=B0(e,n.triggerRef);return h.jsx(Ke.button,{type:"button","aria-haspopup":"dialog","aria-expanded":n.open,"aria-controls":n.contentId,"data-state":Qr(n.open),...a,ref:s,onClick:x0(r.onClick,n.onOpenToggle)})});Vu.displayName=Ls;var Kr="DialogPortal",[_u,js]=Rs(Kr,{forceMount:void 0}),Is=r=>{const{__scopeDialog:e,forceMount:t,children:a,container:n}=r,s=$e(Kr,e);return h.jsx(_u,{scope:e,forceMount:t,children:T.Children.map(a,o=>h.jsx(qt,{present:t||s.open,children:h.jsx(Ss,{asChild:!0,container:n,children:o})}))})};Is.displayName=Kr;var Rt="DialogOverlay",Ps=T.forwardRef((r,e)=>{const t=js(Rt,r.__scopeDialog),{forceMount:a=t.forceMount,...n}=r,s=$e(Rt,r.__scopeDialog);return s.modal?h.jsx(qt,{present:a||s.open,children:h.jsx(Uu,{...n,ref:e})}):null});Ps.displayName=Rt;var Gu=vs("DialogOverlay.RemoveScroll"),Uu=T.forwardRef((r,e)=>{const{__scopeDialog:t,...a}=r,n=$e(Rt,t);return h.jsx(Ds,{as:Gu,allowPinchZoom:!0,shards:[n.contentRef],children:h.jsx(Ke.div,{"data-state":Qr(n.open),...a,ref:e,style:{pointerEvents:"auto",...a.style}})})}),E0="DialogContent",Os=T.forwardRef((r,e)=>{const t=js(E0,r.__scopeDialog),{forceMount:a=t.forceMount,...n}=r,s=$e(E0,r.__scopeDialog);return h.jsx(qt,{present:a||s.open,children:s.modal?h.jsx($u,{...n,ref:e}):h.jsx(Wu,{...n,ref:e})})});Os.displayName=E0;var $u=T.forwardRef((r,e)=>{const t=$e(E0,r.__scopeDialog),a=T.useRef(null),n=B0(e,t.contentRef,a);return T.useEffect(()=>{const s=a.current;if(s)return qu(s)},[]),h.jsx(Fs,{...r,ref:n,trapFocus:t.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:x0(r.onCloseAutoFocus,s=>{var o;s.preventDefault(),(o=t.triggerRef.current)==null||o.focus()}),onPointerDownOutside:x0(r.onPointerDownOutside,s=>{const o=s.detail.originalEvent,l=o.button===0&&o.ctrlKey===!0;(o.button===2||l)&&s.preventDefault()}),onFocusOutside:x0(r.onFocusOutside,s=>s.preventDefault())})}),Wu=T.forwardRef((r,e)=>{const t=$e(E0,r.__scopeDialog),a=T.useRef(!1),n=T.useRef(!1);return h.jsx(Fs,{...r,ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var o,l;(o=r.onCloseAutoFocus)==null||o.call(r,s),s.defaultPrevented||(a.current||(l=t.triggerRef.current)==null||l.focus(),s.preventDefault()),a.current=!1,n.current=!1},onInteractOutside:s=>{var u,d;(u=r.onInteractOutside)==null||u.call(r,s),s.defaultPrevented||(a.current=!0,s.detail.originalEvent.type==="pointerdown"&&(n.current=!0));const o=s.target;((d=t.triggerRef.current)==null?void 0:d.contains(o))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&n.current&&s.preventDefault()}})}),Fs=T.forwardRef((r,e)=>{const{__scopeDialog:t,trapFocus:a,onOpenAutoFocus:n,onCloseAutoFocus:s,...o}=r,l=$e(E0,t),u=T.useRef(null),d=B0(e,u);return eu(),h.jsxs(h.Fragment,{children:[h.jsx(xs,{asChild:!0,loop:!0,trapped:a,onMountAutoFocus:n,onUnmountAutoFocus:s,children:h.jsx(bs,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":Qr(l.open),...o,ref:d,onDismiss:()=>l.onOpenChange(!1)})}),h.jsxs(h.Fragment,{children:[h.jsx(Xu,{titleId:l.titleId}),h.jsx(Zu,{contentRef:u,descriptionId:l.descriptionId})]})]})}),Jr="DialogTitle",qs=T.forwardRef((r,e)=>{const{__scopeDialog:t,...a}=r,n=$e(Jr,t);return h.jsx(Ke.h2,{id:n.titleId,...a,ref:e})});qs.displayName=Jr;var Hs="DialogDescription",Vs=T.forwardRef((r,e)=>{const{__scopeDialog:t,...a}=r,n=$e(Hs,t);return h.jsx(Ke.p,{id:n.descriptionId,...a,ref:e})});Vs.displayName=Hs;var _s="DialogClose",Gs=T.forwardRef((r,e)=>{const{__scopeDialog:t,...a}=r,n=$e(_s,t);return h.jsx(Ke.button,{type:"button",...a,ref:e,onClick:x0(r.onClick,()=>n.onOpenChange(!1))})});Gs.displayName=_s;function Qr(r){return r?"open":"closed"}var Us="DialogTitleWarning",[h5,$s]=yc(Us,{contentName:E0,titleName:Jr,docsSlug:"dialog"}),Xu=({titleId:r})=>{const e=$s(Us),t=`\`${e.contentName}\` requires a \`${e.titleName}\` for the component to be accessible for screen reader users.
63
+ `)},co=function(){var e=parseInt(document.body.getAttribute(Dr)||"0",10);return isFinite(e)?e:0},g2=function(){P.useEffect(function(){return document.body.setAttribute(Dr,(co()+1).toString()),function(){var e=co()-1;e<=0?document.body.removeAttribute(Dr):document.body.setAttribute(Dr,e.toString())}},[])},v2=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,a=n===void 0?"margin":n;g2();var i=P.useMemo(function(){return m2(a)},[a]);return P.createElement(f2,{styles:p2(i,!t,a,r?"":"!important")})},bi=!1;if(typeof window<"u")try{var Sn=Object.defineProperty({},"passive",{get:function(){return bi=!0,!0}});window.addEventListener("test",Sn,Sn),window.removeEventListener("test",Sn,Sn)}catch{bi=!1}var Sr=bi?{passive:!1}:!1,b2=function(e){return e.tagName==="TEXTAREA"},Ws=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!b2(e)&&r[t]==="visible")},y2=function(e){return Ws(e,"overflowY")},x2=function(e){return Ws(e,"overflowX")},ho=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var a=Xs(e,n);if(a){var i=Ys(e,n),o=i[1],l=i[2];if(o>l)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},w2=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},k2=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},Xs=function(e,t){return e==="v"?y2(t):x2(t)},Ys=function(e,t){return e==="v"?w2(t):k2(t)},S2=function(e,t){return e==="h"&&t==="rtl"?-1:1},C2=function(e,t,r,n,a){var i=S2(e,window.getComputedStyle(t).direction),o=i*n,l=r.target,s=t.contains(l),u=!1,c=o>0,h=0,m=0;do{if(!l)break;var p=Ys(e,l),y=p[0],w=p[1],C=p[2],k=w-C-i*y;(y||k)&&Xs(e,l)&&(h+=k,m+=y);var A=l.parentNode;l=A&&A.nodeType===Node.DOCUMENT_FRAGMENT_NODE?A.host:A}while(!s&&l!==document.body||s&&(t.contains(l)||t===l));return(c&&Math.abs(h)<1||!c&&Math.abs(m)<1)&&(u=!0),u},Cn=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},mo=function(e){return[e.deltaX,e.deltaY]},fo=function(e){return e&&"current"in e?e.current:e},T2=function(e,t){return e[0]===t[0]&&e[1]===t[1]},M2=function(e){return`
64
+ .block-interactivity-`.concat(e,` {pointer-events: none;}
65
+ .allow-interactivity-`).concat(e,` {pointer-events: all;}
66
+ `)},A2=0,Cr=[];function z2(e){var t=P.useRef([]),r=P.useRef([0,0]),n=P.useRef(),a=P.useState(A2++)[0],i=P.useState(Gs)[0],o=P.useRef(e);P.useEffect(function(){o.current=e},[e]),P.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var w=Yf([e.lockRef.current],(e.shards||[]).map(fo),!0).filter(Boolean);return w.forEach(function(C){return C.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),w.forEach(function(C){return C.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var l=P.useCallback(function(w,C){if("touches"in w&&w.touches.length===2||w.type==="wheel"&&w.ctrlKey)return!o.current.allowPinchZoom;var k=Cn(w),A=r.current,E="deltaX"in w?w.deltaX:A[0]-k[0],B="deltaY"in w?w.deltaY:A[1]-k[1],F,D=w.target,_=Math.abs(E)>Math.abs(B)?"h":"v";if("touches"in w&&_==="h"&&D.type==="range")return!1;var O=ho(_,D);if(!O)return!0;if(O?F=_:(F=_==="v"?"h":"v",O=ho(_,D)),!O)return!1;if(!n.current&&"changedTouches"in w&&(E||B)&&(n.current=F),!F)return!0;var H=n.current||F;return C2(H,C,w,H==="h"?E:B)},[]),s=P.useCallback(function(w){var C=w;if(!(!Cr.length||Cr[Cr.length-1]!==i)){var k="deltaY"in C?mo(C):Cn(C),A=t.current.filter(function(F){return F.name===C.type&&(F.target===C.target||C.target===F.shadowParent)&&T2(F.delta,k)})[0];if(A&&A.should){C.cancelable&&C.preventDefault();return}if(!A){var E=(o.current.shards||[]).map(fo).filter(Boolean).filter(function(F){return F.contains(C.target)}),B=E.length>0?l(C,E[0]):!o.current.noIsolation;B&&C.cancelable&&C.preventDefault()}}},[]),u=P.useCallback(function(w,C,k,A){var E={name:w,delta:C,target:k,should:A,shadowParent:N2(k)};t.current.push(E),setTimeout(function(){t.current=t.current.filter(function(B){return B!==E})},1)},[]),c=P.useCallback(function(w){r.current=Cn(w),n.current=void 0},[]),h=P.useCallback(function(w){u(w.type,mo(w),w.target,l(w,e.lockRef.current))},[]),m=P.useCallback(function(w){u(w.type,Cn(w),w.target,l(w,e.lockRef.current))},[]);P.useEffect(function(){return Cr.push(i),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:m}),document.addEventListener("wheel",s,Sr),document.addEventListener("touchmove",s,Sr),document.addEventListener("touchstart",c,Sr),function(){Cr=Cr.filter(function(w){return w!==i}),document.removeEventListener("wheel",s,Sr),document.removeEventListener("touchmove",s,Sr),document.removeEventListener("touchstart",c,Sr)}},[]);var p=e.removeScrollBar,y=e.inert;return P.createElement(P.Fragment,null,y?P.createElement(i,{styles:M2(a)}):null,p?P.createElement(v2,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function N2(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const E2=a2(Us,z2);var Ks=P.forwardRef(function(e,t){return P.createElement(ia,St({},e,{ref:t,sideCar:E2}))});Ks.classNames=ia.classNames;var D2=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Tr=new WeakMap,Tn=new WeakMap,Mn={},Da=0,Zs=function(e){return e&&(e.host||Zs(e.parentNode))},I2=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=Zs(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},L2=function(e,t,r,n){var a=I2(t,Array.isArray(e)?e:[e]);Mn[r]||(Mn[r]=new WeakMap);var i=Mn[r],o=[],l=new Set,s=new Set(a),u=function(h){!h||l.has(h)||(l.add(h),u(h.parentNode))};a.forEach(u);var c=function(h){!h||s.has(h)||Array.prototype.forEach.call(h.children,function(m){if(l.has(m))c(m);else try{var p=m.getAttribute(n),y=p!==null&&p!=="false",w=(Tr.get(m)||0)+1,C=(i.get(m)||0)+1;Tr.set(m,w),i.set(m,C),o.push(m),w===1&&y&&Tn.set(m,!0),C===1&&m.setAttribute(r,"true"),y||m.setAttribute(n,"true")}catch(k){console.error("aria-hidden: cannot operate on ",m,k)}})};return c(t),l.clear(),Da++,function(){o.forEach(function(h){var m=Tr.get(h)-1,p=i.get(h)-1;Tr.set(h,m),i.set(h,p),m||(Tn.has(h)||h.removeAttribute(n),Tn.delete(h)),p||h.removeAttribute(r)}),Da--,Da||(Tr=new WeakMap,Tr=new WeakMap,Tn=new WeakMap,Mn={})}},R2=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),a=D2(e);return a?(n.push.apply(n,Array.from(a.querySelectorAll("[aria-live], script"))),L2(n,a,r,"aria-hidden")):function(){return null}},oa="Dialog",[Qs]=ff(oa),[P2,xt]=Qs(oa),Js=e=>{const{__scopeDialog:t,children:r,open:n,defaultOpen:a,onOpenChange:i,modal:o=!0}=e,l=P.useRef(null),s=P.useRef(null),[u,c]=yf({prop:n,defaultProp:a??!1,onChange:i,caller:oa});return v.jsx(P2,{scope:t,triggerRef:l,contentRef:s,contentId:Ca(),titleId:Ca(),descriptionId:Ca(),open:u,onOpenChange:c,onOpenToggle:P.useCallback(()=>c(h=>!h),[c]),modal:o,children:r})};Js.displayName=oa;var eu="DialogTrigger",B2=P.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,a=xt(eu,r),i=pr(t,a.triggerRef);return v.jsx(Mt.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":Qi(a.open),...n,ref:i,onClick:Qt(e.onClick,a.onOpenToggle)})});B2.displayName=eu;var Ki="DialogPortal",[F2,tu]=Qs(Ki,{forceMount:void 0}),ru=e=>{const{__scopeDialog:t,forceMount:r,children:n,container:a}=e,i=xt(Ki,t);return v.jsx(F2,{scope:t,forceMount:r,children:P.Children.map(n,o=>v.jsx(aa,{present:r||i.open,children:v.jsx(Hs,{asChild:!0,container:a,children:o})}))})};ru.displayName=Ki;var Gn="DialogOverlay",nu=P.forwardRef((e,t)=>{const r=tu(Gn,e.__scopeDialog),{forceMount:n=r.forceMount,...a}=e,i=xt(Gn,e.__scopeDialog);return i.modal?v.jsx(aa,{present:n||i.open,children:v.jsx(j2,{...a,ref:t})}):null});nu.displayName=Gn;var O2=Bs("DialogOverlay.RemoveScroll"),j2=P.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,a=xt(Gn,r);return v.jsx(Ks,{as:O2,allowPinchZoom:!0,shards:[a.contentRef],children:v.jsx(Mt.div,{"data-state":Qi(a.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),dr="DialogContent",au=P.forwardRef((e,t)=>{const r=tu(dr,e.__scopeDialog),{forceMount:n=r.forceMount,...a}=e,i=xt(dr,e.__scopeDialog);return v.jsx(aa,{present:n||i.open,children:i.modal?v.jsx(_2,{...a,ref:t}):v.jsx(q2,{...a,ref:t})})});au.displayName=dr;var _2=P.forwardRef((e,t)=>{const r=xt(dr,e.__scopeDialog),n=P.useRef(null),a=pr(t,r.contentRef,n);return P.useEffect(()=>{const i=n.current;if(i)return R2(i)},[]),v.jsx(iu,{...e,ref:a,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Qt(e.onCloseAutoFocus,i=>{var o;i.preventDefault(),(o=r.triggerRef.current)==null||o.focus()}),onPointerDownOutside:Qt(e.onPointerDownOutside,i=>{const o=i.detail.originalEvent,l=o.button===0&&o.ctrlKey===!0;(o.button===2||l)&&i.preventDefault()}),onFocusOutside:Qt(e.onFocusOutside,i=>i.preventDefault())})}),q2=P.forwardRef((e,t)=>{const r=xt(dr,e.__scopeDialog),n=P.useRef(!1),a=P.useRef(!1);return v.jsx(iu,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var o,l;(o=e.onCloseAutoFocus)==null||o.call(e,i),i.defaultPrevented||(n.current||(l=r.triggerRef.current)==null||l.focus(),i.preventDefault()),n.current=!1,a.current=!1},onInteractOutside:i=>{var s,u;(s=e.onInteractOutside)==null||s.call(e,i),i.defaultPrevented||(n.current=!0,i.detail.originalEvent.type==="pointerdown"&&(a.current=!0));const o=i.target;((u=r.triggerRef.current)==null?void 0:u.contains(o))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&a.current&&i.preventDefault()}})}),iu=P.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:a,onCloseAutoFocus:i,...o}=e,l=xt(dr,r),s=P.useRef(null),u=pr(t,s);return Xf(),v.jsxs(v.Fragment,{children:[v.jsx(_s,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:a,onUnmountAutoFocus:i,children:v.jsx(Os,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":Qi(l.open),...o,ref:u,onDismiss:()=>l.onOpenChange(!1)})}),v.jsxs(v.Fragment,{children:[v.jsx(H2,{titleId:l.titleId}),v.jsx($2,{contentRef:s,descriptionId:l.descriptionId})]})]})}),Zi="DialogTitle",ou=P.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,a=xt(Zi,r);return v.jsx(Mt.h2,{id:a.titleId,...n,ref:t})});ou.displayName=Zi;var lu="DialogDescription",su=P.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,a=xt(lu,r);return v.jsx(Mt.p,{id:a.descriptionId,...n,ref:t})});su.displayName=lu;var uu="DialogClose",cu=P.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,a=xt(uu,r);return v.jsx(Mt.button,{type:"button",...n,ref:t,onClick:Qt(e.onClick,()=>a.onOpenChange(!1))})});cu.displayName=uu;function Qi(e){return e?"open":"closed"}var hu="DialogTitleWarning",[fv,du]=mf(hu,{contentName:dr,titleName:Zi,docsSlug:"dialog"}),H2=({titleId:e})=>{const t=du(hu),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
67
67
 
68
- If you want to hide the \`${e.titleName}\`, you can wrap it with our VisuallyHidden component.
68
+ If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
69
69
 
70
- For more information, see https://radix-ui.com/primitives/docs/components/${e.docsSlug}`;return T.useEffect(()=>{r&&(document.getElementById(r)||console.error(t))},[t,r]),null},Yu="DialogDescriptionWarning",Zu=({contentRef:r,descriptionId:e})=>{const a=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${$s(Yu).contentName}}.`;return T.useEffect(()=>{var s;const n=(s=r.current)==null?void 0:s.getAttribute("aria-describedby");e&&n&&(document.getElementById(e)||console.warn(a))},[a,r,e]),null},Ku=Bs,Ju=Is,Qu=Ps,e2=Os,Za=qs,Ka=Vs,t2=Gs,r2=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),a2="VisuallyHidden",Ws=T.forwardRef((r,e)=>h.jsx(Ke.span,{...r,ref:e,style:{...r2,...r.style}}));Ws.displayName=a2;var Ja=Ws;const n2=z("fixed inset-0 z-50 bg-[rgba(0,6,38,0.5)] data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0"),s2=z("fixed left-[50%] top-[50%] z-50 translate-x-[-50%] translate-y-[-50%] bg-[var(--color-white)] border border-[var(--color-gray-200)] rounded-[12px] shadow-lg p-4 flex flex-col gap-2 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 duration-200",{variants:{size:{sm:"w-[300px] max-w-[calc(100vw-2rem)]",md:"w-[400px] max-w-[calc(100vw-2rem)]",lg:"w-[500px] max-w-[calc(100vw-2rem)]",xl:"w-[600px] max-w-[calc(100vw-2rem)]",full:"w-[calc(100vw-2rem)] h-[calc(100vh-2rem)]"}},defaultVariants:{size:"md"}}),o2=z("absolute right-4 top-4 flex-shrink-0 w-4 h-4 text-[var(--color-blue-1000)] cursor-pointer bg-transparent border-none p-0 hover:opacity-70 transition-opacity focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-blue-800)] focus-visible:ring-offset-2 rounded-sm"),i2=z("!font-[Inter,system-ui,-apple-system,sans-serif] font-medium text-[1rem] leading-[1.5rem] text-[var(--color-blue-1000)] w-full"),l2=z("font-[Inter,system-ui,-apple-system,sans-serif] font-normal text-[0.875rem] leading-[1.25rem] text-[var(--color-gray-800)] w-full"),c2=z("flex flex-col gap-4 items-start w-full",{variants:{size:{sm:"max-h-[60vh] overflow-y-auto",md:"max-h-[70vh] overflow-y-auto",lg:"max-h-[75vh] overflow-y-auto",xl:"max-h-[80vh] overflow-y-auto",full:"flex-1 overflow-y-auto"}},defaultVariants:{size:"md"}}),u2=z("flex gap-2 items-start w-full"),Xs=({open:r,onOpenChange:e,title:t,description:a,showCloseButton:n=!0,closeIcon:s,children:o,primaryAction:l,secondaryAction:u,closeOnClickOutside:d=!0,closeOnEsc:f=!0,onClose:g,className:x,overlayClassName:w,contentClassName:M,footerClassName:k,size:A="md"})=>{const N=V.useRef(null),E=V.useRef(null),R=V.useCallback(_=>{e(_),_||g==null||g()},[e,g]),P=V.useCallback(async()=>{l!=null&&l.onClick&&await l.onClick()},[l]),O=V.useCallback(async()=>{u!=null&&u.onClick&&await u.onClick()},[u]),Y=V.useCallback(_=>{f||_.preventDefault()},[f]),q=V.useCallback(_=>{d||_.preventDefault()},[d]),j=l||u;return h.jsx(Ku,{open:r,onOpenChange:R,children:h.jsxs(Ju,{children:[h.jsx(Qu,{className:G(n2(),w)}),h.jsxs(e2,{className:G(s2({size:A}),x),onEscapeKeyDown:Y,onPointerDownOutside:q,children:[t?h.jsx(Za,{className:i2(),children:t}):h.jsx(Ja,{children:h.jsx(Za,{children:"Modal dialog"})}),a?h.jsx(Ka,{className:l2(),children:a}):h.jsx(Ja,{children:h.jsx(Ka,{children:"Modal content"})}),n&&h.jsx(t2,{asChild:!0,children:h.jsx("button",{className:o2(),"aria-label":"Close modal",children:s||h.jsx(p.X,{size:16,color:"currentColor"})})}),o&&h.jsx("div",{className:G(c2({size:A}),M),children:o}),j&&h.jsxs("div",{className:G(u2(),k),children:[u&&h.jsx(_0,{ref:E,variant:u.variant||"secondary",size:"small",onClick:O,disabled:u.disabled||u.loading,startIcon:u.icon,className:"flex-1",children:u.label}),l&&h.jsx(_0,{ref:N,variant:l.variant||"primary",size:"small",onClick:P,disabled:l.disabled||l.loading,startIcon:l.icon,className:"flex-1",children:l.label})]})]})]})})};Xs.displayName="Modal";const d2=z(["markdown-renderer","max-w-none","break-words","leading-relaxed","font-[Inter,system-ui,-apple-system,sans-serif]","[&>*]:my-2","[&>*+*]:mt-5","[&>h1+*]:mt-6","[&>h2+*]:mt-5","[&>h3+*]:mt-4","[&>h4+*]:mt-4","[&>p+*]:mt-5","[&>ul+*]:mt-5","[&>ol+*]:mt-5","[&>blockquote+*]:mt-8","[&>*+blockquote]:mt-7","[&>pre+*]:mt-6","[&>hr+*]:mt-8","[&>div+*]:mt-6","[&>*+div]:mt-6","[&>*+pre]:mt-6","[&>p]:mb-5","[&>ul]:mb-5","[&>ol]:mb-5","[&>blockquote]:mb-8","[&>pre]:mb-6","[&>h1]:mb-5","[&>h2]:mb-4","[&>h3]:mb-3","[&>h4]:mb-3","[&>hr]:mb-8","[&>div]:mb-6","[&>*:first-child]:mt-0","[&>*:last-child]:mb-0","[&_h1]:font-[Signifier,serif]","[&_h1]:text-[1.5rem]","[&_h1]:leading-[2.5rem]","[&_h1]:font-light","[&_h1]:tracking-[-0.25px]","[&_h2]:font-[Signifier,serif]","[&_h2]:text-[1.25rem]","[&_h2]:leading-[2.25rem]","[&_h2]:font-light","[&_h3]:font-[Signifier,serif]","[&_h3]:text-[1.125rem]","[&_h3]:leading-[2rem]","[&_h3]:font-light","[&_h4]:font-[Signifier,serif]","[&_h4]:text-[1rem]","[&_h4]:leading-[1.875rem]","[&_h4]:font-light","[&_h5]:font-[Signifier,serif]","[&_h5]:text-[0.9375rem]","[&_h5]:leading-[1.75rem]","[&_h5]:font-light","[&_h6]:font-[Signifier,serif]","[&_h6]:text-[0.875rem]","[&_h6]:leading-[1.625rem]","[&_h6]:font-light","[&_p]:font-[Inter,system-ui,-apple-system,sans-serif]","[&_p]:text-[length:var(--font-size-small)]","[&_p]:leading-[1.875]","[&_strong]:font-medium","[&_code]:font-[Roboto_Mono,monospace]","[&_code]:bg-[var(--color-gray-100)]","[&_code]:px-2","[&_code]:py-1","[&_code]:rounded","[&_code]:text-[length:var(--font-size-tiny)]","[&_pre]:font-[Roboto_Mono,monospace]","[&_pre]:bg-[var(--color-gray-50)]","[&_pre]:border","[&_pre]:border-[var(--color-gray-200)]","[&_pre]:rounded-lg","[&_pre]:text-[length:var(--font-size-tiny)]","[&_pre]:leading-[1.75]","[&_pre]:p-5","[&_pre]:overflow-x-auto","[&_pre_code]:bg-transparent","[&_pre_code]:p-0","[&_blockquote]:font-[Inter,system-ui,-apple-system,sans-serif]","[&_blockquote]:border-l-4","[&_blockquote]:border-[var(--color-gray-300)]","[&_blockquote]:bg-[var(--color-gray-50)]","[&_blockquote]:py-4","[&_blockquote]:px-6","[&_blockquote]:mt-7","[&_blockquote]:mb-8","[&_blockquote]:rounded-r","[&_blockquote]:text-[0.875rem]","[&_blockquote]:leading-[1.75]","[&_ul]:font-[Inter,system-ui,-apple-system,sans-serif]","[&_ul]:pl-6","[&_ul]:list-disc","[&_ul]:list-outside","[&_ol]:font-[Inter,system-ui,-apple-system,sans-serif]","[&_ol]:pl-6","[&_ol]:list-decimal","[&_ol]:list-outside","[&_li]:text-[length:var(--font-size-small)]","[&_li]:leading-[1.875]","[&_li]:mb-3","[&_li]:pl-2","[&_ul_ul]:pl-4","[&_ul_ul]:list-[circle]","[&_ol_ol]:pl-4","[&_ol_ol]:list-[lower-alpha]","[&_ul_ul_ul]:list-[square]","[&_a]:no-underline","[&_a:hover]:underline","[&_a]:font-medium","[&_table]:w-full","[&_table]:border-collapse","[&_table]:border","[&_table]:border-[var(--color-gray-200)]","[&_table]:bg-white","[&_table]:shadow-sm","[&_thead]:bg-[var(--color-gray-50)]","[&_thead]:border-b-2","[&_thead]:border-[var(--color-gray-200)]","[&_tbody_tr]:border-b","[&_tbody_tr]:border-[var(--color-gray-200)]","[&_tbody_tr:last-child]:border-b-0","[&_tbody_tr:hover]:bg-[var(--color-gray-50)]","[&_td]:text-[length:var(--font-size-small)]","[&_td]:leading-[var(--line-height-small)]","[&_td]:border-r","[&_td]:border-[var(--color-gray-200)]","[&_td]:p-3","[&_td:last-child]:border-r-0","[&_td]:align-top","[&_th]:text-[length:var(--font-size-small)]","[&_th]:leading-[var(--line-height-small)]","[&_th]:font-medium","[&_th]:border-r","[&_th]:border-[var(--color-gray-200)]","[&_th]:p-3","[&_th:last-child]:border-r-0","[&_th]:text-left","[&_th]:bg-[var(--color-gray-50)]","[&_hr]:border-[var(--color-gray-200)]"],{variants:{size:{small:["[&_p]:text-[0.875rem]","[&_p]:leading-[1.75]","[&_li]:text-[0.875rem]","[&_li]:leading-[1.75]","[&_li]:mb-3","[&_code]:text-[0.8125rem]","[&_h3]:text-[1rem]","[&_h3]:leading-[1.75rem]","[&_h4]:text-[0.9375rem]","[&_h4]:leading-[1.625rem]","[&>*+*]:mt-4","[&>p]:mb-4","[&>ul]:mb-4","[&>ol]:mb-4","[&>h3]:mb-4","[&>h4]:mb-4"],medium:[],large:["[&_p]:text-[1.125rem]","[&_p]:leading-[2]","[&_li]:text-[1.125rem]","[&_li]:leading-[2]","[&_code]:text-[1rem]","[&>*+*]:mt-8","[&>p]:mb-8","[&>ul]:mb-8","[&>ol]:mb-8"]},variant:{default:["text-[var(--color-gray-1000)]","[&_h1]:text-[var(--color-gray-1000)]","[&_h2]:text-[var(--color-gray-1000)]","[&_h3]:text-[var(--color-gray-1000)]","[&_h4]:text-[var(--color-gray-1000)]","[&_p]:text-[var(--color-gray-1000)]","[&_li]:text-[var(--color-gray-1000)]","[&_strong]:text-[var(--color-gray-1000)]","[&_em]:text-[var(--color-gray-1000)]","[&_code]:text-[var(--color-gray-800)]","[&_blockquote]:text-[var(--color-gray-800)]","[&_a]:text-[var(--color-blue-800)]","[&_table]:text-[var(--color-gray-1000)]","[&_th]:text-[var(--color-gray-1000)]"],muted:["text-[var(--color-gray-600)]","[&_h1]:text-[var(--color-gray-600)]","[&_h2]:text-[var(--color-gray-600)]","[&_h3]:text-[var(--color-gray-600)]","[&_h4]:text-[var(--color-gray-600)]","[&_p]:text-[var(--color-gray-600)]","[&_li]:text-[var(--color-gray-600)]","[&_strong]:text-[var(--color-gray-600)]","[&_em]:text-[var(--color-gray-600)]","[&_code]:text-[var(--color-gray-600)]","[&_blockquote]:text-[var(--color-gray-600)]","[&_a]:text-[var(--color-blue-800)]","[&_table]:text-[var(--color-gray-600)]","[&_th]:text-[var(--color-gray-600)]"],primary:["text-[var(--color-blue-1000)]","[&_h1]:text-[var(--color-blue-1000)]","[&_h2]:text-[var(--color-blue-1000)]","[&_h3]:text-[var(--color-blue-1000)]","[&_h4]:text-[var(--color-blue-1000)]","[&_p]:text-[var(--color-blue-1000)]","[&_li]:text-[var(--color-blue-1000)]","[&_strong]:text-[var(--color-blue-1000)]","[&_em]:text-[var(--color-blue-1000)]","[&_code]:text-[var(--color-gray-800)]","[&_blockquote]:text-[var(--color-gray-800)]","[&_a]:text-[var(--color-blue-800)]","[&_table]:text-[var(--color-blue-1000)]","[&_th]:text-[var(--color-blue-1000)]"]}},defaultVariants:{size:"medium",variant:"default"}});class Ee{constructor(e,t,a){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=e,this.start=t,this.end=a}static range(e,t){return t?!e||!e.loc||!t.loc||e.loc.lexer!==t.loc.lexer?null:new Ee(e.loc.lexer,e.loc.start,t.loc.end):e&&e.loc}}class Ie{constructor(e,t){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=e,this.loc=t}range(e,t){return new Ie(t,Ee.range(this,e))}}class L{constructor(e,t){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;var a="KaTeX parse error: "+e,n,s,o=t&&t.loc;if(o&&o.start<=o.end){var l=o.lexer.input;n=o.start,s=o.end,n===l.length?a+=" at end of input: ":a+=" at position "+(n+1)+": ";var u=l.slice(n,s).replace(/[^]/g,"$&̲"),d;n>15?d="…"+l.slice(n-15,n):d=l.slice(0,n);var f;s+15<l.length?f=l.slice(s,s+15)+"…":f=l.slice(s),a+=d+u+f}var g=new Error(a);return g.name="ParseError",g.__proto__=L.prototype,g.position=n,n!=null&&s!=null&&(g.length=s-n),g.rawMessage=e,g}}L.prototype.__proto__=Error.prototype;var m2=function(e,t){return e===void 0?t:e},h2=/([A-Z])/g,f2=function(e){return e.replace(h2,"-$1").toLowerCase()},p2={"&":"&amp;",">":"&gt;","<":"&lt;",'"':"&quot;","'":"&#x27;"},v2=/[&><"']/g;function g2(r){return String(r).replace(v2,e=>p2[e])}var Ys=function r(e){return e.type==="ordgroup"||e.type==="color"?e.body.length===1?r(e.body[0]):e:e.type==="font"?r(e.body):e},b2=function(e){var t=Ys(e);return t.type==="mathord"||t.type==="textord"||t.type==="atom"},y2=function(e){if(!e)throw new Error("Expected non-null, but got "+String(e));return e},x2=function(e){var t=/^[\x00-\x20]*([^\\/#?]*?)(:|&#0*58|&#x0*3a|&colon)/i.exec(e);return t?t[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(t[1])?null:t[1].toLowerCase():"_relative"},re={deflt:m2,escape:g2,hyphenate:f2,getBaseElem:Ys,isCharacterBox:b2,protocolFromUrl:x2},Nt={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format <type>"},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color <color>",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:r=>"#"+r},macros:{type:"object",cli:"-m, --macro <def>",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(r,e)=>(e.push(r),e)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:r=>Math.max(0,r),cli:"--min-rule-thickness <size>",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:r=>Math.max(0,r),cli:"-s, --max-size <n>",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:r=>Math.max(0,r),cli:"-e, --max-expand <n>",cliProcessor:r=>r==="Infinity"?1/0:parseInt(r)},globalGroup:{type:"boolean",cli:!1}};function w2(r){if(r.default)return r.default;var e=r.type,t=Array.isArray(e)?e[0]:e;if(typeof t!="string")return t.enum[0];switch(t){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}class ea{constructor(e){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,e=e||{};for(var t in Nt)if(Nt.hasOwnProperty(t)){var a=Nt[t];this[t]=e[t]!==void 0?a.processor?a.processor(e[t]):e[t]:w2(a)}}reportNonstrict(e,t,a){var n=this.strict;if(typeof n=="function"&&(n=n(e,t,a)),!(!n||n==="ignore")){if(n===!0||n==="error")throw new L("LaTeX-incompatible input and strict mode is set to 'error': "+(t+" ["+e+"]"),a);n==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(t+" ["+e+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+n+"': "+t+" ["+e+"]"))}}useStrictBehavior(e,t,a){var n=this.strict;if(typeof n=="function")try{n=n(e,t,a)}catch{n="error"}return!n||n==="ignore"?!1:n===!0||n==="error"?!0:n==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(t+" ["+e+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+n+"': "+t+" ["+e+"]")),!1)}isTrusted(e){if(e.url&&!e.protocol){var t=re.protocolFromUrl(e.url);if(t==null)return!1;e.protocol=t}var a=typeof this.trust=="function"?this.trust(e):this.trust;return!!a}}class v0{constructor(e,t,a){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=t,this.cramped=a}sup(){return We[S2[this.id]]}sub(){return We[k2[this.id]]}fracNum(){return We[C2[this.id]]}fracDen(){return We[M2[this.id]]}cramp(){return We[T2[this.id]]}text(){return We[z2[this.id]]}isTight(){return this.size>=2}}var ta=0,Bt=1,V0=2,l0=3,tt=4,Oe=5,U0=6,Ae=7,We=[new v0(ta,0,!1),new v0(Bt,0,!0),new v0(V0,1,!1),new v0(l0,1,!0),new v0(tt,2,!1),new v0(Oe,2,!0),new v0(U0,3,!1),new v0(Ae,3,!0)],S2=[tt,Oe,tt,Oe,U0,Ae,U0,Ae],k2=[Oe,Oe,Oe,Oe,Ae,Ae,Ae,Ae],C2=[V0,l0,tt,Oe,U0,Ae,U0,Ae],M2=[l0,l0,Oe,Oe,Ae,Ae,Ae,Ae],T2=[Bt,Bt,l0,l0,Oe,Oe,Ae,Ae],z2=[ta,Bt,V0,l0,V0,l0,V0,l0],K={DISPLAY:We[ta],TEXT:We[V0],SCRIPT:We[tt],SCRIPTSCRIPT:We[U0]},Rr=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function A2(r){for(var e=0;e<Rr.length;e++)for(var t=Rr[e],a=0;a<t.blocks.length;a++){var n=t.blocks[a];if(r>=n[0]&&r<=n[1])return t.name}return null}var Dt=[];Rr.forEach(r=>r.blocks.forEach(e=>Dt.push(...e)));function Zs(r){for(var e=0;e<Dt.length;e+=2)if(r>=Dt[e]&&r<=Dt[e+1])return!0;return!1}var F0=80,N2=function(e,t){return"M95,"+(622+e+t)+`
70
+ For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return P.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},V2="DialogDescriptionWarning",$2=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${du(V2).contentName}}.`;return P.useEffect(()=>{var i;const a=(i=e.current)==null?void 0:i.getAttribute("aria-describedby");t&&a&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null},U2=Js,G2=ru,W2=nu,X2=au,po=ou,go=su,Y2=cu,K2=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),Z2="VisuallyHidden",mu=P.forwardRef((e,t)=>v.jsx(Mt.span,{...e,ref:t,style:{...K2,...e.style}}));mu.displayName=Z2;var vo=mu;const Q2=R("fixed inset-0 z-50 bg-[rgba(0,6,38,0.5)] data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0"),J2=R("fixed left-[50%] top-[50%] z-50 translate-x-[-50%] translate-y-[-50%] bg-[var(--color-white)] border border-[var(--color-gray-200)] rounded-[12px] shadow-lg p-4 flex flex-col gap-2 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 duration-200",{variants:{size:{sm:"w-[300px] max-w-[calc(100vw-2rem)]",md:"w-[400px] max-w-[calc(100vw-2rem)]",lg:"w-[500px] max-w-[calc(100vw-2rem)]",xl:"w-[600px] max-w-[calc(100vw-2rem)]",full:"w-[calc(100vw-2rem)] h-[calc(100vh-2rem)]"}},defaultVariants:{size:"md"}}),e4=R("absolute right-4 top-4 flex-shrink-0 w-4 h-4 text-[var(--color-blue-1000)] cursor-pointer bg-transparent border-none p-0 hover:opacity-70 transition-opacity focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-blue-800)] focus-visible:ring-offset-2 rounded-sm"),t4=R("!font-[Inter,system-ui,-apple-system,sans-serif] font-medium text-[1rem] leading-[1.5rem] text-[var(--color-blue-1000)] w-full"),r4=R("font-[Inter,system-ui,-apple-system,sans-serif] font-normal text-[0.875rem] leading-[1.25rem] text-[var(--color-gray-800)] w-full"),n4=R("flex flex-col gap-4 items-start w-full",{variants:{size:{sm:"max-h-[60vh] overflow-y-auto",md:"max-h-[70vh] overflow-y-auto",lg:"max-h-[75vh] overflow-y-auto",xl:"max-h-[80vh] overflow-y-auto",full:"flex-1 overflow-y-auto"}},defaultVariants:{size:"md"}}),a4=R("flex gap-2 items-start w-full"),fu=({open:e,onOpenChange:t,title:r,description:n,showCloseButton:a=!0,closeIcon:i,children:o,primaryAction:l,secondaryAction:s,closeOnClickOutside:u=!0,closeOnEsc:c=!0,onClose:h,className:m,overlayClassName:p,contentClassName:y,footerClassName:w,size:C="md"})=>{const k=Y.useRef(null),A=Y.useRef(null),E=Y.useCallback(H=>{t(H),H||h==null||h()},[t,h]),B=Y.useCallback(async()=>{l!=null&&l.onClick&&await l.onClick()},[l]),F=Y.useCallback(async()=>{s!=null&&s.onClick&&await s.onClick()},[s]),D=Y.useCallback(H=>{c||H.preventDefault()},[c]),_=Y.useCallback(H=>{u||H.preventDefault()},[u]),O=l||s;return v.jsx(U2,{open:e,onOpenChange:E,children:v.jsxs(G2,{children:[v.jsx(W2,{className:te(Q2(),p)}),v.jsxs(X2,{className:te(J2({size:C}),m),onEscapeKeyDown:D,onPointerDownOutside:_,children:[r?v.jsx(po,{className:t4(),children:r}):v.jsx(vo,{children:v.jsx(po,{children:"Modal dialog"})}),n?v.jsx(go,{className:r4(),children:n}):v.jsx(vo,{children:v.jsx(go,{children:"Modal content"})}),a&&v.jsx(Y2,{asChild:!0,children:v.jsx("button",{className:e4(),"aria-label":"Close modal",children:i||v.jsx(b.X,{size:16,color:"currentColor"})})}),o&&v.jsx("div",{className:te(n4({size:C}),y),children:o}),O&&v.jsxs("div",{className:te(a4(),w),children:[s&&v.jsx(Rr,{ref:A,variant:s.variant||"secondary",size:"small",onClick:F,disabled:s.disabled||s.loading,startIcon:s.icon,className:"flex-1",children:s.label}),l&&v.jsx(Rr,{ref:k,variant:l.variant||"primary",size:"small",onClick:B,disabled:l.disabled||l.loading,startIcon:l.icon,className:"flex-1",children:l.label})]})]})]})})};fu.displayName="Modal";function bo(e){const t=[],r=String(e||"");let n=r.indexOf(","),a=0,i=!1;for(;!i;){n===-1&&(n=r.length,i=!0);const o=r.slice(a,n).trim();(o||!i)&&t.push(o),a=n+1,n=r.indexOf(",",a)}return t}function i4(e,t){const r={};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const o4=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,l4=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,s4={};function yo(e,t){return(s4.jsx?l4:o4).test(e)}const u4=/[ \t\n\f\r]/g;function c4(e){return typeof e=="object"?e.type==="text"?xo(e.value):!1:xo(e)}function xo(e){return e.replace(u4,"")===""}class hn{constructor(t,r,n){this.normal=r,this.property=t,n&&(this.space=n)}}hn.prototype.normal={};hn.prototype.property={};hn.prototype.space=void 0;function pu(e,t){const r={},n={};for(const a of e)Object.assign(r,a.property),Object.assign(n,a.normal);return new hn(r,n,t)}function on(e){return e.toLowerCase()}class it{constructor(t,r){this.attribute=r,this.property=t}}it.prototype.attribute="";it.prototype.booleanish=!1;it.prototype.boolean=!1;it.prototype.commaOrSpaceSeparated=!1;it.prototype.commaSeparated=!1;it.prototype.defined=!1;it.prototype.mustUseProperty=!1;it.prototype.number=!1;it.prototype.overloadedBoolean=!1;it.prototype.property="";it.prototype.spaceSeparated=!1;it.prototype.space=void 0;let h4=0;const me=gr(),He=gr(),yi=gr(),W=gr(),De=gr(),Ir=gr(),st=gr();function gr(){return 2**++h4}const xi=Object.freeze(Object.defineProperty({__proto__:null,boolean:me,booleanish:He,commaOrSpaceSeparated:st,commaSeparated:Ir,number:W,overloadedBoolean:yi,spaceSeparated:De},Symbol.toStringTag,{value:"Module"})),Ia=Object.keys(xi);class Ji extends it{constructor(t,r,n,a){let i=-1;if(super(t,r),wo(this,"space",a),typeof n=="number")for(;++i<Ia.length;){const o=Ia[i];wo(this,Ia[i],(n&xi[o])===xi[o])}}}Ji.prototype.defined=!0;function wo(e,t,r){r&&(e[t]=r)}function _r(e){const t={},r={};for(const[n,a]of Object.entries(e.properties)){const i=new Ji(n,e.transform(e.attributes||{},n),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(n)&&(i.mustUseProperty=!0),t[n]=i,r[on(n)]=n,r[on(i.attribute)]=n}return new hn(t,r,e.space)}const gu=_r({properties:{ariaActiveDescendant:null,ariaAtomic:He,ariaAutoComplete:null,ariaBusy:He,ariaChecked:He,ariaColCount:W,ariaColIndex:W,ariaColSpan:W,ariaControls:De,ariaCurrent:null,ariaDescribedBy:De,ariaDetails:null,ariaDisabled:He,ariaDropEffect:De,ariaErrorMessage:null,ariaExpanded:He,ariaFlowTo:De,ariaGrabbed:He,ariaHasPopup:null,ariaHidden:He,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:De,ariaLevel:W,ariaLive:null,ariaModal:He,ariaMultiLine:He,ariaMultiSelectable:He,ariaOrientation:null,ariaOwns:De,ariaPlaceholder:null,ariaPosInSet:W,ariaPressed:He,ariaReadOnly:He,ariaRelevant:null,ariaRequired:He,ariaRoleDescription:De,ariaRowCount:W,ariaRowIndex:W,ariaRowSpan:W,ariaSelected:He,ariaSetSize:W,ariaSort:null,ariaValueMax:W,ariaValueMin:W,ariaValueNow:W,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function vu(e,t){return t in e?e[t]:t}function bu(e,t){return vu(e,t.toLowerCase())}const d4=_r({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ir,acceptCharset:De,accessKey:De,action:null,allow:null,allowFullScreen:me,allowPaymentRequest:me,allowUserMedia:me,alt:null,as:null,async:me,autoCapitalize:null,autoComplete:De,autoFocus:me,autoPlay:me,blocking:De,capture:null,charSet:null,checked:me,cite:null,className:De,cols:W,colSpan:null,content:null,contentEditable:He,controls:me,controlsList:De,coords:W|Ir,crossOrigin:null,data:null,dateTime:null,decoding:null,default:me,defer:me,dir:null,dirName:null,disabled:me,download:yi,draggable:He,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:me,formTarget:null,headers:De,height:W,hidden:yi,high:W,href:null,hrefLang:null,htmlFor:De,httpEquiv:De,id:null,imageSizes:null,imageSrcSet:null,inert:me,inputMode:null,integrity:null,is:null,isMap:me,itemId:null,itemProp:De,itemRef:De,itemScope:me,itemType:De,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:me,low:W,manifest:null,max:null,maxLength:W,media:null,method:null,min:null,minLength:W,multiple:me,muted:me,name:null,nonce:null,noModule:me,noValidate:me,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:me,optimum:W,pattern:null,ping:De,placeholder:null,playsInline:me,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:me,referrerPolicy:null,rel:De,required:me,reversed:me,rows:W,rowSpan:W,sandbox:De,scope:null,scoped:me,seamless:me,selected:me,shadowRootClonable:me,shadowRootDelegatesFocus:me,shadowRootMode:null,shape:null,size:W,sizes:null,slot:null,span:W,spellCheck:He,src:null,srcDoc:null,srcLang:null,srcSet:null,start:W,step:null,style:null,tabIndex:W,target:null,title:null,translate:null,type:null,typeMustMatch:me,useMap:null,value:He,width:W,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:De,axis:null,background:null,bgColor:null,border:W,borderColor:null,bottomMargin:W,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:me,declare:me,event:null,face:null,frame:null,frameBorder:null,hSpace:W,leftMargin:W,link:null,longDesc:null,lowSrc:null,marginHeight:W,marginWidth:W,noResize:me,noHref:me,noShade:me,noWrap:me,object:null,profile:null,prompt:null,rev:null,rightMargin:W,rules:null,scheme:null,scrolling:He,standby:null,summary:null,text:null,topMargin:W,valueType:null,version:null,vAlign:null,vLink:null,vSpace:W,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:me,disableRemotePlayback:me,prefix:null,property:null,results:W,security:null,unselectable:null},space:"html",transform:bu}),m4=_r({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:st,accentHeight:W,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:W,amplitude:W,arabicForm:null,ascent:W,attributeName:null,attributeType:null,azimuth:W,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:W,by:null,calcMode:null,capHeight:W,className:De,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:W,diffuseConstant:W,direction:null,display:null,dur:null,divisor:W,dominantBaseline:null,download:me,dx:null,dy:null,edgeMode:null,editable:null,elevation:W,enableBackground:null,end:null,event:null,exponent:W,externalResourcesRequired:null,fill:null,fillOpacity:W,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Ir,g2:Ir,glyphName:Ir,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:W,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:W,horizOriginX:W,horizOriginY:W,id:null,ideographic:W,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:W,k:W,k1:W,k2:W,k3:W,k4:W,kernelMatrix:st,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:W,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:W,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:W,overlineThickness:W,paintOrder:null,panose1:null,path:null,pathLength:W,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:De,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:W,pointsAtY:W,pointsAtZ:W,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:st,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:st,rev:st,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:st,requiredFeatures:st,requiredFonts:st,requiredFormats:st,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:W,specularExponent:W,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:W,strikethroughThickness:W,string:null,stroke:null,strokeDashArray:st,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:W,strokeOpacity:W,strokeWidth:null,style:null,surfaceScale:W,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:st,tabIndex:W,tableValues:null,target:null,targetX:W,targetY:W,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:st,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:W,underlineThickness:W,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:W,values:null,vAlphabetic:W,vMathematical:W,vectorEffect:null,vHanging:W,vIdeographic:W,version:null,vertAdvY:W,vertOriginX:W,vertOriginY:W,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:W,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:vu}),yu=_r({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),xu=_r({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:bu}),wu=_r({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),f4={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},p4=/[A-Z]/g,ko=/-[a-z]/g,g4=/^data[-\w.:]+$/i;function ku(e,t){const r=on(t);let n=t,a=it;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&g4.test(t)){if(t.charAt(4)==="-"){const i=t.slice(5).replace(ko,b4);n="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=t.slice(4);if(!ko.test(i)){let o=i.replace(p4,v4);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}a=Ji}return new a(n,t)}function v4(e){return"-"+e.toLowerCase()}function b4(e){return e.charAt(1).toUpperCase()}const Su=pu([gu,d4,yu,xu,wu],"html"),la=pu([gu,m4,yu,xu,wu],"svg");function So(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function y4(e){return e.join(" ").trim()}function Cu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Mr={},La,Co;function x4(){if(Co)return La;Co=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,r=/^\s*/,n=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,a=/^:\s*/,i=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,o=/^[;\s]*/,l=/^\s+|\s+$/g,s=`
71
+ `,u="/",c="*",h="",m="comment",p="declaration";function y(C,k){if(typeof C!="string")throw new TypeError("First argument must be a string");if(!C)return[];k=k||{};var A=1,E=1;function B(J){var V=J.match(t);V&&(A+=V.length);var le=J.lastIndexOf(s);E=~le?J.length-le:E+J.length}function F(){var J={line:A,column:E};return function(V){return V.position=new D(J),H(),V}}function D(J){this.start=J,this.end={line:A,column:E},this.source=k.source}D.prototype.content=C;function _(J){var V=new Error(k.source+":"+A+":"+E+": "+J);if(V.reason=J,V.filename=k.source,V.line=A,V.column=E,V.source=C,!k.silent)throw V}function O(J){var V=J.exec(C);if(V){var le=V[0];return B(le),C=C.slice(le.length),V}}function H(){O(r)}function L(J){var V;for(J=J||[];V=K();)V!==!1&&J.push(V);return J}function K(){var J=F();if(!(u!=C.charAt(0)||c!=C.charAt(1))){for(var V=2;h!=C.charAt(V)&&(c!=C.charAt(V)||u!=C.charAt(V+1));)++V;if(V+=2,h===C.charAt(V-1))return _("End of comment missing");var le=C.slice(2,V-2);return E+=2,B(le),C=C.slice(V),E+=2,J({type:m,comment:le})}}function G(){var J=F(),V=O(n);if(V){if(K(),!O(a))return _("property missing ':'");var le=O(i),pe=J({type:p,property:w(V[0].replace(e,h)),value:le?w(le[0].replace(e,h)):h});return O(o),pe}}function ce(){var J=[];L(J);for(var V;V=G();)V!==!1&&(J.push(V),L(J));return J}return H(),ce()}function w(C){return C?C.replace(l,h):h}return La=y,La}var To;function w4(){if(To)return Mr;To=1;var e=Mr&&Mr.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(Mr,"__esModule",{value:!0}),Mr.default=r;const t=e(x4());function r(n,a){let i=null;if(!n||typeof n!="string")return i;const o=(0,t.default)(n),l=typeof a=="function";return o.forEach(s=>{if(s.type!=="declaration")return;const{property:u,value:c}=s;l?a(u,c,s):c&&(i=i||{},i[u]=c)}),i}return Mr}var Xr={},Mo;function k4(){if(Mo)return Xr;Mo=1,Object.defineProperty(Xr,"__esModule",{value:!0}),Xr.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,r=/^[^-]+$/,n=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,i=function(u){return!u||r.test(u)||e.test(u)},o=function(u,c){return c.toUpperCase()},l=function(u,c){return"".concat(c,"-")},s=function(u,c){return c===void 0&&(c={}),i(u)?u:(u=u.toLowerCase(),c.reactCompat?u=u.replace(a,l):u=u.replace(n,l),u.replace(t,o))};return Xr.camelCase=s,Xr}var Yr,Ao;function S4(){if(Ao)return Yr;Ao=1;var e=Yr&&Yr.__importDefault||function(a){return a&&a.__esModule?a:{default:a}},t=e(w4()),r=k4();function n(a,i){var o={};return!a||typeof a!="string"||(0,t.default)(a,function(l,s){l&&s&&(o[(0,r.camelCase)(l,i)]=s)}),o}return n.default=n,Yr=n,Yr}var C4=S4();const T4=Cu(C4),Tu=Mu("end"),e0=Mu("start");function Mu(e){return t;function t(r){const n=r&&r.position&&r.position[e]||{};if(typeof n.line=="number"&&n.line>0&&typeof n.column=="number"&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset=="number"&&n.offset>-1?n.offset:void 0}}}function M4(e){const t=e0(e),r=Tu(e);if(t&&r)return{start:t,end:r}}function Jr(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?zo(e.position):"start"in e||"end"in e?zo(e):"line"in e||"column"in e?wi(e):""}function wi(e){return No(e&&e.line)+":"+No(e&&e.column)}function zo(e){return wi(e&&e.start)+"-"+wi(e&&e.end)}function No(e){return e&&typeof e=="number"?e:1}class Ye extends Error{constructor(t,r,n){super(),typeof r=="string"&&(n=r,r=void 0);let a="",i={},o=!1;if(r&&("line"in r&&"column"in r?i={place:r}:"start"in r&&"end"in r?i={place:r}:"type"in r?i={ancestors:[r],place:r.position}:i={...r}),typeof t=="string"?a=t:!i.cause&&t&&(o=!0,a=t.message,i.cause=t),!i.ruleId&&!i.source&&typeof n=="string"){const s=n.indexOf(":");s===-1?i.ruleId=n:(i.source=n.slice(0,s),i.ruleId=n.slice(s+1))}if(!i.place&&i.ancestors&&i.ancestors){const s=i.ancestors[i.ancestors.length-1];s&&(i.place=s.position)}const l=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=l?l.column:void 0,this.fatal=void 0,this.file="",this.message=a,this.line=l?l.line:void 0,this.name=Jr(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=o&&i.cause&&typeof i.cause.stack=="string"?i.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Ye.prototype.file="";Ye.prototype.name="";Ye.prototype.reason="";Ye.prototype.message="";Ye.prototype.stack="";Ye.prototype.column=void 0;Ye.prototype.line=void 0;Ye.prototype.ancestors=void 0;Ye.prototype.cause=void 0;Ye.prototype.fatal=void 0;Ye.prototype.place=void 0;Ye.prototype.ruleId=void 0;Ye.prototype.source=void 0;const t0={}.hasOwnProperty,A4=new Map,z4=/[A-Z]/g,N4=new Set(["table","tbody","thead","tfoot","tr"]),E4=new Set(["td","th"]),Au="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function D4(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const r=t.filePath||void 0;let n;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");n=j4(r,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");n=O4(r,t.jsx,t.jsxs)}const a={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:n,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:r,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?la:Su,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},i=zu(a,e,void 0);return i&&typeof i!="string"?i:a.create(e,a.Fragment,{children:i||void 0},void 0)}function zu(e,t,r){if(t.type==="element")return I4(e,t,r);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return L4(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return P4(e,t,r);if(t.type==="mdxjsEsm")return R4(e,t);if(t.type==="root")return B4(e,t,r);if(t.type==="text")return F4(e,t)}function I4(e,t,r){const n=e.schema;let a=n;t.tagName.toLowerCase()==="svg"&&n.space==="html"&&(a=la,e.schema=a),e.ancestors.push(t);const i=Eu(e,t.tagName,!1),o=_4(e,t);let l=n0(e,t);return N4.has(t.tagName)&&(l=l.filter(function(s){return typeof s=="string"?!c4(s):!0})),Nu(e,o,i,t),r0(o,l),e.ancestors.pop(),e.schema=n,e.create(t,i,o,r)}function L4(e,t){if(t.data&&t.data.estree&&e.evaluater){const n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}ln(e,t.position)}function R4(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);ln(e,t.position)}function P4(e,t,r){const n=e.schema;let a=n;t.name==="svg"&&n.space==="html"&&(a=la,e.schema=a),e.ancestors.push(t);const i=t.name===null?e.Fragment:Eu(e,t.name,!0),o=q4(e,t),l=n0(e,t);return Nu(e,o,i,t),r0(o,l),e.ancestors.pop(),e.schema=n,e.create(t,i,o,r)}function B4(e,t,r){const n={};return r0(n,n0(e,t)),e.create(t,e.Fragment,n,r)}function F4(e,t){return t.value}function Nu(e,t,r,n){typeof r!="string"&&r!==e.Fragment&&e.passNode&&(t.node=n)}function r0(e,t){if(t.length>0){const r=t.length>1?t:t[0];r&&(e.children=r)}}function O4(e,t,r){return n;function n(a,i,o,l){const u=Array.isArray(o.children)?r:t;return l?u(i,o,l):u(i,o)}}function j4(e,t){return r;function r(n,a,i,o){const l=Array.isArray(i.children),s=e0(n);return t(a,i,o,l,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}function _4(e,t){const r={};let n,a;for(a in t.properties)if(a!=="children"&&t0.call(t.properties,a)){const i=H4(e,a,t.properties[a]);if(i){const[o,l]=i;e.tableCellAlignToStyle&&o==="align"&&typeof l=="string"&&E4.has(t.tagName)?n=l:r[o]=l}}if(n){const i=r.style||(r.style={});i[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=n}return r}function q4(e,t){const r={};for(const n of t.attributes)if(n.type==="mdxJsxExpressionAttribute")if(n.data&&n.data.estree&&e.evaluater){const i=n.data.estree.body[0];i.type;const o=i.expression;o.type;const l=o.properties[0];l.type,Object.assign(r,e.evaluater.evaluateExpression(l.argument))}else ln(e,t.position);else{const a=n.name;let i;if(n.value&&typeof n.value=="object")if(n.value.data&&n.value.data.estree&&e.evaluater){const l=n.value.data.estree.body[0];l.type,i=e.evaluater.evaluateExpression(l.expression)}else ln(e,t.position);else i=n.value===null?!0:n.value;r[a]=i}return r}function n0(e,t){const r=[];let n=-1;const a=e.passKeys?new Map:A4;for(;++n<t.children.length;){const i=t.children[n];let o;if(e.passKeys){const s=i.type==="element"?i.tagName:i.type==="mdxJsxFlowElement"||i.type==="mdxJsxTextElement"?i.name:void 0;if(s){const u=a.get(s)||0;o=s+"-"+u,a.set(s,u+1)}}const l=zu(e,i,o);l!==void 0&&r.push(l)}return r}function H4(e,t,r){const n=ku(e.schema,t);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=n.commaSeparated?i4(r):y4(r)),n.property==="style"){let a=typeof r=="object"?r:V4(e,String(r));return e.stylePropertyNameCase==="css"&&(a=$4(a)),["style",a]}return[e.elementAttributeNameCase==="react"&&n.space?f4[n.property]||n.property:n.attribute,r]}}function V4(e,t){try{return T4(t,{reactCompat:!0})}catch(r){if(e.ignoreInvalidStyle)return{};const n=r,a=new Ye("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw a.file=e.filePath||void 0,a.url=Au+"#cannot-parse-style-attribute",a}}function Eu(e,t,r){let n;if(!r)n={type:"Literal",value:t};else if(t.includes(".")){const a=t.split(".");let i=-1,o;for(;++i<a.length;){const l=yo(a[i])?{type:"Identifier",name:a[i]}:{type:"Literal",value:a[i]};o=o?{type:"MemberExpression",object:o,property:l,computed:!!(i&&l.type==="Literal"),optional:!1}:l}n=o}else n=yo(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(n.type==="Literal"){const a=n.value;return t0.call(e.components,a)?e.components[a]:a}if(e.evaluater)return e.evaluater.evaluateExpression(n);ln(e)}function ln(e,t){const r=new Ye("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=Au+"#cannot-handle-mdx-estrees-without-createevaluater",r}function $4(e){const t={};let r;for(r in e)t0.call(e,r)&&(t[U4(r)]=e[r]);return t}function U4(e){let t=e.replace(z4,G4);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function G4(e){return"-"+e.toLowerCase()}const Ra={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},W4={};function a0(e,t){const r=W4,n=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,a=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return Du(e,n,a)}function Du(e,t,r){if(X4(e)){if("value"in e)return e.type==="html"&&!r?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Eo(e.children,t,r)}return Array.isArray(e)?Eo(e,t,r):""}function Eo(e,t,r){const n=[];let a=-1;for(;++a<e.length;)n[a]=Du(e[a],t,r);return n.join("")}function X4(e){return!!(e&&typeof e=="object")}const Do=document.createElement("i");function i0(e){const t="&"+e+";";Do.innerHTML=t;const r=Do.textContent;return r.charCodeAt(r.length-1)===59&&e!=="semi"||r===t?!1:r}function ct(e,t,r,n){const a=e.length;let i=0,o;if(t<0?t=-t>a?0:a+t:t=t>a?a:t,r=r>0?r:0,n.length<1e4)o=Array.from(n),o.unshift(t,r),e.splice(...o);else for(r&&e.splice(t,r);i<n.length;)o=n.slice(i,i+1e4),o.unshift(t,0),e.splice(...o),i+=1e4,t+=1e4}function mt(e,t){return e.length>0?(ct(e,e.length,0,t),e):t}const Io={}.hasOwnProperty;function Iu(e){const t={};let r=-1;for(;++r<e.length;)Y4(t,e[r]);return t}function Y4(e,t){let r;for(r in t){const a=(Io.call(e,r)?e[r]:void 0)||(e[r]={}),i=t[r];let o;if(i)for(o in i){Io.call(a,o)||(a[o]=[]);const l=i[o];K4(a[o],Array.isArray(l)?l:l?[l]:[])}}}function K4(e,t){let r=-1;const n=[];for(;++r<t.length;)(t[r].add==="after"?e:n).push(t[r]);ct(e,0,0,n)}function Lu(e,t){const r=Number.parseInt(e,t);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"�":String.fromCodePoint(r)}function yt(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Qe=rr(/[A-Za-z]/),Xe=rr(/[\dA-Za-z]/),Z4=rr(/[#-'*+\--9=?A-Z^-~]/);function Wn(e){return e!==null&&(e<32||e===127)}const ki=rr(/\d/),Q4=rr(/[\dA-Fa-f]/),J4=rr(/[!-/:-@[-`{-~]/);function oe(e){return e!==null&&e<-2}function ze(e){return e!==null&&(e<0||e===32)}function be(e){return e===-2||e===-1||e===32}const sa=rr(new RegExp("\\p{P}|\\p{S}","u")),mr=rr(/\s/);function rr(e){return t;function t(r){return r!==null&&r>-1&&e.test(String.fromCharCode(r))}}function qr(e){const t=[];let r=-1,n=0,a=0;for(;++r<e.length;){const i=e.charCodeAt(r);let o="";if(i===37&&Xe(e.charCodeAt(r+1))&&Xe(e.charCodeAt(r+2)))a=2;else if(i<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))||(o=String.fromCharCode(i));else if(i>55295&&i<57344){const l=e.charCodeAt(r+1);i<56320&&l>56319&&l<57344?(o=String.fromCharCode(i,l),a=1):o="�"}else o=String.fromCharCode(i);o&&(t.push(e.slice(n,r),encodeURIComponent(o)),n=r+a+1,o=""),a&&(r+=a,a=0)}return t.join("")+e.slice(n)}function ve(e,t,r,n){const a=n?n-1:Number.POSITIVE_INFINITY;let i=0;return o;function o(s){return be(s)?(e.enter(r),l(s)):t(s)}function l(s){return be(s)&&i++<a?(e.consume(s),l):(e.exit(r),t(s))}}const ep={tokenize:tp};function tp(e){const t=e.attempt(this.parser.constructs.contentInitial,n,a);let r;return t;function n(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),ve(e,t,"linePrefix")}function a(l){return e.enter("paragraph"),i(l)}function i(l){const s=e.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=s),r=s,o(l)}function o(l){if(l===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(l);return}return oe(l)?(e.consume(l),e.exit("chunkText"),i):(e.consume(l),o)}}const rp={tokenize:np},Lo={tokenize:ap};function np(e){const t=this,r=[];let n=0,a,i,o;return l;function l(E){if(n<r.length){const B=r[n];return t.containerState=B[1],e.attempt(B[0].continuation,s,u)(E)}return u(E)}function s(E){if(n++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,a&&A();const B=t.events.length;let F=B,D;for(;F--;)if(t.events[F][0]==="exit"&&t.events[F][1].type==="chunkFlow"){D=t.events[F][1].end;break}k(n);let _=B;for(;_<t.events.length;)t.events[_][1].end={...D},_++;return ct(t.events,F+1,0,t.events.slice(B)),t.events.length=_,u(E)}return l(E)}function u(E){if(n===r.length){if(!a)return m(E);if(a.currentConstruct&&a.currentConstruct.concrete)return y(E);t.interrupt=!!(a.currentConstruct&&!a._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Lo,c,h)(E)}function c(E){return a&&A(),k(n),m(E)}function h(E){return t.parser.lazy[t.now().line]=n!==r.length,o=t.now().offset,y(E)}function m(E){return t.containerState={},e.attempt(Lo,p,y)(E)}function p(E){return n++,r.push([t.currentConstruct,t.containerState]),m(E)}function y(E){if(E===null){a&&A(),k(0),e.consume(E);return}return a=a||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:a,contentType:"flow",previous:i}),w(E)}function w(E){if(E===null){C(e.exit("chunkFlow"),!0),k(0),e.consume(E);return}return oe(E)?(e.consume(E),C(e.exit("chunkFlow")),n=0,t.interrupt=void 0,l):(e.consume(E),w)}function C(E,B){const F=t.sliceStream(E);if(B&&F.push(null),E.previous=i,i&&(i.next=E),i=E,a.defineSkip(E.start),a.write(F),t.parser.lazy[E.start.line]){let D=a.events.length;for(;D--;)if(a.events[D][1].start.offset<o&&(!a.events[D][1].end||a.events[D][1].end.offset>o))return;const _=t.events.length;let O=_,H,L;for(;O--;)if(t.events[O][0]==="exit"&&t.events[O][1].type==="chunkFlow"){if(H){L=t.events[O][1].end;break}H=!0}for(k(n),D=_;D<t.events.length;)t.events[D][1].end={...L},D++;ct(t.events,O+1,0,t.events.slice(_)),t.events.length=D}}function k(E){let B=r.length;for(;B-- >E;){const F=r[B];t.containerState=F[1],F[0].exit.call(t,e)}r.length=E}function A(){a.write([null]),i=void 0,a=void 0,t.containerState._closeFlow=void 0}}function ap(e,t,r){return ve(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Br(e){if(e===null||ze(e)||mr(e))return 1;if(sa(e))return 2}function ua(e,t,r){const n=[];let a=-1;for(;++a<e.length;){const i=e[a].resolveAll;i&&!n.includes(i)&&(t=i(t,r),n.push(i))}return t}const Si={name:"attention",resolveAll:ip,tokenize:op};function ip(e,t){let r=-1,n,a,i,o,l,s,u,c;for(;++r<e.length;)if(e[r][0]==="enter"&&e[r][1].type==="attentionSequence"&&e[r][1]._close){for(n=r;n--;)if(e[n][0]==="exit"&&e[n][1].type==="attentionSequence"&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[r][1]).charCodeAt(0)){if((e[n][1]._close||e[r][1]._open)&&(e[r][1].end.offset-e[r][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[r][1].end.offset-e[r][1].start.offset)%3))continue;s=e[n][1].end.offset-e[n][1].start.offset>1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1;const h={...e[n][1].end},m={...e[r][1].start};Ro(h,-s),Ro(m,s),o={type:s>1?"strongSequence":"emphasisSequence",start:h,end:{...e[n][1].end}},l={type:s>1?"strongSequence":"emphasisSequence",start:{...e[r][1].start},end:m},i={type:s>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[r][1].start}},a={type:s>1?"strong":"emphasis",start:{...o.start},end:{...l.end}},e[n][1].end={...o.start},e[r][1].start={...l.end},u=[],e[n][1].end.offset-e[n][1].start.offset&&(u=mt(u,[["enter",e[n][1],t],["exit",e[n][1],t]])),u=mt(u,[["enter",a,t],["enter",o,t],["exit",o,t],["enter",i,t]]),u=mt(u,ua(t.parser.constructs.insideSpan.null,e.slice(n+1,r),t)),u=mt(u,[["exit",i,t],["enter",l,t],["exit",l,t],["exit",a,t]]),e[r][1].end.offset-e[r][1].start.offset?(c=2,u=mt(u,[["enter",e[r][1],t],["exit",e[r][1],t]])):c=0,ct(e,n-1,r-n+3,u),r=n+u.length-c-2;break}}for(r=-1;++r<e.length;)e[r][1].type==="attentionSequence"&&(e[r][1].type="data");return e}function op(e,t){const r=this.parser.constructs.attentionMarkers.null,n=this.previous,a=Br(n);let i;return o;function o(s){return i=s,e.enter("attentionSequence"),l(s)}function l(s){if(s===i)return e.consume(s),l;const u=e.exit("attentionSequence"),c=Br(s),h=!c||c===2&&a||r.includes(s),m=!a||a===2&&c||r.includes(n);return u._open=!!(i===42?h:h&&(a||!m)),u._close=!!(i===42?m:m&&(c||!h)),t(s)}}function Ro(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const lp={name:"autolink",tokenize:sp};function sp(e,t,r){let n=0;return a;function a(p){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i}function i(p){return Qe(p)?(e.consume(p),o):p===64?r(p):u(p)}function o(p){return p===43||p===45||p===46||Xe(p)?(n=1,l(p)):u(p)}function l(p){return p===58?(e.consume(p),n=0,s):(p===43||p===45||p===46||Xe(p))&&n++<32?(e.consume(p),l):(n=0,u(p))}function s(p){return p===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):p===null||p===32||p===60||Wn(p)?r(p):(e.consume(p),s)}function u(p){return p===64?(e.consume(p),c):Z4(p)?(e.consume(p),u):r(p)}function c(p){return Xe(p)?h(p):r(p)}function h(p){return p===46?(e.consume(p),n=0,c):p===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):m(p)}function m(p){if((p===45||Xe(p))&&n++<63){const y=p===45?m:h;return e.consume(p),y}return r(p)}}const dn={partial:!0,tokenize:up};function up(e,t,r){return n;function n(i){return be(i)?ve(e,a,"linePrefix")(i):a(i)}function a(i){return i===null||oe(i)?t(i):r(i)}}const Ru={continuation:{tokenize:hp},exit:dp,name:"blockQuote",tokenize:cp};function cp(e,t,r){const n=this;return a;function a(o){if(o===62){const l=n.containerState;return l.open||(e.enter("blockQuote",{_container:!0}),l.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(o),e.exit("blockQuoteMarker"),i}return r(o)}function i(o){return be(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(o))}}function hp(e,t,r){const n=this;return a;function a(o){return be(o)?ve(e,i,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):i(o)}function i(o){return e.attempt(Ru,t,r)(o)}}function dp(e){e.exit("blockQuote")}const Pu={name:"characterEscape",tokenize:mp};function mp(e,t,r){return n;function n(i){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(i),e.exit("escapeMarker"),a}function a(i){return J4(i)?(e.enter("characterEscapeValue"),e.consume(i),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(i)}}const Bu={name:"characterReference",tokenize:fp};function fp(e,t,r){const n=this;let a=0,i,o;return l;function l(h){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(h),e.exit("characterReferenceMarker"),s}function s(h){return h===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(h),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),i=31,o=Xe,c(h))}function u(h){return h===88||h===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(h),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),i=6,o=Q4,c):(e.enter("characterReferenceValue"),i=7,o=ki,c(h))}function c(h){if(h===59&&a){const m=e.exit("characterReferenceValue");return o===Xe&&!i0(n.sliceSerialize(m))?r(h):(e.enter("characterReferenceMarker"),e.consume(h),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return o(h)&&a++<i?(e.consume(h),c):r(h)}}const Po={partial:!0,tokenize:gp},Bo={concrete:!0,name:"codeFenced",tokenize:pp};function pp(e,t,r){const n=this,a={partial:!0,tokenize:F};let i=0,o=0,l;return s;function s(D){return u(D)}function u(D){const _=n.events[n.events.length-1];return i=_&&_[1].type==="linePrefix"?_[2].sliceSerialize(_[1],!0).length:0,l=D,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c(D)}function c(D){return D===l?(o++,e.consume(D),c):o<3?r(D):(e.exit("codeFencedFenceSequence"),be(D)?ve(e,h,"whitespace")(D):h(D))}function h(D){return D===null||oe(D)?(e.exit("codeFencedFence"),n.interrupt?t(D):e.check(Po,w,B)(D)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),m(D))}function m(D){return D===null||oe(D)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),h(D)):be(D)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),ve(e,p,"whitespace")(D)):D===96&&D===l?r(D):(e.consume(D),m)}function p(D){return D===null||oe(D)?h(D):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),y(D))}function y(D){return D===null||oe(D)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),h(D)):D===96&&D===l?r(D):(e.consume(D),y)}function w(D){return e.attempt(a,B,C)(D)}function C(D){return e.enter("lineEnding"),e.consume(D),e.exit("lineEnding"),k}function k(D){return i>0&&be(D)?ve(e,A,"linePrefix",i+1)(D):A(D)}function A(D){return D===null||oe(D)?e.check(Po,w,B)(D):(e.enter("codeFlowValue"),E(D))}function E(D){return D===null||oe(D)?(e.exit("codeFlowValue"),A(D)):(e.consume(D),E)}function B(D){return e.exit("codeFenced"),t(D)}function F(D,_,O){let H=0;return L;function L(V){return D.enter("lineEnding"),D.consume(V),D.exit("lineEnding"),K}function K(V){return D.enter("codeFencedFence"),be(V)?ve(D,G,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(V):G(V)}function G(V){return V===l?(D.enter("codeFencedFenceSequence"),ce(V)):O(V)}function ce(V){return V===l?(H++,D.consume(V),ce):H>=o?(D.exit("codeFencedFenceSequence"),be(V)?ve(D,J,"whitespace")(V):J(V)):O(V)}function J(V){return V===null||oe(V)?(D.exit("codeFencedFence"),_(V)):O(V)}}}function gp(e,t,r){const n=this;return a;function a(o){return o===null?r(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i)}function i(o){return n.parser.lazy[n.now().line]?r(o):t(o)}}const Pa={name:"codeIndented",tokenize:bp},vp={partial:!0,tokenize:yp};function bp(e,t,r){const n=this;return a;function a(u){return e.enter("codeIndented"),ve(e,i,"linePrefix",5)(u)}function i(u){const c=n.events[n.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?o(u):r(u)}function o(u){return u===null?s(u):oe(u)?e.attempt(vp,o,s)(u):(e.enter("codeFlowValue"),l(u))}function l(u){return u===null||oe(u)?(e.exit("codeFlowValue"),o(u)):(e.consume(u),l)}function s(u){return e.exit("codeIndented"),t(u)}}function yp(e,t,r){const n=this;return a;function a(o){return n.parser.lazy[n.now().line]?r(o):oe(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a):ve(e,i,"linePrefix",5)(o)}function i(o){const l=n.events[n.events.length-1];return l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?t(o):oe(o)?a(o):r(o)}}const xp={name:"codeText",previous:kp,resolve:wp,tokenize:Sp};function wp(e){let t=e.length-4,r=3,n,a;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(n=r;++n<t;)if(e[n][1].type==="codeTextData"){e[r][1].type="codeTextPadding",e[t][1].type="codeTextPadding",r+=2,t-=2;break}}for(n=r-1,t++;++n<=t;)a===void 0?n!==t&&e[n][1].type!=="lineEnding"&&(a=n):(n===t||e[n][1].type==="lineEnding")&&(e[a][1].type="codeTextData",n!==a+2&&(e[a][1].end=e[n-1][1].end,e.splice(a+2,n-a-2),t-=n-a-2,n=a+2),a=void 0);return e}function kp(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Sp(e,t,r){let n=0,a,i;return o;function o(h){return e.enter("codeText"),e.enter("codeTextSequence"),l(h)}function l(h){return h===96?(e.consume(h),n++,l):(e.exit("codeTextSequence"),s(h))}function s(h){return h===null?r(h):h===32?(e.enter("space"),e.consume(h),e.exit("space"),s):h===96?(i=e.enter("codeTextSequence"),a=0,c(h)):oe(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),s):(e.enter("codeTextData"),u(h))}function u(h){return h===null||h===32||h===96||oe(h)?(e.exit("codeTextData"),s(h)):(e.consume(h),u)}function c(h){return h===96?(e.consume(h),a++,c):a===n?(e.exit("codeTextSequence"),e.exit("codeText"),t(h)):(i.type="codeTextData",u(h))}}class Cp{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,r){const n=r??Number.POSITIVE_INFINITY;return n<this.left.length?this.left.slice(t,n):t>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(t,r,n){const a=r||0;this.setCursor(Math.trunc(t));const i=this.right.splice(this.right.length-a,Number.POSITIVE_INFINITY);return n&&Kr(this.left,n),i.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Kr(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Kr(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const r=this.left.splice(t,Number.POSITIVE_INFINITY);Kr(this.right,r.reverse())}else{const r=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Kr(this.left,r.reverse())}}}function Kr(e,t){let r=0;if(t.length<1e4)e.push(...t);else for(;r<t.length;)e.push(...t.slice(r,r+1e4)),r+=1e4}function Fu(e){const t={};let r=-1,n,a,i,o,l,s,u;const c=new Cp(e);for(;++r<c.length;){for(;r in t;)r=t[r];if(n=c.get(r),r&&n[1].type==="chunkFlow"&&c.get(r-1)[1].type==="listItemPrefix"&&(s=n[1]._tokenizer.events,i=0,i<s.length&&s[i][1].type==="lineEndingBlank"&&(i+=2),i<s.length&&s[i][1].type==="content"))for(;++i<s.length&&s[i][1].type!=="content";)s[i][1].type==="chunkText"&&(s[i][1]._isInFirstContentOfListItem=!0,i++);if(n[0]==="enter")n[1].contentType&&(Object.assign(t,Tp(c,r)),r=t[r],u=!0);else if(n[1]._container){for(i=r,a=void 0;i--;)if(o=c.get(i),o[1].type==="lineEnding"||o[1].type==="lineEndingBlank")o[0]==="enter"&&(a&&(c.get(a)[1].type="lineEndingBlank"),o[1].type="lineEnding",a=i);else if(!(o[1].type==="linePrefix"||o[1].type==="listItemIndent"))break;a&&(n[1].end={...c.get(a)[1].start},l=c.slice(a,r),l.unshift(n),c.splice(a,r-a+1,l))}}return ct(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!u}function Tp(e,t){const r=e.get(t)[1],n=e.get(t)[2];let a=t-1;const i=[];let o=r._tokenizer;o||(o=n.parser[r.contentType](r.start),r._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));const l=o.events,s=[],u={};let c,h,m=-1,p=r,y=0,w=0;const C=[w];for(;p;){for(;e.get(++a)[1]!==p;);i.push(a),p._tokenizer||(c=n.sliceStream(p),p.next||c.push(null),h&&o.defineSkip(p.start),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(c),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),h=p,p=p.next}for(p=r;++m<l.length;)l[m][0]==="exit"&&l[m-1][0]==="enter"&&l[m][1].type===l[m-1][1].type&&l[m][1].start.line!==l[m][1].end.line&&(w=m+1,C.push(w),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(o.events=[],p?(p._tokenizer=void 0,p.previous=void 0):C.pop(),m=C.length;m--;){const k=l.slice(C[m],C[m+1]),A=i.pop();s.push([A,A+k.length-1]),e.splice(A,2,k)}for(s.reverse(),m=-1;++m<s.length;)u[y+s[m][0]]=y+s[m][1],y+=s[m][1]-s[m][0]-1;return u}const Mp={resolve:zp,tokenize:Np},Ap={partial:!0,tokenize:Ep};function zp(e){return Fu(e),e}function Np(e,t){let r;return n;function n(l){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),a(l)}function a(l){return l===null?i(l):oe(l)?e.check(Ap,o,i)(l):(e.consume(l),a)}function i(l){return e.exit("chunkContent"),e.exit("content"),t(l)}function o(l){return e.consume(l),e.exit("chunkContent"),r.next=e.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,a}}function Ep(e,t,r){const n=this;return a;function a(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),ve(e,i,"linePrefix")}function i(o){if(o===null||oe(o))return r(o);const l=n.events[n.events.length-1];return!n.parser.constructs.disable.null.includes("codeIndented")&&l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?t(o):e.interrupt(n.parser.constructs.flow,r,t)(o)}}function Ou(e,t,r,n,a,i,o,l,s){const u=s||Number.POSITIVE_INFINITY;let c=0;return h;function h(k){return k===60?(e.enter(n),e.enter(a),e.enter(i),e.consume(k),e.exit(i),m):k===null||k===32||k===41||Wn(k)?r(k):(e.enter(n),e.enter(o),e.enter(l),e.enter("chunkString",{contentType:"string"}),w(k))}function m(k){return k===62?(e.enter(i),e.consume(k),e.exit(i),e.exit(a),e.exit(n),t):(e.enter(l),e.enter("chunkString",{contentType:"string"}),p(k))}function p(k){return k===62?(e.exit("chunkString"),e.exit(l),m(k)):k===null||k===60||oe(k)?r(k):(e.consume(k),k===92?y:p)}function y(k){return k===60||k===62||k===92?(e.consume(k),p):p(k)}function w(k){return!c&&(k===null||k===41||ze(k))?(e.exit("chunkString"),e.exit(l),e.exit(o),e.exit(n),t(k)):c<u&&k===40?(e.consume(k),c++,w):k===41?(e.consume(k),c--,w):k===null||k===32||k===40||Wn(k)?r(k):(e.consume(k),k===92?C:w)}function C(k){return k===40||k===41||k===92?(e.consume(k),w):w(k)}}function ju(e,t,r,n,a,i){const o=this;let l=0,s;return u;function u(p){return e.enter(n),e.enter(a),e.consume(p),e.exit(a),e.enter(i),c}function c(p){return l>999||p===null||p===91||p===93&&!s||p===94&&!l&&"_hiddenFootnoteSupport"in o.parser.constructs?r(p):p===93?(e.exit(i),e.enter(a),e.consume(p),e.exit(a),e.exit(n),t):oe(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),h(p))}function h(p){return p===null||p===91||p===93||oe(p)||l++>999?(e.exit("chunkString"),c(p)):(e.consume(p),s||(s=!be(p)),p===92?m:h)}function m(p){return p===91||p===92||p===93?(e.consume(p),l++,h):h(p)}}function _u(e,t,r,n,a,i){let o;return l;function l(m){return m===34||m===39||m===40?(e.enter(n),e.enter(a),e.consume(m),e.exit(a),o=m===40?41:m,s):r(m)}function s(m){return m===o?(e.enter(a),e.consume(m),e.exit(a),e.exit(n),t):(e.enter(i),u(m))}function u(m){return m===o?(e.exit(i),s(o)):m===null?r(m):oe(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),ve(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(m))}function c(m){return m===o||m===null||oe(m)?(e.exit("chunkString"),u(m)):(e.consume(m),m===92?h:c)}function h(m){return m===o||m===92?(e.consume(m),c):c(m)}}function en(e,t){let r;return n;function n(a){return oe(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),r=!0,n):be(a)?ve(e,n,r?"linePrefix":"lineSuffix")(a):t(a)}}const Dp={name:"definition",tokenize:Lp},Ip={partial:!0,tokenize:Rp};function Lp(e,t,r){const n=this;let a;return i;function i(p){return e.enter("definition"),o(p)}function o(p){return ju.call(n,e,l,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function l(p){return a=yt(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),s):r(p)}function s(p){return ze(p)?en(e,u)(p):u(p)}function u(p){return Ou(e,c,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function c(p){return e.attempt(Ip,h,h)(p)}function h(p){return be(p)?ve(e,m,"whitespace")(p):m(p)}function m(p){return p===null||oe(p)?(e.exit("definition"),n.parser.defined.push(a),t(p)):r(p)}}function Rp(e,t,r){return n;function n(l){return ze(l)?en(e,a)(l):r(l)}function a(l){return _u(e,i,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(l)}function i(l){return be(l)?ve(e,o,"whitespace")(l):o(l)}function o(l){return l===null||oe(l)?t(l):r(l)}}const Pp={name:"hardBreakEscape",tokenize:Bp};function Bp(e,t,r){return n;function n(i){return e.enter("hardBreakEscape"),e.consume(i),a}function a(i){return oe(i)?(e.exit("hardBreakEscape"),t(i)):r(i)}}const Fp={name:"headingAtx",resolve:Op,tokenize:jp};function Op(e,t){let r=e.length-2,n=3,a,i;return e[n][1].type==="whitespace"&&(n+=2),r-2>n&&e[r][1].type==="whitespace"&&(r-=2),e[r][1].type==="atxHeadingSequence"&&(n===r-1||r-4>n&&e[r-2][1].type==="whitespace")&&(r-=n+1===r?2:4),r>n&&(a={type:"atxHeadingText",start:e[n][1].start,end:e[r][1].end},i={type:"chunkText",start:e[n][1].start,end:e[r][1].end,contentType:"text"},ct(e,n,r-n+1,[["enter",a,t],["enter",i,t],["exit",i,t],["exit",a,t]])),e}function jp(e,t,r){let n=0;return a;function a(c){return e.enter("atxHeading"),i(c)}function i(c){return e.enter("atxHeadingSequence"),o(c)}function o(c){return c===35&&n++<6?(e.consume(c),o):c===null||ze(c)?(e.exit("atxHeadingSequence"),l(c)):r(c)}function l(c){return c===35?(e.enter("atxHeadingSequence"),s(c)):c===null||oe(c)?(e.exit("atxHeading"),t(c)):be(c)?ve(e,l,"whitespace")(c):(e.enter("atxHeadingText"),u(c))}function s(c){return c===35?(e.consume(c),s):(e.exit("atxHeadingSequence"),l(c))}function u(c){return c===null||c===35||ze(c)?(e.exit("atxHeadingText"),l(c)):(e.consume(c),u)}}const _p=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Fo=["pre","script","style","textarea"],qp={concrete:!0,name:"htmlFlow",resolveTo:$p,tokenize:Up},Hp={partial:!0,tokenize:Wp},Vp={partial:!0,tokenize:Gp};function $p(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function Up(e,t,r){const n=this;let a,i,o,l,s;return u;function u(z){return c(z)}function c(z){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(z),h}function h(z){return z===33?(e.consume(z),m):z===47?(e.consume(z),i=!0,w):z===63?(e.consume(z),a=3,n.interrupt?t:M):Qe(z)?(e.consume(z),o=String.fromCharCode(z),C):r(z)}function m(z){return z===45?(e.consume(z),a=2,p):z===91?(e.consume(z),a=5,l=0,y):Qe(z)?(e.consume(z),a=4,n.interrupt?t:M):r(z)}function p(z){return z===45?(e.consume(z),n.interrupt?t:M):r(z)}function y(z){const xe="CDATA[";return z===xe.charCodeAt(l++)?(e.consume(z),l===xe.length?n.interrupt?t:G:y):r(z)}function w(z){return Qe(z)?(e.consume(z),o=String.fromCharCode(z),C):r(z)}function C(z){if(z===null||z===47||z===62||ze(z)){const xe=z===47,Le=o.toLowerCase();return!xe&&!i&&Fo.includes(Le)?(a=1,n.interrupt?t(z):G(z)):_p.includes(o.toLowerCase())?(a=6,xe?(e.consume(z),k):n.interrupt?t(z):G(z)):(a=7,n.interrupt&&!n.parser.lazy[n.now().line]?r(z):i?A(z):E(z))}return z===45||Xe(z)?(e.consume(z),o+=String.fromCharCode(z),C):r(z)}function k(z){return z===62?(e.consume(z),n.interrupt?t:G):r(z)}function A(z){return be(z)?(e.consume(z),A):L(z)}function E(z){return z===47?(e.consume(z),L):z===58||z===95||Qe(z)?(e.consume(z),B):be(z)?(e.consume(z),E):L(z)}function B(z){return z===45||z===46||z===58||z===95||Xe(z)?(e.consume(z),B):F(z)}function F(z){return z===61?(e.consume(z),D):be(z)?(e.consume(z),F):E(z)}function D(z){return z===null||z===60||z===61||z===62||z===96?r(z):z===34||z===39?(e.consume(z),s=z,_):be(z)?(e.consume(z),D):O(z)}function _(z){return z===s?(e.consume(z),s=null,H):z===null||oe(z)?r(z):(e.consume(z),_)}function O(z){return z===null||z===34||z===39||z===47||z===60||z===61||z===62||z===96||ze(z)?F(z):(e.consume(z),O)}function H(z){return z===47||z===62||be(z)?E(z):r(z)}function L(z){return z===62?(e.consume(z),K):r(z)}function K(z){return z===null||oe(z)?G(z):be(z)?(e.consume(z),K):r(z)}function G(z){return z===45&&a===2?(e.consume(z),le):z===60&&a===1?(e.consume(z),pe):z===62&&a===4?(e.consume(z),Me):z===63&&a===3?(e.consume(z),M):z===93&&a===5?(e.consume(z),Ee):oe(z)&&(a===6||a===7)?(e.exit("htmlFlowData"),e.check(Hp,ke,ce)(z)):z===null||oe(z)?(e.exit("htmlFlowData"),ce(z)):(e.consume(z),G)}function ce(z){return e.check(Vp,J,ke)(z)}function J(z){return e.enter("lineEnding"),e.consume(z),e.exit("lineEnding"),V}function V(z){return z===null||oe(z)?ce(z):(e.enter("htmlFlowData"),G(z))}function le(z){return z===45?(e.consume(z),M):G(z)}function pe(z){return z===47?(e.consume(z),o="",Q):G(z)}function Q(z){if(z===62){const xe=o.toLowerCase();return Fo.includes(xe)?(e.consume(z),Me):G(z)}return Qe(z)&&o.length<8?(e.consume(z),o+=String.fromCharCode(z),Q):G(z)}function Ee(z){return z===93?(e.consume(z),M):G(z)}function M(z){return z===62?(e.consume(z),Me):z===45&&a===2?(e.consume(z),M):G(z)}function Me(z){return z===null||oe(z)?(e.exit("htmlFlowData"),ke(z)):(e.consume(z),Me)}function ke(z){return e.exit("htmlFlow"),t(z)}}function Gp(e,t,r){const n=this;return a;function a(o){return oe(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):r(o)}function i(o){return n.parser.lazy[n.now().line]?r(o):t(o)}}function Wp(e,t,r){return n;function n(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),e.attempt(dn,t,r)}}const Xp={name:"htmlText",tokenize:Yp};function Yp(e,t,r){const n=this;let a,i,o;return l;function l(M){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(M),s}function s(M){return M===33?(e.consume(M),u):M===47?(e.consume(M),F):M===63?(e.consume(M),E):Qe(M)?(e.consume(M),O):r(M)}function u(M){return M===45?(e.consume(M),c):M===91?(e.consume(M),i=0,y):Qe(M)?(e.consume(M),A):r(M)}function c(M){return M===45?(e.consume(M),p):r(M)}function h(M){return M===null?r(M):M===45?(e.consume(M),m):oe(M)?(o=h,pe(M)):(e.consume(M),h)}function m(M){return M===45?(e.consume(M),p):h(M)}function p(M){return M===62?le(M):M===45?m(M):h(M)}function y(M){const Me="CDATA[";return M===Me.charCodeAt(i++)?(e.consume(M),i===Me.length?w:y):r(M)}function w(M){return M===null?r(M):M===93?(e.consume(M),C):oe(M)?(o=w,pe(M)):(e.consume(M),w)}function C(M){return M===93?(e.consume(M),k):w(M)}function k(M){return M===62?le(M):M===93?(e.consume(M),k):w(M)}function A(M){return M===null||M===62?le(M):oe(M)?(o=A,pe(M)):(e.consume(M),A)}function E(M){return M===null?r(M):M===63?(e.consume(M),B):oe(M)?(o=E,pe(M)):(e.consume(M),E)}function B(M){return M===62?le(M):E(M)}function F(M){return Qe(M)?(e.consume(M),D):r(M)}function D(M){return M===45||Xe(M)?(e.consume(M),D):_(M)}function _(M){return oe(M)?(o=_,pe(M)):be(M)?(e.consume(M),_):le(M)}function O(M){return M===45||Xe(M)?(e.consume(M),O):M===47||M===62||ze(M)?H(M):r(M)}function H(M){return M===47?(e.consume(M),le):M===58||M===95||Qe(M)?(e.consume(M),L):oe(M)?(o=H,pe(M)):be(M)?(e.consume(M),H):le(M)}function L(M){return M===45||M===46||M===58||M===95||Xe(M)?(e.consume(M),L):K(M)}function K(M){return M===61?(e.consume(M),G):oe(M)?(o=K,pe(M)):be(M)?(e.consume(M),K):H(M)}function G(M){return M===null||M===60||M===61||M===62||M===96?r(M):M===34||M===39?(e.consume(M),a=M,ce):oe(M)?(o=G,pe(M)):be(M)?(e.consume(M),G):(e.consume(M),J)}function ce(M){return M===a?(e.consume(M),a=void 0,V):M===null?r(M):oe(M)?(o=ce,pe(M)):(e.consume(M),ce)}function J(M){return M===null||M===34||M===39||M===60||M===61||M===96?r(M):M===47||M===62||ze(M)?H(M):(e.consume(M),J)}function V(M){return M===47||M===62||ze(M)?H(M):r(M)}function le(M){return M===62?(e.consume(M),e.exit("htmlTextData"),e.exit("htmlText"),t):r(M)}function pe(M){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(M),e.exit("lineEnding"),Q}function Q(M){return be(M)?ve(e,Ee,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(M):Ee(M)}function Ee(M){return e.enter("htmlTextData"),o(M)}}const o0={name:"labelEnd",resolveAll:Jp,resolveTo:e5,tokenize:t5},Kp={tokenize:r5},Zp={tokenize:n5},Qp={tokenize:a5};function Jp(e){let t=-1;const r=[];for(;++t<e.length;){const n=e[t][1];if(r.push(e[t]),n.type==="labelImage"||n.type==="labelLink"||n.type==="labelEnd"){const a=n.type==="labelImage"?4:2;n.type="data",t+=a}}return e.length!==r.length&&ct(e,0,e.length,r),e}function e5(e,t){let r=e.length,n=0,a,i,o,l;for(;r--;)if(a=e[r][1],i){if(a.type==="link"||a.type==="labelLink"&&a._inactive)break;e[r][0]==="enter"&&a.type==="labelLink"&&(a._inactive=!0)}else if(o){if(e[r][0]==="enter"&&(a.type==="labelImage"||a.type==="labelLink")&&!a._balanced&&(i=r,a.type!=="labelLink")){n=2;break}}else a.type==="labelEnd"&&(o=r);const s={type:e[i][1].type==="labelLink"?"link":"image",start:{...e[i][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[i][1].start},end:{...e[o][1].end}},c={type:"labelText",start:{...e[i+n+2][1].end},end:{...e[o-2][1].start}};return l=[["enter",s,t],["enter",u,t]],l=mt(l,e.slice(i+1,i+n+3)),l=mt(l,[["enter",c,t]]),l=mt(l,ua(t.parser.constructs.insideSpan.null,e.slice(i+n+4,o-3),t)),l=mt(l,[["exit",c,t],e[o-2],e[o-1],["exit",u,t]]),l=mt(l,e.slice(o+1)),l=mt(l,[["exit",s,t]]),ct(e,i,e.length,l),e}function t5(e,t,r){const n=this;let a=n.events.length,i,o;for(;a--;)if((n.events[a][1].type==="labelImage"||n.events[a][1].type==="labelLink")&&!n.events[a][1]._balanced){i=n.events[a][1];break}return l;function l(m){return i?i._inactive?h(m):(o=n.parser.defined.includes(yt(n.sliceSerialize({start:i.end,end:n.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(m),e.exit("labelMarker"),e.exit("labelEnd"),s):r(m)}function s(m){return m===40?e.attempt(Kp,c,o?c:h)(m):m===91?e.attempt(Zp,c,o?u:h)(m):o?c(m):h(m)}function u(m){return e.attempt(Qp,c,h)(m)}function c(m){return t(m)}function h(m){return i._balanced=!0,r(m)}}function r5(e,t,r){return n;function n(h){return e.enter("resource"),e.enter("resourceMarker"),e.consume(h),e.exit("resourceMarker"),a}function a(h){return ze(h)?en(e,i)(h):i(h)}function i(h){return h===41?c(h):Ou(e,o,l,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(h)}function o(h){return ze(h)?en(e,s)(h):c(h)}function l(h){return r(h)}function s(h){return h===34||h===39||h===40?_u(e,u,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(h):c(h)}function u(h){return ze(h)?en(e,c)(h):c(h)}function c(h){return h===41?(e.enter("resourceMarker"),e.consume(h),e.exit("resourceMarker"),e.exit("resource"),t):r(h)}}function n5(e,t,r){const n=this;return a;function a(l){return ju.call(n,e,i,o,"reference","referenceMarker","referenceString")(l)}function i(l){return n.parser.defined.includes(yt(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)))?t(l):r(l)}function o(l){return r(l)}}function a5(e,t,r){return n;function n(i){return e.enter("reference"),e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),a}function a(i){return i===93?(e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),e.exit("reference"),t):r(i)}}const i5={name:"labelStartImage",resolveAll:o0.resolveAll,tokenize:o5};function o5(e,t,r){const n=this;return a;function a(l){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(l),e.exit("labelImageMarker"),i}function i(l){return l===91?(e.enter("labelMarker"),e.consume(l),e.exit("labelMarker"),e.exit("labelImage"),o):r(l)}function o(l){return l===94&&"_hiddenFootnoteSupport"in n.parser.constructs?r(l):t(l)}}const l5={name:"labelStartLink",resolveAll:o0.resolveAll,tokenize:s5};function s5(e,t,r){const n=this;return a;function a(o){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelLink"),i}function i(o){return o===94&&"_hiddenFootnoteSupport"in n.parser.constructs?r(o):t(o)}}const Ba={name:"lineEnding",tokenize:u5};function u5(e,t){return r;function r(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),ve(e,t,"linePrefix")}}const Hn={name:"thematicBreak",tokenize:c5};function c5(e,t,r){let n=0,a;return i;function i(u){return e.enter("thematicBreak"),o(u)}function o(u){return a=u,l(u)}function l(u){return u===a?(e.enter("thematicBreakSequence"),s(u)):n>=3&&(u===null||oe(u))?(e.exit("thematicBreak"),t(u)):r(u)}function s(u){return u===a?(e.consume(u),n++,s):(e.exit("thematicBreakSequence"),be(u)?ve(e,l,"whitespace")(u):l(u))}}const rt={continuation:{tokenize:f5},exit:g5,name:"list",tokenize:m5},h5={partial:!0,tokenize:v5},d5={partial:!0,tokenize:p5};function m5(e,t,r){const n=this,a=n.events[n.events.length-1];let i=a&&a[1].type==="linePrefix"?a[2].sliceSerialize(a[1],!0).length:0,o=0;return l;function l(p){const y=n.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(y==="listUnordered"?!n.containerState.marker||p===n.containerState.marker:ki(p)){if(n.containerState.type||(n.containerState.type=y,e.enter(y,{_container:!0})),y==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(Hn,r,u)(p):u(p);if(!n.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(p)}return r(p)}function s(p){return ki(p)&&++o<10?(e.consume(p),s):(!n.interrupt||o<2)&&(n.containerState.marker?p===n.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),u(p)):r(p)}function u(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),n.containerState.marker=n.containerState.marker||p,e.check(dn,n.interrupt?r:c,e.attempt(h5,m,h))}function c(p){return n.containerState.initialBlankLine=!0,i++,m(p)}function h(p){return be(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),m):r(p)}function m(p){return n.containerState.size=i+n.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(p)}}function f5(e,t,r){const n=this;return n.containerState._closeFlow=void 0,e.check(dn,a,i);function a(l){return n.containerState.furtherBlankLines=n.containerState.furtherBlankLines||n.containerState.initialBlankLine,ve(e,t,"listItemIndent",n.containerState.size+1)(l)}function i(l){return n.containerState.furtherBlankLines||!be(l)?(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,o(l)):(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,e.attempt(d5,t,o)(l))}function o(l){return n.containerState._closeFlow=!0,n.interrupt=void 0,ve(e,e.attempt(rt,t,r),"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l)}}function p5(e,t,r){const n=this;return ve(e,a,"listItemIndent",n.containerState.size+1);function a(i){const o=n.events[n.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===n.containerState.size?t(i):r(i)}}function g5(e){e.exit(this.containerState.type)}function v5(e,t,r){const n=this;return ve(e,a,"listItemPrefixWhitespace",n.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function a(i){const o=n.events[n.events.length-1];return!be(i)&&o&&o[1].type==="listItemPrefixWhitespace"?t(i):r(i)}}const Oo={name:"setextUnderline",resolveTo:b5,tokenize:y5};function b5(e,t){let r=e.length,n,a,i;for(;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){n=r;break}e[r][1].type==="paragraph"&&(a=r)}else e[r][1].type==="content"&&e.splice(r,1),!i&&e[r][1].type==="definition"&&(i=r);const o={type:"setextHeading",start:{...e[n][1].start},end:{...e[e.length-1][1].end}};return e[a][1].type="setextHeadingText",i?(e.splice(a,0,["enter",o,t]),e.splice(i+1,0,["exit",e[n][1],t]),e[n][1].end={...e[i][1].end}):e[n][1]=o,e.push(["exit",o,t]),e}function y5(e,t,r){const n=this;let a;return i;function i(u){let c=n.events.length,h;for(;c--;)if(n.events[c][1].type!=="lineEnding"&&n.events[c][1].type!=="linePrefix"&&n.events[c][1].type!=="content"){h=n.events[c][1].type==="paragraph";break}return!n.parser.lazy[n.now().line]&&(n.interrupt||h)?(e.enter("setextHeadingLine"),a=u,o(u)):r(u)}function o(u){return e.enter("setextHeadingLineSequence"),l(u)}function l(u){return u===a?(e.consume(u),l):(e.exit("setextHeadingLineSequence"),be(u)?ve(e,s,"lineSuffix")(u):s(u))}function s(u){return u===null||oe(u)?(e.exit("setextHeadingLine"),t(u)):r(u)}}const x5={tokenize:w5};function w5(e){const t=this,r=e.attempt(dn,n,e.attempt(this.parser.constructs.flowInitial,a,ve(e,e.attempt(this.parser.constructs.flow,a,e.attempt(Mp,a)),"linePrefix")));return r;function n(i){if(i===null){e.consume(i);return}return e.enter("lineEndingBlank"),e.consume(i),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}function a(i){if(i===null){e.consume(i);return}return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t.currentConstruct=void 0,r}}const k5={resolveAll:Hu()},S5=qu("string"),C5=qu("text");function qu(e){return{resolveAll:Hu(e==="text"?T5:void 0),tokenize:t};function t(r){const n=this,a=this.parser.constructs[e],i=r.attempt(a,o,l);return o;function o(c){return u(c)?i(c):l(c)}function l(c){if(c===null){r.consume(c);return}return r.enter("data"),r.consume(c),s}function s(c){return u(c)?(r.exit("data"),i(c)):(r.consume(c),s)}function u(c){if(c===null)return!0;const h=a[c];let m=-1;if(h)for(;++m<h.length;){const p=h[m];if(!p.previous||p.previous.call(n,n.previous))return!0}return!1}}}function Hu(e){return t;function t(r,n){let a=-1,i;for(;++a<=r.length;)i===void 0?r[a]&&r[a][1].type==="data"&&(i=a,a++):(!r[a]||r[a][1].type!=="data")&&(a!==i+2&&(r[i][1].end=r[a-1][1].end,r.splice(i+2,a-i-2),a=i+2),i=void 0);return e?e(r,n):r}}function T5(e,t){let r=0;for(;++r<=e.length;)if((r===e.length||e[r][1].type==="lineEnding")&&e[r-1][1].type==="data"){const n=e[r-1][1],a=t.sliceStream(n);let i=a.length,o=-1,l=0,s;for(;i--;){const u=a[i];if(typeof u=="string"){for(o=u.length;u.charCodeAt(o-1)===32;)l++,o--;if(o)break;o=-1}else if(u===-2)s=!0,l++;else if(u!==-1){i++;break}}if(t._contentTypeTextTrailing&&r===e.length&&(l=0),l){const u={type:r===e.length||s||l<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:i?o:n.start._bufferIndex+o,_index:n.start._index+i,line:n.end.line,column:n.end.column-l,offset:n.end.offset-l},end:{...n.end}};n.end={...u.start},n.start.offset===n.end.offset?Object.assign(n,u):(e.splice(r,0,["enter",u,t],["exit",u,t]),r+=2)}r++}return e}const M5={42:rt,43:rt,45:rt,48:rt,49:rt,50:rt,51:rt,52:rt,53:rt,54:rt,55:rt,56:rt,57:rt,62:Ru},A5={91:Dp},z5={[-2]:Pa,[-1]:Pa,32:Pa},N5={35:Fp,42:Hn,45:[Oo,Hn],60:qp,61:Oo,95:Hn,96:Bo,126:Bo},E5={38:Bu,92:Pu},D5={[-5]:Ba,[-4]:Ba,[-3]:Ba,33:i5,38:Bu,42:Si,60:[lp,Xp],91:l5,92:[Pp,Pu],93:o0,95:Si,96:xp},I5={null:[Si,k5]},L5={null:[42,95]},R5={null:[]},P5=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:L5,contentInitial:A5,disable:R5,document:M5,flow:N5,flowInitial:z5,insideSpan:I5,string:E5,text:D5},Symbol.toStringTag,{value:"Module"}));function B5(e,t,r){let n={_bufferIndex:-1,_index:0,line:r&&r.line||1,column:r&&r.column||1,offset:r&&r.offset||0};const a={},i=[];let o=[],l=[];const s={attempt:_(F),check:_(D),consume:A,enter:E,exit:B,interrupt:_(D,{interrupt:!0})},u={code:null,containerState:{},defineSkip:w,events:[],now:y,parser:e,previous:null,sliceSerialize:m,sliceStream:p,write:h};let c=t.tokenize.call(u,s);return t.resolveAll&&i.push(t),u;function h(K){return o=mt(o,K),C(),o[o.length-1]!==null?[]:(O(t,0),u.events=ua(i,u.events,u),u.events)}function m(K,G){return O5(p(K),G)}function p(K){return F5(o,K)}function y(){const{_bufferIndex:K,_index:G,line:ce,column:J,offset:V}=n;return{_bufferIndex:K,_index:G,line:ce,column:J,offset:V}}function w(K){a[K.line]=K.column,L()}function C(){let K;for(;n._index<o.length;){const G=o[n._index];if(typeof G=="string")for(K=n._index,n._bufferIndex<0&&(n._bufferIndex=0);n._index===K&&n._bufferIndex<G.length;)k(G.charCodeAt(n._bufferIndex));else k(G)}}function k(K){c=c(K)}function A(K){oe(K)?(n.line++,n.column=1,n.offset+=K===-3?2:1,L()):K!==-1&&(n.column++,n.offset++),n._bufferIndex<0?n._index++:(n._bufferIndex++,n._bufferIndex===o[n._index].length&&(n._bufferIndex=-1,n._index++)),u.previous=K}function E(K,G){const ce=G||{};return ce.type=K,ce.start=y(),u.events.push(["enter",ce,u]),l.push(ce),ce}function B(K){const G=l.pop();return G.end=y(),u.events.push(["exit",G,u]),G}function F(K,G){O(K,G.from)}function D(K,G){G.restore()}function _(K,G){return ce;function ce(J,V,le){let pe,Q,Ee,M;return Array.isArray(J)?ke(J):"tokenize"in J?ke([J]):Me(J);function Me(Te){return ye;function ye(Pe){const _e=Pe!==null&&Te[Pe],qe=Pe!==null&&Te.null,Ke=[...Array.isArray(_e)?_e:_e?[_e]:[],...Array.isArray(qe)?qe:qe?[qe]:[]];return ke(Ke)(Pe)}}function ke(Te){return pe=Te,Q=0,Te.length===0?le:z(Te[Q])}function z(Te){return ye;function ye(Pe){return M=H(),Ee=Te,Te.partial||(u.currentConstruct=Te),Te.name&&u.parser.constructs.disable.null.includes(Te.name)?Le():Te.tokenize.call(G?Object.assign(Object.create(u),G):u,s,xe,Le)(Pe)}}function xe(Te){return K(Ee,M),V}function Le(Te){return M.restore(),++Q<pe.length?z(pe[Q]):le}}}function O(K,G){K.resolveAll&&!i.includes(K)&&i.push(K),K.resolve&&ct(u.events,G,u.events.length-G,K.resolve(u.events.slice(G),u)),K.resolveTo&&(u.events=K.resolveTo(u.events,u))}function H(){const K=y(),G=u.previous,ce=u.currentConstruct,J=u.events.length,V=Array.from(l);return{from:J,restore:le};function le(){n=K,u.previous=G,u.currentConstruct=ce,u.events.length=J,l=V,L()}}function L(){n.line in a&&n.column<2&&(n.column=a[n.line],n.offset+=a[n.line]-1)}}function F5(e,t){const r=t.start._index,n=t.start._bufferIndex,a=t.end._index,i=t.end._bufferIndex;let o;if(r===a)o=[e[r].slice(n,i)];else{if(o=e.slice(r,a),n>-1){const l=o[0];typeof l=="string"?o[0]=l.slice(n):o.shift()}i>0&&o.push(e[a].slice(0,i))}return o}function O5(e,t){let r=-1;const n=[];let a;for(;++r<e.length;){const i=e[r];let o;if(typeof i=="string")o=i;else switch(i){case-5:{o="\r";break}case-4:{o=`
72
+ `;break}case-3:{o=`\r
73
+ `;break}case-2:{o=t?" ":" ";break}case-1:{if(!t&&a)continue;o=" ";break}default:o=String.fromCharCode(i)}a=i===-2,n.push(o)}return n.join("")}function j5(e){const n={constructs:Iu([P5,...(e||{}).extensions||[]]),content:a(ep),defined:[],document:a(rp),flow:a(x5),lazy:{},string:a(S5),text:a(C5)};return n;function a(i){return o;function o(l){return B5(n,i,l)}}}function _5(e){for(;!Fu(e););return e}const jo=/[\0\t\n\r]/g;function q5(){let e=1,t="",r=!0,n;return a;function a(i,o,l){const s=[];let u,c,h,m,p;for(i=t+(typeof i=="string"?i.toString():new TextDecoder(o||void 0).decode(i)),h=0,t="",r&&(i.charCodeAt(0)===65279&&h++,r=void 0);h<i.length;){if(jo.lastIndex=h,u=jo.exec(i),m=u&&u.index!==void 0?u.index:i.length,p=i.charCodeAt(m),!u){t=i.slice(h);break}if(p===10&&h===m&&n)s.push(-3),n=void 0;else switch(n&&(s.push(-5),n=void 0),h<m&&(s.push(i.slice(h,m)),e+=m-h),p){case 0:{s.push(65533),e++;break}case 9:{for(c=Math.ceil(e/4)*4,s.push(-2);e++<c;)s.push(-1);break}case 10:{s.push(-4),e=1;break}default:n=!0,e=1}h=m+1}return l&&(n&&s.push(-5),t&&s.push(t),s.push(null)),s}}const H5=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function V5(e){return e.replace(H5,$5)}function $5(e,t,r){if(t)return t;if(r.charCodeAt(0)===35){const a=r.charCodeAt(1),i=a===120||a===88;return Lu(r.slice(i?2:1),i?16:10)}return i0(r)||e}const Vu={}.hasOwnProperty;function U5(e,t,r){return typeof t!="string"&&(r=t,t=void 0),G5(r)(_5(j5(r).document().write(q5()(e,t,!0))))}function G5(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:i(ar),autolinkProtocol:H,autolinkEmail:H,atxHeading:i(We),blockQuote:i(qe),characterEscape:H,characterReference:H,codeFenced:i(Ke),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:i(Ke,o),codeText:i(tt,o),codeTextData:H,data:H,codeFlowValue:H,definition:i(Dt),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:i(X),hardBreakEscape:i($r),hardBreakTrailing:i($r),htmlFlow:i(yr,o),htmlFlowData:H,htmlText:i(yr,o),htmlTextData:H,image:i(xr),label:o,link:i(ar),listItem:i(M1),listItemValue:m,listOrdered:i(O0,h),listUnordered:i(O0),paragraph:i(A1),reference:z,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:i(We),strong:i(z1),thematicBreak:i(E1)},exit:{atxHeading:s(),atxHeadingSequence:F,autolink:s(),autolinkEmail:_e,autolinkProtocol:Pe,blockQuote:s(),characterEscapeValue:L,characterReferenceMarkerHexadecimal:Le,characterReferenceMarkerNumeric:Le,characterReferenceValue:Te,characterReference:ye,codeFenced:s(C),codeFencedFence:w,codeFencedFenceInfo:p,codeFencedFenceMeta:y,codeFlowValue:L,codeIndented:s(k),codeText:s(V),codeTextData:L,data:L,definition:s(),definitionDestinationString:B,definitionLabelString:A,definitionTitleString:E,emphasis:s(),hardBreakEscape:s(G),hardBreakTrailing:s(G),htmlFlow:s(ce),htmlFlowData:L,htmlText:s(J),htmlTextData:L,image:s(pe),label:Ee,labelText:Q,lineEnding:K,link:s(le),listItem:s(),listOrdered:s(),listUnordered:s(),paragraph:s(),referenceString:xe,resourceDestinationString:M,resourceTitleString:Me,resource:ke,setextHeading:s(O),setextHeadingLineSequence:_,setextHeadingText:D,strong:s(),thematicBreak:s()}};$u(t,(e||{}).mdastExtensions||[]);const r={};return n;function n(j){let ee={type:"root",children:[]};const de={stack:[ee],tokenStack:[],config:t,enter:l,exit:u,buffer:o,resume:c,data:r},we=[];let Ae=-1;for(;++Ae<j.length;)if(j[Ae][1].type==="listOrdered"||j[Ae][1].type==="listUnordered")if(j[Ae][0]==="enter")we.push(Ae);else{const vt=we.pop();Ae=a(j,vt,Ae)}for(Ae=-1;++Ae<j.length;){const vt=t[j[Ae][0]];Vu.call(vt,j[Ae][1].type)&&vt[j[Ae][1].type].call(Object.assign({sliceSerialize:j[Ae][2].sliceSerialize},de),j[Ae][1])}if(de.tokenStack.length>0){const vt=de.tokenStack[de.tokenStack.length-1];(vt[1]||_o).call(de,void 0,vt[0])}for(ee.position={start:Wt(j.length>0?j[0][1].start:{line:1,column:1,offset:0}),end:Wt(j.length>0?j[j.length-2][1].end:{line:1,column:1,offset:0})},Ae=-1;++Ae<t.transforms.length;)ee=t.transforms[Ae](ee)||ee;return ee}function a(j,ee,de){let we=ee-1,Ae=-1,vt=!1,ir,It,Ur,Gr;for(;++we<=de;){const lt=j[we];switch(lt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{lt[0]==="enter"?Ae++:Ae--,Gr=void 0;break}case"lineEndingBlank":{lt[0]==="enter"&&(ir&&!Gr&&!Ae&&!Ur&&(Ur=we),Gr=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Gr=void 0}if(!Ae&&lt[0]==="enter"&&lt[1].type==="listItemPrefix"||Ae===-1&&lt[0]==="exit"&&(lt[1].type==="listUnordered"||lt[1].type==="listOrdered")){if(ir){let wr=we;for(It=void 0;wr--;){const Lt=j[wr];if(Lt[1].type==="lineEnding"||Lt[1].type==="lineEndingBlank"){if(Lt[0]==="exit")continue;It&&(j[It][1].type="lineEndingBlank",vt=!0),Lt[1].type="lineEnding",It=wr}else if(!(Lt[1].type==="linePrefix"||Lt[1].type==="blockQuotePrefix"||Lt[1].type==="blockQuotePrefixWhitespace"||Lt[1].type==="blockQuoteMarker"||Lt[1].type==="listItemIndent"))break}Ur&&(!It||Ur<It)&&(ir._spread=!0),ir.end=Object.assign({},It?j[It][1].start:lt[1].end),j.splice(It||we,0,["exit",ir,lt[2]]),we++,de++}if(lt[1].type==="listItemPrefix"){const wr={type:"listItem",_spread:!1,start:Object.assign({},lt[1].start),end:void 0};ir=wr,j.splice(we,0,["enter",wr,lt[2]]),we++,de++,Ur=void 0,Gr=!0}}}return j[ee][1]._spread=vt,de}function i(j,ee){return de;function de(we){l.call(this,j(we),we),ee&&ee.call(this,we)}}function o(){this.stack.push({type:"fragment",children:[]})}function l(j,ee,de){this.stack[this.stack.length-1].children.push(j),this.stack.push(j),this.tokenStack.push([ee,de||void 0]),j.position={start:Wt(ee.start),end:void 0}}function s(j){return ee;function ee(de){j&&j.call(this,de),u.call(this,de)}}function u(j,ee){const de=this.stack.pop(),we=this.tokenStack.pop();if(we)we[0].type!==j.type&&(ee?ee.call(this,j,we[0]):(we[1]||_o).call(this,j,we[0]));else throw new Error("Cannot close `"+j.type+"` ("+Jr({start:j.start,end:j.end})+"): it’s not open");de.position.end=Wt(j.end)}function c(){return a0(this.stack.pop())}function h(){this.data.expectingFirstListItemValue=!0}function m(j){if(this.data.expectingFirstListItemValue){const ee=this.stack[this.stack.length-2];ee.start=Number.parseInt(this.sliceSerialize(j),10),this.data.expectingFirstListItemValue=void 0}}function p(){const j=this.resume(),ee=this.stack[this.stack.length-1];ee.lang=j}function y(){const j=this.resume(),ee=this.stack[this.stack.length-1];ee.meta=j}function w(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function C(){const j=this.resume(),ee=this.stack[this.stack.length-1];ee.value=j.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function k(){const j=this.resume(),ee=this.stack[this.stack.length-1];ee.value=j.replace(/(\r?\n|\r)$/g,"")}function A(j){const ee=this.resume(),de=this.stack[this.stack.length-1];de.label=ee,de.identifier=yt(this.sliceSerialize(j)).toLowerCase()}function E(){const j=this.resume(),ee=this.stack[this.stack.length-1];ee.title=j}function B(){const j=this.resume(),ee=this.stack[this.stack.length-1];ee.url=j}function F(j){const ee=this.stack[this.stack.length-1];if(!ee.depth){const de=this.sliceSerialize(j).length;ee.depth=de}}function D(){this.data.setextHeadingSlurpLineEnding=!0}function _(j){const ee=this.stack[this.stack.length-1];ee.depth=this.sliceSerialize(j).codePointAt(0)===61?1:2}function O(){this.data.setextHeadingSlurpLineEnding=void 0}function H(j){const de=this.stack[this.stack.length-1].children;let we=de[de.length-1];(!we||we.type!=="text")&&(we=N1(),we.position={start:Wt(j.start),end:void 0},de.push(we)),this.stack.push(we)}function L(j){const ee=this.stack.pop();ee.value+=this.sliceSerialize(j),ee.position.end=Wt(j.end)}function K(j){const ee=this.stack[this.stack.length-1];if(this.data.atHardBreak){const de=ee.children[ee.children.length-1];de.position.end=Wt(j.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(ee.type)&&(H.call(this,j),L.call(this,j))}function G(){this.data.atHardBreak=!0}function ce(){const j=this.resume(),ee=this.stack[this.stack.length-1];ee.value=j}function J(){const j=this.resume(),ee=this.stack[this.stack.length-1];ee.value=j}function V(){const j=this.resume(),ee=this.stack[this.stack.length-1];ee.value=j}function le(){const j=this.stack[this.stack.length-1];if(this.data.inReference){const ee=this.data.referenceType||"shortcut";j.type+="Reference",j.referenceType=ee,delete j.url,delete j.title}else delete j.identifier,delete j.label;this.data.referenceType=void 0}function pe(){const j=this.stack[this.stack.length-1];if(this.data.inReference){const ee=this.data.referenceType||"shortcut";j.type+="Reference",j.referenceType=ee,delete j.url,delete j.title}else delete j.identifier,delete j.label;this.data.referenceType=void 0}function Q(j){const ee=this.sliceSerialize(j),de=this.stack[this.stack.length-2];de.label=V5(ee),de.identifier=yt(ee).toLowerCase()}function Ee(){const j=this.stack[this.stack.length-1],ee=this.resume(),de=this.stack[this.stack.length-1];if(this.data.inReference=!0,de.type==="link"){const we=j.children;de.children=we}else de.alt=ee}function M(){const j=this.resume(),ee=this.stack[this.stack.length-1];ee.url=j}function Me(){const j=this.resume(),ee=this.stack[this.stack.length-1];ee.title=j}function ke(){this.data.inReference=void 0}function z(){this.data.referenceType="collapsed"}function xe(j){const ee=this.resume(),de=this.stack[this.stack.length-1];de.label=ee,de.identifier=yt(this.sliceSerialize(j)).toLowerCase(),this.data.referenceType="full"}function Le(j){this.data.characterReferenceType=j.type}function Te(j){const ee=this.sliceSerialize(j),de=this.data.characterReferenceType;let we;de?(we=Lu(ee,de==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):we=i0(ee);const Ae=this.stack[this.stack.length-1];Ae.value+=we}function ye(j){const ee=this.stack.pop();ee.position.end=Wt(j.end)}function Pe(j){L.call(this,j);const ee=this.stack[this.stack.length-1];ee.url=this.sliceSerialize(j)}function _e(j){L.call(this,j);const ee=this.stack[this.stack.length-1];ee.url="mailto:"+this.sliceSerialize(j)}function qe(){return{type:"blockquote",children:[]}}function Ke(){return{type:"code",lang:null,meta:null,value:""}}function tt(){return{type:"inlineCode",value:""}}function Dt(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function X(){return{type:"emphasis",children:[]}}function We(){return{type:"heading",depth:0,children:[]}}function $r(){return{type:"break"}}function yr(){return{type:"html",value:""}}function xr(){return{type:"image",title:null,url:"",alt:null}}function ar(){return{type:"link",title:null,url:"",children:[]}}function O0(j){return{type:"list",ordered:j.type==="listOrdered",start:null,spread:j._spread,children:[]}}function M1(j){return{type:"listItem",spread:j._spread,checked:null,children:[]}}function A1(){return{type:"paragraph",children:[]}}function z1(){return{type:"strong",children:[]}}function N1(){return{type:"text",value:""}}function E1(){return{type:"thematicBreak"}}}function Wt(e){return{line:e.line,column:e.column,offset:e.offset}}function $u(e,t){let r=-1;for(;++r<t.length;){const n=t[r];Array.isArray(n)?$u(e,n):W5(e,n)}}function W5(e,t){let r;for(r in t)if(Vu.call(t,r))switch(r){case"canContainEols":{const n=t[r];n&&e[r].push(...n);break}case"transforms":{const n=t[r];n&&e[r].push(...n);break}case"enter":case"exit":{const n=t[r];n&&Object.assign(e[r],n);break}}}function _o(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Jr({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Jr({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Jr({start:t.start,end:t.end})+") is still open")}function X5(e){const t=this;t.parser=r;function r(n){return U5(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function Y5(e,t){const r={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,r),e.applyData(t,r)}function K5(e,t){const r={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,r),[e.applyData(t,r),{type:"text",value:`
74
+ `}]}function Z5(e,t){const r=t.value?t.value+`
75
+ `:"",n={},a=t.lang?t.lang.split(/\s+/):[];a.length>0&&(n.className=["language-"+a[0]]);let i={type:"element",tagName:"code",properties:n,children:[{type:"text",value:r}]};return t.meta&&(i.data={meta:t.meta}),e.patch(t,i),i=e.applyData(t,i),i={type:"element",tagName:"pre",properties:{},children:[i]},e.patch(t,i),i}function Q5(e,t){const r={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function J5(e,t){const r={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function e6(e,t){const r=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=String(t.identifier).toUpperCase(),a=qr(n.toLowerCase()),i=e.footnoteOrder.indexOf(n);let o,l=e.footnoteCounts.get(n);l===void 0?(l=0,e.footnoteOrder.push(n),o=e.footnoteOrder.length):o=i+1,l+=1,e.footnoteCounts.set(n,l);const s={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+a,id:r+"fnref-"+a+(l>1?"-"+l:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(t,s);const u={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(t,u),e.applyData(t,u)}function t6(e,t){const r={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function r6(e,t){if(e.options.allowDangerousHtml){const r={type:"raw",value:t.value};return e.patch(t,r),e.applyData(t,r)}}function Uu(e,t){const r=t.referenceType;let n="]";if(r==="collapsed"?n+="[]":r==="full"&&(n+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+n}];const a=e.all(t),i=a[0];i&&i.type==="text"?i.value="["+i.value:a.unshift({type:"text",value:"["});const o=a[a.length-1];return o&&o.type==="text"?o.value+=n:a.push({type:"text",value:n}),a}function n6(e,t){const r=String(t.identifier).toUpperCase(),n=e.definitionById.get(r);if(!n)return Uu(e,t);const a={src:qr(n.url||""),alt:t.alt};n.title!==null&&n.title!==void 0&&(a.title=n.title);const i={type:"element",tagName:"img",properties:a,children:[]};return e.patch(t,i),e.applyData(t,i)}function a6(e,t){const r={src:qr(t.url)};t.alt!==null&&t.alt!==void 0&&(r.alt=t.alt),t.title!==null&&t.title!==void 0&&(r.title=t.title);const n={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,n),e.applyData(t,n)}function i6(e,t){const r={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,r);const n={type:"element",tagName:"code",properties:{},children:[r]};return e.patch(t,n),e.applyData(t,n)}function o6(e,t){const r=String(t.identifier).toUpperCase(),n=e.definitionById.get(r);if(!n)return Uu(e,t);const a={href:qr(n.url||"")};n.title!==null&&n.title!==void 0&&(a.title=n.title);const i={type:"element",tagName:"a",properties:a,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function l6(e,t){const r={href:qr(t.url)};t.title!==null&&t.title!==void 0&&(r.title=t.title);const n={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function s6(e,t,r){const n=e.all(t),a=r?u6(r):Gu(t),i={},o=[];if(typeof t.checked=="boolean"){const c=n[0];let h;c&&c.type==="element"&&c.tagName==="p"?h=c:(h={type:"element",tagName:"p",properties:{},children:[]},n.unshift(h)),h.children.length>0&&h.children.unshift({type:"text",value:" "}),h.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),i.className=["task-list-item"]}let l=-1;for(;++l<n.length;){const c=n[l];(a||l!==0||c.type!=="element"||c.tagName!=="p")&&o.push({type:"text",value:`
76
+ `}),c.type==="element"&&c.tagName==="p"&&!a?o.push(...c.children):o.push(c)}const s=n[n.length-1];s&&(a||s.type!=="element"||s.tagName!=="p")&&o.push({type:"text",value:`
77
+ `});const u={type:"element",tagName:"li",properties:i,children:o};return e.patch(t,u),e.applyData(t,u)}function u6(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const r=e.children;let n=-1;for(;!t&&++n<r.length;)t=Gu(r[n])}return t}function Gu(e){const t=e.spread;return t??e.children.length>1}function c6(e,t){const r={},n=e.all(t);let a=-1;for(typeof t.start=="number"&&t.start!==1&&(r.start=t.start);++a<n.length;){const o=n[a];if(o.type==="element"&&o.tagName==="li"&&o.properties&&Array.isArray(o.properties.className)&&o.properties.className.includes("task-list-item")){r.className=["contains-task-list"];break}}const i={type:"element",tagName:t.ordered?"ol":"ul",properties:r,children:e.wrap(n,!0)};return e.patch(t,i),e.applyData(t,i)}function h6(e,t){const r={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function d6(e,t){const r={type:"root",children:e.wrap(e.all(t))};return e.patch(t,r),e.applyData(t,r)}function m6(e,t){const r={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function f6(e,t){const r=e.all(t),n=r.shift(),a=[];if(n){const o={type:"element",tagName:"thead",properties:{},children:e.wrap([n],!0)};e.patch(t.children[0],o),a.push(o)}if(r.length>0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(r,!0)},l=e0(t.children[1]),s=Tu(t.children[t.children.length-1]);l&&s&&(o.position={start:l,end:s}),a.push(o)}const i={type:"element",tagName:"table",properties:{},children:e.wrap(a,!0)};return e.patch(t,i),e.applyData(t,i)}function p6(e,t,r){const n=r?r.children:void 0,i=(n?n.indexOf(t):1)===0?"th":"td",o=r&&r.type==="table"?r.align:void 0,l=o?o.length:t.children.length;let s=-1;const u=[];for(;++s<l;){const h=t.children[s],m={},p=o?o[s]:void 0;p&&(m.align=p);let y={type:"element",tagName:i,properties:m,children:[]};h&&(y.children=e.all(h),e.patch(h,y),y=e.applyData(h,y)),u.push(y)}const c={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(t,c),e.applyData(t,c)}function g6(e,t){const r={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}const qo=9,Ho=32;function v6(e){const t=String(e),r=/\r?\n|\r/g;let n=r.exec(t),a=0;const i=[];for(;n;)i.push(Vo(t.slice(a,n.index),a>0,!0),n[0]),a=n.index+n[0].length,n=r.exec(t);return i.push(Vo(t.slice(a),a>0,!1)),i.join("")}function Vo(e,t,r){let n=0,a=e.length;if(t){let i=e.codePointAt(n);for(;i===qo||i===Ho;)n++,i=e.codePointAt(n)}if(r){let i=e.codePointAt(a-1);for(;i===qo||i===Ho;)a--,i=e.codePointAt(a-1)}return a>n?e.slice(n,a):""}function b6(e,t){const r={type:"text",value:v6(String(t.value))};return e.patch(t,r),e.applyData(t,r)}function y6(e,t){const r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,r),e.applyData(t,r)}const x6={blockquote:Y5,break:K5,code:Z5,delete:Q5,emphasis:J5,footnoteReference:e6,heading:t6,html:r6,imageReference:n6,image:a6,inlineCode:i6,linkReference:o6,link:l6,listItem:s6,list:c6,paragraph:h6,root:d6,strong:m6,table:f6,tableCell:g6,tableRow:p6,text:b6,thematicBreak:y6,toml:An,yaml:An,definition:An,footnoteDefinition:An};function An(){}const Wu=-1,ca=0,tn=1,Xn=2,l0=3,s0=4,u0=5,c0=6,Xu=7,Yu=8,$o=typeof self=="object"?self:globalThis,w6=(e,t)=>{const r=(a,i)=>(e.set(i,a),a),n=a=>{if(e.has(a))return e.get(a);const[i,o]=t[a];switch(i){case ca:case Wu:return r(o,a);case tn:{const l=r([],a);for(const s of o)l.push(n(s));return l}case Xn:{const l=r({},a);for(const[s,u]of o)l[n(s)]=n(u);return l}case l0:return r(new Date(o),a);case s0:{const{source:l,flags:s}=o;return r(new RegExp(l,s),a)}case u0:{const l=r(new Map,a);for(const[s,u]of o)l.set(n(s),n(u));return l}case c0:{const l=r(new Set,a);for(const s of o)l.add(n(s));return l}case Xu:{const{name:l,message:s}=o;return r(new $o[l](s),a)}case Yu:return r(BigInt(o),a);case"BigInt":return r(Object(BigInt(o)),a);case"ArrayBuffer":return r(new Uint8Array(o).buffer,o);case"DataView":{const{buffer:l}=new Uint8Array(o);return r(new DataView(l),o)}}return r(new $o[i](o),a)};return n},Uo=e=>w6(new Map,e)(0),Ar="",{toString:k6}={},{keys:S6}=Object,Zr=e=>{const t=typeof e;if(t!=="object"||!e)return[ca,t];const r=k6.call(e).slice(8,-1);switch(r){case"Array":return[tn,Ar];case"Object":return[Xn,Ar];case"Date":return[l0,Ar];case"RegExp":return[s0,Ar];case"Map":return[u0,Ar];case"Set":return[c0,Ar];case"DataView":return[tn,r]}return r.includes("Array")?[tn,r]:r.includes("Error")?[Xu,r]:[Xn,r]},zn=([e,t])=>e===ca&&(t==="function"||t==="symbol"),C6=(e,t,r,n)=>{const a=(o,l)=>{const s=n.push(o)-1;return r.set(l,s),s},i=o=>{if(r.has(o))return r.get(o);let[l,s]=Zr(o);switch(l){case ca:{let c=o;switch(s){case"bigint":l=Yu,c=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+s);c=null;break;case"undefined":return a([Wu],o)}return a([l,c],o)}case tn:{if(s){let m=o;return s==="DataView"?m=new Uint8Array(o.buffer):s==="ArrayBuffer"&&(m=new Uint8Array(o)),a([s,[...m]],o)}const c=[],h=a([l,c],o);for(const m of o)c.push(i(m));return h}case Xn:{if(s)switch(s){case"BigInt":return a([s,o.toString()],o);case"Boolean":case"Number":case"String":return a([s,o.valueOf()],o)}if(t&&"toJSON"in o)return i(o.toJSON());const c=[],h=a([l,c],o);for(const m of S6(o))(e||!zn(Zr(o[m])))&&c.push([i(m),i(o[m])]);return h}case l0:return a([l,o.toISOString()],o);case s0:{const{source:c,flags:h}=o;return a([l,{source:c,flags:h}],o)}case u0:{const c=[],h=a([l,c],o);for(const[m,p]of o)(e||!(zn(Zr(m))||zn(Zr(p))))&&c.push([i(m),i(p)]);return h}case c0:{const c=[],h=a([l,c],o);for(const m of o)(e||!zn(Zr(m)))&&c.push(i(m));return h}}const{message:u}=o;return a([l,{name:s,message:u}],o)};return i},Go=(e,{json:t,lossy:r}={})=>{const n=[];return C6(!(t||r),!!t,new Map,n)(e),n},Yn=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?Uo(Go(e,t)):structuredClone(e):(e,t)=>Uo(Go(e,t));function T6(e,t){const r=[{type:"text",value:"↩"}];return t>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),r}function M6(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function A6(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=e.options.footnoteBackContent||T6,n=e.options.footnoteBackLabel||M6,a=e.options.footnoteLabel||"Footnotes",i=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},l=[];let s=-1;for(;++s<e.footnoteOrder.length;){const u=e.footnoteById.get(e.footnoteOrder[s]);if(!u)continue;const c=e.all(u),h=String(u.identifier).toUpperCase(),m=qr(h.toLowerCase());let p=0;const y=[],w=e.footnoteCounts.get(h);for(;w!==void 0&&++p<=w;){y.length>0&&y.push({type:"text",value:" "});let A=typeof r=="string"?r:r(s,p);typeof A=="string"&&(A={type:"text",value:A}),y.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+m+(p>1?"-"+p:""),dataFootnoteBackref:"",ariaLabel:typeof n=="string"?n:n(s,p),className:["data-footnote-backref"]},children:Array.isArray(A)?A:[A]})}const C=c[c.length-1];if(C&&C.type==="element"&&C.tagName==="p"){const A=C.children[C.children.length-1];A&&A.type==="text"?A.value+=" ":C.children.push({type:"text",value:" "}),C.children.push(...y)}else c.push(...y);const k={type:"element",tagName:"li",properties:{id:t+"fn-"+m},children:e.wrap(c,!0)};e.patch(u,k),l.push(k)}if(l.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:i,properties:{...Yn(o),id:"footnote-label"},children:[{type:"text",value:a}]},{type:"text",value:`
78
+ `},{type:"element",tagName:"ol",properties:{},children:e.wrap(l,!0)},{type:"text",value:`
79
+ `}]}}const mn=(function(e){if(e==null)return D6;if(typeof e=="function")return ha(e);if(typeof e=="object")return Array.isArray(e)?z6(e):N6(e);if(typeof e=="string")return E6(e);throw new Error("Expected function, string, or object as test")});function z6(e){const t=[];let r=-1;for(;++r<e.length;)t[r]=mn(e[r]);return ha(n);function n(...a){let i=-1;for(;++i<t.length;)if(t[i].apply(this,a))return!0;return!1}}function N6(e){const t=e;return ha(r);function r(n){const a=n;let i;for(i in e)if(a[i]!==t[i])return!1;return!0}}function E6(e){return ha(t);function t(r){return r&&r.type===e}}function ha(e){return t;function t(r,n,a){return!!(I6(r)&&e.call(this,r,typeof n=="number"?n:void 0,a||void 0))}}function D6(){return!0}function I6(e){return e!==null&&typeof e=="object"&&"type"in e}const Ku=[],L6=!0,Ci=!1,Zu="skip";function h0(e,t,r,n){let a;typeof t=="function"&&typeof r!="function"?(n=r,r=t):a=t;const i=mn(a),o=n?-1:1;l(e,void 0,[])();function l(s,u,c){const h=s&&typeof s=="object"?s:{};if(typeof h.type=="string"){const p=typeof h.tagName=="string"?h.tagName:typeof h.name=="string"?h.name:void 0;Object.defineProperty(m,"name",{value:"node ("+(s.type+(p?"<"+p+">":""))+")"})}return m;function m(){let p=Ku,y,w,C;if((!t||i(s,u,c[c.length-1]||void 0))&&(p=R6(r(s,c)),p[0]===Ci))return p;if("children"in s&&s.children){const k=s;if(k.children&&p[0]!==Zu)for(w=(n?k.children.length:-1)+o,C=c.concat(k);w>-1&&w<k.children.length;){const A=k.children[w];if(y=l(A,w,C)(),y[0]===Ci)return y;w=typeof y[1]=="number"?y[1]:w+o}}return p}}}function R6(e){return Array.isArray(e)?e:typeof e=="number"?[L6,e]:e==null?Ku:[e]}function d0(e,t,r,n){let a,i,o;typeof t=="function"&&typeof r!="function"?(i=void 0,o=t,a=r):(i=t,o=r,a=n),h0(e,i,l,a);function l(s,u){const c=u[u.length-1],h=c?c.children.indexOf(s):void 0;return o(s,h,c)}}const Ti={}.hasOwnProperty,P6={};function B6(e,t){const r=t||P6,n=new Map,a=new Map,i=new Map,o={...x6,...r.handlers},l={all:u,applyData:O6,definitionById:n,footnoteById:a,footnoteCounts:i,footnoteOrder:[],handlers:o,one:s,options:r,patch:F6,wrap:_6};return d0(e,function(c){if(c.type==="definition"||c.type==="footnoteDefinition"){const h=c.type==="definition"?n:a,m=String(c.identifier).toUpperCase();h.has(m)||h.set(m,c)}}),l;function s(c,h){const m=c.type,p=l.handlers[m];if(Ti.call(l.handlers,m)&&p)return p(l,c,h);if(l.options.passThrough&&l.options.passThrough.includes(m)){if("children"in c){const{children:w,...C}=c,k=Yn(C);return k.children=l.all(c),k}return Yn(c)}return(l.options.unknownHandler||j6)(l,c,h)}function u(c){const h=[];if("children"in c){const m=c.children;let p=-1;for(;++p<m.length;){const y=l.one(m[p],c);if(y){if(p&&m[p-1].type==="break"&&(!Array.isArray(y)&&y.type==="text"&&(y.value=Wo(y.value)),!Array.isArray(y)&&y.type==="element")){const w=y.children[0];w&&w.type==="text"&&(w.value=Wo(w.value))}Array.isArray(y)?h.push(...y):h.push(y)}}}return h}}function F6(e,t){e.position&&(t.position=M4(e))}function O6(e,t){let r=t;if(e&&e.data){const n=e.data.hName,a=e.data.hChildren,i=e.data.hProperties;if(typeof n=="string")if(r.type==="element")r.tagName=n;else{const o="children"in r?r.children:[r];r={type:"element",tagName:n,properties:{},children:o}}r.type==="element"&&i&&Object.assign(r.properties,Yn(i)),"children"in r&&r.children&&a!==null&&a!==void 0&&(r.children=a)}return r}function j6(e,t){const r=t.data||{},n="value"in t&&!(Ti.call(r,"hProperties")||Ti.call(r,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function _6(e,t){const r=[];let n=-1;for(t&&r.push({type:"text",value:`
80
+ `});++n<e.length;)n&&r.push({type:"text",value:`
81
+ `}),r.push(e[n]);return t&&e.length>0&&r.push({type:"text",value:`
82
+ `}),r}function Wo(e){let t=0,r=e.charCodeAt(t);for(;r===9||r===32;)t++,r=e.charCodeAt(t);return e.slice(t)}function Xo(e,t){const r=B6(e,t),n=r.one(e,void 0),a=A6(r),i=Array.isArray(n)?{type:"root",children:n}:n||{type:"root",children:[]};return a&&i.children.push({type:"text",value:`
83
+ `},a),i}function q6(e,t){return e&&"run"in e?async function(r,n){const a=Xo(r,{file:n,...t});await e.run(a,n)}:function(r,n){return Xo(r,{file:n,...e||t})}}function Yo(e){if(e)throw e}var Fa,Ko;function H6(){if(Ko)return Fa;Ko=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r=Object.defineProperty,n=Object.getOwnPropertyDescriptor,a=function(u){return typeof Array.isArray=="function"?Array.isArray(u):t.call(u)==="[object Array]"},i=function(u){if(!u||t.call(u)!=="[object Object]")return!1;var c=e.call(u,"constructor"),h=u.constructor&&u.constructor.prototype&&e.call(u.constructor.prototype,"isPrototypeOf");if(u.constructor&&!c&&!h)return!1;var m;for(m in u);return typeof m>"u"||e.call(u,m)},o=function(u,c){r&&c.name==="__proto__"?r(u,c.name,{enumerable:!0,configurable:!0,value:c.newValue,writable:!0}):u[c.name]=c.newValue},l=function(u,c){if(c==="__proto__")if(e.call(u,c)){if(n)return n(u,c).value}else return;return u[c]};return Fa=function s(){var u,c,h,m,p,y,w=arguments[0],C=1,k=arguments.length,A=!1;for(typeof w=="boolean"&&(A=w,w=arguments[1]||{},C=2),(w==null||typeof w!="object"&&typeof w!="function")&&(w={});C<k;++C)if(u=arguments[C],u!=null)for(c in u)h=l(w,c),m=l(u,c),w!==m&&(A&&m&&(i(m)||(p=a(m)))?(p?(p=!1,y=h&&a(h)?h:[]):y=h&&i(h)?h:{},o(w,{name:c,newValue:s(A,y,m)})):typeof m<"u"&&o(w,{name:c,newValue:m}));return w},Fa}var V6=H6();const Oa=Cu(V6);function Mi(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function $6(){const e=[],t={run:r,use:n};return t;function r(...a){let i=-1;const o=a.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);l(null,...a);function l(s,...u){const c=e[++i];let h=-1;if(s){o(s);return}for(;++h<a.length;)(u[h]===null||u[h]===void 0)&&(u[h]=a[h]);a=u,c?U6(c,l)(...u):o(null,...u)}}function n(a){if(typeof a!="function")throw new TypeError("Expected `middelware` to be a function, not "+a);return e.push(a),t}}function U6(e,t){let r;return n;function n(...o){const l=e.length>o.length;let s;l&&o.push(a);try{s=e.apply(this,o)}catch(u){const c=u;if(l&&r)throw c;return a(c)}l||(s&&s.then&&typeof s.then=="function"?s.then(i,a):s instanceof Error?a(s):i(s))}function a(o,...l){r||(r=!0,t(o,...l))}function i(o){a(null,o)}}const wt={basename:G6,dirname:W6,extname:X6,join:Y6,sep:"/"};function G6(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');fn(e);let r=0,n=-1,a=e.length,i;if(t===void 0||t.length===0||t.length>e.length){for(;a--;)if(e.codePointAt(a)===47){if(i){r=a+1;break}}else n<0&&(i=!0,n=a+1);return n<0?"":e.slice(r,n)}if(t===e)return"";let o=-1,l=t.length-1;for(;a--;)if(e.codePointAt(a)===47){if(i){r=a+1;break}}else o<0&&(i=!0,o=a+1),l>-1&&(e.codePointAt(a)===t.codePointAt(l--)?l<0&&(n=a):(l=-1,n=o));return r===n?n=o:n<0&&(n=e.length),e.slice(r,n)}function W6(e){if(fn(e),e.length===0)return".";let t=-1,r=e.length,n;for(;--r;)if(e.codePointAt(r)===47){if(n){t=r;break}}else n||(n=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function X6(e){fn(e);let t=e.length,r=-1,n=0,a=-1,i=0,o;for(;t--;){const l=e.codePointAt(t);if(l===47){if(o){n=t+1;break}continue}r<0&&(o=!0,r=t+1),l===46?a<0?a=t:i!==1&&(i=1):a>-1&&(i=-1)}return a<0||r<0||i===0||i===1&&a===r-1&&a===n+1?"":e.slice(a,r)}function Y6(...e){let t=-1,r;for(;++t<e.length;)fn(e[t]),e[t]&&(r=r===void 0?e[t]:r+"/"+e[t]);return r===void 0?".":K6(r)}function K6(e){fn(e);const t=e.codePointAt(0)===47;let r=Z6(e,!t);return r.length===0&&!t&&(r="."),r.length>0&&e.codePointAt(e.length-1)===47&&(r+="/"),t?"/"+r:r}function Z6(e,t){let r="",n=0,a=-1,i=0,o=-1,l,s;for(;++o<=e.length;){if(o<e.length)l=e.codePointAt(o);else{if(l===47)break;l=47}if(l===47){if(!(a===o-1||i===1))if(a!==o-1&&i===2){if(r.length<2||n!==2||r.codePointAt(r.length-1)!==46||r.codePointAt(r.length-2)!==46){if(r.length>2){if(s=r.lastIndexOf("/"),s!==r.length-1){s<0?(r="",n=0):(r=r.slice(0,s),n=r.length-1-r.lastIndexOf("/")),a=o,i=0;continue}}else if(r.length>0){r="",n=0,a=o,i=0;continue}}t&&(r=r.length>0?r+"/..":"..",n=2)}else r.length>0?r+="/"+e.slice(a+1,o):r=e.slice(a+1,o),n=o-a-1;a=o,i=0}else l===46&&i>-1?i++:i=-1}return r}function fn(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Q6={cwd:J6};function J6(){return"/"}function Ai(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function e3(e){if(typeof e=="string")e=new URL(e);else if(!Ai(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return t3(e)}function t3(e){if(e.hostname!==""){const n=new TypeError('File URL host must be "localhost" or empty on darwin');throw n.code="ERR_INVALID_FILE_URL_HOST",n}const t=e.pathname;let r=-1;for(;++r<t.length;)if(t.codePointAt(r)===37&&t.codePointAt(r+1)===50){const n=t.codePointAt(r+2);if(n===70||n===102){const a=new TypeError("File URL path must not include encoded / characters");throw a.code="ERR_INVALID_FILE_URL_PATH",a}}return decodeURIComponent(t)}const ja=["history","path","basename","stem","extname","dirname"];class Qu{constructor(t){let r;t?Ai(t)?r={path:t}:typeof t=="string"||r3(t)?r={value:t}:r=t:r={},this.cwd="cwd"in r?"":Q6.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n=-1;for(;++n<ja.length;){const i=ja[n];i in r&&r[i]!==void 0&&r[i]!==null&&(this[i]=i==="history"?[...r[i]]:r[i])}let a;for(a in r)ja.includes(a)||(this[a]=r[a])}get basename(){return typeof this.path=="string"?wt.basename(this.path):void 0}set basename(t){qa(t,"basename"),_a(t,"basename"),this.path=wt.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?wt.dirname(this.path):void 0}set dirname(t){Zo(this.basename,"dirname"),this.path=wt.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?wt.extname(this.path):void 0}set extname(t){if(_a(t,"extname"),Zo(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=wt.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Ai(t)&&(t=e3(t)),qa(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?wt.basename(this.path,this.extname):void 0}set stem(t){qa(t,"stem"),_a(t,"stem"),this.path=wt.join(this.dirname||"",t+(this.extname||""))}fail(t,r,n){const a=this.message(t,r,n);throw a.fatal=!0,a}info(t,r,n){const a=this.message(t,r,n);return a.fatal=void 0,a}message(t,r,n){const a=new Ye(t,r,n);return this.path&&(a.name=this.path+":"+a.name,a.file=this.path),a.fatal=!1,this.messages.push(a),a}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function _a(e,t){if(e&&e.includes(wt.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+wt.sep+"`")}function qa(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Zo(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function r3(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const n3=(function(e){const n=this.constructor.prototype,a=n[e],i=function(){return a.apply(i,arguments)};return Object.setPrototypeOf(i,n),i}),a3={}.hasOwnProperty;class m0 extends n3{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=$6()}copy(){const t=new m0;let r=-1;for(;++r<this.attachers.length;){const n=this.attachers[r];t.use(...n)}return t.data(Oa(!0,{},this.namespace)),t}data(t,r){return typeof t=="string"?arguments.length===2?($a("data",this.frozen),this.namespace[t]=r,this):a3.call(this.namespace,t)&&this.namespace[t]||void 0:t?($a("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[r,...n]=this.attachers[this.freezeIndex];if(n[0]===!1)continue;n[0]===!0&&(n[0]=void 0);const a=r.call(t,...n);typeof a=="function"&&this.transformers.use(a)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const r=Nn(t),n=this.parser||this.Parser;return Ha("parse",n),n(String(r),r)}process(t,r){const n=this;return this.freeze(),Ha("process",this.parser||this.Parser),Va("process",this.compiler||this.Compiler),r?a(void 0,r):new Promise(a);function a(i,o){const l=Nn(t),s=n.parse(l);n.run(s,l,function(c,h,m){if(c||!h||!m)return u(c);const p=h,y=n.stringify(p,m);l3(y)?m.value=y:m.result=y,u(c,m)});function u(c,h){c||!h?o(c):i?i(h):r(void 0,h)}}}processSync(t){let r=!1,n;return this.freeze(),Ha("processSync",this.parser||this.Parser),Va("processSync",this.compiler||this.Compiler),this.process(t,a),Jo("processSync","process",r),n;function a(i,o){r=!0,Yo(i),n=o}}run(t,r,n){Qo(t),this.freeze();const a=this.transformers;return!n&&typeof r=="function"&&(n=r,r=void 0),n?i(void 0,n):new Promise(i);function i(o,l){const s=Nn(r);a.run(t,s,u);function u(c,h,m){const p=h||t;c?l(c):o?o(p):n(void 0,p,m)}}}runSync(t,r){let n=!1,a;return this.run(t,r,i),Jo("runSync","run",n),a;function i(o,l){Yo(o),a=l,n=!0}}stringify(t,r){this.freeze();const n=Nn(r),a=this.compiler||this.Compiler;return Va("stringify",a),Qo(t),a(t,n)}use(t,...r){const n=this.attachers,a=this.namespace;if($a("use",this.frozen),t!=null)if(typeof t=="function")s(t,r);else if(typeof t=="object")Array.isArray(t)?l(t):o(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function i(u){if(typeof u=="function")s(u,[]);else if(typeof u=="object")if(Array.isArray(u)){const[c,...h]=u;s(c,h)}else o(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function o(u){if(!("plugins"in u)&&!("settings"in u))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");l(u.plugins),u.settings&&(a.settings=Oa(!0,a.settings,u.settings))}function l(u){let c=-1;if(u!=null)if(Array.isArray(u))for(;++c<u.length;){const h=u[c];i(h)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function s(u,c){let h=-1,m=-1;for(;++h<n.length;)if(n[h][0]===u){m=h;break}if(m===-1)n.push([u,...c]);else if(c.length>0){let[p,...y]=c;const w=n[m][1];Mi(w)&&Mi(p)&&(p=Oa(!0,w,p)),n[m]=[u,p,...y]}}}}const i3=new m0().freeze();function Ha(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Va(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function $a(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Qo(e){if(!Mi(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Jo(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Nn(e){return o3(e)?e:new Qu(e)}function o3(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function l3(e){return typeof e=="string"||s3(e)}function s3(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const u3="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",el=[],tl={allowDangerousHtml:!0},c3=/^(https?|ircs?|mailto|xmpp)$/i,h3=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function d3(e){const t=m3(e),r=f3(e);return p3(t.runSync(t.parse(r),r),e)}function m3(e){const t=e.rehypePlugins||el,r=e.remarkPlugins||el,n=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...tl}:tl;return i3().use(X5).use(r).use(q6,n).use(t)}function f3(e){const t=e.children||"",r=new Qu;return typeof t=="string"&&(r.value=t),r}function p3(e,t){const r=t.allowedElements,n=t.allowElement,a=t.components,i=t.disallowedElements,o=t.skipHtml,l=t.unwrapDisallowed,s=t.urlTransform||g3;for(const c of h3)Object.hasOwn(t,c.from)&&(""+c.from+(c.to?"use `"+c.to+"` instead":"remove it")+u3+c.id,void 0);return d0(e,u),D4(e,{Fragment:v.Fragment,components:a,ignoreInvalidStyle:!0,jsx:v.jsx,jsxs:v.jsxs,passKeys:!0,passNode:!0});function u(c,h,m){if(c.type==="raw"&&m&&typeof h=="number")return o?m.children.splice(h,1):m.children[h]={type:"text",value:c.value},h;if(c.type==="element"){let p;for(p in Ra)if(Object.hasOwn(Ra,p)&&Object.hasOwn(c.properties,p)){const y=c.properties[p],w=Ra[p];(w===null||w.includes(c.tagName))&&(c.properties[p]=s(String(y||""),p,c))}}if(c.type==="element"){let p=r?!r.includes(c.tagName):i?i.includes(c.tagName):!1;if(!p&&n&&typeof h=="number"&&(p=!n(c,h,m)),p&&m&&typeof h=="number")return l&&c.children?m.children.splice(h,1,...c.children):m.children.splice(h,1),h}}}function g3(e){const t=e.indexOf(":"),r=e.indexOf("?"),n=e.indexOf("#"),a=e.indexOf("/");return t===-1||a!==-1&&t>a||r!==-1&&t>r||n!==-1&&t>n||c3.test(e.slice(0,t))?e:""}function rl(e,t){const r=String(e);if(typeof t!="string")throw new TypeError("Expected character");let n=0,a=r.indexOf(t);for(;a!==-1;)n++,a=r.indexOf(t,a+t.length);return n}function v3(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function b3(e,t,r){const a=mn((r||{}).ignore||[]),i=y3(t);let o=-1;for(;++o<i.length;)h0(e,"text",l);function l(u,c){let h=-1,m;for(;++h<c.length;){const p=c[h],y=m?m.children:void 0;if(a(p,y?y.indexOf(p):void 0,m))return;m=p}if(m)return s(u,c)}function s(u,c){const h=c[c.length-1],m=i[o][0],p=i[o][1];let y=0;const C=h.children.indexOf(u);let k=!1,A=[];m.lastIndex=0;let E=m.exec(u.value);for(;E;){const B=E.index,F={index:E.index,input:E.input,stack:[...c,u]};let D=p(...E,F);if(typeof D=="string"&&(D=D.length>0?{type:"text",value:D}:void 0),D===!1?m.lastIndex=B+1:(y!==B&&A.push({type:"text",value:u.value.slice(y,B)}),Array.isArray(D)?A.push(...D):D&&A.push(D),y=B+E[0].length,k=!0),!m.global)break;E=m.exec(u.value)}return k?(y<u.value.length&&A.push({type:"text",value:u.value.slice(y)}),h.children.splice(C,1,...A)):A=[u],C+A.length}}function y3(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const r=!e[0]||Array.isArray(e[0])?e:[e];let n=-1;for(;++n<r.length;){const a=r[n];t.push([x3(a[0]),w3(a[1])])}return t}function x3(e){return typeof e=="string"?new RegExp(v3(e),"g"):e}function w3(e){return typeof e=="function"?e:function(){return e}}const Ua="phrasing",Ga=["autolink","link","image","label"];function k3(){return{transforms:[N3],enter:{literalAutolink:C3,literalAutolinkEmail:Wa,literalAutolinkHttp:Wa,literalAutolinkWww:Wa},exit:{literalAutolink:z3,literalAutolinkEmail:A3,literalAutolinkHttp:T3,literalAutolinkWww:M3}}}function S3(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Ua,notInConstruct:Ga},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Ua,notInConstruct:Ga},{character:":",before:"[ps]",after:"\\/",inConstruct:Ua,notInConstruct:Ga}]}}function C3(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Wa(e){this.config.enter.autolinkProtocol.call(this,e)}function T3(e){this.config.exit.autolinkProtocol.call(this,e)}function M3(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function A3(e){this.config.exit.autolinkEmail.call(this,e)}function z3(e){this.exit(e)}function N3(e){b3(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,E3],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),D3]],{ignore:["link","linkReference"]})}function E3(e,t,r,n,a){let i="";if(!Ju(a)||(/^w/i.test(t)&&(r=t+r,t="",i="http://"),!I3(r)))return!1;const o=L3(r+n);if(!o[0])return!1;const l={type:"link",title:null,url:i+t+o[0],children:[{type:"text",value:t+o[0]}]};return o[1]?[l,{type:"text",value:o[1]}]:l}function D3(e,t,r,n){return!Ju(n,!0)||/[-\d_]$/.test(r)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+r,children:[{type:"text",value:t+"@"+r}]}}function I3(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function L3(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let r=t[0],n=r.indexOf(")");const a=rl(e,"(");let i=rl(e,")");for(;n!==-1&&a>i;)e+=r.slice(0,n+1),r=r.slice(n+1),n=r.indexOf(")"),i++;return[e,r]}function Ju(e,t){const r=e.input.charCodeAt(e.index-1);return(e.index===0||mr(r)||sa(r))&&(!t||r!==47)}ec.peek=H3;function R3(){this.buffer()}function P3(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function B3(){this.buffer()}function F3(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function O3(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=yt(this.sliceSerialize(e)).toLowerCase(),r.label=t}function j3(e){this.exit(e)}function _3(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=yt(this.sliceSerialize(e)).toLowerCase(),r.label=t}function q3(e){this.exit(e)}function H3(){return"["}function ec(e,t,r,n){const a=r.createTracker(n);let i=a.move("[^");const o=r.enter("footnoteReference"),l=r.enter("reference");return i+=a.move(r.safe(r.associationId(e),{after:"]",before:i})),l(),o(),i+=a.move("]"),i}function V3(){return{enter:{gfmFootnoteCallString:R3,gfmFootnoteCall:P3,gfmFootnoteDefinitionLabelString:B3,gfmFootnoteDefinition:F3},exit:{gfmFootnoteCallString:O3,gfmFootnoteCall:j3,gfmFootnoteDefinitionLabelString:_3,gfmFootnoteDefinition:q3}}}function $3(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:r,footnoteReference:ec},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function r(n,a,i,o){const l=i.createTracker(o);let s=l.move("[^");const u=i.enter("footnoteDefinition"),c=i.enter("label");return s+=l.move(i.safe(i.associationId(n),{before:s,after:"]"})),c(),s+=l.move("]:"),n.children&&n.children.length>0&&(l.shift(4),s+=l.move((t?`
84
+ `:" ")+i.indentLines(i.containerFlow(n,l.current()),t?tc:U3))),u(),s}}function U3(e,t,r){return t===0?e:tc(e,t,r)}function tc(e,t,r){return(r?"":" ")+e}const G3=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];rc.peek=Z3;function W3(){return{canContainEols:["delete"],enter:{strikethrough:Y3},exit:{strikethrough:K3}}}function X3(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:G3}],handlers:{delete:rc}}}function Y3(e){this.enter({type:"delete",children:[]},e)}function K3(e){this.exit(e)}function rc(e,t,r,n){const a=r.createTracker(n),i=r.enter("strikethrough");let o=a.move("~~");return o+=r.containerPhrasing(e,{...a.current(),before:o,after:"~"}),o+=a.move("~~"),i(),o}function Z3(){return"~"}function Q3(e){return e.length}function J3(e,t){const r=t||{},n=(r.align||[]).concat(),a=r.stringLength||Q3,i=[],o=[],l=[],s=[];let u=0,c=-1;for(;++c<e.length;){const w=[],C=[];let k=-1;for(e[c].length>u&&(u=e[c].length);++k<e[c].length;){const A=e7(e[c][k]);if(r.alignDelimiters!==!1){const E=a(A);C[k]=E,(s[k]===void 0||E>s[k])&&(s[k]=E)}w.push(A)}o[c]=w,l[c]=C}let h=-1;if(typeof n=="object"&&"length"in n)for(;++h<u;)i[h]=nl(n[h]);else{const w=nl(n);for(;++h<u;)i[h]=w}h=-1;const m=[],p=[];for(;++h<u;){const w=i[h];let C="",k="";w===99?(C=":",k=":"):w===108?C=":":w===114&&(k=":");let A=r.alignDelimiters===!1?1:Math.max(1,s[h]-C.length-k.length);const E=C+"-".repeat(A)+k;r.alignDelimiters!==!1&&(A=C.length+A+k.length,A>s[h]&&(s[h]=A),p[h]=A),m[h]=E}o.splice(1,0,m),l.splice(1,0,p),c=-1;const y=[];for(;++c<o.length;){const w=o[c],C=l[c];h=-1;const k=[];for(;++h<u;){const A=w[h]||"";let E="",B="";if(r.alignDelimiters!==!1){const F=s[h]-(C[h]||0),D=i[h];D===114?E=" ".repeat(F):D===99?F%2?(E=" ".repeat(F/2+.5),B=" ".repeat(F/2-.5)):(E=" ".repeat(F/2),B=E):B=" ".repeat(F)}r.delimiterStart!==!1&&!h&&k.push("|"),r.padding!==!1&&!(r.alignDelimiters===!1&&A==="")&&(r.delimiterStart!==!1||h)&&k.push(" "),r.alignDelimiters!==!1&&k.push(E),k.push(A),r.alignDelimiters!==!1&&k.push(B),r.padding!==!1&&k.push(" "),(r.delimiterEnd!==!1||h!==u-1)&&k.push("|")}y.push(r.delimiterEnd===!1?k.join("").replace(/ +$/,""):k.join(""))}return y.join(`
85
+ `)}function e7(e){return e==null?"":String(e)}function nl(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function t7(e,t,r,n){const a=r.enter("blockquote"),i=r.createTracker(n);i.move("> "),i.shift(2);const o=r.indentLines(r.containerFlow(e,i.current()),r7);return a(),o}function r7(e,t,r){return">"+(r?"":" ")+e}function n7(e,t){return al(e,t.inConstruct,!0)&&!al(e,t.notInConstruct,!1)}function al(e,t,r){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return r;let n=-1;for(;++n<t.length;)if(e.includes(t[n]))return!0;return!1}function il(e,t,r,n){let a=-1;for(;++a<r.unsafe.length;)if(r.unsafe[a].character===`
86
+ `&&n7(r.stack,r.unsafe[a]))return/[ \t]/.test(n.before)?"":" ";return`\\
87
+ `}function nc(e,t){const r=String(e);let n=r.indexOf(t),a=n,i=0,o=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;n!==-1;)n===a?++i>o&&(o=i):i=1,a=n+t.length,n=r.indexOf(t,a);return o}function a7(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function i7(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function o7(e,t,r,n){const a=i7(r),i=e.value||"",o=a==="`"?"GraveAccent":"Tilde";if(a7(e,r)){const h=r.enter("codeIndented"),m=r.indentLines(i,l7);return h(),m}const l=r.createTracker(n),s=a.repeat(Math.max(nc(i,a)+1,3)),u=r.enter("codeFenced");let c=l.move(s);if(e.lang){const h=r.enter(`codeFencedLang${o}`);c+=l.move(r.safe(e.lang,{before:c,after:" ",encode:["`"],...l.current()})),h()}if(e.lang&&e.meta){const h=r.enter(`codeFencedMeta${o}`);c+=l.move(" "),c+=l.move(r.safe(e.meta,{before:c,after:`
88
+ `,encode:["`"],...l.current()})),h()}return c+=l.move(`
89
+ `),i&&(c+=l.move(i+`
90
+ `)),c+=l.move(s),u(),c}function l7(e,t,r){return(r?"":" ")+e}function f0(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function s7(e,t,r,n){const a=f0(r),i=a==='"'?"Quote":"Apostrophe",o=r.enter("definition");let l=r.enter("label");const s=r.createTracker(n);let u=s.move("[");return u+=s.move(r.safe(r.associationId(e),{before:u,after:"]",...s.current()})),u+=s.move("]: "),l(),!e.url||/[\0- \u007F]/.test(e.url)?(l=r.enter("destinationLiteral"),u+=s.move("<"),u+=s.move(r.safe(e.url,{before:u,after:">",...s.current()})),u+=s.move(">")):(l=r.enter("destinationRaw"),u+=s.move(r.safe(e.url,{before:u,after:e.title?" ":`
91
+ `,...s.current()}))),l(),e.title&&(l=r.enter(`title${i}`),u+=s.move(" "+a),u+=s.move(r.safe(e.title,{before:u,after:a,...s.current()})),u+=s.move(a),l()),o(),u}function u7(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function sn(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Kn(e,t,r){const n=Br(e),a=Br(t);return n===void 0?a===void 0?r==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:a===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:n===1?a===void 0?{inside:!1,outside:!1}:a===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:a===void 0?{inside:!1,outside:!1}:a===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}ac.peek=c7;function ac(e,t,r,n){const a=u7(r),i=r.enter("emphasis"),o=r.createTracker(n),l=o.move(a);let s=o.move(r.containerPhrasing(e,{after:a,before:l,...o.current()}));const u=s.charCodeAt(0),c=Kn(n.before.charCodeAt(n.before.length-1),u,a);c.inside&&(s=sn(u)+s.slice(1));const h=s.charCodeAt(s.length-1),m=Kn(n.after.charCodeAt(0),h,a);m.inside&&(s=s.slice(0,-1)+sn(h));const p=o.move(a);return i(),r.attentionEncodeSurroundingInfo={after:m.outside,before:c.outside},l+s+p}function c7(e,t,r){return r.options.emphasis||"*"}function h7(e,t){let r=!1;return d0(e,function(n){if("value"in n&&/\r?\n|\r/.test(n.value)||n.type==="break")return r=!0,Ci}),!!((!e.depth||e.depth<3)&&a0(e)&&(t.options.setext||r))}function d7(e,t,r,n){const a=Math.max(Math.min(6,e.depth||1),1),i=r.createTracker(n);if(h7(e,r)){const c=r.enter("headingSetext"),h=r.enter("phrasing"),m=r.containerPhrasing(e,{...i.current(),before:`
92
+ `,after:`
93
+ `});return h(),c(),m+`
94
+ `+(a===1?"=":"-").repeat(m.length-(Math.max(m.lastIndexOf("\r"),m.lastIndexOf(`
95
+ `))+1))}const o="#".repeat(a),l=r.enter("headingAtx"),s=r.enter("phrasing");i.move(o+" ");let u=r.containerPhrasing(e,{before:"# ",after:`
96
+ `,...i.current()});return/^[\t ]/.test(u)&&(u=sn(u.charCodeAt(0))+u.slice(1)),u=u?o+" "+u:o,r.options.closeAtx&&(u+=" "+o),s(),l(),u}ic.peek=m7;function ic(e){return e.value||""}function m7(){return"<"}oc.peek=f7;function oc(e,t,r,n){const a=f0(r),i=a==='"'?"Quote":"Apostrophe",o=r.enter("image");let l=r.enter("label");const s=r.createTracker(n);let u=s.move("![");return u+=s.move(r.safe(e.alt,{before:u,after:"]",...s.current()})),u+=s.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=r.enter("destinationLiteral"),u+=s.move("<"),u+=s.move(r.safe(e.url,{before:u,after:">",...s.current()})),u+=s.move(">")):(l=r.enter("destinationRaw"),u+=s.move(r.safe(e.url,{before:u,after:e.title?" ":")",...s.current()}))),l(),e.title&&(l=r.enter(`title${i}`),u+=s.move(" "+a),u+=s.move(r.safe(e.title,{before:u,after:a,...s.current()})),u+=s.move(a),l()),u+=s.move(")"),o(),u}function f7(){return"!"}lc.peek=p7;function lc(e,t,r,n){const a=e.referenceType,i=r.enter("imageReference");let o=r.enter("label");const l=r.createTracker(n);let s=l.move("![");const u=r.safe(e.alt,{before:s,after:"]",...l.current()});s+=l.move(u+"]["),o();const c=r.stack;r.stack=[],o=r.enter("reference");const h=r.safe(r.associationId(e),{before:s,after:"]",...l.current()});return o(),r.stack=c,i(),a==="full"||!u||u!==h?s+=l.move(h+"]"):a==="shortcut"?s=s.slice(0,-1):s+=l.move("]"),s}function p7(){return"!"}sc.peek=g7;function sc(e,t,r){let n=e.value||"",a="`",i=-1;for(;new RegExp("(^|[^`])"+a+"([^`]|$)").test(n);)a+="`";for(/[^ \r\n]/.test(n)&&(/^[ \r\n]/.test(n)&&/[ \r\n]$/.test(n)||/^`|`$/.test(n))&&(n=" "+n+" ");++i<r.unsafe.length;){const o=r.unsafe[i],l=r.compilePattern(o);let s;if(o.atBreak)for(;s=l.exec(n);){let u=s.index;n.charCodeAt(u)===10&&n.charCodeAt(u-1)===13&&u--,n=n.slice(0,u)+" "+n.slice(s.index+1)}}return a+n+a}function g7(){return"`"}function uc(e,t){const r=a0(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(r===e.url||"mailto:"+r===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}cc.peek=v7;function cc(e,t,r,n){const a=f0(r),i=a==='"'?"Quote":"Apostrophe",o=r.createTracker(n);let l,s;if(uc(e,r)){const c=r.stack;r.stack=[],l=r.enter("autolink");let h=o.move("<");return h+=o.move(r.containerPhrasing(e,{before:h,after:">",...o.current()})),h+=o.move(">"),l(),r.stack=c,h}l=r.enter("link"),s=r.enter("label");let u=o.move("[");return u+=o.move(r.containerPhrasing(e,{before:u,after:"](",...o.current()})),u+=o.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=r.enter("destinationLiteral"),u+=o.move("<"),u+=o.move(r.safe(e.url,{before:u,after:">",...o.current()})),u+=o.move(">")):(s=r.enter("destinationRaw"),u+=o.move(r.safe(e.url,{before:u,after:e.title?" ":")",...o.current()}))),s(),e.title&&(s=r.enter(`title${i}`),u+=o.move(" "+a),u+=o.move(r.safe(e.title,{before:u,after:a,...o.current()})),u+=o.move(a),s()),u+=o.move(")"),l(),u}function v7(e,t,r){return uc(e,r)?"<":"["}hc.peek=b7;function hc(e,t,r,n){const a=e.referenceType,i=r.enter("linkReference");let o=r.enter("label");const l=r.createTracker(n);let s=l.move("[");const u=r.containerPhrasing(e,{before:s,after:"]",...l.current()});s+=l.move(u+"]["),o();const c=r.stack;r.stack=[],o=r.enter("reference");const h=r.safe(r.associationId(e),{before:s,after:"]",...l.current()});return o(),r.stack=c,i(),a==="full"||!u||u!==h?s+=l.move(h+"]"):a==="shortcut"?s=s.slice(0,-1):s+=l.move("]"),s}function b7(){return"["}function p0(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function y7(e){const t=p0(e),r=e.options.bulletOther;if(!r)return t==="*"?"-":"*";if(r!=="*"&&r!=="+"&&r!=="-")throw new Error("Cannot serialize items with `"+r+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(r===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+r+"`) to be different");return r}function x7(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function dc(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function w7(e,t,r,n){const a=r.enter("list"),i=r.bulletCurrent;let o=e.ordered?x7(r):p0(r);const l=e.ordered?o==="."?")":".":y7(r);let s=t&&r.bulletLastUsed?o===r.bulletLastUsed:!1;if(!e.ordered){const c=e.children?e.children[0]:void 0;if((o==="*"||o==="-")&&c&&(!c.children||!c.children[0])&&r.stack[r.stack.length-1]==="list"&&r.stack[r.stack.length-2]==="listItem"&&r.stack[r.stack.length-3]==="list"&&r.stack[r.stack.length-4]==="listItem"&&r.indexStack[r.indexStack.length-1]===0&&r.indexStack[r.indexStack.length-2]===0&&r.indexStack[r.indexStack.length-3]===0&&(s=!0),dc(r)===o&&c){let h=-1;for(;++h<e.children.length;){const m=e.children[h];if(m&&m.type==="listItem"&&m.children&&m.children[0]&&m.children[0].type==="thematicBreak"){s=!0;break}}}}s&&(o=l),r.bulletCurrent=o;const u=r.containerFlow(e,n);return r.bulletLastUsed=o,r.bulletCurrent=i,a(),u}function k7(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function S7(e,t,r,n){const a=k7(r);let i=r.bulletCurrent||p0(r);t&&t.type==="list"&&t.ordered&&(i=(typeof t.start=="number"&&t.start>-1?t.start:1)+(r.options.incrementListMarker===!1?0:t.children.indexOf(e))+i);let o=i.length+1;(a==="tab"||a==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(o=Math.ceil(o/4)*4);const l=r.createTracker(n);l.move(i+" ".repeat(o-i.length)),l.shift(o);const s=r.enter("listItem"),u=r.indentLines(r.containerFlow(e,l.current()),c);return s(),u;function c(h,m,p){return m?(p?"":" ".repeat(o))+h:(p?i:i+" ".repeat(o-i.length))+h}}function C7(e,t,r,n){const a=r.enter("paragraph"),i=r.enter("phrasing"),o=r.containerPhrasing(e,n);return i(),a(),o}const T7=mn(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function M7(e,t,r,n){return(e.children.some(function(o){return T7(o)})?r.containerPhrasing:r.containerFlow).call(r,e,n)}function A7(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}mc.peek=z7;function mc(e,t,r,n){const a=A7(r),i=r.enter("strong"),o=r.createTracker(n),l=o.move(a+a);let s=o.move(r.containerPhrasing(e,{after:a,before:l,...o.current()}));const u=s.charCodeAt(0),c=Kn(n.before.charCodeAt(n.before.length-1),u,a);c.inside&&(s=sn(u)+s.slice(1));const h=s.charCodeAt(s.length-1),m=Kn(n.after.charCodeAt(0),h,a);m.inside&&(s=s.slice(0,-1)+sn(h));const p=o.move(a+a);return i(),r.attentionEncodeSurroundingInfo={after:m.outside,before:c.outside},l+s+p}function z7(e,t,r){return r.options.strong||"*"}function N7(e,t,r,n){return r.safe(e.value,n)}function E7(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function D7(e,t,r){const n=(dc(r)+(r.options.ruleSpaces?" ":"")).repeat(E7(r));return r.options.ruleSpaces?n.slice(0,-1):n}const fc={blockquote:t7,break:il,code:o7,definition:s7,emphasis:ac,hardBreak:il,heading:d7,html:ic,image:oc,imageReference:lc,inlineCode:sc,link:cc,linkReference:hc,list:w7,listItem:S7,paragraph:C7,root:M7,strong:mc,text:N7,thematicBreak:D7};function I7(){return{enter:{table:L7,tableData:ol,tableHeader:ol,tableRow:P7},exit:{codeText:B7,table:R7,tableData:Xa,tableHeader:Xa,tableRow:Xa}}}function L7(e){const t=e._align;this.enter({type:"table",align:t.map(function(r){return r==="none"?null:r}),children:[]},e),this.data.inTable=!0}function R7(e){this.exit(e),this.data.inTable=void 0}function P7(e){this.enter({type:"tableRow",children:[]},e)}function Xa(e){this.exit(e)}function ol(e){this.enter({type:"tableCell",children:[]},e)}function B7(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,F7));const r=this.stack[this.stack.length-1];r.type,r.value=t,this.exit(e)}function F7(e,t){return t==="|"?t:e}function O7(e){const t=e||{},r=t.tableCellPadding,n=t.tablePipeAlign,a=t.stringLength,i=r?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
97
+ `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:m,table:o,tableCell:s,tableRow:l}};function o(p,y,w,C){return u(c(p,w,C),p.align)}function l(p,y,w,C){const k=h(p,w,C),A=u([k]);return A.slice(0,A.indexOf(`
98
+ `))}function s(p,y,w,C){const k=w.enter("tableCell"),A=w.enter("phrasing"),E=w.containerPhrasing(p,{...C,before:i,after:i});return A(),k(),E}function u(p,y){return J3(p,{align:y,alignDelimiters:n,padding:r,stringLength:a})}function c(p,y,w){const C=p.children;let k=-1;const A=[],E=y.enter("table");for(;++k<C.length;)A[k]=h(C[k],y,w);return E(),A}function h(p,y,w){const C=p.children;let k=-1;const A=[],E=y.enter("tableRow");for(;++k<C.length;)A[k]=s(C[k],p,y,w);return E(),A}function m(p,y,w){let C=fc.inlineCode(p,y,w);return w.stack.includes("tableCell")&&(C=C.replace(/\|/g,"\\$&")),C}}function j7(){return{exit:{taskListCheckValueChecked:ll,taskListCheckValueUnchecked:ll,paragraph:q7}}}function _7(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:H7}}}function ll(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function q7(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const r=this.stack[this.stack.length-1];r.type;const n=r.children[0];if(n&&n.type==="text"){const a=t.children;let i=-1,o;for(;++i<a.length;){const l=a[i];if(l.type==="paragraph"){o=l;break}}o===r&&(n.value=n.value.slice(1),n.value.length===0?r.children.shift():r.position&&n.position&&typeof n.position.start.offset=="number"&&(n.position.start.column++,n.position.start.offset++,r.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function H7(e,t,r,n){const a=e.children[0],i=typeof e.checked=="boolean"&&a&&a.type==="paragraph",o="["+(e.checked?"x":" ")+"] ",l=r.createTracker(n);i&&l.move(o);let s=fc.listItem(e,t,r,{...n,...l.current()});return i&&(s=s.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)),s;function u(c){return c+o}}function V7(){return[k3(),V3(),W3(),I7(),j7()]}function $7(e){return{extensions:[S3(),$3(e),X3(),O7(e),_7()]}}const U7={tokenize:Z7,partial:!0},pc={tokenize:Q7,partial:!0},gc={tokenize:J7,partial:!0},vc={tokenize:e8,partial:!0},G7={tokenize:t8,partial:!0},bc={name:"wwwAutolink",tokenize:Y7,previous:xc},yc={name:"protocolAutolink",tokenize:K7,previous:wc},$t={name:"emailAutolink",tokenize:X7,previous:kc},At={};function W7(){return{text:At}}let lr=48;for(;lr<123;)At[lr]=$t,lr++,lr===58?lr=65:lr===91&&(lr=97);At[43]=$t;At[45]=$t;At[46]=$t;At[95]=$t;At[72]=[$t,yc];At[104]=[$t,yc];At[87]=[$t,bc];At[119]=[$t,bc];function X7(e,t,r){const n=this;let a,i;return o;function o(h){return!zi(h)||!kc.call(n,n.previous)||g0(n.events)?r(h):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),l(h))}function l(h){return zi(h)?(e.consume(h),l):h===64?(e.consume(h),s):r(h)}function s(h){return h===46?e.check(G7,c,u)(h):h===45||h===95||Xe(h)?(i=!0,e.consume(h),s):c(h)}function u(h){return e.consume(h),a=!0,s}function c(h){return i&&a&&Qe(n.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(h)):r(h)}}function Y7(e,t,r){const n=this;return a;function a(o){return o!==87&&o!==119||!xc.call(n,n.previous)||g0(n.events)?r(o):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(U7,e.attempt(pc,e.attempt(gc,i),r),r)(o))}function i(o){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(o)}}function K7(e,t,r){const n=this;let a="",i=!1;return o;function o(h){return(h===72||h===104)&&wc.call(n,n.previous)&&!g0(n.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),a+=String.fromCodePoint(h),e.consume(h),l):r(h)}function l(h){if(Qe(h)&&a.length<5)return a+=String.fromCodePoint(h),e.consume(h),l;if(h===58){const m=a.toLowerCase();if(m==="http"||m==="https")return e.consume(h),s}return r(h)}function s(h){return h===47?(e.consume(h),i?u:(i=!0,s)):r(h)}function u(h){return h===null||Wn(h)||ze(h)||mr(h)||sa(h)?r(h):e.attempt(pc,e.attempt(gc,c),r)(h)}function c(h){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(h)}}function Z7(e,t,r){let n=0;return a;function a(o){return(o===87||o===119)&&n<3?(n++,e.consume(o),a):o===46&&n===3?(e.consume(o),i):r(o)}function i(o){return o===null?r(o):t(o)}}function Q7(e,t,r){let n,a,i;return o;function o(u){return u===46||u===95?e.check(vc,s,l)(u):u===null||ze(u)||mr(u)||u!==45&&sa(u)?s(u):(i=!0,e.consume(u),o)}function l(u){return u===95?n=!0:(a=n,n=void 0),e.consume(u),o}function s(u){return a||n||!i?r(u):t(u)}}function J7(e,t){let r=0,n=0;return a;function a(o){return o===40?(r++,e.consume(o),a):o===41&&n<r?i(o):o===33||o===34||o===38||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===60||o===63||o===93||o===95||o===126?e.check(vc,t,i)(o):o===null||ze(o)||mr(o)?t(o):(e.consume(o),a)}function i(o){return o===41&&n++,e.consume(o),a}}function e8(e,t,r){return n;function n(l){return l===33||l===34||l===39||l===41||l===42||l===44||l===46||l===58||l===59||l===63||l===95||l===126?(e.consume(l),n):l===38?(e.consume(l),i):l===93?(e.consume(l),a):l===60||l===null||ze(l)||mr(l)?t(l):r(l)}function a(l){return l===null||l===40||l===91||ze(l)||mr(l)?t(l):n(l)}function i(l){return Qe(l)?o(l):r(l)}function o(l){return l===59?(e.consume(l),n):Qe(l)?(e.consume(l),o):r(l)}}function t8(e,t,r){return n;function n(i){return e.consume(i),a}function a(i){return Xe(i)?r(i):t(i)}}function xc(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||ze(e)}function wc(e){return!Qe(e)}function kc(e){return!(e===47||zi(e))}function zi(e){return e===43||e===45||e===46||e===95||Xe(e)}function g0(e){let t=e.length,r=!1;for(;t--;){const n=e[t][1];if((n.type==="labelLink"||n.type==="labelImage")&&!n._balanced){r=!0;break}if(n._gfmAutolinkLiteralWalkedInto){r=!1;break}}return e.length>0&&!r&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),r}const r8={tokenize:c8,partial:!0};function n8(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:l8,continuation:{tokenize:s8},exit:u8}},text:{91:{name:"gfmFootnoteCall",tokenize:o8},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:a8,resolveTo:i8}}}}function a8(e,t,r){const n=this;let a=n.events.length;const i=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let o;for(;a--;){const s=n.events[a][1];if(s.type==="labelImage"){o=s;break}if(s.type==="gfmFootnoteCall"||s.type==="labelLink"||s.type==="label"||s.type==="image"||s.type==="link")break}return l;function l(s){if(!o||!o._balanced)return r(s);const u=yt(n.sliceSerialize({start:o.end,end:n.now()}));return u.codePointAt(0)!==94||!i.includes(u.slice(1))?r(s):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(s),e.exit("gfmFootnoteCallLabelMarker"),t(s))}}function i8(e,t){let r=e.length;for(;r--;)if(e[r][1].type==="labelImage"&&e[r][0]==="enter"){e[r][1];break}e[r+1][1].type="data",e[r+3][1].type="gfmFootnoteCallLabelMarker";const n={type:"gfmFootnoteCall",start:Object.assign({},e[r+3][1].start),end:Object.assign({},e[e.length-1][1].end)},a={type:"gfmFootnoteCallMarker",start:Object.assign({},e[r+3][1].end),end:Object.assign({},e[r+3][1].end)};a.end.column++,a.end.offset++,a.end._bufferIndex++;const i={type:"gfmFootnoteCallString",start:Object.assign({},a.end),end:Object.assign({},e[e.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},i.start),end:Object.assign({},i.end)},l=[e[r+1],e[r+2],["enter",n,t],e[r+3],e[r+4],["enter",a,t],["exit",a,t],["enter",i,t],["enter",o,t],["exit",o,t],["exit",i,t],e[e.length-2],e[e.length-1],["exit",n,t]];return e.splice(r,e.length-r+1,...l),e}function o8(e,t,r){const n=this,a=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let i=0,o;return l;function l(h){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(h),e.exit("gfmFootnoteCallLabelMarker"),s}function s(h){return h!==94?r(h):(e.enter("gfmFootnoteCallMarker"),e.consume(h),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(h){if(i>999||h===93&&!o||h===null||h===91||ze(h))return r(h);if(h===93){e.exit("chunkString");const m=e.exit("gfmFootnoteCallString");return a.includes(yt(n.sliceSerialize(m)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(h),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):r(h)}return ze(h)||(o=!0),i++,e.consume(h),h===92?c:u}function c(h){return h===91||h===92||h===93?(e.consume(h),i++,u):u(h)}}function l8(e,t,r){const n=this,a=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let i,o=0,l;return s;function s(y){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(y),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(y){return y===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(y),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):r(y)}function c(y){if(o>999||y===93&&!l||y===null||y===91||ze(y))return r(y);if(y===93){e.exit("chunkString");const w=e.exit("gfmFootnoteDefinitionLabelString");return i=yt(n.sliceSerialize(w)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(y),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),m}return ze(y)||(l=!0),o++,e.consume(y),y===92?h:c}function h(y){return y===91||y===92||y===93?(e.consume(y),o++,c):c(y)}function m(y){return y===58?(e.enter("definitionMarker"),e.consume(y),e.exit("definitionMarker"),a.includes(i)||a.push(i),ve(e,p,"gfmFootnoteDefinitionWhitespace")):r(y)}function p(y){return t(y)}}function s8(e,t,r){return e.check(dn,t,e.attempt(r8,t,r))}function u8(e){e.exit("gfmFootnoteDefinition")}function c8(e,t,r){const n=this;return ve(e,a,"gfmFootnoteDefinitionIndent",5);function a(i){const o=n.events[n.events.length-1];return o&&o[1].type==="gfmFootnoteDefinitionIndent"&&o[2].sliceSerialize(o[1],!0).length===4?t(i):r(i)}}function h8(e){let r=(e||{}).singleTilde;const n={name:"strikethrough",tokenize:i,resolveAll:a};return r==null&&(r=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}};function a(o,l){let s=-1;for(;++s<o.length;)if(o[s][0]==="enter"&&o[s][1].type==="strikethroughSequenceTemporary"&&o[s][1]._close){let u=s;for(;u--;)if(o[u][0]==="exit"&&o[u][1].type==="strikethroughSequenceTemporary"&&o[u][1]._open&&o[s][1].end.offset-o[s][1].start.offset===o[u][1].end.offset-o[u][1].start.offset){o[s][1].type="strikethroughSequence",o[u][1].type="strikethroughSequence";const c={type:"strikethrough",start:Object.assign({},o[u][1].start),end:Object.assign({},o[s][1].end)},h={type:"strikethroughText",start:Object.assign({},o[u][1].end),end:Object.assign({},o[s][1].start)},m=[["enter",c,l],["enter",o[u][1],l],["exit",o[u][1],l],["enter",h,l]],p=l.parser.constructs.insideSpan.null;p&&ct(m,m.length,0,ua(p,o.slice(u+1,s),l)),ct(m,m.length,0,[["exit",h,l],["enter",o[s][1],l],["exit",o[s][1],l],["exit",c,l]]),ct(o,u-1,s-u+3,m),s=u+m.length-2;break}}for(s=-1;++s<o.length;)o[s][1].type==="strikethroughSequenceTemporary"&&(o[s][1].type="data");return o}function i(o,l,s){const u=this.previous,c=this.events;let h=0;return m;function m(y){return u===126&&c[c.length-1][1].type!=="characterEscape"?s(y):(o.enter("strikethroughSequenceTemporary"),p(y))}function p(y){const w=Br(u);if(y===126)return h>1?s(y):(o.consume(y),h++,p);if(h<2&&!r)return s(y);const C=o.exit("strikethroughSequenceTemporary"),k=Br(y);return C._open=!k||k===2&&!!w,C._close=!w||w===2&&!!k,l(y)}}}class d8{constructor(){this.map=[]}add(t,r,n){m8(this,t,r,n)}consume(t){if(this.map.sort(function(i,o){return i[0]-o[0]}),this.map.length===0)return;let r=this.map.length;const n=[];for(;r>0;)r-=1,n.push(t.slice(this.map[r][0]+this.map[r][1]),this.map[r][2]),t.length=this.map[r][0];n.push(t.slice()),t.length=0;let a=n.pop();for(;a;){for(const i of a)t.push(i);a=n.pop()}this.map.length=0}}function m8(e,t,r,n){let a=0;if(!(r===0&&n.length===0)){for(;a<e.map.length;){if(e.map[a][0]===t){e.map[a][1]+=r,e.map[a][2].push(...n);return}a+=1}e.map.push([t,r,n])}}function f8(e,t){let r=!1;const n=[];for(;t<e.length;){const a=e[t];if(r){if(a[0]==="enter")a[1].type==="tableContent"&&n.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(a[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const i=n.length-1;n[i]=n[i]==="left"?"center":"right"}}else if(a[1].type==="tableDelimiterRow")break}else a[0]==="enter"&&a[1].type==="tableDelimiterRow"&&(r=!0);t+=1}return n}function p8(){return{flow:{null:{name:"table",tokenize:g8,resolveAll:v8}}}}function g8(e,t,r){const n=this;let a=0,i=0,o;return l;function l(L){let K=n.events.length-1;for(;K>-1;){const J=n.events[K][1].type;if(J==="lineEnding"||J==="linePrefix")K--;else break}const G=K>-1?n.events[K][1].type:null,ce=G==="tableHead"||G==="tableRow"?D:s;return ce===D&&n.parser.lazy[n.now().line]?r(L):ce(L)}function s(L){return e.enter("tableHead"),e.enter("tableRow"),u(L)}function u(L){return L===124||(o=!0,i+=1),c(L)}function c(L){return L===null?r(L):oe(L)?i>1?(i=0,n.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(L),e.exit("lineEnding"),p):r(L):be(L)?ve(e,c,"whitespace")(L):(i+=1,o&&(o=!1,a+=1),L===124?(e.enter("tableCellDivider"),e.consume(L),e.exit("tableCellDivider"),o=!0,c):(e.enter("data"),h(L)))}function h(L){return L===null||L===124||ze(L)?(e.exit("data"),c(L)):(e.consume(L),L===92?m:h)}function m(L){return L===92||L===124?(e.consume(L),h):h(L)}function p(L){return n.interrupt=!1,n.parser.lazy[n.now().line]?r(L):(e.enter("tableDelimiterRow"),o=!1,be(L)?ve(e,y,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(L):y(L))}function y(L){return L===45||L===58?C(L):L===124?(o=!0,e.enter("tableCellDivider"),e.consume(L),e.exit("tableCellDivider"),w):F(L)}function w(L){return be(L)?ve(e,C,"whitespace")(L):C(L)}function C(L){return L===58?(i+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(L),e.exit("tableDelimiterMarker"),k):L===45?(i+=1,k(L)):L===null||oe(L)?B(L):F(L)}function k(L){return L===45?(e.enter("tableDelimiterFiller"),A(L)):F(L)}function A(L){return L===45?(e.consume(L),A):L===58?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(L),e.exit("tableDelimiterMarker"),E):(e.exit("tableDelimiterFiller"),E(L))}function E(L){return be(L)?ve(e,B,"whitespace")(L):B(L)}function B(L){return L===124?y(L):L===null||oe(L)?!o||a!==i?F(L):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(L)):F(L)}function F(L){return r(L)}function D(L){return e.enter("tableRow"),_(L)}function _(L){return L===124?(e.enter("tableCellDivider"),e.consume(L),e.exit("tableCellDivider"),_):L===null||oe(L)?(e.exit("tableRow"),t(L)):be(L)?ve(e,_,"whitespace")(L):(e.enter("data"),O(L))}function O(L){return L===null||L===124||ze(L)?(e.exit("data"),_(L)):(e.consume(L),L===92?H:O)}function H(L){return L===92||L===124?(e.consume(L),O):O(L)}}function v8(e,t){let r=-1,n=!0,a=0,i=[0,0,0,0],o=[0,0,0,0],l=!1,s=0,u,c,h;const m=new d8;for(;++r<e.length;){const p=e[r],y=p[1];p[0]==="enter"?y.type==="tableHead"?(l=!1,s!==0&&(sl(m,t,s,u,c),c=void 0,s=0),u={type:"table",start:Object.assign({},y.start),end:Object.assign({},y.end)},m.add(r,0,[["enter",u,t]])):y.type==="tableRow"||y.type==="tableDelimiterRow"?(n=!0,h=void 0,i=[0,0,0,0],o=[0,r+1,0,0],l&&(l=!1,c={type:"tableBody",start:Object.assign({},y.start),end:Object.assign({},y.end)},m.add(r,0,[["enter",c,t]])),a=y.type==="tableDelimiterRow"?2:c?3:1):a&&(y.type==="data"||y.type==="tableDelimiterMarker"||y.type==="tableDelimiterFiller")?(n=!1,o[2]===0&&(i[1]!==0&&(o[0]=o[1],h=En(m,t,i,a,void 0,h),i=[0,0,0,0]),o[2]=r)):y.type==="tableCellDivider"&&(n?n=!1:(i[1]!==0&&(o[0]=o[1],h=En(m,t,i,a,void 0,h)),i=o,o=[i[1],r,0,0])):y.type==="tableHead"?(l=!0,s=r):y.type==="tableRow"||y.type==="tableDelimiterRow"?(s=r,i[1]!==0?(o[0]=o[1],h=En(m,t,i,a,r,h)):o[1]!==0&&(h=En(m,t,o,a,r,h)),a=0):a&&(y.type==="data"||y.type==="tableDelimiterMarker"||y.type==="tableDelimiterFiller")&&(o[3]=r)}for(s!==0&&sl(m,t,s,u,c),m.consume(t.events),r=-1;++r<t.events.length;){const p=t.events[r];p[0]==="enter"&&p[1].type==="table"&&(p[1]._align=f8(t.events,r))}return e}function En(e,t,r,n,a,i){const o=n===1?"tableHeader":n===2?"tableDelimiter":"tableData",l="tableContent";r[0]!==0&&(i.end=Object.assign({},Er(t.events,r[0])),e.add(r[0],0,[["exit",i,t]]));const s=Er(t.events,r[1]);if(i={type:o,start:Object.assign({},s),end:Object.assign({},s)},e.add(r[1],0,[["enter",i,t]]),r[2]!==0){const u=Er(t.events,r[2]),c=Er(t.events,r[3]),h={type:l,start:Object.assign({},u),end:Object.assign({},c)};if(e.add(r[2],0,[["enter",h,t]]),n!==2){const m=t.events[r[2]],p=t.events[r[3]];if(m[1].end=Object.assign({},p[1].end),m[1].type="chunkText",m[1].contentType="text",r[3]>r[2]+1){const y=r[2]+1,w=r[3]-r[2]-1;e.add(y,w,[])}}e.add(r[3]+1,0,[["exit",h,t]])}return a!==void 0&&(i.end=Object.assign({},Er(t.events,a)),e.add(a,0,[["exit",i,t]]),i=void 0),i}function sl(e,t,r,n,a){const i=[],o=Er(t.events,r);a&&(a.end=Object.assign({},o),i.push(["exit",a,t])),n.end=Object.assign({},o),i.push(["exit",n,t]),e.add(r+1,0,i)}function Er(e,t){const r=e[t],n=r[0]==="enter"?"start":"end";return r[1][n]}const b8={name:"tasklistCheck",tokenize:x8};function y8(){return{text:{91:b8}}}function x8(e,t,r){const n=this;return a;function a(s){return n.previous!==null||!n._gfmTasklistFirstContentOfListItem?r(s):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(s),e.exit("taskListCheckMarker"),i)}function i(s){return ze(s)?(e.enter("taskListCheckValueUnchecked"),e.consume(s),e.exit("taskListCheckValueUnchecked"),o):s===88||s===120?(e.enter("taskListCheckValueChecked"),e.consume(s),e.exit("taskListCheckValueChecked"),o):r(s)}function o(s){return s===93?(e.enter("taskListCheckMarker"),e.consume(s),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),l):r(s)}function l(s){return oe(s)?t(s):be(s)?e.check({tokenize:w8},t,r)(s):r(s)}}function w8(e,t,r){return ve(e,n,"whitespace");function n(a){return a===null?r(a):t(a)}}function k8(e){return Iu([W7(),n8(),h8(e),p8(),y8()])}const S8={};function C8(e){const t=this,r=e||S8,n=t.data(),a=n.micromarkExtensions||(n.micromarkExtensions=[]),i=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),o=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);a.push(k8(r)),i.push(V7()),o.push($7(r))}function T8(){return{enter:{mathFlow:e,mathFlowFenceMeta:t,mathText:i},exit:{mathFlow:a,mathFlowFence:n,mathFlowFenceMeta:r,mathFlowValue:l,mathText:o,mathTextData:l}};function e(s){const u={type:"element",tagName:"code",properties:{className:["language-math","math-display"]},children:[]};this.enter({type:"math",meta:null,value:"",data:{hName:"pre",hChildren:[u]}},s)}function t(){this.buffer()}function r(){const s=this.resume(),u=this.stack[this.stack.length-1];u.type,u.meta=s}function n(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)}function a(s){const u=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),c=this.stack[this.stack.length-1];c.type,this.exit(s),c.value=u;const h=c.data.hChildren[0];h.type,h.tagName,h.children.push({type:"text",value:u}),this.data.mathFlowInside=void 0}function i(s){this.enter({type:"inlineMath",value:"",data:{hName:"code",hProperties:{className:["language-math","math-inline"]},hChildren:[]}},s),this.buffer()}function o(s){const u=this.resume(),c=this.stack[this.stack.length-1];c.type,this.exit(s),c.value=u,c.data.hChildren.push({type:"text",value:u})}function l(s){this.config.enter.data.call(this,s),this.config.exit.data.call(this,s)}}function M8(e){let t=(e||{}).singleDollarTextMath;return t==null&&(t=!0),n.peek=a,{unsafe:[{character:"\r",inConstruct:"mathFlowMeta"},{character:`
99
+ `,inConstruct:"mathFlowMeta"},{character:"$",after:t?void 0:"\\$",inConstruct:"phrasing"},{character:"$",inConstruct:"mathFlowMeta"},{atBreak:!0,character:"$",after:"\\$"}],handlers:{math:r,inlineMath:n}};function r(i,o,l,s){const u=i.value||"",c=l.createTracker(s),h="$".repeat(Math.max(nc(u,"$")+1,2)),m=l.enter("mathFlow");let p=c.move(h);if(i.meta){const y=l.enter("mathFlowMeta");p+=c.move(l.safe(i.meta,{after:`
100
+ `,before:p,encode:["$"],...c.current()})),y()}return p+=c.move(`
101
+ `),u&&(p+=c.move(u+`
102
+ `)),p+=c.move(h),m(),p}function n(i,o,l){let s=i.value||"",u=1;for(t||u++;new RegExp("(^|[^$])"+"\\$".repeat(u)+"([^$]|$)").test(s);)u++;const c="$".repeat(u);/[^ \r\n]/.test(s)&&(/^[ \r\n]/.test(s)&&/[ \r\n]$/.test(s)||/^\$|\$$/.test(s))&&(s=" "+s+" ");let h=-1;for(;++h<l.unsafe.length;){const m=l.unsafe[h];if(!m.atBreak)continue;const p=l.compilePattern(m);let y;for(;y=p.exec(s);){let w=y.index;s.codePointAt(w)===10&&s.codePointAt(w-1)===13&&w--,s=s.slice(0,w)+" "+s.slice(y.index+1)}}return c+s+c}function a(){return"$"}}const A8={tokenize:z8,concrete:!0,name:"mathFlow"},ul={tokenize:N8,partial:!0};function z8(e,t,r){const n=this,a=n.events[n.events.length-1],i=a&&a[1].type==="linePrefix"?a[2].sliceSerialize(a[1],!0).length:0;let o=0;return l;function l(A){return e.enter("mathFlow"),e.enter("mathFlowFence"),e.enter("mathFlowFenceSequence"),s(A)}function s(A){return A===36?(e.consume(A),o++,s):o<2?r(A):(e.exit("mathFlowFenceSequence"),ve(e,u,"whitespace")(A))}function u(A){return A===null||oe(A)?h(A):(e.enter("mathFlowFenceMeta"),e.enter("chunkString",{contentType:"string"}),c(A))}function c(A){return A===null||oe(A)?(e.exit("chunkString"),e.exit("mathFlowFenceMeta"),h(A)):A===36?r(A):(e.consume(A),c)}function h(A){return e.exit("mathFlowFence"),n.interrupt?t(A):e.attempt(ul,m,C)(A)}function m(A){return e.attempt({tokenize:k,partial:!0},C,p)(A)}function p(A){return(i?ve(e,y,"linePrefix",i+1):y)(A)}function y(A){return A===null?C(A):oe(A)?e.attempt(ul,m,C)(A):(e.enter("mathFlowValue"),w(A))}function w(A){return A===null||oe(A)?(e.exit("mathFlowValue"),y(A)):(e.consume(A),w)}function C(A){return e.exit("mathFlow"),t(A)}function k(A,E,B){let F=0;return ve(A,D,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function D(H){return A.enter("mathFlowFence"),A.enter("mathFlowFenceSequence"),_(H)}function _(H){return H===36?(F++,A.consume(H),_):F<o?B(H):(A.exit("mathFlowFenceSequence"),ve(A,O,"whitespace")(H))}function O(H){return H===null||oe(H)?(A.exit("mathFlowFence"),E(H)):B(H)}}}function N8(e,t,r){const n=this;return a;function a(o){return o===null?t(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i)}function i(o){return n.parser.lazy[n.now().line]?r(o):t(o)}}function E8(e){let r=(e||{}).singleDollarTextMath;return r==null&&(r=!0),{tokenize:n,resolve:D8,previous:I8,name:"mathText"};function n(a,i,o){let l=0,s,u;return c;function c(w){return a.enter("mathText"),a.enter("mathTextSequence"),h(w)}function h(w){return w===36?(a.consume(w),l++,h):l<2&&!r?o(w):(a.exit("mathTextSequence"),m(w))}function m(w){return w===null?o(w):w===36?(u=a.enter("mathTextSequence"),s=0,y(w)):w===32?(a.enter("space"),a.consume(w),a.exit("space"),m):oe(w)?(a.enter("lineEnding"),a.consume(w),a.exit("lineEnding"),m):(a.enter("mathTextData"),p(w))}function p(w){return w===null||w===32||w===36||oe(w)?(a.exit("mathTextData"),m(w)):(a.consume(w),p)}function y(w){return w===36?(a.consume(w),s++,y):s===l?(a.exit("mathTextSequence"),a.exit("mathText"),i(w)):(u.type="mathTextData",p(w))}}}function D8(e){let t=e.length-4,r=3,n,a;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(n=r;++n<t;)if(e[n][1].type==="mathTextData"){e[t][1].type="mathTextPadding",e[r][1].type="mathTextPadding",r+=2,t-=2;break}}for(n=r-1,t++;++n<=t;)a===void 0?n!==t&&e[n][1].type!=="lineEnding"&&(a=n):(n===t||e[n][1].type==="lineEnding")&&(e[a][1].type="mathTextData",n!==a+2&&(e[a][1].end=e[n-1][1].end,e.splice(a+2,n-a-2),t-=n-a-2,n=a+2),a=void 0);return e}function I8(e){return e!==36||this.events[this.events.length-1][1].type==="characterEscape"}function L8(e){return{flow:{36:A8},text:{36:E8(e)}}}class at{constructor(t,r,n){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=t,this.start=r,this.end=n}static range(t,r){return r?!t||!t.loc||!r.loc||t.loc.lexer!==r.loc.lexer?null:new at(t.loc.lexer,t.loc.start,r.loc.end):t&&t.loc}}class ht{constructor(t,r){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=t,this.loc=r}range(t,r){return new ht(r,at.range(this,t))}}class U{constructor(t,r){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;var n="KaTeX parse error: "+t,a,i,o=r&&r.loc;if(o&&o.start<=o.end){var l=o.lexer.input;a=o.start,i=o.end,a===l.length?n+=" at end of input: ":n+=" at position "+(a+1)+": ";var s=l.slice(a,i).replace(/[^]/g,"$&̲"),u;a>15?u="…"+l.slice(a-15,a):u=l.slice(0,a);var c;i+15<l.length?c=l.slice(i,i+15)+"…":c=l.slice(i),n+=u+s+c}var h=new Error(n);return h.name="ParseError",h.__proto__=U.prototype,h.position=a,a!=null&&i!=null&&(h.length=i-a),h.rawMessage=t,h}}U.prototype.__proto__=Error.prototype;var R8=function(t,r){return t===void 0?r:t},P8=/([A-Z])/g,B8=function(t){return t.replace(P8,"-$1").toLowerCase()},F8={"&":"&amp;",">":"&gt;","<":"&lt;",'"':"&quot;","'":"&#x27;"},O8=/[&><"']/g;function j8(e){return String(e).replace(O8,t=>F8[t])}var Sc=function e(t){return t.type==="ordgroup"||t.type==="color"?t.body.length===1?e(t.body[0]):t:t.type==="font"?e(t.body):t},_8=function(t){var r=Sc(t);return r.type==="mathord"||r.type==="textord"||r.type==="atom"},q8=function(t){if(!t)throw new Error("Expected non-null, but got "+String(t));return t},H8=function(t){var r=/^[\x00-\x20]*([^\\/#?]*?)(:|&#0*58|&#x0*3a|&colon)/i.exec(t);return r?r[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(r[1])?null:r[1].toLowerCase():"_relative"},Ce={deflt:R8,escape:j8,hyphenate:B8,getBaseElem:Sc,isCharacterBox:_8,protocolFromUrl:H8},Vn={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format <type>"},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color <color>",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:e=>"#"+e},macros:{type:"object",cli:"-m, --macro <def>",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:"--min-rule-thickness <size>",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:e=>Math.max(0,e),cli:"-s, --max-size <n>",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:e=>Math.max(0,e),cli:"-e, --max-expand <n>",cliProcessor:e=>e==="Infinity"?1/0:parseInt(e)},globalGroup:{type:"boolean",cli:!1}};function V8(e){if(e.default)return e.default;var t=e.type,r=Array.isArray(t)?t[0]:t;if(typeof r!="string")return r.enum[0];switch(r){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}class v0{constructor(t){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,t=t||{};for(var r in Vn)if(Vn.hasOwnProperty(r)){var n=Vn[r];this[r]=t[r]!==void 0?n.processor?n.processor(t[r]):t[r]:V8(n)}}reportNonstrict(t,r,n){var a=this.strict;if(typeof a=="function"&&(a=a(t,r,n)),!(!a||a==="ignore")){if(a===!0||a==="error")throw new U("LaTeX-incompatible input and strict mode is set to 'error': "+(r+" ["+t+"]"),n);a==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(r+" ["+t+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+a+"': "+r+" ["+t+"]"))}}useStrictBehavior(t,r,n){var a=this.strict;if(typeof a=="function")try{a=a(t,r,n)}catch{a="error"}return!a||a==="ignore"?!1:a===!0||a==="error"?!0:a==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(r+" ["+t+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+a+"': "+r+" ["+t+"]")),!1)}isTrusted(t){if(t.url&&!t.protocol){var r=Ce.protocolFromUrl(t.url);if(r==null)return!1;t.protocol=r}var n=typeof this.trust=="function"?this.trust(t):this.trust;return!!n}}class Xt{constructor(t,r,n){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=t,this.size=r,this.cramped=n}sup(){return kt[$8[this.id]]}sub(){return kt[U8[this.id]]}fracNum(){return kt[G8[this.id]]}fracDen(){return kt[W8[this.id]]}cramp(){return kt[X8[this.id]]}text(){return kt[Y8[this.id]]}isTight(){return this.size>=2}}var b0=0,Zn=1,Lr=2,jt=3,un=4,ft=5,Fr=6,Je=7,kt=[new Xt(b0,0,!1),new Xt(Zn,0,!0),new Xt(Lr,1,!1),new Xt(jt,1,!0),new Xt(un,2,!1),new Xt(ft,2,!0),new Xt(Fr,3,!1),new Xt(Je,3,!0)],$8=[un,ft,un,ft,Fr,Je,Fr,Je],U8=[ft,ft,ft,ft,Je,Je,Je,Je],G8=[Lr,jt,un,ft,Fr,Je,Fr,Je],W8=[jt,jt,ft,ft,Je,Je,Je,Je],X8=[Zn,Zn,jt,jt,ft,ft,Je,Je],Y8=[b0,Zn,Lr,jt,Lr,jt,Lr,jt],ue={DISPLAY:kt[b0],TEXT:kt[Lr],SCRIPT:kt[un],SCRIPTSCRIPT:kt[Fr]},Ni=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function K8(e){for(var t=0;t<Ni.length;t++)for(var r=Ni[t],n=0;n<r.blocks.length;n++){var a=r.blocks[n];if(e>=a[0]&&e<=a[1])return r.name}return null}var $n=[];Ni.forEach(e=>e.blocks.forEach(t=>$n.push(...t)));function Cc(e){for(var t=0;t<$n.length;t+=2)if(e>=$n[t]&&e<=$n[t+1])return!0;return!1}var zr=80,Z8=function(t,r){return"M95,"+(622+t+r)+`
71
103
  c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
72
104
  c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
73
105
  c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10
74
106
  s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429
75
107
  c69,-144,104.5,-217.7,106.5,-221
76
- l`+e/2.075+" -"+e+`
108
+ l`+t/2.075+" -"+t+`
77
109
  c5.3,-9.3,12,-14,20,-14
78
- H400000v`+(40+e)+`H845.2724
110
+ H400000v`+(40+t)+`H845.2724
79
111
  s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
80
112
  c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z
81
- M`+(834+e)+" "+t+"h400000v"+(40+e)+"h-400000z"},D2=function(e,t){return"M263,"+(601+e+t)+`c0.7,0,18,39.7,52,119
113
+ M`+(834+t)+" "+r+"h400000v"+(40+t)+"h-400000z"},Q8=function(t,r){return"M263,"+(601+t+r)+`c0.7,0,18,39.7,52,119
82
114
  c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
83
115
  c340,-704.7,510.7,-1060.3,512,-1067
84
- l`+e/2.084+" -"+e+`
116
+ l`+t/2.084+" -"+t+`
85
117
  c4.7,-7.3,11,-11,19,-11
86
- H40000v`+(40+e)+`H1012.3
118
+ H40000v`+(40+t)+`H1012.3
87
119
  s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232
88
120
  c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1
89
121
  s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
90
122
  c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
91
- M`+(1001+e)+" "+t+"h400000v"+(40+e)+"h-400000z"},E2=function(e,t){return"M983 "+(10+e+t)+`
92
- l`+e/3.13+" -"+e+`
93
- c4,-6.7,10,-10,18,-10 H400000v`+(40+e)+`
123
+ M`+(1001+t)+" "+r+"h400000v"+(40+t)+"h-400000z"},J8=function(t,r){return"M983 "+(10+t+r)+`
124
+ l`+t/3.13+" -"+t+`
125
+ c4,-6.7,10,-10,18,-10 H400000v`+(40+t)+`
94
126
  H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7
95
127
  s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744
96
128
  c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30
97
129
  c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722
98
130
  c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5
99
131
  c53.7,-170.3,84.5,-266.8,92.5,-289.5z
100
- M`+(1001+e)+" "+t+"h400000v"+(40+e)+"h-400000z"},R2=function(e,t){return"M424,"+(2398+e+t)+`
132
+ M`+(1001+t)+" "+r+"h400000v"+(40+t)+"h-400000z"},eg=function(t,r){return"M424,"+(2398+t+r)+`
101
133
  c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514
102
134
  c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20
103
135
  s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121
104
136
  s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081
105
- l`+e/4.223+" -"+e+`c4,-6.7,10,-10,18,-10 H400000
106
- v`+(40+e)+`H1014.6
137
+ l`+t/4.223+" -"+t+`c4,-6.7,10,-10,18,-10 H400000
138
+ v`+(40+t)+`H1014.6
107
139
  s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185
108
140
  c-2,6,-10,9,-24,9
109
- c-8,0,-12,-0.7,-12,-2z M`+(1001+e)+" "+t+`
110
- h400000v`+(40+e)+"h-400000z"},B2=function(e,t){return"M473,"+(2713+e+t)+`
111
- c339.3,-1799.3,509.3,-2700,510,-2702 l`+e/5.298+" -"+e+`
112
- c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+e)+`H1017.7
141
+ c-8,0,-12,-0.7,-12,-2z M`+(1001+t)+" "+r+`
142
+ h400000v`+(40+t)+"h-400000z"},tg=function(t,r){return"M473,"+(2713+t+r)+`
143
+ c339.3,-1799.3,509.3,-2700,510,-2702 l`+t/5.298+" -"+t+`
144
+ c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+t)+`H1017.7
113
145
  s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9
114
146
  c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200
115
147
  c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26
116
148
  s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,
117
- 606zM`+(1001+e)+" "+t+"h400000v"+(40+e)+"H1017.7z"},L2=function(e){var t=e/2;return"M400000 "+e+" H0 L"+t+" 0 l65 45 L145 "+(e-80)+" H400000z"},j2=function(e,t,a){var n=a-54-t-e;return"M702 "+(e+t)+"H400000"+(40+e)+`
118
- H742v`+n+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1
149
+ 606zM`+(1001+t)+" "+r+"h400000v"+(40+t)+"H1017.7z"},rg=function(t){var r=t/2;return"M400000 "+t+" H0 L"+r+" 0 l65 45 L145 "+(t-80)+" H400000z"},ng=function(t,r,n){var a=n-54-r-t;return"M702 "+(t+r)+"H400000"+(40+t)+`
150
+ H742v`+a+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1
119
151
  h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170
120
152
  c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
121
- 219 661 l218 661zM702 `+t+"H400000v"+(40+e)+"H742z"},I2=function(e,t,a){t=1e3*t;var n="";switch(e){case"sqrtMain":n=N2(t,F0);break;case"sqrtSize1":n=D2(t,F0);break;case"sqrtSize2":n=E2(t,F0);break;case"sqrtSize3":n=R2(t,F0);break;case"sqrtSize4":n=B2(t,F0);break;case"sqrtTall":n=j2(t,F0,a)}return n},P2=function(e,t){switch(e){case"⎜":return"M291 0 H417 V"+t+" H291z M291 0 H417 V"+t+" H291z";case"∣":return"M145 0 H188 V"+t+" H145z M145 0 H188 V"+t+" H145z";case"∥":return"M145 0 H188 V"+t+" H145z M145 0 H188 V"+t+" H145z"+("M367 0 H410 V"+t+" H367z M367 0 H410 V"+t+" H367z");case"⎟":return"M457 0 H583 V"+t+" H457z M457 0 H583 V"+t+" H457z";case"⎢":return"M319 0 H403 V"+t+" H319z M319 0 H403 V"+t+" H319z";case"⎥":return"M263 0 H347 V"+t+" H263z M263 0 H347 V"+t+" H263z";case"⎪":return"M384 0 H504 V"+t+" H384z M384 0 H504 V"+t+" H384z";case"⏐":return"M312 0 H355 V"+t+" H312z M312 0 H355 V"+t+" H312z";case"‖":return"M257 0 H300 V"+t+" H257z M257 0 H300 V"+t+" H257z"+("M478 0 H521 V"+t+" H478z M478 0 H521 V"+t+" H478z");default:return""}},Qa={doubleleftarrow:`M262 157
153
+ 219 661 l218 661zM702 `+r+"H400000v"+(40+t)+"H742z"},ag=function(t,r,n){r=1e3*r;var a="";switch(t){case"sqrtMain":a=Z8(r,zr);break;case"sqrtSize1":a=Q8(r,zr);break;case"sqrtSize2":a=J8(r,zr);break;case"sqrtSize3":a=eg(r,zr);break;case"sqrtSize4":a=tg(r,zr);break;case"sqrtTall":a=ng(r,zr,n)}return a},ig=function(t,r){switch(t){case"⎜":return"M291 0 H417 V"+r+" H291z M291 0 H417 V"+r+" H291z";case"∣":return"M145 0 H188 V"+r+" H145z M145 0 H188 V"+r+" H145z";case"∥":return"M145 0 H188 V"+r+" H145z M145 0 H188 V"+r+" H145z"+("M367 0 H410 V"+r+" H367z M367 0 H410 V"+r+" H367z");case"⎟":return"M457 0 H583 V"+r+" H457z M457 0 H583 V"+r+" H457z";case"⎢":return"M319 0 H403 V"+r+" H319z M319 0 H403 V"+r+" H319z";case"⎥":return"M263 0 H347 V"+r+" H263z M263 0 H347 V"+r+" H263z";case"⎪":return"M384 0 H504 V"+r+" H384z M384 0 H504 V"+r+" H384z";case"⏐":return"M312 0 H355 V"+r+" H312z M312 0 H355 V"+r+" H312z";case"‖":return"M257 0 H300 V"+r+" H257z M257 0 H300 V"+r+" H257z"+("M478 0 H521 V"+r+" H478z M478 0 H521 V"+r+" H478z");default:return""}},cl={doubleleftarrow:`M262 157
122
154
  l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3
123
155
  0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28
124
156
  14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5
@@ -293,43 +325,59 @@ M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`
293
325
  c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
294
326
  -231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
295
327
  c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
296
- M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},O2=function(e,t){switch(e){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+t+` v1759 h347 v-84
297
- H403z M403 1759 V0 H319 V1759 v`+t+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+t+` v1759 H0 v84 H347z
298
- M347 1759 V0 H263 V1759 v`+t+" v1759 h84z";case"vert":return"M145 15 v585 v"+t+` v585 c2.667,10,9.667,15,21,15
299
- c10,0,16.667,-5,20,-15 v-585 v`+-t+` v-585 c-2.667,-10,-9.667,-15,-21,-15
300
- c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+t+" v585 h43z";case"doublevert":return"M145 15 v585 v"+t+` v585 c2.667,10,9.667,15,21,15
301
- c10,0,16.667,-5,20,-15 v-585 v`+-t+` v-585 c-2.667,-10,-9.667,-15,-21,-15
302
- c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+t+` v585 h43z
303
- M367 15 v585 v`+t+` v585 c2.667,10,9.667,15,21,15
304
- c10,0,16.667,-5,20,-15 v-585 v`+-t+` v-585 c-2.667,-10,-9.667,-15,-21,-15
305
- c-10,0,-16.667,5,-20,15z M410 15 H367 v585 v`+t+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+t+` v1715 h263 v84 H319z
306
- MM319 602 V0 H403 V602 v`+t+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+t+` v1799 H0 v-84 H319z
307
- MM319 602 V0 H403 V602 v`+t+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+t+` v602 h84z
308
- M403 1759 V0 H319 V1759 v`+t+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+t+` v602 h84z
309
- M347 1759 V0 h-84 V1759 v`+t+" v602 h84z";case"lparen":return`M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1
328
+ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},og=function(t,r){switch(t){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+r+` v1759 h347 v-84
329
+ H403z M403 1759 V0 H319 V1759 v`+r+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+r+` v1759 H0 v84 H347z
330
+ M347 1759 V0 H263 V1759 v`+r+" v1759 h84z";case"vert":return"M145 15 v585 v"+r+` v585 c2.667,10,9.667,15,21,15
331
+ c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15
332
+ c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+r+" v585 h43z";case"doublevert":return"M145 15 v585 v"+r+` v585 c2.667,10,9.667,15,21,15
333
+ c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15
334
+ c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+r+` v585 h43z
335
+ M367 15 v585 v`+r+` v585 c2.667,10,9.667,15,21,15
336
+ c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15
337
+ c-10,0,-16.667,5,-20,15z M410 15 H367 v585 v`+r+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+r+` v1715 h263 v84 H319z
338
+ MM319 602 V0 H403 V602 v`+r+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+r+` v1799 H0 v-84 H319z
339
+ MM319 602 V0 H403 V602 v`+r+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+r+` v602 h84z
340
+ M403 1759 V0 H319 V1759 v`+r+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+r+` v602 h84z
341
+ M347 1759 V0 h-84 V1759 v`+r+" v602 h84z";case"lparen":return`M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1
310
342
  c-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349,
311
- -36,557 l0,`+(t+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,
343
+ -36,557 l0,`+(r+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,
312
344
  949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9
313
345
  c0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5,
314
346
  -544.7,-112.5,-882c-2,-104,-3,-167,-3,-189
315
- l0,-`+(t+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,
347
+ l0,-`+(r+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,
316
348
  -210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z`;case"rparen":return`M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3,
317
349
  63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5
318
- c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(t+9)+`
350
+ c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(r+9)+`
319
351
  c-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664
320
352
  c-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11
321
353
  c0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17
322
354
  c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558
323
- l0,-`+(t+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
324
- -470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error("Unknown stretchy delimiter.")}};class at{constructor(e){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=e,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(e){return this.classes.includes(e)}toNode(){for(var e=document.createDocumentFragment(),t=0;t<this.children.length;t++)e.appendChild(this.children[t].toNode());return e}toMarkup(){for(var e="",t=0;t<this.children.length;t++)e+=this.children[t].toMarkup();return e}toText(){var e=t=>t.toText();return this.children.map(e).join("")}}var Ye={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},bt={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},en={Å:"A",Ð:"D",Þ:"o",å:"a",ð:"d",þ:"o",А:"A",Б:"B",В:"B",Г:"F",Д:"A",Е:"E",Ж:"K",З:"3",И:"N",Й:"N",К:"K",Л:"N",М:"M",Н:"H",О:"O",П:"N",Р:"P",С:"C",Т:"T",У:"y",Ф:"O",Х:"X",Ц:"U",Ч:"h",Ш:"W",Щ:"W",Ъ:"B",Ы:"X",Ь:"B",Э:"3",Ю:"X",Я:"R",а:"a",б:"b",в:"a",г:"r",д:"y",е:"e",ж:"m",з:"e",и:"n",й:"n",к:"n",л:"n",м:"m",н:"n",о:"o",п:"n",р:"p",с:"c",т:"o",у:"y",ф:"b",х:"x",ц:"n",ч:"n",ш:"w",щ:"w",ъ:"a",ы:"m",ь:"a",э:"e",ю:"m",я:"r"};function F2(r,e){Ye[r]=e}function ra(r,e,t){if(!Ye[e])throw new Error("Font metrics not found for font: "+e+".");var a=r.charCodeAt(0),n=Ye[e][a];if(!n&&r[0]in en&&(a=en[r[0]].charCodeAt(0),n=Ye[e][a]),!n&&t==="text"&&Zs(a)&&(n=Ye[e][77]),n)return{depth:n[0],height:n[1],italic:n[2],skew:n[3],width:n[4]}}var cr={};function q2(r){var e;if(r>=5?e=0:r>=3?e=1:e=2,!cr[e]){var t=cr[e]={cssEmPerMu:bt.quad[e]/18};for(var a in bt)bt.hasOwnProperty(a)&&(t[a]=bt[a][e])}return cr[e]}var H2=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],tn=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],rn=function(e,t){return t.size<2?e:H2[e-1][t.size-1]};class o0{constructor(e){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=e.style,this.color=e.color,this.size=e.size||o0.BASESIZE,this.textSize=e.textSize||this.size,this.phantom=!!e.phantom,this.font=e.font||"",this.fontFamily=e.fontFamily||"",this.fontWeight=e.fontWeight||"",this.fontShape=e.fontShape||"",this.sizeMultiplier=tn[this.size-1],this.maxSize=e.maxSize,this.minRuleThickness=e.minRuleThickness,this._fontMetrics=void 0}extend(e){var t={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var a in e)e.hasOwnProperty(a)&&(t[a]=e[a]);return new o0(t)}havingStyle(e){return this.style===e?this:this.extend({style:e,size:rn(this.textSize,e)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(e){return this.size===e&&this.textSize===e?this:this.extend({style:this.style.text(),size:e,textSize:e,sizeMultiplier:tn[e-1]})}havingBaseStyle(e){e=e||this.style.text();var t=rn(o0.BASESIZE,e);return this.size===t&&this.textSize===o0.BASESIZE&&this.style===e?this:this.extend({style:e,size:t})}havingBaseSizing(){var e;switch(this.style.id){case 4:case 5:e=3;break;case 6:case 7:e=1;break;default:e=6}return this.extend({style:this.style.text(),size:e})}withColor(e){return this.extend({color:e})}withPhantom(){return this.extend({phantom:!0})}withFont(e){return this.extend({font:e})}withTextFontFamily(e){return this.extend({fontFamily:e,font:""})}withTextFontWeight(e){return this.extend({fontWeight:e,font:""})}withTextFontShape(e){return this.extend({fontShape:e,font:""})}sizingClasses(e){return e.size!==this.size?["sizing","reset-size"+e.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==o0.BASESIZE?["sizing","reset-size"+this.size,"size"+o0.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=q2(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}o0.BASESIZE=6;var Br={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},V2={ex:!0,em:!0,mu:!0},Ks=function(e){return typeof e!="string"&&(e=e.unit),e in Br||e in V2||e==="ex"},fe=function(e,t){var a;if(e.unit in Br)a=Br[e.unit]/t.fontMetrics().ptPerEm/t.sizeMultiplier;else if(e.unit==="mu")a=t.fontMetrics().cssEmPerMu;else{var n;if(t.style.isTight()?n=t.havingStyle(t.style.text()):n=t,e.unit==="ex")a=n.fontMetrics().xHeight;else if(e.unit==="em")a=n.fontMetrics().quad;else throw new L("Invalid unit: '"+e.unit+"'");n!==t&&(a*=n.sizeMultiplier/t.sizeMultiplier)}return Math.min(e.number*a,t.maxSize)},I=function(e){return+e.toFixed(4)+"em"},w0=function(e){return e.filter(t=>t).join(" ")},Js=function(e,t,a){if(this.classes=e||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=a||{},t){t.style.isTight()&&this.classes.push("mtight");var n=t.getColor();n&&(this.style.color=n)}},Qs=function(e){var t=document.createElement(e);t.className=w0(this.classes);for(var a in this.style)this.style.hasOwnProperty(a)&&(t.style[a]=this.style[a]);for(var n in this.attributes)this.attributes.hasOwnProperty(n)&&t.setAttribute(n,this.attributes[n]);for(var s=0;s<this.children.length;s++)t.appendChild(this.children[s].toNode());return t},_2=/[\s"'>/=\x00-\x1f]/,eo=function(e){var t="<"+e;this.classes.length&&(t+=' class="'+re.escape(w0(this.classes))+'"');var a="";for(var n in this.style)this.style.hasOwnProperty(n)&&(a+=re.hyphenate(n)+":"+this.style[n]+";");a&&(t+=' style="'+re.escape(a)+'"');for(var s in this.attributes)if(this.attributes.hasOwnProperty(s)){if(_2.test(s))throw new L("Invalid attribute name '"+s+"'");t+=" "+s+'="'+re.escape(this.attributes[s])+'"'}t+=">";for(var o=0;o<this.children.length;o++)t+=this.children[o].toMarkup();return t+="</"+e+">",t};class nt{constructor(e,t,a,n){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,Js.call(this,e,a,n),this.children=t||[]}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return this.classes.includes(e)}toNode(){return Qs.call(this,"span")}toMarkup(){return eo.call(this,"span")}}class aa{constructor(e,t,a,n){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,Js.call(this,t,n),this.children=a||[],this.setAttribute("href",e)}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return this.classes.includes(e)}toNode(){return Qs.call(this,"a")}toMarkup(){return eo.call(this,"a")}}class G2{constructor(e,t,a){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=t,this.src=e,this.classes=["mord"],this.style=a}hasClass(e){return this.classes.includes(e)}toNode(){var e=document.createElement("img");e.src=this.src,e.alt=this.alt,e.className="mord";for(var t in this.style)this.style.hasOwnProperty(t)&&(e.style[t]=this.style[t]);return e}toMarkup(){var e='<img src="'+re.escape(this.src)+'"'+(' alt="'+re.escape(this.alt)+'"'),t="";for(var a in this.style)this.style.hasOwnProperty(a)&&(t+=re.hyphenate(a)+":"+this.style[a]+";");return t&&(e+=' style="'+re.escape(t)+'"'),e+="'/>",e}}var U2={î:"ı̂",ï:"ı̈",í:"ı́",ì:"ı̀"};class Fe{constructor(e,t,a,n,s,o,l,u){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=e,this.height=t||0,this.depth=a||0,this.italic=n||0,this.skew=s||0,this.width=o||0,this.classes=l||[],this.style=u||{},this.maxFontSize=0;var d=A2(this.text.charCodeAt(0));d&&this.classes.push(d+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=U2[this.text])}hasClass(e){return this.classes.includes(e)}toNode(){var e=document.createTextNode(this.text),t=null;this.italic>0&&(t=document.createElement("span"),t.style.marginRight=I(this.italic)),this.classes.length>0&&(t=t||document.createElement("span"),t.className=w0(this.classes));for(var a in this.style)this.style.hasOwnProperty(a)&&(t=t||document.createElement("span"),t.style[a]=this.style[a]);return t?(t.appendChild(e),t):e}toMarkup(){var e=!1,t="<span";this.classes.length&&(e=!0,t+=' class="',t+=re.escape(w0(this.classes)),t+='"');var a="";this.italic>0&&(a+="margin-right:"+this.italic+"em;");for(var n in this.style)this.style.hasOwnProperty(n)&&(a+=re.hyphenate(n)+":"+this.style[n]+";");a&&(e=!0,t+=' style="'+re.escape(a)+'"');var s=re.escape(this.text);return e?(t+=">",t+=s,t+="</span>",t):s}}class u0{constructor(e,t){this.children=void 0,this.attributes=void 0,this.children=e||[],this.attributes=t||{}}toNode(){var e="http://www.w3.org/2000/svg",t=document.createElementNS(e,"svg");for(var a in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,a)&&t.setAttribute(a,this.attributes[a]);for(var n=0;n<this.children.length;n++)t.appendChild(this.children[n].toNode());return t}toMarkup(){var e='<svg xmlns="http://www.w3.org/2000/svg"';for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&(e+=" "+t+'="'+re.escape(this.attributes[t])+'"');e+=">";for(var a=0;a<this.children.length;a++)e+=this.children[a].toMarkup();return e+="</svg>",e}}class S0{constructor(e,t){this.pathName=void 0,this.alternate=void 0,this.pathName=e,this.alternate=t}toNode(){var e="http://www.w3.org/2000/svg",t=document.createElementNS(e,"path");return this.alternate?t.setAttribute("d",this.alternate):t.setAttribute("d",Qa[this.pathName]),t}toMarkup(){return this.alternate?'<path d="'+re.escape(this.alternate)+'"/>':'<path d="'+re.escape(Qa[this.pathName])+'"/>'}}class Lr{constructor(e){this.attributes=void 0,this.attributes=e||{}}toNode(){var e="http://www.w3.org/2000/svg",t=document.createElementNS(e,"line");for(var a in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,a)&&t.setAttribute(a,this.attributes[a]);return t}toMarkup(){var e="<line";for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&(e+=" "+t+'="'+re.escape(this.attributes[t])+'"');return e+="/>",e}}function an(r){if(r instanceof Fe)return r;throw new Error("Expected symbolNode but got "+String(r)+".")}function $2(r){if(r instanceof nt)return r;throw new Error("Expected span<HtmlDomNode> but got "+String(r)+".")}var W2={bin:1,close:1,inner:1,open:1,punct:1,rel:1},X2={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},ie={math:{},text:{}};function i(r,e,t,a,n,s){ie[r][n]={font:e,group:t,replace:a},s&&a&&(ie[r][a]=ie[r][n])}var c="math",D="text",m="main",b="ams",ue="accent-token",H="bin",Ne="close",X0="inner",Z="mathord",xe="op-token",Pe="open",_t="punct",y="rel",h0="spacing",S="textord";i(c,m,y,"≡","\\equiv",!0);i(c,m,y,"≺","\\prec",!0);i(c,m,y,"≻","\\succ",!0);i(c,m,y,"∼","\\sim",!0);i(c,m,y,"⊥","\\perp");i(c,m,y,"⪯","\\preceq",!0);i(c,m,y,"⪰","\\succeq",!0);i(c,m,y,"≃","\\simeq",!0);i(c,m,y,"∣","\\mid",!0);i(c,m,y,"≪","\\ll",!0);i(c,m,y,"≫","\\gg",!0);i(c,m,y,"≍","\\asymp",!0);i(c,m,y,"∥","\\parallel");i(c,m,y,"⋈","\\bowtie",!0);i(c,m,y,"⌣","\\smile",!0);i(c,m,y,"⊑","\\sqsubseteq",!0);i(c,m,y,"⊒","\\sqsupseteq",!0);i(c,m,y,"≐","\\doteq",!0);i(c,m,y,"⌢","\\frown",!0);i(c,m,y,"∋","\\ni",!0);i(c,m,y,"∝","\\propto",!0);i(c,m,y,"⊢","\\vdash",!0);i(c,m,y,"⊣","\\dashv",!0);i(c,m,y,"∋","\\owns");i(c,m,_t,".","\\ldotp");i(c,m,_t,"⋅","\\cdotp");i(c,m,S,"#","\\#");i(D,m,S,"#","\\#");i(c,m,S,"&","\\&");i(D,m,S,"&","\\&");i(c,m,S,"ℵ","\\aleph",!0);i(c,m,S,"∀","\\forall",!0);i(c,m,S,"ℏ","\\hbar",!0);i(c,m,S,"∃","\\exists",!0);i(c,m,S,"∇","\\nabla",!0);i(c,m,S,"♭","\\flat",!0);i(c,m,S,"ℓ","\\ell",!0);i(c,m,S,"♮","\\natural",!0);i(c,m,S,"♣","\\clubsuit",!0);i(c,m,S,"℘","\\wp",!0);i(c,m,S,"♯","\\sharp",!0);i(c,m,S,"♢","\\diamondsuit",!0);i(c,m,S,"ℜ","\\Re",!0);i(c,m,S,"♡","\\heartsuit",!0);i(c,m,S,"ℑ","\\Im",!0);i(c,m,S,"♠","\\spadesuit",!0);i(c,m,S,"§","\\S",!0);i(D,m,S,"§","\\S");i(c,m,S,"¶","\\P",!0);i(D,m,S,"¶","\\P");i(c,m,S,"†","\\dag");i(D,m,S,"†","\\dag");i(D,m,S,"†","\\textdagger");i(c,m,S,"‡","\\ddag");i(D,m,S,"‡","\\ddag");i(D,m,S,"‡","\\textdaggerdbl");i(c,m,Ne,"⎱","\\rmoustache",!0);i(c,m,Pe,"⎰","\\lmoustache",!0);i(c,m,Ne,"⟯","\\rgroup",!0);i(c,m,Pe,"⟮","\\lgroup",!0);i(c,m,H,"∓","\\mp",!0);i(c,m,H,"⊖","\\ominus",!0);i(c,m,H,"⊎","\\uplus",!0);i(c,m,H,"⊓","\\sqcap",!0);i(c,m,H,"∗","\\ast");i(c,m,H,"⊔","\\sqcup",!0);i(c,m,H,"◯","\\bigcirc",!0);i(c,m,H,"∙","\\bullet",!0);i(c,m,H,"‡","\\ddagger");i(c,m,H,"≀","\\wr",!0);i(c,m,H,"⨿","\\amalg");i(c,m,H,"&","\\And");i(c,m,y,"⟵","\\longleftarrow",!0);i(c,m,y,"⇐","\\Leftarrow",!0);i(c,m,y,"⟸","\\Longleftarrow",!0);i(c,m,y,"⟶","\\longrightarrow",!0);i(c,m,y,"⇒","\\Rightarrow",!0);i(c,m,y,"⟹","\\Longrightarrow",!0);i(c,m,y,"↔","\\leftrightarrow",!0);i(c,m,y,"⟷","\\longleftrightarrow",!0);i(c,m,y,"⇔","\\Leftrightarrow",!0);i(c,m,y,"⟺","\\Longleftrightarrow",!0);i(c,m,y,"↦","\\mapsto",!0);i(c,m,y,"⟼","\\longmapsto",!0);i(c,m,y,"↗","\\nearrow",!0);i(c,m,y,"↩","\\hookleftarrow",!0);i(c,m,y,"↪","\\hookrightarrow",!0);i(c,m,y,"↘","\\searrow",!0);i(c,m,y,"↼","\\leftharpoonup",!0);i(c,m,y,"⇀","\\rightharpoonup",!0);i(c,m,y,"↙","\\swarrow",!0);i(c,m,y,"↽","\\leftharpoondown",!0);i(c,m,y,"⇁","\\rightharpoondown",!0);i(c,m,y,"↖","\\nwarrow",!0);i(c,m,y,"⇌","\\rightleftharpoons",!0);i(c,b,y,"≮","\\nless",!0);i(c,b,y,"","\\@nleqslant");i(c,b,y,"","\\@nleqq");i(c,b,y,"⪇","\\lneq",!0);i(c,b,y,"≨","\\lneqq",!0);i(c,b,y,"","\\@lvertneqq");i(c,b,y,"⋦","\\lnsim",!0);i(c,b,y,"⪉","\\lnapprox",!0);i(c,b,y,"⊀","\\nprec",!0);i(c,b,y,"⋠","\\npreceq",!0);i(c,b,y,"⋨","\\precnsim",!0);i(c,b,y,"⪹","\\precnapprox",!0);i(c,b,y,"≁","\\nsim",!0);i(c,b,y,"","\\@nshortmid");i(c,b,y,"∤","\\nmid",!0);i(c,b,y,"⊬","\\nvdash",!0);i(c,b,y,"⊭","\\nvDash",!0);i(c,b,y,"⋪","\\ntriangleleft");i(c,b,y,"⋬","\\ntrianglelefteq",!0);i(c,b,y,"⊊","\\subsetneq",!0);i(c,b,y,"","\\@varsubsetneq");i(c,b,y,"⫋","\\subsetneqq",!0);i(c,b,y,"","\\@varsubsetneqq");i(c,b,y,"≯","\\ngtr",!0);i(c,b,y,"","\\@ngeqslant");i(c,b,y,"","\\@ngeqq");i(c,b,y,"⪈","\\gneq",!0);i(c,b,y,"≩","\\gneqq",!0);i(c,b,y,"","\\@gvertneqq");i(c,b,y,"⋧","\\gnsim",!0);i(c,b,y,"⪊","\\gnapprox",!0);i(c,b,y,"⊁","\\nsucc",!0);i(c,b,y,"⋡","\\nsucceq",!0);i(c,b,y,"⋩","\\succnsim",!0);i(c,b,y,"⪺","\\succnapprox",!0);i(c,b,y,"≆","\\ncong",!0);i(c,b,y,"","\\@nshortparallel");i(c,b,y,"∦","\\nparallel",!0);i(c,b,y,"⊯","\\nVDash",!0);i(c,b,y,"⋫","\\ntriangleright");i(c,b,y,"⋭","\\ntrianglerighteq",!0);i(c,b,y,"","\\@nsupseteqq");i(c,b,y,"⊋","\\supsetneq",!0);i(c,b,y,"","\\@varsupsetneq");i(c,b,y,"⫌","\\supsetneqq",!0);i(c,b,y,"","\\@varsupsetneqq");i(c,b,y,"⊮","\\nVdash",!0);i(c,b,y,"⪵","\\precneqq",!0);i(c,b,y,"⪶","\\succneqq",!0);i(c,b,y,"","\\@nsubseteqq");i(c,b,H,"⊴","\\unlhd");i(c,b,H,"⊵","\\unrhd");i(c,b,y,"↚","\\nleftarrow",!0);i(c,b,y,"↛","\\nrightarrow",!0);i(c,b,y,"⇍","\\nLeftarrow",!0);i(c,b,y,"⇏","\\nRightarrow",!0);i(c,b,y,"↮","\\nleftrightarrow",!0);i(c,b,y,"⇎","\\nLeftrightarrow",!0);i(c,b,y,"△","\\vartriangle");i(c,b,S,"ℏ","\\hslash");i(c,b,S,"▽","\\triangledown");i(c,b,S,"◊","\\lozenge");i(c,b,S,"Ⓢ","\\circledS");i(c,b,S,"®","\\circledR");i(D,b,S,"®","\\circledR");i(c,b,S,"∡","\\measuredangle",!0);i(c,b,S,"∄","\\nexists");i(c,b,S,"℧","\\mho");i(c,b,S,"Ⅎ","\\Finv",!0);i(c,b,S,"⅁","\\Game",!0);i(c,b,S,"‵","\\backprime");i(c,b,S,"▲","\\blacktriangle");i(c,b,S,"▼","\\blacktriangledown");i(c,b,S,"■","\\blacksquare");i(c,b,S,"⧫","\\blacklozenge");i(c,b,S,"★","\\bigstar");i(c,b,S,"∢","\\sphericalangle",!0);i(c,b,S,"∁","\\complement",!0);i(c,b,S,"ð","\\eth",!0);i(D,m,S,"ð","ð");i(c,b,S,"╱","\\diagup");i(c,b,S,"╲","\\diagdown");i(c,b,S,"□","\\square");i(c,b,S,"□","\\Box");i(c,b,S,"◊","\\Diamond");i(c,b,S,"¥","\\yen",!0);i(D,b,S,"¥","\\yen",!0);i(c,b,S,"✓","\\checkmark",!0);i(D,b,S,"✓","\\checkmark");i(c,b,S,"ℶ","\\beth",!0);i(c,b,S,"ℸ","\\daleth",!0);i(c,b,S,"ℷ","\\gimel",!0);i(c,b,S,"ϝ","\\digamma",!0);i(c,b,S,"ϰ","\\varkappa");i(c,b,Pe,"┌","\\@ulcorner",!0);i(c,b,Ne,"┐","\\@urcorner",!0);i(c,b,Pe,"└","\\@llcorner",!0);i(c,b,Ne,"┘","\\@lrcorner",!0);i(c,b,y,"≦","\\leqq",!0);i(c,b,y,"⩽","\\leqslant",!0);i(c,b,y,"⪕","\\eqslantless",!0);i(c,b,y,"≲","\\lesssim",!0);i(c,b,y,"⪅","\\lessapprox",!0);i(c,b,y,"≊","\\approxeq",!0);i(c,b,H,"⋖","\\lessdot");i(c,b,y,"⋘","\\lll",!0);i(c,b,y,"≶","\\lessgtr",!0);i(c,b,y,"⋚","\\lesseqgtr",!0);i(c,b,y,"⪋","\\lesseqqgtr",!0);i(c,b,y,"≑","\\doteqdot");i(c,b,y,"≓","\\risingdotseq",!0);i(c,b,y,"≒","\\fallingdotseq",!0);i(c,b,y,"∽","\\backsim",!0);i(c,b,y,"⋍","\\backsimeq",!0);i(c,b,y,"⫅","\\subseteqq",!0);i(c,b,y,"⋐","\\Subset",!0);i(c,b,y,"⊏","\\sqsubset",!0);i(c,b,y,"≼","\\preccurlyeq",!0);i(c,b,y,"⋞","\\curlyeqprec",!0);i(c,b,y,"≾","\\precsim",!0);i(c,b,y,"⪷","\\precapprox",!0);i(c,b,y,"⊲","\\vartriangleleft");i(c,b,y,"⊴","\\trianglelefteq");i(c,b,y,"⊨","\\vDash",!0);i(c,b,y,"⊪","\\Vvdash",!0);i(c,b,y,"⌣","\\smallsmile");i(c,b,y,"⌢","\\smallfrown");i(c,b,y,"≏","\\bumpeq",!0);i(c,b,y,"≎","\\Bumpeq",!0);i(c,b,y,"≧","\\geqq",!0);i(c,b,y,"⩾","\\geqslant",!0);i(c,b,y,"⪖","\\eqslantgtr",!0);i(c,b,y,"≳","\\gtrsim",!0);i(c,b,y,"⪆","\\gtrapprox",!0);i(c,b,H,"⋗","\\gtrdot");i(c,b,y,"⋙","\\ggg",!0);i(c,b,y,"≷","\\gtrless",!0);i(c,b,y,"⋛","\\gtreqless",!0);i(c,b,y,"⪌","\\gtreqqless",!0);i(c,b,y,"≖","\\eqcirc",!0);i(c,b,y,"≗","\\circeq",!0);i(c,b,y,"≜","\\triangleq",!0);i(c,b,y,"∼","\\thicksim");i(c,b,y,"≈","\\thickapprox");i(c,b,y,"⫆","\\supseteqq",!0);i(c,b,y,"⋑","\\Supset",!0);i(c,b,y,"⊐","\\sqsupset",!0);i(c,b,y,"≽","\\succcurlyeq",!0);i(c,b,y,"⋟","\\curlyeqsucc",!0);i(c,b,y,"≿","\\succsim",!0);i(c,b,y,"⪸","\\succapprox",!0);i(c,b,y,"⊳","\\vartriangleright");i(c,b,y,"⊵","\\trianglerighteq");i(c,b,y,"⊩","\\Vdash",!0);i(c,b,y,"∣","\\shortmid");i(c,b,y,"∥","\\shortparallel");i(c,b,y,"≬","\\between",!0);i(c,b,y,"⋔","\\pitchfork",!0);i(c,b,y,"∝","\\varpropto");i(c,b,y,"◀","\\blacktriangleleft");i(c,b,y,"∴","\\therefore",!0);i(c,b,y,"∍","\\backepsilon");i(c,b,y,"▶","\\blacktriangleright");i(c,b,y,"∵","\\because",!0);i(c,b,y,"⋘","\\llless");i(c,b,y,"⋙","\\gggtr");i(c,b,H,"⊲","\\lhd");i(c,b,H,"⊳","\\rhd");i(c,b,y,"≂","\\eqsim",!0);i(c,m,y,"⋈","\\Join");i(c,b,y,"≑","\\Doteq",!0);i(c,b,H,"∔","\\dotplus",!0);i(c,b,H,"∖","\\smallsetminus");i(c,b,H,"⋒","\\Cap",!0);i(c,b,H,"⋓","\\Cup",!0);i(c,b,H,"⩞","\\doublebarwedge",!0);i(c,b,H,"⊟","\\boxminus",!0);i(c,b,H,"⊞","\\boxplus",!0);i(c,b,H,"⋇","\\divideontimes",!0);i(c,b,H,"⋉","\\ltimes",!0);i(c,b,H,"⋊","\\rtimes",!0);i(c,b,H,"⋋","\\leftthreetimes",!0);i(c,b,H,"⋌","\\rightthreetimes",!0);i(c,b,H,"⋏","\\curlywedge",!0);i(c,b,H,"⋎","\\curlyvee",!0);i(c,b,H,"⊝","\\circleddash",!0);i(c,b,H,"⊛","\\circledast",!0);i(c,b,H,"⋅","\\centerdot");i(c,b,H,"⊺","\\intercal",!0);i(c,b,H,"⋒","\\doublecap");i(c,b,H,"⋓","\\doublecup");i(c,b,H,"⊠","\\boxtimes",!0);i(c,b,y,"⇢","\\dashrightarrow",!0);i(c,b,y,"⇠","\\dashleftarrow",!0);i(c,b,y,"⇇","\\leftleftarrows",!0);i(c,b,y,"⇆","\\leftrightarrows",!0);i(c,b,y,"⇚","\\Lleftarrow",!0);i(c,b,y,"↞","\\twoheadleftarrow",!0);i(c,b,y,"↢","\\leftarrowtail",!0);i(c,b,y,"↫","\\looparrowleft",!0);i(c,b,y,"⇋","\\leftrightharpoons",!0);i(c,b,y,"↶","\\curvearrowleft",!0);i(c,b,y,"↺","\\circlearrowleft",!0);i(c,b,y,"↰","\\Lsh",!0);i(c,b,y,"⇈","\\upuparrows",!0);i(c,b,y,"↿","\\upharpoonleft",!0);i(c,b,y,"⇃","\\downharpoonleft",!0);i(c,m,y,"⊶","\\origof",!0);i(c,m,y,"⊷","\\imageof",!0);i(c,b,y,"⊸","\\multimap",!0);i(c,b,y,"↭","\\leftrightsquigarrow",!0);i(c,b,y,"⇉","\\rightrightarrows",!0);i(c,b,y,"⇄","\\rightleftarrows",!0);i(c,b,y,"↠","\\twoheadrightarrow",!0);i(c,b,y,"↣","\\rightarrowtail",!0);i(c,b,y,"↬","\\looparrowright",!0);i(c,b,y,"↷","\\curvearrowright",!0);i(c,b,y,"↻","\\circlearrowright",!0);i(c,b,y,"↱","\\Rsh",!0);i(c,b,y,"⇊","\\downdownarrows",!0);i(c,b,y,"↾","\\upharpoonright",!0);i(c,b,y,"⇂","\\downharpoonright",!0);i(c,b,y,"⇝","\\rightsquigarrow",!0);i(c,b,y,"⇝","\\leadsto");i(c,b,y,"⇛","\\Rrightarrow",!0);i(c,b,y,"↾","\\restriction");i(c,m,S,"‘","`");i(c,m,S,"$","\\$");i(D,m,S,"$","\\$");i(D,m,S,"$","\\textdollar");i(c,m,S,"%","\\%");i(D,m,S,"%","\\%");i(c,m,S,"_","\\_");i(D,m,S,"_","\\_");i(D,m,S,"_","\\textunderscore");i(c,m,S,"∠","\\angle",!0);i(c,m,S,"∞","\\infty",!0);i(c,m,S,"′","\\prime");i(c,m,S,"△","\\triangle");i(c,m,S,"Γ","\\Gamma",!0);i(c,m,S,"Δ","\\Delta",!0);i(c,m,S,"Θ","\\Theta",!0);i(c,m,S,"Λ","\\Lambda",!0);i(c,m,S,"Ξ","\\Xi",!0);i(c,m,S,"Π","\\Pi",!0);i(c,m,S,"Σ","\\Sigma",!0);i(c,m,S,"Υ","\\Upsilon",!0);i(c,m,S,"Φ","\\Phi",!0);i(c,m,S,"Ψ","\\Psi",!0);i(c,m,S,"Ω","\\Omega",!0);i(c,m,S,"A","Α");i(c,m,S,"B","Β");i(c,m,S,"E","Ε");i(c,m,S,"Z","Ζ");i(c,m,S,"H","Η");i(c,m,S,"I","Ι");i(c,m,S,"K","Κ");i(c,m,S,"M","Μ");i(c,m,S,"N","Ν");i(c,m,S,"O","Ο");i(c,m,S,"P","Ρ");i(c,m,S,"T","Τ");i(c,m,S,"X","Χ");i(c,m,S,"¬","\\neg",!0);i(c,m,S,"¬","\\lnot");i(c,m,S,"⊤","\\top");i(c,m,S,"⊥","\\bot");i(c,m,S,"∅","\\emptyset");i(c,b,S,"∅","\\varnothing");i(c,m,Z,"α","\\alpha",!0);i(c,m,Z,"β","\\beta",!0);i(c,m,Z,"γ","\\gamma",!0);i(c,m,Z,"δ","\\delta",!0);i(c,m,Z,"ϵ","\\epsilon",!0);i(c,m,Z,"ζ","\\zeta",!0);i(c,m,Z,"η","\\eta",!0);i(c,m,Z,"θ","\\theta",!0);i(c,m,Z,"ι","\\iota",!0);i(c,m,Z,"κ","\\kappa",!0);i(c,m,Z,"λ","\\lambda",!0);i(c,m,Z,"μ","\\mu",!0);i(c,m,Z,"ν","\\nu",!0);i(c,m,Z,"ξ","\\xi",!0);i(c,m,Z,"ο","\\omicron",!0);i(c,m,Z,"π","\\pi",!0);i(c,m,Z,"ρ","\\rho",!0);i(c,m,Z,"σ","\\sigma",!0);i(c,m,Z,"τ","\\tau",!0);i(c,m,Z,"υ","\\upsilon",!0);i(c,m,Z,"ϕ","\\phi",!0);i(c,m,Z,"χ","\\chi",!0);i(c,m,Z,"ψ","\\psi",!0);i(c,m,Z,"ω","\\omega",!0);i(c,m,Z,"ε","\\varepsilon",!0);i(c,m,Z,"ϑ","\\vartheta",!0);i(c,m,Z,"ϖ","\\varpi",!0);i(c,m,Z,"ϱ","\\varrho",!0);i(c,m,Z,"ς","\\varsigma",!0);i(c,m,Z,"φ","\\varphi",!0);i(c,m,H,"∗","*",!0);i(c,m,H,"+","+");i(c,m,H,"−","-",!0);i(c,m,H,"⋅","\\cdot",!0);i(c,m,H,"∘","\\circ",!0);i(c,m,H,"÷","\\div",!0);i(c,m,H,"±","\\pm",!0);i(c,m,H,"×","\\times",!0);i(c,m,H,"∩","\\cap",!0);i(c,m,H,"∪","\\cup",!0);i(c,m,H,"∖","\\setminus",!0);i(c,m,H,"∧","\\land");i(c,m,H,"∨","\\lor");i(c,m,H,"∧","\\wedge",!0);i(c,m,H,"∨","\\vee",!0);i(c,m,S,"√","\\surd");i(c,m,Pe,"⟨","\\langle",!0);i(c,m,Pe,"∣","\\lvert");i(c,m,Pe,"∥","\\lVert");i(c,m,Ne,"?","?");i(c,m,Ne,"!","!");i(c,m,Ne,"⟩","\\rangle",!0);i(c,m,Ne,"∣","\\rvert");i(c,m,Ne,"∥","\\rVert");i(c,m,y,"=","=");i(c,m,y,":",":");i(c,m,y,"≈","\\approx",!0);i(c,m,y,"≅","\\cong",!0);i(c,m,y,"≥","\\ge");i(c,m,y,"≥","\\geq",!0);i(c,m,y,"←","\\gets");i(c,m,y,">","\\gt",!0);i(c,m,y,"∈","\\in",!0);i(c,m,y,"","\\@not");i(c,m,y,"⊂","\\subset",!0);i(c,m,y,"⊃","\\supset",!0);i(c,m,y,"⊆","\\subseteq",!0);i(c,m,y,"⊇","\\supseteq",!0);i(c,b,y,"⊈","\\nsubseteq",!0);i(c,b,y,"⊉","\\nsupseteq",!0);i(c,m,y,"⊨","\\models");i(c,m,y,"←","\\leftarrow",!0);i(c,m,y,"≤","\\le");i(c,m,y,"≤","\\leq",!0);i(c,m,y,"<","\\lt",!0);i(c,m,y,"→","\\rightarrow",!0);i(c,m,y,"→","\\to");i(c,b,y,"≱","\\ngeq",!0);i(c,b,y,"≰","\\nleq",!0);i(c,m,h0," ","\\ ");i(c,m,h0," ","\\space");i(c,m,h0," ","\\nobreakspace");i(D,m,h0," ","\\ ");i(D,m,h0," "," ");i(D,m,h0," ","\\space");i(D,m,h0," ","\\nobreakspace");i(c,m,h0,null,"\\nobreak");i(c,m,h0,null,"\\allowbreak");i(c,m,_t,",",",");i(c,m,_t,";",";");i(c,b,H,"⊼","\\barwedge",!0);i(c,b,H,"⊻","\\veebar",!0);i(c,m,H,"⊙","\\odot",!0);i(c,m,H,"⊕","\\oplus",!0);i(c,m,H,"⊗","\\otimes",!0);i(c,m,S,"∂","\\partial",!0);i(c,m,H,"⊘","\\oslash",!0);i(c,b,H,"⊚","\\circledcirc",!0);i(c,b,H,"⊡","\\boxdot",!0);i(c,m,H,"△","\\bigtriangleup");i(c,m,H,"▽","\\bigtriangledown");i(c,m,H,"†","\\dagger");i(c,m,H,"⋄","\\diamond");i(c,m,H,"⋆","\\star");i(c,m,H,"◃","\\triangleleft");i(c,m,H,"▹","\\triangleright");i(c,m,Pe,"{","\\{");i(D,m,S,"{","\\{");i(D,m,S,"{","\\textbraceleft");i(c,m,Ne,"}","\\}");i(D,m,S,"}","\\}");i(D,m,S,"}","\\textbraceright");i(c,m,Pe,"{","\\lbrace");i(c,m,Ne,"}","\\rbrace");i(c,m,Pe,"[","\\lbrack",!0);i(D,m,S,"[","\\lbrack",!0);i(c,m,Ne,"]","\\rbrack",!0);i(D,m,S,"]","\\rbrack",!0);i(c,m,Pe,"(","\\lparen",!0);i(c,m,Ne,")","\\rparen",!0);i(D,m,S,"<","\\textless",!0);i(D,m,S,">","\\textgreater",!0);i(c,m,Pe,"⌊","\\lfloor",!0);i(c,m,Ne,"⌋","\\rfloor",!0);i(c,m,Pe,"⌈","\\lceil",!0);i(c,m,Ne,"⌉","\\rceil",!0);i(c,m,S,"\\","\\backslash");i(c,m,S,"∣","|");i(c,m,S,"∣","\\vert");i(D,m,S,"|","\\textbar",!0);i(c,m,S,"∥","\\|");i(c,m,S,"∥","\\Vert");i(D,m,S,"∥","\\textbardbl");i(D,m,S,"~","\\textasciitilde");i(D,m,S,"\\","\\textbackslash");i(D,m,S,"^","\\textasciicircum");i(c,m,y,"↑","\\uparrow",!0);i(c,m,y,"⇑","\\Uparrow",!0);i(c,m,y,"↓","\\downarrow",!0);i(c,m,y,"⇓","\\Downarrow",!0);i(c,m,y,"↕","\\updownarrow",!0);i(c,m,y,"⇕","\\Updownarrow",!0);i(c,m,xe,"∐","\\coprod");i(c,m,xe,"⋁","\\bigvee");i(c,m,xe,"⋀","\\bigwedge");i(c,m,xe,"⨄","\\biguplus");i(c,m,xe,"⋂","\\bigcap");i(c,m,xe,"⋃","\\bigcup");i(c,m,xe,"∫","\\int");i(c,m,xe,"∫","\\intop");i(c,m,xe,"∬","\\iint");i(c,m,xe,"∭","\\iiint");i(c,m,xe,"∏","\\prod");i(c,m,xe,"∑","\\sum");i(c,m,xe,"⨂","\\bigotimes");i(c,m,xe,"⨁","\\bigoplus");i(c,m,xe,"⨀","\\bigodot");i(c,m,xe,"∮","\\oint");i(c,m,xe,"∯","\\oiint");i(c,m,xe,"∰","\\oiiint");i(c,m,xe,"⨆","\\bigsqcup");i(c,m,xe,"∫","\\smallint");i(D,m,X0,"…","\\textellipsis");i(c,m,X0,"…","\\mathellipsis");i(D,m,X0,"…","\\ldots",!0);i(c,m,X0,"…","\\ldots",!0);i(c,m,X0,"⋯","\\@cdots",!0);i(c,m,X0,"⋱","\\ddots",!0);i(c,m,S,"⋮","\\varvdots");i(D,m,S,"⋮","\\varvdots");i(c,m,ue,"ˊ","\\acute");i(c,m,ue,"ˋ","\\grave");i(c,m,ue,"¨","\\ddot");i(c,m,ue,"~","\\tilde");i(c,m,ue,"ˉ","\\bar");i(c,m,ue,"˘","\\breve");i(c,m,ue,"ˇ","\\check");i(c,m,ue,"^","\\hat");i(c,m,ue,"⃗","\\vec");i(c,m,ue,"˙","\\dot");i(c,m,ue,"˚","\\mathring");i(c,m,Z,"","\\@imath");i(c,m,Z,"","\\@jmath");i(c,m,S,"ı","ı");i(c,m,S,"ȷ","ȷ");i(D,m,S,"ı","\\i",!0);i(D,m,S,"ȷ","\\j",!0);i(D,m,S,"ß","\\ss",!0);i(D,m,S,"æ","\\ae",!0);i(D,m,S,"œ","\\oe",!0);i(D,m,S,"ø","\\o",!0);i(D,m,S,"Æ","\\AE",!0);i(D,m,S,"Œ","\\OE",!0);i(D,m,S,"Ø","\\O",!0);i(D,m,ue,"ˊ","\\'");i(D,m,ue,"ˋ","\\`");i(D,m,ue,"ˆ","\\^");i(D,m,ue,"˜","\\~");i(D,m,ue,"ˉ","\\=");i(D,m,ue,"˘","\\u");i(D,m,ue,"˙","\\.");i(D,m,ue,"¸","\\c");i(D,m,ue,"˚","\\r");i(D,m,ue,"ˇ","\\v");i(D,m,ue,"¨",'\\"');i(D,m,ue,"˝","\\H");i(D,m,ue,"◯","\\textcircled");var to={"--":!0,"---":!0,"``":!0,"''":!0};i(D,m,S,"–","--",!0);i(D,m,S,"–","\\textendash");i(D,m,S,"—","---",!0);i(D,m,S,"—","\\textemdash");i(D,m,S,"‘","`",!0);i(D,m,S,"‘","\\textquoteleft");i(D,m,S,"’","'",!0);i(D,m,S,"’","\\textquoteright");i(D,m,S,"“","``",!0);i(D,m,S,"“","\\textquotedblleft");i(D,m,S,"”","''",!0);i(D,m,S,"”","\\textquotedblright");i(c,m,S,"°","\\degree",!0);i(D,m,S,"°","\\degree");i(D,m,S,"°","\\textdegree",!0);i(c,m,S,"£","\\pounds");i(c,m,S,"£","\\mathsterling",!0);i(D,m,S,"£","\\pounds");i(D,m,S,"£","\\textsterling",!0);i(c,b,S,"✠","\\maltese");i(D,b,S,"✠","\\maltese");var nn='0123456789/@."';for(var ur=0;ur<nn.length;ur++){var sn=nn.charAt(ur);i(c,m,S,sn,sn)}var on='0123456789!@*()-=+";:?/.,';for(var dr=0;dr<on.length;dr++){var ln=on.charAt(dr);i(D,m,S,ln,ln)}var Lt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";for(var mr=0;mr<Lt.length;mr++){var yt=Lt.charAt(mr);i(c,m,Z,yt,yt),i(D,m,S,yt,yt)}i(c,b,S,"C","ℂ");i(D,b,S,"C","ℂ");i(c,b,S,"H","ℍ");i(D,b,S,"H","ℍ");i(c,b,S,"N","ℕ");i(D,b,S,"N","ℕ");i(c,b,S,"P","ℙ");i(D,b,S,"P","ℙ");i(c,b,S,"Q","ℚ");i(D,b,S,"Q","ℚ");i(c,b,S,"R","ℝ");i(D,b,S,"R","ℝ");i(c,b,S,"Z","ℤ");i(D,b,S,"Z","ℤ");i(c,m,Z,"h","ℎ");i(D,m,Z,"h","ℎ");var J="";for(var ze=0;ze<Lt.length;ze++){var ve=Lt.charAt(ze);J=String.fromCharCode(55349,56320+ze),i(c,m,Z,ve,J),i(D,m,S,ve,J),J=String.fromCharCode(55349,56372+ze),i(c,m,Z,ve,J),i(D,m,S,ve,J),J=String.fromCharCode(55349,56424+ze),i(c,m,Z,ve,J),i(D,m,S,ve,J),J=String.fromCharCode(55349,56580+ze),i(c,m,Z,ve,J),i(D,m,S,ve,J),J=String.fromCharCode(55349,56684+ze),i(c,m,Z,ve,J),i(D,m,S,ve,J),J=String.fromCharCode(55349,56736+ze),i(c,m,Z,ve,J),i(D,m,S,ve,J),J=String.fromCharCode(55349,56788+ze),i(c,m,Z,ve,J),i(D,m,S,ve,J),J=String.fromCharCode(55349,56840+ze),i(c,m,Z,ve,J),i(D,m,S,ve,J),J=String.fromCharCode(55349,56944+ze),i(c,m,Z,ve,J),i(D,m,S,ve,J),ze<26&&(J=String.fromCharCode(55349,56632+ze),i(c,m,Z,ve,J),i(D,m,S,ve,J),J=String.fromCharCode(55349,56476+ze),i(c,m,Z,ve,J),i(D,m,S,ve,J))}J="𝕜";i(c,m,Z,"k",J);i(D,m,S,"k",J);for(var z0=0;z0<10;z0++){var g0=z0.toString();J=String.fromCharCode(55349,57294+z0),i(c,m,Z,g0,J),i(D,m,S,g0,J),J=String.fromCharCode(55349,57314+z0),i(c,m,Z,g0,J),i(D,m,S,g0,J),J=String.fromCharCode(55349,57324+z0),i(c,m,Z,g0,J),i(D,m,S,g0,J),J=String.fromCharCode(55349,57334+z0),i(c,m,Z,g0,J),i(D,m,S,g0,J)}var jr="ÐÞþ";for(var hr=0;hr<jr.length;hr++){var xt=jr.charAt(hr);i(c,m,Z,xt,xt),i(D,m,S,xt,xt)}var wt=[["mathbf","textbf","Main-Bold"],["mathbf","textbf","Main-Bold"],["mathnormal","textit","Math-Italic"],["mathnormal","textit","Math-Italic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["mathscr","textscr","Script-Regular"],["","",""],["","",""],["","",""],["mathfrak","textfrak","Fraktur-Regular"],["mathfrak","textfrak","Fraktur-Regular"],["mathbb","textbb","AMS-Regular"],["mathbb","textbb","AMS-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathitsf","textitsf","SansSerif-Italic"],["mathitsf","textitsf","SansSerif-Italic"],["","",""],["","",""],["mathtt","texttt","Typewriter-Regular"],["mathtt","texttt","Typewriter-Regular"]],cn=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],Y2=function(e,t){var a=e.charCodeAt(0),n=e.charCodeAt(1),s=(a-55296)*1024+(n-56320)+65536,o=t==="math"?0:1;if(119808<=s&&s<120484){var l=Math.floor((s-119808)/26);return[wt[l][2],wt[l][o]]}else if(120782<=s&&s<=120831){var u=Math.floor((s-120782)/10);return[cn[u][2],cn[u][o]]}else{if(s===120485||s===120486)return[wt[0][2],wt[0][o]];if(120486<s&&s<120782)return["",""];throw new L("Unsupported character: "+e)}},Gt=function(e,t,a){return ie[a][e]&&ie[a][e].replace&&(e=ie[a][e].replace),{value:e,metrics:ra(e,t,a)}},Ue=function(e,t,a,n,s){var o=Gt(e,t,a),l=o.metrics;e=o.value;var u;if(l){var d=l.italic;(a==="text"||n&&n.font==="mathit")&&(d=0),u=new Fe(e,l.height,l.depth,d,l.skew,l.width,s)}else typeof console<"u"&&console.warn("No character metrics "+("for '"+e+"' in style '"+t+"' and mode '"+a+"'")),u=new Fe(e,0,0,0,0,0,s);if(n){u.maxFontSize=n.sizeMultiplier,n.style.isTight()&&u.classes.push("mtight");var f=n.getColor();f&&(u.style.color=f)}return u},Z2=function(e,t,a,n){return n===void 0&&(n=[]),a.font==="boldsymbol"&&Gt(e,"Main-Bold",t).metrics?Ue(e,"Main-Bold",t,a,n.concat(["mathbf"])):e==="\\"||ie[t][e].font==="main"?Ue(e,"Main-Regular",t,a,n):Ue(e,"AMS-Regular",t,a,n.concat(["amsrm"]))},K2=function(e,t,a,n,s){return s!=="textord"&&Gt(e,"Math-BoldItalic",t).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},J2=function(e,t,a){var n=e.mode,s=e.text,o=["mord"],l=n==="math"||n==="text"&&t.font,u=l?t.font:t.fontFamily,d="",f="";if(s.charCodeAt(0)===55349&&([d,f]=Y2(s,n)),d.length>0)return Ue(s,d,n,t,o.concat(f));if(u){var g,x;if(u==="boldsymbol"){var w=K2(s,n,t,o,a);g=w.fontName,x=[w.fontClass]}else l?(g=no[u].fontName,x=[u]):(g=St(u,t.fontWeight,t.fontShape),x=[u,t.fontWeight,t.fontShape]);if(Gt(s,g,n).metrics)return Ue(s,g,n,t,o.concat(x));if(to.hasOwnProperty(s)&&g.slice(0,10)==="Typewriter"){for(var M=[],k=0;k<s.length;k++)M.push(Ue(s[k],g,n,t,o.concat(x)));return ao(M)}}if(a==="mathord")return Ue(s,"Math-Italic",n,t,o.concat(["mathnormal"]));if(a==="textord"){var A=ie[n][s]&&ie[n][s].font;if(A==="ams"){var N=St("amsrm",t.fontWeight,t.fontShape);return Ue(s,N,n,t,o.concat("amsrm",t.fontWeight,t.fontShape))}else if(A==="main"||!A){var E=St("textrm",t.fontWeight,t.fontShape);return Ue(s,E,n,t,o.concat(t.fontWeight,t.fontShape))}else{var R=St(A,t.fontWeight,t.fontShape);return Ue(s,R,n,t,o.concat(R,t.fontWeight,t.fontShape))}}else throw new Error("unexpected type: "+a+" in makeOrd")},Q2=(r,e)=>{if(w0(r.classes)!==w0(e.classes)||r.skew!==e.skew||r.maxFontSize!==e.maxFontSize)return!1;if(r.classes.length===1){var t=r.classes[0];if(t==="mbin"||t==="mord")return!1}for(var a in r.style)if(r.style.hasOwnProperty(a)&&r.style[a]!==e.style[a])return!1;for(var n in e.style)if(e.style.hasOwnProperty(n)&&r.style[n]!==e.style[n])return!1;return!0},e4=r=>{for(var e=0;e<r.length-1;e++){var t=r[e],a=r[e+1];t instanceof Fe&&a instanceof Fe&&Q2(t,a)&&(t.text+=a.text,t.height=Math.max(t.height,a.height),t.depth=Math.max(t.depth,a.depth),t.italic=a.italic,r.splice(e+1,1),e--)}return r},na=function(e){for(var t=0,a=0,n=0,s=0;s<e.children.length;s++){var o=e.children[s];o.height>t&&(t=o.height),o.depth>a&&(a=o.depth),o.maxFontSize>n&&(n=o.maxFontSize)}e.height=t,e.depth=a,e.maxFontSize=n},De=function(e,t,a,n){var s=new nt(e,t,a,n);return na(s),s},ro=(r,e,t,a)=>new nt(r,e,t,a),t4=function(e,t,a){var n=De([e],[],t);return n.height=Math.max(a||t.fontMetrics().defaultRuleThickness,t.minRuleThickness),n.style.borderBottomWidth=I(n.height),n.maxFontSize=1,n},r4=function(e,t,a,n){var s=new aa(e,t,a,n);return na(s),s},ao=function(e){var t=new at(e);return na(t),t},a4=function(e,t){return e instanceof at?De([],[e],t):e},n4=function(e){if(e.positionType==="individualShift"){for(var t=e.children,a=[t[0]],n=-t[0].shift-t[0].elem.depth,s=n,o=1;o<t.length;o++){var l=-t[o].shift-s-t[o].elem.depth,u=l-(t[o-1].elem.height+t[o-1].elem.depth);s=s+l,a.push({type:"kern",size:u}),a.push(t[o])}return{children:a,depth:n}}var d;if(e.positionType==="top"){for(var f=e.positionData,g=0;g<e.children.length;g++){var x=e.children[g];f-=x.type==="kern"?x.size:x.elem.height+x.elem.depth}d=f}else if(e.positionType==="bottom")d=-e.positionData;else{var w=e.children[0];if(w.type!=="elem")throw new Error('First child must have type "elem".');if(e.positionType==="shift")d=-w.elem.depth-e.positionData;else if(e.positionType==="firstBaseline")d=-w.elem.depth;else throw new Error("Invalid positionType "+e.positionType+".")}return{children:e.children,depth:d}},s4=function(e,t){for(var{children:a,depth:n}=n4(e),s=0,o=0;o<a.length;o++){var l=a[o];if(l.type==="elem"){var u=l.elem;s=Math.max(s,u.maxFontSize,u.height)}}s+=2;var d=De(["pstrut"],[]);d.style.height=I(s);for(var f=[],g=n,x=n,w=n,M=0;M<a.length;M++){var k=a[M];if(k.type==="kern")w+=k.size;else{var A=k.elem,N=k.wrapperClasses||[],E=k.wrapperStyle||{},R=De(N,[d,A],void 0,E);R.style.top=I(-s-w-A.depth),k.marginLeft&&(R.style.marginLeft=k.marginLeft),k.marginRight&&(R.style.marginRight=k.marginRight),f.push(R),w+=A.height+A.depth}g=Math.min(g,w),x=Math.max(x,w)}var P=De(["vlist"],f);P.style.height=I(x);var O;if(g<0){var Y=De([],[]),q=De(["vlist"],[Y]);q.style.height=I(-g);var j=De(["vlist-s"],[new Fe("​")]);O=[De(["vlist-r"],[P,j]),De(["vlist-r"],[q])]}else O=[De(["vlist-r"],[P])];var _=De(["vlist-t"],O);return O.length===2&&_.classes.push("vlist-t2"),_.height=x,_.depth=-g,_},o4=(r,e)=>{var t=De(["mspace"],[],e),a=fe(r,e);return t.style.marginRight=I(a),t},St=function(e,t,a){var n="";switch(e){case"amsrm":n="AMS";break;case"textrm":n="Main";break;case"textsf":n="SansSerif";break;case"texttt":n="Typewriter";break;default:n=e}var s;return t==="textbf"&&a==="textit"?s="BoldItalic":t==="textbf"?s="Bold":t==="textit"?s="Italic":s="Regular",n+"-"+s},no={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathsfit:{variant:"sans-serif-italic",fontName:"SansSerif-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},so={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},i4=function(e,t){var[a,n,s]=so[e],o=new S0(a),l=new u0([o],{width:I(n),height:I(s),style:"width:"+I(n),viewBox:"0 0 "+1e3*n+" "+1e3*s,preserveAspectRatio:"xMinYMin"}),u=ro(["overlay"],[l],t);return u.height=s,u.style.height=I(s),u.style.width=I(n),u},C={fontMap:no,makeSymbol:Ue,mathsym:Z2,makeSpan:De,makeSvgSpan:ro,makeLineSpan:t4,makeAnchor:r4,makeFragment:ao,wrapFragment:a4,makeVList:s4,makeOrd:J2,makeGlue:o4,staticSvg:i4,svgData:so,tryCombineChars:e4},he={number:3,unit:"mu"},A0={number:4,unit:"mu"},n0={number:5,unit:"mu"},l4={mord:{mop:he,mbin:A0,mrel:n0,minner:he},mop:{mord:he,mop:he,mrel:n0,minner:he},mbin:{mord:A0,mop:A0,mopen:A0,minner:A0},mrel:{mord:n0,mop:n0,mopen:n0,minner:n0},mopen:{},mclose:{mop:he,mbin:A0,mrel:n0,minner:he},mpunct:{mord:he,mop:he,mrel:n0,mopen:he,mclose:he,mpunct:he,minner:he},minner:{mord:he,mop:he,mbin:A0,mrel:n0,mopen:he,mpunct:he,minner:he}},c4={mord:{mop:he},mop:{mord:he,mop:he},mbin:{},mrel:{},mopen:{},mclose:{mop:he},mpunct:{},minner:{mop:he}},oo={},jt={},It={};function F(r){for(var{type:e,names:t,props:a,handler:n,htmlBuilder:s,mathmlBuilder:o}=r,l={type:e,numArgs:a.numArgs,argTypes:a.argTypes,allowedInArgument:!!a.allowedInArgument,allowedInText:!!a.allowedInText,allowedInMath:a.allowedInMath===void 0?!0:a.allowedInMath,numOptionalArgs:a.numOptionalArgs||0,infix:!!a.infix,primitive:!!a.primitive,handler:n},u=0;u<t.length;++u)oo[t[u]]=l;e&&(s&&(jt[e]=s),o&&(It[e]=o))}function L0(r){var{type:e,htmlBuilder:t,mathmlBuilder:a}=r;F({type:e,names:[],props:{numArgs:0},handler(){throw new Error("Should never be called.")},htmlBuilder:t,mathmlBuilder:a})}var Pt=function(e){return e.type==="ordgroup"&&e.body.length===1?e.body[0]:e},ge=function(e){return e.type==="ordgroup"?e.body:[e]},d0=C.makeSpan,u4=["leftmost","mbin","mopen","mrel","mop","mpunct"],d4=["rightmost","mrel","mclose","mpunct"],m4={display:K.DISPLAY,text:K.TEXT,script:K.SCRIPT,scriptscript:K.SCRIPTSCRIPT},h4={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},Ce=function(e,t,a,n){n===void 0&&(n=[null,null]);for(var s=[],o=0;o<e.length;o++){var l=te(e[o],t);if(l instanceof at){var u=l.children;s.push(...u)}else s.push(l)}if(C.tryCombineChars(s),!a)return s;var d=t;if(e.length===1){var f=e[0];f.type==="sizing"?d=t.havingSize(f.size):f.type==="styling"&&(d=t.havingStyle(m4[f.style]))}var g=d0([n[0]||"leftmost"],[],t),x=d0([n[1]||"rightmost"],[],t),w=a==="root";return un(s,(M,k)=>{var A=k.classes[0],N=M.classes[0];A==="mbin"&&d4.includes(N)?k.classes[0]="mord":N==="mbin"&&u4.includes(A)&&(M.classes[0]="mord")},{node:g},x,w),un(s,(M,k)=>{var A=Ir(k),N=Ir(M),E=A&&N?M.hasClass("mtight")?c4[A][N]:l4[A][N]:null;if(E)return C.makeGlue(E,d)},{node:g},x,w),s},un=function r(e,t,a,n,s){n&&e.push(n);for(var o=0;o<e.length;o++){var l=e[o],u=io(l);if(u){r(u.children,t,a,null,s);continue}var d=!l.hasClass("mspace");if(d){var f=t(l,a.node);f&&(a.insertAfter?a.insertAfter(f):(e.unshift(f),o++))}d?a.node=l:s&&l.hasClass("newline")&&(a.node=d0(["leftmost"])),a.insertAfter=(g=>x=>{e.splice(g+1,0,x),o++})(o)}n&&e.pop()},io=function(e){return e instanceof at||e instanceof aa||e instanceof nt&&e.hasClass("enclosing")?e:null},f4=function r(e,t){var a=io(e);if(a){var n=a.children;if(n.length){if(t==="right")return r(n[n.length-1],"right");if(t==="left")return r(n[0],"left")}}return e},Ir=function(e,t){return e?(t&&(e=f4(e,t)),h4[e.classes[0]]||null):null},rt=function(e,t){var a=["nulldelimiter"].concat(e.baseSizingClasses());return d0(t.concat(a))},te=function(e,t,a){if(!e)return d0();if(jt[e.type]){var n=jt[e.type](e,t);if(a&&t.size!==a.size){n=d0(t.sizingClasses(a),[n],t);var s=t.sizeMultiplier/a.sizeMultiplier;n.height*=s,n.depth*=s}return n}else throw new L("Got group of unknown type: '"+e.type+"'")};function kt(r,e){var t=d0(["base"],r,e),a=d0(["strut"]);return a.style.height=I(t.height+t.depth),t.depth&&(a.style.verticalAlign=I(-t.depth)),t.children.unshift(a),t}function Pr(r,e){var t=null;r.length===1&&r[0].type==="tag"&&(t=r[0].tag,r=r[0].body);var a=Ce(r,e,"root"),n;a.length===2&&a[1].hasClass("tag")&&(n=a.pop());for(var s=[],o=[],l=0;l<a.length;l++)if(o.push(a[l]),a[l].hasClass("mbin")||a[l].hasClass("mrel")||a[l].hasClass("allowbreak")){for(var u=!1;l<a.length-1&&a[l+1].hasClass("mspace")&&!a[l+1].hasClass("newline");)l++,o.push(a[l]),a[l].hasClass("nobreak")&&(u=!0);u||(s.push(kt(o,e)),o=[])}else a[l].hasClass("newline")&&(o.pop(),o.length>0&&(s.push(kt(o,e)),o=[]),s.push(a[l]));o.length>0&&s.push(kt(o,e));var d;t?(d=kt(Ce(t,e,!0)),d.classes=["tag"],s.push(d)):n&&s.push(n);var f=d0(["katex-html"],s);if(f.setAttribute("aria-hidden","true"),d){var g=d.children[0];g.style.height=I(f.height+f.depth),f.depth&&(g.style.verticalAlign=I(-f.depth))}return f}function lo(r){return new at(r)}class je{constructor(e,t,a){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=e,this.attributes={},this.children=t||[],this.classes=a||[]}setAttribute(e,t){this.attributes[e]=t}getAttribute(e){return this.attributes[e]}toNode(){var e=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);this.classes.length>0&&(e.className=w0(this.classes));for(var a=0;a<this.children.length;a++)if(this.children[a]instanceof Ze&&this.children[a+1]instanceof Ze){for(var n=this.children[a].toText()+this.children[++a].toText();this.children[a+1]instanceof Ze;)n+=this.children[++a].toText();e.appendChild(new Ze(n).toNode())}else e.appendChild(this.children[a].toNode());return e}toMarkup(){var e="<"+this.type;for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&(e+=" "+t+'="',e+=re.escape(this.attributes[t]),e+='"');this.classes.length>0&&(e+=' class ="'+re.escape(w0(this.classes))+'"'),e+=">";for(var a=0;a<this.children.length;a++)e+=this.children[a].toMarkup();return e+="</"+this.type+">",e}toText(){return this.children.map(e=>e.toText()).join("")}}class Ze{constructor(e){this.text=void 0,this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return re.escape(this.toText())}toText(){return this.text}}class p4{constructor(e){this.width=void 0,this.character=void 0,this.width=e,e>=.05555&&e<=.05556?this.character=" ":e>=.1666&&e<=.1667?this.character=" ":e>=.2222&&e<=.2223?this.character=" ":e>=.2777&&e<=.2778?this.character="  ":e>=-.05556&&e<=-.05555?this.character=" ⁣":e>=-.1667&&e<=-.1666?this.character=" ⁣":e>=-.2223&&e<=-.2222?this.character=" ⁣":e>=-.2778&&e<=-.2777?this.character=" ⁣":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var e=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return e.setAttribute("width",I(this.width)),e}toMarkup(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+I(this.width)+'"/>'}toText(){return this.character?this.character:" "}}var B={MathNode:je,TextNode:Ze,SpaceNode:p4,newDocumentFragment:lo},qe=function(e,t,a){return ie[t][e]&&ie[t][e].replace&&e.charCodeAt(0)!==55349&&!(to.hasOwnProperty(e)&&a&&(a.fontFamily&&a.fontFamily.slice(4,6)==="tt"||a.font&&a.font.slice(4,6)==="tt"))&&(e=ie[t][e].replace),new B.TextNode(e)},sa=function(e){return e.length===1?e[0]:new B.MathNode("mrow",e)},oa=function(e,t){if(t.fontFamily==="texttt")return"monospace";if(t.fontFamily==="textsf")return t.fontShape==="textit"&&t.fontWeight==="textbf"?"sans-serif-bold-italic":t.fontShape==="textit"?"sans-serif-italic":t.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(t.fontShape==="textit"&&t.fontWeight==="textbf")return"bold-italic";if(t.fontShape==="textit")return"italic";if(t.fontWeight==="textbf")return"bold";var a=t.font;if(!a||a==="mathnormal")return null;var n=e.mode;if(a==="mathit")return"italic";if(a==="boldsymbol")return e.type==="textord"?"bold":"bold-italic";if(a==="mathbf")return"bold";if(a==="mathbb")return"double-struck";if(a==="mathsfit")return"sans-serif-italic";if(a==="mathfrak")return"fraktur";if(a==="mathscr"||a==="mathcal")return"script";if(a==="mathsf")return"sans-serif";if(a==="mathtt")return"monospace";var s=e.text;if(["\\imath","\\jmath"].includes(s))return null;ie[n][s]&&ie[n][s].replace&&(s=ie[n][s].replace);var o=C.fontMap[a].fontName;return ra(s,o,n)?C.fontMap[a].variant:null};function fr(r){if(!r)return!1;if(r.type==="mi"&&r.children.length===1){var e=r.children[0];return e instanceof Ze&&e.text==="."}else if(r.type==="mo"&&r.children.length===1&&r.getAttribute("separator")==="true"&&r.getAttribute("lspace")==="0em"&&r.getAttribute("rspace")==="0em"){var t=r.children[0];return t instanceof Ze&&t.text===","}else return!1}var Re=function(e,t,a){if(e.length===1){var n=oe(e[0],t);return a&&n instanceof je&&n.type==="mo"&&(n.setAttribute("lspace","0em"),n.setAttribute("rspace","0em")),[n]}for(var s=[],o,l=0;l<e.length;l++){var u=oe(e[l],t);if(u instanceof je&&o instanceof je){if(u.type==="mtext"&&o.type==="mtext"&&u.getAttribute("mathvariant")===o.getAttribute("mathvariant")){o.children.push(...u.children);continue}else if(u.type==="mn"&&o.type==="mn"){o.children.push(...u.children);continue}else if(fr(u)&&o.type==="mn"){o.children.push(...u.children);continue}else if(u.type==="mn"&&fr(o))u.children=[...o.children,...u.children],s.pop();else if((u.type==="msup"||u.type==="msub")&&u.children.length>=1&&(o.type==="mn"||fr(o))){var d=u.children[0];d instanceof je&&d.type==="mn"&&(d.children=[...o.children,...d.children],s.pop())}else if(o.type==="mi"&&o.children.length===1){var f=o.children[0];if(f instanceof Ze&&f.text==="̸"&&(u.type==="mo"||u.type==="mi"||u.type==="mn")){var g=u.children[0];g instanceof Ze&&g.text.length>0&&(g.text=g.text.slice(0,1)+"̸"+g.text.slice(1),s.pop())}}}s.push(u),o=u}return s},k0=function(e,t,a){return sa(Re(e,t,a))},oe=function(e,t){if(!e)return new B.MathNode("mrow");if(It[e.type]){var a=It[e.type](e,t);return a}else throw new L("Got group of unknown type: '"+e.type+"'")};function dn(r,e,t,a,n){var s=Re(r,t),o;s.length===1&&s[0]instanceof je&&["mrow","mtable"].includes(s[0].type)?o=s[0]:o=new B.MathNode("mrow",s);var l=new B.MathNode("annotation",[new B.TextNode(e)]);l.setAttribute("encoding","application/x-tex");var u=new B.MathNode("semantics",[o,l]),d=new B.MathNode("math",[u]);d.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),a&&d.setAttribute("display","block");var f=n?"katex":"katex-mathml";return C.makeSpan([f],[d])}var co=function(e){return new o0({style:e.displayMode?K.DISPLAY:K.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness})},uo=function(e,t){if(t.displayMode){var a=["katex-display"];t.leqno&&a.push("leqno"),t.fleqn&&a.push("fleqn"),e=C.makeSpan(a,[e])}return e},v4=function(e,t,a){var n=co(a),s;if(a.output==="mathml")return dn(e,t,n,a.displayMode,!0);if(a.output==="html"){var o=Pr(e,n);s=C.makeSpan(["katex"],[o])}else{var l=dn(e,t,n,a.displayMode,!1),u=Pr(e,n);s=C.makeSpan(["katex"],[l,u])}return uo(s,a)},g4=function(e,t,a){var n=co(a),s=Pr(e,n),o=C.makeSpan(["katex"],[s]);return uo(o,a)},b4={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋","\\cdrightarrow":"→","\\cdleftarrow":"←","\\cdlongequal":"="},y4=function(e){var t=new B.MathNode("mo",[new B.TextNode(b4[e.replace(/^\\/,"")])]);return t.setAttribute("stretchy","true"),t},x4={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},w4=function(e){return e.type==="ordgroup"?e.body.length:1},S4=function(e,t){function a(){var l=4e5,u=e.label.slice(1);if(["widehat","widecheck","widetilde","utilde"].includes(u)){var d=e,f=w4(d.base),g,x,w;if(f>5)u==="widehat"||u==="widecheck"?(g=420,l=2364,w=.42,x=u+"4"):(g=312,l=2340,w=.34,x="tilde4");else{var M=[1,1,2,2,3,3][f];u==="widehat"||u==="widecheck"?(l=[0,1062,2364,2364,2364][M],g=[0,239,300,360,420][M],w=[0,.24,.3,.3,.36,.42][M],x=u+M):(l=[0,600,1033,2339,2340][M],g=[0,260,286,306,312][M],w=[0,.26,.286,.3,.306,.34][M],x="tilde"+M)}var k=new S0(x),A=new u0([k],{width:"100%",height:I(w),viewBox:"0 0 "+l+" "+g,preserveAspectRatio:"none"});return{span:C.makeSvgSpan([],[A],t),minWidth:0,height:w}}else{var N=[],E=x4[u],[R,P,O]=E,Y=O/1e3,q=R.length,j,_;if(q===1){var le=E[3];j=["hide-tail"],_=[le]}else if(q===2)j=["halfarrow-left","halfarrow-right"],_=["xMinYMin","xMaxYMin"];else if(q===3)j=["brace-left","brace-center","brace-right"],_=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
325
- `+q+" children.");for(var pe=0;pe<q;pe++){var ae=new S0(R[pe]),be=new u0([ae],{width:"400em",height:I(Y),viewBox:"0 0 "+l+" "+O,preserveAspectRatio:_[pe]+" slice"}),ne=C.makeSvgSpan([j[pe]],[be],t);if(q===1)return{span:ne,minWidth:P,height:Y};ne.style.height=I(Y),N.push(ne)}return{span:C.makeSpan(["stretchy"],N,t),minWidth:P,height:Y}}}var{span:n,minWidth:s,height:o}=a();return n.height=o,n.style.height=I(o),s>0&&(n.style.minWidth=I(s)),n},k4=function(e,t,a,n,s){var o,l=e.height+e.depth+a+n;if(/fbox|color|angl/.test(t)){if(o=C.makeSpan(["stretchy",t],[],s),t==="fbox"){var u=s.color&&s.getColor();u&&(o.style.borderColor=u)}}else{var d=[];/^[bx]cancel$/.test(t)&&d.push(new Lr({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(t)&&d.push(new Lr({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var f=new u0(d,{width:"100%",height:I(l)});o=C.makeSvgSpan([],[f],s)}return o.height=l,o.style.height=I(l),o},m0={encloseSpan:k4,mathMLnode:y4,svgSpan:S4};function Q(r,e){if(!r||r.type!==e)throw new Error("Expected node of type "+e+", but got "+(r?"node of type "+r.type:String(r)));return r}function ia(r){var e=Ut(r);if(!e)throw new Error("Expected node of symbol group type, but got "+(r?"node of type "+r.type:String(r)));return e}function Ut(r){return r&&(r.type==="atom"||X2.hasOwnProperty(r.type))?r:null}var la=(r,e)=>{var t,a,n;r&&r.type==="supsub"?(a=Q(r.base,"accent"),t=a.base,r.base=t,n=$2(te(r,e)),r.base=a):(a=Q(r,"accent"),t=a.base);var s=te(t,e.havingCrampedStyle()),o=a.isShifty&&re.isCharacterBox(t),l=0;if(o){var u=re.getBaseElem(t),d=te(u,e.havingCrampedStyle());l=an(d).skew}var f=a.label==="\\c",g=f?s.height+s.depth:Math.min(s.height,e.fontMetrics().xHeight),x;if(a.isStretchy)x=m0.svgSpan(a,e),x=C.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"elem",elem:x,wrapperClasses:["svg-align"],wrapperStyle:l>0?{width:"calc(100% - "+I(2*l)+")",marginLeft:I(2*l)}:void 0}]},e);else{var w,M;a.label==="\\vec"?(w=C.staticSvg("vec",e),M=C.svgData.vec[1]):(w=C.makeOrd({mode:a.mode,text:a.label},e,"textord"),w=an(w),w.italic=0,M=w.width,f&&(g+=w.depth)),x=C.makeSpan(["accent-body"],[w]);var k=a.label==="\\textcircled";k&&(x.classes.push("accent-full"),g=s.height);var A=l;k||(A-=M/2),x.style.left=I(A),a.label==="\\textcircled"&&(x.style.top=".2em"),x=C.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"kern",size:-g},{type:"elem",elem:x}]},e)}var N=C.makeSpan(["mord","accent"],[x],e);return n?(n.children[0]=N,n.height=Math.max(N.height,n.height),n.classes[0]="mord",n):N},mo=(r,e)=>{var t=r.isStretchy?m0.mathMLnode(r.label):new B.MathNode("mo",[qe(r.label,r.mode)]),a=new B.MathNode("mover",[oe(r.base,e),t]);return a.setAttribute("accent","true"),a},C4=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(r=>"\\"+r).join("|"));F({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(r,e)=>{var t=Pt(e[0]),a=!C4.test(r.funcName),n=!a||r.funcName==="\\widehat"||r.funcName==="\\widetilde"||r.funcName==="\\widecheck";return{type:"accent",mode:r.parser.mode,label:r.funcName,isStretchy:a,isShifty:n,base:t}},htmlBuilder:la,mathmlBuilder:mo});F({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(r,e)=>{var t=e[0],a=r.parser.mode;return a==="math"&&(r.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+r.funcName+" works only in text mode"),a="text"),{type:"accent",mode:a,label:r.funcName,isStretchy:!1,isShifty:!0,base:t}},htmlBuilder:la,mathmlBuilder:mo});F({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(r,e)=>{var{parser:t,funcName:a}=r,n=e[0];return{type:"accentUnder",mode:t.mode,label:a,base:n}},htmlBuilder:(r,e)=>{var t=te(r.base,e),a=m0.svgSpan(r,e),n=r.label==="\\utilde"?.12:0,s=C.makeVList({positionType:"top",positionData:t.height,children:[{type:"elem",elem:a,wrapperClasses:["svg-align"]},{type:"kern",size:n},{type:"elem",elem:t}]},e);return C.makeSpan(["mord","accentunder"],[s],e)},mathmlBuilder:(r,e)=>{var t=m0.mathMLnode(r.label),a=new B.MathNode("munder",[oe(r.base,e),t]);return a.setAttribute("accentunder","true"),a}});var Ct=r=>{var e=new B.MathNode("mpadded",r?[r]:[]);return e.setAttribute("width","+0.6em"),e.setAttribute("lspace","0.3em"),e};F({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(r,e,t){var{parser:a,funcName:n}=r;return{type:"xArrow",mode:a.mode,label:n,body:e[0],below:t[0]}},htmlBuilder(r,e){var t=e.style,a=e.havingStyle(t.sup()),n=C.wrapFragment(te(r.body,a,e),e),s=r.label.slice(0,2)==="\\x"?"x":"cd";n.classes.push(s+"-arrow-pad");var o;r.below&&(a=e.havingStyle(t.sub()),o=C.wrapFragment(te(r.below,a,e),e),o.classes.push(s+"-arrow-pad"));var l=m0.svgSpan(r,e),u=-e.fontMetrics().axisHeight+.5*l.height,d=-e.fontMetrics().axisHeight-.5*l.height-.111;(n.depth>.25||r.label==="\\xleftequilibrium")&&(d-=n.depth);var f;if(o){var g=-e.fontMetrics().axisHeight+o.height+.5*l.height+.111;f=C.makeVList({positionType:"individualShift",children:[{type:"elem",elem:n,shift:d},{type:"elem",elem:l,shift:u},{type:"elem",elem:o,shift:g}]},e)}else f=C.makeVList({positionType:"individualShift",children:[{type:"elem",elem:n,shift:d},{type:"elem",elem:l,shift:u}]},e);return f.children[0].children[0].children[1].classes.push("svg-align"),C.makeSpan(["mrel","x-arrow"],[f],e)},mathmlBuilder(r,e){var t=m0.mathMLnode(r.label);t.setAttribute("minsize",r.label.charAt(0)==="x"?"1.75em":"3.0em");var a;if(r.body){var n=Ct(oe(r.body,e));if(r.below){var s=Ct(oe(r.below,e));a=new B.MathNode("munderover",[t,s,n])}else a=new B.MathNode("mover",[t,n])}else if(r.below){var o=Ct(oe(r.below,e));a=new B.MathNode("munder",[t,o])}else a=Ct(),a=new B.MathNode("mover",[t,a]);return a}});var M4=C.makeSpan;function ho(r,e){var t=Ce(r.body,e,!0);return M4([r.mclass],t,e)}function fo(r,e){var t,a=Re(r.body,e);return r.mclass==="minner"?t=new B.MathNode("mpadded",a):r.mclass==="mord"?r.isCharacterBox?(t=a[0],t.type="mi"):t=new B.MathNode("mi",a):(r.isCharacterBox?(t=a[0],t.type="mo"):t=new B.MathNode("mo",a),r.mclass==="mbin"?(t.attributes.lspace="0.22em",t.attributes.rspace="0.22em"):r.mclass==="mpunct"?(t.attributes.lspace="0em",t.attributes.rspace="0.17em"):r.mclass==="mopen"||r.mclass==="mclose"?(t.attributes.lspace="0em",t.attributes.rspace="0em"):r.mclass==="minner"&&(t.attributes.lspace="0.0556em",t.attributes.width="+0.1111em")),t}F({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(r,e){var{parser:t,funcName:a}=r,n=e[0];return{type:"mclass",mode:t.mode,mclass:"m"+a.slice(5),body:ge(n),isCharacterBox:re.isCharacterBox(n)}},htmlBuilder:ho,mathmlBuilder:fo});var $t=r=>{var e=r.type==="ordgroup"&&r.body.length?r.body[0]:r;return e.type==="atom"&&(e.family==="bin"||e.family==="rel")?"m"+e.family:"mord"};F({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(r,e){var{parser:t}=r;return{type:"mclass",mode:t.mode,mclass:$t(e[0]),body:ge(e[1]),isCharacterBox:re.isCharacterBox(e[1])}}});F({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(r,e){var{parser:t,funcName:a}=r,n=e[1],s=e[0],o;a!=="\\stackrel"?o=$t(n):o="mrel";var l={type:"op",mode:n.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:a!=="\\stackrel",body:ge(n)},u={type:"supsub",mode:s.mode,base:l,sup:a==="\\underset"?null:s,sub:a==="\\underset"?s:null};return{type:"mclass",mode:t.mode,mclass:o,body:[u],isCharacterBox:re.isCharacterBox(u)}},htmlBuilder:ho,mathmlBuilder:fo});F({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(r,e){var{parser:t}=r;return{type:"pmb",mode:t.mode,mclass:$t(e[0]),body:ge(e[0])}},htmlBuilder(r,e){var t=Ce(r.body,e,!0),a=C.makeSpan([r.mclass],t,e);return a.style.textShadow="0.02em 0.01em 0.04px",a},mathmlBuilder(r,e){var t=Re(r.body,e),a=new B.MathNode("mstyle",t);return a.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),a}});var T4={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},mn=()=>({type:"styling",body:[],mode:"math",style:"display"}),hn=r=>r.type==="textord"&&r.text==="@",z4=(r,e)=>(r.type==="mathord"||r.type==="atom")&&r.text===e;function A4(r,e,t){var a=T4[r];switch(a){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return t.callFunction(a,[e[0]],[e[1]]);case"\\uparrow":case"\\downarrow":{var n=t.callFunction("\\\\cdleft",[e[0]],[]),s={type:"atom",text:a,mode:"math",family:"rel"},o=t.callFunction("\\Big",[s],[]),l=t.callFunction("\\\\cdright",[e[1]],[]),u={type:"ordgroup",mode:"math",body:[n,o,l]};return t.callFunction("\\\\cdparent",[u],[])}case"\\\\cdlongequal":return t.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var d={type:"textord",text:"\\Vert",mode:"math"};return t.callFunction("\\Big",[d],[])}default:return{type:"textord",text:" ",mode:"math"}}}function N4(r){var e=[];for(r.gullet.beginGroup(),r.gullet.macros.set("\\cr","\\\\\\relax"),r.gullet.beginGroup();;){e.push(r.parseExpression(!1,"\\\\")),r.gullet.endGroup(),r.gullet.beginGroup();var t=r.fetch().text;if(t==="&"||t==="\\\\")r.consume();else if(t==="\\end"){e[e.length-1].length===0&&e.pop();break}else throw new L("Expected \\\\ or \\cr or \\end",r.nextToken)}for(var a=[],n=[a],s=0;s<e.length;s++){for(var o=e[s],l=mn(),u=0;u<o.length;u++)if(!hn(o[u]))l.body.push(o[u]);else{a.push(l),u+=1;var d=ia(o[u]).text,f=new Array(2);if(f[0]={type:"ordgroup",mode:"math",body:[]},f[1]={type:"ordgroup",mode:"math",body:[]},!("=|.".indexOf(d)>-1))if("<>AV".indexOf(d)>-1)for(var g=0;g<2;g++){for(var x=!0,w=u+1;w<o.length;w++){if(z4(o[w],d)){x=!1,u=w;break}if(hn(o[w]))throw new L("Missing a "+d+" character to complete a CD arrow.",o[w]);f[g].body.push(o[w])}if(x)throw new L("Missing a "+d+" character to complete a CD arrow.",o[u])}else throw new L('Expected one of "<>AV=|." after @',o[u]);var M=A4(d,f,r),k={type:"styling",body:[M],mode:"math",style:"display"};a.push(k),l=mn()}s%2===0?a.push(l):a.shift(),a=[],n.push(a)}r.gullet.endGroup(),r.gullet.endGroup();var A=new Array(n[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:n,arraystretch:1,addJot:!0,rowGaps:[null],cols:A,colSeparationType:"CD",hLinesBeforeRow:new Array(n.length+1).fill([])}}F({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(r,e){var{parser:t,funcName:a}=r;return{type:"cdlabel",mode:t.mode,side:a.slice(4),label:e[0]}},htmlBuilder(r,e){var t=e.havingStyle(e.style.sup()),a=C.wrapFragment(te(r.label,t,e),e);return a.classes.push("cd-label-"+r.side),a.style.bottom=I(.8-a.depth),a.height=0,a.depth=0,a},mathmlBuilder(r,e){var t=new B.MathNode("mrow",[oe(r.label,e)]);return t=new B.MathNode("mpadded",[t]),t.setAttribute("width","0"),r.side==="left"&&t.setAttribute("lspace","-1width"),t.setAttribute("voffset","0.7em"),t=new B.MathNode("mstyle",[t]),t.setAttribute("displaystyle","false"),t.setAttribute("scriptlevel","1"),t}});F({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(r,e){var{parser:t}=r;return{type:"cdlabelparent",mode:t.mode,fragment:e[0]}},htmlBuilder(r,e){var t=C.wrapFragment(te(r.fragment,e),e);return t.classes.push("cd-vert-arrow"),t},mathmlBuilder(r,e){return new B.MathNode("mrow",[oe(r.fragment,e)])}});F({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(r,e){for(var{parser:t}=r,a=Q(e[0],"ordgroup"),n=a.body,s="",o=0;o<n.length;o++){var l=Q(n[o],"textord");s+=l.text}var u=parseInt(s),d;if(isNaN(u))throw new L("\\@char has non-numeric argument "+s);if(u<0||u>=1114111)throw new L("\\@char with invalid code point "+s);return u<=65535?d=String.fromCharCode(u):(u-=65536,d=String.fromCharCode((u>>10)+55296,(u&1023)+56320)),{type:"textord",mode:t.mode,text:d}}});var po=(r,e)=>{var t=Ce(r.body,e.withColor(r.color),!1);return C.makeFragment(t)},vo=(r,e)=>{var t=Re(r.body,e.withColor(r.color)),a=new B.MathNode("mstyle",t);return a.setAttribute("mathcolor",r.color),a};F({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(r,e){var{parser:t}=r,a=Q(e[0],"color-token").color,n=e[1];return{type:"color",mode:t.mode,color:a,body:ge(n)}},htmlBuilder:po,mathmlBuilder:vo});F({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(r,e){var{parser:t,breakOnTokenText:a}=r,n=Q(e[0],"color-token").color;t.gullet.macros.set("\\current@color",n);var s=t.parseExpression(!0,a);return{type:"color",mode:t.mode,color:n,body:s}},htmlBuilder:po,mathmlBuilder:vo});F({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(r,e,t){var{parser:a}=r,n=a.gullet.future().text==="["?a.parseSizeGroup(!0):null,s=!a.settings.displayMode||!a.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:a.mode,newLine:s,size:n&&Q(n,"size").value}},htmlBuilder(r,e){var t=C.makeSpan(["mspace"],[],e);return r.newLine&&(t.classes.push("newline"),r.size&&(t.style.marginTop=I(fe(r.size,e)))),t},mathmlBuilder(r,e){var t=new B.MathNode("mspace");return r.newLine&&(t.setAttribute("linebreak","newline"),r.size&&t.setAttribute("height",I(fe(r.size,e)))),t}});var Or={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},go=r=>{var e=r.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(e))throw new L("Expected a control sequence",r);return e},D4=r=>{var e=r.gullet.popToken();return e.text==="="&&(e=r.gullet.popToken(),e.text===" "&&(e=r.gullet.popToken())),e},bo=(r,e,t,a)=>{var n=r.gullet.macros.get(t.text);n==null&&(t.noexpand=!0,n={tokens:[t],numArgs:0,unexpandable:!r.gullet.isExpandable(t.text)}),r.gullet.macros.set(e,n,a)};F({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(r){var{parser:e,funcName:t}=r;e.consumeSpaces();var a=e.fetch();if(Or[a.text])return(t==="\\global"||t==="\\\\globallong")&&(a.text=Or[a.text]),Q(e.parseFunction(),"internal");throw new L("Invalid token after macro prefix",a)}});F({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(r){var{parser:e,funcName:t}=r,a=e.gullet.popToken(),n=a.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(n))throw new L("Expected a control sequence",a);for(var s=0,o,l=[[]];e.gullet.future().text!=="{";)if(a=e.gullet.popToken(),a.text==="#"){if(e.gullet.future().text==="{"){o=e.gullet.future(),l[s].push("{");break}if(a=e.gullet.popToken(),!/^[1-9]$/.test(a.text))throw new L('Invalid argument number "'+a.text+'"');if(parseInt(a.text)!==s+1)throw new L('Argument number "'+a.text+'" out of order');s++,l.push([])}else{if(a.text==="EOF")throw new L("Expected a macro definition");l[s].push(a.text)}var{tokens:u}=e.gullet.consumeArg();return o&&u.unshift(o),(t==="\\edef"||t==="\\xdef")&&(u=e.gullet.expandTokens(u),u.reverse()),e.gullet.macros.set(n,{tokens:u,numArgs:s,delimiters:l},t===Or[t]),{type:"internal",mode:e.mode}}});F({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(r){var{parser:e,funcName:t}=r,a=go(e.gullet.popToken());e.gullet.consumeSpaces();var n=D4(e);return bo(e,a,n,t==="\\\\globallet"),{type:"internal",mode:e.mode}}});F({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(r){var{parser:e,funcName:t}=r,a=go(e.gullet.popToken()),n=e.gullet.popToken(),s=e.gullet.popToken();return bo(e,a,s,t==="\\\\globalfuture"),e.gullet.pushToken(s),e.gullet.pushToken(n),{type:"internal",mode:e.mode}}});var K0=function(e,t,a){var n=ie.math[e]&&ie.math[e].replace,s=ra(n||e,t,a);if(!s)throw new Error("Unsupported symbol "+e+" and font size "+t+".");return s},ca=function(e,t,a,n){var s=a.havingBaseStyle(t),o=C.makeSpan(n.concat(s.sizingClasses(a)),[e],a),l=s.sizeMultiplier/a.sizeMultiplier;return o.height*=l,o.depth*=l,o.maxFontSize=s.sizeMultiplier,o},yo=function(e,t,a){var n=t.havingBaseStyle(a),s=(1-t.sizeMultiplier/n.sizeMultiplier)*t.fontMetrics().axisHeight;e.classes.push("delimcenter"),e.style.top=I(s),e.height-=s,e.depth+=s},E4=function(e,t,a,n,s,o){var l=C.makeSymbol(e,"Main-Regular",s,n),u=ca(l,t,n,o);return a&&yo(u,n,t),u},R4=function(e,t,a,n){return C.makeSymbol(e,"Size"+t+"-Regular",a,n)},xo=function(e,t,a,n,s,o){var l=R4(e,t,s,n),u=ca(C.makeSpan(["delimsizing","size"+t],[l],n),K.TEXT,n,o);return a&&yo(u,n,K.TEXT),u},pr=function(e,t,a){var n;t==="Size1-Regular"?n="delim-size1":n="delim-size4";var s=C.makeSpan(["delimsizinginner",n],[C.makeSpan([],[C.makeSymbol(e,t,a)])]);return{type:"elem",elem:s}},vr=function(e,t,a){var n=Ye["Size4-Regular"][e.charCodeAt(0)]?Ye["Size4-Regular"][e.charCodeAt(0)][4]:Ye["Size1-Regular"][e.charCodeAt(0)][4],s=new S0("inner",P2(e,Math.round(1e3*t))),o=new u0([s],{width:I(n),height:I(t),style:"width:"+I(n),viewBox:"0 0 "+1e3*n+" "+Math.round(1e3*t),preserveAspectRatio:"xMinYMin"}),l=C.makeSvgSpan([],[o],a);return l.height=t,l.style.height=I(t),l.style.width=I(n),{type:"elem",elem:l}},Fr=.008,Mt={type:"kern",size:-1*Fr},B4=["|","\\lvert","\\rvert","\\vert"],L4=["\\|","\\lVert","\\rVert","\\Vert"],wo=function(e,t,a,n,s,o){var l,u,d,f,g="",x=0;l=d=f=e,u=null;var w="Size1-Regular";e==="\\uparrow"?d=f="⏐":e==="\\Uparrow"?d=f="‖":e==="\\downarrow"?l=d="⏐":e==="\\Downarrow"?l=d="‖":e==="\\updownarrow"?(l="\\uparrow",d="⏐",f="\\downarrow"):e==="\\Updownarrow"?(l="\\Uparrow",d="‖",f="\\Downarrow"):B4.includes(e)?(d="∣",g="vert",x=333):L4.includes(e)?(d="∥",g="doublevert",x=556):e==="["||e==="\\lbrack"?(l="⎡",d="⎢",f="⎣",w="Size4-Regular",g="lbrack",x=667):e==="]"||e==="\\rbrack"?(l="⎤",d="⎥",f="⎦",w="Size4-Regular",g="rbrack",x=667):e==="\\lfloor"||e==="⌊"?(d=l="⎢",f="⎣",w="Size4-Regular",g="lfloor",x=667):e==="\\lceil"||e==="⌈"?(l="⎡",d=f="⎢",w="Size4-Regular",g="lceil",x=667):e==="\\rfloor"||e==="⌋"?(d=l="⎥",f="⎦",w="Size4-Regular",g="rfloor",x=667):e==="\\rceil"||e==="⌉"?(l="⎤",d=f="⎥",w="Size4-Regular",g="rceil",x=667):e==="("||e==="\\lparen"?(l="⎛",d="⎜",f="⎝",w="Size4-Regular",g="lparen",x=875):e===")"||e==="\\rparen"?(l="⎞",d="⎟",f="⎠",w="Size4-Regular",g="rparen",x=875):e==="\\{"||e==="\\lbrace"?(l="⎧",u="⎨",f="⎩",d="⎪",w="Size4-Regular"):e==="\\}"||e==="\\rbrace"?(l="⎫",u="⎬",f="⎭",d="⎪",w="Size4-Regular"):e==="\\lgroup"||e==="⟮"?(l="⎧",f="⎩",d="⎪",w="Size4-Regular"):e==="\\rgroup"||e==="⟯"?(l="⎫",f="⎭",d="⎪",w="Size4-Regular"):e==="\\lmoustache"||e==="⎰"?(l="⎧",f="⎭",d="⎪",w="Size4-Regular"):(e==="\\rmoustache"||e==="⎱")&&(l="⎫",f="⎩",d="⎪",w="Size4-Regular");var M=K0(l,w,s),k=M.height+M.depth,A=K0(d,w,s),N=A.height+A.depth,E=K0(f,w,s),R=E.height+E.depth,P=0,O=1;if(u!==null){var Y=K0(u,w,s);P=Y.height+Y.depth,O=2}var q=k+R+P,j=Math.max(0,Math.ceil((t-q)/(O*N))),_=q+j*O*N,le=n.fontMetrics().axisHeight;a&&(le*=n.sizeMultiplier);var pe=_/2-le,ae=[];if(g.length>0){var be=_-k-R,ne=Math.round(_*1e3),de=O2(g,Math.round(be*1e3)),ce=new S0(g,de),Me=(x/1e3).toFixed(3)+"em",X=(ne/1e3).toFixed(3)+"em",t0=new u0([ce],{width:Me,height:X,viewBox:"0 0 "+x+" "+ne}),Be=C.makeSvgSpan([],[t0],n);Be.height=ne/1e3,Be.style.width=Me,Be.style.height=X,ae.push({type:"elem",elem:Be})}else{if(ae.push(pr(f,w,s)),ae.push(Mt),u===null){var Te=_-k-R+2*Fr;ae.push(vr(d,Te,n))}else{var we=(_-k-R-P)/2+2*Fr;ae.push(vr(d,we,n)),ae.push(Mt),ae.push(pr(u,w,s)),ae.push(Mt),ae.push(vr(d,we,n))}ae.push(Mt),ae.push(pr(l,w,s))}var me=n.havingBaseStyle(K.TEXT),Se=C.makeVList({positionType:"bottom",positionData:pe,children:ae},me);return ca(C.makeSpan(["delimsizing","mult"],[Se],me),K.TEXT,n,o)},gr=80,br=.08,yr=function(e,t,a,n,s){var o=I2(e,n,a),l=new S0(e,o),u=new u0([l],{width:"400em",height:I(t),viewBox:"0 0 400000 "+a,preserveAspectRatio:"xMinYMin slice"});return C.makeSvgSpan(["hide-tail"],[u],s)},j4=function(e,t){var a=t.havingBaseSizing(),n=Mo("\\surd",e*a.sizeMultiplier,Co,a),s=a.sizeMultiplier,o=Math.max(0,t.minRuleThickness-t.fontMetrics().sqrtRuleThickness),l,u=0,d=0,f=0,g;return n.type==="small"?(f=1e3+1e3*o+gr,e<1?s=1:e<1.4&&(s=.7),u=(1+o+br)/s,d=(1+o)/s,l=yr("sqrtMain",u,f,o,t),l.style.minWidth="0.853em",g=.833/s):n.type==="large"?(f=(1e3+gr)*J0[n.size],d=(J0[n.size]+o)/s,u=(J0[n.size]+o+br)/s,l=yr("sqrtSize"+n.size,u,f,o,t),l.style.minWidth="1.02em",g=1/s):(u=e+o+br,d=e+o,f=Math.floor(1e3*e+o)+gr,l=yr("sqrtTall",u,f,o,t),l.style.minWidth="0.742em",g=1.056),l.height=d,l.style.height=I(u),{span:l,advanceWidth:g,ruleWidth:(t.fontMetrics().sqrtRuleThickness+o)*s}},So=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"],I4=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"],ko=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],J0=[0,1.2,1.8,2.4,3],P4=function(e,t,a,n,s){if(e==="<"||e==="\\lt"||e==="⟨"?e="\\langle":(e===">"||e==="\\gt"||e==="⟩")&&(e="\\rangle"),So.includes(e)||ko.includes(e))return xo(e,t,!1,a,n,s);if(I4.includes(e))return wo(e,J0[t],!1,a,n,s);throw new L("Illegal delimiter: '"+e+"'")},O4=[{type:"small",style:K.SCRIPTSCRIPT},{type:"small",style:K.SCRIPT},{type:"small",style:K.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],F4=[{type:"small",style:K.SCRIPTSCRIPT},{type:"small",style:K.SCRIPT},{type:"small",style:K.TEXT},{type:"stack"}],Co=[{type:"small",style:K.SCRIPTSCRIPT},{type:"small",style:K.SCRIPT},{type:"small",style:K.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],q4=function(e){if(e.type==="small")return"Main-Regular";if(e.type==="large")return"Size"+e.size+"-Regular";if(e.type==="stack")return"Size4-Regular";throw new Error("Add support for delim type '"+e.type+"' here.")},Mo=function(e,t,a,n){for(var s=Math.min(2,3-n.style.size),o=s;o<a.length&&a[o].type!=="stack";o++){var l=K0(e,q4(a[o]),"math"),u=l.height+l.depth;if(a[o].type==="small"){var d=n.havingBaseStyle(a[o].style);u*=d.sizeMultiplier}if(u>t)return a[o]}return a[a.length-1]},To=function(e,t,a,n,s,o){e==="<"||e==="\\lt"||e==="⟨"?e="\\langle":(e===">"||e==="\\gt"||e==="⟩")&&(e="\\rangle");var l;ko.includes(e)?l=O4:So.includes(e)?l=Co:l=F4;var u=Mo(e,t,l,n);return u.type==="small"?E4(e,u.style,a,n,s,o):u.type==="large"?xo(e,u.size,a,n,s,o):wo(e,t,a,n,s,o)},H4=function(e,t,a,n,s,o){var l=n.fontMetrics().axisHeight*n.sizeMultiplier,u=901,d=5/n.fontMetrics().ptPerEm,f=Math.max(t-l,a+l),g=Math.max(f/500*u,2*f-d);return To(e,g,!0,n,s,o)},c0={sqrtImage:j4,sizedDelim:P4,sizeToMaxHeight:J0,customSizedDelim:To,leftRightDelim:H4},fn={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},V4=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function Wt(r,e){var t=Ut(r);if(t&&V4.includes(t.text))return t;throw t?new L("Invalid delimiter '"+t.text+"' after '"+e.funcName+"'",r):new L("Invalid delimiter type '"+r.type+"'",r)}F({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(r,e)=>{var t=Wt(e[0],r);return{type:"delimsizing",mode:r.parser.mode,size:fn[r.funcName].size,mclass:fn[r.funcName].mclass,delim:t.text}},htmlBuilder:(r,e)=>r.delim==="."?C.makeSpan([r.mclass]):c0.sizedDelim(r.delim,r.size,e,r.mode,[r.mclass]),mathmlBuilder:r=>{var e=[];r.delim!=="."&&e.push(qe(r.delim,r.mode));var t=new B.MathNode("mo",e);r.mclass==="mopen"||r.mclass==="mclose"?t.setAttribute("fence","true"):t.setAttribute("fence","false"),t.setAttribute("stretchy","true");var a=I(c0.sizeToMaxHeight[r.size]);return t.setAttribute("minsize",a),t.setAttribute("maxsize",a),t}});function pn(r){if(!r.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}F({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(r,e)=>{var t=r.parser.gullet.macros.get("\\current@color");if(t&&typeof t!="string")throw new L("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:r.parser.mode,delim:Wt(e[0],r).text,color:t}}});F({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(r,e)=>{var t=Wt(e[0],r),a=r.parser;++a.leftrightDepth;var n=a.parseExpression(!1);--a.leftrightDepth,a.expect("\\right",!1);var s=Q(a.parseFunction(),"leftright-right");return{type:"leftright",mode:a.mode,body:n,left:t.text,right:s.delim,rightColor:s.color}},htmlBuilder:(r,e)=>{pn(r);for(var t=Ce(r.body,e,!0,["mopen","mclose"]),a=0,n=0,s=!1,o=0;o<t.length;o++)t[o].isMiddle?s=!0:(a=Math.max(t[o].height,a),n=Math.max(t[o].depth,n));a*=e.sizeMultiplier,n*=e.sizeMultiplier;var l;if(r.left==="."?l=rt(e,["mopen"]):l=c0.leftRightDelim(r.left,a,n,e,r.mode,["mopen"]),t.unshift(l),s)for(var u=1;u<t.length;u++){var d=t[u],f=d.isMiddle;f&&(t[u]=c0.leftRightDelim(f.delim,a,n,f.options,r.mode,[]))}var g;if(r.right===".")g=rt(e,["mclose"]);else{var x=r.rightColor?e.withColor(r.rightColor):e;g=c0.leftRightDelim(r.right,a,n,x,r.mode,["mclose"])}return t.push(g),C.makeSpan(["minner"],t,e)},mathmlBuilder:(r,e)=>{pn(r);var t=Re(r.body,e);if(r.left!=="."){var a=new B.MathNode("mo",[qe(r.left,r.mode)]);a.setAttribute("fence","true"),t.unshift(a)}if(r.right!=="."){var n=new B.MathNode("mo",[qe(r.right,r.mode)]);n.setAttribute("fence","true"),r.rightColor&&n.setAttribute("mathcolor",r.rightColor),t.push(n)}return sa(t)}});F({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(r,e)=>{var t=Wt(e[0],r);if(!r.parser.leftrightDepth)throw new L("\\middle without preceding \\left",t);return{type:"middle",mode:r.parser.mode,delim:t.text}},htmlBuilder:(r,e)=>{var t;if(r.delim===".")t=rt(e,[]);else{t=c0.sizedDelim(r.delim,1,e,r.mode,[]);var a={delim:r.delim,options:e};t.isMiddle=a}return t},mathmlBuilder:(r,e)=>{var t=r.delim==="\\vert"||r.delim==="|"?qe("|","text"):qe(r.delim,r.mode),a=new B.MathNode("mo",[t]);return a.setAttribute("fence","true"),a.setAttribute("lspace","0.05em"),a.setAttribute("rspace","0.05em"),a}});var ua=(r,e)=>{var t=C.wrapFragment(te(r.body,e),e),a=r.label.slice(1),n=e.sizeMultiplier,s,o=0,l=re.isCharacterBox(r.body);if(a==="sout")s=C.makeSpan(["stretchy","sout"]),s.height=e.fontMetrics().defaultRuleThickness/n,o=-.5*e.fontMetrics().xHeight;else if(a==="phase"){var u=fe({number:.6,unit:"pt"},e),d=fe({number:.35,unit:"ex"},e),f=e.havingBaseSizing();n=n/f.sizeMultiplier;var g=t.height+t.depth+u+d;t.style.paddingLeft=I(g/2+u);var x=Math.floor(1e3*g*n),w=L2(x),M=new u0([new S0("phase",w)],{width:"400em",height:I(x/1e3),viewBox:"0 0 400000 "+x,preserveAspectRatio:"xMinYMin slice"});s=C.makeSvgSpan(["hide-tail"],[M],e),s.style.height=I(g),o=t.depth+u+d}else{/cancel/.test(a)?l||t.classes.push("cancel-pad"):a==="angl"?t.classes.push("anglpad"):t.classes.push("boxpad");var k=0,A=0,N=0;/box/.test(a)?(N=Math.max(e.fontMetrics().fboxrule,e.minRuleThickness),k=e.fontMetrics().fboxsep+(a==="colorbox"?0:N),A=k):a==="angl"?(N=Math.max(e.fontMetrics().defaultRuleThickness,e.minRuleThickness),k=4*N,A=Math.max(0,.25-t.depth)):(k=l?.2:0,A=k),s=m0.encloseSpan(t,a,k,A,e),/fbox|boxed|fcolorbox/.test(a)?(s.style.borderStyle="solid",s.style.borderWidth=I(N)):a==="angl"&&N!==.049&&(s.style.borderTopWidth=I(N),s.style.borderRightWidth=I(N)),o=t.depth+A,r.backgroundColor&&(s.style.backgroundColor=r.backgroundColor,r.borderColor&&(s.style.borderColor=r.borderColor))}var E;if(r.backgroundColor)E=C.makeVList({positionType:"individualShift",children:[{type:"elem",elem:s,shift:o},{type:"elem",elem:t,shift:0}]},e);else{var R=/cancel|phase/.test(a)?["svg-align"]:[];E=C.makeVList({positionType:"individualShift",children:[{type:"elem",elem:t,shift:0},{type:"elem",elem:s,shift:o,wrapperClasses:R}]},e)}return/cancel/.test(a)&&(E.height=t.height,E.depth=t.depth),/cancel/.test(a)&&!l?C.makeSpan(["mord","cancel-lap"],[E],e):C.makeSpan(["mord"],[E],e)},da=(r,e)=>{var t=0,a=new B.MathNode(r.label.indexOf("colorbox")>-1?"mpadded":"menclose",[oe(r.body,e)]);switch(r.label){case"\\cancel":a.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":a.setAttribute("notation","downdiagonalstrike");break;case"\\phase":a.setAttribute("notation","phasorangle");break;case"\\sout":a.setAttribute("notation","horizontalstrike");break;case"\\fbox":a.setAttribute("notation","box");break;case"\\angl":a.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(t=e.fontMetrics().fboxsep*e.fontMetrics().ptPerEm,a.setAttribute("width","+"+2*t+"pt"),a.setAttribute("height","+"+2*t+"pt"),a.setAttribute("lspace",t+"pt"),a.setAttribute("voffset",t+"pt"),r.label==="\\fcolorbox"){var n=Math.max(e.fontMetrics().fboxrule,e.minRuleThickness);a.setAttribute("style","border: "+n+"em solid "+String(r.borderColor))}break;case"\\xcancel":a.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return r.backgroundColor&&a.setAttribute("mathbackground",r.backgroundColor),a};F({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(r,e,t){var{parser:a,funcName:n}=r,s=Q(e[0],"color-token").color,o=e[1];return{type:"enclose",mode:a.mode,label:n,backgroundColor:s,body:o}},htmlBuilder:ua,mathmlBuilder:da});F({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(r,e,t){var{parser:a,funcName:n}=r,s=Q(e[0],"color-token").color,o=Q(e[1],"color-token").color,l=e[2];return{type:"enclose",mode:a.mode,label:n,backgroundColor:o,borderColor:s,body:l}},htmlBuilder:ua,mathmlBuilder:da});F({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(r,e){var{parser:t}=r;return{type:"enclose",mode:t.mode,label:"\\fbox",body:e[0]}}});F({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler(r,e){var{parser:t,funcName:a}=r,n=e[0];return{type:"enclose",mode:t.mode,label:a,body:n}},htmlBuilder:ua,mathmlBuilder:da});F({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(r,e){var{parser:t}=r;return{type:"enclose",mode:t.mode,label:"\\angl",body:e[0]}}});var zo={};function Je(r){for(var{type:e,names:t,props:a,handler:n,htmlBuilder:s,mathmlBuilder:o}=r,l={type:e,numArgs:a.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:n},u=0;u<t.length;++u)zo[t[u]]=l;s&&(jt[e]=s),o&&(It[e]=o)}var Ao={};function v(r,e){Ao[r]=e}function vn(r){var e=[];r.consumeSpaces();var t=r.fetch().text;for(t==="\\relax"&&(r.consume(),r.consumeSpaces(),t=r.fetch().text);t==="\\hline"||t==="\\hdashline";)r.consume(),e.push(t==="\\hdashline"),r.consumeSpaces(),t=r.fetch().text;return e}var Xt=r=>{var e=r.parser.settings;if(!e.displayMode)throw new L("{"+r.envName+"} can be used only in display mode.")};function ma(r){if(r.indexOf("ed")===-1)return r.indexOf("*")===-1}function C0(r,e,t){var{hskipBeforeAndAfter:a,addJot:n,cols:s,arraystretch:o,colSeparationType:l,autoTag:u,singleRow:d,emptySingleRow:f,maxNumCols:g,leqno:x}=e;if(r.gullet.beginGroup(),d||r.gullet.macros.set("\\cr","\\\\\\relax"),!o){var w=r.gullet.expandMacroAsText("\\arraystretch");if(w==null)o=1;else if(o=parseFloat(w),!o||o<0)throw new L("Invalid \\arraystretch: "+w)}r.gullet.beginGroup();var M=[],k=[M],A=[],N=[],E=u!=null?[]:void 0;function R(){u&&r.gullet.macros.set("\\@eqnsw","1",!0)}function P(){E&&(r.gullet.macros.get("\\df@tag")?(E.push(r.subparse([new Ie("\\df@tag")])),r.gullet.macros.set("\\df@tag",void 0,!0)):E.push(!!u&&r.gullet.macros.get("\\@eqnsw")==="1"))}for(R(),N.push(vn(r));;){var O=r.parseExpression(!1,d?"\\end":"\\\\");r.gullet.endGroup(),r.gullet.beginGroup(),O={type:"ordgroup",mode:r.mode,body:O},t&&(O={type:"styling",mode:r.mode,style:t,body:[O]}),M.push(O);var Y=r.fetch().text;if(Y==="&"){if(g&&M.length===g){if(d||l)throw new L("Too many tab characters: &",r.nextToken);r.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}r.consume()}else if(Y==="\\end"){P(),M.length===1&&O.type==="styling"&&O.body[0].body.length===0&&(k.length>1||!f)&&k.pop(),N.length<k.length+1&&N.push([]);break}else if(Y==="\\\\"){r.consume();var q=void 0;r.gullet.future().text!==" "&&(q=r.parseSizeGroup(!0)),A.push(q?q.value:null),P(),N.push(vn(r)),M=[],k.push(M),R()}else throw new L("Expected & or \\\\ or \\cr or \\end",r.nextToken)}return r.gullet.endGroup(),r.gullet.endGroup(),{type:"array",mode:r.mode,addJot:n,arraystretch:o,body:k,cols:s,rowGaps:A,hskipBeforeAndAfter:a,hLinesBeforeRow:N,colSeparationType:l,tags:E,leqno:x}}function ha(r){return r.slice(0,1)==="d"?"display":"text"}var Qe=function(e,t){var a,n,s=e.body.length,o=e.hLinesBeforeRow,l=0,u=new Array(s),d=[],f=Math.max(t.fontMetrics().arrayRuleWidth,t.minRuleThickness),g=1/t.fontMetrics().ptPerEm,x=5*g;if(e.colSeparationType&&e.colSeparationType==="small"){var w=t.havingStyle(K.SCRIPT).sizeMultiplier;x=.2778*(w/t.sizeMultiplier)}var M=e.colSeparationType==="CD"?fe({number:3,unit:"ex"},t):12*g,k=3*g,A=e.arraystretch*M,N=.7*A,E=.3*A,R=0;function P(it){for(var lt=0;lt<it.length;++lt)lt>0&&(R+=.25),d.push({pos:R,isDashed:it[lt]})}for(P(o[0]),a=0;a<e.body.length;++a){var O=e.body[a],Y=N,q=E;l<O.length&&(l=O.length);var j=new Array(O.length);for(n=0;n<O.length;++n){var _=te(O[n],t);q<_.depth&&(q=_.depth),Y<_.height&&(Y=_.height),j[n]=_}var le=e.rowGaps[a],pe=0;le&&(pe=fe(le,t),pe>0&&(pe+=E,q<pe&&(q=pe),pe=0)),e.addJot&&(q+=k),j.height=Y,j.depth=q,R+=Y,j.pos=R,R+=q+pe,u[a]=j,P(o[a+1])}var ae=R/2+t.fontMetrics().axisHeight,be=e.cols||[],ne=[],de,ce,Me=[];if(e.tags&&e.tags.some(it=>it))for(a=0;a<s;++a){var X=u[a],t0=X.pos-ae,Be=e.tags[a],Te=void 0;Be===!0?Te=C.makeSpan(["eqn-num"],[],t):Be===!1?Te=C.makeSpan([],[],t):Te=C.makeSpan([],Ce(Be,t,!0),t),Te.depth=X.depth,Te.height=X.height,Me.push({type:"elem",elem:Te,shift:t0})}for(n=0,ce=0;n<l||ce<be.length;++n,++ce){for(var we=be[ce]||{},me=!0;we.type==="separator";){if(me||(de=C.makeSpan(["arraycolsep"],[]),de.style.width=I(t.fontMetrics().doubleRuleSep),ne.push(de)),we.separator==="|"||we.separator===":"){var Se=we.separator==="|"?"solid":"dashed",Le=C.makeSpan(["vertical-separator"],[],t);Le.style.height=I(R),Le.style.borderRightWidth=I(f),Le.style.borderRightStyle=Se,Le.style.margin="0 "+I(-f/2);var He=R-ae;He&&(Le.style.verticalAlign=I(-He)),ne.push(Le)}else throw new L("Invalid separator type: "+we.separator);ce++,we=be[ce]||{},me=!1}if(!(n>=l)){var se=void 0;(n>0||e.hskipBeforeAndAfter)&&(se=re.deflt(we.pregap,x),se!==0&&(de=C.makeSpan(["arraycolsep"],[]),de.style.width=I(se),ne.push(de)));var Ve=[];for(a=0;a<s;++a){var _e=u[a],Ge=_e[n];if(Ge){var M0=_e.pos-ae;Ge.depth=_e.depth,Ge.height=_e.height,Ve.push({type:"elem",elem:Ge,shift:M0})}}Ve=C.makeVList({positionType:"individualShift",children:Ve},t),Ve=C.makeSpan(["col-align-"+(we.align||"c")],[Ve]),ne.push(Ve),(n<l-1||e.hskipBeforeAndAfter)&&(se=re.deflt(we.postgap,x),se!==0&&(de=C.makeSpan(["arraycolsep"],[]),de.style.width=I(se),ne.push(de)))}}if(u=C.makeSpan(["mtable"],ne),d.length>0){for(var r0=C.makeLineSpan("hline",t,f),ot=C.makeLineSpan("hdashline",t,f),W=[{type:"elem",elem:u,shift:0}];d.length>0;){var f0=d.pop(),xa=f0.pos-ae;f0.isDashed?W.push({type:"elem",elem:ot,shift:xa}):W.push({type:"elem",elem:r0,shift:xa})}u=C.makeVList({positionType:"individualShift",children:W},t)}if(Me.length===0)return C.makeSpan(["mord"],[u],t);var Zt=C.makeVList({positionType:"individualShift",children:Me},t);return Zt=C.makeSpan(["tag"],[Zt],t),C.makeFragment([u,Zt])},_4={c:"center ",l:"left ",r:"right "},e0=function(e,t){for(var a=[],n=new B.MathNode("mtd",[],["mtr-glue"]),s=new B.MathNode("mtd",[],["mml-eqn-num"]),o=0;o<e.body.length;o++){for(var l=e.body[o],u=[],d=0;d<l.length;d++)u.push(new B.MathNode("mtd",[oe(l[d],t)]));e.tags&&e.tags[o]&&(u.unshift(n),u.push(n),e.leqno?u.unshift(s):u.push(s)),a.push(new B.MathNode("mtr",u))}var f=new B.MathNode("mtable",a),g=e.arraystretch===.5?.1:.16+e.arraystretch-1+(e.addJot?.09:0);f.setAttribute("rowspacing",I(g));var x="",w="";if(e.cols&&e.cols.length>0){var M=e.cols,k="",A=!1,N=0,E=M.length;M[0].type==="separator"&&(x+="top ",N=1),M[M.length-1].type==="separator"&&(x+="bottom ",E-=1);for(var R=N;R<E;R++)M[R].type==="align"?(w+=_4[M[R].align],A&&(k+="none "),A=!0):M[R].type==="separator"&&A&&(k+=M[R].separator==="|"?"solid ":"dashed ",A=!1);f.setAttribute("columnalign",w.trim()),/[sd]/.test(k)&&f.setAttribute("columnlines",k.trim())}if(e.colSeparationType==="align"){for(var P=e.cols||[],O="",Y=1;Y<P.length;Y++)O+=Y%2?"0em ":"1em ";f.setAttribute("columnspacing",O.trim())}else e.colSeparationType==="alignat"||e.colSeparationType==="gather"?f.setAttribute("columnspacing","0em"):e.colSeparationType==="small"?f.setAttribute("columnspacing","0.2778em"):e.colSeparationType==="CD"?f.setAttribute("columnspacing","0.5em"):f.setAttribute("columnspacing","1em");var q="",j=e.hLinesBeforeRow;x+=j[0].length>0?"left ":"",x+=j[j.length-1].length>0?"right ":"";for(var _=1;_<j.length-1;_++)q+=j[_].length===0?"none ":j[_][0]?"dashed ":"solid ";return/[sd]/.test(q)&&f.setAttribute("rowlines",q.trim()),x!==""&&(f=new B.MathNode("menclose",[f]),f.setAttribute("notation",x.trim())),e.arraystretch&&e.arraystretch<1&&(f=new B.MathNode("mstyle",[f]),f.setAttribute("scriptlevel","1")),f},No=function(e,t){e.envName.indexOf("ed")===-1&&Xt(e);var a=[],n=e.envName.indexOf("at")>-1?"alignat":"align",s=e.envName==="split",o=C0(e.parser,{cols:a,addJot:!0,autoTag:s?void 0:ma(e.envName),emptySingleRow:!0,colSeparationType:n,maxNumCols:s?2:void 0,leqno:e.parser.settings.leqno},"display"),l,u=0,d={type:"ordgroup",mode:e.mode,body:[]};if(t[0]&&t[0].type==="ordgroup"){for(var f="",g=0;g<t[0].body.length;g++){var x=Q(t[0].body[g],"textord");f+=x.text}l=Number(f),u=l*2}var w=!u;o.body.forEach(function(N){for(var E=1;E<N.length;E+=2){var R=Q(N[E],"styling"),P=Q(R.body[0],"ordgroup");P.body.unshift(d)}if(w)u<N.length&&(u=N.length);else{var O=N.length/2;if(l<O)throw new L("Too many math in a row: "+("expected "+l+", but got "+O),N[0])}});for(var M=0;M<u;++M){var k="r",A=0;M%2===1?k="l":M>0&&w&&(A=1),a[M]={type:"align",align:k,pregap:A,postgap:0}}return o.colSeparationType=w?"align":"alignat",o};Je({type:"array",names:["array","darray"],props:{numArgs:1},handler(r,e){var t=Ut(e[0]),a=t?[e[0]]:Q(e[0],"ordgroup").body,n=a.map(function(o){var l=ia(o),u=l.text;if("lcr".indexOf(u)!==-1)return{type:"align",align:u};if(u==="|")return{type:"separator",separator:"|"};if(u===":")return{type:"separator",separator:":"};throw new L("Unknown column alignment: "+u,o)}),s={cols:n,hskipBeforeAndAfter:!0,maxNumCols:n.length};return C0(r.parser,s,ha(r.envName))},htmlBuilder:Qe,mathmlBuilder:e0});Je({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(r){var e={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[r.envName.replace("*","")],t="c",a={hskipBeforeAndAfter:!1,cols:[{type:"align",align:t}]};if(r.envName.charAt(r.envName.length-1)==="*"){var n=r.parser;if(n.consumeSpaces(),n.fetch().text==="["){if(n.consume(),n.consumeSpaces(),t=n.fetch().text,"lcr".indexOf(t)===-1)throw new L("Expected l or c or r",n.nextToken);n.consume(),n.consumeSpaces(),n.expect("]"),n.consume(),a.cols=[{type:"align",align:t}]}}var s=C0(r.parser,a,ha(r.envName)),o=Math.max(0,...s.body.map(l=>l.length));return s.cols=new Array(o).fill({type:"align",align:t}),e?{type:"leftright",mode:r.mode,body:[s],left:e[0],right:e[1],rightColor:void 0}:s},htmlBuilder:Qe,mathmlBuilder:e0});Je({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(r){var e={arraystretch:.5},t=C0(r.parser,e,"script");return t.colSeparationType="small",t},htmlBuilder:Qe,mathmlBuilder:e0});Je({type:"array",names:["subarray"],props:{numArgs:1},handler(r,e){var t=Ut(e[0]),a=t?[e[0]]:Q(e[0],"ordgroup").body,n=a.map(function(o){var l=ia(o),u=l.text;if("lc".indexOf(u)!==-1)return{type:"align",align:u};throw new L("Unknown column alignment: "+u,o)});if(n.length>1)throw new L("{subarray} can contain only one column");var s={cols:n,hskipBeforeAndAfter:!1,arraystretch:.5};if(s=C0(r.parser,s,"script"),s.body.length>0&&s.body[0].length>1)throw new L("{subarray} can contain only one column");return s},htmlBuilder:Qe,mathmlBuilder:e0});Je({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(r){var e={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},t=C0(r.parser,e,ha(r.envName));return{type:"leftright",mode:r.mode,body:[t],left:r.envName.indexOf("r")>-1?".":"\\{",right:r.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:Qe,mathmlBuilder:e0});Je({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:No,htmlBuilder:Qe,mathmlBuilder:e0});Je({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(r){["gather","gather*"].includes(r.envName)&&Xt(r);var e={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:ma(r.envName),emptySingleRow:!0,leqno:r.parser.settings.leqno};return C0(r.parser,e,"display")},htmlBuilder:Qe,mathmlBuilder:e0});Je({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:No,htmlBuilder:Qe,mathmlBuilder:e0});Je({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(r){Xt(r);var e={autoTag:ma(r.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:r.parser.settings.leqno};return C0(r.parser,e,"display")},htmlBuilder:Qe,mathmlBuilder:e0});Je({type:"array",names:["CD"],props:{numArgs:0},handler(r){return Xt(r),N4(r.parser)},htmlBuilder:Qe,mathmlBuilder:e0});v("\\nonumber","\\gdef\\@eqnsw{0}");v("\\notag","\\nonumber");F({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(r,e){throw new L(r.funcName+" valid only within array environment")}});var gn=zo;F({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(r,e){var{parser:t,funcName:a}=r,n=e[0];if(n.type!=="ordgroup")throw new L("Invalid environment name",n);for(var s="",o=0;o<n.body.length;++o)s+=Q(n.body[o],"textord").text;if(a==="\\begin"){if(!gn.hasOwnProperty(s))throw new L("No such environment: "+s,n);var l=gn[s],{args:u,optArgs:d}=t.parseArguments("\\begin{"+s+"}",l),f={mode:t.mode,envName:s,parser:t},g=l.handler(f,u,d);t.expect("\\end",!1);var x=t.nextToken,w=Q(t.parseFunction(),"environment");if(w.name!==s)throw new L("Mismatch: \\begin{"+s+"} matched by \\end{"+w.name+"}",x);return g}return{type:"environment",mode:t.mode,name:s,nameGroup:n}}});var Do=(r,e)=>{var t=r.font,a=e.withFont(t);return te(r.body,a)},Eo=(r,e)=>{var t=r.font,a=e.withFont(t);return oe(r.body,a)},bn={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};F({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathsfit","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(r,e)=>{var{parser:t,funcName:a}=r,n=Pt(e[0]),s=a;return s in bn&&(s=bn[s]),{type:"font",mode:t.mode,font:s.slice(1),body:n}},htmlBuilder:Do,mathmlBuilder:Eo});F({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(r,e)=>{var{parser:t}=r,a=e[0],n=re.isCharacterBox(a);return{type:"mclass",mode:t.mode,mclass:$t(a),body:[{type:"font",mode:t.mode,font:"boldsymbol",body:a}],isCharacterBox:n}}});F({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(r,e)=>{var{parser:t,funcName:a,breakOnTokenText:n}=r,{mode:s}=t,o=t.parseExpression(!0,n),l="math"+a.slice(1);return{type:"font",mode:s,font:l,body:{type:"ordgroup",mode:t.mode,body:o}}},htmlBuilder:Do,mathmlBuilder:Eo});var Ro=(r,e)=>{var t=e;return r==="display"?t=t.id>=K.SCRIPT.id?t.text():K.DISPLAY:r==="text"&&t.size===K.DISPLAY.size?t=K.TEXT:r==="script"?t=K.SCRIPT:r==="scriptscript"&&(t=K.SCRIPTSCRIPT),t},fa=(r,e)=>{var t=Ro(r.size,e.style),a=t.fracNum(),n=t.fracDen(),s;s=e.havingStyle(a);var o=te(r.numer,s,e);if(r.continued){var l=8.5/e.fontMetrics().ptPerEm,u=3.5/e.fontMetrics().ptPerEm;o.height=o.height<l?l:o.height,o.depth=o.depth<u?u:o.depth}s=e.havingStyle(n);var d=te(r.denom,s,e),f,g,x;r.hasBarLine?(r.barSize?(g=fe(r.barSize,e),f=C.makeLineSpan("frac-line",e,g)):f=C.makeLineSpan("frac-line",e),g=f.height,x=f.height):(f=null,g=0,x=e.fontMetrics().defaultRuleThickness);var w,M,k;t.size===K.DISPLAY.size||r.size==="display"?(w=e.fontMetrics().num1,g>0?M=3*x:M=7*x,k=e.fontMetrics().denom1):(g>0?(w=e.fontMetrics().num2,M=x):(w=e.fontMetrics().num3,M=3*x),k=e.fontMetrics().denom2);var A;if(f){var E=e.fontMetrics().axisHeight;w-o.depth-(E+.5*g)<M&&(w+=M-(w-o.depth-(E+.5*g))),E-.5*g-(d.height-k)<M&&(k+=M-(E-.5*g-(d.height-k)));var R=-(E-.5*g);A=C.makeVList({positionType:"individualShift",children:[{type:"elem",elem:d,shift:k},{type:"elem",elem:f,shift:R},{type:"elem",elem:o,shift:-w}]},e)}else{var N=w-o.depth-(d.height-k);N<M&&(w+=.5*(M-N),k+=.5*(M-N)),A=C.makeVList({positionType:"individualShift",children:[{type:"elem",elem:d,shift:k},{type:"elem",elem:o,shift:-w}]},e)}s=e.havingStyle(t),A.height*=s.sizeMultiplier/e.sizeMultiplier,A.depth*=s.sizeMultiplier/e.sizeMultiplier;var P;t.size===K.DISPLAY.size?P=e.fontMetrics().delim1:t.size===K.SCRIPTSCRIPT.size?P=e.havingStyle(K.SCRIPT).fontMetrics().delim2:P=e.fontMetrics().delim2;var O,Y;return r.leftDelim==null?O=rt(e,["mopen"]):O=c0.customSizedDelim(r.leftDelim,P,!0,e.havingStyle(t),r.mode,["mopen"]),r.continued?Y=C.makeSpan([]):r.rightDelim==null?Y=rt(e,["mclose"]):Y=c0.customSizedDelim(r.rightDelim,P,!0,e.havingStyle(t),r.mode,["mclose"]),C.makeSpan(["mord"].concat(s.sizingClasses(e)),[O,C.makeSpan(["mfrac"],[A]),Y],e)},pa=(r,e)=>{var t=new B.MathNode("mfrac",[oe(r.numer,e),oe(r.denom,e)]);if(!r.hasBarLine)t.setAttribute("linethickness","0px");else if(r.barSize){var a=fe(r.barSize,e);t.setAttribute("linethickness",I(a))}var n=Ro(r.size,e.style);if(n.size!==e.style.size){t=new B.MathNode("mstyle",[t]);var s=n.size===K.DISPLAY.size?"true":"false";t.setAttribute("displaystyle",s),t.setAttribute("scriptlevel","0")}if(r.leftDelim!=null||r.rightDelim!=null){var o=[];if(r.leftDelim!=null){var l=new B.MathNode("mo",[new B.TextNode(r.leftDelim.replace("\\",""))]);l.setAttribute("fence","true"),o.push(l)}if(o.push(t),r.rightDelim!=null){var u=new B.MathNode("mo",[new B.TextNode(r.rightDelim.replace("\\",""))]);u.setAttribute("fence","true"),o.push(u)}return sa(o)}return t};F({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(r,e)=>{var{parser:t,funcName:a}=r,n=e[0],s=e[1],o,l=null,u=null,d="auto";switch(a){case"\\dfrac":case"\\frac":case"\\tfrac":o=!0;break;case"\\\\atopfrac":o=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":o=!1,l="(",u=")";break;case"\\\\bracefrac":o=!1,l="\\{",u="\\}";break;case"\\\\brackfrac":o=!1,l="[",u="]";break;default:throw new Error("Unrecognized genfrac command")}switch(a){case"\\dfrac":case"\\dbinom":d="display";break;case"\\tfrac":case"\\tbinom":d="text";break}return{type:"genfrac",mode:t.mode,continued:!1,numer:n,denom:s,hasBarLine:o,leftDelim:l,rightDelim:u,size:d,barSize:null}},htmlBuilder:fa,mathmlBuilder:pa});F({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:(r,e)=>{var{parser:t,funcName:a}=r,n=e[0],s=e[1];return{type:"genfrac",mode:t.mode,continued:!0,numer:n,denom:s,hasBarLine:!0,leftDelim:null,rightDelim:null,size:"display",barSize:null}}});F({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(r){var{parser:e,funcName:t,token:a}=r,n;switch(t){case"\\over":n="\\frac";break;case"\\choose":n="\\binom";break;case"\\atop":n="\\\\atopfrac";break;case"\\brace":n="\\\\bracefrac";break;case"\\brack":n="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:e.mode,replaceWith:n,token:a}}});var yn=["display","text","script","scriptscript"],xn=function(e){var t=null;return e.length>0&&(t=e,t=t==="."?null:t),t};F({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(r,e){var{parser:t}=r,a=e[4],n=e[5],s=Pt(e[0]),o=s.type==="atom"&&s.family==="open"?xn(s.text):null,l=Pt(e[1]),u=l.type==="atom"&&l.family==="close"?xn(l.text):null,d=Q(e[2],"size"),f,g=null;d.isBlank?f=!0:(g=d.value,f=g.number>0);var x="auto",w=e[3];if(w.type==="ordgroup"){if(w.body.length>0){var M=Q(w.body[0],"textord");x=yn[Number(M.text)]}}else w=Q(w,"textord"),x=yn[Number(w.text)];return{type:"genfrac",mode:t.mode,numer:a,denom:n,continued:!1,hasBarLine:f,barSize:g,leftDelim:o,rightDelim:u,size:x}},htmlBuilder:fa,mathmlBuilder:pa});F({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(r,e){var{parser:t,funcName:a,token:n}=r;return{type:"infix",mode:t.mode,replaceWith:"\\\\abovefrac",size:Q(e[0],"size").value,token:n}}});F({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(r,e)=>{var{parser:t,funcName:a}=r,n=e[0],s=y2(Q(e[1],"infix").size),o=e[2],l=s.number>0;return{type:"genfrac",mode:t.mode,numer:n,denom:o,continued:!1,hasBarLine:l,barSize:s,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:fa,mathmlBuilder:pa});var Bo=(r,e)=>{var t=e.style,a,n;r.type==="supsub"?(a=r.sup?te(r.sup,e.havingStyle(t.sup()),e):te(r.sub,e.havingStyle(t.sub()),e),n=Q(r.base,"horizBrace")):n=Q(r,"horizBrace");var s=te(n.base,e.havingBaseStyle(K.DISPLAY)),o=m0.svgSpan(n,e),l;if(n.isOver?(l=C.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:o}]},e),l.children[0].children[0].children[1].classes.push("svg-align")):(l=C.makeVList({positionType:"bottom",positionData:s.depth+.1+o.height,children:[{type:"elem",elem:o},{type:"kern",size:.1},{type:"elem",elem:s}]},e),l.children[0].children[0].children[0].classes.push("svg-align")),a){var u=C.makeSpan(["mord",n.isOver?"mover":"munder"],[l],e);n.isOver?l=C.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:u},{type:"kern",size:.2},{type:"elem",elem:a}]},e):l=C.makeVList({positionType:"bottom",positionData:u.depth+.2+a.height+a.depth,children:[{type:"elem",elem:a},{type:"kern",size:.2},{type:"elem",elem:u}]},e)}return C.makeSpan(["mord",n.isOver?"mover":"munder"],[l],e)},G4=(r,e)=>{var t=m0.mathMLnode(r.label);return new B.MathNode(r.isOver?"mover":"munder",[oe(r.base,e),t])};F({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(r,e){var{parser:t,funcName:a}=r;return{type:"horizBrace",mode:t.mode,label:a,isOver:/^\\over/.test(a),base:e[0]}},htmlBuilder:Bo,mathmlBuilder:G4});F({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(r,e)=>{var{parser:t}=r,a=e[1],n=Q(e[0],"url").url;return t.settings.isTrusted({command:"\\href",url:n})?{type:"href",mode:t.mode,href:n,body:ge(a)}:t.formatUnsupportedCmd("\\href")},htmlBuilder:(r,e)=>{var t=Ce(r.body,e,!1);return C.makeAnchor(r.href,[],t,e)},mathmlBuilder:(r,e)=>{var t=k0(r.body,e);return t instanceof je||(t=new je("mrow",[t])),t.setAttribute("href",r.href),t}});F({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(r,e)=>{var{parser:t}=r,a=Q(e[0],"url").url;if(!t.settings.isTrusted({command:"\\url",url:a}))return t.formatUnsupportedCmd("\\url");for(var n=[],s=0;s<a.length;s++){var o=a[s];o==="~"&&(o="\\textasciitilde"),n.push({type:"textord",mode:"text",text:o})}var l={type:"text",mode:t.mode,font:"\\texttt",body:n};return{type:"href",mode:t.mode,href:a,body:ge(l)}}});F({type:"hbox",names:["\\hbox"],props:{numArgs:1,argTypes:["text"],allowedInText:!0,primitive:!0},handler(r,e){var{parser:t}=r;return{type:"hbox",mode:t.mode,body:ge(e[0])}},htmlBuilder(r,e){var t=Ce(r.body,e,!1);return C.makeFragment(t)},mathmlBuilder(r,e){return new B.MathNode("mrow",Re(r.body,e))}});F({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],props:{numArgs:2,argTypes:["raw","original"],allowedInText:!0},handler:(r,e)=>{var{parser:t,funcName:a,token:n}=r,s=Q(e[0],"raw").string,o=e[1];t.settings.strict&&t.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var l,u={};switch(a){case"\\htmlClass":u.class=s,l={command:"\\htmlClass",class:s};break;case"\\htmlId":u.id=s,l={command:"\\htmlId",id:s};break;case"\\htmlStyle":u.style=s,l={command:"\\htmlStyle",style:s};break;case"\\htmlData":{for(var d=s.split(","),f=0;f<d.length;f++){var g=d[f].split("=");if(g.length!==2)throw new L("Error parsing key-value for \\htmlData");u["data-"+g[0].trim()]=g[1].trim()}l={command:"\\htmlData",attributes:u};break}default:throw new Error("Unrecognized html command")}return t.settings.isTrusted(l)?{type:"html",mode:t.mode,attributes:u,body:ge(o)}:t.formatUnsupportedCmd(a)},htmlBuilder:(r,e)=>{var t=Ce(r.body,e,!1),a=["enclosing"];r.attributes.class&&a.push(...r.attributes.class.trim().split(/\s+/));var n=C.makeSpan(a,t,e);for(var s in r.attributes)s!=="class"&&r.attributes.hasOwnProperty(s)&&n.setAttribute(s,r.attributes[s]);return n},mathmlBuilder:(r,e)=>k0(r.body,e)});F({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:(r,e)=>{var{parser:t}=r;return{type:"htmlmathml",mode:t.mode,html:ge(e[0]),mathml:ge(e[1])}},htmlBuilder:(r,e)=>{var t=Ce(r.html,e,!1);return C.makeFragment(t)},mathmlBuilder:(r,e)=>k0(r.mathml,e)});var xr=function(e){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(e))return{number:+e,unit:"bp"};var t=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(e);if(!t)throw new L("Invalid size: '"+e+"' in \\includegraphics");var a={number:+(t[1]+t[2]),unit:t[3]};if(!Ks(a))throw new L("Invalid unit: '"+a.unit+"' in \\includegraphics.");return a};F({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(r,e,t)=>{var{parser:a}=r,n={number:0,unit:"em"},s={number:.9,unit:"em"},o={number:0,unit:"em"},l="";if(t[0])for(var u=Q(t[0],"raw").string,d=u.split(","),f=0;f<d.length;f++){var g=d[f].split("=");if(g.length===2){var x=g[1].trim();switch(g[0].trim()){case"alt":l=x;break;case"width":n=xr(x);break;case"height":s=xr(x);break;case"totalheight":o=xr(x);break;default:throw new L("Invalid key: '"+g[0]+"' in \\includegraphics.")}}}var w=Q(e[0],"url").url;return l===""&&(l=w,l=l.replace(/^.*[\\/]/,""),l=l.substring(0,l.lastIndexOf("."))),a.settings.isTrusted({command:"\\includegraphics",url:w})?{type:"includegraphics",mode:a.mode,alt:l,width:n,height:s,totalheight:o,src:w}:a.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:(r,e)=>{var t=fe(r.height,e),a=0;r.totalheight.number>0&&(a=fe(r.totalheight,e)-t);var n=0;r.width.number>0&&(n=fe(r.width,e));var s={height:I(t+a)};n>0&&(s.width=I(n)),a>0&&(s.verticalAlign=I(-a));var o=new G2(r.src,r.alt,s);return o.height=t,o.depth=a,o},mathmlBuilder:(r,e)=>{var t=new B.MathNode("mglyph",[]);t.setAttribute("alt",r.alt);var a=fe(r.height,e),n=0;if(r.totalheight.number>0&&(n=fe(r.totalheight,e)-a,t.setAttribute("valign",I(-n))),t.setAttribute("height",I(a+n)),r.width.number>0){var s=fe(r.width,e);t.setAttribute("width",I(s))}return t.setAttribute("src",r.src),t}});F({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(r,e){var{parser:t,funcName:a}=r,n=Q(e[0],"size");if(t.settings.strict){var s=a[1]==="m",o=n.value.unit==="mu";s?(o||t.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+a+" supports only mu units, "+("not "+n.value.unit+" units")),t.mode!=="math"&&t.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+a+" works only in math mode")):o&&t.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+a+" doesn't support mu units")}return{type:"kern",mode:t.mode,dimension:n.value}},htmlBuilder(r,e){return C.makeGlue(r.dimension,e)},mathmlBuilder(r,e){var t=fe(r.dimension,e);return new B.SpaceNode(t)}});F({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(r,e)=>{var{parser:t,funcName:a}=r,n=e[0];return{type:"lap",mode:t.mode,alignment:a.slice(5),body:n}},htmlBuilder:(r,e)=>{var t;r.alignment==="clap"?(t=C.makeSpan([],[te(r.body,e)]),t=C.makeSpan(["inner"],[t],e)):t=C.makeSpan(["inner"],[te(r.body,e)]);var a=C.makeSpan(["fix"],[]),n=C.makeSpan([r.alignment],[t,a],e),s=C.makeSpan(["strut"]);return s.style.height=I(n.height+n.depth),n.depth&&(s.style.verticalAlign=I(-n.depth)),n.children.unshift(s),n=C.makeSpan(["thinbox"],[n],e),C.makeSpan(["mord","vbox"],[n],e)},mathmlBuilder:(r,e)=>{var t=new B.MathNode("mpadded",[oe(r.body,e)]);if(r.alignment!=="rlap"){var a=r.alignment==="llap"?"-1":"-0.5";t.setAttribute("lspace",a+"width")}return t.setAttribute("width","0px"),t}});F({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(r,e){var{funcName:t,parser:a}=r,n=a.mode;a.switchMode("math");var s=t==="\\("?"\\)":"$",o=a.parseExpression(!1,s);return a.expect(s),a.switchMode(n),{type:"styling",mode:a.mode,style:"text",body:o}}});F({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(r,e){throw new L("Mismatched "+r.funcName)}});var wn=(r,e)=>{switch(e.style.size){case K.DISPLAY.size:return r.display;case K.TEXT.size:return r.text;case K.SCRIPT.size:return r.script;case K.SCRIPTSCRIPT.size:return r.scriptscript;default:return r.text}};F({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(r,e)=>{var{parser:t}=r;return{type:"mathchoice",mode:t.mode,display:ge(e[0]),text:ge(e[1]),script:ge(e[2]),scriptscript:ge(e[3])}},htmlBuilder:(r,e)=>{var t=wn(r,e),a=Ce(t,e,!1);return C.makeFragment(a)},mathmlBuilder:(r,e)=>{var t=wn(r,e);return k0(t,e)}});var Lo=(r,e,t,a,n,s,o)=>{r=C.makeSpan([],[r]);var l=t&&re.isCharacterBox(t),u,d;if(e){var f=te(e,a.havingStyle(n.sup()),a);d={elem:f,kern:Math.max(a.fontMetrics().bigOpSpacing1,a.fontMetrics().bigOpSpacing3-f.depth)}}if(t){var g=te(t,a.havingStyle(n.sub()),a);u={elem:g,kern:Math.max(a.fontMetrics().bigOpSpacing2,a.fontMetrics().bigOpSpacing4-g.height)}}var x;if(d&&u){var w=a.fontMetrics().bigOpSpacing5+u.elem.height+u.elem.depth+u.kern+r.depth+o;x=C.makeVList({positionType:"bottom",positionData:w,children:[{type:"kern",size:a.fontMetrics().bigOpSpacing5},{type:"elem",elem:u.elem,marginLeft:I(-s)},{type:"kern",size:u.kern},{type:"elem",elem:r},{type:"kern",size:d.kern},{type:"elem",elem:d.elem,marginLeft:I(s)},{type:"kern",size:a.fontMetrics().bigOpSpacing5}]},a)}else if(u){var M=r.height-o;x=C.makeVList({positionType:"top",positionData:M,children:[{type:"kern",size:a.fontMetrics().bigOpSpacing5},{type:"elem",elem:u.elem,marginLeft:I(-s)},{type:"kern",size:u.kern},{type:"elem",elem:r}]},a)}else if(d){var k=r.depth+o;x=C.makeVList({positionType:"bottom",positionData:k,children:[{type:"elem",elem:r},{type:"kern",size:d.kern},{type:"elem",elem:d.elem,marginLeft:I(s)},{type:"kern",size:a.fontMetrics().bigOpSpacing5}]},a)}else return r;var A=[x];if(u&&s!==0&&!l){var N=C.makeSpan(["mspace"],[],a);N.style.marginRight=I(s),A.unshift(N)}return C.makeSpan(["mop","op-limits"],A,a)},jo=["\\smallint"],Y0=(r,e)=>{var t,a,n=!1,s;r.type==="supsub"?(t=r.sup,a=r.sub,s=Q(r.base,"op"),n=!0):s=Q(r,"op");var o=e.style,l=!1;o.size===K.DISPLAY.size&&s.symbol&&!jo.includes(s.name)&&(l=!0);var u;if(s.symbol){var d=l?"Size2-Regular":"Size1-Regular",f="";if((s.name==="\\oiint"||s.name==="\\oiiint")&&(f=s.name.slice(1),s.name=f==="oiint"?"\\iint":"\\iiint"),u=C.makeSymbol(s.name,d,"math",e,["mop","op-symbol",l?"large-op":"small-op"]),f.length>0){var g=u.italic,x=C.staticSvg(f+"Size"+(l?"2":"1"),e);u=C.makeVList({positionType:"individualShift",children:[{type:"elem",elem:u,shift:0},{type:"elem",elem:x,shift:l?.08:0}]},e),s.name="\\"+f,u.classes.unshift("mop"),u.italic=g}}else if(s.body){var w=Ce(s.body,e,!0);w.length===1&&w[0]instanceof Fe?(u=w[0],u.classes[0]="mop"):u=C.makeSpan(["mop"],w,e)}else{for(var M=[],k=1;k<s.name.length;k++)M.push(C.mathsym(s.name[k],s.mode,e));u=C.makeSpan(["mop"],M,e)}var A=0,N=0;return(u instanceof Fe||s.name==="\\oiint"||s.name==="\\oiiint")&&!s.suppressBaseShift&&(A=(u.height-u.depth)/2-e.fontMetrics().axisHeight,N=u.italic),n?Lo(u,t,a,e,o,N,A):(A&&(u.style.position="relative",u.style.top=I(A)),u)},st=(r,e)=>{var t;if(r.symbol)t=new je("mo",[qe(r.name,r.mode)]),jo.includes(r.name)&&t.setAttribute("largeop","false");else if(r.body)t=new je("mo",Re(r.body,e));else{t=new je("mi",[new Ze(r.name.slice(1))]);var a=new je("mo",[qe("⁡","text")]);r.parentIsSupSub?t=new je("mrow",[t,a]):t=lo([t,a])}return t},U4={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};F({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:(r,e)=>{var{parser:t,funcName:a}=r,n=a;return n.length===1&&(n=U4[n]),{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:n}},htmlBuilder:Y0,mathmlBuilder:st});F({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(r,e)=>{var{parser:t}=r,a=e[0];return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:ge(a)}},htmlBuilder:Y0,mathmlBuilder:st});var $4={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};F({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(r){var{parser:e,funcName:t}=r;return{type:"op",mode:e.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:t}},htmlBuilder:Y0,mathmlBuilder:st});F({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(r){var{parser:e,funcName:t}=r;return{type:"op",mode:e.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:t}},htmlBuilder:Y0,mathmlBuilder:st});F({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0},handler(r){var{parser:e,funcName:t}=r,a=t;return a.length===1&&(a=$4[a]),{type:"op",mode:e.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:a}},htmlBuilder:Y0,mathmlBuilder:st});var Io=(r,e)=>{var t,a,n=!1,s;r.type==="supsub"?(t=r.sup,a=r.sub,s=Q(r.base,"operatorname"),n=!0):s=Q(r,"operatorname");var o;if(s.body.length>0){for(var l=s.body.map(g=>{var x=g.text;return typeof x=="string"?{type:"textord",mode:g.mode,text:x}:g}),u=Ce(l,e.withFont("mathrm"),!0),d=0;d<u.length;d++){var f=u[d];f instanceof Fe&&(f.text=f.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}o=C.makeSpan(["mop"],u,e)}else o=C.makeSpan(["mop"],[],e);return n?Lo(o,t,a,e,e.style,0,0):o},W4=(r,e)=>{for(var t=Re(r.body,e.withFont("mathrm")),a=!0,n=0;n<t.length;n++){var s=t[n];if(!(s instanceof B.SpaceNode))if(s instanceof B.MathNode)switch(s.type){case"mi":case"mn":case"ms":case"mspace":case"mtext":break;case"mo":{var o=s.children[0];s.children.length===1&&o instanceof B.TextNode?o.text=o.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):a=!1;break}default:a=!1}else a=!1}if(a){var l=t.map(f=>f.toText()).join("");t=[new B.TextNode(l)]}var u=new B.MathNode("mi",t);u.setAttribute("mathvariant","normal");var d=new B.MathNode("mo",[qe("⁡","text")]);return r.parentIsSupSub?new B.MathNode("mrow",[u,d]):B.newDocumentFragment([u,d])};F({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(r,e)=>{var{parser:t,funcName:a}=r,n=e[0];return{type:"operatorname",mode:t.mode,body:ge(n),alwaysHandleSupSub:a==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:Io,mathmlBuilder:W4});v("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");L0({type:"ordgroup",htmlBuilder(r,e){return r.semisimple?C.makeFragment(Ce(r.body,e,!1)):C.makeSpan(["mord"],Ce(r.body,e,!0),e)},mathmlBuilder(r,e){return k0(r.body,e,!0)}});F({type:"overline",names:["\\overline"],props:{numArgs:1},handler(r,e){var{parser:t}=r,a=e[0];return{type:"overline",mode:t.mode,body:a}},htmlBuilder(r,e){var t=te(r.body,e.havingCrampedStyle()),a=C.makeLineSpan("overline-line",e),n=e.fontMetrics().defaultRuleThickness,s=C.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:t},{type:"kern",size:3*n},{type:"elem",elem:a},{type:"kern",size:n}]},e);return C.makeSpan(["mord","overline"],[s],e)},mathmlBuilder(r,e){var t=new B.MathNode("mo",[new B.TextNode("‾")]);t.setAttribute("stretchy","true");var a=new B.MathNode("mover",[oe(r.body,e),t]);return a.setAttribute("accent","true"),a}});F({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(r,e)=>{var{parser:t}=r,a=e[0];return{type:"phantom",mode:t.mode,body:ge(a)}},htmlBuilder:(r,e)=>{var t=Ce(r.body,e.withPhantom(),!1);return C.makeFragment(t)},mathmlBuilder:(r,e)=>{var t=Re(r.body,e);return new B.MathNode("mphantom",t)}});F({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:(r,e)=>{var{parser:t}=r,a=e[0];return{type:"hphantom",mode:t.mode,body:a}},htmlBuilder:(r,e)=>{var t=C.makeSpan([],[te(r.body,e.withPhantom())]);if(t.height=0,t.depth=0,t.children)for(var a=0;a<t.children.length;a++)t.children[a].height=0,t.children[a].depth=0;return t=C.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:t}]},e),C.makeSpan(["mord"],[t],e)},mathmlBuilder:(r,e)=>{var t=Re(ge(r.body),e),a=new B.MathNode("mphantom",t),n=new B.MathNode("mpadded",[a]);return n.setAttribute("height","0px"),n.setAttribute("depth","0px"),n}});F({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(r,e)=>{var{parser:t}=r,a=e[0];return{type:"vphantom",mode:t.mode,body:a}},htmlBuilder:(r,e)=>{var t=C.makeSpan(["inner"],[te(r.body,e.withPhantom())]),a=C.makeSpan(["fix"],[]);return C.makeSpan(["mord","rlap"],[t,a],e)},mathmlBuilder:(r,e)=>{var t=Re(ge(r.body),e),a=new B.MathNode("mphantom",t),n=new B.MathNode("mpadded",[a]);return n.setAttribute("width","0px"),n}});F({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(r,e){var{parser:t}=r,a=Q(e[0],"size").value,n=e[1];return{type:"raisebox",mode:t.mode,dy:a,body:n}},htmlBuilder(r,e){var t=te(r.body,e),a=fe(r.dy,e);return C.makeVList({positionType:"shift",positionData:-a,children:[{type:"elem",elem:t}]},e)},mathmlBuilder(r,e){var t=new B.MathNode("mpadded",[oe(r.body,e)]),a=r.dy.number+r.dy.unit;return t.setAttribute("voffset",a),t}});F({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(r){var{parser:e}=r;return{type:"internal",mode:e.mode}}});F({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"]},handler(r,e,t){var{parser:a}=r,n=t[0],s=Q(e[0],"size"),o=Q(e[1],"size");return{type:"rule",mode:a.mode,shift:n&&Q(n,"size").value,width:s.value,height:o.value}},htmlBuilder(r,e){var t=C.makeSpan(["mord","rule"],[],e),a=fe(r.width,e),n=fe(r.height,e),s=r.shift?fe(r.shift,e):0;return t.style.borderRightWidth=I(a),t.style.borderTopWidth=I(n),t.style.bottom=I(s),t.width=a,t.height=n+s,t.depth=-s,t.maxFontSize=n*1.125*e.sizeMultiplier,t},mathmlBuilder(r,e){var t=fe(r.width,e),a=fe(r.height,e),n=r.shift?fe(r.shift,e):0,s=e.color&&e.getColor()||"black",o=new B.MathNode("mspace");o.setAttribute("mathbackground",s),o.setAttribute("width",I(t)),o.setAttribute("height",I(a));var l=new B.MathNode("mpadded",[o]);return n>=0?l.setAttribute("height",I(n)):(l.setAttribute("height",I(n)),l.setAttribute("depth",I(-n))),l.setAttribute("voffset",I(n)),l}});function Po(r,e,t){for(var a=Ce(r,e,!1),n=e.sizeMultiplier/t.sizeMultiplier,s=0;s<a.length;s++){var o=a[s].classes.indexOf("sizing");o<0?Array.prototype.push.apply(a[s].classes,e.sizingClasses(t)):a[s].classes[o+1]==="reset-size"+e.size&&(a[s].classes[o+1]="reset-size"+t.size),a[s].height*=n,a[s].depth*=n}return C.makeFragment(a)}var Sn=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],X4=(r,e)=>{var t=e.havingSize(r.size);return Po(r.body,t,e)};F({type:"sizing",names:Sn,props:{numArgs:0,allowedInText:!0},handler:(r,e)=>{var{breakOnTokenText:t,funcName:a,parser:n}=r,s=n.parseExpression(!1,t);return{type:"sizing",mode:n.mode,size:Sn.indexOf(a)+1,body:s}},htmlBuilder:X4,mathmlBuilder:(r,e)=>{var t=e.havingSize(r.size),a=Re(r.body,t),n=new B.MathNode("mstyle",a);return n.setAttribute("mathsize",I(t.sizeMultiplier)),n}});F({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(r,e,t)=>{var{parser:a}=r,n=!1,s=!1,o=t[0]&&Q(t[0],"ordgroup");if(o)for(var l="",u=0;u<o.body.length;++u){var d=o.body[u];if(l=d.text,l==="t")n=!0;else if(l==="b")s=!0;else{n=!1,s=!1;break}}else n=!0,s=!0;var f=e[0];return{type:"smash",mode:a.mode,body:f,smashHeight:n,smashDepth:s}},htmlBuilder:(r,e)=>{var t=C.makeSpan([],[te(r.body,e)]);if(!r.smashHeight&&!r.smashDepth)return t;if(r.smashHeight&&(t.height=0,t.children))for(var a=0;a<t.children.length;a++)t.children[a].height=0;if(r.smashDepth&&(t.depth=0,t.children))for(var n=0;n<t.children.length;n++)t.children[n].depth=0;var s=C.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:t}]},e);return C.makeSpan(["mord"],[s],e)},mathmlBuilder:(r,e)=>{var t=new B.MathNode("mpadded",[oe(r.body,e)]);return r.smashHeight&&t.setAttribute("height","0px"),r.smashDepth&&t.setAttribute("depth","0px"),t}});F({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(r,e,t){var{parser:a}=r,n=t[0],s=e[0];return{type:"sqrt",mode:a.mode,body:s,index:n}},htmlBuilder(r,e){var t=te(r.body,e.havingCrampedStyle());t.height===0&&(t.height=e.fontMetrics().xHeight),t=C.wrapFragment(t,e);var a=e.fontMetrics(),n=a.defaultRuleThickness,s=n;e.style.id<K.TEXT.id&&(s=e.fontMetrics().xHeight);var o=n+s/4,l=t.height+t.depth+o+n,{span:u,ruleWidth:d,advanceWidth:f}=c0.sqrtImage(l,e),g=u.height-d;g>t.height+t.depth+o&&(o=(o+g-t.height-t.depth)/2);var x=u.height-t.height-o-d;t.style.paddingLeft=I(f);var w=C.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:t,wrapperClasses:["svg-align"]},{type:"kern",size:-(t.height+x)},{type:"elem",elem:u},{type:"kern",size:d}]},e);if(r.index){var M=e.havingStyle(K.SCRIPTSCRIPT),k=te(r.index,M,e),A=.6*(w.height-w.depth),N=C.makeVList({positionType:"shift",positionData:-A,children:[{type:"elem",elem:k}]},e),E=C.makeSpan(["root"],[N]);return C.makeSpan(["mord","sqrt"],[E,w],e)}else return C.makeSpan(["mord","sqrt"],[w],e)},mathmlBuilder(r,e){var{body:t,index:a}=r;return a?new B.MathNode("mroot",[oe(t,e),oe(a,e)]):new B.MathNode("msqrt",[oe(t,e)])}});var kn={display:K.DISPLAY,text:K.TEXT,script:K.SCRIPT,scriptscript:K.SCRIPTSCRIPT};F({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(r,e){var{breakOnTokenText:t,funcName:a,parser:n}=r,s=n.parseExpression(!0,t),o=a.slice(1,a.length-5);return{type:"styling",mode:n.mode,style:o,body:s}},htmlBuilder(r,e){var t=kn[r.style],a=e.havingStyle(t).withFont("");return Po(r.body,a,e)},mathmlBuilder(r,e){var t=kn[r.style],a=e.havingStyle(t),n=Re(r.body,a),s=new B.MathNode("mstyle",n),o={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},l=o[r.style];return s.setAttribute("scriptlevel",l[0]),s.setAttribute("displaystyle",l[1]),s}});var Y4=function(e,t){var a=e.base;if(a)if(a.type==="op"){var n=a.limits&&(t.style.size===K.DISPLAY.size||a.alwaysHandleSupSub);return n?Y0:null}else if(a.type==="operatorname"){var s=a.alwaysHandleSupSub&&(t.style.size===K.DISPLAY.size||a.limits);return s?Io:null}else{if(a.type==="accent")return re.isCharacterBox(a.base)?la:null;if(a.type==="horizBrace"){var o=!e.sub;return o===a.isOver?Bo:null}else return null}else return null};L0({type:"supsub",htmlBuilder(r,e){var t=Y4(r,e);if(t)return t(r,e);var{base:a,sup:n,sub:s}=r,o=te(a,e),l,u,d=e.fontMetrics(),f=0,g=0,x=a&&re.isCharacterBox(a);if(n){var w=e.havingStyle(e.style.sup());l=te(n,w,e),x||(f=o.height-w.fontMetrics().supDrop*w.sizeMultiplier/e.sizeMultiplier)}if(s){var M=e.havingStyle(e.style.sub());u=te(s,M,e),x||(g=o.depth+M.fontMetrics().subDrop*M.sizeMultiplier/e.sizeMultiplier)}var k;e.style===K.DISPLAY?k=d.sup1:e.style.cramped?k=d.sup3:k=d.sup2;var A=e.sizeMultiplier,N=I(.5/d.ptPerEm/A),E=null;if(u){var R=r.base&&r.base.type==="op"&&r.base.name&&(r.base.name==="\\oiint"||r.base.name==="\\oiiint");(o instanceof Fe||R)&&(E=I(-o.italic))}var P;if(l&&u){f=Math.max(f,k,l.depth+.25*d.xHeight),g=Math.max(g,d.sub2);var O=d.defaultRuleThickness,Y=4*O;if(f-l.depth-(u.height-g)<Y){g=Y-(f-l.depth)+u.height;var q=.8*d.xHeight-(f-l.depth);q>0&&(f+=q,g-=q)}var j=[{type:"elem",elem:u,shift:g,marginRight:N,marginLeft:E},{type:"elem",elem:l,shift:-f,marginRight:N}];P=C.makeVList({positionType:"individualShift",children:j},e)}else if(u){g=Math.max(g,d.sub1,u.height-.8*d.xHeight);var _=[{type:"elem",elem:u,marginLeft:E,marginRight:N}];P=C.makeVList({positionType:"shift",positionData:g,children:_},e)}else if(l)f=Math.max(f,k,l.depth+.25*d.xHeight),P=C.makeVList({positionType:"shift",positionData:-f,children:[{type:"elem",elem:l,marginRight:N}]},e);else throw new Error("supsub must have either sup or sub.");var le=Ir(o,"right")||"mord";return C.makeSpan([le],[o,C.makeSpan(["msupsub"],[P])],e)},mathmlBuilder(r,e){var t=!1,a,n;r.base&&r.base.type==="horizBrace"&&(n=!!r.sup,n===r.base.isOver&&(t=!0,a=r.base.isOver)),r.base&&(r.base.type==="op"||r.base.type==="operatorname")&&(r.base.parentIsSupSub=!0);var s=[oe(r.base,e)];r.sub&&s.push(oe(r.sub,e)),r.sup&&s.push(oe(r.sup,e));var o;if(t)o=a?"mover":"munder";else if(r.sub)if(r.sup){var d=r.base;d&&d.type==="op"&&d.limits&&e.style===K.DISPLAY||d&&d.type==="operatorname"&&d.alwaysHandleSupSub&&(e.style===K.DISPLAY||d.limits)?o="munderover":o="msubsup"}else{var u=r.base;u&&u.type==="op"&&u.limits&&(e.style===K.DISPLAY||u.alwaysHandleSupSub)||u&&u.type==="operatorname"&&u.alwaysHandleSupSub&&(u.limits||e.style===K.DISPLAY)?o="munder":o="msub"}else{var l=r.base;l&&l.type==="op"&&l.limits&&(e.style===K.DISPLAY||l.alwaysHandleSupSub)||l&&l.type==="operatorname"&&l.alwaysHandleSupSub&&(l.limits||e.style===K.DISPLAY)?o="mover":o="msup"}return new B.MathNode(o,s)}});L0({type:"atom",htmlBuilder(r,e){return C.mathsym(r.text,r.mode,e,["m"+r.family])},mathmlBuilder(r,e){var t=new B.MathNode("mo",[qe(r.text,r.mode)]);if(r.family==="bin"){var a=oa(r,e);a==="bold-italic"&&t.setAttribute("mathvariant",a)}else r.family==="punct"?t.setAttribute("separator","true"):(r.family==="open"||r.family==="close")&&t.setAttribute("stretchy","false");return t}});var Oo={mi:"italic",mn:"normal",mtext:"normal"};L0({type:"mathord",htmlBuilder(r,e){return C.makeOrd(r,e,"mathord")},mathmlBuilder(r,e){var t=new B.MathNode("mi",[qe(r.text,r.mode,e)]),a=oa(r,e)||"italic";return a!==Oo[t.type]&&t.setAttribute("mathvariant",a),t}});L0({type:"textord",htmlBuilder(r,e){return C.makeOrd(r,e,"textord")},mathmlBuilder(r,e){var t=qe(r.text,r.mode,e),a=oa(r,e)||"normal",n;return r.mode==="text"?n=new B.MathNode("mtext",[t]):/[0-9]/.test(r.text)?n=new B.MathNode("mn",[t]):r.text==="\\prime"?n=new B.MathNode("mo",[t]):n=new B.MathNode("mi",[t]),a!==Oo[n.type]&&n.setAttribute("mathvariant",a),n}});var wr={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},Sr={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};L0({type:"spacing",htmlBuilder(r,e){if(Sr.hasOwnProperty(r.text)){var t=Sr[r.text].className||"";if(r.mode==="text"){var a=C.makeOrd(r,e,"textord");return a.classes.push(t),a}else return C.makeSpan(["mspace",t],[C.mathsym(r.text,r.mode,e)],e)}else{if(wr.hasOwnProperty(r.text))return C.makeSpan(["mspace",wr[r.text]],[],e);throw new L('Unknown type of space "'+r.text+'"')}},mathmlBuilder(r,e){var t;if(Sr.hasOwnProperty(r.text))t=new B.MathNode("mtext",[new B.TextNode(" ")]);else{if(wr.hasOwnProperty(r.text))return new B.MathNode("mspace");throw new L('Unknown type of space "'+r.text+'"')}return t}});var Cn=()=>{var r=new B.MathNode("mtd",[]);return r.setAttribute("width","50%"),r};L0({type:"tag",mathmlBuilder(r,e){var t=new B.MathNode("mtable",[new B.MathNode("mtr",[Cn(),new B.MathNode("mtd",[k0(r.body,e)]),Cn(),new B.MathNode("mtd",[k0(r.tag,e)])])]);return t.setAttribute("width","100%"),t}});var Mn={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},Tn={"\\textbf":"textbf","\\textmd":"textmd"},Z4={"\\textit":"textit","\\textup":"textup"},zn=(r,e)=>{var t=r.font;if(t){if(Mn[t])return e.withTextFontFamily(Mn[t]);if(Tn[t])return e.withTextFontWeight(Tn[t]);if(t==="\\emph")return e.fontShape==="textit"?e.withTextFontShape("textup"):e.withTextFontShape("textit")}else return e;return e.withTextFontShape(Z4[t])};F({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(r,e){var{parser:t,funcName:a}=r,n=e[0];return{type:"text",mode:t.mode,body:ge(n),font:a}},htmlBuilder(r,e){var t=zn(r,e),a=Ce(r.body,t,!0);return C.makeSpan(["mord","text"],a,t)},mathmlBuilder(r,e){var t=zn(r,e);return k0(r.body,t)}});F({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(r,e){var{parser:t}=r;return{type:"underline",mode:t.mode,body:e[0]}},htmlBuilder(r,e){var t=te(r.body,e),a=C.makeLineSpan("underline-line",e),n=e.fontMetrics().defaultRuleThickness,s=C.makeVList({positionType:"top",positionData:t.height,children:[{type:"kern",size:n},{type:"elem",elem:a},{type:"kern",size:3*n},{type:"elem",elem:t}]},e);return C.makeSpan(["mord","underline"],[s],e)},mathmlBuilder(r,e){var t=new B.MathNode("mo",[new B.TextNode("‾")]);t.setAttribute("stretchy","true");var a=new B.MathNode("munder",[oe(r.body,e),t]);return a.setAttribute("accentunder","true"),a}});F({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(r,e){var{parser:t}=r;return{type:"vcenter",mode:t.mode,body:e[0]}},htmlBuilder(r,e){var t=te(r.body,e),a=e.fontMetrics().axisHeight,n=.5*(t.height-a-(t.depth+a));return C.makeVList({positionType:"shift",positionData:n,children:[{type:"elem",elem:t}]},e)},mathmlBuilder(r,e){return new B.MathNode("mpadded",[oe(r.body,e)],["vcenter"])}});F({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(r,e,t){throw new L("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(r,e){for(var t=An(r),a=[],n=e.havingStyle(e.style.text()),s=0;s<t.length;s++){var o=t[s];o==="~"&&(o="\\textasciitilde"),a.push(C.makeSymbol(o,"Typewriter-Regular",r.mode,n,["mord","texttt"]))}return C.makeSpan(["mord","text"].concat(n.sizingClasses(e)),C.tryCombineChars(a),n)},mathmlBuilder(r,e){var t=new B.TextNode(An(r)),a=new B.MathNode("mtext",[t]);return a.setAttribute("mathvariant","monospace"),a}});var An=r=>r.body.replace(/ /g,r.star?"␣":" "),y0=oo,Fo=`[ \r
326
- ]`,K4="\\\\[a-zA-Z@]+",J4="\\\\[^\uD800-\uDFFF]",Q4="("+K4+")"+Fo+"*",e5=`\\\\(
355
+ l0,-`+(r+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
356
+ -470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error("Unknown stretchy delimiter.")}};class pn{constructor(t){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=t,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(t){return this.classes.includes(t)}toNode(){for(var t=document.createDocumentFragment(),r=0;r<this.children.length;r++)t.appendChild(this.children[r].toNode());return t}toMarkup(){for(var t="",r=0;r<this.children.length;r++)t+=this.children[r].toMarkup();return t}toText(){var t=r=>r.toText();return this.children.map(t).join("")}}var Ct={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},Dn={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},hl={Å:"A",Ð:"D",Þ:"o",å:"a",ð:"d",þ:"o",А:"A",Б:"B",В:"B",Г:"F",Д:"A",Е:"E",Ж:"K",З:"3",И:"N",Й:"N",К:"K",Л:"N",М:"M",Н:"H",О:"O",П:"N",Р:"P",С:"C",Т:"T",У:"y",Ф:"O",Х:"X",Ц:"U",Ч:"h",Ш:"W",Щ:"W",Ъ:"B",Ы:"X",Ь:"B",Э:"3",Ю:"X",Я:"R",а:"a",б:"b",в:"a",г:"r",д:"y",е:"e",ж:"m",з:"e",и:"n",й:"n",к:"n",л:"n",м:"m",н:"n",о:"o",п:"n",р:"p",с:"c",т:"o",у:"y",ф:"b",х:"x",ц:"n",ч:"n",ш:"w",щ:"w",ъ:"a",ы:"m",ь:"a",э:"e",ю:"m",я:"r"};function lg(e,t){Ct[e]=t}function y0(e,t,r){if(!Ct[t])throw new Error("Font metrics not found for font: "+t+".");var n=e.charCodeAt(0),a=Ct[t][n];if(!a&&e[0]in hl&&(n=hl[e[0]].charCodeAt(0),a=Ct[t][n]),!a&&r==="text"&&Cc(n)&&(a=Ct[t][77]),a)return{depth:a[0],height:a[1],italic:a[2],skew:a[3],width:a[4]}}var Ya={};function sg(e){var t;if(e>=5?t=0:e>=3?t=1:t=2,!Ya[t]){var r=Ya[t]={cssEmPerMu:Dn.quad[t]/18};for(var n in Dn)Dn.hasOwnProperty(n)&&(r[n]=Dn[n][t])}return Ya[t]}var ug=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],dl=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],ml=function(t,r){return r.size<2?t:ug[t-1][r.size-1]};class Ft{constructor(t){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=t.style,this.color=t.color,this.size=t.size||Ft.BASESIZE,this.textSize=t.textSize||this.size,this.phantom=!!t.phantom,this.font=t.font||"",this.fontFamily=t.fontFamily||"",this.fontWeight=t.fontWeight||"",this.fontShape=t.fontShape||"",this.sizeMultiplier=dl[this.size-1],this.maxSize=t.maxSize,this.minRuleThickness=t.minRuleThickness,this._fontMetrics=void 0}extend(t){var r={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var n in t)t.hasOwnProperty(n)&&(r[n]=t[n]);return new Ft(r)}havingStyle(t){return this.style===t?this:this.extend({style:t,size:ml(this.textSize,t)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(t){return this.size===t&&this.textSize===t?this:this.extend({style:this.style.text(),size:t,textSize:t,sizeMultiplier:dl[t-1]})}havingBaseStyle(t){t=t||this.style.text();var r=ml(Ft.BASESIZE,t);return this.size===r&&this.textSize===Ft.BASESIZE&&this.style===t?this:this.extend({style:t,size:r})}havingBaseSizing(){var t;switch(this.style.id){case 4:case 5:t=3;break;case 6:case 7:t=1;break;default:t=6}return this.extend({style:this.style.text(),size:t})}withColor(t){return this.extend({color:t})}withPhantom(){return this.extend({phantom:!0})}withFont(t){return this.extend({font:t})}withTextFontFamily(t){return this.extend({fontFamily:t,font:""})}withTextFontWeight(t){return this.extend({fontWeight:t,font:""})}withTextFontShape(t){return this.extend({fontShape:t,font:""})}sizingClasses(t){return t.size!==this.size?["sizing","reset-size"+t.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==Ft.BASESIZE?["sizing","reset-size"+this.size,"size"+Ft.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=sg(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}Ft.BASESIZE=6;var Ei={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},cg={ex:!0,em:!0,mu:!0},Tc=function(t){return typeof t!="string"&&(t=t.unit),t in Ei||t in cg||t==="ex"},Fe=function(t,r){var n;if(t.unit in Ei)n=Ei[t.unit]/r.fontMetrics().ptPerEm/r.sizeMultiplier;else if(t.unit==="mu")n=r.fontMetrics().cssEmPerMu;else{var a;if(r.style.isTight()?a=r.havingStyle(r.style.text()):a=r,t.unit==="ex")n=a.fontMetrics().xHeight;else if(t.unit==="em")n=a.fontMetrics().quad;else throw new U("Invalid unit: '"+t.unit+"'");a!==r&&(n*=a.sizeMultiplier/r.sizeMultiplier)}return Math.min(t.number*n,r.maxSize)},Z=function(t){return+t.toFixed(4)+"em"},Jt=function(t){return t.filter(r=>r).join(" ")},Mc=function(t,r,n){if(this.classes=t||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=n||{},r){r.style.isTight()&&this.classes.push("mtight");var a=r.getColor();a&&(this.style.color=a)}},Ac=function(t){var r=document.createElement(t);r.className=Jt(this.classes);for(var n in this.style)this.style.hasOwnProperty(n)&&(r.style[n]=this.style[n]);for(var a in this.attributes)this.attributes.hasOwnProperty(a)&&r.setAttribute(a,this.attributes[a]);for(var i=0;i<this.children.length;i++)r.appendChild(this.children[i].toNode());return r},hg=/[\s"'>/=\x00-\x1f]/,zc=function(t){var r="<"+t;this.classes.length&&(r+=' class="'+Ce.escape(Jt(this.classes))+'"');var n="";for(var a in this.style)this.style.hasOwnProperty(a)&&(n+=Ce.hyphenate(a)+":"+this.style[a]+";");n&&(r+=' style="'+Ce.escape(n)+'"');for(var i in this.attributes)if(this.attributes.hasOwnProperty(i)){if(hg.test(i))throw new U("Invalid attribute name '"+i+"'");r+=" "+i+'="'+Ce.escape(this.attributes[i])+'"'}r+=">";for(var o=0;o<this.children.length;o++)r+=this.children[o].toMarkup();return r+="</"+t+">",r};class gn{constructor(t,r,n,a){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,Mc.call(this,t,n,a),this.children=r||[]}setAttribute(t,r){this.attributes[t]=r}hasClass(t){return this.classes.includes(t)}toNode(){return Ac.call(this,"span")}toMarkup(){return zc.call(this,"span")}}class x0{constructor(t,r,n,a){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,Mc.call(this,r,a),this.children=n||[],this.setAttribute("href",t)}setAttribute(t,r){this.attributes[t]=r}hasClass(t){return this.classes.includes(t)}toNode(){return Ac.call(this,"a")}toMarkup(){return zc.call(this,"a")}}class dg{constructor(t,r,n){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=r,this.src=t,this.classes=["mord"],this.style=n}hasClass(t){return this.classes.includes(t)}toNode(){var t=document.createElement("img");t.src=this.src,t.alt=this.alt,t.className="mord";for(var r in this.style)this.style.hasOwnProperty(r)&&(t.style[r]=this.style[r]);return t}toMarkup(){var t='<img src="'+Ce.escape(this.src)+'"'+(' alt="'+Ce.escape(this.alt)+'"'),r="";for(var n in this.style)this.style.hasOwnProperty(n)&&(r+=Ce.hyphenate(n)+":"+this.style[n]+";");return r&&(t+=' style="'+Ce.escape(r)+'"'),t+="'/>",t}}var mg={î:"ı̂",ï:"ı̈",í:"ı́",ì:"ı̀"};class pt{constructor(t,r,n,a,i,o,l,s){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=t,this.height=r||0,this.depth=n||0,this.italic=a||0,this.skew=i||0,this.width=o||0,this.classes=l||[],this.style=s||{},this.maxFontSize=0;var u=K8(this.text.charCodeAt(0));u&&this.classes.push(u+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=mg[this.text])}hasClass(t){return this.classes.includes(t)}toNode(){var t=document.createTextNode(this.text),r=null;this.italic>0&&(r=document.createElement("span"),r.style.marginRight=Z(this.italic)),this.classes.length>0&&(r=r||document.createElement("span"),r.className=Jt(this.classes));for(var n in this.style)this.style.hasOwnProperty(n)&&(r=r||document.createElement("span"),r.style[n]=this.style[n]);return r?(r.appendChild(t),r):t}toMarkup(){var t=!1,r="<span";this.classes.length&&(t=!0,r+=' class="',r+=Ce.escape(Jt(this.classes)),r+='"');var n="";this.italic>0&&(n+="margin-right:"+this.italic+"em;");for(var a in this.style)this.style.hasOwnProperty(a)&&(n+=Ce.hyphenate(a)+":"+this.style[a]+";");n&&(t=!0,r+=' style="'+Ce.escape(n)+'"');var i=Ce.escape(this.text);return t?(r+=">",r+=i,r+="</span>",r):i}}class qt{constructor(t,r){this.children=void 0,this.attributes=void 0,this.children=t||[],this.attributes=r||{}}toNode(){var t="http://www.w3.org/2000/svg",r=document.createElementNS(t,"svg");for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&r.setAttribute(n,this.attributes[n]);for(var a=0;a<this.children.length;a++)r.appendChild(this.children[a].toNode());return r}toMarkup(){var t='<svg xmlns="http://www.w3.org/2000/svg"';for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&(t+=" "+r+'="'+Ce.escape(this.attributes[r])+'"');t+=">";for(var n=0;n<this.children.length;n++)t+=this.children[n].toMarkup();return t+="</svg>",t}}class er{constructor(t,r){this.pathName=void 0,this.alternate=void 0,this.pathName=t,this.alternate=r}toNode(){var t="http://www.w3.org/2000/svg",r=document.createElementNS(t,"path");return this.alternate?r.setAttribute("d",this.alternate):r.setAttribute("d",cl[this.pathName]),r}toMarkup(){return this.alternate?'<path d="'+Ce.escape(this.alternate)+'"/>':'<path d="'+Ce.escape(cl[this.pathName])+'"/>'}}class Di{constructor(t){this.attributes=void 0,this.attributes=t||{}}toNode(){var t="http://www.w3.org/2000/svg",r=document.createElementNS(t,"line");for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&r.setAttribute(n,this.attributes[n]);return r}toMarkup(){var t="<line";for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&(t+=" "+r+'="'+Ce.escape(this.attributes[r])+'"');return t+="/>",t}}function fl(e){if(e instanceof pt)return e;throw new Error("Expected symbolNode but got "+String(e)+".")}function fg(e){if(e instanceof gn)return e;throw new Error("Expected span<HtmlDomNode> but got "+String(e)+".")}var pg={bin:1,close:1,inner:1,open:1,punct:1,rel:1},gg={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},Ie={math:{},text:{}};function d(e,t,r,n,a,i){Ie[e][a]={font:t,group:r,replace:n},i&&n&&(Ie[e][n]=Ie[e][a])}var f="math",q="text",g="main",S="ams",Re="accent-token",ne="bin",et="close",Hr="inner",se="mathord",$e="op-token",dt="open",da="punct",T="rel",Ut="spacing",N="textord";d(f,g,T,"≡","\\equiv",!0);d(f,g,T,"≺","\\prec",!0);d(f,g,T,"≻","\\succ",!0);d(f,g,T,"∼","\\sim",!0);d(f,g,T,"⊥","\\perp");d(f,g,T,"⪯","\\preceq",!0);d(f,g,T,"⪰","\\succeq",!0);d(f,g,T,"≃","\\simeq",!0);d(f,g,T,"∣","\\mid",!0);d(f,g,T,"≪","\\ll",!0);d(f,g,T,"≫","\\gg",!0);d(f,g,T,"≍","\\asymp",!0);d(f,g,T,"∥","\\parallel");d(f,g,T,"⋈","\\bowtie",!0);d(f,g,T,"⌣","\\smile",!0);d(f,g,T,"⊑","\\sqsubseteq",!0);d(f,g,T,"⊒","\\sqsupseteq",!0);d(f,g,T,"≐","\\doteq",!0);d(f,g,T,"⌢","\\frown",!0);d(f,g,T,"∋","\\ni",!0);d(f,g,T,"∝","\\propto",!0);d(f,g,T,"⊢","\\vdash",!0);d(f,g,T,"⊣","\\dashv",!0);d(f,g,T,"∋","\\owns");d(f,g,da,".","\\ldotp");d(f,g,da,"⋅","\\cdotp");d(f,g,N,"#","\\#");d(q,g,N,"#","\\#");d(f,g,N,"&","\\&");d(q,g,N,"&","\\&");d(f,g,N,"ℵ","\\aleph",!0);d(f,g,N,"∀","\\forall",!0);d(f,g,N,"ℏ","\\hbar",!0);d(f,g,N,"∃","\\exists",!0);d(f,g,N,"∇","\\nabla",!0);d(f,g,N,"♭","\\flat",!0);d(f,g,N,"ℓ","\\ell",!0);d(f,g,N,"♮","\\natural",!0);d(f,g,N,"♣","\\clubsuit",!0);d(f,g,N,"℘","\\wp",!0);d(f,g,N,"♯","\\sharp",!0);d(f,g,N,"♢","\\diamondsuit",!0);d(f,g,N,"ℜ","\\Re",!0);d(f,g,N,"♡","\\heartsuit",!0);d(f,g,N,"ℑ","\\Im",!0);d(f,g,N,"♠","\\spadesuit",!0);d(f,g,N,"§","\\S",!0);d(q,g,N,"§","\\S");d(f,g,N,"¶","\\P",!0);d(q,g,N,"¶","\\P");d(f,g,N,"†","\\dag");d(q,g,N,"†","\\dag");d(q,g,N,"†","\\textdagger");d(f,g,N,"‡","\\ddag");d(q,g,N,"‡","\\ddag");d(q,g,N,"‡","\\textdaggerdbl");d(f,g,et,"⎱","\\rmoustache",!0);d(f,g,dt,"⎰","\\lmoustache",!0);d(f,g,et,"⟯","\\rgroup",!0);d(f,g,dt,"⟮","\\lgroup",!0);d(f,g,ne,"∓","\\mp",!0);d(f,g,ne,"⊖","\\ominus",!0);d(f,g,ne,"⊎","\\uplus",!0);d(f,g,ne,"⊓","\\sqcap",!0);d(f,g,ne,"∗","\\ast");d(f,g,ne,"⊔","\\sqcup",!0);d(f,g,ne,"◯","\\bigcirc",!0);d(f,g,ne,"∙","\\bullet",!0);d(f,g,ne,"‡","\\ddagger");d(f,g,ne,"≀","\\wr",!0);d(f,g,ne,"⨿","\\amalg");d(f,g,ne,"&","\\And");d(f,g,T,"⟵","\\longleftarrow",!0);d(f,g,T,"⇐","\\Leftarrow",!0);d(f,g,T,"⟸","\\Longleftarrow",!0);d(f,g,T,"⟶","\\longrightarrow",!0);d(f,g,T,"⇒","\\Rightarrow",!0);d(f,g,T,"⟹","\\Longrightarrow",!0);d(f,g,T,"↔","\\leftrightarrow",!0);d(f,g,T,"⟷","\\longleftrightarrow",!0);d(f,g,T,"⇔","\\Leftrightarrow",!0);d(f,g,T,"⟺","\\Longleftrightarrow",!0);d(f,g,T,"↦","\\mapsto",!0);d(f,g,T,"⟼","\\longmapsto",!0);d(f,g,T,"↗","\\nearrow",!0);d(f,g,T,"↩","\\hookleftarrow",!0);d(f,g,T,"↪","\\hookrightarrow",!0);d(f,g,T,"↘","\\searrow",!0);d(f,g,T,"↼","\\leftharpoonup",!0);d(f,g,T,"⇀","\\rightharpoonup",!0);d(f,g,T,"↙","\\swarrow",!0);d(f,g,T,"↽","\\leftharpoondown",!0);d(f,g,T,"⇁","\\rightharpoondown",!0);d(f,g,T,"↖","\\nwarrow",!0);d(f,g,T,"⇌","\\rightleftharpoons",!0);d(f,S,T,"≮","\\nless",!0);d(f,S,T,"","\\@nleqslant");d(f,S,T,"","\\@nleqq");d(f,S,T,"⪇","\\lneq",!0);d(f,S,T,"≨","\\lneqq",!0);d(f,S,T,"","\\@lvertneqq");d(f,S,T,"⋦","\\lnsim",!0);d(f,S,T,"⪉","\\lnapprox",!0);d(f,S,T,"⊀","\\nprec",!0);d(f,S,T,"⋠","\\npreceq",!0);d(f,S,T,"⋨","\\precnsim",!0);d(f,S,T,"⪹","\\precnapprox",!0);d(f,S,T,"≁","\\nsim",!0);d(f,S,T,"","\\@nshortmid");d(f,S,T,"∤","\\nmid",!0);d(f,S,T,"⊬","\\nvdash",!0);d(f,S,T,"⊭","\\nvDash",!0);d(f,S,T,"⋪","\\ntriangleleft");d(f,S,T,"⋬","\\ntrianglelefteq",!0);d(f,S,T,"⊊","\\subsetneq",!0);d(f,S,T,"","\\@varsubsetneq");d(f,S,T,"⫋","\\subsetneqq",!0);d(f,S,T,"","\\@varsubsetneqq");d(f,S,T,"≯","\\ngtr",!0);d(f,S,T,"","\\@ngeqslant");d(f,S,T,"","\\@ngeqq");d(f,S,T,"⪈","\\gneq",!0);d(f,S,T,"≩","\\gneqq",!0);d(f,S,T,"","\\@gvertneqq");d(f,S,T,"⋧","\\gnsim",!0);d(f,S,T,"⪊","\\gnapprox",!0);d(f,S,T,"⊁","\\nsucc",!0);d(f,S,T,"⋡","\\nsucceq",!0);d(f,S,T,"⋩","\\succnsim",!0);d(f,S,T,"⪺","\\succnapprox",!0);d(f,S,T,"≆","\\ncong",!0);d(f,S,T,"","\\@nshortparallel");d(f,S,T,"∦","\\nparallel",!0);d(f,S,T,"⊯","\\nVDash",!0);d(f,S,T,"⋫","\\ntriangleright");d(f,S,T,"⋭","\\ntrianglerighteq",!0);d(f,S,T,"","\\@nsupseteqq");d(f,S,T,"⊋","\\supsetneq",!0);d(f,S,T,"","\\@varsupsetneq");d(f,S,T,"⫌","\\supsetneqq",!0);d(f,S,T,"","\\@varsupsetneqq");d(f,S,T,"⊮","\\nVdash",!0);d(f,S,T,"⪵","\\precneqq",!0);d(f,S,T,"⪶","\\succneqq",!0);d(f,S,T,"","\\@nsubseteqq");d(f,S,ne,"⊴","\\unlhd");d(f,S,ne,"⊵","\\unrhd");d(f,S,T,"↚","\\nleftarrow",!0);d(f,S,T,"↛","\\nrightarrow",!0);d(f,S,T,"⇍","\\nLeftarrow",!0);d(f,S,T,"⇏","\\nRightarrow",!0);d(f,S,T,"↮","\\nleftrightarrow",!0);d(f,S,T,"⇎","\\nLeftrightarrow",!0);d(f,S,T,"△","\\vartriangle");d(f,S,N,"ℏ","\\hslash");d(f,S,N,"▽","\\triangledown");d(f,S,N,"◊","\\lozenge");d(f,S,N,"Ⓢ","\\circledS");d(f,S,N,"®","\\circledR");d(q,S,N,"®","\\circledR");d(f,S,N,"∡","\\measuredangle",!0);d(f,S,N,"∄","\\nexists");d(f,S,N,"℧","\\mho");d(f,S,N,"Ⅎ","\\Finv",!0);d(f,S,N,"⅁","\\Game",!0);d(f,S,N,"‵","\\backprime");d(f,S,N,"▲","\\blacktriangle");d(f,S,N,"▼","\\blacktriangledown");d(f,S,N,"■","\\blacksquare");d(f,S,N,"⧫","\\blacklozenge");d(f,S,N,"★","\\bigstar");d(f,S,N,"∢","\\sphericalangle",!0);d(f,S,N,"∁","\\complement",!0);d(f,S,N,"ð","\\eth",!0);d(q,g,N,"ð","ð");d(f,S,N,"╱","\\diagup");d(f,S,N,"╲","\\diagdown");d(f,S,N,"□","\\square");d(f,S,N,"□","\\Box");d(f,S,N,"◊","\\Diamond");d(f,S,N,"¥","\\yen",!0);d(q,S,N,"¥","\\yen",!0);d(f,S,N,"✓","\\checkmark",!0);d(q,S,N,"✓","\\checkmark");d(f,S,N,"ℶ","\\beth",!0);d(f,S,N,"ℸ","\\daleth",!0);d(f,S,N,"ℷ","\\gimel",!0);d(f,S,N,"ϝ","\\digamma",!0);d(f,S,N,"ϰ","\\varkappa");d(f,S,dt,"┌","\\@ulcorner",!0);d(f,S,et,"┐","\\@urcorner",!0);d(f,S,dt,"└","\\@llcorner",!0);d(f,S,et,"┘","\\@lrcorner",!0);d(f,S,T,"≦","\\leqq",!0);d(f,S,T,"⩽","\\leqslant",!0);d(f,S,T,"⪕","\\eqslantless",!0);d(f,S,T,"≲","\\lesssim",!0);d(f,S,T,"⪅","\\lessapprox",!0);d(f,S,T,"≊","\\approxeq",!0);d(f,S,ne,"⋖","\\lessdot");d(f,S,T,"⋘","\\lll",!0);d(f,S,T,"≶","\\lessgtr",!0);d(f,S,T,"⋚","\\lesseqgtr",!0);d(f,S,T,"⪋","\\lesseqqgtr",!0);d(f,S,T,"≑","\\doteqdot");d(f,S,T,"≓","\\risingdotseq",!0);d(f,S,T,"≒","\\fallingdotseq",!0);d(f,S,T,"∽","\\backsim",!0);d(f,S,T,"⋍","\\backsimeq",!0);d(f,S,T,"⫅","\\subseteqq",!0);d(f,S,T,"⋐","\\Subset",!0);d(f,S,T,"⊏","\\sqsubset",!0);d(f,S,T,"≼","\\preccurlyeq",!0);d(f,S,T,"⋞","\\curlyeqprec",!0);d(f,S,T,"≾","\\precsim",!0);d(f,S,T,"⪷","\\precapprox",!0);d(f,S,T,"⊲","\\vartriangleleft");d(f,S,T,"⊴","\\trianglelefteq");d(f,S,T,"⊨","\\vDash",!0);d(f,S,T,"⊪","\\Vvdash",!0);d(f,S,T,"⌣","\\smallsmile");d(f,S,T,"⌢","\\smallfrown");d(f,S,T,"≏","\\bumpeq",!0);d(f,S,T,"≎","\\Bumpeq",!0);d(f,S,T,"≧","\\geqq",!0);d(f,S,T,"⩾","\\geqslant",!0);d(f,S,T,"⪖","\\eqslantgtr",!0);d(f,S,T,"≳","\\gtrsim",!0);d(f,S,T,"⪆","\\gtrapprox",!0);d(f,S,ne,"⋗","\\gtrdot");d(f,S,T,"⋙","\\ggg",!0);d(f,S,T,"≷","\\gtrless",!0);d(f,S,T,"⋛","\\gtreqless",!0);d(f,S,T,"⪌","\\gtreqqless",!0);d(f,S,T,"≖","\\eqcirc",!0);d(f,S,T,"≗","\\circeq",!0);d(f,S,T,"≜","\\triangleq",!0);d(f,S,T,"∼","\\thicksim");d(f,S,T,"≈","\\thickapprox");d(f,S,T,"⫆","\\supseteqq",!0);d(f,S,T,"⋑","\\Supset",!0);d(f,S,T,"⊐","\\sqsupset",!0);d(f,S,T,"≽","\\succcurlyeq",!0);d(f,S,T,"⋟","\\curlyeqsucc",!0);d(f,S,T,"≿","\\succsim",!0);d(f,S,T,"⪸","\\succapprox",!0);d(f,S,T,"⊳","\\vartriangleright");d(f,S,T,"⊵","\\trianglerighteq");d(f,S,T,"⊩","\\Vdash",!0);d(f,S,T,"∣","\\shortmid");d(f,S,T,"∥","\\shortparallel");d(f,S,T,"≬","\\between",!0);d(f,S,T,"⋔","\\pitchfork",!0);d(f,S,T,"∝","\\varpropto");d(f,S,T,"◀","\\blacktriangleleft");d(f,S,T,"∴","\\therefore",!0);d(f,S,T,"∍","\\backepsilon");d(f,S,T,"▶","\\blacktriangleright");d(f,S,T,"∵","\\because",!0);d(f,S,T,"⋘","\\llless");d(f,S,T,"⋙","\\gggtr");d(f,S,ne,"⊲","\\lhd");d(f,S,ne,"⊳","\\rhd");d(f,S,T,"≂","\\eqsim",!0);d(f,g,T,"⋈","\\Join");d(f,S,T,"≑","\\Doteq",!0);d(f,S,ne,"∔","\\dotplus",!0);d(f,S,ne,"∖","\\smallsetminus");d(f,S,ne,"⋒","\\Cap",!0);d(f,S,ne,"⋓","\\Cup",!0);d(f,S,ne,"⩞","\\doublebarwedge",!0);d(f,S,ne,"⊟","\\boxminus",!0);d(f,S,ne,"⊞","\\boxplus",!0);d(f,S,ne,"⋇","\\divideontimes",!0);d(f,S,ne,"⋉","\\ltimes",!0);d(f,S,ne,"⋊","\\rtimes",!0);d(f,S,ne,"⋋","\\leftthreetimes",!0);d(f,S,ne,"⋌","\\rightthreetimes",!0);d(f,S,ne,"⋏","\\curlywedge",!0);d(f,S,ne,"⋎","\\curlyvee",!0);d(f,S,ne,"⊝","\\circleddash",!0);d(f,S,ne,"⊛","\\circledast",!0);d(f,S,ne,"⋅","\\centerdot");d(f,S,ne,"⊺","\\intercal",!0);d(f,S,ne,"⋒","\\doublecap");d(f,S,ne,"⋓","\\doublecup");d(f,S,ne,"⊠","\\boxtimes",!0);d(f,S,T,"⇢","\\dashrightarrow",!0);d(f,S,T,"⇠","\\dashleftarrow",!0);d(f,S,T,"⇇","\\leftleftarrows",!0);d(f,S,T,"⇆","\\leftrightarrows",!0);d(f,S,T,"⇚","\\Lleftarrow",!0);d(f,S,T,"↞","\\twoheadleftarrow",!0);d(f,S,T,"↢","\\leftarrowtail",!0);d(f,S,T,"↫","\\looparrowleft",!0);d(f,S,T,"⇋","\\leftrightharpoons",!0);d(f,S,T,"↶","\\curvearrowleft",!0);d(f,S,T,"↺","\\circlearrowleft",!0);d(f,S,T,"↰","\\Lsh",!0);d(f,S,T,"⇈","\\upuparrows",!0);d(f,S,T,"↿","\\upharpoonleft",!0);d(f,S,T,"⇃","\\downharpoonleft",!0);d(f,g,T,"⊶","\\origof",!0);d(f,g,T,"⊷","\\imageof",!0);d(f,S,T,"⊸","\\multimap",!0);d(f,S,T,"↭","\\leftrightsquigarrow",!0);d(f,S,T,"⇉","\\rightrightarrows",!0);d(f,S,T,"⇄","\\rightleftarrows",!0);d(f,S,T,"↠","\\twoheadrightarrow",!0);d(f,S,T,"↣","\\rightarrowtail",!0);d(f,S,T,"↬","\\looparrowright",!0);d(f,S,T,"↷","\\curvearrowright",!0);d(f,S,T,"↻","\\circlearrowright",!0);d(f,S,T,"↱","\\Rsh",!0);d(f,S,T,"⇊","\\downdownarrows",!0);d(f,S,T,"↾","\\upharpoonright",!0);d(f,S,T,"⇂","\\downharpoonright",!0);d(f,S,T,"⇝","\\rightsquigarrow",!0);d(f,S,T,"⇝","\\leadsto");d(f,S,T,"⇛","\\Rrightarrow",!0);d(f,S,T,"↾","\\restriction");d(f,g,N,"‘","`");d(f,g,N,"$","\\$");d(q,g,N,"$","\\$");d(q,g,N,"$","\\textdollar");d(f,g,N,"%","\\%");d(q,g,N,"%","\\%");d(f,g,N,"_","\\_");d(q,g,N,"_","\\_");d(q,g,N,"_","\\textunderscore");d(f,g,N,"∠","\\angle",!0);d(f,g,N,"∞","\\infty",!0);d(f,g,N,"′","\\prime");d(f,g,N,"△","\\triangle");d(f,g,N,"Γ","\\Gamma",!0);d(f,g,N,"Δ","\\Delta",!0);d(f,g,N,"Θ","\\Theta",!0);d(f,g,N,"Λ","\\Lambda",!0);d(f,g,N,"Ξ","\\Xi",!0);d(f,g,N,"Π","\\Pi",!0);d(f,g,N,"Σ","\\Sigma",!0);d(f,g,N,"Υ","\\Upsilon",!0);d(f,g,N,"Φ","\\Phi",!0);d(f,g,N,"Ψ","\\Psi",!0);d(f,g,N,"Ω","\\Omega",!0);d(f,g,N,"A","Α");d(f,g,N,"B","Β");d(f,g,N,"E","Ε");d(f,g,N,"Z","Ζ");d(f,g,N,"H","Η");d(f,g,N,"I","Ι");d(f,g,N,"K","Κ");d(f,g,N,"M","Μ");d(f,g,N,"N","Ν");d(f,g,N,"O","Ο");d(f,g,N,"P","Ρ");d(f,g,N,"T","Τ");d(f,g,N,"X","Χ");d(f,g,N,"¬","\\neg",!0);d(f,g,N,"¬","\\lnot");d(f,g,N,"⊤","\\top");d(f,g,N,"⊥","\\bot");d(f,g,N,"∅","\\emptyset");d(f,S,N,"∅","\\varnothing");d(f,g,se,"α","\\alpha",!0);d(f,g,se,"β","\\beta",!0);d(f,g,se,"γ","\\gamma",!0);d(f,g,se,"δ","\\delta",!0);d(f,g,se,"ϵ","\\epsilon",!0);d(f,g,se,"ζ","\\zeta",!0);d(f,g,se,"η","\\eta",!0);d(f,g,se,"θ","\\theta",!0);d(f,g,se,"ι","\\iota",!0);d(f,g,se,"κ","\\kappa",!0);d(f,g,se,"λ","\\lambda",!0);d(f,g,se,"μ","\\mu",!0);d(f,g,se,"ν","\\nu",!0);d(f,g,se,"ξ","\\xi",!0);d(f,g,se,"ο","\\omicron",!0);d(f,g,se,"π","\\pi",!0);d(f,g,se,"ρ","\\rho",!0);d(f,g,se,"σ","\\sigma",!0);d(f,g,se,"τ","\\tau",!0);d(f,g,se,"υ","\\upsilon",!0);d(f,g,se,"ϕ","\\phi",!0);d(f,g,se,"χ","\\chi",!0);d(f,g,se,"ψ","\\psi",!0);d(f,g,se,"ω","\\omega",!0);d(f,g,se,"ε","\\varepsilon",!0);d(f,g,se,"ϑ","\\vartheta",!0);d(f,g,se,"ϖ","\\varpi",!0);d(f,g,se,"ϱ","\\varrho",!0);d(f,g,se,"ς","\\varsigma",!0);d(f,g,se,"φ","\\varphi",!0);d(f,g,ne,"∗","*",!0);d(f,g,ne,"+","+");d(f,g,ne,"−","-",!0);d(f,g,ne,"⋅","\\cdot",!0);d(f,g,ne,"∘","\\circ",!0);d(f,g,ne,"÷","\\div",!0);d(f,g,ne,"±","\\pm",!0);d(f,g,ne,"×","\\times",!0);d(f,g,ne,"∩","\\cap",!0);d(f,g,ne,"∪","\\cup",!0);d(f,g,ne,"∖","\\setminus",!0);d(f,g,ne,"∧","\\land");d(f,g,ne,"∨","\\lor");d(f,g,ne,"∧","\\wedge",!0);d(f,g,ne,"∨","\\vee",!0);d(f,g,N,"√","\\surd");d(f,g,dt,"⟨","\\langle",!0);d(f,g,dt,"∣","\\lvert");d(f,g,dt,"∥","\\lVert");d(f,g,et,"?","?");d(f,g,et,"!","!");d(f,g,et,"⟩","\\rangle",!0);d(f,g,et,"∣","\\rvert");d(f,g,et,"∥","\\rVert");d(f,g,T,"=","=");d(f,g,T,":",":");d(f,g,T,"≈","\\approx",!0);d(f,g,T,"≅","\\cong",!0);d(f,g,T,"≥","\\ge");d(f,g,T,"≥","\\geq",!0);d(f,g,T,"←","\\gets");d(f,g,T,">","\\gt",!0);d(f,g,T,"∈","\\in",!0);d(f,g,T,"","\\@not");d(f,g,T,"⊂","\\subset",!0);d(f,g,T,"⊃","\\supset",!0);d(f,g,T,"⊆","\\subseteq",!0);d(f,g,T,"⊇","\\supseteq",!0);d(f,S,T,"⊈","\\nsubseteq",!0);d(f,S,T,"⊉","\\nsupseteq",!0);d(f,g,T,"⊨","\\models");d(f,g,T,"←","\\leftarrow",!0);d(f,g,T,"≤","\\le");d(f,g,T,"≤","\\leq",!0);d(f,g,T,"<","\\lt",!0);d(f,g,T,"→","\\rightarrow",!0);d(f,g,T,"→","\\to");d(f,S,T,"≱","\\ngeq",!0);d(f,S,T,"≰","\\nleq",!0);d(f,g,Ut," ","\\ ");d(f,g,Ut," ","\\space");d(f,g,Ut," ","\\nobreakspace");d(q,g,Ut," ","\\ ");d(q,g,Ut," "," ");d(q,g,Ut," ","\\space");d(q,g,Ut," ","\\nobreakspace");d(f,g,Ut,null,"\\nobreak");d(f,g,Ut,null,"\\allowbreak");d(f,g,da,",",",");d(f,g,da,";",";");d(f,S,ne,"⊼","\\barwedge",!0);d(f,S,ne,"⊻","\\veebar",!0);d(f,g,ne,"⊙","\\odot",!0);d(f,g,ne,"⊕","\\oplus",!0);d(f,g,ne,"⊗","\\otimes",!0);d(f,g,N,"∂","\\partial",!0);d(f,g,ne,"⊘","\\oslash",!0);d(f,S,ne,"⊚","\\circledcirc",!0);d(f,S,ne,"⊡","\\boxdot",!0);d(f,g,ne,"△","\\bigtriangleup");d(f,g,ne,"▽","\\bigtriangledown");d(f,g,ne,"†","\\dagger");d(f,g,ne,"⋄","\\diamond");d(f,g,ne,"⋆","\\star");d(f,g,ne,"◃","\\triangleleft");d(f,g,ne,"▹","\\triangleright");d(f,g,dt,"{","\\{");d(q,g,N,"{","\\{");d(q,g,N,"{","\\textbraceleft");d(f,g,et,"}","\\}");d(q,g,N,"}","\\}");d(q,g,N,"}","\\textbraceright");d(f,g,dt,"{","\\lbrace");d(f,g,et,"}","\\rbrace");d(f,g,dt,"[","\\lbrack",!0);d(q,g,N,"[","\\lbrack",!0);d(f,g,et,"]","\\rbrack",!0);d(q,g,N,"]","\\rbrack",!0);d(f,g,dt,"(","\\lparen",!0);d(f,g,et,")","\\rparen",!0);d(q,g,N,"<","\\textless",!0);d(q,g,N,">","\\textgreater",!0);d(f,g,dt,"⌊","\\lfloor",!0);d(f,g,et,"⌋","\\rfloor",!0);d(f,g,dt,"⌈","\\lceil",!0);d(f,g,et,"⌉","\\rceil",!0);d(f,g,N,"\\","\\backslash");d(f,g,N,"∣","|");d(f,g,N,"∣","\\vert");d(q,g,N,"|","\\textbar",!0);d(f,g,N,"∥","\\|");d(f,g,N,"∥","\\Vert");d(q,g,N,"∥","\\textbardbl");d(q,g,N,"~","\\textasciitilde");d(q,g,N,"\\","\\textbackslash");d(q,g,N,"^","\\textasciicircum");d(f,g,T,"↑","\\uparrow",!0);d(f,g,T,"⇑","\\Uparrow",!0);d(f,g,T,"↓","\\downarrow",!0);d(f,g,T,"⇓","\\Downarrow",!0);d(f,g,T,"↕","\\updownarrow",!0);d(f,g,T,"⇕","\\Updownarrow",!0);d(f,g,$e,"∐","\\coprod");d(f,g,$e,"⋁","\\bigvee");d(f,g,$e,"⋀","\\bigwedge");d(f,g,$e,"⨄","\\biguplus");d(f,g,$e,"⋂","\\bigcap");d(f,g,$e,"⋃","\\bigcup");d(f,g,$e,"∫","\\int");d(f,g,$e,"∫","\\intop");d(f,g,$e,"∬","\\iint");d(f,g,$e,"∭","\\iiint");d(f,g,$e,"∏","\\prod");d(f,g,$e,"∑","\\sum");d(f,g,$e,"⨂","\\bigotimes");d(f,g,$e,"⨁","\\bigoplus");d(f,g,$e,"⨀","\\bigodot");d(f,g,$e,"∮","\\oint");d(f,g,$e,"∯","\\oiint");d(f,g,$e,"∰","\\oiiint");d(f,g,$e,"⨆","\\bigsqcup");d(f,g,$e,"∫","\\smallint");d(q,g,Hr,"…","\\textellipsis");d(f,g,Hr,"…","\\mathellipsis");d(q,g,Hr,"…","\\ldots",!0);d(f,g,Hr,"…","\\ldots",!0);d(f,g,Hr,"⋯","\\@cdots",!0);d(f,g,Hr,"⋱","\\ddots",!0);d(f,g,N,"⋮","\\varvdots");d(q,g,N,"⋮","\\varvdots");d(f,g,Re,"ˊ","\\acute");d(f,g,Re,"ˋ","\\grave");d(f,g,Re,"¨","\\ddot");d(f,g,Re,"~","\\tilde");d(f,g,Re,"ˉ","\\bar");d(f,g,Re,"˘","\\breve");d(f,g,Re,"ˇ","\\check");d(f,g,Re,"^","\\hat");d(f,g,Re,"⃗","\\vec");d(f,g,Re,"˙","\\dot");d(f,g,Re,"˚","\\mathring");d(f,g,se,"","\\@imath");d(f,g,se,"","\\@jmath");d(f,g,N,"ı","ı");d(f,g,N,"ȷ","ȷ");d(q,g,N,"ı","\\i",!0);d(q,g,N,"ȷ","\\j",!0);d(q,g,N,"ß","\\ss",!0);d(q,g,N,"æ","\\ae",!0);d(q,g,N,"œ","\\oe",!0);d(q,g,N,"ø","\\o",!0);d(q,g,N,"Æ","\\AE",!0);d(q,g,N,"Œ","\\OE",!0);d(q,g,N,"Ø","\\O",!0);d(q,g,Re,"ˊ","\\'");d(q,g,Re,"ˋ","\\`");d(q,g,Re,"ˆ","\\^");d(q,g,Re,"˜","\\~");d(q,g,Re,"ˉ","\\=");d(q,g,Re,"˘","\\u");d(q,g,Re,"˙","\\.");d(q,g,Re,"¸","\\c");d(q,g,Re,"˚","\\r");d(q,g,Re,"ˇ","\\v");d(q,g,Re,"¨",'\\"');d(q,g,Re,"˝","\\H");d(q,g,Re,"◯","\\textcircled");var Nc={"--":!0,"---":!0,"``":!0,"''":!0};d(q,g,N,"–","--",!0);d(q,g,N,"–","\\textendash");d(q,g,N,"—","---",!0);d(q,g,N,"—","\\textemdash");d(q,g,N,"‘","`",!0);d(q,g,N,"‘","\\textquoteleft");d(q,g,N,"’","'",!0);d(q,g,N,"’","\\textquoteright");d(q,g,N,"“","``",!0);d(q,g,N,"“","\\textquotedblleft");d(q,g,N,"”","''",!0);d(q,g,N,"”","\\textquotedblright");d(f,g,N,"°","\\degree",!0);d(q,g,N,"°","\\degree");d(q,g,N,"°","\\textdegree",!0);d(f,g,N,"£","\\pounds");d(f,g,N,"£","\\mathsterling",!0);d(q,g,N,"£","\\pounds");d(q,g,N,"£","\\textsterling",!0);d(f,S,N,"✠","\\maltese");d(q,S,N,"✠","\\maltese");var pl='0123456789/@."';for(var Ka=0;Ka<pl.length;Ka++){var gl=pl.charAt(Ka);d(f,g,N,gl,gl)}var vl='0123456789!@*()-=+";:?/.,';for(var Za=0;Za<vl.length;Za++){var bl=vl.charAt(Za);d(q,g,N,bl,bl)}var Qn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";for(var Qa=0;Qa<Qn.length;Qa++){var In=Qn.charAt(Qa);d(f,g,se,In,In),d(q,g,N,In,In)}d(f,S,N,"C","ℂ");d(q,S,N,"C","ℂ");d(f,S,N,"H","ℍ");d(q,S,N,"H","ℍ");d(f,S,N,"N","ℕ");d(q,S,N,"N","ℕ");d(f,S,N,"P","ℙ");d(q,S,N,"P","ℙ");d(f,S,N,"Q","ℚ");d(q,S,N,"Q","ℚ");d(f,S,N,"R","ℝ");d(q,S,N,"R","ℝ");d(f,S,N,"Z","ℤ");d(q,S,N,"Z","ℤ");d(f,g,se,"h","ℎ");d(q,g,se,"h","ℎ");var he="";for(var Ze=0;Ze<Qn.length;Ze++){var Oe=Qn.charAt(Ze);he=String.fromCharCode(55349,56320+Ze),d(f,g,se,Oe,he),d(q,g,N,Oe,he),he=String.fromCharCode(55349,56372+Ze),d(f,g,se,Oe,he),d(q,g,N,Oe,he),he=String.fromCharCode(55349,56424+Ze),d(f,g,se,Oe,he),d(q,g,N,Oe,he),he=String.fromCharCode(55349,56580+Ze),d(f,g,se,Oe,he),d(q,g,N,Oe,he),he=String.fromCharCode(55349,56684+Ze),d(f,g,se,Oe,he),d(q,g,N,Oe,he),he=String.fromCharCode(55349,56736+Ze),d(f,g,se,Oe,he),d(q,g,N,Oe,he),he=String.fromCharCode(55349,56788+Ze),d(f,g,se,Oe,he),d(q,g,N,Oe,he),he=String.fromCharCode(55349,56840+Ze),d(f,g,se,Oe,he),d(q,g,N,Oe,he),he=String.fromCharCode(55349,56944+Ze),d(f,g,se,Oe,he),d(q,g,N,Oe,he),Ze<26&&(he=String.fromCharCode(55349,56632+Ze),d(f,g,se,Oe,he),d(q,g,N,Oe,he),he=String.fromCharCode(55349,56476+Ze),d(f,g,se,Oe,he),d(q,g,N,Oe,he))}he="𝕜";d(f,g,se,"k",he);d(q,g,N,"k",he);for(var sr=0;sr<10;sr++){var Yt=sr.toString();he=String.fromCharCode(55349,57294+sr),d(f,g,se,Yt,he),d(q,g,N,Yt,he),he=String.fromCharCode(55349,57314+sr),d(f,g,se,Yt,he),d(q,g,N,Yt,he),he=String.fromCharCode(55349,57324+sr),d(f,g,se,Yt,he),d(q,g,N,Yt,he),he=String.fromCharCode(55349,57334+sr),d(f,g,se,Yt,he),d(q,g,N,Yt,he)}var Ii="ÐÞþ";for(var Ja=0;Ja<Ii.length;Ja++){var Ln=Ii.charAt(Ja);d(f,g,se,Ln,Ln),d(q,g,N,Ln,Ln)}var Rn=[["mathbf","textbf","Main-Bold"],["mathbf","textbf","Main-Bold"],["mathnormal","textit","Math-Italic"],["mathnormal","textit","Math-Italic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["mathscr","textscr","Script-Regular"],["","",""],["","",""],["","",""],["mathfrak","textfrak","Fraktur-Regular"],["mathfrak","textfrak","Fraktur-Regular"],["mathbb","textbb","AMS-Regular"],["mathbb","textbb","AMS-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathitsf","textitsf","SansSerif-Italic"],["mathitsf","textitsf","SansSerif-Italic"],["","",""],["","",""],["mathtt","texttt","Typewriter-Regular"],["mathtt","texttt","Typewriter-Regular"]],yl=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],vg=function(t,r){var n=t.charCodeAt(0),a=t.charCodeAt(1),i=(n-55296)*1024+(a-56320)+65536,o=r==="math"?0:1;if(119808<=i&&i<120484){var l=Math.floor((i-119808)/26);return[Rn[l][2],Rn[l][o]]}else if(120782<=i&&i<=120831){var s=Math.floor((i-120782)/10);return[yl[s][2],yl[s][o]]}else{if(i===120485||i===120486)return[Rn[0][2],Rn[0][o]];if(120486<i&&i<120782)return["",""];throw new U("Unsupported character: "+t)}},ma=function(t,r,n){return Ie[n][t]&&Ie[n][t].replace&&(t=Ie[n][t].replace),{value:t,metrics:y0(t,r,n)}},bt=function(t,r,n,a,i){var o=ma(t,r,n),l=o.metrics;t=o.value;var s;if(l){var u=l.italic;(n==="text"||a&&a.font==="mathit")&&(u=0),s=new pt(t,l.height,l.depth,u,l.skew,l.width,i)}else typeof console<"u"&&console.warn("No character metrics "+("for '"+t+"' in style '"+r+"' and mode '"+n+"'")),s=new pt(t,0,0,0,0,0,i);if(a){s.maxFontSize=a.sizeMultiplier,a.style.isTight()&&s.classes.push("mtight");var c=a.getColor();c&&(s.style.color=c)}return s},bg=function(t,r,n,a){return a===void 0&&(a=[]),n.font==="boldsymbol"&&ma(t,"Main-Bold",r).metrics?bt(t,"Main-Bold",r,n,a.concat(["mathbf"])):t==="\\"||Ie[r][t].font==="main"?bt(t,"Main-Regular",r,n,a):bt(t,"AMS-Regular",r,n,a.concat(["amsrm"]))},yg=function(t,r,n,a,i){return i!=="textord"&&ma(t,"Math-BoldItalic",r).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},xg=function(t,r,n){var a=t.mode,i=t.text,o=["mord"],l=a==="math"||a==="text"&&r.font,s=l?r.font:r.fontFamily,u="",c="";if(i.charCodeAt(0)===55349&&([u,c]=vg(i,a)),u.length>0)return bt(i,u,a,r,o.concat(c));if(s){var h,m;if(s==="boldsymbol"){var p=yg(i,a,r,o,n);h=p.fontName,m=[p.fontClass]}else l?(h=Ic[s].fontName,m=[s]):(h=Pn(s,r.fontWeight,r.fontShape),m=[s,r.fontWeight,r.fontShape]);if(ma(i,h,a).metrics)return bt(i,h,a,r,o.concat(m));if(Nc.hasOwnProperty(i)&&h.slice(0,10)==="Typewriter"){for(var y=[],w=0;w<i.length;w++)y.push(bt(i[w],h,a,r,o.concat(m)));return Dc(y)}}if(n==="mathord")return bt(i,"Math-Italic",a,r,o.concat(["mathnormal"]));if(n==="textord"){var C=Ie[a][i]&&Ie[a][i].font;if(C==="ams"){var k=Pn("amsrm",r.fontWeight,r.fontShape);return bt(i,k,a,r,o.concat("amsrm",r.fontWeight,r.fontShape))}else if(C==="main"||!C){var A=Pn("textrm",r.fontWeight,r.fontShape);return bt(i,A,a,r,o.concat(r.fontWeight,r.fontShape))}else{var E=Pn(C,r.fontWeight,r.fontShape);return bt(i,E,a,r,o.concat(E,r.fontWeight,r.fontShape))}}else throw new Error("unexpected type: "+n+" in makeOrd")},wg=(e,t)=>{if(Jt(e.classes)!==Jt(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize)return!1;if(e.classes.length===1){var r=e.classes[0];if(r==="mbin"||r==="mord")return!1}for(var n in e.style)if(e.style.hasOwnProperty(n)&&e.style[n]!==t.style[n])return!1;for(var a in t.style)if(t.style.hasOwnProperty(a)&&e.style[a]!==t.style[a])return!1;return!0},kg=e=>{for(var t=0;t<e.length-1;t++){var r=e[t],n=e[t+1];r instanceof pt&&n instanceof pt&&wg(r,n)&&(r.text+=n.text,r.height=Math.max(r.height,n.height),r.depth=Math.max(r.depth,n.depth),r.italic=n.italic,e.splice(t+1,1),t--)}return e},w0=function(t){for(var r=0,n=0,a=0,i=0;i<t.children.length;i++){var o=t.children[i];o.height>r&&(r=o.height),o.depth>n&&(n=o.depth),o.maxFontSize>a&&(a=o.maxFontSize)}t.height=r,t.depth=n,t.maxFontSize=a},nt=function(t,r,n,a){var i=new gn(t,r,n,a);return w0(i),i},Ec=(e,t,r,n)=>new gn(e,t,r,n),Sg=function(t,r,n){var a=nt([t],[],r);return a.height=Math.max(n||r.fontMetrics().defaultRuleThickness,r.minRuleThickness),a.style.borderBottomWidth=Z(a.height),a.maxFontSize=1,a},Cg=function(t,r,n,a){var i=new x0(t,r,n,a);return w0(i),i},Dc=function(t){var r=new pn(t);return w0(r),r},Tg=function(t,r){return t instanceof pn?nt([],[t],r):t},Mg=function(t){if(t.positionType==="individualShift"){for(var r=t.children,n=[r[0]],a=-r[0].shift-r[0].elem.depth,i=a,o=1;o<r.length;o++){var l=-r[o].shift-i-r[o].elem.depth,s=l-(r[o-1].elem.height+r[o-1].elem.depth);i=i+l,n.push({type:"kern",size:s}),n.push(r[o])}return{children:n,depth:a}}var u;if(t.positionType==="top"){for(var c=t.positionData,h=0;h<t.children.length;h++){var m=t.children[h];c-=m.type==="kern"?m.size:m.elem.height+m.elem.depth}u=c}else if(t.positionType==="bottom")u=-t.positionData;else{var p=t.children[0];if(p.type!=="elem")throw new Error('First child must have type "elem".');if(t.positionType==="shift")u=-p.elem.depth-t.positionData;else if(t.positionType==="firstBaseline")u=-p.elem.depth;else throw new Error("Invalid positionType "+t.positionType+".")}return{children:t.children,depth:u}},Ag=function(t,r){for(var{children:n,depth:a}=Mg(t),i=0,o=0;o<n.length;o++){var l=n[o];if(l.type==="elem"){var s=l.elem;i=Math.max(i,s.maxFontSize,s.height)}}i+=2;var u=nt(["pstrut"],[]);u.style.height=Z(i);for(var c=[],h=a,m=a,p=a,y=0;y<n.length;y++){var w=n[y];if(w.type==="kern")p+=w.size;else{var C=w.elem,k=w.wrapperClasses||[],A=w.wrapperStyle||{},E=nt(k,[u,C],void 0,A);E.style.top=Z(-i-p-C.depth),w.marginLeft&&(E.style.marginLeft=w.marginLeft),w.marginRight&&(E.style.marginRight=w.marginRight),c.push(E),p+=C.height+C.depth}h=Math.min(h,p),m=Math.max(m,p)}var B=nt(["vlist"],c);B.style.height=Z(m);var F;if(h<0){var D=nt([],[]),_=nt(["vlist"],[D]);_.style.height=Z(-h);var O=nt(["vlist-s"],[new pt("​")]);F=[nt(["vlist-r"],[B,O]),nt(["vlist-r"],[_])]}else F=[nt(["vlist-r"],[B])];var H=nt(["vlist-t"],F);return F.length===2&&H.classes.push("vlist-t2"),H.height=m,H.depth=-h,H},zg=(e,t)=>{var r=nt(["mspace"],[],t),n=Fe(e,t);return r.style.marginRight=Z(n),r},Pn=function(t,r,n){var a="";switch(t){case"amsrm":a="AMS";break;case"textrm":a="Main";break;case"textsf":a="SansSerif";break;case"texttt":a="Typewriter";break;default:a=t}var i;return r==="textbf"&&n==="textit"?i="BoldItalic":r==="textbf"?i="Bold":r==="textit"?i="Italic":i="Regular",a+"-"+i},Ic={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathsfit:{variant:"sans-serif-italic",fontName:"SansSerif-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},Lc={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},Ng=function(t,r){var[n,a,i]=Lc[t],o=new er(n),l=new qt([o],{width:Z(a),height:Z(i),style:"width:"+Z(a),viewBox:"0 0 "+1e3*a+" "+1e3*i,preserveAspectRatio:"xMinYMin"}),s=Ec(["overlay"],[l],r);return s.height=i,s.style.height=Z(i),s.style.width=Z(a),s},I={fontMap:Ic,makeSymbol:bt,mathsym:bg,makeSpan:nt,makeSvgSpan:Ec,makeLineSpan:Sg,makeAnchor:Cg,makeFragment:Dc,wrapFragment:Tg,makeVList:Ag,makeOrd:xg,makeGlue:zg,staticSvg:Ng,svgData:Lc,tryCombineChars:kg},Be={number:3,unit:"mu"},ur={number:4,unit:"mu"},Pt={number:5,unit:"mu"},Eg={mord:{mop:Be,mbin:ur,mrel:Pt,minner:Be},mop:{mord:Be,mop:Be,mrel:Pt,minner:Be},mbin:{mord:ur,mop:ur,mopen:ur,minner:ur},mrel:{mord:Pt,mop:Pt,mopen:Pt,minner:Pt},mopen:{},mclose:{mop:Be,mbin:ur,mrel:Pt,minner:Be},mpunct:{mord:Be,mop:Be,mrel:Pt,mopen:Be,mclose:Be,mpunct:Be,minner:Be},minner:{mord:Be,mop:Be,mbin:ur,mrel:Pt,mopen:Be,mpunct:Be,minner:Be}},Dg={mord:{mop:Be},mop:{mord:Be,mop:Be},mbin:{},mrel:{},mopen:{},mclose:{mop:Be},mpunct:{},minner:{mop:Be}},Rc={},Jn={},ea={};function re(e){for(var{type:t,names:r,props:n,handler:a,htmlBuilder:i,mathmlBuilder:o}=e,l={type:t,numArgs:n.numArgs,argTypes:n.argTypes,allowedInArgument:!!n.allowedInArgument,allowedInText:!!n.allowedInText,allowedInMath:n.allowedInMath===void 0?!0:n.allowedInMath,numOptionalArgs:n.numOptionalArgs||0,infix:!!n.infix,primitive:!!n.primitive,handler:a},s=0;s<r.length;++s)Rc[r[s]]=l;t&&(i&&(Jn[t]=i),o&&(ea[t]=o))}function vr(e){var{type:t,htmlBuilder:r,mathmlBuilder:n}=e;re({type:t,names:[],props:{numArgs:0},handler(){throw new Error("Should never be called.")},htmlBuilder:r,mathmlBuilder:n})}var ta=function(t){return t.type==="ordgroup"&&t.body.length===1?t.body[0]:t},je=function(t){return t.type==="ordgroup"?t.body:[t]},Ht=I.makeSpan,Ig=["leftmost","mbin","mopen","mrel","mop","mpunct"],Lg=["rightmost","mrel","mclose","mpunct"],Rg={display:ue.DISPLAY,text:ue.TEXT,script:ue.SCRIPT,scriptscript:ue.SCRIPTSCRIPT},Pg={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},Ge=function(t,r,n,a){a===void 0&&(a=[null,null]);for(var i=[],o=0;o<t.length;o++){var l=Se(t[o],r);if(l instanceof pn){var s=l.children;i.push(...s)}else i.push(l)}if(I.tryCombineChars(i),!n)return i;var u=r;if(t.length===1){var c=t[0];c.type==="sizing"?u=r.havingSize(c.size):c.type==="styling"&&(u=r.havingStyle(Rg[c.style]))}var h=Ht([a[0]||"leftmost"],[],r),m=Ht([a[1]||"rightmost"],[],r),p=n==="root";return xl(i,(y,w)=>{var C=w.classes[0],k=y.classes[0];C==="mbin"&&Lg.includes(k)?w.classes[0]="mord":k==="mbin"&&Ig.includes(C)&&(y.classes[0]="mord")},{node:h},m,p),xl(i,(y,w)=>{var C=Li(w),k=Li(y),A=C&&k?y.hasClass("mtight")?Dg[C][k]:Eg[C][k]:null;if(A)return I.makeGlue(A,u)},{node:h},m,p),i},xl=function e(t,r,n,a,i){a&&t.push(a);for(var o=0;o<t.length;o++){var l=t[o],s=Pc(l);if(s){e(s.children,r,n,null,i);continue}var u=!l.hasClass("mspace");if(u){var c=r(l,n.node);c&&(n.insertAfter?n.insertAfter(c):(t.unshift(c),o++))}u?n.node=l:i&&l.hasClass("newline")&&(n.node=Ht(["leftmost"])),n.insertAfter=(h=>m=>{t.splice(h+1,0,m),o++})(o)}a&&t.pop()},Pc=function(t){return t instanceof pn||t instanceof x0||t instanceof gn&&t.hasClass("enclosing")?t:null},Bg=function e(t,r){var n=Pc(t);if(n){var a=n.children;if(a.length){if(r==="right")return e(a[a.length-1],"right");if(r==="left")return e(a[0],"left")}}return t},Li=function(t,r){return t?(r&&(t=Bg(t,r)),Pg[t.classes[0]]||null):null},cn=function(t,r){var n=["nulldelimiter"].concat(t.baseSizingClasses());return Ht(r.concat(n))},Se=function(t,r,n){if(!t)return Ht();if(Jn[t.type]){var a=Jn[t.type](t,r);if(n&&r.size!==n.size){a=Ht(r.sizingClasses(n),[a],r);var i=r.sizeMultiplier/n.sizeMultiplier;a.height*=i,a.depth*=i}return a}else throw new U("Got group of unknown type: '"+t.type+"'")};function Bn(e,t){var r=Ht(["base"],e,t),n=Ht(["strut"]);return n.style.height=Z(r.height+r.depth),r.depth&&(n.style.verticalAlign=Z(-r.depth)),r.children.unshift(n),r}function Ri(e,t){var r=null;e.length===1&&e[0].type==="tag"&&(r=e[0].tag,e=e[0].body);var n=Ge(e,t,"root"),a;n.length===2&&n[1].hasClass("tag")&&(a=n.pop());for(var i=[],o=[],l=0;l<n.length;l++)if(o.push(n[l]),n[l].hasClass("mbin")||n[l].hasClass("mrel")||n[l].hasClass("allowbreak")){for(var s=!1;l<n.length-1&&n[l+1].hasClass("mspace")&&!n[l+1].hasClass("newline");)l++,o.push(n[l]),n[l].hasClass("nobreak")&&(s=!0);s||(i.push(Bn(o,t)),o=[])}else n[l].hasClass("newline")&&(o.pop(),o.length>0&&(i.push(Bn(o,t)),o=[]),i.push(n[l]));o.length>0&&i.push(Bn(o,t));var u;r?(u=Bn(Ge(r,t,!0)),u.classes=["tag"],i.push(u)):a&&i.push(a);var c=Ht(["katex-html"],i);if(c.setAttribute("aria-hidden","true"),u){var h=u.children[0];h.style.height=Z(c.height+c.depth),c.depth&&(h.style.verticalAlign=Z(-c.depth))}return c}function Bc(e){return new pn(e)}class ut{constructor(t,r,n){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=t,this.attributes={},this.children=r||[],this.classes=n||[]}setAttribute(t,r){this.attributes[t]=r}getAttribute(t){return this.attributes[t]}toNode(){var t=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&t.setAttribute(r,this.attributes[r]);this.classes.length>0&&(t.className=Jt(this.classes));for(var n=0;n<this.children.length;n++)if(this.children[n]instanceof Tt&&this.children[n+1]instanceof Tt){for(var a=this.children[n].toText()+this.children[++n].toText();this.children[n+1]instanceof Tt;)a+=this.children[++n].toText();t.appendChild(new Tt(a).toNode())}else t.appendChild(this.children[n].toNode());return t}toMarkup(){var t="<"+this.type;for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&(t+=" "+r+'="',t+=Ce.escape(this.attributes[r]),t+='"');this.classes.length>0&&(t+=' class ="'+Ce.escape(Jt(this.classes))+'"'),t+=">";for(var n=0;n<this.children.length;n++)t+=this.children[n].toMarkup();return t+="</"+this.type+">",t}toText(){return this.children.map(t=>t.toText()).join("")}}class Tt{constructor(t){this.text=void 0,this.text=t}toNode(){return document.createTextNode(this.text)}toMarkup(){return Ce.escape(this.toText())}toText(){return this.text}}class Fg{constructor(t){this.width=void 0,this.character=void 0,this.width=t,t>=.05555&&t<=.05556?this.character=" ":t>=.1666&&t<=.1667?this.character=" ":t>=.2222&&t<=.2223?this.character=" ":t>=.2777&&t<=.2778?this.character="  ":t>=-.05556&&t<=-.05555?this.character=" ⁣":t>=-.1667&&t<=-.1666?this.character=" ⁣":t>=-.2223&&t<=-.2222?this.character=" ⁣":t>=-.2778&&t<=-.2777?this.character=" ⁣":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var t=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return t.setAttribute("width",Z(this.width)),t}toMarkup(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+Z(this.width)+'"/>'}toText(){return this.character?this.character:" "}}var $={MathNode:ut,TextNode:Tt,SpaceNode:Fg,newDocumentFragment:Bc},gt=function(t,r,n){return Ie[r][t]&&Ie[r][t].replace&&t.charCodeAt(0)!==55349&&!(Nc.hasOwnProperty(t)&&n&&(n.fontFamily&&n.fontFamily.slice(4,6)==="tt"||n.font&&n.font.slice(4,6)==="tt"))&&(t=Ie[r][t].replace),new $.TextNode(t)},k0=function(t){return t.length===1?t[0]:new $.MathNode("mrow",t)},S0=function(t,r){if(r.fontFamily==="texttt")return"monospace";if(r.fontFamily==="textsf")return r.fontShape==="textit"&&r.fontWeight==="textbf"?"sans-serif-bold-italic":r.fontShape==="textit"?"sans-serif-italic":r.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(r.fontShape==="textit"&&r.fontWeight==="textbf")return"bold-italic";if(r.fontShape==="textit")return"italic";if(r.fontWeight==="textbf")return"bold";var n=r.font;if(!n||n==="mathnormal")return null;var a=t.mode;if(n==="mathit")return"italic";if(n==="boldsymbol")return t.type==="textord"?"bold":"bold-italic";if(n==="mathbf")return"bold";if(n==="mathbb")return"double-struck";if(n==="mathsfit")return"sans-serif-italic";if(n==="mathfrak")return"fraktur";if(n==="mathscr"||n==="mathcal")return"script";if(n==="mathsf")return"sans-serif";if(n==="mathtt")return"monospace";var i=t.text;if(["\\imath","\\jmath"].includes(i))return null;Ie[a][i]&&Ie[a][i].replace&&(i=Ie[a][i].replace);var o=I.fontMap[n].fontName;return y0(i,o,a)?I.fontMap[n].variant:null};function ei(e){if(!e)return!1;if(e.type==="mi"&&e.children.length===1){var t=e.children[0];return t instanceof Tt&&t.text==="."}else if(e.type==="mo"&&e.children.length===1&&e.getAttribute("separator")==="true"&&e.getAttribute("lspace")==="0em"&&e.getAttribute("rspace")==="0em"){var r=e.children[0];return r instanceof Tt&&r.text===","}else return!1}var ot=function(t,r,n){if(t.length===1){var a=Ne(t[0],r);return n&&a instanceof ut&&a.type==="mo"&&(a.setAttribute("lspace","0em"),a.setAttribute("rspace","0em")),[a]}for(var i=[],o,l=0;l<t.length;l++){var s=Ne(t[l],r);if(s instanceof ut&&o instanceof ut){if(s.type==="mtext"&&o.type==="mtext"&&s.getAttribute("mathvariant")===o.getAttribute("mathvariant")){o.children.push(...s.children);continue}else if(s.type==="mn"&&o.type==="mn"){o.children.push(...s.children);continue}else if(ei(s)&&o.type==="mn"){o.children.push(...s.children);continue}else if(s.type==="mn"&&ei(o))s.children=[...o.children,...s.children],i.pop();else if((s.type==="msup"||s.type==="msub")&&s.children.length>=1&&(o.type==="mn"||ei(o))){var u=s.children[0];u instanceof ut&&u.type==="mn"&&(u.children=[...o.children,...u.children],i.pop())}else if(o.type==="mi"&&o.children.length===1){var c=o.children[0];if(c instanceof Tt&&c.text==="̸"&&(s.type==="mo"||s.type==="mi"||s.type==="mn")){var h=s.children[0];h instanceof Tt&&h.text.length>0&&(h.text=h.text.slice(0,1)+"̸"+h.text.slice(1),i.pop())}}}i.push(s),o=s}return i},tr=function(t,r,n){return k0(ot(t,r,n))},Ne=function(t,r){if(!t)return new $.MathNode("mrow");if(ea[t.type]){var n=ea[t.type](t,r);return n}else throw new U("Got group of unknown type: '"+t.type+"'")};function wl(e,t,r,n,a){var i=ot(e,r),o;i.length===1&&i[0]instanceof ut&&["mrow","mtable"].includes(i[0].type)?o=i[0]:o=new $.MathNode("mrow",i);var l=new $.MathNode("annotation",[new $.TextNode(t)]);l.setAttribute("encoding","application/x-tex");var s=new $.MathNode("semantics",[o,l]),u=new $.MathNode("math",[s]);u.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),n&&u.setAttribute("display","block");var c=a?"katex":"katex-mathml";return I.makeSpan([c],[u])}var Fc=function(t){return new Ft({style:t.displayMode?ue.DISPLAY:ue.TEXT,maxSize:t.maxSize,minRuleThickness:t.minRuleThickness})},Oc=function(t,r){if(r.displayMode){var n=["katex-display"];r.leqno&&n.push("leqno"),r.fleqn&&n.push("fleqn"),t=I.makeSpan(n,[t])}return t},Og=function(t,r,n){var a=Fc(n),i;if(n.output==="mathml")return wl(t,r,a,n.displayMode,!0);if(n.output==="html"){var o=Ri(t,a);i=I.makeSpan(["katex"],[o])}else{var l=wl(t,r,a,n.displayMode,!1),s=Ri(t,a);i=I.makeSpan(["katex"],[l,s])}return Oc(i,n)},jg=function(t,r,n){var a=Fc(n),i=Ri(t,a),o=I.makeSpan(["katex"],[i]);return Oc(o,n)},_g={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋","\\cdrightarrow":"→","\\cdleftarrow":"←","\\cdlongequal":"="},qg=function(t){var r=new $.MathNode("mo",[new $.TextNode(_g[t.replace(/^\\/,"")])]);return r.setAttribute("stretchy","true"),r},Hg={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},Vg=function(t){return t.type==="ordgroup"?t.body.length:1},$g=function(t,r){function n(){var l=4e5,s=t.label.slice(1);if(["widehat","widecheck","widetilde","utilde"].includes(s)){var u=t,c=Vg(u.base),h,m,p;if(c>5)s==="widehat"||s==="widecheck"?(h=420,l=2364,p=.42,m=s+"4"):(h=312,l=2340,p=.34,m="tilde4");else{var y=[1,1,2,2,3,3][c];s==="widehat"||s==="widecheck"?(l=[0,1062,2364,2364,2364][y],h=[0,239,300,360,420][y],p=[0,.24,.3,.3,.36,.42][y],m=s+y):(l=[0,600,1033,2339,2340][y],h=[0,260,286,306,312][y],p=[0,.26,.286,.3,.306,.34][y],m="tilde"+y)}var w=new er(m),C=new qt([w],{width:"100%",height:Z(p),viewBox:"0 0 "+l+" "+h,preserveAspectRatio:"none"});return{span:I.makeSvgSpan([],[C],r),minWidth:0,height:p}}else{var k=[],A=Hg[s],[E,B,F]=A,D=F/1e3,_=E.length,O,H;if(_===1){var L=A[3];O=["hide-tail"],H=[L]}else if(_===2)O=["halfarrow-left","halfarrow-right"],H=["xMinYMin","xMaxYMin"];else if(_===3)O=["brace-left","brace-center","brace-right"],H=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
357
+ `+_+" children.");for(var K=0;K<_;K++){var G=new er(E[K]),ce=new qt([G],{width:"400em",height:Z(D),viewBox:"0 0 "+l+" "+F,preserveAspectRatio:H[K]+" slice"}),J=I.makeSvgSpan([O[K]],[ce],r);if(_===1)return{span:J,minWidth:B,height:D};J.style.height=Z(D),k.push(J)}return{span:I.makeSpan(["stretchy"],k,r),minWidth:B,height:D}}}var{span:a,minWidth:i,height:o}=n();return a.height=o,a.style.height=Z(o),i>0&&(a.style.minWidth=Z(i)),a},Ug=function(t,r,n,a,i){var o,l=t.height+t.depth+n+a;if(/fbox|color|angl/.test(r)){if(o=I.makeSpan(["stretchy",r],[],i),r==="fbox"){var s=i.color&&i.getColor();s&&(o.style.borderColor=s)}}else{var u=[];/^[bx]cancel$/.test(r)&&u.push(new Di({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(r)&&u.push(new Di({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var c=new qt(u,{width:"100%",height:Z(l)});o=I.makeSvgSpan([],[c],i)}return o.height=l,o.style.height=Z(l),o},Vt={encloseSpan:Ug,mathMLnode:qg,svgSpan:$g};function fe(e,t){if(!e||e.type!==t)throw new Error("Expected node of type "+t+", but got "+(e?"node of type "+e.type:String(e)));return e}function C0(e){var t=fa(e);if(!t)throw new Error("Expected node of symbol group type, but got "+(e?"node of type "+e.type:String(e)));return t}function fa(e){return e&&(e.type==="atom"||gg.hasOwnProperty(e.type))?e:null}var T0=(e,t)=>{var r,n,a;e&&e.type==="supsub"?(n=fe(e.base,"accent"),r=n.base,e.base=r,a=fg(Se(e,t)),e.base=n):(n=fe(e,"accent"),r=n.base);var i=Se(r,t.havingCrampedStyle()),o=n.isShifty&&Ce.isCharacterBox(r),l=0;if(o){var s=Ce.getBaseElem(r),u=Se(s,t.havingCrampedStyle());l=fl(u).skew}var c=n.label==="\\c",h=c?i.height+i.depth:Math.min(i.height,t.fontMetrics().xHeight),m;if(n.isStretchy)m=Vt.svgSpan(n,t),m=I.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"elem",elem:m,wrapperClasses:["svg-align"],wrapperStyle:l>0?{width:"calc(100% - "+Z(2*l)+")",marginLeft:Z(2*l)}:void 0}]},t);else{var p,y;n.label==="\\vec"?(p=I.staticSvg("vec",t),y=I.svgData.vec[1]):(p=I.makeOrd({mode:n.mode,text:n.label},t,"textord"),p=fl(p),p.italic=0,y=p.width,c&&(h+=p.depth)),m=I.makeSpan(["accent-body"],[p]);var w=n.label==="\\textcircled";w&&(m.classes.push("accent-full"),h=i.height);var C=l;w||(C-=y/2),m.style.left=Z(C),n.label==="\\textcircled"&&(m.style.top=".2em"),m=I.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"kern",size:-h},{type:"elem",elem:m}]},t)}var k=I.makeSpan(["mord","accent"],[m],t);return a?(a.children[0]=k,a.height=Math.max(k.height,a.height),a.classes[0]="mord",a):k},jc=(e,t)=>{var r=e.isStretchy?Vt.mathMLnode(e.label):new $.MathNode("mo",[gt(e.label,e.mode)]),n=new $.MathNode("mover",[Ne(e.base,t),r]);return n.setAttribute("accent","true"),n},Gg=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(e=>"\\"+e).join("|"));re({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(e,t)=>{var r=ta(t[0]),n=!Gg.test(e.funcName),a=!n||e.funcName==="\\widehat"||e.funcName==="\\widetilde"||e.funcName==="\\widecheck";return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:n,isShifty:a,base:r}},htmlBuilder:T0,mathmlBuilder:jc});re({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(e,t)=>{var r=t[0],n=e.parser.mode;return n==="math"&&(e.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+e.funcName+" works only in text mode"),n="text"),{type:"accent",mode:n,label:e.funcName,isStretchy:!1,isShifty:!0,base:r}},htmlBuilder:T0,mathmlBuilder:jc});re({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(e,t)=>{var{parser:r,funcName:n}=e,a=t[0];return{type:"accentUnder",mode:r.mode,label:n,base:a}},htmlBuilder:(e,t)=>{var r=Se(e.base,t),n=Vt.svgSpan(e,t),a=e.label==="\\utilde"?.12:0,i=I.makeVList({positionType:"top",positionData:r.height,children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:a},{type:"elem",elem:r}]},t);return I.makeSpan(["mord","accentunder"],[i],t)},mathmlBuilder:(e,t)=>{var r=Vt.mathMLnode(e.label),n=new $.MathNode("munder",[Ne(e.base,t),r]);return n.setAttribute("accentunder","true"),n}});var Fn=e=>{var t=new $.MathNode("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};re({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,r){var{parser:n,funcName:a}=e;return{type:"xArrow",mode:n.mode,label:a,body:t[0],below:r[0]}},htmlBuilder(e,t){var r=t.style,n=t.havingStyle(r.sup()),a=I.wrapFragment(Se(e.body,n,t),t),i=e.label.slice(0,2)==="\\x"?"x":"cd";a.classes.push(i+"-arrow-pad");var o;e.below&&(n=t.havingStyle(r.sub()),o=I.wrapFragment(Se(e.below,n,t),t),o.classes.push(i+"-arrow-pad"));var l=Vt.svgSpan(e,t),s=-t.fontMetrics().axisHeight+.5*l.height,u=-t.fontMetrics().axisHeight-.5*l.height-.111;(a.depth>.25||e.label==="\\xleftequilibrium")&&(u-=a.depth);var c;if(o){var h=-t.fontMetrics().axisHeight+o.height+.5*l.height+.111;c=I.makeVList({positionType:"individualShift",children:[{type:"elem",elem:a,shift:u},{type:"elem",elem:l,shift:s},{type:"elem",elem:o,shift:h}]},t)}else c=I.makeVList({positionType:"individualShift",children:[{type:"elem",elem:a,shift:u},{type:"elem",elem:l,shift:s}]},t);return c.children[0].children[0].children[1].classes.push("svg-align"),I.makeSpan(["mrel","x-arrow"],[c],t)},mathmlBuilder(e,t){var r=Vt.mathMLnode(e.label);r.setAttribute("minsize",e.label.charAt(0)==="x"?"1.75em":"3.0em");var n;if(e.body){var a=Fn(Ne(e.body,t));if(e.below){var i=Fn(Ne(e.below,t));n=new $.MathNode("munderover",[r,i,a])}else n=new $.MathNode("mover",[r,a])}else if(e.below){var o=Fn(Ne(e.below,t));n=new $.MathNode("munder",[r,o])}else n=Fn(),n=new $.MathNode("mover",[r,n]);return n}});var Wg=I.makeSpan;function _c(e,t){var r=Ge(e.body,t,!0);return Wg([e.mclass],r,t)}function qc(e,t){var r,n=ot(e.body,t);return e.mclass==="minner"?r=new $.MathNode("mpadded",n):e.mclass==="mord"?e.isCharacterBox?(r=n[0],r.type="mi"):r=new $.MathNode("mi",n):(e.isCharacterBox?(r=n[0],r.type="mo"):r=new $.MathNode("mo",n),e.mclass==="mbin"?(r.attributes.lspace="0.22em",r.attributes.rspace="0.22em"):e.mclass==="mpunct"?(r.attributes.lspace="0em",r.attributes.rspace="0.17em"):e.mclass==="mopen"||e.mclass==="mclose"?(r.attributes.lspace="0em",r.attributes.rspace="0em"):e.mclass==="minner"&&(r.attributes.lspace="0.0556em",r.attributes.width="+0.1111em")),r}re({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(e,t){var{parser:r,funcName:n}=e,a=t[0];return{type:"mclass",mode:r.mode,mclass:"m"+n.slice(5),body:je(a),isCharacterBox:Ce.isCharacterBox(a)}},htmlBuilder:_c,mathmlBuilder:qc});var pa=e=>{var t=e.type==="ordgroup"&&e.body.length?e.body[0]:e;return t.type==="atom"&&(t.family==="bin"||t.family==="rel")?"m"+t.family:"mord"};re({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(e,t){var{parser:r}=e;return{type:"mclass",mode:r.mode,mclass:pa(t[0]),body:je(t[1]),isCharacterBox:Ce.isCharacterBox(t[1])}}});re({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(e,t){var{parser:r,funcName:n}=e,a=t[1],i=t[0],o;n!=="\\stackrel"?o=pa(a):o="mrel";var l={type:"op",mode:a.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:n!=="\\stackrel",body:je(a)},s={type:"supsub",mode:i.mode,base:l,sup:n==="\\underset"?null:i,sub:n==="\\underset"?i:null};return{type:"mclass",mode:r.mode,mclass:o,body:[s],isCharacterBox:Ce.isCharacterBox(s)}},htmlBuilder:_c,mathmlBuilder:qc});re({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"pmb",mode:r.mode,mclass:pa(t[0]),body:je(t[0])}},htmlBuilder(e,t){var r=Ge(e.body,t,!0),n=I.makeSpan([e.mclass],r,t);return n.style.textShadow="0.02em 0.01em 0.04px",n},mathmlBuilder(e,t){var r=ot(e.body,t),n=new $.MathNode("mstyle",r);return n.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),n}});var Xg={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},kl=()=>({type:"styling",body:[],mode:"math",style:"display"}),Sl=e=>e.type==="textord"&&e.text==="@",Yg=(e,t)=>(e.type==="mathord"||e.type==="atom")&&e.text===t;function Kg(e,t,r){var n=Xg[e];switch(n){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return r.callFunction(n,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":{var a=r.callFunction("\\\\cdleft",[t[0]],[]),i={type:"atom",text:n,mode:"math",family:"rel"},o=r.callFunction("\\Big",[i],[]),l=r.callFunction("\\\\cdright",[t[1]],[]),s={type:"ordgroup",mode:"math",body:[a,o,l]};return r.callFunction("\\\\cdparent",[s],[])}case"\\\\cdlongequal":return r.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var u={type:"textord",text:"\\Vert",mode:"math"};return r.callFunction("\\Big",[u],[])}default:return{type:"textord",text:" ",mode:"math"}}}function Zg(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set("\\cr","\\\\\\relax"),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,"\\\\")),e.gullet.endGroup(),e.gullet.beginGroup();var r=e.fetch().text;if(r==="&"||r==="\\\\")e.consume();else if(r==="\\end"){t[t.length-1].length===0&&t.pop();break}else throw new U("Expected \\\\ or \\cr or \\end",e.nextToken)}for(var n=[],a=[n],i=0;i<t.length;i++){for(var o=t[i],l=kl(),s=0;s<o.length;s++)if(!Sl(o[s]))l.body.push(o[s]);else{n.push(l),s+=1;var u=C0(o[s]).text,c=new Array(2);if(c[0]={type:"ordgroup",mode:"math",body:[]},c[1]={type:"ordgroup",mode:"math",body:[]},!("=|.".indexOf(u)>-1))if("<>AV".indexOf(u)>-1)for(var h=0;h<2;h++){for(var m=!0,p=s+1;p<o.length;p++){if(Yg(o[p],u)){m=!1,s=p;break}if(Sl(o[p]))throw new U("Missing a "+u+" character to complete a CD arrow.",o[p]);c[h].body.push(o[p])}if(m)throw new U("Missing a "+u+" character to complete a CD arrow.",o[s])}else throw new U('Expected one of "<>AV=|." after @',o[s]);var y=Kg(u,c,e),w={type:"styling",body:[y],mode:"math",style:"display"};n.push(w),l=kl()}i%2===0?n.push(l):n.shift(),n=[],a.push(n)}e.gullet.endGroup(),e.gullet.endGroup();var C=new Array(a[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:a,arraystretch:1,addJot:!0,rowGaps:[null],cols:C,colSeparationType:"CD",hLinesBeforeRow:new Array(a.length+1).fill([])}}re({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:n}=e;return{type:"cdlabel",mode:r.mode,side:n.slice(4),label:t[0]}},htmlBuilder(e,t){var r=t.havingStyle(t.style.sup()),n=I.wrapFragment(Se(e.label,r,t),t);return n.classes.push("cd-label-"+e.side),n.style.bottom=Z(.8-n.depth),n.height=0,n.depth=0,n},mathmlBuilder(e,t){var r=new $.MathNode("mrow",[Ne(e.label,t)]);return r=new $.MathNode("mpadded",[r]),r.setAttribute("width","0"),e.side==="left"&&r.setAttribute("lspace","-1width"),r.setAttribute("voffset","0.7em"),r=new $.MathNode("mstyle",[r]),r.setAttribute("displaystyle","false"),r.setAttribute("scriptlevel","1"),r}});re({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(e,t){var{parser:r}=e;return{type:"cdlabelparent",mode:r.mode,fragment:t[0]}},htmlBuilder(e,t){var r=I.wrapFragment(Se(e.fragment,t),t);return r.classes.push("cd-vert-arrow"),r},mathmlBuilder(e,t){return new $.MathNode("mrow",[Ne(e.fragment,t)])}});re({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:r}=e,n=fe(t[0],"ordgroup"),a=n.body,i="",o=0;o<a.length;o++){var l=fe(a[o],"textord");i+=l.text}var s=parseInt(i),u;if(isNaN(s))throw new U("\\@char has non-numeric argument "+i);if(s<0||s>=1114111)throw new U("\\@char with invalid code point "+i);return s<=65535?u=String.fromCharCode(s):(s-=65536,u=String.fromCharCode((s>>10)+55296,(s&1023)+56320)),{type:"textord",mode:r.mode,text:u}}});var Hc=(e,t)=>{var r=Ge(e.body,t.withColor(e.color),!1);return I.makeFragment(r)},Vc=(e,t)=>{var r=ot(e.body,t.withColor(e.color)),n=new $.MathNode("mstyle",r);return n.setAttribute("mathcolor",e.color),n};re({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(e,t){var{parser:r}=e,n=fe(t[0],"color-token").color,a=t[1];return{type:"color",mode:r.mode,color:n,body:je(a)}},htmlBuilder:Hc,mathmlBuilder:Vc});re({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(e,t){var{parser:r,breakOnTokenText:n}=e,a=fe(t[0],"color-token").color;r.gullet.macros.set("\\current@color",a);var i=r.parseExpression(!0,n);return{type:"color",mode:r.mode,color:a,body:i}},htmlBuilder:Hc,mathmlBuilder:Vc});re({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,r){var{parser:n}=e,a=n.gullet.future().text==="["?n.parseSizeGroup(!0):null,i=!n.settings.displayMode||!n.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:n.mode,newLine:i,size:a&&fe(a,"size").value}},htmlBuilder(e,t){var r=I.makeSpan(["mspace"],[],t);return e.newLine&&(r.classes.push("newline"),e.size&&(r.style.marginTop=Z(Fe(e.size,t)))),r},mathmlBuilder(e,t){var r=new $.MathNode("mspace");return e.newLine&&(r.setAttribute("linebreak","newline"),e.size&&r.setAttribute("height",Z(Fe(e.size,t)))),r}});var Pi={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},$c=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new U("Expected a control sequence",e);return t},Qg=e=>{var t=e.gullet.popToken();return t.text==="="&&(t=e.gullet.popToken(),t.text===" "&&(t=e.gullet.popToken())),t},Uc=(e,t,r,n)=>{var a=e.gullet.macros.get(r.text);a==null&&(r.noexpand=!0,a={tokens:[r],numArgs:0,unexpandable:!e.gullet.isExpandable(r.text)}),e.gullet.macros.set(t,a,n)};re({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t,funcName:r}=e;t.consumeSpaces();var n=t.fetch();if(Pi[n.text])return(r==="\\global"||r==="\\\\globallong")&&(n.text=Pi[n.text]),fe(t.parseFunction(),"internal");throw new U("Invalid token after macro prefix",n)}});re({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,n=t.gullet.popToken(),a=n.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(a))throw new U("Expected a control sequence",n);for(var i=0,o,l=[[]];t.gullet.future().text!=="{";)if(n=t.gullet.popToken(),n.text==="#"){if(t.gullet.future().text==="{"){o=t.gullet.future(),l[i].push("{");break}if(n=t.gullet.popToken(),!/^[1-9]$/.test(n.text))throw new U('Invalid argument number "'+n.text+'"');if(parseInt(n.text)!==i+1)throw new U('Argument number "'+n.text+'" out of order');i++,l.push([])}else{if(n.text==="EOF")throw new U("Expected a macro definition");l[i].push(n.text)}var{tokens:s}=t.gullet.consumeArg();return o&&s.unshift(o),(r==="\\edef"||r==="\\xdef")&&(s=t.gullet.expandTokens(s),s.reverse()),t.gullet.macros.set(a,{tokens:s,numArgs:i,delimiters:l},r===Pi[r]),{type:"internal",mode:t.mode}}});re({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,n=$c(t.gullet.popToken());t.gullet.consumeSpaces();var a=Qg(t);return Uc(t,n,a,r==="\\\\globallet"),{type:"internal",mode:t.mode}}});re({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,n=$c(t.gullet.popToken()),a=t.gullet.popToken(),i=t.gullet.popToken();return Uc(t,n,i,r==="\\\\globalfuture"),t.gullet.pushToken(i),t.gullet.pushToken(a),{type:"internal",mode:t.mode}}});var Qr=function(t,r,n){var a=Ie.math[t]&&Ie.math[t].replace,i=y0(a||t,r,n);if(!i)throw new Error("Unsupported symbol "+t+" and font size "+r+".");return i},M0=function(t,r,n,a){var i=n.havingBaseStyle(r),o=I.makeSpan(a.concat(i.sizingClasses(n)),[t],n),l=i.sizeMultiplier/n.sizeMultiplier;return o.height*=l,o.depth*=l,o.maxFontSize=i.sizeMultiplier,o},Gc=function(t,r,n){var a=r.havingBaseStyle(n),i=(1-r.sizeMultiplier/a.sizeMultiplier)*r.fontMetrics().axisHeight;t.classes.push("delimcenter"),t.style.top=Z(i),t.height-=i,t.depth+=i},Jg=function(t,r,n,a,i,o){var l=I.makeSymbol(t,"Main-Regular",i,a),s=M0(l,r,a,o);return n&&Gc(s,a,r),s},e9=function(t,r,n,a){return I.makeSymbol(t,"Size"+r+"-Regular",n,a)},Wc=function(t,r,n,a,i,o){var l=e9(t,r,i,a),s=M0(I.makeSpan(["delimsizing","size"+r],[l],a),ue.TEXT,a,o);return n&&Gc(s,a,ue.TEXT),s},ti=function(t,r,n){var a;r==="Size1-Regular"?a="delim-size1":a="delim-size4";var i=I.makeSpan(["delimsizinginner",a],[I.makeSpan([],[I.makeSymbol(t,r,n)])]);return{type:"elem",elem:i}},ri=function(t,r,n){var a=Ct["Size4-Regular"][t.charCodeAt(0)]?Ct["Size4-Regular"][t.charCodeAt(0)][4]:Ct["Size1-Regular"][t.charCodeAt(0)][4],i=new er("inner",ig(t,Math.round(1e3*r))),o=new qt([i],{width:Z(a),height:Z(r),style:"width:"+Z(a),viewBox:"0 0 "+1e3*a+" "+Math.round(1e3*r),preserveAspectRatio:"xMinYMin"}),l=I.makeSvgSpan([],[o],n);return l.height=r,l.style.height=Z(r),l.style.width=Z(a),{type:"elem",elem:l}},Bi=.008,On={type:"kern",size:-1*Bi},t9=["|","\\lvert","\\rvert","\\vert"],r9=["\\|","\\lVert","\\rVert","\\Vert"],Xc=function(t,r,n,a,i,o){var l,s,u,c,h="",m=0;l=u=c=t,s=null;var p="Size1-Regular";t==="\\uparrow"?u=c="⏐":t==="\\Uparrow"?u=c="‖":t==="\\downarrow"?l=u="⏐":t==="\\Downarrow"?l=u="‖":t==="\\updownarrow"?(l="\\uparrow",u="⏐",c="\\downarrow"):t==="\\Updownarrow"?(l="\\Uparrow",u="‖",c="\\Downarrow"):t9.includes(t)?(u="∣",h="vert",m=333):r9.includes(t)?(u="∥",h="doublevert",m=556):t==="["||t==="\\lbrack"?(l="⎡",u="⎢",c="⎣",p="Size4-Regular",h="lbrack",m=667):t==="]"||t==="\\rbrack"?(l="⎤",u="⎥",c="⎦",p="Size4-Regular",h="rbrack",m=667):t==="\\lfloor"||t==="⌊"?(u=l="⎢",c="⎣",p="Size4-Regular",h="lfloor",m=667):t==="\\lceil"||t==="⌈"?(l="⎡",u=c="⎢",p="Size4-Regular",h="lceil",m=667):t==="\\rfloor"||t==="⌋"?(u=l="⎥",c="⎦",p="Size4-Regular",h="rfloor",m=667):t==="\\rceil"||t==="⌉"?(l="⎤",u=c="⎥",p="Size4-Regular",h="rceil",m=667):t==="("||t==="\\lparen"?(l="⎛",u="⎜",c="⎝",p="Size4-Regular",h="lparen",m=875):t===")"||t==="\\rparen"?(l="⎞",u="⎟",c="⎠",p="Size4-Regular",h="rparen",m=875):t==="\\{"||t==="\\lbrace"?(l="⎧",s="⎨",c="⎩",u="⎪",p="Size4-Regular"):t==="\\}"||t==="\\rbrace"?(l="⎫",s="⎬",c="⎭",u="⎪",p="Size4-Regular"):t==="\\lgroup"||t==="⟮"?(l="⎧",c="⎩",u="⎪",p="Size4-Regular"):t==="\\rgroup"||t==="⟯"?(l="⎫",c="⎭",u="⎪",p="Size4-Regular"):t==="\\lmoustache"||t==="⎰"?(l="⎧",c="⎭",u="⎪",p="Size4-Regular"):(t==="\\rmoustache"||t==="⎱")&&(l="⎫",c="⎩",u="⎪",p="Size4-Regular");var y=Qr(l,p,i),w=y.height+y.depth,C=Qr(u,p,i),k=C.height+C.depth,A=Qr(c,p,i),E=A.height+A.depth,B=0,F=1;if(s!==null){var D=Qr(s,p,i);B=D.height+D.depth,F=2}var _=w+E+B,O=Math.max(0,Math.ceil((r-_)/(F*k))),H=_+O*F*k,L=a.fontMetrics().axisHeight;n&&(L*=a.sizeMultiplier);var K=H/2-L,G=[];if(h.length>0){var ce=H-w-E,J=Math.round(H*1e3),V=og(h,Math.round(ce*1e3)),le=new er(h,V),pe=(m/1e3).toFixed(3)+"em",Q=(J/1e3).toFixed(3)+"em",Ee=new qt([le],{width:pe,height:Q,viewBox:"0 0 "+m+" "+J}),M=I.makeSvgSpan([],[Ee],a);M.height=J/1e3,M.style.width=pe,M.style.height=Q,G.push({type:"elem",elem:M})}else{if(G.push(ti(c,p,i)),G.push(On),s===null){var Me=H-w-E+2*Bi;G.push(ri(u,Me,a))}else{var ke=(H-w-E-B)/2+2*Bi;G.push(ri(u,ke,a)),G.push(On),G.push(ti(s,p,i)),G.push(On),G.push(ri(u,ke,a))}G.push(On),G.push(ti(l,p,i))}var z=a.havingBaseStyle(ue.TEXT),xe=I.makeVList({positionType:"bottom",positionData:K,children:G},z);return M0(I.makeSpan(["delimsizing","mult"],[xe],z),ue.TEXT,a,o)},ni=80,ai=.08,ii=function(t,r,n,a,i){var o=ag(t,a,n),l=new er(t,o),s=new qt([l],{width:"400em",height:Z(r),viewBox:"0 0 400000 "+n,preserveAspectRatio:"xMinYMin slice"});return I.makeSvgSpan(["hide-tail"],[s],i)},n9=function(t,r){var n=r.havingBaseSizing(),a=Qc("\\surd",t*n.sizeMultiplier,Zc,n),i=n.sizeMultiplier,o=Math.max(0,r.minRuleThickness-r.fontMetrics().sqrtRuleThickness),l,s=0,u=0,c=0,h;return a.type==="small"?(c=1e3+1e3*o+ni,t<1?i=1:t<1.4&&(i=.7),s=(1+o+ai)/i,u=(1+o)/i,l=ii("sqrtMain",s,c,o,r),l.style.minWidth="0.853em",h=.833/i):a.type==="large"?(c=(1e3+ni)*rn[a.size],u=(rn[a.size]+o)/i,s=(rn[a.size]+o+ai)/i,l=ii("sqrtSize"+a.size,s,c,o,r),l.style.minWidth="1.02em",h=1/i):(s=t+o+ai,u=t+o,c=Math.floor(1e3*t+o)+ni,l=ii("sqrtTall",s,c,o,r),l.style.minWidth="0.742em",h=1.056),l.height=u,l.style.height=Z(s),{span:l,advanceWidth:h,ruleWidth:(r.fontMetrics().sqrtRuleThickness+o)*i}},Yc=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"],a9=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"],Kc=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],rn=[0,1.2,1.8,2.4,3],i9=function(t,r,n,a,i){if(t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle"),Yc.includes(t)||Kc.includes(t))return Wc(t,r,!1,n,a,i);if(a9.includes(t))return Xc(t,rn[r],!1,n,a,i);throw new U("Illegal delimiter: '"+t+"'")},o9=[{type:"small",style:ue.SCRIPTSCRIPT},{type:"small",style:ue.SCRIPT},{type:"small",style:ue.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],l9=[{type:"small",style:ue.SCRIPTSCRIPT},{type:"small",style:ue.SCRIPT},{type:"small",style:ue.TEXT},{type:"stack"}],Zc=[{type:"small",style:ue.SCRIPTSCRIPT},{type:"small",style:ue.SCRIPT},{type:"small",style:ue.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],s9=function(t){if(t.type==="small")return"Main-Regular";if(t.type==="large")return"Size"+t.size+"-Regular";if(t.type==="stack")return"Size4-Regular";throw new Error("Add support for delim type '"+t.type+"' here.")},Qc=function(t,r,n,a){for(var i=Math.min(2,3-a.style.size),o=i;o<n.length&&n[o].type!=="stack";o++){var l=Qr(t,s9(n[o]),"math"),s=l.height+l.depth;if(n[o].type==="small"){var u=a.havingBaseStyle(n[o].style);s*=u.sizeMultiplier}if(s>r)return n[o]}return n[n.length-1]},Jc=function(t,r,n,a,i,o){t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle");var l;Kc.includes(t)?l=o9:Yc.includes(t)?l=Zc:l=l9;var s=Qc(t,r,l,a);return s.type==="small"?Jg(t,s.style,n,a,i,o):s.type==="large"?Wc(t,s.size,n,a,i,o):Xc(t,r,n,a,i,o)},u9=function(t,r,n,a,i,o){var l=a.fontMetrics().axisHeight*a.sizeMultiplier,s=901,u=5/a.fontMetrics().ptPerEm,c=Math.max(r-l,n+l),h=Math.max(c/500*s,2*c-u);return Jc(t,h,!0,a,i,o)},_t={sqrtImage:n9,sizedDelim:i9,sizeToMaxHeight:rn,customSizedDelim:Jc,leftRightDelim:u9},Cl={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},c9=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function ga(e,t){var r=fa(e);if(r&&c9.includes(r.text))return r;throw r?new U("Invalid delimiter '"+r.text+"' after '"+t.funcName+"'",e):new U("Invalid delimiter type '"+e.type+"'",e)}re({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(e,t)=>{var r=ga(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:Cl[e.funcName].size,mclass:Cl[e.funcName].mclass,delim:r.text}},htmlBuilder:(e,t)=>e.delim==="."?I.makeSpan([e.mclass]):_t.sizedDelim(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];e.delim!=="."&&t.push(gt(e.delim,e.mode));var r=new $.MathNode("mo",t);e.mclass==="mopen"||e.mclass==="mclose"?r.setAttribute("fence","true"):r.setAttribute("fence","false"),r.setAttribute("stretchy","true");var n=Z(_t.sizeToMaxHeight[e.size]);return r.setAttribute("minsize",n),r.setAttribute("maxsize",n),r}});function Tl(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}re({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=e.parser.gullet.macros.get("\\current@color");if(r&&typeof r!="string")throw new U("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:ga(t[0],e).text,color:r}}});re({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=ga(t[0],e),n=e.parser;++n.leftrightDepth;var a=n.parseExpression(!1);--n.leftrightDepth,n.expect("\\right",!1);var i=fe(n.parseFunction(),"leftright-right");return{type:"leftright",mode:n.mode,body:a,left:r.text,right:i.delim,rightColor:i.color}},htmlBuilder:(e,t)=>{Tl(e);for(var r=Ge(e.body,t,!0,["mopen","mclose"]),n=0,a=0,i=!1,o=0;o<r.length;o++)r[o].isMiddle?i=!0:(n=Math.max(r[o].height,n),a=Math.max(r[o].depth,a));n*=t.sizeMultiplier,a*=t.sizeMultiplier;var l;if(e.left==="."?l=cn(t,["mopen"]):l=_t.leftRightDelim(e.left,n,a,t,e.mode,["mopen"]),r.unshift(l),i)for(var s=1;s<r.length;s++){var u=r[s],c=u.isMiddle;c&&(r[s]=_t.leftRightDelim(c.delim,n,a,c.options,e.mode,[]))}var h;if(e.right===".")h=cn(t,["mclose"]);else{var m=e.rightColor?t.withColor(e.rightColor):t;h=_t.leftRightDelim(e.right,n,a,m,e.mode,["mclose"])}return r.push(h),I.makeSpan(["minner"],r,t)},mathmlBuilder:(e,t)=>{Tl(e);var r=ot(e.body,t);if(e.left!=="."){var n=new $.MathNode("mo",[gt(e.left,e.mode)]);n.setAttribute("fence","true"),r.unshift(n)}if(e.right!=="."){var a=new $.MathNode("mo",[gt(e.right,e.mode)]);a.setAttribute("fence","true"),e.rightColor&&a.setAttribute("mathcolor",e.rightColor),r.push(a)}return k0(r)}});re({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=ga(t[0],e);if(!e.parser.leftrightDepth)throw new U("\\middle without preceding \\left",r);return{type:"middle",mode:e.parser.mode,delim:r.text}},htmlBuilder:(e,t)=>{var r;if(e.delim===".")r=cn(t,[]);else{r=_t.sizedDelim(e.delim,1,t,e.mode,[]);var n={delim:e.delim,options:t};r.isMiddle=n}return r},mathmlBuilder:(e,t)=>{var r=e.delim==="\\vert"||e.delim==="|"?gt("|","text"):gt(e.delim,e.mode),n=new $.MathNode("mo",[r]);return n.setAttribute("fence","true"),n.setAttribute("lspace","0.05em"),n.setAttribute("rspace","0.05em"),n}});var A0=(e,t)=>{var r=I.wrapFragment(Se(e.body,t),t),n=e.label.slice(1),a=t.sizeMultiplier,i,o=0,l=Ce.isCharacterBox(e.body);if(n==="sout")i=I.makeSpan(["stretchy","sout"]),i.height=t.fontMetrics().defaultRuleThickness/a,o=-.5*t.fontMetrics().xHeight;else if(n==="phase"){var s=Fe({number:.6,unit:"pt"},t),u=Fe({number:.35,unit:"ex"},t),c=t.havingBaseSizing();a=a/c.sizeMultiplier;var h=r.height+r.depth+s+u;r.style.paddingLeft=Z(h/2+s);var m=Math.floor(1e3*h*a),p=rg(m),y=new qt([new er("phase",p)],{width:"400em",height:Z(m/1e3),viewBox:"0 0 400000 "+m,preserveAspectRatio:"xMinYMin slice"});i=I.makeSvgSpan(["hide-tail"],[y],t),i.style.height=Z(h),o=r.depth+s+u}else{/cancel/.test(n)?l||r.classes.push("cancel-pad"):n==="angl"?r.classes.push("anglpad"):r.classes.push("boxpad");var w=0,C=0,k=0;/box/.test(n)?(k=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),w=t.fontMetrics().fboxsep+(n==="colorbox"?0:k),C=w):n==="angl"?(k=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness),w=4*k,C=Math.max(0,.25-r.depth)):(w=l?.2:0,C=w),i=Vt.encloseSpan(r,n,w,C,t),/fbox|boxed|fcolorbox/.test(n)?(i.style.borderStyle="solid",i.style.borderWidth=Z(k)):n==="angl"&&k!==.049&&(i.style.borderTopWidth=Z(k),i.style.borderRightWidth=Z(k)),o=r.depth+C,e.backgroundColor&&(i.style.backgroundColor=e.backgroundColor,e.borderColor&&(i.style.borderColor=e.borderColor))}var A;if(e.backgroundColor)A=I.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:o},{type:"elem",elem:r,shift:0}]},t);else{var E=/cancel|phase/.test(n)?["svg-align"]:[];A=I.makeVList({positionType:"individualShift",children:[{type:"elem",elem:r,shift:0},{type:"elem",elem:i,shift:o,wrapperClasses:E}]},t)}return/cancel/.test(n)&&(A.height=r.height,A.depth=r.depth),/cancel/.test(n)&&!l?I.makeSpan(["mord","cancel-lap"],[A],t):I.makeSpan(["mord"],[A],t)},z0=(e,t)=>{var r=0,n=new $.MathNode(e.label.indexOf("colorbox")>-1?"mpadded":"menclose",[Ne(e.body,t)]);switch(e.label){case"\\cancel":n.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":n.setAttribute("notation","downdiagonalstrike");break;case"\\phase":n.setAttribute("notation","phasorangle");break;case"\\sout":n.setAttribute("notation","horizontalstrike");break;case"\\fbox":n.setAttribute("notation","box");break;case"\\angl":n.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(r=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,n.setAttribute("width","+"+2*r+"pt"),n.setAttribute("height","+"+2*r+"pt"),n.setAttribute("lspace",r+"pt"),n.setAttribute("voffset",r+"pt"),e.label==="\\fcolorbox"){var a=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);n.setAttribute("style","border: "+a+"em solid "+String(e.borderColor))}break;case"\\xcancel":n.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return e.backgroundColor&&n.setAttribute("mathbackground",e.backgroundColor),n};re({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(e,t,r){var{parser:n,funcName:a}=e,i=fe(t[0],"color-token").color,o=t[1];return{type:"enclose",mode:n.mode,label:a,backgroundColor:i,body:o}},htmlBuilder:A0,mathmlBuilder:z0});re({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(e,t,r){var{parser:n,funcName:a}=e,i=fe(t[0],"color-token").color,o=fe(t[1],"color-token").color,l=t[2];return{type:"enclose",mode:n.mode,label:a,backgroundColor:o,borderColor:i,body:l}},htmlBuilder:A0,mathmlBuilder:z0});re({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"enclose",mode:r.mode,label:"\\fbox",body:t[0]}}});re({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:n}=e,a=t[0];return{type:"enclose",mode:r.mode,label:n,body:a}},htmlBuilder:A0,mathmlBuilder:z0});re({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(e,t){var{parser:r}=e;return{type:"enclose",mode:r.mode,label:"\\angl",body:t[0]}}});var e1={};function zt(e){for(var{type:t,names:r,props:n,handler:a,htmlBuilder:i,mathmlBuilder:o}=e,l={type:t,numArgs:n.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:a},s=0;s<r.length;++s)e1[r[s]]=l;i&&(Jn[t]=i),o&&(ea[t]=o)}var t1={};function x(e,t){t1[e]=t}function Ml(e){var t=[];e.consumeSpaces();var r=e.fetch().text;for(r==="\\relax"&&(e.consume(),e.consumeSpaces(),r=e.fetch().text);r==="\\hline"||r==="\\hdashline";)e.consume(),t.push(r==="\\hdashline"),e.consumeSpaces(),r=e.fetch().text;return t}var va=e=>{var t=e.parser.settings;if(!t.displayMode)throw new U("{"+e.envName+"} can be used only in display mode.")};function N0(e){if(e.indexOf("ed")===-1)return e.indexOf("*")===-1}function nr(e,t,r){var{hskipBeforeAndAfter:n,addJot:a,cols:i,arraystretch:o,colSeparationType:l,autoTag:s,singleRow:u,emptySingleRow:c,maxNumCols:h,leqno:m}=t;if(e.gullet.beginGroup(),u||e.gullet.macros.set("\\cr","\\\\\\relax"),!o){var p=e.gullet.expandMacroAsText("\\arraystretch");if(p==null)o=1;else if(o=parseFloat(p),!o||o<0)throw new U("Invalid \\arraystretch: "+p)}e.gullet.beginGroup();var y=[],w=[y],C=[],k=[],A=s!=null?[]:void 0;function E(){s&&e.gullet.macros.set("\\@eqnsw","1",!0)}function B(){A&&(e.gullet.macros.get("\\df@tag")?(A.push(e.subparse([new ht("\\df@tag")])),e.gullet.macros.set("\\df@tag",void 0,!0)):A.push(!!s&&e.gullet.macros.get("\\@eqnsw")==="1"))}for(E(),k.push(Ml(e));;){var F=e.parseExpression(!1,u?"\\end":"\\\\");e.gullet.endGroup(),e.gullet.beginGroup(),F={type:"ordgroup",mode:e.mode,body:F},r&&(F={type:"styling",mode:e.mode,style:r,body:[F]}),y.push(F);var D=e.fetch().text;if(D==="&"){if(h&&y.length===h){if(u||l)throw new U("Too many tab characters: &",e.nextToken);e.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}e.consume()}else if(D==="\\end"){B(),y.length===1&&F.type==="styling"&&F.body[0].body.length===0&&(w.length>1||!c)&&w.pop(),k.length<w.length+1&&k.push([]);break}else if(D==="\\\\"){e.consume();var _=void 0;e.gullet.future().text!==" "&&(_=e.parseSizeGroup(!0)),C.push(_?_.value:null),B(),k.push(Ml(e)),y=[],w.push(y),E()}else throw new U("Expected & or \\\\ or \\cr or \\end",e.nextToken)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:"array",mode:e.mode,addJot:a,arraystretch:o,body:w,cols:i,rowGaps:C,hskipBeforeAndAfter:n,hLinesBeforeRow:k,colSeparationType:l,tags:A,leqno:m}}function E0(e){return e.slice(0,1)==="d"?"display":"text"}var Nt=function(t,r){var n,a,i=t.body.length,o=t.hLinesBeforeRow,l=0,s=new Array(i),u=[],c=Math.max(r.fontMetrics().arrayRuleWidth,r.minRuleThickness),h=1/r.fontMetrics().ptPerEm,m=5*h;if(t.colSeparationType&&t.colSeparationType==="small"){var p=r.havingStyle(ue.SCRIPT).sizeMultiplier;m=.2778*(p/r.sizeMultiplier)}var y=t.colSeparationType==="CD"?Fe({number:3,unit:"ex"},r):12*h,w=3*h,C=t.arraystretch*y,k=.7*C,A=.3*C,E=0;function B(xr){for(var ar=0;ar<xr.length;++ar)ar>0&&(E+=.25),u.push({pos:E,isDashed:xr[ar]})}for(B(o[0]),n=0;n<t.body.length;++n){var F=t.body[n],D=k,_=A;l<F.length&&(l=F.length);var O=new Array(F.length);for(a=0;a<F.length;++a){var H=Se(F[a],r);_<H.depth&&(_=H.depth),D<H.height&&(D=H.height),O[a]=H}var L=t.rowGaps[n],K=0;L&&(K=Fe(L,r),K>0&&(K+=A,_<K&&(_=K),K=0)),t.addJot&&(_+=w),O.height=D,O.depth=_,E+=D,O.pos=E,E+=_+K,s[n]=O,B(o[n+1])}var G=E/2+r.fontMetrics().axisHeight,ce=t.cols||[],J=[],V,le,pe=[];if(t.tags&&t.tags.some(xr=>xr))for(n=0;n<i;++n){var Q=s[n],Ee=Q.pos-G,M=t.tags[n],Me=void 0;M===!0?Me=I.makeSpan(["eqn-num"],[],r):M===!1?Me=I.makeSpan([],[],r):Me=I.makeSpan([],Ge(M,r,!0),r),Me.depth=Q.depth,Me.height=Q.height,pe.push({type:"elem",elem:Me,shift:Ee})}for(a=0,le=0;a<l||le<ce.length;++a,++le){for(var ke=ce[le]||{},z=!0;ke.type==="separator";){if(z||(V=I.makeSpan(["arraycolsep"],[]),V.style.width=Z(r.fontMetrics().doubleRuleSep),J.push(V)),ke.separator==="|"||ke.separator===":"){var xe=ke.separator==="|"?"solid":"dashed",Le=I.makeSpan(["vertical-separator"],[],r);Le.style.height=Z(E),Le.style.borderRightWidth=Z(c),Le.style.borderRightStyle=xe,Le.style.margin="0 "+Z(-c/2);var Te=E-G;Te&&(Le.style.verticalAlign=Z(-Te)),J.push(Le)}else throw new U("Invalid separator type: "+ke.separator);le++,ke=ce[le]||{},z=!1}if(!(a>=l)){var ye=void 0;(a>0||t.hskipBeforeAndAfter)&&(ye=Ce.deflt(ke.pregap,m),ye!==0&&(V=I.makeSpan(["arraycolsep"],[]),V.style.width=Z(ye),J.push(V)));var Pe=[];for(n=0;n<i;++n){var _e=s[n],qe=_e[a];if(qe){var Ke=_e.pos-G;qe.depth=_e.depth,qe.height=_e.height,Pe.push({type:"elem",elem:qe,shift:Ke})}}Pe=I.makeVList({positionType:"individualShift",children:Pe},r),Pe=I.makeSpan(["col-align-"+(ke.align||"c")],[Pe]),J.push(Pe),(a<l-1||t.hskipBeforeAndAfter)&&(ye=Ce.deflt(ke.postgap,m),ye!==0&&(V=I.makeSpan(["arraycolsep"],[]),V.style.width=Z(ye),J.push(V)))}}if(s=I.makeSpan(["mtable"],J),u.length>0){for(var tt=I.makeLineSpan("hline",r,c),Dt=I.makeLineSpan("hdashline",r,c),X=[{type:"elem",elem:s,shift:0}];u.length>0;){var We=u.pop(),$r=We.pos-G;We.isDashed?X.push({type:"elem",elem:Dt,shift:$r}):X.push({type:"elem",elem:tt,shift:$r})}s=I.makeVList({positionType:"individualShift",children:X},r)}if(pe.length===0)return I.makeSpan(["mord"],[s],r);var yr=I.makeVList({positionType:"individualShift",children:pe},r);return yr=I.makeSpan(["tag"],[yr],r),I.makeFragment([s,yr])},h9={c:"center ",l:"left ",r:"right "},Et=function(t,r){for(var n=[],a=new $.MathNode("mtd",[],["mtr-glue"]),i=new $.MathNode("mtd",[],["mml-eqn-num"]),o=0;o<t.body.length;o++){for(var l=t.body[o],s=[],u=0;u<l.length;u++)s.push(new $.MathNode("mtd",[Ne(l[u],r)]));t.tags&&t.tags[o]&&(s.unshift(a),s.push(a),t.leqno?s.unshift(i):s.push(i)),n.push(new $.MathNode("mtr",s))}var c=new $.MathNode("mtable",n),h=t.arraystretch===.5?.1:.16+t.arraystretch-1+(t.addJot?.09:0);c.setAttribute("rowspacing",Z(h));var m="",p="";if(t.cols&&t.cols.length>0){var y=t.cols,w="",C=!1,k=0,A=y.length;y[0].type==="separator"&&(m+="top ",k=1),y[y.length-1].type==="separator"&&(m+="bottom ",A-=1);for(var E=k;E<A;E++)y[E].type==="align"?(p+=h9[y[E].align],C&&(w+="none "),C=!0):y[E].type==="separator"&&C&&(w+=y[E].separator==="|"?"solid ":"dashed ",C=!1);c.setAttribute("columnalign",p.trim()),/[sd]/.test(w)&&c.setAttribute("columnlines",w.trim())}if(t.colSeparationType==="align"){for(var B=t.cols||[],F="",D=1;D<B.length;D++)F+=D%2?"0em ":"1em ";c.setAttribute("columnspacing",F.trim())}else t.colSeparationType==="alignat"||t.colSeparationType==="gather"?c.setAttribute("columnspacing","0em"):t.colSeparationType==="small"?c.setAttribute("columnspacing","0.2778em"):t.colSeparationType==="CD"?c.setAttribute("columnspacing","0.5em"):c.setAttribute("columnspacing","1em");var _="",O=t.hLinesBeforeRow;m+=O[0].length>0?"left ":"",m+=O[O.length-1].length>0?"right ":"";for(var H=1;H<O.length-1;H++)_+=O[H].length===0?"none ":O[H][0]?"dashed ":"solid ";return/[sd]/.test(_)&&c.setAttribute("rowlines",_.trim()),m!==""&&(c=new $.MathNode("menclose",[c]),c.setAttribute("notation",m.trim())),t.arraystretch&&t.arraystretch<1&&(c=new $.MathNode("mstyle",[c]),c.setAttribute("scriptlevel","1")),c},r1=function(t,r){t.envName.indexOf("ed")===-1&&va(t);var n=[],a=t.envName.indexOf("at")>-1?"alignat":"align",i=t.envName==="split",o=nr(t.parser,{cols:n,addJot:!0,autoTag:i?void 0:N0(t.envName),emptySingleRow:!0,colSeparationType:a,maxNumCols:i?2:void 0,leqno:t.parser.settings.leqno},"display"),l,s=0,u={type:"ordgroup",mode:t.mode,body:[]};if(r[0]&&r[0].type==="ordgroup"){for(var c="",h=0;h<r[0].body.length;h++){var m=fe(r[0].body[h],"textord");c+=m.text}l=Number(c),s=l*2}var p=!s;o.body.forEach(function(k){for(var A=1;A<k.length;A+=2){var E=fe(k[A],"styling"),B=fe(E.body[0],"ordgroup");B.body.unshift(u)}if(p)s<k.length&&(s=k.length);else{var F=k.length/2;if(l<F)throw new U("Too many math in a row: "+("expected "+l+", but got "+F),k[0])}});for(var y=0;y<s;++y){var w="r",C=0;y%2===1?w="l":y>0&&p&&(C=1),n[y]={type:"align",align:w,pregap:C,postgap:0}}return o.colSeparationType=p?"align":"alignat",o};zt({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,t){var r=fa(t[0]),n=r?[t[0]]:fe(t[0],"ordgroup").body,a=n.map(function(o){var l=C0(o),s=l.text;if("lcr".indexOf(s)!==-1)return{type:"align",align:s};if(s==="|")return{type:"separator",separator:"|"};if(s===":")return{type:"separator",separator:":"};throw new U("Unknown column alignment: "+s,o)}),i={cols:a,hskipBeforeAndAfter:!0,maxNumCols:a.length};return nr(e.parser,i,E0(e.envName))},htmlBuilder:Nt,mathmlBuilder:Et});zt({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(e){var t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName.replace("*","")],r="c",n={hskipBeforeAndAfter:!1,cols:[{type:"align",align:r}]};if(e.envName.charAt(e.envName.length-1)==="*"){var a=e.parser;if(a.consumeSpaces(),a.fetch().text==="["){if(a.consume(),a.consumeSpaces(),r=a.fetch().text,"lcr".indexOf(r)===-1)throw new U("Expected l or c or r",a.nextToken);a.consume(),a.consumeSpaces(),a.expect("]"),a.consume(),n.cols=[{type:"align",align:r}]}}var i=nr(e.parser,n,E0(e.envName)),o=Math.max(0,...i.body.map(l=>l.length));return i.cols=new Array(o).fill({type:"align",align:r}),t?{type:"leftright",mode:e.mode,body:[i],left:t[0],right:t[1],rightColor:void 0}:i},htmlBuilder:Nt,mathmlBuilder:Et});zt({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){var t={arraystretch:.5},r=nr(e.parser,t,"script");return r.colSeparationType="small",r},htmlBuilder:Nt,mathmlBuilder:Et});zt({type:"array",names:["subarray"],props:{numArgs:1},handler(e,t){var r=fa(t[0]),n=r?[t[0]]:fe(t[0],"ordgroup").body,a=n.map(function(o){var l=C0(o),s=l.text;if("lc".indexOf(s)!==-1)return{type:"align",align:s};throw new U("Unknown column alignment: "+s,o)});if(a.length>1)throw new U("{subarray} can contain only one column");var i={cols:a,hskipBeforeAndAfter:!1,arraystretch:.5};if(i=nr(e.parser,i,"script"),i.body.length>0&&i.body[0].length>1)throw new U("{subarray} can contain only one column");return i},htmlBuilder:Nt,mathmlBuilder:Et});zt({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(e){var t={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},r=nr(e.parser,t,E0(e.envName));return{type:"leftright",mode:e.mode,body:[r],left:e.envName.indexOf("r")>-1?".":"\\{",right:e.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:Nt,mathmlBuilder:Et});zt({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:r1,htmlBuilder:Nt,mathmlBuilder:Et});zt({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){["gather","gather*"].includes(e.envName)&&va(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:N0(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return nr(e.parser,t,"display")},htmlBuilder:Nt,mathmlBuilder:Et});zt({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:r1,htmlBuilder:Nt,mathmlBuilder:Et});zt({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){va(e);var t={autoTag:N0(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return nr(e.parser,t,"display")},htmlBuilder:Nt,mathmlBuilder:Et});zt({type:"array",names:["CD"],props:{numArgs:0},handler(e){return va(e),Zg(e.parser)},htmlBuilder:Nt,mathmlBuilder:Et});x("\\nonumber","\\gdef\\@eqnsw{0}");x("\\notag","\\nonumber");re({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new U(e.funcName+" valid only within array environment")}});var Al=e1;re({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(e,t){var{parser:r,funcName:n}=e,a=t[0];if(a.type!=="ordgroup")throw new U("Invalid environment name",a);for(var i="",o=0;o<a.body.length;++o)i+=fe(a.body[o],"textord").text;if(n==="\\begin"){if(!Al.hasOwnProperty(i))throw new U("No such environment: "+i,a);var l=Al[i],{args:s,optArgs:u}=r.parseArguments("\\begin{"+i+"}",l),c={mode:r.mode,envName:i,parser:r},h=l.handler(c,s,u);r.expect("\\end",!1);var m=r.nextToken,p=fe(r.parseFunction(),"environment");if(p.name!==i)throw new U("Mismatch: \\begin{"+i+"} matched by \\end{"+p.name+"}",m);return h}return{type:"environment",mode:r.mode,name:i,nameGroup:a}}});var n1=(e,t)=>{var r=e.font,n=t.withFont(r);return Se(e.body,n)},a1=(e,t)=>{var r=e.font,n=t.withFont(r);return Ne(e.body,n)},zl={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};re({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathsfit","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(e,t)=>{var{parser:r,funcName:n}=e,a=ta(t[0]),i=n;return i in zl&&(i=zl[i]),{type:"font",mode:r.mode,font:i.slice(1),body:a}},htmlBuilder:n1,mathmlBuilder:a1});re({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(e,t)=>{var{parser:r}=e,n=t[0],a=Ce.isCharacterBox(n);return{type:"mclass",mode:r.mode,mclass:pa(n),body:[{type:"font",mode:r.mode,font:"boldsymbol",body:n}],isCharacterBox:a}}});re({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{parser:r,funcName:n,breakOnTokenText:a}=e,{mode:i}=r,o=r.parseExpression(!0,a),l="math"+n.slice(1);return{type:"font",mode:i,font:l,body:{type:"ordgroup",mode:r.mode,body:o}}},htmlBuilder:n1,mathmlBuilder:a1});var i1=(e,t)=>{var r=t;return e==="display"?r=r.id>=ue.SCRIPT.id?r.text():ue.DISPLAY:e==="text"&&r.size===ue.DISPLAY.size?r=ue.TEXT:e==="script"?r=ue.SCRIPT:e==="scriptscript"&&(r=ue.SCRIPTSCRIPT),r},D0=(e,t)=>{var r=i1(e.size,t.style),n=r.fracNum(),a=r.fracDen(),i;i=t.havingStyle(n);var o=Se(e.numer,i,t);if(e.continued){var l=8.5/t.fontMetrics().ptPerEm,s=3.5/t.fontMetrics().ptPerEm;o.height=o.height<l?l:o.height,o.depth=o.depth<s?s:o.depth}i=t.havingStyle(a);var u=Se(e.denom,i,t),c,h,m;e.hasBarLine?(e.barSize?(h=Fe(e.barSize,t),c=I.makeLineSpan("frac-line",t,h)):c=I.makeLineSpan("frac-line",t),h=c.height,m=c.height):(c=null,h=0,m=t.fontMetrics().defaultRuleThickness);var p,y,w;r.size===ue.DISPLAY.size||e.size==="display"?(p=t.fontMetrics().num1,h>0?y=3*m:y=7*m,w=t.fontMetrics().denom1):(h>0?(p=t.fontMetrics().num2,y=m):(p=t.fontMetrics().num3,y=3*m),w=t.fontMetrics().denom2);var C;if(c){var A=t.fontMetrics().axisHeight;p-o.depth-(A+.5*h)<y&&(p+=y-(p-o.depth-(A+.5*h))),A-.5*h-(u.height-w)<y&&(w+=y-(A-.5*h-(u.height-w)));var E=-(A-.5*h);C=I.makeVList({positionType:"individualShift",children:[{type:"elem",elem:u,shift:w},{type:"elem",elem:c,shift:E},{type:"elem",elem:o,shift:-p}]},t)}else{var k=p-o.depth-(u.height-w);k<y&&(p+=.5*(y-k),w+=.5*(y-k)),C=I.makeVList({positionType:"individualShift",children:[{type:"elem",elem:u,shift:w},{type:"elem",elem:o,shift:-p}]},t)}i=t.havingStyle(r),C.height*=i.sizeMultiplier/t.sizeMultiplier,C.depth*=i.sizeMultiplier/t.sizeMultiplier;var B;r.size===ue.DISPLAY.size?B=t.fontMetrics().delim1:r.size===ue.SCRIPTSCRIPT.size?B=t.havingStyle(ue.SCRIPT).fontMetrics().delim2:B=t.fontMetrics().delim2;var F,D;return e.leftDelim==null?F=cn(t,["mopen"]):F=_t.customSizedDelim(e.leftDelim,B,!0,t.havingStyle(r),e.mode,["mopen"]),e.continued?D=I.makeSpan([]):e.rightDelim==null?D=cn(t,["mclose"]):D=_t.customSizedDelim(e.rightDelim,B,!0,t.havingStyle(r),e.mode,["mclose"]),I.makeSpan(["mord"].concat(i.sizingClasses(t)),[F,I.makeSpan(["mfrac"],[C]),D],t)},I0=(e,t)=>{var r=new $.MathNode("mfrac",[Ne(e.numer,t),Ne(e.denom,t)]);if(!e.hasBarLine)r.setAttribute("linethickness","0px");else if(e.barSize){var n=Fe(e.barSize,t);r.setAttribute("linethickness",Z(n))}var a=i1(e.size,t.style);if(a.size!==t.style.size){r=new $.MathNode("mstyle",[r]);var i=a.size===ue.DISPLAY.size?"true":"false";r.setAttribute("displaystyle",i),r.setAttribute("scriptlevel","0")}if(e.leftDelim!=null||e.rightDelim!=null){var o=[];if(e.leftDelim!=null){var l=new $.MathNode("mo",[new $.TextNode(e.leftDelim.replace("\\",""))]);l.setAttribute("fence","true"),o.push(l)}if(o.push(r),e.rightDelim!=null){var s=new $.MathNode("mo",[new $.TextNode(e.rightDelim.replace("\\",""))]);s.setAttribute("fence","true"),o.push(s)}return k0(o)}return r};re({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(e,t)=>{var{parser:r,funcName:n}=e,a=t[0],i=t[1],o,l=null,s=null,u="auto";switch(n){case"\\dfrac":case"\\frac":case"\\tfrac":o=!0;break;case"\\\\atopfrac":o=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":o=!1,l="(",s=")";break;case"\\\\bracefrac":o=!1,l="\\{",s="\\}";break;case"\\\\brackfrac":o=!1,l="[",s="]";break;default:throw new Error("Unrecognized genfrac command")}switch(n){case"\\dfrac":case"\\dbinom":u="display";break;case"\\tfrac":case"\\tbinom":u="text";break}return{type:"genfrac",mode:r.mode,continued:!1,numer:a,denom:i,hasBarLine:o,leftDelim:l,rightDelim:s,size:u,barSize:null}},htmlBuilder:D0,mathmlBuilder:I0});re({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:(e,t)=>{var{parser:r,funcName:n}=e,a=t[0],i=t[1];return{type:"genfrac",mode:r.mode,continued:!0,numer:a,denom:i,hasBarLine:!0,leftDelim:null,rightDelim:null,size:"display",barSize:null}}});re({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(e){var{parser:t,funcName:r,token:n}=e,a;switch(r){case"\\over":a="\\frac";break;case"\\choose":a="\\binom";break;case"\\atop":a="\\\\atopfrac";break;case"\\brace":a="\\\\bracefrac";break;case"\\brack":a="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:t.mode,replaceWith:a,token:n}}});var Nl=["display","text","script","scriptscript"],El=function(t){var r=null;return t.length>0&&(r=t,r=r==="."?null:r),r};re({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(e,t){var{parser:r}=e,n=t[4],a=t[5],i=ta(t[0]),o=i.type==="atom"&&i.family==="open"?El(i.text):null,l=ta(t[1]),s=l.type==="atom"&&l.family==="close"?El(l.text):null,u=fe(t[2],"size"),c,h=null;u.isBlank?c=!0:(h=u.value,c=h.number>0);var m="auto",p=t[3];if(p.type==="ordgroup"){if(p.body.length>0){var y=fe(p.body[0],"textord");m=Nl[Number(y.text)]}}else p=fe(p,"textord"),m=Nl[Number(p.text)];return{type:"genfrac",mode:r.mode,numer:n,denom:a,continued:!1,hasBarLine:c,barSize:h,leftDelim:o,rightDelim:s,size:m}},htmlBuilder:D0,mathmlBuilder:I0});re({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(e,t){var{parser:r,funcName:n,token:a}=e;return{type:"infix",mode:r.mode,replaceWith:"\\\\abovefrac",size:fe(t[0],"size").value,token:a}}});re({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(e,t)=>{var{parser:r,funcName:n}=e,a=t[0],i=q8(fe(t[1],"infix").size),o=t[2],l=i.number>0;return{type:"genfrac",mode:r.mode,numer:a,denom:o,continued:!1,hasBarLine:l,barSize:i,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:D0,mathmlBuilder:I0});var o1=(e,t)=>{var r=t.style,n,a;e.type==="supsub"?(n=e.sup?Se(e.sup,t.havingStyle(r.sup()),t):Se(e.sub,t.havingStyle(r.sub()),t),a=fe(e.base,"horizBrace")):a=fe(e,"horizBrace");var i=Se(a.base,t.havingBaseStyle(ue.DISPLAY)),o=Vt.svgSpan(a,t),l;if(a.isOver?(l=I.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"kern",size:.1},{type:"elem",elem:o}]},t),l.children[0].children[0].children[1].classes.push("svg-align")):(l=I.makeVList({positionType:"bottom",positionData:i.depth+.1+o.height,children:[{type:"elem",elem:o},{type:"kern",size:.1},{type:"elem",elem:i}]},t),l.children[0].children[0].children[0].classes.push("svg-align")),n){var s=I.makeSpan(["mord",a.isOver?"mover":"munder"],[l],t);a.isOver?l=I.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"kern",size:.2},{type:"elem",elem:n}]},t):l=I.makeVList({positionType:"bottom",positionData:s.depth+.2+n.height+n.depth,children:[{type:"elem",elem:n},{type:"kern",size:.2},{type:"elem",elem:s}]},t)}return I.makeSpan(["mord",a.isOver?"mover":"munder"],[l],t)},d9=(e,t)=>{var r=Vt.mathMLnode(e.label);return new $.MathNode(e.isOver?"mover":"munder",[Ne(e.base,t),r])};re({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:n}=e;return{type:"horizBrace",mode:r.mode,label:n,isOver:/^\\over/.test(n),base:t[0]}},htmlBuilder:o1,mathmlBuilder:d9});re({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,n=t[1],a=fe(t[0],"url").url;return r.settings.isTrusted({command:"\\href",url:a})?{type:"href",mode:r.mode,href:a,body:je(n)}:r.formatUnsupportedCmd("\\href")},htmlBuilder:(e,t)=>{var r=Ge(e.body,t,!1);return I.makeAnchor(e.href,[],r,t)},mathmlBuilder:(e,t)=>{var r=tr(e.body,t);return r instanceof ut||(r=new ut("mrow",[r])),r.setAttribute("href",e.href),r}});re({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,n=fe(t[0],"url").url;if(!r.settings.isTrusted({command:"\\url",url:n}))return r.formatUnsupportedCmd("\\url");for(var a=[],i=0;i<n.length;i++){var o=n[i];o==="~"&&(o="\\textasciitilde"),a.push({type:"textord",mode:"text",text:o})}var l={type:"text",mode:r.mode,font:"\\texttt",body:a};return{type:"href",mode:r.mode,href:n,body:je(l)}}});re({type:"hbox",names:["\\hbox"],props:{numArgs:1,argTypes:["text"],allowedInText:!0,primitive:!0},handler(e,t){var{parser:r}=e;return{type:"hbox",mode:r.mode,body:je(t[0])}},htmlBuilder(e,t){var r=Ge(e.body,t,!1);return I.makeFragment(r)},mathmlBuilder(e,t){return new $.MathNode("mrow",ot(e.body,t))}});re({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],props:{numArgs:2,argTypes:["raw","original"],allowedInText:!0},handler:(e,t)=>{var{parser:r,funcName:n,token:a}=e,i=fe(t[0],"raw").string,o=t[1];r.settings.strict&&r.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var l,s={};switch(n){case"\\htmlClass":s.class=i,l={command:"\\htmlClass",class:i};break;case"\\htmlId":s.id=i,l={command:"\\htmlId",id:i};break;case"\\htmlStyle":s.style=i,l={command:"\\htmlStyle",style:i};break;case"\\htmlData":{for(var u=i.split(","),c=0;c<u.length;c++){var h=u[c].split("=");if(h.length!==2)throw new U("Error parsing key-value for \\htmlData");s["data-"+h[0].trim()]=h[1].trim()}l={command:"\\htmlData",attributes:s};break}default:throw new Error("Unrecognized html command")}return r.settings.isTrusted(l)?{type:"html",mode:r.mode,attributes:s,body:je(o)}:r.formatUnsupportedCmd(n)},htmlBuilder:(e,t)=>{var r=Ge(e.body,t,!1),n=["enclosing"];e.attributes.class&&n.push(...e.attributes.class.trim().split(/\s+/));var a=I.makeSpan(n,r,t);for(var i in e.attributes)i!=="class"&&e.attributes.hasOwnProperty(i)&&a.setAttribute(i,e.attributes[i]);return a},mathmlBuilder:(e,t)=>tr(e.body,t)});re({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e;return{type:"htmlmathml",mode:r.mode,html:je(t[0]),mathml:je(t[1])}},htmlBuilder:(e,t)=>{var r=Ge(e.html,t,!1);return I.makeFragment(r)},mathmlBuilder:(e,t)=>tr(e.mathml,t)});var oi=function(t){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(t))return{number:+t,unit:"bp"};var r=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t);if(!r)throw new U("Invalid size: '"+t+"' in \\includegraphics");var n={number:+(r[1]+r[2]),unit:r[3]};if(!Tc(n))throw new U("Invalid unit: '"+n.unit+"' in \\includegraphics.");return n};re({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(e,t,r)=>{var{parser:n}=e,a={number:0,unit:"em"},i={number:.9,unit:"em"},o={number:0,unit:"em"},l="";if(r[0])for(var s=fe(r[0],"raw").string,u=s.split(","),c=0;c<u.length;c++){var h=u[c].split("=");if(h.length===2){var m=h[1].trim();switch(h[0].trim()){case"alt":l=m;break;case"width":a=oi(m);break;case"height":i=oi(m);break;case"totalheight":o=oi(m);break;default:throw new U("Invalid key: '"+h[0]+"' in \\includegraphics.")}}}var p=fe(t[0],"url").url;return l===""&&(l=p,l=l.replace(/^.*[\\/]/,""),l=l.substring(0,l.lastIndexOf("."))),n.settings.isTrusted({command:"\\includegraphics",url:p})?{type:"includegraphics",mode:n.mode,alt:l,width:a,height:i,totalheight:o,src:p}:n.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:(e,t)=>{var r=Fe(e.height,t),n=0;e.totalheight.number>0&&(n=Fe(e.totalheight,t)-r);var a=0;e.width.number>0&&(a=Fe(e.width,t));var i={height:Z(r+n)};a>0&&(i.width=Z(a)),n>0&&(i.verticalAlign=Z(-n));var o=new dg(e.src,e.alt,i);return o.height=r,o.depth=n,o},mathmlBuilder:(e,t)=>{var r=new $.MathNode("mglyph",[]);r.setAttribute("alt",e.alt);var n=Fe(e.height,t),a=0;if(e.totalheight.number>0&&(a=Fe(e.totalheight,t)-n,r.setAttribute("valign",Z(-a))),r.setAttribute("height",Z(n+a)),e.width.number>0){var i=Fe(e.width,t);r.setAttribute("width",Z(i))}return r.setAttribute("src",e.src),r}});re({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(e,t){var{parser:r,funcName:n}=e,a=fe(t[0],"size");if(r.settings.strict){var i=n[1]==="m",o=a.value.unit==="mu";i?(o||r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" supports only mu units, "+("not "+a.value.unit+" units")),r.mode!=="math"&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" works only in math mode")):o&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" doesn't support mu units")}return{type:"kern",mode:r.mode,dimension:a.value}},htmlBuilder(e,t){return I.makeGlue(e.dimension,t)},mathmlBuilder(e,t){var r=Fe(e.dimension,t);return new $.SpaceNode(r)}});re({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r,funcName:n}=e,a=t[0];return{type:"lap",mode:r.mode,alignment:n.slice(5),body:a}},htmlBuilder:(e,t)=>{var r;e.alignment==="clap"?(r=I.makeSpan([],[Se(e.body,t)]),r=I.makeSpan(["inner"],[r],t)):r=I.makeSpan(["inner"],[Se(e.body,t)]);var n=I.makeSpan(["fix"],[]),a=I.makeSpan([e.alignment],[r,n],t),i=I.makeSpan(["strut"]);return i.style.height=Z(a.height+a.depth),a.depth&&(i.style.verticalAlign=Z(-a.depth)),a.children.unshift(i),a=I.makeSpan(["thinbox"],[a],t),I.makeSpan(["mord","vbox"],[a],t)},mathmlBuilder:(e,t)=>{var r=new $.MathNode("mpadded",[Ne(e.body,t)]);if(e.alignment!=="rlap"){var n=e.alignment==="llap"?"-1":"-0.5";r.setAttribute("lspace",n+"width")}return r.setAttribute("width","0px"),r}});re({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:r,parser:n}=e,a=n.mode;n.switchMode("math");var i=r==="\\("?"\\)":"$",o=n.parseExpression(!1,i);return n.expect(i),n.switchMode(a),{type:"styling",mode:n.mode,style:"text",body:o}}});re({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new U("Mismatched "+e.funcName)}});var Dl=(e,t)=>{switch(t.style.size){case ue.DISPLAY.size:return e.display;case ue.TEXT.size:return e.text;case ue.SCRIPT.size:return e.script;case ue.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};re({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(e,t)=>{var{parser:r}=e;return{type:"mathchoice",mode:r.mode,display:je(t[0]),text:je(t[1]),script:je(t[2]),scriptscript:je(t[3])}},htmlBuilder:(e,t)=>{var r=Dl(e,t),n=Ge(r,t,!1);return I.makeFragment(n)},mathmlBuilder:(e,t)=>{var r=Dl(e,t);return tr(r,t)}});var l1=(e,t,r,n,a,i,o)=>{e=I.makeSpan([],[e]);var l=r&&Ce.isCharacterBox(r),s,u;if(t){var c=Se(t,n.havingStyle(a.sup()),n);u={elem:c,kern:Math.max(n.fontMetrics().bigOpSpacing1,n.fontMetrics().bigOpSpacing3-c.depth)}}if(r){var h=Se(r,n.havingStyle(a.sub()),n);s={elem:h,kern:Math.max(n.fontMetrics().bigOpSpacing2,n.fontMetrics().bigOpSpacing4-h.height)}}var m;if(u&&s){var p=n.fontMetrics().bigOpSpacing5+s.elem.height+s.elem.depth+s.kern+e.depth+o;m=I.makeVList({positionType:"bottom",positionData:p,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:s.elem,marginLeft:Z(-i)},{type:"kern",size:s.kern},{type:"elem",elem:e},{type:"kern",size:u.kern},{type:"elem",elem:u.elem,marginLeft:Z(i)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]},n)}else if(s){var y=e.height-o;m=I.makeVList({positionType:"top",positionData:y,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:s.elem,marginLeft:Z(-i)},{type:"kern",size:s.kern},{type:"elem",elem:e}]},n)}else if(u){var w=e.depth+o;m=I.makeVList({positionType:"bottom",positionData:w,children:[{type:"elem",elem:e},{type:"kern",size:u.kern},{type:"elem",elem:u.elem,marginLeft:Z(i)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]},n)}else return e;var C=[m];if(s&&i!==0&&!l){var k=I.makeSpan(["mspace"],[],n);k.style.marginRight=Z(i),C.unshift(k)}return I.makeSpan(["mop","op-limits"],C,n)},s1=["\\smallint"],Vr=(e,t)=>{var r,n,a=!1,i;e.type==="supsub"?(r=e.sup,n=e.sub,i=fe(e.base,"op"),a=!0):i=fe(e,"op");var o=t.style,l=!1;o.size===ue.DISPLAY.size&&i.symbol&&!s1.includes(i.name)&&(l=!0);var s;if(i.symbol){var u=l?"Size2-Regular":"Size1-Regular",c="";if((i.name==="\\oiint"||i.name==="\\oiiint")&&(c=i.name.slice(1),i.name=c==="oiint"?"\\iint":"\\iiint"),s=I.makeSymbol(i.name,u,"math",t,["mop","op-symbol",l?"large-op":"small-op"]),c.length>0){var h=s.italic,m=I.staticSvg(c+"Size"+(l?"2":"1"),t);s=I.makeVList({positionType:"individualShift",children:[{type:"elem",elem:s,shift:0},{type:"elem",elem:m,shift:l?.08:0}]},t),i.name="\\"+c,s.classes.unshift("mop"),s.italic=h}}else if(i.body){var p=Ge(i.body,t,!0);p.length===1&&p[0]instanceof pt?(s=p[0],s.classes[0]="mop"):s=I.makeSpan(["mop"],p,t)}else{for(var y=[],w=1;w<i.name.length;w++)y.push(I.mathsym(i.name[w],i.mode,t));s=I.makeSpan(["mop"],y,t)}var C=0,k=0;return(s instanceof pt||i.name==="\\oiint"||i.name==="\\oiiint")&&!i.suppressBaseShift&&(C=(s.height-s.depth)/2-t.fontMetrics().axisHeight,k=s.italic),a?l1(s,r,n,t,o,k,C):(C&&(s.style.position="relative",s.style.top=Z(C)),s)},vn=(e,t)=>{var r;if(e.symbol)r=new ut("mo",[gt(e.name,e.mode)]),s1.includes(e.name)&&r.setAttribute("largeop","false");else if(e.body)r=new ut("mo",ot(e.body,t));else{r=new ut("mi",[new Tt(e.name.slice(1))]);var n=new ut("mo",[gt("⁡","text")]);e.parentIsSupSub?r=new ut("mrow",[r,n]):r=Bc([r,n])}return r},m9={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};re({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:(e,t)=>{var{parser:r,funcName:n}=e,a=n;return a.length===1&&(a=m9[a]),{type:"op",mode:r.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:a}},htmlBuilder:Vr,mathmlBuilder:vn});re({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var{parser:r}=e,n=t[0];return{type:"op",mode:r.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:je(n)}},htmlBuilder:Vr,mathmlBuilder:vn});var f9={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};re({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(e){var{parser:t,funcName:r}=e;return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:r}},htmlBuilder:Vr,mathmlBuilder:vn});re({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(e){var{parser:t,funcName:r}=e;return{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:r}},htmlBuilder:Vr,mathmlBuilder:vn});re({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0},handler(e){var{parser:t,funcName:r}=e,n=r;return n.length===1&&(n=f9[n]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:n}},htmlBuilder:Vr,mathmlBuilder:vn});var u1=(e,t)=>{var r,n,a=!1,i;e.type==="supsub"?(r=e.sup,n=e.sub,i=fe(e.base,"operatorname"),a=!0):i=fe(e,"operatorname");var o;if(i.body.length>0){for(var l=i.body.map(h=>{var m=h.text;return typeof m=="string"?{type:"textord",mode:h.mode,text:m}:h}),s=Ge(l,t.withFont("mathrm"),!0),u=0;u<s.length;u++){var c=s[u];c instanceof pt&&(c.text=c.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}o=I.makeSpan(["mop"],s,t)}else o=I.makeSpan(["mop"],[],t);return a?l1(o,r,n,t,t.style,0,0):o},p9=(e,t)=>{for(var r=ot(e.body,t.withFont("mathrm")),n=!0,a=0;a<r.length;a++){var i=r[a];if(!(i instanceof $.SpaceNode))if(i instanceof $.MathNode)switch(i.type){case"mi":case"mn":case"ms":case"mspace":case"mtext":break;case"mo":{var o=i.children[0];i.children.length===1&&o instanceof $.TextNode?o.text=o.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):n=!1;break}default:n=!1}else n=!1}if(n){var l=r.map(c=>c.toText()).join("");r=[new $.TextNode(l)]}var s=new $.MathNode("mi",r);s.setAttribute("mathvariant","normal");var u=new $.MathNode("mo",[gt("⁡","text")]);return e.parentIsSupSub?new $.MathNode("mrow",[s,u]):$.newDocumentFragment([s,u])};re({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(e,t)=>{var{parser:r,funcName:n}=e,a=t[0];return{type:"operatorname",mode:r.mode,body:je(a),alwaysHandleSupSub:n==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:u1,mathmlBuilder:p9});x("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");vr({type:"ordgroup",htmlBuilder(e,t){return e.semisimple?I.makeFragment(Ge(e.body,t,!1)):I.makeSpan(["mord"],Ge(e.body,t,!0),t)},mathmlBuilder(e,t){return tr(e.body,t,!0)}});re({type:"overline",names:["\\overline"],props:{numArgs:1},handler(e,t){var{parser:r}=e,n=t[0];return{type:"overline",mode:r.mode,body:n}},htmlBuilder(e,t){var r=Se(e.body,t.havingCrampedStyle()),n=I.makeLineSpan("overline-line",t),a=t.fontMetrics().defaultRuleThickness,i=I.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r},{type:"kern",size:3*a},{type:"elem",elem:n},{type:"kern",size:a}]},t);return I.makeSpan(["mord","overline"],[i],t)},mathmlBuilder(e,t){var r=new $.MathNode("mo",[new $.TextNode("‾")]);r.setAttribute("stretchy","true");var n=new $.MathNode("mover",[Ne(e.body,t),r]);return n.setAttribute("accent","true"),n}});re({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,n=t[0];return{type:"phantom",mode:r.mode,body:je(n)}},htmlBuilder:(e,t)=>{var r=Ge(e.body,t.withPhantom(),!1);return I.makeFragment(r)},mathmlBuilder:(e,t)=>{var r=ot(e.body,t);return new $.MathNode("mphantom",r)}});re({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,n=t[0];return{type:"hphantom",mode:r.mode,body:n}},htmlBuilder:(e,t)=>{var r=I.makeSpan([],[Se(e.body,t.withPhantom())]);if(r.height=0,r.depth=0,r.children)for(var n=0;n<r.children.length;n++)r.children[n].height=0,r.children[n].depth=0;return r=I.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r}]},t),I.makeSpan(["mord"],[r],t)},mathmlBuilder:(e,t)=>{var r=ot(je(e.body),t),n=new $.MathNode("mphantom",r),a=new $.MathNode("mpadded",[n]);return a.setAttribute("height","0px"),a.setAttribute("depth","0px"),a}});re({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,n=t[0];return{type:"vphantom",mode:r.mode,body:n}},htmlBuilder:(e,t)=>{var r=I.makeSpan(["inner"],[Se(e.body,t.withPhantom())]),n=I.makeSpan(["fix"],[]);return I.makeSpan(["mord","rlap"],[r,n],t)},mathmlBuilder:(e,t)=>{var r=ot(je(e.body),t),n=new $.MathNode("mphantom",r),a=new $.MathNode("mpadded",[n]);return a.setAttribute("width","0px"),a}});re({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(e,t){var{parser:r}=e,n=fe(t[0],"size").value,a=t[1];return{type:"raisebox",mode:r.mode,dy:n,body:a}},htmlBuilder(e,t){var r=Se(e.body,t),n=Fe(e.dy,t);return I.makeVList({positionType:"shift",positionData:-n,children:[{type:"elem",elem:r}]},t)},mathmlBuilder(e,t){var r=new $.MathNode("mpadded",[Ne(e.body,t)]),n=e.dy.number+e.dy.unit;return r.setAttribute("voffset",n),r}});re({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(e){var{parser:t}=e;return{type:"internal",mode:t.mode}}});re({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"]},handler(e,t,r){var{parser:n}=e,a=r[0],i=fe(t[0],"size"),o=fe(t[1],"size");return{type:"rule",mode:n.mode,shift:a&&fe(a,"size").value,width:i.value,height:o.value}},htmlBuilder(e,t){var r=I.makeSpan(["mord","rule"],[],t),n=Fe(e.width,t),a=Fe(e.height,t),i=e.shift?Fe(e.shift,t):0;return r.style.borderRightWidth=Z(n),r.style.borderTopWidth=Z(a),r.style.bottom=Z(i),r.width=n,r.height=a+i,r.depth=-i,r.maxFontSize=a*1.125*t.sizeMultiplier,r},mathmlBuilder(e,t){var r=Fe(e.width,t),n=Fe(e.height,t),a=e.shift?Fe(e.shift,t):0,i=t.color&&t.getColor()||"black",o=new $.MathNode("mspace");o.setAttribute("mathbackground",i),o.setAttribute("width",Z(r)),o.setAttribute("height",Z(n));var l=new $.MathNode("mpadded",[o]);return a>=0?l.setAttribute("height",Z(a)):(l.setAttribute("height",Z(a)),l.setAttribute("depth",Z(-a))),l.setAttribute("voffset",Z(a)),l}});function c1(e,t,r){for(var n=Ge(e,t,!1),a=t.sizeMultiplier/r.sizeMultiplier,i=0;i<n.length;i++){var o=n[i].classes.indexOf("sizing");o<0?Array.prototype.push.apply(n[i].classes,t.sizingClasses(r)):n[i].classes[o+1]==="reset-size"+t.size&&(n[i].classes[o+1]="reset-size"+r.size),n[i].height*=a,n[i].depth*=a}return I.makeFragment(n)}var Il=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],g9=(e,t)=>{var r=t.havingSize(e.size);return c1(e.body,r,t)};re({type:"sizing",names:Il,props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{breakOnTokenText:r,funcName:n,parser:a}=e,i=a.parseExpression(!1,r);return{type:"sizing",mode:a.mode,size:Il.indexOf(n)+1,body:i}},htmlBuilder:g9,mathmlBuilder:(e,t)=>{var r=t.havingSize(e.size),n=ot(e.body,r),a=new $.MathNode("mstyle",n);return a.setAttribute("mathsize",Z(r.sizeMultiplier)),a}});re({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,r)=>{var{parser:n}=e,a=!1,i=!1,o=r[0]&&fe(r[0],"ordgroup");if(o)for(var l="",s=0;s<o.body.length;++s){var u=o.body[s];if(l=u.text,l==="t")a=!0;else if(l==="b")i=!0;else{a=!1,i=!1;break}}else a=!0,i=!0;var c=t[0];return{type:"smash",mode:n.mode,body:c,smashHeight:a,smashDepth:i}},htmlBuilder:(e,t)=>{var r=I.makeSpan([],[Se(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return r;if(e.smashHeight&&(r.height=0,r.children))for(var n=0;n<r.children.length;n++)r.children[n].height=0;if(e.smashDepth&&(r.depth=0,r.children))for(var a=0;a<r.children.length;a++)r.children[a].depth=0;var i=I.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r}]},t);return I.makeSpan(["mord"],[i],t)},mathmlBuilder:(e,t)=>{var r=new $.MathNode("mpadded",[Ne(e.body,t)]);return e.smashHeight&&r.setAttribute("height","0px"),e.smashDepth&&r.setAttribute("depth","0px"),r}});re({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,r){var{parser:n}=e,a=r[0],i=t[0];return{type:"sqrt",mode:n.mode,body:i,index:a}},htmlBuilder(e,t){var r=Se(e.body,t.havingCrampedStyle());r.height===0&&(r.height=t.fontMetrics().xHeight),r=I.wrapFragment(r,t);var n=t.fontMetrics(),a=n.defaultRuleThickness,i=a;t.style.id<ue.TEXT.id&&(i=t.fontMetrics().xHeight);var o=a+i/4,l=r.height+r.depth+o+a,{span:s,ruleWidth:u,advanceWidth:c}=_t.sqrtImage(l,t),h=s.height-u;h>r.height+r.depth+o&&(o=(o+h-r.height-r.depth)/2);var m=s.height-r.height-o-u;r.style.paddingLeft=Z(c);var p=I.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:-(r.height+m)},{type:"elem",elem:s},{type:"kern",size:u}]},t);if(e.index){var y=t.havingStyle(ue.SCRIPTSCRIPT),w=Se(e.index,y,t),C=.6*(p.height-p.depth),k=I.makeVList({positionType:"shift",positionData:-C,children:[{type:"elem",elem:w}]},t),A=I.makeSpan(["root"],[k]);return I.makeSpan(["mord","sqrt"],[A,p],t)}else return I.makeSpan(["mord","sqrt"],[p],t)},mathmlBuilder(e,t){var{body:r,index:n}=e;return n?new $.MathNode("mroot",[Ne(r,t),Ne(n,t)]):new $.MathNode("msqrt",[Ne(r,t)])}});var Ll={display:ue.DISPLAY,text:ue.TEXT,script:ue.SCRIPT,scriptscript:ue.SCRIPTSCRIPT};re({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){var{breakOnTokenText:r,funcName:n,parser:a}=e,i=a.parseExpression(!0,r),o=n.slice(1,n.length-5);return{type:"styling",mode:a.mode,style:o,body:i}},htmlBuilder(e,t){var r=Ll[e.style],n=t.havingStyle(r).withFont("");return c1(e.body,n,t)},mathmlBuilder(e,t){var r=Ll[e.style],n=t.havingStyle(r),a=ot(e.body,n),i=new $.MathNode("mstyle",a),o={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},l=o[e.style];return i.setAttribute("scriptlevel",l[0]),i.setAttribute("displaystyle",l[1]),i}});var v9=function(t,r){var n=t.base;if(n)if(n.type==="op"){var a=n.limits&&(r.style.size===ue.DISPLAY.size||n.alwaysHandleSupSub);return a?Vr:null}else if(n.type==="operatorname"){var i=n.alwaysHandleSupSub&&(r.style.size===ue.DISPLAY.size||n.limits);return i?u1:null}else{if(n.type==="accent")return Ce.isCharacterBox(n.base)?T0:null;if(n.type==="horizBrace"){var o=!t.sub;return o===n.isOver?o1:null}else return null}else return null};vr({type:"supsub",htmlBuilder(e,t){var r=v9(e,t);if(r)return r(e,t);var{base:n,sup:a,sub:i}=e,o=Se(n,t),l,s,u=t.fontMetrics(),c=0,h=0,m=n&&Ce.isCharacterBox(n);if(a){var p=t.havingStyle(t.style.sup());l=Se(a,p,t),m||(c=o.height-p.fontMetrics().supDrop*p.sizeMultiplier/t.sizeMultiplier)}if(i){var y=t.havingStyle(t.style.sub());s=Se(i,y,t),m||(h=o.depth+y.fontMetrics().subDrop*y.sizeMultiplier/t.sizeMultiplier)}var w;t.style===ue.DISPLAY?w=u.sup1:t.style.cramped?w=u.sup3:w=u.sup2;var C=t.sizeMultiplier,k=Z(.5/u.ptPerEm/C),A=null;if(s){var E=e.base&&e.base.type==="op"&&e.base.name&&(e.base.name==="\\oiint"||e.base.name==="\\oiiint");(o instanceof pt||E)&&(A=Z(-o.italic))}var B;if(l&&s){c=Math.max(c,w,l.depth+.25*u.xHeight),h=Math.max(h,u.sub2);var F=u.defaultRuleThickness,D=4*F;if(c-l.depth-(s.height-h)<D){h=D-(c-l.depth)+s.height;var _=.8*u.xHeight-(c-l.depth);_>0&&(c+=_,h-=_)}var O=[{type:"elem",elem:s,shift:h,marginRight:k,marginLeft:A},{type:"elem",elem:l,shift:-c,marginRight:k}];B=I.makeVList({positionType:"individualShift",children:O},t)}else if(s){h=Math.max(h,u.sub1,s.height-.8*u.xHeight);var H=[{type:"elem",elem:s,marginLeft:A,marginRight:k}];B=I.makeVList({positionType:"shift",positionData:h,children:H},t)}else if(l)c=Math.max(c,w,l.depth+.25*u.xHeight),B=I.makeVList({positionType:"shift",positionData:-c,children:[{type:"elem",elem:l,marginRight:k}]},t);else throw new Error("supsub must have either sup or sub.");var L=Li(o,"right")||"mord";return I.makeSpan([L],[o,I.makeSpan(["msupsub"],[B])],t)},mathmlBuilder(e,t){var r=!1,n,a;e.base&&e.base.type==="horizBrace"&&(a=!!e.sup,a===e.base.isOver&&(r=!0,n=e.base.isOver)),e.base&&(e.base.type==="op"||e.base.type==="operatorname")&&(e.base.parentIsSupSub=!0);var i=[Ne(e.base,t)];e.sub&&i.push(Ne(e.sub,t)),e.sup&&i.push(Ne(e.sup,t));var o;if(r)o=n?"mover":"munder";else if(e.sub)if(e.sup){var u=e.base;u&&u.type==="op"&&u.limits&&t.style===ue.DISPLAY||u&&u.type==="operatorname"&&u.alwaysHandleSupSub&&(t.style===ue.DISPLAY||u.limits)?o="munderover":o="msubsup"}else{var s=e.base;s&&s.type==="op"&&s.limits&&(t.style===ue.DISPLAY||s.alwaysHandleSupSub)||s&&s.type==="operatorname"&&s.alwaysHandleSupSub&&(s.limits||t.style===ue.DISPLAY)?o="munder":o="msub"}else{var l=e.base;l&&l.type==="op"&&l.limits&&(t.style===ue.DISPLAY||l.alwaysHandleSupSub)||l&&l.type==="operatorname"&&l.alwaysHandleSupSub&&(l.limits||t.style===ue.DISPLAY)?o="mover":o="msup"}return new $.MathNode(o,i)}});vr({type:"atom",htmlBuilder(e,t){return I.mathsym(e.text,e.mode,t,["m"+e.family])},mathmlBuilder(e,t){var r=new $.MathNode("mo",[gt(e.text,e.mode)]);if(e.family==="bin"){var n=S0(e,t);n==="bold-italic"&&r.setAttribute("mathvariant",n)}else e.family==="punct"?r.setAttribute("separator","true"):(e.family==="open"||e.family==="close")&&r.setAttribute("stretchy","false");return r}});var h1={mi:"italic",mn:"normal",mtext:"normal"};vr({type:"mathord",htmlBuilder(e,t){return I.makeOrd(e,t,"mathord")},mathmlBuilder(e,t){var r=new $.MathNode("mi",[gt(e.text,e.mode,t)]),n=S0(e,t)||"italic";return n!==h1[r.type]&&r.setAttribute("mathvariant",n),r}});vr({type:"textord",htmlBuilder(e,t){return I.makeOrd(e,t,"textord")},mathmlBuilder(e,t){var r=gt(e.text,e.mode,t),n=S0(e,t)||"normal",a;return e.mode==="text"?a=new $.MathNode("mtext",[r]):/[0-9]/.test(e.text)?a=new $.MathNode("mn",[r]):e.text==="\\prime"?a=new $.MathNode("mo",[r]):a=new $.MathNode("mi",[r]),n!==h1[a.type]&&a.setAttribute("mathvariant",n),a}});var li={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},si={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};vr({type:"spacing",htmlBuilder(e,t){if(si.hasOwnProperty(e.text)){var r=si[e.text].className||"";if(e.mode==="text"){var n=I.makeOrd(e,t,"textord");return n.classes.push(r),n}else return I.makeSpan(["mspace",r],[I.mathsym(e.text,e.mode,t)],t)}else{if(li.hasOwnProperty(e.text))return I.makeSpan(["mspace",li[e.text]],[],t);throw new U('Unknown type of space "'+e.text+'"')}},mathmlBuilder(e,t){var r;if(si.hasOwnProperty(e.text))r=new $.MathNode("mtext",[new $.TextNode(" ")]);else{if(li.hasOwnProperty(e.text))return new $.MathNode("mspace");throw new U('Unknown type of space "'+e.text+'"')}return r}});var Rl=()=>{var e=new $.MathNode("mtd",[]);return e.setAttribute("width","50%"),e};vr({type:"tag",mathmlBuilder(e,t){var r=new $.MathNode("mtable",[new $.MathNode("mtr",[Rl(),new $.MathNode("mtd",[tr(e.body,t)]),Rl(),new $.MathNode("mtd",[tr(e.tag,t)])])]);return r.setAttribute("width","100%"),r}});var Pl={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},Bl={"\\textbf":"textbf","\\textmd":"textmd"},b9={"\\textit":"textit","\\textup":"textup"},Fl=(e,t)=>{var r=e.font;if(r){if(Pl[r])return t.withTextFontFamily(Pl[r]);if(Bl[r])return t.withTextFontWeight(Bl[r]);if(r==="\\emph")return t.fontShape==="textit"?t.withTextFontShape("textup"):t.withTextFontShape("textit")}else return t;return t.withTextFontShape(b9[r])};re({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(e,t){var{parser:r,funcName:n}=e,a=t[0];return{type:"text",mode:r.mode,body:je(a),font:n}},htmlBuilder(e,t){var r=Fl(e,t),n=Ge(e.body,r,!0);return I.makeSpan(["mord","text"],n,r)},mathmlBuilder(e,t){var r=Fl(e,t);return tr(e.body,r)}});re({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"underline",mode:r.mode,body:t[0]}},htmlBuilder(e,t){var r=Se(e.body,t),n=I.makeLineSpan("underline-line",t),a=t.fontMetrics().defaultRuleThickness,i=I.makeVList({positionType:"top",positionData:r.height,children:[{type:"kern",size:a},{type:"elem",elem:n},{type:"kern",size:3*a},{type:"elem",elem:r}]},t);return I.makeSpan(["mord","underline"],[i],t)},mathmlBuilder(e,t){var r=new $.MathNode("mo",[new $.TextNode("‾")]);r.setAttribute("stretchy","true");var n=new $.MathNode("munder",[Ne(e.body,t),r]);return n.setAttribute("accentunder","true"),n}});re({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(e,t){var{parser:r}=e;return{type:"vcenter",mode:r.mode,body:t[0]}},htmlBuilder(e,t){var r=Se(e.body,t),n=t.fontMetrics().axisHeight,a=.5*(r.height-n-(r.depth+n));return I.makeVList({positionType:"shift",positionData:a,children:[{type:"elem",elem:r}]},t)},mathmlBuilder(e,t){return new $.MathNode("mpadded",[Ne(e.body,t)],["vcenter"])}});re({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,t,r){throw new U("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(e,t){for(var r=Ol(e),n=[],a=t.havingStyle(t.style.text()),i=0;i<r.length;i++){var o=r[i];o==="~"&&(o="\\textasciitilde"),n.push(I.makeSymbol(o,"Typewriter-Regular",e.mode,a,["mord","texttt"]))}return I.makeSpan(["mord","text"].concat(a.sizingClasses(t)),I.tryCombineChars(n),a)},mathmlBuilder(e,t){var r=new $.TextNode(Ol(e)),n=new $.MathNode("mtext",[r]);return n.setAttribute("mathvariant","monospace"),n}});var Ol=e=>e.body.replace(/ /g,e.star?"␣":" "),Zt=Rc,d1=`[ \r
358
+ ]`,y9="\\\\[a-zA-Z@]+",x9="\\\\[^\uD800-\uDFFF]",w9="("+y9+")"+d1+"*",k9=`\\\\(
327
359
  |[ \r ]+
328
- ?)[ \r ]*`,qr="[̀-ͯ]",t5=new RegExp(qr+"+$"),r5="("+Fo+"+)|"+(e5+"|")+"([!-\\[\\]-‧‪-퟿豈-￿]"+(qr+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(qr+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+Q4)+("|"+J4+")");class Nn{constructor(e,t){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=e,this.settings=t,this.tokenRegex=new RegExp(r5,"g"),this.catcodes={"%":14,"~":13}}setCatcode(e,t){this.catcodes[e]=t}lex(){var e=this.input,t=this.tokenRegex.lastIndex;if(t===e.length)return new Ie("EOF",new Ee(this,t,t));var a=this.tokenRegex.exec(e);if(a===null||a.index!==t)throw new L("Unexpected character: '"+e[t]+"'",new Ie(e[t],new Ee(this,t,t+1)));var n=a[6]||a[3]||(a[2]?"\\ ":" ");if(this.catcodes[n]===14){var s=e.indexOf(`
329
- `,this.tokenRegex.lastIndex);return s===-1?(this.tokenRegex.lastIndex=e.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=s+1,this.lex()}return new Ie(n,new Ee(this,t,this.tokenRegex.lastIndex))}}class a5{constructor(e,t){e===void 0&&(e={}),t===void 0&&(t={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=t,this.builtins=e,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new L("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var e=this.undefStack.pop();for(var t in e)e.hasOwnProperty(t)&&(e[t]==null?delete this.current[t]:this.current[t]=e[t])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(e){return this.current.hasOwnProperty(e)||this.builtins.hasOwnProperty(e)}get(e){return this.current.hasOwnProperty(e)?this.current[e]:this.builtins[e]}set(e,t,a){if(a===void 0&&(a=!1),a){for(var n=0;n<this.undefStack.length;n++)delete this.undefStack[n][e];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][e]=t)}else{var s=this.undefStack[this.undefStack.length-1];s&&!s.hasOwnProperty(e)&&(s[e]=this.current[e])}t==null?delete this.current[e]:this.current[e]=t}}var n5=Ao;v("\\noexpand",function(r){var e=r.popToken();return r.isExpandable(e.text)&&(e.noexpand=!0,e.treatAsRelax=!0),{tokens:[e],numArgs:0}});v("\\expandafter",function(r){var e=r.popToken();return r.expandOnce(!0),{tokens:[e],numArgs:0}});v("\\@firstoftwo",function(r){var e=r.consumeArgs(2);return{tokens:e[0],numArgs:0}});v("\\@secondoftwo",function(r){var e=r.consumeArgs(2);return{tokens:e[1],numArgs:0}});v("\\@ifnextchar",function(r){var e=r.consumeArgs(3);r.consumeSpaces();var t=r.future();return e[0].length===1&&e[0][0].text===t.text?{tokens:e[1],numArgs:0}:{tokens:e[2],numArgs:0}});v("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");v("\\TextOrMath",function(r){var e=r.consumeArgs(2);return r.mode==="text"?{tokens:e[0],numArgs:0}:{tokens:e[1],numArgs:0}});var Dn={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};v("\\char",function(r){var e=r.popToken(),t,a="";if(e.text==="'")t=8,e=r.popToken();else if(e.text==='"')t=16,e=r.popToken();else if(e.text==="`")if(e=r.popToken(),e.text[0]==="\\")a=e.text.charCodeAt(1);else{if(e.text==="EOF")throw new L("\\char` missing argument");a=e.text.charCodeAt(0)}else t=10;if(t){if(a=Dn[e.text],a==null||a>=t)throw new L("Invalid base-"+t+" digit "+e.text);for(var n;(n=Dn[r.future().text])!=null&&n<t;)a*=t,a+=n,r.popToken()}return"\\@char{"+a+"}"});var va=(r,e,t,a)=>{var n=r.consumeArg().tokens;if(n.length!==1)throw new L("\\newcommand's first argument must be a macro name");var s=n[0].text,o=r.isDefined(s);if(o&&!e)throw new L("\\newcommand{"+s+"} attempting to redefine "+(s+"; use \\renewcommand"));if(!o&&!t)throw new L("\\renewcommand{"+s+"} when command "+s+" does not yet exist; use \\newcommand");var l=0;if(n=r.consumeArg().tokens,n.length===1&&n[0].text==="["){for(var u="",d=r.expandNextToken();d.text!=="]"&&d.text!=="EOF";)u+=d.text,d=r.expandNextToken();if(!u.match(/^\s*[0-9]+\s*$/))throw new L("Invalid number of arguments: "+u);l=parseInt(u),n=r.consumeArg().tokens}return o&&a||r.macros.set(s,{tokens:n,numArgs:l}),""};v("\\newcommand",r=>va(r,!1,!0,!1));v("\\renewcommand",r=>va(r,!0,!1,!1));v("\\providecommand",r=>va(r,!0,!0,!0));v("\\message",r=>{var e=r.consumeArgs(1)[0];return console.log(e.reverse().map(t=>t.text).join("")),""});v("\\errmessage",r=>{var e=r.consumeArgs(1)[0];return console.error(e.reverse().map(t=>t.text).join("")),""});v("\\show",r=>{var e=r.popToken(),t=e.text;return console.log(e,r.macros.get(t),y0[t],ie.math[t],ie.text[t]),""});v("\\bgroup","{");v("\\egroup","}");v("~","\\nobreakspace");v("\\lq","`");v("\\rq","'");v("\\aa","\\r a");v("\\AA","\\r A");v("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}");v("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");v("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}");v("ℬ","\\mathscr{B}");v("ℰ","\\mathscr{E}");v("ℱ","\\mathscr{F}");v("ℋ","\\mathscr{H}");v("ℐ","\\mathscr{I}");v("ℒ","\\mathscr{L}");v("ℳ","\\mathscr{M}");v("ℛ","\\mathscr{R}");v("ℭ","\\mathfrak{C}");v("ℌ","\\mathfrak{H}");v("ℨ","\\mathfrak{Z}");v("\\Bbbk","\\Bbb{k}");v("·","\\cdotp");v("\\llap","\\mathllap{\\textrm{#1}}");v("\\rlap","\\mathrlap{\\textrm{#1}}");v("\\clap","\\mathclap{\\textrm{#1}}");v("\\mathstrut","\\vphantom{(}");v("\\underbar","\\underline{\\text{#1}}");v("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}');v("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}");v("\\ne","\\neq");v("≠","\\neq");v("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}");v("∉","\\notin");v("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}");v("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}");v("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}");v("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}");v("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}");v("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}");v("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}");v("⟂","\\perp");v("‼","\\mathclose{!\\mkern-0.8mu!}");v("∌","\\notni");v("⌜","\\ulcorner");v("⌝","\\urcorner");v("⌞","\\llcorner");v("⌟","\\lrcorner");v("©","\\copyright");v("®","\\textregistered");v("️","\\textregistered");v("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');v("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');v("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');v("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');v("\\vdots","{\\varvdots\\rule{0pt}{15pt}}");v("⋮","\\vdots");v("\\varGamma","\\mathit{\\Gamma}");v("\\varDelta","\\mathit{\\Delta}");v("\\varTheta","\\mathit{\\Theta}");v("\\varLambda","\\mathit{\\Lambda}");v("\\varXi","\\mathit{\\Xi}");v("\\varPi","\\mathit{\\Pi}");v("\\varSigma","\\mathit{\\Sigma}");v("\\varUpsilon","\\mathit{\\Upsilon}");v("\\varPhi","\\mathit{\\Phi}");v("\\varPsi","\\mathit{\\Psi}");v("\\varOmega","\\mathit{\\Omega}");v("\\substack","\\begin{subarray}{c}#1\\end{subarray}");v("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");v("\\boxed","\\fbox{$\\displaystyle{#1}$}");v("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;");v("\\implies","\\DOTSB\\;\\Longrightarrow\\;");v("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");v("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}");v("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");var En={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};v("\\dots",function(r){var e="\\dotso",t=r.expandAfterFuture().text;return t in En?e=En[t]:(t.slice(0,4)==="\\not"||t in ie.math&&["bin","rel"].includes(ie.math[t].group))&&(e="\\dotsb"),e});var ga={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};v("\\dotso",function(r){var e=r.future().text;return e in ga?"\\ldots\\,":"\\ldots"});v("\\dotsc",function(r){var e=r.future().text;return e in ga&&e!==","?"\\ldots\\,":"\\ldots"});v("\\cdots",function(r){var e=r.future().text;return e in ga?"\\@cdots\\,":"\\@cdots"});v("\\dotsb","\\cdots");v("\\dotsm","\\cdots");v("\\dotsi","\\!\\cdots");v("\\dotsx","\\ldots\\,");v("\\DOTSI","\\relax");v("\\DOTSB","\\relax");v("\\DOTSX","\\relax");v("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");v("\\,","\\tmspace+{3mu}{.1667em}");v("\\thinspace","\\,");v("\\>","\\mskip{4mu}");v("\\:","\\tmspace+{4mu}{.2222em}");v("\\medspace","\\:");v("\\;","\\tmspace+{5mu}{.2777em}");v("\\thickspace","\\;");v("\\!","\\tmspace-{3mu}{.1667em}");v("\\negthinspace","\\!");v("\\negmedspace","\\tmspace-{4mu}{.2222em}");v("\\negthickspace","\\tmspace-{5mu}{.277em}");v("\\enspace","\\kern.5em ");v("\\enskip","\\hskip.5em\\relax");v("\\quad","\\hskip1em\\relax");v("\\qquad","\\hskip2em\\relax");v("\\tag","\\@ifstar\\tag@literal\\tag@paren");v("\\tag@paren","\\tag@literal{({#1})}");v("\\tag@literal",r=>{if(r.macros.get("\\df@tag"))throw new L("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"});v("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");v("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");v("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}");v("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");v("\\newline","\\\\\\relax");v("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var qo=I(Ye["Main-Regular"][84][1]-.7*Ye["Main-Regular"][65][1]);v("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+qo+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");v("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+qo+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}");v("\\hspace","\\@ifstar\\@hspacer\\@hspace");v("\\@hspace","\\hskip #1\\relax");v("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax");v("\\ordinarycolon",":");v("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}");v("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}');v("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}');v("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}');v("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}');v("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}');v("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}');v("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}');v("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}');v("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}');v("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}');v("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}');v("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}');v("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}');v("∷","\\dblcolon");v("∹","\\eqcolon");v("≔","\\coloneqq");v("≕","\\eqqcolon");v("⩴","\\Coloneqq");v("\\ratio","\\vcentcolon");v("\\coloncolon","\\dblcolon");v("\\colonequals","\\coloneqq");v("\\coloncolonequals","\\Coloneqq");v("\\equalscolon","\\eqqcolon");v("\\equalscoloncolon","\\Eqqcolon");v("\\colonminus","\\coloneq");v("\\coloncolonminus","\\Coloneq");v("\\minuscolon","\\eqcolon");v("\\minuscoloncolon","\\Eqcolon");v("\\coloncolonapprox","\\Colonapprox");v("\\coloncolonsim","\\Colonsim");v("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");v("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");v("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");v("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");v("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}");v("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}");v("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}");v("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}");v("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}");v("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}");v("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}");v("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}");v("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}");v("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}");v("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}");v("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}");v("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}");v("\\nleqq","\\html@mathml{\\@nleqq}{≰}");v("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}");v("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}");v("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}");v("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}");v("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}");v("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}");v("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}");v("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}");v("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}");v("\\imath","\\html@mathml{\\@imath}{ı}");v("\\jmath","\\html@mathml{\\@jmath}{ȷ}");v("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}");v("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}");v("⟦","\\llbracket");v("⟧","\\rrbracket");v("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}");v("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}");v("⦃","\\lBrace");v("⦄","\\rBrace");v("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}");v("⦵","\\minuso");v("\\darr","\\downarrow");v("\\dArr","\\Downarrow");v("\\Darr","\\Downarrow");v("\\lang","\\langle");v("\\rang","\\rangle");v("\\uarr","\\uparrow");v("\\uArr","\\Uparrow");v("\\Uarr","\\Uparrow");v("\\N","\\mathbb{N}");v("\\R","\\mathbb{R}");v("\\Z","\\mathbb{Z}");v("\\alef","\\aleph");v("\\alefsym","\\aleph");v("\\Alpha","\\mathrm{A}");v("\\Beta","\\mathrm{B}");v("\\bull","\\bullet");v("\\Chi","\\mathrm{X}");v("\\clubs","\\clubsuit");v("\\cnums","\\mathbb{C}");v("\\Complex","\\mathbb{C}");v("\\Dagger","\\ddagger");v("\\diamonds","\\diamondsuit");v("\\empty","\\emptyset");v("\\Epsilon","\\mathrm{E}");v("\\Eta","\\mathrm{H}");v("\\exist","\\exists");v("\\harr","\\leftrightarrow");v("\\hArr","\\Leftrightarrow");v("\\Harr","\\Leftrightarrow");v("\\hearts","\\heartsuit");v("\\image","\\Im");v("\\infin","\\infty");v("\\Iota","\\mathrm{I}");v("\\isin","\\in");v("\\Kappa","\\mathrm{K}");v("\\larr","\\leftarrow");v("\\lArr","\\Leftarrow");v("\\Larr","\\Leftarrow");v("\\lrarr","\\leftrightarrow");v("\\lrArr","\\Leftrightarrow");v("\\Lrarr","\\Leftrightarrow");v("\\Mu","\\mathrm{M}");v("\\natnums","\\mathbb{N}");v("\\Nu","\\mathrm{N}");v("\\Omicron","\\mathrm{O}");v("\\plusmn","\\pm");v("\\rarr","\\rightarrow");v("\\rArr","\\Rightarrow");v("\\Rarr","\\Rightarrow");v("\\real","\\Re");v("\\reals","\\mathbb{R}");v("\\Reals","\\mathbb{R}");v("\\Rho","\\mathrm{P}");v("\\sdot","\\cdot");v("\\sect","\\S");v("\\spades","\\spadesuit");v("\\sub","\\subset");v("\\sube","\\subseteq");v("\\supe","\\supseteq");v("\\Tau","\\mathrm{T}");v("\\thetasym","\\vartheta");v("\\weierp","\\wp");v("\\Zeta","\\mathrm{Z}");v("\\argmin","\\DOTSB\\operatorname*{arg\\,min}");v("\\argmax","\\DOTSB\\operatorname*{arg\\,max}");v("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits");v("\\bra","\\mathinner{\\langle{#1}|}");v("\\ket","\\mathinner{|{#1}\\rangle}");v("\\braket","\\mathinner{\\langle{#1}\\rangle}");v("\\Bra","\\left\\langle#1\\right|");v("\\Ket","\\left|#1\\right\\rangle");var Ho=r=>e=>{var t=e.consumeArg().tokens,a=e.consumeArg().tokens,n=e.consumeArg().tokens,s=e.consumeArg().tokens,o=e.macros.get("|"),l=e.macros.get("\\|");e.macros.beginGroup();var u=g=>x=>{r&&(x.macros.set("|",o),n.length&&x.macros.set("\\|",l));var w=g;if(!g&&n.length){var M=x.future();M.text==="|"&&(x.popToken(),w=!0)}return{tokens:w?n:a,numArgs:0}};e.macros.set("|",u(!1)),n.length&&e.macros.set("\\|",u(!0));var d=e.consumeArg().tokens,f=e.expandTokens([...s,...d,...t]);return e.macros.endGroup(),{tokens:f.reverse(),numArgs:0}};v("\\bra@ket",Ho(!1));v("\\bra@set",Ho(!0));v("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");v("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");v("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");v("\\angln","{\\angl n}");v("\\blue","\\textcolor{##6495ed}{#1}");v("\\orange","\\textcolor{##ffa500}{#1}");v("\\pink","\\textcolor{##ff00af}{#1}");v("\\red","\\textcolor{##df0030}{#1}");v("\\green","\\textcolor{##28ae7b}{#1}");v("\\gray","\\textcolor{gray}{#1}");v("\\purple","\\textcolor{##9d38bd}{#1}");v("\\blueA","\\textcolor{##ccfaff}{#1}");v("\\blueB","\\textcolor{##80f6ff}{#1}");v("\\blueC","\\textcolor{##63d9ea}{#1}");v("\\blueD","\\textcolor{##11accd}{#1}");v("\\blueE","\\textcolor{##0c7f99}{#1}");v("\\tealA","\\textcolor{##94fff5}{#1}");v("\\tealB","\\textcolor{##26edd5}{#1}");v("\\tealC","\\textcolor{##01d1c1}{#1}");v("\\tealD","\\textcolor{##01a995}{#1}");v("\\tealE","\\textcolor{##208170}{#1}");v("\\greenA","\\textcolor{##b6ffb0}{#1}");v("\\greenB","\\textcolor{##8af281}{#1}");v("\\greenC","\\textcolor{##74cf70}{#1}");v("\\greenD","\\textcolor{##1fab54}{#1}");v("\\greenE","\\textcolor{##0d923f}{#1}");v("\\goldA","\\textcolor{##ffd0a9}{#1}");v("\\goldB","\\textcolor{##ffbb71}{#1}");v("\\goldC","\\textcolor{##ff9c39}{#1}");v("\\goldD","\\textcolor{##e07d10}{#1}");v("\\goldE","\\textcolor{##a75a05}{#1}");v("\\redA","\\textcolor{##fca9a9}{#1}");v("\\redB","\\textcolor{##ff8482}{#1}");v("\\redC","\\textcolor{##f9685d}{#1}");v("\\redD","\\textcolor{##e84d39}{#1}");v("\\redE","\\textcolor{##bc2612}{#1}");v("\\maroonA","\\textcolor{##ffbde0}{#1}");v("\\maroonB","\\textcolor{##ff92c6}{#1}");v("\\maroonC","\\textcolor{##ed5fa6}{#1}");v("\\maroonD","\\textcolor{##ca337c}{#1}");v("\\maroonE","\\textcolor{##9e034e}{#1}");v("\\purpleA","\\textcolor{##ddd7ff}{#1}");v("\\purpleB","\\textcolor{##c6b9fc}{#1}");v("\\purpleC","\\textcolor{##aa87ff}{#1}");v("\\purpleD","\\textcolor{##7854ab}{#1}");v("\\purpleE","\\textcolor{##543b78}{#1}");v("\\mintA","\\textcolor{##f5f9e8}{#1}");v("\\mintB","\\textcolor{##edf2df}{#1}");v("\\mintC","\\textcolor{##e0e5cc}{#1}");v("\\grayA","\\textcolor{##f6f7f7}{#1}");v("\\grayB","\\textcolor{##f0f1f2}{#1}");v("\\grayC","\\textcolor{##e3e5e6}{#1}");v("\\grayD","\\textcolor{##d6d8da}{#1}");v("\\grayE","\\textcolor{##babec2}{#1}");v("\\grayF","\\textcolor{##888d93}{#1}");v("\\grayG","\\textcolor{##626569}{#1}");v("\\grayH","\\textcolor{##3b3e40}{#1}");v("\\grayI","\\textcolor{##21242c}{#1}");v("\\kaBlue","\\textcolor{##314453}{#1}");v("\\kaGreen","\\textcolor{##71B307}{#1}");var Vo={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class s5{constructor(e,t,a){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=t,this.expansionCount=0,this.feed(e),this.macros=new a5(n5,t.macros),this.mode=a,this.stack=[]}feed(e){this.lexer=new Nn(e,this.settings)}switchMode(e){this.mode=e}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(e){this.stack.push(e)}pushTokens(e){this.stack.push(...e)}scanArgument(e){var t,a,n;if(e){if(this.consumeSpaces(),this.future().text!=="[")return null;t=this.popToken(),{tokens:n,end:a}=this.consumeArg(["]"])}else({tokens:n,start:t,end:a}=this.consumeArg());return this.pushToken(new Ie("EOF",a.loc)),this.pushTokens(n),new Ie("",Ee.range(t,a))}consumeSpaces(){for(;;){var e=this.future();if(e.text===" ")this.stack.pop();else break}}consumeArg(e){var t=[],a=e&&e.length>0;a||this.consumeSpaces();var n=this.future(),s,o=0,l=0;do{if(s=this.popToken(),t.push(s),s.text==="{")++o;else if(s.text==="}"){if(--o,o===-1)throw new L("Extra }",s)}else if(s.text==="EOF")throw new L("Unexpected end of input in a macro argument, expected '"+(e&&a?e[l]:"}")+"'",s);if(e&&a)if((o===0||o===1&&e[l]==="{")&&s.text===e[l]){if(++l,l===e.length){t.splice(-l,l);break}}else l=0}while(o!==0||a);return n.text==="{"&&t[t.length-1].text==="}"&&(t.pop(),t.shift()),t.reverse(),{tokens:t,start:n,end:s}}consumeArgs(e,t){if(t){if(t.length!==e+1)throw new L("The length of delimiters doesn't match the number of args!");for(var a=t[0],n=0;n<a.length;n++){var s=this.popToken();if(a[n]!==s.text)throw new L("Use of the macro doesn't match its definition",s)}}for(var o=[],l=0;l<e;l++)o.push(this.consumeArg(t&&t[l+1]).tokens);return o}countExpansion(e){if(this.expansionCount+=e,this.expansionCount>this.settings.maxExpand)throw new L("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(e){var t=this.popToken(),a=t.text,n=t.noexpand?null:this._getExpansion(a);if(n==null||e&&n.unexpandable){if(e&&n==null&&a[0]==="\\"&&!this.isDefined(a))throw new L("Undefined control sequence: "+a);return this.pushToken(t),!1}this.countExpansion(1);var s=n.tokens,o=this.consumeArgs(n.numArgs,n.delimiters);if(n.numArgs){s=s.slice();for(var l=s.length-1;l>=0;--l){var u=s[l];if(u.text==="#"){if(l===0)throw new L("Incomplete placeholder at end of macro body",u);if(u=s[--l],u.text==="#")s.splice(l+1,1);else if(/^[1-9]$/.test(u.text))s.splice(l,2,...o[+u.text-1]);else throw new L("Not a valid argument number",u)}}}return this.pushTokens(s),s.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var e=this.stack.pop();return e.treatAsRelax&&(e.text="\\relax"),e}throw new Error}expandMacro(e){return this.macros.has(e)?this.expandTokens([new Ie(e)]):void 0}expandTokens(e){var t=[],a=this.stack.length;for(this.pushTokens(e);this.stack.length>a;)if(this.expandOnce(!0)===!1){var n=this.stack.pop();n.treatAsRelax&&(n.noexpand=!1,n.treatAsRelax=!1),t.push(n)}return this.countExpansion(t.length),t}expandMacroAsText(e){var t=this.expandMacro(e);return t&&t.map(a=>a.text).join("")}_getExpansion(e){var t=this.macros.get(e);if(t==null)return t;if(e.length===1){var a=this.lexer.catcodes[e];if(a!=null&&a!==13)return}var n=typeof t=="function"?t(this):t;if(typeof n=="string"){var s=0;if(n.indexOf("#")!==-1)for(var o=n.replace(/##/g,"");o.indexOf("#"+(s+1))!==-1;)++s;for(var l=new Nn(n,this.settings),u=[],d=l.lex();d.text!=="EOF";)u.push(d),d=l.lex();u.reverse();var f={tokens:u,numArgs:s};return f}return n}isDefined(e){return this.macros.has(e)||y0.hasOwnProperty(e)||ie.math.hasOwnProperty(e)||ie.text.hasOwnProperty(e)||Vo.hasOwnProperty(e)}isExpandable(e){var t=this.macros.get(e);return t!=null?typeof t=="string"||typeof t=="function"||!t.unexpandable:y0.hasOwnProperty(e)&&!y0[e].primitive}}var Rn=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,Tt=Object.freeze({"₊":"+","₋":"-","₌":"=","₍":"(","₎":")","₀":"0","₁":"1","₂":"2","₃":"3","₄":"4","₅":"5","₆":"6","₇":"7","₈":"8","₉":"9","ₐ":"a","ₑ":"e","ₕ":"h","ᵢ":"i","ⱼ":"j","ₖ":"k","ₗ":"l","ₘ":"m","ₙ":"n","ₒ":"o","ₚ":"p","ᵣ":"r","ₛ":"s","ₜ":"t","ᵤ":"u","ᵥ":"v","ₓ":"x","ᵦ":"β","ᵧ":"γ","ᵨ":"ρ","ᵩ":"ϕ","ᵪ":"χ","⁺":"+","⁻":"-","⁼":"=","⁽":"(","⁾":")","⁰":"0","¹":"1","²":"2","³":"3","⁴":"4","⁵":"5","⁶":"6","⁷":"7","⁸":"8","⁹":"9","ᴬ":"A","ᴮ":"B","ᴰ":"D","ᴱ":"E","ᴳ":"G","ᴴ":"H","ᴵ":"I","ᴶ":"J","ᴷ":"K","ᴸ":"L","ᴹ":"M","ᴺ":"N","ᴼ":"O","ᴾ":"P","ᴿ":"R","ᵀ":"T","ᵁ":"U","ⱽ":"V","ᵂ":"W","ᵃ":"a","ᵇ":"b","ᶜ":"c","ᵈ":"d","ᵉ":"e","ᶠ":"f","ᵍ":"g",ʰ:"h","ⁱ":"i",ʲ:"j","ᵏ":"k",ˡ:"l","ᵐ":"m",ⁿ:"n","ᵒ":"o","ᵖ":"p",ʳ:"r",ˢ:"s","ᵗ":"t","ᵘ":"u","ᵛ":"v",ʷ:"w",ˣ:"x",ʸ:"y","ᶻ":"z","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),kr={"́":{text:"\\'",math:"\\acute"},"̀":{text:"\\`",math:"\\grave"},"̈":{text:'\\"',math:"\\ddot"},"̃":{text:"\\~",math:"\\tilde"},"̄":{text:"\\=",math:"\\bar"},"̆":{text:"\\u",math:"\\breve"},"̌":{text:"\\v",math:"\\check"},"̂":{text:"\\^",math:"\\hat"},"̇":{text:"\\.",math:"\\dot"},"̊":{text:"\\r",math:"\\mathring"},"̋":{text:"\\H"},"̧":{text:"\\c"}},Bn={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};class Yt{constructor(e,t){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new s5(e,t,this.mode),this.settings=t,this.leftrightDepth=0}expect(e,t){if(t===void 0&&(t=!0),this.fetch().text!==e)throw new L("Expected '"+e+"', got '"+this.fetch().text+"'",this.fetch());t&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(e){this.mode=e,this.gullet.switchMode(e)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var e=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),e}finally{this.gullet.endGroups()}}subparse(e){var t=this.nextToken;this.consume(),this.gullet.pushToken(new Ie("}")),this.gullet.pushTokens(e);var a=this.parseExpression(!1);return this.expect("}"),this.nextToken=t,a}parseExpression(e,t){for(var a=[];;){this.mode==="math"&&this.consumeSpaces();var n=this.fetch();if(Yt.endOfExpression.indexOf(n.text)!==-1||t&&n.text===t||e&&y0[n.text]&&y0[n.text].infix)break;var s=this.parseAtom(t);if(s){if(s.type==="internal")continue}else break;a.push(s)}return this.mode==="text"&&this.formLigatures(a),this.handleInfixNodes(a)}handleInfixNodes(e){for(var t=-1,a,n=0;n<e.length;n++)if(e[n].type==="infix"){if(t!==-1)throw new L("only one infix operator per group",e[n].token);t=n,a=e[n].replaceWith}if(t!==-1&&a){var s,o,l=e.slice(0,t),u=e.slice(t+1);l.length===1&&l[0].type==="ordgroup"?s=l[0]:s={type:"ordgroup",mode:this.mode,body:l},u.length===1&&u[0].type==="ordgroup"?o=u[0]:o={type:"ordgroup",mode:this.mode,body:u};var d;return a==="\\\\abovefrac"?d=this.callFunction(a,[s,e[t],o],[]):d=this.callFunction(a,[s,o],[]),[d]}else return e}handleSupSubscript(e){var t=this.fetch(),a=t.text;this.consume(),this.consumeSpaces();var n;do{var s;n=this.parseGroup(e)}while(((s=n)==null?void 0:s.type)==="internal");if(!n)throw new L("Expected group after '"+a+"'",t);return n}formatUnsupportedCmd(e){for(var t=[],a=0;a<e.length;a++)t.push({type:"textord",mode:"text",text:e[a]});var n={type:"text",mode:this.mode,body:t},s={type:"color",mode:this.mode,color:this.settings.errorColor,body:[n]};return s}parseAtom(e){var t=this.parseGroup("atom",e);if((t==null?void 0:t.type)==="internal"||this.mode==="text")return t;for(var a,n;;){this.consumeSpaces();var s=this.fetch();if(s.text==="\\limits"||s.text==="\\nolimits"){if(t&&t.type==="op"){var o=s.text==="\\limits";t.limits=o,t.alwaysHandleSupSub=!0}else if(t&&t.type==="operatorname")t.alwaysHandleSupSub&&(t.limits=s.text==="\\limits");else throw new L("Limit controls must follow a math operator",s);this.consume()}else if(s.text==="^"){if(a)throw new L("Double superscript",s);a=this.handleSupSubscript("superscript")}else if(s.text==="_"){if(n)throw new L("Double subscript",s);n=this.handleSupSubscript("subscript")}else if(s.text==="'"){if(a)throw new L("Double superscript",s);var l={type:"textord",mode:this.mode,text:"\\prime"},u=[l];for(this.consume();this.fetch().text==="'";)u.push(l),this.consume();this.fetch().text==="^"&&u.push(this.handleSupSubscript("superscript")),a={type:"ordgroup",mode:this.mode,body:u}}else if(Tt[s.text]){var d=Rn.test(s.text),f=[];for(f.push(new Ie(Tt[s.text])),this.consume();;){var g=this.fetch().text;if(!Tt[g]||Rn.test(g)!==d)break;f.unshift(new Ie(Tt[g])),this.consume()}var x=this.subparse(f);d?n={type:"ordgroup",mode:"math",body:x}:a={type:"ordgroup",mode:"math",body:x}}else break}return a||n?{type:"supsub",mode:this.mode,base:t,sup:a,sub:n}:t}parseFunction(e,t){var a=this.fetch(),n=a.text,s=y0[n];if(!s)return null;if(this.consume(),t&&t!=="atom"&&!s.allowedInArgument)throw new L("Got function '"+n+"' with no arguments"+(t?" as "+t:""),a);if(this.mode==="text"&&!s.allowedInText)throw new L("Can't use function '"+n+"' in text mode",a);if(this.mode==="math"&&s.allowedInMath===!1)throw new L("Can't use function '"+n+"' in math mode",a);var{args:o,optArgs:l}=this.parseArguments(n,s);return this.callFunction(n,o,l,a,e)}callFunction(e,t,a,n,s){var o={funcName:e,parser:this,token:n,breakOnTokenText:s},l=y0[e];if(l&&l.handler)return l.handler(o,t,a);throw new L("No function handler for "+e)}parseArguments(e,t){var a=t.numArgs+t.numOptionalArgs;if(a===0)return{args:[],optArgs:[]};for(var n=[],s=[],o=0;o<a;o++){var l=t.argTypes&&t.argTypes[o],u=o<t.numOptionalArgs;(t.primitive&&l==null||t.type==="sqrt"&&o===1&&s[0]==null)&&(l="primitive");var d=this.parseGroupOfType("argument to '"+e+"'",l,u);if(u)s.push(d);else if(d!=null)n.push(d);else throw new L("Null argument, please report this as a bug")}return{args:n,optArgs:s}}parseGroupOfType(e,t,a){switch(t){case"color":return this.parseColorGroup(a);case"size":return this.parseSizeGroup(a);case"url":return this.parseUrlGroup(a);case"math":case"text":return this.parseArgumentGroup(a,t);case"hbox":{var n=this.parseArgumentGroup(a,"text");return n!=null?{type:"styling",mode:n.mode,body:[n],style:"text"}:null}case"raw":{var s=this.parseStringGroup("raw",a);return s!=null?{type:"raw",mode:"text",string:s.text}:null}case"primitive":{if(a)throw new L("A primitive argument cannot be optional");var o=this.parseGroup(e);if(o==null)throw new L("Expected group as "+e,this.fetch());return o}case"original":case null:case void 0:return this.parseArgumentGroup(a);default:throw new L("Unknown group type as "+e,this.fetch())}}consumeSpaces(){for(;this.fetch().text===" ";)this.consume()}parseStringGroup(e,t){var a=this.gullet.scanArgument(t);if(a==null)return null;for(var n="",s;(s=this.fetch()).text!=="EOF";)n+=s.text,this.consume();return this.consume(),a.text=n,a}parseRegexGroup(e,t){for(var a=this.fetch(),n=a,s="",o;(o=this.fetch()).text!=="EOF"&&e.test(s+o.text);)n=o,s+=n.text,this.consume();if(s==="")throw new L("Invalid "+t+": '"+a.text+"'",a);return a.range(n,s)}parseColorGroup(e){var t=this.parseStringGroup("color",e);if(t==null)return null;var a=/^(#[a-f0-9]{3,4}|#[a-f0-9]{6}|#[a-f0-9]{8}|[a-f0-9]{6}|[a-z]+)$/i.exec(t.text);if(!a)throw new L("Invalid color: '"+t.text+"'",t);var n=a[0];return/^[0-9a-f]{6}$/i.test(n)&&(n="#"+n),{type:"color-token",mode:this.mode,color:n}}parseSizeGroup(e){var t,a=!1;if(this.gullet.consumeSpaces(),!e&&this.gullet.future().text!=="{"?t=this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"):t=this.parseStringGroup("size",e),!t)return null;!e&&t.text.length===0&&(t.text="0pt",a=!0);var n=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t.text);if(!n)throw new L("Invalid size: '"+t.text+"'",t);var s={number:+(n[1]+n[2]),unit:n[3]};if(!Ks(s))throw new L("Invalid unit: '"+s.unit+"'",t);return{type:"size",mode:this.mode,value:s,isBlank:a}}parseUrlGroup(e){this.gullet.lexer.setCatcode("%",13),this.gullet.lexer.setCatcode("~",12);var t=this.parseStringGroup("url",e);if(this.gullet.lexer.setCatcode("%",14),this.gullet.lexer.setCatcode("~",13),t==null)return null;var a=t.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:a}}parseArgumentGroup(e,t){var a=this.gullet.scanArgument(e);if(a==null)return null;var n=this.mode;t&&this.switchMode(t),this.gullet.beginGroup();var s=this.parseExpression(!1,"EOF");this.expect("EOF"),this.gullet.endGroup();var o={type:"ordgroup",mode:this.mode,loc:a.loc,body:s};return t&&this.switchMode(n),o}parseGroup(e,t){var a=this.fetch(),n=a.text,s;if(n==="{"||n==="\\begingroup"){this.consume();var o=n==="{"?"}":"\\endgroup";this.gullet.beginGroup();var l=this.parseExpression(!1,o),u=this.fetch();this.expect(o),this.gullet.endGroup(),s={type:"ordgroup",mode:this.mode,loc:Ee.range(a,u),body:l,semisimple:n==="\\begingroup"||void 0}}else if(s=this.parseFunction(t,e)||this.parseSymbol(),s==null&&n[0]==="\\"&&!Vo.hasOwnProperty(n)){if(this.settings.throwOnError)throw new L("Undefined control sequence: "+n,a);s=this.formatUnsupportedCmd(n),this.consume()}return s}formLigatures(e){for(var t=e.length-1,a=0;a<t;++a){var n=e[a],s=n.text;s==="-"&&e[a+1].text==="-"&&(a+1<t&&e[a+2].text==="-"?(e.splice(a,3,{type:"textord",mode:"text",loc:Ee.range(n,e[a+2]),text:"---"}),t-=2):(e.splice(a,2,{type:"textord",mode:"text",loc:Ee.range(n,e[a+1]),text:"--"}),t-=1)),(s==="'"||s==="`")&&e[a+1].text===s&&(e.splice(a,2,{type:"textord",mode:"text",loc:Ee.range(n,e[a+1]),text:s+s}),t-=1)}}parseSymbol(){var e=this.fetch(),t=e.text;if(/^\\verb[^a-zA-Z]/.test(t)){this.consume();var a=t.slice(5),n=a.charAt(0)==="*";if(n&&(a=a.slice(1)),a.length<2||a.charAt(0)!==a.slice(-1))throw new L(`\\verb assertion failed --
330
- please report what input caused this bug`);return a=a.slice(1,-1),{type:"verb",mode:"text",body:a,star:n}}Bn.hasOwnProperty(t[0])&&!ie[this.mode][t[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+t[0]+'" used in math mode',e),t=Bn[t[0]]+t.slice(1));var s=t5.exec(t);s&&(t=t.substring(0,s.index),t==="i"?t="ı":t==="j"&&(t="ȷ"));var o;if(ie[this.mode][t]){this.settings.strict&&this.mode==="math"&&jr.indexOf(t)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+t[0]+'" used in math mode',e);var l=ie[this.mode][t].group,u=Ee.range(e),d;if(W2.hasOwnProperty(l)){var f=l;d={type:"atom",mode:this.mode,family:f,loc:u,text:t}}else d={type:l,mode:this.mode,loc:u,text:t};o=d}else if(t.charCodeAt(0)>=128)this.settings.strict&&(Zs(t.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+t[0]+'" used in math mode',e):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+t[0]+'"'+(" ("+t.charCodeAt(0)+")"),e)),o={type:"textord",mode:"text",loc:Ee.range(e),text:t};else return null;if(this.consume(),s)for(var g=0;g<s[0].length;g++){var x=s[0][g];if(!kr[x])throw new L("Unknown accent ' "+x+"'",e);var w=kr[x][this.mode]||kr[x].text;if(!w)throw new L("Accent "+x+" unsupported in "+this.mode+" mode",e);o={type:"accent",mode:this.mode,loc:Ee.range(e),label:w,isStretchy:!1,isShifty:!0,base:o}}return o}}Yt.endOfExpression=["}","\\endgroup","\\end","\\right","&"];var ba=function(e,t){if(!(typeof e=="string"||e instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var a=new Yt(e,t);delete a.gullet.macros.current["\\df@tag"];var n=a.parse();if(delete a.gullet.macros.current["\\current@color"],delete a.gullet.macros.current["\\color"],a.gullet.macros.get("\\df@tag")){if(!t.displayMode)throw new L("\\tag works only in display equations");n=[{type:"tag",mode:"text",body:n,tag:a.subparse([new Ie("\\df@tag")])}]}return n},_o=function(e,t,a){t.textContent="";var n=ya(e,a).toNode();t.appendChild(n)};typeof document<"u"&&document.compatMode!=="CSS1Compat"&&(typeof console<"u"&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),_o=function(){throw new L("KaTeX doesn't work in quirks mode.")});var o5=function(e,t){var a=ya(e,t).toMarkup();return a},i5=function(e,t){var a=new ea(t);return ba(e,a)},Go=function(e,t,a){if(a.throwOnError||!(e instanceof L))throw e;var n=C.makeSpan(["katex-error"],[new Fe(t)]);return n.setAttribute("title",e.toString()),n.setAttribute("style","color:"+a.errorColor),n},ya=function(e,t){var a=new ea(t);try{var n=ba(e,a);return v4(n,e,a)}catch(s){return Go(s,e,a)}},l5=function(e,t){var a=new ea(t);try{var n=ba(e,a);return g4(n,e,a)}catch(s){return Go(s,e,a)}},c5="0.16.25",u5={Span:nt,Anchor:aa,SymbolNode:Fe,SvgNode:u0,PathNode:S0,LineNode:Lr},Uo={version:c5,render:_o,renderToString:o5,ParseError:L,SETTINGS_SCHEMA:Nt,__parse:i5,__renderToDomTree:ya,__renderToHTMLTree:l5,__setFontMetrics:F2,__defineSymbol:i,__defineFunction:F,__defineMacro:v,__domTree:u5};const q0=(r,e,t,a)=>{const n=[];let s=r,o=0;const l=[{regex:/\$([^$\n]+)\$/,render:u=>{const d=u[1];if(t)return t(d);try{const f=Uo.renderToString(d,{throwOnError:!1,displayMode:!1});return h.jsx("span",{className:"inline-block",dangerouslySetInnerHTML:{__html:f}},o++)}catch{return h.jsx("span",{className:"inline-block px-1 py-0.5 font-mono text-[0.9em] bg-[var(--color-red-200)] text-[var(--color-red-1000)] rounded",title:"Math rendering error",children:d},o++)}}},{regex:/\*\*\*(.+?)\*\*\*|___(.+?)___/,render:u=>h.jsx("strong",{className:"font-medium",children:h.jsx("em",{className:"italic",children:u[1]||u[2]})},o++)},{regex:/\*\*(.+?)\*\*|__(.+?)__/,render:u=>h.jsx("strong",{className:"font-medium",children:u[1]||u[2]},o++)},{regex:/\*([^*\n]+)\*|_([^_\n]+)_/,render:u=>h.jsx("em",{className:"italic",children:u[1]||u[2]},o++)},{regex:/~~(.+?)~~/,render:u=>h.jsx("del",{className:"line-through",children:u[1]},o++)},{regex:/`([^`\n]+)`/,render:u=>{const d=u[1];return e?e(d):h.jsx("code",{className:"px-1.5 py-0.5 font-[Roboto_Mono,monospace] text-[0.875em] bg-[var(--color-gray-100)] text-[var(--color-gray-800)] rounded-[4px] border border-[var(--color-gray-200)]",children:d},o++)}},{regex:/\[([^\]]+)\]\(([^)]+)\)/,render:u=>{const d=u[1],f=u[2];return a?a(f,d):h.jsx("a",{href:f,className:"text-[var(--color-blue-800)] hover:text-[var(--color-blue-1000)] underline underline-offset-2 transition-colors",target:"_blank",rel:"noopener noreferrer",children:d},o++)}}];for(;s.length>0;){let u=null;for(const d of l){const f=s.match(d.regex);f&&f.index!==void 0&&(!u||f.index<u.index)&&(u={index:f.index,match:f,pattern:d})}if(u)u.index>0&&n.push(s.slice(0,u.index)),n.push(u.pattern.render(u.match)),s=s.slice(u.index+u.match[0].length);else{n.push(s);break}}return n},d5=r=>{const e=[],t=r.split(`
331
- `);let a=0;for(;a<t.length;){const n=t[a];if(n.trim()===""){a++;continue}if(n.trim().startsWith("$$")){const l=[];if(n.trim().endsWith("$$")&&n.trim().length>4)l.push(n.trim().slice(2,-2));else{for(a++;a<t.length&&!t[a].trim().endsWith("$$");)l.push(t[a]),a++;if(a<t.length){const d=t[a].trim();d!=="$$"&&l.push(d.slice(0,-2))}}e.push({type:"mathBlock",content:l.join(`
332
- `)}),a++;continue}if(n.trim().startsWith("```")){const l=n.trim().slice(3).trim()||void 0,u=[];for(a++;a<t.length&&!t[a].trim().startsWith("```");)u.push(t[a]),a++;e.push({type:"codeBlock",content:u.join(`
333
- `),language:l}),a++;continue}const s=n.match(/^(#{1,6})\s+(.+)$/);if(s){e.push({type:"heading",level:s[1].length,content:s[2]}),a++;continue}if(/^(\-{3,}|\*{3,}|_{3,})$/.test(n.trim())){e.push({type:"horizontalRule",content:""}),a++;continue}if(n.trim().startsWith("|")&&n.trim().endsWith("|")&&a+1<t.length&&/^\|[\s\-:|]+\|$/.test(t[a+1].trim())){const l=n.trim().slice(1,-1).split("|").map(g=>g.trim()),d=t[a+1].trim().slice(1,-1).split("|").map(g=>g.trim()).map(g=>g.startsWith(":")&&g.endsWith(":")?"center":g.endsWith(":")?"right":"left"),f=[];for(a+=2;a<t.length&&t[a].trim().startsWith("|")&&t[a].trim().endsWith("|");){const g=t[a].trim().slice(1,-1).split("|").map(x=>x.trim());f.push(g),a++}e.push({type:"table",content:"",table:{headers:l,rows:f,alignments:d}});continue}if(n.trim().startsWith(">")){const l=[];for(;a<t.length&&t[a].trim().startsWith(">");)l.push(t[a].trim().slice(1).trim()),a++;e.push({type:"blockquote",content:l.join(`
334
- `)});continue}if(/^[\-\*\+]\s+/.test(n.trim())){const l=[];for(;a<t.length&&/^[\-\*\+]\s+/.test(t[a].trim());)l.push(t[a].trim().replace(/^[\-\*\+]\s+/,"")),a++;e.push({type:"list",content:"",items:l,ordered:!1});continue}if(/^\d+\.\s+/.test(n.trim())){const l=[];for(;a<t.length&&/^\d+\.\s+/.test(t[a].trim());)l.push(t[a].trim().replace(/^\d+\.\s+/,"")),a++;e.push({type:"list",content:"",items:l,ordered:!0});continue}const o=[n];for(a++;a<t.length&&t[a].trim()!==""&&!t[a].trim().startsWith("#")&&!t[a].trim().startsWith("```")&&!t[a].trim().startsWith("$$")&&!t[a].trim().startsWith(">")&&!/^[\-\*\+]\s+/.test(t[a].trim())&&!/^\d+\.\s+/.test(t[a].trim())&&!/^(\-{3,}|\*{3,}|_{3,})$/.test(t[a].trim());)o.push(t[a]),a++;e.push({type:"paragraph",content:o.join(" ")})}return e},m5=(r,e,t,a,n,s)=>r.map((o,l)=>{var u;switch(o.type){case"heading":{const d=`h${o.level}`,f={1:"font-[Signifier,serif] text-[1.75rem] font-light leading-tight tracking-[-0.5px] text-[var(--color-gray-1000)]",2:"font-[Signifier,serif] text-[1.5rem] font-light leading-tight text-[var(--color-gray-1000)]",3:"font-[Signifier,serif] text-[1.25rem] font-light leading-snug text-[var(--color-gray-1000)]",4:"font-[Signifier,serif] text-[1.125rem] font-light leading-snug text-[var(--color-gray-1000)]",5:"font-[Signifier,serif] text-[1rem] font-light leading-normal text-[var(--color-gray-800)]",6:"font-[Signifier,serif] text-[0.875rem] font-light leading-normal text-[var(--color-gray-600)]"},g={1:{marginTop:l===0?0:20,marginBottom:12},2:{marginTop:l===0?0:16,marginBottom:8},3:{marginTop:l===0?0:14,marginBottom:6},4:{marginTop:l===0?0:12,marginBottom:6},5:{marginTop:l===0?0:10,marginBottom:4},6:{marginTop:l===0?0:10,marginBottom:4}};return h.jsx(d,{className:f[o.level],style:g[o.level],children:q0(o.content,t,n,s)},l)}case"paragraph":return h.jsx("p",{className:"font-[Inter,system-ui,-apple-system,sans-serif]",style:{marginTop:l===0?0:8,marginBottom:8},children:q0(o.content,t,n,s)},l);case"codeBlock":return e?h.jsx("div",{style:{marginTop:l===0?0:12,marginBottom:12},children:e(o.content,o.language)},l):h.jsx("pre",{className:"font-[Roboto_Mono,monospace] p-4 bg-[var(--color-gray-100)] border border-[var(--color-gray-200)] rounded-[8px] overflow-x-auto",style:{marginTop:l===0?0:12,marginBottom:12},children:h.jsx("code",{className:"font-[Roboto_Mono,monospace] text-[0.875rem] text-[var(--color-gray-800)] leading-relaxed",children:o.content})},l);case"mathBlock":if(a)return h.jsx("div",{style:{marginTop:l===0?0:12,marginBottom:12},children:a(o.content)},l);try{const d=Uo.renderToString(o.content,{throwOnError:!1,displayMode:!0});return h.jsx("div",{className:"overflow-x-auto text-center",style:{marginTop:l===0?0:12,marginBottom:12},dangerouslySetInnerHTML:{__html:d}},l)}catch{return h.jsxs("div",{className:"p-4 bg-[var(--color-red-200)] border border-[var(--color-red-1000)] rounded-[8px] text-center font-mono text-[var(--color-red-1000)]",style:{marginTop:l===0?0:12,marginBottom:12},children:[h.jsx("span",{className:"text-[0.75rem] uppercase tracking-wider opacity-60 block",style:{marginBottom:4},children:"Math Rendering Error"}),h.jsx("pre",{className:"text-left",children:o.content})]},l)}case"blockquote":return h.jsx("blockquote",{className:"font-[Inter,system-ui,-apple-system,sans-serif] pl-6 py-4 border-l-4 border-[var(--color-gray-300)] bg-[var(--color-gray-50)] text-[var(--color-gray-600)] italic rounded-r",style:{marginTop:l===0?0:12,marginBottom:12},children:q0(o.content,t,n,s)},l);case"list":{const d=o.ordered?"ol":"ul",f=o.ordered?"font-[Inter,system-ui,-apple-system,sans-serif] pl-6 list-decimal marker:font-medium marker:text-[var(--color-gray-800)]":"font-[Inter,system-ui,-apple-system,sans-serif] pl-6 list-disc marker:text-[var(--color-gray-600)]";return h.jsx(d,{className:f,style:{marginTop:l===0?0:8,marginBottom:12},children:(u=o.items)==null?void 0:u.map((g,x)=>h.jsx("li",{className:"leading-relaxed pl-1",style:{marginBottom:4},children:q0(g,t,n,s)},x))},l)}case"table":{if(!o.table)return null;const{headers:d,rows:f,alignments:g}=o.table,x=w=>{switch(w){case"center":return"text-center";case"right":return"text-right";default:return"text-left"}};return h.jsx("div",{className:"overflow-x-auto",style:{marginTop:l===0?0:12,marginBottom:12},children:h.jsxs("table",{className:"font-[Inter,system-ui,-apple-system,sans-serif] w-full border-collapse border border-[var(--color-gray-200)] bg-white shadow-sm rounded-lg",children:[h.jsx("thead",{className:"bg-[var(--color-gray-50)]",children:h.jsx("tr",{className:"border-b-2 border-[var(--color-gray-200)]",children:d.map((w,M)=>h.jsx("th",{className:`px-4 py-3 font-medium border-r border-[var(--color-gray-200)] last:border-r-0 ${x(g==null?void 0:g[M])}`,children:q0(w,t,n,s)},M))})}),h.jsx("tbody",{children:f.map((w,M)=>h.jsx("tr",{className:"border-b border-[var(--color-gray-200)] last:border-b-0 hover:bg-[var(--color-gray-50)] transition-colors",children:w.map((k,A)=>h.jsx("td",{className:`px-4 py-3 border-r border-[var(--color-gray-200)] last:border-r-0 align-top ${x(g==null?void 0:g[A])}`,children:q0(k,t,n,s)},A))},M))})]})},l)}case"horizontalRule":return h.jsx("hr",{className:"border-t border-[var(--color-gray-200)]",style:{marginTop:16,marginBottom:16}},l);default:return null}}),$o=V.forwardRef(({className:r,content:e,size:t="medium",variant:a="default",renderCodeBlock:n,renderInlineCode:s,renderMathBlock:o,renderInlineMath:l,renderLink:u,...d},f)=>{const g=V.useMemo(()=>{const x=d5(e);return m5(x,n,s,o,l,u)},[e,n,s,o,l,u]);return h.jsx("div",{ref:f,className:G(d2({size:t,variant:a}),r),...d,children:g})});$o.displayName="MarkdownRenderer";exports.Activity=p.Activity;exports.Airplay=p.Airplay;exports.AlertCircle=p.AlertCircle;exports.AlertOctagon=p.AlertOctagon;exports.AlignCenter=p.AlignCenter;exports.AlignJustify=p.AlignJustify;exports.AlignLeft=p.AlignLeft;exports.AlignRight=p.AlignRight;exports.Anchor=p.Anchor;exports.Aperture=p.Aperture;exports.Archive=p.Archive;exports.ArrowDownCircle=p.ArrowDownCircle;exports.ArrowDownLeft=p.ArrowDownLeft;exports.ArrowDownRight=p.ArrowDownRight;exports.ArrowLeftCircle=p.ArrowLeftCircle;exports.ArrowRightCircle=p.ArrowRightCircle;exports.ArrowUp=p.ArrowUp;exports.ArrowUpCircle=p.ArrowUpCircle;exports.ArrowUpLeft=p.ArrowUpLeft;exports.ArrowUpRight=p.ArrowUpRight;exports.AtSign=p.AtSign;exports.Award=p.Award;exports.BarChart=p.BarChart;exports.BarChart2=p.BarChart2;exports.Battery=p.Battery;exports.BatteryCharging=p.BatteryCharging;exports.BellOff=p.BellOff;exports.Bluetooth=p.Bluetooth;exports.Bold=p.Bold;exports.Book=p.Book;exports.BookOpen=p.BookOpen;exports.Bookmark=p.Bookmark;exports.Box=p.Box;exports.Briefcase=p.Briefcase;exports.BrushCleanup=p.BrushCleanup;exports.Calendar=p.Calendar;exports.Camera=p.Camera;exports.CameraOff=p.CameraOff;exports.Cast=p.Cast;exports.Check=p.Check;exports.CheckCircle=p.CheckCircle;exports.CheckSquare=p.CheckSquare;exports.ChevronDown=p.ChevronDown;exports.ChevronLeft=p.ChevronLeft;exports.ChevronRight=p.ChevronRight;exports.ChevronUp=p.ChevronUp;exports.ChevronsDown=p.ChevronsDown;exports.ChevronsLeft=p.ChevronsLeft;exports.ChevronsRight=p.ChevronsRight;exports.ChevronsUp=p.ChevronsUp;exports.Chrome=p.Chrome;exports.Circle=p.Circle;exports.Clipboard=p.Clipboard;exports.ClockHistory=p.ClockHistory;exports.Cloud=p.Cloud;exports.CloudDrizzle=p.CloudDrizzle;exports.CloudLightning=p.CloudLightning;exports.CloudOff=p.CloudOff;exports.CloudRain=p.CloudRain;exports.CloudSnow=p.CloudSnow;exports.Code=p.Code;exports.Codepen=p.Codepen;exports.Codesandbox=p.Codesandbox;exports.Coffee=p.Coffee;exports.Columns=p.Columns;exports.Command=p.Command;exports.Compass=p.Compass;exports.Component=p.Component;exports.CornerDownLeft=p.CornerDownLeft;exports.CornerDownRight=p.CornerDownRight;exports.CornerLeftDown=p.CornerLeftDown;exports.CornerLeftUp=p.CornerLeftUp;exports.CornerRightDown=p.CornerRightDown;exports.CornerRightUp=p.CornerRightUp;exports.CornerUpLeft=p.CornerUpLeft;exports.CornerUpRight=p.CornerUpRight;exports.Cpu=p.Cpu;exports.CreditCard=p.CreditCard;exports.Crop=p.Crop;exports.Crosshair=p.Crosshair;exports.Database=p.Database;exports.Delete=p.Delete;exports.Disc=p.Disc;exports.Divide=p.Divide;exports.DivideCircle=p.DivideCircle;exports.DivideSquare=p.DivideSquare;exports.DollarSign=p.DollarSign;exports.DownloadCloud=p.DownloadCloud;exports.Dribbble=p.Dribbble;exports.Droplet=p.Droplet;exports.Dumbell=p.Dumbell;exports.Edit2=p.Edit2;exports.Edit3=p.Edit3;exports.Eye=p.Eye;exports.EyeOff=p.EyeOff;exports.Facebook=p.Facebook;exports.FastForward=p.FastForward;exports.Feather=p.Feather;exports.Figma=p.Figma;exports.FileMinus=p.FileMinus;exports.FilePlus=p.FilePlus;exports.FileText=p.FileText;exports.Film=p.Film;exports.Filter=p.Filter;exports.Filter1=p.Filter1;exports.Flag=p.Flag;exports.Folder=p.Folder;exports.FolderMinus=p.FolderMinus;exports.FolderPlus=p.FolderPlus;exports.Framer=p.Framer;exports.Frown=p.Frown;exports.GalleryView=p.GalleryView;exports.Gauge=p.Gauge;exports.Gift=p.Gift;exports.GitBranch=p.GitBranch;exports.GitCommit=p.GitCommit;exports.GitMerge=p.GitMerge;exports.GitPullRequest=p.GitPullRequest;exports.Github=p.Github;exports.Gitlab=p.Gitlab;exports.Globe=p.Globe;exports.Grid=p.Grid;exports.Group1=p.Group1;exports.Hand=p.Hand;exports.HardDrive=p.HardDrive;exports.Hash=p.Hash;exports.Headphones=p.Headphones;exports.HeightSize=p.HeightSize;exports.Hexagon=p.Hexagon;exports.Home=p.Home;exports.Home2=p.Home2;exports.Image=p.Image;exports.Inbox=p.Inbox;exports.Info=p.Info;exports.Instagram=p.Instagram;exports.Invite=p.Invite;exports.Italic=p.Italic;exports.KanbanView=p.KanbanView;exports.Key=p.Key;exports.Layers=p.Layers;exports.Layout=p.Layout;exports.LifeBuoy=p.LifeBuoy;exports.Link=p.Link;exports.Link2=p.Link2;exports.Linkedin=p.Linkedin;exports.List=p.List;exports.ListView=p.ListView;exports.Loader=p.Loader;exports.Lock=p.Lock;exports.LogIn=p.LogIn;exports.Mail=p.Mail;exports.Map=p.Map;exports.MapPin=p.MapPin;exports.Maximize=p.Maximize;exports.Maximize2=p.Maximize2;exports.Meh=p.Meh;exports.MessageCircle=p.MessageCircle;exports.MessageSquare=p.MessageSquare;exports.Mic=p.Mic;exports.MicOff=p.MicOff;exports.Minimize=p.Minimize;exports.Minimize2=p.Minimize2;exports.MinusCircle=p.MinusCircle;exports.MinusSquare=p.MinusSquare;exports.Monitor=p.Monitor;exports.Moon=p.Moon;exports.MoreVertical=p.MoreVertical;exports.MousePointer=p.MousePointer;exports.Move=p.Move;exports.Music=p.Music;exports.Navigation=p.Navigation;exports.Navigation2=p.Navigation2;exports.NewChat=p.NewChat;exports.Octagon=p.Octagon;exports.Package=p.Package;exports.PaperPlane1=p.PaperPlane1;exports.Paperclip=p.Paperclip;exports.Pause=p.Pause;exports.PauseCircle=p.PauseCircle;exports.PenTool=p.PenTool;exports.Percent=p.Percent;exports.Phone=p.Phone;exports.PhoneCall=p.PhoneCall;exports.PhoneForwarded=p.PhoneForwarded;exports.PhoneIncoming=p.PhoneIncoming;exports.PhoneMissed=p.PhoneMissed;exports.PhoneOff=p.PhoneOff;exports.PhoneOutgoing=p.PhoneOutgoing;exports.Pin=p.Pin;exports.Play=p.Play;exports.PlayCircle=p.PlayCircle;exports.Plug21=p.Plug21;exports.Plus=p.Plus;exports.PlusCircle=p.PlusCircle;exports.PlusSquare=p.PlusSquare;exports.Pocket=p.Pocket;exports.Power=p.Power;exports.Printer=p.Printer;exports.Radio=p.Radio;exports.Redo=p.Redo;exports.RefreshCcw=p.RefreshCcw;exports.RefreshCw=p.RefreshCw;exports.Repeat=p.Repeat;exports.Rewind=p.Rewind;exports.RotateCcw=p.RotateCcw;exports.RotateCw=p.RotateCw;exports.Rss=p.Rss;exports.Save=p.Save;exports.Scissors=p.Scissors;exports.Search=p.Search;exports.Send=p.Send;exports.Server=p.Server;exports.Settings=p.Settings;exports.Share=p.Share;exports.Share2=p.Share2;exports.Shield=p.Shield;exports.ShieldOff=p.ShieldOff;exports.ShoppingBag=p.ShoppingBag;exports.ShoppingCart=p.ShoppingCart;exports.Shuffle=p.Shuffle;exports.Sidebar=p.Sidebar;exports.SkipBack=p.SkipBack;exports.SkipForward=p.SkipForward;exports.Slack=p.Slack;exports.Slash=p.Slash;exports.Sliders=p.Sliders;exports.Smartphone=p.Smartphone;exports.Smile=p.Smile;exports.Sort1=p.Sort1;exports.SortDefault=p.SortDefault;exports.SortDown=p.SortDown;exports.SortUp=p.SortUp;exports.Sources=p.Sources;exports.Sparks=p.Sparks;exports.Speaker=p.Speaker;exports.Square=p.Square;exports.Star=p.Star;exports.StopCircle=p.StopCircle;exports.Sun=p.Sun;exports.Sunrise=p.Sunrise;exports.Sunset=p.Sunset;exports.TableView=p.TableView;exports.Tablet=p.Tablet;exports.TagIcon=p.Tag;exports.TagPlus=p.TagPlus;exports.Target=p.Target;exports.Telescope=p.Telescope;exports.Terminal=p.Terminal;exports.TextileIcon=p.TextileIcon;exports.Thermometer=p.Thermometer;exports.ThumbsDown=p.ThumbsDown;exports.ThumbsUp=p.ThumbsUp;exports.ToggleLeft=p.ToggleLeft;exports.ToggleRight=p.ToggleRight;exports.Tool=p.Tool;exports.Trash=p.Trash;exports.Trello=p.Trello;exports.TrendingDown=p.TrendingDown;exports.TrendingUp=p.TrendingUp;exports.Triangle=p.Triangle;exports.TriangleAlert=p.TriangleAlert;exports.Truck=p.Truck;exports.Tv=p.Tv;exports.Twitch=p.Twitch;exports.Twitter=p.Twitter;exports.Type=p.Type;exports.Umbrella=p.Umbrella;exports.Underline=p.Underline;exports.Undo=p.Undo;exports.Unlock=p.Unlock;exports.Uploadfile=p.Uploadfile;exports.UserCheck=p.UserCheck;exports.UserEdit=p.UserEdit;exports.UserMinus=p.UserMinus;exports.UserPlus=p.UserPlus;exports.UserX=p.UserX;exports.Video=p.Video;exports.VideoOff=p.VideoOff;exports.Voicemail=p.Voicemail;exports.Volume=p.Volume;exports.Volume1=p.Volume1;exports.Volume2=p.Volume2;exports.VolumeX=p.VolumeX;exports.Watch=p.Watch;exports.WhiteboardView=p.WhiteboardView;exports.Wifi=p.Wifi;exports.WifiOff=p.WifiOff;exports.Wind=p.Wind;exports.WorkStream=p.WorkStream;exports.X=p.X;exports.XCircle=p.XCircle;exports.XOctagon=p.XOctagon;exports.XSquare=p.XSquare;exports.Youtube=p.Youtube;exports.Zap=p.Zap;exports.ZapOff=p.ZapOff;exports.ZoomIn=p.ZoomIn;exports.ZoomOut=p.ZoomOut;exports.ArtifactCard=Xn;exports.AutopilotAction=ms;exports.Avatar=Vr;exports.Breadcrumbs=Yn;exports.Button=_0;exports.ChatFile=Kn;exports.ChatInput=hs;exports.Checkbox=Jn;exports.CircularProgress=$r;exports.ConversationHeader=fs;exports.Dropdown=Wr;exports.DropdownContent=Yr;exports.DropdownItem=Zr;exports.DropdownTrigger=Xr;exports.FileStatus=Zn;exports.FullLogo=Wn;exports.Input=es;exports.LoadingSpinner=Fl;exports.LogoA=Gr;exports.MarkdownRenderer=$o;exports.MessageBubble=ts;exports.Modal=Xs;exports.ProgressBar=rs;exports.RangeInput=as;exports.SidebarItem=ns;exports.SignatureA=Ur;exports.StatusIndicator=_r;exports.StatusMessage=ds;exports.Tabs=p1;exports.TabsContent=is;exports.TabsList=ss;exports.TabsTrigger=os;exports.Tag=G0;exports.TextArea=ls;exports.Timestamp=cs;exports.Toast=N0;exports.ToastContainer=B1;exports.Toggle=us;exports.Tooltip=Ar;exports.TooltipContent=Et;exports.TooltipProvider=zr;exports.TooltipTrigger=Nr;exports.Typography=i0;exports.cn=G;exports.showToast=L1;exports.useDropdown=Ft;
360
+ ?)[ \r ]*`,Fi="[̀-ͯ]",S9=new RegExp(Fi+"+$"),C9="("+d1+"+)|"+(k9+"|")+"([!-\\[\\]-‧‪-퟿豈-￿]"+(Fi+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(Fi+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+w9)+("|"+x9+")");class jl{constructor(t,r){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=t,this.settings=r,this.tokenRegex=new RegExp(C9,"g"),this.catcodes={"%":14,"~":13}}setCatcode(t,r){this.catcodes[t]=r}lex(){var t=this.input,r=this.tokenRegex.lastIndex;if(r===t.length)return new ht("EOF",new at(this,r,r));var n=this.tokenRegex.exec(t);if(n===null||n.index!==r)throw new U("Unexpected character: '"+t[r]+"'",new ht(t[r],new at(this,r,r+1)));var a=n[6]||n[3]||(n[2]?"\\ ":" ");if(this.catcodes[a]===14){var i=t.indexOf(`
361
+ `,this.tokenRegex.lastIndex);return i===-1?(this.tokenRegex.lastIndex=t.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=i+1,this.lex()}return new ht(a,new at(this,r,this.tokenRegex.lastIndex))}}class T9{constructor(t,r){t===void 0&&(t={}),r===void 0&&(r={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=r,this.builtins=t,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new U("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var t=this.undefStack.pop();for(var r in t)t.hasOwnProperty(r)&&(t[r]==null?delete this.current[r]:this.current[r]=t[r])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(t){return this.current.hasOwnProperty(t)||this.builtins.hasOwnProperty(t)}get(t){return this.current.hasOwnProperty(t)?this.current[t]:this.builtins[t]}set(t,r,n){if(n===void 0&&(n=!1),n){for(var a=0;a<this.undefStack.length;a++)delete this.undefStack[a][t];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][t]=r)}else{var i=this.undefStack[this.undefStack.length-1];i&&!i.hasOwnProperty(t)&&(i[t]=this.current[t])}r==null?delete this.current[t]:this.current[t]=r}}var M9=t1;x("\\noexpand",function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}});x("\\expandafter",function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}});x("\\@firstoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[0],numArgs:0}});x("\\@secondoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[1],numArgs:0}});x("\\@ifnextchar",function(e){var t=e.consumeArgs(3);e.consumeSpaces();var r=e.future();return t[0].length===1&&t[0][0].text===r.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}});x("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");x("\\TextOrMath",function(e){var t=e.consumeArgs(2);return e.mode==="text"?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var _l={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};x("\\char",function(e){var t=e.popToken(),r,n="";if(t.text==="'")r=8,t=e.popToken();else if(t.text==='"')r=16,t=e.popToken();else if(t.text==="`")if(t=e.popToken(),t.text[0]==="\\")n=t.text.charCodeAt(1);else{if(t.text==="EOF")throw new U("\\char` missing argument");n=t.text.charCodeAt(0)}else r=10;if(r){if(n=_l[t.text],n==null||n>=r)throw new U("Invalid base-"+r+" digit "+t.text);for(var a;(a=_l[e.future().text])!=null&&a<r;)n*=r,n+=a,e.popToken()}return"\\@char{"+n+"}"});var L0=(e,t,r,n)=>{var a=e.consumeArg().tokens;if(a.length!==1)throw new U("\\newcommand's first argument must be a macro name");var i=a[0].text,o=e.isDefined(i);if(o&&!t)throw new U("\\newcommand{"+i+"} attempting to redefine "+(i+"; use \\renewcommand"));if(!o&&!r)throw new U("\\renewcommand{"+i+"} when command "+i+" does not yet exist; use \\newcommand");var l=0;if(a=e.consumeArg().tokens,a.length===1&&a[0].text==="["){for(var s="",u=e.expandNextToken();u.text!=="]"&&u.text!=="EOF";)s+=u.text,u=e.expandNextToken();if(!s.match(/^\s*[0-9]+\s*$/))throw new U("Invalid number of arguments: "+s);l=parseInt(s),a=e.consumeArg().tokens}return o&&n||e.macros.set(i,{tokens:a,numArgs:l}),""};x("\\newcommand",e=>L0(e,!1,!0,!1));x("\\renewcommand",e=>L0(e,!0,!1,!1));x("\\providecommand",e=>L0(e,!0,!0,!0));x("\\message",e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(r=>r.text).join("")),""});x("\\errmessage",e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(r=>r.text).join("")),""});x("\\show",e=>{var t=e.popToken(),r=t.text;return console.log(t,e.macros.get(r),Zt[r],Ie.math[r],Ie.text[r]),""});x("\\bgroup","{");x("\\egroup","}");x("~","\\nobreakspace");x("\\lq","`");x("\\rq","'");x("\\aa","\\r a");x("\\AA","\\r A");x("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}");x("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");x("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}");x("ℬ","\\mathscr{B}");x("ℰ","\\mathscr{E}");x("ℱ","\\mathscr{F}");x("ℋ","\\mathscr{H}");x("ℐ","\\mathscr{I}");x("ℒ","\\mathscr{L}");x("ℳ","\\mathscr{M}");x("ℛ","\\mathscr{R}");x("ℭ","\\mathfrak{C}");x("ℌ","\\mathfrak{H}");x("ℨ","\\mathfrak{Z}");x("\\Bbbk","\\Bbb{k}");x("·","\\cdotp");x("\\llap","\\mathllap{\\textrm{#1}}");x("\\rlap","\\mathrlap{\\textrm{#1}}");x("\\clap","\\mathclap{\\textrm{#1}}");x("\\mathstrut","\\vphantom{(}");x("\\underbar","\\underline{\\text{#1}}");x("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}');x("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}");x("\\ne","\\neq");x("≠","\\neq");x("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}");x("∉","\\notin");x("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}");x("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}");x("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}");x("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}");x("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}");x("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}");x("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}");x("⟂","\\perp");x("‼","\\mathclose{!\\mkern-0.8mu!}");x("∌","\\notni");x("⌜","\\ulcorner");x("⌝","\\urcorner");x("⌞","\\llcorner");x("⌟","\\lrcorner");x("©","\\copyright");x("®","\\textregistered");x("️","\\textregistered");x("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');x("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');x("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');x("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');x("\\vdots","{\\varvdots\\rule{0pt}{15pt}}");x("⋮","\\vdots");x("\\varGamma","\\mathit{\\Gamma}");x("\\varDelta","\\mathit{\\Delta}");x("\\varTheta","\\mathit{\\Theta}");x("\\varLambda","\\mathit{\\Lambda}");x("\\varXi","\\mathit{\\Xi}");x("\\varPi","\\mathit{\\Pi}");x("\\varSigma","\\mathit{\\Sigma}");x("\\varUpsilon","\\mathit{\\Upsilon}");x("\\varPhi","\\mathit{\\Phi}");x("\\varPsi","\\mathit{\\Psi}");x("\\varOmega","\\mathit{\\Omega}");x("\\substack","\\begin{subarray}{c}#1\\end{subarray}");x("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");x("\\boxed","\\fbox{$\\displaystyle{#1}$}");x("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;");x("\\implies","\\DOTSB\\;\\Longrightarrow\\;");x("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");x("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}");x("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");var ql={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};x("\\dots",function(e){var t="\\dotso",r=e.expandAfterFuture().text;return r in ql?t=ql[r]:(r.slice(0,4)==="\\not"||r in Ie.math&&["bin","rel"].includes(Ie.math[r].group))&&(t="\\dotsb"),t});var R0={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};x("\\dotso",function(e){var t=e.future().text;return t in R0?"\\ldots\\,":"\\ldots"});x("\\dotsc",function(e){var t=e.future().text;return t in R0&&t!==","?"\\ldots\\,":"\\ldots"});x("\\cdots",function(e){var t=e.future().text;return t in R0?"\\@cdots\\,":"\\@cdots"});x("\\dotsb","\\cdots");x("\\dotsm","\\cdots");x("\\dotsi","\\!\\cdots");x("\\dotsx","\\ldots\\,");x("\\DOTSI","\\relax");x("\\DOTSB","\\relax");x("\\DOTSX","\\relax");x("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");x("\\,","\\tmspace+{3mu}{.1667em}");x("\\thinspace","\\,");x("\\>","\\mskip{4mu}");x("\\:","\\tmspace+{4mu}{.2222em}");x("\\medspace","\\:");x("\\;","\\tmspace+{5mu}{.2777em}");x("\\thickspace","\\;");x("\\!","\\tmspace-{3mu}{.1667em}");x("\\negthinspace","\\!");x("\\negmedspace","\\tmspace-{4mu}{.2222em}");x("\\negthickspace","\\tmspace-{5mu}{.277em}");x("\\enspace","\\kern.5em ");x("\\enskip","\\hskip.5em\\relax");x("\\quad","\\hskip1em\\relax");x("\\qquad","\\hskip2em\\relax");x("\\tag","\\@ifstar\\tag@literal\\tag@paren");x("\\tag@paren","\\tag@literal{({#1})}");x("\\tag@literal",e=>{if(e.macros.get("\\df@tag"))throw new U("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"});x("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");x("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");x("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}");x("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");x("\\newline","\\\\\\relax");x("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var m1=Z(Ct["Main-Regular"][84][1]-.7*Ct["Main-Regular"][65][1]);x("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+m1+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");x("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+m1+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}");x("\\hspace","\\@ifstar\\@hspacer\\@hspace");x("\\@hspace","\\hskip #1\\relax");x("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax");x("\\ordinarycolon",":");x("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}");x("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}');x("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}');x("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}');x("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}');x("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}');x("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}');x("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}');x("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}');x("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}');x("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}');x("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}');x("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}');x("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}');x("∷","\\dblcolon");x("∹","\\eqcolon");x("≔","\\coloneqq");x("≕","\\eqqcolon");x("⩴","\\Coloneqq");x("\\ratio","\\vcentcolon");x("\\coloncolon","\\dblcolon");x("\\colonequals","\\coloneqq");x("\\coloncolonequals","\\Coloneqq");x("\\equalscolon","\\eqqcolon");x("\\equalscoloncolon","\\Eqqcolon");x("\\colonminus","\\coloneq");x("\\coloncolonminus","\\Coloneq");x("\\minuscolon","\\eqcolon");x("\\minuscoloncolon","\\Eqcolon");x("\\coloncolonapprox","\\Colonapprox");x("\\coloncolonsim","\\Colonsim");x("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");x("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");x("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");x("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");x("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}");x("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}");x("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}");x("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}");x("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}");x("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}");x("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}");x("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}");x("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}");x("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}");x("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}");x("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}");x("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}");x("\\nleqq","\\html@mathml{\\@nleqq}{≰}");x("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}");x("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}");x("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}");x("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}");x("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}");x("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}");x("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}");x("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}");x("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}");x("\\imath","\\html@mathml{\\@imath}{ı}");x("\\jmath","\\html@mathml{\\@jmath}{ȷ}");x("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}");x("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}");x("⟦","\\llbracket");x("⟧","\\rrbracket");x("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}");x("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}");x("⦃","\\lBrace");x("⦄","\\rBrace");x("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}");x("⦵","\\minuso");x("\\darr","\\downarrow");x("\\dArr","\\Downarrow");x("\\Darr","\\Downarrow");x("\\lang","\\langle");x("\\rang","\\rangle");x("\\uarr","\\uparrow");x("\\uArr","\\Uparrow");x("\\Uarr","\\Uparrow");x("\\N","\\mathbb{N}");x("\\R","\\mathbb{R}");x("\\Z","\\mathbb{Z}");x("\\alef","\\aleph");x("\\alefsym","\\aleph");x("\\Alpha","\\mathrm{A}");x("\\Beta","\\mathrm{B}");x("\\bull","\\bullet");x("\\Chi","\\mathrm{X}");x("\\clubs","\\clubsuit");x("\\cnums","\\mathbb{C}");x("\\Complex","\\mathbb{C}");x("\\Dagger","\\ddagger");x("\\diamonds","\\diamondsuit");x("\\empty","\\emptyset");x("\\Epsilon","\\mathrm{E}");x("\\Eta","\\mathrm{H}");x("\\exist","\\exists");x("\\harr","\\leftrightarrow");x("\\hArr","\\Leftrightarrow");x("\\Harr","\\Leftrightarrow");x("\\hearts","\\heartsuit");x("\\image","\\Im");x("\\infin","\\infty");x("\\Iota","\\mathrm{I}");x("\\isin","\\in");x("\\Kappa","\\mathrm{K}");x("\\larr","\\leftarrow");x("\\lArr","\\Leftarrow");x("\\Larr","\\Leftarrow");x("\\lrarr","\\leftrightarrow");x("\\lrArr","\\Leftrightarrow");x("\\Lrarr","\\Leftrightarrow");x("\\Mu","\\mathrm{M}");x("\\natnums","\\mathbb{N}");x("\\Nu","\\mathrm{N}");x("\\Omicron","\\mathrm{O}");x("\\plusmn","\\pm");x("\\rarr","\\rightarrow");x("\\rArr","\\Rightarrow");x("\\Rarr","\\Rightarrow");x("\\real","\\Re");x("\\reals","\\mathbb{R}");x("\\Reals","\\mathbb{R}");x("\\Rho","\\mathrm{P}");x("\\sdot","\\cdot");x("\\sect","\\S");x("\\spades","\\spadesuit");x("\\sub","\\subset");x("\\sube","\\subseteq");x("\\supe","\\supseteq");x("\\Tau","\\mathrm{T}");x("\\thetasym","\\vartheta");x("\\weierp","\\wp");x("\\Zeta","\\mathrm{Z}");x("\\argmin","\\DOTSB\\operatorname*{arg\\,min}");x("\\argmax","\\DOTSB\\operatorname*{arg\\,max}");x("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits");x("\\bra","\\mathinner{\\langle{#1}|}");x("\\ket","\\mathinner{|{#1}\\rangle}");x("\\braket","\\mathinner{\\langle{#1}\\rangle}");x("\\Bra","\\left\\langle#1\\right|");x("\\Ket","\\left|#1\\right\\rangle");var f1=e=>t=>{var r=t.consumeArg().tokens,n=t.consumeArg().tokens,a=t.consumeArg().tokens,i=t.consumeArg().tokens,o=t.macros.get("|"),l=t.macros.get("\\|");t.macros.beginGroup();var s=h=>m=>{e&&(m.macros.set("|",o),a.length&&m.macros.set("\\|",l));var p=h;if(!h&&a.length){var y=m.future();y.text==="|"&&(m.popToken(),p=!0)}return{tokens:p?a:n,numArgs:0}};t.macros.set("|",s(!1)),a.length&&t.macros.set("\\|",s(!0));var u=t.consumeArg().tokens,c=t.expandTokens([...i,...u,...r]);return t.macros.endGroup(),{tokens:c.reverse(),numArgs:0}};x("\\bra@ket",f1(!1));x("\\bra@set",f1(!0));x("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");x("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");x("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");x("\\angln","{\\angl n}");x("\\blue","\\textcolor{##6495ed}{#1}");x("\\orange","\\textcolor{##ffa500}{#1}");x("\\pink","\\textcolor{##ff00af}{#1}");x("\\red","\\textcolor{##df0030}{#1}");x("\\green","\\textcolor{##28ae7b}{#1}");x("\\gray","\\textcolor{gray}{#1}");x("\\purple","\\textcolor{##9d38bd}{#1}");x("\\blueA","\\textcolor{##ccfaff}{#1}");x("\\blueB","\\textcolor{##80f6ff}{#1}");x("\\blueC","\\textcolor{##63d9ea}{#1}");x("\\blueD","\\textcolor{##11accd}{#1}");x("\\blueE","\\textcolor{##0c7f99}{#1}");x("\\tealA","\\textcolor{##94fff5}{#1}");x("\\tealB","\\textcolor{##26edd5}{#1}");x("\\tealC","\\textcolor{##01d1c1}{#1}");x("\\tealD","\\textcolor{##01a995}{#1}");x("\\tealE","\\textcolor{##208170}{#1}");x("\\greenA","\\textcolor{##b6ffb0}{#1}");x("\\greenB","\\textcolor{##8af281}{#1}");x("\\greenC","\\textcolor{##74cf70}{#1}");x("\\greenD","\\textcolor{##1fab54}{#1}");x("\\greenE","\\textcolor{##0d923f}{#1}");x("\\goldA","\\textcolor{##ffd0a9}{#1}");x("\\goldB","\\textcolor{##ffbb71}{#1}");x("\\goldC","\\textcolor{##ff9c39}{#1}");x("\\goldD","\\textcolor{##e07d10}{#1}");x("\\goldE","\\textcolor{##a75a05}{#1}");x("\\redA","\\textcolor{##fca9a9}{#1}");x("\\redB","\\textcolor{##ff8482}{#1}");x("\\redC","\\textcolor{##f9685d}{#1}");x("\\redD","\\textcolor{##e84d39}{#1}");x("\\redE","\\textcolor{##bc2612}{#1}");x("\\maroonA","\\textcolor{##ffbde0}{#1}");x("\\maroonB","\\textcolor{##ff92c6}{#1}");x("\\maroonC","\\textcolor{##ed5fa6}{#1}");x("\\maroonD","\\textcolor{##ca337c}{#1}");x("\\maroonE","\\textcolor{##9e034e}{#1}");x("\\purpleA","\\textcolor{##ddd7ff}{#1}");x("\\purpleB","\\textcolor{##c6b9fc}{#1}");x("\\purpleC","\\textcolor{##aa87ff}{#1}");x("\\purpleD","\\textcolor{##7854ab}{#1}");x("\\purpleE","\\textcolor{##543b78}{#1}");x("\\mintA","\\textcolor{##f5f9e8}{#1}");x("\\mintB","\\textcolor{##edf2df}{#1}");x("\\mintC","\\textcolor{##e0e5cc}{#1}");x("\\grayA","\\textcolor{##f6f7f7}{#1}");x("\\grayB","\\textcolor{##f0f1f2}{#1}");x("\\grayC","\\textcolor{##e3e5e6}{#1}");x("\\grayD","\\textcolor{##d6d8da}{#1}");x("\\grayE","\\textcolor{##babec2}{#1}");x("\\grayF","\\textcolor{##888d93}{#1}");x("\\grayG","\\textcolor{##626569}{#1}");x("\\grayH","\\textcolor{##3b3e40}{#1}");x("\\grayI","\\textcolor{##21242c}{#1}");x("\\kaBlue","\\textcolor{##314453}{#1}");x("\\kaGreen","\\textcolor{##71B307}{#1}");var p1={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class A9{constructor(t,r,n){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=r,this.expansionCount=0,this.feed(t),this.macros=new T9(M9,r.macros),this.mode=n,this.stack=[]}feed(t){this.lexer=new jl(t,this.settings)}switchMode(t){this.mode=t}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(t){this.stack.push(t)}pushTokens(t){this.stack.push(...t)}scanArgument(t){var r,n,a;if(t){if(this.consumeSpaces(),this.future().text!=="[")return null;r=this.popToken(),{tokens:a,end:n}=this.consumeArg(["]"])}else({tokens:a,start:r,end:n}=this.consumeArg());return this.pushToken(new ht("EOF",n.loc)),this.pushTokens(a),new ht("",at.range(r,n))}consumeSpaces(){for(;;){var t=this.future();if(t.text===" ")this.stack.pop();else break}}consumeArg(t){var r=[],n=t&&t.length>0;n||this.consumeSpaces();var a=this.future(),i,o=0,l=0;do{if(i=this.popToken(),r.push(i),i.text==="{")++o;else if(i.text==="}"){if(--o,o===-1)throw new U("Extra }",i)}else if(i.text==="EOF")throw new U("Unexpected end of input in a macro argument, expected '"+(t&&n?t[l]:"}")+"'",i);if(t&&n)if((o===0||o===1&&t[l]==="{")&&i.text===t[l]){if(++l,l===t.length){r.splice(-l,l);break}}else l=0}while(o!==0||n);return a.text==="{"&&r[r.length-1].text==="}"&&(r.pop(),r.shift()),r.reverse(),{tokens:r,start:a,end:i}}consumeArgs(t,r){if(r){if(r.length!==t+1)throw new U("The length of delimiters doesn't match the number of args!");for(var n=r[0],a=0;a<n.length;a++){var i=this.popToken();if(n[a]!==i.text)throw new U("Use of the macro doesn't match its definition",i)}}for(var o=[],l=0;l<t;l++)o.push(this.consumeArg(r&&r[l+1]).tokens);return o}countExpansion(t){if(this.expansionCount+=t,this.expansionCount>this.settings.maxExpand)throw new U("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(t){var r=this.popToken(),n=r.text,a=r.noexpand?null:this._getExpansion(n);if(a==null||t&&a.unexpandable){if(t&&a==null&&n[0]==="\\"&&!this.isDefined(n))throw new U("Undefined control sequence: "+n);return this.pushToken(r),!1}this.countExpansion(1);var i=a.tokens,o=this.consumeArgs(a.numArgs,a.delimiters);if(a.numArgs){i=i.slice();for(var l=i.length-1;l>=0;--l){var s=i[l];if(s.text==="#"){if(l===0)throw new U("Incomplete placeholder at end of macro body",s);if(s=i[--l],s.text==="#")i.splice(l+1,1);else if(/^[1-9]$/.test(s.text))i.splice(l,2,...o[+s.text-1]);else throw new U("Not a valid argument number",s)}}}return this.pushTokens(i),i.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var t=this.stack.pop();return t.treatAsRelax&&(t.text="\\relax"),t}throw new Error}expandMacro(t){return this.macros.has(t)?this.expandTokens([new ht(t)]):void 0}expandTokens(t){var r=[],n=this.stack.length;for(this.pushTokens(t);this.stack.length>n;)if(this.expandOnce(!0)===!1){var a=this.stack.pop();a.treatAsRelax&&(a.noexpand=!1,a.treatAsRelax=!1),r.push(a)}return this.countExpansion(r.length),r}expandMacroAsText(t){var r=this.expandMacro(t);return r&&r.map(n=>n.text).join("")}_getExpansion(t){var r=this.macros.get(t);if(r==null)return r;if(t.length===1){var n=this.lexer.catcodes[t];if(n!=null&&n!==13)return}var a=typeof r=="function"?r(this):r;if(typeof a=="string"){var i=0;if(a.indexOf("#")!==-1)for(var o=a.replace(/##/g,"");o.indexOf("#"+(i+1))!==-1;)++i;for(var l=new jl(a,this.settings),s=[],u=l.lex();u.text!=="EOF";)s.push(u),u=l.lex();s.reverse();var c={tokens:s,numArgs:i};return c}return a}isDefined(t){return this.macros.has(t)||Zt.hasOwnProperty(t)||Ie.math.hasOwnProperty(t)||Ie.text.hasOwnProperty(t)||p1.hasOwnProperty(t)}isExpandable(t){var r=this.macros.get(t);return r!=null?typeof r=="string"||typeof r=="function"||!r.unexpandable:Zt.hasOwnProperty(t)&&!Zt[t].primitive}}var Hl=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,jn=Object.freeze({"₊":"+","₋":"-","₌":"=","₍":"(","₎":")","₀":"0","₁":"1","₂":"2","₃":"3","₄":"4","₅":"5","₆":"6","₇":"7","₈":"8","₉":"9","ₐ":"a","ₑ":"e","ₕ":"h","ᵢ":"i","ⱼ":"j","ₖ":"k","ₗ":"l","ₘ":"m","ₙ":"n","ₒ":"o","ₚ":"p","ᵣ":"r","ₛ":"s","ₜ":"t","ᵤ":"u","ᵥ":"v","ₓ":"x","ᵦ":"β","ᵧ":"γ","ᵨ":"ρ","ᵩ":"ϕ","ᵪ":"χ","⁺":"+","⁻":"-","⁼":"=","⁽":"(","⁾":")","⁰":"0","¹":"1","²":"2","³":"3","⁴":"4","⁵":"5","⁶":"6","⁷":"7","⁸":"8","⁹":"9","ᴬ":"A","ᴮ":"B","ᴰ":"D","ᴱ":"E","ᴳ":"G","ᴴ":"H","ᴵ":"I","ᴶ":"J","ᴷ":"K","ᴸ":"L","ᴹ":"M","ᴺ":"N","ᴼ":"O","ᴾ":"P","ᴿ":"R","ᵀ":"T","ᵁ":"U","ⱽ":"V","ᵂ":"W","ᵃ":"a","ᵇ":"b","ᶜ":"c","ᵈ":"d","ᵉ":"e","ᶠ":"f","ᵍ":"g",ʰ:"h","ⁱ":"i",ʲ:"j","ᵏ":"k",ˡ:"l","ᵐ":"m",ⁿ:"n","ᵒ":"o","ᵖ":"p",ʳ:"r",ˢ:"s","ᵗ":"t","ᵘ":"u","ᵛ":"v",ʷ:"w",ˣ:"x",ʸ:"y","ᶻ":"z","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),ui={"́":{text:"\\'",math:"\\acute"},"̀":{text:"\\`",math:"\\grave"},"̈":{text:'\\"',math:"\\ddot"},"̃":{text:"\\~",math:"\\tilde"},"̄":{text:"\\=",math:"\\bar"},"̆":{text:"\\u",math:"\\breve"},"̌":{text:"\\v",math:"\\check"},"̂":{text:"\\^",math:"\\hat"},"̇":{text:"\\.",math:"\\dot"},"̊":{text:"\\r",math:"\\mathring"},"̋":{text:"\\H"},"̧":{text:"\\c"}},Vl={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};class ba{constructor(t,r){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new A9(t,r,this.mode),this.settings=r,this.leftrightDepth=0}expect(t,r){if(r===void 0&&(r=!0),this.fetch().text!==t)throw new U("Expected '"+t+"', got '"+this.fetch().text+"'",this.fetch());r&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(t){this.mode=t,this.gullet.switchMode(t)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var t=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),t}finally{this.gullet.endGroups()}}subparse(t){var r=this.nextToken;this.consume(),this.gullet.pushToken(new ht("}")),this.gullet.pushTokens(t);var n=this.parseExpression(!1);return this.expect("}"),this.nextToken=r,n}parseExpression(t,r){for(var n=[];;){this.mode==="math"&&this.consumeSpaces();var a=this.fetch();if(ba.endOfExpression.indexOf(a.text)!==-1||r&&a.text===r||t&&Zt[a.text]&&Zt[a.text].infix)break;var i=this.parseAtom(r);if(i){if(i.type==="internal")continue}else break;n.push(i)}return this.mode==="text"&&this.formLigatures(n),this.handleInfixNodes(n)}handleInfixNodes(t){for(var r=-1,n,a=0;a<t.length;a++)if(t[a].type==="infix"){if(r!==-1)throw new U("only one infix operator per group",t[a].token);r=a,n=t[a].replaceWith}if(r!==-1&&n){var i,o,l=t.slice(0,r),s=t.slice(r+1);l.length===1&&l[0].type==="ordgroup"?i=l[0]:i={type:"ordgroup",mode:this.mode,body:l},s.length===1&&s[0].type==="ordgroup"?o=s[0]:o={type:"ordgroup",mode:this.mode,body:s};var u;return n==="\\\\abovefrac"?u=this.callFunction(n,[i,t[r],o],[]):u=this.callFunction(n,[i,o],[]),[u]}else return t}handleSupSubscript(t){var r=this.fetch(),n=r.text;this.consume(),this.consumeSpaces();var a;do{var i;a=this.parseGroup(t)}while(((i=a)==null?void 0:i.type)==="internal");if(!a)throw new U("Expected group after '"+n+"'",r);return a}formatUnsupportedCmd(t){for(var r=[],n=0;n<t.length;n++)r.push({type:"textord",mode:"text",text:t[n]});var a={type:"text",mode:this.mode,body:r},i={type:"color",mode:this.mode,color:this.settings.errorColor,body:[a]};return i}parseAtom(t){var r=this.parseGroup("atom",t);if((r==null?void 0:r.type)==="internal"||this.mode==="text")return r;for(var n,a;;){this.consumeSpaces();var i=this.fetch();if(i.text==="\\limits"||i.text==="\\nolimits"){if(r&&r.type==="op"){var o=i.text==="\\limits";r.limits=o,r.alwaysHandleSupSub=!0}else if(r&&r.type==="operatorname")r.alwaysHandleSupSub&&(r.limits=i.text==="\\limits");else throw new U("Limit controls must follow a math operator",i);this.consume()}else if(i.text==="^"){if(n)throw new U("Double superscript",i);n=this.handleSupSubscript("superscript")}else if(i.text==="_"){if(a)throw new U("Double subscript",i);a=this.handleSupSubscript("subscript")}else if(i.text==="'"){if(n)throw new U("Double superscript",i);var l={type:"textord",mode:this.mode,text:"\\prime"},s=[l];for(this.consume();this.fetch().text==="'";)s.push(l),this.consume();this.fetch().text==="^"&&s.push(this.handleSupSubscript("superscript")),n={type:"ordgroup",mode:this.mode,body:s}}else if(jn[i.text]){var u=Hl.test(i.text),c=[];for(c.push(new ht(jn[i.text])),this.consume();;){var h=this.fetch().text;if(!jn[h]||Hl.test(h)!==u)break;c.unshift(new ht(jn[h])),this.consume()}var m=this.subparse(c);u?a={type:"ordgroup",mode:"math",body:m}:n={type:"ordgroup",mode:"math",body:m}}else break}return n||a?{type:"supsub",mode:this.mode,base:r,sup:n,sub:a}:r}parseFunction(t,r){var n=this.fetch(),a=n.text,i=Zt[a];if(!i)return null;if(this.consume(),r&&r!=="atom"&&!i.allowedInArgument)throw new U("Got function '"+a+"' with no arguments"+(r?" as "+r:""),n);if(this.mode==="text"&&!i.allowedInText)throw new U("Can't use function '"+a+"' in text mode",n);if(this.mode==="math"&&i.allowedInMath===!1)throw new U("Can't use function '"+a+"' in math mode",n);var{args:o,optArgs:l}=this.parseArguments(a,i);return this.callFunction(a,o,l,n,t)}callFunction(t,r,n,a,i){var o={funcName:t,parser:this,token:a,breakOnTokenText:i},l=Zt[t];if(l&&l.handler)return l.handler(o,r,n);throw new U("No function handler for "+t)}parseArguments(t,r){var n=r.numArgs+r.numOptionalArgs;if(n===0)return{args:[],optArgs:[]};for(var a=[],i=[],o=0;o<n;o++){var l=r.argTypes&&r.argTypes[o],s=o<r.numOptionalArgs;(r.primitive&&l==null||r.type==="sqrt"&&o===1&&i[0]==null)&&(l="primitive");var u=this.parseGroupOfType("argument to '"+t+"'",l,s);if(s)i.push(u);else if(u!=null)a.push(u);else throw new U("Null argument, please report this as a bug")}return{args:a,optArgs:i}}parseGroupOfType(t,r,n){switch(r){case"color":return this.parseColorGroup(n);case"size":return this.parseSizeGroup(n);case"url":return this.parseUrlGroup(n);case"math":case"text":return this.parseArgumentGroup(n,r);case"hbox":{var a=this.parseArgumentGroup(n,"text");return a!=null?{type:"styling",mode:a.mode,body:[a],style:"text"}:null}case"raw":{var i=this.parseStringGroup("raw",n);return i!=null?{type:"raw",mode:"text",string:i.text}:null}case"primitive":{if(n)throw new U("A primitive argument cannot be optional");var o=this.parseGroup(t);if(o==null)throw new U("Expected group as "+t,this.fetch());return o}case"original":case null:case void 0:return this.parseArgumentGroup(n);default:throw new U("Unknown group type as "+t,this.fetch())}}consumeSpaces(){for(;this.fetch().text===" ";)this.consume()}parseStringGroup(t,r){var n=this.gullet.scanArgument(r);if(n==null)return null;for(var a="",i;(i=this.fetch()).text!=="EOF";)a+=i.text,this.consume();return this.consume(),n.text=a,n}parseRegexGroup(t,r){for(var n=this.fetch(),a=n,i="",o;(o=this.fetch()).text!=="EOF"&&t.test(i+o.text);)a=o,i+=a.text,this.consume();if(i==="")throw new U("Invalid "+r+": '"+n.text+"'",n);return n.range(a,i)}parseColorGroup(t){var r=this.parseStringGroup("color",t);if(r==null)return null;var n=/^(#[a-f0-9]{3,4}|#[a-f0-9]{6}|#[a-f0-9]{8}|[a-f0-9]{6}|[a-z]+)$/i.exec(r.text);if(!n)throw new U("Invalid color: '"+r.text+"'",r);var a=n[0];return/^[0-9a-f]{6}$/i.test(a)&&(a="#"+a),{type:"color-token",mode:this.mode,color:a}}parseSizeGroup(t){var r,n=!1;if(this.gullet.consumeSpaces(),!t&&this.gullet.future().text!=="{"?r=this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"):r=this.parseStringGroup("size",t),!r)return null;!t&&r.text.length===0&&(r.text="0pt",n=!0);var a=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(r.text);if(!a)throw new U("Invalid size: '"+r.text+"'",r);var i={number:+(a[1]+a[2]),unit:a[3]};if(!Tc(i))throw new U("Invalid unit: '"+i.unit+"'",r);return{type:"size",mode:this.mode,value:i,isBlank:n}}parseUrlGroup(t){this.gullet.lexer.setCatcode("%",13),this.gullet.lexer.setCatcode("~",12);var r=this.parseStringGroup("url",t);if(this.gullet.lexer.setCatcode("%",14),this.gullet.lexer.setCatcode("~",13),r==null)return null;var n=r.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:n}}parseArgumentGroup(t,r){var n=this.gullet.scanArgument(t);if(n==null)return null;var a=this.mode;r&&this.switchMode(r),this.gullet.beginGroup();var i=this.parseExpression(!1,"EOF");this.expect("EOF"),this.gullet.endGroup();var o={type:"ordgroup",mode:this.mode,loc:n.loc,body:i};return r&&this.switchMode(a),o}parseGroup(t,r){var n=this.fetch(),a=n.text,i;if(a==="{"||a==="\\begingroup"){this.consume();var o=a==="{"?"}":"\\endgroup";this.gullet.beginGroup();var l=this.parseExpression(!1,o),s=this.fetch();this.expect(o),this.gullet.endGroup(),i={type:"ordgroup",mode:this.mode,loc:at.range(n,s),body:l,semisimple:a==="\\begingroup"||void 0}}else if(i=this.parseFunction(r,t)||this.parseSymbol(),i==null&&a[0]==="\\"&&!p1.hasOwnProperty(a)){if(this.settings.throwOnError)throw new U("Undefined control sequence: "+a,n);i=this.formatUnsupportedCmd(a),this.consume()}return i}formLigatures(t){for(var r=t.length-1,n=0;n<r;++n){var a=t[n],i=a.text;i==="-"&&t[n+1].text==="-"&&(n+1<r&&t[n+2].text==="-"?(t.splice(n,3,{type:"textord",mode:"text",loc:at.range(a,t[n+2]),text:"---"}),r-=2):(t.splice(n,2,{type:"textord",mode:"text",loc:at.range(a,t[n+1]),text:"--"}),r-=1)),(i==="'"||i==="`")&&t[n+1].text===i&&(t.splice(n,2,{type:"textord",mode:"text",loc:at.range(a,t[n+1]),text:i+i}),r-=1)}}parseSymbol(){var t=this.fetch(),r=t.text;if(/^\\verb[^a-zA-Z]/.test(r)){this.consume();var n=r.slice(5),a=n.charAt(0)==="*";if(a&&(n=n.slice(1)),n.length<2||n.charAt(0)!==n.slice(-1))throw new U(`\\verb assertion failed --
362
+ please report what input caused this bug`);return n=n.slice(1,-1),{type:"verb",mode:"text",body:n,star:a}}Vl.hasOwnProperty(r[0])&&!Ie[this.mode][r[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+r[0]+'" used in math mode',t),r=Vl[r[0]]+r.slice(1));var i=S9.exec(r);i&&(r=r.substring(0,i.index),r==="i"?r="ı":r==="j"&&(r="ȷ"));var o;if(Ie[this.mode][r]){this.settings.strict&&this.mode==="math"&&Ii.indexOf(r)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+r[0]+'" used in math mode',t);var l=Ie[this.mode][r].group,s=at.range(t),u;if(pg.hasOwnProperty(l)){var c=l;u={type:"atom",mode:this.mode,family:c,loc:s,text:r}}else u={type:l,mode:this.mode,loc:s,text:r};o=u}else if(r.charCodeAt(0)>=128)this.settings.strict&&(Cc(r.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+r[0]+'" used in math mode',t):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+r[0]+'"'+(" ("+r.charCodeAt(0)+")"),t)),o={type:"textord",mode:"text",loc:at.range(t),text:r};else return null;if(this.consume(),i)for(var h=0;h<i[0].length;h++){var m=i[0][h];if(!ui[m])throw new U("Unknown accent ' "+m+"'",t);var p=ui[m][this.mode]||ui[m].text;if(!p)throw new U("Accent "+m+" unsupported in "+this.mode+" mode",t);o={type:"accent",mode:this.mode,loc:at.range(t),label:p,isStretchy:!1,isShifty:!0,base:o}}return o}}ba.endOfExpression=["}","\\endgroup","\\end","\\right","&"];var P0=function(t,r){if(!(typeof t=="string"||t instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var n=new ba(t,r);delete n.gullet.macros.current["\\df@tag"];var a=n.parse();if(delete n.gullet.macros.current["\\current@color"],delete n.gullet.macros.current["\\color"],n.gullet.macros.get("\\df@tag")){if(!r.displayMode)throw new U("\\tag works only in display equations");a=[{type:"tag",mode:"text",body:a,tag:n.subparse([new ht("\\df@tag")])}]}return a},g1=function(t,r,n){r.textContent="";var a=B0(t,n).toNode();r.appendChild(a)};typeof document<"u"&&document.compatMode!=="CSS1Compat"&&(typeof console<"u"&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),g1=function(){throw new U("KaTeX doesn't work in quirks mode.")});var z9=function(t,r){var n=B0(t,r).toMarkup();return n},N9=function(t,r){var n=new v0(r);return P0(t,n)},v1=function(t,r,n){if(n.throwOnError||!(t instanceof U))throw t;var a=I.makeSpan(["katex-error"],[new pt(r)]);return a.setAttribute("title",t.toString()),a.setAttribute("style","color:"+n.errorColor),a},B0=function(t,r){var n=new v0(r);try{var a=P0(t,n);return Og(a,t,n)}catch(i){return v1(i,t,n)}},E9=function(t,r){var n=new v0(r);try{var a=P0(t,n);return jg(a,t,n)}catch(i){return v1(i,t,n)}},D9="0.16.25",I9={Span:gn,Anchor:x0,SymbolNode:pt,SvgNode:qt,PathNode:er,LineNode:Di},$l={version:D9,render:g1,renderToString:z9,ParseError:U,SETTINGS_SCHEMA:Vn,__parse:N9,__renderToDomTree:B0,__renderToHTMLTree:E9,__setFontMetrics:lg,__defineSymbol:d,__defineFunction:re,__defineMacro:x,__domTree:I9};const L9={};function R9(e){const t=this,r=e||L9,n=t.data(),a=n.micromarkExtensions||(n.micromarkExtensions=[]),i=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),o=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);a.push(L8(r)),i.push(T8()),o.push(M8(r))}const Ul=/[#.]/g;function P9(e,t){const r=e||"",n={};let a=0,i,o;for(;a<r.length;){Ul.lastIndex=a;const l=Ul.exec(r),s=r.slice(a,l?l.index:r.length);s&&(i?i==="#"?n.id=s:Array.isArray(n.className)?n.className.push(s):n.className=[s]:o=s,a+=s.length),l&&(i=l[0],a++)}return{type:"element",tagName:o||t||"div",properties:n,children:[]}}function b1(e,t,r){const n=r?j9(r):void 0;function a(i,o,...l){let s;if(i==null){s={type:"root",children:[]};const u=o;l.unshift(u)}else{s=P9(i,t);const u=s.tagName.toLowerCase(),c=n?n.get(u):void 0;if(s.tagName=c||u,B9(o))l.unshift(o);else for(const[h,m]of Object.entries(o))F9(e,s.properties,h,m)}for(const u of l)Oi(s.children,u);return s.type==="element"&&s.tagName==="template"&&(s.content={type:"root",children:s.children},s.children=[]),s}return a}function B9(e){if(e===null||typeof e!="object"||Array.isArray(e))return!0;if(typeof e.type!="string")return!1;const t=e,r=Object.keys(e);for(const n of r){const a=t[n];if(a&&typeof a=="object"){if(!Array.isArray(a))return!0;const i=a;for(const o of i)if(typeof o!="number"&&typeof o!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function F9(e,t,r,n){const a=ku(e,r);let i;if(n!=null){if(typeof n=="number"){if(Number.isNaN(n))return;i=n}else typeof n=="boolean"?i=n:typeof n=="string"?a.spaceSeparated?i=So(n):a.commaSeparated?i=bo(n):a.commaOrSpaceSeparated?i=So(bo(n).join(" ")):i=Gl(a,a.property,n):Array.isArray(n)?i=[...n]:i=a.property==="style"?O9(n):String(n);if(Array.isArray(i)){const o=[];for(const l of i)o.push(Gl(a,a.property,l));i=o}a.property==="className"&&Array.isArray(t.className)&&(i=t.className.concat(i)),t[a.property]=i}}function Oi(e,t){if(t!=null)if(typeof t=="number"||typeof t=="string")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(const r of t)Oi(e,r);else if(typeof t=="object"&&"type"in t)t.type==="root"?Oi(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function Gl(e,t,r){if(typeof r=="string"){if(e.number&&r&&!Number.isNaN(Number(r)))return Number(r);if((e.boolean||e.overloadedBoolean)&&(r===""||on(r)===on(t)))return!0}return r}function O9(e){const t=[];for(const[r,n]of Object.entries(e))t.push([r,n].join(": "));return t.join("; ")}function j9(e){const t=new Map;for(const r of e)t.set(r.toLowerCase(),r);return t}const _9=["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"],q9=b1(Su,"div"),H9=b1(la,"g",_9),ci={html:"http://www.w3.org/1999/xhtml",svg:"http://www.w3.org/2000/svg"};function V9(e,t){return y1(e,{})||{type:"root",children:[]}}function y1(e,t){const r=$9(e,t);return r&&t.afterTransform&&t.afterTransform(e,r),r}function $9(e,t){switch(e.nodeType){case 1:return X9(e,t);case 3:return G9(e);case 8:return W9(e);case 9:return Wl(e,t);case 10:return U9();case 11:return Wl(e,t);default:return}}function Wl(e,t){return{type:"root",children:x1(e,t)}}function U9(){return{type:"doctype"}}function G9(e){return{type:"text",value:e.nodeValue||""}}function W9(e){return{type:"comment",value:e.nodeValue||""}}function X9(e,t){const r=e.namespaceURI,n=r===ci.svg?H9:q9,a=r===ci.html?e.tagName.toLowerCase():e.tagName,i=r===ci.html&&a==="template"?e.content:e,o=e.getAttributeNames(),l={};let s=-1;for(;++s<o.length;)l[o[s]]=e.getAttribute(o[s])||"";return n(a,l,x1(i,t))}function x1(e,t){const r=e.childNodes,n=[];let a=-1;for(;++a<r.length;){const i=y1(r[a],t);i!==void 0&&n.push(i)}return n}new DOMParser;function Y9(e,t){const r=K9(e);return V9(r)}function K9(e){const t=document.createElement("template");return t.innerHTML=e,t.content}const Xl=(function(e,t,r){const n=mn(r);if(!e||!e.type||!e.children)throw new Error("Expected parent node");if(typeof t=="number"){if(t<0||t===Number.POSITIVE_INFINITY)throw new Error("Expected positive finite number as index")}else if(t=e.children.indexOf(t),t<0)throw new Error("Expected child node or index");for(;++t<e.children.length;)if(n(e.children[t],t,e))return e.children[t]}),br=(function(e){if(e==null)return J9;if(typeof e=="string")return Q9(e);if(typeof e=="object")return Z9(e);if(typeof e=="function")return F0(e);throw new Error("Expected function, string, or array as `test`")});function Z9(e){const t=[];let r=-1;for(;++r<e.length;)t[r]=br(e[r]);return F0(n);function n(...a){let i=-1;for(;++i<t.length;)if(t[i].apply(this,a))return!0;return!1}}function Q9(e){return F0(t);function t(r){return r.tagName===e}}function F0(e){return t;function t(r,n,a){return!!(ev(r)&&e.call(this,r,typeof n=="number"?n:void 0,a||void 0))}}function J9(e){return!!(e&&typeof e=="object"&&"type"in e&&e.type==="element"&&"tagName"in e&&typeof e.tagName=="string")}function ev(e){return e!==null&&typeof e=="object"&&"type"in e&&"tagName"in e}const Yl=/\n/g,Kl=/[\t ]+/g,ji=br("br"),Zl=br(sv),tv=br("p"),Ql=br("tr"),rv=br(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",lv,uv]),w1=br(["address","article","aside","blockquote","body","caption","center","dd","dialog","dir","dl","dt","div","figure","figcaption","footer","form,","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","legend","li","listing","main","menu","nav","ol","p","plaintext","pre","section","ul","xmp"]);function nv(e,t){const r=t||{},n="children"in e?e.children:[],a=w1(e),i=C1(e,{whitespace:r.whitespace||"normal"}),o=[];(e.type==="text"||e.type==="comment")&&o.push(...S1(e,{breakBefore:!0,breakAfter:!0}));let l=-1;for(;++l<n.length;)o.push(...k1(n[l],e,{whitespace:i,breakBefore:l?void 0:a,breakAfter:l<n.length-1?ji(n[l+1]):a}));const s=[];let u;for(l=-1;++l<o.length;){const c=o[l];typeof c=="number"?u!==void 0&&c>u&&(u=c):c&&(u!==void 0&&u>-1&&s.push(`
363
+ `.repeat(u)||" "),u=-1,s.push(c))}return s.join("")}function k1(e,t,r){return e.type==="element"?av(e,t,r):e.type==="text"?r.whitespace==="normal"?S1(e,r):iv(e):[]}function av(e,t,r){const n=C1(e,r),a=e.children||[];let i=-1,o=[];if(rv(e))return o;let l,s;for(ji(e)||Ql(e)&&Xl(t,e,Ql)?s=`
364
+ `:tv(e)?(l=2,s=2):w1(e)&&(l=1,s=1);++i<a.length;)o=o.concat(k1(a[i],e,{whitespace:n,breakBefore:i?void 0:l,breakAfter:i<a.length-1?ji(a[i+1]):s}));return Zl(e)&&Xl(t,e,Zl)&&o.push(" "),l&&o.unshift(l),s&&o.push(s),o}function S1(e,t){const r=String(e.value),n=[],a=[];let i=0;for(;i<=r.length;){Yl.lastIndex=i;const s=Yl.exec(r),u=s&&"index"in s?s.index:r.length;n.push(ov(r.slice(i,u).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),i===0?t.breakBefore:!0,u===r.length?t.breakAfter:!0)),i=u+1}let o=-1,l;for(;++o<n.length;)n[o].charCodeAt(n[o].length-1)===8203||o<n.length-1&&n[o+1].charCodeAt(0)===8203?(a.push(n[o]),l=void 0):n[o]?(typeof l=="number"&&a.push(l),a.push(n[o]),l=0):(o===0||o===n.length-1)&&a.push(0);return a}function iv(e){return[String(e.value)]}function ov(e,t,r){const n=[];let a=0,i;for(;a<e.length;){Kl.lastIndex=a;const o=Kl.exec(e);i=o?o.index:e.length,!a&&!i&&o&&!t&&n.push(""),a!==i&&n.push(e.slice(a,i)),a=o?i+o[0].length:i}return a!==i&&!r&&n.push(""),n.join(" ")}function C1(e,t){if(e.type==="element"){const r=e.properties||{};switch(e.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return r.wrap?"pre-wrap":"pre";case"td":case"th":return r.noWrap?"nowrap":t.whitespace;case"textarea":return"pre-wrap"}}return t.whitespace}function lv(e){return!!(e.properties||{}).hidden}function sv(e){return e.tagName==="td"||e.tagName==="th"}function uv(e){return e.tagName==="dialog"&&!(e.properties||{}).open}const cv={},hv=[];function dv(e){const t=e||cv;return function(r,n){h0(r,"element",function(a,i){const o=Array.isArray(a.properties.className)?a.properties.className:hv,l=o.includes("language-math"),s=o.includes("math-display"),u=o.includes("math-inline");let c=s;if(!l&&!s&&!u)return;let h=i[i.length-1],m=a;if(a.tagName==="code"&&l&&h&&h.type==="element"&&h.tagName==="pre"&&(m=h,h=i[i.length-2],c=!0),!h)return;const p=nv(m,{whitespace:"pre"});let y;try{y=$l.renderToString(p,{...t,displayMode:c,throwOnError:!0})}catch(C){const k=C,A=k.name.toLowerCase();n.message("Could not render math with KaTeX",{ancestors:[...i,a],cause:k,place:a.position,ruleId:A,source:"rehype-katex"});try{y=$l.renderToString(p,{...t,displayMode:c,strict:"ignore",throwOnError:!1})}catch{y=[{type:"element",tagName:"span",properties:{className:["katex-error"],style:"color:"+(t.errorColor||"#cc0000"),title:String(C)},children:[{type:"text",value:p}]}]}}typeof y=="string"&&(y=Y9(y).children);const w=h.children.indexOf(m);return h.children.splice(w,1,...y),Zu})}}const mv=R(["markdown-renderer","max-w-none","break-words","leading-relaxed","font-[Inter,system-ui,-apple-system,sans-serif]","[&>*:first-child]:!mt-0","[&>*:last-child]:!mb-0","[&_h1]:font-[Signifier,serif]","[&_h1]:text-[1.5rem]","[&_h1]:leading-tight","[&_h1]:font-light","[&_h1]:tracking-[-0.5px]","[&_h2]:font-[Signifier,serif]","[&_h2]:text-[1.25rem]","[&_h2]:leading-tight","[&_h2]:font-light","[&_h2]:tracking-[-0.25px]","[&_h3]:font-[Signifier,serif]","[&_h3]:text-[1.125rem]","[&_h3]:leading-snug","[&_h3]:font-light","[&_h4]:font-[Signifier,serif]","[&_h4]:text-[1rem]","[&_h4]:leading-snug","[&_h4]:font-light","[&_h5]:font-[Signifier,serif]","[&_h5]:text-[0.9375rem]","[&_h5]:leading-normal","[&_h5]:font-light","[&_h6]:font-[Signifier,serif]","[&_h6]:text-[0.875rem]","[&_h6]:leading-normal","[&_h6]:font-light","[&_p]:font-[Inter,system-ui,-apple-system,sans-serif]","[&_p]:text-[1rem]","[&_p]:leading-[1.5]","[&_strong]:font-medium","[&_em]:italic","[&_code]:font-[Roboto_Mono,monospace]","[&_code]:bg-[var(--color-gray-100)]","[&_code]:px-1.5","[&_code]:py-0.5","[&_code]:rounded","[&_code]:text-[0.875rem]","[&_code]:border","[&_code]:border-[var(--color-gray-200)]","[&_pre]:font-[Roboto_Mono,monospace]","[&_pre]:bg-[var(--color-gray-100)]","[&_pre]:border","[&_pre]:border-[var(--color-gray-200)]","[&_pre]:rounded-lg","[&_pre]:text-[0.875rem]","[&_pre]:leading-[1.5]","[&_pre]:p-5","[&_pre]:overflow-x-auto","[&_pre_code]:bg-transparent","[&_pre_code]:p-0","[&_pre_code]:border-0","[&_blockquote]:font-[Inter,system-ui,-apple-system,sans-serif]","[&_blockquote]:border-l-4","[&_blockquote]:border-[var(--color-gray-300)]","[&_blockquote]:bg-[var(--color-gray-50)]","[&_blockquote]:py-5","[&_blockquote]:px-6","[&_blockquote]:rounded-r","[&_blockquote]:text-[1rem]","[&_blockquote]:leading-[1.5]","[&_blockquote]:italic","[&_ul]:font-[Inter,system-ui,-apple-system,sans-serif]","[&_ul]:pl-6","[&_ul]:list-disc","[&_ul]:list-outside","[&_ol]:font-[Inter,system-ui,-apple-system,sans-serif]","[&_ol]:pl-6","[&_ol]:list-decimal","[&_ol]:list-outside","[&_li]:text-[1rem]","[&_li]:leading-[1.5]","[&_li]:pl-2","[&_li:last-child]:mb-0","[&_ul_ul]:pl-5","[&_ul_ul]:mt-3","[&_ul_ul]:mb-1","[&_ul_ul]:list-[circle]","[&_ol_ol]:pl-5","[&_ol_ol]:mt-3","[&_ol_ol]:mb-1","[&_ol_ol]:list-[lower-alpha]","[&_ul_ul_ul]:list-[square]","[&_ol_ol_ol]:list-[lower-roman]","[&_a]:font-medium","[&_a]:no-underline","[&_a:hover]:underline","[&_a]:transition-colors","[&_table]:w-full","[&_table]:border-collapse","[&_table]:border","[&_table]:border-[var(--color-gray-200)]","[&_table]:bg-white","[&_table]:shadow-sm","[&_table]:rounded-lg","[&_thead]:bg-[var(--color-gray-50)]","[&_thead]:border-b-2","[&_thead]:border-[var(--color-gray-200)]","[&_tbody_tr]:border-b","[&_tbody_tr]:border-[var(--color-gray-200)]","[&_tbody_tr:last-child]:border-b-0","[&_tbody_tr:hover]:bg-[var(--color-gray-50)]","[&_tbody_tr]:transition-colors","[&_td]:text-[1rem]","[&_td]:leading-[1.5]","[&_td]:border-r","[&_td]:border-[var(--color-gray-200)]","[&_td]:px-4","[&_td]:py-3","[&_td:last-child]:border-r-0","[&_td]:align-top","[&_th]:text-[1rem]","[&_th]:leading-[1.5]","[&_th]:font-medium","[&_th]:border-r","[&_th]:border-[var(--color-gray-200)]","[&_th]:px-4","[&_th]:py-3","[&_th:last-child]:border-r-0","[&_th]:text-left","[&_th]:bg-[var(--color-gray-50)]","[&_hr]:border-[var(--color-gray-200)]",'[&_input[type="checkbox"]]:mr-2','[&_input[type="checkbox"]]:accent-[var(--color-blue-800)]'],{variants:{size:{small:["[&_p]:text-[0.875rem]","[&_p]:leading-[1.5]","[&_li]:text-[0.875rem]","[&_li]:leading-[1.5]","[&_code]:text-[0.8125rem]","[&_h1]:text-[1.25rem]","[&_h2]:text-[1.125rem]","[&_h3]:text-[1rem]","[&_h4]:text-[0.9375rem]","[&_blockquote]:leading-[1.5]"],medium:[],large:["[&_p]:text-[1.125rem]","[&_p]:leading-[1.625]","[&_li]:text-[1.125rem]","[&_li]:leading-[1.625]","[&_code]:text-[1rem]","[&_h1]:text-[1.75rem]","[&_h2]:text-[1.5rem]","[&_h3]:text-[1.25rem]","[&_h4]:text-[1.125rem]","[&_blockquote]:leading-[1.625]"]},variant:{default:["text-[var(--color-gray-1000)]","[&_h1]:text-[var(--color-gray-1000)]","[&_h2]:text-[var(--color-gray-1000)]","[&_h3]:text-[var(--color-gray-1000)]","[&_h4]:text-[var(--color-gray-1000)]","[&_h5]:text-[var(--color-gray-800)]","[&_h6]:text-[var(--color-gray-600)]","[&_p]:text-[var(--color-gray-1000)]","[&_li]:text-[var(--color-gray-1000)]","[&_strong]:text-[var(--color-gray-1000)]","[&_em]:text-[var(--color-gray-1000)]","[&_code]:text-[var(--color-gray-800)]","[&_blockquote]:text-[var(--color-gray-600)]","[&_a]:text-[var(--color-blue-800)]","[&_a:hover]:text-[var(--color-blue-1000)]","[&_table]:text-[var(--color-gray-1000)]","[&_th]:text-[var(--color-gray-1000)]"],muted:["text-[var(--color-gray-600)]","[&_h1]:text-[var(--color-gray-600)]","[&_h2]:text-[var(--color-gray-600)]","[&_h3]:text-[var(--color-gray-600)]","[&_h4]:text-[var(--color-gray-600)]","[&_h5]:text-[var(--color-gray-600)]","[&_h6]:text-[var(--color-gray-600)]","[&_p]:text-[var(--color-gray-600)]","[&_li]:text-[var(--color-gray-600)]","[&_strong]:text-[var(--color-gray-600)]","[&_em]:text-[var(--color-gray-600)]","[&_code]:text-[var(--color-gray-600)]","[&_blockquote]:text-[var(--color-gray-600)]","[&_a]:text-[var(--color-blue-800)]","[&_a:hover]:text-[var(--color-blue-1000)]","[&_table]:text-[var(--color-gray-600)]","[&_th]:text-[var(--color-gray-600)]"],primary:["text-[var(--color-blue-1000)]","[&_h1]:text-[var(--color-blue-1000)]","[&_h2]:text-[var(--color-blue-1000)]","[&_h3]:text-[var(--color-blue-1000)]","[&_h4]:text-[var(--color-blue-1000)]","[&_h5]:text-[var(--color-blue-1000)]","[&_h6]:text-[var(--color-blue-1000)]","[&_p]:text-[var(--color-blue-1000)]","[&_li]:text-[var(--color-blue-1000)]","[&_strong]:text-[var(--color-blue-1000)]","[&_em]:text-[var(--color-blue-1000)]","[&_code]:text-[var(--color-gray-800)]","[&_blockquote]:text-[var(--color-gray-800)]","[&_a]:text-[var(--color-blue-800)]","[&_a:hover]:text-[var(--color-blue-1000)]","[&_table]:text-[var(--color-blue-1000)]","[&_th]:text-[var(--color-blue-1000)]"]}},defaultVariants:{size:"medium",variant:"default"}}),T1=Y.forwardRef(({className:e,content:t,size:r="medium",variant:n="default",renderCodeBlock:a,renderInlineCode:i,renderMathBlock:o,renderInlineMath:l,renderLink:s,...u},c)=>{const h=Y.useMemo(()=>({h1:({children:m})=>v.jsx("h1",{className:"font-[Signifier,serif] text-[1.5rem] font-light leading-tight tracking-[-0.5px] text-[var(--color-gray-1000)] first:mt-0",style:{marginTop:"2.5rem",marginBottom:"0.75rem"},children:m}),h2:({children:m})=>v.jsx("h2",{className:"font-[Signifier,serif] text-[1.25rem] font-light leading-tight tracking-[-0.25px] text-[var(--color-gray-1000)] first:mt-0",style:{marginTop:"2rem",marginBottom:"0.5rem"},children:m}),h3:({children:m})=>v.jsx("h3",{className:"font-[Signifier,serif] text-[1.125rem] font-light leading-snug text-[var(--color-gray-1000)] first:mt-0",style:{marginTop:"1.5rem",marginBottom:"0.5rem"},children:m}),h4:({children:m})=>v.jsx("h4",{className:"font-[Signifier,serif] text-[1rem] font-light leading-snug text-[var(--color-gray-1000)] first:mt-0",style:{marginTop:"1.25rem",marginBottom:"0.375rem"},children:m}),h5:({children:m})=>v.jsx("h5",{className:"font-[Signifier,serif] text-[0.9375rem] font-light leading-normal text-[var(--color-gray-800)] first:mt-0",style:{marginTop:"1rem",marginBottom:"0.375rem"},children:m}),h6:({children:m})=>v.jsx("h6",{className:"font-[Signifier,serif] text-[0.875rem] font-light leading-normal text-[var(--color-gray-600)] first:mt-0",style:{marginTop:"0.875rem",marginBottom:"0.25rem"},children:m}),p:({children:m})=>v.jsx("p",{className:"font-[Inter,system-ui,-apple-system,sans-serif] text-[1rem] leading-[1.5]",style:{marginTop:"0",marginBottom:"1rem"},children:m}),ul:({children:m})=>v.jsx("ul",{className:"font-[Inter,system-ui,-apple-system,sans-serif] pl-6 list-disc list-outside",style:{marginTop:"0",marginBottom:"0.75rem"},children:m}),ol:({children:m})=>v.jsx("ol",{className:"font-[Inter,system-ui,-apple-system,sans-serif] pl-6 list-decimal list-outside",style:{marginTop:"0",marginBottom:"0.75rem"},children:m}),li:({children:m})=>v.jsx("li",{className:"text-[1rem] leading-[1.5] pl-2",style:{marginBottom:"0.25rem"},children:m}),code:({className:m,children:p,...y})=>{const w=m==null?void 0:m.includes("language-"),C=m==null?void 0:m.replace("language-","");return w&&a?v.jsx(v.Fragment,{children:a(String(p).replace(/\n$/,""),C)}):w?v.jsx("code",{className:"font-[Roboto_Mono,monospace] text-[0.875rem] text-[var(--color-gray-800)] leading-relaxed",...y,children:p}):i?v.jsx(v.Fragment,{children:i(String(p))}):v.jsx("code",{className:"px-1.5 py-0.5 font-[Roboto_Mono,monospace] text-[0.875em] bg-[var(--color-gray-100)] text-[var(--color-gray-800)] rounded-[4px] border border-[var(--color-gray-200)]",...y,children:p})},pre:({children:m})=>v.jsx("pre",{className:"font-[Roboto_Mono,monospace] p-5 bg-[var(--color-gray-100)] border border-[var(--color-gray-200)] rounded-[8px] overflow-x-auto leading-[1.5] [&_code]:bg-transparent [&_code]:p-0 [&_code]:border-0",style:{marginTop:"1rem",marginBottom:"1.25rem"},children:m}),blockquote:({children:m})=>v.jsx("blockquote",{className:"font-[Inter,system-ui,-apple-system,sans-serif] pl-6 py-5 border-l-4 border-[var(--color-gray-300)] bg-[var(--color-gray-50)] text-[var(--color-gray-600)] italic rounded-r leading-[1.5]",style:{marginTop:"1rem",marginBottom:"1.25rem"},children:m}),a:({href:m,children:p})=>s&&m?v.jsx(v.Fragment,{children:s(m,String(p))}):v.jsx("a",{href:m,className:"text-[var(--color-blue-800)] hover:text-[var(--color-blue-1000)] font-medium no-underline hover:underline transition-colors",target:"_blank",rel:"noopener noreferrer",children:p}),strong:({children:m})=>v.jsx("strong",{className:"font-medium",children:m}),em:({children:m})=>v.jsx("em",{className:"italic",children:m}),del:({children:m})=>v.jsx("del",{className:"line-through",children:m}),table:({children:m})=>v.jsx("div",{className:"overflow-x-auto rounded-lg",style:{marginTop:"1rem",marginBottom:"1.25rem"},children:v.jsx("table",{className:"font-[Inter,system-ui,-apple-system,sans-serif] w-full border-collapse border border-[var(--color-gray-200)] bg-white shadow-sm",children:m})}),thead:({children:m})=>v.jsx("thead",{className:"bg-[var(--color-gray-50)] border-b-2 border-[var(--color-gray-200)]",children:m}),tbody:({children:m})=>v.jsx("tbody",{children:m}),tr:({children:m})=>v.jsx("tr",{className:"border-b border-[var(--color-gray-200)] last:border-b-0 hover:bg-[var(--color-gray-50)] transition-colors",children:m}),th:({children:m})=>v.jsx("th",{className:"px-4 py-3 text-left font-medium border-r border-[var(--color-gray-200)] last:border-r-0 bg-[var(--color-gray-50)]",children:m}),td:({children:m})=>v.jsx("td",{className:"px-4 py-3 border-r border-[var(--color-gray-200)] last:border-r-0 align-top",children:m}),hr:()=>v.jsx("hr",{className:"border-t border-[var(--color-gray-200)]",style:{marginTop:"1.5rem",marginBottom:"1.5rem"}}),input:({checked:m,...p})=>v.jsx("input",{type:"checkbox",checked:m,readOnly:!0,className:"mr-2 accent-[var(--color-blue-800)]",...p})}),[a,i,s]);return v.jsxs(v.Fragment,{children:[v.jsx("style",{children:`
365
+ .markdown-renderer > h1:first-child,
366
+ .markdown-renderer > h2:first-child,
367
+ .markdown-renderer > h3:first-child,
368
+ .markdown-renderer > h4:first-child,
369
+ .markdown-renderer > h5:first-child,
370
+ .markdown-renderer > h6:first-child,
371
+ .markdown-renderer > p:first-child,
372
+ .markdown-renderer > ul:first-child,
373
+ .markdown-renderer > ol:first-child,
374
+ .markdown-renderer > blockquote:first-child,
375
+ .markdown-renderer > pre:first-child,
376
+ .markdown-renderer > div:first-child {
377
+ margin-top: 0 !important;
378
+ }
379
+ .markdown-renderer > *:last-child {
380
+ margin-bottom: 0 !important;
381
+ }
382
+ `}),v.jsx("div",{ref:c,className:te(mv({size:r,variant:n}),e),...u,children:v.jsx(d3,{remarkPlugins:[C8,R9],rehypePlugins:[dv],components:h,children:t})})]})});T1.displayName="MarkdownRenderer";exports.Activity=b.Activity;exports.Airplay=b.Airplay;exports.AlertCircle=b.AlertCircle;exports.AlertOctagon=b.AlertOctagon;exports.AlignCenter=b.AlignCenter;exports.AlignJustify=b.AlignJustify;exports.AlignLeft=b.AlignLeft;exports.AlignRight=b.AlignRight;exports.Anchor=b.Anchor;exports.Aperture=b.Aperture;exports.Archive=b.Archive;exports.ArrowDownCircle=b.ArrowDownCircle;exports.ArrowDownLeft=b.ArrowDownLeft;exports.ArrowDownRight=b.ArrowDownRight;exports.ArrowLeftCircle=b.ArrowLeftCircle;exports.ArrowRightCircle=b.ArrowRightCircle;exports.ArrowUp=b.ArrowUp;exports.ArrowUpCircle=b.ArrowUpCircle;exports.ArrowUpLeft=b.ArrowUpLeft;exports.ArrowUpRight=b.ArrowUpRight;exports.AtSign=b.AtSign;exports.Award=b.Award;exports.BarChart=b.BarChart;exports.BarChart2=b.BarChart2;exports.Battery=b.Battery;exports.BatteryCharging=b.BatteryCharging;exports.BellOff=b.BellOff;exports.Bluetooth=b.Bluetooth;exports.Bold=b.Bold;exports.Book=b.Book;exports.BookOpen=b.BookOpen;exports.Bookmark=b.Bookmark;exports.Box=b.Box;exports.Briefcase=b.Briefcase;exports.BrushCleanup=b.BrushCleanup;exports.Calendar=b.Calendar;exports.Camera=b.Camera;exports.CameraOff=b.CameraOff;exports.Cast=b.Cast;exports.Check=b.Check;exports.CheckCircle=b.CheckCircle;exports.CheckSquare=b.CheckSquare;exports.ChevronDown=b.ChevronDown;exports.ChevronLeft=b.ChevronLeft;exports.ChevronRight=b.ChevronRight;exports.ChevronUp=b.ChevronUp;exports.ChevronsDown=b.ChevronsDown;exports.ChevronsLeft=b.ChevronsLeft;exports.ChevronsRight=b.ChevronsRight;exports.ChevronsUp=b.ChevronsUp;exports.Chrome=b.Chrome;exports.Circle=b.Circle;exports.Clipboard=b.Clipboard;exports.ClockHistory=b.ClockHistory;exports.Cloud=b.Cloud;exports.CloudDrizzle=b.CloudDrizzle;exports.CloudLightning=b.CloudLightning;exports.CloudOff=b.CloudOff;exports.CloudRain=b.CloudRain;exports.CloudSnow=b.CloudSnow;exports.Code=b.Code;exports.Codepen=b.Codepen;exports.Codesandbox=b.Codesandbox;exports.Coffee=b.Coffee;exports.Columns=b.Columns;exports.Command=b.Command;exports.Compass=b.Compass;exports.Component=b.Component;exports.CornerDownLeft=b.CornerDownLeft;exports.CornerDownRight=b.CornerDownRight;exports.CornerLeftDown=b.CornerLeftDown;exports.CornerLeftUp=b.CornerLeftUp;exports.CornerRightDown=b.CornerRightDown;exports.CornerRightUp=b.CornerRightUp;exports.CornerUpLeft=b.CornerUpLeft;exports.CornerUpRight=b.CornerUpRight;exports.Cpu=b.Cpu;exports.CreditCard=b.CreditCard;exports.Crop=b.Crop;exports.Crosshair=b.Crosshair;exports.Database=b.Database;exports.Delete=b.Delete;exports.Disc=b.Disc;exports.Divide=b.Divide;exports.DivideCircle=b.DivideCircle;exports.DivideSquare=b.DivideSquare;exports.DollarSign=b.DollarSign;exports.DownloadCloud=b.DownloadCloud;exports.Dribbble=b.Dribbble;exports.Droplet=b.Droplet;exports.Dumbell=b.Dumbell;exports.Edit2=b.Edit2;exports.Edit3=b.Edit3;exports.Eye=b.Eye;exports.EyeOff=b.EyeOff;exports.Facebook=b.Facebook;exports.FastForward=b.FastForward;exports.Feather=b.Feather;exports.Figma=b.Figma;exports.FileMinus=b.FileMinus;exports.FilePlus=b.FilePlus;exports.FileText=b.FileText;exports.Film=b.Film;exports.Filter=b.Filter;exports.Filter1=b.Filter1;exports.Flag=b.Flag;exports.Folder=b.Folder;exports.FolderMinus=b.FolderMinus;exports.FolderPlus=b.FolderPlus;exports.Framer=b.Framer;exports.Frown=b.Frown;exports.GalleryView=b.GalleryView;exports.Gauge=b.Gauge;exports.Gift=b.Gift;exports.GitBranch=b.GitBranch;exports.GitCommit=b.GitCommit;exports.GitMerge=b.GitMerge;exports.GitPullRequest=b.GitPullRequest;exports.Github=b.Github;exports.Gitlab=b.Gitlab;exports.Globe=b.Globe;exports.Grid=b.Grid;exports.Group1=b.Group1;exports.Hand=b.Hand;exports.HardDrive=b.HardDrive;exports.Hash=b.Hash;exports.Headphones=b.Headphones;exports.HeightSize=b.HeightSize;exports.Hexagon=b.Hexagon;exports.Home=b.Home;exports.Home2=b.Home2;exports.Image=b.Image;exports.Inbox=b.Inbox;exports.Info=b.Info;exports.Instagram=b.Instagram;exports.Invite=b.Invite;exports.Italic=b.Italic;exports.KanbanView=b.KanbanView;exports.Key=b.Key;exports.Layers=b.Layers;exports.Layout=b.Layout;exports.LifeBuoy=b.LifeBuoy;exports.Link=b.Link;exports.Link2=b.Link2;exports.Linkedin=b.Linkedin;exports.List=b.List;exports.ListView=b.ListView;exports.Loader=b.Loader;exports.Lock=b.Lock;exports.LogIn=b.LogIn;exports.Mail=b.Mail;exports.Map=b.Map;exports.MapPin=b.MapPin;exports.Maximize=b.Maximize;exports.Maximize2=b.Maximize2;exports.Meh=b.Meh;exports.MessageCircle=b.MessageCircle;exports.MessageSquare=b.MessageSquare;exports.Mic=b.Mic;exports.MicOff=b.MicOff;exports.Minimize=b.Minimize;exports.Minimize2=b.Minimize2;exports.MinusCircle=b.MinusCircle;exports.MinusSquare=b.MinusSquare;exports.Monitor=b.Monitor;exports.Moon=b.Moon;exports.MoreVertical=b.MoreVertical;exports.MousePointer=b.MousePointer;exports.Move=b.Move;exports.Music=b.Music;exports.Navigation=b.Navigation;exports.Navigation2=b.Navigation2;exports.NewChat=b.NewChat;exports.Octagon=b.Octagon;exports.Package=b.Package;exports.PaperPlane1=b.PaperPlane1;exports.Paperclip=b.Paperclip;exports.Pause=b.Pause;exports.PauseCircle=b.PauseCircle;exports.PenTool=b.PenTool;exports.Percent=b.Percent;exports.Phone=b.Phone;exports.PhoneCall=b.PhoneCall;exports.PhoneForwarded=b.PhoneForwarded;exports.PhoneIncoming=b.PhoneIncoming;exports.PhoneMissed=b.PhoneMissed;exports.PhoneOff=b.PhoneOff;exports.PhoneOutgoing=b.PhoneOutgoing;exports.Pin=b.Pin;exports.Play=b.Play;exports.PlayCircle=b.PlayCircle;exports.Plug21=b.Plug21;exports.Plus=b.Plus;exports.PlusCircle=b.PlusCircle;exports.PlusSquare=b.PlusSquare;exports.Pocket=b.Pocket;exports.Power=b.Power;exports.Printer=b.Printer;exports.Radio=b.Radio;exports.Redo=b.Redo;exports.RefreshCcw=b.RefreshCcw;exports.RefreshCw=b.RefreshCw;exports.Repeat=b.Repeat;exports.Rewind=b.Rewind;exports.RotateCcw=b.RotateCcw;exports.RotateCw=b.RotateCw;exports.Rss=b.Rss;exports.Save=b.Save;exports.Scissors=b.Scissors;exports.Search=b.Search;exports.Send=b.Send;exports.Server=b.Server;exports.Settings=b.Settings;exports.Share=b.Share;exports.Share2=b.Share2;exports.Shield=b.Shield;exports.ShieldOff=b.ShieldOff;exports.ShoppingBag=b.ShoppingBag;exports.ShoppingCart=b.ShoppingCart;exports.Shuffle=b.Shuffle;exports.Sidebar=b.Sidebar;exports.SkipBack=b.SkipBack;exports.SkipForward=b.SkipForward;exports.Slack=b.Slack;exports.Slash=b.Slash;exports.Sliders=b.Sliders;exports.Smartphone=b.Smartphone;exports.Smile=b.Smile;exports.Sort1=b.Sort1;exports.SortDefault=b.SortDefault;exports.SortDown=b.SortDown;exports.SortUp=b.SortUp;exports.Sources=b.Sources;exports.Sparks=b.Sparks;exports.Speaker=b.Speaker;exports.Square=b.Square;exports.Star=b.Star;exports.StopCircle=b.StopCircle;exports.Sun=b.Sun;exports.Sunrise=b.Sunrise;exports.Sunset=b.Sunset;exports.TableView=b.TableView;exports.Tablet=b.Tablet;exports.TagIcon=b.Tag;exports.TagPlus=b.TagPlus;exports.Target=b.Target;exports.Telescope=b.Telescope;exports.Terminal=b.Terminal;exports.TextileIcon=b.TextileIcon;exports.Thermometer=b.Thermometer;exports.ThumbsDown=b.ThumbsDown;exports.ThumbsUp=b.ThumbsUp;exports.ToggleLeft=b.ToggleLeft;exports.ToggleRight=b.ToggleRight;exports.Tool=b.Tool;exports.Trash=b.Trash;exports.Trello=b.Trello;exports.TrendingDown=b.TrendingDown;exports.TrendingUp=b.TrendingUp;exports.Triangle=b.Triangle;exports.TriangleAlert=b.TriangleAlert;exports.Truck=b.Truck;exports.Tv=b.Tv;exports.Twitch=b.Twitch;exports.Twitter=b.Twitter;exports.Type=b.Type;exports.Umbrella=b.Umbrella;exports.Underline=b.Underline;exports.Undo=b.Undo;exports.Unlock=b.Unlock;exports.Uploadfile=b.Uploadfile;exports.UserCheck=b.UserCheck;exports.UserEdit=b.UserEdit;exports.UserMinus=b.UserMinus;exports.UserPlus=b.UserPlus;exports.UserX=b.UserX;exports.Video=b.Video;exports.VideoOff=b.VideoOff;exports.Voicemail=b.Voicemail;exports.Volume=b.Volume;exports.Volume1=b.Volume1;exports.Volume2=b.Volume2;exports.VolumeX=b.VolumeX;exports.Watch=b.Watch;exports.WhiteboardView=b.WhiteboardView;exports.Wifi=b.Wifi;exports.WifiOff=b.WifiOff;exports.Wind=b.Wind;exports.WorkStream=b.WorkStream;exports.X=b.X;exports.XCircle=b.XCircle;exports.XOctagon=b.XOctagon;exports.XSquare=b.XSquare;exports.Youtube=b.Youtube;exports.Zap=b.Zap;exports.ZapOff=b.ZapOff;exports.ZoomIn=b.ZoomIn;exports.ZoomOut=b.ZoomOut;exports.ArtifactCard=ms;exports.AutopilotAction=Is;exports.Avatar=qi;exports.Breadcrumbs=fs;exports.Button=Rr;exports.ChatFile=gs;exports.ChatInput=Ls;exports.Checkbox=vs;exports.CircularProgress=Ui;exports.ConversationHeader=Rs;exports.Dropdown=Gi;exports.DropdownContent=Xi;exports.DropdownItem=Yi;exports.DropdownTrigger=Wi;exports.FileStatus=ps;exports.FullLogo=ds;exports.Input=ys;exports.LoadingSpinner=Sd;exports.LogoA=Vi;exports.MarkdownRenderer=T1;exports.MessageBubble=ws;exports.Modal=fu;exports.ProgressBar=ks;exports.RangeInput=Ss;exports.SidebarItem=Cs;exports.SignatureA=$i;exports.StatusIndicator=Hi;exports.StatusMessage=Ds;exports.Tabs=sm;exports.TabsContent=As;exports.TabsList=Ts;exports.TabsTrigger=Ms;exports.Tag=Pr;exports.TextArea=zs;exports.Timestamp=Ns;exports.Toast=cr;exports.ToastContainer=Mm;exports.Toggle=Es;exports.Tooltip=pi;exports.TooltipContent=Un;exports.TooltipProvider=fi;exports.TooltipTrigger=gi;exports.Typography=Ot;exports.cn=te;exports.showToast=Am;exports.useDropdown=na;
335
383
  //# sourceMappingURL=index.cjs.map