fidelity-kit 2.2.0 → 2.3.0

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.
@@ -1,4 +1,4 @@
1
- import{C as e,S as t,_ as n,a as r,b as i,c as a,d as o,f as s,g as c,h as l,i as u,l as d,m as f,n as p,o as m,p as h,r as g,s as _,t as v,u as y,v as b,x,y as S}from"./index-D3r8erGw.js";var C=e(i()),w=b();function T({as:e,id:t,anchor:n,className:r=``,children:i}){return(0,w.jsxs)(e,{className:`group flex scroll-mt-20 items-baseline gap-2 ${r}`,id:t,children:[i,(0,w.jsx)(`span`,{className:`text-muted-foreground opacity-0 transition-opacity group-focus-within:opacity-100 group-hover:opacity-100`,children:n})]})}var E=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),D=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),O=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),k=e=>{let t=O(e);return t.charAt(0).toUpperCase()+t.slice(1)},A={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`},j=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},M=(0,C.forwardRef)(({color:e=`currentColor`,size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i=``,children:a,iconNode:o,...s},c)=>(0,C.createElement)(`svg`,{ref:c,...A,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:E(`lucide`,i),...!a&&!j(s)&&{"aria-hidden":`true`},...s},[...o.map(([e,t])=>(0,C.createElement)(e,t)),...Array.isArray(a)?a:[a]])),N=(e,t)=>{let n=(0,C.forwardRef)(({className:n,...r},i)=>(0,C.createElement)(M,{ref:i,iconNode:t,className:E(`lucide-${D(k(e))}`,`lucide-${e}`,n),...r}));return n.displayName=k(e),n},P=N(`arrow-up-down`,[[`path`,{d:`m21 16-4 4-4-4`,key:`f6ql7i`}],[`path`,{d:`M17 20V4`,key:`1ejh1v`}],[`path`,{d:`m3 8 4-4 4 4`,key:`11wl7u`}],[`path`,{d:`M7 4v16`,key:`1glfcx`}]]),ee=N(`check`,[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]),F=N(`chevron-down`,[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]),te=N(`chevron-right`,[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]),ne=N(`chevron-up`,[[`path`,{d:`m18 15-6-6-6 6`,key:`153udz`}]]),re=N(`github`,[[`path`,{d:`M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4`,key:`tonef`}],[`path`,{d:`M9 18c-4.51 2-5-2-7-2`,key:`9comsn`}]]);function ie(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=ie(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n)}return r}function I(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=ie(e))&&(r&&(r+=` `),r+=t);return r}var L=(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},ae=(e,t)=>({classGroupId:e,validator:t}),oe=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),R=`-`,se=[],ce=`arbitrary..`,le=e=>{let t=fe(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return de(e);let n=e.split(R);return ue(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?L(i,t):t:i||se}return n[e]||se}}},ue=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=ue(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(R):e.slice(t).join(R),s=a.length;for(let e=0;e<s;e++){let t=a[e];if(t.validator(o))return t.classGroupId}},de=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})(),fe=e=>{let{theme:t,classGroups:n}=e;return pe(n,t)},pe=(e,t)=>{let n=oe();for(let r in e){let i=e[r];me(i,n,r,t)}return n},me=(e,t,n,r)=>{let i=e.length;for(let a=0;a<i;a++){let i=e[a];he(i,t,n,r)}},he=(e,t,n,r)=>{if(typeof e==`string`){ge(e,t,n);return}if(typeof e==`function`){_e(e,t,n,r);return}ve(e,t,n,r)},ge=(e,t,n)=>{let r=e===``?t:ye(t,e);r.classGroupId=n},_e=(e,t,n,r)=>{if(be(e)){me(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(ae(n,e))},ve=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e<a;e++){let[a,o]=i[e];me(o,ye(t,a),n,r)}},ye=(e,t)=>{let n=e,r=t.split(R),i=r.length;for(let e=0;e<i;e++){let t=r[e],i=n.nextPart.get(t);i||(i=oe(),n.nextPart.set(t,i)),n=i}return n},be=e=>`isThemeGetter`in e&&e.isThemeGetter===!0,xe=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)}}},Se=`!`,Ce=`:`,we=[],Te=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),Ee=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===Ce){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(Se)?(c=s.slice(0,-1),l=!0):s.startsWith(Se)&&(c=s.slice(1),l=!0);let u=a&&a>i?a-i:void 0;return Te(t,l,c,u)};if(t){let e=t+Ce,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):Te(we,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},De=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}},Oe=e=>({cache:xe(e.cacheSize),parseClassName:Ee(e),sortModifiers:De(e),postfixLookupClassGroupIds:ke(e),...le(e)}),ke=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},Ae=/\s+/,je=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a,postfixLookupClassGroupIds:o}=t,s=[],c=e.trim().split(Ae),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?_+Se:_,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},Me=(...e)=>{let t=0,n,r,i=``;for(;t<e.length;)(n=e[t++])&&(r=Ne(n))&&(i&&(i+=` `),i+=r);return i},Ne=e=>{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r<e.length;r++)e[r]&&(t=Ne(e[r]))&&(n&&(n+=` `),n+=t);return n},Pe=(e,...t)=>{let n,r,i,a,o=o=>(n=Oe(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=je(e,n);return i(e,a),a};return a=o,(...e)=>a(Me(...e))},Fe=[],z=e=>{let t=t=>t[e]||Fe;return t.isThemeGetter=!0,t.themeKey=e,t},Ie=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Le=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Re=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,ze=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Be=/\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$/,Ve=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/,He=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ue=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,We=e=>Re.test(e),B=e=>!!e&&!Number.isNaN(Number(e)),Ge=e=>!!e&&Number.isInteger(Number(e)),Ke=e=>e.endsWith(`%`)&&B(e.slice(0,-1)),qe=e=>ze.test(e),Je=()=>!0,Ye=e=>Be.test(e)&&!Ve.test(e),Xe=()=>!1,Ze=e=>He.test(e),Qe=e=>Ue.test(e),$e=e=>!V(e)&&!H(e),et=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)),tt=e=>gt(e,bt,Xe),V=e=>Ie.test(e),nt=e=>gt(e,xt,Ye),rt=e=>gt(e,St,B),it=e=>gt(e,wt,Je),at=e=>gt(e,Ct,Xe),ot=e=>gt(e,vt,Xe),st=e=>gt(e,yt,Qe),ct=e=>gt(e,Tt,Ze),H=e=>Le.test(e),lt=e=>_t(e,xt),ut=e=>_t(e,Ct),dt=e=>_t(e,vt),ft=e=>_t(e,bt),pt=e=>_t(e,yt),mt=e=>_t(e,Tt,!0),ht=e=>_t(e,wt,!0),gt=(e,t,n)=>{let r=Ie.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},_t=(e,t,n=!1)=>{let r=Le.exec(e);return r?r[1]?t(r[1]):n:!1},vt=e=>e===`position`||e===`percentage`,yt=e=>e===`image`||e===`url`,bt=e=>e===`length`||e===`size`||e===`bg-size`,xt=e=>e===`length`,St=e=>e===`number`,Ct=e=>e===`family-name`,wt=e=>e===`number`||e===`weight`,Tt=e=>e===`shadow`,Et=Pe(()=>{let e=z(`color`),t=z(`font`),n=z(`text`),r=z(`font-weight`),i=z(`tracking`),a=z(`leading`),o=z(`breakpoint`),s=z(`container`),c=z(`spacing`),l=z(`radius`),u=z(`shadow`),d=z(`inset-shadow`),f=z(`text-shadow`),p=z(`drop-shadow`),m=z(`blur`),h=z(`perspective`),g=z(`aspect`),_=z(`ease`),v=z(`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(),H,V],S=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],C=()=>[`auto`,`contain`,`none`],w=()=>[H,V,c],T=()=>[We,`full`,`auto`,...w()],E=()=>[Ge,`none`,`subgrid`,H,V],D=()=>[`auto`,{span:[`full`,Ge,H,V]},Ge,H,V],O=()=>[Ge,`auto`,H,V],k=()=>[`auto`,`min`,`max`,`fr`,H,V],A=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],j=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],M=()=>[`auto`,...w()],N=()=>[We,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...w()],P=()=>[s,We,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...w()],ee=()=>[We,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...w()],F=()=>[e,H,V],te=()=>[...b(),dt,ot,{position:[H,V]}],ne=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],re=()=>[`auto`,`cover`,`contain`,ft,tt,{size:[H,V]}],ie=()=>[Ke,lt,nt],I=()=>[``,`none`,`full`,l,H,V],L=()=>[``,B,lt,nt],ae=()=>[`solid`,`dashed`,`dotted`,`double`],oe=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],R=()=>[B,Ke,dt,ot],se=()=>[``,`none`,m,H,V],ce=()=>[`none`,B,H,V],le=()=>[`none`,B,H,V],ue=()=>[B,H,V],de=()=>[We,`full`,...w()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[qe],breakpoint:[qe],color:[Je],container:[qe],"drop-shadow":[qe],ease:[`in`,`out`,`in-out`],font:[$e],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[qe],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[qe],shadow:[qe],spacing:[`px`,B],text:[qe],"text-shadow":[qe],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,We,V,H,g]}],container:[`container`],"container-type":[{"@container":[``,`normal`,`size`,H,V]}],"container-named":[et],columns:[{columns:[B,`auto`,V,H,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:[Ge,`auto`,H,V]}],basis:[{basis:[We,`full`,`auto`,s,...w()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[B,We,`auto`,`initial`,`none`,V]}],grow:[{grow:[``,B,H,V]}],shrink:[{shrink:[``,B,H,V]}],order:[{order:[Ge,`first`,`last`,`none`,H,V]}],"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":k()}],"auto-rows":[{"auto-rows":k()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:[...A(),`normal`]}],"justify-items":[{"justify-items":[...j(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...j()]}],"align-content":[{content:[`normal`,...A()]}],"align-items":[{items:[...j(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...j(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":A()}],"place-items":[{"place-items":[...j(),`baseline`]}],"place-self":[{"place-self":[`auto`,...j()]}],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:M()}],mx:[{mx:M()}],my:[{my:M()}],ms:[{ms:M()}],me:[{me:M()}],mbs:[{mbs:M()}],mbe:[{mbe:M()}],mt:[{mt:M()}],mr:[{mr:M()}],mb:[{mb:M()}],ml:[{ml:M()}],"space-x":[{"space-x":w()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":w()}],"space-y-reverse":[`space-y-reverse`],size:[{size:N()}],"inline-size":[{inline:[`auto`,...P()]}],"min-inline-size":[{"min-inline":[`auto`,...P()]}],"max-inline-size":[{"max-inline":[`none`,...P()]}],"block-size":[{block:[`auto`,...ee()]}],"min-block-size":[{"min-block":[`auto`,...ee()]}],"max-block-size":[{"max-block":[`none`,...ee()]}],w:[{w:[s,`screen`,...N()]}],"min-w":[{"min-w":[s,`screen`,`none`,...N()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...N()]}],h:[{h:[`screen`,`lh`,...N()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...N()]}],"max-h":[{"max-h":[`screen`,`lh`,`none`,...N()]}],"font-size":[{text:[`base`,n,lt,nt]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,ht,it]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,Ke,V]}],"font-family":[{font:[ut,at,t]}],"font-features":[{"font-features":[V]}],"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,H,V]}],"line-clamp":[{"line-clamp":[B,`none`,H,rt]}],leading:[{leading:[`none`,a,...w()]}],"list-image":[{"list-image":[`none`,H,V]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,H,V]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:F()}],"text-color":[{text:F()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...ae(),`wavy`]}],"text-decoration-thickness":[{decoration:[B,`from-font`,`auto`,H,nt]}],"text-decoration-color":[{decoration:F()}],"underline-offset":[{"underline-offset":[B,`auto`,H,V]}],"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:[Ge,H,V]}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,H,V]}],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`,H,V]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:te()}],"bg-repeat":[{bg:ne()}],"bg-size":[{bg:re()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},Ge,H,V],radial:[``,H,V],conic:[``,Ge,H,V]},pt,st]}],"bg-color":[{bg:F()}],"gradient-from-pos":[{from:ie()}],"gradient-via-pos":[{via:ie()}],"gradient-to-pos":[{to:ie()}],"gradient-from":[{from:F()}],"gradient-via":[{via:F()}],"gradient-to":[{to:F()}],rounded:[{rounded:I()}],"rounded-s":[{"rounded-s":I()}],"rounded-e":[{"rounded-e":I()}],"rounded-t":[{"rounded-t":I()}],"rounded-r":[{"rounded-r":I()}],"rounded-b":[{"rounded-b":I()}],"rounded-l":[{"rounded-l":I()}],"rounded-ss":[{"rounded-ss":I()}],"rounded-se":[{"rounded-se":I()}],"rounded-ee":[{"rounded-ee":I()}],"rounded-es":[{"rounded-es":I()}],"rounded-tl":[{"rounded-tl":I()}],"rounded-tr":[{"rounded-tr":I()}],"rounded-br":[{"rounded-br":I()}],"rounded-bl":[{"rounded-bl":I()}],"border-w":[{border:L()}],"border-w-x":[{"border-x":L()}],"border-w-y":[{"border-y":L()}],"border-w-s":[{"border-s":L()}],"border-w-e":[{"border-e":L()}],"border-w-bs":[{"border-bs":L()}],"border-w-be":[{"border-be":L()}],"border-w-t":[{"border-t":L()}],"border-w-r":[{"border-r":L()}],"border-w-b":[{"border-b":L()}],"border-w-l":[{"border-l":L()}],"divide-x":[{"divide-x":L()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":L()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...ae(),`hidden`,`none`]}],"divide-style":[{divide:[...ae(),`hidden`,`none`]}],"border-color":[{border:F()}],"border-color-x":[{"border-x":F()}],"border-color-y":[{"border-y":F()}],"border-color-s":[{"border-s":F()}],"border-color-e":[{"border-e":F()}],"border-color-bs":[{"border-bs":F()}],"border-color-be":[{"border-be":F()}],"border-color-t":[{"border-t":F()}],"border-color-r":[{"border-r":F()}],"border-color-b":[{"border-b":F()}],"border-color-l":[{"border-l":F()}],"divide-color":[{divide:F()}],"outline-style":[{outline:[...ae(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[B,H,V]}],"outline-w":[{outline:[``,B,lt,nt]}],"outline-color":[{outline:F()}],shadow:[{shadow:[``,`inner`,`none`,u,mt,ct]}],"shadow-color":[{shadow:F()}],"inset-shadow":[{"inset-shadow":[`none`,d,mt,ct]}],"inset-shadow-color":[{"inset-shadow":F()}],"ring-w":[{ring:L()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:F()}],"ring-offset-w":[{"ring-offset":[B,nt]}],"ring-offset-color":[{"ring-offset":F()}],"inset-ring-w":[{"inset-ring":L()}],"inset-ring-color":[{"inset-ring":F()}],"text-shadow":[{"text-shadow":[`none`,f,mt,ct]}],"text-shadow-color":[{"text-shadow":F()}],opacity:[{opacity:[B,H,V]}],"mix-blend":[{"mix-blend":[...oe(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":oe()}],"mask-clip":[{"mask-clip":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]},`mask-no-clip`],"mask-composite":[{mask:[`add`,`subtract`,`intersect`,`exclude`]}],"mask-image-linear-pos":[{"mask-linear":[B]}],"mask-image-linear-from-pos":[{"mask-linear-from":R()}],"mask-image-linear-to-pos":[{"mask-linear-to":R()}],"mask-image-linear-from-color":[{"mask-linear-from":F()}],"mask-image-linear-to-color":[{"mask-linear-to":F()}],"mask-image-t-from-pos":[{"mask-t-from":R()}],"mask-image-t-to-pos":[{"mask-t-to":R()}],"mask-image-t-from-color":[{"mask-t-from":F()}],"mask-image-t-to-color":[{"mask-t-to":F()}],"mask-image-r-from-pos":[{"mask-r-from":R()}],"mask-image-r-to-pos":[{"mask-r-to":R()}],"mask-image-r-from-color":[{"mask-r-from":F()}],"mask-image-r-to-color":[{"mask-r-to":F()}],"mask-image-b-from-pos":[{"mask-b-from":R()}],"mask-image-b-to-pos":[{"mask-b-to":R()}],"mask-image-b-from-color":[{"mask-b-from":F()}],"mask-image-b-to-color":[{"mask-b-to":F()}],"mask-image-l-from-pos":[{"mask-l-from":R()}],"mask-image-l-to-pos":[{"mask-l-to":R()}],"mask-image-l-from-color":[{"mask-l-from":F()}],"mask-image-l-to-color":[{"mask-l-to":F()}],"mask-image-x-from-pos":[{"mask-x-from":R()}],"mask-image-x-to-pos":[{"mask-x-to":R()}],"mask-image-x-from-color":[{"mask-x-from":F()}],"mask-image-x-to-color":[{"mask-x-to":F()}],"mask-image-y-from-pos":[{"mask-y-from":R()}],"mask-image-y-to-pos":[{"mask-y-to":R()}],"mask-image-y-from-color":[{"mask-y-from":F()}],"mask-image-y-to-color":[{"mask-y-to":F()}],"mask-image-radial":[{"mask-radial":[H,V]}],"mask-image-radial-from-pos":[{"mask-radial-from":R()}],"mask-image-radial-to-pos":[{"mask-radial-to":R()}],"mask-image-radial-from-color":[{"mask-radial-from":F()}],"mask-image-radial-to-color":[{"mask-radial-to":F()}],"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":[B]}],"mask-image-conic-from-pos":[{"mask-conic-from":R()}],"mask-image-conic-to-pos":[{"mask-conic-to":R()}],"mask-image-conic-from-color":[{"mask-conic-from":F()}],"mask-image-conic-to-color":[{"mask-conic-to":F()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:te()}],"mask-repeat":[{mask:ne()}],"mask-size":[{mask:re()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,H,V]}],filter:[{filter:[``,`none`,H,V]}],blur:[{blur:se()}],brightness:[{brightness:[B,H,V]}],contrast:[{contrast:[B,H,V]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,mt,ct]}],"drop-shadow-color":[{"drop-shadow":F()}],grayscale:[{grayscale:[``,B,H,V]}],"hue-rotate":[{"hue-rotate":[B,H,V]}],invert:[{invert:[``,B,H,V]}],saturate:[{saturate:[B,H,V]}],sepia:[{sepia:[``,B,H,V]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,H,V]}],"backdrop-blur":[{"backdrop-blur":se()}],"backdrop-brightness":[{"backdrop-brightness":[B,H,V]}],"backdrop-contrast":[{"backdrop-contrast":[B,H,V]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,B,H,V]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[B,H,V]}],"backdrop-invert":[{"backdrop-invert":[``,B,H,V]}],"backdrop-opacity":[{"backdrop-opacity":[B,H,V]}],"backdrop-saturate":[{"backdrop-saturate":[B,H,V]}],"backdrop-sepia":[{"backdrop-sepia":[``,B,H,V]}],"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`,H,V]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[B,`initial`,H,V]}],ease:[{ease:[`linear`,`initial`,_,H,V]}],delay:[{delay:[B,H,V]}],animate:[{animate:[`none`,v,H,V]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,H,V]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:ce()}],"rotate-x":[{"rotate-x":ce()}],"rotate-y":[{"rotate-y":ce()}],"rotate-z":[{"rotate-z":ce()}],scale:[{scale:le()}],"scale-x":[{"scale-x":le()}],"scale-y":[{"scale-y":le()}],"scale-z":[{"scale-z":le()}],"scale-3d":[`scale-3d`],skew:[{skew:ue()}],"skew-x":[{"skew-x":ue()}],"skew-y":[{"skew-y":ue()}],transform:[{transform:[H,V,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:de()}],"translate-x":[{"translate-x":de()}],"translate-y":[{"translate-y":de()}],"translate-z":[{"translate-z":de()}],"translate-none":[`translate-none`],zoom:[{zoom:[Ge,H,V]}],accent:[{accent:F()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:F()}],"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`,H,V]}],"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":F()}],"scrollbar-track-color":[{"scrollbar-track":F()}],"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`,H,V]}],fill:[{fill:[`none`,...F()]}],"stroke-w":[{stroke:[B,lt,nt,rt]}],stroke:[{stroke:[`none`,...F()]}],"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":[`start`,`end`,`right`,`left`],"inset-y":[`inset-bs`,`inset-be`,`top`,`bottom`],flex:[`basis`,`grow`,`shrink`],gap:[`gap-x`,`gap-y`],p:[`px`,`py`,`ps`,`pe`,`pbs`,`pbe`,`pt`,`pr`,`pb`,`pl`],px:[`ps`,`pe`,`pr`,`pl`],py:[`pbs`,`pbe`,`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mbs`,`mbe`,`mt`,`mr`,`mb`,`ml`],mx:[`ms`,`me`,`mr`,`ml`],my:[`mbs`,`mbe`,`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-s`,`border-w-e`,`border-w-r`,`border-w-l`],"border-w-y":[`border-w-bs`,`border-w-be`,`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-s`,`border-color-e`,`border-color-r`,`border-color-l`],"border-color-y":[`border-color-bs`,`border-color-be`,`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-ms`,`scroll-me`,`scroll-mr`,`scroll-ml`],"scroll-my":[`scroll-mbs`,`scroll-mbe`,`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-ps`,`scroll-pe`,`scroll-pr`,`scroll-pl`],"scroll-py":[`scroll-pbs`,`scroll-pbe`,`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 Dt(...e){return Et(I(e))}var Ot=Object.defineProperty,kt=(e,t)=>Ot(e,`name`,{value:t,configurable:!0});function At(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}kt(At,`setRef`);function jt(...e){return t=>{let n=!1,r=e.map(e=>{let r=At(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():At(e[t],null)}}}}kt(jt,`composeRefs`);function U(...e){return C.useCallback(jt(...e),e)}kt(U,`useComposedRefs`);var Mt=Object.defineProperty,Nt=(e,t)=>Mt(e,`name`,{value:t,configurable:!0});function Pt(e){let t=C.forwardRef((t,n)=>{let{children:r,...i}=t,a=null,o=!1,s=[];Ut(r)&&typeof qt==`function`&&(r=qt(r._payload)),C.Children.forEach(r,e=>{if(Vt(e)){o=!0;let t=e,n=`child`in t.props?t.props.child:t.props.children;Ut(n)&&typeof qt==`function`&&(n=qt(n._payload)),a=Rt(t,n),s.push(a?.props?.children)}else s.push(e)}),a?a=C.cloneElement(a,void 0,s):!o&&C.Children.count(r)===1&&C.isValidElement(r)&&(a=r);let c=a?Bt(a):void 0,l=U(n,c);if(!a){if(r||r===0)throw Error(o?Kt(e):Gt(e));return r}let u=zt(i,a.props??{});return a.type!==C.Fragment&&(u.ref=n?l:c),C.cloneElement(a,u)});return t.displayName=`${e}.Slot`,t}Nt(Pt,`createSlot`);var Ft=Pt(`Slot`),It=Symbol.for(`radix.slottable`);function Lt(e){let t=Nt(e=>`child`in e?e.children(e.child):e.children,`Slottable`);return t.displayName=`${e}.Slottable`,t.__radixId=It,t}Nt(Lt,`createSlottable`);var Rt=Nt((e,t)=>{if(`child`in e.props){let t=e.props.child;return C.isValidElement(t)?C.cloneElement(t,void 0,e.props.children(t.props.children)):null}return C.isValidElement(t)?t:null},`getSlottableElementFromSlottable`);function zt(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}Nt(zt,`mergeProps`);function Bt(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}Nt(Bt,`getElementRef`);function Vt(e){return C.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===It}Nt(Vt,`isSlottable`);var Ht=Symbol.for(`react.lazy`);function Ut(e){return typeof e==`object`&&!!e&&`$$typeof`in e&&e.$$typeof===Ht&&`_payload`in e&&Wt(e._payload)}Nt(Ut,`isLazyComponent`);function Wt(e){return typeof e==`object`&&!!e&&`then`in e}Nt(Wt,`isPromiseLike`);var Gt=Nt(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,`createSlotError`),Kt=Nt(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,`createSlottableError`),qt=C.use,Jt=e(f(),1),Yt=Object.defineProperty,Xt=(e,t)=>Yt(e,`name`,{value:t,configurable:!0}),W=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=Pt(`Primitive.${t}`),r=C.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,w.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Zt(e,t){e&&Jt.flushSync(()=>e.dispatchEvent(t))}Xt(Zt,`dispatchDiscreteCustomEvent`);var Qt=Object.freeze({position:`absolute`,border:0,width:1,height:1,padding:0,margin:-1,overflow:`hidden`,clip:`rect(0, 0, 0, 0)`,whiteSpace:`nowrap`,wordWrap:`normal`}),$t=Object.defineProperty,en=(e,t)=>$t(e,`name`,{value:t,configurable:!0});function tn(e,t){let n=C.createContext(t);n.displayName=e+`Context`;let r=en(e=>{let{children:t,...r}=e,i=C.useMemo(()=>r,Object.values(r));return(0,w.jsx)(n.Provider,{value:i,children:t})},`Provider`);r.displayName=e+`Provider`;function i(r,i={}){let{optional:a=!1}=i,o=C.useContext(n);if(o)return o;if(t!==void 0)return t;if(!a)throw Error(`\`${r}\` must be used within \`${e}\``)}return en(i,`useContext`),[r,i]}en(tn,`createContext`);function nn(e,t=[]){let n=[];function r(t,r){let i=C.createContext(r);i.displayName=t+`Context`;let a=n.length;n=[...n,r];let o=en(t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=C.useMemo(()=>o,Object.values(o));return(0,w.jsx)(s.Provider,{value:c,children:r})},`Provider`);o.displayName=t+`Provider`;function s(n,o,s={}){let{optional:c=!1}=s,l=o?.[e]?.[a]||i,u=C.useContext(l);if(u)return u;if(r!==void 0)return r;if(!c)throw Error(`\`${n}\` must be used within \`${t}\``)}return en(s,`useContext`),[o,s]}en(r,`createContext`);let i=en(()=>{let t=n.map(e=>C.createContext(e));return en(function(n){let r=n?.[e]||t;return C.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])},`useScope`)},`createScope`);return i.scopeName=e,[r,rn(i,...t)]}en(nn,`createContextScope`);function rn(...e){let t=e[0];if(e.length===1)return t;let n=en(()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return en(function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return C.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])},`useComposedScopes`)},`createScope`);return n.scopeName=t.scopeName,n}en(rn,`composeContextScopes`);var an=Object.defineProperty,on=(e,t)=>an(e,`name`,{value:t,configurable:!0});function sn(e){let t=e+`CollectionProvider`,[n,r]=nn(t),[i,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=on(e=>{let{scope:t,children:n}=e,r=C.useRef(null),a=C.useRef(new Map).current;return(0,w.jsx)(i,{scope:t,itemMap:a,collectionRef:r,children:n})},`CollectionProvider`);o.displayName=t;let s=e+`CollectionSlot`,c=Pt(s),l=C.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=U(t,a(s,n).collectionRef);return(0,w.jsx)(c,{ref:i,children:r})});l.displayName=s;let u=e+`CollectionItemSlot`,d=`data-radix-collection-item`,f=Pt(u),p=C.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,o=C.useRef(null),s=U(t,o),c=a(u,n);return C.useEffect(()=>(c.itemMap.set(o,{ref:o,...i}),()=>void c.itemMap.delete(o))),(0,w.jsx)(f,{[d]:``,ref:s,children:r})});p.displayName=u;function m(t){let n=a(e+`CollectionConsumer`,t);return C.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${d}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])}return on(m,`useCollection`),[{Provider:o,Slot:l,ItemSlot:p},m,r]}on(sn,`createCollection`);var cn=new WeakMap,ln=class e extends Map{static{on(this,`OrderedDict`)}#e;constructor(e){super(e),this.#e=[...super.keys()],cn.set(this,!0)}set(e,t){return cn.get(this)&&(this.has(e)?this.#e[this.#e.indexOf(e)]=e:this.#e.push(e)),super.set(e,t),this}insert(e,t,n){let r=this.has(t),i=this.#e.length,a=fn(e),o=a>=0?a:i+a,s=o<0||o>=i?-1:o;if(s===this.size||r&&s===this.size-1||s===-1)return this.set(t,n),this;let c=this.size+ +!r;a<0&&o++;let l=[...this.#e],u,d=!1;for(let e=o;e<c;e++)if(o===e){let i=l[e];l[e]===t&&(i=l[e+1]),r&&this.delete(t),u=this.get(i),this.set(t,n)}else{!d&&l[e-1]===t&&(d=!0);let n=l[d?e:e-1],r=u;u=this.get(n),this.delete(n),this.set(n,r)}return this}with(t,n,r){let i=new e(this);return i.insert(t,n,r),i}before(e){let t=this.#e.indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,n){let r=this.#e.indexOf(e);return r===-1?this:this.insert(r,t,n)}after(e){let t=this.#e.indexOf(e);if(t=t===-1||t===this.size-1?-1:t+1,t!==-1)return this.entryAt(t)}setAfter(e,t,n){let r=this.#e.indexOf(e);return r===-1?this:this.insert(r+1,t,n)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#e=[],super.clear()}delete(e){let t=super.delete(e);return t&&this.#e.splice(this.#e.indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return t!==void 0&&this.delete(t)}at(e){let t=un(this.#e,e);if(t!==void 0)return this.get(t)}entryAt(e){let t=un(this.#e,e);if(t!==void 0)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return un(this.#e,e)}from(e,t){let n=this.indexOf(e);if(n===-1)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.at(r)}keyFrom(e,t){let n=this.indexOf(e);if(n===-1)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.keyAt(r)}find(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return r;n++}}findIndex(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return n;n++}return-1}filter(t,n){let r=[],i=0;for(let e of this)Reflect.apply(t,n,[e,i,this])&&r.push(e),i++;return new e(r)}map(t,n){let r=[],i=0;for(let e of this)r.push([e[0],Reflect.apply(t,n,[e,i,this])]),i++;return new e(r)}reduce(...e){let[t,n]=e,r=0,i=n??this.at(0);for(let n of this)i=r===0&&e.length===1?n:Reflect.apply(t,this,[i,n,r,this]),r++;return i}reduceRight(...e){let[t,n]=e,r=n??this.at(-1);for(let n=this.size-1;n>=0;n--){let i=this.at(n);r=n===this.size-1&&e.length===1?i:Reflect.apply(t,this,[r,i,n,this])}return r}toSorted(t){let n=[...this.entries()].sort(t);return new e(n)}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let n=this.keyAt(e),r=this.get(n);t.set(n,r)}return t}toSpliced(...t){let n=[...this.entries()];return n.splice(...t),new e(n)}slice(t,n){let r=new e,i=this.size-1;if(t===void 0)return r;t<0&&(t+=this.size),n!==void 0&&n>0&&(i=n-1);for(let e=t;e<=i;e++){let t=this.keyAt(e),n=this.get(t);r.set(t,n)}return r}every(e,t){let n=0;for(let r of this){if(!Reflect.apply(e,t,[r,n,this]))return!1;n++}return!0}some(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return!0;n++}return!1}};function un(e,t){if(`at`in Array.prototype)return Array.prototype.at.call(e,t);let n=dn(e,t);return n===-1?void 0:e[n]}on(un,`at`);function dn(e,t){let n=e.length,r=fn(t),i=r>=0?r:n+r;return i<0||i>=n?-1:i}on(dn,`toSafeIndex`);function fn(e){return e!==e||e===0?0:Math.trunc(e)}on(fn,`toSafeInteger`);function pn(e){let t=e+`CollectionProvider`,[n,r]=nn(t),[i,a]=n(t,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new ln,setItemMap:on(()=>void 0,`setItemMap`)}),o=on(({state:e,...t})=>e?(0,w.jsx)(c,{...t,state:e}):(0,w.jsx)(s,{...t}),`CollectionProvider`);o.displayName=t;let s=on(e=>{let t=h();return(0,w.jsx)(c,{...e,state:t})},`CollectionInit`);s.displayName=t+`Init`;let c=on(e=>{let{scope:t,children:n,state:r}=e,a=C.useRef(null),[o,s]=C.useState(null),c=U(a,s),[l,u]=r;return C.useEffect(()=>{if(!o)return;let e=_n(()=>{});return e.observe(o,{childList:!0,subtree:!0}),()=>{e.disconnect()}},[o]),(0,w.jsx)(i,{scope:t,itemMap:l,setItemMap:u,collectionRef:c,collectionRefObject:a,collectionElement:o,children:n})},`CollectionProviderImpl`);c.displayName=t+`Impl`;let l=e+`CollectionSlot`,u=Pt(l),d=C.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=U(t,a(l,n).collectionRef);return(0,w.jsx)(u,{ref:i,children:r})});d.displayName=l;let f=e+`CollectionItemSlot`,p=Pt(f),m=C.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,o=C.useRef(null),[s,c]=C.useState(null),l=U(t,o,c),{setItemMap:u}=a(f,n),d=C.useRef(i);mn(d.current,i)||(d.current=i);let m=d.current;return C.useEffect(()=>{let e=m;return u(t=>s?t.has(s)?t.set(s,{...e,element:s}).toSorted(gn):(t.set(s,{...e,element:s}),t.toSorted(gn)):t),()=>{u(e=>!s||!e.has(s)?e:(e.delete(s),new ln(e)))}},[s,m,u]),(0,w.jsx)(p,{"data-radix-collection-item":``,ref:l,children:r})});m.displayName=f;function h(){return C.useState(new ln)}on(h,`useInitCollection`);function g(t){let{itemMap:n}=a(e+`CollectionConsumer`,t);return n}return on(g,`useCollection`),[{Provider:o,Slot:d,ItemSlot:m},{createCollectionScope:r,useCollection:g,useInitCollection:h}]}on(pn,`createCollection`);function mn(e,t){if(e===t)return!0;if(typeof e!=`object`||typeof t!=`object`||e==null||t==null)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r of n)if(!Object.prototype.hasOwnProperty.call(t,r)||e[r]!==t[r])return!1;return!0}on(mn,`shallowEqual`);function hn(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}on(hn,`isElementPreceding`);function gn(e,t){return!e[1].element||!t[1].element?0:hn(e[1].element,t[1].element)?-1:1}on(gn,`sortByDocumentPosition`);function _n(e){return new MutationObserver(t=>{for(let n of t)if(n.type===`childList`){e();return}})}on(_n,`getChildListObserver`);var vn=Object.defineProperty,yn=(e,t)=>vn(e,`name`,{value:t,configurable:!0}),bn=!!(typeof window<`u`&&window.document&&window.document.createElement);function G(e,t,{checkForDefaultPrevented:n=!0}={}){return yn(function(r){if(e?.(r),n===!1||!r||!r.defaultPrevented)return t?.(r)},`handleEvent`)}yn(G,`composeEventHandlers`);function xn(e){if(!bn)throw Error(`Cannot access window outside of the DOM`);return e?.ownerDocument?.defaultView??window}yn(xn,`getOwnerWindow`);function Sn(e){if(!bn)throw Error(`Cannot access document outside of the DOM`);return e?.ownerDocument??document}yn(Sn,`getOwnerDocument`);function Cn(e,t=!1){let{activeElement:n}=Sn(e);if(!n?.nodeName)return null;if(wn(n)&&n.contentDocument)return Cn(n.contentDocument.body,t);if(t){let e=n.getAttribute(`aria-activedescendant`);if(e){let t=Sn(n).getElementById(e);if(t)return t}}return n}yn(Cn,`getActiveElement`);function wn(e){return e.tagName===`IFRAME`}yn(wn,`isFrame`);var Tn=globalThis?.document?C.useLayoutEffect:()=>{},En=Object.defineProperty,Dn=(e,t)=>En(e,`name`,{value:t,configurable:!0}),On=C.useEffectEvent,kn=C.useInsertionEffect;function An(e){if(typeof On==`function`)return On(e);let t=C.useRef(()=>{throw Error(`Cannot call an event handler while rendering.`)});return typeof kn==`function`?kn(()=>{t.current=e}):Tn(()=>{t.current=e}),C.useMemo(()=>((...e)=>t.current?.(...e)),[])}Dn(An,`useEffectEvent`);var jn=Object.defineProperty,Mn=(e,t)=>jn(e,`name`,{value:t,configurable:!0}),Nn=C.useInsertionEffect||Tn;function Pn({prop:e,defaultProp:t,onChange:n=Mn(()=>{},`onChange`),caller:r}){let[i,a,o]=Fn({defaultProp:t,onChange:n}),s=e!==void 0;return[s?e:i,C.useCallback(t=>{if(s){let n=In(t)?t(e):t;n!==e&&o.current?.(n)}else a(t)},[s,e,a,o])]}Mn(Pn,`useControllableState`);function Fn({defaultProp:e,onChange:t}){let[n,r]=C.useState(e),i=C.useRef(n),a=C.useRef(t);return Nn(()=>{a.current=t},[t]),C.useEffect(()=>{i.current!==n&&(a.current?.(n),i.current=n)},[n,i]),[n,r,a]}Mn(Fn,`useUncontrolledState`);function In(e){return typeof e==`function`}Mn(In,`isFunction`);var Ln=Symbol(`RADIX:SYNC_STATE`);function Rn(e,t,n,r){let{prop:i,defaultProp:a,onChange:o,caller:s}=t,c=i!==void 0,l=An(o),u=[{...n,state:a}];r&&u.push(r);let[d,f]=C.useReducer((t,n)=>{if(n.type===Ln)return{...t,state:n.state};let r=e(t,n);return c&&!Object.is(r.state,t.state)&&l(r.state),r},...u),p=d.state,m=C.useRef(p);C.useEffect(()=>{m.current!==p&&(m.current=p,c||l(p))},[p,m,c]);let h=C.useMemo(()=>i===void 0?d:{...d,state:i},[d,i]);return C.useEffect(()=>{c&&!Object.is(i,d.state)&&f({type:Ln,state:i})},[i,d.state,c]),[h,f]}Mn(Rn,`useControllableStateReducer`);var zn=Object.defineProperty,Bn=(e,t)=>zn(e,`name`,{value:t,configurable:!0});function Vn(e,t){return C.useReducer((e,n)=>t[e][n]??e,e)}Bn(Vn,`useStateMachine`);var Hn=Bn(e=>{let{present:t,children:n}=e,r=Un(t),i=typeof n==`function`?n({present:r.isPresent}):C.Children.only(n),a=Gn(r.ref,qn(i));return typeof n==`function`||r.isPresent?C.cloneElement(i,{ref:a}):null},`Presence`);function Un(e){let[t,n]=C.useState(),r=C.useRef(null),i=C.useRef(e),a=C.useRef(`none`),o=C.useRef(void 0),[s,c]=Vn(e?`mounted`:`unmounted`,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}});return C.useEffect(()=>{s===`mounted`?(a.current=o.current??Kn(r.current),o.current=void 0):a.current=`none`},[s]),Tn(()=>{let t=r.current,n=i.current;if(n!==e){let r=a.current,s=Kn(t);e?(o.current=s,c(`MOUNT`)):s===`none`||t?.display===`none`?c(`UNMOUNT`):c(n&&r!==s?`ANIMATION_OUT`:`UNMOUNT`),i.current=e}},[e,c]),Tn(()=>{if(t){let e,n=t.ownerDocument.defaultView??window,o=Bn(a=>{let o=Kn(r.current).includes(CSS.escape(a.animationName));if(a.target===t&&o&&(c(`ANIMATION_END`),!i.current)){let r=t.style.animationFillMode;t.style.animationFillMode=`forwards`,e=n.setTimeout(()=>{t.style.animationFillMode===`forwards`&&(t.style.animationFillMode=r)})}},`handleAnimationEnd`),s=Bn(e=>{e.target===t&&(a.current=Kn(r.current))},`handleAnimationStart`);return t.addEventListener(`animationstart`,s),t.addEventListener(`animationcancel`,o),t.addEventListener(`animationend`,o),()=>{n.clearTimeout(e),t.removeEventListener(`animationstart`,s),t.removeEventListener(`animationcancel`,o),t.removeEventListener(`animationend`,o)}}c(`ANIMATION_END`)},[t,c]),{isPresent:[`mounted`,`unmountSuspended`].includes(s),ref:C.useCallback(e=>{if(e){let t=getComputedStyle(e);r.current=t,o.current=Kn(t)}else r.current=null;n(e)},[])}}Bn(Un,`usePresence`);function Wn(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}Bn(Wn,`setRef`);function Gn(...e){let t=C.useRef(e);return t.current=e,C.useCallback(e=>{let n=t.current,r=!1,i=n.map(t=>{let n=Wn(t,e);return!r&&typeof n==`function`&&(r=!0),n});if(r)return()=>{for(let e=0;e<i.length;e++){let t=i[e];typeof t==`function`?t():Wn(n[e],null)}}},[])}Bn(Gn,`useStableComposedRefs`);function Kn(e){return e?.animationName||`none`}Bn(Kn,`getAnimationName`);function qn(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}Bn(qn,`getElementRef`);var Jn=Object.defineProperty,Yn=(e,t)=>Jn(e,`name`,{value:t,configurable:!0}),Xn=C.useId||(()=>void 0),Zn=0;function Qn(e){let[t,n]=C.useState(Xn());return Tn(()=>{e||n(e=>e??String(Zn++))},[e]),e||(t?`radix-${t}`:``)}Yn(Qn,`useId`);var $n=Object.defineProperty,er=(e,t)=>$n(e,`name`,{value:t,configurable:!0}),tr=C.createContext(void 0);function nr(e){let t=C.useContext(tr);return e||t||`ltr`}er(nr,`useDirection`);var rr=Object.defineProperty,ir=(e,t)=>rr(e,`name`,{value:t,configurable:!0});function ar(e){let t=C.useRef(e);return C.useEffect(()=>{t.current=e}),C.useMemo(()=>((...e)=>t.current?.(...e)),[])}ir(ar,`useCallbackRef`);var or=Object.defineProperty,sr=(e,t)=>or(e,`name`,{value:t,configurable:!0}),cr=`dismissableLayer.update`,lr=`dismissableLayer.pointerDownOutside`,ur=`dismissableLayer.focusOutside`,dr,fr=C.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),pr=C.forwardRef(sr(function(e,t){let{disableOutsidePointerEvents:n=!1,deferPointerDownOutside:r=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:o,onInteractOutside:s,onDismiss:c,...l}=e,u=C.useContext(fr),[d,f]=C.useState(null),p=d?.ownerDocument??globalThis?.document,[,m]=C.useState({}),h=U(t,f),g=Array.from(u.layers),[_]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),v=_?g.indexOf(_):-1,y=d?g.indexOf(d):-1,b=u.layersWithOutsidePointerEventsDisabled.size>0,x=y>=v,S=C.useRef(!1),T=gr(e=>{a?.(e),s?.(e),e.defaultPrevented||c?.()},{ownerDocument:p,deferPointerDownOutside:r,isDeferredPointerDownOutsideRef:S,dismissableSurfaces:u.dismissableSurfaces,shouldHandlePointerDownOutside:C.useCallback(e=>{if(!(e instanceof Node))return!1;let t=[...u.branches].some(t=>t.contains(e));return x&&!t},[u.branches,x])}),E=_r(e=>{if(r&&S.current)return;let t=e.target;[...u.branches].some(e=>e.contains(t))||(o?.(e),s?.(e),e.defaultPrevented||c?.())},p),D=d?y===g.length-1:!1,O=ar(e=>{e.key===`Escape`&&(i?.(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))});return C.useEffect(()=>{if(D)return p.addEventListener(`keydown`,O,{capture:!0}),()=>p.removeEventListener(`keydown`,O,{capture:!0})},[p,D,O]),C.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(dr=p.body.style.pointerEvents,p.body.style.pointerEvents=`none`),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),vr(),()=>{n&&(u.layersWithOutsidePointerEventsDisabled.delete(d),u.layersWithOutsidePointerEventsDisabled.size===0&&(p.body.style.pointerEvents=dr))}},[d,p,n,u]),C.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),vr())},[d,u]),C.useEffect(()=>{let e=sr(()=>m({}),`handleUpdate`);return document.addEventListener(cr,e),()=>document.removeEventListener(cr,e)},[]),(0,w.jsx)(W.div,{...l,ref:h,style:{pointerEvents:b?x?`auto`:`none`:void 0,...e.style},onFocusCapture:G(e.onFocusCapture,E.onFocusCapture),onBlurCapture:G(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:G(e.onPointerDownCapture,T.onPointerDownCapture)})},`DismissableLayer`));function mr(){let e=C.useContext(fr),[t,n]=C.useState(null);return C.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}sr(mr,`useDismissableLayerSurface`);var hr=sr(()=>!0,`IS_TRUE`);function gr(e,t){let{ownerDocument:n=globalThis?.document,deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:i,dismissableSurfaces:a,shouldHandlePointerDownOutside:o=hr}=t,s=ar(e),c=C.useRef(!1),l=C.useRef(!1),u=C.useRef(new Map),d=C.useRef(()=>{});return C.useEffect(()=>{function e(){l.current=!1,i.current=!1,u.current.clear()}sr(e,`resetOutsideInteraction`);function t(){return Array.from(u.current.values()).some(Boolean)}sr(t,`isOutsideInteractionIntercepted`);function f(e){if(!l.current)return;let t=e.target;t instanceof Node&&[...a].some(e=>e.contains(t))||u.current.set(e.type,!0),e.type===`click`&&window.setTimeout(()=>{l.current&&d.current()},0)}sr(f,`handleInteractionCapture`);function p(e){l.current&&u.current.set(e.type,!1)}sr(p,`handleInteractionBubble`);let m=sr(a=>{if(a.target&&!c.current){let f=function(){n.removeEventListener(`click`,d.current);let r=t();e(),r||yr(lr,s,p,{discrete:!0})};if(sr(f,`handleAndDispatchPointerDownOutsideEvent`),!o(a.target)){n.removeEventListener(`click`,d.current),e(),c.current=!1;return}let p={originalEvent:a};l.current=!0,i.current=r&&a.button===0,u.current.clear(),!r||a.button!==0?f():(n.removeEventListener(`click`,d.current),d.current=f,n.addEventListener(`click`,d.current,{once:!0}))}else n.removeEventListener(`click`,d.current),e();c.current=!1},`handlePointerDown`),h=[`pointerup`,`mousedown`,`mouseup`,`touchstart`,`touchend`,`click`];for(let e of h)n.addEventListener(e,f,!0),n.addEventListener(e,p);let g=window.setTimeout(()=>{n.addEventListener(`pointerdown`,m)},0);return()=>{window.clearTimeout(g),n.removeEventListener(`pointerdown`,m),n.removeEventListener(`click`,d.current);for(let e of h)n.removeEventListener(e,f,!0),n.removeEventListener(e,p)}},[n,s,r,i,a,o]),{onPointerDownCapture:sr(()=>c.current=!0,`onPointerDownCapture`)}}sr(gr,`usePointerDownOutside`);function _r(e,t=globalThis?.document){let n=ar(e),r=C.useRef(!1);return C.useEffect(()=>{let e=sr(e=>{e.target&&!r.current&&yr(ur,n,{originalEvent:e},{discrete:!1})},`handleFocus`);return t.addEventListener(`focusin`,e),()=>t.removeEventListener(`focusin`,e)},[t,n]),{onFocusCapture:sr(()=>r.current=!0,`onFocusCapture`),onBlurCapture:sr(()=>r.current=!1,`onBlurCapture`)}}sr(_r,`useFocusOutside`);function vr(){let e=new CustomEvent(cr);document.dispatchEvent(e)}sr(vr,`dispatchUpdate`);function yr(e,t,n,{discrete:r}){let i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?Zt(i,a):i.dispatchEvent(a)}sr(yr,`handleAndDispatchCustomEvent`);var br=Object.defineProperty,xr=(e,t)=>br(e,`name`,{value:t,configurable:!0}),Sr=`focusScope.autoFocusOnMount`,Cr=`focusScope.autoFocusOnUnmount`,wr={bubbles:!1,cancelable:!0},Tr=C.forwardRef(xr(function(e,t){let{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...o}=e,[s,c]=C.useState(null),l=ar(i),u=ar(a),d=C.useRef(null),f=U(t,c),p=C.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;C.useEffect(()=>{if(r){let e=function(e){if(p.paused||!s)return;let t=e.target;s.contains(t)?d.current=t:Mr(d.current,{select:!0})},t=function(e){if(p.paused||!s)return;let t=e.relatedTarget;t!==null&&(s.contains(t)||Mr(d.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&Mr(s)};xr(e,`handleFocusIn`),xr(t,`handleFocusOut`),xr(n,`handleMutations`),document.addEventListener(`focusin`,e),document.addEventListener(`focusout`,t);let r=new MutationObserver(n);return s&&r.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener(`focusin`,e),document.removeEventListener(`focusout`,t),r.disconnect()}}},[r,s,p.paused]),C.useEffect(()=>{if(s){Nr.add(p);let e=document.activeElement;if(!s.contains(e)){let t=new CustomEvent(Sr,wr);s.addEventListener(Sr,l),s.dispatchEvent(t),t.defaultPrevented||(Er(Ir(Or(s)),{select:!0}),document.activeElement===e&&Mr(s))}return()=>{s.removeEventListener(Sr,l),setTimeout(()=>{let t=new CustomEvent(Cr,wr);s.addEventListener(Cr,u),s.dispatchEvent(t),t.defaultPrevented||Mr(e??document.body,{select:!0}),s.removeEventListener(Cr,u),Nr.remove(p)},0)}}},[s,l,u,p]);let m=C.useCallback(e=>{if(!n&&!r||p.paused)return;let t=e.key===`Tab`&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){let t=e.currentTarget,[r,a]=Dr(t);r&&a?!e.shiftKey&&i===a?(e.preventDefault(),n&&Mr(r,{select:!0})):e.shiftKey&&i===r&&(e.preventDefault(),n&&Mr(a,{select:!0})):i===t&&e.preventDefault()}},[n,r,p.paused]);return(0,w.jsx)(W.div,{tabIndex:-1,...o,ref:f,onKeyDown:m})},`FocusScope`));function Er(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(Mr(r,{select:t}),document.activeElement!==n)return}xr(Er,`focusFirst`);function Dr(e){let t=Or(e);return[kr(t,e),kr(t.reverse(),e)]}xr(Dr,`getTabbableEdges`);function Or(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:xr(e=>{let t=e.tagName===`INPUT`&&e.type===`hidden`;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},`acceptNode`)});for(;n.nextNode();)t.push(n.currentNode);return t}xr(Or,`getTabbableCandidates`);function kr(e,t){let n=typeof t.checkVisibility==`function`&&t.checkVisibility({checkVisibilityCSS:!0});for(let r of e)if(!(n?!r.checkVisibility({checkVisibilityCSS:!0}):Ar(r,{upTo:t})))return r}xr(kr,`findVisible`);function Ar(e,{upTo:t}){if(getComputedStyle(e).visibility===`hidden`)return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display===`none`)return!0;e=e.parentElement}return!1}xr(Ar,`isHidden`);function jr(e){return e instanceof HTMLInputElement&&`select`in e}xr(jr,`isSelectableInput`);function Mr(e,{select:t=!1}={}){if(e&&e.focus){let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&jr(e)&&t&&e.select()}}xr(Mr,`focus`);var Nr=Pr();function Pr(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),e=Fr(e,t),e.unshift(t)},remove(t){e=Fr(e,t),e[0]?.resume()}}}xr(Pr,`createFocusScopesStack`);function Fr(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}xr(Fr,`arrayRemove`);function Ir(e){return e.filter(e=>e.tagName!==`A`)}xr(Ir,`removeLinks`);var Lr=Object.defineProperty,Rr=C.forwardRef(((e,t)=>Lr(e,`name`,{value:t,configurable:!0}))(function(e,t){let{container:n,...r}=e,[i,a]=C.useState(!1);Tn(()=>a(!0),[]);let o=n||i&&globalThis?.document?.body;return o?Jt.createPortal((0,w.jsx)(W.div,{...r,ref:t}),o):null},`Portal`)),zr=Object.defineProperty,Br=(e,t)=>zr(e,`name`,{value:t,configurable:!0}),Vr=0,Hr=null;function Ur(e){return Wr(),e.children}Br(Ur,`FocusGuards`);function Wr(){C.useEffect(()=>{Hr||={start:Gr(),end:Gr()};let{start:e,end:t}=Hr;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement(`afterbegin`,e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement(`beforeend`,t),Vr++,()=>{Vr===1&&(Hr?.start.remove(),Hr?.end.remove(),Hr=null),Vr=Math.max(0,Vr-1)}},[])}Br(Wr,`useFocusGuards`);function Gr(){let e=document.createElement(`span`);return e.setAttribute(`data-radix-focus-guard`,``),e.tabIndex=0,e.style.outline=`none`,e.style.opacity=`0`,e.style.position=`fixed`,e.style.pointerEvents=`none`,e}Br(Gr,`createFocusGuard`);var Kr=function(){return Kr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Kr.apply(this,arguments)};function qr(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function Jr(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var Yr=`right-scroll-bar-position`,Xr=`width-before-scroll-bar`,Zr=`with-scroll-bars-hidden`,Qr=`--removed-body-scroll-bar-size`;function $r(e,t){return typeof e==`function`?e(t):e&&(e.current=t),e}function ei(e,t){var n=(0,C.useState)(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}})[0];return n.callback=t,n.facade}var ti=typeof window<`u`?C.useLayoutEffect:C.useEffect,ni=new WeakMap;function ri(e,t){var n=ei(t||null,function(t){return e.forEach(function(e){return $r(e,t)})});return ti(function(){var t=ni.get(n);if(t){var r=new Set(t),i=new Set(e),a=n.current;r.forEach(function(e){i.has(e)||$r(e,null)}),i.forEach(function(e){r.has(e)||$r(e,a)})}ni.set(n,e)},[e]),n}function ii(e){return e}function ai(e,t){t===void 0&&(t=ii);var n=[],r=!1;return{read:function(){if(r)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var i=t(e,r);return n.push(i),function(){n=n.filter(function(e){return e!==i})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var i=n;n=[],i.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(a)};o(),n={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),n}}}}}function oi(e){e===void 0&&(e={});var t=ai(null);return t.options=Kr({async:!0,ssr:!1},e),t}var si=function(e){var t=e.sideCar,n=qr(e,[`sideCar`]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error(`Sidecar medium not found`);return C.createElement(r,Kr({},n))};si.isSideCarExport=!0;function ci(e,t){return e.useMedium(t),si}var li=oi(),ui=function(){},di=C.forwardRef(function(e,t){var n=C.useRef(null),r=C.useState({onScrollCapture:ui,onWheelCapture:ui,onTouchMoveCapture:ui}),i=r[0],a=r[1],o=e.forwardProps,s=e.children,c=e.className,l=e.removeScrollBar,u=e.enabled,d=e.shards,f=e.sideCar,p=e.noRelative,m=e.noIsolation,h=e.inert,g=e.allowPinchZoom,_=e.as,v=_===void 0?`div`:_,y=e.gapMode,b=qr(e,[`forwardProps`,`children`,`className`,`removeScrollBar`,`enabled`,`shards`,`sideCar`,`noRelative`,`noIsolation`,`inert`,`allowPinchZoom`,`as`,`gapMode`]),x=f,S=ri([n,t]),w=Kr(Kr({},b),i);return C.createElement(C.Fragment,null,u&&C.createElement(x,{sideCar:li,removeScrollBar:l,shards:d,noRelative:p,noIsolation:m,inert:h,setCallbacks:a,allowPinchZoom:!!g,lockRef:n,gapMode:y}),o?C.cloneElement(C.Children.only(s),Kr(Kr({},w),{ref:S})):C.createElement(v,Kr({},w,{className:c,ref:S}),s))});di.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},di.classNames={fullWidth:Xr,zeroRight:Yr};var fi=function(){if(typeof __webpack_nonce__<`u`)return __webpack_nonce__};function pi(){if(!document)return null;var e=document.createElement(`style`);e.type=`text/css`;var t=fi();return t&&e.setAttribute(`nonce`,t),e}function mi(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function hi(e){(document.head||document.getElementsByTagName(`head`)[0]).appendChild(e)}var gi=function(){var e=0,t=null;return{add:function(n){e==0&&(t=pi())&&(mi(t,n),hi(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},_i=function(){var e=gi();return function(t,n){C.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},vi=function(){var e=_i();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},yi={left:0,top:0,right:0,gap:0},bi=function(e){return parseInt(e||``,10)||0},xi=function(e){var t=window.getComputedStyle(document.body),n=t[e===`padding`?`paddingLeft`:`marginLeft`],r=t[e===`padding`?`paddingTop`:`marginTop`],i=t[e===`padding`?`paddingRight`:`marginRight`];return[bi(n),bi(r),bi(i)]},Si=function(e){if(e===void 0&&(e=`margin`),typeof window>`u`)return yi;var t=xi(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Ci=vi(),wi=`data-scroll-locked`,Ti=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return n===void 0&&(n=`margin`),`
1
+ import{C as e,S as t,_ as n,a as r,b as i,c as a,d as o,f as s,g as c,h as l,i as u,l as d,m as f,n as p,o as m,p as h,r as g,s as _,t as v,u as y,v as b,x,y as S}from"./index-BdihgclC.js";var C=e(i()),w=b();function T({as:e,id:t,anchor:n,className:r=``,children:i}){return(0,w.jsxs)(e,{className:`group flex scroll-mt-20 items-baseline gap-2 ${r}`,id:t,children:[i,(0,w.jsx)(`span`,{className:`text-muted-foreground opacity-0 transition-opacity group-focus-within:opacity-100 group-hover:opacity-100`,children:n})]})}var E=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),D=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),O=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),k=e=>{let t=O(e);return t.charAt(0).toUpperCase()+t.slice(1)},A={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`},j=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},M=(0,C.forwardRef)(({color:e=`currentColor`,size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i=``,children:a,iconNode:o,...s},c)=>(0,C.createElement)(`svg`,{ref:c,...A,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:E(`lucide`,i),...!a&&!j(s)&&{"aria-hidden":`true`},...s},[...o.map(([e,t])=>(0,C.createElement)(e,t)),...Array.isArray(a)?a:[a]])),N=(e,t)=>{let n=(0,C.forwardRef)(({className:n,...r},i)=>(0,C.createElement)(M,{ref:i,iconNode:t,className:E(`lucide-${D(k(e))}`,`lucide-${e}`,n),...r}));return n.displayName=k(e),n},P=N(`arrow-up-down`,[[`path`,{d:`m21 16-4 4-4-4`,key:`f6ql7i`}],[`path`,{d:`M17 20V4`,key:`1ejh1v`}],[`path`,{d:`m3 8 4-4 4 4`,key:`11wl7u`}],[`path`,{d:`M7 4v16`,key:`1glfcx`}]]),ee=N(`check`,[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]),F=N(`chevron-down`,[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]),te=N(`chevron-right`,[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]),ne=N(`chevron-up`,[[`path`,{d:`m18 15-6-6-6 6`,key:`153udz`}]]),re=N(`github`,[[`path`,{d:`M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4`,key:`tonef`}],[`path`,{d:`M9 18c-4.51 2-5-2-7-2`,key:`9comsn`}]]);function ie(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=ie(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n)}return r}function I(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=ie(e))&&(r&&(r+=` `),r+=t);return r}var L=(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},ae=(e,t)=>({classGroupId:e,validator:t}),oe=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),R=`-`,se=[],ce=`arbitrary..`,le=e=>{let t=fe(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return de(e);let n=e.split(R);return ue(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?L(i,t):t:i||se}return n[e]||se}}},ue=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=ue(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(R):e.slice(t).join(R),s=a.length;for(let e=0;e<s;e++){let t=a[e];if(t.validator(o))return t.classGroupId}},de=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})(),fe=e=>{let{theme:t,classGroups:n}=e;return pe(n,t)},pe=(e,t)=>{let n=oe();for(let r in e){let i=e[r];me(i,n,r,t)}return n},me=(e,t,n,r)=>{let i=e.length;for(let a=0;a<i;a++){let i=e[a];he(i,t,n,r)}},he=(e,t,n,r)=>{if(typeof e==`string`){ge(e,t,n);return}if(typeof e==`function`){_e(e,t,n,r);return}ve(e,t,n,r)},ge=(e,t,n)=>{let r=e===``?t:ye(t,e);r.classGroupId=n},_e=(e,t,n,r)=>{if(be(e)){me(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(ae(n,e))},ve=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e<a;e++){let[a,o]=i[e];me(o,ye(t,a),n,r)}},ye=(e,t)=>{let n=e,r=t.split(R),i=r.length;for(let e=0;e<i;e++){let t=r[e],i=n.nextPart.get(t);i||(i=oe(),n.nextPart.set(t,i)),n=i}return n},be=e=>`isThemeGetter`in e&&e.isThemeGetter===!0,xe=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)}}},Se=`!`,Ce=`:`,we=[],Te=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),Ee=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===Ce){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(Se)?(c=s.slice(0,-1),l=!0):s.startsWith(Se)&&(c=s.slice(1),l=!0);let u=a&&a>i?a-i:void 0;return Te(t,l,c,u)};if(t){let e=t+Ce,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):Te(we,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},De=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}},Oe=e=>({cache:xe(e.cacheSize),parseClassName:Ee(e),sortModifiers:De(e),postfixLookupClassGroupIds:ke(e),...le(e)}),ke=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},Ae=/\s+/,je=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a,postfixLookupClassGroupIds:o}=t,s=[],c=e.trim().split(Ae),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?_+Se:_,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},Me=(...e)=>{let t=0,n,r,i=``;for(;t<e.length;)(n=e[t++])&&(r=Ne(n))&&(i&&(i+=` `),i+=r);return i},Ne=e=>{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r<e.length;r++)e[r]&&(t=Ne(e[r]))&&(n&&(n+=` `),n+=t);return n},Pe=(e,...t)=>{let n,r,i,a,o=o=>(n=Oe(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=je(e,n);return i(e,a),a};return a=o,(...e)=>a(Me(...e))},Fe=[],z=e=>{let t=t=>t[e]||Fe;return t.isThemeGetter=!0,t.themeKey=e,t},Ie=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Le=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Re=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,ze=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Be=/\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$/,Ve=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/,He=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ue=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,We=e=>Re.test(e),B=e=>!!e&&!Number.isNaN(Number(e)),Ge=e=>!!e&&Number.isInteger(Number(e)),Ke=e=>e.endsWith(`%`)&&B(e.slice(0,-1)),qe=e=>ze.test(e),Je=()=>!0,Ye=e=>Be.test(e)&&!Ve.test(e),Xe=()=>!1,Ze=e=>He.test(e),Qe=e=>Ue.test(e),$e=e=>!V(e)&&!H(e),et=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)),tt=e=>gt(e,bt,Xe),V=e=>Ie.test(e),nt=e=>gt(e,xt,Ye),rt=e=>gt(e,St,B),it=e=>gt(e,wt,Je),at=e=>gt(e,Ct,Xe),ot=e=>gt(e,vt,Xe),st=e=>gt(e,yt,Qe),ct=e=>gt(e,Tt,Ze),H=e=>Le.test(e),lt=e=>_t(e,xt),ut=e=>_t(e,Ct),dt=e=>_t(e,vt),ft=e=>_t(e,bt),pt=e=>_t(e,yt),mt=e=>_t(e,Tt,!0),ht=e=>_t(e,wt,!0),gt=(e,t,n)=>{let r=Ie.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},_t=(e,t,n=!1)=>{let r=Le.exec(e);return r?r[1]?t(r[1]):n:!1},vt=e=>e===`position`||e===`percentage`,yt=e=>e===`image`||e===`url`,bt=e=>e===`length`||e===`size`||e===`bg-size`,xt=e=>e===`length`,St=e=>e===`number`,Ct=e=>e===`family-name`,wt=e=>e===`number`||e===`weight`,Tt=e=>e===`shadow`,Et=Pe(()=>{let e=z(`color`),t=z(`font`),n=z(`text`),r=z(`font-weight`),i=z(`tracking`),a=z(`leading`),o=z(`breakpoint`),s=z(`container`),c=z(`spacing`),l=z(`radius`),u=z(`shadow`),d=z(`inset-shadow`),f=z(`text-shadow`),p=z(`drop-shadow`),m=z(`blur`),h=z(`perspective`),g=z(`aspect`),_=z(`ease`),v=z(`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(),H,V],S=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],C=()=>[`auto`,`contain`,`none`],w=()=>[H,V,c],T=()=>[We,`full`,`auto`,...w()],E=()=>[Ge,`none`,`subgrid`,H,V],D=()=>[`auto`,{span:[`full`,Ge,H,V]},Ge,H,V],O=()=>[Ge,`auto`,H,V],k=()=>[`auto`,`min`,`max`,`fr`,H,V],A=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],j=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],M=()=>[`auto`,...w()],N=()=>[We,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...w()],P=()=>[s,We,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...w()],ee=()=>[We,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...w()],F=()=>[e,H,V],te=()=>[...b(),dt,ot,{position:[H,V]}],ne=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],re=()=>[`auto`,`cover`,`contain`,ft,tt,{size:[H,V]}],ie=()=>[Ke,lt,nt],I=()=>[``,`none`,`full`,l,H,V],L=()=>[``,B,lt,nt],ae=()=>[`solid`,`dashed`,`dotted`,`double`],oe=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],R=()=>[B,Ke,dt,ot],se=()=>[``,`none`,m,H,V],ce=()=>[`none`,B,H,V],le=()=>[`none`,B,H,V],ue=()=>[B,H,V],de=()=>[We,`full`,...w()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[qe],breakpoint:[qe],color:[Je],container:[qe],"drop-shadow":[qe],ease:[`in`,`out`,`in-out`],font:[$e],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[qe],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[qe],shadow:[qe],spacing:[`px`,B],text:[qe],"text-shadow":[qe],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,We,V,H,g]}],container:[`container`],"container-type":[{"@container":[``,`normal`,`size`,H,V]}],"container-named":[et],columns:[{columns:[B,`auto`,V,H,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:[Ge,`auto`,H,V]}],basis:[{basis:[We,`full`,`auto`,s,...w()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[B,We,`auto`,`initial`,`none`,V]}],grow:[{grow:[``,B,H,V]}],shrink:[{shrink:[``,B,H,V]}],order:[{order:[Ge,`first`,`last`,`none`,H,V]}],"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":k()}],"auto-rows":[{"auto-rows":k()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:[...A(),`normal`]}],"justify-items":[{"justify-items":[...j(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...j()]}],"align-content":[{content:[`normal`,...A()]}],"align-items":[{items:[...j(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...j(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":A()}],"place-items":[{"place-items":[...j(),`baseline`]}],"place-self":[{"place-self":[`auto`,...j()]}],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:M()}],mx:[{mx:M()}],my:[{my:M()}],ms:[{ms:M()}],me:[{me:M()}],mbs:[{mbs:M()}],mbe:[{mbe:M()}],mt:[{mt:M()}],mr:[{mr:M()}],mb:[{mb:M()}],ml:[{ml:M()}],"space-x":[{"space-x":w()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":w()}],"space-y-reverse":[`space-y-reverse`],size:[{size:N()}],"inline-size":[{inline:[`auto`,...P()]}],"min-inline-size":[{"min-inline":[`auto`,...P()]}],"max-inline-size":[{"max-inline":[`none`,...P()]}],"block-size":[{block:[`auto`,...ee()]}],"min-block-size":[{"min-block":[`auto`,...ee()]}],"max-block-size":[{"max-block":[`none`,...ee()]}],w:[{w:[s,`screen`,...N()]}],"min-w":[{"min-w":[s,`screen`,`none`,...N()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...N()]}],h:[{h:[`screen`,`lh`,...N()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...N()]}],"max-h":[{"max-h":[`screen`,`lh`,`none`,...N()]}],"font-size":[{text:[`base`,n,lt,nt]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,ht,it]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,Ke,V]}],"font-family":[{font:[ut,at,t]}],"font-features":[{"font-features":[V]}],"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,H,V]}],"line-clamp":[{"line-clamp":[B,`none`,H,rt]}],leading:[{leading:[`none`,a,...w()]}],"list-image":[{"list-image":[`none`,H,V]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,H,V]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:F()}],"text-color":[{text:F()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...ae(),`wavy`]}],"text-decoration-thickness":[{decoration:[B,`from-font`,`auto`,H,nt]}],"text-decoration-color":[{decoration:F()}],"underline-offset":[{"underline-offset":[B,`auto`,H,V]}],"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:[Ge,H,V]}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,H,V]}],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`,H,V]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:te()}],"bg-repeat":[{bg:ne()}],"bg-size":[{bg:re()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},Ge,H,V],radial:[``,H,V],conic:[``,Ge,H,V]},pt,st]}],"bg-color":[{bg:F()}],"gradient-from-pos":[{from:ie()}],"gradient-via-pos":[{via:ie()}],"gradient-to-pos":[{to:ie()}],"gradient-from":[{from:F()}],"gradient-via":[{via:F()}],"gradient-to":[{to:F()}],rounded:[{rounded:I()}],"rounded-s":[{"rounded-s":I()}],"rounded-e":[{"rounded-e":I()}],"rounded-t":[{"rounded-t":I()}],"rounded-r":[{"rounded-r":I()}],"rounded-b":[{"rounded-b":I()}],"rounded-l":[{"rounded-l":I()}],"rounded-ss":[{"rounded-ss":I()}],"rounded-se":[{"rounded-se":I()}],"rounded-ee":[{"rounded-ee":I()}],"rounded-es":[{"rounded-es":I()}],"rounded-tl":[{"rounded-tl":I()}],"rounded-tr":[{"rounded-tr":I()}],"rounded-br":[{"rounded-br":I()}],"rounded-bl":[{"rounded-bl":I()}],"border-w":[{border:L()}],"border-w-x":[{"border-x":L()}],"border-w-y":[{"border-y":L()}],"border-w-s":[{"border-s":L()}],"border-w-e":[{"border-e":L()}],"border-w-bs":[{"border-bs":L()}],"border-w-be":[{"border-be":L()}],"border-w-t":[{"border-t":L()}],"border-w-r":[{"border-r":L()}],"border-w-b":[{"border-b":L()}],"border-w-l":[{"border-l":L()}],"divide-x":[{"divide-x":L()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":L()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...ae(),`hidden`,`none`]}],"divide-style":[{divide:[...ae(),`hidden`,`none`]}],"border-color":[{border:F()}],"border-color-x":[{"border-x":F()}],"border-color-y":[{"border-y":F()}],"border-color-s":[{"border-s":F()}],"border-color-e":[{"border-e":F()}],"border-color-bs":[{"border-bs":F()}],"border-color-be":[{"border-be":F()}],"border-color-t":[{"border-t":F()}],"border-color-r":[{"border-r":F()}],"border-color-b":[{"border-b":F()}],"border-color-l":[{"border-l":F()}],"divide-color":[{divide:F()}],"outline-style":[{outline:[...ae(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[B,H,V]}],"outline-w":[{outline:[``,B,lt,nt]}],"outline-color":[{outline:F()}],shadow:[{shadow:[``,`inner`,`none`,u,mt,ct]}],"shadow-color":[{shadow:F()}],"inset-shadow":[{"inset-shadow":[`none`,d,mt,ct]}],"inset-shadow-color":[{"inset-shadow":F()}],"ring-w":[{ring:L()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:F()}],"ring-offset-w":[{"ring-offset":[B,nt]}],"ring-offset-color":[{"ring-offset":F()}],"inset-ring-w":[{"inset-ring":L()}],"inset-ring-color":[{"inset-ring":F()}],"text-shadow":[{"text-shadow":[`none`,f,mt,ct]}],"text-shadow-color":[{"text-shadow":F()}],opacity:[{opacity:[B,H,V]}],"mix-blend":[{"mix-blend":[...oe(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":oe()}],"mask-clip":[{"mask-clip":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]},`mask-no-clip`],"mask-composite":[{mask:[`add`,`subtract`,`intersect`,`exclude`]}],"mask-image-linear-pos":[{"mask-linear":[B]}],"mask-image-linear-from-pos":[{"mask-linear-from":R()}],"mask-image-linear-to-pos":[{"mask-linear-to":R()}],"mask-image-linear-from-color":[{"mask-linear-from":F()}],"mask-image-linear-to-color":[{"mask-linear-to":F()}],"mask-image-t-from-pos":[{"mask-t-from":R()}],"mask-image-t-to-pos":[{"mask-t-to":R()}],"mask-image-t-from-color":[{"mask-t-from":F()}],"mask-image-t-to-color":[{"mask-t-to":F()}],"mask-image-r-from-pos":[{"mask-r-from":R()}],"mask-image-r-to-pos":[{"mask-r-to":R()}],"mask-image-r-from-color":[{"mask-r-from":F()}],"mask-image-r-to-color":[{"mask-r-to":F()}],"mask-image-b-from-pos":[{"mask-b-from":R()}],"mask-image-b-to-pos":[{"mask-b-to":R()}],"mask-image-b-from-color":[{"mask-b-from":F()}],"mask-image-b-to-color":[{"mask-b-to":F()}],"mask-image-l-from-pos":[{"mask-l-from":R()}],"mask-image-l-to-pos":[{"mask-l-to":R()}],"mask-image-l-from-color":[{"mask-l-from":F()}],"mask-image-l-to-color":[{"mask-l-to":F()}],"mask-image-x-from-pos":[{"mask-x-from":R()}],"mask-image-x-to-pos":[{"mask-x-to":R()}],"mask-image-x-from-color":[{"mask-x-from":F()}],"mask-image-x-to-color":[{"mask-x-to":F()}],"mask-image-y-from-pos":[{"mask-y-from":R()}],"mask-image-y-to-pos":[{"mask-y-to":R()}],"mask-image-y-from-color":[{"mask-y-from":F()}],"mask-image-y-to-color":[{"mask-y-to":F()}],"mask-image-radial":[{"mask-radial":[H,V]}],"mask-image-radial-from-pos":[{"mask-radial-from":R()}],"mask-image-radial-to-pos":[{"mask-radial-to":R()}],"mask-image-radial-from-color":[{"mask-radial-from":F()}],"mask-image-radial-to-color":[{"mask-radial-to":F()}],"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":[B]}],"mask-image-conic-from-pos":[{"mask-conic-from":R()}],"mask-image-conic-to-pos":[{"mask-conic-to":R()}],"mask-image-conic-from-color":[{"mask-conic-from":F()}],"mask-image-conic-to-color":[{"mask-conic-to":F()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:te()}],"mask-repeat":[{mask:ne()}],"mask-size":[{mask:re()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,H,V]}],filter:[{filter:[``,`none`,H,V]}],blur:[{blur:se()}],brightness:[{brightness:[B,H,V]}],contrast:[{contrast:[B,H,V]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,mt,ct]}],"drop-shadow-color":[{"drop-shadow":F()}],grayscale:[{grayscale:[``,B,H,V]}],"hue-rotate":[{"hue-rotate":[B,H,V]}],invert:[{invert:[``,B,H,V]}],saturate:[{saturate:[B,H,V]}],sepia:[{sepia:[``,B,H,V]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,H,V]}],"backdrop-blur":[{"backdrop-blur":se()}],"backdrop-brightness":[{"backdrop-brightness":[B,H,V]}],"backdrop-contrast":[{"backdrop-contrast":[B,H,V]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,B,H,V]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[B,H,V]}],"backdrop-invert":[{"backdrop-invert":[``,B,H,V]}],"backdrop-opacity":[{"backdrop-opacity":[B,H,V]}],"backdrop-saturate":[{"backdrop-saturate":[B,H,V]}],"backdrop-sepia":[{"backdrop-sepia":[``,B,H,V]}],"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`,H,V]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[B,`initial`,H,V]}],ease:[{ease:[`linear`,`initial`,_,H,V]}],delay:[{delay:[B,H,V]}],animate:[{animate:[`none`,v,H,V]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,H,V]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:ce()}],"rotate-x":[{"rotate-x":ce()}],"rotate-y":[{"rotate-y":ce()}],"rotate-z":[{"rotate-z":ce()}],scale:[{scale:le()}],"scale-x":[{"scale-x":le()}],"scale-y":[{"scale-y":le()}],"scale-z":[{"scale-z":le()}],"scale-3d":[`scale-3d`],skew:[{skew:ue()}],"skew-x":[{"skew-x":ue()}],"skew-y":[{"skew-y":ue()}],transform:[{transform:[H,V,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:de()}],"translate-x":[{"translate-x":de()}],"translate-y":[{"translate-y":de()}],"translate-z":[{"translate-z":de()}],"translate-none":[`translate-none`],zoom:[{zoom:[Ge,H,V]}],accent:[{accent:F()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:F()}],"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`,H,V]}],"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":F()}],"scrollbar-track-color":[{"scrollbar-track":F()}],"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`,H,V]}],fill:[{fill:[`none`,...F()]}],"stroke-w":[{stroke:[B,lt,nt,rt]}],stroke:[{stroke:[`none`,...F()]}],"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":[`start`,`end`,`right`,`left`],"inset-y":[`inset-bs`,`inset-be`,`top`,`bottom`],flex:[`basis`,`grow`,`shrink`],gap:[`gap-x`,`gap-y`],p:[`px`,`py`,`ps`,`pe`,`pbs`,`pbe`,`pt`,`pr`,`pb`,`pl`],px:[`ps`,`pe`,`pr`,`pl`],py:[`pbs`,`pbe`,`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mbs`,`mbe`,`mt`,`mr`,`mb`,`ml`],mx:[`ms`,`me`,`mr`,`ml`],my:[`mbs`,`mbe`,`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-s`,`border-w-e`,`border-w-r`,`border-w-l`],"border-w-y":[`border-w-bs`,`border-w-be`,`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-s`,`border-color-e`,`border-color-r`,`border-color-l`],"border-color-y":[`border-color-bs`,`border-color-be`,`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-ms`,`scroll-me`,`scroll-mr`,`scroll-ml`],"scroll-my":[`scroll-mbs`,`scroll-mbe`,`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-ps`,`scroll-pe`,`scroll-pr`,`scroll-pl`],"scroll-py":[`scroll-pbs`,`scroll-pbe`,`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 Dt(...e){return Et(I(e))}var Ot=Object.defineProperty,kt=(e,t)=>Ot(e,`name`,{value:t,configurable:!0});function At(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}kt(At,`setRef`);function jt(...e){return t=>{let n=!1,r=e.map(e=>{let r=At(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():At(e[t],null)}}}}kt(jt,`composeRefs`);function U(...e){return C.useCallback(jt(...e),e)}kt(U,`useComposedRefs`);var Mt=Object.defineProperty,Nt=(e,t)=>Mt(e,`name`,{value:t,configurable:!0});function Pt(e){let t=C.forwardRef((t,n)=>{let{children:r,...i}=t,a=null,o=!1,s=[];Ut(r)&&typeof qt==`function`&&(r=qt(r._payload)),C.Children.forEach(r,e=>{if(Vt(e)){o=!0;let t=e,n=`child`in t.props?t.props.child:t.props.children;Ut(n)&&typeof qt==`function`&&(n=qt(n._payload)),a=Rt(t,n),s.push(a?.props?.children)}else s.push(e)}),a?a=C.cloneElement(a,void 0,s):!o&&C.Children.count(r)===1&&C.isValidElement(r)&&(a=r);let c=a?Bt(a):void 0,l=U(n,c);if(!a){if(r||r===0)throw Error(o?Kt(e):Gt(e));return r}let u=zt(i,a.props??{});return a.type!==C.Fragment&&(u.ref=n?l:c),C.cloneElement(a,u)});return t.displayName=`${e}.Slot`,t}Nt(Pt,`createSlot`);var Ft=Pt(`Slot`),It=Symbol.for(`radix.slottable`);function Lt(e){let t=Nt(e=>`child`in e?e.children(e.child):e.children,`Slottable`);return t.displayName=`${e}.Slottable`,t.__radixId=It,t}Nt(Lt,`createSlottable`);var Rt=Nt((e,t)=>{if(`child`in e.props){let t=e.props.child;return C.isValidElement(t)?C.cloneElement(t,void 0,e.props.children(t.props.children)):null}return C.isValidElement(t)?t:null},`getSlottableElementFromSlottable`);function zt(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}Nt(zt,`mergeProps`);function Bt(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}Nt(Bt,`getElementRef`);function Vt(e){return C.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===It}Nt(Vt,`isSlottable`);var Ht=Symbol.for(`react.lazy`);function Ut(e){return typeof e==`object`&&!!e&&`$$typeof`in e&&e.$$typeof===Ht&&`_payload`in e&&Wt(e._payload)}Nt(Ut,`isLazyComponent`);function Wt(e){return typeof e==`object`&&!!e&&`then`in e}Nt(Wt,`isPromiseLike`);var Gt=Nt(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,`createSlotError`),Kt=Nt(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,`createSlottableError`),qt=C.use,Jt=e(f(),1),Yt=Object.defineProperty,Xt=(e,t)=>Yt(e,`name`,{value:t,configurable:!0}),W=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=Pt(`Primitive.${t}`),r=C.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,w.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Zt(e,t){e&&Jt.flushSync(()=>e.dispatchEvent(t))}Xt(Zt,`dispatchDiscreteCustomEvent`);var Qt=Object.freeze({position:`absolute`,border:0,width:1,height:1,padding:0,margin:-1,overflow:`hidden`,clip:`rect(0, 0, 0, 0)`,whiteSpace:`nowrap`,wordWrap:`normal`}),$t=Object.defineProperty,en=(e,t)=>$t(e,`name`,{value:t,configurable:!0});function tn(e,t){let n=C.createContext(t);n.displayName=e+`Context`;let r=en(e=>{let{children:t,...r}=e,i=C.useMemo(()=>r,Object.values(r));return(0,w.jsx)(n.Provider,{value:i,children:t})},`Provider`);r.displayName=e+`Provider`;function i(r,i={}){let{optional:a=!1}=i,o=C.useContext(n);if(o)return o;if(t!==void 0)return t;if(!a)throw Error(`\`${r}\` must be used within \`${e}\``)}return en(i,`useContext`),[r,i]}en(tn,`createContext`);function nn(e,t=[]){let n=[];function r(t,r){let i=C.createContext(r);i.displayName=t+`Context`;let a=n.length;n=[...n,r];let o=en(t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=C.useMemo(()=>o,Object.values(o));return(0,w.jsx)(s.Provider,{value:c,children:r})},`Provider`);o.displayName=t+`Provider`;function s(n,o,s={}){let{optional:c=!1}=s,l=o?.[e]?.[a]||i,u=C.useContext(l);if(u)return u;if(r!==void 0)return r;if(!c)throw Error(`\`${n}\` must be used within \`${t}\``)}return en(s,`useContext`),[o,s]}en(r,`createContext`);let i=en(()=>{let t=n.map(e=>C.createContext(e));return en(function(n){let r=n?.[e]||t;return C.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])},`useScope`)},`createScope`);return i.scopeName=e,[r,rn(i,...t)]}en(nn,`createContextScope`);function rn(...e){let t=e[0];if(e.length===1)return t;let n=en(()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return en(function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return C.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])},`useComposedScopes`)},`createScope`);return n.scopeName=t.scopeName,n}en(rn,`composeContextScopes`);var an=Object.defineProperty,on=(e,t)=>an(e,`name`,{value:t,configurable:!0});function sn(e){let t=e+`CollectionProvider`,[n,r]=nn(t),[i,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=on(e=>{let{scope:t,children:n}=e,r=C.useRef(null),a=C.useRef(new Map).current;return(0,w.jsx)(i,{scope:t,itemMap:a,collectionRef:r,children:n})},`CollectionProvider`);o.displayName=t;let s=e+`CollectionSlot`,c=Pt(s),l=C.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=U(t,a(s,n).collectionRef);return(0,w.jsx)(c,{ref:i,children:r})});l.displayName=s;let u=e+`CollectionItemSlot`,d=`data-radix-collection-item`,f=Pt(u),p=C.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,o=C.useRef(null),s=U(t,o),c=a(u,n);return C.useEffect(()=>(c.itemMap.set(o,{ref:o,...i}),()=>void c.itemMap.delete(o))),(0,w.jsx)(f,{[d]:``,ref:s,children:r})});p.displayName=u;function m(t){let n=a(e+`CollectionConsumer`,t);return C.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${d}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])}return on(m,`useCollection`),[{Provider:o,Slot:l,ItemSlot:p},m,r]}on(sn,`createCollection`);var cn=new WeakMap,ln=class e extends Map{static{on(this,`OrderedDict`)}#e;constructor(e){super(e),this.#e=[...super.keys()],cn.set(this,!0)}set(e,t){return cn.get(this)&&(this.has(e)?this.#e[this.#e.indexOf(e)]=e:this.#e.push(e)),super.set(e,t),this}insert(e,t,n){let r=this.has(t),i=this.#e.length,a=fn(e),o=a>=0?a:i+a,s=o<0||o>=i?-1:o;if(s===this.size||r&&s===this.size-1||s===-1)return this.set(t,n),this;let c=this.size+ +!r;a<0&&o++;let l=[...this.#e],u,d=!1;for(let e=o;e<c;e++)if(o===e){let i=l[e];l[e]===t&&(i=l[e+1]),r&&this.delete(t),u=this.get(i),this.set(t,n)}else{!d&&l[e-1]===t&&(d=!0);let n=l[d?e:e-1],r=u;u=this.get(n),this.delete(n),this.set(n,r)}return this}with(t,n,r){let i=new e(this);return i.insert(t,n,r),i}before(e){let t=this.#e.indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,n){let r=this.#e.indexOf(e);return r===-1?this:this.insert(r,t,n)}after(e){let t=this.#e.indexOf(e);if(t=t===-1||t===this.size-1?-1:t+1,t!==-1)return this.entryAt(t)}setAfter(e,t,n){let r=this.#e.indexOf(e);return r===-1?this:this.insert(r+1,t,n)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#e=[],super.clear()}delete(e){let t=super.delete(e);return t&&this.#e.splice(this.#e.indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return t!==void 0&&this.delete(t)}at(e){let t=un(this.#e,e);if(t!==void 0)return this.get(t)}entryAt(e){let t=un(this.#e,e);if(t!==void 0)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return un(this.#e,e)}from(e,t){let n=this.indexOf(e);if(n===-1)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.at(r)}keyFrom(e,t){let n=this.indexOf(e);if(n===-1)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.keyAt(r)}find(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return r;n++}}findIndex(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return n;n++}return-1}filter(t,n){let r=[],i=0;for(let e of this)Reflect.apply(t,n,[e,i,this])&&r.push(e),i++;return new e(r)}map(t,n){let r=[],i=0;for(let e of this)r.push([e[0],Reflect.apply(t,n,[e,i,this])]),i++;return new e(r)}reduce(...e){let[t,n]=e,r=0,i=n??this.at(0);for(let n of this)i=r===0&&e.length===1?n:Reflect.apply(t,this,[i,n,r,this]),r++;return i}reduceRight(...e){let[t,n]=e,r=n??this.at(-1);for(let n=this.size-1;n>=0;n--){let i=this.at(n);r=n===this.size-1&&e.length===1?i:Reflect.apply(t,this,[r,i,n,this])}return r}toSorted(t){let n=[...this.entries()].sort(t);return new e(n)}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let n=this.keyAt(e),r=this.get(n);t.set(n,r)}return t}toSpliced(...t){let n=[...this.entries()];return n.splice(...t),new e(n)}slice(t,n){let r=new e,i=this.size-1;if(t===void 0)return r;t<0&&(t+=this.size),n!==void 0&&n>0&&(i=n-1);for(let e=t;e<=i;e++){let t=this.keyAt(e),n=this.get(t);r.set(t,n)}return r}every(e,t){let n=0;for(let r of this){if(!Reflect.apply(e,t,[r,n,this]))return!1;n++}return!0}some(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return!0;n++}return!1}};function un(e,t){if(`at`in Array.prototype)return Array.prototype.at.call(e,t);let n=dn(e,t);return n===-1?void 0:e[n]}on(un,`at`);function dn(e,t){let n=e.length,r=fn(t),i=r>=0?r:n+r;return i<0||i>=n?-1:i}on(dn,`toSafeIndex`);function fn(e){return e!==e||e===0?0:Math.trunc(e)}on(fn,`toSafeInteger`);function pn(e){let t=e+`CollectionProvider`,[n,r]=nn(t),[i,a]=n(t,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new ln,setItemMap:on(()=>void 0,`setItemMap`)}),o=on(({state:e,...t})=>e?(0,w.jsx)(c,{...t,state:e}):(0,w.jsx)(s,{...t}),`CollectionProvider`);o.displayName=t;let s=on(e=>{let t=h();return(0,w.jsx)(c,{...e,state:t})},`CollectionInit`);s.displayName=t+`Init`;let c=on(e=>{let{scope:t,children:n,state:r}=e,a=C.useRef(null),[o,s]=C.useState(null),c=U(a,s),[l,u]=r;return C.useEffect(()=>{if(!o)return;let e=_n(()=>{});return e.observe(o,{childList:!0,subtree:!0}),()=>{e.disconnect()}},[o]),(0,w.jsx)(i,{scope:t,itemMap:l,setItemMap:u,collectionRef:c,collectionRefObject:a,collectionElement:o,children:n})},`CollectionProviderImpl`);c.displayName=t+`Impl`;let l=e+`CollectionSlot`,u=Pt(l),d=C.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=U(t,a(l,n).collectionRef);return(0,w.jsx)(u,{ref:i,children:r})});d.displayName=l;let f=e+`CollectionItemSlot`,p=Pt(f),m=C.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,o=C.useRef(null),[s,c]=C.useState(null),l=U(t,o,c),{setItemMap:u}=a(f,n),d=C.useRef(i);mn(d.current,i)||(d.current=i);let m=d.current;return C.useEffect(()=>{let e=m;return u(t=>s?t.has(s)?t.set(s,{...e,element:s}).toSorted(gn):(t.set(s,{...e,element:s}),t.toSorted(gn)):t),()=>{u(e=>!s||!e.has(s)?e:(e.delete(s),new ln(e)))}},[s,m,u]),(0,w.jsx)(p,{"data-radix-collection-item":``,ref:l,children:r})});m.displayName=f;function h(){return C.useState(new ln)}on(h,`useInitCollection`);function g(t){let{itemMap:n}=a(e+`CollectionConsumer`,t);return n}return on(g,`useCollection`),[{Provider:o,Slot:d,ItemSlot:m},{createCollectionScope:r,useCollection:g,useInitCollection:h}]}on(pn,`createCollection`);function mn(e,t){if(e===t)return!0;if(typeof e!=`object`||typeof t!=`object`||e==null||t==null)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r of n)if(!Object.prototype.hasOwnProperty.call(t,r)||e[r]!==t[r])return!1;return!0}on(mn,`shallowEqual`);function hn(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}on(hn,`isElementPreceding`);function gn(e,t){return!e[1].element||!t[1].element?0:hn(e[1].element,t[1].element)?-1:1}on(gn,`sortByDocumentPosition`);function _n(e){return new MutationObserver(t=>{for(let n of t)if(n.type===`childList`){e();return}})}on(_n,`getChildListObserver`);var vn=Object.defineProperty,yn=(e,t)=>vn(e,`name`,{value:t,configurable:!0}),bn=!!(typeof window<`u`&&window.document&&window.document.createElement);function G(e,t,{checkForDefaultPrevented:n=!0}={}){return yn(function(r){if(e?.(r),n===!1||!r||!r.defaultPrevented)return t?.(r)},`handleEvent`)}yn(G,`composeEventHandlers`);function xn(e){if(!bn)throw Error(`Cannot access window outside of the DOM`);return e?.ownerDocument?.defaultView??window}yn(xn,`getOwnerWindow`);function Sn(e){if(!bn)throw Error(`Cannot access document outside of the DOM`);return e?.ownerDocument??document}yn(Sn,`getOwnerDocument`);function Cn(e,t=!1){let{activeElement:n}=Sn(e);if(!n?.nodeName)return null;if(wn(n)&&n.contentDocument)return Cn(n.contentDocument.body,t);if(t){let e=n.getAttribute(`aria-activedescendant`);if(e){let t=Sn(n).getElementById(e);if(t)return t}}return n}yn(Cn,`getActiveElement`);function wn(e){return e.tagName===`IFRAME`}yn(wn,`isFrame`);var Tn=globalThis?.document?C.useLayoutEffect:()=>{},En=Object.defineProperty,Dn=(e,t)=>En(e,`name`,{value:t,configurable:!0}),On=C.useEffectEvent,kn=C.useInsertionEffect;function An(e){if(typeof On==`function`)return On(e);let t=C.useRef(()=>{throw Error(`Cannot call an event handler while rendering.`)});return typeof kn==`function`?kn(()=>{t.current=e}):Tn(()=>{t.current=e}),C.useMemo(()=>((...e)=>t.current?.(...e)),[])}Dn(An,`useEffectEvent`);var jn=Object.defineProperty,Mn=(e,t)=>jn(e,`name`,{value:t,configurable:!0}),Nn=C.useInsertionEffect||Tn;function Pn({prop:e,defaultProp:t,onChange:n=Mn(()=>{},`onChange`),caller:r}){let[i,a,o]=Fn({defaultProp:t,onChange:n}),s=e!==void 0;return[s?e:i,C.useCallback(t=>{if(s){let n=In(t)?t(e):t;n!==e&&o.current?.(n)}else a(t)},[s,e,a,o])]}Mn(Pn,`useControllableState`);function Fn({defaultProp:e,onChange:t}){let[n,r]=C.useState(e),i=C.useRef(n),a=C.useRef(t);return Nn(()=>{a.current=t},[t]),C.useEffect(()=>{i.current!==n&&(a.current?.(n),i.current=n)},[n,i]),[n,r,a]}Mn(Fn,`useUncontrolledState`);function In(e){return typeof e==`function`}Mn(In,`isFunction`);var Ln=Symbol(`RADIX:SYNC_STATE`);function Rn(e,t,n,r){let{prop:i,defaultProp:a,onChange:o,caller:s}=t,c=i!==void 0,l=An(o),u=[{...n,state:a}];r&&u.push(r);let[d,f]=C.useReducer((t,n)=>{if(n.type===Ln)return{...t,state:n.state};let r=e(t,n);return c&&!Object.is(r.state,t.state)&&l(r.state),r},...u),p=d.state,m=C.useRef(p);C.useEffect(()=>{m.current!==p&&(m.current=p,c||l(p))},[p,m,c]);let h=C.useMemo(()=>i===void 0?d:{...d,state:i},[d,i]);return C.useEffect(()=>{c&&!Object.is(i,d.state)&&f({type:Ln,state:i})},[i,d.state,c]),[h,f]}Mn(Rn,`useControllableStateReducer`);var zn=Object.defineProperty,Bn=(e,t)=>zn(e,`name`,{value:t,configurable:!0});function Vn(e,t){return C.useReducer((e,n)=>t[e][n]??e,e)}Bn(Vn,`useStateMachine`);var Hn=Bn(e=>{let{present:t,children:n}=e,r=Un(t),i=typeof n==`function`?n({present:r.isPresent}):C.Children.only(n),a=Gn(r.ref,qn(i));return typeof n==`function`||r.isPresent?C.cloneElement(i,{ref:a}):null},`Presence`);function Un(e){let[t,n]=C.useState(),r=C.useRef(null),i=C.useRef(e),a=C.useRef(`none`),o=C.useRef(void 0),[s,c]=Vn(e?`mounted`:`unmounted`,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}});return C.useEffect(()=>{s===`mounted`?(a.current=o.current??Kn(r.current),o.current=void 0):a.current=`none`},[s]),Tn(()=>{let t=r.current,n=i.current;if(n!==e){let r=a.current,s=Kn(t);e?(o.current=s,c(`MOUNT`)):s===`none`||t?.display===`none`?c(`UNMOUNT`):c(n&&r!==s?`ANIMATION_OUT`:`UNMOUNT`),i.current=e}},[e,c]),Tn(()=>{if(t){let e,n=t.ownerDocument.defaultView??window,o=Bn(a=>{let o=Kn(r.current).includes(CSS.escape(a.animationName));if(a.target===t&&o&&(c(`ANIMATION_END`),!i.current)){let r=t.style.animationFillMode;t.style.animationFillMode=`forwards`,e=n.setTimeout(()=>{t.style.animationFillMode===`forwards`&&(t.style.animationFillMode=r)})}},`handleAnimationEnd`),s=Bn(e=>{e.target===t&&(a.current=Kn(r.current))},`handleAnimationStart`);return t.addEventListener(`animationstart`,s),t.addEventListener(`animationcancel`,o),t.addEventListener(`animationend`,o),()=>{n.clearTimeout(e),t.removeEventListener(`animationstart`,s),t.removeEventListener(`animationcancel`,o),t.removeEventListener(`animationend`,o)}}c(`ANIMATION_END`)},[t,c]),{isPresent:[`mounted`,`unmountSuspended`].includes(s),ref:C.useCallback(e=>{if(e){let t=getComputedStyle(e);r.current=t,o.current=Kn(t)}else r.current=null;n(e)},[])}}Bn(Un,`usePresence`);function Wn(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}Bn(Wn,`setRef`);function Gn(...e){let t=C.useRef(e);return t.current=e,C.useCallback(e=>{let n=t.current,r=!1,i=n.map(t=>{let n=Wn(t,e);return!r&&typeof n==`function`&&(r=!0),n});if(r)return()=>{for(let e=0;e<i.length;e++){let t=i[e];typeof t==`function`?t():Wn(n[e],null)}}},[])}Bn(Gn,`useStableComposedRefs`);function Kn(e){return e?.animationName||`none`}Bn(Kn,`getAnimationName`);function qn(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}Bn(qn,`getElementRef`);var Jn=Object.defineProperty,Yn=(e,t)=>Jn(e,`name`,{value:t,configurable:!0}),Xn=C.useId||(()=>void 0),Zn=0;function Qn(e){let[t,n]=C.useState(Xn());return Tn(()=>{e||n(e=>e??String(Zn++))},[e]),e||(t?`radix-${t}`:``)}Yn(Qn,`useId`);var $n=Object.defineProperty,er=(e,t)=>$n(e,`name`,{value:t,configurable:!0}),tr=C.createContext(void 0);function nr(e){let t=C.useContext(tr);return e||t||`ltr`}er(nr,`useDirection`);var rr=Object.defineProperty,ir=(e,t)=>rr(e,`name`,{value:t,configurable:!0});function ar(e){let t=C.useRef(e);return C.useEffect(()=>{t.current=e}),C.useMemo(()=>((...e)=>t.current?.(...e)),[])}ir(ar,`useCallbackRef`);var or=Object.defineProperty,sr=(e,t)=>or(e,`name`,{value:t,configurable:!0}),cr=`dismissableLayer.update`,lr=`dismissableLayer.pointerDownOutside`,ur=`dismissableLayer.focusOutside`,dr,fr=C.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),pr=C.forwardRef(sr(function(e,t){let{disableOutsidePointerEvents:n=!1,deferPointerDownOutside:r=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:o,onInteractOutside:s,onDismiss:c,...l}=e,u=C.useContext(fr),[d,f]=C.useState(null),p=d?.ownerDocument??globalThis?.document,[,m]=C.useState({}),h=U(t,f),g=Array.from(u.layers),[_]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),v=_?g.indexOf(_):-1,y=d?g.indexOf(d):-1,b=u.layersWithOutsidePointerEventsDisabled.size>0,x=y>=v,S=C.useRef(!1),T=gr(e=>{a?.(e),s?.(e),e.defaultPrevented||c?.()},{ownerDocument:p,deferPointerDownOutside:r,isDeferredPointerDownOutsideRef:S,dismissableSurfaces:u.dismissableSurfaces,shouldHandlePointerDownOutside:C.useCallback(e=>{if(!(e instanceof Node))return!1;let t=[...u.branches].some(t=>t.contains(e));return x&&!t},[u.branches,x])}),E=_r(e=>{if(r&&S.current)return;let t=e.target;[...u.branches].some(e=>e.contains(t))||(o?.(e),s?.(e),e.defaultPrevented||c?.())},p),D=d?y===g.length-1:!1,O=ar(e=>{e.key===`Escape`&&(i?.(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))});return C.useEffect(()=>{if(D)return p.addEventListener(`keydown`,O,{capture:!0}),()=>p.removeEventListener(`keydown`,O,{capture:!0})},[p,D,O]),C.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(dr=p.body.style.pointerEvents,p.body.style.pointerEvents=`none`),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),vr(),()=>{n&&(u.layersWithOutsidePointerEventsDisabled.delete(d),u.layersWithOutsidePointerEventsDisabled.size===0&&(p.body.style.pointerEvents=dr))}},[d,p,n,u]),C.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),vr())},[d,u]),C.useEffect(()=>{let e=sr(()=>m({}),`handleUpdate`);return document.addEventListener(cr,e),()=>document.removeEventListener(cr,e)},[]),(0,w.jsx)(W.div,{...l,ref:h,style:{pointerEvents:b?x?`auto`:`none`:void 0,...e.style},onFocusCapture:G(e.onFocusCapture,E.onFocusCapture),onBlurCapture:G(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:G(e.onPointerDownCapture,T.onPointerDownCapture)})},`DismissableLayer`));function mr(){let e=C.useContext(fr),[t,n]=C.useState(null);return C.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}sr(mr,`useDismissableLayerSurface`);var hr=sr(()=>!0,`IS_TRUE`);function gr(e,t){let{ownerDocument:n=globalThis?.document,deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:i,dismissableSurfaces:a,shouldHandlePointerDownOutside:o=hr}=t,s=ar(e),c=C.useRef(!1),l=C.useRef(!1),u=C.useRef(new Map),d=C.useRef(()=>{});return C.useEffect(()=>{function e(){l.current=!1,i.current=!1,u.current.clear()}sr(e,`resetOutsideInteraction`);function t(){return Array.from(u.current.values()).some(Boolean)}sr(t,`isOutsideInteractionIntercepted`);function f(e){if(!l.current)return;let t=e.target;t instanceof Node&&[...a].some(e=>e.contains(t))||u.current.set(e.type,!0),e.type===`click`&&window.setTimeout(()=>{l.current&&d.current()},0)}sr(f,`handleInteractionCapture`);function p(e){l.current&&u.current.set(e.type,!1)}sr(p,`handleInteractionBubble`);let m=sr(a=>{if(a.target&&!c.current){let f=function(){n.removeEventListener(`click`,d.current);let r=t();e(),r||yr(lr,s,p,{discrete:!0})};if(sr(f,`handleAndDispatchPointerDownOutsideEvent`),!o(a.target)){n.removeEventListener(`click`,d.current),e(),c.current=!1;return}let p={originalEvent:a};l.current=!0,i.current=r&&a.button===0,u.current.clear(),!r||a.button!==0?f():(n.removeEventListener(`click`,d.current),d.current=f,n.addEventListener(`click`,d.current,{once:!0}))}else n.removeEventListener(`click`,d.current),e();c.current=!1},`handlePointerDown`),h=[`pointerup`,`mousedown`,`mouseup`,`touchstart`,`touchend`,`click`];for(let e of h)n.addEventListener(e,f,!0),n.addEventListener(e,p);let g=window.setTimeout(()=>{n.addEventListener(`pointerdown`,m)},0);return()=>{window.clearTimeout(g),n.removeEventListener(`pointerdown`,m),n.removeEventListener(`click`,d.current);for(let e of h)n.removeEventListener(e,f,!0),n.removeEventListener(e,p)}},[n,s,r,i,a,o]),{onPointerDownCapture:sr(()=>c.current=!0,`onPointerDownCapture`)}}sr(gr,`usePointerDownOutside`);function _r(e,t=globalThis?.document){let n=ar(e),r=C.useRef(!1);return C.useEffect(()=>{let e=sr(e=>{e.target&&!r.current&&yr(ur,n,{originalEvent:e},{discrete:!1})},`handleFocus`);return t.addEventListener(`focusin`,e),()=>t.removeEventListener(`focusin`,e)},[t,n]),{onFocusCapture:sr(()=>r.current=!0,`onFocusCapture`),onBlurCapture:sr(()=>r.current=!1,`onBlurCapture`)}}sr(_r,`useFocusOutside`);function vr(){let e=new CustomEvent(cr);document.dispatchEvent(e)}sr(vr,`dispatchUpdate`);function yr(e,t,n,{discrete:r}){let i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?Zt(i,a):i.dispatchEvent(a)}sr(yr,`handleAndDispatchCustomEvent`);var br=Object.defineProperty,xr=(e,t)=>br(e,`name`,{value:t,configurable:!0}),Sr=`focusScope.autoFocusOnMount`,Cr=`focusScope.autoFocusOnUnmount`,wr={bubbles:!1,cancelable:!0},Tr=C.forwardRef(xr(function(e,t){let{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...o}=e,[s,c]=C.useState(null),l=ar(i),u=ar(a),d=C.useRef(null),f=U(t,c),p=C.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;C.useEffect(()=>{if(r){let e=function(e){if(p.paused||!s)return;let t=e.target;s.contains(t)?d.current=t:Mr(d.current,{select:!0})},t=function(e){if(p.paused||!s)return;let t=e.relatedTarget;t!==null&&(s.contains(t)||Mr(d.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&Mr(s)};xr(e,`handleFocusIn`),xr(t,`handleFocusOut`),xr(n,`handleMutations`),document.addEventListener(`focusin`,e),document.addEventListener(`focusout`,t);let r=new MutationObserver(n);return s&&r.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener(`focusin`,e),document.removeEventListener(`focusout`,t),r.disconnect()}}},[r,s,p.paused]),C.useEffect(()=>{if(s){Nr.add(p);let e=document.activeElement;if(!s.contains(e)){let t=new CustomEvent(Sr,wr);s.addEventListener(Sr,l),s.dispatchEvent(t),t.defaultPrevented||(Er(Ir(Or(s)),{select:!0}),document.activeElement===e&&Mr(s))}return()=>{s.removeEventListener(Sr,l),setTimeout(()=>{let t=new CustomEvent(Cr,wr);s.addEventListener(Cr,u),s.dispatchEvent(t),t.defaultPrevented||Mr(e??document.body,{select:!0}),s.removeEventListener(Cr,u),Nr.remove(p)},0)}}},[s,l,u,p]);let m=C.useCallback(e=>{if(!n&&!r||p.paused)return;let t=e.key===`Tab`&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){let t=e.currentTarget,[r,a]=Dr(t);r&&a?!e.shiftKey&&i===a?(e.preventDefault(),n&&Mr(r,{select:!0})):e.shiftKey&&i===r&&(e.preventDefault(),n&&Mr(a,{select:!0})):i===t&&e.preventDefault()}},[n,r,p.paused]);return(0,w.jsx)(W.div,{tabIndex:-1,...o,ref:f,onKeyDown:m})},`FocusScope`));function Er(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(Mr(r,{select:t}),document.activeElement!==n)return}xr(Er,`focusFirst`);function Dr(e){let t=Or(e);return[kr(t,e),kr(t.reverse(),e)]}xr(Dr,`getTabbableEdges`);function Or(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:xr(e=>{let t=e.tagName===`INPUT`&&e.type===`hidden`;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},`acceptNode`)});for(;n.nextNode();)t.push(n.currentNode);return t}xr(Or,`getTabbableCandidates`);function kr(e,t){let n=typeof t.checkVisibility==`function`&&t.checkVisibility({checkVisibilityCSS:!0});for(let r of e)if(!(n?!r.checkVisibility({checkVisibilityCSS:!0}):Ar(r,{upTo:t})))return r}xr(kr,`findVisible`);function Ar(e,{upTo:t}){if(getComputedStyle(e).visibility===`hidden`)return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display===`none`)return!0;e=e.parentElement}return!1}xr(Ar,`isHidden`);function jr(e){return e instanceof HTMLInputElement&&`select`in e}xr(jr,`isSelectableInput`);function Mr(e,{select:t=!1}={}){if(e&&e.focus){let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&jr(e)&&t&&e.select()}}xr(Mr,`focus`);var Nr=Pr();function Pr(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),e=Fr(e,t),e.unshift(t)},remove(t){e=Fr(e,t),e[0]?.resume()}}}xr(Pr,`createFocusScopesStack`);function Fr(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}xr(Fr,`arrayRemove`);function Ir(e){return e.filter(e=>e.tagName!==`A`)}xr(Ir,`removeLinks`);var Lr=Object.defineProperty,Rr=C.forwardRef(((e,t)=>Lr(e,`name`,{value:t,configurable:!0}))(function(e,t){let{container:n,...r}=e,[i,a]=C.useState(!1);Tn(()=>a(!0),[]);let o=n||i&&globalThis?.document?.body;return o?Jt.createPortal((0,w.jsx)(W.div,{...r,ref:t}),o):null},`Portal`)),zr=Object.defineProperty,Br=(e,t)=>zr(e,`name`,{value:t,configurable:!0}),Vr=0,Hr=null;function Ur(e){return Wr(),e.children}Br(Ur,`FocusGuards`);function Wr(){C.useEffect(()=>{Hr||={start:Gr(),end:Gr()};let{start:e,end:t}=Hr;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement(`afterbegin`,e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement(`beforeend`,t),Vr++,()=>{Vr===1&&(Hr?.start.remove(),Hr?.end.remove(),Hr=null),Vr=Math.max(0,Vr-1)}},[])}Br(Wr,`useFocusGuards`);function Gr(){let e=document.createElement(`span`);return e.setAttribute(`data-radix-focus-guard`,``),e.tabIndex=0,e.style.outline=`none`,e.style.opacity=`0`,e.style.position=`fixed`,e.style.pointerEvents=`none`,e}Br(Gr,`createFocusGuard`);var Kr=function(){return Kr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Kr.apply(this,arguments)};function qr(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function Jr(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var Yr=`right-scroll-bar-position`,Xr=`width-before-scroll-bar`,Zr=`with-scroll-bars-hidden`,Qr=`--removed-body-scroll-bar-size`;function $r(e,t){return typeof e==`function`?e(t):e&&(e.current=t),e}function ei(e,t){var n=(0,C.useState)(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}})[0];return n.callback=t,n.facade}var ti=typeof window<`u`?C.useLayoutEffect:C.useEffect,ni=new WeakMap;function ri(e,t){var n=ei(t||null,function(t){return e.forEach(function(e){return $r(e,t)})});return ti(function(){var t=ni.get(n);if(t){var r=new Set(t),i=new Set(e),a=n.current;r.forEach(function(e){i.has(e)||$r(e,null)}),i.forEach(function(e){r.has(e)||$r(e,a)})}ni.set(n,e)},[e]),n}function ii(e){return e}function ai(e,t){t===void 0&&(t=ii);var n=[],r=!1;return{read:function(){if(r)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var i=t(e,r);return n.push(i),function(){n=n.filter(function(e){return e!==i})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var i=n;n=[],i.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(a)};o(),n={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),n}}}}}function oi(e){e===void 0&&(e={});var t=ai(null);return t.options=Kr({async:!0,ssr:!1},e),t}var si=function(e){var t=e.sideCar,n=qr(e,[`sideCar`]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error(`Sidecar medium not found`);return C.createElement(r,Kr({},n))};si.isSideCarExport=!0;function ci(e,t){return e.useMedium(t),si}var li=oi(),ui=function(){},di=C.forwardRef(function(e,t){var n=C.useRef(null),r=C.useState({onScrollCapture:ui,onWheelCapture:ui,onTouchMoveCapture:ui}),i=r[0],a=r[1],o=e.forwardProps,s=e.children,c=e.className,l=e.removeScrollBar,u=e.enabled,d=e.shards,f=e.sideCar,p=e.noRelative,m=e.noIsolation,h=e.inert,g=e.allowPinchZoom,_=e.as,v=_===void 0?`div`:_,y=e.gapMode,b=qr(e,[`forwardProps`,`children`,`className`,`removeScrollBar`,`enabled`,`shards`,`sideCar`,`noRelative`,`noIsolation`,`inert`,`allowPinchZoom`,`as`,`gapMode`]),x=f,S=ri([n,t]),w=Kr(Kr({},b),i);return C.createElement(C.Fragment,null,u&&C.createElement(x,{sideCar:li,removeScrollBar:l,shards:d,noRelative:p,noIsolation:m,inert:h,setCallbacks:a,allowPinchZoom:!!g,lockRef:n,gapMode:y}),o?C.cloneElement(C.Children.only(s),Kr(Kr({},w),{ref:S})):C.createElement(v,Kr({},w,{className:c,ref:S}),s))});di.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},di.classNames={fullWidth:Xr,zeroRight:Yr};var fi=function(){if(typeof __webpack_nonce__<`u`)return __webpack_nonce__};function pi(){if(!document)return null;var e=document.createElement(`style`);e.type=`text/css`;var t=fi();return t&&e.setAttribute(`nonce`,t),e}function mi(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function hi(e){(document.head||document.getElementsByTagName(`head`)[0]).appendChild(e)}var gi=function(){var e=0,t=null;return{add:function(n){e==0&&(t=pi())&&(mi(t,n),hi(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},_i=function(){var e=gi();return function(t,n){C.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},vi=function(){var e=_i();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},yi={left:0,top:0,right:0,gap:0},bi=function(e){return parseInt(e||``,10)||0},xi=function(e){var t=window.getComputedStyle(document.body),n=t[e===`padding`?`paddingLeft`:`marginLeft`],r=t[e===`padding`?`paddingTop`:`marginTop`],i=t[e===`padding`?`paddingRight`:`marginRight`];return[bi(n),bi(r),bi(i)]},Si=function(e){if(e===void 0&&(e=`margin`),typeof window>`u`)return yi;var t=xi(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Ci=vi(),wi=`data-scroll-locked`,Ti=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return n===void 0&&(n=`margin`),`
2
2
  .${Zr} {
3
3
  overflow: hidden ${r};
4
4
  padding-right: ${s}px ${r};
@@ -51,4 +51,4 @@ import{C as e,S as t,_ as n,a as r,b as i,c as a,d as o,f as s,g as c,h as l,i a
51
51
  `});++r<e.length;)r&&n.push({type:`text`,value:`
52
52
  `}),n.push(e[r]);return t&&e.length>0&&n.push({type:`text`,value:`
53
53
  `}),n}function gh(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function _h(e,t){let n=dh(e,t),r=n.one(e,void 0),i=Xm(n),a=Array.isArray(r)?{type:`root`,children:r}:r||{type:`root`,children:[]};return i&&(`children`in a,a.children.push({type:`text`,value:`
54
- `},i)),a}function vh(e,t){return e&&`run`in e?async function(n,r){let i=_h(n,{file:r,...t});await e.run(i,r)}:function(n,r){return _h(n,{file:r,...e||t})}}function yh(e){if(e)throw e}var bh=x(((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 xh(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 Sh(){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?Ch(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 Ch(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 wh={basename:Th,dirname:Eh,extname:Dh,join:Oh,sep:`/`};function Th(e,t){if(t!==void 0&&typeof t!=`string`)throw TypeError(`"ext" argument must be a string`);jh(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 Eh(e){if(jh(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 Dh(e){jh(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 Oh(...e){let t=-1,n;for(;++t<e.length;)jh(e[t]),e[t]&&(n=n===void 0?e[t]:n+`/`+e[t]);return n===void 0?`.`:kh(n)}function kh(e){jh(e);let t=e.codePointAt(0)===47,n=Ah(e,!t);return n.length===0&&!t&&(n=`.`),n.length>0&&e.codePointAt(e.length-1)===47&&(n+=`/`),t?`/`+n:n}function Ah(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 jh(e){if(typeof e!=`string`)throw TypeError(`Path must be a string. Received `+JSON.stringify(e))}var Mh={cwd:Nh};function Nh(){return`/`}function Ph(e){return!!(typeof e==`object`&&e&&`href`in e&&e.href&&`protocol`in e&&e.protocol&&e.auth===void 0)}function Fh(e){if(typeof e==`string`)e=new URL(e);else if(!Ph(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 Ih(e)}function Ih(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 Lh=[`history`,`path`,`basename`,`stem`,`extname`,`dirname`],Rh=class{constructor(e){let t;t=e?Ph(e)?{path:e}:typeof e==`string`||Hh(e)?{value:e}:e:{},this.cwd=`cwd`in t?``:Mh.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n=-1;for(;++n<Lh.length;){let e=Lh[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)Lh.includes(r)||(this[r]=t[r])}get basename(){return typeof this.path==`string`?wh.basename(this.path):void 0}set basename(e){Bh(e,`basename`),zh(e,`basename`),this.path=wh.join(this.dirname||``,e)}get dirname(){return typeof this.path==`string`?wh.dirname(this.path):void 0}set dirname(e){Vh(this.basename,`dirname`),this.path=wh.join(e||``,this.basename)}get extname(){return typeof this.path==`string`?wh.extname(this.path):void 0}set extname(e){if(zh(e,`extname`),Vh(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=wh.join(this.dirname,this.stem+(e||``))}get path(){return this.history[this.history.length-1]}set path(e){Ph(e)&&(e=Fh(e)),Bh(e,`path`),this.path!==e&&this.history.push(e)}get stem(){return typeof this.path==`string`?wh.basename(this.path,this.extname):void 0}set stem(e){Bh(e,`stem`),zh(e,`stem`),this.path=wh.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 wu(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 zh(e,t){if(e&&e.includes(wh.sep))throw Error("`"+t+"` cannot be a path: did not expect `"+wh.sep+"`")}function Bh(e,t){if(!e)throw Error("`"+t+"` cannot be empty")}function Vh(e,t){if(!e)throw Error("Setting `"+t+"` requires `path` to be set too")}function Hh(e){return!!(e&&typeof e==`object`&&`byteLength`in e&&`byteOffset`in e)}var Uh=(function(e){let t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r}),Wh=e(bh(),1),Gh={}.hasOwnProperty,Kh=new class e extends Uh{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=Sh()}copy(){let t=new e,n=-1;for(;++n<this.attachers.length;){let e=this.attachers[n];t.use(...e)}return t.data((0,Wh.default)(!0,{},this.namespace)),t}data(e,t){return typeof e==`string`?arguments.length===2?(Yh(`data`,this.frozen),this.namespace[e]=t,this):Gh.call(this.namespace,e)&&this.namespace[e]||void 0:e?(Yh(`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=Qh(e),n=this.parser||this.Parser;return qh(`parse`,n),n(String(t),t)}process(e,t){let n=this;return this.freeze(),qh(`process`,this.parser||this.Parser),Jh(`process`,this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,i){let a=Qh(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);eg(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(),qh(`processSync`,this.parser||this.Parser),Jh(`processSync`,this.compiler||this.Compiler),this.process(e,r),Zh(`processSync`,`process`,t),n;function r(e,r){t=!0,yh(e),n=r}}run(e,t,n){Xh(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=Qh(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),Zh(`runSync`,`run`,n),r;function i(e,t){yh(e),r=t,n=!0}}stringify(e,t){this.freeze();let n=Qh(t),r=this.compiler||this.Compiler;return Jh(`stringify`,r),Xh(e),r(e,n)}use(e,...t){let n=this.attachers,r=this.namespace;if(Yh(`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,Wh.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];xh(o)&&xh(r)&&(r=(0,Wh.default)(!0,o,r)),n[i]=[e,r,...a]}}}}().freeze();function qh(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `parser`")}function Jh(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `compiler`")}function Yh(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 Xh(e){if(!xh(e)||typeof e.type!=`string`)throw TypeError("Expected node, got `"+e+"`")}function Zh(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function Qh(e){return $h(e)?e:new Rh(e)}function $h(e){return!!(e&&typeof e==`object`&&`message`in e&&`messages`in e)}function eg(e){return typeof e==`string`||tg(e)}function tg(e){return!!(e&&typeof e==`object`&&`byteLength`in e&&`byteOffset`in e)}var ng=[],rg={allowDangerousHtml:!0},ig=/^(https?|ircs?|mailto|xmpp)$/i,ag=[{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 og(e){let t=sg(e),n=cg(e);return lg(t.runSync(t.parse(n),n),e)}function sg(e){let t=e.rehypePlugins||ng,n=e.remarkPlugins||ng,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...rg}:rg;return Kh().use(tm).use(n).use(vh,r).use(t)}function cg(e){let t=e.children||``,n=new Rh;return typeof t==`string`?n.value=t:``+t,n}function lg(e,t){let n=t.allowedElements,r=t.allowElement,i=t.components,a=t.disallowedElements,o=t.skipHtml,s=t.unwrapDisallowed,c=t.urlTransform||ug;for(let e of ag)Object.hasOwn(t,e.from)&&``+e.from+(e.to?"use `"+e.to+"` instead":`remove it`)+e.id;return ch(e,l),Mu(e,{Fragment:w.Fragment,components:i,ignoreInvalidStyle:!0,jsx:w.jsx,jsxs:w.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 ed)if(Object.hasOwn(ed,t)&&Object.hasOwn(e.properties,t)){let n=e.properties[t],r=ed[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 ug(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||ig.test(e.slice(0,t))?e:``}function dg({children:e}){return(0,w.jsx)(`div`,{className:`prose prose-sm max-w-none dark:prose-invert sm:prose-base`,children:(0,w.jsx)(og,{children:e})})}function fg({src:e,alt:t,size:n,notApplicable:r=!1,className:i=``}){let a={aspectRatio:n?`${n.width} / ${n.height}`:`1 / 1`};return e&&!r?(0,w.jsx)(`img`,{alt:t,className:`w-full border border-border object-contain ${i}`,decoding:`async`,fetchPriority:`low`,height:n?.height,loading:`lazy`,src:e,style:a,width:n?.width}):(0,w.jsx)(`div`,{className:`flex w-full items-center justify-center border border-dashed border-border text-xs font-semibold uppercase tracking-wide ${r?`text-muted-foreground`:`text-destructive`} ${i}`,style:a,children:r?(0,w.jsxs)(`span`,{className:`text-center`,children:[`not`,(0,w.jsx)(`br`,{}),`applicable`]}):`missing`})}var pg=e=>typeof e==`boolean`?`${e}`:e===0?`0`:e,mg=I,hg=((e,t)=>n=>{if(t?.variants==null)return mg(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=pg(t)||pg(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 mg(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)})(`inline-flex shrink-0 items-center justify-center gap-2 rounded-none text-sm font-medium whitespace-nowrap transition-all outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,{variants:{variant:{default:`bg-primary text-primary-foreground hover:bg-primary/90`,destructive:`bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40`,outline:`border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50`,secondary:`bg-secondary text-secondary-foreground hover:bg-secondary/80`,ghost:`hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50`,link:`text-primary underline-offset-4 hover:underline`},size:{default:`h-9 px-4 py-2 has-[>svg]:px-3`,xs:`h-6 gap-1 rounded-none px-2 text-xs has-[>svg]:px-1.5 [&_svg:not([class*='size-'])]:size-3`,sm:`h-8 gap-1.5 rounded-none px-3 has-[>svg]:px-2.5`,lg:`h-10 rounded-none px-6 has-[>svg]:px-4`,icon:`size-9`,"icon-xs":`size-6 rounded-none [&_svg:not([class*='size-'])]:size-3`,"icon-sm":`size-8`,"icon-lg":`size-10`}},defaultVariants:{variant:`default`,size:`default`}});function gg({className:e,variant:t=`default`,size:n=`default`,asChild:r=!1,...i}){let a=r?Ft:`button`;return(0,w.jsx)(a,{"data-slot":`button`,"data-variant":t,"data-size":n,className:Dt(hg({variant:t,size:n,className:e})),...i})}function _g({className:e,type:t,...n}){return(0,w.jsx)(`input`,{type:t,"data-slot":`input`,className:Dt(`h-9 w-full min-w-0 rounded-none border border-input bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none selection:bg-primary selection:text-primary-foreground file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm dark:bg-input/30`,`focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50`,`aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40`,e),...n})}function vg({...e}){return(0,w.jsx)(dc,{"data-slot":`select`,...e})}function yg({...e}){return(0,w.jsx)(hc,{"data-slot":`select-value`,...e})}function bg({className:e,size:t=`default`,children:n,...r}){return(0,w.jsxs)(pc,{"data-slot":`select-trigger`,"data-size":t,className:Dt(`flex w-fit items-center justify-between gap-2 rounded-none border border-input bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[placeholder]:text-muted-foreground data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground`,e),...r,children:[n,(0,w.jsx)(gc,{asChild:!0,children:(0,w.jsx)(F,{className:`size-4 opacity-50`})})]})}function xg({className:e,children:t,position:n=`item-aligned`,align:r=`center`,...i}){return(0,w.jsx)(yc,{children:(0,w.jsxs)(xc,{"data-slot":`select-content`,className:Dt(`relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-none border bg-popover text-popover-foreground shadow-md data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95`,n===`popper`&&`data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1`,e),position:n,align:r,...i,children:[(0,w.jsx)(Cg,{}),(0,w.jsx)(Nc,{className:Dt(`p-1`,n===`popper`&&`h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1`),children:t}),(0,w.jsx)(wg,{})]})})}function Sg({className:e,children:t,...n}){return(0,w.jsxs)(zc,{"data-slot":`select-item`,className:Dt(`relative flex w-full cursor-default items-center gap-2 rounded-none py-1.5 pr-8 pl-2 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2`,e),...n,children:[(0,w.jsx)(`span`,{"data-slot":`select-item-indicator`,className:`absolute right-2 flex size-3.5 items-center justify-center`,children:(0,w.jsx)(Uc,{children:(0,w.jsx)(ee,{className:`size-4`})})}),(0,w.jsx)(Vc,{children:t})]})}function Cg({className:e,...t}){return(0,w.jsx)(Gc,{"data-slot":`select-scroll-up-button`,className:Dt(`flex cursor-default items-center justify-center py-1`,e),...t,children:(0,w.jsx)(ne,{className:`size-4`})})}function wg({className:e,...t}){return(0,w.jsx)(qc,{"data-slot":`select-scroll-down-button`,className:Dt(`flex cursor-default items-center justify-center py-1`,e),...t,children:(0,w.jsx)(F,{className:`size-4`})})}function Tg({className:e,...t}){return(0,w.jsx)(fl,{className:Dt(`peer inline-flex h-5 w-9 shrink-0 items-center rounded-full border border-transparent bg-input outline-none transition-colors focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:opacity-50 data-[state=checked]:bg-primary`,e),...t,children:(0,w.jsx)(ml,{className:`pointer-events-none block size-4 rounded-full bg-background transition-transform data-[state=checked]:translate-x-[1.05rem] data-[state=unchecked]:translate-x-0.5`})})}function Eg({index:e,view:t,onChange:n}){let{outputs:r}=e.config,i=e.config.renderers.filter(e=>e.id!==t.ref),a=new Set(t.compared),o=i.filter(e=>e.enabled!==!1).map(e=>e.id),s=e=>{let t=i.filter(t=>e.has(t.id)).map(e=>e.id);n({renderers:t.join(`,`)===o.join(`,`)?void 0:t.join(`,`)||`-`})},c=e=>{let t=new Set(a);t.has(e)?t.delete(e):t.add(e),s(t)};return(0,w.jsxs)(w.Fragment,{children:[i.length>0?(0,w.jsxs)(`details`,{className:`relative shrink-0 text-sm`,children:[(0,w.jsxs)(`summary`,{className:`cursor-pointer rounded-md border border-input px-3 py-2`,children:[`Renderers (`,a.size,`/`,i.length,`)`]}),(0,w.jsxs)(`div`,{className:`absolute right-0 z-50 mt-1 min-w-48 space-y-1 rounded-md border border-border bg-card p-2 shadow-lg`,children:[(0,w.jsx)(`button`,{className:`block w-full px-2 py-1 text-left hover:bg-muted`,onClick:()=>s(new Set(i.map(e=>e.id))),type:`button`,children:`All renderers`}),i.map(e=>(0,w.jsxs)(`label`,{className:`flex cursor-pointer items-center gap-2 rounded px-2 py-1 hover:bg-muted`,children:[(0,w.jsx)(`input`,{checked:a.has(e.id),onChange:()=>c(e.id),type:`checkbox`}),e.label??e.id]},e.id))]})]}):null,r.length>1?(0,w.jsx)(Og,{label:`Output`,value:t.output,options:r.map(e=>({value:e.id,label:e.label??e.id})),onChange:e=>n({output:e})}):null,t.references.length>1?(0,w.jsx)(Og,{label:`Reference`,value:t.ref,options:t.references.map(e=>({value:e,label:t.label(e)})),onChange:e=>n({ref:e})}):null,(0,w.jsxs)(`label`,{htmlFor:`show-deltas`,className:`flex shrink-0 items-center gap-2 text-sm text-muted-foreground`,children:[(0,w.jsx)(Tg,{"aria-label":`Show delta images`,checked:t.showDeltas,onCheckedChange:e=>n({deltas:e})}),`Deltas`]})]})}function Dg({value:e,onChange:t}){return(0,w.jsxs)(vg,{onValueChange:e=>t(s({sort:e}).sort),value:e,children:[(0,w.jsxs)(bg,{"aria-label":`Sort scenes`,className:`shrink-0`,title:`Sort`,children:[(0,w.jsx)(P,{}),(0,w.jsx)(yg,{children:p.find(t=>t.value===e)?.label})]}),(0,w.jsx)(xg,{children:p.map(e=>(0,w.jsx)(Sg,{value:e.value,children:e.label},e.value))})]})}function Og({label:e,value:t,options:n,onChange:r}){return(0,w.jsxs)(vg,{onValueChange:r,value:t,children:[(0,w.jsx)(bg,{"aria-label":e,className:`shrink-0`,title:e,children:(0,w.jsx)(yg,{children:n.find(e=>e.value===t)?.label})}),(0,w.jsx)(xg,{children:n.map(e=>(0,w.jsx)(Sg,{value:e.value,children:e.label},e.value))})]})}var kg=l(`__root__`),Ag=l(`/`);function jg({path:e,readme:t}){let{index:r,hashes:i,scenes:o}=kg.useLoaderData(),s=Ag.useSearch(),l=o.find(t=>t.path===e),f=n({from:`/`});if(!l)throw S();let p=d(r,s,i),h=p.compared,g=y(r,l,p);return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(Tl,{logo:r.config.logo,scenePath:l.path,search:s,title:r.config.title,children:(0,w.jsx)(Eg,{index:r,onChange:e=>void f({replace:!0,search:t=>({...t,...e})}),view:p})}),(0,w.jsxs)(`div`,{className:`mx-auto flex w-full max-w-[1120px] flex-col gap-6 px-4 py-6 sm:px-6`,children:[(0,w.jsx)(`h1`,{className:`text-xl font-semibold`,children:l.title}),t?(0,w.jsx)(dg,{children:t}):null,(0,w.jsx)(`section`,{className:`grid gap-4 md:grid-cols-4`,children:[p.ref,...h].map(e=>(0,w.jsxs)(`figure`,{children:[e===p.ref?(0,w.jsx)(fg,{alt:e,size:g,src:a(l,p,e)}):(0,w.jsx)(c,{hash:`vs-${e}`,search:{...s,scene:l.path},to:`/`,children:(0,w.jsx)(fg,{alt:e,size:g,src:a(l,p,e)})}),(0,w.jsxs)(`figcaption`,{className:`mt-1 text-center text-sm text-muted-foreground`,children:[p.label(e),e===p.ref?` (reference)`:``]})]},e))}),h.map(e=>(0,w.jsx)(Mg,{delta:p.showDeltas?u(r,l,p,e):void 0,image:a(l,p,e),id:`vs-${e}`,label:p.label(e),metrics:m(r,l,p,e),reference:a(l,p,p.ref),refLabel:p.label(p.ref),scenePath:l.path,search:s,showDelta:p.showDeltas,size:g},e))]})]})}function Mg({id:e,scenePath:t,search:n,label:i,refLabel:a,reference:o,image:s,delta:l,showDelta:u,metrics:d,size:f}){let[p,m]=(0,C.useState)(50);return(0,w.jsxs)(`section`,{children:[(0,w.jsxs)(T,{anchor:(0,w.jsx)(c,{"aria-label":`Link to ${a} vs ${i}`,hash:e,search:{...n,scene:t},to:`/`,children:`#`}),as:`h2`,className:`mb-2 font-semibold`,id:e,children:[a,` vs `,i]}),(0,w.jsxs)(`div`,{className:`grid gap-4 ${u?`md:grid-cols-2`:``}`,children:[(0,w.jsxs)(`figure`,{children:[o&&s?(0,w.jsxs)(`div`,{className:`relative select-none`,children:[(0,w.jsx)(`img`,{alt:i,className:`block w-full border border-border`,decoding:`async`,loading:`lazy`,src:s}),(0,w.jsx)(`img`,{alt:a,className:`absolute inset-0 block w-full border border-border`,decoding:`async`,height:f?.height,loading:`lazy`,src:o,width:f?.width,style:{clipPath:`inset(0 ${100-p}% 0 0)`}}),(0,w.jsx)(`div`,{className:`pointer-events-none absolute inset-y-0 w-[3px] -translate-x-1/2 bg-blue-500`,style:{left:`${p}%`}}),(0,w.jsx)(`input`,{"aria-label":`Compare split for ${i}`,className:`absolute inset-0 h-full w-full cursor-ew-resize opacity-0`,max:100,min:0,onChange:e=>m(Number(e.currentTarget.value)),type:`range`,value:p})]}):(0,w.jsx)(fg,{alt:`${i} comparison`,size:f}),(0,w.jsxs)(`figcaption`,{className:`mt-1 text-center text-sm text-muted-foreground`,children:[a,` (left) / `,i,` (right) — drag to swipe`]})]}),u?(0,w.jsxs)(`figure`,{children:[(0,w.jsx)(fg,{alt:`${i} delta`,notApplicable:!o,size:f,src:l}),(0,w.jsxs)(`figcaption`,{className:`mt-1 text-center text-sm text-muted-foreground`,children:[i,` delta`]})]}):null]}),(0,w.jsx)(`div`,{className:`mt-3`,children:d?(0,w.jsxs)(`dl`,{className:`grid max-w-md grid-cols-2 gap-x-4 gap-y-1 p-2 font-mono text-sm ${_(d)}`,children:[(0,w.jsx)(`dt`,{children:`PSNR (dB)`}),(0,w.jsx)(`dd`,{children:r(d.psnr)})]}):(0,w.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:"No metrics yet. Run `fidelity-kit process`."})})]})}var Ng=l(`__root__`);function Pg(){let e=v.useLoaderData(),{scene:t}=v.useSearch();return t?(0,w.jsx)(jg,{path:t,readme:e}):(0,w.jsx)(Fg,{preamble:e})}function Fg({preamble:e}){let{index:t,hashes:r,scenes:i}=Ng.useLoaderData(),a=v.useSearch(),s=n({from:v.fullPath}),c=e=>void s({replace:!0,search:t=>({...t,...e})}),l=d(t,a,r),u=o(t,i,a,l),[f,p]=(0,C.useState)(a.q??``),m=g(i),h=a.tags?.split(`,`)??[];(0,C.useEffect)(()=>{let e=window.setTimeout(()=>{let e=f.trim()?f:void 0;e!==a.q&&c({q:e})},300);return()=>window.clearTimeout(e)});let _=e=>{let t=h.includes(e)?h.filter(t=>t!==e):[...h,e];c({tags:t.length?t.join(`,`):void 0})};return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsxs)(Tl,{logo:t.config.logo,search:a,title:t.config.title,children:[(0,w.jsx)(_g,{"aria-label":`Filter scenes`,className:`md:w-64`,onChange:e=>p(e.currentTarget.value),placeholder:`Scene Filter`,type:`text`,value:f}),(0,w.jsx)(Dg,{onChange:e=>c({sort:e}),value:a.sort??`name`}),(0,w.jsx)(Eg,{index:t,onChange:c,view:l}),(0,w.jsxs)(`span`,{className:`shrink-0 text-sm text-muted-foreground`,children:[u.length,`/`,i.length]})]}),(0,w.jsxs)(`div`,{className:`flex w-full flex-col gap-6 px-4 py-6 sm:px-6`,children:[e?(0,w.jsx)(dg,{children:e}):null,m.length?(0,w.jsx)(`div`,{className:`flex flex-wrap gap-2`,children:m.map(e=>(0,w.jsx)(gg,{onClick:()=>_(e),size:`sm`,variant:h.includes(e)?`default`:`outline`,children:e},e))}):null,(0,w.jsx)(`section`,{children:u.length?u.map((e,n)=>(0,w.jsxs)(`div`,{children:[Ig(e)===Ig(u[n-1])?null:(0,w.jsx)(`h2`,{className:`mt-6 border-b border-border pb-1 text-sm font-semibold uppercase tracking-wide text-muted-foreground`,children:Ig(e)||`Scenes`}),(0,w.jsx)(Lg,{index:t,scene:e,search:a,view:l})]},e.path)):(0,w.jsx)(`div`,{className:`border border-border bg-muted/20 px-4 py-8 text-center text-sm text-muted-foreground`,children:i.length===0?"No scenes found. Run `fidelity-kit process <root>`.":`No scenes match.`})})]})]})}var Ig=e=>e?e.path.split(`/`).slice(0,-1).join(` / `):void 0;function Lg({index:e,scene:t,search:n,view:i}){let o=i.compared,s=y(e,t,i);return(0,w.jsxs)(`article`,{className:`border-b border-border py-4 last:border-b-0`,style:{contentVisibility:`auto`,containIntrinsicSize:`auto 420px`},children:[(0,w.jsxs)(`div`,{className:`flex flex-wrap items-center gap-x-3 gap-y-1`,children:[(0,w.jsx)(T,{anchor:(0,w.jsx)(c,{"aria-label":`Link to ${t.title}`,hash:t.path,search:n,to:`/`,children:`#`}),as:`h3`,className:`text-base font-semibold`,id:t.path,children:(0,w.jsx)(c,{search:{...n,scene:t.path},to:`/`,children:t.title})}),t.tags.map(e=>(0,w.jsx)(`span`,{className:`rounded-full bg-muted px-2 py-0.5 text-xs text-muted-foreground`,children:e},e))]}),(0,w.jsxs)(`div`,{className:`mt-3 grid items-center gap-x-2 gap-y-1 text-xs text-muted-foreground`,style:{gridTemplateColumns:`auto repeat(${o.length+1}, minmax(0, 1fr))`},children:[(0,w.jsx)(`span`,{}),(0,w.jsxs)(`span`,{className:`truncate text-center`,children:[i.label(i.ref),` (reference)`]}),o.map(e=>(0,w.jsx)(`span`,{className:`truncate text-center`,children:i.label(e)},e)),(0,w.jsx)(`span`,{className:`text-right`,children:`Render`}),(0,w.jsx)(Rg,{scene:t,search:n,children:(0,w.jsx)(fg,{alt:`${t.title}: ${i.ref}`,size:s,src:a(t,i,i.ref)})}),o.map(e=>(0,w.jsx)(Rg,{scene:t,search:n,hash:`vs-${e}`,children:(0,w.jsx)(fg,{alt:`${t.title}: ${e}`,size:s,src:a(t,i,e)})},e)),i.showDeltas?(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(`span`,{className:`text-right`,children:`Delta`}),(0,w.jsx)(`span`,{}),o.map(r=>(0,w.jsx)(Rg,{scene:t,search:n,hash:`vs-${r}`,children:(0,w.jsx)(fg,{alt:`${t.title}: ${r} delta`,notApplicable:!a(t,i,i.ref),size:s,src:u(e,t,i,r)})},r))]}):null,(0,w.jsx)(`span`,{className:`text-right`,children:`Metrics`}),(0,w.jsx)(`span`,{}),o.map(n=>{let a=m(e,t,i,n);return(0,w.jsxs)(`dl`,{className:`grid grid-cols-2 gap-x-2 self-stretch p-2 font-mono text-xs ${_(a)}`,children:[(0,w.jsx)(`dt`,{children:`PSNR`}),(0,w.jsx)(`dd`,{className:`text-right`,children:a?r(a.psnr):`–`})]},n)})]})]})}function Rg({scene:e,search:t,hash:n,children:r}){return(0,w.jsx)(c,{hash:n,search:{...t,scene:e.path},to:`/`,children:r})}export{Pg as component};
54
+ `},i)),a}function vh(e,t){return e&&`run`in e?async function(n,r){let i=_h(n,{file:r,...t});await e.run(i,r)}:function(n,r){return _h(n,{file:r,...e||t})}}function yh(e){if(e)throw e}var bh=x(((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 xh(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 Sh(){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?Ch(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 Ch(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 wh={basename:Th,dirname:Eh,extname:Dh,join:Oh,sep:`/`};function Th(e,t){if(t!==void 0&&typeof t!=`string`)throw TypeError(`"ext" argument must be a string`);jh(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 Eh(e){if(jh(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 Dh(e){jh(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 Oh(...e){let t=-1,n;for(;++t<e.length;)jh(e[t]),e[t]&&(n=n===void 0?e[t]:n+`/`+e[t]);return n===void 0?`.`:kh(n)}function kh(e){jh(e);let t=e.codePointAt(0)===47,n=Ah(e,!t);return n.length===0&&!t&&(n=`.`),n.length>0&&e.codePointAt(e.length-1)===47&&(n+=`/`),t?`/`+n:n}function Ah(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 jh(e){if(typeof e!=`string`)throw TypeError(`Path must be a string. Received `+JSON.stringify(e))}var Mh={cwd:Nh};function Nh(){return`/`}function Ph(e){return!!(typeof e==`object`&&e&&`href`in e&&e.href&&`protocol`in e&&e.protocol&&e.auth===void 0)}function Fh(e){if(typeof e==`string`)e=new URL(e);else if(!Ph(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 Ih(e)}function Ih(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 Lh=[`history`,`path`,`basename`,`stem`,`extname`,`dirname`],Rh=class{constructor(e){let t;t=e?Ph(e)?{path:e}:typeof e==`string`||Hh(e)?{value:e}:e:{},this.cwd=`cwd`in t?``:Mh.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n=-1;for(;++n<Lh.length;){let e=Lh[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)Lh.includes(r)||(this[r]=t[r])}get basename(){return typeof this.path==`string`?wh.basename(this.path):void 0}set basename(e){Bh(e,`basename`),zh(e,`basename`),this.path=wh.join(this.dirname||``,e)}get dirname(){return typeof this.path==`string`?wh.dirname(this.path):void 0}set dirname(e){Vh(this.basename,`dirname`),this.path=wh.join(e||``,this.basename)}get extname(){return typeof this.path==`string`?wh.extname(this.path):void 0}set extname(e){if(zh(e,`extname`),Vh(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=wh.join(this.dirname,this.stem+(e||``))}get path(){return this.history[this.history.length-1]}set path(e){Ph(e)&&(e=Fh(e)),Bh(e,`path`),this.path!==e&&this.history.push(e)}get stem(){return typeof this.path==`string`?wh.basename(this.path,this.extname):void 0}set stem(e){Bh(e,`stem`),zh(e,`stem`),this.path=wh.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 wu(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 zh(e,t){if(e&&e.includes(wh.sep))throw Error("`"+t+"` cannot be a path: did not expect `"+wh.sep+"`")}function Bh(e,t){if(!e)throw Error("`"+t+"` cannot be empty")}function Vh(e,t){if(!e)throw Error("Setting `"+t+"` requires `path` to be set too")}function Hh(e){return!!(e&&typeof e==`object`&&`byteLength`in e&&`byteOffset`in e)}var Uh=(function(e){let t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r}),Wh=e(bh(),1),Gh={}.hasOwnProperty,Kh=new class e extends Uh{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=Sh()}copy(){let t=new e,n=-1;for(;++n<this.attachers.length;){let e=this.attachers[n];t.use(...e)}return t.data((0,Wh.default)(!0,{},this.namespace)),t}data(e,t){return typeof e==`string`?arguments.length===2?(Yh(`data`,this.frozen),this.namespace[e]=t,this):Gh.call(this.namespace,e)&&this.namespace[e]||void 0:e?(Yh(`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=Qh(e),n=this.parser||this.Parser;return qh(`parse`,n),n(String(t),t)}process(e,t){let n=this;return this.freeze(),qh(`process`,this.parser||this.Parser),Jh(`process`,this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,i){let a=Qh(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);eg(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(),qh(`processSync`,this.parser||this.Parser),Jh(`processSync`,this.compiler||this.Compiler),this.process(e,r),Zh(`processSync`,`process`,t),n;function r(e,r){t=!0,yh(e),n=r}}run(e,t,n){Xh(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=Qh(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),Zh(`runSync`,`run`,n),r;function i(e,t){yh(e),r=t,n=!0}}stringify(e,t){this.freeze();let n=Qh(t),r=this.compiler||this.Compiler;return Jh(`stringify`,r),Xh(e),r(e,n)}use(e,...t){let n=this.attachers,r=this.namespace;if(Yh(`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,Wh.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];xh(o)&&xh(r)&&(r=(0,Wh.default)(!0,o,r)),n[i]=[e,r,...a]}}}}().freeze();function qh(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `parser`")}function Jh(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `compiler`")}function Yh(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 Xh(e){if(!xh(e)||typeof e.type!=`string`)throw TypeError("Expected node, got `"+e+"`")}function Zh(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function Qh(e){return $h(e)?e:new Rh(e)}function $h(e){return!!(e&&typeof e==`object`&&`message`in e&&`messages`in e)}function eg(e){return typeof e==`string`||tg(e)}function tg(e){return!!(e&&typeof e==`object`&&`byteLength`in e&&`byteOffset`in e)}var ng=[],rg={allowDangerousHtml:!0},ig=/^(https?|ircs?|mailto|xmpp)$/i,ag=[{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 og(e){let t=sg(e),n=cg(e);return lg(t.runSync(t.parse(n),n),e)}function sg(e){let t=e.rehypePlugins||ng,n=e.remarkPlugins||ng,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...rg}:rg;return Kh().use(tm).use(n).use(vh,r).use(t)}function cg(e){let t=e.children||``,n=new Rh;return typeof t==`string`?n.value=t:``+t,n}function lg(e,t){let n=t.allowedElements,r=t.allowElement,i=t.components,a=t.disallowedElements,o=t.skipHtml,s=t.unwrapDisallowed,c=t.urlTransform||ug;for(let e of ag)Object.hasOwn(t,e.from)&&``+e.from+(e.to?"use `"+e.to+"` instead":`remove it`)+e.id;return ch(e,l),Mu(e,{Fragment:w.Fragment,components:i,ignoreInvalidStyle:!0,jsx:w.jsx,jsxs:w.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 ed)if(Object.hasOwn(ed,t)&&Object.hasOwn(e.properties,t)){let n=e.properties[t],r=ed[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 ug(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||ig.test(e.slice(0,t))?e:``}function dg({children:e}){return(0,w.jsx)(`div`,{className:`prose prose-sm max-w-none dark:prose-invert sm:prose-base`,children:(0,w.jsx)(og,{children:e})})}function fg({src:e,alt:t,size:n,unavailable:r=!1,className:i=``}){let a={aspectRatio:n?`${n.width} / ${n.height}`:`1 / 1`};return e&&!r?(0,w.jsx)(`img`,{alt:t,className:`w-full border border-border object-contain ${i}`,decoding:`async`,fetchPriority:`low`,height:n?.height,loading:`lazy`,src:e,style:a,width:n?.width}):(0,w.jsx)(`div`,{className:`flex w-full items-center justify-center border border-dashed border-border text-xs font-semibold uppercase tracking-wide ${r?`text-muted-foreground`:`text-destructive`} ${i}`,style:a,children:r?`Not available`:`missing`})}var pg=e=>typeof e==`boolean`?`${e}`:e===0?`0`:e,mg=I,hg=((e,t)=>n=>{if(t?.variants==null)return mg(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=pg(t)||pg(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 mg(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)})(`inline-flex shrink-0 items-center justify-center gap-2 rounded-none text-sm font-medium whitespace-nowrap transition-all outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,{variants:{variant:{default:`bg-primary text-primary-foreground hover:bg-primary/90`,destructive:`bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40`,outline:`border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50`,secondary:`bg-secondary text-secondary-foreground hover:bg-secondary/80`,ghost:`hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50`,link:`text-primary underline-offset-4 hover:underline`},size:{default:`h-9 px-4 py-2 has-[>svg]:px-3`,xs:`h-6 gap-1 rounded-none px-2 text-xs has-[>svg]:px-1.5 [&_svg:not([class*='size-'])]:size-3`,sm:`h-8 gap-1.5 rounded-none px-3 has-[>svg]:px-2.5`,lg:`h-10 rounded-none px-6 has-[>svg]:px-4`,icon:`size-9`,"icon-xs":`size-6 rounded-none [&_svg:not([class*='size-'])]:size-3`,"icon-sm":`size-8`,"icon-lg":`size-10`}},defaultVariants:{variant:`default`,size:`default`}});function gg({className:e,variant:t=`default`,size:n=`default`,asChild:r=!1,...i}){let a=r?Ft:`button`;return(0,w.jsx)(a,{"data-slot":`button`,"data-variant":t,"data-size":n,className:Dt(hg({variant:t,size:n,className:e})),...i})}function _g({className:e,type:t,...n}){return(0,w.jsx)(`input`,{type:t,"data-slot":`input`,className:Dt(`h-9 w-full min-w-0 rounded-none border border-input bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none selection:bg-primary selection:text-primary-foreground file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm dark:bg-input/30`,`focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50`,`aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40`,e),...n})}function vg({...e}){return(0,w.jsx)(dc,{"data-slot":`select`,...e})}function yg({...e}){return(0,w.jsx)(hc,{"data-slot":`select-value`,...e})}function bg({className:e,size:t=`default`,children:n,...r}){return(0,w.jsxs)(pc,{"data-slot":`select-trigger`,"data-size":t,className:Dt(`flex w-fit items-center justify-between gap-2 rounded-none border border-input bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[placeholder]:text-muted-foreground data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground`,e),...r,children:[n,(0,w.jsx)(gc,{asChild:!0,children:(0,w.jsx)(F,{className:`size-4 opacity-50`})})]})}function xg({className:e,children:t,position:n=`item-aligned`,align:r=`center`,...i}){return(0,w.jsx)(yc,{children:(0,w.jsxs)(xc,{"data-slot":`select-content`,className:Dt(`relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-none border bg-popover text-popover-foreground shadow-md data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95`,n===`popper`&&`data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1`,e),position:n,align:r,...i,children:[(0,w.jsx)(Cg,{}),(0,w.jsx)(Nc,{className:Dt(`p-1`,n===`popper`&&`h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1`),children:t}),(0,w.jsx)(wg,{})]})})}function Sg({className:e,children:t,...n}){return(0,w.jsxs)(zc,{"data-slot":`select-item`,className:Dt(`relative flex w-full cursor-default items-center gap-2 rounded-none py-1.5 pr-8 pl-2 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2`,e),...n,children:[(0,w.jsx)(`span`,{"data-slot":`select-item-indicator`,className:`absolute right-2 flex size-3.5 items-center justify-center`,children:(0,w.jsx)(Uc,{children:(0,w.jsx)(ee,{className:`size-4`})})}),(0,w.jsx)(Vc,{children:t})]})}function Cg({className:e,...t}){return(0,w.jsx)(Gc,{"data-slot":`select-scroll-up-button`,className:Dt(`flex cursor-default items-center justify-center py-1`,e),...t,children:(0,w.jsx)(ne,{className:`size-4`})})}function wg({className:e,...t}){return(0,w.jsx)(qc,{"data-slot":`select-scroll-down-button`,className:Dt(`flex cursor-default items-center justify-center py-1`,e),...t,children:(0,w.jsx)(F,{className:`size-4`})})}function Tg({className:e,...t}){return(0,w.jsx)(fl,{className:Dt(`peer inline-flex h-5 w-9 shrink-0 items-center rounded-full border border-transparent bg-input outline-none transition-colors focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:opacity-50 data-[state=checked]:bg-primary`,e),...t,children:(0,w.jsx)(ml,{className:`pointer-events-none block size-4 rounded-full bg-background transition-transform data-[state=checked]:translate-x-[1.05rem] data-[state=unchecked]:translate-x-0.5`})})}function Eg({index:e,view:t,onChange:n}){let{outputs:r}=e.config,i=e.config.renderers.filter(e=>e.id!==t.ref),a=new Set(t.compared),o=i.filter(e=>e.enabled!==!1).map(e=>e.id),s=e=>{let t=i.filter(t=>e.has(t.id)).map(e=>e.id);n({renderers:t.join(`,`)===o.join(`,`)?void 0:t.join(`,`)||`-`})},c=e=>{let t=new Set(a);t.has(e)?t.delete(e):t.add(e),s(t)};return(0,w.jsxs)(w.Fragment,{children:[i.length>0?(0,w.jsxs)(`details`,{className:`relative shrink-0 text-sm`,children:[(0,w.jsxs)(`summary`,{className:`cursor-pointer rounded-md border border-input px-3 py-2`,children:[`Renderers (`,a.size,`/`,i.length,`)`]}),(0,w.jsxs)(`div`,{className:`absolute right-0 z-50 mt-1 min-w-48 space-y-1 rounded-md border border-border bg-card p-2 shadow-lg`,children:[(0,w.jsx)(`button`,{className:`block w-full px-2 py-1 text-left hover:bg-muted`,onClick:()=>s(new Set(i.map(e=>e.id))),type:`button`,children:`All renderers`}),i.map(e=>(0,w.jsxs)(`label`,{className:`flex cursor-pointer items-center gap-2 rounded px-2 py-1 hover:bg-muted`,children:[(0,w.jsx)(`input`,{checked:a.has(e.id),onChange:()=>c(e.id),type:`checkbox`}),e.label??e.id]},e.id))]})]}):null,r.length>1?(0,w.jsx)(Og,{label:`Output`,value:t.output,options:r.map(e=>({value:e.id,label:e.label??e.id})),onChange:e=>n({output:e})}):null,t.references.length>1?(0,w.jsx)(Og,{label:`Reference`,value:t.ref,options:t.references.map(e=>({value:e,label:t.label(e)})),onChange:e=>n({ref:e})}):null,(0,w.jsxs)(`label`,{htmlFor:`show-deltas`,className:`flex shrink-0 items-center gap-2 text-sm text-muted-foreground`,children:[(0,w.jsx)(Tg,{"aria-label":`Show delta images`,checked:t.showDeltas,onCheckedChange:e=>n({deltas:e})}),`Deltas`]})]})}function Dg({value:e,onChange:t}){return(0,w.jsxs)(vg,{onValueChange:e=>t(s({sort:e}).sort),value:e,children:[(0,w.jsxs)(bg,{"aria-label":`Sort scenes`,className:`shrink-0`,title:`Sort`,children:[(0,w.jsx)(P,{}),(0,w.jsx)(yg,{children:p.find(t=>t.value===e)?.label})]}),(0,w.jsx)(xg,{children:p.map(e=>(0,w.jsx)(Sg,{value:e.value,children:e.label},e.value))})]})}function Og({label:e,value:t,options:n,onChange:r}){return(0,w.jsxs)(vg,{onValueChange:r,value:t,children:[(0,w.jsx)(bg,{"aria-label":e,className:`shrink-0`,title:e,children:(0,w.jsx)(yg,{children:n.find(e=>e.value===t)?.label})}),(0,w.jsx)(xg,{children:n.map(e=>(0,w.jsx)(Sg,{value:e.value,children:e.label},e.value))})]})}var kg=l(`__root__`),Ag=l(`/`);function jg({path:e,readme:t}){let{index:r,hashes:i,scenes:o}=kg.useLoaderData(),s=Ag.useSearch(),l=o.find(t=>t.path===e),f=n({from:`/`});if(!l)throw S();let p=d(r,s,i),h=p.compared,g=y(r,l,p);return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(Tl,{logo:r.config.logo,scenePath:l.path,search:s,title:r.config.title,children:(0,w.jsx)(Eg,{index:r,onChange:e=>void f({replace:!0,search:t=>({...t,...e})}),view:p})}),(0,w.jsxs)(`div`,{className:`mx-auto flex w-full max-w-[1120px] flex-col gap-6 px-4 py-6 sm:px-6`,children:[(0,w.jsx)(`h1`,{className:`text-xl font-semibold`,children:l.title}),t?(0,w.jsx)(dg,{children:t}):null,(0,w.jsx)(`section`,{className:`grid gap-4 md:grid-cols-4`,children:[p.ref,...h].map(e=>(0,w.jsxs)(`figure`,{children:[e===p.ref?(0,w.jsx)(fg,{alt:e,size:g,src:a(l,p,e)}):(0,w.jsx)(c,{hash:`vs-${e}`,search:{...s,scene:l.path},to:`/`,children:(0,w.jsx)(fg,{alt:e,size:g,src:a(l,p,e)})}),(0,w.jsxs)(`figcaption`,{className:`mt-1 text-center text-sm text-muted-foreground`,children:[p.label(e),e===p.ref?` (reference)`:``]})]},e))}),h.map(e=>(0,w.jsx)(Mg,{delta:p.showDeltas?u(r,l,p,e):void 0,image:a(l,p,e),id:`vs-${e}`,label:p.label(e),metrics:m(r,l,p,e),reference:a(l,p,p.ref),refLabel:p.label(p.ref),scenePath:l.path,search:s,showDelta:p.showDeltas,size:g},e))]})]})}function Mg({id:e,scenePath:t,search:n,label:i,refLabel:a,reference:o,image:s,delta:l,showDelta:u,metrics:d,size:f}){let[p,m]=(0,C.useState)(50);return(0,w.jsxs)(`section`,{children:[(0,w.jsxs)(T,{anchor:(0,w.jsx)(c,{"aria-label":`Link to ${a} vs ${i}`,hash:e,search:{...n,scene:t},to:`/`,children:`#`}),as:`h2`,className:`mb-2 font-semibold`,id:e,children:[a,` vs `,i]}),(0,w.jsxs)(`div`,{className:`grid gap-4 ${u?`md:grid-cols-2`:``}`,children:[(0,w.jsxs)(`figure`,{children:[o&&s?(0,w.jsxs)(`div`,{className:`relative select-none`,children:[(0,w.jsx)(`img`,{alt:i,className:`block w-full border border-border`,decoding:`async`,loading:`lazy`,src:s}),(0,w.jsx)(`img`,{alt:a,className:`absolute inset-0 block w-full border border-border`,decoding:`async`,height:f?.height,loading:`lazy`,src:o,width:f?.width,style:{clipPath:`inset(0 ${100-p}% 0 0)`}}),(0,w.jsx)(`div`,{className:`pointer-events-none absolute inset-y-0 w-[3px] -translate-x-1/2 bg-blue-500`,style:{left:`${p}%`}}),(0,w.jsx)(`input`,{"aria-label":`Compare split for ${i}`,className:`absolute inset-0 h-full w-full cursor-ew-resize opacity-0`,max:100,min:0,onChange:e=>m(Number(e.currentTarget.value)),type:`range`,value:p})]}):(0,w.jsx)(fg,{alt:`${i} comparison`,size:f,unavailable:!0}),(0,w.jsxs)(`figcaption`,{className:`mt-1 text-center text-sm text-muted-foreground`,children:[a,` (left) / `,i,` (right) — drag to swipe`]})]}),u?(0,w.jsxs)(`figure`,{children:[(0,w.jsx)(fg,{alt:`${i} delta`,size:f,src:l,unavailable:!o||!s}),(0,w.jsxs)(`figcaption`,{className:`mt-1 text-center text-sm text-muted-foreground`,children:[i,` delta`]})]}):null]}),(0,w.jsx)(`div`,{className:`mt-3`,children:d?(0,w.jsxs)(`dl`,{className:`grid max-w-md grid-cols-2 gap-x-4 gap-y-1 p-2 font-mono text-sm ${_(d)}`,children:[(0,w.jsx)(`dt`,{children:`PSNR (dB)`}),(0,w.jsx)(`dd`,{children:r(d.psnr)})]}):(0,w.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:"No metrics yet. Run `fidelity-kit process`."})})]})}var Ng=l(`__root__`);function Pg(){let e=v.useLoaderData(),{scene:t}=v.useSearch();return t?(0,w.jsx)(jg,{path:t,readme:e}):(0,w.jsx)(Fg,{preamble:e})}function Fg({preamble:e}){let{index:t,hashes:r,scenes:i}=Ng.useLoaderData(),a=v.useSearch(),s=n({from:v.fullPath}),c=e=>void s({replace:!0,search:t=>({...t,...e})}),l=d(t,a,r),u=o(t,i,a,l),[f,p]=(0,C.useState)(a.q??``),m=g(i),h=a.tags?.split(`,`)??[];(0,C.useEffect)(()=>{let e=window.setTimeout(()=>{let e=f.trim()?f:void 0;e!==a.q&&c({q:e})},300);return()=>window.clearTimeout(e)});let _=e=>{let t=h.includes(e)?h.filter(t=>t!==e):[...h,e];c({tags:t.length?t.join(`,`):void 0})};return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsxs)(Tl,{logo:t.config.logo,search:a,title:t.config.title,children:[(0,w.jsx)(_g,{"aria-label":`Filter scenes`,className:`md:w-64`,onChange:e=>p(e.currentTarget.value),placeholder:`Scene Filter`,type:`text`,value:f}),(0,w.jsx)(Dg,{onChange:e=>c({sort:e}),value:a.sort??`name`}),(0,w.jsx)(Eg,{index:t,onChange:c,view:l}),(0,w.jsxs)(`span`,{className:`shrink-0 text-sm text-muted-foreground`,children:[u.length,`/`,i.length]})]}),(0,w.jsxs)(`div`,{className:`flex w-full flex-col gap-6 px-4 py-6 sm:px-6`,children:[e?(0,w.jsx)(dg,{children:e}):null,m.length?(0,w.jsx)(`div`,{className:`flex flex-wrap gap-2`,children:m.map(e=>(0,w.jsx)(gg,{onClick:()=>_(e),size:`sm`,variant:h.includes(e)?`default`:`outline`,children:e},e))}):null,(0,w.jsx)(`section`,{children:u.length?u.map((e,n)=>(0,w.jsxs)(`div`,{children:[Ig(e)===Ig(u[n-1])?null:(0,w.jsx)(`h2`,{className:`mt-6 border-b border-border pb-1 text-sm font-semibold uppercase tracking-wide text-muted-foreground`,children:Ig(e)||`Scenes`}),(0,w.jsx)(Lg,{index:t,scene:e,search:a,view:l})]},e.path)):(0,w.jsx)(`div`,{className:`border border-border bg-muted/20 px-4 py-8 text-center text-sm text-muted-foreground`,children:i.length===0?"No scenes found. Run `fidelity-kit process <root>`.":`No scenes match.`})})]})]})}var Ig=e=>e?e.path.split(`/`).slice(0,-1).join(` / `):void 0;function Lg({index:e,scene:t,search:n,view:i}){let o=i.compared,s=y(e,t,i),l=i.hashes[t.path];return(0,w.jsxs)(`article`,{className:`border-b border-border py-4 last:border-b-0 ${l?`reloaded`:``}`,style:{contentVisibility:`auto`,containIntrinsicSize:`auto 420px`},children:[(0,w.jsxs)(`div`,{className:`flex flex-wrap items-center gap-x-3 gap-y-1`,children:[(0,w.jsx)(T,{anchor:(0,w.jsx)(c,{"aria-label":`Link to ${t.title}`,hash:t.path,search:n,to:`/`,children:`#`}),as:`h3`,className:`text-base font-semibold`,id:t.path,children:(0,w.jsx)(c,{search:{...n,scene:t.path},to:`/`,children:t.title})}),t.tags.map(e=>(0,w.jsx)(`span`,{className:`rounded-full bg-muted px-2 py-0.5 text-xs text-muted-foreground`,children:e},e))]}),(0,w.jsxs)(`div`,{className:`mt-3 grid items-center gap-x-2 gap-y-1 text-xs text-muted-foreground`,style:{gridTemplateColumns:`auto repeat(${o.length+1}, minmax(0, 1fr))`},children:[(0,w.jsx)(`span`,{}),(0,w.jsxs)(`span`,{className:`truncate text-center`,children:[i.label(i.ref),` (reference)`]}),o.map(e=>(0,w.jsx)(`span`,{className:`truncate text-center`,children:i.label(e)},e)),(0,w.jsx)(`span`,{className:`text-right`,children:`Render`}),(0,w.jsx)(Rg,{scene:t,search:n,children:(0,w.jsx)(fg,{alt:`${t.title}: ${i.ref}`,size:s,src:a(t,i,i.ref)})}),o.map(e=>(0,w.jsx)(Rg,{scene:t,search:n,hash:`vs-${e}`,children:(0,w.jsx)(fg,{alt:`${t.title}: ${e}`,size:s,src:a(t,i,e)})},e)),i.showDeltas?(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(`span`,{className:`text-right`,children:`Delta`}),(0,w.jsx)(`span`,{}),o.map(r=>(0,w.jsx)(Rg,{scene:t,search:n,hash:`vs-${r}`,children:(0,w.jsx)(fg,{alt:`${t.title}: ${r} delta`,unavailable:!a(t,i,i.ref)||!a(t,i,r),size:s,src:u(e,t,i,r)})},r))]}):null,(0,w.jsx)(`span`,{className:`text-right`,children:`Metrics`}),(0,w.jsx)(`span`,{}),o.map(n=>{let a=m(e,t,i,n);return(0,w.jsxs)(`dl`,{className:`grid grid-cols-2 gap-x-2 self-stretch p-2 font-mono text-xs ${_(a)}`,children:[(0,w.jsx)(`dt`,{children:`PSNR`}),(0,w.jsx)(`dd`,{className:`text-right`,children:a?r(a.psnr):`–`})]},n)})]})]},l)}function Rg({scene:e,search:t,hash:n,children:r}){return(0,w.jsx)(c,{hash:n,search:{...t,scene:e.path},to:`/`,children:r})}export{Pg as component};
package/viewer/index.html CHANGED
@@ -4,8 +4,8 @@
4
4
  <meta charset="utf-8" />
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1" />
6
6
  <title>Fidelity</title>
7
- <script type="module" crossorigin src="./assets/index-D3r8erGw.js"></script>
8
- <link rel="stylesheet" crossorigin href="./assets/index-OJNXD4i8.css">
7
+ <script type="module" crossorigin src="./assets/index-BdihgclC.js"></script>
8
+ <link rel="stylesheet" crossorigin href="./assets/index-DPipxZIc.css">
9
9
  </head>
10
10
  <body class="min-h-screen antialiased">
11
11
  <div id="root"></div>