@bodyhc/blazeui 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/blaze-ui.es.js +5579 -5576
- package/dist/blaze-ui.umd.js +31 -31
- package/package.json +1 -1
package/dist/blaze-ui.umd.js
CHANGED
|
@@ -1,69 +1,69 @@
|
|
|
1
|
-
(function(E,p){typeof exports=="object"&&typeof module<"u"?p(exports,require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom"],p):(E=typeof globalThis<"u"?globalThis:E||self,p(E.BlazeUI={},E.jsxRuntime,E.React,E.ReactDOM))})(this,function(E,p,P,zl){"use strict";function Wl(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const u=Wl(P),Tn=Wl(zl);function Hl(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Hl(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function jl(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Hl(e))&&(r&&(r+=" "),r+=t);return r}const hs="-",T0=e=>{const t=N0(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:i=>{const a=i.split(hs);return a[0]===""&&a.length!==1&&a.shift(),Ul(a,t)||A0(i)},getConflictingClassGroupIds:(i,a)=>{const l=n[i]||[];return a&&r[i]?[...l,...r[i]]:l}}},Ul=(e,t)=>{var i;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?Ul(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const s=e.join(hs);return(i=t.validators.find(({validator:a})=>a(s)))==null?void 0:i.classGroupId},Gl=/^\[(.+)\]$/,A0=e=>{if(Gl.test(e)){const t=Gl.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},N0=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return I0(Object.entries(e.classGroups),n).forEach(([s,i])=>{ms(i,r,s,t)}),r},ms=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const s=o===""?t:Kl(t,o);s.classGroupId=n;return}if(typeof o=="function"){if(M0(o)){ms(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([s,i])=>{ms(i,Kl(t,s),n,r)})})},Kl=(e,t)=>{let n=e;return t.split(hs).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},M0=e=>e.isThemeGetter,I0=(e,t)=>t?e.map(([n,r])=>{const o=r.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([i,a])=>[t+i,a])):s);return[n,o]}):e,D0=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(s,i)=>{n.set(s,i),t++,t>e&&(t=0,r=n,n=new Map)};return{get(s){let i=n.get(s);if(i!==void 0)return i;if((i=r.get(s))!==void 0)return o(s,i),i},set(s,i){n.has(s)?n.set(s,i):o(s,i)}}},Yl="!",_0=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,o=t[0],s=t.length,i=a=>{const l=[];let c=0,d=0,f;for(let v=0;v<a.length;v++){let b=a[v];if(c===0){if(b===o&&(r||a.slice(v,v+s)===t)){l.push(a.slice(d,v)),d=v+s;continue}if(b==="/"){f=v;continue}}b==="["?c++:b==="]"&&c--}const h=l.length===0?a:a.substring(d),m=h.startsWith(Yl),y=m?h.substring(1):h,g=f&&f>d?f-d:void 0;return{modifiers:l,hasImportantModifier:m,baseClassName:y,maybePostfixModifierPosition:g}};return n?a=>n({className:a,parseClassName:i}):i},k0=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},O0=e=>({cache:D0(e.cacheSize),parseClassName:_0(e),...T0(e)}),L0=/\s+/,V0=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,s=[],i=e.trim().split(L0);let a="";for(let l=i.length-1;l>=0;l-=1){const c=i[l],{modifiers:d,hasImportantModifier:f,baseClassName:h,maybePostfixModifierPosition:m}=n(c);let y=!!m,g=r(y?h.substring(0,m):h);if(!g){if(!y){a=c+(a.length>0?" "+a:a);continue}if(g=r(h),!g){a=c+(a.length>0?" "+a:a);continue}y=!1}const v=k0(d).join(":"),b=f?v+Yl:v,w=b+g;if(s.includes(w))continue;s.push(w);const x=o(g,y);for(let S=0;S<x.length;++S){const C=x[S];s.push(b+C)}a=c+(a.length>0?" "+a:a)}return a};function $0(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=Xl(t))&&(r&&(r+=" "),r+=n);return r}const Xl=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Xl(e[r]))&&(n&&(n+=" "),n+=t);return n};function F0(e,...t){let n,r,o,s=i;function i(l){const c=t.reduce((d,f)=>f(d),e());return n=O0(c),r=n.cache.get,o=n.cache.set,s=a,a(l)}function a(l){const c=r(l);if(c)return c;const d=V0(l,n);return o(l,d),d}return function(){return s($0.apply(null,arguments))}}const ce=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},ql=/^\[(?:([a-z-]+):)?(.+)\]$/i,R0=/^\d+\/\d+$/,B0=new Set(["px","full","screen"]),z0=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,W0=/\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$/,H0=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,j0=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,U0=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,it=e=>Ut(e)||B0.has(e)||R0.test(e),ut=e=>Gt(e,"length",Q0),Ut=e=>!!e&&!Number.isNaN(Number(e)),gs=e=>Gt(e,"number",Ut),An=e=>!!e&&Number.isInteger(Number(e)),G0=e=>e.endsWith("%")&&Ut(e.slice(0,-1)),oe=e=>ql.test(e),dt=e=>z0.test(e),K0=new Set(["length","size","percentage"]),Y0=e=>Gt(e,K0,Zl),X0=e=>Gt(e,"position",Zl),q0=new Set(["image","url"]),Z0=e=>Gt(e,q0,tw),J0=e=>Gt(e,"",ew),Nn=()=>!0,Gt=(e,t,n)=>{const r=ql.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},Q0=e=>W0.test(e)&&!H0.test(e),Zl=()=>!1,ew=e=>j0.test(e),tw=e=>U0.test(e),nw=F0(()=>{const e=ce("colors"),t=ce("spacing"),n=ce("blur"),r=ce("brightness"),o=ce("borderColor"),s=ce("borderRadius"),i=ce("borderSpacing"),a=ce("borderWidth"),l=ce("contrast"),c=ce("grayscale"),d=ce("hueRotate"),f=ce("invert"),h=ce("gap"),m=ce("gradientColorStops"),y=ce("gradientColorStopPositions"),g=ce("inset"),v=ce("margin"),b=ce("opacity"),w=ce("padding"),x=ce("saturate"),S=ce("scale"),C=ce("sepia"),T=ce("skew"),A=ce("space"),N=ce("translate"),I=()=>["auto","contain","none"],O=()=>["auto","hidden","clip","visible","scroll"],L=()=>["auto",oe,t],V=()=>[oe,t],U=()=>["",it,ut],_=()=>["auto",Ut,oe],K=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],H=()=>["solid","dashed","dotted","double","none"],B=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],$=()=>["start","end","center","between","around","evenly","stretch"],F=()=>["","0",oe],ne=()=>["auto","avoid","all","avoid-page","page","left","right","column"],re=()=>[Ut,oe];return{cacheSize:500,separator:":",theme:{colors:[Nn],spacing:[it,ut],blur:["none","",dt,oe],brightness:re(),borderColor:[e],borderRadius:["none","","full",dt,oe],borderSpacing:V(),borderWidth:U(),contrast:re(),grayscale:F(),hueRotate:re(),invert:F(),gap:V(),gradientColorStops:[e],gradientColorStopPositions:[G0,ut],inset:L(),margin:L(),opacity:re(),padding:V(),saturate:re(),scale:re(),sepia:F(),skew:re(),space:V(),translate:V()},classGroups:{aspect:[{aspect:["auto","square","video",oe]}],container:["container"],columns:[{columns:[dt]}],"break-after":[{"break-after":ne()}],"break-before":[{"break-before":ne()}],"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"],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:[...K(),oe]}],overflow:[{overflow:O()}],"overflow-x":[{"overflow-x":O()}],"overflow-y":[{"overflow-y":O()}],overscroll:[{overscroll:I()}],"overscroll-x":[{"overscroll-x":I()}],"overscroll-y":[{"overscroll-y":I()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",An,oe]}],basis:[{basis:L()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",oe]}],grow:[{grow:F()}],shrink:[{shrink:F()}],order:[{order:["first","last","none",An,oe]}],"grid-cols":[{"grid-cols":[Nn]}],"col-start-end":[{col:["auto",{span:["full",An,oe]},oe]}],"col-start":[{"col-start":_()}],"col-end":[{"col-end":_()}],"grid-rows":[{"grid-rows":[Nn]}],"row-start-end":[{row:["auto",{span:[An,oe]},oe]}],"row-start":[{"row-start":_()}],"row-end":[{"row-end":_()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",oe]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",oe]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal",...$()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...$(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...$(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[w]}],px:[{px:[w]}],py:[{py:[w]}],ps:[{ps:[w]}],pe:[{pe:[w]}],pt:[{pt:[w]}],pr:[{pr:[w]}],pb:[{pb:[w]}],pl:[{pl:[w]}],m:[{m:[v]}],mx:[{mx:[v]}],my:[{my:[v]}],ms:[{ms:[v]}],me:[{me:[v]}],mt:[{mt:[v]}],mr:[{mr:[v]}],mb:[{mb:[v]}],ml:[{ml:[v]}],"space-x":[{"space-x":[A]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[A]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",oe,t]}],"min-w":[{"min-w":[oe,t,"min","max","fit"]}],"max-w":[{"max-w":[oe,t,"none","full","min","max","fit","prose",{screen:[dt]},dt]}],h:[{h:[oe,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[oe,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[oe,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[oe,t,"auto","min","max","fit"]}],"font-size":[{text:["base",dt,ut]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",gs]}],"font-family":[{font:[Nn]}],"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:["tighter","tight","normal","wide","wider","widest",oe]}],"line-clamp":[{"line-clamp":["none",Ut,gs]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",it,oe]}],"list-image":[{"list-image":["none",oe]}],"list-style-type":[{list:["none","disc","decimal",oe]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[b]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[b]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...H(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",it,ut]}],"underline-offset":[{"underline-offset":["auto",it,oe]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:V()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",oe]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",oe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[b]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...K(),X0]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Y0]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Z0]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[y]}],"gradient-via-pos":[{via:[y]}],"gradient-to-pos":[{to:[y]}],"gradient-from":[{from:[m]}],"gradient-via":[{via:[m]}],"gradient-to":[{to:[m]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[b]}],"border-style":[{border:[...H(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[b]}],"divide-style":[{divide:H()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...H()]}],"outline-offset":[{"outline-offset":[it,oe]}],"outline-w":[{outline:[it,ut]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:U()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[b]}],"ring-offset-w":[{"ring-offset":[it,ut]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",dt,J0]}],"shadow-color":[{shadow:[Nn]}],opacity:[{opacity:[b]}],"mix-blend":[{"mix-blend":[...B(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":B()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",dt,oe]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[f]}],saturate:[{saturate:[x]}],sepia:[{sepia:[C]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[b]}],"backdrop-saturate":[{"backdrop-saturate":[x]}],"backdrop-sepia":[{"backdrop-sepia":[C]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",oe]}],duration:[{duration:re()}],ease:[{ease:["linear","in","out","in-out",oe]}],delay:[{delay:re()}],animate:[{animate:["none","spin","ping","pulse","bounce",oe]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[An,oe]}],"translate-x":[{"translate-x":[N]}],"translate-y":[{"translate-y":[N]}],"skew-x":[{"skew-x":[T]}],"skew-y":[{"skew-y":[T]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",oe]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],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",oe]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":V()}],"scroll-mx":[{"scroll-mx":V()}],"scroll-my":[{"scroll-my":V()}],"scroll-ms":[{"scroll-ms":V()}],"scroll-me":[{"scroll-me":V()}],"scroll-mt":[{"scroll-mt":V()}],"scroll-mr":[{"scroll-mr":V()}],"scroll-mb":[{"scroll-mb":V()}],"scroll-ml":[{"scroll-ml":V()}],"scroll-p":[{"scroll-p":V()}],"scroll-px":[{"scroll-px":V()}],"scroll-py":[{"scroll-py":V()}],"scroll-ps":[{"scroll-ps":V()}],"scroll-pe":[{"scroll-pe":V()}],"scroll-pt":[{"scroll-pt":V()}],"scroll-pr":[{"scroll-pr":V()}],"scroll-pb":[{"scroll-pb":V()}],"scroll-pl":[{"scroll-pl":V()}],"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",oe]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[it,ut,gs]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}});function M(...e){return nw(jl(e))}const rw={theme:"system",setTheme:()=>null},vs=P.createContext(rw),ys=()=>{const e=P.useContext(vs);if(e===void 0)throw new Error("useTheme must be used within a ThemeProvider");return e};function ow({children:e,defaultTheme:t="system",storageKey:n="vite-ui-theme",...r}){const[o,s]=P.useState(()=>localStorage.getItem(n)||t);P.useEffect(()=>{const a=window.document.documentElement;if(a.classList.remove("light","dark"),o==="system"){const l=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";a.classList.add(l);return}a.classList.add(o)},[o]);const i={theme:o,setTheme:a=>{localStorage.setItem(n,a),s(a)}};return p.jsx(vs.Provider,{...r,value:i,children:e})}function Jl(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Ce(...e){return t=>{let n=!1;const r=e.map(o=>{const s=Jl(o,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let o=0;o<r.length;o++){const s=r[o];typeof s=="function"?s():Jl(e[o],null)}}}}function J(...e){return u.useCallback(Ce(...e),e)}var sw=Symbol.for("react.lazy"),Nr=u[" use ".trim().toString()];function iw(e){return typeof e=="object"&&e!==null&&"then"in e}function Ql(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===sw&&"_payload"in e&&iw(e._payload)}function Mn(e){const t=lw(e),n=u.forwardRef((r,o)=>{let{children:s,...i}=r;Ql(s)&&typeof Nr=="function"&&(s=Nr(s._payload));const a=u.Children.toArray(s),l=a.find(uw);if(l){const c=l.props.children,d=a.map(f=>f===l?u.Children.count(c)>1?u.Children.only(null):u.isValidElement(c)?c.props.children:null:f);return p.jsx(t,{...i,ref:o,children:u.isValidElement(c)?u.cloneElement(c,void 0,d):null})}return p.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}var aw=Mn("Slot");function lw(e){const t=u.forwardRef((n,r)=>{let{children:o,...s}=n;if(Ql(o)&&typeof Nr=="function"&&(o=Nr(o._payload)),u.isValidElement(o)){const i=fw(o),a=dw(s,o.props);return o.type!==u.Fragment&&(a.ref=r?Ce(r,i):i),u.cloneElement(o,a)}return u.Children.count(o)>1?u.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var cw=Symbol("radix.slottable");function uw(e){return u.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===cw}function dw(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...a)=>{const l=s(...a);return o(...a),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function fw(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}const ec=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,tc=jl,Kt=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return tc(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:s}=t,i=Object.keys(o).map(c=>{const d=n==null?void 0:n[c],f=s==null?void 0:s[c];if(d===null)return null;const h=ec(d)||ec(f);return o[c][h]}),a=n&&Object.entries(n).reduce((c,d)=>{let[f,h]=d;return h===void 0||(c[f]=h),c},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((c,d)=>{let{class:f,className:h,...m}=d;return Object.entries(m).every(y=>{let[g,v]=y;return Array.isArray(v)?v.includes({...s,...a}[g]):{...s,...a}[g]===v})?[...c,f,h]:c},[]);return tc(e,i,l,n==null?void 0:n.class,n==null?void 0:n.className)},bs=Kt("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),nc=u.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},s)=>{const i=r?aw:"button";return p.jsx(i,{className:M(bs({variant:t,size:n,className:e})),ref:s,...o})});nc.displayName="Button";const rc=u.forwardRef(({className:e,type:t,...n},r)=>p.jsx("input",{type:t,className:M("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:r,...n}));rc.displayName="Input";const oc=u.forwardRef(({className:e,...t},n)=>p.jsx("textarea",{className:M("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:n,...t}));oc.displayName="Textarea";var pw=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],hw=pw.reduce((e,t)=>{const n=Mn(`Primitive.${t}`),r=u.forwardRef((o,s)=>{const{asChild:i,...a}=o,l=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(l,{...a,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),mw="Label",sc=u.forwardRef((e,t)=>p.jsx(hw.label,{...e,ref:t,onMouseDown:n=>{var o;n.target.closest("button, input, select, textarea")||((o=e.onMouseDown)==null||o.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));sc.displayName=mw;var ic=sc;const gw=Kt("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),ac=u.forwardRef(({className:e,...t},n)=>p.jsx(ic,{ref:n,className:M(gw(),e),...t}));ac.displayName=ic.displayName;function vw(e,t){const n=u.createContext(t),r=s=>{const{children:i,...a}=s,l=u.useMemo(()=>a,Object.values(a));return p.jsx(n.Provider,{value:l,children:i})};r.displayName=e+"Provider";function o(s){const i=u.useContext(n);if(i)return i;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[r,o]}function ye(e,t=[]){let n=[];function r(s,i){const a=u.createContext(i),l=n.length;n=[...n,i];const c=f=>{var b;const{scope:h,children:m,...y}=f,g=((b=h==null?void 0:h[e])==null?void 0:b[l])||a,v=u.useMemo(()=>y,Object.values(y));return p.jsx(g.Provider,{value:v,children:m})};c.displayName=s+"Provider";function d(f,h){var g;const m=((g=h==null?void 0:h[e])==null?void 0:g[l])||a,y=u.useContext(m);if(y)return y;if(i!==void 0)return i;throw new Error(`\`${f}\` must be used within \`${s}\``)}return[c,d]}const o=()=>{const s=n.map(i=>u.createContext(i));return function(a){const l=(a==null?void 0:a[e])||s;return u.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return o.scopeName=e,[r,yw(o,...t)]}function yw(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const i=r.reduce((a,{useScope:l,scopeName:c})=>{const f=l(s)[`__scope${c}`];return{...a,...f}},{});return u.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function k(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}var pe=globalThis!=null&&globalThis.document?u.useLayoutEffect:()=>{},bw=u[" useInsertionEffect ".trim().toString()]||pe;function we({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,s,i]=ww({defaultProp:t,onChange:n}),a=e!==void 0,l=a?e:o;{const d=u.useRef(e!==void 0);u.useEffect(()=>{const f=d.current;f!==a&&console.warn(`${r} is changing from ${f?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=a},[a,r])}const c=u.useCallback(d=>{var f;if(a){const h=xw(d)?d(e):d;h!==e&&((f=i.current)==null||f.call(i,h))}else s(d)},[a,e,s,i]);return[l,c]}function ww({defaultProp:e,onChange:t}){const[n,r]=u.useState(e),o=u.useRef(n),s=u.useRef(t);return bw(()=>{s.current=t},[t]),u.useEffect(()=>{var i;o.current!==n&&((i=s.current)==null||i.call(s,n),o.current=n)},[n,o]),[n,r,s]}function xw(e){return typeof e=="function"}function In(e){const t=u.useRef({value:e,previous:e});return u.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function Dn(e){const[t,n]=u.useState(void 0);return pe(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let i,a;if("borderBoxSize"in s){const l=s.borderBoxSize,c=Array.isArray(l)?l[0]:l;i=c.inlineSize,a=c.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}function Sw(e,t){return u.useReducer((n,r)=>t[n][r]??n,e)}var ve=e=>{const{present:t,children:n}=e,r=Cw(t),o=typeof n=="function"?n({present:r.isPresent}):u.Children.only(n),s=J(r.ref,Ew(o));return typeof n=="function"||r.isPresent?u.cloneElement(o,{ref:s}):null};ve.displayName="Presence";function Cw(e){const[t,n]=u.useState(),r=u.useRef(null),o=u.useRef(e),s=u.useRef("none"),i=e?"mounted":"unmounted",[a,l]=Sw(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return u.useEffect(()=>{const c=Mr(r.current);s.current=a==="mounted"?c:"none"},[a]),pe(()=>{const c=r.current,d=o.current;if(d!==e){const h=s.current,m=Mr(c);e?l("MOUNT"):m==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(d&&h!==m?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),pe(()=>{if(t){let c;const d=t.ownerDocument.defaultView??window,f=m=>{const g=Mr(r.current).includes(CSS.escape(m.animationName));if(m.target===t&&g&&(l("ANIMATION_END"),!o.current)){const v=t.style.animationFillMode;t.style.animationFillMode="forwards",c=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=v)})}},h=m=>{m.target===t&&(s.current=Mr(r.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{d.clearTimeout(c),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:u.useCallback(c=>{r.current=c?getComputedStyle(c):null,n(c)},[])}}function Mr(e){return(e==null?void 0:e.animationName)||"none"}function Ew(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Pw(e){const t=Tw(e),n=u.forwardRef((r,o)=>{const{children:s,...i}=r,a=u.Children.toArray(s),l=a.find(Nw);if(l){const c=l.props.children,d=a.map(f=>f===l?u.Children.count(c)>1?u.Children.only(null):u.isValidElement(c)?c.props.children:null:f);return p.jsx(t,{...i,ref:o,children:u.isValidElement(c)?u.cloneElement(c,void 0,d):null})}return p.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function Tw(e){const t=u.forwardRef((n,r)=>{const{children:o,...s}=n;if(u.isValidElement(o)){const i=Iw(o),a=Mw(s,o.props);return o.type!==u.Fragment&&(a.ref=r?Ce(r,i):i),u.cloneElement(o,a)}return u.Children.count(o)>1?u.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Aw=Symbol("radix.slottable");function Nw(e){return u.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Aw}function Mw(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...a)=>{const l=s(...a);return o(...a),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function Iw(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Dw=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],W=Dw.reduce((e,t)=>{const n=Pw(`Primitive.${t}`),r=u.forwardRef((o,s)=>{const{asChild:i,...a}=o,l=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(l,{...a,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function ws(e,t){e&&Tn.flushSync(()=>e.dispatchEvent(t))}var Ir="Checkbox",[_w]=ye(Ir),[kw,xs]=_w(Ir);function Ow(e){const{__scopeCheckbox:t,checked:n,children:r,defaultChecked:o,disabled:s,form:i,name:a,onCheckedChange:l,required:c,value:d="on",internal_do_not_use_render:f}=e,[h,m]=we({prop:n,defaultProp:o??!1,onChange:l,caller:Ir}),[y,g]=u.useState(null),[v,b]=u.useState(null),w=u.useRef(!1),x=y?!!i||!!y.closest("form"):!0,S={checked:h,disabled:s,setChecked:m,control:y,setControl:g,name:a,form:i,value:d,hasConsumerStoppedPropagationRef:w,required:c,defaultChecked:ft(o)?!1:o,isFormControl:x,bubbleInput:v,setBubbleInput:b};return p.jsx(kw,{scope:t,...S,children:Lw(f)?f(S):r})}var lc="CheckboxTrigger",cc=u.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:n,...r},o)=>{const{control:s,value:i,disabled:a,checked:l,required:c,setControl:d,setChecked:f,hasConsumerStoppedPropagationRef:h,isFormControl:m,bubbleInput:y}=xs(lc,e),g=J(o,d),v=u.useRef(l);return u.useEffect(()=>{const b=s==null?void 0:s.form;if(b){const w=()=>f(v.current);return b.addEventListener("reset",w),()=>b.removeEventListener("reset",w)}},[s,f]),p.jsx(W.button,{type:"button",role:"checkbox","aria-checked":ft(l)?"mixed":l,"aria-required":c,"data-state":hc(l),"data-disabled":a?"":void 0,disabled:a,value:i,...r,ref:g,onKeyDown:k(t,b=>{b.key==="Enter"&&b.preventDefault()}),onClick:k(n,b=>{f(w=>ft(w)?!0:!w),y&&m&&(h.current=b.isPropagationStopped(),h.current||b.stopPropagation())})})});cc.displayName=lc;var Ss=u.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:r,checked:o,defaultChecked:s,required:i,disabled:a,value:l,onCheckedChange:c,form:d,...f}=e;return p.jsx(Ow,{__scopeCheckbox:n,checked:o,defaultChecked:s,disabled:a,required:i,onCheckedChange:c,name:r,form:d,value:l,internal_do_not_use_render:({isFormControl:h})=>p.jsxs(p.Fragment,{children:[p.jsx(cc,{...f,ref:t,__scopeCheckbox:n}),h&&p.jsx(pc,{__scopeCheckbox:n})]})})});Ss.displayName=Ir;var uc="CheckboxIndicator",dc=u.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...o}=e,s=xs(uc,n);return p.jsx(ve,{present:r||ft(s.checked)||s.checked===!0,children:p.jsx(W.span,{"data-state":hc(s.checked),"data-disabled":s.disabled?"":void 0,...o,ref:t,style:{pointerEvents:"none",...e.style}})})});dc.displayName=uc;var fc="CheckboxBubbleInput",pc=u.forwardRef(({__scopeCheckbox:e,...t},n)=>{const{control:r,hasConsumerStoppedPropagationRef:o,checked:s,defaultChecked:i,required:a,disabled:l,name:c,value:d,form:f,bubbleInput:h,setBubbleInput:m}=xs(fc,e),y=J(n,m),g=In(s),v=Dn(r);u.useEffect(()=>{const w=h;if(!w)return;const x=window.HTMLInputElement.prototype,C=Object.getOwnPropertyDescriptor(x,"checked").set,T=!o.current;if(g!==s&&C){const A=new Event("click",{bubbles:T});w.indeterminate=ft(s),C.call(w,ft(s)?!1:s),w.dispatchEvent(A)}},[h,g,s,o]);const b=u.useRef(ft(s)?!1:s);return p.jsx(W.input,{type:"checkbox","aria-hidden":!0,defaultChecked:i??b.current,required:a,disabled:l,name:c,value:d,form:f,...t,tabIndex:-1,ref:y,style:{...t.style,...v,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});pc.displayName=fc;function Lw(e){return typeof e=="function"}function ft(e){return e==="indeterminate"}function hc(e){return ft(e)?"indeterminate":e?"checked":"unchecked"}/**
|
|
1
|
+
(function(P,p){typeof exports=="object"&&typeof module<"u"?p(exports,require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom"],p):(P=typeof globalThis<"u"?globalThis:P||self,p(P.BlazeUI={},P.jsxRuntime,P.React,P.ReactDOM))})(this,function(P,p,E,Dl){"use strict";function _l(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const d=_l(E),Pn=_l(Dl);function kl(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=kl(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Ol(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=kl(e))&&(r&&(r+=" "),r+=t);return r}const us="-",w0=e=>{const t=S0(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:i=>{const a=i.split(us);return a[0]===""&&a.length!==1&&a.shift(),Ll(a,t)||x0(i)},getConflictingClassGroupIds:(i,a)=>{const l=n[i]||[];return a&&r[i]?[...l,...r[i]]:l}}},Ll=(e,t)=>{var i;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?Ll(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const s=e.join(us);return(i=t.validators.find(({validator:a})=>a(s)))==null?void 0:i.classGroupId},Vl=/^\[(.+)\]$/,x0=e=>{if(Vl.test(e)){const t=Vl.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},S0=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return E0(Object.entries(e.classGroups),n).forEach(([s,i])=>{ds(i,r,s,t)}),r},ds=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const s=o===""?t:$l(t,o);s.classGroupId=n;return}if(typeof o=="function"){if(C0(o)){ds(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([s,i])=>{ds(i,$l(t,s),n,r)})})},$l=(e,t)=>{let n=e;return t.split(us).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},C0=e=>e.isThemeGetter,E0=(e,t)=>t?e.map(([n,r])=>{const o=r.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([i,a])=>[t+i,a])):s);return[n,o]}):e,P0=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(s,i)=>{n.set(s,i),t++,t>e&&(t=0,r=n,n=new Map)};return{get(s){let i=n.get(s);if(i!==void 0)return i;if((i=r.get(s))!==void 0)return o(s,i),i},set(s,i){n.has(s)?n.set(s,i):o(s,i)}}},Fl="!",T0=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,o=t[0],s=t.length,i=a=>{const l=[];let c=0,u=0,f;for(let v=0;v<a.length;v++){let b=a[v];if(c===0){if(b===o&&(r||a.slice(v,v+s)===t)){l.push(a.slice(u,v)),u=v+s;continue}if(b==="/"){f=v;continue}}b==="["?c++:b==="]"&&c--}const h=l.length===0?a:a.substring(u),m=h.startsWith(Fl),y=m?h.substring(1):h,g=f&&f>u?f-u:void 0;return{modifiers:l,hasImportantModifier:m,baseClassName:y,maybePostfixModifierPosition:g}};return n?a=>n({className:a,parseClassName:i}):i},A0=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},N0=e=>({cache:P0(e.cacheSize),parseClassName:T0(e),...w0(e)}),M0=/\s+/,I0=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,s=[],i=e.trim().split(M0);let a="";for(let l=i.length-1;l>=0;l-=1){const c=i[l],{modifiers:u,hasImportantModifier:f,baseClassName:h,maybePostfixModifierPosition:m}=n(c);let y=!!m,g=r(y?h.substring(0,m):h);if(!g){if(!y){a=c+(a.length>0?" "+a:a);continue}if(g=r(h),!g){a=c+(a.length>0?" "+a:a);continue}y=!1}const v=A0(u).join(":"),b=f?v+Fl:v,w=b+g;if(s.includes(w))continue;s.push(w);const x=o(g,y);for(let S=0;S<x.length;++S){const C=x[S];s.push(b+C)}a=c+(a.length>0?" "+a:a)}return a};function D0(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=Rl(t))&&(r&&(r+=" "),r+=n);return r}const Rl=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Rl(e[r]))&&(n&&(n+=" "),n+=t);return n};function _0(e,...t){let n,r,o,s=i;function i(l){const c=t.reduce((u,f)=>f(u),e());return n=N0(c),r=n.cache.get,o=n.cache.set,s=a,a(l)}function a(l){const c=r(l);if(c)return c;const u=I0(l,n);return o(l,u),u}return function(){return s(D0.apply(null,arguments))}}const ae=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Bl=/^\[(?:([a-z-]+):)?(.+)\]$/i,k0=/^\d+\/\d+$/,O0=new Set(["px","full","screen"]),L0=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,V0=/\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$/,$0=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,F0=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,R0=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,rt=e=>Ht(e)||O0.has(e)||k0.test(e),it=e=>jt(e,"length",K0),Ht=e=>!!e&&!Number.isNaN(Number(e)),fs=e=>jt(e,"number",Ht),Tn=e=>!!e&&Number.isInteger(Number(e)),B0=e=>e.endsWith("%")&&Ht(e.slice(0,-1)),re=e=>Bl.test(e),at=e=>L0.test(e),z0=new Set(["length","size","percentage"]),W0=e=>jt(e,z0,zl),H0=e=>jt(e,"position",zl),j0=new Set(["image","url"]),U0=e=>jt(e,j0,X0),G0=e=>jt(e,"",Y0),An=()=>!0,jt=(e,t,n)=>{const r=Bl.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},K0=e=>V0.test(e)&&!$0.test(e),zl=()=>!1,Y0=e=>F0.test(e),X0=e=>R0.test(e),q0=_0(()=>{const e=ae("colors"),t=ae("spacing"),n=ae("blur"),r=ae("brightness"),o=ae("borderColor"),s=ae("borderRadius"),i=ae("borderSpacing"),a=ae("borderWidth"),l=ae("contrast"),c=ae("grayscale"),u=ae("hueRotate"),f=ae("invert"),h=ae("gap"),m=ae("gradientColorStops"),y=ae("gradientColorStopPositions"),g=ae("inset"),v=ae("margin"),b=ae("opacity"),w=ae("padding"),x=ae("saturate"),S=ae("scale"),C=ae("sepia"),T=ae("skew"),A=ae("space"),N=ae("translate"),I=()=>["auto","contain","none"],O=()=>["auto","hidden","clip","visible","scroll"],k=()=>["auto",re,t],L=()=>[re,t],W=()=>["",rt,it],F=()=>["auto",Ht,re],Y=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],U=()=>["solid","dashed","dotted","double","none"],H=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],V=()=>["start","end","center","between","around","evenly","stretch"],B=()=>["","0",re],ee=()=>["auto","avoid","all","avoid-page","page","left","right","column"],te=()=>[Ht,re];return{cacheSize:500,separator:":",theme:{colors:[An],spacing:[rt,it],blur:["none","",at,re],brightness:te(),borderColor:[e],borderRadius:["none","","full",at,re],borderSpacing:L(),borderWidth:W(),contrast:te(),grayscale:B(),hueRotate:te(),invert:B(),gap:L(),gradientColorStops:[e],gradientColorStopPositions:[B0,it],inset:k(),margin:k(),opacity:te(),padding:L(),saturate:te(),scale:te(),sepia:B(),skew:te(),space:L(),translate:L()},classGroups:{aspect:[{aspect:["auto","square","video",re]}],container:["container"],columns:[{columns:[at]}],"break-after":[{"break-after":ee()}],"break-before":[{"break-before":ee()}],"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"],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:[...Y(),re]}],overflow:[{overflow:O()}],"overflow-x":[{"overflow-x":O()}],"overflow-y":[{"overflow-y":O()}],overscroll:[{overscroll:I()}],"overscroll-x":[{"overscroll-x":I()}],"overscroll-y":[{"overscroll-y":I()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Tn,re]}],basis:[{basis:k()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",re]}],grow:[{grow:B()}],shrink:[{shrink:B()}],order:[{order:["first","last","none",Tn,re]}],"grid-cols":[{"grid-cols":[An]}],"col-start-end":[{col:["auto",{span:["full",Tn,re]},re]}],"col-start":[{"col-start":F()}],"col-end":[{"col-end":F()}],"grid-rows":[{"grid-rows":[An]}],"row-start-end":[{row:["auto",{span:[Tn,re]},re]}],"row-start":[{"row-start":F()}],"row-end":[{"row-end":F()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",re]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",re]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal",...V()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...V(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...V(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[w]}],px:[{px:[w]}],py:[{py:[w]}],ps:[{ps:[w]}],pe:[{pe:[w]}],pt:[{pt:[w]}],pr:[{pr:[w]}],pb:[{pb:[w]}],pl:[{pl:[w]}],m:[{m:[v]}],mx:[{mx:[v]}],my:[{my:[v]}],ms:[{ms:[v]}],me:[{me:[v]}],mt:[{mt:[v]}],mr:[{mr:[v]}],mb:[{mb:[v]}],ml:[{ml:[v]}],"space-x":[{"space-x":[A]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[A]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",re,t]}],"min-w":[{"min-w":[re,t,"min","max","fit"]}],"max-w":[{"max-w":[re,t,"none","full","min","max","fit","prose",{screen:[at]},at]}],h:[{h:[re,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[re,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[re,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[re,t,"auto","min","max","fit"]}],"font-size":[{text:["base",at,it]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",fs]}],"font-family":[{font:[An]}],"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:["tighter","tight","normal","wide","wider","widest",re]}],"line-clamp":[{"line-clamp":["none",Ht,fs]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",rt,re]}],"list-image":[{"list-image":["none",re]}],"list-style-type":[{list:["none","disc","decimal",re]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[b]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[b]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...U(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",rt,it]}],"underline-offset":[{"underline-offset":["auto",rt,re]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:L()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",re]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",re]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[b]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Y(),H0]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",W0]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},U0]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[y]}],"gradient-via-pos":[{via:[y]}],"gradient-to-pos":[{to:[y]}],"gradient-from":[{from:[m]}],"gradient-via":[{via:[m]}],"gradient-to":[{to:[m]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[b]}],"border-style":[{border:[...U(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[b]}],"divide-style":[{divide:U()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...U()]}],"outline-offset":[{"outline-offset":[rt,re]}],"outline-w":[{outline:[rt,it]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:W()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[b]}],"ring-offset-w":[{"ring-offset":[rt,it]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",at,G0]}],"shadow-color":[{shadow:[An]}],opacity:[{opacity:[b]}],"mix-blend":[{"mix-blend":[...H(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":H()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",at,re]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[f]}],saturate:[{saturate:[x]}],sepia:[{sepia:[C]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[b]}],"backdrop-saturate":[{"backdrop-saturate":[x]}],"backdrop-sepia":[{"backdrop-sepia":[C]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",re]}],duration:[{duration:te()}],ease:[{ease:["linear","in","out","in-out",re]}],delay:[{delay:te()}],animate:[{animate:["none","spin","ping","pulse","bounce",re]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[Tn,re]}],"translate-x":[{"translate-x":[N]}],"translate-y":[{"translate-y":[N]}],"skew-x":[{"skew-x":[T]}],"skew-y":[{"skew-y":[T]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",re]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],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",re]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":L()}],"scroll-mx":[{"scroll-mx":L()}],"scroll-my":[{"scroll-my":L()}],"scroll-ms":[{"scroll-ms":L()}],"scroll-me":[{"scroll-me":L()}],"scroll-mt":[{"scroll-mt":L()}],"scroll-mr":[{"scroll-mr":L()}],"scroll-mb":[{"scroll-mb":L()}],"scroll-ml":[{"scroll-ml":L()}],"scroll-p":[{"scroll-p":L()}],"scroll-px":[{"scroll-px":L()}],"scroll-py":[{"scroll-py":L()}],"scroll-ps":[{"scroll-ps":L()}],"scroll-pe":[{"scroll-pe":L()}],"scroll-pt":[{"scroll-pt":L()}],"scroll-pr":[{"scroll-pr":L()}],"scroll-pb":[{"scroll-pb":L()}],"scroll-pl":[{"scroll-pl":L()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",re]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[rt,it,fs]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}});function M(...e){return q0(Ol(e))}const Z0={theme:"system",setTheme:()=>null},ps=E.createContext(Z0),hs=()=>{const e=E.useContext(ps);if(e===void 0)throw new Error("useTheme must be used within a ThemeProvider");return e};function J0({children:e,defaultTheme:t="system",storageKey:n="vite-ui-theme",...r}){const[o,s]=E.useState(()=>localStorage.getItem(n)||t);E.useEffect(()=>{const a=window.document.documentElement;if(a.classList.remove("light","dark"),o==="system"){const l=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";a.classList.add(l);return}a.classList.add(o)},[o]);const i={theme:o,setTheme:a=>{localStorage.setItem(n,a),s(a)}};return p.jsx(ps.Provider,{...r,value:i,children:e})}function Wl(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Se(...e){return t=>{let n=!1;const r=e.map(o=>{const s=Wl(o,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let o=0;o<r.length;o++){const s=r[o];typeof s=="function"?s():Wl(e[o],null)}}}}function J(...e){return d.useCallback(Se(...e),e)}var Q0=Symbol.for("react.lazy"),Er=d[" use ".trim().toString()];function ew(e){return typeof e=="object"&&e!==null&&"then"in e}function Hl(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===Q0&&"_payload"in e&&ew(e._payload)}function Nn(e){const t=nw(e),n=d.forwardRef((r,o)=>{let{children:s,...i}=r;Hl(s)&&typeof Er=="function"&&(s=Er(s._payload));const a=d.Children.toArray(s),l=a.find(ow);if(l){const c=l.props.children,u=a.map(f=>f===l?d.Children.count(c)>1?d.Children.only(null):d.isValidElement(c)?c.props.children:null:f);return p.jsx(t,{...i,ref:o,children:d.isValidElement(c)?d.cloneElement(c,void 0,u):null})}return p.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}var tw=Nn("Slot");function nw(e){const t=d.forwardRef((n,r)=>{let{children:o,...s}=n;if(Hl(o)&&typeof Er=="function"&&(o=Er(o._payload)),d.isValidElement(o)){const i=iw(o),a=sw(s,o.props);return o.type!==d.Fragment&&(a.ref=r?Se(r,i):i),d.cloneElement(o,a)}return d.Children.count(o)>1?d.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var rw=Symbol("radix.slottable");function ow(e){return d.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===rw}function sw(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...a)=>{const l=s(...a);return o(...a),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function iw(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}const jl=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Ul=Ol,Ut=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return Ul(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:s}=t,i=Object.keys(o).map(c=>{const u=n==null?void 0:n[c],f=s==null?void 0:s[c];if(u===null)return null;const h=jl(u)||jl(f);return o[c][h]}),a=n&&Object.entries(n).reduce((c,u)=>{let[f,h]=u;return h===void 0||(c[f]=h),c},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((c,u)=>{let{class:f,className:h,...m}=u;return Object.entries(m).every(y=>{let[g,v]=y;return Array.isArray(v)?v.includes({...s,...a}[g]):{...s,...a}[g]===v})?[...c,f,h]:c},[]);return Ul(e,i,l,n==null?void 0:n.class,n==null?void 0:n.className)},ms=Ut("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),Gl=d.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},s)=>{const i=r?tw:"button";return p.jsx(i,{className:M(ms({variant:t,size:n,className:e})),ref:s,...o})});Gl.displayName="Button";const Kl=d.forwardRef(({className:e,type:t,...n},r)=>p.jsx("input",{type:t,className:M("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:r,...n}));Kl.displayName="Input";const Yl=d.forwardRef(({className:e,...t},n)=>p.jsx("textarea",{className:M("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:n,...t}));Yl.displayName="Textarea";var aw=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],lw=aw.reduce((e,t)=>{const n=Nn(`Primitive.${t}`),r=d.forwardRef((o,s)=>{const{asChild:i,...a}=o,l=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(l,{...a,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),cw="Label",Xl=d.forwardRef((e,t)=>p.jsx(lw.label,{...e,ref:t,onMouseDown:n=>{var o;n.target.closest("button, input, select, textarea")||((o=e.onMouseDown)==null||o.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));Xl.displayName=cw;var ql=Xl;const uw=Ut("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Zl=d.forwardRef(({className:e,...t},n)=>p.jsx(ql,{ref:n,className:M(uw(),e),...t}));Zl.displayName=ql.displayName;function dw(e,t){const n=d.createContext(t),r=s=>{const{children:i,...a}=s,l=d.useMemo(()=>a,Object.values(a));return p.jsx(n.Provider,{value:l,children:i})};r.displayName=e+"Provider";function o(s){const i=d.useContext(n);if(i)return i;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[r,o]}function ge(e,t=[]){let n=[];function r(s,i){const a=d.createContext(i),l=n.length;n=[...n,i];const c=f=>{var b;const{scope:h,children:m,...y}=f,g=((b=h==null?void 0:h[e])==null?void 0:b[l])||a,v=d.useMemo(()=>y,Object.values(y));return p.jsx(g.Provider,{value:v,children:m})};c.displayName=s+"Provider";function u(f,h){var g;const m=((g=h==null?void 0:h[e])==null?void 0:g[l])||a,y=d.useContext(m);if(y)return y;if(i!==void 0)return i;throw new Error(`\`${f}\` must be used within \`${s}\``)}return[c,u]}const o=()=>{const s=n.map(i=>d.createContext(i));return function(a){const l=(a==null?void 0:a[e])||s;return d.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return o.scopeName=e,[r,fw(o,...t)]}function fw(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const i=r.reduce((a,{useScope:l,scopeName:c})=>{const f=l(s)[`__scope${c}`];return{...a,...f}},{});return d.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function _(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}var de=globalThis!=null&&globalThis.document?d.useLayoutEffect:()=>{},pw=d[" useInsertionEffect ".trim().toString()]||de;function ye({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,s,i]=hw({defaultProp:t,onChange:n}),a=e!==void 0,l=a?e:o;{const u=d.useRef(e!==void 0);d.useEffect(()=>{const f=u.current;f!==a&&console.warn(`${r} is changing from ${f?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),u.current=a},[a,r])}const c=d.useCallback(u=>{var f;if(a){const h=mw(u)?u(e):u;h!==e&&((f=i.current)==null||f.call(i,h))}else s(u)},[a,e,s,i]);return[l,c]}function hw({defaultProp:e,onChange:t}){const[n,r]=d.useState(e),o=d.useRef(n),s=d.useRef(t);return pw(()=>{s.current=t},[t]),d.useEffect(()=>{var i;o.current!==n&&((i=s.current)==null||i.call(s,n),o.current=n)},[n,o]),[n,r,s]}function mw(e){return typeof e=="function"}function Mn(e){const t=d.useRef({value:e,previous:e});return d.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function In(e){const[t,n]=d.useState(void 0);return de(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let i,a;if("borderBoxSize"in s){const l=s.borderBoxSize,c=Array.isArray(l)?l[0]:l;i=c.inlineSize,a=c.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}function gw(e,t){return d.useReducer((n,r)=>t[n][r]??n,e)}var me=e=>{const{present:t,children:n}=e,r=vw(t),o=typeof n=="function"?n({present:r.isPresent}):d.Children.only(n),s=J(r.ref,yw(o));return typeof n=="function"||r.isPresent?d.cloneElement(o,{ref:s}):null};me.displayName="Presence";function vw(e){const[t,n]=d.useState(),r=d.useRef(null),o=d.useRef(e),s=d.useRef("none"),i=e?"mounted":"unmounted",[a,l]=gw(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return d.useEffect(()=>{const c=Pr(r.current);s.current=a==="mounted"?c:"none"},[a]),de(()=>{const c=r.current,u=o.current;if(u!==e){const h=s.current,m=Pr(c);e?l("MOUNT"):m==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(u&&h!==m?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),de(()=>{if(t){let c;const u=t.ownerDocument.defaultView??window,f=m=>{const g=Pr(r.current).includes(CSS.escape(m.animationName));if(m.target===t&&g&&(l("ANIMATION_END"),!o.current)){const v=t.style.animationFillMode;t.style.animationFillMode="forwards",c=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=v)})}},h=m=>{m.target===t&&(s.current=Pr(r.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{u.clearTimeout(c),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:d.useCallback(c=>{r.current=c?getComputedStyle(c):null,n(c)},[])}}function Pr(e){return(e==null?void 0:e.animationName)||"none"}function yw(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function bw(e){const t=ww(e),n=d.forwardRef((r,o)=>{const{children:s,...i}=r,a=d.Children.toArray(s),l=a.find(Sw);if(l){const c=l.props.children,u=a.map(f=>f===l?d.Children.count(c)>1?d.Children.only(null):d.isValidElement(c)?c.props.children:null:f);return p.jsx(t,{...i,ref:o,children:d.isValidElement(c)?d.cloneElement(c,void 0,u):null})}return p.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function ww(e){const t=d.forwardRef((n,r)=>{const{children:o,...s}=n;if(d.isValidElement(o)){const i=Ew(o),a=Cw(s,o.props);return o.type!==d.Fragment&&(a.ref=r?Se(r,i):i),d.cloneElement(o,a)}return d.Children.count(o)>1?d.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var xw=Symbol("radix.slottable");function Sw(e){return d.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===xw}function Cw(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...a)=>{const l=s(...a);return o(...a),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function Ew(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Pw=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],j=Pw.reduce((e,t)=>{const n=bw(`Primitive.${t}`),r=d.forwardRef((o,s)=>{const{asChild:i,...a}=o,l=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(l,{...a,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function gs(e,t){e&&Pn.flushSync(()=>e.dispatchEvent(t))}var Tr="Checkbox",[Tw]=ge(Tr),[Aw,vs]=Tw(Tr);function Nw(e){const{__scopeCheckbox:t,checked:n,children:r,defaultChecked:o,disabled:s,form:i,name:a,onCheckedChange:l,required:c,value:u="on",internal_do_not_use_render:f}=e,[h,m]=ye({prop:n,defaultProp:o??!1,onChange:l,caller:Tr}),[y,g]=d.useState(null),[v,b]=d.useState(null),w=d.useRef(!1),x=y?!!i||!!y.closest("form"):!0,S={checked:h,disabled:s,setChecked:m,control:y,setControl:g,name:a,form:i,value:u,hasConsumerStoppedPropagationRef:w,required:c,defaultChecked:lt(o)?!1:o,isFormControl:x,bubbleInput:v,setBubbleInput:b};return p.jsx(Aw,{scope:t,...S,children:Mw(f)?f(S):r})}var Jl="CheckboxTrigger",Ql=d.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:n,...r},o)=>{const{control:s,value:i,disabled:a,checked:l,required:c,setControl:u,setChecked:f,hasConsumerStoppedPropagationRef:h,isFormControl:m,bubbleInput:y}=vs(Jl,e),g=J(o,u),v=d.useRef(l);return d.useEffect(()=>{const b=s==null?void 0:s.form;if(b){const w=()=>f(v.current);return b.addEventListener("reset",w),()=>b.removeEventListener("reset",w)}},[s,f]),p.jsx(j.button,{type:"button",role:"checkbox","aria-checked":lt(l)?"mixed":l,"aria-required":c,"data-state":oc(l),"data-disabled":a?"":void 0,disabled:a,value:i,...r,ref:g,onKeyDown:_(t,b=>{b.key==="Enter"&&b.preventDefault()}),onClick:_(n,b=>{f(w=>lt(w)?!0:!w),y&&m&&(h.current=b.isPropagationStopped(),h.current||b.stopPropagation())})})});Ql.displayName=Jl;var ys=d.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:r,checked:o,defaultChecked:s,required:i,disabled:a,value:l,onCheckedChange:c,form:u,...f}=e;return p.jsx(Nw,{__scopeCheckbox:n,checked:o,defaultChecked:s,disabled:a,required:i,onCheckedChange:c,name:r,form:u,value:l,internal_do_not_use_render:({isFormControl:h})=>p.jsxs(p.Fragment,{children:[p.jsx(Ql,{...f,ref:t,__scopeCheckbox:n}),h&&p.jsx(rc,{__scopeCheckbox:n})]})})});ys.displayName=Tr;var ec="CheckboxIndicator",tc=d.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...o}=e,s=vs(ec,n);return p.jsx(me,{present:r||lt(s.checked)||s.checked===!0,children:p.jsx(j.span,{"data-state":oc(s.checked),"data-disabled":s.disabled?"":void 0,...o,ref:t,style:{pointerEvents:"none",...e.style}})})});tc.displayName=ec;var nc="CheckboxBubbleInput",rc=d.forwardRef(({__scopeCheckbox:e,...t},n)=>{const{control:r,hasConsumerStoppedPropagationRef:o,checked:s,defaultChecked:i,required:a,disabled:l,name:c,value:u,form:f,bubbleInput:h,setBubbleInput:m}=vs(nc,e),y=J(n,m),g=Mn(s),v=In(r);d.useEffect(()=>{const w=h;if(!w)return;const x=window.HTMLInputElement.prototype,C=Object.getOwnPropertyDescriptor(x,"checked").set,T=!o.current;if(g!==s&&C){const A=new Event("click",{bubbles:T});w.indeterminate=lt(s),C.call(w,lt(s)?!1:s),w.dispatchEvent(A)}},[h,g,s,o]);const b=d.useRef(lt(s)?!1:s);return p.jsx(j.input,{type:"checkbox","aria-hidden":!0,defaultChecked:i??b.current,required:a,disabled:l,name:c,value:u,form:f,...t,tabIndex:-1,ref:y,style:{...t.style,...v,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});rc.displayName=nc;function Mw(e){return typeof e=="function"}function lt(e){return e==="indeterminate"}function oc(e){return lt(e)?"indeterminate":e?"checked":"unchecked"}/**
|
|
2
2
|
* @license lucide-react v0.379.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
|
5
5
|
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
-
*/const
|
|
6
|
+
*/const Iw=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),sc=(...e)=>e.filter((t,n,r)=>!!t&&r.indexOf(t)===n).join(" ");/**
|
|
7
7
|
* @license lucide-react v0.379.0 - ISC
|
|
8
8
|
*
|
|
9
9
|
* This source code is licensed under the ISC license.
|
|
10
10
|
* See the LICENSE file in the root directory of this source tree.
|
|
11
|
-
*/var
|
|
11
|
+
*/var Dw={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"};/**
|
|
12
12
|
* @license lucide-react v0.379.0 - ISC
|
|
13
13
|
*
|
|
14
14
|
* This source code is licensed under the ISC license.
|
|
15
15
|
* See the LICENSE file in the root directory of this source tree.
|
|
16
|
-
*/const
|
|
16
|
+
*/const _w=E.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:s,iconNode:i,...a},l)=>E.createElement("svg",{ref:l,...Dw,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:sc("lucide",o),...a},[...i.map(([c,u])=>E.createElement(c,u)),...Array.isArray(s)?s:[s]]));/**
|
|
17
17
|
* @license lucide-react v0.379.0 - ISC
|
|
18
18
|
*
|
|
19
19
|
* This source code is licensed under the ISC license.
|
|
20
20
|
* See the LICENSE file in the root directory of this source tree.
|
|
21
|
-
*/const
|
|
21
|
+
*/const ct=(e,t)=>{const n=E.forwardRef(({className:r,...o},s)=>E.createElement(_w,{ref:s,iconNode:t,className:sc(`lucide-${Iw(e)}`,r),...o}));return n.displayName=`${e}`,n};/**
|
|
22
22
|
* @license lucide-react v0.379.0 - ISC
|
|
23
23
|
*
|
|
24
24
|
* This source code is licensed under the ISC license.
|
|
25
25
|
* See the LICENSE file in the root directory of this source tree.
|
|
26
|
-
*/const
|
|
26
|
+
*/const bs=ct("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
|
|
27
27
|
* @license lucide-react v0.379.0 - ISC
|
|
28
28
|
*
|
|
29
29
|
* This source code is licensed under the ISC license.
|
|
30
30
|
* See the LICENSE file in the root directory of this source tree.
|
|
31
|
-
*/const
|
|
31
|
+
*/const ic=ct("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
|
|
32
32
|
* @license lucide-react v0.379.0 - ISC
|
|
33
33
|
*
|
|
34
34
|
* This source code is licensed under the ISC license.
|
|
35
35
|
* See the LICENSE file in the root directory of this source tree.
|
|
36
|
-
*/const
|
|
36
|
+
*/const kw=ct("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
|
|
37
37
|
* @license lucide-react v0.379.0 - ISC
|
|
38
38
|
*
|
|
39
39
|
* This source code is licensed under the ISC license.
|
|
40
40
|
* See the LICENSE file in the root directory of this source tree.
|
|
41
|
-
*/const
|
|
41
|
+
*/const ws=ct("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
|
|
42
42
|
* @license lucide-react v0.379.0 - ISC
|
|
43
43
|
*
|
|
44
44
|
* This source code is licensed under the ISC license.
|
|
45
45
|
* See the LICENSE file in the root directory of this source tree.
|
|
46
|
-
*/const
|
|
46
|
+
*/const ac=ct("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
|
|
47
47
|
* @license lucide-react v0.379.0 - ISC
|
|
48
48
|
*
|
|
49
49
|
* This source code is licensed under the ISC license.
|
|
50
50
|
* See the LICENSE file in the root directory of this source tree.
|
|
51
|
-
*/const
|
|
51
|
+
*/const lc=ct("Ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]);/**
|
|
52
52
|
* @license lucide-react v0.379.0 - ISC
|
|
53
53
|
*
|
|
54
54
|
* This source code is licensed under the ISC license.
|
|
55
55
|
* See the LICENSE file in the root directory of this source tree.
|
|
56
|
-
*/const
|
|
56
|
+
*/const Ow=ct("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
|
|
57
57
|
* @license lucide-react v0.379.0 - ISC
|
|
58
58
|
*
|
|
59
59
|
* This source code is licensed under the ISC license.
|
|
60
60
|
* See the LICENSE file in the root directory of this source tree.
|
|
61
|
-
*/const Ps=pt("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),bc=u.forwardRef(({className:e,...t},n)=>p.jsx(Ss,{ref:n,className:M("peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),...t,children:p.jsx(dc,{className:M("flex items-center justify-center text-current"),children:p.jsx(Cs,{className:"h-4 w-4"})})}));bc.displayName=Ss.displayName;function wc(e){const t=zw(e),n=u.forwardRef((r,o)=>{const{children:s,...i}=r,a=u.Children.toArray(s),l=a.find(Hw);if(l){const c=l.props.children,d=a.map(f=>f===l?u.Children.count(c)>1?u.Children.only(null):u.isValidElement(c)?c.props.children:null:f);return p.jsx(t,{...i,ref:o,children:u.isValidElement(c)?u.cloneElement(c,void 0,d):null})}return p.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function zw(e){const t=u.forwardRef((n,r)=>{const{children:o,...s}=n;if(u.isValidElement(o)){const i=Uw(o),a=jw(s,o.props);return o.type!==u.Fragment&&(a.ref=r?Ce(r,i):i),u.cloneElement(o,a)}return u.Children.count(o)>1?u.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Ww=Symbol("radix.slottable");function Hw(e){return u.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Ww}function jw(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...a)=>{const l=s(...a);return o(...a),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function Uw(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Yt(e){const t=e+"CollectionProvider",[n,r]=ye(t),[o,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=g=>{const{scope:v,children:b}=g,w=P.useRef(null),x=P.useRef(new Map).current;return p.jsx(o,{scope:v,itemMap:x,collectionRef:w,children:b})};i.displayName=t;const a=e+"CollectionSlot",l=wc(a),c=P.forwardRef((g,v)=>{const{scope:b,children:w}=g,x=s(a,b),S=J(v,x.collectionRef);return p.jsx(l,{ref:S,children:w})});c.displayName=a;const d=e+"CollectionItemSlot",f="data-radix-collection-item",h=wc(d),m=P.forwardRef((g,v)=>{const{scope:b,children:w,...x}=g,S=P.useRef(null),C=J(v,S),T=s(d,b);return P.useEffect(()=>(T.itemMap.set(S,{ref:S,...x}),()=>void T.itemMap.delete(S))),p.jsx(h,{[f]:"",ref:C,children:w})});m.displayName=d;function y(g){const v=s(e+"CollectionConsumer",g);return P.useCallback(()=>{const w=v.collectionRef.current;if(!w)return[];const x=Array.from(w.querySelectorAll(`[${f}]`));return Array.from(v.itemMap.values()).sort((T,A)=>x.indexOf(T.ref.current)-x.indexOf(A.ref.current))},[v.collectionRef,v.itemMap])}return[{Provider:i,Slot:c,ItemSlot:m},y,r]}var Gw=u[" useId ".trim().toString()]||(()=>{}),Kw=0;function he(e){const[t,n]=u.useState(Gw());return pe(()=>{n(r=>r??String(Kw++))},[e]),t?`radix-${t}`:""}function de(e){const t=u.useRef(e);return u.useEffect(()=>{t.current=e}),u.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}var Yw=u.createContext(void 0);function ht(e){const t=u.useContext(Yw);return e||t||"ltr"}var Ts="rovingFocusGroup.onEntryFocus",Xw={bubbles:!1,cancelable:!0},_n="RovingFocusGroup",[As,xc,qw]=Yt(_n),[Zw,Xt]=ye(_n,[qw]),[Jw,Qw]=Zw(_n),Sc=u.forwardRef((e,t)=>p.jsx(As.Provider,{scope:e.__scopeRovingFocusGroup,children:p.jsx(As.Slot,{scope:e.__scopeRovingFocusGroup,children:p.jsx(ex,{...e,ref:t})})}));Sc.displayName=_n;var ex=u.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:s,currentTabStopId:i,defaultCurrentTabStopId:a,onCurrentTabStopIdChange:l,onEntryFocus:c,preventScrollOnEntryFocus:d=!1,...f}=e,h=u.useRef(null),m=J(t,h),y=ht(s),[g,v]=we({prop:i,defaultProp:a??null,onChange:l,caller:_n}),[b,w]=u.useState(!1),x=de(c),S=xc(n),C=u.useRef(!1),[T,A]=u.useState(0);return u.useEffect(()=>{const N=h.current;if(N)return N.addEventListener(Ts,x),()=>N.removeEventListener(Ts,x)},[x]),p.jsx(Jw,{scope:n,orientation:r,dir:y,loop:o,currentTabStopId:g,onItemFocus:u.useCallback(N=>v(N),[v]),onItemShiftTab:u.useCallback(()=>w(!0),[]),onFocusableItemAdd:u.useCallback(()=>A(N=>N+1),[]),onFocusableItemRemove:u.useCallback(()=>A(N=>N-1),[]),children:p.jsx(W.div,{tabIndex:b||T===0?-1:0,"data-orientation":r,...f,ref:m,style:{outline:"none",...e.style},onMouseDown:k(e.onMouseDown,()=>{C.current=!0}),onFocus:k(e.onFocus,N=>{const I=!C.current;if(N.target===N.currentTarget&&I&&!b){const O=new CustomEvent(Ts,Xw);if(N.currentTarget.dispatchEvent(O),!O.defaultPrevented){const L=S().filter(H=>H.focusable),V=L.find(H=>H.active),U=L.find(H=>H.id===g),K=[V,U,...L].filter(Boolean).map(H=>H.ref.current);Pc(K,d)}}C.current=!1}),onBlur:k(e.onBlur,()=>w(!1))})})}),Cc="RovingFocusGroupItem",Ec=u.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:s,children:i,...a}=e,l=he(),c=s||l,d=Qw(Cc,n),f=d.currentTabStopId===c,h=xc(n),{onFocusableItemAdd:m,onFocusableItemRemove:y,currentTabStopId:g}=d;return u.useEffect(()=>{if(r)return m(),()=>y()},[r,m,y]),p.jsx(As.ItemSlot,{scope:n,id:c,focusable:r,active:o,children:p.jsx(W.span,{tabIndex:f?0:-1,"data-orientation":d.orientation,...a,ref:t,onMouseDown:k(e.onMouseDown,v=>{r?d.onItemFocus(c):v.preventDefault()}),onFocus:k(e.onFocus,()=>d.onItemFocus(c)),onKeyDown:k(e.onKeyDown,v=>{if(v.key==="Tab"&&v.shiftKey){d.onItemShiftTab();return}if(v.target!==v.currentTarget)return;const b=rx(v,d.orientation,d.dir);if(b!==void 0){if(v.metaKey||v.ctrlKey||v.altKey||v.shiftKey)return;v.preventDefault();let x=h().filter(S=>S.focusable).map(S=>S.ref.current);if(b==="last")x.reverse();else if(b==="prev"||b==="next"){b==="prev"&&x.reverse();const S=x.indexOf(v.currentTarget);x=d.loop?ox(x,S+1):x.slice(S+1)}setTimeout(()=>Pc(x))}}),children:typeof i=="function"?i({isCurrentTabStop:f,hasTabStop:g!=null}):i})})});Ec.displayName=Cc;var tx={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function nx(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function rx(e,t,n){const r=nx(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return tx[r]}function Pc(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function ox(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Ns=Sc,Ms=Ec,Is="Radio",[sx,Tc]=ye(Is),[ix,ax]=sx(Is),Ac=u.forwardRef((e,t)=>{const{__scopeRadio:n,name:r,checked:o=!1,required:s,disabled:i,value:a="on",onCheck:l,form:c,...d}=e,[f,h]=u.useState(null),m=J(t,v=>h(v)),y=u.useRef(!1),g=f?c||!!f.closest("form"):!0;return p.jsxs(ix,{scope:n,checked:o,disabled:i,children:[p.jsx(W.button,{type:"button",role:"radio","aria-checked":o,"data-state":Dc(o),"data-disabled":i?"":void 0,disabled:i,value:a,...d,ref:m,onClick:k(e.onClick,v=>{o||l==null||l(),g&&(y.current=v.isPropagationStopped(),y.current||v.stopPropagation())})}),g&&p.jsx(Ic,{control:f,bubbles:!y.current,name:r,value:a,checked:o,required:s,disabled:i,form:c,style:{transform:"translateX(-100%)"}})]})});Ac.displayName=Is;var Nc="RadioIndicator",Mc=u.forwardRef((e,t)=>{const{__scopeRadio:n,forceMount:r,...o}=e,s=ax(Nc,n);return p.jsx(ve,{present:r||s.checked,children:p.jsx(W.span,{"data-state":Dc(s.checked),"data-disabled":s.disabled?"":void 0,...o,ref:t})})});Mc.displayName=Nc;var lx="RadioBubbleInput",Ic=u.forwardRef(({__scopeRadio:e,control:t,checked:n,bubbles:r=!0,...o},s)=>{const i=u.useRef(null),a=J(i,s),l=In(n),c=Dn(t);return u.useEffect(()=>{const d=i.current;if(!d)return;const f=window.HTMLInputElement.prototype,m=Object.getOwnPropertyDescriptor(f,"checked").set;if(l!==n&&m){const y=new Event("click",{bubbles:r});m.call(d,n),d.dispatchEvent(y)}},[l,n,r]),p.jsx(W.input,{type:"radio","aria-hidden":!0,defaultChecked:n,...o,tabIndex:-1,ref:a,style:{...o.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});Ic.displayName=lx;function Dc(e){return e?"checked":"unchecked"}var cx=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Dr="RadioGroup",[ux]=ye(Dr,[Xt,Tc]),_c=Xt(),kc=Tc(),[dx,fx]=ux(Dr),Oc=u.forwardRef((e,t)=>{const{__scopeRadioGroup:n,name:r,defaultValue:o,value:s,required:i=!1,disabled:a=!1,orientation:l,dir:c,loop:d=!0,onValueChange:f,...h}=e,m=_c(n),y=ht(c),[g,v]=we({prop:s,defaultProp:o??null,onChange:f,caller:Dr});return p.jsx(dx,{scope:n,name:r,required:i,disabled:a,value:g,onValueChange:v,children:p.jsx(Ns,{asChild:!0,...m,orientation:l,dir:y,loop:d,children:p.jsx(W.div,{role:"radiogroup","aria-required":i,"aria-orientation":l,"data-disabled":a?"":void 0,dir:y,...h,ref:t})})})});Oc.displayName=Dr;var Lc="RadioGroupItem",Vc=u.forwardRef((e,t)=>{const{__scopeRadioGroup:n,disabled:r,...o}=e,s=fx(Lc,n),i=s.disabled||r,a=_c(n),l=kc(n),c=u.useRef(null),d=J(t,c),f=s.value===o.value,h=u.useRef(!1);return u.useEffect(()=>{const m=g=>{cx.includes(g.key)&&(h.current=!0)},y=()=>h.current=!1;return document.addEventListener("keydown",m),document.addEventListener("keyup",y),()=>{document.removeEventListener("keydown",m),document.removeEventListener("keyup",y)}},[]),p.jsx(Ms,{asChild:!0,...a,focusable:!i,active:f,children:p.jsx(Ac,{disabled:i,required:s.required,checked:f,...l,...o,name:s.name,ref:d,onCheck:()=>s.onValueChange(o.value),onKeyDown:k(m=>{m.key==="Enter"&&m.preventDefault()}),onFocus:k(o.onFocus,()=>{var m;h.current&&((m=c.current)==null||m.click())})})})});Vc.displayName=Lc;var px="RadioGroupIndicator",$c=u.forwardRef((e,t)=>{const{__scopeRadioGroup:n,...r}=e,o=kc(n);return p.jsx(Mc,{...o,...r,ref:t})});$c.displayName=px;var Fc=Oc,Rc=Vc,hx=$c;const Bc=u.forwardRef(({className:e,...t},n)=>p.jsx(Fc,{className:M("grid gap-2",e),...t,ref:n}));Bc.displayName=Fc.displayName;const zc=u.forwardRef(({className:e,...t},n)=>p.jsx(Rc,{ref:n,className:M("aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),...t,children:p.jsx(hx,{className:"flex items-center justify-center",children:p.jsx(vc,{className:"h-2.5 w-2.5 fill-current text-current"})})}));zc.displayName=Rc.displayName;var _r="Switch",[mx]=ye(_r),[gx,vx]=mx(_r),Wc=u.forwardRef((e,t)=>{const{__scopeSwitch:n,name:r,checked:o,defaultChecked:s,required:i,disabled:a,value:l="on",onCheckedChange:c,form:d,...f}=e,[h,m]=u.useState(null),y=J(t,x=>m(x)),g=u.useRef(!1),v=h?d||!!h.closest("form"):!0,[b,w]=we({prop:o,defaultProp:s??!1,onChange:c,caller:_r});return p.jsxs(gx,{scope:n,checked:b,disabled:a,children:[p.jsx(W.button,{type:"button",role:"switch","aria-checked":b,"aria-required":i,"data-state":Gc(b),"data-disabled":a?"":void 0,disabled:a,value:l,...f,ref:y,onClick:k(e.onClick,x=>{w(S=>!S),v&&(g.current=x.isPropagationStopped(),g.current||x.stopPropagation())})}),v&&p.jsx(Uc,{control:h,bubbles:!g.current,name:r,value:l,checked:b,required:i,disabled:a,form:d,style:{transform:"translateX(-100%)"}})]})});Wc.displayName=_r;var Hc="SwitchThumb",jc=u.forwardRef((e,t)=>{const{__scopeSwitch:n,...r}=e,o=vx(Hc,n);return p.jsx(W.span,{"data-state":Gc(o.checked),"data-disabled":o.disabled?"":void 0,...r,ref:t})});jc.displayName=Hc;var yx="SwitchBubbleInput",Uc=u.forwardRef(({__scopeSwitch:e,control:t,checked:n,bubbles:r=!0,...o},s)=>{const i=u.useRef(null),a=J(i,s),l=In(n),c=Dn(t);return u.useEffect(()=>{const d=i.current;if(!d)return;const f=window.HTMLInputElement.prototype,m=Object.getOwnPropertyDescriptor(f,"checked").set;if(l!==n&&m){const y=new Event("click",{bubbles:r});m.call(d,n),d.dispatchEvent(y)}},[l,n,r]),p.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:n,...o,tabIndex:-1,ref:a,style:{...o.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});Uc.displayName=yx;function Gc(e){return e?"checked":"unchecked"}var Kc=Wc,bx=jc;const Yc=u.forwardRef(({className:e,...t},n)=>p.jsx(Kc,{className:M("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",e),...t,ref:n,children:p.jsx(bx,{className:M("pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0")})}));Yc.displayName=Kc.displayName;function kn(e,[t,n]){return Math.min(n,Math.max(t,e))}function wx(e,t=globalThis==null?void 0:globalThis.document){const n=de(e);u.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var xx="DismissableLayer",Ds="dismissableLayer.update",Sx="dismissableLayer.pointerDownOutside",Cx="dismissableLayer.focusOutside",Xc,qc=u.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),mt=u.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:i,onDismiss:a,...l}=e,c=u.useContext(qc),[d,f]=u.useState(null),h=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,m]=u.useState({}),y=J(t,A=>f(A)),g=Array.from(c.layers),[v]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),b=g.indexOf(v),w=d?g.indexOf(d):-1,x=c.layersWithOutsidePointerEventsDisabled.size>0,S=w>=b,C=Px(A=>{const N=A.target,I=[...c.branches].some(O=>O.contains(N));!S||I||(o==null||o(A),i==null||i(A),A.defaultPrevented||a==null||a())},h),T=Tx(A=>{const N=A.target;[...c.branches].some(O=>O.contains(N))||(s==null||s(A),i==null||i(A),A.defaultPrevented||a==null||a())},h);return wx(A=>{w===c.layers.size-1&&(r==null||r(A),!A.defaultPrevented&&a&&(A.preventDefault(),a()))},h),u.useEffect(()=>{if(d)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(Xc=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(d)),c.layers.add(d),Jc(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=Xc)}},[d,h,n,c]),u.useEffect(()=>()=>{d&&(c.layers.delete(d),c.layersWithOutsidePointerEventsDisabled.delete(d),Jc())},[d,c]),u.useEffect(()=>{const A=()=>m({});return document.addEventListener(Ds,A),()=>document.removeEventListener(Ds,A)},[]),p.jsx(W.div,{...l,ref:y,style:{pointerEvents:x?S?"auto":"none":void 0,...e.style},onFocusCapture:k(e.onFocusCapture,T.onFocusCapture),onBlurCapture:k(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:k(e.onPointerDownCapture,C.onPointerDownCapture)})});mt.displayName=xx;var Ex="DismissableLayerBranch",Zc=u.forwardRef((e,t)=>{const n=u.useContext(qc),r=u.useRef(null),o=J(t,r);return u.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),p.jsx(W.div,{...e,ref:o})});Zc.displayName=Ex;function Px(e,t=globalThis==null?void 0:globalThis.document){const n=de(e),r=u.useRef(!1),o=u.useRef(()=>{});return u.useEffect(()=>{const s=a=>{if(a.target&&!r.current){let l=function(){Qc(Sx,n,c,{discrete:!0})};const c={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=l,t.addEventListener("click",o.current,{once:!0})):l()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Tx(e,t=globalThis==null?void 0:globalThis.document){const n=de(e),r=u.useRef(!1);return u.useEffect(()=>{const o=s=>{s.target&&!r.current&&Qc(Cx,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Jc(){const e=new CustomEvent(Ds);document.dispatchEvent(e)}function Qc(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?ws(o,s):o.dispatchEvent(s)}var Ax=mt,Nx=Zc,_s=0;function kr(){u.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??eu()),document.body.insertAdjacentElement("beforeend",e[1]??eu()),_s++,()=>{_s===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),_s--}},[])}function eu(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var ks="focusScope.autoFocusOnMount",Os="focusScope.autoFocusOnUnmount",tu={bubbles:!1,cancelable:!0},Mx="FocusScope",On=u.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...i}=e,[a,l]=u.useState(null),c=de(o),d=de(s),f=u.useRef(null),h=J(t,g=>l(g)),m=u.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;u.useEffect(()=>{if(r){let g=function(x){if(m.paused||!a)return;const S=x.target;a.contains(S)?f.current=S:gt(f.current,{select:!0})},v=function(x){if(m.paused||!a)return;const S=x.relatedTarget;S!==null&&(a.contains(S)||gt(f.current,{select:!0}))},b=function(x){if(document.activeElement===document.body)for(const C of x)C.removedNodes.length>0&>(a)};document.addEventListener("focusin",g),document.addEventListener("focusout",v);const w=new MutationObserver(b);return a&&w.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",g),document.removeEventListener("focusout",v),w.disconnect()}}},[r,a,m.paused]),u.useEffect(()=>{if(a){ou.add(m);const g=document.activeElement;if(!a.contains(g)){const b=new CustomEvent(ks,tu);a.addEventListener(ks,c),a.dispatchEvent(b),b.defaultPrevented||(Ix(Lx(nu(a)),{select:!0}),document.activeElement===g&>(a))}return()=>{a.removeEventListener(ks,c),setTimeout(()=>{const b=new CustomEvent(Os,tu);a.addEventListener(Os,d),a.dispatchEvent(b),b.defaultPrevented||gt(g??document.body,{select:!0}),a.removeEventListener(Os,d),ou.remove(m)},0)}}},[a,c,d,m]);const y=u.useCallback(g=>{if(!n&&!r||m.paused)return;const v=g.key==="Tab"&&!g.altKey&&!g.ctrlKey&&!g.metaKey,b=document.activeElement;if(v&&b){const w=g.currentTarget,[x,S]=Dx(w);x&&S?!g.shiftKey&&b===S?(g.preventDefault(),n&>(x,{select:!0})):g.shiftKey&&b===x&&(g.preventDefault(),n&>(S,{select:!0})):b===w&&g.preventDefault()}},[n,r,m.paused]);return p.jsx(W.div,{tabIndex:-1,...i,ref:h,onKeyDown:y})});On.displayName=Mx;function Ix(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(gt(r,{select:t}),document.activeElement!==n)return}function Dx(e){const t=nu(e),n=ru(t,e),r=ru(t.reverse(),e);return[n,r]}function nu(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function ru(e,t){for(const n of e)if(!_x(n,{upTo:t}))return n}function _x(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function kx(e){return e instanceof HTMLInputElement&&"select"in e}function gt(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&kx(e)&&t&&e.select()}}var ou=Ox();function Ox(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=su(e,t),e.unshift(t)},remove(t){var n;e=su(e,t),(n=e[0])==null||n.resume()}}}function su(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Lx(e){return e.filter(t=>t.tagName!=="A")}const Vx=["top","right","bottom","left"],vt=Math.min,Ae=Math.max,Or=Math.round,Lr=Math.floor,Ge=e=>({x:e,y:e}),$x={left:"right",right:"left",bottom:"top",top:"bottom"},Fx={start:"end",end:"start"};function Ls(e,t,n){return Ae(e,vt(t,n))}function at(e,t){return typeof e=="function"?e(t):e}function lt(e){return e.split("-")[0]}function qt(e){return e.split("-")[1]}function Vs(e){return e==="x"?"y":"x"}function $s(e){return e==="y"?"height":"width"}const Rx=new Set(["top","bottom"]);function Ke(e){return Rx.has(lt(e))?"y":"x"}function Fs(e){return Vs(Ke(e))}function Bx(e,t,n){n===void 0&&(n=!1);const r=qt(e),o=Fs(e),s=$s(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=Vr(i)),[i,Vr(i)]}function zx(e){const t=Vr(e);return[Rs(e),t,Rs(t)]}function Rs(e){return e.replace(/start|end/g,t=>Fx[t])}const iu=["left","right"],au=["right","left"],Wx=["top","bottom"],Hx=["bottom","top"];function jx(e,t,n){switch(e){case"top":case"bottom":return n?t?au:iu:t?iu:au;case"left":case"right":return t?Wx:Hx;default:return[]}}function Ux(e,t,n,r){const o=qt(e);let s=jx(lt(e),n==="start",r);return o&&(s=s.map(i=>i+"-"+o),t&&(s=s.concat(s.map(Rs)))),s}function Vr(e){return e.replace(/left|right|bottom|top/g,t=>$x[t])}function Gx(e){return{top:0,right:0,bottom:0,left:0,...e}}function lu(e){return typeof e!="number"?Gx(e):{top:e,right:e,bottom:e,left:e}}function $r(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function cu(e,t,n){let{reference:r,floating:o}=e;const s=Ke(t),i=Fs(t),a=$s(i),l=lt(t),c=s==="y",d=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,h=r[a]/2-o[a]/2;let m;switch(l){case"top":m={x:d,y:r.y-o.height};break;case"bottom":m={x:d,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:f};break;case"left":m={x:r.x-o.width,y:f};break;default:m={x:r.x,y:r.y}}switch(qt(t)){case"start":m[i]-=h*(n&&c?-1:1);break;case"end":m[i]+=h*(n&&c?-1:1);break}return m}const Kx=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:i}=n,a=s.filter(Boolean),l=await(i.isRTL==null?void 0:i.isRTL(t));let c=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:f}=cu(c,r,l),h=r,m={},y=0;for(let g=0;g<a.length;g++){const{name:v,fn:b}=a[g],{x:w,y:x,data:S,reset:C}=await b({x:d,y:f,initialPlacement:r,placement:h,strategy:o,middlewareData:m,rects:c,platform:i,elements:{reference:e,floating:t}});d=w??d,f=x??f,m={...m,[v]:{...m[v],...S}},C&&y<=50&&(y++,typeof C=="object"&&(C.placement&&(h=C.placement),C.rects&&(c=C.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):C.rects),{x:d,y:f}=cu(c,h,l)),g=-1)}return{x:d,y:f,placement:h,strategy:o,middlewareData:m}};async function Ln(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:i,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:h=!1,padding:m=0}=at(t,e),y=lu(m),v=a[h?f==="floating"?"reference":"floating":f],b=$r(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(v)))==null||n?v:v.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:c,rootBoundary:d,strategy:l})),w=f==="floating"?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,x=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),S=await(s.isElement==null?void 0:s.isElement(x))?await(s.getScale==null?void 0:s.getScale(x))||{x:1,y:1}:{x:1,y:1},C=$r(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:w,offsetParent:x,strategy:l}):w);return{top:(b.top-C.top+y.top)/S.y,bottom:(C.bottom-b.bottom+y.bottom)/S.y,left:(b.left-C.left+y.left)/S.x,right:(C.right-b.right+y.right)/S.x}}const Yx=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:i,elements:a,middlewareData:l}=t,{element:c,padding:d=0}=at(e,t)||{};if(c==null)return{};const f=lu(d),h={x:n,y:r},m=Fs(o),y=$s(m),g=await i.getDimensions(c),v=m==="y",b=v?"top":"left",w=v?"bottom":"right",x=v?"clientHeight":"clientWidth",S=s.reference[y]+s.reference[m]-h[m]-s.floating[y],C=h[m]-s.reference[m],T=await(i.getOffsetParent==null?void 0:i.getOffsetParent(c));let A=T?T[x]:0;(!A||!await(i.isElement==null?void 0:i.isElement(T)))&&(A=a.floating[x]||s.floating[y]);const N=S/2-C/2,I=A/2-g[y]/2-1,O=vt(f[b],I),L=vt(f[w],I),V=O,U=A-g[y]-L,_=A/2-g[y]/2+N,K=Ls(V,_,U),H=!l.arrow&&qt(o)!=null&&_!==K&&s.reference[y]/2-(_<V?O:L)-g[y]/2<0,B=H?_<V?_-V:_-U:0;return{[m]:h[m]+B,data:{[m]:K,centerOffset:_-K-B,...H&&{alignmentOffset:B}},reset:H}}}),Xx=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:s,rects:i,initialPlacement:a,platform:l,elements:c}=t,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:h,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:g=!0,...v}=at(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const b=lt(o),w=Ke(a),x=lt(a)===a,S=await(l.isRTL==null?void 0:l.isRTL(c.floating)),C=h||(x||!g?[Vr(a)]:zx(a)),T=y!=="none";!h&&T&&C.push(...Ux(a,g,y,S));const A=[a,...C],N=await Ln(t,v),I=[];let O=((r=s.flip)==null?void 0:r.overflows)||[];if(d&&I.push(N[b]),f){const _=Bx(o,i,S);I.push(N[_[0]],N[_[1]])}if(O=[...O,{placement:o,overflows:I}],!I.every(_=>_<=0)){var L,V;const _=(((L=s.flip)==null?void 0:L.index)||0)+1,K=A[_];if(K&&(!(f==="alignment"?w!==Ke(K):!1)||O.every($=>Ke($.placement)===w?$.overflows[0]>0:!0)))return{data:{index:_,overflows:O},reset:{placement:K}};let H=(V=O.filter(B=>B.overflows[0]<=0).sort((B,$)=>B.overflows[1]-$.overflows[1])[0])==null?void 0:V.placement;if(!H)switch(m){case"bestFit":{var U;const B=(U=O.filter($=>{if(T){const F=Ke($.placement);return F===w||F==="y"}return!0}).map($=>[$.placement,$.overflows.filter(F=>F>0).reduce((F,ne)=>F+ne,0)]).sort(($,F)=>$[1]-F[1])[0])==null?void 0:U[0];B&&(H=B);break}case"initialPlacement":H=a;break}if(o!==H)return{reset:{placement:H}}}return{}}}};function uu(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function du(e){return Vx.some(t=>e[t]>=0)}const qx=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=at(e,t);switch(r){case"referenceHidden":{const s=await Ln(t,{...o,elementContext:"reference"}),i=uu(s,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:du(i)}}}case"escaped":{const s=await Ln(t,{...o,altBoundary:!0}),i=uu(s,n.floating);return{data:{escapedOffsets:i,escaped:du(i)}}}default:return{}}}}},fu=new Set(["left","top"]);async function Zx(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),i=lt(n),a=qt(n),l=Ke(n)==="y",c=fu.has(i)?-1:1,d=s&&l?-1:1,f=at(t,e);let{mainAxis:h,crossAxis:m,alignmentAxis:y}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&typeof y=="number"&&(m=a==="end"?y*-1:y),l?{x:m*d,y:h*c}:{x:h*c,y:m*d}}const Jx=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:i,middlewareData:a}=t,l=await Zx(t,e);return i===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:s+l.y,data:{...l,placement:i}}}}},Qx=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:s=!0,crossAxis:i=!1,limiter:a={fn:v=>{let{x:b,y:w}=v;return{x:b,y:w}}},...l}=at(e,t),c={x:n,y:r},d=await Ln(t,l),f=Ke(lt(o)),h=Vs(f);let m=c[h],y=c[f];if(s){const v=h==="y"?"top":"left",b=h==="y"?"bottom":"right",w=m+d[v],x=m-d[b];m=Ls(w,m,x)}if(i){const v=f==="y"?"top":"left",b=f==="y"?"bottom":"right",w=y+d[v],x=y-d[b];y=Ls(w,y,x)}const g=a.fn({...t,[h]:m,[f]:y});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[h]:s,[f]:i}}}}}},eS=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:i}=t,{offset:a=0,mainAxis:l=!0,crossAxis:c=!0}=at(e,t),d={x:n,y:r},f=Ke(o),h=Vs(f);let m=d[h],y=d[f];const g=at(a,t),v=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(l){const x=h==="y"?"height":"width",S=s.reference[h]-s.floating[x]+v.mainAxis,C=s.reference[h]+s.reference[x]-v.mainAxis;m<S?m=S:m>C&&(m=C)}if(c){var b,w;const x=h==="y"?"width":"height",S=fu.has(lt(o)),C=s.reference[f]-s.floating[x]+(S&&((b=i.offset)==null?void 0:b[f])||0)+(S?0:v.crossAxis),T=s.reference[f]+s.reference[x]+(S?0:((w=i.offset)==null?void 0:w[f])||0)-(S?v.crossAxis:0);y<C?y=C:y>T&&(y=T)}return{[h]:m,[f]:y}}}},tS=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:i,elements:a}=t,{apply:l=()=>{},...c}=at(e,t),d=await Ln(t,c),f=lt(o),h=qt(o),m=Ke(o)==="y",{width:y,height:g}=s.floating;let v,b;f==="top"||f==="bottom"?(v=f,b=h===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(b=f,v=h==="end"?"top":"bottom");const w=g-d.top-d.bottom,x=y-d.left-d.right,S=vt(g-d[v],w),C=vt(y-d[b],x),T=!t.middlewareData.shift;let A=S,N=C;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(N=x),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(A=w),T&&!h){const O=Ae(d.left,0),L=Ae(d.right,0),V=Ae(d.top,0),U=Ae(d.bottom,0);m?N=y-2*(O!==0||L!==0?O+L:Ae(d.left,d.right)):A=g-2*(V!==0||U!==0?V+U:Ae(d.top,d.bottom))}await l({...t,availableWidth:N,availableHeight:A});const I=await i.getDimensions(a.floating);return y!==I.width||g!==I.height?{reset:{rects:!0}}:{}}}};function Fr(){return typeof window<"u"}function Zt(e){return pu(e)?(e.nodeName||"").toLowerCase():"#document"}function Ne(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ye(e){var t;return(t=(pu(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function pu(e){return Fr()?e instanceof Node||e instanceof Ne(e).Node:!1}function Fe(e){return Fr()?e instanceof Element||e instanceof Ne(e).Element:!1}function Xe(e){return Fr()?e instanceof HTMLElement||e instanceof Ne(e).HTMLElement:!1}function hu(e){return!Fr()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ne(e).ShadowRoot}const nS=new Set(["inline","contents"]);function Vn(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Re(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!nS.has(o)}const rS=new Set(["table","td","th"]);function oS(e){return rS.has(Zt(e))}const sS=[":popover-open",":modal"];function Rr(e){return sS.some(t=>{try{return e.matches(t)}catch{return!1}})}const iS=["transform","translate","scale","rotate","perspective"],aS=["transform","translate","scale","rotate","perspective","filter"],lS=["paint","layout","strict","content"];function Bs(e){const t=zs(),n=Fe(e)?Re(e):e;return iS.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||aS.some(r=>(n.willChange||"").includes(r))||lS.some(r=>(n.contain||"").includes(r))}function cS(e){let t=yt(e);for(;Xe(t)&&!Jt(t);){if(Bs(t))return t;if(Rr(t))return null;t=yt(t)}return null}function zs(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const uS=new Set(["html","body","#document"]);function Jt(e){return uS.has(Zt(e))}function Re(e){return Ne(e).getComputedStyle(e)}function Br(e){return Fe(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function yt(e){if(Zt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||hu(e)&&e.host||Ye(e);return hu(t)?t.host:t}function mu(e){const t=yt(e);return Jt(t)?e.ownerDocument?e.ownerDocument.body:e.body:Xe(t)&&Vn(t)?t:mu(t)}function $n(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=mu(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),i=Ne(o);if(s){const a=Ws(i);return t.concat(i,i.visualViewport||[],Vn(o)?o:[],a&&n?$n(a):[])}return t.concat(o,$n(o,[],n))}function Ws(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function gu(e){const t=Re(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Xe(e),s=o?e.offsetWidth:n,i=o?e.offsetHeight:r,a=Or(n)!==s||Or(r)!==i;return a&&(n=s,r=i),{width:n,height:r,$:a}}function Hs(e){return Fe(e)?e:e.contextElement}function Qt(e){const t=Hs(e);if(!Xe(t))return Ge(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=gu(t);let i=(s?Or(n.width):n.width)/r,a=(s?Or(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!a||!Number.isFinite(a))&&(a=1),{x:i,y:a}}const dS=Ge(0);function vu(e){const t=Ne(e);return!zs()||!t.visualViewport?dS:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function fS(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Ne(e)?!1:t}function Dt(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=Hs(e);let i=Ge(1);t&&(r?Fe(r)&&(i=Qt(r)):i=Qt(e));const a=fS(s,n,r)?vu(s):Ge(0);let l=(o.left+a.x)/i.x,c=(o.top+a.y)/i.y,d=o.width/i.x,f=o.height/i.y;if(s){const h=Ne(s),m=r&&Fe(r)?Ne(r):r;let y=h,g=Ws(y);for(;g&&r&&m!==y;){const v=Qt(g),b=g.getBoundingClientRect(),w=Re(g),x=b.left+(g.clientLeft+parseFloat(w.paddingLeft))*v.x,S=b.top+(g.clientTop+parseFloat(w.paddingTop))*v.y;l*=v.x,c*=v.y,d*=v.x,f*=v.y,l+=x,c+=S,y=Ne(g),g=Ws(y)}}return $r({width:d,height:f,x:l,y:c})}function zr(e,t){const n=Br(e).scrollLeft;return t?t.left+n:Dt(Ye(e)).left+n}function yu(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-zr(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function pS(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",i=Ye(r),a=t?Rr(t.floating):!1;if(r===i||a&&s)return n;let l={scrollLeft:0,scrollTop:0},c=Ge(1);const d=Ge(0),f=Xe(r);if((f||!f&&!s)&&((Zt(r)!=="body"||Vn(i))&&(l=Br(r)),Xe(r))){const m=Dt(r);c=Qt(r),d.x=m.x+r.clientLeft,d.y=m.y+r.clientTop}const h=i&&!f&&!s?yu(i,l):Ge(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+d.x+h.x,y:n.y*c.y-l.scrollTop*c.y+d.y+h.y}}function hS(e){return Array.from(e.getClientRects())}function mS(e){const t=Ye(e),n=Br(e),r=e.ownerDocument.body,o=Ae(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=Ae(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+zr(e);const a=-n.scrollTop;return Re(r).direction==="rtl"&&(i+=Ae(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:i,y:a}}const bu=25;function gS(e,t){const n=Ne(e),r=Ye(e),o=n.visualViewport;let s=r.clientWidth,i=r.clientHeight,a=0,l=0;if(o){s=o.width,i=o.height;const d=zs();(!d||d&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}const c=zr(r);if(c<=0){const d=r.ownerDocument,f=d.body,h=getComputedStyle(f),m=d.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,y=Math.abs(r.clientWidth-f.clientWidth-m);y<=bu&&(s-=y)}else c<=bu&&(s+=c);return{width:s,height:i,x:a,y:l}}const vS=new Set(["absolute","fixed"]);function yS(e,t){const n=Dt(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=Xe(e)?Qt(e):Ge(1),i=e.clientWidth*s.x,a=e.clientHeight*s.y,l=o*s.x,c=r*s.y;return{width:i,height:a,x:l,y:c}}function wu(e,t,n){let r;if(t==="viewport")r=gS(e,n);else if(t==="document")r=mS(Ye(e));else if(Fe(t))r=yS(t,n);else{const o=vu(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return $r(r)}function xu(e,t){const n=yt(e);return n===t||!Fe(n)||Jt(n)?!1:Re(n).position==="fixed"||xu(n,t)}function bS(e,t){const n=t.get(e);if(n)return n;let r=$n(e,[],!1).filter(a=>Fe(a)&&Zt(a)!=="body"),o=null;const s=Re(e).position==="fixed";let i=s?yt(e):e;for(;Fe(i)&&!Jt(i);){const a=Re(i),l=Bs(i);!l&&a.position==="fixed"&&(o=null),(s?!l&&!o:!l&&a.position==="static"&&!!o&&vS.has(o.position)||Vn(i)&&!l&&xu(e,i))?r=r.filter(d=>d!==i):o=a,i=yt(i)}return t.set(e,r),r}function wS(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?Rr(t)?[]:bS(t,this._c):[].concat(n),r],a=i[0],l=i.reduce((c,d)=>{const f=wu(t,d,o);return c.top=Ae(f.top,c.top),c.right=vt(f.right,c.right),c.bottom=vt(f.bottom,c.bottom),c.left=Ae(f.left,c.left),c},wu(t,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function xS(e){const{width:t,height:n}=gu(e);return{width:t,height:n}}function SS(e,t,n){const r=Xe(t),o=Ye(t),s=n==="fixed",i=Dt(e,!0,s,t);let a={scrollLeft:0,scrollTop:0};const l=Ge(0);function c(){l.x=zr(o)}if(r||!r&&!s)if((Zt(t)!=="body"||Vn(o))&&(a=Br(t)),r){const m=Dt(t,!0,s,t);l.x=m.x+t.clientLeft,l.y=m.y+t.clientTop}else o&&c();s&&!r&&o&&c();const d=o&&!r&&!s?yu(o,a):Ge(0),f=i.left+a.scrollLeft-l.x-d.x,h=i.top+a.scrollTop-l.y-d.y;return{x:f,y:h,width:i.width,height:i.height}}function js(e){return Re(e).position==="static"}function Su(e,t){if(!Xe(e)||Re(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Ye(e)===n&&(n=n.ownerDocument.body),n}function Cu(e,t){const n=Ne(e);if(Rr(e))return n;if(!Xe(e)){let o=yt(e);for(;o&&!Jt(o);){if(Fe(o)&&!js(o))return o;o=yt(o)}return n}let r=Su(e,t);for(;r&&oS(r)&&js(r);)r=Su(r,t);return r&&Jt(r)&&js(r)&&!Bs(r)?n:r||cS(e)||n}const CS=async function(e){const t=this.getOffsetParent||Cu,n=this.getDimensions,r=await n(e.floating);return{reference:SS(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function ES(e){return Re(e).direction==="rtl"}const PS={convertOffsetParentRelativeRectToViewportRelativeRect:pS,getDocumentElement:Ye,getClippingRect:wS,getOffsetParent:Cu,getElementRects:CS,getClientRects:hS,getDimensions:xS,getScale:Qt,isElement:Fe,isRTL:ES};function Eu(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function TS(e,t){let n=null,r;const o=Ye(e);function s(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function i(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),s();const c=e.getBoundingClientRect(),{left:d,top:f,width:h,height:m}=c;if(a||t(),!h||!m)return;const y=Lr(f),g=Lr(o.clientWidth-(d+h)),v=Lr(o.clientHeight-(f+m)),b=Lr(d),x={rootMargin:-y+"px "+-g+"px "+-v+"px "+-b+"px",threshold:Ae(0,vt(1,l))||1};let S=!0;function C(T){const A=T[0].intersectionRatio;if(A!==l){if(!S)return i();A?i(!1,A):r=setTimeout(()=>{i(!1,1e-7)},1e3)}A===1&&!Eu(c,e.getBoundingClientRect())&&i(),S=!1}try{n=new IntersectionObserver(C,{...x,root:o.ownerDocument})}catch{n=new IntersectionObserver(C,x)}n.observe(e)}return i(!0),s}function AS(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=Hs(e),d=o||s?[...c?$n(c):[],...$n(t)]:[];d.forEach(b=>{o&&b.addEventListener("scroll",n,{passive:!0}),s&&b.addEventListener("resize",n)});const f=c&&a?TS(c,n):null;let h=-1,m=null;i&&(m=new ResizeObserver(b=>{let[w]=b;w&&w.target===c&&m&&(m.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var x;(x=m)==null||x.observe(t)})),n()}),c&&!l&&m.observe(c),m.observe(t));let y,g=l?Dt(e):null;l&&v();function v(){const b=Dt(e);g&&!Eu(g,b)&&n(),g=b,y=requestAnimationFrame(v)}return n(),()=>{var b;d.forEach(w=>{o&&w.removeEventListener("scroll",n),s&&w.removeEventListener("resize",n)}),f==null||f(),(b=m)==null||b.disconnect(),m=null,l&&cancelAnimationFrame(y)}}const NS=Jx,MS=Qx,IS=Xx,DS=tS,_S=qx,Pu=Yx,kS=eS,OS=(e,t,n)=>{const r=new Map,o={platform:PS,...n},s={...o.platform,_c:r};return Kx(e,t,{...o,platform:s})};var LS=typeof document<"u",VS=function(){},Wr=LS?P.useLayoutEffect:VS;function Hr(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Hr(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const s=o[r];if(!(s==="_owner"&&e.$$typeof)&&!Hr(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function Tu(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Au(e,t){const n=Tu(e);return Math.round(t*n)/n}function Us(e){const t=u.useRef(e);return Wr(()=>{t.current=e}),t}function $S(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:i}={},transform:a=!0,whileElementsMounted:l,open:c}=e,[d,f]=u.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,m]=u.useState(r);Hr(h,r)||m(r);const[y,g]=u.useState(null),[v,b]=u.useState(null),w=u.useCallback($=>{$!==T.current&&(T.current=$,g($))},[]),x=u.useCallback($=>{$!==A.current&&(A.current=$,b($))},[]),S=s||y,C=i||v,T=u.useRef(null),A=u.useRef(null),N=u.useRef(d),I=l!=null,O=Us(l),L=Us(o),V=Us(c),U=u.useCallback(()=>{if(!T.current||!A.current)return;const $={placement:t,strategy:n,middleware:h};L.current&&($.platform=L.current),OS(T.current,A.current,$).then(F=>{const ne={...F,isPositioned:V.current!==!1};_.current&&!Hr(N.current,ne)&&(N.current=ne,Tn.flushSync(()=>{f(ne)}))})},[h,t,n,L,V]);Wr(()=>{c===!1&&N.current.isPositioned&&(N.current.isPositioned=!1,f($=>({...$,isPositioned:!1})))},[c]);const _=u.useRef(!1);Wr(()=>(_.current=!0,()=>{_.current=!1}),[]),Wr(()=>{if(S&&(T.current=S),C&&(A.current=C),S&&C){if(O.current)return O.current(S,C,U);U()}},[S,C,U,O,I]);const K=u.useMemo(()=>({reference:T,floating:A,setReference:w,setFloating:x}),[w,x]),H=u.useMemo(()=>({reference:S,floating:C}),[S,C]),B=u.useMemo(()=>{const $={position:n,left:0,top:0};if(!H.floating)return $;const F=Au(H.floating,d.x),ne=Au(H.floating,d.y);return a?{...$,transform:"translate("+F+"px, "+ne+"px)",...Tu(H.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:F,top:ne}},[n,a,H.floating,d.x,d.y]);return u.useMemo(()=>({...d,update:U,refs:K,elements:H,floatingStyles:B}),[d,U,K,H,B])}const FS=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Pu({element:r.current,padding:o}).fn(n):{}:r?Pu({element:r,padding:o}).fn(n):{}}}},RS=(e,t)=>({...NS(e),options:[e,t]}),BS=(e,t)=>({...MS(e),options:[e,t]}),zS=(e,t)=>({...kS(e),options:[e,t]}),WS=(e,t)=>({...IS(e),options:[e,t]}),HS=(e,t)=>({...DS(e),options:[e,t]}),jS=(e,t)=>({..._S(e),options:[e,t]}),US=(e,t)=>({...FS(e),options:[e,t]});var GS="Arrow",Nu=u.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return p.jsx(W.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:p.jsx("polygon",{points:"0,0 30,0 15,10"})})});Nu.displayName=GS;var KS=Nu,Gs="Popper",[Mu,qe]=ye(Gs),[YS,Iu]=Mu(Gs),Du=e=>{const{__scopePopper:t,children:n}=e,[r,o]=u.useState(null);return p.jsx(YS,{scope:t,anchor:r,onAnchorChange:o,children:n})};Du.displayName=Gs;var _u="PopperAnchor",ku=u.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=Iu(_u,n),i=u.useRef(null),a=J(t,i),l=u.useRef(null);return u.useEffect(()=>{const c=l.current;l.current=(r==null?void 0:r.current)||i.current,c!==l.current&&s.onAnchorChange(l.current)}),r?null:p.jsx(W.div,{...o,ref:a})});ku.displayName=_u;var Ks="PopperContent",[XS,qS]=Mu(Ks),Ou=u.forwardRef((e,t)=>{var z,Z,q,ee,le,R;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:i=0,arrowPadding:a=0,avoidCollisions:l=!0,collisionBoundary:c=[],collisionPadding:d=0,sticky:f="partial",hideWhenDetached:h=!1,updatePositionStrategy:m="optimized",onPlaced:y,...g}=e,v=Iu(Ks,n),[b,w]=u.useState(null),x=J(t,Y=>w(Y)),[S,C]=u.useState(null),T=Dn(S),A=(T==null?void 0:T.width)??0,N=(T==null?void 0:T.height)??0,I=r+(s!=="center"?"-"+s:""),O=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},L=Array.isArray(c)?c:[c],V=L.length>0,U={padding:O,boundary:L.filter(JS),altBoundary:V},{refs:_,floatingStyles:K,placement:H,isPositioned:B,middlewareData:$}=$S({strategy:"fixed",placement:I,whileElementsMounted:(...Y)=>AS(...Y,{animationFrame:m==="always"}),elements:{reference:v.anchor},middleware:[RS({mainAxis:o+N,alignmentAxis:i}),l&&BS({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?zS():void 0,...U}),l&&WS({...U}),HS({...U,apply:({elements:Y,rects:ae,availableWidth:Ie,availableHeight:De})=>{const{width:_e,height:ct}=ae.reference,Ue=Y.floating.style;Ue.setProperty("--radix-popper-available-width",`${Ie}px`),Ue.setProperty("--radix-popper-available-height",`${De}px`),Ue.setProperty("--radix-popper-anchor-width",`${_e}px`),Ue.setProperty("--radix-popper-anchor-height",`${ct}px`)}}),S&&US({element:S,padding:a}),QS({arrowWidth:A,arrowHeight:N}),h&&jS({strategy:"referenceHidden",...U})]}),[F,ne]=$u(H),re=de(y);pe(()=>{B&&(re==null||re())},[B,re]);const D=(z=$.arrow)==null?void 0:z.x,G=(Z=$.arrow)==null?void 0:Z.y,X=((q=$.arrow)==null?void 0:q.centerOffset)!==0,[j,Q]=u.useState();return pe(()=>{b&&Q(window.getComputedStyle(b).zIndex)},[b]),p.jsx("div",{ref:_.setFloating,"data-radix-popper-content-wrapper":"",style:{...K,transform:B?K.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:j,"--radix-popper-transform-origin":[(ee=$.transformOrigin)==null?void 0:ee.x,(le=$.transformOrigin)==null?void 0:le.y].join(" "),...((R=$.hide)==null?void 0:R.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:p.jsx(XS,{scope:n,placedSide:F,onArrowChange:C,arrowX:D,arrowY:G,shouldHideArrow:X,children:p.jsx(W.div,{"data-side":F,"data-align":ne,...g,ref:x,style:{...g.style,animation:B?void 0:"none"}})})})});Ou.displayName=Ks;var Lu="PopperArrow",ZS={top:"bottom",right:"left",bottom:"top",left:"right"},Vu=u.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=qS(Lu,r),i=ZS[s.placedSide];return p.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:p.jsx(KS,{...o,ref:n,style:{...o.style,display:"block"}})})});Vu.displayName=Lu;function JS(e){return e!==null}var QS=e=>({name:"transformOrigin",options:e,fn(t){var v,b,w;const{placement:n,rects:r,middlewareData:o}=t,i=((v=o.arrow)==null?void 0:v.centerOffset)!==0,a=i?0:e.arrowWidth,l=i?0:e.arrowHeight,[c,d]=$u(n),f={start:"0%",center:"50%",end:"100%"}[d],h=(((b=o.arrow)==null?void 0:b.x)??0)+a/2,m=(((w=o.arrow)==null?void 0:w.y)??0)+l/2;let y="",g="";return c==="bottom"?(y=i?f:`${h}px`,g=`${-l}px`):c==="top"?(y=i?f:`${h}px`,g=`${r.floating.height+l}px`):c==="right"?(y=`${-l}px`,g=i?f:`${m}px`):c==="left"&&(y=`${r.floating.width+l}px`,g=i?f:`${m}px`),{data:{x:y,y:g}}}});function $u(e){const[t,n="center"]=e.split("-");return[t,n]}var en=Du,tn=ku,Fn=Ou,Rn=Vu,eC="Portal",nn=u.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[o,s]=u.useState(!1);pe(()=>s(!0),[]);const i=n||o&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return i?zl.createPortal(p.jsx(W.div,{...r,ref:t}),i):null});nn.displayName=eC;function tC(e){const t=nC(e),n=u.forwardRef((r,o)=>{const{children:s,...i}=r,a=u.Children.toArray(s),l=a.find(oC);if(l){const c=l.props.children,d=a.map(f=>f===l?u.Children.count(c)>1?u.Children.only(null):u.isValidElement(c)?c.props.children:null:f);return p.jsx(t,{...i,ref:o,children:u.isValidElement(c)?u.cloneElement(c,void 0,d):null})}return p.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function nC(e){const t=u.forwardRef((n,r)=>{const{children:o,...s}=n;if(u.isValidElement(o)){const i=iC(o),a=sC(s,o.props);return o.type!==u.Fragment&&(a.ref=r?Ce(r,i):i),u.cloneElement(o,a)}return u.Children.count(o)>1?u.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var rC=Symbol("radix.slottable");function oC(e){return u.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===rC}function sC(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...a)=>{const l=s(...a);return o(...a),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function iC(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Fu=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"}),aC="VisuallyHidden",jr=u.forwardRef((e,t)=>p.jsx(W.span,{...e,ref:t,style:{...Fu,...e.style}}));jr.displayName=aC;var lC=jr,cC=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},rn=new WeakMap,Ur=new WeakMap,Gr={},Ys=0,Ru=function(e){return e&&(e.host||Ru(e.parentNode))},uC=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Ru(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},dC=function(e,t,n,r){var o=uC(t,Array.isArray(e)?e:[e]);Gr[n]||(Gr[n]=new WeakMap);var s=Gr[n],i=[],a=new Set,l=new Set(o),c=function(f){!f||a.has(f)||(a.add(f),c(f.parentNode))};o.forEach(c);var d=function(f){!f||l.has(f)||Array.prototype.forEach.call(f.children,function(h){if(a.has(h))d(h);else try{var m=h.getAttribute(r),y=m!==null&&m!=="false",g=(rn.get(h)||0)+1,v=(s.get(h)||0)+1;rn.set(h,g),s.set(h,v),i.push(h),g===1&&y&&Ur.set(h,!0),v===1&&h.setAttribute(n,"true"),y||h.setAttribute(r,"true")}catch(b){console.error("aria-hidden: cannot operate on ",h,b)}})};return d(t),a.clear(),Ys++,function(){i.forEach(function(f){var h=rn.get(f)-1,m=s.get(f)-1;rn.set(f,h),s.set(f,m),h||(Ur.has(f)||f.removeAttribute(r),Ur.delete(f)),m||f.removeAttribute(n)}),Ys--,Ys||(rn=new WeakMap,rn=new WeakMap,Ur=new WeakMap,Gr={})}},Kr=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=cC(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),dC(r,o,n,"aria-hidden")):function(){return null}},Ze=function(){return Ze=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},Ze.apply(this,arguments)};function Bu(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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function fC(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,s;r<o;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var Yr="right-scroll-bar-position",Xr="width-before-scroll-bar",pC="with-scroll-bars-hidden",hC="--removed-body-scroll-bar-size";function Xs(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function mC(e,t){var n=P.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var gC=typeof window<"u"?u.useLayoutEffect:u.useEffect,zu=new WeakMap;function vC(e,t){var n=mC(null,function(r){return e.forEach(function(o){return Xs(o,r)})});return gC(function(){var r=zu.get(n);if(r){var o=new Set(r),s=new Set(e),i=n.current;o.forEach(function(a){s.has(a)||Xs(a,null)}),s.forEach(function(a){o.has(a)||Xs(a,i)})}zu.set(n,e)},[e]),n}function yC(e){return e}function bC(e,t){t===void 0&&(t=yC);var n=[],r=!1,o={read:function(){if(r)throw new 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(s){var i=t(s,r);return n.push(i),function(){n=n.filter(function(a){return a!==i})}},assignSyncMedium:function(s){for(r=!0;n.length;){var i=n;n=[],i.forEach(s)}n={push:function(a){return s(a)},filter:function(){return n}}},assignMedium:function(s){r=!0;var i=[];if(n.length){var a=n;n=[],a.forEach(s),i=n}var l=function(){var d=i;i=[],d.forEach(s)},c=function(){return Promise.resolve().then(l)};c(),n={push:function(d){i.push(d),c()},filter:function(d){return i=i.filter(d),n}}}};return o}function wC(e){e===void 0&&(e={});var t=bC(null);return t.options=Ze({async:!0,ssr:!1},e),t}var Wu=function(e){var t=e.sideCar,n=Bu(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return u.createElement(r,Ze({},n))};Wu.isSideCarExport=!0;function xC(e,t){return e.useMedium(t),Wu}var Hu=wC(),qs=function(){},qr=u.forwardRef(function(e,t){var n=u.useRef(null),r=u.useState({onScrollCapture:qs,onWheelCapture:qs,onTouchMoveCapture:qs}),o=r[0],s=r[1],i=e.forwardProps,a=e.children,l=e.className,c=e.removeScrollBar,d=e.enabled,f=e.shards,h=e.sideCar,m=e.noRelative,y=e.noIsolation,g=e.inert,v=e.allowPinchZoom,b=e.as,w=b===void 0?"div":b,x=e.gapMode,S=Bu(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=h,T=vC([n,t]),A=Ze(Ze({},S),o);return u.createElement(u.Fragment,null,d&&u.createElement(C,{sideCar:Hu,removeScrollBar:c,shards:f,noRelative:m,noIsolation:y,inert:g,setCallbacks:s,allowPinchZoom:!!v,lockRef:n,gapMode:x}),i?u.cloneElement(u.Children.only(a),Ze(Ze({},A),{ref:T})):u.createElement(w,Ze({},A,{className:l,ref:T}),a))});qr.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},qr.classNames={fullWidth:Xr,zeroRight:Yr};var SC=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function CC(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=SC();return t&&e.setAttribute("nonce",t),e}function EC(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function PC(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var TC=function(){var e=0,t=null;return{add:function(n){e==0&&(t=CC())&&(EC(t,n),PC(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},AC=function(){var e=TC();return function(t,n){u.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},ju=function(){var e=AC(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},NC={left:0,top:0,right:0,gap:0},Zs=function(e){return parseInt(e||"",10)||0},MC=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Zs(n),Zs(r),Zs(o)]},IC=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return NC;var t=MC(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])}},DC=ju(),on="data-scroll-locked",_C=function(e,t,n,r){var o=e.left,s=e.top,i=e.right,a=e.gap;return n===void 0&&(n="margin"),`
|
|
62
|
-
.`.concat(
|
|
61
|
+
*/const xs=ct("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),cc=d.forwardRef(({className:e,...t},n)=>p.jsx(ys,{ref:n,className:M("peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),...t,children:p.jsx(tc,{className:M("flex items-center justify-center text-current"),children:p.jsx(bs,{className:"h-4 w-4"})})}));cc.displayName=ys.displayName;function uc(e){const t=Lw(e),n=d.forwardRef((r,o)=>{const{children:s,...i}=r,a=d.Children.toArray(s),l=a.find($w);if(l){const c=l.props.children,u=a.map(f=>f===l?d.Children.count(c)>1?d.Children.only(null):d.isValidElement(c)?c.props.children:null:f);return p.jsx(t,{...i,ref:o,children:d.isValidElement(c)?d.cloneElement(c,void 0,u):null})}return p.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function Lw(e){const t=d.forwardRef((n,r)=>{const{children:o,...s}=n;if(d.isValidElement(o)){const i=Rw(o),a=Fw(s,o.props);return o.type!==d.Fragment&&(a.ref=r?Se(r,i):i),d.cloneElement(o,a)}return d.Children.count(o)>1?d.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Vw=Symbol("radix.slottable");function $w(e){return d.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Vw}function Fw(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...a)=>{const l=s(...a);return o(...a),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function Rw(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Gt(e){const t=e+"CollectionProvider",[n,r]=ge(t),[o,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=g=>{const{scope:v,children:b}=g,w=E.useRef(null),x=E.useRef(new Map).current;return p.jsx(o,{scope:v,itemMap:x,collectionRef:w,children:b})};i.displayName=t;const a=e+"CollectionSlot",l=uc(a),c=E.forwardRef((g,v)=>{const{scope:b,children:w}=g,x=s(a,b),S=J(v,x.collectionRef);return p.jsx(l,{ref:S,children:w})});c.displayName=a;const u=e+"CollectionItemSlot",f="data-radix-collection-item",h=uc(u),m=E.forwardRef((g,v)=>{const{scope:b,children:w,...x}=g,S=E.useRef(null),C=J(v,S),T=s(u,b);return E.useEffect(()=>(T.itemMap.set(S,{ref:S,...x}),()=>void T.itemMap.delete(S))),p.jsx(h,{[f]:"",ref:C,children:w})});m.displayName=u;function y(g){const v=s(e+"CollectionConsumer",g);return E.useCallback(()=>{const w=v.collectionRef.current;if(!w)return[];const x=Array.from(w.querySelectorAll(`[${f}]`));return Array.from(v.itemMap.values()).sort((T,A)=>x.indexOf(T.ref.current)-x.indexOf(A.ref.current))},[v.collectionRef,v.itemMap])}return[{Provider:i,Slot:c,ItemSlot:m},y,r]}var Bw=d[" useId ".trim().toString()]||(()=>{}),zw=0;function fe(e){const[t,n]=d.useState(Bw());return de(()=>{n(r=>r??String(zw++))},[e]),t?`radix-${t}`:""}function ce(e){const t=d.useRef(e);return d.useEffect(()=>{t.current=e}),d.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}var Ww=d.createContext(void 0);function ut(e){const t=d.useContext(Ww);return e||t||"ltr"}var Ss="rovingFocusGroup.onEntryFocus",Hw={bubbles:!1,cancelable:!0},Dn="RovingFocusGroup",[Cs,dc,jw]=Gt(Dn),[Uw,Kt]=ge(Dn,[jw]),[Gw,Kw]=Uw(Dn),fc=d.forwardRef((e,t)=>p.jsx(Cs.Provider,{scope:e.__scopeRovingFocusGroup,children:p.jsx(Cs.Slot,{scope:e.__scopeRovingFocusGroup,children:p.jsx(Yw,{...e,ref:t})})}));fc.displayName=Dn;var Yw=d.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:s,currentTabStopId:i,defaultCurrentTabStopId:a,onCurrentTabStopIdChange:l,onEntryFocus:c,preventScrollOnEntryFocus:u=!1,...f}=e,h=d.useRef(null),m=J(t,h),y=ut(s),[g,v]=ye({prop:i,defaultProp:a??null,onChange:l,caller:Dn}),[b,w]=d.useState(!1),x=ce(c),S=dc(n),C=d.useRef(!1),[T,A]=d.useState(0);return d.useEffect(()=>{const N=h.current;if(N)return N.addEventListener(Ss,x),()=>N.removeEventListener(Ss,x)},[x]),p.jsx(Gw,{scope:n,orientation:r,dir:y,loop:o,currentTabStopId:g,onItemFocus:d.useCallback(N=>v(N),[v]),onItemShiftTab:d.useCallback(()=>w(!0),[]),onFocusableItemAdd:d.useCallback(()=>A(N=>N+1),[]),onFocusableItemRemove:d.useCallback(()=>A(N=>N-1),[]),children:p.jsx(j.div,{tabIndex:b||T===0?-1:0,"data-orientation":r,...f,ref:m,style:{outline:"none",...e.style},onMouseDown:_(e.onMouseDown,()=>{C.current=!0}),onFocus:_(e.onFocus,N=>{const I=!C.current;if(N.target===N.currentTarget&&I&&!b){const O=new CustomEvent(Ss,Hw);if(N.currentTarget.dispatchEvent(O),!O.defaultPrevented){const k=S().filter(U=>U.focusable),L=k.find(U=>U.active),W=k.find(U=>U.id===g),Y=[L,W,...k].filter(Boolean).map(U=>U.ref.current);mc(Y,u)}}C.current=!1}),onBlur:_(e.onBlur,()=>w(!1))})})}),pc="RovingFocusGroupItem",hc=d.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:s,children:i,...a}=e,l=fe(),c=s||l,u=Kw(pc,n),f=u.currentTabStopId===c,h=dc(n),{onFocusableItemAdd:m,onFocusableItemRemove:y,currentTabStopId:g}=u;return d.useEffect(()=>{if(r)return m(),()=>y()},[r,m,y]),p.jsx(Cs.ItemSlot,{scope:n,id:c,focusable:r,active:o,children:p.jsx(j.span,{tabIndex:f?0:-1,"data-orientation":u.orientation,...a,ref:t,onMouseDown:_(e.onMouseDown,v=>{r?u.onItemFocus(c):v.preventDefault()}),onFocus:_(e.onFocus,()=>u.onItemFocus(c)),onKeyDown:_(e.onKeyDown,v=>{if(v.key==="Tab"&&v.shiftKey){u.onItemShiftTab();return}if(v.target!==v.currentTarget)return;const b=Zw(v,u.orientation,u.dir);if(b!==void 0){if(v.metaKey||v.ctrlKey||v.altKey||v.shiftKey)return;v.preventDefault();let x=h().filter(S=>S.focusable).map(S=>S.ref.current);if(b==="last")x.reverse();else if(b==="prev"||b==="next"){b==="prev"&&x.reverse();const S=x.indexOf(v.currentTarget);x=u.loop?Jw(x,S+1):x.slice(S+1)}setTimeout(()=>mc(x))}}),children:typeof i=="function"?i({isCurrentTabStop:f,hasTabStop:g!=null}):i})})});hc.displayName=pc;var Xw={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function qw(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Zw(e,t,n){const r=qw(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return Xw[r]}function mc(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function Jw(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Es=fc,Ps=hc,Ts="Radio",[Qw,gc]=ge(Ts),[ex,tx]=Qw(Ts),vc=d.forwardRef((e,t)=>{const{__scopeRadio:n,name:r,checked:o=!1,required:s,disabled:i,value:a="on",onCheck:l,form:c,...u}=e,[f,h]=d.useState(null),m=J(t,v=>h(v)),y=d.useRef(!1),g=f?c||!!f.closest("form"):!0;return p.jsxs(ex,{scope:n,checked:o,disabled:i,children:[p.jsx(j.button,{type:"button",role:"radio","aria-checked":o,"data-state":xc(o),"data-disabled":i?"":void 0,disabled:i,value:a,...u,ref:m,onClick:_(e.onClick,v=>{o||l==null||l(),g&&(y.current=v.isPropagationStopped(),y.current||v.stopPropagation())})}),g&&p.jsx(wc,{control:f,bubbles:!y.current,name:r,value:a,checked:o,required:s,disabled:i,form:c,style:{transform:"translateX(-100%)"}})]})});vc.displayName=Ts;var yc="RadioIndicator",bc=d.forwardRef((e,t)=>{const{__scopeRadio:n,forceMount:r,...o}=e,s=tx(yc,n);return p.jsx(me,{present:r||s.checked,children:p.jsx(j.span,{"data-state":xc(s.checked),"data-disabled":s.disabled?"":void 0,...o,ref:t})})});bc.displayName=yc;var nx="RadioBubbleInput",wc=d.forwardRef(({__scopeRadio:e,control:t,checked:n,bubbles:r=!0,...o},s)=>{const i=d.useRef(null),a=J(i,s),l=Mn(n),c=In(t);return d.useEffect(()=>{const u=i.current;if(!u)return;const f=window.HTMLInputElement.prototype,m=Object.getOwnPropertyDescriptor(f,"checked").set;if(l!==n&&m){const y=new Event("click",{bubbles:r});m.call(u,n),u.dispatchEvent(y)}},[l,n,r]),p.jsx(j.input,{type:"radio","aria-hidden":!0,defaultChecked:n,...o,tabIndex:-1,ref:a,style:{...o.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});wc.displayName=nx;function xc(e){return e?"checked":"unchecked"}var rx=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Ar="RadioGroup",[ox]=ge(Ar,[Kt,gc]),Sc=Kt(),Cc=gc(),[sx,ix]=ox(Ar),Ec=d.forwardRef((e,t)=>{const{__scopeRadioGroup:n,name:r,defaultValue:o,value:s,required:i=!1,disabled:a=!1,orientation:l,dir:c,loop:u=!0,onValueChange:f,...h}=e,m=Sc(n),y=ut(c),[g,v]=ye({prop:s,defaultProp:o??null,onChange:f,caller:Ar});return p.jsx(sx,{scope:n,name:r,required:i,disabled:a,value:g,onValueChange:v,children:p.jsx(Es,{asChild:!0,...m,orientation:l,dir:y,loop:u,children:p.jsx(j.div,{role:"radiogroup","aria-required":i,"aria-orientation":l,"data-disabled":a?"":void 0,dir:y,...h,ref:t})})})});Ec.displayName=Ar;var Pc="RadioGroupItem",Tc=d.forwardRef((e,t)=>{const{__scopeRadioGroup:n,disabled:r,...o}=e,s=ix(Pc,n),i=s.disabled||r,a=Sc(n),l=Cc(n),c=d.useRef(null),u=J(t,c),f=s.value===o.value,h=d.useRef(!1);return d.useEffect(()=>{const m=g=>{rx.includes(g.key)&&(h.current=!0)},y=()=>h.current=!1;return document.addEventListener("keydown",m),document.addEventListener("keyup",y),()=>{document.removeEventListener("keydown",m),document.removeEventListener("keyup",y)}},[]),p.jsx(Ps,{asChild:!0,...a,focusable:!i,active:f,children:p.jsx(vc,{disabled:i,required:s.required,checked:f,...l,...o,name:s.name,ref:u,onCheck:()=>s.onValueChange(o.value),onKeyDown:_(m=>{m.key==="Enter"&&m.preventDefault()}),onFocus:_(o.onFocus,()=>{var m;h.current&&((m=c.current)==null||m.click())})})})});Tc.displayName=Pc;var ax="RadioGroupIndicator",Ac=d.forwardRef((e,t)=>{const{__scopeRadioGroup:n,...r}=e,o=Cc(n);return p.jsx(bc,{...o,...r,ref:t})});Ac.displayName=ax;var Nc=Ec,Mc=Tc,lx=Ac;const Ic=d.forwardRef(({className:e,...t},n)=>p.jsx(Nc,{className:M("grid gap-2",e),...t,ref:n}));Ic.displayName=Nc.displayName;const Dc=d.forwardRef(({className:e,...t},n)=>p.jsx(Mc,{ref:n,className:M("aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),...t,children:p.jsx(lx,{className:"flex items-center justify-center",children:p.jsx(ac,{className:"h-2.5 w-2.5 fill-current text-current"})})}));Dc.displayName=Mc.displayName;var Nr="Switch",[cx]=ge(Nr),[ux,dx]=cx(Nr),_c=d.forwardRef((e,t)=>{const{__scopeSwitch:n,name:r,checked:o,defaultChecked:s,required:i,disabled:a,value:l="on",onCheckedChange:c,form:u,...f}=e,[h,m]=d.useState(null),y=J(t,x=>m(x)),g=d.useRef(!1),v=h?u||!!h.closest("form"):!0,[b,w]=ye({prop:o,defaultProp:s??!1,onChange:c,caller:Nr});return p.jsxs(ux,{scope:n,checked:b,disabled:a,children:[p.jsx(j.button,{type:"button",role:"switch","aria-checked":b,"aria-required":i,"data-state":Vc(b),"data-disabled":a?"":void 0,disabled:a,value:l,...f,ref:y,onClick:_(e.onClick,x=>{w(S=>!S),v&&(g.current=x.isPropagationStopped(),g.current||x.stopPropagation())})}),v&&p.jsx(Lc,{control:h,bubbles:!g.current,name:r,value:l,checked:b,required:i,disabled:a,form:u,style:{transform:"translateX(-100%)"}})]})});_c.displayName=Nr;var kc="SwitchThumb",Oc=d.forwardRef((e,t)=>{const{__scopeSwitch:n,...r}=e,o=dx(kc,n);return p.jsx(j.span,{"data-state":Vc(o.checked),"data-disabled":o.disabled?"":void 0,...r,ref:t})});Oc.displayName=kc;var fx="SwitchBubbleInput",Lc=d.forwardRef(({__scopeSwitch:e,control:t,checked:n,bubbles:r=!0,...o},s)=>{const i=d.useRef(null),a=J(i,s),l=Mn(n),c=In(t);return d.useEffect(()=>{const u=i.current;if(!u)return;const f=window.HTMLInputElement.prototype,m=Object.getOwnPropertyDescriptor(f,"checked").set;if(l!==n&&m){const y=new Event("click",{bubbles:r});m.call(u,n),u.dispatchEvent(y)}},[l,n,r]),p.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:n,...o,tabIndex:-1,ref:a,style:{...o.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});Lc.displayName=fx;function Vc(e){return e?"checked":"unchecked"}var $c=_c,px=Oc;const Fc=d.forwardRef(({className:e,...t},n)=>p.jsx($c,{className:M("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",e),...t,ref:n,children:p.jsx(px,{className:M("pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0")})}));Fc.displayName=$c.displayName;function _n(e,[t,n]){return Math.min(n,Math.max(t,e))}function hx(e,t=globalThis==null?void 0:globalThis.document){const n=ce(e);d.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var mx="DismissableLayer",As="dismissableLayer.update",gx="dismissableLayer.pointerDownOutside",vx="dismissableLayer.focusOutside",Rc,Bc=d.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),dt=d.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:i,onDismiss:a,...l}=e,c=d.useContext(Bc),[u,f]=d.useState(null),h=(u==null?void 0:u.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,m]=d.useState({}),y=J(t,A=>f(A)),g=Array.from(c.layers),[v]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),b=g.indexOf(v),w=u?g.indexOf(u):-1,x=c.layersWithOutsidePointerEventsDisabled.size>0,S=w>=b,C=bx(A=>{const N=A.target,I=[...c.branches].some(O=>O.contains(N));!S||I||(o==null||o(A),i==null||i(A),A.defaultPrevented||a==null||a())},h),T=wx(A=>{const N=A.target;[...c.branches].some(O=>O.contains(N))||(s==null||s(A),i==null||i(A),A.defaultPrevented||a==null||a())},h);return hx(A=>{w===c.layers.size-1&&(r==null||r(A),!A.defaultPrevented&&a&&(A.preventDefault(),a()))},h),d.useEffect(()=>{if(u)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(Rc=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(u)),c.layers.add(u),Wc(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=Rc)}},[u,h,n,c]),d.useEffect(()=>()=>{u&&(c.layers.delete(u),c.layersWithOutsidePointerEventsDisabled.delete(u),Wc())},[u,c]),d.useEffect(()=>{const A=()=>m({});return document.addEventListener(As,A),()=>document.removeEventListener(As,A)},[]),p.jsx(j.div,{...l,ref:y,style:{pointerEvents:x?S?"auto":"none":void 0,...e.style},onFocusCapture:_(e.onFocusCapture,T.onFocusCapture),onBlurCapture:_(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:_(e.onPointerDownCapture,C.onPointerDownCapture)})});dt.displayName=mx;var yx="DismissableLayerBranch",zc=d.forwardRef((e,t)=>{const n=d.useContext(Bc),r=d.useRef(null),o=J(t,r);return d.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),p.jsx(j.div,{...e,ref:o})});zc.displayName=yx;function bx(e,t=globalThis==null?void 0:globalThis.document){const n=ce(e),r=d.useRef(!1),o=d.useRef(()=>{});return d.useEffect(()=>{const s=a=>{if(a.target&&!r.current){let l=function(){Hc(gx,n,c,{discrete:!0})};const c={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=l,t.addEventListener("click",o.current,{once:!0})):l()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function wx(e,t=globalThis==null?void 0:globalThis.document){const n=ce(e),r=d.useRef(!1);return d.useEffect(()=>{const o=s=>{s.target&&!r.current&&Hc(vx,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Wc(){const e=new CustomEvent(As);document.dispatchEvent(e)}function Hc(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?gs(o,s):o.dispatchEvent(s)}var xx=dt,Sx=zc,Ns=0;function Mr(){d.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??jc()),document.body.insertAdjacentElement("beforeend",e[1]??jc()),Ns++,()=>{Ns===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Ns--}},[])}function jc(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Ms="focusScope.autoFocusOnMount",Is="focusScope.autoFocusOnUnmount",Uc={bubbles:!1,cancelable:!0},Cx="FocusScope",kn=d.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...i}=e,[a,l]=d.useState(null),c=ce(o),u=ce(s),f=d.useRef(null),h=J(t,g=>l(g)),m=d.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;d.useEffect(()=>{if(r){let g=function(x){if(m.paused||!a)return;const S=x.target;a.contains(S)?f.current=S:ft(f.current,{select:!0})},v=function(x){if(m.paused||!a)return;const S=x.relatedTarget;S!==null&&(a.contains(S)||ft(f.current,{select:!0}))},b=function(x){if(document.activeElement===document.body)for(const C of x)C.removedNodes.length>0&&ft(a)};document.addEventListener("focusin",g),document.addEventListener("focusout",v);const w=new MutationObserver(b);return a&&w.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",g),document.removeEventListener("focusout",v),w.disconnect()}}},[r,a,m.paused]),d.useEffect(()=>{if(a){Yc.add(m);const g=document.activeElement;if(!a.contains(g)){const b=new CustomEvent(Ms,Uc);a.addEventListener(Ms,c),a.dispatchEvent(b),b.defaultPrevented||(Ex(Mx(Gc(a)),{select:!0}),document.activeElement===g&&ft(a))}return()=>{a.removeEventListener(Ms,c),setTimeout(()=>{const b=new CustomEvent(Is,Uc);a.addEventListener(Is,u),a.dispatchEvent(b),b.defaultPrevented||ft(g??document.body,{select:!0}),a.removeEventListener(Is,u),Yc.remove(m)},0)}}},[a,c,u,m]);const y=d.useCallback(g=>{if(!n&&!r||m.paused)return;const v=g.key==="Tab"&&!g.altKey&&!g.ctrlKey&&!g.metaKey,b=document.activeElement;if(v&&b){const w=g.currentTarget,[x,S]=Px(w);x&&S?!g.shiftKey&&b===S?(g.preventDefault(),n&&ft(x,{select:!0})):g.shiftKey&&b===x&&(g.preventDefault(),n&&ft(S,{select:!0})):b===w&&g.preventDefault()}},[n,r,m.paused]);return p.jsx(j.div,{tabIndex:-1,...i,ref:h,onKeyDown:y})});kn.displayName=Cx;function Ex(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(ft(r,{select:t}),document.activeElement!==n)return}function Px(e){const t=Gc(e),n=Kc(t,e),r=Kc(t.reverse(),e);return[n,r]}function Gc(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Kc(e,t){for(const n of e)if(!Tx(n,{upTo:t}))return n}function Tx(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Ax(e){return e instanceof HTMLInputElement&&"select"in e}function ft(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Ax(e)&&t&&e.select()}}var Yc=Nx();function Nx(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Xc(e,t),e.unshift(t)},remove(t){var n;e=Xc(e,t),(n=e[0])==null||n.resume()}}}function Xc(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Mx(e){return e.filter(t=>t.tagName!=="A")}const Ix=["top","right","bottom","left"],pt=Math.min,Te=Math.max,Ir=Math.round,Dr=Math.floor,ze=e=>({x:e,y:e}),Dx={left:"right",right:"left",bottom:"top",top:"bottom"},_x={start:"end",end:"start"};function Ds(e,t,n){return Te(e,pt(t,n))}function ot(e,t){return typeof e=="function"?e(t):e}function st(e){return e.split("-")[0]}function Yt(e){return e.split("-")[1]}function _s(e){return e==="x"?"y":"x"}function ks(e){return e==="y"?"height":"width"}const kx=new Set(["top","bottom"]);function We(e){return kx.has(st(e))?"y":"x"}function Os(e){return _s(We(e))}function Ox(e,t,n){n===void 0&&(n=!1);const r=Yt(e),o=Os(e),s=ks(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=_r(i)),[i,_r(i)]}function Lx(e){const t=_r(e);return[Ls(e),t,Ls(t)]}function Ls(e){return e.replace(/start|end/g,t=>_x[t])}const qc=["left","right"],Zc=["right","left"],Vx=["top","bottom"],$x=["bottom","top"];function Fx(e,t,n){switch(e){case"top":case"bottom":return n?t?Zc:qc:t?qc:Zc;case"left":case"right":return t?Vx:$x;default:return[]}}function Rx(e,t,n,r){const o=Yt(e);let s=Fx(st(e),n==="start",r);return o&&(s=s.map(i=>i+"-"+o),t&&(s=s.concat(s.map(Ls)))),s}function _r(e){return e.replace(/left|right|bottom|top/g,t=>Dx[t])}function Bx(e){return{top:0,right:0,bottom:0,left:0,...e}}function Jc(e){return typeof e!="number"?Bx(e):{top:e,right:e,bottom:e,left:e}}function kr(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Qc(e,t,n){let{reference:r,floating:o}=e;const s=We(t),i=Os(t),a=ks(i),l=st(t),c=s==="y",u=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,h=r[a]/2-o[a]/2;let m;switch(l){case"top":m={x:u,y:r.y-o.height};break;case"bottom":m={x:u,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:f};break;case"left":m={x:r.x-o.width,y:f};break;default:m={x:r.x,y:r.y}}switch(Yt(t)){case"start":m[i]-=h*(n&&c?-1:1);break;case"end":m[i]+=h*(n&&c?-1:1);break}return m}const zx=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:i}=n,a=s.filter(Boolean),l=await(i.isRTL==null?void 0:i.isRTL(t));let c=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:f}=Qc(c,r,l),h=r,m={},y=0;for(let g=0;g<a.length;g++){const{name:v,fn:b}=a[g],{x:w,y:x,data:S,reset:C}=await b({x:u,y:f,initialPlacement:r,placement:h,strategy:o,middlewareData:m,rects:c,platform:i,elements:{reference:e,floating:t}});u=w??u,f=x??f,m={...m,[v]:{...m[v],...S}},C&&y<=50&&(y++,typeof C=="object"&&(C.placement&&(h=C.placement),C.rects&&(c=C.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):C.rects),{x:u,y:f}=Qc(c,h,l)),g=-1)}return{x:u,y:f,placement:h,strategy:o,middlewareData:m}};async function On(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:i,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:h=!1,padding:m=0}=ot(t,e),y=Jc(m),v=a[h?f==="floating"?"reference":"floating":f],b=kr(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(v)))==null||n?v:v.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),w=f==="floating"?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,x=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),S=await(s.isElement==null?void 0:s.isElement(x))?await(s.getScale==null?void 0:s.getScale(x))||{x:1,y:1}:{x:1,y:1},C=kr(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:w,offsetParent:x,strategy:l}):w);return{top:(b.top-C.top+y.top)/S.y,bottom:(C.bottom-b.bottom+y.bottom)/S.y,left:(b.left-C.left+y.left)/S.x,right:(C.right-b.right+y.right)/S.x}}const Wx=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:i,elements:a,middlewareData:l}=t,{element:c,padding:u=0}=ot(e,t)||{};if(c==null)return{};const f=Jc(u),h={x:n,y:r},m=Os(o),y=ks(m),g=await i.getDimensions(c),v=m==="y",b=v?"top":"left",w=v?"bottom":"right",x=v?"clientHeight":"clientWidth",S=s.reference[y]+s.reference[m]-h[m]-s.floating[y],C=h[m]-s.reference[m],T=await(i.getOffsetParent==null?void 0:i.getOffsetParent(c));let A=T?T[x]:0;(!A||!await(i.isElement==null?void 0:i.isElement(T)))&&(A=a.floating[x]||s.floating[y]);const N=S/2-C/2,I=A/2-g[y]/2-1,O=pt(f[b],I),k=pt(f[w],I),L=O,W=A-g[y]-k,F=A/2-g[y]/2+N,Y=Ds(L,F,W),U=!l.arrow&&Yt(o)!=null&&F!==Y&&s.reference[y]/2-(F<L?O:k)-g[y]/2<0,H=U?F<L?F-L:F-W:0;return{[m]:h[m]+H,data:{[m]:Y,centerOffset:F-Y-H,...U&&{alignmentOffset:H}},reset:U}}}),Hx=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:s,rects:i,initialPlacement:a,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:f=!0,fallbackPlacements:h,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:g=!0,...v}=ot(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const b=st(o),w=We(a),x=st(a)===a,S=await(l.isRTL==null?void 0:l.isRTL(c.floating)),C=h||(x||!g?[_r(a)]:Lx(a)),T=y!=="none";!h&&T&&C.push(...Rx(a,g,y,S));const A=[a,...C],N=await On(t,v),I=[];let O=((r=s.flip)==null?void 0:r.overflows)||[];if(u&&I.push(N[b]),f){const F=Ox(o,i,S);I.push(N[F[0]],N[F[1]])}if(O=[...O,{placement:o,overflows:I}],!I.every(F=>F<=0)){var k,L;const F=(((k=s.flip)==null?void 0:k.index)||0)+1,Y=A[F];if(Y&&(!(f==="alignment"?w!==We(Y):!1)||O.every(V=>We(V.placement)===w?V.overflows[0]>0:!0)))return{data:{index:F,overflows:O},reset:{placement:Y}};let U=(L=O.filter(H=>H.overflows[0]<=0).sort((H,V)=>H.overflows[1]-V.overflows[1])[0])==null?void 0:L.placement;if(!U)switch(m){case"bestFit":{var W;const H=(W=O.filter(V=>{if(T){const B=We(V.placement);return B===w||B==="y"}return!0}).map(V=>[V.placement,V.overflows.filter(B=>B>0).reduce((B,ee)=>B+ee,0)]).sort((V,B)=>V[1]-B[1])[0])==null?void 0:W[0];H&&(U=H);break}case"initialPlacement":U=a;break}if(o!==U)return{reset:{placement:U}}}return{}}}};function eu(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function tu(e){return Ix.some(t=>e[t]>=0)}const jx=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=ot(e,t);switch(r){case"referenceHidden":{const s=await On(t,{...o,elementContext:"reference"}),i=eu(s,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:tu(i)}}}case"escaped":{const s=await On(t,{...o,altBoundary:!0}),i=eu(s,n.floating);return{data:{escapedOffsets:i,escaped:tu(i)}}}default:return{}}}}},nu=new Set(["left","top"]);async function Ux(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),i=st(n),a=Yt(n),l=We(n)==="y",c=nu.has(i)?-1:1,u=s&&l?-1:1,f=ot(t,e);let{mainAxis:h,crossAxis:m,alignmentAxis:y}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&typeof y=="number"&&(m=a==="end"?y*-1:y),l?{x:m*u,y:h*c}:{x:h*c,y:m*u}}const Gx=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:i,middlewareData:a}=t,l=await Ux(t,e);return i===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:s+l.y,data:{...l,placement:i}}}}},Kx=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:s=!0,crossAxis:i=!1,limiter:a={fn:v=>{let{x:b,y:w}=v;return{x:b,y:w}}},...l}=ot(e,t),c={x:n,y:r},u=await On(t,l),f=We(st(o)),h=_s(f);let m=c[h],y=c[f];if(s){const v=h==="y"?"top":"left",b=h==="y"?"bottom":"right",w=m+u[v],x=m-u[b];m=Ds(w,m,x)}if(i){const v=f==="y"?"top":"left",b=f==="y"?"bottom":"right",w=y+u[v],x=y-u[b];y=Ds(w,y,x)}const g=a.fn({...t,[h]:m,[f]:y});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[h]:s,[f]:i}}}}}},Yx=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:i}=t,{offset:a=0,mainAxis:l=!0,crossAxis:c=!0}=ot(e,t),u={x:n,y:r},f=We(o),h=_s(f);let m=u[h],y=u[f];const g=ot(a,t),v=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(l){const x=h==="y"?"height":"width",S=s.reference[h]-s.floating[x]+v.mainAxis,C=s.reference[h]+s.reference[x]-v.mainAxis;m<S?m=S:m>C&&(m=C)}if(c){var b,w;const x=h==="y"?"width":"height",S=nu.has(st(o)),C=s.reference[f]-s.floating[x]+(S&&((b=i.offset)==null?void 0:b[f])||0)+(S?0:v.crossAxis),T=s.reference[f]+s.reference[x]+(S?0:((w=i.offset)==null?void 0:w[f])||0)-(S?v.crossAxis:0);y<C?y=C:y>T&&(y=T)}return{[h]:m,[f]:y}}}},Xx=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:i,elements:a}=t,{apply:l=()=>{},...c}=ot(e,t),u=await On(t,c),f=st(o),h=Yt(o),m=We(o)==="y",{width:y,height:g}=s.floating;let v,b;f==="top"||f==="bottom"?(v=f,b=h===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(b=f,v=h==="end"?"top":"bottom");const w=g-u.top-u.bottom,x=y-u.left-u.right,S=pt(g-u[v],w),C=pt(y-u[b],x),T=!t.middlewareData.shift;let A=S,N=C;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(N=x),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(A=w),T&&!h){const O=Te(u.left,0),k=Te(u.right,0),L=Te(u.top,0),W=Te(u.bottom,0);m?N=y-2*(O!==0||k!==0?O+k:Te(u.left,u.right)):A=g-2*(L!==0||W!==0?L+W:Te(u.top,u.bottom))}await l({...t,availableWidth:N,availableHeight:A});const I=await i.getDimensions(a.floating);return y!==I.width||g!==I.height?{reset:{rects:!0}}:{}}}};function Or(){return typeof window<"u"}function Xt(e){return ru(e)?(e.nodeName||"").toLowerCase():"#document"}function Ae(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function He(e){var t;return(t=(ru(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function ru(e){return Or()?e instanceof Node||e instanceof Ae(e).Node:!1}function Oe(e){return Or()?e instanceof Element||e instanceof Ae(e).Element:!1}function je(e){return Or()?e instanceof HTMLElement||e instanceof Ae(e).HTMLElement:!1}function ou(e){return!Or()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ae(e).ShadowRoot}const qx=new Set(["inline","contents"]);function Ln(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Le(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!qx.has(o)}const Zx=new Set(["table","td","th"]);function Jx(e){return Zx.has(Xt(e))}const Qx=[":popover-open",":modal"];function Lr(e){return Qx.some(t=>{try{return e.matches(t)}catch{return!1}})}const eS=["transform","translate","scale","rotate","perspective"],tS=["transform","translate","scale","rotate","perspective","filter"],nS=["paint","layout","strict","content"];function Vs(e){const t=$s(),n=Oe(e)?Le(e):e;return eS.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||tS.some(r=>(n.willChange||"").includes(r))||nS.some(r=>(n.contain||"").includes(r))}function rS(e){let t=ht(e);for(;je(t)&&!qt(t);){if(Vs(t))return t;if(Lr(t))return null;t=ht(t)}return null}function $s(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const oS=new Set(["html","body","#document"]);function qt(e){return oS.has(Xt(e))}function Le(e){return Ae(e).getComputedStyle(e)}function Vr(e){return Oe(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ht(e){if(Xt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ou(e)&&e.host||He(e);return ou(t)?t.host:t}function su(e){const t=ht(e);return qt(t)?e.ownerDocument?e.ownerDocument.body:e.body:je(t)&&Ln(t)?t:su(t)}function Vn(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=su(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),i=Ae(o);if(s){const a=Fs(i);return t.concat(i,i.visualViewport||[],Ln(o)?o:[],a&&n?Vn(a):[])}return t.concat(o,Vn(o,[],n))}function Fs(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function iu(e){const t=Le(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=je(e),s=o?e.offsetWidth:n,i=o?e.offsetHeight:r,a=Ir(n)!==s||Ir(r)!==i;return a&&(n=s,r=i),{width:n,height:r,$:a}}function Rs(e){return Oe(e)?e:e.contextElement}function Zt(e){const t=Rs(e);if(!je(t))return ze(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=iu(t);let i=(s?Ir(n.width):n.width)/r,a=(s?Ir(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!a||!Number.isFinite(a))&&(a=1),{x:i,y:a}}const sS=ze(0);function au(e){const t=Ae(e);return!$s()||!t.visualViewport?sS:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function iS(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Ae(e)?!1:t}function Nt(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=Rs(e);let i=ze(1);t&&(r?Oe(r)&&(i=Zt(r)):i=Zt(e));const a=iS(s,n,r)?au(s):ze(0);let l=(o.left+a.x)/i.x,c=(o.top+a.y)/i.y,u=o.width/i.x,f=o.height/i.y;if(s){const h=Ae(s),m=r&&Oe(r)?Ae(r):r;let y=h,g=Fs(y);for(;g&&r&&m!==y;){const v=Zt(g),b=g.getBoundingClientRect(),w=Le(g),x=b.left+(g.clientLeft+parseFloat(w.paddingLeft))*v.x,S=b.top+(g.clientTop+parseFloat(w.paddingTop))*v.y;l*=v.x,c*=v.y,u*=v.x,f*=v.y,l+=x,c+=S,y=Ae(g),g=Fs(y)}}return kr({width:u,height:f,x:l,y:c})}function $r(e,t){const n=Vr(e).scrollLeft;return t?t.left+n:Nt(He(e)).left+n}function lu(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-$r(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function aS(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",i=He(r),a=t?Lr(t.floating):!1;if(r===i||a&&s)return n;let l={scrollLeft:0,scrollTop:0},c=ze(1);const u=ze(0),f=je(r);if((f||!f&&!s)&&((Xt(r)!=="body"||Ln(i))&&(l=Vr(r)),je(r))){const m=Nt(r);c=Zt(r),u.x=m.x+r.clientLeft,u.y=m.y+r.clientTop}const h=i&&!f&&!s?lu(i,l):ze(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+h.x,y:n.y*c.y-l.scrollTop*c.y+u.y+h.y}}function lS(e){return Array.from(e.getClientRects())}function cS(e){const t=He(e),n=Vr(e),r=e.ownerDocument.body,o=Te(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=Te(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+$r(e);const a=-n.scrollTop;return Le(r).direction==="rtl"&&(i+=Te(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:i,y:a}}const cu=25;function uS(e,t){const n=Ae(e),r=He(e),o=n.visualViewport;let s=r.clientWidth,i=r.clientHeight,a=0,l=0;if(o){s=o.width,i=o.height;const u=$s();(!u||u&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}const c=$r(r);if(c<=0){const u=r.ownerDocument,f=u.body,h=getComputedStyle(f),m=u.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,y=Math.abs(r.clientWidth-f.clientWidth-m);y<=cu&&(s-=y)}else c<=cu&&(s+=c);return{width:s,height:i,x:a,y:l}}const dS=new Set(["absolute","fixed"]);function fS(e,t){const n=Nt(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=je(e)?Zt(e):ze(1),i=e.clientWidth*s.x,a=e.clientHeight*s.y,l=o*s.x,c=r*s.y;return{width:i,height:a,x:l,y:c}}function uu(e,t,n){let r;if(t==="viewport")r=uS(e,n);else if(t==="document")r=cS(He(e));else if(Oe(t))r=fS(t,n);else{const o=au(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return kr(r)}function du(e,t){const n=ht(e);return n===t||!Oe(n)||qt(n)?!1:Le(n).position==="fixed"||du(n,t)}function pS(e,t){const n=t.get(e);if(n)return n;let r=Vn(e,[],!1).filter(a=>Oe(a)&&Xt(a)!=="body"),o=null;const s=Le(e).position==="fixed";let i=s?ht(e):e;for(;Oe(i)&&!qt(i);){const a=Le(i),l=Vs(i);!l&&a.position==="fixed"&&(o=null),(s?!l&&!o:!l&&a.position==="static"&&!!o&&dS.has(o.position)||Ln(i)&&!l&&du(e,i))?r=r.filter(u=>u!==i):o=a,i=ht(i)}return t.set(e,r),r}function hS(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?Lr(t)?[]:pS(t,this._c):[].concat(n),r],a=i[0],l=i.reduce((c,u)=>{const f=uu(t,u,o);return c.top=Te(f.top,c.top),c.right=pt(f.right,c.right),c.bottom=pt(f.bottom,c.bottom),c.left=Te(f.left,c.left),c},uu(t,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function mS(e){const{width:t,height:n}=iu(e);return{width:t,height:n}}function gS(e,t,n){const r=je(t),o=He(t),s=n==="fixed",i=Nt(e,!0,s,t);let a={scrollLeft:0,scrollTop:0};const l=ze(0);function c(){l.x=$r(o)}if(r||!r&&!s)if((Xt(t)!=="body"||Ln(o))&&(a=Vr(t)),r){const m=Nt(t,!0,s,t);l.x=m.x+t.clientLeft,l.y=m.y+t.clientTop}else o&&c();s&&!r&&o&&c();const u=o&&!r&&!s?lu(o,a):ze(0),f=i.left+a.scrollLeft-l.x-u.x,h=i.top+a.scrollTop-l.y-u.y;return{x:f,y:h,width:i.width,height:i.height}}function Bs(e){return Le(e).position==="static"}function fu(e,t){if(!je(e)||Le(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return He(e)===n&&(n=n.ownerDocument.body),n}function pu(e,t){const n=Ae(e);if(Lr(e))return n;if(!je(e)){let o=ht(e);for(;o&&!qt(o);){if(Oe(o)&&!Bs(o))return o;o=ht(o)}return n}let r=fu(e,t);for(;r&&Jx(r)&&Bs(r);)r=fu(r,t);return r&&qt(r)&&Bs(r)&&!Vs(r)?n:r||rS(e)||n}const vS=async function(e){const t=this.getOffsetParent||pu,n=this.getDimensions,r=await n(e.floating);return{reference:gS(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function yS(e){return Le(e).direction==="rtl"}const bS={convertOffsetParentRelativeRectToViewportRelativeRect:aS,getDocumentElement:He,getClippingRect:hS,getOffsetParent:pu,getElementRects:vS,getClientRects:lS,getDimensions:mS,getScale:Zt,isElement:Oe,isRTL:yS};function hu(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function wS(e,t){let n=null,r;const o=He(e);function s(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function i(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),s();const c=e.getBoundingClientRect(),{left:u,top:f,width:h,height:m}=c;if(a||t(),!h||!m)return;const y=Dr(f),g=Dr(o.clientWidth-(u+h)),v=Dr(o.clientHeight-(f+m)),b=Dr(u),x={rootMargin:-y+"px "+-g+"px "+-v+"px "+-b+"px",threshold:Te(0,pt(1,l))||1};let S=!0;function C(T){const A=T[0].intersectionRatio;if(A!==l){if(!S)return i();A?i(!1,A):r=setTimeout(()=>{i(!1,1e-7)},1e3)}A===1&&!hu(c,e.getBoundingClientRect())&&i(),S=!1}try{n=new IntersectionObserver(C,{...x,root:o.ownerDocument})}catch{n=new IntersectionObserver(C,x)}n.observe(e)}return i(!0),s}function xS(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=Rs(e),u=o||s?[...c?Vn(c):[],...Vn(t)]:[];u.forEach(b=>{o&&b.addEventListener("scroll",n,{passive:!0}),s&&b.addEventListener("resize",n)});const f=c&&a?wS(c,n):null;let h=-1,m=null;i&&(m=new ResizeObserver(b=>{let[w]=b;w&&w.target===c&&m&&(m.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var x;(x=m)==null||x.observe(t)})),n()}),c&&!l&&m.observe(c),m.observe(t));let y,g=l?Nt(e):null;l&&v();function v(){const b=Nt(e);g&&!hu(g,b)&&n(),g=b,y=requestAnimationFrame(v)}return n(),()=>{var b;u.forEach(w=>{o&&w.removeEventListener("scroll",n),s&&w.removeEventListener("resize",n)}),f==null||f(),(b=m)==null||b.disconnect(),m=null,l&&cancelAnimationFrame(y)}}const SS=Gx,CS=Kx,ES=Hx,PS=Xx,TS=jx,mu=Wx,AS=Yx,NS=(e,t,n)=>{const r=new Map,o={platform:bS,...n},s={...o.platform,_c:r};return zx(e,t,{...o,platform:s})};var MS=typeof document<"u",IS=function(){},Fr=MS?E.useLayoutEffect:IS;function Rr(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Rr(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const s=o[r];if(!(s==="_owner"&&e.$$typeof)&&!Rr(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function gu(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function vu(e,t){const n=gu(e);return Math.round(t*n)/n}function zs(e){const t=d.useRef(e);return Fr(()=>{t.current=e}),t}function DS(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:i}={},transform:a=!0,whileElementsMounted:l,open:c}=e,[u,f]=d.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,m]=d.useState(r);Rr(h,r)||m(r);const[y,g]=d.useState(null),[v,b]=d.useState(null),w=d.useCallback(V=>{V!==T.current&&(T.current=V,g(V))},[]),x=d.useCallback(V=>{V!==A.current&&(A.current=V,b(V))},[]),S=s||y,C=i||v,T=d.useRef(null),A=d.useRef(null),N=d.useRef(u),I=l!=null,O=zs(l),k=zs(o),L=zs(c),W=d.useCallback(()=>{if(!T.current||!A.current)return;const V={placement:t,strategy:n,middleware:h};k.current&&(V.platform=k.current),NS(T.current,A.current,V).then(B=>{const ee={...B,isPositioned:L.current!==!1};F.current&&!Rr(N.current,ee)&&(N.current=ee,Pn.flushSync(()=>{f(ee)}))})},[h,t,n,k,L]);Fr(()=>{c===!1&&N.current.isPositioned&&(N.current.isPositioned=!1,f(V=>({...V,isPositioned:!1})))},[c]);const F=d.useRef(!1);Fr(()=>(F.current=!0,()=>{F.current=!1}),[]),Fr(()=>{if(S&&(T.current=S),C&&(A.current=C),S&&C){if(O.current)return O.current(S,C,W);W()}},[S,C,W,O,I]);const Y=d.useMemo(()=>({reference:T,floating:A,setReference:w,setFloating:x}),[w,x]),U=d.useMemo(()=>({reference:S,floating:C}),[S,C]),H=d.useMemo(()=>{const V={position:n,left:0,top:0};if(!U.floating)return V;const B=vu(U.floating,u.x),ee=vu(U.floating,u.y);return a?{...V,transform:"translate("+B+"px, "+ee+"px)",...gu(U.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:B,top:ee}},[n,a,U.floating,u.x,u.y]);return d.useMemo(()=>({...u,update:W,refs:Y,elements:U,floatingStyles:H}),[u,W,Y,U,H])}const _S=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?mu({element:r.current,padding:o}).fn(n):{}:r?mu({element:r,padding:o}).fn(n):{}}}},kS=(e,t)=>({...SS(e),options:[e,t]}),OS=(e,t)=>({...CS(e),options:[e,t]}),LS=(e,t)=>({...AS(e),options:[e,t]}),VS=(e,t)=>({...ES(e),options:[e,t]}),$S=(e,t)=>({...PS(e),options:[e,t]}),FS=(e,t)=>({...TS(e),options:[e,t]}),RS=(e,t)=>({..._S(e),options:[e,t]});var BS="Arrow",yu=d.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return p.jsx(j.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:p.jsx("polygon",{points:"0,0 30,0 15,10"})})});yu.displayName=BS;var zS=yu,Ws="Popper",[bu,Ue]=ge(Ws),[WS,wu]=bu(Ws),xu=e=>{const{__scopePopper:t,children:n}=e,[r,o]=d.useState(null);return p.jsx(WS,{scope:t,anchor:r,onAnchorChange:o,children:n})};xu.displayName=Ws;var Su="PopperAnchor",Cu=d.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=wu(Su,n),i=d.useRef(null),a=J(t,i),l=d.useRef(null);return d.useEffect(()=>{const c=l.current;l.current=(r==null?void 0:r.current)||i.current,c!==l.current&&s.onAnchorChange(l.current)}),r?null:p.jsx(j.div,{...o,ref:a})});Cu.displayName=Su;var Hs="PopperContent",[HS,jS]=bu(Hs),Eu=d.forwardRef((e,t)=>{var z,X,q,Z,se,ne;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:i=0,arrowPadding:a=0,avoidCollisions:l=!0,collisionBoundary:c=[],collisionPadding:u=0,sticky:f="partial",hideWhenDetached:h=!1,updatePositionStrategy:m="optimized",onPlaced:y,...g}=e,v=wu(Hs,n),[b,w]=d.useState(null),x=J(t,be=>w(be)),[S,C]=d.useState(null),T=In(S),A=(T==null?void 0:T.width)??0,N=(T==null?void 0:T.height)??0,I=r+(s!=="center"?"-"+s:""),O=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},k=Array.isArray(c)?c:[c],L=k.length>0,W={padding:O,boundary:k.filter(GS),altBoundary:L},{refs:F,floatingStyles:Y,placement:U,isPositioned:H,middlewareData:V}=DS({strategy:"fixed",placement:I,whileElementsMounted:(...be)=>xS(...be,{animationFrame:m==="always"}),elements:{reference:v.anchor},middleware:[kS({mainAxis:o+N,alignmentAxis:i}),l&&OS({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?LS():void 0,...W}),l&&VS({...W}),$S({...W,apply:({elements:be,rects:Pe,availableWidth:tt,availableHeight:nt})=>{const{width:At,height:ls}=Pe.reference,Wt=be.floating.style;Wt.setProperty("--radix-popper-available-width",`${tt}px`),Wt.setProperty("--radix-popper-available-height",`${nt}px`),Wt.setProperty("--radix-popper-anchor-width",`${At}px`),Wt.setProperty("--radix-popper-anchor-height",`${ls}px`)}}),S&&RS({element:S,padding:a}),KS({arrowWidth:A,arrowHeight:N}),h&&FS({strategy:"referenceHidden",...W})]}),[B,ee]=Au(U),te=ce(y);de(()=>{H&&(te==null||te())},[H,te]);const D=(z=V.arrow)==null?void 0:z.x,G=(X=V.arrow)==null?void 0:X.y,R=((q=V.arrow)==null?void 0:q.centerOffset)!==0,[$,K]=d.useState();return de(()=>{b&&K(window.getComputedStyle(b).zIndex)},[b]),p.jsx("div",{ref:F.setFloating,"data-radix-popper-content-wrapper":"",style:{...Y,transform:H?Y.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:$,"--radix-popper-transform-origin":[(Z=V.transformOrigin)==null?void 0:Z.x,(se=V.transformOrigin)==null?void 0:se.y].join(" "),...((ne=V.hide)==null?void 0:ne.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:p.jsx(HS,{scope:n,placedSide:B,onArrowChange:C,arrowX:D,arrowY:G,shouldHideArrow:R,children:p.jsx(j.div,{"data-side":B,"data-align":ee,...g,ref:x,style:{...g.style,animation:H?void 0:"none"}})})})});Eu.displayName=Hs;var Pu="PopperArrow",US={top:"bottom",right:"left",bottom:"top",left:"right"},Tu=d.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=jS(Pu,r),i=US[s.placedSide];return p.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:p.jsx(zS,{...o,ref:n,style:{...o.style,display:"block"}})})});Tu.displayName=Pu;function GS(e){return e!==null}var KS=e=>({name:"transformOrigin",options:e,fn(t){var v,b,w;const{placement:n,rects:r,middlewareData:o}=t,i=((v=o.arrow)==null?void 0:v.centerOffset)!==0,a=i?0:e.arrowWidth,l=i?0:e.arrowHeight,[c,u]=Au(n),f={start:"0%",center:"50%",end:"100%"}[u],h=(((b=o.arrow)==null?void 0:b.x)??0)+a/2,m=(((w=o.arrow)==null?void 0:w.y)??0)+l/2;let y="",g="";return c==="bottom"?(y=i?f:`${h}px`,g=`${-l}px`):c==="top"?(y=i?f:`${h}px`,g=`${r.floating.height+l}px`):c==="right"?(y=`${-l}px`,g=i?f:`${m}px`):c==="left"&&(y=`${r.floating.width+l}px`,g=i?f:`${m}px`),{data:{x:y,y:g}}}});function Au(e){const[t,n="center"]=e.split("-");return[t,n]}var Jt=xu,Qt=Cu,$n=Eu,Fn=Tu,YS="Portal",en=d.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[o,s]=d.useState(!1);de(()=>s(!0),[]);const i=n||o&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return i?Dl.createPortal(p.jsx(j.div,{...r,ref:t}),i):null});en.displayName=YS;function XS(e){const t=qS(e),n=d.forwardRef((r,o)=>{const{children:s,...i}=r,a=d.Children.toArray(s),l=a.find(JS);if(l){const c=l.props.children,u=a.map(f=>f===l?d.Children.count(c)>1?d.Children.only(null):d.isValidElement(c)?c.props.children:null:f);return p.jsx(t,{...i,ref:o,children:d.isValidElement(c)?d.cloneElement(c,void 0,u):null})}return p.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function qS(e){const t=d.forwardRef((n,r)=>{const{children:o,...s}=n;if(d.isValidElement(o)){const i=eC(o),a=QS(s,o.props);return o.type!==d.Fragment&&(a.ref=r?Se(r,i):i),d.cloneElement(o,a)}return d.Children.count(o)>1?d.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var ZS=Symbol("radix.slottable");function JS(e){return d.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===ZS}function QS(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...a)=>{const l=s(...a);return o(...a),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function eC(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Nu=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"}),tC="VisuallyHidden",Br=d.forwardRef((e,t)=>p.jsx(j.span,{...e,ref:t,style:{...Nu,...e.style}}));Br.displayName=tC;var nC=Br,rC=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},tn=new WeakMap,zr=new WeakMap,Wr={},js=0,Mu=function(e){return e&&(e.host||Mu(e.parentNode))},oC=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Mu(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},sC=function(e,t,n,r){var o=oC(t,Array.isArray(e)?e:[e]);Wr[n]||(Wr[n]=new WeakMap);var s=Wr[n],i=[],a=new Set,l=new Set(o),c=function(f){!f||a.has(f)||(a.add(f),c(f.parentNode))};o.forEach(c);var u=function(f){!f||l.has(f)||Array.prototype.forEach.call(f.children,function(h){if(a.has(h))u(h);else try{var m=h.getAttribute(r),y=m!==null&&m!=="false",g=(tn.get(h)||0)+1,v=(s.get(h)||0)+1;tn.set(h,g),s.set(h,v),i.push(h),g===1&&y&&zr.set(h,!0),v===1&&h.setAttribute(n,"true"),y||h.setAttribute(r,"true")}catch(b){console.error("aria-hidden: cannot operate on ",h,b)}})};return u(t),a.clear(),js++,function(){i.forEach(function(f){var h=tn.get(f)-1,m=s.get(f)-1;tn.set(f,h),s.set(f,m),h||(zr.has(f)||f.removeAttribute(r),zr.delete(f)),m||f.removeAttribute(n)}),js--,js||(tn=new WeakMap,tn=new WeakMap,zr=new WeakMap,Wr={})}},Hr=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=rC(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),sC(r,o,n,"aria-hidden")):function(){return null}},Ge=function(){return Ge=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},Ge.apply(this,arguments)};function Iu(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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function iC(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,s;r<o;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var jr="right-scroll-bar-position",Ur="width-before-scroll-bar",aC="with-scroll-bars-hidden",lC="--removed-body-scroll-bar-size";function Us(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function cC(e,t){var n=E.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var uC=typeof window<"u"?d.useLayoutEffect:d.useEffect,Du=new WeakMap;function dC(e,t){var n=cC(null,function(r){return e.forEach(function(o){return Us(o,r)})});return uC(function(){var r=Du.get(n);if(r){var o=new Set(r),s=new Set(e),i=n.current;o.forEach(function(a){s.has(a)||Us(a,null)}),s.forEach(function(a){o.has(a)||Us(a,i)})}Du.set(n,e)},[e]),n}function fC(e){return e}function pC(e,t){t===void 0&&(t=fC);var n=[],r=!1,o={read:function(){if(r)throw new 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(s){var i=t(s,r);return n.push(i),function(){n=n.filter(function(a){return a!==i})}},assignSyncMedium:function(s){for(r=!0;n.length;){var i=n;n=[],i.forEach(s)}n={push:function(a){return s(a)},filter:function(){return n}}},assignMedium:function(s){r=!0;var i=[];if(n.length){var a=n;n=[],a.forEach(s),i=n}var l=function(){var u=i;i=[],u.forEach(s)},c=function(){return Promise.resolve().then(l)};c(),n={push:function(u){i.push(u),c()},filter:function(u){return i=i.filter(u),n}}}};return o}function hC(e){e===void 0&&(e={});var t=pC(null);return t.options=Ge({async:!0,ssr:!1},e),t}var _u=function(e){var t=e.sideCar,n=Iu(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return d.createElement(r,Ge({},n))};_u.isSideCarExport=!0;function mC(e,t){return e.useMedium(t),_u}var ku=hC(),Gs=function(){},Gr=d.forwardRef(function(e,t){var n=d.useRef(null),r=d.useState({onScrollCapture:Gs,onWheelCapture:Gs,onTouchMoveCapture:Gs}),o=r[0],s=r[1],i=e.forwardProps,a=e.children,l=e.className,c=e.removeScrollBar,u=e.enabled,f=e.shards,h=e.sideCar,m=e.noRelative,y=e.noIsolation,g=e.inert,v=e.allowPinchZoom,b=e.as,w=b===void 0?"div":b,x=e.gapMode,S=Iu(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=h,T=dC([n,t]),A=Ge(Ge({},S),o);return d.createElement(d.Fragment,null,u&&d.createElement(C,{sideCar:ku,removeScrollBar:c,shards:f,noRelative:m,noIsolation:y,inert:g,setCallbacks:s,allowPinchZoom:!!v,lockRef:n,gapMode:x}),i?d.cloneElement(d.Children.only(a),Ge(Ge({},A),{ref:T})):d.createElement(w,Ge({},A,{className:l,ref:T}),a))});Gr.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Gr.classNames={fullWidth:Ur,zeroRight:jr};var gC=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function vC(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=gC();return t&&e.setAttribute("nonce",t),e}function yC(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function bC(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var wC=function(){var e=0,t=null;return{add:function(n){e==0&&(t=vC())&&(yC(t,n),bC(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},xC=function(){var e=wC();return function(t,n){d.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Ou=function(){var e=xC(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},SC={left:0,top:0,right:0,gap:0},Ks=function(e){return parseInt(e||"",10)||0},CC=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Ks(n),Ks(r),Ks(o)]},EC=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return SC;var t=CC(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])}},PC=Ou(),nn="data-scroll-locked",TC=function(e,t,n,r){var o=e.left,s=e.top,i=e.right,a=e.gap;return n===void 0&&(n="margin"),`
|
|
62
|
+
.`.concat(aC,` {
|
|
63
63
|
overflow: hidden `).concat(r,`;
|
|
64
64
|
padding-right: `).concat(a,"px ").concat(r,`;
|
|
65
65
|
}
|
|
66
|
-
body[`).concat(
|
|
66
|
+
body[`).concat(nn,`] {
|
|
67
67
|
overflow: hidden `).concat(r,`;
|
|
68
68
|
overscroll-behavior: contain;
|
|
69
69
|
`).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
|
|
@@ -76,38 +76,38 @@
|
|
|
76
76
|
`),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),`
|
|
77
77
|
}
|
|
78
78
|
|
|
79
|
-
.`).concat(
|
|
79
|
+
.`).concat(jr,` {
|
|
80
80
|
right: `).concat(a,"px ").concat(r,`;
|
|
81
81
|
}
|
|
82
82
|
|
|
83
|
-
.`).concat(
|
|
83
|
+
.`).concat(Ur,` {
|
|
84
84
|
margin-right: `).concat(a,"px ").concat(r,`;
|
|
85
85
|
}
|
|
86
86
|
|
|
87
|
-
.`).concat(
|
|
87
|
+
.`).concat(jr," .").concat(jr,` {
|
|
88
88
|
right: 0 `).concat(r,`;
|
|
89
89
|
}
|
|
90
90
|
|
|
91
|
-
.`).concat(
|
|
91
|
+
.`).concat(Ur," .").concat(Ur,` {
|
|
92
92
|
margin-right: 0 `).concat(r,`;
|
|
93
93
|
}
|
|
94
94
|
|
|
95
|
-
body[`).concat(
|
|
96
|
-
`).concat(
|
|
95
|
+
body[`).concat(nn,`] {
|
|
96
|
+
`).concat(lC,": ").concat(a,`px;
|
|
97
97
|
}
|
|
98
|
-
`)},
|
|
98
|
+
`)},Lu=function(){var e=parseInt(document.body.getAttribute(nn)||"0",10);return isFinite(e)?e:0},AC=function(){d.useEffect(function(){return document.body.setAttribute(nn,(Lu()+1).toString()),function(){var e=Lu()-1;e<=0?document.body.removeAttribute(nn):document.body.setAttribute(nn,e.toString())}},[])},NC=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;AC();var s=d.useMemo(function(){return EC(o)},[o]);return d.createElement(PC,{styles:TC(s,!t,o,n?"":"!important")})},Ys=!1;if(typeof window<"u")try{var Kr=Object.defineProperty({},"passive",{get:function(){return Ys=!0,!0}});window.addEventListener("test",Kr,Kr),window.removeEventListener("test",Kr,Kr)}catch{Ys=!1}var rn=Ys?{passive:!1}:!1,MC=function(e){return e.tagName==="TEXTAREA"},Vu=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!MC(e)&&n[t]==="visible")},IC=function(e){return Vu(e,"overflowY")},DC=function(e){return Vu(e,"overflowX")},$u=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=Fu(e,r);if(o){var s=Ru(e,r),i=s[1],a=s[2];if(i>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},_C=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},kC=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Fu=function(e,t){return e==="v"?IC(t):DC(t)},Ru=function(e,t){return e==="v"?_C(t):kC(t)},OC=function(e,t){return e==="h"&&t==="rtl"?-1:1},LC=function(e,t,n,r,o){var s=OC(e,window.getComputedStyle(t).direction),i=s*r,a=n.target,l=t.contains(a),c=!1,u=i>0,f=0,h=0;do{if(!a)break;var m=Ru(e,a),y=m[0],g=m[1],v=m[2],b=g-v-s*y;(y||b)&&Fu(e,a)&&(f+=b,h+=y);var w=a.parentNode;a=w&&w.nodeType===Node.DOCUMENT_FRAGMENT_NODE?w.host:w}while(!l&&a!==document.body||l&&(t.contains(a)||t===a));return(u&&Math.abs(f)<1||!u&&Math.abs(h)<1)&&(c=!0),c},Yr=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Bu=function(e){return[e.deltaX,e.deltaY]},zu=function(e){return e&&"current"in e?e.current:e},VC=function(e,t){return e[0]===t[0]&&e[1]===t[1]},$C=function(e){return`
|
|
99
99
|
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
100
100
|
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
101
|
-
`)},jC=0,an=[];function UC(e){var t=u.useRef([]),n=u.useRef([0,0]),r=u.useRef(),o=u.useState(jC++)[0],s=u.useState(ju)[0],i=u.useRef(e);u.useEffect(function(){i.current=e},[e]),u.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var g=fC([e.lockRef.current],(e.shards||[]).map(Zu),!0).filter(Boolean);return g.forEach(function(v){return v.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),g.forEach(function(v){return v.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=u.useCallback(function(g,v){if("touches"in g&&g.touches.length===2||g.type==="wheel"&&g.ctrlKey)return!i.current.allowPinchZoom;var b=Jr(g),w=n.current,x="deltaX"in g?g.deltaX:w[0]-b[0],S="deltaY"in g?g.deltaY:w[1]-b[1],C,T=g.target,A=Math.abs(x)>Math.abs(S)?"h":"v";if("touches"in g&&A==="h"&&T.type==="range")return!1;var N=window.getSelection(),I=N&&N.anchorNode,O=I?I===T||I.contains(T):!1;if(O)return!1;var L=Ku(A,T);if(!L)return!0;if(L?C=A:(C=A==="v"?"h":"v",L=Ku(A,T)),!L)return!1;if(!r.current&&"changedTouches"in g&&(x||S)&&(r.current=C),!C)return!0;var V=r.current||C;return zC(V,v,g,V==="h"?x:S)},[]),l=u.useCallback(function(g){var v=g;if(!(!an.length||an[an.length-1]!==s)){var b="deltaY"in v?qu(v):Jr(v),w=t.current.filter(function(C){return C.name===v.type&&(C.target===v.target||v.target===C.shadowParent)&&WC(C.delta,b)})[0];if(w&&w.should){v.cancelable&&v.preventDefault();return}if(!w){var x=(i.current.shards||[]).map(Zu).filter(Boolean).filter(function(C){return C.contains(v.target)}),S=x.length>0?a(v,x[0]):!i.current.noIsolation;S&&v.cancelable&&v.preventDefault()}}},[]),c=u.useCallback(function(g,v,b,w){var x={name:g,delta:v,target:b,should:w,shadowParent:GC(b)};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(S){return S!==x})},1)},[]),d=u.useCallback(function(g){n.current=Jr(g),r.current=void 0},[]),f=u.useCallback(function(g){c(g.type,qu(g),g.target,a(g,e.lockRef.current))},[]),h=u.useCallback(function(g){c(g.type,Jr(g),g.target,a(g,e.lockRef.current))},[]);u.useEffect(function(){return an.push(s),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:h}),document.addEventListener("wheel",l,sn),document.addEventListener("touchmove",l,sn),document.addEventListener("touchstart",d,sn),function(){an=an.filter(function(g){return g!==s}),document.removeEventListener("wheel",l,sn),document.removeEventListener("touchmove",l,sn),document.removeEventListener("touchstart",d,sn)}},[]);var m=e.removeScrollBar,y=e.inert;return u.createElement(u.Fragment,null,y?u.createElement(s,{styles:HC(o)}):null,m?u.createElement(OC,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function GC(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const KC=xC(Hu,UC);var Bn=u.forwardRef(function(e,t){return u.createElement(qr,Ze({},e,{ref:t,sideCar:KC}))});Bn.classNames=qr.classNames;var YC=[" ","Enter","ArrowUp","ArrowDown"],XC=[" ","Enter"],_t="Select",[Qr,eo,qC]=Yt(_t),[ln]=ye(_t,[qC,qe]),to=qe(),[ZC,bt]=ln(_t),[JC,QC]=ln(_t),Ju=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:s,value:i,defaultValue:a,onValueChange:l,dir:c,name:d,autoComplete:f,disabled:h,required:m,form:y}=e,g=to(t),[v,b]=u.useState(null),[w,x]=u.useState(null),[S,C]=u.useState(!1),T=ht(c),[A,N]=we({prop:r,defaultProp:o??!1,onChange:s,caller:_t}),[I,O]=we({prop:i,defaultProp:a,onChange:l,caller:_t}),L=u.useRef(null),V=v?y||!!v.closest("form"):!0,[U,_]=u.useState(new Set),K=Array.from(U).map(H=>H.props.value).join(";");return p.jsx(en,{...g,children:p.jsxs(ZC,{required:m,scope:t,trigger:v,onTriggerChange:b,valueNode:w,onValueNodeChange:x,valueNodeHasChildren:S,onValueNodeHasChildrenChange:C,contentId:he(),value:I,onValueChange:O,open:A,onOpenChange:N,dir:T,triggerPointerDownPosRef:L,disabled:h,children:[p.jsx(Qr.Provider,{scope:t,children:p.jsx(JC,{scope:e.__scopeSelect,onNativeOptionAdd:u.useCallback(H=>{_(B=>new Set(B).add(H))},[]),onNativeOptionRemove:u.useCallback(H=>{_(B=>{const $=new Set(B);return $.delete(H),$})},[]),children:n})}),V?p.jsxs(xd,{"aria-hidden":!0,required:m,tabIndex:-1,name:d,autoComplete:f,value:I,onChange:H=>O(H.target.value),disabled:h,form:y,children:[I===void 0?p.jsx("option",{value:""}):null,Array.from(U)]},K):null]})})};Ju.displayName=_t;var Qu="SelectTrigger",ed=u.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,s=to(n),i=bt(Qu,n),a=i.disabled||r,l=J(t,i.onTriggerChange),c=eo(n),d=u.useRef("touch"),[f,h,m]=Cd(g=>{const v=c().filter(x=>!x.disabled),b=v.find(x=>x.value===i.value),w=Ed(v,g,b);w!==void 0&&i.onValueChange(w.value)}),y=g=>{a||(i.onOpenChange(!0),m()),g&&(i.triggerPointerDownPosRef.current={x:Math.round(g.pageX),y:Math.round(g.pageY)})};return p.jsx(tn,{asChild:!0,...s,children:p.jsx(W.button,{type:"button",role:"combobox","aria-controls":i.contentId,"aria-expanded":i.open,"aria-required":i.required,"aria-autocomplete":"none",dir:i.dir,"data-state":i.open?"open":"closed",disabled:a,"data-disabled":a?"":void 0,"data-placeholder":Sd(i.value)?"":void 0,...o,ref:l,onClick:k(o.onClick,g=>{g.currentTarget.focus(),d.current!=="mouse"&&y(g)}),onPointerDown:k(o.onPointerDown,g=>{d.current=g.pointerType;const v=g.target;v.hasPointerCapture(g.pointerId)&&v.releasePointerCapture(g.pointerId),g.button===0&&g.ctrlKey===!1&&g.pointerType==="mouse"&&(y(g),g.preventDefault())}),onKeyDown:k(o.onKeyDown,g=>{const v=f.current!=="";!(g.ctrlKey||g.altKey||g.metaKey)&&g.key.length===1&&h(g.key),!(v&&g.key===" ")&&YC.includes(g.key)&&(y(),g.preventDefault())})})})});ed.displayName=Qu;var td="SelectValue",nd=u.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:s,placeholder:i="",...a}=e,l=bt(td,n),{onValueNodeHasChildrenChange:c}=l,d=s!==void 0,f=J(t,l.onValueNodeChange);return pe(()=>{c(d)},[c,d]),p.jsx(W.span,{...a,ref:f,style:{pointerEvents:"none"},children:Sd(l.value)?p.jsx(p.Fragment,{children:i}):s})});nd.displayName=td;var eE="SelectIcon",rd=u.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return p.jsx(W.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});rd.displayName=eE;var tE="SelectPortal",od=e=>p.jsx(nn,{asChild:!0,...e});od.displayName=tE;var kt="SelectContent",sd=u.forwardRef((e,t)=>{const n=bt(kt,e.__scopeSelect),[r,o]=u.useState();if(pe(()=>{o(new DocumentFragment)},[]),!n.open){const s=r;return s?Tn.createPortal(p.jsx(id,{scope:e.__scopeSelect,children:p.jsx(Qr.Slot,{scope:e.__scopeSelect,children:p.jsx("div",{children:e.children})})}),s):null}return p.jsx(ad,{...e,ref:t})});sd.displayName=kt;var Be=10,[id,wt]=ln(kt),nE="SelectContentImpl",rE=tC("SelectContent.RemoveScroll"),ad=u.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:s,onPointerDownOutside:i,side:a,sideOffset:l,align:c,alignOffset:d,arrowPadding:f,collisionBoundary:h,collisionPadding:m,sticky:y,hideWhenDetached:g,avoidCollisions:v,...b}=e,w=bt(kt,n),[x,S]=u.useState(null),[C,T]=u.useState(null),A=J(t,z=>S(z)),[N,I]=u.useState(null),[O,L]=u.useState(null),V=eo(n),[U,_]=u.useState(!1),K=u.useRef(!1);u.useEffect(()=>{if(x)return Kr(x)},[x]),kr();const H=u.useCallback(z=>{const[Z,...q]=V().map(R=>R.ref.current),[ee]=q.slice(-1),le=document.activeElement;for(const R of z)if(R===le||(R==null||R.scrollIntoView({block:"nearest"}),R===Z&&C&&(C.scrollTop=0),R===ee&&C&&(C.scrollTop=C.scrollHeight),R==null||R.focus(),document.activeElement!==le))return},[V,C]),B=u.useCallback(()=>H([N,x]),[H,N,x]);u.useEffect(()=>{U&&B()},[U,B]);const{onOpenChange:$,triggerPointerDownPosRef:F}=w;u.useEffect(()=>{if(x){let z={x:0,y:0};const Z=ee=>{var le,R;z={x:Math.abs(Math.round(ee.pageX)-(((le=F.current)==null?void 0:le.x)??0)),y:Math.abs(Math.round(ee.pageY)-(((R=F.current)==null?void 0:R.y)??0))}},q=ee=>{z.x<=10&&z.y<=10?ee.preventDefault():x.contains(ee.target)||$(!1),document.removeEventListener("pointermove",Z),F.current=null};return F.current!==null&&(document.addEventListener("pointermove",Z),document.addEventListener("pointerup",q,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",Z),document.removeEventListener("pointerup",q,{capture:!0})}}},[x,$,F]),u.useEffect(()=>{const z=()=>$(!1);return window.addEventListener("blur",z),window.addEventListener("resize",z),()=>{window.removeEventListener("blur",z),window.removeEventListener("resize",z)}},[$]);const[ne,re]=Cd(z=>{const Z=V().filter(le=>!le.disabled),q=Z.find(le=>le.ref.current===document.activeElement),ee=Ed(Z,z,q);ee&&setTimeout(()=>ee.ref.current.focus())}),D=u.useCallback((z,Z,q)=>{const ee=!K.current&&!q;(w.value!==void 0&&w.value===Z||ee)&&(I(z),ee&&(K.current=!0))},[w.value]),G=u.useCallback(()=>x==null?void 0:x.focus(),[x]),X=u.useCallback((z,Z,q)=>{const ee=!K.current&&!q;(w.value!==void 0&&w.value===Z||ee)&&L(z)},[w.value]),j=r==="popper"?Qs:ld,Q=j===Qs?{side:a,sideOffset:l,align:c,alignOffset:d,arrowPadding:f,collisionBoundary:h,collisionPadding:m,sticky:y,hideWhenDetached:g,avoidCollisions:v}:{};return p.jsx(id,{scope:n,content:x,viewport:C,onViewportChange:T,itemRefCallback:D,selectedItem:N,onItemLeave:G,itemTextRefCallback:X,focusSelectedItem:B,selectedItemText:O,position:r,isPositioned:U,searchRef:ne,children:p.jsx(Bn,{as:rE,allowPinchZoom:!0,children:p.jsx(On,{asChild:!0,trapped:w.open,onMountAutoFocus:z=>{z.preventDefault()},onUnmountAutoFocus:k(o,z=>{var Z;(Z=w.trigger)==null||Z.focus({preventScroll:!0}),z.preventDefault()}),children:p.jsx(mt,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:z=>z.preventDefault(),onDismiss:()=>w.onOpenChange(!1),children:p.jsx(j,{role:"listbox",id:w.contentId,"data-state":w.open?"open":"closed",dir:w.dir,onContextMenu:z=>z.preventDefault(),...b,...Q,onPlaced:()=>_(!0),ref:A,style:{display:"flex",flexDirection:"column",outline:"none",...b.style},onKeyDown:k(b.onKeyDown,z=>{const Z=z.ctrlKey||z.altKey||z.metaKey;if(z.key==="Tab"&&z.preventDefault(),!Z&&z.key.length===1&&re(z.key),["ArrowUp","ArrowDown","Home","End"].includes(z.key)){let ee=V().filter(le=>!le.disabled).map(le=>le.ref.current);if(["ArrowUp","End"].includes(z.key)&&(ee=ee.slice().reverse()),["ArrowUp","ArrowDown"].includes(z.key)){const le=z.target,R=ee.indexOf(le);ee=ee.slice(R+1)}setTimeout(()=>H(ee)),z.preventDefault()}})})})})})})});ad.displayName=nE;var oE="SelectItemAlignedPosition",ld=u.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,s=bt(kt,n),i=wt(kt,n),[a,l]=u.useState(null),[c,d]=u.useState(null),f=J(t,A=>d(A)),h=eo(n),m=u.useRef(!1),y=u.useRef(!0),{viewport:g,selectedItem:v,selectedItemText:b,focusSelectedItem:w}=i,x=u.useCallback(()=>{if(s.trigger&&s.valueNode&&a&&c&&g&&v&&b){const A=s.trigger.getBoundingClientRect(),N=c.getBoundingClientRect(),I=s.valueNode.getBoundingClientRect(),O=b.getBoundingClientRect();if(s.dir!=="rtl"){const le=O.left-N.left,R=I.left-le,Y=A.left-R,ae=A.width+Y,Ie=Math.max(ae,N.width),De=window.innerWidth-Be,_e=kn(R,[Be,Math.max(Be,De-Ie)]);a.style.minWidth=ae+"px",a.style.left=_e+"px"}else{const le=N.right-O.right,R=window.innerWidth-I.right-le,Y=window.innerWidth-A.right-R,ae=A.width+Y,Ie=Math.max(ae,N.width),De=window.innerWidth-Be,_e=kn(R,[Be,Math.max(Be,De-Ie)]);a.style.minWidth=ae+"px",a.style.right=_e+"px"}const L=h(),V=window.innerHeight-Be*2,U=g.scrollHeight,_=window.getComputedStyle(c),K=parseInt(_.borderTopWidth,10),H=parseInt(_.paddingTop,10),B=parseInt(_.borderBottomWidth,10),$=parseInt(_.paddingBottom,10),F=K+H+U+$+B,ne=Math.min(v.offsetHeight*5,F),re=window.getComputedStyle(g),D=parseInt(re.paddingTop,10),G=parseInt(re.paddingBottom,10),X=A.top+A.height/2-Be,j=V-X,Q=v.offsetHeight/2,z=v.offsetTop+Q,Z=K+H+z,q=F-Z;if(Z<=X){const le=L.length>0&&v===L[L.length-1].ref.current;a.style.bottom="0px";const R=c.clientHeight-g.offsetTop-g.offsetHeight,Y=Math.max(j,Q+(le?G:0)+R+B),ae=Z+Y;a.style.height=ae+"px"}else{const le=L.length>0&&v===L[0].ref.current;a.style.top="0px";const Y=Math.max(X,K+g.offsetTop+(le?D:0)+Q)+q;a.style.height=Y+"px",g.scrollTop=Z-X+g.offsetTop}a.style.margin=`${Be}px 0`,a.style.minHeight=ne+"px",a.style.maxHeight=V+"px",r==null||r(),requestAnimationFrame(()=>m.current=!0)}},[h,s.trigger,s.valueNode,a,c,g,v,b,s.dir,r]);pe(()=>x(),[x]);const[S,C]=u.useState();pe(()=>{c&&C(window.getComputedStyle(c).zIndex)},[c]);const T=u.useCallback(A=>{A&&y.current===!0&&(x(),w==null||w(),y.current=!1)},[x,w]);return p.jsx(iE,{scope:n,contentWrapper:a,shouldExpandOnScrollRef:m,onScrollButtonChange:T,children:p.jsx("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:S},children:p.jsx(W.div,{...o,ref:f,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});ld.displayName=oE;var sE="SelectPopperPosition",Qs=u.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=Be,...s}=e,i=to(n);return p.jsx(Fn,{...i,...s,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...s.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Qs.displayName=sE;var[iE,ei]=ln(kt,{}),ti="SelectViewport",cd=u.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,s=wt(ti,n),i=ei(ti,n),a=J(t,s.onViewportChange),l=u.useRef(0);return p.jsxs(p.Fragment,{children:[p.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),p.jsx(Qr.Slot,{scope:n,children:p.jsx(W.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:a,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:k(o.onScroll,c=>{const d=c.currentTarget,{contentWrapper:f,shouldExpandOnScrollRef:h}=i;if(h!=null&&h.current&&f){const m=Math.abs(l.current-d.scrollTop);if(m>0){const y=window.innerHeight-Be*2,g=parseFloat(f.style.minHeight),v=parseFloat(f.style.height),b=Math.max(g,v);if(b<y){const w=b+m,x=Math.min(y,w),S=w-x;f.style.height=x+"px",f.style.bottom==="0px"&&(d.scrollTop=S>0?S:0,f.style.justifyContent="flex-end")}}}l.current=d.scrollTop})})})]})});cd.displayName=ti;var ud="SelectGroup",[aE,lE]=ln(ud),dd=u.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=he();return p.jsx(aE,{scope:n,id:o,children:p.jsx(W.div,{role:"group","aria-labelledby":o,...r,ref:t})})});dd.displayName=ud;var fd="SelectLabel",pd=u.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=lE(fd,n);return p.jsx(W.div,{id:o.id,...r,ref:t})});pd.displayName=fd;var no="SelectItem",[cE,hd]=ln(no),md=u.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:s,...i}=e,a=bt(no,n),l=wt(no,n),c=a.value===r,[d,f]=u.useState(s??""),[h,m]=u.useState(!1),y=J(t,w=>{var x;return(x=l.itemRefCallback)==null?void 0:x.call(l,w,r,o)}),g=he(),v=u.useRef("touch"),b=()=>{o||(a.onValueChange(r),a.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return p.jsx(cE,{scope:n,value:r,disabled:o,textId:g,isSelected:c,onItemTextChange:u.useCallback(w=>{f(x=>x||((w==null?void 0:w.textContent)??"").trim())},[]),children:p.jsx(Qr.ItemSlot,{scope:n,value:r,disabled:o,textValue:d,children:p.jsx(W.div,{role:"option","aria-labelledby":g,"data-highlighted":h?"":void 0,"aria-selected":c&&h,"data-state":c?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...i,ref:y,onFocus:k(i.onFocus,()=>m(!0)),onBlur:k(i.onBlur,()=>m(!1)),onClick:k(i.onClick,()=>{v.current!=="mouse"&&b()}),onPointerUp:k(i.onPointerUp,()=>{v.current==="mouse"&&b()}),onPointerDown:k(i.onPointerDown,w=>{v.current=w.pointerType}),onPointerMove:k(i.onPointerMove,w=>{var x;v.current=w.pointerType,o?(x=l.onItemLeave)==null||x.call(l):v.current==="mouse"&&w.currentTarget.focus({preventScroll:!0})}),onPointerLeave:k(i.onPointerLeave,w=>{var x;w.currentTarget===document.activeElement&&((x=l.onItemLeave)==null||x.call(l))}),onKeyDown:k(i.onKeyDown,w=>{var S;((S=l.searchRef)==null?void 0:S.current)!==""&&w.key===" "||(XC.includes(w.key)&&b(),w.key===" "&&w.preventDefault())})})})})});md.displayName=no;var zn="SelectItemText",gd=u.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...s}=e,i=bt(zn,n),a=wt(zn,n),l=hd(zn,n),c=QC(zn,n),[d,f]=u.useState(null),h=J(t,b=>f(b),l.onItemTextChange,b=>{var w;return(w=a.itemTextRefCallback)==null?void 0:w.call(a,b,l.value,l.disabled)}),m=d==null?void 0:d.textContent,y=u.useMemo(()=>p.jsx("option",{value:l.value,disabled:l.disabled,children:m},l.value),[l.disabled,l.value,m]),{onNativeOptionAdd:g,onNativeOptionRemove:v}=c;return pe(()=>(g(y),()=>v(y)),[g,v,y]),p.jsxs(p.Fragment,{children:[p.jsx(W.span,{id:l.textId,...s,ref:h}),l.isSelected&&i.valueNode&&!i.valueNodeHasChildren?Tn.createPortal(s.children,i.valueNode):null]})});gd.displayName=zn;var vd="SelectItemIndicator",yd=u.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return hd(vd,n).isSelected?p.jsx(W.span,{"aria-hidden":!0,...r,ref:t}):null});yd.displayName=vd;var ni="SelectScrollUpButton",uE=u.forwardRef((e,t)=>{const n=wt(ni,e.__scopeSelect),r=ei(ni,e.__scopeSelect),[o,s]=u.useState(!1),i=J(t,r.onScrollButtonChange);return pe(()=>{if(n.viewport&&n.isPositioned){let a=function(){const c=l.scrollTop>0;s(c)};const l=n.viewport;return a(),l.addEventListener("scroll",a),()=>l.removeEventListener("scroll",a)}},[n.viewport,n.isPositioned]),o?p.jsx(bd,{...e,ref:i,onAutoScroll:()=>{const{viewport:a,selectedItem:l}=n;a&&l&&(a.scrollTop=a.scrollTop-l.offsetHeight)}}):null});uE.displayName=ni;var ri="SelectScrollDownButton",dE=u.forwardRef((e,t)=>{const n=wt(ri,e.__scopeSelect),r=ei(ri,e.__scopeSelect),[o,s]=u.useState(!1),i=J(t,r.onScrollButtonChange);return pe(()=>{if(n.viewport&&n.isPositioned){let a=function(){const c=l.scrollHeight-l.clientHeight,d=Math.ceil(l.scrollTop)<c;s(d)};const l=n.viewport;return a(),l.addEventListener("scroll",a),()=>l.removeEventListener("scroll",a)}},[n.viewport,n.isPositioned]),o?p.jsx(bd,{...e,ref:i,onAutoScroll:()=>{const{viewport:a,selectedItem:l}=n;a&&l&&(a.scrollTop=a.scrollTop+l.offsetHeight)}}):null});dE.displayName=ri;var bd=u.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,s=wt("SelectScrollButton",n),i=u.useRef(null),a=eo(n),l=u.useCallback(()=>{i.current!==null&&(window.clearInterval(i.current),i.current=null)},[]);return u.useEffect(()=>()=>l(),[l]),pe(()=>{var d;const c=a().find(f=>f.ref.current===document.activeElement);(d=c==null?void 0:c.ref.current)==null||d.scrollIntoView({block:"nearest"})},[a]),p.jsx(W.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:k(o.onPointerDown,()=>{i.current===null&&(i.current=window.setInterval(r,50))}),onPointerMove:k(o.onPointerMove,()=>{var c;(c=s.onItemLeave)==null||c.call(s),i.current===null&&(i.current=window.setInterval(r,50))}),onPointerLeave:k(o.onPointerLeave,()=>{l()})})}),fE="SelectSeparator",wd=u.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return p.jsx(W.div,{"aria-hidden":!0,...r,ref:t})});wd.displayName=fE;var oi="SelectArrow",pE=u.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=to(n),s=bt(oi,n),i=wt(oi,n);return s.open&&i.position==="popper"?p.jsx(Rn,{...o,...r,ref:t}):null});pE.displayName=oi;var hE="SelectBubbleInput",xd=u.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const o=u.useRef(null),s=J(r,o),i=In(t);return u.useEffect(()=>{const a=o.current;if(!a)return;const l=window.HTMLSelectElement.prototype,d=Object.getOwnPropertyDescriptor(l,"value").set;if(i!==t&&d){const f=new Event("change",{bubbles:!0});d.call(a,t),a.dispatchEvent(f)}},[i,t]),p.jsx(W.select,{...n,style:{...Fu,...n.style},ref:s,defaultValue:t})});xd.displayName=hE;function Sd(e){return e===""||e===void 0}function Cd(e){const t=de(e),n=u.useRef(""),r=u.useRef(0),o=u.useCallback(i=>{const a=n.current+i;t(a),function l(c){n.current=c,window.clearTimeout(r.current),c!==""&&(r.current=window.setTimeout(()=>l(""),1e3))}(a)},[t]),s=u.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return u.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,s]}function Ed(e,t,n){const o=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let i=mE(e,Math.max(s,0));o.length===1&&(i=i.filter(c=>c!==n));const l=i.find(c=>c.textValue.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}function mE(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var gE=Ju,Pd=ed,vE=nd,yE=rd,bE=od,Td=sd,wE=cd,xE=dd,Ad=pd,Nd=md,SE=gd,CE=yd,Md=wd;const EE=gE,PE=xE,TE=vE,Id=u.forwardRef(({className:e,children:t,...n},r)=>p.jsxs(Pd,{ref:r,className:M("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),...n,children:[t,p.jsx(yE,{asChild:!0,children:p.jsx(gc,{className:"h-4 w-4 opacity-50"})})]}));Id.displayName=Pd.displayName;const Dd=u.forwardRef(({className:e,children:t,position:n="popper",...r},o)=>p.jsx(bE,{children:p.jsx(Td,{ref:o,className:M("relative z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 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",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,...r,children:p.jsx(wE,{className:M("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t})})}));Dd.displayName=Td.displayName;const _d=u.forwardRef(({className:e,...t},n)=>p.jsx(Ad,{ref:n,className:M("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t}));_d.displayName=Ad.displayName;const kd=u.forwardRef(({className:e,children:t,...n},r)=>p.jsxs(Nd,{ref:r,className:M("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[p.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:p.jsx(CE,{children:p.jsx(Cs,{className:"h-4 w-4"})})}),p.jsx(SE,{children:t})]}));kd.displayName=Nd.displayName;const Od=u.forwardRef(({className:e,...t},n)=>p.jsx(Md,{ref:n,className:M("-mx-1 my-1 h-px bg-muted",e),...t}));Od.displayName=Md.displayName;var Ld=["PageUp","PageDown"],Vd=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],$d={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},cn="Slider",[si,AE,NE]=Yt(cn),[Fd]=ye(cn,[NE]),[ME,ro]=Fd(cn),Rd=u.forwardRef((e,t)=>{const{name:n,min:r=0,max:o=100,step:s=1,orientation:i="horizontal",disabled:a=!1,minStepsBetweenThumbs:l=0,defaultValue:c=[r],value:d,onValueChange:f=()=>{},onValueCommit:h=()=>{},inverted:m=!1,form:y,...g}=e,v=u.useRef(new Set),b=u.useRef(0),x=i==="horizontal"?IE:DE,[S=[],C]=we({prop:d,defaultProp:c,onChange:L=>{var U;(U=[...v.current][b.current])==null||U.focus(),f(L)}}),T=u.useRef(S);function A(L){const V=VE(S,L);O(L,V)}function N(L){O(L,b.current)}function I(){const L=T.current[b.current];S[b.current]!==L&&h(S)}function O(L,V,{commit:U}={commit:!1}){const _=BE(s),K=zE(Math.round((L-r)/s)*s+r,_),H=kn(K,[r,o]);C((B=[])=>{const $=OE(B,H,V);if(RE($,l*s)){b.current=$.indexOf(H);const F=String($)!==String(B);return F&&U&&h($),F?$:B}else return B})}return p.jsx(ME,{scope:e.__scopeSlider,name:n,disabled:a,min:r,max:o,valueIndexToChangeRef:b,thumbs:v.current,values:S,orientation:i,form:y,children:p.jsx(si.Provider,{scope:e.__scopeSlider,children:p.jsx(si.Slot,{scope:e.__scopeSlider,children:p.jsx(x,{"aria-disabled":a,"data-disabled":a?"":void 0,...g,ref:t,onPointerDown:k(g.onPointerDown,()=>{a||(T.current=S)}),min:r,max:o,inverted:m,onSlideStart:a?void 0:A,onSlideMove:a?void 0:N,onSlideEnd:a?void 0:I,onHomeKeyDown:()=>!a&&O(r,0,{commit:!0}),onEndKeyDown:()=>!a&&O(o,S.length-1,{commit:!0}),onStepKeyDown:({event:L,direction:V})=>{if(!a){const K=Ld.includes(L.key)||L.shiftKey&&Vd.includes(L.key)?10:1,H=b.current,B=S[H],$=s*K*V;O(B+$,H,{commit:!0})}}})})})})});Rd.displayName=cn;var[Bd,zd]=Fd(cn,{startEdge:"left",endEdge:"right",size:"width",direction:1}),IE=u.forwardRef((e,t)=>{const{min:n,max:r,dir:o,inverted:s,onSlideStart:i,onSlideMove:a,onSlideEnd:l,onStepKeyDown:c,...d}=e,[f,h]=u.useState(null),m=J(t,x=>h(x)),y=u.useRef(void 0),g=ht(o),v=g==="ltr",b=v&&!s||!v&&s;function w(x){const S=y.current||f.getBoundingClientRect(),C=[0,S.width],A=li(C,b?[n,r]:[r,n]);return y.current=S,A(x-S.left)}return p.jsx(Bd,{scope:e.__scopeSlider,startEdge:b?"left":"right",endEdge:b?"right":"left",direction:b?1:-1,size:"width",children:p.jsx(Wd,{dir:g,"data-orientation":"horizontal",...d,ref:m,style:{...d.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:x=>{const S=w(x.clientX);i==null||i(S)},onSlideMove:x=>{const S=w(x.clientX);a==null||a(S)},onSlideEnd:()=>{y.current=void 0,l==null||l()},onStepKeyDown:x=>{const C=$d[b?"from-left":"from-right"].includes(x.key);c==null||c({event:x,direction:C?-1:1})}})})}),DE=u.forwardRef((e,t)=>{const{min:n,max:r,inverted:o,onSlideStart:s,onSlideMove:i,onSlideEnd:a,onStepKeyDown:l,...c}=e,d=u.useRef(null),f=J(t,d),h=u.useRef(void 0),m=!o;function y(g){const v=h.current||d.current.getBoundingClientRect(),b=[0,v.height],x=li(b,m?[r,n]:[n,r]);return h.current=v,x(g-v.top)}return p.jsx(Bd,{scope:e.__scopeSlider,startEdge:m?"bottom":"top",endEdge:m?"top":"bottom",size:"height",direction:m?1:-1,children:p.jsx(Wd,{"data-orientation":"vertical",...c,ref:f,style:{...c.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:g=>{const v=y(g.clientY);s==null||s(v)},onSlideMove:g=>{const v=y(g.clientY);i==null||i(v)},onSlideEnd:()=>{h.current=void 0,a==null||a()},onStepKeyDown:g=>{const b=$d[m?"from-bottom":"from-top"].includes(g.key);l==null||l({event:g,direction:b?-1:1})}})})}),Wd=u.forwardRef((e,t)=>{const{__scopeSlider:n,onSlideStart:r,onSlideMove:o,onSlideEnd:s,onHomeKeyDown:i,onEndKeyDown:a,onStepKeyDown:l,...c}=e,d=ro(cn,n);return p.jsx(W.span,{...c,ref:t,onKeyDown:k(e.onKeyDown,f=>{f.key==="Home"?(i(f),f.preventDefault()):f.key==="End"?(a(f),f.preventDefault()):Ld.concat(Vd).includes(f.key)&&(l(f),f.preventDefault())}),onPointerDown:k(e.onPointerDown,f=>{const h=f.target;h.setPointerCapture(f.pointerId),f.preventDefault(),d.thumbs.has(h)?h.focus():r(f)}),onPointerMove:k(e.onPointerMove,f=>{f.target.hasPointerCapture(f.pointerId)&&o(f)}),onPointerUp:k(e.onPointerUp,f=>{const h=f.target;h.hasPointerCapture(f.pointerId)&&(h.releasePointerCapture(f.pointerId),s(f))})})}),Hd="SliderTrack",jd=u.forwardRef((e,t)=>{const{__scopeSlider:n,...r}=e,o=ro(Hd,n);return p.jsx(W.span,{"data-disabled":o.disabled?"":void 0,"data-orientation":o.orientation,...r,ref:t})});jd.displayName=Hd;var ii="SliderRange",Ud=u.forwardRef((e,t)=>{const{__scopeSlider:n,...r}=e,o=ro(ii,n),s=zd(ii,n),i=u.useRef(null),a=J(t,i),l=o.values.length,c=o.values.map(h=>Yd(h,o.min,o.max)),d=l>1?Math.min(...c):0,f=100-Math.max(...c);return p.jsx(W.span,{"data-orientation":o.orientation,"data-disabled":o.disabled?"":void 0,...r,ref:a,style:{...e.style,[s.startEdge]:d+"%",[s.endEdge]:f+"%"}})});Ud.displayName=ii;var ai="SliderThumb",Gd=u.forwardRef((e,t)=>{const n=AE(e.__scopeSlider),[r,o]=u.useState(null),s=J(t,a=>o(a)),i=u.useMemo(()=>r?n().findIndex(a=>a.ref.current===r):-1,[n,r]);return p.jsx(_E,{...e,ref:s,index:i})}),_E=u.forwardRef((e,t)=>{const{__scopeSlider:n,index:r,name:o,...s}=e,i=ro(ai,n),a=zd(ai,n),[l,c]=u.useState(null),d=J(t,w=>c(w)),f=l?i.form||!!l.closest("form"):!0,h=Dn(l),m=i.values[r],y=m===void 0?0:Yd(m,i.min,i.max),g=LE(r,i.values.length),v=h==null?void 0:h[a.size],b=v?$E(v,y,a.direction):0;return u.useEffect(()=>{if(l)return i.thumbs.add(l),()=>{i.thumbs.delete(l)}},[l,i.thumbs]),p.jsxs("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[a.startEdge]:`calc(${y}% + ${b}px)`},children:[p.jsx(si.ItemSlot,{scope:e.__scopeSlider,children:p.jsx(W.span,{role:"slider","aria-label":e["aria-label"]||g,"aria-valuemin":i.min,"aria-valuenow":m,"aria-valuemax":i.max,"aria-orientation":i.orientation,"data-orientation":i.orientation,"data-disabled":i.disabled?"":void 0,tabIndex:i.disabled?void 0:0,...s,ref:d,style:m===void 0?{display:"none"}:e.style,onFocus:k(e.onFocus,()=>{i.valueIndexToChangeRef.current=r})})}),f&&p.jsx(Kd,{name:o??(i.name?i.name+(i.values.length>1?"[]":""):void 0),form:i.form,value:m},r)]})});Gd.displayName=ai;var kE="RadioBubbleInput",Kd=u.forwardRef(({__scopeSlider:e,value:t,...n},r)=>{const o=u.useRef(null),s=J(o,r),i=In(t);return u.useEffect(()=>{const a=o.current;if(!a)return;const l=window.HTMLInputElement.prototype,d=Object.getOwnPropertyDescriptor(l,"value").set;if(i!==t&&d){const f=new Event("input",{bubbles:!0});d.call(a,t),a.dispatchEvent(f)}},[i,t]),p.jsx(W.input,{style:{display:"none"},...n,ref:s,defaultValue:t})});Kd.displayName=kE;function OE(e=[],t,n){const r=[...e];return r[n]=t,r.sort((o,s)=>o-s)}function Yd(e,t,n){const s=100/(n-t)*(e-t);return kn(s,[0,100])}function LE(e,t){return t>2?`Value ${e+1} of ${t}`:t===2?["Minimum","Maximum"][e]:void 0}function VE(e,t){if(e.length===1)return 0;const n=e.map(o=>Math.abs(o-t)),r=Math.min(...n);return n.indexOf(r)}function $E(e,t,n){const r=e/2,s=li([0,50],[0,r]);return(r-s(t)*n)*n}function FE(e){return e.slice(0,-1).map((t,n)=>e[n+1]-t)}function RE(e,t){if(t>0){const n=FE(e);return Math.min(...n)>=t}return!0}function li(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function BE(e){return(String(e).split(".")[1]||"").length}function zE(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}var Xd=Rd,WE=jd,HE=Ud,jE=Gd;const qd=u.forwardRef(({className:e,...t},n)=>p.jsxs(Xd,{ref:n,className:M("relative flex w-full touch-none select-none items-center",e),...t,children:[p.jsx(WE,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-secondary",children:p.jsx(HE,{className:"absolute h-full bg-primary"})}),p.jsx(jE,{className:"block h-5 w-5 rounded-full border-2 border-primary bg-background ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50"})]}));qd.displayName=Xd.displayName;const UE=Kt("relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),Zd=u.forwardRef(({className:e,variant:t,...n},r)=>p.jsx("div",{ref:r,role:"alert",className:M(UE({variant:t}),e),...n}));Zd.displayName="Alert";const Jd=u.forwardRef(({className:e,...t},n)=>p.jsx("h5",{ref:n,className:M("mb-1 font-medium leading-none tracking-tight",e),...t}));Jd.displayName="AlertTitle";const Qd=u.forwardRef(({className:e,...t},n)=>p.jsx("div",{ref:n,className:M("text-sm [&_p]:leading-relaxed",e),...t}));Qd.displayName="AlertDescription";function GE(e){const t=KE(e),n=u.forwardRef((r,o)=>{const{children:s,...i}=r,a=u.Children.toArray(s),l=a.find(XE);if(l){const c=l.props.children,d=a.map(f=>f===l?u.Children.count(c)>1?u.Children.only(null):u.isValidElement(c)?c.props.children:null:f);return p.jsx(t,{...i,ref:o,children:u.isValidElement(c)?u.cloneElement(c,void 0,d):null})}return p.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function KE(e){const t=u.forwardRef((n,r)=>{const{children:o,...s}=n;if(u.isValidElement(o)){const i=ZE(o),a=qE(s,o.props);return o.type!==u.Fragment&&(a.ref=r?Ce(r,i):i),u.cloneElement(o,a)}return u.Children.count(o)>1?u.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var YE=Symbol("radix.slottable");function XE(e){return u.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===YE}function qE(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...a)=>{const l=s(...a);return o(...a),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function ZE(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var oo="Dialog",[ef]=ye(oo),[JE,ze]=ef(oo),tf=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:s,modal:i=!0}=e,a=u.useRef(null),l=u.useRef(null),[c,d]=we({prop:r,defaultProp:o??!1,onChange:s,caller:oo});return p.jsx(JE,{scope:t,triggerRef:a,contentRef:l,contentId:he(),titleId:he(),descriptionId:he(),open:c,onOpenChange:d,onOpenToggle:u.useCallback(()=>d(f=>!f),[d]),modal:i,children:n})};tf.displayName=oo;var nf="DialogTrigger",rf=u.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=ze(nf,n),s=J(t,o.triggerRef);return p.jsx(W.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":di(o.open),...r,ref:s,onClick:k(e.onClick,o.onOpenToggle)})});rf.displayName=nf;var ci="DialogPortal",[QE,of]=ef(ci,{forceMount:void 0}),sf=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,s=ze(ci,t);return p.jsx(QE,{scope:t,forceMount:n,children:u.Children.map(r,i=>p.jsx(ve,{present:n||s.open,children:p.jsx(nn,{asChild:!0,container:o,children:i})}))})};sf.displayName=ci;var so="DialogOverlay",af=u.forwardRef((e,t)=>{const n=of(so,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=ze(so,e.__scopeDialog);return s.modal?p.jsx(ve,{present:r||s.open,children:p.jsx(tP,{...o,ref:t})}):null});af.displayName=so;var eP=GE("DialogOverlay.RemoveScroll"),tP=u.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=ze(so,n);return p.jsx(Bn,{as:eP,allowPinchZoom:!0,shards:[o.contentRef],children:p.jsx(W.div,{"data-state":di(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Ot="DialogContent",lf=u.forwardRef((e,t)=>{const n=of(Ot,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=ze(Ot,e.__scopeDialog);return p.jsx(ve,{present:r||s.open,children:s.modal?p.jsx(nP,{...o,ref:t}):p.jsx(rP,{...o,ref:t})})});lf.displayName=Ot;var nP=u.forwardRef((e,t)=>{const n=ze(Ot,e.__scopeDialog),r=u.useRef(null),o=J(t,n.contentRef,r);return u.useEffect(()=>{const s=r.current;if(s)return Kr(s)},[]),p.jsx(cf,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:k(e.onCloseAutoFocus,s=>{var i;s.preventDefault(),(i=n.triggerRef.current)==null||i.focus()}),onPointerDownOutside:k(e.onPointerDownOutside,s=>{const i=s.detail.originalEvent,a=i.button===0&&i.ctrlKey===!0;(i.button===2||a)&&s.preventDefault()}),onFocusOutside:k(e.onFocusOutside,s=>s.preventDefault())})}),rP=u.forwardRef((e,t)=>{const n=ze(Ot,e.__scopeDialog),r=u.useRef(!1),o=u.useRef(!1);return p.jsx(cf,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var i,a;(i=e.onCloseAutoFocus)==null||i.call(e,s),s.defaultPrevented||(r.current||(a=n.triggerRef.current)==null||a.focus(),s.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:s=>{var l,c;(l=e.onInteractOutside)==null||l.call(e,s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const i=s.target;((c=n.triggerRef.current)==null?void 0:c.contains(i))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&o.current&&s.preventDefault()}})}),cf=u.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:s,...i}=e,a=ze(Ot,n),l=u.useRef(null),c=J(t,l);return kr(),p.jsxs(p.Fragment,{children:[p.jsx(On,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:s,children:p.jsx(mt,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":di(a.open),...i,ref:c,onDismiss:()=>a.onOpenChange(!1)})}),p.jsxs(p.Fragment,{children:[p.jsx(oP,{titleId:a.titleId}),p.jsx(iP,{contentRef:l,descriptionId:a.descriptionId})]})]})}),ui="DialogTitle",uf=u.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=ze(ui,n);return p.jsx(W.h2,{id:o.titleId,...r,ref:t})});uf.displayName=ui;var df="DialogDescription",ff=u.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=ze(df,n);return p.jsx(W.p,{id:o.descriptionId,...r,ref:t})});ff.displayName=df;var pf="DialogClose",hf=u.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=ze(pf,n);return p.jsx(W.button,{type:"button",...r,ref:t,onClick:k(e.onClick,()=>o.onOpenChange(!1))})});hf.displayName=pf;function di(e){return e?"open":"closed"}var mf="DialogTitleWarning",[KO,gf]=vw(mf,{contentName:Ot,titleName:ui,docsSlug:"dialog"}),oP=({titleId:e})=>{const t=gf(mf),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
101
|
+
`)},FC=0,on=[];function RC(e){var t=d.useRef([]),n=d.useRef([0,0]),r=d.useRef(),o=d.useState(FC++)[0],s=d.useState(Ou)[0],i=d.useRef(e);d.useEffect(function(){i.current=e},[e]),d.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var g=iC([e.lockRef.current],(e.shards||[]).map(zu),!0).filter(Boolean);return g.forEach(function(v){return v.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),g.forEach(function(v){return v.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=d.useCallback(function(g,v){if("touches"in g&&g.touches.length===2||g.type==="wheel"&&g.ctrlKey)return!i.current.allowPinchZoom;var b=Yr(g),w=n.current,x="deltaX"in g?g.deltaX:w[0]-b[0],S="deltaY"in g?g.deltaY:w[1]-b[1],C,T=g.target,A=Math.abs(x)>Math.abs(S)?"h":"v";if("touches"in g&&A==="h"&&T.type==="range")return!1;var N=window.getSelection(),I=N&&N.anchorNode,O=I?I===T||I.contains(T):!1;if(O)return!1;var k=$u(A,T);if(!k)return!0;if(k?C=A:(C=A==="v"?"h":"v",k=$u(A,T)),!k)return!1;if(!r.current&&"changedTouches"in g&&(x||S)&&(r.current=C),!C)return!0;var L=r.current||C;return LC(L,v,g,L==="h"?x:S)},[]),l=d.useCallback(function(g){var v=g;if(!(!on.length||on[on.length-1]!==s)){var b="deltaY"in v?Bu(v):Yr(v),w=t.current.filter(function(C){return C.name===v.type&&(C.target===v.target||v.target===C.shadowParent)&&VC(C.delta,b)})[0];if(w&&w.should){v.cancelable&&v.preventDefault();return}if(!w){var x=(i.current.shards||[]).map(zu).filter(Boolean).filter(function(C){return C.contains(v.target)}),S=x.length>0?a(v,x[0]):!i.current.noIsolation;S&&v.cancelable&&v.preventDefault()}}},[]),c=d.useCallback(function(g,v,b,w){var x={name:g,delta:v,target:b,should:w,shadowParent:BC(b)};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(S){return S!==x})},1)},[]),u=d.useCallback(function(g){n.current=Yr(g),r.current=void 0},[]),f=d.useCallback(function(g){c(g.type,Bu(g),g.target,a(g,e.lockRef.current))},[]),h=d.useCallback(function(g){c(g.type,Yr(g),g.target,a(g,e.lockRef.current))},[]);d.useEffect(function(){return on.push(s),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:h}),document.addEventListener("wheel",l,rn),document.addEventListener("touchmove",l,rn),document.addEventListener("touchstart",u,rn),function(){on=on.filter(function(g){return g!==s}),document.removeEventListener("wheel",l,rn),document.removeEventListener("touchmove",l,rn),document.removeEventListener("touchstart",u,rn)}},[]);var m=e.removeScrollBar,y=e.inert;return d.createElement(d.Fragment,null,y?d.createElement(s,{styles:$C(o)}):null,m?d.createElement(NC,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function BC(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const zC=mC(ku,RC);var Rn=d.forwardRef(function(e,t){return d.createElement(Gr,Ge({},e,{ref:t,sideCar:zC}))});Rn.classNames=Gr.classNames;var WC=[" ","Enter","ArrowUp","ArrowDown"],HC=[" ","Enter"],Mt="Select",[Xr,qr,jC]=Gt(Mt),[sn]=ge(Mt,[jC,Ue]),Zr=Ue(),[UC,mt]=sn(Mt),[GC,KC]=sn(Mt),Wu=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:s,value:i,defaultValue:a,onValueChange:l,dir:c,name:u,autoComplete:f,disabled:h,required:m,form:y}=e,g=Zr(t),[v,b]=d.useState(null),[w,x]=d.useState(null),[S,C]=d.useState(!1),T=ut(c),[A,N]=ye({prop:r,defaultProp:o??!1,onChange:s,caller:Mt}),[I,O]=ye({prop:i,defaultProp:a,onChange:l,caller:Mt}),k=d.useRef(null),L=v?y||!!v.closest("form"):!0,[W,F]=d.useState(new Set),Y=Array.from(W).map(U=>U.props.value).join(";");return p.jsx(Jt,{...g,children:p.jsxs(UC,{required:m,scope:t,trigger:v,onTriggerChange:b,valueNode:w,onValueNodeChange:x,valueNodeHasChildren:S,onValueNodeHasChildrenChange:C,contentId:fe(),value:I,onValueChange:O,open:A,onOpenChange:N,dir:T,triggerPointerDownPosRef:k,disabled:h,children:[p.jsx(Xr.Provider,{scope:t,children:p.jsx(GC,{scope:e.__scopeSelect,onNativeOptionAdd:d.useCallback(U=>{F(H=>new Set(H).add(U))},[]),onNativeOptionRemove:d.useCallback(U=>{F(H=>{const V=new Set(H);return V.delete(U),V})},[]),children:n})}),L?p.jsxs(dd,{"aria-hidden":!0,required:m,tabIndex:-1,name:u,autoComplete:f,value:I,onChange:U=>O(U.target.value),disabled:h,form:y,children:[I===void 0?p.jsx("option",{value:""}):null,Array.from(W)]},Y):null]})})};Wu.displayName=Mt;var Hu="SelectTrigger",ju=d.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,s=Zr(n),i=mt(Hu,n),a=i.disabled||r,l=J(t,i.onTriggerChange),c=qr(n),u=d.useRef("touch"),[f,h,m]=pd(g=>{const v=c().filter(x=>!x.disabled),b=v.find(x=>x.value===i.value),w=hd(v,g,b);w!==void 0&&i.onValueChange(w.value)}),y=g=>{a||(i.onOpenChange(!0),m()),g&&(i.triggerPointerDownPosRef.current={x:Math.round(g.pageX),y:Math.round(g.pageY)})};return p.jsx(Qt,{asChild:!0,...s,children:p.jsx(j.button,{type:"button",role:"combobox","aria-controls":i.contentId,"aria-expanded":i.open,"aria-required":i.required,"aria-autocomplete":"none",dir:i.dir,"data-state":i.open?"open":"closed",disabled:a,"data-disabled":a?"":void 0,"data-placeholder":fd(i.value)?"":void 0,...o,ref:l,onClick:_(o.onClick,g=>{g.currentTarget.focus(),u.current!=="mouse"&&y(g)}),onPointerDown:_(o.onPointerDown,g=>{u.current=g.pointerType;const v=g.target;v.hasPointerCapture(g.pointerId)&&v.releasePointerCapture(g.pointerId),g.button===0&&g.ctrlKey===!1&&g.pointerType==="mouse"&&(y(g),g.preventDefault())}),onKeyDown:_(o.onKeyDown,g=>{const v=f.current!=="";!(g.ctrlKey||g.altKey||g.metaKey)&&g.key.length===1&&h(g.key),!(v&&g.key===" ")&&WC.includes(g.key)&&(y(),g.preventDefault())})})})});ju.displayName=Hu;var Uu="SelectValue",Gu=d.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:s,placeholder:i="",...a}=e,l=mt(Uu,n),{onValueNodeHasChildrenChange:c}=l,u=s!==void 0,f=J(t,l.onValueNodeChange);return de(()=>{c(u)},[c,u]),p.jsx(j.span,{...a,ref:f,style:{pointerEvents:"none"},children:fd(l.value)?p.jsx(p.Fragment,{children:i}):s})});Gu.displayName=Uu;var YC="SelectIcon",Ku=d.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return p.jsx(j.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});Ku.displayName=YC;var XC="SelectPortal",Yu=e=>p.jsx(en,{asChild:!0,...e});Yu.displayName=XC;var It="SelectContent",Xu=d.forwardRef((e,t)=>{const n=mt(It,e.__scopeSelect),[r,o]=d.useState();if(de(()=>{o(new DocumentFragment)},[]),!n.open){const s=r;return s?Pn.createPortal(p.jsx(qu,{scope:e.__scopeSelect,children:p.jsx(Xr.Slot,{scope:e.__scopeSelect,children:p.jsx("div",{children:e.children})})}),s):null}return p.jsx(Zu,{...e,ref:t})});Xu.displayName=It;var Ve=10,[qu,gt]=sn(It),qC="SelectContentImpl",ZC=XS("SelectContent.RemoveScroll"),Zu=d.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:s,onPointerDownOutside:i,side:a,sideOffset:l,align:c,alignOffset:u,arrowPadding:f,collisionBoundary:h,collisionPadding:m,sticky:y,hideWhenDetached:g,avoidCollisions:v,...b}=e,w=mt(It,n),[x,S]=d.useState(null),[C,T]=d.useState(null),A=J(t,z=>S(z)),[N,I]=d.useState(null),[O,k]=d.useState(null),L=qr(n),[W,F]=d.useState(!1),Y=d.useRef(!1);d.useEffect(()=>{if(x)return Hr(x)},[x]),Mr();const U=d.useCallback(z=>{const[X,...q]=L().map(ne=>ne.ref.current),[Z]=q.slice(-1),se=document.activeElement;for(const ne of z)if(ne===se||(ne==null||ne.scrollIntoView({block:"nearest"}),ne===X&&C&&(C.scrollTop=0),ne===Z&&C&&(C.scrollTop=C.scrollHeight),ne==null||ne.focus(),document.activeElement!==se))return},[L,C]),H=d.useCallback(()=>U([N,x]),[U,N,x]);d.useEffect(()=>{W&&H()},[W,H]);const{onOpenChange:V,triggerPointerDownPosRef:B}=w;d.useEffect(()=>{if(x){let z={x:0,y:0};const X=Z=>{var se,ne;z={x:Math.abs(Math.round(Z.pageX)-(((se=B.current)==null?void 0:se.x)??0)),y:Math.abs(Math.round(Z.pageY)-(((ne=B.current)==null?void 0:ne.y)??0))}},q=Z=>{z.x<=10&&z.y<=10?Z.preventDefault():x.contains(Z.target)||V(!1),document.removeEventListener("pointermove",X),B.current=null};return B.current!==null&&(document.addEventListener("pointermove",X),document.addEventListener("pointerup",q,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",X),document.removeEventListener("pointerup",q,{capture:!0})}}},[x,V,B]),d.useEffect(()=>{const z=()=>V(!1);return window.addEventListener("blur",z),window.addEventListener("resize",z),()=>{window.removeEventListener("blur",z),window.removeEventListener("resize",z)}},[V]);const[ee,te]=pd(z=>{const X=L().filter(se=>!se.disabled),q=X.find(se=>se.ref.current===document.activeElement),Z=hd(X,z,q);Z&&setTimeout(()=>Z.ref.current.focus())}),D=d.useCallback((z,X,q)=>{const Z=!Y.current&&!q;(w.value!==void 0&&w.value===X||Z)&&(I(z),Z&&(Y.current=!0))},[w.value]),G=d.useCallback(()=>x==null?void 0:x.focus(),[x]),R=d.useCallback((z,X,q)=>{const Z=!Y.current&&!q;(w.value!==void 0&&w.value===X||Z)&&k(z)},[w.value]),$=r==="popper"?Xs:Ju,K=$===Xs?{side:a,sideOffset:l,align:c,alignOffset:u,arrowPadding:f,collisionBoundary:h,collisionPadding:m,sticky:y,hideWhenDetached:g,avoidCollisions:v}:{};return p.jsx(qu,{scope:n,content:x,viewport:C,onViewportChange:T,itemRefCallback:D,selectedItem:N,onItemLeave:G,itemTextRefCallback:R,focusSelectedItem:H,selectedItemText:O,position:r,isPositioned:W,searchRef:ee,children:p.jsx(Rn,{as:ZC,allowPinchZoom:!0,children:p.jsx(kn,{asChild:!0,trapped:w.open,onMountAutoFocus:z=>{z.preventDefault()},onUnmountAutoFocus:_(o,z=>{var X;(X=w.trigger)==null||X.focus({preventScroll:!0}),z.preventDefault()}),children:p.jsx(dt,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:z=>z.preventDefault(),onDismiss:()=>w.onOpenChange(!1),children:p.jsx($,{role:"listbox",id:w.contentId,"data-state":w.open?"open":"closed",dir:w.dir,onContextMenu:z=>z.preventDefault(),...b,...K,onPlaced:()=>F(!0),ref:A,style:{display:"flex",flexDirection:"column",outline:"none",...b.style},onKeyDown:_(b.onKeyDown,z=>{const X=z.ctrlKey||z.altKey||z.metaKey;if(z.key==="Tab"&&z.preventDefault(),!X&&z.key.length===1&&te(z.key),["ArrowUp","ArrowDown","Home","End"].includes(z.key)){let Z=L().filter(se=>!se.disabled).map(se=>se.ref.current);if(["ArrowUp","End"].includes(z.key)&&(Z=Z.slice().reverse()),["ArrowUp","ArrowDown"].includes(z.key)){const se=z.target,ne=Z.indexOf(se);Z=Z.slice(ne+1)}setTimeout(()=>U(Z)),z.preventDefault()}})})})})})})});Zu.displayName=qC;var JC="SelectItemAlignedPosition",Ju=d.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,s=mt(It,n),i=gt(It,n),[a,l]=d.useState(null),[c,u]=d.useState(null),f=J(t,A=>u(A)),h=qr(n),m=d.useRef(!1),y=d.useRef(!0),{viewport:g,selectedItem:v,selectedItemText:b,focusSelectedItem:w}=i,x=d.useCallback(()=>{if(s.trigger&&s.valueNode&&a&&c&&g&&v&&b){const A=s.trigger.getBoundingClientRect(),N=c.getBoundingClientRect(),I=s.valueNode.getBoundingClientRect(),O=b.getBoundingClientRect();if(s.dir!=="rtl"){const se=O.left-N.left,ne=I.left-se,be=A.left-ne,Pe=A.width+be,tt=Math.max(Pe,N.width),nt=window.innerWidth-Ve,At=_n(ne,[Ve,Math.max(Ve,nt-tt)]);a.style.minWidth=Pe+"px",a.style.left=At+"px"}else{const se=N.right-O.right,ne=window.innerWidth-I.right-se,be=window.innerWidth-A.right-ne,Pe=A.width+be,tt=Math.max(Pe,N.width),nt=window.innerWidth-Ve,At=_n(ne,[Ve,Math.max(Ve,nt-tt)]);a.style.minWidth=Pe+"px",a.style.right=At+"px"}const k=h(),L=window.innerHeight-Ve*2,W=g.scrollHeight,F=window.getComputedStyle(c),Y=parseInt(F.borderTopWidth,10),U=parseInt(F.paddingTop,10),H=parseInt(F.borderBottomWidth,10),V=parseInt(F.paddingBottom,10),B=Y+U+W+V+H,ee=Math.min(v.offsetHeight*5,B),te=window.getComputedStyle(g),D=parseInt(te.paddingTop,10),G=parseInt(te.paddingBottom,10),R=A.top+A.height/2-Ve,$=L-R,K=v.offsetHeight/2,z=v.offsetTop+K,X=Y+U+z,q=B-X;if(X<=R){const se=k.length>0&&v===k[k.length-1].ref.current;a.style.bottom="0px";const ne=c.clientHeight-g.offsetTop-g.offsetHeight,be=Math.max($,K+(se?G:0)+ne+H),Pe=X+be;a.style.height=Pe+"px"}else{const se=k.length>0&&v===k[0].ref.current;a.style.top="0px";const be=Math.max(R,Y+g.offsetTop+(se?D:0)+K)+q;a.style.height=be+"px",g.scrollTop=X-R+g.offsetTop}a.style.margin=`${Ve}px 0`,a.style.minHeight=ee+"px",a.style.maxHeight=L+"px",r==null||r(),requestAnimationFrame(()=>m.current=!0)}},[h,s.trigger,s.valueNode,a,c,g,v,b,s.dir,r]);de(()=>x(),[x]);const[S,C]=d.useState();de(()=>{c&&C(window.getComputedStyle(c).zIndex)},[c]);const T=d.useCallback(A=>{A&&y.current===!0&&(x(),w==null||w(),y.current=!1)},[x,w]);return p.jsx(eE,{scope:n,contentWrapper:a,shouldExpandOnScrollRef:m,onScrollButtonChange:T,children:p.jsx("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:S},children:p.jsx(j.div,{...o,ref:f,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});Ju.displayName=JC;var QC="SelectPopperPosition",Xs=d.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=Ve,...s}=e,i=Zr(n);return p.jsx($n,{...i,...s,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...s.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Xs.displayName=QC;var[eE,qs]=sn(It,{}),Zs="SelectViewport",Qu=d.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,s=gt(Zs,n),i=qs(Zs,n),a=J(t,s.onViewportChange),l=d.useRef(0);return p.jsxs(p.Fragment,{children:[p.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),p.jsx(Xr.Slot,{scope:n,children:p.jsx(j.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:a,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:_(o.onScroll,c=>{const u=c.currentTarget,{contentWrapper:f,shouldExpandOnScrollRef:h}=i;if(h!=null&&h.current&&f){const m=Math.abs(l.current-u.scrollTop);if(m>0){const y=window.innerHeight-Ve*2,g=parseFloat(f.style.minHeight),v=parseFloat(f.style.height),b=Math.max(g,v);if(b<y){const w=b+m,x=Math.min(y,w),S=w-x;f.style.height=x+"px",f.style.bottom==="0px"&&(u.scrollTop=S>0?S:0,f.style.justifyContent="flex-end")}}}l.current=u.scrollTop})})})]})});Qu.displayName=Zs;var ed="SelectGroup",[tE,nE]=sn(ed),td=d.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=fe();return p.jsx(tE,{scope:n,id:o,children:p.jsx(j.div,{role:"group","aria-labelledby":o,...r,ref:t})})});td.displayName=ed;var nd="SelectLabel",rd=d.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=nE(nd,n);return p.jsx(j.div,{id:o.id,...r,ref:t})});rd.displayName=nd;var Jr="SelectItem",[rE,od]=sn(Jr),sd=d.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:s,...i}=e,a=mt(Jr,n),l=gt(Jr,n),c=a.value===r,[u,f]=d.useState(s??""),[h,m]=d.useState(!1),y=J(t,w=>{var x;return(x=l.itemRefCallback)==null?void 0:x.call(l,w,r,o)}),g=fe(),v=d.useRef("touch"),b=()=>{o||(a.onValueChange(r),a.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return p.jsx(rE,{scope:n,value:r,disabled:o,textId:g,isSelected:c,onItemTextChange:d.useCallback(w=>{f(x=>x||((w==null?void 0:w.textContent)??"").trim())},[]),children:p.jsx(Xr.ItemSlot,{scope:n,value:r,disabled:o,textValue:u,children:p.jsx(j.div,{role:"option","aria-labelledby":g,"data-highlighted":h?"":void 0,"aria-selected":c&&h,"data-state":c?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...i,ref:y,onFocus:_(i.onFocus,()=>m(!0)),onBlur:_(i.onBlur,()=>m(!1)),onClick:_(i.onClick,()=>{v.current!=="mouse"&&b()}),onPointerUp:_(i.onPointerUp,()=>{v.current==="mouse"&&b()}),onPointerDown:_(i.onPointerDown,w=>{v.current=w.pointerType}),onPointerMove:_(i.onPointerMove,w=>{var x;v.current=w.pointerType,o?(x=l.onItemLeave)==null||x.call(l):v.current==="mouse"&&w.currentTarget.focus({preventScroll:!0})}),onPointerLeave:_(i.onPointerLeave,w=>{var x;w.currentTarget===document.activeElement&&((x=l.onItemLeave)==null||x.call(l))}),onKeyDown:_(i.onKeyDown,w=>{var S;((S=l.searchRef)==null?void 0:S.current)!==""&&w.key===" "||(HC.includes(w.key)&&b(),w.key===" "&&w.preventDefault())})})})})});sd.displayName=Jr;var Bn="SelectItemText",id=d.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...s}=e,i=mt(Bn,n),a=gt(Bn,n),l=od(Bn,n),c=KC(Bn,n),[u,f]=d.useState(null),h=J(t,b=>f(b),l.onItemTextChange,b=>{var w;return(w=a.itemTextRefCallback)==null?void 0:w.call(a,b,l.value,l.disabled)}),m=u==null?void 0:u.textContent,y=d.useMemo(()=>p.jsx("option",{value:l.value,disabled:l.disabled,children:m},l.value),[l.disabled,l.value,m]),{onNativeOptionAdd:g,onNativeOptionRemove:v}=c;return de(()=>(g(y),()=>v(y)),[g,v,y]),p.jsxs(p.Fragment,{children:[p.jsx(j.span,{id:l.textId,...s,ref:h}),l.isSelected&&i.valueNode&&!i.valueNodeHasChildren?Pn.createPortal(s.children,i.valueNode):null]})});id.displayName=Bn;var ad="SelectItemIndicator",ld=d.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return od(ad,n).isSelected?p.jsx(j.span,{"aria-hidden":!0,...r,ref:t}):null});ld.displayName=ad;var Js="SelectScrollUpButton",oE=d.forwardRef((e,t)=>{const n=gt(Js,e.__scopeSelect),r=qs(Js,e.__scopeSelect),[o,s]=d.useState(!1),i=J(t,r.onScrollButtonChange);return de(()=>{if(n.viewport&&n.isPositioned){let a=function(){const c=l.scrollTop>0;s(c)};const l=n.viewport;return a(),l.addEventListener("scroll",a),()=>l.removeEventListener("scroll",a)}},[n.viewport,n.isPositioned]),o?p.jsx(cd,{...e,ref:i,onAutoScroll:()=>{const{viewport:a,selectedItem:l}=n;a&&l&&(a.scrollTop=a.scrollTop-l.offsetHeight)}}):null});oE.displayName=Js;var Qs="SelectScrollDownButton",sE=d.forwardRef((e,t)=>{const n=gt(Qs,e.__scopeSelect),r=qs(Qs,e.__scopeSelect),[o,s]=d.useState(!1),i=J(t,r.onScrollButtonChange);return de(()=>{if(n.viewport&&n.isPositioned){let a=function(){const c=l.scrollHeight-l.clientHeight,u=Math.ceil(l.scrollTop)<c;s(u)};const l=n.viewport;return a(),l.addEventListener("scroll",a),()=>l.removeEventListener("scroll",a)}},[n.viewport,n.isPositioned]),o?p.jsx(cd,{...e,ref:i,onAutoScroll:()=>{const{viewport:a,selectedItem:l}=n;a&&l&&(a.scrollTop=a.scrollTop+l.offsetHeight)}}):null});sE.displayName=Qs;var cd=d.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,s=gt("SelectScrollButton",n),i=d.useRef(null),a=qr(n),l=d.useCallback(()=>{i.current!==null&&(window.clearInterval(i.current),i.current=null)},[]);return d.useEffect(()=>()=>l(),[l]),de(()=>{var u;const c=a().find(f=>f.ref.current===document.activeElement);(u=c==null?void 0:c.ref.current)==null||u.scrollIntoView({block:"nearest"})},[a]),p.jsx(j.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:_(o.onPointerDown,()=>{i.current===null&&(i.current=window.setInterval(r,50))}),onPointerMove:_(o.onPointerMove,()=>{var c;(c=s.onItemLeave)==null||c.call(s),i.current===null&&(i.current=window.setInterval(r,50))}),onPointerLeave:_(o.onPointerLeave,()=>{l()})})}),iE="SelectSeparator",ud=d.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return p.jsx(j.div,{"aria-hidden":!0,...r,ref:t})});ud.displayName=iE;var ei="SelectArrow",aE=d.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Zr(n),s=mt(ei,n),i=gt(ei,n);return s.open&&i.position==="popper"?p.jsx(Fn,{...o,...r,ref:t}):null});aE.displayName=ei;var lE="SelectBubbleInput",dd=d.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const o=d.useRef(null),s=J(r,o),i=Mn(t);return d.useEffect(()=>{const a=o.current;if(!a)return;const l=window.HTMLSelectElement.prototype,u=Object.getOwnPropertyDescriptor(l,"value").set;if(i!==t&&u){const f=new Event("change",{bubbles:!0});u.call(a,t),a.dispatchEvent(f)}},[i,t]),p.jsx(j.select,{...n,style:{...Nu,...n.style},ref:s,defaultValue:t})});dd.displayName=lE;function fd(e){return e===""||e===void 0}function pd(e){const t=ce(e),n=d.useRef(""),r=d.useRef(0),o=d.useCallback(i=>{const a=n.current+i;t(a),function l(c){n.current=c,window.clearTimeout(r.current),c!==""&&(r.current=window.setTimeout(()=>l(""),1e3))}(a)},[t]),s=d.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return d.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,s]}function hd(e,t,n){const o=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let i=cE(e,Math.max(s,0));o.length===1&&(i=i.filter(c=>c!==n));const l=i.find(c=>c.textValue.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}function cE(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var uE=Wu,md=ju,dE=Gu,fE=Ku,pE=Yu,gd=Xu,hE=Qu,mE=td,vd=rd,yd=sd,gE=id,vE=ld,bd=ud;const yE=uE,bE=mE,wE=dE,wd=d.forwardRef(({className:e,children:t,...n},r)=>p.jsxs(md,{ref:r,className:M("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),...n,children:[t,p.jsx(fE,{asChild:!0,children:p.jsx(ic,{className:"h-4 w-4 opacity-50"})})]}));wd.displayName=md.displayName;const xd=d.forwardRef(({className:e,children:t,position:n="popper",...r},o)=>p.jsx(pE,{children:p.jsx(gd,{ref:o,className:M("relative z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 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",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,...r,children:p.jsx(hE,{className:M("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t})})}));xd.displayName=gd.displayName;const Sd=d.forwardRef(({className:e,...t},n)=>p.jsx(vd,{ref:n,className:M("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t}));Sd.displayName=vd.displayName;const Cd=d.forwardRef(({className:e,children:t,...n},r)=>p.jsxs(yd,{ref:r,className:M("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[p.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:p.jsx(vE,{children:p.jsx(bs,{className:"h-4 w-4"})})}),p.jsx(gE,{children:t})]}));Cd.displayName=yd.displayName;const Ed=d.forwardRef(({className:e,...t},n)=>p.jsx(bd,{ref:n,className:M("-mx-1 my-1 h-px bg-muted",e),...t}));Ed.displayName=bd.displayName;var Pd=["PageUp","PageDown"],Td=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Ad={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},an="Slider",[ti,xE,SE]=Gt(an),[Nd]=ge(an,[SE]),[CE,Qr]=Nd(an),Md=d.forwardRef((e,t)=>{const{name:n,min:r=0,max:o=100,step:s=1,orientation:i="horizontal",disabled:a=!1,minStepsBetweenThumbs:l=0,defaultValue:c=[r],value:u,onValueChange:f=()=>{},onValueCommit:h=()=>{},inverted:m=!1,form:y,...g}=e,v=d.useRef(new Set),b=d.useRef(0),x=i==="horizontal"?EE:PE,[S=[],C]=ye({prop:u,defaultProp:c,onChange:k=>{var W;(W=[...v.current][b.current])==null||W.focus(),f(k)}}),T=d.useRef(S);function A(k){const L=IE(S,k);O(k,L)}function N(k){O(k,b.current)}function I(){const k=T.current[b.current];S[b.current]!==k&&h(S)}function O(k,L,{commit:W}={commit:!1}){const F=OE(s),Y=LE(Math.round((k-r)/s)*s+r,F),U=_n(Y,[r,o]);C((H=[])=>{const V=NE(H,U,L);if(kE(V,l*s)){b.current=V.indexOf(U);const B=String(V)!==String(H);return B&&W&&h(V),B?V:H}else return H})}return p.jsx(CE,{scope:e.__scopeSlider,name:n,disabled:a,min:r,max:o,valueIndexToChangeRef:b,thumbs:v.current,values:S,orientation:i,form:y,children:p.jsx(ti.Provider,{scope:e.__scopeSlider,children:p.jsx(ti.Slot,{scope:e.__scopeSlider,children:p.jsx(x,{"aria-disabled":a,"data-disabled":a?"":void 0,...g,ref:t,onPointerDown:_(g.onPointerDown,()=>{a||(T.current=S)}),min:r,max:o,inverted:m,onSlideStart:a?void 0:A,onSlideMove:a?void 0:N,onSlideEnd:a?void 0:I,onHomeKeyDown:()=>!a&&O(r,0,{commit:!0}),onEndKeyDown:()=>!a&&O(o,S.length-1,{commit:!0}),onStepKeyDown:({event:k,direction:L})=>{if(!a){const Y=Pd.includes(k.key)||k.shiftKey&&Td.includes(k.key)?10:1,U=b.current,H=S[U],V=s*Y*L;O(H+V,U,{commit:!0})}}})})})})});Md.displayName=an;var[Id,Dd]=Nd(an,{startEdge:"left",endEdge:"right",size:"width",direction:1}),EE=d.forwardRef((e,t)=>{const{min:n,max:r,dir:o,inverted:s,onSlideStart:i,onSlideMove:a,onSlideEnd:l,onStepKeyDown:c,...u}=e,[f,h]=d.useState(null),m=J(t,x=>h(x)),y=d.useRef(void 0),g=ut(o),v=g==="ltr",b=v&&!s||!v&&s;function w(x){const S=y.current||f.getBoundingClientRect(),C=[0,S.width],A=oi(C,b?[n,r]:[r,n]);return y.current=S,A(x-S.left)}return p.jsx(Id,{scope:e.__scopeSlider,startEdge:b?"left":"right",endEdge:b?"right":"left",direction:b?1:-1,size:"width",children:p.jsx(_d,{dir:g,"data-orientation":"horizontal",...u,ref:m,style:{...u.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:x=>{const S=w(x.clientX);i==null||i(S)},onSlideMove:x=>{const S=w(x.clientX);a==null||a(S)},onSlideEnd:()=>{y.current=void 0,l==null||l()},onStepKeyDown:x=>{const C=Ad[b?"from-left":"from-right"].includes(x.key);c==null||c({event:x,direction:C?-1:1})}})})}),PE=d.forwardRef((e,t)=>{const{min:n,max:r,inverted:o,onSlideStart:s,onSlideMove:i,onSlideEnd:a,onStepKeyDown:l,...c}=e,u=d.useRef(null),f=J(t,u),h=d.useRef(void 0),m=!o;function y(g){const v=h.current||u.current.getBoundingClientRect(),b=[0,v.height],x=oi(b,m?[r,n]:[n,r]);return h.current=v,x(g-v.top)}return p.jsx(Id,{scope:e.__scopeSlider,startEdge:m?"bottom":"top",endEdge:m?"top":"bottom",size:"height",direction:m?1:-1,children:p.jsx(_d,{"data-orientation":"vertical",...c,ref:f,style:{...c.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:g=>{const v=y(g.clientY);s==null||s(v)},onSlideMove:g=>{const v=y(g.clientY);i==null||i(v)},onSlideEnd:()=>{h.current=void 0,a==null||a()},onStepKeyDown:g=>{const b=Ad[m?"from-bottom":"from-top"].includes(g.key);l==null||l({event:g,direction:b?-1:1})}})})}),_d=d.forwardRef((e,t)=>{const{__scopeSlider:n,onSlideStart:r,onSlideMove:o,onSlideEnd:s,onHomeKeyDown:i,onEndKeyDown:a,onStepKeyDown:l,...c}=e,u=Qr(an,n);return p.jsx(j.span,{...c,ref:t,onKeyDown:_(e.onKeyDown,f=>{f.key==="Home"?(i(f),f.preventDefault()):f.key==="End"?(a(f),f.preventDefault()):Pd.concat(Td).includes(f.key)&&(l(f),f.preventDefault())}),onPointerDown:_(e.onPointerDown,f=>{const h=f.target;h.setPointerCapture(f.pointerId),f.preventDefault(),u.thumbs.has(h)?h.focus():r(f)}),onPointerMove:_(e.onPointerMove,f=>{f.target.hasPointerCapture(f.pointerId)&&o(f)}),onPointerUp:_(e.onPointerUp,f=>{const h=f.target;h.hasPointerCapture(f.pointerId)&&(h.releasePointerCapture(f.pointerId),s(f))})})}),kd="SliderTrack",Od=d.forwardRef((e,t)=>{const{__scopeSlider:n,...r}=e,o=Qr(kd,n);return p.jsx(j.span,{"data-disabled":o.disabled?"":void 0,"data-orientation":o.orientation,...r,ref:t})});Od.displayName=kd;var ni="SliderRange",Ld=d.forwardRef((e,t)=>{const{__scopeSlider:n,...r}=e,o=Qr(ni,n),s=Dd(ni,n),i=d.useRef(null),a=J(t,i),l=o.values.length,c=o.values.map(h=>Fd(h,o.min,o.max)),u=l>1?Math.min(...c):0,f=100-Math.max(...c);return p.jsx(j.span,{"data-orientation":o.orientation,"data-disabled":o.disabled?"":void 0,...r,ref:a,style:{...e.style,[s.startEdge]:u+"%",[s.endEdge]:f+"%"}})});Ld.displayName=ni;var ri="SliderThumb",Vd=d.forwardRef((e,t)=>{const n=xE(e.__scopeSlider),[r,o]=d.useState(null),s=J(t,a=>o(a)),i=d.useMemo(()=>r?n().findIndex(a=>a.ref.current===r):-1,[n,r]);return p.jsx(TE,{...e,ref:s,index:i})}),TE=d.forwardRef((e,t)=>{const{__scopeSlider:n,index:r,name:o,...s}=e,i=Qr(ri,n),a=Dd(ri,n),[l,c]=d.useState(null),u=J(t,w=>c(w)),f=l?i.form||!!l.closest("form"):!0,h=In(l),m=i.values[r],y=m===void 0?0:Fd(m,i.min,i.max),g=ME(r,i.values.length),v=h==null?void 0:h[a.size],b=v?DE(v,y,a.direction):0;return d.useEffect(()=>{if(l)return i.thumbs.add(l),()=>{i.thumbs.delete(l)}},[l,i.thumbs]),p.jsxs("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[a.startEdge]:`calc(${y}% + ${b}px)`},children:[p.jsx(ti.ItemSlot,{scope:e.__scopeSlider,children:p.jsx(j.span,{role:"slider","aria-label":e["aria-label"]||g,"aria-valuemin":i.min,"aria-valuenow":m,"aria-valuemax":i.max,"aria-orientation":i.orientation,"data-orientation":i.orientation,"data-disabled":i.disabled?"":void 0,tabIndex:i.disabled?void 0:0,...s,ref:u,style:m===void 0?{display:"none"}:e.style,onFocus:_(e.onFocus,()=>{i.valueIndexToChangeRef.current=r})})}),f&&p.jsx($d,{name:o??(i.name?i.name+(i.values.length>1?"[]":""):void 0),form:i.form,value:m},r)]})});Vd.displayName=ri;var AE="RadioBubbleInput",$d=d.forwardRef(({__scopeSlider:e,value:t,...n},r)=>{const o=d.useRef(null),s=J(o,r),i=Mn(t);return d.useEffect(()=>{const a=o.current;if(!a)return;const l=window.HTMLInputElement.prototype,u=Object.getOwnPropertyDescriptor(l,"value").set;if(i!==t&&u){const f=new Event("input",{bubbles:!0});u.call(a,t),a.dispatchEvent(f)}},[i,t]),p.jsx(j.input,{style:{display:"none"},...n,ref:s,defaultValue:t})});$d.displayName=AE;function NE(e=[],t,n){const r=[...e];return r[n]=t,r.sort((o,s)=>o-s)}function Fd(e,t,n){const s=100/(n-t)*(e-t);return _n(s,[0,100])}function ME(e,t){return t>2?`Value ${e+1} of ${t}`:t===2?["Minimum","Maximum"][e]:void 0}function IE(e,t){if(e.length===1)return 0;const n=e.map(o=>Math.abs(o-t)),r=Math.min(...n);return n.indexOf(r)}function DE(e,t,n){const r=e/2,s=oi([0,50],[0,r]);return(r-s(t)*n)*n}function _E(e){return e.slice(0,-1).map((t,n)=>e[n+1]-t)}function kE(e,t){if(t>0){const n=_E(e);return Math.min(...n)>=t}return!0}function oi(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function OE(e){return(String(e).split(".")[1]||"").length}function LE(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}var Rd=Md,VE=Od,$E=Ld,FE=Vd;const Bd=d.forwardRef(({className:e,...t},n)=>p.jsxs(Rd,{ref:n,className:M("relative flex w-full touch-none select-none items-center",e),...t,children:[p.jsx(VE,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-secondary",children:p.jsx($E,{className:"absolute h-full bg-primary"})}),p.jsx(FE,{className:"block h-5 w-5 rounded-full border-2 border-primary bg-background ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50"})]}));Bd.displayName=Rd.displayName;const RE=Ut("relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),zd=d.forwardRef(({className:e,variant:t,...n},r)=>p.jsx("div",{ref:r,role:"alert",className:M(RE({variant:t}),e),...n}));zd.displayName="Alert";const Wd=d.forwardRef(({className:e,...t},n)=>p.jsx("h5",{ref:n,className:M("mb-1 font-medium leading-none tracking-tight",e),...t}));Wd.displayName="AlertTitle";const Hd=d.forwardRef(({className:e,...t},n)=>p.jsx("div",{ref:n,className:M("text-sm [&_p]:leading-relaxed",e),...t}));Hd.displayName="AlertDescription";function BE(e){const t=zE(e),n=d.forwardRef((r,o)=>{const{children:s,...i}=r,a=d.Children.toArray(s),l=a.find(HE);if(l){const c=l.props.children,u=a.map(f=>f===l?d.Children.count(c)>1?d.Children.only(null):d.isValidElement(c)?c.props.children:null:f);return p.jsx(t,{...i,ref:o,children:d.isValidElement(c)?d.cloneElement(c,void 0,u):null})}return p.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function zE(e){const t=d.forwardRef((n,r)=>{const{children:o,...s}=n;if(d.isValidElement(o)){const i=UE(o),a=jE(s,o.props);return o.type!==d.Fragment&&(a.ref=r?Se(r,i):i),d.cloneElement(o,a)}return d.Children.count(o)>1?d.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var WE=Symbol("radix.slottable");function HE(e){return d.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===WE}function jE(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...a)=>{const l=s(...a);return o(...a),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function UE(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var eo="Dialog",[jd]=ge(eo),[GE,$e]=jd(eo),Ud=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:s,modal:i=!0}=e,a=d.useRef(null),l=d.useRef(null),[c,u]=ye({prop:r,defaultProp:o??!1,onChange:s,caller:eo});return p.jsx(GE,{scope:t,triggerRef:a,contentRef:l,contentId:fe(),titleId:fe(),descriptionId:fe(),open:c,onOpenChange:u,onOpenToggle:d.useCallback(()=>u(f=>!f),[u]),modal:i,children:n})};Ud.displayName=eo;var Gd="DialogTrigger",Kd=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=$e(Gd,n),s=J(t,o.triggerRef);return p.jsx(j.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":ai(o.open),...r,ref:s,onClick:_(e.onClick,o.onOpenToggle)})});Kd.displayName=Gd;var si="DialogPortal",[KE,Yd]=jd(si,{forceMount:void 0}),Xd=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,s=$e(si,t);return p.jsx(KE,{scope:t,forceMount:n,children:d.Children.map(r,i=>p.jsx(me,{present:n||s.open,children:p.jsx(en,{asChild:!0,container:o,children:i})}))})};Xd.displayName=si;var to="DialogOverlay",qd=d.forwardRef((e,t)=>{const n=Yd(to,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=$e(to,e.__scopeDialog);return s.modal?p.jsx(me,{present:r||s.open,children:p.jsx(XE,{...o,ref:t})}):null});qd.displayName=to;var YE=BE("DialogOverlay.RemoveScroll"),XE=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=$e(to,n);return p.jsx(Rn,{as:YE,allowPinchZoom:!0,shards:[o.contentRef],children:p.jsx(j.div,{"data-state":ai(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Dt="DialogContent",Zd=d.forwardRef((e,t)=>{const n=Yd(Dt,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=$e(Dt,e.__scopeDialog);return p.jsx(me,{present:r||s.open,children:s.modal?p.jsx(qE,{...o,ref:t}):p.jsx(ZE,{...o,ref:t})})});Zd.displayName=Dt;var qE=d.forwardRef((e,t)=>{const n=$e(Dt,e.__scopeDialog),r=d.useRef(null),o=J(t,n.contentRef,r);return d.useEffect(()=>{const s=r.current;if(s)return Hr(s)},[]),p.jsx(Jd,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:_(e.onCloseAutoFocus,s=>{var i;s.preventDefault(),(i=n.triggerRef.current)==null||i.focus()}),onPointerDownOutside:_(e.onPointerDownOutside,s=>{const i=s.detail.originalEvent,a=i.button===0&&i.ctrlKey===!0;(i.button===2||a)&&s.preventDefault()}),onFocusOutside:_(e.onFocusOutside,s=>s.preventDefault())})}),ZE=d.forwardRef((e,t)=>{const n=$e(Dt,e.__scopeDialog),r=d.useRef(!1),o=d.useRef(!1);return p.jsx(Jd,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var i,a;(i=e.onCloseAutoFocus)==null||i.call(e,s),s.defaultPrevented||(r.current||(a=n.triggerRef.current)==null||a.focus(),s.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:s=>{var l,c;(l=e.onInteractOutside)==null||l.call(e,s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const i=s.target;((c=n.triggerRef.current)==null?void 0:c.contains(i))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&o.current&&s.preventDefault()}})}),Jd=d.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:s,...i}=e,a=$e(Dt,n),l=d.useRef(null),c=J(t,l);return Mr(),p.jsxs(p.Fragment,{children:[p.jsx(kn,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:s,children:p.jsx(dt,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":ai(a.open),...i,ref:c,onDismiss:()=>a.onOpenChange(!1)})}),p.jsxs(p.Fragment,{children:[p.jsx(JE,{titleId:a.titleId}),p.jsx(eP,{contentRef:l,descriptionId:a.descriptionId})]})]})}),ii="DialogTitle",Qd=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=$e(ii,n);return p.jsx(j.h2,{id:o.titleId,...r,ref:t})});Qd.displayName=ii;var ef="DialogDescription",tf=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=$e(ef,n);return p.jsx(j.p,{id:o.descriptionId,...r,ref:t})});tf.displayName=ef;var nf="DialogClose",rf=d.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=$e(nf,n);return p.jsx(j.button,{type:"button",...r,ref:t,onClick:_(e.onClick,()=>o.onOpenChange(!1))})});rf.displayName=nf;function ai(e){return e?"open":"closed"}var of="DialogTitleWarning",[qO,sf]=dw(of,{contentName:Dt,titleName:ii,docsSlug:"dialog"}),JE=({titleId:e})=>{const t=sf(of),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
102
102
|
|
|
103
103
|
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
104
104
|
|
|
105
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return u.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},sP="DialogDescriptionWarning",iP=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${gf(sP).contentName}}.`;return u.useEffect(()=>{var s;const o=(s=e.current)==null?void 0:s.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},fi=tf,vf=rf,pi=sf,Wn=af,Hn=lf,io=uf,ao=ff,lo=hf;const yf=fi,aP=vf,bf=pi,lP=lo,hi=u.forwardRef(({className:e,...t},n)=>p.jsx(Wn,{ref:n,className:M("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));hi.displayName=Wn.displayName;const mi=u.forwardRef(({className:e,children:t,"aria-describedby":n,description:r,...o},s)=>{const i=P.useId(),a=n||(r?i:void 0);return p.jsxs(bf,{children:[p.jsx(hi,{}),p.jsxs(Hn,{ref:s,className:M("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-1/2 data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-1/2 sm:rounded-lg",e),...o,"aria-describedby":a,children:[t,r&&p.jsx("span",{id:i,className:"sr-only",children:r}),p.jsxs(lo,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[p.jsx(Ps,{className:"h-4 w-4"}),p.jsx("span",{className:"sr-only",children:"Close"})]})]})]})});mi.displayName=Hn.displayName;const wf=({className:e,...t})=>p.jsx("div",{className:M("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});wf.displayName="DialogHeader";const xf=({className:e,...t})=>p.jsx("div",{className:M("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});xf.displayName="DialogFooter";const Sf=u.forwardRef(({className:e,...t},n)=>p.jsx(io,{ref:n,className:M("text-lg font-semibold leading-none tracking-tight",e),...t}));Sf.displayName=io.displayName;const Cf=u.forwardRef(({className:e,...t},n)=>p.jsx(ao,{ref:n,className:M("text-sm text-muted-foreground",e),...t}));Cf.displayName=ao.displayName;function cP(e){const t=uP(e),n=u.forwardRef((r,o)=>{const{children:s,...i}=r,a=u.Children.toArray(s),l=a.find(fP);if(l){const c=l.props.children,d=a.map(f=>f===l?u.Children.count(c)>1?u.Children.only(null):u.isValidElement(c)?c.props.children:null:f);return p.jsx(t,{...i,ref:o,children:u.isValidElement(c)?u.cloneElement(c,void 0,d):null})}return p.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function uP(e){const t=u.forwardRef((n,r)=>{const{children:o,...s}=n;if(u.isValidElement(o)){const i=hP(o),a=pP(s,o.props);return o.type!==u.Fragment&&(a.ref=r?Ce(r,i):i),u.cloneElement(o,a)}return u.Children.count(o)>1?u.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var dP=Symbol("radix.slottable");function fP(e){return u.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===dP}function pP(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...a)=>{const l=s(...a);return o(...a),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function hP(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var gi=["Enter"," "],mP=["ArrowDown","PageUp","Home"],Ef=["ArrowUp","PageDown","End"],gP=[...mP,...Ef],vP={ltr:[...gi,"ArrowRight"],rtl:[...gi,"ArrowLeft"]},yP={ltr:["ArrowLeft"],rtl:["ArrowRight"]},jn="Menu",[Un,bP,wP]=Yt(jn),[Lt,Pf]=ye(jn,[wP,qe,Xt]),Gn=qe(),Tf=Xt(),[Af,xt]=Lt(jn),[xP,Kn]=Lt(jn),Nf=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:s,modal:i=!0}=e,a=Gn(t),[l,c]=u.useState(null),d=u.useRef(!1),f=de(s),h=ht(o);return u.useEffect(()=>{const m=()=>{d.current=!0,document.addEventListener("pointerdown",y,{capture:!0,once:!0}),document.addEventListener("pointermove",y,{capture:!0,once:!0})},y=()=>d.current=!1;return document.addEventListener("keydown",m,{capture:!0}),()=>{document.removeEventListener("keydown",m,{capture:!0}),document.removeEventListener("pointerdown",y,{capture:!0}),document.removeEventListener("pointermove",y,{capture:!0})}},[]),p.jsx(en,{...a,children:p.jsx(Af,{scope:t,open:n,onOpenChange:f,content:l,onContentChange:c,children:p.jsx(xP,{scope:t,onClose:u.useCallback(()=>f(!1),[f]),isUsingKeyboardRef:d,dir:h,modal:i,children:r})})})};Nf.displayName=jn;var SP="MenuAnchor",vi=u.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=Gn(n);return p.jsx(tn,{...o,...r,ref:t})});vi.displayName=SP;var yi="MenuPortal",[CP,Mf]=Lt(yi,{forceMount:void 0}),If=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,s=xt(yi,t);return p.jsx(CP,{scope:t,forceMount:n,children:p.jsx(ve,{present:n||s.open,children:p.jsx(nn,{asChild:!0,container:o,children:r})})})};If.displayName=yi;var ke="MenuContent",[EP,bi]=Lt(ke),Df=u.forwardRef((e,t)=>{const n=Mf(ke,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,s=xt(ke,e.__scopeMenu),i=Kn(ke,e.__scopeMenu);return p.jsx(Un.Provider,{scope:e.__scopeMenu,children:p.jsx(ve,{present:r||s.open,children:p.jsx(Un.Slot,{scope:e.__scopeMenu,children:i.modal?p.jsx(PP,{...o,ref:t}):p.jsx(TP,{...o,ref:t})})})})}),PP=u.forwardRef((e,t)=>{const n=xt(ke,e.__scopeMenu),r=u.useRef(null),o=J(t,r);return u.useEffect(()=>{const s=r.current;if(s)return Kr(s)},[]),p.jsx(wi,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:k(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),TP=u.forwardRef((e,t)=>{const n=xt(ke,e.__scopeMenu);return p.jsx(wi,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),AP=cP("MenuContent.ScrollLock"),wi=u.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:s,onCloseAutoFocus:i,disableOutsidePointerEvents:a,onEntryFocus:l,onEscapeKeyDown:c,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:h,onDismiss:m,disableOutsideScroll:y,...g}=e,v=xt(ke,n),b=Kn(ke,n),w=Gn(n),x=Tf(n),S=bP(n),[C,T]=u.useState(null),A=u.useRef(null),N=J(t,A,v.onContentChange),I=u.useRef(0),O=u.useRef(""),L=u.useRef(0),V=u.useRef(null),U=u.useRef("right"),_=u.useRef(0),K=y?Bn:u.Fragment,H=y?{as:AP,allowPinchZoom:!0}:void 0,B=F=>{var z,Z;const ne=O.current+F,re=S().filter(q=>!q.disabled),D=document.activeElement,G=(z=re.find(q=>q.ref.current===D))==null?void 0:z.textValue,X=re.map(q=>q.textValue),j=RP(X,ne,G),Q=(Z=re.find(q=>q.textValue===j))==null?void 0:Z.ref.current;(function q(ee){O.current=ee,window.clearTimeout(I.current),ee!==""&&(I.current=window.setTimeout(()=>q(""),1e3))})(ne),Q&&setTimeout(()=>Q.focus())};u.useEffect(()=>()=>window.clearTimeout(I.current),[]),kr();const $=u.useCallback(F=>{var re,D;return U.current===((re=V.current)==null?void 0:re.side)&&zP(F,(D=V.current)==null?void 0:D.area)},[]);return p.jsx(EP,{scope:n,searchRef:O,onItemEnter:u.useCallback(F=>{$(F)&&F.preventDefault()},[$]),onItemLeave:u.useCallback(F=>{var ne;$(F)||((ne=A.current)==null||ne.focus(),T(null))},[$]),onTriggerLeave:u.useCallback(F=>{$(F)&&F.preventDefault()},[$]),pointerGraceTimerRef:L,onPointerGraceIntentChange:u.useCallback(F=>{V.current=F},[]),children:p.jsx(K,{...H,children:p.jsx(On,{asChild:!0,trapped:o,onMountAutoFocus:k(s,F=>{var ne;F.preventDefault(),(ne=A.current)==null||ne.focus({preventScroll:!0})}),onUnmountAutoFocus:i,children:p.jsx(mt,{asChild:!0,disableOutsidePointerEvents:a,onEscapeKeyDown:c,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:h,onDismiss:m,children:p.jsx(Ns,{asChild:!0,...x,dir:b.dir,orientation:"vertical",loop:r,currentTabStopId:C,onCurrentTabStopIdChange:T,onEntryFocus:k(l,F=>{b.isUsingKeyboardRef.current||F.preventDefault()}),preventScrollOnEntryFocus:!0,children:p.jsx(Fn,{role:"menu","aria-orientation":"vertical","data-state":Xf(v.open),"data-radix-menu-content":"",dir:b.dir,...w,...g,ref:N,style:{outline:"none",...g.style},onKeyDown:k(g.onKeyDown,F=>{const re=F.target.closest("[data-radix-menu-content]")===F.currentTarget,D=F.ctrlKey||F.altKey||F.metaKey,G=F.key.length===1;re&&(F.key==="Tab"&&F.preventDefault(),!D&&G&&B(F.key));const X=A.current;if(F.target!==X||!gP.includes(F.key))return;F.preventDefault();const Q=S().filter(z=>!z.disabled).map(z=>z.ref.current);Ef.includes(F.key)&&Q.reverse(),$P(Q)}),onBlur:k(e.onBlur,F=>{F.currentTarget.contains(F.target)||(window.clearTimeout(I.current),O.current="")}),onPointerMove:k(e.onPointerMove,Xn(F=>{const ne=F.target,re=_.current!==F.clientX;if(F.currentTarget.contains(ne)&&re){const D=F.clientX>_.current?"right":"left";U.current=D,_.current=F.clientX}}))})})})})})})});Df.displayName=ke;var NP="MenuGroup",xi=u.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return p.jsx(W.div,{role:"group",...r,ref:t})});xi.displayName=NP;var MP="MenuLabel",_f=u.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return p.jsx(W.div,{...r,ref:t})});_f.displayName=MP;var co="MenuItem",kf="menu.itemSelect",uo=u.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,s=u.useRef(null),i=Kn(co,e.__scopeMenu),a=bi(co,e.__scopeMenu),l=J(t,s),c=u.useRef(!1),d=()=>{const f=s.current;if(!n&&f){const h=new CustomEvent(kf,{bubbles:!0,cancelable:!0});f.addEventListener(kf,m=>r==null?void 0:r(m),{once:!0}),ws(f,h),h.defaultPrevented?c.current=!1:i.onClose()}};return p.jsx(Of,{...o,ref:l,disabled:n,onClick:k(e.onClick,d),onPointerDown:f=>{var h;(h=e.onPointerDown)==null||h.call(e,f),c.current=!0},onPointerUp:k(e.onPointerUp,f=>{var h;c.current||(h=f.currentTarget)==null||h.click()}),onKeyDown:k(e.onKeyDown,f=>{const h=a.searchRef.current!=="";n||h&&f.key===" "||gi.includes(f.key)&&(f.currentTarget.click(),f.preventDefault())})})});uo.displayName=co;var Of=u.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...s}=e,i=bi(co,n),a=Tf(n),l=u.useRef(null),c=J(t,l),[d,f]=u.useState(!1),[h,m]=u.useState("");return u.useEffect(()=>{const y=l.current;y&&m((y.textContent??"").trim())},[s.children]),p.jsx(Un.ItemSlot,{scope:n,disabled:r,textValue:o??h,children:p.jsx(Ms,{asChild:!0,...a,focusable:!r,children:p.jsx(W.div,{role:"menuitem","data-highlighted":d?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...s,ref:c,onPointerMove:k(e.onPointerMove,Xn(y=>{r?i.onItemLeave(y):(i.onItemEnter(y),y.defaultPrevented||y.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:k(e.onPointerLeave,Xn(y=>i.onItemLeave(y))),onFocus:k(e.onFocus,()=>f(!0)),onBlur:k(e.onBlur,()=>f(!1))})})})}),IP="MenuCheckboxItem",Lf=u.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return p.jsx(Bf,{scope:e.__scopeMenu,checked:n,children:p.jsx(uo,{role:"menuitemcheckbox","aria-checked":fo(n)?"mixed":n,...o,ref:t,"data-state":Ei(n),onSelect:k(o.onSelect,()=>r==null?void 0:r(fo(n)?!0:!n),{checkForDefaultPrevented:!1})})})});Lf.displayName=IP;var Vf="MenuRadioGroup",[DP,_P]=Lt(Vf,{value:void 0,onValueChange:()=>{}}),$f=u.forwardRef((e,t)=>{const{value:n,onValueChange:r,...o}=e,s=de(r);return p.jsx(DP,{scope:e.__scopeMenu,value:n,onValueChange:s,children:p.jsx(xi,{...o,ref:t})})});$f.displayName=Vf;var Ff="MenuRadioItem",Rf=u.forwardRef((e,t)=>{const{value:n,...r}=e,o=_P(Ff,e.__scopeMenu),s=n===o.value;return p.jsx(Bf,{scope:e.__scopeMenu,checked:s,children:p.jsx(uo,{role:"menuitemradio","aria-checked":s,...r,ref:t,"data-state":Ei(s),onSelect:k(r.onSelect,()=>{var i;return(i=o.onValueChange)==null?void 0:i.call(o,n)},{checkForDefaultPrevented:!1})})})});Rf.displayName=Ff;var Si="MenuItemIndicator",[Bf,kP]=Lt(Si,{checked:!1}),zf=u.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,s=kP(Si,n);return p.jsx(ve,{present:r||fo(s.checked)||s.checked===!0,children:p.jsx(W.span,{...o,ref:t,"data-state":Ei(s.checked)})})});zf.displayName=Si;var OP="MenuSeparator",Wf=u.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return p.jsx(W.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});Wf.displayName=OP;var LP="MenuArrow",Hf=u.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=Gn(n);return p.jsx(Rn,{...o,...r,ref:t})});Hf.displayName=LP;var Ci="MenuSub",[VP,jf]=Lt(Ci),Uf=e=>{const{__scopeMenu:t,children:n,open:r=!1,onOpenChange:o}=e,s=xt(Ci,t),i=Gn(t),[a,l]=u.useState(null),[c,d]=u.useState(null),f=de(o);return u.useEffect(()=>(s.open===!1&&f(!1),()=>f(!1)),[s.open,f]),p.jsx(en,{...i,children:p.jsx(Af,{scope:t,open:r,onOpenChange:f,content:c,onContentChange:d,children:p.jsx(VP,{scope:t,contentId:he(),triggerId:he(),trigger:a,onTriggerChange:l,children:n})})})};Uf.displayName=Ci;var Yn="MenuSubTrigger",Gf=u.forwardRef((e,t)=>{const n=xt(Yn,e.__scopeMenu),r=Kn(Yn,e.__scopeMenu),o=jf(Yn,e.__scopeMenu),s=bi(Yn,e.__scopeMenu),i=u.useRef(null),{pointerGraceTimerRef:a,onPointerGraceIntentChange:l}=s,c={__scopeMenu:e.__scopeMenu},d=u.useCallback(()=>{i.current&&window.clearTimeout(i.current),i.current=null},[]);return u.useEffect(()=>d,[d]),u.useEffect(()=>{const f=a.current;return()=>{window.clearTimeout(f),l(null)}},[a,l]),p.jsx(vi,{asChild:!0,...c,children:p.jsx(Of,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":Xf(n.open),...e,ref:Ce(t,o.onTriggerChange),onClick:f=>{var h;(h=e.onClick)==null||h.call(e,f),!(e.disabled||f.defaultPrevented)&&(f.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:k(e.onPointerMove,Xn(f=>{s.onItemEnter(f),!f.defaultPrevented&&!e.disabled&&!n.open&&!i.current&&(s.onPointerGraceIntentChange(null),i.current=window.setTimeout(()=>{n.onOpenChange(!0),d()},100))})),onPointerLeave:k(e.onPointerLeave,Xn(f=>{var m,y;d();const h=(m=n.content)==null?void 0:m.getBoundingClientRect();if(h){const g=(y=n.content)==null?void 0:y.dataset.side,v=g==="right",b=v?-5:5,w=h[v?"left":"right"],x=h[v?"right":"left"];s.onPointerGraceIntentChange({area:[{x:f.clientX+b,y:f.clientY},{x:w,y:h.top},{x,y:h.top},{x,y:h.bottom},{x:w,y:h.bottom}],side:g}),window.clearTimeout(a.current),a.current=window.setTimeout(()=>s.onPointerGraceIntentChange(null),300)}else{if(s.onTriggerLeave(f),f.defaultPrevented)return;s.onPointerGraceIntentChange(null)}})),onKeyDown:k(e.onKeyDown,f=>{var m;const h=s.searchRef.current!=="";e.disabled||h&&f.key===" "||vP[r.dir].includes(f.key)&&(n.onOpenChange(!0),(m=n.content)==null||m.focus(),f.preventDefault())})})})});Gf.displayName=Yn;var Kf="MenuSubContent",Yf=u.forwardRef((e,t)=>{const n=Mf(ke,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,s=xt(ke,e.__scopeMenu),i=Kn(ke,e.__scopeMenu),a=jf(Kf,e.__scopeMenu),l=u.useRef(null),c=J(t,l);return p.jsx(Un.Provider,{scope:e.__scopeMenu,children:p.jsx(ve,{present:r||s.open,children:p.jsx(Un.Slot,{scope:e.__scopeMenu,children:p.jsx(wi,{id:a.contentId,"aria-labelledby":a.triggerId,...o,ref:c,align:"start",side:i.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:d=>{var f;i.isUsingKeyboardRef.current&&((f=l.current)==null||f.focus()),d.preventDefault()},onCloseAutoFocus:d=>d.preventDefault(),onFocusOutside:k(e.onFocusOutside,d=>{d.target!==a.trigger&&s.onOpenChange(!1)}),onEscapeKeyDown:k(e.onEscapeKeyDown,d=>{i.onClose(),d.preventDefault()}),onKeyDown:k(e.onKeyDown,d=>{var m;const f=d.currentTarget.contains(d.target),h=yP[i.dir].includes(d.key);f&&h&&(s.onOpenChange(!1),(m=a.trigger)==null||m.focus(),d.preventDefault())})})})})})});Yf.displayName=Kf;function Xf(e){return e?"open":"closed"}function fo(e){return e==="indeterminate"}function Ei(e){return fo(e)?"indeterminate":e?"checked":"unchecked"}function $P(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function FP(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function RP(e,t,n){const o=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let i=FP(e,Math.max(s,0));o.length===1&&(i=i.filter(c=>c!==n));const l=i.find(c=>c.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}function BP(e,t){const{x:n,y:r}=e;let o=!1;for(let s=0,i=t.length-1;s<t.length;i=s++){const a=t[s],l=t[i],c=a.x,d=a.y,f=l.x,h=l.y;d>r!=h>r&&n<(f-c)*(r-d)/(h-d)+c&&(o=!o)}return o}function zP(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return BP(n,t)}function Xn(e){return t=>t.pointerType==="mouse"?e(t):void 0}var WP=Nf,HP=vi,jP=If,UP=Df,GP=xi,KP=_f,YP=uo,XP=Lf,qP=$f,ZP=Rf,JP=zf,QP=Wf,eT=Hf,tT=Uf,nT=Gf,rT=Yf,po="DropdownMenu",[oT]=ye(po,[Pf]),xe=Pf(),[sT,qf]=oT(po),Zf=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:s,onOpenChange:i,modal:a=!0}=e,l=xe(t),c=u.useRef(null),[d,f]=we({prop:o,defaultProp:s??!1,onChange:i,caller:po});return p.jsx(sT,{scope:t,triggerId:he(),triggerRef:c,contentId:he(),open:d,onOpenChange:f,onOpenToggle:u.useCallback(()=>f(h=>!h),[f]),modal:a,children:p.jsx(WP,{...l,open:d,onOpenChange:f,dir:r,modal:a,children:n})})};Zf.displayName=po;var Jf="DropdownMenuTrigger",Qf=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,s=qf(Jf,n),i=xe(n);return p.jsx(HP,{asChild:!0,...i,children:p.jsx(W.button,{type:"button",id:s.triggerId,"aria-haspopup":"menu","aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":s.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:Ce(t,s.triggerRef),onPointerDown:k(e.onPointerDown,a=>{!r&&a.button===0&&a.ctrlKey===!1&&(s.onOpenToggle(),s.open||a.preventDefault())}),onKeyDown:k(e.onKeyDown,a=>{r||(["Enter"," "].includes(a.key)&&s.onOpenToggle(),a.key==="ArrowDown"&&s.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(a.key)&&a.preventDefault())})})})});Qf.displayName=Jf;var iT="DropdownMenuPortal",ep=e=>{const{__scopeDropdownMenu:t,...n}=e,r=xe(t);return p.jsx(jP,{...r,...n})};ep.displayName=iT;var tp="DropdownMenuContent",np=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=qf(tp,n),s=xe(n),i=u.useRef(!1);return p.jsx(UP,{id:o.contentId,"aria-labelledby":o.triggerId,...s,...r,ref:t,onCloseAutoFocus:k(e.onCloseAutoFocus,a=>{var l;i.current||(l=o.triggerRef.current)==null||l.focus(),i.current=!1,a.preventDefault()}),onInteractOutside:k(e.onInteractOutside,a=>{const l=a.detail.originalEvent,c=l.button===0&&l.ctrlKey===!0,d=l.button===2||c;(!o.modal||d)&&(i.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});np.displayName=tp;var aT="DropdownMenuGroup",rp=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=xe(n);return p.jsx(GP,{...o,...r,ref:t})});rp.displayName=aT;var lT="DropdownMenuLabel",op=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=xe(n);return p.jsx(KP,{...o,...r,ref:t})});op.displayName=lT;var cT="DropdownMenuItem",sp=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=xe(n);return p.jsx(YP,{...o,...r,ref:t})});sp.displayName=cT;var uT="DropdownMenuCheckboxItem",ip=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=xe(n);return p.jsx(XP,{...o,...r,ref:t})});ip.displayName=uT;var dT="DropdownMenuRadioGroup",ap=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=xe(n);return p.jsx(qP,{...o,...r,ref:t})});ap.displayName=dT;var fT="DropdownMenuRadioItem",lp=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=xe(n);return p.jsx(ZP,{...o,...r,ref:t})});lp.displayName=fT;var pT="DropdownMenuItemIndicator",cp=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=xe(n);return p.jsx(JP,{...o,...r,ref:t})});cp.displayName=pT;var hT="DropdownMenuSeparator",up=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=xe(n);return p.jsx(QP,{...o,...r,ref:t})});up.displayName=hT;var mT="DropdownMenuArrow",gT=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=xe(n);return p.jsx(eT,{...o,...r,ref:t})});gT.displayName=mT;var vT=e=>{const{__scopeDropdownMenu:t,children:n,open:r,onOpenChange:o,defaultOpen:s}=e,i=xe(t),[a,l]=we({prop:r,defaultProp:s??!1,onChange:o,caller:"DropdownMenuSub"});return p.jsx(tT,{...i,open:a,onOpenChange:l,children:n})},yT="DropdownMenuSubTrigger",dp=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=xe(n);return p.jsx(nT,{...o,...r,ref:t})});dp.displayName=yT;var bT="DropdownMenuSubContent",fp=u.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=xe(n);return p.jsx(rT,{...o,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});fp.displayName=bT;var wT=Zf,xT=Qf,pp=ep,hp=np,ST=rp,mp=op,gp=sp,vp=ip,CT=ap,yp=lp,bp=cp,wp=up,ET=vT,xp=dp,Sp=fp;const PT=wT,TT=xT,AT=ST,NT=pp,MT=ET,IT=CT,Cp=u.forwardRef(({className:e,inset:t,children:n,...r},o)=>p.jsxs(xp,{ref:o,className:M("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",t&&"pl-8",e),...r,children:[n,p.jsx(Es,{className:"ml-auto h-4 w-4"})]}));Cp.displayName=xp.displayName;const Ep=u.forwardRef(({className:e,...t},n)=>p.jsx(Sp,{ref:n,className:M("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 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",e),...t}));Ep.displayName=Sp.displayName;const Pp=u.forwardRef(({className:e,sideOffset:t=4,...n},r)=>p.jsx(pp,{children:p.jsx(hp,{ref:r,sideOffset:t,className:M("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 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",e),...n})}));Pp.displayName=hp.displayName;const Tp=u.forwardRef(({className:e,inset:t,...n},r)=>p.jsx(gp,{ref:r,className:M("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t&&"pl-8",e),...n}));Tp.displayName=gp.displayName;const Ap=u.forwardRef(({className:e,children:t,checked:n,...r},o)=>p.jsxs(vp,{ref:o,className:M("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:n,...r,children:[p.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:p.jsx(bp,{children:p.jsx(Cs,{className:"h-4 w-4"})})}),t]}));Ap.displayName=vp.displayName;const Np=u.forwardRef(({className:e,children:t,...n},r)=>p.jsxs(yp,{ref:r,className:M("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[p.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:p.jsx(bp,{children:p.jsx(vc,{className:"h-2 w-2 fill-current"})})}),t]}));Np.displayName=yp.displayName;const Mp=u.forwardRef(({className:e,inset:t,...n},r)=>p.jsx(mp,{ref:r,className:M("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...n}));Mp.displayName=mp.displayName;const Ip=u.forwardRef(({className:e,...t},n)=>p.jsx(wp,{ref:n,className:M("-mx-1 my-1 h-px bg-muted",e),...t}));Ip.displayName=wp.displayName;const Dp=({className:e,...t})=>p.jsx("span",{className:M("ml-auto text-xs tracking-widest opacity-60",e),...t});Dp.displayName="DropdownMenuShortcut";function DT(e){const t=_T(e),n=u.forwardRef((r,o)=>{const{children:s,...i}=r,a=u.Children.toArray(s),l=a.find(OT);if(l){const c=l.props.children,d=a.map(f=>f===l?u.Children.count(c)>1?u.Children.only(null):u.isValidElement(c)?c.props.children:null:f);return p.jsx(t,{...i,ref:o,children:u.isValidElement(c)?u.cloneElement(c,void 0,d):null})}return p.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function _T(e){const t=u.forwardRef((n,r)=>{const{children:o,...s}=n;if(u.isValidElement(o)){const i=VT(o),a=LT(s,o.props);return o.type!==u.Fragment&&(a.ref=r?Ce(r,i):i),u.cloneElement(o,a)}return u.Children.count(o)>1?u.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var kT=Symbol("radix.slottable");function OT(e){return u.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===kT}function LT(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...a)=>{const l=s(...a);return o(...a),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function VT(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var ho="Popover",[_p]=ye(ho,[qe]),qn=qe(),[$T,St]=_p(ho),kp=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:s,modal:i=!1}=e,a=qn(t),l=u.useRef(null),[c,d]=u.useState(!1),[f,h]=we({prop:r,defaultProp:o??!1,onChange:s,caller:ho});return p.jsx(en,{...a,children:p.jsx($T,{scope:t,contentId:he(),triggerRef:l,open:f,onOpenChange:h,onOpenToggle:u.useCallback(()=>h(m=>!m),[h]),hasCustomAnchor:c,onCustomAnchorAdd:u.useCallback(()=>d(!0),[]),onCustomAnchorRemove:u.useCallback(()=>d(!1),[]),modal:i,children:n})})};kp.displayName=ho;var Op="PopoverAnchor",FT=u.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=St(Op,n),s=qn(n),{onCustomAnchorAdd:i,onCustomAnchorRemove:a}=o;return u.useEffect(()=>(i(),()=>a()),[i,a]),p.jsx(tn,{...s,...r,ref:t})});FT.displayName=Op;var Lp="PopoverTrigger",Vp=u.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=St(Lp,n),s=qn(n),i=J(t,o.triggerRef),a=p.jsx(W.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":zp(o.open),...r,ref:i,onClick:k(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?a:p.jsx(tn,{asChild:!0,...s,children:a})});Vp.displayName=Lp;var Pi="PopoverPortal",[RT,BT]=_p(Pi,{forceMount:void 0}),$p=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,s=St(Pi,t);return p.jsx(RT,{scope:t,forceMount:n,children:p.jsx(ve,{present:n||s.open,children:p.jsx(nn,{asChild:!0,container:o,children:r})})})};$p.displayName=Pi;var un="PopoverContent",Fp=u.forwardRef((e,t)=>{const n=BT(un,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,s=St(un,e.__scopePopover);return p.jsx(ve,{present:r||s.open,children:s.modal?p.jsx(WT,{...o,ref:t}):p.jsx(HT,{...o,ref:t})})});Fp.displayName=un;var zT=DT("PopoverContent.RemoveScroll"),WT=u.forwardRef((e,t)=>{const n=St(un,e.__scopePopover),r=u.useRef(null),o=J(t,r),s=u.useRef(!1);return u.useEffect(()=>{const i=r.current;if(i)return Kr(i)},[]),p.jsx(Bn,{as:zT,allowPinchZoom:!0,children:p.jsx(Rp,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:k(e.onCloseAutoFocus,i=>{var a;i.preventDefault(),s.current||(a=n.triggerRef.current)==null||a.focus()}),onPointerDownOutside:k(e.onPointerDownOutside,i=>{const a=i.detail.originalEvent,l=a.button===0&&a.ctrlKey===!0,c=a.button===2||l;s.current=c},{checkForDefaultPrevented:!1}),onFocusOutside:k(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1})})})}),HT=u.forwardRef((e,t)=>{const n=St(un,e.__scopePopover),r=u.useRef(!1),o=u.useRef(!1);return p.jsx(Rp,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var i,a;(i=e.onCloseAutoFocus)==null||i.call(e,s),s.defaultPrevented||(r.current||(a=n.triggerRef.current)==null||a.focus(),s.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:s=>{var l,c;(l=e.onInteractOutside)==null||l.call(e,s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const i=s.target;((c=n.triggerRef.current)==null?void 0:c.contains(i))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&o.current&&s.preventDefault()}})}),Rp=u.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:s,disableOutsidePointerEvents:i,onEscapeKeyDown:a,onPointerDownOutside:l,onFocusOutside:c,onInteractOutside:d,...f}=e,h=St(un,n),m=qn(n);return kr(),p.jsx(On,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:s,children:p.jsx(mt,{asChild:!0,disableOutsidePointerEvents:i,onInteractOutside:d,onEscapeKeyDown:a,onPointerDownOutside:l,onFocusOutside:c,onDismiss:()=>h.onOpenChange(!1),children:p.jsx(Fn,{"data-state":zp(h.open),role:"dialog",id:h.contentId,...m,...f,ref:t,style:{...f.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),Bp="PopoverClose",jT=u.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=St(Bp,n);return p.jsx(W.button,{type:"button",...r,ref:t,onClick:k(e.onClick,()=>o.onOpenChange(!1))})});jT.displayName=Bp;var UT="PopoverArrow",GT=u.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=qn(n);return p.jsx(Rn,{...o,...r,ref:t})});GT.displayName=UT;function zp(e){return e?"open":"closed"}var KT=kp,YT=Vp,XT=$p,Wp=Fp;const qT=KT,ZT=YT,Hp=u.forwardRef(({className:e,align:t="center",sideOffset:n=4,...r},o)=>p.jsx(XT,{children:p.jsx(Wp,{ref:o,align:t,sideOffset:n,className:M("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 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",e),...r})}));Hp.displayName=Wp.displayName;var JT=Symbol("radix.slottable");function QT(e){const t=({children:n})=>p.jsx(p.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=JT,t}var[mo]=ye("Tooltip",[qe]),go=qe(),jp="TooltipProvider",eA=700,Ti="tooltip.open",[tA,Ai]=mo(jp),Up=e=>{const{__scopeTooltip:t,delayDuration:n=eA,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:s}=e,i=u.useRef(!0),a=u.useRef(!1),l=u.useRef(0);return u.useEffect(()=>{const c=l.current;return()=>window.clearTimeout(c)},[]),p.jsx(tA,{scope:t,isOpenDelayedRef:i,delayDuration:n,onOpen:u.useCallback(()=>{window.clearTimeout(l.current),i.current=!1},[]),onClose:u.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>i.current=!0,r)},[r]),isPointerInTransitRef:a,onPointerInTransitChange:u.useCallback(c=>{a.current=c},[]),disableHoverableContent:o,children:s})};Up.displayName=jp;var Zn="Tooltip",[nA,vo]=mo(Zn),Gp=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o,onOpenChange:s,disableHoverableContent:i,delayDuration:a}=e,l=Ai(Zn,e.__scopeTooltip),c=go(t),[d,f]=u.useState(null),h=he(),m=u.useRef(0),y=i??l.disableHoverableContent,g=a??l.delayDuration,v=u.useRef(!1),[b,w]=we({prop:r,defaultProp:o??!1,onChange:A=>{A?(l.onOpen(),document.dispatchEvent(new CustomEvent(Ti))):l.onClose(),s==null||s(A)},caller:Zn}),x=u.useMemo(()=>b?v.current?"delayed-open":"instant-open":"closed",[b]),S=u.useCallback(()=>{window.clearTimeout(m.current),m.current=0,v.current=!1,w(!0)},[w]),C=u.useCallback(()=>{window.clearTimeout(m.current),m.current=0,w(!1)},[w]),T=u.useCallback(()=>{window.clearTimeout(m.current),m.current=window.setTimeout(()=>{v.current=!0,w(!0),m.current=0},g)},[g,w]);return u.useEffect(()=>()=>{m.current&&(window.clearTimeout(m.current),m.current=0)},[]),p.jsx(en,{...c,children:p.jsx(nA,{scope:t,contentId:h,open:b,stateAttribute:x,trigger:d,onTriggerChange:f,onTriggerEnter:u.useCallback(()=>{l.isOpenDelayedRef.current?T():S()},[l.isOpenDelayedRef,T,S]),onTriggerLeave:u.useCallback(()=>{y?C():(window.clearTimeout(m.current),m.current=0)},[C,y]),onOpen:S,onClose:C,disableHoverableContent:y,children:n})})};Gp.displayName=Zn;var Ni="TooltipTrigger",Kp=u.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=vo(Ni,n),s=Ai(Ni,n),i=go(n),a=u.useRef(null),l=J(t,a,o.onTriggerChange),c=u.useRef(!1),d=u.useRef(!1),f=u.useCallback(()=>c.current=!1,[]);return u.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),p.jsx(tn,{asChild:!0,...i,children:p.jsx(W.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:l,onPointerMove:k(e.onPointerMove,h=>{h.pointerType!=="touch"&&!d.current&&!s.isPointerInTransitRef.current&&(o.onTriggerEnter(),d.current=!0)}),onPointerLeave:k(e.onPointerLeave,()=>{o.onTriggerLeave(),d.current=!1}),onPointerDown:k(e.onPointerDown,()=>{o.open&&o.onClose(),c.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:k(e.onFocus,()=>{c.current||o.onOpen()}),onBlur:k(e.onBlur,o.onClose),onClick:k(e.onClick,o.onClose)})})});Kp.displayName=Ni;var rA="TooltipPortal",[YO,oA]=mo(rA,{forceMount:void 0}),dn="TooltipContent",Yp=u.forwardRef((e,t)=>{const n=oA(dn,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...s}=e,i=vo(dn,e.__scopeTooltip);return p.jsx(ve,{present:r||i.open,children:i.disableHoverableContent?p.jsx(Xp,{side:o,...s,ref:t}):p.jsx(sA,{side:o,...s,ref:t})})}),sA=u.forwardRef((e,t)=>{const n=vo(dn,e.__scopeTooltip),r=Ai(dn,e.__scopeTooltip),o=u.useRef(null),s=J(t,o),[i,a]=u.useState(null),{trigger:l,onClose:c}=n,d=o.current,{onPointerInTransitChange:f}=r,h=u.useCallback(()=>{a(null),f(!1)},[f]),m=u.useCallback((y,g)=>{const v=y.currentTarget,b={x:y.clientX,y:y.clientY},w=uA(b,v.getBoundingClientRect()),x=dA(b,w),S=fA(g.getBoundingClientRect()),C=hA([...x,...S]);a(C),f(!0)},[f]);return u.useEffect(()=>()=>h(),[h]),u.useEffect(()=>{if(l&&d){const y=v=>m(v,d),g=v=>m(v,l);return l.addEventListener("pointerleave",y),d.addEventListener("pointerleave",g),()=>{l.removeEventListener("pointerleave",y),d.removeEventListener("pointerleave",g)}}},[l,d,m,h]),u.useEffect(()=>{if(i){const y=g=>{const v=g.target,b={x:g.clientX,y:g.clientY},w=(l==null?void 0:l.contains(v))||(d==null?void 0:d.contains(v)),x=!pA(b,i);w?h():x&&(h(),c())};return document.addEventListener("pointermove",y),()=>document.removeEventListener("pointermove",y)}},[l,d,i,c,h]),p.jsx(Xp,{...e,ref:s})}),[iA,aA]=mo(Zn,{isInside:!1}),lA=QT("TooltipContent"),Xp=u.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:s,onPointerDownOutside:i,...a}=e,l=vo(dn,n),c=go(n),{onClose:d}=l;return u.useEffect(()=>(document.addEventListener(Ti,d),()=>document.removeEventListener(Ti,d)),[d]),u.useEffect(()=>{if(l.trigger){const f=h=>{const m=h.target;m!=null&&m.contains(l.trigger)&&d()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[l.trigger,d]),p.jsx(mt,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:f=>f.preventDefault(),onDismiss:d,children:p.jsxs(Fn,{"data-state":l.stateAttribute,...c,...a,ref:t,style:{...a.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[p.jsx(lA,{children:r}),p.jsx(iA,{scope:n,isInside:!0,children:p.jsx(lC,{id:l.contentId,role:"tooltip",children:o||r})})]})})});Yp.displayName=dn;var qp="TooltipArrow",cA=u.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=go(n);return aA(qp,n).isInside?null:p.jsx(Rn,{...o,...r,ref:t})});cA.displayName=qp;function uA(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,r,o,s)){case s:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function dA(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function fA(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function pA(e,t){const{x:n,y:r}=e;let o=!1;for(let s=0,i=t.length-1;s<t.length;i=s++){const a=t[s],l=t[i],c=a.x,d=a.y,f=l.x,h=l.y;d>r!=h>r&&n<(f-c)*(r-d)/(h-d)+c&&(o=!o)}return o}function hA(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),mA(t)}function mA(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const s=t[t.length-1],i=t[t.length-2];if((s.x-i.x)*(o.y-i.y)>=(s.y-i.y)*(o.x-i.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const s=n[n.length-1],i=n[n.length-2];if((s.x-i.x)*(o.y-i.y)>=(s.y-i.y)*(o.x-i.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var gA=Up,vA=Gp,yA=Kp,Zp=Yp;const bA=gA,wA=vA,xA=yA,Jp=u.forwardRef(({className:e,sideOffset:t=4,...n},r)=>p.jsx(Zp,{ref:r,sideOffset:t,className:M("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 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",e),...n}));Jp.displayName=Zp.displayName;var Mi="ToastProvider",[Ii,SA,CA]=Yt("Toast"),[Qp]=ye("Toast",[CA]),[EA,yo]=Qp(Mi),eh=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:o="right",swipeThreshold:s=50,children:i}=e,[a,l]=u.useState(null),[c,d]=u.useState(0),f=u.useRef(!1),h=u.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${Mi}\`. Expected non-empty \`string\`.`),p.jsx(Ii.Provider,{scope:t,children:p.jsx(EA,{scope:t,label:n,duration:r,swipeDirection:o,swipeThreshold:s,toastCount:c,viewport:a,onViewportChange:l,onToastAdd:u.useCallback(()=>d(m=>m+1),[]),onToastRemove:u.useCallback(()=>d(m=>m-1),[]),isFocusedToastEscapeKeyDownRef:f,isClosePausedRef:h,children:i})})};eh.displayName=Mi;var th="ToastViewport",PA=["F8"],Di="toast.viewportPause",_i="toast.viewportResume",nh=u.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=PA,label:o="Notifications ({hotkey})",...s}=e,i=yo(th,n),a=SA(n),l=u.useRef(null),c=u.useRef(null),d=u.useRef(null),f=u.useRef(null),h=J(t,f,i.onViewportChange),m=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),y=i.toastCount>0;u.useEffect(()=>{const v=b=>{var x;r.length!==0&&r.every(S=>b[S]||b.code===S)&&((x=f.current)==null||x.focus())};return document.addEventListener("keydown",v),()=>document.removeEventListener("keydown",v)},[r]),u.useEffect(()=>{const v=l.current,b=f.current;if(y&&v&&b){const w=()=>{if(!i.isClosePausedRef.current){const T=new CustomEvent(Di);b.dispatchEvent(T),i.isClosePausedRef.current=!0}},x=()=>{if(i.isClosePausedRef.current){const T=new CustomEvent(_i);b.dispatchEvent(T),i.isClosePausedRef.current=!1}},S=T=>{!v.contains(T.relatedTarget)&&x()},C=()=>{v.contains(document.activeElement)||x()};return v.addEventListener("focusin",w),v.addEventListener("focusout",S),v.addEventListener("pointermove",w),v.addEventListener("pointerleave",C),window.addEventListener("blur",w),window.addEventListener("focus",x),()=>{v.removeEventListener("focusin",w),v.removeEventListener("focusout",S),v.removeEventListener("pointermove",w),v.removeEventListener("pointerleave",C),window.removeEventListener("blur",w),window.removeEventListener("focus",x)}}},[y,i.isClosePausedRef]);const g=u.useCallback(({tabbingDirection:v})=>{const w=a().map(x=>{const S=x.ref.current,C=[S,...FA(S)];return v==="forwards"?C:C.reverse()});return(v==="forwards"?w.reverse():w).flat()},[a]);return u.useEffect(()=>{const v=f.current;if(v){const b=w=>{var C,T,A;const x=w.altKey||w.ctrlKey||w.metaKey;if(w.key==="Tab"&&!x){const N=document.activeElement,I=w.shiftKey;if(w.target===v&&I){(C=c.current)==null||C.focus();return}const V=g({tabbingDirection:I?"backwards":"forwards"}),U=V.findIndex(_=>_===N);Li(V.slice(U+1))?w.preventDefault():I?(T=c.current)==null||T.focus():(A=d.current)==null||A.focus()}};return v.addEventListener("keydown",b),()=>v.removeEventListener("keydown",b)}},[a,g]),p.jsxs(Nx,{ref:l,role:"region","aria-label":o.replace("{hotkey}",m),tabIndex:-1,style:{pointerEvents:y?void 0:"none"},children:[y&&p.jsx(ki,{ref:c,onFocusFromOutsideViewport:()=>{const v=g({tabbingDirection:"forwards"});Li(v)}}),p.jsx(Ii.Slot,{scope:n,children:p.jsx(W.ol,{tabIndex:-1,...s,ref:h})}),y&&p.jsx(ki,{ref:d,onFocusFromOutsideViewport:()=>{const v=g({tabbingDirection:"backwards"});Li(v)}})]})});nh.displayName=th;var rh="ToastFocusProxy",ki=u.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...o}=e,s=yo(rh,n);return p.jsx(jr,{tabIndex:0,...o,ref:t,style:{position:"fixed"},onFocus:i=>{var c;const a=i.relatedTarget;!((c=s.viewport)!=null&&c.contains(a))&&r()}})});ki.displayName=rh;var Jn="Toast",TA="toast.swipeStart",AA="toast.swipeMove",NA="toast.swipeCancel",MA="toast.swipeEnd",oh=u.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:o,onOpenChange:s,...i}=e,[a,l]=we({prop:r,defaultProp:o??!0,onChange:s,caller:Jn});return p.jsx(ve,{present:n||a,children:p.jsx(_A,{open:a,...i,ref:t,onClose:()=>l(!1),onPause:de(e.onPause),onResume:de(e.onResume),onSwipeStart:k(e.onSwipeStart,c=>{c.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:k(e.onSwipeMove,c=>{const{x:d,y:f}=c.detail.delta;c.currentTarget.setAttribute("data-swipe","move"),c.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${d}px`),c.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${f}px`)}),onSwipeCancel:k(e.onSwipeCancel,c=>{c.currentTarget.setAttribute("data-swipe","cancel"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),c.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:k(e.onSwipeEnd,c=>{const{x:d,y:f}=c.detail.delta;c.currentTarget.setAttribute("data-swipe","end"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),c.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${d}px`),c.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${f}px`),l(!1)})})})});oh.displayName=Jn;var[IA,DA]=Qp(Jn,{onClose(){}}),_A=u.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:o,open:s,onClose:i,onEscapeKeyDown:a,onPause:l,onResume:c,onSwipeStart:d,onSwipeMove:f,onSwipeCancel:h,onSwipeEnd:m,...y}=e,g=yo(Jn,n),[v,b]=u.useState(null),w=J(t,_=>b(_)),x=u.useRef(null),S=u.useRef(null),C=o||g.duration,T=u.useRef(0),A=u.useRef(C),N=u.useRef(0),{onToastAdd:I,onToastRemove:O}=g,L=de(()=>{var K;(v==null?void 0:v.contains(document.activeElement))&&((K=g.viewport)==null||K.focus()),i()}),V=u.useCallback(_=>{!_||_===1/0||(window.clearTimeout(N.current),T.current=new Date().getTime(),N.current=window.setTimeout(L,_))},[L]);u.useEffect(()=>{const _=g.viewport;if(_){const K=()=>{V(A.current),c==null||c()},H=()=>{const B=new Date().getTime()-T.current;A.current=A.current-B,window.clearTimeout(N.current),l==null||l()};return _.addEventListener(Di,H),_.addEventListener(_i,K),()=>{_.removeEventListener(Di,H),_.removeEventListener(_i,K)}}},[g.viewport,C,l,c,V]),u.useEffect(()=>{s&&!g.isClosePausedRef.current&&V(C)},[s,C,g.isClosePausedRef,V]),u.useEffect(()=>(I(),()=>O()),[I,O]);const U=u.useMemo(()=>v?dh(v):null,[v]);return g.viewport?p.jsxs(p.Fragment,{children:[U&&p.jsx(kA,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite",children:U}),p.jsx(IA,{scope:n,onClose:L,children:Tn.createPortal(p.jsx(Ii.ItemSlot,{scope:n,children:p.jsx(Ax,{asChild:!0,onEscapeKeyDown:k(a,()=>{g.isFocusedToastEscapeKeyDownRef.current||L(),g.isFocusedToastEscapeKeyDownRef.current=!1}),children:p.jsx(W.li,{tabIndex:0,"data-state":s?"open":"closed","data-swipe-direction":g.swipeDirection,...y,ref:w,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:k(e.onKeyDown,_=>{_.key==="Escape"&&(a==null||a(_.nativeEvent),_.nativeEvent.defaultPrevented||(g.isFocusedToastEscapeKeyDownRef.current=!0,L()))}),onPointerDown:k(e.onPointerDown,_=>{_.button===0&&(x.current={x:_.clientX,y:_.clientY})}),onPointerMove:k(e.onPointerMove,_=>{if(!x.current)return;const K=_.clientX-x.current.x,H=_.clientY-x.current.y,B=!!S.current,$=["left","right"].includes(g.swipeDirection),F=["left","up"].includes(g.swipeDirection)?Math.min:Math.max,ne=$?F(0,K):0,re=$?0:F(0,H),D=_.pointerType==="touch"?10:2,G={x:ne,y:re},X={originalEvent:_,delta:G};B?(S.current=G,bo(AA,f,X,{discrete:!1})):fh(G,g.swipeDirection,D)?(S.current=G,bo(TA,d,X,{discrete:!1}),_.target.setPointerCapture(_.pointerId)):(Math.abs(K)>D||Math.abs(H)>D)&&(x.current=null)}),onPointerUp:k(e.onPointerUp,_=>{const K=S.current,H=_.target;if(H.hasPointerCapture(_.pointerId)&&H.releasePointerCapture(_.pointerId),S.current=null,x.current=null,K){const B=_.currentTarget,$={originalEvent:_,delta:K};fh(K,g.swipeDirection,g.swipeThreshold)?bo(MA,m,$,{discrete:!0}):bo(NA,h,$,{discrete:!0}),B.addEventListener("click",F=>F.preventDefault(),{once:!0})}})})})}),g.viewport)})]}):null}),kA=e=>{const{__scopeToast:t,children:n,...r}=e,o=yo(Jn,t),[s,i]=u.useState(!1),[a,l]=u.useState(!1);return VA(()=>i(!0)),u.useEffect(()=>{const c=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(c)},[]),a?null:p.jsx(nn,{asChild:!0,children:p.jsx(jr,{...r,children:s&&p.jsxs(p.Fragment,{children:[o.label," ",n]})})})},OA="ToastTitle",sh=u.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return p.jsx(W.div,{...r,ref:t})});sh.displayName=OA;var LA="ToastDescription",ih=u.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return p.jsx(W.div,{...r,ref:t})});ih.displayName=LA;var ah="ToastAction",lh=u.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?p.jsx(uh,{altText:n,asChild:!0,children:p.jsx(Oi,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${ah}\`. Expected non-empty \`string\`.`),null)});lh.displayName=ah;var ch="ToastClose",Oi=u.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,o=DA(ch,n);return p.jsx(uh,{asChild:!0,children:p.jsx(W.button,{type:"button",...r,ref:t,onClick:k(e.onClick,o.onClose)})})});Oi.displayName=ch;var uh=u.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...o}=e;return p.jsx(W.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...o,ref:t})});function dh(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),$A(r)){const o=r.ariaHidden||r.hidden||r.style.display==="none",s=r.dataset.radixToastAnnounceExclude==="";if(!o)if(s){const i=r.dataset.radixToastAnnounceAlt;i&&t.push(i)}else t.push(...dh(r))}}),t}function bo(e,t,n,{discrete:r}){const o=n.originalEvent.currentTarget,s=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?ws(o,s):o.dispatchEvent(s)}var fh=(e,t,n=0)=>{const r=Math.abs(e.x),o=Math.abs(e.y),s=r>o;return t==="left"||t==="right"?s&&r>n:!s&&o>n};function VA(e=()=>{}){const t=de(e);pe(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function $A(e){return e.nodeType===e.ELEMENT_NODE}function FA(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Li(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var RA=eh,ph=nh,hh=oh,mh=sh,gh=ih,vh=lh,yh=Oi;const BA=RA,bh=u.forwardRef(({className:e,...t},n)=>p.jsx(ph,{ref:n,className:M("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));bh.displayName=ph.displayName;const zA=Kt("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),wh=u.forwardRef(({className:e,variant:t,...n},r)=>p.jsx(hh,{ref:r,className:M(zA({variant:t}),e),...n}));wh.displayName=hh.displayName;const xh=u.forwardRef(({className:e,...t},n)=>p.jsx(vh,{ref:n,className:M("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",e),...t}));xh.displayName=vh.displayName;const Sh=u.forwardRef(({className:e,...t},n)=>p.jsx(yh,{ref:n,className:M("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:p.jsx(Ps,{className:"h-4 w-4"})}));Sh.displayName=yh.displayName;const Ch=u.forwardRef(({className:e,...t},n)=>p.jsx(mh,{ref:n,className:M("text-sm font-semibold",e),...t}));Ch.displayName=mh.displayName;const Eh=u.forwardRef(({className:e,...t},n)=>p.jsx(gh,{ref:n,className:M("text-sm opacity-90",e),...t}));Eh.displayName=gh.displayName;const WA=1,HA=1e6;let Vi=0;function jA(){return Vi=(Vi+1)%Number.MAX_SAFE_INTEGER,Vi.toString()}const $i=new Map,Ph=e=>{if($i.has(e))return;const t=setTimeout(()=>{$i.delete(e),Qn({type:"REMOVE_TOAST",toastId:e})},HA);$i.set(e,t)},Th=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,WA)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=t;return n?Ph(n):e.toasts.forEach(r=>{Ph(r.id)}),{...e,toasts:e.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},wo=[];let xo={toasts:[]};function Qn(e){xo=Th(xo,e),wo.forEach(t=>{t(xo)})}function Ah({...e}){const t=jA(),n=o=>Qn({type:"UPDATE_TOAST",toast:{...o,id:t}}),r=()=>Qn({type:"DISMISS_TOAST",toastId:t});return Qn({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:o=>{o||r()}}}),{id:t,dismiss:r,update:n}}function UA(){const[e,t]=u.useState(xo);return u.useEffect(()=>(wo.push(t),()=>{const n=wo.indexOf(t);n>-1&&wo.splice(n,1)}),[e]),{...e,toast:Ah,dismiss:n=>Qn({type:"DISMISS_TOAST",toastId:n})}}function GA({className:e,...t}){return p.jsx("div",{className:M("animate-pulse rounded-md bg-muted",e),...t})}function KA(e,t=[]){let n=[];function r(s,i){const a=u.createContext(i);a.displayName=s+"Context";const l=n.length;n=[...n,i];const c=f=>{var b;const{scope:h,children:m,...y}=f,g=((b=h==null?void 0:h[e])==null?void 0:b[l])||a,v=u.useMemo(()=>y,Object.values(y));return p.jsx(g.Provider,{value:v,children:m})};c.displayName=s+"Provider";function d(f,h){var g;const m=((g=h==null?void 0:h[e])==null?void 0:g[l])||a,y=u.useContext(m);if(y)return y;if(i!==void 0)return i;throw new Error(`\`${f}\` must be used within \`${s}\``)}return[c,d]}const o=()=>{const s=n.map(i=>u.createContext(i));return function(a){const l=(a==null?void 0:a[e])||s;return u.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return o.scopeName=e,[r,YA(o,...t)]}function YA(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const i=r.reduce((a,{useScope:l,scopeName:c})=>{const f=l(s)[`__scope${c}`];return{...a,...f}},{});return u.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}var XA=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Nh=XA.reduce((e,t)=>{const n=Mn(`Primitive.${t}`),r=u.forwardRef((o,s)=>{const{asChild:i,...a}=o,l=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(l,{...a,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Fi="Progress",Ri=100,[qA]=KA(Fi),[ZA,JA]=qA(Fi),Mh=u.forwardRef((e,t)=>{const{__scopeProgress:n,value:r=null,max:o,getValueLabel:s=QA,...i}=e;(o||o===0)&&!kh(o)&&console.error(eN(`${o}`,"Progress"));const a=kh(o)?o:Ri;r!==null&&!Oh(r,a)&&console.error(tN(`${r}`,"Progress"));const l=Oh(r,a)?r:null,c=So(l)?s(l,a):void 0;return p.jsx(ZA,{scope:n,value:l,max:a,children:p.jsx(Nh.div,{"aria-valuemax":a,"aria-valuemin":0,"aria-valuenow":So(l)?l:void 0,"aria-valuetext":c,role:"progressbar","data-state":_h(l,a),"data-value":l??void 0,"data-max":a,...i,ref:t})})});Mh.displayName=Fi;var Ih="ProgressIndicator",Dh=u.forwardRef((e,t)=>{const{__scopeProgress:n,...r}=e,o=JA(Ih,n);return p.jsx(Nh.div,{"data-state":_h(o.value,o.max),"data-value":o.value??void 0,"data-max":o.max,...r,ref:t})});Dh.displayName=Ih;function QA(e,t){return`${Math.round(e/t*100)}%`}function _h(e,t){return e==null?"indeterminate":e===t?"complete":"loading"}function So(e){return typeof e=="number"}function kh(e){return So(e)&&!isNaN(e)&&e>0}function Oh(e,t){return So(e)&&!isNaN(e)&&e<=t&&e>=0}function eN(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${Ri}\`.`}function tN(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:
|
|
105
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return d.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},QE="DialogDescriptionWarning",eP=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${sf(QE).contentName}}.`;return d.useEffect(()=>{var s;const o=(s=e.current)==null?void 0:s.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},li=Ud,af=Kd,ci=Xd,zn=qd,Wn=Zd,no=Qd,ro=tf,oo=rf;const lf=li,tP=af,cf=ci,nP=oo,ui=d.forwardRef(({className:e,...t},n)=>p.jsx(zn,{ref:n,className:M("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));ui.displayName=zn.displayName;const di=d.forwardRef(({className:e,children:t,"aria-describedby":n,description:r,...o},s)=>{const i=E.useId(),a=n||(r?i:void 0);return p.jsxs(cf,{children:[p.jsx(ui,{}),p.jsxs(Wn,{ref:s,className:M("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-1/2 data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-1/2 sm:rounded-lg",e),...o,"aria-describedby":a,children:[t,r&&p.jsx("span",{id:i,className:"sr-only",children:r}),p.jsxs(oo,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[p.jsx(xs,{className:"h-4 w-4"}),p.jsx("span",{className:"sr-only",children:"Close"})]})]})]})});di.displayName=Wn.displayName;const uf=({className:e,...t})=>p.jsx("div",{className:M("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});uf.displayName="DialogHeader";const df=({className:e,...t})=>p.jsx("div",{className:M("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});df.displayName="DialogFooter";const ff=d.forwardRef(({className:e,...t},n)=>p.jsx(no,{ref:n,className:M("text-lg font-semibold leading-none tracking-tight",e),...t}));ff.displayName=no.displayName;const pf=d.forwardRef(({className:e,...t},n)=>p.jsx(ro,{ref:n,className:M("text-sm text-muted-foreground",e),...t}));pf.displayName=ro.displayName;function rP(e){const t=oP(e),n=d.forwardRef((r,o)=>{const{children:s,...i}=r,a=d.Children.toArray(s),l=a.find(iP);if(l){const c=l.props.children,u=a.map(f=>f===l?d.Children.count(c)>1?d.Children.only(null):d.isValidElement(c)?c.props.children:null:f);return p.jsx(t,{...i,ref:o,children:d.isValidElement(c)?d.cloneElement(c,void 0,u):null})}return p.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function oP(e){const t=d.forwardRef((n,r)=>{const{children:o,...s}=n;if(d.isValidElement(o)){const i=lP(o),a=aP(s,o.props);return o.type!==d.Fragment&&(a.ref=r?Se(r,i):i),d.cloneElement(o,a)}return d.Children.count(o)>1?d.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var sP=Symbol("radix.slottable");function iP(e){return d.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===sP}function aP(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...a)=>{const l=s(...a);return o(...a),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function lP(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var fi=["Enter"," "],cP=["ArrowDown","PageUp","Home"],hf=["ArrowUp","PageDown","End"],uP=[...cP,...hf],dP={ltr:[...fi,"ArrowRight"],rtl:[...fi,"ArrowLeft"]},fP={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Hn="Menu",[jn,pP,hP]=Gt(Hn),[_t,mf]=ge(Hn,[hP,Ue,Kt]),Un=Ue(),gf=Kt(),[vf,vt]=_t(Hn),[mP,Gn]=_t(Hn),yf=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:s,modal:i=!0}=e,a=Un(t),[l,c]=d.useState(null),u=d.useRef(!1),f=ce(s),h=ut(o);return d.useEffect(()=>{const m=()=>{u.current=!0,document.addEventListener("pointerdown",y,{capture:!0,once:!0}),document.addEventListener("pointermove",y,{capture:!0,once:!0})},y=()=>u.current=!1;return document.addEventListener("keydown",m,{capture:!0}),()=>{document.removeEventListener("keydown",m,{capture:!0}),document.removeEventListener("pointerdown",y,{capture:!0}),document.removeEventListener("pointermove",y,{capture:!0})}},[]),p.jsx(Jt,{...a,children:p.jsx(vf,{scope:t,open:n,onOpenChange:f,content:l,onContentChange:c,children:p.jsx(mP,{scope:t,onClose:d.useCallback(()=>f(!1),[f]),isUsingKeyboardRef:u,dir:h,modal:i,children:r})})})};yf.displayName=Hn;var gP="MenuAnchor",pi=d.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=Un(n);return p.jsx(Qt,{...o,...r,ref:t})});pi.displayName=gP;var hi="MenuPortal",[vP,bf]=_t(hi,{forceMount:void 0}),wf=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,s=vt(hi,t);return p.jsx(vP,{scope:t,forceMount:n,children:p.jsx(me,{present:n||s.open,children:p.jsx(en,{asChild:!0,container:o,children:r})})})};wf.displayName=hi;var Me="MenuContent",[yP,mi]=_t(Me),xf=d.forwardRef((e,t)=>{const n=bf(Me,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,s=vt(Me,e.__scopeMenu),i=Gn(Me,e.__scopeMenu);return p.jsx(jn.Provider,{scope:e.__scopeMenu,children:p.jsx(me,{present:r||s.open,children:p.jsx(jn.Slot,{scope:e.__scopeMenu,children:i.modal?p.jsx(bP,{...o,ref:t}):p.jsx(wP,{...o,ref:t})})})})}),bP=d.forwardRef((e,t)=>{const n=vt(Me,e.__scopeMenu),r=d.useRef(null),o=J(t,r);return d.useEffect(()=>{const s=r.current;if(s)return Hr(s)},[]),p.jsx(gi,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:_(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),wP=d.forwardRef((e,t)=>{const n=vt(Me,e.__scopeMenu);return p.jsx(gi,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),xP=rP("MenuContent.ScrollLock"),gi=d.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:s,onCloseAutoFocus:i,disableOutsidePointerEvents:a,onEntryFocus:l,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:f,onInteractOutside:h,onDismiss:m,disableOutsideScroll:y,...g}=e,v=vt(Me,n),b=Gn(Me,n),w=Un(n),x=gf(n),S=pP(n),[C,T]=d.useState(null),A=d.useRef(null),N=J(t,A,v.onContentChange),I=d.useRef(0),O=d.useRef(""),k=d.useRef(0),L=d.useRef(null),W=d.useRef("right"),F=d.useRef(0),Y=y?Rn:d.Fragment,U=y?{as:xP,allowPinchZoom:!0}:void 0,H=B=>{var z,X;const ee=O.current+B,te=S().filter(q=>!q.disabled),D=document.activeElement,G=(z=te.find(q=>q.ref.current===D))==null?void 0:z.textValue,R=te.map(q=>q.textValue),$=kP(R,ee,G),K=(X=te.find(q=>q.textValue===$))==null?void 0:X.ref.current;(function q(Z){O.current=Z,window.clearTimeout(I.current),Z!==""&&(I.current=window.setTimeout(()=>q(""),1e3))})(ee),K&&setTimeout(()=>K.focus())};d.useEffect(()=>()=>window.clearTimeout(I.current),[]),Mr();const V=d.useCallback(B=>{var te,D;return W.current===((te=L.current)==null?void 0:te.side)&&LP(B,(D=L.current)==null?void 0:D.area)},[]);return p.jsx(yP,{scope:n,searchRef:O,onItemEnter:d.useCallback(B=>{V(B)&&B.preventDefault()},[V]),onItemLeave:d.useCallback(B=>{var ee;V(B)||((ee=A.current)==null||ee.focus(),T(null))},[V]),onTriggerLeave:d.useCallback(B=>{V(B)&&B.preventDefault()},[V]),pointerGraceTimerRef:k,onPointerGraceIntentChange:d.useCallback(B=>{L.current=B},[]),children:p.jsx(Y,{...U,children:p.jsx(kn,{asChild:!0,trapped:o,onMountAutoFocus:_(s,B=>{var ee;B.preventDefault(),(ee=A.current)==null||ee.focus({preventScroll:!0})}),onUnmountAutoFocus:i,children:p.jsx(dt,{asChild:!0,disableOutsidePointerEvents:a,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:f,onInteractOutside:h,onDismiss:m,children:p.jsx(Es,{asChild:!0,...x,dir:b.dir,orientation:"vertical",loop:r,currentTabStopId:C,onCurrentTabStopIdChange:T,onEntryFocus:_(l,B=>{b.isUsingKeyboardRef.current||B.preventDefault()}),preventScrollOnEntryFocus:!0,children:p.jsx($n,{role:"menu","aria-orientation":"vertical","data-state":Rf(v.open),"data-radix-menu-content":"",dir:b.dir,...w,...g,ref:N,style:{outline:"none",...g.style},onKeyDown:_(g.onKeyDown,B=>{const te=B.target.closest("[data-radix-menu-content]")===B.currentTarget,D=B.ctrlKey||B.altKey||B.metaKey,G=B.key.length===1;te&&(B.key==="Tab"&&B.preventDefault(),!D&&G&&H(B.key));const R=A.current;if(B.target!==R||!uP.includes(B.key))return;B.preventDefault();const K=S().filter(z=>!z.disabled).map(z=>z.ref.current);hf.includes(B.key)&&K.reverse(),DP(K)}),onBlur:_(e.onBlur,B=>{B.currentTarget.contains(B.target)||(window.clearTimeout(I.current),O.current="")}),onPointerMove:_(e.onPointerMove,Yn(B=>{const ee=B.target,te=F.current!==B.clientX;if(B.currentTarget.contains(ee)&&te){const D=B.clientX>F.current?"right":"left";W.current=D,F.current=B.clientX}}))})})})})})})});xf.displayName=Me;var SP="MenuGroup",vi=d.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return p.jsx(j.div,{role:"group",...r,ref:t})});vi.displayName=SP;var CP="MenuLabel",Sf=d.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return p.jsx(j.div,{...r,ref:t})});Sf.displayName=CP;var so="MenuItem",Cf="menu.itemSelect",io=d.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,s=d.useRef(null),i=Gn(so,e.__scopeMenu),a=mi(so,e.__scopeMenu),l=J(t,s),c=d.useRef(!1),u=()=>{const f=s.current;if(!n&&f){const h=new CustomEvent(Cf,{bubbles:!0,cancelable:!0});f.addEventListener(Cf,m=>r==null?void 0:r(m),{once:!0}),gs(f,h),h.defaultPrevented?c.current=!1:i.onClose()}};return p.jsx(Ef,{...o,ref:l,disabled:n,onClick:_(e.onClick,u),onPointerDown:f=>{var h;(h=e.onPointerDown)==null||h.call(e,f),c.current=!0},onPointerUp:_(e.onPointerUp,f=>{var h;c.current||(h=f.currentTarget)==null||h.click()}),onKeyDown:_(e.onKeyDown,f=>{const h=a.searchRef.current!=="";n||h&&f.key===" "||fi.includes(f.key)&&(f.currentTarget.click(),f.preventDefault())})})});io.displayName=so;var Ef=d.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...s}=e,i=mi(so,n),a=gf(n),l=d.useRef(null),c=J(t,l),[u,f]=d.useState(!1),[h,m]=d.useState("");return d.useEffect(()=>{const y=l.current;y&&m((y.textContent??"").trim())},[s.children]),p.jsx(jn.ItemSlot,{scope:n,disabled:r,textValue:o??h,children:p.jsx(Ps,{asChild:!0,...a,focusable:!r,children:p.jsx(j.div,{role:"menuitem","data-highlighted":u?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...s,ref:c,onPointerMove:_(e.onPointerMove,Yn(y=>{r?i.onItemLeave(y):(i.onItemEnter(y),y.defaultPrevented||y.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:_(e.onPointerLeave,Yn(y=>i.onItemLeave(y))),onFocus:_(e.onFocus,()=>f(!0)),onBlur:_(e.onBlur,()=>f(!1))})})})}),EP="MenuCheckboxItem",Pf=d.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return p.jsx(If,{scope:e.__scopeMenu,checked:n,children:p.jsx(io,{role:"menuitemcheckbox","aria-checked":ao(n)?"mixed":n,...o,ref:t,"data-state":wi(n),onSelect:_(o.onSelect,()=>r==null?void 0:r(ao(n)?!0:!n),{checkForDefaultPrevented:!1})})})});Pf.displayName=EP;var Tf="MenuRadioGroup",[PP,TP]=_t(Tf,{value:void 0,onValueChange:()=>{}}),Af=d.forwardRef((e,t)=>{const{value:n,onValueChange:r,...o}=e,s=ce(r);return p.jsx(PP,{scope:e.__scopeMenu,value:n,onValueChange:s,children:p.jsx(vi,{...o,ref:t})})});Af.displayName=Tf;var Nf="MenuRadioItem",Mf=d.forwardRef((e,t)=>{const{value:n,...r}=e,o=TP(Nf,e.__scopeMenu),s=n===o.value;return p.jsx(If,{scope:e.__scopeMenu,checked:s,children:p.jsx(io,{role:"menuitemradio","aria-checked":s,...r,ref:t,"data-state":wi(s),onSelect:_(r.onSelect,()=>{var i;return(i=o.onValueChange)==null?void 0:i.call(o,n)},{checkForDefaultPrevented:!1})})})});Mf.displayName=Nf;var yi="MenuItemIndicator",[If,AP]=_t(yi,{checked:!1}),Df=d.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,s=AP(yi,n);return p.jsx(me,{present:r||ao(s.checked)||s.checked===!0,children:p.jsx(j.span,{...o,ref:t,"data-state":wi(s.checked)})})});Df.displayName=yi;var NP="MenuSeparator",_f=d.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return p.jsx(j.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});_f.displayName=NP;var MP="MenuArrow",kf=d.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=Un(n);return p.jsx(Fn,{...o,...r,ref:t})});kf.displayName=MP;var bi="MenuSub",[IP,Of]=_t(bi),Lf=e=>{const{__scopeMenu:t,children:n,open:r=!1,onOpenChange:o}=e,s=vt(bi,t),i=Un(t),[a,l]=d.useState(null),[c,u]=d.useState(null),f=ce(o);return d.useEffect(()=>(s.open===!1&&f(!1),()=>f(!1)),[s.open,f]),p.jsx(Jt,{...i,children:p.jsx(vf,{scope:t,open:r,onOpenChange:f,content:c,onContentChange:u,children:p.jsx(IP,{scope:t,contentId:fe(),triggerId:fe(),trigger:a,onTriggerChange:l,children:n})})})};Lf.displayName=bi;var Kn="MenuSubTrigger",Vf=d.forwardRef((e,t)=>{const n=vt(Kn,e.__scopeMenu),r=Gn(Kn,e.__scopeMenu),o=Of(Kn,e.__scopeMenu),s=mi(Kn,e.__scopeMenu),i=d.useRef(null),{pointerGraceTimerRef:a,onPointerGraceIntentChange:l}=s,c={__scopeMenu:e.__scopeMenu},u=d.useCallback(()=>{i.current&&window.clearTimeout(i.current),i.current=null},[]);return d.useEffect(()=>u,[u]),d.useEffect(()=>{const f=a.current;return()=>{window.clearTimeout(f),l(null)}},[a,l]),p.jsx(pi,{asChild:!0,...c,children:p.jsx(Ef,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":Rf(n.open),...e,ref:Se(t,o.onTriggerChange),onClick:f=>{var h;(h=e.onClick)==null||h.call(e,f),!(e.disabled||f.defaultPrevented)&&(f.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:_(e.onPointerMove,Yn(f=>{s.onItemEnter(f),!f.defaultPrevented&&!e.disabled&&!n.open&&!i.current&&(s.onPointerGraceIntentChange(null),i.current=window.setTimeout(()=>{n.onOpenChange(!0),u()},100))})),onPointerLeave:_(e.onPointerLeave,Yn(f=>{var m,y;u();const h=(m=n.content)==null?void 0:m.getBoundingClientRect();if(h){const g=(y=n.content)==null?void 0:y.dataset.side,v=g==="right",b=v?-5:5,w=h[v?"left":"right"],x=h[v?"right":"left"];s.onPointerGraceIntentChange({area:[{x:f.clientX+b,y:f.clientY},{x:w,y:h.top},{x,y:h.top},{x,y:h.bottom},{x:w,y:h.bottom}],side:g}),window.clearTimeout(a.current),a.current=window.setTimeout(()=>s.onPointerGraceIntentChange(null),300)}else{if(s.onTriggerLeave(f),f.defaultPrevented)return;s.onPointerGraceIntentChange(null)}})),onKeyDown:_(e.onKeyDown,f=>{var m;const h=s.searchRef.current!=="";e.disabled||h&&f.key===" "||dP[r.dir].includes(f.key)&&(n.onOpenChange(!0),(m=n.content)==null||m.focus(),f.preventDefault())})})})});Vf.displayName=Kn;var $f="MenuSubContent",Ff=d.forwardRef((e,t)=>{const n=bf(Me,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,s=vt(Me,e.__scopeMenu),i=Gn(Me,e.__scopeMenu),a=Of($f,e.__scopeMenu),l=d.useRef(null),c=J(t,l);return p.jsx(jn.Provider,{scope:e.__scopeMenu,children:p.jsx(me,{present:r||s.open,children:p.jsx(jn.Slot,{scope:e.__scopeMenu,children:p.jsx(gi,{id:a.contentId,"aria-labelledby":a.triggerId,...o,ref:c,align:"start",side:i.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:u=>{var f;i.isUsingKeyboardRef.current&&((f=l.current)==null||f.focus()),u.preventDefault()},onCloseAutoFocus:u=>u.preventDefault(),onFocusOutside:_(e.onFocusOutside,u=>{u.target!==a.trigger&&s.onOpenChange(!1)}),onEscapeKeyDown:_(e.onEscapeKeyDown,u=>{i.onClose(),u.preventDefault()}),onKeyDown:_(e.onKeyDown,u=>{var m;const f=u.currentTarget.contains(u.target),h=fP[i.dir].includes(u.key);f&&h&&(s.onOpenChange(!1),(m=a.trigger)==null||m.focus(),u.preventDefault())})})})})})});Ff.displayName=$f;function Rf(e){return e?"open":"closed"}function ao(e){return e==="indeterminate"}function wi(e){return ao(e)?"indeterminate":e?"checked":"unchecked"}function DP(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function _P(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function kP(e,t,n){const o=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let i=_P(e,Math.max(s,0));o.length===1&&(i=i.filter(c=>c!==n));const l=i.find(c=>c.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}function OP(e,t){const{x:n,y:r}=e;let o=!1;for(let s=0,i=t.length-1;s<t.length;i=s++){const a=t[s],l=t[i],c=a.x,u=a.y,f=l.x,h=l.y;u>r!=h>r&&n<(f-c)*(r-u)/(h-u)+c&&(o=!o)}return o}function LP(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return OP(n,t)}function Yn(e){return t=>t.pointerType==="mouse"?e(t):void 0}var VP=yf,$P=pi,FP=wf,RP=xf,BP=vi,zP=Sf,WP=io,HP=Pf,jP=Af,UP=Mf,GP=Df,KP=_f,YP=kf,XP=Lf,qP=Vf,ZP=Ff,lo="DropdownMenu",[JP]=ge(lo,[mf]),we=mf(),[QP,Bf]=JP(lo),zf=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:s,onOpenChange:i,modal:a=!0}=e,l=we(t),c=d.useRef(null),[u,f]=ye({prop:o,defaultProp:s??!1,onChange:i,caller:lo});return p.jsx(QP,{scope:t,triggerId:fe(),triggerRef:c,contentId:fe(),open:u,onOpenChange:f,onOpenToggle:d.useCallback(()=>f(h=>!h),[f]),modal:a,children:p.jsx(VP,{...l,open:u,onOpenChange:f,dir:r,modal:a,children:n})})};zf.displayName=lo;var Wf="DropdownMenuTrigger",Hf=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,s=Bf(Wf,n),i=we(n);return p.jsx($P,{asChild:!0,...i,children:p.jsx(j.button,{type:"button",id:s.triggerId,"aria-haspopup":"menu","aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":s.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:Se(t,s.triggerRef),onPointerDown:_(e.onPointerDown,a=>{!r&&a.button===0&&a.ctrlKey===!1&&(s.onOpenToggle(),s.open||a.preventDefault())}),onKeyDown:_(e.onKeyDown,a=>{r||(["Enter"," "].includes(a.key)&&s.onOpenToggle(),a.key==="ArrowDown"&&s.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(a.key)&&a.preventDefault())})})})});Hf.displayName=Wf;var eT="DropdownMenuPortal",jf=e=>{const{__scopeDropdownMenu:t,...n}=e,r=we(t);return p.jsx(FP,{...r,...n})};jf.displayName=eT;var Uf="DropdownMenuContent",Gf=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Bf(Uf,n),s=we(n),i=d.useRef(!1);return p.jsx(RP,{id:o.contentId,"aria-labelledby":o.triggerId,...s,...r,ref:t,onCloseAutoFocus:_(e.onCloseAutoFocus,a=>{var l;i.current||(l=o.triggerRef.current)==null||l.focus(),i.current=!1,a.preventDefault()}),onInteractOutside:_(e.onInteractOutside,a=>{const l=a.detail.originalEvent,c=l.button===0&&l.ctrlKey===!0,u=l.button===2||c;(!o.modal||u)&&(i.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Gf.displayName=Uf;var tT="DropdownMenuGroup",Kf=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=we(n);return p.jsx(BP,{...o,...r,ref:t})});Kf.displayName=tT;var nT="DropdownMenuLabel",Yf=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=we(n);return p.jsx(zP,{...o,...r,ref:t})});Yf.displayName=nT;var rT="DropdownMenuItem",Xf=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=we(n);return p.jsx(WP,{...o,...r,ref:t})});Xf.displayName=rT;var oT="DropdownMenuCheckboxItem",qf=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=we(n);return p.jsx(HP,{...o,...r,ref:t})});qf.displayName=oT;var sT="DropdownMenuRadioGroup",Zf=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=we(n);return p.jsx(jP,{...o,...r,ref:t})});Zf.displayName=sT;var iT="DropdownMenuRadioItem",Jf=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=we(n);return p.jsx(UP,{...o,...r,ref:t})});Jf.displayName=iT;var aT="DropdownMenuItemIndicator",Qf=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=we(n);return p.jsx(GP,{...o,...r,ref:t})});Qf.displayName=aT;var lT="DropdownMenuSeparator",ep=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=we(n);return p.jsx(KP,{...o,...r,ref:t})});ep.displayName=lT;var cT="DropdownMenuArrow",uT=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=we(n);return p.jsx(YP,{...o,...r,ref:t})});uT.displayName=cT;var dT=e=>{const{__scopeDropdownMenu:t,children:n,open:r,onOpenChange:o,defaultOpen:s}=e,i=we(t),[a,l]=ye({prop:r,defaultProp:s??!1,onChange:o,caller:"DropdownMenuSub"});return p.jsx(XP,{...i,open:a,onOpenChange:l,children:n})},fT="DropdownMenuSubTrigger",tp=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=we(n);return p.jsx(qP,{...o,...r,ref:t})});tp.displayName=fT;var pT="DropdownMenuSubContent",np=d.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=we(n);return p.jsx(ZP,{...o,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});np.displayName=pT;var hT=zf,mT=Hf,rp=jf,op=Gf,gT=Kf,sp=Yf,ip=Xf,ap=qf,vT=Zf,lp=Jf,cp=Qf,up=ep,yT=dT,dp=tp,fp=np;const bT=hT,wT=mT,xT=gT,ST=rp,CT=yT,ET=vT,pp=d.forwardRef(({className:e,inset:t,children:n,...r},o)=>p.jsxs(dp,{ref:o,className:M("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",t&&"pl-8",e),...r,children:[n,p.jsx(ws,{className:"ml-auto h-4 w-4"})]}));pp.displayName=dp.displayName;const hp=d.forwardRef(({className:e,...t},n)=>p.jsx(fp,{ref:n,className:M("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 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",e),...t}));hp.displayName=fp.displayName;const mp=d.forwardRef(({className:e,sideOffset:t=4,...n},r)=>p.jsx(rp,{children:p.jsx(op,{ref:r,sideOffset:t,className:M("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 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",e),...n})}));mp.displayName=op.displayName;const gp=d.forwardRef(({className:e,inset:t,...n},r)=>p.jsx(ip,{ref:r,className:M("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t&&"pl-8",e),...n}));gp.displayName=ip.displayName;const vp=d.forwardRef(({className:e,children:t,checked:n,...r},o)=>p.jsxs(ap,{ref:o,className:M("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:n,...r,children:[p.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:p.jsx(cp,{children:p.jsx(bs,{className:"h-4 w-4"})})}),t]}));vp.displayName=ap.displayName;const yp=d.forwardRef(({className:e,children:t,...n},r)=>p.jsxs(lp,{ref:r,className:M("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[p.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:p.jsx(cp,{children:p.jsx(ac,{className:"h-2 w-2 fill-current"})})}),t]}));yp.displayName=lp.displayName;const bp=d.forwardRef(({className:e,inset:t,...n},r)=>p.jsx(sp,{ref:r,className:M("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...n}));bp.displayName=sp.displayName;const wp=d.forwardRef(({className:e,...t},n)=>p.jsx(up,{ref:n,className:M("-mx-1 my-1 h-px bg-muted",e),...t}));wp.displayName=up.displayName;const xp=({className:e,...t})=>p.jsx("span",{className:M("ml-auto text-xs tracking-widest opacity-60",e),...t});xp.displayName="DropdownMenuShortcut";function PT(e){const t=TT(e),n=d.forwardRef((r,o)=>{const{children:s,...i}=r,a=d.Children.toArray(s),l=a.find(NT);if(l){const c=l.props.children,u=a.map(f=>f===l?d.Children.count(c)>1?d.Children.only(null):d.isValidElement(c)?c.props.children:null:f);return p.jsx(t,{...i,ref:o,children:d.isValidElement(c)?d.cloneElement(c,void 0,u):null})}return p.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function TT(e){const t=d.forwardRef((n,r)=>{const{children:o,...s}=n;if(d.isValidElement(o)){const i=IT(o),a=MT(s,o.props);return o.type!==d.Fragment&&(a.ref=r?Se(r,i):i),d.cloneElement(o,a)}return d.Children.count(o)>1?d.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var AT=Symbol("radix.slottable");function NT(e){return d.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===AT}function MT(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...a)=>{const l=s(...a);return o(...a),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function IT(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var co="Popover",[Sp]=ge(co,[Ue]),Xn=Ue(),[DT,yt]=Sp(co),Cp=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:s,modal:i=!1}=e,a=Xn(t),l=d.useRef(null),[c,u]=d.useState(!1),[f,h]=ye({prop:r,defaultProp:o??!1,onChange:s,caller:co});return p.jsx(Jt,{...a,children:p.jsx(DT,{scope:t,contentId:fe(),triggerRef:l,open:f,onOpenChange:h,onOpenToggle:d.useCallback(()=>h(m=>!m),[h]),hasCustomAnchor:c,onCustomAnchorAdd:d.useCallback(()=>u(!0),[]),onCustomAnchorRemove:d.useCallback(()=>u(!1),[]),modal:i,children:n})})};Cp.displayName=co;var Ep="PopoverAnchor",_T=d.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=yt(Ep,n),s=Xn(n),{onCustomAnchorAdd:i,onCustomAnchorRemove:a}=o;return d.useEffect(()=>(i(),()=>a()),[i,a]),p.jsx(Qt,{...s,...r,ref:t})});_T.displayName=Ep;var Pp="PopoverTrigger",Tp=d.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=yt(Pp,n),s=Xn(n),i=J(t,o.triggerRef),a=p.jsx(j.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Dp(o.open),...r,ref:i,onClick:_(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?a:p.jsx(Qt,{asChild:!0,...s,children:a})});Tp.displayName=Pp;var xi="PopoverPortal",[kT,OT]=Sp(xi,{forceMount:void 0}),Ap=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,s=yt(xi,t);return p.jsx(kT,{scope:t,forceMount:n,children:p.jsx(me,{present:n||s.open,children:p.jsx(en,{asChild:!0,container:o,children:r})})})};Ap.displayName=xi;var ln="PopoverContent",Np=d.forwardRef((e,t)=>{const n=OT(ln,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,s=yt(ln,e.__scopePopover);return p.jsx(me,{present:r||s.open,children:s.modal?p.jsx(VT,{...o,ref:t}):p.jsx($T,{...o,ref:t})})});Np.displayName=ln;var LT=PT("PopoverContent.RemoveScroll"),VT=d.forwardRef((e,t)=>{const n=yt(ln,e.__scopePopover),r=d.useRef(null),o=J(t,r),s=d.useRef(!1);return d.useEffect(()=>{const i=r.current;if(i)return Hr(i)},[]),p.jsx(Rn,{as:LT,allowPinchZoom:!0,children:p.jsx(Mp,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:_(e.onCloseAutoFocus,i=>{var a;i.preventDefault(),s.current||(a=n.triggerRef.current)==null||a.focus()}),onPointerDownOutside:_(e.onPointerDownOutside,i=>{const a=i.detail.originalEvent,l=a.button===0&&a.ctrlKey===!0,c=a.button===2||l;s.current=c},{checkForDefaultPrevented:!1}),onFocusOutside:_(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1})})})}),$T=d.forwardRef((e,t)=>{const n=yt(ln,e.__scopePopover),r=d.useRef(!1),o=d.useRef(!1);return p.jsx(Mp,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var i,a;(i=e.onCloseAutoFocus)==null||i.call(e,s),s.defaultPrevented||(r.current||(a=n.triggerRef.current)==null||a.focus(),s.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:s=>{var l,c;(l=e.onInteractOutside)==null||l.call(e,s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const i=s.target;((c=n.triggerRef.current)==null?void 0:c.contains(i))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&o.current&&s.preventDefault()}})}),Mp=d.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:s,disableOutsidePointerEvents:i,onEscapeKeyDown:a,onPointerDownOutside:l,onFocusOutside:c,onInteractOutside:u,...f}=e,h=yt(ln,n),m=Xn(n);return Mr(),p.jsx(kn,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:s,children:p.jsx(dt,{asChild:!0,disableOutsidePointerEvents:i,onInteractOutside:u,onEscapeKeyDown:a,onPointerDownOutside:l,onFocusOutside:c,onDismiss:()=>h.onOpenChange(!1),children:p.jsx($n,{"data-state":Dp(h.open),role:"dialog",id:h.contentId,...m,...f,ref:t,style:{...f.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),Ip="PopoverClose",FT=d.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=yt(Ip,n);return p.jsx(j.button,{type:"button",...r,ref:t,onClick:_(e.onClick,()=>o.onOpenChange(!1))})});FT.displayName=Ip;var RT="PopoverArrow",BT=d.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Xn(n);return p.jsx(Fn,{...o,...r,ref:t})});BT.displayName=RT;function Dp(e){return e?"open":"closed"}var zT=Cp,WT=Tp,HT=Ap,_p=Np;const jT=zT,UT=WT,kp=d.forwardRef(({className:e,align:t="center",sideOffset:n=4,...r},o)=>p.jsx(HT,{children:p.jsx(_p,{ref:o,align:t,sideOffset:n,className:M("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 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",e),...r})}));kp.displayName=_p.displayName;var GT=Symbol("radix.slottable");function KT(e){const t=({children:n})=>p.jsx(p.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=GT,t}var[uo]=ge("Tooltip",[Ue]),fo=Ue(),Op="TooltipProvider",YT=700,Si="tooltip.open",[XT,Ci]=uo(Op),Lp=e=>{const{__scopeTooltip:t,delayDuration:n=YT,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:s}=e,i=d.useRef(!0),a=d.useRef(!1),l=d.useRef(0);return d.useEffect(()=>{const c=l.current;return()=>window.clearTimeout(c)},[]),p.jsx(XT,{scope:t,isOpenDelayedRef:i,delayDuration:n,onOpen:d.useCallback(()=>{window.clearTimeout(l.current),i.current=!1},[]),onClose:d.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>i.current=!0,r)},[r]),isPointerInTransitRef:a,onPointerInTransitChange:d.useCallback(c=>{a.current=c},[]),disableHoverableContent:o,children:s})};Lp.displayName=Op;var qn="Tooltip",[qT,po]=uo(qn),Vp=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o,onOpenChange:s,disableHoverableContent:i,delayDuration:a}=e,l=Ci(qn,e.__scopeTooltip),c=fo(t),[u,f]=d.useState(null),h=fe(),m=d.useRef(0),y=i??l.disableHoverableContent,g=a??l.delayDuration,v=d.useRef(!1),[b,w]=ye({prop:r,defaultProp:o??!1,onChange:A=>{A?(l.onOpen(),document.dispatchEvent(new CustomEvent(Si))):l.onClose(),s==null||s(A)},caller:qn}),x=d.useMemo(()=>b?v.current?"delayed-open":"instant-open":"closed",[b]),S=d.useCallback(()=>{window.clearTimeout(m.current),m.current=0,v.current=!1,w(!0)},[w]),C=d.useCallback(()=>{window.clearTimeout(m.current),m.current=0,w(!1)},[w]),T=d.useCallback(()=>{window.clearTimeout(m.current),m.current=window.setTimeout(()=>{v.current=!0,w(!0),m.current=0},g)},[g,w]);return d.useEffect(()=>()=>{m.current&&(window.clearTimeout(m.current),m.current=0)},[]),p.jsx(Jt,{...c,children:p.jsx(qT,{scope:t,contentId:h,open:b,stateAttribute:x,trigger:u,onTriggerChange:f,onTriggerEnter:d.useCallback(()=>{l.isOpenDelayedRef.current?T():S()},[l.isOpenDelayedRef,T,S]),onTriggerLeave:d.useCallback(()=>{y?C():(window.clearTimeout(m.current),m.current=0)},[C,y]),onOpen:S,onClose:C,disableHoverableContent:y,children:n})})};Vp.displayName=qn;var Ei="TooltipTrigger",$p=d.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=po(Ei,n),s=Ci(Ei,n),i=fo(n),a=d.useRef(null),l=J(t,a,o.onTriggerChange),c=d.useRef(!1),u=d.useRef(!1),f=d.useCallback(()=>c.current=!1,[]);return d.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),p.jsx(Qt,{asChild:!0,...i,children:p.jsx(j.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:l,onPointerMove:_(e.onPointerMove,h=>{h.pointerType!=="touch"&&!u.current&&!s.isPointerInTransitRef.current&&(o.onTriggerEnter(),u.current=!0)}),onPointerLeave:_(e.onPointerLeave,()=>{o.onTriggerLeave(),u.current=!1}),onPointerDown:_(e.onPointerDown,()=>{o.open&&o.onClose(),c.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:_(e.onFocus,()=>{c.current||o.onOpen()}),onBlur:_(e.onBlur,o.onClose),onClick:_(e.onClick,o.onClose)})})});$p.displayName=Ei;var ZT="TooltipPortal",[ZO,JT]=uo(ZT,{forceMount:void 0}),cn="TooltipContent",Fp=d.forwardRef((e,t)=>{const n=JT(cn,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...s}=e,i=po(cn,e.__scopeTooltip);return p.jsx(me,{present:r||i.open,children:i.disableHoverableContent?p.jsx(Rp,{side:o,...s,ref:t}):p.jsx(QT,{side:o,...s,ref:t})})}),QT=d.forwardRef((e,t)=>{const n=po(cn,e.__scopeTooltip),r=Ci(cn,e.__scopeTooltip),o=d.useRef(null),s=J(t,o),[i,a]=d.useState(null),{trigger:l,onClose:c}=n,u=o.current,{onPointerInTransitChange:f}=r,h=d.useCallback(()=>{a(null),f(!1)},[f]),m=d.useCallback((y,g)=>{const v=y.currentTarget,b={x:y.clientX,y:y.clientY},w=oA(b,v.getBoundingClientRect()),x=sA(b,w),S=iA(g.getBoundingClientRect()),C=lA([...x,...S]);a(C),f(!0)},[f]);return d.useEffect(()=>()=>h(),[h]),d.useEffect(()=>{if(l&&u){const y=v=>m(v,u),g=v=>m(v,l);return l.addEventListener("pointerleave",y),u.addEventListener("pointerleave",g),()=>{l.removeEventListener("pointerleave",y),u.removeEventListener("pointerleave",g)}}},[l,u,m,h]),d.useEffect(()=>{if(i){const y=g=>{const v=g.target,b={x:g.clientX,y:g.clientY},w=(l==null?void 0:l.contains(v))||(u==null?void 0:u.contains(v)),x=!aA(b,i);w?h():x&&(h(),c())};return document.addEventListener("pointermove",y),()=>document.removeEventListener("pointermove",y)}},[l,u,i,c,h]),p.jsx(Rp,{...e,ref:s})}),[eA,tA]=uo(qn,{isInside:!1}),nA=KT("TooltipContent"),Rp=d.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:s,onPointerDownOutside:i,...a}=e,l=po(cn,n),c=fo(n),{onClose:u}=l;return d.useEffect(()=>(document.addEventListener(Si,u),()=>document.removeEventListener(Si,u)),[u]),d.useEffect(()=>{if(l.trigger){const f=h=>{const m=h.target;m!=null&&m.contains(l.trigger)&&u()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[l.trigger,u]),p.jsx(dt,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:f=>f.preventDefault(),onDismiss:u,children:p.jsxs($n,{"data-state":l.stateAttribute,...c,...a,ref:t,style:{...a.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[p.jsx(nA,{children:r}),p.jsx(eA,{scope:n,isInside:!0,children:p.jsx(nC,{id:l.contentId,role:"tooltip",children:o||r})})]})})});Fp.displayName=cn;var Bp="TooltipArrow",rA=d.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=fo(n);return tA(Bp,n).isInside?null:p.jsx(Fn,{...o,...r,ref:t})});rA.displayName=Bp;function oA(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,r,o,s)){case s:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function sA(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function iA(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function aA(e,t){const{x:n,y:r}=e;let o=!1;for(let s=0,i=t.length-1;s<t.length;i=s++){const a=t[s],l=t[i],c=a.x,u=a.y,f=l.x,h=l.y;u>r!=h>r&&n<(f-c)*(r-u)/(h-u)+c&&(o=!o)}return o}function lA(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),cA(t)}function cA(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const s=t[t.length-1],i=t[t.length-2];if((s.x-i.x)*(o.y-i.y)>=(s.y-i.y)*(o.x-i.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const s=n[n.length-1],i=n[n.length-2];if((s.x-i.x)*(o.y-i.y)>=(s.y-i.y)*(o.x-i.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var uA=Lp,dA=Vp,fA=$p,zp=Fp;const pA=uA,hA=dA,mA=fA,Wp=d.forwardRef(({className:e,sideOffset:t=4,...n},r)=>p.jsx(zp,{ref:r,sideOffset:t,className:M("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 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",e),...n}));Wp.displayName=zp.displayName;var Pi="ToastProvider",[Ti,gA,vA]=Gt("Toast"),[Hp]=ge("Toast",[vA]),[yA,ho]=Hp(Pi),jp=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:o="right",swipeThreshold:s=50,children:i}=e,[a,l]=d.useState(null),[c,u]=d.useState(0),f=d.useRef(!1),h=d.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${Pi}\`. Expected non-empty \`string\`.`),p.jsx(Ti.Provider,{scope:t,children:p.jsx(yA,{scope:t,label:n,duration:r,swipeDirection:o,swipeThreshold:s,toastCount:c,viewport:a,onViewportChange:l,onToastAdd:d.useCallback(()=>u(m=>m+1),[]),onToastRemove:d.useCallback(()=>u(m=>m-1),[]),isFocusedToastEscapeKeyDownRef:f,isClosePausedRef:h,children:i})})};jp.displayName=Pi;var Up="ToastViewport",bA=["F8"],Ai="toast.viewportPause",Ni="toast.viewportResume",Gp=d.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=bA,label:o="Notifications ({hotkey})",...s}=e,i=ho(Up,n),a=gA(n),l=d.useRef(null),c=d.useRef(null),u=d.useRef(null),f=d.useRef(null),h=J(t,f,i.onViewportChange),m=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),y=i.toastCount>0;d.useEffect(()=>{const v=b=>{var x;r.length!==0&&r.every(S=>b[S]||b.code===S)&&((x=f.current)==null||x.focus())};return document.addEventListener("keydown",v),()=>document.removeEventListener("keydown",v)},[r]),d.useEffect(()=>{const v=l.current,b=f.current;if(y&&v&&b){const w=()=>{if(!i.isClosePausedRef.current){const T=new CustomEvent(Ai);b.dispatchEvent(T),i.isClosePausedRef.current=!0}},x=()=>{if(i.isClosePausedRef.current){const T=new CustomEvent(Ni);b.dispatchEvent(T),i.isClosePausedRef.current=!1}},S=T=>{!v.contains(T.relatedTarget)&&x()},C=()=>{v.contains(document.activeElement)||x()};return v.addEventListener("focusin",w),v.addEventListener("focusout",S),v.addEventListener("pointermove",w),v.addEventListener("pointerleave",C),window.addEventListener("blur",w),window.addEventListener("focus",x),()=>{v.removeEventListener("focusin",w),v.removeEventListener("focusout",S),v.removeEventListener("pointermove",w),v.removeEventListener("pointerleave",C),window.removeEventListener("blur",w),window.removeEventListener("focus",x)}}},[y,i.isClosePausedRef]);const g=d.useCallback(({tabbingDirection:v})=>{const w=a().map(x=>{const S=x.ref.current,C=[S,..._A(S)];return v==="forwards"?C:C.reverse()});return(v==="forwards"?w.reverse():w).flat()},[a]);return d.useEffect(()=>{const v=f.current;if(v){const b=w=>{var C,T,A;const x=w.altKey||w.ctrlKey||w.metaKey;if(w.key==="Tab"&&!x){const N=document.activeElement,I=w.shiftKey;if(w.target===v&&I){(C=c.current)==null||C.focus();return}const L=g({tabbingDirection:I?"backwards":"forwards"}),W=L.findIndex(F=>F===N);Di(L.slice(W+1))?w.preventDefault():I?(T=c.current)==null||T.focus():(A=u.current)==null||A.focus()}};return v.addEventListener("keydown",b),()=>v.removeEventListener("keydown",b)}},[a,g]),p.jsxs(Sx,{ref:l,role:"region","aria-label":o.replace("{hotkey}",m),tabIndex:-1,style:{pointerEvents:y?void 0:"none"},children:[y&&p.jsx(Mi,{ref:c,onFocusFromOutsideViewport:()=>{const v=g({tabbingDirection:"forwards"});Di(v)}}),p.jsx(Ti.Slot,{scope:n,children:p.jsx(j.ol,{tabIndex:-1,...s,ref:h})}),y&&p.jsx(Mi,{ref:u,onFocusFromOutsideViewport:()=>{const v=g({tabbingDirection:"backwards"});Di(v)}})]})});Gp.displayName=Up;var Kp="ToastFocusProxy",Mi=d.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...o}=e,s=ho(Kp,n);return p.jsx(Br,{tabIndex:0,...o,ref:t,style:{position:"fixed"},onFocus:i=>{var c;const a=i.relatedTarget;!((c=s.viewport)!=null&&c.contains(a))&&r()}})});Mi.displayName=Kp;var Zn="Toast",wA="toast.swipeStart",xA="toast.swipeMove",SA="toast.swipeCancel",CA="toast.swipeEnd",Yp=d.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:o,onOpenChange:s,...i}=e,[a,l]=ye({prop:r,defaultProp:o??!0,onChange:s,caller:Zn});return p.jsx(me,{present:n||a,children:p.jsx(TA,{open:a,...i,ref:t,onClose:()=>l(!1),onPause:ce(e.onPause),onResume:ce(e.onResume),onSwipeStart:_(e.onSwipeStart,c=>{c.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:_(e.onSwipeMove,c=>{const{x:u,y:f}=c.detail.delta;c.currentTarget.setAttribute("data-swipe","move"),c.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${u}px`),c.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${f}px`)}),onSwipeCancel:_(e.onSwipeCancel,c=>{c.currentTarget.setAttribute("data-swipe","cancel"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),c.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:_(e.onSwipeEnd,c=>{const{x:u,y:f}=c.detail.delta;c.currentTarget.setAttribute("data-swipe","end"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),c.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${u}px`),c.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${f}px`),l(!1)})})})});Yp.displayName=Zn;var[EA,PA]=Hp(Zn,{onClose(){}}),TA=d.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:o,open:s,onClose:i,onEscapeKeyDown:a,onPause:l,onResume:c,onSwipeStart:u,onSwipeMove:f,onSwipeCancel:h,onSwipeEnd:m,...y}=e,g=ho(Zn,n),[v,b]=d.useState(null),w=J(t,F=>b(F)),x=d.useRef(null),S=d.useRef(null),C=o||g.duration,T=d.useRef(0),A=d.useRef(C),N=d.useRef(0),{onToastAdd:I,onToastRemove:O}=g,k=ce(()=>{var Y;(v==null?void 0:v.contains(document.activeElement))&&((Y=g.viewport)==null||Y.focus()),i()}),L=d.useCallback(F=>{!F||F===1/0||(window.clearTimeout(N.current),T.current=new Date().getTime(),N.current=window.setTimeout(k,F))},[k]);d.useEffect(()=>{const F=g.viewport;if(F){const Y=()=>{L(A.current),c==null||c()},U=()=>{const H=new Date().getTime()-T.current;A.current=A.current-H,window.clearTimeout(N.current),l==null||l()};return F.addEventListener(Ai,U),F.addEventListener(Ni,Y),()=>{F.removeEventListener(Ai,U),F.removeEventListener(Ni,Y)}}},[g.viewport,C,l,c,L]),d.useEffect(()=>{s&&!g.isClosePausedRef.current&&L(C)},[s,C,g.isClosePausedRef,L]),d.useEffect(()=>(I(),()=>O()),[I,O]);const W=d.useMemo(()=>v?th(v):null,[v]);return g.viewport?p.jsxs(p.Fragment,{children:[W&&p.jsx(AA,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite",children:W}),p.jsx(EA,{scope:n,onClose:k,children:Pn.createPortal(p.jsx(Ti.ItemSlot,{scope:n,children:p.jsx(xx,{asChild:!0,onEscapeKeyDown:_(a,()=>{g.isFocusedToastEscapeKeyDownRef.current||k(),g.isFocusedToastEscapeKeyDownRef.current=!1}),children:p.jsx(j.li,{tabIndex:0,"data-state":s?"open":"closed","data-swipe-direction":g.swipeDirection,...y,ref:w,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:_(e.onKeyDown,F=>{F.key==="Escape"&&(a==null||a(F.nativeEvent),F.nativeEvent.defaultPrevented||(g.isFocusedToastEscapeKeyDownRef.current=!0,k()))}),onPointerDown:_(e.onPointerDown,F=>{F.button===0&&(x.current={x:F.clientX,y:F.clientY})}),onPointerMove:_(e.onPointerMove,F=>{if(!x.current)return;const Y=F.clientX-x.current.x,U=F.clientY-x.current.y,H=!!S.current,V=["left","right"].includes(g.swipeDirection),B=["left","up"].includes(g.swipeDirection)?Math.min:Math.max,ee=V?B(0,Y):0,te=V?0:B(0,U),D=F.pointerType==="touch"?10:2,G={x:ee,y:te},R={originalEvent:F,delta:G};H?(S.current=G,mo(xA,f,R,{discrete:!1})):nh(G,g.swipeDirection,D)?(S.current=G,mo(wA,u,R,{discrete:!1}),F.target.setPointerCapture(F.pointerId)):(Math.abs(Y)>D||Math.abs(U)>D)&&(x.current=null)}),onPointerUp:_(e.onPointerUp,F=>{const Y=S.current,U=F.target;if(U.hasPointerCapture(F.pointerId)&&U.releasePointerCapture(F.pointerId),S.current=null,x.current=null,Y){const H=F.currentTarget,V={originalEvent:F,delta:Y};nh(Y,g.swipeDirection,g.swipeThreshold)?mo(CA,m,V,{discrete:!0}):mo(SA,h,V,{discrete:!0}),H.addEventListener("click",B=>B.preventDefault(),{once:!0})}})})})}),g.viewport)})]}):null}),AA=e=>{const{__scopeToast:t,children:n,...r}=e,o=ho(Zn,t),[s,i]=d.useState(!1),[a,l]=d.useState(!1);return IA(()=>i(!0)),d.useEffect(()=>{const c=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(c)},[]),a?null:p.jsx(en,{asChild:!0,children:p.jsx(Br,{...r,children:s&&p.jsxs(p.Fragment,{children:[o.label," ",n]})})})},NA="ToastTitle",Xp=d.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return p.jsx(j.div,{...r,ref:t})});Xp.displayName=NA;var MA="ToastDescription",qp=d.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return p.jsx(j.div,{...r,ref:t})});qp.displayName=MA;var Zp="ToastAction",Jp=d.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?p.jsx(eh,{altText:n,asChild:!0,children:p.jsx(Ii,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${Zp}\`. Expected non-empty \`string\`.`),null)});Jp.displayName=Zp;var Qp="ToastClose",Ii=d.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,o=PA(Qp,n);return p.jsx(eh,{asChild:!0,children:p.jsx(j.button,{type:"button",...r,ref:t,onClick:_(e.onClick,o.onClose)})})});Ii.displayName=Qp;var eh=d.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...o}=e;return p.jsx(j.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...o,ref:t})});function th(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),DA(r)){const o=r.ariaHidden||r.hidden||r.style.display==="none",s=r.dataset.radixToastAnnounceExclude==="";if(!o)if(s){const i=r.dataset.radixToastAnnounceAlt;i&&t.push(i)}else t.push(...th(r))}}),t}function mo(e,t,n,{discrete:r}){const o=n.originalEvent.currentTarget,s=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?gs(o,s):o.dispatchEvent(s)}var nh=(e,t,n=0)=>{const r=Math.abs(e.x),o=Math.abs(e.y),s=r>o;return t==="left"||t==="right"?s&&r>n:!s&&o>n};function IA(e=()=>{}){const t=ce(e);de(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function DA(e){return e.nodeType===e.ELEMENT_NODE}function _A(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Di(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var kA=jp,rh=Gp,oh=Yp,sh=Xp,ih=qp,ah=Jp,lh=Ii;const OA=kA,ch=d.forwardRef(({className:e,...t},n)=>p.jsx(rh,{ref:n,className:M("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));ch.displayName=rh.displayName;const LA=Ut("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),uh=d.forwardRef(({className:e,variant:t,...n},r)=>p.jsx(oh,{ref:r,className:M(LA({variant:t}),e),...n}));uh.displayName=oh.displayName;const dh=d.forwardRef(({className:e,...t},n)=>p.jsx(ah,{ref:n,className:M("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",e),...t}));dh.displayName=ah.displayName;const fh=d.forwardRef(({className:e,...t},n)=>p.jsx(lh,{ref:n,className:M("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:p.jsx(xs,{className:"h-4 w-4"})}));fh.displayName=lh.displayName;const ph=d.forwardRef(({className:e,...t},n)=>p.jsx(sh,{ref:n,className:M("text-sm font-semibold",e),...t}));ph.displayName=sh.displayName;const hh=d.forwardRef(({className:e,...t},n)=>p.jsx(ih,{ref:n,className:M("text-sm opacity-90",e),...t}));hh.displayName=ih.displayName;const VA=1,$A=1e6;let _i=0;function FA(){return _i=(_i+1)%Number.MAX_SAFE_INTEGER,_i.toString()}const ki=new Map,mh=e=>{if(ki.has(e))return;const t=setTimeout(()=>{ki.delete(e),Jn({type:"REMOVE_TOAST",toastId:e})},$A);ki.set(e,t)},gh=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,VA)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=t;return n?mh(n):e.toasts.forEach(r=>{mh(r.id)}),{...e,toasts:e.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},go=[];let vo={toasts:[]};function Jn(e){vo=gh(vo,e),go.forEach(t=>{t(vo)})}function vh({...e}){const t=FA(),n=o=>Jn({type:"UPDATE_TOAST",toast:{...o,id:t}}),r=()=>Jn({type:"DISMISS_TOAST",toastId:t});return Jn({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:o=>{o||r()}}}),{id:t,dismiss:r,update:n}}function RA(){const[e,t]=d.useState(vo);return d.useEffect(()=>(go.push(t),()=>{const n=go.indexOf(t);n>-1&&go.splice(n,1)}),[e]),{...e,toast:vh,dismiss:n=>Jn({type:"DISMISS_TOAST",toastId:n})}}function BA({className:e,...t}){return p.jsx("div",{className:M("animate-pulse rounded-md bg-muted",e),...t})}function zA(e,t=[]){let n=[];function r(s,i){const a=d.createContext(i);a.displayName=s+"Context";const l=n.length;n=[...n,i];const c=f=>{var b;const{scope:h,children:m,...y}=f,g=((b=h==null?void 0:h[e])==null?void 0:b[l])||a,v=d.useMemo(()=>y,Object.values(y));return p.jsx(g.Provider,{value:v,children:m})};c.displayName=s+"Provider";function u(f,h){var g;const m=((g=h==null?void 0:h[e])==null?void 0:g[l])||a,y=d.useContext(m);if(y)return y;if(i!==void 0)return i;throw new Error(`\`${f}\` must be used within \`${s}\``)}return[c,u]}const o=()=>{const s=n.map(i=>d.createContext(i));return function(a){const l=(a==null?void 0:a[e])||s;return d.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return o.scopeName=e,[r,WA(o,...t)]}function WA(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const i=r.reduce((a,{useScope:l,scopeName:c})=>{const f=l(s)[`__scope${c}`];return{...a,...f}},{});return d.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}var HA=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],yh=HA.reduce((e,t)=>{const n=Nn(`Primitive.${t}`),r=d.forwardRef((o,s)=>{const{asChild:i,...a}=o,l=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(l,{...a,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Oi="Progress",Li=100,[jA]=zA(Oi),[UA,GA]=jA(Oi),bh=d.forwardRef((e,t)=>{const{__scopeProgress:n,value:r=null,max:o,getValueLabel:s=KA,...i}=e;(o||o===0)&&!Ch(o)&&console.error(YA(`${o}`,"Progress"));const a=Ch(o)?o:Li;r!==null&&!Eh(r,a)&&console.error(XA(`${r}`,"Progress"));const l=Eh(r,a)?r:null,c=yo(l)?s(l,a):void 0;return p.jsx(UA,{scope:n,value:l,max:a,children:p.jsx(yh.div,{"aria-valuemax":a,"aria-valuemin":0,"aria-valuenow":yo(l)?l:void 0,"aria-valuetext":c,role:"progressbar","data-state":Sh(l,a),"data-value":l??void 0,"data-max":a,...i,ref:t})})});bh.displayName=Oi;var wh="ProgressIndicator",xh=d.forwardRef((e,t)=>{const{__scopeProgress:n,...r}=e,o=GA(wh,n);return p.jsx(yh.div,{"data-state":Sh(o.value,o.max),"data-value":o.value??void 0,"data-max":o.max,...r,ref:t})});xh.displayName=wh;function KA(e,t){return`${Math.round(e/t*100)}%`}function Sh(e,t){return e==null?"indeterminate":e===t?"complete":"loading"}function yo(e){return typeof e=="number"}function Ch(e){return yo(e)&&!isNaN(e)&&e>0}function Eh(e,t){return yo(e)&&!isNaN(e)&&e<=t&&e>=0}function YA(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${Li}\`.`}function XA(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:
|
|
106
106
|
- a positive number
|
|
107
|
-
- less than the value passed to \`max\` (or ${
|
|
107
|
+
- less than the value passed to \`max\` (or ${Li} if no \`max\` prop is set)
|
|
108
108
|
- \`null\` or \`undefined\` if the progress is indeterminate.
|
|
109
109
|
|
|
110
|
-
Defaulting to \`null\`.`}var Lh=Mh,nN=Dh;const Vh=u.forwardRef(({className:e,value:t,...n},r)=>p.jsx(Lh,{ref:r,className:M("relative h-4 w-full overflow-hidden rounded-full bg-secondary",e),...n,children:p.jsx(nN,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(t||0)}%)`}})}));Vh.displayName=Lh.displayName;const rN=fi,oN=vf,sN=lo,$h=pi,Bi=u.forwardRef(({className:e,...t},n)=>p.jsx(Wn,{className:M("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:n}));Bi.displayName=Wn.displayName;const iN=Kt("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),Fh=u.forwardRef(({side:e="right",className:t,children:n,...r},o)=>p.jsxs($h,{children:[p.jsx(Bi,{}),p.jsxs(Hn,{ref:o,className:M(iN({side:e}),t),...r,children:[n,p.jsxs(lo,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[p.jsx(Ps,{className:"h-4 w-4"}),p.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Fh.displayName=Hn.displayName;const Rh=({className:e,...t})=>p.jsx("div",{className:M("flex flex-col space-y-2 text-center sm:text-left",e),...t});Rh.displayName="SheetHeader";const Bh=({className:e,...t})=>p.jsx("div",{className:M("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});Bh.displayName="SheetFooter";const zh=u.forwardRef(({className:e,...t},n)=>p.jsx(io,{ref:n,className:M("text-lg font-semibold text-foreground",e),...t}));zh.displayName=io.displayName;const Wh=u.forwardRef(({className:e,...t},n)=>p.jsx(ao,{ref:n,className:M("text-sm text-muted-foreground",e),...t}));Wh.displayName=ao.displayName;const Hh=u.forwardRef(({className:e,...t},n)=>p.jsx("div",{ref:n,className:M("rounded-lg border bg-card text-card-foreground shadow-sm",e),...t}));Hh.displayName="Card";const jh=u.forwardRef(({className:e,...t},n)=>p.jsx("div",{ref:n,className:M("flex flex-col space-y-1.5 p-6",e),...t}));jh.displayName="CardHeader";const Uh=u.forwardRef(({className:e,...t},n)=>p.jsx("h3",{ref:n,className:M("text-2xl font-semibold leading-none tracking-tight",e),...t}));Uh.displayName="CardTitle";const Gh=u.forwardRef(({className:e,...t},n)=>p.jsx("p",{ref:n,className:M("text-sm text-muted-foreground",e),...t}));Gh.displayName="CardDescription";const Kh=u.forwardRef(({className:e,...t},n)=>p.jsx("div",{ref:n,className:M("p-6 pt-0",e),...t}));Kh.displayName="CardContent";const Yh=u.forwardRef(({className:e,...t},n)=>p.jsx("div",{ref:n,className:M("flex items-center p-6 pt-0",e),...t}));Yh.displayName="CardFooter";var Co="Collapsible",[aN,Xh]=ye(Co),[lN,zi]=aN(Co),qh=u.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:r,defaultOpen:o,disabled:s,onOpenChange:i,...a}=e,[l,c]=we({prop:r,defaultProp:o??!1,onChange:i,caller:Co});return p.jsx(lN,{scope:n,disabled:s,contentId:he(),open:l,onOpenToggle:u.useCallback(()=>c(d=>!d),[c]),children:p.jsx(W.div,{"data-state":Hi(l),"data-disabled":s?"":void 0,...a,ref:t})})});qh.displayName=Co;var Zh="CollapsibleTrigger",Jh=u.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,o=zi(Zh,n);return p.jsx(W.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":Hi(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...r,ref:t,onClick:k(e.onClick,o.onOpenToggle)})});Jh.displayName=Zh;var Wi="CollapsibleContent",Qh=u.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=zi(Wi,e.__scopeCollapsible);return p.jsx(ve,{present:n||o.open,children:({present:s})=>p.jsx(cN,{...r,ref:t,present:s})})});Qh.displayName=Wi;var cN=u.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:o,...s}=e,i=zi(Wi,n),[a,l]=u.useState(r),c=u.useRef(null),d=J(t,c),f=u.useRef(0),h=f.current,m=u.useRef(0),y=m.current,g=i.open||a,v=u.useRef(g),b=u.useRef(void 0);return u.useEffect(()=>{const w=requestAnimationFrame(()=>v.current=!1);return()=>cancelAnimationFrame(w)},[]),pe(()=>{const w=c.current;if(w){b.current=b.current||{transitionDuration:w.style.transitionDuration,animationName:w.style.animationName},w.style.transitionDuration="0s",w.style.animationName="none";const x=w.getBoundingClientRect();f.current=x.height,m.current=x.width,v.current||(w.style.transitionDuration=b.current.transitionDuration,w.style.animationName=b.current.animationName),l(r)}},[i.open,r]),p.jsx(W.div,{"data-state":Hi(i.open),"data-disabled":i.disabled?"":void 0,id:i.contentId,hidden:!g,...s,ref:d,style:{"--radix-collapsible-content-height":h?`${h}px`:void 0,"--radix-collapsible-content-width":y?`${y}px`:void 0,...e.style},children:g&&o})});function Hi(e){return e?"open":"closed"}var uN=qh,dN=Jh,fN=Qh,We="Accordion",pN=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[ji,hN,mN]=Yt(We),[Eo]=ye(We,[mN,Xh]),Ui=Xh(),em=P.forwardRef((e,t)=>{const{type:n,...r}=e,o=r,s=r;return p.jsx(ji.Provider,{scope:e.__scopeAccordion,children:n==="multiple"?p.jsx(bN,{...s,ref:t}):p.jsx(yN,{...o,ref:t})})});em.displayName=We;var[tm,gN]=Eo(We),[nm,vN]=Eo(We,{collapsible:!1}),yN=P.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},collapsible:s=!1,...i}=e,[a,l]=we({prop:n,defaultProp:r??"",onChange:o,caller:We});return p.jsx(tm,{scope:e.__scopeAccordion,value:P.useMemo(()=>a?[a]:[],[a]),onItemOpen:l,onItemClose:P.useCallback(()=>s&&l(""),[s,l]),children:p.jsx(nm,{scope:e.__scopeAccordion,collapsible:s,children:p.jsx(rm,{...i,ref:t})})})}),bN=P.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...s}=e,[i,a]=we({prop:n,defaultProp:r??[],onChange:o,caller:We}),l=P.useCallback(d=>a((f=[])=>[...f,d]),[a]),c=P.useCallback(d=>a((f=[])=>f.filter(h=>h!==d)),[a]);return p.jsx(tm,{scope:e.__scopeAccordion,value:i,onItemOpen:l,onItemClose:c,children:p.jsx(nm,{scope:e.__scopeAccordion,collapsible:!0,children:p.jsx(rm,{...s,ref:t})})})}),[wN,Po]=Eo(We),rm=P.forwardRef((e,t)=>{const{__scopeAccordion:n,disabled:r,dir:o,orientation:s="vertical",...i}=e,a=P.useRef(null),l=J(a,t),c=hN(n),f=ht(o)==="ltr",h=k(e.onKeyDown,m=>{var N;if(!pN.includes(m.key))return;const y=m.target,g=c().filter(I=>{var O;return!((O=I.ref.current)!=null&&O.disabled)}),v=g.findIndex(I=>I.ref.current===y),b=g.length;if(v===-1)return;m.preventDefault();let w=v;const x=0,S=b-1,C=()=>{w=v+1,w>S&&(w=x)},T=()=>{w=v-1,w<x&&(w=S)};switch(m.key){case"Home":w=x;break;case"End":w=S;break;case"ArrowRight":s==="horizontal"&&(f?C():T());break;case"ArrowDown":s==="vertical"&&C();break;case"ArrowLeft":s==="horizontal"&&(f?T():C());break;case"ArrowUp":s==="vertical"&&T();break}const A=w%b;(N=g[A].ref.current)==null||N.focus()});return p.jsx(wN,{scope:n,disabled:r,direction:o,orientation:s,children:p.jsx(ji.Slot,{scope:n,children:p.jsx(W.div,{...i,"data-orientation":s,ref:l,onKeyDown:r?void 0:h})})})}),To="AccordionItem",[xN,Gi]=Eo(To),om=P.forwardRef((e,t)=>{const{__scopeAccordion:n,value:r,...o}=e,s=Po(To,n),i=gN(To,n),a=Ui(n),l=he(),c=r&&i.value.includes(r)||!1,d=s.disabled||e.disabled;return p.jsx(xN,{scope:n,open:c,disabled:d,triggerId:l,children:p.jsx(uN,{"data-orientation":s.orientation,"data-state":um(c),...a,...o,ref:t,disabled:d,open:c,onOpenChange:f=>{f?i.onItemOpen(r):i.onItemClose(r)}})})});om.displayName=To;var sm="AccordionHeader",im=P.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=Po(We,n),s=Gi(sm,n);return p.jsx(W.h3,{"data-orientation":o.orientation,"data-state":um(s.open),"data-disabled":s.disabled?"":void 0,...r,ref:t})});im.displayName=sm;var Ki="AccordionTrigger",am=P.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=Po(We,n),s=Gi(Ki,n),i=vN(Ki,n),a=Ui(n);return p.jsx(ji.ItemSlot,{scope:n,children:p.jsx(dN,{"aria-disabled":s.open&&!i.collapsible||void 0,"data-orientation":o.orientation,id:s.triggerId,...a,...r,ref:t})})});am.displayName=Ki;var lm="AccordionContent",cm=P.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=Po(We,n),s=Gi(lm,n),i=Ui(n);return p.jsx(fN,{role:"region","aria-labelledby":s.triggerId,"data-orientation":o.orientation,...i,...r,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});cm.displayName=lm;function um(e){return e?"open":"closed"}var SN=em,CN=om,EN=im,dm=am,fm=cm;const PN=SN,pm=u.forwardRef(({className:e,...t},n)=>p.jsx(CN,{ref:n,className:M("border-b",e),...t}));pm.displayName="AccordionItem";const hm=u.forwardRef(({className:e,children:t,...n},r)=>p.jsx(EN,{className:"flex",children:p.jsxs(dm,{ref:r,className:M("flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",e),...n,children:[t,p.jsx(gc,{className:"h-4 w-4 shrink-0 transition-transform duration-200"})]})}));hm.displayName=dm.displayName;const mm=u.forwardRef(({className:e,children:t,...n},r)=>p.jsx(fm,{ref:r,className:"overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...n,children:p.jsx("div",{className:M("pb-4 pt-0",e),children:t})}));mm.displayName=fm.displayName;function TN(e,t){return u.useReducer((n,r)=>t[n][r]??n,e)}var Yi="ScrollArea",[gm]=ye(Yi),[AN,Oe]=gm(Yi),vm=u.forwardRef((e,t)=>{const{__scopeScrollArea:n,type:r="hover",dir:o,scrollHideDelay:s=600,...i}=e,[a,l]=u.useState(null),[c,d]=u.useState(null),[f,h]=u.useState(null),[m,y]=u.useState(null),[g,v]=u.useState(null),[b,w]=u.useState(0),[x,S]=u.useState(0),[C,T]=u.useState(!1),[A,N]=u.useState(!1),I=J(t,L=>l(L)),O=ht(o);return p.jsx(AN,{scope:n,type:r,dir:O,scrollHideDelay:s,scrollArea:a,viewport:c,onViewportChange:d,content:f,onContentChange:h,scrollbarX:m,onScrollbarXChange:y,scrollbarXEnabled:C,onScrollbarXEnabledChange:T,scrollbarY:g,onScrollbarYChange:v,scrollbarYEnabled:A,onScrollbarYEnabledChange:N,onCornerWidthChange:w,onCornerHeightChange:S,children:p.jsx(W.div,{dir:O,...i,ref:I,style:{position:"relative","--radix-scroll-area-corner-width":b+"px","--radix-scroll-area-corner-height":x+"px",...e.style}})})});vm.displayName=Yi;var ym="ScrollAreaViewport",bm=u.forwardRef((e,t)=>{const{__scopeScrollArea:n,children:r,nonce:o,...s}=e,i=Oe(ym,n),a=u.useRef(null),l=J(t,a,i.onViewportChange);return p.jsxs(p.Fragment,{children:[p.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:o}),p.jsx(W.div,{"data-radix-scroll-area-viewport":"",...s,ref:l,style:{overflowX:i.scrollbarXEnabled?"scroll":"hidden",overflowY:i.scrollbarYEnabled?"scroll":"hidden",...e.style},children:p.jsx("div",{ref:i.onContentChange,style:{minWidth:"100%",display:"table"},children:r})})]})});bm.displayName=ym;var Je="ScrollAreaScrollbar",Xi=u.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Oe(Je,e.__scopeScrollArea),{onScrollbarXEnabledChange:s,onScrollbarYEnabledChange:i}=o,a=e.orientation==="horizontal";return u.useEffect(()=>(a?s(!0):i(!0),()=>{a?s(!1):i(!1)}),[a,s,i]),o.type==="hover"?p.jsx(NN,{...r,ref:t,forceMount:n}):o.type==="scroll"?p.jsx(MN,{...r,ref:t,forceMount:n}):o.type==="auto"?p.jsx(wm,{...r,ref:t,forceMount:n}):o.type==="always"?p.jsx(qi,{...r,ref:t}):null});Xi.displayName=Je;var NN=u.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Oe(Je,e.__scopeScrollArea),[s,i]=u.useState(!1);return u.useEffect(()=>{const a=o.scrollArea;let l=0;if(a){const c=()=>{window.clearTimeout(l),i(!0)},d=()=>{l=window.setTimeout(()=>i(!1),o.scrollHideDelay)};return a.addEventListener("pointerenter",c),a.addEventListener("pointerleave",d),()=>{window.clearTimeout(l),a.removeEventListener("pointerenter",c),a.removeEventListener("pointerleave",d)}}},[o.scrollArea,o.scrollHideDelay]),p.jsx(ve,{present:n||s,children:p.jsx(wm,{"data-state":s?"visible":"hidden",...r,ref:t})})}),MN=u.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Oe(Je,e.__scopeScrollArea),s=e.orientation==="horizontal",i=Io(()=>l("SCROLL_END"),100),[a,l]=TN("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return u.useEffect(()=>{if(a==="idle"){const c=window.setTimeout(()=>l("HIDE"),o.scrollHideDelay);return()=>window.clearTimeout(c)}},[a,o.scrollHideDelay,l]),u.useEffect(()=>{const c=o.viewport,d=s?"scrollLeft":"scrollTop";if(c){let f=c[d];const h=()=>{const m=c[d];f!==m&&(l("SCROLL"),i()),f=m};return c.addEventListener("scroll",h),()=>c.removeEventListener("scroll",h)}},[o.viewport,s,l,i]),p.jsx(ve,{present:n||a!=="hidden",children:p.jsx(qi,{"data-state":a==="hidden"?"hidden":"visible",...r,ref:t,onPointerEnter:k(e.onPointerEnter,()=>l("POINTER_ENTER")),onPointerLeave:k(e.onPointerLeave,()=>l("POINTER_LEAVE"))})})}),wm=u.forwardRef((e,t)=>{const n=Oe(Je,e.__scopeScrollArea),{forceMount:r,...o}=e,[s,i]=u.useState(!1),a=e.orientation==="horizontal",l=Io(()=>{if(n.viewport){const c=n.viewport.offsetWidth<n.viewport.scrollWidth,d=n.viewport.offsetHeight<n.viewport.scrollHeight;i(a?c:d)}},10);return fn(n.viewport,l),fn(n.content,l),p.jsx(ve,{present:r||s,children:p.jsx(qi,{"data-state":s?"visible":"hidden",...o,ref:t})})}),qi=u.forwardRef((e,t)=>{const{orientation:n="vertical",...r}=e,o=Oe(Je,e.__scopeScrollArea),s=u.useRef(null),i=u.useRef(0),[a,l]=u.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),c=Pm(a.viewport,a.content),d={...r,sizes:a,onSizesChange:l,hasThumb:c>0&&c<1,onThumbChange:h=>s.current=h,onThumbPointerUp:()=>i.current=0,onThumbPointerDown:h=>i.current=h};function f(h,m){return LN(h,i.current,a,m)}return n==="horizontal"?p.jsx(IN,{...d,ref:t,onThumbPositionChange:()=>{if(o.viewport&&s.current){const h=o.viewport.scrollLeft,m=Tm(h,a,o.dir);s.current.style.transform=`translate3d(${m}px, 0, 0)`}},onWheelScroll:h=>{o.viewport&&(o.viewport.scrollLeft=h)},onDragScroll:h=>{o.viewport&&(o.viewport.scrollLeft=f(h,o.dir))}}):n==="vertical"?p.jsx(DN,{...d,ref:t,onThumbPositionChange:()=>{if(o.viewport&&s.current){const h=o.viewport.scrollTop,m=Tm(h,a);s.current.style.transform=`translate3d(0, ${m}px, 0)`}},onWheelScroll:h=>{o.viewport&&(o.viewport.scrollTop=h)},onDragScroll:h=>{o.viewport&&(o.viewport.scrollTop=f(h))}}):null}),IN=u.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...o}=e,s=Oe(Je,e.__scopeScrollArea),[i,a]=u.useState(),l=u.useRef(null),c=J(t,l,s.onScrollbarXChange);return u.useEffect(()=>{l.current&&a(getComputedStyle(l.current))},[l]),p.jsx(Sm,{"data-orientation":"horizontal",...o,ref:c,sizes:n,style:{bottom:0,left:s.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:s.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":Mo(n)+"px",...e.style},onThumbPointerDown:d=>e.onThumbPointerDown(d.x),onDragScroll:d=>e.onDragScroll(d.x),onWheelScroll:(d,f)=>{if(s.viewport){const h=s.viewport.scrollLeft+d.deltaX;e.onWheelScroll(h),Nm(h,f)&&d.preventDefault()}},onResize:()=>{l.current&&s.viewport&&i&&r({content:s.viewport.scrollWidth,viewport:s.viewport.offsetWidth,scrollbar:{size:l.current.clientWidth,paddingStart:No(i.paddingLeft),paddingEnd:No(i.paddingRight)}})}})}),DN=u.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...o}=e,s=Oe(Je,e.__scopeScrollArea),[i,a]=u.useState(),l=u.useRef(null),c=J(t,l,s.onScrollbarYChange);return u.useEffect(()=>{l.current&&a(getComputedStyle(l.current))},[l]),p.jsx(Sm,{"data-orientation":"vertical",...o,ref:c,sizes:n,style:{top:0,right:s.dir==="ltr"?0:void 0,left:s.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":Mo(n)+"px",...e.style},onThumbPointerDown:d=>e.onThumbPointerDown(d.y),onDragScroll:d=>e.onDragScroll(d.y),onWheelScroll:(d,f)=>{if(s.viewport){const h=s.viewport.scrollTop+d.deltaY;e.onWheelScroll(h),Nm(h,f)&&d.preventDefault()}},onResize:()=>{l.current&&s.viewport&&i&&r({content:s.viewport.scrollHeight,viewport:s.viewport.offsetHeight,scrollbar:{size:l.current.clientHeight,paddingStart:No(i.paddingTop),paddingEnd:No(i.paddingBottom)}})}})}),[_N,xm]=gm(Je),Sm=u.forwardRef((e,t)=>{const{__scopeScrollArea:n,sizes:r,hasThumb:o,onThumbChange:s,onThumbPointerUp:i,onThumbPointerDown:a,onThumbPositionChange:l,onDragScroll:c,onWheelScroll:d,onResize:f,...h}=e,m=Oe(Je,n),[y,g]=u.useState(null),v=J(t,I=>g(I)),b=u.useRef(null),w=u.useRef(""),x=m.viewport,S=r.content-r.viewport,C=de(d),T=de(l),A=Io(f,10);function N(I){if(b.current){const O=I.clientX-b.current.left,L=I.clientY-b.current.top;c({x:O,y:L})}}return u.useEffect(()=>{const I=O=>{const L=O.target;(y==null?void 0:y.contains(L))&&C(O,S)};return document.addEventListener("wheel",I,{passive:!1}),()=>document.removeEventListener("wheel",I,{passive:!1})},[x,y,S,C]),u.useEffect(T,[r,T]),fn(y,A),fn(m.content,A),p.jsx(_N,{scope:n,scrollbar:y,hasThumb:o,onThumbChange:de(s),onThumbPointerUp:de(i),onThumbPositionChange:T,onThumbPointerDown:de(a),children:p.jsx(W.div,{...h,ref:v,style:{position:"absolute",...h.style},onPointerDown:k(e.onPointerDown,I=>{I.button===0&&(I.target.setPointerCapture(I.pointerId),b.current=y.getBoundingClientRect(),w.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",m.viewport&&(m.viewport.style.scrollBehavior="auto"),N(I))}),onPointerMove:k(e.onPointerMove,N),onPointerUp:k(e.onPointerUp,I=>{const O=I.target;O.hasPointerCapture(I.pointerId)&&O.releasePointerCapture(I.pointerId),document.body.style.webkitUserSelect=w.current,m.viewport&&(m.viewport.style.scrollBehavior=""),b.current=null})})})}),Ao="ScrollAreaThumb",Cm=u.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=xm(Ao,e.__scopeScrollArea);return p.jsx(ve,{present:n||o.hasThumb,children:p.jsx(kN,{ref:t,...r})})}),kN=u.forwardRef((e,t)=>{const{__scopeScrollArea:n,style:r,...o}=e,s=Oe(Ao,n),i=xm(Ao,n),{onThumbPositionChange:a}=i,l=J(t,f=>i.onThumbChange(f)),c=u.useRef(void 0),d=Io(()=>{c.current&&(c.current(),c.current=void 0)},100);return u.useEffect(()=>{const f=s.viewport;if(f){const h=()=>{if(d(),!c.current){const m=VN(f,a);c.current=m,a()}};return a(),f.addEventListener("scroll",h),()=>f.removeEventListener("scroll",h)}},[s.viewport,d,a]),p.jsx(W.div,{"data-state":i.hasThumb?"visible":"hidden",...o,ref:l,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...r},onPointerDownCapture:k(e.onPointerDownCapture,f=>{const m=f.target.getBoundingClientRect(),y=f.clientX-m.left,g=f.clientY-m.top;i.onThumbPointerDown({x:y,y:g})}),onPointerUp:k(e.onPointerUp,i.onThumbPointerUp)})});Cm.displayName=Ao;var Zi="ScrollAreaCorner",Em=u.forwardRef((e,t)=>{const n=Oe(Zi,e.__scopeScrollArea),r=!!(n.scrollbarX&&n.scrollbarY);return n.type!=="scroll"&&r?p.jsx(ON,{...e,ref:t}):null});Em.displayName=Zi;var ON=u.forwardRef((e,t)=>{const{__scopeScrollArea:n,...r}=e,o=Oe(Zi,n),[s,i]=u.useState(0),[a,l]=u.useState(0),c=!!(s&&a);return fn(o.scrollbarX,()=>{var f;const d=((f=o.scrollbarX)==null?void 0:f.offsetHeight)||0;o.onCornerHeightChange(d),l(d)}),fn(o.scrollbarY,()=>{var f;const d=((f=o.scrollbarY)==null?void 0:f.offsetWidth)||0;o.onCornerWidthChange(d),i(d)}),c?p.jsx(W.div,{...r,ref:t,style:{width:s,height:a,position:"absolute",right:o.dir==="ltr"?0:void 0,left:o.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function No(e){return e?parseInt(e,10):0}function Pm(e,t){const n=e/t;return isNaN(n)?0:n}function Mo(e){const t=Pm(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function LN(e,t,n,r="ltr"){const o=Mo(n),s=o/2,i=t||s,a=o-i,l=n.scrollbar.paddingStart+i,c=n.scrollbar.size-n.scrollbar.paddingEnd-a,d=n.content-n.viewport,f=r==="ltr"?[0,d]:[d*-1,0];return Am([l,c],f)(e)}function Tm(e,t,n="ltr"){const r=Mo(t),o=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,s=t.scrollbar.size-o,i=t.content-t.viewport,a=s-r,l=n==="ltr"?[0,i]:[i*-1,0],c=kn(e,l);return Am([0,i],[0,a])(c)}function Am(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function Nm(e,t){return e>0&&e<t}var VN=(e,t=()=>{})=>{let n={left:e.scrollLeft,top:e.scrollTop},r=0;return function o(){const s={left:e.scrollLeft,top:e.scrollTop},i=n.left!==s.left,a=n.top!==s.top;(i||a)&&t(),n=s,r=window.requestAnimationFrame(o)}(),()=>window.cancelAnimationFrame(r)};function Io(e,t){const n=de(e),r=u.useRef(0);return u.useEffect(()=>()=>window.clearTimeout(r.current),[]),u.useCallback(()=>{window.clearTimeout(r.current),r.current=window.setTimeout(n,t)},[n,t])}function fn(e,t){const n=de(t);pe(()=>{let r=0;if(e){const o=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(n)});return o.observe(e),()=>{window.cancelAnimationFrame(r),o.unobserve(e)}}},[e,n])}var Mm=vm,$N=bm,FN=Em;const Im=u.forwardRef(({className:e,children:t,...n},r)=>p.jsxs(Mm,{ref:r,className:M("relative overflow-hidden",e),...n,children:[p.jsx($N,{className:"h-full w-full rounded-[inherit]",children:t}),p.jsx(Ji,{}),p.jsx(FN,{})]}));Im.displayName=Mm.displayName;const Ji=u.forwardRef(({className:e,orientation:t="vertical",...n},r)=>p.jsx(Xi,{ref:r,orientation:t,className:M("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 border-t border-t-transparent p-[1px]",e),...n,children:p.jsx(Cm,{className:"relative flex-1 rounded-full bg-border"})}));Ji.displayName=Xi.displayName;var RN=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],BN=RN.reduce((e,t)=>{const n=Mn(`Primitive.${t}`),r=u.forwardRef((o,s)=>{const{asChild:i,...a}=o,l=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(l,{...a,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),zN="Separator",Dm="horizontal",WN=["horizontal","vertical"],_m=u.forwardRef((e,t)=>{const{decorative:n,orientation:r=Dm,...o}=e,s=HN(r)?r:Dm,a=n?{role:"none"}:{"aria-orientation":s==="vertical"?s:void 0,role:"separator"};return p.jsx(BN.div,{"data-orientation":s,...a,...o,ref:t})});_m.displayName=zN;function HN(e){return WN.includes(e)}var km=_m;const Om=u.forwardRef(({className:e,orientation:t="horizontal",...n},r)=>p.jsx(km,{ref:r,decorative:!0,orientation:t,className:M("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...n}));Om.displayName=km.displayName;const Lm=u.forwardRef(({...e},t)=>p.jsx("nav",{ref:t,"aria-label":"breadcrumb",...e}));Lm.displayName="Breadcrumb";const Vm=u.forwardRef(({className:e,...t},n)=>p.jsx("ol",{ref:n,className:M("flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5",e),...t}));Vm.displayName="BreadcrumbList";const $m=u.forwardRef(({className:e,...t},n)=>p.jsx("li",{ref:n,className:M("inline-flex items-center gap-1.5",e),...t}));$m.displayName="BreadcrumbItem";const Fm=u.forwardRef(({asChild:e,className:t,...n},r)=>{const o=e?u.Fragment:"a";return p.jsx(o,{ref:r,className:M("transition-colors hover:text-foreground",t),...n})});Fm.displayName="BreadcrumbLink";const Rm=u.forwardRef(({className:e,...t},n)=>p.jsx("span",{ref:n,role:"link","aria-disabled":"true","aria-current":"page",className:M("font-normal text-foreground",e),...t}));Rm.displayName="BreadcrumbPage";const Bm=({children:e,className:t,...n})=>p.jsx("li",{role:"presentation","aria-hidden":"true",className:M("[&>svg]:size-3.5",t),...n,children:e??p.jsx(Es,{})});Bm.displayName="BreadcrumbSeparator";const zm=({className:e,...t})=>p.jsxs("span",{role:"presentation","aria-hidden":"true",className:M("flex h-9 w-9 items-center justify-center",e),...t,children:[p.jsx(yc,{className:"h-4 w-4"}),p.jsx("span",{className:"sr-only",children:"More"})]});zm.displayName="BreadcrumbEllipsis";const Wm=({className:e,...t})=>p.jsx("nav",{role:"navigation","aria-label":"pagination",className:M("mx-auto flex w-full justify-center",e),...t});Wm.displayName="Pagination";const Hm=u.forwardRef(({className:e,...t},n)=>p.jsx("ul",{ref:n,className:M("flex flex-row items-center gap-1",e),...t}));Hm.displayName="PaginationContent";const jm=u.forwardRef(({className:e,...t},n)=>p.jsx("li",{ref:n,className:M("",e),...t}));jm.displayName="PaginationItem";const Do=({className:e,isActive:t,size:n="icon",...r})=>p.jsx("a",{"aria-current":t?"page":void 0,className:M(bs({variant:t?"outline":"ghost",size:n}),e),...r});Do.displayName="PaginationLink";const Um=({className:e,...t})=>p.jsxs(Do,{"aria-label":"Go to previous page",size:"default",className:M("gap-1 pl-2.5",e),...t,children:[p.jsx(Rw,{className:"h-4 w-4"}),p.jsx("span",{children:"Previous"})]});Um.displayName="PaginationPrevious";const Gm=({className:e,...t})=>p.jsxs(Do,{"aria-label":"Go to next page",size:"default",className:M("gap-1 pr-2.5",e),...t,children:[p.jsx("span",{children:"Next"}),p.jsx(Es,{className:"h-4 w-4"})]});Gm.displayName="PaginationNext";const Km=({className:e,...t})=>p.jsxs("span",{"aria-hidden":!0,className:M("flex h-9 w-9 items-center justify-center",e),...t,children:[p.jsx(yc,{className:"h-4 w-4"}),p.jsx("span",{className:"sr-only",children:"More pages"})]});Km.displayName="PaginationEllipsis";var _o="Tabs",[jN]=ye(_o,[Xt]),Ym=Xt(),[UN,Qi]=jN(_o),Xm=u.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:o,defaultValue:s,orientation:i="horizontal",dir:a,activationMode:l="automatic",...c}=e,d=ht(a),[f,h]=we({prop:r,onChange:o,defaultProp:s??"",caller:_o});return p.jsx(UN,{scope:n,baseId:he(),value:f,onValueChange:h,orientation:i,dir:d,activationMode:l,children:p.jsx(W.div,{dir:d,"data-orientation":i,...c,ref:t})})});Xm.displayName=_o;var qm="TabsList",Zm=u.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...o}=e,s=Qi(qm,n),i=Ym(n);return p.jsx(Ns,{asChild:!0,...i,orientation:s.orientation,dir:s.dir,loop:r,children:p.jsx(W.div,{role:"tablist","aria-orientation":s.orientation,...o,ref:t})})});Zm.displayName=qm;var Jm="TabsTrigger",Qm=u.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:o=!1,...s}=e,i=Qi(Jm,n),a=Ym(n),l=ng(i.baseId,r),c=rg(i.baseId,r),d=r===i.value;return p.jsx(Ms,{asChild:!0,...a,focusable:!o,active:d,children:p.jsx(W.button,{type:"button",role:"tab","aria-selected":d,"aria-controls":c,"data-state":d?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:l,...s,ref:t,onMouseDown:k(e.onMouseDown,f=>{!o&&f.button===0&&f.ctrlKey===!1?i.onValueChange(r):f.preventDefault()}),onKeyDown:k(e.onKeyDown,f=>{[" ","Enter"].includes(f.key)&&i.onValueChange(r)}),onFocus:k(e.onFocus,()=>{const f=i.activationMode!=="manual";!d&&!o&&f&&i.onValueChange(r)})})})});Qm.displayName=Jm;var eg="TabsContent",tg=u.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:o,children:s,...i}=e,a=Qi(eg,n),l=ng(a.baseId,r),c=rg(a.baseId,r),d=r===a.value,f=u.useRef(d);return u.useEffect(()=>{const h=requestAnimationFrame(()=>f.current=!1);return()=>cancelAnimationFrame(h)},[]),p.jsx(ve,{present:o||d,children:({present:h})=>p.jsx(W.div,{"data-state":d?"active":"inactive","data-orientation":a.orientation,role:"tabpanel","aria-labelledby":l,hidden:!h,id:c,tabIndex:0,...i,ref:t,style:{...e.style,animationDuration:f.current?"0s":void 0},children:h&&s})})});tg.displayName=eg;function ng(e,t){return`${e}-trigger-${t}`}function rg(e,t){return`${e}-content-${t}`}var GN=Xm,og=Zm,sg=Qm,ig=tg;const KN=GN,ag=u.forwardRef(({className:e,...t},n)=>p.jsx(og,{ref:n,className:M("inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",e),...t}));ag.displayName=og.displayName;const lg=u.forwardRef(({className:e,...t},n)=>p.jsx(sg,{ref:n,className:M("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm",e),...t}));lg.displayName=sg.displayName;const cg=u.forwardRef(({className:e,...t},n)=>p.jsx(ig,{ref:n,className:M("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));cg.displayName=ig.displayName;var ug=1,YN=.9,XN=.8,qN=.17,ea=.1,ta=.999,ZN=.9999,JN=.99,QN=/[\\\/_+.#"@\[\(\{&]/,eM=/[\\\/_+.#"@\[\(\{&]/g,tM=/[\s-]/,dg=/[\s-]/g;function na(e,t,n,r,o,s,i){if(s===t.length)return o===e.length?ug:JN;var a=`${o},${s}`;if(i[a]!==void 0)return i[a];for(var l=r.charAt(s),c=n.indexOf(l,o),d=0,f,h,m,y;c>=0;)f=na(e,t,n,r,c+1,s+1,i),f>d&&(c===o?f*=ug:QN.test(e.charAt(c-1))?(f*=XN,m=e.slice(o,c-1).match(eM),m&&o>0&&(f*=Math.pow(ta,m.length))):tM.test(e.charAt(c-1))?(f*=YN,y=e.slice(o,c-1).match(dg),y&&o>0&&(f*=Math.pow(ta,y.length))):(f*=qN,o>0&&(f*=Math.pow(ta,c-o))),e.charAt(c)!==t.charAt(s)&&(f*=ZN)),(f<ea&&n.charAt(c-1)===r.charAt(s+1)||r.charAt(s+1)===r.charAt(s)&&n.charAt(c-1)!==r.charAt(s))&&(h=na(e,t,n,r,c+1,s+2,i),h*ea>f&&(f=h*ea)),f>d&&(d=f),c=n.indexOf(l,c+1);return i[a]=d,d}function fg(e){return e.toLowerCase().replace(dg," ")}function nM(e,t,n){return e=n&&n.length>0?`${e+" "+n.join(" ")}`:e,na(e,t,fg(e),fg(t),0,0,{})}var er='[cmdk-group=""]',ra='[cmdk-group-items=""]',rM='[cmdk-group-heading=""]',pg='[cmdk-item=""]',hg=`${pg}:not([aria-disabled="true"])`,oa="cmdk-item-select",pn="data-value",oM=(e,t,n)=>nM(e,t,n),mg=u.createContext(void 0),tr=()=>u.useContext(mg),gg=u.createContext(void 0),sa=()=>u.useContext(gg),vg=u.createContext(void 0),yg=u.forwardRef((e,t)=>{let n=hn(()=>{var D,G;return{search:"",value:(G=(D=e.value)!=null?D:e.defaultValue)!=null?G:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),r=hn(()=>new Set),o=hn(()=>new Map),s=hn(()=>new Map),i=hn(()=>new Set),a=bg(e),{label:l,children:c,value:d,onValueChange:f,filter:h,shouldFilter:m,loop:y,disablePointerSelection:g=!1,vimBindings:v=!0,...b}=e,w=he(),x=he(),S=he(),C=u.useRef(null),T=mM();Vt(()=>{if(d!==void 0){let D=d.trim();n.current.value=D,A.emit()}},[d]),Vt(()=>{T(6,U)},[]);let A=u.useMemo(()=>({subscribe:D=>(i.current.add(D),()=>i.current.delete(D)),snapshot:()=>n.current,setState:(D,G,X)=>{var j,Q,z,Z;if(!Object.is(n.current[D],G)){if(n.current[D]=G,D==="search")V(),O(),T(1,L);else if(D==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let q=document.getElementById(S);q?q.focus():(j=document.getElementById(w))==null||j.focus()}if(T(7,()=>{var q;n.current.selectedItemId=(q=_())==null?void 0:q.id,A.emit()}),X||T(5,U),((Q=a.current)==null?void 0:Q.value)!==void 0){let q=G??"";(Z=(z=a.current).onValueChange)==null||Z.call(z,q);return}}A.emit()}},emit:()=>{i.current.forEach(D=>D())}}),[]),N=u.useMemo(()=>({value:(D,G,X)=>{var j;G!==((j=s.current.get(D))==null?void 0:j.value)&&(s.current.set(D,{value:G,keywords:X}),n.current.filtered.items.set(D,I(G,X)),T(2,()=>{O(),A.emit()}))},item:(D,G)=>(r.current.add(D),G&&(o.current.has(G)?o.current.get(G).add(D):o.current.set(G,new Set([D]))),T(3,()=>{V(),O(),n.current.value||L(),A.emit()}),()=>{s.current.delete(D),r.current.delete(D),n.current.filtered.items.delete(D);let X=_();T(4,()=>{V(),(X==null?void 0:X.getAttribute("id"))===D&&L(),A.emit()})}),group:D=>(o.current.has(D)||o.current.set(D,new Set),()=>{s.current.delete(D),o.current.delete(D)}),filter:()=>a.current.shouldFilter,label:l||e["aria-label"],getDisablePointerSelection:()=>a.current.disablePointerSelection,listId:w,inputId:S,labelId:x,listInnerRef:C}),[]);function I(D,G){var X,j;let Q=(j=(X=a.current)==null?void 0:X.filter)!=null?j:oM;return D?Q(D,n.current.search,G):0}function O(){if(!n.current.search||a.current.shouldFilter===!1)return;let D=n.current.filtered.items,G=[];n.current.filtered.groups.forEach(j=>{let Q=o.current.get(j),z=0;Q.forEach(Z=>{let q=D.get(Z);z=Math.max(q,z)}),G.push([j,z])});let X=C.current;K().sort((j,Q)=>{var z,Z;let q=j.getAttribute("id"),ee=Q.getAttribute("id");return((z=D.get(ee))!=null?z:0)-((Z=D.get(q))!=null?Z:0)}).forEach(j=>{let Q=j.closest(ra);Q?Q.appendChild(j.parentElement===Q?j:j.closest(`${ra} > *`)):X.appendChild(j.parentElement===X?j:j.closest(`${ra} > *`))}),G.sort((j,Q)=>Q[1]-j[1]).forEach(j=>{var Q;let z=(Q=C.current)==null?void 0:Q.querySelector(`${er}[${pn}="${encodeURIComponent(j[0])}"]`);z==null||z.parentElement.appendChild(z)})}function L(){let D=K().find(X=>X.getAttribute("aria-disabled")!=="true"),G=D==null?void 0:D.getAttribute(pn);A.setState("value",G||void 0)}function V(){var D,G,X,j;if(!n.current.search||a.current.shouldFilter===!1){n.current.filtered.count=r.current.size;return}n.current.filtered.groups=new Set;let Q=0;for(let z of r.current){let Z=(G=(D=s.current.get(z))==null?void 0:D.value)!=null?G:"",q=(j=(X=s.current.get(z))==null?void 0:X.keywords)!=null?j:[],ee=I(Z,q);n.current.filtered.items.set(z,ee),ee>0&&Q++}for(let[z,Z]of o.current)for(let q of Z)if(n.current.filtered.items.get(q)>0){n.current.filtered.groups.add(z);break}n.current.filtered.count=Q}function U(){var D,G,X;let j=_();j&&(((D=j.parentElement)==null?void 0:D.firstChild)===j&&((X=(G=j.closest(er))==null?void 0:G.querySelector(rM))==null||X.scrollIntoView({block:"nearest"})),j.scrollIntoView({block:"nearest"}))}function _(){var D;return(D=C.current)==null?void 0:D.querySelector(`${pg}[aria-selected="true"]`)}function K(){var D;return Array.from(((D=C.current)==null?void 0:D.querySelectorAll(hg))||[])}function H(D){let G=K()[D];G&&A.setState("value",G.getAttribute(pn))}function B(D){var G;let X=_(),j=K(),Q=j.findIndex(Z=>Z===X),z=j[Q+D];(G=a.current)!=null&&G.loop&&(z=Q+D<0?j[j.length-1]:Q+D===j.length?j[0]:j[Q+D]),z&&A.setState("value",z.getAttribute(pn))}function $(D){let G=_(),X=G==null?void 0:G.closest(er),j;for(;X&&!j;)X=D>0?pM(X,er):hM(X,er),j=X==null?void 0:X.querySelector(hg);j?A.setState("value",j.getAttribute(pn)):B(D)}let F=()=>H(K().length-1),ne=D=>{D.preventDefault(),D.metaKey?F():D.altKey?$(1):B(1)},re=D=>{D.preventDefault(),D.metaKey?H(0):D.altKey?$(-1):B(-1)};return u.createElement(W.div,{ref:t,tabIndex:-1,...b,"cmdk-root":"",onKeyDown:D=>{var G;(G=b.onKeyDown)==null||G.call(b,D);let X=D.nativeEvent.isComposing||D.keyCode===229;if(!(D.defaultPrevented||X))switch(D.key){case"n":case"j":{v&&D.ctrlKey&&ne(D);break}case"ArrowDown":{ne(D);break}case"p":case"k":{v&&D.ctrlKey&&re(D);break}case"ArrowUp":{re(D);break}case"Home":{D.preventDefault(),H(0);break}case"End":{D.preventDefault(),F();break}case"Enter":{D.preventDefault();let j=_();if(j){let Q=new Event(oa);j.dispatchEvent(Q)}}}}},u.createElement("label",{"cmdk-label":"",htmlFor:N.inputId,id:N.labelId,style:vM},l),ko(e,D=>u.createElement(gg.Provider,{value:A},u.createElement(mg.Provider,{value:N},D))))}),sM=u.forwardRef((e,t)=>{var n,r;let o=he(),s=u.useRef(null),i=u.useContext(vg),a=tr(),l=bg(e),c=(r=(n=l.current)==null?void 0:n.forceMount)!=null?r:i==null?void 0:i.forceMount;Vt(()=>{if(!c)return a.item(o,i==null?void 0:i.id)},[c]);let d=wg(o,s,[e.value,e.children,s],e.keywords),f=sa(),h=Ct(T=>T.value&&T.value===d.current),m=Ct(T=>c||a.filter()===!1?!0:T.search?T.filtered.items.get(o)>0:!0);u.useEffect(()=>{let T=s.current;if(!(!T||e.disabled))return T.addEventListener(oa,y),()=>T.removeEventListener(oa,y)},[m,e.onSelect,e.disabled]);function y(){var T,A;g(),(A=(T=l.current).onSelect)==null||A.call(T,d.current)}function g(){f.setState("value",d.current,!0)}if(!m)return null;let{disabled:v,value:b,onSelect:w,forceMount:x,keywords:S,...C}=e;return u.createElement(W.div,{ref:Ce(s,t),...C,id:o,"cmdk-item":"",role:"option","aria-disabled":!!v,"aria-selected":!!h,"data-disabled":!!v,"data-selected":!!h,onPointerMove:v||a.getDisablePointerSelection()?void 0:g,onClick:v?void 0:y},e.children)}),iM=u.forwardRef((e,t)=>{let{heading:n,children:r,forceMount:o,...s}=e,i=he(),a=u.useRef(null),l=u.useRef(null),c=he(),d=tr(),f=Ct(m=>o||d.filter()===!1?!0:m.search?m.filtered.groups.has(i):!0);Vt(()=>d.group(i),[]),wg(i,a,[e.value,e.heading,l]);let h=u.useMemo(()=>({id:i,forceMount:o}),[o]);return u.createElement(W.div,{ref:Ce(a,t),...s,"cmdk-group":"",role:"presentation",hidden:f?void 0:!0},n&&u.createElement("div",{ref:l,"cmdk-group-heading":"","aria-hidden":!0,id:c},n),ko(e,m=>u.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?c:void 0},u.createElement(vg.Provider,{value:h},m))))}),aM=u.forwardRef((e,t)=>{let{alwaysRender:n,...r}=e,o=u.useRef(null),s=Ct(i=>!i.search);return!n&&!s?null:u.createElement(W.div,{ref:Ce(o,t),...r,"cmdk-separator":"",role:"separator"})}),lM=u.forwardRef((e,t)=>{let{onValueChange:n,...r}=e,o=e.value!=null,s=sa(),i=Ct(c=>c.search),a=Ct(c=>c.selectedItemId),l=tr();return u.useEffect(()=>{e.value!=null&&s.setState("search",e.value)},[e.value]),u.createElement(W.input,{ref:t,...r,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":l.listId,"aria-labelledby":l.labelId,"aria-activedescendant":a,id:l.inputId,type:"text",value:o?e.value:i,onChange:c=>{o||s.setState("search",c.target.value),n==null||n(c.target.value)}})}),cM=u.forwardRef((e,t)=>{let{children:n,label:r="Suggestions",...o}=e,s=u.useRef(null),i=u.useRef(null),a=Ct(c=>c.selectedItemId),l=tr();return u.useEffect(()=>{if(i.current&&s.current){let c=i.current,d=s.current,f,h=new ResizeObserver(()=>{f=requestAnimationFrame(()=>{let m=c.offsetHeight;d.style.setProperty("--cmdk-list-height",m.toFixed(1)+"px")})});return h.observe(c),()=>{cancelAnimationFrame(f),h.unobserve(c)}}},[]),u.createElement(W.div,{ref:Ce(s,t),...o,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":a,"aria-label":r,id:l.listId},ko(e,c=>u.createElement("div",{ref:Ce(i,l.listInnerRef),"cmdk-list-sizer":""},c)))}),uM=u.forwardRef((e,t)=>{let{open:n,onOpenChange:r,overlayClassName:o,contentClassName:s,container:i,...a}=e;return u.createElement(fi,{open:n,onOpenChange:r},u.createElement(pi,{container:i},u.createElement(Wn,{"cmdk-overlay":"",className:o}),u.createElement(Hn,{"aria-label":e.label,"cmdk-dialog":"",className:s},u.createElement(yg,{ref:t,...a}))))}),dM=u.forwardRef((e,t)=>Ct(n=>n.filtered.count===0)?u.createElement(W.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),fM=u.forwardRef((e,t)=>{let{progress:n,children:r,label:o="Loading...",...s}=e;return u.createElement(W.div,{ref:t,...s,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":o},ko(e,i=>u.createElement("div",{"aria-hidden":!0},i)))}),Te=Object.assign(yg,{List:cM,Item:sM,Input:lM,Group:iM,Separator:aM,Dialog:uM,Empty:dM,Loading:fM});function pM(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function hM(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function bg(e){let t=u.useRef(e);return Vt(()=>{t.current=e}),t}var Vt=typeof window>"u"?u.useEffect:u.useLayoutEffect;function hn(e){let t=u.useRef();return t.current===void 0&&(t.current=e()),t}function Ct(e){let t=sa(),n=()=>e(t.snapshot());return u.useSyncExternalStore(t.subscribe,n,n)}function wg(e,t,n,r=[]){let o=u.useRef(),s=tr();return Vt(()=>{var i;let a=(()=>{var c;for(let d of n){if(typeof d=="string")return d.trim();if(typeof d=="object"&&"current"in d)return d.current?(c=d.current.textContent)==null?void 0:c.trim():o.current}})(),l=r.map(c=>c.trim());s.value(e,a,l),(i=t.current)==null||i.setAttribute(pn,a),o.current=a}),o}var mM=()=>{let[e,t]=u.useState(),n=hn(()=>new Map);return Vt(()=>{n.current.forEach(r=>r()),n.current=new Map},[e]),(r,o)=>{n.current.set(r,o),t({})}};function gM(e){let t=e.type;return typeof t=="function"?t(e.props):"render"in t?t.render(e.props):e}function ko({asChild:e,children:t},n){return e&&u.isValidElement(t)?u.cloneElement(gM(t),{ref:t.ref},n(t.props.children)):n(t)}var vM={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const ia=u.forwardRef(({className:e,...t},n)=>p.jsx(Te,{ref:n,className:M("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...t}));ia.displayName=Te.displayName;const yM=({children:e,...t})=>p.jsx(yf,{...t,children:p.jsx(mi,{className:"overflow-hidden p-0 shadow-lg",children:p.jsx(ia,{className:"[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:e})})}),xg=u.forwardRef(({className:e,...t},n)=>p.jsxs("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[p.jsx(Bw,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),p.jsx(Te.Input,{ref:n,className:M("flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),...t})]}));xg.displayName=Te.Input.displayName;const Sg=u.forwardRef(({className:e,...t},n)=>p.jsx(Te.List,{ref:n,className:M("max-h-[300px] overflow-y-auto overflow-x-hidden",e),...t}));Sg.displayName=Te.List.displayName;const Cg=u.forwardRef((e,t)=>p.jsx(Te.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));Cg.displayName=Te.Empty.displayName;const Eg=u.forwardRef(({className:e,...t},n)=>p.jsx(Te.Group,{ref:n,className:M("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",e),...t}));Eg.displayName=Te.Group.displayName;const Pg=u.forwardRef(({className:e,...t},n)=>p.jsx(Te.Separator,{ref:n,className:M("-mx-1 h-px bg-border",e),...t}));Pg.displayName=Te.Separator.displayName;const Tg=u.forwardRef(({className:e,...t},n)=>p.jsx(Te.Item,{ref:n,className:M("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none aria-selected:bg-accent aria-selected:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...t}));Tg.displayName=Te.Item.displayName;const Ag=({className:e,...t})=>p.jsx("span",{className:M("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});Ag.displayName="CommandShortcut";const Ng=u.forwardRef(({className:e,...t},n)=>p.jsx("ol",{ref:n,className:M("relative border-l border-muted",e),...t}));Ng.displayName="Timeline";const Mg=u.forwardRef(({className:e,...t},n)=>p.jsx("li",{ref:n,className:M("mb-10 ml-4",e),...t}));Mg.displayName="TimelineItem";const Ig=u.forwardRef(({className:e,...t},n)=>p.jsx("div",{ref:n,className:M("absolute -left-1.5 mt-1.5 h-3 w-3 rounded-full border border-white bg-muted-foreground dark:border-gray-900 dark:bg-gray-700",e),...t}));Ig.displayName="TimelinePoint";const Dg=u.forwardRef(({className:e,...t},n)=>p.jsx("div",{ref:n,className:M("ml-4",e),...t}));Dg.displayName="TimelineContent";const _g=u.forwardRef(({className:e,...t},n)=>p.jsx("time",{ref:n,className:M("mb-1 text-sm font-normal leading-none text-muted-foreground",e),...t}));_g.displayName="TimelineTime";const kg=u.forwardRef(({className:e,...t},n)=>p.jsx("h3",{ref:n,className:M("text-lg font-semibold text-foreground",e),...t}));kg.displayName="TimelineTitle";const Og=u.forwardRef(({className:e,...t},n)=>p.jsx("p",{ref:n,className:M("mb-4 text-base font-normal text-muted-foreground",e),...t}));Og.displayName="TimelineDescription";function bM(e,t=[]){let n=[];function r(s,i){const a=u.createContext(i);a.displayName=s+"Context";const l=n.length;n=[...n,i];const c=f=>{var b;const{scope:h,children:m,...y}=f,g=((b=h==null?void 0:h[e])==null?void 0:b[l])||a,v=u.useMemo(()=>y,Object.values(y));return p.jsx(g.Provider,{value:v,children:m})};c.displayName=s+"Provider";function d(f,h){var g;const m=((g=h==null?void 0:h[e])==null?void 0:g[l])||a,y=u.useContext(m);if(y)return y;if(i!==void 0)return i;throw new Error(`\`${f}\` must be used within \`${s}\``)}return[c,d]}const o=()=>{const s=n.map(i=>u.createContext(i));return function(a){const l=(a==null?void 0:a[e])||s;return u.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return o.scopeName=e,[r,wM(o,...t)]}function wM(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const i=r.reduce((a,{useScope:l,scopeName:c})=>{const f=l(s)[`__scope${c}`];return{...a,...f}},{});return u.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}var xM=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],aa=xM.reduce((e,t)=>{const n=Mn(`Primitive.${t}`),r=u.forwardRef((o,s)=>{const{asChild:i,...a}=o,l=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(l,{...a,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),la={exports:{}},ca={};/**
|
|
110
|
+
Defaulting to \`null\`.`}var Ph=bh,qA=xh;const Th=d.forwardRef(({className:e,value:t,...n},r)=>p.jsx(Ph,{ref:r,className:M("relative h-4 w-full overflow-hidden rounded-full bg-secondary",e),...n,children:p.jsx(qA,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(t||0)}%)`}})}));Th.displayName=Ph.displayName;const ZA=li,JA=af,QA=oo,Ah=ci,Vi=d.forwardRef(({className:e,...t},n)=>p.jsx(zn,{className:M("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:n}));Vi.displayName=zn.displayName;const eN=Ut("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),Nh=d.forwardRef(({side:e="right",className:t,children:n,...r},o)=>p.jsxs(Ah,{children:[p.jsx(Vi,{}),p.jsxs(Wn,{ref:o,className:M(eN({side:e}),t),...r,children:[n,p.jsxs(oo,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[p.jsx(xs,{className:"h-4 w-4"}),p.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Nh.displayName=Wn.displayName;const Mh=({className:e,...t})=>p.jsx("div",{className:M("flex flex-col space-y-2 text-center sm:text-left",e),...t});Mh.displayName="SheetHeader";const Ih=({className:e,...t})=>p.jsx("div",{className:M("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});Ih.displayName="SheetFooter";const Dh=d.forwardRef(({className:e,...t},n)=>p.jsx(no,{ref:n,className:M("text-lg font-semibold text-foreground",e),...t}));Dh.displayName=no.displayName;const _h=d.forwardRef(({className:e,...t},n)=>p.jsx(ro,{ref:n,className:M("text-sm text-muted-foreground",e),...t}));_h.displayName=ro.displayName;const kh=d.forwardRef(({className:e,...t},n)=>p.jsx("div",{ref:n,className:M("rounded-lg border bg-card text-card-foreground shadow-sm",e),...t}));kh.displayName="Card";const Oh=d.forwardRef(({className:e,...t},n)=>p.jsx("div",{ref:n,className:M("flex flex-col space-y-1.5 p-6",e),...t}));Oh.displayName="CardHeader";const Lh=d.forwardRef(({className:e,...t},n)=>p.jsx("h3",{ref:n,className:M("text-2xl font-semibold leading-none tracking-tight",e),...t}));Lh.displayName="CardTitle";const Vh=d.forwardRef(({className:e,...t},n)=>p.jsx("p",{ref:n,className:M("text-sm text-muted-foreground",e),...t}));Vh.displayName="CardDescription";const $h=d.forwardRef(({className:e,...t},n)=>p.jsx("div",{ref:n,className:M("p-6 pt-0",e),...t}));$h.displayName="CardContent";const Fh=d.forwardRef(({className:e,...t},n)=>p.jsx("div",{ref:n,className:M("flex items-center p-6 pt-0",e),...t}));Fh.displayName="CardFooter";var bo="Collapsible",[tN,Rh]=ge(bo),[nN,$i]=tN(bo),Bh=d.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:r,defaultOpen:o,disabled:s,onOpenChange:i,...a}=e,[l,c]=ye({prop:r,defaultProp:o??!1,onChange:i,caller:bo});return p.jsx(nN,{scope:n,disabled:s,contentId:fe(),open:l,onOpenToggle:d.useCallback(()=>c(u=>!u),[c]),children:p.jsx(j.div,{"data-state":Ri(l),"data-disabled":s?"":void 0,...a,ref:t})})});Bh.displayName=bo;var zh="CollapsibleTrigger",Wh=d.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,o=$i(zh,n);return p.jsx(j.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":Ri(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...r,ref:t,onClick:_(e.onClick,o.onOpenToggle)})});Wh.displayName=zh;var Fi="CollapsibleContent",Hh=d.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=$i(Fi,e.__scopeCollapsible);return p.jsx(me,{present:n||o.open,children:({present:s})=>p.jsx(rN,{...r,ref:t,present:s})})});Hh.displayName=Fi;var rN=d.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:o,...s}=e,i=$i(Fi,n),[a,l]=d.useState(r),c=d.useRef(null),u=J(t,c),f=d.useRef(0),h=f.current,m=d.useRef(0),y=m.current,g=i.open||a,v=d.useRef(g),b=d.useRef(void 0);return d.useEffect(()=>{const w=requestAnimationFrame(()=>v.current=!1);return()=>cancelAnimationFrame(w)},[]),de(()=>{const w=c.current;if(w){b.current=b.current||{transitionDuration:w.style.transitionDuration,animationName:w.style.animationName},w.style.transitionDuration="0s",w.style.animationName="none";const x=w.getBoundingClientRect();f.current=x.height,m.current=x.width,v.current||(w.style.transitionDuration=b.current.transitionDuration,w.style.animationName=b.current.animationName),l(r)}},[i.open,r]),p.jsx(j.div,{"data-state":Ri(i.open),"data-disabled":i.disabled?"":void 0,id:i.contentId,hidden:!g,...s,ref:u,style:{"--radix-collapsible-content-height":h?`${h}px`:void 0,"--radix-collapsible-content-width":y?`${y}px`:void 0,...e.style},children:g&&o})});function Ri(e){return e?"open":"closed"}var oN=Bh,sN=Wh,iN=Hh,Fe="Accordion",aN=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[Bi,lN,cN]=Gt(Fe),[wo]=ge(Fe,[cN,Rh]),zi=Rh(),jh=E.forwardRef((e,t)=>{const{type:n,...r}=e,o=r,s=r;return p.jsx(Bi.Provider,{scope:e.__scopeAccordion,children:n==="multiple"?p.jsx(pN,{...s,ref:t}):p.jsx(fN,{...o,ref:t})})});jh.displayName=Fe;var[Uh,uN]=wo(Fe),[Gh,dN]=wo(Fe,{collapsible:!1}),fN=E.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},collapsible:s=!1,...i}=e,[a,l]=ye({prop:n,defaultProp:r??"",onChange:o,caller:Fe});return p.jsx(Uh,{scope:e.__scopeAccordion,value:E.useMemo(()=>a?[a]:[],[a]),onItemOpen:l,onItemClose:E.useCallback(()=>s&&l(""),[s,l]),children:p.jsx(Gh,{scope:e.__scopeAccordion,collapsible:s,children:p.jsx(Kh,{...i,ref:t})})})}),pN=E.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...s}=e,[i,a]=ye({prop:n,defaultProp:r??[],onChange:o,caller:Fe}),l=E.useCallback(u=>a((f=[])=>[...f,u]),[a]),c=E.useCallback(u=>a((f=[])=>f.filter(h=>h!==u)),[a]);return p.jsx(Uh,{scope:e.__scopeAccordion,value:i,onItemOpen:l,onItemClose:c,children:p.jsx(Gh,{scope:e.__scopeAccordion,collapsible:!0,children:p.jsx(Kh,{...s,ref:t})})})}),[hN,xo]=wo(Fe),Kh=E.forwardRef((e,t)=>{const{__scopeAccordion:n,disabled:r,dir:o,orientation:s="vertical",...i}=e,a=E.useRef(null),l=J(a,t),c=lN(n),f=ut(o)==="ltr",h=_(e.onKeyDown,m=>{var N;if(!aN.includes(m.key))return;const y=m.target,g=c().filter(I=>{var O;return!((O=I.ref.current)!=null&&O.disabled)}),v=g.findIndex(I=>I.ref.current===y),b=g.length;if(v===-1)return;m.preventDefault();let w=v;const x=0,S=b-1,C=()=>{w=v+1,w>S&&(w=x)},T=()=>{w=v-1,w<x&&(w=S)};switch(m.key){case"Home":w=x;break;case"End":w=S;break;case"ArrowRight":s==="horizontal"&&(f?C():T());break;case"ArrowDown":s==="vertical"&&C();break;case"ArrowLeft":s==="horizontal"&&(f?T():C());break;case"ArrowUp":s==="vertical"&&T();break}const A=w%b;(N=g[A].ref.current)==null||N.focus()});return p.jsx(hN,{scope:n,disabled:r,direction:o,orientation:s,children:p.jsx(Bi.Slot,{scope:n,children:p.jsx(j.div,{...i,"data-orientation":s,ref:l,onKeyDown:r?void 0:h})})})}),So="AccordionItem",[mN,Wi]=wo(So),Yh=E.forwardRef((e,t)=>{const{__scopeAccordion:n,value:r,...o}=e,s=xo(So,n),i=uN(So,n),a=zi(n),l=fe(),c=r&&i.value.includes(r)||!1,u=s.disabled||e.disabled;return p.jsx(mN,{scope:n,open:c,disabled:u,triggerId:l,children:p.jsx(oN,{"data-orientation":s.orientation,"data-state":em(c),...a,...o,ref:t,disabled:u,open:c,onOpenChange:f=>{f?i.onItemOpen(r):i.onItemClose(r)}})})});Yh.displayName=So;var Xh="AccordionHeader",qh=E.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=xo(Fe,n),s=Wi(Xh,n);return p.jsx(j.h3,{"data-orientation":o.orientation,"data-state":em(s.open),"data-disabled":s.disabled?"":void 0,...r,ref:t})});qh.displayName=Xh;var Hi="AccordionTrigger",Zh=E.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=xo(Fe,n),s=Wi(Hi,n),i=dN(Hi,n),a=zi(n);return p.jsx(Bi.ItemSlot,{scope:n,children:p.jsx(sN,{"aria-disabled":s.open&&!i.collapsible||void 0,"data-orientation":o.orientation,id:s.triggerId,...a,...r,ref:t})})});Zh.displayName=Hi;var Jh="AccordionContent",Qh=E.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=xo(Fe,n),s=Wi(Jh,n),i=zi(n);return p.jsx(iN,{role:"region","aria-labelledby":s.triggerId,"data-orientation":o.orientation,...i,...r,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});Qh.displayName=Jh;function em(e){return e?"open":"closed"}var gN=jh,vN=Yh,yN=qh,tm=Zh,nm=Qh;const bN=gN,rm=d.forwardRef(({className:e,...t},n)=>p.jsx(vN,{ref:n,className:M("border-b",e),...t}));rm.displayName="AccordionItem";const om=d.forwardRef(({className:e,children:t,...n},r)=>p.jsx(yN,{className:"flex",children:p.jsxs(tm,{ref:r,className:M("flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",e),...n,children:[t,p.jsx(ic,{className:"h-4 w-4 shrink-0 transition-transform duration-200"})]})}));om.displayName=tm.displayName;const sm=d.forwardRef(({className:e,children:t,...n},r)=>p.jsx(nm,{ref:r,className:"overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...n,children:p.jsx("div",{className:M("pb-4 pt-0",e),children:t})}));sm.displayName=nm.displayName;function wN(e,t){return d.useReducer((n,r)=>t[n][r]??n,e)}var ji="ScrollArea",[im]=ge(ji),[xN,Ie]=im(ji),am=d.forwardRef((e,t)=>{const{__scopeScrollArea:n,type:r="hover",dir:o,scrollHideDelay:s=600,...i}=e,[a,l]=d.useState(null),[c,u]=d.useState(null),[f,h]=d.useState(null),[m,y]=d.useState(null),[g,v]=d.useState(null),[b,w]=d.useState(0),[x,S]=d.useState(0),[C,T]=d.useState(!1),[A,N]=d.useState(!1),I=J(t,k=>l(k)),O=ut(o);return p.jsx(xN,{scope:n,type:r,dir:O,scrollHideDelay:s,scrollArea:a,viewport:c,onViewportChange:u,content:f,onContentChange:h,scrollbarX:m,onScrollbarXChange:y,scrollbarXEnabled:C,onScrollbarXEnabledChange:T,scrollbarY:g,onScrollbarYChange:v,scrollbarYEnabled:A,onScrollbarYEnabledChange:N,onCornerWidthChange:w,onCornerHeightChange:S,children:p.jsx(j.div,{dir:O,...i,ref:I,style:{position:"relative","--radix-scroll-area-corner-width":b+"px","--radix-scroll-area-corner-height":x+"px",...e.style}})})});am.displayName=ji;var lm="ScrollAreaViewport",cm=d.forwardRef((e,t)=>{const{__scopeScrollArea:n,children:r,nonce:o,...s}=e,i=Ie(lm,n),a=d.useRef(null),l=J(t,a,i.onViewportChange);return p.jsxs(p.Fragment,{children:[p.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:o}),p.jsx(j.div,{"data-radix-scroll-area-viewport":"",...s,ref:l,style:{overflowX:i.scrollbarXEnabled?"scroll":"hidden",overflowY:i.scrollbarYEnabled?"scroll":"hidden",...e.style},children:p.jsx("div",{ref:i.onContentChange,style:{minWidth:"100%",display:"table"},children:r})})]})});cm.displayName=lm;var Ke="ScrollAreaScrollbar",Ui=d.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Ie(Ke,e.__scopeScrollArea),{onScrollbarXEnabledChange:s,onScrollbarYEnabledChange:i}=o,a=e.orientation==="horizontal";return d.useEffect(()=>(a?s(!0):i(!0),()=>{a?s(!1):i(!1)}),[a,s,i]),o.type==="hover"?p.jsx(SN,{...r,ref:t,forceMount:n}):o.type==="scroll"?p.jsx(CN,{...r,ref:t,forceMount:n}):o.type==="auto"?p.jsx(um,{...r,ref:t,forceMount:n}):o.type==="always"?p.jsx(Gi,{...r,ref:t}):null});Ui.displayName=Ke;var SN=d.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Ie(Ke,e.__scopeScrollArea),[s,i]=d.useState(!1);return d.useEffect(()=>{const a=o.scrollArea;let l=0;if(a){const c=()=>{window.clearTimeout(l),i(!0)},u=()=>{l=window.setTimeout(()=>i(!1),o.scrollHideDelay)};return a.addEventListener("pointerenter",c),a.addEventListener("pointerleave",u),()=>{window.clearTimeout(l),a.removeEventListener("pointerenter",c),a.removeEventListener("pointerleave",u)}}},[o.scrollArea,o.scrollHideDelay]),p.jsx(me,{present:n||s,children:p.jsx(um,{"data-state":s?"visible":"hidden",...r,ref:t})})}),CN=d.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Ie(Ke,e.__scopeScrollArea),s=e.orientation==="horizontal",i=To(()=>l("SCROLL_END"),100),[a,l]=wN("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return d.useEffect(()=>{if(a==="idle"){const c=window.setTimeout(()=>l("HIDE"),o.scrollHideDelay);return()=>window.clearTimeout(c)}},[a,o.scrollHideDelay,l]),d.useEffect(()=>{const c=o.viewport,u=s?"scrollLeft":"scrollTop";if(c){let f=c[u];const h=()=>{const m=c[u];f!==m&&(l("SCROLL"),i()),f=m};return c.addEventListener("scroll",h),()=>c.removeEventListener("scroll",h)}},[o.viewport,s,l,i]),p.jsx(me,{present:n||a!=="hidden",children:p.jsx(Gi,{"data-state":a==="hidden"?"hidden":"visible",...r,ref:t,onPointerEnter:_(e.onPointerEnter,()=>l("POINTER_ENTER")),onPointerLeave:_(e.onPointerLeave,()=>l("POINTER_LEAVE"))})})}),um=d.forwardRef((e,t)=>{const n=Ie(Ke,e.__scopeScrollArea),{forceMount:r,...o}=e,[s,i]=d.useState(!1),a=e.orientation==="horizontal",l=To(()=>{if(n.viewport){const c=n.viewport.offsetWidth<n.viewport.scrollWidth,u=n.viewport.offsetHeight<n.viewport.scrollHeight;i(a?c:u)}},10);return un(n.viewport,l),un(n.content,l),p.jsx(me,{present:r||s,children:p.jsx(Gi,{"data-state":s?"visible":"hidden",...o,ref:t})})}),Gi=d.forwardRef((e,t)=>{const{orientation:n="vertical",...r}=e,o=Ie(Ke,e.__scopeScrollArea),s=d.useRef(null),i=d.useRef(0),[a,l]=d.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),c=mm(a.viewport,a.content),u={...r,sizes:a,onSizesChange:l,hasThumb:c>0&&c<1,onThumbChange:h=>s.current=h,onThumbPointerUp:()=>i.current=0,onThumbPointerDown:h=>i.current=h};function f(h,m){return MN(h,i.current,a,m)}return n==="horizontal"?p.jsx(EN,{...u,ref:t,onThumbPositionChange:()=>{if(o.viewport&&s.current){const h=o.viewport.scrollLeft,m=gm(h,a,o.dir);s.current.style.transform=`translate3d(${m}px, 0, 0)`}},onWheelScroll:h=>{o.viewport&&(o.viewport.scrollLeft=h)},onDragScroll:h=>{o.viewport&&(o.viewport.scrollLeft=f(h,o.dir))}}):n==="vertical"?p.jsx(PN,{...u,ref:t,onThumbPositionChange:()=>{if(o.viewport&&s.current){const h=o.viewport.scrollTop,m=gm(h,a);s.current.style.transform=`translate3d(0, ${m}px, 0)`}},onWheelScroll:h=>{o.viewport&&(o.viewport.scrollTop=h)},onDragScroll:h=>{o.viewport&&(o.viewport.scrollTop=f(h))}}):null}),EN=d.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...o}=e,s=Ie(Ke,e.__scopeScrollArea),[i,a]=d.useState(),l=d.useRef(null),c=J(t,l,s.onScrollbarXChange);return d.useEffect(()=>{l.current&&a(getComputedStyle(l.current))},[l]),p.jsx(fm,{"data-orientation":"horizontal",...o,ref:c,sizes:n,style:{bottom:0,left:s.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:s.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":Po(n)+"px",...e.style},onThumbPointerDown:u=>e.onThumbPointerDown(u.x),onDragScroll:u=>e.onDragScroll(u.x),onWheelScroll:(u,f)=>{if(s.viewport){const h=s.viewport.scrollLeft+u.deltaX;e.onWheelScroll(h),ym(h,f)&&u.preventDefault()}},onResize:()=>{l.current&&s.viewport&&i&&r({content:s.viewport.scrollWidth,viewport:s.viewport.offsetWidth,scrollbar:{size:l.current.clientWidth,paddingStart:Eo(i.paddingLeft),paddingEnd:Eo(i.paddingRight)}})}})}),PN=d.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...o}=e,s=Ie(Ke,e.__scopeScrollArea),[i,a]=d.useState(),l=d.useRef(null),c=J(t,l,s.onScrollbarYChange);return d.useEffect(()=>{l.current&&a(getComputedStyle(l.current))},[l]),p.jsx(fm,{"data-orientation":"vertical",...o,ref:c,sizes:n,style:{top:0,right:s.dir==="ltr"?0:void 0,left:s.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":Po(n)+"px",...e.style},onThumbPointerDown:u=>e.onThumbPointerDown(u.y),onDragScroll:u=>e.onDragScroll(u.y),onWheelScroll:(u,f)=>{if(s.viewport){const h=s.viewport.scrollTop+u.deltaY;e.onWheelScroll(h),ym(h,f)&&u.preventDefault()}},onResize:()=>{l.current&&s.viewport&&i&&r({content:s.viewport.scrollHeight,viewport:s.viewport.offsetHeight,scrollbar:{size:l.current.clientHeight,paddingStart:Eo(i.paddingTop),paddingEnd:Eo(i.paddingBottom)}})}})}),[TN,dm]=im(Ke),fm=d.forwardRef((e,t)=>{const{__scopeScrollArea:n,sizes:r,hasThumb:o,onThumbChange:s,onThumbPointerUp:i,onThumbPointerDown:a,onThumbPositionChange:l,onDragScroll:c,onWheelScroll:u,onResize:f,...h}=e,m=Ie(Ke,n),[y,g]=d.useState(null),v=J(t,I=>g(I)),b=d.useRef(null),w=d.useRef(""),x=m.viewport,S=r.content-r.viewport,C=ce(u),T=ce(l),A=To(f,10);function N(I){if(b.current){const O=I.clientX-b.current.left,k=I.clientY-b.current.top;c({x:O,y:k})}}return d.useEffect(()=>{const I=O=>{const k=O.target;(y==null?void 0:y.contains(k))&&C(O,S)};return document.addEventListener("wheel",I,{passive:!1}),()=>document.removeEventListener("wheel",I,{passive:!1})},[x,y,S,C]),d.useEffect(T,[r,T]),un(y,A),un(m.content,A),p.jsx(TN,{scope:n,scrollbar:y,hasThumb:o,onThumbChange:ce(s),onThumbPointerUp:ce(i),onThumbPositionChange:T,onThumbPointerDown:ce(a),children:p.jsx(j.div,{...h,ref:v,style:{position:"absolute",...h.style},onPointerDown:_(e.onPointerDown,I=>{I.button===0&&(I.target.setPointerCapture(I.pointerId),b.current=y.getBoundingClientRect(),w.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",m.viewport&&(m.viewport.style.scrollBehavior="auto"),N(I))}),onPointerMove:_(e.onPointerMove,N),onPointerUp:_(e.onPointerUp,I=>{const O=I.target;O.hasPointerCapture(I.pointerId)&&O.releasePointerCapture(I.pointerId),document.body.style.webkitUserSelect=w.current,m.viewport&&(m.viewport.style.scrollBehavior=""),b.current=null})})})}),Co="ScrollAreaThumb",pm=d.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=dm(Co,e.__scopeScrollArea);return p.jsx(me,{present:n||o.hasThumb,children:p.jsx(AN,{ref:t,...r})})}),AN=d.forwardRef((e,t)=>{const{__scopeScrollArea:n,style:r,...o}=e,s=Ie(Co,n),i=dm(Co,n),{onThumbPositionChange:a}=i,l=J(t,f=>i.onThumbChange(f)),c=d.useRef(void 0),u=To(()=>{c.current&&(c.current(),c.current=void 0)},100);return d.useEffect(()=>{const f=s.viewport;if(f){const h=()=>{if(u(),!c.current){const m=IN(f,a);c.current=m,a()}};return a(),f.addEventListener("scroll",h),()=>f.removeEventListener("scroll",h)}},[s.viewport,u,a]),p.jsx(j.div,{"data-state":i.hasThumb?"visible":"hidden",...o,ref:l,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...r},onPointerDownCapture:_(e.onPointerDownCapture,f=>{const m=f.target.getBoundingClientRect(),y=f.clientX-m.left,g=f.clientY-m.top;i.onThumbPointerDown({x:y,y:g})}),onPointerUp:_(e.onPointerUp,i.onThumbPointerUp)})});pm.displayName=Co;var Ki="ScrollAreaCorner",hm=d.forwardRef((e,t)=>{const n=Ie(Ki,e.__scopeScrollArea),r=!!(n.scrollbarX&&n.scrollbarY);return n.type!=="scroll"&&r?p.jsx(NN,{...e,ref:t}):null});hm.displayName=Ki;var NN=d.forwardRef((e,t)=>{const{__scopeScrollArea:n,...r}=e,o=Ie(Ki,n),[s,i]=d.useState(0),[a,l]=d.useState(0),c=!!(s&&a);return un(o.scrollbarX,()=>{var f;const u=((f=o.scrollbarX)==null?void 0:f.offsetHeight)||0;o.onCornerHeightChange(u),l(u)}),un(o.scrollbarY,()=>{var f;const u=((f=o.scrollbarY)==null?void 0:f.offsetWidth)||0;o.onCornerWidthChange(u),i(u)}),c?p.jsx(j.div,{...r,ref:t,style:{width:s,height:a,position:"absolute",right:o.dir==="ltr"?0:void 0,left:o.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function Eo(e){return e?parseInt(e,10):0}function mm(e,t){const n=e/t;return isNaN(n)?0:n}function Po(e){const t=mm(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function MN(e,t,n,r="ltr"){const o=Po(n),s=o/2,i=t||s,a=o-i,l=n.scrollbar.paddingStart+i,c=n.scrollbar.size-n.scrollbar.paddingEnd-a,u=n.content-n.viewport,f=r==="ltr"?[0,u]:[u*-1,0];return vm([l,c],f)(e)}function gm(e,t,n="ltr"){const r=Po(t),o=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,s=t.scrollbar.size-o,i=t.content-t.viewport,a=s-r,l=n==="ltr"?[0,i]:[i*-1,0],c=_n(e,l);return vm([0,i],[0,a])(c)}function vm(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function ym(e,t){return e>0&&e<t}var IN=(e,t=()=>{})=>{let n={left:e.scrollLeft,top:e.scrollTop},r=0;return function o(){const s={left:e.scrollLeft,top:e.scrollTop},i=n.left!==s.left,a=n.top!==s.top;(i||a)&&t(),n=s,r=window.requestAnimationFrame(o)}(),()=>window.cancelAnimationFrame(r)};function To(e,t){const n=ce(e),r=d.useRef(0);return d.useEffect(()=>()=>window.clearTimeout(r.current),[]),d.useCallback(()=>{window.clearTimeout(r.current),r.current=window.setTimeout(n,t)},[n,t])}function un(e,t){const n=ce(t);de(()=>{let r=0;if(e){const o=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(n)});return o.observe(e),()=>{window.cancelAnimationFrame(r),o.unobserve(e)}}},[e,n])}var bm=am,DN=cm,_N=hm;const wm=d.forwardRef(({className:e,children:t,...n},r)=>p.jsxs(bm,{ref:r,className:M("relative overflow-hidden",e),...n,children:[p.jsx(DN,{className:"h-full w-full rounded-[inherit]",children:t}),p.jsx(Yi,{}),p.jsx(_N,{})]}));wm.displayName=bm.displayName;const Yi=d.forwardRef(({className:e,orientation:t="vertical",...n},r)=>p.jsx(Ui,{ref:r,orientation:t,className:M("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 border-t border-t-transparent p-[1px]",e),...n,children:p.jsx(pm,{className:"relative flex-1 rounded-full bg-border"})}));Yi.displayName=Ui.displayName;var kN=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ON=kN.reduce((e,t)=>{const n=Nn(`Primitive.${t}`),r=d.forwardRef((o,s)=>{const{asChild:i,...a}=o,l=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(l,{...a,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),LN="Separator",xm="horizontal",VN=["horizontal","vertical"],Sm=d.forwardRef((e,t)=>{const{decorative:n,orientation:r=xm,...o}=e,s=$N(r)?r:xm,a=n?{role:"none"}:{"aria-orientation":s==="vertical"?s:void 0,role:"separator"};return p.jsx(ON.div,{"data-orientation":s,...a,...o,ref:t})});Sm.displayName=LN;function $N(e){return VN.includes(e)}var Cm=Sm;const Em=d.forwardRef(({className:e,orientation:t="horizontal",...n},r)=>p.jsx(Cm,{ref:r,decorative:!0,orientation:t,className:M("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...n}));Em.displayName=Cm.displayName;const Pm=d.forwardRef(({...e},t)=>p.jsx("nav",{ref:t,"aria-label":"breadcrumb",...e}));Pm.displayName="Breadcrumb";const Tm=d.forwardRef(({className:e,...t},n)=>p.jsx("ol",{ref:n,className:M("flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5",e),...t}));Tm.displayName="BreadcrumbList";const Am=d.forwardRef(({className:e,...t},n)=>p.jsx("li",{ref:n,className:M("inline-flex items-center gap-1.5",e),...t}));Am.displayName="BreadcrumbItem";const Nm=d.forwardRef(({asChild:e,className:t,...n},r)=>{const o=e?d.Fragment:"a";return p.jsx(o,{ref:r,className:M("transition-colors hover:text-foreground",t),...n})});Nm.displayName="BreadcrumbLink";const Mm=d.forwardRef(({className:e,...t},n)=>p.jsx("span",{ref:n,role:"link","aria-disabled":"true","aria-current":"page",className:M("font-normal text-foreground",e),...t}));Mm.displayName="BreadcrumbPage";const Im=({children:e,className:t,...n})=>p.jsx("li",{role:"presentation","aria-hidden":"true",className:M("[&>svg]:size-3.5",t),...n,children:e??p.jsx(ws,{})});Im.displayName="BreadcrumbSeparator";const Dm=({className:e,...t})=>p.jsxs("span",{role:"presentation","aria-hidden":"true",className:M("flex h-9 w-9 items-center justify-center",e),...t,children:[p.jsx(lc,{className:"h-4 w-4"}),p.jsx("span",{className:"sr-only",children:"More"})]});Dm.displayName="BreadcrumbEllipsis";const _m=({className:e,...t})=>p.jsx("nav",{role:"navigation","aria-label":"pagination",className:M("mx-auto flex w-full justify-center",e),...t});_m.displayName="Pagination";const km=d.forwardRef(({className:e,...t},n)=>p.jsx("ul",{ref:n,className:M("flex flex-row items-center gap-1",e),...t}));km.displayName="PaginationContent";const Om=d.forwardRef(({className:e,...t},n)=>p.jsx("li",{ref:n,className:M("",e),...t}));Om.displayName="PaginationItem";const Ao=({className:e,isActive:t,size:n="icon",...r})=>p.jsx("a",{"aria-current":t?"page":void 0,className:M(ms({variant:t?"outline":"ghost",size:n}),e),...r});Ao.displayName="PaginationLink";const Lm=({className:e,...t})=>p.jsxs(Ao,{"aria-label":"Go to previous page",size:"default",className:M("gap-1 pl-2.5",e),...t,children:[p.jsx(kw,{className:"h-4 w-4"}),p.jsx("span",{children:"Previous"})]});Lm.displayName="PaginationPrevious";const Vm=({className:e,...t})=>p.jsxs(Ao,{"aria-label":"Go to next page",size:"default",className:M("gap-1 pr-2.5",e),...t,children:[p.jsx("span",{children:"Next"}),p.jsx(ws,{className:"h-4 w-4"})]});Vm.displayName="PaginationNext";const $m=({className:e,...t})=>p.jsxs("span",{"aria-hidden":!0,className:M("flex h-9 w-9 items-center justify-center",e),...t,children:[p.jsx(lc,{className:"h-4 w-4"}),p.jsx("span",{className:"sr-only",children:"More pages"})]});$m.displayName="PaginationEllipsis";var No="Tabs",[FN]=ge(No,[Kt]),Fm=Kt(),[RN,Xi]=FN(No),Rm=d.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:o,defaultValue:s,orientation:i="horizontal",dir:a,activationMode:l="automatic",...c}=e,u=ut(a),[f,h]=ye({prop:r,onChange:o,defaultProp:s??"",caller:No});return p.jsx(RN,{scope:n,baseId:fe(),value:f,onValueChange:h,orientation:i,dir:u,activationMode:l,children:p.jsx(j.div,{dir:u,"data-orientation":i,...c,ref:t})})});Rm.displayName=No;var Bm="TabsList",zm=d.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...o}=e,s=Xi(Bm,n),i=Fm(n);return p.jsx(Es,{asChild:!0,...i,orientation:s.orientation,dir:s.dir,loop:r,children:p.jsx(j.div,{role:"tablist","aria-orientation":s.orientation,...o,ref:t})})});zm.displayName=Bm;var Wm="TabsTrigger",Hm=d.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:o=!1,...s}=e,i=Xi(Wm,n),a=Fm(n),l=Gm(i.baseId,r),c=Km(i.baseId,r),u=r===i.value;return p.jsx(Ps,{asChild:!0,...a,focusable:!o,active:u,children:p.jsx(j.button,{type:"button",role:"tab","aria-selected":u,"aria-controls":c,"data-state":u?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:l,...s,ref:t,onMouseDown:_(e.onMouseDown,f=>{!o&&f.button===0&&f.ctrlKey===!1?i.onValueChange(r):f.preventDefault()}),onKeyDown:_(e.onKeyDown,f=>{[" ","Enter"].includes(f.key)&&i.onValueChange(r)}),onFocus:_(e.onFocus,()=>{const f=i.activationMode!=="manual";!u&&!o&&f&&i.onValueChange(r)})})})});Hm.displayName=Wm;var jm="TabsContent",Um=d.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:o,children:s,...i}=e,a=Xi(jm,n),l=Gm(a.baseId,r),c=Km(a.baseId,r),u=r===a.value,f=d.useRef(u);return d.useEffect(()=>{const h=requestAnimationFrame(()=>f.current=!1);return()=>cancelAnimationFrame(h)},[]),p.jsx(me,{present:o||u,children:({present:h})=>p.jsx(j.div,{"data-state":u?"active":"inactive","data-orientation":a.orientation,role:"tabpanel","aria-labelledby":l,hidden:!h,id:c,tabIndex:0,...i,ref:t,style:{...e.style,animationDuration:f.current?"0s":void 0},children:h&&s})})});Um.displayName=jm;function Gm(e,t){return`${e}-trigger-${t}`}function Km(e,t){return`${e}-content-${t}`}var BN=Rm,Ym=zm,Xm=Hm,qm=Um;const zN=BN,Zm=d.forwardRef(({className:e,...t},n)=>p.jsx(Ym,{ref:n,className:M("inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",e),...t}));Zm.displayName=Ym.displayName;const Jm=d.forwardRef(({className:e,...t},n)=>p.jsx(Xm,{ref:n,className:M("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm",e),...t}));Jm.displayName=Xm.displayName;const Qm=d.forwardRef(({className:e,...t},n)=>p.jsx(qm,{ref:n,className:M("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));Qm.displayName=qm.displayName;var eg=1,WN=.9,HN=.8,jN=.17,qi=.1,Zi=.999,UN=.9999,GN=.99,KN=/[\\\/_+.#"@\[\(\{&]/,YN=/[\\\/_+.#"@\[\(\{&]/g,XN=/[\s-]/,tg=/[\s-]/g;function Ji(e,t,n,r,o,s,i){if(s===t.length)return o===e.length?eg:GN;var a=`${o},${s}`;if(i[a]!==void 0)return i[a];for(var l=r.charAt(s),c=n.indexOf(l,o),u=0,f,h,m,y;c>=0;)f=Ji(e,t,n,r,c+1,s+1,i),f>u&&(c===o?f*=eg:KN.test(e.charAt(c-1))?(f*=HN,m=e.slice(o,c-1).match(YN),m&&o>0&&(f*=Math.pow(Zi,m.length))):XN.test(e.charAt(c-1))?(f*=WN,y=e.slice(o,c-1).match(tg),y&&o>0&&(f*=Math.pow(Zi,y.length))):(f*=jN,o>0&&(f*=Math.pow(Zi,c-o))),e.charAt(c)!==t.charAt(s)&&(f*=UN)),(f<qi&&n.charAt(c-1)===r.charAt(s+1)||r.charAt(s+1)===r.charAt(s)&&n.charAt(c-1)!==r.charAt(s))&&(h=Ji(e,t,n,r,c+1,s+2,i),h*qi>f&&(f=h*qi)),f>u&&(u=f),c=n.indexOf(l,c+1);return i[a]=u,u}function ng(e){return e.toLowerCase().replace(tg," ")}function qN(e,t,n){return e=n&&n.length>0?`${e+" "+n.join(" ")}`:e,Ji(e,t,ng(e),ng(t),0,0,{})}var Qn='[cmdk-group=""]',Qi='[cmdk-group-items=""]',ZN='[cmdk-group-heading=""]',rg='[cmdk-item=""]',og=`${rg}:not([aria-disabled="true"])`,ea="cmdk-item-select",dn="data-value",JN=(e,t,n)=>qN(e,t,n),sg=d.createContext(void 0),er=()=>d.useContext(sg),ig=d.createContext(void 0),ta=()=>d.useContext(ig),ag=d.createContext(void 0),lg=d.forwardRef((e,t)=>{let n=fn(()=>{var D,G;return{search:"",value:(G=(D=e.value)!=null?D:e.defaultValue)!=null?G:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),r=fn(()=>new Set),o=fn(()=>new Map),s=fn(()=>new Map),i=fn(()=>new Set),a=cg(e),{label:l,children:c,value:u,onValueChange:f,filter:h,shouldFilter:m,loop:y,disablePointerSelection:g=!1,vimBindings:v=!0,...b}=e,w=fe(),x=fe(),S=fe(),C=d.useRef(null),T=cM();kt(()=>{if(u!==void 0){let D=u.trim();n.current.value=D,A.emit()}},[u]),kt(()=>{T(6,W)},[]);let A=d.useMemo(()=>({subscribe:D=>(i.current.add(D),()=>i.current.delete(D)),snapshot:()=>n.current,setState:(D,G,R)=>{var $,K,z,X;if(!Object.is(n.current[D],G)){if(n.current[D]=G,D==="search")L(),O(),T(1,k);else if(D==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let q=document.getElementById(S);q?q.focus():($=document.getElementById(w))==null||$.focus()}if(T(7,()=>{var q;n.current.selectedItemId=(q=F())==null?void 0:q.id,A.emit()}),R||T(5,W),((K=a.current)==null?void 0:K.value)!==void 0){let q=G??"";(X=(z=a.current).onValueChange)==null||X.call(z,q);return}}A.emit()}},emit:()=>{i.current.forEach(D=>D())}}),[]),N=d.useMemo(()=>({value:(D,G,R)=>{var $;G!==(($=s.current.get(D))==null?void 0:$.value)&&(s.current.set(D,{value:G,keywords:R}),n.current.filtered.items.set(D,I(G,R)),T(2,()=>{O(),A.emit()}))},item:(D,G)=>(r.current.add(D),G&&(o.current.has(G)?o.current.get(G).add(D):o.current.set(G,new Set([D]))),T(3,()=>{L(),O(),n.current.value||k(),A.emit()}),()=>{s.current.delete(D),r.current.delete(D),n.current.filtered.items.delete(D);let R=F();T(4,()=>{L(),(R==null?void 0:R.getAttribute("id"))===D&&k(),A.emit()})}),group:D=>(o.current.has(D)||o.current.set(D,new Set),()=>{s.current.delete(D),o.current.delete(D)}),filter:()=>a.current.shouldFilter,label:l||e["aria-label"],getDisablePointerSelection:()=>a.current.disablePointerSelection,listId:w,inputId:S,labelId:x,listInnerRef:C}),[]);function I(D,G){var R,$;let K=($=(R=a.current)==null?void 0:R.filter)!=null?$:JN;return D?K(D,n.current.search,G):0}function O(){if(!n.current.search||a.current.shouldFilter===!1)return;let D=n.current.filtered.items,G=[];n.current.filtered.groups.forEach($=>{let K=o.current.get($),z=0;K.forEach(X=>{let q=D.get(X);z=Math.max(q,z)}),G.push([$,z])});let R=C.current;Y().sort(($,K)=>{var z,X;let q=$.getAttribute("id"),Z=K.getAttribute("id");return((z=D.get(Z))!=null?z:0)-((X=D.get(q))!=null?X:0)}).forEach($=>{let K=$.closest(Qi);K?K.appendChild($.parentElement===K?$:$.closest(`${Qi} > *`)):R.appendChild($.parentElement===R?$:$.closest(`${Qi} > *`))}),G.sort(($,K)=>K[1]-$[1]).forEach($=>{var K;let z=(K=C.current)==null?void 0:K.querySelector(`${Qn}[${dn}="${encodeURIComponent($[0])}"]`);z==null||z.parentElement.appendChild(z)})}function k(){let D=Y().find(R=>R.getAttribute("aria-disabled")!=="true"),G=D==null?void 0:D.getAttribute(dn);A.setState("value",G||void 0)}function L(){var D,G,R,$;if(!n.current.search||a.current.shouldFilter===!1){n.current.filtered.count=r.current.size;return}n.current.filtered.groups=new Set;let K=0;for(let z of r.current){let X=(G=(D=s.current.get(z))==null?void 0:D.value)!=null?G:"",q=($=(R=s.current.get(z))==null?void 0:R.keywords)!=null?$:[],Z=I(X,q);n.current.filtered.items.set(z,Z),Z>0&&K++}for(let[z,X]of o.current)for(let q of X)if(n.current.filtered.items.get(q)>0){n.current.filtered.groups.add(z);break}n.current.filtered.count=K}function W(){var D,G,R;let $=F();$&&(((D=$.parentElement)==null?void 0:D.firstChild)===$&&((R=(G=$.closest(Qn))==null?void 0:G.querySelector(ZN))==null||R.scrollIntoView({block:"nearest"})),$.scrollIntoView({block:"nearest"}))}function F(){var D;return(D=C.current)==null?void 0:D.querySelector(`${rg}[aria-selected="true"]`)}function Y(){var D;return Array.from(((D=C.current)==null?void 0:D.querySelectorAll(og))||[])}function U(D){let G=Y()[D];G&&A.setState("value",G.getAttribute(dn))}function H(D){var G;let R=F(),$=Y(),K=$.findIndex(X=>X===R),z=$[K+D];(G=a.current)!=null&&G.loop&&(z=K+D<0?$[$.length-1]:K+D===$.length?$[0]:$[K+D]),z&&A.setState("value",z.getAttribute(dn))}function V(D){let G=F(),R=G==null?void 0:G.closest(Qn),$;for(;R&&!$;)R=D>0?aM(R,Qn):lM(R,Qn),$=R==null?void 0:R.querySelector(og);$?A.setState("value",$.getAttribute(dn)):H(D)}let B=()=>U(Y().length-1),ee=D=>{D.preventDefault(),D.metaKey?B():D.altKey?V(1):H(1)},te=D=>{D.preventDefault(),D.metaKey?U(0):D.altKey?V(-1):H(-1)};return d.createElement(j.div,{ref:t,tabIndex:-1,...b,"cmdk-root":"",onKeyDown:D=>{var G;(G=b.onKeyDown)==null||G.call(b,D);let R=D.nativeEvent.isComposing||D.keyCode===229;if(!(D.defaultPrevented||R))switch(D.key){case"n":case"j":{v&&D.ctrlKey&&ee(D);break}case"ArrowDown":{ee(D);break}case"p":case"k":{v&&D.ctrlKey&&te(D);break}case"ArrowUp":{te(D);break}case"Home":{D.preventDefault(),U(0);break}case"End":{D.preventDefault(),B();break}case"Enter":{D.preventDefault();let $=F();if($){let K=new Event(ea);$.dispatchEvent(K)}}}}},d.createElement("label",{"cmdk-label":"",htmlFor:N.inputId,id:N.labelId,style:dM},l),Mo(e,D=>d.createElement(ig.Provider,{value:A},d.createElement(sg.Provider,{value:N},D))))}),QN=d.forwardRef((e,t)=>{var n,r;let o=fe(),s=d.useRef(null),i=d.useContext(ag),a=er(),l=cg(e),c=(r=(n=l.current)==null?void 0:n.forceMount)!=null?r:i==null?void 0:i.forceMount;kt(()=>{if(!c)return a.item(o,i==null?void 0:i.id)},[c]);let u=ug(o,s,[e.value,e.children,s],e.keywords),f=ta(),h=bt(T=>T.value&&T.value===u.current),m=bt(T=>c||a.filter()===!1?!0:T.search?T.filtered.items.get(o)>0:!0);d.useEffect(()=>{let T=s.current;if(!(!T||e.disabled))return T.addEventListener(ea,y),()=>T.removeEventListener(ea,y)},[m,e.onSelect,e.disabled]);function y(){var T,A;g(),(A=(T=l.current).onSelect)==null||A.call(T,u.current)}function g(){f.setState("value",u.current,!0)}if(!m)return null;let{disabled:v,value:b,onSelect:w,forceMount:x,keywords:S,...C}=e;return d.createElement(j.div,{ref:Se(s,t),...C,id:o,"cmdk-item":"",role:"option","aria-disabled":!!v,"aria-selected":!!h,"data-disabled":!!v,"data-selected":!!h,onPointerMove:v||a.getDisablePointerSelection()?void 0:g,onClick:v?void 0:y},e.children)}),eM=d.forwardRef((e,t)=>{let{heading:n,children:r,forceMount:o,...s}=e,i=fe(),a=d.useRef(null),l=d.useRef(null),c=fe(),u=er(),f=bt(m=>o||u.filter()===!1?!0:m.search?m.filtered.groups.has(i):!0);kt(()=>u.group(i),[]),ug(i,a,[e.value,e.heading,l]);let h=d.useMemo(()=>({id:i,forceMount:o}),[o]);return d.createElement(j.div,{ref:Se(a,t),...s,"cmdk-group":"",role:"presentation",hidden:f?void 0:!0},n&&d.createElement("div",{ref:l,"cmdk-group-heading":"","aria-hidden":!0,id:c},n),Mo(e,m=>d.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?c:void 0},d.createElement(ag.Provider,{value:h},m))))}),tM=d.forwardRef((e,t)=>{let{alwaysRender:n,...r}=e,o=d.useRef(null),s=bt(i=>!i.search);return!n&&!s?null:d.createElement(j.div,{ref:Se(o,t),...r,"cmdk-separator":"",role:"separator"})}),nM=d.forwardRef((e,t)=>{let{onValueChange:n,...r}=e,o=e.value!=null,s=ta(),i=bt(c=>c.search),a=bt(c=>c.selectedItemId),l=er();return d.useEffect(()=>{e.value!=null&&s.setState("search",e.value)},[e.value]),d.createElement(j.input,{ref:t,...r,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":l.listId,"aria-labelledby":l.labelId,"aria-activedescendant":a,id:l.inputId,type:"text",value:o?e.value:i,onChange:c=>{o||s.setState("search",c.target.value),n==null||n(c.target.value)}})}),rM=d.forwardRef((e,t)=>{let{children:n,label:r="Suggestions",...o}=e,s=d.useRef(null),i=d.useRef(null),a=bt(c=>c.selectedItemId),l=er();return d.useEffect(()=>{if(i.current&&s.current){let c=i.current,u=s.current,f,h=new ResizeObserver(()=>{f=requestAnimationFrame(()=>{let m=c.offsetHeight;u.style.setProperty("--cmdk-list-height",m.toFixed(1)+"px")})});return h.observe(c),()=>{cancelAnimationFrame(f),h.unobserve(c)}}},[]),d.createElement(j.div,{ref:Se(s,t),...o,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":a,"aria-label":r,id:l.listId},Mo(e,c=>d.createElement("div",{ref:Se(i,l.listInnerRef),"cmdk-list-sizer":""},c)))}),oM=d.forwardRef((e,t)=>{let{open:n,onOpenChange:r,overlayClassName:o,contentClassName:s,container:i,...a}=e;return d.createElement(li,{open:n,onOpenChange:r},d.createElement(ci,{container:i},d.createElement(zn,{"cmdk-overlay":"",className:o}),d.createElement(Wn,{"aria-label":e.label,"cmdk-dialog":"",className:s},d.createElement(lg,{ref:t,...a}))))}),sM=d.forwardRef((e,t)=>bt(n=>n.filtered.count===0)?d.createElement(j.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),iM=d.forwardRef((e,t)=>{let{progress:n,children:r,label:o="Loading...",...s}=e;return d.createElement(j.div,{ref:t,...s,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":o},Mo(e,i=>d.createElement("div",{"aria-hidden":!0},i)))}),Ee=Object.assign(lg,{List:rM,Item:QN,Input:nM,Group:eM,Separator:tM,Dialog:oM,Empty:sM,Loading:iM});function aM(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function lM(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function cg(e){let t=d.useRef(e);return kt(()=>{t.current=e}),t}var kt=typeof window>"u"?d.useEffect:d.useLayoutEffect;function fn(e){let t=d.useRef();return t.current===void 0&&(t.current=e()),t}function bt(e){let t=ta(),n=()=>e(t.snapshot());return d.useSyncExternalStore(t.subscribe,n,n)}function ug(e,t,n,r=[]){let o=d.useRef(),s=er();return kt(()=>{var i;let a=(()=>{var c;for(let u of n){if(typeof u=="string")return u.trim();if(typeof u=="object"&&"current"in u)return u.current?(c=u.current.textContent)==null?void 0:c.trim():o.current}})(),l=r.map(c=>c.trim());s.value(e,a,l),(i=t.current)==null||i.setAttribute(dn,a),o.current=a}),o}var cM=()=>{let[e,t]=d.useState(),n=fn(()=>new Map);return kt(()=>{n.current.forEach(r=>r()),n.current=new Map},[e]),(r,o)=>{n.current.set(r,o),t({})}};function uM(e){let t=e.type;return typeof t=="function"?t(e.props):"render"in t?t.render(e.props):e}function Mo({asChild:e,children:t},n){return e&&d.isValidElement(t)?d.cloneElement(uM(t),{ref:t.ref},n(t.props.children)):n(t)}var dM={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const na=d.forwardRef(({className:e,...t},n)=>p.jsx(Ee,{ref:n,className:M("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...t}));na.displayName=Ee.displayName;const fM=({children:e,...t})=>p.jsx(lf,{...t,children:p.jsx(di,{className:"overflow-hidden p-0 shadow-lg",children:p.jsx(na,{className:"[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:e})})}),dg=d.forwardRef(({className:e,...t},n)=>p.jsxs("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[p.jsx(Ow,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),p.jsx(Ee.Input,{ref:n,className:M("flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),...t})]}));dg.displayName=Ee.Input.displayName;const fg=d.forwardRef(({className:e,...t},n)=>p.jsx(Ee.List,{ref:n,className:M("max-h-[300px] overflow-y-auto overflow-x-hidden",e),...t}));fg.displayName=Ee.List.displayName;const pg=d.forwardRef((e,t)=>p.jsx(Ee.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));pg.displayName=Ee.Empty.displayName;const hg=d.forwardRef(({className:e,...t},n)=>p.jsx(Ee.Group,{ref:n,className:M("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",e),...t}));hg.displayName=Ee.Group.displayName;const mg=d.forwardRef(({className:e,...t},n)=>p.jsx(Ee.Separator,{ref:n,className:M("-mx-1 h-px bg-border",e),...t}));mg.displayName=Ee.Separator.displayName;const gg=d.forwardRef(({className:e,...t},n)=>p.jsx(Ee.Item,{ref:n,className:M("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none aria-selected:bg-accent aria-selected:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...t}));gg.displayName=Ee.Item.displayName;const vg=({className:e,...t})=>p.jsx("span",{className:M("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});vg.displayName="CommandShortcut";const yg=d.forwardRef(({className:e,...t},n)=>p.jsx("ol",{ref:n,className:M("relative border-l border-muted",e),...t}));yg.displayName="Timeline";const bg=d.forwardRef(({className:e,...t},n)=>p.jsx("li",{ref:n,className:M("mb-10 ml-4",e),...t}));bg.displayName="TimelineItem";const wg=d.forwardRef(({className:e,...t},n)=>p.jsx("div",{ref:n,className:M("absolute -left-1.5 mt-1.5 h-3 w-3 rounded-full border border-white bg-muted-foreground dark:border-gray-900 dark:bg-gray-700",e),...t}));wg.displayName="TimelinePoint";const xg=d.forwardRef(({className:e,...t},n)=>p.jsx("div",{ref:n,className:M("ml-4",e),...t}));xg.displayName="TimelineContent";const Sg=d.forwardRef(({className:e,...t},n)=>p.jsx("time",{ref:n,className:M("mb-1 text-sm font-normal leading-none text-muted-foreground",e),...t}));Sg.displayName="TimelineTime";const Cg=d.forwardRef(({className:e,...t},n)=>p.jsx("h3",{ref:n,className:M("text-lg font-semibold text-foreground",e),...t}));Cg.displayName="TimelineTitle";const Eg=d.forwardRef(({className:e,...t},n)=>p.jsx("p",{ref:n,className:M("mb-4 text-base font-normal text-muted-foreground",e),...t}));Eg.displayName="TimelineDescription";function pM(e,t=[]){let n=[];function r(s,i){const a=d.createContext(i);a.displayName=s+"Context";const l=n.length;n=[...n,i];const c=f=>{var b;const{scope:h,children:m,...y}=f,g=((b=h==null?void 0:h[e])==null?void 0:b[l])||a,v=d.useMemo(()=>y,Object.values(y));return p.jsx(g.Provider,{value:v,children:m})};c.displayName=s+"Provider";function u(f,h){var g;const m=((g=h==null?void 0:h[e])==null?void 0:g[l])||a,y=d.useContext(m);if(y)return y;if(i!==void 0)return i;throw new Error(`\`${f}\` must be used within \`${s}\``)}return[c,u]}const o=()=>{const s=n.map(i=>d.createContext(i));return function(a){const l=(a==null?void 0:a[e])||s;return d.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return o.scopeName=e,[r,hM(o,...t)]}function hM(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const i=r.reduce((a,{useScope:l,scopeName:c})=>{const f=l(s)[`__scope${c}`];return{...a,...f}},{});return d.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}var mM=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ra=mM.reduce((e,t)=>{const n=Nn(`Primitive.${t}`),r=d.forwardRef((o,s)=>{const{asChild:i,...a}=o,l=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(l,{...a,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),oa={exports:{}},sa={};/**
|
|
111
111
|
* @license React
|
|
112
112
|
* use-sync-external-store-shim.production.js
|
|
113
113
|
*
|
|
@@ -115,7 +115,7 @@ Defaulting to \`null\`.`}var Lh=Mh,nN=Dh;const Vh=u.forwardRef(({className:e,val
|
|
|
115
115
|
*
|
|
116
116
|
* This source code is licensed under the MIT license found in the
|
|
117
117
|
* LICENSE file in the root directory of this source tree.
|
|
118
|
-
*/var
|
|
118
|
+
*/var Pg;function gM(){if(Pg)return sa;Pg=1;var e=E;function t(f,h){return f===h&&(f!==0||1/f===1/h)||f!==f&&h!==h}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,o=e.useEffect,s=e.useLayoutEffect,i=e.useDebugValue;function a(f,h){var m=h(),y=r({inst:{value:m,getSnapshot:h}}),g=y[0].inst,v=y[1];return s(function(){g.value=m,g.getSnapshot=h,l(g)&&v({inst:g})},[f,m,h]),o(function(){return l(g)&&v({inst:g}),f(function(){l(g)&&v({inst:g})})},[f]),i(m),m}function l(f){var h=f.getSnapshot;f=f.value;try{var m=h();return!n(f,m)}catch{return!0}}function c(f,h){return h()}var u=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?c:a;return sa.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:u,sa}var ia={};/**
|
|
119
119
|
* @license React
|
|
120
120
|
* use-sync-external-store-shim.development.js
|
|
121
121
|
*
|
|
@@ -123,7 +123,7 @@ Defaulting to \`null\`.`}var Lh=Mh,nN=Dh;const Vh=u.forwardRef(({className:e,val
|
|
|
123
123
|
*
|
|
124
124
|
* This source code is licensed under the MIT license found in the
|
|
125
125
|
* LICENSE file in the root directory of this source tree.
|
|
126
|
-
*/var
|
|
126
|
+
*/var Tg;function vM(){return Tg||(Tg=1,process.env.NODE_ENV!=="production"&&function(){function e(m,y){return m===y&&(m!==0||1/m===1/y)||m!==m&&y!==y}function t(m,y){u||o.startTransition===void 0||(u=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var g=y();if(!f){var v=y();s(g,v)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),f=!0)}v=i({inst:{value:g,getSnapshot:y}});var b=v[0].inst,w=v[1];return l(function(){b.value=g,b.getSnapshot=y,n(b)&&w({inst:b})},[m,g,y]),a(function(){return n(b)&&w({inst:b}),m(function(){n(b)&&w({inst:b})})},[m]),c(g),g}function n(m){var y=m.getSnapshot;m=m.value;try{var g=y();return!s(m,g)}catch{return!0}}function r(m,y){return y()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=E,s=typeof Object.is=="function"?Object.is:e,i=o.useState,a=o.useEffect,l=o.useLayoutEffect,c=o.useDebugValue,u=!1,f=!1,h=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?r:t;ia.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:h,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),ia}process.env.NODE_ENV==="production"?oa.exports=gM():oa.exports=vM();var yM=oa.exports;function bM(){return yM.useSyncExternalStore(wM,()=>!0,()=>!1)}function wM(){return()=>{}}var aa="Avatar",[xM]=pM(aa),[SM,Ag]=xM(aa),Ng=d.forwardRef((e,t)=>{const{__scopeAvatar:n,...r}=e,[o,s]=d.useState("idle");return p.jsx(SM,{scope:n,imageLoadingStatus:o,onImageLoadingStatusChange:s,children:p.jsx(ra.span,{...r,ref:t})})});Ng.displayName=aa;var Mg="AvatarImage",Ig=d.forwardRef((e,t)=>{const{__scopeAvatar:n,src:r,onLoadingStatusChange:o=()=>{},...s}=e,i=Ag(Mg,n),a=CM(r,s),l=ce(c=>{o(c),i.onImageLoadingStatusChange(c)});return de(()=>{a!=="idle"&&l(a)},[a,l]),a==="loaded"?p.jsx(ra.img,{...s,ref:t,src:r}):null});Ig.displayName=Mg;var Dg="AvatarFallback",_g=d.forwardRef((e,t)=>{const{__scopeAvatar:n,delayMs:r,...o}=e,s=Ag(Dg,n),[i,a]=d.useState(r===void 0);return d.useEffect(()=>{if(r!==void 0){const l=window.setTimeout(()=>a(!0),r);return()=>window.clearTimeout(l)}},[r]),i&&s.imageLoadingStatus!=="loaded"?p.jsx(ra.span,{...o,ref:t}):null});_g.displayName=Dg;function kg(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function CM(e,{referrerPolicy:t,crossOrigin:n}){const r=bM(),o=d.useRef(null),s=r?(o.current||(o.current=new window.Image),o.current):null,[i,a]=d.useState(()=>kg(s,e));return de(()=>{a(kg(s,e))},[s,e]),de(()=>{const l=f=>()=>{a(f)};if(!s)return;const c=l("loaded"),u=l("error");return s.addEventListener("load",c),s.addEventListener("error",u),t&&(s.referrerPolicy=t),typeof n=="string"&&(s.crossOrigin=n),()=>{s.removeEventListener("load",c),s.removeEventListener("error",u)}},[s,n,t]),i}var Og=Ng,Lg=Ig,Vg=_g;const $g=d.forwardRef(({className:e,...t},n)=>p.jsx(Og,{ref:n,className:M("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));$g.displayName=Og.displayName;const Fg=d.forwardRef(({className:e,...t},n)=>p.jsx(Lg,{ref:n,className:M("aspect-square h-full w-full",e),...t}));Fg.displayName=Lg.displayName;const Rg=d.forwardRef(({className:e,...t},n)=>p.jsx(Vg,{ref:n,className:M("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));Rg.displayName=Vg.displayName;const Bg=Ut("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function EM({className:e,variant:t,...n}){return p.jsx("div",{className:M(Bg({variant:t}),e),...n})}const la=E.createContext({});function wt(e){const t=E.useRef(null);return t.current===null&&(t.current=e()),t.current}const Io=E.createContext(null),pn=E.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class PM extends d.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function TM({children:e,isPresent:t}){const n=E.useId(),r=E.useRef(null),o=E.useRef({width:0,height:0,top:0,left:0}),{nonce:s}=E.useContext(pn);return E.useInsertionEffect(()=>{const{width:i,height:a,top:l,left:c}=o.current;if(t||!r.current||!i||!a)return;r.current.dataset.motionPopId=n;const u=document.createElement("style");return s&&(u.nonce=s),document.head.appendChild(u),u.sheet&&u.sheet.insertRule(`
|
|
127
127
|
[data-motion-pop-id="${n}"] {
|
|
128
128
|
position: absolute !important;
|
|
129
129
|
width: ${i}px !important;
|
|
@@ -131,13 +131,13 @@ Defaulting to \`null\`.`}var Lh=Mh,nN=Dh;const Vh=u.forwardRef(({className:e,val
|
|
|
131
131
|
top: ${l}px !important;
|
|
132
132
|
left: ${c}px !important;
|
|
133
133
|
}
|
|
134
|
-
`),()=>{document.head.removeChild(d)}},[t]),p.jsx(DM,{isPresent:t,childRef:r,sizeRef:o,children:u.cloneElement(e,{ref:r})})}const kM=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:s,mode:i})=>{const a=Et(OM),l=P.useId(),c=P.useCallback(f=>{a.set(f,!0);for(const h of a.values())if(!h)return;r&&r()},[a,r]),d=P.useMemo(()=>({id:l,initial:t,isPresent:n,custom:o,onExitComplete:c,register:f=>(a.set(f,!1),()=>a.delete(f))}),s?[Math.random(),c]:[n,c]);return P.useMemo(()=>{a.forEach((f,h)=>a.set(h,!1))},[n]),u.useEffect(()=>{!n&&!a.size&&r&&r()},[n]),i==="popLayout"&&(e=p.jsx(_M,{isPresent:n,children:e})),p.jsx(Oo.Provider,{value:d,children:e})};function OM(){return new Map}function Zg(e=!0){const t=P.useContext(Oo);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:o}=t,s=P.useId();P.useEffect(()=>{e&&o(s)},[e]);const i=P.useCallback(()=>e&&r&&r(s),[s,r,e]);return!n&&r?[!1,i]:[!0]}const Lo=e=>e.key||"";function Jg(e){const t=[];return P.Children.forEach(e,n=>{P.isValidElement(n)&&t.push(n)}),t}const pa=typeof window<"u",nr=pa?P.useLayoutEffect:P.useEffect,Vo=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:o=!0,mode:s="sync",propagate:i=!1})=>{const[a,l]=Zg(i),c=P.useMemo(()=>Jg(e),[e]),d=i&&!a?[]:c.map(Lo),f=P.useRef(!0),h=P.useRef(c),m=Et(()=>new Map),[y,g]=P.useState(c),[v,b]=P.useState(c);nr(()=>{f.current=!1,h.current=c;for(let S=0;S<v.length;S++){const C=Lo(v[S]);d.includes(C)?m.delete(C):m.get(C)!==!0&&m.set(C,!1)}},[v,d.length,d.join("-")]);const w=[];if(c!==y){let S=[...c];for(let C=0;C<v.length;C++){const T=v[C],A=Lo(T);d.includes(A)||(S.splice(C,0,T),w.push(T))}s==="wait"&&w.length&&(S=w),b(Jg(S)),g(c);return}process.env.NODE_ENV!=="production"&&s==="wait"&&v.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);const{forceRender:x}=P.useContext(fa);return p.jsx(p.Fragment,{children:v.map(S=>{const C=Lo(S),T=i&&!a?!1:c===v||d.includes(C),A=()=>{if(m.has(C))m.set(C,!0);else return;let N=!0;m.forEach(I=>{I||(N=!1)}),N&&(x==null||x(),b(h.current),i&&(l==null||l()),r&&r())};return p.jsx(kM,{isPresent:T,initial:!f.current||n?void 0:!1,custom:T?void 0:t,presenceAffectsLayout:o,mode:s,onExitComplete:T?void 0:A,children:S},C)})})},Ee=e=>e;let $t=Ee,Qe=Ee;process.env.NODE_ENV!=="production"&&($t=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},Qe=(e,t)=>{if(!e)throw new Error(t)});function ha(e){let t;return()=>(t===void 0&&(t=e()),t)}const Pt=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},He=e=>e*1e3,et=e=>e/1e3,LM={useManualTiming:!1};function VM(e){let t=new Set,n=new Set,r=!1,o=!1;const s=new WeakSet;let i={delta:0,timestamp:0,isProcessing:!1};function a(c){s.has(c)&&(l.schedule(c),e()),c(i)}const l={schedule:(c,d=!1,f=!1)=>{const m=f&&r?t:n;return d&&s.add(c),m.has(c)||m.add(c),c},cancel:c=>{n.delete(c),s.delete(c)},process:c=>{if(i=c,r){o=!0;return}r=!0,[t,n]=[n,t],t.forEach(a),t.clear(),r=!1,o&&(o=!1,l.process(c))}};return l}const $o=["read","resolveKeyframes","update","preRender","render","postRender"],$M=40;function Qg(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,i=$o.reduce((b,w)=>(b[w]=VM(s),b),{}),{read:a,resolveKeyframes:l,update:c,preRender:d,render:f,postRender:h}=i,m=()=>{const b=performance.now();n=!1,o.delta=r?1e3/60:Math.max(Math.min(b-o.timestamp,$M),1),o.timestamp=b,o.isProcessing=!0,a.process(o),l.process(o),c.process(o),d.process(o),f.process(o),h.process(o),o.isProcessing=!1,n&&t&&(r=!1,e(m))},y=()=>{n=!0,r=!0,o.isProcessing||e(m)};return{schedule:$o.reduce((b,w)=>{const x=i[w];return b[w]=(S,C=!1,T=!1)=>(n||y(),x.schedule(S,C,T)),b},{}),cancel:b=>{for(let w=0;w<$o.length;w++)i[$o[w]].cancel(b)},state:o,steps:i}}const{schedule:ie,cancel:Le,state:be,steps:ma}=Qg(typeof requestAnimationFrame<"u"?requestAnimationFrame:Ee,!0),ev=P.createContext({strict:!1}),tv={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},gn={};for(const e in tv)gn[e]={isEnabled:t=>tv[e].some(n=>!!t[n])};function FM(e){for(const t in e)gn[t]={...gn[t],...e[t]}}const RM=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Fo(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||RM.has(e)}let nv=e=>!Fo(e);function BM(e){e&&(nv=t=>t.startsWith("on")?!Fo(t):e(t))}try{BM(require("@emotion/is-prop-valid").default)}catch{}function zM(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(nv(o)||n===!0&&Fo(o)||!t&&!Fo(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}const rv=new Set;function rr(e,t,n){e||rv.has(t)||(console.warn(t),rv.add(t))}function WM(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>(process.env.NODE_ENV!=="production"&&rr(!1,"motion() is deprecated. Use motion.create() instead."),e(...r));return new Proxy(n,{get:(r,o)=>o==="create"?e:(t.has(o)||t.set(o,e(o)),t.get(o))})}const Ro=P.createContext({});function or(e){return typeof e=="string"||Array.isArray(e)}function Bo(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const ga=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],va=["initial",...ga];function zo(e){return Bo(e.animate)||va.some(t=>or(e[t]))}function ov(e){return!!(zo(e)||e.variants)}function HM(e,t){if(zo(e)){const{initial:n,animate:r}=e;return{initial:n===!1||or(n)?n:void 0,animate:or(r)?r:void 0}}return e.inherit!==!1?t:{}}function jM(e){const{initial:t,animate:n}=HM(e,P.useContext(Ro));return P.useMemo(()=>({initial:t,animate:n}),[sv(t),sv(n)])}function sv(e){return Array.isArray(e)?e.join(" "):e}const UM=Symbol.for("motionComponentSymbol");function vn(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function GM(e,t,n){return P.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):vn(n)&&(n.current=r))},[t])}const ya=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),iv="data-"+ya("framerAppearId"),{schedule:ba}=Qg(queueMicrotask,!1),av=P.createContext({});function KM(e,t,n,r,o){var s,i;const{visualElement:a}=P.useContext(Ro),l=P.useContext(ev),c=P.useContext(Oo),d=P.useContext(mn).reducedMotion,f=P.useRef(null);r=r||l.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:a,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:d}));const h=f.current,m=P.useContext(av);h&&!h.projection&&o&&(h.type==="html"||h.type==="svg")&&YM(f.current,n,o,m);const y=P.useRef(!1);P.useInsertionEffect(()=>{h&&y.current&&h.update(n,c)});const g=n[iv],v=P.useRef(!!g&&!(!((s=window.MotionHandoffIsComplete)===null||s===void 0)&&s.call(window,g))&&((i=window.MotionHasOptimisedAnimation)===null||i===void 0?void 0:i.call(window,g)));return nr(()=>{h&&(y.current=!0,window.MotionIsMounted=!0,h.updateFeatures(),ba.render(h.render),v.current&&h.animationState&&h.animationState.animateChanges())}),P.useEffect(()=>{h&&(!v.current&&h.animationState&&h.animationState.animateChanges(),v.current&&(queueMicrotask(()=>{var b;(b=window.MotionHandoffMarkAsComplete)===null||b===void 0||b.call(window,g)}),v.current=!1))}),h}function YM(e,t,n,r){const{layoutId:o,layout:s,drag:i,dragConstraints:a,layoutScroll:l,layoutRoot:c}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:lv(e.parent)),e.projection.setOptions({layoutId:o,layout:s,alwaysMeasureLayout:!!i||a&&vn(a),visualElement:e,animationType:typeof s=="string"?s:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:c})}function lv(e){if(e)return e.options.allowProjection!==!1?e.projection:lv(e.parent)}function XM({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:o}){var s,i;e&&FM(e);function a(c,d){let f;const h={...P.useContext(mn),...c,layoutId:qM(c)},{isStatic:m}=h,y=jM(c),g=r(c,m);if(!m&&pa){ZM(h,e);const v=JM(h);f=v.MeasureLayout,y.visualElement=KM(o,g,h,t,v.ProjectionNode)}return p.jsxs(Ro.Provider,{value:y,children:[f&&y.visualElement?p.jsx(f,{visualElement:y.visualElement,...h}):null,n(o,c,GM(g,y.visualElement,d),g,m,y.visualElement)]})}a.displayName=`motion.${typeof o=="string"?o:`create(${(i=(s=o.displayName)!==null&&s!==void 0?s:o.name)!==null&&i!==void 0?i:""})`}`;const l=P.forwardRef(a);return l[UM]=o,l}function qM({layoutId:e}){const t=P.useContext(fa).id;return t&&e!==void 0?t+"-"+e:e}function ZM(e,t){const n=P.useContext(ev).strict;if(process.env.NODE_ENV!=="production"&&t&&n){const r="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?$t(!1,r):Qe(!1,r)}}function JM(e){const{drag:t,layout:n}=gn;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const QM=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function wa(e){return typeof e!="string"||e.includes("-")?!1:!!(QM.indexOf(e)>-1||/[A-Z]/u.test(e))}function cv(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function xa(e,t,n,r){if(typeof t=="function"){const[o,s]=cv(r);t=t(n!==void 0?n:e.custom,o,s)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[o,s]=cv(r);t=t(n!==void 0?n:e.custom,o,s)}return t}const Sa=e=>Array.isArray(e),e1=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),t1=e=>Sa(e)?e[e.length-1]||0:e,me=e=>!!(e&&e.getVelocity);function Wo(e){const t=me(e)?e.get():e;return e1(t)?t.toValue():t}function n1({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,o,s){const i={latestValues:r1(r,o,s,e),renderState:t()};return n&&(i.onMount=a=>n({props:r,current:a,...i}),i.onUpdate=a=>n(a)),i}const uv=e=>(t,n)=>{const r=P.useContext(Ro),o=P.useContext(Oo),s=()=>n1(e,t,r,o);return n?s():Et(s)};function r1(e,t,n,r){const o={},s=r(e,{});for(const h in s)o[h]=Wo(s[h]);let{initial:i,animate:a}=e;const l=zo(e),c=ov(e);t&&c&&!l&&e.inherit!==!1&&(i===void 0&&(i=t.initial),a===void 0&&(a=t.animate));let d=n?n.initial===!1:!1;d=d||i===!1;const f=d?a:i;if(f&&typeof f!="boolean"&&!Bo(f)){const h=Array.isArray(f)?f:[f];for(let m=0;m<h.length;m++){const y=xa(e,h[m]);if(y){const{transitionEnd:g,transition:v,...b}=y;for(const w in b){let x=b[w];if(Array.isArray(x)){const S=d?x.length-1:0;x=x[S]}x!==null&&(o[w]=x)}for(const w in g)o[w]=g[w]}}}return o}const yn=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ft=new Set(yn),dv=e=>t=>typeof t=="string"&&t.startsWith(e),fv=dv("--"),o1=dv("var(--"),Ca=e=>o1(e)?s1.test(e.split("/*")[0].trim()):!1,s1=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,pv=(e,t)=>t&&typeof e=="number"?t.transform(e):e,tt=(e,t,n)=>n>t?t:n<e?e:n,bn={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},sr={...bn,transform:e=>tt(0,1,e)},Ho={...bn,default:1},ir=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Tt=ir("deg"),nt=ir("%"),te=ir("px"),i1=ir("vh"),a1=ir("vw"),hv={...nt,parse:e=>nt.parse(e)/100,transform:e=>nt.transform(e*100)},l1={borderWidth:te,borderTopWidth:te,borderRightWidth:te,borderBottomWidth:te,borderLeftWidth:te,borderRadius:te,radius:te,borderTopLeftRadius:te,borderTopRightRadius:te,borderBottomRightRadius:te,borderBottomLeftRadius:te,width:te,maxWidth:te,height:te,maxHeight:te,top:te,right:te,bottom:te,left:te,padding:te,paddingTop:te,paddingRight:te,paddingBottom:te,paddingLeft:te,margin:te,marginTop:te,marginRight:te,marginBottom:te,marginLeft:te,backgroundPositionX:te,backgroundPositionY:te},c1={rotate:Tt,rotateX:Tt,rotateY:Tt,rotateZ:Tt,scale:Ho,scaleX:Ho,scaleY:Ho,scaleZ:Ho,skew:Tt,skewX:Tt,skewY:Tt,distance:te,translateX:te,translateY:te,translateZ:te,x:te,y:te,z:te,perspective:te,transformPerspective:te,opacity:sr,originX:hv,originY:hv,originZ:te},mv={...bn,transform:Math.round},Ea={...l1,...c1,zIndex:mv,size:te,fillOpacity:sr,strokeOpacity:sr,numOctaves:mv},u1={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},d1=yn.length;function f1(e,t,n){let r="",o=!0;for(let s=0;s<d1;s++){const i=yn[s],a=e[i];if(a===void 0)continue;let l=!0;if(typeof a=="number"?l=a===(i.startsWith("scale")?1:0):l=parseFloat(a)===0,!l||n){const c=pv(a,Ea[i]);if(!l){o=!1;const d=u1[i]||i;r+=`${d}(${c}) `}n&&(t[i]=c)}}return r=r.trim(),n?r=n(t,o?"":r):o&&(r="none"),r}function Pa(e,t,n){const{style:r,vars:o,transformOrigin:s}=e;let i=!1,a=!1;for(const l in t){const c=t[l];if(Ft.has(l)){i=!0;continue}else if(fv(l)){o[l]=c;continue}else{const d=pv(c,Ea[l]);l.startsWith("origin")?(a=!0,s[l]=d):r[l]=d}}if(t.transform||(i||n?r.transform=f1(t,e.transform,n):r.transform&&(r.transform="none")),a){const{originX:l="50%",originY:c="50%",originZ:d=0}=s;r.transformOrigin=`${l} ${c} ${d}`}}const p1={offset:"stroke-dashoffset",array:"stroke-dasharray"},h1={offset:"strokeDashoffset",array:"strokeDasharray"};function m1(e,t,n=1,r=0,o=!0){e.pathLength=1;const s=o?p1:h1;e[s.offset]=te.transform(-r);const i=te.transform(t),a=te.transform(n);e[s.array]=`${i} ${a}`}function gv(e,t,n){return typeof e=="string"?e:te.transform(t+n*e)}function g1(e,t,n){const r=gv(t,e.x,e.width),o=gv(n,e.y,e.height);return`${r} ${o}`}function Ta(e,{attrX:t,attrY:n,attrScale:r,originX:o,originY:s,pathLength:i,pathSpacing:a=1,pathOffset:l=0,...c},d,f){if(Pa(e,c,f),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:h,style:m,dimensions:y}=e;h.transform&&(y&&(m.transform=h.transform),delete h.transform),y&&(o!==void 0||s!==void 0||m.transform)&&(m.transformOrigin=g1(y,o!==void 0?o:.5,s!==void 0?s:.5)),t!==void 0&&(h.x=t),n!==void 0&&(h.y=n),r!==void 0&&(h.scale=r),i!==void 0&&m1(h,i,a,l,!1)}const Aa=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),vv=()=>({...Aa(),attrs:{}}),Na=e=>typeof e=="string"&&e.toLowerCase()==="svg";function yv(e,{style:t,vars:n},r,o){Object.assign(e.style,t,o&&o.getProjectionStyles(r));for(const s in n)e.style.setProperty(s,n[s])}const bv=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function wv(e,t,n,r){yv(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(bv.has(o)?o:ya(o),t.attrs[o])}const jo={};function v1(e){Object.assign(jo,e)}function xv(e,{layout:t,layoutId:n}){return Ft.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!jo[e]||e==="opacity")}function Ma(e,t,n){var r;const{style:o}=e,s={};for(const i in o)(me(o[i])||t.style&&me(t.style[i])||xv(i,e)||((r=n==null?void 0:n.getValue(i))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(s[i]=o[i]);return s}function Sv(e,t,n){const r=Ma(e,t,n);for(const o in e)if(me(e[o])||me(t[o])){const s=yn.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;r[s]=e[o]}return r}function y1(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}const Cv=["x","y","width","height","cx","cy","r"],b1={useVisualState:uv({scrapeMotionValuesFromProps:Sv,createRenderState:vv,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:o})=>{if(!n)return;let s=!!e.drag;if(!s){for(const a in o)if(Ft.has(a)){s=!0;break}}if(!s)return;let i=!t;if(t)for(let a=0;a<Cv.length;a++){const l=Cv[a];e[l]!==t[l]&&(i=!0)}i&&ie.read(()=>{y1(n,r),ie.render(()=>{Ta(r,o,Na(n.tagName),e.transformTemplate),wv(n,r)})})}})},w1={useVisualState:uv({scrapeMotionValuesFromProps:Ma,createRenderState:Aa})};function Ev(e,t,n){for(const r in t)!me(t[r])&&!xv(r,n)&&(e[r]=t[r])}function x1({transformTemplate:e},t){return P.useMemo(()=>{const n=Aa();return Pa(n,t,e),Object.assign({},n.vars,n.style)},[t])}function S1(e,t){const n=e.style||{},r={};return Ev(r,n,e),Object.assign(r,x1(e,t)),r}function C1(e,t){const n={},r=S1(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}function E1(e,t,n,r){const o=P.useMemo(()=>{const s=vv();return Ta(s,t,Na(r),e.transformTemplate),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};Ev(s,e.style,e),o.style={...s,...o.style}}return o}function P1(e=!1){return(n,r,o,{latestValues:s},i)=>{const l=(wa(n)?E1:C1)(r,s,i,n),c=zM(r,typeof n=="string",e),d=n!==P.Fragment?{...c,...l,ref:o}:{},{children:f}=r,h=P.useMemo(()=>me(f)?f.get():f,[f]);return P.createElement(n,{...d,children:h})}}function T1(e,t){return function(r,{forwardMotionProps:o}={forwardMotionProps:!1}){const i={...wa(r)?b1:w1,preloadedFeatures:e,useRender:P1(o),createVisualElement:t,Component:r};return XM(i)}}function Pv(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function Uo(e,t,n){const r=e.getProps();return xa(r,t,n!==void 0?n:r.custom,e)}const Tv=ha(()=>window.ScrollTimeline!==void 0);class A1{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t,n){const r=this.animations.map(o=>{if(Tv()&&o.attachTimeline)return o.attachTimeline(t);if(typeof n=="function")return n(o)});return()=>{r.forEach((o,s)=>{o&&o(),this.animations[s].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class Av extends A1{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}function Ia(e,t){return e?e[t]||e.default||e:void 0}const Go=2e4;function Da(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Go;)t+=n,r=e.next(t);return t>=Go?1/0:t}function N1(e,t=100,n){const r=n({...e,keyframes:[0,t]}),o=Math.min(Da(r),Go);return{type:"keyframes",ease:s=>r.next(o*s).value/t,duration:et(o)}}function Ko(e){return typeof e=="function"}function Nv(e,t){e.timeline=t,e.onfinish=null}const _a=e=>Array.isArray(e)&&typeof e[0]=="number",M1={linearEasing:void 0};function I1(e,t){const n=ha(e);return()=>{var r;return(r=M1[t])!==null&&r!==void 0?r:n()}}const Yo=I1(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Mv=(e,t,n=10)=>{let r="";const o=Math.max(Math.round(t/n),2);for(let s=0;s<o;s++)r+=e(Pt(0,o-1,s))+", ";return`linear(${r.substring(0,r.length-2)})`};function Iv(e){return!!(typeof e=="function"&&Yo()||!e||typeof e=="string"&&(e in ka||Yo())||_a(e)||Array.isArray(e)&&e.every(Iv))}const ar=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,ka={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ar([0,.65,.55,1]),circOut:ar([.55,0,1,.45]),backIn:ar([.31,.01,.66,-.59]),backOut:ar([.33,1.53,.69,.99])};function Dv(e,t){if(e)return typeof e=="function"&&Yo()?Mv(e,t):_a(e)?ar(e):Array.isArray(e)?e.map(n=>Dv(n,t)||ka.easeOut):ka[e]}const je={x:!1,y:!1};function _v(){return je.x||je.y}function Xo(e,t,n){var r;if(e instanceof Element)return[e];if(typeof e=="string"){let o=document;t&&(o=t.current);const s=(r=n==null?void 0:n[e])!==null&&r!==void 0?r:o.querySelectorAll(e);return s?Array.from(s):[]}return Array.from(e)}function kv(e,t){const n=Xo(e),r=new AbortController,o={passive:!0,...t,signal:r.signal};return[n,o,()=>r.abort()]}function Ov(e){return t=>{t.pointerType==="touch"||_v()||e(t)}}function D1(e,t,n={}){const[r,o,s]=kv(e,n),i=Ov(a=>{const{target:l}=a,c=t(a);if(typeof c!="function"||!l)return;const d=Ov(f=>{c(f),l.removeEventListener("pointerleave",d)});l.addEventListener("pointerleave",d,o)});return r.forEach(a=>{a.addEventListener("pointerenter",i,o)}),s}const Lv=(e,t)=>t?e===t?!0:Lv(e,t.parentElement):!1,Oa=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,_1=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function k1(e){return _1.has(e.tagName)||e.tabIndex!==-1}const lr=new WeakSet;function Vv(e){return t=>{t.key==="Enter"&&e(t)}}function La(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const O1=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=Vv(()=>{if(lr.has(n))return;La(n,"down");const o=Vv(()=>{La(n,"up")}),s=()=>La(n,"cancel");n.addEventListener("keyup",o,t),n.addEventListener("blur",s,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function $v(e){return Oa(e)&&!_v()}function L1(e,t,n={}){const[r,o,s]=kv(e,n),i=a=>{const l=a.currentTarget;if(!$v(a)||lr.has(l))return;lr.add(l);const c=t(a),d=(m,y)=>{window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",h),!(!$v(m)||!lr.has(l))&&(lr.delete(l),typeof c=="function"&&c(m,{success:y}))},f=m=>{d(m,n.useGlobalTarget||Lv(l,m.target))},h=m=>{d(m,!1)};window.addEventListener("pointerup",f,o),window.addEventListener("pointercancel",h,o)};return r.forEach(a=>{!k1(a)&&a.getAttribute("tabindex")===null&&(a.tabIndex=0),(n.useGlobalTarget?window:a).addEventListener("pointerdown",i,o),a.addEventListener("focus",c=>O1(c,o),o)}),s}function V1(e){return e==="x"||e==="y"?je[e]?null:(je[e]=!0,()=>{je[e]=!1}):je.x||je.y?null:(je.x=je.y=!0,()=>{je.x=je.y=!1})}const Fv=new Set(["width","height","top","left","right","bottom",...yn]);let qo;function $1(){qo=void 0}const rt={now:()=>(qo===void 0&&rt.set(be.isProcessing||LM.useManualTiming?be.timestamp:performance.now()),qo),set:e=>{qo=e,queueMicrotask($1)}};function Va(e,t){e.indexOf(t)===-1&&e.push(t)}function Zo(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class $a{constructor(){this.subscriptions=[]}add(t){return Va(this.subscriptions,t),()=>Zo(this.subscriptions,t)}notify(t,n,r){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,n,r);else for(let s=0;s<o;s++){const i=this.subscriptions[s];i&&i(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function Fa(e,t){return t?e*(1e3/t):0}const Rv=30,F1=e=>!isNaN(parseFloat(e)),cr={current:void 0};class R1{constructor(t,n={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,o=!0)=>{const s=rt.now();this.updatedAt!==s&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),o&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=rt.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=F1(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&rr(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new $a);const r=this.events[t].add(n);return t==="change"?()=>{r(),ie.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return cr.current&&cr.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=rt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Rv)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Rv);return Fa(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function ot(e,t){return new R1(e,t)}function B1(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,ot(n))}function z1(e,t){const n=Uo(e,t);let{transitionEnd:r={},transition:o={},...s}=n||{};s={...s,...r};for(const i in s){const a=t1(s[i]);B1(e,i,a)}}function W1(e){return!!(me(e)&&e.add)}function Ra(e,t){const n=e.getValue("willChange");if(W1(n))return n.add(t)}function Bv(e){return e.props[iv]}const zv=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,H1=1e-7,j1=12;function U1(e,t,n,r,o){let s,i,a=0;do i=t+(n-t)/2,s=zv(i,r,o)-e,s>0?n=i:t=i;while(Math.abs(s)>H1&&++a<j1);return i}function ur(e,t,n,r){if(e===t&&n===r)return Ee;const o=s=>U1(s,0,1,e,n);return s=>s===0||s===1?s:zv(o(s),t,r)}const Wv=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Hv=e=>t=>1-e(1-t),jv=ur(.33,1.53,.69,.99),Ba=Hv(jv),Uv=Wv(Ba),Gv=e=>(e*=2)<1?.5*Ba(e):.5*(2-Math.pow(2,-10*(e-1))),za=e=>1-Math.sin(Math.acos(e)),Kv=Hv(za),Yv=Wv(za),Xv=e=>/^0[^.\s]+$/u.test(e);function G1(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Xv(e):!0}const dr=e=>Math.round(e*1e5)/1e5,Wa=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function K1(e){return e==null}const Y1=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Ha=(e,t)=>n=>!!(typeof n=="string"&&Y1.test(n)&&n.startsWith(e)||t&&!K1(n)&&Object.prototype.hasOwnProperty.call(n,t)),qv=(e,t,n)=>r=>{if(typeof r!="string")return r;const[o,s,i,a]=r.match(Wa);return{[e]:parseFloat(o),[t]:parseFloat(s),[n]:parseFloat(i),alpha:a!==void 0?parseFloat(a):1}},X1=e=>tt(0,255,e),ja={...bn,transform:e=>Math.round(X1(e))},Rt={test:Ha("rgb","red"),parse:qv("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+ja.transform(e)+", "+ja.transform(t)+", "+ja.transform(n)+", "+dr(sr.transform(r))+")"};function q1(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}const Ua={test:Ha("#"),parse:q1,transform:Rt.transform},wn={test:Ha("hsl","hue"),parse:qv("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+nt.transform(dr(t))+", "+nt.transform(dr(n))+", "+dr(sr.transform(r))+")"},Se={test:e=>Rt.test(e)||Ua.test(e)||wn.test(e),parse:e=>Rt.test(e)?Rt.parse(e):wn.test(e)?wn.parse(e):Ua.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Rt.transform(e):wn.transform(e)},Z1=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function J1(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Wa))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(Z1))===null||n===void 0?void 0:n.length)||0)>0}const Zv="number",Jv="color",Q1="var",eI="var(",Qv="${}",tI=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function fr(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let s=0;const a=t.replace(tI,l=>(Se.test(l)?(r.color.push(s),o.push(Jv),n.push(Se.parse(l))):l.startsWith(eI)?(r.var.push(s),o.push(Q1),n.push(l)):(r.number.push(s),o.push(Zv),n.push(parseFloat(l))),++s,Qv)).split(Qv);return{values:n,split:a,indexes:r,types:o}}function ey(e){return fr(e).values}function ty(e){const{split:t,types:n}=fr(e),r=t.length;return o=>{let s="";for(let i=0;i<r;i++)if(s+=t[i],o[i]!==void 0){const a=n[i];a===Zv?s+=dr(o[i]):a===Jv?s+=Se.transform(o[i]):s+=o[i]}return s}}const nI=e=>typeof e=="number"?0:e;function rI(e){const t=ey(e);return ty(e)(t.map(nI))}const At={test:J1,parse:ey,createTransformer:ty,getAnimatableNone:rI},oI=new Set(["brightness","contrast","saturate","opacity"]);function sI(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Wa)||[];if(!r)return e;const o=n.replace(r,"");let s=oI.has(t)?1:0;return r!==n&&(s*=100),t+"("+s+o+")"}const iI=/\b([a-z-]*)\(.*?\)/gu,Ga={...At,getAnimatableNone:e=>{const t=e.match(iI);return t?t.map(sI).join(" "):e}},aI={...Ea,color:Se,backgroundColor:Se,outlineColor:Se,fill:Se,stroke:Se,borderColor:Se,borderTopColor:Se,borderRightColor:Se,borderBottomColor:Se,borderLeftColor:Se,filter:Ga,WebkitFilter:Ga},Ka=e=>aI[e];function ny(e,t){let n=Ka(e);return n!==Ga&&(n=At),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const lI=new Set(["auto","none","0"]);function cI(e,t,n){let r=0,o;for(;r<e.length&&!o;){const s=e[r];typeof s=="string"&&!lI.has(s)&&fr(s).values.length&&(o=e[r]),r++}if(o&&n)for(const s of t)e[s]=ny(n,o)}const ry=e=>e===bn||e===te,oy=(e,t)=>parseFloat(e.split(", ")[t]),sy=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/u);if(o)return oy(o[1],t);{const s=r.match(/^matrix\((.+)\)$/u);return s?oy(s[1],e):0}},uI=new Set(["x","y","z"]),dI=yn.filter(e=>!uI.has(e));function fI(e){const t=[];return dI.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const xn={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:sy(4,13),y:sy(5,14)};xn.translateX=xn.x,xn.translateY=xn.y;const Bt=new Set;let Ya=!1,Xa=!1;function iy(){if(Xa){const e=Array.from(Bt).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const o=fI(r);o.length&&(n.set(r,o),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const o=n.get(r);o&&o.forEach(([s,i])=>{var a;(a=r.getValue(s))===null||a===void 0||a.set(i)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Xa=!1,Ya=!1,Bt.forEach(e=>e.complete()),Bt.clear()}function ay(){Bt.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Xa=!0)})}function pI(){ay(),iy()}class qa{constructor(t,n,r,o,s,i=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=o,this.element=s,this.isAsync=i}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Bt.add(this),Ya||(Ya=!0,ie.read(ay),ie.resolveKeyframes(iy))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:o}=this;for(let s=0;s<t.length;s++)if(t[s]===null)if(s===0){const i=o==null?void 0:o.get(),a=t[t.length-1];if(i!==void 0)t[0]=i;else if(r&&n){const l=r.readValue(n,a);l!=null&&(t[0]=l)}t[0]===void 0&&(t[0]=a),o&&i===void 0&&o.set(t[0])}else t[s]=t[s-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Bt.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Bt.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const ly=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),hI=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function mI(e){const t=hI.exec(e);if(!t)return[,];const[,n,r,o]=t;return[`--${n??r}`,o]}const gI=4;function cy(e,t,n=1){Qe(n<=gI,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,o]=mI(e);if(!r)return;const s=window.getComputedStyle(t).getPropertyValue(r);if(s){const i=s.trim();return ly(i)?parseFloat(i):i}return Ca(o)?cy(o,t,n+1):o}const uy=e=>t=>t.test(e),dy=[bn,te,nt,Tt,a1,i1,{test:e=>e==="auto",parse:e=>e}],fy=e=>dy.find(uy(e));class py extends qa{constructor(t,n,r,o,s){super(t,n,r,o,s,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<t.length;l++){let c=t[l];if(typeof c=="string"&&(c=c.trim(),Ca(c))){const d=cy(c,n.current);d!==void 0&&(t[l]=d),l===t.length-1&&(this.finalKeyframe=c)}}if(this.resolveNoneKeyframes(),!Fv.has(r)||t.length!==2)return;const[o,s]=t,i=fy(o),a=fy(s);if(i!==a)if(ry(i)&&ry(a))for(let l=0;l<t.length;l++){const c=t[l];typeof c=="string"&&(t[l]=parseFloat(c))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let o=0;o<t.length;o++)G1(t[o])&&r.push(o);r.length&&cI(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=xn[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const o=n[n.length-1];o!==void 0&&t.getValue(r,o).jump(o,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:o}=this;if(!n||!n.current)return;const s=n.getValue(r);s&&s.jump(this.measuredOrigin,!1);const i=o.length-1,a=o[i];o[i]=xn[r](n.measureViewportBox(),window.getComputedStyle(n.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([l,c])=>{n.getValue(l).set(c)}),this.resolveNoneKeyframes()}}const hy=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(At.test(e)||e==="0")&&!e.startsWith("url("));function vI(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function yI(e,t,n,r){const o=e[0];if(o===null)return!1;if(t==="display"||t==="visibility")return!0;const s=e[e.length-1],i=hy(o,t),a=hy(s,t);return $t(i===a,`You are trying to animate ${t} from "${o}" to "${s}". ${o} is not an animatable value - to enable this animation set ${o} to a value animatable to ${s} via the \`style\` property.`),!i||!a?!1:vI(e)||(n==="spring"||Ko(n))&&r}const bI=e=>e!==null;function Jo(e,{repeat:t,repeatType:n="loop"},r){const o=e.filter(bI),s=t&&n!=="loop"&&t%2===1?0:o.length-1;return!s||r===void 0?o[s]:r}const wI=40;class my{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:o=0,repeatDelay:s=0,repeatType:i="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=rt.now(),this.options={autoplay:t,delay:n,type:r,repeat:o,repeatDelay:s,repeatType:i,...a},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>wI?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&pI(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=rt.now(),this.hasAttemptedResolve=!0;const{name:r,type:o,velocity:s,delay:i,onComplete:a,onUpdate:l,isGenerator:c}=this.options;if(!c&&!yI(t,r,o,s))if(i)this.options.duration=0;else{l&&l(Jo(t,this.options,n)),a&&a(),this.resolveFinishedPromise();return}const d=this.initPlayback(t,n);d!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...d},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const ue=(e,t,n)=>e+(t-e)*n;function Za(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function xI({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let o=0,s=0,i=0;if(!t)o=s=i=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;o=Za(l,a,e+1/3),s=Za(l,a,e),i=Za(l,a,e-1/3)}return{red:Math.round(o*255),green:Math.round(s*255),blue:Math.round(i*255),alpha:r}}function Qo(e,t){return n=>n>0?t:e}const Ja=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},SI=[Ua,Rt,wn],CI=e=>SI.find(t=>t.test(e));function gy(e){const t=CI(e);if($t(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===wn&&(n=xI(n)),n}const vy=(e,t)=>{const n=gy(e),r=gy(t);if(!n||!r)return Qo(e,t);const o={...n};return s=>(o.red=Ja(n.red,r.red,s),o.green=Ja(n.green,r.green,s),o.blue=Ja(n.blue,r.blue,s),o.alpha=ue(n.alpha,r.alpha,s),Rt.transform(o))},EI=(e,t)=>n=>t(e(n)),pr=(...e)=>e.reduce(EI),Qa=new Set(["none","hidden"]);function PI(e,t){return Qa.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function TI(e,t){return n=>ue(e,t,n)}function el(e){return typeof e=="number"?TI:typeof e=="string"?Ca(e)?Qo:Se.test(e)?vy:MI:Array.isArray(e)?yy:typeof e=="object"?Se.test(e)?vy:AI:Qo}function yy(e,t){const n=[...e],r=n.length,o=e.map((s,i)=>el(s)(s,t[i]));return s=>{for(let i=0;i<r;i++)n[i]=o[i](s);return n}}function AI(e,t){const n={...e,...t},r={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(r[o]=el(e[o])(e[o],t[o]));return o=>{for(const s in r)n[s]=r[s](o);return n}}function NI(e,t){var n;const r=[],o={color:0,var:0,number:0};for(let s=0;s<t.values.length;s++){const i=t.types[s],a=e.indexes[i][o[i]],l=(n=e.values[a])!==null&&n!==void 0?n:0;r[s]=l,o[i]++}return r}const MI=(e,t)=>{const n=At.createTransformer(t),r=fr(e),o=fr(t);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?Qa.has(e)&&!o.values.length||Qa.has(t)&&!r.values.length?PI(e,t):pr(yy(NI(r,o),o.values),n):($t(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),Qo(e,t))};function by(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?ue(e,t,n):el(e)(e,t)}const II=5;function wy(e,t,n){const r=Math.max(t-II,0);return Fa(n-e(r),t-r)}const fe={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},tl=.001;function DI({duration:e=fe.duration,bounce:t=fe.bounce,velocity:n=fe.velocity,mass:r=fe.mass}){let o,s;$t(e<=He(fe.maxDuration),"Spring duration must be 10 seconds or less");let i=1-t;i=tt(fe.minDamping,fe.maxDamping,i),e=tt(fe.minDuration,fe.maxDuration,et(e)),i<1?(o=c=>{const d=c*i,f=d*e,h=d-n,m=nl(c,i),y=Math.exp(-f);return tl-h/m*y},s=c=>{const f=c*i*e,h=f*n+n,m=Math.pow(i,2)*Math.pow(c,2)*e,y=Math.exp(-f),g=nl(Math.pow(c,2),i);return(-o(c)+tl>0?-1:1)*((h-m)*y)/g}):(o=c=>{const d=Math.exp(-c*e),f=(c-n)*e+1;return-tl+d*f},s=c=>{const d=Math.exp(-c*e),f=(n-c)*(e*e);return d*f});const a=5/e,l=kI(o,s,a);if(e=He(e),isNaN(l))return{stiffness:fe.stiffness,damping:fe.damping,duration:e};{const c=Math.pow(l,2)*r;return{stiffness:c,damping:i*2*Math.sqrt(r*c),duration:e}}}const _I=12;function kI(e,t,n){let r=n;for(let o=1;o<_I;o++)r=r-e(r)/t(r);return r}function nl(e,t){return e*Math.sqrt(1-t*t)}const OI=["duration","bounce"],LI=["stiffness","damping","mass"];function xy(e,t){return t.some(n=>e[n]!==void 0)}function VI(e){let t={velocity:fe.velocity,stiffness:fe.stiffness,damping:fe.damping,mass:fe.mass,isResolvedFromDuration:!1,...e};if(!xy(e,LI)&&xy(e,OI))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),o=r*r,s=2*tt(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:fe.mass,stiffness:o,damping:s}}else{const n=DI(e);t={...t,...n,mass:fe.mass},t.isResolvedFromDuration=!0}return t}function rl(e=fe.visualDuration,t=fe.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:o}=n;const s=n.keyframes[0],i=n.keyframes[n.keyframes.length-1],a={done:!1,value:s},{stiffness:l,damping:c,mass:d,duration:f,velocity:h,isResolvedFromDuration:m}=VI({...n,velocity:-et(n.velocity||0)}),y=h||0,g=c/(2*Math.sqrt(l*d)),v=i-s,b=et(Math.sqrt(l/d)),w=Math.abs(v)<5;r||(r=w?fe.restSpeed.granular:fe.restSpeed.default),o||(o=w?fe.restDelta.granular:fe.restDelta.default);let x;if(g<1){const C=nl(b,g);x=T=>{const A=Math.exp(-g*b*T);return i-A*((y+g*b*v)/C*Math.sin(C*T)+v*Math.cos(C*T))}}else if(g===1)x=C=>i-Math.exp(-b*C)*(v+(y+b*v)*C);else{const C=b*Math.sqrt(g*g-1);x=T=>{const A=Math.exp(-g*b*T),N=Math.min(C*T,300);return i-A*((y+g*b*v)*Math.sinh(N)+C*v*Math.cosh(N))/C}}const S={calculatedDuration:m&&f||null,next:C=>{const T=x(C);if(m)a.done=C>=f;else{let A=0;g<1&&(A=C===0?He(y):wy(x,C,T));const N=Math.abs(A)<=r,I=Math.abs(i-T)<=o;a.done=N&&I}return a.value=a.done?i:T,a},toString:()=>{const C=Math.min(Da(S),Go),T=Mv(A=>S.next(C*A).value,C,30);return C+"ms "+T}};return S}function Sy({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:s=500,modifyTarget:i,min:a,max:l,restDelta:c=.5,restSpeed:d}){const f=e[0],h={done:!1,value:f},m=N=>a!==void 0&&N<a||l!==void 0&&N>l,y=N=>a===void 0?l:l===void 0||Math.abs(a-N)<Math.abs(l-N)?a:l;let g=n*t;const v=f+g,b=i===void 0?v:i(v);b!==v&&(g=b-f);const w=N=>-g*Math.exp(-N/r),x=N=>b+w(N),S=N=>{const I=w(N),O=x(N);h.done=Math.abs(I)<=c,h.value=h.done?b:O};let C,T;const A=N=>{m(h.value)&&(C=N,T=rl({keyframes:[h.value,y(h.value)],velocity:wy(x,N,h.value),damping:o,stiffness:s,restDelta:c,restSpeed:d}))};return A(0),{calculatedDuration:null,next:N=>{let I=!1;return!T&&C===void 0&&(I=!0,S(N),A(N)),C!==void 0&&N>=C?T.next(N-C):(!I&&S(N),h)}}}const $I=ur(.42,0,1,1),FI=ur(0,0,.58,1),Cy=ur(.42,0,.58,1),Ey=e=>Array.isArray(e)&&typeof e[0]!="number",Py={linear:Ee,easeIn:$I,easeInOut:Cy,easeOut:FI,circIn:za,circInOut:Yv,circOut:Kv,backIn:Ba,backInOut:Uv,backOut:jv,anticipate:Gv},ol=e=>{if(_a(e)){Qe(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,o]=e;return ur(t,n,r,o)}else if(typeof e=="string")return Qe(Py[e]!==void 0,`Invalid easing type '${e}'`),Py[e];return e};function RI(e,t,n){const r=[],o=n||by,s=e.length-1;for(let i=0;i<s;i++){let a=o(e[i],e[i+1]);if(t){const l=Array.isArray(t)?t[i]||Ee:t;a=pr(l,a)}r.push(a)}return r}function sl(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const s=e.length;if(Qe(s===t.length,"Both input and output ranges must be the same length"),s===1)return()=>t[0];if(s===2&&t[0]===t[1])return()=>t[1];const i=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=RI(t,r,o),l=a.length,c=d=>{if(i&&d<e[0])return t[0];let f=0;if(l>1)for(;f<e.length-2&&!(d<e[f+1]);f++);const h=Pt(e[f],e[f+1],d);return a[f](h)};return n?d=>c(tt(e[0],e[s-1],d)):c}function Ty(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=Pt(0,t,r);e.push(ue(n,1,o))}}function il(e){const t=[0];return Ty(t,e.length-1),t}function BI(e,t){return e.map(n=>n*t)}function zI(e,t){return e.map(()=>t||Cy).splice(0,e.length-1)}function es({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=Ey(r)?r.map(ol):ol(r),s={done:!1,value:t[0]},i=BI(n&&n.length===t.length?n:il(t),e),a=sl(i,t,{ease:Array.isArray(o)?o:zI(t,o)});return{calculatedDuration:e,next:l=>(s.value=a(l),s.done=l>=e,s)}}const WI=e=>{const t=({timestamp:n})=>e(n);return{start:()=>ie.update(t,!0),stop:()=>Le(t),now:()=>be.isProcessing?be.timestamp:rt.now()}},HI={decay:Sy,inertia:Sy,tween:es,keyframes:es,spring:rl},jI=e=>e/100;class ts extends my{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:l}=this.options;l&&l()};const{name:n,motionValue:r,element:o,keyframes:s}=this.options,i=(o==null?void 0:o.KeyframeResolver)||qa,a=(l,c)=>this.onKeyframesResolved(l,c);this.resolver=new i(s,a,n,r,o),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:o=0,repeatType:s,velocity:i=0}=this.options,a=Ko(n)?n:HI[n]||es;let l,c;a!==es&&typeof t[0]!="number"&&(process.env.NODE_ENV!=="production"&&Qe(t.length===2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`),l=pr(jI,by(t[0],t[1])),t=[0,100]);const d=a({...this.options,keyframes:t});s==="mirror"&&(c=a({...this.options,keyframes:[...t].reverse(),velocity:-i})),d.calculatedDuration===null&&(d.calculatedDuration=Da(d));const{calculatedDuration:f}=d,h=f+o,m=h*(r+1)-o;return{generator:d,mirroredGenerator:c,mapPercentToKeyframes:l,calculatedDuration:f,resolvedDuration:h,totalDuration:m}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:N}=this.options;return{done:!0,value:N[N.length-1]}}const{finalKeyframe:o,generator:s,mirroredGenerator:i,mapPercentToKeyframes:a,keyframes:l,calculatedDuration:c,totalDuration:d,resolvedDuration:f}=r;if(this.startTime===null)return s.next(0);const{delay:h,repeat:m,repeatType:y,repeatDelay:g,onUpdate:v}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-d/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const b=this.currentTime-h*(this.speed>=0?1:-1),w=this.speed>=0?b<0:b>d;this.currentTime=Math.max(b,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=d);let x=this.currentTime,S=s;if(m){const N=Math.min(this.currentTime,d)/f;let I=Math.floor(N),O=N%1;!O&&N>=1&&(O=1),O===1&&I--,I=Math.min(I,m+1),!!(I%2)&&(y==="reverse"?(O=1-O,g&&(O-=g/f)):y==="mirror"&&(S=i)),x=tt(0,1,O)*f}const C=w?{done:!1,value:l[0]}:S.next(x);a&&(C.value=a(C.value));let{done:T}=C;!w&&c!==null&&(T=this.speed>=0?this.currentTime>=d:this.currentTime<=0);const A=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&T);return A&&o!==void 0&&(C.value=Jo(l,this.options,o)),v&&v(C.value),A&&this.finish(),C}get duration(){const{resolved:t}=this;return t?et(t.calculatedDuration):0}get time(){return et(this.currentTime)}set time(t){t=He(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=et(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=WI,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(s=>this.tick(s))),n&&n();const o=this.driver.now();this.holdTime!==null?this.startTime=o-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=o):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}function UI(e){return new ts(e)}const GI=new Set(["opacity","clipPath","filter","transform"]);function KI(e,t,n,{delay:r=0,duration:o=300,repeat:s=0,repeatType:i="loop",ease:a="easeInOut",times:l}={}){const c={[t]:n};l&&(c.offset=l);const d=Dv(a,o);return Array.isArray(d)&&(c.easing=d),e.animate(c,{delay:r,duration:o,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:s+1,direction:i==="reverse"?"alternate":"normal"})}const YI=ha(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),ns=10,XI=2e4;function qI(e){return Ko(e.type)||e.type==="spring"||!Iv(e.ease)}function ZI(e,t){const n=new ts({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const o=[];let s=0;for(;!r.done&&s<XI;)r=n.sample(s),o.push(r.value),s+=ns;return{times:void 0,keyframes:o,duration:s-ns,ease:"linear"}}const Ay={anticipate:Gv,backInOut:Uv,circInOut:Yv};function JI(e){return e in Ay}class Ny extends my{constructor(t){super(t);const{name:n,motionValue:r,element:o,keyframes:s}=this.options;this.resolver=new py(s,(i,a)=>this.onKeyframesResolved(i,a),n,r,o),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:o,ease:s,type:i,motionValue:a,name:l,startTime:c}=this.options;if(!a.owner||!a.owner.current)return!1;if(typeof s=="string"&&Yo()&&JI(s)&&(s=Ay[s]),qI(this.options)){const{onComplete:f,onUpdate:h,motionValue:m,element:y,...g}=this.options,v=ZI(t,g);t=v.keyframes,t.length===1&&(t[1]=t[0]),r=v.duration,o=v.times,s=v.ease,i="keyframes"}const d=KI(a.owner.current,l,t,{...this.options,duration:r,times:o,ease:s});return d.startTime=c??this.calcStartTime(),this.pendingTimeline?(Nv(d,this.pendingTimeline),this.pendingTimeline=void 0):d.onfinish=()=>{const{onComplete:f}=this.options;a.set(Jo(t,this.options,n)),f&&f(),this.cancel(),this.resolveFinishedPromise()},{animation:d,duration:r,times:o,type:i,ease:s,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return et(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return et(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=He(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return Ee;const{animation:r}=n;Nv(r,t)}return Ee}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:o,type:s,ease:i,times:a}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:c,onUpdate:d,onComplete:f,element:h,...m}=this.options,y=new ts({...m,keyframes:r,duration:o,type:s,ease:i,times:a,isGenerator:!0}),g=He(this.time);c.setWithVelocity(y.sample(g-ns).value,y.sample(g).value,ns)}const{onStop:l}=this.options;l&&l(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:o,repeatType:s,damping:i,type:a}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:c}=n.owner.getProps();return YI()&&r&&GI.has(r)&&!l&&!c&&!o&&s!=="mirror"&&i!==0&&a!=="inertia"}}const QI={type:"spring",stiffness:500,damping:25,restSpeed:10},eD=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),tD={type:"keyframes",duration:.8},nD={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},rD=(e,{keyframes:t})=>t.length>2?tD:Ft.has(e)?e.startsWith("scale")?eD(t[1]):QI:nD;function oD({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:s,repeatType:i,repeatDelay:a,from:l,elapsed:c,...d}){return!!Object.keys(d).length}const al=(e,t,n,r={},o,s)=>i=>{const a=Ia(r,e)||{},l=a.delay||r.delay||0;let{elapsed:c=0}=r;c=c-He(l);let d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-c,onUpdate:h=>{t.set(h),a.onUpdate&&a.onUpdate(h)},onComplete:()=>{i(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:s?void 0:o};oD(a)||(d={...d,...rD(e,d)}),d.duration&&(d.duration=He(d.duration)),d.repeatDelay&&(d.repeatDelay=He(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let f=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(d.duration=0,d.delay===0&&(f=!0)),f&&!s&&t.get()!==void 0){const h=Jo(d.keyframes,a);if(h!==void 0)return ie.update(()=>{d.onUpdate(h),d.onComplete()}),new Av([])}return!s&&Ny.supports(d)?new Ny(d):new ts(d)};function sD({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function ll(e,t,{delay:n=0,transitionOverride:r,type:o}={}){var s;let{transition:i=e.getDefaultTransition(),transitionEnd:a,...l}=t;r&&(i=r);const c=[],d=o&&e.animationState&&e.animationState.getState()[o];for(const f in l){const h=e.getValue(f,(s=e.latestValues[f])!==null&&s!==void 0?s:null),m=l[f];if(m===void 0||d&&sD(d,f))continue;const y={delay:n,...Ia(i||{},f)};let g=!1;if(window.MotionHandoffAnimation){const b=Bv(e);if(b){const w=window.MotionHandoffAnimation(b,f,ie);w!==null&&(y.startTime=w,g=!0)}}Ra(e,f),h.start(al(f,h,m,e.shouldReduceMotion&&Fv.has(f)?{type:!1}:y,e,g));const v=h.animation;v&&c.push(v)}return a&&Promise.all(c).then(()=>{ie.update(()=>{a&&z1(e,a)})}),c}function cl(e,t,n={}){var r;const o=Uo(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:s=e.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(s=n.transitionOverride);const i=o?()=>Promise.all(ll(e,o,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(c=0)=>{const{delayChildren:d=0,staggerChildren:f,staggerDirection:h}=s;return iD(e,t,d+c,f,h,n)}:()=>Promise.resolve(),{when:l}=s;if(l){const[c,d]=l==="beforeChildren"?[i,a]:[a,i];return c().then(()=>d())}else return Promise.all([i(),a(n.delay)])}function iD(e,t,n=0,r=0,o=1,s){const i=[],a=(e.variantChildren.size-1)*r,l=o===1?(c=0)=>c*r:(c=0)=>a-c*r;return Array.from(e.variantChildren).sort(aD).forEach((c,d)=>{c.notify("AnimationStart",t),i.push(cl(c,t,{...s,delay:n+l(d)}).then(()=>c.notify("AnimationComplete",t)))}),Promise.all(i)}function aD(e,t){return e.sortNodePosition(t)}function lD(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(s=>cl(e,s,n));r=Promise.all(o)}else if(typeof t=="string")r=cl(e,t,n);else{const o=typeof t=="function"?Uo(e,t,n.custom):t;r=Promise.all(ll(e,o,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const cD=va.length;function My(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?My(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<cD;n++){const r=va[n],o=e.props[r];(or(o)||o===!1)&&(t[r]=o)}return t}const uD=[...ga].reverse(),dD=ga.length;function fD(e){return t=>Promise.all(t.map(({animation:n,options:r})=>lD(e,n,r)))}function pD(e){let t=fD(e),n=Iy(),r=!0;const o=l=>(c,d)=>{var f;const h=Uo(e,d,l==="exit"?(f=e.presenceContext)===null||f===void 0?void 0:f.custom:void 0);if(h){const{transition:m,transitionEnd:y,...g}=h;c={...c,...g,...y}}return c};function s(l){t=l(e)}function i(l){const{props:c}=e,d=My(e.parent)||{},f=[],h=new Set;let m={},y=1/0;for(let v=0;v<dD;v++){const b=uD[v],w=n[b],x=c[b]!==void 0?c[b]:d[b],S=or(x),C=b===l?w.isActive:null;C===!1&&(y=v);let T=x===d[b]&&x!==c[b]&&S;if(T&&r&&e.manuallyAnimateOnMount&&(T=!1),w.protectedKeys={...m},!w.isActive&&C===null||!x&&!w.prevProp||Bo(x)||typeof x=="boolean")continue;const A=hD(w.prevProp,x);let N=A||b===l&&w.isActive&&!T&&S||v>y&&S,I=!1;const O=Array.isArray(x)?x:[x];let L=O.reduce(o(b),{});C===!1&&(L={});const{prevResolvedValues:V={}}=w,U={...V,...L},_=B=>{N=!0,h.has(B)&&(I=!0,h.delete(B)),w.needsAnimating[B]=!0;const $=e.getValue(B);$&&($.liveStyle=!1)};for(const B in U){const $=L[B],F=V[B];if(m.hasOwnProperty(B))continue;let ne=!1;Sa($)&&Sa(F)?ne=!Pv($,F):ne=$!==F,ne?$!=null?_(B):h.add(B):$!==void 0&&h.has(B)?_(B):w.protectedKeys[B]=!0}w.prevProp=x,w.prevResolvedValues=L,w.isActive&&(m={...m,...L}),r&&e.blockInitialAnimation&&(N=!1),N&&(!(T&&A)||I)&&f.push(...O.map(B=>({animation:B,options:{type:b}})))}if(h.size){const v={};h.forEach(b=>{const w=e.getBaseTarget(b),x=e.getValue(b);x&&(x.liveStyle=!0),v[b]=w??null}),f.push({animation:v})}let g=!!f.length;return r&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(g=!1),r=!1,g?t(f):Promise.resolve()}function a(l,c){var d;if(n[l].isActive===c)return Promise.resolve();(d=e.variantChildren)===null||d===void 0||d.forEach(h=>{var m;return(m=h.animationState)===null||m===void 0?void 0:m.setActive(l,c)}),n[l].isActive=c;const f=i(l);for(const h in n)n[h].protectedKeys={};return f}return{animateChanges:i,setActive:a,setAnimateFunction:s,getState:()=>n,reset:()=>{n=Iy(),r=!0}}}function hD(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Pv(t,e):!1}function zt(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Iy(){return{animate:zt(!0),whileInView:zt(),whileHover:zt(),whileTap:zt(),whileDrag:zt(),whileFocus:zt(),exit:zt()}}class Nt{constructor(t){this.isMounted=!1,this.node=t}update(){}}class mD extends Nt{constructor(t){super(t),t.animationState||(t.animationState=pD(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Bo(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let gD=0;class vD extends Nt{constructor(){super(...arguments),this.id=gD++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const o=this.node.animationState.setActive("exit",!t);n&&!t&&o.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const yD={animation:{Feature:mD},exit:{Feature:vD}};function hr(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function mr(e){return{point:{x:e.pageX,y:e.pageY}}}const bD=e=>t=>Oa(t)&&e(t,mr(t));function gr(e,t,n,r){return hr(e,t,bD(n),r)}const Dy=(e,t)=>Math.abs(e-t);function wD(e,t){const n=Dy(e.x,t.x),r=Dy(e.y,t.y);return Math.sqrt(n**2+r**2)}class _y{constructor(t,n,{transformPagePoint:r,contextWindow:o,dragSnapToOrigin:s=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const f=dl(this.lastMoveEventInfo,this.history),h=this.startEvent!==null,m=wD(f.offset,{x:0,y:0})>=3;if(!h&&!m)return;const{point:y}=f,{timestamp:g}=be;this.history.push({...y,timestamp:g});const{onStart:v,onMove:b}=this.handlers;h||(v&&v(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),b&&b(this.lastMoveEvent,f)},this.handlePointerMove=(f,h)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=ul(h,this.transformPagePoint),ie.update(this.updatePoint,!0)},this.handlePointerUp=(f,h)=>{this.end();const{onEnd:m,onSessionEnd:y,resumeAnimation:g}=this.handlers;if(this.dragSnapToOrigin&&g&&g(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const v=dl(f.type==="pointercancel"?this.lastMoveEventInfo:ul(h,this.transformPagePoint),this.history);this.startEvent&&m&&m(f,v),y&&y(f,v)},!Oa(t))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=r,this.contextWindow=o||window;const i=mr(t),a=ul(i,this.transformPagePoint),{point:l}=a,{timestamp:c}=be;this.history=[{...l,timestamp:c}];const{onSessionStart:d}=n;d&&d(t,dl(a,this.history)),this.removeListeners=pr(gr(this.contextWindow,"pointermove",this.handlePointerMove),gr(this.contextWindow,"pointerup",this.handlePointerUp),gr(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Le(this.updatePoint)}}function ul(e,t){return t?{point:t(e.point)}:e}function ky(e,t){return{x:e.x-t.x,y:e.y-t.y}}function dl({point:e},t){return{point:e,delta:ky(e,Oy(t)),offset:ky(e,xD(t)),velocity:SD(t,.1)}}function xD(e){return e[0]}function Oy(e){return e[e.length-1]}function SD(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=Oy(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>He(t)));)n--;if(!r)return{x:0,y:0};const s=et(o.timestamp-r.timestamp);if(s===0)return{x:0,y:0};const i={x:(o.x-r.x)/s,y:(o.y-r.y)/s};return i.x===1/0&&(i.x=0),i.y===1/0&&(i.y=0),i}const Ly=1e-4,CD=1-Ly,ED=1+Ly,Vy=.01,PD=0-Vy,TD=0+Vy;function Me(e){return e.max-e.min}function AD(e,t,n){return Math.abs(e-t)<=n}function $y(e,t,n,r=.5){e.origin=r,e.originPoint=ue(t.min,t.max,e.origin),e.scale=Me(n)/Me(t),e.translate=ue(n.min,n.max,e.origin)-e.originPoint,(e.scale>=CD&&e.scale<=ED||isNaN(e.scale))&&(e.scale=1),(e.translate>=PD&&e.translate<=TD||isNaN(e.translate))&&(e.translate=0)}function vr(e,t,n,r){$y(e.x,t.x,n.x,r?r.originX:void 0),$y(e.y,t.y,n.y,r?r.originY:void 0)}function Fy(e,t,n){e.min=n.min+t.min,e.max=e.min+Me(t)}function ND(e,t,n){Fy(e.x,t.x,n.x),Fy(e.y,t.y,n.y)}function Ry(e,t,n){e.min=t.min-n.min,e.max=e.min+Me(t)}function yr(e,t,n){Ry(e.x,t.x,n.x),Ry(e.y,t.y,n.y)}function MD(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?ue(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?ue(n,e,r.max):Math.min(e,n)),e}function By(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function ID(e,{top:t,left:n,bottom:r,right:o}){return{x:By(e.x,n,o),y:By(e.y,t,r)}}function zy(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function DD(e,t){return{x:zy(e.x,t.x),y:zy(e.y,t.y)}}function _D(e,t){let n=.5;const r=Me(e),o=Me(t);return o>r?n=Pt(t.min,t.max-r,e.min):r>o&&(n=Pt(e.min,e.max-o,t.min)),tt(0,1,n)}function kD(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const fl=.35;function OD(e=fl){return e===!1?e=0:e===!0&&(e=fl),{x:Wy(e,"left","right"),y:Wy(e,"top","bottom")}}function Wy(e,t,n){return{min:Hy(e,t),max:Hy(e,n)}}function Hy(e,t){return typeof e=="number"?e:e[t]||0}const jy=()=>({translate:0,scale:1,origin:0,originPoint:0}),Sn=()=>({x:jy(),y:jy()}),Uy=()=>({min:0,max:0}),ge=()=>({x:Uy(),y:Uy()});function Ve(e){return[e("x"),e("y")]}function Gy({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function LD({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function VD(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function pl(e){return e===void 0||e===1}function hl({scale:e,scaleX:t,scaleY:n}){return!pl(e)||!pl(t)||!pl(n)}function Wt(e){return hl(e)||Ky(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Ky(e){return Yy(e.x)||Yy(e.y)}function Yy(e){return e&&e!=="0%"}function rs(e,t,n){const r=e-n,o=t*r;return n+o}function Xy(e,t,n,r,o){return o!==void 0&&(e=rs(e,o,r)),rs(e,n,r)+t}function ml(e,t=0,n=1,r,o){e.min=Xy(e.min,t,n,r,o),e.max=Xy(e.max,t,n,r,o)}function qy(e,{x:t,y:n}){ml(e.x,t.translate,t.scale,t.originPoint),ml(e.y,n.translate,n.scale,n.originPoint)}const Zy=.999999999999,Jy=1.0000000000001;function $D(e,t,n,r=!1){const o=n.length;if(!o)return;t.x=t.y=1;let s,i;for(let a=0;a<o;a++){s=n[a],i=s.projectionDelta;const{visualElement:l}=s.options;l&&l.props.style&&l.props.style.display==="contents"||(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&En(e,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),i&&(t.x*=i.x.scale,t.y*=i.y.scale,qy(e,i)),r&&Wt(s.latestValues)&&En(e,s.latestValues))}t.x<Jy&&t.x>Zy&&(t.x=1),t.y<Jy&&t.y>Zy&&(t.y=1)}function Cn(e,t){e.min=e.min+t,e.max=e.max+t}function Qy(e,t,n,r,o=.5){const s=ue(e.min,e.max,o);ml(e,t,n,s,r)}function En(e,t){Qy(e.x,t.x,t.scaleX,t.scale,t.originX),Qy(e.y,t.y,t.scaleY,t.scale,t.originY)}function eb(e,t){return Gy(VD(e.getBoundingClientRect(),t))}function FD(e,t,n){const r=eb(e,n),{scroll:o}=t;return o&&(Cn(r.x,o.offset.x),Cn(r.y,o.offset.y)),r}const tb=({current:e})=>e?e.ownerDocument.defaultView:null,RD=new WeakMap;class BD{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=ge(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const o=d=>{const{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(mr(d).point)},s=(d,f)=>{const{drag:h,dragPropagation:m,onDragStart:y}=this.getProps();if(h&&!m&&(this.openDragLock&&this.openDragLock(),this.openDragLock=V1(h),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Ve(v=>{let b=this.getAxisMotionValue(v).get()||0;if(nt.test(b)){const{projection:w}=this.visualElement;if(w&&w.layout){const x=w.layout.layoutBox[v];x&&(b=Me(x)*(parseFloat(b)/100))}}this.originPoint[v]=b}),y&&ie.postRender(()=>y(d,f)),Ra(this.visualElement,"transform");const{animationState:g}=this.visualElement;g&&g.setActive("whileDrag",!0)},i=(d,f)=>{const{dragPropagation:h,dragDirectionLock:m,onDirectionLock:y,onDrag:g}=this.getProps();if(!h&&!this.openDragLock)return;const{offset:v}=f;if(m&&this.currentDirection===null){this.currentDirection=zD(v),this.currentDirection!==null&&y&&y(this.currentDirection);return}this.updateAxis("x",f.point,v),this.updateAxis("y",f.point,v),this.visualElement.render(),g&&g(d,f)},a=(d,f)=>this.stop(d,f),l=()=>Ve(d=>{var f;return this.getAnimationState(d)==="paused"&&((f=this.getAxisMotionValue(d).animation)===null||f===void 0?void 0:f.play())}),{dragSnapToOrigin:c}=this.getProps();this.panSession=new _y(t,{onSessionStart:o,onStart:s,onMove:i,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,contextWindow:tb(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:o}=n;this.startAnimation(o);const{onDragEnd:s}=this.getProps();s&&ie.postRender(()=>s(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:o}=this.getProps();if(!r||!os(t,o,this.currentDirection))return;const s=this.getAxisMotionValue(t);let i=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(i=MD(i,this.constraints[t],this.elastic[t])),s.set(i)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,s=this.constraints;n&&vn(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&o?this.constraints=ID(o.layoutBox,n):this.constraints=!1,this.elastic=OD(r),s!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&Ve(i=>{this.constraints!==!1&&this.getAxisMotionValue(i)&&(this.constraints[i]=kD(o.layoutBox[i],this.constraints[i]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!vn(t))return!1;const r=t.current;Qe(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const s=FD(r,o.root,this.visualElement.getTransformPagePoint());let i=DD(o.layout.layoutBox,s);if(n){const a=n(LD(i));this.hasMutatedConstraints=!!a,a&&(i=Gy(a))}return i}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:s,dragSnapToOrigin:i,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},c=Ve(d=>{if(!os(d,n,this.currentDirection))return;let f=l&&l[d]||{};i&&(f={min:0,max:0});const h=o?200:1e6,m=o?40:1e7,y={type:"inertia",velocity:r?t[d]:0,bounceStiffness:h,bounceDamping:m,timeConstant:750,restDelta:1,restSpeed:10,...s,...f};return this.startAxisValueAnimation(d,y)});return Promise.all(c).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Ra(this.visualElement,t),r.start(al(t,r,0,n,this.visualElement,!1))}stopAnimation(){Ve(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Ve(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),o=r[n];return o||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Ve(n=>{const{drag:r}=this.getProps();if(!os(n,r,this.currentDirection))return;const{projection:o}=this.visualElement,s=this.getAxisMotionValue(n);if(o&&o.layout){const{min:i,max:a}=o.layout.layoutBox[n];s.set(t[n]-ue(i,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!vn(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};Ve(i=>{const a=this.getAxisMotionValue(i);if(a&&this.constraints!==!1){const l=a.get();o[i]=_D({min:l,max:l},this.constraints[i])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Ve(i=>{if(!os(i,t,null))return;const a=this.getAxisMotionValue(i),{min:l,max:c}=this.constraints[i];a.set(ue(l,c,o[i]))})}addListeners(){if(!this.visualElement.current)return;RD.set(this.visualElement,this);const t=this.visualElement.current,n=gr(t,"pointerdown",l=>{const{drag:c,dragListener:d=!0}=this.getProps();c&&d&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();vn(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,s=o.addEventListener("measure",r);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),ie.read(r);const i=hr(window,"resize",()=>this.scalePositionWithinConstraints()),a=o.addEventListener("didUpdate",({delta:l,hasLayoutChanged:c})=>{this.isDragging&&c&&(Ve(d=>{const f=this.getAxisMotionValue(d);f&&(this.originPoint[d]+=l[d].translate,f.set(f.get()+l[d].translate))}),this.visualElement.render())});return()=>{i(),n(),s(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:s=!1,dragElastic:i=fl,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:s,dragElastic:i,dragMomentum:a}}}function os(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function zD(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class WD extends Nt{constructor(t){super(t),this.removeGroupControls=Ee,this.removeListeners=Ee,this.controls=new BD(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Ee}unmount(){this.removeGroupControls(),this.removeListeners()}}const nb=e=>(t,n)=>{e&&ie.postRender(()=>e(t,n))};class HD extends Nt{constructor(){super(...arguments),this.removePointerDownListener=Ee}onPointerDown(t){this.session=new _y(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:tb(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:nb(t),onStart:nb(n),onMove:r,onEnd:(s,i)=>{delete this.session,o&&ie.postRender(()=>o(s,i))}}}mount(){this.removePointerDownListener=gr(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const ss={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function rb(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const br={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(te.test(e))e=parseFloat(e);else return e;const n=rb(e,t.target.x),r=rb(e,t.target.y);return`${n}% ${r}%`}},jD={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=At.parse(e);if(o.length>5)return r;const s=At.createTransformer(e),i=typeof o[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;o[0+i]/=a,o[1+i]/=l;const c=ue(a,l,.5);return typeof o[2+i]=="number"&&(o[2+i]/=c),typeof o[3+i]=="number"&&(o[3+i]/=c),s(o)}};class UD extends P.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:s}=t;v1(GD),s&&(n.group&&n.group.add(s),r&&r.register&&o&&r.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),ss.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:o,isPresent:s}=this.props,i=r.projection;return i&&(i.isPresent=s,o||t.layoutDependency!==n||n===void 0?i.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?i.promote():i.relegate()||ie.postRender(()=>{const a=i.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),ba.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:o}=t;o&&(o.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(o),r&&r.deregister&&r.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function ob(e){const[t,n]=Zg(),r=P.useContext(fa);return p.jsx(UD,{...e,layoutGroup:r,switchLayoutGroup:P.useContext(av),isPresent:t,safeToRemove:n})}const GD={borderRadius:{...br,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:br,borderTopRightRadius:br,borderBottomLeftRadius:br,borderBottomRightRadius:br,boxShadow:jD};function sb(e,t,n){const r=me(e)?e:ot(e);return r.start(al("",r,t,n)),r.animation}function ib(e){return e instanceof SVGElement&&e.tagName!=="svg"}const KD=(e,t)=>e.depth-t.depth;class YD{constructor(){this.children=[],this.isDirty=!1}add(t){Va(this.children,t),this.isDirty=!0}remove(t){Zo(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(KD),this.isDirty=!1,this.children.forEach(t)}}function XD(e,t){const n=rt.now(),r=({timestamp:o})=>{const s=o-n;s>=t&&(Le(r),e(s-t))};return ie.read(r,!0),()=>Le(r)}const ab=["TopLeft","TopRight","BottomLeft","BottomRight"],qD=ab.length,lb=e=>typeof e=="string"?parseFloat(e):e,cb=e=>typeof e=="number"||te.test(e);function ZD(e,t,n,r,o,s){o?(e.opacity=ue(0,n.opacity!==void 0?n.opacity:1,JD(r)),e.opacityExit=ue(t.opacity!==void 0?t.opacity:1,0,QD(r))):s&&(e.opacity=ue(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let i=0;i<qD;i++){const a=`border${ab[i]}Radius`;let l=ub(t,a),c=ub(n,a);if(l===void 0&&c===void 0)continue;l||(l=0),c||(c=0),l===0||c===0||cb(l)===cb(c)?(e[a]=Math.max(ue(lb(l),lb(c),r),0),(nt.test(c)||nt.test(l))&&(e[a]+="%")):e[a]=c}(t.rotate||n.rotate)&&(e.rotate=ue(t.rotate||0,n.rotate||0,r))}function ub(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const JD=db(0,.5,Kv),QD=db(.5,.95,Ee);function db(e,t,n){return r=>r<e?0:r>t?1:n(Pt(e,t,r))}function fb(e,t){e.min=t.min,e.max=t.max}function $e(e,t){fb(e.x,t.x),fb(e.y,t.y)}function pb(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function hb(e,t,n,r,o){return e-=t,e=rs(e,1/n,r),o!==void 0&&(e=rs(e,1/o,r)),e}function e_(e,t=0,n=1,r=.5,o,s=e,i=e){if(nt.test(t)&&(t=parseFloat(t),t=ue(i.min,i.max,t/100)-i.min),typeof t!="number")return;let a=ue(s.min,s.max,r);e===s&&(a-=t),e.min=hb(e.min,t,n,a,o),e.max=hb(e.max,t,n,a,o)}function mb(e,t,[n,r,o],s,i){e_(e,t[n],t[r],t[o],t.scale,s,i)}const t_=["x","scaleX","originX"],n_=["y","scaleY","originY"];function gb(e,t,n,r){mb(e.x,t,t_,n?n.x:void 0,r?r.x:void 0),mb(e.y,t,n_,n?n.y:void 0,r?r.y:void 0)}function vb(e){return e.translate===0&&e.scale===1}function yb(e){return vb(e.x)&&vb(e.y)}function bb(e,t){return e.min===t.min&&e.max===t.max}function r_(e,t){return bb(e.x,t.x)&&bb(e.y,t.y)}function wb(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function xb(e,t){return wb(e.x,t.x)&&wb(e.y,t.y)}function Sb(e){return Me(e.x)/Me(e.y)}function Cb(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class o_{constructor(){this.members=[]}add(t){Va(this.members,t),t.scheduleRender()}remove(t){if(Zo(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(o=>t===o);if(n===0)return!1;let r;for(let o=n;o>=0;o--){const s=this.members[o];if(s.isPresent!==!1){r=s;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:o}=t.options;o===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function s_(e,t,n){let r="";const o=e.x.translate/t.x,s=e.y.translate/t.y,i=(n==null?void 0:n.z)||0;if((o||s||i)&&(r=`translate3d(${o}px, ${s}px, ${i}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:c,rotate:d,rotateX:f,rotateY:h,skewX:m,skewY:y}=n;c&&(r=`perspective(${c}px) ${r}`),d&&(r+=`rotate(${d}deg) `),f&&(r+=`rotateX(${f}deg) `),h&&(r+=`rotateY(${h}deg) `),m&&(r+=`skewX(${m}deg) `),y&&(r+=`skewY(${y}deg) `)}const a=e.x.scale*t.x,l=e.y.scale*t.y;return(a!==1||l!==1)&&(r+=`scale(${a}, ${l})`),r||"none"}const Ht={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},wr=typeof window<"u"&&window.MotionDebug!==void 0,gl=["","X","Y","Z"],i_={visibility:"hidden"},Eb=1e3;let a_=0;function vl(e,t,n,r){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Pb(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Bv(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:o,layoutId:s}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",ie,!(o||s))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Pb(r)}function Tb({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(i={},a=t==null?void 0:t()){this.id=a_++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,wr&&(Ht.totalNodes=Ht.resolvedTargetDeltas=Ht.recalculatedProjection=0),this.nodes.forEach(u_),this.nodes.forEach(m_),this.nodes.forEach(g_),this.nodes.forEach(d_),wr&&window.MotionDebug.record(Ht)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=i,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new YD)}addEventListener(i,a){return this.eventHandlers.has(i)||this.eventHandlers.set(i,new $a),this.eventHandlers.get(i).add(a)}notifyListeners(i,...a){const l=this.eventHandlers.get(i);l&&l.notify(...a)}hasListeners(i){return this.eventHandlers.has(i)}mount(i,a=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=ib(i),this.instance=i;const{layoutId:l,layout:c,visualElement:d}=this.options;if(d&&!d.current&&d.mount(i),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),a&&(c||l)&&(this.isLayoutDirty=!0),e){let f;const h=()=>this.root.updateBlockedByResize=!1;e(i,()=>{this.root.updateBlockedByResize=!0,f&&f(),f=XD(h,250),ss.hasAnimatedSinceResize&&(ss.hasAnimatedSinceResize=!1,this.nodes.forEach(Nb))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&d&&(l||c)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:h,hasRelativeTargetChanged:m,layout:y})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const g=this.options.transition||d.getDefaultTransition()||x_,{onLayoutAnimationStart:v,onLayoutAnimationComplete:b}=d.getProps(),w=!this.targetLayout||!xb(this.targetLayout,y)||m,x=!h&&m;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||x||h&&(w||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(f,x);const S={...Ia(g,"layout"),onPlay:v,onComplete:b};(d.shouldReduceMotion||this.options.layoutRoot)&&(S.delay=0,S.type=!1),this.startAnimation(S)}else h||Nb(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=y})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const i=this.getStack();i&&i.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Le(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(v_),this.animationId++)}getTransformTemplate(){const{visualElement:i}=this.options;return i&&i.getProps().transformTemplate}willUpdate(i=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Pb(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let d=0;d<this.path.length;d++){const f=this.path[d];f.shouldResetTransform=!0,f.updateScroll("snapshot"),f.options.layoutRoot&&f.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),i&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Ab);return}this.isUpdating||this.nodes.forEach(p_),this.isUpdating=!1,this.nodes.forEach(h_),this.nodes.forEach(l_),this.nodes.forEach(c_),this.clearAllSnapshots();const a=rt.now();be.delta=tt(0,1e3/60,a-be.timestamp),be.timestamp=a,be.isProcessing=!0,ma.update.process(be),ma.preRender.process(be),ma.render.process(be),be.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,ba.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(f_),this.sharedNodes.forEach(y_)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,ie.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){ie.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const i=this.layout;this.layout=this.measure(!1),this.layoutCorrected=ge(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,i?i.layoutBox:void 0)}updateScroll(i="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===i&&(a=!1),a){const l=r(this.instance);this.scroll={animationId:this.root.animationId,phase:i,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!o)return;const i=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!yb(this.projectionDelta),l=this.getTransformTemplate(),c=l?l(this.latestValues,""):void 0,d=c!==this.prevTransformTemplateValue;i&&(a||Wt(this.latestValues)||d)&&(o(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(i=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return i&&(l=this.removeTransform(l)),S_(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var i;const{visualElement:a}=this.options;if(!a)return ge();const l=a.measureViewportBox();if(!(((i=this.scroll)===null||i===void 0?void 0:i.wasRoot)||this.path.some(C_))){const{scroll:d}=this.root;d&&(Cn(l.x,d.offset.x),Cn(l.y,d.offset.y))}return l}removeElementScroll(i){var a;const l=ge();if($e(l,i),!((a=this.scroll)===null||a===void 0)&&a.wasRoot)return l;for(let c=0;c<this.path.length;c++){const d=this.path[c],{scroll:f,options:h}=d;d!==this.root&&f&&h.layoutScroll&&(f.wasRoot&&$e(l,i),Cn(l.x,f.offset.x),Cn(l.y,f.offset.y))}return l}applyTransform(i,a=!1){const l=ge();$e(l,i);for(let c=0;c<this.path.length;c++){const d=this.path[c];!a&&d.options.layoutScroll&&d.scroll&&d!==d.root&&En(l,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),Wt(d.latestValues)&&En(l,d.latestValues)}return Wt(this.latestValues)&&En(l,this.latestValues),l}removeTransform(i){const a=ge();$e(a,i);for(let l=0;l<this.path.length;l++){const c=this.path[l];if(!c.instance||!Wt(c.latestValues))continue;hl(c.latestValues)&&c.updateSnapshot();const d=ge(),f=c.measurePageBox();$e(d,f),gb(a,c.latestValues,c.snapshot?c.snapshot.layoutBox:void 0,d)}return Wt(this.latestValues)&&gb(a,this.latestValues),a}setTargetDelta(i){this.targetDelta=i,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(i){this.options={...this.options,...i,crossfade:i.crossfade!==void 0?i.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==be.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(i=!1){var a;const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const c=!!this.resumingFrom||this!==l;if(!(i||c&&this.isSharedProjectionDirty||this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:f,layoutId:h}=this.options;if(!(!this.layout||!(f||h))){if(this.resolvedRelativeTargetAt=be.timestamp,!this.targetDelta&&!this.relativeTarget){const m=this.getClosestProjectingParent();m&&m.layout&&this.animationProgress!==1?(this.relativeParent=m,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ge(),this.relativeTargetOrigin=ge(),yr(this.relativeTargetOrigin,this.layout.layoutBox,m.layout.layoutBox),$e(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=ge(),this.targetWithTransforms=ge()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),ND(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):$e(this.target,this.layout.layoutBox),qy(this.target,this.targetDelta)):$e(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const m=this.getClosestProjectingParent();m&&!!m.resumingFrom==!!this.resumingFrom&&!m.options.layoutScroll&&m.target&&this.animationProgress!==1?(this.relativeParent=m,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ge(),this.relativeTargetOrigin=ge(),yr(this.relativeTargetOrigin,this.target,m.target),$e(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}wr&&Ht.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||hl(this.parent.latestValues)||Ky(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var i;const a=this.getLead(),l=!!this.resumingFrom||this!==a;let c=!0;if((this.isProjectionDirty||!((i=this.parent)===null||i===void 0)&&i.isProjectionDirty)&&(c=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===be.timestamp&&(c=!1),c)return;const{layout:d,layoutId:f}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(d||f))return;$e(this.layoutCorrected,this.layout.layoutBox);const h=this.treeScale.x,m=this.treeScale.y;$D(this.layoutCorrected,this.treeScale,this.path,l),a.layout&&!a.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(a.target=a.layout.layoutBox,a.targetWithTransforms=ge());const{target:y}=a;if(!y){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(pb(this.prevProjectionDelta.x,this.projectionDelta.x),pb(this.prevProjectionDelta.y,this.projectionDelta.y)),vr(this.projectionDelta,this.layoutCorrected,y,this.latestValues),(this.treeScale.x!==h||this.treeScale.y!==m||!Cb(this.projectionDelta.x,this.prevProjectionDelta.x)||!Cb(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",y)),wr&&Ht.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(i=!0){var a;if((a=this.options.visualElement)===null||a===void 0||a.scheduleRender(),i){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Sn(),this.projectionDelta=Sn(),this.projectionDeltaWithTransform=Sn()}setAnimationOrigin(i,a=!1){const l=this.snapshot,c=l?l.latestValues:{},d={...this.latestValues},f=Sn();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const h=ge(),m=l?l.source:void 0,y=this.layout?this.layout.source:void 0,g=m!==y,v=this.getStack(),b=!v||v.members.length<=1,w=!!(g&&!b&&this.options.crossfade===!0&&!this.path.some(w_));this.animationProgress=0;let x;this.mixTargetDelta=S=>{const C=S/1e3;Mb(f.x,i.x,C),Mb(f.y,i.y,C),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(yr(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox),b_(this.relativeTarget,this.relativeTargetOrigin,h,C),x&&r_(this.relativeTarget,x)&&(this.isProjectionDirty=!1),x||(x=ge()),$e(x,this.relativeTarget)),g&&(this.animationValues=d,ZD(d,c,this.latestValues,C,w,b)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=C},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(i){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Le(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ie.update(()=>{ss.hasAnimatedSinceResize=!0,this.currentAnimation=sb(0,Eb,{...i,onUpdate:a=>{this.mixTargetDelta(a),i.onUpdate&&i.onUpdate(a)},onComplete:()=>{i.onComplete&&i.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const i=this.getStack();i&&i.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Eb),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const i=this.getLead();let{targetWithTransforms:a,target:l,layout:c,latestValues:d}=i;if(!(!a||!l||!c)){if(this!==i&&this.layout&&c&&Ob(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||ge();const f=Me(this.layout.layoutBox.x);l.x.min=i.target.x.min,l.x.max=l.x.min+f;const h=Me(this.layout.layoutBox.y);l.y.min=i.target.y.min,l.y.max=l.y.min+h}$e(a,l),En(a,d),vr(this.projectionDeltaWithTransform,this.layoutCorrected,a,d)}}registerSharedNode(i,a){this.sharedNodes.has(i)||this.sharedNodes.set(i,new o_),this.sharedNodes.get(i).add(a);const c=a.options.initialPromotionConfig;a.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(a):void 0})}isLead(){const i=this.getStack();return i?i.lead===this:!0}getLead(){var i;const{layoutId:a}=this.options;return a?((i=this.getStack())===null||i===void 0?void 0:i.lead)||this:this}getPrevLead(){var i;const{layoutId:a}=this.options;return a?(i=this.getStack())===null||i===void 0?void 0:i.prevLead:void 0}getStack(){const{layoutId:i}=this.options;if(i)return this.root.sharedNodes.get(i)}promote({needsReset:i,transition:a,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),i&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const i=this.getStack();return i?i.relegate(this):!1}resetSkewAndRotation(){const{visualElement:i}=this.options;if(!i)return;let a=!1;const{latestValues:l}=i;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const c={};l.z&&vl("z",i,c,this.animationValues);for(let d=0;d<gl.length;d++)vl(`rotate${gl[d]}`,i,c,this.animationValues),vl(`skew${gl[d]}`,i,c,this.animationValues);i.render();for(const d in c)i.setStaticValue(d,c[d]),this.animationValues&&(this.animationValues[d]=c[d]);i.scheduleRender()}getProjectionStyles(i){var a,l;if(!this.instance||this.isSVG)return;if(!this.isVisible)return i_;const c={visibility:""},d=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,c.opacity="",c.pointerEvents=Wo(i==null?void 0:i.pointerEvents)||"",c.transform=d?d(this.latestValues,""):"none",c;const f=this.getLead();if(!this.projectionDelta||!this.layout||!f.target){const g={};return this.options.layoutId&&(g.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,g.pointerEvents=Wo(i==null?void 0:i.pointerEvents)||""),this.hasProjected&&!Wt(this.latestValues)&&(g.transform=d?d({},""):"none",this.hasProjected=!1),g}const h=f.animationValues||f.latestValues;this.applyTransformsToTarget(),c.transform=s_(this.projectionDeltaWithTransform,this.treeScale,h),d&&(c.transform=d(h,c.transform));const{x:m,y}=this.projectionDelta;c.transformOrigin=`${m.origin*100}% ${y.origin*100}% 0`,f.animationValues?c.opacity=f===this?(l=(a=h.opacity)!==null&&a!==void 0?a:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:h.opacityExit:c.opacity=f===this?h.opacity!==void 0?h.opacity:"":h.opacityExit!==void 0?h.opacityExit:0;for(const g in jo){if(h[g]===void 0)continue;const{correct:v,applyTo:b}=jo[g],w=c.transform==="none"?h[g]:v(h[g],f);if(b){const x=b.length;for(let S=0;S<x;S++)c[b[S]]=w}else c[g]=w}return this.options.layoutId&&(c.pointerEvents=f===this?Wo(i==null?void 0:i.pointerEvents)||"":"none"),c}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(i=>{var a;return(a=i.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(Ab),this.root.sharedNodes.clear()}}}function l_(e){e.updateLayout()}function c_(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:o}=e.layout,{animationType:s}=e.options,i=n.source!==e.layout.source;s==="size"?Ve(f=>{const h=i?n.measuredBox[f]:n.layoutBox[f],m=Me(h);h.min=r[f].min,h.max=h.min+m}):Ob(s,n.layoutBox,r)&&Ve(f=>{const h=i?n.measuredBox[f]:n.layoutBox[f],m=Me(r[f]);h.max=h.min+m,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+m)});const a=Sn();vr(a,r,n.layoutBox);const l=Sn();i?vr(l,e.applyTransform(o,!0),n.measuredBox):vr(l,r,n.layoutBox);const c=!yb(a);let d=!1;if(!e.resumeFrom){const f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:h,layout:m}=f;if(h&&m){const y=ge();yr(y,n.layoutBox,h.layoutBox);const g=ge();yr(g,r,m.layoutBox),xb(y,g)||(d=!0),f.options.layoutRoot&&(e.relativeTarget=g,e.relativeTargetOrigin=y,e.relativeParent=f)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:c,hasRelativeTargetChanged:d})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function u_(e){wr&&Ht.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function d_(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function f_(e){e.clearSnapshot()}function Ab(e){e.clearMeasurements()}function p_(e){e.isLayoutDirty=!1}function h_(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Nb(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function m_(e){e.resolveTargetDelta()}function g_(e){e.calcProjection()}function v_(e){e.resetSkewAndRotation()}function y_(e){e.removeLeadSnapshot()}function Mb(e,t,n){e.translate=ue(t.translate,0,n),e.scale=ue(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Ib(e,t,n,r){e.min=ue(t.min,n.min,r),e.max=ue(t.max,n.max,r)}function b_(e,t,n,r){Ib(e.x,t.x,n.x,r),Ib(e.y,t.y,n.y,r)}function w_(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const x_={duration:.45,ease:[.4,0,.1,1]},Db=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),_b=Db("applewebkit/")&&!Db("chrome/")?Math.round:Ee;function kb(e){e.min=_b(e.min),e.max=_b(e.max)}function S_(e){kb(e.x),kb(e.y)}function Ob(e,t,n){return e==="position"||e==="preserve-aspect"&&!AD(Sb(t),Sb(n),.2)}function C_(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const E_=Tb({attachResizeListener:(e,t)=>hr(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),yl={current:void 0},Lb=Tb({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!yl.current){const e=new E_({});e.mount(window),e.setOptions({layoutScroll:!0}),yl.current=e}return yl.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),P_={pan:{Feature:HD},drag:{Feature:WD,ProjectionNode:Lb,MeasureLayout:ob}};function Vb(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const o="onHover"+n,s=r[o];s&&ie.postRender(()=>s(t,mr(t)))}class T_ extends Nt{mount(){const{current:t}=this.node;t&&(this.unmount=D1(t,n=>(Vb(this.node,n,"Start"),r=>Vb(this.node,r,"End"))))}unmount(){}}class A_ extends Nt{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=pr(hr(this.node.current,"focus",()=>this.onFocus()),hr(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function $b(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const o="onTap"+(n==="End"?"":n),s=r[o];s&&ie.postRender(()=>s(t,mr(t)))}class N_ extends Nt{mount(){const{current:t}=this.node;t&&(this.unmount=L1(t,n=>($b(this.node,n,"Start"),(r,{success:o})=>$b(this.node,r,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const bl=new WeakMap,wl=new WeakMap,M_=e=>{const t=bl.get(e.target);t&&t(e)},I_=e=>{e.forEach(M_)};function D_({root:e,...t}){const n=e||document;wl.has(n)||wl.set(n,{});const r=wl.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(I_,{root:e,...t})),r[o]}function __(e,t,n){const r=D_(t);return bl.set(e,n),r.observe(e),()=>{bl.delete(e),r.unobserve(e)}}const k_={some:0,all:1};class O_ extends Nt{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:o="some",once:s}=t,i={root:n?n.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:k_[o]},a=l=>{const{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,s&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:d,onViewportLeave:f}=this.node.getProps(),h=c?d:f;h&&h(l)};return __(this.node.current,i,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(L_(t,n))&&this.startObserver()}unmount(){}}function L_({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const V_={inView:{Feature:O_},tap:{Feature:N_},focus:{Feature:A_},hover:{Feature:T_}},$_={layout:{ProjectionNode:Lb,MeasureLayout:ob}},xl={current:null},Fb={current:!1};function F_(){if(Fb.current=!0,!!pa)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>xl.current=e.matches;e.addListener(t),t()}else xl.current=!1}const R_=[...dy,Se,At],B_=e=>R_.find(uy(e)),Pn=new WeakMap;function z_(e,t,n){for(const r in t){const o=t[r],s=n[r];if(me(o))e.addValue(r,o),process.env.NODE_ENV==="development"&&rr(o.version==="11.18.2",`Attempting to mix Motion versions ${o.version} with 11.18.2 may not work as expected.`);else if(me(s))e.addValue(r,ot(o,{owner:e}));else if(s!==o)if(e.hasValue(r)){const i=e.getValue(r);i.liveStyle===!0?i.jump(o):i.hasAnimated||i.set(o)}else{const i=e.getStaticValue(r);e.addValue(r,ot(i!==void 0?i:o,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const Rb=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Bb{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:o,blockInitialAnimation:s,visualState:i},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=qa,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const m=rt.now();this.renderScheduledAt<m&&(this.renderScheduledAt=m,ie.render(this.render,!1,!0))};const{latestValues:l,renderState:c,onUpdate:d}=i;this.onUpdate=d,this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=c,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=a,this.blockInitialAnimation=!!s,this.isControllingVariants=zo(n),this.isVariantNode=ov(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:f,...h}=this.scrapeMotionValuesFromProps(n,{},this);for(const m in h){const y=h[m];l[m]!==void 0&&me(y)&&y.set(l[m],!1)}}mount(t){this.current=t,Pn.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),Fb.current||F_(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:xl.current,process.env.NODE_ENV!=="production"&&rr(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Pn.delete(this.current),this.projection&&this.projection.unmount(),Le(this.notifyUpdate),Le(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=Ft.has(t),o=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&ie.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),s=n.on("renderRequest",this.scheduleRender);let i;window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{o(),s(),i&&i(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in gn){const n=gn[t];if(!n)continue;const{isEnabled:r,Feature:o}=n;if(!this.features[t]&&o&&r(this.props)&&(this.features[t]=new o(this)),this.features[t]){const s=this.features[t];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):ge()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<Rb.length;r++){const o=Rb[r];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const s="on"+o,i=t[s];i&&(this.propEventSubscriptions[o]=this.on(o,i))}this.prevMotionValues=z_(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=ot(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let o=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return o!=null&&(typeof o=="string"&&(ly(o)||Xv(o))?o=parseFloat(o):!B_(o)&&At.test(n)&&(o=ny(t,n)),this.setBaseTarget(t,me(o)?o.get():o)),me(o)?o.get():o}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let o;if(typeof r=="string"||typeof r=="object"){const i=xa(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);i&&(o=i[t])}if(r&&o!==void 0)return o;const s=this.getBaseTargetFromProps(this.props,t);return s!==void 0&&!me(s)?s:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new $a),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class zb extends Bb{constructor(){super(...arguments),this.KeyframeResolver=py}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;me(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function W_(e){return window.getComputedStyle(e)}class Wb extends zb{constructor(){super(...arguments),this.type="html",this.renderInstance=yv}readValueFromInstance(t,n){if(Ft.has(n)){const r=Ka(n);return r&&r.default||0}else{const r=W_(t),o=(fv(n)?r.getPropertyValue(n):r[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return eb(t,n)}build(t,n,r){Pa(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Ma(t,n,r)}}class Hb extends zb{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ge}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Ft.has(n)){const r=Ka(n);return r&&r.default||0}return n=bv.has(n)?n:ya(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return Sv(t,n,r)}build(t,n,r){Ta(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,o){wv(t,n,r,o)}mount(t){this.isSVGTag=Na(t.tagName),super.mount(t)}}const H_=(e,t)=>wa(e)?new Hb(t):new Wb(t,{allowProjection:e!==P.Fragment}),j_=T1({...yD,...V_,...P_,...$_},H_),se=WM(j_);function U_(e,t,n){P.useInsertionEffect(()=>e.on(t,n),[e,t,n])}function jb(e,t){let n;const r=()=>{const{currentTime:o}=t,i=(o===null?0:o.value)/100;n!==i&&e(i),n=i};return ie.update(r,!0),()=>Le(r)}const is=new WeakMap;let Mt;function G_(e,t){if(t){const{inlineSize:n,blockSize:r}=t[0];return{width:n,height:r}}else return e instanceof SVGElement&&"getBBox"in e?e.getBBox():{width:e.offsetWidth,height:e.offsetHeight}}function K_({target:e,contentRect:t,borderBoxSize:n}){var r;(r=is.get(e))===null||r===void 0||r.forEach(o=>{o({target:e,contentSize:t,get size(){return G_(e,n)}})})}function Y_(e){e.forEach(K_)}function X_(){typeof ResizeObserver>"u"||(Mt=new ResizeObserver(Y_))}function q_(e,t){Mt||X_();const n=Xo(e);return n.forEach(r=>{let o=is.get(r);o||(o=new Set,is.set(r,o)),o.add(t),Mt==null||Mt.observe(r)}),()=>{n.forEach(r=>{const o=is.get(r);o==null||o.delete(t),o!=null&&o.size||Mt==null||Mt.unobserve(r)})}}const as=new Set;let xr;function Z_(){xr=()=>{const e={width:window.innerWidth,height:window.innerHeight},t={target:window,size:e,contentSize:e};as.forEach(n=>n(t))},window.addEventListener("resize",xr)}function J_(e){return as.add(e),xr||Z_(),()=>{as.delete(e),!as.size&&xr&&(xr=void 0)}}function Q_(e,t){return typeof e=="function"?J_(e):q_(e,t)}const ek=50,Ub=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),tk=()=>({time:0,x:Ub(),y:Ub()}),nk={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function Gb(e,t,n,r){const o=n[t],{length:s,position:i}=nk[t],a=o.current,l=n.time;o.current=e[`scroll${i}`],o.scrollLength=e[`scroll${s}`]-e[`client${s}`],o.offset.length=0,o.offset[0]=0,o.offset[1]=o.scrollLength,o.progress=Pt(0,o.scrollLength,o.current);const c=r-l;o.velocity=c>ek?0:Fa(o.current-a,c)}function rk(e,t,n){Gb(e,"x",t,n),Gb(e,"y",t,n),t.time=n}function ok(e,t){const n={x:0,y:0};let r=e;for(;r&&r!==t;)if(r instanceof HTMLElement)n.x+=r.offsetLeft,n.y+=r.offsetTop,r=r.offsetParent;else if(r.tagName==="svg"){const o=r.getBoundingClientRect();r=r.parentElement;const s=r.getBoundingClientRect();n.x+=o.left-s.left,n.y+=o.top-s.top}else if(r instanceof SVGGraphicsElement){const{x:o,y:s}=r.getBBox();n.x+=o,n.y+=s;let i=null,a=r.parentNode;for(;!i;)a.tagName==="svg"&&(i=a),a=r.parentNode;r=i}else break;return n}const Sl={start:0,center:.5,end:1};function Kb(e,t,n=0){let r=0;if(e in Sl&&(e=Sl[e]),typeof e=="string"){const o=parseFloat(e);e.endsWith("px")?r=o:e.endsWith("%")?e=o/100:e.endsWith("vw")?r=o/100*document.documentElement.clientWidth:e.endsWith("vh")?r=o/100*document.documentElement.clientHeight:e=o}return typeof e=="number"&&(r=t*e),n+r}const sk=[0,0];function ik(e,t,n,r){let o=Array.isArray(e)?e:sk,s=0,i=0;return typeof e=="number"?o=[e,e]:typeof e=="string"&&(e=e.trim(),e.includes(" ")?o=e.split(" "):o=[e,Sl[e]?e:"0"]),s=Kb(o[0],n,r),i=Kb(o[1],t),s-i}const ak={All:[[0,0],[1,1]]},lk={x:0,y:0};function ck(e){return"getBBox"in e&&e.tagName!=="svg"?e.getBBox():{width:e.clientWidth,height:e.clientHeight}}function uk(e,t,n){const{offset:r=ak.All}=n,{target:o=e,axis:s="y"}=n,i=s==="y"?"height":"width",a=o!==e?ok(o,e):lk,l=o===e?{width:e.scrollWidth,height:e.scrollHeight}:ck(o),c={width:e.clientWidth,height:e.clientHeight};t[s].offset.length=0;let d=!t[s].interpolate;const f=r.length;for(let h=0;h<f;h++){const m=ik(r[h],c[i],l[i],a[s]);!d&&m!==t[s].interpolatorOffsets[h]&&(d=!0),t[s].offset[h]=m}d&&(t[s].interpolate=sl(t[s].offset,il(r),{clamp:!1}),t[s].interpolatorOffsets=[...t[s].offset]),t[s].progress=tt(0,1,t[s].interpolate(t[s].current))}function dk(e,t=e,n){if(n.x.targetOffset=0,n.y.targetOffset=0,t!==e){let r=t;for(;r&&r!==e;)n.x.targetOffset+=r.offsetLeft,n.y.targetOffset+=r.offsetTop,r=r.offsetParent}n.x.targetLength=t===e?t.scrollWidth:t.clientWidth,n.y.targetLength=t===e?t.scrollHeight:t.clientHeight,n.x.containerLength=e.clientWidth,n.y.containerLength=e.clientHeight,process.env.NODE_ENV!=="production"&&e&&t&&t!==e&&rr(getComputedStyle(e).position!=="static","Please ensure that the container has a non-static position, like 'relative', 'fixed', or 'absolute' to ensure scroll offset is calculated correctly.")}function fk(e,t,n,r={}){return{measure:()=>dk(e,r.target,n),update:o=>{rk(e,n,o),(r.offset||r.target)&&uk(e,n,r)},notify:()=>t(n)}}const Sr=new WeakMap,Yb=new WeakMap,Cl=new WeakMap,Xb=e=>e===document.documentElement?window:e;function El(e,{container:t=document.documentElement,...n}={}){let r=Cl.get(t);r||(r=new Set,Cl.set(t,r));const o=tk(),s=fk(t,e,o,n);if(r.add(s),!Sr.has(t)){const a=()=>{for(const h of r)h.measure()},l=()=>{for(const h of r)h.update(be.timestamp)},c=()=>{for(const h of r)h.notify()},d=()=>{ie.read(a,!1,!0),ie.read(l,!1,!0),ie.update(c,!1,!0)};Sr.set(t,d);const f=Xb(t);window.addEventListener("resize",d,{passive:!0}),t!==document.documentElement&&Yb.set(t,Q_(t,d)),f.addEventListener("scroll",d,{passive:!0})}const i=Sr.get(t);return ie.read(i,!1,!0),()=>{var a;Le(i);const l=Cl.get(t);if(!l||(l.delete(s),l.size))return;const c=Sr.get(t);Sr.delete(t),c&&(Xb(t).removeEventListener("scroll",c),(a=Yb.get(t))===null||a===void 0||a(),window.removeEventListener("resize",c))}}function pk({source:e,container:t,axis:n="y"}){e&&(t=e);const r={value:0},o=El(s=>{r.value=s[n].progress*100},{container:t,axis:n});return{currentTime:r,cancel:o}}const Pl=new Map;function qb({source:e,container:t=document.documentElement,axis:n="y"}={}){e&&(t=e),Pl.has(t)||Pl.set(t,{});const r=Pl.get(t);return r[n]||(r[n]=Tv()?new ScrollTimeline({source:t,axis:n}):pk({source:t,axis:n})),r[n]}function hk(e){return e.length===2}function Zb(e){return e&&(e.target||e.offset)}function mk(e,t){return hk(e)||Zb(t)?El(n=>{e(n[t.axis].progress,n)},t):jb(e,qb(t))}function gk(e,t){if(e.flatten(),Zb(t))return e.pause(),El(n=>{e.time=e.duration*n[t.axis].progress},t);{const n=qb(t);return e.attachTimeline?e.attachTimeline(n,r=>(r.pause(),jb(o=>{r.time=r.duration*o},n))):Ee}}function vk(e,{axis:t="y",...n}={}){const r={axis:t,...n};return typeof e=="function"?mk(e,r):gk(e,r)}function Jb(e,t){$t(!!(!t||t.current),`You have defined a ${e} options but the provided ref is not yet hydrated, probably because it's defined higher up the tree. Try calling useScroll() in the same component as the ref, or setting its \`layoutEffect: false\` option.`)}const yk=()=>({scrollX:ot(0),scrollY:ot(0),scrollXProgress:ot(0),scrollYProgress:ot(0)});function Qb({container:e,target:t,layoutEffect:n=!0,...r}={}){const o=Et(yk);return(n?nr:P.useEffect)(()=>(Jb("target",t),Jb("container",e),vk((i,{x:a,y:l})=>{o.scrollX.set(a.current),o.scrollXProgress.set(a.progress),o.scrollY.set(l.current),o.scrollYProgress.set(l.progress)},{...r,container:(e==null?void 0:e.current)||void 0,target:(t==null?void 0:t.current)||void 0})),[e,t,JSON.stringify(r.offset)]),o}function It(e){const t=Et(()=>ot(e)),{isStatic:n}=P.useContext(mn);if(n){const[,r]=P.useState(e);P.useEffect(()=>t.on("change",r),[])}return t}function Tl(e,t){const n=It(t()),r=()=>n.set(t());return r(),nr(()=>{const o=()=>ie.preRender(r,!1,!0),s=e.map(i=>i.on("change",o));return()=>{s.forEach(i=>i()),Le(r)}}),n}function Al(e,...t){const n=e.length;function r(){let o="";for(let s=0;s<n;s++){o+=e[s];const i=t[s];i&&(o+=me(i)?i.get():i)}return o}return Tl(t.filter(me),r)}function e0(e){return typeof e=="number"?e:parseFloat(e)}function Cr(e,t={}){const{isStatic:n}=P.useContext(mn),r=P.useRef(null),o=It(me(e)?e0(e.get()):e),s=P.useRef(o.get()),i=P.useRef(()=>{}),a=()=>{const c=r.current;c&&c.time===0&&c.sample(be.delta),l(),r.current=UI({keyframes:[o.get(),s.current],velocity:o.getVelocity(),type:"spring",restDelta:.001,restSpeed:.01,...t,onUpdate:i.current})},l=()=>{r.current&&r.current.stop()};return P.useInsertionEffect(()=>o.attach((c,d)=>n?d(c):(s.current=c,i.current=d,ie.update(a),o.get()),l),[JSON.stringify(t)]),nr(()=>{if(me(e))return e.on("change",c=>o.set(e0(c)))},[o]),o}function bk(e){const t=P.useRef(0),{isStatic:n}=P.useContext(mn);P.useEffect(()=>{if(n)return;const r=({timestamp:o,delta:s})=>{t.current||(t.current=o),e(o-t.current,s)};return ie.update(r,!0),()=>Le(r)},[e])}const wk=e=>e&&typeof e=="object"&&e.mix,xk=e=>wk(e)?e.mix:void 0;function Sk(...e){const t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],o=e[1+n],s=e[2+n],i=e[3+n],a=sl(o,s,{mixer:xk(s[0]),...i});return t?a(r):a}function Ck(e){cr.current=[],e();const t=Tl(cr.current,e);return cr.current=void 0,t}function jt(e,t,n,r){if(typeof e=="function")return Ck(e);const o=typeof t=="function"?t:Sk(t,n,r);return Array.isArray(e)?t0(e,o):t0([e],([s])=>o(s))}function t0(e,t){const n=Et(()=>[]);return Tl(e,()=>{n.length=0;const r=e.length;for(let o=0;o<r;o++)n[o]=e[o].get();return t(n)})}function Ek(e){return P.useEffect(()=>()=>e(),[])}const Pk=(e,t,n)=>{const r=t-e;return((n-e)%r+r)%r+e};function n0(e,t){return Ey(e)?e[Pk(0,e.length,t)]:e}function Nl(e){return typeof e=="object"&&!Array.isArray(e)}function r0(e,t,n,r){return typeof e=="string"&&Nl(t)?Xo(e,n,r):e instanceof NodeList?Array.from(e):Array.isArray(e)?e:[e]}function Tk(e,t,n){return e*(t+1)}function o0(e,t,n,r){var o;return typeof t=="number"?t:t.startsWith("-")||t.startsWith("+")?Math.max(0,e+parseFloat(t)):t==="<"?n:(o=r.get(t))!==null&&o!==void 0?o:e}function Ak(e,t,n){for(let r=0;r<e.length;r++){const o=e[r];o.at>t&&o.at<n&&(Zo(e,o),r--)}}function Nk(e,t,n,r,o,s){Ak(e,o,s);for(let i=0;i<t.length;i++)e.push({value:t[i],at:ue(o,s,r[i]),easing:n0(n,i)})}function Mk(e,t){for(let n=0;n<e.length;n++)e[n]=e[n]/(t+1)}function Ik(e,t){return e.at===t.at?e.value===null?1:t.value===null?-1:0:e.at-t.at}const Dk="easeInOut",_k=20;function kk(e,{defaultTransition:t={},...n}={},r,o){const s=t.duration||.3,i=new Map,a=new Map,l={},c=new Map;let d=0,f=0,h=0;for(let m=0;m<e.length;m++){const y=e[m];if(typeof y=="string"){c.set(y,f);continue}else if(!Array.isArray(y)){c.set(y.name,o0(f,y.at,d,c));continue}let[g,v,b={}]=y;b.at!==void 0&&(f=o0(f,b.at,d,c));let w=0;const x=(S,C,T,A=0,N=0)=>{const I=Ok(S),{delay:O=0,times:L=il(I),type:V="keyframes",repeat:U,repeatType:_,repeatDelay:K=0,...H}=C;let{ease:B=t.ease||"easeOut",duration:$}=C;const F=typeof O=="function"?O(A,N):O,ne=I.length,re=Ko(V)?V:o==null?void 0:o[V];if(ne<=2&&re){let j=100;if(ne===2&&$k(I)){const Z=I[1]-I[0];j=Math.abs(Z)}const Q={...H};$!==void 0&&(Q.duration=He($));const z=N1(Q,j,re);B=z.ease,$=z.duration}$??($=s);const D=f+F;L.length===1&&L[0]===0&&(L[1]=1);const G=L.length-I.length;if(G>0&&Ty(L,G),I.length===1&&I.unshift(null),U){Qe(U<_k,"Repeat count too high, must be less than 20"),$=Tk($,U);const j=[...I],Q=[...L];B=Array.isArray(B)?[...B]:[B];const z=[...B];for(let Z=0;Z<U;Z++){I.push(...j);for(let q=0;q<j.length;q++)L.push(Q[q]+(Z+1)),B.push(q===0?"linear":n0(z,q-1))}Mk(L,U)}const X=D+$;Nk(T,I,B,L,D,X),w=Math.max(F+$,w),h=Math.max(X,h)};if(me(g)){const S=s0(g,a);x(v,b,i0("default",S))}else{const S=r0(g,v,r,l),C=S.length;for(let T=0;T<C;T++){v=v,b=b;const A=S[T],N=s0(A,a);for(const I in v)x(v[I],Lk(b,I),i0(I,N),T,C)}}d=f,f+=w}return a.forEach((m,y)=>{for(const g in m){const v=m[g];v.sort(Ik);const b=[],w=[],x=[];for(let C=0;C<v.length;C++){const{at:T,value:A,easing:N}=v[C];b.push(A),w.push(Pt(0,h,T)),x.push(N||"easeOut")}w[0]!==0&&(w.unshift(0),b.unshift(b[0]),x.unshift(Dk)),w[w.length-1]!==1&&(w.push(1),b.push(null)),i.has(y)||i.set(y,{keyframes:{},transition:{}});const S=i.get(y);S.keyframes[g]=b,S.transition[g]={...t,duration:h,ease:x,times:w,...n}}}),i}function s0(e,t){return!t.has(e)&&t.set(e,{}),t.get(e)}function i0(e,t){return t[e]||(t[e]=[]),t[e]}function Ok(e){return Array.isArray(e)?e:[e]}function Lk(e,t){return e&&e[t]?{...e,...e[t]}:{...e}}const Vk=e=>typeof e=="number",$k=e=>e.every(Vk);function Fk(e,t){return e in t}class Rk extends Bb{constructor(){super(...arguments),this.type="object"}readValueFromInstance(t,n){if(Fk(n,t)){const r=t[n];if(typeof r=="string"||typeof r=="number")return r}}getBaseTargetFromProps(){}removeValueFromRenderState(t,n){delete n.output[t]}measureInstanceViewportBox(){return ge()}build(t,n){Object.assign(t.output,n)}renderInstance(t,{output:n}){Object.assign(t,n)}sortInstanceNodePosition(){return 0}}function Bk(e){const t={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},n=ib(e)?new Hb(t):new Wb(t);n.mount(e),Pn.set(e,n)}function zk(e){const t={presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}},n=new Rk(t);n.mount(e),Pn.set(e,n)}function Wk(e,t){return me(e)||typeof e=="number"||typeof e=="string"&&!Nl(t)}function a0(e,t,n,r){const o=[];if(Wk(e,t))o.push(sb(e,Nl(t)&&t.default||t,n&&(n.default||n)));else{const s=r0(e,t,r),i=s.length;Qe(!!i,"No valid elements provided.");for(let a=0;a<i;a++){const l=s[a],c=l instanceof Element?Bk:zk;Pn.has(l)||c(l);const d=Pn.get(l),f={...n};"delay"in f&&typeof f.delay=="function"&&(f.delay=f.delay(a,i)),o.push(...ll(d,{...t,transition:f},{}))}}return o}function Hk(e,t,n){const r=[];return kk(e,t,n,{spring:rl}).forEach(({keyframes:s,transition:i},a)=>{r.push(...a0(a,s,i))}),r}function jk(e){return Array.isArray(e)&&e.some(Array.isArray)}function Uk(e){function t(n,r,o){let s=[];jk(n)?s=Hk(n,r,e):s=a0(n,r,o,e);const i=new Av(s);return e&&e.animations.push(i),i}return t}function Gk(){const e=Et(()=>({current:null,animations:[]})),t=Et(()=>Uk(e));return Ek(()=>{e.animations.forEach(n=>n.stop())}),[e,t]}const Kk={some:0,all:1};function Yk(e,t,{root:n,margin:r,amount:o="some"}={}){const s=Xo(e),i=new WeakMap,a=c=>{c.forEach(d=>{const f=i.get(d.target);if(d.isIntersecting!==!!f)if(d.isIntersecting){const h=t(d);typeof h=="function"?i.set(d.target,h):l.unobserve(d.target)}else typeof f=="function"&&(f(d),i.delete(d.target))})},l=new IntersectionObserver(a,{root:n,rootMargin:r,threshold:typeof o=="number"?o:Kk[o]});return s.forEach(c=>l.observe(c)),()=>l.disconnect()}function Xk(e,{root:t,margin:n,amount:r,once:o=!1}={}){const[s,i]=P.useState(!1);return P.useEffect(()=>{if(!e.current||o&&s)return;const a=()=>(i(!0),o?void 0:()=>i(!1)),l={root:t&&t.current||void 0,margin:n,amount:r};return Yk(e.current,a,l)},[t,e,n,o,r]),s}function qk(e,t){if(e==="first")return 0;{const n=t-1;return e==="last"?n:n/2}}function Zk(e=.1,{startDelay:t=0,from:n=0,ease:r}={}){return(o,s)=>{const i=typeof n=="number"?n:qk(n,s),a=Math.abs(i-o);let l=e*a;if(r){const c=s*e;l=ol(r)(l/c)*c}return t+l}}const Jk=()=>p.jsx("div",{className:"flex h-[50vh] w-full items-center justify-center",children:p.jsx(se.div,{animate:{scale:[1,1.2,1],rotate:[0,180,360],borderRadius:["20%","50%","20%"]},transition:{duration:2,ease:"easeInOut",repeat:1/0},className:"h-12 w-12 bg-primary/20 border-2 border-primary"})});function Qk({value:e,className:t}){const n=Cr(e,{mass:.8,stiffness:75,damping:15}),r=jt(n,o=>Math.round(o).toLocaleString());return P.useEffect(()=>{n.set(e)},[n,e]),p.jsx(se.span,{className:M("font-mono",t),children:r})}const eO=({tabs:e,containerClassName:t,activeTabClassName:n,tabClassName:r,contentClassName:o})=>{const[s,i]=P.useState(e[0]),[a,l]=P.useState(e),c=h=>{const m=[...e],y=m.splice(h,1);m.unshift(y[0]),l(m),i(m[0])},[d,f]=P.useState(!1);return p.jsxs(p.Fragment,{children:[p.jsx("div",{className:M("flex flex-row items-center justify-start [perspective:1000px] relative overflow-auto sm:overflow-visible no-visible-scrollbar max-w-full w-full",t),children:e.map((h,m)=>p.jsxs("button",{onClick:()=>{c(m)},onMouseEnter:()=>f(!0),onMouseLeave:()=>f(!1),className:M("relative px-4 py-2 rounded-full",r),style:{transformStyle:"preserve-3d"},children:[s.value===h.value&&p.jsx(se.div,{layoutId:"clickedbutton",transition:{type:"spring",bounce:.3,duration:.6},className:M("absolute inset-0 bg-gray-200 dark:bg-zinc-800 rounded-full ",n)}),p.jsx("span",{className:"relative block text-black dark:text-white",children:h.title})]},h.title))}),p.jsx(l0,{tabs:a,active:s,hovering:d,className:M("mt-32",o)},s.value)]})},l0=({className:e,tabs:t,hovering:n})=>{const r=o=>o.value===t[0].value;return p.jsx("div",{className:"relative w-full h-full",children:t.map((o,s)=>p.jsx(se.div,{layoutId:o.value,style:{scale:1-s*.1,top:n?s*-50:0,zIndex:-s,opacity:s<3?1-s*.1:0},animate:{y:r(o)?[0,40,0]:0},className:M("w-full h-full absolute top-0 left-0",e),children:o.content},o.value))})},tO=({items:e})=>{const[t,n]=P.useState(null),r={stiffness:100,damping:5},o=It(0),s=Cr(jt(o,[-100,100],[-45,45]),r),i=Cr(jt(o,[-100,100],[-50,50]),r),a=l=>{const c=l.target.offsetWidth/2;o.set(l.nativeEvent.offsetX-c)};return p.jsx(p.Fragment,{children:e.map(l=>p.jsxs("div",{className:"-mr-4 relative group",onMouseEnter:()=>n(l.id),onMouseLeave:()=>n(null),children:[p.jsx(Vo,{mode:"popLayout",children:t===l.id&&p.jsxs(se.div,{initial:{opacity:0,y:20,scale:.6},animate:{opacity:1,y:0,scale:1,transition:{type:"spring",stiffness:260,damping:10}},exit:{opacity:0,y:20,scale:.6},style:{translateX:i,rotate:s,whiteSpace:"nowrap"},className:"absolute -top-16 -left-1/2 translate-x-1/2 flex text-xs flex-col items-center justify-center rounded-md bg-black z-50 shadow-xl px-4 py-2",children:[p.jsx("div",{className:"absolute inset-x-10 z-30 w-[20%] -bottom-px bg-gradient-to-r from-transparent via-emerald-500 to-transparent h-px "}),p.jsx("div",{className:"absolute left-10 w-[40%] z-30 -bottom-px bg-gradient-to-r from-transparent via-sky-500 to-transparent h-px "}),p.jsx("div",{className:"font-bold text-white relative z-30 text-base",children:l.name}),p.jsx("div",{className:"text-white text-xs",children:l.designation})]})}),p.jsx("img",{onMouseMove:a,height:100,width:100,src:l.image,alt:l.name,className:"object-cover !m-0 !p-0 object-top rounded-full h-14 w-14 border-2 group-hover:scale-105 group-hover:z-30 border-white relative transition duration-500"})]},l.name))})},c0=({className:e,...t})=>{const n=new Array(150).fill(1),r=new Array(100).fill(1);let o=["--sky-300","--pink-300","--green-300","--yellow-300","--red-300","--purple-300","--blue-300","--indigo-300","--violet-300"];const s=()=>o[Math.floor(Math.random()*o.length)];return p.jsx("div",{style:{transform:"translate(-40%,-60%) skewX(-48deg) skewY(14deg) scale(0.675) rotate(0deg) translateZ(0)"},className:M("absolute left-1/4 p-4 -top-1/4 flex -translate-x-1/2 -translate-y-1/2 w-full h-full z-0 ",e),...t,children:n.map((i,a)=>p.jsx(se.div,{className:"w-16 h-8 border-l border-slate-200 dark:border-slate-700 relative",children:r.map((l,c)=>p.jsx(se.div,{whileHover:{backgroundColor:`var(${s()})`,transition:{duration:0}},animate:{transition:{duration:2}},className:"w-16 h-8 border-r border-t border-slate-200 dark:border-slate-700 relative",children:c%2===0&&a%2===0?p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"absolute h-6 w-10 -top-[14px] -left-[22px] text-slate-300 dark:text-slate-700 stroke-[1px] pointer-events-none",children:p.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6v12m6-6H6"})}):null},"col"+c))},"row"+a))})},nO=P.memo(c0),rO=({animationSpeed:e=.4,opacities:t=[.3,.3,.3,.5,.5,.5,.8,.8,.8,1],colors:n=[[0,255,255]],containerClassName:r,dotSize:o,showGradient:s=!0})=>p.jsxs("div",{className:M("h-full relative bg-white w-full",r),children:[p.jsx("div",{className:"h-full w-full",children:p.jsx(oO,{colors:n,dotSize:o??3,opacities:t,animationSpeed:e})}),s&&p.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-white to-transparent"})]}),oO=({colors:e=[[0,0,0]],opacities:t=[.04,.04,.04,.04,.04,.08,.08,.08,.08,.14],dotSize:n=2,animationSpeed:r=.4})=>{const o=P.useRef(null);return P.useEffect(()=>{const s=o.current;if(!s)return;const i=s.getContext("2d");if(!i)return;let a,l=0;const c=()=>{l+=r;const f=s.width,h=s.height;i.clearRect(0,0,f,h);const m=n*2,y=Math.floor(f/m),g=Math.floor(h/m);for(let v=0;v<y;v++)for(let b=0;b<g;b++){const w=v*m,x=b*m,S=Math.abs(Math.sin(v*12.9898+b*78.233+l*.05)),C=Math.floor(S*t.length),T=t[C%t.length],A=Math.floor(S*e.length),N=e[A%e.length];i.fillStyle=`rgba(${N[0]}, ${N[1]}, ${N[2]}, ${T})`,i.fillRect(w,x,n,n)}a=requestAnimationFrame(c)},d=()=>{const f=s.parentElement;f&&(s.width=f.clientWidth,s.height=f.clientHeight)};return window.addEventListener("resize",d),d(),c(),()=>{window.removeEventListener("resize",d),cancelAnimationFrame(a)}},[e,t,n,r]),p.jsx("canvas",{ref:o,className:"h-full w-full"})},sO=({title:e,icon:t,children:n})=>{const[r,o]=P.useState(!1);return p.jsxs("div",{onMouseEnter:()=>o(!0),onMouseLeave:()=>o(!1),className:"border border-black/[0.2] group/canvas-card flex items-center justify-center dark:border-white/[0.2] max-w-sm w-full mx-auto p-4 relative h-[30rem] ",children:[p.jsx(Er,{className:"absolute h-6 w-6 -top-3 -left-3 dark:text-white text-black"}),p.jsx(Er,{className:"absolute h-6 w-6 -bottom-3 -left-3 dark:text-white text-black"}),p.jsx(Er,{className:"absolute h-6 w-6 -top-3 -right-3 dark:text-white text-black"}),p.jsx(Er,{className:"absolute h-6 w-6 -bottom-3 -right-3 dark:text-white text-black"}),p.jsx(Vo,{children:r&&p.jsx(se.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"h-full w-full absolute inset-0",children:n})}),p.jsxs("div",{className:"relative z-20",children:[p.jsx("div",{className:"text-center group-hover/canvas-card:-translate-y-4 group-hover/canvas-card:opacity-0 transition duration-200 w-full mx-auto flex items-center justify-center",children:t}),p.jsx("h2",{className:"dark:text-white text-xl opacity-0 group-hover/canvas-card:opacity-100 relative z-10 text-black mt-4 font-bold group-hover/canvas-card:text-white group-hover/canvas-card:-translate-y-2 transition duration-200",children:e})]})]})},Er=({className:e,...t})=>p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:e,...t,children:p.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6v12m6-6H6"})});let u0;const iO=({items:e,offset:t,scaleFactor:n})=>{const r=t||10,o=n||.06,[s,i]=P.useState(e);P.useEffect(()=>(a(),()=>clearInterval(u0)),[]);const a=()=>{u0=setInterval(()=>{i(l=>{const c=[...l];return c.unshift(c.pop()),c})},5e3)};return p.jsx("div",{className:"relative h-60 w-60 md:h-60 md:w-96",children:s.map((l,c)=>p.jsxs(se.div,{className:"absolute dark:bg-black bg-white h-60 w-60 md:h-60 md:w-96 rounded-3xl p-4 shadow-xl border border-neutral-200 dark:border-white/[0.1] shadow-black/[0.1] dark:shadow-white/[0.05] flex flex-col justify-between",style:{transformOrigin:"top center"},animate:{top:c*-r,scale:1-c*o,zIndex:s.length-c},children:[p.jsx("div",{className:"font-normal text-neutral-700 dark:text-neutral-200",children:l.content}),p.jsxs("div",{children:[p.jsx("p",{className:"text-neutral-500 font-medium dark:text-white",children:l.name}),p.jsx("p",{className:"text-neutral-400 font-normal dark:text-neutral-200",children:l.designation})]})]},l.id))})},aO=({text:e,className:t})=>{let n=It(0),r=It(0);const[o,s]=P.useState("");P.useEffect(()=>{let a=Ml(1500);s(a)},[]);function i({currentTarget:a,clientX:l,clientY:c}){let{left:d,top:f}=a.getBoundingClientRect();n.set(l-d),r.set(c-f);const h=Ml(1500);s(h)}return p.jsx("div",{className:M("p-0.5 bg-transparent aspect-square flex items-center justify-center w-full h-full relative",t),children:p.jsxs("div",{onMouseMove:i,className:"group/card rounded-3xl w-full relative overflow-hidden bg-transparent flex items-center justify-center h-full",children:[p.jsx(d0,{mouseX:n,mouseY:r,randomString:o}),p.jsx("div",{className:"relative z-10 flex items-center justify-center",children:p.jsxs("div",{className:"relative h-44 w-44 rounded-full flex items-center justify-center text-white font-bold text-4xl",children:[p.jsx("div",{className:"absolute w-full h-full bg-black/80 dark:bg-[#09090b]/[0.8] blur-sm rounded-full"}),p.jsx("span",{className:"text-white z-20",children:e})]})})]})})};function d0({mouseX:e,mouseY:t,randomString:n}){let r=Al`radial-gradient(250px at ${e}px ${t}px, white, transparent)`,o={maskImage:r,WebkitMaskImage:r};return p.jsxs("div",{className:"pointer-events-none",children:[p.jsx("div",{className:"absolute inset-0 rounded-2xl [mask-image:linear-gradient(white,transparent)] group-hover/card:opacity-50"}),p.jsx(se.div,{className:"absolute inset-0 rounded-2xl bg-gradient-to-r from-emerald-500 to-teal-700 opacity-0 group-hover/card:opacity-100 backdrop-blur-xl transition duration-500",style:o}),p.jsx(se.div,{className:"absolute inset-0 rounded-2xl opacity-0 mix-blend-overlay group-hover/card:opacity-100",style:o,children:p.jsx("p",{className:"absolute inset-x-0 text-xs h-full break-words whitespace-pre-wrap text-white font-mono font-bold transition duration-500",children:n})})]})}const f0="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",Ml=e=>{let t="";for(let n=0;n<e;n++)t+=f0.charAt(Math.floor(Math.random()*f0.length));return t},lO=({className:e,...t})=>p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:e,...t,children:p.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6v12m6-6H6"})}),cO=({words:e,duration:t=3e3,className:n})=>{const[r,o]=P.useState(e[0]),[s,i]=P.useState(!1),a=P.useCallback(()=>{const l=e[e.indexOf(r)+1]||e[0];o(l),i(!0)},[r,e]);return P.useEffect(()=>{s||setTimeout(()=>{a()},t)},[s,t,a]),p.jsx(Vo,{onExitComplete:()=>{i(!1)},children:p.jsx(se.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{type:"spring",stiffness:100,damping:10},exit:{opacity:0,y:-40,x:40,filter:"blur(8px)",scale:2,position:"absolute"},className:M("z-10 inline-block relative text-left text-neutral-900 dark:text-neutral-100 px-2",n),children:r.split("").map((l,c)=>p.jsx(se.span,{initial:{opacity:0,y:10,filter:"blur(8px)"},animate:{opacity:1,y:0,filter:"blur(0px)"},transition:{delay:c*.08,duration:.4,filter:{type:"tween",duration:.4}},className:"inline-block",children:l},r+c))},r)})},uO=({text:e,className:t})=>p.jsx("div",{className:M("relative inline-block",t),children:p.jsxs("span",{className:"relative inline-block",children:[e,p.jsx("span",{className:"absolute top-0 left-0 -z-10 w-full h-full text-red-500 opacity-80 animate-glitch-1","aria-hidden":"true",children:e}),p.jsx("span",{className:"absolute top-0 left-0 -z-10 w-full h-full text-cyan-400 opacity-80 animate-glitch-2","aria-hidden":"true",children:e}),p.jsx("span",{className:"absolute top-0 left-0 -z-10 w-full h-full text-green-500 opacity-80 animate-glitch-1 [animation-delay:0.5s]","aria-hidden":"true",children:e})]})});var Il,ls="HoverCard",[p0]=ye(ls,[qe]),cs=qe(),[dO,Dl]=p0(ls),h0=e=>{const{__scopeHoverCard:t,children:n,open:r,defaultOpen:o,onOpenChange:s,openDelay:i=700,closeDelay:a=300}=e,l=cs(t),c=u.useRef(0),d=u.useRef(0),f=u.useRef(!1),h=u.useRef(!1),[m,y]=we({prop:r,defaultProp:o??!1,onChange:s,caller:ls}),g=u.useCallback(()=>{clearTimeout(d.current),c.current=window.setTimeout(()=>y(!0),i)},[i,y]),v=u.useCallback(()=>{clearTimeout(c.current),!f.current&&!h.current&&(d.current=window.setTimeout(()=>y(!1),a))},[a,y]),b=u.useCallback(()=>y(!1),[y]);return u.useEffect(()=>()=>{clearTimeout(c.current),clearTimeout(d.current)},[]),p.jsx(dO,{scope:t,open:m,onOpenChange:y,onOpen:g,onClose:v,onDismiss:b,hasSelectionRef:f,isPointerDownOnContentRef:h,children:p.jsx(en,{...l,children:n})})};h0.displayName=ls;var m0="HoverCardTrigger",g0=u.forwardRef((e,t)=>{const{__scopeHoverCard:n,...r}=e,o=Dl(m0,n),s=cs(n);return p.jsx(tn,{asChild:!0,...s,children:p.jsx(W.a,{"data-state":o.open?"open":"closed",...r,ref:t,onPointerEnter:k(e.onPointerEnter,ds(o.onOpen)),onPointerLeave:k(e.onPointerLeave,ds(o.onClose)),onFocus:k(e.onFocus,o.onOpen),onBlur:k(e.onBlur,o.onClose),onTouchStart:k(e.onTouchStart,i=>i.preventDefault())})})});g0.displayName=m0;var fO="HoverCardPortal",[ZO,pO]=p0(fO,{forceMount:void 0}),us="HoverCardContent",v0=u.forwardRef((e,t)=>{const n=pO(us,e.__scopeHoverCard),{forceMount:r=n.forceMount,...o}=e,s=Dl(us,e.__scopeHoverCard);return p.jsx(ve,{present:r||s.open,children:p.jsx(hO,{"data-state":s.open?"open":"closed",...o,onPointerEnter:k(e.onPointerEnter,ds(s.onOpen)),onPointerLeave:k(e.onPointerLeave,ds(s.onClose)),ref:t})})});v0.displayName=us;var hO=u.forwardRef((e,t)=>{const{__scopeHoverCard:n,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:i,...a}=e,l=Dl(us,n),c=cs(n),d=u.useRef(null),f=J(t,d),[h,m]=u.useState(!1);return u.useEffect(()=>{if(h){const y=document.body;return Il=y.style.userSelect||y.style.webkitUserSelect,y.style.userSelect="none",y.style.webkitUserSelect="none",()=>{y.style.userSelect=Il,y.style.webkitUserSelect=Il}}},[h]),u.useEffect(()=>{if(d.current){const y=()=>{m(!1),l.isPointerDownOnContentRef.current=!1,setTimeout(()=>{var v;((v=document.getSelection())==null?void 0:v.toString())!==""&&(l.hasSelectionRef.current=!0)})};return document.addEventListener("pointerup",y),()=>{document.removeEventListener("pointerup",y),l.hasSelectionRef.current=!1,l.isPointerDownOnContentRef.current=!1}}},[l.isPointerDownOnContentRef,l.hasSelectionRef]),u.useEffect(()=>{d.current&&vO(d.current).forEach(g=>g.setAttribute("tabindex","-1"))}),p.jsx(mt,{asChild:!0,disableOutsidePointerEvents:!1,onInteractOutside:i,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:k(s,y=>{y.preventDefault()}),onDismiss:l.onDismiss,children:p.jsx(Fn,{...c,...a,onPointerDown:k(a.onPointerDown,y=>{y.currentTarget.contains(y.target)&&m(!0),l.hasSelectionRef.current=!1,l.isPointerDownOnContentRef.current=!0}),ref:f,style:{...a.style,userSelect:h?"text":void 0,WebkitUserSelect:h?"text":void 0,"--radix-hover-card-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-hover-card-content-available-width":"var(--radix-popper-available-width)","--radix-hover-card-content-available-height":"var(--radix-popper-available-height)","--radix-hover-card-trigger-width":"var(--radix-popper-anchor-width)","--radix-hover-card-trigger-height":"var(--radix-popper-anchor-height)"}})})}),mO="HoverCardArrow",gO=u.forwardRef((e,t)=>{const{__scopeHoverCard:n,...r}=e,o=cs(n);return p.jsx(Rn,{...o,...r,ref:t})});gO.displayName=mO;function ds(e){return t=>t.pointerType==="touch"?void 0:e()}function vO(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});for(;n.nextNode();)t.push(n.currentNode);return t}var yO=h0,bO=g0,y0=v0;const wO=yO,xO=bO,b0=u.forwardRef(({className:e,align:t="center",sideOffset:n=4,...r},o)=>p.jsx(y0,{ref:o,align:t,sideOffset:n,className:M("z-50 w-64 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 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",e),...r}));b0.displayName=y0.displayName;const SO=({items:e,direction:t="left",speed:n="fast",pauseOnHover:r=!0,className:o})=>{const s=P.useRef(null),i=P.useRef(null);P.useEffect(()=>{c()},[]);const[a,l]=P.useState(!1);function c(){s.current&&i.current&&(Array.from(i.current.children).forEach(m=>{const y=m.cloneNode(!0);i.current&&i.current.appendChild(y)}),d(),f(),l(!0))}const d=()=>{s.current&&(t==="left"?s.current.style.setProperty("--animation-direction","forwards"):s.current.style.setProperty("--animation-direction","reverse"))},f=()=>{s.current&&(n==="fast"?s.current.style.setProperty("--animation-duration","20s"):n==="normal"?s.current.style.setProperty("--animation-duration","40s"):s.current.style.setProperty("--animation-duration","80s"))};return p.jsx("div",{ref:s,className:M("scroller relative z-20 max-w-7xl overflow-hidden [mask-image:linear-gradient(to_right,transparent,white_20%,white_80%,transparent)]",o),children:p.jsx("ul",{ref:i,className:M(" flex min-w-full shrink-0 gap-4 py-4 w-max flex-nowrap",a&&"animate-scroll ",r&&"hover:[animation-play-state:paused]"),children:e.map((h,m)=>p.jsxs("li",{className:"w-[350px] max-w-full relative rounded-2xl border border-b-0 flex-shrink-0 border-zinc-200 dark:border-slate-700 px-8 py-6 md:w-[450px] bg-white dark:bg-slate-900 shadow-sm dark:shadow-none",style:{background:"linear-gradient(180deg, var(--white), var(--zinc-50))"},children:[p.jsx("div",{className:"dark:hidden absolute inset-0 bg-gradient-to-b from-white to-zinc-50 rounded-2xl -z-10"}),p.jsx("div",{className:"hidden dark:block absolute inset-0 bg-gradient-to-b from-slate-800 to-slate-900 rounded-2xl -z-10"}),p.jsxs("blockquote",{children:[p.jsx("div",{"aria-hidden":"true",className:"user-select-none -z-1 pointer-events-none absolute -left-0.5 -top-0.5 h-[calc(100%_+_4px)] w-[calc(100%_+_4px)]"}),p.jsx("span",{className:" relative z-20 text-sm leading-[1.6] text-zinc-700 dark:text-gray-100 font-normal",children:h.quote}),p.jsx("div",{className:"relative z-20 mt-6 flex flex-row items-center",children:p.jsxs("span",{className:"flex flex-col gap-1",children:[p.jsx("span",{className:" text-sm leading-[1.6] text-zinc-500 dark:text-gray-400 font-normal",children:h.name}),p.jsx("span",{className:" text-sm leading-[1.6] text-zinc-400 dark:text-gray-400 font-normal",children:h.title})]})})]})]},h.name+m))})})},CO=({className:e,height:t=40,squares:n=[20,20]})=>{const r=P.useRef(null),[o,s]=P.useState({x:0,y:0}),i=c=>{if(!r.current)return;const d=r.current.getBoundingClientRect();s({x:c.clientX-d.left,y:c.clientY-d.top})},[a,l]=n;return p.jsxs("div",{ref:r,onMouseMove:i,className:M("relative overflow-hidden border border-border bg-background",e),style:{"--mouse-x":`${o.x}px`,"--mouse-y":`${o.y}px`},children:[p.jsx("div",{className:"absolute inset-0 z-0 opacity-0 transition-opacity duration-500 hover:opacity-100 pointer-events-none",style:{background:"radial-gradient(600px circle at var(--mouse-x) var(--mouse-y), hsl(var(--primary) / 0.15), transparent 40%)"}}),p.jsx("div",{className:"relative z-10 grid",style:{gridTemplateColumns:`repeat(${l}, 1fr)`,gridTemplateRows:`repeat(${a}, 1fr)`},children:Array.from({length:a*l}).map((c,d)=>p.jsx("div",{className:"border-r border-b border-border/10",style:{width:"100%",height:`${t}px`}},d))}),p.jsx("div",{className:"absolute inset-0 z-20 pointer-events-none",style:{background:"radial-gradient(600px circle at var(--mouse-x) var(--mouse-y), hsl(var(--primary) / 0.05), transparent 40%)"}})]})},EO=({children:e,className:t})=>p.jsxs("div",{className:M("relative flex min-h-screen flex-col items-center justify-center overflow-hidden bg-slate-950 w-full rounded-md z-0",t),children:[p.jsxs("div",{className:"relative flex w-full flex-1 scale-y-125 items-center justify-center isolate z-0 ",children:[p.jsxs(se.div,{initial:{opacity:.5,width:"15rem"},whileInView:{opacity:1,width:"30rem"},transition:{delay:.3,duration:.8,ease:"easeInOut"},style:{backgroundImage:"conic-gradient(var(--conic-position), var(--tw-gradient-stops))"},className:"absolute inset-auto right-1/2 h-56 overflow-visible w-[30rem] bg-gradient-conic from-cyan-500 via-transparent to-transparent text-white [--conic-position:from_70deg_at_center_top]",children:[p.jsx("div",{className:"absolute w-[100%] left-0 bg-slate-950 h-40 bottom-0 z-20 [mask-image:linear-gradient(to_top,white,transparent)]"}),p.jsx("div",{className:"absolute w-40 h-[100%] left-0 bg-slate-950 bottom-0 z-20 [mask-image:linear-gradient(to_right,white,transparent)]"})]}),p.jsxs(se.div,{initial:{opacity:.5,width:"15rem"},whileInView:{opacity:1,width:"30rem"},transition:{delay:.3,duration:.8,ease:"easeInOut"},style:{backgroundImage:"conic-gradient(var(--conic-position), var(--tw-gradient-stops))"},className:"absolute inset-auto left-1/2 h-56 w-[30rem] bg-gradient-conic from-transparent via-transparent to-cyan-500 text-white [--conic-position:from_290deg_at_center_top]",children:[p.jsx("div",{className:"absolute w-40 h-[100%] right-0 bg-slate-950 bottom-0 z-20 [mask-image:linear-gradient(to_left,white,transparent)]"}),p.jsx("div",{className:"absolute w-[100%] right-0 bg-slate-950 h-40 bottom-0 z-20 [mask-image:linear-gradient(to_top,white,transparent)]"})]}),p.jsx("div",{className:"absolute top-1/2 h-48 w-full translate-y-12 scale-x-150 bg-slate-950 blur-2xl"}),p.jsx("div",{className:"absolute top-1/2 z-50 h-48 w-full bg-transparent opacity-10 backdrop-blur-md"}),p.jsx("div",{className:"absolute inset-auto z-50 h-36 w-[28rem] -translate-y-1/2 rounded-full bg-cyan-500 opacity-50 blur-3xl"}),p.jsx(se.div,{initial:{width:"8rem"},whileInView:{width:"16rem"},transition:{delay:.3,duration:.8,ease:"easeInOut"},className:"absolute inset-auto z-30 h-36 w-64 -translate-y-[6rem] rounded-full bg-cyan-400 blur-2xl"}),p.jsx(se.div,{initial:{width:"15rem"},whileInView:{width:"30rem"},transition:{delay:.3,duration:.8,ease:"easeInOut"},className:"absolute inset-auto z-50 h-0.5 w-[30rem] -translate-y-[7rem] bg-cyan-400 "}),p.jsx("div",{className:"absolute inset-auto z-40 h-44 w-full -translate-y-[12.5rem] bg-slate-950 "})]}),p.jsx("div",{className:"relative z-50 flex -translate-y-80 flex-col items-center px-5",children:e})]}),PO=({children:e,zoomFactor:t=1.5,lensSize:n=170,isStatic:r=!1,position:o={x:200,y:150},hovering:s,setHovering:i,className:a})=>{const[l,c]=P.useState(!1),[d,f]=P.useState({x:0,y:0}),h=P.useRef(null),m=v=>{var w;const b=(w=h.current)==null?void 0:w.getBoundingClientRect();if(b){const x=v.clientX-b.left,S=v.clientY-b.top;f({x,y:S})}},y=s!==void 0?s:l,g=i||c;return p.jsxs("div",{ref:h,className:M("relative overflow-hidden rounded-lg z-20 group/lens",a),onMouseEnter:()=>g(!0),onMouseLeave:()=>g(!1),onMouseMove:m,children:[e,r?p.jsx(se.div,{initial:{opacity:0,scale:.58},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.8},transition:{duration:.3,ease:"easeOut"},className:"absolute inset-0 overflow-hidden pointer-events-none",style:{maskImage:`radial-gradient(circle ${n/2}px at ${o.x}px ${o.y}px, black 100%, transparent 100%)`,WebkitMaskImage:`radial-gradient(circle ${n/2}px at ${o.x}px ${o.y}px, black 100%, transparent 100%)`,transformOrigin:`${o.x}px ${o.y}px`},children:p.jsx("div",{className:"absolute inset-0",style:{transform:`scale(${t})`,transformOrigin:`${o.x}px ${o.y}px`},children:e})}):p.jsx(Vo,{children:y&&p.jsx(se.div,{initial:{opacity:0,scale:.58},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.8},transition:{duration:.3,ease:"easeOut"},className:"absolute inset-0 overflow-hidden pointer-events-none",style:{maskImage:`radial-gradient(circle ${n/2}px at ${d.x}px ${d.y}px, black 100%, transparent 100%)`,WebkitMaskImage:`radial-gradient(circle ${n/2}px at ${d.x}px ${d.y}px, black 100%, transparent 100%)`,transformOrigin:`${d.x}px ${d.y}px`,zIndex:50},children:p.jsx("div",{className:"absolute inset-0",style:{transform:`scale(${t})`,transformOrigin:`${d.x}px ${d.y}px`},children:e})})})]})};function TO({children:e,className:t,gradientSize:n=200,gradientColor:r="#262626",gradientOpacity:o=.8,...s}){const i=It(-n),a=It(-n);function l({currentTarget:d,clientX:f,clientY:h}){const{left:m,top:y}=d.getBoundingClientRect();i.set(f-m),a.set(h-y)}function c(){i.set(-n),a.set(-n)}return p.jsxs("div",{onMouseMove:l,onMouseLeave:c,className:M("group relative flex size-full overflow-hidden rounded-xl border bg-neutral-100 dark:bg-neutral-900 text-black dark:text-white",t),...s,children:[p.jsx("div",{className:"relative z-10",children:e}),p.jsx(se.div,{className:"pointer-events-none absolute -inset-px rounded-xl opacity-0 transition-opacity duration-300 group-hover:opacity-100",style:{background:Al`
|
|
134
|
+
`),()=>{document.head.removeChild(u)}},[t]),p.jsx(PM,{isPresent:t,childRef:r,sizeRef:o,children:d.cloneElement(e,{ref:r})})}const AM=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:s,mode:i})=>{const a=wt(NM),l=E.useId(),c=E.useCallback(f=>{a.set(f,!0);for(const h of a.values())if(!h)return;r&&r()},[a,r]),u=E.useMemo(()=>({id:l,initial:t,isPresent:n,custom:o,onExitComplete:c,register:f=>(a.set(f,!1),()=>a.delete(f))}),s?[Math.random(),c]:[n,c]);return E.useMemo(()=>{a.forEach((f,h)=>a.set(h,!1))},[n]),d.useEffect(()=>{!n&&!a.size&&r&&r()},[n]),i==="popLayout"&&(e=p.jsx(TM,{isPresent:n,children:e})),p.jsx(Io.Provider,{value:u,children:e})};function NM(){return new Map}function zg(e=!0){const t=E.useContext(Io);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:o}=t,s=E.useId();E.useEffect(()=>{e&&o(s)},[e]);const i=E.useCallback(()=>e&&r&&r(s),[s,r,e]);return!n&&r?[!1,i]:[!0]}const Do=e=>e.key||"";function Wg(e){const t=[];return E.Children.forEach(e,n=>{E.isValidElement(n)&&t.push(n)}),t}const ca=typeof window<"u",tr=ca?E.useLayoutEffect:E.useEffect,_o=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:o=!0,mode:s="sync",propagate:i=!1})=>{const[a,l]=zg(i),c=E.useMemo(()=>Wg(e),[e]),u=i&&!a?[]:c.map(Do),f=E.useRef(!0),h=E.useRef(c),m=wt(()=>new Map),[y,g]=E.useState(c),[v,b]=E.useState(c);tr(()=>{f.current=!1,h.current=c;for(let S=0;S<v.length;S++){const C=Do(v[S]);u.includes(C)?m.delete(C):m.get(C)!==!0&&m.set(C,!1)}},[v,u.length,u.join("-")]);const w=[];if(c!==y){let S=[...c];for(let C=0;C<v.length;C++){const T=v[C],A=Do(T);u.includes(A)||(S.splice(C,0,T),w.push(T))}s==="wait"&&w.length&&(S=w),b(Wg(S)),g(c);return}process.env.NODE_ENV!=="production"&&s==="wait"&&v.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);const{forceRender:x}=E.useContext(la);return p.jsx(p.Fragment,{children:v.map(S=>{const C=Do(S),T=i&&!a?!1:c===v||u.includes(C),A=()=>{if(m.has(C))m.set(C,!0);else return;let N=!0;m.forEach(I=>{I||(N=!1)}),N&&(x==null||x(),b(h.current),i&&(l==null||l()),r&&r())};return p.jsx(AM,{isPresent:T,initial:!f.current||n?void 0:!1,custom:T?void 0:t,presenceAffectsLayout:o,mode:s,onExitComplete:T?void 0:A,children:S},C)})})},Ce=e=>e;let Ot=Ce,Ye=Ce;process.env.NODE_ENV!=="production"&&(Ot=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},Ye=(e,t)=>{if(!e)throw new Error(t)});function ua(e){let t;return()=>(t===void 0&&(t=e()),t)}const xt=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},Re=e=>e*1e3,Xe=e=>e/1e3,MM={useManualTiming:!1};function IM(e){let t=new Set,n=new Set,r=!1,o=!1;const s=new WeakSet;let i={delta:0,timestamp:0,isProcessing:!1};function a(c){s.has(c)&&(l.schedule(c),e()),c(i)}const l={schedule:(c,u=!1,f=!1)=>{const m=f&&r?t:n;return u&&s.add(c),m.has(c)||m.add(c),c},cancel:c=>{n.delete(c),s.delete(c)},process:c=>{if(i=c,r){o=!0;return}r=!0,[t,n]=[n,t],t.forEach(a),t.clear(),r=!1,o&&(o=!1,l.process(c))}};return l}const ko=["read","resolveKeyframes","update","preRender","render","postRender"],DM=40;function Hg(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,i=ko.reduce((b,w)=>(b[w]=IM(s),b),{}),{read:a,resolveKeyframes:l,update:c,preRender:u,render:f,postRender:h}=i,m=()=>{const b=performance.now();n=!1,o.delta=r?1e3/60:Math.max(Math.min(b-o.timestamp,DM),1),o.timestamp=b,o.isProcessing=!0,a.process(o),l.process(o),c.process(o),u.process(o),f.process(o),h.process(o),o.isProcessing=!1,n&&t&&(r=!1,e(m))},y=()=>{n=!0,r=!0,o.isProcessing||e(m)};return{schedule:ko.reduce((b,w)=>{const x=i[w];return b[w]=(S,C=!1,T=!1)=>(n||y(),x.schedule(S,C,T)),b},{}),cancel:b=>{for(let w=0;w<ko.length;w++)i[ko[w]].cancel(b)},state:o,steps:i}}const{schedule:ie,cancel:De,state:ve,steps:da}=Hg(typeof requestAnimationFrame<"u"?requestAnimationFrame:Ce,!0),jg=E.createContext({strict:!1}),Ug={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},hn={};for(const e in Ug)hn[e]={isEnabled:t=>Ug[e].some(n=>!!t[n])};function _M(e){for(const t in e)hn[t]={...hn[t],...e[t]}}const kM=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Oo(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||kM.has(e)}let Gg=e=>!Oo(e);function OM(e){e&&(Gg=t=>t.startsWith("on")?!Oo(t):e(t))}try{OM(require("@emotion/is-prop-valid").default)}catch{}function LM(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(Gg(o)||n===!0&&Oo(o)||!t&&!Oo(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}const Kg=new Set;function nr(e,t,n){e||Kg.has(t)||(console.warn(t),Kg.add(t))}function VM(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>(process.env.NODE_ENV!=="production"&&nr(!1,"motion() is deprecated. Use motion.create() instead."),e(...r));return new Proxy(n,{get:(r,o)=>o==="create"?e:(t.has(o)||t.set(o,e(o)),t.get(o))})}const Lo=E.createContext({});function rr(e){return typeof e=="string"||Array.isArray(e)}function Vo(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const fa=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],pa=["initial",...fa];function $o(e){return Vo(e.animate)||pa.some(t=>rr(e[t]))}function Yg(e){return!!($o(e)||e.variants)}function $M(e,t){if($o(e)){const{initial:n,animate:r}=e;return{initial:n===!1||rr(n)?n:void 0,animate:rr(r)?r:void 0}}return e.inherit!==!1?t:{}}function FM(e){const{initial:t,animate:n}=$M(e,E.useContext(Lo));return E.useMemo(()=>({initial:t,animate:n}),[Xg(t),Xg(n)])}function Xg(e){return Array.isArray(e)?e.join(" "):e}const RM=Symbol.for("motionComponentSymbol");function mn(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function BM(e,t,n){return E.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):mn(n)&&(n.current=r))},[t])}const ha=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),qg="data-"+ha("framerAppearId"),{schedule:ma}=Hg(queueMicrotask,!1),Zg=E.createContext({});function zM(e,t,n,r,o){var s,i;const{visualElement:a}=E.useContext(Lo),l=E.useContext(jg),c=E.useContext(Io),u=E.useContext(pn).reducedMotion,f=E.useRef(null);r=r||l.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:a,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:u}));const h=f.current,m=E.useContext(Zg);h&&!h.projection&&o&&(h.type==="html"||h.type==="svg")&&WM(f.current,n,o,m);const y=E.useRef(!1);E.useInsertionEffect(()=>{h&&y.current&&h.update(n,c)});const g=n[qg],v=E.useRef(!!g&&!(!((s=window.MotionHandoffIsComplete)===null||s===void 0)&&s.call(window,g))&&((i=window.MotionHasOptimisedAnimation)===null||i===void 0?void 0:i.call(window,g)));return tr(()=>{h&&(y.current=!0,window.MotionIsMounted=!0,h.updateFeatures(),ma.render(h.render),v.current&&h.animationState&&h.animationState.animateChanges())}),E.useEffect(()=>{h&&(!v.current&&h.animationState&&h.animationState.animateChanges(),v.current&&(queueMicrotask(()=>{var b;(b=window.MotionHandoffMarkAsComplete)===null||b===void 0||b.call(window,g)}),v.current=!1))}),h}function WM(e,t,n,r){const{layoutId:o,layout:s,drag:i,dragConstraints:a,layoutScroll:l,layoutRoot:c}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Jg(e.parent)),e.projection.setOptions({layoutId:o,layout:s,alwaysMeasureLayout:!!i||a&&mn(a),visualElement:e,animationType:typeof s=="string"?s:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:c})}function Jg(e){if(e)return e.options.allowProjection!==!1?e.projection:Jg(e.parent)}function HM({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:o}){var s,i;e&&_M(e);function a(c,u){let f;const h={...E.useContext(pn),...c,layoutId:jM(c)},{isStatic:m}=h,y=FM(c),g=r(c,m);if(!m&&ca){UM(h,e);const v=GM(h);f=v.MeasureLayout,y.visualElement=zM(o,g,h,t,v.ProjectionNode)}return p.jsxs(Lo.Provider,{value:y,children:[f&&y.visualElement?p.jsx(f,{visualElement:y.visualElement,...h}):null,n(o,c,BM(g,y.visualElement,u),g,m,y.visualElement)]})}a.displayName=`motion.${typeof o=="string"?o:`create(${(i=(s=o.displayName)!==null&&s!==void 0?s:o.name)!==null&&i!==void 0?i:""})`}`;const l=E.forwardRef(a);return l[RM]=o,l}function jM({layoutId:e}){const t=E.useContext(la).id;return t&&e!==void 0?t+"-"+e:e}function UM(e,t){const n=E.useContext(jg).strict;if(process.env.NODE_ENV!=="production"&&t&&n){const r="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?Ot(!1,r):Ye(!1,r)}}function GM(e){const{drag:t,layout:n}=hn;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const KM=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function ga(e){return typeof e!="string"||e.includes("-")?!1:!!(KM.indexOf(e)>-1||/[A-Z]/u.test(e))}function Qg(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function va(e,t,n,r){if(typeof t=="function"){const[o,s]=Qg(r);t=t(n!==void 0?n:e.custom,o,s)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[o,s]=Qg(r);t=t(n!==void 0?n:e.custom,o,s)}return t}const ya=e=>Array.isArray(e),YM=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),XM=e=>ya(e)?e[e.length-1]||0:e,pe=e=>!!(e&&e.getVelocity);function Fo(e){const t=pe(e)?e.get():e;return YM(t)?t.toValue():t}function qM({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,o,s){const i={latestValues:ZM(r,o,s,e),renderState:t()};return n&&(i.onMount=a=>n({props:r,current:a,...i}),i.onUpdate=a=>n(a)),i}const ev=e=>(t,n)=>{const r=E.useContext(Lo),o=E.useContext(Io),s=()=>qM(e,t,r,o);return n?s():wt(s)};function ZM(e,t,n,r){const o={},s=r(e,{});for(const h in s)o[h]=Fo(s[h]);let{initial:i,animate:a}=e;const l=$o(e),c=Yg(e);t&&c&&!l&&e.inherit!==!1&&(i===void 0&&(i=t.initial),a===void 0&&(a=t.animate));let u=n?n.initial===!1:!1;u=u||i===!1;const f=u?a:i;if(f&&typeof f!="boolean"&&!Vo(f)){const h=Array.isArray(f)?f:[f];for(let m=0;m<h.length;m++){const y=va(e,h[m]);if(y){const{transitionEnd:g,transition:v,...b}=y;for(const w in b){let x=b[w];if(Array.isArray(x)){const S=u?x.length-1:0;x=x[S]}x!==null&&(o[w]=x)}for(const w in g)o[w]=g[w]}}}return o}const gn=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Lt=new Set(gn),tv=e=>t=>typeof t=="string"&&t.startsWith(e),nv=tv("--"),JM=tv("var(--"),ba=e=>JM(e)?QM.test(e.split("/*")[0].trim()):!1,QM=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,rv=(e,t)=>t&&typeof e=="number"?t.transform(e):e,qe=(e,t,n)=>n>t?t:n<e?e:n,vn={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},or={...vn,transform:e=>qe(0,1,e)},Ro={...vn,default:1},sr=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),St=sr("deg"),Ze=sr("%"),Q=sr("px"),e1=sr("vh"),t1=sr("vw"),ov={...Ze,parse:e=>Ze.parse(e)/100,transform:e=>Ze.transform(e*100)},n1={borderWidth:Q,borderTopWidth:Q,borderRightWidth:Q,borderBottomWidth:Q,borderLeftWidth:Q,borderRadius:Q,radius:Q,borderTopLeftRadius:Q,borderTopRightRadius:Q,borderBottomRightRadius:Q,borderBottomLeftRadius:Q,width:Q,maxWidth:Q,height:Q,maxHeight:Q,top:Q,right:Q,bottom:Q,left:Q,padding:Q,paddingTop:Q,paddingRight:Q,paddingBottom:Q,paddingLeft:Q,margin:Q,marginTop:Q,marginRight:Q,marginBottom:Q,marginLeft:Q,backgroundPositionX:Q,backgroundPositionY:Q},r1={rotate:St,rotateX:St,rotateY:St,rotateZ:St,scale:Ro,scaleX:Ro,scaleY:Ro,scaleZ:Ro,skew:St,skewX:St,skewY:St,distance:Q,translateX:Q,translateY:Q,translateZ:Q,x:Q,y:Q,z:Q,perspective:Q,transformPerspective:Q,opacity:or,originX:ov,originY:ov,originZ:Q},sv={...vn,transform:Math.round},wa={...n1,...r1,zIndex:sv,size:Q,fillOpacity:or,strokeOpacity:or,numOctaves:sv},o1={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},s1=gn.length;function i1(e,t,n){let r="",o=!0;for(let s=0;s<s1;s++){const i=gn[s],a=e[i];if(a===void 0)continue;let l=!0;if(typeof a=="number"?l=a===(i.startsWith("scale")?1:0):l=parseFloat(a)===0,!l||n){const c=rv(a,wa[i]);if(!l){o=!1;const u=o1[i]||i;r+=`${u}(${c}) `}n&&(t[i]=c)}}return r=r.trim(),n?r=n(t,o?"":r):o&&(r="none"),r}function xa(e,t,n){const{style:r,vars:o,transformOrigin:s}=e;let i=!1,a=!1;for(const l in t){const c=t[l];if(Lt.has(l)){i=!0;continue}else if(nv(l)){o[l]=c;continue}else{const u=rv(c,wa[l]);l.startsWith("origin")?(a=!0,s[l]=u):r[l]=u}}if(t.transform||(i||n?r.transform=i1(t,e.transform,n):r.transform&&(r.transform="none")),a){const{originX:l="50%",originY:c="50%",originZ:u=0}=s;r.transformOrigin=`${l} ${c} ${u}`}}const a1={offset:"stroke-dashoffset",array:"stroke-dasharray"},l1={offset:"strokeDashoffset",array:"strokeDasharray"};function c1(e,t,n=1,r=0,o=!0){e.pathLength=1;const s=o?a1:l1;e[s.offset]=Q.transform(-r);const i=Q.transform(t),a=Q.transform(n);e[s.array]=`${i} ${a}`}function iv(e,t,n){return typeof e=="string"?e:Q.transform(t+n*e)}function u1(e,t,n){const r=iv(t,e.x,e.width),o=iv(n,e.y,e.height);return`${r} ${o}`}function Sa(e,{attrX:t,attrY:n,attrScale:r,originX:o,originY:s,pathLength:i,pathSpacing:a=1,pathOffset:l=0,...c},u,f){if(xa(e,c,f),u){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:h,style:m,dimensions:y}=e;h.transform&&(y&&(m.transform=h.transform),delete h.transform),y&&(o!==void 0||s!==void 0||m.transform)&&(m.transformOrigin=u1(y,o!==void 0?o:.5,s!==void 0?s:.5)),t!==void 0&&(h.x=t),n!==void 0&&(h.y=n),r!==void 0&&(h.scale=r),i!==void 0&&c1(h,i,a,l,!1)}const Ca=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),av=()=>({...Ca(),attrs:{}}),Ea=e=>typeof e=="string"&&e.toLowerCase()==="svg";function lv(e,{style:t,vars:n},r,o){Object.assign(e.style,t,o&&o.getProjectionStyles(r));for(const s in n)e.style.setProperty(s,n[s])}const cv=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function uv(e,t,n,r){lv(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(cv.has(o)?o:ha(o),t.attrs[o])}const Bo={};function d1(e){Object.assign(Bo,e)}function dv(e,{layout:t,layoutId:n}){return Lt.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Bo[e]||e==="opacity")}function Pa(e,t,n){var r;const{style:o}=e,s={};for(const i in o)(pe(o[i])||t.style&&pe(t.style[i])||dv(i,e)||((r=n==null?void 0:n.getValue(i))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(s[i]=o[i]);return s}function fv(e,t,n){const r=Pa(e,t,n);for(const o in e)if(pe(e[o])||pe(t[o])){const s=gn.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;r[s]=e[o]}return r}function f1(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}const pv=["x","y","width","height","cx","cy","r"],p1={useVisualState:ev({scrapeMotionValuesFromProps:fv,createRenderState:av,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:o})=>{if(!n)return;let s=!!e.drag;if(!s){for(const a in o)if(Lt.has(a)){s=!0;break}}if(!s)return;let i=!t;if(t)for(let a=0;a<pv.length;a++){const l=pv[a];e[l]!==t[l]&&(i=!0)}i&&ie.read(()=>{f1(n,r),ie.render(()=>{Sa(r,o,Ea(n.tagName),e.transformTemplate),uv(n,r)})})}})},h1={useVisualState:ev({scrapeMotionValuesFromProps:Pa,createRenderState:Ca})};function hv(e,t,n){for(const r in t)!pe(t[r])&&!dv(r,n)&&(e[r]=t[r])}function m1({transformTemplate:e},t){return E.useMemo(()=>{const n=Ca();return xa(n,t,e),Object.assign({},n.vars,n.style)},[t])}function g1(e,t){const n=e.style||{},r={};return hv(r,n,e),Object.assign(r,m1(e,t)),r}function v1(e,t){const n={},r=g1(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}function y1(e,t,n,r){const o=E.useMemo(()=>{const s=av();return Sa(s,t,Ea(r),e.transformTemplate),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};hv(s,e.style,e),o.style={...s,...o.style}}return o}function b1(e=!1){return(n,r,o,{latestValues:s},i)=>{const l=(ga(n)?y1:v1)(r,s,i,n),c=LM(r,typeof n=="string",e),u=n!==E.Fragment?{...c,...l,ref:o}:{},{children:f}=r,h=E.useMemo(()=>pe(f)?f.get():f,[f]);return E.createElement(n,{...u,children:h})}}function w1(e,t){return function(r,{forwardMotionProps:o}={forwardMotionProps:!1}){const i={...ga(r)?p1:h1,preloadedFeatures:e,useRender:b1(o),createVisualElement:t,Component:r};return HM(i)}}function mv(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function zo(e,t,n){const r=e.getProps();return va(r,t,n!==void 0?n:r.custom,e)}const gv=ua(()=>window.ScrollTimeline!==void 0);class x1{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t,n){const r=this.animations.map(o=>{if(gv()&&o.attachTimeline)return o.attachTimeline(t);if(typeof n=="function")return n(o)});return()=>{r.forEach((o,s)=>{o&&o(),this.animations[s].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class vv extends x1{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}function Ta(e,t){return e?e[t]||e.default||e:void 0}const Wo=2e4;function Aa(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Wo;)t+=n,r=e.next(t);return t>=Wo?1/0:t}function S1(e,t=100,n){const r=n({...e,keyframes:[0,t]}),o=Math.min(Aa(r),Wo);return{type:"keyframes",ease:s=>r.next(o*s).value/t,duration:Xe(o)}}function Ho(e){return typeof e=="function"}function yv(e,t){e.timeline=t,e.onfinish=null}const Na=e=>Array.isArray(e)&&typeof e[0]=="number",C1={linearEasing:void 0};function E1(e,t){const n=ua(e);return()=>{var r;return(r=C1[t])!==null&&r!==void 0?r:n()}}const jo=E1(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),bv=(e,t,n=10)=>{let r="";const o=Math.max(Math.round(t/n),2);for(let s=0;s<o;s++)r+=e(xt(0,o-1,s))+", ";return`linear(${r.substring(0,r.length-2)})`};function wv(e){return!!(typeof e=="function"&&jo()||!e||typeof e=="string"&&(e in Ma||jo())||Na(e)||Array.isArray(e)&&e.every(wv))}const ir=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Ma={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ir([0,.65,.55,1]),circOut:ir([.55,0,1,.45]),backIn:ir([.31,.01,.66,-.59]),backOut:ir([.33,1.53,.69,.99])};function xv(e,t){if(e)return typeof e=="function"&&jo()?bv(e,t):Na(e)?ir(e):Array.isArray(e)?e.map(n=>xv(n,t)||Ma.easeOut):Ma[e]}const Be={x:!1,y:!1};function Sv(){return Be.x||Be.y}function Uo(e,t,n){var r;if(e instanceof Element)return[e];if(typeof e=="string"){let o=document;t&&(o=t.current);const s=(r=n==null?void 0:n[e])!==null&&r!==void 0?r:o.querySelectorAll(e);return s?Array.from(s):[]}return Array.from(e)}function Cv(e,t){const n=Uo(e),r=new AbortController,o={passive:!0,...t,signal:r.signal};return[n,o,()=>r.abort()]}function Ev(e){return t=>{t.pointerType==="touch"||Sv()||e(t)}}function P1(e,t,n={}){const[r,o,s]=Cv(e,n),i=Ev(a=>{const{target:l}=a,c=t(a);if(typeof c!="function"||!l)return;const u=Ev(f=>{c(f),l.removeEventListener("pointerleave",u)});l.addEventListener("pointerleave",u,o)});return r.forEach(a=>{a.addEventListener("pointerenter",i,o)}),s}const Pv=(e,t)=>t?e===t?!0:Pv(e,t.parentElement):!1,Ia=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,T1=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function A1(e){return T1.has(e.tagName)||e.tabIndex!==-1}const ar=new WeakSet;function Tv(e){return t=>{t.key==="Enter"&&e(t)}}function Da(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const N1=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=Tv(()=>{if(ar.has(n))return;Da(n,"down");const o=Tv(()=>{Da(n,"up")}),s=()=>Da(n,"cancel");n.addEventListener("keyup",o,t),n.addEventListener("blur",s,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function Av(e){return Ia(e)&&!Sv()}function M1(e,t,n={}){const[r,o,s]=Cv(e,n),i=a=>{const l=a.currentTarget;if(!Av(a)||ar.has(l))return;ar.add(l);const c=t(a),u=(m,y)=>{window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",h),!(!Av(m)||!ar.has(l))&&(ar.delete(l),typeof c=="function"&&c(m,{success:y}))},f=m=>{u(m,n.useGlobalTarget||Pv(l,m.target))},h=m=>{u(m,!1)};window.addEventListener("pointerup",f,o),window.addEventListener("pointercancel",h,o)};return r.forEach(a=>{!A1(a)&&a.getAttribute("tabindex")===null&&(a.tabIndex=0),(n.useGlobalTarget?window:a).addEventListener("pointerdown",i,o),a.addEventListener("focus",c=>N1(c,o),o)}),s}function I1(e){return e==="x"||e==="y"?Be[e]?null:(Be[e]=!0,()=>{Be[e]=!1}):Be.x||Be.y?null:(Be.x=Be.y=!0,()=>{Be.x=Be.y=!1})}const Nv=new Set(["width","height","top","left","right","bottom",...gn]);let Go;function D1(){Go=void 0}const Je={now:()=>(Go===void 0&&Je.set(ve.isProcessing||MM.useManualTiming?ve.timestamp:performance.now()),Go),set:e=>{Go=e,queueMicrotask(D1)}};function _a(e,t){e.indexOf(t)===-1&&e.push(t)}function Ko(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class ka{constructor(){this.subscriptions=[]}add(t){return _a(this.subscriptions,t),()=>Ko(this.subscriptions,t)}notify(t,n,r){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,n,r);else for(let s=0;s<o;s++){const i=this.subscriptions[s];i&&i(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function Oa(e,t){return t?e*(1e3/t):0}const Mv=30,_1=e=>!isNaN(parseFloat(e)),lr={current:void 0};class k1{constructor(t,n={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,o=!0)=>{const s=Je.now();this.updatedAt!==s&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),o&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Je.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=_1(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&nr(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new ka);const r=this.events[t].add(n);return t==="change"?()=>{r(),ie.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return lr.current&&lr.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=Je.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Mv)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Mv);return Oa(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Qe(e,t){return new k1(e,t)}function O1(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Qe(n))}function L1(e,t){const n=zo(e,t);let{transitionEnd:r={},transition:o={},...s}=n||{};s={...s,...r};for(const i in s){const a=XM(s[i]);O1(e,i,a)}}function V1(e){return!!(pe(e)&&e.add)}function La(e,t){const n=e.getValue("willChange");if(V1(n))return n.add(t)}function Iv(e){return e.props[qg]}const Dv=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,$1=1e-7,F1=12;function R1(e,t,n,r,o){let s,i,a=0;do i=t+(n-t)/2,s=Dv(i,r,o)-e,s>0?n=i:t=i;while(Math.abs(s)>$1&&++a<F1);return i}function cr(e,t,n,r){if(e===t&&n===r)return Ce;const o=s=>R1(s,0,1,e,n);return s=>s===0||s===1?s:Dv(o(s),t,r)}const _v=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,kv=e=>t=>1-e(1-t),Ov=cr(.33,1.53,.69,.99),Va=kv(Ov),Lv=_v(Va),Vv=e=>(e*=2)<1?.5*Va(e):.5*(2-Math.pow(2,-10*(e-1))),$a=e=>1-Math.sin(Math.acos(e)),$v=kv($a),Fv=_v($a),Rv=e=>/^0[^.\s]+$/u.test(e);function B1(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Rv(e):!0}const ur=e=>Math.round(e*1e5)/1e5,Fa=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function z1(e){return e==null}const W1=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Ra=(e,t)=>n=>!!(typeof n=="string"&&W1.test(n)&&n.startsWith(e)||t&&!z1(n)&&Object.prototype.hasOwnProperty.call(n,t)),Bv=(e,t,n)=>r=>{if(typeof r!="string")return r;const[o,s,i,a]=r.match(Fa);return{[e]:parseFloat(o),[t]:parseFloat(s),[n]:parseFloat(i),alpha:a!==void 0?parseFloat(a):1}},H1=e=>qe(0,255,e),Ba={...vn,transform:e=>Math.round(H1(e))},Vt={test:Ra("rgb","red"),parse:Bv("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Ba.transform(e)+", "+Ba.transform(t)+", "+Ba.transform(n)+", "+ur(or.transform(r))+")"};function j1(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}const za={test:Ra("#"),parse:j1,transform:Vt.transform},yn={test:Ra("hsl","hue"),parse:Bv("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Ze.transform(ur(t))+", "+Ze.transform(ur(n))+", "+ur(or.transform(r))+")"},xe={test:e=>Vt.test(e)||za.test(e)||yn.test(e),parse:e=>Vt.test(e)?Vt.parse(e):yn.test(e)?yn.parse(e):za.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Vt.transform(e):yn.transform(e)},U1=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function G1(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Fa))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(U1))===null||n===void 0?void 0:n.length)||0)>0}const zv="number",Wv="color",K1="var",Y1="var(",Hv="${}",X1=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function dr(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let s=0;const a=t.replace(X1,l=>(xe.test(l)?(r.color.push(s),o.push(Wv),n.push(xe.parse(l))):l.startsWith(Y1)?(r.var.push(s),o.push(K1),n.push(l)):(r.number.push(s),o.push(zv),n.push(parseFloat(l))),++s,Hv)).split(Hv);return{values:n,split:a,indexes:r,types:o}}function jv(e){return dr(e).values}function Uv(e){const{split:t,types:n}=dr(e),r=t.length;return o=>{let s="";for(let i=0;i<r;i++)if(s+=t[i],o[i]!==void 0){const a=n[i];a===zv?s+=ur(o[i]):a===Wv?s+=xe.transform(o[i]):s+=o[i]}return s}}const q1=e=>typeof e=="number"?0:e;function Z1(e){const t=jv(e);return Uv(e)(t.map(q1))}const Ct={test:G1,parse:jv,createTransformer:Uv,getAnimatableNone:Z1},J1=new Set(["brightness","contrast","saturate","opacity"]);function Q1(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Fa)||[];if(!r)return e;const o=n.replace(r,"");let s=J1.has(t)?1:0;return r!==n&&(s*=100),t+"("+s+o+")"}const eI=/\b([a-z-]*)\(.*?\)/gu,Wa={...Ct,getAnimatableNone:e=>{const t=e.match(eI);return t?t.map(Q1).join(" "):e}},tI={...wa,color:xe,backgroundColor:xe,outlineColor:xe,fill:xe,stroke:xe,borderColor:xe,borderTopColor:xe,borderRightColor:xe,borderBottomColor:xe,borderLeftColor:xe,filter:Wa,WebkitFilter:Wa},Ha=e=>tI[e];function Gv(e,t){let n=Ha(e);return n!==Wa&&(n=Ct),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const nI=new Set(["auto","none","0"]);function rI(e,t,n){let r=0,o;for(;r<e.length&&!o;){const s=e[r];typeof s=="string"&&!nI.has(s)&&dr(s).values.length&&(o=e[r]),r++}if(o&&n)for(const s of t)e[s]=Gv(n,o)}const Kv=e=>e===vn||e===Q,Yv=(e,t)=>parseFloat(e.split(", ")[t]),Xv=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/u);if(o)return Yv(o[1],t);{const s=r.match(/^matrix\((.+)\)$/u);return s?Yv(s[1],e):0}},oI=new Set(["x","y","z"]),sI=gn.filter(e=>!oI.has(e));function iI(e){const t=[];return sI.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const bn={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:Xv(4,13),y:Xv(5,14)};bn.translateX=bn.x,bn.translateY=bn.y;const $t=new Set;let ja=!1,Ua=!1;function qv(){if(Ua){const e=Array.from($t).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const o=iI(r);o.length&&(n.set(r,o),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const o=n.get(r);o&&o.forEach(([s,i])=>{var a;(a=r.getValue(s))===null||a===void 0||a.set(i)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Ua=!1,ja=!1,$t.forEach(e=>e.complete()),$t.clear()}function Zv(){$t.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Ua=!0)})}function aI(){Zv(),qv()}class Ga{constructor(t,n,r,o,s,i=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=o,this.element=s,this.isAsync=i}scheduleResolve(){this.isScheduled=!0,this.isAsync?($t.add(this),ja||(ja=!0,ie.read(Zv),ie.resolveKeyframes(qv))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:o}=this;for(let s=0;s<t.length;s++)if(t[s]===null)if(s===0){const i=o==null?void 0:o.get(),a=t[t.length-1];if(i!==void 0)t[0]=i;else if(r&&n){const l=r.readValue(n,a);l!=null&&(t[0]=l)}t[0]===void 0&&(t[0]=a),o&&i===void 0&&o.set(t[0])}else t[s]=t[s-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),$t.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,$t.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const Jv=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),lI=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function cI(e){const t=lI.exec(e);if(!t)return[,];const[,n,r,o]=t;return[`--${n??r}`,o]}const uI=4;function Qv(e,t,n=1){Ye(n<=uI,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,o]=cI(e);if(!r)return;const s=window.getComputedStyle(t).getPropertyValue(r);if(s){const i=s.trim();return Jv(i)?parseFloat(i):i}return ba(o)?Qv(o,t,n+1):o}const ey=e=>t=>t.test(e),ty=[vn,Q,Ze,St,t1,e1,{test:e=>e==="auto",parse:e=>e}],ny=e=>ty.find(ey(e));class ry extends Ga{constructor(t,n,r,o,s){super(t,n,r,o,s,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<t.length;l++){let c=t[l];if(typeof c=="string"&&(c=c.trim(),ba(c))){const u=Qv(c,n.current);u!==void 0&&(t[l]=u),l===t.length-1&&(this.finalKeyframe=c)}}if(this.resolveNoneKeyframes(),!Nv.has(r)||t.length!==2)return;const[o,s]=t,i=ny(o),a=ny(s);if(i!==a)if(Kv(i)&&Kv(a))for(let l=0;l<t.length;l++){const c=t[l];typeof c=="string"&&(t[l]=parseFloat(c))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let o=0;o<t.length;o++)B1(t[o])&&r.push(o);r.length&&rI(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=bn[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const o=n[n.length-1];o!==void 0&&t.getValue(r,o).jump(o,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:o}=this;if(!n||!n.current)return;const s=n.getValue(r);s&&s.jump(this.measuredOrigin,!1);const i=o.length-1,a=o[i];o[i]=bn[r](n.measureViewportBox(),window.getComputedStyle(n.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([l,c])=>{n.getValue(l).set(c)}),this.resolveNoneKeyframes()}}const oy=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Ct.test(e)||e==="0")&&!e.startsWith("url("));function dI(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function fI(e,t,n,r){const o=e[0];if(o===null)return!1;if(t==="display"||t==="visibility")return!0;const s=e[e.length-1],i=oy(o,t),a=oy(s,t);return Ot(i===a,`You are trying to animate ${t} from "${o}" to "${s}". ${o} is not an animatable value - to enable this animation set ${o} to a value animatable to ${s} via the \`style\` property.`),!i||!a?!1:dI(e)||(n==="spring"||Ho(n))&&r}const pI=e=>e!==null;function Yo(e,{repeat:t,repeatType:n="loop"},r){const o=e.filter(pI),s=t&&n!=="loop"&&t%2===1?0:o.length-1;return!s||r===void 0?o[s]:r}const hI=40;class sy{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:o=0,repeatDelay:s=0,repeatType:i="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Je.now(),this.options={autoplay:t,delay:n,type:r,repeat:o,repeatDelay:s,repeatType:i,...a},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>hI?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&aI(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=Je.now(),this.hasAttemptedResolve=!0;const{name:r,type:o,velocity:s,delay:i,onComplete:a,onUpdate:l,isGenerator:c}=this.options;if(!c&&!fI(t,r,o,s))if(i)this.options.duration=0;else{l&&l(Yo(t,this.options,n)),a&&a(),this.resolveFinishedPromise();return}const u=this.initPlayback(t,n);u!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...u},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const le=(e,t,n)=>e+(t-e)*n;function Ka(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function mI({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let o=0,s=0,i=0;if(!t)o=s=i=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;o=Ka(l,a,e+1/3),s=Ka(l,a,e),i=Ka(l,a,e-1/3)}return{red:Math.round(o*255),green:Math.round(s*255),blue:Math.round(i*255),alpha:r}}function Xo(e,t){return n=>n>0?t:e}const Ya=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},gI=[za,Vt,yn],vI=e=>gI.find(t=>t.test(e));function iy(e){const t=vI(e);if(Ot(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===yn&&(n=mI(n)),n}const ay=(e,t)=>{const n=iy(e),r=iy(t);if(!n||!r)return Xo(e,t);const o={...n};return s=>(o.red=Ya(n.red,r.red,s),o.green=Ya(n.green,r.green,s),o.blue=Ya(n.blue,r.blue,s),o.alpha=le(n.alpha,r.alpha,s),Vt.transform(o))},yI=(e,t)=>n=>t(e(n)),fr=(...e)=>e.reduce(yI),Xa=new Set(["none","hidden"]);function bI(e,t){return Xa.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function wI(e,t){return n=>le(e,t,n)}function qa(e){return typeof e=="number"?wI:typeof e=="string"?ba(e)?Xo:xe.test(e)?ay:CI:Array.isArray(e)?ly:typeof e=="object"?xe.test(e)?ay:xI:Xo}function ly(e,t){const n=[...e],r=n.length,o=e.map((s,i)=>qa(s)(s,t[i]));return s=>{for(let i=0;i<r;i++)n[i]=o[i](s);return n}}function xI(e,t){const n={...e,...t},r={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(r[o]=qa(e[o])(e[o],t[o]));return o=>{for(const s in r)n[s]=r[s](o);return n}}function SI(e,t){var n;const r=[],o={color:0,var:0,number:0};for(let s=0;s<t.values.length;s++){const i=t.types[s],a=e.indexes[i][o[i]],l=(n=e.values[a])!==null&&n!==void 0?n:0;r[s]=l,o[i]++}return r}const CI=(e,t)=>{const n=Ct.createTransformer(t),r=dr(e),o=dr(t);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?Xa.has(e)&&!o.values.length||Xa.has(t)&&!r.values.length?bI(e,t):fr(ly(SI(r,o),o.values),n):(Ot(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),Xo(e,t))};function cy(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?le(e,t,n):qa(e)(e,t)}const EI=5;function uy(e,t,n){const r=Math.max(t-EI,0);return Oa(n-e(r),t-r)}const ue={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Za=.001;function PI({duration:e=ue.duration,bounce:t=ue.bounce,velocity:n=ue.velocity,mass:r=ue.mass}){let o,s;Ot(e<=Re(ue.maxDuration),"Spring duration must be 10 seconds or less");let i=1-t;i=qe(ue.minDamping,ue.maxDamping,i),e=qe(ue.minDuration,ue.maxDuration,Xe(e)),i<1?(o=c=>{const u=c*i,f=u*e,h=u-n,m=Ja(c,i),y=Math.exp(-f);return Za-h/m*y},s=c=>{const f=c*i*e,h=f*n+n,m=Math.pow(i,2)*Math.pow(c,2)*e,y=Math.exp(-f),g=Ja(Math.pow(c,2),i);return(-o(c)+Za>0?-1:1)*((h-m)*y)/g}):(o=c=>{const u=Math.exp(-c*e),f=(c-n)*e+1;return-Za+u*f},s=c=>{const u=Math.exp(-c*e),f=(n-c)*(e*e);return u*f});const a=5/e,l=AI(o,s,a);if(e=Re(e),isNaN(l))return{stiffness:ue.stiffness,damping:ue.damping,duration:e};{const c=Math.pow(l,2)*r;return{stiffness:c,damping:i*2*Math.sqrt(r*c),duration:e}}}const TI=12;function AI(e,t,n){let r=n;for(let o=1;o<TI;o++)r=r-e(r)/t(r);return r}function Ja(e,t){return e*Math.sqrt(1-t*t)}const NI=["duration","bounce"],MI=["stiffness","damping","mass"];function dy(e,t){return t.some(n=>e[n]!==void 0)}function II(e){let t={velocity:ue.velocity,stiffness:ue.stiffness,damping:ue.damping,mass:ue.mass,isResolvedFromDuration:!1,...e};if(!dy(e,MI)&&dy(e,NI))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),o=r*r,s=2*qe(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:ue.mass,stiffness:o,damping:s}}else{const n=PI(e);t={...t,...n,mass:ue.mass},t.isResolvedFromDuration=!0}return t}function Qa(e=ue.visualDuration,t=ue.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:o}=n;const s=n.keyframes[0],i=n.keyframes[n.keyframes.length-1],a={done:!1,value:s},{stiffness:l,damping:c,mass:u,duration:f,velocity:h,isResolvedFromDuration:m}=II({...n,velocity:-Xe(n.velocity||0)}),y=h||0,g=c/(2*Math.sqrt(l*u)),v=i-s,b=Xe(Math.sqrt(l/u)),w=Math.abs(v)<5;r||(r=w?ue.restSpeed.granular:ue.restSpeed.default),o||(o=w?ue.restDelta.granular:ue.restDelta.default);let x;if(g<1){const C=Ja(b,g);x=T=>{const A=Math.exp(-g*b*T);return i-A*((y+g*b*v)/C*Math.sin(C*T)+v*Math.cos(C*T))}}else if(g===1)x=C=>i-Math.exp(-b*C)*(v+(y+b*v)*C);else{const C=b*Math.sqrt(g*g-1);x=T=>{const A=Math.exp(-g*b*T),N=Math.min(C*T,300);return i-A*((y+g*b*v)*Math.sinh(N)+C*v*Math.cosh(N))/C}}const S={calculatedDuration:m&&f||null,next:C=>{const T=x(C);if(m)a.done=C>=f;else{let A=0;g<1&&(A=C===0?Re(y):uy(x,C,T));const N=Math.abs(A)<=r,I=Math.abs(i-T)<=o;a.done=N&&I}return a.value=a.done?i:T,a},toString:()=>{const C=Math.min(Aa(S),Wo),T=bv(A=>S.next(C*A).value,C,30);return C+"ms "+T}};return S}function fy({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:s=500,modifyTarget:i,min:a,max:l,restDelta:c=.5,restSpeed:u}){const f=e[0],h={done:!1,value:f},m=N=>a!==void 0&&N<a||l!==void 0&&N>l,y=N=>a===void 0?l:l===void 0||Math.abs(a-N)<Math.abs(l-N)?a:l;let g=n*t;const v=f+g,b=i===void 0?v:i(v);b!==v&&(g=b-f);const w=N=>-g*Math.exp(-N/r),x=N=>b+w(N),S=N=>{const I=w(N),O=x(N);h.done=Math.abs(I)<=c,h.value=h.done?b:O};let C,T;const A=N=>{m(h.value)&&(C=N,T=Qa({keyframes:[h.value,y(h.value)],velocity:uy(x,N,h.value),damping:o,stiffness:s,restDelta:c,restSpeed:u}))};return A(0),{calculatedDuration:null,next:N=>{let I=!1;return!T&&C===void 0&&(I=!0,S(N),A(N)),C!==void 0&&N>=C?T.next(N-C):(!I&&S(N),h)}}}const DI=cr(.42,0,1,1),_I=cr(0,0,.58,1),py=cr(.42,0,.58,1),hy=e=>Array.isArray(e)&&typeof e[0]!="number",my={linear:Ce,easeIn:DI,easeInOut:py,easeOut:_I,circIn:$a,circInOut:Fv,circOut:$v,backIn:Va,backInOut:Lv,backOut:Ov,anticipate:Vv},el=e=>{if(Na(e)){Ye(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,o]=e;return cr(t,n,r,o)}else if(typeof e=="string")return Ye(my[e]!==void 0,`Invalid easing type '${e}'`),my[e];return e};function kI(e,t,n){const r=[],o=n||cy,s=e.length-1;for(let i=0;i<s;i++){let a=o(e[i],e[i+1]);if(t){const l=Array.isArray(t)?t[i]||Ce:t;a=fr(l,a)}r.push(a)}return r}function tl(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const s=e.length;if(Ye(s===t.length,"Both input and output ranges must be the same length"),s===1)return()=>t[0];if(s===2&&t[0]===t[1])return()=>t[1];const i=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=kI(t,r,o),l=a.length,c=u=>{if(i&&u<e[0])return t[0];let f=0;if(l>1)for(;f<e.length-2&&!(u<e[f+1]);f++);const h=xt(e[f],e[f+1],u);return a[f](h)};return n?u=>c(qe(e[0],e[s-1],u)):c}function gy(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=xt(0,t,r);e.push(le(n,1,o))}}function nl(e){const t=[0];return gy(t,e.length-1),t}function OI(e,t){return e.map(n=>n*t)}function LI(e,t){return e.map(()=>t||py).splice(0,e.length-1)}function qo({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=hy(r)?r.map(el):el(r),s={done:!1,value:t[0]},i=OI(n&&n.length===t.length?n:nl(t),e),a=tl(i,t,{ease:Array.isArray(o)?o:LI(t,o)});return{calculatedDuration:e,next:l=>(s.value=a(l),s.done=l>=e,s)}}const VI=e=>{const t=({timestamp:n})=>e(n);return{start:()=>ie.update(t,!0),stop:()=>De(t),now:()=>ve.isProcessing?ve.timestamp:Je.now()}},$I={decay:fy,inertia:fy,tween:qo,keyframes:qo,spring:Qa},FI=e=>e/100;class Zo extends sy{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:l}=this.options;l&&l()};const{name:n,motionValue:r,element:o,keyframes:s}=this.options,i=(o==null?void 0:o.KeyframeResolver)||Ga,a=(l,c)=>this.onKeyframesResolved(l,c);this.resolver=new i(s,a,n,r,o),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:o=0,repeatType:s,velocity:i=0}=this.options,a=Ho(n)?n:$I[n]||qo;let l,c;a!==qo&&typeof t[0]!="number"&&(process.env.NODE_ENV!=="production"&&Ye(t.length===2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`),l=fr(FI,cy(t[0],t[1])),t=[0,100]);const u=a({...this.options,keyframes:t});s==="mirror"&&(c=a({...this.options,keyframes:[...t].reverse(),velocity:-i})),u.calculatedDuration===null&&(u.calculatedDuration=Aa(u));const{calculatedDuration:f}=u,h=f+o,m=h*(r+1)-o;return{generator:u,mirroredGenerator:c,mapPercentToKeyframes:l,calculatedDuration:f,resolvedDuration:h,totalDuration:m}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:N}=this.options;return{done:!0,value:N[N.length-1]}}const{finalKeyframe:o,generator:s,mirroredGenerator:i,mapPercentToKeyframes:a,keyframes:l,calculatedDuration:c,totalDuration:u,resolvedDuration:f}=r;if(this.startTime===null)return s.next(0);const{delay:h,repeat:m,repeatType:y,repeatDelay:g,onUpdate:v}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-u/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const b=this.currentTime-h*(this.speed>=0?1:-1),w=this.speed>=0?b<0:b>u;this.currentTime=Math.max(b,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=u);let x=this.currentTime,S=s;if(m){const N=Math.min(this.currentTime,u)/f;let I=Math.floor(N),O=N%1;!O&&N>=1&&(O=1),O===1&&I--,I=Math.min(I,m+1),!!(I%2)&&(y==="reverse"?(O=1-O,g&&(O-=g/f)):y==="mirror"&&(S=i)),x=qe(0,1,O)*f}const C=w?{done:!1,value:l[0]}:S.next(x);a&&(C.value=a(C.value));let{done:T}=C;!w&&c!==null&&(T=this.speed>=0?this.currentTime>=u:this.currentTime<=0);const A=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&T);return A&&o!==void 0&&(C.value=Yo(l,this.options,o)),v&&v(C.value),A&&this.finish(),C}get duration(){const{resolved:t}=this;return t?Xe(t.calculatedDuration):0}get time(){return Xe(this.currentTime)}set time(t){t=Re(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Xe(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=VI,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(s=>this.tick(s))),n&&n();const o=this.driver.now();this.holdTime!==null?this.startTime=o-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=o):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}function RI(e){return new Zo(e)}const BI=new Set(["opacity","clipPath","filter","transform"]);function zI(e,t,n,{delay:r=0,duration:o=300,repeat:s=0,repeatType:i="loop",ease:a="easeInOut",times:l}={}){const c={[t]:n};l&&(c.offset=l);const u=xv(a,o);return Array.isArray(u)&&(c.easing=u),e.animate(c,{delay:r,duration:o,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:s+1,direction:i==="reverse"?"alternate":"normal"})}const WI=ua(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Jo=10,HI=2e4;function jI(e){return Ho(e.type)||e.type==="spring"||!wv(e.ease)}function UI(e,t){const n=new Zo({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const o=[];let s=0;for(;!r.done&&s<HI;)r=n.sample(s),o.push(r.value),s+=Jo;return{times:void 0,keyframes:o,duration:s-Jo,ease:"linear"}}const vy={anticipate:Vv,backInOut:Lv,circInOut:Fv};function GI(e){return e in vy}class yy extends sy{constructor(t){super(t);const{name:n,motionValue:r,element:o,keyframes:s}=this.options;this.resolver=new ry(s,(i,a)=>this.onKeyframesResolved(i,a),n,r,o),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:o,ease:s,type:i,motionValue:a,name:l,startTime:c}=this.options;if(!a.owner||!a.owner.current)return!1;if(typeof s=="string"&&jo()&&GI(s)&&(s=vy[s]),jI(this.options)){const{onComplete:f,onUpdate:h,motionValue:m,element:y,...g}=this.options,v=UI(t,g);t=v.keyframes,t.length===1&&(t[1]=t[0]),r=v.duration,o=v.times,s=v.ease,i="keyframes"}const u=zI(a.owner.current,l,t,{...this.options,duration:r,times:o,ease:s});return u.startTime=c??this.calcStartTime(),this.pendingTimeline?(yv(u,this.pendingTimeline),this.pendingTimeline=void 0):u.onfinish=()=>{const{onComplete:f}=this.options;a.set(Yo(t,this.options,n)),f&&f(),this.cancel(),this.resolveFinishedPromise()},{animation:u,duration:r,times:o,type:i,ease:s,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return Xe(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Xe(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=Re(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return Ce;const{animation:r}=n;yv(r,t)}return Ce}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:o,type:s,ease:i,times:a}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:c,onUpdate:u,onComplete:f,element:h,...m}=this.options,y=new Zo({...m,keyframes:r,duration:o,type:s,ease:i,times:a,isGenerator:!0}),g=Re(this.time);c.setWithVelocity(y.sample(g-Jo).value,y.sample(g).value,Jo)}const{onStop:l}=this.options;l&&l(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:o,repeatType:s,damping:i,type:a}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:c}=n.owner.getProps();return WI()&&r&&BI.has(r)&&!l&&!c&&!o&&s!=="mirror"&&i!==0&&a!=="inertia"}}const KI={type:"spring",stiffness:500,damping:25,restSpeed:10},YI=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),XI={type:"keyframes",duration:.8},qI={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},ZI=(e,{keyframes:t})=>t.length>2?XI:Lt.has(e)?e.startsWith("scale")?YI(t[1]):KI:qI;function JI({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:s,repeatType:i,repeatDelay:a,from:l,elapsed:c,...u}){return!!Object.keys(u).length}const rl=(e,t,n,r={},o,s)=>i=>{const a=Ta(r,e)||{},l=a.delay||r.delay||0;let{elapsed:c=0}=r;c=c-Re(l);let u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-c,onUpdate:h=>{t.set(h),a.onUpdate&&a.onUpdate(h)},onComplete:()=>{i(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:s?void 0:o};JI(a)||(u={...u,...ZI(e,u)}),u.duration&&(u.duration=Re(u.duration)),u.repeatDelay&&(u.repeatDelay=Re(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let f=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(u.duration=0,u.delay===0&&(f=!0)),f&&!s&&t.get()!==void 0){const h=Yo(u.keyframes,a);if(h!==void 0)return ie.update(()=>{u.onUpdate(h),u.onComplete()}),new vv([])}return!s&&yy.supports(u)?new yy(u):new Zo(u)};function QI({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function ol(e,t,{delay:n=0,transitionOverride:r,type:o}={}){var s;let{transition:i=e.getDefaultTransition(),transitionEnd:a,...l}=t;r&&(i=r);const c=[],u=o&&e.animationState&&e.animationState.getState()[o];for(const f in l){const h=e.getValue(f,(s=e.latestValues[f])!==null&&s!==void 0?s:null),m=l[f];if(m===void 0||u&&QI(u,f))continue;const y={delay:n,...Ta(i||{},f)};let g=!1;if(window.MotionHandoffAnimation){const b=Iv(e);if(b){const w=window.MotionHandoffAnimation(b,f,ie);w!==null&&(y.startTime=w,g=!0)}}La(e,f),h.start(rl(f,h,m,e.shouldReduceMotion&&Nv.has(f)?{type:!1}:y,e,g));const v=h.animation;v&&c.push(v)}return a&&Promise.all(c).then(()=>{ie.update(()=>{a&&L1(e,a)})}),c}function sl(e,t,n={}){var r;const o=zo(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:s=e.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(s=n.transitionOverride);const i=o?()=>Promise.all(ol(e,o,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(c=0)=>{const{delayChildren:u=0,staggerChildren:f,staggerDirection:h}=s;return eD(e,t,u+c,f,h,n)}:()=>Promise.resolve(),{when:l}=s;if(l){const[c,u]=l==="beforeChildren"?[i,a]:[a,i];return c().then(()=>u())}else return Promise.all([i(),a(n.delay)])}function eD(e,t,n=0,r=0,o=1,s){const i=[],a=(e.variantChildren.size-1)*r,l=o===1?(c=0)=>c*r:(c=0)=>a-c*r;return Array.from(e.variantChildren).sort(tD).forEach((c,u)=>{c.notify("AnimationStart",t),i.push(sl(c,t,{...s,delay:n+l(u)}).then(()=>c.notify("AnimationComplete",t)))}),Promise.all(i)}function tD(e,t){return e.sortNodePosition(t)}function nD(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(s=>sl(e,s,n));r=Promise.all(o)}else if(typeof t=="string")r=sl(e,t,n);else{const o=typeof t=="function"?zo(e,t,n.custom):t;r=Promise.all(ol(e,o,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const rD=pa.length;function by(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?by(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<rD;n++){const r=pa[n],o=e.props[r];(rr(o)||o===!1)&&(t[r]=o)}return t}const oD=[...fa].reverse(),sD=fa.length;function iD(e){return t=>Promise.all(t.map(({animation:n,options:r})=>nD(e,n,r)))}function aD(e){let t=iD(e),n=wy(),r=!0;const o=l=>(c,u)=>{var f;const h=zo(e,u,l==="exit"?(f=e.presenceContext)===null||f===void 0?void 0:f.custom:void 0);if(h){const{transition:m,transitionEnd:y,...g}=h;c={...c,...g,...y}}return c};function s(l){t=l(e)}function i(l){const{props:c}=e,u=by(e.parent)||{},f=[],h=new Set;let m={},y=1/0;for(let v=0;v<sD;v++){const b=oD[v],w=n[b],x=c[b]!==void 0?c[b]:u[b],S=rr(x),C=b===l?w.isActive:null;C===!1&&(y=v);let T=x===u[b]&&x!==c[b]&&S;if(T&&r&&e.manuallyAnimateOnMount&&(T=!1),w.protectedKeys={...m},!w.isActive&&C===null||!x&&!w.prevProp||Vo(x)||typeof x=="boolean")continue;const A=lD(w.prevProp,x);let N=A||b===l&&w.isActive&&!T&&S||v>y&&S,I=!1;const O=Array.isArray(x)?x:[x];let k=O.reduce(o(b),{});C===!1&&(k={});const{prevResolvedValues:L={}}=w,W={...L,...k},F=H=>{N=!0,h.has(H)&&(I=!0,h.delete(H)),w.needsAnimating[H]=!0;const V=e.getValue(H);V&&(V.liveStyle=!1)};for(const H in W){const V=k[H],B=L[H];if(m.hasOwnProperty(H))continue;let ee=!1;ya(V)&&ya(B)?ee=!mv(V,B):ee=V!==B,ee?V!=null?F(H):h.add(H):V!==void 0&&h.has(H)?F(H):w.protectedKeys[H]=!0}w.prevProp=x,w.prevResolvedValues=k,w.isActive&&(m={...m,...k}),r&&e.blockInitialAnimation&&(N=!1),N&&(!(T&&A)||I)&&f.push(...O.map(H=>({animation:H,options:{type:b}})))}if(h.size){const v={};h.forEach(b=>{const w=e.getBaseTarget(b),x=e.getValue(b);x&&(x.liveStyle=!0),v[b]=w??null}),f.push({animation:v})}let g=!!f.length;return r&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(g=!1),r=!1,g?t(f):Promise.resolve()}function a(l,c){var u;if(n[l].isActive===c)return Promise.resolve();(u=e.variantChildren)===null||u===void 0||u.forEach(h=>{var m;return(m=h.animationState)===null||m===void 0?void 0:m.setActive(l,c)}),n[l].isActive=c;const f=i(l);for(const h in n)n[h].protectedKeys={};return f}return{animateChanges:i,setActive:a,setAnimateFunction:s,getState:()=>n,reset:()=>{n=wy(),r=!0}}}function lD(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!mv(t,e):!1}function Ft(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function wy(){return{animate:Ft(!0),whileInView:Ft(),whileHover:Ft(),whileTap:Ft(),whileDrag:Ft(),whileFocus:Ft(),exit:Ft()}}class Et{constructor(t){this.isMounted=!1,this.node=t}update(){}}class cD extends Et{constructor(t){super(t),t.animationState||(t.animationState=aD(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Vo(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let uD=0;class dD extends Et{constructor(){super(...arguments),this.id=uD++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const o=this.node.animationState.setActive("exit",!t);n&&!t&&o.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const fD={animation:{Feature:cD},exit:{Feature:dD}};function pr(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function hr(e){return{point:{x:e.pageX,y:e.pageY}}}const pD=e=>t=>Ia(t)&&e(t,hr(t));function mr(e,t,n,r){return pr(e,t,pD(n),r)}const xy=(e,t)=>Math.abs(e-t);function hD(e,t){const n=xy(e.x,t.x),r=xy(e.y,t.y);return Math.sqrt(n**2+r**2)}class Sy{constructor(t,n,{transformPagePoint:r,contextWindow:o,dragSnapToOrigin:s=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const f=al(this.lastMoveEventInfo,this.history),h=this.startEvent!==null,m=hD(f.offset,{x:0,y:0})>=3;if(!h&&!m)return;const{point:y}=f,{timestamp:g}=ve;this.history.push({...y,timestamp:g});const{onStart:v,onMove:b}=this.handlers;h||(v&&v(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),b&&b(this.lastMoveEvent,f)},this.handlePointerMove=(f,h)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=il(h,this.transformPagePoint),ie.update(this.updatePoint,!0)},this.handlePointerUp=(f,h)=>{this.end();const{onEnd:m,onSessionEnd:y,resumeAnimation:g}=this.handlers;if(this.dragSnapToOrigin&&g&&g(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const v=al(f.type==="pointercancel"?this.lastMoveEventInfo:il(h,this.transformPagePoint),this.history);this.startEvent&&m&&m(f,v),y&&y(f,v)},!Ia(t))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=r,this.contextWindow=o||window;const i=hr(t),a=il(i,this.transformPagePoint),{point:l}=a,{timestamp:c}=ve;this.history=[{...l,timestamp:c}];const{onSessionStart:u}=n;u&&u(t,al(a,this.history)),this.removeListeners=fr(mr(this.contextWindow,"pointermove",this.handlePointerMove),mr(this.contextWindow,"pointerup",this.handlePointerUp),mr(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),De(this.updatePoint)}}function il(e,t){return t?{point:t(e.point)}:e}function Cy(e,t){return{x:e.x-t.x,y:e.y-t.y}}function al({point:e},t){return{point:e,delta:Cy(e,Ey(t)),offset:Cy(e,mD(t)),velocity:gD(t,.1)}}function mD(e){return e[0]}function Ey(e){return e[e.length-1]}function gD(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=Ey(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>Re(t)));)n--;if(!r)return{x:0,y:0};const s=Xe(o.timestamp-r.timestamp);if(s===0)return{x:0,y:0};const i={x:(o.x-r.x)/s,y:(o.y-r.y)/s};return i.x===1/0&&(i.x=0),i.y===1/0&&(i.y=0),i}const Py=1e-4,vD=1-Py,yD=1+Py,Ty=.01,bD=0-Ty,wD=0+Ty;function Ne(e){return e.max-e.min}function xD(e,t,n){return Math.abs(e-t)<=n}function Ay(e,t,n,r=.5){e.origin=r,e.originPoint=le(t.min,t.max,e.origin),e.scale=Ne(n)/Ne(t),e.translate=le(n.min,n.max,e.origin)-e.originPoint,(e.scale>=vD&&e.scale<=yD||isNaN(e.scale))&&(e.scale=1),(e.translate>=bD&&e.translate<=wD||isNaN(e.translate))&&(e.translate=0)}function gr(e,t,n,r){Ay(e.x,t.x,n.x,r?r.originX:void 0),Ay(e.y,t.y,n.y,r?r.originY:void 0)}function Ny(e,t,n){e.min=n.min+t.min,e.max=e.min+Ne(t)}function SD(e,t,n){Ny(e.x,t.x,n.x),Ny(e.y,t.y,n.y)}function My(e,t,n){e.min=t.min-n.min,e.max=e.min+Ne(t)}function vr(e,t,n){My(e.x,t.x,n.x),My(e.y,t.y,n.y)}function CD(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?le(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?le(n,e,r.max):Math.min(e,n)),e}function Iy(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function ED(e,{top:t,left:n,bottom:r,right:o}){return{x:Iy(e.x,n,o),y:Iy(e.y,t,r)}}function Dy(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function PD(e,t){return{x:Dy(e.x,t.x),y:Dy(e.y,t.y)}}function TD(e,t){let n=.5;const r=Ne(e),o=Ne(t);return o>r?n=xt(t.min,t.max-r,e.min):r>o&&(n=xt(e.min,e.max-o,t.min)),qe(0,1,n)}function AD(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const ll=.35;function ND(e=ll){return e===!1?e=0:e===!0&&(e=ll),{x:_y(e,"left","right"),y:_y(e,"top","bottom")}}function _y(e,t,n){return{min:ky(e,t),max:ky(e,n)}}function ky(e,t){return typeof e=="number"?e:e[t]||0}const Oy=()=>({translate:0,scale:1,origin:0,originPoint:0}),wn=()=>({x:Oy(),y:Oy()}),Ly=()=>({min:0,max:0}),he=()=>({x:Ly(),y:Ly()});function _e(e){return[e("x"),e("y")]}function Vy({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function MD({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function ID(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function cl(e){return e===void 0||e===1}function ul({scale:e,scaleX:t,scaleY:n}){return!cl(e)||!cl(t)||!cl(n)}function Rt(e){return ul(e)||$y(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function $y(e){return Fy(e.x)||Fy(e.y)}function Fy(e){return e&&e!=="0%"}function Qo(e,t,n){const r=e-n,o=t*r;return n+o}function Ry(e,t,n,r,o){return o!==void 0&&(e=Qo(e,o,r)),Qo(e,n,r)+t}function dl(e,t=0,n=1,r,o){e.min=Ry(e.min,t,n,r,o),e.max=Ry(e.max,t,n,r,o)}function By(e,{x:t,y:n}){dl(e.x,t.translate,t.scale,t.originPoint),dl(e.y,n.translate,n.scale,n.originPoint)}const zy=.999999999999,Wy=1.0000000000001;function DD(e,t,n,r=!1){const o=n.length;if(!o)return;t.x=t.y=1;let s,i;for(let a=0;a<o;a++){s=n[a],i=s.projectionDelta;const{visualElement:l}=s.options;l&&l.props.style&&l.props.style.display==="contents"||(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&Sn(e,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),i&&(t.x*=i.x.scale,t.y*=i.y.scale,By(e,i)),r&&Rt(s.latestValues)&&Sn(e,s.latestValues))}t.x<Wy&&t.x>zy&&(t.x=1),t.y<Wy&&t.y>zy&&(t.y=1)}function xn(e,t){e.min=e.min+t,e.max=e.max+t}function Hy(e,t,n,r,o=.5){const s=le(e.min,e.max,o);dl(e,t,n,s,r)}function Sn(e,t){Hy(e.x,t.x,t.scaleX,t.scale,t.originX),Hy(e.y,t.y,t.scaleY,t.scale,t.originY)}function jy(e,t){return Vy(ID(e.getBoundingClientRect(),t))}function _D(e,t,n){const r=jy(e,n),{scroll:o}=t;return o&&(xn(r.x,o.offset.x),xn(r.y,o.offset.y)),r}const Uy=({current:e})=>e?e.ownerDocument.defaultView:null,kD=new WeakMap;class OD{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=he(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const o=u=>{const{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(hr(u).point)},s=(u,f)=>{const{drag:h,dragPropagation:m,onDragStart:y}=this.getProps();if(h&&!m&&(this.openDragLock&&this.openDragLock(),this.openDragLock=I1(h),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),_e(v=>{let b=this.getAxisMotionValue(v).get()||0;if(Ze.test(b)){const{projection:w}=this.visualElement;if(w&&w.layout){const x=w.layout.layoutBox[v];x&&(b=Ne(x)*(parseFloat(b)/100))}}this.originPoint[v]=b}),y&&ie.postRender(()=>y(u,f)),La(this.visualElement,"transform");const{animationState:g}=this.visualElement;g&&g.setActive("whileDrag",!0)},i=(u,f)=>{const{dragPropagation:h,dragDirectionLock:m,onDirectionLock:y,onDrag:g}=this.getProps();if(!h&&!this.openDragLock)return;const{offset:v}=f;if(m&&this.currentDirection===null){this.currentDirection=LD(v),this.currentDirection!==null&&y&&y(this.currentDirection);return}this.updateAxis("x",f.point,v),this.updateAxis("y",f.point,v),this.visualElement.render(),g&&g(u,f)},a=(u,f)=>this.stop(u,f),l=()=>_e(u=>{var f;return this.getAnimationState(u)==="paused"&&((f=this.getAxisMotionValue(u).animation)===null||f===void 0?void 0:f.play())}),{dragSnapToOrigin:c}=this.getProps();this.panSession=new Sy(t,{onSessionStart:o,onStart:s,onMove:i,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,contextWindow:Uy(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:o}=n;this.startAnimation(o);const{onDragEnd:s}=this.getProps();s&&ie.postRender(()=>s(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:o}=this.getProps();if(!r||!es(t,o,this.currentDirection))return;const s=this.getAxisMotionValue(t);let i=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(i=CD(i,this.constraints[t],this.elastic[t])),s.set(i)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,s=this.constraints;n&&mn(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&o?this.constraints=ED(o.layoutBox,n):this.constraints=!1,this.elastic=ND(r),s!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&_e(i=>{this.constraints!==!1&&this.getAxisMotionValue(i)&&(this.constraints[i]=AD(o.layoutBox[i],this.constraints[i]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!mn(t))return!1;const r=t.current;Ye(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const s=_D(r,o.root,this.visualElement.getTransformPagePoint());let i=PD(o.layout.layoutBox,s);if(n){const a=n(MD(i));this.hasMutatedConstraints=!!a,a&&(i=Vy(a))}return i}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:s,dragSnapToOrigin:i,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},c=_e(u=>{if(!es(u,n,this.currentDirection))return;let f=l&&l[u]||{};i&&(f={min:0,max:0});const h=o?200:1e6,m=o?40:1e7,y={type:"inertia",velocity:r?t[u]:0,bounceStiffness:h,bounceDamping:m,timeConstant:750,restDelta:1,restSpeed:10,...s,...f};return this.startAxisValueAnimation(u,y)});return Promise.all(c).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return La(this.visualElement,t),r.start(rl(t,r,0,n,this.visualElement,!1))}stopAnimation(){_e(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){_e(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),o=r[n];return o||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){_e(n=>{const{drag:r}=this.getProps();if(!es(n,r,this.currentDirection))return;const{projection:o}=this.visualElement,s=this.getAxisMotionValue(n);if(o&&o.layout){const{min:i,max:a}=o.layout.layoutBox[n];s.set(t[n]-le(i,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!mn(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};_e(i=>{const a=this.getAxisMotionValue(i);if(a&&this.constraints!==!1){const l=a.get();o[i]=TD({min:l,max:l},this.constraints[i])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),_e(i=>{if(!es(i,t,null))return;const a=this.getAxisMotionValue(i),{min:l,max:c}=this.constraints[i];a.set(le(l,c,o[i]))})}addListeners(){if(!this.visualElement.current)return;kD.set(this.visualElement,this);const t=this.visualElement.current,n=mr(t,"pointerdown",l=>{const{drag:c,dragListener:u=!0}=this.getProps();c&&u&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();mn(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,s=o.addEventListener("measure",r);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),ie.read(r);const i=pr(window,"resize",()=>this.scalePositionWithinConstraints()),a=o.addEventListener("didUpdate",({delta:l,hasLayoutChanged:c})=>{this.isDragging&&c&&(_e(u=>{const f=this.getAxisMotionValue(u);f&&(this.originPoint[u]+=l[u].translate,f.set(f.get()+l[u].translate))}),this.visualElement.render())});return()=>{i(),n(),s(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:s=!1,dragElastic:i=ll,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:s,dragElastic:i,dragMomentum:a}}}function es(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function LD(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class VD extends Et{constructor(t){super(t),this.removeGroupControls=Ce,this.removeListeners=Ce,this.controls=new OD(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Ce}unmount(){this.removeGroupControls(),this.removeListeners()}}const Gy=e=>(t,n)=>{e&&ie.postRender(()=>e(t,n))};class $D extends Et{constructor(){super(...arguments),this.removePointerDownListener=Ce}onPointerDown(t){this.session=new Sy(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Uy(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:Gy(t),onStart:Gy(n),onMove:r,onEnd:(s,i)=>{delete this.session,o&&ie.postRender(()=>o(s,i))}}}mount(){this.removePointerDownListener=mr(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const ts={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Ky(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const yr={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Q.test(e))e=parseFloat(e);else return e;const n=Ky(e,t.target.x),r=Ky(e,t.target.y);return`${n}% ${r}%`}},FD={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=Ct.parse(e);if(o.length>5)return r;const s=Ct.createTransformer(e),i=typeof o[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;o[0+i]/=a,o[1+i]/=l;const c=le(a,l,.5);return typeof o[2+i]=="number"&&(o[2+i]/=c),typeof o[3+i]=="number"&&(o[3+i]/=c),s(o)}};class RD extends E.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:s}=t;d1(BD),s&&(n.group&&n.group.add(s),r&&r.register&&o&&r.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),ts.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:o,isPresent:s}=this.props,i=r.projection;return i&&(i.isPresent=s,o||t.layoutDependency!==n||n===void 0?i.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?i.promote():i.relegate()||ie.postRender(()=>{const a=i.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),ma.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:o}=t;o&&(o.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(o),r&&r.deregister&&r.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Yy(e){const[t,n]=zg(),r=E.useContext(la);return p.jsx(RD,{...e,layoutGroup:r,switchLayoutGroup:E.useContext(Zg),isPresent:t,safeToRemove:n})}const BD={borderRadius:{...yr,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:yr,borderTopRightRadius:yr,borderBottomLeftRadius:yr,borderBottomRightRadius:yr,boxShadow:FD};function Xy(e,t,n){const r=pe(e)?e:Qe(e);return r.start(rl("",r,t,n)),r.animation}function qy(e){return e instanceof SVGElement&&e.tagName!=="svg"}const zD=(e,t)=>e.depth-t.depth;class WD{constructor(){this.children=[],this.isDirty=!1}add(t){_a(this.children,t),this.isDirty=!0}remove(t){Ko(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(zD),this.isDirty=!1,this.children.forEach(t)}}function HD(e,t){const n=Je.now(),r=({timestamp:o})=>{const s=o-n;s>=t&&(De(r),e(s-t))};return ie.read(r,!0),()=>De(r)}const Zy=["TopLeft","TopRight","BottomLeft","BottomRight"],jD=Zy.length,Jy=e=>typeof e=="string"?parseFloat(e):e,Qy=e=>typeof e=="number"||Q.test(e);function UD(e,t,n,r,o,s){o?(e.opacity=le(0,n.opacity!==void 0?n.opacity:1,GD(r)),e.opacityExit=le(t.opacity!==void 0?t.opacity:1,0,KD(r))):s&&(e.opacity=le(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let i=0;i<jD;i++){const a=`border${Zy[i]}Radius`;let l=eb(t,a),c=eb(n,a);if(l===void 0&&c===void 0)continue;l||(l=0),c||(c=0),l===0||c===0||Qy(l)===Qy(c)?(e[a]=Math.max(le(Jy(l),Jy(c),r),0),(Ze.test(c)||Ze.test(l))&&(e[a]+="%")):e[a]=c}(t.rotate||n.rotate)&&(e.rotate=le(t.rotate||0,n.rotate||0,r))}function eb(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const GD=tb(0,.5,$v),KD=tb(.5,.95,Ce);function tb(e,t,n){return r=>r<e?0:r>t?1:n(xt(e,t,r))}function nb(e,t){e.min=t.min,e.max=t.max}function ke(e,t){nb(e.x,t.x),nb(e.y,t.y)}function rb(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function ob(e,t,n,r,o){return e-=t,e=Qo(e,1/n,r),o!==void 0&&(e=Qo(e,1/o,r)),e}function YD(e,t=0,n=1,r=.5,o,s=e,i=e){if(Ze.test(t)&&(t=parseFloat(t),t=le(i.min,i.max,t/100)-i.min),typeof t!="number")return;let a=le(s.min,s.max,r);e===s&&(a-=t),e.min=ob(e.min,t,n,a,o),e.max=ob(e.max,t,n,a,o)}function sb(e,t,[n,r,o],s,i){YD(e,t[n],t[r],t[o],t.scale,s,i)}const XD=["x","scaleX","originX"],qD=["y","scaleY","originY"];function ib(e,t,n,r){sb(e.x,t,XD,n?n.x:void 0,r?r.x:void 0),sb(e.y,t,qD,n?n.y:void 0,r?r.y:void 0)}function ab(e){return e.translate===0&&e.scale===1}function lb(e){return ab(e.x)&&ab(e.y)}function cb(e,t){return e.min===t.min&&e.max===t.max}function ZD(e,t){return cb(e.x,t.x)&&cb(e.y,t.y)}function ub(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function db(e,t){return ub(e.x,t.x)&&ub(e.y,t.y)}function fb(e){return Ne(e.x)/Ne(e.y)}function pb(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class JD{constructor(){this.members=[]}add(t){_a(this.members,t),t.scheduleRender()}remove(t){if(Ko(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(o=>t===o);if(n===0)return!1;let r;for(let o=n;o>=0;o--){const s=this.members[o];if(s.isPresent!==!1){r=s;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:o}=t.options;o===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function QD(e,t,n){let r="";const o=e.x.translate/t.x,s=e.y.translate/t.y,i=(n==null?void 0:n.z)||0;if((o||s||i)&&(r=`translate3d(${o}px, ${s}px, ${i}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:c,rotate:u,rotateX:f,rotateY:h,skewX:m,skewY:y}=n;c&&(r=`perspective(${c}px) ${r}`),u&&(r+=`rotate(${u}deg) `),f&&(r+=`rotateX(${f}deg) `),h&&(r+=`rotateY(${h}deg) `),m&&(r+=`skewX(${m}deg) `),y&&(r+=`skewY(${y}deg) `)}const a=e.x.scale*t.x,l=e.y.scale*t.y;return(a!==1||l!==1)&&(r+=`scale(${a}, ${l})`),r||"none"}const Bt={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},br=typeof window<"u"&&window.MotionDebug!==void 0,fl=["","X","Y","Z"],e_={visibility:"hidden"},hb=1e3;let t_=0;function pl(e,t,n,r){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function mb(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Iv(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:o,layoutId:s}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",ie,!(o||s))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&mb(r)}function gb({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(i={},a=t==null?void 0:t()){this.id=t_++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,br&&(Bt.totalNodes=Bt.resolvedTargetDeltas=Bt.recalculatedProjection=0),this.nodes.forEach(o_),this.nodes.forEach(c_),this.nodes.forEach(u_),this.nodes.forEach(s_),br&&window.MotionDebug.record(Bt)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=i,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new WD)}addEventListener(i,a){return this.eventHandlers.has(i)||this.eventHandlers.set(i,new ka),this.eventHandlers.get(i).add(a)}notifyListeners(i,...a){const l=this.eventHandlers.get(i);l&&l.notify(...a)}hasListeners(i){return this.eventHandlers.has(i)}mount(i,a=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=qy(i),this.instance=i;const{layoutId:l,layout:c,visualElement:u}=this.options;if(u&&!u.current&&u.mount(i),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),a&&(c||l)&&(this.isLayoutDirty=!0),e){let f;const h=()=>this.root.updateBlockedByResize=!1;e(i,()=>{this.root.updateBlockedByResize=!0,f&&f(),f=HD(h,250),ts.hasAnimatedSinceResize&&(ts.hasAnimatedSinceResize=!1,this.nodes.forEach(yb))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&u&&(l||c)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:h,hasRelativeTargetChanged:m,layout:y})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const g=this.options.transition||u.getDefaultTransition()||m_,{onLayoutAnimationStart:v,onLayoutAnimationComplete:b}=u.getProps(),w=!this.targetLayout||!db(this.targetLayout,y)||m,x=!h&&m;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||x||h&&(w||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(f,x);const S={...Ta(g,"layout"),onPlay:v,onComplete:b};(u.shouldReduceMotion||this.options.layoutRoot)&&(S.delay=0,S.type=!1),this.startAnimation(S)}else h||yb(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=y})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const i=this.getStack();i&&i.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,De(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(d_),this.animationId++)}getTransformTemplate(){const{visualElement:i}=this.options;return i&&i.getProps().transformTemplate}willUpdate(i=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&mb(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){const f=this.path[u];f.shouldResetTransform=!0,f.updateScroll("snapshot"),f.options.layoutRoot&&f.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),i&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(vb);return}this.isUpdating||this.nodes.forEach(a_),this.isUpdating=!1,this.nodes.forEach(l_),this.nodes.forEach(n_),this.nodes.forEach(r_),this.clearAllSnapshots();const a=Je.now();ve.delta=qe(0,1e3/60,a-ve.timestamp),ve.timestamp=a,ve.isProcessing=!0,da.update.process(ve),da.preRender.process(ve),da.render.process(ve),ve.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,ma.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(i_),this.sharedNodes.forEach(f_)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,ie.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){ie.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const i=this.layout;this.layout=this.measure(!1),this.layoutCorrected=he(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,i?i.layoutBox:void 0)}updateScroll(i="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===i&&(a=!1),a){const l=r(this.instance);this.scroll={animationId:this.root.animationId,phase:i,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!o)return;const i=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!lb(this.projectionDelta),l=this.getTransformTemplate(),c=l?l(this.latestValues,""):void 0,u=c!==this.prevTransformTemplateValue;i&&(a||Rt(this.latestValues)||u)&&(o(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(i=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return i&&(l=this.removeTransform(l)),g_(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var i;const{visualElement:a}=this.options;if(!a)return he();const l=a.measureViewportBox();if(!(((i=this.scroll)===null||i===void 0?void 0:i.wasRoot)||this.path.some(v_))){const{scroll:u}=this.root;u&&(xn(l.x,u.offset.x),xn(l.y,u.offset.y))}return l}removeElementScroll(i){var a;const l=he();if(ke(l,i),!((a=this.scroll)===null||a===void 0)&&a.wasRoot)return l;for(let c=0;c<this.path.length;c++){const u=this.path[c],{scroll:f,options:h}=u;u!==this.root&&f&&h.layoutScroll&&(f.wasRoot&&ke(l,i),xn(l.x,f.offset.x),xn(l.y,f.offset.y))}return l}applyTransform(i,a=!1){const l=he();ke(l,i);for(let c=0;c<this.path.length;c++){const u=this.path[c];!a&&u.options.layoutScroll&&u.scroll&&u!==u.root&&Sn(l,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),Rt(u.latestValues)&&Sn(l,u.latestValues)}return Rt(this.latestValues)&&Sn(l,this.latestValues),l}removeTransform(i){const a=he();ke(a,i);for(let l=0;l<this.path.length;l++){const c=this.path[l];if(!c.instance||!Rt(c.latestValues))continue;ul(c.latestValues)&&c.updateSnapshot();const u=he(),f=c.measurePageBox();ke(u,f),ib(a,c.latestValues,c.snapshot?c.snapshot.layoutBox:void 0,u)}return Rt(this.latestValues)&&ib(a,this.latestValues),a}setTargetDelta(i){this.targetDelta=i,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(i){this.options={...this.options,...i,crossfade:i.crossfade!==void 0?i.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==ve.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(i=!1){var a;const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const c=!!this.resumingFrom||this!==l;if(!(i||c&&this.isSharedProjectionDirty||this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:f,layoutId:h}=this.options;if(!(!this.layout||!(f||h))){if(this.resolvedRelativeTargetAt=ve.timestamp,!this.targetDelta&&!this.relativeTarget){const m=this.getClosestProjectingParent();m&&m.layout&&this.animationProgress!==1?(this.relativeParent=m,this.forceRelativeParentToResolveTarget(),this.relativeTarget=he(),this.relativeTargetOrigin=he(),vr(this.relativeTargetOrigin,this.layout.layoutBox,m.layout.layoutBox),ke(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=he(),this.targetWithTransforms=he()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),SD(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):ke(this.target,this.layout.layoutBox),By(this.target,this.targetDelta)):ke(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const m=this.getClosestProjectingParent();m&&!!m.resumingFrom==!!this.resumingFrom&&!m.options.layoutScroll&&m.target&&this.animationProgress!==1?(this.relativeParent=m,this.forceRelativeParentToResolveTarget(),this.relativeTarget=he(),this.relativeTargetOrigin=he(),vr(this.relativeTargetOrigin,this.target,m.target),ke(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}br&&Bt.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||ul(this.parent.latestValues)||$y(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var i;const a=this.getLead(),l=!!this.resumingFrom||this!==a;let c=!0;if((this.isProjectionDirty||!((i=this.parent)===null||i===void 0)&&i.isProjectionDirty)&&(c=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===ve.timestamp&&(c=!1),c)return;const{layout:u,layoutId:f}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||f))return;ke(this.layoutCorrected,this.layout.layoutBox);const h=this.treeScale.x,m=this.treeScale.y;DD(this.layoutCorrected,this.treeScale,this.path,l),a.layout&&!a.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(a.target=a.layout.layoutBox,a.targetWithTransforms=he());const{target:y}=a;if(!y){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(rb(this.prevProjectionDelta.x,this.projectionDelta.x),rb(this.prevProjectionDelta.y,this.projectionDelta.y)),gr(this.projectionDelta,this.layoutCorrected,y,this.latestValues),(this.treeScale.x!==h||this.treeScale.y!==m||!pb(this.projectionDelta.x,this.prevProjectionDelta.x)||!pb(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",y)),br&&Bt.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(i=!0){var a;if((a=this.options.visualElement)===null||a===void 0||a.scheduleRender(),i){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=wn(),this.projectionDelta=wn(),this.projectionDeltaWithTransform=wn()}setAnimationOrigin(i,a=!1){const l=this.snapshot,c=l?l.latestValues:{},u={...this.latestValues},f=wn();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const h=he(),m=l?l.source:void 0,y=this.layout?this.layout.source:void 0,g=m!==y,v=this.getStack(),b=!v||v.members.length<=1,w=!!(g&&!b&&this.options.crossfade===!0&&!this.path.some(h_));this.animationProgress=0;let x;this.mixTargetDelta=S=>{const C=S/1e3;bb(f.x,i.x,C),bb(f.y,i.y,C),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(vr(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p_(this.relativeTarget,this.relativeTargetOrigin,h,C),x&&ZD(this.relativeTarget,x)&&(this.isProjectionDirty=!1),x||(x=he()),ke(x,this.relativeTarget)),g&&(this.animationValues=u,UD(u,c,this.latestValues,C,w,b)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=C},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(i){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(De(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ie.update(()=>{ts.hasAnimatedSinceResize=!0,this.currentAnimation=Xy(0,hb,{...i,onUpdate:a=>{this.mixTargetDelta(a),i.onUpdate&&i.onUpdate(a)},onComplete:()=>{i.onComplete&&i.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const i=this.getStack();i&&i.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(hb),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const i=this.getLead();let{targetWithTransforms:a,target:l,layout:c,latestValues:u}=i;if(!(!a||!l||!c)){if(this!==i&&this.layout&&c&&Eb(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||he();const f=Ne(this.layout.layoutBox.x);l.x.min=i.target.x.min,l.x.max=l.x.min+f;const h=Ne(this.layout.layoutBox.y);l.y.min=i.target.y.min,l.y.max=l.y.min+h}ke(a,l),Sn(a,u),gr(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(i,a){this.sharedNodes.has(i)||this.sharedNodes.set(i,new JD),this.sharedNodes.get(i).add(a);const c=a.options.initialPromotionConfig;a.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(a):void 0})}isLead(){const i=this.getStack();return i?i.lead===this:!0}getLead(){var i;const{layoutId:a}=this.options;return a?((i=this.getStack())===null||i===void 0?void 0:i.lead)||this:this}getPrevLead(){var i;const{layoutId:a}=this.options;return a?(i=this.getStack())===null||i===void 0?void 0:i.prevLead:void 0}getStack(){const{layoutId:i}=this.options;if(i)return this.root.sharedNodes.get(i)}promote({needsReset:i,transition:a,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),i&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const i=this.getStack();return i?i.relegate(this):!1}resetSkewAndRotation(){const{visualElement:i}=this.options;if(!i)return;let a=!1;const{latestValues:l}=i;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const c={};l.z&&pl("z",i,c,this.animationValues);for(let u=0;u<fl.length;u++)pl(`rotate${fl[u]}`,i,c,this.animationValues),pl(`skew${fl[u]}`,i,c,this.animationValues);i.render();for(const u in c)i.setStaticValue(u,c[u]),this.animationValues&&(this.animationValues[u]=c[u]);i.scheduleRender()}getProjectionStyles(i){var a,l;if(!this.instance||this.isSVG)return;if(!this.isVisible)return e_;const c={visibility:""},u=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,c.opacity="",c.pointerEvents=Fo(i==null?void 0:i.pointerEvents)||"",c.transform=u?u(this.latestValues,""):"none",c;const f=this.getLead();if(!this.projectionDelta||!this.layout||!f.target){const g={};return this.options.layoutId&&(g.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,g.pointerEvents=Fo(i==null?void 0:i.pointerEvents)||""),this.hasProjected&&!Rt(this.latestValues)&&(g.transform=u?u({},""):"none",this.hasProjected=!1),g}const h=f.animationValues||f.latestValues;this.applyTransformsToTarget(),c.transform=QD(this.projectionDeltaWithTransform,this.treeScale,h),u&&(c.transform=u(h,c.transform));const{x:m,y}=this.projectionDelta;c.transformOrigin=`${m.origin*100}% ${y.origin*100}% 0`,f.animationValues?c.opacity=f===this?(l=(a=h.opacity)!==null&&a!==void 0?a:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:h.opacityExit:c.opacity=f===this?h.opacity!==void 0?h.opacity:"":h.opacityExit!==void 0?h.opacityExit:0;for(const g in Bo){if(h[g]===void 0)continue;const{correct:v,applyTo:b}=Bo[g],w=c.transform==="none"?h[g]:v(h[g],f);if(b){const x=b.length;for(let S=0;S<x;S++)c[b[S]]=w}else c[g]=w}return this.options.layoutId&&(c.pointerEvents=f===this?Fo(i==null?void 0:i.pointerEvents)||"":"none"),c}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(i=>{var a;return(a=i.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(vb),this.root.sharedNodes.clear()}}}function n_(e){e.updateLayout()}function r_(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:o}=e.layout,{animationType:s}=e.options,i=n.source!==e.layout.source;s==="size"?_e(f=>{const h=i?n.measuredBox[f]:n.layoutBox[f],m=Ne(h);h.min=r[f].min,h.max=h.min+m}):Eb(s,n.layoutBox,r)&&_e(f=>{const h=i?n.measuredBox[f]:n.layoutBox[f],m=Ne(r[f]);h.max=h.min+m,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+m)});const a=wn();gr(a,r,n.layoutBox);const l=wn();i?gr(l,e.applyTransform(o,!0),n.measuredBox):gr(l,r,n.layoutBox);const c=!lb(a);let u=!1;if(!e.resumeFrom){const f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:h,layout:m}=f;if(h&&m){const y=he();vr(y,n.layoutBox,h.layoutBox);const g=he();vr(g,r,m.layoutBox),db(y,g)||(u=!0),f.options.layoutRoot&&(e.relativeTarget=g,e.relativeTargetOrigin=y,e.relativeParent=f)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:c,hasRelativeTargetChanged:u})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function o_(e){br&&Bt.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function s_(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function i_(e){e.clearSnapshot()}function vb(e){e.clearMeasurements()}function a_(e){e.isLayoutDirty=!1}function l_(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function yb(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function c_(e){e.resolveTargetDelta()}function u_(e){e.calcProjection()}function d_(e){e.resetSkewAndRotation()}function f_(e){e.removeLeadSnapshot()}function bb(e,t,n){e.translate=le(t.translate,0,n),e.scale=le(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function wb(e,t,n,r){e.min=le(t.min,n.min,r),e.max=le(t.max,n.max,r)}function p_(e,t,n,r){wb(e.x,t.x,n.x,r),wb(e.y,t.y,n.y,r)}function h_(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const m_={duration:.45,ease:[.4,0,.1,1]},xb=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Sb=xb("applewebkit/")&&!xb("chrome/")?Math.round:Ce;function Cb(e){e.min=Sb(e.min),e.max=Sb(e.max)}function g_(e){Cb(e.x),Cb(e.y)}function Eb(e,t,n){return e==="position"||e==="preserve-aspect"&&!xD(fb(t),fb(n),.2)}function v_(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const y_=gb({attachResizeListener:(e,t)=>pr(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),hl={current:void 0},Pb=gb({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!hl.current){const e=new y_({});e.mount(window),e.setOptions({layoutScroll:!0}),hl.current=e}return hl.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),b_={pan:{Feature:$D},drag:{Feature:VD,ProjectionNode:Pb,MeasureLayout:Yy}};function Tb(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const o="onHover"+n,s=r[o];s&&ie.postRender(()=>s(t,hr(t)))}class w_ extends Et{mount(){const{current:t}=this.node;t&&(this.unmount=P1(t,n=>(Tb(this.node,n,"Start"),r=>Tb(this.node,r,"End"))))}unmount(){}}class x_ extends Et{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=fr(pr(this.node.current,"focus",()=>this.onFocus()),pr(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Ab(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const o="onTap"+(n==="End"?"":n),s=r[o];s&&ie.postRender(()=>s(t,hr(t)))}class S_ extends Et{mount(){const{current:t}=this.node;t&&(this.unmount=M1(t,n=>(Ab(this.node,n,"Start"),(r,{success:o})=>Ab(this.node,r,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const ml=new WeakMap,gl=new WeakMap,C_=e=>{const t=ml.get(e.target);t&&t(e)},E_=e=>{e.forEach(C_)};function P_({root:e,...t}){const n=e||document;gl.has(n)||gl.set(n,{});const r=gl.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(E_,{root:e,...t})),r[o]}function T_(e,t,n){const r=P_(t);return ml.set(e,n),r.observe(e),()=>{ml.delete(e),r.unobserve(e)}}const A_={some:0,all:1};class N_ extends Et{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:o="some",once:s}=t,i={root:n?n.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:A_[o]},a=l=>{const{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,s&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:u,onViewportLeave:f}=this.node.getProps(),h=c?u:f;h&&h(l)};return T_(this.node.current,i,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(M_(t,n))&&this.startObserver()}unmount(){}}function M_({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const I_={inView:{Feature:N_},tap:{Feature:S_},focus:{Feature:x_},hover:{Feature:w_}},D_={layout:{ProjectionNode:Pb,MeasureLayout:Yy}},vl={current:null},Nb={current:!1};function __(){if(Nb.current=!0,!!ca)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>vl.current=e.matches;e.addListener(t),t()}else vl.current=!1}const k_=[...ty,xe,Ct],O_=e=>k_.find(ey(e)),Cn=new WeakMap;function L_(e,t,n){for(const r in t){const o=t[r],s=n[r];if(pe(o))e.addValue(r,o),process.env.NODE_ENV==="development"&&nr(o.version==="11.18.2",`Attempting to mix Motion versions ${o.version} with 11.18.2 may not work as expected.`);else if(pe(s))e.addValue(r,Qe(o,{owner:e}));else if(s!==o)if(e.hasValue(r)){const i=e.getValue(r);i.liveStyle===!0?i.jump(o):i.hasAnimated||i.set(o)}else{const i=e.getStaticValue(r);e.addValue(r,Qe(i!==void 0?i:o,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const Mb=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Ib{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:o,blockInitialAnimation:s,visualState:i},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Ga,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const m=Je.now();this.renderScheduledAt<m&&(this.renderScheduledAt=m,ie.render(this.render,!1,!0))};const{latestValues:l,renderState:c,onUpdate:u}=i;this.onUpdate=u,this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=c,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=a,this.blockInitialAnimation=!!s,this.isControllingVariants=$o(n),this.isVariantNode=Yg(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:f,...h}=this.scrapeMotionValuesFromProps(n,{},this);for(const m in h){const y=h[m];l[m]!==void 0&&pe(y)&&y.set(l[m],!1)}}mount(t){this.current=t,Cn.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),Nb.current||__(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:vl.current,process.env.NODE_ENV!=="production"&&nr(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Cn.delete(this.current),this.projection&&this.projection.unmount(),De(this.notifyUpdate),De(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=Lt.has(t),o=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&ie.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),s=n.on("renderRequest",this.scheduleRender);let i;window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{o(),s(),i&&i(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in hn){const n=hn[t];if(!n)continue;const{isEnabled:r,Feature:o}=n;if(!this.features[t]&&o&&r(this.props)&&(this.features[t]=new o(this)),this.features[t]){const s=this.features[t];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):he()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<Mb.length;r++){const o=Mb[r];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const s="on"+o,i=t[s];i&&(this.propEventSubscriptions[o]=this.on(o,i))}this.prevMotionValues=L_(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Qe(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let o=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return o!=null&&(typeof o=="string"&&(Jv(o)||Rv(o))?o=parseFloat(o):!O_(o)&&Ct.test(n)&&(o=Gv(t,n)),this.setBaseTarget(t,pe(o)?o.get():o)),pe(o)?o.get():o}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let o;if(typeof r=="string"||typeof r=="object"){const i=va(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);i&&(o=i[t])}if(r&&o!==void 0)return o;const s=this.getBaseTargetFromProps(this.props,t);return s!==void 0&&!pe(s)?s:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new ka),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class Db extends Ib{constructor(){super(...arguments),this.KeyframeResolver=ry}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;pe(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function V_(e){return window.getComputedStyle(e)}class _b extends Db{constructor(){super(...arguments),this.type="html",this.renderInstance=lv}readValueFromInstance(t,n){if(Lt.has(n)){const r=Ha(n);return r&&r.default||0}else{const r=V_(t),o=(nv(n)?r.getPropertyValue(n):r[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return jy(t,n)}build(t,n,r){xa(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Pa(t,n,r)}}class kb extends Db{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=he}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Lt.has(n)){const r=Ha(n);return r&&r.default||0}return n=cv.has(n)?n:ha(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return fv(t,n,r)}build(t,n,r){Sa(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,o){uv(t,n,r,o)}mount(t){this.isSVGTag=Ea(t.tagName),super.mount(t)}}const $_=(e,t)=>ga(e)?new kb(t):new _b(t,{allowProjection:e!==E.Fragment}),F_=w1({...fD,...I_,...b_,...D_},$_),oe=VM(F_);function R_(e,t,n){E.useInsertionEffect(()=>e.on(t,n),[e,t,n])}function Ob(e,t){let n;const r=()=>{const{currentTime:o}=t,i=(o===null?0:o.value)/100;n!==i&&e(i),n=i};return ie.update(r,!0),()=>De(r)}const ns=new WeakMap;let Pt;function B_(e,t){if(t){const{inlineSize:n,blockSize:r}=t[0];return{width:n,height:r}}else return e instanceof SVGElement&&"getBBox"in e?e.getBBox():{width:e.offsetWidth,height:e.offsetHeight}}function z_({target:e,contentRect:t,borderBoxSize:n}){var r;(r=ns.get(e))===null||r===void 0||r.forEach(o=>{o({target:e,contentSize:t,get size(){return B_(e,n)}})})}function W_(e){e.forEach(z_)}function H_(){typeof ResizeObserver>"u"||(Pt=new ResizeObserver(W_))}function j_(e,t){Pt||H_();const n=Uo(e);return n.forEach(r=>{let o=ns.get(r);o||(o=new Set,ns.set(r,o)),o.add(t),Pt==null||Pt.observe(r)}),()=>{n.forEach(r=>{const o=ns.get(r);o==null||o.delete(t),o!=null&&o.size||Pt==null||Pt.unobserve(r)})}}const rs=new Set;let wr;function U_(){wr=()=>{const e={width:window.innerWidth,height:window.innerHeight},t={target:window,size:e,contentSize:e};rs.forEach(n=>n(t))},window.addEventListener("resize",wr)}function G_(e){return rs.add(e),wr||U_(),()=>{rs.delete(e),!rs.size&&wr&&(wr=void 0)}}function K_(e,t){return typeof e=="function"?G_(e):j_(e,t)}const Y_=50,Lb=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),X_=()=>({time:0,x:Lb(),y:Lb()}),q_={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function Vb(e,t,n,r){const o=n[t],{length:s,position:i}=q_[t],a=o.current,l=n.time;o.current=e[`scroll${i}`],o.scrollLength=e[`scroll${s}`]-e[`client${s}`],o.offset.length=0,o.offset[0]=0,o.offset[1]=o.scrollLength,o.progress=xt(0,o.scrollLength,o.current);const c=r-l;o.velocity=c>Y_?0:Oa(o.current-a,c)}function Z_(e,t,n){Vb(e,"x",t,n),Vb(e,"y",t,n),t.time=n}function J_(e,t){const n={x:0,y:0};let r=e;for(;r&&r!==t;)if(r instanceof HTMLElement)n.x+=r.offsetLeft,n.y+=r.offsetTop,r=r.offsetParent;else if(r.tagName==="svg"){const o=r.getBoundingClientRect();r=r.parentElement;const s=r.getBoundingClientRect();n.x+=o.left-s.left,n.y+=o.top-s.top}else if(r instanceof SVGGraphicsElement){const{x:o,y:s}=r.getBBox();n.x+=o,n.y+=s;let i=null,a=r.parentNode;for(;!i;)a.tagName==="svg"&&(i=a),a=r.parentNode;r=i}else break;return n}const yl={start:0,center:.5,end:1};function $b(e,t,n=0){let r=0;if(e in yl&&(e=yl[e]),typeof e=="string"){const o=parseFloat(e);e.endsWith("px")?r=o:e.endsWith("%")?e=o/100:e.endsWith("vw")?r=o/100*document.documentElement.clientWidth:e.endsWith("vh")?r=o/100*document.documentElement.clientHeight:e=o}return typeof e=="number"&&(r=t*e),n+r}const Q_=[0,0];function ek(e,t,n,r){let o=Array.isArray(e)?e:Q_,s=0,i=0;return typeof e=="number"?o=[e,e]:typeof e=="string"&&(e=e.trim(),e.includes(" ")?o=e.split(" "):o=[e,yl[e]?e:"0"]),s=$b(o[0],n,r),i=$b(o[1],t),s-i}const tk={All:[[0,0],[1,1]]},nk={x:0,y:0};function rk(e){return"getBBox"in e&&e.tagName!=="svg"?e.getBBox():{width:e.clientWidth,height:e.clientHeight}}function ok(e,t,n){const{offset:r=tk.All}=n,{target:o=e,axis:s="y"}=n,i=s==="y"?"height":"width",a=o!==e?J_(o,e):nk,l=o===e?{width:e.scrollWidth,height:e.scrollHeight}:rk(o),c={width:e.clientWidth,height:e.clientHeight};t[s].offset.length=0;let u=!t[s].interpolate;const f=r.length;for(let h=0;h<f;h++){const m=ek(r[h],c[i],l[i],a[s]);!u&&m!==t[s].interpolatorOffsets[h]&&(u=!0),t[s].offset[h]=m}u&&(t[s].interpolate=tl(t[s].offset,nl(r),{clamp:!1}),t[s].interpolatorOffsets=[...t[s].offset]),t[s].progress=qe(0,1,t[s].interpolate(t[s].current))}function sk(e,t=e,n){if(n.x.targetOffset=0,n.y.targetOffset=0,t!==e){let r=t;for(;r&&r!==e;)n.x.targetOffset+=r.offsetLeft,n.y.targetOffset+=r.offsetTop,r=r.offsetParent}n.x.targetLength=t===e?t.scrollWidth:t.clientWidth,n.y.targetLength=t===e?t.scrollHeight:t.clientHeight,n.x.containerLength=e.clientWidth,n.y.containerLength=e.clientHeight,process.env.NODE_ENV!=="production"&&e&&t&&t!==e&&nr(getComputedStyle(e).position!=="static","Please ensure that the container has a non-static position, like 'relative', 'fixed', or 'absolute' to ensure scroll offset is calculated correctly.")}function ik(e,t,n,r={}){return{measure:()=>sk(e,r.target,n),update:o=>{Z_(e,n,o),(r.offset||r.target)&&ok(e,n,r)},notify:()=>t(n)}}const xr=new WeakMap,Fb=new WeakMap,bl=new WeakMap,Rb=e=>e===document.documentElement?window:e;function wl(e,{container:t=document.documentElement,...n}={}){let r=bl.get(t);r||(r=new Set,bl.set(t,r));const o=X_(),s=ik(t,e,o,n);if(r.add(s),!xr.has(t)){const a=()=>{for(const h of r)h.measure()},l=()=>{for(const h of r)h.update(ve.timestamp)},c=()=>{for(const h of r)h.notify()},u=()=>{ie.read(a,!1,!0),ie.read(l,!1,!0),ie.update(c,!1,!0)};xr.set(t,u);const f=Rb(t);window.addEventListener("resize",u,{passive:!0}),t!==document.documentElement&&Fb.set(t,K_(t,u)),f.addEventListener("scroll",u,{passive:!0})}const i=xr.get(t);return ie.read(i,!1,!0),()=>{var a;De(i);const l=bl.get(t);if(!l||(l.delete(s),l.size))return;const c=xr.get(t);xr.delete(t),c&&(Rb(t).removeEventListener("scroll",c),(a=Fb.get(t))===null||a===void 0||a(),window.removeEventListener("resize",c))}}function ak({source:e,container:t,axis:n="y"}){e&&(t=e);const r={value:0},o=wl(s=>{r.value=s[n].progress*100},{container:t,axis:n});return{currentTime:r,cancel:o}}const xl=new Map;function Bb({source:e,container:t=document.documentElement,axis:n="y"}={}){e&&(t=e),xl.has(t)||xl.set(t,{});const r=xl.get(t);return r[n]||(r[n]=gv()?new ScrollTimeline({source:t,axis:n}):ak({source:t,axis:n})),r[n]}function lk(e){return e.length===2}function zb(e){return e&&(e.target||e.offset)}function ck(e,t){return lk(e)||zb(t)?wl(n=>{e(n[t.axis].progress,n)},t):Ob(e,Bb(t))}function uk(e,t){if(e.flatten(),zb(t))return e.pause(),wl(n=>{e.time=e.duration*n[t.axis].progress},t);{const n=Bb(t);return e.attachTimeline?e.attachTimeline(n,r=>(r.pause(),Ob(o=>{r.time=r.duration*o},n))):Ce}}function dk(e,{axis:t="y",...n}={}){const r={axis:t,...n};return typeof e=="function"?ck(e,r):uk(e,r)}function Wb(e,t){Ot(!!(!t||t.current),`You have defined a ${e} options but the provided ref is not yet hydrated, probably because it's defined higher up the tree. Try calling useScroll() in the same component as the ref, or setting its \`layoutEffect: false\` option.`)}const fk=()=>({scrollX:Qe(0),scrollY:Qe(0),scrollXProgress:Qe(0),scrollYProgress:Qe(0)});function Hb({container:e,target:t,layoutEffect:n=!0,...r}={}){const o=wt(fk);return(n?tr:E.useEffect)(()=>(Wb("target",t),Wb("container",e),dk((i,{x:a,y:l})=>{o.scrollX.set(a.current),o.scrollXProgress.set(a.progress),o.scrollY.set(l.current),o.scrollYProgress.set(l.progress)},{...r,container:(e==null?void 0:e.current)||void 0,target:(t==null?void 0:t.current)||void 0})),[e,t,JSON.stringify(r.offset)]),o}function Tt(e){const t=wt(()=>Qe(e)),{isStatic:n}=E.useContext(pn);if(n){const[,r]=E.useState(e);E.useEffect(()=>t.on("change",r),[])}return t}function Sl(e,t){const n=Tt(t()),r=()=>n.set(t());return r(),tr(()=>{const o=()=>ie.preRender(r,!1,!0),s=e.map(i=>i.on("change",o));return()=>{s.forEach(i=>i()),De(r)}}),n}function Cl(e,...t){const n=e.length;function r(){let o="";for(let s=0;s<n;s++){o+=e[s];const i=t[s];i&&(o+=pe(i)?i.get():i)}return o}return Sl(t.filter(pe),r)}function jb(e){return typeof e=="number"?e:parseFloat(e)}function Sr(e,t={}){const{isStatic:n}=E.useContext(pn),r=E.useRef(null),o=Tt(pe(e)?jb(e.get()):e),s=E.useRef(o.get()),i=E.useRef(()=>{}),a=()=>{const c=r.current;c&&c.time===0&&c.sample(ve.delta),l(),r.current=RI({keyframes:[o.get(),s.current],velocity:o.getVelocity(),type:"spring",restDelta:.001,restSpeed:.01,...t,onUpdate:i.current})},l=()=>{r.current&&r.current.stop()};return E.useInsertionEffect(()=>o.attach((c,u)=>n?u(c):(s.current=c,i.current=u,ie.update(a),o.get()),l),[JSON.stringify(t)]),tr(()=>{if(pe(e))return e.on("change",c=>o.set(jb(c)))},[o]),o}function pk(e){const t=E.useRef(0),{isStatic:n}=E.useContext(pn);E.useEffect(()=>{if(n)return;const r=({timestamp:o,delta:s})=>{t.current||(t.current=o),e(o-t.current,s)};return ie.update(r,!0),()=>De(r)},[e])}const hk=e=>e&&typeof e=="object"&&e.mix,mk=e=>hk(e)?e.mix:void 0;function gk(...e){const t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],o=e[1+n],s=e[2+n],i=e[3+n],a=tl(o,s,{mixer:mk(s[0]),...i});return t?a(r):a}function vk(e){lr.current=[],e();const t=Sl(lr.current,e);return lr.current=void 0,t}function zt(e,t,n,r){if(typeof e=="function")return vk(e);const o=typeof t=="function"?t:gk(t,n,r);return Array.isArray(e)?Ub(e,o):Ub([e],([s])=>o(s))}function Ub(e,t){const n=wt(()=>[]);return Sl(e,()=>{n.length=0;const r=e.length;for(let o=0;o<r;o++)n[o]=e[o].get();return t(n)})}function yk(e){return E.useEffect(()=>()=>e(),[])}const bk=(e,t,n)=>{const r=t-e;return((n-e)%r+r)%r+e};function Gb(e,t){return hy(e)?e[bk(0,e.length,t)]:e}function El(e){return typeof e=="object"&&!Array.isArray(e)}function Kb(e,t,n,r){return typeof e=="string"&&El(t)?Uo(e,n,r):e instanceof NodeList?Array.from(e):Array.isArray(e)?e:[e]}function wk(e,t,n){return e*(t+1)}function Yb(e,t,n,r){var o;return typeof t=="number"?t:t.startsWith("-")||t.startsWith("+")?Math.max(0,e+parseFloat(t)):t==="<"?n:(o=r.get(t))!==null&&o!==void 0?o:e}function xk(e,t,n){for(let r=0;r<e.length;r++){const o=e[r];o.at>t&&o.at<n&&(Ko(e,o),r--)}}function Sk(e,t,n,r,o,s){xk(e,o,s);for(let i=0;i<t.length;i++)e.push({value:t[i],at:le(o,s,r[i]),easing:Gb(n,i)})}function Ck(e,t){for(let n=0;n<e.length;n++)e[n]=e[n]/(t+1)}function Ek(e,t){return e.at===t.at?e.value===null?1:t.value===null?-1:0:e.at-t.at}const Pk="easeInOut",Tk=20;function Ak(e,{defaultTransition:t={},...n}={},r,o){const s=t.duration||.3,i=new Map,a=new Map,l={},c=new Map;let u=0,f=0,h=0;for(let m=0;m<e.length;m++){const y=e[m];if(typeof y=="string"){c.set(y,f);continue}else if(!Array.isArray(y)){c.set(y.name,Yb(f,y.at,u,c));continue}let[g,v,b={}]=y;b.at!==void 0&&(f=Yb(f,b.at,u,c));let w=0;const x=(S,C,T,A=0,N=0)=>{const I=Nk(S),{delay:O=0,times:k=nl(I),type:L="keyframes",repeat:W,repeatType:F,repeatDelay:Y=0,...U}=C;let{ease:H=t.ease||"easeOut",duration:V}=C;const B=typeof O=="function"?O(A,N):O,ee=I.length,te=Ho(L)?L:o==null?void 0:o[L];if(ee<=2&&te){let $=100;if(ee===2&&Dk(I)){const X=I[1]-I[0];$=Math.abs(X)}const K={...U};V!==void 0&&(K.duration=Re(V));const z=S1(K,$,te);H=z.ease,V=z.duration}V??(V=s);const D=f+B;k.length===1&&k[0]===0&&(k[1]=1);const G=k.length-I.length;if(G>0&&gy(k,G),I.length===1&&I.unshift(null),W){Ye(W<Tk,"Repeat count too high, must be less than 20"),V=wk(V,W);const $=[...I],K=[...k];H=Array.isArray(H)?[...H]:[H];const z=[...H];for(let X=0;X<W;X++){I.push(...$);for(let q=0;q<$.length;q++)k.push(K[q]+(X+1)),H.push(q===0?"linear":Gb(z,q-1))}Ck(k,W)}const R=D+V;Sk(T,I,H,k,D,R),w=Math.max(B+V,w),h=Math.max(R,h)};if(pe(g)){const S=Xb(g,a);x(v,b,qb("default",S))}else{const S=Kb(g,v,r,l),C=S.length;for(let T=0;T<C;T++){v=v,b=b;const A=S[T],N=Xb(A,a);for(const I in v)x(v[I],Mk(b,I),qb(I,N),T,C)}}u=f,f+=w}return a.forEach((m,y)=>{for(const g in m){const v=m[g];v.sort(Ek);const b=[],w=[],x=[];for(let C=0;C<v.length;C++){const{at:T,value:A,easing:N}=v[C];b.push(A),w.push(xt(0,h,T)),x.push(N||"easeOut")}w[0]!==0&&(w.unshift(0),b.unshift(b[0]),x.unshift(Pk)),w[w.length-1]!==1&&(w.push(1),b.push(null)),i.has(y)||i.set(y,{keyframes:{},transition:{}});const S=i.get(y);S.keyframes[g]=b,S.transition[g]={...t,duration:h,ease:x,times:w,...n}}}),i}function Xb(e,t){return!t.has(e)&&t.set(e,{}),t.get(e)}function qb(e,t){return t[e]||(t[e]=[]),t[e]}function Nk(e){return Array.isArray(e)?e:[e]}function Mk(e,t){return e&&e[t]?{...e,...e[t]}:{...e}}const Ik=e=>typeof e=="number",Dk=e=>e.every(Ik);function _k(e,t){return e in t}class kk extends Ib{constructor(){super(...arguments),this.type="object"}readValueFromInstance(t,n){if(_k(n,t)){const r=t[n];if(typeof r=="string"||typeof r=="number")return r}}getBaseTargetFromProps(){}removeValueFromRenderState(t,n){delete n.output[t]}measureInstanceViewportBox(){return he()}build(t,n){Object.assign(t.output,n)}renderInstance(t,{output:n}){Object.assign(t,n)}sortInstanceNodePosition(){return 0}}function Ok(e){const t={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},n=qy(e)?new kb(t):new _b(t);n.mount(e),Cn.set(e,n)}function Lk(e){const t={presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}},n=new kk(t);n.mount(e),Cn.set(e,n)}function Vk(e,t){return pe(e)||typeof e=="number"||typeof e=="string"&&!El(t)}function Zb(e,t,n,r){const o=[];if(Vk(e,t))o.push(Xy(e,El(t)&&t.default||t,n&&(n.default||n)));else{const s=Kb(e,t,r),i=s.length;Ye(!!i,"No valid elements provided.");for(let a=0;a<i;a++){const l=s[a],c=l instanceof Element?Ok:Lk;Cn.has(l)||c(l);const u=Cn.get(l),f={...n};"delay"in f&&typeof f.delay=="function"&&(f.delay=f.delay(a,i)),o.push(...ol(u,{...t,transition:f},{}))}}return o}function $k(e,t,n){const r=[];return Ak(e,t,n,{spring:Qa}).forEach(({keyframes:s,transition:i},a)=>{r.push(...Zb(a,s,i))}),r}function Fk(e){return Array.isArray(e)&&e.some(Array.isArray)}function Rk(e){function t(n,r,o){let s=[];Fk(n)?s=$k(n,r,e):s=Zb(n,r,o,e);const i=new vv(s);return e&&e.animations.push(i),i}return t}function Bk(){const e=wt(()=>({current:null,animations:[]})),t=wt(()=>Rk(e));return yk(()=>{e.animations.forEach(n=>n.stop())}),[e,t]}const zk={some:0,all:1};function Wk(e,t,{root:n,margin:r,amount:o="some"}={}){const s=Uo(e),i=new WeakMap,a=c=>{c.forEach(u=>{const f=i.get(u.target);if(u.isIntersecting!==!!f)if(u.isIntersecting){const h=t(u);typeof h=="function"?i.set(u.target,h):l.unobserve(u.target)}else typeof f=="function"&&(f(u),i.delete(u.target))})},l=new IntersectionObserver(a,{root:n,rootMargin:r,threshold:typeof o=="number"?o:zk[o]});return s.forEach(c=>l.observe(c)),()=>l.disconnect()}function Hk(e,{root:t,margin:n,amount:r,once:o=!1}={}){const[s,i]=E.useState(!1);return E.useEffect(()=>{if(!e.current||o&&s)return;const a=()=>(i(!0),o?void 0:()=>i(!1)),l={root:t&&t.current||void 0,margin:n,amount:r};return Wk(e.current,a,l)},[t,e,n,o,r]),s}function jk(e,t){if(e==="first")return 0;{const n=t-1;return e==="last"?n:n/2}}function Uk(e=.1,{startDelay:t=0,from:n=0,ease:r}={}){return(o,s)=>{const i=typeof n=="number"?n:jk(n,s),a=Math.abs(i-o);let l=e*a;if(r){const c=s*e;l=el(r)(l/c)*c}return t+l}}const Gk=()=>p.jsx("div",{className:"flex h-[50vh] w-full items-center justify-center",children:p.jsx(oe.div,{animate:{scale:[1,1.2,1],rotate:[0,180,360],borderRadius:["20%","50%","20%"]},transition:{duration:2,ease:"easeInOut",repeat:1/0},className:"h-12 w-12 bg-primary/20 border-2 border-primary"})});function Kk({value:e,className:t}){const n=Sr(e,{mass:.8,stiffness:75,damping:15}),r=zt(n,o=>Math.round(o).toLocaleString());return E.useEffect(()=>{n.set(e)},[n,e]),p.jsx(oe.span,{className:M("font-mono",t),children:r})}const Yk=({tabs:e,containerClassName:t,activeTabClassName:n,tabClassName:r,contentClassName:o})=>{const[s,i]=E.useState(e[0]),[a,l]=E.useState(e),c=h=>{const m=[...e],y=m.splice(h,1);m.unshift(y[0]),l(m),i(m[0])},[u,f]=E.useState(!1);return p.jsxs(p.Fragment,{children:[p.jsx("div",{className:M("flex flex-row items-center justify-start [perspective:1000px] relative overflow-auto sm:overflow-visible no-visible-scrollbar max-w-full w-full",t),children:e.map((h,m)=>p.jsxs("button",{onClick:()=>{c(m)},onMouseEnter:()=>f(!0),onMouseLeave:()=>f(!1),className:M("relative px-4 py-2 rounded-full",r),style:{transformStyle:"preserve-3d"},children:[s.value===h.value&&p.jsx(oe.div,{layoutId:"clickedbutton",transition:{type:"spring",bounce:.3,duration:.6},className:M("absolute inset-0 bg-gray-200 dark:bg-zinc-800 rounded-full ",n)}),p.jsx("span",{className:"relative block text-black dark:text-white",children:h.title})]},h.title))}),p.jsx(Jb,{tabs:a,active:s,hovering:u,className:M("mt-32",o)},s.value)]})},Jb=({className:e,tabs:t,hovering:n})=>{const r=o=>o.value===t[0].value;return p.jsx("div",{className:"relative w-full h-full",children:t.map((o,s)=>p.jsx(oe.div,{layoutId:o.value,style:{scale:1-s*.1,top:n?s*-50:0,zIndex:-s,opacity:s<3?1-s*.1:0},animate:{y:r(o)?[0,40,0]:0},className:M("w-full h-full absolute top-0 left-0",e),children:o.content},o.value))})},Xk=({items:e})=>{const[t,n]=E.useState(null),r={stiffness:100,damping:5},o=Tt(0),s=Sr(zt(o,[-100,100],[-45,45]),r),i=Sr(zt(o,[-100,100],[-50,50]),r),a=l=>{const u=l.currentTarget.offsetWidth/2;o.set(l.nativeEvent.offsetX-u)};return p.jsx(p.Fragment,{children:e.map(l=>p.jsxs("div",{className:"-mr-4 relative group",onMouseEnter:()=>n(l.id),onMouseLeave:()=>n(null),children:[p.jsx(_o,{mode:"popLayout",children:t===l.id&&p.jsxs(oe.div,{initial:{opacity:0,y:20,scale:.6},animate:{opacity:1,y:0,scale:1,transition:{type:"spring",stiffness:260,damping:10}},exit:{opacity:0,y:20,scale:.6},style:{translateX:i,rotate:s,whiteSpace:"nowrap"},className:"absolute -top-16 -left-1/2 translate-x-1/2 flex text-xs flex-col items-center justify-center rounded-md bg-black z-50 shadow-xl px-4 py-2",children:[p.jsx("div",{className:"absolute inset-x-10 z-30 w-[20%] -bottom-px bg-gradient-to-r from-transparent via-emerald-500 to-transparent h-px "}),p.jsx("div",{className:"absolute left-10 w-[40%] z-30 -bottom-px bg-gradient-to-r from-transparent via-sky-500 to-transparent h-px "}),p.jsx("div",{className:"font-bold text-white relative z-30 text-base",children:l.name}),p.jsx("div",{className:"text-white text-xs",children:l.designation})]})}),p.jsx("img",{onMouseMove:a,height:100,width:100,src:l.image,alt:l.name,className:"object-cover !m-0 !p-0 object-top rounded-full h-14 w-14 border-2 group-hover:scale-105 group-hover:z-30 border-white relative transition duration-500"})]},l.name))})},Qb=["--sky-300","--pink-300","--green-300","--yellow-300","--red-300","--purple-300","--blue-300","--indigo-300","--violet-300"],e0=({className:e,...t})=>{const n=new Array(150).fill(1),r=new Array(100).fill(1),o=()=>Qb[Math.floor(Math.random()*Qb.length)];return p.jsx("div",{style:{transform:"translate(-40%,-60%) skewX(-48deg) skewY(14deg) scale(0.675) rotate(0deg) translateZ(0)"},className:M("absolute left-1/4 p-4 -top-1/4 flex -translate-x-1/2 -translate-y-1/2 w-full h-full z-0 ",e),...t,children:n.map((s,i)=>p.jsx(oe.div,{className:"w-16 h-8 border-l border-slate-200 dark:border-slate-700 relative",children:r.map((a,l)=>p.jsx(oe.div,{whileHover:{backgroundColor:`var(${o()})`,transition:{duration:0}},animate:{transition:{duration:2}},className:"w-16 h-8 border-r border-t border-slate-200 dark:border-slate-700 relative",children:l%2===0&&i%2===0?p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"absolute h-6 w-10 -top-[14px] -left-[22px] text-slate-300 dark:text-slate-700 stroke-[1px] pointer-events-none",children:p.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6v12m6-6H6"})}):null},"col"+l))},"row"+i))})},qk=E.memo(e0),Zk=({animationSpeed:e=.4,opacities:t=[.3,.3,.3,.5,.5,.5,.8,.8,.8,1],colors:n=[[0,255,255]],containerClassName:r,dotSize:o,showGradient:s=!0})=>p.jsxs("div",{className:M("h-full relative bg-white w-full",r),children:[p.jsx("div",{className:"h-full w-full",children:p.jsx(Jk,{colors:n,dotSize:o??3,opacities:t,animationSpeed:e})}),s&&p.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-white to-transparent"})]}),Jk=({colors:e=[[0,0,0]],opacities:t=[.04,.04,.04,.04,.04,.08,.08,.08,.08,.14],dotSize:n=2,animationSpeed:r=.4})=>{const o=E.useRef(null);return E.useEffect(()=>{const s=o.current;if(!s)return;const i=s.getContext("2d");if(!i)return;let a,l=0;const c=()=>{l+=r;const f=s.width,h=s.height;i.clearRect(0,0,f,h);const m=n*2,y=Math.floor(f/m),g=Math.floor(h/m);for(let v=0;v<y;v++)for(let b=0;b<g;b++){const w=v*m,x=b*m,S=Math.abs(Math.sin(v*12.9898+b*78.233+l*.05)),C=Math.floor(S*t.length),T=t[C%t.length],A=Math.floor(S*e.length),N=e[A%e.length];i.fillStyle=`rgba(${N[0]}, ${N[1]}, ${N[2]}, ${T})`,i.fillRect(w,x,n,n)}a=requestAnimationFrame(c)},u=()=>{const f=s.parentElement;f&&(s.width=f.clientWidth,s.height=f.clientHeight)};return window.addEventListener("resize",u),u(),c(),()=>{window.removeEventListener("resize",u),cancelAnimationFrame(a)}},[e,t,n,r]),p.jsx("canvas",{ref:o,className:"h-full w-full"})},Qk=({title:e,icon:t,children:n})=>{const[r,o]=E.useState(!1);return p.jsxs("div",{onMouseEnter:()=>o(!0),onMouseLeave:()=>o(!1),className:"border border-black/[0.2] group/canvas-card flex items-center justify-center dark:border-white/[0.2] max-w-sm w-full mx-auto p-4 relative h-[30rem] ",children:[p.jsx(Cr,{className:"absolute h-6 w-6 -top-3 -left-3 dark:text-white text-black"}),p.jsx(Cr,{className:"absolute h-6 w-6 -bottom-3 -left-3 dark:text-white text-black"}),p.jsx(Cr,{className:"absolute h-6 w-6 -top-3 -right-3 dark:text-white text-black"}),p.jsx(Cr,{className:"absolute h-6 w-6 -bottom-3 -right-3 dark:text-white text-black"}),p.jsx(_o,{children:r&&p.jsx(oe.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"h-full w-full absolute inset-0",children:n})}),p.jsxs("div",{className:"relative z-20",children:[p.jsx("div",{className:"text-center group-hover/canvas-card:-translate-y-4 group-hover/canvas-card:opacity-0 transition duration-200 w-full mx-auto flex items-center justify-center",children:t}),p.jsx("h2",{className:"dark:text-white text-xl opacity-0 group-hover/canvas-card:opacity-100 relative z-10 text-black mt-4 font-bold group-hover/canvas-card:text-white group-hover/canvas-card:-translate-y-2 transition duration-200",children:e})]})]})},Cr=({className:e,...t})=>p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:e,...t,children:p.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6v12m6-6H6"})}),eO=({items:e,offset:t,scaleFactor:n})=>{const r=t||10,o=n||.06,[s,i]=E.useState(e),a=E.useRef(null);return E.useEffect(()=>((()=>{a.current=setInterval(()=>{i(c=>{const u=[...c],f=u.pop();return f&&u.unshift(f),u})},5e3)})(),()=>{a.current&&clearInterval(a.current)}),[]),p.jsx("div",{className:"relative h-60 w-60 md:h-60 md:w-96",children:s.map((l,c)=>p.jsxs(oe.div,{className:"absolute dark:bg-black bg-white h-60 w-60 md:h-60 md:w-96 rounded-3xl p-4 shadow-xl border border-neutral-200 dark:border-white/[0.1] shadow-black/[0.1] dark:shadow-white/[0.05] flex flex-col justify-between",style:{transformOrigin:"top center"},animate:{top:c*-r,scale:1-c*o,zIndex:s.length-c},children:[p.jsx("div",{className:"font-normal text-neutral-700 dark:text-neutral-200",children:l.content}),p.jsxs("div",{children:[p.jsx("p",{className:"text-neutral-500 font-medium dark:text-white",children:l.name}),p.jsx("p",{className:"text-neutral-400 font-normal dark:text-neutral-200",children:l.designation})]})]},l.id))})},tO=({text:e,className:t})=>{const n=Tt(0),r=Tt(0),[o,s]=E.useState("");E.useEffect(()=>{const a=Pl(1500);s(a)},[]);function i({currentTarget:a,clientX:l,clientY:c}){const{left:u,top:f}=a.getBoundingClientRect();n.set(l-u),r.set(c-f);const h=Pl(1500);s(h)}return p.jsx("div",{className:M("p-0.5 bg-transparent aspect-square flex items-center justify-center w-full h-full relative",t),children:p.jsxs("div",{onMouseMove:i,className:"group/card rounded-3xl w-full relative overflow-hidden bg-transparent flex items-center justify-center h-full",children:[p.jsx(t0,{mouseX:n,mouseY:r,randomString:o}),p.jsx("div",{className:"relative z-10 flex items-center justify-center",children:p.jsxs("div",{className:"relative h-44 w-44 rounded-full flex items-center justify-center text-white font-bold text-4xl",children:[p.jsx("div",{className:"absolute w-full h-full bg-black/80 dark:bg-[#09090b]/[0.8] blur-sm rounded-full"}),p.jsx("span",{className:"text-white z-20",children:e})]})})]})})};function t0({mouseX:e,mouseY:t,randomString:n}){const r=Cl`radial-gradient(250px at ${e}px ${t}px, white, transparent)`,o={maskImage:r,WebkitMaskImage:r};return p.jsxs("div",{className:"pointer-events-none",children:[p.jsx("div",{className:"absolute inset-0 rounded-2xl [mask-image:linear-gradient(white,transparent)] group-hover/card:opacity-50"}),p.jsx(oe.div,{className:"absolute inset-0 rounded-2xl bg-gradient-to-r from-emerald-500 to-teal-700 opacity-0 group-hover/card:opacity-100 backdrop-blur-xl transition duration-500",style:o}),p.jsx(oe.div,{className:"absolute inset-0 rounded-2xl opacity-0 mix-blend-overlay group-hover/card:opacity-100",style:o,children:p.jsx("p",{className:"absolute inset-x-0 text-xs h-full break-words whitespace-pre-wrap text-white font-mono font-bold transition duration-500",children:n})})]})}const n0="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",Pl=e=>{let t="";for(let n=0;n<e;n++)t+=n0.charAt(Math.floor(Math.random()*n0.length));return t},nO=({className:e,...t})=>p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:e,...t,children:p.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6v12m6-6H6"})}),rO=({words:e,duration:t=3e3,className:n})=>{const[r,o]=E.useState(e[0]),[s,i]=E.useState(!1),a=E.useCallback(()=>{const l=e[e.indexOf(r)+1]||e[0];o(l),i(!0)},[r,e]);return E.useEffect(()=>{s||setTimeout(()=>{a()},t)},[s,t,a]),p.jsx(_o,{onExitComplete:()=>{i(!1)},children:p.jsx(oe.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{type:"spring",stiffness:100,damping:10},exit:{opacity:0,y:-40,x:40,filter:"blur(8px)",scale:2,position:"absolute"},className:M("z-10 inline-block relative text-left text-neutral-900 dark:text-neutral-100 px-2",n),children:r.split("").map((l,c)=>p.jsx(oe.span,{initial:{opacity:0,y:10,filter:"blur(8px)"},animate:{opacity:1,y:0,filter:"blur(0px)"},transition:{delay:c*.08,duration:.4,filter:{type:"tween",duration:.4}},className:"inline-block",children:l},r+c))},r)})},oO=({text:e,className:t})=>p.jsx("div",{className:M("relative inline-block",t),children:p.jsxs("span",{className:"relative inline-block",children:[e,p.jsx("span",{className:"absolute top-0 left-0 -z-10 w-full h-full text-red-500 opacity-80 animate-glitch-1","aria-hidden":"true",children:e}),p.jsx("span",{className:"absolute top-0 left-0 -z-10 w-full h-full text-cyan-400 opacity-80 animate-glitch-2","aria-hidden":"true",children:e}),p.jsx("span",{className:"absolute top-0 left-0 -z-10 w-full h-full text-green-500 opacity-80 animate-glitch-1 [animation-delay:0.5s]","aria-hidden":"true",children:e})]})});var Tl,os="HoverCard",[r0]=ge(os,[Ue]),ss=Ue(),[sO,Al]=r0(os),o0=e=>{const{__scopeHoverCard:t,children:n,open:r,defaultOpen:o,onOpenChange:s,openDelay:i=700,closeDelay:a=300}=e,l=ss(t),c=d.useRef(0),u=d.useRef(0),f=d.useRef(!1),h=d.useRef(!1),[m,y]=ye({prop:r,defaultProp:o??!1,onChange:s,caller:os}),g=d.useCallback(()=>{clearTimeout(u.current),c.current=window.setTimeout(()=>y(!0),i)},[i,y]),v=d.useCallback(()=>{clearTimeout(c.current),!f.current&&!h.current&&(u.current=window.setTimeout(()=>y(!1),a))},[a,y]),b=d.useCallback(()=>y(!1),[y]);return d.useEffect(()=>()=>{clearTimeout(c.current),clearTimeout(u.current)},[]),p.jsx(sO,{scope:t,open:m,onOpenChange:y,onOpen:g,onClose:v,onDismiss:b,hasSelectionRef:f,isPointerDownOnContentRef:h,children:p.jsx(Jt,{...l,children:n})})};o0.displayName=os;var s0="HoverCardTrigger",i0=d.forwardRef((e,t)=>{const{__scopeHoverCard:n,...r}=e,o=Al(s0,n),s=ss(n);return p.jsx(Qt,{asChild:!0,...s,children:p.jsx(j.a,{"data-state":o.open?"open":"closed",...r,ref:t,onPointerEnter:_(e.onPointerEnter,as(o.onOpen)),onPointerLeave:_(e.onPointerLeave,as(o.onClose)),onFocus:_(e.onFocus,o.onOpen),onBlur:_(e.onBlur,o.onClose),onTouchStart:_(e.onTouchStart,i=>i.preventDefault())})})});i0.displayName=s0;var iO="HoverCardPortal",[eL,aO]=r0(iO,{forceMount:void 0}),is="HoverCardContent",a0=d.forwardRef((e,t)=>{const n=aO(is,e.__scopeHoverCard),{forceMount:r=n.forceMount,...o}=e,s=Al(is,e.__scopeHoverCard);return p.jsx(me,{present:r||s.open,children:p.jsx(lO,{"data-state":s.open?"open":"closed",...o,onPointerEnter:_(e.onPointerEnter,as(s.onOpen)),onPointerLeave:_(e.onPointerLeave,as(s.onClose)),ref:t})})});a0.displayName=is;var lO=d.forwardRef((e,t)=>{const{__scopeHoverCard:n,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:i,...a}=e,l=Al(is,n),c=ss(n),u=d.useRef(null),f=J(t,u),[h,m]=d.useState(!1);return d.useEffect(()=>{if(h){const y=document.body;return Tl=y.style.userSelect||y.style.webkitUserSelect,y.style.userSelect="none",y.style.webkitUserSelect="none",()=>{y.style.userSelect=Tl,y.style.webkitUserSelect=Tl}}},[h]),d.useEffect(()=>{if(u.current){const y=()=>{m(!1),l.isPointerDownOnContentRef.current=!1,setTimeout(()=>{var v;((v=document.getSelection())==null?void 0:v.toString())!==""&&(l.hasSelectionRef.current=!0)})};return document.addEventListener("pointerup",y),()=>{document.removeEventListener("pointerup",y),l.hasSelectionRef.current=!1,l.isPointerDownOnContentRef.current=!1}}},[l.isPointerDownOnContentRef,l.hasSelectionRef]),d.useEffect(()=>{u.current&&dO(u.current).forEach(g=>g.setAttribute("tabindex","-1"))}),p.jsx(dt,{asChild:!0,disableOutsidePointerEvents:!1,onInteractOutside:i,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:_(s,y=>{y.preventDefault()}),onDismiss:l.onDismiss,children:p.jsx($n,{...c,...a,onPointerDown:_(a.onPointerDown,y=>{y.currentTarget.contains(y.target)&&m(!0),l.hasSelectionRef.current=!1,l.isPointerDownOnContentRef.current=!0}),ref:f,style:{...a.style,userSelect:h?"text":void 0,WebkitUserSelect:h?"text":void 0,"--radix-hover-card-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-hover-card-content-available-width":"var(--radix-popper-available-width)","--radix-hover-card-content-available-height":"var(--radix-popper-available-height)","--radix-hover-card-trigger-width":"var(--radix-popper-anchor-width)","--radix-hover-card-trigger-height":"var(--radix-popper-anchor-height)"}})})}),cO="HoverCardArrow",uO=d.forwardRef((e,t)=>{const{__scopeHoverCard:n,...r}=e,o=ss(n);return p.jsx(Fn,{...o,...r,ref:t})});uO.displayName=cO;function as(e){return t=>t.pointerType==="touch"?void 0:e()}function dO(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});for(;n.nextNode();)t.push(n.currentNode);return t}var fO=o0,pO=i0,l0=a0;const hO=fO,mO=pO,c0=d.forwardRef(({className:e,align:t="center",sideOffset:n=4,...r},o)=>p.jsx(l0,{ref:o,align:t,sideOffset:n,className:M("z-50 w-64 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 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",e),...r}));c0.displayName=l0.displayName;const gO=({items:e,direction:t="left",speed:n="fast",pauseOnHover:r=!0,className:o})=>{const s=E.useRef(null),i=E.useRef(null),[a,l]=E.useState(!1),c=E.useCallback(()=>{s.current&&(t==="left"?s.current.style.setProperty("--animation-direction","forwards"):s.current.style.setProperty("--animation-direction","reverse"))},[t]),u=E.useCallback(()=>{s.current&&(n==="fast"?s.current.style.setProperty("--animation-duration","20s"):n==="normal"?s.current.style.setProperty("--animation-duration","40s"):s.current.style.setProperty("--animation-duration","80s"))},[n]),f=E.useCallback(()=>{s.current&&i.current&&(Array.from(i.current.children).forEach(m=>{const y=m.cloneNode(!0);i.current&&i.current.appendChild(y)}),c(),u(),l(!0))},[c,u]);return E.useEffect(()=>{f()},[f]),p.jsx("div",{ref:s,className:M("scroller relative z-20 max-w-7xl overflow-hidden [mask-image:linear-gradient(to_right,transparent,white_20%,white_80%,transparent)]",o),children:p.jsx("ul",{ref:i,className:M(" flex min-w-full shrink-0 gap-4 py-4 w-max flex-nowrap",a&&"animate-scroll ",r&&"hover:[animation-play-state:paused]"),children:e.map((h,m)=>p.jsxs("li",{className:"w-[350px] max-w-full relative rounded-2xl border border-b-0 flex-shrink-0 border-zinc-200 dark:border-slate-700 px-8 py-6 md:w-[450px] bg-white dark:bg-slate-900 shadow-sm dark:shadow-none",style:{background:"linear-gradient(180deg, var(--white), var(--zinc-50))"},children:[p.jsx("div",{className:"dark:hidden absolute inset-0 bg-gradient-to-b from-white to-zinc-50 rounded-2xl -z-10"}),p.jsx("div",{className:"hidden dark:block absolute inset-0 bg-gradient-to-b from-slate-800 to-slate-900 rounded-2xl -z-10"}),p.jsxs("blockquote",{children:[p.jsx("div",{"aria-hidden":"true",className:"user-select-none -z-1 pointer-events-none absolute -left-0.5 -top-0.5 h-[calc(100%_+_4px)] w-[calc(100%_+_4px)]"}),p.jsx("span",{className:" relative z-20 text-sm leading-[1.6] text-zinc-700 dark:text-gray-100 font-normal",children:h.quote}),p.jsx("div",{className:"relative z-20 mt-6 flex flex-row items-center",children:p.jsxs("span",{className:"flex flex-col gap-1",children:[p.jsx("span",{className:" text-sm leading-[1.6] text-zinc-500 dark:text-gray-400 font-normal",children:h.name}),p.jsx("span",{className:" text-sm leading-[1.6] text-zinc-400 dark:text-gray-400 font-normal",children:h.title})]})})]})]},h.name+m))})})},vO=({className:e,height:t=40,squares:n=[20,20]})=>{const r=E.useRef(null),[o,s]=E.useState({x:0,y:0}),i=c=>{if(!r.current)return;const u=r.current.getBoundingClientRect();s({x:c.clientX-u.left,y:c.clientY-u.top})},[a,l]=n;return p.jsxs("div",{ref:r,onMouseMove:i,className:M("relative overflow-hidden border border-border bg-background",e),style:{"--mouse-x":`${o.x}px`,"--mouse-y":`${o.y}px`},children:[p.jsx("div",{className:"absolute inset-0 z-0 opacity-0 transition-opacity duration-500 hover:opacity-100 pointer-events-none",style:{background:"radial-gradient(600px circle at var(--mouse-x) var(--mouse-y), hsl(var(--primary) / 0.15), transparent 40%)"}}),p.jsx("div",{className:"relative z-10 grid",style:{gridTemplateColumns:`repeat(${l}, 1fr)`,gridTemplateRows:`repeat(${a}, 1fr)`},children:Array.from({length:a*l}).map((c,u)=>p.jsx("div",{className:"border-r border-b border-border/10",style:{width:"100%",height:`${t}px`}},u))}),p.jsx("div",{className:"absolute inset-0 z-20 pointer-events-none",style:{background:"radial-gradient(600px circle at var(--mouse-x) var(--mouse-y), hsl(var(--primary) / 0.05), transparent 40%)"}})]})},yO=({children:e,className:t})=>p.jsxs("div",{className:M("relative flex min-h-screen flex-col items-center justify-center overflow-hidden bg-slate-950 w-full rounded-md z-0",t),children:[p.jsxs("div",{className:"relative flex w-full flex-1 scale-y-125 items-center justify-center isolate z-0 ",children:[p.jsxs(oe.div,{initial:{opacity:.5,width:"15rem"},whileInView:{opacity:1,width:"30rem"},transition:{delay:.3,duration:.8,ease:"easeInOut"},style:{backgroundImage:"conic-gradient(var(--conic-position), var(--tw-gradient-stops))"},className:"absolute inset-auto right-1/2 h-56 overflow-visible w-[30rem] bg-gradient-conic from-cyan-500 via-transparent to-transparent text-white [--conic-position:from_70deg_at_center_top]",children:[p.jsx("div",{className:"absolute w-[100%] left-0 bg-slate-950 h-40 bottom-0 z-20 [mask-image:linear-gradient(to_top,white,transparent)]"}),p.jsx("div",{className:"absolute w-40 h-[100%] left-0 bg-slate-950 bottom-0 z-20 [mask-image:linear-gradient(to_right,white,transparent)]"})]}),p.jsxs(oe.div,{initial:{opacity:.5,width:"15rem"},whileInView:{opacity:1,width:"30rem"},transition:{delay:.3,duration:.8,ease:"easeInOut"},style:{backgroundImage:"conic-gradient(var(--conic-position), var(--tw-gradient-stops))"},className:"absolute inset-auto left-1/2 h-56 w-[30rem] bg-gradient-conic from-transparent via-transparent to-cyan-500 text-white [--conic-position:from_290deg_at_center_top]",children:[p.jsx("div",{className:"absolute w-40 h-[100%] right-0 bg-slate-950 bottom-0 z-20 [mask-image:linear-gradient(to_left,white,transparent)]"}),p.jsx("div",{className:"absolute w-[100%] right-0 bg-slate-950 h-40 bottom-0 z-20 [mask-image:linear-gradient(to_top,white,transparent)]"})]}),p.jsx("div",{className:"absolute top-1/2 h-48 w-full translate-y-12 scale-x-150 bg-slate-950 blur-2xl"}),p.jsx("div",{className:"absolute top-1/2 z-50 h-48 w-full bg-transparent opacity-10 backdrop-blur-md"}),p.jsx("div",{className:"absolute inset-auto z-50 h-36 w-[28rem] -translate-y-1/2 rounded-full bg-cyan-500 opacity-50 blur-3xl"}),p.jsx(oe.div,{initial:{width:"8rem"},whileInView:{width:"16rem"},transition:{delay:.3,duration:.8,ease:"easeInOut"},className:"absolute inset-auto z-30 h-36 w-64 -translate-y-[6rem] rounded-full bg-cyan-400 blur-2xl"}),p.jsx(oe.div,{initial:{width:"15rem"},whileInView:{width:"30rem"},transition:{delay:.3,duration:.8,ease:"easeInOut"},className:"absolute inset-auto z-50 h-0.5 w-[30rem] -translate-y-[7rem] bg-cyan-400 "}),p.jsx("div",{className:"absolute inset-auto z-40 h-44 w-full -translate-y-[12.5rem] bg-slate-950 "})]}),p.jsx("div",{className:"relative z-50 flex -translate-y-80 flex-col items-center px-5",children:e})]}),bO=({children:e,zoomFactor:t=1.5,lensSize:n=170,isStatic:r=!1,position:o={x:200,y:150},hovering:s,setHovering:i,className:a})=>{const[l,c]=E.useState(!1),[u,f]=E.useState({x:0,y:0}),h=E.useRef(null),m=v=>{var w;const b=(w=h.current)==null?void 0:w.getBoundingClientRect();if(b){const x=v.clientX-b.left,S=v.clientY-b.top;f({x,y:S})}},y=s!==void 0?s:l,g=i||c;return p.jsxs("div",{ref:h,className:M("relative overflow-hidden rounded-lg z-20 group/lens",a),onMouseEnter:()=>g(!0),onMouseLeave:()=>g(!1),onMouseMove:m,children:[e,r?p.jsx(oe.div,{initial:{opacity:0,scale:.58},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.8},transition:{duration:.3,ease:"easeOut"},className:"absolute inset-0 overflow-hidden pointer-events-none",style:{maskImage:`radial-gradient(circle ${n/2}px at ${o.x}px ${o.y}px, black 100%, transparent 100%)`,WebkitMaskImage:`radial-gradient(circle ${n/2}px at ${o.x}px ${o.y}px, black 100%, transparent 100%)`,transformOrigin:`${o.x}px ${o.y}px`},children:p.jsx("div",{className:"absolute inset-0",style:{transform:`scale(${t})`,transformOrigin:`${o.x}px ${o.y}px`},children:e})}):p.jsx(_o,{children:y&&p.jsx(oe.div,{initial:{opacity:0,scale:.58},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.8},transition:{duration:.3,ease:"easeOut"},className:"absolute inset-0 overflow-hidden pointer-events-none",style:{maskImage:`radial-gradient(circle ${n/2}px at ${u.x}px ${u.y}px, black 100%, transparent 100%)`,WebkitMaskImage:`radial-gradient(circle ${n/2}px at ${u.x}px ${u.y}px, black 100%, transparent 100%)`,transformOrigin:`${u.x}px ${u.y}px`,zIndex:50},children:p.jsx("div",{className:"absolute inset-0",style:{transform:`scale(${t})`,transformOrigin:`${u.x}px ${u.y}px`},children:e})})})]})};function wO({children:e,className:t,gradientSize:n=200,gradientColor:r="#262626",gradientOpacity:o=.8,...s}){const i=Tt(-n),a=Tt(-n);function l({currentTarget:u,clientX:f,clientY:h}){const{left:m,top:y}=u.getBoundingClientRect();i.set(f-m),a.set(h-y)}function c(){i.set(-n),a.set(-n)}return p.jsxs("div",{onMouseMove:l,onMouseLeave:c,className:M("group relative flex size-full overflow-hidden rounded-xl border bg-neutral-100 dark:bg-neutral-900 text-black dark:text-white",t),...s,children:[p.jsx("div",{className:"relative z-10",children:e}),p.jsx(oe.div,{className:"pointer-events-none absolute -inset-px rounded-xl opacity-0 transition-opacity duration-300 group-hover:opacity-100",style:{background:Cl`
|
|
135
135
|
radial-gradient(
|
|
136
136
|
${n}px circle at ${i}px ${a}px,
|
|
137
137
|
${r},
|
|
138
138
|
transparent 80%
|
|
139
139
|
)
|
|
140
|
-
`,opacity:o}})]})}const AO=({children:e,className:t,...n})=>{const r=P.useRef(null),[o,s]=P.useState({x:0,y:0}),i=l=>{const{clientX:c,clientY:d}=l,{left:f,top:h,width:m,height:y}=l.currentTarget.getBoundingClientRect(),g=(c-(f+m/2))*.35,v=(d-(h+y/2))*.35;s({x:g,y:v})},a=()=>{s({x:0,y:0})};return p.jsxs(se.button,{ref:r,onMouseMove:i,onMouseLeave:a,animate:{x:o.x,y:o.y},transition:{type:"spring",stiffness:150,damping:15,mass:.1},className:M("relative inline-flex h-12 overflow-hidden rounded-full p-[1px] focus:outline-none focus:ring-2 focus:ring-slate-400 focus:ring-offset-2 focus:ring-offset-slate-50",t),...n,children:[p.jsx("span",{className:"absolute inset-[-1000%] animate-[spin_2s_linear_infinite] bg-[conic-gradient(from_90deg_at_50%_50%,#E2CBFF_0%,#393BB2_50%,#E2CBFF_100%)]"}),p.jsx("span",{className:"inline-flex h-full w-full cursor-pointer items-center justify-center rounded-full bg-slate-950 px-6 py-1 text-sm font-medium text-white backdrop-blur-3xl",children:e})]})};function NO({borderRadius:e="1.75rem",children:t,as:n="button",containerClassName:r,borderClassName:o,duration:s,className:i,...a}){return p.jsxs(n,{className:M("bg-transparent relative text-xl h-16 w-40 p-[1px] overflow-hidden ",r),style:{borderRadius:e},...a,children:[p.jsx("div",{className:"absolute inset-0",style:{borderRadius:`calc(${e} * 0.96)`},children:p.jsx(w0,{duration:s,rx:"30%",ry:"30%",children:p.jsx("div",{className:M("h-20 w-20 opacity-[0.8] bg-[radial-gradient(#0ea5e9_40%,transparent_60%)]",o)})})}),p.jsx("div",{className:M("relative bg-slate-900/[0.8] border border-slate-800 backdrop-blur-xl text-white flex items-center justify-center w-full h-full text-sm antialiased",i),style:{borderRadius:`calc(${e} * 0.96)`},children:t})]})}const w0=({children:e,duration:t=2e3,rx:n,ry:r,...o})=>{const s=P.useRef(),i=It(0);bk(d=>{var h;const f=(h=s.current)==null?void 0:h.getTotalLength();if(f){const m=f/t;i.set(d*m%f)}});const a=jt(i,d=>{var f;return(f=s.current)==null?void 0:f.getPointAtLength(d).x}),l=jt(i,d=>{var f;return(f=s.current)==null?void 0:f.getPointAtLength(d).y}),c=Al`translateX(${a}px) translateY(${l}px) translateX(-50%) translateY(-50%)`;return p.jsxs(p.Fragment,{children:[p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"none",className:"absolute h-full w-full",width:"100%",height:"100%",...o,children:p.jsx("rect",{fill:"none",width:"100%",height:"100%",rx:n,ry:r,ref:s})}),p.jsx(se.div,{style:{position:"absolute",top:0,left:0,display:"inline-block",transform:c},children:e})]})},MO=({className:e,children:t,borderSize:n=2,borderRadius:r=20,neonColors:o={firstColor:"#ff00aa",secondColor:"#00FFF1"},...s})=>p.jsxs("div",{className:M("relative overflow-hidden z-0",e),style:{borderRadius:r,...s.style},...s,children:[p.jsx("div",{className:"absolute top-0 left-0 w-full h-full -z-10 animate-[spin_4s_linear_infinite]",style:{background:`conic-gradient(from 0deg, transparent 0 340deg, ${o.firstColor} 360deg)`,top:"-50%",left:"-50%",width:"200%",height:"200%"}}),p.jsx("div",{className:"absolute top-0 left-0 w-full h-full -z-10 animate-[spin_4s_linear_infinite]",style:{background:`conic-gradient(from 180deg, transparent 0 340deg, ${o.secondColor} 360deg)`,top:"-50%",left:"-50%",width:"200%",height:"200%",animationDelay:"-2s"}}),p.jsx("div",{className:"relative bg-background z-10 w-[calc(100%-4px)] h-[calc(100%-4px)] m-[2px]",style:{borderRadius:r-n},children:t})]}),IO=({className:e,particleCount:t=50,particleColor:n})=>{const r=P.useRef(null),o=P.useRef(null),{theme:s}=ys();return P.useEffect(()=>{const i=r.current;if(!i)return;const a=i.getContext("2d");if(!a)return;let l=[],c;const d=()=>{var m,y;i.width=((m=o.current)==null?void 0:m.offsetWidth)||window.innerWidth,i.height=((y=o.current)==null?void 0:y.offsetHeight)||window.innerHeight,f()},f=()=>{l=[];for(let m=0;m<t;m++)l.push({x:Math.random()*i.width,y:Math.random()*i.height,vx:(Math.random()-.5)*.5,vy:(Math.random()-.5)*.5,size:Math.random()*2+.5})},h=()=>{a.clearRect(0,0,i.width,i.height);const m=n||(s==="dark"?"rgba(255, 255, 255, 0.5)":"rgba(0, 0, 0, 0.7)"),y=n||(s==="dark"?"rgba(255, 255, 255, 0.15)":"rgba(0, 0, 0, 0.3)");l.forEach((g,v)=>{g.x+=g.vx,g.y+=g.vy,(g.x<0||g.x>i.width)&&(g.vx*=-1),(g.y<0||g.y>i.height)&&(g.vy*=-1),a.beginPath(),a.arc(g.x,g.y,g.size,0,Math.PI*2),a.fillStyle=m,a.fill();for(let b=v+1;b<l.length;b++){const w=l[b],x=g.x-w.x,S=g.y-w.y;Math.sqrt(x*x+S*S)<100&&(a.beginPath(),a.strokeStyle=y,a.lineWidth=.5,a.moveTo(g.x,g.y),a.lineTo(w.x,w.y),a.stroke())}}),c=requestAnimationFrame(h)};return d(),h(),window.addEventListener("resize",d),()=>{window.removeEventListener("resize",d),cancelAnimationFrame(c)}},[t,n,s]),p.jsx("div",{ref:o,className:e,style:{position:"relative",overflow:"hidden"},children:p.jsx("canvas",{ref:r,style:{display:"block",width:"100%",height:"100%"}})})},DO=({children:e,className:t,variant:n="blue",...r})=>{const[o,s]=P.useState([]),i=P.useRef(null),a=5;P.useEffect(()=>{if(!i.current)return;const d=()=>{if(!i.current)return;const f=i.current.getBoundingClientRect(),h=f.width,m=f.height,y=[];for(let g=0;g<h;g+=a)for(let v=0;v<m;v+=a)Math.random()>.9&&y.push({x:g,y:v});s(y)};return d(),window.addEventListener("resize",d),()=>window.removeEventListener("resize",d)},[]);const l={default:"bg-neutral-900 border-neutral-800",blue:"bg-slate-900 border-slate-800",pink:"bg-pink-900/20 border-pink-800/50"},c={default:"bg-neutral-500",blue:"bg-blue-500",pink:"bg-pink-500"};return p.jsxs("div",{ref:i,className:M("relative overflow-hidden rounded-xl border p-6 group",l[n],t),...r,children:[p.jsx("div",{className:"absolute inset-0 z-0 opacity-10 pointer-events-none",style:{backgroundImage:`radial-gradient(${n==="pink"?"#ec4899":"#3b82f6"} 1px, transparent 1px)`,backgroundSize:`${a*2}px ${a*2}px`}}),p.jsx("div",{className:"absolute inset-0 z-0 opacity-0 group-hover:opacity-100 transition-opacity duration-500",children:o.map((d,f)=>p.jsx("span",{className:M("absolute w-1 h-1 rounded-full animate-pulse",c[n]),style:{left:d.x,top:d.y,animationDelay:`${Math.random()*2}s`}},f))}),p.jsx("div",{className:"relative z-10",children:e})]})},_O=e=>{const{className:t,minSize:n=1,maxSize:r=3,particleDensity:o=100,particleColor:s="#FFFFFF",speed:i=4}=e,a=P.useRef(null),[l,c]=P.useState(null),[d,f]=P.useState([]),h=P.useRef(),m=(v,b)=>{const w=o,x=[];for(let S=0;S<w;S++)x.push({x:Math.random()*v,y:Math.random()*b,size:Math.random()*(r-n)+n,speedX:(Math.random()-.5)*i,speedY:(Math.random()-.5)*i});f(x)},y=()=>{if(a.current){const v=a.current,{width:b,height:w}=v.getBoundingClientRect();v.width=b,v.height=w,m(b,w)}};P.useEffect(()=>(a.current&&(c(a.current.getContext("2d")),y(),window.addEventListener("resize",y)),()=>{window.removeEventListener("resize",y)}),[l]),P.useEffect(()=>{if(l&&a.current){const{width:v,height:b}=a.current;m(v,b)}},[l,n,r,o,i]);const g=()=>{if(l&&a.current){const v=a.current;l.clearRect(0,0,v.width,v.height),d.forEach(b=>{b.x+=b.speedX,b.y+=b.speedY,b.x>v.width&&(b.x=0),b.x<0&&(b.x=v.width),b.y>v.height&&(b.y=0),b.y<0&&(b.y=v.height),l.fillStyle=s,l.beginPath(),l.arc(b.x,b.y,b.size,0,Math.PI*2),l.fill()}),h.current=requestAnimationFrame(g)}};return P.useEffect(()=>{if(l)return g(),()=>{h.current&&cancelAnimationFrame(h.current)}},[l,d,s]),p.jsx("div",{className:M("relative h-full w-full overflow-hidden",t),children:p.jsx("canvas",{ref:a,className:"absolute inset-0 h-full w-full"})})},kO=({children:e,className:t,spotlightColor:n})=>{const r=P.useRef(null),[o,s]=P.useState({x:0,y:0}),[i,a]=P.useState(0),{theme:l}=ys(),c=n||(l==="dark"?"rgba(255, 255, 255, 0.25)":"rgba(37, 99, 235, 0.3)"),d=g=>{if(!r.current)return;const b=r.current.getBoundingClientRect();s({x:g.clientX-b.left,y:g.clientY-b.top})},f=()=>{a(1)},h=()=>{a(0)},m=()=>{a(1)},y=()=>{a(0)};return p.jsxs("div",{ref:r,onMouseMove:d,onMouseEnter:m,onMouseLeave:y,onFocus:f,onBlur:h,className:M("relative overflow-hidden rounded-xl border border-border bg-card text-card-foreground shadow",t),children:[p.jsx("div",{className:"pointer-events-none absolute -inset-px transition duration-300",style:{opacity:i,background:`radial-gradient(600px circle at ${o.x}px ${o.y}px, ${c}, transparent 40%)`}}),p.jsx("div",{className:"relative h-full",children:e})]})},OO=({content:e,contentClassName:t})=>{const[n,r]=P.useState(0),o=P.useRef(null),{scrollYProgress:s}=Qb({container:o,offset:["start start","end start"],layoutEffect:!1}),i=e.length;U_(s,"change",f=>{const h=e.map((y,g)=>g/i),m=h.reduce((y,g,v)=>Math.abs(f-g)<Math.abs(f-h[y])?v:y,0);r(m)});const a=["#0f172a","#000000","#171717"],l=["linear-gradient(to bottom right, #06b6d4, #10b981)","linear-gradient(to bottom right, #ec4899, #6366f1)","linear-gradient(to bottom right, #f97316, #eab308)"],[c,d]=P.useState(l[0]);return P.useEffect(()=>{d(l[n%l.length])},[n]),p.jsxs(se.div,{animate:{backgroundColor:a[n%a.length]},className:"h-[30rem] overflow-y-auto flex justify-center relative space-x-10 rounded-md p-10",ref:o,children:[p.jsx("div",{className:"div relative flex items-start px-4",children:p.jsxs("div",{className:"max-w-2xl",children:[e.map((f,h)=>p.jsxs("div",{className:"my-20",children:[p.jsx(se.h2,{initial:{opacity:0},animate:{opacity:n===h?1:.3},className:"text-2xl font-bold text-slate-100",children:f.title}),p.jsx(se.p,{initial:{opacity:0},animate:{opacity:n===h?1:.3},className:"text-kg text-slate-300 max-w-sm mt-10",children:f.description})]},f.title+h)),p.jsx("div",{className:"h-40"})]})}),p.jsx("div",{style:{background:c},className:M("hidden lg:block h-60 w-80 rounded-md bg-white sticky top-10 overflow-hidden",t),children:e[n].content??null})]})},LO=({words:e,className:t})=>{const[n,r]=Gk();let o=e.split(" ");P.useEffect(()=>{r("span",{opacity:1},{duration:2,delay:Zk(.2)})},[n.current]);const s=()=>p.jsx(se.div,{ref:n,children:o.map((i,a)=>p.jsxs(se.span,{className:"dark:text-white text-black opacity-0",children:[i," "]},i+a))});return p.jsx("div",{className:M("font-bold",t),children:p.jsx("div",{className:"mt-4",children:p.jsx("div",{className:" dark:text-white text-black text-2xl leading-snug tracking-wide",children:s()})})})},VO=({text:e,className:t,delay:n=0,duration:r=.5})=>{const o=P.useRef(null),s=Xk(o,{once:!0,margin:"-10%"}),i=e.split(" "),a={hidden:{opacity:0},visible:(c=1)=>({opacity:1,transition:{staggerChildren:.12,delayChildren:.04*c+n}})},l={visible:{opacity:1,y:0,transition:{type:"spring",damping:12,stiffness:100,duration:r,filter:{type:"tween",duration:r}},filter:"blur(0px)"},hidden:{opacity:0,y:20,filter:"blur(2px)"}};return p.jsx(se.div,{ref:o,style:{overflow:"hidden",display:"flex",flexWrap:"wrap"},variants:a,initial:"hidden",animate:s?"visible":"hidden",className:M("text-4xl font-bold text-black dark:text-white",t),children:i.map((c,d)=>p.jsx(se.span,{variants:l,style:{marginRight:"0.25em"},className:"inline-block",children:c},d))})},$O=({children:e,className:t,container:n})=>{const r=P.useRef(null),{scrollYProgress:o}=Qb({target:r,container:n,offset:["start start","end start"],layoutEffect:!1}),s=P.useRef(null),[i,a]=P.useState(0);P.useEffect(()=>{if(!s.current)return;const d=()=>{s.current&&a(s.current.offsetHeight)};d();const f=new ResizeObserver(d);return f.observe(s.current),()=>f.disconnect()},[]);const l=Cr(jt(o,[0,.8],[50,i]),{stiffness:500,damping:90}),c=Cr(jt(o,[0,1],[50,i-200]),{stiffness:500,damping:90});return p.jsxs(se.div,{ref:r,className:M("relative w-full max-w-4xl mx-auto h-full",t),children:[p.jsxs("div",{className:"absolute left-0 top-3",children:[p.jsx(se.div,{transition:{duration:.2,delay:.5},animate:{boxShadow:o.get()>0?"none":"rgba(0, 0, 0, 0.24) 0px 3px 8px"},className:"ml-[27px] h-4 w-4 rounded-full border border-netural-200 shadow-sm flex items-center justify-center",children:p.jsx(se.div,{transition:{duration:.2,delay:.5},animate:{backgroundColor:o.get()>0?"#ffffff":"#10b981",borderColor:o.get()>0?"#ffffff":"#059669"},className:"h-2 w-2 rounded-full border border-neutral-300 bg-white"})}),p.jsxs("svg",{viewBox:`0 0 20 ${i}`,width:"20",height:i,className:" ml-4 block","aria-hidden":"true",children:[p.jsx(se.path,{d:`M 1 0V -36 l 18 24 V ${i*.8} l -18 24V ${i}`,fill:"none",stroke:"#9091A0",strokeOpacity:"0.16",transition:{duration:10}}),p.jsx(se.path,{d:`M 1 0V -36 l 18 24 V ${i*.8} l -18 24V ${i}`,fill:"none",stroke:"url(#gradient)",strokeWidth:"1.25",className:"motion-reduce:hidden",transition:{duration:10}}),p.jsx("defs",{children:p.jsxs(se.linearGradient,{id:"gradient",gradientUnits:"userSpaceOnUse",x1:"0",x2:"0",y1:l,y2:c,children:[p.jsx("stop",{stopColor:"#18CCFC",stopOpacity:"0"}),p.jsx("stop",{stopColor:"#18CCFC"}),p.jsx("stop",{offset:"0.325",stopColor:"#6344F5"}),p.jsx("stop",{offset:"1",stopColor:"#AE48FF",stopOpacity:"0"})]})})]})]}),p.jsx("div",{ref:s,className:"ml-10",children:e})]})},FO=1/3,st=1/6,_l=e=>Math.floor(e)|0,kl=new Float64Array([1,1,0,-1,1,0,1,-1,0,-1,-1,0,1,0,1,-1,0,1,1,0,-1,-1,0,-1,0,1,1,0,-1,1,0,1,-1,0,-1,-1]);function x0(e=Math.random){const t=RO(e),n=new Float64Array(t).map(s=>kl[s%12*3]),r=new Float64Array(t).map(s=>kl[s%12*3+1]),o=new Float64Array(t).map(s=>kl[s%12*3+2]);return function(i,a,l){let c,d,f,h;const m=(i+a+l)*FO,y=_l(i+m),g=_l(a+m),v=_l(l+m),b=(y+g+v)*st,w=y-b,x=g-b,S=v-b,C=i-w,T=a-x,A=l-S;let N,I,O,L,V,U;C>=T?T>=A?(N=1,I=0,O=0,L=1,V=1,U=0):C>=A?(N=1,I=0,O=0,L=1,V=0,U=1):(N=0,I=0,O=1,L=1,V=0,U=1):T<A?(N=0,I=0,O=1,L=0,V=1,U=1):C<A?(N=0,I=1,O=0,L=0,V=1,U=1):(N=0,I=1,O=0,L=1,V=1,U=0);const _=C-N+st,K=T-I+st,H=A-O+st,B=C-L+2*st,$=T-V+2*st,F=A-U+2*st,ne=C-1+3*st,re=T-1+3*st,D=A-1+3*st,G=y&255,X=g&255,j=v&255;let Q=.6-C*C-T*T-A*A;if(Q<0)c=0;else{const ee=G+t[X+t[j]];Q*=Q,c=Q*Q*(n[ee]*C+r[ee]*T+o[ee]*A)}let z=.6-_*_-K*K-H*H;if(z<0)d=0;else{const ee=G+N+t[X+I+t[j+O]];z*=z,d=z*z*(n[ee]*_+r[ee]*K+o[ee]*H)}let Z=.6-B*B-$*$-F*F;if(Z<0)f=0;else{const ee=G+L+t[X+V+t[j+U]];Z*=Z,f=Z*Z*(n[ee]*B+r[ee]*$+o[ee]*F)}let q=.6-ne*ne-re*re-D*D;if(q<0)h=0;else{const ee=G+1+t[X+1+t[j+1]];q*=q,h=q*q*(n[ee]*ne+r[ee]*re+o[ee]*D)}return 32*(c+d+f+h)}}function RO(e){const n=new Uint8Array(512);for(let r=0;r<512/2;r++)n[r]=r;for(let r=0;r<512/2-1;r++){const o=r+~~(e()*(256-r)),s=n[r];n[r]=n[o],n[o]=s}for(let r=256;r<512;r++)n[r]=n[r-256];return n}const BO=({children:e,className:t,containerClassName:n,particleCount:r=700,baseHue:o=220,baseSpeed:s=0,rangeSpeed:i=1.5,baseRadius:a=1,rangeRadius:l=2,backgroundColor:c="#000000"})=>{const d=P.useRef(null),f=P.useRef(null),h=9,m=r*h,y=100,g=50,v=150,b=s,w=i,x=a,S=l,C=o,T=20,A=3,N=.00125,I=.00125,O=5e-4,L=P.useRef(c);let V=0;const U=x0();let _=new Float32Array(m),K=[0,0];const H=Math.PI*2,B=R=>R*Math.random(),$=R=>R-B(2*R),F=(R,Y)=>{let ae=.5*Y;return Math.abs((R+ae)%Y-ae)/ae},ne=(R,Y,ae)=>(1-ae)*R+ae*Y,re=()=>{const R=d.current,Y=f.current;if(R&&Y){const ae=R.getContext("2d");ae&&(q(R),D(),X(R,ae))}},D=()=>{V=0,_=new Float32Array(m);for(let R=0;R<m;R+=h)G(R)},G=R=>{const Y=d.current;if(!Y)return;let ae,Ie,De,_e,ct,Ue,Pe,fs,ps;ae=B(Y.width),Ie=K[1]+$(y),De=0,_e=0,ct=0,Ue=g+B(v),Pe=b+B(w),fs=x+B(S),ps=C+B(T),_.set([ae,Ie,De,_e,ct,Ue,Pe,fs,ps],R)},X=(R,Y)=>{V++,Y.clearRect(0,0,R.width,R.height),Y.fillStyle=L.current,Y.fillRect(0,0,R.width,R.height),j(Y),ee(R,Y),le(R,Y),window.requestAnimationFrame(()=>X(R,Y))},j=R=>{for(let Y=0;Y<m;Y+=h)Q(Y,R)},Q=(R,Y)=>{const ae=d.current;if(!ae)return;let Ie=1+R,De=2+R,_e=3+R,ct=4+R,Ue=5+R,Pe=6+R,fs=7+R,ps=8+R,Ol,Pr,Tr,Ll,Vl,Ar,$l,Fl,Rl,Bl,E0,P0;Pr=_[R],Tr=_[Ie],Ol=U(Pr*N,Tr*I,V*O)*A*H,Ll=ne(_[De],Math.cos(Ol),.5),Vl=ne(_[_e],Math.sin(Ol),.5),Ar=_[ct],$l=_[Ue],Fl=_[Pe],Rl=Pr+Ll*Fl,Bl=Tr+Vl*Fl,E0=_[fs],P0=_[ps],z(Pr,Tr,Rl,Bl,Ar,$l,E0,P0,Y),Ar++,_[R]=Rl,_[Ie]=Bl,_[De]=Ll,_[_e]=Vl,_[ct]=Ar,(Z(Pr,Tr,ae)||Ar>$l)&&G(R)},z=(R,Y,ae,Ie,De,_e,ct,Ue,Pe)=>{Pe.save(),Pe.lineCap="round",Pe.lineWidth=ct,Pe.strokeStyle=`hsla(${Ue},100%,60%,${F(De,_e)})`,Pe.beginPath(),Pe.moveTo(R,Y),Pe.lineTo(ae,Ie),Pe.stroke(),Pe.closePath(),Pe.restore()},Z=(R,Y,ae)=>R>ae.width||R<0||Y>ae.height||Y<0,q=R=>{const{innerWidth:Y,innerHeight:ae}=window;R.width=Y,R.height=ae,K[0]=.5*R.width,K[1]=.5*R.height},ee=(R,Y)=>{Y.save(),Y.filter="blur(8px) brightness(200%)",Y.globalCompositeOperation="lighter",Y.drawImage(R,0,0),Y.restore(),Y.save(),Y.filter="blur(4px) brightness(200%)",Y.globalCompositeOperation="lighter",Y.drawImage(R,0,0),Y.restore()},le=(R,Y)=>{Y.save(),Y.globalCompositeOperation="lighter",Y.drawImage(R,0,0),Y.restore()};return P.useEffect(()=>{re(),window.addEventListener("resize",()=>{const R=d.current,Y=R==null?void 0:R.getContext("2d");R&&Y&&q(R)})},[]),p.jsxs("div",{className:M("relative h-full w-full",n),children:[p.jsx(se.div,{initial:{opacity:0},animate:{opacity:1},ref:f,className:"absolute h-full w-full inset-0 z-0 bg-transparent flex items-center justify-center",children:p.jsx("canvas",{ref:d})}),p.jsx("div",{className:M("relative z-10",t),children:e})]})},zO=({children:e,className:t,containerClassName:n,colors:r,waveWidth:o,backgroundFill:s,blur:i=10,speed:a="fast",waveOpacity:l=.5,...c})=>{const d=x0();let f,h,m,y,g,v,b;const w=P.useRef(null),x=()=>{switch(a){case"slow":return .001;case"fast":return .002;default:return .001}},S=()=>{b=w.current,v=b.getContext("2d"),f=v.canvas.width=window.innerWidth,h=v.canvas.height=window.innerHeight,v.filter=`blur(${i}px)`,m=0,window.onresize=function(){f=v.canvas.width=window.innerWidth,h=v.canvas.height=window.innerHeight,v.filter=`blur(${i}px)`},N()},C=r??["#38bdf8","#818cf8","#c084fc","#e879f9","#22d3ee"],T=L=>{for(m+=x(),y=0;y<L;y++){for(v.beginPath(),v.lineWidth=o||50,v.strokeStyle=C[y%C.length],g=0;g<f;g+=5){var V=d(g/800,.3*y,m)*100;v.lineTo(g,V+h*.5)}v.stroke(),v.closePath()}};let A;const N=()=>{v.fillStyle=s||"black",v.globalAlpha=l||.5,v.fillRect(0,0,f,h),T(5),A=requestAnimationFrame(N)};P.useEffect(()=>(S(),()=>{cancelAnimationFrame(A)}),[]);const[I,O]=P.useState(!1);return P.useEffect(()=>{O(typeof window<"u"&&navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome"))},[]),p.jsxs("div",{className:M("h-screen flex flex-col items-center justify-center",n),children:[p.jsx("canvas",{className:"absolute inset-0 z-0",ref:w,id:"canvas",style:{...I?{filter:`blur(${i}px)`}:{}}}),p.jsx("div",{className:M("relative z-10",t),...c,children:e})]})},S0=P.createContext(void 0),WO=({children:e,className:t,containerClassName:n})=>{const r=P.useRef(null),[o,s]=P.useState(!1),i=c=>{if(!r.current)return;const{left:d,top:f,width:h,height:m}=r.current.getBoundingClientRect(),y=(c.clientX-d-h/2)/25,g=(c.clientY-f-m/2)/25;r.current.style.transform=`rotateY(${y}deg) rotateX(${g*-1}deg)`},a=()=>{s(!0),r.current},l=()=>{r.current&&(s(!1),r.current.style.transform="rotateY(0deg) rotateX(0deg)")};return p.jsx(S0.Provider,{value:[o,s],children:p.jsx("div",{className:M("py-20 flex items-center justify-center",n),style:{perspective:"1000px"},children:p.jsx("div",{ref:r,onMouseEnter:a,onMouseMove:i,onMouseLeave:l,className:M("flex items-center justify-center relative transition-all duration-200 ease-linear",t),style:{transformStyle:"preserve-3d"},children:e})})})},HO=({children:e,className:t})=>p.jsx("div",{className:M("h-96 w-96 [transform-style:preserve-3d] [&>*]:[transform-style:preserve-3d]",t),children:e}),jO=({as:e="div",children:t,className:n,translateX:r=0,translateY:o=0,translateZ:s=0,rotateX:i=0,rotateY:a=0,rotateZ:l=0,...c})=>{const d=P.useRef(null),[f]=C0();P.useEffect(()=>{h()},[f]);const h=()=>{d.current&&(f?d.current.style.transform=`translateX(${r}px) translateY(${o}px) translateZ(${s}px) rotateX(${i}deg) rotateY(${a}deg) rotateZ(${l}deg)`:d.current.style.transform="translateX(0px) translateY(0px) translateZ(0px) rotateX(0deg) rotateY(0deg) rotateZ(0deg)")};return p.jsx(e,{ref:d,className:M("w-fit transition-all duration-200 ease-linear",n),...c,children:t})},C0=()=>{const e=P.useContext(S0);if(e===void 0)throw new Error("useMouseEnter must be used within a MouseEnterProvider");return e},UO=({className:e,children:t,showRadialGradient:n=!0,...r})=>p.jsxs("div",{className:M("relative flex flex-col h-[100vh] items-center justify-center bg-zinc-50 dark:bg-zinc-900 text-slate-950 transition-bg",e),...r,children:[p.jsx("div",{className:"absolute inset-0 overflow-hidden",children:p.jsx("div",{className:M(`
|
|
140
|
+
`,opacity:o}})]})}const xO=({children:e,className:t,...n})=>{const r=E.useRef(null),[o,s]=E.useState({x:0,y:0}),i=l=>{const{clientX:c,clientY:u}=l,{left:f,top:h,width:m,height:y}=l.currentTarget.getBoundingClientRect(),g=(c-(f+m/2))*.35,v=(u-(h+y/2))*.35;s({x:g,y:v})},a=()=>{s({x:0,y:0})};return p.jsxs(oe.button,{ref:r,onMouseMove:i,onMouseLeave:a,animate:{x:o.x,y:o.y},transition:{type:"spring",stiffness:150,damping:15,mass:.1},className:M("relative inline-flex h-12 overflow-hidden rounded-full p-[1px] focus:outline-none focus:ring-2 focus:ring-slate-400 focus:ring-offset-2 focus:ring-offset-slate-50",t),...n,children:[p.jsx("span",{className:"absolute inset-[-1000%] animate-[spin_2s_linear_infinite] bg-[conic-gradient(from_90deg_at_50%_50%,#E2CBFF_0%,#393BB2_50%,#E2CBFF_100%)]"}),p.jsx("span",{className:"inline-flex h-full w-full cursor-pointer items-center justify-center rounded-full bg-slate-950 px-6 py-1 text-sm font-medium text-white backdrop-blur-3xl",children:e})]})};function SO({borderRadius:e="1.75rem",children:t,as:n="button",containerClassName:r,borderClassName:o,duration:s,className:i,...a}){return p.jsxs(n,{className:M("bg-transparent relative text-xl h-16 w-40 p-[1px] overflow-hidden ",r),style:{borderRadius:e},...a,children:[p.jsx("div",{className:"absolute inset-0",style:{borderRadius:`calc(${e} * 0.96)`},children:p.jsx(u0,{duration:s,rx:"30%",ry:"30%",children:p.jsx("div",{className:M("h-20 w-20 opacity-[0.8] bg-[radial-gradient(#0ea5e9_40%,transparent_60%)]",o)})})}),p.jsx("div",{className:M("relative bg-slate-900/[0.8] border border-slate-800 backdrop-blur-xl text-white flex items-center justify-center w-full h-full text-sm antialiased",i),style:{borderRadius:`calc(${e} * 0.96)`},children:t})]})}const u0=({children:e,duration:t=2e3,rx:n,ry:r,...o})=>{const s=E.useRef(null),i=Tt(0);pk(u=>{var h;const f=(h=s.current)==null?void 0:h.getTotalLength();if(f){const m=f/t;i.set(u*m%f)}});const a=zt(i,u=>{var f;return(f=s.current)==null?void 0:f.getPointAtLength(u).x}),l=zt(i,u=>{var f;return(f=s.current)==null?void 0:f.getPointAtLength(u).y}),c=Cl`translateX(${a}px) translateY(${l}px) translateX(-50%) translateY(-50%)`;return p.jsxs(p.Fragment,{children:[p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"none",className:"absolute h-full w-full",width:"100%",height:"100%",...o,children:p.jsx("rect",{fill:"none",width:"100%",height:"100%",rx:n,ry:r,ref:s})}),p.jsx(oe.div,{style:{position:"absolute",top:0,left:0,display:"inline-block",transform:c},children:e})]})},CO=({className:e,children:t,borderSize:n=2,borderRadius:r=20,neonColors:o={firstColor:"#ff00aa",secondColor:"#00FFF1"},...s})=>p.jsxs("div",{className:M("relative overflow-hidden z-0",e),style:{borderRadius:r,...s.style},...s,children:[p.jsx("div",{className:"absolute top-0 left-0 w-full h-full -z-10 animate-[spin_4s_linear_infinite]",style:{background:`conic-gradient(from 0deg, transparent 0 340deg, ${o.firstColor} 360deg)`,top:"-50%",left:"-50%",width:"200%",height:"200%"}}),p.jsx("div",{className:"absolute top-0 left-0 w-full h-full -z-10 animate-[spin_4s_linear_infinite]",style:{background:`conic-gradient(from 180deg, transparent 0 340deg, ${o.secondColor} 360deg)`,top:"-50%",left:"-50%",width:"200%",height:"200%",animationDelay:"-2s"}}),p.jsx("div",{className:"relative bg-background z-10 w-[calc(100%-4px)] h-[calc(100%-4px)] m-[2px]",style:{borderRadius:r-n},children:t})]}),EO=({className:e,particleCount:t=50,particleColor:n})=>{const r=E.useRef(null),o=E.useRef(null),{theme:s}=hs();return E.useEffect(()=>{const i=r.current;if(!i)return;const a=i.getContext("2d");if(!a)return;let l=[],c;const u=()=>{var m,y;i.width=((m=o.current)==null?void 0:m.offsetWidth)||window.innerWidth,i.height=((y=o.current)==null?void 0:y.offsetHeight)||window.innerHeight,f()},f=()=>{l=[];for(let m=0;m<t;m++)l.push({x:Math.random()*i.width,y:Math.random()*i.height,vx:(Math.random()-.5)*.5,vy:(Math.random()-.5)*.5,size:Math.random()*2+.5})},h=()=>{a.clearRect(0,0,i.width,i.height);const m=n||(s==="dark"?"rgba(255, 255, 255, 0.5)":"rgba(0, 0, 0, 0.7)"),y=n||(s==="dark"?"rgba(255, 255, 255, 0.15)":"rgba(0, 0, 0, 0.3)");l.forEach((g,v)=>{g.x+=g.vx,g.y+=g.vy,(g.x<0||g.x>i.width)&&(g.vx*=-1),(g.y<0||g.y>i.height)&&(g.vy*=-1),a.beginPath(),a.arc(g.x,g.y,g.size,0,Math.PI*2),a.fillStyle=m,a.fill();for(let b=v+1;b<l.length;b++){const w=l[b],x=g.x-w.x,S=g.y-w.y;Math.sqrt(x*x+S*S)<100&&(a.beginPath(),a.strokeStyle=y,a.lineWidth=.5,a.moveTo(g.x,g.y),a.lineTo(w.x,w.y),a.stroke())}}),c=requestAnimationFrame(h)};return u(),h(),window.addEventListener("resize",u),()=>{window.removeEventListener("resize",u),cancelAnimationFrame(c)}},[t,n,s]),p.jsx("div",{ref:o,className:e,style:{position:"relative",overflow:"hidden"},children:p.jsx("canvas",{ref:r,style:{display:"block",width:"100%",height:"100%"}})})},PO=({children:e,className:t,variant:n="blue",...r})=>{const[o,s]=E.useState([]),i=E.useRef(null),a=5;E.useEffect(()=>{if(!i.current)return;const u=()=>{if(!i.current)return;const f=i.current.getBoundingClientRect(),h=f.width,m=f.height,y=[];for(let g=0;g<h;g+=a)for(let v=0;v<m;v+=a)Math.random()>.9&&y.push({x:g,y:v});s(y)};return u(),window.addEventListener("resize",u),()=>window.removeEventListener("resize",u)},[]);const l={default:"bg-neutral-900 border-neutral-800",blue:"bg-slate-900 border-slate-800",pink:"bg-pink-900/20 border-pink-800/50"},c={default:"bg-neutral-500",blue:"bg-blue-500",pink:"bg-pink-500"};return p.jsxs("div",{ref:i,className:M("relative overflow-hidden rounded-xl border p-6 group",l[n],t),...r,children:[p.jsx("div",{className:"absolute inset-0 z-0 opacity-10 pointer-events-none",style:{backgroundImage:`radial-gradient(${n==="pink"?"#ec4899":"#3b82f6"} 1px, transparent 1px)`,backgroundSize:`${a*2}px ${a*2}px`}}),p.jsx("div",{className:"absolute inset-0 z-0 opacity-0 group-hover:opacity-100 transition-opacity duration-500",children:o.map((u,f)=>p.jsx("span",{className:M("absolute w-1 h-1 rounded-full animate-pulse",c[n]),style:{left:u.x,top:u.y,animationDelay:`${Math.random()*2}s`}},f))}),p.jsx("div",{className:"relative z-10",children:e})]})},TO=e=>{const{className:t,minSize:n=1,maxSize:r=3,particleDensity:o=100,particleColor:s="#FFFFFF",speed:i=4}=e,a=E.useRef(null),[l,c]=E.useState(null),[u,f]=E.useState([]),h=E.useRef(),m=E.useCallback((v,b)=>{const w=o,x=[];for(let S=0;S<w;S++)x.push({x:Math.random()*v,y:Math.random()*b,size:Math.random()*(r-n)+n,speedX:(Math.random()-.5)*i,speedY:(Math.random()-.5)*i});f(x)},[r,n,o,i]),y=E.useCallback(()=>{if(a.current){const v=a.current,{width:b,height:w}=v.getBoundingClientRect();v.width=b,v.height=w,m(b,w)}},[m]);E.useEffect(()=>(a.current&&(c(a.current.getContext("2d")),y(),window.addEventListener("resize",y)),()=>{window.removeEventListener("resize",y)}),[y]),E.useEffect(()=>{if(l&&a.current){const{width:v,height:b}=a.current;m(v,b)}},[l,m]);const g=E.useCallback(()=>{if(l&&a.current){const v=a.current;l.clearRect(0,0,v.width,v.height),u.forEach(b=>{b.x+=b.speedX,b.y+=b.speedY,b.x>v.width&&(b.x=0),b.x<0&&(b.x=v.width),b.y>v.height&&(b.y=0),b.y<0&&(b.y=v.height),l.fillStyle=s,l.beginPath(),l.arc(b.x,b.y,b.size,0,Math.PI*2),l.fill()}),h.current=requestAnimationFrame(g)}},[l,u,s]);return E.useEffect(()=>{if(l)return g(),()=>{h.current&&cancelAnimationFrame(h.current)}},[l,g]),p.jsx("div",{className:M("relative h-full w-full overflow-hidden",t),children:p.jsx("canvas",{ref:a,className:"absolute inset-0 h-full w-full"})})},AO=({children:e,className:t,spotlightColor:n})=>{const r=E.useRef(null),[o,s]=E.useState({x:0,y:0}),[i,a]=E.useState(0),{theme:l}=hs(),c=n||(l==="dark"?"rgba(255, 255, 255, 0.25)":"rgba(37, 99, 235, 0.3)"),u=g=>{if(!r.current)return;const b=r.current.getBoundingClientRect();s({x:g.clientX-b.left,y:g.clientY-b.top})},f=()=>{a(1)},h=()=>{a(0)},m=()=>{a(1)},y=()=>{a(0)};return p.jsxs("div",{ref:r,onMouseMove:u,onMouseEnter:m,onMouseLeave:y,onFocus:f,onBlur:h,className:M("relative overflow-hidden rounded-xl border border-border bg-card text-card-foreground shadow",t),children:[p.jsx("div",{className:"pointer-events-none absolute -inset-px transition duration-300",style:{opacity:i,background:`radial-gradient(600px circle at ${o.x}px ${o.y}px, ${c}, transparent 40%)`}}),p.jsx("div",{className:"relative h-full",children:e})]})},d0=["#0f172a","#000000","#171717"],Nl=["linear-gradient(to bottom right, #06b6d4, #10b981)","linear-gradient(to bottom right, #ec4899, #6366f1)","linear-gradient(to bottom right, #f97316, #eab308)"],NO=({content:e,contentClassName:t})=>{const[n,r]=E.useState(0),o=E.useRef(null),{scrollYProgress:s}=Hb({container:o,offset:["start start","end start"],layoutEffect:!1}),i=e.length;R_(s,"change",c=>{const u=e.map((h,m)=>m/i),f=u.reduce((h,m,y)=>Math.abs(c-m)<Math.abs(c-u[h])?y:h,0);r(f)});const[a,l]=E.useState(Nl[0]);return E.useEffect(()=>{l(Nl[n%Nl.length])},[n]),p.jsxs(oe.div,{animate:{backgroundColor:d0[n%d0.length]},className:"h-[30rem] overflow-y-auto flex justify-center relative space-x-10 rounded-md p-10",ref:o,children:[p.jsx("div",{className:"div relative flex items-start px-4",children:p.jsxs("div",{className:"max-w-2xl",children:[e.map((c,u)=>p.jsxs("div",{className:"my-20",children:[p.jsx(oe.h2,{initial:{opacity:0},animate:{opacity:n===u?1:.3},className:"text-2xl font-bold text-slate-100",children:c.title}),p.jsx(oe.p,{initial:{opacity:0},animate:{opacity:n===u?1:.3},className:"text-kg text-slate-300 max-w-sm mt-10",children:c.description})]},c.title+u)),p.jsx("div",{className:"h-40"})]})}),p.jsx("div",{style:{background:a},className:M("hidden lg:block h-60 w-80 rounded-md bg-white sticky top-10 overflow-hidden",t),children:e[n].content??null})]})},MO=({words:e,className:t})=>{const[n,r]=Bk(),o=e.split(" ");E.useEffect(()=>{r("span",{opacity:1},{duration:2,delay:Uk(.2)})},[r]);const s=()=>p.jsx(oe.div,{ref:n,children:o.map((i,a)=>p.jsxs(oe.span,{className:"dark:text-white text-black opacity-0",children:[i," "]},i+a))});return p.jsx("div",{className:M("font-bold",t),children:p.jsx("div",{className:"mt-4",children:p.jsx("div",{className:" dark:text-white text-black text-2xl leading-snug tracking-wide",children:s()})})})},IO=({text:e,className:t,delay:n=0,duration:r=.5})=>{const o=E.useRef(null),s=Hk(o,{once:!0,margin:"-10%"}),i=e.split(" "),a={hidden:{opacity:0},visible:(c=1)=>({opacity:1,transition:{staggerChildren:.12,delayChildren:.04*c+n}})},l={visible:{opacity:1,y:0,transition:{type:"spring",damping:12,stiffness:100,duration:r,filter:{type:"tween",duration:r}},filter:"blur(0px)"},hidden:{opacity:0,y:20,filter:"blur(2px)"}};return p.jsx(oe.div,{ref:o,style:{overflow:"hidden",display:"flex",flexWrap:"wrap"},variants:a,initial:"hidden",animate:s?"visible":"hidden",className:M("text-4xl font-bold text-black dark:text-white",t),children:i.map((c,u)=>p.jsx(oe.span,{variants:l,style:{marginRight:"0.25em"},className:"inline-block",children:c},u))})},DO=({children:e,className:t,container:n})=>{const r=E.useRef(null),{scrollYProgress:o}=Hb({target:r,container:n,offset:["start start","end start"],layoutEffect:!1}),s=E.useRef(null),[i,a]=E.useState(0);E.useEffect(()=>{if(!s.current)return;const u=()=>{s.current&&a(s.current.offsetHeight)};u();const f=new ResizeObserver(u);return f.observe(s.current),()=>f.disconnect()},[]);const l=Sr(zt(o,[0,.8],[50,i]),{stiffness:500,damping:90}),c=Sr(zt(o,[0,1],[50,i-200]),{stiffness:500,damping:90});return p.jsxs(oe.div,{ref:r,className:M("relative w-full max-w-4xl mx-auto h-full",t),children:[p.jsxs("div",{className:"absolute left-0 top-3",children:[p.jsx(oe.div,{transition:{duration:.2,delay:.5},animate:{boxShadow:o.get()>0?"none":"rgba(0, 0, 0, 0.24) 0px 3px 8px"},className:"ml-[27px] h-4 w-4 rounded-full border border-netural-200 shadow-sm flex items-center justify-center",children:p.jsx(oe.div,{transition:{duration:.2,delay:.5},animate:{backgroundColor:o.get()>0?"#ffffff":"#10b981",borderColor:o.get()>0?"#ffffff":"#059669"},className:"h-2 w-2 rounded-full border border-neutral-300 bg-white"})}),p.jsxs("svg",{viewBox:`0 0 20 ${i}`,width:"20",height:i,className:" ml-4 block","aria-hidden":"true",children:[p.jsx(oe.path,{d:`M 1 0V -36 l 18 24 V ${i*.8} l -18 24V ${i}`,fill:"none",stroke:"#9091A0",strokeOpacity:"0.16",transition:{duration:10}}),p.jsx(oe.path,{d:`M 1 0V -36 l 18 24 V ${i*.8} l -18 24V ${i}`,fill:"none",stroke:"url(#gradient)",strokeWidth:"1.25",className:"motion-reduce:hidden",transition:{duration:10}}),p.jsx("defs",{children:p.jsxs(oe.linearGradient,{id:"gradient",gradientUnits:"userSpaceOnUse",x1:"0",x2:"0",y1:l,y2:c,children:[p.jsx("stop",{stopColor:"#18CCFC",stopOpacity:"0"}),p.jsx("stop",{stopColor:"#18CCFC"}),p.jsx("stop",{offset:"0.325",stopColor:"#6344F5"}),p.jsx("stop",{offset:"1",stopColor:"#AE48FF",stopOpacity:"0"})]})})]})]}),p.jsx("div",{ref:s,className:"ml-10",children:e})]})},_O=1/3,et=1/6,Ml=e=>Math.floor(e)|0,Il=new Float64Array([1,1,0,-1,1,0,1,-1,0,-1,-1,0,1,0,1,-1,0,1,1,0,-1,-1,0,-1,0,1,1,0,-1,1,0,1,-1,0,-1,-1]);function f0(e=Math.random){const t=kO(e),n=new Float64Array(t).map(s=>Il[s%12*3]),r=new Float64Array(t).map(s=>Il[s%12*3+1]),o=new Float64Array(t).map(s=>Il[s%12*3+2]);return function(i,a,l){let c,u,f,h;const m=(i+a+l)*_O,y=Ml(i+m),g=Ml(a+m),v=Ml(l+m),b=(y+g+v)*et,w=y-b,x=g-b,S=v-b,C=i-w,T=a-x,A=l-S;let N,I,O,k,L,W;C>=T?T>=A?(N=1,I=0,O=0,k=1,L=1,W=0):C>=A?(N=1,I=0,O=0,k=1,L=0,W=1):(N=0,I=0,O=1,k=1,L=0,W=1):T<A?(N=0,I=0,O=1,k=0,L=1,W=1):C<A?(N=0,I=1,O=0,k=0,L=1,W=1):(N=0,I=1,O=0,k=1,L=1,W=0);const F=C-N+et,Y=T-I+et,U=A-O+et,H=C-k+2*et,V=T-L+2*et,B=A-W+2*et,ee=C-1+3*et,te=T-1+3*et,D=A-1+3*et,G=y&255,R=g&255,$=v&255;let K=.6-C*C-T*T-A*A;if(K<0)c=0;else{const Z=G+t[R+t[$]];K*=K,c=K*K*(n[Z]*C+r[Z]*T+o[Z]*A)}let z=.6-F*F-Y*Y-U*U;if(z<0)u=0;else{const Z=G+N+t[R+I+t[$+O]];z*=z,u=z*z*(n[Z]*F+r[Z]*Y+o[Z]*U)}let X=.6-H*H-V*V-B*B;if(X<0)f=0;else{const Z=G+k+t[R+L+t[$+W]];X*=X,f=X*X*(n[Z]*H+r[Z]*V+o[Z]*B)}let q=.6-ee*ee-te*te-D*D;if(q<0)h=0;else{const Z=G+1+t[R+1+t[$+1]];q*=q,h=q*q*(n[Z]*ee+r[Z]*te+o[Z]*D)}return 32*(c+u+f+h)}}function kO(e){const n=new Uint8Array(512);for(let r=0;r<512/2;r++)n[r]=r;for(let r=0;r<512/2-1;r++){const o=r+~~(e()*(256-r)),s=n[r];n[r]=n[o],n[o]=s}for(let r=256;r<512;r++)n[r]=n[r-256];return n}const OO=f0(),LO=Math.PI*2,En=e=>e*Math.random(),VO=e=>e-En(2*e),$O=(e,t)=>{const n=.5*t;return Math.abs((e+n)%t-n)/n},p0=(e,t,n)=>(1-n)*e+n*t,FO=(e,t,n)=>e>n.width||e<0||t>n.height||t<0,RO=(e,t)=>{t.save(),t.filter="blur(8px) brightness(200%)",t.globalCompositeOperation="lighter",t.drawImage(e,0,0),t.restore(),t.save(),t.filter="blur(4px) brightness(200%)",t.globalCompositeOperation="lighter",t.drawImage(e,0,0),t.restore()},BO=(e,t)=>{t.save(),t.globalCompositeOperation="lighter",t.drawImage(e,0,0),t.restore()},zO=({children:e,className:t,containerClassName:n,particleCount:r=700,baseHue:o=220,baseSpeed:s=0,rangeSpeed:i=1.5,baseRadius:a=1,rangeRadius:l=2,backgroundColor:c="#000000"})=>{const u=E.useRef(null),f=E.useRef(null),h=9,m=r*h,y=100,g=50,v=150,b=s,w=i,x=a,S=l,C=o,T=20,A=3,N=.00125,I=.00125,O=5e-4,k=E.useRef(c),L=E.useRef(0),W=E.useRef(new Float32Array(m)),F=E.useRef([0,0]),Y=E.useRef(),U=E.useCallback(R=>{const $=u.current;if(!$)return;const K=En($.width),z=F.current[1]+VO(y),X=0,q=0,Z=0,se=g+En(v),ne=b+En(w),be=x+En(S),Pe=C+En(T);W.current.set([K,z,X,q,Z,se,ne,be,Pe],R)},[y,g,v,b,w,x,S,C,T]),H=E.useCallback(()=>{L.current=0,W.current=new Float32Array(m);for(let R=0;R<m;R+=h)U(R)},[U,m]),V=E.useCallback((R,$,K,z,X,q,Z,se,ne)=>{ne.save(),ne.lineCap="round",ne.lineWidth=Z,ne.strokeStyle=`hsla(${se},100%,60%,${$O(X,q)})`,ne.beginPath(),ne.moveTo(R,$),ne.lineTo(K,z),ne.stroke(),ne.closePath(),ne.restore()},[]),B=E.useCallback((R,$)=>{const K=u.current;if(!K)return;const z=1+R,X=2+R,q=3+R,Z=4+R,se=5+R,ne=6+R,be=7+R,Pe=8+R,tt=W.current[R],nt=W.current[z],At=OO(tt*N,nt*I,L.current*O)*A*LO,ls=p0(W.current[X],Math.cos(At),.5),Wt=p0(W.current[q],Math.sin(At),.5);let cs=W.current[Z];const g0=W.current[se],v0=W.current[ne],y0=tt+ls*v0,b0=nt+Wt*v0,KO=W.current[be],YO=W.current[Pe];V(tt,nt,y0,b0,cs,g0,KO,YO,$),cs++,W.current[R]=y0,W.current[z]=b0,W.current[X]=ls,W.current[q]=Wt,W.current[Z]=cs,(FO(tt,nt,K)||cs>g0)&&U(R)},[V,U]),ee=E.useCallback(R=>{for(let $=0;$<m;$+=h)B($,R)},[B,m]),te=E.useCallback((R,$)=>{L.current++,$.clearRect(0,0,R.width,R.height),$.fillStyle=k.current,$.fillRect(0,0,R.width,R.height),ee($),RO(R,$),BO(R,$),Y.current=window.requestAnimationFrame(()=>te(R,$))},[ee]),D=E.useCallback(R=>{const{innerWidth:$,innerHeight:K}=window;R.width=$,R.height=K,F.current[0]=.5*R.width,F.current[1]=.5*R.height},[]),G=E.useCallback(()=>{const R=u.current,$=f.current;if(R&&$){const K=R.getContext("2d");K&&(D(R),H(),te(R,K))}},[te,H,D]);return E.useEffect(()=>{k.current=c},[c]),E.useEffect(()=>{G();const R=()=>{const $=u.current,K=$==null?void 0:$.getContext("2d");$&&K&&D($)};return window.addEventListener("resize",R),()=>{window.removeEventListener("resize",R),Y.current&&window.cancelAnimationFrame(Y.current)}},[G,D]),p.jsxs("div",{className:M("relative h-full w-full",n),children:[p.jsx(oe.div,{initial:{opacity:0},animate:{opacity:1},ref:f,className:"absolute h-full w-full inset-0 z-0 bg-transparent flex items-center justify-center",children:p.jsx("canvas",{ref:u})}),p.jsx("div",{className:M("relative z-10",t),children:e})]})},WO=({children:e,className:t,containerClassName:n,colors:r,waveWidth:o,backgroundFill:s,blur:i=10,speed:a="fast",waveOpacity:l=.5,...c})=>{const u=f0(),f=E.useRef(null),h=E.useRef(),m=E.useRef(null),y=E.useRef(0),g=E.useRef(0),v=E.useRef(0),b=E.useCallback(()=>{switch(a){case"slow":return .001;case"fast":return .002;default:return .001}},[a]),w=E.useMemo(()=>r??["#38bdf8","#818cf8","#c084fc","#e879f9","#22d3ee"],[r]),x=E.useCallback(N=>{const I=m.current;if(I){v.current+=b();for(let O=0;O<N;O++){I.beginPath(),I.lineWidth=o||50,I.strokeStyle=w[O%w.length];for(let k=0;k<y.current;k+=5){const L=u(k/800,.3*O,v.current)*100;I.lineTo(k,L+g.current*.5)}I.stroke(),I.closePath()}}},[b,u,w,o]),S=E.useCallback(()=>{const N=m.current;N&&(N.fillStyle=s||"black",N.globalAlpha=l||.5,N.fillRect(0,0,y.current,g.current),x(5),h.current=requestAnimationFrame(S))},[s,x,l]),C=E.useCallback(()=>{const N=f.current;if(!N)return;const I=N.getContext("2d");I&&(m.current=I,y.current=I.canvas.width=window.innerWidth,g.current=I.canvas.height=window.innerHeight,I.filter=`blur(${i}px)`,v.current=0,S())},[i,S]);E.useEffect(()=>{C();const N=()=>{const I=m.current;I&&(y.current=I.canvas.width=window.innerWidth,g.current=I.canvas.height=window.innerHeight,I.filter=`blur(${i}px)`)};return window.addEventListener("resize",N),()=>{window.removeEventListener("resize",N),h.current&&cancelAnimationFrame(h.current)}},[i,C]);const[T,A]=E.useState(!1);return E.useEffect(()=>{A(typeof window<"u"&&navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome"))},[]),p.jsxs("div",{className:M("h-screen flex flex-col items-center justify-center",n),children:[p.jsx("canvas",{className:"absolute inset-0 z-0",ref:f,id:"canvas",style:{...T?{filter:`blur(${i}px)`}:{}}}),p.jsx("div",{className:M("relative z-10",t),...c,children:e})]})},h0=E.createContext(void 0),HO=({children:e,className:t,containerClassName:n})=>{const r=E.useRef(null),[o,s]=E.useState(!1),i=c=>{if(!r.current)return;const{left:u,top:f,width:h,height:m}=r.current.getBoundingClientRect(),y=(c.clientX-u-h/2)/25,g=(c.clientY-f-m/2)/25;r.current.style.transform=`rotateY(${y}deg) rotateX(${g*-1}deg)`},a=()=>{s(!0),r.current},l=()=>{r.current&&(s(!1),r.current.style.transform="rotateY(0deg) rotateX(0deg)")};return p.jsx(h0.Provider,{value:[o,s],children:p.jsx("div",{className:M("py-20 flex items-center justify-center",n),style:{perspective:"1000px"},children:p.jsx("div",{ref:r,onMouseEnter:a,onMouseMove:i,onMouseLeave:l,className:M("flex items-center justify-center relative transition-all duration-200 ease-linear",t),style:{transformStyle:"preserve-3d"},children:e})})})},jO=({children:e,className:t})=>p.jsx("div",{className:M("h-96 w-96 [transform-style:preserve-3d] [&>*]:[transform-style:preserve-3d]",t),children:e}),UO=({as:e="div",children:t,className:n,translateX:r=0,translateY:o=0,translateZ:s=0,rotateX:i=0,rotateY:a=0,rotateZ:l=0,...c})=>{const u=E.useRef(null),[f]=m0();E.useEffect(()=>{h()},[f]);const h=()=>{u.current&&(f?u.current.style.transform=`translateX(${r}px) translateY(${o}px) translateZ(${s}px) rotateX(${i}deg) rotateY(${a}deg) rotateZ(${l}deg)`:u.current.style.transform="translateX(0px) translateY(0px) translateZ(0px) rotateX(0deg) rotateY(0deg) rotateZ(0deg)")};return p.jsx(e,{ref:u,className:M("w-fit transition-all duration-200 ease-linear",n),...c,children:t})},m0=()=>{const e=E.useContext(h0);if(e===void 0)throw new Error("useMouseEnter must be used within a MouseEnterProvider");return e},GO=({className:e,children:t,showRadialGradient:n=!0,...r})=>p.jsxs("div",{className:M("relative flex flex-col h-[100vh] items-center justify-center bg-zinc-50 dark:bg-zinc-900 text-slate-950 transition-bg",e),...r,children:[p.jsx("div",{className:"absolute inset-0 overflow-hidden",children:p.jsx("div",{className:M(`
|
|
141
141
|
[--white-gradient:repeating-linear-gradient(100deg,#ffffff_0%,#ffffff_7%,transparent_10%,transparent_12%,#ffffff_16%)]
|
|
142
142
|
[--dark-gradient:repeating-linear-gradient(100deg,#000000_0%,#000000_7%,transparent_10%,transparent_12%,#000000_16%)]
|
|
143
143
|
[--aurora:repeating-linear-gradient(100deg,#3b82f6_10%,#6366f1_15%,#93c5fd_20%,#ddd6fe_25%,#60a5fa_30%)]
|
|
@@ -151,4 +151,4 @@ Defaulting to \`null\`.`}var Lh=Mh,nN=Dh;const Vh=u.forwardRef(({className:e,val
|
|
|
151
151
|
after:[background-size:200%,_100%]
|
|
152
152
|
after:animate-aurora after:[background-attachment:fixed] after:mix-blend-difference
|
|
153
153
|
pointer-events-none
|
|
154
|
-
absolute -inset-[10px] opacity-50 will-change-transform`,n&&"[mask-image:radial-gradient(ellipse_at_100%_0%,black_10%,transparent_70%)]")})}),t]});
|
|
154
|
+
absolute -inset-[10px] opacity-50 will-change-transform`,n&&"[mask-image:radial-gradient(ellipse_at_100%_0%,black_10%,transparent_70%)]")})}),t]});P.Accordion=bN,P.AccordionContent=sm,P.AccordionItem=rm,P.AccordionTrigger=om,P.Alert=zd,P.AlertDescription=Hd,P.AlertTitle=Wd,P.AnimatedNumber=Kk,P.AnimatedTabs=Yk,P.AnimatedTabsContent=Jb,P.AnimatedTooltip=Xk,P.AuroraBackground=GO,P.Avatar=$g,P.AvatarFallback=Rg,P.AvatarImage=Fg,P.Badge=EM,P.Boxes=e0,P.BoxesCore=qk,P.Breadcrumb=Pm,P.BreadcrumbEllipsis=Dm,P.BreadcrumbItem=Am,P.BreadcrumbLink=Nm,P.BreadcrumbList=Tm,P.BreadcrumbPage=Mm,P.BreadcrumbSeparator=Im,P.Button=Gl,P.CanvasCard=Qk,P.CanvasRevealEffect=Zk,P.CanvasRevealIcon=Cr,P.Card=kh,P.CardBody=jO,P.CardContainer=HO,P.CardContent=$h,P.CardDescription=Vh,P.CardFooter=Fh,P.CardHeader=Oh,P.CardItem=UO,P.CardPattern=t0,P.CardStack=eO,P.CardTitle=Lh,P.Checkbox=cc,P.Command=na,P.CommandDialog=fM,P.CommandEmpty=pg,P.CommandGroup=hg,P.CommandInput=dg,P.CommandItem=gg,P.CommandList=fg,P.CommandSeparator=mg,P.CommandShortcut=vg,P.Dialog=lf,P.DialogClose=nP,P.DialogContent=di,P.DialogDescription=pf,P.DialogFooter=df,P.DialogHeader=uf,P.DialogOverlay=ui,P.DialogPortal=cf,P.DialogTitle=ff,P.DialogTrigger=tP,P.DropdownMenu=bT,P.DropdownMenuCheckboxItem=vp,P.DropdownMenuContent=mp,P.DropdownMenuGroup=xT,P.DropdownMenuItem=gp,P.DropdownMenuLabel=bp,P.DropdownMenuPortal=ST,P.DropdownMenuRadioGroup=ET,P.DropdownMenuRadioItem=yp,P.DropdownMenuSeparator=wp,P.DropdownMenuShortcut=xp,P.DropdownMenuSub=CT,P.DropdownMenuSubContent=hp,P.DropdownMenuSubTrigger=pp,P.DropdownMenuTrigger=wT,P.EvervaultCard=tO,P.FlipWords=rO,P.GlitchText=oO,P.HoverCard=hO,P.HoverCardContent=c0,P.HoverCardTrigger=mO,P.Icon=nO,P.InfiniteMovingCards=gO,P.Input=Kl,P.InteractiveGrid=vO,P.Label=Zl,P.LampContainer=yO,P.Lens=bO,P.Loader=Gk,P.MagicCard=wO,P.MagnetButton=xO,P.MovingBorder=u0,P.MovingBorderButton=SO,P.NeonGradientCard=CO,P.Pagination=_m,P.PaginationContent=km,P.PaginationEllipsis=$m,P.PaginationItem=Om,P.PaginationLink=Ao,P.PaginationNext=Vm,P.PaginationPrevious=Lm,P.ParticleBackground=EO,P.PixelCard=PO,P.Popover=jT,P.PopoverContent=kp,P.PopoverTrigger=UT,P.Progress=Th,P.RadioGroup=Ic,P.RadioGroupItem=Dc,P.ScrollArea=wm,P.ScrollBar=Yi,P.Select=yE,P.SelectContent=xd,P.SelectGroup=bE,P.SelectItem=Cd,P.SelectLabel=Sd,P.SelectSeparator=Ed,P.SelectTrigger=wd,P.SelectValue=wE,P.Separator=Em,P.Sheet=ZA,P.SheetClose=QA,P.SheetContent=Nh,P.SheetDescription=_h,P.SheetFooter=Ih,P.SheetHeader=Mh,P.SheetOverlay=Vi,P.SheetPortal=Ah,P.SheetTitle=Dh,P.SheetTrigger=JA,P.Skeleton=BA,P.Slider=Bd,P.SparklesCore=TO,P.SpotlightCard=AO,P.StickyScroll=NO,P.Switch=Fc,P.Tabs=zN,P.TabsContent=Qm,P.TabsList=Zm,P.TabsTrigger=Jm,P.TextGenerateEffect=MO,P.TextReveal=IO,P.Textarea=Yl,P.ThemeProvider=J0,P.ThemeProviderContext=ps,P.Timeline=yg,P.TimelineContent=xg,P.TimelineDescription=Eg,P.TimelineItem=bg,P.TimelinePoint=wg,P.TimelineTime=Sg,P.TimelineTitle=Cg,P.Toast=uh,P.ToastAction=dh,P.ToastClose=fh,P.ToastDescription=hh,P.ToastProvider=OA,P.ToastTitle=ph,P.ToastViewport=ch,P.Tooltip=hA,P.TooltipContent=Wp,P.TooltipProvider=pA,P.TooltipTrigger=mA,P.TracingBeam=DO,P.Vortex=zO,P.WavyBackground=WO,P.badgeVariants=Bg,P.buttonVariants=ms,P.cn=M,P.generateRandomString=Pl,P.reducer=gh,P.toast=vh,P.useMouseEnter=m0,P.useTheme=hs,P.useToast=RA,Object.defineProperty(P,Symbol.toStringTag,{value:"Module"})});
|