@archieai/ui 1.2.4 → 1.2.55

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.
Files changed (34) hide show
  1. package/dist/components/molecules/Dropdown/Dropdown.d.ts +2 -0
  2. package/dist/components/molecules/Dropdown/Dropdown.d.ts.map +1 -1
  3. package/dist/components/molecules/MessageBubble/MessageBubble.styles.d.ts.map +1 -1
  4. package/dist/components/renderers/MarkdownRenderer/MarkdownRenderer.d.ts +14 -3
  5. package/dist/components/renderers/MarkdownRenderer/MarkdownRenderer.d.ts.map +1 -1
  6. package/dist/components/renderers/MarkdownRenderer/MarkdownRenderer.styles.d.ts.map +1 -1
  7. package/dist/index-3Ykv-knV.js +2775 -0
  8. package/dist/index-3Ykv-knV.js.map +1 -0
  9. package/dist/index-DBlB_5Nx.cjs +2 -0
  10. package/dist/index-DBlB_5Nx.cjs.map +1 -0
  11. package/dist/index.cjs +27 -291
  12. package/dist/index.cjs.map +1 -1
  13. package/dist/index.d.ts +0 -1
  14. package/dist/index.d.ts.map +1 -1
  15. package/dist/index.js +2486 -17623
  16. package/dist/index.js.map +1 -1
  17. package/dist/katex-styles.cjs +2 -0
  18. package/dist/katex-styles.cjs.map +1 -0
  19. package/dist/katex-styles.css +1 -0
  20. package/dist/katex-styles.d.ts +2 -0
  21. package/dist/katex-styles.d.ts.map +1 -0
  22. package/dist/katex-styles.js +2 -0
  23. package/dist/katex-styles.js.map +1 -0
  24. package/dist/markdown.cjs +314 -0
  25. package/dist/markdown.cjs.map +1 -0
  26. package/dist/markdown.d.ts +3 -0
  27. package/dist/markdown.d.ts.map +1 -0
  28. package/dist/markdown.js +21801 -0
  29. package/dist/markdown.js.map +1 -0
  30. package/dist/styles.css +1 -0
  31. package/package.json +25 -6
  32. package/dist/fonts/signifier/ttf/signifier-extralight.ttf +0 -0
  33. package/dist/fonts/signifier/ttf/signifier-light.ttf +0 -0
  34. package/dist/ui.css +0 -1
package/dist/index.cjs CHANGED
@@ -1,5 +1,5 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("react/jsx-runtime"),I=require("react"),Se=require("framer-motion"),p=require("./Search-jJp9VWfl.cjs"),Zo=require("@radix-ui/react-tabs"),it=require("sonner"),Ko=require("@radix-ui/react-tooltip"),In=require("react-dom");function F0(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=F0(I),Bt=F0(Zo),Rt=F0(Ko),Jo=F0(In);function Pn(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=Pn(r[e]))&&(a&&(a+=" "),a+=t)}else for(t in r)r[t]&&(a&&(a+=" "),a+=t);return a}function On(){for(var r,e,t=0,a="",n=arguments.length;t<n;t++)(r=arguments[t])&&(e=Pn(r))&&(a&&(a+=" "),a+=e);return a}const _r="-",Qo=r=>{const e=ti(r),{conflictingClassGroups:t,conflictingClassGroupModifiers:a}=r;return{getClassGroupId:o=>{const l=o.split(_r);return l[0]===""&&l.length!==1&&l.shift(),Fn(l,e)||ei(o)},getConflictingClassGroupIds:(o,l)=>{const u=t[o]||[];return l&&a[o]?[...u,...a[o]]:u}}},Fn=(r,e)=>{var o;if(r.length===0)return e.classGroupId;const t=r[0],a=e.nextPart.get(t),n=a?Fn(r.slice(1),a):void 0;if(n)return n;if(e.validators.length===0)return;const s=r.join(_r);return(o=e.validators.find(({validator:l})=>l(s)))==null?void 0:o.classGroupId},ka=/^\[(.+)\]$/,ei=r=>{if(ka.test(r)){const e=ka.exec(r)[1],t=e==null?void 0:e.substring(0,e.indexOf(":"));if(t)return"arbitrary.."+t}},ti=r=>{const{theme:e,classGroups:t}=r,a={nextPart:new Map,validators:[]};for(const n in t)Tr(t[n],a,n,e);return a},Tr=(r,e,t,a)=>{r.forEach(n=>{if(typeof n=="string"){const s=n===""?e:Ca(e,n);s.classGroupId=t;return}if(typeof n=="function"){if(ri(n)){Tr(n(a),e,t,a);return}e.validators.push({validator:n,classGroupId:t});return}Object.entries(n).forEach(([s,o])=>{Tr(o,Ca(e,s),t,a)})})},Ca=(r,e)=>{let t=r;return e.split(_r).forEach(a=>{t.nextPart.has(a)||t.nextPart.set(a,{nextPart:new Map,validators:[]}),t=t.nextPart.get(a)}),t},ri=r=>r.isThemeGetter,ai=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)}}},zr="!",Nr=":",ni=Nr.length,si=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===Nr){s.push(n.slice(u,M)),u=M+ni;continue}if(k==="/"){d=M;continue}}k==="["?o++:k==="]"?o--:k==="("?l++:k===")"&&l--}const f=s.length===0?n:n.substring(u),g=oi(f),y=g!==f,w=d&&d>u?d-u:void 0;return{modifiers:s,hasImportantModifier:y,baseClassName:g,maybePostfixModifierPosition:w}};if(e){const n=e+Nr,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},oi=r=>r.endsWith(zr)?r.substring(0,r.length-1):r.startsWith(zr)?r.substring(1):r,ii=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}},li=r=>({cache:ai(r.cacheSize),parseClassName:si(r),sortModifiers:ii(r),...Qo(r)}),ci=/\s+/,ui=(r,e)=>{const{parseClassName:t,getClassGroupId:a,getConflictingClassGroupIds:n,sortModifiers:s}=e,o=[],l=r.trim().split(ci);let u="";for(let d=l.length-1;d>=0;d-=1){const f=l[d],{isExternal:g,modifiers:y,hasImportantModifier:w,baseClassName:M,maybePostfixModifierPosition:k}=t(f);if(g){u=f+(u.length>0?" "+u:u);continue}let N=!!k,A=a(N?M.substring(0,k):M);if(!A){if(!N){u=f+(u.length>0?" "+u:u);continue}if(A=a(M),!A){u=f+(u.length>0?" "+u:u);continue}N=!1}const E=s(y).join(":"),R=w?E+zr:E,F=R+A;if(o.includes(F))continue;o.push(F);const q=n(A,N);for(let X=0;X<q.length;++X){const _=q[X];o.push(R+_)}u=f+(u.length>0?" "+u:u)}return u};function di(){let r=0,e,t,a="";for(;r<arguments.length;)(e=arguments[r++])&&(t=qn(e))&&(a&&(a+=" "),a+=t);return a}const qn=r=>{if(typeof r=="string")return r;let e,t="";for(let a=0;a<r.length;a++)r[a]&&(e=qn(r[a]))&&(t&&(t+=" "),t+=e);return t};function mi(r,...e){let t,a,n,s=o;function o(u){const d=e.reduce((f,g)=>g(f),r());return t=li(d),a=t.cache.get,n=t.cache.set,s=l,l(u)}function l(u){const d=a(u);if(d)return d;const f=ui(u,t);return n(u,f),f}return function(){return s(di.apply(null,arguments))}}const Me=r=>{const e=t=>t[r]||[];return e.isThemeGetter=!0,e},Hn=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Vn=/^\((?:(\w[\w-]*):)?(.+)\)$/i,hi=/^\d+\/\d+$/,fi=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,pi=/\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$/,vi=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,gi=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,bi=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,It=r=>hi.test(r),ee=r=>!!r&&!Number.isNaN(Number(r)),vt=r=>!!r&&Number.isInteger(Number(r)),J0=r=>r.endsWith("%")&&ee(r.slice(0,-1)),st=r=>fi.test(r),xi=()=>!0,yi=r=>pi.test(r)&&!vi.test(r),_n=()=>!1,wi=r=>gi.test(r),Si=r=>bi.test(r),ki=r=>!$(r)&&!W(r),Ci=r=>Xt(r,$n,_n),$=r=>Hn.test(r),zt=r=>Xt(r,Wn,yi),Q0=r=>Xt(r,Ai,ee),Ma=r=>Xt(r,Gn,_n),Mi=r=>Xt(r,Un,Si),u0=r=>Xt(r,Xn,wi),W=r=>Vn.test(r),Jt=r=>Yt(r,Wn),Ti=r=>Yt(r,Di),Ta=r=>Yt(r,Gn),zi=r=>Yt(r,$n),Ni=r=>Yt(r,Un),d0=r=>Yt(r,Xn,!0),Xt=(r,e,t)=>{const a=Hn.exec(r);return a?a[1]?e(a[1]):t(a[2]):!1},Yt=(r,e,t=!1)=>{const a=Vn.exec(r);return a?a[1]?e(a[1]):t:!1},Gn=r=>r==="position"||r==="percentage",Un=r=>r==="image"||r==="url",$n=r=>r==="length"||r==="size"||r==="bg-size",Wn=r=>r==="length",Ai=r=>r==="number",Di=r=>r==="family-name",Xn=r=>r==="shadow",Ri=()=>{const r=Me("color"),e=Me("font"),t=Me("text"),a=Me("font-weight"),n=Me("tracking"),s=Me("leading"),o=Me("breakpoint"),l=Me("container"),u=Me("spacing"),d=Me("radius"),f=Me("shadow"),g=Me("inset-shadow"),y=Me("text-shadow"),w=Me("drop-shadow"),M=Me("blur"),k=Me("perspective"),N=Me("aspect"),A=Me("ease"),E=Me("animate"),R=()=>["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"],q=()=>[...F(),W,$],X=()=>["auto","hidden","clip","visible","scroll"],_=()=>["auto","contain","none"],P=()=>[W,$,u],Y=()=>[It,"full","auto",...P()],be=()=>[vt,"none","subgrid",W,$],ue=()=>["auto",{span:["full",vt,W,$]},vt,W,$],te=()=>[vt,"auto",W,$],ye=()=>["auto","min","max","fr",W,$],se=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],le=()=>["start","end","center","stretch","center-safe","end-safe"],oe=()=>["auto",...P()],Ce=()=>[It,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...P()],G=()=>[r,W,$],Ae=()=>[...F(),Ta,Ma,{position:[W,$]}],de=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ze=()=>["auto","cover","contain",zi,Ci,{size:[W,$]}],he=()=>[J0,Jt,zt],me=()=>["","none","full",d,W,$],pe=()=>["",ee,Jt,zt],Ne=()=>["solid","dashed","dotted","double"],Oe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ne=()=>[ee,J0,Ta,Ma],Be=()=>["","none",M,W,$],Fe=()=>["none",ee,W,$],qe=()=>["none",ee,W,$],Ze=()=>[ee,W,$],Ge=()=>[It,"full",...P()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[st],breakpoint:[st],color:[xi],container:[st],"drop-shadow":[st],ease:["in","out","in-out"],font:[ki],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[st],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[st],shadow:[st],spacing:["px",ee],text:[st],"text-shadow":[st],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",It,$,W,N]}],container:["container"],columns:[{columns:[ee,$,W,l]}],"break-after":[{"break-after":R()}],"break-before":[{"break-before":R()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:q()}],overflow:[{overflow:X()}],"overflow-x":[{"overflow-x":X()}],"overflow-y":[{"overflow-y":X()}],overscroll:[{overscroll:_()}],"overscroll-x":[{"overscroll-x":_()}],"overscroll-y":[{"overscroll-y":_()}],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:[vt,"auto",W,$]}],basis:[{basis:[It,"full","auto",l,...P()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ee,It,"auto","initial","none",$]}],grow:[{grow:["",ee,W,$]}],shrink:[{shrink:["",ee,W,$]}],order:[{order:[vt,"first","last","none",W,$]}],"grid-cols":[{"grid-cols":be()}],"col-start-end":[{col:ue()}],"col-start":[{"col-start":te()}],"col-end":[{"col-end":te()}],"grid-rows":[{"grid-rows":be()}],"row-start-end":[{row:ue()}],"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":ye()}],"auto-rows":[{"auto-rows":ye()}],gap:[{gap:P()}],"gap-x":[{"gap-x":P()}],"gap-y":[{"gap-y":P()}],"justify-content":[{justify:[...se(),"normal"]}],"justify-items":[{"justify-items":[...le(),"normal"]}],"justify-self":[{"justify-self":["auto",...le()]}],"align-content":[{content:["normal",...se()]}],"align-items":[{items:[...le(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...le(),{baseline:["","last"]}]}],"place-content":[{"place-content":se()}],"place-items":[{"place-items":[...le(),"baseline"]}],"place-self":[{"place-self":["auto",...le()]}],p:[{p:P()}],px:[{px:P()}],py:[{py:P()}],ps:[{ps:P()}],pe:[{pe:P()}],pt:[{pt:P()}],pr:[{pr:P()}],pb:[{pb:P()}],pl:[{pl:P()}],m:[{m:oe()}],mx:[{mx:oe()}],my:[{my:oe()}],ms:[{ms:oe()}],me:[{me:oe()}],mt:[{mt:oe()}],mr:[{mr:oe()}],mb:[{mb:oe()}],ml:[{ml:oe()}],"space-x":[{"space-x":P()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":P()}],"space-y-reverse":["space-y-reverse"],size:[{size:Ce()}],w:[{w:[l,"screen",...Ce()]}],"min-w":[{"min-w":[l,"screen","none",...Ce()]}],"max-w":[{"max-w":[l,"screen","none","prose",{screen:[o]},...Ce()]}],h:[{h:["screen","lh",...Ce()]}],"min-h":[{"min-h":["screen","lh","none",...Ce()]}],"max-h":[{"max-h":["screen","lh",...Ce()]}],"font-size":[{text:["base",t,Jt,zt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[a,W,Q0]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",J0,$]}],"font-family":[{font:[Ti,$,e]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[n,W,$]}],"line-clamp":[{"line-clamp":[ee,"none",W,Q0]}],leading:[{leading:[s,...P()]}],"list-image":[{"list-image":["none",W,$]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",W,$]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:G()}],"text-color":[{text:G()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Ne(),"wavy"]}],"text-decoration-thickness":[{decoration:[ee,"from-font","auto",W,zt]}],"text-decoration-color":[{decoration:G()}],"underline-offset":[{"underline-offset":[ee,"auto",W,$]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:P()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",W,$]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",W,$]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:Ae()}],"bg-repeat":[{bg:de()}],"bg-size":[{bg:ze()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},vt,W,$],radial:["",W,$],conic:[vt,W,$]},Ni,Mi]}],"bg-color":[{bg:G()}],"gradient-from-pos":[{from:he()}],"gradient-via-pos":[{via:he()}],"gradient-to-pos":[{to:he()}],"gradient-from":[{from:G()}],"gradient-via":[{via:G()}],"gradient-to":[{to:G()}],rounded:[{rounded:me()}],"rounded-s":[{"rounded-s":me()}],"rounded-e":[{"rounded-e":me()}],"rounded-t":[{"rounded-t":me()}],"rounded-r":[{"rounded-r":me()}],"rounded-b":[{"rounded-b":me()}],"rounded-l":[{"rounded-l":me()}],"rounded-ss":[{"rounded-ss":me()}],"rounded-se":[{"rounded-se":me()}],"rounded-ee":[{"rounded-ee":me()}],"rounded-es":[{"rounded-es":me()}],"rounded-tl":[{"rounded-tl":me()}],"rounded-tr":[{"rounded-tr":me()}],"rounded-br":[{"rounded-br":me()}],"rounded-bl":[{"rounded-bl":me()}],"border-w":[{border:pe()}],"border-w-x":[{"border-x":pe()}],"border-w-y":[{"border-y":pe()}],"border-w-s":[{"border-s":pe()}],"border-w-e":[{"border-e":pe()}],"border-w-t":[{"border-t":pe()}],"border-w-r":[{"border-r":pe()}],"border-w-b":[{"border-b":pe()}],"border-w-l":[{"border-l":pe()}],"divide-x":[{"divide-x":pe()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":pe()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Ne(),"hidden","none"]}],"divide-style":[{divide:[...Ne(),"hidden","none"]}],"border-color":[{border:G()}],"border-color-x":[{"border-x":G()}],"border-color-y":[{"border-y":G()}],"border-color-s":[{"border-s":G()}],"border-color-e":[{"border-e":G()}],"border-color-t":[{"border-t":G()}],"border-color-r":[{"border-r":G()}],"border-color-b":[{"border-b":G()}],"border-color-l":[{"border-l":G()}],"divide-color":[{divide:G()}],"outline-style":[{outline:[...Ne(),"none","hidden"]}],"outline-offset":[{"outline-offset":[ee,W,$]}],"outline-w":[{outline:["",ee,Jt,zt]}],"outline-color":[{outline:G()}],shadow:[{shadow:["","none",f,d0,u0]}],"shadow-color":[{shadow:G()}],"inset-shadow":[{"inset-shadow":["none",g,d0,u0]}],"inset-shadow-color":[{"inset-shadow":G()}],"ring-w":[{ring:pe()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:G()}],"ring-offset-w":[{"ring-offset":[ee,zt]}],"ring-offset-color":[{"ring-offset":G()}],"inset-ring-w":[{"inset-ring":pe()}],"inset-ring-color":[{"inset-ring":G()}],"text-shadow":[{"text-shadow":["none",y,d0,u0]}],"text-shadow-color":[{"text-shadow":G()}],opacity:[{opacity:[ee,W,$]}],"mix-blend":[{"mix-blend":[...Oe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Oe()}],"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":ne()}],"mask-image-linear-to-pos":[{"mask-linear-to":ne()}],"mask-image-linear-from-color":[{"mask-linear-from":G()}],"mask-image-linear-to-color":[{"mask-linear-to":G()}],"mask-image-t-from-pos":[{"mask-t-from":ne()}],"mask-image-t-to-pos":[{"mask-t-to":ne()}],"mask-image-t-from-color":[{"mask-t-from":G()}],"mask-image-t-to-color":[{"mask-t-to":G()}],"mask-image-r-from-pos":[{"mask-r-from":ne()}],"mask-image-r-to-pos":[{"mask-r-to":ne()}],"mask-image-r-from-color":[{"mask-r-from":G()}],"mask-image-r-to-color":[{"mask-r-to":G()}],"mask-image-b-from-pos":[{"mask-b-from":ne()}],"mask-image-b-to-pos":[{"mask-b-to":ne()}],"mask-image-b-from-color":[{"mask-b-from":G()}],"mask-image-b-to-color":[{"mask-b-to":G()}],"mask-image-l-from-pos":[{"mask-l-from":ne()}],"mask-image-l-to-pos":[{"mask-l-to":ne()}],"mask-image-l-from-color":[{"mask-l-from":G()}],"mask-image-l-to-color":[{"mask-l-to":G()}],"mask-image-x-from-pos":[{"mask-x-from":ne()}],"mask-image-x-to-pos":[{"mask-x-to":ne()}],"mask-image-x-from-color":[{"mask-x-from":G()}],"mask-image-x-to-color":[{"mask-x-to":G()}],"mask-image-y-from-pos":[{"mask-y-from":ne()}],"mask-image-y-to-pos":[{"mask-y-to":ne()}],"mask-image-y-from-color":[{"mask-y-from":G()}],"mask-image-y-to-color":[{"mask-y-to":G()}],"mask-image-radial":[{"mask-radial":[W,$]}],"mask-image-radial-from-pos":[{"mask-radial-from":ne()}],"mask-image-radial-to-pos":[{"mask-radial-to":ne()}],"mask-image-radial-from-color":[{"mask-radial-from":G()}],"mask-image-radial-to-color":[{"mask-radial-to":G()}],"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":ne()}],"mask-image-conic-to-pos":[{"mask-conic-to":ne()}],"mask-image-conic-from-color":[{"mask-conic-from":G()}],"mask-image-conic-to-color":[{"mask-conic-to":G()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Ae()}],"mask-repeat":[{mask:de()}],"mask-size":[{mask:ze()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",W,$]}],filter:[{filter:["","none",W,$]}],blur:[{blur:Be()}],brightness:[{brightness:[ee,W,$]}],contrast:[{contrast:[ee,W,$]}],"drop-shadow":[{"drop-shadow":["","none",w,d0,u0]}],"drop-shadow-color":[{"drop-shadow":G()}],grayscale:[{grayscale:["",ee,W,$]}],"hue-rotate":[{"hue-rotate":[ee,W,$]}],invert:[{invert:["",ee,W,$]}],saturate:[{saturate:[ee,W,$]}],sepia:[{sepia:["",ee,W,$]}],"backdrop-filter":[{"backdrop-filter":["","none",W,$]}],"backdrop-blur":[{"backdrop-blur":Be()}],"backdrop-brightness":[{"backdrop-brightness":[ee,W,$]}],"backdrop-contrast":[{"backdrop-contrast":[ee,W,$]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ee,W,$]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ee,W,$]}],"backdrop-invert":[{"backdrop-invert":["",ee,W,$]}],"backdrop-opacity":[{"backdrop-opacity":[ee,W,$]}],"backdrop-saturate":[{"backdrop-saturate":[ee,W,$]}],"backdrop-sepia":[{"backdrop-sepia":["",ee,W,$]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":P()}],"border-spacing-x":[{"border-spacing-x":P()}],"border-spacing-y":[{"border-spacing-y":P()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",W,$]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[ee,"initial",W,$]}],ease:[{ease:["linear","initial",A,W,$]}],delay:[{delay:[ee,W,$]}],animate:[{animate:["none",E,W,$]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[k,W,$]}],"perspective-origin":[{"perspective-origin":q()}],rotate:[{rotate:Fe()}],"rotate-x":[{"rotate-x":Fe()}],"rotate-y":[{"rotate-y":Fe()}],"rotate-z":[{"rotate-z":Fe()}],scale:[{scale:qe()}],"scale-x":[{"scale-x":qe()}],"scale-y":[{"scale-y":qe()}],"scale-z":[{"scale-z":qe()}],"scale-3d":["scale-3d"],skew:[{skew:Ze()}],"skew-x":[{"skew-x":Ze()}],"skew-y":[{"skew-y":Ze()}],transform:[{transform:[W,$,"","none","gpu","cpu"]}],"transform-origin":[{origin:q()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Ge()}],"translate-x":[{"translate-x":Ge()}],"translate-y":[{"translate-y":Ge()}],"translate-z":[{"translate-z":Ge()}],"translate-none":["translate-none"],accent:[{accent:G()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:G()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",W,$]}],"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":P()}],"scroll-mx":[{"scroll-mx":P()}],"scroll-my":[{"scroll-my":P()}],"scroll-ms":[{"scroll-ms":P()}],"scroll-me":[{"scroll-me":P()}],"scroll-mt":[{"scroll-mt":P()}],"scroll-mr":[{"scroll-mr":P()}],"scroll-mb":[{"scroll-mb":P()}],"scroll-ml":[{"scroll-ml":P()}],"scroll-p":[{"scroll-p":P()}],"scroll-px":[{"scroll-px":P()}],"scroll-py":[{"scroll-py":P()}],"scroll-ps":[{"scroll-ps":P()}],"scroll-pe":[{"scroll-pe":P()}],"scroll-pt":[{"scroll-pt":P()}],"scroll-pr":[{"scroll-pr":P()}],"scroll-pb":[{"scroll-pb":P()}],"scroll-pl":[{"scroll-pl":P()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",W,$]}],fill:[{fill:["none",...G()]}],"stroke-w":[{stroke:[ee,Jt,zt,Q0]}],stroke:[{stroke:["none",...G()]}],"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"]}},Ei=mi(Ri);function H(...r){return Ei(On(r))}const za=r=>typeof r=="boolean"?`${r}`:r===0?"0":r,Na=On,T=(r,e)=>t=>{var a;if((e==null?void 0:e.variants)==null)return Na(r,t==null?void 0:t.class,t==null?void 0:t.className);const{variants:n,defaultVariants:s}=e,o=Object.keys(n).map(d=>{const f=t==null?void 0:t[d],g=s==null?void 0:s[d];if(f===null)return null;const y=za(f)||za(g);return n[d][y]}),l=t&&Object.entries(t).reduce((d,f)=>{let[g,y]=f;return y===void 0||(d[g]=y),d},{}),u=e==null||(a=e.compoundVariants)===null||a===void 0?void 0:a.reduce((d,f)=>{let{class:g,className:y,...w}=f;return Object.entries(w).every(M=>{let[k,N]=M;return Array.isArray(N)?N.includes({...s,...l}[k]):{...s,...l}[k]===N})?[...d,g,y]:d},[]);return Na(r,o,u,t==null?void 0:t.class,t==null?void 0:t.className)},Bi=T("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"}}),Li=T('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"}}),ji=T("absolute inset-0 w-full h-full object-cover"),Ii=r=>{const e=r.trim().split(/\s+/);return e.length>=2?(e[0][0]+e[1][0]).toUpperCase():r.slice(0,2).toUpperCase()},Pi=(r,e)=>`https://picsum.photos/seed/${r}/${e}/${e}`,Gr=I.forwardRef(({className:r,type:e="text",shape:t="circular",size:a="small",initials:n="AR",src:s,alt:o="Avatar",fallbackInitials:l,...u},d)=>{const[f,g]=I.useState(!1),y=I.useMemo(()=>Math.floor(Math.random()*1e3),[]),M=s||Pi(y,a==="big"?64:32),k=f&&l?l:n,N=e==="image"&&!f,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:H(Bi({shape:t,size:a}),r),style:N?void 0:E,role:"img","aria-label":o,...u,children:N?h.jsx("img",{src:M,alt:o,className:H(ji()),onError:A}):h.jsx("span",{className:H(Li({size:a})),children:Ii(k)})})});Gr.displayName="Avatar";const Oi=T("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"}}),Fi=T("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"}}),qi=T("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"}}),Ur=I.forwardRef(({className:r,variant:e="neutral",size:t="medium",animated:a=!1,...n},s)=>h.jsxs("div",{ref:s,className:H(Oi({size:t}),r),...n,children:[a&&h.jsx("span",{className:qi({variant:e})}),h.jsx("span",{className:Fi({variant:e})})]}));Ur.displayName="StatusIndicator";const Hi={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"},Vi={display:"h1",h1:"h1",h2:"h2",h3:"h3",h4:"h4",small:"p",tiny:"p","x-small":"p","column-header":"span",tag:"span"},_i={primary:"text-[var(--color-gray-1000)]",secondary:"text-[var(--color-gray-600)]",inherit:""},Gi={thin:"font-thin",extralight:"font-extralight",light:"font-light",regular:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold",black:"font-black"},Ui={serif:"!font-heading",sans:"!font-body"},ct=({variant:r,as:e,children:t,className:a,color:n="primary",weight:s,fontFamily:o})=>{const l=e||Vi[r],u=Hi[r],d=_i[n],f=s?Gi[s]:"",g=o?Ui[o]:"";return h.jsx(l,{className:H(u,d,f,g,a),children:t})},$i={dark:"rgba(0, 6, 38, 1)",darkTeal:"rgba(2, 46, 64, 1)",teal:"rgba(21, 177, 205, 1)",lightTeal:"rgba(106, 234, 253, 1)",orange:"rgba(255, 111, 0, 1)",white:"rgba(255, 255, 255, 1)"},$r=({size:r=256,colorVariant:e="dark",...t})=>{const a=$i[e];return h.jsxs("svg",{...t,width:r,height:r,viewBox:"0 0 256 256",fill:"none",children:[h.jsx("path",{d:"M35.2761 209.996L27.7832 218.211H11V227H79.5141V218.211H53.3838L48.1047 212.422L62.2011 175.529H138.132L151.434 212.289L146.041 218.211H120.914V227H206.306V218.211H192.664L187.404 212.441L115.029 30H79.7412L81.3306 34.872L93.5916 64.7535M46.0234 218.211H45.9098L46.9127 215.575L46.0234 218.211ZM126.496 162.633H73.9891L69.4858 157.703L97.7164 88.5402H103.223L113.383 113.951L126.269 146.182L130.923 157.818L126.515 162.652L126.496 162.633ZM131.548 159.06H131.567L133.024 162.652L131.548 159.06Z",fill:a}),h.jsx("path",{d:"M233.477 227C239.841 227 245 221.791 245 215.365C245 208.938 239.841 203.729 233.477 203.729C227.113 203.729 221.954 208.938 221.954 215.365C221.954 221.791 227.113 227 233.477 227Z",fill:a})]})};$r.displayName="LogoA";const Wi={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)"},Yn=({size:r=163,colorVariant:e="dark",...t})=>{const a=Wi[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"})})})]})};Yn.displayName="FullLogo";const Xi={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)"},Wr=({size:r=329,colorVariant:e="dark",animated:t=!1,animationDuration:a=2,animationDelay:n=0,...s})=>{const o=Xi[e],l=I.useId(),u=2800;return t?h.jsxs("svg",{...s,width:r,height:r,viewBox:"0 0 329 329",fill:"none",children:[h.jsx("style",{children:`
2
- @keyframes drawSignature-${l.replace(/:/g,"")} {
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),h=require("react"),l=require("./index-DBlB_5Nx.cjs"),T=require("framer-motion"),o=require("./Search-jJp9VWfl.cjs"),$r=require("@radix-ui/react-tabs"),W=require("sonner"),Gr=require("@radix-ui/react-tooltip"),Bt=require("react-dom");function Me(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const a=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,a.get?a:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const d=Me(h),te=Me($r),Q=Me(Gr),Zr=Me(Bt),Kr=l.cva("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"}}),qr=l.cva('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"}}),Xr=l.cva("absolute inset-0 w-full h-full object-cover"),Yr=e=>{const t=e.trim().split(/\s+/);return t.length>=2?(t[0][0]+t[1][0]).toUpperCase():e.slice(0,2).toUpperCase()},Jr=(e,t)=>`https://picsum.photos/seed/${e}/${t}/${t}`,at=h.forwardRef(({className:e,type:t="text",shape:r="circular",size:a="small",initials:s="AR",src:i,alt:u="Avatar",fallbackInitials:c,...m},f)=>{const[v,p]=h.useState(!1),x=h.useMemo(()=>Math.floor(Math.random()*1e3),[]),S=i||Jr(x,a==="big"?64:32),g=v&&c?c:s,C=t==="image"&&!v,w=()=>{p(!0)},j={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 n.jsx("div",{ref:f,className:l.cn(Kr({shape:r,size:a}),e),style:C?void 0:j,role:"img","aria-label":u,...m,children:C?n.jsx("img",{src:S,alt:u,className:l.cn(Xr()),onError:w}):n.jsx("span",{className:l.cn(qr({size:a})),children:Yr(g)})})});at.displayName="Avatar";const Qr=l.cva("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"}}),ea=l.cva("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"}}),ta=l.cva("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"}}),nt=h.forwardRef(({className:e,variant:t="neutral",size:r="medium",animated:a=!1,...s},i)=>n.jsxs("div",{ref:i,className:l.cn(Qr({size:r}),e),...s,children:[a&&n.jsx("span",{className:ta({variant:t})}),n.jsx("span",{className:ea({variant:t})})]}));nt.displayName="StatusIndicator";const ra={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"},aa={display:"h1",h1:"h1",h2:"h2",h3:"h3",h4:"h4",small:"p",tiny:"p","x-small":"p","column-header":"span",tag:"span"},na={primary:"text-[var(--color-gray-1000)]",secondary:"text-[var(--color-gray-600)]",inherit:""},oa={thin:"font-thin",extralight:"font-extralight",light:"font-light",regular:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold",black:"font-black"},sa={serif:"!font-heading",sans:"!font-body"},$=({variant:e,as:t,children:r,className:a,color:s="primary",weight:i,fontFamily:u})=>{const c=t||aa[e],m=ra[e],f=na[s],v=i?oa[i]:"",p=u?sa[u]:"";return n.jsx(c,{className:l.cn(m,f,v,p,a),children:r})},ia={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)"},ot=({size:e=256,colorVariant:t="dark",...r})=>{const a=ia[t];return n.jsxs("svg",{...r,width:e,height:e,viewBox:"0 0 256 256",fill:"none",children:[n.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}),n.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})]})};ot.displayName="LogoA";const la={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)"},Ht=({size:e=163,colorVariant:t="dark",...r})=>{const a=la[t],s=603/163,i=typeof e=="number"?e:parseFloat(e),u=i*s;return n.jsxs("svg",{...r,width:u,height:i,viewBox:"0 0 603 163",fill:"none",children:[n.jsxs("g",{clipPath:"url(#clip0_full_logo)",children:[n.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}),n.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}),n.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}),n.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}),n.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})]}),n.jsx("defs",{children:n.jsx("clipPath",{id:"clip0_full_logo",children:n.jsx("rect",{width:"603",height:"163",fill:"white"})})})]})};Ht.displayName="FullLogo";const ca={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)"},st=({size:e=329,colorVariant:t="dark",animated:r=!1,animationDuration:a=2,animationDelay:s=0,...i})=>{const u=ca[t],c=h.useId(),m=2800;return r?n.jsxs("svg",{...i,width:e,height:e,viewBox:"0 0 329 329",fill:"none",children:[n.jsx("style",{children:`
2
+ @keyframes drawSignature-${c.replace(/:/g,"")} {
3
3
  0% {
4
4
  stroke-dashoffset: var(--path-length);
5
5
  fill-opacity: 0;
@@ -13,7 +13,7 @@
13
13
  fill-opacity: 1;
14
14
  }
15
15
  }
16
- @keyframes drawDot-${l.replace(/:/g,"")} {
16
+ @keyframes drawDot-${c.replace(/:/g,"")} {
17
17
  0% {
18
18
  opacity: 0;
19
19
  transform: scale(0);
@@ -23,313 +23,49 @@
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})]})};Wr.displayName="SignatureA";const Yi=T("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}}),Zi=T("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"}}),Ki=T("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"}}),er=T("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"}}),Ji=T("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"),Qi=T("w-full h-full bg-[var(--color-blue-200)]/30 p-2 space-y-2 flex flex-col items-start justify-start gap-1"),el=T("h-1 bg-[var(--color-gray-200)] rounded-full origin-left"),tl=T("flex flex-col gap-[4px] grow items-start p-4 min-w-0"),rl=T("font-medium text-[14px] leading-[20px] text-[var(--color-blue-1000)]"),al=T("text-[12px] leading-[16px] text-[var(--color-gray-600)]"),nl=T("px-4 overflow-hidden flex items-center w-[56px] relative"),sl=T("absolute w-6 h-6 text-[var(--color-blue-800)]"),ol=T("w-6 h-6 text-[var(--color-gray-200)]"),il=T("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"}}),ll=T("w-4 h-4 shrink-0 text-[var(--color-red-1000)] transition-transform duration-300 group-hover:scale-110"),cl={rest:{scaleX:1},hover:{scaleX:[0,1]}},ul={rest:{x:0},hover:{x:4}},dl={rest:{x:-20,opacity:0},hover:{x:0,opacity:1}},ml={rest:{x:0,opacity:1},hover:{x:20,opacity:0}},hl=[100,66,75,50],Zn=I.forwardRef(({title:r,subtitle:e,status:t,onClick:a,onActionClick:n,className:s,disabled:o=!1},l)=>{const[u,d]=I.useState(!1),f=t||(u&&!o?"hover":"normal"),g=I.useMemo(()=>f==="generating"||f==="error"?"rest":u?"hover":"rest",[f,u]),y=I.useCallback(()=>{!t&&!o&&d(!0)},[t,o]),w=I.useCallback(()=>{!t&&!o&&d(!1)},[t,o]),M=I.useCallback(()=>{!o&&a&&a()},[o,a]),k=I.useCallback(R=>{R.stopPropagation(),!o&&n&&n()},[o,n]),N=I.useCallback(R=>{(R.key==="Enter"||R.key===" ")&&(R.preventDefault(),M())},[M]),A=()=>f==="generating"?h.jsx("div",{className:er({status:"generating"}),children:h.jsx(p.Loader,{size:16,className:"text-[var(--color-gray-600)] animate-spin"})}):f==="error"?h.jsx("div",{className:er({status:"error"}),children:h.jsx(p.TriangleAlert,{size:16,className:ll()})}):h.jsx("div",{className:er({status:f}),children:h.jsx("div",{className:Ji(),children:h.jsx(Se.motion.div,{className:Qi(),variants:{rest:{},hover:{transition:{staggerChildren:.1}}},children:hl.map((R,F)=>h.jsx(Se.motion.div,{className:el(),style:{width:`${R}%`},variants:cl,transition:{duration:.4,ease:"easeInOut"}},F))})})}),E=()=>f==="generating"?null:f==="error"?h.jsx("button",{type:"button",onClick:k,className:"focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-blue-800)] focus-visible:ring-offset-2 rounded-sm","aria-label":"Retry",children:h.jsx(p.RotateCcw,{size:16,className:il({status:"error"})})}):h.jsxs(h.Fragment,{children:[h.jsx(Se.motion.div,{className:sl(),variants:dl,transition:{duration:.3,ease:"backOut"},children:h.jsx(p.ArrowUp,{size:24,className:"rotate-90"})}),h.jsx(Se.motion.div,{className:ol(),variants:ml,transition:{duration:.3},children:h.jsx(p.ArrowUp,{size:24,className:"rotate-90"})})]});return h.jsxs(Se.motion.div,{ref:l,role:"button",tabIndex:o?-1:0,className:H(Yi({status:f,disabled:o}),s),onClick:M,onKeyDown:N,onMouseEnter:y,onMouseLeave:w,"aria-disabled":o,"aria-label":`${r} - ${e}${f==="error"?" - Error occurred":""}${f==="generating"?" - Generating":""}`,initial:"rest",whileHover:"hover",animate:g,children:[h.jsx("div",{className:Zi({status:f}),children:h.jsx("div",{className:Ki({status:f})})}),A(),h.jsxs(Se.motion.div,{className:tl(),variants:ul,children:[h.jsx("p",{className:rl(),title:r,children:r}),h.jsx("p",{className:al(),title:e,children:e})]}),h.jsx("div",{className:nl(),children:E()})]})});Zn.displayName="ArtifactCard";const fl=T("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"}}),m0=T("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"}}),pl=T("text-[var(--color-gray-600)] flex items-center justify-center"),Kn=({items:r,separator:e=h.jsx(p.ChevronRight,{size:16}),className:t,size:a="medium"})=>h.jsx("nav",{"aria-label":"Breadcrumb",className:H(fl({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:m0({state:"active"}),"aria-current":"page",children:[n.icon,n.label]}):n.href?l=h.jsxs("a",{href:n.href,className:m0({state:"default"}),onClick:n.onClick,children:[n.icon,n.label]}):n.onClick?l=h.jsxs("button",{type:"button",className:m0({state:"default"}),onClick:n.onClick,children:[n.icon,n.label]}):l=h.jsxs("span",{className:m0({state:"inactive"}),children:[n.icon,n.label]}),h.jsxs("li",{className:"flex items-center gap-2",children:[l,!o&&h.jsx("span",{className:pl(),"aria-hidden":"true",children:e})]},`${n.label}-${s}`)})})}),vl=T("inline-flex items-center justify-center rounded-[8px] font-normal transition-colors duration-200 box-border cursor-pointer disabled:cursor-not-allowed disabled:opacity-50 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2",{variants:{variant:{primary:"bg-[var(--color-white)] border border-[var(--color-blue-1000)] text-[var(--color-blue-1000)] hover:bg-[var(--color-blue-200)] active:bg-[var(--color-blue-400)] focus-visible:outline-[var(--color-blue-800)]",secondary:"bg-[rgba(255,255,255,0.01)] border border-[var(--color-gray-600)] text-[var(--color-gray-600)] hover:bg-[var(--color-gray-100)] hover:border-[var(--color-gray-800)] hover:text-[var(--color-gray-800)] active:bg-[var(--color-gray-200)] active:border-[var(--color-gray-1000)] active:text-[var(--color-gray-1000)] focus-visible:outline-[var(--color-blue-800)]",tertiary:"bg-transparent border border-transparent text-[var(--color-blue-1000)] hover:bg-[var(--color-gray-100)] active:bg-[var(--color-gray-200)] focus-visible:outline-[var(--color-blue-800)]",cta:"bg-[var(--color-blue-800)] border border-transparent text-[var(--color-white)] hover:bg-[var(--color-blue-400)] active:bg-[var(--color-blue-1000)] focus-visible:outline-[var(--color-blue-1000)]",danger:"bg-[var(--color-red-1000)] border border-transparent text-[var(--color-white)] hover:bg-[#e54545] active:bg-[#cc3d3d] focus-visible:outline-[var(--color-red-1000)]"},tone:{brand:"",neutral:""},size:{small:"px-2 py-2 gap-1 text-[0.75rem] leading-[1rem]",medium:"px-3 py-2 gap-1 text-[1rem] leading-[1.5rem]",large:"px-4 py-3 gap-1 text-[1rem] leading-[1.5rem]"}},compoundVariants:[{variant:"primary",tone:"neutral",className:"bg-[rgba(0,6,38,0.9)] border-transparent text-[var(--color-white)] hover:bg-[rgba(0,6,38,0.8)] active:bg-[rgba(0,6,38,1)] focus-visible:outline-[var(--color-blue-800)]"},{variant:"secondary",tone:"neutral",className:"bg-[rgba(255,255,255,0.01)] border-[rgba(0,13,77,0.45)] text-[rgba(0,9,51,0.65)] hover:bg-[rgba(0,13,77,0.05)] hover:border-[rgba(0,13,77,0.65)] hover:text-[rgba(0,9,51,0.85)] active:bg-[rgba(0,13,77,0.1)] active:border-[rgba(0,13,77,0.85)] active:text-[rgba(0,9,51,1)] focus-visible:outline-[var(--color-blue-800)]"},{variant:"tertiary",tone:"neutral",className:"text-[rgba(0,9,51,0.65)] hover:bg-[rgba(0,13,77,0.05)] active:bg-[rgba(0,13,77,0.1)] hover:text-[rgba(0,9,51,0.85)] active:text-[rgba(0,9,51,1)] focus-visible:outline-[var(--color-blue-800)]"}],defaultVariants:{variant:"primary",tone:"brand",size:"medium"}}),Ut=I.forwardRef(({className:r,variant:e="primary",tone:t="brand",size:a="medium",startIcon:n,endIcon:s,children:o,disabled:l,...u},d)=>{const f=a==="small"?13:a==="large"?20:16;return h.jsxs("button",{ref:d,className:H(vl({variant:e,tone:t,size:a}),r),disabled:l,...u,children:[n&&h.jsx("span",{className:"flex items-center justify-center shrink-0",style:{width:f,height:f},children:n}),o,s&&h.jsx("span",{className:"flex items-center justify-center shrink-0",style:{width:f,height:f},children:s})]})});Ut.displayName="Button";const gl=T("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"}}),bl=T("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"}}),h0=T("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"}}),xl=T("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 Jn=(r=>(r.Uploading="uploading",r.Processing="processing",r.Done="done",r.Error="error",r))(Jn||{});const Qn=({filename:r,status:e="done",progress:t=0,onDelete:a,className:n})=>{const s=e==="uploading",o=e==="processing",l=e==="error",d=s?"uploading":o?"processing":l?"error":"done",f=()=>s?h.jsx(p.ArrowUp,{size:12,className:h0({status:d})}):o?h.jsx(p.Loader,{size:12,className:H(h0({status:d}),"animate-spin")}):l?h.jsx(p.TriangleAlert,{size:12,className:h0({status:d})}):h.jsx(p.FileText,{size:12,className:h0({status:d})});return h.jsxs("div",{className:"relative inline-block group",children:[h.jsxs("div",{className:H(gl({status:d}),n),children:[(s||o)&&h.jsx(Se.motion.div,{className:xl({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:H("flex items-center justify-center shrink-0 p-1 rounded-[2px]",l&&"bg-[#fff2f2]"),children:f()}),h.jsx("span",{className:bl({status:d}),title:r,children:r})]})]}),a&&!s&&!o&&h.jsx(Se.motion.button,{onClick:a,className:"absolute -top-[6px] -right-[6px] hidden group-hover:flex items-center justify-center bg-[var(--color-white)] border border-[var(--color-gray-200)] rounded-[8px] p-[2px] focus:outline-none focus:ring-2 focus:ring-[var(--color-blue-800)] shrink-0 z-20","aria-label":"Remove file",initial:{scale:0,opacity:0},whileInView:{scale:1,opacity:1},whileHover:{scale:1.1},whileTap:{scale:.95},transition:{scale:{type:"spring",stiffness:400,damping:17},opacity:{duration:.2}},children:h.jsx(p.X,{size:10,className:"text-[var(--color-gray-800)]"})})]})},yl=T("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"}}),wl=T("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"}}),Sl="sr-only peer",es=I.forwardRef(({className:r,checked:e,defaultChecked:t,onChange:a,label:n,size:s="medium",disabled:o,...l},u)=>{const[d,f]=I.useState(t||!1),g=e!==void 0,y=g?e:d,w=M=>{g||f(M.target.checked),a==null||a(M)};return h.jsxs("label",{className:yl({size:s,className:r}),children:[h.jsx("input",{type:"checkbox",className:Sl,ref:u,checked:g?e:void 0,defaultChecked:g?void 0:t,onChange:w,disabled:o,...l}),h.jsx("span",{className:wl({checked:!!y,size:s}),children:h.jsx(p.Check,{size:s==="medium"?12:8,strokeWidth:3,className:H("text-white transition-opacity duration-200",y?"opacity-100":"opacity-0")})}),n&&h.jsx(ct,{as:"span",variant:s==="medium"?"small":"x-small",color:"secondary",children:n})]})});es.displayName="Checkbox";const kl=T("relative inline-flex items-center justify-center",{variants:{size:{xs:"w-[18px] h-[18px]",small:"w-[24px] h-[24px]",medium:"w-[32px] h-[32px]",large:"w-[40px] h-[40px]"}},defaultVariants:{size:"medium"}}),Cl=T("transform"),Ml=T("stroke-[var(--color-gray-200)]"),Tl=T("transition-[stroke-dashoffset] duration-300 ease-in-out",{variants:{variant:{default:"stroke-[var(--color-blue-800)]",success:"stroke-[var(--color-green-1000)]",warning:"stroke-[var(--color-orange-800)]",error:"stroke-[var(--color-red-1000)]"}},defaultVariants:{variant:"default"}}),zl=T("absolute inset-0 flex items-center justify-center font-medium text-[var(--color-gray-800)]",{variants:{size:{xs:"text-[6px]",small:"text-[8px]",medium:"text-[10px]",large:"text-[12px]"}},defaultVariants:{size:"medium"}}),Nl={xs:18,small:24,medium:32,large:40},Xr=I.forwardRef(({className:r,value:e=0,max:t=100,size:a="medium",variant:n="default",showLabel:s=!0,labelFormatter:o,strokeWidth:l=3,...u},d)=>{const f=Math.min(Math.max(e/t*100,0),100),g=Nl[a],y=(g-l)/2,w=2*Math.PI*y,M=w-f/100*w,k=o?o(e,t):`${Math.round(e)}`;return h.jsxs("div",{ref:d,className:H(kl({size:a}),r),role:"progressbar","aria-valuemin":0,"aria-valuemax":t,"aria-valuenow":e,...u,children:[h.jsxs("svg",{className:Cl(),width:g,height:g,viewBox:`0 0 ${g} ${g}`,children:[h.jsx("circle",{className:Ml(),cx:g/2,cy:g/2,r:y,fill:"none",strokeWidth:l}),h.jsx("circle",{className:Tl({variant:n}),cx:g/2,cy:g/2,r:y,fill:"none",strokeWidth:l,strokeLinecap:"round",strokeDasharray:w,strokeDashoffset:M,transform:`rotate(-90 ${g/2} ${g/2})`})]}),s&&h.jsx("span",{className:zl({size:a}),children:k})]})});Xr.displayName="CircularProgress";function Al(r,e){I.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 Dl=T("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}}),Rl=T("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}}),El=T("px-3 py-1 text-[0.625rem] font-bold text-[var(--color-gray-600)] uppercase tracking-wider select-none"),Bl=T("h-px bg-[var(--color-gray-200)] my-1"),ts=I.createContext(void 0),q0=()=>{const r=I.useContext(ts);if(!r)throw new Error("useDropdown must be used within a Dropdown");return r},Yr=({children:r,defaultOpen:e=!1,open:t,onOpenChange:a,className:n,...s})=>{const[o,l]=I.useState(e),u=t!==void 0,d=u?t:o,f=I.useRef(null),g=()=>{const w=!d;u||l(w),a==null||a(w)},y=()=>{u||l(!1),a==null||a(!1)};return Al(f,y),h.jsx(ts.Provider,{value:{isOpen:d,toggle:g,close:y},children:h.jsx("div",{ref:f,className:H("relative inline-block text-left",n),...s,children:r})})};Yr.displayName="Dropdown";const Zr=I.forwardRef(({className:r,children:e,onClick:t,...a},n)=>{const{toggle:s,isOpen:o}=q0(),l=u=>{s(),t==null||t(u)};return h.jsx("div",{ref:n,className:H("cursor-pointer inline-block",r),onClick:l,"aria-haspopup":"true","aria-expanded":o,...a,children:e})});Zr.displayName="DropdownTrigger";const Kr=I.forwardRef(({className:r,align:e="start",attached:t=!1,children:a,...n},s)=>{const{isOpen:o}=q0();return h.jsx(Se.AnimatePresence,{children:o&&h.jsx(Se.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:H(Dl({align:e,attached:t}),r),...n,children:a})})});Kr.displayName="DropdownContent";const Jr=I.forwardRef(({className:r,active:e,variant:t,closeOnSelect:a=!0,children:n,onClick:s,...o},l)=>{const{close:u}=q0(),d=f=>{s==null||s(f),a&&u()};return h.jsx("div",{ref:l,className:H(Rl({active:e,variant:t}),r),onClick:d,role:"menuitem",...o,children:n})});Jr.displayName="DropdownItem";const Ll=I.forwardRef(({className:r,children:e,...t},a)=>h.jsx("div",{ref:a,className:H(El(),r),...t,children:e}));Ll.displayName="DropdownLabel";const jl=I.forwardRef(({className:r,animated:e=!1,animationDelay:t=.2,...a},n)=>e?h.jsx("div",{ref:n,className:H("h-px my-1 overflow-hidden",r),...a,children:h.jsx(Se.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:H(Bl(),r),...a}));jl.displayName="DropdownSeparator";const Il=T("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"}}),Pl=T("relative w-full",{variants:{size:{medium:"",small:"",tiny:""}},defaultVariants:{size:"medium"}}),Aa=T("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"}}),rs=I.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:Pl({size:t}),children:[a&&h.jsx("span",{className:Aa({status:e,size:t,position:"start"}),children:a}),h.jsx("input",{ref:l,className:H(Il({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})]})});rs.displayName="Input";const Ol=T("flex flex-col items-center justify-center"),Fl=T("relative",{variants:{size:{sm:"w-8 h-8",md:"w-12 h-12",lg:"w-16 h-16"}},defaultVariants:{size:"lg"}}),ql=T("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"}}),Hl=T("mt-4 typography-small",{variants:{color:{primary:"text-[var(--color-gray-1000)]",muted:"text-[var(--color-gray-600)]"}},defaultVariants:{color:"muted"}}),Vl=({size:r="lg",color:e="primary",text:t,textColor:a="muted"})=>h.jsxs("div",{className:Ol(),children:[h.jsx("div",{className:Fl({size:r}),children:h.jsx("div",{className:ql({color:e})})}),t&&h.jsx("p",{className:Hl({color:a}),children:t})]}),tr=T("relative flex flex-col w-full max-w-[668px] transition-colors duration-200 group",{variants:{variant:{user:"",assistant:"",system:"",loader:""},alignment:{left:"items-start",center:"items-center",right:"items-end"},isEditing:{true:"items-stretch",false:""}},compoundVariants:[{variant:"user",alignment:void 0,isEditing:!1,className:"items-end"},{variant:"assistant",alignment:void 0,isEditing:!1,className:"items-start"},{variant:"system",alignment:void 0,className:"items-start"},{variant:"loader",alignment:void 0,className:"items-start"}],defaultVariants:{variant:"user",isEditing:!1}}),_l=T("flex gap-[12px] items-start w-full"),Gl=T("flex flex-col flex-1 min-w-0"),Da=T("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}}),Ul=T("flex w-full",{variants:{variant:{user:"flex-col gap-[8px]",assistant:"flex-col gap-[8px]",system:"flex-row items-center gap-[8px]",loader:"flex-col items-start"}},defaultVariants:{variant:"user"}}),$l=T("typography-h4 text-[var(--color-blue-1000)]"),Ra=T("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"}}),Ea=T("flex gap-[8px] p-[4px] rounded-[4px] transition-opacity duration-200",{variants:{variant:{user:"",assistant:"",system:"hidden",loader:"hidden"}},defaultVariants:{variant:"user"}}),Wl=T(["flex","gap-[8px]","opacity-0","group-hover:opacity-100","transition-opacity","duration-200"]),Xl=T("p-1 rounded-[4px] text-[var(--color-gray-400)] hover:text-[var(--color-gray-800)] hover:drop-shadow-[0_1px_2px_rgba(0,0,0,0.15)] transition-all duration-200 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[var(--color-blue-800)] disabled:opacity-30 disabled:cursor-not-allowed disabled:hover:text-[var(--color-gray-400)] disabled:hover:drop-shadow-none",{variants:{isActive:{true:"text-[var(--color-blue-800)]",false:""}},defaultVariants:{isActive:!1}}),Yl=T("flex items-start justify-center shrink-0 pt-[4px]"),Zl=T("flex items-center justify-center size-[32px] rounded-full bg-[var(--color-blue-1000)]"),Kl=T("text-[12px] text-[var(--color-gray-600)] mt-[4px]"),Jl=T("flex items-center justify-center"),Ql=T("relative overflow-hidden flex items-center gap-[8px] py-[2px] select-none"),e1=T(["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"]),t1=T(["relative shrink-0 flex items-center justify-center","text-[var(--color-gray-600)]","animate-signal-rhythm","origin-center"]),r1=T(["absolute inset-0","bg-[var(--color-blue-200)]","rounded-full","opacity-0","animate-ping-slow","-z-10"]),a1=T(["flex","flex-col","w-full","bg-[var(--color-white)]","rounded-[16px]","border","border-[var(--color-blue-800)]","p-[16px]","gap-[8px]","transition-colors","duration-200"]),n1=T(["w-full","min-h-[60px]","bg-transparent","border-none","resize-none","typography-small","text-[var(--color-blue-1000)]","placeholder:text-[var(--color-gray-600)]","focus:outline-none","disabled:opacity-50","disabled:cursor-not-allowed"]),s1=T(["text-[12px]","leading-[16px]","text-[var(--color-gray-600)]"]),o1=T(["flex","items-center","gap-[4px]"]),Ba=T(["p-[4px]","rounded-[4px]","text-[var(--color-gray-400)]","transition-colors","duration-200","hover:text-[var(--color-gray-800)]","hover:bg-[var(--color-gray-100)]","disabled:opacity-30","disabled:cursor-not-allowed","disabled:hover:bg-transparent","disabled:hover:text-[var(--color-gray-400)]","focus-visible:outline","focus-visible:outline-2","focus-visible:outline-offset-1","focus-visible:outline-[var(--color-blue-800)]"]),i1=T(["text-[12px]","leading-[16px]","text-[var(--color-gray-600)]","font-normal","tabular-nums","select-none","min-w-[32px]","text-center"]),l1=[],c1=typeof navigator<"u"&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),u1=c1?"⌘+Enter to save, Esc to cancel":"Ctrl+Enter to save, Esc to cancel",d1=r=>{const e=typeof r=="string"?new Date(r):r,a=new Date().getTime()-e.getTime(),n=Math.floor(a/6e4);if(n<1)return"Just now";if(n<60)return`${n} min ago`;const s=Math.floor(n/60);return s<24?`${s}h ago`:e.toLocaleDateString()},Vt=I.memo(({onClick:r,icon:e,label:t,className:a,isActive:n=!1,disabled:s=!1})=>h.jsx("button",{className:H(Xl({isActive:n}),a),onClick:r,type:"button","aria-label":t,disabled:s,children:h.jsx(e,{size:12})}));Vt.displayName="ActionButton";const as=I.memo(({branchInfo:r,onPrevious:e,onNext:t,isLoading:a=!1})=>{const n=r.currentIndex>1,s=r.currentIndex<r.totalBranches;return r.totalBranches<=1?null:h.jsxs("div",{className:H(o1()),children:[h.jsx("button",{type:"button",className:H(Ba()),onClick:e,disabled:!n||a,"aria-label":"Previous version",children:h.jsx(p.ChevronLeft,{size:14})}),h.jsxs("span",{className:H(i1()),children:[r.currentIndex," / ",r.totalBranches]}),h.jsx("button",{type:"button",className:H(Ba()),onClick:t,disabled:!s||a,"aria-label":"Next version",children:h.jsx(p.ChevronRight,{size:14})})]})});as.displayName="BranchNavigator";const m1=()=>{const[r,e]=I.useState(0);return I.useEffect(()=>{const t=setInterval(()=>{e(a=>a+1)},2500);return()=>clearInterval(t)},[]),h.jsx("div",{className:H(Jl()),children:h.jsx(Wr,{size:28,colorVariant:"lightTeal",animated:!0,animationDuration:2},r)})},ns=I.forwardRef(({className:r,variant:e="user",heading:t,children:a,isLoading:n,timestamp:s,hideAvatar:o=!1,showTimestamp:l=!1,isSticky:u=!1,isInitialPrompt:d=!1,alignment:f,actions:g=l1,enableCopy:y=!1,copyIcon:w,onCopySuccess:M,enableEdit:k=!1,isEditing:N,initialEditContent:A,onEditStart:E,onEditCancel:R,onEditSave:F,isSaving:q=!1,branchInfo:X,onPreviousBranch:_,onNextBranch:P,isBranchLoading:Y=!1,...be},ue)=>{const te=I.useRef(null),ye=I.useRef(null),[se,le]=I.useState(!1),[oe,Ce]=I.useState(!1),[G,Ae]=I.useState(A??""),de=N??oe,ze=f??(e==="user"?d?"center":"right":"left"),he=I.useCallback(()=>te.current?te.current.innerText:typeof a=="string"?a:"",[a]),me=I.useCallback(()=>{if(N===void 0){const j=A??he();Ae(j),Ce(!0)}E==null||E()},[A,he,N,E]),pe=I.useCallback(()=>{N===void 0&&Ce(!1),Ae(""),R==null||R()},[N,R]),Ne=I.useCallback(async()=>{if(!(!(G!=null&&G.trim())||q)&&G.trim()!==(A==null?void 0:A.trim()))try{await(F==null?void 0:F(G)),N===void 0&&Ce(!1),Ae("")}catch(j){console.error("Failed to save edit:",j)}},[G,q,F,N,A]),Oe=I.useCallback(j=>{j.key==="Escape"?pe():j.key==="Enter"&&(j.metaKey||j.ctrlKey)&&(j.preventDefault(),Ne())},[pe,Ne]),ne=I.useRef(!1),Be=I.useRef(A);I.useEffect(()=>{Be.current=A},[A]),I.useEffect(()=>{const j=ne.current;if(ne.current=de,de&&!j){const Le=A||Be.current||he()||"";Ae(Le)}else!de&&j&&Ae("")},[de,A,he]),I.useEffect(()=>{if(de&&ye.current){ye.current.focus();const j=ye.current.value.length;ye.current.setSelectionRange(j,j)}},[de]);const Fe=I.useCallback(async()=>{if(!te.current)return;const j=te.current.innerText;try{navigator.clipboard&&navigator.clipboard.writeText?(await navigator.clipboard.writeText(j),le(!0),M==null||M(),setTimeout(()=>{le(!1)},2e3)):console.warn("Clipboard API not available")}catch(Le){console.error("Failed to copy:",Le)}},[M]),qe=I.useCallback(j=>{Ae(j.target.value)},[]),Ze=I.useMemo(()=>g.length>0||y||k&&e==="user",[g.length,y,k,e]),Ge=I.useMemo(()=>!u&&!de&&(e==="user"||e==="assistant")&&Ze,[u,de,e,Ze]),Tt=I.useMemo(()=>!de&&X&&X.totalBranches>1&&e==="user",[de,X,e]);return e==="loader"||n?h.jsx("div",{ref:ue,className:H(tr({variant:"loader",alignment:"left",isEditing:!1}),r),...be,children:h.jsx("div",{className:H(Da({variant:"loader",isSticky:u})),children:h.jsx(m1,{})})}):de&&e==="user"?h.jsxs("div",{ref:ue,className:H(tr({variant:e,alignment:"right",isEditing:!0}),"group",r),...be,children:[h.jsx("div",{className:H(a1()),children:h.jsx("textarea",{ref:ye,value:G,onChange:qe,onKeyDown:Oe,className:H(n1()),placeholder:"Edit your message...",disabled:q,"aria-label":"Edit message"})}),h.jsxs("div",{className:H(Ea({variant:e}),"opacity-100 justify-between"),children:[h.jsx("span",{className:H(s1()),children:u1}),h.jsxs("div",{className:"flex",children:[h.jsx(Vt,{onClick:Ne,icon:p.Check,label:"Save",disabled:q||!(G!=null&&G.trim())||G.trim()===(A==null?void 0:A.trim())}),h.jsx(Vt,{onClick:pe,icon:p.X,label:"Cancel",disabled:q})]})]})]}):h.jsx("div",{ref:ue,className:H(tr({variant:e,alignment:ze,isEditing:!1}),"group",r),...be,children:h.jsxs("div",{className:H(_l()),children:[!o&&e==="assistant"&&h.jsx("div",{className:H(Yl()),children:h.jsx("div",{className:H(Zl()),children:h.jsx($r,{size:20,colorVariant:"lightTeal"})})}),h.jsxs("div",{className:H(Gl()),children:[h.jsx("div",{className:H(Da({variant:e,isSticky:u})),children:h.jsx("div",{className:H(Ul({variant:e})),ref:te,children:e==="system"?h.jsxs("div",{className:H(Ql()),children:[h.jsx("div",{className:H(e1())}),h.jsxs("div",{className:H(t1()),children:[h.jsx(p.Activity,{size:16}),h.jsx("div",{className:H(r1())})]}),h.jsx("span",{className:H(Ra({variant:e})),children:a})]}):h.jsxs(h.Fragment,{children:[e==="assistant"&&t&&h.jsx("h4",{className:H($l()),children:t}),h.jsx("div",{className:H(Ra({variant:e})),children:a})]})})}),l&&s&&h.jsx("div",{className:H(Kl()),children:d1(s)}),(Ge||Tt)&&h.jsxs("div",{className:H(Ea({variant:e}),"justify-between"),children:[h.jsx("div",{className:H(Wl()),children:Ge&&h.jsxs(h.Fragment,{children:[y&&w&&h.jsx(Vt,{onClick:Fe,icon:se?p.Check:w,label:se?"Copied":"Copy",isActive:se}),k&&e==="user"&&h.jsx(Vt,{onClick:me,icon:p.Edit2,label:"Edit"}),g.map((j,Le)=>h.jsx(Vt,{onClick:j.onClick,icon:j.icon,label:j.label,isActive:j.isActive},`${j.label}-${Le}`))]})}),Tt&&X&&h.jsx(as,{branchInfo:X,onPrevious:_,onNext:P,isLoading:Y})]})]})]})})});ns.displayName="MessageBubble";const h1=T("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"}}),f1=T("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"}}),p1=T("flex justify-between mb-2 text-[var(--color-gray-800)]",{variants:{size:{small:"text-xs",medium:"text-sm",large:"text-base"}},defaultVariants:{size:"medium"}}),ss=I.forwardRef(({className:r,value:e=0,max:t=100,variant:a="default",size:n="medium",showValueLabel:s=!1,label:o,valueFormatter:l,...u},d)=>{const f=Math.min(Math.max(e/t*100,0),100),g=l?l(e,t):`${Math.round(f)}%`;return h.jsxs("div",{ref:d,className:H("w-full",r),role:"progressbar","aria-valuemin":0,"aria-valuemax":t,"aria-valuenow":e,...u,children:[(o||s)&&h.jsxs("div",{className:p1({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:h1({size:n}),children:h.jsx("div",{className:f1({variant:a}),style:{transform:`translateX(-${100-f}%)`}})})]})});ss.displayName="ProgressBar";const v1=T(["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}}),os=I.forwardRef(({className:r,variant:e="cyan",animated:t=!1,style:a,...n},s)=>{const{min:o=0,max:l=100,value:u,defaultValue:d}=n,f=Number(u??d??0),g=Number(o),y=Number(l),w=Math.min(Math.max((f-g)*100/(y-g),0),100),M=e==="orange"?"var(--color-orange-800)":"var(--color-blue-800)",k=`linear-gradient(to right, ${M} 0%, ${M} ${w}%, var(--color-gray-200) ${w}%, var(--color-gray-200) 100%)`;return h.jsx("input",{ref:s,type:"range",className:H(v1({variant:e,animated:t}),r),style:{background:k,...a},...n})});os.displayName="RangeInput";const g1=T("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"}}),b1=T("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"}}),x1=T("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"}}),is=I.forwardRef(({className:r,icon:e,label:t,isCollapsed:a=!1,isActive:n=!1,variant:s="default",onClick:o,children:l,...u},d)=>{const f=a?"collapsed":"expanded",g=n?"active":s,y=w=>{o&&(w.key==="Enter"||w.key===" ")&&(w.preventDefault(),o())};return h.jsxs("div",{ref:d,className:H(g1({type:f,variant:g}),r),role:"button",tabIndex:0,"aria-label":t,onClick:o,onKeyDown:y,...u,children:[e&&h.jsx("div",{className:H(b1({type:f,variant:g})),children:e}),(s!=="brand"||!a)&&h.jsx("span",{className:H(x1({type:f,variant:g})),children:t})]})});is.displayName="SidebarItem";const y1=T("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"}}),w1=T("w-4 h-4 rounded-full object-cover shrink-0"),La=T("flex items-center justify-center shrink-0"),$t=I.forwardRef(({className:r,variant:e="default",startIcon:t,endIcon:a,avatarSrc:n,children:s,...o},l)=>h.jsxs("div",{ref:l,className:H(y1({variant:e}),r),...o,children:[n&&h.jsx("img",{src:n,alt:"avatar",className:w1()}),t&&h.jsx("span",{className:La(),children:t}),h.jsx(ct,{variant:"tag",color:"inherit",className:"whitespace-nowrap",children:s}),a&&h.jsx("span",{className:La(),children:a})]}));$t.displayName="Tag";const S1=T("inline-flex h-8 items-center justify-start rounded-none bg-transparent p-0 text-muted-foreground w-full relative"),k1=T("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"}}),C1=T("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2"),M1=T("absolute bottom-0 left-0 right-0 h-[2px] bg-[var(--color-blue-1000)]"),T1=T("flex items-center gap-[2px]"),ja=T("group-data-[state=active]:text-[var(--color-blue-1000)]"),z1=Bt.Root,ls=z.forwardRef(({className:r,...e},t)=>h.jsx(Bt.List,{ref:t,className:H(S1(),r),...e}));ls.displayName=Bt.List.displayName;const cs=z.forwardRef(({className:r,children:e,errorCount:t,configurationCount:a,...n},s)=>{const[o,l]=z.useState(!1),u=z.useRef(null);z.useEffect(()=>{const f=u.current;if(!f)return;const g=new MutationObserver(()=>{l(f.getAttribute("data-state")==="active")});return g.observe(f,{attributes:!0,attributeFilter:["data-state"]}),l(f.getAttribute("data-state")==="active"),()=>g.disconnect()},[]);const d=z.useCallback(f=>{u.current=f,typeof s=="function"?s(f):s&&(s.current=f)},[s]);return h.jsxs(Bt.Trigger,{ref:d,className:H(k1(),r),...n,children:[e,(a!==void 0||t!==void 0)&&h.jsxs("div",{className:T1(),children:[a!==void 0&&h.jsx($t,{variant:"indicator",startIcon:h.jsx(p.Settings,{size:10,className:"text-[#15B1CD]"}),className:ja(),children:a}),t!==void 0&&h.jsx($t,{variant:"indicator",startIcon:h.jsx(p.TriangleAlert,{size:10,className:"text-[#FB6060]"}),className:ja(),children:t})]}),h.jsx(Se.motion.div,{className:M1(),initial:!1,animate:{scaleX:o?1:0,opacity:o?1:0},transition:{duration:.3,ease:"easeInOut"},style:{originX:0}})]})});cs.displayName=Bt.Trigger.displayName;const us=z.forwardRef(({className:r,...e},t)=>h.jsx(Bt.Content,{ref:t,className:H(C1(),r),...e,asChild:!0,children:h.jsx(Se.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})}));us.displayName=Bt.Content.displayName;const N1=T("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"}}),A1=T("relative w-full",{variants:{size:{medium:"",small:"",tiny:""}},defaultVariants:{size:"medium"}}),ds=I.forwardRef(({className:r,status:e="default",size:t="medium",resize:a="vertical",disabled:n,...s},o)=>h.jsx("div",{className:A1({size:t}),children:h.jsx("textarea",{ref:o,className:H(N1({status:e,size:t,resize:a}),r),disabled:n,...s})}));ds.displayName="TextArea";const D1=T("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"}}),R1=T("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"}}),E1=(r,e)=>{const t=e.getTime()-r.getTime(),a=Math.floor(t/1e3),n=Math.floor(a/60),s=Math.floor(n/60),o=Math.floor(s/24),l=Math.floor(o/7),u=Math.floor(o/30),d=Math.floor(o/365),f=t<0,g=Math.abs(a),y=Math.abs(n),w=Math.abs(s),M=Math.abs(o),k=Math.abs(l),N=Math.abs(u),A=Math.abs(d),E=(R,F)=>{const q=R===1?"":"s";return f?`in ${R} ${F}${q}`:`${R} ${F}${q} ago`};return g<60?"just now":y<60?E(y,"minute"):w<24?E(w,"hour"):M===1?f?"tomorrow":"yesterday":M<7?E(M,"day"):k<4?E(k,"week"):N<12?E(N,"month"):E(A,"year")},B1=(r,e,t)=>{switch(e){case"relative":return E1(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)}},L1=r=>r instanceof Date?r:typeof r=="number"?new Date(r):new Date(r),ms=I.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=I.useMemo(()=>L1(e),[e]),f=I.useMemo(()=>B1(d,t,o),[d,t,o]),g=I.useMemo(()=>d.toISOString(),[d]),y=n==="primary"?"var(--color-gray-800)":"var(--color-gray-600)",w=a==="small"?10:a==="large"?14:12;return h.jsxs("time",{ref:u,dateTime:g,className:H(D1({size:a,variant:n}),r),...l,children:[s&&h.jsx("span",{className:R1({size:a}),children:h.jsx(p.ClockHistory,{size:w,color:y})}),f]})});ms.displayName="Timestamp";const j1=T("flex min-w-[420px] w-fit max-w-[850px] pl-4 pr-3 py-3 rounded-[12px] shadow-xl border pointer-events-auto gap-2 relative items-center bg-white",{variants:{variant:{info:"bg-[linear-gradient(90deg,rgba(21,177,205,0.08)_0%,rgba(21,177,205,0.08)_100%),linear-gradient(90deg,rgb(255,255,255)_0%,rgb(255,255,255)_100%)] border-[var(--color-blue-800)]",success:"bg-[linear-gradient(90deg,rgba(113,212,129,0.08)_0%,rgba(113,212,129,0.08)_100%),linear-gradient(90deg,rgb(255,255,255)_0%,rgb(255,255,255)_100%)] border-[var(--color-green-1000)]",warning:"bg-[linear-gradient(90deg,rgba(242,229,40,0.08)_0%,rgba(242,229,40,0.08)_100%),linear-gradient(90deg,rgb(255,255,255)_0%,rgb(255,255,255)_100%)] border-[var(--color-orange-800)]",error:"bg-[linear-gradient(90deg,rgba(251,96,96,0.08)_0%,rgba(251,96,96,0.08)_100%),linear-gradient(90deg,rgb(255,255,255)_0%,rgb(255,255,255)_100%)] border-[var(--color-red-1000)]",prompt:"bg-[var(--color-gray-50)] border-[var(--color-blue-1000)]"}},defaultVariants:{variant:"info"}}),I1=T("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"}}),P1=T("flex items-center gap-1 flex-1"),O1=T("font-bold text-[var(--color-blue-1000)] text-[0.75rem] leading-normal"),F1=T("font-normal text-[var(--color-blue-1000)] text-[0.75rem] leading-normal"),q1=T("flex items-center gap-2 shrink-0"),H1=T("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"}}),V1=T("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"),_1={info:p.Info,success:p.CheckCircle,warning:p.TriangleAlert,error:p.AlertCircle,prompt:p.Sparks},G1={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)"},Dt=({id:r,variant:e="info",title:t,description:a,icon:n,action:s,secondaryAction:o,onClose:l})=>{const u=_1[e],d=G1[e],f=()=>{l&&l(),r&&it.toast.dismiss(r)},g=w=>M=>{w(M),r&&it.toast.dismiss(r)},y=()=>n||(e==="success"?h.jsx(p.CheckCircle,{size:16,color:d}):e==="error"?h.jsx(p.AlertCircle,{size:16,color:d}):e==="prompt"?h.jsx(p.Sparks,{size:16,color:d}):h.jsx(u,{size:16}));return h.jsxs("div",{className:H(j1({variant:e})),role:"alert",children:[h.jsx("div",{className:I1({variant:e}),children:y()}),h.jsxs("div",{className:P1(),children:[h.jsx("span",{className:O1(),children:t}),a&&h.jsx("span",{className:F1(),children:a})]}),h.jsx("div",{className:H1({variant:e})}),h.jsxs("div",{className:q1(),children:[o&&h.jsx(Ut,{onClick:g(o.onClick),variant:"tertiary",size:"small",startIcon:o.icon||h.jsx(p.Trash,{size:13,color:"currentColor"}),className:"w-auto",children:o.label}),s&&h.jsx(Ut,{onClick:g(s.onClick),variant:"primary",size:"small",startIcon:s.icon||h.jsx(p.Check,{size:13,color:"currentColor"}),className:"w-auto",children:s.label}),h.jsx("button",{onClick:f,className:V1(),"aria-label":"Close",children:h.jsx(p.X,{size:16})})]})]})},U1=({position:r="bottom-right",offset:e=24,gap:t=8,width:a,...n})=>h.jsx(it.Toaster,{position:r,offset:e,gap:t,toastOptions:{unstyled:!0,classNames:{toast:H("bg-transparent p-0",a?"":"w-auto")},style:a?{width:typeof a=="number"?`${a}px`:a}:void 0},...n}),$1={success:(r,e,t)=>it.toast.custom(a=>h.jsx(Dt,{id:a,variant:"success",title:r,description:e,action:t})),error:(r,e,t)=>it.toast.custom(a=>h.jsx(Dt,{id:a,variant:"error",title:r,description:e,action:t})),warning:(r,e,t)=>it.toast.custom(a=>h.jsx(Dt,{id:a,variant:"warning",title:r,description:e,action:t})),info:(r,e,t)=>it.toast.custom(a=>h.jsx(Dt,{id:a,variant:"info",title:r,description:e,action:t})),prompt:(r,e,t,a)=>it.toast.custom(n=>h.jsx(Dt,{id:n,variant:"prompt",title:r,description:e,action:t,secondaryAction:a})),custom:r=>it.toast.custom(e=>h.jsx(Dt,{id:e,...r}))},W1=T("flex items-center gap-3"),X1=T("text-[var(--color-gray-1000)] font-medium select-none"),Y1=T("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}}),Z1=T("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}}),hs=I.forwardRef(({enabled:r,onChange:e,label:t,className:a,disabled:n,...s},o)=>h.jsxs("div",{className:H(W1(),a),children:[t&&h.jsx(ct,{variant:"small",className:X1(),children:t}),h.jsx("button",{ref:o,type:"button",role:"switch","aria-checked":r,disabled:n,onClick:()=>!n&&e(!r),className:Y1({enabled:r}),...s,children:h.jsx("span",{className:Z1({enabled:r})})})]}));hs.displayName="Toggle";const K1=T("flex items-center justify-between w-full gap-2 min-h-[20px]"),J1=T("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"}}),Q1={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)"},fs=I.forwardRef(({className:r,status:e="neutral",message:t,...a},n)=>{const s=e==="loading"?"info":e,o=Q1[e],l=()=>e==="loading"?h.jsx(p.Loader,{size:16,color:o,className:"animate-spin"}):e==="success"?h.jsx(p.CheckCircle,{size:16,color:o}):e==="warning"?h.jsx(p.TriangleAlert,{size:16,color:o}):e==="error"?h.jsx(p.AlertCircle,{size:16,color:o}):e==="info"?h.jsx(p.Info,{size:16,color:o}):null;return h.jsxs("div",{ref:n,className:H(K1(),r),...a,children:[h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx(Ur,{variant:s,size:"small"}),h.jsx("span",{className:J1({status:e}),children:t})]}),h.jsx("div",{className:"w-4 h-4 flex items-center justify-center",children:l()})]})});fs.displayName="StatusMessage";const ec=T("flex items-center justify-between w-full gap-2 min-h-[20px]"),tc=T("flex items-center gap-2"),rc=T("text-[12px] font-normal font-sans leading-[16px]",{variants:{status:{running:"text-[var(--color-gray-800)]",completed:"text-[var(--color-gray-800)]",stopped:"text-[var(--color-blue-800)]"}},defaultVariants:{status:"running"}}),Ia=T("w-4 h-4 flex items-center justify-center shrink-0"),ac={running:"var(--color-gray-800)",completed:"var(--color-gray-800)",stopped:"var(--color-blue-800)"},nc={running:"var(--color-gray-800)",completed:"var(--color-green-1000)",stopped:"var(--color-blue-800)"},ps=I.forwardRef(({className:r,status:e="running",message:t,...a},n)=>{const s=ac[e],o=nc[e],l=()=>e==="completed"?h.jsx(p.CheckCircle,{size:16,color:o}):e==="stopped"?h.jsx(p.Hand,{size:16,color:o}):h.jsx(p.Pause,{size:16,color:o});return h.jsxs("div",{ref:n,className:H(ec(),r),...a,children:[h.jsxs("div",{className:tc(),children:[h.jsx("div",{className:Ia(),children:h.jsx(p.Hexagon,{size:16,color:s})}),h.jsx("span",{className:rc({status:e}),children:t})]}),h.jsx("div",{className:Ia(),children:l()})]})});ps.displayName="AutopilotAction";const sc=T("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"}}),oc=T("",{variants:{variant:{default:"fill-[var(--color-blue-1000)]",light:"fill-[var(--color-gray-50)]"}},defaultVariants:{variant:"default"}}),Ar=({delayDuration:r=0,...e})=>h.jsx(Rt.Provider,{delayDuration:r,...e}),Dr=Rt.Root,Rr=Rt.Trigger,E0=z.forwardRef(({className:r,sideOffset:e=4,children:t,variant:a,...n},s)=>h.jsx(Rt.Portal,{children:h.jsx(Rt.Content,{ref:s,sideOffset:e,asChild:!0,className:H(sc({variant:a}),r),...n,children:h.jsxs(Se.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(ct,{variant:"x-small",color:"inherit",className:"font-normal relative z-10",children:t}),h.jsx(Rt.Arrow,{className:oc({variant:a})})]})})}));E0.displayName=Rt.Content.displayName;const ic=T("relative flex flex-col w-full"),lc=T("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}}),cc=T("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"}}),uc=T("box-border flex flex-col gap-[1.25rem] items-start justify-center w-full rounded-[inherit]"),dc=T("flex flex-col gap-5 w-full"),mc=T("flex flex-wrap gap-[8px] items-start w-full"),hc=T("flex items-start justify-between w-full max-h-[200px] overflow-y-auto"),fc=T("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"}}),pc=T("flex items-center justify-between w-full"),vc=T("flex gap-[8px] items-center"),gc=T("flex items-center gap-2.5"),rr=T("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"}}),bc=T("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}}),xc=T("animate-spin"),yc=T("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)]"),wc=T("flex items-center justify-center"),Sc=T("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"),kc=T("min-w-[120px]"),Cc=T("py-1.5 px-2"),Mc=T("absolute -inset-[2px] rounded-[18px] z-0 pointer-events-none"),Pa=T("absolute inset-0 rounded-[18px] w-full h-full",{variants:{layer:{base:"opacity-40",blur:"blur-xl opacity-20"}},defaultVariants:{layer:"base"}}),vs=I.forwardRef(({placeholder:r="Type message",value:e,files:t=[],disabled:a=!1,maxFiles:n=10,maxFileSize:s=1024*1024*1024,className:o,variant:l="default",actions:u=[],models:d=[],selectedModel:f,isLoading:g=!1,isUploading:y=!1,onChange:w,onSend:M,onFileAdd:k,onFileRemove:N,onModelChange:A,isUsingMagic:E=!1,contextUsage:R,contextMax:F=100},q)=>{var Ge,Tt;const[X,_]=I.useState(""),[P,Y]=I.useState(!1),[be,ue]=I.useState(!1),te=I.useRef(null),ye=I.useRef(null),se=e!==void 0?e:X,le=se.trim().length>0,oe=t.length>0,G=P?"dragOver":oe?"withFiles":be?"active":"default",Ae=j=>{w?w(j):_(j)},de=j=>{Ae(j.target.value),ze()},ze=I.useCallback(()=>{const j=te.current;j&&(j.style.height="auto",j.style.height=`${Math.min(j.scrollHeight,200)}px`)},[]);I.useEffect(()=>{ze()},[se,ze]);const he=I.useCallback(()=>{a||y||!le&&!oe||M&&(M(se,t),Ae(""),te.current&&(te.current.style.height="auto"))},[a,y,le,oe,M,se,t]),me=j=>{j.key==="Enter"&&!j.shiftKey&&(j.preventDefault(),he())},pe=j=>{const Le=Array.from(j.target.files||[]);Le.length>0&&k&&k(Le),ye.current&&(ye.current.value="")},Ne=()=>{var j;(j=ye.current)==null||j.click()},Oe=I.useRef(0),ne=j=>{j.preventDefault(),j.stopPropagation(),Oe.current+=1,Oe.current===1&&Y(!0)},Be=j=>{j.preventDefault(),j.stopPropagation(),Oe.current-=1,Oe.current===0&&Y(!1)},Fe=j=>{j.preventDefault(),j.stopPropagation()},qe=j=>{j.preventDefault(),j.stopPropagation(),Oe.current=0,Y(!1);const Le=Array.from(j.dataTransfer.files);Le.length>0&&k&&k(Le)},Ze=j=>{N&&N(j)};return h.jsxs("div",{ref:q,className:H(ic(),o),children:[h.jsx(Se.AnimatePresence,{children:E&&h.jsxs(Se.motion.div,{initial:{opacity:0,scale:.98},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.98},transition:{duration:1.2,ease:"easeInOut"},className:Mc(),children:[h.jsx("div",{className:Pa({layer:"base"}),children:h.jsx(Se.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:Pa({layer:"blur"}),children:h.jsx(Se.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:lc({state:G,variant:l,isMagicActive:E}),onDragEnter:ne,onDragLeave:Be,onDragOver:Fe,onDrop:qe,children:[h.jsx("div",{className:cc({state:G,variant:l}),children:h.jsx("div",{className:uc(),children:h.jsxs("div",{className:dc(),children:[oe&&h.jsx("div",{className:mc(),children:t.map(j=>h.jsx(Qn,{filename:j.filename,status:j.status,progress:j.progress,onDelete:()=>Ze(j.id)},j.id))}),h.jsx("div",{className:hc(),children:h.jsx("textarea",{ref:te,className:fc({state:G}),placeholder:r,value:se,disabled:a||g,onChange:de,onKeyDown:me,onFocus:()=>ue(!0),onBlur:()=>ue(!1),rows:2,maxLength:1e4,"aria-label":"Chat message input"})}),h.jsxs("div",{className:pc(),children:[h.jsxs("div",{className:vc(),children:[h.jsx("button",{type:"button",onClick:Ne,className:rr({variant:"add"}),disabled:a,"aria-label":"Add file",tabIndex:0,children:h.jsx(p.Plus,{size:16})}),u.map(j=>h.jsx(I.Fragment,{children:j.tooltip?h.jsx(Ar,{children:h.jsxs(Dr,{children:[h.jsx(Rr,{asChild:!0,children:h.jsx("button",{type:"button",onClick:j.onClick,className:rr(),disabled:a||j.disabled,"aria-label":j.label,tabIndex:0,children:j.icon})}),h.jsx(E0,{variant:"light",children:j.tooltip})]})}):h.jsx("button",{type:"button",onClick:j.onClick,className:rr(),disabled:a||j.disabled,"aria-label":j.label,tabIndex:0,children:j.icon})},`--action-${j.id}`))]}),h.jsxs("div",{className:gc(),children:[d.length>0&&h.jsxs(Yr,{children:[h.jsx(Zr,{children:h.jsxs("button",{type:"button",className:Sc(),disabled:a||g,"aria-label":"Select AI model",children:[h.jsx(ct,{variant:"tiny",color:"inherit",as:"span",className:a||g?"opacity-50":void 0,children:((Ge=d.find(j=>j.id===f))==null?void 0:Ge.name)||((Tt=d[0])==null?void 0:Tt.name)||"Select model"}),h.jsx(p.ChevronDown,{size:10,color:"currentColor"})]})}),h.jsx(Kr,{align:"end",className:kc(),children:d.map(j=>h.jsx(Jr,{active:j.id===f,onClick:()=>A==null?void 0:A(j.id),className:Cc(),children:h.jsx(ct,{variant:"tiny",color:"inherit",as:"span",children:j.name})},j.id))})]}),R!==void 0&&h.jsx(Ar,{children:h.jsxs(Dr,{children:[h.jsx(Rr,{asChild:!0,children:h.jsx("div",{className:"flex items-center justify-center h-[32px]",children:h.jsx(Xr,{value:R,max:F,size:"xs",showLabel:!1,variant:R>=90?"error":R>=75?"warning":"default",strokeWidth:2,"aria-label":`Context usage: ${R} of ${F}`})})}),h.jsxs(E0,{variant:"light",children:["Context: ",R,"/",F]})]})}),h.jsx("button",{type:"button",onClick:he,className:bc({disabled:a||g||y||!le&&!oe}),disabled:a||g||y||!le&&!oe,"aria-label":g?"Loading":"Send message",tabIndex:0,children:g?h.jsx(p.Loader,{size:16,color:"currentColor",className:xc()}):h.jsx(p.ArrowUp,{size:16,strokeWidth:2.5,color:"currentColor"})})]})]})]})})}),h.jsx(Se.AnimatePresence,{children:P&&h.jsxs(Se.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:yc(),children:[h.jsx("div",{className:wc(),children:h.jsx(p.Uploadfile,{size:32,color:"var(--color-gray-1000)"})}),h.jsx(ct,{variant:"small",weight:"bold",color:"primary",className:"text-center",children:"Drop your files here"}),h.jsxs(ct,{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:ye,type:"file",multiple:!0,onChange:pe,className:"hidden","aria-hidden":"true"})]})]})});vs.displayName="ChatInput";const Tc=T("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)]"),zc=T("flex items-center gap-[12px] h-[24px]"),Nc=T("flex items-center gap-[12px] h-[24px] rounded-[8px]"),Oa=T("flex items-center justify-center size-[16px] overflow-hidden text-[var(--color-gray-800)] hover:text-[var(--color-blue-800)] transition-colors bg-transparent border-none cursor-pointer outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-blue-800)] rounded-sm"),Ac=T("flex items-center gap-[8px]"),Dc=T("flex items-center"),gs=I.forwardRef(({className:r,breadcrumbs:e,tags:t=[],collaborators:a=[],onAddTag:n,onAddCollaborator:s,tagsOverflowCount:o=0,...l},u)=>h.jsxs("div",{ref:u,className:H(Tc(),r),...l,children:[h.jsx(Kn,{items:e,size:"medium"}),h.jsx("div",{className:zc(),children:h.jsxs("div",{className:Nc(),children:[(t.length>0||o>0)&&h.jsxs("div",{className:Ac(),children:[t.map(d=>h.jsx($t,{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($t,{variant:"default",className:"bg-[var(--color-gray-100)] border border-[var(--color-gray-200)] text-[var(--color-gray-800)] px-[8px] py-[2px] text-[10px] h-[20px]",children:["+",o]})]}),a.length>0&&h.jsx("div",{className:Dc(),children:h.jsx("div",{className:"flex items-center flex-row-reverse",children:a.map((d,f)=>h.jsx("div",{className:"relative shrink-0 border-[1.5px] border-white rounded-full",style:{zIndex:a.length-f,marginRight:f<a.length-1?-4:0},children:h.jsx(Gr,{initials:d.name,src:d.src,alt:d.name,className:"size-[24px] text-[10px]"})},d.id))})}),h.jsx("button",{type:"button",onClick:n,className:Oa(),"aria-label":"Add tag",children:h.jsx(p.TagPlus,{size:16})}),h.jsx("button",{type:"button",onClick:s,className:Oa(),"aria-label":"Add collaborator",children:h.jsx(p.UserPlus,{size:16})})]})})]}));gs.displayName="ConversationHeader";function wt(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 Fa(r,e){if(typeof r=="function")return r(e);r!=null&&(r.current=e)}function bs(...r){return e=>{let t=!1;const a=r.map(n=>{const s=Fa(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():Fa(r[n],null)}}}}function Lt(...r){return z.useCallback(bs(...r),r)}function Rc(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 Ec(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:y,children:w,...M}=g,k=((A=y==null?void 0:y[r])==null?void 0:A[u])||l,N=z.useMemo(()=>M,Object.values(M));return h.jsx(k.Provider,{value:N,children:w})};d.displayName=s+"Provider";function f(g,y){var k;const w=((k=y==null?void 0:y[r])==null?void 0:k[u])||l,M=z.useContext(w);if(M)return M;if(o!==void 0)return o;throw new Error(`\`${g}\` must be used within \`${s}\``)}return[d,f]}const n=()=>{const s=t.map(o=>z.createContext(o));return function(l){const u=(l==null?void 0:l[r])||s;return z.useMemo(()=>({[`__scope${r}`]:{...l,[r]:u}}),[l,u])}};return n.scopeName=r,[a,Bc(n,...e)]}function Bc(...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 t0=globalThis!=null&&globalThis.document?z.useLayoutEffect:()=>{},Lc=z[" useId ".trim().toString()]||(()=>{}),jc=0;function ar(r){const[e,t]=z.useState(Lc());return t0(()=>{t(a=>a??String(jc++))},[r]),r||(e?`radix-${e}`:"")}var Ic=z[" useInsertionEffect ".trim().toString()]||t0;function Pc({prop:r,defaultProp:e,onChange:t=()=>{},caller:a}){const[n,s,o]=Oc({defaultProp:e,onChange:t}),l=r!==void 0,u=l?r:n;{const f=z.useRef(r!==void 0);z.useEffect(()=>{const g=f.current;g!==l&&console.warn(`${a} is changing from ${g?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),f.current=l},[l,a])}const d=z.useCallback(f=>{var g;if(l){const y=Fc(f)?f(r):f;y!==r&&((g=o.current)==null||g.call(o,y))}else s(f)},[l,r,s,o]);return[u,d]}function Oc({defaultProp:r,onChange:e}){const[t,a]=z.useState(r),n=z.useRef(t),s=z.useRef(e);return Ic(()=>{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 Fc(r){return typeof r=="function"}function xs(r){const e=qc(r),t=z.forwardRef((a,n)=>{const{children:s,...o}=a,l=z.Children.toArray(s),u=l.find(Vc);if(u){const d=u.props.children,f=l.map(g=>g===u?z.Children.count(d)>1?z.Children.only(null):z.isValidElement(d)?d.props.children:null:g);return h.jsx(e,{...o,ref:n,children:z.isValidElement(d)?z.cloneElement(d,void 0,f):null})}return h.jsx(e,{...o,ref:n,children:s})});return t.displayName=`${r}.Slot`,t}function qc(r){const e=z.forwardRef((t,a)=>{const{children:n,...s}=t;if(z.isValidElement(n)){const o=Gc(n),l=_c(s,n.props);return n.type!==z.Fragment&&(l.ref=a?bs(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 Vc(r){return z.isValidElement(r)&&typeof r.type=="function"&&"__radixId"in r.type&&r.type.__radixId===Hc}function _c(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 Gc(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"],tt=Uc.reduce((r,e)=>{const t=xs(`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 $c(r,e){r&&Jo.flushSync(()=>r.dispatchEvent(e))}function r0(r){const e=z.useRef(r);return z.useEffect(()=>{e.current=r}),z.useMemo(()=>(...t)=>{var a;return(a=e.current)==null?void 0:a.call(e,...t)},[])}function Wc(r,e=globalThis==null?void 0:globalThis.document){const t=r0(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",Er="dismissableLayer.update",Yc="dismissableLayer.pointerDownOutside",Zc="dismissableLayer.focusOutside",qa,ys=z.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ws=z.forwardRef((r,e)=>{const{disableOutsidePointerEvents:t=!1,onEscapeKeyDown:a,onPointerDownOutside:n,onFocusOutside:s,onInteractOutside:o,onDismiss:l,...u}=r,d=z.useContext(ys),[f,g]=z.useState(null),y=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,w]=z.useState({}),M=Lt(e,_=>g(_)),k=Array.from(d.layers),[N]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),A=k.indexOf(N),E=f?k.indexOf(f):-1,R=d.layersWithOutsidePointerEventsDisabled.size>0,F=E>=A,q=Qc(_=>{const P=_.target,Y=[...d.branches].some(be=>be.contains(P));!F||Y||(n==null||n(_),o==null||o(_),_.defaultPrevented||l==null||l())},y),X=eu(_=>{const P=_.target;[...d.branches].some(be=>be.contains(P))||(s==null||s(_),o==null||o(_),_.defaultPrevented||l==null||l())},y);return Wc(_=>{E===d.layers.size-1&&(a==null||a(_),!_.defaultPrevented&&l&&(_.preventDefault(),l()))},y),z.useEffect(()=>{if(f)return t&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(qa=y.body.style.pointerEvents,y.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),Ha(),()=>{t&&d.layersWithOutsidePointerEventsDisabled.size===1&&(y.body.style.pointerEvents=qa)}},[f,y,t,d]),z.useEffect(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),Ha())},[f,d]),z.useEffect(()=>{const _=()=>w({});return document.addEventListener(Er,_),()=>document.removeEventListener(Er,_)},[]),h.jsx(tt.div,{...u,ref:M,style:{pointerEvents:R?F?"auto":"none":void 0,...r.style},onFocusCapture:wt(r.onFocusCapture,X.onFocusCapture),onBlurCapture:wt(r.onBlurCapture,X.onBlurCapture),onPointerDownCapture:wt(r.onPointerDownCapture,q.onPointerDownCapture)})});ws.displayName=Xc;var Kc="DismissableLayerBranch",Jc=z.forwardRef((r,e)=>{const t=z.useContext(ys),a=z.useRef(null),n=Lt(e,a);return z.useEffect(()=>{const s=a.current;if(s)return t.branches.add(s),()=>{t.branches.delete(s)}},[t.branches]),h.jsx(tt.div,{...r,ref:n})});Jc.displayName=Kc;function Qc(r,e=globalThis==null?void 0:globalThis.document){const t=r0(r),a=z.useRef(!1),n=z.useRef(()=>{});return z.useEffect(()=>{const s=l=>{if(l.target&&!a.current){let u=function(){Ss(Yc,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 eu(r,e=globalThis==null?void 0:globalThis.document){const t=r0(r),a=z.useRef(!1);return z.useEffect(()=>{const n=s=>{s.target&&!a.current&&Ss(Zc,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 Ha(){const r=new CustomEvent(Er);document.dispatchEvent(r)}function Ss(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?$c(n,s):n.dispatchEvent(s)}var nr="focusScope.autoFocusOnMount",sr="focusScope.autoFocusOnUnmount",Va={bubbles:!1,cancelable:!0},tu="FocusScope",ks=z.forwardRef((r,e)=>{const{loop:t=!1,trapped:a=!1,onMountAutoFocus:n,onUnmountAutoFocus:s,...o}=r,[l,u]=z.useState(null),d=r0(n),f=r0(s),g=z.useRef(null),y=Lt(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(R){if(w.paused||!l)return;const F=R.target;l.contains(F)?g.current=F:xt(g.current,{select:!0})},N=function(R){if(w.paused||!l)return;const F=R.relatedTarget;F!==null&&(l.contains(F)||xt(g.current,{select:!0}))},A=function(R){if(document.activeElement===document.body)for(const q of R)q.removedNodes.length>0&&xt(l)};document.addEventListener("focusin",k),document.addEventListener("focusout",N);const E=new MutationObserver(A);return l&&E.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",k),document.removeEventListener("focusout",N),E.disconnect()}}},[a,l,w.paused]),z.useEffect(()=>{if(l){Ga.add(w);const k=document.activeElement;if(!l.contains(k)){const A=new CustomEvent(nr,Va);l.addEventListener(nr,d),l.dispatchEvent(A),A.defaultPrevented||(ru(iu(Cs(l)),{select:!0}),document.activeElement===k&&xt(l))}return()=>{l.removeEventListener(nr,d),setTimeout(()=>{const A=new CustomEvent(sr,Va);l.addEventListener(sr,f),l.dispatchEvent(A),A.defaultPrevented||xt(k??document.body,{select:!0}),l.removeEventListener(sr,f),Ga.remove(w)},0)}}},[l,d,f,w]);const M=z.useCallback(k=>{if(!t&&!a||w.paused)return;const N=k.key==="Tab"&&!k.altKey&&!k.ctrlKey&&!k.metaKey,A=document.activeElement;if(N&&A){const E=k.currentTarget,[R,F]=au(E);R&&F?!k.shiftKey&&A===F?(k.preventDefault(),t&&xt(R,{select:!0})):k.shiftKey&&A===R&&(k.preventDefault(),t&&xt(F,{select:!0})):A===E&&k.preventDefault()}},[t,a,w.paused]);return h.jsx(tt.div,{tabIndex:-1,...o,ref:y,onKeyDown:M})});ks.displayName=tu;function ru(r,{select:e=!1}={}){const t=document.activeElement;for(const a of r)if(xt(a,{select:e}),document.activeElement!==t)return}function au(r){const e=Cs(r),t=_a(e,r),a=_a(e.reverse(),r);return[t,a]}function Cs(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 _a(r,e){for(const t of r)if(!nu(t,{upTo:e}))return t}function nu(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 su(r){return r instanceof HTMLInputElement&&"select"in r}function xt(r,{select:e=!1}={}){if(r&&r.focus){const t=document.activeElement;r.focus({preventScroll:!0}),r!==t&&su(r)&&e&&r.select()}}var Ga=ou();function ou(){let r=[];return{add(e){const t=r[0];e!==t&&(t==null||t.pause()),r=Ua(r,e),r.unshift(e)},remove(e){var t;r=Ua(r,e),(t=r[0])==null||t.resume()}}}function Ua(r,e){const t=[...r],a=t.indexOf(e);return a!==-1&&t.splice(a,1),t}function iu(r){return r.filter(e=>e.tagName!=="A")}var lu="Portal",Ms=z.forwardRef((r,e)=>{var l;const{container:t,...a}=r,[n,s]=z.useState(!1);t0(()=>s(!0),[]);const o=t||n&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return o?In.createPortal(h.jsx(tt.div,{...a,ref:e}),o):null});Ms.displayName=lu;function cu(r,e){return z.useReducer((t,a)=>e[t][a]??t,r)}var H0=r=>{const{present:e,children:t}=r,a=uu(e),n=typeof t=="function"?t({present:a.isPresent}):z.Children.only(t),s=Lt(a.ref,du(n));return typeof t=="function"||a.isPresent?z.cloneElement(n,{ref:s}):null};H0.displayName="Presence";function uu(r){const[e,t]=z.useState(),a=z.useRef(null),n=z.useRef(r),s=z.useRef("none"),o=r?"mounted":"unmounted",[l,u]=cu(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return z.useEffect(()=>{const d=f0(a.current);s.current=l==="mounted"?d:"none"},[l]),t0(()=>{const d=a.current,f=n.current;if(f!==r){const y=s.current,w=f0(d);r?u("MOUNT"):w==="none"||(d==null?void 0:d.display)==="none"?u("UNMOUNT"):u(f&&y!==w?"ANIMATION_OUT":"UNMOUNT"),n.current=r}},[r,u]),t0(()=>{if(e){let d;const f=e.ownerDocument.defaultView??window,g=w=>{const k=f0(a.current).includes(CSS.escape(w.animationName));if(w.target===e&&k&&(u("ANIMATION_END"),!n.current)){const N=e.style.animationFillMode;e.style.animationFillMode="forwards",d=f.setTimeout(()=>{e.style.animationFillMode==="forwards"&&(e.style.animationFillMode=N)})}},y=w=>{w.target===e&&(s.current=f0(a.current))};return e.addEventListener("animationstart",y),e.addEventListener("animationcancel",g),e.addEventListener("animationend",g),()=>{f.clearTimeout(d),e.removeEventListener("animationstart",y),e.removeEventListener("animationcancel",g),e.removeEventListener("animationend",g)}}else u("ANIMATION_END")},[e,u]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:z.useCallback(d=>{a.current=d?getComputedStyle(d):null,t(d)},[])}}function f0(r){return(r==null?void 0:r.animationName)||"none"}function du(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 or=0;function mu(){z.useEffect(()=>{const r=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",r[0]??$a()),document.body.insertAdjacentElement("beforeend",r[1]??$a()),or++,()=>{or===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),or--}},[])}function $a(){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 Je=function(){return Je=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},Je.apply(this,arguments)};function Ts(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 hu(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 N0="right-scroll-bar-position",A0="width-before-scroll-bar",fu="with-scroll-bars-hidden",pu="--removed-body-scroll-bar-size";function ir(r,e){return typeof r=="function"?r(e):r&&(r.current=e),r}function vu(r,e){var t=I.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 gu=typeof window<"u"?z.useLayoutEffect:z.useEffect,Wa=new WeakMap;function bu(r,e){var t=vu(null,function(a){return r.forEach(function(n){return ir(n,a)})});return gu(function(){var a=Wa.get(t);if(a){var n=new Set(a),s=new Set(r),o=t.current;n.forEach(function(l){s.has(l)||ir(l,null)}),s.forEach(function(l){n.has(l)||ir(l,o)})}Wa.set(t,r)},[r]),t}function xu(r){return r}function yu(r,e){e===void 0&&(e=xu);var t=[],a=!1,n={read:function(){if(a)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return t.length?t[t.length-1]:r},useMedium:function(s){var o=e(s,a);return t.push(o),function(){t=t.filter(function(l){return l!==o})}},assignSyncMedium:function(s){for(a=!0;t.length;){var o=t;t=[],o.forEach(s)}t={push:function(l){return s(l)},filter:function(){return t}}},assignMedium:function(s){a=!0;var o=[];if(t.length){var l=t;t=[],l.forEach(s),o=t}var u=function(){var f=o;o=[],f.forEach(s)},d=function(){return Promise.resolve().then(u)};d(),t={push:function(f){o.push(f),d()},filter:function(f){return o=o.filter(f),t}}}};return n}function wu(r){r===void 0&&(r={});var e=yu(null);return e.options=Je({async:!0,ssr:!1},r),e}var zs=function(r){var e=r.sideCar,t=Ts(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,Je({},t))};zs.isSideCarExport=!0;function Su(r,e){return r.useMedium(e),zs}var Ns=wu(),lr=function(){},V0=z.forwardRef(function(r,e){var t=z.useRef(null),a=z.useState({onScrollCapture:lr,onWheelCapture:lr,onTouchMoveCapture:lr}),n=a[0],s=a[1],o=r.forwardProps,l=r.children,u=r.className,d=r.removeScrollBar,f=r.enabled,g=r.shards,y=r.sideCar,w=r.noRelative,M=r.noIsolation,k=r.inert,N=r.allowPinchZoom,A=r.as,E=A===void 0?"div":A,R=r.gapMode,F=Ts(r,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),q=y,X=bu([t,e]),_=Je(Je({},F),n);return z.createElement(z.Fragment,null,f&&z.createElement(q,{sideCar:Ns,removeScrollBar:d,shards:g,noRelative:w,noIsolation:M,inert:k,setCallbacks:s,allowPinchZoom:!!N,lockRef:t,gapMode:R}),o?z.cloneElement(z.Children.only(l),Je(Je({},_),{ref:X})):z.createElement(E,Je({},_,{className:u,ref:X}),l))});V0.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};V0.classNames={fullWidth:A0,zeroRight:N0};var ku=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Cu(){if(!document)return null;var r=document.createElement("style");r.type="text/css";var e=ku();return e&&r.setAttribute("nonce",e),r}function Mu(r,e){r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}function Tu(r){var e=document.head||document.getElementsByTagName("head")[0];e.appendChild(r)}var zu=function(){var r=0,e=null;return{add:function(t){r==0&&(e=Cu())&&(Mu(e,t),Tu(e)),r++},remove:function(){r--,!r&&e&&(e.parentNode&&e.parentNode.removeChild(e),e=null)}}},Nu=function(){var r=zu();return function(e,t){z.useEffect(function(){return r.add(e),function(){r.remove()}},[e&&t])}},As=function(){var r=Nu(),e=function(t){var a=t.styles,n=t.dynamic;return r(a,n),null};return e},Au={left:0,top:0,right:0,gap:0},cr=function(r){return parseInt(r||"",10)||0},Du=function(r){var e=window.getComputedStyle(document.body),t=e[r==="padding"?"paddingLeft":"marginLeft"],a=e[r==="padding"?"paddingTop":"marginTop"],n=e[r==="padding"?"paddingRight":"marginRight"];return[cr(t),cr(a),cr(n)]},Ru=function(r){if(r===void 0&&(r="margin"),typeof window>"u")return Au;var e=Du(r),t=document.documentElement.clientWidth,a=window.innerWidth;return{left:e[0],top:e[1],right:e[2],gap:Math.max(0,a-t+e[2]-e[0])}},Eu=As(),_t="data-scroll-locked",Bu=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(fu,` {
26
+ `}),n.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:u,style:{transformOrigin:"252px 247px",animation:`drawDot-${c.replace(/:/g,"")} 0.3s ease-out ${s+a*.9}s forwards`,opacity:0}}),n.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:u,strokeWidth:"2",fill:u,style:{"--path-length":m,strokeDasharray:m,strokeDashoffset:m,fillOpacity:0,animation:`drawSignature-${c.replace(/:/g,"")} ${a}s ease-out ${s}s forwards`}})]}):n.jsxs("svg",{...i,width:e,height:e,viewBox:"0 0 329 329",fill:"none",children:[n.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:u}),n.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:u})]})};st.displayName="SignatureA";const ua=l.cva("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}}),da=l.cva("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"}}),fa=l.cva("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"}}),Be=l.cva("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"}}),va=l.cva("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"),ma=l.cva("w-full h-full bg-[var(--color-blue-200)]/30 p-2 space-y-2 flex flex-col items-start justify-start gap-1"),pa=l.cva("h-1 bg-[var(--color-gray-200)] rounded-full origin-left"),ga=l.cva("flex flex-col gap-[4px] grow items-start p-4 min-w-0"),ha=l.cva("font-medium text-[14px] leading-[20px] text-[var(--color-blue-1000)]"),xa=l.cva("text-[12px] leading-[16px] text-[var(--color-gray-600)]"),ba=l.cva("px-4 overflow-hidden flex items-center w-[56px] relative"),ya=l.cva("absolute w-6 h-6 text-[var(--color-blue-800)]"),Ca=l.cva("w-6 h-6 text-[var(--color-gray-200)]"),wa=l.cva("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"}}),Sa=l.cva("w-4 h-4 shrink-0 text-[var(--color-red-1000)] transition-transform duration-300 group-hover:scale-110"),Na={rest:{scaleX:1},hover:{scaleX:[0,1]}},ja={rest:{x:0},hover:{x:4}},ka={rest:{x:-20,opacity:0},hover:{x:0,opacity:1}},La={rest:{x:0,opacity:1},hover:{x:20,opacity:0}},Ea=[100,66,75,50],Ut=h.forwardRef(({title:e,subtitle:t,status:r,onClick:a,onActionClick:s,className:i,disabled:u=!1},c)=>{const[m,f]=h.useState(!1),v=r||(m&&!u?"hover":"normal"),p=h.useMemo(()=>v==="generating"||v==="error"?"rest":m?"hover":"rest",[v,m]),x=h.useCallback(()=>{!r&&!u&&f(!0)},[r,u]),y=h.useCallback(()=>{!r&&!u&&f(!1)},[r,u]),S=h.useCallback(()=>{!u&&a&&a()},[u,a]),g=h.useCallback(N=>{N.stopPropagation(),!u&&s&&s()},[u,s]),C=h.useCallback(N=>{(N.key==="Enter"||N.key===" ")&&(N.preventDefault(),S())},[S]),w=()=>v==="generating"?n.jsx("div",{className:Be({status:"generating"}),children:n.jsx(o.Loader,{size:16,className:"text-[var(--color-gray-600)] animate-spin"})}):v==="error"?n.jsx("div",{className:Be({status:"error"}),children:n.jsx(o.TriangleAlert,{size:16,className:Sa()})}):n.jsx("div",{className:Be({status:v}),children:n.jsx("div",{className:va(),children:n.jsx(T.motion.div,{className:ma(),variants:{rest:{},hover:{transition:{staggerChildren:.1}}},children:Ea.map((N,k)=>n.jsx(T.motion.div,{className:pa(),style:{width:`${N}%`},variants:Na,transition:{duration:.4,ease:"easeInOut"}},k))})})}),j=()=>v==="generating"?null:v==="error"?n.jsx("button",{type:"button",onClick:g,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:n.jsx(o.RotateCcw,{size:16,className:wa({status:"error"})})}):n.jsxs(n.Fragment,{children:[n.jsx(T.motion.div,{className:ya(),variants:ka,transition:{duration:.3,ease:"backOut"},children:n.jsx(o.ArrowUp,{size:24,className:"rotate-90"})}),n.jsx(T.motion.div,{className:Ca(),variants:La,transition:{duration:.3},children:n.jsx(o.ArrowUp,{size:24,className:"rotate-90"})})]});return n.jsxs(T.motion.div,{ref:c,role:"button",tabIndex:u?-1:0,className:l.cn(ua({status:v,disabled:u}),i),onClick:S,onKeyDown:C,onMouseEnter:x,onMouseLeave:y,"aria-disabled":u,"aria-label":`${e} - ${t}${v==="error"?" - Error occurred":""}${v==="generating"?" - Generating":""}`,initial:"rest",whileHover:"hover",animate:p,children:[n.jsx("div",{className:da({status:v}),children:n.jsx("div",{className:fa({status:v})})}),w(),n.jsxs(T.motion.div,{className:ga(),variants:ja,children:[n.jsx("p",{className:ha(),title:e,children:e}),n.jsx("p",{className:xa(),title:t,children:t})]}),n.jsx("div",{className:ba(),children:j()})]})});Ut.displayName="ArtifactCard";const Ta=l.cva("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"}}),we=l.cva("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"}}),Da=l.cva("text-[var(--color-gray-600)] flex items-center justify-center"),Wt=({items:e,separator:t=n.jsx(o.ChevronRight,{size:16}),className:r,size:a="medium"})=>n.jsx("nav",{"aria-label":"Breadcrumb",className:l.cn(Ta({size:a}),r),children:n.jsx("ol",{className:"flex items-center flex-wrap gap-2",children:e.map((s,i)=>{const u=i===e.length-1;let c;return u?c=n.jsxs("span",{className:we({state:"active"}),"aria-current":"page",children:[s.icon,s.label]}):s.href?c=n.jsxs("a",{href:s.href,className:we({state:"default"}),onClick:s.onClick,children:[s.icon,s.label]}):s.onClick?c=n.jsxs("button",{type:"button",className:we({state:"default"}),onClick:s.onClick,children:[s.icon,s.label]}):c=n.jsxs("span",{className:we({state:"inactive"}),children:[s.icon,s.label]}),n.jsxs("li",{className:"flex items-center gap-2",children:[c,!u&&n.jsx("span",{className:Da(),"aria-hidden":"true",children:t})]},`${s.label}-${i}`)})})}),Ra=l.cva("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:ring-2 focus-visible:ring-[var(--color-blue-200)] focus-visible:ring-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)]",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)]",tertiary:"bg-transparent border border-transparent text-[var(--color-blue-1000)] hover:bg-[var(--color-gray-100)] active:bg-[var(--color-gray-200)]",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)]",danger:"bg-[var(--color-red-1000)] border border-transparent text-[var(--color-white)] hover:bg-[#e54545] active:bg-[#cc3d3d] focus-visible:ring-[var(--color-red-200)]"},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)]"},{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)]"},{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)]"}],defaultVariants:{variant:"primary",tone:"brand",size:"medium"}}),ce=h.forwardRef(({className:e,variant:t="primary",tone:r="brand",size:a="medium",startIcon:s,endIcon:i,children:u,disabled:c,...m},f)=>{const v=a==="small"?13:a==="large"?20:16;return n.jsxs("button",{ref:f,className:l.cn(Ra({variant:t,tone:r,size:a}),e),disabled:c,...m,children:[s&&n.jsx("span",{className:"flex items-center justify-center shrink-0",style:{width:v,height:v},children:s}),u,i&&n.jsx("span",{className:"flex items-center justify-center shrink-0",style:{width:v,height:v},children:i})]})});ce.displayName="Button";const Pa=l.cva("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"}}),Ma=l.cva("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"}}),Se=l.cva("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"}}),Ia=l.cva("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 $t=(e=>(e.Uploading="uploading",e.Processing="processing",e.Done="done",e.Error="error",e))($t||{});const Gt=({filename:e,status:t="done",progress:r=0,onDelete:a,className:s})=>{const i=t==="uploading",u=t==="processing",c=t==="error",f=i?"uploading":u?"processing":c?"error":"done",v=()=>i?n.jsx(o.ArrowUp,{size:12,className:Se({status:f})}):u?n.jsx(o.Loader,{size:12,className:l.cn(Se({status:f}),"animate-spin")}):c?n.jsx(o.TriangleAlert,{size:12,className:Se({status:f})}):n.jsx(o.FileText,{size:12,className:Se({status:f})});return n.jsxs("div",{className:"relative inline-block group",children:[n.jsxs("div",{className:l.cn(Pa({status:f}),s),children:[(i||u)&&n.jsx(T.motion.div,{className:Ia({status:f}),initial:{width:"0%"},animate:{width:`${r}%`},transition:{duration:.3,ease:"easeOut"}}),n.jsxs("div",{className:"relative z-10 flex items-center gap-1 pr-1",children:[n.jsx("div",{className:l.cn("flex items-center justify-center shrink-0 p-1 rounded-[2px]",c&&"bg-[#fff2f2]"),children:v()}),n.jsx("span",{className:Ma({status:f}),title:e,children:e})]})]}),a&&!i&&!u&&n.jsx(T.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:n.jsx(o.X,{size:10,className:"text-[var(--color-gray-800)]"})})]})},Aa=l.cva("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"}}),Oa=l.cva("flex items-center justify-center transition-colors duration-200 ease-in-out rounded-[2px] border shrink-0 peer-focus-visible:ring-2 peer-focus-visible:ring-[var(--color-blue-200)] peer-focus-visible:ring-offset-1",{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"}}),Va="sr-only peer",Zt=h.forwardRef(({className:e,checked:t,defaultChecked:r,onChange:a,label:s,size:i="medium",disabled:u,...c},m)=>{const[f,v]=h.useState(r||!1),p=t!==void 0,x=p?t:f,y=S=>{p||v(S.target.checked),a==null||a(S)};return n.jsxs("label",{className:Aa({size:i,className:e}),children:[n.jsx("input",{type:"checkbox",className:Va,ref:m,checked:p?t:void 0,defaultChecked:p?void 0:r,onChange:y,disabled:u,...c}),n.jsx("span",{className:Oa({checked:!!x,size:i}),children:n.jsx(o.Check,{size:i==="medium"?12:8,strokeWidth:3,className:l.cn("text-white transition-opacity duration-200",x?"opacity-100":"opacity-0")})}),s&&n.jsx($,{as:"span",variant:i==="medium"?"small":"x-small",color:"secondary",children:s})]})});Zt.displayName="Checkbox";const za=l.cva("relative inline-flex items-center justify-center",{variants:{size:{xs:"w-[18px] h-[18px]",small:"w-[24px] h-[24px]",medium:"w-[32px] h-[32px]",large:"w-[40px] h-[40px]"}},defaultVariants:{size:"medium"}}),_a=l.cva("transform"),Fa=l.cva("stroke-[var(--color-gray-200)]"),Ba=l.cva("transition-[stroke-dashoffset] duration-300 ease-in-out",{variants:{variant:{default:"stroke-[var(--color-blue-800)]",success:"stroke-[var(--color-green-1000)]",warning:"stroke-[var(--color-orange-800)]",error:"stroke-[var(--color-red-1000)]"}},defaultVariants:{variant:"default"}}),Ha=l.cva("absolute inset-0 flex items-center justify-center font-medium text-[var(--color-gray-800)]",{variants:{size:{xs:"text-[6px]",small:"text-[8px]",medium:"text-[10px]",large:"text-[12px]"}},defaultVariants:{size:"medium"}}),Ua={xs:18,small:24,medium:32,large:40},it=h.forwardRef(({className:e,value:t=0,max:r=100,size:a="medium",variant:s="default",showLabel:i=!0,labelFormatter:u,strokeWidth:c=3,...m},f)=>{const v=Math.min(Math.max(t/r*100,0),100),p=Ua[a],x=(p-c)/2,y=2*Math.PI*x,S=y-v/100*y,g=u?u(t,r):`${Math.round(t)}`;return n.jsxs("div",{ref:f,className:l.cn(za({size:a}),e),role:"progressbar","aria-valuemin":0,"aria-valuemax":r,"aria-valuenow":t,...m,children:[n.jsxs("svg",{className:_a(),width:p,height:p,viewBox:`0 0 ${p} ${p}`,children:[n.jsx("circle",{className:Fa(),cx:p/2,cy:p/2,r:x,fill:"none",strokeWidth:c}),n.jsx("circle",{className:Ba({variant:s}),cx:p/2,cy:p/2,r:x,fill:"none",strokeWidth:c,strokeLinecap:"round",strokeDasharray:y,strokeDashoffset:S,transform:`rotate(-90 ${p/2} ${p/2})`})]}),i&&n.jsx("span",{className:Ha({size:a}),children:g})]})});it.displayName="CircularProgress";function Wa(e,t){h.useEffect(()=>{const r=a=>{const s=e==null?void 0:e.current;!s||s.contains(a.target)||t(a)};return document.addEventListener("mousedown",r),document.addEventListener("touchstart",r),()=>{document.removeEventListener("mousedown",r),document.removeEventListener("touchstart",r)}},[e,t])}const $a=l.cva("absolute top-full left-0 z-50 w-full 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}}),Ga=l.cva("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-blue-200)] focus:outline-none disabled:pointer-events-none disabled:opacity-50",{variants:{active:{true:"bg-[var(--color-blue-200)] text-[var(--color-blue-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}}),Za=l.cva("w-full px-3 py-1 text-[0.625rem] font-bold text-[var(--color-gray-600)] uppercase tracking-wider select-none"),Ka=l.cva("w-full h-px bg-[var(--color-gray-200)] my-1"),Kt=h.createContext(void 0),Ie=()=>{const e=h.useContext(Kt);if(!e)throw new Error("useDropdown must be used within a Dropdown");return e},lt=({children:e,defaultOpen:t=!1,open:r,onOpenChange:a,className:s,...i})=>{const[u,c]=h.useState(t),m=r!==void 0,f=m?r:u,v=h.useRef(null),p=()=>{const y=!f;m||c(y),a==null||a(y)},x=()=>{m||c(!1),a==null||a(!1)};return Wa(v,x),n.jsx(Kt.Provider,{value:{isOpen:f,toggle:p,close:x},children:n.jsx("div",{ref:v,className:l.cn("relative w-full text-left",s),...i,children:e})})};lt.displayName="Dropdown";const ct=h.forwardRef(({className:e,children:t,onClick:r,chevronIcon:a=!1,...s},i)=>{const{toggle:u,isOpen:c}=Ie(),m=f=>{u(),r==null||r(f)};return n.jsxs("div",{ref:i,className:l.cn("cursor-pointer w-full relative overflow-visible",e),onClick:m,"aria-haspopup":"true","aria-expanded":c,...s,children:[t,a&&n.jsx(T.motion.span,{animate:{rotate:c?180:0},transition:{duration:.2,ease:[.16,1,.3,1]},className:"absolute right-3 top-1/2 -translate-y-1/2 z-20 pointer-events-none text-[var(--color-gray-600)]",children:n.jsx(o.ChevronDown,{size:16})})]})});ct.displayName="DropdownTrigger";const ut=h.forwardRef(({className:e,align:t="start",attached:r=!1,children:a,...s},i)=>{const{isOpen:u}=Ie();return n.jsx(T.AnimatePresence,{children:u&&n.jsx(T.motion.div,{ref:i,initial:{opacity:0,y:-4,scale:.98},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:-4,scale:.98},transition:{duration:.2,ease:[.16,1,.3,1]},style:{transformOrigin:"top center"},className:l.cn($a({align:t,attached:r}),e),...s,children:a})})});ut.displayName="DropdownContent";const dt=h.forwardRef(({className:e,active:t,variant:r,closeOnSelect:a=!0,children:s,onClick:i,...u},c)=>{const{close:m}=Ie(),f=v=>{i==null||i(v),a&&m()};return n.jsx("div",{ref:c,className:l.cn(Ga({active:t,variant:r}),e),onClick:f,role:"menuitem",...u,children:s})});dt.displayName="DropdownItem";const qa=h.forwardRef(({className:e,children:t,...r},a)=>n.jsx("div",{ref:a,className:l.cn(Za(),e),...r,children:t}));qa.displayName="DropdownLabel";const Xa=h.forwardRef(({className:e,animated:t=!1,animationDelay:r=.2,...a},s)=>t?n.jsx("div",{ref:s,className:l.cn("h-px my-1 overflow-hidden",e),...a,children:n.jsx(T.motion.div,{className:"h-full bg-[var(--color-gray-200)]",initial:{width:0},animate:{width:"100%"},transition:{duration:.3,ease:[.16,1,.3,1],delay:r}})}):n.jsx("div",{ref:s,className:l.cn(Ka(),e),...a}));Xa.displayName="DropdownSeparator";const Ya=l.cva("w-full bg-[var(--color-white)] border border-solid rounded-[8px] font-normal transition-colors duration-200 box-border focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-blue-200)] focus-visible:ring-offset-1 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"}}),Ja=l.cva("relative w-full",{variants:{size:{medium:"",small:"",tiny:""}},defaultVariants:{size:"medium"}}),pt=l.cva("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"}}),qt=h.forwardRef(({className:e,status:t="default",size:r="medium",startIcon:a,endIcon:s,disabled:i,...u},c)=>{const m={medium:"pl-12",small:"pl-9",tiny:"pl-8"},f={medium:"pr-12",small:"pr-9",tiny:"pr-8"};return n.jsxs("div",{className:Ja({size:r}),children:[a&&n.jsx("span",{className:pt({status:t,size:r,position:"start"}),children:a}),n.jsx("input",{ref:c,className:l.cn(Ya({status:t,size:r}),a&&m[r],s&&f[r],e),disabled:i,...u}),s&&n.jsx("span",{className:pt({status:t,size:r,position:"end"}),children:s})]})});qt.displayName="Input";const Qa=l.cva("flex flex-col items-center justify-center"),en=l.cva("relative",{variants:{size:{sm:"w-8 h-8",md:"w-12 h-12",lg:"w-16 h-16"}},defaultVariants:{size:"lg"}}),tn=l.cva("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"}}),rn=l.cva("mt-4 typography-small",{variants:{color:{primary:"text-[var(--color-gray-1000)]",muted:"text-[var(--color-gray-600)]"}},defaultVariants:{color:"muted"}}),an=({size:e="lg",color:t="primary",text:r,textColor:a="muted"})=>n.jsxs("div",{className:Qa(),children:[n.jsx("div",{className:en({size:e}),children:n.jsx("div",{className:tn({color:t})})}),r&&n.jsx("p",{className:rn({color:a}),children:r})]}),He=l.cva("relative flex flex-col w-full max-w-[668px] transition-colors duration-200 group",{variants:{variant:{user:"",assistant:"",system:"",loader:""},alignment:{left:"items-start",center:"items-center",right:"items-end"},isEditing:{true:"items-stretch",false:""}},compoundVariants:[{variant:"user",alignment:void 0,isEditing:!1,className:"items-end"},{variant:"assistant",alignment:void 0,isEditing:!1,className:"items-start"},{variant:"system",alignment:void 0,className:"items-start"},{variant:"loader",alignment:void 0,className:"items-start"}],defaultVariants:{variant:"user",isEditing:!1}}),nn=l.cva("flex gap-[12px] items-start w-full"),on=l.cva("flex flex-col flex-1 min-w-0"),gt=l.cva("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}}),sn=l.cva("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"}}),ln=l.cva("typography-h4 text-[var(--color-blue-1000)]"),ht=l.cva("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"}}),xt=l.cva("flex gap-[8px] p-[4px] rounded-[4px] transition-opacity duration-200",{variants:{variant:{user:"",assistant:"",system:"hidden",loader:"hidden"}},defaultVariants:{variant:"user"}}),cn=l.cva(["flex","gap-[8px]","opacity-0","group-hover:opacity-100","transition-opacity","duration-200"]),un=l.cva("p-1 rounded-[4px] text-[var(--color-gray-400)] hover:text-[var(--color-gray-800)] hover:drop-shadow-[0_1px_2px_rgba(0,0,0,0.15)] transition-all duration-200 focus-visible:ring-2 focus-visible:ring-[var(--color-blue-200)] focus-visible:ring-offset-1 disabled:opacity-30 disabled:cursor-not-allowed disabled:hover:text-[var(--color-gray-400)] disabled:hover:drop-shadow-none",{variants:{isActive:{true:"text-[var(--color-blue-800)]",false:""}},defaultVariants:{isActive:!1}}),dn=l.cva("flex items-start justify-center shrink-0 pt-[4px]"),fn=l.cva("flex items-center justify-center size-[32px] rounded-full bg-[var(--color-blue-1000)]"),vn=l.cva("text-[12px] text-[var(--color-gray-600)] mt-[4px]"),mn=l.cva("flex items-center justify-center"),pn=l.cva("relative overflow-hidden flex items-center gap-[8px] py-[2px] select-none"),gn=l.cva(["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"]),hn=l.cva(["relative shrink-0 flex items-center justify-center","text-[var(--color-gray-600)]","animate-signal-rhythm","origin-center"]),xn=l.cva(["absolute inset-0","bg-[var(--color-blue-200)]","rounded-full","opacity-0","animate-ping-slow","-z-10"]),bn=l.cva(["flex","flex-col","w-full","bg-[var(--color-white)]","rounded-[16px]","border","border-[var(--color-blue-800)]","p-[16px]","gap-[8px]","transition-colors","duration-200"]),yn=l.cva(["w-full","min-h-[60px]","bg-transparent","border-none","resize-none","typography-small","text-[var(--color-blue-1000)]","placeholder:text-[var(--color-gray-600)]","focus:outline-none","disabled:opacity-50","disabled:cursor-not-allowed"]),Cn=l.cva(["text-[12px]","leading-[16px]","text-[var(--color-gray-600)]"]),wn=l.cva(["flex","items-center","gap-[4px]"]),bt=l.cva(["p-[4px]","rounded-[4px]","text-[var(--color-gray-400)]","transition-colors","duration-200","hover:text-[var(--color-gray-800)]","hover:bg-[var(--color-gray-100)]","disabled:opacity-30","disabled:cursor-not-allowed","disabled:hover:bg-transparent","disabled:hover:text-[var(--color-gray-400)]","focus-visible:ring-2","focus-visible:ring-[var(--color-blue-200)]","focus-visible:ring-offset-1"]),Sn=l.cva(["text-[12px]","leading-[16px]","text-[var(--color-gray-600)]","font-normal","tabular-nums","select-none","min-w-[32px]","text-center"]),Nn=[],jn=typeof navigator<"u"&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),kn=jn?"⌘+Enter to save, Esc to cancel":"Ctrl+Enter to save, Esc to cancel",Ln=e=>{const t=typeof e=="string"?new Date(e):e,a=new Date().getTime()-t.getTime(),s=Math.floor(a/6e4);if(s<1)return"Just now";if(s<60)return`${s} min ago`;const i=Math.floor(s/60);return i<24?`${i}h ago`:t.toLocaleDateString()},ie=h.memo(({onClick:e,icon:t,label:r,className:a,isActive:s=!1,disabled:i=!1})=>n.jsx("button",{className:l.cn(un({isActive:s}),a),onClick:e,type:"button","aria-label":r,disabled:i,children:n.jsx(t,{size:12})}));ie.displayName="ActionButton";const Xt=h.memo(({branchInfo:e,onPrevious:t,onNext:r,isLoading:a=!1})=>{const s=e.currentIndex>1,i=e.currentIndex<e.totalBranches;return e.totalBranches<=1?null:n.jsxs("div",{className:l.cn(wn()),children:[n.jsx("button",{type:"button",className:l.cn(bt()),onClick:t,disabled:!s||a,"aria-label":"Previous version",children:n.jsx(o.ChevronLeft,{size:14})}),n.jsxs("span",{className:l.cn(Sn()),children:[e.currentIndex," / ",e.totalBranches]}),n.jsx("button",{type:"button",className:l.cn(bt()),onClick:r,disabled:!i||a,"aria-label":"Next version",children:n.jsx(o.ChevronRight,{size:14})})]})});Xt.displayName="BranchNavigator";const En=()=>{const[e,t]=h.useState(0);return h.useEffect(()=>{const r=setInterval(()=>{t(a=>a+1)},2500);return()=>clearInterval(r)},[]),n.jsx("div",{className:l.cn(mn()),children:n.jsx(st,{size:28,colorVariant:"lightTeal",animated:!0,animationDuration:2},e)})},Yt=h.forwardRef(({className:e,variant:t="user",heading:r,children:a,isLoading:s,timestamp:i,hideAvatar:u=!1,showTimestamp:c=!1,isSticky:m=!1,isInitialPrompt:f=!1,alignment:v,actions:p=Nn,enableCopy:x=!1,copyIcon:y,onCopySuccess:S,enableEdit:g=!1,isEditing:C,initialEditContent:w,onEditStart:j,onEditCancel:N,onEditSave:k,isSaving:E=!1,branchInfo:D,onPreviousBranch:L,onNextBranch:P,isBranchLoading:R=!1,...B},ae)=>{const V=h.useRef(null),z=h.useRef(null),[H,q]=h.useState(!1),[G,xe]=h.useState(!1),[M,U]=h.useState(w??""),I=C??G,de=v??(t==="user"?f?"center":"right":"left"),X=h.useCallback(()=>V.current?V.current.innerText:typeof a=="string"?a:"",[a]),ze=h.useCallback(()=>{if(C===void 0){const b=w??X();U(b),xe(!0)}j==null||j()},[w,X,C,j]),fe=h.useCallback(()=>{C===void 0&&xe(!1),U(""),N==null||N()},[C,N]),ve=h.useCallback(async()=>{if(!(!(M!=null&&M.trim())||E)&&M.trim()!==(w==null?void 0:w.trim()))try{await(k==null?void 0:k(M)),C===void 0&&xe(!1),U("")}catch(b){console.error("Failed to save edit:",b)}},[M,E,k,C,w]),Y=h.useCallback(b=>{b.key==="Escape"?fe():b.key==="Enter"&&(b.metaKey||b.ctrlKey)&&(b.preventDefault(),ve())},[fe,ve]),be=h.useRef(!1),ye=h.useRef(w);h.useEffect(()=>{ye.current=w},[w]),h.useEffect(()=>{const b=be.current;if(be.current=I,I&&!b){const A=w||ye.current||X()||"";U(A)}else!I&&b&&U("")},[I,w,X]),h.useEffect(()=>{if(I&&z.current){z.current.focus();const b=z.current.value.length;z.current.setSelectionRange(b,b)}},[I]);const _e=h.useCallback(async()=>{if(!V.current)return;const b=V.current.innerText;try{navigator.clipboard&&navigator.clipboard.writeText?(await navigator.clipboard.writeText(b),q(!0),S==null||S(),setTimeout(()=>{q(!1)},2e3)):console.warn("Clipboard API not available")}catch(A){console.error("Failed to copy:",A)}},[S]),Fe=h.useCallback(b=>{U(b.target.value)},[]),Ce=h.useMemo(()=>p.length>0||x||g&&t==="user",[p.length,x,g,t]),me=h.useMemo(()=>!m&&!I&&(t==="user"||t==="assistant")&&Ce,[m,I,t,Ce]),pe=h.useMemo(()=>!I&&D&&D.totalBranches>1&&t==="user",[I,D,t]);return t==="loader"||s?n.jsx("div",{ref:ae,className:l.cn(He({variant:"loader",alignment:"left",isEditing:!1}),e),...B,children:n.jsx("div",{className:l.cn(gt({variant:"loader",isSticky:m})),children:n.jsx(En,{})})}):I&&t==="user"?n.jsxs("div",{ref:ae,className:l.cn(He({variant:t,alignment:"right",isEditing:!0}),"group",e),...B,children:[n.jsx("div",{className:l.cn(bn()),children:n.jsx("textarea",{ref:z,value:M,onChange:Fe,onKeyDown:Y,className:l.cn(yn()),placeholder:"Edit your message...",disabled:E,"aria-label":"Edit message"})}),n.jsxs("div",{className:l.cn(xt({variant:t}),"opacity-100 justify-between"),children:[n.jsx("span",{className:l.cn(Cn()),children:kn}),n.jsxs("div",{className:"flex",children:[n.jsx(ie,{onClick:ve,icon:o.Check,label:"Save",disabled:E||!(M!=null&&M.trim())||M.trim()===(w==null?void 0:w.trim())}),n.jsx(ie,{onClick:fe,icon:o.X,label:"Cancel",disabled:E})]})]})]}):n.jsx("div",{ref:ae,className:l.cn(He({variant:t,alignment:de,isEditing:!1}),"group",e),...B,children:n.jsxs("div",{className:l.cn(nn()),children:[!u&&t==="assistant"&&n.jsx("div",{className:l.cn(dn()),children:n.jsx("div",{className:l.cn(fn()),children:n.jsx(ot,{size:20,colorVariant:"lightTeal"})})}),n.jsxs("div",{className:l.cn(on()),children:[n.jsx("div",{className:l.cn(gt({variant:t,isSticky:m})),children:n.jsx("div",{className:l.cn(sn({variant:t})),ref:V,children:t==="system"?n.jsxs("div",{className:l.cn(pn()),children:[n.jsx("div",{className:l.cn(gn())}),n.jsxs("div",{className:l.cn(hn()),children:[n.jsx(o.Activity,{size:16}),n.jsx("div",{className:l.cn(xn())})]}),n.jsx("span",{className:l.cn(ht({variant:t})),children:a})]}):n.jsxs(n.Fragment,{children:[t==="assistant"&&r&&n.jsx("h4",{className:l.cn(ln()),children:r}),n.jsx("div",{className:l.cn(ht({variant:t})),children:a})]})})}),c&&i&&n.jsx("div",{className:l.cn(vn()),children:Ln(i)}),(me||pe)&&n.jsxs("div",{className:l.cn(xt({variant:t}),"justify-between"),children:[n.jsx("div",{className:l.cn(cn()),children:me&&n.jsxs(n.Fragment,{children:[x&&y&&n.jsx(ie,{onClick:_e,icon:H?o.Check:y,label:H?"Copied":"Copy",isActive:H}),g&&t==="user"&&n.jsx(ie,{onClick:ze,icon:o.Edit2,label:"Edit"}),p.map((b,A)=>n.jsx(ie,{onClick:b.onClick,icon:b.icon,label:b.label,isActive:b.isActive},`${b.label}-${A}`))]})}),pe&&D&&n.jsx(Xt,{branchInfo:D,onPrevious:L,onNext:P,isLoading:R})]})]})]})})});Yt.displayName="MessageBubble";const Tn=l.cva("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"}}),Dn=l.cva("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"}}),Rn=l.cva("flex justify-between mb-2 text-[var(--color-gray-800)]",{variants:{size:{small:"text-xs",medium:"text-sm",large:"text-base"}},defaultVariants:{size:"medium"}}),Jt=h.forwardRef(({className:e,value:t=0,max:r=100,variant:a="default",size:s="medium",showValueLabel:i=!1,label:u,valueFormatter:c,...m},f)=>{const v=Math.min(Math.max(t/r*100,0),100),p=c?c(t,r):`${Math.round(v)}%`;return n.jsxs("div",{ref:f,className:l.cn("w-full",e),role:"progressbar","aria-valuemin":0,"aria-valuemax":r,"aria-valuenow":t,...m,children:[(u||i)&&n.jsxs("div",{className:Rn({size:s}),children:[u&&n.jsx("span",{className:"font-medium",children:u}),i&&n.jsx("span",{className:"ml-auto",children:p})]}),n.jsx("div",{className:Tn({size:s}),children:n.jsx("div",{className:Dn({variant:a}),style:{transform:`translateX(-${100-v}%)`}})})]})});Jt.displayName="ProgressBar";const Pn=l.cva(["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-200)]","[&::-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-200)]","[&::-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}}),Qt=h.forwardRef(({className:e,variant:t="cyan",animated:r=!1,style:a,...s},i)=>{const{min:u=0,max:c=100,value:m,defaultValue:f}=s,v=Number(m??f??0),p=Number(u),x=Number(c),y=Math.min(Math.max((v-p)*100/(x-p),0),100),S=t==="orange"?"var(--color-orange-800)":"var(--color-blue-800)",g=`linear-gradient(to right, ${S} 0%, ${S} ${y}%, var(--color-gray-200) ${y}%, var(--color-gray-200) 100%)`;return n.jsx("input",{ref:i,type:"range",className:l.cn(Pn({variant:t,animated:r}),e),style:{background:g,...a},...s})});Qt.displayName="RangeInput";const Mn=l.cva("box-border flex cursor-pointer transition-all duration-200 focus-visible:ring-2 focus-visible:ring-[var(--color-blue-200)] focus-visible:ring-offset-2",{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-[var(--color-blue-200)]",brand:"h-[44px] rounded-[24px] bg-transparent hover:bg-transparent"}},compoundVariants:[{type:"collapsed",variant:"active",className:"bg-[var(--color-blue-200)]"}],defaultVariants:{type:"expanded",variant:"default"}}),In=l.cva("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"}}),An=l.cva("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"}}),er=h.forwardRef(({className:e,icon:t,label:r,isCollapsed:a=!1,isActive:s=!1,variant:i="default",onClick:u,children:c,...m},f)=>{const v=a?"collapsed":"expanded",p=s?"active":i,x=y=>{u&&(y.key==="Enter"||y.key===" ")&&(y.preventDefault(),u())};return n.jsxs("div",{ref:f,className:l.cn(Mn({type:v,variant:p}),e),role:"button",tabIndex:0,"aria-label":r,onClick:u,onKeyDown:x,...m,children:[t&&n.jsx("div",{className:l.cn(In({type:v,variant:p})),children:t}),(i!=="brand"||!a)&&n.jsx("span",{className:l.cn(An({type:v,variant:p})),children:r})]})});er.displayName="SidebarItem";const On=l.cva("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"}}),Vn=l.cva("w-4 h-4 rounded-full object-cover shrink-0"),yt=l.cva("flex items-center justify-center shrink-0"),ue=h.forwardRef(({className:e,variant:t="default",startIcon:r,endIcon:a,avatarSrc:s,children:i,...u},c)=>n.jsxs("div",{ref:c,className:l.cn(On({variant:t}),e),...u,children:[s&&n.jsx("img",{src:s,alt:"avatar",className:Vn()}),r&&n.jsx("span",{className:yt(),children:r}),n.jsx($,{variant:"tag",color:"inherit",className:"whitespace-nowrap",children:i}),a&&n.jsx("span",{className:yt(),children:a})]}));ue.displayName="Tag";const zn=l.cva("inline-flex h-8 items-center justify-start rounded-none bg-transparent p-0 text-muted-foreground w-full relative"),_n=l.cva("inline-flex items-center justify-center whitespace-nowrap px-2 py-2 text-[10px] leading-4 font-normal transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-blue-200)] focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-[var(--color-blue-200)] 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-200)] 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"}}),Fn=l.cva("mt-2 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-blue-200)] focus-visible:ring-offset-2"),Bn=l.cva("absolute bottom-0 left-0 right-0 h-[2px] bg-[var(--color-blue-1000)] bg-opacity-20"),Hn=l.cva("flex items-center gap-[2px]"),Ct=l.cva("group-data-[state=active]:text-[var(--color-blue-1000)]"),Un=te.Root,tr=d.forwardRef(({className:e,...t},r)=>n.jsx(te.List,{ref:r,className:l.cn(zn(),e),...t}));tr.displayName=te.List.displayName;const rr=d.forwardRef(({className:e,children:t,errorCount:r,configurationCount:a,...s},i)=>{const[u,c]=d.useState(!1),m=d.useRef(null);d.useEffect(()=>{const v=m.current;if(!v)return;const p=new MutationObserver(()=>{c(v.getAttribute("data-state")==="active")});return p.observe(v,{attributes:!0,attributeFilter:["data-state"]}),c(v.getAttribute("data-state")==="active"),()=>p.disconnect()},[]);const f=d.useCallback(v=>{m.current=v,typeof i=="function"?i(v):i&&(i.current=v)},[i]);return n.jsxs(te.Trigger,{ref:f,className:l.cn(_n(),e),...s,children:[t,(a!==void 0||r!==void 0)&&n.jsxs("div",{className:Hn(),children:[a!==void 0&&n.jsx(ue,{variant:"indicator",startIcon:n.jsx(o.Settings,{size:10,className:"text-[#15B1CD]"}),className:Ct(),children:a}),r!==void 0&&n.jsx(ue,{variant:"indicator",startIcon:n.jsx(o.TriangleAlert,{size:10,className:"text-[#FB6060]"}),className:Ct(),children:r})]}),n.jsx(T.motion.div,{className:Bn(),initial:!1,animate:{scaleX:u?1:0,opacity:u?1:0},transition:{duration:.3,ease:"easeInOut"},style:{originX:0}})]})});rr.displayName=te.Trigger.displayName;const ar=d.forwardRef(({className:e,...t},r)=>n.jsx(te.Content,{ref:r,className:l.cn(Fn(),e),...t,asChild:!0,children:n.jsx(T.motion.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2,ease:"easeOut"},children:t.children})}));ar.displayName=te.Content.displayName;const Wn=l.cva("w-full bg-[var(--color-white)] border border-solid rounded-[8px] font-normal transition-colors duration-200 box-border focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-blue-200)] focus-visible:ring-offset-1 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"}}),$n=l.cva("relative w-full",{variants:{size:{medium:"",small:"",tiny:""}},defaultVariants:{size:"medium"}}),nr=h.forwardRef(({className:e,status:t="default",size:r="medium",resize:a="vertical",disabled:s,...i},u)=>n.jsx("div",{className:$n({size:r}),children:n.jsx("textarea",{ref:u,className:l.cn(Wn({status:t,size:r,resize:a}),e),disabled:s,...i})}));nr.displayName="TextArea";const Gn=l.cva("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"}}),Zn=l.cva("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"}}),Kn=(e,t)=>{const r=t.getTime()-e.getTime(),a=Math.floor(r/1e3),s=Math.floor(a/60),i=Math.floor(s/60),u=Math.floor(i/24),c=Math.floor(u/7),m=Math.floor(u/30),f=Math.floor(u/365),v=r<0,p=Math.abs(a),x=Math.abs(s),y=Math.abs(i),S=Math.abs(u),g=Math.abs(c),C=Math.abs(m),w=Math.abs(f),j=(N,k)=>{const E=N===1?"":"s";return v?`in ${N} ${k}${E}`:`${N} ${k}${E} ago`};return p<60?"just now":x<60?j(x,"minute"):y<24?j(y,"hour"):S===1?v?"tomorrow":"yesterday":S<7?j(S,"day"):g<4?j(g,"week"):C<12?j(C,"month"):j(w,"year")},qn=(e,t,r)=>{switch(t){case"relative":return Kn(e,new Date);case"short":return e.toLocaleDateString(r,{month:"short",day:"numeric",year:"numeric"});case"long":return e.toLocaleDateString(r,{month:"long",day:"numeric",year:"numeric"});case"time":return e.toLocaleTimeString(r,{hour:"numeric",minute:"2-digit",hour12:!0});case"datetime":return e.toLocaleDateString(r,{month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit",hour12:!0});default:return e.toLocaleDateString(r)}},Xn=e=>e instanceof Date?e:typeof e=="number"?new Date(e):new Date(e),or=h.forwardRef(({className:e,date:t,format:r="relative",size:a="medium",variant:s="default",showIcon:i=!1,locale:u="en-US",...c},m)=>{const f=h.useMemo(()=>Xn(t),[t]),v=h.useMemo(()=>qn(f,r,u),[f,r,u]),p=h.useMemo(()=>f.toISOString(),[f]),x=s==="primary"?"var(--color-gray-800)":"var(--color-gray-600)",y=a==="small"?10:a==="large"?14:12;return n.jsxs("time",{ref:m,dateTime:p,className:l.cn(Gn({size:a,variant:s}),e),...c,children:[i&&n.jsx("span",{className:Zn({size:a}),children:n.jsx(o.ClockHistory,{size:y,color:x})}),v]})});or.displayName="Timestamp";const Yn=l.cva("flex min-w-[420px] w-fit max-w-[850px] pl-4 pr-3 py-3 rounded-[12px] shadow-xl border pointer-events-auto gap-2 relative items-center bg-white",{variants:{variant:{info:"bg-[linear-gradient(90deg,rgba(21,177,205,0.08)_0%,rgba(21,177,205,0.08)_100%),linear-gradient(90deg,rgb(255,255,255)_0%,rgb(255,255,255)_100%)] border-[var(--color-blue-800)]",success:"bg-[linear-gradient(90deg,rgba(113,212,129,0.08)_0%,rgba(113,212,129,0.08)_100%),linear-gradient(90deg,rgb(255,255,255)_0%,rgb(255,255,255)_100%)] border-[var(--color-green-1000)]",warning:"bg-[linear-gradient(90deg,rgba(242,229,40,0.08)_0%,rgba(242,229,40,0.08)_100%),linear-gradient(90deg,rgb(255,255,255)_0%,rgb(255,255,255)_100%)] border-[var(--color-orange-800)]",error:"bg-[linear-gradient(90deg,rgba(251,96,96,0.08)_0%,rgba(251,96,96,0.08)_100%),linear-gradient(90deg,rgb(255,255,255)_0%,rgb(255,255,255)_100%)] border-[var(--color-red-1000)]",prompt:"bg-[var(--color-gray-50)] border-[var(--color-blue-1000)]"}},defaultVariants:{variant:"info"}}),Jn=l.cva("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"}}),Qn=l.cva("flex items-center gap-1 flex-1"),eo=l.cva("font-bold text-[var(--color-blue-1000)] text-[0.75rem] leading-normal"),to=l.cva("font-normal text-[var(--color-blue-1000)] text-[0.75rem] leading-normal"),ro=l.cva("flex items-center gap-2 shrink-0"),ao=l.cva("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"}}),no=l.cva("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"),oo={info:o.Info,success:o.CheckCircle,warning:o.TriangleAlert,error:o.AlertCircle,prompt:o.Sparks},so={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)"},J=({id:e,variant:t="info",title:r,description:a,icon:s,action:i,secondaryAction:u,onClose:c})=>{const m=oo[t],f=so[t],v=()=>{c&&c(),e&&W.toast.dismiss(e)},p=y=>S=>{y(S),e&&W.toast.dismiss(e)},x=()=>s||(t==="success"?n.jsx(o.CheckCircle,{size:16,color:f}):t==="error"?n.jsx(o.AlertCircle,{size:16,color:f}):t==="prompt"?n.jsx(o.Sparks,{size:16,color:f}):n.jsx(m,{size:16}));return n.jsxs("div",{className:l.cn(Yn({variant:t})),role:"alert",children:[n.jsx("div",{className:Jn({variant:t}),children:x()}),n.jsxs("div",{className:Qn(),children:[n.jsx("span",{className:eo(),children:r}),a&&n.jsx("span",{className:to(),children:a})]}),n.jsx("div",{className:ao({variant:t})}),n.jsxs("div",{className:ro(),children:[u&&n.jsx(ce,{onClick:p(u.onClick),variant:"tertiary",size:"small",startIcon:u.icon||n.jsx(o.Trash,{size:13,color:"currentColor"}),className:"w-auto",children:u.label}),i&&n.jsx(ce,{onClick:p(i.onClick),variant:"primary",size:"small",startIcon:i.icon||n.jsx(o.Check,{size:13,color:"currentColor"}),className:"w-auto",children:i.label}),n.jsx("button",{onClick:v,className:no(),"aria-label":"Close",children:n.jsx(o.X,{size:16})})]})]})},io=({position:e="bottom-right",offset:t=24,gap:r=8,width:a,...s})=>n.jsx(W.Toaster,{position:e,offset:t,gap:r,toastOptions:{unstyled:!0,classNames:{toast:l.cn("bg-transparent p-0",a?"":"w-auto")},style:a?{width:typeof a=="number"?`${a}px`:a}:void 0},...s}),lo={success:(e,t,r)=>W.toast.custom(a=>n.jsx(J,{id:a,variant:"success",title:e,description:t,action:r})),error:(e,t,r)=>W.toast.custom(a=>n.jsx(J,{id:a,variant:"error",title:e,description:t,action:r})),warning:(e,t,r)=>W.toast.custom(a=>n.jsx(J,{id:a,variant:"warning",title:e,description:t,action:r})),info:(e,t,r)=>W.toast.custom(a=>n.jsx(J,{id:a,variant:"info",title:e,description:t,action:r})),prompt:(e,t,r,a)=>W.toast.custom(s=>n.jsx(J,{id:s,variant:"prompt",title:e,description:t,action:r,secondaryAction:a})),custom:e=>W.toast.custom(t=>n.jsx(J,{id:t,...e}))},co=l.cva("flex items-center gap-3"),uo=l.cva("text-[var(--color-gray-1000)] font-medium select-none"),fo=l.cva("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:ring-2 focus-visible:ring-[var(--color-blue-200)] focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",{variants:{enabled:{true:"bg-[var(--color-blue-800)]",false:"bg-[var(--color-gray-200)]"}},defaultVariants:{enabled:!1}}),vo=l.cva("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}}),sr=h.forwardRef(({enabled:e,onChange:t,label:r,className:a,disabled:s,...i},u)=>n.jsxs("div",{className:l.cn(co(),a),children:[r&&n.jsx($,{variant:"small",className:uo(),children:r}),n.jsx("button",{ref:u,type:"button",role:"switch","aria-checked":e,disabled:s,onClick:()=>!s&&t(!e),className:fo({enabled:e}),...i,children:n.jsx("span",{className:vo({enabled:e})})})]}));sr.displayName="Toggle";const mo=l.cva("flex items-center justify-between w-full gap-2 min-h-[20px]"),po=l.cva("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"}}),go={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)"},ir=h.forwardRef(({className:e,status:t="neutral",message:r,...a},s)=>{const i=t==="loading"?"info":t,u=go[t],c=()=>t==="loading"?n.jsx(o.Loader,{size:16,color:u,className:"animate-spin"}):t==="success"?n.jsx(o.CheckCircle,{size:16,color:u}):t==="warning"?n.jsx(o.TriangleAlert,{size:16,color:u}):t==="error"?n.jsx(o.AlertCircle,{size:16,color:u}):t==="info"?n.jsx(o.Info,{size:16,color:u}):null;return n.jsxs("div",{ref:s,className:l.cn(mo(),e),...a,children:[n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx(nt,{variant:i,size:"small"}),n.jsx("span",{className:po({status:t}),children:r})]}),n.jsx("div",{className:"w-4 h-4 flex items-center justify-center",children:c()})]})});ir.displayName="StatusMessage";const ho=l.cva("flex items-center justify-between w-full gap-2 min-h-[20px]"),xo=l.cva("flex items-center gap-2"),bo=l.cva("text-[12px] font-normal font-sans leading-[16px]",{variants:{status:{running:"text-[var(--color-gray-800)]",completed:"text-[var(--color-gray-800)]",stopped:"text-[var(--color-blue-800)]"}},defaultVariants:{status:"running"}}),wt=l.cva("w-4 h-4 flex items-center justify-center shrink-0"),yo={running:"var(--color-gray-800)",completed:"var(--color-gray-800)",stopped:"var(--color-blue-800)"},Co={running:"var(--color-gray-800)",completed:"var(--color-green-1000)",stopped:"var(--color-blue-800)"},lr=h.forwardRef(({className:e,status:t="running",message:r,...a},s)=>{const i=yo[t],u=Co[t],c=()=>t==="completed"?n.jsx(o.CheckCircle,{size:16,color:u}):t==="stopped"?n.jsx(o.Hand,{size:16,color:u}):n.jsx(o.Pause,{size:16,color:u});return n.jsxs("div",{ref:s,className:l.cn(ho(),e),...a,children:[n.jsxs("div",{className:xo(),children:[n.jsx("div",{className:wt(),children:n.jsx(o.Hexagon,{size:16,color:i})}),n.jsx("span",{className:bo({status:t}),children:r})]}),n.jsx("div",{className:wt(),children:c()})]})});lr.displayName="AutopilotAction";const wo=l.cva("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"}}),So=l.cva("",{variants:{variant:{default:"fill-[var(--color-blue-1000)]",light:"fill-[var(--color-gray-50)]"}},defaultVariants:{variant:"default"}}),Je=({delayDuration:e=0,...t})=>n.jsx(Q.Provider,{delayDuration:e,...t}),Qe=Q.Root,et=Q.Trigger,Re=d.forwardRef(({className:e,sideOffset:t=4,children:r,variant:a,...s},i)=>n.jsx(Q.Portal,{children:n.jsx(Q.Content,{ref:i,sideOffset:t,asChild:!0,className:l.cn(wo({variant:a}),e),...s,children:n.jsxs(T.motion.div,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},transition:{duration:.1,ease:"easeOut"},children:[n.jsx($,{variant:"x-small",color:"inherit",className:"font-normal relative z-10",children:r}),n.jsx(Q.Arrow,{className:So({variant:a})})]})})}));Re.displayName=Q.Content.displayName;const No=l.cva("relative flex flex-col w-full"),jo=l.cva("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}}),ko=l.cva("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"}}),Lo=l.cva("box-border flex flex-col gap-[1.25rem] items-start justify-center w-full rounded-[inherit]"),Eo=l.cva("flex flex-col gap-5 w-full"),To=l.cva("flex flex-wrap gap-[8px] items-start w-full"),Do=l.cva("flex items-start justify-between w-full max-h-[200px] overflow-y-auto"),Ro=l.cva("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"}}),Po=l.cva("flex items-center justify-between w-full"),Mo=l.cva("flex gap-[8px] items-center"),Io=l.cva("flex items-center gap-2.5"),Ue=l.cva("flex items-center justify-center shrink-0 transition-all duration-200 disabled:opacity-40 disabled:cursor-not-allowed focus-visible:ring-2 focus-visible:ring-[var(--color-blue-200)] focus-visible:ring-offset-2",{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"}}),Ao=l.cva("flex items-center justify-center shrink-0 size-[32px] rounded-[100px] transition-all duration-200 focus-visible:ring-2 focus-visible:ring-[var(--color-blue-200)] focus-visible:ring-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"}},defaultVariants:{disabled:!1}}),Oo=l.cva("animate-spin"),Vo=l.cva("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)]"),zo=l.cva("flex items-center justify-center"),_o=l.cva("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"),Fo=l.cva("min-w-[120px]"),Bo=l.cva("py-1.5 px-2"),Ho=l.cva("absolute -inset-[2px] rounded-[18px] z-0 pointer-events-none"),St=l.cva("absolute inset-0 rounded-[18px] w-full h-full",{variants:{layer:{base:"opacity-40",blur:"blur-xl opacity-20"}},defaultVariants:{layer:"base"}}),cr=h.forwardRef(({placeholder:e="Type message",value:t,files:r=[],disabled:a=!1,maxFiles:s=10,maxFileSize:i=1024*1024*1024,className:u,variant:c="default",actions:m=[],models:f=[],selectedModel:v,isLoading:p=!1,isUploading:x=!1,onChange:y,onSend:S,onFileAdd:g,onFileRemove:C,onModelChange:w,isUsingMagic:j=!1,contextUsage:N,contextMax:k=100},E)=>{var me,pe;const[D,L]=h.useState(""),[P,R]=h.useState(!1),[B,ae]=h.useState(!1),V=h.useRef(null),z=h.useRef(null),H=t!==void 0?t:D,q=H.trim().length>0,G=r.length>0,M=P?"dragOver":G?"withFiles":B?"active":"default",U=b=>{y?y(b):L(b)},I=b=>{U(b.target.value),de()},de=h.useCallback(()=>{const b=V.current;b&&(b.style.height="auto",b.style.height=`${Math.min(b.scrollHeight,200)}px`)},[]);h.useEffect(()=>{de()},[H,de]);const X=h.useCallback(()=>{a||x||!q&&!G||S&&(S(H,r),U(""),V.current&&(V.current.style.height="auto"))},[a,x,q,G,S,H,r]),ze=b=>{b.key==="Enter"&&!b.shiftKey&&(b.preventDefault(),X())},fe=b=>{const A=Array.from(b.target.files||[]);A.length>0&&g&&g(A),z.current&&(z.current.value="")},ve=()=>{var b;(b=z.current)==null||b.click()},Y=h.useRef(0),be=b=>{b.preventDefault(),b.stopPropagation(),Y.current+=1,Y.current===1&&R(!0)},ye=b=>{b.preventDefault(),b.stopPropagation(),Y.current-=1,Y.current===0&&R(!1)},_e=b=>{b.preventDefault(),b.stopPropagation()},Fe=b=>{b.preventDefault(),b.stopPropagation(),Y.current=0,R(!1);const A=Array.from(b.dataTransfer.files);A.length>0&&g&&g(A)},Ce=b=>{C&&C(b)};return n.jsxs("div",{ref:E,className:l.cn(No(),u),children:[n.jsx(T.AnimatePresence,{children:j&&n.jsxs(T.motion.div,{initial:{opacity:0,scale:.98},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.98},transition:{duration:1.2,ease:"easeInOut"},className:Ho(),children:[n.jsx("div",{className:St({layer:"base"}),children:n.jsx(T.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"}})}),n.jsx("div",{className:St({layer:"blur"}),children:n.jsx(T.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"}})})]})}),n.jsxs("div",{className:jo({state:M,variant:c,isMagicActive:j}),onDragEnter:be,onDragLeave:ye,onDragOver:_e,onDrop:Fe,children:[n.jsx("div",{className:ko({state:M,variant:c}),children:n.jsx("div",{className:Lo(),children:n.jsxs("div",{className:Eo(),children:[G&&n.jsx("div",{className:To(),children:r.map(b=>n.jsx(Gt,{filename:b.filename,status:b.status,progress:b.progress,onDelete:()=>Ce(b.id)},b.id))}),n.jsx("div",{className:Do(),children:n.jsx("textarea",{ref:V,className:Ro({state:M}),placeholder:e,value:H,disabled:a||p,onChange:I,onKeyDown:ze,onFocus:()=>ae(!0),onBlur:()=>ae(!1),rows:2,maxLength:1e4,"aria-label":"Chat message input"})}),n.jsxs("div",{className:Po(),children:[n.jsxs("div",{className:Mo(),children:[n.jsx("button",{type:"button",onClick:ve,className:Ue({variant:"add"}),disabled:a,"aria-label":"Add file",tabIndex:0,children:n.jsx(o.Plus,{size:16})}),m.map(b=>n.jsx(h.Fragment,{children:b.tooltip?n.jsx(Je,{children:n.jsxs(Qe,{children:[n.jsx(et,{asChild:!0,children:n.jsx("button",{type:"button",onClick:b.onClick,className:Ue(),disabled:a||b.disabled,"aria-label":b.label,tabIndex:0,children:b.icon})}),n.jsx(Re,{variant:"light",children:b.tooltip})]})}):n.jsx("button",{type:"button",onClick:b.onClick,className:Ue(),disabled:a||b.disabled,"aria-label":b.label,tabIndex:0,children:b.icon})},`--action-${b.id}`))]}),n.jsxs("div",{className:Io(),children:[f.length>0&&n.jsxs(lt,{children:[n.jsx(ct,{children:n.jsxs("button",{type:"button",className:_o(),disabled:a||p,"aria-label":"Select AI model",children:[n.jsx($,{variant:"tiny",color:"inherit",as:"span",className:a||p?"opacity-50":void 0,children:((me=f.find(b=>b.id===v))==null?void 0:me.name)||((pe=f[0])==null?void 0:pe.name)||"Select model"}),n.jsx(o.ChevronDown,{size:10,color:"currentColor"})]})}),n.jsx(ut,{align:"end",className:Fo(),children:f.map(b=>n.jsx(dt,{active:b.id===v,onClick:()=>w==null?void 0:w(b.id),className:Bo(),children:n.jsx($,{variant:"tiny",color:"inherit",as:"span",children:b.name})},b.id))})]}),N!==void 0&&n.jsx(Je,{children:n.jsxs(Qe,{children:[n.jsx(et,{asChild:!0,children:n.jsx("div",{className:"flex items-center justify-center h-[32px]",children:n.jsx(it,{value:N,max:k,size:"xs",showLabel:!1,variant:N>=90?"error":N>=75?"warning":"default",strokeWidth:2,"aria-label":`Context usage: ${N} of ${k}`})})}),n.jsxs(Re,{variant:"light",children:["Context: ",N,"/",k]})]})}),n.jsx("button",{type:"button",onClick:X,className:Ao({disabled:a||p||x||!q&&!G}),disabled:a||p||x||!q&&!G,"aria-label":p?"Loading":"Send message",tabIndex:0,children:p?n.jsx(o.Loader,{size:16,color:"currentColor",className:Oo()}):n.jsx(o.ArrowUp,{size:16,strokeWidth:2.5,color:"currentColor"})})]})]})]})})}),n.jsx(T.AnimatePresence,{children:P&&n.jsxs(T.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:Vo(),children:[n.jsx("div",{className:zo(),children:n.jsx(o.Uploadfile,{size:32,color:"var(--color-gray-1000)"})}),n.jsx($,{variant:"small",weight:"bold",color:"primary",className:"text-center",children:"Drop your files here"}),n.jsxs($,{variant:"small",color:"secondary",className:"text-center",children:["Up to ",s," files or a maximum size of"," ",Math.round(i/(1024*1024*1024)),"GB"]})]},"overlay")}),n.jsx("input",{ref:z,type:"file",multiple:!0,onChange:fe,className:"hidden","aria-hidden":"true"})]})]})});cr.displayName="ChatInput";const Uo=l.cva("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)]"),Wo=l.cva("flex items-center gap-[12px] h-[24px]"),$o=l.cva("flex items-center gap-[12px] h-[24px] rounded-[8px]"),Nt=l.cva("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-200)] rounded-sm"),Go=l.cva("flex items-center gap-[8px]"),Zo=l.cva("flex items-center"),ur=h.forwardRef(({className:e,breadcrumbs:t,tags:r=[],collaborators:a=[],onAddTag:s,onAddCollaborator:i,tagsOverflowCount:u=0,...c},m)=>n.jsxs("div",{ref:m,className:l.cn(Uo(),e),...c,children:[n.jsx(Wt,{items:t,size:"medium"}),n.jsx("div",{className:Wo(),children:n.jsxs("div",{className:$o(),children:[(r.length>0||u>0)&&n.jsxs("div",{className:Go(),children:[r.map(f=>n.jsx(ue,{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:f.label},f.id)),u>0&&n.jsxs(ue,{variant:"default",className:"bg-[var(--color-gray-100)] border border-[var(--color-gray-200)] text-[var(--color-gray-800)] px-[8px] py-[2px] text-[10px] h-[20px]",children:["+",u]})]}),a.length>0&&n.jsx("div",{className:Zo(),children:n.jsx("div",{className:"flex items-center flex-row-reverse",children:a.map((f,v)=>n.jsx("div",{className:"relative shrink-0 border-[1.5px] border-white rounded-full",style:{zIndex:a.length-v,marginRight:v<a.length-1?-4:0},children:n.jsx(at,{initials:f.name,src:f.src,alt:f.name,className:"size-[24px] text-[10px]"})},f.id))})}),n.jsx("button",{type:"button",onClick:s,className:Nt(),"aria-label":"Add tag",children:n.jsx(o.TagPlus,{size:16})}),n.jsx("button",{type:"button",onClick:i,className:Nt(),"aria-label":"Add collaborator",children:n.jsx(o.UserPlus,{size:16})})]})})]}));ur.displayName="ConversationHeader";function K(e,t,{checkForDefaultPrevented:r=!0}={}){return function(s){if(e==null||e(s),r===!1||!s.defaultPrevented)return t==null?void 0:t(s)}}function jt(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function dr(...e){return t=>{let r=!1;const a=e.map(s=>{const i=jt(s,t);return!r&&typeof i=="function"&&(r=!0),i});if(r)return()=>{for(let s=0;s<a.length;s++){const i=a[s];typeof i=="function"?i():jt(e[s],null)}}}}function re(...e){return d.useCallback(dr(...e),e)}function Ko(e,t){const r=d.createContext(t),a=i=>{const{children:u,...c}=i,m=d.useMemo(()=>c,Object.values(c));return n.jsx(r.Provider,{value:m,children:u})};a.displayName=e+"Provider";function s(i){const u=d.useContext(r);if(u)return u;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[a,s]}function qo(e,t=[]){let r=[];function a(i,u){const c=d.createContext(u),m=r.length;r=[...r,u];const f=p=>{var w;const{scope:x,children:y,...S}=p,g=((w=x==null?void 0:x[e])==null?void 0:w[m])||c,C=d.useMemo(()=>S,Object.values(S));return n.jsx(g.Provider,{value:C,children:y})};f.displayName=i+"Provider";function v(p,x){var g;const y=((g=x==null?void 0:x[e])==null?void 0:g[m])||c,S=d.useContext(y);if(S)return S;if(u!==void 0)return u;throw new Error(`\`${p}\` must be used within \`${i}\``)}return[f,v]}const s=()=>{const i=r.map(u=>d.createContext(u));return function(c){const m=(c==null?void 0:c[e])||i;return d.useMemo(()=>({[`__scope${e}`]:{...c,[e]:m}}),[c,m])}};return s.scopeName=e,[a,Xo(s,...t)]}function Xo(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const a=e.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(i){const u=a.reduce((c,{useScope:m,scopeName:f})=>{const p=m(i)[`__scope${f}`];return{...c,...p}},{});return d.useMemo(()=>({[`__scope${t.scopeName}`]:u}),[u])}};return r.scopeName=t.scopeName,r}var ge=globalThis!=null&&globalThis.document?d.useLayoutEffect:()=>{},Yo=d[" useId ".trim().toString()]||(()=>{}),Jo=0;function We(e){const[t,r]=d.useState(Yo());return ge(()=>{r(a=>a??String(Jo++))},[e]),e||(t?`radix-${t}`:"")}var Qo=d[" useInsertionEffect ".trim().toString()]||ge;function es({prop:e,defaultProp:t,onChange:r=()=>{},caller:a}){const[s,i,u]=ts({defaultProp:t,onChange:r}),c=e!==void 0,m=c?e:s;{const v=d.useRef(e!==void 0);d.useEffect(()=>{const p=v.current;p!==c&&console.warn(`${a} is changing from ${p?"controlled":"uncontrolled"} to ${c?"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.`),v.current=c},[c,a])}const f=d.useCallback(v=>{var p;if(c){const x=rs(v)?v(e):v;x!==e&&((p=u.current)==null||p.call(u,x))}else i(v)},[c,e,i,u]);return[m,f]}function ts({defaultProp:e,onChange:t}){const[r,a]=d.useState(e),s=d.useRef(r),i=d.useRef(t);return Qo(()=>{i.current=t},[t]),d.useEffect(()=>{var u;s.current!==r&&((u=i.current)==null||u.call(i,r),s.current=r)},[r,s]),[r,a,i]}function rs(e){return typeof e=="function"}function fr(e){const t=as(e),r=d.forwardRef((a,s)=>{const{children:i,...u}=a,c=d.Children.toArray(i),m=c.find(os);if(m){const f=m.props.children,v=c.map(p=>p===m?d.Children.count(f)>1?d.Children.only(null):d.isValidElement(f)?f.props.children:null:p);return n.jsx(t,{...u,ref:s,children:d.isValidElement(f)?d.cloneElement(f,void 0,v):null})}return n.jsx(t,{...u,ref:s,children:i})});return r.displayName=`${e}.Slot`,r}function as(e){const t=d.forwardRef((r,a)=>{const{children:s,...i}=r;if(d.isValidElement(s)){const u=is(s),c=ss(i,s.props);return s.type!==d.Fragment&&(c.ref=a?dr(a,u):u),d.cloneElement(s,c)}return d.Children.count(s)>1?d.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var ns=Symbol("radix.slottable");function os(e){return d.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===ns}function ss(e,t){const r={...t};for(const a in t){const s=e[a],i=t[a];/^on[A-Z]/.test(a)?s&&i?r[a]=(...c)=>{const m=i(...c);return s(...c),m}:s&&(r[a]=s):a==="style"?r[a]={...s,...i}:a==="className"&&(r[a]=[s,i].filter(Boolean).join(" "))}return{...e,...r}}function is(e){var a,s;let t=(a=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:a.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var ls=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],F=ls.reduce((e,t)=>{const r=fr(`Primitive.${t}`),a=d.forwardRef((s,i)=>{const{asChild:u,...c}=s,m=u?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),n.jsx(m,{...c,ref:i})});return a.displayName=`Primitive.${t}`,{...e,[t]:a}},{});function cs(e,t){e&&Zr.flushSync(()=>e.dispatchEvent(t))}function he(e){const t=d.useRef(e);return d.useEffect(()=>{t.current=e}),d.useMemo(()=>(...r)=>{var a;return(a=t.current)==null?void 0:a.call(t,...r)},[])}function us(e,t=globalThis==null?void 0:globalThis.document){const r=he(e);d.useEffect(()=>{const a=s=>{s.key==="Escape"&&r(s)};return t.addEventListener("keydown",a,{capture:!0}),()=>t.removeEventListener("keydown",a,{capture:!0})},[r,t])}var ds="DismissableLayer",tt="dismissableLayer.update",fs="dismissableLayer.pointerDownOutside",vs="dismissableLayer.focusOutside",kt,vr=d.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),mr=d.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:i,onInteractOutside:u,onDismiss:c,...m}=e,f=d.useContext(vr),[v,p]=d.useState(null),x=(v==null?void 0:v.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,y]=d.useState({}),S=re(t,L=>p(L)),g=Array.from(f.layers),[C]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),w=g.indexOf(C),j=v?g.indexOf(v):-1,N=f.layersWithOutsidePointerEventsDisabled.size>0,k=j>=w,E=gs(L=>{const P=L.target,R=[...f.branches].some(B=>B.contains(P));!k||R||(s==null||s(L),u==null||u(L),L.defaultPrevented||c==null||c())},x),D=hs(L=>{const P=L.target;[...f.branches].some(B=>B.contains(P))||(i==null||i(L),u==null||u(L),L.defaultPrevented||c==null||c())},x);return us(L=>{j===f.layers.size-1&&(a==null||a(L),!L.defaultPrevented&&c&&(L.preventDefault(),c()))},x),d.useEffect(()=>{if(v)return r&&(f.layersWithOutsidePointerEventsDisabled.size===0&&(kt=x.body.style.pointerEvents,x.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(v)),f.layers.add(v),Lt(),()=>{r&&f.layersWithOutsidePointerEventsDisabled.size===1&&(x.body.style.pointerEvents=kt)}},[v,x,r,f]),d.useEffect(()=>()=>{v&&(f.layers.delete(v),f.layersWithOutsidePointerEventsDisabled.delete(v),Lt())},[v,f]),d.useEffect(()=>{const L=()=>y({});return document.addEventListener(tt,L),()=>document.removeEventListener(tt,L)},[]),n.jsx(F.div,{...m,ref:S,style:{pointerEvents:N?k?"auto":"none":void 0,...e.style},onFocusCapture:K(e.onFocusCapture,D.onFocusCapture),onBlurCapture:K(e.onBlurCapture,D.onBlurCapture),onPointerDownCapture:K(e.onPointerDownCapture,E.onPointerDownCapture)})});mr.displayName=ds;var ms="DismissableLayerBranch",ps=d.forwardRef((e,t)=>{const r=d.useContext(vr),a=d.useRef(null),s=re(t,a);return d.useEffect(()=>{const i=a.current;if(i)return r.branches.add(i),()=>{r.branches.delete(i)}},[r.branches]),n.jsx(F.div,{...e,ref:s})});ps.displayName=ms;function gs(e,t=globalThis==null?void 0:globalThis.document){const r=he(e),a=d.useRef(!1),s=d.useRef(()=>{});return d.useEffect(()=>{const i=c=>{if(c.target&&!a.current){let m=function(){pr(fs,r,f,{discrete:!0})};const f={originalEvent:c};c.pointerType==="touch"?(t.removeEventListener("click",s.current),s.current=m,t.addEventListener("click",s.current,{once:!0})):m()}else t.removeEventListener("click",s.current);a.current=!1},u=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(u),t.removeEventListener("pointerdown",i),t.removeEventListener("click",s.current)}},[t,r]),{onPointerDownCapture:()=>a.current=!0}}function hs(e,t=globalThis==null?void 0:globalThis.document){const r=he(e),a=d.useRef(!1);return d.useEffect(()=>{const s=i=>{i.target&&!a.current&&pr(vs,r,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",s),()=>t.removeEventListener("focusin",s)},[t,r]),{onFocusCapture:()=>a.current=!0,onBlurCapture:()=>a.current=!1}}function Lt(){const e=new CustomEvent(tt);document.dispatchEvent(e)}function pr(e,t,r,{discrete:a}){const s=r.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&s.addEventListener(e,t,{once:!0}),a?cs(s,i):s.dispatchEvent(i)}var $e="focusScope.autoFocusOnMount",Ge="focusScope.autoFocusOnUnmount",Et={bubbles:!1,cancelable:!0},xs="FocusScope",gr=d.forwardRef((e,t)=>{const{loop:r=!1,trapped:a=!1,onMountAutoFocus:s,onUnmountAutoFocus:i,...u}=e,[c,m]=d.useState(null),f=he(s),v=he(i),p=d.useRef(null),x=re(t,g=>m(g)),y=d.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;d.useEffect(()=>{if(a){let g=function(N){if(y.paused||!c)return;const k=N.target;c.contains(k)?p.current=k:Z(p.current,{select:!0})},C=function(N){if(y.paused||!c)return;const k=N.relatedTarget;k!==null&&(c.contains(k)||Z(p.current,{select:!0}))},w=function(N){if(document.activeElement===document.body)for(const E of N)E.removedNodes.length>0&&Z(c)};document.addEventListener("focusin",g),document.addEventListener("focusout",C);const j=new MutationObserver(w);return c&&j.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",g),document.removeEventListener("focusout",C),j.disconnect()}}},[a,c,y.paused]),d.useEffect(()=>{if(c){Dt.add(y);const g=document.activeElement;if(!c.contains(g)){const w=new CustomEvent($e,Et);c.addEventListener($e,f),c.dispatchEvent(w),w.defaultPrevented||(bs(Ns(hr(c)),{select:!0}),document.activeElement===g&&Z(c))}return()=>{c.removeEventListener($e,f),setTimeout(()=>{const w=new CustomEvent(Ge,Et);c.addEventListener(Ge,v),c.dispatchEvent(w),w.defaultPrevented||Z(g??document.body,{select:!0}),c.removeEventListener(Ge,v),Dt.remove(y)},0)}}},[c,f,v,y]);const S=d.useCallback(g=>{if(!r&&!a||y.paused)return;const C=g.key==="Tab"&&!g.altKey&&!g.ctrlKey&&!g.metaKey,w=document.activeElement;if(C&&w){const j=g.currentTarget,[N,k]=ys(j);N&&k?!g.shiftKey&&w===k?(g.preventDefault(),r&&Z(N,{select:!0})):g.shiftKey&&w===N&&(g.preventDefault(),r&&Z(k,{select:!0})):w===j&&g.preventDefault()}},[r,a,y.paused]);return n.jsx(F.div,{tabIndex:-1,...u,ref:x,onKeyDown:S})});gr.displayName=xs;function bs(e,{select:t=!1}={}){const r=document.activeElement;for(const a of e)if(Z(a,{select:t}),document.activeElement!==r)return}function ys(e){const t=hr(e),r=Tt(t,e),a=Tt(t.reverse(),e);return[r,a]}function hr(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:a=>{const s=a.tagName==="INPUT"&&a.type==="hidden";return a.disabled||a.hidden||s?NodeFilter.FILTER_SKIP:a.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function Tt(e,t){for(const r of e)if(!Cs(r,{upTo:t}))return r}function Cs(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function ws(e){return e instanceof HTMLInputElement&&"select"in e}function Z(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&ws(e)&&t&&e.select()}}var Dt=Ss();function Ss(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=Rt(e,t),e.unshift(t)},remove(t){var r;e=Rt(e,t),(r=e[0])==null||r.resume()}}}function Rt(e,t){const r=[...e],a=r.indexOf(t);return a!==-1&&r.splice(a,1),r}function Ns(e){return e.filter(t=>t.tagName!=="A")}var js="Portal",xr=d.forwardRef((e,t)=>{var c;const{container:r,...a}=e,[s,i]=d.useState(!1);ge(()=>i(!0),[]);const u=r||s&&((c=globalThis==null?void 0:globalThis.document)==null?void 0:c.body);return u?Bt.createPortal(n.jsx(F.div,{...a,ref:t}),u):null});xr.displayName=js;function ks(e,t){return d.useReducer((r,a)=>t[r][a]??r,e)}var Ae=e=>{const{present:t,children:r}=e,a=Ls(t),s=typeof r=="function"?r({present:a.isPresent}):d.Children.only(r),i=re(a.ref,Es(s));return typeof r=="function"||a.isPresent?d.cloneElement(s,{ref:i}):null};Ae.displayName="Presence";function Ls(e){const[t,r]=d.useState(),a=d.useRef(null),s=d.useRef(e),i=d.useRef("none"),u=e?"mounted":"unmounted",[c,m]=ks(u,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return d.useEffect(()=>{const f=Ne(a.current);i.current=c==="mounted"?f:"none"},[c]),ge(()=>{const f=a.current,v=s.current;if(v!==e){const x=i.current,y=Ne(f);e?m("MOUNT"):y==="none"||(f==null?void 0:f.display)==="none"?m("UNMOUNT"):m(v&&x!==y?"ANIMATION_OUT":"UNMOUNT"),s.current=e}},[e,m]),ge(()=>{if(t){let f;const v=t.ownerDocument.defaultView??window,p=y=>{const g=Ne(a.current).includes(CSS.escape(y.animationName));if(y.target===t&&g&&(m("ANIMATION_END"),!s.current)){const C=t.style.animationFillMode;t.style.animationFillMode="forwards",f=v.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=C)})}},x=y=>{y.target===t&&(i.current=Ne(a.current))};return t.addEventListener("animationstart",x),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{v.clearTimeout(f),t.removeEventListener("animationstart",x),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else m("ANIMATION_END")},[t,m]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:d.useCallback(f=>{a.current=f?getComputedStyle(f):null,r(f)},[])}}function Ne(e){return(e==null?void 0:e.animationName)||"none"}function Es(e){var a,s;let t=(a=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:a.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var Ze=0;function Ts(){d.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Pt()),document.body.insertAdjacentElement("beforeend",e[1]??Pt()),Ze++,()=>{Ze===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Ze--}},[])}function Pt(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var _=function(){return _=Object.assign||function(t){for(var r,a=1,s=arguments.length;a<s;a++){r=arguments[a];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},_.apply(this,arguments)};function br(e,t){var r={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(r[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,a=Object.getOwnPropertySymbols(e);s<a.length;s++)t.indexOf(a[s])<0&&Object.prototype.propertyIsEnumerable.call(e,a[s])&&(r[a[s]]=e[a[s]]);return r}function Ds(e,t,r){if(r||arguments.length===2)for(var a=0,s=t.length,i;a<s;a++)(i||!(a in t))&&(i||(i=Array.prototype.slice.call(t,0,a)),i[a]=t[a]);return e.concat(i||Array.prototype.slice.call(t))}var Te="right-scroll-bar-position",De="width-before-scroll-bar",Rs="with-scroll-bars-hidden",Ps="--removed-body-scroll-bar-size";function Ke(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Ms(e,t){var r=h.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(a){var s=r.value;s!==a&&(r.value=a,r.callback(a,s))}}}})[0];return r.callback=t,r.facade}var Is=typeof window<"u"?d.useLayoutEffect:d.useEffect,Mt=new WeakMap;function As(e,t){var r=Ms(null,function(a){return e.forEach(function(s){return Ke(s,a)})});return Is(function(){var a=Mt.get(r);if(a){var s=new Set(a),i=new Set(e),u=r.current;s.forEach(function(c){i.has(c)||Ke(c,null)}),i.forEach(function(c){s.has(c)||Ke(c,u)})}Mt.set(r,e)},[e]),r}function Os(e){return e}function Vs(e,t){t===void 0&&(t=Os);var r=[],a=!1,s={read:function(){if(a)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(i){var u=t(i,a);return r.push(u),function(){r=r.filter(function(c){return c!==u})}},assignSyncMedium:function(i){for(a=!0;r.length;){var u=r;r=[],u.forEach(i)}r={push:function(c){return i(c)},filter:function(){return r}}},assignMedium:function(i){a=!0;var u=[];if(r.length){var c=r;r=[],c.forEach(i),u=r}var m=function(){var v=u;u=[],v.forEach(i)},f=function(){return Promise.resolve().then(m)};f(),r={push:function(v){u.push(v),f()},filter:function(v){return u=u.filter(v),r}}}};return s}function zs(e){e===void 0&&(e={});var t=Vs(null);return t.options=_({async:!0,ssr:!1},e),t}var yr=function(e){var t=e.sideCar,r=br(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var a=t.read();if(!a)throw new Error("Sidecar medium not found");return d.createElement(a,_({},r))};yr.isSideCarExport=!0;function _s(e,t){return e.useMedium(t),yr}var Cr=zs(),qe=function(){},Oe=d.forwardRef(function(e,t){var r=d.useRef(null),a=d.useState({onScrollCapture:qe,onWheelCapture:qe,onTouchMoveCapture:qe}),s=a[0],i=a[1],u=e.forwardProps,c=e.children,m=e.className,f=e.removeScrollBar,v=e.enabled,p=e.shards,x=e.sideCar,y=e.noRelative,S=e.noIsolation,g=e.inert,C=e.allowPinchZoom,w=e.as,j=w===void 0?"div":w,N=e.gapMode,k=br(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=x,D=As([r,t]),L=_(_({},k),s);return d.createElement(d.Fragment,null,v&&d.createElement(E,{sideCar:Cr,removeScrollBar:f,shards:p,noRelative:y,noIsolation:S,inert:g,setCallbacks:i,allowPinchZoom:!!C,lockRef:r,gapMode:N}),u?d.cloneElement(d.Children.only(c),_(_({},L),{ref:D})):d.createElement(j,_({},L,{className:m,ref:D}),c))});Oe.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Oe.classNames={fullWidth:De,zeroRight:Te};var Fs=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Bs(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Fs();return t&&e.setAttribute("nonce",t),e}function Hs(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Us(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Ws=function(){var e=0,t=null;return{add:function(r){e==0&&(t=Bs())&&(Hs(t,r),Us(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},$s=function(){var e=Ws();return function(t,r){d.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},wr=function(){var e=$s(),t=function(r){var a=r.styles,s=r.dynamic;return e(a,s),null};return t},Gs={left:0,top:0,right:0,gap:0},Xe=function(e){return parseInt(e||"",10)||0},Zs=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],a=t[e==="padding"?"paddingTop":"marginTop"],s=t[e==="padding"?"paddingRight":"marginRight"];return[Xe(r),Xe(a),Xe(s)]},Ks=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Gs;var t=Zs(e),r=document.documentElement.clientWidth,a=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,a-r+t[2]-t[0])}},qs=wr(),le="data-scroll-locked",Xs=function(e,t,r,a){var s=e.left,i=e.top,u=e.right,c=e.gap;return r===void 0&&(r="margin"),`
27
+ .`.concat(Rs,` {
28
28
  overflow: hidden `).concat(a,`;
29
- padding-right: `).concat(l,"px ").concat(a,`;
29
+ padding-right: `).concat(c,"px ").concat(a,`;
30
30
  }
31
- body[`).concat(_t,`] {
31
+ body[`).concat(le,`] {
32
32
  overflow: hidden `).concat(a,`;
33
33
  overscroll-behavior: contain;
34
- `).concat([e&&"position: relative ".concat(a,";"),t==="margin"&&`
35
- padding-left: `.concat(n,`px;
36
- padding-top: `).concat(s,`px;
37
- padding-right: `).concat(o,`px;
34
+ `).concat([t&&"position: relative ".concat(a,";"),r==="margin"&&`
35
+ padding-left: `.concat(s,`px;
36
+ padding-top: `).concat(i,`px;
37
+ padding-right: `).concat(u,`px;
38
38
  margin-left:0;
39
39
  margin-top:0;
40
- margin-right: `).concat(l,"px ").concat(a,`;
41
- `),t==="padding"&&"padding-right: ".concat(l,"px ").concat(a,";")].filter(Boolean).join(""),`
40
+ margin-right: `).concat(c,"px ").concat(a,`;
41
+ `),r==="padding"&&"padding-right: ".concat(c,"px ").concat(a,";")].filter(Boolean).join(""),`
42
42
  }
43
43
 
44
- .`).concat(N0,` {
45
- right: `).concat(l,"px ").concat(a,`;
44
+ .`).concat(Te,` {
45
+ right: `).concat(c,"px ").concat(a,`;
46
46
  }
47
47
 
48
- .`).concat(A0,` {
49
- margin-right: `).concat(l,"px ").concat(a,`;
48
+ .`).concat(De,` {
49
+ margin-right: `).concat(c,"px ").concat(a,`;
50
50
  }
51
51
 
52
- .`).concat(N0," .").concat(N0,` {
52
+ .`).concat(Te," .").concat(Te,` {
53
53
  right: 0 `).concat(a,`;
54
54
  }
55
55
 
56
- .`).concat(A0," .").concat(A0,` {
56
+ .`).concat(De," .").concat(De,` {
57
57
  margin-right: 0 `).concat(a,`;
58
58
  }
59
59
 
60
- body[`).concat(_t,`] {
61
- `).concat(pu,": ").concat(l,`px;
60
+ body[`).concat(le,`] {
61
+ `).concat(Ps,": ").concat(c,`px;
62
62
  }
63
- `)},Xa=function(){var r=parseInt(document.body.getAttribute(_t)||"0",10);return isFinite(r)?r:0},Lu=function(){z.useEffect(function(){return document.body.setAttribute(_t,(Xa()+1).toString()),function(){var r=Xa()-1;r<=0?document.body.removeAttribute(_t):document.body.setAttribute(_t,r.toString())}},[])},ju=function(r){var e=r.noRelative,t=r.noImportant,a=r.gapMode,n=a===void 0?"margin":a;Lu();var s=z.useMemo(function(){return Ru(n)},[n]);return z.createElement(Eu,{styles:Bu(s,!e,n,t?"":"!important")})},Br=!1;if(typeof window<"u")try{var p0=Object.defineProperty({},"passive",{get:function(){return Br=!0,!0}});window.addEventListener("test",p0,p0),window.removeEventListener("test",p0,p0)}catch{Br=!1}var Pt=Br?{passive:!1}:!1,Iu=function(r){return r.tagName==="TEXTAREA"},Ds=function(r,e){if(!(r instanceof Element))return!1;var t=window.getComputedStyle(r);return t[e]!=="hidden"&&!(t.overflowY===t.overflowX&&!Iu(r)&&t[e]==="visible")},Pu=function(r){return Ds(r,"overflowY")},Ou=function(r){return Ds(r,"overflowX")},Ya=function(r,e){var t=e.ownerDocument,a=e;do{typeof ShadowRoot<"u"&&a instanceof ShadowRoot&&(a=a.host);var n=Rs(r,a);if(n){var s=Es(r,a),o=s[1],l=s[2];if(o>l)return!0}a=a.parentNode}while(a&&a!==t.body);return!1},Fu=function(r){var e=r.scrollTop,t=r.scrollHeight,a=r.clientHeight;return[e,t,a]},qu=function(r){var e=r.scrollLeft,t=r.scrollWidth,a=r.clientWidth;return[e,t,a]},Rs=function(r,e){return r==="v"?Pu(e):Ou(e)},Es=function(r,e){return r==="v"?Fu(e):qu(e)},Hu=function(r,e){return r==="h"&&e==="rtl"?-1:1},Vu=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,f=o>0,g=0,y=0;do{if(!l)break;var w=Es(r,l),M=w[0],k=w[1],N=w[2],A=k-N-s*M;(M||A)&&Rs(r,l)&&(g+=A,y+=M);var E=l.parentNode;l=E&&E.nodeType===Node.DOCUMENT_FRAGMENT_NODE?E.host:E}while(!u&&l!==document.body||u&&(e.contains(l)||e===l));return(f&&Math.abs(g)<1||!f&&Math.abs(y)<1)&&(d=!0),d},v0=function(r){return"changedTouches"in r?[r.changedTouches[0].clientX,r.changedTouches[0].clientY]:[0,0]},Za=function(r){return[r.deltaX,r.deltaY]},Ka=function(r){return r&&"current"in r?r.current:r},_u=function(r,e){return r[0]===e[0]&&r[1]===e[1]},Gu=function(r){return`
64
- .block-interactivity-`.concat(r,` {pointer-events: none;}
65
- .allow-interactivity-`).concat(r,` {pointer-events: all;}
66
- `)},Uu=0,Ot=[];function $u(r){var e=z.useRef([]),t=z.useRef([0,0]),a=z.useRef(),n=z.useState(Uu++)[0],s=z.useState(As)[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=hu([r.lockRef.current],(r.shards||[]).map(Ka),!0).filter(Boolean);return k.forEach(function(N){return N.classList.add("allow-interactivity-".concat(n))}),function(){document.body.classList.remove("block-interactivity-".concat(n)),k.forEach(function(N){return N.classList.remove("allow-interactivity-".concat(n))})}}},[r.inert,r.lockRef.current,r.shards]);var l=z.useCallback(function(k,N){if("touches"in k&&k.touches.length===2||k.type==="wheel"&&k.ctrlKey)return!o.current.allowPinchZoom;var A=v0(k),E=t.current,R="deltaX"in k?k.deltaX:E[0]-A[0],F="deltaY"in k?k.deltaY:E[1]-A[1],q,X=k.target,_=Math.abs(R)>Math.abs(F)?"h":"v";if("touches"in k&&_==="h"&&X.type==="range")return!1;var P=Ya(_,X);if(!P)return!0;if(P?q=_:(q=_==="v"?"h":"v",P=Ya(_,X)),!P)return!1;if(!a.current&&"changedTouches"in k&&(R||F)&&(a.current=q),!q)return!0;var Y=a.current||q;return Vu(Y,N,k,Y==="h"?R:F)},[]),u=z.useCallback(function(k){var N=k;if(!(!Ot.length||Ot[Ot.length-1]!==s)){var A="deltaY"in N?Za(N):v0(N),E=e.current.filter(function(q){return q.name===N.type&&(q.target===N.target||N.target===q.shadowParent)&&_u(q.delta,A)})[0];if(E&&E.should){N.cancelable&&N.preventDefault();return}if(!E){var R=(o.current.shards||[]).map(Ka).filter(Boolean).filter(function(q){return q.contains(N.target)}),F=R.length>0?l(N,R[0]):!o.current.noIsolation;F&&N.cancelable&&N.preventDefault()}}},[]),d=z.useCallback(function(k,N,A,E){var R={name:k,delta:N,target:A,should:E,shadowParent:Wu(A)};e.current.push(R),setTimeout(function(){e.current=e.current.filter(function(F){return F!==R})},1)},[]),f=z.useCallback(function(k){t.current=v0(k),a.current=void 0},[]),g=z.useCallback(function(k){d(k.type,Za(k),k.target,l(k,r.lockRef.current))},[]),y=z.useCallback(function(k){d(k.type,v0(k),k.target,l(k,r.lockRef.current))},[]);z.useEffect(function(){return Ot.push(s),r.setCallbacks({onScrollCapture:g,onWheelCapture:g,onTouchMoveCapture:y}),document.addEventListener("wheel",u,Pt),document.addEventListener("touchmove",u,Pt),document.addEventListener("touchstart",f,Pt),function(){Ot=Ot.filter(function(k){return k!==s}),document.removeEventListener("wheel",u,Pt),document.removeEventListener("touchmove",u,Pt),document.removeEventListener("touchstart",f,Pt)}},[]);var w=r.removeScrollBar,M=r.inert;return z.createElement(z.Fragment,null,M?z.createElement(s,{styles:Gu(n)}):null,w?z.createElement(ju,{noRelative:r.noRelative,gapMode:r.gapMode}):null)}function Wu(r){for(var e=null;r!==null;)r instanceof ShadowRoot&&(e=r.host,r=r.host),r=r.parentNode;return e}const Xu=Su(Ns,$u);var Bs=z.forwardRef(function(r,e){return z.createElement(V0,Je({},r,{ref:e,sideCar:Xu}))});Bs.classNames=V0.classNames;var Yu=function(r){if(typeof document>"u")return null;var e=Array.isArray(r)?r[0]:r;return e.ownerDocument.body},Ft=new WeakMap,g0=new WeakMap,b0={},ur=0,Ls=function(r){return r&&(r.host||Ls(r.parentNode))},Zu=function(r,e){return e.map(function(t){if(r.contains(t))return t;var a=Ls(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=Zu(e,Array.isArray(r)?r:[r]);b0[t]||(b0[t]=new WeakMap);var s=b0[t],o=[],l=new Set,u=new Set(n),d=function(g){!g||l.has(g)||(l.add(g),d(g.parentNode))};n.forEach(d);var f=function(g){!g||u.has(g)||Array.prototype.forEach.call(g.children,function(y){if(l.has(y))f(y);else try{var w=y.getAttribute(a),M=w!==null&&w!=="false",k=(Ft.get(y)||0)+1,N=(s.get(y)||0)+1;Ft.set(y,k),s.set(y,N),o.push(y),k===1&&M&&g0.set(y,!0),N===1&&y.setAttribute(t,"true"),M||y.setAttribute(a,"true")}catch(A){console.error("aria-hidden: cannot operate on ",y,A)}})};return f(e),l.clear(),ur++,function(){o.forEach(function(g){var y=Ft.get(g)-1,w=s.get(g)-1;Ft.set(g,y),s.set(g,w),y||(g0.has(g)||g.removeAttribute(a),g0.delete(g)),w||g.removeAttribute(t)}),ur--,ur||(Ft=new WeakMap,Ft=new WeakMap,g0=new WeakMap,b0={})}},Ju=function(r,e,t){t===void 0&&(t="data-aria-hidden");var a=Array.from(Array.isArray(r)?r:[r]),n=Yu(r);return n?(a.push.apply(a,Array.from(n.querySelectorAll("[aria-live], script"))),Ku(a,n,t,"aria-hidden")):function(){return null}},_0="Dialog",[js]=Ec(_0),[Qu,Ye]=js(_0),Is=r=>{const{__scopeDialog:e,children:t,open:a,defaultOpen:n,onOpenChange:s,modal:o=!0}=r,l=z.useRef(null),u=z.useRef(null),[d,f]=Pc({prop:a,defaultProp:n??!1,onChange:s,caller:_0});return h.jsx(Qu,{scope:e,triggerRef:l,contentRef:u,contentId:ar(),titleId:ar(),descriptionId:ar(),open:d,onOpenChange:f,onOpenToggle:z.useCallback(()=>f(g=>!g),[f]),modal:o,children:t})};Is.displayName=_0;var Ps="DialogTrigger",e2=z.forwardRef((r,e)=>{const{__scopeDialog:t,...a}=r,n=Ye(Ps,t),s=Lt(e,n.triggerRef);return h.jsx(tt.button,{type:"button","aria-haspopup":"dialog","aria-expanded":n.open,"aria-controls":n.contentId,"data-state":ta(n.open),...a,ref:s,onClick:wt(r.onClick,n.onOpenToggle)})});e2.displayName=Ps;var Qr="DialogPortal",[t2,Os]=js(Qr,{forceMount:void 0}),Fs=r=>{const{__scopeDialog:e,forceMount:t,children:a,container:n}=r,s=Ye(Qr,e);return h.jsx(t2,{scope:e,forceMount:t,children:z.Children.map(a,o=>h.jsx(H0,{present:t||s.open,children:h.jsx(Ms,{asChild:!0,container:n,children:o})}))})};Fs.displayName=Qr;var B0="DialogOverlay",qs=z.forwardRef((r,e)=>{const t=Os(B0,r.__scopeDialog),{forceMount:a=t.forceMount,...n}=r,s=Ye(B0,r.__scopeDialog);return s.modal?h.jsx(H0,{present:a||s.open,children:h.jsx(a2,{...n,ref:e})}):null});qs.displayName=B0;var r2=xs("DialogOverlay.RemoveScroll"),a2=z.forwardRef((r,e)=>{const{__scopeDialog:t,...a}=r,n=Ye(B0,t);return h.jsx(Bs,{as:r2,allowPinchZoom:!0,shards:[n.contentRef],children:h.jsx(tt.div,{"data-state":ta(n.open),...a,ref:e,style:{pointerEvents:"auto",...a.style}})})}),Et="DialogContent",Hs=z.forwardRef((r,e)=>{const t=Os(Et,r.__scopeDialog),{forceMount:a=t.forceMount,...n}=r,s=Ye(Et,r.__scopeDialog);return h.jsx(H0,{present:a||s.open,children:s.modal?h.jsx(n2,{...n,ref:e}):h.jsx(s2,{...n,ref:e})})});Hs.displayName=Et;var n2=z.forwardRef((r,e)=>{const t=Ye(Et,r.__scopeDialog),a=z.useRef(null),n=Lt(e,t.contentRef,a);return z.useEffect(()=>{const s=a.current;if(s)return Ju(s)},[]),h.jsx(Vs,{...r,ref:n,trapFocus:t.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:wt(r.onCloseAutoFocus,s=>{var o;s.preventDefault(),(o=t.triggerRef.current)==null||o.focus()}),onPointerDownOutside:wt(r.onPointerDownOutside,s=>{const o=s.detail.originalEvent,l=o.button===0&&o.ctrlKey===!0;(o.button===2||l)&&s.preventDefault()}),onFocusOutside:wt(r.onFocusOutside,s=>s.preventDefault())})}),s2=z.forwardRef((r,e)=>{const t=Ye(Et,r.__scopeDialog),a=z.useRef(!1),n=z.useRef(!1);return h.jsx(Vs,{...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()}})}),Vs=z.forwardRef((r,e)=>{const{__scopeDialog:t,trapFocus:a,onOpenAutoFocus:n,onCloseAutoFocus:s,...o}=r,l=Ye(Et,t),u=z.useRef(null),d=Lt(e,u);return mu(),h.jsxs(h.Fragment,{children:[h.jsx(ks,{asChild:!0,loop:!0,trapped:a,onMountAutoFocus:n,onUnmountAutoFocus:s,children:h.jsx(ws,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":ta(l.open),...o,ref:d,onDismiss:()=>l.onOpenChange(!1)})}),h.jsxs(h.Fragment,{children:[h.jsx(o2,{titleId:l.titleId}),h.jsx(l2,{contentRef:u,descriptionId:l.descriptionId})]})]})}),ea="DialogTitle",_s=z.forwardRef((r,e)=>{const{__scopeDialog:t,...a}=r,n=Ye(ea,t);return h.jsx(tt.h2,{id:n.titleId,...a,ref:e})});_s.displayName=ea;var Gs="DialogDescription",Us=z.forwardRef((r,e)=>{const{__scopeDialog:t,...a}=r,n=Ye(Gs,t);return h.jsx(tt.p,{id:n.descriptionId,...a,ref:e})});Us.displayName=Gs;var $s="DialogClose",Ws=z.forwardRef((r,e)=>{const{__scopeDialog:t,...a}=r,n=Ye($s,t);return h.jsx(tt.button,{type:"button",...a,ref:e,onClick:wt(r.onClick,()=>n.onOpenChange(!1))})});Ws.displayName=$s;function ta(r){return r?"open":"closed"}var Xs="DialogTitleWarning",[Md,Ys]=Rc(Xs,{contentName:Et,titleName:ea,docsSlug:"dialog"}),o2=({titleId:r})=>{const e=Ys(Xs),t=`\`${e.contentName}\` requires a \`${e.titleName}\` for the component to be accessible for screen reader users.
63
+ `)},It=function(){var e=parseInt(document.body.getAttribute(le)||"0",10);return isFinite(e)?e:0},Ys=function(){d.useEffect(function(){return document.body.setAttribute(le,(It()+1).toString()),function(){var e=It()-1;e<=0?document.body.removeAttribute(le):document.body.setAttribute(le,e.toString())}},[])},Js=function(e){var t=e.noRelative,r=e.noImportant,a=e.gapMode,s=a===void 0?"margin":a;Ys();var i=d.useMemo(function(){return Ks(s)},[s]);return d.createElement(qs,{styles:Xs(i,!t,s,r?"":"!important")})},rt=!1;if(typeof window<"u")try{var je=Object.defineProperty({},"passive",{get:function(){return rt=!0,!0}});window.addEventListener("test",je,je),window.removeEventListener("test",je,je)}catch{rt=!1}var ne=rt?{passive:!1}:!1,Qs=function(e){return e.tagName==="TEXTAREA"},Sr=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!Qs(e)&&r[t]==="visible")},ei=function(e){return Sr(e,"overflowY")},ti=function(e){return Sr(e,"overflowX")},At=function(e,t){var r=t.ownerDocument,a=t;do{typeof ShadowRoot<"u"&&a instanceof ShadowRoot&&(a=a.host);var s=Nr(e,a);if(s){var i=jr(e,a),u=i[1],c=i[2];if(u>c)return!0}a=a.parentNode}while(a&&a!==r.body);return!1},ri=function(e){var t=e.scrollTop,r=e.scrollHeight,a=e.clientHeight;return[t,r,a]},ai=function(e){var t=e.scrollLeft,r=e.scrollWidth,a=e.clientWidth;return[t,r,a]},Nr=function(e,t){return e==="v"?ei(t):ti(t)},jr=function(e,t){return e==="v"?ri(t):ai(t)},ni=function(e,t){return e==="h"&&t==="rtl"?-1:1},oi=function(e,t,r,a,s){var i=ni(e,window.getComputedStyle(t).direction),u=i*a,c=r.target,m=t.contains(c),f=!1,v=u>0,p=0,x=0;do{if(!c)break;var y=jr(e,c),S=y[0],g=y[1],C=y[2],w=g-C-i*S;(S||w)&&Nr(e,c)&&(p+=w,x+=S);var j=c.parentNode;c=j&&j.nodeType===Node.DOCUMENT_FRAGMENT_NODE?j.host:j}while(!m&&c!==document.body||m&&(t.contains(c)||t===c));return(v&&Math.abs(p)<1||!v&&Math.abs(x)<1)&&(f=!0),f},ke=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Ot=function(e){return[e.deltaX,e.deltaY]},Vt=function(e){return e&&"current"in e?e.current:e},si=function(e,t){return e[0]===t[0]&&e[1]===t[1]},ii=function(e){return`
64
+ .block-interactivity-`.concat(e,` {pointer-events: none;}
65
+ .allow-interactivity-`).concat(e,` {pointer-events: all;}
66
+ `)},li=0,oe=[];function ci(e){var t=d.useRef([]),r=d.useRef([0,0]),a=d.useRef(),s=d.useState(li++)[0],i=d.useState(wr)[0],u=d.useRef(e);d.useEffect(function(){u.current=e},[e]),d.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(s));var g=Ds([e.lockRef.current],(e.shards||[]).map(Vt),!0).filter(Boolean);return g.forEach(function(C){return C.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),g.forEach(function(C){return C.classList.remove("allow-interactivity-".concat(s))})}}},[e.inert,e.lockRef.current,e.shards]);var c=d.useCallback(function(g,C){if("touches"in g&&g.touches.length===2||g.type==="wheel"&&g.ctrlKey)return!u.current.allowPinchZoom;var w=ke(g),j=r.current,N="deltaX"in g?g.deltaX:j[0]-w[0],k="deltaY"in g?g.deltaY:j[1]-w[1],E,D=g.target,L=Math.abs(N)>Math.abs(k)?"h":"v";if("touches"in g&&L==="h"&&D.type==="range")return!1;var P=At(L,D);if(!P)return!0;if(P?E=L:(E=L==="v"?"h":"v",P=At(L,D)),!P)return!1;if(!a.current&&"changedTouches"in g&&(N||k)&&(a.current=E),!E)return!0;var R=a.current||E;return oi(R,C,g,R==="h"?N:k)},[]),m=d.useCallback(function(g){var C=g;if(!(!oe.length||oe[oe.length-1]!==i)){var w="deltaY"in C?Ot(C):ke(C),j=t.current.filter(function(E){return E.name===C.type&&(E.target===C.target||C.target===E.shadowParent)&&si(E.delta,w)})[0];if(j&&j.should){C.cancelable&&C.preventDefault();return}if(!j){var N=(u.current.shards||[]).map(Vt).filter(Boolean).filter(function(E){return E.contains(C.target)}),k=N.length>0?c(C,N[0]):!u.current.noIsolation;k&&C.cancelable&&C.preventDefault()}}},[]),f=d.useCallback(function(g,C,w,j){var N={name:g,delta:C,target:w,should:j,shadowParent:ui(w)};t.current.push(N),setTimeout(function(){t.current=t.current.filter(function(k){return k!==N})},1)},[]),v=d.useCallback(function(g){r.current=ke(g),a.current=void 0},[]),p=d.useCallback(function(g){f(g.type,Ot(g),g.target,c(g,e.lockRef.current))},[]),x=d.useCallback(function(g){f(g.type,ke(g),g.target,c(g,e.lockRef.current))},[]);d.useEffect(function(){return oe.push(i),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:x}),document.addEventListener("wheel",m,ne),document.addEventListener("touchmove",m,ne),document.addEventListener("touchstart",v,ne),function(){oe=oe.filter(function(g){return g!==i}),document.removeEventListener("wheel",m,ne),document.removeEventListener("touchmove",m,ne),document.removeEventListener("touchstart",v,ne)}},[]);var y=e.removeScrollBar,S=e.inert;return d.createElement(d.Fragment,null,S?d.createElement(i,{styles:ii(s)}):null,y?d.createElement(Js,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function ui(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const di=_s(Cr,ci);var kr=d.forwardRef(function(e,t){return d.createElement(Oe,_({},e,{ref:t,sideCar:di}))});kr.classNames=Oe.classNames;var fi=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},se=new WeakMap,Le=new WeakMap,Ee={},Ye=0,Lr=function(e){return e&&(e.host||Lr(e.parentNode))},vi=function(e,t){return t.map(function(r){if(e.contains(r))return r;var a=Lr(r);return a&&e.contains(a)?a:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},mi=function(e,t,r,a){var s=vi(t,Array.isArray(e)?e:[e]);Ee[r]||(Ee[r]=new WeakMap);var i=Ee[r],u=[],c=new Set,m=new Set(s),f=function(p){!p||c.has(p)||(c.add(p),f(p.parentNode))};s.forEach(f);var v=function(p){!p||m.has(p)||Array.prototype.forEach.call(p.children,function(x){if(c.has(x))v(x);else try{var y=x.getAttribute(a),S=y!==null&&y!=="false",g=(se.get(x)||0)+1,C=(i.get(x)||0)+1;se.set(x,g),i.set(x,C),u.push(x),g===1&&S&&Le.set(x,!0),C===1&&x.setAttribute(r,"true"),S||x.setAttribute(a,"true")}catch(w){console.error("aria-hidden: cannot operate on ",x,w)}})};return v(t),c.clear(),Ye++,function(){u.forEach(function(p){var x=se.get(p)-1,y=i.get(p)-1;se.set(p,x),i.set(p,y),x||(Le.has(p)||p.removeAttribute(a),Le.delete(p)),y||p.removeAttribute(r)}),Ye--,Ye||(se=new WeakMap,se=new WeakMap,Le=new WeakMap,Ee={})}},pi=function(e,t,r){r===void 0&&(r="data-aria-hidden");var a=Array.from(Array.isArray(e)?e:[e]),s=fi(e);return s?(a.push.apply(a,Array.from(s.querySelectorAll("[aria-live], script"))),mi(a,s,r,"aria-hidden")):function(){return null}},Ve="Dialog",[Er]=qo(Ve),[gi,O]=Er(Ve),Tr=e=>{const{__scopeDialog:t,children:r,open:a,defaultOpen:s,onOpenChange:i,modal:u=!0}=e,c=d.useRef(null),m=d.useRef(null),[f,v]=es({prop:a,defaultProp:s??!1,onChange:i,caller:Ve});return n.jsx(gi,{scope:t,triggerRef:c,contentRef:m,contentId:We(),titleId:We(),descriptionId:We(),open:f,onOpenChange:v,onOpenToggle:d.useCallback(()=>v(p=>!p),[v]),modal:u,children:r})};Tr.displayName=Ve;var Dr="DialogTrigger",hi=d.forwardRef((e,t)=>{const{__scopeDialog:r,...a}=e,s=O(Dr,r),i=re(t,s.triggerRef);return n.jsx(F.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":mt(s.open),...a,ref:i,onClick:K(e.onClick,s.onOpenToggle)})});hi.displayName=Dr;var ft="DialogPortal",[xi,Rr]=Er(ft,{forceMount:void 0}),Pr=e=>{const{__scopeDialog:t,forceMount:r,children:a,container:s}=e,i=O(ft,t);return n.jsx(xi,{scope:t,forceMount:r,children:d.Children.map(a,u=>n.jsx(Ae,{present:r||i.open,children:n.jsx(xr,{asChild:!0,container:s,children:u})}))})};Pr.displayName=ft;var Pe="DialogOverlay",Mr=d.forwardRef((e,t)=>{const r=Rr(Pe,e.__scopeDialog),{forceMount:a=r.forceMount,...s}=e,i=O(Pe,e.__scopeDialog);return i.modal?n.jsx(Ae,{present:a||i.open,children:n.jsx(yi,{...s,ref:t})}):null});Mr.displayName=Pe;var bi=fr("DialogOverlay.RemoveScroll"),yi=d.forwardRef((e,t)=>{const{__scopeDialog:r,...a}=e,s=O(Pe,r);return n.jsx(kr,{as:bi,allowPinchZoom:!0,shards:[s.contentRef],children:n.jsx(F.div,{"data-state":mt(s.open),...a,ref:t,style:{pointerEvents:"auto",...a.style}})})}),ee="DialogContent",Ir=d.forwardRef((e,t)=>{const r=Rr(ee,e.__scopeDialog),{forceMount:a=r.forceMount,...s}=e,i=O(ee,e.__scopeDialog);return n.jsx(Ae,{present:a||i.open,children:i.modal?n.jsx(Ci,{...s,ref:t}):n.jsx(wi,{...s,ref:t})})});Ir.displayName=ee;var Ci=d.forwardRef((e,t)=>{const r=O(ee,e.__scopeDialog),a=d.useRef(null),s=re(t,r.contentRef,a);return d.useEffect(()=>{const i=a.current;if(i)return pi(i)},[]),n.jsx(Ar,{...e,ref:s,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:K(e.onCloseAutoFocus,i=>{var u;i.preventDefault(),(u=r.triggerRef.current)==null||u.focus()}),onPointerDownOutside:K(e.onPointerDownOutside,i=>{const u=i.detail.originalEvent,c=u.button===0&&u.ctrlKey===!0;(u.button===2||c)&&i.preventDefault()}),onFocusOutside:K(e.onFocusOutside,i=>i.preventDefault())})}),wi=d.forwardRef((e,t)=>{const r=O(ee,e.__scopeDialog),a=d.useRef(!1),s=d.useRef(!1);return n.jsx(Ar,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var u,c;(u=e.onCloseAutoFocus)==null||u.call(e,i),i.defaultPrevented||(a.current||(c=r.triggerRef.current)==null||c.focus(),i.preventDefault()),a.current=!1,s.current=!1},onInteractOutside:i=>{var m,f;(m=e.onInteractOutside)==null||m.call(e,i),i.defaultPrevented||(a.current=!0,i.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const u=i.target;((f=r.triggerRef.current)==null?void 0:f.contains(u))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&s.current&&i.preventDefault()}})}),Ar=d.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:a,onOpenAutoFocus:s,onCloseAutoFocus:i,...u}=e,c=O(ee,r),m=d.useRef(null),f=re(t,m);return Ts(),n.jsxs(n.Fragment,{children:[n.jsx(gr,{asChild:!0,loop:!0,trapped:a,onMountAutoFocus:s,onUnmountAutoFocus:i,children:n.jsx(mr,{role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":mt(c.open),...u,ref:f,onDismiss:()=>c.onOpenChange(!1)})}),n.jsxs(n.Fragment,{children:[n.jsx(Si,{titleId:c.titleId}),n.jsx(ji,{contentRef:m,descriptionId:c.descriptionId})]})]})}),vt="DialogTitle",Or=d.forwardRef((e,t)=>{const{__scopeDialog:r,...a}=e,s=O(vt,r);return n.jsx(F.h2,{id:s.titleId,...a,ref:t})});Or.displayName=vt;var Vr="DialogDescription",zr=d.forwardRef((e,t)=>{const{__scopeDialog:r,...a}=e,s=O(Vr,r);return n.jsx(F.p,{id:s.descriptionId,...a,ref:t})});zr.displayName=Vr;var _r="DialogClose",Fr=d.forwardRef((e,t)=>{const{__scopeDialog:r,...a}=e,s=O(_r,r);return n.jsx(F.button,{type:"button",...a,ref:t,onClick:K(e.onClick,()=>s.onOpenChange(!1))})});Fr.displayName=_r;function mt(e){return e?"open":"closed"}var Br="DialogTitleWarning",[Fi,Hr]=Ko(Br,{contentName:ee,titleName:vt,docsSlug:"dialog"}),Si=({titleId:e})=>{const t=Hr(Br),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
67
67
 
68
- If you want to hide the \`${e.titleName}\`, you can wrap it with our VisuallyHidden component.
68
+ If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
69
69
 
70
- For more information, see https://radix-ui.com/primitives/docs/components/${e.docsSlug}`;return z.useEffect(()=>{r&&(document.getElementById(r)||console.error(t))},[t,r]),null},i2="DialogDescriptionWarning",l2=({contentRef:r,descriptionId:e})=>{const a=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Ys(i2).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},c2=Is,u2=Fs,d2=qs,m2=Hs,Ja=_s,Qa=Us,h2=Ws,f2=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"}),p2="VisuallyHidden",Zs=z.forwardRef((r,e)=>h.jsx(tt.span,{...r,ref:e,style:{...f2,...r.style}}));Zs.displayName=p2;var en=Zs;const v2=T("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"),g2=T("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"}}),b2=T("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"),x2=T("!font-[Inter,system-ui,-apple-system,sans-serif] font-medium text-[1rem] leading-[1.5rem] text-[var(--color-blue-1000)] w-full"),y2=T("font-[Inter,system-ui,-apple-system,sans-serif] font-normal text-[0.875rem] leading-[1.25rem] text-[var(--color-gray-800)] w-full"),w2=T("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"}}),S2=T("flex gap-2 items-start w-full"),Ks=({open:r,onOpenChange:e,title:t,description:a,showCloseButton:n=!0,closeIcon:s,children:o,primaryAction:l,secondaryAction:u,closeOnClickOutside:d=!0,closeOnEsc:f=!0,onClose:g,className:y,overlayClassName:w,contentClassName:M,footerClassName:k,size:N="md"})=>{const A=I.useRef(null),E=I.useRef(null),R=I.useCallback(Y=>{e(Y),Y||g==null||g()},[e,g]),F=I.useCallback(async()=>{l!=null&&l.onClick&&await l.onClick()},[l]),q=I.useCallback(async()=>{u!=null&&u.onClick&&await u.onClick()},[u]),X=I.useCallback(Y=>{f||Y.preventDefault()},[f]),_=I.useCallback(Y=>{d||Y.preventDefault()},[d]),P=l||u;return h.jsx(c2,{open:r,onOpenChange:R,children:h.jsxs(u2,{children:[h.jsx(d2,{className:H(v2(),w)}),h.jsxs(m2,{className:H(g2({size:N}),y),onEscapeKeyDown:X,onPointerDownOutside:_,children:[t?h.jsx(Ja,{className:x2(),children:t}):h.jsx(en,{children:h.jsx(Ja,{children:"Modal dialog"})}),a?h.jsx(Qa,{className:y2(),children:a}):h.jsx(en,{children:h.jsx(Qa,{children:"Modal content"})}),n&&h.jsx(h2,{asChild:!0,children:h.jsx("button",{className:b2(),"aria-label":"Close modal",children:s||h.jsx(p.X,{size:16,color:"currentColor"})})}),o&&h.jsx("div",{className:H(w2({size:N}),M),children:o}),P&&h.jsxs("div",{className:H(S2(),k),children:[u&&h.jsx(Ut,{ref:E,variant:u.variant||"secondary",size:"small",onClick:q,disabled:u.disabled||u.loading,startIcon:u.icon,className:"flex-1",children:u.label}),l&&h.jsx(Ut,{ref:A,variant:l.variant||"primary",size:"small",onClick:F,disabled:l.disabled||l.loading,startIcon:l.icon,className:"flex-1",children:l.label})]})]})]})})};Ks.displayName="Modal";const k2=T(["markdown-renderer","max-w-none","break-words","leading-relaxed","font-[Inter,system-ui,-apple-system,sans-serif]","[&>*]:my-2","[&>*+*]:mt-5","[&>h1+*]:mt-6","[&>h2+*]:mt-5","[&>h3+*]:mt-4","[&>h4+*]:mt-4","[&>p+*]:mt-5","[&>ul+*]:mt-5","[&>ol+*]:mt-5","[&>blockquote+*]:mt-8","[&>*+blockquote]:mt-7","[&>pre+*]:mt-6","[&>hr+*]:mt-8","[&>div+*]:mt-6","[&>*+div]:mt-6","[&>*+pre]:mt-6","[&>p]:mb-5","[&>ul]:mb-5","[&>ol]:mb-5","[&>blockquote]:mb-8","[&>pre]:mb-6","[&>h1]:mb-5","[&>h2]:mb-4","[&>h3]:mb-3","[&>h4]:mb-3","[&>hr]:mb-8","[&>div]:mb-6","[&>*:first-child]:mt-0","[&>*:last-child]:mb-0","[&_h1]:font-[Signifier,serif]","[&_h1]:text-[1.5rem]","[&_h1]:leading-[2.5rem]","[&_h1]:font-light","[&_h1]:tracking-[-0.25px]","[&_h2]:font-[Signifier,serif]","[&_h2]:text-[1.25rem]","[&_h2]:leading-[2.25rem]","[&_h2]:font-light","[&_h3]:font-[Signifier,serif]","[&_h3]:text-[1.125rem]","[&_h3]:leading-[2rem]","[&_h3]:font-light","[&_h4]:font-[Signifier,serif]","[&_h4]:text-[1rem]","[&_h4]:leading-[1.875rem]","[&_h4]:font-light","[&_h5]:font-[Signifier,serif]","[&_h5]:text-[0.9375rem]","[&_h5]:leading-[1.75rem]","[&_h5]:font-light","[&_h6]:font-[Signifier,serif]","[&_h6]:text-[0.875rem]","[&_h6]:leading-[1.625rem]","[&_h6]:font-light","[&_p]:font-[Inter,system-ui,-apple-system,sans-serif]","[&_p]:text-[length:var(--font-size-small)]","[&_p]:leading-[1.875]","[&_strong]:font-medium","[&_code]:font-[Roboto_Mono,monospace]","[&_code]:bg-[var(--color-gray-100)]","[&_code]:px-2","[&_code]:py-1","[&_code]:rounded","[&_code]:text-[length:var(--font-size-tiny)]","[&_pre]:font-[Roboto_Mono,monospace]","[&_pre]:bg-[var(--color-gray-50)]","[&_pre]:border","[&_pre]:border-[var(--color-gray-200)]","[&_pre]:rounded-lg","[&_pre]:text-[length:var(--font-size-tiny)]","[&_pre]:leading-[1.75]","[&_pre]:p-5","[&_pre]:overflow-x-auto","[&_pre_code]:bg-transparent","[&_pre_code]:p-0","[&_blockquote]:font-[Inter,system-ui,-apple-system,sans-serif]","[&_blockquote]:border-l-4","[&_blockquote]:border-[var(--color-gray-300)]","[&_blockquote]:bg-[var(--color-gray-50)]","[&_blockquote]:py-4","[&_blockquote]:px-6","[&_blockquote]:mt-7","[&_blockquote]:mb-8","[&_blockquote]:rounded-r","[&_blockquote]:text-[0.875rem]","[&_blockquote]:leading-[1.75]","[&_ul]:font-[Inter,system-ui,-apple-system,sans-serif]","[&_ul]:pl-6","[&_ul]:list-disc","[&_ul]:list-outside","[&_ol]:font-[Inter,system-ui,-apple-system,sans-serif]","[&_ol]:pl-6","[&_ol]:list-decimal","[&_ol]:list-outside","[&_li]:text-[length:var(--font-size-small)]","[&_li]:leading-[1.875]","[&_li]:mb-3","[&_li]:pl-2","[&_ul_ul]:pl-4","[&_ul_ul]:list-[circle]","[&_ol_ol]:pl-4","[&_ol_ol]:list-[lower-alpha]","[&_ul_ul_ul]:list-[square]","[&_a]:no-underline","[&_a:hover]:underline","[&_a]:font-medium","[&_table]:w-full","[&_table]:border-collapse","[&_table]:border","[&_table]:border-[var(--color-gray-200)]","[&_table]:bg-white","[&_table]:shadow-sm","[&_thead]:bg-[var(--color-gray-50)]","[&_thead]:border-b-2","[&_thead]:border-[var(--color-gray-200)]","[&_tbody_tr]:border-b","[&_tbody_tr]:border-[var(--color-gray-200)]","[&_tbody_tr:last-child]:border-b-0","[&_tbody_tr:hover]:bg-[var(--color-gray-50)]","[&_td]:text-[length:var(--font-size-small)]","[&_td]:leading-[var(--line-height-small)]","[&_td]:border-r","[&_td]:border-[var(--color-gray-200)]","[&_td]:p-3","[&_td:last-child]:border-r-0","[&_td]:align-top","[&_th]:text-[length:var(--font-size-small)]","[&_th]:leading-[var(--line-height-small)]","[&_th]:font-medium","[&_th]:border-r","[&_th]:border-[var(--color-gray-200)]","[&_th]:p-3","[&_th:last-child]:border-r-0","[&_th]:text-left","[&_th]:bg-[var(--color-gray-50)]","[&_hr]:border-[var(--color-gray-200)]"],{variants:{size:{small:["[&_p]:text-[0.875rem]","[&_p]:leading-[1.75]","[&_li]:text-[0.875rem]","[&_li]:leading-[1.75]","[&_li]:mb-3","[&_code]:text-[0.8125rem]","[&_h3]:text-[1rem]","[&_h3]:leading-[1.75rem]","[&_h4]:text-[0.9375rem]","[&_h4]:leading-[1.625rem]","[&>*+*]:mt-4","[&>p]:mb-4","[&>ul]:mb-4","[&>ol]:mb-4","[&>h3]:mb-4","[&>h4]:mb-4"],medium:[],large:["[&_p]:text-[1.125rem]","[&_p]:leading-[2]","[&_li]:text-[1.125rem]","[&_li]:leading-[2]","[&_code]:text-[1rem]","[&>*+*]:mt-8","[&>p]:mb-8","[&>ul]:mb-8","[&>ol]:mb-8"]},variant:{default:["text-[var(--color-gray-1000)]","[&_h1]:text-[var(--color-gray-1000)]","[&_h2]:text-[var(--color-gray-1000)]","[&_h3]:text-[var(--color-gray-1000)]","[&_h4]:text-[var(--color-gray-1000)]","[&_p]:text-[var(--color-gray-1000)]","[&_li]:text-[var(--color-gray-1000)]","[&_strong]:text-[var(--color-gray-1000)]","[&_em]:text-[var(--color-gray-1000)]","[&_code]:text-[var(--color-gray-800)]","[&_blockquote]:text-[var(--color-gray-800)]","[&_a]:text-[var(--color-blue-800)]","[&_table]:text-[var(--color-gray-1000)]","[&_th]:text-[var(--color-gray-1000)]"],muted:["text-[var(--color-gray-600)]","[&_h1]:text-[var(--color-gray-600)]","[&_h2]:text-[var(--color-gray-600)]","[&_h3]:text-[var(--color-gray-600)]","[&_h4]:text-[var(--color-gray-600)]","[&_p]:text-[var(--color-gray-600)]","[&_li]:text-[var(--color-gray-600)]","[&_strong]:text-[var(--color-gray-600)]","[&_em]:text-[var(--color-gray-600)]","[&_code]:text-[var(--color-gray-600)]","[&_blockquote]:text-[var(--color-gray-600)]","[&_a]:text-[var(--color-blue-800)]","[&_table]:text-[var(--color-gray-600)]","[&_th]:text-[var(--color-gray-600)]"],primary:["text-[var(--color-blue-1000)]","[&_h1]:text-[var(--color-blue-1000)]","[&_h2]:text-[var(--color-blue-1000)]","[&_h3]:text-[var(--color-blue-1000)]","[&_h4]:text-[var(--color-blue-1000)]","[&_p]:text-[var(--color-blue-1000)]","[&_li]:text-[var(--color-blue-1000)]","[&_strong]:text-[var(--color-blue-1000)]","[&_em]:text-[var(--color-blue-1000)]","[&_code]:text-[var(--color-gray-800)]","[&_blockquote]:text-[var(--color-gray-800)]","[&_a]:text-[var(--color-blue-800)]","[&_table]:text-[var(--color-blue-1000)]","[&_th]:text-[var(--color-blue-1000)]"]}},defaultVariants:{size:"medium",variant:"default"}});class Ie{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 Ie(e.loc.lexer,e.loc.start,t.loc.end):e&&e.loc}}class Ve{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 Ve(t,Ie.range(this,e))}}class L{constructor(e,t){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;var a="KaTeX parse error: "+e,n,s,o=t&&t.loc;if(o&&o.start<=o.end){var l=o.lexer.input;n=o.start,s=o.end,n===l.length?a+=" at end of input: ":a+=" at position "+(n+1)+": ";var u=l.slice(n,s).replace(/[^]/g,"$&̲"),d;n>15?d="…"+l.slice(n-15,n):d=l.slice(0,n);var f;s+15<l.length?f=l.slice(s,s+15)+"…":f=l.slice(s),a+=d+u+f}var g=new Error(a);return g.name="ParseError",g.__proto__=L.prototype,g.position=n,n!=null&&s!=null&&(g.length=s-n),g.rawMessage=e,g}}L.prototype.__proto__=Error.prototype;var C2=function(e,t){return e===void 0?t:e},M2=/([A-Z])/g,T2=function(e){return e.replace(M2,"-$1").toLowerCase()},z2={"&":"&amp;",">":"&gt;","<":"&lt;",'"':"&quot;","'":"&#x27;"},N2=/[&><"']/g;function A2(r){return String(r).replace(N2,e=>z2[e])}var Js=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},D2=function(e){var t=Js(e);return t.type==="mathord"||t.type==="textord"||t.type==="atom"},R2=function(e){if(!e)throw new Error("Expected non-null, but got "+String(e));return e},E2=function(e){var t=/^[\x00-\x20]*([^\\/#?]*?)(:|&#0*58|&#x0*3a|&colon)/i.exec(e);return t?t[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(t[1])?null:t[1].toLowerCase():"_relative"},ae={deflt:C2,escape:A2,hyphenate:T2,getBaseElem:Js,isCharacterBox:D2,protocolFromUrl:E2},D0={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 B2(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 ra{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 D0)if(D0.hasOwnProperty(t)){var a=D0[t];this[t]=e[t]!==void 0?a.processor?a.processor(e[t]):e[t]:B2(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 gt{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 Ke[L2[this.id]]}sub(){return Ke[j2[this.id]]}fracNum(){return Ke[I2[this.id]]}fracDen(){return Ke[P2[this.id]]}cramp(){return Ke[O2[this.id]]}text(){return Ke[F2[this.id]]}isTight(){return this.size>=2}}var aa=0,L0=1,Gt=2,ut=3,a0=4,Ue=5,Wt=6,Re=7,Ke=[new gt(aa,0,!1),new gt(L0,0,!0),new gt(Gt,1,!1),new gt(ut,1,!0),new gt(a0,2,!1),new gt(Ue,2,!0),new gt(Wt,3,!1),new gt(Re,3,!0)],L2=[a0,Ue,a0,Ue,Wt,Re,Wt,Re],j2=[Ue,Ue,Ue,Ue,Re,Re,Re,Re],I2=[Gt,ut,a0,Ue,Wt,Re,Wt,Re],P2=[ut,ut,Ue,Ue,Re,Re,Re,Re],O2=[L0,L0,ut,ut,Ue,Ue,Re,Re],F2=[aa,L0,Gt,ut,Gt,ut,Gt,ut],K={DISPLAY:Ke[aa],TEXT:Ke[Gt],SCRIPT:Ke[a0],SCRIPTSCRIPT:Ke[Wt]},Lr=[{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 q2(r){for(var e=0;e<Lr.length;e++)for(var t=Lr[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 R0=[];Lr.forEach(r=>r.blocks.forEach(e=>R0.push(...e)));function Qs(r){for(var e=0;e<R0.length;e+=2)if(r>=R0[e]&&r<=R0[e+1])return!0;return!1}var qt=80,H2=function(e,t){return"M95,"+(622+e+t)+`
71
- c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
72
- c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
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
74
- s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429
75
- c69,-144,104.5,-217.7,106.5,-221
76
- l`+e/2.075+" -"+e+`
77
- c5.3,-9.3,12,-14,20,-14
78
- H400000v`+(40+e)+`H845.2724
79
- s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
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"},V2=function(e,t){return"M263,"+(601+e+t)+`c0.7,0,18,39.7,52,119
82
- c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
83
- c340,-704.7,510.7,-1060.3,512,-1067
84
- l`+e/2.084+" -"+e+`
85
- c4.7,-7.3,11,-11,19,-11
86
- H40000v`+(40+e)+`H1012.3
87
- s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232
88
- 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
- s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
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"},_2=function(e,t){return"M983 "+(10+e+t)+`
92
- l`+e/3.13+" -"+e+`
93
- c4,-6.7,10,-10,18,-10 H400000v`+(40+e)+`
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
95
- s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744
96
- c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30
97
- c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722
98
- c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5
99
- c53.7,-170.3,84.5,-266.8,92.5,-289.5z
100
- M`+(1001+e)+" "+t+"h400000v"+(40+e)+"h-400000z"},G2=function(e,t){return"M424,"+(2398+e+t)+`
101
- c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514
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
- s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121
104
- s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081
105
- l`+e/4.223+" -"+e+`c4,-6.7,10,-10,18,-10 H400000
106
- v`+(40+e)+`H1014.6
107
- s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185
108
- c-2,6,-10,9,-24,9
109
- c-8,0,-12,-0.7,-12,-2z M`+(1001+e)+" "+t+`
110
- h400000v`+(40+e)+"h-400000z"},U2=function(e,t){return"M473,"+(2713+e+t)+`
111
- c339.3,-1799.3,509.3,-2700,510,-2702 l`+e/5.298+" -"+e+`
112
- c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+e)+`H1017.7
113
- s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9
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
- 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
- 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"},$2=function(e){var t=e/2;return"M400000 "+e+" H0 L"+t+" 0 l65 45 L145 "+(e-80)+" H400000z"},W2=function(e,t,a){var n=a-54-t-e;return"M702 "+(e+t)+"H400000"+(40+e)+`
118
- H742v`+n+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1
119
- h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170
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"},X2=function(e,t,a){t=1e3*t;var n="";switch(e){case"sqrtMain":n=H2(t,qt);break;case"sqrtSize1":n=V2(t,qt);break;case"sqrtSize2":n=_2(t,qt);break;case"sqrtSize3":n=G2(t,qt);break;case"sqrtSize4":n=U2(t,qt);break;case"sqrtTall":n=W2(t,qt,a)}return n},Y2=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""}},tn={doubleleftarrow:`M262 157
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
- 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
- 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
125
- c2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5
126
- 157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87
127
- -86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7
128
- -2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z
129
- m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l
130
- -10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5
131
- 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-14 57.3-25 88
132
- -33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68
133
- -17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18
134
- -13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782
135
- c-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3
136
- -107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120
137
- 135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8
138
- -5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247
139
- c-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208
140
- 490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3
141
- 1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202
142
- l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117
143
- -45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7
144
- 5-6 9-10 13-.7 1-7.3 1-20 1H6z`,leftbraceunder:`M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13
145
- 35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688
146
- 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7
147
- -331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80
148
- H435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0
149
- 435 0h399565z`,leftgroupunder:`M400000 262
150
- H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219
151
- 435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3
152
- -3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5
153
- -18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7
154
- -196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z`,leftharpoonplus:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5
155
- 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3
156
- -4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7
157
- -10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z
158
- m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333
159
- 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5
160
- 1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667
161
- -152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z`,leftharpoondownplus:`M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12
162
- 10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7
163
- -2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0
164
- v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5
165
- -83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3
166
- -68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21
167
- 71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:`M40 281 V428 H0 V94 H40 V241 H400000 v40z
168
- M40 281 V428 H0 V94 H40 V241 H400000 v40z`,leftmapsto:`M40 281 V448H0V74H40V241H400000v40z
169
- M40 281 V448H0V74H40V241H400000v40z`,leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23
170
- -.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8
171
- c28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3
172
- 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:`M0 50 h400000 v40H0z m0 194h40000v40H0z
173
- M0 50 h400000 v40H0z m0 194h40000v40H0z`,midbrace:`M200428 334
174
- c-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14
175
- -53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7
176
- 311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11
177
- 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214
178
- c100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14
179
- 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3
180
- 11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0
181
- -5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z`,oiintSize1:`M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6
182
- -320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z
183
- m368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8
184
- 60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z`,oiintSize2:`M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8
185
- -451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z
186
- m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2
187
- c0 110 84 276 504 276s502.4-166 502.4-276z`,oiiintSize1:`M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6
188
- -480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z
189
- m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0
190
- 85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z`,oiiintSize2:`M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8
191
- -707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z
192
- m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1
193
- c0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z`,rightarrow:`M0 241v40h399891c-47.3 35.3-84 78-110 128
194
- -16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20
195
- 11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7
196
- 39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85
197
- -40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
198
- -12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
199
- 151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l
200
- -6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5
201
- s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1
202
- c124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z`,rightbraceunder:`M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3
203
- 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237
204
- -174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z`,rightgroup:`M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0
205
- 3-1 3-3v-38c-76-158-257-219-435-219H0z`,rightgroupunder:`M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18
206
- 0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z`,rightharpoon:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3
207
- -3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2
208
- -10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58
209
- 69.2 92 94.5zm0 0v40h399900v-40z`,rightharpoonplus:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11
210
- -18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7
211
- 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z
212
- m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown:`M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8
213
- 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5
214
- -7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95
215
- -27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z`,rightharpoondownplus:`M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8
216
- 15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3
217
- 8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3
218
- -64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z
219
- m0-194v40h400000v-40zm0 0v40h400000v-40z`,righthook:`M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3
220
- 15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0
221
- -13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21
222
- 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:`M399960 241 V94 h40 V428 h-40 V281 H0 v-40z
223
- M399960 241 V94 h40 V428 h-40 V281 H0 v-40z`,rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23
224
- 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32
225
- -52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142
226
- -167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40
227
- 115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69
228
- -70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3
229
- -40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19
230
- -37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101
231
- 10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z`,twoheadrightarrow:`M400000 167
232
- c-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3
233
- 41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42
234
- 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333
235
- -19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70
236
- 101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z`,tilde1:`M200 55.538c-77 0-168 73.953-177 73.953-3 0-7
237
- -2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0
238
- 114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0
239
- 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128
240
- -68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418
241
- -8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9
242
- 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114
243
- c1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751
244
- 181.476 676 181.476c-149 0-189-126.21-332-126.21z`,tilde3:`M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457
245
- -11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0
246
- 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697
247
- 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696
248
- -338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345
249
- -11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409
250
- 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9
251
- 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409
252
- -175.236-744-175.236z`,vec:`M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5
253
- 3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11
254
- 10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63
255
- -1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1
256
- -7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59
257
- H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359
258
- c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22
259
- c-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z`,widehat2:`M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10
260
- -11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat3:`M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10
261
- -11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat4:`M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10
262
- -11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widecheck1:`M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,
263
- -5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z`,widecheck2:`M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
264
- -11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck3:`M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
265
- -11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck4:`M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
266
- -11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,baraboveleftarrow:`M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202
267
- c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5
268
- c-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130
269
- s-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47
270
- 121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6
271
- s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11
272
- c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z
273
- M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32
274
- -27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0
275
- 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39
276
- -84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5
277
- -119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
278
- -12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
279
- 151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
280
- c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17
281
- c2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21
282
- c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40
283
- c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z
284
- M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0
285
- 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,
286
- -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
287
- 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
288
- M0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z`,shortbaraboveleftharpoon:`M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
289
- c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,
290
- 1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,
291
- -152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z
292
- M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`,shortrightharpoonabovebar:`M53,241l0,40c398570,0,399437,0,399437,0
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
- -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
- 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`},Z2=function(e,t){switch(e){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+t+` v1759 h347 v-84
297
- H403z M403 1759 V0 H319 V1759 v`+t+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+t+` v1759 H0 v84 H347z
298
- M347 1759 V0 H263 V1759 v`+t+" v1759 h84z";case"vert":return"M145 15 v585 v"+t+` v585 c2.667,10,9.667,15,21,15
299
- c10,0,16.667,-5,20,-15 v-585 v`+-t+` v-585 c-2.667,-10,-9.667,-15,-21,-15
300
- c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+t+" v585 h43z";case"doublevert":return"M145 15 v585 v"+t+` v585 c2.667,10,9.667,15,21,15
301
- c10,0,16.667,-5,20,-15 v-585 v`+-t+` v-585 c-2.667,-10,-9.667,-15,-21,-15
302
- c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+t+` v585 h43z
303
- M367 15 v585 v`+t+` v585 c2.667,10,9.667,15,21,15
304
- c10,0,16.667,-5,20,-15 v-585 v`+-t+` v-585 c-2.667,-10,-9.667,-15,-21,-15
305
- c-10,0,-16.667,5,-20,15z M410 15 H367 v585 v`+t+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+t+` v1715 h263 v84 H319z
306
- MM319 602 V0 H403 V602 v`+t+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+t+` v1799 H0 v-84 H319z
307
- MM319 602 V0 H403 V602 v`+t+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+t+` v602 h84z
308
- M403 1759 V0 H319 V1759 v`+t+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+t+` v602 h84z
309
- M347 1759 V0 h-84 V1759 v`+t+" v602 h84z";case"lparen":return`M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1
310
- c-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349,
311
- -36,557 l0,`+(t+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,
312
- 949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9
313
- c0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5,
314
- -544.7,-112.5,-882c-2,-104,-3,-167,-3,-189
315
- l0,-`+(t+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,
316
- -210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z`;case"rparen":return`M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3,
317
- 63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5
318
- c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(t+9)+`
319
- c-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664
320
- c-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11
321
- 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
- c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558
323
- l0,-`+(t+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
324
- -470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error("Unknown stretchy delimiter.")}};class s0{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 Qe={"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]}},x0={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]},rn={Å:"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 K2(r,e){Qe[r]=e}function na(r,e,t){if(!Qe[e])throw new Error("Font metrics not found for font: "+e+".");var a=r.charCodeAt(0),n=Qe[e][a];if(!n&&r[0]in rn&&(a=rn[r[0]].charCodeAt(0),n=Qe[e][a]),!n&&t==="text"&&Qs(a)&&(n=Qe[e][77]),n)return{depth:n[0],height:n[1],italic:n[2],skew:n[3],width:n[4]}}var dr={};function J2(r){var e;if(r>=5?e=0:r>=3?e=1:e=2,!dr[e]){var t=dr[e]={cssEmPerMu:x0.quad[e]/18};for(var a in x0)x0.hasOwnProperty(a)&&(t[a]=x0[a][e])}return dr[e]}var Q2=[[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]],an=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],nn=function(e,t){return t.size<2?e:Q2[e-1][t.size-1]};class lt{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||lt.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=an[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 lt(t)}havingStyle(e){return this.style===e?this:this.extend({style:e,size:nn(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:an[e-1]})}havingBaseStyle(e){e=e||this.style.text();var t=nn(lt.BASESIZE,e);return this.size===t&&this.textSize===lt.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!==lt.BASESIZE?["sizing","reset-size"+this.size,"size"+lt.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=J2(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}lt.BASESIZE=6;var jr={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},e4={ex:!0,em:!0,mu:!0},eo=function(e){return typeof e!="string"&&(e=e.unit),e in jr||e in e4||e==="ex"},ge=function(e,t){var a;if(e.unit in jr)a=jr[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)},O=function(e){return+e.toFixed(4)+"em"},St=function(e){return e.filter(t=>t).join(" ")},to=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)}},ro=function(e){var t=document.createElement(e);t.className=St(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},t4=/[\s"'>/=\x00-\x1f]/,ao=function(e){var t="<"+e;this.classes.length&&(t+=' class="'+ae.escape(St(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(t4.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 o0{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,to.call(this,e,a,n),this.children=t||[]}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return this.classes.includes(e)}toNode(){return ro.call(this,"span")}toMarkup(){return ao.call(this,"span")}}class sa{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,to.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 ro.call(this,"a")}toMarkup(){return ao.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 a4={î:"ı̂",ï:"ı̈",í:"ı́",ì:"ı̀"};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=q2(this.text.charCodeAt(0));d&&this.classes.push(d+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=a4[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=O(this.italic)),this.classes.length>0&&(t=t||document.createElement("span"),t.className=St(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(St(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 mt{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 kt{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",tn[this.pathName]),t}toMarkup(){return this.alternate?'<path d="'+ae.escape(this.alternate)+'"/>':'<path d="'+ae.escape(tn[this.pathName])+'"/>'}}class Ir{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 sn(r){if(r instanceof $e)return r;throw new Error("Expected symbolNode but got "+String(r)+".")}function n4(r){if(r instanceof o0)return r;throw new Error("Expected span<HtmlDomNode> but got "+String(r)+".")}var s4={bin:1,close:1,inner:1,open:1,punct:1,rel:1},o4={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},ce={math:{},text:{}};function i(r,e,t,a,n,s){ce[r][n]={font:e,group:t,replace:a},s&&a&&(ce[r][a]=ce[r][n])}var c="math",D="text",m="main",b="ams",fe="accent-token",U="bin",Ee="close",Zt="inner",Z="mathord",ke="op-token",_e="open",G0="punct",x="rel",pt="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,G0,".","\\ldotp");i(c,m,G0,"⋅","\\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,Ee,"⎱","\\rmoustache",!0);i(c,m,_e,"⎰","\\lmoustache",!0);i(c,m,Ee,"⟯","\\rgroup",!0);i(c,m,_e,"⟮","\\lgroup",!0);i(c,m,U,"∓","\\mp",!0);i(c,m,U,"⊖","\\ominus",!0);i(c,m,U,"⊎","\\uplus",!0);i(c,m,U,"⊓","\\sqcap",!0);i(c,m,U,"∗","\\ast");i(c,m,U,"⊔","\\sqcup",!0);i(c,m,U,"◯","\\bigcirc",!0);i(c,m,U,"∙","\\bullet",!0);i(c,m,U,"‡","\\ddagger");i(c,m,U,"≀","\\wr",!0);i(c,m,U,"⨿","\\amalg");i(c,m,U,"&","\\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,U,"⊴","\\unlhd");i(c,b,U,"⊵","\\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,_e,"┌","\\@ulcorner",!0);i(c,b,Ee,"┐","\\@urcorner",!0);i(c,b,_e,"└","\\@llcorner",!0);i(c,b,Ee,"┘","\\@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,U,"⋖","\\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,U,"⋗","\\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,U,"⊲","\\lhd");i(c,b,U,"⊳","\\rhd");i(c,b,x,"≂","\\eqsim",!0);i(c,m,x,"⋈","\\Join");i(c,b,x,"≑","\\Doteq",!0);i(c,b,U,"∔","\\dotplus",!0);i(c,b,U,"∖","\\smallsetminus");i(c,b,U,"⋒","\\Cap",!0);i(c,b,U,"⋓","\\Cup",!0);i(c,b,U,"⩞","\\doublebarwedge",!0);i(c,b,U,"⊟","\\boxminus",!0);i(c,b,U,"⊞","\\boxplus",!0);i(c,b,U,"⋇","\\divideontimes",!0);i(c,b,U,"⋉","\\ltimes",!0);i(c,b,U,"⋊","\\rtimes",!0);i(c,b,U,"⋋","\\leftthreetimes",!0);i(c,b,U,"⋌","\\rightthreetimes",!0);i(c,b,U,"⋏","\\curlywedge",!0);i(c,b,U,"⋎","\\curlyvee",!0);i(c,b,U,"⊝","\\circleddash",!0);i(c,b,U,"⊛","\\circledast",!0);i(c,b,U,"⋅","\\centerdot");i(c,b,U,"⊺","\\intercal",!0);i(c,b,U,"⋒","\\doublecap");i(c,b,U,"⋓","\\doublecup");i(c,b,U,"⊠","\\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,U,"∗","*",!0);i(c,m,U,"+","+");i(c,m,U,"−","-",!0);i(c,m,U,"⋅","\\cdot",!0);i(c,m,U,"∘","\\circ",!0);i(c,m,U,"÷","\\div",!0);i(c,m,U,"±","\\pm",!0);i(c,m,U,"×","\\times",!0);i(c,m,U,"∩","\\cap",!0);i(c,m,U,"∪","\\cup",!0);i(c,m,U,"∖","\\setminus",!0);i(c,m,U,"∧","\\land");i(c,m,U,"∨","\\lor");i(c,m,U,"∧","\\wedge",!0);i(c,m,U,"∨","\\vee",!0);i(c,m,S,"√","\\surd");i(c,m,_e,"⟨","\\langle",!0);i(c,m,_e,"∣","\\lvert");i(c,m,_e,"∥","\\lVert");i(c,m,Ee,"?","?");i(c,m,Ee,"!","!");i(c,m,Ee,"⟩","\\rangle",!0);i(c,m,Ee,"∣","\\rvert");i(c,m,Ee,"∥","\\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,pt," ","\\ ");i(c,m,pt," ","\\space");i(c,m,pt," ","\\nobreakspace");i(D,m,pt," ","\\ ");i(D,m,pt," "," ");i(D,m,pt," ","\\space");i(D,m,pt," ","\\nobreakspace");i(c,m,pt,null,"\\nobreak");i(c,m,pt,null,"\\allowbreak");i(c,m,G0,",",",");i(c,m,G0,";",";");i(c,b,U,"⊼","\\barwedge",!0);i(c,b,U,"⊻","\\veebar",!0);i(c,m,U,"⊙","\\odot",!0);i(c,m,U,"⊕","\\oplus",!0);i(c,m,U,"⊗","\\otimes",!0);i(c,m,S,"∂","\\partial",!0);i(c,m,U,"⊘","\\oslash",!0);i(c,b,U,"⊚","\\circledcirc",!0);i(c,b,U,"⊡","\\boxdot",!0);i(c,m,U,"△","\\bigtriangleup");i(c,m,U,"▽","\\bigtriangledown");i(c,m,U,"†","\\dagger");i(c,m,U,"⋄","\\diamond");i(c,m,U,"⋆","\\star");i(c,m,U,"◃","\\triangleleft");i(c,m,U,"▹","\\triangleright");i(c,m,_e,"{","\\{");i(D,m,S,"{","\\{");i(D,m,S,"{","\\textbraceleft");i(c,m,Ee,"}","\\}");i(D,m,S,"}","\\}");i(D,m,S,"}","\\textbraceright");i(c,m,_e,"{","\\lbrace");i(c,m,Ee,"}","\\rbrace");i(c,m,_e,"[","\\lbrack",!0);i(D,m,S,"[","\\lbrack",!0);i(c,m,Ee,"]","\\rbrack",!0);i(D,m,S,"]","\\rbrack",!0);i(c,m,_e,"(","\\lparen",!0);i(c,m,Ee,")","\\rparen",!0);i(D,m,S,"<","\\textless",!0);i(D,m,S,">","\\textgreater",!0);i(c,m,_e,"⌊","\\lfloor",!0);i(c,m,Ee,"⌋","\\rfloor",!0);i(c,m,_e,"⌈","\\lceil",!0);i(c,m,Ee,"⌉","\\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,ke,"∐","\\coprod");i(c,m,ke,"⋁","\\bigvee");i(c,m,ke,"⋀","\\bigwedge");i(c,m,ke,"⨄","\\biguplus");i(c,m,ke,"⋂","\\bigcap");i(c,m,ke,"⋃","\\bigcup");i(c,m,ke,"∫","\\int");i(c,m,ke,"∫","\\intop");i(c,m,ke,"∬","\\iint");i(c,m,ke,"∭","\\iiint");i(c,m,ke,"∏","\\prod");i(c,m,ke,"∑","\\sum");i(c,m,ke,"⨂","\\bigotimes");i(c,m,ke,"⨁","\\bigoplus");i(c,m,ke,"⨀","\\bigodot");i(c,m,ke,"∮","\\oint");i(c,m,ke,"∯","\\oiint");i(c,m,ke,"∰","\\oiiint");i(c,m,ke,"⨆","\\bigsqcup");i(c,m,ke,"∫","\\smallint");i(D,m,Zt,"…","\\textellipsis");i(c,m,Zt,"…","\\mathellipsis");i(D,m,Zt,"…","\\ldots",!0);i(c,m,Zt,"…","\\ldots",!0);i(c,m,Zt,"⋯","\\@cdots",!0);i(c,m,Zt,"⋱","\\ddots",!0);i(c,m,S,"⋮","\\varvdots");i(D,m,S,"⋮","\\varvdots");i(c,m,fe,"ˊ","\\acute");i(c,m,fe,"ˋ","\\grave");i(c,m,fe,"¨","\\ddot");i(c,m,fe,"~","\\tilde");i(c,m,fe,"ˉ","\\bar");i(c,m,fe,"˘","\\breve");i(c,m,fe,"ˇ","\\check");i(c,m,fe,"^","\\hat");i(c,m,fe,"⃗","\\vec");i(c,m,fe,"˙","\\dot");i(c,m,fe,"˚","\\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,fe,"ˊ","\\'");i(D,m,fe,"ˋ","\\`");i(D,m,fe,"ˆ","\\^");i(D,m,fe,"˜","\\~");i(D,m,fe,"ˉ","\\=");i(D,m,fe,"˘","\\u");i(D,m,fe,"˙","\\.");i(D,m,fe,"¸","\\c");i(D,m,fe,"˚","\\r");i(D,m,fe,"ˇ","\\v");i(D,m,fe,"¨",'\\"');i(D,m,fe,"˝","\\H");i(D,m,fe,"◯","\\textcircled");var no={"--":!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 on='0123456789/@."';for(var mr=0;mr<on.length;mr++){var ln=on.charAt(mr);i(c,m,S,ln,ln)}var cn='0123456789!@*()-=+";:?/.,';for(var hr=0;hr<cn.length;hr++){var un=cn.charAt(hr);i(D,m,S,un,un)}var j0="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";for(var fr=0;fr<j0.length;fr++){var y0=j0.charAt(fr);i(c,m,Z,y0,y0),i(D,m,S,y0,y0)}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 De=0;De<j0.length;De++){var xe=j0.charAt(De);J=String.fromCharCode(55349,56320+De),i(c,m,Z,xe,J),i(D,m,S,xe,J),J=String.fromCharCode(55349,56372+De),i(c,m,Z,xe,J),i(D,m,S,xe,J),J=String.fromCharCode(55349,56424+De),i(c,m,Z,xe,J),i(D,m,S,xe,J),J=String.fromCharCode(55349,56580+De),i(c,m,Z,xe,J),i(D,m,S,xe,J),J=String.fromCharCode(55349,56684+De),i(c,m,Z,xe,J),i(D,m,S,xe,J),J=String.fromCharCode(55349,56736+De),i(c,m,Z,xe,J),i(D,m,S,xe,J),J=String.fromCharCode(55349,56788+De),i(c,m,Z,xe,J),i(D,m,S,xe,J),J=String.fromCharCode(55349,56840+De),i(c,m,Z,xe,J),i(D,m,S,xe,J),J=String.fromCharCode(55349,56944+De),i(c,m,Z,xe,J),i(D,m,S,xe,J),De<26&&(J=String.fromCharCode(55349,56632+De),i(c,m,Z,xe,J),i(D,m,S,xe,J),J=String.fromCharCode(55349,56476+De),i(c,m,Z,xe,J),i(D,m,S,xe,J))}J="𝕜";i(c,m,Z,"k",J);i(D,m,S,"k",J);for(var Nt=0;Nt<10;Nt++){var bt=Nt.toString();J=String.fromCharCode(55349,57294+Nt),i(c,m,Z,bt,J),i(D,m,S,bt,J),J=String.fromCharCode(55349,57314+Nt),i(c,m,Z,bt,J),i(D,m,S,bt,J),J=String.fromCharCode(55349,57324+Nt),i(c,m,Z,bt,J),i(D,m,S,bt,J),J=String.fromCharCode(55349,57334+Nt),i(c,m,Z,bt,J),i(D,m,S,bt,J)}var Pr="ÐÞþ";for(var pr=0;pr<Pr.length;pr++){var w0=Pr.charAt(pr);i(c,m,Z,w0,w0),i(D,m,S,w0,w0)}var S0=[["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"]],dn=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],i4=function(e,t){var a=e.charCodeAt(0),n=e.charCodeAt(1),s=(a-55296)*1024+(n-56320)+65536,o=t==="math"?0:1;if(119808<=s&&s<120484){var l=Math.floor((s-119808)/26);return[S0[l][2],S0[l][o]]}else if(120782<=s&&s<=120831){var u=Math.floor((s-120782)/10);return[dn[u][2],dn[u][o]]}else{if(s===120485||s===120486)return[S0[0][2],S0[0][o]];if(120486<s&&s<120782)return["",""];throw new L("Unsupported character: "+e)}},U0=function(e,t,a){return ce[a][e]&&ce[a][e].replace&&(e=ce[a][e].replace),{value:e,metrics:na(e,t,a)}},Xe=function(e,t,a,n,s){var o=U0(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 f=n.getColor();f&&(u.style.color=f)}return u},l4=function(e,t,a,n){return n===void 0&&(n=[]),a.font==="boldsymbol"&&U0(e,"Main-Bold",t).metrics?Xe(e,"Main-Bold",t,a,n.concat(["mathbf"])):e==="\\"||ce[t][e].font==="main"?Xe(e,"Main-Regular",t,a,n):Xe(e,"AMS-Regular",t,a,n.concat(["amsrm"]))},c4=function(e,t,a,n,s){return s!=="textord"&&U0(e,"Math-BoldItalic",t).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},u4=function(e,t,a){var n=e.mode,s=e.text,o=["mord"],l=n==="math"||n==="text"&&t.font,u=l?t.font:t.fontFamily,d="",f="";if(s.charCodeAt(0)===55349&&([d,f]=i4(s,n)),d.length>0)return Xe(s,d,n,t,o.concat(f));if(u){var g,y;if(u==="boldsymbol"){var w=c4(s,n,t,o,a);g=w.fontName,y=[w.fontClass]}else l?(g=io[u].fontName,y=[u]):(g=k0(u,t.fontWeight,t.fontShape),y=[u,t.fontWeight,t.fontShape]);if(U0(s,g,n).metrics)return Xe(s,g,n,t,o.concat(y));if(no.hasOwnProperty(s)&&g.slice(0,10)==="Typewriter"){for(var M=[],k=0;k<s.length;k++)M.push(Xe(s[k],g,n,t,o.concat(y)));return oo(M)}}if(a==="mathord")return Xe(s,"Math-Italic",n,t,o.concat(["mathnormal"]));if(a==="textord"){var N=ce[n][s]&&ce[n][s].font;if(N==="ams"){var A=k0("amsrm",t.fontWeight,t.fontShape);return Xe(s,A,n,t,o.concat("amsrm",t.fontWeight,t.fontShape))}else if(N==="main"||!N){var E=k0("textrm",t.fontWeight,t.fontShape);return Xe(s,E,n,t,o.concat(t.fontWeight,t.fontShape))}else{var R=k0(N,t.fontWeight,t.fontShape);return Xe(s,R,n,t,o.concat(R,t.fontWeight,t.fontShape))}}else throw new Error("unexpected type: "+a+" in makeOrd")},d4=(r,e)=>{if(St(r.classes)!==St(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},m4=r=>{for(var e=0;e<r.length-1;e++){var t=r[e],a=r[e+1];t instanceof $e&&a instanceof $e&&d4(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},oa=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},je=function(e,t,a,n){var s=new o0(e,t,a,n);return oa(s),s},so=(r,e,t,a)=>new o0(r,e,t,a),h4=function(e,t,a){var n=je([e],[],t);return n.height=Math.max(a||t.fontMetrics().defaultRuleThickness,t.minRuleThickness),n.style.borderBottomWidth=O(n.height),n.maxFontSize=1,n},f4=function(e,t,a,n){var s=new sa(e,t,a,n);return oa(s),s},oo=function(e){var t=new s0(e);return oa(t),t},p4=function(e,t){return e instanceof s0?je([],[e],t):e},v4=function(e){if(e.positionType==="individualShift"){for(var t=e.children,a=[t[0]],n=-t[0].shift-t[0].elem.depth,s=n,o=1;o<t.length;o++){var l=-t[o].shift-s-t[o].elem.depth,u=l-(t[o-1].elem.height+t[o-1].elem.depth);s=s+l,a.push({type:"kern",size:u}),a.push(t[o])}return{children:a,depth:n}}var d;if(e.positionType==="top"){for(var f=e.positionData,g=0;g<e.children.length;g++){var y=e.children[g];f-=y.type==="kern"?y.size:y.elem.height+y.elem.depth}d=f}else if(e.positionType==="bottom")d=-e.positionData;else{var w=e.children[0];if(w.type!=="elem")throw new Error('First child must have type "elem".');if(e.positionType==="shift")d=-w.elem.depth-e.positionData;else if(e.positionType==="firstBaseline")d=-w.elem.depth;else throw new Error("Invalid positionType "+e.positionType+".")}return{children:e.children,depth:d}},g4=function(e,t){for(var{children:a,depth:n}=v4(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=je(["pstrut"],[]);d.style.height=O(s);for(var f=[],g=n,y=n,w=n,M=0;M<a.length;M++){var k=a[M];if(k.type==="kern")w+=k.size;else{var N=k.elem,A=k.wrapperClasses||[],E=k.wrapperStyle||{},R=je(A,[d,N],void 0,E);R.style.top=O(-s-w-N.depth),k.marginLeft&&(R.style.marginLeft=k.marginLeft),k.marginRight&&(R.style.marginRight=k.marginRight),f.push(R),w+=N.height+N.depth}g=Math.min(g,w),y=Math.max(y,w)}var F=je(["vlist"],f);F.style.height=O(y);var q;if(g<0){var X=je([],[]),_=je(["vlist"],[X]);_.style.height=O(-g);var P=je(["vlist-s"],[new $e("​")]);q=[je(["vlist-r"],[F,P]),je(["vlist-r"],[_])]}else q=[je(["vlist-r"],[F])];var Y=je(["vlist-t"],q);return q.length===2&&Y.classes.push("vlist-t2"),Y.height=y,Y.depth=-g,Y},b4=(r,e)=>{var t=je(["mspace"],[],e),a=ge(r,e);return t.style.marginRight=O(a),t},k0=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},io={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"}},lo={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},x4=function(e,t){var[a,n,s]=lo[e],o=new kt(a),l=new mt([o],{width:O(n),height:O(s),style:"width:"+O(n),viewBox:"0 0 "+1e3*n+" "+1e3*s,preserveAspectRatio:"xMinYMin"}),u=so(["overlay"],[l],t);return u.height=s,u.style.height=O(s),u.style.width=O(n),u},C={fontMap:io,makeSymbol:Xe,mathsym:l4,makeSpan:je,makeSvgSpan:so,makeLineSpan:h4,makeAnchor:f4,makeFragment:oo,wrapFragment:p4,makeVList:g4,makeOrd:u4,makeGlue:b4,staticSvg:x4,svgData:lo,tryCombineChars:m4},ve={number:3,unit:"mu"},At={number:4,unit:"mu"},ot={number:5,unit:"mu"},y4={mord:{mop:ve,mbin:At,mrel:ot,minner:ve},mop:{mord:ve,mop:ve,mrel:ot,minner:ve},mbin:{mord:At,mop:At,mopen:At,minner:At},mrel:{mord:ot,mop:ot,mopen:ot,minner:ot},mopen:{},mclose:{mop:ve,mbin:At,mrel:ot,minner:ve},mpunct:{mord:ve,mop:ve,mrel:ot,mopen:ve,mclose:ve,mpunct:ve,minner:ve},minner:{mord:ve,mop:ve,mbin:At,mrel:ot,mopen:ve,mpunct:ve,minner:ve}},w4={mord:{mop:ve},mop:{mord:ve,mop:ve},mbin:{},mrel:{},mopen:{},mclose:{mop:ve},mpunct:{},minner:{mop:ve}},co={},I0={},P0={};function V(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)co[t[u]]=l;e&&(s&&(I0[e]=s),o&&(P0[e]=o))}function jt(r){var{type:e,htmlBuilder:t,mathmlBuilder:a}=r;V({type:e,names:[],props:{numArgs:0},handler(){throw new Error("Should never be called.")},htmlBuilder:t,mathmlBuilder:a})}var O0=function(e){return e.type==="ordgroup"&&e.body.length===1?e.body[0]:e},we=function(e){return e.type==="ordgroup"?e.body:[e]},ht=C.makeSpan,S4=["leftmost","mbin","mopen","mrel","mop","mpunct"],k4=["rightmost","mrel","mclose","mpunct"],C4={display:K.DISPLAY,text:K.TEXT,script:K.SCRIPT,scriptscript:K.SCRIPTSCRIPT},M4={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},Te=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 s0){var u=l.children;s.push(...u)}else s.push(l)}if(C.tryCombineChars(s),!a)return s;var d=t;if(e.length===1){var f=e[0];f.type==="sizing"?d=t.havingSize(f.size):f.type==="styling"&&(d=t.havingStyle(C4[f.style]))}var g=ht([n[0]||"leftmost"],[],t),y=ht([n[1]||"rightmost"],[],t),w=a==="root";return mn(s,(M,k)=>{var N=k.classes[0],A=M.classes[0];N==="mbin"&&k4.includes(A)?k.classes[0]="mord":A==="mbin"&&S4.includes(N)&&(M.classes[0]="mord")},{node:g},y,w),mn(s,(M,k)=>{var N=Or(k),A=Or(M),E=N&&A?M.hasClass("mtight")?w4[N][A]:y4[N][A]:null;if(E)return C.makeGlue(E,d)},{node:g},y,w),s},mn=function r(e,t,a,n,s){n&&e.push(n);for(var o=0;o<e.length;o++){var l=e[o],u=uo(l);if(u){r(u.children,t,a,null,s);continue}var d=!l.hasClass("mspace");if(d){var f=t(l,a.node);f&&(a.insertAfter?a.insertAfter(f):(e.unshift(f),o++))}d?a.node=l:s&&l.hasClass("newline")&&(a.node=ht(["leftmost"])),a.insertAfter=(g=>y=>{e.splice(g+1,0,y),o++})(o)}n&&e.pop()},uo=function(e){return e instanceof s0||e instanceof sa||e instanceof o0&&e.hasClass("enclosing")?e:null},T4=function r(e,t){var a=uo(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},Or=function(e,t){return e?(t&&(e=T4(e,t)),M4[e.classes[0]]||null):null},n0=function(e,t){var a=["nulldelimiter"].concat(e.baseSizingClasses());return ht(t.concat(a))},re=function(e,t,a){if(!e)return ht();if(I0[e.type]){var n=I0[e.type](e,t);if(a&&t.size!==a.size){n=ht(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 C0(r,e){var t=ht(["base"],r,e),a=ht(["strut"]);return a.style.height=O(t.height+t.depth),t.depth&&(a.style.verticalAlign=O(-t.depth)),t.children.unshift(a),t}function Fr(r,e){var t=null;r.length===1&&r[0].type==="tag"&&(t=r[0].tag,r=r[0].body);var a=Te(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(C0(o,e)),o=[])}else a[l].hasClass("newline")&&(o.pop(),o.length>0&&(s.push(C0(o,e)),o=[]),s.push(a[l]));o.length>0&&s.push(C0(o,e));var d;t?(d=C0(Te(t,e,!0)),d.classes=["tag"],s.push(d)):n&&s.push(n);var f=ht(["katex-html"],s);if(f.setAttribute("aria-hidden","true"),d){var g=d.children[0];g.style.height=O(f.height+f.depth),f.depth&&(g.style.verticalAlign=O(-f.depth))}return f}function mo(r){return new s0(r)}class He{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=St(this.classes));for(var a=0;a<this.children.length;a++)if(this.children[a]instanceof et&&this.children[a+1]instanceof et){for(var n=this.children[a].toText()+this.children[++a].toText();this.children[a+1]instanceof et;)n+=this.children[++a].toText();e.appendChild(new et(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(St(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 et{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 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",O(this.width)),e}toMarkup(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+O(this.width)+'"/>'}toText(){return this.character?this.character:" "}}var B={MathNode:He,TextNode:et,SpaceNode:z4,newDocumentFragment:mo},We=function(e,t,a){return ce[t][e]&&ce[t][e].replace&&e.charCodeAt(0)!==55349&&!(no.hasOwnProperty(e)&&a&&(a.fontFamily&&a.fontFamily.slice(4,6)==="tt"||a.font&&a.font.slice(4,6)==="tt"))&&(e=ce[t][e].replace),new B.TextNode(e)},ia=function(e){return e.length===1?e[0]:new B.MathNode("mrow",e)},la=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;ce[n][s]&&ce[n][s].replace&&(s=ce[n][s].replace);var o=C.fontMap[a].fontName;return na(s,o,n)?C.fontMap[a].variant:null};function vr(r){if(!r)return!1;if(r.type==="mi"&&r.children.length===1){var e=r.children[0];return e instanceof et&&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 et&&t.text===","}else return!1}var Pe=function(e,t,a){if(e.length===1){var n=ie(e[0],t);return a&&n instanceof He&&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 He&&o instanceof He){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(vr(u)&&o.type==="mn"){o.children.push(...u.children);continue}else if(u.type==="mn"&&vr(o))u.children=[...o.children,...u.children],s.pop();else if((u.type==="msup"||u.type==="msub")&&u.children.length>=1&&(o.type==="mn"||vr(o))){var d=u.children[0];d instanceof He&&d.type==="mn"&&(d.children=[...o.children,...d.children],s.pop())}else if(o.type==="mi"&&o.children.length===1){var f=o.children[0];if(f instanceof et&&f.text==="̸"&&(u.type==="mo"||u.type==="mi"||u.type==="mn")){var g=u.children[0];g instanceof et&&g.text.length>0&&(g.text=g.text.slice(0,1)+"̸"+g.text.slice(1),s.pop())}}}s.push(u),o=u}return s},Ct=function(e,t,a){return ia(Pe(e,t,a))},ie=function(e,t){if(!e)return new B.MathNode("mrow");if(P0[e.type]){var a=P0[e.type](e,t);return a}else throw new L("Got group of unknown type: '"+e.type+"'")};function hn(r,e,t,a,n){var s=Pe(r,t),o;s.length===1&&s[0]instanceof He&&["mrow","mtable"].includes(s[0].type)?o=s[0]:o=new B.MathNode("mrow",s);var l=new B.MathNode("annotation",[new B.TextNode(e)]);l.setAttribute("encoding","application/x-tex");var u=new B.MathNode("semantics",[o,l]),d=new B.MathNode("math",[u]);d.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),a&&d.setAttribute("display","block");var f=n?"katex":"katex-mathml";return C.makeSpan([f],[d])}var ho=function(e){return new lt({style:e.displayMode?K.DISPLAY:K.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness})},fo=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},N4=function(e,t,a){var n=ho(a),s;if(a.output==="mathml")return hn(e,t,n,a.displayMode,!0);if(a.output==="html"){var o=Fr(e,n);s=C.makeSpan(["katex"],[o])}else{var l=hn(e,t,n,a.displayMode,!1),u=Fr(e,n);s=C.makeSpan(["katex"],[l,u])}return fo(s,a)},A4=function(e,t,a){var n=ho(a),s=Fr(e,n),o=C.makeSpan(["katex"],[s]);return fo(o,a)},D4={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":"="},R4=function(e){var t=new B.MathNode("mo",[new B.TextNode(D4[e.replace(/^\\/,"")])]);return t.setAttribute("stretchy","true"),t},E4={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]},B4=function(e){return e.type==="ordgroup"?e.body.length:1},L4=function(e,t){function a(){var l=4e5,u=e.label.slice(1);if(["widehat","widecheck","widetilde","utilde"].includes(u)){var d=e,f=B4(d.base),g,y,w;if(f>5)u==="widehat"||u==="widecheck"?(g=420,l=2364,w=.42,y=u+"4"):(g=312,l=2340,w=.34,y="tilde4");else{var M=[1,1,2,2,3,3][f];u==="widehat"||u==="widecheck"?(l=[0,1062,2364,2364,2364][M],g=[0,239,300,360,420][M],w=[0,.24,.3,.3,.36,.42][M],y=u+M):(l=[0,600,1033,2339,2340][M],g=[0,260,286,306,312][M],w=[0,.26,.286,.3,.306,.34][M],y="tilde"+M)}var k=new kt(y),N=new mt([k],{width:"100%",height:O(w),viewBox:"0 0 "+l+" "+g,preserveAspectRatio:"none"});return{span:C.makeSvgSpan([],[N],t),minWidth:0,height:w}}else{var A=[],E=E4[u],[R,F,q]=E,X=q/1e3,_=R.length,P,Y;if(_===1){var be=E[3];P=["hide-tail"],Y=[be]}else if(_===2)P=["halfarrow-left","halfarrow-right"],Y=["xMinYMin","xMaxYMin"];else if(_===3)P=["brace-left","brace-center","brace-right"],Y=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
325
- `+_+" children.");for(var ue=0;ue<_;ue++){var te=new kt(R[ue]),ye=new mt([te],{width:"400em",height:O(X),viewBox:"0 0 "+l+" "+q,preserveAspectRatio:Y[ue]+" slice"}),se=C.makeSvgSpan([P[ue]],[ye],t);if(_===1)return{span:se,minWidth:F,height:X};se.style.height=O(X),A.push(se)}return{span:C.makeSpan(["stretchy"],A,t),minWidth:F,height:X}}}var{span:n,minWidth:s,height:o}=a();return n.height=o,n.style.height=O(o),s>0&&(n.style.minWidth=O(s)),n},j4=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 Ir({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(t)&&d.push(new Ir({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var f=new mt(d,{width:"100%",height:O(l)});o=C.makeSvgSpan([],[f],s)}return o.height=l,o.style.height=O(l),o},ft={encloseSpan:j4,mathMLnode:R4,svgSpan:L4};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 ca(r){var e=$0(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 $0(r){return r&&(r.type==="atom"||o4.hasOwnProperty(r.type))?r:null}var ua=(r,e)=>{var t,a,n;r&&r.type==="supsub"?(a=Q(r.base,"accent"),t=a.base,r.base=t,n=n4(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=sn(d).skew}var f=a.label==="\\c",g=f?s.height+s.depth:Math.min(s.height,e.fontMetrics().xHeight),y;if(a.isStretchy)y=ft.svgSpan(a,e),y=C.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"elem",elem:y,wrapperClasses:["svg-align"],wrapperStyle:l>0?{width:"calc(100% - "+O(2*l)+")",marginLeft:O(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=sn(w),w.italic=0,M=w.width,f&&(g+=w.depth)),y=C.makeSpan(["accent-body"],[w]);var k=a.label==="\\textcircled";k&&(y.classes.push("accent-full"),g=s.height);var N=l;k||(N-=M/2),y.style.left=O(N),a.label==="\\textcircled"&&(y.style.top=".2em"),y=C.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"kern",size:-g},{type:"elem",elem:y}]},e)}var A=C.makeSpan(["mord","accent"],[y],e);return n?(n.children[0]=A,n.height=Math.max(A.height,n.height),n.classes[0]="mord",n):A},po=(r,e)=>{var t=r.isStretchy?ft.mathMLnode(r.label):new B.MathNode("mo",[We(r.label,r.mode)]),a=new B.MathNode("mover",[ie(r.base,e),t]);return a.setAttribute("accent","true"),a},I4=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(r=>"\\"+r).join("|"));V({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=O0(e[0]),a=!I4.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:ua,mathmlBuilder:po});V({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:ua,mathmlBuilder:po});V({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=ft.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=ft.mathMLnode(r.label),a=new B.MathNode("munder",[ie(r.base,e),t]);return a.setAttribute("accentunder","true"),a}});var M0=r=>{var e=new B.MathNode("mpadded",r?[r]:[]);return e.setAttribute("width","+0.6em"),e.setAttribute("lspace","0.3em"),e};V({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=ft.svgSpan(r,e),u=-e.fontMetrics().axisHeight+.5*l.height,d=-e.fontMetrics().axisHeight-.5*l.height-.111;(n.depth>.25||r.label==="\\xleftequilibrium")&&(d-=n.depth);var f;if(o){var g=-e.fontMetrics().axisHeight+o.height+.5*l.height+.111;f=C.makeVList({positionType:"individualShift",children:[{type:"elem",elem:n,shift:d},{type:"elem",elem:l,shift:u},{type:"elem",elem:o,shift:g}]},e)}else f=C.makeVList({positionType:"individualShift",children:[{type:"elem",elem:n,shift:d},{type:"elem",elem:l,shift:u}]},e);return f.children[0].children[0].children[1].classes.push("svg-align"),C.makeSpan(["mrel","x-arrow"],[f],e)},mathmlBuilder(r,e){var t=ft.mathMLnode(r.label);t.setAttribute("minsize",r.label.charAt(0)==="x"?"1.75em":"3.0em");var a;if(r.body){var n=M0(ie(r.body,e));if(r.below){var s=M0(ie(r.below,e));a=new B.MathNode("munderover",[t,s,n])}else a=new B.MathNode("mover",[t,n])}else if(r.below){var o=M0(ie(r.below,e));a=new B.MathNode("munder",[t,o])}else a=M0(),a=new B.MathNode("mover",[t,a]);return a}});var P4=C.makeSpan;function vo(r,e){var t=Te(r.body,e,!0);return P4([r.mclass],t,e)}function go(r,e){var t,a=Pe(r.body,e);return r.mclass==="minner"?t=new B.MathNode("mpadded",a):r.mclass==="mord"?r.isCharacterBox?(t=a[0],t.type="mi"):t=new B.MathNode("mi",a):(r.isCharacterBox?(t=a[0],t.type="mo"):t=new B.MathNode("mo",a),r.mclass==="mbin"?(t.attributes.lspace="0.22em",t.attributes.rspace="0.22em"):r.mclass==="mpunct"?(t.attributes.lspace="0em",t.attributes.rspace="0.17em"):r.mclass==="mopen"||r.mclass==="mclose"?(t.attributes.lspace="0em",t.attributes.rspace="0em"):r.mclass==="minner"&&(t.attributes.lspace="0.0556em",t.attributes.width="+0.1111em")),t}V({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:we(n),isCharacterBox:ae.isCharacterBox(n)}},htmlBuilder:vo,mathmlBuilder:go});var W0=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"};V({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(r,e){var{parser:t}=r;return{type:"mclass",mode:t.mode,mclass:W0(e[0]),body:we(e[1]),isCharacterBox:ae.isCharacterBox(e[1])}}});V({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=W0(n):o="mrel";var l={type:"op",mode:n.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:a!=="\\stackrel",body:we(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:vo,mathmlBuilder:go});V({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(r,e){var{parser:t}=r;return{type:"pmb",mode:t.mode,mclass:W0(e[0]),body:we(e[0])}},htmlBuilder(r,e){var t=Te(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=Pe(r.body,e),a=new B.MathNode("mstyle",t);return a.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),a}});var O4={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},fn=()=>({type:"styling",body:[],mode:"math",style:"display"}),pn=r=>r.type==="textord"&&r.text==="@",F4=(r,e)=>(r.type==="mathord"||r.type==="atom")&&r.text===e;function q4(r,e,t){var a=O4[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 H4(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=fn(),u=0;u<o.length;u++)if(!pn(o[u]))l.body.push(o[u]);else{a.push(l),u+=1;var d=ca(o[u]).text,f=new Array(2);if(f[0]={type:"ordgroup",mode:"math",body:[]},f[1]={type:"ordgroup",mode:"math",body:[]},!("=|.".indexOf(d)>-1))if("<>AV".indexOf(d)>-1)for(var g=0;g<2;g++){for(var y=!0,w=u+1;w<o.length;w++){if(F4(o[w],d)){y=!1,u=w;break}if(pn(o[w]))throw new L("Missing a "+d+" character to complete a CD arrow.",o[w]);f[g].body.push(o[w])}if(y)throw new L("Missing a "+d+" character to complete a CD arrow.",o[u])}else throw new L('Expected one of "<>AV=|." after @',o[u]);var M=q4(d,f,r),k={type:"styling",body:[M],mode:"math",style:"display"};a.push(k),l=fn()}s%2===0?a.push(l):a.shift(),a=[],n.push(a)}r.gullet.endGroup(),r.gullet.endGroup();var N=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:N,colSeparationType:"CD",hLinesBeforeRow:new Array(n.length+1).fill([])}}V({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=O(.8-a.depth),a.height=0,a.depth=0,a},mathmlBuilder(r,e){var t=new B.MathNode("mrow",[ie(r.label,e)]);return t=new B.MathNode("mpadded",[t]),t.setAttribute("width","0"),r.side==="left"&&t.setAttribute("lspace","-1width"),t.setAttribute("voffset","0.7em"),t=new B.MathNode("mstyle",[t]),t.setAttribute("displaystyle","false"),t.setAttribute("scriptlevel","1"),t}});V({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 B.MathNode("mrow",[ie(r.fragment,e)])}});V({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 bo=(r,e)=>{var t=Te(r.body,e.withColor(r.color),!1);return C.makeFragment(t)},xo=(r,e)=>{var t=Pe(r.body,e.withColor(r.color)),a=new B.MathNode("mstyle",t);return a.setAttribute("mathcolor",r.color),a};V({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:we(n)}},htmlBuilder:bo,mathmlBuilder:xo});V({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:bo,mathmlBuilder:xo});V({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=O(ge(r.size,e)))),t},mathmlBuilder(r,e){var t=new B.MathNode("mspace");return r.newLine&&(t.setAttribute("linebreak","newline"),r.size&&t.setAttribute("height",O(ge(r.size,e)))),t}});var qr={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},yo=r=>{var e=r.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(e))throw new L("Expected a control sequence",r);return e},V4=r=>{var e=r.gullet.popToken();return e.text==="="&&(e=r.gullet.popToken(),e.text===" "&&(e=r.gullet.popToken())),e},wo=(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)};V({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(qr[a.text])return(t==="\\global"||t==="\\\\globallong")&&(a.text=qr[a.text]),Q(e.parseFunction(),"internal");throw new L("Invalid token after macro prefix",a)}});V({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===qr[t]),{type:"internal",mode:e.mode}}});V({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(r){var{parser:e,funcName:t}=r,a=yo(e.gullet.popToken());e.gullet.consumeSpaces();var n=V4(e);return wo(e,a,n,t==="\\\\globallet"),{type:"internal",mode:e.mode}}});V({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(r){var{parser:e,funcName:t}=r,a=yo(e.gullet.popToken()),n=e.gullet.popToken(),s=e.gullet.popToken();return wo(e,a,s,t==="\\\\globalfuture"),e.gullet.pushToken(s),e.gullet.pushToken(n),{type:"internal",mode:e.mode}}});var Qt=function(e,t,a){var n=ce.math[e]&&ce.math[e].replace,s=na(n||e,t,a);if(!s)throw new Error("Unsupported symbol "+e+" and font size "+t+".");return s},da=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},So=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=O(s),e.height-=s,e.depth+=s},_4=function(e,t,a,n,s,o){var l=C.makeSymbol(e,"Main-Regular",s,n),u=da(l,t,n,o);return a&&So(u,n,t),u},G4=function(e,t,a,n){return C.makeSymbol(e,"Size"+t+"-Regular",a,n)},ko=function(e,t,a,n,s,o){var l=G4(e,t,s,n),u=da(C.makeSpan(["delimsizing","size"+t],[l],n),K.TEXT,n,o);return a&&So(u,n,K.TEXT),u},gr=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}},br=function(e,t,a){var n=Qe["Size4-Regular"][e.charCodeAt(0)]?Qe["Size4-Regular"][e.charCodeAt(0)][4]:Qe["Size1-Regular"][e.charCodeAt(0)][4],s=new kt("inner",Y2(e,Math.round(1e3*t))),o=new mt([s],{width:O(n),height:O(t),style:"width:"+O(n),viewBox:"0 0 "+1e3*n+" "+Math.round(1e3*t),preserveAspectRatio:"xMinYMin"}),l=C.makeSvgSpan([],[o],a);return l.height=t,l.style.height=O(t),l.style.width=O(n),{type:"elem",elem:l}},Hr=.008,T0={type:"kern",size:-1*Hr},U4=["|","\\lvert","\\rvert","\\vert"],$4=["\\|","\\lVert","\\rVert","\\Vert"],Co=function(e,t,a,n,s,o){var l,u,d,f,g="",y=0;l=d=f=e,u=null;var w="Size1-Regular";e==="\\uparrow"?d=f="⏐":e==="\\Uparrow"?d=f="‖":e==="\\downarrow"?l=d="⏐":e==="\\Downarrow"?l=d="‖":e==="\\updownarrow"?(l="\\uparrow",d="⏐",f="\\downarrow"):e==="\\Updownarrow"?(l="\\Uparrow",d="‖",f="\\Downarrow"):U4.includes(e)?(d="∣",g="vert",y=333):$4.includes(e)?(d="∥",g="doublevert",y=556):e==="["||e==="\\lbrack"?(l="⎡",d="⎢",f="⎣",w="Size4-Regular",g="lbrack",y=667):e==="]"||e==="\\rbrack"?(l="⎤",d="⎥",f="⎦",w="Size4-Regular",g="rbrack",y=667):e==="\\lfloor"||e==="⌊"?(d=l="⎢",f="⎣",w="Size4-Regular",g="lfloor",y=667):e==="\\lceil"||e==="⌈"?(l="⎡",d=f="⎢",w="Size4-Regular",g="lceil",y=667):e==="\\rfloor"||e==="⌋"?(d=l="⎥",f="⎦",w="Size4-Regular",g="rfloor",y=667):e==="\\rceil"||e==="⌉"?(l="⎤",d=f="⎥",w="Size4-Regular",g="rceil",y=667):e==="("||e==="\\lparen"?(l="⎛",d="⎜",f="⎝",w="Size4-Regular",g="lparen",y=875):e===")"||e==="\\rparen"?(l="⎞",d="⎟",f="⎠",w="Size4-Regular",g="rparen",y=875):e==="\\{"||e==="\\lbrace"?(l="⎧",u="⎨",f="⎩",d="⎪",w="Size4-Regular"):e==="\\}"||e==="\\rbrace"?(l="⎫",u="⎬",f="⎭",d="⎪",w="Size4-Regular"):e==="\\lgroup"||e==="⟮"?(l="⎧",f="⎩",d="⎪",w="Size4-Regular"):e==="\\rgroup"||e==="⟯"?(l="⎫",f="⎭",d="⎪",w="Size4-Regular"):e==="\\lmoustache"||e==="⎰"?(l="⎧",f="⎭",d="⎪",w="Size4-Regular"):(e==="\\rmoustache"||e==="⎱")&&(l="⎫",f="⎩",d="⎪",w="Size4-Regular");var M=Qt(l,w,s),k=M.height+M.depth,N=Qt(d,w,s),A=N.height+N.depth,E=Qt(f,w,s),R=E.height+E.depth,F=0,q=1;if(u!==null){var X=Qt(u,w,s);F=X.height+X.depth,q=2}var _=k+R+F,P=Math.max(0,Math.ceil((t-_)/(q*A))),Y=_+P*q*A,be=n.fontMetrics().axisHeight;a&&(be*=n.sizeMultiplier);var ue=Y/2-be,te=[];if(g.length>0){var ye=Y-k-R,se=Math.round(Y*1e3),le=Z2(g,Math.round(ye*1e3)),oe=new kt(g,le),Ce=(y/1e3).toFixed(3)+"em",G=(se/1e3).toFixed(3)+"em",Ae=new mt([oe],{width:Ce,height:G,viewBox:"0 0 "+y+" "+se}),de=C.makeSvgSpan([],[Ae],n);de.height=se/1e3,de.style.width=Ce,de.style.height=G,te.push({type:"elem",elem:de})}else{if(te.push(gr(f,w,s)),te.push(T0),u===null){var ze=Y-k-R+2*Hr;te.push(br(d,ze,n))}else{var he=(Y-k-R-F)/2+2*Hr;te.push(br(d,he,n)),te.push(T0),te.push(gr(u,w,s)),te.push(T0),te.push(br(d,he,n))}te.push(T0),te.push(gr(l,w,s))}var me=n.havingBaseStyle(K.TEXT),pe=C.makeVList({positionType:"bottom",positionData:ue,children:te},me);return da(C.makeSpan(["delimsizing","mult"],[pe],me),K.TEXT,n,o)},xr=80,yr=.08,wr=function(e,t,a,n,s){var o=X2(e,n,a),l=new kt(e,o),u=new mt([l],{width:"400em",height:O(t),viewBox:"0 0 400000 "+a,preserveAspectRatio:"xMinYMin slice"});return C.makeSvgSpan(["hide-tail"],[u],s)},W4=function(e,t){var a=t.havingBaseSizing(),n=No("\\surd",e*a.sizeMultiplier,zo,a),s=a.sizeMultiplier,o=Math.max(0,t.minRuleThickness-t.fontMetrics().sqrtRuleThickness),l,u=0,d=0,f=0,g;return n.type==="small"?(f=1e3+1e3*o+xr,e<1?s=1:e<1.4&&(s=.7),u=(1+o+yr)/s,d=(1+o)/s,l=wr("sqrtMain",u,f,o,t),l.style.minWidth="0.853em",g=.833/s):n.type==="large"?(f=(1e3+xr)*e0[n.size],d=(e0[n.size]+o)/s,u=(e0[n.size]+o+yr)/s,l=wr("sqrtSize"+n.size,u,f,o,t),l.style.minWidth="1.02em",g=1/s):(u=e+o+yr,d=e+o,f=Math.floor(1e3*e+o)+xr,l=wr("sqrtTall",u,f,o,t),l.style.minWidth="0.742em",g=1.056),l.height=d,l.style.height=O(u),{span:l,advanceWidth:g,ruleWidth:(t.fontMetrics().sqrtRuleThickness+o)*s}},Mo=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"],X4=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"],To=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],e0=[0,1.2,1.8,2.4,3],Y4=function(e,t,a,n,s){if(e==="<"||e==="\\lt"||e==="⟨"?e="\\langle":(e===">"||e==="\\gt"||e==="⟩")&&(e="\\rangle"),Mo.includes(e)||To.includes(e))return ko(e,t,!1,a,n,s);if(X4.includes(e))return Co(e,e0[t],!1,a,n,s);throw new L("Illegal delimiter: '"+e+"'")},Z4=[{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}],K4=[{type:"small",style:K.SCRIPTSCRIPT},{type:"small",style:K.SCRIPT},{type:"small",style:K.TEXT},{type:"stack"}],zo=[{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"}],J4=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.")},No=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=Qt(e,J4(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]},Ao=function(e,t,a,n,s,o){e==="<"||e==="\\lt"||e==="⟨"?e="\\langle":(e===">"||e==="\\gt"||e==="⟩")&&(e="\\rangle");var l;To.includes(e)?l=Z4:Mo.includes(e)?l=zo:l=K4;var u=No(e,t,l,n);return u.type==="small"?_4(e,u.style,a,n,s,o):u.type==="large"?ko(e,u.size,a,n,s,o):Co(e,t,a,n,s,o)},Q4=function(e,t,a,n,s,o){var l=n.fontMetrics().axisHeight*n.sizeMultiplier,u=901,d=5/n.fontMetrics().ptPerEm,f=Math.max(t-l,a+l),g=Math.max(f/500*u,2*f-d);return Ao(e,g,!0,n,s,o)},dt={sqrtImage:W4,sizedDelim:Y4,sizeToMaxHeight:e0,customSizedDelim:Ao,leftRightDelim:Q4},vn={"\\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}},ed=["(","\\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 X0(r,e){var t=$0(r);if(t&&ed.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)}V({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=X0(e[0],r);return{type:"delimsizing",mode:r.parser.mode,size:vn[r.funcName].size,mclass:vn[r.funcName].mclass,delim:t.text}},htmlBuilder:(r,e)=>r.delim==="."?C.makeSpan([r.mclass]):dt.sizedDelim(r.delim,r.size,e,r.mode,[r.mclass]),mathmlBuilder:r=>{var e=[];r.delim!=="."&&e.push(We(r.delim,r.mode));var t=new B.MathNode("mo",e);r.mclass==="mopen"||r.mclass==="mclose"?t.setAttribute("fence","true"):t.setAttribute("fence","false"),t.setAttribute("stretchy","true");var a=O(dt.sizeToMaxHeight[r.size]);return t.setAttribute("minsize",a),t.setAttribute("maxsize",a),t}});function gn(r){if(!r.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}V({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:X0(e[0],r).text,color:t}}});V({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(r,e)=>{var t=X0(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)=>{gn(r);for(var t=Te(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=n0(e,["mopen"]):l=dt.leftRightDelim(r.left,a,n,e,r.mode,["mopen"]),t.unshift(l),s)for(var u=1;u<t.length;u++){var d=t[u],f=d.isMiddle;f&&(t[u]=dt.leftRightDelim(f.delim,a,n,f.options,r.mode,[]))}var g;if(r.right===".")g=n0(e,["mclose"]);else{var y=r.rightColor?e.withColor(r.rightColor):e;g=dt.leftRightDelim(r.right,a,n,y,r.mode,["mclose"])}return t.push(g),C.makeSpan(["minner"],t,e)},mathmlBuilder:(r,e)=>{gn(r);var t=Pe(r.body,e);if(r.left!=="."){var a=new B.MathNode("mo",[We(r.left,r.mode)]);a.setAttribute("fence","true"),t.unshift(a)}if(r.right!=="."){var n=new B.MathNode("mo",[We(r.right,r.mode)]);n.setAttribute("fence","true"),r.rightColor&&n.setAttribute("mathcolor",r.rightColor),t.push(n)}return ia(t)}});V({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(r,e)=>{var t=X0(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=n0(e,[]);else{t=dt.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==="|"?We("|","text"):We(r.delim,r.mode),a=new B.MathNode("mo",[t]);return a.setAttribute("fence","true"),a.setAttribute("lspace","0.05em"),a.setAttribute("rspace","0.05em"),a}});var ma=(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=ge({number:.6,unit:"pt"},e),d=ge({number:.35,unit:"ex"},e),f=e.havingBaseSizing();n=n/f.sizeMultiplier;var g=t.height+t.depth+u+d;t.style.paddingLeft=O(g/2+u);var y=Math.floor(1e3*g*n),w=$2(y),M=new mt([new kt("phase",w)],{width:"400em",height:O(y/1e3),viewBox:"0 0 400000 "+y,preserveAspectRatio:"xMinYMin slice"});s=C.makeSvgSpan(["hide-tail"],[M],e),s.style.height=O(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,N=0,A=0;/box/.test(a)?(A=Math.max(e.fontMetrics().fboxrule,e.minRuleThickness),k=e.fontMetrics().fboxsep+(a==="colorbox"?0:A),N=k):a==="angl"?(A=Math.max(e.fontMetrics().defaultRuleThickness,e.minRuleThickness),k=4*A,N=Math.max(0,.25-t.depth)):(k=l?.2:0,N=k),s=ft.encloseSpan(t,a,k,N,e),/fbox|boxed|fcolorbox/.test(a)?(s.style.borderStyle="solid",s.style.borderWidth=O(A)):a==="angl"&&A!==.049&&(s.style.borderTopWidth=O(A),s.style.borderRightWidth=O(A)),o=t.depth+N,r.backgroundColor&&(s.style.backgroundColor=r.backgroundColor,r.borderColor&&(s.style.borderColor=r.borderColor))}var E;if(r.backgroundColor)E=C.makeVList({positionType:"individualShift",children:[{type:"elem",elem:s,shift:o},{type:"elem",elem:t,shift:0}]},e);else{var R=/cancel|phase/.test(a)?["svg-align"]:[];E=C.makeVList({positionType:"individualShift",children:[{type:"elem",elem:t,shift:0},{type:"elem",elem:s,shift:o,wrapperClasses:R}]},e)}return/cancel/.test(a)&&(E.height=t.height,E.depth=t.depth),/cancel/.test(a)&&!l?C.makeSpan(["mord","cancel-lap"],[E],e):C.makeSpan(["mord"],[E],e)},ha=(r,e)=>{var t=0,a=new B.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};V({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:ma,mathmlBuilder:ha});V({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:ma,mathmlBuilder:ha});V({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]}}});V({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:ma,mathmlBuilder:ha});V({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 Do={};function rt(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)Do[t[u]]=l;s&&(I0[e]=s),o&&(P0[e]=o)}var Ro={};function v(r,e){Ro[r]=e}function bn(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 Y0=r=>{var e=r.parser.settings;if(!e.displayMode)throw new L("{"+r.envName+"} can be used only in display mode.")};function fa(r){if(r.indexOf("ed")===-1)return r.indexOf("*")===-1}function Mt(r,e,t){var{hskipBeforeAndAfter:a,addJot:n,cols:s,arraystretch:o,colSeparationType:l,autoTag:u,singleRow:d,emptySingleRow:f,maxNumCols:g,leqno:y}=e;if(r.gullet.beginGroup(),d||r.gullet.macros.set("\\cr","\\\\\\relax"),!o){var w=r.gullet.expandMacroAsText("\\arraystretch");if(w==null)o=1;else if(o=parseFloat(w),!o||o<0)throw new L("Invalid \\arraystretch: "+w)}r.gullet.beginGroup();var M=[],k=[M],N=[],A=[],E=u!=null?[]:void 0;function R(){u&&r.gullet.macros.set("\\@eqnsw","1",!0)}function F(){E&&(r.gullet.macros.get("\\df@tag")?(E.push(r.subparse([new Ve("\\df@tag")])),r.gullet.macros.set("\\df@tag",void 0,!0)):E.push(!!u&&r.gullet.macros.get("\\@eqnsw")==="1"))}for(R(),A.push(bn(r));;){var q=r.parseExpression(!1,d?"\\end":"\\\\");r.gullet.endGroup(),r.gullet.beginGroup(),q={type:"ordgroup",mode:r.mode,body:q},t&&(q={type:"styling",mode:r.mode,style:t,body:[q]}),M.push(q);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&&q.type==="styling"&&q.body[0].body.length===0&&(k.length>1||!f)&&k.pop(),A.length<k.length+1&&A.push([]);break}else if(X==="\\\\"){r.consume();var _=void 0;r.gullet.future().text!==" "&&(_=r.parseSizeGroup(!0)),N.push(_?_.value:null),F(),A.push(bn(r)),M=[],k.push(M),R()}else throw new L("Expected & or \\\\ or \\cr or \\end",r.nextToken)}return r.gullet.endGroup(),r.gullet.endGroup(),{type:"array",mode:r.mode,addJot:n,arraystretch:o,body:k,cols:s,rowGaps:N,hskipBeforeAndAfter:a,hLinesBeforeRow:A,colSeparationType:l,tags:E,leqno:y}}function pa(r){return r.slice(0,1)==="d"?"display":"text"}var at=function(e,t){var a,n,s=e.body.length,o=e.hLinesBeforeRow,l=0,u=new Array(s),d=[],f=Math.max(t.fontMetrics().arrayRuleWidth,t.minRuleThickness),g=1/t.fontMetrics().ptPerEm,y=5*g;if(e.colSeparationType&&e.colSeparationType==="small"){var w=t.havingStyle(K.SCRIPT).sizeMultiplier;y=.2778*(w/t.sizeMultiplier)}var M=e.colSeparationType==="CD"?ge({number:3,unit:"ex"},t):12*g,k=3*g,N=e.arraystretch*M,A=.7*N,E=.3*N,R=0;function F(l0){for(var c0=0;c0<l0.length;++c0)c0>0&&(R+=.25),d.push({pos:R,isDashed:l0[c0]})}for(F(o[0]),a=0;a<e.body.length;++a){var q=e.body[a],X=A,_=E;l<q.length&&(l=q.length);var P=new Array(q.length);for(n=0;n<q.length;++n){var Y=re(q[n],t);_<Y.depth&&(_=Y.depth),X<Y.height&&(X=Y.height),P[n]=Y}var be=e.rowGaps[a],ue=0;be&&(ue=ge(be,t),ue>0&&(ue+=E,_<ue&&(_=ue),ue=0)),e.addJot&&(_+=k),P.height=X,P.depth=_,R+=X,P.pos=R,R+=_+ue,u[a]=P,F(o[a+1])}var te=R/2+t.fontMetrics().axisHeight,ye=e.cols||[],se=[],le,oe,Ce=[];if(e.tags&&e.tags.some(l0=>l0))for(a=0;a<s;++a){var G=u[a],Ae=G.pos-te,de=e.tags[a],ze=void 0;de===!0?ze=C.makeSpan(["eqn-num"],[],t):de===!1?ze=C.makeSpan([],[],t):ze=C.makeSpan([],Te(de,t,!0),t),ze.depth=G.depth,ze.height=G.height,Ce.push({type:"elem",elem:ze,shift:Ae})}for(n=0,oe=0;n<l||oe<ye.length;++n,++oe){for(var he=ye[oe]||{},me=!0;he.type==="separator";){if(me||(le=C.makeSpan(["arraycolsep"],[]),le.style.width=O(t.fontMetrics().doubleRuleSep),se.push(le)),he.separator==="|"||he.separator===":"){var pe=he.separator==="|"?"solid":"dashed",Ne=C.makeSpan(["vertical-separator"],[],t);Ne.style.height=O(R),Ne.style.borderRightWidth=O(f),Ne.style.borderRightStyle=pe,Ne.style.margin="0 "+O(-f/2);var Oe=R-te;Oe&&(Ne.style.verticalAlign=O(-Oe)),se.push(Ne)}else throw new L("Invalid separator type: "+he.separator);oe++,he=ye[oe]||{},me=!1}if(!(n>=l)){var ne=void 0;(n>0||e.hskipBeforeAndAfter)&&(ne=ae.deflt(he.pregap,y),ne!==0&&(le=C.makeSpan(["arraycolsep"],[]),le.style.width=O(ne),se.push(le)));var Be=[];for(a=0;a<s;++a){var Fe=u[a],qe=Fe[n];if(qe){var Ze=Fe.pos-te;qe.depth=Fe.depth,qe.height=Fe.height,Be.push({type:"elem",elem:qe,shift:Ze})}}Be=C.makeVList({positionType:"individualShift",children:Be},t),Be=C.makeSpan(["col-align-"+(he.align||"c")],[Be]),se.push(Be),(n<l-1||e.hskipBeforeAndAfter)&&(ne=ae.deflt(he.postgap,y),ne!==0&&(le=C.makeSpan(["arraycolsep"],[]),le.style.width=O(ne),se.push(le)))}}if(u=C.makeSpan(["mtable"],se),d.length>0){for(var Ge=C.makeLineSpan("hline",t,f),Tt=C.makeLineSpan("hdashline",t,f),j=[{type:"elem",elem:u,shift:0}];d.length>0;){var Le=d.pop(),Sa=Le.pos-te;Le.isDashed?j.push({type:"elem",elem:Tt,shift:Sa}):j.push({type:"elem",elem:Ge,shift:Sa})}u=C.makeVList({positionType:"individualShift",children:j},t)}if(Ce.length===0)return C.makeSpan(["mord"],[u],t);var K0=C.makeVList({positionType:"individualShift",children:Ce},t);return K0=C.makeSpan(["tag"],[K0],t),C.makeFragment([u,K0])},td={c:"center ",l:"left ",r:"right "},nt=function(e,t){for(var a=[],n=new B.MathNode("mtd",[],["mtr-glue"]),s=new B.MathNode("mtd",[],["mml-eqn-num"]),o=0;o<e.body.length;o++){for(var l=e.body[o],u=[],d=0;d<l.length;d++)u.push(new B.MathNode("mtd",[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 B.MathNode("mtr",u))}var f=new B.MathNode("mtable",a),g=e.arraystretch===.5?.1:.16+e.arraystretch-1+(e.addJot?.09:0);f.setAttribute("rowspacing",O(g));var y="",w="";if(e.cols&&e.cols.length>0){var M=e.cols,k="",N=!1,A=0,E=M.length;M[0].type==="separator"&&(y+="top ",A=1),M[M.length-1].type==="separator"&&(y+="bottom ",E-=1);for(var R=A;R<E;R++)M[R].type==="align"?(w+=td[M[R].align],N&&(k+="none "),N=!0):M[R].type==="separator"&&N&&(k+=M[R].separator==="|"?"solid ":"dashed ",N=!1);f.setAttribute("columnalign",w.trim()),/[sd]/.test(k)&&f.setAttribute("columnlines",k.trim())}if(e.colSeparationType==="align"){for(var F=e.cols||[],q="",X=1;X<F.length;X++)q+=X%2?"0em ":"1em ";f.setAttribute("columnspacing",q.trim())}else e.colSeparationType==="alignat"||e.colSeparationType==="gather"?f.setAttribute("columnspacing","0em"):e.colSeparationType==="small"?f.setAttribute("columnspacing","0.2778em"):e.colSeparationType==="CD"?f.setAttribute("columnspacing","0.5em"):f.setAttribute("columnspacing","1em");var _="",P=e.hLinesBeforeRow;y+=P[0].length>0?"left ":"",y+=P[P.length-1].length>0?"right ":"";for(var Y=1;Y<P.length-1;Y++)_+=P[Y].length===0?"none ":P[Y][0]?"dashed ":"solid ";return/[sd]/.test(_)&&f.setAttribute("rowlines",_.trim()),y!==""&&(f=new B.MathNode("menclose",[f]),f.setAttribute("notation",y.trim())),e.arraystretch&&e.arraystretch<1&&(f=new B.MathNode("mstyle",[f]),f.setAttribute("scriptlevel","1")),f},Eo=function(e,t){e.envName.indexOf("ed")===-1&&Y0(e);var a=[],n=e.envName.indexOf("at")>-1?"alignat":"align",s=e.envName==="split",o=Mt(e.parser,{cols:a,addJot:!0,autoTag:s?void 0:fa(e.envName),emptySingleRow:!0,colSeparationType:n,maxNumCols:s?2:void 0,leqno:e.parser.settings.leqno},"display"),l,u=0,d={type:"ordgroup",mode:e.mode,body:[]};if(t[0]&&t[0].type==="ordgroup"){for(var f="",g=0;g<t[0].body.length;g++){var y=Q(t[0].body[g],"textord");f+=y.text}l=Number(f),u=l*2}var w=!u;o.body.forEach(function(A){for(var E=1;E<A.length;E+=2){var R=Q(A[E],"styling"),F=Q(R.body[0],"ordgroup");F.body.unshift(d)}if(w)u<A.length&&(u=A.length);else{var q=A.length/2;if(l<q)throw new L("Too many math in a row: "+("expected "+l+", but got "+q),A[0])}});for(var M=0;M<u;++M){var k="r",N=0;M%2===1?k="l":M>0&&w&&(N=1),a[M]={type:"align",align:k,pregap:N,postgap:0}}return o.colSeparationType=w?"align":"alignat",o};rt({type:"array",names:["array","darray"],props:{numArgs:1},handler(r,e){var t=$0(e[0]),a=t?[e[0]]:Q(e[0],"ordgroup").body,n=a.map(function(o){var l=ca(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 Mt(r.parser,s,pa(r.envName))},htmlBuilder:at,mathmlBuilder:nt});rt({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=Mt(r.parser,a,pa(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:at,mathmlBuilder:nt});rt({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(r){var e={arraystretch:.5},t=Mt(r.parser,e,"script");return t.colSeparationType="small",t},htmlBuilder:at,mathmlBuilder:nt});rt({type:"array",names:["subarray"],props:{numArgs:1},handler(r,e){var t=$0(e[0]),a=t?[e[0]]:Q(e[0],"ordgroup").body,n=a.map(function(o){var l=ca(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=Mt(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:at,mathmlBuilder:nt});rt({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=Mt(r.parser,e,pa(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:at,mathmlBuilder:nt});rt({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:Eo,htmlBuilder:at,mathmlBuilder:nt});rt({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(r){["gather","gather*"].includes(r.envName)&&Y0(r);var e={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:fa(r.envName),emptySingleRow:!0,leqno:r.parser.settings.leqno};return Mt(r.parser,e,"display")},htmlBuilder:at,mathmlBuilder:nt});rt({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:Eo,htmlBuilder:at,mathmlBuilder:nt});rt({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(r){Y0(r);var e={autoTag:fa(r.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:r.parser.settings.leqno};return Mt(r.parser,e,"display")},htmlBuilder:at,mathmlBuilder:nt});rt({type:"array",names:["CD"],props:{numArgs:0},handler(r){return Y0(r),H4(r.parser)},htmlBuilder:at,mathmlBuilder:nt});v("\\nonumber","\\gdef\\@eqnsw{0}");v("\\notag","\\nonumber");V({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 xn=Do;V({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(!xn.hasOwnProperty(s))throw new L("No such environment: "+s,n);var l=xn[s],{args:u,optArgs:d}=t.parseArguments("\\begin{"+s+"}",l),f={mode:t.mode,envName:s,parser:t},g=l.handler(f,u,d);t.expect("\\end",!1);var y=t.nextToken,w=Q(t.parseFunction(),"environment");if(w.name!==s)throw new L("Mismatch: \\begin{"+s+"} matched by \\end{"+w.name+"}",y);return g}return{type:"environment",mode:t.mode,name:s,nameGroup:n}}});var Bo=(r,e)=>{var t=r.font,a=e.withFont(t);return re(r.body,a)},Lo=(r,e)=>{var t=r.font,a=e.withFont(t);return ie(r.body,a)},yn={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};V({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=O0(e[0]),s=a;return s in yn&&(s=yn[s]),{type:"font",mode:t.mode,font:s.slice(1),body:n}},htmlBuilder:Bo,mathmlBuilder:Lo});V({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:W0(a),body:[{type:"font",mode:t.mode,font:"boldsymbol",body:a}],isCharacterBox:n}}});V({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:Bo,mathmlBuilder:Lo});var jo=(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},va=(r,e)=>{var t=jo(r.size,e.style),a=t.fracNum(),n=t.fracDen(),s;s=e.havingStyle(a);var o=re(r.numer,s,e);if(r.continued){var l=8.5/e.fontMetrics().ptPerEm,u=3.5/e.fontMetrics().ptPerEm;o.height=o.height<l?l:o.height,o.depth=o.depth<u?u:o.depth}s=e.havingStyle(n);var d=re(r.denom,s,e),f,g,y;r.hasBarLine?(r.barSize?(g=ge(r.barSize,e),f=C.makeLineSpan("frac-line",e,g)):f=C.makeLineSpan("frac-line",e),g=f.height,y=f.height):(f=null,g=0,y=e.fontMetrics().defaultRuleThickness);var w,M,k;t.size===K.DISPLAY.size||r.size==="display"?(w=e.fontMetrics().num1,g>0?M=3*y:M=7*y,k=e.fontMetrics().denom1):(g>0?(w=e.fontMetrics().num2,M=y):(w=e.fontMetrics().num3,M=3*y),k=e.fontMetrics().denom2);var N;if(f){var E=e.fontMetrics().axisHeight;w-o.depth-(E+.5*g)<M&&(w+=M-(w-o.depth-(E+.5*g))),E-.5*g-(d.height-k)<M&&(k+=M-(E-.5*g-(d.height-k)));var R=-(E-.5*g);N=C.makeVList({positionType:"individualShift",children:[{type:"elem",elem:d,shift:k},{type:"elem",elem:f,shift:R},{type:"elem",elem:o,shift:-w}]},e)}else{var A=w-o.depth-(d.height-k);A<M&&(w+=.5*(M-A),k+=.5*(M-A)),N=C.makeVList({positionType:"individualShift",children:[{type:"elem",elem:d,shift:k},{type:"elem",elem:o,shift:-w}]},e)}s=e.havingStyle(t),N.height*=s.sizeMultiplier/e.sizeMultiplier,N.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 q,X;return r.leftDelim==null?q=n0(e,["mopen"]):q=dt.customSizedDelim(r.leftDelim,F,!0,e.havingStyle(t),r.mode,["mopen"]),r.continued?X=C.makeSpan([]):r.rightDelim==null?X=n0(e,["mclose"]):X=dt.customSizedDelim(r.rightDelim,F,!0,e.havingStyle(t),r.mode,["mclose"]),C.makeSpan(["mord"].concat(s.sizingClasses(e)),[q,C.makeSpan(["mfrac"],[N]),X],e)},ga=(r,e)=>{var t=new B.MathNode("mfrac",[ie(r.numer,e),ie(r.denom,e)]);if(!r.hasBarLine)t.setAttribute("linethickness","0px");else if(r.barSize){var a=ge(r.barSize,e);t.setAttribute("linethickness",O(a))}var n=jo(r.size,e.style);if(n.size!==e.style.size){t=new B.MathNode("mstyle",[t]);var s=n.size===K.DISPLAY.size?"true":"false";t.setAttribute("displaystyle",s),t.setAttribute("scriptlevel","0")}if(r.leftDelim!=null||r.rightDelim!=null){var o=[];if(r.leftDelim!=null){var l=new B.MathNode("mo",[new B.TextNode(r.leftDelim.replace("\\",""))]);l.setAttribute("fence","true"),o.push(l)}if(o.push(t),r.rightDelim!=null){var u=new B.MathNode("mo",[new B.TextNode(r.rightDelim.replace("\\",""))]);u.setAttribute("fence","true"),o.push(u)}return ia(o)}return t};V({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:va,mathmlBuilder:ga});V({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}}});V({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 wn=["display","text","script","scriptscript"],Sn=function(e){var t=null;return e.length>0&&(t=e,t=t==="."?null:t),t};V({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=O0(e[0]),o=s.type==="atom"&&s.family==="open"?Sn(s.text):null,l=O0(e[1]),u=l.type==="atom"&&l.family==="close"?Sn(l.text):null,d=Q(e[2],"size"),f,g=null;d.isBlank?f=!0:(g=d.value,f=g.number>0);var y="auto",w=e[3];if(w.type==="ordgroup"){if(w.body.length>0){var M=Q(w.body[0],"textord");y=wn[Number(M.text)]}}else w=Q(w,"textord"),y=wn[Number(w.text)];return{type:"genfrac",mode:t.mode,numer:a,denom:n,continued:!1,hasBarLine:f,barSize:g,leftDelim:o,rightDelim:u,size:y}},htmlBuilder:va,mathmlBuilder:ga});V({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}}});V({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(r,e)=>{var{parser:t,funcName:a}=r,n=e[0],s=R2(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:va,mathmlBuilder:ga});var Io=(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=ft.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)},rd=(r,e)=>{var t=ft.mathMLnode(r.label);return new B.MathNode(r.isOver?"mover":"munder",[ie(r.base,e),t])};V({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:Io,mathmlBuilder:rd});V({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:we(a)}:t.formatUnsupportedCmd("\\href")},htmlBuilder:(r,e)=>{var t=Te(r.body,e,!1);return C.makeAnchor(r.href,[],t,e)},mathmlBuilder:(r,e)=>{var t=Ct(r.body,e);return t instanceof He||(t=new He("mrow",[t])),t.setAttribute("href",r.href),t}});V({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:we(l)}}});V({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:we(e[0])}},htmlBuilder(r,e){var t=Te(r.body,e,!1);return C.makeFragment(t)},mathmlBuilder(r,e){return new B.MathNode("mrow",Pe(r.body,e))}});V({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],props:{numArgs:2,argTypes:["raw","original"],allowedInText:!0},handler:(r,e)=>{var{parser:t,funcName:a,token:n}=r,s=Q(e[0],"raw").string,o=e[1];t.settings.strict&&t.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var l,u={};switch(a){case"\\htmlClass":u.class=s,l={command:"\\htmlClass",class:s};break;case"\\htmlId":u.id=s,l={command:"\\htmlId",id:s};break;case"\\htmlStyle":u.style=s,l={command:"\\htmlStyle",style:s};break;case"\\htmlData":{for(var d=s.split(","),f=0;f<d.length;f++){var g=d[f].split("=");if(g.length!==2)throw new L("Error parsing key-value for \\htmlData");u["data-"+g[0].trim()]=g[1].trim()}l={command:"\\htmlData",attributes:u};break}default:throw new Error("Unrecognized html command")}return t.settings.isTrusted(l)?{type:"html",mode:t.mode,attributes:u,body:we(o)}:t.formatUnsupportedCmd(a)},htmlBuilder:(r,e)=>{var t=Te(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)=>Ct(r.body,e)});V({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:(r,e)=>{var{parser:t}=r;return{type:"htmlmathml",mode:t.mode,html:we(e[0]),mathml:we(e[1])}},htmlBuilder:(r,e)=>{var t=Te(r.html,e,!1);return C.makeFragment(t)},mathmlBuilder:(r,e)=>Ct(r.mathml,e)});var Sr=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(!eo(a))throw new L("Invalid unit: '"+a.unit+"' in \\includegraphics.");return a};V({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(r,e,t)=>{var{parser:a}=r,n={number:0,unit:"em"},s={number:.9,unit:"em"},o={number:0,unit:"em"},l="";if(t[0])for(var u=Q(t[0],"raw").string,d=u.split(","),f=0;f<d.length;f++){var g=d[f].split("=");if(g.length===2){var y=g[1].trim();switch(g[0].trim()){case"alt":l=y;break;case"width":n=Sr(y);break;case"height":s=Sr(y);break;case"totalheight":o=Sr(y);break;default:throw new L("Invalid key: '"+g[0]+"' in \\includegraphics.")}}}var w=Q(e[0],"url").url;return l===""&&(l=w,l=l.replace(/^.*[\\/]/,""),l=l.substring(0,l.lastIndexOf("."))),a.settings.isTrusted({command:"\\includegraphics",url:w})?{type:"includegraphics",mode:a.mode,alt:l,width:n,height:s,totalheight:o,src:w}:a.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:(r,e)=>{var t=ge(r.height,e),a=0;r.totalheight.number>0&&(a=ge(r.totalheight,e)-t);var n=0;r.width.number>0&&(n=ge(r.width,e));var s={height:O(t+a)};n>0&&(s.width=O(n)),a>0&&(s.verticalAlign=O(-a));var o=new r4(r.src,r.alt,s);return o.height=t,o.depth=a,o},mathmlBuilder:(r,e)=>{var t=new B.MathNode("mglyph",[]);t.setAttribute("alt",r.alt);var a=ge(r.height,e),n=0;if(r.totalheight.number>0&&(n=ge(r.totalheight,e)-a,t.setAttribute("valign",O(-n))),t.setAttribute("height",O(a+n)),r.width.number>0){var s=ge(r.width,e);t.setAttribute("width",O(s))}return t.setAttribute("src",r.src),t}});V({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=ge(r.dimension,e);return new B.SpaceNode(t)}});V({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=O(n.height+n.depth),n.depth&&(s.style.verticalAlign=O(-n.depth)),n.children.unshift(s),n=C.makeSpan(["thinbox"],[n],e),C.makeSpan(["mord","vbox"],[n],e)},mathmlBuilder:(r,e)=>{var t=new B.MathNode("mpadded",[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}});V({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}}});V({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(r,e){throw new L("Mismatched "+r.funcName)}});var kn=(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}};V({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(r,e)=>{var{parser:t}=r;return{type:"mathchoice",mode:t.mode,display:we(e[0]),text:we(e[1]),script:we(e[2]),scriptscript:we(e[3])}},htmlBuilder:(r,e)=>{var t=kn(r,e),a=Te(t,e,!1);return C.makeFragment(a)},mathmlBuilder:(r,e)=>{var t=kn(r,e);return Ct(t,e)}});var Po=(r,e,t,a,n,s,o)=>{r=C.makeSpan([],[r]);var l=t&&ae.isCharacterBox(t),u,d;if(e){var f=re(e,a.havingStyle(n.sup()),a);d={elem:f,kern:Math.max(a.fontMetrics().bigOpSpacing1,a.fontMetrics().bigOpSpacing3-f.depth)}}if(t){var g=re(t,a.havingStyle(n.sub()),a);u={elem:g,kern:Math.max(a.fontMetrics().bigOpSpacing2,a.fontMetrics().bigOpSpacing4-g.height)}}var y;if(d&&u){var w=a.fontMetrics().bigOpSpacing5+u.elem.height+u.elem.depth+u.kern+r.depth+o;y=C.makeVList({positionType:"bottom",positionData:w,children:[{type:"kern",size:a.fontMetrics().bigOpSpacing5},{type:"elem",elem:u.elem,marginLeft:O(-s)},{type:"kern",size:u.kern},{type:"elem",elem:r},{type:"kern",size:d.kern},{type:"elem",elem:d.elem,marginLeft:O(s)},{type:"kern",size:a.fontMetrics().bigOpSpacing5}]},a)}else if(u){var M=r.height-o;y=C.makeVList({positionType:"top",positionData:M,children:[{type:"kern",size:a.fontMetrics().bigOpSpacing5},{type:"elem",elem:u.elem,marginLeft:O(-s)},{type:"kern",size:u.kern},{type:"elem",elem:r}]},a)}else if(d){var k=r.depth+o;y=C.makeVList({positionType:"bottom",positionData:k,children:[{type:"elem",elem:r},{type:"kern",size:d.kern},{type:"elem",elem:d.elem,marginLeft:O(s)},{type:"kern",size:a.fontMetrics().bigOpSpacing5}]},a)}else return r;var N=[y];if(u&&s!==0&&!l){var A=C.makeSpan(["mspace"],[],a);A.style.marginRight=O(s),N.unshift(A)}return C.makeSpan(["mop","op-limits"],N,a)},Oo=["\\smallint"],Kt=(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&&!Oo.includes(s.name)&&(l=!0);var u;if(s.symbol){var d=l?"Size2-Regular":"Size1-Regular",f="";if((s.name==="\\oiint"||s.name==="\\oiiint")&&(f=s.name.slice(1),s.name=f==="oiint"?"\\iint":"\\iiint"),u=C.makeSymbol(s.name,d,"math",e,["mop","op-symbol",l?"large-op":"small-op"]),f.length>0){var g=u.italic,y=C.staticSvg(f+"Size"+(l?"2":"1"),e);u=C.makeVList({positionType:"individualShift",children:[{type:"elem",elem:u,shift:0},{type:"elem",elem:y,shift:l?.08:0}]},e),s.name="\\"+f,u.classes.unshift("mop"),u.italic=g}}else if(s.body){var w=Te(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 N=0,A=0;return(u instanceof $e||s.name==="\\oiint"||s.name==="\\oiiint")&&!s.suppressBaseShift&&(N=(u.height-u.depth)/2-e.fontMetrics().axisHeight,A=u.italic),n?Po(u,t,a,e,o,A,N):(N&&(u.style.position="relative",u.style.top=O(N)),u)},i0=(r,e)=>{var t;if(r.symbol)t=new He("mo",[We(r.name,r.mode)]),Oo.includes(r.name)&&t.setAttribute("largeop","false");else if(r.body)t=new He("mo",Pe(r.body,e));else{t=new He("mi",[new et(r.name.slice(1))]);var a=new He("mo",[We("⁡","text")]);r.parentIsSupSub?t=new He("mrow",[t,a]):t=mo([t,a])}return t},ad={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};V({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=ad[n]),{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:n}},htmlBuilder:Kt,mathmlBuilder:i0});V({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:we(a)}},htmlBuilder:Kt,mathmlBuilder:i0});var nd={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};V({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:Kt,mathmlBuilder:i0});V({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:Kt,mathmlBuilder:i0});V({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=nd[a]),{type:"op",mode:e.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:a}},htmlBuilder:Kt,mathmlBuilder:i0});var Fo=(r,e)=>{var t,a,n=!1,s;r.type==="supsub"?(t=r.sup,a=r.sub,s=Q(r.base,"operatorname"),n=!0):s=Q(r,"operatorname");var o;if(s.body.length>0){for(var l=s.body.map(g=>{var y=g.text;return typeof y=="string"?{type:"textord",mode:g.mode,text:y}:g}),u=Te(l,e.withFont("mathrm"),!0),d=0;d<u.length;d++){var f=u[d];f instanceof $e&&(f.text=f.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}o=C.makeSpan(["mop"],u,e)}else o=C.makeSpan(["mop"],[],e);return n?Po(o,t,a,e,e.style,0,0):o},sd=(r,e)=>{for(var t=Pe(r.body,e.withFont("mathrm")),a=!0,n=0;n<t.length;n++){var s=t[n];if(!(s instanceof B.SpaceNode))if(s instanceof B.MathNode)switch(s.type){case"mi":case"mn":case"ms":case"mspace":case"mtext":break;case"mo":{var o=s.children[0];s.children.length===1&&o instanceof B.TextNode?o.text=o.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):a=!1;break}default:a=!1}else a=!1}if(a){var l=t.map(f=>f.toText()).join("");t=[new B.TextNode(l)]}var u=new B.MathNode("mi",t);u.setAttribute("mathvariant","normal");var d=new B.MathNode("mo",[We("⁡","text")]);return r.parentIsSupSub?new B.MathNode("mrow",[u,d]):B.newDocumentFragment([u,d])};V({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:we(n),alwaysHandleSupSub:a==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:Fo,mathmlBuilder:sd});v("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");jt({type:"ordgroup",htmlBuilder(r,e){return r.semisimple?C.makeFragment(Te(r.body,e,!1)):C.makeSpan(["mord"],Te(r.body,e,!0),e)},mathmlBuilder(r,e){return Ct(r.body,e,!0)}});V({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 B.MathNode("mo",[new B.TextNode("‾")]);t.setAttribute("stretchy","true");var a=new B.MathNode("mover",[ie(r.body,e),t]);return a.setAttribute("accent","true"),a}});V({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:we(a)}},htmlBuilder:(r,e)=>{var t=Te(r.body,e.withPhantom(),!1);return C.makeFragment(t)},mathmlBuilder:(r,e)=>{var t=Pe(r.body,e);return new B.MathNode("mphantom",t)}});V({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=Pe(we(r.body),e),a=new B.MathNode("mphantom",t),n=new B.MathNode("mpadded",[a]);return n.setAttribute("height","0px"),n.setAttribute("depth","0px"),n}});V({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=Pe(we(r.body),e),a=new B.MathNode("mphantom",t),n=new B.MathNode("mpadded",[a]);return n.setAttribute("width","0px"),n}});V({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=ge(r.dy,e);return C.makeVList({positionType:"shift",positionData:-a,children:[{type:"elem",elem:t}]},e)},mathmlBuilder(r,e){var t=new B.MathNode("mpadded",[ie(r.body,e)]),a=r.dy.number+r.dy.unit;return t.setAttribute("voffset",a),t}});V({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(r){var{parser:e}=r;return{type:"internal",mode:e.mode}}});V({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=ge(r.width,e),n=ge(r.height,e),s=r.shift?ge(r.shift,e):0;return t.style.borderRightWidth=O(a),t.style.borderTopWidth=O(n),t.style.bottom=O(s),t.width=a,t.height=n+s,t.depth=-s,t.maxFontSize=n*1.125*e.sizeMultiplier,t},mathmlBuilder(r,e){var t=ge(r.width,e),a=ge(r.height,e),n=r.shift?ge(r.shift,e):0,s=e.color&&e.getColor()||"black",o=new B.MathNode("mspace");o.setAttribute("mathbackground",s),o.setAttribute("width",O(t)),o.setAttribute("height",O(a));var l=new B.MathNode("mpadded",[o]);return n>=0?l.setAttribute("height",O(n)):(l.setAttribute("height",O(n)),l.setAttribute("depth",O(-n))),l.setAttribute("voffset",O(n)),l}});function qo(r,e,t){for(var a=Te(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 Cn=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],od=(r,e)=>{var t=e.havingSize(r.size);return qo(r.body,t,e)};V({type:"sizing",names:Cn,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:Cn.indexOf(a)+1,body:s}},htmlBuilder:od,mathmlBuilder:(r,e)=>{var t=e.havingSize(r.size),a=Pe(r.body,t),n=new B.MathNode("mstyle",a);return n.setAttribute("mathsize",O(t.sizeMultiplier)),n}});V({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(r,e,t)=>{var{parser:a}=r,n=!1,s=!1,o=t[0]&&Q(t[0],"ordgroup");if(o)for(var l="",u=0;u<o.body.length;++u){var d=o.body[u];if(l=d.text,l==="t")n=!0;else if(l==="b")s=!0;else{n=!1,s=!1;break}}else n=!0,s=!0;var f=e[0];return{type:"smash",mode:a.mode,body:f,smashHeight:n,smashDepth:s}},htmlBuilder:(r,e)=>{var t=C.makeSpan([],[re(r.body,e)]);if(!r.smashHeight&&!r.smashDepth)return t;if(r.smashHeight&&(t.height=0,t.children))for(var a=0;a<t.children.length;a++)t.children[a].height=0;if(r.smashDepth&&(t.depth=0,t.children))for(var n=0;n<t.children.length;n++)t.children[n].depth=0;var s=C.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:t}]},e);return C.makeSpan(["mord"],[s],e)},mathmlBuilder:(r,e)=>{var t=new B.MathNode("mpadded",[ie(r.body,e)]);return r.smashHeight&&t.setAttribute("height","0px"),r.smashDepth&&t.setAttribute("depth","0px"),t}});V({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(r,e,t){var{parser:a}=r,n=t[0],s=e[0];return{type:"sqrt",mode:a.mode,body:s,index:n}},htmlBuilder(r,e){var t=re(r.body,e.havingCrampedStyle());t.height===0&&(t.height=e.fontMetrics().xHeight),t=C.wrapFragment(t,e);var a=e.fontMetrics(),n=a.defaultRuleThickness,s=n;e.style.id<K.TEXT.id&&(s=e.fontMetrics().xHeight);var o=n+s/4,l=t.height+t.depth+o+n,{span:u,ruleWidth:d,advanceWidth:f}=dt.sqrtImage(l,e),g=u.height-d;g>t.height+t.depth+o&&(o=(o+g-t.height-t.depth)/2);var y=u.height-t.height-o-d;t.style.paddingLeft=O(f);var w=C.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:t,wrapperClasses:["svg-align"]},{type:"kern",size:-(t.height+y)},{type:"elem",elem:u},{type:"kern",size:d}]},e);if(r.index){var M=e.havingStyle(K.SCRIPTSCRIPT),k=re(r.index,M,e),N=.6*(w.height-w.depth),A=C.makeVList({positionType:"shift",positionData:-N,children:[{type:"elem",elem:k}]},e),E=C.makeSpan(["root"],[A]);return C.makeSpan(["mord","sqrt"],[E,w],e)}else return C.makeSpan(["mord","sqrt"],[w],e)},mathmlBuilder(r,e){var{body:t,index:a}=r;return a?new B.MathNode("mroot",[ie(t,e),ie(a,e)]):new B.MathNode("msqrt",[ie(t,e)])}});var Mn={display:K.DISPLAY,text:K.TEXT,script:K.SCRIPT,scriptscript:K.SCRIPTSCRIPT};V({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=Mn[r.style],a=e.havingStyle(t).withFont("");return qo(r.body,a,e)},mathmlBuilder(r,e){var t=Mn[r.style],a=e.havingStyle(t),n=Pe(r.body,a),s=new B.MathNode("mstyle",n),o={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},l=o[r.style];return s.setAttribute("scriptlevel",l[0]),s.setAttribute("displaystyle",l[1]),s}});var id=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?Kt:null}else if(a.type==="operatorname"){var s=a.alwaysHandleSupSub&&(t.style.size===K.DISPLAY.size||a.limits);return s?Fo:null}else{if(a.type==="accent")return ae.isCharacterBox(a.base)?ua:null;if(a.type==="horizBrace"){var o=!e.sub;return o===a.isOver?Io:null}else return null}else return null};jt({type:"supsub",htmlBuilder(r,e){var t=id(r,e);if(t)return t(r,e);var{base:a,sup:n,sub:s}=r,o=re(a,e),l,u,d=e.fontMetrics(),f=0,g=0,y=a&&ae.isCharacterBox(a);if(n){var w=e.havingStyle(e.style.sup());l=re(n,w,e),y||(f=o.height-w.fontMetrics().supDrop*w.sizeMultiplier/e.sizeMultiplier)}if(s){var M=e.havingStyle(e.style.sub());u=re(s,M,e),y||(g=o.depth+M.fontMetrics().subDrop*M.sizeMultiplier/e.sizeMultiplier)}var k;e.style===K.DISPLAY?k=d.sup1:e.style.cramped?k=d.sup3:k=d.sup2;var N=e.sizeMultiplier,A=O(.5/d.ptPerEm/N),E=null;if(u){var R=r.base&&r.base.type==="op"&&r.base.name&&(r.base.name==="\\oiint"||r.base.name==="\\oiiint");(o instanceof $e||R)&&(E=O(-o.italic))}var F;if(l&&u){f=Math.max(f,k,l.depth+.25*d.xHeight),g=Math.max(g,d.sub2);var q=d.defaultRuleThickness,X=4*q;if(f-l.depth-(u.height-g)<X){g=X-(f-l.depth)+u.height;var _=.8*d.xHeight-(f-l.depth);_>0&&(f+=_,g-=_)}var P=[{type:"elem",elem:u,shift:g,marginRight:A,marginLeft:E},{type:"elem",elem:l,shift:-f,marginRight:A}];F=C.makeVList({positionType:"individualShift",children:P},e)}else if(u){g=Math.max(g,d.sub1,u.height-.8*d.xHeight);var Y=[{type:"elem",elem:u,marginLeft:E,marginRight:A}];F=C.makeVList({positionType:"shift",positionData:g,children:Y},e)}else if(l)f=Math.max(f,k,l.depth+.25*d.xHeight),F=C.makeVList({positionType:"shift",positionData:-f,children:[{type:"elem",elem:l,marginRight:A}]},e);else throw new Error("supsub must have either sup or sub.");var be=Or(o,"right")||"mord";return C.makeSpan([be],[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 B.MathNode(o,s)}});jt({type:"atom",htmlBuilder(r,e){return C.mathsym(r.text,r.mode,e,["m"+r.family])},mathmlBuilder(r,e){var t=new B.MathNode("mo",[We(r.text,r.mode)]);if(r.family==="bin"){var a=la(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 Ho={mi:"italic",mn:"normal",mtext:"normal"};jt({type:"mathord",htmlBuilder(r,e){return C.makeOrd(r,e,"mathord")},mathmlBuilder(r,e){var t=new B.MathNode("mi",[We(r.text,r.mode,e)]),a=la(r,e)||"italic";return a!==Ho[t.type]&&t.setAttribute("mathvariant",a),t}});jt({type:"textord",htmlBuilder(r,e){return C.makeOrd(r,e,"textord")},mathmlBuilder(r,e){var t=We(r.text,r.mode,e),a=la(r,e)||"normal",n;return r.mode==="text"?n=new B.MathNode("mtext",[t]):/[0-9]/.test(r.text)?n=new B.MathNode("mn",[t]):r.text==="\\prime"?n=new B.MathNode("mo",[t]):n=new B.MathNode("mi",[t]),a!==Ho[n.type]&&n.setAttribute("mathvariant",a),n}});var kr={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},Cr={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};jt({type:"spacing",htmlBuilder(r,e){if(Cr.hasOwnProperty(r.text)){var t=Cr[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(kr.hasOwnProperty(r.text))return C.makeSpan(["mspace",kr[r.text]],[],e);throw new L('Unknown type of space "'+r.text+'"')}},mathmlBuilder(r,e){var t;if(Cr.hasOwnProperty(r.text))t=new B.MathNode("mtext",[new B.TextNode(" ")]);else{if(kr.hasOwnProperty(r.text))return new B.MathNode("mspace");throw new L('Unknown type of space "'+r.text+'"')}return t}});var Tn=()=>{var r=new B.MathNode("mtd",[]);return r.setAttribute("width","50%"),r};jt({type:"tag",mathmlBuilder(r,e){var t=new B.MathNode("mtable",[new B.MathNode("mtr",[Tn(),new B.MathNode("mtd",[Ct(r.body,e)]),Tn(),new B.MathNode("mtd",[Ct(r.tag,e)])])]);return t.setAttribute("width","100%"),t}});var zn={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},Nn={"\\textbf":"textbf","\\textmd":"textmd"},ld={"\\textit":"textit","\\textup":"textup"},An=(r,e)=>{var t=r.font;if(t){if(zn[t])return e.withTextFontFamily(zn[t]);if(Nn[t])return e.withTextFontWeight(Nn[t]);if(t==="\\emph")return e.fontShape==="textit"?e.withTextFontShape("textup"):e.withTextFontShape("textit")}else return e;return e.withTextFontShape(ld[t])};V({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:we(n),font:a}},htmlBuilder(r,e){var t=An(r,e),a=Te(r.body,t,!0);return C.makeSpan(["mord","text"],a,t)},mathmlBuilder(r,e){var t=An(r,e);return Ct(r.body,t)}});V({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 B.MathNode("mo",[new B.TextNode("‾")]);t.setAttribute("stretchy","true");var a=new B.MathNode("munder",[ie(r.body,e),t]);return a.setAttribute("accentunder","true"),a}});V({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 B.MathNode("mpadded",[ie(r.body,e)],["vcenter"])}});V({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=Dn(r),a=[],n=e.havingStyle(e.style.text()),s=0;s<t.length;s++){var o=t[s];o==="~"&&(o="\\textasciitilde"),a.push(C.makeSymbol(o,"Typewriter-Regular",r.mode,n,["mord","texttt"]))}return C.makeSpan(["mord","text"].concat(n.sizingClasses(e)),C.tryCombineChars(a),n)},mathmlBuilder(r,e){var t=new B.TextNode(Dn(r)),a=new B.MathNode("mtext",[t]);return a.setAttribute("mathvariant","monospace"),a}});var Dn=r=>r.body.replace(/ /g,r.star?"␣":" "),yt=co,Vo=`[ \r
326
- ]`,cd="\\\\[a-zA-Z@]+",ud="\\\\[^\uD800-\uDFFF]",dd="("+cd+")"+Vo+"*",md=`\\\\(
327
- |[ \r ]+
328
- ?)[ \r ]*`,Vr="[̀-ͯ]",hd=new RegExp(Vr+"+$"),fd="("+Vo+"+)|"+(md+"|")+"([!-\\[\\]-‧‪-퟿豈-￿]"+(Vr+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(Vr+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+dd)+("|"+ud+")");class Rn{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(fd,"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 Ve("EOF",new Ie(this,t,t));var a=this.tokenRegex.exec(e);if(a===null||a.index!==t)throw new L("Unexpected character: '"+e[t]+"'",new Ve(e[t],new Ie(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 Ve(n,new Ie(this,t,this.tokenRegex.lastIndex))}}class pd{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 vd=Ro;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 En={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=En[e.text],a==null||a>=t)throw new L("Invalid base-"+t+" digit "+e.text);for(var n;(n=En[r.future().text])!=null&&n<t;)a*=t,a+=n,r.popToken()}return"\\@char{"+a+"}"});var ba=(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=>ba(r,!1,!0,!1));v("\\renewcommand",r=>ba(r,!0,!1,!1));v("\\providecommand",r=>ba(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),yt[t],ce.math[t],ce.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 Bn={",":"\\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 Bn?e=Bn[t]:(t.slice(0,4)==="\\not"||t in ce.math&&["bin","rel"].includes(ce.math[t].group))&&(e="\\dotsb"),e});var xa={")":!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 xa?"\\ldots\\,":"\\ldots"});v("\\dotsc",function(r){var e=r.future().text;return e in xa&&e!==","?"\\ldots\\,":"\\ldots"});v("\\cdots",function(r){var e=r.future().text;return e in xa?"\\@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 _o=O(Qe["Main-Regular"][84][1]-.7*Qe["Main-Regular"][65][1]);v("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+_o+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");v("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+_o+"}{\\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 Go=r=>e=>{var t=e.consumeArg().tokens,a=e.consumeArg().tokens,n=e.consumeArg().tokens,s=e.consumeArg().tokens,o=e.macros.get("|"),l=e.macros.get("\\|");e.macros.beginGroup();var u=g=>y=>{r&&(y.macros.set("|",o),n.length&&y.macros.set("\\|",l));var w=g;if(!g&&n.length){var M=y.future();M.text==="|"&&(y.popToken(),w=!0)}return{tokens:w?n:a,numArgs:0}};e.macros.set("|",u(!1)),n.length&&e.macros.set("\\|",u(!0));var d=e.consumeArg().tokens,f=e.expandTokens([...s,...d,...t]);return e.macros.endGroup(),{tokens:f.reverse(),numArgs:0}};v("\\bra@ket",Go(!1));v("\\bra@set",Go(!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 Uo={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class gd{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 pd(vd,t.macros),this.mode=a,this.stack=[]}feed(e){this.lexer=new Rn(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 Ve("EOF",a.loc)),this.pushTokens(n),new Ve("",Ie.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 Ve(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 Rn(n,this.settings),u=[],d=l.lex();d.text!=="EOF";)u.push(d),d=l.lex();u.reverse();var f={tokens:u,numArgs:s};return f}return n}isDefined(e){return this.macros.has(e)||yt.hasOwnProperty(e)||ce.math.hasOwnProperty(e)||ce.text.hasOwnProperty(e)||Uo.hasOwnProperty(e)}isExpandable(e){var t=this.macros.get(e);return t!=null?typeof t=="string"||typeof t=="function"||!t.unexpandable:yt.hasOwnProperty(e)&&!yt[e].primitive}}var Ln=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,z0=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","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),Mr={"́":{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"}},jn={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};class Z0{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 gd(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 Ve("}")),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(Z0.endOfExpression.indexOf(n.text)!==-1||t&&n.text===t||e&&yt[n.text]&&yt[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(z0[s.text]){var d=Ln.test(s.text),f=[];for(f.push(new Ve(z0[s.text])),this.consume();;){var g=this.fetch().text;if(!z0[g]||Ln.test(g)!==d)break;f.unshift(new Ve(z0[g])),this.consume()}var y=this.subparse(f);d?n={type:"ordgroup",mode:"math",body:y}:a={type:"ordgroup",mode:"math",body:y}}else break}return a||n?{type:"supsub",mode:this.mode,base:t,sup:a,sub:n}:t}parseFunction(e,t){var a=this.fetch(),n=a.text,s=yt[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=yt[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(!eo(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:Ie.range(a,u),body:l,semisimple:n==="\\begingroup"||void 0}}else if(s=this.parseFunction(t,e)||this.parseSymbol(),s==null&&n[0]==="\\"&&!Uo.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:Ie.range(n,e[a+2]),text:"---"}),t-=2):(e.splice(a,2,{type:"textord",mode:"text",loc:Ie.range(n,e[a+1]),text:"--"}),t-=1)),(s==="'"||s==="`")&&e[a+1].text===s&&(e.splice(a,2,{type:"textord",mode:"text",loc:Ie.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}}jn.hasOwnProperty(t[0])&&!ce[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=jn[t[0]]+t.slice(1));var s=hd.exec(t);s&&(t=t.substring(0,s.index),t==="i"?t="ı":t==="j"&&(t="ȷ"));var o;if(ce[this.mode][t]){this.settings.strict&&this.mode==="math"&&Pr.indexOf(t)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+t[0]+'" used in math mode',e);var l=ce[this.mode][t].group,u=Ie.range(e),d;if(s4.hasOwnProperty(l)){var f=l;d={type:"atom",mode:this.mode,family:f,loc:u,text:t}}else d={type:l,mode:this.mode,loc:u,text:t};o=d}else if(t.charCodeAt(0)>=128)this.settings.strict&&(Qs(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:Ie.range(e),text:t};else return null;if(this.consume(),s)for(var g=0;g<s[0].length;g++){var y=s[0][g];if(!Mr[y])throw new L("Unknown accent ' "+y+"'",e);var w=Mr[y][this.mode]||Mr[y].text;if(!w)throw new L("Accent "+y+" unsupported in "+this.mode+" mode",e);o={type:"accent",mode:this.mode,loc:Ie.range(e),label:w,isStretchy:!1,isShifty:!0,base:o}}return o}}Z0.endOfExpression=["}","\\endgroup","\\end","\\right","&"];var ya=function(e,t){if(!(typeof e=="string"||e instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var a=new Z0(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 Ve("\\df@tag")])}]}return n},$o=function(e,t,a){t.textContent="";var n=wa(e,a).toNode();t.appendChild(n)};typeof document<"u"&&document.compatMode!=="CSS1Compat"&&(typeof console<"u"&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),$o=function(){throw new L("KaTeX doesn't work in quirks mode.")});var bd=function(e,t){var a=wa(e,t).toMarkup();return a},xd=function(e,t){var a=new ra(t);return ya(e,a)},Wo=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},wa=function(e,t){var a=new ra(t);try{var n=ya(e,a);return N4(n,e,a)}catch(s){return Wo(s,e,a)}},yd=function(e,t){var a=new ra(t);try{var n=ya(e,a);return A4(n,e,a)}catch(s){return Wo(s,e,a)}},wd="0.16.25",Sd={Span:o0,Anchor:sa,SymbolNode:$e,SvgNode:mt,PathNode:kt,LineNode:Ir},Xo={version:wd,render:$o,renderToString:bd,ParseError:L,SETTINGS_SCHEMA:D0,__parse:xd,__renderToDomTree:wa,__renderToHTMLTree:yd,__setFontMetrics:K2,__defineSymbol:i,__defineFunction:V,__defineMacro:v,__domTree:Sd};const Ht=(r,e,t,a)=>{const n=[];let s=r,o=0;const l=[{regex:/\$([^$\n]+)\$/,render:u=>{const d=u[1],f=o++;if(t)return h.jsx("span",{children:t(d)},f);try{const g=Xo.renderToString(d,{throwOnError:!1,displayMode:!1});return h.jsx("span",{className:"inline-block",dangerouslySetInnerHTML:{__html:g}},f)}catch{return h.jsx("span",{className:"inline-block px-1 py-0.5 font-mono text-[0.9em] bg-[var(--color-red-200)] text-[var(--color-red-1000)] rounded",title:"Math rendering error",children:d},f)}}},{regex:/\*\*\*(.+?)\*\*\*|___(.+?)___/,render:u=>h.jsx("strong",{className:"font-medium",children:h.jsx("em",{className:"italic",children:u[1]||u[2]})},o++)},{regex:/\*\*(.+?)\*\*|__(.+?)__/,render:u=>h.jsx("strong",{className:"font-medium",children:u[1]||u[2]},o++)},{regex:/\*([^*\n]+)\*|_([^_\n]+)_/,render:u=>h.jsx("em",{className:"italic",children:u[1]||u[2]},o++)},{regex:/~~(.+?)~~/,render:u=>h.jsx("del",{className:"line-through",children:u[1]},o++)},{regex:/`([^`\n]+)`/,render:u=>{const d=u[1],f=o++;return e?h.jsx("span",{children:e(d)},f):h.jsx("code",{className:"px-1.5 py-0.5 font-[Roboto_Mono,monospace] text-[0.875em] bg-[var(--color-gray-100)] text-[var(--color-gray-800)] rounded-[4px] border border-[var(--color-gray-200)]",children:d},f)}},{regex:/\[([^\]]+)\]\(([^)]+)\)/,render:u=>{const d=u[1],f=u[2],g=o++;return a?h.jsx("span",{children:a(f,d)},g):h.jsx("a",{href:f,className:"text-[var(--color-blue-800)] hover:text-[var(--color-blue-1000)] underline underline-offset-2 transition-colors",target:"_blank",rel:"noopener noreferrer",children:d},g)}}];for(;s.length>0;){let u=null;for(const d of l){const f=s.match(d.regex);f&&f.index!==void 0&&(!u||f.index<u.index)&&(u={index:f.index,match:f,pattern:d})}if(u)u.index>0&&n.push(s.slice(0,u.index)),n.push(u.pattern.render(u.match)),s=s.slice(u.index+u.match[0].length);else{n.push(s);break}}return n},kd=r=>{const e=[],t=r.split(`
331
- `);let a=0;for(;a<t.length;){const n=t[a];if(n.trim()===""){a++;continue}if(n.trim().startsWith("$$")){const l=[];if(n.trim().endsWith("$$")&&n.trim().length>4)l.push(n.trim().slice(2,-2));else{for(a++;a<t.length&&!t[a].trim().endsWith("$$");)l.push(t[a]),a++;if(a<t.length){const d=t[a].trim();d!=="$$"&&l.push(d.slice(0,-2))}}e.push({type:"mathBlock",content:l.join(`
332
- `)}),a++;continue}if(n.trim().startsWith("```")){const l=n.trim().slice(3).trim()||void 0,u=[];for(a++;a<t.length&&!t[a].trim().startsWith("```");)u.push(t[a]),a++;e.push({type:"codeBlock",content:u.join(`
333
- `),language:l}),a++;continue}const s=n.match(/^(#{1,6})\s+(.+)$/);if(s){e.push({type:"heading",level:s[1].length,content:s[2]}),a++;continue}if(/^(\-{3,}|\*{3,}|_{3,})$/.test(n.trim())){e.push({type:"horizontalRule",content:""}),a++;continue}if(n.trim().startsWith("|")&&n.trim().endsWith("|")&&a+1<t.length&&/^\|[\s\-:|]+\|$/.test(t[a+1].trim())){const l=n.trim().slice(1,-1).split("|").map(g=>g.trim()),d=t[a+1].trim().slice(1,-1).split("|").map(g=>g.trim()).map(g=>g.startsWith(":")&&g.endsWith(":")?"center":g.endsWith(":")?"right":"left"),f=[];for(a+=2;a<t.length&&t[a].trim().startsWith("|")&&t[a].trim().endsWith("|");){const g=t[a].trim().slice(1,-1).split("|").map(y=>y.trim());f.push(g),a++}e.push({type:"table",content:"",table:{headers:l,rows:f,alignments:d}});continue}if(n.trim().startsWith(">")){const l=[];for(;a<t.length&&t[a].trim().startsWith(">");)l.push(t[a].trim().slice(1).trim()),a++;e.push({type:"blockquote",content:l.join(`
334
- `)});continue}if(/^[\-\*\+]\s+/.test(n.trim())){const l=[];for(;a<t.length&&/^[\-\*\+]\s+/.test(t[a].trim());)l.push(t[a].trim().replace(/^[\-\*\+]\s+/,"")),a++;e.push({type:"list",content:"",items:l,ordered:!1});continue}if(/^\d+\.\s+/.test(n.trim())){const l=[];for(;a<t.length&&/^\d+\.\s+/.test(t[a].trim());)l.push(t[a].trim().replace(/^\d+\.\s+/,"")),a++;e.push({type:"list",content:"",items:l,ordered:!0});continue}const o=[n];for(a++;a<t.length&&t[a].trim()!==""&&!t[a].trim().startsWith("#")&&!t[a].trim().startsWith("```")&&!t[a].trim().startsWith("$$")&&!t[a].trim().startsWith(">")&&!/^[\-\*\+]\s+/.test(t[a].trim())&&!/^\d+\.\s+/.test(t[a].trim())&&!/^(\-{3,}|\*{3,}|_{3,})$/.test(t[a].trim());)o.push(t[a]),a++;e.push({type:"paragraph",content:o.join(" ")})}return e},Cd=(r,e,t,a,n,s)=>r.map((o,l)=>{var u;switch(o.type){case"heading":{const d=`h${o.level}`,f={1:"font-[Signifier,serif] text-[1.75rem] font-light leading-tight tracking-[-0.5px] text-[var(--color-gray-1000)]",2:"font-[Signifier,serif] text-[1.5rem] font-light leading-tight text-[var(--color-gray-1000)]",3:"font-[Signifier,serif] text-[1.25rem] font-light leading-snug text-[var(--color-gray-1000)]",4:"font-[Signifier,serif] text-[1.125rem] font-light leading-snug text-[var(--color-gray-1000)]",5:"font-[Signifier,serif] text-[1rem] font-light leading-normal text-[var(--color-gray-800)]",6:"font-[Signifier,serif] text-[0.875rem] font-light leading-normal text-[var(--color-gray-600)]"},g={1:{marginTop:l===0?0:20,marginBottom:12},2:{marginTop:l===0?0:16,marginBottom:8},3:{marginTop:l===0?0:14,marginBottom:6},4:{marginTop:l===0?0:12,marginBottom:6},5:{marginTop:l===0?0:10,marginBottom:4},6:{marginTop:l===0?0:10,marginBottom:4}};return h.jsx(d,{className:f[o.level],style:g[o.level],children:Ht(o.content,t,n,s)},l)}case"paragraph":return h.jsx("p",{className:"font-[Inter,system-ui,-apple-system,sans-serif]",style:{marginTop:l===0?0:8,marginBottom:8},children:Ht(o.content,t,n,s)},l);case"codeBlock":return e?h.jsx("div",{style:{marginTop:l===0?0:12,marginBottom:12},children:e(o.content,o.language)},l):h.jsx("pre",{className:"font-[Roboto_Mono,monospace] p-4 bg-[var(--color-gray-100)] border border-[var(--color-gray-200)] rounded-[8px] overflow-x-auto",style:{marginTop:l===0?0:12,marginBottom:12},children:h.jsx("code",{className:"font-[Roboto_Mono,monospace] text-[0.875rem] text-[var(--color-gray-800)] leading-relaxed",children:o.content})},l);case"mathBlock":if(a)return h.jsx("div",{style:{marginTop:l===0?0:12,marginBottom:12},children:a(o.content)},l);try{const d=Xo.renderToString(o.content,{throwOnError:!1,displayMode:!0});return h.jsx("div",{className:"overflow-x-auto text-center",style:{marginTop:l===0?0:12,marginBottom:12},dangerouslySetInnerHTML:{__html:d}},l)}catch{return h.jsxs("div",{className:"p-4 bg-[var(--color-red-200)] border border-[var(--color-red-1000)] rounded-[8px] text-center font-mono text-[var(--color-red-1000)]",style:{marginTop:l===0?0:12,marginBottom:12},children:[h.jsx("span",{className:"text-[0.75rem] uppercase tracking-wider opacity-60 block",style:{marginBottom:4},children:"Math Rendering Error"}),h.jsx("pre",{className:"text-left",children:o.content})]},l)}case"blockquote":return h.jsx("blockquote",{className:"font-[Inter,system-ui,-apple-system,sans-serif] pl-6 py-4 border-l-4 border-[var(--color-gray-300)] bg-[var(--color-gray-50)] text-[var(--color-gray-600)] italic rounded-r",style:{marginTop:l===0?0:12,marginBottom:12},children:Ht(o.content,t,n,s)},l);case"list":{const d=o.ordered?"ol":"ul",f=o.ordered?"font-[Inter,system-ui,-apple-system,sans-serif] pl-6 list-decimal marker:font-medium marker:text-[var(--color-gray-800)]":"font-[Inter,system-ui,-apple-system,sans-serif] pl-6 list-disc marker:text-[var(--color-gray-600)]";return h.jsx(d,{className:f,style:{marginTop:l===0?0:8,marginBottom:12},children:(u=o.items)==null?void 0:u.map((g,y)=>h.jsx("li",{className:"leading-relaxed pl-1",style:{marginBottom:4},children:Ht(g,t,n,s)},y))},l)}case"table":{if(!o.table)return null;const{headers:d,rows:f,alignments:g}=o.table,y=w=>{switch(w){case"center":return"text-center";case"right":return"text-right";default:return"text-left"}};return h.jsx("div",{className:"overflow-x-auto",style:{marginTop:l===0?0:12,marginBottom:12},children:h.jsxs("table",{className:"font-[Inter,system-ui,-apple-system,sans-serif] w-full border-collapse border border-[var(--color-gray-200)] bg-white shadow-sm rounded-lg",children:[h.jsx("thead",{className:"bg-[var(--color-gray-50)]",children:h.jsx("tr",{className:"border-b-2 border-[var(--color-gray-200)]",children:d.map((w,M)=>h.jsx("th",{className:`px-4 py-3 font-medium border-r border-[var(--color-gray-200)] last:border-r-0 ${y(g==null?void 0:g[M])}`,children:Ht(w,t,n,s)},M))})}),h.jsx("tbody",{children:f.map((w,M)=>h.jsx("tr",{className:"border-b border-[var(--color-gray-200)] last:border-b-0 hover:bg-[var(--color-gray-50)] transition-colors",children:w.map((k,N)=>h.jsx("td",{className:`px-4 py-3 border-r border-[var(--color-gray-200)] last:border-r-0 align-top ${y(g==null?void 0:g[N])}`,children:Ht(k,t,n,s)},N))},M))})]})},l)}case"horizontalRule":return h.jsx("hr",{className:"border-t border-[var(--color-gray-200)]",style:{marginTop:16,marginBottom:16}},l);default:return null}}),Yo=I.forwardRef(({className:r,content:e,size:t="medium",variant:a="default",renderCodeBlock:n,renderInlineCode:s,renderMathBlock:o,renderInlineMath:l,renderLink:u,...d},f)=>{const g=I.useMemo(()=>{const y=kd(e);return Cd(y,n,s,o,l,u)},[e,n,s,o,l,u]);return h.jsx("div",{ref:f,className:H(k2({size:t,variant:a}),r),...d,children:g})});Yo.displayName="MarkdownRenderer";exports.Activity=p.Activity;exports.Airplay=p.Airplay;exports.AlertCircle=p.AlertCircle;exports.AlertOctagon=p.AlertOctagon;exports.AlignCenter=p.AlignCenter;exports.AlignJustify=p.AlignJustify;exports.AlignLeft=p.AlignLeft;exports.AlignRight=p.AlignRight;exports.Anchor=p.Anchor;exports.Aperture=p.Aperture;exports.Archive=p.Archive;exports.ArrowDownCircle=p.ArrowDownCircle;exports.ArrowDownLeft=p.ArrowDownLeft;exports.ArrowDownRight=p.ArrowDownRight;exports.ArrowLeftCircle=p.ArrowLeftCircle;exports.ArrowRightCircle=p.ArrowRightCircle;exports.ArrowUp=p.ArrowUp;exports.ArrowUpCircle=p.ArrowUpCircle;exports.ArrowUpLeft=p.ArrowUpLeft;exports.ArrowUpRight=p.ArrowUpRight;exports.AtSign=p.AtSign;exports.Award=p.Award;exports.BarChart=p.BarChart;exports.BarChart2=p.BarChart2;exports.Battery=p.Battery;exports.BatteryCharging=p.BatteryCharging;exports.BellOff=p.BellOff;exports.Bluetooth=p.Bluetooth;exports.Bold=p.Bold;exports.Book=p.Book;exports.BookOpen=p.BookOpen;exports.Bookmark=p.Bookmark;exports.Box=p.Box;exports.Briefcase=p.Briefcase;exports.BrushCleanup=p.BrushCleanup;exports.Calendar=p.Calendar;exports.Camera=p.Camera;exports.CameraOff=p.CameraOff;exports.Cast=p.Cast;exports.Check=p.Check;exports.CheckCircle=p.CheckCircle;exports.CheckSquare=p.CheckSquare;exports.ChevronDown=p.ChevronDown;exports.ChevronLeft=p.ChevronLeft;exports.ChevronRight=p.ChevronRight;exports.ChevronUp=p.ChevronUp;exports.ChevronsDown=p.ChevronsDown;exports.ChevronsLeft=p.ChevronsLeft;exports.ChevronsRight=p.ChevronsRight;exports.ChevronsUp=p.ChevronsUp;exports.Chrome=p.Chrome;exports.Circle=p.Circle;exports.Clipboard=p.Clipboard;exports.ClockHistory=p.ClockHistory;exports.Cloud=p.Cloud;exports.CloudDrizzle=p.CloudDrizzle;exports.CloudLightning=p.CloudLightning;exports.CloudOff=p.CloudOff;exports.CloudRain=p.CloudRain;exports.CloudSnow=p.CloudSnow;exports.Code=p.Code;exports.Codepen=p.Codepen;exports.Codesandbox=p.Codesandbox;exports.Coffee=p.Coffee;exports.Columns=p.Columns;exports.Command=p.Command;exports.Compass=p.Compass;exports.Component=p.Component;exports.CornerDownLeft=p.CornerDownLeft;exports.CornerDownRight=p.CornerDownRight;exports.CornerLeftDown=p.CornerLeftDown;exports.CornerLeftUp=p.CornerLeftUp;exports.CornerRightDown=p.CornerRightDown;exports.CornerRightUp=p.CornerRightUp;exports.CornerUpLeft=p.CornerUpLeft;exports.CornerUpRight=p.CornerUpRight;exports.Cpu=p.Cpu;exports.CreditCard=p.CreditCard;exports.Crop=p.Crop;exports.Crosshair=p.Crosshair;exports.Database=p.Database;exports.Delete=p.Delete;exports.Disc=p.Disc;exports.Divide=p.Divide;exports.DivideCircle=p.DivideCircle;exports.DivideSquare=p.DivideSquare;exports.DollarSign=p.DollarSign;exports.DownloadCloud=p.DownloadCloud;exports.Dribbble=p.Dribbble;exports.Droplet=p.Droplet;exports.Dumbell=p.Dumbell;exports.Edit2=p.Edit2;exports.Edit3=p.Edit3;exports.Eye=p.Eye;exports.EyeOff=p.EyeOff;exports.Facebook=p.Facebook;exports.FastForward=p.FastForward;exports.Feather=p.Feather;exports.Figma=p.Figma;exports.FileMinus=p.FileMinus;exports.FilePlus=p.FilePlus;exports.FileText=p.FileText;exports.Film=p.Film;exports.Filter=p.Filter;exports.Filter1=p.Filter1;exports.Flag=p.Flag;exports.Folder=p.Folder;exports.FolderMinus=p.FolderMinus;exports.FolderPlus=p.FolderPlus;exports.Framer=p.Framer;exports.Frown=p.Frown;exports.GalleryView=p.GalleryView;exports.Gauge=p.Gauge;exports.Gift=p.Gift;exports.GitBranch=p.GitBranch;exports.GitCommit=p.GitCommit;exports.GitMerge=p.GitMerge;exports.GitPullRequest=p.GitPullRequest;exports.Github=p.Github;exports.Gitlab=p.Gitlab;exports.Globe=p.Globe;exports.Grid=p.Grid;exports.Group1=p.Group1;exports.Hand=p.Hand;exports.HardDrive=p.HardDrive;exports.Hash=p.Hash;exports.Headphones=p.Headphones;exports.HeightSize=p.HeightSize;exports.Hexagon=p.Hexagon;exports.Home=p.Home;exports.Home2=p.Home2;exports.Image=p.Image;exports.Inbox=p.Inbox;exports.Info=p.Info;exports.Instagram=p.Instagram;exports.Invite=p.Invite;exports.Italic=p.Italic;exports.KanbanView=p.KanbanView;exports.Key=p.Key;exports.Layers=p.Layers;exports.Layout=p.Layout;exports.LifeBuoy=p.LifeBuoy;exports.Link=p.Link;exports.Link2=p.Link2;exports.Linkedin=p.Linkedin;exports.List=p.List;exports.ListView=p.ListView;exports.Loader=p.Loader;exports.Lock=p.Lock;exports.LogIn=p.LogIn;exports.Mail=p.Mail;exports.Map=p.Map;exports.MapPin=p.MapPin;exports.Maximize=p.Maximize;exports.Maximize2=p.Maximize2;exports.Meh=p.Meh;exports.MessageCircle=p.MessageCircle;exports.MessageSquare=p.MessageSquare;exports.Mic=p.Mic;exports.MicOff=p.MicOff;exports.Minimize=p.Minimize;exports.Minimize2=p.Minimize2;exports.MinusCircle=p.MinusCircle;exports.MinusSquare=p.MinusSquare;exports.Monitor=p.Monitor;exports.Moon=p.Moon;exports.MoreVertical=p.MoreVertical;exports.MousePointer=p.MousePointer;exports.Move=p.Move;exports.Music=p.Music;exports.Navigation=p.Navigation;exports.Navigation2=p.Navigation2;exports.NewChat=p.NewChat;exports.Octagon=p.Octagon;exports.Package=p.Package;exports.PaperPlane1=p.PaperPlane1;exports.Paperclip=p.Paperclip;exports.Pause=p.Pause;exports.PauseCircle=p.PauseCircle;exports.PenTool=p.PenTool;exports.Percent=p.Percent;exports.Phone=p.Phone;exports.PhoneCall=p.PhoneCall;exports.PhoneForwarded=p.PhoneForwarded;exports.PhoneIncoming=p.PhoneIncoming;exports.PhoneMissed=p.PhoneMissed;exports.PhoneOff=p.PhoneOff;exports.PhoneOutgoing=p.PhoneOutgoing;exports.Pin=p.Pin;exports.Play=p.Play;exports.PlayCircle=p.PlayCircle;exports.Plug21=p.Plug21;exports.Plus=p.Plus;exports.PlusCircle=p.PlusCircle;exports.PlusSquare=p.PlusSquare;exports.Pocket=p.Pocket;exports.Power=p.Power;exports.Printer=p.Printer;exports.Radio=p.Radio;exports.Redo=p.Redo;exports.RefreshCcw=p.RefreshCcw;exports.RefreshCw=p.RefreshCw;exports.Repeat=p.Repeat;exports.Rewind=p.Rewind;exports.RotateCcw=p.RotateCcw;exports.RotateCw=p.RotateCw;exports.Rss=p.Rss;exports.Save=p.Save;exports.Scissors=p.Scissors;exports.Search=p.Search;exports.Send=p.Send;exports.Server=p.Server;exports.Settings=p.Settings;exports.Share=p.Share;exports.Share2=p.Share2;exports.Shield=p.Shield;exports.ShieldOff=p.ShieldOff;exports.ShoppingBag=p.ShoppingBag;exports.ShoppingCart=p.ShoppingCart;exports.Shuffle=p.Shuffle;exports.Sidebar=p.Sidebar;exports.SkipBack=p.SkipBack;exports.SkipForward=p.SkipForward;exports.Slack=p.Slack;exports.Slash=p.Slash;exports.Sliders=p.Sliders;exports.Smartphone=p.Smartphone;exports.Smile=p.Smile;exports.Sort1=p.Sort1;exports.SortDefault=p.SortDefault;exports.SortDown=p.SortDown;exports.SortUp=p.SortUp;exports.Sources=p.Sources;exports.Sparks=p.Sparks;exports.Speaker=p.Speaker;exports.Square=p.Square;exports.Star=p.Star;exports.StopCircle=p.StopCircle;exports.Sun=p.Sun;exports.Sunrise=p.Sunrise;exports.Sunset=p.Sunset;exports.TableView=p.TableView;exports.Tablet=p.Tablet;exports.TagIcon=p.Tag;exports.TagPlus=p.TagPlus;exports.Target=p.Target;exports.Telescope=p.Telescope;exports.Terminal=p.Terminal;exports.TextileIcon=p.TextileIcon;exports.Thermometer=p.Thermometer;exports.ThumbsDown=p.ThumbsDown;exports.ThumbsUp=p.ThumbsUp;exports.ToggleLeft=p.ToggleLeft;exports.ToggleRight=p.ToggleRight;exports.Tool=p.Tool;exports.Trash=p.Trash;exports.Trello=p.Trello;exports.TrendingDown=p.TrendingDown;exports.TrendingUp=p.TrendingUp;exports.Triangle=p.Triangle;exports.TriangleAlert=p.TriangleAlert;exports.Truck=p.Truck;exports.Tv=p.Tv;exports.Twitch=p.Twitch;exports.Twitter=p.Twitter;exports.Type=p.Type;exports.Umbrella=p.Umbrella;exports.Underline=p.Underline;exports.Undo=p.Undo;exports.Unlock=p.Unlock;exports.Uploadfile=p.Uploadfile;exports.UserCheck=p.UserCheck;exports.UserEdit=p.UserEdit;exports.UserMinus=p.UserMinus;exports.UserPlus=p.UserPlus;exports.UserX=p.UserX;exports.Video=p.Video;exports.VideoOff=p.VideoOff;exports.Voicemail=p.Voicemail;exports.Volume=p.Volume;exports.Volume1=p.Volume1;exports.Volume2=p.Volume2;exports.VolumeX=p.VolumeX;exports.Watch=p.Watch;exports.WhiteboardView=p.WhiteboardView;exports.Wifi=p.Wifi;exports.WifiOff=p.WifiOff;exports.Wind=p.Wind;exports.WorkStream=p.WorkStream;exports.X=p.X;exports.XCircle=p.XCircle;exports.XOctagon=p.XOctagon;exports.XSquare=p.XSquare;exports.Youtube=p.Youtube;exports.Zap=p.Zap;exports.ZapOff=p.ZapOff;exports.ZoomIn=p.ZoomIn;exports.ZoomOut=p.ZoomOut;exports.ArtifactCard=Zn;exports.AutopilotAction=ps;exports.Avatar=Gr;exports.Breadcrumbs=Kn;exports.Button=Ut;exports.ChatFile=Qn;exports.ChatInput=vs;exports.Checkbox=es;exports.CircularProgress=Xr;exports.ConversationHeader=gs;exports.Dropdown=Yr;exports.DropdownContent=Kr;exports.DropdownItem=Jr;exports.DropdownTrigger=Zr;exports.FileStatus=Jn;exports.FullLogo=Yn;exports.Input=rs;exports.LoadingSpinner=Vl;exports.LogoA=$r;exports.MarkdownRenderer=Yo;exports.MessageBubble=ns;exports.Modal=Ks;exports.ProgressBar=ss;exports.RangeInput=os;exports.SidebarItem=is;exports.SignatureA=Wr;exports.StatusIndicator=Ur;exports.StatusMessage=fs;exports.Tabs=z1;exports.TabsContent=us;exports.TabsList=ls;exports.TabsTrigger=cs;exports.Tag=$t;exports.TextArea=ds;exports.Timestamp=ms;exports.Toast=Dt;exports.ToastContainer=U1;exports.Toggle=hs;exports.Tooltip=Dr;exports.TooltipContent=E0;exports.TooltipProvider=Ar;exports.TooltipTrigger=Rr;exports.Typography=ct;exports.cn=H;exports.showToast=$1;exports.useDropdown=q0;
70
+ For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return d.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},Ni="DialogDescriptionWarning",ji=({contentRef:e,descriptionId:t})=>{const a=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Hr(Ni).contentName}}.`;return d.useEffect(()=>{var i;const s=(i=e.current)==null?void 0:i.getAttribute("aria-describedby");t&&s&&(document.getElementById(t)||console.warn(a))},[a,e,t]),null},ki=Tr,Li=Pr,Ei=Mr,Ti=Ir,zt=Or,_t=zr,Di=Fr,Ri=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"}),Pi="VisuallyHidden",Ur=d.forwardRef((e,t)=>n.jsx(F.span,{...e,ref:t,style:{...Ri,...e.style}}));Ur.displayName=Pi;var Ft=Ur;const Mi=l.cva("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"),Ii=l.cva("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"}}),Ai=l.cva("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-200)] focus-visible:ring-offset-2 rounded-sm"),Oi=l.cva("!font-[Inter,system-ui,-apple-system,sans-serif] font-medium text-[1rem] leading-[1.5rem] text-[var(--color-blue-1000)] w-full"),Vi=l.cva("font-[Inter,system-ui,-apple-system,sans-serif] font-normal text-[0.875rem] leading-[1.25rem] text-[var(--color-gray-800)] w-full"),zi=l.cva("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"}}),_i=l.cva("flex gap-2 items-start w-full"),Wr=({open:e,onOpenChange:t,title:r,description:a,showCloseButton:s=!0,closeIcon:i,children:u,primaryAction:c,secondaryAction:m,closeOnClickOutside:f=!0,closeOnEsc:v=!0,onClose:p,className:x,overlayClassName:y,contentClassName:S,footerClassName:g,size:C="md"})=>{const w=h.useRef(null),j=h.useRef(null),N=h.useCallback(R=>{t(R),R||p==null||p()},[t,p]),k=h.useCallback(async()=>{c!=null&&c.onClick&&await c.onClick()},[c]),E=h.useCallback(async()=>{m!=null&&m.onClick&&await m.onClick()},[m]),D=h.useCallback(R=>{v||R.preventDefault()},[v]),L=h.useCallback(R=>{f||R.preventDefault()},[f]),P=c||m;return n.jsx(ki,{open:e,onOpenChange:N,children:n.jsxs(Li,{children:[n.jsx(Ei,{className:l.cn(Mi(),y)}),n.jsxs(Ti,{className:l.cn(Ii({size:C}),x),onEscapeKeyDown:D,onPointerDownOutside:L,children:[r?n.jsx(zt,{className:Oi(),children:r}):n.jsx(Ft,{children:n.jsx(zt,{children:"Modal dialog"})}),a?n.jsx(_t,{className:Vi(),children:a}):n.jsx(Ft,{children:n.jsx(_t,{children:"Modal content"})}),s&&n.jsx(Di,{asChild:!0,children:n.jsx("button",{className:Ai(),"aria-label":"Close modal",children:i||n.jsx(o.X,{size:16,color:"currentColor"})})}),u&&n.jsx("div",{className:l.cn(zi({size:C}),S),children:u}),P&&n.jsxs("div",{className:l.cn(_i(),g),children:[m&&n.jsx(ce,{ref:j,variant:m.variant||"secondary",size:"small",onClick:E,disabled:m.disabled||m.loading,startIcon:m.icon,className:"flex-1",children:m.label}),c&&n.jsx(ce,{ref:w,variant:c.variant||"primary",size:"small",onClick:k,disabled:c.disabled||c.loading,startIcon:c.icon,className:"flex-1",children:c.label})]})]})]})})};Wr.displayName="Modal";exports.cn=l.cn;exports.Activity=o.Activity;exports.Airplay=o.Airplay;exports.AlertCircle=o.AlertCircle;exports.AlertOctagon=o.AlertOctagon;exports.AlignCenter=o.AlignCenter;exports.AlignJustify=o.AlignJustify;exports.AlignLeft=o.AlignLeft;exports.AlignRight=o.AlignRight;exports.Anchor=o.Anchor;exports.Aperture=o.Aperture;exports.Archive=o.Archive;exports.ArrowDownCircle=o.ArrowDownCircle;exports.ArrowDownLeft=o.ArrowDownLeft;exports.ArrowDownRight=o.ArrowDownRight;exports.ArrowLeftCircle=o.ArrowLeftCircle;exports.ArrowRightCircle=o.ArrowRightCircle;exports.ArrowUp=o.ArrowUp;exports.ArrowUpCircle=o.ArrowUpCircle;exports.ArrowUpLeft=o.ArrowUpLeft;exports.ArrowUpRight=o.ArrowUpRight;exports.AtSign=o.AtSign;exports.Award=o.Award;exports.BarChart=o.BarChart;exports.BarChart2=o.BarChart2;exports.Battery=o.Battery;exports.BatteryCharging=o.BatteryCharging;exports.BellOff=o.BellOff;exports.Bluetooth=o.Bluetooth;exports.Bold=o.Bold;exports.Book=o.Book;exports.BookOpen=o.BookOpen;exports.Bookmark=o.Bookmark;exports.Box=o.Box;exports.Briefcase=o.Briefcase;exports.BrushCleanup=o.BrushCleanup;exports.Calendar=o.Calendar;exports.Camera=o.Camera;exports.CameraOff=o.CameraOff;exports.Cast=o.Cast;exports.Check=o.Check;exports.CheckCircle=o.CheckCircle;exports.CheckSquare=o.CheckSquare;exports.ChevronDown=o.ChevronDown;exports.ChevronLeft=o.ChevronLeft;exports.ChevronRight=o.ChevronRight;exports.ChevronUp=o.ChevronUp;exports.ChevronsDown=o.ChevronsDown;exports.ChevronsLeft=o.ChevronsLeft;exports.ChevronsRight=o.ChevronsRight;exports.ChevronsUp=o.ChevronsUp;exports.Chrome=o.Chrome;exports.Circle=o.Circle;exports.Clipboard=o.Clipboard;exports.ClockHistory=o.ClockHistory;exports.Cloud=o.Cloud;exports.CloudDrizzle=o.CloudDrizzle;exports.CloudLightning=o.CloudLightning;exports.CloudOff=o.CloudOff;exports.CloudRain=o.CloudRain;exports.CloudSnow=o.CloudSnow;exports.Code=o.Code;exports.Codepen=o.Codepen;exports.Codesandbox=o.Codesandbox;exports.Coffee=o.Coffee;exports.Columns=o.Columns;exports.Command=o.Command;exports.Compass=o.Compass;exports.Component=o.Component;exports.CornerDownLeft=o.CornerDownLeft;exports.CornerDownRight=o.CornerDownRight;exports.CornerLeftDown=o.CornerLeftDown;exports.CornerLeftUp=o.CornerLeftUp;exports.CornerRightDown=o.CornerRightDown;exports.CornerRightUp=o.CornerRightUp;exports.CornerUpLeft=o.CornerUpLeft;exports.CornerUpRight=o.CornerUpRight;exports.Cpu=o.Cpu;exports.CreditCard=o.CreditCard;exports.Crop=o.Crop;exports.Crosshair=o.Crosshair;exports.Database=o.Database;exports.Delete=o.Delete;exports.Disc=o.Disc;exports.Divide=o.Divide;exports.DivideCircle=o.DivideCircle;exports.DivideSquare=o.DivideSquare;exports.DollarSign=o.DollarSign;exports.DownloadCloud=o.DownloadCloud;exports.Dribbble=o.Dribbble;exports.Droplet=o.Droplet;exports.Dumbell=o.Dumbell;exports.Edit2=o.Edit2;exports.Edit3=o.Edit3;exports.Eye=o.Eye;exports.EyeOff=o.EyeOff;exports.Facebook=o.Facebook;exports.FastForward=o.FastForward;exports.Feather=o.Feather;exports.Figma=o.Figma;exports.FileMinus=o.FileMinus;exports.FilePlus=o.FilePlus;exports.FileText=o.FileText;exports.Film=o.Film;exports.Filter=o.Filter;exports.Filter1=o.Filter1;exports.Flag=o.Flag;exports.Folder=o.Folder;exports.FolderMinus=o.FolderMinus;exports.FolderPlus=o.FolderPlus;exports.Framer=o.Framer;exports.Frown=o.Frown;exports.GalleryView=o.GalleryView;exports.Gauge=o.Gauge;exports.Gift=o.Gift;exports.GitBranch=o.GitBranch;exports.GitCommit=o.GitCommit;exports.GitMerge=o.GitMerge;exports.GitPullRequest=o.GitPullRequest;exports.Github=o.Github;exports.Gitlab=o.Gitlab;exports.Globe=o.Globe;exports.Grid=o.Grid;exports.Group1=o.Group1;exports.Hand=o.Hand;exports.HardDrive=o.HardDrive;exports.Hash=o.Hash;exports.Headphones=o.Headphones;exports.HeightSize=o.HeightSize;exports.Hexagon=o.Hexagon;exports.Home=o.Home;exports.Home2=o.Home2;exports.Image=o.Image;exports.Inbox=o.Inbox;exports.Info=o.Info;exports.Instagram=o.Instagram;exports.Invite=o.Invite;exports.Italic=o.Italic;exports.KanbanView=o.KanbanView;exports.Key=o.Key;exports.Layers=o.Layers;exports.Layout=o.Layout;exports.LifeBuoy=o.LifeBuoy;exports.Link=o.Link;exports.Link2=o.Link2;exports.Linkedin=o.Linkedin;exports.List=o.List;exports.ListView=o.ListView;exports.Loader=o.Loader;exports.Lock=o.Lock;exports.LogIn=o.LogIn;exports.Mail=o.Mail;exports.Map=o.Map;exports.MapPin=o.MapPin;exports.Maximize=o.Maximize;exports.Maximize2=o.Maximize2;exports.Meh=o.Meh;exports.MessageCircle=o.MessageCircle;exports.MessageSquare=o.MessageSquare;exports.Mic=o.Mic;exports.MicOff=o.MicOff;exports.Minimize=o.Minimize;exports.Minimize2=o.Minimize2;exports.MinusCircle=o.MinusCircle;exports.MinusSquare=o.MinusSquare;exports.Monitor=o.Monitor;exports.Moon=o.Moon;exports.MoreVertical=o.MoreVertical;exports.MousePointer=o.MousePointer;exports.Move=o.Move;exports.Music=o.Music;exports.Navigation=o.Navigation;exports.Navigation2=o.Navigation2;exports.NewChat=o.NewChat;exports.Octagon=o.Octagon;exports.Package=o.Package;exports.PaperPlane1=o.PaperPlane1;exports.Paperclip=o.Paperclip;exports.Pause=o.Pause;exports.PauseCircle=o.PauseCircle;exports.PenTool=o.PenTool;exports.Percent=o.Percent;exports.Phone=o.Phone;exports.PhoneCall=o.PhoneCall;exports.PhoneForwarded=o.PhoneForwarded;exports.PhoneIncoming=o.PhoneIncoming;exports.PhoneMissed=o.PhoneMissed;exports.PhoneOff=o.PhoneOff;exports.PhoneOutgoing=o.PhoneOutgoing;exports.Pin=o.Pin;exports.Play=o.Play;exports.PlayCircle=o.PlayCircle;exports.Plug21=o.Plug21;exports.Plus=o.Plus;exports.PlusCircle=o.PlusCircle;exports.PlusSquare=o.PlusSquare;exports.Pocket=o.Pocket;exports.Power=o.Power;exports.Printer=o.Printer;exports.Radio=o.Radio;exports.Redo=o.Redo;exports.RefreshCcw=o.RefreshCcw;exports.RefreshCw=o.RefreshCw;exports.Repeat=o.Repeat;exports.Rewind=o.Rewind;exports.RotateCcw=o.RotateCcw;exports.RotateCw=o.RotateCw;exports.Rss=o.Rss;exports.Save=o.Save;exports.Scissors=o.Scissors;exports.Search=o.Search;exports.Send=o.Send;exports.Server=o.Server;exports.Settings=o.Settings;exports.Share=o.Share;exports.Share2=o.Share2;exports.Shield=o.Shield;exports.ShieldOff=o.ShieldOff;exports.ShoppingBag=o.ShoppingBag;exports.ShoppingCart=o.ShoppingCart;exports.Shuffle=o.Shuffle;exports.Sidebar=o.Sidebar;exports.SkipBack=o.SkipBack;exports.SkipForward=o.SkipForward;exports.Slack=o.Slack;exports.Slash=o.Slash;exports.Sliders=o.Sliders;exports.Smartphone=o.Smartphone;exports.Smile=o.Smile;exports.Sort1=o.Sort1;exports.SortDefault=o.SortDefault;exports.SortDown=o.SortDown;exports.SortUp=o.SortUp;exports.Sources=o.Sources;exports.Sparks=o.Sparks;exports.Speaker=o.Speaker;exports.Square=o.Square;exports.Star=o.Star;exports.StopCircle=o.StopCircle;exports.Sun=o.Sun;exports.Sunrise=o.Sunrise;exports.Sunset=o.Sunset;exports.TableView=o.TableView;exports.Tablet=o.Tablet;exports.TagIcon=o.Tag;exports.TagPlus=o.TagPlus;exports.Target=o.Target;exports.Telescope=o.Telescope;exports.Terminal=o.Terminal;exports.TextileIcon=o.TextileIcon;exports.Thermometer=o.Thermometer;exports.ThumbsDown=o.ThumbsDown;exports.ThumbsUp=o.ThumbsUp;exports.ToggleLeft=o.ToggleLeft;exports.ToggleRight=o.ToggleRight;exports.Tool=o.Tool;exports.Trash=o.Trash;exports.Trello=o.Trello;exports.TrendingDown=o.TrendingDown;exports.TrendingUp=o.TrendingUp;exports.Triangle=o.Triangle;exports.TriangleAlert=o.TriangleAlert;exports.Truck=o.Truck;exports.Tv=o.Tv;exports.Twitch=o.Twitch;exports.Twitter=o.Twitter;exports.Type=o.Type;exports.Umbrella=o.Umbrella;exports.Underline=o.Underline;exports.Undo=o.Undo;exports.Unlock=o.Unlock;exports.Uploadfile=o.Uploadfile;exports.UserCheck=o.UserCheck;exports.UserEdit=o.UserEdit;exports.UserMinus=o.UserMinus;exports.UserPlus=o.UserPlus;exports.UserX=o.UserX;exports.Video=o.Video;exports.VideoOff=o.VideoOff;exports.Voicemail=o.Voicemail;exports.Volume=o.Volume;exports.Volume1=o.Volume1;exports.Volume2=o.Volume2;exports.VolumeX=o.VolumeX;exports.Watch=o.Watch;exports.WhiteboardView=o.WhiteboardView;exports.Wifi=o.Wifi;exports.WifiOff=o.WifiOff;exports.Wind=o.Wind;exports.WorkStream=o.WorkStream;exports.X=o.X;exports.XCircle=o.XCircle;exports.XOctagon=o.XOctagon;exports.XSquare=o.XSquare;exports.Youtube=o.Youtube;exports.Zap=o.Zap;exports.ZapOff=o.ZapOff;exports.ZoomIn=o.ZoomIn;exports.ZoomOut=o.ZoomOut;exports.ArtifactCard=Ut;exports.AutopilotAction=lr;exports.Avatar=at;exports.Breadcrumbs=Wt;exports.Button=ce;exports.ChatFile=Gt;exports.ChatInput=cr;exports.Checkbox=Zt;exports.CircularProgress=it;exports.ConversationHeader=ur;exports.Dropdown=lt;exports.DropdownContent=ut;exports.DropdownItem=dt;exports.DropdownTrigger=ct;exports.FileStatus=$t;exports.FullLogo=Ht;exports.Input=qt;exports.LoadingSpinner=an;exports.LogoA=ot;exports.MessageBubble=Yt;exports.Modal=Wr;exports.ProgressBar=Jt;exports.RangeInput=Qt;exports.SidebarItem=er;exports.SignatureA=st;exports.StatusIndicator=nt;exports.StatusMessage=ir;exports.Tabs=Un;exports.TabsContent=ar;exports.TabsList=tr;exports.TabsTrigger=rr;exports.Tag=ue;exports.TextArea=nr;exports.Timestamp=or;exports.Toast=J;exports.ToastContainer=io;exports.Toggle=sr;exports.Tooltip=Qe;exports.TooltipContent=Re;exports.TooltipProvider=Je;exports.TooltipTrigger=et;exports.Typography=$;exports.showToast=lo;exports.useDropdown=Ie;
335
71
  //# sourceMappingURL=index.cjs.map