@open-resource-discovery/ui-components 0.1.3 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/components/code-editor/CodeEditor.d.ts +1 -0
- package/dist/src/components/code-editor/CodeEditor.d.ts.map +1 -1
- package/dist/src/components/http-log-entry/HttpLogEntry.d.ts +6 -0
- package/dist/src/components/http-log-entry/HttpLogEntry.d.ts.map +1 -1
- package/dist/src/components/http-log-entry/index.d.ts +1 -1
- package/dist/src/components/http-log-entry/index.d.ts.map +1 -1
- package/dist/src/index.d.ts +1 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/ui-components.cjs +7 -7
- package/dist/ui-components.css +1 -1
- package/dist/ui-components.js +1921 -1817
- package/package.json +1 -1
package/dist/ui-components.cjs
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),s=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},c=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},l=(n,r,a)=>(a=n==null?{}:e(i(n)),c(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));let u=require("react");u=l(u,1);let d=require("react/jsx-runtime"),f=require("@base-ui/react/checkbox"),p=require("@base-ui/react/radio-group"),m=require("@base-ui/react/field"),h=require("@base-ui/react/combobox"),g=require("@base-ui/react/select"),_=require("@base-ui/react/switch"),v=require("@base-ui/react/dialog"),y=require("@base-ui/react/tabs"),b=require("@base-ui/react/separator"),x=require("@base-ui/react/tooltip"),S=require("@base-ui/react/avatar"),C=require("@base-ui/react/progress"),w=require("@base-ui/react/collapsible"),T=require("react-resizable-panels"),E=require("@monaco-editor/react");E=l(E,1);var ee=`ord-ui-theme`;function D(){return typeof window>`u`?`light`:window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`}function te(e=`system`){let[t,n]=(0,u.useState)(()=>typeof window>`u`?e:localStorage.getItem(ee)||e),[r,i]=(0,u.useState)(t===`system`?D():t),a=(0,u.useCallback)(e=>{n(e),localStorage.setItem(ee,e)},[]);return(0,u.useEffect)(()=>{if(t===`system`){i(D());let e=window.matchMedia(`(prefers-color-scheme: dark)`),t=e=>i(e.matches?`dark`:`light`);return e.addEventListener(`change`,t),()=>{e.removeEventListener(`change`,t)}}else i(t)},[t]),{theme:t,resolvedTheme:r,setTheme:a}}var ne=(0,u.createContext)(null),O=()=>(0,u.useContext)(ne)??(typeof document<`u`?document.querySelector(`.ord-ui`):null);function k({children:e,defaultTheme:t=`system`,className:n,style:r}){let[i,a]=(0,u.useState)(null),o=(0,u.useCallback)(e=>{a(e)},[]),{resolvedTheme:s,setTheme:c}=te(t);return(0,u.useEffect)(()=>{c(t)},[t,c]),(0,d.jsx)(`div`,{ref:o,style:r,className:`ord-ui text-foreground${s===`dark`?` dark`:``}${n?` ${n}`:``}`,children:(0,d.jsx)(ne.Provider,{value:i,children:e})})}function A(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=A(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function re(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=A(e))&&(r&&(r+=` `),r+=t);return r}var ie=(e,t)=>{let n=Array(e.length+t.length);for(let t=0;t<e.length;t++)n[t]=e[t];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},j=(e,t)=>({classGroupId:e,validator:t}),ae=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),oe=`-`,se=[],ce=`arbitrary..`,M=e=>{let t=ue(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return le(e);let n=e.split(oe);return N(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?ie(i,t):t:i||se}return n[e]||se}}},N=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=N(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(oe):e.slice(t).join(oe),s=a.length;for(let e=0;e<s;e++){let t=a[e];if(t.validator(o))return t.classGroupId}},le=e=>e.slice(1,-1).indexOf(`:`)===-1?void 0:(()=>{let t=e.slice(1,-1),n=t.indexOf(`:`),r=t.slice(0,n);return r?ce+r:void 0})(),ue=e=>{let{theme:t,classGroups:n}=e;return P(n,t)},P=(e,t)=>{let n=ae();for(let r in e){let i=e[r];de(i,n,r,t)}return n},de=(e,t,n,r)=>{let i=e.length;for(let a=0;a<i;a++){let i=e[a];fe(i,t,n,r)}},fe=(e,t,n,r)=>{if(typeof e==`string`){pe(e,t,n);return}if(typeof e==`function`){me(e,t,n,r);return}he(e,t,n,r)},pe=(e,t,n)=>{let r=e===``?t:ge(t,e);r.classGroupId=n},me=(e,t,n,r)=>{if(_e(e)){de(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(j(n,e))},he=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e<a;e++){let[a,o]=i[e];de(o,ge(t,a),n,r)}},ge=(e,t)=>{let n=e,r=t.split(oe),i=r.length;for(let e=0;e<i;e++){let t=r[e],i=n.nextPart.get(t);i||(i=ae(),n.nextPart.set(t,i)),n=i}return n},_e=e=>`isThemeGetter`in e&&e.isThemeGetter===!0,ve=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null),i=(i,a)=>{n[i]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];if(t!==void 0)return t;if((t=r[e])!==void 0)return i(e,t),t},set(e,t){e in n?n[e]=t:i(e,t)}}},ye=`!`,be=`:`,xe=[],Se=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),Ce=e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t=[],n=0,r=0,i=0,a,o=e.length;for(let s=0;s<o;s++){let o=e[s];if(n===0&&r===0){if(o===be){t.push(e.slice(i,s)),i=s+1;continue}if(o===`/`){a=s;continue}}o===`[`?n++:o===`]`?n--:o===`(`?r++:o===`)`&&r--}let s=t.length===0?e:e.slice(i),c=s,l=!1;s.endsWith(ye)?(c=s.slice(0,-1),l=!0):s.startsWith(ye)&&(c=s.slice(1),l=!0);let u=a&&a>i?a-i:void 0;return Se(t,l,c,u)};if(t){let e=t+be,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):Se(xe,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},we=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{let n=[],r=[];for(let i=0;i<e.length;i++){let a=e[i],o=a[0]===`[`,s=t.has(a);o||s?(r.length>0&&(r.sort(),n.push(...r),r=[]),n.push(a)):r.push(a)}return r.length>0&&(r.sort(),n.push(...r)),n}},Te=e=>({cache:ve(e.cacheSize),parseClassName:Ce(e),sortModifiers:we(e),postfixLookupClassGroupIds:Ee(e),...M(e)}),Ee=e=>{let t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let e=0;e<n.length;e++)t[n[e]]=!0;return t},De=/\s+/,Oe=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a,postfixLookupClassGroupIds:o}=t,s=[],c=e.trim().split(De),l=``;for(let e=c.length-1;e>=0;--e){let t=c[e],{isExternal:u,modifiers:d,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:m}=n(t);if(u){l=t+(l.length>0?` `+l:l);continue}let h=!!m,g;if(h){g=r(p.substring(0,m));let e=g&&o[g]?r(p):void 0;e&&e!==g&&(g=e,h=!1)}else g=r(p);if(!g){if(!h){l=t+(l.length>0?` `+l:l);continue}if(g=r(p),!g){l=t+(l.length>0?` `+l:l);continue}h=!1}let _=d.length===0?``:d.length===1?d[0]:a(d).join(`:`),v=f?_+ye:_,y=v+g;if(s.indexOf(y)>-1)continue;s.push(y);let b=i(g,h);for(let e=0;e<b.length;++e){let t=b[e];s.push(v+t)}l=t+(l.length>0?` `+l:l)}return l},ke=(...e)=>{let t=0,n,r,i=``;for(;t<e.length;)(n=e[t++])&&(r=Ae(n))&&(i&&(i+=` `),i+=r);return i},Ae=e=>{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r<e.length;r++)e[r]&&(t=Ae(e[r]))&&(n&&(n+=` `),n+=t);return n},je=(e,...t)=>{let n,r,i,a,o=o=>(n=Te(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)),s=e=>{let t=r(e);if(t)return t;let a=Oe(e,n);return i(e,a),a};return a=o,(...e)=>a(ke(...e))},Me=[],F=e=>{let t=t=>t[e]||Me;return t.isThemeGetter=!0,t},Ne=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Pe=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Fe=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Ie=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Le=/\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$/,Re=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,ze=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Be=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ve=e=>Fe.test(e),I=e=>!!e&&!Number.isNaN(Number(e)),He=e=>!!e&&Number.isInteger(Number(e)),Ue=e=>e.endsWith(`%`)&&I(e.slice(0,-1)),We=e=>Ie.test(e),Ge=()=>!0,Ke=e=>Le.test(e)&&!Re.test(e),qe=()=>!1,Je=e=>ze.test(e),Ye=e=>Be.test(e),Xe=e=>!L(e)&&!R(e),Ze=e=>e.startsWith(`@container`)&&(e[10]===`/`&&e[11]!==void 0||e[11]===`s`&&e[16]!==void 0&&e.startsWith(`-size/`,10)||e[11]===`n`&&e[18]!==void 0&&e.startsWith(`-normal/`,10)),Qe=e=>pt(e,_t,qe),L=e=>Ne.test(e),$e=e=>pt(e,vt,Ke),et=e=>pt(e,yt,I),tt=e=>pt(e,xt,Ge),nt=e=>pt(e,bt,qe),rt=e=>pt(e,ht,qe),it=e=>pt(e,gt,Ye),at=e=>pt(e,St,Je),R=e=>Pe.test(e),ot=e=>mt(e,vt),st=e=>mt(e,bt),ct=e=>mt(e,ht),lt=e=>mt(e,_t),ut=e=>mt(e,gt),dt=e=>mt(e,St,!0),ft=e=>mt(e,xt,!0),pt=(e,t,n)=>{let r=Ne.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},mt=(e,t,n=!1)=>{let r=Pe.exec(e);return r?r[1]?t(r[1]):n:!1},ht=e=>e===`position`||e===`percentage`,gt=e=>e===`image`||e===`url`,_t=e=>e===`length`||e===`size`||e===`bg-size`,vt=e=>e===`length`,yt=e=>e===`number`,bt=e=>e===`family-name`,xt=e=>e===`number`||e===`weight`,St=e=>e===`shadow`,Ct=je(()=>{let e=F(`color`),t=F(`font`),n=F(`text`),r=F(`font-weight`),i=F(`tracking`),a=F(`leading`),o=F(`breakpoint`),s=F(`container`),c=F(`spacing`),l=F(`radius`),u=F(`shadow`),d=F(`inset-shadow`),f=F(`text-shadow`),p=F(`drop-shadow`),m=F(`blur`),h=F(`perspective`),g=F(`aspect`),_=F(`ease`),v=F(`animate`),y=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],b=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],x=()=>[...b(),R,L],S=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],C=()=>[`auto`,`contain`,`none`],w=()=>[R,L,c],T=()=>[Ve,`full`,`auto`,...w()],E=()=>[He,`none`,`subgrid`,R,L],ee=()=>[`auto`,{span:[`full`,He,R,L]},He,R,L],D=()=>[He,`auto`,R,L],te=()=>[`auto`,`min`,`max`,`fr`,R,L],ne=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],O=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],k=()=>[`auto`,...w()],A=()=>[Ve,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...w()],re=()=>[Ve,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...w()],ie=()=>[Ve,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...w()],j=()=>[e,R,L],ae=()=>[...b(),ct,rt,{position:[R,L]}],oe=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],se=()=>[`auto`,`cover`,`contain`,lt,Qe,{size:[R,L]}],ce=()=>[Ue,ot,$e],M=()=>[``,`none`,`full`,l,R,L],N=()=>[``,I,ot,$e],le=()=>[`solid`,`dashed`,`dotted`,`double`],ue=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],P=()=>[I,Ue,ct,rt],de=()=>[``,`none`,m,R,L],fe=()=>[`none`,I,R,L],pe=()=>[`none`,I,R,L],me=()=>[I,R,L],he=()=>[Ve,`full`,...w()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[We],breakpoint:[We],color:[Ge],container:[We],"drop-shadow":[We],ease:[`in`,`out`,`in-out`],font:[Xe],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[We],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[We],shadow:[We],spacing:[`px`,I],text:[We],"text-shadow":[We],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,Ve,L,R,g]}],container:[`container`],"container-type":[{"@container":[``,`normal`,`size`,R,L]}],"container-named":[Ze],columns:[{columns:[I,L,R,s]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"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:x()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:T()}],"inset-x":[{"inset-x":T()}],"inset-y":[{"inset-y":T()}],start:[{"inset-s":T(),start:T()}],end:[{"inset-e":T(),end:T()}],"inset-bs":[{"inset-bs":T()}],"inset-be":[{"inset-be":T()}],top:[{top:T()}],right:[{right:T()}],bottom:[{bottom:T()}],left:[{left:T()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[He,`auto`,R,L]}],basis:[{basis:[Ve,`full`,`auto`,s,...w()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[I,Ve,`auto`,`initial`,`none`,L]}],grow:[{grow:[``,I,R,L]}],shrink:[{shrink:[``,I,R,L]}],order:[{order:[He,`first`,`last`,`none`,R,L]}],"grid-cols":[{"grid-cols":E()}],"col-start-end":[{col:ee()}],"col-start":[{"col-start":D()}],"col-end":[{"col-end":D()}],"grid-rows":[{"grid-rows":E()}],"row-start-end":[{row:ee()}],"row-start":[{"row-start":D()}],"row-end":[{"row-end":D()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":te()}],"auto-rows":[{"auto-rows":te()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:[...ne(),`normal`]}],"justify-items":[{"justify-items":[...O(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...O()]}],"align-content":[{content:[`normal`,...ne()]}],"align-items":[{items:[...O(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...O(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":ne()}],"place-items":[{"place-items":[...O(),`baseline`]}],"place-self":[{"place-self":[`auto`,...O()]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pbs:[{pbs:w()}],pbe:[{pbe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:k()}],mx:[{mx:k()}],my:[{my:k()}],ms:[{ms:k()}],me:[{me:k()}],mbs:[{mbs:k()}],mbe:[{mbe:k()}],mt:[{mt:k()}],mr:[{mr:k()}],mb:[{mb:k()}],ml:[{ml:k()}],"space-x":[{"space-x":w()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":w()}],"space-y-reverse":[`space-y-reverse`],size:[{size:A()}],"inline-size":[{inline:[`auto`,...re()]}],"min-inline-size":[{"min-inline":[`auto`,...re()]}],"max-inline-size":[{"max-inline":[`none`,...re()]}],"block-size":[{block:[`auto`,...ie()]}],"min-block-size":[{"min-block":[`auto`,...ie()]}],"max-block-size":[{"max-block":[`none`,...ie()]}],w:[{w:[s,`screen`,...A()]}],"min-w":[{"min-w":[s,`screen`,`none`,...A()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...A()]}],h:[{h:[`screen`,`lh`,...A()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...A()]}],"max-h":[{"max-h":[`screen`,`lh`,...A()]}],"font-size":[{text:[`base`,n,ot,$e]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,ft,tt]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,Ue,L]}],"font-family":[{font:[st,nt,t]}],"font-features":[{"font-features":[L]}],"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:[i,R,L]}],"line-clamp":[{"line-clamp":[I,`none`,R,et]}],leading:[{leading:[a,...w()]}],"list-image":[{"list-image":[`none`,R,L]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,R,L]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:j()}],"text-color":[{text:j()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...le(),`wavy`]}],"text-decoration-thickness":[{decoration:[I,`from-font`,`auto`,R,$e]}],"text-decoration-color":[{decoration:j()}],"underline-offset":[{"underline-offset":[I,`auto`,R,L]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:w()}],"tab-size":[{tab:[He,R,L]}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,R,L]}],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`,R,L]}],"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:oe()}],"bg-size":[{bg:se()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},He,R,L],radial:[``,R,L],conic:[He,R,L]},ut,it]}],"bg-color":[{bg:j()}],"gradient-from-pos":[{from:ce()}],"gradient-via-pos":[{via:ce()}],"gradient-to-pos":[{to:ce()}],"gradient-from":[{from:j()}],"gradient-via":[{via:j()}],"gradient-to":[{to:j()}],rounded:[{rounded:M()}],"rounded-s":[{"rounded-s":M()}],"rounded-e":[{"rounded-e":M()}],"rounded-t":[{"rounded-t":M()}],"rounded-r":[{"rounded-r":M()}],"rounded-b":[{"rounded-b":M()}],"rounded-l":[{"rounded-l":M()}],"rounded-ss":[{"rounded-ss":M()}],"rounded-se":[{"rounded-se":M()}],"rounded-ee":[{"rounded-ee":M()}],"rounded-es":[{"rounded-es":M()}],"rounded-tl":[{"rounded-tl":M()}],"rounded-tr":[{"rounded-tr":M()}],"rounded-br":[{"rounded-br":M()}],"rounded-bl":[{"rounded-bl":M()}],"border-w":[{border:N()}],"border-w-x":[{"border-x":N()}],"border-w-y":[{"border-y":N()}],"border-w-s":[{"border-s":N()}],"border-w-e":[{"border-e":N()}],"border-w-bs":[{"border-bs":N()}],"border-w-be":[{"border-be":N()}],"border-w-t":[{"border-t":N()}],"border-w-r":[{"border-r":N()}],"border-w-b":[{"border-b":N()}],"border-w-l":[{"border-l":N()}],"divide-x":[{"divide-x":N()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":N()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...le(),`hidden`,`none`]}],"divide-style":[{divide:[...le(),`hidden`,`none`]}],"border-color":[{border:j()}],"border-color-x":[{"border-x":j()}],"border-color-y":[{"border-y":j()}],"border-color-s":[{"border-s":j()}],"border-color-e":[{"border-e":j()}],"border-color-bs":[{"border-bs":j()}],"border-color-be":[{"border-be":j()}],"border-color-t":[{"border-t":j()}],"border-color-r":[{"border-r":j()}],"border-color-b":[{"border-b":j()}],"border-color-l":[{"border-l":j()}],"divide-color":[{divide:j()}],"outline-style":[{outline:[...le(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[I,R,L]}],"outline-w":[{outline:[``,I,ot,$e]}],"outline-color":[{outline:j()}],shadow:[{shadow:[``,`none`,u,dt,at]}],"shadow-color":[{shadow:j()}],"inset-shadow":[{"inset-shadow":[`none`,d,dt,at]}],"inset-shadow-color":[{"inset-shadow":j()}],"ring-w":[{ring:N()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:j()}],"ring-offset-w":[{"ring-offset":[I,$e]}],"ring-offset-color":[{"ring-offset":j()}],"inset-ring-w":[{"inset-ring":N()}],"inset-ring-color":[{"inset-ring":j()}],"text-shadow":[{"text-shadow":[`none`,f,dt,at]}],"text-shadow-color":[{"text-shadow":j()}],opacity:[{opacity:[I,R,L]}],"mix-blend":[{"mix-blend":[...ue(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":ue()}],"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":[I]}],"mask-image-linear-from-pos":[{"mask-linear-from":P()}],"mask-image-linear-to-pos":[{"mask-linear-to":P()}],"mask-image-linear-from-color":[{"mask-linear-from":j()}],"mask-image-linear-to-color":[{"mask-linear-to":j()}],"mask-image-t-from-pos":[{"mask-t-from":P()}],"mask-image-t-to-pos":[{"mask-t-to":P()}],"mask-image-t-from-color":[{"mask-t-from":j()}],"mask-image-t-to-color":[{"mask-t-to":j()}],"mask-image-r-from-pos":[{"mask-r-from":P()}],"mask-image-r-to-pos":[{"mask-r-to":P()}],"mask-image-r-from-color":[{"mask-r-from":j()}],"mask-image-r-to-color":[{"mask-r-to":j()}],"mask-image-b-from-pos":[{"mask-b-from":P()}],"mask-image-b-to-pos":[{"mask-b-to":P()}],"mask-image-b-from-color":[{"mask-b-from":j()}],"mask-image-b-to-color":[{"mask-b-to":j()}],"mask-image-l-from-pos":[{"mask-l-from":P()}],"mask-image-l-to-pos":[{"mask-l-to":P()}],"mask-image-l-from-color":[{"mask-l-from":j()}],"mask-image-l-to-color":[{"mask-l-to":j()}],"mask-image-x-from-pos":[{"mask-x-from":P()}],"mask-image-x-to-pos":[{"mask-x-to":P()}],"mask-image-x-from-color":[{"mask-x-from":j()}],"mask-image-x-to-color":[{"mask-x-to":j()}],"mask-image-y-from-pos":[{"mask-y-from":P()}],"mask-image-y-to-pos":[{"mask-y-to":P()}],"mask-image-y-from-color":[{"mask-y-from":j()}],"mask-image-y-to-color":[{"mask-y-to":j()}],"mask-image-radial":[{"mask-radial":[R,L]}],"mask-image-radial-from-pos":[{"mask-radial-from":P()}],"mask-image-radial-to-pos":[{"mask-radial-to":P()}],"mask-image-radial-from-color":[{"mask-radial-from":j()}],"mask-image-radial-to-color":[{"mask-radial-to":j()}],"mask-image-radial-shape":[{"mask-radial":[`circle`,`ellipse`]}],"mask-image-radial-size":[{"mask-radial":[{closest:[`side`,`corner`],farthest:[`side`,`corner`]}]}],"mask-image-radial-pos":[{"mask-radial-at":b()}],"mask-image-conic-pos":[{"mask-conic":[I]}],"mask-image-conic-from-pos":[{"mask-conic-from":P()}],"mask-image-conic-to-pos":[{"mask-conic-to":P()}],"mask-image-conic-from-color":[{"mask-conic-from":j()}],"mask-image-conic-to-color":[{"mask-conic-to":j()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:ae()}],"mask-repeat":[{mask:oe()}],"mask-size":[{mask:se()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,R,L]}],filter:[{filter:[``,`none`,R,L]}],blur:[{blur:de()}],brightness:[{brightness:[I,R,L]}],contrast:[{contrast:[I,R,L]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,dt,at]}],"drop-shadow-color":[{"drop-shadow":j()}],grayscale:[{grayscale:[``,I,R,L]}],"hue-rotate":[{"hue-rotate":[I,R,L]}],invert:[{invert:[``,I,R,L]}],saturate:[{saturate:[I,R,L]}],sepia:[{sepia:[``,I,R,L]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,R,L]}],"backdrop-blur":[{"backdrop-blur":de()}],"backdrop-brightness":[{"backdrop-brightness":[I,R,L]}],"backdrop-contrast":[{"backdrop-contrast":[I,R,L]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,I,R,L]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[I,R,L]}],"backdrop-invert":[{"backdrop-invert":[``,I,R,L]}],"backdrop-opacity":[{"backdrop-opacity":[I,R,L]}],"backdrop-saturate":[{"backdrop-saturate":[I,R,L]}],"backdrop-sepia":[{"backdrop-sepia":[``,I,R,L]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[``,`all`,`colors`,`opacity`,`shadow`,`transform`,`none`,R,L]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[I,`initial`,R,L]}],ease:[{ease:[`linear`,`initial`,_,R,L]}],delay:[{delay:[I,R,L]}],animate:[{animate:[`none`,v,R,L]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,R,L]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:fe()}],"rotate-x":[{"rotate-x":fe()}],"rotate-y":[{"rotate-y":fe()}],"rotate-z":[{"rotate-z":fe()}],scale:[{scale:pe()}],"scale-x":[{"scale-x":pe()}],"scale-y":[{"scale-y":pe()}],"scale-z":[{"scale-z":pe()}],"scale-3d":[`scale-3d`],skew:[{skew:me()}],"skew-x":[{"skew-x":me()}],"skew-y":[{"skew-y":me()}],transform:[{transform:[R,L,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:he()}],"translate-x":[{"translate-x":he()}],"translate-y":[{"translate-y":he()}],"translate-z":[{"translate-z":he()}],"translate-none":[`translate-none`],zoom:[{zoom:[He,R,L]}],accent:[{accent:j()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:j()}],"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`,R,L]}],"field-sizing":[{"field-sizing":[`fixed`,`content`]}],"pointer-events":[{"pointer-events":[`auto`,`none`]}],resize:[{resize:[`none`,``,`y`,`x`]}],"scroll-behavior":[{scroll:[`auto`,`smooth`]}],"scrollbar-thumb-color":[{"scrollbar-thumb":j()}],"scrollbar-track-color":[{"scrollbar-track":j()}],"scrollbar-gutter":[{"scrollbar-gutter":[`auto`,`stable`,`both`]}],"scrollbar-w":[{scrollbar:[`auto`,`thin`,`none`]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mbs":[{"scroll-mbs":w()}],"scroll-mbe":[{"scroll-mbe":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pbs":[{"scroll-pbs":w()}],"scroll-pbe":[{"scroll-pbe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"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`,R,L]}],fill:[{fill:[`none`,...j()]}],"stroke-w":[{stroke:[I,ot,$e,et]}],stroke:[{stroke:[`none`,...j()]}],"forced-color-adjust":[{"forced-color-adjust":[`auto`,`none`]}]},conflictingClassGroups:{"container-named":[`container-type`],overflow:[`overflow-x`,`overflow-y`],overscroll:[`overscroll-x`,`overscroll-y`],inset:[`inset-x`,`inset-y`,`inset-bs`,`inset-be`,`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`,`pbs`,`pbe`,`pt`,`pr`,`pb`,`pl`],px:[`pr`,`pl`],py:[`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mbs`,`mbe`,`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-bs`,`border-w-be`,`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-bs`,`border-color-be`,`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-mbs`,`scroll-mbe`,`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-pbs`,`scroll-pbe`,`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`]},postfixLookupClassGroups:[`container-type`],orderSensitiveModifiers:[`*`,`**`,`after`,`backdrop`,`before`,`details-content`,`file`,`first-letter`,`first-line`,`marker`,`placeholder`,`selection`]}});function z(...e){return Ct(re(e))}var wt=e=>typeof e==`boolean`?`${e}`:e===0?`0`:e,Tt=re,Et=(e,t)=>n=>{if(t?.variants==null)return Tt(e,n?.class,n?.className);let{variants:r,defaultVariants:i}=t,a=Object.keys(r).map(e=>{let t=n?.[e],a=i?.[e];if(t===null)return null;let o=wt(t)||wt(a);return r[e][o]}),o=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return r===void 0||(e[n]=r),e},{});return Tt(e,a,t?.compoundVariants?.reduce((e,t)=>{let{class:n,className:r,...a}=t;return Object.entries(a).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...i,...o}[t]):{...i,...o}[t]===n})?[...e,n,r]:e},[]),n?.class,n?.className)},Dt=Et(`inline-flex items-center justify-center gap-2 whitespace-nowrap text-sm font-medium cursor-pointer transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0`,{variants:{variant:{default:`bg-button-primary-bg text-button-primary-fg shadow hover:bg-button-primary-bg-hover active:bg-button-primary-bg-active`,destructive:`bg-button-destructive-bg text-button-destructive-fg shadow-sm hover:bg-button-destructive-bg-hover active:bg-button-destructive-bg-active`,outline:`border border-button-outline-border bg-button-outline-bg shadow-sm hover:bg-button-outline-bg-hover hover:text-button-outline-fg-hover active:bg-button-outline-bg-hover/80`,secondary:`bg-button-secondary-bg text-button-secondary-fg shadow-sm hover:bg-button-secondary-bg-hover active:bg-button-secondary-bg-active`,ghost:`hover:bg-button-ghost-bg-hover hover:text-button-ghost-fg-hover active:bg-button-ghost-bg-hover/80`,link:`text-button-link-fg underline-offset-4 hover:underline`},size:{sm:`h-8 rounded-md px-3 text-xs`,default:`h-9 px-4 py-2 rounded-md`,lg:`h-10 rounded-md px-8`,icon:`h-9 w-9 rounded-full`}},defaultVariants:{variant:`default`,size:`default`}}),Ot=(0,u.forwardRef)(({className:e,variant:t,size:n,...r},i)=>(0,d.jsx)(`button`,{className:z(Dt({variant:t,size:n,className:e})),ref:i,...r}));Ot.displayName=`Button`;var kt=(0,u.forwardRef)(({className:e,type:t,...n},r)=>(0,d.jsx)(`input`,{type:t,className:z(`flex h-10 w-full rounded-[var(--ord-radius)] border border-input-border bg-input-bg px-3 py-2 text-sm text-input-fg ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-input-placeholder focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50`,e),ref:r,...n}));kt.displayName=`Input`;var At=(0,u.forwardRef)(({className:e,...t},n)=>(0,d.jsx)(`textarea`,{className:z(`flex min-h-[80px] w-full rounded-[var(--ord-radius)] border border-input bg-background px-3 py-2 text-sm text-foreground ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50`,e),ref:n,...t}));At.displayName=`Textarea`;var jt=()=>(0,d.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`16`,height:`16`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,children:[(0,d.jsx)(`path`,{d:`M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z`}),(0,d.jsx)(`circle`,{cx:`12`,cy:`12`,r:`3`})]}),Mt=()=>(0,d.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`16`,height:`16`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,children:[(0,d.jsx)(`path`,{d:`M9.88 9.88a3 3 0 1 0 4.24 4.24`}),(0,d.jsx)(`path`,{d:`M10.73 5.08A10.43 10.43 0 0 1 12 5c7 0 10 7 10 7a13.16 13.16 0 0 1-1.67 2.68`}),(0,d.jsx)(`path`,{d:`M6.61 6.61A13.526 13.526 0 0 0 2 12s3 7 10 7a9.74 9.74 0 0 0 5.39-1.61`}),(0,d.jsx)(`line`,{x1:`2`,x2:`22`,y1:`2`,y2:`22`})]}),Nt=(0,u.forwardRef)(({className:e,...t},n)=>{let[r,i]=(0,u.useState)(!1);return(0,d.jsxs)(`div`,{className:`relative`,children:[(0,d.jsx)(`input`,{type:r?`text`:`password`,className:z(`flex h-10 w-full rounded-[var(--ord-radius)] border border-input bg-background px-3 py-2 pr-10 text-sm text-foreground ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50`,e),ref:n,...t}),(0,d.jsx)(`button`,{type:`button`,className:`absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground hover:text-foreground focus-visible:outline-none`,onClick:()=>i(e=>!e),tabIndex:-1,"aria-label":r?`Hide password`:`Show password`,children:r?(0,d.jsx)(Mt,{}):(0,d.jsx)(jt,{})})]})});Nt.displayName=`PasswordInput`;var Pt=()=>(0,d.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`14`,height:`14`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`3`,strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,d.jsx)(`polyline`,{points:`20 6 9 17 4 12`})}),Ft=(0,u.forwardRef)(({className:e,children:t,...n},r)=>(0,d.jsx)(f.Checkbox.Root,{ref:r,className:z(`inline-flex h-4 w-4 shrink-0 cursor-pointer items-center justify-center rounded-sm border border-checkbox-border ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[checked]:bg-checkbox-bg-checked data-[checked]:text-checkbox-fg-checked`,e),...n,children:t}));Ft.displayName=`Checkbox.Root`;var It=(0,u.forwardRef)(({className:e,...t},n)=>(0,d.jsx)(f.Checkbox.Indicator,{ref:n,className:z(`flex items-center justify-center text-current`,e),...t,children:(0,d.jsx)(Pt,{})}));It.displayName=`Checkbox.Indicator`;var Lt=Object.assign({},{Root:Ft,Indicator:It});function Rt({className:e,...t}){return(0,d.jsx)(p.RadioGroup,{className:z(`flex flex-col gap-2`,e),...t})}Rt.displayName=`RadioGroup`;var zt=(0,u.forwardRef)(({className:e,...t},n)=>(0,d.jsx)(m.Field.Root,{ref:n,className:z(`flex flex-col gap-1.5`,e),...t}));zt.displayName=`Field.Root`;var Bt=(0,u.forwardRef)(({className:e,...t},n)=>(0,d.jsx)(m.Field.Label,{ref:n,className:z(`text-sm font-medium leading-none text-foreground peer-disabled:cursor-not-allowed peer-disabled:opacity-70`,e),...t}));Bt.displayName=`Field.Label`;var Vt=(0,u.forwardRef)(({className:e,...t},n)=>(0,d.jsx)(m.Field.Description,{ref:n,className:z(`text-sm text-muted-foreground`,e),...t}));Vt.displayName=`Field.Description`;var Ht=(0,u.forwardRef)(({className:e,...t},n)=>(0,d.jsx)(m.Field.Error,{ref:n,className:z(`text-sm font-medium text-destructive`,e),...t}));Ht.displayName=`Field.Error`;var Ut=Object.assign({},{Root:zt,Label:Bt,Description:Vt,Error:Ht});function Wt(e){return(0,d.jsx)(h.Combobox.Root,{...e})}Wt.displayName=`Combobox.Root`;var Gt=(0,u.forwardRef)(({className:e,...t},n)=>(0,d.jsx)(h.Combobox.Input,{ref:n,className:z(`flex h-10 w-full rounded-[var(--ord-radius)] border border-input-border bg-input-bg px-3 py-2 text-sm text-input-fg ring-offset-background placeholder:text-input-placeholder focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50`,e),...t}));Gt.displayName=`Combobox.Input`;function Kt(e){let t=O();return(0,d.jsx)(h.Combobox.Portal,{container:t,...e})}Kt.displayName=`Combobox.Portal`;var qt=(0,u.forwardRef)(({className:e,...t},n)=>(0,d.jsx)(h.Combobox.Positioner,{ref:n,align:`start`,className:z(`outline-none`,e),...t}));qt.displayName=`Combobox.Positioner`;var Jt=(0,u.forwardRef)(({className:e,...t},n)=>(0,d.jsx)(h.Combobox.Popup,{ref:n,className:z(`bg-combobox-popup-bg text-combobox-popup-fg border border-combobox-popup-border rounded-[var(--ord-radius)] shadow-md p-1 overflow-hidden min-w-[var(--anchor-width)]`,e),...t}));Jt.displayName=`Combobox.Popup`;var Yt=(0,u.forwardRef)(({className:e,...t},n)=>(0,d.jsx)(h.Combobox.Item,{ref:n,className:z(`relative flex w-full cursor-pointer select-none items-center rounded-sm pl-8 pr-2 py-1.5 text-sm outline-none data-[highlighted]:bg-combobox-item-bg-hover data-[highlighted]:text-combobox-item-fg-hover data-[selected]:bg-combobox-item-bg-hover data-[selected]:text-combobox-item-fg-hover data-[disabled]:pointer-events-none data-[disabled]:opacity-50`,e),...t}));Yt.displayName=`Combobox.Item`;var Xt=(0,u.forwardRef)(({className:e,children:t,...n},r)=>(0,d.jsx)(h.Combobox.ItemIndicator,{ref:r,className:z(`absolute left-2 flex h-3.5 w-3.5 items-center justify-center`,e),...n,children:t??(0,d.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`14`,height:`14`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,d.jsx)(`polyline`,{points:`20 6 9 17 4 12`})})}));Xt.displayName=`Combobox.ItemIndicator`;var Zt=(0,u.forwardRef)(({className:e,...t},n)=>(0,d.jsx)(h.Combobox.Empty,{ref:n,className:z(`px-2 py-4 text-center text-sm text-muted-foreground`,e),...t}));Zt.displayName=`Combobox.Empty`;var Qt=(0,u.forwardRef)(({className:e,...t},n)=>(0,d.jsx)(h.Combobox.Group,{ref:n,className:z(`p-1`,e),...t}));Qt.displayName=`Combobox.Group`;var $t=(0,u.forwardRef)(({className:e,...t},n)=>(0,d.jsx)(h.Combobox.GroupLabel,{ref:n,className:z(`px-2 py-1.5 text-xs font-semibold text-muted-foreground`,e),...t}));$t.displayName=`Combobox.GroupLabel`;var en=Object.assign({},{Root:Wt,Input:Gt,Portal:Kt,Positioner:qt,Popup:Jt,Item:Yt,ItemIndicator:Xt,Empty:Zt,Group:Qt,GroupLabel:$t}),tn=(0,u.forwardRef)(({items:e,placeholder:t,maxVisibleItems:n=8,value:r,defaultValue:i,onChange:a,disabled:o,className:s,...c},l)=>{let[f,p]=(0,u.useState)(``),m=(0,u.useMemo)(()=>e.filter(e=>e.label.toLowerCase().includes(f.toLowerCase())),[e,f]),h=`${n*36}px`;return(0,d.jsx)(`div`,{ref:l,className:z(`w-full`,s),...c,children:(0,d.jsxs)(en.Root,{value:r,defaultValue:i,onValueChange:e=>{a?.(e)},onInputValueChange:e=>{p(e)},disabled:o,children:[(0,d.jsx)(en.Input,{placeholder:t}),(0,d.jsx)(en.Portal,{children:(0,d.jsx)(en.Positioner,{children:(0,d.jsx)(en.Popup,{className:`overflow-y-auto`,style:{maxHeight:h},children:m.length===0?(0,d.jsx)(en.Empty,{children:`No results`}):m.map(e=>(0,d.jsxs)(en.Item,{value:e.value,children:[(0,d.jsx)(en.ItemIndicator,{}),e.label]},e.value))})})})]})})});tn.displayName=`SimpleCombobox`;function nn(e){return(0,d.jsx)(g.Select.Root,{...e})}nn.displayName=`Select.Root`;var rn=(0,u.forwardRef)(({className:e,...t},n)=>(0,d.jsx)(g.Select.Trigger,{ref:n,className:z(`flex h-10 w-full items-center justify-between rounded-[var(--ord-radius)] border border-select-trigger-border bg-select-trigger-bg px-3 py-2 text-sm text-select-trigger-fg ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50`,e),...t}));rn.displayName=`Select.Trigger`;var an=(0,u.forwardRef)(({className:e,...t},n)=>(0,d.jsx)(g.Select.Value,{ref:n,className:z(`text-sm truncate`,e),...t}));an.displayName=`Select.Value`;var on=(0,u.forwardRef)(({className:e,children:t,...n},r)=>(0,d.jsx)(g.Select.Icon,{ref:r,className:z(`flex shrink-0 text-muted-foreground`,e),...n,children:t??(0,d.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`16`,height:`16`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,d.jsx)(`path`,{d:`m6 9 6 6 6-6`})})}));on.displayName=`Select.Icon`;function sn(e){let t=O();return(0,d.jsx)(g.Select.Portal,{container:t,...e})}sn.displayName=`Select.Portal`;var cn=(0,u.forwardRef)(({className:e,...t},n)=>(0,d.jsx)(g.Select.Positioner,{ref:n,side:`bottom`,align:`start`,sideOffset:4,className:z(`outline-none z-50`,e),...t}));cn.displayName=`Select.Positioner`;var ln=(0,u.forwardRef)(({className:e,...t},n)=>(0,d.jsx)(g.Select.Popup,{ref:n,className:z(`bg-select-popup-bg text-select-popup-fg border border-select-popup-border rounded-[var(--ord-radius)] shadow-md p-1 overflow-hidden min-w-[var(--anchor-width)]`,e),...t}));ln.displayName=`Select.Popup`;var un=(0,u.forwardRef)(({className:e,...t},n)=>(0,d.jsx)(g.Select.Item,{ref:n,className:z(`relative flex w-full cursor-pointer select-none items-center rounded-sm pl-8 pr-2 py-1.5 text-sm outline-none data-[highlighted]:bg-select-item-bg-hover data-[highlighted]:text-select-item-fg-hover data-[disabled]:pointer-events-none data-[disabled]:opacity-50`,e),...t}));un.displayName=`Select.Item`;var dn=(0,u.forwardRef)(({className:e,children:t,...n},r)=>(0,d.jsx)(g.Select.ItemIndicator,{ref:r,className:z(`absolute left-2 flex h-3.5 w-3.5 items-center justify-center`,e),...n,children:t??(0,d.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`14`,height:`14`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,d.jsx)(`polyline`,{points:`20 6 9 17 4 12`})})}));dn.displayName=`Select.ItemIndicator`;var fn=(0,u.forwardRef)((e,t)=>(0,d.jsx)(g.Select.ItemText,{ref:t,...e}));fn.displayName=`Select.ItemText`;var pn=(0,u.forwardRef)(({className:e,...t},n)=>(0,d.jsx)(g.Select.Group,{ref:n,className:z(`p-1`,e),...t}));pn.displayName=`Select.Group`;var mn=(0,u.forwardRef)(({className:e,...t},n)=>(0,d.jsx)(g.Select.GroupLabel,{ref:n,className:z(`px-2 py-1.5 text-xs font-semibold text-muted-foreground`,e),...t}));mn.displayName=`Select.GroupLabel`;var hn=(0,u.forwardRef)(({className:e,children:t,...n},r)=>(0,d.jsx)(g.Select.ScrollUpArrow,{ref:r,className:z(`flex items-center justify-center py-1 text-muted-foreground`,e),...n,children:t??(0,d.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`12`,height:`12`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,d.jsx)(`path`,{d:`m18 15-6-6-6 6`})})}));hn.displayName=`Select.ScrollUpArrow`;var gn=(0,u.forwardRef)(({className:e,children:t,...n},r)=>(0,d.jsx)(g.Select.ScrollDownArrow,{ref:r,className:z(`flex items-center justify-center py-1 text-muted-foreground`,e),...n,children:t??(0,d.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`12`,height:`12`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,d.jsx)(`path`,{d:`m6 9 6 6 6-6`})})}));gn.displayName=`Select.ScrollDownArrow`;var B=Object.assign({},{Root:nn,Trigger:rn,Value:an,Icon:on,Portal:sn,Positioner:cn,Popup:ln,Item:un,ItemIndicator:dn,ItemText:fn,Group:pn,GroupLabel:mn,ScrollUpArrow:hn,ScrollDownArrow:gn});function _n(e){return`items`in e}var vn=(0,u.forwardRef)(({items:e,placeholder:t,value:n,defaultValue:r,onChange:i,disabled:a,className:o,...s},c)=>{let l=(0,u.useMemo)(()=>{let t={};for(let n of e)if(_n(n))for(let e of n.items)t[e.value]=e.label;else t[n.value]=n.label;return t},[e]);return(0,d.jsx)(`div`,{ref:c,className:z(`w-full`,o),...s,children:(0,d.jsxs)(B.Root,{value:n,defaultValue:r,onValueChange:e=>{i?.(e)},disabled:a,items:l,children:[(0,d.jsxs)(B.Trigger,{children:[(0,d.jsx)(B.Value,{placeholder:t}),(0,d.jsx)(B.Icon,{})]}),(0,d.jsx)(B.Portal,{children:(0,d.jsx)(B.Positioner,{children:(0,d.jsxs)(B.Popup,{children:[(0,d.jsx)(B.ScrollUpArrow,{}),e.map(e=>_n(e)?(0,d.jsxs)(B.Group,{children:[(0,d.jsx)(B.GroupLabel,{children:e.label}),e.items.map(e=>(0,d.jsxs)(B.Item,{value:e.value,disabled:e.disabled,children:[(0,d.jsx)(B.ItemIndicator,{}),(0,d.jsx)(B.ItemText,{children:e.label})]},e.value))]},e.label):(0,d.jsxs)(B.Item,{value:e.value,disabled:e.disabled,children:[(0,d.jsx)(B.ItemIndicator,{}),(0,d.jsx)(B.ItemText,{children:e.label})]},e.value)),(0,d.jsx)(B.ScrollDownArrow,{})]})})})]})})});vn.displayName=`SimpleSelect`;var yn=(0,u.forwardRef)(({className:e,children:t,...n},r)=>(0,d.jsx)(_.Switch.Root,{ref:r,className:z(`peer inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[checked]:bg-switch-track-on data-[unchecked]:bg-switch-track-off`,e),...n,children:t}));yn.displayName=`Switch.Root`;var bn=(0,u.forwardRef)(({className:e,...t},n)=>(0,d.jsx)(_.Switch.Thumb,{ref:n,className:z(`pointer-events-none block h-4 w-4 rounded-full bg-switch-thumb shadow-lg ring-0 transition-transform data-[checked]:translate-x-4 data-[unchecked]:translate-x-0`,e),...t}));bn.displayName=`Switch.Thumb`;var xn=Object.assign({},{Root:yn,Thumb:bn});function Sn(e){return(0,d.jsx)(v.Dialog.Root,{...e})}Sn.displayName=`Dialog.Root`;var Cn=(0,u.forwardRef)(({className:e,...t},n)=>(0,d.jsx)(v.Dialog.Trigger,{ref:n,className:z(``,e),...t}));Cn.displayName=`Dialog.Trigger`;function wn(e){let t=O();return(0,d.jsx)(v.Dialog.Portal,{container:t,...e})}wn.displayName=`Dialog.Portal`;var Tn=(0,u.forwardRef)(({className:e,...t},n)=>(0,d.jsx)(v.Dialog.Backdrop,{ref:n,className:z(`fixed inset-0 z-50 bg-dialog-backdrop data-[open]:animate-ord-fade-in data-[closed]:animate-ord-fade-out`,e),...t}));Tn.displayName=`Dialog.Backdrop`;var En=(0,u.forwardRef)(({className:e,...t},n)=>(0,d.jsx)(v.Dialog.Popup,{ref:n,className:z(`fixed left-1/2 top-1/2 z-50 -translate-x-1/2 -translate-y-1/2 w-full max-w-lg rounded-[var(--ord-radius)] border border-dialog-border bg-dialog-bg text-dialog-fg p-6 shadow-lg outline-none data-[open]:animate-ord-dialog-in data-[closed]:animate-ord-dialog-out`,e),...t}));En.displayName=`Dialog.Popup`;var Dn=(0,u.forwardRef)(({className:e,...t},n)=>(0,d.jsx)(v.Dialog.Title,{ref:n,className:z(`text-lg font-semibold leading-none tracking-tight`,e),...t}));Dn.displayName=`Dialog.Title`;var On=(0,u.forwardRef)(({className:e,...t},n)=>(0,d.jsx)(v.Dialog.Description,{ref:n,className:z(`mt-1.5 text-sm text-dialog-description-fg`,e),...t}));On.displayName=`Dialog.Description`;var kn=(0,u.forwardRef)(({className:e,...t},n)=>(0,d.jsx)(v.Dialog.Close,{ref:n,className:z(``,e),...t}));kn.displayName=`Dialog.Close`;var An=Object.assign({},{Root:Sn,Trigger:Cn,Portal:wn,Backdrop:Tn,Popup:En,Title:Dn,Description:On,Close:kn}),jn=(0,u.forwardRef)(({trigger:e,title:t,description:n,children:r,footer:i,open:a,defaultOpen:o,onOpenChange:s,showClose:c=!0,...l},u)=>(0,d.jsxs)(An.Root,{open:a,defaultOpen:o,onOpenChange:s,children:[e!==null&&(0,d.jsx)(An.Trigger,{render:e}),(0,d.jsxs)(An.Portal,{children:[(0,d.jsx)(An.Backdrop,{}),(0,d.jsxs)(An.Popup,{ref:u,...l,children:[(t!==null||n!==null)&&(0,d.jsxs)(`div`,{className:`mb-4`,children:[t!==null&&(0,d.jsx)(An.Title,{children:t}),n!==null&&(0,d.jsx)(An.Description,{children:n})]}),r,i!==null&&(0,d.jsx)(`div`,{className:`mt-6 flex justify-end gap-2`,children:i}),c&&(0,d.jsx)(An.Close,{"aria-label":`Close`,className:`absolute right-4 top-4 inline-flex h-6 w-6 items-center justify-center rounded-sm text-muted-foreground opacity-70 transition-opacity hover:opacity-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring`,children:(0,d.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`14`,height:`14`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,children:[(0,d.jsx)(`path`,{d:`M18 6 6 18`}),(0,d.jsx)(`path`,{d:`m6 6 12 12`})]})})]})]})]}));jn.displayName=`SimpleDialog`;function Mn(e){return(0,d.jsx)(v.Dialog.Root,{...e})}Mn.displayName=`Sheet.Root`;var Nn=(0,u.forwardRef)(({className:e,...t},n)=>(0,d.jsx)(v.Dialog.Trigger,{ref:n,className:z(``,e),...t}));Nn.displayName=`Sheet.Trigger`;function Pn(e){let t=O();return(0,d.jsx)(v.Dialog.Portal,{container:t,...e})}Pn.displayName=`Sheet.Portal`;var Fn=(0,u.forwardRef)(({className:e,...t},n)=>(0,d.jsx)(v.Dialog.Backdrop,{ref:n,className:z(`fixed inset-0 z-50 bg-sheet-backdrop data-[open]:animate-ord-fade-in data-[closed]:animate-ord-fade-out`,e),...t}));Fn.displayName=`Sheet.Backdrop`;var In=Et(`fixed z-50 bg-sheet-bg text-sheet-fg shadow-lg outline-none flex flex-col gap-4 p-6`,{variants:{side:{top:`inset-x-0 top-0 border-b border-sheet-border w-full data-[open]:animate-ord-slide-in-from-top data-[closed]:animate-ord-slide-out-to-top`,bottom:`inset-x-0 bottom-0 border-t border-sheet-border w-full data-[open]:animate-ord-slide-in-from-bottom data-[closed]:animate-ord-slide-out-to-bottom`,left:`inset-y-0 left-0 border-r border-sheet-border h-full w-3/4 sm:max-w-sm data-[open]:animate-ord-slide-in-from-left data-[closed]:animate-ord-slide-out-to-left`,right:`inset-y-0 right-0 border-l border-sheet-border h-full w-3/4 sm:max-w-sm data-[open]:animate-ord-slide-in-from-right data-[closed]:animate-ord-slide-out-to-right`}},defaultVariants:{side:`right`}}),Ln=(0,u.forwardRef)(({className:e,side:t,...n},r)=>(0,d.jsx)(v.Dialog.Popup,{ref:r,className:z(In({side:t,className:e})),...n}));Ln.displayName=`Sheet.Popup`;var Rn=(0,u.forwardRef)(({className:e,...t},n)=>(0,d.jsx)(v.Dialog.Title,{ref:n,className:z(`text-lg font-semibold leading-none tracking-tight`,e),...t}));Rn.displayName=`Sheet.Title`;var zn=(0,u.forwardRef)(({className:e,...t},n)=>(0,d.jsx)(v.Dialog.Description,{ref:n,className:z(`mt-1.5 text-sm text-sheet-description-fg`,e),...t}));zn.displayName=`Sheet.Description`;var Bn=(0,u.forwardRef)(({className:e,...t},n)=>(0,d.jsx)(v.Dialog.Close,{ref:n,className:z(``,e),...t}));Bn.displayName=`Sheet.Close`;var Vn=Object.assign({},{Root:Mn,Trigger:Nn,Portal:Pn,Backdrop:Fn,Popup:Ln,Title:Rn,Description:zn,Close:Bn}),Hn=(0,u.forwardRef)(({trigger:e,title:t,description:n,children:r,footer:i,side:a=`right`,open:o,defaultOpen:s,onOpenChange:c,showClose:l=!0,...u},f)=>(0,d.jsxs)(Vn.Root,{open:o,defaultOpen:s,onOpenChange:c,children:[e!==null&&(0,d.jsx)(Vn.Trigger,{render:e}),(0,d.jsxs)(Vn.Portal,{children:[(0,d.jsx)(Vn.Backdrop,{}),(0,d.jsxs)(Vn.Popup,{ref:f,side:a,...u,children:[(t!==null||n!==null)&&(0,d.jsxs)(`div`,{children:[t!==null&&(0,d.jsx)(Vn.Title,{children:t}),n!==null&&(0,d.jsx)(Vn.Description,{children:n})]}),(0,d.jsx)(`div`,{className:`flex-1 overflow-y-auto px-1 -mx-1`,children:r}),i!==null&&(0,d.jsx)(`div`,{className:`flex justify-end gap-2`,children:i}),l&&(0,d.jsx)(Vn.Close,{"aria-label":`Close`,className:`absolute right-4 top-4 inline-flex h-6 w-6 items-center justify-center rounded-sm text-muted-foreground opacity-70 transition-opacity hover:opacity-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring`,children:(0,d.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`14`,height:`14`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,children:[(0,d.jsx)(`path`,{d:`M18 6 6 18`}),(0,d.jsx)(`path`,{d:`m6 6 12 12`})]})})]})]})]}));Hn.displayName=`SimpleSheet`;var Un=(0,u.forwardRef)(({className:e,...t},n)=>(0,d.jsx)(`div`,{ref:n,className:z(`bg-card-bg text-card-fg border border-card-border rounded-[var(--ord-radius)] shadow-sm`,e),...t}));Un.displayName=`Card`;var Wn=(0,u.forwardRef)(({className:e,...t},n)=>(0,d.jsx)(`div`,{ref:n,className:z(`flex flex-col space-y-1.5 p-6`,e),...t}));Wn.displayName=`Card.Header`;var Gn=(0,u.forwardRef)(({className:e,...t},n)=>(0,d.jsx)(`h3`,{ref:n,className:z(`text-2xl font-semibold leading-none tracking-tight`,e),...t}));Gn.displayName=`Card.Title`;var Kn=(0,u.forwardRef)(({className:e,...t},n)=>(0,d.jsx)(`p`,{ref:n,className:z(`text-sm text-muted-foreground`,e),...t}));Kn.displayName=`Card.Description`;var qn=(0,u.forwardRef)(({className:e,...t},n)=>(0,d.jsx)(`div`,{ref:n,className:z(`p-6 pt-0`,e),...t}));qn.displayName=`Card.Content`;var Jn=(0,u.forwardRef)(({className:e,...t},n)=>(0,d.jsx)(`div`,{ref:n,className:z(`flex items-center p-6 pt-0`,e),...t}));Jn.displayName=`Card.Footer`;var Yn=Object.assign(Un,{Header:Wn,Title:Gn,Description:Kn,Content:qn,Footer:Jn}),Xn=(0,u.forwardRef)(({title:e,description:t,content:n,buttons:r,className:i,...a},o)=>(0,d.jsxs)(Yn,{ref:o,className:z(i),...a,children:[(e||t)&&(0,d.jsxs)(Yn.Header,{children:[e&&(0,d.jsx)(Yn.Title,{children:e}),t&&(0,d.jsx)(Yn.Description,{children:t})]}),n&&(0,d.jsx)(Yn.Content,{children:n}),r&&(0,d.jsx)(Yn.Footer,{children:r})]}));Xn.displayName=`SimpleCard`;var Zn=(0,u.forwardRef)(({className:e,...t},n)=>(0,d.jsx)(y.Tabs.Root,{ref:n,className:z(`w-full`,e),...t}));Zn.displayName=`Tabs.Root`;var Qn=(0,u.forwardRef)(({className:e,...t},n)=>(0,d.jsx)(y.Tabs.List,{ref:n,className:z(`inline-flex h-9 w-full items-center justify-start rounded-lg p-[3px] text-tabs-fg gap-1 overflow-x-auto [&::-webkit-scrollbar]:hidden [-ms-overflow-style:none] [scrollbar-width:none]`,e),...t}));Qn.displayName=`Tabs.List`;var $n=(0,u.forwardRef)(({className:e,...t},n)=>(0,d.jsx)(y.Tabs.Tab,{ref:n,className:z(`inline-flex items-center justify-center gap-1.5 whitespace-nowrap rounded-md px-2.5 py-1.5 text-sm font-medium cursor-pointer transition-[color,box-shadow] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 text-tabs-fg hover:text-tabs-active-fg data-[active]:bg-tabs-active-bg data-[active]:text-tabs-active-fg data-[active]:shadow-sm`,e),...t}));$n.displayName=`Tabs.Tab`;var er=(0,u.forwardRef)(({className:e,...t},n)=>(0,d.jsx)(y.Tabs.Panel,{ref:n,className:z(`mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2`,e),...t}));er.displayName=`Tabs.Panel`;var tr=(0,u.forwardRef)(({className:e,...t},n)=>(0,d.jsx)(y.Tabs.Indicator,{ref:n,className:z(`absolute bottom-0 h-0.5 bg-tabs-indicator transition-all duration-200`,e),...t}));tr.displayName=`Tabs.Indicator`;var nr=Object.assign({},{Root:Zn,List:Qn,Tab:$n,Panel:er,Indicator:tr}),rr=(0,u.forwardRef)(({className:e,orientation:t=`horizontal`,...n},r)=>(0,d.jsx)(b.Separator,{ref:r,orientation:t,className:z(`shrink-0 bg-border`,t===`horizontal`?`h-px w-full`:`h-full w-px`,e),...n}));rr.displayName=`Separator`;var ir=Et(`inline-flex items-center rounded-full font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2`,{variants:{variant:{default:`bg-badge-default-bg text-badge-default-fg`,secondary:`bg-badge-secondary-bg text-badge-secondary-fg`,destructive:`bg-badge-destructive-bg text-badge-destructive-fg`,outline:`border border-badge-outline-border text-badge-outline-fg`,success:`bg-badge-success-bg text-badge-success-fg`,warning:`bg-badge-warning-bg text-badge-warning-fg`,highlight:`bg-badge-highlight-bg text-badge-highlight-fg border border-badge-highlight-border`},size:{sm:`px-2 py-0.5 text-[10px]`,default:`px-2.5 py-0.5 text-xs`}},defaultVariants:{variant:`default`,size:`default`}}),ar=(0,u.forwardRef)(({className:e,variant:t,size:n,...r},i)=>(0,d.jsx)(`span`,{ref:i,className:z(ir({variant:t,size:n,className:e})),...r}));ar.displayName=`Badge`;function or(e){return(0,d.jsx)(x.Tooltip.Provider,{...e})}or.displayName=`Tooltip.Provider`;function sr(e){return(0,d.jsx)(x.Tooltip.Root,{...e})}sr.displayName=`Tooltip.Root`;var cr=(0,u.forwardRef)(({className:e,...t},n)=>(0,d.jsx)(x.Tooltip.Trigger,{ref:n,className:z(``,e),...t}));cr.displayName=`Tooltip.Trigger`;function lr(e){let t=O();return(0,d.jsx)(x.Tooltip.Portal,{container:t,...e})}lr.displayName=`Tooltip.Portal`;var ur=(0,u.forwardRef)(({className:e,...t},n)=>(0,d.jsx)(x.Tooltip.Positioner,{ref:n,className:z(`outline-none`,e),...t}));ur.displayName=`Tooltip.Positioner`;var dr=(0,u.forwardRef)(({className:e,...t},n)=>(0,d.jsx)(x.Tooltip.Popup,{ref:n,className:z(`z-50 bg-tooltip-bg text-tooltip-fg px-2 py-1 text-xs rounded-[var(--ord-radius)] shadow-md data-[open]:animate-in data-[open]:fade-in-0 data-[closed]:animate-out data-[closed]:fade-out-0`,e),...t}));dr.displayName=`Tooltip.Popup`;var fr=(0,u.forwardRef)(({className:e,...t},n)=>(0,d.jsx)(x.Tooltip.Arrow,{ref:n,className:z(`fill-tooltip-bg`,e),...t}));fr.displayName=`Tooltip.Arrow`;var pr=Object.assign({},{Provider:or,Root:sr,Trigger:cr,Portal:lr,Positioner:ur,Popup:dr,Arrow:fr}),mr=Et(`relative inline-flex shrink-0 overflow-hidden rounded-full`,{variants:{size:{sm:`h-8 w-8`,default:`h-10 w-10`,lg:`h-12 w-12`}},defaultVariants:{size:`default`}}),hr=(0,u.forwardRef)(({className:e,size:t,...n},r)=>(0,d.jsx)(S.Avatar.Root,{ref:r,className:z(mr({size:t,className:e})),...n}));hr.displayName=`Avatar.Root`;var gr=(0,u.forwardRef)(({className:e,...t},n)=>(0,d.jsx)(S.Avatar.Image,{ref:n,className:z(`aspect-square h-full w-full object-cover`,e),...t}));gr.displayName=`Avatar.Image`;var _r=(0,u.forwardRef)(({className:e,...t},n)=>(0,d.jsx)(S.Avatar.Fallback,{ref:n,className:z(`flex h-full w-full items-center justify-center rounded-full bg-avatar-fallback-bg text-avatar-fallback-fg text-sm font-medium`,e),...t}));_r.displayName=`Avatar.Fallback`;var vr=Object.assign({},{Root:hr,Image:gr,Fallback:_r}),yr=(0,u.forwardRef)(({className:e,...t},n)=>(0,d.jsx)(C.Progress.Root,{ref:n,className:z(`flex w-full flex-col gap-1`,e),...t}));yr.displayName=`Progress.Root`;var br=(0,u.forwardRef)(({className:e,...t},n)=>(0,d.jsx)(C.Progress.Track,{ref:n,className:z(`relative h-2 w-full overflow-hidden rounded-full bg-progress-track`,e),...t}));br.displayName=`Progress.Track`;var xr=(0,u.forwardRef)(({className:e,...t},n)=>(0,d.jsx)(C.Progress.Indicator,{ref:n,className:z(`h-full rounded-full bg-progress-indicator transition-[width] data-[state=indeterminate]:animate-progress-indeterminate`,e),...t}));xr.displayName=`Progress.Indicator`;var Sr=Object.assign({},{Root:yr,Track:br,Indicator:xr}),Cr=Et(`animate-spin text-spinner-fg`,{variants:{size:{sm:`h-4 w-4`,default:`h-6 w-6`,lg:`h-8 w-8`}},defaultVariants:{size:`default`}}),wr=(0,u.forwardRef)(({className:e,size:t,...n},r)=>(0,d.jsxs)(`svg`,{ref:r,role:`status`,"aria-label":`Loading`,xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,className:z(Cr({size:t,className:e})),...n,children:[(0,d.jsx)(`circle`,{className:`opacity-25`,cx:`12`,cy:`12`,r:`10`,stroke:`currentColor`,strokeWidth:`4`}),(0,d.jsx)(`path`,{className:`opacity-75`,fill:`currentColor`,d:`M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z`})]}));wr.displayName=`Spinner`;var Tr=(0,u.forwardRef)(({className:e,selected:t,...n},r)=>(0,d.jsx)(`div`,{ref:r,className:z(`bg-card-bg text-card-foreground border border-border rounded-[var(--ord-radius)] shadow-sm p-4 cursor-pointer transition-colors hover:border-primary/50 hover:bg-accent/30`,t&&`border-primary bg-accent/20`,e),...n}));Tr.displayName=`ConnectionCard`;var Er=(0,u.forwardRef)(({className:e,...t},n)=>(0,d.jsx)(`div`,{ref:n,className:z(`flex items-center justify-between gap-2`,e),...t}));Er.displayName=`ConnectionCard.Header`;var Dr=(0,u.forwardRef)(({className:e,...t},n)=>(0,d.jsx)(`h3`,{ref:n,className:z(`text-sm font-semibold leading-tight`,e),...t}));Dr.displayName=`ConnectionCard.Title`;var Or=(0,u.forwardRef)(({className:e,...t},n)=>(0,d.jsx)(`p`,{ref:n,className:z(`text-xs text-muted-foreground mt-1`,e),...t}));Or.displayName=`ConnectionCard.Description`;var kr=(0,u.forwardRef)(({className:e,...t},n)=>(0,d.jsx)(`div`,{ref:n,className:z(`flex flex-wrap gap-1.5 mt-2`,e),...t}));kr.displayName=`ConnectionCard.Tags`;var Ar=Object.assign(Tr,{Header:Er,Title:Dr,Description:Or,Tags:kr}),jr=(0,u.forwardRef)(({className:e,...t},n)=>(0,d.jsx)(`div`,{ref:n,className:z(`bg-card-bg text-card-fg border border-card-border rounded-[var(--ord-radius)] shadow-sm`,e),...t}));jr.displayName=`InfoCard`;var Mr=(0,u.forwardRef)(({className:e,...t},n)=>(0,d.jsx)(`div`,{ref:n,className:z(`flex items-center gap-3 p-4`,e),...t}));Mr.displayName=`InfoCard.Header`;function Nr({children:e,className:t}){return(0,d.jsx)(`div`,{className:z(`flex h-10 w-10 shrink-0 items-center justify-center rounded-lg border bg-muted`,t),children:e??(0,d.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`20`,height:`20`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`text-muted-foreground`,children:[(0,d.jsx)(`circle`,{cx:`12`,cy:`12`,r:`10`}),(0,d.jsx)(`path`,{d:`M12 16v-4`}),(0,d.jsx)(`path`,{d:`M12 8h.01`})]})})}Nr.displayName=`InfoCard.Icon`;var Pr=(0,u.forwardRef)(({className:e,...t},n)=>(0,d.jsx)(`h2`,{ref:n,className:z(`text-base font-semibold leading-tight m-0`,e),...t}));Pr.displayName=`InfoCard.Title`;var Fr=(0,u.forwardRef)(({className:e,...t},n)=>(0,d.jsx)(`p`,{ref:n,className:z(`text-xs text-muted-foreground m-0`,e),...t}));Fr.displayName=`InfoCard.Subtitle`;var Ir=(0,u.forwardRef)(({className:e,...t},n)=>(0,d.jsx)(`div`,{ref:n,className:z(`flex flex-col gap-3 px-4 pb-4 pt-0`,e),...t}));Ir.displayName=`InfoCard.Content`;var Lr=(0,u.forwardRef)(({className:e,...t},n)=>(0,d.jsx)(`div`,{ref:n,className:z(`flex flex-col gap-1`,e),...t}));Lr.displayName=`InfoCard.Section`;var Rr=Object.assign(jr,{Header:Mr,Icon:Nr,Title:Pr,Subtitle:Fr,Content:Ir,Section:Lr});function zr({className:e,bordered:t,...n}){return(0,d.jsx)(w.Collapsible.Root,{className:z(`flex flex-col py-1`,t&&`rounded-lg border bg-card-bg p-2`,!t&&`border-b last:border-b-0`,e),...n})}zr.displayName=`CollapsibleSection.Root`;var Br=(0,u.forwardRef)(({className:e,children:t,icon:n,badges:r,description:i,...a},o)=>(0,d.jsxs)(w.Collapsible.Trigger,{ref:o,className:z(`group flex flex-wrap items-center gap-1.5 text-sm font-medium text-muted-foreground hover:text-foreground transition-colors cursor-pointer w-full`,e),...a,children:[(0,d.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`12`,height:`12`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`h-3 w-3 shrink-0 transition-transform data-[panel-open]:rotate-90`,children:(0,d.jsx)(`polyline`,{points:`9 18 15 12 9 6`})}),n&&(0,d.jsx)(`span`,{className:`shrink-0 h-4 w-4 [&>svg]:h-full [&>svg]:w-full`,children:n}),(0,d.jsx)(`span`,{className:`flex-1 truncate text-left`,children:t}),r&&(0,d.jsx)(`div`,{className:`flex items-center gap-1.5`,children:r}),i&&(0,d.jsx)(`span`,{className:`basis-full pl-[18px] text-xs font-normal text-muted-foreground truncate text-left group-data-[panel-open]:hidden`,children:i})]}));Br.displayName=`CollapsibleSection.Trigger`;var Vr=(0,u.forwardRef)(({className:e,...t},n)=>(0,d.jsx)(w.Collapsible.Panel,{ref:n,className:z(`mt-1.5`,e),...t}));Vr.displayName=`CollapsibleSection.Content`;var Hr=Object.assign({},{Root:zr,Trigger:Br,Content:Vr}),Ur=(0,u.forwardRef)(({className:e,children:t,...n},r)=>(0,d.jsx)(`div`,{ref:r,className:z(`rounded-lg border border-card-border bg-card-bg overflow-hidden`,e),...n,children:t}));Ur.displayName=`SectionCard.Root`;var Wr=(0,u.forwardRef)(({icon:e,title:t,badges:n,className:r,...i},a)=>(0,d.jsxs)(`div`,{ref:a,className:z(`flex flex-wrap items-center gap-2 px-4 py-3`,r),...i,children:[e&&(0,d.jsx)(`span`,{className:`shrink-0 h-4 w-4 [&>svg]:h-full [&>svg]:w-full`,children:e}),(0,d.jsx)(`span`,{className:`text-sm font-medium flex-1 truncate`,children:t}),n&&(0,d.jsx)(`div`,{className:`flex items-center gap-1.5`,children:n})]}));Wr.displayName=`SectionCard.Header`;var Gr=(0,u.forwardRef)(({className:e,children:t,...n},r)=>(0,d.jsx)(`div`,{ref:r,className:z(`px-4 pb-4 pt-0`,e),...n,children:t}));Gr.displayName=`SectionCard.Content`;var Kr=Object.assign(Ur,{Root:Ur,Header:Wr,Content:Gr});function qr(e,t){let n=t||{};return(e[e.length-1]===``?[...e,``]:e).join((n.padRight?` `:``)+`,`+(n.padLeft===!1?``:` `)).trim()}var Jr=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Yr=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Xr={};function Zr(e,t){return((t||Xr).jsx?Yr:Jr).test(e)}var Qr=/[ \t\n\f\r]/g;function $r(e){return typeof e==`object`?e.type===`text`?ei(e.value):!1:ei(e)}function ei(e){return e.replace(Qr,``)===``}var ti=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};ti.prototype.normal={},ti.prototype.property={},ti.prototype.space=void 0;function ni(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new ti(n,r,t)}function ri(e){return e.toLowerCase()}var V=class{constructor(e,t){this.attribute=t,this.property=e}};V.prototype.attribute=``,V.prototype.booleanish=!1,V.prototype.boolean=!1,V.prototype.commaOrSpaceSeparated=!1,V.prototype.commaSeparated=!1,V.prototype.defined=!1,V.prototype.mustUseProperty=!1,V.prototype.number=!1,V.prototype.overloadedBoolean=!1,V.prototype.property=``,V.prototype.spaceSeparated=!1,V.prototype.space=void 0;var ii=s({boolean:()=>H,booleanish:()=>U,commaOrSpaceSeparated:()=>K,commaSeparated:()=>si,number:()=>W,overloadedBoolean:()=>oi,spaceSeparated:()=>G}),ai=0,H=ci(),U=ci(),oi=ci(),W=ci(),G=ci(),si=ci(),K=ci();function ci(){return 2**++ai}var li=Object.keys(ii),ui=class extends V{constructor(e,t,n,r){let i=-1;if(super(e,t),di(this,`space`,r),typeof n==`number`)for(;++i<li.length;){let e=li[i];di(this,li[i],(n&ii[e])===ii[e])}}};ui.prototype.defined=!0;function di(e,t,n){n&&(e[t]=n)}function fi(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let a=new ui(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[ri(r)]=r,n[ri(a.attribute)]=r}return new ti(t,n,e.space)}var pi=fi({properties:{ariaActiveDescendant:null,ariaAtomic:U,ariaAutoComplete:null,ariaBusy:U,ariaChecked:U,ariaColCount:W,ariaColIndex:W,ariaColSpan:W,ariaControls:G,ariaCurrent:null,ariaDescribedBy:G,ariaDetails:null,ariaDisabled:U,ariaDropEffect:G,ariaErrorMessage:null,ariaExpanded:U,ariaFlowTo:G,ariaGrabbed:U,ariaHasPopup:null,ariaHidden:U,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:G,ariaLevel:W,ariaLive:null,ariaModal:U,ariaMultiLine:U,ariaMultiSelectable:U,ariaOrientation:null,ariaOwns:G,ariaPlaceholder:null,ariaPosInSet:W,ariaPressed:U,ariaReadOnly:U,ariaRelevant:null,ariaRequired:U,ariaRoleDescription:G,ariaRowCount:W,ariaRowIndex:W,ariaRowSpan:W,ariaSelected:U,ariaSetSize:W,ariaSort:null,ariaValueMax:W,ariaValueMin:W,ariaValueNow:W,ariaValueText:null,role:null},transform(e,t){return t===`role`?t:`aria-`+t.slice(4).toLowerCase()}});function mi(e,t){return t in e?e[t]:t}function hi(e,t){return mi(e,t.toLowerCase())}var gi=fi({attributes:{acceptcharset:`accept-charset`,classname:`class`,htmlfor:`for`,httpequiv:`http-equiv`},mustUseProperty:[`checked`,`multiple`,`muted`,`selected`],properties:{abbr:null,accept:si,acceptCharset:G,accessKey:G,action:null,allow:null,allowFullScreen:H,allowPaymentRequest:H,allowUserMedia:H,alt:null,as:null,async:H,autoCapitalize:null,autoComplete:G,autoFocus:H,autoPlay:H,blocking:G,capture:null,charSet:null,checked:H,cite:null,className:G,cols:W,colSpan:null,content:null,contentEditable:U,controls:H,controlsList:G,coords:W|si,crossOrigin:null,data:null,dateTime:null,decoding:null,default:H,defer:H,dir:null,dirName:null,disabled:H,download:oi,draggable:U,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:H,formTarget:null,headers:G,height:W,hidden:oi,high:W,href:null,hrefLang:null,htmlFor:G,httpEquiv:G,id:null,imageSizes:null,imageSrcSet:null,inert:H,inputMode:null,integrity:null,is:null,isMap:H,itemId:null,itemProp:G,itemRef:G,itemScope:H,itemType:G,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:H,low:W,manifest:null,max:null,maxLength:W,media:null,method:null,min:null,minLength:W,multiple:H,muted:H,name:null,nonce:null,noModule:H,noValidate:H,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:H,optimum:W,pattern:null,ping:G,placeholder:null,playsInline:H,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:H,referrerPolicy:null,rel:G,required:H,reversed:H,rows:W,rowSpan:W,sandbox:G,scope:null,scoped:H,seamless:H,selected:H,shadowRootClonable:H,shadowRootDelegatesFocus:H,shadowRootMode:null,shape:null,size:W,sizes:null,slot:null,span:W,spellCheck:U,src:null,srcDoc:null,srcLang:null,srcSet:null,start:W,step:null,style:null,tabIndex:W,target:null,title:null,translate:null,type:null,typeMustMatch:H,useMap:null,value:U,width:W,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:G,axis:null,background:null,bgColor:null,border:W,borderColor:null,bottomMargin:W,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:H,declare:H,event:null,face:null,frame:null,frameBorder:null,hSpace:W,leftMargin:W,link:null,longDesc:null,lowSrc:null,marginHeight:W,marginWidth:W,noResize:H,noHref:H,noShade:H,noWrap:H,object:null,profile:null,prompt:null,rev:null,rightMargin:W,rules:null,scheme:null,scrolling:U,standby:null,summary:null,text:null,topMargin:W,valueType:null,version:null,vAlign:null,vLink:null,vSpace:W,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:H,disableRemotePlayback:H,prefix:null,property:null,results:W,security:null,unselectable:null},space:`html`,transform:hi}),_i=fi({attributes:{accentHeight:`accent-height`,alignmentBaseline:`alignment-baseline`,arabicForm:`arabic-form`,baselineShift:`baseline-shift`,capHeight:`cap-height`,className:`class`,clipPath:`clip-path`,clipRule:`clip-rule`,colorInterpolation:`color-interpolation`,colorInterpolationFilters:`color-interpolation-filters`,colorProfile:`color-profile`,colorRendering:`color-rendering`,crossOrigin:`crossorigin`,dataType:`datatype`,dominantBaseline:`dominant-baseline`,enableBackground:`enable-background`,fillOpacity:`fill-opacity`,fillRule:`fill-rule`,floodColor:`flood-color`,floodOpacity:`flood-opacity`,fontFamily:`font-family`,fontSize:`font-size`,fontSizeAdjust:`font-size-adjust`,fontStretch:`font-stretch`,fontStyle:`font-style`,fontVariant:`font-variant`,fontWeight:`font-weight`,glyphName:`glyph-name`,glyphOrientationHorizontal:`glyph-orientation-horizontal`,glyphOrientationVertical:`glyph-orientation-vertical`,hrefLang:`hreflang`,horizAdvX:`horiz-adv-x`,horizOriginX:`horiz-origin-x`,horizOriginY:`horiz-origin-y`,imageRendering:`image-rendering`,letterSpacing:`letter-spacing`,lightingColor:`lighting-color`,markerEnd:`marker-end`,markerMid:`marker-mid`,markerStart:`marker-start`,navDown:`nav-down`,navDownLeft:`nav-down-left`,navDownRight:`nav-down-right`,navLeft:`nav-left`,navNext:`nav-next`,navPrev:`nav-prev`,navRight:`nav-right`,navUp:`nav-up`,navUpLeft:`nav-up-left`,navUpRight:`nav-up-right`,onAbort:`onabort`,onActivate:`onactivate`,onAfterPrint:`onafterprint`,onBeforePrint:`onbeforeprint`,onBegin:`onbegin`,onCancel:`oncancel`,onCanPlay:`oncanplay`,onCanPlayThrough:`oncanplaythrough`,onChange:`onchange`,onClick:`onclick`,onClose:`onclose`,onCopy:`oncopy`,onCueChange:`oncuechange`,onCut:`oncut`,onDblClick:`ondblclick`,onDrag:`ondrag`,onDragEnd:`ondragend`,onDragEnter:`ondragenter`,onDragExit:`ondragexit`,onDragLeave:`ondragleave`,onDragOver:`ondragover`,onDragStart:`ondragstart`,onDrop:`ondrop`,onDurationChange:`ondurationchange`,onEmptied:`onemptied`,onEnd:`onend`,onEnded:`onended`,onError:`onerror`,onFocus:`onfocus`,onFocusIn:`onfocusin`,onFocusOut:`onfocusout`,onHashChange:`onhashchange`,onInput:`oninput`,onInvalid:`oninvalid`,onKeyDown:`onkeydown`,onKeyPress:`onkeypress`,onKeyUp:`onkeyup`,onLoad:`onload`,onLoadedData:`onloadeddata`,onLoadedMetadata:`onloadedmetadata`,onLoadStart:`onloadstart`,onMessage:`onmessage`,onMouseDown:`onmousedown`,onMouseEnter:`onmouseenter`,onMouseLeave:`onmouseleave`,onMouseMove:`onmousemove`,onMouseOut:`onmouseout`,onMouseOver:`onmouseover`,onMouseUp:`onmouseup`,onMouseWheel:`onmousewheel`,onOffline:`onoffline`,onOnline:`ononline`,onPageHide:`onpagehide`,onPageShow:`onpageshow`,onPaste:`onpaste`,onPause:`onpause`,onPlay:`onplay`,onPlaying:`onplaying`,onPopState:`onpopstate`,onProgress:`onprogress`,onRateChange:`onratechange`,onRepeat:`onrepeat`,onReset:`onreset`,onResize:`onresize`,onScroll:`onscroll`,onSeeked:`onseeked`,onSeeking:`onseeking`,onSelect:`onselect`,onShow:`onshow`,onStalled:`onstalled`,onStorage:`onstorage`,onSubmit:`onsubmit`,onSuspend:`onsuspend`,onTimeUpdate:`ontimeupdate`,onToggle:`ontoggle`,onUnload:`onunload`,onVolumeChange:`onvolumechange`,onWaiting:`onwaiting`,onZoom:`onzoom`,overlinePosition:`overline-position`,overlineThickness:`overline-thickness`,paintOrder:`paint-order`,panose1:`panose-1`,pointerEvents:`pointer-events`,referrerPolicy:`referrerpolicy`,renderingIntent:`rendering-intent`,shapeRendering:`shape-rendering`,stopColor:`stop-color`,stopOpacity:`stop-opacity`,strikethroughPosition:`strikethrough-position`,strikethroughThickness:`strikethrough-thickness`,strokeDashArray:`stroke-dasharray`,strokeDashOffset:`stroke-dashoffset`,strokeLineCap:`stroke-linecap`,strokeLineJoin:`stroke-linejoin`,strokeMiterLimit:`stroke-miterlimit`,strokeOpacity:`stroke-opacity`,strokeWidth:`stroke-width`,tabIndex:`tabindex`,textAnchor:`text-anchor`,textDecoration:`text-decoration`,textRendering:`text-rendering`,transformOrigin:`transform-origin`,typeOf:`typeof`,underlinePosition:`underline-position`,underlineThickness:`underline-thickness`,unicodeBidi:`unicode-bidi`,unicodeRange:`unicode-range`,unitsPerEm:`units-per-em`,vAlphabetic:`v-alphabetic`,vHanging:`v-hanging`,vIdeographic:`v-ideographic`,vMathematical:`v-mathematical`,vectorEffect:`vector-effect`,vertAdvY:`vert-adv-y`,vertOriginX:`vert-origin-x`,vertOriginY:`vert-origin-y`,wordSpacing:`word-spacing`,writingMode:`writing-mode`,xHeight:`x-height`,playbackOrder:`playbackorder`,timelineBegin:`timelinebegin`},properties:{about:K,accentHeight:W,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:W,amplitude:W,arabicForm:null,ascent:W,attributeName:null,attributeType:null,azimuth:W,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:W,by:null,calcMode:null,capHeight:W,className:G,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:W,diffuseConstant:W,direction:null,display:null,dur:null,divisor:W,dominantBaseline:null,download:H,dx:null,dy:null,edgeMode:null,editable:null,elevation:W,enableBackground:null,end:null,event:null,exponent:W,externalResourcesRequired:null,fill:null,fillOpacity:W,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:si,g2:si,glyphName:si,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:W,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:W,horizOriginX:W,horizOriginY:W,id:null,ideographic:W,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:W,k:W,k1:W,k2:W,k3:W,k4:W,kernelMatrix:K,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:W,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:W,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:W,overlineThickness:W,paintOrder:null,panose1:null,path:null,pathLength:W,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:G,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:W,pointsAtY:W,pointsAtZ:W,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:K,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:K,rev:K,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:K,requiredFeatures:K,requiredFonts:K,requiredFormats:K,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:W,specularExponent:W,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:W,strikethroughThickness:W,string:null,stroke:null,strokeDashArray:K,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:W,strokeOpacity:W,strokeWidth:null,style:null,surfaceScale:W,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:K,tabIndex:W,tableValues:null,target:null,targetX:W,targetY:W,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:K,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:W,underlineThickness:W,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:W,values:null,vAlphabetic:W,vMathematical:W,vectorEffect:null,vHanging:W,vIdeographic:W,version:null,vertAdvY:W,vertOriginX:W,vertOriginY:W,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:W,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:`svg`,transform:mi}),vi=fi({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:`xlink`,transform(e,t){return`xlink:`+t.slice(5).toLowerCase()}}),yi=fi({attributes:{xmlnsxlink:`xmlns:xlink`},properties:{xmlnsXLink:null,xmlns:null},space:`xmlns`,transform:hi}),bi=fi({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:`xml`,transform(e,t){return`xml:`+t.slice(3).toLowerCase()}}),xi={classId:`classID`,dataType:`datatype`,itemId:`itemID`,strokeDashArray:`strokeDasharray`,strokeDashOffset:`strokeDashoffset`,strokeLineCap:`strokeLinecap`,strokeLineJoin:`strokeLinejoin`,strokeMiterLimit:`strokeMiterlimit`,typeOf:`typeof`,xLinkActuate:`xlinkActuate`,xLinkArcRole:`xlinkArcrole`,xLinkHref:`xlinkHref`,xLinkRole:`xlinkRole`,xLinkShow:`xlinkShow`,xLinkTitle:`xlinkTitle`,xLinkType:`xlinkType`,xmlnsXLink:`xmlnsXlink`},Si=/[A-Z]/g,Ci=/-[a-z]/g,wi=/^data[-\w.:]+$/i;function Ti(e,t){let n=ri(t),r=t,i=V;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)===`data`&&wi.test(t)){if(t.charAt(4)===`-`){let e=t.slice(5).replace(Ci,Di);r=`data`+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!Ci.test(e)){let n=e.replace(Si,Ei);n.charAt(0)!==`-`&&(n=`-`+n),t=`data`+n}}i=ui}return new i(r,t)}function Ei(e){return`-`+e.toLowerCase()}function Di(e){return e.charAt(1).toUpperCase()}var Oi=ni([pi,gi,vi,yi,bi],`html`),ki=ni([pi,_i,vi,yi,bi],`svg`);function Ai(e){return e.join(` `).trim()}var ji=o(((e,t)=>{var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,i=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,l=/^\s+|\s+$/g,u=`
|
|
2
|
-
`,d=`/`,f=`*`,p=``,m=`comment`,h=`declaration`;function g(e,t){if(typeof e!=`string`)throw TypeError(`First argument must be a string`);if(!e)return[];t||={};var l=1,g=1;function v(e){var t=e.match(r);t&&(l+=t.length);var n=e.lastIndexOf(u);g=~n?e.length-n:g+e.length}function y(){var e={line:l,column:g};return function(t){return t.position=new b(e),C(),t}}function b(e){this.start=e,this.end={line:l,column:g},this.source=t.source}b.prototype.content=e;function x(n){var r=Error(t.source+`:`+l+`:`+g+`: `+n);if(r.reason=n,r.filename=t.source,r.line=l,r.column=g,r.source=e,!t.silent)throw r}function S(t){var n=t.exec(e);if(n){var r=n[0];return v(r),e=e.slice(r.length),n}}function C(){S(i)}function w(e){var t;for(e||=[];t=T();)t!==!1&&e.push(t);return e}function T(){var t=y();if(!(d!=e.charAt(0)||f!=e.charAt(1))){for(var n=2;p!=e.charAt(n)&&(f!=e.charAt(n)||d!=e.charAt(n+1));)++n;if(n+=2,p===e.charAt(n-1))return x(`End of comment missing`);var r=e.slice(2,n-2);return g+=2,v(r),e=e.slice(n),g+=2,t({type:m,comment:r})}}function E(){var e=y(),t=S(a);if(t){if(T(),!S(o))return x(`property missing ':'`);var r=S(s),i=e({type:h,property:_(t[0].replace(n,p)),value:r?_(r[0].replace(n,p)):p});return S(c),i}}function ee(){var e=[];w(e);for(var t;t=E();)t!==!1&&(e.push(t),w(e));return e}return C(),ee()}function _(e){return e?e.replace(l,p):p}t.exports=g})),Mi=o((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.default=r;var n=t(ji());function r(e,t){let r=null;if(!e||typeof e!=`string`)return r;let i=(0,n.default)(e),a=typeof t==`function`;return i.forEach(e=>{if(e.type!==`declaration`)return;let{property:n,value:i}=e;a?t(n,i,e):i&&(r||={},r[n]=i)}),r}})),Ni=o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.camelCase=void 0;var t=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,r=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,o=function(e){return!e||r.test(e)||t.test(e)},s=function(e,t){return t.toUpperCase()},c=function(e,t){return`${t}-`};e.camelCase=function(e,t){return t===void 0&&(t={}),o(e)?e:(e=e.toLowerCase(),e=t.reactCompat?e.replace(a,c):e.replace(i,c),e.replace(n,s))}})),Pi=o(((e,t)=>{var n=(e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(Mi()),r=Ni();function i(e,t){var i={};return!e||typeof e!=`string`||(0,n.default)(e,function(e,n){e&&n&&(i[(0,r.camelCase)(e,t)]=n)}),i}i.default=i,t.exports=i})),Fi=Li(`end`),Ii=Li(`start`);function Li(e){return t;function t(t){let n=t&&t.position&&t.position[e]||{};if(typeof n.line==`number`&&n.line>0&&typeof n.column==`number`&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset==`number`&&n.offset>-1?n.offset:void 0}}}function Ri(e){let t=Ii(e),n=Fi(e);if(t&&n)return{start:t,end:n}}function zi(e){return!e||typeof e!=`object`?``:`position`in e||`type`in e?Vi(e.position):`start`in e||`end`in e?Vi(e):`line`in e||`column`in e?Bi(e):``}function Bi(e){return Hi(e&&e.line)+`:`+Hi(e&&e.column)}function Vi(e){return Bi(e&&e.start)+`-`+Bi(e&&e.end)}function Hi(e){return e&&typeof e==`number`?e:1}var q=class extends Error{constructor(e,t,n){super(),typeof t==`string`&&(n=t,t=void 0);let r=``,i={},a=!1;if(t&&(i=`line`in t&&`column`in t||`start`in t&&`end`in t?{place:t}:`type`in t?{ancestors:[t],place:t.position}:{...t}),typeof e==`string`?r=e:!i.cause&&e&&(a=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&typeof n==`string`){let e=n.indexOf(`:`);e===-1?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){let e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}let o=i.place&&`start`in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file=``,this.message=r,this.line=o?o.line:void 0,this.name=zi(i.place)||`1:1`,this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=a&&i.cause&&typeof i.cause.stack==`string`?i.cause.stack:``,this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}};q.prototype.file=``,q.prototype.name=``,q.prototype.reason=``,q.prototype.message=``,q.prototype.stack=``,q.prototype.column=void 0,q.prototype.line=void 0,q.prototype.ancestors=void 0,q.prototype.cause=void 0,q.prototype.fatal=void 0,q.prototype.place=void 0,q.prototype.ruleId=void 0,q.prototype.source=void 0;var Ui=l(Pi(),1),Wi={}.hasOwnProperty,Gi=new Map,Ki=/[A-Z]/g,qi=new Set([`table`,`tbody`,`thead`,`tfoot`,`tr`]),Ji=new Set([`td`,`th`]);function Yi(e,t){if(!t||t.Fragment===void 0)throw TypeError("Expected `Fragment` in options");let n=t.filePath||void 0,r;if(t.development){if(typeof t.jsxDEV!=`function`)throw TypeError("Expected `jsxDEV` in options when `development: true`");r=oa(n,t.jsxDEV)}else{if(typeof t.jsx!=`function`)throw TypeError("Expected `jsx` in production options");if(typeof t.jsxs!=`function`)throw TypeError("Expected `jsxs` in production options");r=aa(n,t.jsx,t.jsxs)}let i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||`react`,evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space===`svg`?ki:Oi,stylePropertyNameCase:t.stylePropertyNameCase||`dom`,tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=Xi(i,e,void 0);return a&&typeof a!=`string`?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function Xi(e,t,n){if(t.type===`element`)return Zi(e,t,n);if(t.type===`mdxFlowExpression`||t.type===`mdxTextExpression`)return Qi(e,t);if(t.type===`mdxJsxFlowElement`||t.type===`mdxJsxTextElement`)return ea(e,t,n);if(t.type===`mdxjsEsm`)return $i(e,t);if(t.type===`root`)return ta(e,t,n);if(t.type===`text`)return na(e,t)}function Zi(e,t,n){let r=e.schema,i=r;t.tagName.toLowerCase()===`svg`&&r.space===`html`&&(i=ki,e.schema=i),e.ancestors.push(t);let a=fa(e,t.tagName,!1),o=sa(e,t),s=la(e,t);return qi.has(t.tagName)&&(s=s.filter(function(e){return typeof e==`string`?!$r(e):!0})),ra(e,o,a,t),ia(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function Qi(e,t){if(t.data&&t.data.estree&&e.evaluater){let n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}pa(e,t.position)}function $i(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);pa(e,t.position)}function ea(e,t,n){let r=e.schema,i=r;t.name===`svg`&&r.space===`html`&&(i=ki,e.schema=i),e.ancestors.push(t);let a=t.name===null?e.Fragment:fa(e,t.name,!0),o=ca(e,t),s=la(e,t);return ra(e,o,a,t),ia(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function ta(e,t,n){let r={};return ia(r,la(e,t)),e.create(t,e.Fragment,r,n)}function na(e,t){return t.value}function ra(e,t,n,r){typeof n!=`string`&&n!==e.Fragment&&e.passNode&&(t.node=r)}function ia(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function aa(e,t,n){return r;function r(e,r,i,a){let o=Array.isArray(i.children)?n:t;return a?o(r,i,a):o(r,i)}}function oa(e,t){return n;function n(n,r,i,a){let o=Array.isArray(i.children),s=Ii(n);return t(r,i,a,o,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}function sa(e,t){let n={},r,i;for(i in t.properties)if(i!==`children`&&Wi.call(t.properties,i)){let a=ua(e,i,t.properties[i]);if(a){let[i,o]=a;e.tableCellAlignToStyle&&i===`align`&&typeof o==`string`&&Ji.has(t.tagName)?r=o:n[i]=o}}if(r){let t=n.style||={};t[e.stylePropertyNameCase===`css`?`text-align`:`textAlign`]=r}return n}function ca(e,t){let n={};for(let r of t.attributes)if(r.type===`mdxJsxExpressionAttribute`)if(r.data&&r.data.estree&&e.evaluater){let t=r.data.estree.body[0];t.type;let i=t.expression;i.type;let a=i.properties[0];a.type,Object.assign(n,e.evaluater.evaluateExpression(a.argument))}else pa(e,t.position);else{let i=r.name,a;if(r.value&&typeof r.value==`object`)if(r.value.data&&r.value.data.estree&&e.evaluater){let t=r.value.data.estree.body[0];t.type,a=e.evaluater.evaluateExpression(t.expression)}else pa(e,t.position);else a=r.value===null?!0:r.value;n[i]=a}return n}function la(e,t){let n=[],r=-1,i=e.passKeys?new Map:Gi;for(;++r<t.children.length;){let a=t.children[r],o;if(e.passKeys){let e=a.type===`element`?a.tagName:a.type===`mdxJsxFlowElement`||a.type===`mdxJsxTextElement`?a.name:void 0;if(e){let t=i.get(e)||0;o=e+`-`+t,i.set(e,t+1)}}let s=Xi(e,a,o);s!==void 0&&n.push(s)}return n}function ua(e,t,n){let r=Ti(e.schema,t);if(!(n==null||typeof n==`number`&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?qr(n):Ai(n)),r.property===`style`){let t=typeof n==`object`?n:da(e,String(n));return e.stylePropertyNameCase===`css`&&(t=ma(t)),[`style`,t]}return[e.elementAttributeNameCase===`react`&&r.space?xi[r.property]||r.property:r.attribute,n]}}function da(e,t){try{return(0,Ui.default)(t,{reactCompat:!0})}catch(t){if(e.ignoreInvalidStyle)return{};let n=t,r=new q("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:`style`,source:`hast-util-to-jsx-runtime`});throw r.file=e.filePath||void 0,r.url=`https://github.com/syntax-tree/hast-util-to-jsx-runtime#cannot-parse-style-attribute`,r}}function fa(e,t,n){let r;if(!n)r={type:`Literal`,value:t};else if(t.includes(`.`)){let e=t.split(`.`),n=-1,i;for(;++n<e.length;){let t=Zr(e[n])?{type:`Identifier`,name:e[n]}:{type:`Literal`,value:e[n]};i=i?{type:`MemberExpression`,object:i,property:t,computed:!!(n&&t.type===`Literal`),optional:!1}:t}r=i}else r=Zr(t)&&!/^[a-z]/.test(t)?{type:`Identifier`,name:t}:{type:`Literal`,value:t};if(r.type===`Literal`){let t=r.value;return Wi.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);pa(e)}function pa(e,t){let n=new q("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:`mdx-estree`,source:`hast-util-to-jsx-runtime`});throw n.file=e.filePath||void 0,n.url=`https://github.com/syntax-tree/hast-util-to-jsx-runtime#cannot-handle-mdx-estrees-without-createevaluater`,n}function ma(e){let t={},n;for(n in e)Wi.call(e,n)&&(t[ha(n)]=e[n]);return t}function ha(e){let t=e.replace(Ki,ga);return t.slice(0,3)===`ms-`&&(t=`-`+t),t}function ga(e){return`-`+e.toLowerCase()}var _a={action:[`form`],cite:[`blockquote`,`del`,`ins`,`q`],data:[`object`],formAction:[`button`,`input`],href:[`a`,`area`,`base`,`link`],icon:[`menuitem`],itemId:null,manifest:[`html`],ping:[`a`,`area`],poster:[`video`],src:[`audio`,`embed`,`iframe`,`img`,`input`,`script`,`source`,`track`,`video`]},va={};function ya(e,t){let n=t||va;return ba(e,typeof n.includeImageAlt==`boolean`?n.includeImageAlt:!0,typeof n.includeHtml==`boolean`?n.includeHtml:!0)}function ba(e,t,n){if(Sa(e)){if(`value`in e)return e.type===`html`&&!n?``:e.value;if(t&&`alt`in e&&e.alt)return e.alt;if(`children`in e)return xa(e.children,t,n)}return Array.isArray(e)?xa(e,t,n):``}function xa(e,t,n){let r=[],i=-1;for(;++i<e.length;)r[i]=ba(e[i],t,n);return r.join(``)}function Sa(e){return!!(e&&typeof e==`object`)}var Ca=document.createElement(`i`);function wa(e){let t=`&`+e+`;`;Ca.innerHTML=t;let n=Ca.textContent;return n.charCodeAt(n.length-1)===59&&e!==`semi`||n===t?!1:n}function Ta(e,t,n,r){let i=e.length,a=0,o;if(t=t<0?-t>i?0:i+t:t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);a<r.length;)o=r.slice(a,a+1e4),o.unshift(t,0),e.splice(...o),a+=1e4,t+=1e4}function Ea(e,t){return e.length>0?(Ta(e,e.length,0,t),e):t}var Da={}.hasOwnProperty;function Oa(e){let t={},n=-1;for(;++n<e.length;)ka(t,e[n]);return t}function ka(e,t){let n;for(n in t){let r=(Da.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n],a;if(i)for(a in i){Da.call(r,a)||(r[a]=[]);let e=i[a];Aa(r[a],Array.isArray(e)?e:e?[e]:[])}}}function Aa(e,t){let n=-1,r=[];for(;++n<t.length;)(t[n].add===`after`?e:r).push(t[n]);Ta(e,0,0,r)}function ja(e,t){let n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)==65535||(n&65535)==65534||n>1114111?`�`:String.fromCodePoint(n)}function Ma(e){return e.replace(/[\t\n\r ]+/g,` `).replace(/^ | $/g,``).toLowerCase().toUpperCase()}var Na=Va(/[A-Za-z]/),J=Va(/[\dA-Za-z]/),Pa=Va(/[#-'*+\--9=?A-Z^-~]/);function Fa(e){return e!==null&&(e<32||e===127)}var Ia=Va(/\d/),La=Va(/[\dA-Fa-f]/),Ra=Va(/[!-/:-@[-`{-~]/);function Y(e){return e!==null&&e<-2}function X(e){return e!==null&&(e<0||e===32)}function Z(e){return e===-2||e===-1||e===32}var za=Va(/\p{P}|\p{S}/u),Ba=Va(/\s/);function Va(e){return t;function t(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function Ha(e){let t=[],n=-1,r=0,i=0;for(;++n<e.length;){let a=e.charCodeAt(n),o=``;if(a===37&&J(e.charCodeAt(n+1))&&J(e.charCodeAt(n+2)))i=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(o=String.fromCharCode(a));else if(a>55295&&a<57344){let t=e.charCodeAt(n+1);a<56320&&t>56319&&t<57344?(o=String.fromCharCode(a,t),i=1):o=`�`}else o=String.fromCharCode(a);o&&=(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,``),i&&=(n+=i,0)}return t.join(``)+e.slice(r)}function Q(e,t,n,r){let i=r?r-1:1/0,a=0;return o;function o(r){return Z(r)?(e.enter(n),s(r)):t(r)}function s(r){return Z(r)&&a++<i?(e.consume(r),s):(e.exit(n),t(r))}}var Ua={tokenize:Wa};function Wa(e){let t=e.attempt(this.parser.constructs.contentInitial,r,i),n;return t;function r(n){if(n===null){e.consume(n);return}return e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),Q(e,t,`linePrefix`)}function i(t){return e.enter(`paragraph`),a(t)}function a(t){let r=e.enter(`chunkText`,{contentType:`text`,previous:n});return n&&(n.next=r),n=r,o(t)}function o(t){if(t===null){e.exit(`chunkText`),e.exit(`paragraph`),e.consume(t);return}return Y(t)?(e.consume(t),e.exit(`chunkText`),a):(e.consume(t),o)}}var Ga={tokenize:qa},Ka={tokenize:Ja};function qa(e){let t=this,n=[],r=0,i,a,o;return s;function s(i){if(r<n.length){let a=n[r];return t.containerState=a[1],e.attempt(a[0].continuation,c,l)(i)}return l(i)}function c(e){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&v();let n=t.events.length,a=n,o;for(;a--;)if(t.events[a][0]===`exit`&&t.events[a][1].type===`chunkFlow`){o=t.events[a][1].end;break}_(r);let s=n;for(;s<t.events.length;)t.events[s][1].end={...o},s++;return Ta(t.events,a+1,0,t.events.slice(n)),t.events.length=s,l(e)}return s(e)}function l(a){if(r===n.length){if(!i)return f(a);if(i.currentConstruct&&i.currentConstruct.concrete)return m(a);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Ka,u,d)(a)}function u(e){return i&&v(),_(r),f(e)}function d(e){return t.parser.lazy[t.now().line]=r!==n.length,o=t.now().offset,m(e)}function f(n){return t.containerState={},e.attempt(Ka,p,m)(n)}function p(e){return r++,n.push([t.currentConstruct,t.containerState]),f(e)}function m(n){if(n===null){i&&v(),_(0),e.consume(n);return}return i||=t.parser.flow(t.now()),e.enter(`chunkFlow`,{_tokenizer:i,contentType:`flow`,previous:a}),h(n)}function h(n){if(n===null){g(e.exit(`chunkFlow`),!0),_(0),e.consume(n);return}return Y(n)?(e.consume(n),g(e.exit(`chunkFlow`)),r=0,t.interrupt=void 0,s):(e.consume(n),h)}function g(e,n){let s=t.sliceStream(e);if(n&&s.push(null),e.previous=a,a&&(a.next=e),a=e,i.defineSkip(e.start),i.write(s),t.parser.lazy[e.start.line]){let e=i.events.length;for(;e--;)if(i.events[e][1].start.offset<o&&(!i.events[e][1].end||i.events[e][1].end.offset>o))return;let n=t.events.length,a=n,s,c;for(;a--;)if(t.events[a][0]===`exit`&&t.events[a][1].type===`chunkFlow`){if(s){c=t.events[a][1].end;break}s=!0}for(_(r),e=n;e<t.events.length;)t.events[e][1].end={...c},e++;Ta(t.events,a+1,0,t.events.slice(n)),t.events.length=e}}function _(r){let i=n.length;for(;i-- >r;){let r=n[i];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function v(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function Ja(e,t,n){return Q(e,e.attempt(this.parser.constructs.document,t,n),`linePrefix`,this.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)}function Ya(e){if(e===null||X(e)||Ba(e))return 1;if(za(e))return 2}function Xa(e,t,n){let r=[],i=-1;for(;++i<e.length;){let a=e[i].resolveAll;a&&!r.includes(a)&&(t=a(t,n),r.push(a))}return t}var Za={name:`attention`,resolveAll:Qa,tokenize:$a};function Qa(e,t){let n=-1,r,i,a,o,s,c,l,u;for(;++n<e.length;)if(e[n][0]===`enter`&&e[n][1].type===`attentionSequence`&&e[n][1]._close){for(r=n;r--;)if(e[r][0]===`exit`&&e[r][1].type===`attentionSequence`&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;c=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;let d={...e[r][1].end},f={...e[n][1].start};eo(d,-c),eo(f,c),o={type:c>1?`strongSequence`:`emphasisSequence`,start:d,end:{...e[r][1].end}},s={type:c>1?`strongSequence`:`emphasisSequence`,start:{...e[n][1].start},end:f},a={type:c>1?`strongText`:`emphasisText`,start:{...e[r][1].end},end:{...e[n][1].start}},i={type:c>1?`strong`:`emphasis`,start:{...o.start},end:{...s.end}},e[r][1].end={...o.start},e[n][1].start={...s.end},l=[],e[r][1].end.offset-e[r][1].start.offset&&(l=Ea(l,[[`enter`,e[r][1],t],[`exit`,e[r][1],t]])),l=Ea(l,[[`enter`,i,t],[`enter`,o,t],[`exit`,o,t],[`enter`,a,t]]),l=Ea(l,Xa(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),l=Ea(l,[[`exit`,a,t],[`enter`,s,t],[`exit`,s,t],[`exit`,i,t]]),e[n][1].end.offset-e[n][1].start.offset?(u=2,l=Ea(l,[[`enter`,e[n][1],t],[`exit`,e[n][1],t]])):u=0,Ta(e,r-1,n-r+3,l),n=r+l.length-u-2;break}}for(n=-1;++n<e.length;)e[n][1].type===`attentionSequence`&&(e[n][1].type=`data`);return e}function $a(e,t){let n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Ya(r),a;return o;function o(t){return a=t,e.enter(`attentionSequence`),s(t)}function s(o){if(o===a)return e.consume(o),s;let c=e.exit(`attentionSequence`),l=Ya(o),u=!l||l===2&&i||n.includes(o),d=!i||i===2&&l||n.includes(r);return c._open=!!(a===42?u:u&&(i||!d)),c._close=!!(a===42?d:d&&(l||!u)),t(o)}}function eo(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}var to={name:`autolink`,tokenize:no};function no(e,t,n){let r=0;return i;function i(t){return e.enter(`autolink`),e.enter(`autolinkMarker`),e.consume(t),e.exit(`autolinkMarker`),e.enter(`autolinkProtocol`),a}function a(t){return Na(t)?(e.consume(t),o):t===64?n(t):l(t)}function o(e){return e===43||e===45||e===46||J(e)?(r=1,s(e)):l(e)}function s(t){return t===58?(e.consume(t),r=0,c):(t===43||t===45||t===46||J(t))&&r++<32?(e.consume(t),s):(r=0,l(t))}function c(r){return r===62?(e.exit(`autolinkProtocol`),e.enter(`autolinkMarker`),e.consume(r),e.exit(`autolinkMarker`),e.exit(`autolink`),t):r===null||r===32||r===60||Fa(r)?n(r):(e.consume(r),c)}function l(t){return t===64?(e.consume(t),u):Pa(t)?(e.consume(t),l):n(t)}function u(e){return J(e)?d(e):n(e)}function d(n){return n===46?(e.consume(n),r=0,u):n===62?(e.exit(`autolinkProtocol`).type=`autolinkEmail`,e.enter(`autolinkMarker`),e.consume(n),e.exit(`autolinkMarker`),e.exit(`autolink`),t):f(n)}function f(t){if((t===45||J(t))&&r++<63){let n=t===45?f:d;return e.consume(t),n}return n(t)}}var ro={partial:!0,tokenize:io};function io(e,t,n){return r;function r(t){return Z(t)?Q(e,i,`linePrefix`)(t):i(t)}function i(e){return e===null||Y(e)?t(e):n(e)}}var ao={continuation:{tokenize:so},exit:co,name:`blockQuote`,tokenize:oo};function oo(e,t,n){let r=this;return i;function i(t){if(t===62){let n=r.containerState;return n.open||=(e.enter(`blockQuote`,{_container:!0}),!0),e.enter(`blockQuotePrefix`),e.enter(`blockQuoteMarker`),e.consume(t),e.exit(`blockQuoteMarker`),a}return n(t)}function a(n){return Z(n)?(e.enter(`blockQuotePrefixWhitespace`),e.consume(n),e.exit(`blockQuotePrefixWhitespace`),e.exit(`blockQuotePrefix`),t):(e.exit(`blockQuotePrefix`),t(n))}}function so(e,t,n){let r=this;return i;function i(t){return Z(t)?Q(e,a,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):a(t)}function a(r){return e.attempt(ao,t,n)(r)}}function co(e){e.exit(`blockQuote`)}var lo={name:`characterEscape`,tokenize:uo};function uo(e,t,n){return r;function r(t){return e.enter(`characterEscape`),e.enter(`escapeMarker`),e.consume(t),e.exit(`escapeMarker`),i}function i(r){return Ra(r)?(e.enter(`characterEscapeValue`),e.consume(r),e.exit(`characterEscapeValue`),e.exit(`characterEscape`),t):n(r)}}var fo={name:`characterReference`,tokenize:po};function po(e,t,n){let r=this,i=0,a,o;return s;function s(t){return e.enter(`characterReference`),e.enter(`characterReferenceMarker`),e.consume(t),e.exit(`characterReferenceMarker`),c}function c(t){return t===35?(e.enter(`characterReferenceMarkerNumeric`),e.consume(t),e.exit(`characterReferenceMarkerNumeric`),l):(e.enter(`characterReferenceValue`),a=31,o=J,u(t))}function l(t){return t===88||t===120?(e.enter(`characterReferenceMarkerHexadecimal`),e.consume(t),e.exit(`characterReferenceMarkerHexadecimal`),e.enter(`characterReferenceValue`),a=6,o=La,u):(e.enter(`characterReferenceValue`),a=7,o=Ia,u(t))}function u(s){if(s===59&&i){let i=e.exit(`characterReferenceValue`);return o===J&&!wa(r.sliceSerialize(i))?n(s):(e.enter(`characterReferenceMarker`),e.consume(s),e.exit(`characterReferenceMarker`),e.exit(`characterReference`),t)}return o(s)&&i++<a?(e.consume(s),u):n(s)}}var mo={partial:!0,tokenize:_o},ho={concrete:!0,name:`codeFenced`,tokenize:go};function go(e,t,n){let r=this,i={partial:!0,tokenize:x},a=0,o=0,s;return c;function c(e){return l(e)}function l(t){let n=r.events[r.events.length-1];return a=n&&n[1].type===`linePrefix`?n[2].sliceSerialize(n[1],!0).length:0,s=t,e.enter(`codeFenced`),e.enter(`codeFencedFence`),e.enter(`codeFencedFenceSequence`),u(t)}function u(t){return t===s?(o++,e.consume(t),u):o<3?n(t):(e.exit(`codeFencedFenceSequence`),Z(t)?Q(e,d,`whitespace`)(t):d(t))}function d(n){return n===null||Y(n)?(e.exit(`codeFencedFence`),r.interrupt?t(n):e.check(mo,h,b)(n)):(e.enter(`codeFencedFenceInfo`),e.enter(`chunkString`,{contentType:`string`}),f(n))}function f(t){return t===null||Y(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceInfo`),d(t)):Z(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceInfo`),Q(e,p,`whitespace`)(t)):t===96&&t===s?n(t):(e.consume(t),f)}function p(t){return t===null||Y(t)?d(t):(e.enter(`codeFencedFenceMeta`),e.enter(`chunkString`,{contentType:`string`}),m(t))}function m(t){return t===null||Y(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceMeta`),d(t)):t===96&&t===s?n(t):(e.consume(t),m)}function h(t){return e.attempt(i,b,g)(t)}function g(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),_}function _(t){return a>0&&Z(t)?Q(e,v,`linePrefix`,a+1)(t):v(t)}function v(t){return t===null||Y(t)?e.check(mo,h,b)(t):(e.enter(`codeFlowValue`),y(t))}function y(t){return t===null||Y(t)?(e.exit(`codeFlowValue`),v(t)):(e.consume(t),y)}function b(n){return e.exit(`codeFenced`),t(n)}function x(e,t,n){let i=0;return a;function a(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),c}function c(t){return e.enter(`codeFencedFence`),Z(t)?Q(e,l,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):l(t)}function l(t){return t===s?(e.enter(`codeFencedFenceSequence`),u(t)):n(t)}function u(t){return t===s?(i++,e.consume(t),u):i>=o?(e.exit(`codeFencedFenceSequence`),Z(t)?Q(e,d,`whitespace`)(t):d(t)):n(t)}function d(r){return r===null||Y(r)?(e.exit(`codeFencedFence`),t(r)):n(r)}}}function _o(e,t,n){let r=this;return i;function i(t){return t===null?n(t):(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),a)}function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}var vo={name:`codeIndented`,tokenize:bo},yo={partial:!0,tokenize:xo};function bo(e,t,n){let r=this;return i;function i(t){return e.enter(`codeIndented`),Q(e,a,`linePrefix`,5)(t)}function a(e){let t=r.events[r.events.length-1];return t&&t[1].type===`linePrefix`&&t[2].sliceSerialize(t[1],!0).length>=4?o(e):n(e)}function o(t){return t===null?c(t):Y(t)?e.attempt(yo,o,c)(t):(e.enter(`codeFlowValue`),s(t))}function s(t){return t===null||Y(t)?(e.exit(`codeFlowValue`),o(t)):(e.consume(t),s)}function c(n){return e.exit(`codeIndented`),t(n)}}function xo(e,t,n){let r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):Y(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),i):Q(e,a,`linePrefix`,5)(t)}function a(e){let a=r.events[r.events.length-1];return a&&a[1].type===`linePrefix`&&a[2].sliceSerialize(a[1],!0).length>=4?t(e):Y(e)?i(e):n(e)}}var So={name:`codeText`,previous:wo,resolve:Co,tokenize:To};function Co(e){let t=e.length-4,n=3,r,i;if((e[n][1].type===`lineEnding`||e[n][1].type===`space`)&&(e[t][1].type===`lineEnding`||e[t][1].type===`space`)){for(r=n;++r<t;)if(e[r][1].type===`codeTextData`){e[n][1].type=`codeTextPadding`,e[t][1].type=`codeTextPadding`,n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!==`lineEnding`&&(i=r):(r===t||e[r][1].type===`lineEnding`)&&(e[i][1].type=`codeTextData`,r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function wo(e){return e!==96||this.events[this.events.length-1][1].type===`characterEscape`}function To(e,t,n){let r=0,i,a;return o;function o(t){return e.enter(`codeText`),e.enter(`codeTextSequence`),s(t)}function s(t){return t===96?(e.consume(t),r++,s):(e.exit(`codeTextSequence`),c(t))}function c(t){return t===null?n(t):t===32?(e.enter(`space`),e.consume(t),e.exit(`space`),c):t===96?(a=e.enter(`codeTextSequence`),i=0,u(t)):Y(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),c):(e.enter(`codeTextData`),l(t))}function l(t){return t===null||t===32||t===96||Y(t)?(e.exit(`codeTextData`),c(t)):(e.consume(t),l)}function u(n){return n===96?(e.consume(n),i++,u):i===r?(e.exit(`codeTextSequence`),e.exit(`codeText`),t(n)):(a.type=`codeTextData`,l(n))}}var Eo=class{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){let n=t??1/0;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){let r=t||0;this.setCursor(Math.trunc(e));let i=this.right.splice(this.right.length-r,1/0);return n&&Do(this.left,n),i.reverse()}pop(){return this.setCursor(1/0),this.left.pop()}push(e){this.setCursor(1/0),this.left.push(e)}pushMany(e){this.setCursor(1/0),Do(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),Do(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&this.right.length===0||e<0&&this.left.length===0))if(e<this.left.length){let t=this.left.splice(e,1/0);Do(this.right,t.reverse())}else{let t=this.right.splice(this.left.length+this.right.length-e,1/0);Do(this.left,t.reverse())}}};function Do(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function Oo(e){let t={},n=-1,r,i,a,o,s,c,l,u=new Eo(e);for(;++n<u.length;){for(;n in t;)n=t[n];if(r=u.get(n),n&&r[1].type===`chunkFlow`&&u.get(n-1)[1].type===`listItemPrefix`&&(c=r[1]._tokenizer.events,a=0,a<c.length&&c[a][1].type===`lineEndingBlank`&&(a+=2),a<c.length&&c[a][1].type===`content`))for(;++a<c.length&&c[a][1].type!==`content`;)c[a][1].type===`chunkText`&&(c[a][1]._isInFirstContentOfListItem=!0,a++);if(r[0]===`enter`)r[1].contentType&&(Object.assign(t,ko(u,n)),n=t[n],l=!0);else if(r[1]._container){for(a=n,i=void 0;a--;)if(o=u.get(a),o[1].type===`lineEnding`||o[1].type===`lineEndingBlank`)o[0]===`enter`&&(i&&(u.get(i)[1].type=`lineEndingBlank`),o[1].type=`lineEnding`,i=a);else if(!(o[1].type===`linePrefix`||o[1].type===`listItemIndent`))break;i&&(r[1].end={...u.get(i)[1].start},s=u.slice(i,n),s.unshift(r),u.splice(i,n-i+1,s))}}return Ta(e,0,1/0,u.slice(0)),!l}function ko(e,t){let n=e.get(t)[1],r=e.get(t)[2],i=t-1,a=[],o=n._tokenizer;o||(o=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));let s=o.events,c=[],l={},u,d,f=-1,p=n,m=0,h=0,g=[h];for(;p;){for(;e.get(++i)[1]!==p;);a.push(i),p._tokenizer||(u=r.sliceStream(p),p.next||u.push(null),d&&o.defineSkip(p.start),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(u),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),d=p,p=p.next}for(p=n;++f<s.length;)s[f][0]===`exit`&&s[f-1][0]===`enter`&&s[f][1].type===s[f-1][1].type&&s[f][1].start.line!==s[f][1].end.line&&(h=f+1,g.push(h),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(o.events=[],p?(p._tokenizer=void 0,p.previous=void 0):g.pop(),f=g.length;f--;){let t=s.slice(g[f],g[f+1]),n=a.pop();c.push([n,n+t.length-1]),e.splice(n,2,t)}for(c.reverse(),f=-1;++f<c.length;)l[m+c[f][0]]=m+c[f][1],m+=c[f][1]-c[f][0]-1;return l}var Ao={resolve:Mo,tokenize:No},jo={partial:!0,tokenize:Po};function Mo(e){return Oo(e),e}function No(e,t){let n;return r;function r(t){return e.enter(`content`),n=e.enter(`chunkContent`,{contentType:`content`}),i(t)}function i(t){return t===null?a(t):Y(t)?e.check(jo,o,a)(t):(e.consume(t),i)}function a(n){return e.exit(`chunkContent`),e.exit(`content`),t(n)}function o(t){return e.consume(t),e.exit(`chunkContent`),n.next=e.enter(`chunkContent`,{contentType:`content`,previous:n}),n=n.next,i}}function Po(e,t,n){let r=this;return i;function i(t){return e.exit(`chunkContent`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),Q(e,a,`linePrefix`)}function a(i){if(i===null||Y(i))return n(i);let a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes(`codeIndented`)&&a&&a[1].type===`linePrefix`&&a[2].sliceSerialize(a[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}function Fo(e,t,n,r,i,a,o,s,c){let l=c||1/0,u=0;return d;function d(t){return t===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(t),e.exit(a),f):t===null||t===32||t===41||Fa(t)?n(t):(e.enter(r),e.enter(o),e.enter(s),e.enter(`chunkString`,{contentType:`string`}),h(t))}function f(n){return n===62?(e.enter(a),e.consume(n),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(s),e.enter(`chunkString`,{contentType:`string`}),p(n))}function p(t){return t===62?(e.exit(`chunkString`),e.exit(s),f(t)):t===null||t===60||Y(t)?n(t):(e.consume(t),t===92?m:p)}function m(t){return t===60||t===62||t===92?(e.consume(t),p):p(t)}function h(i){return!u&&(i===null||i===41||X(i))?(e.exit(`chunkString`),e.exit(s),e.exit(o),e.exit(r),t(i)):u<l&&i===40?(e.consume(i),u++,h):i===41?(e.consume(i),u--,h):i===null||i===32||i===40||Fa(i)?n(i):(e.consume(i),i===92?g:h)}function g(t){return t===40||t===41||t===92?(e.consume(t),h):h(t)}}function Io(e,t,n,r,i,a){let o=this,s=0,c;return l;function l(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),e.enter(a),u}function u(l){return s>999||l===null||l===91||l===93&&!c||l===94&&!s&&`_hiddenFootnoteSupport`in o.parser.constructs?n(l):l===93?(e.exit(a),e.enter(i),e.consume(l),e.exit(i),e.exit(r),t):Y(l)?(e.enter(`lineEnding`),e.consume(l),e.exit(`lineEnding`),u):(e.enter(`chunkString`,{contentType:`string`}),d(l))}function d(t){return t===null||t===91||t===93||Y(t)||s++>999?(e.exit(`chunkString`),u(t)):(e.consume(t),c||=!Z(t),t===92?f:d)}function f(t){return t===91||t===92||t===93?(e.consume(t),s++,d):d(t)}}function Lo(e,t,n,r,i,a){let o;return s;function s(t){return t===34||t===39||t===40?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),o=t===40?41:t,c):n(t)}function c(n){return n===o?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(a),l(n))}function l(t){return t===o?(e.exit(a),c(o)):t===null?n(t):Y(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),Q(e,l,`linePrefix`)):(e.enter(`chunkString`,{contentType:`string`}),u(t))}function u(t){return t===o||t===null||Y(t)?(e.exit(`chunkString`),l(t)):(e.consume(t),t===92?d:u)}function d(t){return t===o||t===92?(e.consume(t),u):u(t)}}function Ro(e,t){let n;return r;function r(i){return Y(i)?(e.enter(`lineEnding`),e.consume(i),e.exit(`lineEnding`),n=!0,r):Z(i)?Q(e,r,n?`linePrefix`:`lineSuffix`)(i):t(i)}}var zo={name:`definition`,tokenize:Vo},Bo={partial:!0,tokenize:Ho};function Vo(e,t,n){let r=this,i;return a;function a(t){return e.enter(`definition`),o(t)}function o(t){return Io.call(r,e,s,n,`definitionLabel`,`definitionLabelMarker`,`definitionLabelString`)(t)}function s(t){return i=Ma(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),t===58?(e.enter(`definitionMarker`),e.consume(t),e.exit(`definitionMarker`),c):n(t)}function c(t){return X(t)?Ro(e,l)(t):l(t)}function l(t){return Fo(e,u,n,`definitionDestination`,`definitionDestinationLiteral`,`definitionDestinationLiteralMarker`,`definitionDestinationRaw`,`definitionDestinationString`)(t)}function u(t){return e.attempt(Bo,d,d)(t)}function d(t){return Z(t)?Q(e,f,`whitespace`)(t):f(t)}function f(a){return a===null||Y(a)?(e.exit(`definition`),r.parser.defined.push(i),t(a)):n(a)}}function Ho(e,t,n){return r;function r(t){return X(t)?Ro(e,i)(t):n(t)}function i(t){return Lo(e,a,n,`definitionTitle`,`definitionTitleMarker`,`definitionTitleString`)(t)}function a(t){return Z(t)?Q(e,o,`whitespace`)(t):o(t)}function o(e){return e===null||Y(e)?t(e):n(e)}}var Uo={name:`hardBreakEscape`,tokenize:Wo};function Wo(e,t,n){return r;function r(t){return e.enter(`hardBreakEscape`),e.consume(t),i}function i(r){return Y(r)?(e.exit(`hardBreakEscape`),t(r)):n(r)}}var Go={name:`headingAtx`,resolve:Ko,tokenize:qo};function Ko(e,t){let n=e.length-2,r=3,i,a;return e[r][1].type===`whitespace`&&(r+=2),n-2>r&&e[n][1].type===`whitespace`&&(n-=2),e[n][1].type===`atxHeadingSequence`&&(r===n-1||n-4>r&&e[n-2][1].type===`whitespace`)&&(n-=r+1===n?2:4),n>r&&(i={type:`atxHeadingText`,start:e[r][1].start,end:e[n][1].end},a={type:`chunkText`,start:e[r][1].start,end:e[n][1].end,contentType:`text`},Ta(e,r,n-r+1,[[`enter`,i,t],[`enter`,a,t],[`exit`,a,t],[`exit`,i,t]])),e}function qo(e,t,n){let r=0;return i;function i(t){return e.enter(`atxHeading`),a(t)}function a(t){return e.enter(`atxHeadingSequence`),o(t)}function o(t){return t===35&&r++<6?(e.consume(t),o):t===null||X(t)?(e.exit(`atxHeadingSequence`),s(t)):n(t)}function s(n){return n===35?(e.enter(`atxHeadingSequence`),c(n)):n===null||Y(n)?(e.exit(`atxHeading`),t(n)):Z(n)?Q(e,s,`whitespace`)(n):(e.enter(`atxHeadingText`),l(n))}function c(t){return t===35?(e.consume(t),c):(e.exit(`atxHeadingSequence`),s(t))}function l(t){return t===null||t===35||X(t)?(e.exit(`atxHeadingText`),s(t)):(e.consume(t),l)}}var Jo=`address.article.aside.base.basefont.blockquote.body.caption.center.col.colgroup.dd.details.dialog.dir.div.dl.dt.fieldset.figcaption.figure.footer.form.frame.frameset.h1.h2.h3.h4.h5.h6.head.header.hr.html.iframe.legend.li.link.main.menu.menuitem.nav.noframes.ol.optgroup.option.p.param.search.section.summary.table.tbody.td.tfoot.th.thead.title.tr.track.ul`.split(`.`),Yo=[`pre`,`script`,`style`,`textarea`],Xo={concrete:!0,name:`htmlFlow`,resolveTo:$o,tokenize:es},Zo={partial:!0,tokenize:ns},Qo={partial:!0,tokenize:ts};function $o(e){let t=e.length;for(;t--&&!(e[t][0]===`enter`&&e[t][1].type===`htmlFlow`););return t>1&&e[t-2][1].type===`linePrefix`&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function es(e,t,n){let r=this,i,a,o,s,c;return l;function l(e){return u(e)}function u(t){return e.enter(`htmlFlow`),e.enter(`htmlFlowData`),e.consume(t),d}function d(s){return s===33?(e.consume(s),f):s===47?(e.consume(s),a=!0,h):s===63?(e.consume(s),i=3,r.interrupt?t:j):Na(s)?(e.consume(s),o=String.fromCharCode(s),g):n(s)}function f(a){return a===45?(e.consume(a),i=2,p):a===91?(e.consume(a),i=5,s=0,m):Na(a)?(e.consume(a),i=4,r.interrupt?t:j):n(a)}function p(i){return i===45?(e.consume(i),r.interrupt?t:j):n(i)}function m(i){return i===`CDATA[`.charCodeAt(s++)?(e.consume(i),s===6?r.interrupt?t:D:m):n(i)}function h(t){return Na(t)?(e.consume(t),o=String.fromCharCode(t),g):n(t)}function g(s){if(s===null||s===47||s===62||X(s)){let c=s===47,l=o.toLowerCase();return!c&&!a&&Yo.includes(l)?(i=1,r.interrupt?t(s):D(s)):Jo.includes(o.toLowerCase())?(i=6,c?(e.consume(s),_):r.interrupt?t(s):D(s)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(s):a?v(s):y(s))}return s===45||J(s)?(e.consume(s),o+=String.fromCharCode(s),g):n(s)}function _(i){return i===62?(e.consume(i),r.interrupt?t:D):n(i)}function v(t){return Z(t)?(e.consume(t),v):E(t)}function y(t){return t===47?(e.consume(t),E):t===58||t===95||Na(t)?(e.consume(t),b):Z(t)?(e.consume(t),y):E(t)}function b(t){return t===45||t===46||t===58||t===95||J(t)?(e.consume(t),b):x(t)}function x(t){return t===61?(e.consume(t),S):Z(t)?(e.consume(t),x):y(t)}function S(t){return t===null||t===60||t===61||t===62||t===96?n(t):t===34||t===39?(e.consume(t),c=t,C):Z(t)?(e.consume(t),S):w(t)}function C(t){return t===c?(e.consume(t),c=null,T):t===null||Y(t)?n(t):(e.consume(t),C)}function w(t){return t===null||t===34||t===39||t===47||t===60||t===61||t===62||t===96||X(t)?x(t):(e.consume(t),w)}function T(e){return e===47||e===62||Z(e)?y(e):n(e)}function E(t){return t===62?(e.consume(t),ee):n(t)}function ee(t){return t===null||Y(t)?D(t):Z(t)?(e.consume(t),ee):n(t)}function D(t){return t===45&&i===2?(e.consume(t),k):t===60&&i===1?(e.consume(t),A):t===62&&i===4?(e.consume(t),ae):t===63&&i===3?(e.consume(t),j):t===93&&i===5?(e.consume(t),ie):Y(t)&&(i===6||i===7)?(e.exit(`htmlFlowData`),e.check(Zo,oe,te)(t)):t===null||Y(t)?(e.exit(`htmlFlowData`),te(t)):(e.consume(t),D)}function te(t){return e.check(Qo,ne,oe)(t)}function ne(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),O}function O(t){return t===null||Y(t)?te(t):(e.enter(`htmlFlowData`),D(t))}function k(t){return t===45?(e.consume(t),j):D(t)}function A(t){return t===47?(e.consume(t),o=``,re):D(t)}function re(t){if(t===62){let n=o.toLowerCase();return Yo.includes(n)?(e.consume(t),ae):D(t)}return Na(t)&&o.length<8?(e.consume(t),o+=String.fromCharCode(t),re):D(t)}function ie(t){return t===93?(e.consume(t),j):D(t)}function j(t){return t===62?(e.consume(t),ae):t===45&&i===2?(e.consume(t),j):D(t)}function ae(t){return t===null||Y(t)?(e.exit(`htmlFlowData`),oe(t)):(e.consume(t),ae)}function oe(n){return e.exit(`htmlFlow`),t(n)}}function ts(e,t,n){let r=this;return i;function i(t){return Y(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),a):n(t)}function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}function ns(e,t,n){return r;function r(r){return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),e.attempt(ro,t,n)}}var rs={name:`htmlText`,tokenize:is};function is(e,t,n){let r=this,i,a,o;return s;function s(t){return e.enter(`htmlText`),e.enter(`htmlTextData`),e.consume(t),c}function c(t){return t===33?(e.consume(t),l):t===47?(e.consume(t),x):t===63?(e.consume(t),y):Na(t)?(e.consume(t),w):n(t)}function l(t){return t===45?(e.consume(t),u):t===91?(e.consume(t),a=0,m):Na(t)?(e.consume(t),v):n(t)}function u(t){return t===45?(e.consume(t),p):n(t)}function d(t){return t===null?n(t):t===45?(e.consume(t),f):Y(t)?(o=d,A(t)):(e.consume(t),d)}function f(t){return t===45?(e.consume(t),p):d(t)}function p(e){return e===62?k(e):e===45?f(e):d(e)}function m(t){return t===`CDATA[`.charCodeAt(a++)?(e.consume(t),a===6?h:m):n(t)}function h(t){return t===null?n(t):t===93?(e.consume(t),g):Y(t)?(o=h,A(t)):(e.consume(t),h)}function g(t){return t===93?(e.consume(t),_):h(t)}function _(t){return t===62?k(t):t===93?(e.consume(t),_):h(t)}function v(t){return t===null||t===62?k(t):Y(t)?(o=v,A(t)):(e.consume(t),v)}function y(t){return t===null?n(t):t===63?(e.consume(t),b):Y(t)?(o=y,A(t)):(e.consume(t),y)}function b(e){return e===62?k(e):y(e)}function x(t){return Na(t)?(e.consume(t),S):n(t)}function S(t){return t===45||J(t)?(e.consume(t),S):C(t)}function C(t){return Y(t)?(o=C,A(t)):Z(t)?(e.consume(t),C):k(t)}function w(t){return t===45||J(t)?(e.consume(t),w):t===47||t===62||X(t)?T(t):n(t)}function T(t){return t===47?(e.consume(t),k):t===58||t===95||Na(t)?(e.consume(t),E):Y(t)?(o=T,A(t)):Z(t)?(e.consume(t),T):k(t)}function E(t){return t===45||t===46||t===58||t===95||J(t)?(e.consume(t),E):ee(t)}function ee(t){return t===61?(e.consume(t),D):Y(t)?(o=ee,A(t)):Z(t)?(e.consume(t),ee):T(t)}function D(t){return t===null||t===60||t===61||t===62||t===96?n(t):t===34||t===39?(e.consume(t),i=t,te):Y(t)?(o=D,A(t)):Z(t)?(e.consume(t),D):(e.consume(t),ne)}function te(t){return t===i?(e.consume(t),i=void 0,O):t===null?n(t):Y(t)?(o=te,A(t)):(e.consume(t),te)}function ne(t){return t===null||t===34||t===39||t===60||t===61||t===96?n(t):t===47||t===62||X(t)?T(t):(e.consume(t),ne)}function O(e){return e===47||e===62||X(e)?T(e):n(e)}function k(r){return r===62?(e.consume(r),e.exit(`htmlTextData`),e.exit(`htmlText`),t):n(r)}function A(t){return e.exit(`htmlTextData`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),re}function re(t){return Z(t)?Q(e,ie,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):ie(t)}function ie(t){return e.enter(`htmlTextData`),o(t)}}var as={name:`labelEnd`,resolveAll:ls,resolveTo:us,tokenize:ds},os={tokenize:fs},ss={tokenize:ps},cs={tokenize:ms};function ls(e){let t=-1,n=[];for(;++t<e.length;){let r=e[t][1];if(n.push(e[t]),r.type===`labelImage`||r.type===`labelLink`||r.type===`labelEnd`){let e=r.type===`labelImage`?4:2;r.type=`data`,t+=e}}return e.length!==n.length&&Ta(e,0,e.length,n),e}function us(e,t){let n=e.length,r=0,i,a,o,s;for(;n--;)if(i=e[n][1],a){if(i.type===`link`||i.type===`labelLink`&&i._inactive)break;e[n][0]===`enter`&&i.type===`labelLink`&&(i._inactive=!0)}else if(o){if(e[n][0]===`enter`&&(i.type===`labelImage`||i.type===`labelLink`)&&!i._balanced&&(a=n,i.type!==`labelLink`)){r=2;break}}else i.type===`labelEnd`&&(o=n);let c={type:e[a][1].type===`labelLink`?`link`:`image`,start:{...e[a][1].start},end:{...e[e.length-1][1].end}},l={type:`label`,start:{...e[a][1].start},end:{...e[o][1].end}},u={type:`labelText`,start:{...e[a+r+2][1].end},end:{...e[o-2][1].start}};return s=[[`enter`,c,t],[`enter`,l,t]],s=Ea(s,e.slice(a+1,a+r+3)),s=Ea(s,[[`enter`,u,t]]),s=Ea(s,Xa(t.parser.constructs.insideSpan.null,e.slice(a+r+4,o-3),t)),s=Ea(s,[[`exit`,u,t],e[o-2],e[o-1],[`exit`,l,t]]),s=Ea(s,e.slice(o+1)),s=Ea(s,[[`exit`,c,t]]),Ta(e,a,e.length,s),e}function ds(e,t,n){let r=this,i=r.events.length,a,o;for(;i--;)if((r.events[i][1].type===`labelImage`||r.events[i][1].type===`labelLink`)&&!r.events[i][1]._balanced){a=r.events[i][1];break}return s;function s(t){return a?a._inactive?d(t):(o=r.parser.defined.includes(Ma(r.sliceSerialize({start:a.end,end:r.now()}))),e.enter(`labelEnd`),e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),e.exit(`labelEnd`),c):n(t)}function c(t){return t===40?e.attempt(os,u,o?u:d)(t):t===91?e.attempt(ss,u,o?l:d)(t):o?u(t):d(t)}function l(t){return e.attempt(cs,u,d)(t)}function u(e){return t(e)}function d(e){return a._balanced=!0,n(e)}}function fs(e,t,n){return r;function r(t){return e.enter(`resource`),e.enter(`resourceMarker`),e.consume(t),e.exit(`resourceMarker`),i}function i(t){return X(t)?Ro(e,a)(t):a(t)}function a(t){return t===41?u(t):Fo(e,o,s,`resourceDestination`,`resourceDestinationLiteral`,`resourceDestinationLiteralMarker`,`resourceDestinationRaw`,`resourceDestinationString`,32)(t)}function o(t){return X(t)?Ro(e,c)(t):u(t)}function s(e){return n(e)}function c(t){return t===34||t===39||t===40?Lo(e,l,n,`resourceTitle`,`resourceTitleMarker`,`resourceTitleString`)(t):u(t)}function l(t){return X(t)?Ro(e,u)(t):u(t)}function u(r){return r===41?(e.enter(`resourceMarker`),e.consume(r),e.exit(`resourceMarker`),e.exit(`resource`),t):n(r)}}function ps(e,t,n){let r=this;return i;function i(t){return Io.call(r,e,a,o,`reference`,`referenceMarker`,`referenceString`)(t)}function a(e){return r.parser.defined.includes(Ma(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function o(e){return n(e)}}function ms(e,t,n){return r;function r(t){return e.enter(`reference`),e.enter(`referenceMarker`),e.consume(t),e.exit(`referenceMarker`),i}function i(r){return r===93?(e.enter(`referenceMarker`),e.consume(r),e.exit(`referenceMarker`),e.exit(`reference`),t):n(r)}}var hs={name:`labelStartImage`,resolveAll:as.resolveAll,tokenize:gs};function gs(e,t,n){let r=this;return i;function i(t){return e.enter(`labelImage`),e.enter(`labelImageMarker`),e.consume(t),e.exit(`labelImageMarker`),a}function a(t){return t===91?(e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),e.exit(`labelImage`),o):n(t)}function o(e){return e===94&&`_hiddenFootnoteSupport`in r.parser.constructs?n(e):t(e)}}var _s={name:`labelStartLink`,resolveAll:as.resolveAll,tokenize:vs};function vs(e,t,n){let r=this;return i;function i(t){return e.enter(`labelLink`),e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),e.exit(`labelLink`),a}function a(e){return e===94&&`_hiddenFootnoteSupport`in r.parser.constructs?n(e):t(e)}}var ys={name:`lineEnding`,tokenize:bs};function bs(e,t){return n;function n(n){return e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),Q(e,t,`linePrefix`)}}var xs={name:`thematicBreak`,tokenize:Ss};function Ss(e,t,n){let r=0,i;return a;function a(t){return e.enter(`thematicBreak`),o(t)}function o(e){return i=e,s(e)}function s(a){return a===i?(e.enter(`thematicBreakSequence`),c(a)):r>=3&&(a===null||Y(a))?(e.exit(`thematicBreak`),t(a)):n(a)}function c(t){return t===i?(e.consume(t),r++,c):(e.exit(`thematicBreakSequence`),Z(t)?Q(e,s,`whitespace`)(t):s(t))}}var $={continuation:{tokenize:Es},exit:Os,name:`list`,tokenize:Ts},Cs={partial:!0,tokenize:ks},ws={partial:!0,tokenize:Ds};function Ts(e,t,n){let r=this,i=r.events[r.events.length-1],a=i&&i[1].type===`linePrefix`?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(t){let i=r.containerState.type||(t===42||t===43||t===45?`listUnordered`:`listOrdered`);if(i===`listUnordered`?!r.containerState.marker||t===r.containerState.marker:Ia(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),i===`listUnordered`)return e.enter(`listItemPrefix`),t===42||t===45?e.check(xs,n,l)(t):l(t);if(!r.interrupt||t===49)return e.enter(`listItemPrefix`),e.enter(`listItemValue`),c(t)}return n(t)}function c(t){return Ia(t)&&++o<10?(e.consume(t),c):(!r.interrupt||o<2)&&(r.containerState.marker?t===r.containerState.marker:t===41||t===46)?(e.exit(`listItemValue`),l(t)):n(t)}function l(t){return e.enter(`listItemMarker`),e.consume(t),e.exit(`listItemMarker`),r.containerState.marker=r.containerState.marker||t,e.check(ro,r.interrupt?n:u,e.attempt(Cs,f,d))}function u(e){return r.containerState.initialBlankLine=!0,a++,f(e)}function d(t){return Z(t)?(e.enter(`listItemPrefixWhitespace`),e.consume(t),e.exit(`listItemPrefixWhitespace`),f):n(t)}function f(n){return r.containerState.size=a+r.sliceSerialize(e.exit(`listItemPrefix`),!0).length,t(n)}}function Es(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(ro,i,a);function i(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Q(e,t,`listItemIndent`,r.containerState.size+1)(n)}function a(n){return r.containerState.furtherBlankLines||!Z(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(ws,t,o)(n))}function o(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,Q(e,e.attempt($,t,n),`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(i)}}function Ds(e,t,n){let r=this;return Q(e,i,`listItemIndent`,r.containerState.size+1);function i(e){let i=r.events[r.events.length-1];return i&&i[1].type===`listItemIndent`&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)}}function Os(e){e.exit(this.containerState.type)}function ks(e,t,n){let r=this;return Q(e,i,`listItemPrefixWhitespace`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:5);function i(e){let i=r.events[r.events.length-1];return!Z(e)&&i&&i[1].type===`listItemPrefixWhitespace`?t(e):n(e)}}var As={name:`setextUnderline`,resolveTo:js,tokenize:Ms};function js(e,t){let n=e.length,r,i,a;for(;n--;)if(e[n][0]===`enter`){if(e[n][1].type===`content`){r=n;break}e[n][1].type===`paragraph`&&(i=n)}else e[n][1].type===`content`&&e.splice(n,1),!a&&e[n][1].type===`definition`&&(a=n);let o={type:`setextHeading`,start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type=`setextHeadingText`,a?(e.splice(i,0,[`enter`,o,t]),e.splice(a+1,0,[`exit`,e[r][1],t]),e[r][1].end={...e[a][1].end}):e[r][1]=o,e.push([`exit`,o,t]),e}function Ms(e,t,n){let r=this,i;return a;function a(t){let a=r.events.length,s;for(;a--;)if(r.events[a][1].type!==`lineEnding`&&r.events[a][1].type!==`linePrefix`&&r.events[a][1].type!==`content`){s=r.events[a][1].type===`paragraph`;break}return!r.parser.lazy[r.now().line]&&(r.interrupt||s)?(e.enter(`setextHeadingLine`),i=t,o(t)):n(t)}function o(t){return e.enter(`setextHeadingLineSequence`),s(t)}function s(t){return t===i?(e.consume(t),s):(e.exit(`setextHeadingLineSequence`),Z(t)?Q(e,c,`lineSuffix`)(t):c(t))}function c(r){return r===null||Y(r)?(e.exit(`setextHeadingLine`),t(r)):n(r)}}var Ns={tokenize:Ps};function Ps(e){let t=this,n=e.attempt(ro,r,e.attempt(this.parser.constructs.flowInitial,i,Q(e,e.attempt(this.parser.constructs.flow,i,e.attempt(Ao,i)),`linePrefix`)));return n;function r(r){if(r===null){e.consume(r);return}return e.enter(`lineEndingBlank`),e.consume(r),e.exit(`lineEndingBlank`),t.currentConstruct=void 0,n}function i(r){if(r===null){e.consume(r);return}return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),t.currentConstruct=void 0,n}}var Fs={resolveAll:zs()},Is=Rs(`string`),Ls=Rs(`text`);function Rs(e){return{resolveAll:zs(e===`text`?Bs:void 0),tokenize:t};function t(t){let n=this,r=this.parser.constructs[e],i=t.attempt(r,a,o);return a;function a(e){return c(e)?i(e):o(e)}function o(e){if(e===null){t.consume(e);return}return t.enter(`data`),t.consume(e),s}function s(e){return c(e)?(t.exit(`data`),i(e)):(t.consume(e),s)}function c(e){if(e===null)return!0;let t=r[e],i=-1;if(t)for(;++i<t.length;){let e=t[i];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}function zs(e){return t;function t(t,n){let r=-1,i;for(;++r<=t.length;)i===void 0?t[r]&&t[r][1].type===`data`&&(i=r,r++):(!t[r]||t[r][1].type!==`data`)&&(r!==i+2&&(t[i][1].end=t[r-1][1].end,t.splice(i+2,r-i-2),r=i+2),i=void 0);return e?e(t,n):t}}function Bs(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type===`lineEnding`)&&e[n-1][1].type===`data`){let r=e[n-1][1],i=t.sliceStream(r),a=i.length,o=-1,s=0,c;for(;a--;){let e=i[a];if(typeof e==`string`){for(o=e.length;e.charCodeAt(o-1)===32;)s++,o--;if(o)break;o=-1}else if(e===-2)c=!0,s++;else if(e!==-1){a++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(s=0),s){let i={type:n===e.length||c||s<2?`lineSuffix`:`hardBreakTrailing`,start:{_bufferIndex:a?o:r.start._bufferIndex+o,_index:r.start._index+a,line:r.end.line,column:r.end.column-s,offset:r.end.offset-s},end:{...r.end}};r.end={...i.start},r.start.offset===r.end.offset?Object.assign(r,i):(e.splice(n,0,[`enter`,i,t],[`exit`,i,t]),n+=2)}n++}return e}var Vs=s({attentionMarkers:()=>Ys,contentInitial:()=>Us,disable:()=>Xs,document:()=>Hs,flow:()=>Gs,flowInitial:()=>Ws,insideSpan:()=>Js,string:()=>Ks,text:()=>qs}),Hs={42:$,43:$,45:$,48:$,49:$,50:$,51:$,52:$,53:$,54:$,55:$,56:$,57:$,62:ao},Us={91:zo},Ws={[-2]:vo,[-1]:vo,32:vo},Gs={35:Go,42:xs,45:[As,xs],60:Xo,61:As,95:xs,96:ho,126:ho},Ks={38:fo,92:lo},qs={[-5]:ys,[-4]:ys,[-3]:ys,33:hs,38:fo,42:Za,60:[to,rs],91:_s,92:[Uo,lo],93:as,95:Za,96:So},Js={null:[Za,Fs]},Ys={null:[42,95]},Xs={null:[]};function Zs(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0},i={},a=[],o=[],s=[],c={attempt:C(x),check:C(S),consume:v,enter:y,exit:b,interrupt:C(S,{interrupt:!0})},l={code:null,containerState:{},defineSkip:h,events:[],now:m,parser:e,previous:null,sliceSerialize:f,sliceStream:p,write:d},u=t.tokenize.call(l,c);return t.resolveAll&&a.push(t),l;function d(e){return o=Ea(o,e),g(),o[o.length-1]===null?(w(t,0),l.events=Xa(a,l.events,l),l.events):[]}function f(e,t){return $s(p(e),t)}function p(e){return Qs(o,e)}function m(){let{_bufferIndex:e,_index:t,line:n,column:i,offset:a}=r;return{_bufferIndex:e,_index:t,line:n,column:i,offset:a}}function h(e){i[e.line]=e.column,E()}function g(){let e;for(;r._index<o.length;){let t=o[r._index];if(typeof t==`string`)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<t.length;)_(t.charCodeAt(r._bufferIndex));else _(t)}}function _(e){u=u(e)}function v(e){Y(e)?(r.line++,r.column=1,r.offset+=e===-3?2:1,E()):e!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),l.previous=e}function y(e,t){let n=t||{};return n.type=e,n.start=m(),l.events.push([`enter`,n,l]),s.push(n),n}function b(e){let t=s.pop();return t.end=m(),l.events.push([`exit`,t,l]),t}function x(e,t){w(e,t.from)}function S(e,t){t.restore()}function C(e,t){return n;function n(n,r,i){let a,o,s,u;return Array.isArray(n)?f(n):`tokenize`in n?f([n]):d(n);function d(e){return t;function t(t){let n=t!==null&&e[t],r=t!==null&&e.null;return f([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(r)?r:r?[r]:[]])(t)}}function f(e){return a=e,o=0,e.length===0?i:p(e[o])}function p(e){return n;function n(n){return u=T(),s=e,e.partial||(l.currentConstruct=e),e.name&&l.parser.constructs.disable.null.includes(e.name)?h(n):e.tokenize.call(t?Object.assign(Object.create(l),t):l,c,m,h)(n)}}function m(t){return e(s,u),r}function h(e){return u.restore(),++o<a.length?p(a[o]):i}}}function w(e,t){e.resolveAll&&!a.includes(e)&&a.push(e),e.resolve&&Ta(l.events,t,l.events.length-t,e.resolve(l.events.slice(t),l)),e.resolveTo&&(l.events=e.resolveTo(l.events,l))}function T(){let e=m(),t=l.previous,n=l.currentConstruct,i=l.events.length,a=Array.from(s);return{from:i,restore:o};function o(){r=e,l.previous=t,l.currentConstruct=n,l.events.length=i,s=a,E()}}function E(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function Qs(e,t){let n=t.start._index,r=t.start._bufferIndex,i=t.end._index,a=t.end._bufferIndex,o;if(n===i)o=[e[n].slice(r,a)];else{if(o=e.slice(n,i),r>-1){let e=o[0];typeof e==`string`?o[0]=e.slice(r):o.shift()}a>0&&o.push(e[i].slice(0,a))}return o}function $s(e,t){let n=-1,r=[],i;for(;++n<e.length;){let a=e[n],o;if(typeof a==`string`)o=a;else switch(a){case-5:o=`\r`;break;case-4:o=`
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),s=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},c=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},l=(n,r,a)=>(a=n==null?{}:e(i(n)),c(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));let u=require("react");u=l(u,1);let d=require("react/jsx-runtime"),f=require("@base-ui/react/checkbox"),p=require("@base-ui/react/radio-group"),m=require("@base-ui/react/field"),h=require("@base-ui/react/combobox"),g=require("@base-ui/react/select"),_=require("@base-ui/react/switch"),v=require("@base-ui/react/dialog"),y=require("@base-ui/react/tabs"),b=require("@base-ui/react/separator"),x=require("@base-ui/react/tooltip"),S=require("@base-ui/react/avatar"),C=require("@base-ui/react/progress"),w=require("@base-ui/react/collapsible"),T=require("@monaco-editor/react");T=l(T,1);let E=require("react-resizable-panels");var D=`ord-ui-theme`;function O(){return typeof window>`u`?`light`:window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`}function ee(e=`system`){let[t,n]=(0,u.useState)(()=>typeof window>`u`?e:localStorage.getItem(D)||e),[r,i]=(0,u.useState)(t===`system`?O():t),a=(0,u.useCallback)(e=>{n(e),localStorage.setItem(D,e)},[]);return(0,u.useEffect)(()=>{if(t===`system`){i(O());let e=window.matchMedia(`(prefers-color-scheme: dark)`),t=e=>i(e.matches?`dark`:`light`);return e.addEventListener(`change`,t),()=>{e.removeEventListener(`change`,t)}}else i(t)},[t]),{theme:t,resolvedTheme:r,setTheme:a}}var te=(0,u.createContext)(null),k=()=>(0,u.useContext)(te)??(typeof document<`u`?document.querySelector(`.ord-ui`):null);function A({children:e,defaultTheme:t=`system`,className:n,style:r}){let[i,a]=(0,u.useState)(null),o=(0,u.useCallback)(e=>{a(e)},[]),{resolvedTheme:s,setTheme:c}=ee(t);return(0,u.useEffect)(()=>{c(t)},[t,c]),(0,d.jsx)(`div`,{ref:o,style:r,className:`ord-ui text-foreground${s===`dark`?` dark`:``}${n?` ${n}`:``}`,children:(0,d.jsx)(te.Provider,{value:i,children:e})})}function j(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=j(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function ne(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=j(e))&&(r&&(r+=` `),r+=t);return r}var re=(e,t)=>{let n=Array(e.length+t.length);for(let t=0;t<e.length;t++)n[t]=e[t];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},M=(e,t)=>({classGroupId:e,validator:t}),ie=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),ae=`-`,oe=[],se=`arbitrary..`,N=e=>{let t=le(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return ce(e);let n=e.split(ae);return P(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?re(i,t):t:i||oe}return n[e]||oe}}},P=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=P(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(ae):e.slice(t).join(ae),s=a.length;for(let e=0;e<s;e++){let t=a[e];if(t.validator(o))return t.classGroupId}},ce=e=>e.slice(1,-1).indexOf(`:`)===-1?void 0:(()=>{let t=e.slice(1,-1),n=t.indexOf(`:`),r=t.slice(0,n);return r?se+r:void 0})(),le=e=>{let{theme:t,classGroups:n}=e;return F(n,t)},F=(e,t)=>{let n=ie();for(let r in e){let i=e[r];ue(i,n,r,t)}return n},ue=(e,t,n,r)=>{let i=e.length;for(let a=0;a<i;a++){let i=e[a];de(i,t,n,r)}},de=(e,t,n,r)=>{if(typeof e==`string`){fe(e,t,n);return}if(typeof e==`function`){pe(e,t,n,r);return}me(e,t,n,r)},fe=(e,t,n)=>{let r=e===``?t:he(t,e);r.classGroupId=n},pe=(e,t,n,r)=>{if(ge(e)){ue(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(M(n,e))},me=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e<a;e++){let[a,o]=i[e];ue(o,he(t,a),n,r)}},he=(e,t)=>{let n=e,r=t.split(ae),i=r.length;for(let e=0;e<i;e++){let t=r[e],i=n.nextPart.get(t);i||(i=ie(),n.nextPart.set(t,i)),n=i}return n},ge=e=>`isThemeGetter`in e&&e.isThemeGetter===!0,_e=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null),i=(i,a)=>{n[i]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];if(t!==void 0)return t;if((t=r[e])!==void 0)return i(e,t),t},set(e,t){e in n?n[e]=t:i(e,t)}}},ve=`!`,ye=`:`,be=[],xe=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),Se=e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t=[],n=0,r=0,i=0,a,o=e.length;for(let s=0;s<o;s++){let o=e[s];if(n===0&&r===0){if(o===ye){t.push(e.slice(i,s)),i=s+1;continue}if(o===`/`){a=s;continue}}o===`[`?n++:o===`]`?n--:o===`(`?r++:o===`)`&&r--}let s=t.length===0?e:e.slice(i),c=s,l=!1;s.endsWith(ve)?(c=s.slice(0,-1),l=!0):s.startsWith(ve)&&(c=s.slice(1),l=!0);let u=a&&a>i?a-i:void 0;return xe(t,l,c,u)};if(t){let e=t+ye,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):xe(be,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},Ce=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{let n=[],r=[];for(let i=0;i<e.length;i++){let a=e[i],o=a[0]===`[`,s=t.has(a);o||s?(r.length>0&&(r.sort(),n.push(...r),r=[]),n.push(a)):r.push(a)}return r.length>0&&(r.sort(),n.push(...r)),n}},we=e=>({cache:_e(e.cacheSize),parseClassName:Se(e),sortModifiers:Ce(e),postfixLookupClassGroupIds:Te(e),...N(e)}),Te=e=>{let t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let e=0;e<n.length;e++)t[n[e]]=!0;return t},Ee=/\s+/,De=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a,postfixLookupClassGroupIds:o}=t,s=[],c=e.trim().split(Ee),l=``;for(let e=c.length-1;e>=0;--e){let t=c[e],{isExternal:u,modifiers:d,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:m}=n(t);if(u){l=t+(l.length>0?` `+l:l);continue}let h=!!m,g;if(h){g=r(p.substring(0,m));let e=g&&o[g]?r(p):void 0;e&&e!==g&&(g=e,h=!1)}else g=r(p);if(!g){if(!h){l=t+(l.length>0?` `+l:l);continue}if(g=r(p),!g){l=t+(l.length>0?` `+l:l);continue}h=!1}let _=d.length===0?``:d.length===1?d[0]:a(d).join(`:`),v=f?_+ve:_,y=v+g;if(s.indexOf(y)>-1)continue;s.push(y);let b=i(g,h);for(let e=0;e<b.length;++e){let t=b[e];s.push(v+t)}l=t+(l.length>0?` `+l:l)}return l},Oe=(...e)=>{let t=0,n,r,i=``;for(;t<e.length;)(n=e[t++])&&(r=ke(n))&&(i&&(i+=` `),i+=r);return i},ke=e=>{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r<e.length;r++)e[r]&&(t=ke(e[r]))&&(n&&(n+=` `),n+=t);return n},Ae=(e,...t)=>{let n,r,i,a,o=o=>(n=we(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)),s=e=>{let t=r(e);if(t)return t;let a=De(e,n);return i(e,a),a};return a=o,(...e)=>a(Oe(...e))},je=[],I=e=>{let t=t=>t[e]||je;return t.isThemeGetter=!0,t},Me=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Ne=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Pe=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Fe=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ie=/\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$/,Le=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Re=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ze=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Be=e=>Pe.test(e),L=e=>!!e&&!Number.isNaN(Number(e)),Ve=e=>!!e&&Number.isInteger(Number(e)),He=e=>e.endsWith(`%`)&&L(e.slice(0,-1)),Ue=e=>Fe.test(e),We=()=>!0,Ge=e=>Ie.test(e)&&!Le.test(e),Ke=()=>!1,qe=e=>Re.test(e),Je=e=>ze.test(e),Ye=e=>!R(e)&&!z(e),Xe=e=>e.startsWith(`@container`)&&(e[10]===`/`&&e[11]!==void 0||e[11]===`s`&&e[16]!==void 0&&e.startsWith(`-size/`,10)||e[11]===`n`&&e[18]!==void 0&&e.startsWith(`-normal/`,10)),Ze=e=>ft(e,gt,Ke),R=e=>Me.test(e),Qe=e=>ft(e,_t,Ge),$e=e=>ft(e,vt,L),et=e=>ft(e,bt,We),tt=e=>ft(e,yt,Ke),nt=e=>ft(e,mt,Ke),rt=e=>ft(e,ht,Je),it=e=>ft(e,xt,qe),z=e=>Ne.test(e),at=e=>pt(e,_t),ot=e=>pt(e,yt),st=e=>pt(e,mt),ct=e=>pt(e,gt),lt=e=>pt(e,ht),ut=e=>pt(e,xt,!0),dt=e=>pt(e,bt,!0),ft=(e,t,n)=>{let r=Me.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},pt=(e,t,n=!1)=>{let r=Ne.exec(e);return r?r[1]?t(r[1]):n:!1},mt=e=>e===`position`||e===`percentage`,ht=e=>e===`image`||e===`url`,gt=e=>e===`length`||e===`size`||e===`bg-size`,_t=e=>e===`length`,vt=e=>e===`number`,yt=e=>e===`family-name`,bt=e=>e===`number`||e===`weight`,xt=e=>e===`shadow`,St=Ae(()=>{let e=I(`color`),t=I(`font`),n=I(`text`),r=I(`font-weight`),i=I(`tracking`),a=I(`leading`),o=I(`breakpoint`),s=I(`container`),c=I(`spacing`),l=I(`radius`),u=I(`shadow`),d=I(`inset-shadow`),f=I(`text-shadow`),p=I(`drop-shadow`),m=I(`blur`),h=I(`perspective`),g=I(`aspect`),_=I(`ease`),v=I(`animate`),y=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],b=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],x=()=>[...b(),z,R],S=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],C=()=>[`auto`,`contain`,`none`],w=()=>[z,R,c],T=()=>[Be,`full`,`auto`,...w()],E=()=>[Ve,`none`,`subgrid`,z,R],D=()=>[`auto`,{span:[`full`,Ve,z,R]},Ve,z,R],O=()=>[Ve,`auto`,z,R],ee=()=>[`auto`,`min`,`max`,`fr`,z,R],te=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],k=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],A=()=>[`auto`,...w()],j=()=>[Be,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...w()],ne=()=>[Be,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...w()],re=()=>[Be,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...w()],M=()=>[e,z,R],ie=()=>[...b(),st,nt,{position:[z,R]}],ae=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],oe=()=>[`auto`,`cover`,`contain`,ct,Ze,{size:[z,R]}],se=()=>[He,at,Qe],N=()=>[``,`none`,`full`,l,z,R],P=()=>[``,L,at,Qe],ce=()=>[`solid`,`dashed`,`dotted`,`double`],le=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],F=()=>[L,He,st,nt],ue=()=>[``,`none`,m,z,R],de=()=>[`none`,L,z,R],fe=()=>[`none`,L,z,R],pe=()=>[L,z,R],me=()=>[Be,`full`,...w()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[Ue],breakpoint:[Ue],color:[We],container:[Ue],"drop-shadow":[Ue],ease:[`in`,`out`,`in-out`],font:[Ye],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[Ue],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[Ue],shadow:[Ue],spacing:[`px`,L],text:[Ue],"text-shadow":[Ue],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,Be,R,z,g]}],container:[`container`],"container-type":[{"@container":[``,`normal`,`size`,z,R]}],"container-named":[Xe],columns:[{columns:[L,R,z,s]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"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:x()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:T()}],"inset-x":[{"inset-x":T()}],"inset-y":[{"inset-y":T()}],start:[{"inset-s":T(),start:T()}],end:[{"inset-e":T(),end:T()}],"inset-bs":[{"inset-bs":T()}],"inset-be":[{"inset-be":T()}],top:[{top:T()}],right:[{right:T()}],bottom:[{bottom:T()}],left:[{left:T()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[Ve,`auto`,z,R]}],basis:[{basis:[Be,`full`,`auto`,s,...w()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[L,Be,`auto`,`initial`,`none`,R]}],grow:[{grow:[``,L,z,R]}],shrink:[{shrink:[``,L,z,R]}],order:[{order:[Ve,`first`,`last`,`none`,z,R]}],"grid-cols":[{"grid-cols":E()}],"col-start-end":[{col:D()}],"col-start":[{"col-start":O()}],"col-end":[{"col-end":O()}],"grid-rows":[{"grid-rows":E()}],"row-start-end":[{row:D()}],"row-start":[{"row-start":O()}],"row-end":[{"row-end":O()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":ee()}],"auto-rows":[{"auto-rows":ee()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:[...te(),`normal`]}],"justify-items":[{"justify-items":[...k(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...k()]}],"align-content":[{content:[`normal`,...te()]}],"align-items":[{items:[...k(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...k(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":te()}],"place-items":[{"place-items":[...k(),`baseline`]}],"place-self":[{"place-self":[`auto`,...k()]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pbs:[{pbs:w()}],pbe:[{pbe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:A()}],mx:[{mx:A()}],my:[{my:A()}],ms:[{ms:A()}],me:[{me:A()}],mbs:[{mbs:A()}],mbe:[{mbe:A()}],mt:[{mt:A()}],mr:[{mr:A()}],mb:[{mb:A()}],ml:[{ml:A()}],"space-x":[{"space-x":w()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":w()}],"space-y-reverse":[`space-y-reverse`],size:[{size:j()}],"inline-size":[{inline:[`auto`,...ne()]}],"min-inline-size":[{"min-inline":[`auto`,...ne()]}],"max-inline-size":[{"max-inline":[`none`,...ne()]}],"block-size":[{block:[`auto`,...re()]}],"min-block-size":[{"min-block":[`auto`,...re()]}],"max-block-size":[{"max-block":[`none`,...re()]}],w:[{w:[s,`screen`,...j()]}],"min-w":[{"min-w":[s,`screen`,`none`,...j()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...j()]}],h:[{h:[`screen`,`lh`,...j()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...j()]}],"max-h":[{"max-h":[`screen`,`lh`,...j()]}],"font-size":[{text:[`base`,n,at,Qe]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,dt,et]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,He,R]}],"font-family":[{font:[ot,tt,t]}],"font-features":[{"font-features":[R]}],"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:[i,z,R]}],"line-clamp":[{"line-clamp":[L,`none`,z,$e]}],leading:[{leading:[a,...w()]}],"list-image":[{"list-image":[`none`,z,R]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,z,R]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:M()}],"text-color":[{text:M()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...ce(),`wavy`]}],"text-decoration-thickness":[{decoration:[L,`from-font`,`auto`,z,Qe]}],"text-decoration-color":[{decoration:M()}],"underline-offset":[{"underline-offset":[L,`auto`,z,R]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:w()}],"tab-size":[{tab:[Ve,z,R]}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,z,R]}],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`,z,R]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:ie()}],"bg-repeat":[{bg:ae()}],"bg-size":[{bg:oe()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},Ve,z,R],radial:[``,z,R],conic:[Ve,z,R]},lt,rt]}],"bg-color":[{bg:M()}],"gradient-from-pos":[{from:se()}],"gradient-via-pos":[{via:se()}],"gradient-to-pos":[{to:se()}],"gradient-from":[{from:M()}],"gradient-via":[{via:M()}],"gradient-to":[{to:M()}],rounded:[{rounded:N()}],"rounded-s":[{"rounded-s":N()}],"rounded-e":[{"rounded-e":N()}],"rounded-t":[{"rounded-t":N()}],"rounded-r":[{"rounded-r":N()}],"rounded-b":[{"rounded-b":N()}],"rounded-l":[{"rounded-l":N()}],"rounded-ss":[{"rounded-ss":N()}],"rounded-se":[{"rounded-se":N()}],"rounded-ee":[{"rounded-ee":N()}],"rounded-es":[{"rounded-es":N()}],"rounded-tl":[{"rounded-tl":N()}],"rounded-tr":[{"rounded-tr":N()}],"rounded-br":[{"rounded-br":N()}],"rounded-bl":[{"rounded-bl":N()}],"border-w":[{border:P()}],"border-w-x":[{"border-x":P()}],"border-w-y":[{"border-y":P()}],"border-w-s":[{"border-s":P()}],"border-w-e":[{"border-e":P()}],"border-w-bs":[{"border-bs":P()}],"border-w-be":[{"border-be":P()}],"border-w-t":[{"border-t":P()}],"border-w-r":[{"border-r":P()}],"border-w-b":[{"border-b":P()}],"border-w-l":[{"border-l":P()}],"divide-x":[{"divide-x":P()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":P()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...ce(),`hidden`,`none`]}],"divide-style":[{divide:[...ce(),`hidden`,`none`]}],"border-color":[{border:M()}],"border-color-x":[{"border-x":M()}],"border-color-y":[{"border-y":M()}],"border-color-s":[{"border-s":M()}],"border-color-e":[{"border-e":M()}],"border-color-bs":[{"border-bs":M()}],"border-color-be":[{"border-be":M()}],"border-color-t":[{"border-t":M()}],"border-color-r":[{"border-r":M()}],"border-color-b":[{"border-b":M()}],"border-color-l":[{"border-l":M()}],"divide-color":[{divide:M()}],"outline-style":[{outline:[...ce(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[L,z,R]}],"outline-w":[{outline:[``,L,at,Qe]}],"outline-color":[{outline:M()}],shadow:[{shadow:[``,`none`,u,ut,it]}],"shadow-color":[{shadow:M()}],"inset-shadow":[{"inset-shadow":[`none`,d,ut,it]}],"inset-shadow-color":[{"inset-shadow":M()}],"ring-w":[{ring:P()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:M()}],"ring-offset-w":[{"ring-offset":[L,Qe]}],"ring-offset-color":[{"ring-offset":M()}],"inset-ring-w":[{"inset-ring":P()}],"inset-ring-color":[{"inset-ring":M()}],"text-shadow":[{"text-shadow":[`none`,f,ut,it]}],"text-shadow-color":[{"text-shadow":M()}],opacity:[{opacity:[L,z,R]}],"mix-blend":[{"mix-blend":[...le(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":le()}],"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":[L]}],"mask-image-linear-from-pos":[{"mask-linear-from":F()}],"mask-image-linear-to-pos":[{"mask-linear-to":F()}],"mask-image-linear-from-color":[{"mask-linear-from":M()}],"mask-image-linear-to-color":[{"mask-linear-to":M()}],"mask-image-t-from-pos":[{"mask-t-from":F()}],"mask-image-t-to-pos":[{"mask-t-to":F()}],"mask-image-t-from-color":[{"mask-t-from":M()}],"mask-image-t-to-color":[{"mask-t-to":M()}],"mask-image-r-from-pos":[{"mask-r-from":F()}],"mask-image-r-to-pos":[{"mask-r-to":F()}],"mask-image-r-from-color":[{"mask-r-from":M()}],"mask-image-r-to-color":[{"mask-r-to":M()}],"mask-image-b-from-pos":[{"mask-b-from":F()}],"mask-image-b-to-pos":[{"mask-b-to":F()}],"mask-image-b-from-color":[{"mask-b-from":M()}],"mask-image-b-to-color":[{"mask-b-to":M()}],"mask-image-l-from-pos":[{"mask-l-from":F()}],"mask-image-l-to-pos":[{"mask-l-to":F()}],"mask-image-l-from-color":[{"mask-l-from":M()}],"mask-image-l-to-color":[{"mask-l-to":M()}],"mask-image-x-from-pos":[{"mask-x-from":F()}],"mask-image-x-to-pos":[{"mask-x-to":F()}],"mask-image-x-from-color":[{"mask-x-from":M()}],"mask-image-x-to-color":[{"mask-x-to":M()}],"mask-image-y-from-pos":[{"mask-y-from":F()}],"mask-image-y-to-pos":[{"mask-y-to":F()}],"mask-image-y-from-color":[{"mask-y-from":M()}],"mask-image-y-to-color":[{"mask-y-to":M()}],"mask-image-radial":[{"mask-radial":[z,R]}],"mask-image-radial-from-pos":[{"mask-radial-from":F()}],"mask-image-radial-to-pos":[{"mask-radial-to":F()}],"mask-image-radial-from-color":[{"mask-radial-from":M()}],"mask-image-radial-to-color":[{"mask-radial-to":M()}],"mask-image-radial-shape":[{"mask-radial":[`circle`,`ellipse`]}],"mask-image-radial-size":[{"mask-radial":[{closest:[`side`,`corner`],farthest:[`side`,`corner`]}]}],"mask-image-radial-pos":[{"mask-radial-at":b()}],"mask-image-conic-pos":[{"mask-conic":[L]}],"mask-image-conic-from-pos":[{"mask-conic-from":F()}],"mask-image-conic-to-pos":[{"mask-conic-to":F()}],"mask-image-conic-from-color":[{"mask-conic-from":M()}],"mask-image-conic-to-color":[{"mask-conic-to":M()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:ie()}],"mask-repeat":[{mask:ae()}],"mask-size":[{mask:oe()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,z,R]}],filter:[{filter:[``,`none`,z,R]}],blur:[{blur:ue()}],brightness:[{brightness:[L,z,R]}],contrast:[{contrast:[L,z,R]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,ut,it]}],"drop-shadow-color":[{"drop-shadow":M()}],grayscale:[{grayscale:[``,L,z,R]}],"hue-rotate":[{"hue-rotate":[L,z,R]}],invert:[{invert:[``,L,z,R]}],saturate:[{saturate:[L,z,R]}],sepia:[{sepia:[``,L,z,R]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,z,R]}],"backdrop-blur":[{"backdrop-blur":ue()}],"backdrop-brightness":[{"backdrop-brightness":[L,z,R]}],"backdrop-contrast":[{"backdrop-contrast":[L,z,R]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,L,z,R]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[L,z,R]}],"backdrop-invert":[{"backdrop-invert":[``,L,z,R]}],"backdrop-opacity":[{"backdrop-opacity":[L,z,R]}],"backdrop-saturate":[{"backdrop-saturate":[L,z,R]}],"backdrop-sepia":[{"backdrop-sepia":[``,L,z,R]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[``,`all`,`colors`,`opacity`,`shadow`,`transform`,`none`,z,R]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[L,`initial`,z,R]}],ease:[{ease:[`linear`,`initial`,_,z,R]}],delay:[{delay:[L,z,R]}],animate:[{animate:[`none`,v,z,R]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,z,R]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:de()}],"rotate-x":[{"rotate-x":de()}],"rotate-y":[{"rotate-y":de()}],"rotate-z":[{"rotate-z":de()}],scale:[{scale:fe()}],"scale-x":[{"scale-x":fe()}],"scale-y":[{"scale-y":fe()}],"scale-z":[{"scale-z":fe()}],"scale-3d":[`scale-3d`],skew:[{skew:pe()}],"skew-x":[{"skew-x":pe()}],"skew-y":[{"skew-y":pe()}],transform:[{transform:[z,R,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:me()}],"translate-x":[{"translate-x":me()}],"translate-y":[{"translate-y":me()}],"translate-z":[{"translate-z":me()}],"translate-none":[`translate-none`],zoom:[{zoom:[Ve,z,R]}],accent:[{accent:M()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:M()}],"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`,z,R]}],"field-sizing":[{"field-sizing":[`fixed`,`content`]}],"pointer-events":[{"pointer-events":[`auto`,`none`]}],resize:[{resize:[`none`,``,`y`,`x`]}],"scroll-behavior":[{scroll:[`auto`,`smooth`]}],"scrollbar-thumb-color":[{"scrollbar-thumb":M()}],"scrollbar-track-color":[{"scrollbar-track":M()}],"scrollbar-gutter":[{"scrollbar-gutter":[`auto`,`stable`,`both`]}],"scrollbar-w":[{scrollbar:[`auto`,`thin`,`none`]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mbs":[{"scroll-mbs":w()}],"scroll-mbe":[{"scroll-mbe":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pbs":[{"scroll-pbs":w()}],"scroll-pbe":[{"scroll-pbe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"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`,z,R]}],fill:[{fill:[`none`,...M()]}],"stroke-w":[{stroke:[L,at,Qe,$e]}],stroke:[{stroke:[`none`,...M()]}],"forced-color-adjust":[{"forced-color-adjust":[`auto`,`none`]}]},conflictingClassGroups:{"container-named":[`container-type`],overflow:[`overflow-x`,`overflow-y`],overscroll:[`overscroll-x`,`overscroll-y`],inset:[`inset-x`,`inset-y`,`inset-bs`,`inset-be`,`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`,`pbs`,`pbe`,`pt`,`pr`,`pb`,`pl`],px:[`pr`,`pl`],py:[`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mbs`,`mbe`,`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-bs`,`border-w-be`,`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-bs`,`border-color-be`,`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-mbs`,`scroll-mbe`,`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-pbs`,`scroll-pbe`,`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`]},postfixLookupClassGroups:[`container-type`],orderSensitiveModifiers:[`*`,`**`,`after`,`backdrop`,`before`,`details-content`,`file`,`first-letter`,`first-line`,`marker`,`placeholder`,`selection`]}});function B(...e){return St(ne(e))}var Ct=e=>typeof e==`boolean`?`${e}`:e===0?`0`:e,wt=ne,Tt=(e,t)=>n=>{if(t?.variants==null)return wt(e,n?.class,n?.className);let{variants:r,defaultVariants:i}=t,a=Object.keys(r).map(e=>{let t=n?.[e],a=i?.[e];if(t===null)return null;let o=Ct(t)||Ct(a);return r[e][o]}),o=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return r===void 0||(e[n]=r),e},{});return wt(e,a,t?.compoundVariants?.reduce((e,t)=>{let{class:n,className:r,...a}=t;return Object.entries(a).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...i,...o}[t]):{...i,...o}[t]===n})?[...e,n,r]:e},[]),n?.class,n?.className)},Et=Tt(`inline-flex items-center justify-center gap-2 whitespace-nowrap text-sm font-medium cursor-pointer transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0`,{variants:{variant:{default:`bg-button-primary-bg text-button-primary-fg shadow hover:bg-button-primary-bg-hover active:bg-button-primary-bg-active`,destructive:`bg-button-destructive-bg text-button-destructive-fg shadow-sm hover:bg-button-destructive-bg-hover active:bg-button-destructive-bg-active`,outline:`border border-button-outline-border bg-button-outline-bg shadow-sm hover:bg-button-outline-bg-hover hover:text-button-outline-fg-hover active:bg-button-outline-bg-hover/80`,secondary:`bg-button-secondary-bg text-button-secondary-fg shadow-sm hover:bg-button-secondary-bg-hover active:bg-button-secondary-bg-active`,ghost:`hover:bg-button-ghost-bg-hover hover:text-button-ghost-fg-hover active:bg-button-ghost-bg-hover/80`,link:`text-button-link-fg underline-offset-4 hover:underline`},size:{sm:`h-8 rounded-md px-3 text-xs`,default:`h-9 px-4 py-2 rounded-md`,lg:`h-10 rounded-md px-8`,icon:`h-9 w-9 rounded-full`}},defaultVariants:{variant:`default`,size:`default`}}),V=(0,u.forwardRef)(({className:e,variant:t,size:n,...r},i)=>(0,d.jsx)(`button`,{className:B(Et({variant:t,size:n,className:e})),ref:i,...r}));V.displayName=`Button`;var Dt=(0,u.forwardRef)(({className:e,type:t,...n},r)=>(0,d.jsx)(`input`,{type:t,className:B(`flex h-10 w-full rounded-[var(--ord-radius)] border border-input-border bg-input-bg px-3 py-2 text-sm text-input-fg ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-input-placeholder focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50`,e),ref:r,...n}));Dt.displayName=`Input`;var Ot=(0,u.forwardRef)(({className:e,...t},n)=>(0,d.jsx)(`textarea`,{className:B(`flex min-h-[80px] w-full rounded-[var(--ord-radius)] border border-input bg-background px-3 py-2 text-sm text-foreground ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50`,e),ref:n,...t}));Ot.displayName=`Textarea`;var kt=()=>(0,d.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`16`,height:`16`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,children:[(0,d.jsx)(`path`,{d:`M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z`}),(0,d.jsx)(`circle`,{cx:`12`,cy:`12`,r:`3`})]}),At=()=>(0,d.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`16`,height:`16`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,children:[(0,d.jsx)(`path`,{d:`M9.88 9.88a3 3 0 1 0 4.24 4.24`}),(0,d.jsx)(`path`,{d:`M10.73 5.08A10.43 10.43 0 0 1 12 5c7 0 10 7 10 7a13.16 13.16 0 0 1-1.67 2.68`}),(0,d.jsx)(`path`,{d:`M6.61 6.61A13.526 13.526 0 0 0 2 12s3 7 10 7a9.74 9.74 0 0 0 5.39-1.61`}),(0,d.jsx)(`line`,{x1:`2`,x2:`22`,y1:`2`,y2:`22`})]}),jt=(0,u.forwardRef)(({className:e,...t},n)=>{let[r,i]=(0,u.useState)(!1);return(0,d.jsxs)(`div`,{className:`relative`,children:[(0,d.jsx)(`input`,{type:r?`text`:`password`,className:B(`flex h-10 w-full rounded-[var(--ord-radius)] border border-input bg-background px-3 py-2 pr-10 text-sm text-foreground ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50`,e),ref:n,...t}),(0,d.jsx)(`button`,{type:`button`,className:`absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground hover:text-foreground focus-visible:outline-none`,onClick:()=>i(e=>!e),tabIndex:-1,"aria-label":r?`Hide password`:`Show password`,children:r?(0,d.jsx)(At,{}):(0,d.jsx)(kt,{})})]})});jt.displayName=`PasswordInput`;var Mt=()=>(0,d.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`14`,height:`14`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`3`,strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,d.jsx)(`polyline`,{points:`20 6 9 17 4 12`})}),Nt=(0,u.forwardRef)(({className:e,children:t,...n},r)=>(0,d.jsx)(f.Checkbox.Root,{ref:r,className:B(`inline-flex h-4 w-4 shrink-0 cursor-pointer items-center justify-center rounded-sm border border-checkbox-border ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[checked]:bg-checkbox-bg-checked data-[checked]:text-checkbox-fg-checked`,e),...n,children:t}));Nt.displayName=`Checkbox.Root`;var Pt=(0,u.forwardRef)(({className:e,...t},n)=>(0,d.jsx)(f.Checkbox.Indicator,{ref:n,className:B(`flex items-center justify-center text-current`,e),...t,children:(0,d.jsx)(Mt,{})}));Pt.displayName=`Checkbox.Indicator`;var Ft=Object.assign({},{Root:Nt,Indicator:Pt});function It({className:e,...t}){return(0,d.jsx)(p.RadioGroup,{className:B(`flex flex-col gap-2`,e),...t})}It.displayName=`RadioGroup`;var Lt=(0,u.forwardRef)(({className:e,...t},n)=>(0,d.jsx)(m.Field.Root,{ref:n,className:B(`flex flex-col gap-1.5`,e),...t}));Lt.displayName=`Field.Root`;var Rt=(0,u.forwardRef)(({className:e,...t},n)=>(0,d.jsx)(m.Field.Label,{ref:n,className:B(`text-sm font-medium leading-none text-foreground peer-disabled:cursor-not-allowed peer-disabled:opacity-70`,e),...t}));Rt.displayName=`Field.Label`;var zt=(0,u.forwardRef)(({className:e,...t},n)=>(0,d.jsx)(m.Field.Description,{ref:n,className:B(`text-sm text-muted-foreground`,e),...t}));zt.displayName=`Field.Description`;var Bt=(0,u.forwardRef)(({className:e,...t},n)=>(0,d.jsx)(m.Field.Error,{ref:n,className:B(`text-sm font-medium text-destructive`,e),...t}));Bt.displayName=`Field.Error`;var Vt=Object.assign({},{Root:Lt,Label:Rt,Description:zt,Error:Bt});function Ht(e){return(0,d.jsx)(h.Combobox.Root,{...e})}Ht.displayName=`Combobox.Root`;var Ut=(0,u.forwardRef)(({className:e,...t},n)=>(0,d.jsx)(h.Combobox.Input,{ref:n,className:B(`flex h-10 w-full rounded-[var(--ord-radius)] border border-input-border bg-input-bg px-3 py-2 text-sm text-input-fg ring-offset-background placeholder:text-input-placeholder focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50`,e),...t}));Ut.displayName=`Combobox.Input`;function Wt(e){let t=k();return(0,d.jsx)(h.Combobox.Portal,{container:t,...e})}Wt.displayName=`Combobox.Portal`;var Gt=(0,u.forwardRef)(({className:e,...t},n)=>(0,d.jsx)(h.Combobox.Positioner,{ref:n,align:`start`,className:B(`outline-none`,e),...t}));Gt.displayName=`Combobox.Positioner`;var Kt=(0,u.forwardRef)(({className:e,...t},n)=>(0,d.jsx)(h.Combobox.Popup,{ref:n,className:B(`bg-combobox-popup-bg text-combobox-popup-fg border border-combobox-popup-border rounded-[var(--ord-radius)] shadow-md p-1 overflow-hidden min-w-[var(--anchor-width)]`,e),...t}));Kt.displayName=`Combobox.Popup`;var qt=(0,u.forwardRef)(({className:e,...t},n)=>(0,d.jsx)(h.Combobox.Item,{ref:n,className:B(`relative flex w-full cursor-pointer select-none items-center rounded-sm pl-8 pr-2 py-1.5 text-sm outline-none data-[highlighted]:bg-combobox-item-bg-hover data-[highlighted]:text-combobox-item-fg-hover data-[selected]:bg-combobox-item-bg-hover data-[selected]:text-combobox-item-fg-hover data-[disabled]:pointer-events-none data-[disabled]:opacity-50`,e),...t}));qt.displayName=`Combobox.Item`;var Jt=(0,u.forwardRef)(({className:e,children:t,...n},r)=>(0,d.jsx)(h.Combobox.ItemIndicator,{ref:r,className:B(`absolute left-2 flex h-3.5 w-3.5 items-center justify-center`,e),...n,children:t??(0,d.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`14`,height:`14`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,d.jsx)(`polyline`,{points:`20 6 9 17 4 12`})})}));Jt.displayName=`Combobox.ItemIndicator`;var Yt=(0,u.forwardRef)(({className:e,...t},n)=>(0,d.jsx)(h.Combobox.Empty,{ref:n,className:B(`px-2 py-4 text-center text-sm text-muted-foreground`,e),...t}));Yt.displayName=`Combobox.Empty`;var Xt=(0,u.forwardRef)(({className:e,...t},n)=>(0,d.jsx)(h.Combobox.Group,{ref:n,className:B(`p-1`,e),...t}));Xt.displayName=`Combobox.Group`;var Zt=(0,u.forwardRef)(({className:e,...t},n)=>(0,d.jsx)(h.Combobox.GroupLabel,{ref:n,className:B(`px-2 py-1.5 text-xs font-semibold text-muted-foreground`,e),...t}));Zt.displayName=`Combobox.GroupLabel`;var Qt=Object.assign({},{Root:Ht,Input:Ut,Portal:Wt,Positioner:Gt,Popup:Kt,Item:qt,ItemIndicator:Jt,Empty:Yt,Group:Xt,GroupLabel:Zt}),$t=(0,u.forwardRef)(({items:e,placeholder:t,maxVisibleItems:n=8,value:r,defaultValue:i,onChange:a,disabled:o,className:s,...c},l)=>{let[f,p]=(0,u.useState)(``),m=(0,u.useMemo)(()=>e.filter(e=>e.label.toLowerCase().includes(f.toLowerCase())),[e,f]),h=`${n*36}px`;return(0,d.jsx)(`div`,{ref:l,className:B(`w-full`,s),...c,children:(0,d.jsxs)(Qt.Root,{value:r,defaultValue:i,onValueChange:e=>{a?.(e)},onInputValueChange:e=>{p(e)},disabled:o,children:[(0,d.jsx)(Qt.Input,{placeholder:t}),(0,d.jsx)(Qt.Portal,{children:(0,d.jsx)(Qt.Positioner,{children:(0,d.jsx)(Qt.Popup,{className:`overflow-y-auto`,style:{maxHeight:h},children:m.length===0?(0,d.jsx)(Qt.Empty,{children:`No results`}):m.map(e=>(0,d.jsxs)(Qt.Item,{value:e.value,children:[(0,d.jsx)(Qt.ItemIndicator,{}),e.label]},e.value))})})})]})})});$t.displayName=`SimpleCombobox`;function en(e){return(0,d.jsx)(g.Select.Root,{...e})}en.displayName=`Select.Root`;var tn=(0,u.forwardRef)(({className:e,...t},n)=>(0,d.jsx)(g.Select.Trigger,{ref:n,className:B(`flex h-10 w-full items-center justify-between rounded-[var(--ord-radius)] border border-select-trigger-border bg-select-trigger-bg px-3 py-2 text-sm text-select-trigger-fg ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50`,e),...t}));tn.displayName=`Select.Trigger`;var nn=(0,u.forwardRef)(({className:e,...t},n)=>(0,d.jsx)(g.Select.Value,{ref:n,className:B(`text-sm truncate`,e),...t}));nn.displayName=`Select.Value`;var rn=(0,u.forwardRef)(({className:e,children:t,...n},r)=>(0,d.jsx)(g.Select.Icon,{ref:r,className:B(`flex shrink-0 text-muted-foreground`,e),...n,children:t??(0,d.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`16`,height:`16`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,d.jsx)(`path`,{d:`m6 9 6 6 6-6`})})}));rn.displayName=`Select.Icon`;function an(e){let t=k();return(0,d.jsx)(g.Select.Portal,{container:t,...e})}an.displayName=`Select.Portal`;var on=(0,u.forwardRef)(({className:e,...t},n)=>(0,d.jsx)(g.Select.Positioner,{ref:n,side:`bottom`,align:`start`,sideOffset:4,className:B(`outline-none z-50`,e),...t}));on.displayName=`Select.Positioner`;var sn=(0,u.forwardRef)(({className:e,...t},n)=>(0,d.jsx)(g.Select.Popup,{ref:n,className:B(`bg-select-popup-bg text-select-popup-fg border border-select-popup-border rounded-[var(--ord-radius)] shadow-md p-1 overflow-hidden min-w-[var(--anchor-width)]`,e),...t}));sn.displayName=`Select.Popup`;var cn=(0,u.forwardRef)(({className:e,...t},n)=>(0,d.jsx)(g.Select.Item,{ref:n,className:B(`relative flex w-full cursor-pointer select-none items-center rounded-sm pl-8 pr-2 py-1.5 text-sm outline-none data-[highlighted]:bg-select-item-bg-hover data-[highlighted]:text-select-item-fg-hover data-[disabled]:pointer-events-none data-[disabled]:opacity-50`,e),...t}));cn.displayName=`Select.Item`;var ln=(0,u.forwardRef)(({className:e,children:t,...n},r)=>(0,d.jsx)(g.Select.ItemIndicator,{ref:r,className:B(`absolute left-2 flex h-3.5 w-3.5 items-center justify-center`,e),...n,children:t??(0,d.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`14`,height:`14`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,d.jsx)(`polyline`,{points:`20 6 9 17 4 12`})})}));ln.displayName=`Select.ItemIndicator`;var un=(0,u.forwardRef)((e,t)=>(0,d.jsx)(g.Select.ItemText,{ref:t,...e}));un.displayName=`Select.ItemText`;var dn=(0,u.forwardRef)(({className:e,...t},n)=>(0,d.jsx)(g.Select.Group,{ref:n,className:B(`p-1`,e),...t}));dn.displayName=`Select.Group`;var fn=(0,u.forwardRef)(({className:e,...t},n)=>(0,d.jsx)(g.Select.GroupLabel,{ref:n,className:B(`px-2 py-1.5 text-xs font-semibold text-muted-foreground`,e),...t}));fn.displayName=`Select.GroupLabel`;var pn=(0,u.forwardRef)(({className:e,children:t,...n},r)=>(0,d.jsx)(g.Select.ScrollUpArrow,{ref:r,className:B(`flex items-center justify-center py-1 text-muted-foreground`,e),...n,children:t??(0,d.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`12`,height:`12`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,d.jsx)(`path`,{d:`m18 15-6-6-6 6`})})}));pn.displayName=`Select.ScrollUpArrow`;var mn=(0,u.forwardRef)(({className:e,children:t,...n},r)=>(0,d.jsx)(g.Select.ScrollDownArrow,{ref:r,className:B(`flex items-center justify-center py-1 text-muted-foreground`,e),...n,children:t??(0,d.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`12`,height:`12`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,d.jsx)(`path`,{d:`m6 9 6 6 6-6`})})}));mn.displayName=`Select.ScrollDownArrow`;var H=Object.assign({},{Root:en,Trigger:tn,Value:nn,Icon:rn,Portal:an,Positioner:on,Popup:sn,Item:cn,ItemIndicator:ln,ItemText:un,Group:dn,GroupLabel:fn,ScrollUpArrow:pn,ScrollDownArrow:mn});function hn(e){return`items`in e}var gn=(0,u.forwardRef)(({items:e,placeholder:t,value:n,defaultValue:r,onChange:i,disabled:a,className:o,...s},c)=>{let l=(0,u.useMemo)(()=>{let t={};for(let n of e)if(hn(n))for(let e of n.items)t[e.value]=e.label;else t[n.value]=n.label;return t},[e]);return(0,d.jsx)(`div`,{ref:c,className:B(`w-full`,o),...s,children:(0,d.jsxs)(H.Root,{value:n,defaultValue:r,onValueChange:e=>{i?.(e)},disabled:a,items:l,children:[(0,d.jsxs)(H.Trigger,{children:[(0,d.jsx)(H.Value,{placeholder:t}),(0,d.jsx)(H.Icon,{})]}),(0,d.jsx)(H.Portal,{children:(0,d.jsx)(H.Positioner,{children:(0,d.jsxs)(H.Popup,{children:[(0,d.jsx)(H.ScrollUpArrow,{}),e.map(e=>hn(e)?(0,d.jsxs)(H.Group,{children:[(0,d.jsx)(H.GroupLabel,{children:e.label}),e.items.map(e=>(0,d.jsxs)(H.Item,{value:e.value,disabled:e.disabled,children:[(0,d.jsx)(H.ItemIndicator,{}),(0,d.jsx)(H.ItemText,{children:e.label})]},e.value))]},e.label):(0,d.jsxs)(H.Item,{value:e.value,disabled:e.disabled,children:[(0,d.jsx)(H.ItemIndicator,{}),(0,d.jsx)(H.ItemText,{children:e.label})]},e.value)),(0,d.jsx)(H.ScrollDownArrow,{})]})})})]})})});gn.displayName=`SimpleSelect`;var _n=(0,u.forwardRef)(({className:e,children:t,...n},r)=>(0,d.jsx)(_.Switch.Root,{ref:r,className:B(`peer inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[checked]:bg-switch-track-on data-[unchecked]:bg-switch-track-off`,e),...n,children:t}));_n.displayName=`Switch.Root`;var vn=(0,u.forwardRef)(({className:e,...t},n)=>(0,d.jsx)(_.Switch.Thumb,{ref:n,className:B(`pointer-events-none block h-4 w-4 rounded-full bg-switch-thumb shadow-lg ring-0 transition-transform data-[checked]:translate-x-4 data-[unchecked]:translate-x-0`,e),...t}));vn.displayName=`Switch.Thumb`;var yn=Object.assign({},{Root:_n,Thumb:vn});function bn(e){return(0,d.jsx)(v.Dialog.Root,{...e})}bn.displayName=`Dialog.Root`;var xn=(0,u.forwardRef)(({className:e,...t},n)=>(0,d.jsx)(v.Dialog.Trigger,{ref:n,className:B(``,e),...t}));xn.displayName=`Dialog.Trigger`;function Sn(e){let t=k();return(0,d.jsx)(v.Dialog.Portal,{container:t,...e})}Sn.displayName=`Dialog.Portal`;var Cn=(0,u.forwardRef)(({className:e,...t},n)=>(0,d.jsx)(v.Dialog.Backdrop,{ref:n,className:B(`fixed inset-0 z-50 bg-dialog-backdrop data-[open]:animate-ord-fade-in data-[closed]:animate-ord-fade-out`,e),...t}));Cn.displayName=`Dialog.Backdrop`;var wn=(0,u.forwardRef)(({className:e,...t},n)=>(0,d.jsx)(v.Dialog.Popup,{ref:n,className:B(`fixed left-1/2 top-1/2 z-50 -translate-x-1/2 -translate-y-1/2 w-full max-w-lg rounded-[var(--ord-radius)] border border-dialog-border bg-dialog-bg text-dialog-fg p-6 shadow-lg outline-none data-[open]:animate-ord-dialog-in data-[closed]:animate-ord-dialog-out`,e),...t}));wn.displayName=`Dialog.Popup`;var Tn=(0,u.forwardRef)(({className:e,...t},n)=>(0,d.jsx)(v.Dialog.Title,{ref:n,className:B(`text-lg font-semibold leading-none tracking-tight`,e),...t}));Tn.displayName=`Dialog.Title`;var En=(0,u.forwardRef)(({className:e,...t},n)=>(0,d.jsx)(v.Dialog.Description,{ref:n,className:B(`mt-1.5 text-sm text-dialog-description-fg`,e),...t}));En.displayName=`Dialog.Description`;var Dn=(0,u.forwardRef)(({className:e,...t},n)=>(0,d.jsx)(v.Dialog.Close,{ref:n,className:B(``,e),...t}));Dn.displayName=`Dialog.Close`;var On=Object.assign({},{Root:bn,Trigger:xn,Portal:Sn,Backdrop:Cn,Popup:wn,Title:Tn,Description:En,Close:Dn}),kn=(0,u.forwardRef)(({trigger:e,title:t,description:n,children:r,footer:i,open:a,defaultOpen:o,onOpenChange:s,showClose:c=!0,...l},u)=>(0,d.jsxs)(On.Root,{open:a,defaultOpen:o,onOpenChange:s,children:[e!==null&&(0,d.jsx)(On.Trigger,{render:e}),(0,d.jsxs)(On.Portal,{children:[(0,d.jsx)(On.Backdrop,{}),(0,d.jsxs)(On.Popup,{ref:u,...l,children:[(t!==null||n!==null)&&(0,d.jsxs)(`div`,{className:`mb-4`,children:[t!==null&&(0,d.jsx)(On.Title,{children:t}),n!==null&&(0,d.jsx)(On.Description,{children:n})]}),r,i!==null&&(0,d.jsx)(`div`,{className:`mt-6 flex justify-end gap-2`,children:i}),c&&(0,d.jsx)(On.Close,{"aria-label":`Close`,className:`absolute right-4 top-4 inline-flex h-6 w-6 items-center justify-center rounded-sm text-muted-foreground opacity-70 transition-opacity hover:opacity-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring`,children:(0,d.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`14`,height:`14`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,children:[(0,d.jsx)(`path`,{d:`M18 6 6 18`}),(0,d.jsx)(`path`,{d:`m6 6 12 12`})]})})]})]})]}));kn.displayName=`SimpleDialog`;function An(e){return(0,d.jsx)(v.Dialog.Root,{...e})}An.displayName=`Sheet.Root`;var jn=(0,u.forwardRef)(({className:e,...t},n)=>(0,d.jsx)(v.Dialog.Trigger,{ref:n,className:B(``,e),...t}));jn.displayName=`Sheet.Trigger`;function Mn(e){let t=k();return(0,d.jsx)(v.Dialog.Portal,{container:t,...e})}Mn.displayName=`Sheet.Portal`;var Nn=(0,u.forwardRef)(({className:e,...t},n)=>(0,d.jsx)(v.Dialog.Backdrop,{ref:n,className:B(`fixed inset-0 z-50 bg-sheet-backdrop data-[open]:animate-ord-fade-in data-[closed]:animate-ord-fade-out`,e),...t}));Nn.displayName=`Sheet.Backdrop`;var Pn=Tt(`fixed z-50 bg-sheet-bg text-sheet-fg shadow-lg outline-none flex flex-col gap-4 p-6`,{variants:{side:{top:`inset-x-0 top-0 border-b border-sheet-border w-full data-[open]:animate-ord-slide-in-from-top data-[closed]:animate-ord-slide-out-to-top`,bottom:`inset-x-0 bottom-0 border-t border-sheet-border w-full data-[open]:animate-ord-slide-in-from-bottom data-[closed]:animate-ord-slide-out-to-bottom`,left:`inset-y-0 left-0 border-r border-sheet-border h-full w-3/4 sm:max-w-sm data-[open]:animate-ord-slide-in-from-left data-[closed]:animate-ord-slide-out-to-left`,right:`inset-y-0 right-0 border-l border-sheet-border h-full w-3/4 sm:max-w-sm data-[open]:animate-ord-slide-in-from-right data-[closed]:animate-ord-slide-out-to-right`}},defaultVariants:{side:`right`}}),Fn=(0,u.forwardRef)(({className:e,side:t,...n},r)=>(0,d.jsx)(v.Dialog.Popup,{ref:r,className:B(Pn({side:t,className:e})),...n}));Fn.displayName=`Sheet.Popup`;var In=(0,u.forwardRef)(({className:e,...t},n)=>(0,d.jsx)(v.Dialog.Title,{ref:n,className:B(`text-lg font-semibold leading-none tracking-tight`,e),...t}));In.displayName=`Sheet.Title`;var Ln=(0,u.forwardRef)(({className:e,...t},n)=>(0,d.jsx)(v.Dialog.Description,{ref:n,className:B(`mt-1.5 text-sm text-sheet-description-fg`,e),...t}));Ln.displayName=`Sheet.Description`;var Rn=(0,u.forwardRef)(({className:e,...t},n)=>(0,d.jsx)(v.Dialog.Close,{ref:n,className:B(``,e),...t}));Rn.displayName=`Sheet.Close`;var zn=Object.assign({},{Root:An,Trigger:jn,Portal:Mn,Backdrop:Nn,Popup:Fn,Title:In,Description:Ln,Close:Rn}),Bn=(0,u.forwardRef)(({trigger:e,title:t,description:n,children:r,footer:i,side:a=`right`,open:o,defaultOpen:s,onOpenChange:c,showClose:l=!0,...u},f)=>(0,d.jsxs)(zn.Root,{open:o,defaultOpen:s,onOpenChange:c,children:[e!==null&&(0,d.jsx)(zn.Trigger,{render:e}),(0,d.jsxs)(zn.Portal,{children:[(0,d.jsx)(zn.Backdrop,{}),(0,d.jsxs)(zn.Popup,{ref:f,side:a,...u,children:[(t!==null||n!==null)&&(0,d.jsxs)(`div`,{children:[t!==null&&(0,d.jsx)(zn.Title,{children:t}),n!==null&&(0,d.jsx)(zn.Description,{children:n})]}),(0,d.jsx)(`div`,{className:`flex-1 overflow-y-auto px-1 -mx-1`,children:r}),i!==null&&(0,d.jsx)(`div`,{className:`flex justify-end gap-2`,children:i}),l&&(0,d.jsx)(zn.Close,{"aria-label":`Close`,className:`absolute right-4 top-4 inline-flex h-6 w-6 items-center justify-center rounded-sm text-muted-foreground opacity-70 transition-opacity hover:opacity-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring`,children:(0,d.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`14`,height:`14`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,children:[(0,d.jsx)(`path`,{d:`M18 6 6 18`}),(0,d.jsx)(`path`,{d:`m6 6 12 12`})]})})]})]})]}));Bn.displayName=`SimpleSheet`;var Vn=(0,u.forwardRef)(({className:e,...t},n)=>(0,d.jsx)(`div`,{ref:n,className:B(`bg-card-bg text-card-fg border border-card-border rounded-[var(--ord-radius)] shadow-sm`,e),...t}));Vn.displayName=`Card`;var Hn=(0,u.forwardRef)(({className:e,...t},n)=>(0,d.jsx)(`div`,{ref:n,className:B(`flex flex-col space-y-1.5 p-6`,e),...t}));Hn.displayName=`Card.Header`;var Un=(0,u.forwardRef)(({className:e,...t},n)=>(0,d.jsx)(`h3`,{ref:n,className:B(`text-2xl font-semibold leading-none tracking-tight`,e),...t}));Un.displayName=`Card.Title`;var Wn=(0,u.forwardRef)(({className:e,...t},n)=>(0,d.jsx)(`p`,{ref:n,className:B(`text-sm text-muted-foreground`,e),...t}));Wn.displayName=`Card.Description`;var Gn=(0,u.forwardRef)(({className:e,...t},n)=>(0,d.jsx)(`div`,{ref:n,className:B(`p-6 pt-0`,e),...t}));Gn.displayName=`Card.Content`;var Kn=(0,u.forwardRef)(({className:e,...t},n)=>(0,d.jsx)(`div`,{ref:n,className:B(`flex items-center p-6 pt-0`,e),...t}));Kn.displayName=`Card.Footer`;var qn=Object.assign(Vn,{Header:Hn,Title:Un,Description:Wn,Content:Gn,Footer:Kn}),Jn=(0,u.forwardRef)(({title:e,description:t,content:n,buttons:r,className:i,...a},o)=>(0,d.jsxs)(qn,{ref:o,className:B(i),...a,children:[(e||t)&&(0,d.jsxs)(qn.Header,{children:[e&&(0,d.jsx)(qn.Title,{children:e}),t&&(0,d.jsx)(qn.Description,{children:t})]}),n&&(0,d.jsx)(qn.Content,{children:n}),r&&(0,d.jsx)(qn.Footer,{children:r})]}));Jn.displayName=`SimpleCard`;var Yn=(0,u.forwardRef)(({className:e,...t},n)=>(0,d.jsx)(y.Tabs.Root,{ref:n,className:B(`w-full`,e),...t}));Yn.displayName=`Tabs.Root`;var Xn=(0,u.forwardRef)(({className:e,...t},n)=>(0,d.jsx)(y.Tabs.List,{ref:n,className:B(`inline-flex h-9 w-full items-center justify-start rounded-lg p-[3px] text-tabs-fg gap-1 overflow-x-auto [&::-webkit-scrollbar]:hidden [-ms-overflow-style:none] [scrollbar-width:none]`,e),...t}));Xn.displayName=`Tabs.List`;var Zn=(0,u.forwardRef)(({className:e,...t},n)=>(0,d.jsx)(y.Tabs.Tab,{ref:n,className:B(`inline-flex items-center justify-center gap-1.5 whitespace-nowrap rounded-md px-2.5 py-1.5 text-sm font-medium cursor-pointer transition-[color,box-shadow] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 text-tabs-fg hover:text-tabs-active-fg data-[active]:bg-tabs-active-bg data-[active]:text-tabs-active-fg data-[active]:shadow-sm`,e),...t}));Zn.displayName=`Tabs.Tab`;var Qn=(0,u.forwardRef)(({className:e,...t},n)=>(0,d.jsx)(y.Tabs.Panel,{ref:n,className:B(`mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2`,e),...t}));Qn.displayName=`Tabs.Panel`;var $n=(0,u.forwardRef)(({className:e,...t},n)=>(0,d.jsx)(y.Tabs.Indicator,{ref:n,className:B(`absolute bottom-0 h-0.5 bg-tabs-indicator transition-all duration-200`,e),...t}));$n.displayName=`Tabs.Indicator`;var er=Object.assign({},{Root:Yn,List:Xn,Tab:Zn,Panel:Qn,Indicator:$n}),tr=(0,u.forwardRef)(({className:e,orientation:t=`horizontal`,...n},r)=>(0,d.jsx)(b.Separator,{ref:r,orientation:t,className:B(`shrink-0 bg-border`,t===`horizontal`?`h-px w-full`:`h-full w-px`,e),...n}));tr.displayName=`Separator`;var nr=Tt(`inline-flex items-center rounded-full font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2`,{variants:{variant:{default:`bg-badge-default-bg text-badge-default-fg`,secondary:`bg-badge-secondary-bg text-badge-secondary-fg`,destructive:`bg-badge-destructive-bg text-badge-destructive-fg`,outline:`border border-badge-outline-border text-badge-outline-fg`,success:`bg-badge-success-bg text-badge-success-fg`,warning:`bg-badge-warning-bg text-badge-warning-fg`,highlight:`bg-badge-highlight-bg text-badge-highlight-fg border border-badge-highlight-border`},size:{sm:`px-2 py-0.5 text-[10px]`,default:`px-2.5 py-0.5 text-xs`}},defaultVariants:{variant:`default`,size:`default`}}),rr=(0,u.forwardRef)(({className:e,variant:t,size:n,...r},i)=>(0,d.jsx)(`span`,{ref:i,className:B(nr({variant:t,size:n,className:e})),...r}));rr.displayName=`Badge`;function ir(e){return(0,d.jsx)(x.Tooltip.Provider,{...e})}ir.displayName=`Tooltip.Provider`;function ar(e){return(0,d.jsx)(x.Tooltip.Root,{...e})}ar.displayName=`Tooltip.Root`;var or=(0,u.forwardRef)(({className:e,...t},n)=>(0,d.jsx)(x.Tooltip.Trigger,{ref:n,className:B(``,e),...t}));or.displayName=`Tooltip.Trigger`;function sr(e){let t=k();return(0,d.jsx)(x.Tooltip.Portal,{container:t,...e})}sr.displayName=`Tooltip.Portal`;var cr=(0,u.forwardRef)(({className:e,...t},n)=>(0,d.jsx)(x.Tooltip.Positioner,{ref:n,className:B(`outline-none`,e),...t}));cr.displayName=`Tooltip.Positioner`;var lr=(0,u.forwardRef)(({className:e,...t},n)=>(0,d.jsx)(x.Tooltip.Popup,{ref:n,className:B(`z-50 bg-tooltip-bg text-tooltip-fg px-2 py-1 text-xs rounded-[var(--ord-radius)] shadow-md data-[open]:animate-in data-[open]:fade-in-0 data-[closed]:animate-out data-[closed]:fade-out-0`,e),...t}));lr.displayName=`Tooltip.Popup`;var ur=(0,u.forwardRef)(({className:e,...t},n)=>(0,d.jsx)(x.Tooltip.Arrow,{ref:n,className:B(`fill-tooltip-bg`,e),...t}));ur.displayName=`Tooltip.Arrow`;var dr=Object.assign({},{Provider:ir,Root:ar,Trigger:or,Portal:sr,Positioner:cr,Popup:lr,Arrow:ur}),fr=Tt(`relative inline-flex shrink-0 overflow-hidden rounded-full`,{variants:{size:{sm:`h-8 w-8`,default:`h-10 w-10`,lg:`h-12 w-12`}},defaultVariants:{size:`default`}}),pr=(0,u.forwardRef)(({className:e,size:t,...n},r)=>(0,d.jsx)(S.Avatar.Root,{ref:r,className:B(fr({size:t,className:e})),...n}));pr.displayName=`Avatar.Root`;var mr=(0,u.forwardRef)(({className:e,...t},n)=>(0,d.jsx)(S.Avatar.Image,{ref:n,className:B(`aspect-square h-full w-full object-cover`,e),...t}));mr.displayName=`Avatar.Image`;var hr=(0,u.forwardRef)(({className:e,...t},n)=>(0,d.jsx)(S.Avatar.Fallback,{ref:n,className:B(`flex h-full w-full items-center justify-center rounded-full bg-avatar-fallback-bg text-avatar-fallback-fg text-sm font-medium`,e),...t}));hr.displayName=`Avatar.Fallback`;var gr=Object.assign({},{Root:pr,Image:mr,Fallback:hr}),_r=(0,u.forwardRef)(({className:e,...t},n)=>(0,d.jsx)(C.Progress.Root,{ref:n,className:B(`flex w-full flex-col gap-1`,e),...t}));_r.displayName=`Progress.Root`;var vr=(0,u.forwardRef)(({className:e,...t},n)=>(0,d.jsx)(C.Progress.Track,{ref:n,className:B(`relative h-2 w-full overflow-hidden rounded-full bg-progress-track`,e),...t}));vr.displayName=`Progress.Track`;var yr=(0,u.forwardRef)(({className:e,...t},n)=>(0,d.jsx)(C.Progress.Indicator,{ref:n,className:B(`h-full rounded-full bg-progress-indicator transition-[width] data-[state=indeterminate]:animate-progress-indeterminate`,e),...t}));yr.displayName=`Progress.Indicator`;var br=Object.assign({},{Root:_r,Track:vr,Indicator:yr}),xr=Tt(`animate-spin text-spinner-fg`,{variants:{size:{sm:`h-4 w-4`,default:`h-6 w-6`,lg:`h-8 w-8`}},defaultVariants:{size:`default`}}),Sr=(0,u.forwardRef)(({className:e,size:t,...n},r)=>(0,d.jsxs)(`svg`,{ref:r,role:`status`,"aria-label":`Loading`,xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,className:B(xr({size:t,className:e})),...n,children:[(0,d.jsx)(`circle`,{className:`opacity-25`,cx:`12`,cy:`12`,r:`10`,stroke:`currentColor`,strokeWidth:`4`}),(0,d.jsx)(`path`,{className:`opacity-75`,fill:`currentColor`,d:`M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z`})]}));Sr.displayName=`Spinner`;var Cr=(0,u.forwardRef)(({className:e,selected:t,...n},r)=>(0,d.jsx)(`div`,{ref:r,className:B(`bg-card-bg text-card-foreground border border-border rounded-[var(--ord-radius)] shadow-sm p-4 cursor-pointer transition-colors hover:border-primary/50 hover:bg-accent/30`,t&&`border-primary bg-accent/20`,e),...n}));Cr.displayName=`ConnectionCard`;var wr=(0,u.forwardRef)(({className:e,...t},n)=>(0,d.jsx)(`div`,{ref:n,className:B(`flex items-center justify-between gap-2`,e),...t}));wr.displayName=`ConnectionCard.Header`;var Tr=(0,u.forwardRef)(({className:e,...t},n)=>(0,d.jsx)(`h3`,{ref:n,className:B(`text-sm font-semibold leading-tight`,e),...t}));Tr.displayName=`ConnectionCard.Title`;var Er=(0,u.forwardRef)(({className:e,...t},n)=>(0,d.jsx)(`p`,{ref:n,className:B(`text-xs text-muted-foreground mt-1`,e),...t}));Er.displayName=`ConnectionCard.Description`;var Dr=(0,u.forwardRef)(({className:e,...t},n)=>(0,d.jsx)(`div`,{ref:n,className:B(`flex flex-wrap gap-1.5 mt-2`,e),...t}));Dr.displayName=`ConnectionCard.Tags`;var Or=Object.assign(Cr,{Header:wr,Title:Tr,Description:Er,Tags:Dr}),kr=(0,u.forwardRef)(({className:e,...t},n)=>(0,d.jsx)(`div`,{ref:n,className:B(`bg-card-bg text-card-fg border border-card-border rounded-[var(--ord-radius)] shadow-sm`,e),...t}));kr.displayName=`InfoCard`;var Ar=(0,u.forwardRef)(({className:e,...t},n)=>(0,d.jsx)(`div`,{ref:n,className:B(`flex items-center gap-3 p-4`,e),...t}));Ar.displayName=`InfoCard.Header`;function jr({children:e,className:t}){return(0,d.jsx)(`div`,{className:B(`flex h-10 w-10 shrink-0 items-center justify-center rounded-lg border bg-muted`,t),children:e??(0,d.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`20`,height:`20`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`text-muted-foreground`,children:[(0,d.jsx)(`circle`,{cx:`12`,cy:`12`,r:`10`}),(0,d.jsx)(`path`,{d:`M12 16v-4`}),(0,d.jsx)(`path`,{d:`M12 8h.01`})]})})}jr.displayName=`InfoCard.Icon`;var Mr=(0,u.forwardRef)(({className:e,...t},n)=>(0,d.jsx)(`h2`,{ref:n,className:B(`text-base font-semibold leading-tight m-0`,e),...t}));Mr.displayName=`InfoCard.Title`;var Nr=(0,u.forwardRef)(({className:e,...t},n)=>(0,d.jsx)(`p`,{ref:n,className:B(`text-xs text-muted-foreground m-0`,e),...t}));Nr.displayName=`InfoCard.Subtitle`;var Pr=(0,u.forwardRef)(({className:e,...t},n)=>(0,d.jsx)(`div`,{ref:n,className:B(`flex flex-col gap-3 px-4 pb-4 pt-0`,e),...t}));Pr.displayName=`InfoCard.Content`;var Fr=(0,u.forwardRef)(({className:e,...t},n)=>(0,d.jsx)(`div`,{ref:n,className:B(`flex flex-col gap-1`,e),...t}));Fr.displayName=`InfoCard.Section`;var Ir=Object.assign(kr,{Header:Ar,Icon:jr,Title:Mr,Subtitle:Nr,Content:Pr,Section:Fr});function Lr({className:e,bordered:t,...n}){return(0,d.jsx)(w.Collapsible.Root,{className:B(`flex flex-col py-1`,t&&`rounded-lg border bg-card-bg p-2`,!t&&`border-b last:border-b-0`,e),...n})}Lr.displayName=`CollapsibleSection.Root`;var Rr=(0,u.forwardRef)(({className:e,children:t,icon:n,badges:r,description:i,...a},o)=>(0,d.jsxs)(w.Collapsible.Trigger,{ref:o,className:B(`group flex flex-wrap items-center gap-1.5 text-sm font-medium text-muted-foreground hover:text-foreground transition-colors cursor-pointer w-full`,e),...a,children:[(0,d.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`12`,height:`12`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`h-3 w-3 shrink-0 transition-transform data-[panel-open]:rotate-90`,children:(0,d.jsx)(`polyline`,{points:`9 18 15 12 9 6`})}),n&&(0,d.jsx)(`span`,{className:`shrink-0 h-4 w-4 [&>svg]:h-full [&>svg]:w-full`,children:n}),(0,d.jsx)(`span`,{className:`flex-1 truncate text-left`,children:t}),r&&(0,d.jsx)(`div`,{className:`flex items-center gap-1.5`,children:r}),i&&(0,d.jsx)(`span`,{className:`basis-full pl-[18px] text-xs font-normal text-muted-foreground truncate text-left group-data-[panel-open]:hidden`,children:i})]}));Rr.displayName=`CollapsibleSection.Trigger`;var zr=(0,u.forwardRef)(({className:e,...t},n)=>(0,d.jsx)(w.Collapsible.Panel,{ref:n,className:B(`mt-1.5`,e),...t}));zr.displayName=`CollapsibleSection.Content`;var Br=Object.assign({},{Root:Lr,Trigger:Rr,Content:zr}),Vr=(0,u.forwardRef)(({className:e,children:t,...n},r)=>(0,d.jsx)(`div`,{ref:r,className:B(`rounded-lg border border-card-border bg-card-bg overflow-hidden`,e),...n,children:t}));Vr.displayName=`SectionCard.Root`;var Hr=(0,u.forwardRef)(({icon:e,title:t,badges:n,className:r,...i},a)=>(0,d.jsxs)(`div`,{ref:a,className:B(`flex flex-wrap items-center gap-2 px-4 py-3`,r),...i,children:[e&&(0,d.jsx)(`span`,{className:`shrink-0 h-4 w-4 [&>svg]:h-full [&>svg]:w-full`,children:e}),(0,d.jsx)(`span`,{className:`text-sm font-medium flex-1 truncate`,children:t}),n&&(0,d.jsx)(`div`,{className:`flex items-center gap-1.5`,children:n})]}));Hr.displayName=`SectionCard.Header`;var Ur=(0,u.forwardRef)(({className:e,children:t,...n},r)=>(0,d.jsx)(`div`,{ref:r,className:B(`px-4 pb-4 pt-0`,e),...n,children:t}));Ur.displayName=`SectionCard.Content`;var Wr=Object.assign(Vr,{Root:Vr,Header:Hr,Content:Ur});function Gr(e,t){let n=t||{};return(e[e.length-1]===``?[...e,``]:e).join((n.padRight?` `:``)+`,`+(n.padLeft===!1?``:` `)).trim()}var Kr=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,qr=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Jr={};function Yr(e,t){return((t||Jr).jsx?qr:Kr).test(e)}var Xr=/[ \t\n\f\r]/g;function Zr(e){return typeof e==`object`?e.type===`text`?Qr(e.value):!1:Qr(e)}function Qr(e){return e.replace(Xr,``)===``}var $r=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};$r.prototype.normal={},$r.prototype.property={},$r.prototype.space=void 0;function ei(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new $r(n,r,t)}function ti(e){return e.toLowerCase()}var U=class{constructor(e,t){this.attribute=t,this.property=e}};U.prototype.attribute=``,U.prototype.booleanish=!1,U.prototype.boolean=!1,U.prototype.commaOrSpaceSeparated=!1,U.prototype.commaSeparated=!1,U.prototype.defined=!1,U.prototype.mustUseProperty=!1,U.prototype.number=!1,U.prototype.overloadedBoolean=!1,U.prototype.property=``,U.prototype.spaceSeparated=!1,U.prototype.space=void 0;var ni=s({boolean:()=>W,booleanish:()=>G,commaOrSpaceSeparated:()=>oi,commaSeparated:()=>ai,number:()=>K,overloadedBoolean:()=>ii,spaceSeparated:()=>q}),ri=0,W=si(),G=si(),ii=si(),K=si(),q=si(),ai=si(),oi=si();function si(){return 2**++ri}var ci=Object.keys(ni),li=class extends U{constructor(e,t,n,r){let i=-1;if(super(e,t),ui(this,`space`,r),typeof n==`number`)for(;++i<ci.length;){let e=ci[i];ui(this,ci[i],(n&ni[e])===ni[e])}}};li.prototype.defined=!0;function ui(e,t,n){n&&(e[t]=n)}function di(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let a=new li(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[ti(r)]=r,n[ti(a.attribute)]=r}return new $r(t,n,e.space)}var fi=di({properties:{ariaActiveDescendant:null,ariaAtomic:G,ariaAutoComplete:null,ariaBusy:G,ariaChecked:G,ariaColCount:K,ariaColIndex:K,ariaColSpan:K,ariaControls:q,ariaCurrent:null,ariaDescribedBy:q,ariaDetails:null,ariaDisabled:G,ariaDropEffect:q,ariaErrorMessage:null,ariaExpanded:G,ariaFlowTo:q,ariaGrabbed:G,ariaHasPopup:null,ariaHidden:G,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:q,ariaLevel:K,ariaLive:null,ariaModal:G,ariaMultiLine:G,ariaMultiSelectable:G,ariaOrientation:null,ariaOwns:q,ariaPlaceholder:null,ariaPosInSet:K,ariaPressed:G,ariaReadOnly:G,ariaRelevant:null,ariaRequired:G,ariaRoleDescription:q,ariaRowCount:K,ariaRowIndex:K,ariaRowSpan:K,ariaSelected:G,ariaSetSize:K,ariaSort:null,ariaValueMax:K,ariaValueMin:K,ariaValueNow:K,ariaValueText:null,role:null},transform(e,t){return t===`role`?t:`aria-`+t.slice(4).toLowerCase()}});function pi(e,t){return t in e?e[t]:t}function mi(e,t){return pi(e,t.toLowerCase())}var hi=di({attributes:{acceptcharset:`accept-charset`,classname:`class`,htmlfor:`for`,httpequiv:`http-equiv`},mustUseProperty:[`checked`,`multiple`,`muted`,`selected`],properties:{abbr:null,accept:ai,acceptCharset:q,accessKey:q,action:null,allow:null,allowFullScreen:W,allowPaymentRequest:W,allowUserMedia:W,alt:null,as:null,async:W,autoCapitalize:null,autoComplete:q,autoFocus:W,autoPlay:W,blocking:q,capture:null,charSet:null,checked:W,cite:null,className:q,cols:K,colSpan:null,content:null,contentEditable:G,controls:W,controlsList:q,coords:K|ai,crossOrigin:null,data:null,dateTime:null,decoding:null,default:W,defer:W,dir:null,dirName:null,disabled:W,download:ii,draggable:G,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:W,formTarget:null,headers:q,height:K,hidden:ii,high:K,href:null,hrefLang:null,htmlFor:q,httpEquiv:q,id:null,imageSizes:null,imageSrcSet:null,inert:W,inputMode:null,integrity:null,is:null,isMap:W,itemId:null,itemProp:q,itemRef:q,itemScope:W,itemType:q,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:W,low:K,manifest:null,max:null,maxLength:K,media:null,method:null,min:null,minLength:K,multiple:W,muted:W,name:null,nonce:null,noModule:W,noValidate:W,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:W,optimum:K,pattern:null,ping:q,placeholder:null,playsInline:W,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:W,referrerPolicy:null,rel:q,required:W,reversed:W,rows:K,rowSpan:K,sandbox:q,scope:null,scoped:W,seamless:W,selected:W,shadowRootClonable:W,shadowRootDelegatesFocus:W,shadowRootMode:null,shape:null,size:K,sizes:null,slot:null,span:K,spellCheck:G,src:null,srcDoc:null,srcLang:null,srcSet:null,start:K,step:null,style:null,tabIndex:K,target:null,title:null,translate:null,type:null,typeMustMatch:W,useMap:null,value:G,width:K,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:q,axis:null,background:null,bgColor:null,border:K,borderColor:null,bottomMargin:K,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:W,declare:W,event:null,face:null,frame:null,frameBorder:null,hSpace:K,leftMargin:K,link:null,longDesc:null,lowSrc:null,marginHeight:K,marginWidth:K,noResize:W,noHref:W,noShade:W,noWrap:W,object:null,profile:null,prompt:null,rev:null,rightMargin:K,rules:null,scheme:null,scrolling:G,standby:null,summary:null,text:null,topMargin:K,valueType:null,version:null,vAlign:null,vLink:null,vSpace:K,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:W,disableRemotePlayback:W,prefix:null,property:null,results:K,security:null,unselectable:null},space:`html`,transform:mi}),gi=di({attributes:{accentHeight:`accent-height`,alignmentBaseline:`alignment-baseline`,arabicForm:`arabic-form`,baselineShift:`baseline-shift`,capHeight:`cap-height`,className:`class`,clipPath:`clip-path`,clipRule:`clip-rule`,colorInterpolation:`color-interpolation`,colorInterpolationFilters:`color-interpolation-filters`,colorProfile:`color-profile`,colorRendering:`color-rendering`,crossOrigin:`crossorigin`,dataType:`datatype`,dominantBaseline:`dominant-baseline`,enableBackground:`enable-background`,fillOpacity:`fill-opacity`,fillRule:`fill-rule`,floodColor:`flood-color`,floodOpacity:`flood-opacity`,fontFamily:`font-family`,fontSize:`font-size`,fontSizeAdjust:`font-size-adjust`,fontStretch:`font-stretch`,fontStyle:`font-style`,fontVariant:`font-variant`,fontWeight:`font-weight`,glyphName:`glyph-name`,glyphOrientationHorizontal:`glyph-orientation-horizontal`,glyphOrientationVertical:`glyph-orientation-vertical`,hrefLang:`hreflang`,horizAdvX:`horiz-adv-x`,horizOriginX:`horiz-origin-x`,horizOriginY:`horiz-origin-y`,imageRendering:`image-rendering`,letterSpacing:`letter-spacing`,lightingColor:`lighting-color`,markerEnd:`marker-end`,markerMid:`marker-mid`,markerStart:`marker-start`,navDown:`nav-down`,navDownLeft:`nav-down-left`,navDownRight:`nav-down-right`,navLeft:`nav-left`,navNext:`nav-next`,navPrev:`nav-prev`,navRight:`nav-right`,navUp:`nav-up`,navUpLeft:`nav-up-left`,navUpRight:`nav-up-right`,onAbort:`onabort`,onActivate:`onactivate`,onAfterPrint:`onafterprint`,onBeforePrint:`onbeforeprint`,onBegin:`onbegin`,onCancel:`oncancel`,onCanPlay:`oncanplay`,onCanPlayThrough:`oncanplaythrough`,onChange:`onchange`,onClick:`onclick`,onClose:`onclose`,onCopy:`oncopy`,onCueChange:`oncuechange`,onCut:`oncut`,onDblClick:`ondblclick`,onDrag:`ondrag`,onDragEnd:`ondragend`,onDragEnter:`ondragenter`,onDragExit:`ondragexit`,onDragLeave:`ondragleave`,onDragOver:`ondragover`,onDragStart:`ondragstart`,onDrop:`ondrop`,onDurationChange:`ondurationchange`,onEmptied:`onemptied`,onEnd:`onend`,onEnded:`onended`,onError:`onerror`,onFocus:`onfocus`,onFocusIn:`onfocusin`,onFocusOut:`onfocusout`,onHashChange:`onhashchange`,onInput:`oninput`,onInvalid:`oninvalid`,onKeyDown:`onkeydown`,onKeyPress:`onkeypress`,onKeyUp:`onkeyup`,onLoad:`onload`,onLoadedData:`onloadeddata`,onLoadedMetadata:`onloadedmetadata`,onLoadStart:`onloadstart`,onMessage:`onmessage`,onMouseDown:`onmousedown`,onMouseEnter:`onmouseenter`,onMouseLeave:`onmouseleave`,onMouseMove:`onmousemove`,onMouseOut:`onmouseout`,onMouseOver:`onmouseover`,onMouseUp:`onmouseup`,onMouseWheel:`onmousewheel`,onOffline:`onoffline`,onOnline:`ononline`,onPageHide:`onpagehide`,onPageShow:`onpageshow`,onPaste:`onpaste`,onPause:`onpause`,onPlay:`onplay`,onPlaying:`onplaying`,onPopState:`onpopstate`,onProgress:`onprogress`,onRateChange:`onratechange`,onRepeat:`onrepeat`,onReset:`onreset`,onResize:`onresize`,onScroll:`onscroll`,onSeeked:`onseeked`,onSeeking:`onseeking`,onSelect:`onselect`,onShow:`onshow`,onStalled:`onstalled`,onStorage:`onstorage`,onSubmit:`onsubmit`,onSuspend:`onsuspend`,onTimeUpdate:`ontimeupdate`,onToggle:`ontoggle`,onUnload:`onunload`,onVolumeChange:`onvolumechange`,onWaiting:`onwaiting`,onZoom:`onzoom`,overlinePosition:`overline-position`,overlineThickness:`overline-thickness`,paintOrder:`paint-order`,panose1:`panose-1`,pointerEvents:`pointer-events`,referrerPolicy:`referrerpolicy`,renderingIntent:`rendering-intent`,shapeRendering:`shape-rendering`,stopColor:`stop-color`,stopOpacity:`stop-opacity`,strikethroughPosition:`strikethrough-position`,strikethroughThickness:`strikethrough-thickness`,strokeDashArray:`stroke-dasharray`,strokeDashOffset:`stroke-dashoffset`,strokeLineCap:`stroke-linecap`,strokeLineJoin:`stroke-linejoin`,strokeMiterLimit:`stroke-miterlimit`,strokeOpacity:`stroke-opacity`,strokeWidth:`stroke-width`,tabIndex:`tabindex`,textAnchor:`text-anchor`,textDecoration:`text-decoration`,textRendering:`text-rendering`,transformOrigin:`transform-origin`,typeOf:`typeof`,underlinePosition:`underline-position`,underlineThickness:`underline-thickness`,unicodeBidi:`unicode-bidi`,unicodeRange:`unicode-range`,unitsPerEm:`units-per-em`,vAlphabetic:`v-alphabetic`,vHanging:`v-hanging`,vIdeographic:`v-ideographic`,vMathematical:`v-mathematical`,vectorEffect:`vector-effect`,vertAdvY:`vert-adv-y`,vertOriginX:`vert-origin-x`,vertOriginY:`vert-origin-y`,wordSpacing:`word-spacing`,writingMode:`writing-mode`,xHeight:`x-height`,playbackOrder:`playbackorder`,timelineBegin:`timelinebegin`},properties:{about:oi,accentHeight:K,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:K,amplitude:K,arabicForm:null,ascent:K,attributeName:null,attributeType:null,azimuth:K,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:K,by:null,calcMode:null,capHeight:K,className:q,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:K,diffuseConstant:K,direction:null,display:null,dur:null,divisor:K,dominantBaseline:null,download:W,dx:null,dy:null,edgeMode:null,editable:null,elevation:K,enableBackground:null,end:null,event:null,exponent:K,externalResourcesRequired:null,fill:null,fillOpacity:K,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:ai,g2:ai,glyphName:ai,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:K,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:K,horizOriginX:K,horizOriginY:K,id:null,ideographic:K,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:K,k:K,k1:K,k2:K,k3:K,k4:K,kernelMatrix:oi,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:K,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:K,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:K,overlineThickness:K,paintOrder:null,panose1:null,path:null,pathLength:K,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:q,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:K,pointsAtY:K,pointsAtZ:K,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:oi,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:oi,rev:oi,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:oi,requiredFeatures:oi,requiredFonts:oi,requiredFormats:oi,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:K,specularExponent:K,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:K,strikethroughThickness:K,string:null,stroke:null,strokeDashArray:oi,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:K,strokeOpacity:K,strokeWidth:null,style:null,surfaceScale:K,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:oi,tabIndex:K,tableValues:null,target:null,targetX:K,targetY:K,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:oi,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:K,underlineThickness:K,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:K,values:null,vAlphabetic:K,vMathematical:K,vectorEffect:null,vHanging:K,vIdeographic:K,version:null,vertAdvY:K,vertOriginX:K,vertOriginY:K,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:K,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:`svg`,transform:pi}),_i=di({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:`xlink`,transform(e,t){return`xlink:`+t.slice(5).toLowerCase()}}),vi=di({attributes:{xmlnsxlink:`xmlns:xlink`},properties:{xmlnsXLink:null,xmlns:null},space:`xmlns`,transform:mi}),yi=di({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:`xml`,transform(e,t){return`xml:`+t.slice(3).toLowerCase()}}),bi={classId:`classID`,dataType:`datatype`,itemId:`itemID`,strokeDashArray:`strokeDasharray`,strokeDashOffset:`strokeDashoffset`,strokeLineCap:`strokeLinecap`,strokeLineJoin:`strokeLinejoin`,strokeMiterLimit:`strokeMiterlimit`,typeOf:`typeof`,xLinkActuate:`xlinkActuate`,xLinkArcRole:`xlinkArcrole`,xLinkHref:`xlinkHref`,xLinkRole:`xlinkRole`,xLinkShow:`xlinkShow`,xLinkTitle:`xlinkTitle`,xLinkType:`xlinkType`,xmlnsXLink:`xmlnsXlink`},xi=/[A-Z]/g,Si=/-[a-z]/g,Ci=/^data[-\w.:]+$/i;function wi(e,t){let n=ti(t),r=t,i=U;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)===`data`&&Ci.test(t)){if(t.charAt(4)===`-`){let e=t.slice(5).replace(Si,Ei);r=`data`+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!Si.test(e)){let n=e.replace(xi,Ti);n.charAt(0)!==`-`&&(n=`-`+n),t=`data`+n}}i=li}return new i(r,t)}function Ti(e){return`-`+e.toLowerCase()}function Ei(e){return e.charAt(1).toUpperCase()}var Di=ei([fi,hi,_i,vi,yi],`html`),Oi=ei([fi,gi,_i,vi,yi],`svg`);function ki(e){return e.join(` `).trim()}var Ai=o(((e,t)=>{var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,i=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,l=/^\s+|\s+$/g,u=`
|
|
2
|
+
`,d=`/`,f=`*`,p=``,m=`comment`,h=`declaration`;function g(e,t){if(typeof e!=`string`)throw TypeError(`First argument must be a string`);if(!e)return[];t||={};var l=1,g=1;function v(e){var t=e.match(r);t&&(l+=t.length);var n=e.lastIndexOf(u);g=~n?e.length-n:g+e.length}function y(){var e={line:l,column:g};return function(t){return t.position=new b(e),C(),t}}function b(e){this.start=e,this.end={line:l,column:g},this.source=t.source}b.prototype.content=e;function x(n){var r=Error(t.source+`:`+l+`:`+g+`: `+n);if(r.reason=n,r.filename=t.source,r.line=l,r.column=g,r.source=e,!t.silent)throw r}function S(t){var n=t.exec(e);if(n){var r=n[0];return v(r),e=e.slice(r.length),n}}function C(){S(i)}function w(e){var t;for(e||=[];t=T();)t!==!1&&e.push(t);return e}function T(){var t=y();if(!(d!=e.charAt(0)||f!=e.charAt(1))){for(var n=2;p!=e.charAt(n)&&(f!=e.charAt(n)||d!=e.charAt(n+1));)++n;if(n+=2,p===e.charAt(n-1))return x(`End of comment missing`);var r=e.slice(2,n-2);return g+=2,v(r),e=e.slice(n),g+=2,t({type:m,comment:r})}}function E(){var e=y(),t=S(a);if(t){if(T(),!S(o))return x(`property missing ':'`);var r=S(s),i=e({type:h,property:_(t[0].replace(n,p)),value:r?_(r[0].replace(n,p)):p});return S(c),i}}function D(){var e=[];w(e);for(var t;t=E();)t!==!1&&(e.push(t),w(e));return e}return C(),D()}function _(e){return e?e.replace(l,p):p}t.exports=g})),ji=o((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.default=r;var n=t(Ai());function r(e,t){let r=null;if(!e||typeof e!=`string`)return r;let i=(0,n.default)(e),a=typeof t==`function`;return i.forEach(e=>{if(e.type!==`declaration`)return;let{property:n,value:i}=e;a?t(n,i,e):i&&(r||={},r[n]=i)}),r}})),Mi=o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.camelCase=void 0;var t=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,r=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,o=function(e){return!e||r.test(e)||t.test(e)},s=function(e,t){return t.toUpperCase()},c=function(e,t){return`${t}-`};e.camelCase=function(e,t){return t===void 0&&(t={}),o(e)?e:(e=e.toLowerCase(),e=t.reactCompat?e.replace(a,c):e.replace(i,c),e.replace(n,s))}})),Ni=o(((e,t)=>{var n=(e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(ji()),r=Mi();function i(e,t){var i={};return!e||typeof e!=`string`||(0,n.default)(e,function(e,n){e&&n&&(i[(0,r.camelCase)(e,t)]=n)}),i}i.default=i,t.exports=i})),Pi=Ii(`end`),Fi=Ii(`start`);function Ii(e){return t;function t(t){let n=t&&t.position&&t.position[e]||{};if(typeof n.line==`number`&&n.line>0&&typeof n.column==`number`&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset==`number`&&n.offset>-1?n.offset:void 0}}}function Li(e){let t=Fi(e),n=Pi(e);if(t&&n)return{start:t,end:n}}function Ri(e){return!e||typeof e!=`object`?``:`position`in e||`type`in e?Bi(e.position):`start`in e||`end`in e?Bi(e):`line`in e||`column`in e?zi(e):``}function zi(e){return Vi(e&&e.line)+`:`+Vi(e&&e.column)}function Bi(e){return zi(e&&e.start)+`-`+zi(e&&e.end)}function Vi(e){return e&&typeof e==`number`?e:1}var J=class extends Error{constructor(e,t,n){super(),typeof t==`string`&&(n=t,t=void 0);let r=``,i={},a=!1;if(t&&(i=`line`in t&&`column`in t||`start`in t&&`end`in t?{place:t}:`type`in t?{ancestors:[t],place:t.position}:{...t}),typeof e==`string`?r=e:!i.cause&&e&&(a=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&typeof n==`string`){let e=n.indexOf(`:`);e===-1?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){let e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}let o=i.place&&`start`in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file=``,this.message=r,this.line=o?o.line:void 0,this.name=Ri(i.place)||`1:1`,this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=a&&i.cause&&typeof i.cause.stack==`string`?i.cause.stack:``,this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}};J.prototype.file=``,J.prototype.name=``,J.prototype.reason=``,J.prototype.message=``,J.prototype.stack=``,J.prototype.column=void 0,J.prototype.line=void 0,J.prototype.ancestors=void 0,J.prototype.cause=void 0,J.prototype.fatal=void 0,J.prototype.place=void 0,J.prototype.ruleId=void 0,J.prototype.source=void 0;var Hi=l(Ni(),1),Ui={}.hasOwnProperty,Wi=new Map,Gi=/[A-Z]/g,Ki=new Set([`table`,`tbody`,`thead`,`tfoot`,`tr`]),qi=new Set([`td`,`th`]);function Ji(e,t){if(!t||t.Fragment===void 0)throw TypeError("Expected `Fragment` in options");let n=t.filePath||void 0,r;if(t.development){if(typeof t.jsxDEV!=`function`)throw TypeError("Expected `jsxDEV` in options when `development: true`");r=aa(n,t.jsxDEV)}else{if(typeof t.jsx!=`function`)throw TypeError("Expected `jsx` in production options");if(typeof t.jsxs!=`function`)throw TypeError("Expected `jsxs` in production options");r=ia(n,t.jsx,t.jsxs)}let i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||`react`,evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space===`svg`?Oi:Di,stylePropertyNameCase:t.stylePropertyNameCase||`dom`,tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=Yi(i,e,void 0);return a&&typeof a!=`string`?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function Yi(e,t,n){if(t.type===`element`)return Xi(e,t,n);if(t.type===`mdxFlowExpression`||t.type===`mdxTextExpression`)return Zi(e,t);if(t.type===`mdxJsxFlowElement`||t.type===`mdxJsxTextElement`)return $i(e,t,n);if(t.type===`mdxjsEsm`)return Qi(e,t);if(t.type===`root`)return ea(e,t,n);if(t.type===`text`)return ta(e,t)}function Xi(e,t,n){let r=e.schema,i=r;t.tagName.toLowerCase()===`svg`&&r.space===`html`&&(i=Oi,e.schema=i),e.ancestors.push(t);let a=da(e,t.tagName,!1),o=oa(e,t),s=ca(e,t);return Ki.has(t.tagName)&&(s=s.filter(function(e){return typeof e==`string`?!Zr(e):!0})),na(e,o,a,t),ra(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function Zi(e,t){if(t.data&&t.data.estree&&e.evaluater){let n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}fa(e,t.position)}function Qi(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);fa(e,t.position)}function $i(e,t,n){let r=e.schema,i=r;t.name===`svg`&&r.space===`html`&&(i=Oi,e.schema=i),e.ancestors.push(t);let a=t.name===null?e.Fragment:da(e,t.name,!0),o=sa(e,t),s=ca(e,t);return na(e,o,a,t),ra(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function ea(e,t,n){let r={};return ra(r,ca(e,t)),e.create(t,e.Fragment,r,n)}function ta(e,t){return t.value}function na(e,t,n,r){typeof n!=`string`&&n!==e.Fragment&&e.passNode&&(t.node=r)}function ra(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function ia(e,t,n){return r;function r(e,r,i,a){let o=Array.isArray(i.children)?n:t;return a?o(r,i,a):o(r,i)}}function aa(e,t){return n;function n(n,r,i,a){let o=Array.isArray(i.children),s=Fi(n);return t(r,i,a,o,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}function oa(e,t){let n={},r,i;for(i in t.properties)if(i!==`children`&&Ui.call(t.properties,i)){let a=la(e,i,t.properties[i]);if(a){let[i,o]=a;e.tableCellAlignToStyle&&i===`align`&&typeof o==`string`&&qi.has(t.tagName)?r=o:n[i]=o}}if(r){let t=n.style||={};t[e.stylePropertyNameCase===`css`?`text-align`:`textAlign`]=r}return n}function sa(e,t){let n={};for(let r of t.attributes)if(r.type===`mdxJsxExpressionAttribute`)if(r.data&&r.data.estree&&e.evaluater){let t=r.data.estree.body[0];t.type;let i=t.expression;i.type;let a=i.properties[0];a.type,Object.assign(n,e.evaluater.evaluateExpression(a.argument))}else fa(e,t.position);else{let i=r.name,a;if(r.value&&typeof r.value==`object`)if(r.value.data&&r.value.data.estree&&e.evaluater){let t=r.value.data.estree.body[0];t.type,a=e.evaluater.evaluateExpression(t.expression)}else fa(e,t.position);else a=r.value===null?!0:r.value;n[i]=a}return n}function ca(e,t){let n=[],r=-1,i=e.passKeys?new Map:Wi;for(;++r<t.children.length;){let a=t.children[r],o;if(e.passKeys){let e=a.type===`element`?a.tagName:a.type===`mdxJsxFlowElement`||a.type===`mdxJsxTextElement`?a.name:void 0;if(e){let t=i.get(e)||0;o=e+`-`+t,i.set(e,t+1)}}let s=Yi(e,a,o);s!==void 0&&n.push(s)}return n}function la(e,t,n){let r=wi(e.schema,t);if(!(n==null||typeof n==`number`&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?Gr(n):ki(n)),r.property===`style`){let t=typeof n==`object`?n:ua(e,String(n));return e.stylePropertyNameCase===`css`&&(t=pa(t)),[`style`,t]}return[e.elementAttributeNameCase===`react`&&r.space?bi[r.property]||r.property:r.attribute,n]}}function ua(e,t){try{return(0,Hi.default)(t,{reactCompat:!0})}catch(t){if(e.ignoreInvalidStyle)return{};let n=t,r=new J("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:`style`,source:`hast-util-to-jsx-runtime`});throw r.file=e.filePath||void 0,r.url=`https://github.com/syntax-tree/hast-util-to-jsx-runtime#cannot-parse-style-attribute`,r}}function da(e,t,n){let r;if(!n)r={type:`Literal`,value:t};else if(t.includes(`.`)){let e=t.split(`.`),n=-1,i;for(;++n<e.length;){let t=Yr(e[n])?{type:`Identifier`,name:e[n]}:{type:`Literal`,value:e[n]};i=i?{type:`MemberExpression`,object:i,property:t,computed:!!(n&&t.type===`Literal`),optional:!1}:t}r=i}else r=Yr(t)&&!/^[a-z]/.test(t)?{type:`Identifier`,name:t}:{type:`Literal`,value:t};if(r.type===`Literal`){let t=r.value;return Ui.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);fa(e)}function fa(e,t){let n=new J("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:`mdx-estree`,source:`hast-util-to-jsx-runtime`});throw n.file=e.filePath||void 0,n.url=`https://github.com/syntax-tree/hast-util-to-jsx-runtime#cannot-handle-mdx-estrees-without-createevaluater`,n}function pa(e){let t={},n;for(n in e)Ui.call(e,n)&&(t[ma(n)]=e[n]);return t}function ma(e){let t=e.replace(Gi,ha);return t.slice(0,3)===`ms-`&&(t=`-`+t),t}function ha(e){return`-`+e.toLowerCase()}var ga={action:[`form`],cite:[`blockquote`,`del`,`ins`,`q`],data:[`object`],formAction:[`button`,`input`],href:[`a`,`area`,`base`,`link`],icon:[`menuitem`],itemId:null,manifest:[`html`],ping:[`a`,`area`],poster:[`video`],src:[`audio`,`embed`,`iframe`,`img`,`input`,`script`,`source`,`track`,`video`]},_a={};function va(e,t){let n=t||_a;return ya(e,typeof n.includeImageAlt==`boolean`?n.includeImageAlt:!0,typeof n.includeHtml==`boolean`?n.includeHtml:!0)}function ya(e,t,n){if(xa(e)){if(`value`in e)return e.type===`html`&&!n?``:e.value;if(t&&`alt`in e&&e.alt)return e.alt;if(`children`in e)return ba(e.children,t,n)}return Array.isArray(e)?ba(e,t,n):``}function ba(e,t,n){let r=[],i=-1;for(;++i<e.length;)r[i]=ya(e[i],t,n);return r.join(``)}function xa(e){return!!(e&&typeof e==`object`)}var Sa=document.createElement(`i`);function Ca(e){let t=`&`+e+`;`;Sa.innerHTML=t;let n=Sa.textContent;return n.charCodeAt(n.length-1)===59&&e!==`semi`||n===t?!1:n}function wa(e,t,n,r){let i=e.length,a=0,o;if(t=t<0?-t>i?0:i+t:t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);a<r.length;)o=r.slice(a,a+1e4),o.unshift(t,0),e.splice(...o),a+=1e4,t+=1e4}function Ta(e,t){return e.length>0?(wa(e,e.length,0,t),e):t}var Ea={}.hasOwnProperty;function Da(e){let t={},n=-1;for(;++n<e.length;)Oa(t,e[n]);return t}function Oa(e,t){let n;for(n in t){let r=(Ea.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n],a;if(i)for(a in i){Ea.call(r,a)||(r[a]=[]);let e=i[a];ka(r[a],Array.isArray(e)?e:e?[e]:[])}}}function ka(e,t){let n=-1,r=[];for(;++n<t.length;)(t[n].add===`after`?e:r).push(t[n]);wa(e,0,0,r)}function Aa(e,t){let n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)==65535||(n&65535)==65534||n>1114111?`�`:String.fromCodePoint(n)}function ja(e){return e.replace(/[\t\n\r ]+/g,` `).replace(/^ | $/g,``).toLowerCase().toUpperCase()}var Ma=Va(/[A-Za-z]/),Na=Va(/[\dA-Za-z]/),Pa=Va(/[#-'*+\--9=?A-Z^-~]/);function Fa(e){return e!==null&&(e<32||e===127)}var Ia=Va(/\d/),La=Va(/[\dA-Fa-f]/),Ra=Va(/[!-/:-@[-`{-~]/);function Y(e){return e!==null&&e<-2}function X(e){return e!==null&&(e<0||e===32)}function Z(e){return e===-2||e===-1||e===32}var za=Va(/\p{P}|\p{S}/u),Ba=Va(/\s/);function Va(e){return t;function t(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function Ha(e){let t=[],n=-1,r=0,i=0;for(;++n<e.length;){let a=e.charCodeAt(n),o=``;if(a===37&&Na(e.charCodeAt(n+1))&&Na(e.charCodeAt(n+2)))i=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(o=String.fromCharCode(a));else if(a>55295&&a<57344){let t=e.charCodeAt(n+1);a<56320&&t>56319&&t<57344?(o=String.fromCharCode(a,t),i=1):o=`�`}else o=String.fromCharCode(a);o&&=(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,``),i&&=(n+=i,0)}return t.join(``)+e.slice(r)}function Q(e,t,n,r){let i=r?r-1:1/0,a=0;return o;function o(r){return Z(r)?(e.enter(n),s(r)):t(r)}function s(r){return Z(r)&&a++<i?(e.consume(r),s):(e.exit(n),t(r))}}var Ua={tokenize:Wa};function Wa(e){let t=e.attempt(this.parser.constructs.contentInitial,r,i),n;return t;function r(n){if(n===null){e.consume(n);return}return e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),Q(e,t,`linePrefix`)}function i(t){return e.enter(`paragraph`),a(t)}function a(t){let r=e.enter(`chunkText`,{contentType:`text`,previous:n});return n&&(n.next=r),n=r,o(t)}function o(t){if(t===null){e.exit(`chunkText`),e.exit(`paragraph`),e.consume(t);return}return Y(t)?(e.consume(t),e.exit(`chunkText`),a):(e.consume(t),o)}}var Ga={tokenize:qa},Ka={tokenize:Ja};function qa(e){let t=this,n=[],r=0,i,a,o;return s;function s(i){if(r<n.length){let a=n[r];return t.containerState=a[1],e.attempt(a[0].continuation,c,l)(i)}return l(i)}function c(e){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&v();let n=t.events.length,a=n,o;for(;a--;)if(t.events[a][0]===`exit`&&t.events[a][1].type===`chunkFlow`){o=t.events[a][1].end;break}_(r);let s=n;for(;s<t.events.length;)t.events[s][1].end={...o},s++;return wa(t.events,a+1,0,t.events.slice(n)),t.events.length=s,l(e)}return s(e)}function l(a){if(r===n.length){if(!i)return f(a);if(i.currentConstruct&&i.currentConstruct.concrete)return m(a);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Ka,u,d)(a)}function u(e){return i&&v(),_(r),f(e)}function d(e){return t.parser.lazy[t.now().line]=r!==n.length,o=t.now().offset,m(e)}function f(n){return t.containerState={},e.attempt(Ka,p,m)(n)}function p(e){return r++,n.push([t.currentConstruct,t.containerState]),f(e)}function m(n){if(n===null){i&&v(),_(0),e.consume(n);return}return i||=t.parser.flow(t.now()),e.enter(`chunkFlow`,{_tokenizer:i,contentType:`flow`,previous:a}),h(n)}function h(n){if(n===null){g(e.exit(`chunkFlow`),!0),_(0),e.consume(n);return}return Y(n)?(e.consume(n),g(e.exit(`chunkFlow`)),r=0,t.interrupt=void 0,s):(e.consume(n),h)}function g(e,n){let s=t.sliceStream(e);if(n&&s.push(null),e.previous=a,a&&(a.next=e),a=e,i.defineSkip(e.start),i.write(s),t.parser.lazy[e.start.line]){let e=i.events.length;for(;e--;)if(i.events[e][1].start.offset<o&&(!i.events[e][1].end||i.events[e][1].end.offset>o))return;let n=t.events.length,a=n,s,c;for(;a--;)if(t.events[a][0]===`exit`&&t.events[a][1].type===`chunkFlow`){if(s){c=t.events[a][1].end;break}s=!0}for(_(r),e=n;e<t.events.length;)t.events[e][1].end={...c},e++;wa(t.events,a+1,0,t.events.slice(n)),t.events.length=e}}function _(r){let i=n.length;for(;i-- >r;){let r=n[i];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function v(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function Ja(e,t,n){return Q(e,e.attempt(this.parser.constructs.document,t,n),`linePrefix`,this.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)}function Ya(e){if(e===null||X(e)||Ba(e))return 1;if(za(e))return 2}function Xa(e,t,n){let r=[],i=-1;for(;++i<e.length;){let a=e[i].resolveAll;a&&!r.includes(a)&&(t=a(t,n),r.push(a))}return t}var Za={name:`attention`,resolveAll:Qa,tokenize:$a};function Qa(e,t){let n=-1,r,i,a,o,s,c,l,u;for(;++n<e.length;)if(e[n][0]===`enter`&&e[n][1].type===`attentionSequence`&&e[n][1]._close){for(r=n;r--;)if(e[r][0]===`exit`&&e[r][1].type===`attentionSequence`&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;c=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;let d={...e[r][1].end},f={...e[n][1].start};eo(d,-c),eo(f,c),o={type:c>1?`strongSequence`:`emphasisSequence`,start:d,end:{...e[r][1].end}},s={type:c>1?`strongSequence`:`emphasisSequence`,start:{...e[n][1].start},end:f},a={type:c>1?`strongText`:`emphasisText`,start:{...e[r][1].end},end:{...e[n][1].start}},i={type:c>1?`strong`:`emphasis`,start:{...o.start},end:{...s.end}},e[r][1].end={...o.start},e[n][1].start={...s.end},l=[],e[r][1].end.offset-e[r][1].start.offset&&(l=Ta(l,[[`enter`,e[r][1],t],[`exit`,e[r][1],t]])),l=Ta(l,[[`enter`,i,t],[`enter`,o,t],[`exit`,o,t],[`enter`,a,t]]),l=Ta(l,Xa(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),l=Ta(l,[[`exit`,a,t],[`enter`,s,t],[`exit`,s,t],[`exit`,i,t]]),e[n][1].end.offset-e[n][1].start.offset?(u=2,l=Ta(l,[[`enter`,e[n][1],t],[`exit`,e[n][1],t]])):u=0,wa(e,r-1,n-r+3,l),n=r+l.length-u-2;break}}for(n=-1;++n<e.length;)e[n][1].type===`attentionSequence`&&(e[n][1].type=`data`);return e}function $a(e,t){let n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Ya(r),a;return o;function o(t){return a=t,e.enter(`attentionSequence`),s(t)}function s(o){if(o===a)return e.consume(o),s;let c=e.exit(`attentionSequence`),l=Ya(o),u=!l||l===2&&i||n.includes(o),d=!i||i===2&&l||n.includes(r);return c._open=!!(a===42?u:u&&(i||!d)),c._close=!!(a===42?d:d&&(l||!u)),t(o)}}function eo(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}var to={name:`autolink`,tokenize:no};function no(e,t,n){let r=0;return i;function i(t){return e.enter(`autolink`),e.enter(`autolinkMarker`),e.consume(t),e.exit(`autolinkMarker`),e.enter(`autolinkProtocol`),a}function a(t){return Ma(t)?(e.consume(t),o):t===64?n(t):l(t)}function o(e){return e===43||e===45||e===46||Na(e)?(r=1,s(e)):l(e)}function s(t){return t===58?(e.consume(t),r=0,c):(t===43||t===45||t===46||Na(t))&&r++<32?(e.consume(t),s):(r=0,l(t))}function c(r){return r===62?(e.exit(`autolinkProtocol`),e.enter(`autolinkMarker`),e.consume(r),e.exit(`autolinkMarker`),e.exit(`autolink`),t):r===null||r===32||r===60||Fa(r)?n(r):(e.consume(r),c)}function l(t){return t===64?(e.consume(t),u):Pa(t)?(e.consume(t),l):n(t)}function u(e){return Na(e)?d(e):n(e)}function d(n){return n===46?(e.consume(n),r=0,u):n===62?(e.exit(`autolinkProtocol`).type=`autolinkEmail`,e.enter(`autolinkMarker`),e.consume(n),e.exit(`autolinkMarker`),e.exit(`autolink`),t):f(n)}function f(t){if((t===45||Na(t))&&r++<63){let n=t===45?f:d;return e.consume(t),n}return n(t)}}var ro={partial:!0,tokenize:io};function io(e,t,n){return r;function r(t){return Z(t)?Q(e,i,`linePrefix`)(t):i(t)}function i(e){return e===null||Y(e)?t(e):n(e)}}var ao={continuation:{tokenize:so},exit:co,name:`blockQuote`,tokenize:oo};function oo(e,t,n){let r=this;return i;function i(t){if(t===62){let n=r.containerState;return n.open||=(e.enter(`blockQuote`,{_container:!0}),!0),e.enter(`blockQuotePrefix`),e.enter(`blockQuoteMarker`),e.consume(t),e.exit(`blockQuoteMarker`),a}return n(t)}function a(n){return Z(n)?(e.enter(`blockQuotePrefixWhitespace`),e.consume(n),e.exit(`blockQuotePrefixWhitespace`),e.exit(`blockQuotePrefix`),t):(e.exit(`blockQuotePrefix`),t(n))}}function so(e,t,n){let r=this;return i;function i(t){return Z(t)?Q(e,a,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):a(t)}function a(r){return e.attempt(ao,t,n)(r)}}function co(e){e.exit(`blockQuote`)}var lo={name:`characterEscape`,tokenize:uo};function uo(e,t,n){return r;function r(t){return e.enter(`characterEscape`),e.enter(`escapeMarker`),e.consume(t),e.exit(`escapeMarker`),i}function i(r){return Ra(r)?(e.enter(`characterEscapeValue`),e.consume(r),e.exit(`characterEscapeValue`),e.exit(`characterEscape`),t):n(r)}}var fo={name:`characterReference`,tokenize:po};function po(e,t,n){let r=this,i=0,a,o;return s;function s(t){return e.enter(`characterReference`),e.enter(`characterReferenceMarker`),e.consume(t),e.exit(`characterReferenceMarker`),c}function c(t){return t===35?(e.enter(`characterReferenceMarkerNumeric`),e.consume(t),e.exit(`characterReferenceMarkerNumeric`),l):(e.enter(`characterReferenceValue`),a=31,o=Na,u(t))}function l(t){return t===88||t===120?(e.enter(`characterReferenceMarkerHexadecimal`),e.consume(t),e.exit(`characterReferenceMarkerHexadecimal`),e.enter(`characterReferenceValue`),a=6,o=La,u):(e.enter(`characterReferenceValue`),a=7,o=Ia,u(t))}function u(s){if(s===59&&i){let i=e.exit(`characterReferenceValue`);return o===Na&&!Ca(r.sliceSerialize(i))?n(s):(e.enter(`characterReferenceMarker`),e.consume(s),e.exit(`characterReferenceMarker`),e.exit(`characterReference`),t)}return o(s)&&i++<a?(e.consume(s),u):n(s)}}var mo={partial:!0,tokenize:_o},ho={concrete:!0,name:`codeFenced`,tokenize:go};function go(e,t,n){let r=this,i={partial:!0,tokenize:x},a=0,o=0,s;return c;function c(e){return l(e)}function l(t){let n=r.events[r.events.length-1];return a=n&&n[1].type===`linePrefix`?n[2].sliceSerialize(n[1],!0).length:0,s=t,e.enter(`codeFenced`),e.enter(`codeFencedFence`),e.enter(`codeFencedFenceSequence`),u(t)}function u(t){return t===s?(o++,e.consume(t),u):o<3?n(t):(e.exit(`codeFencedFenceSequence`),Z(t)?Q(e,d,`whitespace`)(t):d(t))}function d(n){return n===null||Y(n)?(e.exit(`codeFencedFence`),r.interrupt?t(n):e.check(mo,h,b)(n)):(e.enter(`codeFencedFenceInfo`),e.enter(`chunkString`,{contentType:`string`}),f(n))}function f(t){return t===null||Y(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceInfo`),d(t)):Z(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceInfo`),Q(e,p,`whitespace`)(t)):t===96&&t===s?n(t):(e.consume(t),f)}function p(t){return t===null||Y(t)?d(t):(e.enter(`codeFencedFenceMeta`),e.enter(`chunkString`,{contentType:`string`}),m(t))}function m(t){return t===null||Y(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceMeta`),d(t)):t===96&&t===s?n(t):(e.consume(t),m)}function h(t){return e.attempt(i,b,g)(t)}function g(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),_}function _(t){return a>0&&Z(t)?Q(e,v,`linePrefix`,a+1)(t):v(t)}function v(t){return t===null||Y(t)?e.check(mo,h,b)(t):(e.enter(`codeFlowValue`),y(t))}function y(t){return t===null||Y(t)?(e.exit(`codeFlowValue`),v(t)):(e.consume(t),y)}function b(n){return e.exit(`codeFenced`),t(n)}function x(e,t,n){let i=0;return a;function a(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),c}function c(t){return e.enter(`codeFencedFence`),Z(t)?Q(e,l,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):l(t)}function l(t){return t===s?(e.enter(`codeFencedFenceSequence`),u(t)):n(t)}function u(t){return t===s?(i++,e.consume(t),u):i>=o?(e.exit(`codeFencedFenceSequence`),Z(t)?Q(e,d,`whitespace`)(t):d(t)):n(t)}function d(r){return r===null||Y(r)?(e.exit(`codeFencedFence`),t(r)):n(r)}}}function _o(e,t,n){let r=this;return i;function i(t){return t===null?n(t):(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),a)}function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}var vo={name:`codeIndented`,tokenize:bo},yo={partial:!0,tokenize:xo};function bo(e,t,n){let r=this;return i;function i(t){return e.enter(`codeIndented`),Q(e,a,`linePrefix`,5)(t)}function a(e){let t=r.events[r.events.length-1];return t&&t[1].type===`linePrefix`&&t[2].sliceSerialize(t[1],!0).length>=4?o(e):n(e)}function o(t){return t===null?c(t):Y(t)?e.attempt(yo,o,c)(t):(e.enter(`codeFlowValue`),s(t))}function s(t){return t===null||Y(t)?(e.exit(`codeFlowValue`),o(t)):(e.consume(t),s)}function c(n){return e.exit(`codeIndented`),t(n)}}function xo(e,t,n){let r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):Y(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),i):Q(e,a,`linePrefix`,5)(t)}function a(e){let a=r.events[r.events.length-1];return a&&a[1].type===`linePrefix`&&a[2].sliceSerialize(a[1],!0).length>=4?t(e):Y(e)?i(e):n(e)}}var So={name:`codeText`,previous:wo,resolve:Co,tokenize:To};function Co(e){let t=e.length-4,n=3,r,i;if((e[n][1].type===`lineEnding`||e[n][1].type===`space`)&&(e[t][1].type===`lineEnding`||e[t][1].type===`space`)){for(r=n;++r<t;)if(e[r][1].type===`codeTextData`){e[n][1].type=`codeTextPadding`,e[t][1].type=`codeTextPadding`,n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!==`lineEnding`&&(i=r):(r===t||e[r][1].type===`lineEnding`)&&(e[i][1].type=`codeTextData`,r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function wo(e){return e!==96||this.events[this.events.length-1][1].type===`characterEscape`}function To(e,t,n){let r=0,i,a;return o;function o(t){return e.enter(`codeText`),e.enter(`codeTextSequence`),s(t)}function s(t){return t===96?(e.consume(t),r++,s):(e.exit(`codeTextSequence`),c(t))}function c(t){return t===null?n(t):t===32?(e.enter(`space`),e.consume(t),e.exit(`space`),c):t===96?(a=e.enter(`codeTextSequence`),i=0,u(t)):Y(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),c):(e.enter(`codeTextData`),l(t))}function l(t){return t===null||t===32||t===96||Y(t)?(e.exit(`codeTextData`),c(t)):(e.consume(t),l)}function u(n){return n===96?(e.consume(n),i++,u):i===r?(e.exit(`codeTextSequence`),e.exit(`codeText`),t(n)):(a.type=`codeTextData`,l(n))}}var Eo=class{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){let n=t??1/0;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){let r=t||0;this.setCursor(Math.trunc(e));let i=this.right.splice(this.right.length-r,1/0);return n&&Do(this.left,n),i.reverse()}pop(){return this.setCursor(1/0),this.left.pop()}push(e){this.setCursor(1/0),this.left.push(e)}pushMany(e){this.setCursor(1/0),Do(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),Do(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&this.right.length===0||e<0&&this.left.length===0))if(e<this.left.length){let t=this.left.splice(e,1/0);Do(this.right,t.reverse())}else{let t=this.right.splice(this.left.length+this.right.length-e,1/0);Do(this.left,t.reverse())}}};function Do(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function Oo(e){let t={},n=-1,r,i,a,o,s,c,l,u=new Eo(e);for(;++n<u.length;){for(;n in t;)n=t[n];if(r=u.get(n),n&&r[1].type===`chunkFlow`&&u.get(n-1)[1].type===`listItemPrefix`&&(c=r[1]._tokenizer.events,a=0,a<c.length&&c[a][1].type===`lineEndingBlank`&&(a+=2),a<c.length&&c[a][1].type===`content`))for(;++a<c.length&&c[a][1].type!==`content`;)c[a][1].type===`chunkText`&&(c[a][1]._isInFirstContentOfListItem=!0,a++);if(r[0]===`enter`)r[1].contentType&&(Object.assign(t,ko(u,n)),n=t[n],l=!0);else if(r[1]._container){for(a=n,i=void 0;a--;)if(o=u.get(a),o[1].type===`lineEnding`||o[1].type===`lineEndingBlank`)o[0]===`enter`&&(i&&(u.get(i)[1].type=`lineEndingBlank`),o[1].type=`lineEnding`,i=a);else if(!(o[1].type===`linePrefix`||o[1].type===`listItemIndent`))break;i&&(r[1].end={...u.get(i)[1].start},s=u.slice(i,n),s.unshift(r),u.splice(i,n-i+1,s))}}return wa(e,0,1/0,u.slice(0)),!l}function ko(e,t){let n=e.get(t)[1],r=e.get(t)[2],i=t-1,a=[],o=n._tokenizer;o||(o=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));let s=o.events,c=[],l={},u,d,f=-1,p=n,m=0,h=0,g=[h];for(;p;){for(;e.get(++i)[1]!==p;);a.push(i),p._tokenizer||(u=r.sliceStream(p),p.next||u.push(null),d&&o.defineSkip(p.start),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(u),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),d=p,p=p.next}for(p=n;++f<s.length;)s[f][0]===`exit`&&s[f-1][0]===`enter`&&s[f][1].type===s[f-1][1].type&&s[f][1].start.line!==s[f][1].end.line&&(h=f+1,g.push(h),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(o.events=[],p?(p._tokenizer=void 0,p.previous=void 0):g.pop(),f=g.length;f--;){let t=s.slice(g[f],g[f+1]),n=a.pop();c.push([n,n+t.length-1]),e.splice(n,2,t)}for(c.reverse(),f=-1;++f<c.length;)l[m+c[f][0]]=m+c[f][1],m+=c[f][1]-c[f][0]-1;return l}var Ao={resolve:Mo,tokenize:No},jo={partial:!0,tokenize:Po};function Mo(e){return Oo(e),e}function No(e,t){let n;return r;function r(t){return e.enter(`content`),n=e.enter(`chunkContent`,{contentType:`content`}),i(t)}function i(t){return t===null?a(t):Y(t)?e.check(jo,o,a)(t):(e.consume(t),i)}function a(n){return e.exit(`chunkContent`),e.exit(`content`),t(n)}function o(t){return e.consume(t),e.exit(`chunkContent`),n.next=e.enter(`chunkContent`,{contentType:`content`,previous:n}),n=n.next,i}}function Po(e,t,n){let r=this;return i;function i(t){return e.exit(`chunkContent`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),Q(e,a,`linePrefix`)}function a(i){if(i===null||Y(i))return n(i);let a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes(`codeIndented`)&&a&&a[1].type===`linePrefix`&&a[2].sliceSerialize(a[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}function Fo(e,t,n,r,i,a,o,s,c){let l=c||1/0,u=0;return d;function d(t){return t===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(t),e.exit(a),f):t===null||t===32||t===41||Fa(t)?n(t):(e.enter(r),e.enter(o),e.enter(s),e.enter(`chunkString`,{contentType:`string`}),h(t))}function f(n){return n===62?(e.enter(a),e.consume(n),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(s),e.enter(`chunkString`,{contentType:`string`}),p(n))}function p(t){return t===62?(e.exit(`chunkString`),e.exit(s),f(t)):t===null||t===60||Y(t)?n(t):(e.consume(t),t===92?m:p)}function m(t){return t===60||t===62||t===92?(e.consume(t),p):p(t)}function h(i){return!u&&(i===null||i===41||X(i))?(e.exit(`chunkString`),e.exit(s),e.exit(o),e.exit(r),t(i)):u<l&&i===40?(e.consume(i),u++,h):i===41?(e.consume(i),u--,h):i===null||i===32||i===40||Fa(i)?n(i):(e.consume(i),i===92?g:h)}function g(t){return t===40||t===41||t===92?(e.consume(t),h):h(t)}}function Io(e,t,n,r,i,a){let o=this,s=0,c;return l;function l(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),e.enter(a),u}function u(l){return s>999||l===null||l===91||l===93&&!c||l===94&&!s&&`_hiddenFootnoteSupport`in o.parser.constructs?n(l):l===93?(e.exit(a),e.enter(i),e.consume(l),e.exit(i),e.exit(r),t):Y(l)?(e.enter(`lineEnding`),e.consume(l),e.exit(`lineEnding`),u):(e.enter(`chunkString`,{contentType:`string`}),d(l))}function d(t){return t===null||t===91||t===93||Y(t)||s++>999?(e.exit(`chunkString`),u(t)):(e.consume(t),c||=!Z(t),t===92?f:d)}function f(t){return t===91||t===92||t===93?(e.consume(t),s++,d):d(t)}}function Lo(e,t,n,r,i,a){let o;return s;function s(t){return t===34||t===39||t===40?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),o=t===40?41:t,c):n(t)}function c(n){return n===o?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(a),l(n))}function l(t){return t===o?(e.exit(a),c(o)):t===null?n(t):Y(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),Q(e,l,`linePrefix`)):(e.enter(`chunkString`,{contentType:`string`}),u(t))}function u(t){return t===o||t===null||Y(t)?(e.exit(`chunkString`),l(t)):(e.consume(t),t===92?d:u)}function d(t){return t===o||t===92?(e.consume(t),u):u(t)}}function Ro(e,t){let n;return r;function r(i){return Y(i)?(e.enter(`lineEnding`),e.consume(i),e.exit(`lineEnding`),n=!0,r):Z(i)?Q(e,r,n?`linePrefix`:`lineSuffix`)(i):t(i)}}var zo={name:`definition`,tokenize:Vo},Bo={partial:!0,tokenize:Ho};function Vo(e,t,n){let r=this,i;return a;function a(t){return e.enter(`definition`),o(t)}function o(t){return Io.call(r,e,s,n,`definitionLabel`,`definitionLabelMarker`,`definitionLabelString`)(t)}function s(t){return i=ja(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),t===58?(e.enter(`definitionMarker`),e.consume(t),e.exit(`definitionMarker`),c):n(t)}function c(t){return X(t)?Ro(e,l)(t):l(t)}function l(t){return Fo(e,u,n,`definitionDestination`,`definitionDestinationLiteral`,`definitionDestinationLiteralMarker`,`definitionDestinationRaw`,`definitionDestinationString`)(t)}function u(t){return e.attempt(Bo,d,d)(t)}function d(t){return Z(t)?Q(e,f,`whitespace`)(t):f(t)}function f(a){return a===null||Y(a)?(e.exit(`definition`),r.parser.defined.push(i),t(a)):n(a)}}function Ho(e,t,n){return r;function r(t){return X(t)?Ro(e,i)(t):n(t)}function i(t){return Lo(e,a,n,`definitionTitle`,`definitionTitleMarker`,`definitionTitleString`)(t)}function a(t){return Z(t)?Q(e,o,`whitespace`)(t):o(t)}function o(e){return e===null||Y(e)?t(e):n(e)}}var Uo={name:`hardBreakEscape`,tokenize:Wo};function Wo(e,t,n){return r;function r(t){return e.enter(`hardBreakEscape`),e.consume(t),i}function i(r){return Y(r)?(e.exit(`hardBreakEscape`),t(r)):n(r)}}var Go={name:`headingAtx`,resolve:Ko,tokenize:qo};function Ko(e,t){let n=e.length-2,r=3,i,a;return e[r][1].type===`whitespace`&&(r+=2),n-2>r&&e[n][1].type===`whitespace`&&(n-=2),e[n][1].type===`atxHeadingSequence`&&(r===n-1||n-4>r&&e[n-2][1].type===`whitespace`)&&(n-=r+1===n?2:4),n>r&&(i={type:`atxHeadingText`,start:e[r][1].start,end:e[n][1].end},a={type:`chunkText`,start:e[r][1].start,end:e[n][1].end,contentType:`text`},wa(e,r,n-r+1,[[`enter`,i,t],[`enter`,a,t],[`exit`,a,t],[`exit`,i,t]])),e}function qo(e,t,n){let r=0;return i;function i(t){return e.enter(`atxHeading`),a(t)}function a(t){return e.enter(`atxHeadingSequence`),o(t)}function o(t){return t===35&&r++<6?(e.consume(t),o):t===null||X(t)?(e.exit(`atxHeadingSequence`),s(t)):n(t)}function s(n){return n===35?(e.enter(`atxHeadingSequence`),c(n)):n===null||Y(n)?(e.exit(`atxHeading`),t(n)):Z(n)?Q(e,s,`whitespace`)(n):(e.enter(`atxHeadingText`),l(n))}function c(t){return t===35?(e.consume(t),c):(e.exit(`atxHeadingSequence`),s(t))}function l(t){return t===null||t===35||X(t)?(e.exit(`atxHeadingText`),s(t)):(e.consume(t),l)}}var Jo=`address.article.aside.base.basefont.blockquote.body.caption.center.col.colgroup.dd.details.dialog.dir.div.dl.dt.fieldset.figcaption.figure.footer.form.frame.frameset.h1.h2.h3.h4.h5.h6.head.header.hr.html.iframe.legend.li.link.main.menu.menuitem.nav.noframes.ol.optgroup.option.p.param.search.section.summary.table.tbody.td.tfoot.th.thead.title.tr.track.ul`.split(`.`),Yo=[`pre`,`script`,`style`,`textarea`],Xo={concrete:!0,name:`htmlFlow`,resolveTo:$o,tokenize:es},Zo={partial:!0,tokenize:ns},Qo={partial:!0,tokenize:ts};function $o(e){let t=e.length;for(;t--&&!(e[t][0]===`enter`&&e[t][1].type===`htmlFlow`););return t>1&&e[t-2][1].type===`linePrefix`&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function es(e,t,n){let r=this,i,a,o,s,c;return l;function l(e){return u(e)}function u(t){return e.enter(`htmlFlow`),e.enter(`htmlFlowData`),e.consume(t),d}function d(s){return s===33?(e.consume(s),f):s===47?(e.consume(s),a=!0,h):s===63?(e.consume(s),i=3,r.interrupt?t:M):Ma(s)?(e.consume(s),o=String.fromCharCode(s),g):n(s)}function f(a){return a===45?(e.consume(a),i=2,p):a===91?(e.consume(a),i=5,s=0,m):Ma(a)?(e.consume(a),i=4,r.interrupt?t:M):n(a)}function p(i){return i===45?(e.consume(i),r.interrupt?t:M):n(i)}function m(i){return i===`CDATA[`.charCodeAt(s++)?(e.consume(i),s===6?r.interrupt?t:O:m):n(i)}function h(t){return Ma(t)?(e.consume(t),o=String.fromCharCode(t),g):n(t)}function g(s){if(s===null||s===47||s===62||X(s)){let c=s===47,l=o.toLowerCase();return!c&&!a&&Yo.includes(l)?(i=1,r.interrupt?t(s):O(s)):Jo.includes(o.toLowerCase())?(i=6,c?(e.consume(s),_):r.interrupt?t(s):O(s)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(s):a?v(s):y(s))}return s===45||Na(s)?(e.consume(s),o+=String.fromCharCode(s),g):n(s)}function _(i){return i===62?(e.consume(i),r.interrupt?t:O):n(i)}function v(t){return Z(t)?(e.consume(t),v):E(t)}function y(t){return t===47?(e.consume(t),E):t===58||t===95||Ma(t)?(e.consume(t),b):Z(t)?(e.consume(t),y):E(t)}function b(t){return t===45||t===46||t===58||t===95||Na(t)?(e.consume(t),b):x(t)}function x(t){return t===61?(e.consume(t),S):Z(t)?(e.consume(t),x):y(t)}function S(t){return t===null||t===60||t===61||t===62||t===96?n(t):t===34||t===39?(e.consume(t),c=t,C):Z(t)?(e.consume(t),S):w(t)}function C(t){return t===c?(e.consume(t),c=null,T):t===null||Y(t)?n(t):(e.consume(t),C)}function w(t){return t===null||t===34||t===39||t===47||t===60||t===61||t===62||t===96||X(t)?x(t):(e.consume(t),w)}function T(e){return e===47||e===62||Z(e)?y(e):n(e)}function E(t){return t===62?(e.consume(t),D):n(t)}function D(t){return t===null||Y(t)?O(t):Z(t)?(e.consume(t),D):n(t)}function O(t){return t===45&&i===2?(e.consume(t),A):t===60&&i===1?(e.consume(t),j):t===62&&i===4?(e.consume(t),ie):t===63&&i===3?(e.consume(t),M):t===93&&i===5?(e.consume(t),re):Y(t)&&(i===6||i===7)?(e.exit(`htmlFlowData`),e.check(Zo,ae,ee)(t)):t===null||Y(t)?(e.exit(`htmlFlowData`),ee(t)):(e.consume(t),O)}function ee(t){return e.check(Qo,te,ae)(t)}function te(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),k}function k(t){return t===null||Y(t)?ee(t):(e.enter(`htmlFlowData`),O(t))}function A(t){return t===45?(e.consume(t),M):O(t)}function j(t){return t===47?(e.consume(t),o=``,ne):O(t)}function ne(t){if(t===62){let n=o.toLowerCase();return Yo.includes(n)?(e.consume(t),ie):O(t)}return Ma(t)&&o.length<8?(e.consume(t),o+=String.fromCharCode(t),ne):O(t)}function re(t){return t===93?(e.consume(t),M):O(t)}function M(t){return t===62?(e.consume(t),ie):t===45&&i===2?(e.consume(t),M):O(t)}function ie(t){return t===null||Y(t)?(e.exit(`htmlFlowData`),ae(t)):(e.consume(t),ie)}function ae(n){return e.exit(`htmlFlow`),t(n)}}function ts(e,t,n){let r=this;return i;function i(t){return Y(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),a):n(t)}function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}function ns(e,t,n){return r;function r(r){return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),e.attempt(ro,t,n)}}var rs={name:`htmlText`,tokenize:is};function is(e,t,n){let r=this,i,a,o;return s;function s(t){return e.enter(`htmlText`),e.enter(`htmlTextData`),e.consume(t),c}function c(t){return t===33?(e.consume(t),l):t===47?(e.consume(t),x):t===63?(e.consume(t),y):Ma(t)?(e.consume(t),w):n(t)}function l(t){return t===45?(e.consume(t),u):t===91?(e.consume(t),a=0,m):Ma(t)?(e.consume(t),v):n(t)}function u(t){return t===45?(e.consume(t),p):n(t)}function d(t){return t===null?n(t):t===45?(e.consume(t),f):Y(t)?(o=d,j(t)):(e.consume(t),d)}function f(t){return t===45?(e.consume(t),p):d(t)}function p(e){return e===62?A(e):e===45?f(e):d(e)}function m(t){return t===`CDATA[`.charCodeAt(a++)?(e.consume(t),a===6?h:m):n(t)}function h(t){return t===null?n(t):t===93?(e.consume(t),g):Y(t)?(o=h,j(t)):(e.consume(t),h)}function g(t){return t===93?(e.consume(t),_):h(t)}function _(t){return t===62?A(t):t===93?(e.consume(t),_):h(t)}function v(t){return t===null||t===62?A(t):Y(t)?(o=v,j(t)):(e.consume(t),v)}function y(t){return t===null?n(t):t===63?(e.consume(t),b):Y(t)?(o=y,j(t)):(e.consume(t),y)}function b(e){return e===62?A(e):y(e)}function x(t){return Ma(t)?(e.consume(t),S):n(t)}function S(t){return t===45||Na(t)?(e.consume(t),S):C(t)}function C(t){return Y(t)?(o=C,j(t)):Z(t)?(e.consume(t),C):A(t)}function w(t){return t===45||Na(t)?(e.consume(t),w):t===47||t===62||X(t)?T(t):n(t)}function T(t){return t===47?(e.consume(t),A):t===58||t===95||Ma(t)?(e.consume(t),E):Y(t)?(o=T,j(t)):Z(t)?(e.consume(t),T):A(t)}function E(t){return t===45||t===46||t===58||t===95||Na(t)?(e.consume(t),E):D(t)}function D(t){return t===61?(e.consume(t),O):Y(t)?(o=D,j(t)):Z(t)?(e.consume(t),D):T(t)}function O(t){return t===null||t===60||t===61||t===62||t===96?n(t):t===34||t===39?(e.consume(t),i=t,ee):Y(t)?(o=O,j(t)):Z(t)?(e.consume(t),O):(e.consume(t),te)}function ee(t){return t===i?(e.consume(t),i=void 0,k):t===null?n(t):Y(t)?(o=ee,j(t)):(e.consume(t),ee)}function te(t){return t===null||t===34||t===39||t===60||t===61||t===96?n(t):t===47||t===62||X(t)?T(t):(e.consume(t),te)}function k(e){return e===47||e===62||X(e)?T(e):n(e)}function A(r){return r===62?(e.consume(r),e.exit(`htmlTextData`),e.exit(`htmlText`),t):n(r)}function j(t){return e.exit(`htmlTextData`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),ne}function ne(t){return Z(t)?Q(e,re,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):re(t)}function re(t){return e.enter(`htmlTextData`),o(t)}}var as={name:`labelEnd`,resolveAll:ls,resolveTo:us,tokenize:ds},os={tokenize:fs},ss={tokenize:ps},cs={tokenize:ms};function ls(e){let t=-1,n=[];for(;++t<e.length;){let r=e[t][1];if(n.push(e[t]),r.type===`labelImage`||r.type===`labelLink`||r.type===`labelEnd`){let e=r.type===`labelImage`?4:2;r.type=`data`,t+=e}}return e.length!==n.length&&wa(e,0,e.length,n),e}function us(e,t){let n=e.length,r=0,i,a,o,s;for(;n--;)if(i=e[n][1],a){if(i.type===`link`||i.type===`labelLink`&&i._inactive)break;e[n][0]===`enter`&&i.type===`labelLink`&&(i._inactive=!0)}else if(o){if(e[n][0]===`enter`&&(i.type===`labelImage`||i.type===`labelLink`)&&!i._balanced&&(a=n,i.type!==`labelLink`)){r=2;break}}else i.type===`labelEnd`&&(o=n);let c={type:e[a][1].type===`labelLink`?`link`:`image`,start:{...e[a][1].start},end:{...e[e.length-1][1].end}},l={type:`label`,start:{...e[a][1].start},end:{...e[o][1].end}},u={type:`labelText`,start:{...e[a+r+2][1].end},end:{...e[o-2][1].start}};return s=[[`enter`,c,t],[`enter`,l,t]],s=Ta(s,e.slice(a+1,a+r+3)),s=Ta(s,[[`enter`,u,t]]),s=Ta(s,Xa(t.parser.constructs.insideSpan.null,e.slice(a+r+4,o-3),t)),s=Ta(s,[[`exit`,u,t],e[o-2],e[o-1],[`exit`,l,t]]),s=Ta(s,e.slice(o+1)),s=Ta(s,[[`exit`,c,t]]),wa(e,a,e.length,s),e}function ds(e,t,n){let r=this,i=r.events.length,a,o;for(;i--;)if((r.events[i][1].type===`labelImage`||r.events[i][1].type===`labelLink`)&&!r.events[i][1]._balanced){a=r.events[i][1];break}return s;function s(t){return a?a._inactive?d(t):(o=r.parser.defined.includes(ja(r.sliceSerialize({start:a.end,end:r.now()}))),e.enter(`labelEnd`),e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),e.exit(`labelEnd`),c):n(t)}function c(t){return t===40?e.attempt(os,u,o?u:d)(t):t===91?e.attempt(ss,u,o?l:d)(t):o?u(t):d(t)}function l(t){return e.attempt(cs,u,d)(t)}function u(e){return t(e)}function d(e){return a._balanced=!0,n(e)}}function fs(e,t,n){return r;function r(t){return e.enter(`resource`),e.enter(`resourceMarker`),e.consume(t),e.exit(`resourceMarker`),i}function i(t){return X(t)?Ro(e,a)(t):a(t)}function a(t){return t===41?u(t):Fo(e,o,s,`resourceDestination`,`resourceDestinationLiteral`,`resourceDestinationLiteralMarker`,`resourceDestinationRaw`,`resourceDestinationString`,32)(t)}function o(t){return X(t)?Ro(e,c)(t):u(t)}function s(e){return n(e)}function c(t){return t===34||t===39||t===40?Lo(e,l,n,`resourceTitle`,`resourceTitleMarker`,`resourceTitleString`)(t):u(t)}function l(t){return X(t)?Ro(e,u)(t):u(t)}function u(r){return r===41?(e.enter(`resourceMarker`),e.consume(r),e.exit(`resourceMarker`),e.exit(`resource`),t):n(r)}}function ps(e,t,n){let r=this;return i;function i(t){return Io.call(r,e,a,o,`reference`,`referenceMarker`,`referenceString`)(t)}function a(e){return r.parser.defined.includes(ja(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function o(e){return n(e)}}function ms(e,t,n){return r;function r(t){return e.enter(`reference`),e.enter(`referenceMarker`),e.consume(t),e.exit(`referenceMarker`),i}function i(r){return r===93?(e.enter(`referenceMarker`),e.consume(r),e.exit(`referenceMarker`),e.exit(`reference`),t):n(r)}}var hs={name:`labelStartImage`,resolveAll:as.resolveAll,tokenize:gs};function gs(e,t,n){let r=this;return i;function i(t){return e.enter(`labelImage`),e.enter(`labelImageMarker`),e.consume(t),e.exit(`labelImageMarker`),a}function a(t){return t===91?(e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),e.exit(`labelImage`),o):n(t)}function o(e){return e===94&&`_hiddenFootnoteSupport`in r.parser.constructs?n(e):t(e)}}var _s={name:`labelStartLink`,resolveAll:as.resolveAll,tokenize:vs};function vs(e,t,n){let r=this;return i;function i(t){return e.enter(`labelLink`),e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),e.exit(`labelLink`),a}function a(e){return e===94&&`_hiddenFootnoteSupport`in r.parser.constructs?n(e):t(e)}}var ys={name:`lineEnding`,tokenize:bs};function bs(e,t){return n;function n(n){return e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),Q(e,t,`linePrefix`)}}var xs={name:`thematicBreak`,tokenize:Ss};function Ss(e,t,n){let r=0,i;return a;function a(t){return e.enter(`thematicBreak`),o(t)}function o(e){return i=e,s(e)}function s(a){return a===i?(e.enter(`thematicBreakSequence`),c(a)):r>=3&&(a===null||Y(a))?(e.exit(`thematicBreak`),t(a)):n(a)}function c(t){return t===i?(e.consume(t),r++,c):(e.exit(`thematicBreakSequence`),Z(t)?Q(e,s,`whitespace`)(t):s(t))}}var $={continuation:{tokenize:Es},exit:Os,name:`list`,tokenize:Ts},Cs={partial:!0,tokenize:ks},ws={partial:!0,tokenize:Ds};function Ts(e,t,n){let r=this,i=r.events[r.events.length-1],a=i&&i[1].type===`linePrefix`?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(t){let i=r.containerState.type||(t===42||t===43||t===45?`listUnordered`:`listOrdered`);if(i===`listUnordered`?!r.containerState.marker||t===r.containerState.marker:Ia(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),i===`listUnordered`)return e.enter(`listItemPrefix`),t===42||t===45?e.check(xs,n,l)(t):l(t);if(!r.interrupt||t===49)return e.enter(`listItemPrefix`),e.enter(`listItemValue`),c(t)}return n(t)}function c(t){return Ia(t)&&++o<10?(e.consume(t),c):(!r.interrupt||o<2)&&(r.containerState.marker?t===r.containerState.marker:t===41||t===46)?(e.exit(`listItemValue`),l(t)):n(t)}function l(t){return e.enter(`listItemMarker`),e.consume(t),e.exit(`listItemMarker`),r.containerState.marker=r.containerState.marker||t,e.check(ro,r.interrupt?n:u,e.attempt(Cs,f,d))}function u(e){return r.containerState.initialBlankLine=!0,a++,f(e)}function d(t){return Z(t)?(e.enter(`listItemPrefixWhitespace`),e.consume(t),e.exit(`listItemPrefixWhitespace`),f):n(t)}function f(n){return r.containerState.size=a+r.sliceSerialize(e.exit(`listItemPrefix`),!0).length,t(n)}}function Es(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(ro,i,a);function i(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Q(e,t,`listItemIndent`,r.containerState.size+1)(n)}function a(n){return r.containerState.furtherBlankLines||!Z(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(ws,t,o)(n))}function o(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,Q(e,e.attempt($,t,n),`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(i)}}function Ds(e,t,n){let r=this;return Q(e,i,`listItemIndent`,r.containerState.size+1);function i(e){let i=r.events[r.events.length-1];return i&&i[1].type===`listItemIndent`&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)}}function Os(e){e.exit(this.containerState.type)}function ks(e,t,n){let r=this;return Q(e,i,`listItemPrefixWhitespace`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:5);function i(e){let i=r.events[r.events.length-1];return!Z(e)&&i&&i[1].type===`listItemPrefixWhitespace`?t(e):n(e)}}var As={name:`setextUnderline`,resolveTo:js,tokenize:Ms};function js(e,t){let n=e.length,r,i,a;for(;n--;)if(e[n][0]===`enter`){if(e[n][1].type===`content`){r=n;break}e[n][1].type===`paragraph`&&(i=n)}else e[n][1].type===`content`&&e.splice(n,1),!a&&e[n][1].type===`definition`&&(a=n);let o={type:`setextHeading`,start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type=`setextHeadingText`,a?(e.splice(i,0,[`enter`,o,t]),e.splice(a+1,0,[`exit`,e[r][1],t]),e[r][1].end={...e[a][1].end}):e[r][1]=o,e.push([`exit`,o,t]),e}function Ms(e,t,n){let r=this,i;return a;function a(t){let a=r.events.length,s;for(;a--;)if(r.events[a][1].type!==`lineEnding`&&r.events[a][1].type!==`linePrefix`&&r.events[a][1].type!==`content`){s=r.events[a][1].type===`paragraph`;break}return!r.parser.lazy[r.now().line]&&(r.interrupt||s)?(e.enter(`setextHeadingLine`),i=t,o(t)):n(t)}function o(t){return e.enter(`setextHeadingLineSequence`),s(t)}function s(t){return t===i?(e.consume(t),s):(e.exit(`setextHeadingLineSequence`),Z(t)?Q(e,c,`lineSuffix`)(t):c(t))}function c(r){return r===null||Y(r)?(e.exit(`setextHeadingLine`),t(r)):n(r)}}var Ns={tokenize:Ps};function Ps(e){let t=this,n=e.attempt(ro,r,e.attempt(this.parser.constructs.flowInitial,i,Q(e,e.attempt(this.parser.constructs.flow,i,e.attempt(Ao,i)),`linePrefix`)));return n;function r(r){if(r===null){e.consume(r);return}return e.enter(`lineEndingBlank`),e.consume(r),e.exit(`lineEndingBlank`),t.currentConstruct=void 0,n}function i(r){if(r===null){e.consume(r);return}return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),t.currentConstruct=void 0,n}}var Fs={resolveAll:zs()},Is=Rs(`string`),Ls=Rs(`text`);function Rs(e){return{resolveAll:zs(e===`text`?Bs:void 0),tokenize:t};function t(t){let n=this,r=this.parser.constructs[e],i=t.attempt(r,a,o);return a;function a(e){return c(e)?i(e):o(e)}function o(e){if(e===null){t.consume(e);return}return t.enter(`data`),t.consume(e),s}function s(e){return c(e)?(t.exit(`data`),i(e)):(t.consume(e),s)}function c(e){if(e===null)return!0;let t=r[e],i=-1;if(t)for(;++i<t.length;){let e=t[i];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}function zs(e){return t;function t(t,n){let r=-1,i;for(;++r<=t.length;)i===void 0?t[r]&&t[r][1].type===`data`&&(i=r,r++):(!t[r]||t[r][1].type!==`data`)&&(r!==i+2&&(t[i][1].end=t[r-1][1].end,t.splice(i+2,r-i-2),r=i+2),i=void 0);return e?e(t,n):t}}function Bs(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type===`lineEnding`)&&e[n-1][1].type===`data`){let r=e[n-1][1],i=t.sliceStream(r),a=i.length,o=-1,s=0,c;for(;a--;){let e=i[a];if(typeof e==`string`){for(o=e.length;e.charCodeAt(o-1)===32;)s++,o--;if(o)break;o=-1}else if(e===-2)c=!0,s++;else if(e!==-1){a++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(s=0),s){let i={type:n===e.length||c||s<2?`lineSuffix`:`hardBreakTrailing`,start:{_bufferIndex:a?o:r.start._bufferIndex+o,_index:r.start._index+a,line:r.end.line,column:r.end.column-s,offset:r.end.offset-s},end:{...r.end}};r.end={...i.start},r.start.offset===r.end.offset?Object.assign(r,i):(e.splice(n,0,[`enter`,i,t],[`exit`,i,t]),n+=2)}n++}return e}var Vs=s({attentionMarkers:()=>Ys,contentInitial:()=>Us,disable:()=>Xs,document:()=>Hs,flow:()=>Gs,flowInitial:()=>Ws,insideSpan:()=>Js,string:()=>Ks,text:()=>qs}),Hs={42:$,43:$,45:$,48:$,49:$,50:$,51:$,52:$,53:$,54:$,55:$,56:$,57:$,62:ao},Us={91:zo},Ws={[-2]:vo,[-1]:vo,32:vo},Gs={35:Go,42:xs,45:[As,xs],60:Xo,61:As,95:xs,96:ho,126:ho},Ks={38:fo,92:lo},qs={[-5]:ys,[-4]:ys,[-3]:ys,33:hs,38:fo,42:Za,60:[to,rs],91:_s,92:[Uo,lo],93:as,95:Za,96:So},Js={null:[Za,Fs]},Ys={null:[42,95]},Xs={null:[]};function Zs(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0},i={},a=[],o=[],s=[],c={attempt:C(x),check:C(S),consume:v,enter:y,exit:b,interrupt:C(S,{interrupt:!0})},l={code:null,containerState:{},defineSkip:h,events:[],now:m,parser:e,previous:null,sliceSerialize:f,sliceStream:p,write:d},u=t.tokenize.call(l,c);return t.resolveAll&&a.push(t),l;function d(e){return o=Ta(o,e),g(),o[o.length-1]===null?(w(t,0),l.events=Xa(a,l.events,l),l.events):[]}function f(e,t){return $s(p(e),t)}function p(e){return Qs(o,e)}function m(){let{_bufferIndex:e,_index:t,line:n,column:i,offset:a}=r;return{_bufferIndex:e,_index:t,line:n,column:i,offset:a}}function h(e){i[e.line]=e.column,E()}function g(){let e;for(;r._index<o.length;){let t=o[r._index];if(typeof t==`string`)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<t.length;)_(t.charCodeAt(r._bufferIndex));else _(t)}}function _(e){u=u(e)}function v(e){Y(e)?(r.line++,r.column=1,r.offset+=e===-3?2:1,E()):e!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),l.previous=e}function y(e,t){let n=t||{};return n.type=e,n.start=m(),l.events.push([`enter`,n,l]),s.push(n),n}function b(e){let t=s.pop();return t.end=m(),l.events.push([`exit`,t,l]),t}function x(e,t){w(e,t.from)}function S(e,t){t.restore()}function C(e,t){return n;function n(n,r,i){let a,o,s,u;return Array.isArray(n)?f(n):`tokenize`in n?f([n]):d(n);function d(e){return t;function t(t){let n=t!==null&&e[t],r=t!==null&&e.null;return f([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(r)?r:r?[r]:[]])(t)}}function f(e){return a=e,o=0,e.length===0?i:p(e[o])}function p(e){return n;function n(n){return u=T(),s=e,e.partial||(l.currentConstruct=e),e.name&&l.parser.constructs.disable.null.includes(e.name)?h(n):e.tokenize.call(t?Object.assign(Object.create(l),t):l,c,m,h)(n)}}function m(t){return e(s,u),r}function h(e){return u.restore(),++o<a.length?p(a[o]):i}}}function w(e,t){e.resolveAll&&!a.includes(e)&&a.push(e),e.resolve&&wa(l.events,t,l.events.length-t,e.resolve(l.events.slice(t),l)),e.resolveTo&&(l.events=e.resolveTo(l.events,l))}function T(){let e=m(),t=l.previous,n=l.currentConstruct,i=l.events.length,a=Array.from(s);return{from:i,restore:o};function o(){r=e,l.previous=t,l.currentConstruct=n,l.events.length=i,s=a,E()}}function E(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function Qs(e,t){let n=t.start._index,r=t.start._bufferIndex,i=t.end._index,a=t.end._bufferIndex,o;if(n===i)o=[e[n].slice(r,a)];else{if(o=e.slice(n,i),r>-1){let e=o[0];typeof e==`string`?o[0]=e.slice(r):o.shift()}a>0&&o.push(e[i].slice(0,a))}return o}function $s(e,t){let n=-1,r=[],i;for(;++n<e.length;){let a=e[n],o;if(typeof a==`string`)o=a;else switch(a){case-5:o=`\r`;break;case-4:o=`
|
|
3
3
|
`;break;case-3:o=`\r
|
|
4
|
-
`;break;case-2:o=t?` `:` `;break;case-1:if(!t&&i)continue;o=` `;break;default:o=String.fromCharCode(a)}i=a===-2,r.push(o)}return r.join(``)}function ec(e){let t={constructs:Oa([Vs,...(e||{}).extensions||[]]),content:n(Ua),defined:[],document:n(Ga),flow:n(Ns),lazy:{},string:n(Is),text:n(Ls)};return t;function n(e){return n;function n(n){return Zs(t,e,n)}}}function tc(e){for(;!Oo(e););return e}var nc=/[\0\t\n\r]/g;function rc(){let e=1,t=``,n=!0,r;return i;function i(i,a,o){let s=[],c,l,u,d,f;for(i=t+(typeof i==`string`?i.toString():new TextDecoder(a||void 0).decode(i)),u=0,t=``,n&&=(i.charCodeAt(0)===65279&&u++,void 0);u<i.length;){if(nc.lastIndex=u,c=nc.exec(i),d=c&&c.index!==void 0?c.index:i.length,f=i.charCodeAt(d),!c){t=i.slice(u);break}if(f===10&&u===d&&r)s.push(-3),r=void 0;else switch(r&&=(s.push(-5),void 0),u<d&&(s.push(i.slice(u,d)),e+=d-u),f){case 0:s.push(65533),e++;break;case 9:for(l=Math.ceil(e/4)*4,s.push(-2);e++<l;)s.push(-1);break;case 10:s.push(-4),e=1;break;default:r=!0,e=1}u=d+1}return o&&(r&&s.push(-5),t&&s.push(t),s.push(null)),s}}var ic=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function ac(e){return e.replace(ic,oc)}function oc(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){let e=n.charCodeAt(1),t=e===120||e===88;return ja(n.slice(t?2:1),t?16:10)}return wa(n)||e}var sc={}.hasOwnProperty;function cc(e,t,n){return t&&typeof t==`object`&&(n=t,t=void 0),lc(n)(tc(ec(n).document().write(rc()(e,t,!0))))}function lc(e){let t={transforms:[],canContainEols:[`emphasis`,`fragment`,`heading`,`paragraph`,`strong`],enter:{autolink:a(be),autolinkProtocol:T,autolinkEmail:T,atxHeading:a(ge),blockQuote:a(de),characterEscape:T,characterReference:T,codeFenced:a(fe),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:a(fe,o),codeText:a(pe,o),codeTextData:T,data:T,codeFlowValue:T,definition:a(me),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:a(he),hardBreakEscape:a(_e),hardBreakTrailing:a(_e),htmlFlow:a(ve,o),htmlFlowData:T,htmlText:a(ve,o),htmlTextData:T,image:a(ye),label:o,link:a(be),listItem:a(Se),listItemValue:f,listOrdered:a(xe,d),listUnordered:a(xe),paragraph:a(Ce),reference:se,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:a(ge),strong:a(we),thematicBreak:a(Ee)},exit:{atxHeading:c(),atxHeadingSequence:x,autolink:c(),autolinkEmail:P,autolinkProtocol:ue,blockQuote:c(),characterEscapeValue:E,characterReferenceMarkerHexadecimal:M,characterReferenceMarkerNumeric:M,characterReferenceValue:N,characterReference:le,codeFenced:c(g),codeFencedFence:h,codeFencedFenceInfo:p,codeFencedFenceMeta:m,codeFlowValue:E,codeIndented:c(_),codeText:c(O),codeTextData:E,data:E,definition:c(),definitionDestinationString:b,definitionLabelString:v,definitionTitleString:y,emphasis:c(),hardBreakEscape:c(D),hardBreakTrailing:c(D),htmlFlow:c(te),htmlFlowData:E,htmlText:c(ne),htmlTextData:E,image:c(A),label:ie,labelText:re,lineEnding:ee,link:c(k),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:ce,resourceDestinationString:j,resourceTitleString:ae,resource:oe,setextHeading:c(w),setextHeadingLineSequence:C,setextHeadingText:S,strong:c(),thematicBreak:c()}};dc(t,(e||{}).mdastExtensions||[]);let n={};return r;function r(e){let r={type:`root`,children:[]},a={stack:[r],tokenStack:[],config:t,enter:s,exit:l,buffer:o,resume:u,data:n},c=[],d=-1;for(;++d<e.length;)(e[d][1].type===`listOrdered`||e[d][1].type===`listUnordered`)&&(e[d][0]===`enter`?c.push(d):d=i(e,c.pop(),d));for(d=-1;++d<e.length;){let n=t[e[d][0]];sc.call(n,e[d][1].type)&&n[e[d][1].type].call(Object.assign({sliceSerialize:e[d][2].sliceSerialize},a),e[d][1])}if(a.tokenStack.length>0){let e=a.tokenStack[a.tokenStack.length-1];(e[1]||pc).call(a,void 0,e[0])}for(r.position={start:uc(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:uc(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},d=-1;++d<t.transforms.length;)r=t.transforms[d](r)||r;return r}function i(e,t,n){let r=t-1,i=-1,a=!1,o,s,c,l;for(;++r<=n;){let t=e[r];switch(t[1].type){case`listUnordered`:case`listOrdered`:case`blockQuote`:t[0]===`enter`?i++:i--,l=void 0;break;case`lineEndingBlank`:t[0]===`enter`&&(o&&!l&&!i&&!c&&(c=r),l=void 0);break;case`linePrefix`:case`listItemValue`:case`listItemMarker`:case`listItemPrefix`:case`listItemPrefixWhitespace`:break;default:l=void 0}if(!i&&t[0]===`enter`&&t[1].type===`listItemPrefix`||i===-1&&t[0]===`exit`&&(t[1].type===`listUnordered`||t[1].type===`listOrdered`)){if(o){let i=r;for(s=void 0;i--;){let t=e[i];if(t[1].type===`lineEnding`||t[1].type===`lineEndingBlank`){if(t[0]===`exit`)continue;s&&(e[s][1].type=`lineEndingBlank`,a=!0),t[1].type=`lineEnding`,s=i}else if(!(t[1].type===`linePrefix`||t[1].type===`blockQuotePrefix`||t[1].type===`blockQuotePrefixWhitespace`||t[1].type===`blockQuoteMarker`||t[1].type===`listItemIndent`))break}c&&(!s||c<s)&&(o._spread=!0),o.end=Object.assign({},s?e[s][1].start:t[1].end),e.splice(s||r,0,[`exit`,o,t[2]]),r++,n++}if(t[1].type===`listItemPrefix`){let i={type:`listItem`,_spread:!1,start:Object.assign({},t[1].start),end:void 0};o=i,e.splice(r,0,[`enter`,i,t[2]]),r++,n++,c=void 0,l=!0}}}return e[t][1]._spread=a,n}function a(e,t){return n;function n(n){s.call(this,e(n),n),t&&t.call(this,n)}}function o(){this.stack.push({type:`fragment`,children:[]})}function s(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:uc(t.start),end:void 0}}function c(e){return t;function t(t){e&&e.call(this,t),l.call(this,t)}}function l(e,t){let n=this.stack.pop(),r=this.tokenStack.pop();if(r)r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||pc).call(this,e,r[0]));else throw Error("Cannot close `"+e.type+"` ("+zi({start:e.start,end:e.end})+`): it’s not open`);n.position.end=uc(e.end)}function u(){return ya(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function f(e){if(this.data.expectingFirstListItemValue){let t=this.stack[this.stack.length-2];t.start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0}}function p(){let e=this.resume(),t=this.stack[this.stack.length-1];t.lang=e}function m(){let e=this.resume(),t=this.stack[this.stack.length-1];t.meta=e}function h(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function g(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,``),this.data.flowCodeInside=void 0}function _(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e.replace(/(\r?\n|\r)$/g,``)}function v(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=Ma(this.sliceSerialize(e)).toLowerCase()}function y(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e}function b(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e}function x(e){let t=this.stack[this.stack.length-1];t.depth||=this.sliceSerialize(e).length}function S(){this.data.setextHeadingSlurpLineEnding=!0}function C(e){let t=this.stack[this.stack.length-1];t.depth=this.sliceSerialize(e).codePointAt(0)===61?1:2}function w(){this.data.setextHeadingSlurpLineEnding=void 0}function T(e){let t=this.stack[this.stack.length-1].children,n=t[t.length-1];(!n||n.type!==`text`)&&(n=Te(),n.position={start:uc(e.start),end:void 0},t.push(n)),this.stack.push(n)}function E(e){let t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=uc(e.end)}function ee(e){let n=this.stack[this.stack.length-1];if(this.data.atHardBreak){let t=n.children[n.children.length-1];t.position.end=uc(e.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(T.call(this,e),E.call(this,e))}function D(){this.data.atHardBreak=!0}function te(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function ne(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function O(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function k(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||`shortcut`;e.type+=`Reference`,e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function A(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||`shortcut`;e.type+=`Reference`,e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function re(e){let t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=ac(t),n.identifier=Ma(t).toLowerCase()}function ie(){let e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];this.data.inReference=!0,n.type===`link`?n.children=e.children:n.alt=t}function j(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e}function ae(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e}function oe(){this.data.inReference=void 0}function se(){this.data.referenceType=`collapsed`}function ce(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=Ma(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType=`full`}function M(e){this.data.characterReferenceType=e.type}function N(e){let t=this.sliceSerialize(e),n=this.data.characterReferenceType,r;n?(r=ja(t,n===`characterReferenceMarkerNumeric`?10:16),this.data.characterReferenceType=void 0):r=wa(t);let i=this.stack[this.stack.length-1];i.value+=r}function le(e){let t=this.stack.pop();t.position.end=uc(e.end)}function ue(e){E.call(this,e);let t=this.stack[this.stack.length-1];t.url=this.sliceSerialize(e)}function P(e){E.call(this,e);let t=this.stack[this.stack.length-1];t.url=`mailto:`+this.sliceSerialize(e)}function de(){return{type:`blockquote`,children:[]}}function fe(){return{type:`code`,lang:null,meta:null,value:``}}function pe(){return{type:`inlineCode`,value:``}}function me(){return{type:`definition`,identifier:``,label:null,title:null,url:``}}function he(){return{type:`emphasis`,children:[]}}function ge(){return{type:`heading`,depth:0,children:[]}}function _e(){return{type:`break`}}function ve(){return{type:`html`,value:``}}function ye(){return{type:`image`,title:null,url:``,alt:null}}function be(){return{type:`link`,title:null,url:``,children:[]}}function xe(e){return{type:`list`,ordered:e.type===`listOrdered`,start:null,spread:e._spread,children:[]}}function Se(e){return{type:`listItem`,spread:e._spread,checked:null,children:[]}}function Ce(){return{type:`paragraph`,children:[]}}function we(){return{type:`strong`,children:[]}}function Te(){return{type:`text`,value:``}}function Ee(){return{type:`thematicBreak`}}}function uc(e){return{line:e.line,column:e.column,offset:e.offset}}function dc(e,t){let n=-1;for(;++n<t.length;){let r=t[n];Array.isArray(r)?dc(e,r):fc(e,r)}}function fc(e,t){let n;for(n in t)if(sc.call(t,n))switch(n){case`canContainEols`:{let r=t[n];r&&e[n].push(...r);break}case`transforms`:{let r=t[n];r&&e[n].push(...r);break}case`enter`:case`exit`:{let r=t[n];r&&Object.assign(e[n],r);break}}}function pc(e,t){throw Error(e?"Cannot close `"+e.type+"` ("+zi({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+zi({start:t.start,end:t.end})+`) is open`:"Cannot close document, a token (`"+t.type+"`, "+zi({start:t.start,end:t.end})+`) is still open`)}function mc(e){let t=this;t.parser=n;function n(n){return cc(n,{...t.data(`settings`),...e,extensions:t.data(`micromarkExtensions`)||[],mdastExtensions:t.data(`fromMarkdownExtensions`)||[]})}}function hc(e,t){let n={type:`element`,tagName:`blockquote`,properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function gc(e,t){let n={type:`element`,tagName:`br`,properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:`text`,value:`
|
|
4
|
+
`;break;case-2:o=t?` `:` `;break;case-1:if(!t&&i)continue;o=` `;break;default:o=String.fromCharCode(a)}i=a===-2,r.push(o)}return r.join(``)}function ec(e){let t={constructs:Da([Vs,...(e||{}).extensions||[]]),content:n(Ua),defined:[],document:n(Ga),flow:n(Ns),lazy:{},string:n(Is),text:n(Ls)};return t;function n(e){return n;function n(n){return Zs(t,e,n)}}}function tc(e){for(;!Oo(e););return e}var nc=/[\0\t\n\r]/g;function rc(){let e=1,t=``,n=!0,r;return i;function i(i,a,o){let s=[],c,l,u,d,f;for(i=t+(typeof i==`string`?i.toString():new TextDecoder(a||void 0).decode(i)),u=0,t=``,n&&=(i.charCodeAt(0)===65279&&u++,void 0);u<i.length;){if(nc.lastIndex=u,c=nc.exec(i),d=c&&c.index!==void 0?c.index:i.length,f=i.charCodeAt(d),!c){t=i.slice(u);break}if(f===10&&u===d&&r)s.push(-3),r=void 0;else switch(r&&=(s.push(-5),void 0),u<d&&(s.push(i.slice(u,d)),e+=d-u),f){case 0:s.push(65533),e++;break;case 9:for(l=Math.ceil(e/4)*4,s.push(-2);e++<l;)s.push(-1);break;case 10:s.push(-4),e=1;break;default:r=!0,e=1}u=d+1}return o&&(r&&s.push(-5),t&&s.push(t),s.push(null)),s}}var ic=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function ac(e){return e.replace(ic,oc)}function oc(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){let e=n.charCodeAt(1),t=e===120||e===88;return Aa(n.slice(t?2:1),t?16:10)}return Ca(n)||e}var sc={}.hasOwnProperty;function cc(e,t,n){return t&&typeof t==`object`&&(n=t,t=void 0),lc(n)(tc(ec(n).document().write(rc()(e,t,!0))))}function lc(e){let t={transforms:[],canContainEols:[`emphasis`,`fragment`,`heading`,`paragraph`,`strong`],enter:{autolink:a(ye),autolinkProtocol:T,autolinkEmail:T,atxHeading:a(he),blockQuote:a(ue),characterEscape:T,characterReference:T,codeFenced:a(de),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:a(de,o),codeText:a(fe,o),codeTextData:T,data:T,codeFlowValue:T,definition:a(pe),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:a(me),hardBreakEscape:a(ge),hardBreakTrailing:a(ge),htmlFlow:a(_e,o),htmlFlowData:T,htmlText:a(_e,o),htmlTextData:T,image:a(ve),label:o,link:a(ye),listItem:a(xe),listItemValue:f,listOrdered:a(be,d),listUnordered:a(be),paragraph:a(Se),reference:oe,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:a(he),strong:a(Ce),thematicBreak:a(Te)},exit:{atxHeading:c(),atxHeadingSequence:x,autolink:c(),autolinkEmail:F,autolinkProtocol:le,blockQuote:c(),characterEscapeValue:E,characterReferenceMarkerHexadecimal:N,characterReferenceMarkerNumeric:N,characterReferenceValue:P,characterReference:ce,codeFenced:c(g),codeFencedFence:h,codeFencedFenceInfo:p,codeFencedFenceMeta:m,codeFlowValue:E,codeIndented:c(_),codeText:c(k),codeTextData:E,data:E,definition:c(),definitionDestinationString:b,definitionLabelString:v,definitionTitleString:y,emphasis:c(),hardBreakEscape:c(O),hardBreakTrailing:c(O),htmlFlow:c(ee),htmlFlowData:E,htmlText:c(te),htmlTextData:E,image:c(j),label:re,labelText:ne,lineEnding:D,link:c(A),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:se,resourceDestinationString:M,resourceTitleString:ie,resource:ae,setextHeading:c(w),setextHeadingLineSequence:C,setextHeadingText:S,strong:c(),thematicBreak:c()}};dc(t,(e||{}).mdastExtensions||[]);let n={};return r;function r(e){let r={type:`root`,children:[]},a={stack:[r],tokenStack:[],config:t,enter:s,exit:l,buffer:o,resume:u,data:n},c=[],d=-1;for(;++d<e.length;)(e[d][1].type===`listOrdered`||e[d][1].type===`listUnordered`)&&(e[d][0]===`enter`?c.push(d):d=i(e,c.pop(),d));for(d=-1;++d<e.length;){let n=t[e[d][0]];sc.call(n,e[d][1].type)&&n[e[d][1].type].call(Object.assign({sliceSerialize:e[d][2].sliceSerialize},a),e[d][1])}if(a.tokenStack.length>0){let e=a.tokenStack[a.tokenStack.length-1];(e[1]||pc).call(a,void 0,e[0])}for(r.position={start:uc(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:uc(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},d=-1;++d<t.transforms.length;)r=t.transforms[d](r)||r;return r}function i(e,t,n){let r=t-1,i=-1,a=!1,o,s,c,l;for(;++r<=n;){let t=e[r];switch(t[1].type){case`listUnordered`:case`listOrdered`:case`blockQuote`:t[0]===`enter`?i++:i--,l=void 0;break;case`lineEndingBlank`:t[0]===`enter`&&(o&&!l&&!i&&!c&&(c=r),l=void 0);break;case`linePrefix`:case`listItemValue`:case`listItemMarker`:case`listItemPrefix`:case`listItemPrefixWhitespace`:break;default:l=void 0}if(!i&&t[0]===`enter`&&t[1].type===`listItemPrefix`||i===-1&&t[0]===`exit`&&(t[1].type===`listUnordered`||t[1].type===`listOrdered`)){if(o){let i=r;for(s=void 0;i--;){let t=e[i];if(t[1].type===`lineEnding`||t[1].type===`lineEndingBlank`){if(t[0]===`exit`)continue;s&&(e[s][1].type=`lineEndingBlank`,a=!0),t[1].type=`lineEnding`,s=i}else if(!(t[1].type===`linePrefix`||t[1].type===`blockQuotePrefix`||t[1].type===`blockQuotePrefixWhitespace`||t[1].type===`blockQuoteMarker`||t[1].type===`listItemIndent`))break}c&&(!s||c<s)&&(o._spread=!0),o.end=Object.assign({},s?e[s][1].start:t[1].end),e.splice(s||r,0,[`exit`,o,t[2]]),r++,n++}if(t[1].type===`listItemPrefix`){let i={type:`listItem`,_spread:!1,start:Object.assign({},t[1].start),end:void 0};o=i,e.splice(r,0,[`enter`,i,t[2]]),r++,n++,c=void 0,l=!0}}}return e[t][1]._spread=a,n}function a(e,t){return n;function n(n){s.call(this,e(n),n),t&&t.call(this,n)}}function o(){this.stack.push({type:`fragment`,children:[]})}function s(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:uc(t.start),end:void 0}}function c(e){return t;function t(t){e&&e.call(this,t),l.call(this,t)}}function l(e,t){let n=this.stack.pop(),r=this.tokenStack.pop();if(r)r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||pc).call(this,e,r[0]));else throw Error("Cannot close `"+e.type+"` ("+Ri({start:e.start,end:e.end})+`): it’s not open`);n.position.end=uc(e.end)}function u(){return va(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function f(e){if(this.data.expectingFirstListItemValue){let t=this.stack[this.stack.length-2];t.start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0}}function p(){let e=this.resume(),t=this.stack[this.stack.length-1];t.lang=e}function m(){let e=this.resume(),t=this.stack[this.stack.length-1];t.meta=e}function h(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function g(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,``),this.data.flowCodeInside=void 0}function _(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e.replace(/(\r?\n|\r)$/g,``)}function v(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=ja(this.sliceSerialize(e)).toLowerCase()}function y(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e}function b(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e}function x(e){let t=this.stack[this.stack.length-1];t.depth||=this.sliceSerialize(e).length}function S(){this.data.setextHeadingSlurpLineEnding=!0}function C(e){let t=this.stack[this.stack.length-1];t.depth=this.sliceSerialize(e).codePointAt(0)===61?1:2}function w(){this.data.setextHeadingSlurpLineEnding=void 0}function T(e){let t=this.stack[this.stack.length-1].children,n=t[t.length-1];(!n||n.type!==`text`)&&(n=we(),n.position={start:uc(e.start),end:void 0},t.push(n)),this.stack.push(n)}function E(e){let t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=uc(e.end)}function D(e){let n=this.stack[this.stack.length-1];if(this.data.atHardBreak){let t=n.children[n.children.length-1];t.position.end=uc(e.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(T.call(this,e),E.call(this,e))}function O(){this.data.atHardBreak=!0}function ee(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function te(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function k(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function A(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||`shortcut`;e.type+=`Reference`,e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function j(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||`shortcut`;e.type+=`Reference`,e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function ne(e){let t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=ac(t),n.identifier=ja(t).toLowerCase()}function re(){let e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];this.data.inReference=!0,n.type===`link`?n.children=e.children:n.alt=t}function M(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e}function ie(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e}function ae(){this.data.inReference=void 0}function oe(){this.data.referenceType=`collapsed`}function se(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=ja(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType=`full`}function N(e){this.data.characterReferenceType=e.type}function P(e){let t=this.sliceSerialize(e),n=this.data.characterReferenceType,r;n?(r=Aa(t,n===`characterReferenceMarkerNumeric`?10:16),this.data.characterReferenceType=void 0):r=Ca(t);let i=this.stack[this.stack.length-1];i.value+=r}function ce(e){let t=this.stack.pop();t.position.end=uc(e.end)}function le(e){E.call(this,e);let t=this.stack[this.stack.length-1];t.url=this.sliceSerialize(e)}function F(e){E.call(this,e);let t=this.stack[this.stack.length-1];t.url=`mailto:`+this.sliceSerialize(e)}function ue(){return{type:`blockquote`,children:[]}}function de(){return{type:`code`,lang:null,meta:null,value:``}}function fe(){return{type:`inlineCode`,value:``}}function pe(){return{type:`definition`,identifier:``,label:null,title:null,url:``}}function me(){return{type:`emphasis`,children:[]}}function he(){return{type:`heading`,depth:0,children:[]}}function ge(){return{type:`break`}}function _e(){return{type:`html`,value:``}}function ve(){return{type:`image`,title:null,url:``,alt:null}}function ye(){return{type:`link`,title:null,url:``,children:[]}}function be(e){return{type:`list`,ordered:e.type===`listOrdered`,start:null,spread:e._spread,children:[]}}function xe(e){return{type:`listItem`,spread:e._spread,checked:null,children:[]}}function Se(){return{type:`paragraph`,children:[]}}function Ce(){return{type:`strong`,children:[]}}function we(){return{type:`text`,value:``}}function Te(){return{type:`thematicBreak`}}}function uc(e){return{line:e.line,column:e.column,offset:e.offset}}function dc(e,t){let n=-1;for(;++n<t.length;){let r=t[n];Array.isArray(r)?dc(e,r):fc(e,r)}}function fc(e,t){let n;for(n in t)if(sc.call(t,n))switch(n){case`canContainEols`:{let r=t[n];r&&e[n].push(...r);break}case`transforms`:{let r=t[n];r&&e[n].push(...r);break}case`enter`:case`exit`:{let r=t[n];r&&Object.assign(e[n],r);break}}}function pc(e,t){throw Error(e?"Cannot close `"+e.type+"` ("+Ri({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Ri({start:t.start,end:t.end})+`) is open`:"Cannot close document, a token (`"+t.type+"`, "+Ri({start:t.start,end:t.end})+`) is still open`)}function mc(e){let t=this;t.parser=n;function n(n){return cc(n,{...t.data(`settings`),...e,extensions:t.data(`micromarkExtensions`)||[],mdastExtensions:t.data(`fromMarkdownExtensions`)||[]})}}function hc(e,t){let n={type:`element`,tagName:`blockquote`,properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function gc(e,t){let n={type:`element`,tagName:`br`,properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:`text`,value:`
|
|
5
5
|
`}]}function _c(e,t){let n=t.value?t.value+`
|
|
6
6
|
`:``,r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=[`language-`+i[0]]);let a={type:`element`,tagName:`code`,properties:r,children:[{type:`text`,value:n}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a=e.applyData(t,a),a={type:`element`,tagName:`pre`,properties:{},children:[a]},e.patch(t,a),a}function vc(e,t){let n={type:`element`,tagName:`del`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function yc(e,t){let n={type:`element`,tagName:`em`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function bc(e,t){let n=typeof e.options.clobberPrefix==`string`?e.options.clobberPrefix:`user-content-`,r=String(t.identifier).toUpperCase(),i=Ha(r.toLowerCase()),a=e.footnoteOrder.indexOf(r),o,s=e.footnoteCounts.get(r);s===void 0?(s=0,e.footnoteOrder.push(r),o=e.footnoteOrder.length):o=a+1,s+=1,e.footnoteCounts.set(r,s);let c={type:`element`,tagName:`a`,properties:{href:`#`+n+`fn-`+i,id:n+`fnref-`+i+(s>1?`-`+s:``),dataFootnoteRef:!0,ariaDescribedBy:[`footnote-label`]},children:[{type:`text`,value:String(o)}]};e.patch(t,c);let l={type:`element`,tagName:`sup`,properties:{},children:[c]};return e.patch(t,l),e.applyData(t,l)}function xc(e,t){let n={type:`element`,tagName:`h`+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Sc(e,t){if(e.options.allowDangerousHtml){let n={type:`raw`,value:t.value};return e.patch(t,n),e.applyData(t,n)}}function Cc(e,t){let n=t.referenceType,r=`]`;if(n===`collapsed`?r+=`[]`:n===`full`&&(r+=`[`+(t.label||t.identifier)+`]`),t.type===`imageReference`)return[{type:`text`,value:`![`+t.alt+r}];let i=e.all(t),a=i[0];a&&a.type===`text`?a.value=`[`+a.value:i.unshift({type:`text`,value:`[`});let o=i[i.length-1];return o&&o.type===`text`?o.value+=r:i.push({type:`text`,value:r}),i}function wc(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Cc(e,t);let i={src:Ha(r.url||``),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);let a={type:`element`,tagName:`img`,properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)}function Tc(e,t){let n={src:Ha(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);let r={type:`element`,tagName:`img`,properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function Ec(e,t){let n={type:`text`,value:t.value.replace(/\r?\n|\r/g,` `)};e.patch(t,n);let r={type:`element`,tagName:`code`,properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function Dc(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Cc(e,t);let i={href:Ha(r.url||``)};r.title!==null&&r.title!==void 0&&(i.title=r.title);let a={type:`element`,tagName:`a`,properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function Oc(e,t){let n={href:Ha(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);let r={type:`element`,tagName:`a`,properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function kc(e,t,n){let r=e.all(t),i=n?Ac(n):jc(t),a={},o=[];if(typeof t.checked==`boolean`){let e=r[0],n;e&&e.type===`element`&&e.tagName===`p`?n=e:(n={type:`element`,tagName:`p`,properties:{},children:[]},r.unshift(n)),n.children.length>0&&n.children.unshift({type:`text`,value:` `}),n.children.unshift({type:`element`,tagName:`input`,properties:{type:`checkbox`,checked:t.checked,disabled:!0},children:[]}),a.className=[`task-list-item`]}let s=-1;for(;++s<r.length;){let e=r[s];(i||s!==0||e.type!==`element`||e.tagName!==`p`)&&o.push({type:`text`,value:`
|
|
7
7
|
`}),e.type===`element`&&e.tagName===`p`&&!i?o.push(...e.children):o.push(e)}let c=r[r.length-1];c&&(i||c.type!==`element`||c.tagName!==`p`)&&o.push({type:`text`,value:`
|
|
8
|
-
`});let l={type:`element`,tagName:`li`,properties:a,children:o};return e.patch(t,l),e.applyData(t,l)}function Ac(e){let t=!1;if(e.type===`list`){t=e.spread||!1;let n=e.children,r=-1;for(;!t&&++r<n.length;)t=jc(n[r])}return t}function jc(e){return e.spread??e.children.length>1}function Mc(e,t){let n={},r=e.all(t),i=-1;for(typeof t.start==`number`&&t.start!==1&&(n.start=t.start);++i<r.length;){let e=r[i];if(e.type===`element`&&e.tagName===`li`&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes(`task-list-item`)){n.className=[`contains-task-list`];break}}let a={type:`element`,tagName:t.ordered?`ol`:`ul`,properties:n,children:e.wrap(r,!0)};return e.patch(t,a),e.applyData(t,a)}function Nc(e,t){let n={type:`element`,tagName:`p`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Pc(e,t){let n={type:`root`,children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function Fc(e,t){let n={type:`element`,tagName:`strong`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Ic(e,t){let n=e.all(t),r=n.shift(),i=[];if(r){let n={type:`element`,tagName:`thead`,properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),i.push(n)}if(n.length>0){let r={type:`element`,tagName:`tbody`,properties:{},children:e.wrap(n,!0)},a=
|
|
8
|
+
`});let l={type:`element`,tagName:`li`,properties:a,children:o};return e.patch(t,l),e.applyData(t,l)}function Ac(e){let t=!1;if(e.type===`list`){t=e.spread||!1;let n=e.children,r=-1;for(;!t&&++r<n.length;)t=jc(n[r])}return t}function jc(e){return e.spread??e.children.length>1}function Mc(e,t){let n={},r=e.all(t),i=-1;for(typeof t.start==`number`&&t.start!==1&&(n.start=t.start);++i<r.length;){let e=r[i];if(e.type===`element`&&e.tagName===`li`&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes(`task-list-item`)){n.className=[`contains-task-list`];break}}let a={type:`element`,tagName:t.ordered?`ol`:`ul`,properties:n,children:e.wrap(r,!0)};return e.patch(t,a),e.applyData(t,a)}function Nc(e,t){let n={type:`element`,tagName:`p`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Pc(e,t){let n={type:`root`,children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function Fc(e,t){let n={type:`element`,tagName:`strong`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Ic(e,t){let n=e.all(t),r=n.shift(),i=[];if(r){let n={type:`element`,tagName:`thead`,properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),i.push(n)}if(n.length>0){let r={type:`element`,tagName:`tbody`,properties:{},children:e.wrap(n,!0)},a=Fi(t.children[1]),o=Pi(t.children[t.children.length-1]);a&&o&&(r.position={start:a,end:o}),i.push(r)}let a={type:`element`,tagName:`table`,properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)}function Lc(e,t,n){let r=n?n.children:void 0,i=(r?r.indexOf(t):1)===0?`th`:`td`,a=n&&n.type===`table`?n.align:void 0,o=a?a.length:t.children.length,s=-1,c=[];for(;++s<o;){let n=t.children[s],r={},o=a?a[s]:void 0;o&&(r.align=o);let l={type:`element`,tagName:i,properties:r,children:[]};n&&(l.children=e.all(n),e.patch(n,l),l=e.applyData(n,l)),c.push(l)}let l={type:`element`,tagName:`tr`,properties:{},children:e.wrap(c,!0)};return e.patch(t,l),e.applyData(t,l)}function Rc(e,t){let n={type:`element`,tagName:`td`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}var zc=9,Bc=32;function Vc(e){let t=String(e),n=/\r?\n|\r/g,r=n.exec(t),i=0,a=[];for(;r;)a.push(Hc(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push(Hc(t.slice(i),i>0,!1)),a.join(``)}function Hc(e,t,n){let r=0,i=e.length;if(t){let t=e.codePointAt(r);for(;t===zc||t===Bc;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(i-1);for(;t===zc||t===Bc;)i--,t=e.codePointAt(i-1)}return i>r?e.slice(r,i):``}function Uc(e,t){let n={type:`text`,value:Vc(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function Wc(e,t){let n={type:`element`,tagName:`hr`,properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}var Gc={blockquote:hc,break:gc,code:_c,delete:vc,emphasis:yc,footnoteReference:bc,heading:xc,html:Sc,imageReference:wc,image:Tc,inlineCode:Ec,linkReference:Dc,link:Oc,listItem:kc,list:Mc,paragraph:Nc,root:Pc,strong:Fc,table:Ic,tableCell:Rc,tableRow:Lc,text:Uc,thematicBreak:Wc,toml:Kc,yaml:Kc,definition:Kc,footnoteDefinition:Kc};function Kc(){}var qc=typeof self==`object`?self:globalThis,Jc=(e,t)=>{switch(e){case`Function`:case`SharedWorker`:case`Worker`:case`eval`:case`setInterval`:case`setTimeout`:throw TypeError(`unable to deserialize `+e)}return new qc[e](t)},Yc=(e,t)=>{let n=(t,n)=>(e.set(n,t),t),r=i=>{if(e.has(i))return e.get(i);let[a,o]=t[i];switch(a){case 0:case-1:return n(o,i);case 1:{let e=n([],i);for(let t of o)e.push(r(t));return e}case 2:{let e=n({},i);for(let[t,n]of o)e[r(t)]=r(n);return e}case 3:return n(new Date(o),i);case 4:{let{source:e,flags:t}=o;return n(new RegExp(e,t),i)}case 5:{let e=n(new Map,i);for(let[t,n]of o)e.set(r(t),r(n));return e}case 6:{let e=n(new Set,i);for(let t of o)e.add(r(t));return e}case 7:{let{name:e,message:t}=o;return n(Jc(e,t),i)}case 8:return n(BigInt(o),i);case`BigInt`:return n(Object(BigInt(o)),i);case`ArrayBuffer`:return n(new Uint8Array(o).buffer,o);case`DataView`:{let{buffer:e}=new Uint8Array(o);return n(new DataView(e),o)}}return n(Jc(a,o),i)};return r},Xc=e=>Yc(new Map,e)(0),Zc=``,{toString:Qc}={},{keys:$c}=Object,el=e=>{let t=typeof e;if(t!==`object`||!e)return[0,t];let n=Qc.call(e).slice(8,-1);switch(n){case`Array`:return[1,Zc];case`Object`:return[2,Zc];case`Date`:return[3,Zc];case`RegExp`:return[4,Zc];case`Map`:return[5,Zc];case`Set`:return[6,Zc];case`DataView`:return[1,n]}return n.includes(`Array`)?[1,n]:n.includes(`Error`)?[7,n]:[2,n]},tl=([e,t])=>e===0&&(t===`function`||t===`symbol`),nl=(e,t,n,r)=>{let i=(e,t)=>{let i=r.push(e)-1;return n.set(t,i),i},a=r=>{if(n.has(r))return n.get(r);let[o,s]=el(r);switch(o){case 0:{let t=r;switch(s){case`bigint`:o=8,t=r.toString();break;case`function`:case`symbol`:if(e)throw TypeError(`unable to serialize `+s);t=null;break;case`undefined`:return i([-1],r)}return i([o,t],r)}case 1:{if(s){let e=r;return s===`DataView`?e=new Uint8Array(r.buffer):s===`ArrayBuffer`&&(e=new Uint8Array(r)),i([s,[...e]],r)}let e=[],t=i([o,e],r);for(let t of r)e.push(a(t));return t}case 2:{if(s)switch(s){case`BigInt`:return i([s,r.toString()],r);case`Boolean`:case`Number`:case`String`:return i([s,r.valueOf()],r)}if(t&&`toJSON`in r)return a(r.toJSON());let n=[],c=i([o,n],r);for(let t of $c(r))(e||!tl(el(r[t])))&&n.push([a(t),a(r[t])]);return c}case 3:return i([o,r.toISOString()],r);case 4:{let{source:e,flags:t}=r;return i([o,{source:e,flags:t}],r)}case 5:{let t=[],n=i([o,t],r);for(let[n,i]of r)(e||!(tl(el(n))||tl(el(i))))&&t.push([a(n),a(i)]);return n}case 6:{let t=[],n=i([o,t],r);for(let n of r)(e||!tl(el(n)))&&t.push(a(n));return n}}let{message:c}=r;return i([o,{name:s,message:c}],r)};return a},rl=(e,{json:t,lossy:n}={})=>{let r=[];return nl(!(t||n),!!t,new Map,r)(e),r},il=typeof structuredClone==`function`?(e,t)=>t&&(`json`in t||`lossy`in t)?Xc(rl(e,t)):structuredClone(e):(e,t)=>Xc(rl(e,t));function al(e,t){let n=[{type:`text`,value:`↩`}];return t>1&&n.push({type:`element`,tagName:`sup`,properties:{},children:[{type:`text`,value:String(t)}]}),n}function ol(e,t){return`Back to reference `+(e+1)+(t>1?`-`+t:``)}function sl(e){let t=typeof e.options.clobberPrefix==`string`?e.options.clobberPrefix:`user-content-`,n=e.options.footnoteBackContent||al,r=e.options.footnoteBackLabel||ol,i=e.options.footnoteLabel||`Footnotes`,a=e.options.footnoteLabelTagName||`h2`,o=e.options.footnoteLabelProperties||{className:[`sr-only`]},s=[],c=-1;for(;++c<e.footnoteOrder.length;){let i=e.footnoteById.get(e.footnoteOrder[c]);if(!i)continue;let a=e.all(i),o=String(i.identifier).toUpperCase(),l=Ha(o.toLowerCase()),u=0,d=[],f=e.footnoteCounts.get(o);for(;f!==void 0&&++u<=f;){d.length>0&&d.push({type:`text`,value:` `});let e=typeof n==`string`?n:n(c,u);typeof e==`string`&&(e={type:`text`,value:e}),d.push({type:`element`,tagName:`a`,properties:{href:`#`+t+`fnref-`+l+(u>1?`-`+u:``),dataFootnoteBackref:``,ariaLabel:typeof r==`string`?r:r(c,u),className:[`data-footnote-backref`]},children:Array.isArray(e)?e:[e]})}let p=a[a.length-1];if(p&&p.type===`element`&&p.tagName===`p`){let e=p.children[p.children.length-1];e&&e.type===`text`?e.value+=` `:p.children.push({type:`text`,value:` `}),p.children.push(...d)}else a.push(...d);let m={type:`element`,tagName:`li`,properties:{id:t+`fn-`+l},children:e.wrap(a,!0)};e.patch(i,m),s.push(m)}if(s.length!==0)return{type:`element`,tagName:`section`,properties:{dataFootnotes:!0,className:[`footnotes`]},children:[{type:`element`,tagName:a,properties:{...il(o),id:`footnote-label`},children:[{type:`text`,value:i}]},{type:`text`,value:`
|
|
9
9
|
`},{type:`element`,tagName:`ol`,properties:{},children:e.wrap(s,!0)},{type:`text`,value:`
|
|
10
|
-
`}]}}var cl=(function(e){if(e==null)return pl;if(typeof e==`function`)return fl(e);if(typeof e==`object`)return Array.isArray(e)?ll(e):ul(e);if(typeof e==`string`)return dl(e);throw Error(`Expected function, string, or object as test`)});function ll(e){let t=[],n=-1;for(;++n<e.length;)t[n]=cl(e[n]);return fl(r);function r(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1}}function ul(e){let t=e;return fl(n);function n(n){let r=n,i;for(i in e)if(r[i]!==t[i])return!1;return!0}}function dl(e){return fl(t);function t(t){return t&&t.type===e}}function fl(e){return t;function t(t,n,r){return!!(ml(t)&&e.call(this,t,typeof n==`number`?n:void 0,r||void 0))}}function pl(){return!0}function ml(e){return typeof e==`object`&&!!e&&`type`in e}function hl(e){return e}var gl=[];function _l(e,t,n,r){let i;typeof t==`function`&&typeof n!=`function`?(r=n,n=t):i=t;let a=cl(i),o=r?-1:1;s(e,void 0,[])();function s(e,i,c){let l=e&&typeof e==`object`?e:{};if(typeof l.type==`string`){let t=typeof l.tagName==`string`?l.tagName:typeof l.name==`string`?l.name:void 0;Object.defineProperty(u,"name",{value:`node (`+hl(e.type+(t?`<`+t+`>`:``))+`)`})}return u;function u(){let l=gl,u,d,f;if((!t||a(e,i,c[c.length-1]||void 0))&&(l=vl(n(e,c)),l[0]===!1))return l;if(`children`in e&&e.children){let t=e;if(t.children&&l[0]!==`skip`)for(d=(r?t.children.length:-1)+o,f=c.concat(t);d>-1&&d<t.children.length;){let e=t.children[d];if(u=s(e,d,f)(),u[0]===!1)return u;d=typeof u[1]==`number`?u[1]:d+o}}return l}}}function vl(e){return Array.isArray(e)?e:typeof e==`number`?[!0,e]:e==null?gl:[e]}function yl(e,t,n,r){let i,a,o;typeof t==`function`&&typeof n!=`function`?(a=void 0,o=t,i=n):(a=t,o=n,i=r),_l(e,a,s,i);function s(e,t){let n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return o(e,r,n)}}var bl={}.hasOwnProperty,xl={};function Sl(e,t){let n=t||xl,r=new Map,i=new Map,a={all:s,applyData:wl,definitionById:r,footnoteById:i,footnoteCounts:new Map,footnoteOrder:[],handlers:{...Gc,...n.handlers},one:o,options:n,patch:Cl,wrap:El};return yl(e,function(e){if(e.type===`definition`||e.type===`footnoteDefinition`){let t=e.type===`definition`?r:i,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}}),a;function o(e,t){let n=e.type,r=a.handlers[n];if(bl.call(a.handlers,n)&&r)return r(a,e,t);if(a.options.passThrough&&a.options.passThrough.includes(n)){if(`children`in e){let{children:t,...n}=e,r=il(n);return r.children=a.all(e),r}return il(e)}return(a.options.unknownHandler||Tl)(a,e,t)}function s(e){let t=[];if(`children`in e){let n=e.children,r=-1;for(;++r<n.length;){let i=a.one(n[r],e);if(i){if(r&&n[r-1].type===`break`&&(!Array.isArray(i)&&i.type===`text`&&(i.value=Dl(i.value)),!Array.isArray(i)&&i.type===`element`)){let e=i.children[0];e&&e.type===`text`&&(e.value=Dl(e.value))}Array.isArray(i)?t.push(...i):t.push(i)}}}return t}}function Cl(e,t){e.position&&(t.position=
|
|
10
|
+
`}]}}var cl=(function(e){if(e==null)return pl;if(typeof e==`function`)return fl(e);if(typeof e==`object`)return Array.isArray(e)?ll(e):ul(e);if(typeof e==`string`)return dl(e);throw Error(`Expected function, string, or object as test`)});function ll(e){let t=[],n=-1;for(;++n<e.length;)t[n]=cl(e[n]);return fl(r);function r(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1}}function ul(e){let t=e;return fl(n);function n(n){let r=n,i;for(i in e)if(r[i]!==t[i])return!1;return!0}}function dl(e){return fl(t);function t(t){return t&&t.type===e}}function fl(e){return t;function t(t,n,r){return!!(ml(t)&&e.call(this,t,typeof n==`number`?n:void 0,r||void 0))}}function pl(){return!0}function ml(e){return typeof e==`object`&&!!e&&`type`in e}function hl(e){return e}var gl=[];function _l(e,t,n,r){let i;typeof t==`function`&&typeof n!=`function`?(r=n,n=t):i=t;let a=cl(i),o=r?-1:1;s(e,void 0,[])();function s(e,i,c){let l=e&&typeof e==`object`?e:{};if(typeof l.type==`string`){let t=typeof l.tagName==`string`?l.tagName:typeof l.name==`string`?l.name:void 0;Object.defineProperty(u,"name",{value:`node (`+hl(e.type+(t?`<`+t+`>`:``))+`)`})}return u;function u(){let l=gl,u,d,f;if((!t||a(e,i,c[c.length-1]||void 0))&&(l=vl(n(e,c)),l[0]===!1))return l;if(`children`in e&&e.children){let t=e;if(t.children&&l[0]!==`skip`)for(d=(r?t.children.length:-1)+o,f=c.concat(t);d>-1&&d<t.children.length;){let e=t.children[d];if(u=s(e,d,f)(),u[0]===!1)return u;d=typeof u[1]==`number`?u[1]:d+o}}return l}}}function vl(e){return Array.isArray(e)?e:typeof e==`number`?[!0,e]:e==null?gl:[e]}function yl(e,t,n,r){let i,a,o;typeof t==`function`&&typeof n!=`function`?(a=void 0,o=t,i=n):(a=t,o=n,i=r),_l(e,a,s,i);function s(e,t){let n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return o(e,r,n)}}var bl={}.hasOwnProperty,xl={};function Sl(e,t){let n=t||xl,r=new Map,i=new Map,a={all:s,applyData:wl,definitionById:r,footnoteById:i,footnoteCounts:new Map,footnoteOrder:[],handlers:{...Gc,...n.handlers},one:o,options:n,patch:Cl,wrap:El};return yl(e,function(e){if(e.type===`definition`||e.type===`footnoteDefinition`){let t=e.type===`definition`?r:i,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}}),a;function o(e,t){let n=e.type,r=a.handlers[n];if(bl.call(a.handlers,n)&&r)return r(a,e,t);if(a.options.passThrough&&a.options.passThrough.includes(n)){if(`children`in e){let{children:t,...n}=e,r=il(n);return r.children=a.all(e),r}return il(e)}return(a.options.unknownHandler||Tl)(a,e,t)}function s(e){let t=[];if(`children`in e){let n=e.children,r=-1;for(;++r<n.length;){let i=a.one(n[r],e);if(i){if(r&&n[r-1].type===`break`&&(!Array.isArray(i)&&i.type===`text`&&(i.value=Dl(i.value)),!Array.isArray(i)&&i.type===`element`)){let e=i.children[0];e&&e.type===`text`&&(e.value=Dl(e.value))}Array.isArray(i)?t.push(...i):t.push(i)}}}return t}}function Cl(e,t){e.position&&(t.position=Li(e))}function wl(e,t){let n=t;if(e&&e.data){let t=e.data.hName,r=e.data.hChildren,i=e.data.hProperties;typeof t==`string`&&(n.type===`element`?n.tagName=t:n={type:`element`,tagName:t,properties:{},children:`children`in n?n.children:[n]}),n.type===`element`&&i&&Object.assign(n.properties,il(i)),`children`in n&&n.children&&r!=null&&(n.children=r)}return n}function Tl(e,t){let n=t.data||{},r=`value`in t&&!(bl.call(n,`hProperties`)||bl.call(n,`hChildren`))?{type:`text`,value:t.value}:{type:`element`,tagName:`div`,properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function El(e,t){let n=[],r=-1;for(t&&n.push({type:`text`,value:`
|
|
11
11
|
`});++r<e.length;)r&&n.push({type:`text`,value:`
|
|
12
12
|
`}),n.push(e[r]);return t&&e.length>0&&n.push({type:`text`,value:`
|
|
13
13
|
`}),n}function Dl(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function Ol(e,t){let n=Sl(e,t),r=n.one(e,void 0),i=sl(n),a=Array.isArray(r)?{type:`root`,children:r}:r||{type:`root`,children:[]};return i&&(`children`in a,a.children.push({type:`text`,value:`
|
|
14
|
-
`},i)),a}function kl(e,t){return e&&`run`in e?async function(n,r){let i=Ol(n,{file:r,...t});await e.run(i,r)}:function(n,r){return Ol(n,{file:r,...e||t})}}function Al(e){if(e)throw e}var jl=o(((e,t)=>{var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=function(e){return typeof Array.isArray==`function`?Array.isArray(e):r.call(e)===`[object Array]`},s=function(e){if(!e||r.call(e)!==`[object Object]`)return!1;var t=n.call(e,`constructor`),i=e.constructor&&e.constructor.prototype&&n.call(e.constructor.prototype,`isPrototypeOf`);if(e.constructor&&!t&&!i)return!1;for(var a in e);return a===void 0||n.call(e,a)},c=function(e,t){i&&t.name===`__proto__`?i(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,t){if(t===`__proto__`){if(!n.call(e,t))return;if(a)return a(e,t).value}return e[t]};t.exports=function e(){var t,n,r,i,a,u,d=arguments[0],f=1,p=arguments.length,m=!1;for(typeof d==`boolean`&&(m=d,d=arguments[1]||{},f=2),(d==null||typeof d!=`object`&&typeof d!=`function`)&&(d={});f<p;++f)if(t=arguments[f],t!=null)for(n in t)r=l(d,n),i=l(t,n),d!==i&&(m&&i&&(s(i)||(a=o(i)))?(a?(a=!1,u=r&&o(r)?r:[]):u=r&&s(r)?r:{},c(d,{name:n,newValue:e(m,u,i)})):i!==void 0&&c(d,{name:n,newValue:i}));return d}}));function Ml(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Nl(){let e=[],t={run:n,use:r};return t;function n(...t){let n=-1,r=t.pop();if(typeof r!=`function`)throw TypeError(`Expected function as last argument, not `+r);i(null,...t);function i(a,...o){let s=e[++n],c=-1;if(a){r(a);return}for(;++c<t.length;)(o[c]===null||o[c]===void 0)&&(o[c]=t[c]);t=o,s?Pl(s,i)(...o):r(null,...o)}}function r(n){if(typeof n!=`function`)throw TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}}function Pl(e,t){let n;return r;function r(...t){let r=e.length>t.length,o;r&&t.push(i);try{o=e.apply(this,t)}catch(e){let t=e;if(r&&n)throw t;return i(t)}r||(o&&o.then&&typeof o.then==`function`?o.then(a,i):o instanceof Error?i(o):a(o))}function i(e,...r){n||(n=!0,t(e,...r))}function a(e){i(null,e)}}var Fl={basename:Il,dirname:Ll,extname:Rl,join:zl,sep:`/`};function Il(e,t){if(t!==void 0&&typeof t!=`string`)throw TypeError(`"ext" argument must be a string`);Hl(e);let n=0,r=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else r<0&&(a=!0,r=i+1);return r<0?``:e.slice(n,r)}if(t===e)return``;let o=-1,s=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else o<0&&(a=!0,o=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(r=i):(s=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function Ll(e){if(Hl(e),e.length===0)return`.`;let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||=!0;return t<0?e.codePointAt(0)===47?`/`:`.`:t===1&&e.codePointAt(0)===47?`//`:e.slice(0,t)}function Rl(e){Hl(e);let t=e.length,n=-1,r=0,i=-1,a=0,o;for(;t--;){let s=e.codePointAt(t);if(s===47){if(o){r=t+1;break}continue}n<0&&(o=!0,n=t+1),s===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||n<0||a===0||a===1&&i===n-1&&i===r+1?``:e.slice(i,n)}function zl(...e){let t=-1,n;for(;++t<e.length;)Hl(e[t]),e[t]&&(n=n===void 0?e[t]:n+`/`+e[t]);return n===void 0?`.`:Bl(n)}function Bl(e){Hl(e);let t=e.codePointAt(0)===47,n=Vl(e,!t);return n.length===0&&!t&&(n=`.`),n.length>0&&e.codePointAt(e.length-1)===47&&(n+=`/`),t?`/`+n:n}function Vl(e,t){let n=``,r=0,i=-1,a=0,o=-1,s,c;for(;++o<=e.length;){if(o<e.length)s=e.codePointAt(o);else if(s===47)break;else s=47;if(s===47){if(!(i===o-1||a===1))if(i!==o-1&&a===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(c=n.lastIndexOf(`/`),c!==n.length-1){c<0?(n=``,r=0):(n=n.slice(0,c),r=n.length-1-n.lastIndexOf(`/`)),i=o,a=0;continue}}else if(n.length>0){n=``,r=0,i=o,a=0;continue}}t&&(n=n.length>0?n+`/..`:`..`,r=2)}else n.length>0?n+=`/`+e.slice(i+1,o):n=e.slice(i+1,o),r=o-i-1;i=o,a=0}else s===46&&a>-1?a++:a=-1}return n}function Hl(e){if(typeof e!=`string`)throw TypeError(`Path must be a string. Received `+JSON.stringify(e))}var Ul={cwd:Wl};function Wl(){return`/`}function Gl(e){return!!(typeof e==`object`&&e&&`href`in e&&e.href&&`protocol`in e&&e.protocol&&e.auth===void 0)}function Kl(e){if(typeof e==`string`)e=new URL(e);else if(!Gl(e)){let t=TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code=`ERR_INVALID_ARG_TYPE`,t}if(e.protocol!==`file:`){let e=TypeError(`The URL must be of scheme file`);throw e.code=`ERR_INVALID_URL_SCHEME`,e}return ql(e)}function ql(e){if(e.hostname!==``){let e=TypeError(`File URL host must be "localhost" or empty on darwin`);throw e.code=`ERR_INVALID_FILE_URL_HOST`,e}let t=e.pathname,n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){let e=t.codePointAt(n+2);if(e===70||e===102){let e=TypeError(`File URL path must not include encoded / characters`);throw e.code=`ERR_INVALID_FILE_URL_PATH`,e}}return decodeURIComponent(t)}var Jl=[`history`,`path`,`basename`,`stem`,`extname`,`dirname`],Yl=class{constructor(e){let t;t=e?Gl(e)?{path:e}:typeof e==`string`||$l(e)?{value:e}:e:{},this.cwd=`cwd`in t?``:Ul.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n=-1;for(;++n<Jl.length;){let e=Jl[n];e in t&&t[e]!==void 0&&t[e]!==null&&(this[e]=e===`history`?[...t[e]]:t[e])}let r;for(r in t)Jl.includes(r)||(this[r]=t[r])}get basename(){return typeof this.path==`string`?Fl.basename(this.path):void 0}set basename(e){Zl(e,`basename`),Xl(e,`basename`),this.path=Fl.join(this.dirname||``,e)}get dirname(){return typeof this.path==`string`?Fl.dirname(this.path):void 0}set dirname(e){Ql(this.basename,`dirname`),this.path=Fl.join(e||``,this.basename)}get extname(){return typeof this.path==`string`?Fl.extname(this.path):void 0}set extname(e){if(Xl(e,`extname`),Ql(this.dirname,`extname`),e){if(e.codePointAt(0)!==46)throw Error("`extname` must start with `.`");if(e.includes(`.`,1))throw Error("`extname` cannot contain multiple dots")}this.path=Fl.join(this.dirname,this.stem+(e||``))}get path(){return this.history[this.history.length-1]}set path(e){Gl(e)&&(e=Kl(e)),Zl(e,`path`),this.path!==e&&this.history.push(e)}get stem(){return typeof this.path==`string`?Fl.basename(this.path,this.extname):void 0}set stem(e){Zl(e,`stem`),Xl(e,`stem`),this.path=Fl.join(this.dirname||``,e+(this.extname||``))}fail(e,t,n){let r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){let r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){let r=new q(e,t,n);return this.path&&(r.name=this.path+`:`+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){return this.value===void 0?``:typeof this.value==`string`?this.value:new TextDecoder(e||void 0).decode(this.value)}};function Xl(e,t){if(e&&e.includes(Fl.sep))throw Error("`"+t+"` cannot be a path: did not expect `"+Fl.sep+"`")}function Zl(e,t){if(!e)throw Error("`"+t+"` cannot be empty")}function Ql(e,t){if(!e)throw Error("Setting `"+t+"` requires `path` to be set too")}function $l(e){return!!(e&&typeof e==`object`&&`byteLength`in e&&`byteOffset`in e)}var eu=(function(e){let t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r}),tu=l(jl(),1),nu={}.hasOwnProperty,ru=new class e extends eu{constructor(){super(`copy`),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=Nl()}copy(){let t=new e,n=-1;for(;++n<this.attachers.length;){let e=this.attachers[n];t.use(...e)}return t.data((0,tu.default)(!0,{},this.namespace)),t}data(e,t){return typeof e==`string`?arguments.length===2?(ou(`data`,this.frozen),this.namespace[e]=t,this):nu.call(this.namespace,e)&&this.namespace[e]||void 0:e?(ou(`data`,this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;let e=this;for(;++this.freezeIndex<this.attachers.length;){let[t,...n]=this.attachers[this.freezeIndex];if(n[0]===!1)continue;n[0]===!0&&(n[0]=void 0);let r=t.call(e,...n);typeof r==`function`&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=1/0,this}parse(e){this.freeze();let t=lu(e),n=this.parser||this.Parser;return iu(`parse`,n),n(String(t),t)}process(e,t){let n=this;return this.freeze(),iu(`process`,this.parser||this.Parser),au(`process`,this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,i){let a=lu(e),o=n.parse(a);n.run(o,a,function(e,t,r){if(e||!t||!r)return s(e);let i=t,a=n.stringify(i,r);du(a)?r.value=a:r.result=a,s(e,r)});function s(e,n){e||!n?i(e):r?r(n):t(void 0,n)}}}processSync(e){let t=!1,n;return this.freeze(),iu(`processSync`,this.parser||this.Parser),au(`processSync`,this.compiler||this.Compiler),this.process(e,r),cu(`processSync`,`process`,t),n;function r(e,r){t=!0,Al(e),n=r}}run(e,t,n){su(e),this.freeze();let r=this.transformers;return!n&&typeof t==`function`&&(n=t,t=void 0),n?i(void 0,n):new Promise(i);function i(i,a){let o=lu(t);r.run(e,o,s);function s(t,r,o){let s=r||e;t?a(t):i?i(s):n(void 0,s,o)}}}runSync(e,t){let n=!1,r;return this.run(e,t,i),cu(`runSync`,`run`,n),r;function i(e,t){Al(e),r=t,n=!0}}stringify(e,t){this.freeze();let n=lu(t),r=this.compiler||this.Compiler;return au(`stringify`,r),su(e),r(e,n)}use(e,...t){let n=this.attachers,r=this.namespace;if(ou(`use`,this.frozen),e!=null)if(typeof e==`function`)s(e,t);else if(typeof e==`object`)Array.isArray(e)?o(e):a(e);else throw TypeError("Expected usable value, not `"+e+"`");return this;function i(e){if(typeof e==`function`)s(e,[]);else if(typeof e==`object`)if(Array.isArray(e)){let[t,...n]=e;s(t,n)}else a(e);else throw TypeError("Expected usable value, not `"+e+"`")}function a(e){if(!(`plugins`in e)&&!(`settings`in e))throw Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");o(e.plugins),e.settings&&(r.settings=(0,tu.default)(!0,r.settings,e.settings))}function o(e){let t=-1;if(e!=null)if(Array.isArray(e))for(;++t<e.length;){let n=e[t];i(n)}else throw TypeError("Expected a list of plugins, not `"+e+"`")}function s(e,t){let r=-1,i=-1;for(;++r<n.length;)if(n[r][0]===e){i=r;break}if(i===-1)n.push([e,...t]);else if(t.length>0){let[r,...a]=t,o=n[i][1];Ml(o)&&Ml(r)&&(r=(0,tu.default)(!0,o,r)),n[i]=[e,r,...a]}}}}().freeze();function iu(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `parser`")}function au(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `compiler`")}function ou(e,t){if(t)throw Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function su(e){if(!Ml(e)||typeof e.type!=`string`)throw TypeError("Expected node, got `"+e+"`")}function cu(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function lu(e){return uu(e)?e:new Yl(e)}function uu(e){return!!(e&&typeof e==`object`&&`message`in e&&`messages`in e)}function du(e){return typeof e==`string`||fu(e)}function fu(e){return!!(e&&typeof e==`object`&&`byteLength`in e&&`byteOffset`in e)}var pu=[],mu={allowDangerousHtml:!0},hu=/^(https?|ircs?|mailto|xmpp)$/i,gu=[{from:`astPlugins`,id:`remove-buggy-html-in-markdown-parser`},{from:`allowDangerousHtml`,id:`remove-buggy-html-in-markdown-parser`},{from:`allowNode`,id:`replace-allownode-allowedtypes-and-disallowedtypes`,to:`allowElement`},{from:`allowedTypes`,id:`replace-allownode-allowedtypes-and-disallowedtypes`,to:`allowedElements`},{from:`className`,id:`remove-classname`},{from:`disallowedTypes`,id:`replace-allownode-allowedtypes-and-disallowedtypes`,to:`disallowedElements`},{from:`escapeHtml`,id:`remove-buggy-html-in-markdown-parser`},{from:`includeElementIndex`,id:`#remove-includeelementindex`},{from:`includeNodeIndex`,id:`change-includenodeindex-to-includeelementindex`},{from:`linkTarget`,id:`remove-linktarget`},{from:`plugins`,id:`change-plugins-to-remarkplugins`,to:`remarkPlugins`},{from:`rawSourcePos`,id:`#remove-rawsourcepos`},{from:`renderers`,id:`change-renderers-to-components`,to:`components`},{from:`source`,id:`change-source-to-children`,to:`children`},{from:`sourcePos`,id:`#remove-sourcepos`},{from:`transformImageUri`,id:`#add-urltransform`,to:`urlTransform`},{from:`transformLinkUri`,id:`#add-urltransform`,to:`urlTransform`}];function _u(e){let t=vu(e),n=yu(e);return bu(t.runSync(t.parse(n),n),e)}function vu(e){let t=e.rehypePlugins||pu,n=e.remarkPlugins||pu,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...mu}:mu;return ru().use(mc).use(n).use(kl,r).use(t)}function yu(e){let t=e.children||``,n=new Yl;return typeof t==`string`?n.value=t:``+t,n}function bu(e,t){let n=t.allowedElements,r=t.allowElement,i=t.components,a=t.disallowedElements,o=t.skipHtml,s=t.unwrapDisallowed,c=t.urlTransform||xu;for(let e of gu)Object.hasOwn(t,e.from)&&``+e.from+(e.to?"use `"+e.to+"` instead":`remove it`)+e.id;return yl(e,l),Yi(e,{Fragment:d.Fragment,components:i,ignoreInvalidStyle:!0,jsx:d.jsx,jsxs:d.jsxs,passKeys:!0,passNode:!0});function l(e,t,i){if(e.type===`raw`&&i&&typeof t==`number`)return o?i.children.splice(t,1):i.children[t]={type:`text`,value:e.value},t;if(e.type===`element`){let t;for(t in _a)if(Object.hasOwn(_a,t)&&Object.hasOwn(e.properties,t)){let n=e.properties[t],r=_a[t];(r===null||r.includes(e.tagName))&&(e.properties[t]=c(String(n||``),t,e))}}if(e.type===`element`){let o=n?!n.includes(e.tagName):a?a.includes(e.tagName):!1;if(!o&&r&&typeof t==`number`&&(o=!r(e,t,i)),o&&i&&typeof t==`number`)return s&&e.children?i.children.splice(t,1,...e.children):i.children.splice(t,1),t}}}function xu(e){let t=e.indexOf(`:`),n=e.indexOf(`?`),r=e.indexOf(`#`),i=e.indexOf(`/`);return t===-1||i!==-1&&t>i||n!==-1&&t>n||r!==-1&&t>r||hu.test(e.slice(0,t))?e:``}function Su({text:e,clampLines:t,className:n}){let[r,i]=(0,u.useState)(!1),a=(0,u.useRef)(null),[o,s]=(0,u.useState)(!1);(0,u.useEffect)(()=>{if(!t)return;let e=a.current;if(!e)return;let n=()=>{let n=(parseFloat(getComputedStyle(e).lineHeight)||20)*t;s(e.scrollHeight>n+1)};n();let r=new ResizeObserver(n);return r.observe(e),()=>{r.disconnect()}},[e,t]);let c=!r&&t?{maxHeight:`${t*1.625}em`,overflow:`hidden`}:void 0;return(0,d.jsxs)(`div`,{className:n,children:[(0,d.jsx)(`div`,{ref:a,className:z(`text-sm leading-relaxed [&_p]:my-1 [&_h1]:text-base [&_h1]:font-semibold [&_h1]:my-2 [&_h2]:text-sm [&_h2]:font-semibold [&_h2]:my-2 [&_h3]:text-sm [&_h3]:font-medium [&_h3]:my-1.5 [&_ul]:my-1 [&_ol]:my-1 [&_li]:my-0 [&_a]:text-primary [&_a]:underline [&_code]:bg-muted [&_code]:px-1 [&_code]:py-0.5 [&_code]:rounded-sm [&_code]:text-xs [&_pre]:bg-muted [&_pre]:p-3 [&_pre]:rounded-md [&_pre]:overflow-x-auto [&_pre_code]:bg-transparent [&_pre_code]:p-0 [&_strong]:font-semibold`),style:c,children:(0,d.jsx)(_u,{children:e})}),o&&(0,d.jsx)(Ot,{variant:`ghost`,size:`sm`,className:`h-6 px-2 text-xs mt-1`,onClick:()=>i(!r),children:r?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`12`,height:`12`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`mr-1`,children:(0,d.jsx)(`polyline`,{points:`18 15 12 9 6 15`})}),`Show less`]}):(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`12`,height:`12`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`mr-1`,children:(0,d.jsx)(`polyline`,{points:`6 9 12 15 18 9`})}),`Show more`]})})]})}var Cu=(0,u.forwardRef)(({role:e,timestamp:t,icon:n,onCopy:r,onRetry:i,status:a,className:o,children:s,...c},l)=>{let u=t==null?void 0:new Date(t).toLocaleTimeString([],{hour:`2-digit`,minute:`2-digit`}),f=e===`user`,p=r!=null||i!=null;return(0,d.jsx)(`div`,{ref:l,className:z(`group flex`,f?`justify-end`:`justify-start`,o),...c,children:(0,d.jsxs)(`div`,{className:z(`flex items-end gap-2`,f&&`flex-row-reverse`),children:[n&&(0,d.jsx)(`div`,{className:`shrink-0 w-6 h-6`,children:n}),(0,d.jsxs)(`div`,{className:`flex flex-col`,children:[(0,d.jsxs)(`div`,{className:z(`flex items-end gap-1`,f&&`flex-row-reverse`),children:[(0,d.jsxs)(`div`,{className:z(`max-w-[85%] rounded-2xl px-4 py-2 text-sm`,f?`rounded-br-sm bg-primary text-primary-foreground`:`rounded-bl-sm bg-muted text-foreground`),children:[a&&(0,d.jsx)(`div`,{className:`flex items-center gap-1.5 mb-2`,children:a}),s]}),p&&(0,d.jsxs)(`div`,{className:`flex flex-col gap-0.5 opacity-0 group-hover:opacity-100 transition-opacity`,children:[r&&(0,d.jsx)(`button`,{type:`button`,onClick:r,className:`h-6 w-6 inline-flex items-center justify-center rounded-md text-muted-foreground hover:text-foreground hover:bg-accent transition-colors`,"aria-label":`Copy`,children:(0,d.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`14`,height:`14`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,children:[(0,d.jsx)(`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`}),(0,d.jsx)(`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`})]})}),i&&(0,d.jsx)(`button`,{type:`button`,onClick:i,className:`h-6 w-6 inline-flex items-center justify-center rounded-md text-muted-foreground hover:text-foreground hover:bg-accent transition-colors`,"aria-label":`Retry`,children:(0,d.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`14`,height:`14`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,children:[(0,d.jsx)(`path`,{d:`M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8`}),(0,d.jsx)(`path`,{d:`M21 3v5h-5`}),(0,d.jsx)(`path`,{d:`M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16`}),(0,d.jsx)(`path`,{d:`M3 21v-5h5`})]})})]})]}),u&&(0,d.jsx)(`span`,{className:z(`text-[10px] text-muted-foreground mt-1`,f?`text-right`:`text-left`),children:u})]})]})})});Cu.displayName=`ChatMessage`;var wu=(0,u.forwardRef)(({onSubmit:e,placeholder:t=`Type a message...`,disabled:n,loading:r,onCancel:i,className:a,...o},s)=>{let c=(0,u.useRef)(null),l=(0,u.useCallback)(()=>{let e=c.current;e&&(e.style.height=`auto`,e.style.height=`40px`)},[]),f=(0,u.useCallback)(()=>{let e=c.current;e&&(e.style.height=`auto`,e.style.height=`${Math.min(e.scrollHeight,120)}px`)},[]),p=(0,u.useCallback)(t=>{t?.preventDefault();let n=c.current;if(!n)return;let r=n.value.trim();r&&(e?.(r),n.value=``,l())},[e,l]),m=(0,u.useCallback)(e=>{e.key===`Enter`&&!e.shiftKey&&(e.preventDefault(),p())},[p]);return(0,d.jsxs)(`form`,{ref:s,className:z(`border-t border-border p-3 flex items-end gap-2`,a),onSubmit:p,...o,children:[(0,d.jsx)(`textarea`,{ref:c,rows:1,placeholder:t,disabled:n||r,onInput:f,onKeyDown:m,className:`flex-1 resize-none bg-transparent text-sm placeholder:text-muted-foreground focus:outline-none min-h-[40px] max-h-[120px] py-2.5`}),r?(0,d.jsx)(Ot,{type:`button`,variant:`ghost`,size:`icon`,onClick:i,"aria-label":`Stop`,children:(0,d.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`16`,height:`16`,viewBox:`0 0 24 24`,fill:`currentColor`,children:(0,d.jsx)(`rect`,{x:`6`,y:`6`,width:`12`,height:`12`,rx:`2`})})}):(0,d.jsx)(Ot,{type:`submit`,variant:`ghost`,size:`icon`,disabled:n,"aria-label":`Send`,children:(0,d.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`16`,height:`16`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,children:[(0,d.jsx)(`path`,{d:`M12 19V5`}),(0,d.jsx)(`path`,{d:`m5 12 7-7 7 7`})]})})]})});wu.displayName=`ChatInput`;var Tu=(0,u.forwardRef)(({className:e,...t},n)=>(0,d.jsxs)(`div`,{ref:n,className:z(`flex items-center gap-1 px-4 py-2`,e),...t,children:[(0,d.jsx)(`span`,{className:`w-2 h-2 rounded-full bg-muted-foreground animate-bounce [animation-delay:0s]`}),(0,d.jsx)(`span`,{className:`w-2 h-2 rounded-full bg-muted-foreground animate-bounce [animation-delay:0.15s]`}),(0,d.jsx)(`span`,{className:`w-2 h-2 rounded-full bg-muted-foreground animate-bounce [animation-delay:0.3s]`})]}));Tu.displayName=`TypingIndicator`;var Eu=(0,u.forwardRef)(({autoScroll:e=!0,className:t,children:n,...r},i)=>{let a=(0,u.useRef)(null),o=i??a;return(0,u.useEffect)(()=>{if(!e)return;let t=o.current;if(!t)return;let n=new MutationObserver(()=>{t.scrollTo({top:t.scrollHeight,behavior:`smooth`})});return n.observe(t,{childList:!0,subtree:!0}),()=>{n.disconnect()}},[e,o]),(0,d.jsx)(`div`,{ref:o,className:z(`flex-1 overflow-y-auto`,t),...r,children:n})});Eu.displayName=`ScrollArea`;var Du=(0,u.forwardRef)(({code:e,language:t,filename:n,highlighter:r,lightTheme:i=`github-light`,darkTheme:a=`github-dark`,showLineNumbers:o=!1,showCopyButton:s=!0,onCopy:c,maxHeight:l,className:f,...p},m)=>{let[h,g]=(0,u.useState)(!1),_=(0,u.useCallback)(async()=>{await navigator.clipboard.writeText(e),g(!0),c?.(e),setTimeout(()=>g(!1),2e3)},[e,c]),v=(0,u.useMemo)(()=>{if(!r||!t)return null;try{return r.codeToHtml(e,{lang:t,themes:{light:i,dark:a}})}catch{return null}},[r,e,t,i,a]),y=e.split(`
|
|
15
|
-
`),b=s&&(0,d.jsx)(Ot,{variant:`ghost`,size:`icon`,onClick:_,className:z(`h-7 w-7 shrink-0`,!n&&`absolute top-2 right-2 opacity-0 group-hover:opacity-100 transition-opacity`),"aria-label":h?`Copied`:`Copy code`,children:h?(0,d.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`14`,height:`14`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,d.jsx)(`polyline`,{points:`20 6 9 17 4 12`})}):(0,d.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`14`,height:`14`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,children:[(0,d.jsx)(`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`}),(0,d.jsx)(`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`})]})});return(0,d.jsxs)(`div`,{ref:m,className:z(`ord-code-block group rounded-[var(--ord-radius)] border bg-code overflow-hidden`,f),...p,children:[n&&(0,d.jsxs)(`div`,{className:`flex items-center gap-2 px-3 py-2 border-b text-xs text-code-foreground`,children:[(0,d.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`12`,height:`12`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`shrink-0`,children:[(0,d.jsx)(`path`,{d:`M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z`}),(0,d.jsx)(`path`,{d:`M14 2v4a2 2 0 0 0 2 2h4`})]}),(0,d.jsx)(`span`,{className:`flex-1 truncate`,children:n}),b]}),(0,d.jsxs)(`div`,{className:`relative`,style:l?{maxHeight:l,overflowY:`auto`}:void 0,children:[!n&&b,v?(0,d.jsx)(`div`,{className:z(`p-4 overflow-x-auto font-mono text-sm [&_pre]:!bg-transparent [&_code]:!bg-transparent`,o&&`ord-code-block-lines`),dangerouslySetInnerHTML:{__html:v}}):(0,d.jsx)(`pre`,{className:`p-4 overflow-x-auto font-mono text-sm whitespace-pre text-code-foreground bg-code`,children:(0,d.jsx)(`code`,{children:o?y.map((e,t)=>(0,d.jsxs)(`span`,{className:`block`,children:[(0,d.jsx)(`span`,{className:`inline-block w-8 mr-4 text-right text-muted-foreground select-none`,children:t+1}),e]},t)):e})})]})]})});Du.displayName=`CodeBlock`;function Ou(e){if(!e)return``;try{return JSON.stringify(JSON.parse(e),null,2)}catch{return e}}var ku=(0,u.forwardRef)(({method:e,url:t,statusCode:n,duration:r,timestamp:i,requestBody:a,requestHeaders:o,responseBody:s,responseStatus:c,error:l,highlighted:f,defaultOpen:p=!1,highlighter:m,onResend:h,onCopy:g,className:_,...v},y)=>{let[b,x]=(0,u.useState)(p),S=n==null&&!l,C=l!=null||n!=null&&n>=400,T=n!=null&&n<400,E=i==null?void 0:new Date(i).toLocaleTimeString([],{hour:`2-digit`,minute:`2-digit`,second:`2-digit`});return(0,d.jsx)(`div`,{ref:y,className:z(`rounded-[var(--ord-radius)] border bg-card-bg overflow-hidden`,f&&`ring-2 ring-primary`,_),...v,children:(0,d.jsxs)(w.Collapsible.Root,{open:b,onOpenChange:x,children:[(0,d.jsxs)(w.Collapsible.Trigger,{className:`flex items-center gap-2 w-full px-3 py-2 text-left hover:bg-accent/50 transition-colors cursor-pointer`,children:[S&&(0,d.jsx)(wr,{size:`sm`,className:`h-3.5 w-3.5`}),T&&(0,d.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`14`,height:`14`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`shrink-0 text-success`,children:[(0,d.jsx)(`path`,{d:`M22 11.08V12a10 10 0 1 1-5.93-9.14`}),(0,d.jsx)(`polyline`,{points:`22 4 12 14.01 9 11.01`})]}),C&&!S&&(0,d.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`14`,height:`14`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`shrink-0 text-destructive`,children:[(0,d.jsx)(`circle`,{cx:`12`,cy:`12`,r:`10`}),(0,d.jsx)(`line`,{x1:`12`,y1:`8`,x2:`12`,y2:`12`}),(0,d.jsx)(`line`,{x1:`12`,y1:`16`,x2:`12.01`,y2:`16`})]}),(0,d.jsx)(ar,{variant:`outline`,size:`sm`,className:`font-mono shrink-0`,children:e}),n!=null&&(0,d.jsx)(ar,{variant:n<400?`success`:`destructive`,size:`sm`,className:`shrink-0`,children:n}),(0,d.jsx)(`span`,{className:`text-xs text-muted-foreground truncate flex-1 min-w-0`,children:t}),(r!=null||E)&&(0,d.jsxs)(`div`,{className:`flex flex-col items-end shrink-0`,children:[r!=null&&(0,d.jsxs)(`span`,{className:`text-[10px] text-muted-foreground flex items-center gap-0.5`,children:[(0,d.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`10`,height:`10`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,children:[(0,d.jsx)(`circle`,{cx:`12`,cy:`12`,r:`10`}),(0,d.jsx)(`polyline`,{points:`12 6 12 12 16 14`})]}),r,`ms`]}),E&&(0,d.jsx)(`span`,{className:`text-[10px] text-muted-foreground`,children:E})]}),(0,d.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`12`,height:`12`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:z(`shrink-0 transition-transform`,b&&`rotate-180`),children:(0,d.jsx)(`polyline`,{points:`6 9 12 15 18 9`})})]}),(0,d.jsx)(w.Collapsible.Panel,{className:`border-t`,children:(0,d.jsxs)(`div`,{className:`p-3 space-y-4`,children:[(h||g)&&(0,d.jsxs)(`div`,{className:`flex items-center gap-2`,children:[h&&(0,d.jsxs)(Ot,{variant:`ghost`,size:`sm`,onClick:h,children:[(0,d.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`12`,height:`12`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,d.jsx)(`polygon`,{points:`5 3 19 12 5 21 5 3`})}),`Resend`]}),g&&(0,d.jsxs)(Ot,{variant:`ghost`,size:`sm`,onClick:g,children:[(0,d.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`12`,height:`12`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,children:[(0,d.jsx)(`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`}),(0,d.jsx)(`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`})]}),`Copy as cURL`]})]}),(0,d.jsxs)(`div`,{className:`space-y-2`,children:[(0,d.jsx)(`h4`,{className:`text-xs font-medium text-muted-foreground`,children:`Request`}),(0,d.jsxs)(`div`,{className:`font-mono text-[11px] bg-muted p-2 rounded`,children:[`POST `,t]}),o&&Object.keys(o).length>0&&(0,d.jsxs)(`details`,{className:`text-xs`,children:[(0,d.jsxs)(`summary`,{className:`cursor-pointer text-muted-foreground hover:text-foreground`,children:[`Headers (`,Object.keys(o).length,`)`]}),(0,d.jsx)(Du,{code:JSON.stringify(o,null,2),language:`json`,highlighter:m,className:`mt-1 text-[11px]`})]}),a&&(0,d.jsxs)(`details`,{open:!0,className:`text-xs`,children:[(0,d.jsx)(`summary`,{className:`cursor-pointer text-muted-foreground hover:text-foreground`,children:`Body`}),(0,d.jsx)(Du,{code:Ou(a),language:`json`,highlighter:m,className:`mt-1 text-[11px]`})]})]}),s&&(0,d.jsxs)(`div`,{className:`space-y-2`,children:[(0,d.jsx)(`h4`,{className:`text-xs font-medium text-muted-foreground`,children:`Response`}),n!=null&&(0,d.jsxs)(`div`,{className:z(`font-mono text-[11px] p-2 rounded`,n<400?`bg-success/10 text-success`:`bg-destructive/10 text-destructive`),children:[`HTTP `,n,` `,c]}),(0,d.jsxs)(`details`,{open:!0,className:`text-xs`,children:[(0,d.jsx)(`summary`,{className:`cursor-pointer text-muted-foreground hover:text-foreground`,children:`Body`}),(0,d.jsx)(Du,{code:Ou(s),language:`json`,highlighter:m,className:`mt-1 text-[11px]`})]})]}),l&&(0,d.jsx)(`div`,{className:`text-xs text-destructive bg-destructive/10 p-2 rounded`,children:l})]})})]})})});ku.displayName=`HttpLogEntry`;var Au=(0,u.createContext)(`horizontal`),ju=(0,u.forwardRef)(({orientation:e=`horizontal`,autoSaveId:t,children:n,className:r,style:i,...a},o)=>(0,d.jsx)(Au.Provider,{value:e,children:(0,d.jsx)(T.Group,{orientation:e,id:t,className:z(`h-full overflow-hidden`,r),style:i,elementRef:o,...a,children:n})}));ju.displayName=`SplitPane.Root`;var Mu=(0,u.forwardRef)(({defaultSize:e,minSize:t,maxSize:n,collapsible:r,collapsedSize:i,onCollapse:a,onExpand:o,children:s,className:c,style:l,...u},f)=>(0,d.jsx)(T.Panel,{defaultSize:e,minSize:t,maxSize:n,collapsible:r,collapsedSize:i,onResize:e=>{r&&i!=null&&((typeof e==`number`?e:parseFloat(String(e)))<=i?a?.():o?.())},className:z(`overflow-auto`,c),style:l,elementRef:f,...u,children:s}));Mu.displayName=`SplitPane.Panel`;var Nu=(0,u.forwardRef)(({showGrip:e=!0,className:t,...n},r)=>{let i=(0,u.useContext)(Au)===`horizontal`;return(0,d.jsx)(T.Separator,{className:z(`group relative flex items-center justify-center transition-colors`,i?`w-2 hover:bg-border`:`h-2 hover:bg-border`,`bg-border/50`,t),elementRef:r,...n,children:e&&(0,d.jsx)(`div`,{className:z(`absolute z-10 flex items-center justify-center rounded-sm bg-border opacity-0 transition-opacity group-hover:opacity-100`,i?`h-8 w-4`:`h-4 w-8`),children:i?(0,d.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`16`,height:`16`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`text-muted-foreground`,children:[(0,d.jsx)(`circle`,{cx:`9`,cy:`12`,r:`1`}),(0,d.jsx)(`circle`,{cx:`9`,cy:`5`,r:`1`}),(0,d.jsx)(`circle`,{cx:`9`,cy:`19`,r:`1`}),(0,d.jsx)(`circle`,{cx:`15`,cy:`12`,r:`1`}),(0,d.jsx)(`circle`,{cx:`15`,cy:`5`,r:`1`}),(0,d.jsx)(`circle`,{cx:`15`,cy:`19`,r:`1`})]}):(0,d.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`16`,height:`16`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`text-muted-foreground`,children:[(0,d.jsx)(`circle`,{cx:`12`,cy:`9`,r:`1`}),(0,d.jsx)(`circle`,{cx:`5`,cy:`9`,r:`1`}),(0,d.jsx)(`circle`,{cx:`19`,cy:`9`,r:`1`}),(0,d.jsx)(`circle`,{cx:`12`,cy:`15`,r:`1`}),(0,d.jsx)(`circle`,{cx:`5`,cy:`15`,r:`1`}),(0,d.jsx)(`circle`,{cx:`19`,cy:`15`,r:`1`})]})})})});Nu.displayName=`SplitPane.Handle`;var Pu=Object.assign(ju,{Root:ju,Panel:Mu,Handle:Nu}),Fu={pass:{borderColor:`var(--color-green-500)`,iconClass:`text-success`,icon:(0,d.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`h-4 w-4`,children:[(0,d.jsx)(`path`,{d:`M22 11.08V12a10 10 0 1 1-5.93-9.14`}),(0,d.jsx)(`polyline`,{points:`22 4 12 14.01 9 11.01`})]})},warning:{borderColor:`var(--color-yellow-500)`,iconClass:`text-warning`,icon:(0,d.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`h-4 w-4`,children:[(0,d.jsx)(`path`,{d:`m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z`}),(0,d.jsx)(`line`,{x1:`12`,y1:`9`,x2:`12`,y2:`13`}),(0,d.jsx)(`line`,{x1:`12`,y1:`17`,x2:`12.01`,y2:`17`})]})},fail:{borderColor:`var(--color-red-500)`,iconClass:`text-destructive`,icon:(0,d.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`h-4 w-4`,children:[(0,d.jsx)(`circle`,{cx:`12`,cy:`12`,r:`10`}),(0,d.jsx)(`line`,{x1:`15`,y1:`9`,x2:`9`,y2:`15`}),(0,d.jsx)(`line`,{x1:`9`,y1:`9`,x2:`15`,y2:`15`})]})}},Iu=(0,u.forwardRef)(({status:e,rule:t,message:n,path:r,className:i,style:a,...o},s)=>{let c=Fu[e];return(0,d.jsx)(`div`,{ref:s,className:z(`rounded-md border border-l-4 p-3 transition-all duration-150 hover:shadow-sm hover:translate-x-0.5`,i),style:{borderLeftColor:c.borderColor,...a},...o,children:(0,d.jsxs)(`div`,{className:`flex items-start gap-2`,children:[(0,d.jsx)(`span`,{className:z(`mt-0.5 shrink-0`,c.iconClass),children:c.icon}),(0,d.jsxs)(`div`,{className:`flex-1 min-w-0 space-y-1`,children:[(0,d.jsxs)(`div`,{className:`flex items-center gap-2 flex-wrap`,children:[(0,d.jsx)(`span`,{className:`font-medium text-sm`,children:t}),r&&(0,d.jsx)(`code`,{className:`text-xs bg-muted px-1 rounded`,children:r})]}),(0,d.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:n})]})]})})});Iu.displayName=`ValidationEntry`;var Lu=(0,u.forwardRef)(({title:e=`All checks passed`,suffix:t,className:n,...r},i)=>(0,d.jsxs)(`div`,{ref:i,className:z(`flex flex-col items-center justify-center gap-4`,n),...r,children:[(0,d.jsxs)(`svg`,{className:`validation-pass-checkmark`,xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 52 52`,"aria-hidden":`true`,children:[(0,d.jsx)(`circle`,{className:`validation-pass-circle`,cx:`26`,cy:`26`,r:`25`,fill:`none`}),(0,d.jsx)(`path`,{className:`validation-pass-check`,fill:`none`,d:`M14.1 27.2l7.1 7.2 16.7-16.8`})]}),(0,d.jsxs)(`p`,{className:`text-lg`,children:[(0,d.jsx)(`span`,{className:`font-bold text-foreground`,children:e}),t&&(0,d.jsx)(`span`,{className:`font-normal text-muted-foreground`,children:t})]})]}));Lu.displayName=`ValidationPass`;function Ru(e,t,n){let r=getComputedStyle(e).getPropertyValue(t).trim();if(!r)return n;if(r.startsWith(`#`))return r;let i=document.createElement(`div`);i.style.display=`none`,i.style.color=`var(${t})`,e.appendChild(i);let a=getComputedStyle(i).color;e.removeChild(i);let o=a.match(/rgba?\((\d+),\s*(\d+),\s*(\d+)/);if(o){let e=e=>parseInt(e).toString(16).padStart(2,`0`);return`#${e(o[1])}${e(o[2])}${e(o[3])}`}let s=a.match(/color\(srgb\s+([\d.]+)\s+([\d.]+)\s+([\d.]+)/);if(s){let e=e=>Math.round(parseFloat(e)*255).toString(16).padStart(2,`0`);return`#${e(s[1])}${e(s[2])}${e(s[3])}`}return n}var zu=(0,u.forwardRef)(({value:e,onChange:t,defaultValue:n,language:r=`json`,readOnly:i=!1,lineNumbers:a=`on`,minHeight:o=`300px`,showToolbar:s=!0,className:c,...l},f)=>{let p=(0,u.useRef)(null),m=(0,u.useRef)(null),h=(0,E.useMonaco)(),[g,_]=(0,u.useState)(!1),[v,y]=(0,u.useState)(!1);(0,u.useEffect)(()=>{let e=p.current;if(!e)return;let t=e.closest(`.ord-ui`);if(!t)return;let n=()=>y(t.classList.contains(`dark`));n();let r=new MutationObserver(n);return r.observe(t,{attributes:!0,attributeFilter:[`class`]}),()=>{r.disconnect()}},[]);let b=(0,u.useCallback)(()=>{if(!h)return;let e=p.current?.closest(`.ord-ui`);if(!e)return;let t=Ru(e,`--background`,v?`#1e1e1e`:`#ffffff`),n=Ru(e,`--foreground`,v?`#d4d4d4`:`#1e1e1e`),r=Ru(e,`--muted`,v?`#2d2d30`:`#f5f5f5`),i=Ru(e,`--muted-foreground`,v?`#858585`:`#237893`),a=Ru(e,`--primary`,v?`#0098ff`:`#005fb8`),o=Ru(e,`--border`,v?`#3e3e42`:`#e0e0e0`);h.editor.defineTheme(`ord-dark`,{base:`vs-dark`,inherit:!0,rules:[],colors:{"editor.background":t,"editor.foreground":n,"editorLineNumber.foreground":i,"editorLineNumber.activeForeground":n,"editor.selectionBackground":a+`44`,"editor.lineHighlightBackground":r,"editorWidget.background":t,"editorWidget.border":o}}),h.editor.defineTheme(`ord-light`,{base:`vs`,inherit:!0,rules:[],colors:{"editor.background":t,"editor.foreground":n,"editorLineNumber.foreground":i,"editorLineNumber.activeForeground":n,"editor.selectionBackground":a+`33`,"editor.lineHighlightBackground":r,"editorWidget.background":t,"editorWidget.border":o}}),h.editor.setTheme(v?`ord-dark`:`ord-light`)},[h,v]);(0,u.useEffect)(()=>{h&&b()},[h,b]);let x=e=>{m.current=e,b()},S=()=>{try{let n=JSON.stringify(JSON.parse(e),null,2);t?.(n)}catch{}},C=async()=>{await navigator.clipboard.writeText(e),_(!0),setTimeout(()=>_(!1),2e3)},w=()=>{t?.(n??``)};return(0,d.jsxs)(`div`,{ref:e=>{p.current=e,typeof f==`function`?f(e):f&&(f.current=e)},className:z(`h-full rounded-lg border overflow-hidden flex flex-col`,c),...l,children:[s&&(0,d.jsxs)(`div`,{className:`flex h-10 items-center gap-1 border-b bg-muted/30 px-2`,children:[(0,d.jsxs)(Ot,{variant:`ghost`,size:`sm`,onClick:S,disabled:!e.trim(),children:[(0,d.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`h-4 w-4`,children:[(0,d.jsx)(`path`,{d:`M15 4V2`}),(0,d.jsx)(`path`,{d:`M15 16v-2`}),(0,d.jsx)(`path`,{d:`M8 9h2`}),(0,d.jsx)(`path`,{d:`M20 9h2`}),(0,d.jsx)(`path`,{d:`M17.8 11.8 20 14`}),(0,d.jsx)(`path`,{d:`M15 9h.01`}),(0,d.jsx)(`path`,{d:`M17.8 6.2 20 4`}),(0,d.jsx)(`path`,{d:`m3 21 9-9`}),(0,d.jsx)(`path`,{d:`M12.2 6.2 10 4`})]}),(0,d.jsx)(`span`,{className:`hidden sm:inline`,children:`Format`})]}),(0,d.jsxs)(Ot,{variant:`ghost`,size:`sm`,onClick:C,disabled:!e.trim(),children:[g?(0,d.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`h-4 w-4 text-success`,children:(0,d.jsx)(`polyline`,{points:`20 6 9 17 4 12`})}):(0,d.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`h-4 w-4`,children:[(0,d.jsx)(`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`}),(0,d.jsx)(`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`})]}),(0,d.jsx)(`span`,{className:`hidden sm:inline`,children:g?`Copied`:`Copy`})]}),(0,d.jsx)(`div`,{className:`flex-1`}),(0,d.jsxs)(Ot,{variant:`ghost`,size:`sm`,onClick:w,disabled:!e.trim(),children:[(0,d.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`h-4 w-4`,children:[(0,d.jsx)(`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`}),(0,d.jsx)(`path`,{d:`M3 3v5h5`})]}),(0,d.jsx)(`span`,{className:`hidden sm:inline`,children:`Reset`})]})]}),(0,d.jsx)(`div`,{className:`flex-1 overflow-hidden min-h-0`,style:{minHeight:o},children:(0,d.jsx)(E.default,{height:`100%`,value:e,onChange:e=>t?.(e||``),language:r,theme:v?`ord-dark`:`ord-light`,options:{readOnly:i,minimap:{enabled:!1},automaticLayout:!0,fontSize:13,lineNumbers:a,scrollBeyondLastLine:!1,wordWrap:`on`,tabSize:2,renderLineHighlight:`line`,padding:{top:8,bottom:8}},onMount:x})})]})});zu.displayName=`CodeEditor`,exports.Avatar=vr,exports.Badge=ar,exports.Button=Ot,exports.Card=Yn,exports.ChatInput=wu,exports.ChatMessage=Cu,exports.Checkbox=Lt,exports.CodeBlock=Du,exports.CodeEditor=zu,exports.CollapsibleSection=Hr,exports.Combobox=en,exports.ConnectionCard=Ar,exports.Dialog=An,exports.Field=Ut,exports.HttpLogEntry=ku,exports.InfoCard=Rr,exports.Input=kt,exports.MarkdownText=Su,exports.PasswordInput=Nt,exports.Progress=Sr,exports.RadioGroup=Rt,exports.ScrollArea=Eu,exports.SectionCard=Kr,exports.Select=B,exports.Separator=rr,exports.Sheet=Vn,exports.SimpleCard=Xn,exports.SimpleCombobox=tn,exports.SimpleDialog=jn,exports.SimpleSelect=vn,exports.SimpleSheet=Hn,exports.Spinner=wr,exports.SplitPane=Pu,exports.Switch=xn,exports.Tabs=nr,exports.Textarea=At,exports.ThemeRoot=k,exports.Tooltip=pr,exports.TypingIndicator=Tu,exports.ValidationEntry=Iu,exports.ValidationPass=Lu,exports.badgeVariants=ir,exports.buttonVariants=Dt,exports.cn=z,exports.sheetPopupVariants=In,exports.spinnerVariants=Cr,exports.usePortalContainer=O,exports.useTheme=te;
|
|
14
|
+
`},i)),a}function kl(e,t){return e&&`run`in e?async function(n,r){let i=Ol(n,{file:r,...t});await e.run(i,r)}:function(n,r){return Ol(n,{file:r,...e||t})}}function Al(e){if(e)throw e}var jl=o(((e,t)=>{var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=function(e){return typeof Array.isArray==`function`?Array.isArray(e):r.call(e)===`[object Array]`},s=function(e){if(!e||r.call(e)!==`[object Object]`)return!1;var t=n.call(e,`constructor`),i=e.constructor&&e.constructor.prototype&&n.call(e.constructor.prototype,`isPrototypeOf`);if(e.constructor&&!t&&!i)return!1;for(var a in e);return a===void 0||n.call(e,a)},c=function(e,t){i&&t.name===`__proto__`?i(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,t){if(t===`__proto__`){if(!n.call(e,t))return;if(a)return a(e,t).value}return e[t]};t.exports=function e(){var t,n,r,i,a,u,d=arguments[0],f=1,p=arguments.length,m=!1;for(typeof d==`boolean`&&(m=d,d=arguments[1]||{},f=2),(d==null||typeof d!=`object`&&typeof d!=`function`)&&(d={});f<p;++f)if(t=arguments[f],t!=null)for(n in t)r=l(d,n),i=l(t,n),d!==i&&(m&&i&&(s(i)||(a=o(i)))?(a?(a=!1,u=r&&o(r)?r:[]):u=r&&s(r)?r:{},c(d,{name:n,newValue:e(m,u,i)})):i!==void 0&&c(d,{name:n,newValue:i}));return d}}));function Ml(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Nl(){let e=[],t={run:n,use:r};return t;function n(...t){let n=-1,r=t.pop();if(typeof r!=`function`)throw TypeError(`Expected function as last argument, not `+r);i(null,...t);function i(a,...o){let s=e[++n],c=-1;if(a){r(a);return}for(;++c<t.length;)(o[c]===null||o[c]===void 0)&&(o[c]=t[c]);t=o,s?Pl(s,i)(...o):r(null,...o)}}function r(n){if(typeof n!=`function`)throw TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}}function Pl(e,t){let n;return r;function r(...t){let r=e.length>t.length,o;r&&t.push(i);try{o=e.apply(this,t)}catch(e){let t=e;if(r&&n)throw t;return i(t)}r||(o&&o.then&&typeof o.then==`function`?o.then(a,i):o instanceof Error?i(o):a(o))}function i(e,...r){n||(n=!0,t(e,...r))}function a(e){i(null,e)}}var Fl={basename:Il,dirname:Ll,extname:Rl,join:zl,sep:`/`};function Il(e,t){if(t!==void 0&&typeof t!=`string`)throw TypeError(`"ext" argument must be a string`);Hl(e);let n=0,r=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else r<0&&(a=!0,r=i+1);return r<0?``:e.slice(n,r)}if(t===e)return``;let o=-1,s=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else o<0&&(a=!0,o=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(r=i):(s=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function Ll(e){if(Hl(e),e.length===0)return`.`;let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||=!0;return t<0?e.codePointAt(0)===47?`/`:`.`:t===1&&e.codePointAt(0)===47?`//`:e.slice(0,t)}function Rl(e){Hl(e);let t=e.length,n=-1,r=0,i=-1,a=0,o;for(;t--;){let s=e.codePointAt(t);if(s===47){if(o){r=t+1;break}continue}n<0&&(o=!0,n=t+1),s===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||n<0||a===0||a===1&&i===n-1&&i===r+1?``:e.slice(i,n)}function zl(...e){let t=-1,n;for(;++t<e.length;)Hl(e[t]),e[t]&&(n=n===void 0?e[t]:n+`/`+e[t]);return n===void 0?`.`:Bl(n)}function Bl(e){Hl(e);let t=e.codePointAt(0)===47,n=Vl(e,!t);return n.length===0&&!t&&(n=`.`),n.length>0&&e.codePointAt(e.length-1)===47&&(n+=`/`),t?`/`+n:n}function Vl(e,t){let n=``,r=0,i=-1,a=0,o=-1,s,c;for(;++o<=e.length;){if(o<e.length)s=e.codePointAt(o);else if(s===47)break;else s=47;if(s===47){if(!(i===o-1||a===1))if(i!==o-1&&a===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(c=n.lastIndexOf(`/`),c!==n.length-1){c<0?(n=``,r=0):(n=n.slice(0,c),r=n.length-1-n.lastIndexOf(`/`)),i=o,a=0;continue}}else if(n.length>0){n=``,r=0,i=o,a=0;continue}}t&&(n=n.length>0?n+`/..`:`..`,r=2)}else n.length>0?n+=`/`+e.slice(i+1,o):n=e.slice(i+1,o),r=o-i-1;i=o,a=0}else s===46&&a>-1?a++:a=-1}return n}function Hl(e){if(typeof e!=`string`)throw TypeError(`Path must be a string. Received `+JSON.stringify(e))}var Ul={cwd:Wl};function Wl(){return`/`}function Gl(e){return!!(typeof e==`object`&&e&&`href`in e&&e.href&&`protocol`in e&&e.protocol&&e.auth===void 0)}function Kl(e){if(typeof e==`string`)e=new URL(e);else if(!Gl(e)){let t=TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code=`ERR_INVALID_ARG_TYPE`,t}if(e.protocol!==`file:`){let e=TypeError(`The URL must be of scheme file`);throw e.code=`ERR_INVALID_URL_SCHEME`,e}return ql(e)}function ql(e){if(e.hostname!==``){let e=TypeError(`File URL host must be "localhost" or empty on darwin`);throw e.code=`ERR_INVALID_FILE_URL_HOST`,e}let t=e.pathname,n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){let e=t.codePointAt(n+2);if(e===70||e===102){let e=TypeError(`File URL path must not include encoded / characters`);throw e.code=`ERR_INVALID_FILE_URL_PATH`,e}}return decodeURIComponent(t)}var Jl=[`history`,`path`,`basename`,`stem`,`extname`,`dirname`],Yl=class{constructor(e){let t;t=e?Gl(e)?{path:e}:typeof e==`string`||$l(e)?{value:e}:e:{},this.cwd=`cwd`in t?``:Ul.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n=-1;for(;++n<Jl.length;){let e=Jl[n];e in t&&t[e]!==void 0&&t[e]!==null&&(this[e]=e===`history`?[...t[e]]:t[e])}let r;for(r in t)Jl.includes(r)||(this[r]=t[r])}get basename(){return typeof this.path==`string`?Fl.basename(this.path):void 0}set basename(e){Zl(e,`basename`),Xl(e,`basename`),this.path=Fl.join(this.dirname||``,e)}get dirname(){return typeof this.path==`string`?Fl.dirname(this.path):void 0}set dirname(e){Ql(this.basename,`dirname`),this.path=Fl.join(e||``,this.basename)}get extname(){return typeof this.path==`string`?Fl.extname(this.path):void 0}set extname(e){if(Xl(e,`extname`),Ql(this.dirname,`extname`),e){if(e.codePointAt(0)!==46)throw Error("`extname` must start with `.`");if(e.includes(`.`,1))throw Error("`extname` cannot contain multiple dots")}this.path=Fl.join(this.dirname,this.stem+(e||``))}get path(){return this.history[this.history.length-1]}set path(e){Gl(e)&&(e=Kl(e)),Zl(e,`path`),this.path!==e&&this.history.push(e)}get stem(){return typeof this.path==`string`?Fl.basename(this.path,this.extname):void 0}set stem(e){Zl(e,`stem`),Xl(e,`stem`),this.path=Fl.join(this.dirname||``,e+(this.extname||``))}fail(e,t,n){let r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){let r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){let r=new J(e,t,n);return this.path&&(r.name=this.path+`:`+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){return this.value===void 0?``:typeof this.value==`string`?this.value:new TextDecoder(e||void 0).decode(this.value)}};function Xl(e,t){if(e&&e.includes(Fl.sep))throw Error("`"+t+"` cannot be a path: did not expect `"+Fl.sep+"`")}function Zl(e,t){if(!e)throw Error("`"+t+"` cannot be empty")}function Ql(e,t){if(!e)throw Error("Setting `"+t+"` requires `path` to be set too")}function $l(e){return!!(e&&typeof e==`object`&&`byteLength`in e&&`byteOffset`in e)}var eu=(function(e){let t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r}),tu=l(jl(),1),nu={}.hasOwnProperty,ru=new class e extends eu{constructor(){super(`copy`),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=Nl()}copy(){let t=new e,n=-1;for(;++n<this.attachers.length;){let e=this.attachers[n];t.use(...e)}return t.data((0,tu.default)(!0,{},this.namespace)),t}data(e,t){return typeof e==`string`?arguments.length===2?(ou(`data`,this.frozen),this.namespace[e]=t,this):nu.call(this.namespace,e)&&this.namespace[e]||void 0:e?(ou(`data`,this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;let e=this;for(;++this.freezeIndex<this.attachers.length;){let[t,...n]=this.attachers[this.freezeIndex];if(n[0]===!1)continue;n[0]===!0&&(n[0]=void 0);let r=t.call(e,...n);typeof r==`function`&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=1/0,this}parse(e){this.freeze();let t=lu(e),n=this.parser||this.Parser;return iu(`parse`,n),n(String(t),t)}process(e,t){let n=this;return this.freeze(),iu(`process`,this.parser||this.Parser),au(`process`,this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,i){let a=lu(e),o=n.parse(a);n.run(o,a,function(e,t,r){if(e||!t||!r)return s(e);let i=t,a=n.stringify(i,r);du(a)?r.value=a:r.result=a,s(e,r)});function s(e,n){e||!n?i(e):r?r(n):t(void 0,n)}}}processSync(e){let t=!1,n;return this.freeze(),iu(`processSync`,this.parser||this.Parser),au(`processSync`,this.compiler||this.Compiler),this.process(e,r),cu(`processSync`,`process`,t),n;function r(e,r){t=!0,Al(e),n=r}}run(e,t,n){su(e),this.freeze();let r=this.transformers;return!n&&typeof t==`function`&&(n=t,t=void 0),n?i(void 0,n):new Promise(i);function i(i,a){let o=lu(t);r.run(e,o,s);function s(t,r,o){let s=r||e;t?a(t):i?i(s):n(void 0,s,o)}}}runSync(e,t){let n=!1,r;return this.run(e,t,i),cu(`runSync`,`run`,n),r;function i(e,t){Al(e),r=t,n=!0}}stringify(e,t){this.freeze();let n=lu(t),r=this.compiler||this.Compiler;return au(`stringify`,r),su(e),r(e,n)}use(e,...t){let n=this.attachers,r=this.namespace;if(ou(`use`,this.frozen),e!=null)if(typeof e==`function`)s(e,t);else if(typeof e==`object`)Array.isArray(e)?o(e):a(e);else throw TypeError("Expected usable value, not `"+e+"`");return this;function i(e){if(typeof e==`function`)s(e,[]);else if(typeof e==`object`)if(Array.isArray(e)){let[t,...n]=e;s(t,n)}else a(e);else throw TypeError("Expected usable value, not `"+e+"`")}function a(e){if(!(`plugins`in e)&&!(`settings`in e))throw Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");o(e.plugins),e.settings&&(r.settings=(0,tu.default)(!0,r.settings,e.settings))}function o(e){let t=-1;if(e!=null)if(Array.isArray(e))for(;++t<e.length;){let n=e[t];i(n)}else throw TypeError("Expected a list of plugins, not `"+e+"`")}function s(e,t){let r=-1,i=-1;for(;++r<n.length;)if(n[r][0]===e){i=r;break}if(i===-1)n.push([e,...t]);else if(t.length>0){let[r,...a]=t,o=n[i][1];Ml(o)&&Ml(r)&&(r=(0,tu.default)(!0,o,r)),n[i]=[e,r,...a]}}}}().freeze();function iu(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `parser`")}function au(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `compiler`")}function ou(e,t){if(t)throw Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function su(e){if(!Ml(e)||typeof e.type!=`string`)throw TypeError("Expected node, got `"+e+"`")}function cu(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function lu(e){return uu(e)?e:new Yl(e)}function uu(e){return!!(e&&typeof e==`object`&&`message`in e&&`messages`in e)}function du(e){return typeof e==`string`||fu(e)}function fu(e){return!!(e&&typeof e==`object`&&`byteLength`in e&&`byteOffset`in e)}var pu=[],mu={allowDangerousHtml:!0},hu=/^(https?|ircs?|mailto|xmpp)$/i,gu=[{from:`astPlugins`,id:`remove-buggy-html-in-markdown-parser`},{from:`allowDangerousHtml`,id:`remove-buggy-html-in-markdown-parser`},{from:`allowNode`,id:`replace-allownode-allowedtypes-and-disallowedtypes`,to:`allowElement`},{from:`allowedTypes`,id:`replace-allownode-allowedtypes-and-disallowedtypes`,to:`allowedElements`},{from:`className`,id:`remove-classname`},{from:`disallowedTypes`,id:`replace-allownode-allowedtypes-and-disallowedtypes`,to:`disallowedElements`},{from:`escapeHtml`,id:`remove-buggy-html-in-markdown-parser`},{from:`includeElementIndex`,id:`#remove-includeelementindex`},{from:`includeNodeIndex`,id:`change-includenodeindex-to-includeelementindex`},{from:`linkTarget`,id:`remove-linktarget`},{from:`plugins`,id:`change-plugins-to-remarkplugins`,to:`remarkPlugins`},{from:`rawSourcePos`,id:`#remove-rawsourcepos`},{from:`renderers`,id:`change-renderers-to-components`,to:`components`},{from:`source`,id:`change-source-to-children`,to:`children`},{from:`sourcePos`,id:`#remove-sourcepos`},{from:`transformImageUri`,id:`#add-urltransform`,to:`urlTransform`},{from:`transformLinkUri`,id:`#add-urltransform`,to:`urlTransform`}];function _u(e){let t=vu(e),n=yu(e);return bu(t.runSync(t.parse(n),n),e)}function vu(e){let t=e.rehypePlugins||pu,n=e.remarkPlugins||pu,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...mu}:mu;return ru().use(mc).use(n).use(kl,r).use(t)}function yu(e){let t=e.children||``,n=new Yl;return typeof t==`string`?n.value=t:``+t,n}function bu(e,t){let n=t.allowedElements,r=t.allowElement,i=t.components,a=t.disallowedElements,o=t.skipHtml,s=t.unwrapDisallowed,c=t.urlTransform||xu;for(let e of gu)Object.hasOwn(t,e.from)&&``+e.from+(e.to?"use `"+e.to+"` instead":`remove it`)+e.id;return yl(e,l),Ji(e,{Fragment:d.Fragment,components:i,ignoreInvalidStyle:!0,jsx:d.jsx,jsxs:d.jsxs,passKeys:!0,passNode:!0});function l(e,t,i){if(e.type===`raw`&&i&&typeof t==`number`)return o?i.children.splice(t,1):i.children[t]={type:`text`,value:e.value},t;if(e.type===`element`){let t;for(t in ga)if(Object.hasOwn(ga,t)&&Object.hasOwn(e.properties,t)){let n=e.properties[t],r=ga[t];(r===null||r.includes(e.tagName))&&(e.properties[t]=c(String(n||``),t,e))}}if(e.type===`element`){let o=n?!n.includes(e.tagName):a?a.includes(e.tagName):!1;if(!o&&r&&typeof t==`number`&&(o=!r(e,t,i)),o&&i&&typeof t==`number`)return s&&e.children?i.children.splice(t,1,...e.children):i.children.splice(t,1),t}}}function xu(e){let t=e.indexOf(`:`),n=e.indexOf(`?`),r=e.indexOf(`#`),i=e.indexOf(`/`);return t===-1||i!==-1&&t>i||n!==-1&&t>n||r!==-1&&t>r||hu.test(e.slice(0,t))?e:``}function Su({text:e,clampLines:t,className:n}){let[r,i]=(0,u.useState)(!1),a=(0,u.useRef)(null),[o,s]=(0,u.useState)(!1);(0,u.useEffect)(()=>{if(!t)return;let e=a.current;if(!e)return;let n=()=>{let n=(parseFloat(getComputedStyle(e).lineHeight)||20)*t;s(e.scrollHeight>n+1)};n();let r=new ResizeObserver(n);return r.observe(e),()=>{r.disconnect()}},[e,t]);let c=!r&&t?{maxHeight:`${t*1.625}em`,overflow:`hidden`}:void 0;return(0,d.jsxs)(`div`,{className:n,children:[(0,d.jsx)(`div`,{ref:a,className:B(`text-sm leading-relaxed [&_p]:my-1 [&_h1]:text-base [&_h1]:font-semibold [&_h1]:my-2 [&_h2]:text-sm [&_h2]:font-semibold [&_h2]:my-2 [&_h3]:text-sm [&_h3]:font-medium [&_h3]:my-1.5 [&_ul]:my-1 [&_ol]:my-1 [&_li]:my-0 [&_a]:text-primary [&_a]:underline [&_code]:bg-muted [&_code]:px-1 [&_code]:py-0.5 [&_code]:rounded-sm [&_code]:text-xs [&_pre]:bg-muted [&_pre]:p-3 [&_pre]:rounded-md [&_pre]:overflow-x-auto [&_pre_code]:bg-transparent [&_pre_code]:p-0 [&_strong]:font-semibold`),style:c,children:(0,d.jsx)(_u,{children:e})}),o&&(0,d.jsx)(V,{variant:`ghost`,size:`sm`,className:`h-6 px-2 text-xs mt-1`,onClick:()=>i(!r),children:r?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`12`,height:`12`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`mr-1`,children:(0,d.jsx)(`polyline`,{points:`18 15 12 9 6 15`})}),`Show less`]}):(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`12`,height:`12`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`mr-1`,children:(0,d.jsx)(`polyline`,{points:`6 9 12 15 18 9`})}),`Show more`]})})]})}var Cu=(0,u.forwardRef)(({role:e,timestamp:t,icon:n,onCopy:r,onRetry:i,status:a,className:o,children:s,...c},l)=>{let u=t==null?void 0:new Date(t).toLocaleTimeString([],{hour:`2-digit`,minute:`2-digit`}),f=e===`user`,p=r!=null||i!=null;return(0,d.jsx)(`div`,{ref:l,className:B(`group flex`,f?`justify-end`:`justify-start`,o),...c,children:(0,d.jsxs)(`div`,{className:B(`flex items-end gap-2`,f&&`flex-row-reverse`),children:[n&&(0,d.jsx)(`div`,{className:`shrink-0 w-6 h-6`,children:n}),(0,d.jsxs)(`div`,{className:`flex flex-col`,children:[(0,d.jsxs)(`div`,{className:B(`flex items-end gap-1`,f&&`flex-row-reverse`),children:[(0,d.jsxs)(`div`,{className:B(`max-w-[85%] rounded-2xl px-4 py-2 text-sm`,f?`rounded-br-sm bg-primary text-primary-foreground`:`rounded-bl-sm bg-muted text-foreground`),children:[a&&(0,d.jsx)(`div`,{className:`flex items-center gap-1.5 mb-2`,children:a}),s]}),p&&(0,d.jsxs)(`div`,{className:`flex flex-col gap-0.5 opacity-0 group-hover:opacity-100 transition-opacity`,children:[r&&(0,d.jsx)(`button`,{type:`button`,onClick:r,className:`h-6 w-6 inline-flex items-center justify-center rounded-md text-muted-foreground hover:text-foreground hover:bg-accent transition-colors`,"aria-label":`Copy`,children:(0,d.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`14`,height:`14`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,children:[(0,d.jsx)(`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`}),(0,d.jsx)(`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`})]})}),i&&(0,d.jsx)(`button`,{type:`button`,onClick:i,className:`h-6 w-6 inline-flex items-center justify-center rounded-md text-muted-foreground hover:text-foreground hover:bg-accent transition-colors`,"aria-label":`Retry`,children:(0,d.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`14`,height:`14`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,children:[(0,d.jsx)(`path`,{d:`M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8`}),(0,d.jsx)(`path`,{d:`M21 3v5h-5`}),(0,d.jsx)(`path`,{d:`M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16`}),(0,d.jsx)(`path`,{d:`M3 21v-5h5`})]})})]})]}),u&&(0,d.jsx)(`span`,{className:B(`text-[10px] text-muted-foreground mt-1`,f?`text-right`:`text-left`),children:u})]})]})})});Cu.displayName=`ChatMessage`;var wu=(0,u.forwardRef)(({onSubmit:e,placeholder:t=`Type a message...`,disabled:n,loading:r,onCancel:i,className:a,...o},s)=>{let c=(0,u.useRef)(null),l=(0,u.useCallback)(()=>{let e=c.current;e&&(e.style.height=`auto`,e.style.height=`40px`)},[]),f=(0,u.useCallback)(()=>{let e=c.current;e&&(e.style.height=`auto`,e.style.height=`${Math.min(e.scrollHeight,120)}px`)},[]),p=(0,u.useCallback)(t=>{t?.preventDefault();let n=c.current;if(!n)return;let r=n.value.trim();r&&(e?.(r),n.value=``,l())},[e,l]),m=(0,u.useCallback)(e=>{e.key===`Enter`&&!e.shiftKey&&(e.preventDefault(),p())},[p]);return(0,d.jsxs)(`form`,{ref:s,className:B(`border-t border-border p-3 flex items-end gap-2`,a),onSubmit:p,...o,children:[(0,d.jsx)(`textarea`,{ref:c,rows:1,placeholder:t,disabled:n||r,onInput:f,onKeyDown:m,className:`flex-1 resize-none bg-transparent text-sm placeholder:text-muted-foreground focus:outline-none min-h-[40px] max-h-[120px] py-2.5`}),r?(0,d.jsx)(V,{type:`button`,variant:`ghost`,size:`icon`,onClick:i,"aria-label":`Stop`,children:(0,d.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`16`,height:`16`,viewBox:`0 0 24 24`,fill:`currentColor`,children:(0,d.jsx)(`rect`,{x:`6`,y:`6`,width:`12`,height:`12`,rx:`2`})})}):(0,d.jsx)(V,{type:`submit`,variant:`ghost`,size:`icon`,disabled:n,"aria-label":`Send`,children:(0,d.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`16`,height:`16`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,children:[(0,d.jsx)(`path`,{d:`M12 19V5`}),(0,d.jsx)(`path`,{d:`m5 12 7-7 7 7`})]})})]})});wu.displayName=`ChatInput`;var Tu=(0,u.forwardRef)(({className:e,...t},n)=>(0,d.jsxs)(`div`,{ref:n,className:B(`flex items-center gap-1 px-4 py-2`,e),...t,children:[(0,d.jsx)(`span`,{className:`w-2 h-2 rounded-full bg-muted-foreground animate-bounce [animation-delay:0s]`}),(0,d.jsx)(`span`,{className:`w-2 h-2 rounded-full bg-muted-foreground animate-bounce [animation-delay:0.15s]`}),(0,d.jsx)(`span`,{className:`w-2 h-2 rounded-full bg-muted-foreground animate-bounce [animation-delay:0.3s]`})]}));Tu.displayName=`TypingIndicator`;var Eu=(0,u.forwardRef)(({autoScroll:e=!0,className:t,children:n,...r},i)=>{let a=(0,u.useRef)(null),o=i??a;return(0,u.useEffect)(()=>{if(!e)return;let t=o.current;if(!t)return;let n=new MutationObserver(()=>{t.scrollTo({top:t.scrollHeight,behavior:`smooth`})});return n.observe(t,{childList:!0,subtree:!0}),()=>{n.disconnect()}},[e,o]),(0,d.jsx)(`div`,{ref:o,className:B(`flex-1 overflow-y-auto`,t),...r,children:n})});Eu.displayName=`ScrollArea`;var Du=(0,u.forwardRef)(({code:e,language:t,filename:n,highlighter:r,lightTheme:i=`github-light`,darkTheme:a=`github-dark`,showLineNumbers:o=!1,showCopyButton:s=!0,onCopy:c,maxHeight:l,className:f,...p},m)=>{let[h,g]=(0,u.useState)(!1),_=(0,u.useCallback)(async()=>{await navigator.clipboard.writeText(e),g(!0),c?.(e),setTimeout(()=>g(!1),2e3)},[e,c]),v=(0,u.useMemo)(()=>{if(!r||!t)return null;try{return r.codeToHtml(e,{lang:t,themes:{light:i,dark:a}})}catch{return null}},[r,e,t,i,a]),y=e.split(`
|
|
15
|
+
`),b=s&&(0,d.jsx)(V,{variant:`ghost`,size:`icon`,onClick:_,className:B(`h-7 w-7 shrink-0`,!n&&`absolute top-2 right-2 opacity-0 group-hover:opacity-100 transition-opacity`),"aria-label":h?`Copied`:`Copy code`,children:h?(0,d.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`14`,height:`14`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,d.jsx)(`polyline`,{points:`20 6 9 17 4 12`})}):(0,d.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`14`,height:`14`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,children:[(0,d.jsx)(`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`}),(0,d.jsx)(`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`})]})});return(0,d.jsxs)(`div`,{ref:m,className:B(`ord-code-block group rounded-[var(--ord-radius)] border bg-code overflow-hidden`,f),...p,children:[n&&(0,d.jsxs)(`div`,{className:`flex items-center gap-2 px-3 py-2 border-b text-xs text-code-foreground`,children:[(0,d.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`12`,height:`12`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`shrink-0`,children:[(0,d.jsx)(`path`,{d:`M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z`}),(0,d.jsx)(`path`,{d:`M14 2v4a2 2 0 0 0 2 2h4`})]}),(0,d.jsx)(`span`,{className:`flex-1 truncate`,children:n}),b]}),(0,d.jsxs)(`div`,{className:`relative`,style:l?{maxHeight:l,overflowY:`auto`}:void 0,children:[!n&&b,v?(0,d.jsx)(`div`,{className:B(`p-4 overflow-x-auto font-mono text-sm [&_pre]:!bg-transparent [&_code]:!bg-transparent`,o&&`ord-code-block-lines`),dangerouslySetInnerHTML:{__html:v}}):(0,d.jsx)(`pre`,{className:`p-4 overflow-x-auto font-mono text-sm whitespace-pre text-code-foreground bg-code`,children:(0,d.jsx)(`code`,{children:o?y.map((e,t)=>(0,d.jsxs)(`span`,{className:`block`,children:[(0,d.jsx)(`span`,{className:`inline-block w-8 mr-4 text-right text-muted-foreground select-none`,children:t+1}),e]},t)):e})})]})]})});Du.displayName=`CodeBlock`;function Ou(e,t,n){let r=getComputedStyle(e).getPropertyValue(t).trim();if(!r)return n;if(r.startsWith(`#`))return r;let i=document.createElement(`div`);i.style.display=`none`,i.style.color=`var(${t})`,e.appendChild(i);let a=getComputedStyle(i).color;e.removeChild(i);let o=a.match(/rgba?\((\d+),\s*(\d+),\s*(\d+)/);if(o){let e=e=>parseInt(e).toString(16).padStart(2,`0`);return`#${e(o[1])}${e(o[2])}${e(o[3])}`}let s=a.match(/color\(srgb\s+([\d.]+)\s+([\d.]+)\s+([\d.]+)/);if(s){let e=e=>Math.round(parseFloat(e)*255).toString(16).padStart(2,`0`);return`#${e(s[1])}${e(s[2])}${e(s[3])}`}return n}var ku=(0,u.forwardRef)(({value:e,onChange:t,defaultValue:n,language:r=`json`,readOnly:i=!1,lineNumbers:a=`on`,minHeight:o=`300px`,height:s,showToolbar:c=!0,className:l,...f},p)=>{let m=(0,u.useRef)(null),h=(0,u.useRef)(null),g=(0,T.useMonaco)(),[_,v]=(0,u.useState)(!1),[y,b]=(0,u.useState)(!1),x=(0,u.useCallback)(()=>{if(!g)return;let e=m.current?.closest(`.ord-ui`);if(!e)return;let t=e.classList.contains(`dark`),n=Ou(e,`--background`,t?`#1e1e1e`:`#ffffff`),r=Ou(e,`--foreground`,t?`#d4d4d4`:`#1e1e1e`),i=Ou(e,`--muted`,t?`#2d2d30`:`#f5f5f5`),a=Ou(e,`--muted-foreground`,t?`#858585`:`#237893`),o=Ou(e,`--primary`,t?`#0098ff`:`#005fb8`),s=Ou(e,`--border`,t?`#3e3e42`:`#e0e0e0`);g.editor.defineTheme(`ord-dark`,{base:`vs-dark`,inherit:!0,rules:[],colors:{"editor.background":n,"editor.foreground":r,"editorLineNumber.foreground":a,"editorLineNumber.activeForeground":r,"editor.selectionBackground":o+`44`,"editor.lineHighlightBackground":i,"editorWidget.background":n,"editorWidget.border":s}}),g.editor.defineTheme(`ord-light`,{base:`vs`,inherit:!0,rules:[],colors:{"editor.background":n,"editor.foreground":r,"editorLineNumber.foreground":a,"editorLineNumber.activeForeground":r,"editor.selectionBackground":o+`33`,"editor.lineHighlightBackground":i,"editorWidget.background":n,"editorWidget.border":s}}),g.editor.setTheme(t?`ord-dark`:`ord-light`)},[g]);(0,u.useEffect)(()=>{let e=m.current;if(!e)return;let t=e.closest(`.ord-ui`);if(!t)return;let n=()=>{b(t.classList.contains(`dark`)),x()};n();let r=new MutationObserver(n);return r.observe(t,{attributes:!0,attributeFilter:[`class`]}),()=>{r.disconnect()}},[x]),(0,u.useEffect)(()=>{g&&x()},[g,x]);let S=e=>{h.current=e,x()},C=()=>{try{let n=JSON.stringify(JSON.parse(e),null,2);t?.(n)}catch{}},w=async()=>{await navigator.clipboard.writeText(e),v(!0),setTimeout(()=>v(!1),2e3)},E=()=>{t?.(n??``)};return(0,d.jsxs)(`div`,{ref:e=>{m.current=e,typeof p==`function`?p(e):p&&(p.current=e)},className:B(`h-full rounded-lg border overflow-hidden flex flex-col`,l),...f,children:[c&&(0,d.jsxs)(`div`,{className:`flex h-10 items-center gap-1 border-b bg-muted/30 px-2`,children:[(0,d.jsxs)(V,{variant:`ghost`,size:`sm`,onClick:C,disabled:!e.trim(),children:[(0,d.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`h-4 w-4`,children:[(0,d.jsx)(`path`,{d:`M15 4V2`}),(0,d.jsx)(`path`,{d:`M15 16v-2`}),(0,d.jsx)(`path`,{d:`M8 9h2`}),(0,d.jsx)(`path`,{d:`M20 9h2`}),(0,d.jsx)(`path`,{d:`M17.8 11.8 20 14`}),(0,d.jsx)(`path`,{d:`M15 9h.01`}),(0,d.jsx)(`path`,{d:`M17.8 6.2 20 4`}),(0,d.jsx)(`path`,{d:`m3 21 9-9`}),(0,d.jsx)(`path`,{d:`M12.2 6.2 10 4`})]}),(0,d.jsx)(`span`,{className:`hidden sm:inline`,children:`Format`})]}),(0,d.jsxs)(V,{variant:`ghost`,size:`sm`,onClick:w,disabled:!e.trim(),children:[_?(0,d.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`h-4 w-4 text-success`,children:(0,d.jsx)(`polyline`,{points:`20 6 9 17 4 12`})}):(0,d.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`h-4 w-4`,children:[(0,d.jsx)(`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`}),(0,d.jsx)(`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`})]}),(0,d.jsx)(`span`,{className:`hidden sm:inline`,children:_?`Copied`:`Copy`})]}),(0,d.jsx)(`div`,{className:`flex-1`}),(0,d.jsxs)(V,{variant:`ghost`,size:`sm`,onClick:E,disabled:!e.trim(),children:[(0,d.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`h-4 w-4`,children:[(0,d.jsx)(`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`}),(0,d.jsx)(`path`,{d:`M3 3v5h5`})]}),(0,d.jsx)(`span`,{className:`hidden sm:inline`,children:`Reset`})]})]}),(0,d.jsx)(`div`,{className:`flex-1 overflow-hidden min-h-0`,style:{minHeight:o},children:(0,d.jsx)(T.default,{height:s??`100%`,value:e,onChange:e=>t?.(e||``),language:r,theme:y?`ord-dark`:`ord-light`,options:{readOnly:i,minimap:{enabled:!1},automaticLayout:!0,fontSize:13,lineNumbers:a,scrollBeyondLastLine:!1,wordWrap:`on`,tabSize:2,renderLineHighlight:`line`,padding:{top:8,bottom:8}},onMount:S})})]})});ku.displayName=`CodeEditor`;function Au(e){if(!e)return``;try{return JSON.stringify(JSON.parse(e),null,2)}catch{return e}}var ju=(0,u.forwardRef)(({method:e,url:t,statusCode:n,duration:r,timestamp:i,requestBody:a,requestHeaders:o,responseBody:s,responseStatus:c,error:l,highlighted:f,defaultOpen:p=!1,highlighter:m,onResend:h,onCopy:g,onEdit:_,className:v,...y},b)=>{let[x,S]=(0,u.useState)(p),[C,T]=(0,u.useState)(!1),[E,D]=(0,u.useState)(``),[O,ee]=(0,u.useState)(``),[te,k]=(0,u.useState)(!1),A=n==null&&!l,j=l!=null||n!=null&&n>=400,ne=n!=null&&n<400,re=i==null?void 0:new Date(i).toLocaleTimeString([],{hour:`2-digit`,minute:`2-digit`,second:`2-digit`});return(0,d.jsx)(`div`,{ref:b,className:B(`rounded-[var(--ord-radius)] border bg-card-bg overflow-hidden`,f&&`ring-2 ring-primary`,v),...y,children:(0,d.jsxs)(w.Collapsible.Root,{open:x,onOpenChange:S,children:[(0,d.jsxs)(w.Collapsible.Trigger,{className:`flex items-center gap-2 w-full px-3 py-2 text-left hover:bg-accent/50 transition-colors cursor-pointer`,children:[A&&(0,d.jsx)(Sr,{size:`sm`,className:`h-3.5 w-3.5`}),ne&&(0,d.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`14`,height:`14`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`shrink-0 text-success`,children:[(0,d.jsx)(`path`,{d:`M22 11.08V12a10 10 0 1 1-5.93-9.14`}),(0,d.jsx)(`polyline`,{points:`22 4 12 14.01 9 11.01`})]}),j&&!A&&(0,d.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`14`,height:`14`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`shrink-0 text-destructive`,children:[(0,d.jsx)(`circle`,{cx:`12`,cy:`12`,r:`10`}),(0,d.jsx)(`line`,{x1:`12`,y1:`8`,x2:`12`,y2:`12`}),(0,d.jsx)(`line`,{x1:`12`,y1:`16`,x2:`12.01`,y2:`16`})]}),(0,d.jsx)(rr,{variant:`outline`,size:`sm`,className:`font-mono shrink-0`,children:e}),n!=null&&(0,d.jsx)(rr,{variant:n<400?`success`:`destructive`,size:`sm`,className:`shrink-0`,children:n}),(0,d.jsx)(`span`,{className:`text-xs text-muted-foreground truncate flex-1 min-w-0`,children:t}),(r!=null||re)&&(0,d.jsxs)(`div`,{className:`flex flex-col items-end shrink-0`,children:[r!=null&&(0,d.jsxs)(`span`,{className:`text-[10px] text-muted-foreground flex items-center gap-0.5`,children:[(0,d.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`10`,height:`10`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,children:[(0,d.jsx)(`circle`,{cx:`12`,cy:`12`,r:`10`}),(0,d.jsx)(`polyline`,{points:`12 6 12 12 16 14`})]}),r,`ms`]}),re&&(0,d.jsx)(`span`,{className:`text-[10px] text-muted-foreground`,children:re})]}),(0,d.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`12`,height:`12`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:B(`shrink-0 transition-transform`,x&&`rotate-180`),children:(0,d.jsx)(`polyline`,{points:`6 9 12 15 18 9`})})]}),(0,d.jsx)(w.Collapsible.Panel,{className:`border-t`,children:(0,d.jsxs)(`div`,{className:`p-3 space-y-4`,children:[(h||g||_)&&(0,d.jsxs)(`div`,{className:`flex items-center gap-2`,children:[h&&(0,d.jsxs)(V,{variant:`ghost`,size:`sm`,onClick:h,children:[(0,d.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`12`,height:`12`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,d.jsx)(`polygon`,{points:`5 3 19 12 5 21 5 3`})}),`Resend`]}),g&&(0,d.jsxs)(V,{variant:`ghost`,size:`sm`,onClick:()=>{g(),k(!0),setTimeout(()=>k(!1),2e3)},children:[te?(0,d.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`12`,height:`12`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`text-success`,children:(0,d.jsx)(`polyline`,{points:`20 6 9 17 4 12`})}):(0,d.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`12`,height:`12`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,children:[(0,d.jsx)(`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`}),(0,d.jsx)(`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`})]}),te?`Copied`:`Copy as cURL`]}),_&&(0,d.jsxs)(V,{variant:`ghost`,size:`sm`,onClick:()=>{C||(D(o?JSON.stringify(o,null,2):`{}`),ee(Au(a)||``)),T(e=>!e)},children:[(0,d.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`12`,height:`12`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,children:[(0,d.jsx)(`path`,{d:`M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7`}),(0,d.jsx)(`path`,{d:`M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z`})]}),`Edit`]})]}),C&&_&&(0,d.jsxs)(`div`,{className:`space-y-3 border rounded-[var(--ord-radius)] p-3 bg-muted/20`,children:[(0,d.jsxs)(`div`,{className:`space-y-1.5`,children:[(0,d.jsx)(`h4`,{className:`text-xs font-medium text-muted-foreground`,children:`Headers`}),(0,d.jsx)(ku,{value:E,onChange:D,language:`json`,height:`120px`,minHeight:`120px`,showToolbar:!1,className:`text-xs`})]}),(0,d.jsxs)(`div`,{className:`space-y-1.5`,children:[(0,d.jsx)(`h4`,{className:`text-xs font-medium text-muted-foreground`,children:`Body`}),(0,d.jsx)(ku,{value:O,onChange:ee,language:`json`,height:`200px`,minHeight:`200px`,showToolbar:!1,className:`text-xs`})]}),(0,d.jsxs)(`div`,{className:`flex items-center gap-2 justify-end`,children:[(0,d.jsx)(V,{variant:`ghost`,size:`sm`,onClick:()=>T(!1),children:`Cancel`}),(0,d.jsxs)(V,{size:`sm`,onClick:()=>{let e={};try{e=JSON.parse(E)}catch{}_({headers:e,body:O}),T(!1)},children:[(0,d.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`12`,height:`12`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,d.jsx)(`polygon`,{points:`5 3 19 12 5 21 5 3`})}),`Send`]})]})]}),(0,d.jsxs)(`div`,{className:`space-y-2`,children:[(0,d.jsx)(`h4`,{className:`text-xs font-medium text-muted-foreground`,children:`Request`}),(0,d.jsxs)(`div`,{className:`font-mono text-[11px] bg-muted p-2 rounded`,children:[`POST `,t]}),o&&Object.keys(o).length>0&&(0,d.jsxs)(`details`,{className:`text-xs`,children:[(0,d.jsxs)(`summary`,{className:`cursor-pointer text-muted-foreground hover:text-foreground`,children:[`Headers (`,Object.keys(o).length,`)`]}),(0,d.jsx)(Du,{code:JSON.stringify(o,null,2),language:`json`,highlighter:m,className:`mt-1 text-[11px]`})]}),a&&(0,d.jsxs)(`details`,{open:!0,className:`text-xs`,children:[(0,d.jsx)(`summary`,{className:`cursor-pointer text-muted-foreground hover:text-foreground`,children:`Body`}),(0,d.jsx)(Du,{code:Au(a),language:`json`,highlighter:m,className:`mt-1 text-[11px]`})]})]}),s&&(0,d.jsxs)(`div`,{className:`space-y-2`,children:[(0,d.jsx)(`h4`,{className:`text-xs font-medium text-muted-foreground`,children:`Response`}),n!=null&&(0,d.jsxs)(`div`,{className:B(`font-mono text-[11px] p-2 rounded`,n<400?`bg-success/10 text-success`:`bg-destructive/10 text-destructive`),children:[`HTTP `,n,` `,c]}),(0,d.jsxs)(`details`,{open:!0,className:`text-xs`,children:[(0,d.jsx)(`summary`,{className:`cursor-pointer text-muted-foreground hover:text-foreground`,children:`Body`}),(0,d.jsx)(Du,{code:Au(s),language:`json`,highlighter:m,className:`mt-1 text-[11px]`})]})]}),l&&(0,d.jsx)(`div`,{className:`text-xs text-destructive bg-destructive/10 p-2 rounded`,children:l})]})})]})})});ju.displayName=`HttpLogEntry`;var Mu=(0,u.createContext)(`horizontal`),Nu=(0,u.forwardRef)(({orientation:e=`horizontal`,autoSaveId:t,children:n,className:r,style:i,...a},o)=>(0,d.jsx)(Mu.Provider,{value:e,children:(0,d.jsx)(E.Group,{orientation:e,id:t,className:B(`h-full overflow-hidden`,r),style:i,elementRef:o,...a,children:n})}));Nu.displayName=`SplitPane.Root`;var Pu=(0,u.forwardRef)(({defaultSize:e,minSize:t,maxSize:n,collapsible:r,collapsedSize:i,onCollapse:a,onExpand:o,children:s,className:c,style:l,...u},f)=>(0,d.jsx)(E.Panel,{defaultSize:e,minSize:t,maxSize:n,collapsible:r,collapsedSize:i,onResize:e=>{r&&i!=null&&((typeof e==`number`?e:parseFloat(String(e)))<=i?a?.():o?.())},className:B(`overflow-auto`,c),style:l,elementRef:f,...u,children:s}));Pu.displayName=`SplitPane.Panel`;var Fu=(0,u.forwardRef)(({showGrip:e=!0,className:t,...n},r)=>{let i=(0,u.useContext)(Mu)===`horizontal`;return(0,d.jsx)(E.Separator,{className:B(`group relative flex items-center justify-center transition-colors`,i?`w-2 hover:bg-border`:`h-2 hover:bg-border`,`bg-border/50`,t),elementRef:r,...n,children:e&&(0,d.jsx)(`div`,{className:B(`absolute z-10 flex items-center justify-center rounded-sm bg-border opacity-0 transition-opacity group-hover:opacity-100`,i?`h-8 w-4`:`h-4 w-8`),children:i?(0,d.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`16`,height:`16`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`text-muted-foreground`,children:[(0,d.jsx)(`circle`,{cx:`9`,cy:`12`,r:`1`}),(0,d.jsx)(`circle`,{cx:`9`,cy:`5`,r:`1`}),(0,d.jsx)(`circle`,{cx:`9`,cy:`19`,r:`1`}),(0,d.jsx)(`circle`,{cx:`15`,cy:`12`,r:`1`}),(0,d.jsx)(`circle`,{cx:`15`,cy:`5`,r:`1`}),(0,d.jsx)(`circle`,{cx:`15`,cy:`19`,r:`1`})]}):(0,d.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`16`,height:`16`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`text-muted-foreground`,children:[(0,d.jsx)(`circle`,{cx:`12`,cy:`9`,r:`1`}),(0,d.jsx)(`circle`,{cx:`5`,cy:`9`,r:`1`}),(0,d.jsx)(`circle`,{cx:`19`,cy:`9`,r:`1`}),(0,d.jsx)(`circle`,{cx:`12`,cy:`15`,r:`1`}),(0,d.jsx)(`circle`,{cx:`5`,cy:`15`,r:`1`}),(0,d.jsx)(`circle`,{cx:`19`,cy:`15`,r:`1`})]})})})});Fu.displayName=`SplitPane.Handle`;var Iu=Object.assign(Nu,{Root:Nu,Panel:Pu,Handle:Fu}),Lu={pass:{borderColor:`var(--color-green-500)`,iconClass:`text-success`,icon:(0,d.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`h-4 w-4`,children:[(0,d.jsx)(`path`,{d:`M22 11.08V12a10 10 0 1 1-5.93-9.14`}),(0,d.jsx)(`polyline`,{points:`22 4 12 14.01 9 11.01`})]})},warning:{borderColor:`var(--color-yellow-500)`,iconClass:`text-warning`,icon:(0,d.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`h-4 w-4`,children:[(0,d.jsx)(`path`,{d:`m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z`}),(0,d.jsx)(`line`,{x1:`12`,y1:`9`,x2:`12`,y2:`13`}),(0,d.jsx)(`line`,{x1:`12`,y1:`17`,x2:`12.01`,y2:`17`})]})},fail:{borderColor:`var(--color-red-500)`,iconClass:`text-destructive`,icon:(0,d.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`h-4 w-4`,children:[(0,d.jsx)(`circle`,{cx:`12`,cy:`12`,r:`10`}),(0,d.jsx)(`line`,{x1:`15`,y1:`9`,x2:`9`,y2:`15`}),(0,d.jsx)(`line`,{x1:`9`,y1:`9`,x2:`15`,y2:`15`})]})}},Ru=(0,u.forwardRef)(({status:e,rule:t,message:n,path:r,className:i,style:a,...o},s)=>{let c=Lu[e];return(0,d.jsx)(`div`,{ref:s,className:B(`rounded-md border border-l-4 p-3 transition-all duration-150 hover:shadow-sm hover:translate-x-0.5`,i),style:{borderLeftColor:c.borderColor,...a},...o,children:(0,d.jsxs)(`div`,{className:`flex items-start gap-2`,children:[(0,d.jsx)(`span`,{className:B(`mt-0.5 shrink-0`,c.iconClass),children:c.icon}),(0,d.jsxs)(`div`,{className:`flex-1 min-w-0 space-y-1`,children:[(0,d.jsxs)(`div`,{className:`flex items-center gap-2 flex-wrap`,children:[(0,d.jsx)(`span`,{className:`font-medium text-sm`,children:t}),r&&(0,d.jsx)(`code`,{className:`text-xs bg-muted px-1 rounded`,children:r})]}),(0,d.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:n})]})]})})});Ru.displayName=`ValidationEntry`;var zu=(0,u.forwardRef)(({title:e=`All checks passed`,suffix:t,className:n,...r},i)=>(0,d.jsxs)(`div`,{ref:i,className:B(`flex flex-col items-center justify-center gap-4`,n),...r,children:[(0,d.jsxs)(`svg`,{className:`validation-pass-checkmark`,xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 52 52`,"aria-hidden":`true`,children:[(0,d.jsx)(`circle`,{className:`validation-pass-circle`,cx:`26`,cy:`26`,r:`25`,fill:`none`}),(0,d.jsx)(`path`,{className:`validation-pass-check`,fill:`none`,d:`M14.1 27.2l7.1 7.2 16.7-16.8`})]}),(0,d.jsxs)(`p`,{className:`text-lg`,children:[(0,d.jsx)(`span`,{className:`font-bold text-foreground`,children:e}),t&&(0,d.jsx)(`span`,{className:`font-normal text-muted-foreground`,children:t})]})]}));zu.displayName=`ValidationPass`,exports.Avatar=gr,exports.Badge=rr,exports.Button=V,exports.Card=qn,exports.ChatInput=wu,exports.ChatMessage=Cu,exports.Checkbox=Ft,exports.CodeBlock=Du,exports.CodeEditor=ku,exports.CollapsibleSection=Br,exports.Combobox=Qt,exports.ConnectionCard=Or,exports.Dialog=On,exports.Field=Vt,exports.HttpLogEntry=ju,exports.InfoCard=Ir,exports.Input=Dt,exports.MarkdownText=Su,exports.PasswordInput=jt,exports.Progress=br,exports.RadioGroup=It,exports.ScrollArea=Eu,exports.SectionCard=Wr,exports.Select=H,exports.Separator=tr,exports.Sheet=zn,exports.SimpleCard=Jn,exports.SimpleCombobox=$t,exports.SimpleDialog=kn,exports.SimpleSelect=gn,exports.SimpleSheet=Bn,exports.Spinner=Sr,exports.SplitPane=Iu,exports.Switch=yn,exports.Tabs=er,exports.Textarea=Ot,exports.ThemeRoot=A,exports.Tooltip=dr,exports.TypingIndicator=Tu,exports.ValidationEntry=Ru,exports.ValidationPass=zu,exports.badgeVariants=nr,exports.buttonVariants=Et,exports.cn=B,exports.sheetPopupVariants=Pn,exports.spinnerVariants=xr,exports.usePortalContainer=k,exports.useTheme=ee;
|