@archieai/ui 1.1.11 → 1.1.12

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 f=require("react/jsx-runtime"),V=require("react"),be=require("framer-motion"),p=require("./Search-DXvng049.cjs"),Go=require("@radix-ui/react-tabs"),n0=require("sonner"),Uo=require("@radix-ui/react-tooltip"),An=require("react-dom");function It(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 z=It(V),D0=It(Go),A0=It(Uo),Wo=It(An);function Nn(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=Nn(r[e]))&&(a&&(a+=" "),a+=t)}else for(t in r)r[t]&&(a&&(a+=" "),a+=t);return a}function Dn(){for(var r,e,t=0,a="",n=arguments.length;t<n;t++)(r=arguments[t])&&(e=Nn(r))&&(a&&(a+=" "),a+=e);return a}const jr="-",$o=r=>{const e=Yo(r),{conflictingClassGroups:t,conflictingClassGroupModifiers:a}=r;return{getClassGroupId:o=>{const l=o.split(jr);return l[0]===""&&l.length!==1&&l.shift(),En(l,e)||Xo(o)},getConflictingClassGroupIds:(o,l)=>{const u=t[o]||[];return l&&a[o]?[...u,...a[o]]:u}}},En=(r,e)=>{var o;if(r.length===0)return e.classGroupId;const t=r[0],a=e.nextPart.get(t),n=a?En(r.slice(1),a):void 0;if(n)return n;if(e.validators.length===0)return;const s=r.join(jr);return(o=e.validators.find(({validator:l})=>l(s)))==null?void 0:o.classGroupId},ga=/^\[(.+)\]$/,Xo=r=>{if(ga.test(r)){const e=ga.exec(r)[1],t=e==null?void 0:e.substring(0,e.indexOf(":"));if(t)return"arbitrary.."+t}},Yo=r=>{const{theme:e,classGroups:t}=r,a={nextPart:new Map,validators:[]};for(const n in t)Sr(t[n],a,n,e);return a},Sr=(r,e,t,a)=>{r.forEach(n=>{if(typeof n=="string"){const s=n===""?e:ba(e,n);s.classGroupId=t;return}if(typeof n=="function"){if(Zo(n)){Sr(n(a),e,t,a);return}e.validators.push({validator:n,classGroupId:t});return}Object.entries(n).forEach(([s,o])=>{Sr(o,ba(e,s),t,a)})})},ba=(r,e)=>{let t=r;return e.split(jr).forEach(a=>{t.nextPart.has(a)||t.nextPart.set(a,{nextPart:new Map,validators:[]}),t=t.nextPart.get(a)}),t},Zo=r=>r.isThemeGetter,Ko=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)}}},kr="!",Cr=":",Jo=Cr.length,Qo=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===Cr){s.push(n.slice(u,M)),u=M+Jo;continue}if(k==="/"){d=M;continue}}k==="["?o++:k==="]"?o--:k==="("?l++:k===")"&&l--}const h=s.length===0?n:n.substring(u),g=ei(h),x=g!==h,w=d&&d>u?d-u:void 0;return{modifiers:s,hasImportantModifier:x,baseClassName:g,maybePostfixModifierPosition:w}};if(e){const n=e+Cr,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},ei=r=>r.endsWith(kr)?r.substring(0,r.length-1):r.startsWith(kr)?r.substring(1):r,ti=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}},ri=r=>({cache:Ko(r.cacheSize),parseClassName:Qo(r),sortModifiers:ti(r),...$o(r)}),ai=/\s+/,ni=(r,e)=>{const{parseClassName:t,getClassGroupId:a,getConflictingClassGroupIds:n,sortModifiers:s}=e,o=[],l=r.trim().split(ai);let u="";for(let d=l.length-1;d>=0;d-=1){const h=l[d],{isExternal:g,modifiers:x,hasImportantModifier:w,baseClassName:M,maybePostfixModifierPosition:k}=t(h);if(g){u=h+(u.length>0?" "+u:u);continue}let T=!!k,N=a(T?M.substring(0,k):M);if(!N){if(!T){u=h+(u.length>0?" "+u:u);continue}if(N=a(M),!N){u=h+(u.length>0?" "+u:u);continue}T=!1}const R=s(x).join(":"),B=w?R+kr:R,P=B+N;if(o.includes(P))continue;o.push(P);const O=n(N,T);for(let Y=0;Y<O.length;++Y){const q=O[Y];o.push(B+q)}u=h+(u.length>0?" "+u:u)}return u};function si(){let r=0,e,t,a="";for(;r<arguments.length;)(e=arguments[r++])&&(t=Rn(e))&&(a&&(a+=" "),a+=t);return a}const Rn=r=>{if(typeof r=="string")return r;let e,t="";for(let a=0;a<r.length;a++)r[a]&&(e=Rn(r[a]))&&(t&&(t+=" "),t+=e);return t};function oi(r,...e){let t,a,n,s=o;function o(u){const d=e.reduce((h,g)=>g(h),r());return t=ri(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 h=ni(u,t);return n(u,h),h}return function(){return s(si.apply(null,arguments))}}const Se=r=>{const e=t=>t[r]||[];return e.isThemeGetter=!0,e},Ln=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Bn=/^\((?:(\w[\w-]*):)?(.+)\)$/i,ii=/^\d+\/\d+$/,li=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ci=/\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$/,ui=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,di=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,mi=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,L0=r=>ii.test(r),ee=r=>!!r&&!Number.isNaN(Number(r)),h0=r=>!!r&&Number.isInteger(Number(r)),Yt=r=>r.endsWith("%")&&ee(r.slice(0,-1)),r0=r=>li.test(r),hi=()=>!0,fi=r=>ci.test(r)&&!ui.test(r),In=()=>!1,pi=r=>di.test(r),vi=r=>mi.test(r),gi=r=>!G(r)&&!U(r),bi=r=>G0(r,On,In),G=r=>Ln.test(r),C0=r=>G0(r,Fn,fi),Zt=r=>G0(r,ki,ee),ya=r=>G0(r,jn,In),yi=r=>G0(r,Pn,vi),ot=r=>G0(r,qn,pi),U=r=>Bn.test(r),X0=r=>U0(r,Fn),xi=r=>U0(r,Ci),xa=r=>U0(r,jn),wi=r=>U0(r,On),Si=r=>U0(r,Pn),it=r=>U0(r,qn,!0),G0=(r,e,t)=>{const a=Ln.exec(r);return a?a[1]?e(a[1]):t(a[2]):!1},U0=(r,e,t=!1)=>{const a=Bn.exec(r);return a?a[1]?e(a[1]):t:!1},jn=r=>r==="position"||r==="percentage",Pn=r=>r==="image"||r==="url",On=r=>r==="length"||r==="size"||r==="bg-size",Fn=r=>r==="length",ki=r=>r==="number",Ci=r=>r==="family-name",qn=r=>r==="shadow",Mi=()=>{const r=Se("color"),e=Se("font"),t=Se("text"),a=Se("font-weight"),n=Se("tracking"),s=Se("leading"),o=Se("breakpoint"),l=Se("container"),u=Se("spacing"),d=Se("radius"),h=Se("shadow"),g=Se("inset-shadow"),x=Se("text-shadow"),w=Se("drop-shadow"),M=Se("blur"),k=Se("perspective"),T=Se("aspect"),N=Se("ease"),R=Se("animate"),B=()=>["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,G],Y=()=>["auto","hidden","clip","visible","scroll"],q=()=>["auto","contain","none"],I=()=>[U,G,u],$=()=>[L0,"full","auto",...I()],me=()=>[h0,"none","subgrid",U,G],ie=()=>["auto",{span:["full",h0,U,G]},h0,U,G],te=()=>[h0,"auto",U,G],ge=()=>["auto","min","max","fr",U,G],xe=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],he=()=>["start","end","center","stretch","center-safe","end-safe"],pe=()=>["auto",...I()],Me=()=>[L0,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...I()],X=()=>[r,U,G],t0=()=>[...P(),xa,ya,{position:[U,G]}],Re=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Le=()=>["auto","cover","contain",wi,bi,{size:[U,G]}],Ce=()=>[Yt,X0,C0],ne=()=>["","none","full",d,U,G],we=()=>["",ee,X0,C0],Be=()=>["solid","dashed","dotted","double"],k0=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],se=()=>[ee,Yt,xa,ya],Ge=()=>["","none",M,U,G],Oe=()=>["none",ee,U,G],Fe=()=>["none",ee,U,G],_=()=>[ee,U,G],qe=()=>[L0,"full",...I()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[r0],breakpoint:[r0],color:[hi],container:[r0],"drop-shadow":[r0],ease:["in","out","in-out"],font:[gi],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[r0],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[r0],shadow:[r0],spacing:["px",ee],text:[r0],"text-shadow":[r0],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",L0,G,U,T]}],container:["container"],columns:[{columns:[ee,G,U,l]}],"break-after":[{"break-after":B()}],"break-before":[{"break-before":B()}],"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:[h0,"auto",U,G]}],basis:[{basis:[L0,"full","auto",l,...I()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ee,L0,"auto","initial","none",G]}],grow:[{grow:["",ee,U,G]}],shrink:[{shrink:["",ee,U,G]}],order:[{order:[h0,"first","last","none",U,G]}],"grid-cols":[{"grid-cols":me()}],"col-start-end":[{col:ie()}],"col-start":[{"col-start":te()}],"col-end":[{"col-end":te()}],"grid-rows":[{"grid-rows":me()}],"row-start-end":[{row:ie()}],"row-start":[{"row-start":te()}],"row-end":[{"row-end":te()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ge()}],"auto-rows":[{"auto-rows":ge()}],gap:[{gap:I()}],"gap-x":[{"gap-x":I()}],"gap-y":[{"gap-y":I()}],"justify-content":[{justify:[...xe(),"normal"]}],"justify-items":[{"justify-items":[...he(),"normal"]}],"justify-self":[{"justify-self":["auto",...he()]}],"align-content":[{content:["normal",...xe()]}],"align-items":[{items:[...he(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...he(),{baseline:["","last"]}]}],"place-content":[{"place-content":xe()}],"place-items":[{"place-items":[...he(),"baseline"]}],"place-self":[{"place-self":["auto",...he()]}],p:[{p:I()}],px:[{px:I()}],py:[{py:I()}],ps:[{ps:I()}],pe:[{pe:I()}],pt:[{pt:I()}],pr:[{pr:I()}],pb:[{pb:I()}],pl:[{pl:I()}],m:[{m:pe()}],mx:[{mx:pe()}],my:[{my:pe()}],ms:[{ms:pe()}],me:[{me:pe()}],mt:[{mt:pe()}],mr:[{mr:pe()}],mb:[{mb:pe()}],ml:[{ml:pe()}],"space-x":[{"space-x":I()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":I()}],"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,X0,C0]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[a,U,Zt]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Yt,G]}],"font-family":[{font:[xi,G,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,G]}],"line-clamp":[{"line-clamp":[ee,"none",U,Zt]}],leading:[{leading:[s,...I()]}],"list-image":[{"list-image":["none",U,G]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",U,G]}],"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:[...Be(),"wavy"]}],"text-decoration-thickness":[{decoration:[ee,"from-font","auto",U,C0]}],"text-decoration-color":[{decoration:X()}],"underline-offset":[{"underline-offset":[ee,"auto",U,G]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:I()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",U,G]}],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,G]}],"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:Re()}],"bg-size":[{bg:Le()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},h0,U,G],radial:["",U,G],conic:[h0,U,G]},Si,yi]}],"bg-color":[{bg:X()}],"gradient-from-pos":[{from:Ce()}],"gradient-via-pos":[{via:Ce()}],"gradient-to-pos":[{to:Ce()}],"gradient-from":[{from:X()}],"gradient-via":[{via:X()}],"gradient-to":[{to:X()}],rounded:[{rounded:ne()}],"rounded-s":[{"rounded-s":ne()}],"rounded-e":[{"rounded-e":ne()}],"rounded-t":[{"rounded-t":ne()}],"rounded-r":[{"rounded-r":ne()}],"rounded-b":[{"rounded-b":ne()}],"rounded-l":[{"rounded-l":ne()}],"rounded-ss":[{"rounded-ss":ne()}],"rounded-se":[{"rounded-se":ne()}],"rounded-ee":[{"rounded-ee":ne()}],"rounded-es":[{"rounded-es":ne()}],"rounded-tl":[{"rounded-tl":ne()}],"rounded-tr":[{"rounded-tr":ne()}],"rounded-br":[{"rounded-br":ne()}],"rounded-bl":[{"rounded-bl":ne()}],"border-w":[{border:we()}],"border-w-x":[{"border-x":we()}],"border-w-y":[{"border-y":we()}],"border-w-s":[{"border-s":we()}],"border-w-e":[{"border-e":we()}],"border-w-t":[{"border-t":we()}],"border-w-r":[{"border-r":we()}],"border-w-b":[{"border-b":we()}],"border-w-l":[{"border-l":we()}],"divide-x":[{"divide-x":we()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":we()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Be(),"hidden","none"]}],"divide-style":[{divide:[...Be(),"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:[...Be(),"none","hidden"]}],"outline-offset":[{"outline-offset":[ee,U,G]}],"outline-w":[{outline:["",ee,X0,C0]}],"outline-color":[{outline:X()}],shadow:[{shadow:["","none",h,it,ot]}],"shadow-color":[{shadow:X()}],"inset-shadow":[{"inset-shadow":["none",g,it,ot]}],"inset-shadow-color":[{"inset-shadow":X()}],"ring-w":[{ring:we()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:X()}],"ring-offset-w":[{"ring-offset":[ee,C0]}],"ring-offset-color":[{"ring-offset":X()}],"inset-ring-w":[{"inset-ring":we()}],"inset-ring-color":[{"inset-ring":X()}],"text-shadow":[{"text-shadow":["none",x,it,ot]}],"text-shadow-color":[{"text-shadow":X()}],opacity:[{opacity:[ee,U,G]}],"mix-blend":[{"mix-blend":[...k0(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":k0()}],"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,G]}],"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:Re()}],"mask-size":[{mask:Le()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",U,G]}],filter:[{filter:["","none",U,G]}],blur:[{blur:Ge()}],brightness:[{brightness:[ee,U,G]}],contrast:[{contrast:[ee,U,G]}],"drop-shadow":[{"drop-shadow":["","none",w,it,ot]}],"drop-shadow-color":[{"drop-shadow":X()}],grayscale:[{grayscale:["",ee,U,G]}],"hue-rotate":[{"hue-rotate":[ee,U,G]}],invert:[{invert:["",ee,U,G]}],saturate:[{saturate:[ee,U,G]}],sepia:[{sepia:["",ee,U,G]}],"backdrop-filter":[{"backdrop-filter":["","none",U,G]}],"backdrop-blur":[{"backdrop-blur":Ge()}],"backdrop-brightness":[{"backdrop-brightness":[ee,U,G]}],"backdrop-contrast":[{"backdrop-contrast":[ee,U,G]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ee,U,G]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ee,U,G]}],"backdrop-invert":[{"backdrop-invert":["",ee,U,G]}],"backdrop-opacity":[{"backdrop-opacity":[ee,U,G]}],"backdrop-saturate":[{"backdrop-saturate":[ee,U,G]}],"backdrop-sepia":[{"backdrop-sepia":["",ee,U,G]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":I()}],"border-spacing-x":[{"border-spacing-x":I()}],"border-spacing-y":[{"border-spacing-y":I()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",U,G]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[ee,"initial",U,G]}],ease:[{ease:["linear","initial",N,U,G]}],delay:[{delay:[ee,U,G]}],animate:[{animate:["none",R,U,G]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[k,U,G]}],"perspective-origin":[{"perspective-origin":O()}],rotate:[{rotate:Oe()}],"rotate-x":[{"rotate-x":Oe()}],"rotate-y":[{"rotate-y":Oe()}],"rotate-z":[{"rotate-z":Oe()}],scale:[{scale:Fe()}],"scale-x":[{"scale-x":Fe()}],"scale-y":[{"scale-y":Fe()}],"scale-z":[{"scale-z":Fe()}],"scale-3d":["scale-3d"],skew:[{skew:_()}],"skew-x":[{"skew-x":_()}],"skew-y":[{"skew-y":_()}],transform:[{transform:[U,G,"","none","gpu","cpu"]}],"transform-origin":[{origin:O()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:qe()}],"translate-x":[{"translate-x":qe()}],"translate-y":[{"translate-y":qe()}],"translate-z":[{"translate-z":qe()}],"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,G]}],"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":I()}],"scroll-mx":[{"scroll-mx":I()}],"scroll-my":[{"scroll-my":I()}],"scroll-ms":[{"scroll-ms":I()}],"scroll-me":[{"scroll-me":I()}],"scroll-mt":[{"scroll-mt":I()}],"scroll-mr":[{"scroll-mr":I()}],"scroll-mb":[{"scroll-mb":I()}],"scroll-ml":[{"scroll-ml":I()}],"scroll-p":[{"scroll-p":I()}],"scroll-px":[{"scroll-px":I()}],"scroll-py":[{"scroll-py":I()}],"scroll-ps":[{"scroll-ps":I()}],"scroll-pe":[{"scroll-pe":I()}],"scroll-pt":[{"scroll-pt":I()}],"scroll-pr":[{"scroll-pr":I()}],"scroll-pb":[{"scroll-pb":I()}],"scroll-pl":[{"scroll-pl":I()}],"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,G]}],fill:[{fill:["none",...X()]}],"stroke-w":[{stroke:[ee,X0,C0,Zt]}],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"]}},zi=oi(Mi);function W(...r){return zi(Dn(r))}const wa=r=>typeof r=="boolean"?`${r}`:r===0?"0":r,Sa=Dn,A=(r,e)=>t=>{var a;if((e==null?void 0:e.variants)==null)return Sa(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 h=t==null?void 0:t[d],g=s==null?void 0:s[d];if(h===null)return null;const x=wa(h)||wa(g);return n[d][x]}),l=t&&Object.entries(t).reduce((d,h)=>{let[g,x]=h;return x===void 0||(d[g]=x),d},{}),u=e==null||(a=e.compoundVariants)===null||a===void 0?void 0:a.reduce((d,h)=>{let{class:g,className:x,...w}=h;return Object.entries(w).every(M=>{let[k,T]=M;return Array.isArray(T)?T.includes({...s,...l}[k]):{...s,...l}[k]===T})?[...d,g,x]:d},[]);return Sa(r,o,u,t==null?void 0:t.class,t==null?void 0:t.className)},Ti=A("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"}}),Ai=A('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"}}),Ni=A("absolute inset-0 w-full h-full object-cover"),Di=r=>{const e=r.trim().split(/\s+/);return e.length>=2?(e[0][0]+e[1][0]).toUpperCase():r.slice(0,2).toUpperCase()},Ei=(r,e)=>`https://picsum.photos/seed/${r}/${e}/${e}`,Pr=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[h,g]=V.useState(!1),x=V.useMemo(()=>Math.floor(Math.random()*1e3),[]),M=s||Ei(x,a==="big"?64:32),k=h&&l?l:n,T=e==="image"&&!h,N=()=>{g(!0)},R={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 f.jsx("div",{ref:d,className:W(Ti({shape:t,size:a}),r),style:T?void 0:R,role:"img","aria-label":o,...u,children:T?f.jsx("img",{src:M,alt:o,className:W(Ni()),onError:N}):f.jsx("span",{className:W(Ai({size:a})),children:Di(k)})})});Pr.displayName="Avatar";const Ri=A("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"}}),Li=A("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"}}),Bi=A("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"}}),Or=V.forwardRef(({className:r,variant:e="neutral",size:t="medium",animated:a=!1,...n},s)=>f.jsxs("div",{ref:s,className:W(Ri({size:t}),r),...n,children:[a&&f.jsx("span",{className:Bi({variant:e})}),f.jsx("span",{className:Li({variant:e})})]}));Or.displayName="StatusIndicator";const Ii={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"},ji={display:"h1",h1:"h1",h2:"h2",h3:"h3",h4:"h4",small:"p",tiny:"p","x-small":"p","column-header":"span",tag:"span"},Pi={primary:"text-[var(--color-gray-1000)]",secondary:"text-[var(--color-gray-600)]",inherit:""},Oi={thin:"font-thin",extralight:"font-extralight",light:"font-light",regular:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold",black:"font-black"},Fi={serif:"!font-heading",sans:"!font-body"},o0=({variant:r,as:e,children:t,className:a,color:n="primary",weight:s,fontFamily:o})=>{const l=e||ji[r],u=Ii[r],d=Pi[n],h=s?Oi[s]:"",g=o?Fi[o]:"";return f.jsx(l,{className:W(u,d,h,g,a),children:t})},qi={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)"},Fr=({size:r=256,colorVariant:e="dark",...t})=>{const a=qi[e];return f.jsxs("svg",{...t,width:r,height:r,viewBox:"0 0 256 256",fill:"none",children:[f.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}),f.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})]})};Fr.displayName="LogoA";const Hi={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)"},Hn=({size:r=163,colorVariant:e="dark",...t})=>{const a=Hi[e],n=603/163,s=typeof r=="number"?r:parseFloat(r),o=s*n;return f.jsxs("svg",{...t,width:o,height:s,viewBox:"0 0 603 163",fill:"none",children:[f.jsxs("g",{clipPath:"url(#clip0_full_logo)",children:[f.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}),f.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}),f.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}),f.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}),f.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})]}),f.jsx("defs",{children:f.jsx("clipPath",{id:"clip0_full_logo",children:f.jsx("rect",{width:"603",height:"163",fill:"white"})})})]})};Hn.displayName="FullLogo";const Vi={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)"},qr=({size:r=329,colorVariant:e="dark",animated:t=!1,animationDuration:a=2,animationDelay:n=0,...s})=>{const o=Vi[e],l=V.useId(),u=2800;return t?f.jsxs("svg",{...s,width:r,height:r,viewBox:"0 0 329 329",fill:"none",children:[f.jsx("style",{children:`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("react/jsx-runtime"),V=require("react"),be=require("framer-motion"),p=require("./Search-jJp9VWfl.cjs"),Wo=require("@radix-ui/react-tabs"),n0=require("sonner"),$o=require("@radix-ui/react-tooltip"),Nn=require("react-dom");function It(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 z=It(V),D0=It(Wo),A0=It($o),Xo=It(Nn);function Dn(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=Dn(r[e]))&&(a&&(a+=" "),a+=t)}else for(t in r)r[t]&&(a&&(a+=" "),a+=t);return a}function En(){for(var r,e,t=0,a="",n=arguments.length;t<n;t++)(r=arguments[t])&&(e=Dn(r))&&(a&&(a+=" "),a+=e);return a}const jr="-",Yo=r=>{const e=Ko(r),{conflictingClassGroups:t,conflictingClassGroupModifiers:a}=r;return{getClassGroupId:o=>{const l=o.split(jr);return l[0]===""&&l.length!==1&&l.shift(),Rn(l,e)||Zo(o)},getConflictingClassGroupIds:(o,l)=>{const u=t[o]||[];return l&&a[o]?[...u,...a[o]]:u}}},Rn=(r,e)=>{var o;if(r.length===0)return e.classGroupId;const t=r[0],a=e.nextPart.get(t),n=a?Rn(r.slice(1),a):void 0;if(n)return n;if(e.validators.length===0)return;const s=r.join(jr);return(o=e.validators.find(({validator:l})=>l(s)))==null?void 0:o.classGroupId},ga=/^\[(.+)\]$/,Zo=r=>{if(ga.test(r)){const e=ga.exec(r)[1],t=e==null?void 0:e.substring(0,e.indexOf(":"));if(t)return"arbitrary.."+t}},Ko=r=>{const{theme:e,classGroups:t}=r,a={nextPart:new Map,validators:[]};for(const n in t)Sr(t[n],a,n,e);return a},Sr=(r,e,t,a)=>{r.forEach(n=>{if(typeof n=="string"){const s=n===""?e:ba(e,n);s.classGroupId=t;return}if(typeof n=="function"){if(Jo(n)){Sr(n(a),e,t,a);return}e.validators.push({validator:n,classGroupId:t});return}Object.entries(n).forEach(([s,o])=>{Sr(o,ba(e,s),t,a)})})},ba=(r,e)=>{let t=r;return e.split(jr).forEach(a=>{t.nextPart.has(a)||t.nextPart.set(a,{nextPart:new Map,validators:[]}),t=t.nextPart.get(a)}),t},Jo=r=>r.isThemeGetter,Qo=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)}}},kr="!",Cr=":",ei=Cr.length,ti=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===Cr){s.push(n.slice(u,M)),u=M+ei;continue}if(k==="/"){d=M;continue}}k==="["?o++:k==="]"?o--:k==="("?l++:k===")"&&l--}const f=s.length===0?n:n.substring(u),g=ri(f),y=g!==f,w=d&&d>u?d-u:void 0;return{modifiers:s,hasImportantModifier:y,baseClassName:g,maybePostfixModifierPosition:w}};if(e){const n=e+Cr,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},ri=r=>r.endsWith(kr)?r.substring(0,r.length-1):r.startsWith(kr)?r.substring(1):r,ai=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}},ni=r=>({cache:Qo(r.cacheSize),parseClassName:ti(r),sortModifiers:ai(r),...Yo(r)}),si=/\s+/,oi=(r,e)=>{const{parseClassName:t,getClassGroupId:a,getConflictingClassGroupIds:n,sortModifiers:s}=e,o=[],l=r.trim().split(si);let u="";for(let d=l.length-1;d>=0;d-=1){const f=l[d],{isExternal:g,modifiers:y,hasImportantModifier:w,baseClassName:M,maybePostfixModifierPosition:k}=t(f);if(g){u=f+(u.length>0?" "+u:u);continue}let T=!!k,N=a(T?M.substring(0,k):M);if(!N){if(!T){u=f+(u.length>0?" "+u:u);continue}if(N=a(M),!N){u=f+(u.length>0?" "+u:u);continue}T=!1}const R=s(y).join(":"),B=w?R+kr:R,P=B+N;if(o.includes(P))continue;o.push(P);const O=n(N,T);for(let Y=0;Y<O.length;++Y){const q=O[Y];o.push(B+q)}u=f+(u.length>0?" "+u:u)}return u};function ii(){let r=0,e,t,a="";for(;r<arguments.length;)(e=arguments[r++])&&(t=Ln(e))&&(a&&(a+=" "),a+=t);return a}const Ln=r=>{if(typeof r=="string")return r;let e,t="";for(let a=0;a<r.length;a++)r[a]&&(e=Ln(r[a]))&&(t&&(t+=" "),t+=e);return t};function li(r,...e){let t,a,n,s=o;function o(u){const d=e.reduce((f,g)=>g(f),r());return t=ni(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=oi(u,t);return n(u,f),f}return function(){return s(ii.apply(null,arguments))}}const Se=r=>{const e=t=>t[r]||[];return e.isThemeGetter=!0,e},Bn=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,In=/^\((?:(\w[\w-]*):)?(.+)\)$/i,ci=/^\d+\/\d+$/,ui=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,di=/\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$/,mi=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,hi=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,fi=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,L0=r=>ci.test(r),ee=r=>!!r&&!Number.isNaN(Number(r)),h0=r=>!!r&&Number.isInteger(Number(r)),Yt=r=>r.endsWith("%")&&ee(r.slice(0,-1)),r0=r=>ui.test(r),pi=()=>!0,vi=r=>di.test(r)&&!mi.test(r),jn=()=>!1,gi=r=>hi.test(r),bi=r=>fi.test(r),xi=r=>!U(r)&&!W(r),yi=r=>G0(r,Fn,jn),U=r=>Bn.test(r),C0=r=>G0(r,qn,vi),Zt=r=>G0(r,Mi,ee),xa=r=>G0(r,Pn,jn),wi=r=>G0(r,On,bi),ot=r=>G0(r,Hn,gi),W=r=>In.test(r),X0=r=>U0(r,qn),Si=r=>U0(r,zi),ya=r=>U0(r,Pn),ki=r=>U0(r,Fn),Ci=r=>U0(r,On),it=r=>U0(r,Hn,!0),G0=(r,e,t)=>{const a=Bn.exec(r);return a?a[1]?e(a[1]):t(a[2]):!1},U0=(r,e,t=!1)=>{const a=In.exec(r);return a?a[1]?e(a[1]):t:!1},Pn=r=>r==="position"||r==="percentage",On=r=>r==="image"||r==="url",Fn=r=>r==="length"||r==="size"||r==="bg-size",qn=r=>r==="length",Mi=r=>r==="number",zi=r=>r==="family-name",Hn=r=>r==="shadow",Ti=()=>{const r=Se("color"),e=Se("font"),t=Se("text"),a=Se("font-weight"),n=Se("tracking"),s=Se("leading"),o=Se("breakpoint"),l=Se("container"),u=Se("spacing"),d=Se("radius"),f=Se("shadow"),g=Se("inset-shadow"),y=Se("text-shadow"),w=Se("drop-shadow"),M=Se("blur"),k=Se("perspective"),T=Se("aspect"),N=Se("ease"),R=Se("animate"),B=()=>["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(),W,U],Y=()=>["auto","hidden","clip","visible","scroll"],q=()=>["auto","contain","none"],I=()=>[W,U,u],$=()=>[L0,"full","auto",...I()],me=()=>[h0,"none","subgrid",W,U],ie=()=>["auto",{span:["full",h0,W,U]},h0,W,U],te=()=>[h0,"auto",W,U],ge=()=>["auto","min","max","fr",W,U],ye=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],he=()=>["start","end","center","stretch","center-safe","end-safe"],pe=()=>["auto",...I()],Me=()=>[L0,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...I()],X=()=>[r,W,U],t0=()=>[...P(),ya,xa,{position:[W,U]}],Re=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Le=()=>["auto","cover","contain",ki,yi,{size:[W,U]}],Ce=()=>[Yt,X0,C0],ne=()=>["","none","full",d,W,U],we=()=>["",ee,X0,C0],Be=()=>["solid","dashed","dotted","double"],k0=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],se=()=>[ee,Yt,ya,xa],Ge=()=>["","none",M,W,U],Oe=()=>["none",ee,W,U],Fe=()=>["none",ee,W,U],G=()=>[ee,W,U],qe=()=>[L0,"full",...I()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[r0],breakpoint:[r0],color:[pi],container:[r0],"drop-shadow":[r0],ease:["in","out","in-out"],font:[xi],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[r0],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[r0],shadow:[r0],spacing:["px",ee],text:[r0],"text-shadow":[r0],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",L0,U,W,T]}],container:["container"],columns:[{columns:[ee,U,W,l]}],"break-after":[{"break-after":B()}],"break-before":[{"break-before":B()}],"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:[h0,"auto",W,U]}],basis:[{basis:[L0,"full","auto",l,...I()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ee,L0,"auto","initial","none",U]}],grow:[{grow:["",ee,W,U]}],shrink:[{shrink:["",ee,W,U]}],order:[{order:[h0,"first","last","none",W,U]}],"grid-cols":[{"grid-cols":me()}],"col-start-end":[{col:ie()}],"col-start":[{"col-start":te()}],"col-end":[{"col-end":te()}],"grid-rows":[{"grid-rows":me()}],"row-start-end":[{row:ie()}],"row-start":[{"row-start":te()}],"row-end":[{"row-end":te()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ge()}],"auto-rows":[{"auto-rows":ge()}],gap:[{gap:I()}],"gap-x":[{"gap-x":I()}],"gap-y":[{"gap-y":I()}],"justify-content":[{justify:[...ye(),"normal"]}],"justify-items":[{"justify-items":[...he(),"normal"]}],"justify-self":[{"justify-self":["auto",...he()]}],"align-content":[{content:["normal",...ye()]}],"align-items":[{items:[...he(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...he(),{baseline:["","last"]}]}],"place-content":[{"place-content":ye()}],"place-items":[{"place-items":[...he(),"baseline"]}],"place-self":[{"place-self":["auto",...he()]}],p:[{p:I()}],px:[{px:I()}],py:[{py:I()}],ps:[{ps:I()}],pe:[{pe:I()}],pt:[{pt:I()}],pr:[{pr:I()}],pb:[{pb:I()}],pl:[{pl:I()}],m:[{m:pe()}],mx:[{mx:pe()}],my:[{my:pe()}],ms:[{ms:pe()}],me:[{me:pe()}],mt:[{mt:pe()}],mr:[{mr:pe()}],mb:[{mb:pe()}],ml:[{ml:pe()}],"space-x":[{"space-x":I()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":I()}],"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,X0,C0]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[a,W,Zt]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Yt,U]}],"font-family":[{font:[Si,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,W,U]}],"line-clamp":[{"line-clamp":[ee,"none",W,Zt]}],leading:[{leading:[s,...I()]}],"list-image":[{"list-image":["none",W,U]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",W,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:[...Be(),"wavy"]}],"text-decoration-thickness":[{decoration:[ee,"from-font","auto",W,C0]}],"text-decoration-color":[{decoration:X()}],"underline-offset":[{"underline-offset":[ee,"auto",W,U]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:I()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",W,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",W,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:Re()}],"bg-size":[{bg:Le()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},h0,W,U],radial:["",W,U],conic:[h0,W,U]},Ci,wi]}],"bg-color":[{bg:X()}],"gradient-from-pos":[{from:Ce()}],"gradient-via-pos":[{via:Ce()}],"gradient-to-pos":[{to:Ce()}],"gradient-from":[{from:X()}],"gradient-via":[{via:X()}],"gradient-to":[{to:X()}],rounded:[{rounded:ne()}],"rounded-s":[{"rounded-s":ne()}],"rounded-e":[{"rounded-e":ne()}],"rounded-t":[{"rounded-t":ne()}],"rounded-r":[{"rounded-r":ne()}],"rounded-b":[{"rounded-b":ne()}],"rounded-l":[{"rounded-l":ne()}],"rounded-ss":[{"rounded-ss":ne()}],"rounded-se":[{"rounded-se":ne()}],"rounded-ee":[{"rounded-ee":ne()}],"rounded-es":[{"rounded-es":ne()}],"rounded-tl":[{"rounded-tl":ne()}],"rounded-tr":[{"rounded-tr":ne()}],"rounded-br":[{"rounded-br":ne()}],"rounded-bl":[{"rounded-bl":ne()}],"border-w":[{border:we()}],"border-w-x":[{"border-x":we()}],"border-w-y":[{"border-y":we()}],"border-w-s":[{"border-s":we()}],"border-w-e":[{"border-e":we()}],"border-w-t":[{"border-t":we()}],"border-w-r":[{"border-r":we()}],"border-w-b":[{"border-b":we()}],"border-w-l":[{"border-l":we()}],"divide-x":[{"divide-x":we()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":we()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Be(),"hidden","none"]}],"divide-style":[{divide:[...Be(),"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:[...Be(),"none","hidden"]}],"outline-offset":[{"outline-offset":[ee,W,U]}],"outline-w":[{outline:["",ee,X0,C0]}],"outline-color":[{outline:X()}],shadow:[{shadow:["","none",f,it,ot]}],"shadow-color":[{shadow:X()}],"inset-shadow":[{"inset-shadow":["none",g,it,ot]}],"inset-shadow-color":[{"inset-shadow":X()}],"ring-w":[{ring:we()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:X()}],"ring-offset-w":[{"ring-offset":[ee,C0]}],"ring-offset-color":[{"ring-offset":X()}],"inset-ring-w":[{"inset-ring":we()}],"inset-ring-color":[{"inset-ring":X()}],"text-shadow":[{"text-shadow":["none",y,it,ot]}],"text-shadow-color":[{"text-shadow":X()}],opacity:[{opacity:[ee,W,U]}],"mix-blend":[{"mix-blend":[...k0(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":k0()}],"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":[W,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:Re()}],"mask-size":[{mask:Le()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",W,U]}],filter:[{filter:["","none",W,U]}],blur:[{blur:Ge()}],brightness:[{brightness:[ee,W,U]}],contrast:[{contrast:[ee,W,U]}],"drop-shadow":[{"drop-shadow":["","none",w,it,ot]}],"drop-shadow-color":[{"drop-shadow":X()}],grayscale:[{grayscale:["",ee,W,U]}],"hue-rotate":[{"hue-rotate":[ee,W,U]}],invert:[{invert:["",ee,W,U]}],saturate:[{saturate:[ee,W,U]}],sepia:[{sepia:["",ee,W,U]}],"backdrop-filter":[{"backdrop-filter":["","none",W,U]}],"backdrop-blur":[{"backdrop-blur":Ge()}],"backdrop-brightness":[{"backdrop-brightness":[ee,W,U]}],"backdrop-contrast":[{"backdrop-contrast":[ee,W,U]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ee,W,U]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ee,W,U]}],"backdrop-invert":[{"backdrop-invert":["",ee,W,U]}],"backdrop-opacity":[{"backdrop-opacity":[ee,W,U]}],"backdrop-saturate":[{"backdrop-saturate":[ee,W,U]}],"backdrop-sepia":[{"backdrop-sepia":["",ee,W,U]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":I()}],"border-spacing-x":[{"border-spacing-x":I()}],"border-spacing-y":[{"border-spacing-y":I()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",W,U]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[ee,"initial",W,U]}],ease:[{ease:["linear","initial",N,W,U]}],delay:[{delay:[ee,W,U]}],animate:[{animate:["none",R,W,U]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[k,W,U]}],"perspective-origin":[{"perspective-origin":O()}],rotate:[{rotate:Oe()}],"rotate-x":[{"rotate-x":Oe()}],"rotate-y":[{"rotate-y":Oe()}],"rotate-z":[{"rotate-z":Oe()}],scale:[{scale:Fe()}],"scale-x":[{"scale-x":Fe()}],"scale-y":[{"scale-y":Fe()}],"scale-z":[{"scale-z":Fe()}],"scale-3d":["scale-3d"],skew:[{skew:G()}],"skew-x":[{"skew-x":G()}],"skew-y":[{"skew-y":G()}],transform:[{transform:[W,U,"","none","gpu","cpu"]}],"transform-origin":[{origin:O()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:qe()}],"translate-x":[{"translate-x":qe()}],"translate-y":[{"translate-y":qe()}],"translate-z":[{"translate-z":qe()}],"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",W,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":I()}],"scroll-mx":[{"scroll-mx":I()}],"scroll-my":[{"scroll-my":I()}],"scroll-ms":[{"scroll-ms":I()}],"scroll-me":[{"scroll-me":I()}],"scroll-mt":[{"scroll-mt":I()}],"scroll-mr":[{"scroll-mr":I()}],"scroll-mb":[{"scroll-mb":I()}],"scroll-ml":[{"scroll-ml":I()}],"scroll-p":[{"scroll-p":I()}],"scroll-px":[{"scroll-px":I()}],"scroll-py":[{"scroll-py":I()}],"scroll-ps":[{"scroll-ps":I()}],"scroll-pe":[{"scroll-pe":I()}],"scroll-pt":[{"scroll-pt":I()}],"scroll-pr":[{"scroll-pr":I()}],"scroll-pb":[{"scroll-pb":I()}],"scroll-pl":[{"scroll-pl":I()}],"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",W,U]}],fill:[{fill:["none",...X()]}],"stroke-w":[{stroke:[ee,X0,C0,Zt]}],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"]}},Ai=li(Ti);function _(...r){return Ai(En(r))}const wa=r=>typeof r=="boolean"?`${r}`:r===0?"0":r,Sa=En,A=(r,e)=>t=>{var a;if((e==null?void 0:e.variants)==null)return Sa(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 y=wa(f)||wa(g);return n[d][y]}),l=t&&Object.entries(t).reduce((d,f)=>{let[g,y]=f;return y===void 0||(d[g]=y),d},{}),u=e==null||(a=e.compoundVariants)===null||a===void 0?void 0:a.reduce((d,f)=>{let{class:g,className:y,...w}=f;return Object.entries(w).every(M=>{let[k,T]=M;return Array.isArray(T)?T.includes({...s,...l}[k]):{...s,...l}[k]===T})?[...d,g,y]:d},[]);return Sa(r,o,u,t==null?void 0:t.class,t==null?void 0:t.className)},Ni=A("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"}}),Di=A('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"}}),Ei=A("absolute inset-0 w-full h-full object-cover"),Ri=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}`,Pr=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),y=V.useMemo(()=>Math.floor(Math.random()*1e3),[]),M=s||Li(y,a==="big"?64:32),k=f&&l?l:n,T=e==="image"&&!f,N=()=>{g(!0)},R={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:_(Ni({shape:t,size:a}),r),style:T?void 0:R,role:"img","aria-label":o,...u,children:T?h.jsx("img",{src:M,alt:o,className:_(Ei()),onError:N}):h.jsx("span",{className:_(Di({size:a})),children:Ri(k)})})});Pr.displayName="Avatar";const Bi=A("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=A("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"}}),ji=A("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"}}),Or=V.forwardRef(({className:r,variant:e="neutral",size:t="medium",animated:a=!1,...n},s)=>h.jsxs("div",{ref:s,className:_(Bi({size:t}),r),...n,children:[a&&h.jsx("span",{className:ji({variant:e})}),h.jsx("span",{className:Ii({variant:e})})]}));Or.displayName="StatusIndicator";const Pi={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"},Oi={display:"h1",h1:"h1",h2:"h2",h3:"h3",h4:"h4",small:"p",tiny:"p","x-small":"p","column-header":"span",tag:"span"},Fi={primary:"text-[var(--color-gray-1000)]",secondary:"text-[var(--color-gray-600)]",inherit:""},qi={thin:"font-thin",extralight:"font-extralight",light:"font-light",regular:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold",black:"font-black"},Hi={serif:"!font-heading",sans:"!font-body"},o0=({variant:r,as:e,children:t,className:a,color:n="primary",weight:s,fontFamily:o})=>{const l=e||Oi[r],u=Pi[r],d=Fi[n],f=s?qi[s]:"",g=o?Hi[o]:"";return h.jsx(l,{className:_(u,d,f,g,a),children:t})},Vi={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)"},Fr=({size:r=256,colorVariant:e="dark",...t})=>{const a=Vi[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})]})};Fr.displayName="LogoA";const _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)"},Vn=({size:r=163,colorVariant:e="dark",...t})=>{const a=_i[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"})})})]})};Vn.displayName="FullLogo";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)"},qr=({size:r=329,colorVariant:e="dark",animated:t=!1,animationDuration:a=2,animationDelay:n=0,...s})=>{const o=Gi[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:`
2
2
  @keyframes drawSignature-${l.replace(/:/g,"")} {
3
3
  0% {
4
4
  stroke-dashoffset: var(--path-length);
@@ -23,8 +23,8 @@
23
23
  transform: scale(1);
24
24
  }
25
25
  }
26
- `}),f.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}}),f.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`}})]}):f.jsxs("svg",{...s,width:r,height:r,viewBox:"0 0 329 329",fill:"none",children:[f.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}),f.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})]})};qr.displayName="SignatureA";const _i=A("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}}),Gi=A("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"}}),Ui=A("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"}}),Kt=A("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"}}),Wi=A("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"),$i=A("w-full h-full bg-[var(--color-blue-200)]/30 p-2 space-y-2 flex flex-col items-start justify-start gap-1"),Xi=A("h-1 bg-[var(--color-gray-200)] rounded-full origin-left"),Yi=A("flex flex-col gap-[4px] grow items-start p-4 min-w-0"),Zi=A("font-medium text-[14px] leading-[20px] text-[var(--color-blue-1000)]"),Ki=A("text-[12px] leading-[16px] text-[var(--color-gray-600)]"),Ji=A("px-4 overflow-hidden flex items-center w-[56px] relative"),Qi=A("absolute w-6 h-6 text-[var(--color-blue-800)]"),el=A("w-6 h-6 text-[var(--color-gray-200)]"),tl=A("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"}}),rl=A("w-4 h-4 shrink-0 text-[var(--color-red-1000)] transition-transform duration-300 group-hover:scale-110"),al={rest:{scaleX:1},hover:{scaleX:[0,1]}},nl={rest:{x:0},hover:{x:4}},sl={rest:{x:-20,opacity:0},hover:{x:0,opacity:1}},ol={rest:{x:0,opacity:1},hover:{x:20,opacity:0}},il=[100,66,75,50],Vn=V.forwardRef(({title:r,subtitle:e,status:t,onClick:a,onActionClick:n,className:s,disabled:o=!1},l)=>{const[u,d]=V.useState(!1),h=t||(u&&!o?"hover":"normal"),g=V.useMemo(()=>h==="generating"||h==="error"?"rest":u?"hover":"rest",[h,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(B=>{B.stopPropagation(),!o&&n&&n()},[o,n]),T=V.useCallback(B=>{(B.key==="Enter"||B.key===" ")&&(B.preventDefault(),M())},[M]),N=()=>h==="generating"?f.jsx("div",{className:Kt({status:"generating"}),children:f.jsx(p.Loader,{size:16,className:"text-[var(--color-gray-600)] animate-spin"})}):h==="error"?f.jsx("div",{className:Kt({status:"error"}),children:f.jsx(p.TriangleAlert,{size:16,className:rl()})}):f.jsx("div",{className:Kt({status:h}),children:f.jsx("div",{className:Wi(),children:f.jsx(be.motion.div,{className:$i(),variants:{rest:{},hover:{transition:{staggerChildren:.1}}},children:il.map((B,P)=>f.jsx(be.motion.div,{className:Xi(),style:{width:`${B}%`},variants:al,transition:{duration:.4,ease:"easeInOut"}},P))})})}),R=()=>h==="generating"?null:h==="error"?f.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:f.jsx(p.RotateCcw,{size:16,className:tl({status:"error"})})}):f.jsxs(f.Fragment,{children:[f.jsx(be.motion.div,{className:Qi(),variants:sl,transition:{duration:.3,ease:"backOut"},children:f.jsx(p.ArrowUp,{size:24,className:"rotate-90"})}),f.jsx(be.motion.div,{className:el(),variants:ol,transition:{duration:.3},children:f.jsx(p.ArrowUp,{size:24,className:"rotate-90"})})]});return f.jsxs(be.motion.div,{ref:l,role:"button",tabIndex:o?-1:0,className:W(_i({status:h,disabled:o}),s),onClick:M,onKeyDown:T,onMouseEnter:x,onMouseLeave:w,"aria-disabled":o,"aria-label":`${r} - ${e}${h==="error"?" - Error occurred":""}${h==="generating"?" - Generating":""}`,initial:"rest",whileHover:"hover",animate:g,children:[f.jsx("div",{className:Gi({status:h}),children:f.jsx("div",{className:Ui({status:h})})}),N(),f.jsxs(be.motion.div,{className:Yi(),variants:nl,children:[f.jsx("p",{className:Zi(),title:r,children:r}),f.jsx("p",{className:Ki(),title:e,children:e})]}),f.jsx("div",{className:Ji(),children:R()})]})});Vn.displayName="ArtifactCard";const ll=A("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"}}),lt=A("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"}}),cl=A("text-[var(--color-gray-600)] flex items-center justify-center"),_n=({items:r,separator:e=f.jsx(p.ChevronRight,{size:16}),className:t,size:a="medium"})=>f.jsx("nav",{"aria-label":"Breadcrumb",className:W(ll({size:a}),t),children:f.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=f.jsxs("span",{className:lt({state:"active"}),"aria-current":"page",children:[n.icon,n.label]}):n.href?l=f.jsxs("a",{href:n.href,className:lt({state:"default"}),onClick:n.onClick,children:[n.icon,n.label]}):n.onClick?l=f.jsxs("button",{type:"button",className:lt({state:"default"}),onClick:n.onClick,children:[n.icon,n.label]}):l=f.jsxs("span",{className:lt({state:"inactive"}),children:[n.icon,n.label]}),f.jsxs("li",{className:"flex items-center gap-2",children:[l,!o&&f.jsx("span",{className:cl(),"aria-hidden":"true",children:e})]},`${n.label}-${s}`)})})}),ul=A("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"}}),H0=V.forwardRef(({className:r,variant:e="primary",tone:t="brand",size:a="medium",startIcon:n,endIcon:s,children:o,disabled:l,...u},d)=>{const h=a==="small"?13:a==="large"?20:16;return f.jsxs("button",{ref:d,className:W(ul({variant:e,tone:t,size:a}),r),disabled:l,...u,children:[n&&f.jsx("span",{className:"flex items-center justify-center shrink-0",style:{width:h,height:h},children:n}),o,s&&f.jsx("span",{className:"flex items-center justify-center shrink-0",style:{width:h,height:h},children:s})]})});H0.displayName="Button";const dl=A("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"}}),ml=A("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"}}),ct=A("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"}}),hl=A("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 Gn=(r=>(r.Uploading="uploading",r.Processing="processing",r.Done="done",r.Error="error",r))(Gn||{});const Un=({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",h=()=>s?f.jsx(p.ArrowUp,{size:12,className:ct({status:d})}):o?f.jsx(p.Loader,{size:12,className:W(ct({status:d}),"animate-spin")}):l?f.jsx(p.TriangleAlert,{size:12,className:ct({status:d})}):f.jsx(p.FileText,{size:12,className:ct({status:d})});return f.jsxs("div",{className:"relative inline-block group",children:[f.jsxs("div",{className:W(dl({status:d}),n),children:[(s||o)&&f.jsx(be.motion.div,{className:hl({status:d}),initial:{width:"0%"},animate:{width:`${t}%`},transition:{duration:.3,ease:"easeOut"}}),f.jsxs("div",{className:"relative z-10 flex items-center gap-1 pr-1",children:[f.jsx("div",{className:W("flex items-center justify-center shrink-0 p-1 rounded-[2px]",l&&"bg-[#fff2f2]"),children:h()}),f.jsx("span",{className:ml({status:d}),title:r,children:r})]})]}),a&&!s&&!o&&f.jsx(be.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:f.jsx(p.X,{size:10,className:"text-[var(--color-gray-800)]"})})]})},fl=A("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"}}),pl=A("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"}}),vl="sr-only peer",Wn=V.forwardRef(({className:r,checked:e,defaultChecked:t,onChange:a,label:n,size:s="medium",disabled:o,...l},u)=>{const[d,h]=V.useState(t||!1),g=e!==void 0,x=g?e:d,w=M=>{g||h(M.target.checked),a==null||a(M)};return f.jsxs("label",{className:fl({size:s,className:r}),children:[f.jsx("input",{type:"checkbox",className:vl,ref:u,checked:g?e:void 0,defaultChecked:g?void 0:t,onChange:w,disabled:o,...l}),f.jsx("span",{className:pl({checked:!!x,size:s}),children:f.jsx(p.Check,{size:s==="medium"?12:8,strokeWidth:3,className:W("text-white transition-opacity duration-200",x?"opacity-100":"opacity-0")})}),n&&f.jsx(o0,{as:"span",variant:s==="medium"?"small":"x-small",color:"secondary",children:n})]})});Wn.displayName="Checkbox";function gl(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 bl=A("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}}),yl=A("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}}),xl=A("px-3 py-1 text-[0.625rem] font-bold text-[var(--color-gray-600)] uppercase tracking-wider select-none"),wl=A("h-px bg-[var(--color-gray-200)] my-1"),$n=V.createContext(void 0),jt=()=>{const r=V.useContext($n);if(!r)throw new Error("useDropdown must be used within a Dropdown");return r},Hr=({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,h=V.useRef(null),g=()=>{const w=!d;u||l(w),a==null||a(w)},x=()=>{u||l(!1),a==null||a(!1)};return gl(h,x),f.jsx($n.Provider,{value:{isOpen:d,toggle:g,close:x},children:f.jsx("div",{ref:h,className:W("relative inline-block text-left",n),...s,children:r})})};Hr.displayName="Dropdown";const Vr=V.forwardRef(({className:r,children:e,onClick:t,...a},n)=>{const{toggle:s,isOpen:o}=jt(),l=u=>{s(),t==null||t(u)};return f.jsx("div",{ref:n,className:W("cursor-pointer inline-block",r),onClick:l,"aria-haspopup":"true","aria-expanded":o,...a,children:e})});Vr.displayName="DropdownTrigger";const _r=V.forwardRef(({className:r,align:e="start",attached:t=!1,children:a,...n},s)=>{const{isOpen:o}=jt();return f.jsx(be.AnimatePresence,{children:o&&f.jsx(be.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:W(bl({align:e,attached:t}),r),...n,children:a})})});_r.displayName="DropdownContent";const Gr=V.forwardRef(({className:r,active:e,variant:t,closeOnSelect:a=!0,children:n,onClick:s,...o},l)=>{const{close:u}=jt(),d=h=>{s==null||s(h),a&&u()};return f.jsx("div",{ref:l,className:W(yl({active:e,variant:t}),r),onClick:d,role:"menuitem",...o,children:n})});Gr.displayName="DropdownItem";const Sl=V.forwardRef(({className:r,children:e,...t},a)=>f.jsx("div",{ref:a,className:W(xl(),r),...t,children:e}));Sl.displayName="DropdownLabel";const kl=V.forwardRef(({className:r,animated:e=!1,animationDelay:t=.2,...a},n)=>e?f.jsx("div",{ref:n,className:W("h-px my-1 overflow-hidden",r),...a,children:f.jsx(be.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}})}):f.jsx("div",{ref:n,className:W(wl(),r),...a}));kl.displayName="DropdownSeparator";const Cl=A("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"}}),Ml=A("relative w-full",{variants:{size:{medium:"",small:"",tiny:""}},defaultVariants:{size:"medium"}}),ka=A("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"}}),Xn=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 f.jsxs("div",{className:Ml({size:t}),children:[a&&f.jsx("span",{className:ka({status:e,size:t,position:"start"}),children:a}),f.jsx("input",{ref:l,className:W(Cl({status:e,size:t}),a&&u[t],n&&d[t],r),disabled:s,...o}),n&&f.jsx("span",{className:ka({status:e,size:t,position:"end"}),children:n})]})});Xn.displayName="Input";const zl=A("flex flex-col items-center justify-center"),Tl=A("relative",{variants:{size:{sm:"w-8 h-8",md:"w-12 h-12",lg:"w-16 h-16"}},defaultVariants:{size:"lg"}}),Al=A("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"}}),Nl=A("mt-4 typography-small",{variants:{color:{primary:"text-[var(--color-gray-1000)]",muted:"text-[var(--color-gray-600)]"}},defaultVariants:{color:"muted"}}),Dl=({size:r="lg",color:e="primary",text:t,textColor:a="muted"})=>f.jsxs("div",{className:zl(),children:[f.jsx("div",{className:Tl({size:r}),children:f.jsx("div",{className:Al({color:e})})}),t&&f.jsx("p",{className:Nl({color:a}),children:t})]}),Ca=A("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"}}),El=A("flex gap-[12px] items-start w-full"),Rl=A("flex flex-col flex-1 min-w-0"),Ma=A("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}}),Ll=A("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"}}),Bl=A("typography-h4 text-[var(--color-blue-1000)]"),za=A("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"}}),Il=A("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"}}),jl=A("p-1 rounded-[4px] text-[var(--color-gray-400)] opacity-0 group-hover:opacity-100 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:{isCopied:{true:"opacity-100",false:""}},defaultVariants:{isCopied:!1}}),Pl=A("flex items-start justify-center shrink-0 pt-[4px]"),Ol=A("flex items-center justify-center size-[32px] rounded-full bg-[var(--color-blue-1000)]"),Fl=A("text-[12px] text-[var(--color-gray-600)] mt-[4px]"),ql=A("flex items-center justify-center"),Hl=A("relative overflow-hidden flex items-center gap-[8px] py-[2px] select-none"),Vl=A(["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"]),_l=A(["relative shrink-0 flex items-center justify-center","text-[var(--color-gray-600)]","animate-signal-rhythm","origin-center"]),Gl=A(["absolute inset-0","bg-[var(--color-blue-200)]","rounded-full","opacity-0","animate-ping-slow","-z-10"]),ut=({onClick:r,icon:e,label:t,className:a,isCopied:n=!1})=>f.jsx("button",{className:W(jl({isCopied:n}),a),onClick:r,type:"button","aria-label":t,children:f.jsx(e,{size:12})}),Ul=()=>{const[r,e]=V.useState(0);return V.useEffect(()=>{const t=setInterval(()=>{e(a=>a+1)},2500);return()=>clearInterval(t)},[]),f.jsx("div",{className:W(ql()),children:f.jsx(qr,{size:28,colorVariant:"lightTeal",animated:!0,animationDuration:2},r)})},Yn=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:h,onCopy:g,onCopySuccess:x,onEdit:w,onHelpful:M,onUnhelpful:k,...T},N)=>{const R=V.useRef(null),[B,P]=V.useState(!1),O=h??(e==="user"?d?"center":"right":"left"),Y=async()=>{if(!R.current)return;const I=R.current.innerText;try{navigator.clipboard&&navigator.clipboard.writeText?(await navigator.clipboard.writeText(I),P(!0),g==null||g(),x==null||x(),setTimeout(()=>{P(!1)},2e3)):console.warn("Clipboard API not available")}catch($){console.error("Failed to copy:",$)}},q=I=>{const $=typeof I=="string"?new Date(I):I,ie=new Date().getTime()-$.getTime(),te=Math.floor(ie/6e4);if(te<1)return"Just now";if(te<60)return`${te} min ago`;const ge=Math.floor(te/60);return ge<24?`${ge}h ago`:$.toLocaleDateString()};return e==="loader"||n?f.jsx("div",{ref:N,className:W(Ca({variant:"loader",alignment:"left"}),r),...T,children:f.jsx("div",{className:W(Ma({variant:"loader",isSticky:u})),children:f.jsx(Ul,{})})}):f.jsx("div",{ref:N,className:W(Ca({variant:e,alignment:O}),"group",r),...T,children:f.jsxs("div",{className:W(El()),children:[!o&&e==="assistant"&&f.jsx("div",{className:W(Pl()),children:f.jsx("div",{className:W(Ol()),children:f.jsx(Fr,{size:20,colorVariant:"lightTeal"})})}),f.jsxs("div",{className:W(Rl()),children:[f.jsx("div",{className:W(Ma({variant:e,isSticky:u})),children:f.jsx("div",{className:W(Ll({variant:e})),ref:R,children:e==="system"?f.jsxs("div",{className:W(Hl()),children:[f.jsx("div",{className:W(Vl())}),f.jsxs("div",{className:W(_l()),children:[f.jsx(p.Activity,{size:16}),f.jsx("div",{className:W(Gl())})]}),f.jsx("span",{className:W(za({variant:e})),children:a})]}):f.jsxs(f.Fragment,{children:[e==="assistant"&&t&&f.jsx("h4",{className:W(Bl()),children:t}),f.jsx("div",{className:W(za({variant:e})),children:a})]})})}),l&&s&&f.jsx("div",{className:W(Fl()),children:q(s)}),!u&&(e==="user"||e==="assistant")&&f.jsxs("div",{className:W(Il({variant:e})),children:[f.jsx(ut,{onClick:Y,icon:B?p.Check:p.Clipboard,label:B?"Copied":"Copy",isCopied:B}),e==="user"&&w&&f.jsx(ut,{onClick:w,icon:p.Edit3,label:"Edit"}),e==="assistant"&&f.jsxs(f.Fragment,{children:[M&&f.jsx(ut,{onClick:M,icon:p.ThumbsUp,label:"Helpful"}),k&&f.jsx(ut,{onClick:k,icon:p.ThumbsDown,label:"Unhelpful"})]})]})]})]})})});Yn.displayName="MessageBubble";const Wl=A("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"}}),$l=A("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"}}),Xl=A("flex justify-between mb-2 text-[var(--color-gray-800)]",{variants:{size:{small:"text-xs",medium:"text-sm",large:"text-base"}},defaultVariants:{size:"medium"}}),Zn=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 h=Math.min(Math.max(e/t*100,0),100),g=l?l(e,t):`${Math.round(h)}%`;return f.jsxs("div",{ref:d,className:W("w-full",r),role:"progressbar","aria-valuemin":0,"aria-valuemax":t,"aria-valuenow":e,...u,children:[(o||s)&&f.jsxs("div",{className:Xl({size:n}),children:[o&&f.jsx("span",{className:"font-medium",children:o}),s&&f.jsx("span",{className:"ml-auto",children:g})]}),f.jsx("div",{className:Wl({size:n}),children:f.jsx("div",{className:$l({variant:a}),style:{transform:`translateX(-${100-h}%)`}})})]})});Zn.displayName="ProgressBar";const Yl=A(["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}}),Kn=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,h=Number(u??d??0),g=Number(o),x=Number(l),w=Math.min(Math.max((h-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 f.jsx("input",{ref:s,type:"range",className:W(Yl({variant:e,animated:t}),r),style:{background:k,...a},...n})});Kn.displayName="RangeInput";const Zl=A("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"}}),Kl=A("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"}}),Jl=A("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"}}),Jn=V.forwardRef(({className:r,icon:e,label:t,isCollapsed:a=!1,isActive:n=!1,variant:s="default",onClick:o,children:l,...u},d)=>{const h=a?"collapsed":"expanded",g=n?"active":s,x=w=>{o&&(w.key==="Enter"||w.key===" ")&&(w.preventDefault(),o())};return f.jsxs("div",{ref:d,className:W(Zl({type:h,variant:g}),r),role:"button",tabIndex:0,"aria-label":t,onClick:o,onKeyDown:x,...u,children:[e&&f.jsx("div",{className:W(Kl({type:h,variant:g})),children:e}),(s!=="brand"||!a)&&f.jsx("span",{className:W(Jl({type:h,variant:g})),children:t})]})});Jn.displayName="SidebarItem";const Ql=A("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"}}),e1=A("w-4 h-4 rounded-full object-cover shrink-0"),Ta=A("flex items-center justify-center shrink-0"),V0=V.forwardRef(({className:r,variant:e="default",startIcon:t,endIcon:a,avatarSrc:n,children:s,...o},l)=>f.jsxs("div",{ref:l,className:W(Ql({variant:e}),r),...o,children:[n&&f.jsx("img",{src:n,alt:"avatar",className:e1()}),t&&f.jsx("span",{className:Ta(),children:t}),f.jsx(o0,{variant:"tag",color:"inherit",className:"whitespace-nowrap",children:s}),a&&f.jsx("span",{className:Ta(),children:a})]}));V0.displayName="Tag";const t1=A("inline-flex h-8 items-center justify-start rounded-none bg-transparent p-0 text-muted-foreground w-full relative"),r1=A("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"}}),a1=A("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2"),n1=A("absolute bottom-0 left-0 right-0 h-[2px] bg-[var(--color-blue-1000)]"),s1=A("flex items-center gap-[2px]"),Aa=A("group-data-[state=active]:text-[var(--color-blue-1000)]"),o1=D0.Root,Qn=z.forwardRef(({className:r,...e},t)=>f.jsx(D0.List,{ref:t,className:W(t1(),r),...e}));Qn.displayName=D0.List.displayName;const es=z.forwardRef(({className:r,children:e,errorCount:t,configurationCount:a,...n},s)=>{const[o,l]=z.useState(!1),u=z.useRef(null);z.useEffect(()=>{const h=u.current;if(!h)return;const g=new MutationObserver(()=>{l(h.getAttribute("data-state")==="active")});return g.observe(h,{attributes:!0,attributeFilter:["data-state"]}),l(h.getAttribute("data-state")==="active"),()=>g.disconnect()},[]);const d=z.useCallback(h=>{u.current=h,typeof s=="function"?s(h):s&&(s.current=h)},[s]);return f.jsxs(D0.Trigger,{ref:d,className:W(r1(),r),...n,children:[e,(a!==void 0||t!==void 0)&&f.jsxs("div",{className:s1(),children:[a!==void 0&&f.jsx(V0,{variant:"indicator",startIcon:f.jsx(p.Settings,{size:10,className:"text-[#15B1CD]"}),className:Aa(),children:a}),t!==void 0&&f.jsx(V0,{variant:"indicator",startIcon:f.jsx(p.TriangleAlert,{size:10,className:"text-[#FB6060]"}),className:Aa(),children:t})]}),f.jsx(be.motion.div,{className:n1(),initial:!1,animate:{scaleX:o?1:0,opacity:o?1:0},transition:{duration:.3,ease:"easeInOut"},style:{originX:0}})]})});es.displayName=D0.Trigger.displayName;const ts=z.forwardRef(({className:r,...e},t)=>f.jsx(D0.Content,{ref:t,className:W(a1(),r),...e,asChild:!0,children:f.jsx(be.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})}));ts.displayName=D0.Content.displayName;const i1=A("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"}}),l1=A("relative w-full",{variants:{size:{medium:"",small:"",tiny:""}},defaultVariants:{size:"medium"}}),rs=V.forwardRef(({className:r,status:e="default",size:t="medium",resize:a="vertical",disabled:n,...s},o)=>f.jsx("div",{className:l1({size:t}),children:f.jsx("textarea",{ref:o,className:W(i1({status:e,size:t,resize:a}),r),disabled:n,...s})}));rs.displayName="TextArea";const c1=A("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"}}),u1=A("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"}}),d1=(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),h=t<0,g=Math.abs(a),x=Math.abs(n),w=Math.abs(s),M=Math.abs(o),k=Math.abs(l),T=Math.abs(u),N=Math.abs(d),R=(B,P)=>{const O=B===1?"":"s";return h?`in ${B} ${P}${O}`:`${B} ${P}${O} ago`};return g<60?"just now":x<60?R(x,"minute"):w<24?R(w,"hour"):M===1?h?"tomorrow":"yesterday":M<7?R(M,"day"):k<4?R(k,"week"):T<12?R(T,"month"):R(N,"year")},m1=(r,e,t)=>{switch(e){case"relative":return d1(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)}},h1=r=>r instanceof Date?r:typeof r=="number"?new Date(r):new Date(r),as=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(()=>h1(e),[e]),h=V.useMemo(()=>m1(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 f.jsxs("time",{ref:u,dateTime:g,className:W(c1({size:a,variant:n}),r),...l,children:[s&&f.jsx("span",{className:u1({size:a}),children:f.jsx(p.ClockHistory,{size:w,color:x})}),h]})});as.displayName="Timestamp";const f1=A("flex 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"}}),p1=A("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"}}),v1=A("flex items-center gap-1 flex-1"),g1=A("font-bold text-[var(--color-blue-1000)] text-[0.75rem] leading-normal"),b1=A("font-normal text-[var(--color-blue-1000)] text-[0.75rem] leading-normal"),y1=A("flex items-center gap-2 shrink-0"),x1=A("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"}}),w1=A("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"),S1={info:p.Info,success:p.CheckCircle,warning:p.TriangleAlert,error:p.AlertCircle,prompt:p.Sparks},k1={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)"},T0=({id:r,variant:e="info",title:t,description:a,icon:n,action:s,secondaryAction:o,onClose:l})=>{const u=S1[e],d=k1[e],h=()=>{l&&l(),r&&n0.toast.dismiss(r)},g=w=>M=>{w(M),r&&n0.toast.dismiss(r)},x=()=>n||(e==="success"?f.jsx(p.CheckCircle,{size:16,color:d}):e==="error"?f.jsx(p.AlertCircle,{size:16,color:d}):e==="prompt"?f.jsx(p.Sparks,{size:16,color:d}):f.jsx(u,{size:16}));return f.jsxs("div",{className:W(f1({variant:e})),role:"alert",children:[f.jsx("div",{className:p1({variant:e}),children:x()}),f.jsxs("div",{className:v1(),children:[f.jsx("span",{className:g1(),children:t}),a&&f.jsx("span",{className:b1(),children:a})]}),f.jsx("div",{className:x1({variant:e})}),f.jsxs("div",{className:y1(),children:[o&&f.jsx(H0,{onClick:g(o.onClick),variant:"tertiary",size:"small",startIcon:o.icon||f.jsx(p.Trash,{size:13,color:"currentColor"}),className:"w-auto",children:o.label}),s&&f.jsx(H0,{onClick:g(s.onClick),variant:"primary",size:"small",startIcon:s.icon||f.jsx(p.Check,{size:13,color:"currentColor"}),className:"w-auto",children:s.label}),f.jsx("button",{onClick:h,className:w1(),"aria-label":"Close",children:f.jsx(p.X,{size:16})})]})]})},C1=r=>f.jsx(n0.Toaster,{position:"bottom-right",toastOptions:{unstyled:!0,classNames:{toast:"bg-transparent p-0 w-full"}},...r}),M1={success:(r,e,t)=>n0.toast.custom(a=>f.jsx(T0,{id:a,variant:"success",title:r,description:e,action:t})),error:(r,e,t)=>n0.toast.custom(a=>f.jsx(T0,{id:a,variant:"error",title:r,description:e,action:t})),warning:(r,e,t)=>n0.toast.custom(a=>f.jsx(T0,{id:a,variant:"warning",title:r,description:e,action:t})),info:(r,e,t)=>n0.toast.custom(a=>f.jsx(T0,{id:a,variant:"info",title:r,description:e,action:t})),prompt:(r,e,t,a)=>n0.toast.custom(n=>f.jsx(T0,{id:n,variant:"prompt",title:r,description:e,action:t,secondaryAction:a})),custom:r=>n0.toast.custom(e=>f.jsx(T0,{id:e,...r}))},z1=A("flex items-center gap-3"),T1=A("text-[var(--color-gray-1000)] font-medium select-none"),A1=A("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}}),N1=A("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}}),ns=V.forwardRef(({enabled:r,onChange:e,label:t,className:a,disabled:n,...s},o)=>f.jsxs("div",{className:W(z1(),a),children:[t&&f.jsx(o0,{variant:"small",className:T1(),children:t}),f.jsx("button",{ref:o,type:"button",role:"switch","aria-checked":r,disabled:n,onClick:()=>!n&&e(!r),className:A1({enabled:r}),...s,children:f.jsx("span",{className:N1({enabled:r})})})]}));ns.displayName="Toggle";const D1=A("flex items-center justify-between w-full gap-2 min-h-[20px]"),E1=A("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"}}),R1={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)"},ss=V.forwardRef(({className:r,status:e="neutral",message:t,...a},n)=>{const s=e==="loading"?"info":e,o=R1[e],l=()=>e==="loading"?f.jsx(p.Loader,{size:16,color:o,className:"animate-spin"}):e==="success"?f.jsx(p.CheckCircle,{size:16,color:o}):e==="warning"?f.jsx(p.TriangleAlert,{size:16,color:o}):e==="error"?f.jsx(p.AlertCircle,{size:16,color:o}):e==="info"?f.jsx(p.Info,{size:16,color:o}):null;return f.jsxs("div",{ref:n,className:W(D1(),r),...a,children:[f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx(Or,{variant:s,size:"small"}),f.jsx("span",{className:E1({status:e}),children:t})]}),f.jsx("div",{className:"w-4 h-4 flex items-center justify-center",children:l()})]})});ss.displayName="StatusMessage";const L1=A("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"}}),B1=A("",{variants:{variant:{default:"fill-[var(--color-blue-1000)]",light:"fill-[var(--color-gray-50)]"}},defaultVariants:{variant:"default"}}),os=({delayDuration:r=0,...e})=>f.jsx(A0.Provider,{delayDuration:r,...e}),is=A0.Root,ls=A0.Trigger,Ur=z.forwardRef(({className:r,sideOffset:e=4,children:t,variant:a,...n},s)=>f.jsx(A0.Portal,{children:f.jsx(A0.Content,{ref:s,sideOffset:e,asChild:!0,className:W(L1({variant:a}),r),...n,children:f.jsxs(be.motion.div,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},transition:{duration:.1,ease:"easeOut"},children:[f.jsx(o0,{variant:"x-small",color:"inherit",className:"font-normal relative z-10",children:t}),f.jsx(A0.Arrow,{className:B1({variant:a})})]})})}));Ur.displayName=A0.Content.displayName;const I1=A("relative flex flex-col w-full"),j1=A("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}}),P1=A("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"}}),O1=A("box-border flex flex-col gap-[1.25rem] items-start justify-center w-full rounded-[inherit]"),F1=A("flex flex-col gap-5 w-full"),q1=A("flex flex-wrap gap-[8px] items-start w-full"),H1=A("flex items-start justify-between w-full max-h-[200px] overflow-y-auto"),V1=A("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"}}),_1=A("flex items-center justify-between w-full"),G1=A("flex gap-[8px] items-center"),U1=A("flex items-center gap-2"),Jt=A("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"}}),W1=A("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}}),$1=A("animate-spin"),X1=A("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)]"),Y1=A("flex items-center justify-center"),Z1=A("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"),K1=A("min-w-[120px]"),J1=A("py-1.5 px-2"),Q1=A("absolute -inset-[2px] rounded-[18px] z-0 pointer-events-none"),Na=A("absolute inset-0 rounded-[18px] w-full h-full",{variants:{layer:{base:"opacity-40",blur:"blur-xl opacity-20"}},defaultVariants:{layer:"base"}}),cs=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:h,isLoading:g=!1,onChange:x,onSend:w,onFileAdd:M,onFileRemove:k,onModelChange:T,isUsingMagic:N=!1},R)=>{var Oe,Fe;const[B,P]=V.useState(""),[O,Y]=V.useState(!1),[q,I]=V.useState(!1),$=V.useRef(null),me=V.useRef(null),ie=e!==void 0?e:B,te=ie.trim().length>0,ge=t.length>0,he=O?"dragOver":ge?"withFiles":q?"active":"default",pe=_=>{x?x(_):P(_)},Me=_=>{pe(_.target.value),X()},X=V.useCallback(()=>{const _=$.current;_&&(_.style.height="auto",_.style.height=`${Math.min(_.scrollHeight,200)}px`)},[]);V.useEffect(()=>{X()},[ie,X]);const t0=V.useCallback(()=>{a||!te&&!ge||w&&(w(ie,t),pe(""),$.current&&($.current.style.height="auto"))},[a,te,ge,w,ie,t]),Re=_=>{_.key==="Enter"&&!_.shiftKey&&(_.preventDefault(),t0())},Le=_=>{const qe=Array.from(_.target.files||[]);qe.length>0&&M&&M(qe),me.current&&(me.current.value="")},Ce=()=>{var _;(_=me.current)==null||_.click()},ne=V.useRef(0),we=_=>{_.preventDefault(),_.stopPropagation(),ne.current+=1,ne.current===1&&Y(!0)},Be=_=>{_.preventDefault(),_.stopPropagation(),ne.current-=1,ne.current===0&&Y(!1)},k0=_=>{_.preventDefault(),_.stopPropagation()},se=_=>{_.preventDefault(),_.stopPropagation(),ne.current=0,Y(!1);const qe=Array.from(_.dataTransfer.files);qe.length>0&&M&&M(qe)},Ge=_=>{k&&k(_)};return f.jsxs("div",{ref:R,className:W(I1(),o),children:[f.jsx(be.AnimatePresence,{children:N&&f.jsxs(be.motion.div,{initial:{opacity:0,scale:.98},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.98},transition:{duration:1.2,ease:"easeInOut"},className:Q1(),children:[f.jsx("div",{className:Na({layer:"base"}),children:f.jsx(be.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"}})}),f.jsx("div",{className:Na({layer:"blur"}),children:f.jsx(be.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"}})})]})}),f.jsxs("div",{className:j1({state:he,variant:l,isMagicActive:N}),onDragEnter:we,onDragLeave:Be,onDragOver:k0,onDrop:se,children:[f.jsx("div",{className:P1({state:he,variant:l}),children:f.jsx("div",{className:O1(),children:f.jsxs("div",{className:F1(),children:[ge&&f.jsx("div",{className:q1(),children:t.map(_=>f.jsx(Un,{filename:_.filename,status:_.status,progress:_.progress,onDelete:()=>Ge(_.id)},_.id))}),f.jsx("div",{className:H1(),children:f.jsx("textarea",{ref:$,className:V1({state:he}),placeholder:r,value:ie,disabled:a||g,onChange:Me,onKeyDown:Re,onFocus:()=>I(!0),onBlur:()=>I(!1),rows:2,maxLength:1e4,"aria-label":"Chat message input"})}),f.jsxs("div",{className:_1(),children:[f.jsxs("div",{className:G1(),children:[f.jsx("button",{type:"button",onClick:Ce,className:Jt({variant:"add"}),disabled:a,"aria-label":"Add file",tabIndex:0,children:f.jsx(p.Plus,{size:16})}),u.map(_=>f.jsx(V.Fragment,{children:_.tooltip?f.jsx(os,{children:f.jsxs(is,{children:[f.jsx(ls,{asChild:!0,children:f.jsx("button",{type:"button",onClick:_.onClick,className:Jt(),disabled:a||_.disabled,"aria-label":_.label,tabIndex:0,children:_.icon})}),f.jsx(Ur,{variant:"light",children:_.tooltip})]})}):f.jsx("button",{type:"button",onClick:_.onClick,className:Jt(),disabled:a||_.disabled,"aria-label":_.label,tabIndex:0,children:_.icon})},`--action-${_.id}`))]}),f.jsxs("div",{className:U1(),children:[d.length>0&&f.jsxs(Hr,{children:[f.jsx(Vr,{children:f.jsxs("button",{type:"button",className:Z1(),disabled:a||g,"aria-label":"Select AI model",children:[f.jsx(o0,{variant:"tiny",color:"inherit",as:"span",className:a||g?"opacity-50":void 0,children:((Oe=d.find(_=>_.id===h))==null?void 0:Oe.name)||((Fe=d[0])==null?void 0:Fe.name)||"Select model"}),f.jsx(p.ChevronDown,{size:10,color:"currentColor"})]})}),f.jsx(_r,{align:"end",className:K1(),children:d.map(_=>f.jsx(Gr,{active:_.id===h,onClick:()=>T==null?void 0:T(_.id),className:J1(),children:f.jsx(o0,{variant:"tiny",color:"inherit",as:"span",children:_.name})},_.id))})]}),f.jsx("button",{type:"button",onClick:t0,className:W1({disabled:a||g||!te&&!ge}),disabled:a||g||!te&&!ge,"aria-label":g?"Loading":"Send message",tabIndex:0,children:g?f.jsx(p.Loader,{size:16,color:"currentColor",className:$1()}):f.jsx(p.ArrowUp,{size:16,strokeWidth:2.5,color:"currentColor"})})]})]})]})})}),f.jsx(be.AnimatePresence,{children:O&&f.jsxs(be.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:X1(),children:[f.jsx("div",{className:Y1(),children:f.jsx(p.Uploadfile,{size:32,color:"var(--color-gray-1000)"})}),f.jsx(o0,{variant:"small",weight:"bold",color:"primary",className:"text-center",children:"Drop your files here"}),f.jsxs(o0,{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")}),f.jsx("input",{ref:me,type:"file",multiple:!0,onChange:Le,className:"hidden","aria-hidden":"true"})]})]})});cs.displayName="ChatInput";const ec=A("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)]"),tc=A("flex items-center gap-[12px] h-[24px]"),rc=A("flex items-center gap-[12px] h-[24px] rounded-[8px]"),Da=A("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"),ac=A("flex items-center gap-[8px]"),nc=A("flex items-center"),us=V.forwardRef(({className:r,breadcrumbs:e,tags:t=[],collaborators:a=[],onAddTag:n,onAddCollaborator:s,tagsOverflowCount:o=0,...l},u)=>f.jsxs("div",{ref:u,className:W(ec(),r),...l,children:[f.jsx(_n,{items:e,size:"medium"}),f.jsx("div",{className:tc(),children:f.jsxs("div",{className:rc(),children:[(t.length>0||o>0)&&f.jsxs("div",{className:ac(),children:[t.map(d=>f.jsx(V0,{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&&f.jsxs(V0,{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&&f.jsx("div",{className:nc(),children:f.jsx("div",{className:"flex items-center flex-row-reverse",children:a.map((d,h)=>f.jsx("div",{className:"relative shrink-0 border-[1.5px] border-white rounded-full",style:{zIndex:a.length-h,marginRight:h<a.length-1?-4:0},children:f.jsx(Pr,{initials:d.name,src:d.src,alt:d.name,className:"size-[24px] text-[10px]"})},d.id))})}),f.jsx("button",{type:"button",onClick:n,className:Da(),"aria-label":"Add tag",children:f.jsx(p.TagPlus,{size:16})}),f.jsx("button",{type:"button",onClick:s,className:Da(),"aria-label":"Add collaborator",children:f.jsx(p.UserPlus,{size:16})})]})})]}));us.displayName="ConversationHeader";function b0(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 Ea(r,e){if(typeof r=="function")return r(e);r!=null&&(r.current=e)}function ds(...r){return e=>{let t=!1;const a=r.map(n=>{const s=Ea(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():Ea(r[n],null)}}}}function E0(...r){return z.useCallback(ds(...r),r)}function sc(r,e){const t=z.createContext(e),a=s=>{const{children:o,...l}=s,u=z.useMemo(()=>l,Object.values(l));return f.jsx(t.Provider,{value:u,children:o})};a.displayName=r+"Provider";function n(s){const o=z.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 oc(r,e=[]){let t=[];function a(s,o){const l=z.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,T=z.useMemo(()=>M,Object.values(M));return f.jsx(k.Provider,{value:T,children:w})};d.displayName=s+"Provider";function h(g,x){var k;const w=((k=x==null?void 0:x[r])==null?void 0:k[u])||l,M=z.useContext(w);if(M)return M;if(o!==void 0)return o;throw new Error(`\`${g}\` must be used within \`${s}\``)}return[d,h]}const n=()=>{const s=t.map(o=>z.createContext(o));return function(l){const u=(l==null?void 0:l[r])||s;return z.useMemo(()=>({[`__scope${r}`]:{...l,[r]:u}}),[l,u])}};return n.scopeName=r,[a,ic(n,...e)]}function ic(...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 z.useMemo(()=>({[`__scope${e.scopeName}`]:o}),[o])}};return t.scopeName=e.scopeName,t}var K0=globalThis!=null&&globalThis.document?z.useLayoutEffect:()=>{},lc=z[" useId ".trim().toString()]||(()=>{}),cc=0;function Qt(r){const[e,t]=z.useState(lc());return K0(()=>{t(a=>a??String(cc++))},[r]),r||(e?`radix-${e}`:"")}var uc=z[" useInsertionEffect ".trim().toString()]||K0;function dc({prop:r,defaultProp:e,onChange:t=()=>{},caller:a}){const[n,s,o]=mc({defaultProp:e,onChange:t}),l=r!==void 0,u=l?r:n;{const h=z.useRef(r!==void 0);z.useEffect(()=>{const g=h.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.`),h.current=l},[l,a])}const d=z.useCallback(h=>{var g;if(l){const x=hc(h)?h(r):h;x!==r&&((g=o.current)==null||g.call(o,x))}else s(h)},[l,r,s,o]);return[u,d]}function mc({defaultProp:r,onChange:e}){const[t,a]=z.useState(r),n=z.useRef(t),s=z.useRef(e);return uc(()=>{s.current=e},[e]),z.useEffect(()=>{var o;n.current!==t&&((o=s.current)==null||o.call(s,t),n.current=t)},[t,n]),[t,a,s]}function hc(r){return typeof r=="function"}function ms(r){const e=fc(r),t=z.forwardRef((a,n)=>{const{children:s,...o}=a,l=z.Children.toArray(s),u=l.find(vc);if(u){const d=u.props.children,h=l.map(g=>g===u?z.Children.count(d)>1?z.Children.only(null):z.isValidElement(d)?d.props.children:null:g);return f.jsx(e,{...o,ref:n,children:z.isValidElement(d)?z.cloneElement(d,void 0,h):null})}return f.jsx(e,{...o,ref:n,children:s})});return t.displayName=`${r}.Slot`,t}function fc(r){const e=z.forwardRef((t,a)=>{const{children:n,...s}=t;if(z.isValidElement(n)){const o=bc(n),l=gc(s,n.props);return n.type!==z.Fragment&&(l.ref=a?ds(a,o):o),z.cloneElement(n,l)}return z.Children.count(n)>1?z.Children.only(null):null});return e.displayName=`${r}.SlotClone`,e}var pc=Symbol("radix.slottable");function vc(r){return z.isValidElement(r)&&typeof r.type=="function"&&"__radixId"in r.type&&r.type.__radixId===pc}function gc(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 bc(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 yc=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ke=yc.reduce((r,e)=>{const t=ms(`Primitive.${e}`),a=z.forwardRef((n,s)=>{const{asChild:o,...l}=n,u=o?t:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),f.jsx(u,{...l,ref:s})});return a.displayName=`Primitive.${e}`,{...r,[e]:a}},{});function xc(r,e){r&&Wo.flushSync(()=>r.dispatchEvent(e))}function J0(r){const e=z.useRef(r);return z.useEffect(()=>{e.current=r}),z.useMemo(()=>(...t)=>{var a;return(a=e.current)==null?void 0:a.call(e,...t)},[])}function wc(r,e=globalThis==null?void 0:globalThis.document){const t=J0(r);z.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 Sc="DismissableLayer",Mr="dismissableLayer.update",kc="dismissableLayer.pointerDownOutside",Cc="dismissableLayer.focusOutside",Ra,hs=z.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),fs=z.forwardRef((r,e)=>{const{disableOutsidePointerEvents:t=!1,onEscapeKeyDown:a,onPointerDownOutside:n,onFocusOutside:s,onInteractOutside:o,onDismiss:l,...u}=r,d=z.useContext(hs),[h,g]=z.useState(null),x=(h==null?void 0:h.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,w]=z.useState({}),M=E0(e,q=>g(q)),k=Array.from(d.layers),[T]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),N=k.indexOf(T),R=h?k.indexOf(h):-1,B=d.layersWithOutsidePointerEventsDisabled.size>0,P=R>=N,O=Tc(q=>{const I=q.target,$=[...d.branches].some(me=>me.contains(I));!P||$||(n==null||n(q),o==null||o(q),q.defaultPrevented||l==null||l())},x),Y=Ac(q=>{const I=q.target;[...d.branches].some(me=>me.contains(I))||(s==null||s(q),o==null||o(q),q.defaultPrevented||l==null||l())},x);return wc(q=>{R===d.layers.size-1&&(a==null||a(q),!q.defaultPrevented&&l&&(q.preventDefault(),l()))},x),z.useEffect(()=>{if(h)return t&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(Ra=x.body.style.pointerEvents,x.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(h)),d.layers.add(h),La(),()=>{t&&d.layersWithOutsidePointerEventsDisabled.size===1&&(x.body.style.pointerEvents=Ra)}},[h,x,t,d]),z.useEffect(()=>()=>{h&&(d.layers.delete(h),d.layersWithOutsidePointerEventsDisabled.delete(h),La())},[h,d]),z.useEffect(()=>{const q=()=>w({});return document.addEventListener(Mr,q),()=>document.removeEventListener(Mr,q)},[]),f.jsx(Ke.div,{...u,ref:M,style:{pointerEvents:B?P?"auto":"none":void 0,...r.style},onFocusCapture:b0(r.onFocusCapture,Y.onFocusCapture),onBlurCapture:b0(r.onBlurCapture,Y.onBlurCapture),onPointerDownCapture:b0(r.onPointerDownCapture,O.onPointerDownCapture)})});fs.displayName=Sc;var Mc="DismissableLayerBranch",zc=z.forwardRef((r,e)=>{const t=z.useContext(hs),a=z.useRef(null),n=E0(e,a);return z.useEffect(()=>{const s=a.current;if(s)return t.branches.add(s),()=>{t.branches.delete(s)}},[t.branches]),f.jsx(Ke.div,{...r,ref:n})});zc.displayName=Mc;function Tc(r,e=globalThis==null?void 0:globalThis.document){const t=J0(r),a=z.useRef(!1),n=z.useRef(()=>{});return z.useEffect(()=>{const s=l=>{if(l.target&&!a.current){let u=function(){ps(kc,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 Ac(r,e=globalThis==null?void 0:globalThis.document){const t=J0(r),a=z.useRef(!1);return z.useEffect(()=>{const n=s=>{s.target&&!a.current&&ps(Cc,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 La(){const r=new CustomEvent(Mr);document.dispatchEvent(r)}function ps(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?xc(n,s):n.dispatchEvent(s)}var er="focusScope.autoFocusOnMount",tr="focusScope.autoFocusOnUnmount",Ba={bubbles:!1,cancelable:!0},Nc="FocusScope",vs=z.forwardRef((r,e)=>{const{loop:t=!1,trapped:a=!1,onMountAutoFocus:n,onUnmountAutoFocus:s,...o}=r,[l,u]=z.useState(null),d=J0(n),h=J0(s),g=z.useRef(null),x=E0(e,k=>u(k)),w=z.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;z.useEffect(()=>{if(a){let k=function(B){if(w.paused||!l)return;const P=B.target;l.contains(P)?g.current=P:v0(g.current,{select:!0})},T=function(B){if(w.paused||!l)return;const P=B.relatedTarget;P!==null&&(l.contains(P)||v0(g.current,{select:!0}))},N=function(B){if(document.activeElement===document.body)for(const O of B)O.removedNodes.length>0&&v0(l)};document.addEventListener("focusin",k),document.addEventListener("focusout",T);const R=new MutationObserver(N);return l&&R.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",k),document.removeEventListener("focusout",T),R.disconnect()}}},[a,l,w.paused]),z.useEffect(()=>{if(l){ja.add(w);const k=document.activeElement;if(!l.contains(k)){const N=new CustomEvent(er,Ba);l.addEventListener(er,d),l.dispatchEvent(N),N.defaultPrevented||(Dc(Ic(gs(l)),{select:!0}),document.activeElement===k&&v0(l))}return()=>{l.removeEventListener(er,d),setTimeout(()=>{const N=new CustomEvent(tr,Ba);l.addEventListener(tr,h),l.dispatchEvent(N),N.defaultPrevented||v0(k??document.body,{select:!0}),l.removeEventListener(tr,h),ja.remove(w)},0)}}},[l,d,h,w]);const M=z.useCallback(k=>{if(!t&&!a||w.paused)return;const T=k.key==="Tab"&&!k.altKey&&!k.ctrlKey&&!k.metaKey,N=document.activeElement;if(T&&N){const R=k.currentTarget,[B,P]=Ec(R);B&&P?!k.shiftKey&&N===P?(k.preventDefault(),t&&v0(B,{select:!0})):k.shiftKey&&N===B&&(k.preventDefault(),t&&v0(P,{select:!0})):N===R&&k.preventDefault()}},[t,a,w.paused]);return f.jsx(Ke.div,{tabIndex:-1,...o,ref:x,onKeyDown:M})});vs.displayName=Nc;function Dc(r,{select:e=!1}={}){const t=document.activeElement;for(const a of r)if(v0(a,{select:e}),document.activeElement!==t)return}function Ec(r){const e=gs(r),t=Ia(e,r),a=Ia(e.reverse(),r);return[t,a]}function gs(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 Ia(r,e){for(const t of r)if(!Rc(t,{upTo:e}))return t}function Rc(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 Lc(r){return r instanceof HTMLInputElement&&"select"in r}function v0(r,{select:e=!1}={}){if(r&&r.focus){const t=document.activeElement;r.focus({preventScroll:!0}),r!==t&&Lc(r)&&e&&r.select()}}var ja=Bc();function Bc(){let r=[];return{add(e){const t=r[0];e!==t&&(t==null||t.pause()),r=Pa(r,e),r.unshift(e)},remove(e){var t;r=Pa(r,e),(t=r[0])==null||t.resume()}}}function Pa(r,e){const t=[...r],a=t.indexOf(e);return a!==-1&&t.splice(a,1),t}function Ic(r){return r.filter(e=>e.tagName!=="A")}var jc="Portal",bs=z.forwardRef((r,e)=>{var l;const{container:t,...a}=r,[n,s]=z.useState(!1);K0(()=>s(!0),[]);const o=t||n&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return o?An.createPortal(f.jsx(Ke.div,{...a,ref:e}),o):null});bs.displayName=jc;function Pc(r,e){return z.useReducer((t,a)=>e[t][a]??t,r)}var Pt=r=>{const{present:e,children:t}=r,a=Oc(e),n=typeof t=="function"?t({present:a.isPresent}):z.Children.only(t),s=E0(a.ref,Fc(n));return typeof t=="function"||a.isPresent?z.cloneElement(n,{ref:s}):null};Pt.displayName="Presence";function Oc(r){const[e,t]=z.useState(),a=z.useRef(null),n=z.useRef(r),s=z.useRef("none"),o=r?"mounted":"unmounted",[l,u]=Pc(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return z.useEffect(()=>{const d=dt(a.current);s.current=l==="mounted"?d:"none"},[l]),K0(()=>{const d=a.current,h=n.current;if(h!==r){const x=s.current,w=dt(d);r?u("MOUNT"):w==="none"||(d==null?void 0:d.display)==="none"?u("UNMOUNT"):u(h&&x!==w?"ANIMATION_OUT":"UNMOUNT"),n.current=r}},[r,u]),K0(()=>{if(e){let d;const h=e.ownerDocument.defaultView??window,g=w=>{const k=dt(a.current).includes(CSS.escape(w.animationName));if(w.target===e&&k&&(u("ANIMATION_END"),!n.current)){const T=e.style.animationFillMode;e.style.animationFillMode="forwards",d=h.setTimeout(()=>{e.style.animationFillMode==="forwards"&&(e.style.animationFillMode=T)})}},x=w=>{w.target===e&&(s.current=dt(a.current))};return e.addEventListener("animationstart",x),e.addEventListener("animationcancel",g),e.addEventListener("animationend",g),()=>{h.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:z.useCallback(d=>{a.current=d?getComputedStyle(d):null,t(d)},[])}}function dt(r){return(r==null?void 0:r.animationName)||"none"}function Fc(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 rr=0;function qc(){z.useEffect(()=>{const r=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",r[0]??Oa()),document.body.insertAdjacentElement("beforeend",r[1]??Oa()),rr++,()=>{rr===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),rr--}},[])}function Oa(){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 ys(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 Hc(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 Mt="right-scroll-bar-position",zt="width-before-scroll-bar",Vc="with-scroll-bars-hidden",_c="--removed-body-scroll-bar-size";function ar(r,e){return typeof r=="function"?r(e):r&&(r.current=e),r}function Gc(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 Uc=typeof window<"u"?z.useLayoutEffect:z.useEffect,Fa=new WeakMap;function Wc(r,e){var t=Gc(null,function(a){return r.forEach(function(n){return ar(n,a)})});return Uc(function(){var a=Fa.get(t);if(a){var n=new Set(a),s=new Set(r),o=t.current;n.forEach(function(l){s.has(l)||ar(l,null)}),s.forEach(function(l){n.has(l)||ar(l,o)})}Fa.set(t,r)},[r]),t}function $c(r){return r}function Xc(r,e){e===void 0&&(e=$c);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 h=o;o=[],h.forEach(s)},d=function(){return Promise.resolve().then(u)};d(),t={push:function(h){o.push(h),d()},filter:function(h){return o=o.filter(h),t}}}};return n}function Yc(r){r===void 0&&(r={});var e=Xc(null);return e.options=Xe({async:!0,ssr:!1},r),e}var xs=function(r){var e=r.sideCar,t=ys(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 z.createElement(a,Xe({},t))};xs.isSideCarExport=!0;function Zc(r,e){return r.useMedium(e),xs}var ws=Yc(),nr=function(){},Ot=z.forwardRef(function(r,e){var t=z.useRef(null),a=z.useState({onScrollCapture:nr,onWheelCapture:nr,onTouchMoveCapture:nr}),n=a[0],s=a[1],o=r.forwardProps,l=r.children,u=r.className,d=r.removeScrollBar,h=r.enabled,g=r.shards,x=r.sideCar,w=r.noRelative,M=r.noIsolation,k=r.inert,T=r.allowPinchZoom,N=r.as,R=N===void 0?"div":N,B=r.gapMode,P=ys(r,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),O=x,Y=Wc([t,e]),q=Xe(Xe({},P),n);return z.createElement(z.Fragment,null,h&&z.createElement(O,{sideCar:ws,removeScrollBar:d,shards:g,noRelative:w,noIsolation:M,inert:k,setCallbacks:s,allowPinchZoom:!!T,lockRef:t,gapMode:B}),o?z.cloneElement(z.Children.only(l),Xe(Xe({},q),{ref:Y})):z.createElement(R,Xe({},q,{className:u,ref:Y}),l))});Ot.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Ot.classNames={fullWidth:zt,zeroRight:Mt};var Kc=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Jc(){if(!document)return null;var r=document.createElement("style");r.type="text/css";var e=Kc();return e&&r.setAttribute("nonce",e),r}function Qc(r,e){r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}function eu(r){var e=document.head||document.getElementsByTagName("head")[0];e.appendChild(r)}var tu=function(){var r=0,e=null;return{add:function(t){r==0&&(e=Jc())&&(Qc(e,t),eu(e)),r++},remove:function(){r--,!r&&e&&(e.parentNode&&e.parentNode.removeChild(e),e=null)}}},ru=function(){var r=tu();return function(e,t){z.useEffect(function(){return r.add(e),function(){r.remove()}},[e&&t])}},Ss=function(){var r=ru(),e=function(t){var a=t.styles,n=t.dynamic;return r(a,n),null};return e},au={left:0,top:0,right:0,gap:0},sr=function(r){return parseInt(r||"",10)||0},nu=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[sr(t),sr(a),sr(n)]},su=function(r){if(r===void 0&&(r="margin"),typeof window>"u")return au;var e=nu(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])}},ou=Ss(),F0="data-scroll-locked",iu=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(Vc,` {
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})]})};qr.displayName="SignatureA";const Ui=A("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=A("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"}}),$i=A("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"}}),Kt=A("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"}}),Xi=A("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"),Yi=A("w-full h-full bg-[var(--color-blue-200)]/30 p-2 space-y-2 flex flex-col items-start justify-start gap-1"),Zi=A("h-1 bg-[var(--color-gray-200)] rounded-full origin-left"),Ki=A("flex flex-col gap-[4px] grow items-start p-4 min-w-0"),Ji=A("font-medium text-[14px] leading-[20px] text-[var(--color-blue-1000)]"),Qi=A("text-[12px] leading-[16px] text-[var(--color-gray-600)]"),el=A("px-4 overflow-hidden flex items-center w-[56px] relative"),tl=A("absolute w-6 h-6 text-[var(--color-blue-800)]"),rl=A("w-6 h-6 text-[var(--color-gray-200)]"),al=A("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"}}),nl=A("w-4 h-4 shrink-0 text-[var(--color-red-1000)] transition-transform duration-300 group-hover:scale-110"),sl={rest:{scaleX:1},hover:{scaleX:[0,1]}},ol={rest:{x:0},hover:{x:4}},il={rest:{x:-20,opacity:0},hover:{x:0,opacity:1}},ll={rest:{x:0,opacity:1},hover:{x:20,opacity:0}},cl=[100,66,75,50],_n=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]),y=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(B=>{B.stopPropagation(),!o&&n&&n()},[o,n]),T=V.useCallback(B=>{(B.key==="Enter"||B.key===" ")&&(B.preventDefault(),M())},[M]),N=()=>f==="generating"?h.jsx("div",{className:Kt({status:"generating"}),children:h.jsx(p.Loader,{size:16,className:"text-[var(--color-gray-600)] animate-spin"})}):f==="error"?h.jsx("div",{className:Kt({status:"error"}),children:h.jsx(p.TriangleAlert,{size:16,className:nl()})}):h.jsx("div",{className:Kt({status:f}),children:h.jsx("div",{className:Xi(),children:h.jsx(be.motion.div,{className:Yi(),variants:{rest:{},hover:{transition:{staggerChildren:.1}}},children:cl.map((B,P)=>h.jsx(be.motion.div,{className:Zi(),style:{width:`${B}%`},variants:sl,transition:{duration:.4,ease:"easeInOut"}},P))})})}),R=()=>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:al({status:"error"})})}):h.jsxs(h.Fragment,{children:[h.jsx(be.motion.div,{className:tl(),variants:il,transition:{duration:.3,ease:"backOut"},children:h.jsx(p.ArrowUp,{size:24,className:"rotate-90"})}),h.jsx(be.motion.div,{className:rl(),variants:ll,transition:{duration:.3},children:h.jsx(p.ArrowUp,{size:24,className:"rotate-90"})})]});return h.jsxs(be.motion.div,{ref:l,role:"button",tabIndex:o?-1:0,className:_(Ui({status:f,disabled:o}),s),onClick:M,onKeyDown:T,onMouseEnter:y,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:$i({status:f})})}),N(),h.jsxs(be.motion.div,{className:Ki(),variants:ol,children:[h.jsx("p",{className:Ji(),title:r,children:r}),h.jsx("p",{className:Qi(),title:e,children:e})]}),h.jsx("div",{className:el(),children:R()})]})});_n.displayName="ArtifactCard";const ul=A("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"}}),lt=A("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"}}),dl=A("text-[var(--color-gray-600)] flex items-center justify-center"),Gn=({items:r,separator:e=h.jsx(p.ChevronRight,{size:16}),className:t,size:a="medium"})=>h.jsx("nav",{"aria-label":"Breadcrumb",className:_(ul({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:lt({state:"active"}),"aria-current":"page",children:[n.icon,n.label]}):n.href?l=h.jsxs("a",{href:n.href,className:lt({state:"default"}),onClick:n.onClick,children:[n.icon,n.label]}):n.onClick?l=h.jsxs("button",{type:"button",className:lt({state:"default"}),onClick:n.onClick,children:[n.icon,n.label]}):l=h.jsxs("span",{className:lt({state:"inactive"}),children:[n.icon,n.label]}),h.jsxs("li",{className:"flex items-center gap-2",children:[l,!o&&h.jsx("span",{className:dl(),"aria-hidden":"true",children:e})]},`${n.label}-${s}`)})})}),ml=A("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"}}),H0=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:_(ml({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})]})});H0.displayName="Button";const hl=A("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"}}),fl=A("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"}}),ct=A("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"}}),pl=A("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 Un=(r=>(r.Uploading="uploading",r.Processing="processing",r.Done="done",r.Error="error",r))(Un||{});const Wn=({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:ct({status:d})}):o?h.jsx(p.Loader,{size:12,className:_(ct({status:d}),"animate-spin")}):l?h.jsx(p.TriangleAlert,{size:12,className:ct({status:d})}):h.jsx(p.FileText,{size:12,className:ct({status:d})});return h.jsxs("div",{className:"relative inline-block group",children:[h.jsxs("div",{className:_(hl({status:d}),n),children:[(s||o)&&h.jsx(be.motion.div,{className:pl({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:_("flex items-center justify-center shrink-0 p-1 rounded-[2px]",l&&"bg-[#fff2f2]"),children:f()}),h.jsx("span",{className:fl({status:d}),title:r,children:r})]})]}),a&&!s&&!o&&h.jsx(be.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)]"})})]})},vl=A("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"}}),gl=A("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"}}),bl="sr-only peer",$n=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,y=g?e:d,w=M=>{g||f(M.target.checked),a==null||a(M)};return h.jsxs("label",{className:vl({size:s,className:r}),children:[h.jsx("input",{type:"checkbox",className:bl,ref:u,checked:g?e:void 0,defaultChecked:g?void 0:t,onChange:w,disabled:o,...l}),h.jsx("span",{className:gl({checked:!!y,size:s}),children:h.jsx(p.Check,{size:s==="medium"?12:8,strokeWidth:3,className:_("text-white transition-opacity duration-200",y?"opacity-100":"opacity-0")})}),n&&h.jsx(o0,{as:"span",variant:s==="medium"?"small":"x-small",color:"secondary",children:n})]})});$n.displayName="Checkbox";function xl(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 yl=A("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}}),wl=A("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}}),Sl=A("px-3 py-1 text-[0.625rem] font-bold text-[var(--color-gray-600)] uppercase tracking-wider select-none"),kl=A("h-px bg-[var(--color-gray-200)] my-1"),Xn=V.createContext(void 0),jt=()=>{const r=V.useContext(Xn);if(!r)throw new Error("useDropdown must be used within a Dropdown");return r},Hr=({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)},y=()=>{u||l(!1),a==null||a(!1)};return xl(f,y),h.jsx(Xn.Provider,{value:{isOpen:d,toggle:g,close:y},children:h.jsx("div",{ref:f,className:_("relative inline-block text-left",n),...s,children:r})})};Hr.displayName="Dropdown";const Vr=V.forwardRef(({className:r,children:e,onClick:t,...a},n)=>{const{toggle:s,isOpen:o}=jt(),l=u=>{s(),t==null||t(u)};return h.jsx("div",{ref:n,className:_("cursor-pointer inline-block",r),onClick:l,"aria-haspopup":"true","aria-expanded":o,...a,children:e})});Vr.displayName="DropdownTrigger";const _r=V.forwardRef(({className:r,align:e="start",attached:t=!1,children:a,...n},s)=>{const{isOpen:o}=jt();return h.jsx(be.AnimatePresence,{children:o&&h.jsx(be.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:_(yl({align:e,attached:t}),r),...n,children:a})})});_r.displayName="DropdownContent";const Gr=V.forwardRef(({className:r,active:e,variant:t,closeOnSelect:a=!0,children:n,onClick:s,...o},l)=>{const{close:u}=jt(),d=f=>{s==null||s(f),a&&u()};return h.jsx("div",{ref:l,className:_(wl({active:e,variant:t}),r),onClick:d,role:"menuitem",...o,children:n})});Gr.displayName="DropdownItem";const Cl=V.forwardRef(({className:r,children:e,...t},a)=>h.jsx("div",{ref:a,className:_(Sl(),r),...t,children:e}));Cl.displayName="DropdownLabel";const Ml=V.forwardRef(({className:r,animated:e=!1,animationDelay:t=.2,...a},n)=>e?h.jsx("div",{ref:n,className:_("h-px my-1 overflow-hidden",r),...a,children:h.jsx(be.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:_(kl(),r),...a}));Ml.displayName="DropdownSeparator";const zl=A("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"}}),Tl=A("relative w-full",{variants:{size:{medium:"",small:"",tiny:""}},defaultVariants:{size:"medium"}}),ka=A("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"}}),Yn=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:Tl({size:t}),children:[a&&h.jsx("span",{className:ka({status:e,size:t,position:"start"}),children:a}),h.jsx("input",{ref:l,className:_(zl({status:e,size:t}),a&&u[t],n&&d[t],r),disabled:s,...o}),n&&h.jsx("span",{className:ka({status:e,size:t,position:"end"}),children:n})]})});Yn.displayName="Input";const Al=A("flex flex-col items-center justify-center"),Nl=A("relative",{variants:{size:{sm:"w-8 h-8",md:"w-12 h-12",lg:"w-16 h-16"}},defaultVariants:{size:"lg"}}),Dl=A("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"}}),El=A("mt-4 typography-small",{variants:{color:{primary:"text-[var(--color-gray-1000)]",muted:"text-[var(--color-gray-600)]"}},defaultVariants:{color:"muted"}}),Rl=({size:r="lg",color:e="primary",text:t,textColor:a="muted"})=>h.jsxs("div",{className:Al(),children:[h.jsx("div",{className:Nl({size:r}),children:h.jsx("div",{className:Dl({color:e})})}),t&&h.jsx("p",{className:El({color:a}),children:t})]}),Ca=A("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"}}),Ll=A("flex gap-[12px] items-start w-full"),Bl=A("flex flex-col flex-1 min-w-0"),Ma=A("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}}),Il=A("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"}}),jl=A("typography-h4 text-[var(--color-blue-1000)]"),za=A("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"}}),Pl=A("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"}}),Ol=A("p-1 rounded-[4px] text-[var(--color-gray-400)] opacity-0 group-hover:opacity-100 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:{isCopied:{true:"opacity-100",false:""}},defaultVariants:{isCopied:!1}}),Fl=A("flex items-start justify-center shrink-0 pt-[4px]"),ql=A("flex items-center justify-center size-[32px] rounded-full bg-[var(--color-blue-1000)]"),Hl=A("text-[12px] text-[var(--color-gray-600)] mt-[4px]"),Vl=A("flex items-center justify-center"),_l=A("relative overflow-hidden flex items-center gap-[8px] py-[2px] select-none"),Gl=A(["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"]),Ul=A(["relative shrink-0 flex items-center justify-center","text-[var(--color-gray-600)]","animate-signal-rhythm","origin-center"]),Wl=A(["absolute inset-0","bg-[var(--color-blue-200)]","rounded-full","opacity-0","animate-ping-slow","-z-10"]),ut=({onClick:r,icon:e,label:t,className:a,isCopied:n=!1})=>h.jsx("button",{className:_(Ol({isCopied:n}),a),onClick:r,type:"button","aria-label":t,children:h.jsx(e,{size:12})}),$l=()=>{const[r,e]=V.useState(0);return V.useEffect(()=>{const t=setInterval(()=>{e(a=>a+1)},2500);return()=>clearInterval(t)},[]),h.jsx("div",{className:_(Vl()),children:h.jsx(qr,{size:28,colorVariant:"lightTeal",animated:!0,animationDuration:2},r)})},Zn=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,onCopy:g,onCopySuccess:y,onEdit:w,onHelpful:M,onUnhelpful:k,...T},N)=>{const R=V.useRef(null),[B,P]=V.useState(!1),O=f??(e==="user"?d?"center":"right":"left"),Y=async()=>{if(!R.current)return;const I=R.current.innerText;try{navigator.clipboard&&navigator.clipboard.writeText?(await navigator.clipboard.writeText(I),P(!0),g==null||g(),y==null||y(),setTimeout(()=>{P(!1)},2e3)):console.warn("Clipboard API not available")}catch($){console.error("Failed to copy:",$)}},q=I=>{const $=typeof I=="string"?new Date(I):I,ie=new Date().getTime()-$.getTime(),te=Math.floor(ie/6e4);if(te<1)return"Just now";if(te<60)return`${te} min ago`;const ge=Math.floor(te/60);return ge<24?`${ge}h ago`:$.toLocaleDateString()};return e==="loader"||n?h.jsx("div",{ref:N,className:_(Ca({variant:"loader",alignment:"left"}),r),...T,children:h.jsx("div",{className:_(Ma({variant:"loader",isSticky:u})),children:h.jsx($l,{})})}):h.jsx("div",{ref:N,className:_(Ca({variant:e,alignment:O}),"group",r),...T,children:h.jsxs("div",{className:_(Ll()),children:[!o&&e==="assistant"&&h.jsx("div",{className:_(Fl()),children:h.jsx("div",{className:_(ql()),children:h.jsx(Fr,{size:20,colorVariant:"lightTeal"})})}),h.jsxs("div",{className:_(Bl()),children:[h.jsx("div",{className:_(Ma({variant:e,isSticky:u})),children:h.jsx("div",{className:_(Il({variant:e})),ref:R,children:e==="system"?h.jsxs("div",{className:_(_l()),children:[h.jsx("div",{className:_(Gl())}),h.jsxs("div",{className:_(Ul()),children:[h.jsx(p.Activity,{size:16}),h.jsx("div",{className:_(Wl())})]}),h.jsx("span",{className:_(za({variant:e})),children:a})]}):h.jsxs(h.Fragment,{children:[e==="assistant"&&t&&h.jsx("h4",{className:_(jl()),children:t}),h.jsx("div",{className:_(za({variant:e})),children:a})]})})}),l&&s&&h.jsx("div",{className:_(Hl()),children:q(s)}),!u&&(e==="user"||e==="assistant")&&h.jsxs("div",{className:_(Pl({variant:e})),children:[h.jsx(ut,{onClick:Y,icon:B?p.Check:p.Clipboard,label:B?"Copied":"Copy",isCopied:B}),e==="user"&&w&&h.jsx(ut,{onClick:w,icon:p.Edit3,label:"Edit"}),e==="assistant"&&h.jsxs(h.Fragment,{children:[M&&h.jsx(ut,{onClick:M,icon:p.ThumbsUp,label:"Helpful"}),k&&h.jsx(ut,{onClick:k,icon:p.ThumbsDown,label:"Unhelpful"})]})]})]})]})})});Zn.displayName="MessageBubble";const Xl=A("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"}}),Yl=A("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"}}),Zl=A("flex justify-between mb-2 text-[var(--color-gray-800)]",{variants:{size:{small:"text-xs",medium:"text-sm",large:"text-base"}},defaultVariants:{size:"medium"}}),Kn=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:_("w-full",r),role:"progressbar","aria-valuemin":0,"aria-valuemax":t,"aria-valuenow":e,...u,children:[(o||s)&&h.jsxs("div",{className:Zl({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:Xl({size:n}),children:h.jsx("div",{className:Yl({variant:a}),style:{transform:`translateX(-${100-f}%)`}})})]})});Kn.displayName="ProgressBar";const Kl=A(["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}}),Jn=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),y=Number(l),w=Math.min(Math.max((f-g)*100/(y-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:_(Kl({variant:e,animated:t}),r),style:{background:k,...a},...n})});Jn.displayName="RangeInput";const Jl=A("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"}}),Ql=A("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"}}),e1=A("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"}}),Qn=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,y=w=>{o&&(w.key==="Enter"||w.key===" ")&&(w.preventDefault(),o())};return h.jsxs("div",{ref:d,className:_(Jl({type:f,variant:g}),r),role:"button",tabIndex:0,"aria-label":t,onClick:o,onKeyDown:y,...u,children:[e&&h.jsx("div",{className:_(Ql({type:f,variant:g})),children:e}),(s!=="brand"||!a)&&h.jsx("span",{className:_(e1({type:f,variant:g})),children:t})]})});Qn.displayName="SidebarItem";const t1=A("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"}}),r1=A("w-4 h-4 rounded-full object-cover shrink-0"),Ta=A("flex items-center justify-center shrink-0"),V0=V.forwardRef(({className:r,variant:e="default",startIcon:t,endIcon:a,avatarSrc:n,children:s,...o},l)=>h.jsxs("div",{ref:l,className:_(t1({variant:e}),r),...o,children:[n&&h.jsx("img",{src:n,alt:"avatar",className:r1()}),t&&h.jsx("span",{className:Ta(),children:t}),h.jsx(o0,{variant:"tag",color:"inherit",className:"whitespace-nowrap",children:s}),a&&h.jsx("span",{className:Ta(),children:a})]}));V0.displayName="Tag";const a1=A("inline-flex h-8 items-center justify-start rounded-none bg-transparent p-0 text-muted-foreground w-full relative"),n1=A("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"}}),s1=A("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2"),o1=A("absolute bottom-0 left-0 right-0 h-[2px] bg-[var(--color-blue-1000)]"),i1=A("flex items-center gap-[2px]"),Aa=A("group-data-[state=active]:text-[var(--color-blue-1000)]"),l1=D0.Root,es=z.forwardRef(({className:r,...e},t)=>h.jsx(D0.List,{ref:t,className:_(a1(),r),...e}));es.displayName=D0.List.displayName;const ts=z.forwardRef(({className:r,children:e,errorCount:t,configurationCount:a,...n},s)=>{const[o,l]=z.useState(!1),u=z.useRef(null);z.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=z.useCallback(f=>{u.current=f,typeof s=="function"?s(f):s&&(s.current=f)},[s]);return h.jsxs(D0.Trigger,{ref:d,className:_(n1(),r),...n,children:[e,(a!==void 0||t!==void 0)&&h.jsxs("div",{className:i1(),children:[a!==void 0&&h.jsx(V0,{variant:"indicator",startIcon:h.jsx(p.Settings,{size:10,className:"text-[#15B1CD]"}),className:Aa(),children:a}),t!==void 0&&h.jsx(V0,{variant:"indicator",startIcon:h.jsx(p.TriangleAlert,{size:10,className:"text-[#FB6060]"}),className:Aa(),children:t})]}),h.jsx(be.motion.div,{className:o1(),initial:!1,animate:{scaleX:o?1:0,opacity:o?1:0},transition:{duration:.3,ease:"easeInOut"},style:{originX:0}})]})});ts.displayName=D0.Trigger.displayName;const rs=z.forwardRef(({className:r,...e},t)=>h.jsx(D0.Content,{ref:t,className:_(s1(),r),...e,asChild:!0,children:h.jsx(be.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})}));rs.displayName=D0.Content.displayName;const c1=A("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"}}),u1=A("relative w-full",{variants:{size:{medium:"",small:"",tiny:""}},defaultVariants:{size:"medium"}}),as=V.forwardRef(({className:r,status:e="default",size:t="medium",resize:a="vertical",disabled:n,...s},o)=>h.jsx("div",{className:u1({size:t}),children:h.jsx("textarea",{ref:o,className:_(c1({status:e,size:t,resize:a}),r),disabled:n,...s})}));as.displayName="TextArea";const d1=A("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"}}),m1=A("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"}}),h1=(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),y=Math.abs(n),w=Math.abs(s),M=Math.abs(o),k=Math.abs(l),T=Math.abs(u),N=Math.abs(d),R=(B,P)=>{const O=B===1?"":"s";return f?`in ${B} ${P}${O}`:`${B} ${P}${O} ago`};return g<60?"just now":y<60?R(y,"minute"):w<24?R(w,"hour"):M===1?f?"tomorrow":"yesterday":M<7?R(M,"day"):k<4?R(k,"week"):T<12?R(T,"month"):R(N,"year")},f1=(r,e,t)=>{switch(e){case"relative":return h1(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)}},p1=r=>r instanceof Date?r:typeof r=="number"?new Date(r):new Date(r),ns=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(()=>p1(e),[e]),f=V.useMemo(()=>f1(d,t,o),[d,t,o]),g=V.useMemo(()=>d.toISOString(),[d]),y=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:_(d1({size:a,variant:n}),r),...l,children:[s&&h.jsx("span",{className:m1({size:a}),children:h.jsx(p.ClockHistory,{size:w,color:y})}),f]})});ns.displayName="Timestamp";const v1=A("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"}}),g1=A("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"}}),b1=A("flex items-center gap-1 flex-1"),x1=A("font-bold text-[var(--color-blue-1000)] text-[0.75rem] leading-normal"),y1=A("font-normal text-[var(--color-blue-1000)] text-[0.75rem] leading-normal"),w1=A("flex items-center gap-2 shrink-0"),S1=A("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"}}),k1=A("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"),C1={info:p.Info,success:p.CheckCircle,warning:p.TriangleAlert,error:p.AlertCircle,prompt:p.Sparks},M1={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)"},T0=({id:r,variant:e="info",title:t,description:a,icon:n,action:s,secondaryAction:o,onClose:l})=>{const u=C1[e],d=M1[e],f=()=>{l&&l(),r&&n0.toast.dismiss(r)},g=w=>M=>{w(M),r&&n0.toast.dismiss(r)},y=()=>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:_(v1({variant:e})),role:"alert",children:[h.jsx("div",{className:g1({variant:e}),children:y()}),h.jsxs("div",{className:b1(),children:[h.jsx("span",{className:x1(),children:t}),a&&h.jsx("span",{className:y1(),children:a})]}),h.jsx("div",{className:S1({variant:e})}),h.jsxs("div",{className:w1(),children:[o&&h.jsx(H0,{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(H0,{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:k1(),"aria-label":"Close",children:h.jsx(p.X,{size:16})})]})]})},z1=({position:r="bottom-right",offset:e=24,gap:t=8,width:a,...n})=>h.jsx(n0.Toaster,{position:r,offset:e,gap:t,toastOptions:{unstyled:!0,classNames:{toast:_("bg-transparent p-0",a?"":"w-auto")},style:a?{width:typeof a=="number"?`${a}px`:a}:void 0},...n}),T1={success:(r,e,t)=>n0.toast.custom(a=>h.jsx(T0,{id:a,variant:"success",title:r,description:e,action:t})),error:(r,e,t)=>n0.toast.custom(a=>h.jsx(T0,{id:a,variant:"error",title:r,description:e,action:t})),warning:(r,e,t)=>n0.toast.custom(a=>h.jsx(T0,{id:a,variant:"warning",title:r,description:e,action:t})),info:(r,e,t)=>n0.toast.custom(a=>h.jsx(T0,{id:a,variant:"info",title:r,description:e,action:t})),prompt:(r,e,t,a)=>n0.toast.custom(n=>h.jsx(T0,{id:n,variant:"prompt",title:r,description:e,action:t,secondaryAction:a})),custom:r=>n0.toast.custom(e=>h.jsx(T0,{id:e,...r}))},A1=A("flex items-center gap-3"),N1=A("text-[var(--color-gray-1000)] font-medium select-none"),D1=A("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}}),E1=A("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}}),ss=V.forwardRef(({enabled:r,onChange:e,label:t,className:a,disabled:n,...s},o)=>h.jsxs("div",{className:_(A1(),a),children:[t&&h.jsx(o0,{variant:"small",className:N1(),children:t}),h.jsx("button",{ref:o,type:"button",role:"switch","aria-checked":r,disabled:n,onClick:()=>!n&&e(!r),className:D1({enabled:r}),...s,children:h.jsx("span",{className:E1({enabled:r})})})]}));ss.displayName="Toggle";const R1=A("flex items-center justify-between w-full gap-2 min-h-[20px]"),L1=A("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"}}),B1={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)"},os=V.forwardRef(({className:r,status:e="neutral",message:t,...a},n)=>{const s=e==="loading"?"info":e,o=B1[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:_(R1(),r),...a,children:[h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx(Or,{variant:s,size:"small"}),h.jsx("span",{className:L1({status:e}),children:t})]}),h.jsx("div",{className:"w-4 h-4 flex items-center justify-center",children:l()})]})});os.displayName="StatusMessage";const I1=A("flex items-center justify-between w-full gap-2 min-h-[20px]"),j1=A("flex items-center gap-2"),P1=A("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"}}),Na=A("w-4 h-4 flex items-center justify-center shrink-0"),O1={running:"var(--color-gray-800)",completed:"var(--color-gray-800)",stopped:"var(--color-blue-800)"},F1={running:"var(--color-gray-800)",completed:"var(--color-green-1000)",stopped:"var(--color-blue-800)"},is=V.forwardRef(({className:r,status:e="running",message:t,...a},n)=>{const s=O1[e],o=F1[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:_(I1(),r),...a,children:[h.jsxs("div",{className:j1(),children:[h.jsx("div",{className:Na(),children:h.jsx(p.Hexagon,{size:16,color:s})}),h.jsx("span",{className:P1({status:e}),children:t})]}),h.jsx("div",{className:Na(),children:l()})]})});is.displayName="AutopilotAction";const q1=A("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"}}),H1=A("",{variants:{variant:{default:"fill-[var(--color-blue-1000)]",light:"fill-[var(--color-gray-50)]"}},defaultVariants:{variant:"default"}}),ls=({delayDuration:r=0,...e})=>h.jsx(A0.Provider,{delayDuration:r,...e}),cs=A0.Root,us=A0.Trigger,Ur=z.forwardRef(({className:r,sideOffset:e=4,children:t,variant:a,...n},s)=>h.jsx(A0.Portal,{children:h.jsx(A0.Content,{ref:s,sideOffset:e,asChild:!0,className:_(q1({variant:a}),r),...n,children:h.jsxs(be.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(o0,{variant:"x-small",color:"inherit",className:"font-normal relative z-10",children:t}),h.jsx(A0.Arrow,{className:H1({variant:a})})]})})}));Ur.displayName=A0.Content.displayName;const V1=A("relative flex flex-col w-full"),_1=A("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}}),G1=A("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"}}),U1=A("box-border flex flex-col gap-[1.25rem] items-start justify-center w-full rounded-[inherit]"),W1=A("flex flex-col gap-5 w-full"),$1=A("flex flex-wrap gap-[8px] items-start w-full"),X1=A("flex items-start justify-between w-full max-h-[200px] overflow-y-auto"),Y1=A("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"}}),Z1=A("flex items-center justify-between w-full"),K1=A("flex gap-[8px] items-center"),J1=A("flex items-center gap-2"),Jt=A("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"}}),Q1=A("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}}),ec=A("animate-spin"),tc=A("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)]"),rc=A("flex items-center justify-center"),ac=A("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"),nc=A("min-w-[120px]"),sc=A("py-1.5 px-2"),oc=A("absolute -inset-[2px] rounded-[18px] z-0 pointer-events-none"),Da=A("absolute inset-0 rounded-[18px] w-full h-full",{variants:{layer:{base:"opacity-40",blur:"blur-xl opacity-20"}},defaultVariants:{layer:"base"}}),ds=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,onChange:y,onSend:w,onFileAdd:M,onFileRemove:k,onModelChange:T,isUsingMagic:N=!1},R)=>{var Oe,Fe;const[B,P]=V.useState(""),[O,Y]=V.useState(!1),[q,I]=V.useState(!1),$=V.useRef(null),me=V.useRef(null),ie=e!==void 0?e:B,te=ie.trim().length>0,ge=t.length>0,he=O?"dragOver":ge?"withFiles":q?"active":"default",pe=G=>{y?y(G):P(G)},Me=G=>{pe(G.target.value),X()},X=V.useCallback(()=>{const G=$.current;G&&(G.style.height="auto",G.style.height=`${Math.min(G.scrollHeight,200)}px`)},[]);V.useEffect(()=>{X()},[ie,X]);const t0=V.useCallback(()=>{a||!te&&!ge||w&&(w(ie,t),pe(""),$.current&&($.current.style.height="auto"))},[a,te,ge,w,ie,t]),Re=G=>{G.key==="Enter"&&!G.shiftKey&&(G.preventDefault(),t0())},Le=G=>{const qe=Array.from(G.target.files||[]);qe.length>0&&M&&M(qe),me.current&&(me.current.value="")},Ce=()=>{var G;(G=me.current)==null||G.click()},ne=V.useRef(0),we=G=>{G.preventDefault(),G.stopPropagation(),ne.current+=1,ne.current===1&&Y(!0)},Be=G=>{G.preventDefault(),G.stopPropagation(),ne.current-=1,ne.current===0&&Y(!1)},k0=G=>{G.preventDefault(),G.stopPropagation()},se=G=>{G.preventDefault(),G.stopPropagation(),ne.current=0,Y(!1);const qe=Array.from(G.dataTransfer.files);qe.length>0&&M&&M(qe)},Ge=G=>{k&&k(G)};return h.jsxs("div",{ref:R,className:_(V1(),o),children:[h.jsx(be.AnimatePresence,{children:N&&h.jsxs(be.motion.div,{initial:{opacity:0,scale:.98},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.98},transition:{duration:1.2,ease:"easeInOut"},className:oc(),children:[h.jsx("div",{className:Da({layer:"base"}),children:h.jsx(be.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:Da({layer:"blur"}),children:h.jsx(be.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:_1({state:he,variant:l,isMagicActive:N}),onDragEnter:we,onDragLeave:Be,onDragOver:k0,onDrop:se,children:[h.jsx("div",{className:G1({state:he,variant:l}),children:h.jsx("div",{className:U1(),children:h.jsxs("div",{className:W1(),children:[ge&&h.jsx("div",{className:$1(),children:t.map(G=>h.jsx(Wn,{filename:G.filename,status:G.status,progress:G.progress,onDelete:()=>Ge(G.id)},G.id))}),h.jsx("div",{className:X1(),children:h.jsx("textarea",{ref:$,className:Y1({state:he}),placeholder:r,value:ie,disabled:a||g,onChange:Me,onKeyDown:Re,onFocus:()=>I(!0),onBlur:()=>I(!1),rows:2,maxLength:1e4,"aria-label":"Chat message input"})}),h.jsxs("div",{className:Z1(),children:[h.jsxs("div",{className:K1(),children:[h.jsx("button",{type:"button",onClick:Ce,className:Jt({variant:"add"}),disabled:a,"aria-label":"Add file",tabIndex:0,children:h.jsx(p.Plus,{size:16})}),u.map(G=>h.jsx(V.Fragment,{children:G.tooltip?h.jsx(ls,{children:h.jsxs(cs,{children:[h.jsx(us,{asChild:!0,children:h.jsx("button",{type:"button",onClick:G.onClick,className:Jt(),disabled:a||G.disabled,"aria-label":G.label,tabIndex:0,children:G.icon})}),h.jsx(Ur,{variant:"light",children:G.tooltip})]})}):h.jsx("button",{type:"button",onClick:G.onClick,className:Jt(),disabled:a||G.disabled,"aria-label":G.label,tabIndex:0,children:G.icon})},`--action-${G.id}`))]}),h.jsxs("div",{className:J1(),children:[d.length>0&&h.jsxs(Hr,{children:[h.jsx(Vr,{children:h.jsxs("button",{type:"button",className:ac(),disabled:a||g,"aria-label":"Select AI model",children:[h.jsx(o0,{variant:"tiny",color:"inherit",as:"span",className:a||g?"opacity-50":void 0,children:((Oe=d.find(G=>G.id===f))==null?void 0:Oe.name)||((Fe=d[0])==null?void 0:Fe.name)||"Select model"}),h.jsx(p.ChevronDown,{size:10,color:"currentColor"})]})}),h.jsx(_r,{align:"end",className:nc(),children:d.map(G=>h.jsx(Gr,{active:G.id===f,onClick:()=>T==null?void 0:T(G.id),className:sc(),children:h.jsx(o0,{variant:"tiny",color:"inherit",as:"span",children:G.name})},G.id))})]}),h.jsx("button",{type:"button",onClick:t0,className:Q1({disabled:a||g||!te&&!ge}),disabled:a||g||!te&&!ge,"aria-label":g?"Loading":"Send message",tabIndex:0,children:g?h.jsx(p.Loader,{size:16,color:"currentColor",className:ec()}):h.jsx(p.ArrowUp,{size:16,strokeWidth:2.5,color:"currentColor"})})]})]})]})})}),h.jsx(be.AnimatePresence,{children:O&&h.jsxs(be.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:tc(),children:[h.jsx("div",{className:rc(),children:h.jsx(p.Uploadfile,{size:32,color:"var(--color-gray-1000)"})}),h.jsx(o0,{variant:"small",weight:"bold",color:"primary",className:"text-center",children:"Drop your files here"}),h.jsxs(o0,{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:me,type:"file",multiple:!0,onChange:Le,className:"hidden","aria-hidden":"true"})]})]})});ds.displayName="ChatInput";const ic=A("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)]"),lc=A("flex items-center gap-[12px] h-[24px]"),cc=A("flex items-center gap-[12px] h-[24px] rounded-[8px]"),Ea=A("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"),uc=A("flex items-center gap-[8px]"),dc=A("flex items-center"),ms=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:_(ic(),r),...l,children:[h.jsx(Gn,{items:e,size:"medium"}),h.jsx("div",{className:lc(),children:h.jsxs("div",{className:cc(),children:[(t.length>0||o>0)&&h.jsxs("div",{className:uc(),children:[t.map(d=>h.jsx(V0,{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(V0,{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:dc(),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(Pr,{initials:d.name,src:d.src,alt:d.name,className:"size-[24px] text-[10px]"})},d.id))})}),h.jsx("button",{type:"button",onClick:n,className:Ea(),"aria-label":"Add tag",children:h.jsx(p.TagPlus,{size:16})}),h.jsx("button",{type:"button",onClick:s,className:Ea(),"aria-label":"Add collaborator",children:h.jsx(p.UserPlus,{size:16})})]})})]}));ms.displayName="ConversationHeader";function b0(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 Ra(r,e){if(typeof r=="function")return r(e);r!=null&&(r.current=e)}function hs(...r){return e=>{let t=!1;const a=r.map(n=>{const s=Ra(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():Ra(r[n],null)}}}}function E0(...r){return z.useCallback(hs(...r),r)}function mc(r,e){const t=z.createContext(e),a=s=>{const{children:o,...l}=s,u=z.useMemo(()=>l,Object.values(l));return h.jsx(t.Provider,{value:u,children:o})};a.displayName=r+"Provider";function n(s){const o=z.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 hc(r,e=[]){let t=[];function a(s,o){const l=z.createContext(o),u=t.length;t=[...t,o];const d=g=>{var N;const{scope:y,children:w,...M}=g,k=((N=y==null?void 0:y[r])==null?void 0:N[u])||l,T=z.useMemo(()=>M,Object.values(M));return h.jsx(k.Provider,{value:T,children:w})};d.displayName=s+"Provider";function f(g,y){var k;const w=((k=y==null?void 0:y[r])==null?void 0:k[u])||l,M=z.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=>z.createContext(o));return function(l){const u=(l==null?void 0:l[r])||s;return z.useMemo(()=>({[`__scope${r}`]:{...l,[r]:u}}),[l,u])}};return n.scopeName=r,[a,fc(n,...e)]}function fc(...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 z.useMemo(()=>({[`__scope${e.scopeName}`]:o}),[o])}};return t.scopeName=e.scopeName,t}var K0=globalThis!=null&&globalThis.document?z.useLayoutEffect:()=>{},pc=z[" useId ".trim().toString()]||(()=>{}),vc=0;function Qt(r){const[e,t]=z.useState(pc());return K0(()=>{t(a=>a??String(vc++))},[r]),r||(e?`radix-${e}`:"")}var gc=z[" useInsertionEffect ".trim().toString()]||K0;function bc({prop:r,defaultProp:e,onChange:t=()=>{},caller:a}){const[n,s,o]=xc({defaultProp:e,onChange:t}),l=r!==void 0,u=l?r:n;{const f=z.useRef(r!==void 0);z.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=z.useCallback(f=>{var g;if(l){const y=yc(f)?f(r):f;y!==r&&((g=o.current)==null||g.call(o,y))}else s(f)},[l,r,s,o]);return[u,d]}function xc({defaultProp:r,onChange:e}){const[t,a]=z.useState(r),n=z.useRef(t),s=z.useRef(e);return gc(()=>{s.current=e},[e]),z.useEffect(()=>{var o;n.current!==t&&((o=s.current)==null||o.call(s,t),n.current=t)},[t,n]),[t,a,s]}function yc(r){return typeof r=="function"}function fs(r){const e=wc(r),t=z.forwardRef((a,n)=>{const{children:s,...o}=a,l=z.Children.toArray(s),u=l.find(kc);if(u){const d=u.props.children,f=l.map(g=>g===u?z.Children.count(d)>1?z.Children.only(null):z.isValidElement(d)?d.props.children:null:g);return h.jsx(e,{...o,ref:n,children:z.isValidElement(d)?z.cloneElement(d,void 0,f):null})}return h.jsx(e,{...o,ref:n,children:s})});return t.displayName=`${r}.Slot`,t}function wc(r){const e=z.forwardRef((t,a)=>{const{children:n,...s}=t;if(z.isValidElement(n)){const o=Mc(n),l=Cc(s,n.props);return n.type!==z.Fragment&&(l.ref=a?hs(a,o):o),z.cloneElement(n,l)}return z.Children.count(n)>1?z.Children.only(null):null});return e.displayName=`${r}.SlotClone`,e}var Sc=Symbol("radix.slottable");function kc(r){return z.isValidElement(r)&&typeof r.type=="function"&&"__radixId"in r.type&&r.type.__radixId===Sc}function Cc(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 Mc(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 zc=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ke=zc.reduce((r,e)=>{const t=fs(`Primitive.${e}`),a=z.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 Tc(r,e){r&&Xo.flushSync(()=>r.dispatchEvent(e))}function J0(r){const e=z.useRef(r);return z.useEffect(()=>{e.current=r}),z.useMemo(()=>(...t)=>{var a;return(a=e.current)==null?void 0:a.call(e,...t)},[])}function Ac(r,e=globalThis==null?void 0:globalThis.document){const t=J0(r);z.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 Nc="DismissableLayer",Mr="dismissableLayer.update",Dc="dismissableLayer.pointerDownOutside",Ec="dismissableLayer.focusOutside",La,ps=z.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),vs=z.forwardRef((r,e)=>{const{disableOutsidePointerEvents:t=!1,onEscapeKeyDown:a,onPointerDownOutside:n,onFocusOutside:s,onInteractOutside:o,onDismiss:l,...u}=r,d=z.useContext(ps),[f,g]=z.useState(null),y=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,w]=z.useState({}),M=E0(e,q=>g(q)),k=Array.from(d.layers),[T]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),N=k.indexOf(T),R=f?k.indexOf(f):-1,B=d.layersWithOutsidePointerEventsDisabled.size>0,P=R>=N,O=Bc(q=>{const I=q.target,$=[...d.branches].some(me=>me.contains(I));!P||$||(n==null||n(q),o==null||o(q),q.defaultPrevented||l==null||l())},y),Y=Ic(q=>{const I=q.target;[...d.branches].some(me=>me.contains(I))||(s==null||s(q),o==null||o(q),q.defaultPrevented||l==null||l())},y);return Ac(q=>{R===d.layers.size-1&&(a==null||a(q),!q.defaultPrevented&&l&&(q.preventDefault(),l()))},y),z.useEffect(()=>{if(f)return t&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(La=y.body.style.pointerEvents,y.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),Ba(),()=>{t&&d.layersWithOutsidePointerEventsDisabled.size===1&&(y.body.style.pointerEvents=La)}},[f,y,t,d]),z.useEffect(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),Ba())},[f,d]),z.useEffect(()=>{const q=()=>w({});return document.addEventListener(Mr,q),()=>document.removeEventListener(Mr,q)},[]),h.jsx(Ke.div,{...u,ref:M,style:{pointerEvents:B?P?"auto":"none":void 0,...r.style},onFocusCapture:b0(r.onFocusCapture,Y.onFocusCapture),onBlurCapture:b0(r.onBlurCapture,Y.onBlurCapture),onPointerDownCapture:b0(r.onPointerDownCapture,O.onPointerDownCapture)})});vs.displayName=Nc;var Rc="DismissableLayerBranch",Lc=z.forwardRef((r,e)=>{const t=z.useContext(ps),a=z.useRef(null),n=E0(e,a);return z.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})});Lc.displayName=Rc;function Bc(r,e=globalThis==null?void 0:globalThis.document){const t=J0(r),a=z.useRef(!1),n=z.useRef(()=>{});return z.useEffect(()=>{const s=l=>{if(l.target&&!a.current){let u=function(){gs(Dc,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 Ic(r,e=globalThis==null?void 0:globalThis.document){const t=J0(r),a=z.useRef(!1);return z.useEffect(()=>{const n=s=>{s.target&&!a.current&&gs(Ec,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 Ba(){const r=new CustomEvent(Mr);document.dispatchEvent(r)}function gs(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?Tc(n,s):n.dispatchEvent(s)}var er="focusScope.autoFocusOnMount",tr="focusScope.autoFocusOnUnmount",Ia={bubbles:!1,cancelable:!0},jc="FocusScope",bs=z.forwardRef((r,e)=>{const{loop:t=!1,trapped:a=!1,onMountAutoFocus:n,onUnmountAutoFocus:s,...o}=r,[l,u]=z.useState(null),d=J0(n),f=J0(s),g=z.useRef(null),y=E0(e,k=>u(k)),w=z.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;z.useEffect(()=>{if(a){let k=function(B){if(w.paused||!l)return;const P=B.target;l.contains(P)?g.current=P:v0(g.current,{select:!0})},T=function(B){if(w.paused||!l)return;const P=B.relatedTarget;P!==null&&(l.contains(P)||v0(g.current,{select:!0}))},N=function(B){if(document.activeElement===document.body)for(const O of B)O.removedNodes.length>0&&v0(l)};document.addEventListener("focusin",k),document.addEventListener("focusout",T);const R=new MutationObserver(N);return l&&R.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",k),document.removeEventListener("focusout",T),R.disconnect()}}},[a,l,w.paused]),z.useEffect(()=>{if(l){Pa.add(w);const k=document.activeElement;if(!l.contains(k)){const N=new CustomEvent(er,Ia);l.addEventListener(er,d),l.dispatchEvent(N),N.defaultPrevented||(Pc(Vc(xs(l)),{select:!0}),document.activeElement===k&&v0(l))}return()=>{l.removeEventListener(er,d),setTimeout(()=>{const N=new CustomEvent(tr,Ia);l.addEventListener(tr,f),l.dispatchEvent(N),N.defaultPrevented||v0(k??document.body,{select:!0}),l.removeEventListener(tr,f),Pa.remove(w)},0)}}},[l,d,f,w]);const M=z.useCallback(k=>{if(!t&&!a||w.paused)return;const T=k.key==="Tab"&&!k.altKey&&!k.ctrlKey&&!k.metaKey,N=document.activeElement;if(T&&N){const R=k.currentTarget,[B,P]=Oc(R);B&&P?!k.shiftKey&&N===P?(k.preventDefault(),t&&v0(B,{select:!0})):k.shiftKey&&N===B&&(k.preventDefault(),t&&v0(P,{select:!0})):N===R&&k.preventDefault()}},[t,a,w.paused]);return h.jsx(Ke.div,{tabIndex:-1,...o,ref:y,onKeyDown:M})});bs.displayName=jc;function Pc(r,{select:e=!1}={}){const t=document.activeElement;for(const a of r)if(v0(a,{select:e}),document.activeElement!==t)return}function Oc(r){const e=xs(r),t=ja(e,r),a=ja(e.reverse(),r);return[t,a]}function xs(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 ja(r,e){for(const t of r)if(!Fc(t,{upTo:e}))return t}function Fc(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 qc(r){return r instanceof HTMLInputElement&&"select"in r}function v0(r,{select:e=!1}={}){if(r&&r.focus){const t=document.activeElement;r.focus({preventScroll:!0}),r!==t&&qc(r)&&e&&r.select()}}var Pa=Hc();function Hc(){let r=[];return{add(e){const t=r[0];e!==t&&(t==null||t.pause()),r=Oa(r,e),r.unshift(e)},remove(e){var t;r=Oa(r,e),(t=r[0])==null||t.resume()}}}function Oa(r,e){const t=[...r],a=t.indexOf(e);return a!==-1&&t.splice(a,1),t}function Vc(r){return r.filter(e=>e.tagName!=="A")}var _c="Portal",ys=z.forwardRef((r,e)=>{var l;const{container:t,...a}=r,[n,s]=z.useState(!1);K0(()=>s(!0),[]);const o=t||n&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return o?Nn.createPortal(h.jsx(Ke.div,{...a,ref:e}),o):null});ys.displayName=_c;function Gc(r,e){return z.useReducer((t,a)=>e[t][a]??t,r)}var Pt=r=>{const{present:e,children:t}=r,a=Uc(e),n=typeof t=="function"?t({present:a.isPresent}):z.Children.only(t),s=E0(a.ref,Wc(n));return typeof t=="function"||a.isPresent?z.cloneElement(n,{ref:s}):null};Pt.displayName="Presence";function Uc(r){const[e,t]=z.useState(),a=z.useRef(null),n=z.useRef(r),s=z.useRef("none"),o=r?"mounted":"unmounted",[l,u]=Gc(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return z.useEffect(()=>{const d=dt(a.current);s.current=l==="mounted"?d:"none"},[l]),K0(()=>{const d=a.current,f=n.current;if(f!==r){const y=s.current,w=dt(d);r?u("MOUNT"):w==="none"||(d==null?void 0:d.display)==="none"?u("UNMOUNT"):u(f&&y!==w?"ANIMATION_OUT":"UNMOUNT"),n.current=r}},[r,u]),K0(()=>{if(e){let d;const f=e.ownerDocument.defaultView??window,g=w=>{const k=dt(a.current).includes(CSS.escape(w.animationName));if(w.target===e&&k&&(u("ANIMATION_END"),!n.current)){const T=e.style.animationFillMode;e.style.animationFillMode="forwards",d=f.setTimeout(()=>{e.style.animationFillMode==="forwards"&&(e.style.animationFillMode=T)})}},y=w=>{w.target===e&&(s.current=dt(a.current))};return e.addEventListener("animationstart",y),e.addEventListener("animationcancel",g),e.addEventListener("animationend",g),()=>{f.clearTimeout(d),e.removeEventListener("animationstart",y),e.removeEventListener("animationcancel",g),e.removeEventListener("animationend",g)}}else u("ANIMATION_END")},[e,u]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:z.useCallback(d=>{a.current=d?getComputedStyle(d):null,t(d)},[])}}function dt(r){return(r==null?void 0:r.animationName)||"none"}function Wc(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 rr=0;function $c(){z.useEffect(()=>{const r=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",r[0]??Fa()),document.body.insertAdjacentElement("beforeend",r[1]??Fa()),rr++,()=>{rr===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),rr--}},[])}function Fa(){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 ws(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 Xc(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 Mt="right-scroll-bar-position",zt="width-before-scroll-bar",Yc="with-scroll-bars-hidden",Zc="--removed-body-scroll-bar-size";function ar(r,e){return typeof r=="function"?r(e):r&&(r.current=e),r}function Kc(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 Jc=typeof window<"u"?z.useLayoutEffect:z.useEffect,qa=new WeakMap;function Qc(r,e){var t=Kc(null,function(a){return r.forEach(function(n){return ar(n,a)})});return Jc(function(){var a=qa.get(t);if(a){var n=new Set(a),s=new Set(r),o=t.current;n.forEach(function(l){s.has(l)||ar(l,null)}),s.forEach(function(l){n.has(l)||ar(l,o)})}qa.set(t,r)},[r]),t}function eu(r){return r}function tu(r,e){e===void 0&&(e=eu);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 ru(r){r===void 0&&(r={});var e=tu(null);return e.options=Xe({async:!0,ssr:!1},r),e}var Ss=function(r){var e=r.sideCar,t=ws(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 z.createElement(a,Xe({},t))};Ss.isSideCarExport=!0;function au(r,e){return r.useMedium(e),Ss}var ks=ru(),nr=function(){},Ot=z.forwardRef(function(r,e){var t=z.useRef(null),a=z.useState({onScrollCapture:nr,onWheelCapture:nr,onTouchMoveCapture:nr}),n=a[0],s=a[1],o=r.forwardProps,l=r.children,u=r.className,d=r.removeScrollBar,f=r.enabled,g=r.shards,y=r.sideCar,w=r.noRelative,M=r.noIsolation,k=r.inert,T=r.allowPinchZoom,N=r.as,R=N===void 0?"div":N,B=r.gapMode,P=ws(r,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),O=y,Y=Qc([t,e]),q=Xe(Xe({},P),n);return z.createElement(z.Fragment,null,f&&z.createElement(O,{sideCar:ks,removeScrollBar:d,shards:g,noRelative:w,noIsolation:M,inert:k,setCallbacks:s,allowPinchZoom:!!T,lockRef:t,gapMode:B}),o?z.cloneElement(z.Children.only(l),Xe(Xe({},q),{ref:Y})):z.createElement(R,Xe({},q,{className:u,ref:Y}),l))});Ot.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Ot.classNames={fullWidth:zt,zeroRight:Mt};var nu=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function su(){if(!document)return null;var r=document.createElement("style");r.type="text/css";var e=nu();return e&&r.setAttribute("nonce",e),r}function ou(r,e){r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}function iu(r){var e=document.head||document.getElementsByTagName("head")[0];e.appendChild(r)}var lu=function(){var r=0,e=null;return{add:function(t){r==0&&(e=su())&&(ou(e,t),iu(e)),r++},remove:function(){r--,!r&&e&&(e.parentNode&&e.parentNode.removeChild(e),e=null)}}},cu=function(){var r=lu();return function(e,t){z.useEffect(function(){return r.add(e),function(){r.remove()}},[e&&t])}},Cs=function(){var r=cu(),e=function(t){var a=t.styles,n=t.dynamic;return r(a,n),null};return e},uu={left:0,top:0,right:0,gap:0},sr=function(r){return parseInt(r||"",10)||0},du=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[sr(t),sr(a),sr(n)]},mu=function(r){if(r===void 0&&(r="margin"),typeof window>"u")return uu;var e=du(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])}},hu=Cs(),F0="data-scroll-locked",fu=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(Yc,` {
28
28
  overflow: hidden `).concat(a,`;
29
29
  padding-right: `).concat(l,"px ").concat(a,`;
30
30
  }
@@ -58,16 +58,16 @@
58
58
  }
59
59
 
60
60
  body[`).concat(F0,`] {
61
- `).concat(_c,": ").concat(l,`px;
61
+ `).concat(Zc,": ").concat(l,`px;
62
62
  }
63
- `)},qa=function(){var r=parseInt(document.body.getAttribute(F0)||"0",10);return isFinite(r)?r:0},lu=function(){z.useEffect(function(){return document.body.setAttribute(F0,(qa()+1).toString()),function(){var r=qa()-1;r<=0?document.body.removeAttribute(F0):document.body.setAttribute(F0,r.toString())}},[])},cu=function(r){var e=r.noRelative,t=r.noImportant,a=r.gapMode,n=a===void 0?"margin":a;lu();var s=z.useMemo(function(){return su(n)},[n]);return z.createElement(ou,{styles:iu(s,!e,n,t?"":"!important")})},zr=!1;if(typeof window<"u")try{var mt=Object.defineProperty({},"passive",{get:function(){return zr=!0,!0}});window.addEventListener("test",mt,mt),window.removeEventListener("test",mt,mt)}catch{zr=!1}var B0=zr?{passive:!1}:!1,uu=function(r){return r.tagName==="TEXTAREA"},ks=function(r,e){if(!(r instanceof Element))return!1;var t=window.getComputedStyle(r);return t[e]!=="hidden"&&!(t.overflowY===t.overflowX&&!uu(r)&&t[e]==="visible")},du=function(r){return ks(r,"overflowY")},mu=function(r){return ks(r,"overflowX")},Ha=function(r,e){var t=e.ownerDocument,a=e;do{typeof ShadowRoot<"u"&&a instanceof ShadowRoot&&(a=a.host);var n=Cs(r,a);if(n){var s=Ms(r,a),o=s[1],l=s[2];if(o>l)return!0}a=a.parentNode}while(a&&a!==t.body);return!1},hu=function(r){var e=r.scrollTop,t=r.scrollHeight,a=r.clientHeight;return[e,t,a]},fu=function(r){var e=r.scrollLeft,t=r.scrollWidth,a=r.clientWidth;return[e,t,a]},Cs=function(r,e){return r==="v"?du(e):mu(e)},Ms=function(r,e){return r==="v"?hu(e):fu(e)},pu=function(r,e){return r==="h"&&e==="rtl"?-1:1},vu=function(r,e,t,a,n){var s=pu(r,window.getComputedStyle(e).direction),o=s*a,l=t.target,u=e.contains(l),d=!1,h=o>0,g=0,x=0;do{if(!l)break;var w=Ms(r,l),M=w[0],k=w[1],T=w[2],N=k-T-s*M;(M||N)&&Cs(r,l)&&(g+=N,x+=M);var R=l.parentNode;l=R&&R.nodeType===Node.DOCUMENT_FRAGMENT_NODE?R.host:R}while(!u&&l!==document.body||u&&(e.contains(l)||e===l));return(h&&Math.abs(g)<1||!h&&Math.abs(x)<1)&&(d=!0),d},ht=function(r){return"changedTouches"in r?[r.changedTouches[0].clientX,r.changedTouches[0].clientY]:[0,0]},Va=function(r){return[r.deltaX,r.deltaY]},_a=function(r){return r&&"current"in r?r.current:r},gu=function(r,e){return r[0]===e[0]&&r[1]===e[1]},bu=function(r){return`
63
+ `)},Ha=function(){var r=parseInt(document.body.getAttribute(F0)||"0",10);return isFinite(r)?r:0},pu=function(){z.useEffect(function(){return document.body.setAttribute(F0,(Ha()+1).toString()),function(){var r=Ha()-1;r<=0?document.body.removeAttribute(F0):document.body.setAttribute(F0,r.toString())}},[])},vu=function(r){var e=r.noRelative,t=r.noImportant,a=r.gapMode,n=a===void 0?"margin":a;pu();var s=z.useMemo(function(){return mu(n)},[n]);return z.createElement(hu,{styles:fu(s,!e,n,t?"":"!important")})},zr=!1;if(typeof window<"u")try{var mt=Object.defineProperty({},"passive",{get:function(){return zr=!0,!0}});window.addEventListener("test",mt,mt),window.removeEventListener("test",mt,mt)}catch{zr=!1}var B0=zr?{passive:!1}:!1,gu=function(r){return r.tagName==="TEXTAREA"},Ms=function(r,e){if(!(r instanceof Element))return!1;var t=window.getComputedStyle(r);return t[e]!=="hidden"&&!(t.overflowY===t.overflowX&&!gu(r)&&t[e]==="visible")},bu=function(r){return Ms(r,"overflowY")},xu=function(r){return Ms(r,"overflowX")},Va=function(r,e){var t=e.ownerDocument,a=e;do{typeof ShadowRoot<"u"&&a instanceof ShadowRoot&&(a=a.host);var n=zs(r,a);if(n){var s=Ts(r,a),o=s[1],l=s[2];if(o>l)return!0}a=a.parentNode}while(a&&a!==t.body);return!1},yu=function(r){var e=r.scrollTop,t=r.scrollHeight,a=r.clientHeight;return[e,t,a]},wu=function(r){var e=r.scrollLeft,t=r.scrollWidth,a=r.clientWidth;return[e,t,a]},zs=function(r,e){return r==="v"?bu(e):xu(e)},Ts=function(r,e){return r==="v"?yu(e):wu(e)},Su=function(r,e){return r==="h"&&e==="rtl"?-1:1},ku=function(r,e,t,a,n){var s=Su(r,window.getComputedStyle(e).direction),o=s*a,l=t.target,u=e.contains(l),d=!1,f=o>0,g=0,y=0;do{if(!l)break;var w=Ts(r,l),M=w[0],k=w[1],T=w[2],N=k-T-s*M;(M||N)&&zs(r,l)&&(g+=N,y+=M);var R=l.parentNode;l=R&&R.nodeType===Node.DOCUMENT_FRAGMENT_NODE?R.host:R}while(!u&&l!==document.body||u&&(e.contains(l)||e===l));return(f&&Math.abs(g)<1||!f&&Math.abs(y)<1)&&(d=!0),d},ht=function(r){return"changedTouches"in r?[r.changedTouches[0].clientX,r.changedTouches[0].clientY]:[0,0]},_a=function(r){return[r.deltaX,r.deltaY]},Ga=function(r){return r&&"current"in r?r.current:r},Cu=function(r,e){return r[0]===e[0]&&r[1]===e[1]},Mu=function(r){return`
64
64
  .block-interactivity-`.concat(r,` {pointer-events: none;}
65
65
  .allow-interactivity-`).concat(r,` {pointer-events: all;}
66
- `)},yu=0,I0=[];function xu(r){var e=z.useRef([]),t=z.useRef([0,0]),a=z.useRef(),n=z.useState(yu++)[0],s=z.useState(Ss)[0],o=z.useRef(r);z.useEffect(function(){o.current=r},[r]),z.useEffect(function(){if(r.inert){document.body.classList.add("block-interactivity-".concat(n));var k=Hc([r.lockRef.current],(r.shards||[]).map(_a),!0).filter(Boolean);return k.forEach(function(T){return T.classList.add("allow-interactivity-".concat(n))}),function(){document.body.classList.remove("block-interactivity-".concat(n)),k.forEach(function(T){return T.classList.remove("allow-interactivity-".concat(n))})}}},[r.inert,r.lockRef.current,r.shards]);var l=z.useCallback(function(k,T){if("touches"in k&&k.touches.length===2||k.type==="wheel"&&k.ctrlKey)return!o.current.allowPinchZoom;var N=ht(k),R=t.current,B="deltaX"in k?k.deltaX:R[0]-N[0],P="deltaY"in k?k.deltaY:R[1]-N[1],O,Y=k.target,q=Math.abs(B)>Math.abs(P)?"h":"v";if("touches"in k&&q==="h"&&Y.type==="range")return!1;var I=Ha(q,Y);if(!I)return!0;if(I?O=q:(O=q==="v"?"h":"v",I=Ha(q,Y)),!I)return!1;if(!a.current&&"changedTouches"in k&&(B||P)&&(a.current=O),!O)return!0;var $=a.current||O;return vu($,T,k,$==="h"?B:P)},[]),u=z.useCallback(function(k){var T=k;if(!(!I0.length||I0[I0.length-1]!==s)){var N="deltaY"in T?Va(T):ht(T),R=e.current.filter(function(O){return O.name===T.type&&(O.target===T.target||T.target===O.shadowParent)&&gu(O.delta,N)})[0];if(R&&R.should){T.cancelable&&T.preventDefault();return}if(!R){var B=(o.current.shards||[]).map(_a).filter(Boolean).filter(function(O){return O.contains(T.target)}),P=B.length>0?l(T,B[0]):!o.current.noIsolation;P&&T.cancelable&&T.preventDefault()}}},[]),d=z.useCallback(function(k,T,N,R){var B={name:k,delta:T,target:N,should:R,shadowParent:wu(N)};e.current.push(B),setTimeout(function(){e.current=e.current.filter(function(P){return P!==B})},1)},[]),h=z.useCallback(function(k){t.current=ht(k),a.current=void 0},[]),g=z.useCallback(function(k){d(k.type,Va(k),k.target,l(k,r.lockRef.current))},[]),x=z.useCallback(function(k){d(k.type,ht(k),k.target,l(k,r.lockRef.current))},[]);z.useEffect(function(){return I0.push(s),r.setCallbacks({onScrollCapture:g,onWheelCapture:g,onTouchMoveCapture:x}),document.addEventListener("wheel",u,B0),document.addEventListener("touchmove",u,B0),document.addEventListener("touchstart",h,B0),function(){I0=I0.filter(function(k){return k!==s}),document.removeEventListener("wheel",u,B0),document.removeEventListener("touchmove",u,B0),document.removeEventListener("touchstart",h,B0)}},[]);var w=r.removeScrollBar,M=r.inert;return z.createElement(z.Fragment,null,M?z.createElement(s,{styles:bu(n)}):null,w?z.createElement(cu,{noRelative:r.noRelative,gapMode:r.gapMode}):null)}function wu(r){for(var e=null;r!==null;)r instanceof ShadowRoot&&(e=r.host,r=r.host),r=r.parentNode;return e}const Su=Zc(ws,xu);var zs=z.forwardRef(function(r,e){return z.createElement(Ot,Xe({},r,{ref:e,sideCar:Su}))});zs.classNames=Ot.classNames;var ku=function(r){if(typeof document>"u")return null;var e=Array.isArray(r)?r[0]:r;return e.ownerDocument.body},j0=new WeakMap,ft=new WeakMap,pt={},or=0,Ts=function(r){return r&&(r.host||Ts(r.parentNode))},Cu=function(r,e){return e.map(function(t){if(r.contains(t))return t;var a=Ts(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})},Mu=function(r,e,t,a){var n=Cu(e,Array.isArray(r)?r:[r]);pt[t]||(pt[t]=new WeakMap);var s=pt[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 h=function(g){!g||u.has(g)||Array.prototype.forEach.call(g.children,function(x){if(l.has(x))h(x);else try{var w=x.getAttribute(a),M=w!==null&&w!=="false",k=(j0.get(x)||0)+1,T=(s.get(x)||0)+1;j0.set(x,k),s.set(x,T),o.push(x),k===1&&M&&ft.set(x,!0),T===1&&x.setAttribute(t,"true"),M||x.setAttribute(a,"true")}catch(N){console.error("aria-hidden: cannot operate on ",x,N)}})};return h(e),l.clear(),or++,function(){o.forEach(function(g){var x=j0.get(g)-1,w=s.get(g)-1;j0.set(g,x),s.set(g,w),x||(ft.has(g)||g.removeAttribute(a),ft.delete(g)),w||g.removeAttribute(t)}),or--,or||(j0=new WeakMap,j0=new WeakMap,ft=new WeakMap,pt={})}},zu=function(r,e,t){t===void 0&&(t="data-aria-hidden");var a=Array.from(Array.isArray(r)?r:[r]),n=ku(r);return n?(a.push.apply(a,Array.from(n.querySelectorAll("[aria-live], script"))),Mu(a,n,t,"aria-hidden")):function(){return null}},Ft="Dialog",[As]=oc(Ft),[Tu,We]=As(Ft),Ns=r=>{const{__scopeDialog:e,children:t,open:a,defaultOpen:n,onOpenChange:s,modal:o=!0}=r,l=z.useRef(null),u=z.useRef(null),[d,h]=dc({prop:a,defaultProp:n??!1,onChange:s,caller:Ft});return f.jsx(Tu,{scope:e,triggerRef:l,contentRef:u,contentId:Qt(),titleId:Qt(),descriptionId:Qt(),open:d,onOpenChange:h,onOpenToggle:z.useCallback(()=>h(g=>!g),[h]),modal:o,children:t})};Ns.displayName=Ft;var Ds="DialogTrigger",Au=z.forwardRef((r,e)=>{const{__scopeDialog:t,...a}=r,n=We(Ds,t),s=E0(e,n.triggerRef);return f.jsx(Ke.button,{type:"button","aria-haspopup":"dialog","aria-expanded":n.open,"aria-controls":n.contentId,"data-state":Xr(n.open),...a,ref:s,onClick:b0(r.onClick,n.onOpenToggle)})});Au.displayName=Ds;var Wr="DialogPortal",[Nu,Es]=As(Wr,{forceMount:void 0}),Rs=r=>{const{__scopeDialog:e,forceMount:t,children:a,container:n}=r,s=We(Wr,e);return f.jsx(Nu,{scope:e,forceMount:t,children:z.Children.map(a,o=>f.jsx(Pt,{present:t||s.open,children:f.jsx(bs,{asChild:!0,container:n,children:o})}))})};Rs.displayName=Wr;var Nt="DialogOverlay",Ls=z.forwardRef((r,e)=>{const t=Es(Nt,r.__scopeDialog),{forceMount:a=t.forceMount,...n}=r,s=We(Nt,r.__scopeDialog);return s.modal?f.jsx(Pt,{present:a||s.open,children:f.jsx(Eu,{...n,ref:e})}):null});Ls.displayName=Nt;var Du=ms("DialogOverlay.RemoveScroll"),Eu=z.forwardRef((r,e)=>{const{__scopeDialog:t,...a}=r,n=We(Nt,t);return f.jsx(zs,{as:Du,allowPinchZoom:!0,shards:[n.contentRef],children:f.jsx(Ke.div,{"data-state":Xr(n.open),...a,ref:e,style:{pointerEvents:"auto",...a.style}})})}),N0="DialogContent",Bs=z.forwardRef((r,e)=>{const t=Es(N0,r.__scopeDialog),{forceMount:a=t.forceMount,...n}=r,s=We(N0,r.__scopeDialog);return f.jsx(Pt,{present:a||s.open,children:s.modal?f.jsx(Ru,{...n,ref:e}):f.jsx(Lu,{...n,ref:e})})});Bs.displayName=N0;var Ru=z.forwardRef((r,e)=>{const t=We(N0,r.__scopeDialog),a=z.useRef(null),n=E0(e,t.contentRef,a);return z.useEffect(()=>{const s=a.current;if(s)return zu(s)},[]),f.jsx(Is,{...r,ref:n,trapFocus:t.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:b0(r.onCloseAutoFocus,s=>{var o;s.preventDefault(),(o=t.triggerRef.current)==null||o.focus()}),onPointerDownOutside:b0(r.onPointerDownOutside,s=>{const o=s.detail.originalEvent,l=o.button===0&&o.ctrlKey===!0;(o.button===2||l)&&s.preventDefault()}),onFocusOutside:b0(r.onFocusOutside,s=>s.preventDefault())})}),Lu=z.forwardRef((r,e)=>{const t=We(N0,r.__scopeDialog),a=z.useRef(!1),n=z.useRef(!1);return f.jsx(Is,{...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()}})}),Is=z.forwardRef((r,e)=>{const{__scopeDialog:t,trapFocus:a,onOpenAutoFocus:n,onCloseAutoFocus:s,...o}=r,l=We(N0,t),u=z.useRef(null),d=E0(e,u);return qc(),f.jsxs(f.Fragment,{children:[f.jsx(vs,{asChild:!0,loop:!0,trapped:a,onMountAutoFocus:n,onUnmountAutoFocus:s,children:f.jsx(fs,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":Xr(l.open),...o,ref:d,onDismiss:()=>l.onOpenChange(!1)})}),f.jsxs(f.Fragment,{children:[f.jsx(Bu,{titleId:l.titleId}),f.jsx(ju,{contentRef:u,descriptionId:l.descriptionId})]})]})}),$r="DialogTitle",js=z.forwardRef((r,e)=>{const{__scopeDialog:t,...a}=r,n=We($r,t);return f.jsx(Ke.h2,{id:n.titleId,...a,ref:e})});js.displayName=$r;var Ps="DialogDescription",Os=z.forwardRef((r,e)=>{const{__scopeDialog:t,...a}=r,n=We(Ps,t);return f.jsx(Ke.p,{id:n.descriptionId,...a,ref:e})});Os.displayName=Ps;var Fs="DialogClose",qs=z.forwardRef((r,e)=>{const{__scopeDialog:t,...a}=r,n=We(Fs,t);return f.jsx(Ke.button,{type:"button",...a,ref:e,onClick:b0(r.onClick,()=>n.onOpenChange(!1))})});qs.displayName=Fs;function Xr(r){return r?"open":"closed"}var Hs="DialogTitleWarning",[Q2,Vs]=sc(Hs,{contentName:N0,titleName:$r,docsSlug:"dialog"}),Bu=({titleId:r})=>{const e=Vs(Hs),t=`\`${e.contentName}\` requires a \`${e.titleName}\` for the component to be accessible for screen reader users.
66
+ `)},zu=0,I0=[];function Tu(r){var e=z.useRef([]),t=z.useRef([0,0]),a=z.useRef(),n=z.useState(zu++)[0],s=z.useState(Cs)[0],o=z.useRef(r);z.useEffect(function(){o.current=r},[r]),z.useEffect(function(){if(r.inert){document.body.classList.add("block-interactivity-".concat(n));var k=Xc([r.lockRef.current],(r.shards||[]).map(Ga),!0).filter(Boolean);return k.forEach(function(T){return T.classList.add("allow-interactivity-".concat(n))}),function(){document.body.classList.remove("block-interactivity-".concat(n)),k.forEach(function(T){return T.classList.remove("allow-interactivity-".concat(n))})}}},[r.inert,r.lockRef.current,r.shards]);var l=z.useCallback(function(k,T){if("touches"in k&&k.touches.length===2||k.type==="wheel"&&k.ctrlKey)return!o.current.allowPinchZoom;var N=ht(k),R=t.current,B="deltaX"in k?k.deltaX:R[0]-N[0],P="deltaY"in k?k.deltaY:R[1]-N[1],O,Y=k.target,q=Math.abs(B)>Math.abs(P)?"h":"v";if("touches"in k&&q==="h"&&Y.type==="range")return!1;var I=Va(q,Y);if(!I)return!0;if(I?O=q:(O=q==="v"?"h":"v",I=Va(q,Y)),!I)return!1;if(!a.current&&"changedTouches"in k&&(B||P)&&(a.current=O),!O)return!0;var $=a.current||O;return ku($,T,k,$==="h"?B:P)},[]),u=z.useCallback(function(k){var T=k;if(!(!I0.length||I0[I0.length-1]!==s)){var N="deltaY"in T?_a(T):ht(T),R=e.current.filter(function(O){return O.name===T.type&&(O.target===T.target||T.target===O.shadowParent)&&Cu(O.delta,N)})[0];if(R&&R.should){T.cancelable&&T.preventDefault();return}if(!R){var B=(o.current.shards||[]).map(Ga).filter(Boolean).filter(function(O){return O.contains(T.target)}),P=B.length>0?l(T,B[0]):!o.current.noIsolation;P&&T.cancelable&&T.preventDefault()}}},[]),d=z.useCallback(function(k,T,N,R){var B={name:k,delta:T,target:N,should:R,shadowParent:Au(N)};e.current.push(B),setTimeout(function(){e.current=e.current.filter(function(P){return P!==B})},1)},[]),f=z.useCallback(function(k){t.current=ht(k),a.current=void 0},[]),g=z.useCallback(function(k){d(k.type,_a(k),k.target,l(k,r.lockRef.current))},[]),y=z.useCallback(function(k){d(k.type,ht(k),k.target,l(k,r.lockRef.current))},[]);z.useEffect(function(){return I0.push(s),r.setCallbacks({onScrollCapture:g,onWheelCapture:g,onTouchMoveCapture:y}),document.addEventListener("wheel",u,B0),document.addEventListener("touchmove",u,B0),document.addEventListener("touchstart",f,B0),function(){I0=I0.filter(function(k){return k!==s}),document.removeEventListener("wheel",u,B0),document.removeEventListener("touchmove",u,B0),document.removeEventListener("touchstart",f,B0)}},[]);var w=r.removeScrollBar,M=r.inert;return z.createElement(z.Fragment,null,M?z.createElement(s,{styles:Mu(n)}):null,w?z.createElement(vu,{noRelative:r.noRelative,gapMode:r.gapMode}):null)}function Au(r){for(var e=null;r!==null;)r instanceof ShadowRoot&&(e=r.host,r=r.host),r=r.parentNode;return e}const Nu=au(ks,Tu);var As=z.forwardRef(function(r,e){return z.createElement(Ot,Xe({},r,{ref:e,sideCar:Nu}))});As.classNames=Ot.classNames;var Du=function(r){if(typeof document>"u")return null;var e=Array.isArray(r)?r[0]:r;return e.ownerDocument.body},j0=new WeakMap,ft=new WeakMap,pt={},or=0,Ns=function(r){return r&&(r.host||Ns(r.parentNode))},Eu=function(r,e){return e.map(function(t){if(r.contains(t))return t;var a=Ns(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})},Ru=function(r,e,t,a){var n=Eu(e,Array.isArray(r)?r:[r]);pt[t]||(pt[t]=new WeakMap);var s=pt[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(y){if(l.has(y))f(y);else try{var w=y.getAttribute(a),M=w!==null&&w!=="false",k=(j0.get(y)||0)+1,T=(s.get(y)||0)+1;j0.set(y,k),s.set(y,T),o.push(y),k===1&&M&&ft.set(y,!0),T===1&&y.setAttribute(t,"true"),M||y.setAttribute(a,"true")}catch(N){console.error("aria-hidden: cannot operate on ",y,N)}})};return f(e),l.clear(),or++,function(){o.forEach(function(g){var y=j0.get(g)-1,w=s.get(g)-1;j0.set(g,y),s.set(g,w),y||(ft.has(g)||g.removeAttribute(a),ft.delete(g)),w||g.removeAttribute(t)}),or--,or||(j0=new WeakMap,j0=new WeakMap,ft=new WeakMap,pt={})}},Lu=function(r,e,t){t===void 0&&(t="data-aria-hidden");var a=Array.from(Array.isArray(r)?r:[r]),n=Du(r);return n?(a.push.apply(a,Array.from(n.querySelectorAll("[aria-live], script"))),Ru(a,n,t,"aria-hidden")):function(){return null}},Ft="Dialog",[Ds]=hc(Ft),[Bu,We]=Ds(Ft),Es=r=>{const{__scopeDialog:e,children:t,open:a,defaultOpen:n,onOpenChange:s,modal:o=!0}=r,l=z.useRef(null),u=z.useRef(null),[d,f]=bc({prop:a,defaultProp:n??!1,onChange:s,caller:Ft});return h.jsx(Bu,{scope:e,triggerRef:l,contentRef:u,contentId:Qt(),titleId:Qt(),descriptionId:Qt(),open:d,onOpenChange:f,onOpenToggle:z.useCallback(()=>f(g=>!g),[f]),modal:o,children:t})};Es.displayName=Ft;var Rs="DialogTrigger",Iu=z.forwardRef((r,e)=>{const{__scopeDialog:t,...a}=r,n=We(Rs,t),s=E0(e,n.triggerRef);return h.jsx(Ke.button,{type:"button","aria-haspopup":"dialog","aria-expanded":n.open,"aria-controls":n.contentId,"data-state":Xr(n.open),...a,ref:s,onClick:b0(r.onClick,n.onOpenToggle)})});Iu.displayName=Rs;var Wr="DialogPortal",[ju,Ls]=Ds(Wr,{forceMount:void 0}),Bs=r=>{const{__scopeDialog:e,forceMount:t,children:a,container:n}=r,s=We(Wr,e);return h.jsx(ju,{scope:e,forceMount:t,children:z.Children.map(a,o=>h.jsx(Pt,{present:t||s.open,children:h.jsx(ys,{asChild:!0,container:n,children:o})}))})};Bs.displayName=Wr;var Nt="DialogOverlay",Is=z.forwardRef((r,e)=>{const t=Ls(Nt,r.__scopeDialog),{forceMount:a=t.forceMount,...n}=r,s=We(Nt,r.__scopeDialog);return s.modal?h.jsx(Pt,{present:a||s.open,children:h.jsx(Ou,{...n,ref:e})}):null});Is.displayName=Nt;var Pu=fs("DialogOverlay.RemoveScroll"),Ou=z.forwardRef((r,e)=>{const{__scopeDialog:t,...a}=r,n=We(Nt,t);return h.jsx(As,{as:Pu,allowPinchZoom:!0,shards:[n.contentRef],children:h.jsx(Ke.div,{"data-state":Xr(n.open),...a,ref:e,style:{pointerEvents:"auto",...a.style}})})}),N0="DialogContent",js=z.forwardRef((r,e)=>{const t=Ls(N0,r.__scopeDialog),{forceMount:a=t.forceMount,...n}=r,s=We(N0,r.__scopeDialog);return h.jsx(Pt,{present:a||s.open,children:s.modal?h.jsx(Fu,{...n,ref:e}):h.jsx(qu,{...n,ref:e})})});js.displayName=N0;var Fu=z.forwardRef((r,e)=>{const t=We(N0,r.__scopeDialog),a=z.useRef(null),n=E0(e,t.contentRef,a);return z.useEffect(()=>{const s=a.current;if(s)return Lu(s)},[]),h.jsx(Ps,{...r,ref:n,trapFocus:t.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:b0(r.onCloseAutoFocus,s=>{var o;s.preventDefault(),(o=t.triggerRef.current)==null||o.focus()}),onPointerDownOutside:b0(r.onPointerDownOutside,s=>{const o=s.detail.originalEvent,l=o.button===0&&o.ctrlKey===!0;(o.button===2||l)&&s.preventDefault()}),onFocusOutside:b0(r.onFocusOutside,s=>s.preventDefault())})}),qu=z.forwardRef((r,e)=>{const t=We(N0,r.__scopeDialog),a=z.useRef(!1),n=z.useRef(!1);return h.jsx(Ps,{...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()}})}),Ps=z.forwardRef((r,e)=>{const{__scopeDialog:t,trapFocus:a,onOpenAutoFocus:n,onCloseAutoFocus:s,...o}=r,l=We(N0,t),u=z.useRef(null),d=E0(e,u);return $c(),h.jsxs(h.Fragment,{children:[h.jsx(bs,{asChild:!0,loop:!0,trapped:a,onMountAutoFocus:n,onUnmountAutoFocus:s,children:h.jsx(vs,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":Xr(l.open),...o,ref:d,onDismiss:()=>l.onOpenChange(!1)})}),h.jsxs(h.Fragment,{children:[h.jsx(Hu,{titleId:l.titleId}),h.jsx(_u,{contentRef:u,descriptionId:l.descriptionId})]})]})}),$r="DialogTitle",Os=z.forwardRef((r,e)=>{const{__scopeDialog:t,...a}=r,n=We($r,t);return h.jsx(Ke.h2,{id:n.titleId,...a,ref:e})});Os.displayName=$r;var Fs="DialogDescription",qs=z.forwardRef((r,e)=>{const{__scopeDialog:t,...a}=r,n=We(Fs,t);return h.jsx(Ke.p,{id:n.descriptionId,...a,ref:e})});qs.displayName=Fs;var Hs="DialogClose",Vs=z.forwardRef((r,e)=>{const{__scopeDialog:t,...a}=r,n=We(Hs,t);return h.jsx(Ke.button,{type:"button",...a,ref:e,onClick:b0(r.onClick,()=>n.onOpenChange(!1))})});Vs.displayName=Hs;function Xr(r){return r?"open":"closed"}var _s="DialogTitleWarning",[o5,Gs]=mc(_s,{contentName:N0,titleName:$r,docsSlug:"dialog"}),Hu=({titleId:r})=>{const e=Gs(_s),t=`\`${e.contentName}\` requires a \`${e.titleName}\` for the component to be accessible for screen reader users.
67
67
 
68
68
  If you want to hide the \`${e.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 z.useEffect(()=>{r&&(document.getElementById(r)||console.error(t))},[t,r]),null},Iu="DialogDescriptionWarning",ju=({contentRef:r,descriptionId:e})=>{const a=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Vs(Iu).contentName}}.`;return z.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},Pu=Ns,Ou=Rs,Fu=Ls,qu=Bs,Ga=js,Ua=Os,Hu=qs,Vu=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"}),_u="VisuallyHidden",_s=z.forwardRef((r,e)=>f.jsx(Ke.span,{...r,ref:e,style:{...Vu,...r.style}}));_s.displayName=_u;var Wa=_s;const Gu=A("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"),Uu=A("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"}}),Wu=A("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"),$u=A("!font-[Inter,system-ui,-apple-system,sans-serif] font-medium text-[1rem] leading-[1.5rem] text-[var(--color-blue-1000)] w-full"),Xu=A("font-[Inter,system-ui,-apple-system,sans-serif] font-normal text-[0.875rem] leading-[1.25rem] text-[var(--color-gray-800)] w-full"),Yu=A("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"}}),Zu=A("flex gap-2 items-start w-full"),Gs=({open:r,onOpenChange:e,title:t,description:a,showCloseButton:n=!0,closeIcon:s,children:o,primaryAction:l,secondaryAction:u,closeOnClickOutside:d=!0,closeOnEsc:h=!0,onClose:g,className:x,overlayClassName:w,contentClassName:M,footerClassName:k,size:T="md"})=>{const N=V.useRef(null),R=V.useRef(null),B=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($=>{h||$.preventDefault()},[h]),q=V.useCallback($=>{d||$.preventDefault()},[d]),I=l||u;return f.jsx(Pu,{open:r,onOpenChange:B,children:f.jsxs(Ou,{children:[f.jsx(Fu,{className:W(Gu(),w)}),f.jsxs(qu,{className:W(Uu({size:T}),x),onEscapeKeyDown:Y,onPointerDownOutside:q,children:[t?f.jsx(Ga,{className:$u(),children:t}):f.jsx(Wa,{children:f.jsx(Ga,{children:"Modal dialog"})}),a?f.jsx(Ua,{className:Xu(),children:a}):f.jsx(Wa,{children:f.jsx(Ua,{children:"Modal content"})}),n&&f.jsx(Hu,{asChild:!0,children:f.jsx("button",{className:Wu(),"aria-label":"Close modal",children:s||f.jsx(p.X,{size:16,color:"currentColor"})})}),o&&f.jsx("div",{className:W(Yu({size:T}),M),children:o}),I&&f.jsxs("div",{className:W(Zu(),k),children:[u&&f.jsx(H0,{ref:R,variant:u.variant||"secondary",size:"small",onClick:O,disabled:u.disabled||u.loading,startIcon:u.icon,className:"flex-1",children:u.label}),l&&f.jsx(H0,{ref:N,variant:l.variant||"primary",size:"small",onClick:P,disabled:l.disabled||l.loading,startIcon:l.icon,className:"flex-1",children:l.label})]})]})]})})};Gs.displayName="Modal";const Ku=A(["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 De{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 De(e.loc.lexer,e.loc.start,t.loc.end):e&&e.loc}}class je{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 je(t,De.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 h;s+15<l.length?h=l.slice(s,s+15)+"…":h=l.slice(s),a+=d+u+h}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 Ju=function(e,t){return e===void 0?t:e},Qu=/([A-Z])/g,e4=function(e){return e.replace(Qu,"-$1").toLowerCase()},t4={"&":"&amp;",">":"&gt;","<":"&lt;",'"':"&quot;","'":"&#x27;"},r4=/[&><"']/g;function a4(r){return String(r).replace(r4,e=>t4[e])}var Us=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},n4=function(e){var t=Us(e);return t.type==="mathord"||t.type==="textord"||t.type==="atom"},s4=function(e){if(!e)throw new Error("Expected non-null, but got "+String(e));return e},o4=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"},ae={deflt:Ju,escape:a4,hyphenate:e4,getBaseElem:Us,isCharacterBox:n4,protocolFromUrl:o4},Tt={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 i4(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 Yr{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 Tt)if(Tt.hasOwnProperty(t)){var a=Tt[t];this[t]=e[t]!==void 0?a.processor?a.processor(e[t]):e[t]:i4(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=ae.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 f0{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 $e[l4[this.id]]}sub(){return $e[c4[this.id]]}fracNum(){return $e[u4[this.id]]}fracDen(){return $e[d4[this.id]]}cramp(){return $e[m4[this.id]]}text(){return $e[h4[this.id]]}isTight(){return this.size>=2}}var Zr=0,Dt=1,q0=2,i0=3,Q0=4,He=5,_0=6,Te=7,$e=[new f0(Zr,0,!1),new f0(Dt,0,!0),new f0(q0,1,!1),new f0(i0,1,!0),new f0(Q0,2,!1),new f0(He,2,!0),new f0(_0,3,!1),new f0(Te,3,!0)],l4=[Q0,He,Q0,He,_0,Te,_0,Te],c4=[He,He,He,He,Te,Te,Te,Te],u4=[q0,i0,Q0,He,_0,Te,_0,Te],d4=[i0,i0,He,He,Te,Te,Te,Te],m4=[Dt,Dt,i0,i0,He,He,Te,Te],h4=[Zr,Dt,q0,i0,q0,i0,q0,i0],K={DISPLAY:$e[Zr],TEXT:$e[q0],SCRIPT:$e[Q0],SCRIPTSCRIPT:$e[_0]},Tr=[{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 f4(r){for(var e=0;e<Tr.length;e++)for(var t=Tr[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 At=[];Tr.forEach(r=>r.blocks.forEach(e=>At.push(...e)));function Ws(r){for(var e=0;e<At.length;e+=2)if(r>=At[e]&&r<=At[e+1])return!0;return!1}var P0=80,p4=function(e,t){return"M95,"+(622+e+t)+`
70
+ For more information, see https://radix-ui.com/primitives/docs/components/${e.docsSlug}`;return z.useEffect(()=>{r&&(document.getElementById(r)||console.error(t))},[t,r]),null},Vu="DialogDescriptionWarning",_u=({contentRef:r,descriptionId:e})=>{const a=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Gs(Vu).contentName}}.`;return z.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},Gu=Es,Uu=Bs,Wu=Is,$u=js,Ua=Os,Wa=qs,Xu=Vs,Yu=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"}),Zu="VisuallyHidden",Us=z.forwardRef((r,e)=>h.jsx(Ke.span,{...r,ref:e,style:{...Yu,...r.style}}));Us.displayName=Zu;var $a=Us;const Ku=A("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"),Ju=A("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"}}),Qu=A("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"),e4=A("!font-[Inter,system-ui,-apple-system,sans-serif] font-medium text-[1rem] leading-[1.5rem] text-[var(--color-blue-1000)] w-full"),t4=A("font-[Inter,system-ui,-apple-system,sans-serif] font-normal text-[0.875rem] leading-[1.25rem] text-[var(--color-gray-800)] w-full"),r4=A("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=A("flex gap-2 items-start w-full"),Ws=({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:y,overlayClassName:w,contentClassName:M,footerClassName:k,size:T="md"})=>{const N=V.useRef(null),R=V.useRef(null),B=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]),I=l||u;return h.jsx(Gu,{open:r,onOpenChange:B,children:h.jsxs(Uu,{children:[h.jsx(Wu,{className:_(Ku(),w)}),h.jsxs($u,{className:_(Ju({size:T}),y),onEscapeKeyDown:Y,onPointerDownOutside:q,children:[t?h.jsx(Ua,{className:e4(),children:t}):h.jsx($a,{children:h.jsx(Ua,{children:"Modal dialog"})}),a?h.jsx(Wa,{className:t4(),children:a}):h.jsx($a,{children:h.jsx(Wa,{children:"Modal content"})}),n&&h.jsx(Xu,{asChild:!0,children:h.jsx("button",{className:Qu(),"aria-label":"Close modal",children:s||h.jsx(p.X,{size:16,color:"currentColor"})})}),o&&h.jsx("div",{className:_(r4({size:T}),M),children:o}),I&&h.jsxs("div",{className:_(a4(),k),children:[u&&h.jsx(H0,{ref:R,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(H0,{ref:N,variant:l.variant||"primary",size:"small",onClick:P,disabled:l.disabled||l.loading,startIcon:l.icon,className:"flex-1",children:l.label})]})]})]})})};Ws.displayName="Modal";const n4=A(["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 De{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 De(e.loc.lexer,e.loc.start,t.loc.end):e&&e.loc}}class je{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 je(t,De.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 s4=function(e,t){return e===void 0?t:e},o4=/([A-Z])/g,i4=function(e){return e.replace(o4,"-$1").toLowerCase()},l4={"&":"&amp;",">":"&gt;","<":"&lt;",'"':"&quot;","'":"&#x27;"},c4=/[&><"']/g;function u4(r){return String(r).replace(c4,e=>l4[e])}var $s=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},d4=function(e){var t=$s(e);return t.type==="mathord"||t.type==="textord"||t.type==="atom"},m4=function(e){if(!e)throw new Error("Expected non-null, but got "+String(e));return e},h4=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"},ae={deflt:s4,escape:u4,hyphenate:i4,getBaseElem:$s,isCharacterBox:d4,protocolFromUrl:h4},Tt={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 f4(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 Yr{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 Tt)if(Tt.hasOwnProperty(t)){var a=Tt[t];this[t]=e[t]!==void 0?a.processor?a.processor(e[t]):e[t]:f4(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=ae.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 f0{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 $e[p4[this.id]]}sub(){return $e[v4[this.id]]}fracNum(){return $e[g4[this.id]]}fracDen(){return $e[b4[this.id]]}cramp(){return $e[x4[this.id]]}text(){return $e[y4[this.id]]}isTight(){return this.size>=2}}var Zr=0,Dt=1,q0=2,i0=3,Q0=4,He=5,_0=6,Te=7,$e=[new f0(Zr,0,!1),new f0(Dt,0,!0),new f0(q0,1,!1),new f0(i0,1,!0),new f0(Q0,2,!1),new f0(He,2,!0),new f0(_0,3,!1),new f0(Te,3,!0)],p4=[Q0,He,Q0,He,_0,Te,_0,Te],v4=[He,He,He,He,Te,Te,Te,Te],g4=[q0,i0,Q0,He,_0,Te,_0,Te],b4=[i0,i0,He,He,Te,Te,Te,Te],x4=[Dt,Dt,i0,i0,He,He,Te,Te],y4=[Zr,Dt,q0,i0,q0,i0,q0,i0],K={DISPLAY:$e[Zr],TEXT:$e[q0],SCRIPT:$e[Q0],SCRIPTSCRIPT:$e[_0]},Tr=[{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 w4(r){for(var e=0;e<Tr.length;e++)for(var t=Tr[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 At=[];Tr.forEach(r=>r.blocks.forEach(e=>At.push(...e)));function Xs(r){for(var e=0;e<At.length;e+=2)if(r>=At[e]&&r<=At[e+1])return!0;return!1}var P0=80,S4=function(e,t){return"M95,"+(622+e+t)+`
71
71
  c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
72
72
  c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
73
73
  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
@@ -78,7 +78,7 @@ c5.3,-9.3,12,-14,20,-14
78
78
  H400000v`+(40+e)+`H845.2724
79
79
  s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
80
80
  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"},v4=function(e,t){return"M263,"+(601+e+t)+`c0.7,0,18,39.7,52,119
81
+ M`+(834+e)+" "+t+"h400000v"+(40+e)+"h-400000z"},k4=function(e,t){return"M263,"+(601+e+t)+`c0.7,0,18,39.7,52,119
82
82
  c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
83
83
  c340,-704.7,510.7,-1060.3,512,-1067
84
84
  l`+e/2.084+" -"+e+`
@@ -88,7 +88,7 @@ s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,
88
88
  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
89
  s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
90
90
  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"},g4=function(e,t){return"M983 "+(10+e+t)+`
91
+ M`+(1001+e)+" "+t+"h400000v"+(40+e)+"h-400000z"},C4=function(e,t){return"M983 "+(10+e+t)+`
92
92
  l`+e/3.13+" -"+e+`
93
93
  c4,-6.7,10,-10,18,-10 H400000v`+(40+e)+`
94
94
  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
@@ -97,7 +97,7 @@ c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30
97
97
  c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722
98
98
  c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5
99
99
  c53.7,-170.3,84.5,-266.8,92.5,-289.5z
100
- M`+(1001+e)+" "+t+"h400000v"+(40+e)+"h-400000z"},b4=function(e,t){return"M424,"+(2398+e+t)+`
100
+ M`+(1001+e)+" "+t+"h400000v"+(40+e)+"h-400000z"},M4=function(e,t){return"M424,"+(2398+e+t)+`
101
101
  c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514
102
102
  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
103
  s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121
@@ -107,18 +107,18 @@ v`+(40+e)+`H1014.6
107
107
  s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185
108
108
  c-2,6,-10,9,-24,9
109
109
  c-8,0,-12,-0.7,-12,-2z M`+(1001+e)+" "+t+`
110
- h400000v`+(40+e)+"h-400000z"},y4=function(e,t){return"M473,"+(2713+e+t)+`
110
+ h400000v`+(40+e)+"h-400000z"},z4=function(e,t){return"M473,"+(2713+e+t)+`
111
111
  c339.3,-1799.3,509.3,-2700,510,-2702 l`+e/5.298+" -"+e+`
112
112
  c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+e)+`H1017.7
113
113
  s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9
114
114
  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
115
  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
116
  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"},x4=function(e){var t=e/2;return"M400000 "+e+" H0 L"+t+" 0 l65 45 L145 "+(e-80)+" H400000z"},w4=function(e,t,a){var n=a-54-t-e;return"M702 "+(e+t)+"H400000"+(40+e)+`
117
+ 606zM`+(1001+e)+" "+t+"h400000v"+(40+e)+"H1017.7z"},T4=function(e){var t=e/2;return"M400000 "+e+" H0 L"+t+" 0 l65 45 L145 "+(e-80)+" H400000z"},A4=function(e,t,a){var n=a-54-t-e;return"M702 "+(e+t)+"H400000"+(40+e)+`
118
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
119
119
  h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170
120
120
  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"},S4=function(e,t,a){t=1e3*t;var n="";switch(e){case"sqrtMain":n=p4(t,P0);break;case"sqrtSize1":n=v4(t,P0);break;case"sqrtSize2":n=g4(t,P0);break;case"sqrtSize3":n=b4(t,P0);break;case"sqrtSize4":n=y4(t,P0);break;case"sqrtTall":n=w4(t,P0,a)}return n},k4=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""}},$a={doubleleftarrow:`M262 157
121
+ 219 661 l218 661zM702 `+t+"H400000v"+(40+e)+"H742z"},N4=function(e,t,a){t=1e3*t;var n="";switch(e){case"sqrtMain":n=S4(t,P0);break;case"sqrtSize1":n=k4(t,P0);break;case"sqrtSize2":n=C4(t,P0);break;case"sqrtSize3":n=M4(t,P0);break;case"sqrtSize4":n=z4(t,P0);break;case"sqrtTall":n=A4(t,P0,a)}return n},D4=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""}},Xa={doubleleftarrow:`M262 157
122
122
  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
123
  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
124
  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,7 +293,7 @@ M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`
293
293
  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
294
  -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
295
  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`},C4=function(e,t){switch(e){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+t+` v1759 h347 v-84
296
+ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},E4=function(e,t){switch(e){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+t+` v1759 h347 v-84
297
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
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
299
  c10,0,16.667,-5,20,-15 v-585 v`+-t+` v-585 c-2.667,-10,-9.667,-15,-21,-15
@@ -321,15 +321,15 @@ 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
321
321
  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
322
  c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558
323
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 tt{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]}},vt={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]},Xa={Å:"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 M4(r,e){Ye[r]=e}function Kr(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 Xa&&(a=Xa[r[0]].charCodeAt(0),n=Ye[e][a]),!n&&t==="text"&&Ws(a)&&(n=Ye[e][77]),n)return{depth:n[0],height:n[1],italic:n[2],skew:n[3],width:n[4]}}var ir={};function z4(r){var e;if(r>=5?e=0:r>=3?e=1:e=2,!ir[e]){var t=ir[e]={cssEmPerMu:vt.quad[e]/18};for(var a in vt)vt.hasOwnProperty(a)&&(t[a]=vt[a][e])}return ir[e]}var T4=[[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]],Ya=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],Za=function(e,t){return t.size<2?e:T4[e-1][t.size-1]};class s0{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||s0.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=Ya[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 s0(t)}havingStyle(e){return this.style===e?this:this.extend({style:e,size:Za(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:Ya[e-1]})}havingBaseStyle(e){e=e||this.style.text();var t=Za(s0.BASESIZE,e);return this.size===t&&this.textSize===s0.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!==s0.BASESIZE?["sizing","reset-size"+this.size,"size"+s0.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=z4(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}s0.BASESIZE=6;var Ar={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},A4={ex:!0,em:!0,mu:!0},$s=function(e){return typeof e!="string"&&(e=e.unit),e in Ar||e in A4||e==="ex"},de=function(e,t){var a;if(e.unit in Ar)a=Ar[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)},j=function(e){return+e.toFixed(4)+"em"},y0=function(e){return e.filter(t=>t).join(" ")},Xs=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)}},Ys=function(e){var t=document.createElement(e);t.className=y0(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},N4=/[\s"'>/=\x00-\x1f]/,Zs=function(e){var t="<"+e;this.classes.length&&(t+=' class="'+ae.escape(y0(this.classes))+'"');var a="";for(var n in this.style)this.style.hasOwnProperty(n)&&(a+=ae.hyphenate(n)+":"+this.style[n]+";");a&&(t+=' style="'+ae.escape(a)+'"');for(var s in this.attributes)if(this.attributes.hasOwnProperty(s)){if(N4.test(s))throw new L("Invalid attribute name '"+s+"'");t+=" "+s+'="'+ae.escape(this.attributes[s])+'"'}t+=">";for(var o=0;o<this.children.length;o++)t+=this.children[o].toMarkup();return t+="</"+e+">",t};class rt{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,Xs.call(this,e,a,n),this.children=t||[]}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return this.classes.includes(e)}toNode(){return Ys.call(this,"span")}toMarkup(){return Zs.call(this,"span")}}class Jr{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,Xs.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 Ys.call(this,"a")}toMarkup(){return Zs.call(this,"a")}}class D4{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="'+ae.escape(this.src)+'"'+(' alt="'+ae.escape(this.alt)+'"'),t="";for(var a in this.style)this.style.hasOwnProperty(a)&&(t+=ae.hyphenate(a)+":"+this.style[a]+";");return t&&(e+=' style="'+ae.escape(t)+'"'),e+="'/>",e}}var E4={î:"ı̂",ï:"ı̈",í:"ı́",ì:"ı̀"};class Ve{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=f4(this.text.charCodeAt(0));d&&this.classes.push(d+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=E4[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=j(this.italic)),this.classes.length>0&&(t=t||document.createElement("span"),t.className=y0(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+=ae.escape(y0(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+=ae.hyphenate(n)+":"+this.style[n]+";");a&&(e=!0,t+=' style="'+ae.escape(a)+'"');var s=ae.escape(this.text);return e?(t+=">",t+=s,t+="</span>",t):s}}class c0{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+'="'+ae.escape(this.attributes[t])+'"');e+=">";for(var a=0;a<this.children.length;a++)e+=this.children[a].toMarkup();return e+="</svg>",e}}class x0{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",$a[this.pathName]),t}toMarkup(){return this.alternate?'<path d="'+ae.escape(this.alternate)+'"/>':'<path d="'+ae.escape($a[this.pathName])+'"/>'}}class Nr{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+'="'+ae.escape(this.attributes[t])+'"');return e+="/>",e}}function Ka(r){if(r instanceof Ve)return r;throw new Error("Expected symbolNode but got "+String(r)+".")}function R4(r){if(r instanceof rt)return r;throw new Error("Expected span<HtmlDomNode> but got "+String(r)+".")}var L4={bin:1,close:1,inner:1,open:1,punct:1,rel:1},B4={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},le={math:{},text:{}};function i(r,e,t,a,n,s){le[r][n]={font:e,group:t,replace:a},s&&a&&(le[r][a]=le[r][n])}var c="math",D="text",m="main",b="ams",ce="accent-token",H="bin",Ae="close",W0="inner",Z="mathord",ye="op-token",Pe="open",qt="punct",y="rel",m0="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,qt,".","\\ldotp");i(c,m,qt,"⋅","\\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,Ae,"⎱","\\rmoustache",!0);i(c,m,Pe,"⎰","\\lmoustache",!0);i(c,m,Ae,"⟯","\\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,Ae,"┐","\\@urcorner",!0);i(c,b,Pe,"└","\\@llcorner",!0);i(c,b,Ae,"┘","\\@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,Ae,"?","?");i(c,m,Ae,"!","!");i(c,m,Ae,"⟩","\\rangle",!0);i(c,m,Ae,"∣","\\rvert");i(c,m,Ae,"∥","\\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,m0," ","\\ ");i(c,m,m0," ","\\space");i(c,m,m0," ","\\nobreakspace");i(D,m,m0," ","\\ ");i(D,m,m0," "," ");i(D,m,m0," ","\\space");i(D,m,m0," ","\\nobreakspace");i(c,m,m0,null,"\\nobreak");i(c,m,m0,null,"\\allowbreak");i(c,m,qt,",",",");i(c,m,qt,";",";");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,Ae,"}","\\}");i(D,m,S,"}","\\}");i(D,m,S,"}","\\textbraceright");i(c,m,Pe,"{","\\lbrace");i(c,m,Ae,"}","\\rbrace");i(c,m,Pe,"[","\\lbrack",!0);i(D,m,S,"[","\\lbrack",!0);i(c,m,Ae,"]","\\rbrack",!0);i(D,m,S,"]","\\rbrack",!0);i(c,m,Pe,"(","\\lparen",!0);i(c,m,Ae,")","\\rparen",!0);i(D,m,S,"<","\\textless",!0);i(D,m,S,">","\\textgreater",!0);i(c,m,Pe,"⌊","\\lfloor",!0);i(c,m,Ae,"⌋","\\rfloor",!0);i(c,m,Pe,"⌈","\\lceil",!0);i(c,m,Ae,"⌉","\\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,ye,"∐","\\coprod");i(c,m,ye,"⋁","\\bigvee");i(c,m,ye,"⋀","\\bigwedge");i(c,m,ye,"⨄","\\biguplus");i(c,m,ye,"⋂","\\bigcap");i(c,m,ye,"⋃","\\bigcup");i(c,m,ye,"∫","\\int");i(c,m,ye,"∫","\\intop");i(c,m,ye,"∬","\\iint");i(c,m,ye,"∭","\\iiint");i(c,m,ye,"∏","\\prod");i(c,m,ye,"∑","\\sum");i(c,m,ye,"⨂","\\bigotimes");i(c,m,ye,"⨁","\\bigoplus");i(c,m,ye,"⨀","\\bigodot");i(c,m,ye,"∮","\\oint");i(c,m,ye,"∯","\\oiint");i(c,m,ye,"∰","\\oiiint");i(c,m,ye,"⨆","\\bigsqcup");i(c,m,ye,"∫","\\smallint");i(D,m,W0,"…","\\textellipsis");i(c,m,W0,"…","\\mathellipsis");i(D,m,W0,"…","\\ldots",!0);i(c,m,W0,"…","\\ldots",!0);i(c,m,W0,"⋯","\\@cdots",!0);i(c,m,W0,"⋱","\\ddots",!0);i(c,m,S,"⋮","\\varvdots");i(D,m,S,"⋮","\\varvdots");i(c,m,ce,"ˊ","\\acute");i(c,m,ce,"ˋ","\\grave");i(c,m,ce,"¨","\\ddot");i(c,m,ce,"~","\\tilde");i(c,m,ce,"ˉ","\\bar");i(c,m,ce,"˘","\\breve");i(c,m,ce,"ˇ","\\check");i(c,m,ce,"^","\\hat");i(c,m,ce,"⃗","\\vec");i(c,m,ce,"˙","\\dot");i(c,m,ce,"˚","\\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,ce,"ˊ","\\'");i(D,m,ce,"ˋ","\\`");i(D,m,ce,"ˆ","\\^");i(D,m,ce,"˜","\\~");i(D,m,ce,"ˉ","\\=");i(D,m,ce,"˘","\\u");i(D,m,ce,"˙","\\.");i(D,m,ce,"¸","\\c");i(D,m,ce,"˚","\\r");i(D,m,ce,"ˇ","\\v");i(D,m,ce,"¨",'\\"');i(D,m,ce,"˝","\\H");i(D,m,ce,"◯","\\textcircled");var Ks={"--":!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 Ja='0123456789/@."';for(var lr=0;lr<Ja.length;lr++){var Qa=Ja.charAt(lr);i(c,m,S,Qa,Qa)}var en='0123456789!@*()-=+";:?/.,';for(var cr=0;cr<en.length;cr++){var tn=en.charAt(cr);i(D,m,S,tn,tn)}var Et="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";for(var ur=0;ur<Et.length;ur++){var gt=Et.charAt(ur);i(c,m,Z,gt,gt),i(D,m,S,gt,gt)}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<Et.length;ze++){var fe=Et.charAt(ze);J=String.fromCharCode(55349,56320+ze),i(c,m,Z,fe,J),i(D,m,S,fe,J),J=String.fromCharCode(55349,56372+ze),i(c,m,Z,fe,J),i(D,m,S,fe,J),J=String.fromCharCode(55349,56424+ze),i(c,m,Z,fe,J),i(D,m,S,fe,J),J=String.fromCharCode(55349,56580+ze),i(c,m,Z,fe,J),i(D,m,S,fe,J),J=String.fromCharCode(55349,56684+ze),i(c,m,Z,fe,J),i(D,m,S,fe,J),J=String.fromCharCode(55349,56736+ze),i(c,m,Z,fe,J),i(D,m,S,fe,J),J=String.fromCharCode(55349,56788+ze),i(c,m,Z,fe,J),i(D,m,S,fe,J),J=String.fromCharCode(55349,56840+ze),i(c,m,Z,fe,J),i(D,m,S,fe,J),J=String.fromCharCode(55349,56944+ze),i(c,m,Z,fe,J),i(D,m,S,fe,J),ze<26&&(J=String.fromCharCode(55349,56632+ze),i(c,m,Z,fe,J),i(D,m,S,fe,J),J=String.fromCharCode(55349,56476+ze),i(c,m,Z,fe,J),i(D,m,S,fe,J))}J="𝕜";i(c,m,Z,"k",J);i(D,m,S,"k",J);for(var M0=0;M0<10;M0++){var p0=M0.toString();J=String.fromCharCode(55349,57294+M0),i(c,m,Z,p0,J),i(D,m,S,p0,J),J=String.fromCharCode(55349,57314+M0),i(c,m,Z,p0,J),i(D,m,S,p0,J),J=String.fromCharCode(55349,57324+M0),i(c,m,Z,p0,J),i(D,m,S,p0,J),J=String.fromCharCode(55349,57334+M0),i(c,m,Z,p0,J),i(D,m,S,p0,J)}var Dr="ÐÞþ";for(var dr=0;dr<Dr.length;dr++){var bt=Dr.charAt(dr);i(c,m,Z,bt,bt),i(D,m,S,bt,bt)}var yt=[["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"]],rn=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],I4=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[yt[l][2],yt[l][o]]}else if(120782<=s&&s<=120831){var u=Math.floor((s-120782)/10);return[rn[u][2],rn[u][o]]}else{if(s===120485||s===120486)return[yt[0][2],yt[0][o]];if(120486<s&&s<120782)return["",""];throw new L("Unsupported character: "+e)}},Ht=function(e,t,a){return le[a][e]&&le[a][e].replace&&(e=le[a][e].replace),{value:e,metrics:Kr(e,t,a)}},Ue=function(e,t,a,n,s){var o=Ht(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 Ve(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 Ve(e,0,0,0,0,0,s);if(n){u.maxFontSize=n.sizeMultiplier,n.style.isTight()&&u.classes.push("mtight");var h=n.getColor();h&&(u.style.color=h)}return u},j4=function(e,t,a,n){return n===void 0&&(n=[]),a.font==="boldsymbol"&&Ht(e,"Main-Bold",t).metrics?Ue(e,"Main-Bold",t,a,n.concat(["mathbf"])):e==="\\"||le[t][e].font==="main"?Ue(e,"Main-Regular",t,a,n):Ue(e,"AMS-Regular",t,a,n.concat(["amsrm"]))},P4=function(e,t,a,n,s){return s!=="textord"&&Ht(e,"Math-BoldItalic",t).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},O4=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="",h="";if(s.charCodeAt(0)===55349&&([d,h]=I4(s,n)),d.length>0)return Ue(s,d,n,t,o.concat(h));if(u){var g,x;if(u==="boldsymbol"){var w=P4(s,n,t,o,a);g=w.fontName,x=[w.fontClass]}else l?(g=eo[u].fontName,x=[u]):(g=xt(u,t.fontWeight,t.fontShape),x=[u,t.fontWeight,t.fontShape]);if(Ht(s,g,n).metrics)return Ue(s,g,n,t,o.concat(x));if(Ks.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 Qs(M)}}if(a==="mathord")return Ue(s,"Math-Italic",n,t,o.concat(["mathnormal"]));if(a==="textord"){var T=le[n][s]&&le[n][s].font;if(T==="ams"){var N=xt("amsrm",t.fontWeight,t.fontShape);return Ue(s,N,n,t,o.concat("amsrm",t.fontWeight,t.fontShape))}else if(T==="main"||!T){var R=xt("textrm",t.fontWeight,t.fontShape);return Ue(s,R,n,t,o.concat(t.fontWeight,t.fontShape))}else{var B=xt(T,t.fontWeight,t.fontShape);return Ue(s,B,n,t,o.concat(B,t.fontWeight,t.fontShape))}}else throw new Error("unexpected type: "+a+" in makeOrd")},F4=(r,e)=>{if(y0(r.classes)!==y0(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},q4=r=>{for(var e=0;e<r.length-1;e++){var t=r[e],a=r[e+1];t instanceof Ve&&a instanceof Ve&&F4(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},Qr=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},Ne=function(e,t,a,n){var s=new rt(e,t,a,n);return Qr(s),s},Js=(r,e,t,a)=>new rt(r,e,t,a),H4=function(e,t,a){var n=Ne([e],[],t);return n.height=Math.max(a||t.fontMetrics().defaultRuleThickness,t.minRuleThickness),n.style.borderBottomWidth=j(n.height),n.maxFontSize=1,n},V4=function(e,t,a,n){var s=new Jr(e,t,a,n);return Qr(s),s},Qs=function(e){var t=new tt(e);return Qr(t),t},_4=function(e,t){return e instanceof tt?Ne([],[e],t):e},G4=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 h=e.positionData,g=0;g<e.children.length;g++){var x=e.children[g];h-=x.type==="kern"?x.size:x.elem.height+x.elem.depth}d=h}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}},U4=function(e,t){for(var{children:a,depth:n}=G4(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=Ne(["pstrut"],[]);d.style.height=j(s);for(var h=[],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 T=k.elem,N=k.wrapperClasses||[],R=k.wrapperStyle||{},B=Ne(N,[d,T],void 0,R);B.style.top=j(-s-w-T.depth),k.marginLeft&&(B.style.marginLeft=k.marginLeft),k.marginRight&&(B.style.marginRight=k.marginRight),h.push(B),w+=T.height+T.depth}g=Math.min(g,w),x=Math.max(x,w)}var P=Ne(["vlist"],h);P.style.height=j(x);var O;if(g<0){var Y=Ne([],[]),q=Ne(["vlist"],[Y]);q.style.height=j(-g);var I=Ne(["vlist-s"],[new Ve("​")]);O=[Ne(["vlist-r"],[P,I]),Ne(["vlist-r"],[q])]}else O=[Ne(["vlist-r"],[P])];var $=Ne(["vlist-t"],O);return O.length===2&&$.classes.push("vlist-t2"),$.height=x,$.depth=-g,$},W4=(r,e)=>{var t=Ne(["mspace"],[],e),a=de(r,e);return t.style.marginRight=j(a),t},xt=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},eo={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"}},to={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},$4=function(e,t){var[a,n,s]=to[e],o=new x0(a),l=new c0([o],{width:j(n),height:j(s),style:"width:"+j(n),viewBox:"0 0 "+1e3*n+" "+1e3*s,preserveAspectRatio:"xMinYMin"}),u=Js(["overlay"],[l],t);return u.height=s,u.style.height=j(s),u.style.width=j(n),u},C={fontMap:eo,makeSymbol:Ue,mathsym:j4,makeSpan:Ne,makeSvgSpan:Js,makeLineSpan:H4,makeAnchor:V4,makeFragment:Qs,wrapFragment:_4,makeVList:U4,makeOrd:O4,makeGlue:W4,staticSvg:$4,svgData:to,tryCombineChars:q4},ue={number:3,unit:"mu"},z0={number:4,unit:"mu"},a0={number:5,unit:"mu"},X4={mord:{mop:ue,mbin:z0,mrel:a0,minner:ue},mop:{mord:ue,mop:ue,mrel:a0,minner:ue},mbin:{mord:z0,mop:z0,mopen:z0,minner:z0},mrel:{mord:a0,mop:a0,mopen:a0,minner:a0},mopen:{},mclose:{mop:ue,mbin:z0,mrel:a0,minner:ue},mpunct:{mord:ue,mop:ue,mrel:a0,mopen:ue,mclose:ue,mpunct:ue,minner:ue},minner:{mord:ue,mop:ue,mbin:z0,mrel:a0,mopen:ue,mpunct:ue,minner:ue}},Y4={mord:{mop:ue},mop:{mord:ue,mop:ue},mbin:{},mrel:{},mopen:{},mclose:{mop:ue},mpunct:{},minner:{mop:ue}},ro={},Rt={},Lt={};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)ro[t[u]]=l;e&&(s&&(Rt[e]=s),o&&(Lt[e]=o))}function R0(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 Bt=function(e){return e.type==="ordgroup"&&e.body.length===1?e.body[0]:e},ve=function(e){return e.type==="ordgroup"?e.body:[e]},u0=C.makeSpan,Z4=["leftmost","mbin","mopen","mrel","mop","mpunct"],K4=["rightmost","mrel","mclose","mpunct"],J4={display:K.DISPLAY,text:K.TEXT,script:K.SCRIPT,scriptscript:K.SCRIPTSCRIPT},Q4={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},ke=function(e,t,a,n){n===void 0&&(n=[null,null]);for(var s=[],o=0;o<e.length;o++){var l=re(e[o],t);if(l instanceof tt){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 h=e[0];h.type==="sizing"?d=t.havingSize(h.size):h.type==="styling"&&(d=t.havingStyle(J4[h.style]))}var g=u0([n[0]||"leftmost"],[],t),x=u0([n[1]||"rightmost"],[],t),w=a==="root";return an(s,(M,k)=>{var T=k.classes[0],N=M.classes[0];T==="mbin"&&K4.includes(N)?k.classes[0]="mord":N==="mbin"&&Z4.includes(T)&&(M.classes[0]="mord")},{node:g},x,w),an(s,(M,k)=>{var T=Er(k),N=Er(M),R=T&&N?M.hasClass("mtight")?Y4[T][N]:X4[T][N]:null;if(R)return C.makeGlue(R,d)},{node:g},x,w),s},an=function r(e,t,a,n,s){n&&e.push(n);for(var o=0;o<e.length;o++){var l=e[o],u=ao(l);if(u){r(u.children,t,a,null,s);continue}var d=!l.hasClass("mspace");if(d){var h=t(l,a.node);h&&(a.insertAfter?a.insertAfter(h):(e.unshift(h),o++))}d?a.node=l:s&&l.hasClass("newline")&&(a.node=u0(["leftmost"])),a.insertAfter=(g=>x=>{e.splice(g+1,0,x),o++})(o)}n&&e.pop()},ao=function(e){return e instanceof tt||e instanceof Jr||e instanceof rt&&e.hasClass("enclosing")?e:null},e2=function r(e,t){var a=ao(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},Er=function(e,t){return e?(t&&(e=e2(e,t)),Q4[e.classes[0]]||null):null},et=function(e,t){var a=["nulldelimiter"].concat(e.baseSizingClasses());return u0(t.concat(a))},re=function(e,t,a){if(!e)return u0();if(Rt[e.type]){var n=Rt[e.type](e,t);if(a&&t.size!==a.size){n=u0(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 wt(r,e){var t=u0(["base"],r,e),a=u0(["strut"]);return a.style.height=j(t.height+t.depth),t.depth&&(a.style.verticalAlign=j(-t.depth)),t.children.unshift(a),t}function Rr(r,e){var t=null;r.length===1&&r[0].type==="tag"&&(t=r[0].tag,r=r[0].body);var a=ke(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(wt(o,e)),o=[])}else a[l].hasClass("newline")&&(o.pop(),o.length>0&&(s.push(wt(o,e)),o=[]),s.push(a[l]));o.length>0&&s.push(wt(o,e));var d;t?(d=wt(ke(t,e,!0)),d.classes=["tag"],s.push(d)):n&&s.push(n);var h=u0(["katex-html"],s);if(h.setAttribute("aria-hidden","true"),d){var g=d.children[0];g.style.height=j(h.height+h.depth),h.depth&&(g.style.verticalAlign=j(-h.depth))}return h}function no(r){return new tt(r)}class Ie{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=y0(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+=ae.escape(this.attributes[t]),e+='"');this.classes.length>0&&(e+=' class ="'+ae.escape(y0(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 ae.escape(this.toText())}toText(){return this.text}}class t2{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",j(this.width)),e}toMarkup(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+j(this.width)+'"/>'}toText(){return this.character?this.character:" "}}var E={MathNode:Ie,TextNode:Ze,SpaceNode:t2,newDocumentFragment:no},_e=function(e,t,a){return le[t][e]&&le[t][e].replace&&e.charCodeAt(0)!==55349&&!(Ks.hasOwnProperty(e)&&a&&(a.fontFamily&&a.fontFamily.slice(4,6)==="tt"||a.font&&a.font.slice(4,6)==="tt"))&&(e=le[t][e].replace),new E.TextNode(e)},ea=function(e){return e.length===1?e[0]:new E.MathNode("mrow",e)},ta=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;le[n][s]&&le[n][s].replace&&(s=le[n][s].replace);var o=C.fontMap[a].fontName;return Kr(s,o,n)?C.fontMap[a].variant:null};function mr(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 Ee=function(e,t,a){if(e.length===1){var n=oe(e[0],t);return a&&n instanceof Ie&&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 Ie&&o instanceof Ie){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(mr(u)&&o.type==="mn"){o.children.push(...u.children);continue}else if(u.type==="mn"&&mr(o))u.children=[...o.children,...u.children],s.pop();else if((u.type==="msup"||u.type==="msub")&&u.children.length>=1&&(o.type==="mn"||mr(o))){var d=u.children[0];d instanceof Ie&&d.type==="mn"&&(d.children=[...o.children,...d.children],s.pop())}else if(o.type==="mi"&&o.children.length===1){var h=o.children[0];if(h instanceof Ze&&h.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},w0=function(e,t,a){return ea(Ee(e,t,a))},oe=function(e,t){if(!e)return new E.MathNode("mrow");if(Lt[e.type]){var a=Lt[e.type](e,t);return a}else throw new L("Got group of unknown type: '"+e.type+"'")};function nn(r,e,t,a,n){var s=Ee(r,t),o;s.length===1&&s[0]instanceof Ie&&["mrow","mtable"].includes(s[0].type)?o=s[0]:o=new E.MathNode("mrow",s);var l=new E.MathNode("annotation",[new E.TextNode(e)]);l.setAttribute("encoding","application/x-tex");var u=new E.MathNode("semantics",[o,l]),d=new E.MathNode("math",[u]);d.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),a&&d.setAttribute("display","block");var h=n?"katex":"katex-mathml";return C.makeSpan([h],[d])}var so=function(e){return new s0({style:e.displayMode?K.DISPLAY:K.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness})},oo=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},r2=function(e,t,a){var n=so(a),s;if(a.output==="mathml")return nn(e,t,n,a.displayMode,!0);if(a.output==="html"){var o=Rr(e,n);s=C.makeSpan(["katex"],[o])}else{var l=nn(e,t,n,a.displayMode,!1),u=Rr(e,n);s=C.makeSpan(["katex"],[l,u])}return oo(s,a)},a2=function(e,t,a){var n=so(a),s=Rr(e,n),o=C.makeSpan(["katex"],[s]);return oo(o,a)},n2={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":"="},s2=function(e){var t=new E.MathNode("mo",[new E.TextNode(n2[e.replace(/^\\/,"")])]);return t.setAttribute("stretchy","true"),t},o2={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]},i2=function(e){return e.type==="ordgroup"?e.body.length:1},l2=function(e,t){function a(){var l=4e5,u=e.label.slice(1);if(["widehat","widecheck","widetilde","utilde"].includes(u)){var d=e,h=i2(d.base),g,x,w;if(h>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][h];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 x0(x),T=new c0([k],{width:"100%",height:j(w),viewBox:"0 0 "+l+" "+g,preserveAspectRatio:"none"});return{span:C.makeSvgSpan([],[T],t),minWidth:0,height:w}}else{var N=[],R=o2[u],[B,P,O]=R,Y=O/1e3,q=B.length,I,$;if(q===1){var me=R[3];I=["hide-tail"],$=[me]}else if(q===2)I=["halfarrow-left","halfarrow-right"],$=["xMinYMin","xMaxYMin"];else if(q===3)I=["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 ie=0;ie<q;ie++){var te=new x0(B[ie]),ge=new c0([te],{width:"400em",height:j(Y),viewBox:"0 0 "+l+" "+O,preserveAspectRatio:$[ie]+" slice"}),xe=C.makeSvgSpan([I[ie]],[ge],t);if(q===1)return{span:xe,minWidth:P,height:Y};xe.style.height=j(Y),N.push(xe)}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=j(o),s>0&&(n.style.minWidth=j(s)),n},c2=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 Nr({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(t)&&d.push(new Nr({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var h=new c0(d,{width:"100%",height:j(l)});o=C.makeSvgSpan([],[h],s)}return o.height=l,o.style.height=j(l),o},d0={encloseSpan:c2,mathMLnode:s2,svgSpan:l2};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 ra(r){var e=Vt(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 Vt(r){return r&&(r.type==="atom"||B4.hasOwnProperty(r.type))?r:null}var aa=(r,e)=>{var t,a,n;r&&r.type==="supsub"?(a=Q(r.base,"accent"),t=a.base,r.base=t,n=R4(re(r,e)),r.base=a):(a=Q(r,"accent"),t=a.base);var s=re(t,e.havingCrampedStyle()),o=a.isShifty&&ae.isCharacterBox(t),l=0;if(o){var u=ae.getBaseElem(t),d=re(u,e.havingCrampedStyle());l=Ka(d).skew}var h=a.label==="\\c",g=h?s.height+s.depth:Math.min(s.height,e.fontMetrics().xHeight),x;if(a.isStretchy)x=d0.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% - "+j(2*l)+")",marginLeft:j(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=Ka(w),w.italic=0,M=w.width,h&&(g+=w.depth)),x=C.makeSpan(["accent-body"],[w]);var k=a.label==="\\textcircled";k&&(x.classes.push("accent-full"),g=s.height);var T=l;k||(T-=M/2),x.style.left=j(T),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},io=(r,e)=>{var t=r.isStretchy?d0.mathMLnode(r.label):new E.MathNode("mo",[_e(r.label,r.mode)]),a=new E.MathNode("mover",[oe(r.base,e),t]);return a.setAttribute("accent","true"),a},u2=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=Bt(e[0]),a=!u2.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:aa,mathmlBuilder:io});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:aa,mathmlBuilder:io});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=re(r.base,e),a=d0.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=d0.mathMLnode(r.label),a=new E.MathNode("munder",[oe(r.base,e),t]);return a.setAttribute("accentunder","true"),a}});var St=r=>{var e=new E.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(re(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(re(r.below,a,e),e),o.classes.push(s+"-arrow-pad"));var l=d0.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 h;if(o){var g=-e.fontMetrics().axisHeight+o.height+.5*l.height+.111;h=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 h=C.makeVList({positionType:"individualShift",children:[{type:"elem",elem:n,shift:d},{type:"elem",elem:l,shift:u}]},e);return h.children[0].children[0].children[1].classes.push("svg-align"),C.makeSpan(["mrel","x-arrow"],[h],e)},mathmlBuilder(r,e){var t=d0.mathMLnode(r.label);t.setAttribute("minsize",r.label.charAt(0)==="x"?"1.75em":"3.0em");var a;if(r.body){var n=St(oe(r.body,e));if(r.below){var s=St(oe(r.below,e));a=new E.MathNode("munderover",[t,s,n])}else a=new E.MathNode("mover",[t,n])}else if(r.below){var o=St(oe(r.below,e));a=new E.MathNode("munder",[t,o])}else a=St(),a=new E.MathNode("mover",[t,a]);return a}});var d2=C.makeSpan;function lo(r,e){var t=ke(r.body,e,!0);return d2([r.mclass],t,e)}function co(r,e){var t,a=Ee(r.body,e);return r.mclass==="minner"?t=new E.MathNode("mpadded",a):r.mclass==="mord"?r.isCharacterBox?(t=a[0],t.type="mi"):t=new E.MathNode("mi",a):(r.isCharacterBox?(t=a[0],t.type="mo"):t=new E.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:ve(n),isCharacterBox:ae.isCharacterBox(n)}},htmlBuilder:lo,mathmlBuilder:co});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:ve(e[1]),isCharacterBox:ae.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:ve(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:ae.isCharacterBox(u)}},htmlBuilder:lo,mathmlBuilder:co});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:ve(e[0])}},htmlBuilder(r,e){var t=ke(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=Ee(r.body,e),a=new E.MathNode("mstyle",t);return a.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),a}});var m2={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},sn=()=>({type:"styling",body:[],mode:"math",style:"display"}),on=r=>r.type==="textord"&&r.text==="@",h2=(r,e)=>(r.type==="mathord"||r.type==="atom")&&r.text===e;function f2(r,e,t){var a=m2[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 p2(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=sn(),u=0;u<o.length;u++)if(!on(o[u]))l.body.push(o[u]);else{a.push(l),u+=1;var d=ra(o[u]).text,h=new Array(2);if(h[0]={type:"ordgroup",mode:"math",body:[]},h[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(h2(o[w],d)){x=!1,u=w;break}if(on(o[w]))throw new L("Missing a "+d+" character to complete a CD arrow.",o[w]);h[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=f2(d,h,r),k={type:"styling",body:[M],mode:"math",style:"display"};a.push(k),l=sn()}s%2===0?a.push(l):a.shift(),a=[],n.push(a)}r.gullet.endGroup(),r.gullet.endGroup();var T=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:T,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(re(r.label,t,e),e);return a.classes.push("cd-label-"+r.side),a.style.bottom=j(.8-a.depth),a.height=0,a.depth=0,a},mathmlBuilder(r,e){var t=new E.MathNode("mrow",[oe(r.label,e)]);return t=new E.MathNode("mpadded",[t]),t.setAttribute("width","0"),r.side==="left"&&t.setAttribute("lspace","-1width"),t.setAttribute("voffset","0.7em"),t=new E.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(re(r.fragment,e),e);return t.classes.push("cd-vert-arrow"),t},mathmlBuilder(r,e){return new E.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 uo=(r,e)=>{var t=ke(r.body,e.withColor(r.color),!1);return C.makeFragment(t)},mo=(r,e)=>{var t=Ee(r.body,e.withColor(r.color)),a=new E.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:ve(n)}},htmlBuilder:uo,mathmlBuilder:mo});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:uo,mathmlBuilder:mo});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=j(de(r.size,e)))),t},mathmlBuilder(r,e){var t=new E.MathNode("mspace");return r.newLine&&(t.setAttribute("linebreak","newline"),r.size&&t.setAttribute("height",j(de(r.size,e)))),t}});var Lr={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},ho=r=>{var e=r.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(e))throw new L("Expected a control sequence",r);return e},v2=r=>{var e=r.gullet.popToken();return e.text==="="&&(e=r.gullet.popToken(),e.text===" "&&(e=r.gullet.popToken())),e},fo=(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(Lr[a.text])return(t==="\\global"||t==="\\\\globallong")&&(a.text=Lr[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===Lr[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=ho(e.gullet.popToken());e.gullet.consumeSpaces();var n=v2(e);return fo(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=ho(e.gullet.popToken()),n=e.gullet.popToken(),s=e.gullet.popToken();return fo(e,a,s,t==="\\\\globalfuture"),e.gullet.pushToken(s),e.gullet.pushToken(n),{type:"internal",mode:e.mode}}});var Y0=function(e,t,a){var n=le.math[e]&&le.math[e].replace,s=Kr(n||e,t,a);if(!s)throw new Error("Unsupported symbol "+e+" and font size "+t+".");return s},na=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},po=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=j(s),e.height-=s,e.depth+=s},g2=function(e,t,a,n,s,o){var l=C.makeSymbol(e,"Main-Regular",s,n),u=na(l,t,n,o);return a&&po(u,n,t),u},b2=function(e,t,a,n){return C.makeSymbol(e,"Size"+t+"-Regular",a,n)},vo=function(e,t,a,n,s,o){var l=b2(e,t,s,n),u=na(C.makeSpan(["delimsizing","size"+t],[l],n),K.TEXT,n,o);return a&&po(u,n,K.TEXT),u},hr=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}},fr=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 x0("inner",k4(e,Math.round(1e3*t))),o=new c0([s],{width:j(n),height:j(t),style:"width:"+j(n),viewBox:"0 0 "+1e3*n+" "+Math.round(1e3*t),preserveAspectRatio:"xMinYMin"}),l=C.makeSvgSpan([],[o],a);return l.height=t,l.style.height=j(t),l.style.width=j(n),{type:"elem",elem:l}},Br=.008,kt={type:"kern",size:-1*Br},y2=["|","\\lvert","\\rvert","\\vert"],x2=["\\|","\\lVert","\\rVert","\\Vert"],go=function(e,t,a,n,s,o){var l,u,d,h,g="",x=0;l=d=h=e,u=null;var w="Size1-Regular";e==="\\uparrow"?d=h="⏐":e==="\\Uparrow"?d=h="‖":e==="\\downarrow"?l=d="⏐":e==="\\Downarrow"?l=d="‖":e==="\\updownarrow"?(l="\\uparrow",d="⏐",h="\\downarrow"):e==="\\Updownarrow"?(l="\\Uparrow",d="‖",h="\\Downarrow"):y2.includes(e)?(d="∣",g="vert",x=333):x2.includes(e)?(d="∥",g="doublevert",x=556):e==="["||e==="\\lbrack"?(l="⎡",d="⎢",h="⎣",w="Size4-Regular",g="lbrack",x=667):e==="]"||e==="\\rbrack"?(l="⎤",d="⎥",h="⎦",w="Size4-Regular",g="rbrack",x=667):e==="\\lfloor"||e==="⌊"?(d=l="⎢",h="⎣",w="Size4-Regular",g="lfloor",x=667):e==="\\lceil"||e==="⌈"?(l="⎡",d=h="⎢",w="Size4-Regular",g="lceil",x=667):e==="\\rfloor"||e==="⌋"?(d=l="⎥",h="⎦",w="Size4-Regular",g="rfloor",x=667):e==="\\rceil"||e==="⌉"?(l="⎤",d=h="⎥",w="Size4-Regular",g="rceil",x=667):e==="("||e==="\\lparen"?(l="⎛",d="⎜",h="⎝",w="Size4-Regular",g="lparen",x=875):e===")"||e==="\\rparen"?(l="⎞",d="⎟",h="⎠",w="Size4-Regular",g="rparen",x=875):e==="\\{"||e==="\\lbrace"?(l="⎧",u="⎨",h="⎩",d="⎪",w="Size4-Regular"):e==="\\}"||e==="\\rbrace"?(l="⎫",u="⎬",h="⎭",d="⎪",w="Size4-Regular"):e==="\\lgroup"||e==="⟮"?(l="⎧",h="⎩",d="⎪",w="Size4-Regular"):e==="\\rgroup"||e==="⟯"?(l="⎫",h="⎭",d="⎪",w="Size4-Regular"):e==="\\lmoustache"||e==="⎰"?(l="⎧",h="⎭",d="⎪",w="Size4-Regular"):(e==="\\rmoustache"||e==="⎱")&&(l="⎫",h="⎩",d="⎪",w="Size4-Regular");var M=Y0(l,w,s),k=M.height+M.depth,T=Y0(d,w,s),N=T.height+T.depth,R=Y0(h,w,s),B=R.height+R.depth,P=0,O=1;if(u!==null){var Y=Y0(u,w,s);P=Y.height+Y.depth,O=2}var q=k+B+P,I=Math.max(0,Math.ceil((t-q)/(O*N))),$=q+I*O*N,me=n.fontMetrics().axisHeight;a&&(me*=n.sizeMultiplier);var ie=$/2-me,te=[];if(g.length>0){var ge=$-k-B,xe=Math.round($*1e3),he=C4(g,Math.round(ge*1e3)),pe=new x0(g,he),Me=(x/1e3).toFixed(3)+"em",X=(xe/1e3).toFixed(3)+"em",t0=new c0([pe],{width:Me,height:X,viewBox:"0 0 "+x+" "+xe}),Re=C.makeSvgSpan([],[t0],n);Re.height=xe/1e3,Re.style.width=Me,Re.style.height=X,te.push({type:"elem",elem:Re})}else{if(te.push(hr(h,w,s)),te.push(kt),u===null){var Le=$-k-B+2*Br;te.push(fr(d,Le,n))}else{var Ce=($-k-B-P)/2+2*Br;te.push(fr(d,Ce,n)),te.push(kt),te.push(hr(u,w,s)),te.push(kt),te.push(fr(d,Ce,n))}te.push(kt),te.push(hr(l,w,s))}var ne=n.havingBaseStyle(K.TEXT),we=C.makeVList({positionType:"bottom",positionData:ie,children:te},ne);return na(C.makeSpan(["delimsizing","mult"],[we],ne),K.TEXT,n,o)},pr=80,vr=.08,gr=function(e,t,a,n,s){var o=S4(e,n,a),l=new x0(e,o),u=new c0([l],{width:"400em",height:j(t),viewBox:"0 0 400000 "+a,preserveAspectRatio:"xMinYMin slice"});return C.makeSvgSpan(["hide-tail"],[u],s)},w2=function(e,t){var a=t.havingBaseSizing(),n=wo("\\surd",e*a.sizeMultiplier,xo,a),s=a.sizeMultiplier,o=Math.max(0,t.minRuleThickness-t.fontMetrics().sqrtRuleThickness),l,u=0,d=0,h=0,g;return n.type==="small"?(h=1e3+1e3*o+pr,e<1?s=1:e<1.4&&(s=.7),u=(1+o+vr)/s,d=(1+o)/s,l=gr("sqrtMain",u,h,o,t),l.style.minWidth="0.853em",g=.833/s):n.type==="large"?(h=(1e3+pr)*Z0[n.size],d=(Z0[n.size]+o)/s,u=(Z0[n.size]+o+vr)/s,l=gr("sqrtSize"+n.size,u,h,o,t),l.style.minWidth="1.02em",g=1/s):(u=e+o+vr,d=e+o,h=Math.floor(1e3*e+o)+pr,l=gr("sqrtTall",u,h,o,t),l.style.minWidth="0.742em",g=1.056),l.height=d,l.style.height=j(u),{span:l,advanceWidth:g,ruleWidth:(t.fontMetrics().sqrtRuleThickness+o)*s}},bo=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"],S2=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"],yo=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],Z0=[0,1.2,1.8,2.4,3],k2=function(e,t,a,n,s){if(e==="<"||e==="\\lt"||e==="⟨"?e="\\langle":(e===">"||e==="\\gt"||e==="⟩")&&(e="\\rangle"),bo.includes(e)||yo.includes(e))return vo(e,t,!1,a,n,s);if(S2.includes(e))return go(e,Z0[t],!1,a,n,s);throw new L("Illegal delimiter: '"+e+"'")},C2=[{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}],M2=[{type:"small",style:K.SCRIPTSCRIPT},{type:"small",style:K.SCRIPT},{type:"small",style:K.TEXT},{type:"stack"}],xo=[{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"}],z2=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.")},wo=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=Y0(e,z2(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]},So=function(e,t,a,n,s,o){e==="<"||e==="\\lt"||e==="⟨"?e="\\langle":(e===">"||e==="\\gt"||e==="⟩")&&(e="\\rangle");var l;yo.includes(e)?l=C2:bo.includes(e)?l=xo:l=M2;var u=wo(e,t,l,n);return u.type==="small"?g2(e,u.style,a,n,s,o):u.type==="large"?vo(e,u.size,a,n,s,o):go(e,t,a,n,s,o)},T2=function(e,t,a,n,s,o){var l=n.fontMetrics().axisHeight*n.sizeMultiplier,u=901,d=5/n.fontMetrics().ptPerEm,h=Math.max(t-l,a+l),g=Math.max(h/500*u,2*h-d);return So(e,g,!0,n,s,o)},l0={sqrtImage:w2,sizedDelim:k2,sizeToMaxHeight:Z0,customSizedDelim:So,leftRightDelim:T2},ln={"\\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}},A2=["(","\\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 Gt(r,e){var t=Vt(r);if(t&&A2.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=Gt(e[0],r);return{type:"delimsizing",mode:r.parser.mode,size:ln[r.funcName].size,mclass:ln[r.funcName].mclass,delim:t.text}},htmlBuilder:(r,e)=>r.delim==="."?C.makeSpan([r.mclass]):l0.sizedDelim(r.delim,r.size,e,r.mode,[r.mclass]),mathmlBuilder:r=>{var e=[];r.delim!=="."&&e.push(_e(r.delim,r.mode));var t=new E.MathNode("mo",e);r.mclass==="mopen"||r.mclass==="mclose"?t.setAttribute("fence","true"):t.setAttribute("fence","false"),t.setAttribute("stretchy","true");var a=j(l0.sizeToMaxHeight[r.size]);return t.setAttribute("minsize",a),t.setAttribute("maxsize",a),t}});function cn(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:Gt(e[0],r).text,color:t}}});F({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(r,e)=>{var t=Gt(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)=>{cn(r);for(var t=ke(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=et(e,["mopen"]):l=l0.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],h=d.isMiddle;h&&(t[u]=l0.leftRightDelim(h.delim,a,n,h.options,r.mode,[]))}var g;if(r.right===".")g=et(e,["mclose"]);else{var x=r.rightColor?e.withColor(r.rightColor):e;g=l0.leftRightDelim(r.right,a,n,x,r.mode,["mclose"])}return t.push(g),C.makeSpan(["minner"],t,e)},mathmlBuilder:(r,e)=>{cn(r);var t=Ee(r.body,e);if(r.left!=="."){var a=new E.MathNode("mo",[_e(r.left,r.mode)]);a.setAttribute("fence","true"),t.unshift(a)}if(r.right!=="."){var n=new E.MathNode("mo",[_e(r.right,r.mode)]);n.setAttribute("fence","true"),r.rightColor&&n.setAttribute("mathcolor",r.rightColor),t.push(n)}return ea(t)}});F({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(r,e)=>{var t=Gt(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=et(e,[]);else{t=l0.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==="|"?_e("|","text"):_e(r.delim,r.mode),a=new E.MathNode("mo",[t]);return a.setAttribute("fence","true"),a.setAttribute("lspace","0.05em"),a.setAttribute("rspace","0.05em"),a}});var sa=(r,e)=>{var t=C.wrapFragment(re(r.body,e),e),a=r.label.slice(1),n=e.sizeMultiplier,s,o=0,l=ae.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=de({number:.6,unit:"pt"},e),d=de({number:.35,unit:"ex"},e),h=e.havingBaseSizing();n=n/h.sizeMultiplier;var g=t.height+t.depth+u+d;t.style.paddingLeft=j(g/2+u);var x=Math.floor(1e3*g*n),w=x4(x),M=new c0([new x0("phase",w)],{width:"400em",height:j(x/1e3),viewBox:"0 0 400000 "+x,preserveAspectRatio:"xMinYMin slice"});s=C.makeSvgSpan(["hide-tail"],[M],e),s.style.height=j(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,T=0,N=0;/box/.test(a)?(N=Math.max(e.fontMetrics().fboxrule,e.minRuleThickness),k=e.fontMetrics().fboxsep+(a==="colorbox"?0:N),T=k):a==="angl"?(N=Math.max(e.fontMetrics().defaultRuleThickness,e.minRuleThickness),k=4*N,T=Math.max(0,.25-t.depth)):(k=l?.2:0,T=k),s=d0.encloseSpan(t,a,k,T,e),/fbox|boxed|fcolorbox/.test(a)?(s.style.borderStyle="solid",s.style.borderWidth=j(N)):a==="angl"&&N!==.049&&(s.style.borderTopWidth=j(N),s.style.borderRightWidth=j(N)),o=t.depth+T,r.backgroundColor&&(s.style.backgroundColor=r.backgroundColor,r.borderColor&&(s.style.borderColor=r.borderColor))}var R;if(r.backgroundColor)R=C.makeVList({positionType:"individualShift",children:[{type:"elem",elem:s,shift:o},{type:"elem",elem:t,shift:0}]},e);else{var B=/cancel|phase/.test(a)?["svg-align"]:[];R=C.makeVList({positionType:"individualShift",children:[{type:"elem",elem:t,shift:0},{type:"elem",elem:s,shift:o,wrapperClasses:B}]},e)}return/cancel/.test(a)&&(R.height=t.height,R.depth=t.depth),/cancel/.test(a)&&!l?C.makeSpan(["mord","cancel-lap"],[R],e):C.makeSpan(["mord"],[R],e)},oa=(r,e)=>{var t=0,a=new E.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:sa,mathmlBuilder:oa});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:sa,mathmlBuilder:oa});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:sa,mathmlBuilder:oa});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 ko={};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)ko[t[u]]=l;s&&(Rt[e]=s),o&&(Lt[e]=o)}var Co={};function v(r,e){Co[r]=e}function un(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 Ut=r=>{var e=r.parser.settings;if(!e.displayMode)throw new L("{"+r.envName+"} can be used only in display mode.")};function ia(r){if(r.indexOf("ed")===-1)return r.indexOf("*")===-1}function S0(r,e,t){var{hskipBeforeAndAfter:a,addJot:n,cols:s,arraystretch:o,colSeparationType:l,autoTag:u,singleRow:d,emptySingleRow:h,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],T=[],N=[],R=u!=null?[]:void 0;function B(){u&&r.gullet.macros.set("\\@eqnsw","1",!0)}function P(){R&&(r.gullet.macros.get("\\df@tag")?(R.push(r.subparse([new je("\\df@tag")])),r.gullet.macros.set("\\df@tag",void 0,!0)):R.push(!!u&&r.gullet.macros.get("\\@eqnsw")==="1"))}for(B(),N.push(un(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||!h)&&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)),T.push(q?q.value:null),P(),N.push(un(r)),M=[],k.push(M),B()}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:T,hskipBeforeAndAfter:a,hLinesBeforeRow:N,colSeparationType:l,tags:R,leqno:x}}function la(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=[],h=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"?de({number:3,unit:"ex"},t):12*g,k=3*g,T=e.arraystretch*M,N=.7*T,R=.3*T,B=0;function P(nt){for(var st=0;st<nt.length;++st)st>0&&(B+=.25),d.push({pos:B,isDashed:nt[st]})}for(P(o[0]),a=0;a<e.body.length;++a){var O=e.body[a],Y=N,q=R;l<O.length&&(l=O.length);var I=new Array(O.length);for(n=0;n<O.length;++n){var $=re(O[n],t);q<$.depth&&(q=$.depth),Y<$.height&&(Y=$.height),I[n]=$}var me=e.rowGaps[a],ie=0;me&&(ie=de(me,t),ie>0&&(ie+=R,q<ie&&(q=ie),ie=0)),e.addJot&&(q+=k),I.height=Y,I.depth=q,B+=Y,I.pos=B,B+=q+ie,u[a]=I,P(o[a+1])}var te=B/2+t.fontMetrics().axisHeight,ge=e.cols||[],xe=[],he,pe,Me=[];if(e.tags&&e.tags.some(nt=>nt))for(a=0;a<s;++a){var X=u[a],t0=X.pos-te,Re=e.tags[a],Le=void 0;Re===!0?Le=C.makeSpan(["eqn-num"],[],t):Re===!1?Le=C.makeSpan([],[],t):Le=C.makeSpan([],ke(Re,t,!0),t),Le.depth=X.depth,Le.height=X.height,Me.push({type:"elem",elem:Le,shift:t0})}for(n=0,pe=0;n<l||pe<ge.length;++n,++pe){for(var Ce=ge[pe]||{},ne=!0;Ce.type==="separator";){if(ne||(he=C.makeSpan(["arraycolsep"],[]),he.style.width=j(t.fontMetrics().doubleRuleSep),xe.push(he)),Ce.separator==="|"||Ce.separator===":"){var we=Ce.separator==="|"?"solid":"dashed",Be=C.makeSpan(["vertical-separator"],[],t);Be.style.height=j(B),Be.style.borderRightWidth=j(h),Be.style.borderRightStyle=we,Be.style.margin="0 "+j(-h/2);var k0=B-te;k0&&(Be.style.verticalAlign=j(-k0)),xe.push(Be)}else throw new L("Invalid separator type: "+Ce.separator);pe++,Ce=ge[pe]||{},ne=!1}if(!(n>=l)){var se=void 0;(n>0||e.hskipBeforeAndAfter)&&(se=ae.deflt(Ce.pregap,x),se!==0&&(he=C.makeSpan(["arraycolsep"],[]),he.style.width=j(se),xe.push(he)));var Ge=[];for(a=0;a<s;++a){var Oe=u[a],Fe=Oe[n];if(Fe){var _=Oe.pos-te;Fe.depth=Oe.depth,Fe.height=Oe.height,Ge.push({type:"elem",elem:Fe,shift:_})}}Ge=C.makeVList({positionType:"individualShift",children:Ge},t),Ge=C.makeSpan(["col-align-"+(Ce.align||"c")],[Ge]),xe.push(Ge),(n<l-1||e.hskipBeforeAndAfter)&&(se=ae.deflt(Ce.postgap,x),se!==0&&(he=C.makeSpan(["arraycolsep"],[]),he.style.width=j(se),xe.push(he)))}}if(u=C.makeSpan(["mtable"],xe),d.length>0){for(var qe=C.makeLineSpan("hline",t,h),_o=C.makeLineSpan("hdashline",t,h),$t=[{type:"elem",elem:u,shift:0}];d.length>0;){var pa=d.pop(),va=pa.pos-te;pa.isDashed?$t.push({type:"elem",elem:_o,shift:va}):$t.push({type:"elem",elem:qe,shift:va})}u=C.makeVList({positionType:"individualShift",children:$t},t)}if(Me.length===0)return C.makeSpan(["mord"],[u],t);var Xt=C.makeVList({positionType:"individualShift",children:Me},t);return Xt=C.makeSpan(["tag"],[Xt],t),C.makeFragment([u,Xt])},N2={c:"center ",l:"left ",r:"right "},e0=function(e,t){for(var a=[],n=new E.MathNode("mtd",[],["mtr-glue"]),s=new E.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 E.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 E.MathNode("mtr",u))}var h=new E.MathNode("mtable",a),g=e.arraystretch===.5?.1:.16+e.arraystretch-1+(e.addJot?.09:0);h.setAttribute("rowspacing",j(g));var x="",w="";if(e.cols&&e.cols.length>0){var M=e.cols,k="",T=!1,N=0,R=M.length;M[0].type==="separator"&&(x+="top ",N=1),M[M.length-1].type==="separator"&&(x+="bottom ",R-=1);for(var B=N;B<R;B++)M[B].type==="align"?(w+=N2[M[B].align],T&&(k+="none "),T=!0):M[B].type==="separator"&&T&&(k+=M[B].separator==="|"?"solid ":"dashed ",T=!1);h.setAttribute("columnalign",w.trim()),/[sd]/.test(k)&&h.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 ";h.setAttribute("columnspacing",O.trim())}else e.colSeparationType==="alignat"||e.colSeparationType==="gather"?h.setAttribute("columnspacing","0em"):e.colSeparationType==="small"?h.setAttribute("columnspacing","0.2778em"):e.colSeparationType==="CD"?h.setAttribute("columnspacing","0.5em"):h.setAttribute("columnspacing","1em");var q="",I=e.hLinesBeforeRow;x+=I[0].length>0?"left ":"",x+=I[I.length-1].length>0?"right ":"";for(var $=1;$<I.length-1;$++)q+=I[$].length===0?"none ":I[$][0]?"dashed ":"solid ";return/[sd]/.test(q)&&h.setAttribute("rowlines",q.trim()),x!==""&&(h=new E.MathNode("menclose",[h]),h.setAttribute("notation",x.trim())),e.arraystretch&&e.arraystretch<1&&(h=new E.MathNode("mstyle",[h]),h.setAttribute("scriptlevel","1")),h},Mo=function(e,t){e.envName.indexOf("ed")===-1&&Ut(e);var a=[],n=e.envName.indexOf("at")>-1?"alignat":"align",s=e.envName==="split",o=S0(e.parser,{cols:a,addJot:!0,autoTag:s?void 0:ia(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 h="",g=0;g<t[0].body.length;g++){var x=Q(t[0].body[g],"textord");h+=x.text}l=Number(h),u=l*2}var w=!u;o.body.forEach(function(N){for(var R=1;R<N.length;R+=2){var B=Q(N[R],"styling"),P=Q(B.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",T=0;M%2===1?k="l":M>0&&w&&(T=1),a[M]={type:"align",align:k,pregap:T,postgap:0}}return o.colSeparationType=w?"align":"alignat",o};Je({type:"array",names:["array","darray"],props:{numArgs:1},handler(r,e){var t=Vt(e[0]),a=t?[e[0]]:Q(e[0],"ordgroup").body,n=a.map(function(o){var l=ra(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 S0(r.parser,s,la(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=S0(r.parser,a,la(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=S0(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=Vt(e[0]),a=t?[e[0]]:Q(e[0],"ordgroup").body,n=a.map(function(o){var l=ra(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=S0(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=S0(r.parser,e,la(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:Mo,htmlBuilder:Qe,mathmlBuilder:e0});Je({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(r){["gather","gather*"].includes(r.envName)&&Ut(r);var e={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:ia(r.envName),emptySingleRow:!0,leqno:r.parser.settings.leqno};return S0(r.parser,e,"display")},htmlBuilder:Qe,mathmlBuilder:e0});Je({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:Mo,htmlBuilder:Qe,mathmlBuilder:e0});Je({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(r){Ut(r);var e={autoTag:ia(r.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:r.parser.settings.leqno};return S0(r.parser,e,"display")},htmlBuilder:Qe,mathmlBuilder:e0});Je({type:"array",names:["CD"],props:{numArgs:0},handler(r){return Ut(r),p2(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 dn=ko;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(!dn.hasOwnProperty(s))throw new L("No such environment: "+s,n);var l=dn[s],{args:u,optArgs:d}=t.parseArguments("\\begin{"+s+"}",l),h={mode:t.mode,envName:s,parser:t},g=l.handler(h,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 zo=(r,e)=>{var t=r.font,a=e.withFont(t);return re(r.body,a)},To=(r,e)=>{var t=r.font,a=e.withFont(t);return oe(r.body,a)},mn={"\\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=Bt(e[0]),s=a;return s in mn&&(s=mn[s]),{type:"font",mode:t.mode,font:s.slice(1),body:n}},htmlBuilder:zo,mathmlBuilder:To});F({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(r,e)=>{var{parser:t}=r,a=e[0],n=ae.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:zo,mathmlBuilder:To});var Ao=(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},ca=(r,e)=>{var t=Ao(r.size,e.style),a=t.fracNum(),n=t.fracDen(),s;s=e.havingStyle(a);var o=re(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=re(r.denom,s,e),h,g,x;r.hasBarLine?(r.barSize?(g=de(r.barSize,e),h=C.makeLineSpan("frac-line",e,g)):h=C.makeLineSpan("frac-line",e),g=h.height,x=h.height):(h=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 T;if(h){var R=e.fontMetrics().axisHeight;w-o.depth-(R+.5*g)<M&&(w+=M-(w-o.depth-(R+.5*g))),R-.5*g-(d.height-k)<M&&(k+=M-(R-.5*g-(d.height-k)));var B=-(R-.5*g);T=C.makeVList({positionType:"individualShift",children:[{type:"elem",elem:d,shift:k},{type:"elem",elem:h,shift:B},{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)),T=C.makeVList({positionType:"individualShift",children:[{type:"elem",elem:d,shift:k},{type:"elem",elem:o,shift:-w}]},e)}s=e.havingStyle(t),T.height*=s.sizeMultiplier/e.sizeMultiplier,T.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=et(e,["mopen"]):O=l0.customSizedDelim(r.leftDelim,P,!0,e.havingStyle(t),r.mode,["mopen"]),r.continued?Y=C.makeSpan([]):r.rightDelim==null?Y=et(e,["mclose"]):Y=l0.customSizedDelim(r.rightDelim,P,!0,e.havingStyle(t),r.mode,["mclose"]),C.makeSpan(["mord"].concat(s.sizingClasses(e)),[O,C.makeSpan(["mfrac"],[T]),Y],e)},ua=(r,e)=>{var t=new E.MathNode("mfrac",[oe(r.numer,e),oe(r.denom,e)]);if(!r.hasBarLine)t.setAttribute("linethickness","0px");else if(r.barSize){var a=de(r.barSize,e);t.setAttribute("linethickness",j(a))}var n=Ao(r.size,e.style);if(n.size!==e.style.size){t=new E.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 E.MathNode("mo",[new E.TextNode(r.leftDelim.replace("\\",""))]);l.setAttribute("fence","true"),o.push(l)}if(o.push(t),r.rightDelim!=null){var u=new E.MathNode("mo",[new E.TextNode(r.rightDelim.replace("\\",""))]);u.setAttribute("fence","true"),o.push(u)}return ea(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:ca,mathmlBuilder:ua});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 hn=["display","text","script","scriptscript"],fn=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=Bt(e[0]),o=s.type==="atom"&&s.family==="open"?fn(s.text):null,l=Bt(e[1]),u=l.type==="atom"&&l.family==="close"?fn(l.text):null,d=Q(e[2],"size"),h,g=null;d.isBlank?h=!0:(g=d.value,h=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=hn[Number(M.text)]}}else w=Q(w,"textord"),x=hn[Number(w.text)];return{type:"genfrac",mode:t.mode,numer:a,denom:n,continued:!1,hasBarLine:h,barSize:g,leftDelim:o,rightDelim:u,size:x}},htmlBuilder:ca,mathmlBuilder:ua});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=s4(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:ca,mathmlBuilder:ua});var No=(r,e)=>{var t=e.style,a,n;r.type==="supsub"?(a=r.sup?re(r.sup,e.havingStyle(t.sup()),e):re(r.sub,e.havingStyle(t.sub()),e),n=Q(r.base,"horizBrace")):n=Q(r,"horizBrace");var s=re(n.base,e.havingBaseStyle(K.DISPLAY)),o=d0.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)},D2=(r,e)=>{var t=d0.mathMLnode(r.label);return new E.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:No,mathmlBuilder:D2});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:ve(a)}:t.formatUnsupportedCmd("\\href")},htmlBuilder:(r,e)=>{var t=ke(r.body,e,!1);return C.makeAnchor(r.href,[],t,e)},mathmlBuilder:(r,e)=>{var t=w0(r.body,e);return t instanceof Ie||(t=new Ie("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:ve(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:ve(e[0])}},htmlBuilder(r,e){var t=ke(r.body,e,!1);return C.makeFragment(t)},mathmlBuilder(r,e){return new E.MathNode("mrow",Ee(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(","),h=0;h<d.length;h++){var g=d[h].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:ve(o)}:t.formatUnsupportedCmd(a)},htmlBuilder:(r,e)=>{var t=ke(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)=>w0(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:ve(e[0]),mathml:ve(e[1])}},htmlBuilder:(r,e)=>{var t=ke(r.html,e,!1);return C.makeFragment(t)},mathmlBuilder:(r,e)=>w0(r.mathml,e)});var br=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(!$s(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(","),h=0;h<d.length;h++){var g=d[h].split("=");if(g.length===2){var x=g[1].trim();switch(g[0].trim()){case"alt":l=x;break;case"width":n=br(x);break;case"height":s=br(x);break;case"totalheight":o=br(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=de(r.height,e),a=0;r.totalheight.number>0&&(a=de(r.totalheight,e)-t);var n=0;r.width.number>0&&(n=de(r.width,e));var s={height:j(t+a)};n>0&&(s.width=j(n)),a>0&&(s.verticalAlign=j(-a));var o=new D4(r.src,r.alt,s);return o.height=t,o.depth=a,o},mathmlBuilder:(r,e)=>{var t=new E.MathNode("mglyph",[]);t.setAttribute("alt",r.alt);var a=de(r.height,e),n=0;if(r.totalheight.number>0&&(n=de(r.totalheight,e)-a,t.setAttribute("valign",j(-n))),t.setAttribute("height",j(a+n)),r.width.number>0){var s=de(r.width,e);t.setAttribute("width",j(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=de(r.dimension,e);return new E.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([],[re(r.body,e)]),t=C.makeSpan(["inner"],[t],e)):t=C.makeSpan(["inner"],[re(r.body,e)]);var a=C.makeSpan(["fix"],[]),n=C.makeSpan([r.alignment],[t,a],e),s=C.makeSpan(["strut"]);return s.style.height=j(n.height+n.depth),n.depth&&(s.style.verticalAlign=j(-n.depth)),n.children.unshift(s),n=C.makeSpan(["thinbox"],[n],e),C.makeSpan(["mord","vbox"],[n],e)},mathmlBuilder:(r,e)=>{var t=new E.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 pn=(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:ve(e[0]),text:ve(e[1]),script:ve(e[2]),scriptscript:ve(e[3])}},htmlBuilder:(r,e)=>{var t=pn(r,e),a=ke(t,e,!1);return C.makeFragment(a)},mathmlBuilder:(r,e)=>{var t=pn(r,e);return w0(t,e)}});var Do=(r,e,t,a,n,s,o)=>{r=C.makeSpan([],[r]);var l=t&&ae.isCharacterBox(t),u,d;if(e){var h=re(e,a.havingStyle(n.sup()),a);d={elem:h,kern:Math.max(a.fontMetrics().bigOpSpacing1,a.fontMetrics().bigOpSpacing3-h.depth)}}if(t){var g=re(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:j(-s)},{type:"kern",size:u.kern},{type:"elem",elem:r},{type:"kern",size:d.kern},{type:"elem",elem:d.elem,marginLeft:j(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:j(-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:j(s)},{type:"kern",size:a.fontMetrics().bigOpSpacing5}]},a)}else return r;var T=[x];if(u&&s!==0&&!l){var N=C.makeSpan(["mspace"],[],a);N.style.marginRight=j(s),T.unshift(N)}return C.makeSpan(["mop","op-limits"],T,a)},Eo=["\\smallint"],$0=(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&&!Eo.includes(s.name)&&(l=!0);var u;if(s.symbol){var d=l?"Size2-Regular":"Size1-Regular",h="";if((s.name==="\\oiint"||s.name==="\\oiiint")&&(h=s.name.slice(1),s.name=h==="oiint"?"\\iint":"\\iiint"),u=C.makeSymbol(s.name,d,"math",e,["mop","op-symbol",l?"large-op":"small-op"]),h.length>0){var g=u.italic,x=C.staticSvg(h+"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="\\"+h,u.classes.unshift("mop"),u.italic=g}}else if(s.body){var w=ke(s.body,e,!0);w.length===1&&w[0]instanceof Ve?(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 T=0,N=0;return(u instanceof Ve||s.name==="\\oiint"||s.name==="\\oiiint")&&!s.suppressBaseShift&&(T=(u.height-u.depth)/2-e.fontMetrics().axisHeight,N=u.italic),n?Do(u,t,a,e,o,N,T):(T&&(u.style.position="relative",u.style.top=j(T)),u)},at=(r,e)=>{var t;if(r.symbol)t=new Ie("mo",[_e(r.name,r.mode)]),Eo.includes(r.name)&&t.setAttribute("largeop","false");else if(r.body)t=new Ie("mo",Ee(r.body,e));else{t=new Ie("mi",[new Ze(r.name.slice(1))]);var a=new Ie("mo",[_e("⁡","text")]);r.parentIsSupSub?t=new Ie("mrow",[t,a]):t=no([t,a])}return t},E2={"∏":"\\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=E2[n]),{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:n}},htmlBuilder:$0,mathmlBuilder:at});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:ve(a)}},htmlBuilder:$0,mathmlBuilder:at});var R2={"∫":"\\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:$0,mathmlBuilder:at});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:$0,mathmlBuilder:at});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=R2[a]),{type:"op",mode:e.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:a}},htmlBuilder:$0,mathmlBuilder:at});var Ro=(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=ke(l,e.withFont("mathrm"),!0),d=0;d<u.length;d++){var h=u[d];h instanceof Ve&&(h.text=h.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}o=C.makeSpan(["mop"],u,e)}else o=C.makeSpan(["mop"],[],e);return n?Do(o,t,a,e,e.style,0,0):o},L2=(r,e)=>{for(var t=Ee(r.body,e.withFont("mathrm")),a=!0,n=0;n<t.length;n++){var s=t[n];if(!(s instanceof E.SpaceNode))if(s instanceof E.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 E.TextNode?o.text=o.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):a=!1;break}default:a=!1}else a=!1}if(a){var l=t.map(h=>h.toText()).join("");t=[new E.TextNode(l)]}var u=new E.MathNode("mi",t);u.setAttribute("mathvariant","normal");var d=new E.MathNode("mo",[_e("⁡","text")]);return r.parentIsSupSub?new E.MathNode("mrow",[u,d]):E.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:ve(n),alwaysHandleSupSub:a==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:Ro,mathmlBuilder:L2});v("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");R0({type:"ordgroup",htmlBuilder(r,e){return r.semisimple?C.makeFragment(ke(r.body,e,!1)):C.makeSpan(["mord"],ke(r.body,e,!0),e)},mathmlBuilder(r,e){return w0(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=re(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 E.MathNode("mo",[new E.TextNode("‾")]);t.setAttribute("stretchy","true");var a=new E.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:ve(a)}},htmlBuilder:(r,e)=>{var t=ke(r.body,e.withPhantom(),!1);return C.makeFragment(t)},mathmlBuilder:(r,e)=>{var t=Ee(r.body,e);return new E.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([],[re(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=Ee(ve(r.body),e),a=new E.MathNode("mphantom",t),n=new E.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"],[re(r.body,e.withPhantom())]),a=C.makeSpan(["fix"],[]);return C.makeSpan(["mord","rlap"],[t,a],e)},mathmlBuilder:(r,e)=>{var t=Ee(ve(r.body),e),a=new E.MathNode("mphantom",t),n=new E.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=re(r.body,e),a=de(r.dy,e);return C.makeVList({positionType:"shift",positionData:-a,children:[{type:"elem",elem:t}]},e)},mathmlBuilder(r,e){var t=new E.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=de(r.width,e),n=de(r.height,e),s=r.shift?de(r.shift,e):0;return t.style.borderRightWidth=j(a),t.style.borderTopWidth=j(n),t.style.bottom=j(s),t.width=a,t.height=n+s,t.depth=-s,t.maxFontSize=n*1.125*e.sizeMultiplier,t},mathmlBuilder(r,e){var t=de(r.width,e),a=de(r.height,e),n=r.shift?de(r.shift,e):0,s=e.color&&e.getColor()||"black",o=new E.MathNode("mspace");o.setAttribute("mathbackground",s),o.setAttribute("width",j(t)),o.setAttribute("height",j(a));var l=new E.MathNode("mpadded",[o]);return n>=0?l.setAttribute("height",j(n)):(l.setAttribute("height",j(n)),l.setAttribute("depth",j(-n))),l.setAttribute("voffset",j(n)),l}});function Lo(r,e,t){for(var a=ke(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 vn=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],B2=(r,e)=>{var t=e.havingSize(r.size);return Lo(r.body,t,e)};F({type:"sizing",names:vn,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:vn.indexOf(a)+1,body:s}},htmlBuilder:B2,mathmlBuilder:(r,e)=>{var t=e.havingSize(r.size),a=Ee(r.body,t),n=new E.MathNode("mstyle",a);return n.setAttribute("mathsize",j(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 h=e[0];return{type:"smash",mode:a.mode,body:h,smashHeight:n,smashDepth:s}},htmlBuilder:(r,e)=>{var t=C.makeSpan([],[re(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 E.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=re(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:h}=l0.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=j(h);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=re(r.index,M,e),T=.6*(w.height-w.depth),N=C.makeVList({positionType:"shift",positionData:-T,children:[{type:"elem",elem:k}]},e),R=C.makeSpan(["root"],[N]);return C.makeSpan(["mord","sqrt"],[R,w],e)}else return C.makeSpan(["mord","sqrt"],[w],e)},mathmlBuilder(r,e){var{body:t,index:a}=r;return a?new E.MathNode("mroot",[oe(t,e),oe(a,e)]):new E.MathNode("msqrt",[oe(t,e)])}});var gn={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=gn[r.style],a=e.havingStyle(t).withFont("");return Lo(r.body,a,e)},mathmlBuilder(r,e){var t=gn[r.style],a=e.havingStyle(t),n=Ee(r.body,a),s=new E.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 I2=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?$0:null}else if(a.type==="operatorname"){var s=a.alwaysHandleSupSub&&(t.style.size===K.DISPLAY.size||a.limits);return s?Ro:null}else{if(a.type==="accent")return ae.isCharacterBox(a.base)?aa:null;if(a.type==="horizBrace"){var o=!e.sub;return o===a.isOver?No:null}else return null}else return null};R0({type:"supsub",htmlBuilder(r,e){var t=I2(r,e);if(t)return t(r,e);var{base:a,sup:n,sub:s}=r,o=re(a,e),l,u,d=e.fontMetrics(),h=0,g=0,x=a&&ae.isCharacterBox(a);if(n){var w=e.havingStyle(e.style.sup());l=re(n,w,e),x||(h=o.height-w.fontMetrics().supDrop*w.sizeMultiplier/e.sizeMultiplier)}if(s){var M=e.havingStyle(e.style.sub());u=re(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 T=e.sizeMultiplier,N=j(.5/d.ptPerEm/T),R=null;if(u){var B=r.base&&r.base.type==="op"&&r.base.name&&(r.base.name==="\\oiint"||r.base.name==="\\oiiint");(o instanceof Ve||B)&&(R=j(-o.italic))}var P;if(l&&u){h=Math.max(h,k,l.depth+.25*d.xHeight),g=Math.max(g,d.sub2);var O=d.defaultRuleThickness,Y=4*O;if(h-l.depth-(u.height-g)<Y){g=Y-(h-l.depth)+u.height;var q=.8*d.xHeight-(h-l.depth);q>0&&(h+=q,g-=q)}var I=[{type:"elem",elem:u,shift:g,marginRight:N,marginLeft:R},{type:"elem",elem:l,shift:-h,marginRight:N}];P=C.makeVList({positionType:"individualShift",children:I},e)}else if(u){g=Math.max(g,d.sub1,u.height-.8*d.xHeight);var $=[{type:"elem",elem:u,marginLeft:R,marginRight:N}];P=C.makeVList({positionType:"shift",positionData:g,children:$},e)}else if(l)h=Math.max(h,k,l.depth+.25*d.xHeight),P=C.makeVList({positionType:"shift",positionData:-h,children:[{type:"elem",elem:l,marginRight:N}]},e);else throw new Error("supsub must have either sup or sub.");var me=Er(o,"right")||"mord";return C.makeSpan([me],[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 E.MathNode(o,s)}});R0({type:"atom",htmlBuilder(r,e){return C.mathsym(r.text,r.mode,e,["m"+r.family])},mathmlBuilder(r,e){var t=new E.MathNode("mo",[_e(r.text,r.mode)]);if(r.family==="bin"){var a=ta(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 Bo={mi:"italic",mn:"normal",mtext:"normal"};R0({type:"mathord",htmlBuilder(r,e){return C.makeOrd(r,e,"mathord")},mathmlBuilder(r,e){var t=new E.MathNode("mi",[_e(r.text,r.mode,e)]),a=ta(r,e)||"italic";return a!==Bo[t.type]&&t.setAttribute("mathvariant",a),t}});R0({type:"textord",htmlBuilder(r,e){return C.makeOrd(r,e,"textord")},mathmlBuilder(r,e){var t=_e(r.text,r.mode,e),a=ta(r,e)||"normal",n;return r.mode==="text"?n=new E.MathNode("mtext",[t]):/[0-9]/.test(r.text)?n=new E.MathNode("mn",[t]):r.text==="\\prime"?n=new E.MathNode("mo",[t]):n=new E.MathNode("mi",[t]),a!==Bo[n.type]&&n.setAttribute("mathvariant",a),n}});var yr={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},xr={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};R0({type:"spacing",htmlBuilder(r,e){if(xr.hasOwnProperty(r.text)){var t=xr[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(yr.hasOwnProperty(r.text))return C.makeSpan(["mspace",yr[r.text]],[],e);throw new L('Unknown type of space "'+r.text+'"')}},mathmlBuilder(r,e){var t;if(xr.hasOwnProperty(r.text))t=new E.MathNode("mtext",[new E.TextNode(" ")]);else{if(yr.hasOwnProperty(r.text))return new E.MathNode("mspace");throw new L('Unknown type of space "'+r.text+'"')}return t}});var bn=()=>{var r=new E.MathNode("mtd",[]);return r.setAttribute("width","50%"),r};R0({type:"tag",mathmlBuilder(r,e){var t=new E.MathNode("mtable",[new E.MathNode("mtr",[bn(),new E.MathNode("mtd",[w0(r.body,e)]),bn(),new E.MathNode("mtd",[w0(r.tag,e)])])]);return t.setAttribute("width","100%"),t}});var yn={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},xn={"\\textbf":"textbf","\\textmd":"textmd"},j2={"\\textit":"textit","\\textup":"textup"},wn=(r,e)=>{var t=r.font;if(t){if(yn[t])return e.withTextFontFamily(yn[t]);if(xn[t])return e.withTextFontWeight(xn[t]);if(t==="\\emph")return e.fontShape==="textit"?e.withTextFontShape("textup"):e.withTextFontShape("textit")}else return e;return e.withTextFontShape(j2[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:ve(n),font:a}},htmlBuilder(r,e){var t=wn(r,e),a=ke(r.body,t,!0);return C.makeSpan(["mord","text"],a,t)},mathmlBuilder(r,e){var t=wn(r,e);return w0(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=re(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 E.MathNode("mo",[new E.TextNode("‾")]);t.setAttribute("stretchy","true");var a=new E.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=re(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 E.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=Sn(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 E.TextNode(Sn(r)),a=new E.MathNode("mtext",[t]);return a.setAttribute("mathvariant","monospace"),a}});var Sn=r=>r.body.replace(/ /g,r.star?"␣":" "),g0=ro,Io=`[ \r
326
- ]`,P2="\\\\[a-zA-Z@]+",O2="\\\\[^\uD800-\uDFFF]",F2="("+P2+")"+Io+"*",q2=`\\\\(
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 tt{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]}},vt={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]},Ya={Å:"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 R4(r,e){Ye[r]=e}function Kr(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 Ya&&(a=Ya[r[0]].charCodeAt(0),n=Ye[e][a]),!n&&t==="text"&&Xs(a)&&(n=Ye[e][77]),n)return{depth:n[0],height:n[1],italic:n[2],skew:n[3],width:n[4]}}var ir={};function L4(r){var e;if(r>=5?e=0:r>=3?e=1:e=2,!ir[e]){var t=ir[e]={cssEmPerMu:vt.quad[e]/18};for(var a in vt)vt.hasOwnProperty(a)&&(t[a]=vt[a][e])}return ir[e]}var B4=[[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]],Za=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],Ka=function(e,t){return t.size<2?e:B4[e-1][t.size-1]};class s0{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||s0.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=Za[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 s0(t)}havingStyle(e){return this.style===e?this:this.extend({style:e,size:Ka(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:Za[e-1]})}havingBaseStyle(e){e=e||this.style.text();var t=Ka(s0.BASESIZE,e);return this.size===t&&this.textSize===s0.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!==s0.BASESIZE?["sizing","reset-size"+this.size,"size"+s0.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=L4(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}s0.BASESIZE=6;var Ar={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},I4={ex:!0,em:!0,mu:!0},Ys=function(e){return typeof e!="string"&&(e=e.unit),e in Ar||e in I4||e==="ex"},de=function(e,t){var a;if(e.unit in Ar)a=Ar[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)},j=function(e){return+e.toFixed(4)+"em"},x0=function(e){return e.filter(t=>t).join(" ")},Zs=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)}},Ks=function(e){var t=document.createElement(e);t.className=x0(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},j4=/[\s"'>/=\x00-\x1f]/,Js=function(e){var t="<"+e;this.classes.length&&(t+=' class="'+ae.escape(x0(this.classes))+'"');var a="";for(var n in this.style)this.style.hasOwnProperty(n)&&(a+=ae.hyphenate(n)+":"+this.style[n]+";");a&&(t+=' style="'+ae.escape(a)+'"');for(var s in this.attributes)if(this.attributes.hasOwnProperty(s)){if(j4.test(s))throw new L("Invalid attribute name '"+s+"'");t+=" "+s+'="'+ae.escape(this.attributes[s])+'"'}t+=">";for(var o=0;o<this.children.length;o++)t+=this.children[o].toMarkup();return t+="</"+e+">",t};class rt{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,Zs.call(this,e,a,n),this.children=t||[]}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return this.classes.includes(e)}toNode(){return Ks.call(this,"span")}toMarkup(){return Js.call(this,"span")}}class Jr{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,Zs.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 Ks.call(this,"a")}toMarkup(){return Js.call(this,"a")}}class P4{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="'+ae.escape(this.src)+'"'+(' alt="'+ae.escape(this.alt)+'"'),t="";for(var a in this.style)this.style.hasOwnProperty(a)&&(t+=ae.hyphenate(a)+":"+this.style[a]+";");return t&&(e+=' style="'+ae.escape(t)+'"'),e+="'/>",e}}var O4={î:"ı̂",ï:"ı̈",í:"ı́",ì:"ı̀"};class Ve{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=w4(this.text.charCodeAt(0));d&&this.classes.push(d+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=O4[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=j(this.italic)),this.classes.length>0&&(t=t||document.createElement("span"),t.className=x0(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+=ae.escape(x0(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+=ae.hyphenate(n)+":"+this.style[n]+";");a&&(e=!0,t+=' style="'+ae.escape(a)+'"');var s=ae.escape(this.text);return e?(t+=">",t+=s,t+="</span>",t):s}}class c0{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+'="'+ae.escape(this.attributes[t])+'"');e+=">";for(var a=0;a<this.children.length;a++)e+=this.children[a].toMarkup();return e+="</svg>",e}}class y0{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",Xa[this.pathName]),t}toMarkup(){return this.alternate?'<path d="'+ae.escape(this.alternate)+'"/>':'<path d="'+ae.escape(Xa[this.pathName])+'"/>'}}class Nr{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+'="'+ae.escape(this.attributes[t])+'"');return e+="/>",e}}function Ja(r){if(r instanceof Ve)return r;throw new Error("Expected symbolNode but got "+String(r)+".")}function F4(r){if(r instanceof rt)return r;throw new Error("Expected span<HtmlDomNode> but got "+String(r)+".")}var q4={bin:1,close:1,inner:1,open:1,punct:1,rel:1},H4={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},le={math:{},text:{}};function i(r,e,t,a,n,s){le[r][n]={font:e,group:t,replace:a},s&&a&&(le[r][a]=le[r][n])}var c="math",D="text",m="main",b="ams",ce="accent-token",H="bin",Ae="close",W0="inner",Z="mathord",xe="op-token",Pe="open",qt="punct",x="rel",m0="spacing",S="textord";i(c,m,x,"≡","\\equiv",!0);i(c,m,x,"≺","\\prec",!0);i(c,m,x,"≻","\\succ",!0);i(c,m,x,"∼","\\sim",!0);i(c,m,x,"⊥","\\perp");i(c,m,x,"⪯","\\preceq",!0);i(c,m,x,"⪰","\\succeq",!0);i(c,m,x,"≃","\\simeq",!0);i(c,m,x,"∣","\\mid",!0);i(c,m,x,"≪","\\ll",!0);i(c,m,x,"≫","\\gg",!0);i(c,m,x,"≍","\\asymp",!0);i(c,m,x,"∥","\\parallel");i(c,m,x,"⋈","\\bowtie",!0);i(c,m,x,"⌣","\\smile",!0);i(c,m,x,"⊑","\\sqsubseteq",!0);i(c,m,x,"⊒","\\sqsupseteq",!0);i(c,m,x,"≐","\\doteq",!0);i(c,m,x,"⌢","\\frown",!0);i(c,m,x,"∋","\\ni",!0);i(c,m,x,"∝","\\propto",!0);i(c,m,x,"⊢","\\vdash",!0);i(c,m,x,"⊣","\\dashv",!0);i(c,m,x,"∋","\\owns");i(c,m,qt,".","\\ldotp");i(c,m,qt,"⋅","\\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,Ae,"⎱","\\rmoustache",!0);i(c,m,Pe,"⎰","\\lmoustache",!0);i(c,m,Ae,"⟯","\\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,x,"⟵","\\longleftarrow",!0);i(c,m,x,"⇐","\\Leftarrow",!0);i(c,m,x,"⟸","\\Longleftarrow",!0);i(c,m,x,"⟶","\\longrightarrow",!0);i(c,m,x,"⇒","\\Rightarrow",!0);i(c,m,x,"⟹","\\Longrightarrow",!0);i(c,m,x,"↔","\\leftrightarrow",!0);i(c,m,x,"⟷","\\longleftrightarrow",!0);i(c,m,x,"⇔","\\Leftrightarrow",!0);i(c,m,x,"⟺","\\Longleftrightarrow",!0);i(c,m,x,"↦","\\mapsto",!0);i(c,m,x,"⟼","\\longmapsto",!0);i(c,m,x,"↗","\\nearrow",!0);i(c,m,x,"↩","\\hookleftarrow",!0);i(c,m,x,"↪","\\hookrightarrow",!0);i(c,m,x,"↘","\\searrow",!0);i(c,m,x,"↼","\\leftharpoonup",!0);i(c,m,x,"⇀","\\rightharpoonup",!0);i(c,m,x,"↙","\\swarrow",!0);i(c,m,x,"↽","\\leftharpoondown",!0);i(c,m,x,"⇁","\\rightharpoondown",!0);i(c,m,x,"↖","\\nwarrow",!0);i(c,m,x,"⇌","\\rightleftharpoons",!0);i(c,b,x,"≮","\\nless",!0);i(c,b,x,"","\\@nleqslant");i(c,b,x,"","\\@nleqq");i(c,b,x,"⪇","\\lneq",!0);i(c,b,x,"≨","\\lneqq",!0);i(c,b,x,"","\\@lvertneqq");i(c,b,x,"⋦","\\lnsim",!0);i(c,b,x,"⪉","\\lnapprox",!0);i(c,b,x,"⊀","\\nprec",!0);i(c,b,x,"⋠","\\npreceq",!0);i(c,b,x,"⋨","\\precnsim",!0);i(c,b,x,"⪹","\\precnapprox",!0);i(c,b,x,"≁","\\nsim",!0);i(c,b,x,"","\\@nshortmid");i(c,b,x,"∤","\\nmid",!0);i(c,b,x,"⊬","\\nvdash",!0);i(c,b,x,"⊭","\\nvDash",!0);i(c,b,x,"⋪","\\ntriangleleft");i(c,b,x,"⋬","\\ntrianglelefteq",!0);i(c,b,x,"⊊","\\subsetneq",!0);i(c,b,x,"","\\@varsubsetneq");i(c,b,x,"⫋","\\subsetneqq",!0);i(c,b,x,"","\\@varsubsetneqq");i(c,b,x,"≯","\\ngtr",!0);i(c,b,x,"","\\@ngeqslant");i(c,b,x,"","\\@ngeqq");i(c,b,x,"⪈","\\gneq",!0);i(c,b,x,"≩","\\gneqq",!0);i(c,b,x,"","\\@gvertneqq");i(c,b,x,"⋧","\\gnsim",!0);i(c,b,x,"⪊","\\gnapprox",!0);i(c,b,x,"⊁","\\nsucc",!0);i(c,b,x,"⋡","\\nsucceq",!0);i(c,b,x,"⋩","\\succnsim",!0);i(c,b,x,"⪺","\\succnapprox",!0);i(c,b,x,"≆","\\ncong",!0);i(c,b,x,"","\\@nshortparallel");i(c,b,x,"∦","\\nparallel",!0);i(c,b,x,"⊯","\\nVDash",!0);i(c,b,x,"⋫","\\ntriangleright");i(c,b,x,"⋭","\\ntrianglerighteq",!0);i(c,b,x,"","\\@nsupseteqq");i(c,b,x,"⊋","\\supsetneq",!0);i(c,b,x,"","\\@varsupsetneq");i(c,b,x,"⫌","\\supsetneqq",!0);i(c,b,x,"","\\@varsupsetneqq");i(c,b,x,"⊮","\\nVdash",!0);i(c,b,x,"⪵","\\precneqq",!0);i(c,b,x,"⪶","\\succneqq",!0);i(c,b,x,"","\\@nsubseteqq");i(c,b,H,"⊴","\\unlhd");i(c,b,H,"⊵","\\unrhd");i(c,b,x,"↚","\\nleftarrow",!0);i(c,b,x,"↛","\\nrightarrow",!0);i(c,b,x,"⇍","\\nLeftarrow",!0);i(c,b,x,"⇏","\\nRightarrow",!0);i(c,b,x,"↮","\\nleftrightarrow",!0);i(c,b,x,"⇎","\\nLeftrightarrow",!0);i(c,b,x,"△","\\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,Ae,"┐","\\@urcorner",!0);i(c,b,Pe,"└","\\@llcorner",!0);i(c,b,Ae,"┘","\\@lrcorner",!0);i(c,b,x,"≦","\\leqq",!0);i(c,b,x,"⩽","\\leqslant",!0);i(c,b,x,"⪕","\\eqslantless",!0);i(c,b,x,"≲","\\lesssim",!0);i(c,b,x,"⪅","\\lessapprox",!0);i(c,b,x,"≊","\\approxeq",!0);i(c,b,H,"⋖","\\lessdot");i(c,b,x,"⋘","\\lll",!0);i(c,b,x,"≶","\\lessgtr",!0);i(c,b,x,"⋚","\\lesseqgtr",!0);i(c,b,x,"⪋","\\lesseqqgtr",!0);i(c,b,x,"≑","\\doteqdot");i(c,b,x,"≓","\\risingdotseq",!0);i(c,b,x,"≒","\\fallingdotseq",!0);i(c,b,x,"∽","\\backsim",!0);i(c,b,x,"⋍","\\backsimeq",!0);i(c,b,x,"⫅","\\subseteqq",!0);i(c,b,x,"⋐","\\Subset",!0);i(c,b,x,"⊏","\\sqsubset",!0);i(c,b,x,"≼","\\preccurlyeq",!0);i(c,b,x,"⋞","\\curlyeqprec",!0);i(c,b,x,"≾","\\precsim",!0);i(c,b,x,"⪷","\\precapprox",!0);i(c,b,x,"⊲","\\vartriangleleft");i(c,b,x,"⊴","\\trianglelefteq");i(c,b,x,"⊨","\\vDash",!0);i(c,b,x,"⊪","\\Vvdash",!0);i(c,b,x,"⌣","\\smallsmile");i(c,b,x,"⌢","\\smallfrown");i(c,b,x,"≏","\\bumpeq",!0);i(c,b,x,"≎","\\Bumpeq",!0);i(c,b,x,"≧","\\geqq",!0);i(c,b,x,"⩾","\\geqslant",!0);i(c,b,x,"⪖","\\eqslantgtr",!0);i(c,b,x,"≳","\\gtrsim",!0);i(c,b,x,"⪆","\\gtrapprox",!0);i(c,b,H,"⋗","\\gtrdot");i(c,b,x,"⋙","\\ggg",!0);i(c,b,x,"≷","\\gtrless",!0);i(c,b,x,"⋛","\\gtreqless",!0);i(c,b,x,"⪌","\\gtreqqless",!0);i(c,b,x,"≖","\\eqcirc",!0);i(c,b,x,"≗","\\circeq",!0);i(c,b,x,"≜","\\triangleq",!0);i(c,b,x,"∼","\\thicksim");i(c,b,x,"≈","\\thickapprox");i(c,b,x,"⫆","\\supseteqq",!0);i(c,b,x,"⋑","\\Supset",!0);i(c,b,x,"⊐","\\sqsupset",!0);i(c,b,x,"≽","\\succcurlyeq",!0);i(c,b,x,"⋟","\\curlyeqsucc",!0);i(c,b,x,"≿","\\succsim",!0);i(c,b,x,"⪸","\\succapprox",!0);i(c,b,x,"⊳","\\vartriangleright");i(c,b,x,"⊵","\\trianglerighteq");i(c,b,x,"⊩","\\Vdash",!0);i(c,b,x,"∣","\\shortmid");i(c,b,x,"∥","\\shortparallel");i(c,b,x,"≬","\\between",!0);i(c,b,x,"⋔","\\pitchfork",!0);i(c,b,x,"∝","\\varpropto");i(c,b,x,"◀","\\blacktriangleleft");i(c,b,x,"∴","\\therefore",!0);i(c,b,x,"∍","\\backepsilon");i(c,b,x,"▶","\\blacktriangleright");i(c,b,x,"∵","\\because",!0);i(c,b,x,"⋘","\\llless");i(c,b,x,"⋙","\\gggtr");i(c,b,H,"⊲","\\lhd");i(c,b,H,"⊳","\\rhd");i(c,b,x,"≂","\\eqsim",!0);i(c,m,x,"⋈","\\Join");i(c,b,x,"≑","\\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,x,"⇢","\\dashrightarrow",!0);i(c,b,x,"⇠","\\dashleftarrow",!0);i(c,b,x,"⇇","\\leftleftarrows",!0);i(c,b,x,"⇆","\\leftrightarrows",!0);i(c,b,x,"⇚","\\Lleftarrow",!0);i(c,b,x,"↞","\\twoheadleftarrow",!0);i(c,b,x,"↢","\\leftarrowtail",!0);i(c,b,x,"↫","\\looparrowleft",!0);i(c,b,x,"⇋","\\leftrightharpoons",!0);i(c,b,x,"↶","\\curvearrowleft",!0);i(c,b,x,"↺","\\circlearrowleft",!0);i(c,b,x,"↰","\\Lsh",!0);i(c,b,x,"⇈","\\upuparrows",!0);i(c,b,x,"↿","\\upharpoonleft",!0);i(c,b,x,"⇃","\\downharpoonleft",!0);i(c,m,x,"⊶","\\origof",!0);i(c,m,x,"⊷","\\imageof",!0);i(c,b,x,"⊸","\\multimap",!0);i(c,b,x,"↭","\\leftrightsquigarrow",!0);i(c,b,x,"⇉","\\rightrightarrows",!0);i(c,b,x,"⇄","\\rightleftarrows",!0);i(c,b,x,"↠","\\twoheadrightarrow",!0);i(c,b,x,"↣","\\rightarrowtail",!0);i(c,b,x,"↬","\\looparrowright",!0);i(c,b,x,"↷","\\curvearrowright",!0);i(c,b,x,"↻","\\circlearrowright",!0);i(c,b,x,"↱","\\Rsh",!0);i(c,b,x,"⇊","\\downdownarrows",!0);i(c,b,x,"↾","\\upharpoonright",!0);i(c,b,x,"⇂","\\downharpoonright",!0);i(c,b,x,"⇝","\\rightsquigarrow",!0);i(c,b,x,"⇝","\\leadsto");i(c,b,x,"⇛","\\Rrightarrow",!0);i(c,b,x,"↾","\\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,Ae,"?","?");i(c,m,Ae,"!","!");i(c,m,Ae,"⟩","\\rangle",!0);i(c,m,Ae,"∣","\\rvert");i(c,m,Ae,"∥","\\rVert");i(c,m,x,"=","=");i(c,m,x,":",":");i(c,m,x,"≈","\\approx",!0);i(c,m,x,"≅","\\cong",!0);i(c,m,x,"≥","\\ge");i(c,m,x,"≥","\\geq",!0);i(c,m,x,"←","\\gets");i(c,m,x,">","\\gt",!0);i(c,m,x,"∈","\\in",!0);i(c,m,x,"","\\@not");i(c,m,x,"⊂","\\subset",!0);i(c,m,x,"⊃","\\supset",!0);i(c,m,x,"⊆","\\subseteq",!0);i(c,m,x,"⊇","\\supseteq",!0);i(c,b,x,"⊈","\\nsubseteq",!0);i(c,b,x,"⊉","\\nsupseteq",!0);i(c,m,x,"⊨","\\models");i(c,m,x,"←","\\leftarrow",!0);i(c,m,x,"≤","\\le");i(c,m,x,"≤","\\leq",!0);i(c,m,x,"<","\\lt",!0);i(c,m,x,"→","\\rightarrow",!0);i(c,m,x,"→","\\to");i(c,b,x,"≱","\\ngeq",!0);i(c,b,x,"≰","\\nleq",!0);i(c,m,m0," ","\\ ");i(c,m,m0," ","\\space");i(c,m,m0," ","\\nobreakspace");i(D,m,m0," ","\\ ");i(D,m,m0," "," ");i(D,m,m0," ","\\space");i(D,m,m0," ","\\nobreakspace");i(c,m,m0,null,"\\nobreak");i(c,m,m0,null,"\\allowbreak");i(c,m,qt,",",",");i(c,m,qt,";",";");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,Ae,"}","\\}");i(D,m,S,"}","\\}");i(D,m,S,"}","\\textbraceright");i(c,m,Pe,"{","\\lbrace");i(c,m,Ae,"}","\\rbrace");i(c,m,Pe,"[","\\lbrack",!0);i(D,m,S,"[","\\lbrack",!0);i(c,m,Ae,"]","\\rbrack",!0);i(D,m,S,"]","\\rbrack",!0);i(c,m,Pe,"(","\\lparen",!0);i(c,m,Ae,")","\\rparen",!0);i(D,m,S,"<","\\textless",!0);i(D,m,S,">","\\textgreater",!0);i(c,m,Pe,"⌊","\\lfloor",!0);i(c,m,Ae,"⌋","\\rfloor",!0);i(c,m,Pe,"⌈","\\lceil",!0);i(c,m,Ae,"⌉","\\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,x,"↑","\\uparrow",!0);i(c,m,x,"⇑","\\Uparrow",!0);i(c,m,x,"↓","\\downarrow",!0);i(c,m,x,"⇓","\\Downarrow",!0);i(c,m,x,"↕","\\updownarrow",!0);i(c,m,x,"⇕","\\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,W0,"…","\\textellipsis");i(c,m,W0,"…","\\mathellipsis");i(D,m,W0,"…","\\ldots",!0);i(c,m,W0,"…","\\ldots",!0);i(c,m,W0,"⋯","\\@cdots",!0);i(c,m,W0,"⋱","\\ddots",!0);i(c,m,S,"⋮","\\varvdots");i(D,m,S,"⋮","\\varvdots");i(c,m,ce,"ˊ","\\acute");i(c,m,ce,"ˋ","\\grave");i(c,m,ce,"¨","\\ddot");i(c,m,ce,"~","\\tilde");i(c,m,ce,"ˉ","\\bar");i(c,m,ce,"˘","\\breve");i(c,m,ce,"ˇ","\\check");i(c,m,ce,"^","\\hat");i(c,m,ce,"⃗","\\vec");i(c,m,ce,"˙","\\dot");i(c,m,ce,"˚","\\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,ce,"ˊ","\\'");i(D,m,ce,"ˋ","\\`");i(D,m,ce,"ˆ","\\^");i(D,m,ce,"˜","\\~");i(D,m,ce,"ˉ","\\=");i(D,m,ce,"˘","\\u");i(D,m,ce,"˙","\\.");i(D,m,ce,"¸","\\c");i(D,m,ce,"˚","\\r");i(D,m,ce,"ˇ","\\v");i(D,m,ce,"¨",'\\"');i(D,m,ce,"˝","\\H");i(D,m,ce,"◯","\\textcircled");var Qs={"--":!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 Qa='0123456789/@."';for(var lr=0;lr<Qa.length;lr++){var en=Qa.charAt(lr);i(c,m,S,en,en)}var tn='0123456789!@*()-=+";:?/.,';for(var cr=0;cr<tn.length;cr++){var rn=tn.charAt(cr);i(D,m,S,rn,rn)}var Et="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";for(var ur=0;ur<Et.length;ur++){var gt=Et.charAt(ur);i(c,m,Z,gt,gt),i(D,m,S,gt,gt)}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<Et.length;ze++){var fe=Et.charAt(ze);J=String.fromCharCode(55349,56320+ze),i(c,m,Z,fe,J),i(D,m,S,fe,J),J=String.fromCharCode(55349,56372+ze),i(c,m,Z,fe,J),i(D,m,S,fe,J),J=String.fromCharCode(55349,56424+ze),i(c,m,Z,fe,J),i(D,m,S,fe,J),J=String.fromCharCode(55349,56580+ze),i(c,m,Z,fe,J),i(D,m,S,fe,J),J=String.fromCharCode(55349,56684+ze),i(c,m,Z,fe,J),i(D,m,S,fe,J),J=String.fromCharCode(55349,56736+ze),i(c,m,Z,fe,J),i(D,m,S,fe,J),J=String.fromCharCode(55349,56788+ze),i(c,m,Z,fe,J),i(D,m,S,fe,J),J=String.fromCharCode(55349,56840+ze),i(c,m,Z,fe,J),i(D,m,S,fe,J),J=String.fromCharCode(55349,56944+ze),i(c,m,Z,fe,J),i(D,m,S,fe,J),ze<26&&(J=String.fromCharCode(55349,56632+ze),i(c,m,Z,fe,J),i(D,m,S,fe,J),J=String.fromCharCode(55349,56476+ze),i(c,m,Z,fe,J),i(D,m,S,fe,J))}J="𝕜";i(c,m,Z,"k",J);i(D,m,S,"k",J);for(var M0=0;M0<10;M0++){var p0=M0.toString();J=String.fromCharCode(55349,57294+M0),i(c,m,Z,p0,J),i(D,m,S,p0,J),J=String.fromCharCode(55349,57314+M0),i(c,m,Z,p0,J),i(D,m,S,p0,J),J=String.fromCharCode(55349,57324+M0),i(c,m,Z,p0,J),i(D,m,S,p0,J),J=String.fromCharCode(55349,57334+M0),i(c,m,Z,p0,J),i(D,m,S,p0,J)}var Dr="ÐÞþ";for(var dr=0;dr<Dr.length;dr++){var bt=Dr.charAt(dr);i(c,m,Z,bt,bt),i(D,m,S,bt,bt)}var xt=[["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"]],an=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],V4=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[xt[l][2],xt[l][o]]}else if(120782<=s&&s<=120831){var u=Math.floor((s-120782)/10);return[an[u][2],an[u][o]]}else{if(s===120485||s===120486)return[xt[0][2],xt[0][o]];if(120486<s&&s<120782)return["",""];throw new L("Unsupported character: "+e)}},Ht=function(e,t,a){return le[a][e]&&le[a][e].replace&&(e=le[a][e].replace),{value:e,metrics:Kr(e,t,a)}},Ue=function(e,t,a,n,s){var o=Ht(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 Ve(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 Ve(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},_4=function(e,t,a,n){return n===void 0&&(n=[]),a.font==="boldsymbol"&&Ht(e,"Main-Bold",t).metrics?Ue(e,"Main-Bold",t,a,n.concat(["mathbf"])):e==="\\"||le[t][e].font==="main"?Ue(e,"Main-Regular",t,a,n):Ue(e,"AMS-Regular",t,a,n.concat(["amsrm"]))},G4=function(e,t,a,n,s){return s!=="textord"&&Ht(e,"Math-BoldItalic",t).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},U4=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]=V4(s,n)),d.length>0)return Ue(s,d,n,t,o.concat(f));if(u){var g,y;if(u==="boldsymbol"){var w=G4(s,n,t,o,a);g=w.fontName,y=[w.fontClass]}else l?(g=ro[u].fontName,y=[u]):(g=yt(u,t.fontWeight,t.fontShape),y=[u,t.fontWeight,t.fontShape]);if(Ht(s,g,n).metrics)return Ue(s,g,n,t,o.concat(y));if(Qs.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(y)));return to(M)}}if(a==="mathord")return Ue(s,"Math-Italic",n,t,o.concat(["mathnormal"]));if(a==="textord"){var T=le[n][s]&&le[n][s].font;if(T==="ams"){var N=yt("amsrm",t.fontWeight,t.fontShape);return Ue(s,N,n,t,o.concat("amsrm",t.fontWeight,t.fontShape))}else if(T==="main"||!T){var R=yt("textrm",t.fontWeight,t.fontShape);return Ue(s,R,n,t,o.concat(t.fontWeight,t.fontShape))}else{var B=yt(T,t.fontWeight,t.fontShape);return Ue(s,B,n,t,o.concat(B,t.fontWeight,t.fontShape))}}else throw new Error("unexpected type: "+a+" in makeOrd")},W4=(r,e)=>{if(x0(r.classes)!==x0(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},$4=r=>{for(var e=0;e<r.length-1;e++){var t=r[e],a=r[e+1];t instanceof Ve&&a instanceof Ve&&W4(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},Qr=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},Ne=function(e,t,a,n){var s=new rt(e,t,a,n);return Qr(s),s},eo=(r,e,t,a)=>new rt(r,e,t,a),X4=function(e,t,a){var n=Ne([e],[],t);return n.height=Math.max(a||t.fontMetrics().defaultRuleThickness,t.minRuleThickness),n.style.borderBottomWidth=j(n.height),n.maxFontSize=1,n},Y4=function(e,t,a,n){var s=new Jr(e,t,a,n);return Qr(s),s},to=function(e){var t=new tt(e);return Qr(t),t},Z4=function(e,t){return e instanceof tt?Ne([],[e],t):e},K4=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 y=e.children[g];f-=y.type==="kern"?y.size:y.elem.height+y.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}},J4=function(e,t){for(var{children:a,depth:n}=K4(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=Ne(["pstrut"],[]);d.style.height=j(s);for(var f=[],g=n,y=n,w=n,M=0;M<a.length;M++){var k=a[M];if(k.type==="kern")w+=k.size;else{var T=k.elem,N=k.wrapperClasses||[],R=k.wrapperStyle||{},B=Ne(N,[d,T],void 0,R);B.style.top=j(-s-w-T.depth),k.marginLeft&&(B.style.marginLeft=k.marginLeft),k.marginRight&&(B.style.marginRight=k.marginRight),f.push(B),w+=T.height+T.depth}g=Math.min(g,w),y=Math.max(y,w)}var P=Ne(["vlist"],f);P.style.height=j(y);var O;if(g<0){var Y=Ne([],[]),q=Ne(["vlist"],[Y]);q.style.height=j(-g);var I=Ne(["vlist-s"],[new Ve("​")]);O=[Ne(["vlist-r"],[P,I]),Ne(["vlist-r"],[q])]}else O=[Ne(["vlist-r"],[P])];var $=Ne(["vlist-t"],O);return O.length===2&&$.classes.push("vlist-t2"),$.height=y,$.depth=-g,$},Q4=(r,e)=>{var t=Ne(["mspace"],[],e),a=de(r,e);return t.style.marginRight=j(a),t},yt=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},ro={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"}},ao={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},e2=function(e,t){var[a,n,s]=ao[e],o=new y0(a),l=new c0([o],{width:j(n),height:j(s),style:"width:"+j(n),viewBox:"0 0 "+1e3*n+" "+1e3*s,preserveAspectRatio:"xMinYMin"}),u=eo(["overlay"],[l],t);return u.height=s,u.style.height=j(s),u.style.width=j(n),u},C={fontMap:ro,makeSymbol:Ue,mathsym:_4,makeSpan:Ne,makeSvgSpan:eo,makeLineSpan:X4,makeAnchor:Y4,makeFragment:to,wrapFragment:Z4,makeVList:J4,makeOrd:U4,makeGlue:Q4,staticSvg:e2,svgData:ao,tryCombineChars:$4},ue={number:3,unit:"mu"},z0={number:4,unit:"mu"},a0={number:5,unit:"mu"},t2={mord:{mop:ue,mbin:z0,mrel:a0,minner:ue},mop:{mord:ue,mop:ue,mrel:a0,minner:ue},mbin:{mord:z0,mop:z0,mopen:z0,minner:z0},mrel:{mord:a0,mop:a0,mopen:a0,minner:a0},mopen:{},mclose:{mop:ue,mbin:z0,mrel:a0,minner:ue},mpunct:{mord:ue,mop:ue,mrel:a0,mopen:ue,mclose:ue,mpunct:ue,minner:ue},minner:{mord:ue,mop:ue,mbin:z0,mrel:a0,mopen:ue,mpunct:ue,minner:ue}},r2={mord:{mop:ue},mop:{mord:ue,mop:ue},mbin:{},mrel:{},mopen:{},mclose:{mop:ue},mpunct:{},minner:{mop:ue}},no={},Rt={},Lt={};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)no[t[u]]=l;e&&(s&&(Rt[e]=s),o&&(Lt[e]=o))}function R0(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 Bt=function(e){return e.type==="ordgroup"&&e.body.length===1?e.body[0]:e},ve=function(e){return e.type==="ordgroup"?e.body:[e]},u0=C.makeSpan,a2=["leftmost","mbin","mopen","mrel","mop","mpunct"],n2=["rightmost","mrel","mclose","mpunct"],s2={display:K.DISPLAY,text:K.TEXT,script:K.SCRIPT,scriptscript:K.SCRIPTSCRIPT},o2={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},ke=function(e,t,a,n){n===void 0&&(n=[null,null]);for(var s=[],o=0;o<e.length;o++){var l=re(e[o],t);if(l instanceof tt){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(s2[f.style]))}var g=u0([n[0]||"leftmost"],[],t),y=u0([n[1]||"rightmost"],[],t),w=a==="root";return nn(s,(M,k)=>{var T=k.classes[0],N=M.classes[0];T==="mbin"&&n2.includes(N)?k.classes[0]="mord":N==="mbin"&&a2.includes(T)&&(M.classes[0]="mord")},{node:g},y,w),nn(s,(M,k)=>{var T=Er(k),N=Er(M),R=T&&N?M.hasClass("mtight")?r2[T][N]:t2[T][N]:null;if(R)return C.makeGlue(R,d)},{node:g},y,w),s},nn=function r(e,t,a,n,s){n&&e.push(n);for(var o=0;o<e.length;o++){var l=e[o],u=so(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=u0(["leftmost"])),a.insertAfter=(g=>y=>{e.splice(g+1,0,y),o++})(o)}n&&e.pop()},so=function(e){return e instanceof tt||e instanceof Jr||e instanceof rt&&e.hasClass("enclosing")?e:null},i2=function r(e,t){var a=so(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},Er=function(e,t){return e?(t&&(e=i2(e,t)),o2[e.classes[0]]||null):null},et=function(e,t){var a=["nulldelimiter"].concat(e.baseSizingClasses());return u0(t.concat(a))},re=function(e,t,a){if(!e)return u0();if(Rt[e.type]){var n=Rt[e.type](e,t);if(a&&t.size!==a.size){n=u0(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 wt(r,e){var t=u0(["base"],r,e),a=u0(["strut"]);return a.style.height=j(t.height+t.depth),t.depth&&(a.style.verticalAlign=j(-t.depth)),t.children.unshift(a),t}function Rr(r,e){var t=null;r.length===1&&r[0].type==="tag"&&(t=r[0].tag,r=r[0].body);var a=ke(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(wt(o,e)),o=[])}else a[l].hasClass("newline")&&(o.pop(),o.length>0&&(s.push(wt(o,e)),o=[]),s.push(a[l]));o.length>0&&s.push(wt(o,e));var d;t?(d=wt(ke(t,e,!0)),d.classes=["tag"],s.push(d)):n&&s.push(n);var f=u0(["katex-html"],s);if(f.setAttribute("aria-hidden","true"),d){var g=d.children[0];g.style.height=j(f.height+f.depth),f.depth&&(g.style.verticalAlign=j(-f.depth))}return f}function oo(r){return new tt(r)}class Ie{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=x0(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+=ae.escape(this.attributes[t]),e+='"');this.classes.length>0&&(e+=' class ="'+ae.escape(x0(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 ae.escape(this.toText())}toText(){return this.text}}class l2{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",j(this.width)),e}toMarkup(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+j(this.width)+'"/>'}toText(){return this.character?this.character:" "}}var E={MathNode:Ie,TextNode:Ze,SpaceNode:l2,newDocumentFragment:oo},_e=function(e,t,a){return le[t][e]&&le[t][e].replace&&e.charCodeAt(0)!==55349&&!(Qs.hasOwnProperty(e)&&a&&(a.fontFamily&&a.fontFamily.slice(4,6)==="tt"||a.font&&a.font.slice(4,6)==="tt"))&&(e=le[t][e].replace),new E.TextNode(e)},ea=function(e){return e.length===1?e[0]:new E.MathNode("mrow",e)},ta=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;le[n][s]&&le[n][s].replace&&(s=le[n][s].replace);var o=C.fontMap[a].fontName;return Kr(s,o,n)?C.fontMap[a].variant:null};function mr(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 Ee=function(e,t,a){if(e.length===1){var n=oe(e[0],t);return a&&n instanceof Ie&&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 Ie&&o instanceof Ie){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(mr(u)&&o.type==="mn"){o.children.push(...u.children);continue}else if(u.type==="mn"&&mr(o))u.children=[...o.children,...u.children],s.pop();else if((u.type==="msup"||u.type==="msub")&&u.children.length>=1&&(o.type==="mn"||mr(o))){var d=u.children[0];d instanceof Ie&&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},w0=function(e,t,a){return ea(Ee(e,t,a))},oe=function(e,t){if(!e)return new E.MathNode("mrow");if(Lt[e.type]){var a=Lt[e.type](e,t);return a}else throw new L("Got group of unknown type: '"+e.type+"'")};function sn(r,e,t,a,n){var s=Ee(r,t),o;s.length===1&&s[0]instanceof Ie&&["mrow","mtable"].includes(s[0].type)?o=s[0]:o=new E.MathNode("mrow",s);var l=new E.MathNode("annotation",[new E.TextNode(e)]);l.setAttribute("encoding","application/x-tex");var u=new E.MathNode("semantics",[o,l]),d=new E.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 io=function(e){return new s0({style:e.displayMode?K.DISPLAY:K.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness})},lo=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},c2=function(e,t,a){var n=io(a),s;if(a.output==="mathml")return sn(e,t,n,a.displayMode,!0);if(a.output==="html"){var o=Rr(e,n);s=C.makeSpan(["katex"],[o])}else{var l=sn(e,t,n,a.displayMode,!1),u=Rr(e,n);s=C.makeSpan(["katex"],[l,u])}return lo(s,a)},u2=function(e,t,a){var n=io(a),s=Rr(e,n),o=C.makeSpan(["katex"],[s]);return lo(o,a)},d2={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":"="},m2=function(e){var t=new E.MathNode("mo",[new E.TextNode(d2[e.replace(/^\\/,"")])]);return t.setAttribute("stretchy","true"),t},h2={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]},f2=function(e){return e.type==="ordgroup"?e.body.length:1},p2=function(e,t){function a(){var l=4e5,u=e.label.slice(1);if(["widehat","widecheck","widetilde","utilde"].includes(u)){var d=e,f=f2(d.base),g,y,w;if(f>5)u==="widehat"||u==="widecheck"?(g=420,l=2364,w=.42,y=u+"4"):(g=312,l=2340,w=.34,y="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],y=u+M):(l=[0,600,1033,2339,2340][M],g=[0,260,286,306,312][M],w=[0,.26,.286,.3,.306,.34][M],y="tilde"+M)}var k=new y0(y),T=new c0([k],{width:"100%",height:j(w),viewBox:"0 0 "+l+" "+g,preserveAspectRatio:"none"});return{span:C.makeSvgSpan([],[T],t),minWidth:0,height:w}}else{var N=[],R=h2[u],[B,P,O]=R,Y=O/1e3,q=B.length,I,$;if(q===1){var me=R[3];I=["hide-tail"],$=[me]}else if(q===2)I=["halfarrow-left","halfarrow-right"],$=["xMinYMin","xMaxYMin"];else if(q===3)I=["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 ie=0;ie<q;ie++){var te=new y0(B[ie]),ge=new c0([te],{width:"400em",height:j(Y),viewBox:"0 0 "+l+" "+O,preserveAspectRatio:$[ie]+" slice"}),ye=C.makeSvgSpan([I[ie]],[ge],t);if(q===1)return{span:ye,minWidth:P,height:Y};ye.style.height=j(Y),N.push(ye)}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=j(o),s>0&&(n.style.minWidth=j(s)),n},v2=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 Nr({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(t)&&d.push(new Nr({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var f=new c0(d,{width:"100%",height:j(l)});o=C.makeSvgSpan([],[f],s)}return o.height=l,o.style.height=j(l),o},d0={encloseSpan:v2,mathMLnode:m2,svgSpan:p2};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 ra(r){var e=Vt(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 Vt(r){return r&&(r.type==="atom"||H4.hasOwnProperty(r.type))?r:null}var aa=(r,e)=>{var t,a,n;r&&r.type==="supsub"?(a=Q(r.base,"accent"),t=a.base,r.base=t,n=F4(re(r,e)),r.base=a):(a=Q(r,"accent"),t=a.base);var s=re(t,e.havingCrampedStyle()),o=a.isShifty&&ae.isCharacterBox(t),l=0;if(o){var u=ae.getBaseElem(t),d=re(u,e.havingCrampedStyle());l=Ja(d).skew}var f=a.label==="\\c",g=f?s.height+s.depth:Math.min(s.height,e.fontMetrics().xHeight),y;if(a.isStretchy)y=d0.svgSpan(a,e),y=C.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"elem",elem:y,wrapperClasses:["svg-align"],wrapperStyle:l>0?{width:"calc(100% - "+j(2*l)+")",marginLeft:j(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=Ja(w),w.italic=0,M=w.width,f&&(g+=w.depth)),y=C.makeSpan(["accent-body"],[w]);var k=a.label==="\\textcircled";k&&(y.classes.push("accent-full"),g=s.height);var T=l;k||(T-=M/2),y.style.left=j(T),a.label==="\\textcircled"&&(y.style.top=".2em"),y=C.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"kern",size:-g},{type:"elem",elem:y}]},e)}var N=C.makeSpan(["mord","accent"],[y],e);return n?(n.children[0]=N,n.height=Math.max(N.height,n.height),n.classes[0]="mord",n):N},co=(r,e)=>{var t=r.isStretchy?d0.mathMLnode(r.label):new E.MathNode("mo",[_e(r.label,r.mode)]),a=new E.MathNode("mover",[oe(r.base,e),t]);return a.setAttribute("accent","true"),a},g2=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=Bt(e[0]),a=!g2.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:aa,mathmlBuilder:co});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:aa,mathmlBuilder:co});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=re(r.base,e),a=d0.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=d0.mathMLnode(r.label),a=new E.MathNode("munder",[oe(r.base,e),t]);return a.setAttribute("accentunder","true"),a}});var St=r=>{var e=new E.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(re(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(re(r.below,a,e),e),o.classes.push(s+"-arrow-pad"));var l=d0.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=d0.mathMLnode(r.label);t.setAttribute("minsize",r.label.charAt(0)==="x"?"1.75em":"3.0em");var a;if(r.body){var n=St(oe(r.body,e));if(r.below){var s=St(oe(r.below,e));a=new E.MathNode("munderover",[t,s,n])}else a=new E.MathNode("mover",[t,n])}else if(r.below){var o=St(oe(r.below,e));a=new E.MathNode("munder",[t,o])}else a=St(),a=new E.MathNode("mover",[t,a]);return a}});var b2=C.makeSpan;function uo(r,e){var t=ke(r.body,e,!0);return b2([r.mclass],t,e)}function mo(r,e){var t,a=Ee(r.body,e);return r.mclass==="minner"?t=new E.MathNode("mpadded",a):r.mclass==="mord"?r.isCharacterBox?(t=a[0],t.type="mi"):t=new E.MathNode("mi",a):(r.isCharacterBox?(t=a[0],t.type="mo"):t=new E.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:ve(n),isCharacterBox:ae.isCharacterBox(n)}},htmlBuilder:uo,mathmlBuilder:mo});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:ve(e[1]),isCharacterBox:ae.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:ve(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:ae.isCharacterBox(u)}},htmlBuilder:uo,mathmlBuilder:mo});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:ve(e[0])}},htmlBuilder(r,e){var t=ke(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=Ee(r.body,e),a=new E.MathNode("mstyle",t);return a.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),a}});var x2={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},on=()=>({type:"styling",body:[],mode:"math",style:"display"}),ln=r=>r.type==="textord"&&r.text==="@",y2=(r,e)=>(r.type==="mathord"||r.type==="atom")&&r.text===e;function w2(r,e,t){var a=x2[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 S2(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=on(),u=0;u<o.length;u++)if(!ln(o[u]))l.body.push(o[u]);else{a.push(l),u+=1;var d=ra(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 y=!0,w=u+1;w<o.length;w++){if(y2(o[w],d)){y=!1,u=w;break}if(ln(o[w]))throw new L("Missing a "+d+" character to complete a CD arrow.",o[w]);f[g].body.push(o[w])}if(y)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=w2(d,f,r),k={type:"styling",body:[M],mode:"math",style:"display"};a.push(k),l=on()}s%2===0?a.push(l):a.shift(),a=[],n.push(a)}r.gullet.endGroup(),r.gullet.endGroup();var T=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:T,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(re(r.label,t,e),e);return a.classes.push("cd-label-"+r.side),a.style.bottom=j(.8-a.depth),a.height=0,a.depth=0,a},mathmlBuilder(r,e){var t=new E.MathNode("mrow",[oe(r.label,e)]);return t=new E.MathNode("mpadded",[t]),t.setAttribute("width","0"),r.side==="left"&&t.setAttribute("lspace","-1width"),t.setAttribute("voffset","0.7em"),t=new E.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(re(r.fragment,e),e);return t.classes.push("cd-vert-arrow"),t},mathmlBuilder(r,e){return new E.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 ho=(r,e)=>{var t=ke(r.body,e.withColor(r.color),!1);return C.makeFragment(t)},fo=(r,e)=>{var t=Ee(r.body,e.withColor(r.color)),a=new E.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:ve(n)}},htmlBuilder:ho,mathmlBuilder:fo});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:ho,mathmlBuilder:fo});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=j(de(r.size,e)))),t},mathmlBuilder(r,e){var t=new E.MathNode("mspace");return r.newLine&&(t.setAttribute("linebreak","newline"),r.size&&t.setAttribute("height",j(de(r.size,e)))),t}});var Lr={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},po=r=>{var e=r.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(e))throw new L("Expected a control sequence",r);return e},k2=r=>{var e=r.gullet.popToken();return e.text==="="&&(e=r.gullet.popToken(),e.text===" "&&(e=r.gullet.popToken())),e},vo=(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(Lr[a.text])return(t==="\\global"||t==="\\\\globallong")&&(a.text=Lr[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===Lr[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=po(e.gullet.popToken());e.gullet.consumeSpaces();var n=k2(e);return vo(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=po(e.gullet.popToken()),n=e.gullet.popToken(),s=e.gullet.popToken();return vo(e,a,s,t==="\\\\globalfuture"),e.gullet.pushToken(s),e.gullet.pushToken(n),{type:"internal",mode:e.mode}}});var Y0=function(e,t,a){var n=le.math[e]&&le.math[e].replace,s=Kr(n||e,t,a);if(!s)throw new Error("Unsupported symbol "+e+" and font size "+t+".");return s},na=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},go=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=j(s),e.height-=s,e.depth+=s},C2=function(e,t,a,n,s,o){var l=C.makeSymbol(e,"Main-Regular",s,n),u=na(l,t,n,o);return a&&go(u,n,t),u},M2=function(e,t,a,n){return C.makeSymbol(e,"Size"+t+"-Regular",a,n)},bo=function(e,t,a,n,s,o){var l=M2(e,t,s,n),u=na(C.makeSpan(["delimsizing","size"+t],[l],n),K.TEXT,n,o);return a&&go(u,n,K.TEXT),u},hr=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}},fr=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 y0("inner",D4(e,Math.round(1e3*t))),o=new c0([s],{width:j(n),height:j(t),style:"width:"+j(n),viewBox:"0 0 "+1e3*n+" "+Math.round(1e3*t),preserveAspectRatio:"xMinYMin"}),l=C.makeSvgSpan([],[o],a);return l.height=t,l.style.height=j(t),l.style.width=j(n),{type:"elem",elem:l}},Br=.008,kt={type:"kern",size:-1*Br},z2=["|","\\lvert","\\rvert","\\vert"],T2=["\\|","\\lVert","\\rVert","\\Vert"],xo=function(e,t,a,n,s,o){var l,u,d,f,g="",y=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"):z2.includes(e)?(d="∣",g="vert",y=333):T2.includes(e)?(d="∥",g="doublevert",y=556):e==="["||e==="\\lbrack"?(l="⎡",d="⎢",f="⎣",w="Size4-Regular",g="lbrack",y=667):e==="]"||e==="\\rbrack"?(l="⎤",d="⎥",f="⎦",w="Size4-Regular",g="rbrack",y=667):e==="\\lfloor"||e==="⌊"?(d=l="⎢",f="⎣",w="Size4-Regular",g="lfloor",y=667):e==="\\lceil"||e==="⌈"?(l="⎡",d=f="⎢",w="Size4-Regular",g="lceil",y=667):e==="\\rfloor"||e==="⌋"?(d=l="⎥",f="⎦",w="Size4-Regular",g="rfloor",y=667):e==="\\rceil"||e==="⌉"?(l="⎤",d=f="⎥",w="Size4-Regular",g="rceil",y=667):e==="("||e==="\\lparen"?(l="⎛",d="⎜",f="⎝",w="Size4-Regular",g="lparen",y=875):e===")"||e==="\\rparen"?(l="⎞",d="⎟",f="⎠",w="Size4-Regular",g="rparen",y=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=Y0(l,w,s),k=M.height+M.depth,T=Y0(d,w,s),N=T.height+T.depth,R=Y0(f,w,s),B=R.height+R.depth,P=0,O=1;if(u!==null){var Y=Y0(u,w,s);P=Y.height+Y.depth,O=2}var q=k+B+P,I=Math.max(0,Math.ceil((t-q)/(O*N))),$=q+I*O*N,me=n.fontMetrics().axisHeight;a&&(me*=n.sizeMultiplier);var ie=$/2-me,te=[];if(g.length>0){var ge=$-k-B,ye=Math.round($*1e3),he=E4(g,Math.round(ge*1e3)),pe=new y0(g,he),Me=(y/1e3).toFixed(3)+"em",X=(ye/1e3).toFixed(3)+"em",t0=new c0([pe],{width:Me,height:X,viewBox:"0 0 "+y+" "+ye}),Re=C.makeSvgSpan([],[t0],n);Re.height=ye/1e3,Re.style.width=Me,Re.style.height=X,te.push({type:"elem",elem:Re})}else{if(te.push(hr(f,w,s)),te.push(kt),u===null){var Le=$-k-B+2*Br;te.push(fr(d,Le,n))}else{var Ce=($-k-B-P)/2+2*Br;te.push(fr(d,Ce,n)),te.push(kt),te.push(hr(u,w,s)),te.push(kt),te.push(fr(d,Ce,n))}te.push(kt),te.push(hr(l,w,s))}var ne=n.havingBaseStyle(K.TEXT),we=C.makeVList({positionType:"bottom",positionData:ie,children:te},ne);return na(C.makeSpan(["delimsizing","mult"],[we],ne),K.TEXT,n,o)},pr=80,vr=.08,gr=function(e,t,a,n,s){var o=N4(e,n,a),l=new y0(e,o),u=new c0([l],{width:"400em",height:j(t),viewBox:"0 0 400000 "+a,preserveAspectRatio:"xMinYMin slice"});return C.makeSvgSpan(["hide-tail"],[u],s)},A2=function(e,t){var a=t.havingBaseSizing(),n=ko("\\surd",e*a.sizeMultiplier,So,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+pr,e<1?s=1:e<1.4&&(s=.7),u=(1+o+vr)/s,d=(1+o)/s,l=gr("sqrtMain",u,f,o,t),l.style.minWidth="0.853em",g=.833/s):n.type==="large"?(f=(1e3+pr)*Z0[n.size],d=(Z0[n.size]+o)/s,u=(Z0[n.size]+o+vr)/s,l=gr("sqrtSize"+n.size,u,f,o,t),l.style.minWidth="1.02em",g=1/s):(u=e+o+vr,d=e+o,f=Math.floor(1e3*e+o)+pr,l=gr("sqrtTall",u,f,o,t),l.style.minWidth="0.742em",g=1.056),l.height=d,l.style.height=j(u),{span:l,advanceWidth:g,ruleWidth:(t.fontMetrics().sqrtRuleThickness+o)*s}},yo=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"],N2=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"],wo=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],Z0=[0,1.2,1.8,2.4,3],D2=function(e,t,a,n,s){if(e==="<"||e==="\\lt"||e==="⟨"?e="\\langle":(e===">"||e==="\\gt"||e==="⟩")&&(e="\\rangle"),yo.includes(e)||wo.includes(e))return bo(e,t,!1,a,n,s);if(N2.includes(e))return xo(e,Z0[t],!1,a,n,s);throw new L("Illegal delimiter: '"+e+"'")},E2=[{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}],R2=[{type:"small",style:K.SCRIPTSCRIPT},{type:"small",style:K.SCRIPT},{type:"small",style:K.TEXT},{type:"stack"}],So=[{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"}],L2=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.")},ko=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=Y0(e,L2(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]},Co=function(e,t,a,n,s,o){e==="<"||e==="\\lt"||e==="⟨"?e="\\langle":(e===">"||e==="\\gt"||e==="⟩")&&(e="\\rangle");var l;wo.includes(e)?l=E2:yo.includes(e)?l=So:l=R2;var u=ko(e,t,l,n);return u.type==="small"?C2(e,u.style,a,n,s,o):u.type==="large"?bo(e,u.size,a,n,s,o):xo(e,t,a,n,s,o)},B2=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 Co(e,g,!0,n,s,o)},l0={sqrtImage:A2,sizedDelim:D2,sizeToMaxHeight:Z0,customSizedDelim:Co,leftRightDelim:B2},cn={"\\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}},I2=["(","\\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 Gt(r,e){var t=Vt(r);if(t&&I2.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=Gt(e[0],r);return{type:"delimsizing",mode:r.parser.mode,size:cn[r.funcName].size,mclass:cn[r.funcName].mclass,delim:t.text}},htmlBuilder:(r,e)=>r.delim==="."?C.makeSpan([r.mclass]):l0.sizedDelim(r.delim,r.size,e,r.mode,[r.mclass]),mathmlBuilder:r=>{var e=[];r.delim!=="."&&e.push(_e(r.delim,r.mode));var t=new E.MathNode("mo",e);r.mclass==="mopen"||r.mclass==="mclose"?t.setAttribute("fence","true"):t.setAttribute("fence","false"),t.setAttribute("stretchy","true");var a=j(l0.sizeToMaxHeight[r.size]);return t.setAttribute("minsize",a),t.setAttribute("maxsize",a),t}});function un(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:Gt(e[0],r).text,color:t}}});F({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(r,e)=>{var t=Gt(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)=>{un(r);for(var t=ke(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=et(e,["mopen"]):l=l0.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]=l0.leftRightDelim(f.delim,a,n,f.options,r.mode,[]))}var g;if(r.right===".")g=et(e,["mclose"]);else{var y=r.rightColor?e.withColor(r.rightColor):e;g=l0.leftRightDelim(r.right,a,n,y,r.mode,["mclose"])}return t.push(g),C.makeSpan(["minner"],t,e)},mathmlBuilder:(r,e)=>{un(r);var t=Ee(r.body,e);if(r.left!=="."){var a=new E.MathNode("mo",[_e(r.left,r.mode)]);a.setAttribute("fence","true"),t.unshift(a)}if(r.right!=="."){var n=new E.MathNode("mo",[_e(r.right,r.mode)]);n.setAttribute("fence","true"),r.rightColor&&n.setAttribute("mathcolor",r.rightColor),t.push(n)}return ea(t)}});F({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(r,e)=>{var t=Gt(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=et(e,[]);else{t=l0.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==="|"?_e("|","text"):_e(r.delim,r.mode),a=new E.MathNode("mo",[t]);return a.setAttribute("fence","true"),a.setAttribute("lspace","0.05em"),a.setAttribute("rspace","0.05em"),a}});var sa=(r,e)=>{var t=C.wrapFragment(re(r.body,e),e),a=r.label.slice(1),n=e.sizeMultiplier,s,o=0,l=ae.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=de({number:.6,unit:"pt"},e),d=de({number:.35,unit:"ex"},e),f=e.havingBaseSizing();n=n/f.sizeMultiplier;var g=t.height+t.depth+u+d;t.style.paddingLeft=j(g/2+u);var y=Math.floor(1e3*g*n),w=T4(y),M=new c0([new y0("phase",w)],{width:"400em",height:j(y/1e3),viewBox:"0 0 400000 "+y,preserveAspectRatio:"xMinYMin slice"});s=C.makeSvgSpan(["hide-tail"],[M],e),s.style.height=j(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,T=0,N=0;/box/.test(a)?(N=Math.max(e.fontMetrics().fboxrule,e.minRuleThickness),k=e.fontMetrics().fboxsep+(a==="colorbox"?0:N),T=k):a==="angl"?(N=Math.max(e.fontMetrics().defaultRuleThickness,e.minRuleThickness),k=4*N,T=Math.max(0,.25-t.depth)):(k=l?.2:0,T=k),s=d0.encloseSpan(t,a,k,T,e),/fbox|boxed|fcolorbox/.test(a)?(s.style.borderStyle="solid",s.style.borderWidth=j(N)):a==="angl"&&N!==.049&&(s.style.borderTopWidth=j(N),s.style.borderRightWidth=j(N)),o=t.depth+T,r.backgroundColor&&(s.style.backgroundColor=r.backgroundColor,r.borderColor&&(s.style.borderColor=r.borderColor))}var R;if(r.backgroundColor)R=C.makeVList({positionType:"individualShift",children:[{type:"elem",elem:s,shift:o},{type:"elem",elem:t,shift:0}]},e);else{var B=/cancel|phase/.test(a)?["svg-align"]:[];R=C.makeVList({positionType:"individualShift",children:[{type:"elem",elem:t,shift:0},{type:"elem",elem:s,shift:o,wrapperClasses:B}]},e)}return/cancel/.test(a)&&(R.height=t.height,R.depth=t.depth),/cancel/.test(a)&&!l?C.makeSpan(["mord","cancel-lap"],[R],e):C.makeSpan(["mord"],[R],e)},oa=(r,e)=>{var t=0,a=new E.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:sa,mathmlBuilder:oa});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:sa,mathmlBuilder:oa});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:sa,mathmlBuilder:oa});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 Mo={};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)Mo[t[u]]=l;s&&(Rt[e]=s),o&&(Lt[e]=o)}var zo={};function v(r,e){zo[r]=e}function dn(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 Ut=r=>{var e=r.parser.settings;if(!e.displayMode)throw new L("{"+r.envName+"} can be used only in display mode.")};function ia(r){if(r.indexOf("ed")===-1)return r.indexOf("*")===-1}function S0(r,e,t){var{hskipBeforeAndAfter:a,addJot:n,cols:s,arraystretch:o,colSeparationType:l,autoTag:u,singleRow:d,emptySingleRow:f,maxNumCols:g,leqno:y}=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],T=[],N=[],R=u!=null?[]:void 0;function B(){u&&r.gullet.macros.set("\\@eqnsw","1",!0)}function P(){R&&(r.gullet.macros.get("\\df@tag")?(R.push(r.subparse([new je("\\df@tag")])),r.gullet.macros.set("\\df@tag",void 0,!0)):R.push(!!u&&r.gullet.macros.get("\\@eqnsw")==="1"))}for(B(),N.push(dn(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)),T.push(q?q.value:null),P(),N.push(dn(r)),M=[],k.push(M),B()}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:T,hskipBeforeAndAfter:a,hLinesBeforeRow:N,colSeparationType:l,tags:R,leqno:y}}function la(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,y=5*g;if(e.colSeparationType&&e.colSeparationType==="small"){var w=t.havingStyle(K.SCRIPT).sizeMultiplier;y=.2778*(w/t.sizeMultiplier)}var M=e.colSeparationType==="CD"?de({number:3,unit:"ex"},t):12*g,k=3*g,T=e.arraystretch*M,N=.7*T,R=.3*T,B=0;function P(nt){for(var st=0;st<nt.length;++st)st>0&&(B+=.25),d.push({pos:B,isDashed:nt[st]})}for(P(o[0]),a=0;a<e.body.length;++a){var O=e.body[a],Y=N,q=R;l<O.length&&(l=O.length);var I=new Array(O.length);for(n=0;n<O.length;++n){var $=re(O[n],t);q<$.depth&&(q=$.depth),Y<$.height&&(Y=$.height),I[n]=$}var me=e.rowGaps[a],ie=0;me&&(ie=de(me,t),ie>0&&(ie+=R,q<ie&&(q=ie),ie=0)),e.addJot&&(q+=k),I.height=Y,I.depth=q,B+=Y,I.pos=B,B+=q+ie,u[a]=I,P(o[a+1])}var te=B/2+t.fontMetrics().axisHeight,ge=e.cols||[],ye=[],he,pe,Me=[];if(e.tags&&e.tags.some(nt=>nt))for(a=0;a<s;++a){var X=u[a],t0=X.pos-te,Re=e.tags[a],Le=void 0;Re===!0?Le=C.makeSpan(["eqn-num"],[],t):Re===!1?Le=C.makeSpan([],[],t):Le=C.makeSpan([],ke(Re,t,!0),t),Le.depth=X.depth,Le.height=X.height,Me.push({type:"elem",elem:Le,shift:t0})}for(n=0,pe=0;n<l||pe<ge.length;++n,++pe){for(var Ce=ge[pe]||{},ne=!0;Ce.type==="separator";){if(ne||(he=C.makeSpan(["arraycolsep"],[]),he.style.width=j(t.fontMetrics().doubleRuleSep),ye.push(he)),Ce.separator==="|"||Ce.separator===":"){var we=Ce.separator==="|"?"solid":"dashed",Be=C.makeSpan(["vertical-separator"],[],t);Be.style.height=j(B),Be.style.borderRightWidth=j(f),Be.style.borderRightStyle=we,Be.style.margin="0 "+j(-f/2);var k0=B-te;k0&&(Be.style.verticalAlign=j(-k0)),ye.push(Be)}else throw new L("Invalid separator type: "+Ce.separator);pe++,Ce=ge[pe]||{},ne=!1}if(!(n>=l)){var se=void 0;(n>0||e.hskipBeforeAndAfter)&&(se=ae.deflt(Ce.pregap,y),se!==0&&(he=C.makeSpan(["arraycolsep"],[]),he.style.width=j(se),ye.push(he)));var Ge=[];for(a=0;a<s;++a){var Oe=u[a],Fe=Oe[n];if(Fe){var G=Oe.pos-te;Fe.depth=Oe.depth,Fe.height=Oe.height,Ge.push({type:"elem",elem:Fe,shift:G})}}Ge=C.makeVList({positionType:"individualShift",children:Ge},t),Ge=C.makeSpan(["col-align-"+(Ce.align||"c")],[Ge]),ye.push(Ge),(n<l-1||e.hskipBeforeAndAfter)&&(se=ae.deflt(Ce.postgap,y),se!==0&&(he=C.makeSpan(["arraycolsep"],[]),he.style.width=j(se),ye.push(he)))}}if(u=C.makeSpan(["mtable"],ye),d.length>0){for(var qe=C.makeLineSpan("hline",t,f),Uo=C.makeLineSpan("hdashline",t,f),$t=[{type:"elem",elem:u,shift:0}];d.length>0;){var pa=d.pop(),va=pa.pos-te;pa.isDashed?$t.push({type:"elem",elem:Uo,shift:va}):$t.push({type:"elem",elem:qe,shift:va})}u=C.makeVList({positionType:"individualShift",children:$t},t)}if(Me.length===0)return C.makeSpan(["mord"],[u],t);var Xt=C.makeVList({positionType:"individualShift",children:Me},t);return Xt=C.makeSpan(["tag"],[Xt],t),C.makeFragment([u,Xt])},j2={c:"center ",l:"left ",r:"right "},e0=function(e,t){for(var a=[],n=new E.MathNode("mtd",[],["mtr-glue"]),s=new E.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 E.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 E.MathNode("mtr",u))}var f=new E.MathNode("mtable",a),g=e.arraystretch===.5?.1:.16+e.arraystretch-1+(e.addJot?.09:0);f.setAttribute("rowspacing",j(g));var y="",w="";if(e.cols&&e.cols.length>0){var M=e.cols,k="",T=!1,N=0,R=M.length;M[0].type==="separator"&&(y+="top ",N=1),M[M.length-1].type==="separator"&&(y+="bottom ",R-=1);for(var B=N;B<R;B++)M[B].type==="align"?(w+=j2[M[B].align],T&&(k+="none "),T=!0):M[B].type==="separator"&&T&&(k+=M[B].separator==="|"?"solid ":"dashed ",T=!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="",I=e.hLinesBeforeRow;y+=I[0].length>0?"left ":"",y+=I[I.length-1].length>0?"right ":"";for(var $=1;$<I.length-1;$++)q+=I[$].length===0?"none ":I[$][0]?"dashed ":"solid ";return/[sd]/.test(q)&&f.setAttribute("rowlines",q.trim()),y!==""&&(f=new E.MathNode("menclose",[f]),f.setAttribute("notation",y.trim())),e.arraystretch&&e.arraystretch<1&&(f=new E.MathNode("mstyle",[f]),f.setAttribute("scriptlevel","1")),f},To=function(e,t){e.envName.indexOf("ed")===-1&&Ut(e);var a=[],n=e.envName.indexOf("at")>-1?"alignat":"align",s=e.envName==="split",o=S0(e.parser,{cols:a,addJot:!0,autoTag:s?void 0:ia(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 y=Q(t[0].body[g],"textord");f+=y.text}l=Number(f),u=l*2}var w=!u;o.body.forEach(function(N){for(var R=1;R<N.length;R+=2){var B=Q(N[R],"styling"),P=Q(B.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",T=0;M%2===1?k="l":M>0&&w&&(T=1),a[M]={type:"align",align:k,pregap:T,postgap:0}}return o.colSeparationType=w?"align":"alignat",o};Je({type:"array",names:["array","darray"],props:{numArgs:1},handler(r,e){var t=Vt(e[0]),a=t?[e[0]]:Q(e[0],"ordgroup").body,n=a.map(function(o){var l=ra(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 S0(r.parser,s,la(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=S0(r.parser,a,la(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=S0(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=Vt(e[0]),a=t?[e[0]]:Q(e[0],"ordgroup").body,n=a.map(function(o){var l=ra(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=S0(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=S0(r.parser,e,la(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:To,htmlBuilder:Qe,mathmlBuilder:e0});Je({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(r){["gather","gather*"].includes(r.envName)&&Ut(r);var e={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:ia(r.envName),emptySingleRow:!0,leqno:r.parser.settings.leqno};return S0(r.parser,e,"display")},htmlBuilder:Qe,mathmlBuilder:e0});Je({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:To,htmlBuilder:Qe,mathmlBuilder:e0});Je({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(r){Ut(r);var e={autoTag:ia(r.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:r.parser.settings.leqno};return S0(r.parser,e,"display")},htmlBuilder:Qe,mathmlBuilder:e0});Je({type:"array",names:["CD"],props:{numArgs:0},handler(r){return Ut(r),S2(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 mn=Mo;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(!mn.hasOwnProperty(s))throw new L("No such environment: "+s,n);var l=mn[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 y=t.nextToken,w=Q(t.parseFunction(),"environment");if(w.name!==s)throw new L("Mismatch: \\begin{"+s+"} matched by \\end{"+w.name+"}",y);return g}return{type:"environment",mode:t.mode,name:s,nameGroup:n}}});var Ao=(r,e)=>{var t=r.font,a=e.withFont(t);return re(r.body,a)},No=(r,e)=>{var t=r.font,a=e.withFont(t);return oe(r.body,a)},hn={"\\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=Bt(e[0]),s=a;return s in hn&&(s=hn[s]),{type:"font",mode:t.mode,font:s.slice(1),body:n}},htmlBuilder:Ao,mathmlBuilder:No});F({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(r,e)=>{var{parser:t}=r,a=e[0],n=ae.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:Ao,mathmlBuilder:No});var Do=(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},ca=(r,e)=>{var t=Do(r.size,e.style),a=t.fracNum(),n=t.fracDen(),s;s=e.havingStyle(a);var o=re(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=re(r.denom,s,e),f,g,y;r.hasBarLine?(r.barSize?(g=de(r.barSize,e),f=C.makeLineSpan("frac-line",e,g)):f=C.makeLineSpan("frac-line",e),g=f.height,y=f.height):(f=null,g=0,y=e.fontMetrics().defaultRuleThickness);var w,M,k;t.size===K.DISPLAY.size||r.size==="display"?(w=e.fontMetrics().num1,g>0?M=3*y:M=7*y,k=e.fontMetrics().denom1):(g>0?(w=e.fontMetrics().num2,M=y):(w=e.fontMetrics().num3,M=3*y),k=e.fontMetrics().denom2);var T;if(f){var R=e.fontMetrics().axisHeight;w-o.depth-(R+.5*g)<M&&(w+=M-(w-o.depth-(R+.5*g))),R-.5*g-(d.height-k)<M&&(k+=M-(R-.5*g-(d.height-k)));var B=-(R-.5*g);T=C.makeVList({positionType:"individualShift",children:[{type:"elem",elem:d,shift:k},{type:"elem",elem:f,shift:B},{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)),T=C.makeVList({positionType:"individualShift",children:[{type:"elem",elem:d,shift:k},{type:"elem",elem:o,shift:-w}]},e)}s=e.havingStyle(t),T.height*=s.sizeMultiplier/e.sizeMultiplier,T.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=et(e,["mopen"]):O=l0.customSizedDelim(r.leftDelim,P,!0,e.havingStyle(t),r.mode,["mopen"]),r.continued?Y=C.makeSpan([]):r.rightDelim==null?Y=et(e,["mclose"]):Y=l0.customSizedDelim(r.rightDelim,P,!0,e.havingStyle(t),r.mode,["mclose"]),C.makeSpan(["mord"].concat(s.sizingClasses(e)),[O,C.makeSpan(["mfrac"],[T]),Y],e)},ua=(r,e)=>{var t=new E.MathNode("mfrac",[oe(r.numer,e),oe(r.denom,e)]);if(!r.hasBarLine)t.setAttribute("linethickness","0px");else if(r.barSize){var a=de(r.barSize,e);t.setAttribute("linethickness",j(a))}var n=Do(r.size,e.style);if(n.size!==e.style.size){t=new E.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 E.MathNode("mo",[new E.TextNode(r.leftDelim.replace("\\",""))]);l.setAttribute("fence","true"),o.push(l)}if(o.push(t),r.rightDelim!=null){var u=new E.MathNode("mo",[new E.TextNode(r.rightDelim.replace("\\",""))]);u.setAttribute("fence","true"),o.push(u)}return ea(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:ca,mathmlBuilder:ua});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 fn=["display","text","script","scriptscript"],pn=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=Bt(e[0]),o=s.type==="atom"&&s.family==="open"?pn(s.text):null,l=Bt(e[1]),u=l.type==="atom"&&l.family==="close"?pn(l.text):null,d=Q(e[2],"size"),f,g=null;d.isBlank?f=!0:(g=d.value,f=g.number>0);var y="auto",w=e[3];if(w.type==="ordgroup"){if(w.body.length>0){var M=Q(w.body[0],"textord");y=fn[Number(M.text)]}}else w=Q(w,"textord"),y=fn[Number(w.text)];return{type:"genfrac",mode:t.mode,numer:a,denom:n,continued:!1,hasBarLine:f,barSize:g,leftDelim:o,rightDelim:u,size:y}},htmlBuilder:ca,mathmlBuilder:ua});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=m4(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:ca,mathmlBuilder:ua});var Eo=(r,e)=>{var t=e.style,a,n;r.type==="supsub"?(a=r.sup?re(r.sup,e.havingStyle(t.sup()),e):re(r.sub,e.havingStyle(t.sub()),e),n=Q(r.base,"horizBrace")):n=Q(r,"horizBrace");var s=re(n.base,e.havingBaseStyle(K.DISPLAY)),o=d0.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)},P2=(r,e)=>{var t=d0.mathMLnode(r.label);return new E.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:Eo,mathmlBuilder:P2});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:ve(a)}:t.formatUnsupportedCmd("\\href")},htmlBuilder:(r,e)=>{var t=ke(r.body,e,!1);return C.makeAnchor(r.href,[],t,e)},mathmlBuilder:(r,e)=>{var t=w0(r.body,e);return t instanceof Ie||(t=new Ie("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:ve(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:ve(e[0])}},htmlBuilder(r,e){var t=ke(r.body,e,!1);return C.makeFragment(t)},mathmlBuilder(r,e){return new E.MathNode("mrow",Ee(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:ve(o)}:t.formatUnsupportedCmd(a)},htmlBuilder:(r,e)=>{var t=ke(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)=>w0(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:ve(e[0]),mathml:ve(e[1])}},htmlBuilder:(r,e)=>{var t=ke(r.html,e,!1);return C.makeFragment(t)},mathmlBuilder:(r,e)=>w0(r.mathml,e)});var br=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(!Ys(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 y=g[1].trim();switch(g[0].trim()){case"alt":l=y;break;case"width":n=br(y);break;case"height":s=br(y);break;case"totalheight":o=br(y);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=de(r.height,e),a=0;r.totalheight.number>0&&(a=de(r.totalheight,e)-t);var n=0;r.width.number>0&&(n=de(r.width,e));var s={height:j(t+a)};n>0&&(s.width=j(n)),a>0&&(s.verticalAlign=j(-a));var o=new P4(r.src,r.alt,s);return o.height=t,o.depth=a,o},mathmlBuilder:(r,e)=>{var t=new E.MathNode("mglyph",[]);t.setAttribute("alt",r.alt);var a=de(r.height,e),n=0;if(r.totalheight.number>0&&(n=de(r.totalheight,e)-a,t.setAttribute("valign",j(-n))),t.setAttribute("height",j(a+n)),r.width.number>0){var s=de(r.width,e);t.setAttribute("width",j(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=de(r.dimension,e);return new E.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([],[re(r.body,e)]),t=C.makeSpan(["inner"],[t],e)):t=C.makeSpan(["inner"],[re(r.body,e)]);var a=C.makeSpan(["fix"],[]),n=C.makeSpan([r.alignment],[t,a],e),s=C.makeSpan(["strut"]);return s.style.height=j(n.height+n.depth),n.depth&&(s.style.verticalAlign=j(-n.depth)),n.children.unshift(s),n=C.makeSpan(["thinbox"],[n],e),C.makeSpan(["mord","vbox"],[n],e)},mathmlBuilder:(r,e)=>{var t=new E.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 vn=(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:ve(e[0]),text:ve(e[1]),script:ve(e[2]),scriptscript:ve(e[3])}},htmlBuilder:(r,e)=>{var t=vn(r,e),a=ke(t,e,!1);return C.makeFragment(a)},mathmlBuilder:(r,e)=>{var t=vn(r,e);return w0(t,e)}});var Ro=(r,e,t,a,n,s,o)=>{r=C.makeSpan([],[r]);var l=t&&ae.isCharacterBox(t),u,d;if(e){var f=re(e,a.havingStyle(n.sup()),a);d={elem:f,kern:Math.max(a.fontMetrics().bigOpSpacing1,a.fontMetrics().bigOpSpacing3-f.depth)}}if(t){var g=re(t,a.havingStyle(n.sub()),a);u={elem:g,kern:Math.max(a.fontMetrics().bigOpSpacing2,a.fontMetrics().bigOpSpacing4-g.height)}}var y;if(d&&u){var w=a.fontMetrics().bigOpSpacing5+u.elem.height+u.elem.depth+u.kern+r.depth+o;y=C.makeVList({positionType:"bottom",positionData:w,children:[{type:"kern",size:a.fontMetrics().bigOpSpacing5},{type:"elem",elem:u.elem,marginLeft:j(-s)},{type:"kern",size:u.kern},{type:"elem",elem:r},{type:"kern",size:d.kern},{type:"elem",elem:d.elem,marginLeft:j(s)},{type:"kern",size:a.fontMetrics().bigOpSpacing5}]},a)}else if(u){var M=r.height-o;y=C.makeVList({positionType:"top",positionData:M,children:[{type:"kern",size:a.fontMetrics().bigOpSpacing5},{type:"elem",elem:u.elem,marginLeft:j(-s)},{type:"kern",size:u.kern},{type:"elem",elem:r}]},a)}else if(d){var k=r.depth+o;y=C.makeVList({positionType:"bottom",positionData:k,children:[{type:"elem",elem:r},{type:"kern",size:d.kern},{type:"elem",elem:d.elem,marginLeft:j(s)},{type:"kern",size:a.fontMetrics().bigOpSpacing5}]},a)}else return r;var T=[y];if(u&&s!==0&&!l){var N=C.makeSpan(["mspace"],[],a);N.style.marginRight=j(s),T.unshift(N)}return C.makeSpan(["mop","op-limits"],T,a)},Lo=["\\smallint"],$0=(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&&!Lo.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,y=C.staticSvg(f+"Size"+(l?"2":"1"),e);u=C.makeVList({positionType:"individualShift",children:[{type:"elem",elem:u,shift:0},{type:"elem",elem:y,shift:l?.08:0}]},e),s.name="\\"+f,u.classes.unshift("mop"),u.italic=g}}else if(s.body){var w=ke(s.body,e,!0);w.length===1&&w[0]instanceof Ve?(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 T=0,N=0;return(u instanceof Ve||s.name==="\\oiint"||s.name==="\\oiiint")&&!s.suppressBaseShift&&(T=(u.height-u.depth)/2-e.fontMetrics().axisHeight,N=u.italic),n?Ro(u,t,a,e,o,N,T):(T&&(u.style.position="relative",u.style.top=j(T)),u)},at=(r,e)=>{var t;if(r.symbol)t=new Ie("mo",[_e(r.name,r.mode)]),Lo.includes(r.name)&&t.setAttribute("largeop","false");else if(r.body)t=new Ie("mo",Ee(r.body,e));else{t=new Ie("mi",[new Ze(r.name.slice(1))]);var a=new Ie("mo",[_e("⁡","text")]);r.parentIsSupSub?t=new Ie("mrow",[t,a]):t=oo([t,a])}return t},O2={"∏":"\\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=O2[n]),{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:n}},htmlBuilder:$0,mathmlBuilder:at});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:ve(a)}},htmlBuilder:$0,mathmlBuilder:at});var F2={"∫":"\\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:$0,mathmlBuilder:at});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:$0,mathmlBuilder:at});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=F2[a]),{type:"op",mode:e.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:a}},htmlBuilder:$0,mathmlBuilder:at});var Bo=(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 y=g.text;return typeof y=="string"?{type:"textord",mode:g.mode,text:y}:g}),u=ke(l,e.withFont("mathrm"),!0),d=0;d<u.length;d++){var f=u[d];f instanceof Ve&&(f.text=f.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}o=C.makeSpan(["mop"],u,e)}else o=C.makeSpan(["mop"],[],e);return n?Ro(o,t,a,e,e.style,0,0):o},q2=(r,e)=>{for(var t=Ee(r.body,e.withFont("mathrm")),a=!0,n=0;n<t.length;n++){var s=t[n];if(!(s instanceof E.SpaceNode))if(s instanceof E.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 E.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 E.TextNode(l)]}var u=new E.MathNode("mi",t);u.setAttribute("mathvariant","normal");var d=new E.MathNode("mo",[_e("⁡","text")]);return r.parentIsSupSub?new E.MathNode("mrow",[u,d]):E.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:ve(n),alwaysHandleSupSub:a==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:Bo,mathmlBuilder:q2});v("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");R0({type:"ordgroup",htmlBuilder(r,e){return r.semisimple?C.makeFragment(ke(r.body,e,!1)):C.makeSpan(["mord"],ke(r.body,e,!0),e)},mathmlBuilder(r,e){return w0(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=re(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 E.MathNode("mo",[new E.TextNode("‾")]);t.setAttribute("stretchy","true");var a=new E.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:ve(a)}},htmlBuilder:(r,e)=>{var t=ke(r.body,e.withPhantom(),!1);return C.makeFragment(t)},mathmlBuilder:(r,e)=>{var t=Ee(r.body,e);return new E.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([],[re(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=Ee(ve(r.body),e),a=new E.MathNode("mphantom",t),n=new E.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"],[re(r.body,e.withPhantom())]),a=C.makeSpan(["fix"],[]);return C.makeSpan(["mord","rlap"],[t,a],e)},mathmlBuilder:(r,e)=>{var t=Ee(ve(r.body),e),a=new E.MathNode("mphantom",t),n=new E.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=re(r.body,e),a=de(r.dy,e);return C.makeVList({positionType:"shift",positionData:-a,children:[{type:"elem",elem:t}]},e)},mathmlBuilder(r,e){var t=new E.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=de(r.width,e),n=de(r.height,e),s=r.shift?de(r.shift,e):0;return t.style.borderRightWidth=j(a),t.style.borderTopWidth=j(n),t.style.bottom=j(s),t.width=a,t.height=n+s,t.depth=-s,t.maxFontSize=n*1.125*e.sizeMultiplier,t},mathmlBuilder(r,e){var t=de(r.width,e),a=de(r.height,e),n=r.shift?de(r.shift,e):0,s=e.color&&e.getColor()||"black",o=new E.MathNode("mspace");o.setAttribute("mathbackground",s),o.setAttribute("width",j(t)),o.setAttribute("height",j(a));var l=new E.MathNode("mpadded",[o]);return n>=0?l.setAttribute("height",j(n)):(l.setAttribute("height",j(n)),l.setAttribute("depth",j(-n))),l.setAttribute("voffset",j(n)),l}});function Io(r,e,t){for(var a=ke(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 gn=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],H2=(r,e)=>{var t=e.havingSize(r.size);return Io(r.body,t,e)};F({type:"sizing",names:gn,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:gn.indexOf(a)+1,body:s}},htmlBuilder:H2,mathmlBuilder:(r,e)=>{var t=e.havingSize(r.size),a=Ee(r.body,t),n=new E.MathNode("mstyle",a);return n.setAttribute("mathsize",j(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([],[re(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 E.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=re(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}=l0.sqrtImage(l,e),g=u.height-d;g>t.height+t.depth+o&&(o=(o+g-t.height-t.depth)/2);var y=u.height-t.height-o-d;t.style.paddingLeft=j(f);var w=C.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:t,wrapperClasses:["svg-align"]},{type:"kern",size:-(t.height+y)},{type:"elem",elem:u},{type:"kern",size:d}]},e);if(r.index){var M=e.havingStyle(K.SCRIPTSCRIPT),k=re(r.index,M,e),T=.6*(w.height-w.depth),N=C.makeVList({positionType:"shift",positionData:-T,children:[{type:"elem",elem:k}]},e),R=C.makeSpan(["root"],[N]);return C.makeSpan(["mord","sqrt"],[R,w],e)}else return C.makeSpan(["mord","sqrt"],[w],e)},mathmlBuilder(r,e){var{body:t,index:a}=r;return a?new E.MathNode("mroot",[oe(t,e),oe(a,e)]):new E.MathNode("msqrt",[oe(t,e)])}});var bn={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=bn[r.style],a=e.havingStyle(t).withFont("");return Io(r.body,a,e)},mathmlBuilder(r,e){var t=bn[r.style],a=e.havingStyle(t),n=Ee(r.body,a),s=new E.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 V2=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?$0:null}else if(a.type==="operatorname"){var s=a.alwaysHandleSupSub&&(t.style.size===K.DISPLAY.size||a.limits);return s?Bo:null}else{if(a.type==="accent")return ae.isCharacterBox(a.base)?aa:null;if(a.type==="horizBrace"){var o=!e.sub;return o===a.isOver?Eo:null}else return null}else return null};R0({type:"supsub",htmlBuilder(r,e){var t=V2(r,e);if(t)return t(r,e);var{base:a,sup:n,sub:s}=r,o=re(a,e),l,u,d=e.fontMetrics(),f=0,g=0,y=a&&ae.isCharacterBox(a);if(n){var w=e.havingStyle(e.style.sup());l=re(n,w,e),y||(f=o.height-w.fontMetrics().supDrop*w.sizeMultiplier/e.sizeMultiplier)}if(s){var M=e.havingStyle(e.style.sub());u=re(s,M,e),y||(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 T=e.sizeMultiplier,N=j(.5/d.ptPerEm/T),R=null;if(u){var B=r.base&&r.base.type==="op"&&r.base.name&&(r.base.name==="\\oiint"||r.base.name==="\\oiiint");(o instanceof Ve||B)&&(R=j(-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 I=[{type:"elem",elem:u,shift:g,marginRight:N,marginLeft:R},{type:"elem",elem:l,shift:-f,marginRight:N}];P=C.makeVList({positionType:"individualShift",children:I},e)}else if(u){g=Math.max(g,d.sub1,u.height-.8*d.xHeight);var $=[{type:"elem",elem:u,marginLeft:R,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 me=Er(o,"right")||"mord";return C.makeSpan([me],[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 E.MathNode(o,s)}});R0({type:"atom",htmlBuilder(r,e){return C.mathsym(r.text,r.mode,e,["m"+r.family])},mathmlBuilder(r,e){var t=new E.MathNode("mo",[_e(r.text,r.mode)]);if(r.family==="bin"){var a=ta(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 jo={mi:"italic",mn:"normal",mtext:"normal"};R0({type:"mathord",htmlBuilder(r,e){return C.makeOrd(r,e,"mathord")},mathmlBuilder(r,e){var t=new E.MathNode("mi",[_e(r.text,r.mode,e)]),a=ta(r,e)||"italic";return a!==jo[t.type]&&t.setAttribute("mathvariant",a),t}});R0({type:"textord",htmlBuilder(r,e){return C.makeOrd(r,e,"textord")},mathmlBuilder(r,e){var t=_e(r.text,r.mode,e),a=ta(r,e)||"normal",n;return r.mode==="text"?n=new E.MathNode("mtext",[t]):/[0-9]/.test(r.text)?n=new E.MathNode("mn",[t]):r.text==="\\prime"?n=new E.MathNode("mo",[t]):n=new E.MathNode("mi",[t]),a!==jo[n.type]&&n.setAttribute("mathvariant",a),n}});var xr={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},yr={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};R0({type:"spacing",htmlBuilder(r,e){if(yr.hasOwnProperty(r.text)){var t=yr[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(xr.hasOwnProperty(r.text))return C.makeSpan(["mspace",xr[r.text]],[],e);throw new L('Unknown type of space "'+r.text+'"')}},mathmlBuilder(r,e){var t;if(yr.hasOwnProperty(r.text))t=new E.MathNode("mtext",[new E.TextNode(" ")]);else{if(xr.hasOwnProperty(r.text))return new E.MathNode("mspace");throw new L('Unknown type of space "'+r.text+'"')}return t}});var xn=()=>{var r=new E.MathNode("mtd",[]);return r.setAttribute("width","50%"),r};R0({type:"tag",mathmlBuilder(r,e){var t=new E.MathNode("mtable",[new E.MathNode("mtr",[xn(),new E.MathNode("mtd",[w0(r.body,e)]),xn(),new E.MathNode("mtd",[w0(r.tag,e)])])]);return t.setAttribute("width","100%"),t}});var yn={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},wn={"\\textbf":"textbf","\\textmd":"textmd"},_2={"\\textit":"textit","\\textup":"textup"},Sn=(r,e)=>{var t=r.font;if(t){if(yn[t])return e.withTextFontFamily(yn[t]);if(wn[t])return e.withTextFontWeight(wn[t]);if(t==="\\emph")return e.fontShape==="textit"?e.withTextFontShape("textup"):e.withTextFontShape("textit")}else return e;return e.withTextFontShape(_2[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:ve(n),font:a}},htmlBuilder(r,e){var t=Sn(r,e),a=ke(r.body,t,!0);return C.makeSpan(["mord","text"],a,t)},mathmlBuilder(r,e){var t=Sn(r,e);return w0(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=re(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 E.MathNode("mo",[new E.TextNode("‾")]);t.setAttribute("stretchy","true");var a=new E.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=re(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 E.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=kn(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 E.TextNode(kn(r)),a=new E.MathNode("mtext",[t]);return a.setAttribute("mathvariant","monospace"),a}});var kn=r=>r.body.replace(/ /g,r.star?"␣":" "),g0=no,Po=`[ \r
326
+ ]`,G2="\\\\[a-zA-Z@]+",U2="\\\\[^\uD800-\uDFFF]",W2="("+G2+")"+Po+"*",$2=`\\\\(
327
327
  |[ \r ]+
328
- ?)[ \r ]*`,Ir="[̀-ͯ]",H2=new RegExp(Ir+"+$"),V2="("+Io+"+)|"+(q2+"|")+"([!-\\[\\]-‧‪-퟿豈-￿]"+(Ir+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(Ir+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+F2)+("|"+O2+")");class kn{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(V2,"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 je("EOF",new De(this,t,t));var a=this.tokenRegex.exec(e);if(a===null||a.index!==t)throw new L("Unexpected character: '"+e[t]+"'",new je(e[t],new De(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 je(n,new De(this,t,this.tokenRegex.lastIndex))}}class _2{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 G2=Co;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 Cn={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=Cn[e.text],a==null||a>=t)throw new L("Invalid base-"+t+" digit "+e.text);for(var n;(n=Cn[r.future().text])!=null&&n<t;)a*=t,a+=n,r.popToken()}return"\\@char{"+a+"}"});var da=(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=>da(r,!1,!0,!1));v("\\renewcommand",r=>da(r,!0,!1,!1));v("\\providecommand",r=>da(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),g0[t],le.math[t],le.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 Mn={",":"\\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 Mn?e=Mn[t]:(t.slice(0,4)==="\\not"||t in le.math&&["bin","rel"].includes(le.math[t].group))&&(e="\\dotsb"),e});var ma={")":!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 ma?"\\ldots\\,":"\\ldots"});v("\\dotsc",function(r){var e=r.future().text;return e in ma&&e!==","?"\\ldots\\,":"\\ldots"});v("\\cdots",function(r){var e=r.future().text;return e in ma?"\\@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 jo=j(Ye["Main-Regular"][84][1]-.7*Ye["Main-Regular"][65][1]);v("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+jo+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");v("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+jo+"}{\\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 Po=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,h=e.expandTokens([...s,...d,...t]);return e.macros.endGroup(),{tokens:h.reverse(),numArgs:0}};v("\\bra@ket",Po(!1));v("\\bra@set",Po(!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 Oo={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class U2{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 _2(G2,t.macros),this.mode=a,this.stack=[]}feed(e){this.lexer=new kn(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 je("EOF",a.loc)),this.pushTokens(n),new je("",De.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 je(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 kn(n,this.settings),u=[],d=l.lex();d.text!=="EOF";)u.push(d),d=l.lex();u.reverse();var h={tokens:u,numArgs:s};return h}return n}isDefined(e){return this.macros.has(e)||g0.hasOwnProperty(e)||le.math.hasOwnProperty(e)||le.text.hasOwnProperty(e)||Oo.hasOwnProperty(e)}isExpandable(e){var t=this.macros.get(e);return t!=null?typeof t=="string"||typeof t=="function"||!t.unexpandable:g0.hasOwnProperty(e)&&!g0[e].primitive}}var zn=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,Ct=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","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),wr={"́":{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"}},Tn={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};class Wt{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 U2(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 je("}")),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(Wt.endOfExpression.indexOf(n.text)!==-1||t&&n.text===t||e&&g0[n.text]&&g0[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(Ct[s.text]){var d=zn.test(s.text),h=[];for(h.push(new je(Ct[s.text])),this.consume();;){var g=this.fetch().text;if(!Ct[g]||zn.test(g)!==d)break;h.unshift(new je(Ct[g])),this.consume()}var x=this.subparse(h);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=g0[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=g0[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(!$s(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:De.range(a,u),body:l,semisimple:n==="\\begingroup"||void 0}}else if(s=this.parseFunction(t,e)||this.parseSymbol(),s==null&&n[0]==="\\"&&!Oo.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:De.range(n,e[a+2]),text:"---"}),t-=2):(e.splice(a,2,{type:"textord",mode:"text",loc:De.range(n,e[a+1]),text:"--"}),t-=1)),(s==="'"||s==="`")&&e[a+1].text===s&&(e.splice(a,2,{type:"textord",mode:"text",loc:De.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}}Tn.hasOwnProperty(t[0])&&!le[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=Tn[t[0]]+t.slice(1));var s=H2.exec(t);s&&(t=t.substring(0,s.index),t==="i"?t="ı":t==="j"&&(t="ȷ"));var o;if(le[this.mode][t]){this.settings.strict&&this.mode==="math"&&Dr.indexOf(t)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+t[0]+'" used in math mode',e);var l=le[this.mode][t].group,u=De.range(e),d;if(L4.hasOwnProperty(l)){var h=l;d={type:"atom",mode:this.mode,family:h,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&&(Ws(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:De.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(!wr[x])throw new L("Unknown accent ' "+x+"'",e);var w=wr[x][this.mode]||wr[x].text;if(!w)throw new L("Accent "+x+" unsupported in "+this.mode+" mode",e);o={type:"accent",mode:this.mode,loc:De.range(e),label:w,isStretchy:!1,isShifty:!0,base:o}}return o}}Wt.endOfExpression=["}","\\endgroup","\\end","\\right","&"];var ha=function(e,t){if(!(typeof e=="string"||e instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var a=new Wt(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 je("\\df@tag")])}]}return n},Fo=function(e,t,a){t.textContent="";var n=fa(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."),Fo=function(){throw new L("KaTeX doesn't work in quirks mode.")});var W2=function(e,t){var a=fa(e,t).toMarkup();return a},$2=function(e,t){var a=new Yr(t);return ha(e,a)},qo=function(e,t,a){if(a.throwOnError||!(e instanceof L))throw e;var n=C.makeSpan(["katex-error"],[new Ve(t)]);return n.setAttribute("title",e.toString()),n.setAttribute("style","color:"+a.errorColor),n},fa=function(e,t){var a=new Yr(t);try{var n=ha(e,a);return r2(n,e,a)}catch(s){return qo(s,e,a)}},X2=function(e,t){var a=new Yr(t);try{var n=ha(e,a);return a2(n,e,a)}catch(s){return qo(s,e,a)}},Y2="0.16.25",Z2={Span:rt,Anchor:Jr,SymbolNode:Ve,SvgNode:c0,PathNode:x0,LineNode:Nr},Ho={version:Y2,render:Fo,renderToString:W2,ParseError:L,SETTINGS_SCHEMA:Tt,__parse:$2,__renderToDomTree:fa,__renderToHTMLTree:X2,__setFontMetrics:M4,__defineSymbol:i,__defineFunction:F,__defineMacro:v,__domTree:Z2};const O0=(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 h=Ho.renderToString(d,{throwOnError:!1,displayMode:!1});return f.jsx("span",{className:"inline-block",dangerouslySetInnerHTML:{__html:h}},o++)}catch{return f.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=>f.jsx("strong",{className:"font-semibold",children:f.jsx("em",{className:"italic",children:u[1]||u[2]})},o++)},{regex:/\*\*(.+?)\*\*|__(.+?)__/,render:u=>f.jsx("strong",{className:"font-semibold",children:u[1]||u[2]},o++)},{regex:/\*([^*\n]+)\*|_([^_\n]+)_/,render:u=>f.jsx("em",{className:"italic",children:u[1]||u[2]},o++)},{regex:/~~(.+?)~~/,render:u=>f.jsx("del",{className:"line-through",children:u[1]},o++)},{regex:/`([^`\n]+)`/,render:u=>{const d=u[1];return e?e(d):f.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],h=u[2];return a?a(h,d):f.jsx("a",{href:h,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 h=s.match(d.regex);h&&h.index!==void 0&&(!u||h.index<u.index)&&(u={index:h.index,match:h,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},K2=r=>{const e=[],t=r.split(`
328
+ ?)[ \r ]*`,Ir="[̀-ͯ]",X2=new RegExp(Ir+"+$"),Y2="("+Po+"+)|"+($2+"|")+"([!-\\[\\]-‧‪-퟿豈-￿]"+(Ir+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(Ir+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+W2)+("|"+U2+")");class Cn{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(Y2,"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 je("EOF",new De(this,t,t));var a=this.tokenRegex.exec(e);if(a===null||a.index!==t)throw new L("Unexpected character: '"+e[t]+"'",new je(e[t],new De(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 je(n,new De(this,t,this.tokenRegex.lastIndex))}}class Z2{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 K2=zo;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 Mn={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=Mn[e.text],a==null||a>=t)throw new L("Invalid base-"+t+" digit "+e.text);for(var n;(n=Mn[r.future().text])!=null&&n<t;)a*=t,a+=n,r.popToken()}return"\\@char{"+a+"}"});var da=(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=>da(r,!1,!0,!1));v("\\renewcommand",r=>da(r,!0,!1,!1));v("\\providecommand",r=>da(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),g0[t],le.math[t],le.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 zn={",":"\\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 zn?e=zn[t]:(t.slice(0,4)==="\\not"||t in le.math&&["bin","rel"].includes(le.math[t].group))&&(e="\\dotsb"),e});var ma={")":!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 ma?"\\ldots\\,":"\\ldots"});v("\\dotsc",function(r){var e=r.future().text;return e in ma&&e!==","?"\\ldots\\,":"\\ldots"});v("\\cdots",function(r){var e=r.future().text;return e in ma?"\\@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 Oo=j(Ye["Main-Regular"][84][1]-.7*Ye["Main-Regular"][65][1]);v("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+Oo+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");v("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+Oo+"}{\\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 Fo=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=>y=>{r&&(y.macros.set("|",o),n.length&&y.macros.set("\\|",l));var w=g;if(!g&&n.length){var M=y.future();M.text==="|"&&(y.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",Fo(!1));v("\\bra@set",Fo(!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 qo={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class J2{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 Z2(K2,t.macros),this.mode=a,this.stack=[]}feed(e){this.lexer=new Cn(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 je("EOF",a.loc)),this.pushTokens(n),new je("",De.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 je(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 Cn(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)||g0.hasOwnProperty(e)||le.math.hasOwnProperty(e)||le.text.hasOwnProperty(e)||qo.hasOwnProperty(e)}isExpandable(e){var t=this.macros.get(e);return t!=null?typeof t=="string"||typeof t=="function"||!t.unexpandable:g0.hasOwnProperty(e)&&!g0[e].primitive}}var Tn=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,Ct=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","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),wr={"́":{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"}},An={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};class Wt{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 J2(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 je("}")),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(Wt.endOfExpression.indexOf(n.text)!==-1||t&&n.text===t||e&&g0[n.text]&&g0[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(Ct[s.text]){var d=Tn.test(s.text),f=[];for(f.push(new je(Ct[s.text])),this.consume();;){var g=this.fetch().text;if(!Ct[g]||Tn.test(g)!==d)break;f.unshift(new je(Ct[g])),this.consume()}var y=this.subparse(f);d?n={type:"ordgroup",mode:"math",body:y}:a={type:"ordgroup",mode:"math",body:y}}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=g0[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=g0[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(!Ys(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:De.range(a,u),body:l,semisimple:n==="\\begingroup"||void 0}}else if(s=this.parseFunction(t,e)||this.parseSymbol(),s==null&&n[0]==="\\"&&!qo.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:De.range(n,e[a+2]),text:"---"}),t-=2):(e.splice(a,2,{type:"textord",mode:"text",loc:De.range(n,e[a+1]),text:"--"}),t-=1)),(s==="'"||s==="`")&&e[a+1].text===s&&(e.splice(a,2,{type:"textord",mode:"text",loc:De.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}}An.hasOwnProperty(t[0])&&!le[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=An[t[0]]+t.slice(1));var s=X2.exec(t);s&&(t=t.substring(0,s.index),t==="i"?t="ı":t==="j"&&(t="ȷ"));var o;if(le[this.mode][t]){this.settings.strict&&this.mode==="math"&&Dr.indexOf(t)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+t[0]+'" used in math mode',e);var l=le[this.mode][t].group,u=De.range(e),d;if(q4.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&&(Xs(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:De.range(e),text:t};else return null;if(this.consume(),s)for(var g=0;g<s[0].length;g++){var y=s[0][g];if(!wr[y])throw new L("Unknown accent ' "+y+"'",e);var w=wr[y][this.mode]||wr[y].text;if(!w)throw new L("Accent "+y+" unsupported in "+this.mode+" mode",e);o={type:"accent",mode:this.mode,loc:De.range(e),label:w,isStretchy:!1,isShifty:!0,base:o}}return o}}Wt.endOfExpression=["}","\\endgroup","\\end","\\right","&"];var ha=function(e,t){if(!(typeof e=="string"||e instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var a=new Wt(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 je("\\df@tag")])}]}return n},Ho=function(e,t,a){t.textContent="";var n=fa(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."),Ho=function(){throw new L("KaTeX doesn't work in quirks mode.")});var Q2=function(e,t){var a=fa(e,t).toMarkup();return a},e5=function(e,t){var a=new Yr(t);return ha(e,a)},Vo=function(e,t,a){if(a.throwOnError||!(e instanceof L))throw e;var n=C.makeSpan(["katex-error"],[new Ve(t)]);return n.setAttribute("title",e.toString()),n.setAttribute("style","color:"+a.errorColor),n},fa=function(e,t){var a=new Yr(t);try{var n=ha(e,a);return c2(n,e,a)}catch(s){return Vo(s,e,a)}},t5=function(e,t){var a=new Yr(t);try{var n=ha(e,a);return u2(n,e,a)}catch(s){return Vo(s,e,a)}},r5="0.16.25",a5={Span:rt,Anchor:Jr,SymbolNode:Ve,SvgNode:c0,PathNode:y0,LineNode:Nr},_o={version:r5,render:Ho,renderToString:Q2,ParseError:L,SETTINGS_SCHEMA:Tt,__parse:e5,__renderToDomTree:fa,__renderToHTMLTree:t5,__setFontMetrics:R4,__defineSymbol:i,__defineFunction:F,__defineMacro:v,__domTree:a5};const O0=(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=_o.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-semibold",children:h.jsx("em",{className:"italic",children:u[1]||u[2]})},o++)},{regex:/\*\*(.+?)\*\*|__(.+?)__/,render:u=>h.jsx("strong",{className:"font-semibold",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},n5=r=>{const e=[],t=r.split(`
331
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
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"),h=[];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());h.push(g),a++}e.push({type:"table",content:"",table:{headers:l,rows:h,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},J2=(r,e,t,a,n,s)=>r.map((o,l)=>{var u;switch(o.type){case"heading":{const d=`h${o.level}`,h={1:"font-[Signifier,serif] text-[1.75rem] font-light leading-tight tracking-[-0.5px] mt-8 mb-5 text-[var(--color-gray-1000)]",2:"font-[Signifier,serif] text-[1.5rem] font-light leading-tight mt-7 mb-4 text-[var(--color-gray-1000)]",3:"font-[Signifier,serif] text-[1.25rem] font-light leading-snug mt-6 mb-3 text-[var(--color-gray-1000)]",4:"font-[Signifier,serif] text-[1.125rem] font-light leading-snug mt-5 mb-3 text-[var(--color-gray-1000)]",5:"font-[Signifier,serif] text-[1rem] font-light leading-normal mt-4 mb-2 text-[var(--color-gray-800)]",6:"font-[Signifier,serif] text-[0.875rem] font-light leading-normal mt-4 mb-2 text-[var(--color-gray-600)]"};return f.jsx(d,{className:h[o.level],children:O0(o.content,t,n,s)},l)}case"paragraph":return f.jsx("p",{className:"font-[Inter,system-ui,-apple-system,sans-serif] mt-4 mb-5 first:mt-0 last:mb-0",children:O0(o.content,t,n,s)},l);case"codeBlock":return e?f.jsx("div",{className:"mt-5 mb-6 first:mt-0",children:e(o.content,o.language)},l):f.jsx("pre",{className:"font-[Roboto_Mono,monospace] mt-5 mb-6 first:mt-0 p-4 bg-[var(--color-gray-100)] border border-[var(--color-gray-200)] rounded-[8px] overflow-x-auto",children:f.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 f.jsx("div",{className:"mt-5 mb-5 first:mt-0",children:a(o.content)},l);try{const d=Ho.renderToString(o.content,{throwOnError:!1,displayMode:!0});return f.jsx("div",{className:"mt-5 mb-5 first:mt-0 overflow-x-auto text-center",dangerouslySetInnerHTML:{__html:d}},l)}catch{return f.jsxs("div",{className:"mt-5 mb-5 first:mt-0 p-4 bg-[var(--color-red-200)] border border-[var(--color-red-1000)] rounded-[8px] text-center font-mono text-[var(--color-red-1000)]",children:[f.jsx("span",{className:"text-[0.75rem] uppercase tracking-wider opacity-60 block mb-2",children:"Math Rendering Error"}),f.jsx("pre",{className:"text-left",children:o.content})]},l)}case"blockquote":return f.jsx("blockquote",{className:"font-[Inter,system-ui,-apple-system,sans-serif] mt-7 mb-8 first:mt-0 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",children:O0(o.content,t,n,s)},l);case"list":{const d=o.ordered?"ol":"ul",h=o.ordered?"font-[Inter,system-ui,-apple-system,sans-serif] mt-4 mb-6 first:mt-0 pl-6 list-decimal space-y-3 marker:font-medium marker:text-[var(--color-gray-800)]":"font-[Inter,system-ui,-apple-system,sans-serif] mt-4 mb-6 first:mt-0 pl-6 list-disc space-y-3 marker:text-[var(--color-gray-600)]";return f.jsx(d,{className:h,children:(u=o.items)==null?void 0:u.map((g,x)=>f.jsx("li",{className:"leading-relaxed pl-1",children:O0(g,t,n,s)},x))},l)}case"table":{if(!o.table)return null;const{headers:d,rows:h,alignments:g}=o.table,x=w=>{switch(w){case"center":return"text-center";case"right":return"text-right";default:return"text-left"}};return f.jsx("div",{className:"mt-5 mb-6 first:mt-0 overflow-x-auto",children:f.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:[f.jsx("thead",{className:"bg-[var(--color-gray-50)]",children:f.jsx("tr",{className:"border-b-2 border-[var(--color-gray-200)]",children:d.map((w,M)=>f.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:O0(w,t,n,s)},M))})}),f.jsx("tbody",{children:h.map((w,M)=>f.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,T)=>f.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[T])}`,children:O0(k,t,n,s)},T))},M))})]})},l)}case"horizontalRule":return f.jsx("hr",{className:"my-8 border-t border-[var(--color-gray-200)]"},l);default:return null}}),Vo=V.forwardRef(({className:r,content:e,size:t="medium",variant:a="default",renderCodeBlock:n,renderInlineCode:s,renderMathBlock:o,renderInlineMath:l,renderLink:u,...d},h)=>{const g=V.useMemo(()=>{const x=K2(e);return J2(x,n,s,o,l,u)},[e,n,s,o,l,u]);return f.jsx("div",{ref:h,className:W(Ku({size:t,variant:a}),r),...d,children:g})});Vo.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.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=Vn;exports.Avatar=Pr;exports.Breadcrumbs=_n;exports.Button=H0;exports.ChatFile=Un;exports.ChatInput=cs;exports.Checkbox=Wn;exports.ConversationHeader=us;exports.Dropdown=Hr;exports.DropdownContent=_r;exports.DropdownItem=Gr;exports.DropdownTrigger=Vr;exports.FileStatus=Gn;exports.FullLogo=Hn;exports.Input=Xn;exports.LoadingSpinner=Dl;exports.LogoA=Fr;exports.MarkdownRenderer=Vo;exports.MessageBubble=Yn;exports.Modal=Gs;exports.ProgressBar=Zn;exports.RangeInput=Kn;exports.SidebarItem=Jn;exports.SignatureA=qr;exports.StatusIndicator=Or;exports.StatusMessage=ss;exports.Tabs=o1;exports.TabsContent=ts;exports.TabsList=Qn;exports.TabsTrigger=es;exports.Tag=V0;exports.TextArea=rs;exports.Timestamp=as;exports.Toast=T0;exports.ToastContainer=C1;exports.Toggle=ns;exports.Tooltip=is;exports.TooltipContent=Ur;exports.TooltipProvider=os;exports.TooltipTrigger=ls;exports.Typography=o0;exports.cn=W;exports.showToast=M1;exports.useDropdown=jt;
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(y=>y.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},s5=(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] mt-8 mb-5 text-[var(--color-gray-1000)]",2:"font-[Signifier,serif] text-[1.5rem] font-light leading-tight mt-7 mb-4 text-[var(--color-gray-1000)]",3:"font-[Signifier,serif] text-[1.25rem] font-light leading-snug mt-6 mb-3 text-[var(--color-gray-1000)]",4:"font-[Signifier,serif] text-[1.125rem] font-light leading-snug mt-5 mb-3 text-[var(--color-gray-1000)]",5:"font-[Signifier,serif] text-[1rem] font-light leading-normal mt-4 mb-2 text-[var(--color-gray-800)]",6:"font-[Signifier,serif] text-[0.875rem] font-light leading-normal mt-4 mb-2 text-[var(--color-gray-600)]"};return h.jsx(d,{className:f[o.level],children:O0(o.content,t,n,s)},l)}case"paragraph":return h.jsx("p",{className:"font-[Inter,system-ui,-apple-system,sans-serif] mt-4 mb-5 first:mt-0 last:mb-0",children:O0(o.content,t,n,s)},l);case"codeBlock":return e?h.jsx("div",{className:"mt-5 mb-6 first:mt-0",children:e(o.content,o.language)},l):h.jsx("pre",{className:"font-[Roboto_Mono,monospace] mt-5 mb-6 first:mt-0 p-4 bg-[var(--color-gray-100)] border border-[var(--color-gray-200)] rounded-[8px] overflow-x-auto",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",{className:"mt-5 mb-5 first:mt-0",children:a(o.content)},l);try{const d=_o.renderToString(o.content,{throwOnError:!1,displayMode:!0});return h.jsx("div",{className:"mt-5 mb-5 first:mt-0 overflow-x-auto text-center",dangerouslySetInnerHTML:{__html:d}},l)}catch{return h.jsxs("div",{className:"mt-5 mb-5 first:mt-0 p-4 bg-[var(--color-red-200)] border border-[var(--color-red-1000)] rounded-[8px] text-center font-mono text-[var(--color-red-1000)]",children:[h.jsx("span",{className:"text-[0.75rem] uppercase tracking-wider opacity-60 block mb-2",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] mt-7 mb-8 first:mt-0 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",children:O0(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] mt-4 mb-6 first:mt-0 pl-6 list-decimal space-y-3 marker:font-medium marker:text-[var(--color-gray-800)]":"font-[Inter,system-ui,-apple-system,sans-serif] mt-4 mb-6 first:mt-0 pl-6 list-disc space-y-3 marker:text-[var(--color-gray-600)]";return h.jsx(d,{className:f,children:(u=o.items)==null?void 0:u.map((g,y)=>h.jsx("li",{className:"leading-relaxed pl-1",children:O0(g,t,n,s)},y))},l)}case"table":{if(!o.table)return null;const{headers:d,rows:f,alignments:g}=o.table,y=w=>{switch(w){case"center":return"text-center";case"right":return"text-right";default:return"text-left"}};return h.jsx("div",{className:"mt-5 mb-6 first:mt-0 overflow-x-auto",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 ${y(g==null?void 0:g[M])}`,children:O0(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,T)=>h.jsx("td",{className:`px-4 py-3 border-r border-[var(--color-gray-200)] last:border-r-0 align-top ${y(g==null?void 0:g[T])}`,children:O0(k,t,n,s)},T))},M))})]})},l)}case"horizontalRule":return h.jsx("hr",{className:"my-8 border-t border-[var(--color-gray-200)]"},l);default:return null}}),Go=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 y=n5(e);return s5(y,n,s,o,l,u)},[e,n,s,o,l,u]);return h.jsx("div",{ref:f,className:_(n4({size:t,variant:a}),r),...d,children:g})});Go.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=_n;exports.AutopilotAction=is;exports.Avatar=Pr;exports.Breadcrumbs=Gn;exports.Button=H0;exports.ChatFile=Wn;exports.ChatInput=ds;exports.Checkbox=$n;exports.ConversationHeader=ms;exports.Dropdown=Hr;exports.DropdownContent=_r;exports.DropdownItem=Gr;exports.DropdownTrigger=Vr;exports.FileStatus=Un;exports.FullLogo=Vn;exports.Input=Yn;exports.LoadingSpinner=Rl;exports.LogoA=Fr;exports.MarkdownRenderer=Go;exports.MessageBubble=Zn;exports.Modal=Ws;exports.ProgressBar=Kn;exports.RangeInput=Jn;exports.SidebarItem=Qn;exports.SignatureA=qr;exports.StatusIndicator=Or;exports.StatusMessage=os;exports.Tabs=l1;exports.TabsContent=rs;exports.TabsList=es;exports.TabsTrigger=ts;exports.Tag=V0;exports.TextArea=as;exports.Timestamp=ns;exports.Toast=T0;exports.ToastContainer=z1;exports.Toggle=ss;exports.Tooltip=cs;exports.TooltipContent=Ur;exports.TooltipProvider=ls;exports.TooltipTrigger=us;exports.Typography=o0;exports.cn=_;exports.showToast=T1;exports.useDropdown=jt;
335
335
  //# sourceMappingURL=index.cjs.map