@archieai/ui 0.1.5 → 0.1.51
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/{Search-CIuJisAY.js → Search-BGRkl1S5.js} +936 -896
- package/dist/Search-BGRkl1S5.js.map +1 -0
- package/dist/Search-DXvng049.cjs +2 -0
- package/dist/Search-DXvng049.cjs.map +1 -0
- package/dist/components/atoms/icons/Check.d.ts +1 -0
- package/dist/components/atoms/icons/Check.d.ts.map +1 -1
- package/dist/components/atoms/icons/X.d.ts +1 -0
- package/dist/components/atoms/icons/X.d.ts.map +1 -1
- package/dist/components/molecules/ArtifactCard/ArtifactCard.d.ts.map +1 -1
- package/dist/components/molecules/ArtifactCard/ArtifactCard.styles.d.ts +4 -13
- package/dist/components/molecules/ArtifactCard/ArtifactCard.styles.d.ts.map +1 -1
- package/dist/components/molecules/ArtifactCard/ArtifactCard.types.d.ts +0 -3
- package/dist/components/molecules/ArtifactCard/ArtifactCard.types.d.ts.map +1 -1
- package/dist/components/molecules/MessageBubble/MessageBubble.d.ts +2 -2
- package/dist/components/molecules/MessageBubble/MessageBubble.d.ts.map +1 -1
- package/dist/components/molecules/MessageBubble/MessageBubble.styles.d.ts +16 -0
- package/dist/components/molecules/MessageBubble/MessageBubble.styles.d.ts.map +1 -1
- package/dist/components/molecules/RangeInput/RangeInput.d.ts +1 -1
- package/dist/components/molecules/RangeInput/RangeInput.d.ts.map +1 -1
- package/dist/components/molecules/RangeInput/RangeInput.styles.d.ts +1 -1
- package/dist/components/molecules/RangeInput/RangeInput.styles.d.ts.map +1 -1
- package/dist/components/molecules/Tag/Tag.d.ts +1 -0
- package/dist/components/molecules/Tag/Tag.d.ts.map +1 -1
- package/dist/components/molecules/Toggle/Toggle.d.ts +0 -1
- package/dist/components/molecules/Toggle/Toggle.d.ts.map +1 -1
- package/dist/components/molecules/Toggle/Toggle.styles.d.ts +0 -1
- package/dist/components/molecules/Toggle/Toggle.styles.d.ts.map +1 -1
- package/dist/components/organisms/ChatInput/ChatInput.d.ts.map +1 -1
- package/dist/components/organisms/ChatInput/ChatInput.styles.d.ts +1 -0
- package/dist/components/organisms/ChatInput/ChatInput.styles.d.ts.map +1 -1
- package/dist/components/renderers/MarkdownRenderer/MarkdownRenderer.d.ts.map +1 -1
- package/dist/components/renderers/MarkdownRenderer/MarkdownRenderer.styles.d.ts.map +1 -1
- package/dist/icons.cjs +1 -1
- package/dist/icons.js +1 -1
- package/dist/index.cjs +28 -28
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3956 -3929
- package/dist/index.js.map +1 -1
- package/dist/ui.css +1 -1
- package/package.json +1 -1
- package/dist/Search-BC_uL-gm.cjs +0 -2
- package/dist/Search-BC_uL-gm.cjs.map +0 -1
- package/dist/Search-CIuJisAY.js.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("react/jsx-runtime"),V=require("react"),be=require("framer-motion"),f=require("./Search-BC_uL-gm.cjs"),$o=require("@radix-ui/react-tabs"),n0=require("sonner"),Wo=require("@radix-ui/react-tooltip"),Dn=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),E0=It($o),A0=It(Wo),Xo=It(Dn);function En(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=En(r[e]))&&(a&&(a+=" "),a+=t)}else for(t in r)r[t]&&(a&&(a+=" "),a+=t);return a}function Rn(){for(var r,e,t=0,a="",n=arguments.length;t<n;t++)(r=arguments[t])&&(e=En(r))&&(a&&(a+=" "),a+=e);return a}const Pr="-",Yo=r=>{const e=Ko(r),{conflictingClassGroups:t,conflictingClassGroupModifiers:a}=r;return{getClassGroupId:o=>{const l=o.split(Pr);return l[0]===""&&l.length!==1&&l.shift(),Ln(l,e)||Zo(o)},getConflictingClassGroupIds:(o,l)=>{const u=t[o]||[];return l&&a[o]?[...u,...a[o]]:u}}},Ln=(r,e)=>{var o;if(r.length===0)return e.classGroupId;const t=r[0],a=e.nextPart.get(t),n=a?Ln(r.slice(1),a):void 0;if(n)return n;if(e.validators.length===0)return;const s=r.join(Pr);return(o=e.validators.find(({validator:l})=>l(s)))==null?void 0:o.classGroupId},ba=/^\[(.+)\]$/,Zo=r=>{if(ba.test(r)){const e=ba.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)kr(t[n],a,n,e);return a},kr=(r,e,t,a)=>{r.forEach(n=>{if(typeof n=="string"){const s=n===""?e:xa(e,n);s.classGroupId=t;return}if(typeof n=="function"){if(Jo(n)){kr(n(a),e,t,a);return}e.validators.push({validator:n,classGroupId:t});return}Object.entries(n).forEach(([s,o])=>{kr(o,xa(e,s),t,a)})})},xa=(r,e)=>{let t=r;return e.split(Pr).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)}}},Cr="!",Mr=":",ei=Mr.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===Mr){s.push(n.slice(u,M)),u=M+ei;continue}if(k==="/"){d=M;continue}}k==="["?o++:k==="]"?o--:k==="("?l++:k===")"&&l--}const p=s.length===0?n:n.substring(u),g=ri(p),w=g!==p,y=d&&d>u?d-u:void 0;return{modifiers:s,hasImportantModifier:w,baseClassName:g,maybePostfixModifierPosition:y}};if(e){const n=e+Mr,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(Cr)?r.substring(0,r.length-1):r.startsWith(Cr)?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 p=l[d],{isExternal:g,modifiers:w,hasImportantModifier:y,baseClassName:M,maybePostfixModifierPosition:k}=t(p);if(g){u=p+(u.length>0?" "+u:u);continue}let T=!!k,A=a(T?M.substring(0,k):M);if(!A){if(!T){u=p+(u.length>0?" "+u:u);continue}if(A=a(M),!A){u=p+(u.length>0?" "+u:u);continue}T=!1}const E=s(w).join(":"),j=y?E+Cr:E,O=j+A;if(o.includes(O))continue;o.push(O);const P=n(A,T);for(let W=0;W<P.length;++W){const F=P[W];o.push(j+F)}u=p+(u.length>0?" "+u:u)}return u};function ii(){let r=0,e,t,a="";for(;r<arguments.length;)(e=arguments[r++])&&(t=Bn(e))&&(a&&(a+=" "),a+=t);return a}const Bn=r=>{if(typeof r=="string")return r;let e,t="";for(let a=0;a<r.length;a++)r[a]&&(e=Bn(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((p,g)=>g(p),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 p=oi(u,t);return n(u,p),p}return function(){return s(ii.apply(null,arguments))}}const Se=r=>{const e=t=>t[r]||[];return e.isThemeGetter=!0,e},jn=/^\[(?:(\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)\(.+\)$/,B0=r=>ci.test(r),ee=r=>!!r&&!Number.isNaN(Number(r)),h0=r=>!!r&&Number.isInteger(Number(r)),Zt=r=>r.endsWith("%")&&ee(r.slice(0,-1)),r0=r=>ui.test(r),pi=()=>!0,vi=r=>di.test(r)&&!mi.test(r),Pn=()=>!1,gi=r=>hi.test(r),bi=r=>fi.test(r),xi=r=>!G(r)&&!U(r),yi=r=>U0(r,qn,Pn),G=r=>jn.test(r),C0=r=>U0(r,Hn,vi),Kt=r=>U0(r,Mi,ee),ya=r=>U0(r,On,Pn),wi=r=>U0(r,Fn,bi),it=r=>U0(r,Vn,gi),U=r=>In.test(r),Y0=r=>$0(r,Hn),Si=r=>$0(r,zi),wa=r=>$0(r,On),ki=r=>$0(r,qn),Ci=r=>$0(r,Fn),lt=r=>$0(r,Vn,!0),U0=(r,e,t)=>{const a=jn.exec(r);return a?a[1]?e(a[1]):t(a[2]):!1},$0=(r,e,t=!1)=>{const a=In.exec(r);return a?a[1]?e(a[1]):t:!1},On=r=>r==="position"||r==="percentage",Fn=r=>r==="image"||r==="url",qn=r=>r==="length"||r==="size"||r==="bg-size",Hn=r=>r==="length",Mi=r=>r==="number",zi=r=>r==="family-name",Vn=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"),p=Se("shadow"),g=Se("inset-shadow"),w=Se("text-shadow"),y=Se("drop-shadow"),M=Se("blur"),k=Se("perspective"),T=Se("aspect"),A=Se("ease"),E=Se("animate"),j=()=>["auto","avoid","all","avoid-page","page","left","right","column"],O=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],P=()=>[...O(),U,G],W=()=>["auto","hidden","clip","visible","scroll"],F=()=>["auto","contain","none"],L=()=>[U,G,u],X=()=>[B0,"full","auto",...L()],de=()=>[h0,"none","subgrid",U,G],ie=()=>["auto",{span:["full",h0,U,G]},h0,U,G],ae=()=>[h0,"auto",U,G],ce=()=>["auto","min","max","fr",U,G],ye=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],fe=()=>["start","end","center","stretch","center-safe","end-safe"],ve=()=>["auto",...L()],Me=()=>[B0,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...L()],$=()=>[r,U,G],t0=()=>[...O(),wa,ya,{position:[U,G]}],Re=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Le=()=>["auto","cover","contain",ki,yi,{size:[U,G]}],Ce=()=>[Zt,Y0,C0],ne=()=>["","none","full",d,U,G],we=()=>["",ee,Y0,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,Zt,wa,ya],Ge=()=>["","none",M,U,G],Oe=()=>["none",ee,U,G],Fe=()=>["none",ee,U,G],_=()=>[ee,U,G],qe=()=>[B0,"full",...L()];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",B0,G,U,T]}],container:["container"],columns:[{columns:[ee,G,U,l]}],"break-after":[{"break-after":j()}],"break-before":[{"break-before":j()}],"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:P()}],overflow:[{overflow:W()}],"overflow-x":[{"overflow-x":W()}],"overflow-y":[{"overflow-y":W()}],overscroll:[{overscroll:F()}],"overscroll-x":[{"overscroll-x":F()}],"overscroll-y":[{"overscroll-y":F()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:X()}],"inset-x":[{"inset-x":X()}],"inset-y":[{"inset-y":X()}],start:[{start:X()}],end:[{end:X()}],top:[{top:X()}],right:[{right:X()}],bottom:[{bottom:X()}],left:[{left:X()}],visibility:["visible","invisible","collapse"],z:[{z:[h0,"auto",U,G]}],basis:[{basis:[B0,"full","auto",l,...L()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ee,B0,"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":de()}],"col-start-end":[{col:ie()}],"col-start":[{"col-start":ae()}],"col-end":[{"col-end":ae()}],"grid-rows":[{"grid-rows":de()}],"row-start-end":[{row:ie()}],"row-start":[{"row-start":ae()}],"row-end":[{"row-end":ae()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ce()}],"auto-rows":[{"auto-rows":ce()}],gap:[{gap:L()}],"gap-x":[{"gap-x":L()}],"gap-y":[{"gap-y":L()}],"justify-content":[{justify:[...ye(),"normal"]}],"justify-items":[{"justify-items":[...fe(),"normal"]}],"justify-self":[{"justify-self":["auto",...fe()]}],"align-content":[{content:["normal",...ye()]}],"align-items":[{items:[...fe(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...fe(),{baseline:["","last"]}]}],"place-content":[{"place-content":ye()}],"place-items":[{"place-items":[...fe(),"baseline"]}],"place-self":[{"place-self":["auto",...fe()]}],p:[{p:L()}],px:[{px:L()}],py:[{py:L()}],ps:[{ps:L()}],pe:[{pe:L()}],pt:[{pt:L()}],pr:[{pr:L()}],pb:[{pb:L()}],pl:[{pl:L()}],m:[{m:ve()}],mx:[{mx:ve()}],my:[{my:ve()}],ms:[{ms:ve()}],me:[{me:ve()}],mt:[{mt:ve()}],mr:[{mr:ve()}],mb:[{mb:ve()}],ml:[{ml:ve()}],"space-x":[{"space-x":L()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":L()}],"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,Y0,C0]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[a,U,Kt]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Zt,G]}],"font-family":[{font:[Si,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,Kt]}],leading:[{leading:[s,...L()]}],"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:$()}],"text-color":[{text:$()}],"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:$()}],"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:L()}],"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]},Ci,wi]}],"bg-color":[{bg:$()}],"gradient-from-pos":[{from:Ce()}],"gradient-via-pos":[{via:Ce()}],"gradient-to-pos":[{to:Ce()}],"gradient-from":[{from:$()}],"gradient-via":[{via:$()}],"gradient-to":[{to:$()}],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:$()}],"border-color-x":[{"border-x":$()}],"border-color-y":[{"border-y":$()}],"border-color-s":[{"border-s":$()}],"border-color-e":[{"border-e":$()}],"border-color-t":[{"border-t":$()}],"border-color-r":[{"border-r":$()}],"border-color-b":[{"border-b":$()}],"border-color-l":[{"border-l":$()}],"divide-color":[{divide:$()}],"outline-style":[{outline:[...Be(),"none","hidden"]}],"outline-offset":[{"outline-offset":[ee,U,G]}],"outline-w":[{outline:["",ee,Y0,C0]}],"outline-color":[{outline:$()}],shadow:[{shadow:["","none",p,lt,it]}],"shadow-color":[{shadow:$()}],"inset-shadow":[{"inset-shadow":["none",g,lt,it]}],"inset-shadow-color":[{"inset-shadow":$()}],"ring-w":[{ring:we()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:$()}],"ring-offset-w":[{"ring-offset":[ee,C0]}],"ring-offset-color":[{"ring-offset":$()}],"inset-ring-w":[{"inset-ring":we()}],"inset-ring-color":[{"inset-ring":$()}],"text-shadow":[{"text-shadow":["none",w,lt,it]}],"text-shadow-color":[{"text-shadow":$()}],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":$()}],"mask-image-linear-to-color":[{"mask-linear-to":$()}],"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":$()}],"mask-image-t-to-color":[{"mask-t-to":$()}],"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":$()}],"mask-image-r-to-color":[{"mask-r-to":$()}],"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":$()}],"mask-image-b-to-color":[{"mask-b-to":$()}],"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":$()}],"mask-image-l-to-color":[{"mask-l-to":$()}],"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":$()}],"mask-image-x-to-color":[{"mask-x-to":$()}],"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":$()}],"mask-image-y-to-color":[{"mask-y-to":$()}],"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":$()}],"mask-image-radial-to-color":[{"mask-radial-to":$()}],"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":O()}],"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":$()}],"mask-image-conic-to-color":[{"mask-conic-to":$()}],"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",y,lt,it]}],"drop-shadow-color":[{"drop-shadow":$()}],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":L()}],"border-spacing-x":[{"border-spacing-x":L()}],"border-spacing-y":[{"border-spacing-y":L()}],"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",A,U,G]}],delay:[{delay:[ee,U,G]}],animate:[{animate:["none",E,U,G]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[k,U,G]}],"perspective-origin":[{"perspective-origin":P()}],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:P()}],"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:$()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:$()}],"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":L()}],"scroll-mx":[{"scroll-mx":L()}],"scroll-my":[{"scroll-my":L()}],"scroll-ms":[{"scroll-ms":L()}],"scroll-me":[{"scroll-me":L()}],"scroll-mt":[{"scroll-mt":L()}],"scroll-mr":[{"scroll-mr":L()}],"scroll-mb":[{"scroll-mb":L()}],"scroll-ml":[{"scroll-ml":L()}],"scroll-p":[{"scroll-p":L()}],"scroll-px":[{"scroll-px":L()}],"scroll-py":[{"scroll-py":L()}],"scroll-ps":[{"scroll-ps":L()}],"scroll-pe":[{"scroll-pe":L()}],"scroll-pt":[{"scroll-pt":L()}],"scroll-pr":[{"scroll-pr":L()}],"scroll-pb":[{"scroll-pb":L()}],"scroll-pl":[{"scroll-pl":L()}],"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",...$()]}],"stroke-w":[{stroke:[ee,Y0,C0,Kt]}],stroke:[{stroke:["none",...$()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Ni=li(Ti);function Y(...r){return Ni(Rn(r))}const Sa=r=>typeof r=="boolean"?`${r}`:r===0?"0":r,ka=Rn,N=(r,e)=>t=>{var a;if((e==null?void 0:e.variants)==null)return ka(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 p=t==null?void 0:t[d],g=s==null?void 0:s[d];if(p===null)return null;const w=Sa(p)||Sa(g);return n[d][w]}),l=t&&Object.entries(t).reduce((d,p)=>{let[g,w]=p;return w===void 0||(d[g]=w),d},{}),u=e==null||(a=e.compoundVariants)===null||a===void 0?void 0:a.reduce((d,p)=>{let{class:g,className:w,...y}=p;return Object.entries(y).every(M=>{let[k,T]=M;return Array.isArray(T)?T.includes({...s,...l}[k]):{...s,...l}[k]===T})?[...d,g,w]:d},[]);return ka(r,o,u,t==null?void 0:t.class,t==null?void 0:t.className)},Ai=N("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=N('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=N("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}`,Or=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[p,g]=V.useState(!1),w=V.useMemo(()=>Math.floor(Math.random()*1e3),[]),M=s||Li(w,a==="big"?64:32),k=p&&l?l:n,T=e==="image"&&!p,A=()=>{g(!0)},E={backgroundImage:"linear-gradient(90deg, rgba(21, 177, 205, 0.08) 0%, rgba(21, 177, 205, 0.08) 100%), linear-gradient(90deg, rgb(255, 255, 255) 0%, rgb(255, 255, 255) 100%)"};return h.jsx("div",{ref:d,className:Y(Ai({shape:t,size:a}),r),style:T?void 0:E,role:"img","aria-label":o,...u,children:T?h.jsx("img",{src:M,alt:o,className:Y(Ei()),onError:A}):h.jsx("span",{className:Y(Di({size:a})),children:Ri(k)})})});Or.displayName="Avatar";const Bi=N("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"}}),ji=N("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"}}),Ii=N("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"}}),Fr=V.forwardRef(({className:r,variant:e="neutral",size:t="medium",animated:a=!1,...n},s)=>h.jsxs("div",{ref:s,className:Y(Bi({size:t}),r),...n,children:[a&&h.jsx("span",{className:Ii({variant:e})}),h.jsx("span",{className:ji({variant:e})})]}));Fr.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],p=s?qi[s]:"",g=o?Hi[o]:"";return h.jsx(l,{className:Y(u,d,p,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)"},qr=({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})]})};qr.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)"},_n=({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"})})})]})};_n.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)"},Hr=({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:`
|
|
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"),He=require("sonner"),Vo=require("@radix-ui/react-tabs"),_o=require("@radix-ui/react-tooltip"),zn=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(Vo),A0=It(_o),Go=It(zn);function Tn(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=Tn(r[e]))&&(a&&(a+=" "),a+=t)}else for(t in r)r[t]&&(a&&(a+=" "),a+=t);return a}function An(){for(var r,e,t=0,a="",n=arguments.length;t<n;t++)(r=arguments[t])&&(e=Tn(r))&&(a&&(a+=" "),a+=e);return a}const jr="-",Uo=r=>{const e=$o(r),{conflictingClassGroups:t,conflictingClassGroupModifiers:a}=r;return{getClassGroupId:o=>{const l=o.split(jr);return l[0]===""&&l.length!==1&&l.shift(),Nn(l,e)||Wo(o)},getConflictingClassGroupIds:(o,l)=>{const u=t[o]||[];return l&&a[o]?[...u,...a[o]]:u}}},Nn=(r,e)=>{var o;if(r.length===0)return e.classGroupId;const t=r[0],a=e.nextPart.get(t),n=a?Nn(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=/^\[(.+)\]$/,Wo=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}},$o=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(Xo(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},Xo=r=>r.isThemeGetter,Yo=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=":",Zo=Cr.length,Ko=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+Zo;continue}if(k==="/"){d=M;continue}}k==="["?o++:k==="]"?o--:k==="("?l++:k===")"&&l--}const h=s.length===0?n:n.substring(u),g=Jo(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},Jo=r=>r.endsWith(kr)?r.substring(0,r.length-1):r.startsWith(kr)?r.substring(1):r,Qo=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}},ei=r=>({cache:Yo(r.cacheSize),parseClassName:Ko(r),sortModifiers:Qo(r),...Uo(r)}),ti=/\s+/,ri=(r,e)=>{const{parseClassName:t,getClassGroupId:a,getConflictingClassGroupIds:n,sortModifiers:s}=e,o=[],l=r.trim().split(ti);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 E=s(x).join(":"),B=w?E+kr:E,F=B+N;if(o.includes(F))continue;o.push(F);const O=n(N,T);for(let X=0;X<O.length;++X){const P=O[X];o.push(B+P)}u=h+(u.length>0?" "+u:u)}return u};function ai(){let r=0,e,t,a="";for(;r<arguments.length;)(e=arguments[r++])&&(t=Dn(e))&&(a&&(a+=" "),a+=t);return a}const Dn=r=>{if(typeof r=="string")return r;let e,t="";for(let a=0;a<r.length;a++)r[a]&&(e=Dn(r[a]))&&(t&&(t+=" "),t+=e);return t};function ni(r,...e){let t,a,n,s=o;function o(u){const d=e.reduce((h,g)=>g(h),r());return t=ei(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=ri(u,t);return n(u,h),h}return function(){return s(ai.apply(null,arguments))}}const Se=r=>{const e=t=>t[r]||[];return e.isThemeGetter=!0,e},En=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Rn=/^\((?:(\w[\w-]*):)?(.+)\)$/i,si=/^\d+\/\d+$/,oi=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ii=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,li=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,ci=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ui=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,L0=r=>si.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)),a0=r=>oi.test(r),di=()=>!0,mi=r=>ii.test(r)&&!li.test(r),Ln=()=>!1,hi=r=>ci.test(r),fi=r=>ui.test(r),pi=r=>!G(r)&&!U(r),vi=r=>G0(r,jn,Ln),G=r=>En.test(r),C0=r=>G0(r,Pn,mi),Zt=r=>G0(r,wi,ee),ya=r=>G0(r,Bn,Ln),gi=r=>G0(r,In,fi),ot=r=>G0(r,On,hi),U=r=>Rn.test(r),X0=r=>U0(r,Pn),bi=r=>U0(r,Si),xa=r=>U0(r,Bn),yi=r=>U0(r,jn),xi=r=>U0(r,In),it=r=>U0(r,On,!0),G0=(r,e,t)=>{const a=En.exec(r);return a?a[1]?e(a[1]):t(a[2]):!1},U0=(r,e,t=!1)=>{const a=Rn.exec(r);return a?a[1]?e(a[1]):t:!1},Bn=r=>r==="position"||r==="percentage",In=r=>r==="image"||r==="url",jn=r=>r==="length"||r==="size"||r==="bg-size",Pn=r=>r==="length",wi=r=>r==="number",Si=r=>r==="family-name",On=r=>r==="shadow",ki=()=>{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"),E=Se("animate"),B=()=>["auto","avoid","all","avoid-page","page","left","right","column"],F=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],O=()=>[...F(),U,G],X=()=>["auto","hidden","clip","visible","scroll"],P=()=>["auto","contain","none"],I=()=>[U,G,u],Y=()=>[L0,"full","auto",...I()],ce=()=>[h0,"none","subgrid",U,G],ne=()=>["auto",{span:["full",h0,U,G]},h0,U,G],te=()=>[h0,"auto",U,G],ue=()=>["auto","min","max","fr",U,G],xe=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],fe=()=>["start","end","center","stretch","center-safe","end-safe"],ve=()=>["auto",...I()],Me=()=>[L0,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...I()],$=()=>[r,U,G],r0=()=>[...F(),xa,ya,{position:[U,G]}],Re=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Le=()=>["auto","cover","contain",yi,vi,{size:[U,G]}],Ce=()=>[Yt,X0,C0],se=()=>["","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"],oe=()=>[ee,Yt,xa,ya],Ue=()=>["","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:[a0],breakpoint:[a0],color:[di],container:[a0],"drop-shadow":[a0],ease:["in","out","in-out"],font:[pi],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[a0],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[a0],shadow:[a0],spacing:["px",ee],text:[a0],"text-shadow":[a0],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",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:X()}],"overflow-x":[{"overflow-x":X()}],"overflow-y":[{"overflow-y":X()}],overscroll:[{overscroll:P()}],"overscroll-x":[{"overscroll-x":P()}],"overscroll-y":[{"overscroll-y":P()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:Y()}],"inset-x":[{"inset-x":Y()}],"inset-y":[{"inset-y":Y()}],start:[{start:Y()}],end:[{end:Y()}],top:[{top:Y()}],right:[{right:Y()}],bottom:[{bottom:Y()}],left:[{left:Y()}],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":ce()}],"col-start-end":[{col:ne()}],"col-start":[{"col-start":te()}],"col-end":[{"col-end":te()}],"grid-rows":[{"grid-rows":ce()}],"row-start-end":[{row:ne()}],"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":ue()}],"auto-rows":[{"auto-rows":ue()}],gap:[{gap:I()}],"gap-x":[{"gap-x":I()}],"gap-y":[{"gap-y":I()}],"justify-content":[{justify:[...xe(),"normal"]}],"justify-items":[{"justify-items":[...fe(),"normal"]}],"justify-self":[{"justify-self":["auto",...fe()]}],"align-content":[{content:["normal",...xe()]}],"align-items":[{items:[...fe(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...fe(),{baseline:["","last"]}]}],"place-content":[{"place-content":xe()}],"place-items":[{"place-items":[...fe(),"baseline"]}],"place-self":[{"place-self":["auto",...fe()]}],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:ve()}],mx:[{mx:ve()}],my:[{my:ve()}],ms:[{ms:ve()}],me:[{me:ve()}],mt:[{mt:ve()}],mr:[{mr:ve()}],mb:[{mb:ve()}],ml:[{ml:ve()}],"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:[bi,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:$()}],"text-color":[{text:$()}],"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:$()}],"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:r0()}],"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]},xi,gi]}],"bg-color":[{bg:$()}],"gradient-from-pos":[{from:Ce()}],"gradient-via-pos":[{via:Ce()}],"gradient-to-pos":[{to:Ce()}],"gradient-from":[{from:$()}],"gradient-via":[{via:$()}],"gradient-to":[{to:$()}],rounded:[{rounded:se()}],"rounded-s":[{"rounded-s":se()}],"rounded-e":[{"rounded-e":se()}],"rounded-t":[{"rounded-t":se()}],"rounded-r":[{"rounded-r":se()}],"rounded-b":[{"rounded-b":se()}],"rounded-l":[{"rounded-l":se()}],"rounded-ss":[{"rounded-ss":se()}],"rounded-se":[{"rounded-se":se()}],"rounded-ee":[{"rounded-ee":se()}],"rounded-es":[{"rounded-es":se()}],"rounded-tl":[{"rounded-tl":se()}],"rounded-tr":[{"rounded-tr":se()}],"rounded-br":[{"rounded-br":se()}],"rounded-bl":[{"rounded-bl":se()}],"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:$()}],"border-color-x":[{"border-x":$()}],"border-color-y":[{"border-y":$()}],"border-color-s":[{"border-s":$()}],"border-color-e":[{"border-e":$()}],"border-color-t":[{"border-t":$()}],"border-color-r":[{"border-r":$()}],"border-color-b":[{"border-b":$()}],"border-color-l":[{"border-l":$()}],"divide-color":[{divide:$()}],"outline-style":[{outline:[...Be(),"none","hidden"]}],"outline-offset":[{"outline-offset":[ee,U,G]}],"outline-w":[{outline:["",ee,X0,C0]}],"outline-color":[{outline:$()}],shadow:[{shadow:["","none",h,it,ot]}],"shadow-color":[{shadow:$()}],"inset-shadow":[{"inset-shadow":["none",g,it,ot]}],"inset-shadow-color":[{"inset-shadow":$()}],"ring-w":[{ring:we()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:$()}],"ring-offset-w":[{"ring-offset":[ee,C0]}],"ring-offset-color":[{"ring-offset":$()}],"inset-ring-w":[{"inset-ring":we()}],"inset-ring-color":[{"inset-ring":$()}],"text-shadow":[{"text-shadow":["none",x,it,ot]}],"text-shadow-color":[{"text-shadow":$()}],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":oe()}],"mask-image-linear-to-pos":[{"mask-linear-to":oe()}],"mask-image-linear-from-color":[{"mask-linear-from":$()}],"mask-image-linear-to-color":[{"mask-linear-to":$()}],"mask-image-t-from-pos":[{"mask-t-from":oe()}],"mask-image-t-to-pos":[{"mask-t-to":oe()}],"mask-image-t-from-color":[{"mask-t-from":$()}],"mask-image-t-to-color":[{"mask-t-to":$()}],"mask-image-r-from-pos":[{"mask-r-from":oe()}],"mask-image-r-to-pos":[{"mask-r-to":oe()}],"mask-image-r-from-color":[{"mask-r-from":$()}],"mask-image-r-to-color":[{"mask-r-to":$()}],"mask-image-b-from-pos":[{"mask-b-from":oe()}],"mask-image-b-to-pos":[{"mask-b-to":oe()}],"mask-image-b-from-color":[{"mask-b-from":$()}],"mask-image-b-to-color":[{"mask-b-to":$()}],"mask-image-l-from-pos":[{"mask-l-from":oe()}],"mask-image-l-to-pos":[{"mask-l-to":oe()}],"mask-image-l-from-color":[{"mask-l-from":$()}],"mask-image-l-to-color":[{"mask-l-to":$()}],"mask-image-x-from-pos":[{"mask-x-from":oe()}],"mask-image-x-to-pos":[{"mask-x-to":oe()}],"mask-image-x-from-color":[{"mask-x-from":$()}],"mask-image-x-to-color":[{"mask-x-to":$()}],"mask-image-y-from-pos":[{"mask-y-from":oe()}],"mask-image-y-to-pos":[{"mask-y-to":oe()}],"mask-image-y-from-color":[{"mask-y-from":$()}],"mask-image-y-to-color":[{"mask-y-to":$()}],"mask-image-radial":[{"mask-radial":[U,G]}],"mask-image-radial-from-pos":[{"mask-radial-from":oe()}],"mask-image-radial-to-pos":[{"mask-radial-to":oe()}],"mask-image-radial-from-color":[{"mask-radial-from":$()}],"mask-image-radial-to-color":[{"mask-radial-to":$()}],"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":F()}],"mask-image-conic-pos":[{"mask-conic":[ee]}],"mask-image-conic-from-pos":[{"mask-conic-from":oe()}],"mask-image-conic-to-pos":[{"mask-conic-to":oe()}],"mask-image-conic-from-color":[{"mask-conic-from":$()}],"mask-image-conic-to-color":[{"mask-conic-to":$()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:r0()}],"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:Ue()}],brightness:[{brightness:[ee,U,G]}],contrast:[{contrast:[ee,U,G]}],"drop-shadow":[{"drop-shadow":["","none",w,it,ot]}],"drop-shadow-color":[{"drop-shadow":$()}],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":Ue()}],"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",E,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:$()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:$()}],"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",...$()]}],"stroke-w":[{stroke:[ee,X0,C0,Zt]}],stroke:[{stroke:["none",...$()]}],"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"]}},Ci=ni(ki);function W(...r){return Ci(An(r))}const wa=r=>typeof r=="boolean"?`${r}`:r===0?"0":r,Sa=An,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)},Mi=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"}}),zi=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"}}),Ti=A("absolute inset-0 w-full h-full object-cover"),Ai=r=>{const e=r.trim().split(/\s+/);return e.length>=2?(e[0][0]+e[1][0]).toUpperCase():r.slice(0,2).toUpperCase()},Ni=(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||Ni(x,a==="big"?64:32),k=h&&l?l:n,T=e==="image"&&!h,N=()=>{g(!0)},E={backgroundImage:"linear-gradient(90deg, rgba(21, 177, 205, 0.08) 0%, rgba(21, 177, 205, 0.08) 100%), linear-gradient(90deg, rgb(255, 255, 255) 0%, rgb(255, 255, 255) 100%)"};return f.jsx("div",{ref:d,className:W(Mi({shape:t,size:a}),r),style:T?void 0:E,role:"img","aria-label":o,...u,children:T?f.jsx("img",{src:M,alt:o,className:W(Ti()),onError:N}):f.jsx("span",{className:W(zi({size:a})),children:Ai(k)})})});Pr.displayName="Avatar";const Di=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"}}),Ei=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"}}),Ri=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(Di({size:t}),r),...n,children:[a&&f.jsx("span",{className:Ri({variant:e})}),f.jsx("span",{className:Ei({variant:e})})]}));Or.displayName="StatusIndicator";const Li={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"},Bi={display:"h1",h1:"h1",h2:"h2",h3:"h3",h4:"h4",small:"p",tiny:"p","x-small":"p","column-header":"span",tag:"span"},Ii={primary:"text-[var(--color-gray-1000)]",secondary:"text-[var(--color-gray-600)]",inherit:""},ji={thin:"font-thin",extralight:"font-extralight",light:"font-light",regular:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold",black:"font-black"},Pi={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||Bi[r],u=Li[r],d=Ii[n],h=s?ji[s]:"",g=o?Pi[o]:"";return f.jsx(l,{className:W(u,d,h,g,a),children:t})},Oi={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=Oi[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 Fi={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)"},Fn=({size:r=163,colorVariant:e="dark",...t})=>{const a=Fi[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"})})})]})};Fn.displayName="FullLogo";const 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)"},qr=({size:r=329,colorVariant:e="dark",animated:t=!1,animationDuration:a=2,animationDelay:n=0,...s})=>{const o=qi[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:`
|
|
2
2
|
@keyframes drawSignature-${l.replace(/:/g,"")} {
|
|
3
3
|
0% {
|
|
4
4
|
stroke-dashoffset: var(--path-length);
|
|
@@ -23,12 +23,12 @@
|
|
|
23
23
|
transform: scale(1);
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
|
-
`}),h.jsx("path",{d:"M239.997 257.024C239.13 256.261 238.348 255.328 237.671 254.268C236.994 253.208 236.55 252.126 236.359 251.066C236.169 250.006 236.359 249.179 236.93 248.585C239.659 245.277 243.233 242.118 247.696 239.107C252.138 236.095 256.601 234.59 261.063 234.59C263.2 234.59 264.595 235.375 265.293 236.922C265.97 238.47 266.309 240.018 266.309 241.587C266.309 244.302 265.568 246.443 264.13 247.991C262.692 249.539 260.831 250.854 258.61 251.914C256.389 252.996 254.062 253.907 251.63 254.692C249.198 255.455 247.04 256.24 245.095 257.024L242.768 258.191C241.795 258.191 240.886 257.809 239.997 257.024Z",fill:o,style:{transformOrigin:"252px 247px",animation:`drawDot-${l.replace(/:/g,"")} 0.3s ease-out ${n+a*.9}s forwards`,opacity:0}}),h.jsx("path",{d:"M308.102 176.765C306.453 175.663 304.126 174.963 301.123 174.687C298.119 174.411 294.46 174.433 290.167 174.772C285.873 175.111 281.008 175.578 275.594 176.193C273.648 176.405 271.829 176.617 270.179 176.808L245.793 180.942C242.091 181.536 239.003 182.003 236.486 182.406C233.969 182.808 231.558 182.702 229.232 182.13L193.572 185.777C193.952 184.293 194.587 182.893 195.517 181.6C196.469 180.243 197.548 179.161 198.711 178.398C205.099 169.068 211.254 160.056 217.176 151.299C223.077 142.562 228.639 134.102 233.885 125.959L234.752 121.888L253.936 88.6814C253.936 87.3243 254.422 86.2641 255.395 85.4795C256.368 84.7162 257.045 83.4439 257.425 81.7051L260.344 73.2445C260.915 71.6966 261.465 70.0426 261.93 68.2826C262.417 66.5439 262.671 64.5082 262.671 62.1757C262.671 60.8186 262.459 59.1223 262.1 57.0866C261.698 55.051 261.084 53.1426 260.217 51.4038C259.35 49.6438 258.271 48.1595 257.024 46.8872C255.776 45.615 254.168 45 252.243 45C250.89 45 249.388 45.3817 247.738 46.1663C246.089 46.9509 244.439 47.9263 242.789 49.0925C241.139 50.2588 239.595 51.4674 238.136 52.7397C236.677 54.012 235.471 55.0298 234.498 55.7932L207.468 81.7263L206.008 82.5957L192.641 96.2939C192.429 96.2939 192.112 96.3999 191.626 96.5907C191.139 96.7816 190.801 96.8876 190.61 96.8876L122.04 164.763C120.094 164.763 117.493 163.894 114.193 162.134C110.915 160.374 107.023 159.505 102.56 159.505C101.587 159.505 100.53 159.802 99.3666 160.374C98.2033 160.947 97.3361 161.243 96.7439 161.243C95.9613 161.243 95.2422 160.798 94.5654 159.929C93.8885 159.059 92.7887 158.635 91.2236 158.635C86.5704 159.611 83.567 160.183 82.2134 160.374C80.8597 160.586 79.9714 160.671 79.5907 160.671C77.6448 159.886 76.397 159.696 75.8047 160.098C75.2125 160.501 74.7472 160.777 74.3453 160.968C73.7743 160.586 72.3149 160.247 69.9883 159.95C67.6617 159.674 65.5255 159.505 63.6008 159.505C60.682 159.505 56.6634 159.611 51.5449 159.802C46.4053 159.992 41.3715 160.629 36.4434 161.689C31.5153 162.749 27.2005 164.488 23.5203 166.926C19.8401 169.365 18 172.8 18 177.274C18 181.155 18.9518 184.462 20.8976 187.177C22.8435 189.912 25.3181 192.223 28.3215 194.174C31.3249 196.125 34.6667 197.524 38.3469 198.394C42.0271 199.263 45.6016 199.709 49.0915 199.709C51.2277 200.281 53.1524 200.09 54.9079 199.136C54.6964 199.136 55.7328 199.369 57.9536 199.857C60.1744 200.345 62.9451 200.79 66.2235 201.172C69.523 201.553 72.9494 201.999 76.545 202.465C80.1195 202.953 83.0806 203.207 85.4071 203.207L59.5399 232.915L54.0196 239.319C52.8563 240.294 52.4333 241.948 52.7294 244.281C53.0043 246.613 53.6389 247.779 54.6118 247.779C57.1287 247.779 60.3225 246.083 64.193 242.69C68.0636 239.297 72.1457 235.163 76.397 230.307C80.6694 225.451 84.9207 220.51 89.1931 215.464C93.4444 210.417 97.2303 206.24 100.53 202.932C100.911 202.932 101.312 202.974 101.693 203.08C102.074 203.165 102.455 203.228 102.856 203.228C115.822 203.228 127.878 202.847 139.045 202.062C150.192 201.299 160.407 200.896 169.692 200.896C166.985 205.37 164.066 209.929 160.978 214.594C157.89 219.259 154.591 224.115 151.101 229.162L127.285 264.701C125.932 266.842 124.726 268.984 123.648 271.104C122.569 273.225 122.061 275.366 122.061 277.508C122.061 279.056 122.59 280.371 123.648 281.431C124.705 282.491 125.826 283.042 126.989 283.042C129.316 283.042 131.346 282.364 133.081 281.007C134.815 279.65 136.613 278.038 138.453 276.193C140.293 274.349 142.197 272.44 144.121 270.511C146.046 268.56 148.373 267.012 151.08 265.846L182.467 237.007C182.658 236.414 183.102 235.777 183.758 235.12C184.434 234.442 185.259 233.615 186.232 232.639L197.273 223.33C200.192 220.807 202.941 217.881 205.543 214.573C208.166 211.286 209.477 209.145 209.477 208.169C209.477 206.027 208.229 204.967 205.712 204.967C205.331 204.967 204.697 205.116 203.83 205.413C202.962 205.709 201.947 206.346 200.784 207.3L156.896 248.076L146.152 255.646L149.049 251.575C149.832 250.218 151.186 248.034 153.132 245.023C155.056 242.012 157.192 238.725 159.519 235.12C161.846 231.537 164.32 227.805 166.943 223.903C169.566 220.022 172.019 216.418 174.367 213.11C176.693 209.823 178.724 207.045 180.458 204.819C182.193 202.592 183.44 201.278 184.223 200.875C184.604 200.684 185.386 200.493 186.55 200.302C186.803 200.281 187.121 200.281 187.374 200.239L196.871 199.433C201.672 199.009 206.304 198.161 210.746 196.931C215.166 195.68 219.798 194.853 224.6 194.407C226.122 194.301 228.893 193.983 232.891 193.474C236.909 192.965 241.266 192.393 245.941 191.757C250.615 191.142 254.993 190.527 259.075 189.912C263.157 189.297 265.991 188.852 267.599 188.555C269.206 188.258 270.602 188.025 271.787 187.834C272.971 187.664 274.431 187.516 276.165 187.41C276.313 187.41 276.503 187.177 276.651 187.134L281.579 186.583C284.435 186.265 286.888 186.095 288.961 186.095C291.013 186.095 292.514 186.18 293.445 186.392C292.726 188.152 292.112 189.361 291.563 190.039C291.034 190.718 290.59 191.142 290.23 191.333C289.871 191.524 289.659 191.672 289.596 191.757C289.532 191.842 289.532 192.181 289.596 192.796C289.807 194.768 291.647 195.531 295.116 195.15C295.708 195.086 296.491 194.81 297.421 194.323C298.352 193.835 299.325 193.305 300.319 192.732C301.313 192.16 302.286 191.545 303.195 190.909C304.126 190.272 304.782 189.7 305.184 189.191C306.072 188.937 307.299 188.046 308.885 186.477C310.45 184.929 311.169 183.402 311 181.875C310.746 179.628 309.794 177.931 308.145 176.829L308.102 176.765ZM96.7227 190.039C76.5662 189.276 60.9781 188.088 49.9375 186.54C38.8968 184.993 31.5364 181.981 27.8562 177.507C28.6388 176.15 31.3884 175.026 36.1473 174.157C40.885 173.288 46.0246 172.567 51.5449 171.973C57.0653 171.379 62.1414 170.955 66.7946 170.679C71.4477 170.383 74.0704 170.234 74.6415 170.234H79.2946C88.6009 170.807 96.0882 171.4 101.82 171.973C107.531 172.545 111.549 173.033 113.876 173.436L96.7227 190.039ZM147.146 188.576C136.592 188.958 125.488 189.255 113.876 189.446C115.23 187.495 117.366 184.971 120.263 181.875C123.182 178.78 126.376 175.472 129.845 171.973C133.335 168.474 137.015 164.891 140.885 161.201C144.756 157.511 148.436 154.013 151.926 150.705L172.273 129.14C172.654 127.973 173.33 127.401 174.303 127.401L184.181 118.092C185.154 117.71 186.55 116.629 188.411 114.89C190.251 113.151 192.176 111.201 194.206 109.08C196.237 106.96 198.182 104.818 200.023 102.676C201.863 100.535 203.259 98.902 204.231 97.7146L211.211 93.0496C213.919 90.3354 216.541 87.706 219.058 85.1827C221.575 82.6593 224.092 80.3268 226.609 78.1852L231.262 73.5202C233.99 70.9968 236.74 68.8128 239.553 66.968C242.345 65.1232 246.279 62.727 251.313 59.822V63.0239C251.313 66.3318 250.551 70.1062 248.986 74.3896C247.421 78.6729 245.877 82.3625 244.333 85.4583L184.181 180.137C182.446 181.494 180.881 183.445 179.528 185.968C168.487 187.325 157.679 188.194 147.125 188.597L147.146 188.576Z",stroke:o,strokeWidth:"2",fill:o,style:{"--path-length":u,strokeDasharray:u,strokeDashoffset:u,fillOpacity:0,animation:`drawSignature-${l.replace(/:/g,"")} ${a}s ease-out ${n}s forwards`}})]}):h.jsxs("svg",{...s,width:r,height:r,viewBox:"0 0 329 329",fill:"none",children:[h.jsx("path",{d:"M239.997 257.024C239.13 256.261 238.348 255.328 237.671 254.268C236.994 253.208 236.55 252.126 236.359 251.066C236.169 250.006 236.359 249.179 236.93 248.585C239.659 245.277 243.233 242.118 247.696 239.107C252.138 236.095 256.601 234.59 261.063 234.59C263.2 234.59 264.595 235.375 265.293 236.922C265.97 238.47 266.309 240.018 266.309 241.587C266.309 244.302 265.568 246.443 264.13 247.991C262.692 249.539 260.831 250.854 258.61 251.914C256.389 252.996 254.062 253.907 251.63 254.692C249.198 255.455 247.04 256.24 245.095 257.024L242.768 258.191C241.795 258.191 240.886 257.809 239.997 257.024Z",fill:o}),h.jsx("path",{d:"M308.102 176.765C306.453 175.663 304.126 174.963 301.123 174.687C298.119 174.411 294.46 174.433 290.167 174.772C285.873 175.111 281.008 175.578 275.594 176.193C273.648 176.405 271.829 176.617 270.179 176.808L245.793 180.942C242.091 181.536 239.003 182.003 236.486 182.406C233.969 182.808 231.558 182.702 229.232 182.13L193.572 185.777C193.952 184.293 194.587 182.893 195.517 181.6C196.469 180.243 197.548 179.161 198.711 178.398C205.099 169.068 211.254 160.056 217.176 151.299C223.077 142.562 228.639 134.102 233.885 125.959L234.752 121.888L253.936 88.6814C253.936 87.3243 254.422 86.2641 255.395 85.4795C256.368 84.7162 257.045 83.4439 257.425 81.7051L260.344 73.2445C260.915 71.6966 261.465 70.0426 261.93 68.2826C262.417 66.5439 262.671 64.5082 262.671 62.1757C262.671 60.8186 262.459 59.1223 262.1 57.0866C261.698 55.051 261.084 53.1426 260.217 51.4038C259.35 49.6438 258.271 48.1595 257.024 46.8872C255.776 45.615 254.168 45 252.243 45C250.89 45 249.388 45.3817 247.738 46.1663C246.089 46.9509 244.439 47.9263 242.789 49.0925C241.139 50.2588 239.595 51.4674 238.136 52.7397C236.677 54.012 235.471 55.0298 234.498 55.7932L207.468 81.7263L206.008 82.5957L192.641 96.2939C192.429 96.2939 192.112 96.3999 191.626 96.5907C191.139 96.7816 190.801 96.8876 190.61 96.8876L122.04 164.763C120.094 164.763 117.493 163.894 114.193 162.134C110.915 160.374 107.023 159.505 102.56 159.505C101.587 159.505 100.53 159.802 99.3666 160.374C98.2033 160.947 97.3361 161.243 96.7439 161.243C95.9613 161.243 95.2422 160.798 94.5654 159.929C93.8885 159.059 92.7887 158.635 91.2236 158.635C86.5704 159.611 83.567 160.183 82.2134 160.374C80.8597 160.586 79.9714 160.671 79.5907 160.671C77.6448 159.886 76.397 159.696 75.8047 160.098C75.2125 160.501 74.7472 160.777 74.3453 160.968C73.7743 160.586 72.3149 160.247 69.9883 159.95C67.6617 159.674 65.5255 159.505 63.6008 159.505C60.682 159.505 56.6634 159.611 51.5449 159.802C46.4053 159.992 41.3715 160.629 36.4434 161.689C31.5153 162.749 27.2005 164.488 23.5203 166.926C19.8401 169.365 18 172.8 18 177.274C18 181.155 18.9518 184.462 20.8976 187.177C22.8435 189.912 25.3181 192.223 28.3215 194.174C31.3249 196.125 34.6667 197.524 38.3469 198.394C42.0271 199.263 45.6016 199.709 49.0915 199.709C51.2277 200.281 53.1524 200.09 54.9079 199.136C54.6964 199.136 55.7328 199.369 57.9536 199.857C60.1744 200.345 62.9451 200.79 66.2235 201.172C69.523 201.553 72.9494 201.999 76.545 202.465C80.1195 202.953 83.0806 203.207 85.4071 203.207L59.5399 232.915L54.0196 239.319C52.8563 240.294 52.4333 241.948 52.7294 244.281C53.0043 246.613 53.6389 247.779 54.6118 247.779C57.1287 247.779 60.3225 246.083 64.193 242.69C68.0636 239.297 72.1457 235.163 76.397 230.307C80.6694 225.451 84.9207 220.51 89.1931 215.464C93.4444 210.417 97.2303 206.24 100.53 202.932C100.911 202.932 101.312 202.974 101.693 203.08C102.074 203.165 102.455 203.228 102.856 203.228C115.822 203.228 127.878 202.847 139.045 202.062C150.192 201.299 160.407 200.896 169.692 200.896C166.985 205.37 164.066 209.929 160.978 214.594C157.89 219.259 154.591 224.115 151.101 229.162L127.285 264.701C125.932 266.842 124.726 268.984 123.648 271.104C122.569 273.225 122.061 275.366 122.061 277.508C122.061 279.056 122.59 280.371 123.648 281.431C124.705 282.491 125.826 283.042 126.989 283.042C129.316 283.042 131.346 282.364 133.081 281.007C134.815 279.65 136.613 278.038 138.453 276.193C140.293 274.349 142.197 272.44 144.121 270.511C146.046 268.56 148.373 267.012 151.08 265.846L182.467 237.007C182.658 236.414 183.102 235.777 183.758 235.12C184.434 234.442 185.259 233.615 186.232 232.639L197.273 223.33C200.192 220.807 202.941 217.881 205.543 214.573C208.166 211.286 209.477 209.145 209.477 208.169C209.477 206.027 208.229 204.967 205.712 204.967C205.331 204.967 204.697 205.116 203.83 205.413C202.962 205.709 201.947 206.346 200.784 207.3L156.896 248.076L146.152 255.646L149.049 251.575C149.832 250.218 151.186 248.034 153.132 245.023C155.056 242.012 157.192 238.725 159.519 235.12C161.846 231.537 164.32 227.805 166.943 223.903C169.566 220.022 172.019 216.418 174.367 213.11C176.693 209.823 178.724 207.045 180.458 204.819C182.193 202.592 183.44 201.278 184.223 200.875C184.604 200.684 185.386 200.493 186.55 200.302C186.803 200.281 187.121 200.281 187.374 200.239L196.871 199.433C201.672 199.009 206.304 198.161 210.746 196.931C215.166 195.68 219.798 194.853 224.6 194.407C226.122 194.301 228.893 193.983 232.891 193.474C236.909 192.965 241.266 192.393 245.941 191.757C250.615 191.142 254.993 190.527 259.075 189.912C263.157 189.297 265.991 188.852 267.599 188.555C269.206 188.258 270.602 188.025 271.787 187.834C272.971 187.664 274.431 187.516 276.165 187.41C276.313 187.41 276.503 187.177 276.651 187.134L281.579 186.583C284.435 186.265 286.888 186.095 288.961 186.095C291.013 186.095 292.514 186.18 293.445 186.392C292.726 188.152 292.112 189.361 291.563 190.039C291.034 190.718 290.59 191.142 290.23 191.333C289.871 191.524 289.659 191.672 289.596 191.757C289.532 191.842 289.532 192.181 289.596 192.796C289.807 194.768 291.647 195.531 295.116 195.15C295.708 195.086 296.491 194.81 297.421 194.323C298.352 193.835 299.325 193.305 300.319 192.732C301.313 192.16 302.286 191.545 303.195 190.909C304.126 190.272 304.782 189.7 305.184 189.191C306.072 188.937 307.299 188.046 308.885 186.477C310.45 184.929 311.169 183.402 311 181.875C310.746 179.628 309.794 177.931 308.145 176.829L308.102 176.765ZM96.7227 190.039C76.5662 189.276 60.9781 188.088 49.9375 186.54C38.8968 184.993 31.5364 181.981 27.8562 177.507C28.6388 176.15 31.3884 175.026 36.1473 174.157C40.885 173.288 46.0246 172.567 51.5449 171.973C57.0653 171.379 62.1414 170.955 66.7946 170.679C71.4477 170.383 74.0704 170.234 74.6415 170.234H79.2946C88.6009 170.807 96.0882 171.4 101.82 171.973C107.531 172.545 111.549 173.033 113.876 173.436L96.7227 190.039ZM147.146 188.576C136.592 188.958 125.488 189.255 113.876 189.446C115.23 187.495 117.366 184.971 120.263 181.875C123.182 178.78 126.376 175.472 129.845 171.973C133.335 168.474 137.015 164.891 140.885 161.201C144.756 157.511 148.436 154.013 151.926 150.705L172.273 129.14C172.654 127.973 173.33 127.401 174.303 127.401L184.181 118.092C185.154 117.71 186.55 116.629 188.411 114.89C190.251 113.151 192.176 111.201 194.206 109.08C196.237 106.96 198.182 104.818 200.023 102.676C201.863 100.535 203.259 98.902 204.231 97.7146L211.211 93.0496C213.919 90.3354 216.541 87.706 219.058 85.1827C221.575 82.6593 224.092 80.3268 226.609 78.1852L231.262 73.5202C233.99 70.9968 236.74 68.8128 239.553 66.968C242.345 65.1232 246.279 62.727 251.313 59.822V63.0239C251.313 66.3318 250.551 70.1062 248.986 74.3896C247.421 78.6729 245.877 82.3625 244.333 85.4583L184.181 180.137C182.446 181.494 180.881 183.445 179.528 185.968C168.487 187.325 157.679 188.194 147.125 188.597L147.146 188.576Z",fill:o})]})};Hr.displayName="SignatureA";const Ca=N("group relative flex items-center rounded-[8px] border box-border cursor-pointer w-full overflow-hidden isolate",{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)]"},variant:{default:"",fancy:"transition-[border-color] duration-300"},disabled:{true:"opacity-50 cursor-not-allowed pointer-events-none",false:""}},defaultVariants:{status:"normal",variant:"default",disabled:!1}}),Ma=N("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"}}),za=N("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"}}),M0=N("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"}}),Ta=N("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"),Ui=N("absolute left-1 -bottom-0.5 w-[51px] h-[62px] overflow-hidden font-normal text-[5px] leading-[8px] text-[var(--color-gray-600)] select-none pointer-events-none [mask-image:linear-gradient(to_top,transparent_0%,black_30%,black_100%)]"),$i=N("flex flex-col gap-[7px] grow items-start p-4 min-w-0 transition-transform duration-300 group-hover:translate-x-0.5"),Wi=N("font-normal text-[14px] leading-[20px] text-[var(--color-blue-1000)] truncate w-full transition-colors duration-200"),Xi=N("font-normal text-[12px] leading-[16px] text-[var(--color-gray-600)] truncate w-full"),Yi=N("flex gap-2 h-[75px] items-center px-4 py-2 shrink-0"),Jt=N("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"}}),Na=N("w-4 h-4 shrink-0 text-[var(--color-red-1000)] transition-transform duration-300 group-hover:scale-110"),Zi=N("w-full h-full bg-[var(--color-blue-200)]/30 p-2 space-y-2 flex flex-col items-start justify-start gap-1"),Ki=N("h-1 bg-[var(--color-gray-200)] rounded-full origin-left"),Ji=N("flex flex-col gap-[4px] grow items-start p-4 min-w-0"),Qi=N("font-medium text-[14px] leading-[20px] text-[var(--color-blue-1000)]"),el=N("text-[12px] leading-[16px] text-[var(--color-gray-600)]"),tl=N("px-4 overflow-hidden flex items-center w-[56px] relative"),rl=N("absolute w-6 h-6 text-[var(--color-blue-800)]"),al=N("w-6 h-6 text-[var(--color-gray-200)]"),nl={rest:{scaleX:1},hover:{scaleX:[0,1]}},sl={rest:{x:0},hover:{x:4}},ol={rest:{x:-20,opacity:0},hover:{x:0,opacity:1}},il={rest:{x:0,opacity:1},hover:{x:20,opacity:0}},ll=[100,66,75,50],Gn=V.forwardRef(({title:r,subtitle:e,variant:t="default",status:a,preview:n,previewText:s,onClick:o,onActionClick:l,className:u,disabled:d=!1},p)=>{const[g,w]=V.useState(!1),y=a||(g&&!d?"hover":"normal"),M=V.useMemo(()=>{if(t==="fancy")return y==="generating"||y==="error"?"rest":g?"hover":"rest"},[t,y,g]),k=V.useCallback(()=>{!a&&!d&&w(!0)},[a,d]),T=V.useCallback(()=>{!a&&!d&&w(!1)},[a,d]),A=V.useCallback(()=>{!d&&o&&o()},[d,o]),E=V.useCallback(L=>{L.stopPropagation(),!d&&l&&l()},[d,l]),j=V.useCallback(L=>{(L.key==="Enter"||L.key===" ")&&(L.preventDefault(),A())},[A]),O=()=>y==="generating"?h.jsx("div",{className:M0({status:"generating"}),children:h.jsx(f.Loader,{size:16,className:"text-[var(--color-gray-600)] animate-spin"})}):y==="error"?h.jsx("div",{className:M0({status:"error"}),children:h.jsx(f.TriangleAlert,{size:16,className:Na()})}):h.jsx("div",{className:M0({status:y}),children:h.jsx("div",{className:Ta(),children:h.jsx(be.motion.div,{className:Zi(),variants:{rest:{},hover:{transition:{staggerChildren:.1}}},children:ll.map((L,X)=>h.jsx(be.motion.div,{className:Ki(),style:{width:`${L}%`},variants:nl,transition:{duration:.4,ease:"easeInOut"}},X))})})}),P=()=>y==="generating"?h.jsx("div",{className:M0({status:"generating"}),children:h.jsx(f.Loader,{size:16,className:"text-[var(--color-gray-600)] animate-spin"})}):y==="error"?h.jsx("div",{className:M0({status:"error"}),children:h.jsx(f.TriangleAlert,{size:16,className:Na()})}):n?h.jsx("div",{className:M0({status:y}),children:n}):h.jsx("div",{className:M0({status:y}),children:h.jsx("div",{className:Ta(),children:h.jsx("p",{className:Ui(),children:s||"No preview available"})})}),W=()=>y==="generating"?null:y==="error"?h.jsx("button",{type:"button",onClick:E,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(f.RotateCcw,{size:16,className:Jt({status:"error"})})}):h.jsxs(h.Fragment,{children:[h.jsx(be.motion.div,{className:rl(),variants:ol,transition:{duration:.3,ease:"backOut"},children:h.jsx(f.ArrowUp,{size:24,className:"rotate-90"})}),h.jsx(be.motion.div,{className:al(),variants:il,transition:{duration:.3},children:h.jsx(f.ArrowUp,{size:24,className:"rotate-90"})})]}),F=()=>y==="generating"?null:y==="error"?h.jsx("button",{type:"button",onClick:E,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(f.RotateCcw,{size:16,className:Jt({status:"error"})})}):h.jsx(f.ArrowUp,{size:16,className:Y(Jt({status:y}),"rotate-90")});return t==="fancy"?h.jsxs(be.motion.div,{ref:p,role:"button",tabIndex:d?-1:0,className:Y(Ca({status:y,variant:"fancy",disabled:d}),u),onClick:A,onKeyDown:j,onMouseEnter:k,onMouseLeave:T,"aria-disabled":d,"aria-label":`${r} - ${e}${y==="error"?" - Error occurred":""}${y==="generating"?" - Generating":""}`,initial:"rest",whileHover:"hover",animate:M,children:[h.jsx("div",{className:Ma({status:y}),children:h.jsx("div",{className:za({status:y})})}),O(),h.jsxs(be.motion.div,{className:Ji(),variants:sl,children:[h.jsx("p",{className:Qi(),title:r,children:r}),h.jsx("p",{className:el(),title:e,children:e})]}),h.jsx("div",{className:tl(),children:W()})]}):h.jsxs("div",{ref:p,role:"button",tabIndex:d?-1:0,className:Y(Ca({status:y,variant:"default",disabled:d}),u),onClick:A,onKeyDown:j,onMouseEnter:k,onMouseLeave:T,"aria-disabled":d,"aria-label":`${r} - ${e}${y==="error"?" - Error occurred":""}${y==="generating"?" - Generating":""}`,children:[h.jsx("div",{className:Ma({status:y}),children:h.jsx("div",{className:za({status:y})})}),P(),h.jsxs("div",{className:$i(),children:[h.jsx("p",{className:Wi(),title:r,children:r}),h.jsx("p",{className:Xi(),title:e,children:e})]}),h.jsx("div",{className:Yi(),children:F()})]})});Gn.displayName="ArtifactCard";const cl=N("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"}}),ct=N("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"}}),ul=N("text-[var(--color-gray-600)] flex items-center justify-center"),Un=({items:r,separator:e=h.jsx(f.ChevronRight,{size:16}),className:t,size:a="medium"})=>h.jsx("nav",{"aria-label":"Breadcrumb",className:Y(cl({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:ct({state:"active"}),"aria-current":"page",children:[n.icon,n.label]}):n.href?l=h.jsxs("a",{href:n.href,className:ct({state:"default"}),onClick:n.onClick,children:[n.icon,n.label]}):n.onClick?l=h.jsxs("button",{type:"button",className:ct({state:"default"}),onClick:n.onClick,children:[n.icon,n.label]}):l=h.jsxs("span",{className:ct({state:"inactive"}),children:[n.icon,n.label]}),h.jsxs("li",{className:"flex items-center gap-2",children:[l,!o&&h.jsx("span",{className:ul(),"aria-hidden":"true",children:e})]},`${n.label}-${s}`)})})}),dl=N("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)]"},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"}}),V0=V.forwardRef(({className:r,variant:e="primary",tone:t="brand",size:a="medium",startIcon:n,endIcon:s,children:o,disabled:l,...u},d)=>{const p=a==="small"?13:a==="large"?20:16;return h.jsxs("button",{ref:d,className:Y(dl({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:p,height:p},children:n}),o,s&&h.jsx("span",{className:"flex items-center justify-center shrink-0",style:{width:p,height:p},children:s})]})});V0.displayName="Button";const ml=N("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"}}),hl=N("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"}}),ut=N("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"}}),fl=N("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 $n=(r=>(r.Uploading="uploading",r.Processing="processing",r.Done="done",r.Error="error",r))($n||{});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",p=()=>s?h.jsx(f.ArrowUp,{size:12,className:ut({status:d})}):o?h.jsx(f.Loader,{size:12,className:Y(ut({status:d}),"animate-spin")}):l?h.jsx(f.TriangleAlert,{size:12,className:ut({status:d})}):h.jsx(f.FileText,{size:12,className:ut({status:d})});return h.jsxs("div",{className:"relative inline-block group",children:[h.jsxs("div",{className:Y(ml({status:d}),n),children:[(s||o)&&h.jsx(be.motion.div,{className:fl({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:Y("flex items-center justify-center shrink-0 p-1 rounded-[2px]",l&&"bg-[#fff2f2]"),children:p()}),h.jsx("span",{className:hl({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(f.X,{size:10,className:"text-[var(--color-gray-800)]"})})]})},pl=N("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"}}),vl=N("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"}}),gl="sr-only peer",Xn=V.forwardRef(({className:r,checked:e,defaultChecked:t,onChange:a,label:n,size:s="medium",disabled:o,...l},u)=>{const[d,p]=V.useState(t||!1),g=e!==void 0,w=g?e:d,y=M=>{g||p(M.target.checked),a==null||a(M)};return h.jsxs("label",{className:pl({size:s,className:r}),children:[h.jsx("input",{type:"checkbox",className:gl,ref:u,checked:g?e:void 0,defaultChecked:g?void 0:t,onChange:y,disabled:o,...l}),h.jsx("span",{className:vl({checked:!!w,size:s}),children:h.jsx(f.Check,{size:s==="medium"?12:8,strokeWidth:3,className:Y("text-white transition-opacity duration-200",w?"opacity-100":"opacity-0")})}),n&&h.jsx(o0,{as:"span",variant:s==="medium"?"small":"x-small",color:"secondary",children:n})]})});Xn.displayName="Checkbox";function bl(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 xl=N("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=N("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}}),wl=N("px-3 py-1 text-[0.625rem] font-bold text-[var(--color-gray-600)] uppercase tracking-wider select-none"),Sl=N("h-px bg-[var(--color-gray-200)] my-1"),Yn=V.createContext(void 0),Pt=()=>{const r=V.useContext(Yn);if(!r)throw new Error("useDropdown must be used within a Dropdown");return r},Vr=({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,p=V.useRef(null),g=()=>{const y=!d;u||l(y),a==null||a(y)},w=()=>{u||l(!1),a==null||a(!1)};return bl(p,w),h.jsx(Yn.Provider,{value:{isOpen:d,toggle:g,close:w},children:h.jsx("div",{ref:p,className:Y("relative inline-block text-left",n),...s,children:r})})};Vr.displayName="Dropdown";const _r=V.forwardRef(({className:r,children:e,onClick:t,...a},n)=>{const{toggle:s,isOpen:o}=Pt(),l=u=>{s(),t==null||t(u)};return h.jsx("div",{ref:n,className:Y("cursor-pointer inline-block",r),onClick:l,"aria-haspopup":"true","aria-expanded":o,...a,children:e})});_r.displayName="DropdownTrigger";const Gr=V.forwardRef(({className:r,align:e="start",attached:t=!1,children:a,...n},s)=>{const{isOpen:o}=Pt();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:Y(xl({align:e,attached:t}),r),...n,children:a})})});Gr.displayName="DropdownContent";const Ur=V.forwardRef(({className:r,active:e,variant:t,closeOnSelect:a=!0,children:n,onClick:s,...o},l)=>{const{close:u}=Pt(),d=p=>{s==null||s(p),a&&u()};return h.jsx("div",{ref:l,className:Y(yl({active:e,variant:t}),r),onClick:d,role:"menuitem",...o,children:n})});Ur.displayName="DropdownItem";const kl=V.forwardRef(({className:r,children:e,...t},a)=>h.jsx("div",{ref:a,className:Y(wl(),r),...t,children:e}));kl.displayName="DropdownLabel";const Cl=V.forwardRef(({className:r,animated:e=!1,animationDelay:t=.2,...a},n)=>e?h.jsx("div",{ref:n,className:Y("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:Y(Sl(),r),...a}));Cl.displayName="DropdownSeparator";const Ml=N("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"}}),zl=N("relative w-full",{variants:{size:{medium:"",small:"",tiny:""}},defaultVariants:{size:"medium"}}),Aa=N("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"}}),Zn=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:zl({size:t}),children:[a&&h.jsx("span",{className:Aa({status:e,size:t,position:"start"}),children:a}),h.jsx("input",{ref:l,className:Y(Ml({status:e,size:t}),a&&u[t],n&&d[t],r),disabled:s,...o}),n&&h.jsx("span",{className:Aa({status:e,size:t,position:"end"}),children:n})]})});Zn.displayName="Input";const Tl=N("flex flex-col items-center justify-center"),Nl=N("relative",{variants:{size:{sm:"w-8 h-8",md:"w-12 h-12",lg:"w-16 h-16"}},defaultVariants:{size:"lg"}}),Al=N("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"}}),Dl=N("mt-4 typography-small",{variants:{color:{primary:"text-[var(--color-gray-1000)]",muted:"text-[var(--color-gray-600)]"}},defaultVariants:{color:"muted"}}),El=({size:r="lg",color:e="primary",text:t,textColor:a="muted"})=>h.jsxs("div",{className:Tl(),children:[h.jsx("div",{className:Nl({size:r}),children:h.jsx("div",{className:Al({color:e})})}),t&&h.jsx("p",{className:Dl({color:a}),children:t})]}),Da=N("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"}}),Ea=N("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]"}},defaultVariants:{variant:"user"}}),Rl=N("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"}}),Ll=N("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"}}),Bl=N("flex items-start justify-center shrink-0 pt-[4px]"),dt=({onClick:r,icon:e,label:t})=>h.jsx("button",{className:"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)]",onClick:r,type:"button","aria-label":t,children:h.jsx(e,{size:12})}),jl=()=>{const[r,e]=V.useState(0);return V.useEffect(()=>{const t=setInterval(()=>{e(a=>a+1)},2500);return()=>clearInterval(t)},[]),h.jsx("div",{className:"flex items-center justify-center size-[40px] rounded-full bg-[var(--color-blue-1000)]",children:h.jsx(Hr,{size:28,colorVariant:"orange",animated:!0,animationDuration:2},r)})},Kn=V.forwardRef(({className:r,variant:e="user",heading:t,children:a,isLoading:n,showAvatar:s,showTimestamp:o=!1,timestamp:l,isSticky:u=!1,isInitialPrompt:d=!1,alignment:p,onCopy:g,onEdit:w,onHelpful:y,onUnhelpful:M,...k},T)=>{const A=s??e==="assistant",E=p??(e==="user"?d?"center":"right":"left"),j=O=>{const P=typeof O=="string"?new Date(O):O,F=new Date().getTime()-P.getTime(),L=Math.floor(F/6e4);if(L<1)return"Just now";if(L<60)return`${L} min ago`;const X=Math.floor(L/60);return X<24?`${X}h ago`:P.toLocaleDateString()};return e==="loader"||n?h.jsx("div",{ref:T,className:Y(Da({variant:"loader",alignment:"left"}),r),...k,children:h.jsx("div",{className:Y(Ea({variant:"loader"})),children:h.jsx(jl,{})})}):h.jsx("div",{ref:T,className:Y(Da({variant:e,alignment:E}),"group",r),...k,children:h.jsxs("div",{className:"flex gap-[12px] items-start w-full",children:[A&&e==="assistant"&&h.jsx("div",{className:Y(Bl()),children:h.jsx("div",{className:"flex items-center justify-center size-[32px] rounded-full bg-[var(--color-blue-1000)]",children:h.jsx(qr,{size:20,colorVariant:"lightTeal"})})}),h.jsxs("div",{className:"flex flex-col flex-1 min-w-0",children:[h.jsx("div",{className:Y(Ea({variant:e}),u&&"shadow-[0px_8px_16px_-4px_rgba(0,0,0,0.1),0px_4px_8px_-4px_rgba(0,0,0,0.06)]"),children:h.jsxs("div",{className:Y(Rl({variant:e})),children:[e==="system"&&h.jsx("div",{className:"relative shrink-0 size-[16px] text-[var(--color-gray-600)]",children:h.jsx(f.Activity,{size:16})}),e==="assistant"&&t&&h.jsx("h4",{className:"typography-h4 text-[var(--color-blue-1000)]",children:t}),h.jsx("div",{className:Y("typography-small",e==="system"?"text-[var(--color-gray-600)]":"text-[var(--color-blue-1000)]"),children:a})]})}),o&&l&&h.jsx("div",{className:"mt-[4px] text-[12px] text-[var(--color-gray-600)]",children:j(l)}),!u&&(e==="user"||e==="assistant")&&(g||w||y||M)&&h.jsxs("div",{className:Y(Ll({variant:e})),children:[g&&h.jsx(dt,{onClick:g,icon:f.Clipboard,label:"Copy"}),e==="user"&&w&&h.jsx(dt,{onClick:w,icon:f.Edit3,label:"Edit"}),e==="assistant"&&h.jsxs(h.Fragment,{children:[y&&h.jsx(dt,{onClick:y,icon:f.ThumbsUp,label:"Helpful"}),M&&h.jsx(dt,{onClick:M,icon:f.ThumbsDown,label:"Unhelpful"})]})]})]})]})})});Kn.displayName="MessageBubble";const Il=N("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"}}),Pl=N("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"}}),Ol=N("flex justify-between mb-2 text-[var(--color-gray-800)]",{variants:{size:{small:"text-xs",medium:"text-sm",large:"text-base"}},defaultVariants:{size:"medium"}}),Jn=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 p=Math.min(Math.max(e/t*100,0),100),g=l?l(e,t):`${Math.round(p)}%`;return h.jsxs("div",{ref:d,className:Y("w-full",r),role:"progressbar","aria-valuemin":0,"aria-valuemax":t,"aria-valuenow":e,...u,children:[(o||s)&&h.jsxs("div",{className:Ol({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:Il({size:n}),children:h.jsx("div",{className:Pl({variant:a}),style:{transform:`translateX(-${100-p}%)`}})})]})});Jn.displayName="ProgressBar";const Fl=N(["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)]"],gradient:["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)]"]},animated:{true:["[&::-webkit-slider-thumb]:animate-pulse","[&::-moz-range-thumb]:animate-pulse"],false:[]}},defaultVariants:{variant:"cyan",animated:!1}}),Qn=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,p=Number(u??d??0),g=Number(o),w=Number(l),y=Math.min(Math.max((p-g)*100/(w-g),0),100),k=(()=>{switch(e){case"orange":return"var(--color-orange-800)";case"gradient":return"linear-gradient(90deg, var(--color-blue-400), var(--color-blue-800))";case"cyan":default:return"var(--color-blue-800)"}})(),T=e==="gradient"?`linear-gradient(to right, var(--color-blue-400), var(--color-blue-800) ${y}%, var(--color-gray-200) ${y}%)`:`linear-gradient(to right, ${k} 0%, ${k} ${y}%, var(--color-gray-200) ${y}%, var(--color-gray-200) 100%)`;return h.jsx("input",{ref:s,type:"range",className:Y(Fl({variant:e,animated:t}),r),style:{background:T,...a},...n})});Qn.displayName="RangeInput";const ql=N("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"}}),Hl=N("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"}}),Vl=N("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"}}),es=V.forwardRef(({className:r,icon:e,label:t,isCollapsed:a=!1,isActive:n=!1,variant:s="default",onClick:o,children:l,...u},d)=>{const p=a?"collapsed":"expanded",g=n?"active":s,w=y=>{o&&(y.key==="Enter"||y.key===" ")&&(y.preventDefault(),o())};return h.jsxs("div",{ref:d,className:Y(ql({type:p,variant:g}),r),role:"button",tabIndex:0,"aria-label":t,onClick:o,onKeyDown:w,...u,children:[e&&h.jsx("div",{className:Y(Hl({type:p,variant:g})),children:e}),(s!=="brand"||!a)&&h.jsx("span",{className:Y(Vl({type:p,variant:g})),children:t})]})});es.displayName="SidebarItem";const _l=N("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"}}),Gl=N("w-4 h-4 rounded-full object-cover shrink-0"),Ul=N("flex items-center justify-center shrink-0"),_0=V.forwardRef(({className:r,variant:e="default",startIcon:t,avatarSrc:a,children:n,...s},o)=>h.jsxs("div",{ref:o,className:Y(_l({variant:e}),r),...s,children:[a&&h.jsx("img",{src:a,alt:"avatar",className:Gl()}),t&&h.jsx("span",{className:Ul(),children:t}),h.jsx(o0,{variant:"tag",color:"inherit",className:"whitespace-nowrap",children:n})]}));_0.displayName="Tag";const $l=N("inline-flex h-8 items-center justify-start rounded-none bg-transparent p-0 text-muted-foreground w-full relative"),Wl=N("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"}}),Xl=N("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2"),Yl=N("absolute bottom-0 left-0 right-0 h-[2px] bg-[var(--color-blue-1000)]"),Zl=N("flex items-center gap-[2px]"),Ra=N("group-data-[state=active]:text-[var(--color-blue-1000)]"),Kl=E0.Root,ts=z.forwardRef(({className:r,...e},t)=>h.jsx(E0.List,{ref:t,className:Y($l(),r),...e}));ts.displayName=E0.List.displayName;const rs=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 p=u.current;if(!p)return;const g=new MutationObserver(()=>{l(p.getAttribute("data-state")==="active")});return g.observe(p,{attributes:!0,attributeFilter:["data-state"]}),l(p.getAttribute("data-state")==="active"),()=>g.disconnect()},[]);const d=z.useCallback(p=>{u.current=p,typeof s=="function"?s(p):s&&(s.current=p)},[s]);return h.jsxs(E0.Trigger,{ref:d,className:Y(Wl(),r),...n,children:[e,(a!==void 0||t!==void 0)&&h.jsxs("div",{className:Zl(),children:[a!==void 0&&h.jsx(_0,{variant:"indicator",startIcon:h.jsx(f.Settings,{size:10,className:"text-[#15B1CD]"}),className:Ra(),children:a}),t!==void 0&&h.jsx(_0,{variant:"indicator",startIcon:h.jsx(f.TriangleAlert,{size:10,className:"text-[#FB6060]"}),className:Ra(),children:t})]}),h.jsx(be.motion.div,{className:Yl(),initial:!1,animate:{scaleX:o?1:0,opacity:o?1:0},transition:{duration:.3,ease:"easeInOut"},style:{originX:0}})]})});rs.displayName=E0.Trigger.displayName;const as=z.forwardRef(({className:r,...e},t)=>h.jsx(E0.Content,{ref:t,className:Y(Xl(),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})}));as.displayName=E0.Content.displayName;const Jl=N("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"}}),Ql=N("relative w-full",{variants:{size:{medium:"",small:"",tiny:""}},defaultVariants:{size:"medium"}}),ns=V.forwardRef(({className:r,status:e="default",size:t="medium",resize:a="vertical",disabled:n,...s},o)=>h.jsx("div",{className:Ql({size:t}),children:h.jsx("textarea",{ref:o,className:Y(Jl({status:e,size:t,resize:a}),r),disabled:n,...s})}));ns.displayName="TextArea";const e1=N("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"}}),t1=N("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"}}),r1=(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),p=t<0,g=Math.abs(a),w=Math.abs(n),y=Math.abs(s),M=Math.abs(o),k=Math.abs(l),T=Math.abs(u),A=Math.abs(d),E=(j,O)=>{const P=j===1?"":"s";return p?`in ${j} ${O}${P}`:`${j} ${O}${P} ago`};return g<60?"just now":w<60?E(w,"minute"):y<24?E(y,"hour"):M===1?p?"tomorrow":"yesterday":M<7?E(M,"day"):k<4?E(k,"week"):T<12?E(T,"month"):E(A,"year")},a1=(r,e,t)=>{switch(e){case"relative":return r1(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)}},n1=r=>r instanceof Date?r:typeof r=="number"?new Date(r):new Date(r),ss=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(()=>n1(e),[e]),p=V.useMemo(()=>a1(d,t,o),[d,t,o]),g=V.useMemo(()=>d.toISOString(),[d]),w=n==="primary"?"var(--color-gray-800)":"var(--color-gray-600)",y=a==="small"?10:a==="large"?14:12;return h.jsxs("time",{ref:u,dateTime:g,className:Y(e1({size:a,variant:n}),r),...l,children:[s&&h.jsx("span",{className:t1({size:a}),children:h.jsx(f.ClockHistory,{size:y,color:w})}),p]})});ss.displayName="Timestamp";const s1=N("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"}}),o1=N("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"}}),i1=N("flex items-center gap-1 flex-1"),l1=N("font-bold text-[var(--color-blue-1000)] text-[0.75rem] leading-normal"),c1=N("font-normal text-[var(--color-blue-1000)] text-[0.75rem] leading-normal"),u1=N("flex items-center gap-2 shrink-0"),d1=N("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"}}),m1=N("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"),h1={info:f.Info,success:f.CheckCircle,warning:f.TriangleAlert,error:f.AlertCircle,prompt:f.Sparks},f1={info:"var(--color-blue-800)",success:"var(--color-green-1000)",warning:"var(--color-orange-800)",error:"var(--color-red-1000)",prompt:"var(--color-blue-800)"},N0=({id:r,variant:e="info",title:t,description:a,icon:n,action:s,secondaryAction:o,onClose:l})=>{const u=h1[e],d=f1[e],p=()=>{l&&l(),r&&n0.toast.dismiss(r)},g=y=>M=>{y(M),r&&n0.toast.dismiss(r)},w=()=>n||(e==="success"?h.jsx(f.CheckCircle,{size:16,color:d}):e==="error"?h.jsx(f.AlertCircle,{size:16,color:d}):e==="prompt"?h.jsx(f.Sparks,{size:16,color:d}):h.jsx(u,{size:16}));return h.jsxs("div",{className:Y(s1({variant:e})),role:"alert",children:[h.jsx("div",{className:o1({variant:e}),children:w()}),h.jsxs("div",{className:i1(),children:[h.jsx("span",{className:l1(),children:t}),a&&h.jsx("span",{className:c1(),children:a})]}),h.jsx("div",{className:d1({variant:e})}),h.jsxs("div",{className:u1(),children:[o&&h.jsx(V0,{onClick:g(o.onClick),variant:"tertiary",size:"small",startIcon:o.icon||h.jsx(f.Trash,{size:13,color:"currentColor"}),className:"w-auto",children:o.label}),s&&h.jsx(V0,{onClick:g(s.onClick),variant:"primary",size:"small",startIcon:s.icon||h.jsx(f.Check,{size:13,color:"currentColor"}),className:"w-auto",children:s.label}),h.jsx("button",{onClick:p,className:m1(),"aria-label":"Close",children:h.jsx(f.X,{size:16})})]})]})},p1=r=>h.jsx(n0.Toaster,{position:"bottom-right",toastOptions:{unstyled:!0,classNames:{toast:"bg-transparent p-0 w-full"}},...r}),v1={success:(r,e,t)=>n0.toast.custom(a=>h.jsx(N0,{id:a,variant:"success",title:r,description:e,action:t})),error:(r,e,t)=>n0.toast.custom(a=>h.jsx(N0,{id:a,variant:"error",title:r,description:e,action:t})),warning:(r,e,t)=>n0.toast.custom(a=>h.jsx(N0,{id:a,variant:"warning",title:r,description:e,action:t})),info:(r,e,t)=>n0.toast.custom(a=>h.jsx(N0,{id:a,variant:"info",title:r,description:e,action:t})),prompt:(r,e,t,a)=>n0.toast.custom(n=>h.jsx(N0,{id:n,variant:"prompt",title:r,description:e,action:t,secondaryAction:a})),custom:r=>n0.toast.custom(e=>h.jsx(N0,{id:e,...r}))},g1=N("flex items-center gap-3"),b1=N("text-[var(--color-gray-1000)] font-medium select-none"),x1=N("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:"",false:"bg-[var(--color-gray-200)]"},variant:{cyan:"",orange:""}},compoundVariants:[{enabled:!0,variant:"cyan",className:"bg-[var(--color-blue-800)] focus-visible:outline-[var(--color-blue-800)]"},{enabled:!0,variant:"orange",className:"bg-[var(--color-orange-800)] focus-visible:outline-[var(--color-orange-800)]"}],defaultVariants:{enabled:!1,variant:"cyan"}}),y1=N("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}}),os=V.forwardRef(({enabled:r,onChange:e,label:t,variant:a="cyan",className:n,disabled:s,...o},l)=>h.jsxs("div",{className:Y(g1(),n),children:[t&&h.jsx(o0,{variant:"small",className:b1(),children:t}),h.jsx("button",{ref:l,type:"button",role:"switch","aria-checked":r,disabled:s,onClick:()=>!s&&e(!r),className:x1({enabled:r,variant:a}),...o,children:h.jsx("span",{className:y1({enabled:r})})})]}));os.displayName="Toggle";const w1=N("flex items-center justify-between w-full gap-2 min-h-[20px]"),S1=N("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"}}),k1={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)"},is=V.forwardRef(({className:r,status:e="neutral",message:t,...a},n)=>{const s=e==="loading"?"info":e,o=k1[e],l=()=>e==="loading"?h.jsx(f.Loader,{size:16,color:o,className:"animate-spin"}):e==="success"?h.jsx(f.CheckCircle,{size:16,color:o}):e==="warning"?h.jsx(f.TriangleAlert,{size:16,color:o}):e==="error"?h.jsx(f.AlertCircle,{size:16,color:o}):e==="info"?h.jsx(f.Info,{size:16,color:o}):null;return h.jsxs("div",{ref:n,className:Y(w1(),r),...a,children:[h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx(Fr,{variant:s,size:"small"}),h.jsx("span",{className:S1({status:e}),children:t})]}),h.jsx("div",{className:"w-4 h-4 flex items-center justify-center",children:l()})]})});is.displayName="StatusMessage";const C1=N("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"}}),M1=N("",{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,$r=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:Y(C1({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:M1({variant:a})})]})})}));$r.displayName=A0.Content.displayName;const z1=N("relative flex flex-col w-full"),T1=N("box-border flex flex-col items-start p-4 rounded-xl w-full transition-all duration-200 min-w-[300px] max-w-[800px] relative z-10",{variants:{state:{default:"",active:"",withFiles:"",dragOver:""},variant:{default:"bg-[var(--color-white)] border border-solid border-[var(--color-gray-200)] 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"}},defaultVariants:{state:"default",variant:"default"}}),N1=N("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"}}),A1=N("box-border flex flex-col gap-[1.25rem] items-start justify-center w-full rounded-[inherit]"),D1=N("flex flex-col gap-5 w-full"),E1=N("flex flex-wrap gap-[8px] items-start w-full"),R1=N("flex items-start justify-between w-full max-h-[200px] overflow-y-auto"),L1=N("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"}}),B1=N("flex items-center justify-between w-full"),j1=N("flex gap-[8px] items-center"),I1=N("flex items-center gap-2"),Qt=N("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"}}),P1=N("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}}),O1=N("animate-spin"),F1=N("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)]"),q1=N("flex items-center justify-center"),H1=N("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"),V1=N("min-w-[120px]"),_1=N("py-1.5 px-2"),G1=N("absolute -inset-[2px] rounded-[14px] z-0 pointer-events-none"),La=N("absolute inset-0 rounded-[14px] 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:p,isLoading:g=!1,onChange:w,onSend:y,onFileAdd:M,onFileRemove:k,onModelChange:T,isUsingMagic:A=!1},E)=>{var Oe,Fe;const[j,O]=V.useState(""),[P,W]=V.useState(!1),[F,L]=V.useState(!1),X=V.useRef(null),de=V.useRef(null),ie=e!==void 0?e:j,ae=ie.trim().length>0,ce=t.length>0,fe=P?"dragOver":ce?"withFiles":F?"active":"default",ve=_=>{w?w(_):O(_)},Me=_=>{ve(_.target.value),$()},$=V.useCallback(()=>{const _=X.current;_&&(_.style.height="auto",_.style.height=`${Math.min(_.scrollHeight,200)}px`)},[]);V.useEffect(()=>{$()},[ie,$]);const t0=V.useCallback(()=>{a||!ae&&!ce||y&&(y(ie,t),ve(""),X.current&&(X.current.style.height="auto"))},[a,ae,ce,y,ie,t]),Re=_=>{_.key==="Enter"&&!_.shiftKey&&(_.preventDefault(),t0())},Le=_=>{const qe=Array.from(_.target.files||[]);qe.length>0&&M&&M(qe),de.current&&(de.current.value="")},Ce=()=>{var _;(_=de.current)==null||_.click()},ne=V.useRef(0),we=_=>{_.preventDefault(),_.stopPropagation(),ne.current+=1,ne.current===1&&W(!0)},Be=_=>{_.preventDefault(),_.stopPropagation(),ne.current-=1,ne.current===0&&W(!1)},k0=_=>{_.preventDefault(),_.stopPropagation()},se=_=>{_.preventDefault(),_.stopPropagation(),ne.current=0,W(!1);const qe=Array.from(_.dataTransfer.files);qe.length>0&&M&&M(qe)},Ge=_=>{k&&k(_)};return h.jsxs("div",{ref:E,className:Y(z1(),o),children:[h.jsx(be.AnimatePresence,{children:A&&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:G1(),children:[h.jsx("div",{className:La({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:La({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:T1({state:fe,variant:l}),onDragEnter:we,onDragLeave:Be,onDragOver:k0,onDrop:se,children:[h.jsx("div",{className:N1({state:fe,variant:l}),children:h.jsx("div",{className:A1(),children:h.jsxs("div",{className:D1(),children:[ce&&h.jsx("div",{className:E1(),children:t.map(_=>h.jsx(Wn,{filename:_.filename,status:_.status,progress:_.progress,onDelete:()=>Ge(_.id)},_.id))}),h.jsx("div",{className:R1(),children:h.jsx("textarea",{ref:X,className:L1({state:fe}),placeholder:r,value:ie,disabled:a||g,onChange:Me,onKeyDown:Re,onFocus:()=>L(!0),onBlur:()=>L(!1),rows:2,maxLength:1e4,"aria-label":"Chat message input"})}),h.jsxs("div",{className:B1(),children:[h.jsxs("div",{className:j1(),children:[h.jsx("button",{type:"button",onClick:Ce,className:Qt({variant:"add"}),disabled:a,"aria-label":"Add file",tabIndex:0,children:h.jsx(f.Plus,{size:16})}),u.map(_=>h.jsx(V.Fragment,{children:_.tooltip?h.jsx(ls,{children:h.jsxs(cs,{children:[h.jsx(us,{asChild:!0,children:h.jsx("button",{type:"button",onClick:_.onClick,className:Qt(),disabled:a||_.disabled,"aria-label":_.label,tabIndex:0,children:_.icon})}),h.jsx($r,{variant:"light",children:_.tooltip})]})}):h.jsx("button",{type:"button",onClick:_.onClick,className:Qt(),disabled:a||_.disabled,"aria-label":_.label,tabIndex:0,children:_.icon})},`--action-${_.id}`))]}),h.jsxs("div",{className:I1(),children:[d.length>0&&h.jsxs(Vr,{children:[h.jsx(_r,{children:h.jsxs("button",{type:"button",className:H1(),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(_=>_.id===p))==null?void 0:Oe.name)||((Fe=d[0])==null?void 0:Fe.name)||"Select model"}),h.jsx(f.ChevronDown,{size:10,color:"currentColor"})]})}),h.jsx(Gr,{align:"end",className:V1(),children:d.map(_=>h.jsx(Ur,{active:_.id===p,onClick:()=>T==null?void 0:T(_.id),className:_1(),children:h.jsx(o0,{variant:"tiny",color:"inherit",as:"span",children:_.name})},_.id))})]}),h.jsx("button",{type:"button",onClick:t0,className:P1({disabled:a||g||!ae&&!ce}),disabled:a||g||!ae&&!ce,"aria-label":g?"Loading":"Send message",tabIndex:0,children:g?h.jsx(f.Loader,{size:16,color:"currentColor",className:O1()}):h.jsx(f.ArrowUp,{size:16,strokeWidth:2.5,color:"currentColor"})})]})]})]})})}),h.jsx(be.AnimatePresence,{children:P&&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:F1(),children:[h.jsx("div",{className:q1(),children:h.jsx(f.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:de,type:"file",multiple:!0,onChange:Le,className:"hidden","aria-hidden":"true"})]})]})});ds.displayName="ChatInput";const U1=N("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)]"),$1=N("flex items-center gap-[12px] h-[24px]"),W1=N("flex items-center gap-[12px] h-[24px] rounded-[8px]"),Ba=N("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"),X1=N("flex items-center gap-[8px]"),Y1=N("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:Y(U1(),r),...l,children:[h.jsx(Un,{items:e,size:"medium"}),h.jsx("div",{className:$1(),children:h.jsxs("div",{className:W1(),children:[(t.length>0||o>0)&&h.jsxs("div",{className:X1(),children:[t.map(d=>h.jsx(_0,{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(_0,{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:Y1(),children:h.jsx("div",{className:"flex items-center flex-row-reverse",children:a.map((d,p)=>h.jsx("div",{className:"relative shrink-0 border-[1.5px] border-white rounded-full",style:{zIndex:a.length-p,marginRight:p<a.length-1?-4:0},children:h.jsx(Or,{initials:d.name,src:d.src,alt:d.name,className:"size-[24px] text-[10px]"})},d.id))})}),h.jsx("button",{type:"button",onClick:n,className:Ba(),"aria-label":"Add tag",children:h.jsx(f.TagPlus,{size:16})}),h.jsx("button",{type:"button",onClick:s,className:Ba(),"aria-label":"Add collaborator",children:h.jsx(f.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 ja(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=ja(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():ja(r[n],null)}}}}function R0(...r){return z.useCallback(hs(...r),r)}function Z1(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 K1(r,e=[]){let t=[];function a(s,o){const l=z.createContext(o),u=t.length;t=[...t,o];const d=g=>{var A;const{scope:w,children:y,...M}=g,k=((A=w==null?void 0:w[r])==null?void 0:A[u])||l,T=z.useMemo(()=>M,Object.values(M));return h.jsx(k.Provider,{value:T,children:y})};d.displayName=s+"Provider";function p(g,w){var k;const y=((k=w==null?void 0:w[r])==null?void 0:k[u])||l,M=z.useContext(y);if(M)return M;if(o!==void 0)return o;throw new Error(`\`${g}\` must be used within \`${s}\``)}return[d,p]}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,J1(n,...e)]}function J1(...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 J0=globalThis!=null&&globalThis.document?z.useLayoutEffect:()=>{},Q1=z[" useId ".trim().toString()]||(()=>{}),ec=0;function er(r){const[e,t]=z.useState(Q1());return J0(()=>{t(a=>a??String(ec++))},[r]),r||(e?`radix-${e}`:"")}var tc=z[" useInsertionEffect ".trim().toString()]||J0;function rc({prop:r,defaultProp:e,onChange:t=()=>{},caller:a}){const[n,s,o]=ac({defaultProp:e,onChange:t}),l=r!==void 0,u=l?r:n;{const p=z.useRef(r!==void 0);z.useEffect(()=>{const g=p.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.`),p.current=l},[l,a])}const d=z.useCallback(p=>{var g;if(l){const w=nc(p)?p(r):p;w!==r&&((g=o.current)==null||g.call(o,w))}else s(p)},[l,r,s,o]);return[u,d]}function ac({defaultProp:r,onChange:e}){const[t,a]=z.useState(r),n=z.useRef(t),s=z.useRef(e);return tc(()=>{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 nc(r){return typeof r=="function"}function fs(r){const e=sc(r),t=z.forwardRef((a,n)=>{const{children:s,...o}=a,l=z.Children.toArray(s),u=l.find(ic);if(u){const d=u.props.children,p=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,p):null})}return h.jsx(e,{...o,ref:n,children:s})});return t.displayName=`${r}.Slot`,t}function sc(r){const e=z.forwardRef((t,a)=>{const{children:n,...s}=t;if(z.isValidElement(n)){const o=cc(n),l=lc(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 oc=Symbol("radix.slottable");function ic(r){return z.isValidElement(r)&&typeof r.type=="function"&&"__radixId"in r.type&&r.type.__radixId===oc}function lc(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 cc(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 uc=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ke=uc.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 dc(r,e){r&&Xo.flushSync(()=>r.dispatchEvent(e))}function Q0(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 mc(r,e=globalThis==null?void 0:globalThis.document){const t=Q0(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 hc="DismissableLayer",zr="dismissableLayer.update",fc="dismissableLayer.pointerDownOutside",pc="dismissableLayer.focusOutside",Ia,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),[p,g]=z.useState(null),w=(p==null?void 0:p.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,y]=z.useState({}),M=R0(e,F=>g(F)),k=Array.from(d.layers),[T]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),A=k.indexOf(T),E=p?k.indexOf(p):-1,j=d.layersWithOutsidePointerEventsDisabled.size>0,O=E>=A,P=bc(F=>{const L=F.target,X=[...d.branches].some(de=>de.contains(L));!O||X||(n==null||n(F),o==null||o(F),F.defaultPrevented||l==null||l())},w),W=xc(F=>{const L=F.target;[...d.branches].some(de=>de.contains(L))||(s==null||s(F),o==null||o(F),F.defaultPrevented||l==null||l())},w);return mc(F=>{E===d.layers.size-1&&(a==null||a(F),!F.defaultPrevented&&l&&(F.preventDefault(),l()))},w),z.useEffect(()=>{if(p)return t&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(Ia=w.body.style.pointerEvents,w.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(p)),d.layers.add(p),Pa(),()=>{t&&d.layersWithOutsidePointerEventsDisabled.size===1&&(w.body.style.pointerEvents=Ia)}},[p,w,t,d]),z.useEffect(()=>()=>{p&&(d.layers.delete(p),d.layersWithOutsidePointerEventsDisabled.delete(p),Pa())},[p,d]),z.useEffect(()=>{const F=()=>y({});return document.addEventListener(zr,F),()=>document.removeEventListener(zr,F)},[]),h.jsx(Ke.div,{...u,ref:M,style:{pointerEvents:j?O?"auto":"none":void 0,...r.style},onFocusCapture:b0(r.onFocusCapture,W.onFocusCapture),onBlurCapture:b0(r.onBlurCapture,W.onBlurCapture),onPointerDownCapture:b0(r.onPointerDownCapture,P.onPointerDownCapture)})});vs.displayName=hc;var vc="DismissableLayerBranch",gc=z.forwardRef((r,e)=>{const t=z.useContext(ps),a=z.useRef(null),n=R0(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})});gc.displayName=vc;function bc(r,e=globalThis==null?void 0:globalThis.document){const t=Q0(r),a=z.useRef(!1),n=z.useRef(()=>{});return z.useEffect(()=>{const s=l=>{if(l.target&&!a.current){let u=function(){gs(fc,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 xc(r,e=globalThis==null?void 0:globalThis.document){const t=Q0(r),a=z.useRef(!1);return z.useEffect(()=>{const n=s=>{s.target&&!a.current&&gs(pc,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 Pa(){const r=new CustomEvent(zr);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?dc(n,s):n.dispatchEvent(s)}var tr="focusScope.autoFocusOnMount",rr="focusScope.autoFocusOnUnmount",Oa={bubbles:!1,cancelable:!0},yc="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=Q0(n),p=Q0(s),g=z.useRef(null),w=R0(e,k=>u(k)),y=z.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;z.useEffect(()=>{if(a){let k=function(j){if(y.paused||!l)return;const O=j.target;l.contains(O)?g.current=O:v0(g.current,{select:!0})},T=function(j){if(y.paused||!l)return;const O=j.relatedTarget;O!==null&&(l.contains(O)||v0(g.current,{select:!0}))},A=function(j){if(document.activeElement===document.body)for(const P of j)P.removedNodes.length>0&&v0(l)};document.addEventListener("focusin",k),document.addEventListener("focusout",T);const E=new MutationObserver(A);return l&&E.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",k),document.removeEventListener("focusout",T),E.disconnect()}}},[a,l,y.paused]),z.useEffect(()=>{if(l){qa.add(y);const k=document.activeElement;if(!l.contains(k)){const A=new CustomEvent(tr,Oa);l.addEventListener(tr,d),l.dispatchEvent(A),A.defaultPrevented||(wc(zc(xs(l)),{select:!0}),document.activeElement===k&&v0(l))}return()=>{l.removeEventListener(tr,d),setTimeout(()=>{const A=new CustomEvent(rr,Oa);l.addEventListener(rr,p),l.dispatchEvent(A),A.defaultPrevented||v0(k??document.body,{select:!0}),l.removeEventListener(rr,p),qa.remove(y)},0)}}},[l,d,p,y]);const M=z.useCallback(k=>{if(!t&&!a||y.paused)return;const T=k.key==="Tab"&&!k.altKey&&!k.ctrlKey&&!k.metaKey,A=document.activeElement;if(T&&A){const E=k.currentTarget,[j,O]=Sc(E);j&&O?!k.shiftKey&&A===O?(k.preventDefault(),t&&v0(j,{select:!0})):k.shiftKey&&A===j&&(k.preventDefault(),t&&v0(O,{select:!0})):A===E&&k.preventDefault()}},[t,a,y.paused]);return h.jsx(Ke.div,{tabIndex:-1,...o,ref:w,onKeyDown:M})});bs.displayName=yc;function wc(r,{select:e=!1}={}){const t=document.activeElement;for(const a of r)if(v0(a,{select:e}),document.activeElement!==t)return}function Sc(r){const e=xs(r),t=Fa(e,r),a=Fa(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 Fa(r,e){for(const t of r)if(!kc(t,{upTo:e}))return t}function kc(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 Cc(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&&Cc(r)&&e&&r.select()}}var qa=Mc();function Mc(){let r=[];return{add(e){const t=r[0];e!==t&&(t==null||t.pause()),r=Ha(r,e),r.unshift(e)},remove(e){var t;r=Ha(r,e),(t=r[0])==null||t.resume()}}}function Ha(r,e){const t=[...r],a=t.indexOf(e);return a!==-1&&t.splice(a,1),t}function zc(r){return r.filter(e=>e.tagName!=="A")}var Tc="Portal",ys=z.forwardRef((r,e)=>{var l;const{container:t,...a}=r,[n,s]=z.useState(!1);J0(()=>s(!0),[]);const o=t||n&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return o?Dn.createPortal(h.jsx(Ke.div,{...a,ref:e}),o):null});ys.displayName=Tc;function Nc(r,e){return z.useReducer((t,a)=>e[t][a]??t,r)}var Ot=r=>{const{present:e,children:t}=r,a=Ac(e),n=typeof t=="function"?t({present:a.isPresent}):z.Children.only(t),s=R0(a.ref,Dc(n));return typeof t=="function"||a.isPresent?z.cloneElement(n,{ref:s}):null};Ot.displayName="Presence";function Ac(r){const[e,t]=z.useState(),a=z.useRef(null),n=z.useRef(r),s=z.useRef("none"),o=r?"mounted":"unmounted",[l,u]=Nc(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return z.useEffect(()=>{const d=mt(a.current);s.current=l==="mounted"?d:"none"},[l]),J0(()=>{const d=a.current,p=n.current;if(p!==r){const w=s.current,y=mt(d);r?u("MOUNT"):y==="none"||(d==null?void 0:d.display)==="none"?u("UNMOUNT"):u(p&&w!==y?"ANIMATION_OUT":"UNMOUNT"),n.current=r}},[r,u]),J0(()=>{if(e){let d;const p=e.ownerDocument.defaultView??window,g=y=>{const k=mt(a.current).includes(CSS.escape(y.animationName));if(y.target===e&&k&&(u("ANIMATION_END"),!n.current)){const T=e.style.animationFillMode;e.style.animationFillMode="forwards",d=p.setTimeout(()=>{e.style.animationFillMode==="forwards"&&(e.style.animationFillMode=T)})}},w=y=>{y.target===e&&(s.current=mt(a.current))};return e.addEventListener("animationstart",w),e.addEventListener("animationcancel",g),e.addEventListener("animationend",g),()=>{p.clearTimeout(d),e.removeEventListener("animationstart",w),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 mt(r){return(r==null?void 0:r.animationName)||"none"}function Dc(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 ar=0;function Ec(){z.useEffect(()=>{const r=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",r[0]??Va()),document.body.insertAdjacentElement("beforeend",r[1]??Va()),ar++,()=>{ar===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),ar--}},[])}function Va(){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 Rc(r,e,t){if(t||arguments.length===2)for(var a=0,n=e.length,s;a<n;a++)(s||!(a in e))&&(s||(s=Array.prototype.slice.call(e,0,a)),s[a]=e[a]);return r.concat(s||Array.prototype.slice.call(e))}var zt="right-scroll-bar-position",Tt="width-before-scroll-bar",Lc="with-scroll-bars-hidden",Bc="--removed-body-scroll-bar-size";function nr(r,e){return typeof r=="function"?r(e):r&&(r.current=e),r}function jc(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 Ic=typeof window<"u"?z.useLayoutEffect:z.useEffect,_a=new WeakMap;function Pc(r,e){var t=jc(null,function(a){return r.forEach(function(n){return nr(n,a)})});return Ic(function(){var a=_a.get(t);if(a){var n=new Set(a),s=new Set(r),o=t.current;n.forEach(function(l){s.has(l)||nr(l,null)}),s.forEach(function(l){n.has(l)||nr(l,o)})}_a.set(t,r)},[r]),t}function Oc(r){return r}function Fc(r,e){e===void 0&&(e=Oc);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 p=o;o=[],p.forEach(s)},d=function(){return Promise.resolve().then(u)};d(),t={push:function(p){o.push(p),d()},filter:function(p){return o=o.filter(p),t}}}};return n}function qc(r){r===void 0&&(r={});var e=Fc(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 Hc(r,e){return r.useMedium(e),Ss}var ks=qc(),sr=function(){},Ft=z.forwardRef(function(r,e){var t=z.useRef(null),a=z.useState({onScrollCapture:sr,onWheelCapture:sr,onTouchMoveCapture:sr}),n=a[0],s=a[1],o=r.forwardProps,l=r.children,u=r.className,d=r.removeScrollBar,p=r.enabled,g=r.shards,w=r.sideCar,y=r.noRelative,M=r.noIsolation,k=r.inert,T=r.allowPinchZoom,A=r.as,E=A===void 0?"div":A,j=r.gapMode,O=ws(r,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),P=w,W=Pc([t,e]),F=Xe(Xe({},O),n);return z.createElement(z.Fragment,null,p&&z.createElement(P,{sideCar:ks,removeScrollBar:d,shards:g,noRelative:y,noIsolation:M,inert:k,setCallbacks:s,allowPinchZoom:!!T,lockRef:t,gapMode:j}),o?z.cloneElement(z.Children.only(l),Xe(Xe({},F),{ref:W})):z.createElement(E,Xe({},F,{className:u,ref:W}),l))});Ft.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Ft.classNames={fullWidth:Tt,zeroRight:zt};var Vc=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function _c(){if(!document)return null;var r=document.createElement("style");r.type="text/css";var e=Vc();return e&&r.setAttribute("nonce",e),r}function Gc(r,e){r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}function Uc(r){var e=document.head||document.getElementsByTagName("head")[0];e.appendChild(r)}var $c=function(){var r=0,e=null;return{add:function(t){r==0&&(e=_c())&&(Gc(e,t),Uc(e)),r++},remove:function(){r--,!r&&e&&(e.parentNode&&e.parentNode.removeChild(e),e=null)}}},Wc=function(){var r=$c();return function(e,t){z.useEffect(function(){return r.add(e),function(){r.remove()}},[e&&t])}},Cs=function(){var r=Wc(),e=function(t){var a=t.styles,n=t.dynamic;return r(a,n),null};return e},Xc={left:0,top:0,right:0,gap:0},or=function(r){return parseInt(r||"",10)||0},Yc=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[or(t),or(a),or(n)]},Zc=function(r){if(r===void 0&&(r="margin"),typeof window>"u")return Xc;var e=Yc(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])}},Kc=Cs(),q0="data-scroll-locked",Jc=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(
|
|
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 Hi=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}}),Vi=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"}}),Gi=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"),Ui=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"),Wi=A("h-1 bg-[var(--color-gray-200)] rounded-full origin-left"),$i=A("flex flex-col gap-[4px] grow items-start p-4 min-w-0"),Xi=A("font-medium text-[14px] leading-[20px] text-[var(--color-blue-1000)]"),Yi=A("text-[12px] leading-[16px] text-[var(--color-gray-600)]"),Zi=A("px-4 overflow-hidden flex items-center w-[56px] relative"),Ki=A("absolute w-6 h-6 text-[var(--color-blue-800)]"),Ji=A("w-6 h-6 text-[var(--color-gray-200)]"),Qi=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"}}),el=A("w-4 h-4 shrink-0 text-[var(--color-red-1000)] transition-transform duration-300 group-hover:scale-110"),tl={rest:{scaleX:1},hover:{scaleX:[0,1]}},rl={rest:{x:0},hover:{x:4}},al={rest:{x:-20,opacity:0},hover:{x:0,opacity:1}},nl={rest:{x:0,opacity:1},hover:{x:20,opacity:0}},sl=[100,66,75,50],qn=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:el()})}):f.jsx("div",{className:Kt({status:h}),children:f.jsx("div",{className:Gi(),children:f.jsx(be.motion.div,{className:Ui(),variants:{rest:{},hover:{transition:{staggerChildren:.1}}},children:sl.map((B,F)=>f.jsx(be.motion.div,{className:Wi(),style:{width:`${B}%`},variants:tl,transition:{duration:.4,ease:"easeInOut"}},F))})})}),E=()=>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:Qi({status:"error"})})}):f.jsxs(f.Fragment,{children:[f.jsx(be.motion.div,{className:Ki(),variants:al,transition:{duration:.3,ease:"backOut"},children:f.jsx(p.ArrowUp,{size:24,className:"rotate-90"})}),f.jsx(be.motion.div,{className:Ji(),variants:nl,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(Hi({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:Vi({status:h}),children:f.jsx("div",{className:_i({status:h})})}),N(),f.jsxs(be.motion.div,{className:$i(),variants:rl,children:[f.jsx("p",{className:Xi(),title:r,children:r}),f.jsx("p",{className:Yi(),title:e,children:e})]}),f.jsx("div",{className:Zi(),children:E()})]})});qn.displayName="ArtifactCard";const ol=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"}}),il=A("text-[var(--color-gray-600)] flex items-center justify-center"),Hn=({items:r,separator:e=f.jsx(p.ChevronRight,{size:16}),className:t,size:a="medium"})=>f.jsx("nav",{"aria-label":"Breadcrumb",className:W(ol({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:il(),"aria-hidden":"true",children:e})]},`${n.label}-${s}`)})})}),ll=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)]"},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(ll({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 cl=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"}}),ul=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"}}),dl=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 Vn=(r=>(r.Uploading="uploading",r.Processing="processing",r.Done="done",r.Error="error",r))(Vn||{});const _n=({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(cl({status:d}),n),children:[(s||o)&&f.jsx(be.motion.div,{className:dl({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:ul({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)]"})})]})},ml=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"}}),hl=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"}}),fl="sr-only peer",Gn=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:ml({size:s,className:r}),children:[f.jsx("input",{type:"checkbox",className:fl,ref:u,checked:g?e:void 0,defaultChecked:g?void 0:t,onChange:w,disabled:o,...l}),f.jsx("span",{className:hl({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})]})});Gn.displayName="Checkbox";function pl(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 vl=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}}),gl=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}}),bl=A("px-3 py-1 text-[0.625rem] font-bold text-[var(--color-gray-600)] uppercase tracking-wider select-none"),yl=A("h-px bg-[var(--color-gray-200)] my-1"),Un=V.createContext(void 0),jt=()=>{const r=V.useContext(Un);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 pl(h,x),f.jsx(Un.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(vl({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(gl({active:e,variant:t}),r),onClick:d,role:"menuitem",...o,children:n})});Gr.displayName="DropdownItem";const xl=V.forwardRef(({className:r,children:e,...t},a)=>f.jsx("div",{ref:a,className:W(bl(),r),...t,children:e}));xl.displayName="DropdownLabel";const wl=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(yl(),r),...a}));wl.displayName="DropdownSeparator";const Sl=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"}}),kl=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"}}),Wn=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:kl({size:t}),children:[a&&f.jsx("span",{className:ka({status:e,size:t,position:"start"}),children:a}),f.jsx("input",{ref:l,className:W(Sl({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})]})});Wn.displayName="Input";const Cl=A("flex flex-col items-center justify-center"),Ml=A("relative",{variants:{size:{sm:"w-8 h-8",md:"w-12 h-12",lg:"w-16 h-16"}},defaultVariants:{size:"lg"}}),zl=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"}}),Tl=A("mt-4 typography-small",{variants:{color:{primary:"text-[var(--color-gray-1000)]",muted:"text-[var(--color-gray-600)]"}},defaultVariants:{color:"muted"}}),Al=({size:r="lg",color:e="primary",text:t,textColor:a="muted"})=>f.jsxs("div",{className:Cl(),children:[f.jsx("div",{className:Ml({size:r}),children:f.jsx("div",{className:zl({color:e})})}),t&&f.jsx("p",{className:Tl({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"}}),Nl=A("flex gap-[12px] items-start w-full"),Dl=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}}),El=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"}}),Rl=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"}}),Ll=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"}}),Bl=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}}),Il=A("flex items-start justify-center shrink-0 pt-[4px]"),jl=A("flex items-center justify-center size-[32px] rounded-full bg-[var(--color-blue-1000)]"),Pl=A("text-[12px] text-[var(--color-gray-600)] mt-[4px]"),Ol=A("flex items-center justify-center size-[40px] rounded-full bg-[var(--color-blue-800)]"),Fl=A("relative overflow-hidden flex items-center gap-[8px] py-[2px] select-none"),ql=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"]),Hl=A(["relative shrink-0 flex items-center justify-center","text-[var(--color-gray-600)]","animate-signal-rhythm","origin-center"]),Vl=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(Bl({isCopied:n}),a),onClick:r,type:"button","aria-label":t,children:f.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)},[]),f.jsx("div",{className:W(Ol()),children:f.jsx(qr,{size:28,colorVariant:"white",animated:!0,animationDuration:2},r)})},$n=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,onEdit:x,onHelpful:w,onUnhelpful:M,...k},T)=>{const N=V.useRef(null),[E,B]=V.useState(!1),F=h??(e==="user"?d?"center":"right":"left"),O=async()=>{if(!N.current)return;const P=N.current.innerText;try{navigator.clipboard&&navigator.clipboard.writeText?(await navigator.clipboard.writeText(P),B(!0),He.toast.success("Copied to clipboard"),g==null||g(),setTimeout(()=>{B(!1)},2e3)):(console.warn("Clipboard API not available"),He.toast.error("Clipboard API not available"))}catch(I){console.error("Failed to copy:",I),He.toast.error("Failed to copy to clipboard")}},X=P=>{const I=typeof P=="string"?new Date(P):P,ce=new Date().getTime()-I.getTime(),ne=Math.floor(ce/6e4);if(ne<1)return"Just now";if(ne<60)return`${ne} min ago`;const te=Math.floor(ne/60);return te<24?`${te}h ago`:I.toLocaleDateString()};return e==="loader"||n?f.jsx("div",{ref:T,className:W(Ca({variant:"loader",alignment:"left"}),r),...k,children:f.jsx("div",{className:W(Ma({variant:"loader",isSticky:u})),children:f.jsx(_l,{})})}):f.jsx("div",{ref:T,className:W(Ca({variant:e,alignment:F}),"group",r),...k,children:f.jsxs("div",{className:W(Nl()),children:[!o&&e==="assistant"&&f.jsx("div",{className:W(Il()),children:f.jsx("div",{className:W(jl()),children:f.jsx(Fr,{size:20,colorVariant:"lightTeal"})})}),f.jsxs("div",{className:W(Dl()),children:[f.jsx("div",{className:W(Ma({variant:e,isSticky:u})),children:f.jsx("div",{className:W(El({variant:e})),ref:N,children:e==="system"?f.jsxs("div",{className:W(Fl()),children:[f.jsx("div",{className:W(ql())}),f.jsxs("div",{className:W(Hl()),children:[f.jsx(p.Activity,{size:16}),f.jsx("div",{className:W(Vl())})]}),f.jsx("span",{className:W(za({variant:e})),children:a})]}):f.jsxs(f.Fragment,{children:[e==="assistant"&&t&&f.jsx("h4",{className:W(Rl()),children:t}),f.jsx("div",{className:W(za({variant:e})),children:a})]})})}),l&&s&&f.jsx("div",{className:W(Pl()),children:X(s)}),!u&&(e==="user"||e==="assistant")&&f.jsxs("div",{className:W(Ll({variant:e})),children:[f.jsx(ut,{onClick:O,icon:E?p.Check:p.Clipboard,label:E?"Copied":"Copy",isCopied:E}),e==="user"&&x&&f.jsx(ut,{onClick:x,icon:p.Edit3,label:"Edit"}),e==="assistant"&&f.jsxs(f.Fragment,{children:[w&&f.jsx(ut,{onClick:w,icon:p.ThumbsUp,label:"Helpful"}),M&&f.jsx(ut,{onClick:M,icon:p.ThumbsDown,label:"Unhelpful"})]})]})]})]})})});$n.displayName="MessageBubble";const Gl=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"}}),Ul=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"}}),Wl=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"}}),Xn=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:Wl({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:Gl({size:n}),children:f.jsx("div",{className:Ul({variant:a}),style:{transform:`translateX(-${100-h}%)`}})})]})});Xn.displayName="ProgressBar";const $l=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}}),Yn=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($l({variant:e,animated:t}),r),style:{background:k,...a},...n})});Yn.displayName="RangeInput";const Xl=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"}}),Yl=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"}}),Zl=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"}}),Zn=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(Xl({type:h,variant:g}),r),role:"button",tabIndex:0,"aria-label":t,onClick:o,onKeyDown:x,...u,children:[e&&f.jsx("div",{className:W(Yl({type:h,variant:g})),children:e}),(s!=="brand"||!a)&&f.jsx("span",{className:W(Zl({type:h,variant:g})),children:t})]})});Zn.displayName="SidebarItem";const Kl=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"}}),Jl=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(Kl({variant:e}),r),...o,children:[n&&f.jsx("img",{src:n,alt:"avatar",className:Jl()}),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 Ql=A("inline-flex h-8 items-center justify-start rounded-none bg-transparent p-0 text-muted-foreground w-full relative"),e1=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"}}),t1=A("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2"),r1=A("absolute bottom-0 left-0 right-0 h-[2px] bg-[var(--color-blue-1000)]"),a1=A("flex items-center gap-[2px]"),Aa=A("group-data-[state=active]:text-[var(--color-blue-1000)]"),n1=D0.Root,Kn=z.forwardRef(({className:r,...e},t)=>f.jsx(D0.List,{ref:t,className:W(Ql(),r),...e}));Kn.displayName=D0.List.displayName;const Jn=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(e1(),r),...n,children:[e,(a!==void 0||t!==void 0)&&f.jsxs("div",{className:a1(),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:r1(),initial:!1,animate:{scaleX:o?1:0,opacity:o?1:0},transition:{duration:.3,ease:"easeInOut"},style:{originX:0}})]})});Jn.displayName=D0.Trigger.displayName;const Qn=z.forwardRef(({className:r,...e},t)=>f.jsx(D0.Content,{ref:t,className:W(t1(),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})}));Qn.displayName=D0.Content.displayName;const s1=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"}}),o1=A("relative w-full",{variants:{size:{medium:"",small:"",tiny:""}},defaultVariants:{size:"medium"}}),es=V.forwardRef(({className:r,status:e="default",size:t="medium",resize:a="vertical",disabled:n,...s},o)=>f.jsx("div",{className:o1({size:t}),children:f.jsx("textarea",{ref:o,className:W(s1({status:e,size:t,resize:a}),r),disabled:n,...s})}));es.displayName="TextArea";const i1=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"}}),l1=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"}}),c1=(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),E=(B,F)=>{const O=B===1?"":"s";return h?`in ${B} ${F}${O}`:`${B} ${F}${O} ago`};return g<60?"just now":x<60?E(x,"minute"):w<24?E(w,"hour"):M===1?h?"tomorrow":"yesterday":M<7?E(M,"day"):k<4?E(k,"week"):T<12?E(T,"month"):E(N,"year")},u1=(r,e,t)=>{switch(e){case"relative":return c1(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)}},d1=r=>r instanceof Date?r:typeof r=="number"?new Date(r):new Date(r),ts=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(()=>d1(e),[e]),h=V.useMemo(()=>u1(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(i1({size:a,variant:n}),r),...l,children:[s&&f.jsx("span",{className:l1({size:a}),children:f.jsx(p.ClockHistory,{size:w,color:x})}),h]})});ts.displayName="Timestamp";const m1=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"}}),h1=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"}}),f1=A("flex items-center gap-1 flex-1"),p1=A("font-bold text-[var(--color-blue-1000)] text-[0.75rem] leading-normal"),v1=A("font-normal text-[var(--color-blue-1000)] text-[0.75rem] leading-normal"),g1=A("flex items-center gap-2 shrink-0"),b1=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"}}),y1=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"),x1={info:p.Info,success:p.CheckCircle,warning:p.TriangleAlert,error:p.AlertCircle,prompt:p.Sparks},w1={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=x1[e],d=w1[e],h=()=>{l&&l(),r&&He.toast.dismiss(r)},g=w=>M=>{w(M),r&&He.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(m1({variant:e})),role:"alert",children:[f.jsx("div",{className:h1({variant:e}),children:x()}),f.jsxs("div",{className:f1(),children:[f.jsx("span",{className:p1(),children:t}),a&&f.jsx("span",{className:v1(),children:a})]}),f.jsx("div",{className:b1({variant:e})}),f.jsxs("div",{className:g1(),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:y1(),"aria-label":"Close",children:f.jsx(p.X,{size:16})})]})]})},S1=r=>f.jsx(He.Toaster,{position:"bottom-right",toastOptions:{unstyled:!0,classNames:{toast:"bg-transparent p-0 w-full"}},...r}),k1={success:(r,e,t)=>He.toast.custom(a=>f.jsx(T0,{id:a,variant:"success",title:r,description:e,action:t})),error:(r,e,t)=>He.toast.custom(a=>f.jsx(T0,{id:a,variant:"error",title:r,description:e,action:t})),warning:(r,e,t)=>He.toast.custom(a=>f.jsx(T0,{id:a,variant:"warning",title:r,description:e,action:t})),info:(r,e,t)=>He.toast.custom(a=>f.jsx(T0,{id:a,variant:"info",title:r,description:e,action:t})),prompt:(r,e,t,a)=>He.toast.custom(n=>f.jsx(T0,{id:n,variant:"prompt",title:r,description:e,action:t,secondaryAction:a})),custom:r=>He.toast.custom(e=>f.jsx(T0,{id:e,...r}))},C1=A("flex items-center gap-3"),M1=A("text-[var(--color-gray-1000)] font-medium select-none"),z1=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}}),T1=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}}),rs=V.forwardRef(({enabled:r,onChange:e,label:t,className:a,disabled:n,...s},o)=>f.jsxs("div",{className:W(C1(),a),children:[t&&f.jsx(o0,{variant:"small",className:M1(),children:t}),f.jsx("button",{ref:o,type:"button",role:"switch","aria-checked":r,disabled:n,onClick:()=>!n&&e(!r),className:z1({enabled:r}),...s,children:f.jsx("span",{className:T1({enabled:r})})})]}));rs.displayName="Toggle";const A1=A("flex items-center justify-between w-full gap-2 min-h-[20px]"),N1=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"}}),D1={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)"},as=V.forwardRef(({className:r,status:e="neutral",message:t,...a},n)=>{const s=e==="loading"?"info":e,o=D1[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(A1(),r),...a,children:[f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx(Or,{variant:s,size:"small"}),f.jsx("span",{className:N1({status:e}),children:t})]}),f.jsx("div",{className:"w-4 h-4 flex items-center justify-center",children:l()})]})});as.displayName="StatusMessage";const E1=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"}}),R1=A("",{variants:{variant:{default:"fill-[var(--color-blue-1000)]",light:"fill-[var(--color-gray-50)]"}},defaultVariants:{variant:"default"}}),ns=({delayDuration:r=0,...e})=>f.jsx(A0.Provider,{delayDuration:r,...e}),ss=A0.Root,os=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(E1({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:R1({variant:a})})]})})}));Ur.displayName=A0.Content.displayName;const L1=A("relative flex flex-col w-full"),B1=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}}),I1=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"}}),j1=A("box-border flex flex-col gap-[1.25rem] items-start justify-center w-full rounded-[inherit]"),P1=A("flex flex-col gap-5 w-full"),O1=A("flex flex-wrap gap-[8px] items-start w-full"),F1=A("flex items-start justify-between w-full max-h-[200px] overflow-y-auto"),q1=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"}}),H1=A("flex items-center justify-between w-full"),V1=A("flex gap-[8px] items-center"),_1=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"}}),G1=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}}),U1=A("animate-spin"),W1=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)]"),$1=A("flex items-center justify-center"),X1=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"),Y1=A("min-w-[120px]"),Z1=A("py-1.5 px-2"),K1=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"}}),is=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},E)=>{var Oe,Fe;const[B,F]=V.useState(""),[O,X]=V.useState(!1),[P,I]=V.useState(!1),Y=V.useRef(null),ce=V.useRef(null),ne=e!==void 0?e:B,te=ne.trim().length>0,ue=t.length>0,fe=O?"dragOver":ue?"withFiles":P?"active":"default",ve=_=>{x?x(_):F(_)},Me=_=>{ve(_.target.value),$()},$=V.useCallback(()=>{const _=Y.current;_&&(_.style.height="auto",_.style.height=`${Math.min(_.scrollHeight,200)}px`)},[]);V.useEffect(()=>{$()},[ne,$]);const r0=V.useCallback(()=>{a||!te&&!ue||w&&(w(ne,t),ve(""),Y.current&&(Y.current.style.height="auto"))},[a,te,ue,w,ne,t]),Re=_=>{_.key==="Enter"&&!_.shiftKey&&(_.preventDefault(),r0())},Le=_=>{const qe=Array.from(_.target.files||[]);qe.length>0&&M&&M(qe),ce.current&&(ce.current.value="")},Ce=()=>{var _;(_=ce.current)==null||_.click()},se=V.useRef(0),we=_=>{_.preventDefault(),_.stopPropagation(),se.current+=1,se.current===1&&X(!0)},Be=_=>{_.preventDefault(),_.stopPropagation(),se.current-=1,se.current===0&&X(!1)},k0=_=>{_.preventDefault(),_.stopPropagation()},oe=_=>{_.preventDefault(),_.stopPropagation(),se.current=0,X(!1);const qe=Array.from(_.dataTransfer.files);qe.length>0&&M&&M(qe)},Ue=_=>{k&&k(_)};return f.jsxs("div",{ref:E,className:W(L1(),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:K1(),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:B1({state:fe,variant:l,isMagicActive:N}),onDragEnter:we,onDragLeave:Be,onDragOver:k0,onDrop:oe,children:[f.jsx("div",{className:I1({state:fe,variant:l}),children:f.jsx("div",{className:j1(),children:f.jsxs("div",{className:P1(),children:[ue&&f.jsx("div",{className:O1(),children:t.map(_=>f.jsx(_n,{filename:_.filename,status:_.status,progress:_.progress,onDelete:()=>Ue(_.id)},_.id))}),f.jsx("div",{className:F1(),children:f.jsx("textarea",{ref:Y,className:q1({state:fe}),placeholder:r,value:ne,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:H1(),children:[f.jsxs("div",{className:V1(),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(ns,{children:f.jsxs(ss,{children:[f.jsx(os,{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:_1(),children:[d.length>0&&f.jsxs(Hr,{children:[f.jsx(Vr,{children:f.jsxs("button",{type:"button",className:X1(),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:Y1(),children:d.map(_=>f.jsx(Gr,{active:_.id===h,onClick:()=>T==null?void 0:T(_.id),className:Z1(),children:f.jsx(o0,{variant:"tiny",color:"inherit",as:"span",children:_.name})},_.id))})]}),f.jsx("button",{type:"button",onClick:r0,className:G1({disabled:a||g||!te&&!ue}),disabled:a||g||!te&&!ue,"aria-label":g?"Loading":"Send message",tabIndex:0,children:g?f.jsx(p.Loader,{size:16,color:"currentColor",className:U1()}):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:W1(),children:[f.jsx("div",{className:$1(),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:ce,type:"file",multiple:!0,onChange:Le,className:"hidden","aria-hidden":"true"})]})]})});is.displayName="ChatInput";const J1=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)]"),Q1=A("flex items-center gap-[12px] h-[24px]"),ec=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"),tc=A("flex items-center gap-[8px]"),rc=A("flex items-center"),ls=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(J1(),r),...l,children:[f.jsx(Hn,{items:e,size:"medium"}),f.jsx("div",{className:Q1(),children:f.jsxs("div",{className:ec(),children:[(t.length>0||o>0)&&f.jsxs("div",{className:tc(),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:rc(),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})})]})})]}));ls.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 cs(...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(cs(...r),r)}function ac(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 nc(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,sc(n,...e)]}function sc(...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:()=>{},oc=z[" useId ".trim().toString()]||(()=>{}),ic=0;function Qt(r){const[e,t]=z.useState(oc());return K0(()=>{t(a=>a??String(ic++))},[r]),r||(e?`radix-${e}`:"")}var lc=z[" useInsertionEffect ".trim().toString()]||K0;function cc({prop:r,defaultProp:e,onChange:t=()=>{},caller:a}){const[n,s,o]=uc({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=dc(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 uc({defaultProp:r,onChange:e}){const[t,a]=z.useState(r),n=z.useRef(t),s=z.useRef(e);return lc(()=>{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 dc(r){return typeof r=="function"}function us(r){const e=mc(r),t=z.forwardRef((a,n)=>{const{children:s,...o}=a,l=z.Children.toArray(s),u=l.find(fc);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 mc(r){const e=z.forwardRef((t,a)=>{const{children:n,...s}=t;if(z.isValidElement(n)){const o=vc(n),l=pc(s,n.props);return n.type!==z.Fragment&&(l.ref=a?cs(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 hc=Symbol("radix.slottable");function fc(r){return z.isValidElement(r)&&typeof r.type=="function"&&"__radixId"in r.type&&r.type.__radixId===hc}function pc(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 vc(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 gc=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Je=gc.reduce((r,e)=>{const t=us(`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 bc(r,e){r&&Go.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 yc(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 xc="DismissableLayer",Mr="dismissableLayer.update",wc="dismissableLayer.pointerDownOutside",Sc="dismissableLayer.focusOutside",Ra,ds=z.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ms=z.forwardRef((r,e)=>{const{disableOutsidePointerEvents:t=!1,onEscapeKeyDown:a,onPointerDownOutside:n,onFocusOutside:s,onInteractOutside:o,onDismiss:l,...u}=r,d=z.useContext(ds),[h,g]=z.useState(null),x=(h==null?void 0:h.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,w]=z.useState({}),M=E0(e,P=>g(P)),k=Array.from(d.layers),[T]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),N=k.indexOf(T),E=h?k.indexOf(h):-1,B=d.layersWithOutsidePointerEventsDisabled.size>0,F=E>=N,O=Mc(P=>{const I=P.target,Y=[...d.branches].some(ce=>ce.contains(I));!F||Y||(n==null||n(P),o==null||o(P),P.defaultPrevented||l==null||l())},x),X=zc(P=>{const I=P.target;[...d.branches].some(ce=>ce.contains(I))||(s==null||s(P),o==null||o(P),P.defaultPrevented||l==null||l())},x);return yc(P=>{E===d.layers.size-1&&(a==null||a(P),!P.defaultPrevented&&l&&(P.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 P=()=>w({});return document.addEventListener(Mr,P),()=>document.removeEventListener(Mr,P)},[]),f.jsx(Je.div,{...u,ref:M,style:{pointerEvents:B?F?"auto":"none":void 0,...r.style},onFocusCapture:b0(r.onFocusCapture,X.onFocusCapture),onBlurCapture:b0(r.onBlurCapture,X.onBlurCapture),onPointerDownCapture:b0(r.onPointerDownCapture,O.onPointerDownCapture)})});ms.displayName=xc;var kc="DismissableLayerBranch",Cc=z.forwardRef((r,e)=>{const t=z.useContext(ds),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(Je.div,{...r,ref:n})});Cc.displayName=kc;function Mc(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(){hs(wc,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 zc(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&&hs(Sc,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 hs(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?bc(n,s):n.dispatchEvent(s)}var er="focusScope.autoFocusOnMount",tr="focusScope.autoFocusOnUnmount",Ba={bubbles:!1,cancelable:!0},Tc="FocusScope",fs=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 F=B.target;l.contains(F)?g.current=F:v0(g.current,{select:!0})},T=function(B){if(w.paused||!l)return;const F=B.relatedTarget;F!==null&&(l.contains(F)||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 E=new MutationObserver(N);return l&&E.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",k),document.removeEventListener("focusout",T),E.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||(Ac(Lc(ps(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 E=k.currentTarget,[B,F]=Nc(E);B&&F?!k.shiftKey&&N===F?(k.preventDefault(),t&&v0(B,{select:!0})):k.shiftKey&&N===B&&(k.preventDefault(),t&&v0(F,{select:!0})):N===E&&k.preventDefault()}},[t,a,w.paused]);return f.jsx(Je.div,{tabIndex:-1,...o,ref:x,onKeyDown:M})});fs.displayName=Tc;function Ac(r,{select:e=!1}={}){const t=document.activeElement;for(const a of r)if(v0(a,{select:e}),document.activeElement!==t)return}function Nc(r){const e=ps(r),t=Ia(e,r),a=Ia(e.reverse(),r);return[t,a]}function ps(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(!Dc(t,{upTo:e}))return t}function Dc(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 Ec(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&&Ec(r)&&e&&r.select()}}var ja=Rc();function Rc(){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 Lc(r){return r.filter(e=>e.tagName!=="A")}var Bc="Portal",vs=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?zn.createPortal(f.jsx(Je.div,{...a,ref:e}),o):null});vs.displayName=Bc;function Ic(r,e){return z.useReducer((t,a)=>e[t][a]??t,r)}var Pt=r=>{const{present:e,children:t}=r,a=jc(e),n=typeof t=="function"?t({present:a.isPresent}):z.Children.only(t),s=E0(a.ref,Pc(n));return typeof t=="function"||a.isPresent?z.cloneElement(n,{ref:s}):null};Pt.displayName="Presence";function jc(r){const[e,t]=z.useState(),a=z.useRef(null),n=z.useRef(r),s=z.useRef("none"),o=r?"mounted":"unmounted",[l,u]=Ic(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 Pc(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 Oc(){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 Ye=function(){return Ye=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},Ye.apply(this,arguments)};function gs(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 Fc(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",qc="with-scroll-bars-hidden",Hc="--removed-body-scroll-bar-size";function ar(r,e){return typeof r=="function"?r(e):r&&(r.current=e),r}function Vc(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 _c=typeof window<"u"?z.useLayoutEffect:z.useEffect,Fa=new WeakMap;function Gc(r,e){var t=Vc(null,function(a){return r.forEach(function(n){return ar(n,a)})});return _c(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 Uc(r){return r}function Wc(r,e){e===void 0&&(e=Uc);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 $c(r){r===void 0&&(r={});var e=Wc(null);return e.options=Ye({async:!0,ssr:!1},r),e}var bs=function(r){var e=r.sideCar,t=gs(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,Ye({},t))};bs.isSideCarExport=!0;function Xc(r,e){return r.useMedium(e),bs}var ys=$c(),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,E=N===void 0?"div":N,B=r.gapMode,F=gs(r,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),O=x,X=Gc([t,e]),P=Ye(Ye({},F),n);return z.createElement(z.Fragment,null,h&&z.createElement(O,{sideCar:ys,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),Ye(Ye({},P),{ref:X})):z.createElement(E,Ye({},P,{className:u,ref:X}),l))});Ot.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Ot.classNames={fullWidth:zt,zeroRight:Mt};var Yc=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Zc(){if(!document)return null;var r=document.createElement("style");r.type="text/css";var e=Yc();return e&&r.setAttribute("nonce",e),r}function Kc(r,e){r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}function Jc(r){var e=document.head||document.getElementsByTagName("head")[0];e.appendChild(r)}var Qc=function(){var r=0,e=null;return{add:function(t){r==0&&(e=Zc())&&(Kc(e,t),Jc(e)),r++},remove:function(){r--,!r&&e&&(e.parentNode&&e.parentNode.removeChild(e),e=null)}}},eu=function(){var r=Qc();return function(e,t){z.useEffect(function(){return r.add(e),function(){r.remove()}},[e&&t])}},xs=function(){var r=eu(),e=function(t){var a=t.styles,n=t.dynamic;return r(a,n),null};return e},tu={left:0,top:0,right:0,gap:0},sr=function(r){return parseInt(r||"",10)||0},ru=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)]},au=function(r){if(r===void 0&&(r="margin"),typeof window>"u")return tu;var e=ru(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])}},nu=xs(),F0="data-scroll-locked",su=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(qc,` {
|
|
28
28
|
overflow: hidden `).concat(a,`;
|
|
29
29
|
padding-right: `).concat(l,"px ").concat(a,`;
|
|
30
30
|
}
|
|
31
|
-
body[`).concat(
|
|
31
|
+
body[`).concat(F0,`] {
|
|
32
32
|
overflow: hidden `).concat(a,`;
|
|
33
33
|
overscroll-behavior: contain;
|
|
34
34
|
`).concat([e&&"position: relative ".concat(a,";"),t==="margin"&&`
|
|
@@ -41,33 +41,33 @@
|
|
|
41
41
|
`),t==="padding"&&"padding-right: ".concat(l,"px ").concat(a,";")].filter(Boolean).join(""),`
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
.`).concat(
|
|
44
|
+
.`).concat(Mt,` {
|
|
45
45
|
right: `).concat(l,"px ").concat(a,`;
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
.`).concat(
|
|
48
|
+
.`).concat(zt,` {
|
|
49
49
|
margin-right: `).concat(l,"px ").concat(a,`;
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
-
.`).concat(
|
|
52
|
+
.`).concat(Mt," .").concat(Mt,` {
|
|
53
53
|
right: 0 `).concat(a,`;
|
|
54
54
|
}
|
|
55
55
|
|
|
56
|
-
.`).concat(
|
|
56
|
+
.`).concat(zt," .").concat(zt,` {
|
|
57
57
|
margin-right: 0 `).concat(a,`;
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
-
body[`).concat(
|
|
61
|
-
`).concat(
|
|
60
|
+
body[`).concat(F0,`] {
|
|
61
|
+
`).concat(Hc,": ").concat(l,`px;
|
|
62
62
|
}
|
|
63
|
-
`)},
|
|
63
|
+
`)},qa=function(){var r=parseInt(document.body.getAttribute(F0)||"0",10);return isFinite(r)?r:0},ou=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())}},[])},iu=function(r){var e=r.noRelative,t=r.noImportant,a=r.gapMode,n=a===void 0?"margin":a;ou();var s=z.useMemo(function(){return au(n)},[n]);return z.createElement(nu,{styles:su(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,lu=function(r){return r.tagName==="TEXTAREA"},ws=function(r,e){if(!(r instanceof Element))return!1;var t=window.getComputedStyle(r);return t[e]!=="hidden"&&!(t.overflowY===t.overflowX&&!lu(r)&&t[e]==="visible")},cu=function(r){return ws(r,"overflowY")},uu=function(r){return ws(r,"overflowX")},Ha=function(r,e){var t=e.ownerDocument,a=e;do{typeof ShadowRoot<"u"&&a instanceof ShadowRoot&&(a=a.host);var n=Ss(r,a);if(n){var s=ks(r,a),o=s[1],l=s[2];if(o>l)return!0}a=a.parentNode}while(a&&a!==t.body);return!1},du=function(r){var e=r.scrollTop,t=r.scrollHeight,a=r.clientHeight;return[e,t,a]},mu=function(r){var e=r.scrollLeft,t=r.scrollWidth,a=r.clientWidth;return[e,t,a]},Ss=function(r,e){return r==="v"?cu(e):uu(e)},ks=function(r,e){return r==="v"?du(e):mu(e)},hu=function(r,e){return r==="h"&&e==="rtl"?-1:1},fu=function(r,e,t,a,n){var s=hu(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=ks(r,l),M=w[0],k=w[1],T=w[2],N=k-T-s*M;(M||N)&&Ss(r,l)&&(g+=N,x+=M);var E=l.parentNode;l=E&&E.nodeType===Node.DOCUMENT_FRAGMENT_NODE?E.host:E}while(!u&&l!==document.body||u&&(e.contains(l)||e===l));return(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},pu=function(r,e){return r[0]===e[0]&&r[1]===e[1]},vu=function(r){return`
|
|
64
64
|
.block-interactivity-`.concat(r,` {pointer-events: none;}
|
|
65
65
|
.allow-interactivity-`).concat(r,` {pointer-events: all;}
|
|
66
|
-
`)},
|
|
66
|
+
`)},gu=0,I0=[];function bu(r){var e=z.useRef([]),t=z.useRef([0,0]),a=z.useRef(),n=z.useState(gu++)[0],s=z.useState(xs)[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=Fc([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),E=t.current,B="deltaX"in k?k.deltaX:E[0]-N[0],F="deltaY"in k?k.deltaY:E[1]-N[1],O,X=k.target,P=Math.abs(B)>Math.abs(F)?"h":"v";if("touches"in k&&P==="h"&&X.type==="range")return!1;var I=Ha(P,X);if(!I)return!0;if(I?O=P:(O=P==="v"?"h":"v",I=Ha(P,X)),!I)return!1;if(!a.current&&"changedTouches"in k&&(B||F)&&(a.current=O),!O)return!0;var Y=a.current||O;return fu(Y,T,k,Y==="h"?B:F)},[]),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),E=e.current.filter(function(O){return O.name===T.type&&(O.target===T.target||T.target===O.shadowParent)&&pu(O.delta,N)})[0];if(E&&E.should){T.cancelable&&T.preventDefault();return}if(!E){var B=(o.current.shards||[]).map(_a).filter(Boolean).filter(function(O){return O.contains(T.target)}),F=B.length>0?l(T,B[0]):!o.current.noIsolation;F&&T.cancelable&&T.preventDefault()}}},[]),d=z.useCallback(function(k,T,N,E){var B={name:k,delta:T,target:N,should:E,shadowParent:yu(N)};e.current.push(B),setTimeout(function(){e.current=e.current.filter(function(F){return F!==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:vu(n)}):null,w?z.createElement(iu,{noRelative:r.noRelative,gapMode:r.gapMode}):null)}function yu(r){for(var e=null;r!==null;)r instanceof ShadowRoot&&(e=r.host,r=r.host),r=r.parentNode;return e}const xu=Xc(ys,bu);var Cs=z.forwardRef(function(r,e){return z.createElement(Ot,Ye({},r,{ref:e,sideCar:xu}))});Cs.classNames=Ot.classNames;var wu=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,Ms=function(r){return r&&(r.host||Ms(r.parentNode))},Su=function(r,e){return e.map(function(t){if(r.contains(t))return t;var a=Ms(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})},ku=function(r,e,t,a){var n=Su(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={})}},Cu=function(r,e,t){t===void 0&&(t="data-aria-hidden");var a=Array.from(Array.isArray(r)?r:[r]),n=wu(r);return n?(a.push.apply(a,Array.from(n.querySelectorAll("[aria-live], script"))),ku(a,n,t,"aria-hidden")):function(){return null}},Ft="Dialog",[zs]=nc(Ft),[Mu,$e]=zs(Ft),Ts=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]=cc({prop:a,defaultProp:n??!1,onChange:s,caller:Ft});return f.jsx(Mu,{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})};Ts.displayName=Ft;var As="DialogTrigger",zu=z.forwardRef((r,e)=>{const{__scopeDialog:t,...a}=r,n=$e(As,t),s=E0(e,n.triggerRef);return f.jsx(Je.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)})});zu.displayName=As;var Wr="DialogPortal",[Tu,Ns]=zs(Wr,{forceMount:void 0}),Ds=r=>{const{__scopeDialog:e,forceMount:t,children:a,container:n}=r,s=$e(Wr,e);return f.jsx(Tu,{scope:e,forceMount:t,children:z.Children.map(a,o=>f.jsx(Pt,{present:t||s.open,children:f.jsx(vs,{asChild:!0,container:n,children:o})}))})};Ds.displayName=Wr;var Nt="DialogOverlay",Es=z.forwardRef((r,e)=>{const t=Ns(Nt,r.__scopeDialog),{forceMount:a=t.forceMount,...n}=r,s=$e(Nt,r.__scopeDialog);return s.modal?f.jsx(Pt,{present:a||s.open,children:f.jsx(Nu,{...n,ref:e})}):null});Es.displayName=Nt;var Au=us("DialogOverlay.RemoveScroll"),Nu=z.forwardRef((r,e)=>{const{__scopeDialog:t,...a}=r,n=$e(Nt,t);return f.jsx(Cs,{as:Au,allowPinchZoom:!0,shards:[n.contentRef],children:f.jsx(Je.div,{"data-state":Xr(n.open),...a,ref:e,style:{pointerEvents:"auto",...a.style}})})}),N0="DialogContent",Rs=z.forwardRef((r,e)=>{const t=Ns(N0,r.__scopeDialog),{forceMount:a=t.forceMount,...n}=r,s=$e(N0,r.__scopeDialog);return f.jsx(Pt,{present:a||s.open,children:s.modal?f.jsx(Du,{...n,ref:e}):f.jsx(Eu,{...n,ref:e})})});Rs.displayName=N0;var Du=z.forwardRef((r,e)=>{const t=$e(N0,r.__scopeDialog),a=z.useRef(null),n=E0(e,t.contentRef,a);return z.useEffect(()=>{const s=a.current;if(s)return Cu(s)},[]),f.jsx(Ls,{...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())})}),Eu=z.forwardRef((r,e)=>{const t=$e(N0,r.__scopeDialog),a=z.useRef(!1),n=z.useRef(!1);return f.jsx(Ls,{...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()}})}),Ls=z.forwardRef((r,e)=>{const{__scopeDialog:t,trapFocus:a,onOpenAutoFocus:n,onCloseAutoFocus:s,...o}=r,l=$e(N0,t),u=z.useRef(null),d=E0(e,u);return Oc(),f.jsxs(f.Fragment,{children:[f.jsx(fs,{asChild:!0,loop:!0,trapped:a,onMountAutoFocus:n,onUnmountAutoFocus:s,children:f.jsx(ms,{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(Ru,{titleId:l.titleId}),f.jsx(Bu,{contentRef:u,descriptionId:l.descriptionId})]})]})}),$r="DialogTitle",Bs=z.forwardRef((r,e)=>{const{__scopeDialog:t,...a}=r,n=$e($r,t);return f.jsx(Je.h2,{id:n.titleId,...a,ref:e})});Bs.displayName=$r;var Is="DialogDescription",js=z.forwardRef((r,e)=>{const{__scopeDialog:t,...a}=r,n=$e(Is,t);return f.jsx(Je.p,{id:n.descriptionId,...a,ref:e})});js.displayName=Is;var Ps="DialogClose",Os=z.forwardRef((r,e)=>{const{__scopeDialog:t,...a}=r,n=$e(Ps,t);return f.jsx(Je.button,{type:"button",...a,ref:e,onClick:b0(r.onClick,()=>n.onOpenChange(!1))})});Os.displayName=Ps;function Xr(r){return r?"open":"closed"}var Fs="DialogTitleWarning",[t5,qs]=ac(Fs,{contentName:N0,titleName:$r,docsSlug:"dialog"}),Ru=({titleId:r})=>{const e=qs(Fs),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},zu="DialogDescriptionWarning",Tu=({contentRef:r,descriptionId:e})=>{const a=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Gs(zu).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},Nu=Es,Au=Bs,Du=js,Eu=Is,Xa=Os,Ru=qs,Lu=Vs,Bu=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"}),ju="VisuallyHidden",Us=z.forwardRef((r,e)=>h.jsx(Ke.span,{...r,ref:e,style:{...Bu,...r.style}}));Us.displayName=ju;var Iu=Us;const Pu=N("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"),Ou=N("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"}}),Fu=N("flex flex-col gap-2 items-start justify-center w-full"),qu=N("flex items-start justify-between w-full pr-6"),Hu=N("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"),Vu=N("font-semibold text-[16px] leading-[24px] text-[var(--color-blue-1000)] w-full"),_u=N("font-normal text-[16px] leading-[24px] text-[var(--color-blue-1000)] w-full"),Gu=N("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"}}),Uu=N("flex gap-2 items-start w-full"),$s=({open:r,onOpenChange:e,title:t,description:a,showCloseButton:n=!0,closeIcon:s,children:o,primaryAction:l,secondaryAction:u,closeOnClickOutside:d=!0,closeOnEsc:p=!0,onClose:g,className:w,overlayClassName:y,contentClassName:M,headerClassName:k,footerClassName:T,size:A="md"})=>{const E=V.useId(),j=V.useId(),O=V.useRef(null),P=V.useRef(null),W=V.useCallback(ce=>{e(ce),ce||g==null||g()},[e,g]),F=V.useCallback(async()=>{l!=null&&l.onClick&&await l.onClick()},[l]),L=V.useCallback(async()=>{u!=null&&u.onClick&&await u.onClick()},[u]),X=V.useCallback(ce=>{p||ce.preventDefault()},[p]),de=V.useCallback(ce=>{d||ce.preventDefault()},[d]),ie=t||a,ae=l||u;return h.jsx(Nu,{open:r,onOpenChange:W,children:h.jsxs(Au,{children:[h.jsx(Du,{className:Y(Pu(),y)}),h.jsxs(Eu,{className:Y(Ou({size:A}),w),onEscapeKeyDown:X,onPointerDownOutside:de,"aria-labelledby":E,"aria-describedby":a?j:void 0,children:[!t&&h.jsx(Xa,{asChild:!0,children:h.jsx(Iu,{id:E,children:"Modal dialog"})}),n&&h.jsx(Lu,{asChild:!0,children:h.jsx("button",{className:Hu(),"aria-label":"Close modal",children:s||h.jsx(f.X,{size:16,color:"currentColor"})})}),ie&&h.jsxs("div",{className:Y(Fu(),k),children:[h.jsx("div",{className:qu(),children:h.jsx("div",{className:"flex items-center gap-2 flex-1",children:t&&h.jsx(Xa,{id:E,className:Vu(),children:t})})}),a&&h.jsx(Ru,{id:j,className:_u(),children:a})]}),o&&h.jsx("div",{className:Y(Gu({size:A}),M),children:o}),ae&&h.jsxs("div",{className:Y(Uu(),T),children:[u&&h.jsx(V0,{ref:P,variant:u.variant||"secondary",size:"small",onClick:L,disabled:u.disabled||u.loading,startIcon:u.icon,className:"flex-1",children:u.label}),l&&h.jsx(V0,{ref:O,variant:l.variant||"primary",size:"small",onClick:F,disabled:l.disabled||l.loading,startIcon:l.icon,className:"flex-1",children:l.label})]})]})]})})};$s.displayName="Modal";const $u=N(["markdown-renderer","max-w-none","break-words","leading-relaxed","[&>*]:my-1","[&>*+*]:mt-4","[&>h1+*]:mt-8","[&>h2+*]:mt-7","[&>h3+*]:mt-6","[&>h4+*]:mt-6","[&>p+*]:mt-6","[&>ul+*]:mt-6","[&>ol+*]:mt-6","[&>blockquote+*]:mt-7","[&>pre+*]:mt-6","[&>hr+*]:mt-8","[&>div+*]:mt-6","[&>p]:mb-6","[&>ul]:mb-6","[&>ol]:mb-6","[&>blockquote]:mb-7","[&>pre]:mb-6","[&>h1]:mb-7","[&>h2]:mb-6","[&>h3]:mb-6","[&>h4]:mb-6","[&>hr]:mb-8","[&>div]:mb-6","[&>*:first-child]:mt-0","[&>*:last-child]:mb-0","[&_h1]:text-[1.5rem]","[&_h1]:leading-[2.5rem]","[&_h1]:font-semibold","[&_h2]:text-[1.25rem]","[&_h2]:leading-[2.25rem]","[&_h2]:font-semibold","[&_h3]:text-[1.125rem]","[&_h3]:leading-[2rem]","[&_h3]:font-semibold","[&_h4]:text-[1rem]","[&_h4]:leading-[1.875rem]","[&_h4]:font-semibold","[&_p]:text-[length:var(--font-size-small)]","[&_p]:leading-[1.875]","[&_strong]:font-semibold","[&_code]:bg-[var(--color-gray-100)]","[&_code]:px-2","[&_code]:py-1","[&_code]:rounded","[&_code]:text-[length:var(--font-size-tiny)]","[&_code]:font-mono","[&_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]:border-l-4","[&_blockquote]:border-[var(--color-gray-200)]","[&_blockquote]:bg-[var(--color-gray-50)]","[&_blockquote]:py-4","[&_blockquote]:px-5","[&_blockquote]:my-7","[&_blockquote]:rounded-r","[&_blockquote]:text-[0.875rem]","[&_blockquote]:leading-[1.75]","[&_ul]:pl-6","[&_ul]:list-disc","[&_ul]:list-outside","[&_ol]:pl-6","[&_ol]:list-decimal","[&_ol]:list-outside","[&_li]:text-[length:var(--font-size-small)]","[&_li]:leading-[1.875]","[&_li]:mb-4","[&_li]:pl-1","[&_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-semibold","[&_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 Ie{constructor(e,t){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=e,this.loc=t}range(e,t){return new Ie(t,De.range(this,e))}}class B{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 p;s+15<l.length?p=l.slice(s,s+15)+"…":p=l.slice(s),a+=d+u+p}var g=new Error(a);return g.name="ParseError",g.__proto__=B.prototype,g.position=n,n!=null&&s!=null&&(g.length=s-n),g.rawMessage=e,g}}B.prototype.__proto__=Error.prototype;var Wu=function(e,t){return e===void 0?t:e},Xu=/([A-Z])/g,Yu=function(e){return e.replace(Xu,"-$1").toLowerCase()},Zu={"&":"&",">":">","<":"<",'"':""","'":"'"},Ku=/[&><"']/g;function Ju(r){return String(r).replace(Ku,e=>Zu[e])}var Ws=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},Qu=function(e){var t=Ws(e);return t.type==="mathord"||t.type==="textord"||t.type==="atom"},e4=function(e){if(!e)throw new Error("Expected non-null, but got "+String(e));return e},t4=function(e){var t=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(e);return t?t[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(t[1])?null:t[1].toLowerCase():"_relative"},re={deflt:Wu,escape:Ju,hyphenate:Yu,getBaseElem:Ws,isCharacterBox:Qu,protocolFromUrl:t4},Nt={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format <type>"},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color <color>",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:r=>"#"+r},macros:{type:"object",cli:"-m, --macro <def>",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(r,e)=>(e.push(r),e)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:r=>Math.max(0,r),cli:"--min-rule-thickness <size>",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:r=>Math.max(0,r),cli:"-s, --max-size <n>",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:r=>Math.max(0,r),cli:"-e, --max-expand <n>",cliProcessor:r=>r==="Infinity"?1/0:parseInt(r)},globalGroup:{type:"boolean",cli:!1}};function r4(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 Zr{constructor(e){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,e=e||{};for(var t in Nt)if(Nt.hasOwnProperty(t)){var a=Nt[t];this[t]=e[t]!==void 0?a.processor?a.processor(e[t]):e[t]:r4(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 B("LaTeX-incompatible input and strict mode is set to 'error': "+(t+" ["+e+"]"),a);n==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(t+" ["+e+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+n+"': "+t+" ["+e+"]"))}}useStrictBehavior(e,t,a){var n=this.strict;if(typeof n=="function")try{n=n(e,t,a)}catch{n="error"}return!n||n==="ignore"?!1:n===!0||n==="error"?!0:n==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(t+" ["+e+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+n+"': "+t+" ["+e+"]")),!1)}isTrusted(e){if(e.url&&!e.protocol){var t=re.protocolFromUrl(e.url);if(t==null)return!1;e.protocol=t}var a=typeof this.trust=="function"?this.trust(e):this.trust;return!!a}}class 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 We[a4[this.id]]}sub(){return We[n4[this.id]]}fracNum(){return We[s4[this.id]]}fracDen(){return We[o4[this.id]]}cramp(){return We[i4[this.id]]}text(){return We[l4[this.id]]}isTight(){return this.size>=2}}var Kr=0,Et=1,H0=2,i0=3,et=4,He=5,G0=6,Te=7,We=[new f0(Kr,0,!1),new f0(Et,0,!0),new f0(H0,1,!1),new f0(i0,1,!0),new f0(et,2,!1),new f0(He,2,!0),new f0(G0,3,!1),new f0(Te,3,!0)],a4=[et,He,et,He,G0,Te,G0,Te],n4=[He,He,He,He,Te,Te,Te,Te],s4=[H0,i0,et,He,G0,Te,G0,Te],o4=[i0,i0,He,He,Te,Te,Te,Te],i4=[Et,Et,i0,i0,He,He,Te,Te],l4=[Kr,Et,H0,i0,H0,i0,H0,i0],K={DISPLAY:We[Kr],TEXT:We[H0],SCRIPT:We[et],SCRIPTSCRIPT:We[G0]},Nr=[{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 c4(r){for(var e=0;e<Nr.length;e++)for(var t=Nr[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=[];Nr.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 O0=80,u4=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},Lu="DialogDescriptionWarning",Bu=({contentRef:r,descriptionId:e})=>{const a=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${qs(Lu).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},Iu=Ts,ju=Ds,Pu=Es,Ou=Rs,Ga=Bs,Fu=js,qu=Os,Hu=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"}),Vu="VisuallyHidden",Hs=z.forwardRef((r,e)=>f.jsx(Je.span,{...r,ref:e,style:{...Hu,...r.style}}));Hs.displayName=Vu;var _u=Hs;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("flex flex-col gap-2 items-start justify-center w-full"),$u=A("flex items-start justify-between w-full pr-6"),Xu=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"),Yu=A("font-semibold text-[16px] leading-[24px] text-[var(--color-blue-1000)] w-full"),Zu=A("font-normal text-[16px] leading-[24px] text-[var(--color-blue-1000)] w-full"),Ku=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"}}),Ju=A("flex gap-2 items-start w-full"),Vs=({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,headerClassName:k,footerClassName:T,size:N="md"})=>{const E=V.useId(),B=V.useId(),F=V.useRef(null),O=V.useRef(null),X=V.useCallback(ue=>{e(ue),ue||g==null||g()},[e,g]),P=V.useCallback(async()=>{l!=null&&l.onClick&&await l.onClick()},[l]),I=V.useCallback(async()=>{u!=null&&u.onClick&&await u.onClick()},[u]),Y=V.useCallback(ue=>{h||ue.preventDefault()},[h]),ce=V.useCallback(ue=>{d||ue.preventDefault()},[d]),ne=t||a,te=l||u;return f.jsx(Iu,{open:r,onOpenChange:X,children:f.jsxs(ju,{children:[f.jsx(Pu,{className:W(Gu(),w)}),f.jsxs(Ou,{className:W(Uu({size:N}),x),onEscapeKeyDown:Y,onPointerDownOutside:ce,"aria-labelledby":E,"aria-describedby":a?B:void 0,children:[!t&&f.jsx(Ga,{asChild:!0,children:f.jsx(_u,{id:E,children:"Modal dialog"})}),n&&f.jsx(qu,{asChild:!0,children:f.jsx("button",{className:Xu(),"aria-label":"Close modal",children:s||f.jsx(p.X,{size:16,color:"currentColor"})})}),ne&&f.jsxs("div",{className:W(Wu(),k),children:[f.jsx("div",{className:$u(),children:f.jsx("div",{className:"flex items-center gap-2 flex-1",children:t&&f.jsx(Ga,{id:E,className:Yu(),children:t})})}),a&&f.jsx(Fu,{id:B,className:Zu(),children:a})]}),o&&f.jsx("div",{className:W(Ku({size:N}),M),children:o}),te&&f.jsxs("div",{className:W(Ju(),T),children:[u&&f.jsx(H0,{ref:O,variant:u.variant||"secondary",size:"small",onClick:I,disabled:u.disabled||u.loading,startIcon:u.icon,className:"flex-1",children:u.label}),l&&f.jsx(H0,{ref:F,variant:l.variant||"primary",size:"small",onClick:P,disabled:l.disabled||l.loading,startIcon:l.icon,className:"flex-1",children:l.label})]})]})]})})};Vs.displayName="Modal";const Qu=A(["markdown-renderer","max-w-none","break-words","leading-relaxed","font-[Inter,system-ui,-apple-system,sans-serif]","[&>*]:my-1","[&>*+*]:mt-4","[&>h1+*]:mt-8","[&>h2+*]:mt-7","[&>h3+*]:mt-6","[&>h4+*]:mt-6","[&>p+*]:mt-6","[&>ul+*]:mt-6","[&>ol+*]:mt-6","[&>blockquote+*]:mt-7","[&>pre+*]:mt-6","[&>hr+*]:mt-8","[&>div+*]:mt-6","[&>p]:mb-6","[&>ul]:mb-6","[&>ol]:mb-6","[&>blockquote]:mb-7","[&>pre]:mb-6","[&>h1]:mb-7","[&>h2]:mb-6","[&>h3]:mb-6","[&>h4]:mb-6","[&>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-semibold","[&_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-200)]","[&_blockquote]:bg-[var(--color-gray-50)]","[&_blockquote]:py-4","[&_blockquote]:px-5","[&_blockquote]:my-7","[&_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-4","[&_li]:pl-1","[&_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-semibold","[&_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 e4=function(e,t){return e===void 0?t:e},t4=/([A-Z])/g,r4=function(e){return e.replace(t4,"-$1").toLowerCase()},a4={"&":"&",">":">","<":"<",'"':""","'":"'"},n4=/[&><"']/g;function s4(r){return String(r).replace(n4,e=>a4[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},o4=function(e){var t=_s(e);return t.type==="mathord"||t.type==="textord"||t.type==="atom"},i4=function(e){if(!e)throw new Error("Expected non-null, but got "+String(e));return e},l4=function(e){var t=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*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:e4,escape:s4,hyphenate:r4,getBaseElem:_s,isCharacterBox:o4,protocolFromUrl:l4},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 c4(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]:c4(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 Xe[u4[this.id]]}sub(){return Xe[d4[this.id]]}fracNum(){return Xe[m4[this.id]]}fracDen(){return Xe[h4[this.id]]}cramp(){return Xe[f4[this.id]]}text(){return Xe[p4[this.id]]}isTight(){return this.size>=2}}var Zr=0,Dt=1,q0=2,i0=3,Q0=4,Ve=5,_0=6,Te=7,Xe=[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(Ve,2,!0),new f0(_0,3,!1),new f0(Te,3,!0)],u4=[Q0,Ve,Q0,Ve,_0,Te,_0,Te],d4=[Ve,Ve,Ve,Ve,Te,Te,Te,Te],m4=[q0,i0,Q0,Ve,_0,Te,_0,Te],h4=[i0,i0,Ve,Ve,Te,Te,Te,Te],f4=[Dt,Dt,i0,i0,Ve,Ve,Te,Te],p4=[Zr,Dt,q0,i0,q0,i0,q0,i0],K={DISPLAY:Xe[Zr],TEXT:Xe[q0],SCRIPT:Xe[Q0],SCRIPTSCRIPT:Xe[_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 v4(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 Gs(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,g4=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"},
|
|
81
|
+
M`+(834+e)+" "+t+"h400000v"+(40+e)+"h-400000z"},b4=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"},
|
|
91
|
+
M`+(1001+e)+" "+t+"h400000v"+(40+e)+"h-400000z"},y4=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"},
|
|
100
|
+
M`+(1001+e)+" "+t+"h400000v"+(40+e)+"h-400000z"},x4=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"},
|
|
110
|
+
h400000v`+(40+e)+"h-400000z"},w4=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"},
|
|
117
|
+
606zM`+(1001+e)+" "+t+"h400000v"+(40+e)+"H1017.7z"},S4=function(e){var t=e/2;return"M400000 "+e+" H0 L"+t+" 0 l65 45 L145 "+(e-80)+" H400000z"},k4=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"},
|
|
121
|
+
219 661 l218 661zM702 `+t+"H400000v"+(40+e)+"H742z"},C4=function(e,t,a){t=1e3*t;var n="";switch(e){case"sqrtMain":n=g4(t,P0);break;case"sqrtSize1":n=b4(t,P0);break;case"sqrtSize2":n=y4(t,P0);break;case"sqrtSize3":n=x4(t,P0);break;case"sqrtSize4":n=w4(t,P0);break;case"sqrtTall":n=k4(t,P0,a)}return n},M4=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""}},Ua={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`},
|
|
296
|
+
M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},z4=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 rt{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]}},gt={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]},Za={Å:"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 y4(r,e){Ye[r]=e}function Jr(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 Za&&(a=Za[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 lr={};function w4(r){var e;if(r>=5?e=0:r>=3?e=1:e=2,!lr[e]){var t=lr[e]={cssEmPerMu:gt.quad[e]/18};for(var a in gt)gt.hasOwnProperty(a)&&(t[a]=gt[a][e])}return lr[e]}var S4=[[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]],Ka=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],Ja=function(e,t){return t.size<2?e:S4[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=Ka[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:Ja(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:Ka[e-1]})}havingBaseStyle(e){e=e||this.style.text();var t=Ja(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=w4(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},k4={ex:!0,em:!0,mu:!0},Ys=function(e){return typeof e!="string"&&(e=e.unit),e in Ar||e in k4||e==="ex"},he=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 B("Invalid unit: '"+e.unit+"'");n!==t&&(a*=n.sizeMultiplier/t.sizeMultiplier)}return Math.min(e.number*a,t.maxSize)},I=function(e){return+e.toFixed(4)+"em"},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},C4=/[\s"'>/=\x00-\x1f]/,Js=function(e){var t="<"+e;this.classes.length&&(t+=' class="'+re.escape(x0(this.classes))+'"');var a="";for(var n in this.style)this.style.hasOwnProperty(n)&&(a+=re.hyphenate(n)+":"+this.style[n]+";");a&&(t+=' style="'+re.escape(a)+'"');for(var s in this.attributes)if(this.attributes.hasOwnProperty(s)){if(C4.test(s))throw new B("Invalid attribute name '"+s+"'");t+=" "+s+'="'+re.escape(this.attributes[s])+'"'}t+=">";for(var o=0;o<this.children.length;o++)t+=this.children[o].toMarkup();return t+="</"+e+">",t};class at{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 Qr{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 M4{constructor(e,t,a){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=t,this.src=e,this.classes=["mord"],this.style=a}hasClass(e){return this.classes.includes(e)}toNode(){var e=document.createElement("img");e.src=this.src,e.alt=this.alt,e.className="mord";for(var t in this.style)this.style.hasOwnProperty(t)&&(e.style[t]=this.style[t]);return e}toMarkup(){var e='<img src="'+re.escape(this.src)+'"'+(' alt="'+re.escape(this.alt)+'"'),t="";for(var a in this.style)this.style.hasOwnProperty(a)&&(t+=re.hyphenate(a)+":"+this.style[a]+";");return t&&(e+=' style="'+re.escape(t)+'"'),e+="'/>",e}}var z4={î:"ı̂",ï:"ı̈",í:"ı́",ì:"ı̀"};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=c4(this.text.charCodeAt(0));d&&this.classes.push(d+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=z4[this.text])}hasClass(e){return this.classes.includes(e)}toNode(){var e=document.createTextNode(this.text),t=null;this.italic>0&&(t=document.createElement("span"),t.style.marginRight=I(this.italic)),this.classes.length>0&&(t=t||document.createElement("span"),t.className=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+=re.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+=re.hyphenate(n)+":"+this.style[n]+";");a&&(e=!0,t+=' style="'+re.escape(a)+'"');var s=re.escape(this.text);return e?(t+=">",t+=s,t+="</span>",t):s}}class 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+'="'+re.escape(this.attributes[t])+'"');e+=">";for(var a=0;a<this.children.length;a++)e+=this.children[a].toMarkup();return e+="</svg>",e}}class 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",Ya[this.pathName]),t}toMarkup(){return this.alternate?'<path d="'+re.escape(this.alternate)+'"/>':'<path d="'+re.escape(Ya[this.pathName])+'"/>'}}class Dr{constructor(e){this.attributes=void 0,this.attributes=e||{}}toNode(){var e="http://www.w3.org/2000/svg",t=document.createElementNS(e,"line");for(var a in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,a)&&t.setAttribute(a,this.attributes[a]);return t}toMarkup(){var e="<line";for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&(e+=" "+t+'="'+re.escape(this.attributes[t])+'"');return e+="/>",e}}function Qa(r){if(r instanceof Ve)return r;throw new Error("Expected symbolNode but got "+String(r)+".")}function T4(r){if(r instanceof at)return r;throw new Error("Expected span<HtmlDomNode> but got "+String(r)+".")}var N4={bin:1,close:1,inner:1,open:1,punct:1,rel:1},A4={"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",ue="accent-token",H="bin",Ne="close",W0="inner",Z="mathord",xe="op-token",Pe="open",Ht="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,Ht,".","\\ldotp");i(c,m,Ht,"⋅","\\cdotp");i(c,m,S,"#","\\#");i(D,m,S,"#","\\#");i(c,m,S,"&","\\&");i(D,m,S,"&","\\&");i(c,m,S,"ℵ","\\aleph",!0);i(c,m,S,"∀","\\forall",!0);i(c,m,S,"ℏ","\\hbar",!0);i(c,m,S,"∃","\\exists",!0);i(c,m,S,"∇","\\nabla",!0);i(c,m,S,"♭","\\flat",!0);i(c,m,S,"ℓ","\\ell",!0);i(c,m,S,"♮","\\natural",!0);i(c,m,S,"♣","\\clubsuit",!0);i(c,m,S,"℘","\\wp",!0);i(c,m,S,"♯","\\sharp",!0);i(c,m,S,"♢","\\diamondsuit",!0);i(c,m,S,"ℜ","\\Re",!0);i(c,m,S,"♡","\\heartsuit",!0);i(c,m,S,"ℑ","\\Im",!0);i(c,m,S,"♠","\\spadesuit",!0);i(c,m,S,"§","\\S",!0);i(D,m,S,"§","\\S");i(c,m,S,"¶","\\P",!0);i(D,m,S,"¶","\\P");i(c,m,S,"†","\\dag");i(D,m,S,"†","\\dag");i(D,m,S,"†","\\textdagger");i(c,m,S,"‡","\\ddag");i(D,m,S,"‡","\\ddag");i(D,m,S,"‡","\\textdaggerdbl");i(c,m,Ne,"⎱","\\rmoustache",!0);i(c,m,Pe,"⎰","\\lmoustache",!0);i(c,m,Ne,"⟯","\\rgroup",!0);i(c,m,Pe,"⟮","\\lgroup",!0);i(c,m,H,"∓","\\mp",!0);i(c,m,H,"⊖","\\ominus",!0);i(c,m,H,"⊎","\\uplus",!0);i(c,m,H,"⊓","\\sqcap",!0);i(c,m,H,"∗","\\ast");i(c,m,H,"⊔","\\sqcup",!0);i(c,m,H,"◯","\\bigcirc",!0);i(c,m,H,"∙","\\bullet",!0);i(c,m,H,"‡","\\ddagger");i(c,m,H,"≀","\\wr",!0);i(c,m,H,"⨿","\\amalg");i(c,m,H,"&","\\And");i(c,m,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,Ne,"┐","\\@urcorner",!0);i(c,b,Pe,"└","\\@llcorner",!0);i(c,b,Ne,"┘","\\@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,Ne,"?","?");i(c,m,Ne,"!","!");i(c,m,Ne,"⟩","\\rangle",!0);i(c,m,Ne,"∣","\\rvert");i(c,m,Ne,"∥","\\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,Ht,",",",");i(c,m,Ht,";",";");i(c,b,H,"⊼","\\barwedge",!0);i(c,b,H,"⊻","\\veebar",!0);i(c,m,H,"⊙","\\odot",!0);i(c,m,H,"⊕","\\oplus",!0);i(c,m,H,"⊗","\\otimes",!0);i(c,m,S,"∂","\\partial",!0);i(c,m,H,"⊘","\\oslash",!0);i(c,b,H,"⊚","\\circledcirc",!0);i(c,b,H,"⊡","\\boxdot",!0);i(c,m,H,"△","\\bigtriangleup");i(c,m,H,"▽","\\bigtriangledown");i(c,m,H,"†","\\dagger");i(c,m,H,"⋄","\\diamond");i(c,m,H,"⋆","\\star");i(c,m,H,"◃","\\triangleleft");i(c,m,H,"▹","\\triangleright");i(c,m,Pe,"{","\\{");i(D,m,S,"{","\\{");i(D,m,S,"{","\\textbraceleft");i(c,m,Ne,"}","\\}");i(D,m,S,"}","\\}");i(D,m,S,"}","\\textbraceright");i(c,m,Pe,"{","\\lbrace");i(c,m,Ne,"}","\\rbrace");i(c,m,Pe,"[","\\lbrack",!0);i(D,m,S,"[","\\lbrack",!0);i(c,m,Ne,"]","\\rbrack",!0);i(D,m,S,"]","\\rbrack",!0);i(c,m,Pe,"(","\\lparen",!0);i(c,m,Ne,")","\\rparen",!0);i(D,m,S,"<","\\textless",!0);i(D,m,S,">","\\textgreater",!0);i(c,m,Pe,"⌊","\\lfloor",!0);i(c,m,Ne,"⌋","\\rfloor",!0);i(c,m,Pe,"⌈","\\lceil",!0);i(c,m,Ne,"⌉","\\rceil",!0);i(c,m,S,"\\","\\backslash");i(c,m,S,"∣","|");i(c,m,S,"∣","\\vert");i(D,m,S,"|","\\textbar",!0);i(c,m,S,"∥","\\|");i(c,m,S,"∥","\\Vert");i(D,m,S,"∥","\\textbardbl");i(D,m,S,"~","\\textasciitilde");i(D,m,S,"\\","\\textbackslash");i(D,m,S,"^","\\textasciicircum");i(c,m,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,ue,"ˊ","\\acute");i(c,m,ue,"ˋ","\\grave");i(c,m,ue,"¨","\\ddot");i(c,m,ue,"~","\\tilde");i(c,m,ue,"ˉ","\\bar");i(c,m,ue,"˘","\\breve");i(c,m,ue,"ˇ","\\check");i(c,m,ue,"^","\\hat");i(c,m,ue,"⃗","\\vec");i(c,m,ue,"˙","\\dot");i(c,m,ue,"˚","\\mathring");i(c,m,Z,"","\\@imath");i(c,m,Z,"","\\@jmath");i(c,m,S,"ı","ı");i(c,m,S,"ȷ","ȷ");i(D,m,S,"ı","\\i",!0);i(D,m,S,"ȷ","\\j",!0);i(D,m,S,"ß","\\ss",!0);i(D,m,S,"æ","\\ae",!0);i(D,m,S,"œ","\\oe",!0);i(D,m,S,"ø","\\o",!0);i(D,m,S,"Æ","\\AE",!0);i(D,m,S,"Œ","\\OE",!0);i(D,m,S,"Ø","\\O",!0);i(D,m,ue,"ˊ","\\'");i(D,m,ue,"ˋ","\\`");i(D,m,ue,"ˆ","\\^");i(D,m,ue,"˜","\\~");i(D,m,ue,"ˉ","\\=");i(D,m,ue,"˘","\\u");i(D,m,ue,"˙","\\.");i(D,m,ue,"¸","\\c");i(D,m,ue,"˚","\\r");i(D,m,ue,"ˇ","\\v");i(D,m,ue,"¨",'\\"');i(D,m,ue,"˝","\\H");i(D,m,ue,"◯","\\textcircled");var 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 en='0123456789/@."';for(var cr=0;cr<en.length;cr++){var tn=en.charAt(cr);i(c,m,S,tn,tn)}var rn='0123456789!@*()-=+";:?/.,';for(var ur=0;ur<rn.length;ur++){var an=rn.charAt(ur);i(D,m,S,an,an)}var Rt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";for(var dr=0;dr<Rt.length;dr++){var bt=Rt.charAt(dr);i(c,m,Z,bt,bt),i(D,m,S,bt,bt)}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<Rt.length;ze++){var pe=Rt.charAt(ze);J=String.fromCharCode(55349,56320+ze),i(c,m,Z,pe,J),i(D,m,S,pe,J),J=String.fromCharCode(55349,56372+ze),i(c,m,Z,pe,J),i(D,m,S,pe,J),J=String.fromCharCode(55349,56424+ze),i(c,m,Z,pe,J),i(D,m,S,pe,J),J=String.fromCharCode(55349,56580+ze),i(c,m,Z,pe,J),i(D,m,S,pe,J),J=String.fromCharCode(55349,56684+ze),i(c,m,Z,pe,J),i(D,m,S,pe,J),J=String.fromCharCode(55349,56736+ze),i(c,m,Z,pe,J),i(D,m,S,pe,J),J=String.fromCharCode(55349,56788+ze),i(c,m,Z,pe,J),i(D,m,S,pe,J),J=String.fromCharCode(55349,56840+ze),i(c,m,Z,pe,J),i(D,m,S,pe,J),J=String.fromCharCode(55349,56944+ze),i(c,m,Z,pe,J),i(D,m,S,pe,J),ze<26&&(J=String.fromCharCode(55349,56632+ze),i(c,m,Z,pe,J),i(D,m,S,pe,J),J=String.fromCharCode(55349,56476+ze),i(c,m,Z,pe,J),i(D,m,S,pe,J))}J="𝕜";i(c,m,Z,"k",J);i(D,m,S,"k",J);for(var z0=0;z0<10;z0++){var p0=z0.toString();J=String.fromCharCode(55349,57294+z0),i(c,m,Z,p0,J),i(D,m,S,p0,J),J=String.fromCharCode(55349,57314+z0),i(c,m,Z,p0,J),i(D,m,S,p0,J),J=String.fromCharCode(55349,57324+z0),i(c,m,Z,p0,J),i(D,m,S,p0,J),J=String.fromCharCode(55349,57334+z0),i(c,m,Z,p0,J),i(D,m,S,p0,J)}var Er="ÐÞþ";for(var mr=0;mr<Er.length;mr++){var xt=Er.charAt(mr);i(c,m,Z,xt,xt),i(D,m,S,xt,xt)}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"]],nn=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],D4=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[nn[u][2],nn[u][o]]}else{if(s===120485||s===120486)return[yt[0][2],yt[0][o]];if(120486<s&&s<120782)return["",""];throw new B("Unsupported character: "+e)}},Vt=function(e,t,a){return le[a][e]&&le[a][e].replace&&(e=le[a][e].replace),{value:e,metrics:Jr(e,t,a)}},Ue=function(e,t,a,n,s){var o=Vt(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 p=n.getColor();p&&(u.style.color=p)}return u},E4=function(e,t,a,n){return n===void 0&&(n=[]),a.font==="boldsymbol"&&Vt(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"]))},R4=function(e,t,a,n,s){return s!=="textord"&&Vt(e,"Math-BoldItalic",t).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},L4=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="",p="";if(s.charCodeAt(0)===55349&&([d,p]=D4(s,n)),d.length>0)return Ue(s,d,n,t,o.concat(p));if(u){var g,w;if(u==="boldsymbol"){var y=R4(s,n,t,o,a);g=y.fontName,w=[y.fontClass]}else l?(g=ro[u].fontName,w=[u]):(g=wt(u,t.fontWeight,t.fontShape),w=[u,t.fontWeight,t.fontShape]);if(Vt(s,g,n).metrics)return Ue(s,g,n,t,o.concat(w));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(w)));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 A=wt("amsrm",t.fontWeight,t.fontShape);return Ue(s,A,n,t,o.concat("amsrm",t.fontWeight,t.fontShape))}else if(T==="main"||!T){var E=wt("textrm",t.fontWeight,t.fontShape);return Ue(s,E,n,t,o.concat(t.fontWeight,t.fontShape))}else{var j=wt(T,t.fontWeight,t.fontShape);return Ue(s,j,n,t,o.concat(j,t.fontWeight,t.fontShape))}}else throw new Error("unexpected type: "+a+" in makeOrd")},B4=(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},j4=r=>{for(var e=0;e<r.length-1;e++){var t=r[e],a=r[e+1];t instanceof Ve&&a instanceof Ve&&B4(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},ea=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},Ae=function(e,t,a,n){var s=new at(e,t,a,n);return ea(s),s},eo=(r,e,t,a)=>new at(r,e,t,a),I4=function(e,t,a){var n=Ae([e],[],t);return n.height=Math.max(a||t.fontMetrics().defaultRuleThickness,t.minRuleThickness),n.style.borderBottomWidth=I(n.height),n.maxFontSize=1,n},P4=function(e,t,a,n){var s=new Qr(e,t,a,n);return ea(s),s},to=function(e){var t=new rt(e);return ea(t),t},O4=function(e,t){return e instanceof rt?Ae([],[e],t):e},F4=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 p=e.positionData,g=0;g<e.children.length;g++){var w=e.children[g];p-=w.type==="kern"?w.size:w.elem.height+w.elem.depth}d=p}else if(e.positionType==="bottom")d=-e.positionData;else{var y=e.children[0];if(y.type!=="elem")throw new Error('First child must have type "elem".');if(e.positionType==="shift")d=-y.elem.depth-e.positionData;else if(e.positionType==="firstBaseline")d=-y.elem.depth;else throw new Error("Invalid positionType "+e.positionType+".")}return{children:e.children,depth:d}},q4=function(e,t){for(var{children:a,depth:n}=F4(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=Ae(["pstrut"],[]);d.style.height=I(s);for(var p=[],g=n,w=n,y=n,M=0;M<a.length;M++){var k=a[M];if(k.type==="kern")y+=k.size;else{var T=k.elem,A=k.wrapperClasses||[],E=k.wrapperStyle||{},j=Ae(A,[d,T],void 0,E);j.style.top=I(-s-y-T.depth),k.marginLeft&&(j.style.marginLeft=k.marginLeft),k.marginRight&&(j.style.marginRight=k.marginRight),p.push(j),y+=T.height+T.depth}g=Math.min(g,y),w=Math.max(w,y)}var O=Ae(["vlist"],p);O.style.height=I(w);var P;if(g<0){var W=Ae([],[]),F=Ae(["vlist"],[W]);F.style.height=I(-g);var L=Ae(["vlist-s"],[new Ve("")]);P=[Ae(["vlist-r"],[O,L]),Ae(["vlist-r"],[F])]}else P=[Ae(["vlist-r"],[O])];var X=Ae(["vlist-t"],P);return P.length===2&&X.classes.push("vlist-t2"),X.height=w,X.depth=-g,X},H4=(r,e)=>{var t=Ae(["mspace"],[],e),a=he(r,e);return t.style.marginRight=I(a),t},wt=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]},V4=function(e,t){var[a,n,s]=ao[e],o=new y0(a),l=new c0([o],{width:I(n),height:I(s),style:"width:"+I(n),viewBox:"0 0 "+1e3*n+" "+1e3*s,preserveAspectRatio:"xMinYMin"}),u=eo(["overlay"],[l],t);return u.height=s,u.style.height=I(s),u.style.width=I(n),u},C={fontMap:ro,makeSymbol:Ue,mathsym:E4,makeSpan:Ae,makeSvgSpan:eo,makeLineSpan:I4,makeAnchor:P4,makeFragment:to,wrapFragment:O4,makeVList:q4,makeOrd:L4,makeGlue:H4,staticSvg:V4,svgData:ao,tryCombineChars:j4},me={number:3,unit:"mu"},T0={number:4,unit:"mu"},a0={number:5,unit:"mu"},_4={mord:{mop:me,mbin:T0,mrel:a0,minner:me},mop:{mord:me,mop:me,mrel:a0,minner:me},mbin:{mord:T0,mop:T0,mopen:T0,minner:T0},mrel:{mord:a0,mop:a0,mopen:a0,minner:a0},mopen:{},mclose:{mop:me,mbin:T0,mrel:a0,minner:me},mpunct:{mord:me,mop:me,mrel:a0,mopen:me,mclose:me,mpunct:me,minner:me},minner:{mord:me,mop:me,mbin:T0,mrel:a0,mopen:me,mpunct:me,minner:me}},G4={mord:{mop:me},mop:{mord:me,mop:me},mbin:{},mrel:{},mopen:{},mclose:{mop:me},mpunct:{},minner:{mop:me}},no={},Lt={},Bt={};function q(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&&(Lt[e]=s),o&&(Bt[e]=o))}function L0(r){var{type:e,htmlBuilder:t,mathmlBuilder:a}=r;q({type:e,names:[],props:{numArgs:0},handler(){throw new Error("Should never be called.")},htmlBuilder:t,mathmlBuilder:a})}var jt=function(e){return e.type==="ordgroup"&&e.body.length===1?e.body[0]:e},ge=function(e){return e.type==="ordgroup"?e.body:[e]},u0=C.makeSpan,U4=["leftmost","mbin","mopen","mrel","mop","mpunct"],$4=["rightmost","mrel","mclose","mpunct"],W4={display:K.DISPLAY,text:K.TEXT,script:K.SCRIPT,scriptscript:K.SCRIPTSCRIPT},X4={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=te(e[o],t);if(l instanceof rt){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 p=e[0];p.type==="sizing"?d=t.havingSize(p.size):p.type==="styling"&&(d=t.havingStyle(W4[p.style]))}var g=u0([n[0]||"leftmost"],[],t),w=u0([n[1]||"rightmost"],[],t),y=a==="root";return sn(s,(M,k)=>{var T=k.classes[0],A=M.classes[0];T==="mbin"&&$4.includes(A)?k.classes[0]="mord":A==="mbin"&&U4.includes(T)&&(M.classes[0]="mord")},{node:g},w,y),sn(s,(M,k)=>{var T=Rr(k),A=Rr(M),E=T&&A?M.hasClass("mtight")?G4[T][A]:_4[T][A]:null;if(E)return C.makeGlue(E,d)},{node:g},w,y),s},sn=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 p=t(l,a.node);p&&(a.insertAfter?a.insertAfter(p):(e.unshift(p),o++))}d?a.node=l:s&&l.hasClass("newline")&&(a.node=u0(["leftmost"])),a.insertAfter=(g=>w=>{e.splice(g+1,0,w),o++})(o)}n&&e.pop()},so=function(e){return e instanceof rt||e instanceof Qr||e instanceof at&&e.hasClass("enclosing")?e:null},Y4=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},Rr=function(e,t){return e?(t&&(e=Y4(e,t)),X4[e.classes[0]]||null):null},tt=function(e,t){var a=["nulldelimiter"].concat(e.baseSizingClasses());return u0(t.concat(a))},te=function(e,t,a){if(!e)return u0();if(Lt[e.type]){var n=Lt[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 B("Got group of unknown type: '"+e.type+"'")};function St(r,e){var t=u0(["base"],r,e),a=u0(["strut"]);return a.style.height=I(t.height+t.depth),t.depth&&(a.style.verticalAlign=I(-t.depth)),t.children.unshift(a),t}function Lr(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(St(o,e)),o=[])}else a[l].hasClass("newline")&&(o.pop(),o.length>0&&(s.push(St(o,e)),o=[]),s.push(a[l]));o.length>0&&s.push(St(o,e));var d;t?(d=St(ke(t,e,!0)),d.classes=["tag"],s.push(d)):n&&s.push(n);var p=u0(["katex-html"],s);if(p.setAttribute("aria-hidden","true"),d){var g=d.children[0];g.style.height=I(p.height+p.depth),p.depth&&(g.style.verticalAlign=I(-p.depth))}return p}function oo(r){return new rt(r)}class je{constructor(e,t,a){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=e,this.attributes={},this.children=t||[],this.classes=a||[]}setAttribute(e,t){this.attributes[e]=t}getAttribute(e){return this.attributes[e]}toNode(){var e=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);this.classes.length>0&&(e.className=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+=re.escape(this.attributes[t]),e+='"');this.classes.length>0&&(e+=' class ="'+re.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 re.escape(this.toText())}toText(){return this.text}}class Z4{constructor(e){this.width=void 0,this.character=void 0,this.width=e,e>=.05555&&e<=.05556?this.character=" ":e>=.1666&&e<=.1667?this.character=" ":e>=.2222&&e<=.2223?this.character=" ":e>=.2777&&e<=.2778?this.character=" ":e>=-.05556&&e<=-.05555?this.character=" ":e>=-.1667&&e<=-.1666?this.character=" ":e>=-.2223&&e<=-.2222?this.character=" ":e>=-.2778&&e<=-.2777?this.character=" ":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var e=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return e.setAttribute("width",I(this.width)),e}toMarkup(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+I(this.width)+'"/>'}toText(){return this.character?this.character:" "}}var R={MathNode:je,TextNode:Ze,SpaceNode:Z4,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 R.TextNode(e)},ta=function(e){return e.length===1?e[0]:new R.MathNode("mrow",e)},ra=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 Jr(s,o,n)?C.fontMap[a].variant:null};function hr(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 je&&n.type==="mo"&&(n.setAttribute("lspace","0em"),n.setAttribute("rspace","0em")),[n]}for(var s=[],o,l=0;l<e.length;l++){var u=oe(e[l],t);if(u instanceof je&&o instanceof je){if(u.type==="mtext"&&o.type==="mtext"&&u.getAttribute("mathvariant")===o.getAttribute("mathvariant")){o.children.push(...u.children);continue}else if(u.type==="mn"&&o.type==="mn"){o.children.push(...u.children);continue}else if(hr(u)&&o.type==="mn"){o.children.push(...u.children);continue}else if(u.type==="mn"&&hr(o))u.children=[...o.children,...u.children],s.pop();else if((u.type==="msup"||u.type==="msub")&&u.children.length>=1&&(o.type==="mn"||hr(o))){var d=u.children[0];d instanceof je&&d.type==="mn"&&(d.children=[...o.children,...d.children],s.pop())}else if(o.type==="mi"&&o.children.length===1){var p=o.children[0];if(p instanceof Ze&&p.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 ta(Ee(e,t,a))},oe=function(e,t){if(!e)return new R.MathNode("mrow");if(Bt[e.type]){var a=Bt[e.type](e,t);return a}else throw new B("Got group of unknown type: '"+e.type+"'")};function on(r,e,t,a,n){var s=Ee(r,t),o;s.length===1&&s[0]instanceof je&&["mrow","mtable"].includes(s[0].type)?o=s[0]:o=new R.MathNode("mrow",s);var l=new R.MathNode("annotation",[new R.TextNode(e)]);l.setAttribute("encoding","application/x-tex");var u=new R.MathNode("semantics",[o,l]),d=new R.MathNode("math",[u]);d.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),a&&d.setAttribute("display","block");var p=n?"katex":"katex-mathml";return C.makeSpan([p],[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},K4=function(e,t,a){var n=io(a),s;if(a.output==="mathml")return on(e,t,n,a.displayMode,!0);if(a.output==="html"){var o=Lr(e,n);s=C.makeSpan(["katex"],[o])}else{var l=on(e,t,n,a.displayMode,!1),u=Lr(e,n);s=C.makeSpan(["katex"],[l,u])}return lo(s,a)},J4=function(e,t,a){var n=io(a),s=Lr(e,n),o=C.makeSpan(["katex"],[s]);return lo(o,a)},Q4={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":"="},e2=function(e){var t=new R.MathNode("mo",[new R.TextNode(Q4[e.replace(/^\\/,"")])]);return t.setAttribute("stretchy","true"),t},t2={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]},r2=function(e){return e.type==="ordgroup"?e.body.length:1},a2=function(e,t){function a(){var l=4e5,u=e.label.slice(1);if(["widehat","widecheck","widetilde","utilde"].includes(u)){var d=e,p=r2(d.base),g,w,y;if(p>5)u==="widehat"||u==="widecheck"?(g=420,l=2364,y=.42,w=u+"4"):(g=312,l=2340,y=.34,w="tilde4");else{var M=[1,1,2,2,3,3][p];u==="widehat"||u==="widecheck"?(l=[0,1062,2364,2364,2364][M],g=[0,239,300,360,420][M],y=[0,.24,.3,.3,.36,.42][M],w=u+M):(l=[0,600,1033,2339,2340][M],g=[0,260,286,306,312][M],y=[0,.26,.286,.3,.306,.34][M],w="tilde"+M)}var k=new y0(w),T=new c0([k],{width:"100%",height:I(y),viewBox:"0 0 "+l+" "+g,preserveAspectRatio:"none"});return{span:C.makeSvgSpan([],[T],t),minWidth:0,height:y}}else{var A=[],E=t2[u],[j,O,P]=E,W=P/1e3,F=j.length,L,X;if(F===1){var de=E[3];L=["hide-tail"],X=[de]}else if(F===2)L=["halfarrow-left","halfarrow-right"],X=["xMinYMin","xMaxYMin"];else if(F===3)L=["brace-left","brace-center","brace-right"],X=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
|
|
325
|
-
`+F+" children.");for(var ie=0;ie<F;ie++){var ae=new y0(j[ie]),ce=new c0([ae],{width:"400em",height:I(W),viewBox:"0 0 "+l+" "+P,preserveAspectRatio:X[ie]+" slice"}),ye=C.makeSvgSpan([L[ie]],[ce],t);if(F===1)return{span:ye,minWidth:O,height:W};ye.style.height=I(W),A.push(ye)}return{span:C.makeSpan(["stretchy"],A,t),minWidth:O,height:W}}}var{span:n,minWidth:s,height:o}=a();return n.height=o,n.style.height=I(o),s>0&&(n.style.minWidth=I(s)),n},n2=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 Dr({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(t)&&d.push(new Dr({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var p=new c0(d,{width:"100%",height:I(l)});o=C.makeSvgSpan([],[p],s)}return o.height=l,o.style.height=I(l),o},d0={encloseSpan:n2,mathMLnode:e2,svgSpan:a2};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 aa(r){var e=_t(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 _t(r){return r&&(r.type==="atom"||A4.hasOwnProperty(r.type))?r:null}var na=(r,e)=>{var t,a,n;r&&r.type==="supsub"?(a=Q(r.base,"accent"),t=a.base,r.base=t,n=T4(te(r,e)),r.base=a):(a=Q(r,"accent"),t=a.base);var s=te(t,e.havingCrampedStyle()),o=a.isShifty&&re.isCharacterBox(t),l=0;if(o){var u=re.getBaseElem(t),d=te(u,e.havingCrampedStyle());l=Qa(d).skew}var p=a.label==="\\c",g=p?s.height+s.depth:Math.min(s.height,e.fontMetrics().xHeight),w;if(a.isStretchy)w=d0.svgSpan(a,e),w=C.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"elem",elem:w,wrapperClasses:["svg-align"],wrapperStyle:l>0?{width:"calc(100% - "+I(2*l)+")",marginLeft:I(2*l)}:void 0}]},e);else{var y,M;a.label==="\\vec"?(y=C.staticSvg("vec",e),M=C.svgData.vec[1]):(y=C.makeOrd({mode:a.mode,text:a.label},e,"textord"),y=Qa(y),y.italic=0,M=y.width,p&&(g+=y.depth)),w=C.makeSpan(["accent-body"],[y]);var k=a.label==="\\textcircled";k&&(w.classes.push("accent-full"),g=s.height);var T=l;k||(T-=M/2),w.style.left=I(T),a.label==="\\textcircled"&&(w.style.top=".2em"),w=C.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"kern",size:-g},{type:"elem",elem:w}]},e)}var A=C.makeSpan(["mord","accent"],[w],e);return n?(n.children[0]=A,n.height=Math.max(A.height,n.height),n.classes[0]="mord",n):A},co=(r,e)=>{var t=r.isStretchy?d0.mathMLnode(r.label):new R.MathNode("mo",[_e(r.label,r.mode)]),a=new R.MathNode("mover",[oe(r.base,e),t]);return a.setAttribute("accent","true"),a},s2=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(r=>"\\"+r).join("|"));q({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=jt(e[0]),a=!s2.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:na,mathmlBuilder:co});q({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:na,mathmlBuilder:co});q({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(r,e)=>{var{parser:t,funcName:a}=r,n=e[0];return{type:"accentUnder",mode:t.mode,label:a,base:n}},htmlBuilder:(r,e)=>{var t=te(r.base,e),a=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 R.MathNode("munder",[oe(r.base,e),t]);return a.setAttribute("accentunder","true"),a}});var kt=r=>{var e=new R.MathNode("mpadded",r?[r]:[]);return e.setAttribute("width","+0.6em"),e.setAttribute("lspace","0.3em"),e};q({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(r,e,t){var{parser:a,funcName:n}=r;return{type:"xArrow",mode:a.mode,label:n,body:e[0],below:t[0]}},htmlBuilder(r,e){var t=e.style,a=e.havingStyle(t.sup()),n=C.wrapFragment(te(r.body,a,e),e),s=r.label.slice(0,2)==="\\x"?"x":"cd";n.classes.push(s+"-arrow-pad");var o;r.below&&(a=e.havingStyle(t.sub()),o=C.wrapFragment(te(r.below,a,e),e),o.classes.push(s+"-arrow-pad"));var l=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 p;if(o){var g=-e.fontMetrics().axisHeight+o.height+.5*l.height+.111;p=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 p=C.makeVList({positionType:"individualShift",children:[{type:"elem",elem:n,shift:d},{type:"elem",elem:l,shift:u}]},e);return p.children[0].children[0].children[1].classes.push("svg-align"),C.makeSpan(["mrel","x-arrow"],[p],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=kt(oe(r.body,e));if(r.below){var s=kt(oe(r.below,e));a=new R.MathNode("munderover",[t,s,n])}else a=new R.MathNode("mover",[t,n])}else if(r.below){var o=kt(oe(r.below,e));a=new R.MathNode("munder",[t,o])}else a=kt(),a=new R.MathNode("mover",[t,a]);return a}});var o2=C.makeSpan;function uo(r,e){var t=ke(r.body,e,!0);return o2([r.mclass],t,e)}function mo(r,e){var t,a=Ee(r.body,e);return r.mclass==="minner"?t=new R.MathNode("mpadded",a):r.mclass==="mord"?r.isCharacterBox?(t=a[0],t.type="mi"):t=new R.MathNode("mi",a):(r.isCharacterBox?(t=a[0],t.type="mo"):t=new R.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}q({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(r,e){var{parser:t,funcName:a}=r,n=e[0];return{type:"mclass",mode:t.mode,mclass:"m"+a.slice(5),body:ge(n),isCharacterBox:re.isCharacterBox(n)}},htmlBuilder:uo,mathmlBuilder:mo});var Gt=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"};q({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(r,e){var{parser:t}=r;return{type:"mclass",mode:t.mode,mclass:Gt(e[0]),body:ge(e[1]),isCharacterBox:re.isCharacterBox(e[1])}}});q({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=Gt(n):o="mrel";var l={type:"op",mode:n.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:a!=="\\stackrel",body:ge(n)},u={type:"supsub",mode:s.mode,base:l,sup:a==="\\underset"?null:s,sub:a==="\\underset"?s:null};return{type:"mclass",mode:t.mode,mclass:o,body:[u],isCharacterBox:re.isCharacterBox(u)}},htmlBuilder:uo,mathmlBuilder:mo});q({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(r,e){var{parser:t}=r;return{type:"pmb",mode:t.mode,mclass:Gt(e[0]),body:ge(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 R.MathNode("mstyle",t);return a.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),a}});var i2={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},ln=()=>({type:"styling",body:[],mode:"math",style:"display"}),cn=r=>r.type==="textord"&&r.text==="@",l2=(r,e)=>(r.type==="mathord"||r.type==="atom")&&r.text===e;function c2(r,e,t){var a=i2[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 u2(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 B("Expected \\\\ or \\cr or \\end",r.nextToken)}for(var a=[],n=[a],s=0;s<e.length;s++){for(var o=e[s],l=ln(),u=0;u<o.length;u++)if(!cn(o[u]))l.body.push(o[u]);else{a.push(l),u+=1;var d=aa(o[u]).text,p=new Array(2);if(p[0]={type:"ordgroup",mode:"math",body:[]},p[1]={type:"ordgroup",mode:"math",body:[]},!("=|.".indexOf(d)>-1))if("<>AV".indexOf(d)>-1)for(var g=0;g<2;g++){for(var w=!0,y=u+1;y<o.length;y++){if(l2(o[y],d)){w=!1,u=y;break}if(cn(o[y]))throw new B("Missing a "+d+" character to complete a CD arrow.",o[y]);p[g].body.push(o[y])}if(w)throw new B("Missing a "+d+" character to complete a CD arrow.",o[u])}else throw new B('Expected one of "<>AV=|." after @',o[u]);var M=c2(d,p,r),k={type:"styling",body:[M],mode:"math",style:"display"};a.push(k),l=ln()}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([])}}q({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(r,e){var{parser:t,funcName:a}=r;return{type:"cdlabel",mode:t.mode,side:a.slice(4),label:e[0]}},htmlBuilder(r,e){var t=e.havingStyle(e.style.sup()),a=C.wrapFragment(te(r.label,t,e),e);return a.classes.push("cd-label-"+r.side),a.style.bottom=I(.8-a.depth),a.height=0,a.depth=0,a},mathmlBuilder(r,e){var t=new R.MathNode("mrow",[oe(r.label,e)]);return t=new R.MathNode("mpadded",[t]),t.setAttribute("width","0"),r.side==="left"&&t.setAttribute("lspace","-1width"),t.setAttribute("voffset","0.7em"),t=new R.MathNode("mstyle",[t]),t.setAttribute("displaystyle","false"),t.setAttribute("scriptlevel","1"),t}});q({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(r,e){var{parser:t}=r;return{type:"cdlabelparent",mode:t.mode,fragment:e[0]}},htmlBuilder(r,e){var t=C.wrapFragment(te(r.fragment,e),e);return t.classes.push("cd-vert-arrow"),t},mathmlBuilder(r,e){return new R.MathNode("mrow",[oe(r.fragment,e)])}});q({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 B("\\@char has non-numeric argument "+s);if(u<0||u>=1114111)throw new B("\\@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 R.MathNode("mstyle",t);return a.setAttribute("mathcolor",r.color),a};q({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(r,e){var{parser:t}=r,a=Q(e[0],"color-token").color,n=e[1];return{type:"color",mode:t.mode,color:a,body:ge(n)}},htmlBuilder:ho,mathmlBuilder:fo});q({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});q({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(r,e,t){var{parser:a}=r,n=a.gullet.future().text==="["?a.parseSizeGroup(!0):null,s=!a.settings.displayMode||!a.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:a.mode,newLine:s,size:n&&Q(n,"size").value}},htmlBuilder(r,e){var t=C.makeSpan(["mspace"],[],e);return r.newLine&&(t.classes.push("newline"),r.size&&(t.style.marginTop=I(he(r.size,e)))),t},mathmlBuilder(r,e){var t=new R.MathNode("mspace");return r.newLine&&(t.setAttribute("linebreak","newline"),r.size&&t.setAttribute("height",I(he(r.size,e)))),t}});var Br={"\\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 B("Expected a control sequence",r);return e},d2=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)};q({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(Br[a.text])return(t==="\\global"||t==="\\\\globallong")&&(a.text=Br[a.text]),Q(e.parseFunction(),"internal");throw new B("Invalid token after macro prefix",a)}});q({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 B("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 B('Invalid argument number "'+a.text+'"');if(parseInt(a.text)!==s+1)throw new B('Argument number "'+a.text+'" out of order');s++,l.push([])}else{if(a.text==="EOF")throw new B("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===Br[t]),{type:"internal",mode:e.mode}}});q({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=d2(e);return vo(e,a,n,t==="\\\\globallet"),{type:"internal",mode:e.mode}}});q({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 Z0=function(e,t,a){var n=le.math[e]&&le.math[e].replace,s=Jr(n||e,t,a);if(!s)throw new Error("Unsupported symbol "+e+" and font size "+t+".");return s},sa=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=I(s),e.height-=s,e.depth+=s},m2=function(e,t,a,n,s,o){var l=C.makeSymbol(e,"Main-Regular",s,n),u=sa(l,t,n,o);return a&&go(u,n,t),u},h2=function(e,t,a,n){return C.makeSymbol(e,"Size"+t+"-Regular",a,n)},bo=function(e,t,a,n,s,o){var l=h2(e,t,s,n),u=sa(C.makeSpan(["delimsizing","size"+t],[l],n),K.TEXT,n,o);return a&&go(u,n,K.TEXT),u},fr=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}},pr=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",b4(e,Math.round(1e3*t))),o=new c0([s],{width:I(n),height:I(t),style:"width:"+I(n),viewBox:"0 0 "+1e3*n+" "+Math.round(1e3*t),preserveAspectRatio:"xMinYMin"}),l=C.makeSvgSpan([],[o],a);return l.height=t,l.style.height=I(t),l.style.width=I(n),{type:"elem",elem:l}},jr=.008,Ct={type:"kern",size:-1*jr},f2=["|","\\lvert","\\rvert","\\vert"],p2=["\\|","\\lVert","\\rVert","\\Vert"],xo=function(e,t,a,n,s,o){var l,u,d,p,g="",w=0;l=d=p=e,u=null;var y="Size1-Regular";e==="\\uparrow"?d=p="⏐":e==="\\Uparrow"?d=p="‖":e==="\\downarrow"?l=d="⏐":e==="\\Downarrow"?l=d="‖":e==="\\updownarrow"?(l="\\uparrow",d="⏐",p="\\downarrow"):e==="\\Updownarrow"?(l="\\Uparrow",d="‖",p="\\Downarrow"):f2.includes(e)?(d="∣",g="vert",w=333):p2.includes(e)?(d="∥",g="doublevert",w=556):e==="["||e==="\\lbrack"?(l="⎡",d="⎢",p="⎣",y="Size4-Regular",g="lbrack",w=667):e==="]"||e==="\\rbrack"?(l="⎤",d="⎥",p="⎦",y="Size4-Regular",g="rbrack",w=667):e==="\\lfloor"||e==="⌊"?(d=l="⎢",p="⎣",y="Size4-Regular",g="lfloor",w=667):e==="\\lceil"||e==="⌈"?(l="⎡",d=p="⎢",y="Size4-Regular",g="lceil",w=667):e==="\\rfloor"||e==="⌋"?(d=l="⎥",p="⎦",y="Size4-Regular",g="rfloor",w=667):e==="\\rceil"||e==="⌉"?(l="⎤",d=p="⎥",y="Size4-Regular",g="rceil",w=667):e==="("||e==="\\lparen"?(l="⎛",d="⎜",p="⎝",y="Size4-Regular",g="lparen",w=875):e===")"||e==="\\rparen"?(l="⎞",d="⎟",p="⎠",y="Size4-Regular",g="rparen",w=875):e==="\\{"||e==="\\lbrace"?(l="⎧",u="⎨",p="⎩",d="⎪",y="Size4-Regular"):e==="\\}"||e==="\\rbrace"?(l="⎫",u="⎬",p="⎭",d="⎪",y="Size4-Regular"):e==="\\lgroup"||e==="⟮"?(l="⎧",p="⎩",d="⎪",y="Size4-Regular"):e==="\\rgroup"||e==="⟯"?(l="⎫",p="⎭",d="⎪",y="Size4-Regular"):e==="\\lmoustache"||e==="⎰"?(l="⎧",p="⎭",d="⎪",y="Size4-Regular"):(e==="\\rmoustache"||e==="⎱")&&(l="⎫",p="⎩",d="⎪",y="Size4-Regular");var M=Z0(l,y,s),k=M.height+M.depth,T=Z0(d,y,s),A=T.height+T.depth,E=Z0(p,y,s),j=E.height+E.depth,O=0,P=1;if(u!==null){var W=Z0(u,y,s);O=W.height+W.depth,P=2}var F=k+j+O,L=Math.max(0,Math.ceil((t-F)/(P*A))),X=F+L*P*A,de=n.fontMetrics().axisHeight;a&&(de*=n.sizeMultiplier);var ie=X/2-de,ae=[];if(g.length>0){var ce=X-k-j,ye=Math.round(X*1e3),fe=x4(g,Math.round(ce*1e3)),ve=new y0(g,fe),Me=(w/1e3).toFixed(3)+"em",$=(ye/1e3).toFixed(3)+"em",t0=new c0([ve],{width:Me,height:$,viewBox:"0 0 "+w+" "+ye}),Re=C.makeSvgSpan([],[t0],n);Re.height=ye/1e3,Re.style.width=Me,Re.style.height=$,ae.push({type:"elem",elem:Re})}else{if(ae.push(fr(p,y,s)),ae.push(Ct),u===null){var Le=X-k-j+2*jr;ae.push(pr(d,Le,n))}else{var Ce=(X-k-j-O)/2+2*jr;ae.push(pr(d,Ce,n)),ae.push(Ct),ae.push(fr(u,y,s)),ae.push(Ct),ae.push(pr(d,Ce,n))}ae.push(Ct),ae.push(fr(l,y,s))}var ne=n.havingBaseStyle(K.TEXT),we=C.makeVList({positionType:"bottom",positionData:ie,children:ae},ne);return sa(C.makeSpan(["delimsizing","mult"],[we],ne),K.TEXT,n,o)},vr=80,gr=.08,br=function(e,t,a,n,s){var o=g4(e,n,a),l=new y0(e,o),u=new c0([l],{width:"400em",height:I(t),viewBox:"0 0 400000 "+a,preserveAspectRatio:"xMinYMin slice"});return C.makeSvgSpan(["hide-tail"],[u],s)},v2=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,p=0,g;return n.type==="small"?(p=1e3+1e3*o+vr,e<1?s=1:e<1.4&&(s=.7),u=(1+o+gr)/s,d=(1+o)/s,l=br("sqrtMain",u,p,o,t),l.style.minWidth="0.853em",g=.833/s):n.type==="large"?(p=(1e3+vr)*K0[n.size],d=(K0[n.size]+o)/s,u=(K0[n.size]+o+gr)/s,l=br("sqrtSize"+n.size,u,p,o,t),l.style.minWidth="1.02em",g=1/s):(u=e+o+gr,d=e+o,p=Math.floor(1e3*e+o)+vr,l=br("sqrtTall",u,p,o,t),l.style.minWidth="0.742em",g=1.056),l.height=d,l.style.height=I(u),{span:l,advanceWidth:g,ruleWidth:(t.fontMetrics().sqrtRuleThickness+o)*s}},yo=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"],g2=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"],wo=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],K0=[0,1.2,1.8,2.4,3],b2=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(g2.includes(e))return xo(e,K0[t],!1,a,n,s);throw new B("Illegal delimiter: '"+e+"'")},x2=[{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}],y2=[{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"}],w2=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=Z0(e,w2(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=x2:yo.includes(e)?l=So:l=y2;var u=ko(e,t,l,n);return u.type==="small"?m2(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)},S2=function(e,t,a,n,s,o){var l=n.fontMetrics().axisHeight*n.sizeMultiplier,u=901,d=5/n.fontMetrics().ptPerEm,p=Math.max(t-l,a+l),g=Math.max(p/500*u,2*p-d);return Co(e,g,!0,n,s,o)},l0={sqrtImage:v2,sizedDelim:b2,sizeToMaxHeight:K0,customSizedDelim:Co,leftRightDelim:S2},un={"\\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}},k2=["(","\\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 Ut(r,e){var t=_t(r);if(t&&k2.includes(t.text))return t;throw t?new B("Invalid delimiter '"+t.text+"' after '"+e.funcName+"'",r):new B("Invalid delimiter type '"+r.type+"'",r)}q({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=Ut(e[0],r);return{type:"delimsizing",mode:r.parser.mode,size:un[r.funcName].size,mclass:un[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 R.MathNode("mo",e);r.mclass==="mopen"||r.mclass==="mclose"?t.setAttribute("fence","true"):t.setAttribute("fence","false"),t.setAttribute("stretchy","true");var a=I(l0.sizeToMaxHeight[r.size]);return t.setAttribute("minsize",a),t.setAttribute("maxsize",a),t}});function dn(r){if(!r.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}q({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 B("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:r.parser.mode,delim:Ut(e[0],r).text,color:t}}});q({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(r,e)=>{var t=Ut(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)=>{dn(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=tt(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],p=d.isMiddle;p&&(t[u]=l0.leftRightDelim(p.delim,a,n,p.options,r.mode,[]))}var g;if(r.right===".")g=tt(e,["mclose"]);else{var w=r.rightColor?e.withColor(r.rightColor):e;g=l0.leftRightDelim(r.right,a,n,w,r.mode,["mclose"])}return t.push(g),C.makeSpan(["minner"],t,e)},mathmlBuilder:(r,e)=>{dn(r);var t=Ee(r.body,e);if(r.left!=="."){var a=new R.MathNode("mo",[_e(r.left,r.mode)]);a.setAttribute("fence","true"),t.unshift(a)}if(r.right!=="."){var n=new R.MathNode("mo",[_e(r.right,r.mode)]);n.setAttribute("fence","true"),r.rightColor&&n.setAttribute("mathcolor",r.rightColor),t.push(n)}return ta(t)}});q({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(r,e)=>{var t=Ut(e[0],r);if(!r.parser.leftrightDepth)throw new B("\\middle without preceding \\left",t);return{type:"middle",mode:r.parser.mode,delim:t.text}},htmlBuilder:(r,e)=>{var t;if(r.delim===".")t=tt(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 R.MathNode("mo",[t]);return a.setAttribute("fence","true"),a.setAttribute("lspace","0.05em"),a.setAttribute("rspace","0.05em"),a}});var oa=(r,e)=>{var t=C.wrapFragment(te(r.body,e),e),a=r.label.slice(1),n=e.sizeMultiplier,s,o=0,l=re.isCharacterBox(r.body);if(a==="sout")s=C.makeSpan(["stretchy","sout"]),s.height=e.fontMetrics().defaultRuleThickness/n,o=-.5*e.fontMetrics().xHeight;else if(a==="phase"){var u=he({number:.6,unit:"pt"},e),d=he({number:.35,unit:"ex"},e),p=e.havingBaseSizing();n=n/p.sizeMultiplier;var g=t.height+t.depth+u+d;t.style.paddingLeft=I(g/2+u);var w=Math.floor(1e3*g*n),y=p4(w),M=new c0([new y0("phase",y)],{width:"400em",height:I(w/1e3),viewBox:"0 0 400000 "+w,preserveAspectRatio:"xMinYMin slice"});s=C.makeSvgSpan(["hide-tail"],[M],e),s.style.height=I(g),o=t.depth+u+d}else{/cancel/.test(a)?l||t.classes.push("cancel-pad"):a==="angl"?t.classes.push("anglpad"):t.classes.push("boxpad");var k=0,T=0,A=0;/box/.test(a)?(A=Math.max(e.fontMetrics().fboxrule,e.minRuleThickness),k=e.fontMetrics().fboxsep+(a==="colorbox"?0:A),T=k):a==="angl"?(A=Math.max(e.fontMetrics().defaultRuleThickness,e.minRuleThickness),k=4*A,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=I(A)):a==="angl"&&A!==.049&&(s.style.borderTopWidth=I(A),s.style.borderRightWidth=I(A)),o=t.depth+T,r.backgroundColor&&(s.style.backgroundColor=r.backgroundColor,r.borderColor&&(s.style.borderColor=r.borderColor))}var E;if(r.backgroundColor)E=C.makeVList({positionType:"individualShift",children:[{type:"elem",elem:s,shift:o},{type:"elem",elem:t,shift:0}]},e);else{var j=/cancel|phase/.test(a)?["svg-align"]:[];E=C.makeVList({positionType:"individualShift",children:[{type:"elem",elem:t,shift:0},{type:"elem",elem:s,shift:o,wrapperClasses:j}]},e)}return/cancel/.test(a)&&(E.height=t.height,E.depth=t.depth),/cancel/.test(a)&&!l?C.makeSpan(["mord","cancel-lap"],[E],e):C.makeSpan(["mord"],[E],e)},ia=(r,e)=>{var t=0,a=new R.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};q({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:oa,mathmlBuilder:ia});q({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:oa,mathmlBuilder:ia});q({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]}}});q({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:oa,mathmlBuilder:ia});q({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&&(Lt[e]=s),o&&(Bt[e]=o)}var zo={};function v(r,e){zo[r]=e}function mn(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 $t=r=>{var e=r.parser.settings;if(!e.displayMode)throw new B("{"+r.envName+"} can be used only in display mode.")};function la(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:p,maxNumCols:g,leqno:w}=e;if(r.gullet.beginGroup(),d||r.gullet.macros.set("\\cr","\\\\\\relax"),!o){var y=r.gullet.expandMacroAsText("\\arraystretch");if(y==null)o=1;else if(o=parseFloat(y),!o||o<0)throw new B("Invalid \\arraystretch: "+y)}r.gullet.beginGroup();var M=[],k=[M],T=[],A=[],E=u!=null?[]:void 0;function j(){u&&r.gullet.macros.set("\\@eqnsw","1",!0)}function O(){E&&(r.gullet.macros.get("\\df@tag")?(E.push(r.subparse([new Ie("\\df@tag")])),r.gullet.macros.set("\\df@tag",void 0,!0)):E.push(!!u&&r.gullet.macros.get("\\@eqnsw")==="1"))}for(j(),A.push(mn(r));;){var P=r.parseExpression(!1,d?"\\end":"\\\\");r.gullet.endGroup(),r.gullet.beginGroup(),P={type:"ordgroup",mode:r.mode,body:P},t&&(P={type:"styling",mode:r.mode,style:t,body:[P]}),M.push(P);var W=r.fetch().text;if(W==="&"){if(g&&M.length===g){if(d||l)throw new B("Too many tab characters: &",r.nextToken);r.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}r.consume()}else if(W==="\\end"){O(),M.length===1&&P.type==="styling"&&P.body[0].body.length===0&&(k.length>1||!p)&&k.pop(),A.length<k.length+1&&A.push([]);break}else if(W==="\\\\"){r.consume();var F=void 0;r.gullet.future().text!==" "&&(F=r.parseSizeGroup(!0)),T.push(F?F.value:null),O(),A.push(mn(r)),M=[],k.push(M),j()}else throw new B("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:A,colSeparationType:l,tags:E,leqno:w}}function ca(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=[],p=Math.max(t.fontMetrics().arrayRuleWidth,t.minRuleThickness),g=1/t.fontMetrics().ptPerEm,w=5*g;if(e.colSeparationType&&e.colSeparationType==="small"){var y=t.havingStyle(K.SCRIPT).sizeMultiplier;w=.2778*(y/t.sizeMultiplier)}var M=e.colSeparationType==="CD"?he({number:3,unit:"ex"},t):12*g,k=3*g,T=e.arraystretch*M,A=.7*T,E=.3*T,j=0;function O(st){for(var ot=0;ot<st.length;++ot)ot>0&&(j+=.25),d.push({pos:j,isDashed:st[ot]})}for(O(o[0]),a=0;a<e.body.length;++a){var P=e.body[a],W=A,F=E;l<P.length&&(l=P.length);var L=new Array(P.length);for(n=0;n<P.length;++n){var X=te(P[n],t);F<X.depth&&(F=X.depth),W<X.height&&(W=X.height),L[n]=X}var de=e.rowGaps[a],ie=0;de&&(ie=he(de,t),ie>0&&(ie+=E,F<ie&&(F=ie),ie=0)),e.addJot&&(F+=k),L.height=W,L.depth=F,j+=W,L.pos=j,j+=F+ie,u[a]=L,O(o[a+1])}var ae=j/2+t.fontMetrics().axisHeight,ce=e.cols||[],ye=[],fe,ve,Me=[];if(e.tags&&e.tags.some(st=>st))for(a=0;a<s;++a){var $=u[a],t0=$.pos-ae,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=$.depth,Le.height=$.height,Me.push({type:"elem",elem:Le,shift:t0})}for(n=0,ve=0;n<l||ve<ce.length;++n,++ve){for(var Ce=ce[ve]||{},ne=!0;Ce.type==="separator";){if(ne||(fe=C.makeSpan(["arraycolsep"],[]),fe.style.width=I(t.fontMetrics().doubleRuleSep),ye.push(fe)),Ce.separator==="|"||Ce.separator===":"){var we=Ce.separator==="|"?"solid":"dashed",Be=C.makeSpan(["vertical-separator"],[],t);Be.style.height=I(j),Be.style.borderRightWidth=I(p),Be.style.borderRightStyle=we,Be.style.margin="0 "+I(-p/2);var k0=j-ae;k0&&(Be.style.verticalAlign=I(-k0)),ye.push(Be)}else throw new B("Invalid separator type: "+Ce.separator);ve++,Ce=ce[ve]||{},ne=!1}if(!(n>=l)){var se=void 0;(n>0||e.hskipBeforeAndAfter)&&(se=re.deflt(Ce.pregap,w),se!==0&&(fe=C.makeSpan(["arraycolsep"],[]),fe.style.width=I(se),ye.push(fe)));var Ge=[];for(a=0;a<s;++a){var Oe=u[a],Fe=Oe[n];if(Fe){var _=Oe.pos-ae;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]),ye.push(Ge),(n<l-1||e.hskipBeforeAndAfter)&&(se=re.deflt(Ce.postgap,w),se!==0&&(fe=C.makeSpan(["arraycolsep"],[]),fe.style.width=I(se),ye.push(fe)))}}if(u=C.makeSpan(["mtable"],ye),d.length>0){for(var qe=C.makeLineSpan("hline",t,p),Uo=C.makeLineSpan("hdashline",t,p),Xt=[{type:"elem",elem:u,shift:0}];d.length>0;){var va=d.pop(),ga=va.pos-ae;va.isDashed?Xt.push({type:"elem",elem:Uo,shift:ga}):Xt.push({type:"elem",elem:qe,shift:ga})}u=C.makeVList({positionType:"individualShift",children:Xt},t)}if(Me.length===0)return C.makeSpan(["mord"],[u],t);var Yt=C.makeVList({positionType:"individualShift",children:Me},t);return Yt=C.makeSpan(["tag"],[Yt],t),C.makeFragment([u,Yt])},C2={c:"center ",l:"left ",r:"right "},e0=function(e,t){for(var a=[],n=new R.MathNode("mtd",[],["mtr-glue"]),s=new R.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 R.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 R.MathNode("mtr",u))}var p=new R.MathNode("mtable",a),g=e.arraystretch===.5?.1:.16+e.arraystretch-1+(e.addJot?.09:0);p.setAttribute("rowspacing",I(g));var w="",y="";if(e.cols&&e.cols.length>0){var M=e.cols,k="",T=!1,A=0,E=M.length;M[0].type==="separator"&&(w+="top ",A=1),M[M.length-1].type==="separator"&&(w+="bottom ",E-=1);for(var j=A;j<E;j++)M[j].type==="align"?(y+=C2[M[j].align],T&&(k+="none "),T=!0):M[j].type==="separator"&&T&&(k+=M[j].separator==="|"?"solid ":"dashed ",T=!1);p.setAttribute("columnalign",y.trim()),/[sd]/.test(k)&&p.setAttribute("columnlines",k.trim())}if(e.colSeparationType==="align"){for(var O=e.cols||[],P="",W=1;W<O.length;W++)P+=W%2?"0em ":"1em ";p.setAttribute("columnspacing",P.trim())}else e.colSeparationType==="alignat"||e.colSeparationType==="gather"?p.setAttribute("columnspacing","0em"):e.colSeparationType==="small"?p.setAttribute("columnspacing","0.2778em"):e.colSeparationType==="CD"?p.setAttribute("columnspacing","0.5em"):p.setAttribute("columnspacing","1em");var F="",L=e.hLinesBeforeRow;w+=L[0].length>0?"left ":"",w+=L[L.length-1].length>0?"right ":"";for(var X=1;X<L.length-1;X++)F+=L[X].length===0?"none ":L[X][0]?"dashed ":"solid ";return/[sd]/.test(F)&&p.setAttribute("rowlines",F.trim()),w!==""&&(p=new R.MathNode("menclose",[p]),p.setAttribute("notation",w.trim())),e.arraystretch&&e.arraystretch<1&&(p=new R.MathNode("mstyle",[p]),p.setAttribute("scriptlevel","1")),p},To=function(e,t){e.envName.indexOf("ed")===-1&&$t(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:la(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 p="",g=0;g<t[0].body.length;g++){var w=Q(t[0].body[g],"textord");p+=w.text}l=Number(p),u=l*2}var y=!u;o.body.forEach(function(A){for(var E=1;E<A.length;E+=2){var j=Q(A[E],"styling"),O=Q(j.body[0],"ordgroup");O.body.unshift(d)}if(y)u<A.length&&(u=A.length);else{var P=A.length/2;if(l<P)throw new B("Too many math in a row: "+("expected "+l+", but got "+P),A[0])}});for(var M=0;M<u;++M){var k="r",T=0;M%2===1?k="l":M>0&&y&&(T=1),a[M]={type:"align",align:k,pregap:T,postgap:0}}return o.colSeparationType=y?"align":"alignat",o};Je({type:"array",names:["array","darray"],props:{numArgs:1},handler(r,e){var t=_t(e[0]),a=t?[e[0]]:Q(e[0],"ordgroup").body,n=a.map(function(o){var l=aa(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 B("Unknown column alignment: "+u,o)}),s={cols:n,hskipBeforeAndAfter:!0,maxNumCols:n.length};return S0(r.parser,s,ca(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 B("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,ca(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=_t(e[0]),a=t?[e[0]]:Q(e[0],"ordgroup").body,n=a.map(function(o){var l=aa(o),u=l.text;if("lc".indexOf(u)!==-1)return{type:"align",align:u};throw new B("Unknown column alignment: "+u,o)});if(n.length>1)throw new B("{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 B("{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,ca(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)&&$t(r);var e={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:la(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){$t(r);var e={autoTag:la(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 $t(r),u2(r.parser)},htmlBuilder:Qe,mathmlBuilder:e0});v("\\nonumber","\\gdef\\@eqnsw{0}");v("\\notag","\\nonumber");q({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(r,e){throw new B(r.funcName+" valid only within array environment")}});var hn=Mo;q({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 B("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(!hn.hasOwnProperty(s))throw new B("No such environment: "+s,n);var l=hn[s],{args:u,optArgs:d}=t.parseArguments("\\begin{"+s+"}",l),p={mode:t.mode,envName:s,parser:t},g=l.handler(p,u,d);t.expect("\\end",!1);var w=t.nextToken,y=Q(t.parseFunction(),"environment");if(y.name!==s)throw new B("Mismatch: \\begin{"+s+"} matched by \\end{"+y.name+"}",w);return g}return{type:"environment",mode:t.mode,name:s,nameGroup:n}}});var No=(r,e)=>{var t=r.font,a=e.withFont(t);return te(r.body,a)},Ao=(r,e)=>{var t=r.font,a=e.withFont(t);return oe(r.body,a)},fn={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};q({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=jt(e[0]),s=a;return s in fn&&(s=fn[s]),{type:"font",mode:t.mode,font:s.slice(1),body:n}},htmlBuilder:No,mathmlBuilder:Ao});q({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(r,e)=>{var{parser:t}=r,a=e[0],n=re.isCharacterBox(a);return{type:"mclass",mode:t.mode,mclass:Gt(a),body:[{type:"font",mode:t.mode,font:"boldsymbol",body:a}],isCharacterBox:n}}});q({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:No,mathmlBuilder:Ao});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},ua=(r,e)=>{var t=Do(r.size,e.style),a=t.fracNum(),n=t.fracDen(),s;s=e.havingStyle(a);var o=te(r.numer,s,e);if(r.continued){var l=8.5/e.fontMetrics().ptPerEm,u=3.5/e.fontMetrics().ptPerEm;o.height=o.height<l?l:o.height,o.depth=o.depth<u?u:o.depth}s=e.havingStyle(n);var d=te(r.denom,s,e),p,g,w;r.hasBarLine?(r.barSize?(g=he(r.barSize,e),p=C.makeLineSpan("frac-line",e,g)):p=C.makeLineSpan("frac-line",e),g=p.height,w=p.height):(p=null,g=0,w=e.fontMetrics().defaultRuleThickness);var y,M,k;t.size===K.DISPLAY.size||r.size==="display"?(y=e.fontMetrics().num1,g>0?M=3*w:M=7*w,k=e.fontMetrics().denom1):(g>0?(y=e.fontMetrics().num2,M=w):(y=e.fontMetrics().num3,M=3*w),k=e.fontMetrics().denom2);var T;if(p){var E=e.fontMetrics().axisHeight;y-o.depth-(E+.5*g)<M&&(y+=M-(y-o.depth-(E+.5*g))),E-.5*g-(d.height-k)<M&&(k+=M-(E-.5*g-(d.height-k)));var j=-(E-.5*g);T=C.makeVList({positionType:"individualShift",children:[{type:"elem",elem:d,shift:k},{type:"elem",elem:p,shift:j},{type:"elem",elem:o,shift:-y}]},e)}else{var A=y-o.depth-(d.height-k);A<M&&(y+=.5*(M-A),k+=.5*(M-A)),T=C.makeVList({positionType:"individualShift",children:[{type:"elem",elem:d,shift:k},{type:"elem",elem:o,shift:-y}]},e)}s=e.havingStyle(t),T.height*=s.sizeMultiplier/e.sizeMultiplier,T.depth*=s.sizeMultiplier/e.sizeMultiplier;var O;t.size===K.DISPLAY.size?O=e.fontMetrics().delim1:t.size===K.SCRIPTSCRIPT.size?O=e.havingStyle(K.SCRIPT).fontMetrics().delim2:O=e.fontMetrics().delim2;var P,W;return r.leftDelim==null?P=tt(e,["mopen"]):P=l0.customSizedDelim(r.leftDelim,O,!0,e.havingStyle(t),r.mode,["mopen"]),r.continued?W=C.makeSpan([]):r.rightDelim==null?W=tt(e,["mclose"]):W=l0.customSizedDelim(r.rightDelim,O,!0,e.havingStyle(t),r.mode,["mclose"]),C.makeSpan(["mord"].concat(s.sizingClasses(e)),[P,C.makeSpan(["mfrac"],[T]),W],e)},da=(r,e)=>{var t=new R.MathNode("mfrac",[oe(r.numer,e),oe(r.denom,e)]);if(!r.hasBarLine)t.setAttribute("linethickness","0px");else if(r.barSize){var a=he(r.barSize,e);t.setAttribute("linethickness",I(a))}var n=Do(r.size,e.style);if(n.size!==e.style.size){t=new R.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 R.MathNode("mo",[new R.TextNode(r.leftDelim.replace("\\",""))]);l.setAttribute("fence","true"),o.push(l)}if(o.push(t),r.rightDelim!=null){var u=new R.MathNode("mo",[new R.TextNode(r.rightDelim.replace("\\",""))]);u.setAttribute("fence","true"),o.push(u)}return ta(o)}return t};q({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:ua,mathmlBuilder:da});q({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}}});q({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 pn=["display","text","script","scriptscript"],vn=function(e){var t=null;return e.length>0&&(t=e,t=t==="."?null:t),t};q({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=jt(e[0]),o=s.type==="atom"&&s.family==="open"?vn(s.text):null,l=jt(e[1]),u=l.type==="atom"&&l.family==="close"?vn(l.text):null,d=Q(e[2],"size"),p,g=null;d.isBlank?p=!0:(g=d.value,p=g.number>0);var w="auto",y=e[3];if(y.type==="ordgroup"){if(y.body.length>0){var M=Q(y.body[0],"textord");w=pn[Number(M.text)]}}else y=Q(y,"textord"),w=pn[Number(y.text)];return{type:"genfrac",mode:t.mode,numer:a,denom:n,continued:!1,hasBarLine:p,barSize:g,leftDelim:o,rightDelim:u,size:w}},htmlBuilder:ua,mathmlBuilder:da});q({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}}});q({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(r,e)=>{var{parser:t,funcName:a}=r,n=e[0],s=e4(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:ua,mathmlBuilder:da});var Eo=(r,e)=>{var t=e.style,a,n;r.type==="supsub"?(a=r.sup?te(r.sup,e.havingStyle(t.sup()),e):te(r.sub,e.havingStyle(t.sub()),e),n=Q(r.base,"horizBrace")):n=Q(r,"horizBrace");var s=te(n.base,e.havingBaseStyle(K.DISPLAY)),o=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)},M2=(r,e)=>{var t=d0.mathMLnode(r.label);return new R.MathNode(r.isOver?"mover":"munder",[oe(r.base,e),t])};q({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:M2});q({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(r,e)=>{var{parser:t}=r,a=e[1],n=Q(e[0],"url").url;return t.settings.isTrusted({command:"\\href",url:n})?{type:"href",mode:t.mode,href:n,body:ge(a)}:t.formatUnsupportedCmd("\\href")},htmlBuilder:(r,e)=>{var t=ke(r.body,e,!1);return C.makeAnchor(r.href,[],t,e)},mathmlBuilder:(r,e)=>{var t=w0(r.body,e);return t instanceof je||(t=new je("mrow",[t])),t.setAttribute("href",r.href),t}});q({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(r,e)=>{var{parser:t}=r,a=Q(e[0],"url").url;if(!t.settings.isTrusted({command:"\\url",url:a}))return t.formatUnsupportedCmd("\\url");for(var n=[],s=0;s<a.length;s++){var o=a[s];o==="~"&&(o="\\textasciitilde"),n.push({type:"textord",mode:"text",text:o})}var l={type:"text",mode:t.mode,font:"\\texttt",body:n};return{type:"href",mode:t.mode,href:a,body:ge(l)}}});q({type:"hbox",names:["\\hbox"],props:{numArgs:1,argTypes:["text"],allowedInText:!0,primitive:!0},handler(r,e){var{parser:t}=r;return{type:"hbox",mode:t.mode,body:ge(e[0])}},htmlBuilder(r,e){var t=ke(r.body,e,!1);return C.makeFragment(t)},mathmlBuilder(r,e){return new R.MathNode("mrow",Ee(r.body,e))}});q({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(","),p=0;p<d.length;p++){var g=d[p].split("=");if(g.length!==2)throw new B("Error parsing key-value for \\htmlData");u["data-"+g[0].trim()]=g[1].trim()}l={command:"\\htmlData",attributes:u};break}default:throw new Error("Unrecognized html command")}return t.settings.isTrusted(l)?{type:"html",mode:t.mode,attributes:u,body:ge(o)}:t.formatUnsupportedCmd(a)},htmlBuilder:(r,e)=>{var t=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)});q({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:(r,e)=>{var{parser:t}=r;return{type:"htmlmathml",mode:t.mode,html:ge(e[0]),mathml:ge(e[1])}},htmlBuilder:(r,e)=>{var t=ke(r.html,e,!1);return C.makeFragment(t)},mathmlBuilder:(r,e)=>w0(r.mathml,e)});var xr=function(e){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(e))return{number:+e,unit:"bp"};var t=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(e);if(!t)throw new B("Invalid size: '"+e+"' in \\includegraphics");var a={number:+(t[1]+t[2]),unit:t[3]};if(!Ys(a))throw new B("Invalid unit: '"+a.unit+"' in \\includegraphics.");return a};q({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(","),p=0;p<d.length;p++){var g=d[p].split("=");if(g.length===2){var w=g[1].trim();switch(g[0].trim()){case"alt":l=w;break;case"width":n=xr(w);break;case"height":s=xr(w);break;case"totalheight":o=xr(w);break;default:throw new B("Invalid key: '"+g[0]+"' in \\includegraphics.")}}}var y=Q(e[0],"url").url;return l===""&&(l=y,l=l.replace(/^.*[\\/]/,""),l=l.substring(0,l.lastIndexOf("."))),a.settings.isTrusted({command:"\\includegraphics",url:y})?{type:"includegraphics",mode:a.mode,alt:l,width:n,height:s,totalheight:o,src:y}:a.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:(r,e)=>{var t=he(r.height,e),a=0;r.totalheight.number>0&&(a=he(r.totalheight,e)-t);var n=0;r.width.number>0&&(n=he(r.width,e));var s={height:I(t+a)};n>0&&(s.width=I(n)),a>0&&(s.verticalAlign=I(-a));var o=new M4(r.src,r.alt,s);return o.height=t,o.depth=a,o},mathmlBuilder:(r,e)=>{var t=new R.MathNode("mglyph",[]);t.setAttribute("alt",r.alt);var a=he(r.height,e),n=0;if(r.totalheight.number>0&&(n=he(r.totalheight,e)-a,t.setAttribute("valign",I(-n))),t.setAttribute("height",I(a+n)),r.width.number>0){var s=he(r.width,e);t.setAttribute("width",I(s))}return t.setAttribute("src",r.src),t}});q({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=he(r.dimension,e);return new R.SpaceNode(t)}});q({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(r,e)=>{var{parser:t,funcName:a}=r,n=e[0];return{type:"lap",mode:t.mode,alignment:a.slice(5),body:n}},htmlBuilder:(r,e)=>{var t;r.alignment==="clap"?(t=C.makeSpan([],[te(r.body,e)]),t=C.makeSpan(["inner"],[t],e)):t=C.makeSpan(["inner"],[te(r.body,e)]);var a=C.makeSpan(["fix"],[]),n=C.makeSpan([r.alignment],[t,a],e),s=C.makeSpan(["strut"]);return s.style.height=I(n.height+n.depth),n.depth&&(s.style.verticalAlign=I(-n.depth)),n.children.unshift(s),n=C.makeSpan(["thinbox"],[n],e),C.makeSpan(["mord","vbox"],[n],e)},mathmlBuilder:(r,e)=>{var t=new R.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}});q({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}}});q({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(r,e){throw new B("Mismatched "+r.funcName)}});var gn=(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}};q({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(r,e)=>{var{parser:t}=r;return{type:"mathchoice",mode:t.mode,display:ge(e[0]),text:ge(e[1]),script:ge(e[2]),scriptscript:ge(e[3])}},htmlBuilder:(r,e)=>{var t=gn(r,e),a=ke(t,e,!1);return C.makeFragment(a)},mathmlBuilder:(r,e)=>{var t=gn(r,e);return w0(t,e)}});var Ro=(r,e,t,a,n,s,o)=>{r=C.makeSpan([],[r]);var l=t&&re.isCharacterBox(t),u,d;if(e){var p=te(e,a.havingStyle(n.sup()),a);d={elem:p,kern:Math.max(a.fontMetrics().bigOpSpacing1,a.fontMetrics().bigOpSpacing3-p.depth)}}if(t){var g=te(t,a.havingStyle(n.sub()),a);u={elem:g,kern:Math.max(a.fontMetrics().bigOpSpacing2,a.fontMetrics().bigOpSpacing4-g.height)}}var w;if(d&&u){var y=a.fontMetrics().bigOpSpacing5+u.elem.height+u.elem.depth+u.kern+r.depth+o;w=C.makeVList({positionType:"bottom",positionData:y,children:[{type:"kern",size:a.fontMetrics().bigOpSpacing5},{type:"elem",elem:u.elem,marginLeft:I(-s)},{type:"kern",size:u.kern},{type:"elem",elem:r},{type:"kern",size:d.kern},{type:"elem",elem:d.elem,marginLeft:I(s)},{type:"kern",size:a.fontMetrics().bigOpSpacing5}]},a)}else if(u){var M=r.height-o;w=C.makeVList({positionType:"top",positionData:M,children:[{type:"kern",size:a.fontMetrics().bigOpSpacing5},{type:"elem",elem:u.elem,marginLeft:I(-s)},{type:"kern",size:u.kern},{type:"elem",elem:r}]},a)}else if(d){var k=r.depth+o;w=C.makeVList({positionType:"bottom",positionData:k,children:[{type:"elem",elem:r},{type:"kern",size:d.kern},{type:"elem",elem:d.elem,marginLeft:I(s)},{type:"kern",size:a.fontMetrics().bigOpSpacing5}]},a)}else return r;var T=[w];if(u&&s!==0&&!l){var A=C.makeSpan(["mspace"],[],a);A.style.marginRight=I(s),T.unshift(A)}return C.makeSpan(["mop","op-limits"],T,a)},Lo=["\\smallint"],X0=(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",p="";if((s.name==="\\oiint"||s.name==="\\oiiint")&&(p=s.name.slice(1),s.name=p==="oiint"?"\\iint":"\\iiint"),u=C.makeSymbol(s.name,d,"math",e,["mop","op-symbol",l?"large-op":"small-op"]),p.length>0){var g=u.italic,w=C.staticSvg(p+"Size"+(l?"2":"1"),e);u=C.makeVList({positionType:"individualShift",children:[{type:"elem",elem:u,shift:0},{type:"elem",elem:w,shift:l?.08:0}]},e),s.name="\\"+p,u.classes.unshift("mop"),u.italic=g}}else if(s.body){var y=ke(s.body,e,!0);y.length===1&&y[0]instanceof Ve?(u=y[0],u.classes[0]="mop"):u=C.makeSpan(["mop"],y,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,A=0;return(u instanceof Ve||s.name==="\\oiint"||s.name==="\\oiiint")&&!s.suppressBaseShift&&(T=(u.height-u.depth)/2-e.fontMetrics().axisHeight,A=u.italic),n?Ro(u,t,a,e,o,A,T):(T&&(u.style.position="relative",u.style.top=I(T)),u)},nt=(r,e)=>{var t;if(r.symbol)t=new je("mo",[_e(r.name,r.mode)]),Lo.includes(r.name)&&t.setAttribute("largeop","false");else if(r.body)t=new je("mo",Ee(r.body,e));else{t=new je("mi",[new Ze(r.name.slice(1))]);var a=new je("mo",[_e("","text")]);r.parentIsSupSub?t=new je("mrow",[t,a]):t=oo([t,a])}return t},z2={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};q({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=z2[n]),{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:n}},htmlBuilder:X0,mathmlBuilder:nt});q({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(r,e)=>{var{parser:t}=r,a=e[0];return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:ge(a)}},htmlBuilder:X0,mathmlBuilder:nt});var T2={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};q({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:X0,mathmlBuilder:nt});q({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:X0,mathmlBuilder:nt});q({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=T2[a]),{type:"op",mode:e.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:a}},htmlBuilder:X0,mathmlBuilder:nt});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 w=g.text;return typeof w=="string"?{type:"textord",mode:g.mode,text:w}:g}),u=ke(l,e.withFont("mathrm"),!0),d=0;d<u.length;d++){var p=u[d];p instanceof Ve&&(p.text=p.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},N2=(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 R.SpaceNode))if(s instanceof R.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 R.TextNode?o.text=o.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):a=!1;break}default:a=!1}else a=!1}if(a){var l=t.map(p=>p.toText()).join("");t=[new R.TextNode(l)]}var u=new R.MathNode("mi",t);u.setAttribute("mathvariant","normal");var d=new R.MathNode("mo",[_e("","text")]);return r.parentIsSupSub?new R.MathNode("mrow",[u,d]):R.newDocumentFragment([u,d])};q({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(r,e)=>{var{parser:t,funcName:a}=r,n=e[0];return{type:"operatorname",mode:t.mode,body:ge(n),alwaysHandleSupSub:a==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:Bo,mathmlBuilder:N2});v("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");L0({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)}});q({type:"overline",names:["\\overline"],props:{numArgs:1},handler(r,e){var{parser:t}=r,a=e[0];return{type:"overline",mode:t.mode,body:a}},htmlBuilder(r,e){var t=te(r.body,e.havingCrampedStyle()),a=C.makeLineSpan("overline-line",e),n=e.fontMetrics().defaultRuleThickness,s=C.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:t},{type:"kern",size:3*n},{type:"elem",elem:a},{type:"kern",size:n}]},e);return C.makeSpan(["mord","overline"],[s],e)},mathmlBuilder(r,e){var t=new R.MathNode("mo",[new R.TextNode("‾")]);t.setAttribute("stretchy","true");var a=new R.MathNode("mover",[oe(r.body,e),t]);return a.setAttribute("accent","true"),a}});q({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(r,e)=>{var{parser:t}=r,a=e[0];return{type:"phantom",mode:t.mode,body:ge(a)}},htmlBuilder:(r,e)=>{var t=ke(r.body,e.withPhantom(),!1);return C.makeFragment(t)},mathmlBuilder:(r,e)=>{var t=Ee(r.body,e);return new R.MathNode("mphantom",t)}});q({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:(r,e)=>{var{parser:t}=r,a=e[0];return{type:"hphantom",mode:t.mode,body:a}},htmlBuilder:(r,e)=>{var t=C.makeSpan([],[te(r.body,e.withPhantom())]);if(t.height=0,t.depth=0,t.children)for(var a=0;a<t.children.length;a++)t.children[a].height=0,t.children[a].depth=0;return t=C.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:t}]},e),C.makeSpan(["mord"],[t],e)},mathmlBuilder:(r,e)=>{var t=Ee(ge(r.body),e),a=new R.MathNode("mphantom",t),n=new R.MathNode("mpadded",[a]);return n.setAttribute("height","0px"),n.setAttribute("depth","0px"),n}});q({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(r,e)=>{var{parser:t}=r,a=e[0];return{type:"vphantom",mode:t.mode,body:a}},htmlBuilder:(r,e)=>{var t=C.makeSpan(["inner"],[te(r.body,e.withPhantom())]),a=C.makeSpan(["fix"],[]);return C.makeSpan(["mord","rlap"],[t,a],e)},mathmlBuilder:(r,e)=>{var t=Ee(ge(r.body),e),a=new R.MathNode("mphantom",t),n=new R.MathNode("mpadded",[a]);return n.setAttribute("width","0px"),n}});q({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(r,e){var{parser:t}=r,a=Q(e[0],"size").value,n=e[1];return{type:"raisebox",mode:t.mode,dy:a,body:n}},htmlBuilder(r,e){var t=te(r.body,e),a=he(r.dy,e);return C.makeVList({positionType:"shift",positionData:-a,children:[{type:"elem",elem:t}]},e)},mathmlBuilder(r,e){var t=new R.MathNode("mpadded",[oe(r.body,e)]),a=r.dy.number+r.dy.unit;return t.setAttribute("voffset",a),t}});q({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(r){var{parser:e}=r;return{type:"internal",mode:e.mode}}});q({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=he(r.width,e),n=he(r.height,e),s=r.shift?he(r.shift,e):0;return t.style.borderRightWidth=I(a),t.style.borderTopWidth=I(n),t.style.bottom=I(s),t.width=a,t.height=n+s,t.depth=-s,t.maxFontSize=n*1.125*e.sizeMultiplier,t},mathmlBuilder(r,e){var t=he(r.width,e),a=he(r.height,e),n=r.shift?he(r.shift,e):0,s=e.color&&e.getColor()||"black",o=new R.MathNode("mspace");o.setAttribute("mathbackground",s),o.setAttribute("width",I(t)),o.setAttribute("height",I(a));var l=new R.MathNode("mpadded",[o]);return n>=0?l.setAttribute("height",I(n)):(l.setAttribute("height",I(n)),l.setAttribute("depth",I(-n))),l.setAttribute("voffset",I(n)),l}});function jo(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 bn=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],A2=(r,e)=>{var t=e.havingSize(r.size);return jo(r.body,t,e)};q({type:"sizing",names:bn,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:bn.indexOf(a)+1,body:s}},htmlBuilder:A2,mathmlBuilder:(r,e)=>{var t=e.havingSize(r.size),a=Ee(r.body,t),n=new R.MathNode("mstyle",a);return n.setAttribute("mathsize",I(t.sizeMultiplier)),n}});q({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 p=e[0];return{type:"smash",mode:a.mode,body:p,smashHeight:n,smashDepth:s}},htmlBuilder:(r,e)=>{var t=C.makeSpan([],[te(r.body,e)]);if(!r.smashHeight&&!r.smashDepth)return t;if(r.smashHeight&&(t.height=0,t.children))for(var a=0;a<t.children.length;a++)t.children[a].height=0;if(r.smashDepth&&(t.depth=0,t.children))for(var n=0;n<t.children.length;n++)t.children[n].depth=0;var s=C.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:t}]},e);return C.makeSpan(["mord"],[s],e)},mathmlBuilder:(r,e)=>{var t=new R.MathNode("mpadded",[oe(r.body,e)]);return r.smashHeight&&t.setAttribute("height","0px"),r.smashDepth&&t.setAttribute("depth","0px"),t}});q({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(r,e,t){var{parser:a}=r,n=t[0],s=e[0];return{type:"sqrt",mode:a.mode,body:s,index:n}},htmlBuilder(r,e){var t=te(r.body,e.havingCrampedStyle());t.height===0&&(t.height=e.fontMetrics().xHeight),t=C.wrapFragment(t,e);var a=e.fontMetrics(),n=a.defaultRuleThickness,s=n;e.style.id<K.TEXT.id&&(s=e.fontMetrics().xHeight);var o=n+s/4,l=t.height+t.depth+o+n,{span:u,ruleWidth:d,advanceWidth:p}=l0.sqrtImage(l,e),g=u.height-d;g>t.height+t.depth+o&&(o=(o+g-t.height-t.depth)/2);var w=u.height-t.height-o-d;t.style.paddingLeft=I(p);var y=C.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:t,wrapperClasses:["svg-align"]},{type:"kern",size:-(t.height+w)},{type:"elem",elem:u},{type:"kern",size:d}]},e);if(r.index){var M=e.havingStyle(K.SCRIPTSCRIPT),k=te(r.index,M,e),T=.6*(y.height-y.depth),A=C.makeVList({positionType:"shift",positionData:-T,children:[{type:"elem",elem:k}]},e),E=C.makeSpan(["root"],[A]);return C.makeSpan(["mord","sqrt"],[E,y],e)}else return C.makeSpan(["mord","sqrt"],[y],e)},mathmlBuilder(r,e){var{body:t,index:a}=r;return a?new R.MathNode("mroot",[oe(t,e),oe(a,e)]):new R.MathNode("msqrt",[oe(t,e)])}});var xn={display:K.DISPLAY,text:K.TEXT,script:K.SCRIPT,scriptscript:K.SCRIPTSCRIPT};q({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=xn[r.style],a=e.havingStyle(t).withFont("");return jo(r.body,a,e)},mathmlBuilder(r,e){var t=xn[r.style],a=e.havingStyle(t),n=Ee(r.body,a),s=new R.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 D2=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?X0: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 re.isCharacterBox(a.base)?na:null;if(a.type==="horizBrace"){var o=!e.sub;return o===a.isOver?Eo:null}else return null}else return null};L0({type:"supsub",htmlBuilder(r,e){var t=D2(r,e);if(t)return t(r,e);var{base:a,sup:n,sub:s}=r,o=te(a,e),l,u,d=e.fontMetrics(),p=0,g=0,w=a&&re.isCharacterBox(a);if(n){var y=e.havingStyle(e.style.sup());l=te(n,y,e),w||(p=o.height-y.fontMetrics().supDrop*y.sizeMultiplier/e.sizeMultiplier)}if(s){var M=e.havingStyle(e.style.sub());u=te(s,M,e),w||(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,A=I(.5/d.ptPerEm/T),E=null;if(u){var j=r.base&&r.base.type==="op"&&r.base.name&&(r.base.name==="\\oiint"||r.base.name==="\\oiiint");(o instanceof Ve||j)&&(E=I(-o.italic))}var O;if(l&&u){p=Math.max(p,k,l.depth+.25*d.xHeight),g=Math.max(g,d.sub2);var P=d.defaultRuleThickness,W=4*P;if(p-l.depth-(u.height-g)<W){g=W-(p-l.depth)+u.height;var F=.8*d.xHeight-(p-l.depth);F>0&&(p+=F,g-=F)}var L=[{type:"elem",elem:u,shift:g,marginRight:A,marginLeft:E},{type:"elem",elem:l,shift:-p,marginRight:A}];O=C.makeVList({positionType:"individualShift",children:L},e)}else if(u){g=Math.max(g,d.sub1,u.height-.8*d.xHeight);var X=[{type:"elem",elem:u,marginLeft:E,marginRight:A}];O=C.makeVList({positionType:"shift",positionData:g,children:X},e)}else if(l)p=Math.max(p,k,l.depth+.25*d.xHeight),O=C.makeVList({positionType:"shift",positionData:-p,children:[{type:"elem",elem:l,marginRight:A}]},e);else throw new Error("supsub must have either sup or sub.");var de=Rr(o,"right")||"mord";return C.makeSpan([de],[o,C.makeSpan(["msupsub"],[O])],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 R.MathNode(o,s)}});L0({type:"atom",htmlBuilder(r,e){return C.mathsym(r.text,r.mode,e,["m"+r.family])},mathmlBuilder(r,e){var t=new R.MathNode("mo",[_e(r.text,r.mode)]);if(r.family==="bin"){var a=ra(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 Io={mi:"italic",mn:"normal",mtext:"normal"};L0({type:"mathord",htmlBuilder(r,e){return C.makeOrd(r,e,"mathord")},mathmlBuilder(r,e){var t=new R.MathNode("mi",[_e(r.text,r.mode,e)]),a=ra(r,e)||"italic";return a!==Io[t.type]&&t.setAttribute("mathvariant",a),t}});L0({type:"textord",htmlBuilder(r,e){return C.makeOrd(r,e,"textord")},mathmlBuilder(r,e){var t=_e(r.text,r.mode,e),a=ra(r,e)||"normal",n;return r.mode==="text"?n=new R.MathNode("mtext",[t]):/[0-9]/.test(r.text)?n=new R.MathNode("mn",[t]):r.text==="\\prime"?n=new R.MathNode("mo",[t]):n=new R.MathNode("mi",[t]),a!==Io[n.type]&&n.setAttribute("mathvariant",a),n}});var yr={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},wr={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};L0({type:"spacing",htmlBuilder(r,e){if(wr.hasOwnProperty(r.text)){var t=wr[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 B('Unknown type of space "'+r.text+'"')}},mathmlBuilder(r,e){var t;if(wr.hasOwnProperty(r.text))t=new R.MathNode("mtext",[new R.TextNode(" ")]);else{if(yr.hasOwnProperty(r.text))return new R.MathNode("mspace");throw new B('Unknown type of space "'+r.text+'"')}return t}});var yn=()=>{var r=new R.MathNode("mtd",[]);return r.setAttribute("width","50%"),r};L0({type:"tag",mathmlBuilder(r,e){var t=new R.MathNode("mtable",[new R.MathNode("mtr",[yn(),new R.MathNode("mtd",[w0(r.body,e)]),yn(),new R.MathNode("mtd",[w0(r.tag,e)])])]);return t.setAttribute("width","100%"),t}});var wn={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},Sn={"\\textbf":"textbf","\\textmd":"textmd"},E2={"\\textit":"textit","\\textup":"textup"},kn=(r,e)=>{var t=r.font;if(t){if(wn[t])return e.withTextFontFamily(wn[t]);if(Sn[t])return e.withTextFontWeight(Sn[t]);if(t==="\\emph")return e.fontShape==="textit"?e.withTextFontShape("textup"):e.withTextFontShape("textit")}else return e;return e.withTextFontShape(E2[t])};q({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(r,e){var{parser:t,funcName:a}=r,n=e[0];return{type:"text",mode:t.mode,body:ge(n),font:a}},htmlBuilder(r,e){var t=kn(r,e),a=ke(r.body,t,!0);return C.makeSpan(["mord","text"],a,t)},mathmlBuilder(r,e){var t=kn(r,e);return w0(r.body,t)}});q({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(r,e){var{parser:t}=r;return{type:"underline",mode:t.mode,body:e[0]}},htmlBuilder(r,e){var t=te(r.body,e),a=C.makeLineSpan("underline-line",e),n=e.fontMetrics().defaultRuleThickness,s=C.makeVList({positionType:"top",positionData:t.height,children:[{type:"kern",size:n},{type:"elem",elem:a},{type:"kern",size:3*n},{type:"elem",elem:t}]},e);return C.makeSpan(["mord","underline"],[s],e)},mathmlBuilder(r,e){var t=new R.MathNode("mo",[new R.TextNode("‾")]);t.setAttribute("stretchy","true");var a=new R.MathNode("munder",[oe(r.body,e),t]);return a.setAttribute("accentunder","true"),a}});q({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(r,e){var{parser:t}=r;return{type:"vcenter",mode:t.mode,body:e[0]}},htmlBuilder(r,e){var t=te(r.body,e),a=e.fontMetrics().axisHeight,n=.5*(t.height-a-(t.depth+a));return C.makeVList({positionType:"shift",positionData:n,children:[{type:"elem",elem:t}]},e)},mathmlBuilder(r,e){return new R.MathNode("mpadded",[oe(r.body,e)],["vcenter"])}});q({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(r,e,t){throw new B("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(r,e){for(var t=Cn(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 R.TextNode(Cn(r)),a=new R.MathNode("mtext",[t]);return a.setAttribute("mathvariant","monospace"),a}});var Cn=r=>r.body.replace(/ /g,r.star?"␣":" "),g0=no,Po=`[ \r
|
|
326
|
-
]`,
|
|
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 Ze={"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]},Wa={Å:"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 T4(r,e){Ze[r]=e}function Kr(r,e,t){if(!Ze[e])throw new Error("Font metrics not found for font: "+e+".");var a=r.charCodeAt(0),n=Ze[e][a];if(!n&&r[0]in Wa&&(a=Wa[r[0]].charCodeAt(0),n=Ze[e][a]),!n&&t==="text"&&Gs(a)&&(n=Ze[e][77]),n)return{depth:n[0],height:n[1],italic:n[2],skew:n[3],width:n[4]}}var ir={};function A4(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 N4=[[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]],$a=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],Xa=function(e,t){return t.size<2?e:N4[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=$a[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:Xa(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:$a[e-1]})}havingBaseStyle(e){e=e||this.style.text();var t=Xa(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=A4(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},D4={ex:!0,em:!0,mu:!0},Us=function(e){return typeof e!="string"&&(e=e.unit),e in Ar||e in D4||e==="ex"},he=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(" ")},Ws=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)}},$s=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},E4=/[\s"'>/=\x00-\x1f]/,Xs=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(E4.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,Ws.call(this,e,a,n),this.children=t||[]}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return this.classes.includes(e)}toNode(){return $s.call(this,"span")}toMarkup(){return Xs.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,Ws.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 $s.call(this,"a")}toMarkup(){return Xs.call(this,"a")}}class R4{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 L4={î:"ı̂",ï:"ı̈",í:"ı́",ì:"ı̀"};class _e{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=v4(this.text.charCodeAt(0));d&&this.classes.push(d+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=L4[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",Ua[this.pathName]),t}toMarkup(){return this.alternate?'<path d="'+ae.escape(this.alternate)+'"/>':'<path d="'+ae.escape(Ua[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 Ya(r){if(r instanceof _e)return r;throw new Error("Expected symbolNode but got "+String(r)+".")}function B4(r){if(r instanceof rt)return r;throw new Error("Expected span<HtmlDomNode> but got "+String(r)+".")}var I4={bin:1,close:1,inner:1,open:1,punct:1,rel:1},j4={"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",de="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,de,"ˊ","\\acute");i(c,m,de,"ˋ","\\grave");i(c,m,de,"¨","\\ddot");i(c,m,de,"~","\\tilde");i(c,m,de,"ˉ","\\bar");i(c,m,de,"˘","\\breve");i(c,m,de,"ˇ","\\check");i(c,m,de,"^","\\hat");i(c,m,de,"⃗","\\vec");i(c,m,de,"˙","\\dot");i(c,m,de,"˚","\\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,de,"ˊ","\\'");i(D,m,de,"ˋ","\\`");i(D,m,de,"ˆ","\\^");i(D,m,de,"˜","\\~");i(D,m,de,"ˉ","\\=");i(D,m,de,"˘","\\u");i(D,m,de,"˙","\\.");i(D,m,de,"¸","\\c");i(D,m,de,"˚","\\r");i(D,m,de,"ˇ","\\v");i(D,m,de,"¨",'\\"');i(D,m,de,"˝","\\H");i(D,m,de,"◯","\\textcircled");var Ys={"--":!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 Za='0123456789/@."';for(var lr=0;lr<Za.length;lr++){var Ka=Za.charAt(lr);i(c,m,S,Ka,Ka)}var Ja='0123456789!@*()-=+";:?/.,';for(var cr=0;cr<Ja.length;cr++){var Qa=Ja.charAt(cr);i(D,m,S,Qa,Qa)}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 pe=Et.charAt(ze);J=String.fromCharCode(55349,56320+ze),i(c,m,Z,pe,J),i(D,m,S,pe,J),J=String.fromCharCode(55349,56372+ze),i(c,m,Z,pe,J),i(D,m,S,pe,J),J=String.fromCharCode(55349,56424+ze),i(c,m,Z,pe,J),i(D,m,S,pe,J),J=String.fromCharCode(55349,56580+ze),i(c,m,Z,pe,J),i(D,m,S,pe,J),J=String.fromCharCode(55349,56684+ze),i(c,m,Z,pe,J),i(D,m,S,pe,J),J=String.fromCharCode(55349,56736+ze),i(c,m,Z,pe,J),i(D,m,S,pe,J),J=String.fromCharCode(55349,56788+ze),i(c,m,Z,pe,J),i(D,m,S,pe,J),J=String.fromCharCode(55349,56840+ze),i(c,m,Z,pe,J),i(D,m,S,pe,J),J=String.fromCharCode(55349,56944+ze),i(c,m,Z,pe,J),i(D,m,S,pe,J),ze<26&&(J=String.fromCharCode(55349,56632+ze),i(c,m,Z,pe,J),i(D,m,S,pe,J),J=String.fromCharCode(55349,56476+ze),i(c,m,Z,pe,J),i(D,m,S,pe,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"]],en=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],P4=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[en[u][2],en[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)}},We=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 _e(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 _e(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},O4=function(e,t,a,n){return n===void 0&&(n=[]),a.font==="boldsymbol"&&Ht(e,"Main-Bold",t).metrics?We(e,"Main-Bold",t,a,n.concat(["mathbf"])):e==="\\"||le[t][e].font==="main"?We(e,"Main-Regular",t,a,n):We(e,"AMS-Regular",t,a,n.concat(["amsrm"]))},F4=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"}},q4=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]=P4(s,n)),d.length>0)return We(s,d,n,t,o.concat(h));if(u){var g,x;if(u==="boldsymbol"){var w=F4(s,n,t,o,a);g=w.fontName,x=[w.fontClass]}else l?(g=Js[u].fontName,x=[u]):(g=xt(u,t.fontWeight,t.fontShape),x=[u,t.fontWeight,t.fontShape]);if(Ht(s,g,n).metrics)return We(s,g,n,t,o.concat(x));if(Ys.hasOwnProperty(s)&&g.slice(0,10)==="Typewriter"){for(var M=[],k=0;k<s.length;k++)M.push(We(s[k],g,n,t,o.concat(x)));return Ks(M)}}if(a==="mathord")return We(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 We(s,N,n,t,o.concat("amsrm",t.fontWeight,t.fontShape))}else if(T==="main"||!T){var E=xt("textrm",t.fontWeight,t.fontShape);return We(s,E,n,t,o.concat(t.fontWeight,t.fontShape))}else{var B=xt(T,t.fontWeight,t.fontShape);return We(s,B,n,t,o.concat(B,t.fontWeight,t.fontShape))}}else throw new Error("unexpected type: "+a+" in makeOrd")},H4=(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},V4=r=>{for(var e=0;e<r.length-1;e++){var t=r[e],a=r[e+1];t instanceof _e&&a instanceof _e&&H4(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},Zs=(r,e,t,a)=>new rt(r,e,t,a),_4=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},G4=function(e,t,a,n){var s=new Jr(e,t,a,n);return Qr(s),s},Ks=function(e){var t=new tt(e);return Qr(t),t},U4=function(e,t){return e instanceof tt?Ne([],[e],t):e},W4=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}},$4=function(e,t){for(var{children:a,depth:n}=W4(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||[],E=k.wrapperStyle||{},B=Ne(N,[d,T],void 0,E);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 F=Ne(["vlist"],h);F.style.height=j(x);var O;if(g<0){var X=Ne([],[]),P=Ne(["vlist"],[X]);P.style.height=j(-g);var I=Ne(["vlist-s"],[new _e("")]);O=[Ne(["vlist-r"],[F,I]),Ne(["vlist-r"],[P])]}else O=[Ne(["vlist-r"],[F])];var Y=Ne(["vlist-t"],O);return O.length===2&&Y.classes.push("vlist-t2"),Y.height=x,Y.depth=-g,Y},X4=(r,e)=>{var t=Ne(["mspace"],[],e),a=he(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},Js={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"}},Qs={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},Y4=function(e,t){var[a,n,s]=Qs[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=Zs(["overlay"],[l],t);return u.height=s,u.style.height=j(s),u.style.width=j(n),u},C={fontMap:Js,makeSymbol:We,mathsym:O4,makeSpan:Ne,makeSvgSpan:Zs,makeLineSpan:_4,makeAnchor:G4,makeFragment:Ks,wrapFragment:U4,makeVList:$4,makeOrd:q4,makeGlue:X4,staticSvg:Y4,svgData:Qs,tryCombineChars:V4},me={number:3,unit:"mu"},z0={number:4,unit:"mu"},n0={number:5,unit:"mu"},Z4={mord:{mop:me,mbin:z0,mrel:n0,minner:me},mop:{mord:me,mop:me,mrel:n0,minner:me},mbin:{mord:z0,mop:z0,mopen:z0,minner:z0},mrel:{mord:n0,mop:n0,mopen:n0,minner:n0},mopen:{},mclose:{mop:me,mbin:z0,mrel:n0,minner:me},mpunct:{mord:me,mop:me,mrel:n0,mopen:me,mclose:me,mpunct:me,minner:me},minner:{mord:me,mop:me,mbin:z0,mrel:n0,mopen:me,mpunct:me,minner:me}},K4={mord:{mop:me},mop:{mord:me,mop:me},mbin:{},mrel:{},mopen:{},mclose:{mop:me},mpunct:{},minner:{mop:me}},eo={},Rt={},Lt={};function q(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)eo[t[u]]=l;e&&(s&&(Rt[e]=s),o&&(Lt[e]=o))}function R0(r){var{type:e,htmlBuilder:t,mathmlBuilder:a}=r;q({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},ge=function(e){return e.type==="ordgroup"?e.body:[e]},u0=C.makeSpan,J4=["leftmost","mbin","mopen","mrel","mop","mpunct"],Q4=["rightmost","mrel","mclose","mpunct"],e2={display:K.DISPLAY,text:K.TEXT,script:K.SCRIPT,scriptscript:K.SCRIPTSCRIPT},t2={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(e2[h.style]))}var g=u0([n[0]||"leftmost"],[],t),x=u0([n[1]||"rightmost"],[],t),w=a==="root";return tn(s,(M,k)=>{var T=k.classes[0],N=M.classes[0];T==="mbin"&&Q4.includes(N)?k.classes[0]="mord":N==="mbin"&&J4.includes(T)&&(M.classes[0]="mord")},{node:g},x,w),tn(s,(M,k)=>{var T=Er(k),N=Er(M),E=T&&N?M.hasClass("mtight")?K4[T][N]:Z4[T][N]:null;if(E)return C.makeGlue(E,d)},{node:g},x,w),s},tn=function r(e,t,a,n,s){n&&e.push(n);for(var o=0;o<e.length;o++){var l=e[o],u=to(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()},to=function(e){return e instanceof tt||e instanceof Jr||e instanceof rt&&e.hasClass("enclosing")?e:null},r2=function r(e,t){var a=to(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=r2(e,t)),t2[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 ro(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 Ke&&this.children[a+1]instanceof Ke){for(var n=this.children[a].toText()+this.children[++a].toText();this.children[a+1]instanceof Ke;)n+=this.children[++a].toText();e.appendChild(new Ke(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 Ke{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 a2{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 R={MathNode:Ie,TextNode:Ke,SpaceNode:a2,newDocumentFragment:ro},Ge=function(e,t,a){return le[t][e]&&le[t][e].replace&&e.charCodeAt(0)!==55349&&!(Ys.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 R.TextNode(e)},ea=function(e){return e.length===1?e[0]:new R.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 Ke&&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 Ke&&t.text===","}else return!1}var Ee=function(e,t,a){if(e.length===1){var n=ie(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=ie(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 Ke&&h.text==="̸"&&(u.type==="mo"||u.type==="mi"||u.type==="mn")){var g=u.children[0];g instanceof Ke&&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))},ie=function(e,t){if(!e)return new R.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 rn(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 R.MathNode("mrow",s);var l=new R.MathNode("annotation",[new R.TextNode(e)]);l.setAttribute("encoding","application/x-tex");var u=new R.MathNode("semantics",[o,l]),d=new R.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 ao=function(e){return new s0({style:e.displayMode?K.DISPLAY:K.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness})},no=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},n2=function(e,t,a){var n=ao(a),s;if(a.output==="mathml")return rn(e,t,n,a.displayMode,!0);if(a.output==="html"){var o=Rr(e,n);s=C.makeSpan(["katex"],[o])}else{var l=rn(e,t,n,a.displayMode,!1),u=Rr(e,n);s=C.makeSpan(["katex"],[l,u])}return no(s,a)},s2=function(e,t,a){var n=ao(a),s=Rr(e,n),o=C.makeSpan(["katex"],[s]);return no(o,a)},o2={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":"="},i2=function(e){var t=new R.MathNode("mo",[new R.TextNode(o2[e.replace(/^\\/,"")])]);return t.setAttribute("stretchy","true"),t},l2={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]},c2=function(e){return e.type==="ordgroup"?e.body.length:1},u2=function(e,t){function a(){var l=4e5,u=e.label.slice(1);if(["widehat","widecheck","widetilde","utilde"].includes(u)){var d=e,h=c2(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=[],E=l2[u],[B,F,O]=E,X=O/1e3,P=B.length,I,Y;if(P===1){var ce=E[3];I=["hide-tail"],Y=[ce]}else if(P===2)I=["halfarrow-left","halfarrow-right"],Y=["xMinYMin","xMaxYMin"];else if(P===3)I=["brace-left","brace-center","brace-right"],Y=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
|
|
325
|
+
`+P+" children.");for(var ne=0;ne<P;ne++){var te=new x0(B[ne]),ue=new c0([te],{width:"400em",height:j(X),viewBox:"0 0 "+l+" "+O,preserveAspectRatio:Y[ne]+" slice"}),xe=C.makeSvgSpan([I[ne]],[ue],t);if(P===1)return{span:xe,minWidth:F,height:X};xe.style.height=j(X),N.push(xe)}return{span:C.makeSpan(["stretchy"],N,t),minWidth:F,height:X}}}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},d2=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:d2,mathMLnode:i2,svgSpan:u2};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"||j4.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=B4(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=Ya(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=Ya(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},so=(r,e)=>{var t=r.isStretchy?d0.mathMLnode(r.label):new R.MathNode("mo",[Ge(r.label,r.mode)]),a=new R.MathNode("mover",[ie(r.base,e),t]);return a.setAttribute("accent","true"),a},m2=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(r=>"\\"+r).join("|"));q({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=!m2.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:so});q({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:so});q({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 R.MathNode("munder",[ie(r.base,e),t]);return a.setAttribute("accentunder","true"),a}});var St=r=>{var e=new R.MathNode("mpadded",r?[r]:[]);return e.setAttribute("width","+0.6em"),e.setAttribute("lspace","0.3em"),e};q({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(ie(r.body,e));if(r.below){var s=St(ie(r.below,e));a=new R.MathNode("munderover",[t,s,n])}else a=new R.MathNode("mover",[t,n])}else if(r.below){var o=St(ie(r.below,e));a=new R.MathNode("munder",[t,o])}else a=St(),a=new R.MathNode("mover",[t,a]);return a}});var h2=C.makeSpan;function oo(r,e){var t=ke(r.body,e,!0);return h2([r.mclass],t,e)}function io(r,e){var t,a=Ee(r.body,e);return r.mclass==="minner"?t=new R.MathNode("mpadded",a):r.mclass==="mord"?r.isCharacterBox?(t=a[0],t.type="mi"):t=new R.MathNode("mi",a):(r.isCharacterBox?(t=a[0],t.type="mo"):t=new R.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}q({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(r,e){var{parser:t,funcName:a}=r,n=e[0];return{type:"mclass",mode:t.mode,mclass:"m"+a.slice(5),body:ge(n),isCharacterBox:ae.isCharacterBox(n)}},htmlBuilder:oo,mathmlBuilder:io});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"};q({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(r,e){var{parser:t}=r;return{type:"mclass",mode:t.mode,mclass:_t(e[0]),body:ge(e[1]),isCharacterBox:ae.isCharacterBox(e[1])}}});q({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(r,e){var{parser:t,funcName:a}=r,n=e[1],s=e[0],o;a!=="\\stackrel"?o=_t(n):o="mrel";var l={type:"op",mode:n.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:a!=="\\stackrel",body:ge(n)},u={type:"supsub",mode:s.mode,base:l,sup:a==="\\underset"?null:s,sub:a==="\\underset"?s:null};return{type:"mclass",mode:t.mode,mclass:o,body:[u],isCharacterBox:ae.isCharacterBox(u)}},htmlBuilder:oo,mathmlBuilder:io});q({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(r,e){var{parser:t}=r;return{type:"pmb",mode:t.mode,mclass:_t(e[0]),body:ge(e[0])}},htmlBuilder(r,e){var t=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 R.MathNode("mstyle",t);return a.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),a}});var f2={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},an=()=>({type:"styling",body:[],mode:"math",style:"display"}),nn=r=>r.type==="textord"&&r.text==="@",p2=(r,e)=>(r.type==="mathord"||r.type==="atom")&&r.text===e;function v2(r,e,t){var a=f2[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 g2(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=an(),u=0;u<o.length;u++)if(!nn(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(p2(o[w],d)){x=!1,u=w;break}if(nn(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=v2(d,h,r),k={type:"styling",body:[M],mode:"math",style:"display"};a.push(k),l=an()}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([])}}q({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 R.MathNode("mrow",[ie(r.label,e)]);return t=new R.MathNode("mpadded",[t]),t.setAttribute("width","0"),r.side==="left"&&t.setAttribute("lspace","-1width"),t.setAttribute("voffset","0.7em"),t=new R.MathNode("mstyle",[t]),t.setAttribute("displaystyle","false"),t.setAttribute("scriptlevel","1"),t}});q({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 R.MathNode("mrow",[ie(r.fragment,e)])}});q({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 lo=(r,e)=>{var t=ke(r.body,e.withColor(r.color),!1);return C.makeFragment(t)},co=(r,e)=>{var t=Ee(r.body,e.withColor(r.color)),a=new R.MathNode("mstyle",t);return a.setAttribute("mathcolor",r.color),a};q({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(r,e){var{parser:t}=r,a=Q(e[0],"color-token").color,n=e[1];return{type:"color",mode:t.mode,color:a,body:ge(n)}},htmlBuilder:lo,mathmlBuilder:co});q({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:lo,mathmlBuilder:co});q({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(he(r.size,e)))),t},mathmlBuilder(r,e){var t=new R.MathNode("mspace");return r.newLine&&(t.setAttribute("linebreak","newline"),r.size&&t.setAttribute("height",j(he(r.size,e)))),t}});var Lr={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},uo=r=>{var e=r.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(e))throw new L("Expected a control sequence",r);return e},b2=r=>{var e=r.gullet.popToken();return e.text==="="&&(e=r.gullet.popToken(),e.text===" "&&(e=r.gullet.popToken())),e},mo=(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)};q({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)}});q({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}}});q({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(r){var{parser:e,funcName:t}=r,a=uo(e.gullet.popToken());e.gullet.consumeSpaces();var n=b2(e);return mo(e,a,n,t==="\\\\globallet"),{type:"internal",mode:e.mode}}});q({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(r){var{parser:e,funcName:t}=r,a=uo(e.gullet.popToken()),n=e.gullet.popToken(),s=e.gullet.popToken();return mo(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},ho=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},y2=function(e,t,a,n,s,o){var l=C.makeSymbol(e,"Main-Regular",s,n),u=na(l,t,n,o);return a&&ho(u,n,t),u},x2=function(e,t,a,n){return C.makeSymbol(e,"Size"+t+"-Regular",a,n)},fo=function(e,t,a,n,s,o){var l=x2(e,t,s,n),u=na(C.makeSpan(["delimsizing","size"+t],[l],n),K.TEXT,n,o);return a&&ho(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=Ze["Size4-Regular"][e.charCodeAt(0)]?Ze["Size4-Regular"][e.charCodeAt(0)][4]:Ze["Size1-Regular"][e.charCodeAt(0)][4],s=new x0("inner",M4(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},w2=["|","\\lvert","\\rvert","\\vert"],S2=["\\|","\\lVert","\\rVert","\\Vert"],po=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"):w2.includes(e)?(d="∣",g="vert",x=333):S2.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,E=Y0(h,w,s),B=E.height+E.depth,F=0,O=1;if(u!==null){var X=Y0(u,w,s);F=X.height+X.depth,O=2}var P=k+B+F,I=Math.max(0,Math.ceil((t-P)/(O*N))),Y=P+I*O*N,ce=n.fontMetrics().axisHeight;a&&(ce*=n.sizeMultiplier);var ne=Y/2-ce,te=[];if(g.length>0){var ue=Y-k-B,xe=Math.round(Y*1e3),fe=z4(g,Math.round(ue*1e3)),ve=new x0(g,fe),Me=(x/1e3).toFixed(3)+"em",$=(xe/1e3).toFixed(3)+"em",r0=new c0([ve],{width:Me,height:$,viewBox:"0 0 "+x+" "+xe}),Re=C.makeSvgSpan([],[r0],n);Re.height=xe/1e3,Re.style.width=Me,Re.style.height=$,te.push({type:"elem",elem:Re})}else{if(te.push(hr(h,w,s)),te.push(kt),u===null){var Le=Y-k-B+2*Br;te.push(fr(d,Le,n))}else{var Ce=(Y-k-B-F)/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 se=n.havingBaseStyle(K.TEXT),we=C.makeVList({positionType:"bottom",positionData:ne,children:te},se);return na(C.makeSpan(["delimsizing","mult"],[we],se),K.TEXT,n,o)},pr=80,vr=.08,gr=function(e,t,a,n,s){var o=C4(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)},k2=function(e,t){var a=t.havingBaseSizing(),n=yo("\\surd",e*a.sizeMultiplier,bo,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}},vo=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"],C2=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"],go=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],Z0=[0,1.2,1.8,2.4,3],M2=function(e,t,a,n,s){if(e==="<"||e==="\\lt"||e==="⟨"?e="\\langle":(e===">"||e==="\\gt"||e==="⟩")&&(e="\\rangle"),vo.includes(e)||go.includes(e))return fo(e,t,!1,a,n,s);if(C2.includes(e))return po(e,Z0[t],!1,a,n,s);throw new L("Illegal delimiter: '"+e+"'")},z2=[{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}],T2=[{type:"small",style:K.SCRIPTSCRIPT},{type:"small",style:K.SCRIPT},{type:"small",style:K.TEXT},{type:"stack"}],bo=[{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"}],A2=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.")},yo=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,A2(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]},xo=function(e,t,a,n,s,o){e==="<"||e==="\\lt"||e==="⟨"?e="\\langle":(e===">"||e==="\\gt"||e==="⟩")&&(e="\\rangle");var l;go.includes(e)?l=z2:vo.includes(e)?l=bo:l=T2;var u=yo(e,t,l,n);return u.type==="small"?y2(e,u.style,a,n,s,o):u.type==="large"?fo(e,u.size,a,n,s,o):po(e,t,a,n,s,o)},N2=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 xo(e,g,!0,n,s,o)},l0={sqrtImage:k2,sizedDelim:M2,sizeToMaxHeight:Z0,customSizedDelim:xo,leftRightDelim:N2},sn={"\\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}},D2=["(","\\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&&D2.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)}q({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:sn[r.funcName].size,mclass:sn[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(Ge(r.delim,r.mode));var t=new R.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 on(r){if(!r.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}q({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}}});q({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)=>{on(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)=>{on(r);var t=Ee(r.body,e);if(r.left!=="."){var a=new R.MathNode("mo",[Ge(r.left,r.mode)]);a.setAttribute("fence","true"),t.unshift(a)}if(r.right!=="."){var n=new R.MathNode("mo",[Ge(r.right,r.mode)]);n.setAttribute("fence","true"),r.rightColor&&n.setAttribute("mathcolor",r.rightColor),t.push(n)}return ea(t)}});q({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==="|"?Ge("|","text"):Ge(r.delim,r.mode),a=new R.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=he({number:.6,unit:"pt"},e),d=he({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=S4(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 E;if(r.backgroundColor)E=C.makeVList({positionType:"individualShift",children:[{type:"elem",elem:s,shift:o},{type:"elem",elem:t,shift:0}]},e);else{var B=/cancel|phase/.test(a)?["svg-align"]:[];E=C.makeVList({positionType:"individualShift",children:[{type:"elem",elem:t,shift:0},{type:"elem",elem:s,shift:o,wrapperClasses:B}]},e)}return/cancel/.test(a)&&(E.height=t.height,E.depth=t.depth),/cancel/.test(a)&&!l?C.makeSpan(["mord","cancel-lap"],[E],e):C.makeSpan(["mord"],[E],e)},oa=(r,e)=>{var t=0,a=new R.MathNode(r.label.indexOf("colorbox")>-1?"mpadded":"menclose",[ie(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};q({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});q({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});q({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]}}});q({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});q({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 wo={};function Qe(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)wo[t[u]]=l;s&&(Rt[e]=s),o&&(Lt[e]=o)}var So={};function v(r,e){So[r]=e}function ln(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=[],E=u!=null?[]:void 0;function B(){u&&r.gullet.macros.set("\\@eqnsw","1",!0)}function F(){E&&(r.gullet.macros.get("\\df@tag")?(E.push(r.subparse([new je("\\df@tag")])),r.gullet.macros.set("\\df@tag",void 0,!0)):E.push(!!u&&r.gullet.macros.get("\\@eqnsw")==="1"))}for(B(),N.push(ln(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 X=r.fetch().text;if(X==="&"){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(X==="\\end"){F(),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(X==="\\\\"){r.consume();var P=void 0;r.gullet.future().text!==" "&&(P=r.parseSizeGroup(!0)),T.push(P?P.value:null),F(),N.push(ln(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:E,leqno:x}}function la(r){return r.slice(0,1)==="d"?"display":"text"}var e0=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"?he({number:3,unit:"ex"},t):12*g,k=3*g,T=e.arraystretch*M,N=.7*T,E=.3*T,B=0;function F(nt){for(var st=0;st<nt.length;++st)st>0&&(B+=.25),d.push({pos:B,isDashed:nt[st]})}for(F(o[0]),a=0;a<e.body.length;++a){var O=e.body[a],X=N,P=E;l<O.length&&(l=O.length);var I=new Array(O.length);for(n=0;n<O.length;++n){var Y=re(O[n],t);P<Y.depth&&(P=Y.depth),X<Y.height&&(X=Y.height),I[n]=Y}var ce=e.rowGaps[a],ne=0;ce&&(ne=he(ce,t),ne>0&&(ne+=E,P<ne&&(P=ne),ne=0)),e.addJot&&(P+=k),I.height=X,I.depth=P,B+=X,I.pos=B,B+=P+ne,u[a]=I,F(o[a+1])}var te=B/2+t.fontMetrics().axisHeight,ue=e.cols||[],xe=[],fe,ve,Me=[];if(e.tags&&e.tags.some(nt=>nt))for(a=0;a<s;++a){var $=u[a],r0=$.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=$.depth,Le.height=$.height,Me.push({type:"elem",elem:Le,shift:r0})}for(n=0,ve=0;n<l||ve<ue.length;++n,++ve){for(var Ce=ue[ve]||{},se=!0;Ce.type==="separator";){if(se||(fe=C.makeSpan(["arraycolsep"],[]),fe.style.width=j(t.fontMetrics().doubleRuleSep),xe.push(fe)),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);ve++,Ce=ue[ve]||{},se=!1}if(!(n>=l)){var oe=void 0;(n>0||e.hskipBeforeAndAfter)&&(oe=ae.deflt(Ce.pregap,x),oe!==0&&(fe=C.makeSpan(["arraycolsep"],[]),fe.style.width=j(oe),xe.push(fe)));var Ue=[];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,Ue.push({type:"elem",elem:Fe,shift:_})}}Ue=C.makeVList({positionType:"individualShift",children:Ue},t),Ue=C.makeSpan(["col-align-"+(Ce.align||"c")],[Ue]),xe.push(Ue),(n<l-1||e.hskipBeforeAndAfter)&&(oe=ae.deflt(Ce.postgap,x),oe!==0&&(fe=C.makeSpan(["arraycolsep"],[]),fe.style.width=j(oe),xe.push(fe)))}}if(u=C.makeSpan(["mtable"],xe),d.length>0){for(var qe=C.makeLineSpan("hline",t,h),Ho=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:Ho,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])},E2={c:"center ",l:"left ",r:"right "},t0=function(e,t){for(var a=[],n=new R.MathNode("mtd",[],["mtr-glue"]),s=new R.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 R.MathNode("mtd",[ie(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 R.MathNode("mtr",u))}var h=new R.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,E=M.length;M[0].type==="separator"&&(x+="top ",N=1),M[M.length-1].type==="separator"&&(x+="bottom ",E-=1);for(var B=N;B<E;B++)M[B].type==="align"?(w+=E2[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 F=e.cols||[],O="",X=1;X<F.length;X++)O+=X%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 P="",I=e.hLinesBeforeRow;x+=I[0].length>0?"left ":"",x+=I[I.length-1].length>0?"right ":"";for(var Y=1;Y<I.length-1;Y++)P+=I[Y].length===0?"none ":I[Y][0]?"dashed ":"solid ";return/[sd]/.test(P)&&h.setAttribute("rowlines",P.trim()),x!==""&&(h=new R.MathNode("menclose",[h]),h.setAttribute("notation",x.trim())),e.arraystretch&&e.arraystretch<1&&(h=new R.MathNode("mstyle",[h]),h.setAttribute("scriptlevel","1")),h},ko=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 E=1;E<N.length;E+=2){var B=Q(N[E],"styling"),F=Q(B.body[0],"ordgroup");F.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};Qe({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:e0,mathmlBuilder:t0});Qe({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:e0,mathmlBuilder:t0});Qe({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:e0,mathmlBuilder:t0});Qe({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:e0,mathmlBuilder:t0});Qe({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:e0,mathmlBuilder:t0});Qe({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:ko,htmlBuilder:e0,mathmlBuilder:t0});Qe({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:e0,mathmlBuilder:t0});Qe({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:ko,htmlBuilder:e0,mathmlBuilder:t0});Qe({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:e0,mathmlBuilder:t0});Qe({type:"array",names:["CD"],props:{numArgs:0},handler(r){return Ut(r),g2(r.parser)},htmlBuilder:e0,mathmlBuilder:t0});v("\\nonumber","\\gdef\\@eqnsw{0}");v("\\notag","\\nonumber");q({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 cn=wo;q({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(!cn.hasOwnProperty(s))throw new L("No such environment: "+s,n);var l=cn[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 Co=(r,e)=>{var t=r.font,a=e.withFont(t);return re(r.body,a)},Mo=(r,e)=>{var t=r.font,a=e.withFont(t);return ie(r.body,a)},un={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};q({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 un&&(s=un[s]),{type:"font",mode:t.mode,font:s.slice(1),body:n}},htmlBuilder:Co,mathmlBuilder:Mo});q({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}}});q({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:Co,mathmlBuilder:Mo});var zo=(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=zo(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=he(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 E=e.fontMetrics().axisHeight;w-o.depth-(E+.5*g)<M&&(w+=M-(w-o.depth-(E+.5*g))),E-.5*g-(d.height-k)<M&&(k+=M-(E-.5*g-(d.height-k)));var B=-(E-.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 F;t.size===K.DISPLAY.size?F=e.fontMetrics().delim1:t.size===K.SCRIPTSCRIPT.size?F=e.havingStyle(K.SCRIPT).fontMetrics().delim2:F=e.fontMetrics().delim2;var O,X;return r.leftDelim==null?O=et(e,["mopen"]):O=l0.customSizedDelim(r.leftDelim,F,!0,e.havingStyle(t),r.mode,["mopen"]),r.continued?X=C.makeSpan([]):r.rightDelim==null?X=et(e,["mclose"]):X=l0.customSizedDelim(r.rightDelim,F,!0,e.havingStyle(t),r.mode,["mclose"]),C.makeSpan(["mord"].concat(s.sizingClasses(e)),[O,C.makeSpan(["mfrac"],[T]),X],e)},ua=(r,e)=>{var t=new R.MathNode("mfrac",[ie(r.numer,e),ie(r.denom,e)]);if(!r.hasBarLine)t.setAttribute("linethickness","0px");else if(r.barSize){var a=he(r.barSize,e);t.setAttribute("linethickness",j(a))}var n=zo(r.size,e.style);if(n.size!==e.style.size){t=new R.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 R.MathNode("mo",[new R.TextNode(r.leftDelim.replace("\\",""))]);l.setAttribute("fence","true"),o.push(l)}if(o.push(t),r.rightDelim!=null){var u=new R.MathNode("mo",[new R.TextNode(r.rightDelim.replace("\\",""))]);u.setAttribute("fence","true"),o.push(u)}return ea(o)}return t};q({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});q({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}}});q({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 dn=["display","text","script","scriptscript"],mn=function(e){var t=null;return e.length>0&&(t=e,t=t==="."?null:t),t};q({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"?mn(s.text):null,l=Bt(e[1]),u=l.type==="atom"&&l.family==="close"?mn(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=dn[Number(M.text)]}}else w=Q(w,"textord"),x=dn[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});q({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}}});q({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(r,e)=>{var{parser:t,funcName:a}=r,n=e[0],s=i4(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 To=(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)},R2=(r,e)=>{var t=d0.mathMLnode(r.label);return new R.MathNode(r.isOver?"mover":"munder",[ie(r.base,e),t])};q({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:To,mathmlBuilder:R2});q({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(r,e)=>{var{parser:t}=r,a=e[1],n=Q(e[0],"url").url;return t.settings.isTrusted({command:"\\href",url:n})?{type:"href",mode:t.mode,href:n,body:ge(a)}:t.formatUnsupportedCmd("\\href")},htmlBuilder:(r,e)=>{var t=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}});q({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(r,e)=>{var{parser:t}=r,a=Q(e[0],"url").url;if(!t.settings.isTrusted({command:"\\url",url:a}))return t.formatUnsupportedCmd("\\url");for(var n=[],s=0;s<a.length;s++){var o=a[s];o==="~"&&(o="\\textasciitilde"),n.push({type:"textord",mode:"text",text:o})}var l={type:"text",mode:t.mode,font:"\\texttt",body:n};return{type:"href",mode:t.mode,href:a,body:ge(l)}}});q({type:"hbox",names:["\\hbox"],props:{numArgs:1,argTypes:["text"],allowedInText:!0,primitive:!0},handler(r,e){var{parser:t}=r;return{type:"hbox",mode:t.mode,body:ge(e[0])}},htmlBuilder(r,e){var t=ke(r.body,e,!1);return C.makeFragment(t)},mathmlBuilder(r,e){return new R.MathNode("mrow",Ee(r.body,e))}});q({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:ge(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)});q({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:(r,e)=>{var{parser:t}=r;return{type:"htmlmathml",mode:t.mode,html:ge(e[0]),mathml:ge(e[1])}},htmlBuilder:(r,e)=>{var t=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(!Us(a))throw new L("Invalid unit: '"+a.unit+"' in \\includegraphics.");return a};q({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=he(r.height,e),a=0;r.totalheight.number>0&&(a=he(r.totalheight,e)-t);var n=0;r.width.number>0&&(n=he(r.width,e));var s={height:j(t+a)};n>0&&(s.width=j(n)),a>0&&(s.verticalAlign=j(-a));var o=new R4(r.src,r.alt,s);return o.height=t,o.depth=a,o},mathmlBuilder:(r,e)=>{var t=new R.MathNode("mglyph",[]);t.setAttribute("alt",r.alt);var a=he(r.height,e),n=0;if(r.totalheight.number>0&&(n=he(r.totalheight,e)-a,t.setAttribute("valign",j(-n))),t.setAttribute("height",j(a+n)),r.width.number>0){var s=he(r.width,e);t.setAttribute("width",j(s))}return t.setAttribute("src",r.src),t}});q({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=he(r.dimension,e);return new R.SpaceNode(t)}});q({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 R.MathNode("mpadded",[ie(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}});q({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}}});q({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(r,e){throw new L("Mismatched "+r.funcName)}});var hn=(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}};q({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(r,e)=>{var{parser:t}=r;return{type:"mathchoice",mode:t.mode,display:ge(e[0]),text:ge(e[1]),script:ge(e[2]),scriptscript:ge(e[3])}},htmlBuilder:(r,e)=>{var t=hn(r,e),a=ke(t,e,!1);return C.makeFragment(a)},mathmlBuilder:(r,e)=>{var t=hn(r,e);return w0(t,e)}});var Ao=(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)},No=["\\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&&!No.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 _e?(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 _e||s.name==="\\oiint"||s.name==="\\oiiint")&&!s.suppressBaseShift&&(T=(u.height-u.depth)/2-e.fontMetrics().axisHeight,N=u.italic),n?Ao(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",[Ge(r.name,r.mode)]),No.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 Ke(r.name.slice(1))]);var a=new Ie("mo",[Ge("","text")]);r.parentIsSupSub?t=new Ie("mrow",[t,a]):t=ro([t,a])}return t},L2={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};q({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=L2[n]),{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:n}},htmlBuilder:$0,mathmlBuilder:at});q({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(r,e)=>{var{parser:t}=r,a=e[0];return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:ge(a)}},htmlBuilder:$0,mathmlBuilder:at});var B2={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};q({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});q({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});q({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=B2[a]),{type:"op",mode:e.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:a}},htmlBuilder:$0,mathmlBuilder:at});var Do=(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 _e&&(h.text=h.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}o=C.makeSpan(["mop"],u,e)}else o=C.makeSpan(["mop"],[],e);return n?Ao(o,t,a,e,e.style,0,0):o},I2=(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 R.SpaceNode))if(s instanceof R.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 R.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 R.TextNode(l)]}var u=new R.MathNode("mi",t);u.setAttribute("mathvariant","normal");var d=new R.MathNode("mo",[Ge("","text")]);return r.parentIsSupSub?new R.MathNode("mrow",[u,d]):R.newDocumentFragment([u,d])};q({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(r,e)=>{var{parser:t,funcName:a}=r,n=e[0];return{type:"operatorname",mode:t.mode,body:ge(n),alwaysHandleSupSub:a==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:Do,mathmlBuilder:I2});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)}});q({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 R.MathNode("mo",[new R.TextNode("‾")]);t.setAttribute("stretchy","true");var a=new R.MathNode("mover",[ie(r.body,e),t]);return a.setAttribute("accent","true"),a}});q({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(r,e)=>{var{parser:t}=r,a=e[0];return{type:"phantom",mode:t.mode,body:ge(a)}},htmlBuilder:(r,e)=>{var t=ke(r.body,e.withPhantom(),!1);return C.makeFragment(t)},mathmlBuilder:(r,e)=>{var t=Ee(r.body,e);return new R.MathNode("mphantom",t)}});q({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(ge(r.body),e),a=new R.MathNode("mphantom",t),n=new R.MathNode("mpadded",[a]);return n.setAttribute("height","0px"),n.setAttribute("depth","0px"),n}});q({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(ge(r.body),e),a=new R.MathNode("mphantom",t),n=new R.MathNode("mpadded",[a]);return n.setAttribute("width","0px"),n}});q({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=he(r.dy,e);return C.makeVList({positionType:"shift",positionData:-a,children:[{type:"elem",elem:t}]},e)},mathmlBuilder(r,e){var t=new R.MathNode("mpadded",[ie(r.body,e)]),a=r.dy.number+r.dy.unit;return t.setAttribute("voffset",a),t}});q({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(r){var{parser:e}=r;return{type:"internal",mode:e.mode}}});q({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=he(r.width,e),n=he(r.height,e),s=r.shift?he(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=he(r.width,e),a=he(r.height,e),n=r.shift?he(r.shift,e):0,s=e.color&&e.getColor()||"black",o=new R.MathNode("mspace");o.setAttribute("mathbackground",s),o.setAttribute("width",j(t)),o.setAttribute("height",j(a));var l=new R.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 Eo(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 fn=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],j2=(r,e)=>{var t=e.havingSize(r.size);return Eo(r.body,t,e)};q({type:"sizing",names:fn,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:fn.indexOf(a)+1,body:s}},htmlBuilder:j2,mathmlBuilder:(r,e)=>{var t=e.havingSize(r.size),a=Ee(r.body,t),n=new R.MathNode("mstyle",a);return n.setAttribute("mathsize",j(t.sizeMultiplier)),n}});q({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 R.MathNode("mpadded",[ie(r.body,e)]);return r.smashHeight&&t.setAttribute("height","0px"),r.smashDepth&&t.setAttribute("depth","0px"),t}});q({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),E=C.makeSpan(["root"],[N]);return C.makeSpan(["mord","sqrt"],[E,w],e)}else return C.makeSpan(["mord","sqrt"],[w],e)},mathmlBuilder(r,e){var{body:t,index:a}=r;return a?new R.MathNode("mroot",[ie(t,e),ie(a,e)]):new R.MathNode("msqrt",[ie(t,e)])}});var pn={display:K.DISPLAY,text:K.TEXT,script:K.SCRIPT,scriptscript:K.SCRIPTSCRIPT};q({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=pn[r.style],a=e.havingStyle(t).withFont("");return Eo(r.body,a,e)},mathmlBuilder(r,e){var t=pn[r.style],a=e.havingStyle(t),n=Ee(r.body,a),s=new R.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 P2=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?Do: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?To:null}else return null}else return null};R0({type:"supsub",htmlBuilder(r,e){var t=P2(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),E=null;if(u){var B=r.base&&r.base.type==="op"&&r.base.name&&(r.base.name==="\\oiint"||r.base.name==="\\oiiint");(o instanceof _e||B)&&(E=j(-o.italic))}var F;if(l&&u){h=Math.max(h,k,l.depth+.25*d.xHeight),g=Math.max(g,d.sub2);var O=d.defaultRuleThickness,X=4*O;if(h-l.depth-(u.height-g)<X){g=X-(h-l.depth)+u.height;var P=.8*d.xHeight-(h-l.depth);P>0&&(h+=P,g-=P)}var I=[{type:"elem",elem:u,shift:g,marginRight:N,marginLeft:E},{type:"elem",elem:l,shift:-h,marginRight:N}];F=C.makeVList({positionType:"individualShift",children:I},e)}else if(u){g=Math.max(g,d.sub1,u.height-.8*d.xHeight);var Y=[{type:"elem",elem:u,marginLeft:E,marginRight:N}];F=C.makeVList({positionType:"shift",positionData:g,children:Y},e)}else if(l)h=Math.max(h,k,l.depth+.25*d.xHeight),F=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 ce=Er(o,"right")||"mord";return C.makeSpan([ce],[o,C.makeSpan(["msupsub"],[F])],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=[ie(r.base,e)];r.sub&&s.push(ie(r.sub,e)),r.sup&&s.push(ie(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 R.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 R.MathNode("mo",[Ge(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 Ro={mi:"italic",mn:"normal",mtext:"normal"};R0({type:"mathord",htmlBuilder(r,e){return C.makeOrd(r,e,"mathord")},mathmlBuilder(r,e){var t=new R.MathNode("mi",[Ge(r.text,r.mode,e)]),a=ta(r,e)||"italic";return a!==Ro[t.type]&&t.setAttribute("mathvariant",a),t}});R0({type:"textord",htmlBuilder(r,e){return C.makeOrd(r,e,"textord")},mathmlBuilder(r,e){var t=Ge(r.text,r.mode,e),a=ta(r,e)||"normal",n;return r.mode==="text"?n=new R.MathNode("mtext",[t]):/[0-9]/.test(r.text)?n=new R.MathNode("mn",[t]):r.text==="\\prime"?n=new R.MathNode("mo",[t]):n=new R.MathNode("mi",[t]),a!==Ro[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 R.MathNode("mtext",[new R.TextNode(" ")]);else{if(yr.hasOwnProperty(r.text))return new R.MathNode("mspace");throw new L('Unknown type of space "'+r.text+'"')}return t}});var vn=()=>{var r=new R.MathNode("mtd",[]);return r.setAttribute("width","50%"),r};R0({type:"tag",mathmlBuilder(r,e){var t=new R.MathNode("mtable",[new R.MathNode("mtr",[vn(),new R.MathNode("mtd",[w0(r.body,e)]),vn(),new R.MathNode("mtd",[w0(r.tag,e)])])]);return t.setAttribute("width","100%"),t}});var gn={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},bn={"\\textbf":"textbf","\\textmd":"textmd"},O2={"\\textit":"textit","\\textup":"textup"},yn=(r,e)=>{var t=r.font;if(t){if(gn[t])return e.withTextFontFamily(gn[t]);if(bn[t])return e.withTextFontWeight(bn[t]);if(t==="\\emph")return e.fontShape==="textit"?e.withTextFontShape("textup"):e.withTextFontShape("textit")}else return e;return e.withTextFontShape(O2[t])};q({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(r,e){var{parser:t,funcName:a}=r,n=e[0];return{type:"text",mode:t.mode,body:ge(n),font:a}},htmlBuilder(r,e){var t=yn(r,e),a=ke(r.body,t,!0);return C.makeSpan(["mord","text"],a,t)},mathmlBuilder(r,e){var t=yn(r,e);return w0(r.body,t)}});q({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 R.MathNode("mo",[new R.TextNode("‾")]);t.setAttribute("stretchy","true");var a=new R.MathNode("munder",[ie(r.body,e),t]);return a.setAttribute("accentunder","true"),a}});q({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 R.MathNode("mpadded",[ie(r.body,e)],["vcenter"])}});q({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=xn(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 R.TextNode(xn(r)),a=new R.MathNode("mtext",[t]);return a.setAttribute("mathvariant","monospace"),a}});var xn=r=>r.body.replace(/ /g,r.star?"␣":" "),g0=eo,Lo=`[ \r
|
|
326
|
+
]`,F2="\\\\[a-zA-Z@]+",q2="\\\\[^\uD800-\uDFFF]",H2="("+F2+")"+Lo+"*",V2=`\\\\(
|
|
327
327
|
|[ \r ]+
|
|
328
|
-
?)[ \r ]*`,Ir="[̀-ͯ]",
|
|
329
|
-
`,this.tokenRegex.lastIndex);return s===-1?(this.tokenRegex.lastIndex=e.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=s+1,this.lex()}return new Ie(n,new De(this,t,this.tokenRegex.lastIndex))}}class O2{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 B("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 F2=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 zn={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 B("\\char` missing argument");a=e.text.charCodeAt(0)}else t=10;if(t){if(a=zn[e.text],a==null||a>=t)throw new B("Invalid base-"+t+" digit "+e.text);for(var n;(n=zn[r.future().text])!=null&&n<t;)a*=t,a+=n,r.popToken()}return"\\@char{"+a+"}"});var ma=(r,e,t,a)=>{var n=r.consumeArg().tokens;if(n.length!==1)throw new B("\\newcommand's first argument must be a macro name");var s=n[0].text,o=r.isDefined(s);if(o&&!e)throw new B("\\newcommand{"+s+"} attempting to redefine "+(s+"; use \\renewcommand"));if(!o&&!t)throw new B("\\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 B("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=>ma(r,!1,!0,!1));v("\\renewcommand",r=>ma(r,!0,!1,!1));v("\\providecommand",r=>ma(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 Tn={",":"\\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 Tn?e=Tn[t]:(t.slice(0,4)==="\\not"||t in le.math&&["bin","rel"].includes(le.math[t].group))&&(e="\\dotsb"),e});var ha={")":!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 ha?"\\ldots\\,":"\\ldots"});v("\\dotsc",function(r){var e=r.future().text;return e in ha&&e!==","?"\\ldots\\,":"\\ldots"});v("\\cdots",function(r){var e=r.future().text;return e in ha?"\\@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 B("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=I(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=>w=>{r&&(w.macros.set("|",o),n.length&&w.macros.set("\\|",l));var y=g;if(!g&&n.length){var M=w.future();M.text==="|"&&(w.popToken(),y=!0)}return{tokens:y?n:a,numArgs:0}};e.macros.set("|",u(!1)),n.length&&e.macros.set("\\|",u(!0));var d=e.consumeArg().tokens,p=e.expandTokens([...s,...d,...t]);return e.macros.endGroup(),{tokens:p.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 q2{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 O2(F2,t.macros),this.mode=a,this.stack=[]}feed(e){this.lexer=new Mn(e,this.settings)}switchMode(e){this.mode=e}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(e){this.stack.push(e)}pushTokens(e){this.stack.push(...e)}scanArgument(e){var t,a,n;if(e){if(this.consumeSpaces(),this.future().text!=="[")return null;t=this.popToken(),{tokens:n,end:a}=this.consumeArg(["]"])}else({tokens:n,start:t,end:a}=this.consumeArg());return this.pushToken(new Ie("EOF",a.loc)),this.pushTokens(n),new Ie("",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 B("Extra }",s)}else if(s.text==="EOF")throw new B("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 B("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 B("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 B("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 B("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 B("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 B("Not a valid argument number",u)}}}return this.pushTokens(s),s.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var e=this.stack.pop();return e.treatAsRelax&&(e.text="\\relax"),e}throw new Error}expandMacro(e){return this.macros.has(e)?this.expandTokens([new Ie(e)]):void 0}expandTokens(e){var t=[],a=this.stack.length;for(this.pushTokens(e);this.stack.length>a;)if(this.expandOnce(!0)===!1){var n=this.stack.pop();n.treatAsRelax&&(n.noexpand=!1,n.treatAsRelax=!1),t.push(n)}return this.countExpansion(t.length),t}expandMacroAsText(e){var t=this.expandMacro(e);return t&&t.map(a=>a.text).join("")}_getExpansion(e){var t=this.macros.get(e);if(t==null)return t;if(e.length===1){var a=this.lexer.catcodes[e];if(a!=null&&a!==13)return}var n=typeof t=="function"?t(this):t;if(typeof n=="string"){var s=0;if(n.indexOf("#")!==-1)for(var o=n.replace(/##/g,"");o.indexOf("#"+(s+1))!==-1;)++s;for(var l=new Mn(n,this.settings),u=[],d=l.lex();d.text!=="EOF";)u.push(d),d=l.lex();u.reverse();var p={tokens:u,numArgs:s};return p}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 Nn=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,Mt=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","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),Sr={"́":{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 q2(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 B("Expected '"+e+"', got '"+this.fetch().text+"'",this.fetch());t&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(e){this.mode=e,this.gullet.switchMode(e)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var e=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),e}finally{this.gullet.endGroups()}}subparse(e){var t=this.nextToken;this.consume(),this.gullet.pushToken(new Ie("}")),this.gullet.pushTokens(e);var a=this.parseExpression(!1);return this.expect("}"),this.nextToken=t,a}parseExpression(e,t){for(var a=[];;){this.mode==="math"&&this.consumeSpaces();var n=this.fetch();if(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 B("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 B("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 B("Limit controls must follow a math operator",s);this.consume()}else if(s.text==="^"){if(a)throw new B("Double superscript",s);a=this.handleSupSubscript("superscript")}else if(s.text==="_"){if(n)throw new B("Double subscript",s);n=this.handleSupSubscript("subscript")}else if(s.text==="'"){if(a)throw new B("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(Mt[s.text]){var d=Nn.test(s.text),p=[];for(p.push(new Ie(Mt[s.text])),this.consume();;){var g=this.fetch().text;if(!Mt[g]||Nn.test(g)!==d)break;p.unshift(new Ie(Mt[g])),this.consume()}var w=this.subparse(p);d?n={type:"ordgroup",mode:"math",body:w}:a={type:"ordgroup",mode:"math",body:w}}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 B("Got function '"+n+"' with no arguments"+(t?" as "+t:""),a);if(this.mode==="text"&&!s.allowedInText)throw new B("Can't use function '"+n+"' in text mode",a);if(this.mode==="math"&&s.allowedInMath===!1)throw new B("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 B("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 B("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 B("A primitive argument cannot be optional");var o=this.parseGroup(e);if(o==null)throw new B("Expected group as "+e,this.fetch());return o}case"original":case null:case void 0:return this.parseArgumentGroup(a);default:throw new B("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 B("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 B("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 B("Invalid size: '"+t.text+"'",t);var s={number:+(n[1]+n[2]),unit:n[3]};if(!Ys(s))throw new B("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 B("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 B(`\\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}}
|
|
328
|
+
?)[ \r ]*`,Ir="[̀-ͯ]",_2=new RegExp(Ir+"+$"),G2="("+Lo+"+)|"+(V2+"|")+"([!-\\[\\]-‧-豈-]"+(Ir+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(Ir+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+H2)+("|"+q2+")");class wn{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(G2,"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 U2{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 W2=So;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 Sn={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=Sn[e.text],a==null||a>=t)throw new L("Invalid base-"+t+" digit "+e.text);for(var n;(n=Sn[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 kn={",":"\\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 kn?e=kn[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 Bo=j(Ze["Main-Regular"][84][1]-.7*Ze["Main-Regular"][65][1]);v("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+Bo+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");v("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+Bo+"}{\\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 Io=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",Io(!1));v("\\bra@set",Io(!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 jo={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class $2{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 U2(W2,t.macros),this.mode=a,this.stack=[]}feed(e){this.lexer=new wn(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 wn(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)||jo.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 Cn=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,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"}},Mn={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};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 $2(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=Cn.test(s.text),h=[];for(h.push(new je(Ct[s.text])),this.consume();;){var g=this.fetch().text;if(!Ct[g]||Cn.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(!Us(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]==="\\"&&!jo.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}}Mn.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=Mn[t[0]]+t.slice(1));var s=_2.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(I4.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&&(Gs(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},Po=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."),Po=function(){throw new L("KaTeX doesn't work in quirks mode.")});var X2=function(e,t){var a=fa(e,t).toMarkup();return a},Y2=function(e,t){var a=new Yr(t);return ha(e,a)},Oo=function(e,t,a){if(a.throwOnError||!(e instanceof L))throw e;var n=C.makeSpan(["katex-error"],[new _e(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 n2(n,e,a)}catch(s){return Oo(s,e,a)}},Z2=function(e,t){var a=new Yr(t);try{var n=ha(e,a);return s2(n,e,a)}catch(s){return Oo(s,e,a)}},K2="0.16.25",J2={Span:rt,Anchor:Jr,SymbolNode:_e,SvgNode:c0,PathNode:x0,LineNode:Nr},Fo={version:K2,render:Po,renderToString:X2,ParseError:L,SETTINGS_SCHEMA:Tt,__parse:Y2,__renderToDomTree:fa,__renderToHTMLTree:Z2,__setFontMetrics:T4,__defineSymbol:i,__defineFunction:q,__defineMacro:v,__domTree:J2};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=Fo.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-bold",children:f.jsx("em",{className:"italic",children:u[1]||u[2]})},o++)},{regex:/\*\*(.+?)\*\*|__(.+?)__/,render:u=>f.jsx("strong",{className:"font-bold",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},Q2=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"),
|
|
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},W2=(r,e,t,a,n,s)=>r.map((o,l)=>{var u;switch(o.type){case"heading":{const d=`h${o.level}`,p={1:"text-[1.75rem] font-bold leading-tight mt-6 mb-4 text-[var(--color-gray-1000)]",2:"text-[1.5rem] font-bold leading-tight mt-5 mb-3 text-[var(--color-gray-1000)]",3:"text-[1.25rem] font-semibold leading-snug mt-4 mb-2 text-[var(--color-gray-1000)]",4:"text-[1.125rem] font-semibold leading-snug mt-3 mb-2 text-[var(--color-gray-1000)]",5:"text-[1rem] font-medium leading-normal mt-2 mb-1 text-[var(--color-gray-800)]",6:"text-[0.875rem] font-medium leading-normal mt-2 mb-1 text-[var(--color-gray-600)]"};return h.jsx(d,{className:p[o.level],children:F0(o.content,t,n,s)},l)}case"paragraph":return h.jsx("p",{className:"mb-4 last:mb-0",children:F0(o.content,t,n,s)},l);case"codeBlock":return e?h.jsx("div",{children:e(o.content,o.language)},l):h.jsx("pre",{className:"mb-4 p-4 bg-[var(--color-gray-100)] border border-[var(--color-gray-200)] rounded-[8px] overflow-x-auto",children:h.jsx("code",{className:"font-mono text-[0.875rem] text-[var(--color-gray-800)] leading-relaxed",children:o.content})},l);case"mathBlock":if(a)return h.jsx("div",{children:a(o.content)},l);try{const d=_o.renderToString(o.content,{throwOnError:!1,displayMode:!0});return h.jsx("div",{className:"mb-4 overflow-x-auto text-center",dangerouslySetInnerHTML:{__html:d}},l)}catch{return h.jsxs("div",{className:"mb-4 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:"mb-4 pl-4 py-2 border-l-4 border-[var(--color-gray-300)] bg-[var(--color-gray-50)] text-[var(--color-gray-600)] italic",children:F0(o.content,t,n,s)},l);case"list":{const d=o.ordered?"ol":"ul",p=o.ordered?"mb-4 pl-6 list-decimal space-y-1":"mb-4 pl-6 list-disc space-y-1";return h.jsx(d,{className:p,children:(u=o.items)==null?void 0:u.map((g,w)=>h.jsx("li",{className:"leading-relaxed",children:F0(g,t,n,s)},w))},l)}case"table":{if(!o.table)return null;const{headers:d,rows:p,alignments:g}=o.table,w=y=>{switch(y){case"center":return"text-center";case"right":return"text-right";default:return"text-left"}};return h.jsx("div",{className:"mb-6 overflow-x-auto",children:h.jsxs("table",{className:"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((y,M)=>h.jsx("th",{className:`px-4 py-3 font-semibold border-r border-[var(--color-gray-200)] last:border-r-0 ${w(g==null?void 0:g[M])}`,children:F0(y,t,n,s)},M))})}),h.jsx("tbody",{children:p.map((y,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:y.map((k,T)=>h.jsx("td",{className:`px-4 py-3 border-r border-[var(--color-gray-200)] last:border-r-0 align-top ${w(g==null?void 0:g[T])}`,children:F0(k,t,n,s)},T))},M))})]})},l)}case"horizontalRule":return h.jsx("hr",{className:"my-6 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},p)=>{const g=V.useMemo(()=>{const w=$2(e);return W2(w,n,s,o,l,u)},[e,n,s,o,l,u]);return h.jsx("div",{ref:p,className:Y($u({size:t,variant:a}),r),...d,children:g})});Go.displayName="MarkdownRenderer";exports.Activity=f.Activity;exports.Airplay=f.Airplay;exports.AlertCircle=f.AlertCircle;exports.AlertOctagon=f.AlertOctagon;exports.AlignCenter=f.AlignCenter;exports.AlignJustify=f.AlignJustify;exports.AlignLeft=f.AlignLeft;exports.AlignRight=f.AlignRight;exports.Anchor=f.Anchor;exports.Aperture=f.Aperture;exports.Archive=f.Archive;exports.ArrowDownCircle=f.ArrowDownCircle;exports.ArrowDownLeft=f.ArrowDownLeft;exports.ArrowDownRight=f.ArrowDownRight;exports.ArrowLeftCircle=f.ArrowLeftCircle;exports.ArrowRightCircle=f.ArrowRightCircle;exports.ArrowUp=f.ArrowUp;exports.ArrowUpCircle=f.ArrowUpCircle;exports.ArrowUpLeft=f.ArrowUpLeft;exports.ArrowUpRight=f.ArrowUpRight;exports.AtSign=f.AtSign;exports.Award=f.Award;exports.BarChart=f.BarChart;exports.BarChart2=f.BarChart2;exports.Battery=f.Battery;exports.BatteryCharging=f.BatteryCharging;exports.BellOff=f.BellOff;exports.Bluetooth=f.Bluetooth;exports.Bold=f.Bold;exports.Book=f.Book;exports.BookOpen=f.BookOpen;exports.Bookmark=f.Bookmark;exports.Box=f.Box;exports.Briefcase=f.Briefcase;exports.BrushCleanup=f.BrushCleanup;exports.Calendar=f.Calendar;exports.Camera=f.Camera;exports.CameraOff=f.CameraOff;exports.Cast=f.Cast;exports.Check=f.Check;exports.CheckCircle=f.CheckCircle;exports.CheckSquare=f.CheckSquare;exports.ChevronDown=f.ChevronDown;exports.ChevronLeft=f.ChevronLeft;exports.ChevronRight=f.ChevronRight;exports.ChevronUp=f.ChevronUp;exports.ChevronsDown=f.ChevronsDown;exports.ChevronsLeft=f.ChevronsLeft;exports.ChevronsRight=f.ChevronsRight;exports.ChevronsUp=f.ChevronsUp;exports.Chrome=f.Chrome;exports.Circle=f.Circle;exports.Clipboard=f.Clipboard;exports.ClockHistory=f.ClockHistory;exports.Cloud=f.Cloud;exports.CloudDrizzle=f.CloudDrizzle;exports.CloudLightning=f.CloudLightning;exports.CloudOff=f.CloudOff;exports.CloudRain=f.CloudRain;exports.CloudSnow=f.CloudSnow;exports.Code=f.Code;exports.Codepen=f.Codepen;exports.Codesandbox=f.Codesandbox;exports.Coffee=f.Coffee;exports.Columns=f.Columns;exports.Command=f.Command;exports.Compass=f.Compass;exports.Component=f.Component;exports.CornerDownLeft=f.CornerDownLeft;exports.CornerDownRight=f.CornerDownRight;exports.CornerLeftDown=f.CornerLeftDown;exports.CornerLeftUp=f.CornerLeftUp;exports.CornerRightDown=f.CornerRightDown;exports.CornerRightUp=f.CornerRightUp;exports.CornerUpLeft=f.CornerUpLeft;exports.CornerUpRight=f.CornerUpRight;exports.Cpu=f.Cpu;exports.CreditCard=f.CreditCard;exports.Crop=f.Crop;exports.Crosshair=f.Crosshair;exports.Database=f.Database;exports.Delete=f.Delete;exports.Disc=f.Disc;exports.Divide=f.Divide;exports.DivideCircle=f.DivideCircle;exports.DivideSquare=f.DivideSquare;exports.DollarSign=f.DollarSign;exports.DownloadCloud=f.DownloadCloud;exports.Dribbble=f.Dribbble;exports.Droplet=f.Droplet;exports.Dumbell=f.Dumbell;exports.Edit2=f.Edit2;exports.Edit3=f.Edit3;exports.Eye=f.Eye;exports.EyeOff=f.EyeOff;exports.Facebook=f.Facebook;exports.FastForward=f.FastForward;exports.Feather=f.Feather;exports.Figma=f.Figma;exports.FileMinus=f.FileMinus;exports.FilePlus=f.FilePlus;exports.FileText=f.FileText;exports.Film=f.Film;exports.Filter=f.Filter;exports.Filter1=f.Filter1;exports.Flag=f.Flag;exports.Folder=f.Folder;exports.FolderMinus=f.FolderMinus;exports.FolderPlus=f.FolderPlus;exports.Framer=f.Framer;exports.Frown=f.Frown;exports.GalleryView=f.GalleryView;exports.Gauge=f.Gauge;exports.Gift=f.Gift;exports.GitBranch=f.GitBranch;exports.GitCommit=f.GitCommit;exports.GitMerge=f.GitMerge;exports.GitPullRequest=f.GitPullRequest;exports.Github=f.Github;exports.Gitlab=f.Gitlab;exports.Globe=f.Globe;exports.Grid=f.Grid;exports.Group1=f.Group1;exports.HardDrive=f.HardDrive;exports.Hash=f.Hash;exports.Headphones=f.Headphones;exports.HeightSize=f.HeightSize;exports.Hexagon=f.Hexagon;exports.Home=f.Home;exports.Home2=f.Home2;exports.Image=f.Image;exports.Inbox=f.Inbox;exports.Info=f.Info;exports.Instagram=f.Instagram;exports.Invite=f.Invite;exports.Italic=f.Italic;exports.KanbanView=f.KanbanView;exports.Key=f.Key;exports.Layers=f.Layers;exports.Layout=f.Layout;exports.LifeBuoy=f.LifeBuoy;exports.Link=f.Link;exports.Link2=f.Link2;exports.Linkedin=f.Linkedin;exports.List=f.List;exports.ListView=f.ListView;exports.Loader=f.Loader;exports.Lock=f.Lock;exports.LogIn=f.LogIn;exports.Mail=f.Mail;exports.Map=f.Map;exports.MapPin=f.MapPin;exports.Maximize=f.Maximize;exports.Maximize2=f.Maximize2;exports.Meh=f.Meh;exports.MessageCircle=f.MessageCircle;exports.MessageSquare=f.MessageSquare;exports.Mic=f.Mic;exports.MicOff=f.MicOff;exports.Minimize=f.Minimize;exports.Minimize2=f.Minimize2;exports.MinusCircle=f.MinusCircle;exports.MinusSquare=f.MinusSquare;exports.Monitor=f.Monitor;exports.Moon=f.Moon;exports.MoreVertical=f.MoreVertical;exports.MousePointer=f.MousePointer;exports.Move=f.Move;exports.Music=f.Music;exports.Navigation=f.Navigation;exports.Navigation2=f.Navigation2;exports.NewChat=f.NewChat;exports.Octagon=f.Octagon;exports.Package=f.Package;exports.PaperPlane1=f.PaperPlane1;exports.Paperclip=f.Paperclip;exports.Pause=f.Pause;exports.PauseCircle=f.PauseCircle;exports.PenTool=f.PenTool;exports.Percent=f.Percent;exports.Phone=f.Phone;exports.PhoneCall=f.PhoneCall;exports.PhoneForwarded=f.PhoneForwarded;exports.PhoneIncoming=f.PhoneIncoming;exports.PhoneMissed=f.PhoneMissed;exports.PhoneOff=f.PhoneOff;exports.PhoneOutgoing=f.PhoneOutgoing;exports.Pin=f.Pin;exports.Play=f.Play;exports.PlayCircle=f.PlayCircle;exports.Plug21=f.Plug21;exports.Plus=f.Plus;exports.PlusCircle=f.PlusCircle;exports.PlusSquare=f.PlusSquare;exports.Pocket=f.Pocket;exports.Power=f.Power;exports.Printer=f.Printer;exports.Radio=f.Radio;exports.Redo=f.Redo;exports.RefreshCcw=f.RefreshCcw;exports.RefreshCw=f.RefreshCw;exports.Repeat=f.Repeat;exports.Rewind=f.Rewind;exports.RotateCcw=f.RotateCcw;exports.RotateCw=f.RotateCw;exports.Rss=f.Rss;exports.Save=f.Save;exports.Scissors=f.Scissors;exports.Search=f.Search;exports.Send=f.Send;exports.Server=f.Server;exports.Settings=f.Settings;exports.Share=f.Share;exports.Share2=f.Share2;exports.Shield=f.Shield;exports.ShieldOff=f.ShieldOff;exports.ShoppingBag=f.ShoppingBag;exports.ShoppingCart=f.ShoppingCart;exports.Shuffle=f.Shuffle;exports.Sidebar=f.Sidebar;exports.SkipBack=f.SkipBack;exports.SkipForward=f.SkipForward;exports.Slack=f.Slack;exports.Slash=f.Slash;exports.Sliders=f.Sliders;exports.Smartphone=f.Smartphone;exports.Smile=f.Smile;exports.Sort1=f.Sort1;exports.SortDefault=f.SortDefault;exports.SortDown=f.SortDown;exports.SortUp=f.SortUp;exports.Sources=f.Sources;exports.Sparks=f.Sparks;exports.Speaker=f.Speaker;exports.Square=f.Square;exports.Star=f.Star;exports.StopCircle=f.StopCircle;exports.Sun=f.Sun;exports.Sunrise=f.Sunrise;exports.Sunset=f.Sunset;exports.TableView=f.TableView;exports.Tablet=f.Tablet;exports.TagIcon=f.Tag;exports.TagPlus=f.TagPlus;exports.Target=f.Target;exports.Telescope=f.Telescope;exports.Terminal=f.Terminal;exports.TextileIcon=f.TextileIcon;exports.Thermometer=f.Thermometer;exports.ThumbsDown=f.ThumbsDown;exports.ThumbsUp=f.ThumbsUp;exports.ToggleLeft=f.ToggleLeft;exports.ToggleRight=f.ToggleRight;exports.Tool=f.Tool;exports.Trash=f.Trash;exports.Trello=f.Trello;exports.TrendingDown=f.TrendingDown;exports.TrendingUp=f.TrendingUp;exports.Triangle=f.Triangle;exports.TriangleAlert=f.TriangleAlert;exports.Truck=f.Truck;exports.Tv=f.Tv;exports.Twitch=f.Twitch;exports.Twitter=f.Twitter;exports.Type=f.Type;exports.Umbrella=f.Umbrella;exports.Underline=f.Underline;exports.Undo=f.Undo;exports.Unlock=f.Unlock;exports.Uploadfile=f.Uploadfile;exports.UserCheck=f.UserCheck;exports.UserEdit=f.UserEdit;exports.UserMinus=f.UserMinus;exports.UserPlus=f.UserPlus;exports.UserX=f.UserX;exports.Video=f.Video;exports.VideoOff=f.VideoOff;exports.Voicemail=f.Voicemail;exports.Volume=f.Volume;exports.Volume1=f.Volume1;exports.Volume2=f.Volume2;exports.VolumeX=f.VolumeX;exports.Watch=f.Watch;exports.WhiteboardView=f.WhiteboardView;exports.Wifi=f.Wifi;exports.WifiOff=f.WifiOff;exports.Wind=f.Wind;exports.WorkStream=f.WorkStream;exports.X=f.X;exports.XCircle=f.XCircle;exports.XOctagon=f.XOctagon;exports.XSquare=f.XSquare;exports.Youtube=f.Youtube;exports.Zap=f.Zap;exports.ZapOff=f.ZapOff;exports.ZoomIn=f.ZoomIn;exports.ZoomOut=f.ZoomOut;exports.ArtifactCard=Gn;exports.Avatar=Or;exports.Breadcrumbs=Un;exports.Button=V0;exports.ChatFile=Wn;exports.ChatInput=ds;exports.Checkbox=Xn;exports.ConversationHeader=ms;exports.Dropdown=Vr;exports.DropdownContent=Gr;exports.DropdownItem=Ur;exports.DropdownTrigger=_r;exports.FileStatus=$n;exports.FullLogo=_n;exports.Input=Zn;exports.LoadingSpinner=El;exports.LogoA=qr;exports.MarkdownRenderer=Go;exports.MessageBubble=Kn;exports.Modal=$s;exports.ProgressBar=Jn;exports.RangeInput=Qn;exports.SidebarItem=es;exports.SignatureA=Hr;exports.StatusIndicator=Fr;exports.StatusMessage=is;exports.Tabs=Kl;exports.TabsContent=as;exports.TabsList=ts;exports.TabsTrigger=rs;exports.Tag=_0;exports.TextArea=ns;exports.Timestamp=ss;exports.Toast=N0;exports.ToastContainer=p1;exports.Toggle=os;exports.Tooltip=cs;exports.TooltipContent=$r;exports.TooltipProvider=ls;exports.TooltipTrigger=us;exports.Typography=o0;exports.cn=Y;exports.showToast=v1;exports.useDropdown=Pt;
|
|
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},e5=(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-6 mb-4 text-[var(--color-gray-1000)]",2:"font-[Signifier,serif] text-[1.5rem] font-light leading-tight mt-5 mb-3 text-[var(--color-gray-1000)]",3:"font-[Signifier,serif] text-[1.25rem] font-light leading-snug mt-4 mb-2 text-[var(--color-gray-1000)]",4:"font-[Signifier,serif] text-[1.125rem] font-light leading-snug mt-3 mb-2 text-[var(--color-gray-1000)]",5:"font-[Signifier,serif] text-[1rem] font-light leading-normal mt-2 mb-1 text-[var(--color-gray-800)]",6:"font-[Signifier,serif] text-[0.875rem] font-light leading-normal mt-2 mb-1 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] mb-4 last:mb-0",children:O0(o.content,t,n,s)},l);case"codeBlock":return e?f.jsx("div",{children:e(o.content,o.language)},l):f.jsx("pre",{className:"font-[Roboto_Mono,monospace] mb-4 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",{children:a(o.content)},l);try{const d=Fo.renderToString(o.content,{throwOnError:!1,displayMode:!0});return f.jsx("div",{className:"mb-4 overflow-x-auto text-center",dangerouslySetInnerHTML:{__html:d}},l)}catch{return f.jsxs("div",{className:"mb-4 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] mb-4 pl-4 py-2 border-l-4 border-[var(--color-gray-300)] bg-[var(--color-gray-50)] text-[var(--color-gray-600)] italic",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] mb-4 pl-6 list-decimal space-y-1":"font-[Inter,system-ui,-apple-system,sans-serif] mb-4 pl-6 list-disc space-y-1";return f.jsx(d,{className:h,children:(u=o.items)==null?void 0:u.map((g,x)=>f.jsx("li",{className:"leading-relaxed",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:"mb-6 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-semibold 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-6 border-t border-[var(--color-gray-200)]"},l);default:return null}}),qo=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=Q2(e);return e5(x,n,s,o,l,u)},[e,n,s,o,l,u]);return f.jsx("div",{ref:h,className:W(Qu({size:t,variant:a}),r),...d,children:g})});qo.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=qn;exports.Avatar=Pr;exports.Breadcrumbs=Hn;exports.Button=H0;exports.ChatFile=_n;exports.ChatInput=is;exports.Checkbox=Gn;exports.ConversationHeader=ls;exports.Dropdown=Hr;exports.DropdownContent=_r;exports.DropdownItem=Gr;exports.DropdownTrigger=Vr;exports.FileStatus=Vn;exports.FullLogo=Fn;exports.Input=Wn;exports.LoadingSpinner=Al;exports.LogoA=Fr;exports.MarkdownRenderer=qo;exports.MessageBubble=$n;exports.Modal=Vs;exports.ProgressBar=Xn;exports.RangeInput=Yn;exports.SidebarItem=Zn;exports.SignatureA=qr;exports.StatusIndicator=Or;exports.StatusMessage=as;exports.Tabs=n1;exports.TabsContent=Qn;exports.TabsList=Kn;exports.TabsTrigger=Jn;exports.Tag=V0;exports.TextArea=es;exports.Timestamp=ts;exports.Toast=T0;exports.ToastContainer=S1;exports.Toggle=rs;exports.Tooltip=ss;exports.TooltipContent=Ur;exports.TooltipProvider=ns;exports.TooltipTrigger=os;exports.Typography=o0;exports.cn=W;exports.showToast=k1;exports.useDropdown=jt;
|
|
335
335
|
//# sourceMappingURL=index.cjs.map
|