@spear-ai/spectral 1.3.10 → 1.3.12
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/.js +91 -0
- package/dist/Accordion/AccordionBase.js +233 -0
- package/dist/App.js +8 -0
- package/dist/Badge/BadgeBase.js +35 -0
- package/dist/Badge.js +7 -0
- package/dist/Button.js +99 -0
- package/dist/Card.js +35 -0
- package/dist/Checkbox/CheckboxBase.js +141 -0
- package/dist/Drawer.js +1293 -0
- package/dist/Icons/AnnotationsIcon.js +28 -0
- package/dist/Icons/CalendarIcon.js +60 -0
- package/dist/Icons/ClockIcon.js +40 -0
- package/dist/Icons/DeleteIcon.js +32 -0
- package/dist/Icons/DurationIcon.js +80 -0
- package/dist/Icons/EraserIcon.js +37 -0
- package/dist/Icons/GoToFirstIcon.js +40 -0
- package/dist/Icons/GoToLastIcon.js +40 -0
- package/dist/Icons/IconBase.js +33 -0
- package/dist/Icons/LabelIcon.js +27 -0
- package/dist/Icons/LassoIcon.js +50 -0
- package/dist/Icons/LineToolIcon.js +96 -0
- package/dist/Icons/LiveViewIcon.js +70 -0
- package/dist/Icons/LocationIcon.js +40 -0
- package/dist/Icons/MetadataIcon.js +28 -0
- package/dist/Icons/OntologyIcon.js +31 -0
- package/dist/Icons/PlayIcon.js +28 -0
- package/dist/Icons/PlusIcon.js +27 -0
- package/dist/Icons/ResetIcon.js +25 -0
- package/dist/Icons/ScissorsIcon.js +36 -0
- package/dist/Icons/TrashIcon.js +25 -0
- package/dist/Icons/UndoIcon.js +28 -0
- package/dist/Icons/ZoomAllIcon.js +28 -0
- package/dist/Icons/ZoomXIcon.js +41 -0
- package/dist/Icons/ZoomYIcon.js +41 -0
- package/dist/Icons/iconTypes.js +2 -0
- package/dist/Icons.js +51 -0
- package/dist/Label.js +13 -0
- package/dist/Popover.js +250 -0
- package/dist/RadioGroup/RadioGroupBase.js +254 -0
- package/dist/Skeleton.js +10 -0
- package/dist/Slider/SliderBase.js +315 -0
- package/dist/Slider.js +74 -0
- package/dist/Switch/SwitchBase.js +131 -0
- package/dist/Switch.js +59 -0
- package/dist/Toggle/ToggleBase.js +51 -0
- package/dist/Toggle.js +51 -0
- package/dist/ToggleGroup/ToggleGroupBase.js +125 -0
- package/dist/ToggleGroup.js +53 -0
- package/dist/Toolbar.js +13 -0
- package/dist/Tooltip/TooltipBase.js +225 -0
- package/dist/Tooltip.js +371 -0
- package/dist/features/LabelingTools/LabelingTools.d.ts.map +1 -0
- package/dist/features/LabelingTools.js +107 -0
- package/dist/hooks/useAccordionAutoScroll.js +65 -0
- package/dist/hooks/useOutsideClick.js +16 -0
- package/dist/hooks/useTheme.js +19 -0
- package/dist/index-B7LSgz_k.js +446 -0
- package/dist/index-CRBC94ik.js +34 -0
- package/dist/index-gg2zpNk0.js +672 -0
- package/dist/index-sDEISz8i.js +1558 -0
- package/dist/loader-circle-Btf6jOd5.js +101 -0
- package/dist/main.js +25212 -0
- package/dist/primitives/label.js +27 -0
- package/dist/primitives/slot.js +40 -0
- package/dist/twUtils-CRiPKpXj.js +2743 -0
- package/dist/utils/refs.js +10 -0
- package/dist/utils/shared.js +29 -0
- package/dist/utils/twUtils.js +5 -0
- package/package.json +19 -7
- package/dist/components/LabelingTools/LabelingTools.d.ts.map +0 -1
- package/dist/index.js +0 -9253
- package/dist/spectral.cjs.js +0 -83
- /package/dist/{components → features}/LabelingTools/LabelingTools.d.ts +0 -0
package/dist/spectral.cjs.js
DELETED
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("react/jsx-runtime"),v=require("react"),Kr=require("react-dom");function Qr(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 p=Qr(v),Jr=Qr(Kr);function ka(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){e?.(o),(!n||!o.defaultPrevented)&&t?.(o)}}function Ra(...e){return t=>{for(const n of e)n&&(typeof n=="function"?n(t):typeof n=="object"&&"current"in n&&(n.current=t))}}const Xe=v.forwardRef(function({children:t,...n},r){if(!v.isValidElement(t))return t==null?null:d.jsx("span",{...n,ref:r});const o=t,s=o.props??{},a={...s,...n};for(const[u,f]of Object.entries(n))if(u.startsWith("on")&&typeof f=="function"){const m=s[u];typeof m=="function"?a[u]=ka(m,f):a[u]=f}const i=s.className||"";i&&n.className&&(a.className=`${i} ${n.className}`);const l=s.style;l&&n.style&&(a.style={...l,...n.style});const c=o.ref;return a.ref=Ra(c,r),v.cloneElement(o,a)});function eo(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=eo(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function to(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=eo(e))&&(r&&(r+=" "),r+=t);return r}const $n="-",Ea=e=>{const t=Pa(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:a=>{const i=a.split($n);return i[0]===""&&i.length!==1&&i.shift(),no(i,t)||Sa(a)},getConflictingClassGroupIds:(a,i)=>{const l=n[a]||[];return i&&r[a]?[...l,...r[a]]:l}}},no=(e,t)=>{if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?no(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const s=e.join($n);return t.validators.find(({validator:a})=>a(s))?.classGroupId},mr=/^\[(.+)\]$/,Sa=e=>{if(mr.test(e)){const t=mr.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},Pa=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const o in n)En(n[o],r,o,t);return r},En=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const s=o===""?t:gr(t,o);s.classGroupId=n;return}if(typeof o=="function"){if(Aa(o)){En(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([s,a])=>{En(a,gr(t,s),n,r)})})},gr=(e,t)=>{let n=e;return t.split($n).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},Aa=e=>e.isThemeGetter,La=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(s,a)=>{n.set(s,a),t++,t>e&&(t=0,r=n,n=new Map)};return{get(s){let a=n.get(s);if(a!==void 0)return a;if((a=r.get(s))!==void 0)return o(s,a),a},set(s,a){n.has(s)?n.set(s,a):o(s,a)}}},Sn="!",Pn=":",Ta=Pn.length,ja=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=o=>{const s=[];let a=0,i=0,l=0,c;for(let w=0;w<o.length;w++){let g=o[w];if(a===0&&i===0){if(g===Pn){s.push(o.slice(l,w)),l=w+Ta;continue}if(g==="/"){c=w;continue}}g==="["?a++:g==="]"?a--:g==="("?i++:g===")"&&i--}const u=s.length===0?o:o.substring(l),f=Ma(u),h=f!==u,m=c&&c>l?c-l:void 0;return{modifiers:s,hasImportantModifier:h,baseClassName:f,maybePostfixModifierPosition:m}};if(t){const o=t+Pn,s=r;r=a=>a.startsWith(o)?s(a.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:a,maybePostfixModifierPosition:void 0}}if(n){const o=r;r=s=>n({className:s,parseClassName:o})}return r},Ma=e=>e.endsWith(Sn)?e.substring(0,e.length-1):e.startsWith(Sn)?e.substring(1):e,Oa=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const o=[];let s=[];return r.forEach(a=>{a[0]==="["||t[a]?(o.push(...s.sort(),a),s=[]):s.push(a)}),o.push(...s.sort()),o}},Ia=e=>({cache:La(e.cacheSize),parseClassName:ja(e),sortModifiers:Oa(e),...Ea(e)}),Da=/\s+/,Na=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:s}=t,a=[],i=e.trim().split(Da);let l="";for(let c=i.length-1;c>=0;c-=1){const u=i[c],{isExternal:f,modifiers:h,hasImportantModifier:m,baseClassName:w,maybePostfixModifierPosition:g}=n(u);if(f){l=u+(l.length>0?" "+l:l);continue}let b=!!g,y=r(b?w.substring(0,g):w);if(!y){if(!b){l=u+(l.length>0?" "+l:l);continue}if(y=r(w),!y){l=u+(l.length>0?" "+l:l);continue}b=!1}const x=s(h).join(":"),R=m?x+Sn:x,C=R+y;if(a.includes(C))continue;a.push(C);const S=o(y,b);for(let P=0;P<S.length;++P){const k=S[P];a.push(R+k)}l=u+(l.length>0?" "+l:l)}return l};function _a(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=ro(t))&&(r&&(r+=" "),r+=n);return r}const ro=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=ro(e[r]))&&(n&&(n+=" "),n+=t);return n};function $a(e,...t){let n,r,o,s=a;function a(l){const c=t.reduce((u,f)=>f(u),e());return n=Ia(c),r=n.cache.get,o=n.cache.set,s=i,i(l)}function i(l){const c=r(l);if(c)return c;const u=Na(l,n);return o(l,u),u}return function(){return s(_a.apply(null,arguments))}}const te=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},oo=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,so=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Wa=/^\d+\/\d+$/,Fa=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,za=/\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$/,Va=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Ha=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ba=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ke=e=>Wa.test(e),V=e=>!!e&&!Number.isNaN(Number(e)),Ie=e=>!!e&&Number.isInteger(Number(e)),un=e=>e.endsWith("%")&&V(e.slice(0,-1)),Pe=e=>Fa.test(e),Ua=()=>!0,Ga=e=>za.test(e)&&!Va.test(e),ao=()=>!1,Za=e=>Ha.test(e),Ya=e=>Ba.test(e),Xa=e=>!M(e)&&!O(e),qa=e=>lt(e,co,ao),M=e=>oo.test(e),Ue=e=>lt(e,uo,Ga),dn=e=>lt(e,ti,V),vr=e=>lt(e,io,ao),Ka=e=>lt(e,lo,Ya),Pt=e=>lt(e,fo,Za),O=e=>so.test(e),ht=e=>ct(e,uo),Qa=e=>ct(e,ni),br=e=>ct(e,io),Ja=e=>ct(e,co),ei=e=>ct(e,lo),At=e=>ct(e,fo,!0),lt=(e,t,n)=>{const r=oo.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},ct=(e,t,n=!1)=>{const r=so.exec(e);return r?r[1]?t(r[1]):n:!1},io=e=>e==="position"||e==="percentage",lo=e=>e==="image"||e==="url",co=e=>e==="length"||e==="size"||e==="bg-size",uo=e=>e==="length",ti=e=>e==="number",ni=e=>e==="family-name",fo=e=>e==="shadow",ri=()=>{const e=te("color"),t=te("font"),n=te("text"),r=te("font-weight"),o=te("tracking"),s=te("leading"),a=te("breakpoint"),i=te("container"),l=te("spacing"),c=te("radius"),u=te("shadow"),f=te("inset-shadow"),h=te("text-shadow"),m=te("drop-shadow"),w=te("blur"),g=te("perspective"),b=te("aspect"),y=te("ease"),x=te("animate"),R=()=>["auto","avoid","all","avoid-page","page","left","right","column"],C=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],S=()=>[...C(),O,M],P=()=>["auto","hidden","clip","visible","scroll"],k=()=>["auto","contain","none"],E=()=>[O,M,l],L=()=>[Ke,"full","auto",...E()],I=()=>[Ie,"none","subgrid",O,M],j=()=>["auto",{span:["full",Ie,O,M]},Ie,O,M],W=()=>[Ie,"auto",O,M],T=()=>["auto","min","max","fr",O,M],D=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],F=()=>["start","end","center","stretch","center-safe","end-safe"],N=()=>["auto",...E()],_=()=>[Ke,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...E()],A=()=>[e,O,M],G=()=>[...C(),br,vr,{position:[O,M]}],ee=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Ve=()=>["auto","cover","contain",Ja,qa,{size:[O,M]}],Te=()=>[un,ht,Ue],X=()=>["","none","full",c,O,M],Q=()=>["",V,ht,Ue],ve=()=>["solid","dashed","dotted","double"],je=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],B=()=>[V,un,br,vr],fe=()=>["","none",w,O,M],be=()=>["none",V,O,M],we=()=>["none",V,O,M],de=()=>[V,O,M],Se=()=>[Ke,"full",...E()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Pe],breakpoint:[Pe],color:[Ua],container:[Pe],"drop-shadow":[Pe],ease:["in","out","in-out"],font:[Xa],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Pe],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Pe],shadow:[Pe],spacing:["px",V],text:[Pe],"text-shadow":[Pe],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ke,M,O,b]}],container:["container"],columns:[{columns:[V,M,O,i]}],"break-after":[{"break-after":R()}],"break-before":[{"break-before":R()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:S()}],overflow:[{overflow:P()}],"overflow-x":[{"overflow-x":P()}],"overflow-y":[{"overflow-y":P()}],overscroll:[{overscroll:k()}],"overscroll-x":[{"overscroll-x":k()}],"overscroll-y":[{"overscroll-y":k()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:L()}],"inset-x":[{"inset-x":L()}],"inset-y":[{"inset-y":L()}],start:[{start:L()}],end:[{end:L()}],top:[{top:L()}],right:[{right:L()}],bottom:[{bottom:L()}],left:[{left:L()}],visibility:["visible","invisible","collapse"],z:[{z:[Ie,"auto",O,M]}],basis:[{basis:[Ke,"full","auto",i,...E()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[V,Ke,"auto","initial","none",M]}],grow:[{grow:["",V,O,M]}],shrink:[{shrink:["",V,O,M]}],order:[{order:[Ie,"first","last","none",O,M]}],"grid-cols":[{"grid-cols":I()}],"col-start-end":[{col:j()}],"col-start":[{"col-start":W()}],"col-end":[{"col-end":W()}],"grid-rows":[{"grid-rows":I()}],"row-start-end":[{row:j()}],"row-start":[{"row-start":W()}],"row-end":[{"row-end":W()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":T()}],"auto-rows":[{"auto-rows":T()}],gap:[{gap:E()}],"gap-x":[{"gap-x":E()}],"gap-y":[{"gap-y":E()}],"justify-content":[{justify:[...D(),"normal"]}],"justify-items":[{"justify-items":[...F(),"normal"]}],"justify-self":[{"justify-self":["auto",...F()]}],"align-content":[{content:["normal",...D()]}],"align-items":[{items:[...F(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...F(),{baseline:["","last"]}]}],"place-content":[{"place-content":D()}],"place-items":[{"place-items":[...F(),"baseline"]}],"place-self":[{"place-self":["auto",...F()]}],p:[{p:E()}],px:[{px:E()}],py:[{py:E()}],ps:[{ps:E()}],pe:[{pe:E()}],pt:[{pt:E()}],pr:[{pr:E()}],pb:[{pb:E()}],pl:[{pl:E()}],m:[{m:N()}],mx:[{mx:N()}],my:[{my:N()}],ms:[{ms:N()}],me:[{me:N()}],mt:[{mt:N()}],mr:[{mr:N()}],mb:[{mb:N()}],ml:[{ml:N()}],"space-x":[{"space-x":E()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":E()}],"space-y-reverse":["space-y-reverse"],size:[{size:_()}],w:[{w:[i,"screen",..._()]}],"min-w":[{"min-w":[i,"screen","none",..._()]}],"max-w":[{"max-w":[i,"screen","none","prose",{screen:[a]},..._()]}],h:[{h:["screen","lh",..._()]}],"min-h":[{"min-h":["screen","lh","none",..._()]}],"max-h":[{"max-h":["screen","lh",..._()]}],"font-size":[{text:["base",n,ht,Ue]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,O,dn]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",un,M]}],"font-family":[{font:[Qa,M,t]}],"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:[o,O,M]}],"line-clamp":[{"line-clamp":[V,"none",O,dn]}],leading:[{leading:[s,...E()]}],"list-image":[{"list-image":["none",O,M]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",O,M]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:A()}],"text-color":[{text:A()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ve(),"wavy"]}],"text-decoration-thickness":[{decoration:[V,"from-font","auto",O,Ue]}],"text-decoration-color":[{decoration:A()}],"underline-offset":[{"underline-offset":[V,"auto",O,M]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:E()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",O,M]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",O,M]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:G()}],"bg-repeat":[{bg:ee()}],"bg-size":[{bg:Ve()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ie,O,M],radial:["",O,M],conic:[Ie,O,M]},ei,Ka]}],"bg-color":[{bg:A()}],"gradient-from-pos":[{from:Te()}],"gradient-via-pos":[{via:Te()}],"gradient-to-pos":[{to:Te()}],"gradient-from":[{from:A()}],"gradient-via":[{via:A()}],"gradient-to":[{to:A()}],rounded:[{rounded:X()}],"rounded-s":[{"rounded-s":X()}],"rounded-e":[{"rounded-e":X()}],"rounded-t":[{"rounded-t":X()}],"rounded-r":[{"rounded-r":X()}],"rounded-b":[{"rounded-b":X()}],"rounded-l":[{"rounded-l":X()}],"rounded-ss":[{"rounded-ss":X()}],"rounded-se":[{"rounded-se":X()}],"rounded-ee":[{"rounded-ee":X()}],"rounded-es":[{"rounded-es":X()}],"rounded-tl":[{"rounded-tl":X()}],"rounded-tr":[{"rounded-tr":X()}],"rounded-br":[{"rounded-br":X()}],"rounded-bl":[{"rounded-bl":X()}],"border-w":[{border:Q()}],"border-w-x":[{"border-x":Q()}],"border-w-y":[{"border-y":Q()}],"border-w-s":[{"border-s":Q()}],"border-w-e":[{"border-e":Q()}],"border-w-t":[{"border-t":Q()}],"border-w-r":[{"border-r":Q()}],"border-w-b":[{"border-b":Q()}],"border-w-l":[{"border-l":Q()}],"divide-x":[{"divide-x":Q()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Q()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ve(),"hidden","none"]}],"divide-style":[{divide:[...ve(),"hidden","none"]}],"border-color":[{border:A()}],"border-color-x":[{"border-x":A()}],"border-color-y":[{"border-y":A()}],"border-color-s":[{"border-s":A()}],"border-color-e":[{"border-e":A()}],"border-color-t":[{"border-t":A()}],"border-color-r":[{"border-r":A()}],"border-color-b":[{"border-b":A()}],"border-color-l":[{"border-l":A()}],"divide-color":[{divide:A()}],"outline-style":[{outline:[...ve(),"none","hidden"]}],"outline-offset":[{"outline-offset":[V,O,M]}],"outline-w":[{outline:["",V,ht,Ue]}],"outline-color":[{outline:A()}],shadow:[{shadow:["","none",u,At,Pt]}],"shadow-color":[{shadow:A()}],"inset-shadow":[{"inset-shadow":["none",f,At,Pt]}],"inset-shadow-color":[{"inset-shadow":A()}],"ring-w":[{ring:Q()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:A()}],"ring-offset-w":[{"ring-offset":[V,Ue]}],"ring-offset-color":[{"ring-offset":A()}],"inset-ring-w":[{"inset-ring":Q()}],"inset-ring-color":[{"inset-ring":A()}],"text-shadow":[{"text-shadow":["none",h,At,Pt]}],"text-shadow-color":[{"text-shadow":A()}],opacity:[{opacity:[V,O,M]}],"mix-blend":[{"mix-blend":[...je(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":je()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[V]}],"mask-image-linear-from-pos":[{"mask-linear-from":B()}],"mask-image-linear-to-pos":[{"mask-linear-to":B()}],"mask-image-linear-from-color":[{"mask-linear-from":A()}],"mask-image-linear-to-color":[{"mask-linear-to":A()}],"mask-image-t-from-pos":[{"mask-t-from":B()}],"mask-image-t-to-pos":[{"mask-t-to":B()}],"mask-image-t-from-color":[{"mask-t-from":A()}],"mask-image-t-to-color":[{"mask-t-to":A()}],"mask-image-r-from-pos":[{"mask-r-from":B()}],"mask-image-r-to-pos":[{"mask-r-to":B()}],"mask-image-r-from-color":[{"mask-r-from":A()}],"mask-image-r-to-color":[{"mask-r-to":A()}],"mask-image-b-from-pos":[{"mask-b-from":B()}],"mask-image-b-to-pos":[{"mask-b-to":B()}],"mask-image-b-from-color":[{"mask-b-from":A()}],"mask-image-b-to-color":[{"mask-b-to":A()}],"mask-image-l-from-pos":[{"mask-l-from":B()}],"mask-image-l-to-pos":[{"mask-l-to":B()}],"mask-image-l-from-color":[{"mask-l-from":A()}],"mask-image-l-to-color":[{"mask-l-to":A()}],"mask-image-x-from-pos":[{"mask-x-from":B()}],"mask-image-x-to-pos":[{"mask-x-to":B()}],"mask-image-x-from-color":[{"mask-x-from":A()}],"mask-image-x-to-color":[{"mask-x-to":A()}],"mask-image-y-from-pos":[{"mask-y-from":B()}],"mask-image-y-to-pos":[{"mask-y-to":B()}],"mask-image-y-from-color":[{"mask-y-from":A()}],"mask-image-y-to-color":[{"mask-y-to":A()}],"mask-image-radial":[{"mask-radial":[O,M]}],"mask-image-radial-from-pos":[{"mask-radial-from":B()}],"mask-image-radial-to-pos":[{"mask-radial-to":B()}],"mask-image-radial-from-color":[{"mask-radial-from":A()}],"mask-image-radial-to-color":[{"mask-radial-to":A()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":C()}],"mask-image-conic-pos":[{"mask-conic":[V]}],"mask-image-conic-from-pos":[{"mask-conic-from":B()}],"mask-image-conic-to-pos":[{"mask-conic-to":B()}],"mask-image-conic-from-color":[{"mask-conic-from":A()}],"mask-image-conic-to-color":[{"mask-conic-to":A()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:G()}],"mask-repeat":[{mask:ee()}],"mask-size":[{mask:Ve()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",O,M]}],filter:[{filter:["","none",O,M]}],blur:[{blur:fe()}],brightness:[{brightness:[V,O,M]}],contrast:[{contrast:[V,O,M]}],"drop-shadow":[{"drop-shadow":["","none",m,At,Pt]}],"drop-shadow-color":[{"drop-shadow":A()}],grayscale:[{grayscale:["",V,O,M]}],"hue-rotate":[{"hue-rotate":[V,O,M]}],invert:[{invert:["",V,O,M]}],saturate:[{saturate:[V,O,M]}],sepia:[{sepia:["",V,O,M]}],"backdrop-filter":[{"backdrop-filter":["","none",O,M]}],"backdrop-blur":[{"backdrop-blur":fe()}],"backdrop-brightness":[{"backdrop-brightness":[V,O,M]}],"backdrop-contrast":[{"backdrop-contrast":[V,O,M]}],"backdrop-grayscale":[{"backdrop-grayscale":["",V,O,M]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[V,O,M]}],"backdrop-invert":[{"backdrop-invert":["",V,O,M]}],"backdrop-opacity":[{"backdrop-opacity":[V,O,M]}],"backdrop-saturate":[{"backdrop-saturate":[V,O,M]}],"backdrop-sepia":[{"backdrop-sepia":["",V,O,M]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":E()}],"border-spacing-x":[{"border-spacing-x":E()}],"border-spacing-y":[{"border-spacing-y":E()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",O,M]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[V,"initial",O,M]}],ease:[{ease:["linear","initial",y,O,M]}],delay:[{delay:[V,O,M]}],animate:[{animate:["none",x,O,M]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[g,O,M]}],"perspective-origin":[{"perspective-origin":S()}],rotate:[{rotate:be()}],"rotate-x":[{"rotate-x":be()}],"rotate-y":[{"rotate-y":be()}],"rotate-z":[{"rotate-z":be()}],scale:[{scale:we()}],"scale-x":[{"scale-x":we()}],"scale-y":[{"scale-y":we()}],"scale-z":[{"scale-z":we()}],"scale-3d":["scale-3d"],skew:[{skew:de()}],"skew-x":[{"skew-x":de()}],"skew-y":[{"skew-y":de()}],transform:[{transform:[O,M,"","none","gpu","cpu"]}],"transform-origin":[{origin:S()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Se()}],"translate-x":[{"translate-x":Se()}],"translate-y":[{"translate-y":Se()}],"translate-z":[{"translate-z":Se()}],"translate-none":["translate-none"],accent:[{accent:A()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:A()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",O,M]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":E()}],"scroll-mx":[{"scroll-mx":E()}],"scroll-my":[{"scroll-my":E()}],"scroll-ms":[{"scroll-ms":E()}],"scroll-me":[{"scroll-me":E()}],"scroll-mt":[{"scroll-mt":E()}],"scroll-mr":[{"scroll-mr":E()}],"scroll-mb":[{"scroll-mb":E()}],"scroll-ml":[{"scroll-ml":E()}],"scroll-p":[{"scroll-p":E()}],"scroll-px":[{"scroll-px":E()}],"scroll-py":[{"scroll-py":E()}],"scroll-ps":[{"scroll-ps":E()}],"scroll-pe":[{"scroll-pe":E()}],"scroll-pt":[{"scroll-pt":E()}],"scroll-pr":[{"scroll-pr":E()}],"scroll-pb":[{"scroll-pb":E()}],"scroll-pl":[{"scroll-pl":E()}],"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",O,M]}],fill:[{fill:["none",...A()]}],"stroke-w":[{stroke:[V,ht,Ue,dn]}],stroke:[{stroke:["none",...A()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},oi=$a(ri);function oe(...e){return oi(to(e))}const wr=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,yr=to,Gt=(e,t)=>n=>{var r;if(t?.variants==null)return yr(e,n?.class,n?.className);const{variants:o,defaultVariants:s}=t,a=Object.keys(o).map(c=>{const u=n?.[c],f=s?.[c];if(u===null)return null;const h=wr(u)||wr(f);return o[c][h]}),i=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(w=>{let[g,b]=w;return Array.isArray(b)?b.includes({...s,...i}[g]):{...s,...i}[g]===b})?[...c,f,h]:c},[]);return yr(e,a,l,n?.class,n?.className)},si=Gt(`inline-flex items-center justify-center rounded-sm border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none
|
|
2
|
-
focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive
|
|
3
|
-
transition-[color,box-shadow] overflow-hidden`,{variants:{variant:{default:"border border-badge-primary-border bg-badge-primary-bg text-text-primary [a&]:hover:bg-badge-primary-bg--hover group-data-[state=on]:bg-badge-primary-bg--active",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function ai({className:e,variant:t,asChild:n=!1,...r}){const o=n?Xe:"span";return d.jsx(o,{"data-slot":"badge",className:oe(si({variant:t}),e),...r})}const ii=({children:e,...t})=>d.jsx(ai,{...t,children:e});/**
|
|
4
|
-
* @license lucide-react v0.542.0 - ISC
|
|
5
|
-
*
|
|
6
|
-
* This source code is licensed under the ISC license.
|
|
7
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
8
|
-
*/const li=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),ci=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),xr=e=>{const t=ci(e);return t.charAt(0).toUpperCase()+t.slice(1)},po=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim(),ui=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
|
|
9
|
-
* @license lucide-react v0.542.0 - ISC
|
|
10
|
-
*
|
|
11
|
-
* This source code is licensed under the ISC license.
|
|
12
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
13
|
-
*/var di={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"};/**
|
|
14
|
-
* @license lucide-react v0.542.0 - ISC
|
|
15
|
-
*
|
|
16
|
-
* This source code is licensed under the ISC license.
|
|
17
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
18
|
-
*/const fi=v.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:s,iconNode:a,...i},l)=>v.createElement("svg",{ref:l,...di,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:po("lucide",o),...!s&&!ui(i)&&{"aria-hidden":"true"},...i},[...a.map(([c,u])=>v.createElement(c,u)),...Array.isArray(s)?s:[s]]));/**
|
|
19
|
-
* @license lucide-react v0.542.0 - ISC
|
|
20
|
-
*
|
|
21
|
-
* This source code is licensed under the ISC license.
|
|
22
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
23
|
-
*/const pi=(e,t)=>{const n=v.forwardRef(({className:r,...o},s)=>v.createElement(fi,{ref:s,iconNode:t,className:po(`lucide-${li(xr(e))}`,`lucide-${e}`,r),...o}));return n.displayName=xr(e),n};/**
|
|
24
|
-
* @license lucide-react v0.542.0 - ISC
|
|
25
|
-
*
|
|
26
|
-
* This source code is licensed under the ISC license.
|
|
27
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
28
|
-
*/const hi=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],ho=pi("loader-circle",hi),mi=Gt(`
|
|
29
|
-
!font-sans flex relative items-center justify-center gap-2 whitespace-nowrap transition-colors cursor-pointer rounded-lg border font-semibold disabled:pointer-events-none
|
|
30
|
-
focus:outline-none focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-2 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0
|
|
31
|
-
`,{variants:{variant:{primary:"bg-button-primary-bg text-button-primary-text border-button-primary-border disabled:bg-button-primary-bg--disabled disabled:text-button-primary-text--disabled disabled:border-button-primary-border--disabled",secondary:"bg-button-secondary-bg border-button-secondary-border text-button-secondary-text disabled:bg-button-secondary-bg--disabled disabled:text-button-secondary-text--disabled disabled:border-button-secondary-border--disabled",outline:"bg-button-outline-bg border-button-outline-border text-button-outline-text disabled:text-button-outline-text--disabled disabled:border-button-outline-border--disabled",ghost:"bg-button-ghost-bg border-none text-button-ghost-text hover:bg-button-ghost-bg--hover hover:text-button-ghost-text--hover disabled:text-button-ghost-text--disabled"},size:{default:"py-2 px-6 w-fit",icon:"size-9",fullWidth:"py-2 px-6 w-full"},state:{default:"",error:"bg-button-danger text-button-primary-text transition pointer-events-none",loading:"cursor-wait pointer-events-none"}},defaultVariants:{variant:"primary",state:"default",size:"default"}}),mo=v.forwardRef(({className:e,variant:t,label:n,endIcon:r,state:o,errorMessage:s,startIcon:a,disabled:i,type:l="button",dataTestId:c=`button-${t}`,size:u,...f},h)=>{const m={error:{primary:"bg-button-danger border-button-danger text-button-primary-text pointer-events-none",secondary:"bg-button-danger border-button-danger text-button-secondary-text pointer-events-none",outline:"bg-transparent border-button-danger text-button-danger pointer-events-none",ghost:"bg-transparent text-button-danger pointer-events-none"},loading:{primary:"bg-button-primary-bg--disabled border-button-primary-border--disabled text-button-primary-text--disabled pointer-events-none",secondary:"bg-button-secondary-bg--disabled border-button-secondary-border--disabled text-button-secondary-text--disabled pointer-events-none",outline:"bg-button-outline-bg--disabled border-button-outline-border--disabled text-button-outline-text--disabled pointer-events-none",ghost:"bg-transparent text-button-ghost-text--disabled pointer-events-none"}},w=oe(mi({variant:t,state:o,size:u}),o==="error"&&m.error[t||"primary"],o==="loading"&&m.loading[t||"primary"],u,e);return d.jsxs("div",{className:oe("flex flex-col justify-items-center",u),children:[d.jsxs("button",{className:w,ref:h,type:l,"aria-disabled":i,disabled:i,"data-testid":c,...f,"data-state":o,children:[a&&d.jsx("span",{className:"flex pr-2","aria-hidden":!0,children:a}),u==="icon"?d.jsx("span",{className:"sr-only",children:n}):n,o==="loading"&&d.jsx(ho,{className:"ml-2 animate-spin",size:16}),r&&o!=="loading"&&d.jsx("span",{className:"flex pl-2","aria-hidden":!0,children:r})]}),o==="error"&&s&&d.jsx("p",{className:"text-danger-100 mt-2 text-xs",role:"alert","aria-live":"assertive",children:s})]})});mo.displayName="Button";const go=v.forwardRef(({className:e,title:t,icon:n,width:r="full",isLoading:o=!1,children:s,...a},i)=>{const l=t||n,c=oe("!font-sans shadow-neumorphic-large relative bg-card-bg rounded-2xl p-4.5 focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",r==="full"?"w-full":"w-fit",e);return d.jsxs("div",{ref:i,className:c,"aria-busy":o,...a,children:[o&&d.jsx("div",{className:"bg-card-bg/50 absolute inset-0 z-10 flex items-center justify-center",role:"status","aria-live":"polite","aria-label":"Loading content",children:d.jsx(ho,{className:"text-muted-foreground animate-spin",size:24})}),l&&d.jsxs("div",{className:oe("mb-6 flex items-center",t?"justify-between":"justify-end"),children:[t&&d.jsx("h3",{className:"text-card-text m-0 min-w-0 flex-1 truncate font-semibold",children:t}),n&&d.jsx("div",{className:"size-5 flex-shrink-0 overflow-hidden [&>svg]:size-5","aria-hidden":"true",children:n})]}),d.jsx("div",{className:oe("min-h-40 p-4",l&&"pt-0"),children:s})]})});go.displayName="Card";function re(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e?.(o),n===!1||!o.defaultPrevented)return t?.(o)}}function Cr(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function vo(...e){return t=>{let n=!1;const r=e.map(o=>{const s=Cr(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():Cr(e[o],null)}}}}function ue(...e){return p.useCallback(vo(...e),e)}function gi(e,t){const n=p.createContext(t),r=s=>{const{children:a,...i}=s,l=p.useMemo(()=>i,Object.values(i));return d.jsx(n.Provider,{value:l,children:a})};r.displayName=e+"Provider";function o(s){const a=p.useContext(n);if(a)return a;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[r,o]}function Zt(e,t=[]){let n=[];function r(s,a){const i=p.createContext(a),l=n.length;n=[...n,a];const c=f=>{const{scope:h,children:m,...w}=f,g=h?.[e]?.[l]||i,b=p.useMemo(()=>w,Object.values(w));return d.jsx(g.Provider,{value:b,children:m})};c.displayName=s+"Provider";function u(f,h){const m=h?.[e]?.[l]||i,w=p.useContext(m);if(w)return w;if(a!==void 0)return a;throw new Error(`\`${f}\` must be used within \`${s}\``)}return[c,u]}const o=()=>{const s=n.map(a=>p.createContext(a));return function(i){const l=i?.[e]||s;return p.useMemo(()=>({[`__scope${e}`]:{...i,[e]:l}}),[i,l])}};return o.scopeName=e,[r,vi(o,...t)]}function vi(...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 a=r.reduce((i,{useScope:l,scopeName:c})=>{const f=l(s)[`__scope${c}`];return{...i,...f}},{});return p.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}var _e=globalThis?.document?p.useLayoutEffect:()=>{},bi=p[" useId ".trim().toString()]||(()=>{}),wi=0;function vt(e){const[t,n]=p.useState(bi());return _e(()=>{n(r=>r??String(wi++))},[e]),e||(t?`radix-${t}`:"")}var yi=p[" useInsertionEffect ".trim().toString()]||_e;function Wn({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,s,a]=xi({defaultProp:t,onChange:n}),i=e!==void 0,l=i?e:o;{const u=p.useRef(e!==void 0);p.useEffect(()=>{const f=u.current;f!==i&&console.warn(`${r} is changing from ${f?"controlled":"uncontrolled"} to ${i?"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=i},[i,r])}const c=p.useCallback(u=>{if(i){const f=Ci(u)?u(e):u;f!==e&&a.current?.(f)}else s(u)},[i,e,s,a]);return[l,c]}function xi({defaultProp:e,onChange:t}){const[n,r]=p.useState(e),o=p.useRef(n),s=p.useRef(t);return yi(()=>{s.current=t},[t]),p.useEffect(()=>{o.current!==n&&(s.current?.(n),o.current=n)},[n,o]),[n,r,s]}function Ci(e){return typeof e=="function"}function Fn(e){const t=ki(e),n=p.forwardRef((r,o)=>{const{children:s,...a}=r,i=p.Children.toArray(s),l=i.find(Ei);if(l){const c=l.props.children,u=i.map(f=>f===l?p.Children.count(c)>1?p.Children.only(null):p.isValidElement(c)?c.props.children:null:f);return d.jsx(t,{...a,ref:o,children:p.isValidElement(c)?p.cloneElement(c,void 0,u):null})}return d.jsx(t,{...a,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function ki(e){const t=p.forwardRef((n,r)=>{const{children:o,...s}=n;if(p.isValidElement(o)){const a=Pi(o),i=Si(s,o.props);return o.type!==p.Fragment&&(i.ref=r?vo(r,a):a),p.cloneElement(o,i)}return p.Children.count(o)>1?p.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var bo=Symbol("radix.slottable");function Ri(e){const t=({children:n})=>d.jsx(d.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=bo,t}function Ei(e){return p.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===bo}function Si(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]=(...i)=>{const l=s(...i);return o(...i),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function Pi(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Ai=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],se=Ai.reduce((e,t)=>{const n=Fn(`Primitive.${t}`),r=p.forwardRef((o,s)=>{const{asChild:a,...i}=o,l=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),d.jsx(l,{...i,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Li(e,t){e&&Jr.flushSync(()=>e.dispatchEvent(t))}function ot(e){const t=p.useRef(e);return p.useEffect(()=>{t.current=e}),p.useMemo(()=>(...n)=>t.current?.(...n),[])}function Ti(e,t=globalThis?.document){const n=ot(e);p.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 ji="DismissableLayer",An="dismissableLayer.update",Mi="dismissableLayer.pointerDownOutside",Oi="dismissableLayer.focusOutside",kr,wo=p.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Yt=p.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:a,onDismiss:i,...l}=e,c=p.useContext(wo),[u,f]=p.useState(null),h=u?.ownerDocument??globalThis?.document,[,m]=p.useState({}),w=ue(t,k=>f(k)),g=Array.from(c.layers),[b]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),y=g.indexOf(b),x=u?g.indexOf(u):-1,R=c.layersWithOutsidePointerEventsDisabled.size>0,C=x>=y,S=Ni(k=>{const E=k.target,L=[...c.branches].some(I=>I.contains(E));!C||L||(o?.(k),a?.(k),k.defaultPrevented||i?.())},h),P=_i(k=>{const E=k.target;[...c.branches].some(I=>I.contains(E))||(s?.(k),a?.(k),k.defaultPrevented||i?.())},h);return Ti(k=>{x===c.layers.size-1&&(r?.(k),!k.defaultPrevented&&i&&(k.preventDefault(),i()))},h),p.useEffect(()=>{if(u)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(kr=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(u)),c.layers.add(u),Rr(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=kr)}},[u,h,n,c]),p.useEffect(()=>()=>{u&&(c.layers.delete(u),c.layersWithOutsidePointerEventsDisabled.delete(u),Rr())},[u,c]),p.useEffect(()=>{const k=()=>m({});return document.addEventListener(An,k),()=>document.removeEventListener(An,k)},[]),d.jsx(se.div,{...l,ref:w,style:{pointerEvents:R?C?"auto":"none":void 0,...e.style},onFocusCapture:re(e.onFocusCapture,P.onFocusCapture),onBlurCapture:re(e.onBlurCapture,P.onBlurCapture),onPointerDownCapture:re(e.onPointerDownCapture,S.onPointerDownCapture)})});Yt.displayName=ji;var Ii="DismissableLayerBranch",Di=p.forwardRef((e,t)=>{const n=p.useContext(wo),r=p.useRef(null),o=ue(t,r);return p.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),d.jsx(se.div,{...e,ref:o})});Di.displayName=Ii;function Ni(e,t=globalThis?.document){const n=ot(e),r=p.useRef(!1),o=p.useRef(()=>{});return p.useEffect(()=>{const s=i=>{if(i.target&&!r.current){let l=function(){yo(Mi,n,c,{discrete:!0})};const c={originalEvent:i};i.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},a=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function _i(e,t=globalThis?.document){const n=ot(e),r=p.useRef(!1);return p.useEffect(()=>{const o=s=>{s.target&&!r.current&&yo(Oi,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 Rr(){const e=new CustomEvent(An);document.dispatchEvent(e)}function yo(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?Li(o,s):o.dispatchEvent(s)}var fn="focusScope.autoFocusOnMount",pn="focusScope.autoFocusOnUnmount",Er={bubbles:!1,cancelable:!0},$i="FocusScope",zn=p.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...a}=e,[i,l]=p.useState(null),c=ot(o),u=ot(s),f=p.useRef(null),h=ue(t,g=>l(g)),m=p.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;p.useEffect(()=>{if(r){let g=function(R){if(m.paused||!i)return;const C=R.target;i.contains(C)?f.current=C:Ne(f.current,{select:!0})},b=function(R){if(m.paused||!i)return;const C=R.relatedTarget;C!==null&&(i.contains(C)||Ne(f.current,{select:!0}))},y=function(R){if(document.activeElement===document.body)for(const S of R)S.removedNodes.length>0&&Ne(i)};document.addEventListener("focusin",g),document.addEventListener("focusout",b);const x=new MutationObserver(y);return i&&x.observe(i,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",g),document.removeEventListener("focusout",b),x.disconnect()}}},[r,i,m.paused]),p.useEffect(()=>{if(i){Pr.add(m);const g=document.activeElement;if(!i.contains(g)){const y=new CustomEvent(fn,Er);i.addEventListener(fn,c),i.dispatchEvent(y),y.defaultPrevented||(Wi(Bi(xo(i)),{select:!0}),document.activeElement===g&&Ne(i))}return()=>{i.removeEventListener(fn,c),setTimeout(()=>{const y=new CustomEvent(pn,Er);i.addEventListener(pn,u),i.dispatchEvent(y),y.defaultPrevented||Ne(g??document.body,{select:!0}),i.removeEventListener(pn,u),Pr.remove(m)},0)}}},[i,c,u,m]);const w=p.useCallback(g=>{if(!n&&!r||m.paused)return;const b=g.key==="Tab"&&!g.altKey&&!g.ctrlKey&&!g.metaKey,y=document.activeElement;if(b&&y){const x=g.currentTarget,[R,C]=Fi(x);R&&C?!g.shiftKey&&y===C?(g.preventDefault(),n&&Ne(R,{select:!0})):g.shiftKey&&y===R&&(g.preventDefault(),n&&Ne(C,{select:!0})):y===x&&g.preventDefault()}},[n,r,m.paused]);return d.jsx(se.div,{tabIndex:-1,...a,ref:h,onKeyDown:w})});zn.displayName=$i;function Wi(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Ne(r,{select:t}),document.activeElement!==n)return}function Fi(e){const t=xo(e),n=Sr(t,e),r=Sr(t.reverse(),e);return[n,r]}function xo(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 Sr(e,t){for(const n of e)if(!zi(n,{upTo:t}))return n}function zi(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 Vi(e){return e instanceof HTMLInputElement&&"select"in e}function Ne(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Vi(e)&&t&&e.select()}}var Pr=Hi();function Hi(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=Ar(e,t),e.unshift(t)},remove(t){e=Ar(e,t),e[0]?.resume()}}}function Ar(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Bi(e){return e.filter(t=>t.tagName!=="A")}var Ui="Portal",Xt=p.forwardRef((e,t)=>{const{container:n,...r}=e,[o,s]=p.useState(!1);_e(()=>s(!0),[]);const a=n||o&&globalThis?.document?.body;return a?Kr.createPortal(d.jsx(se.div,{...r,ref:t}),a):null});Xt.displayName=Ui;function Gi(e,t){return p.useReducer((n,r)=>t[n][r]??n,e)}var Fe=e=>{const{present:t,children:n}=e,r=Zi(t),o=typeof n=="function"?n({present:r.isPresent}):p.Children.only(n),s=ue(r.ref,Yi(o));return typeof n=="function"||r.isPresent?p.cloneElement(o,{ref:s}):null};Fe.displayName="Presence";function Zi(e){const[t,n]=p.useState(),r=p.useRef(null),o=p.useRef(e),s=p.useRef("none"),a=e?"mounted":"unmounted",[i,l]=Gi(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return p.useEffect(()=>{const c=Lt(r.current);s.current=i==="mounted"?c:"none"},[i]),_e(()=>{const c=r.current,u=o.current;if(u!==e){const h=s.current,m=Lt(c);e?l("MOUNT"):m==="none"||c?.display==="none"?l("UNMOUNT"):l(u&&h!==m?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),_e(()=>{if(t){let c;const u=t.ownerDocument.defaultView??window,f=m=>{const g=Lt(r.current).includes(CSS.escape(m.animationName));if(m.target===t&&g&&(l("ANIMATION_END"),!o.current)){const b=t.style.animationFillMode;t.style.animationFillMode="forwards",c=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=b)})}},h=m=>{m.target===t&&(s.current=Lt(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(i),ref:p.useCallback(c=>{r.current=c?getComputedStyle(c):null,n(c)},[])}}function Lt(e){return e?.animationName||"none"}function Yi(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var hn=0;function Co(){p.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Lr()),document.body.insertAdjacentElement("beforeend",e[1]??Lr()),hn++,()=>{hn===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),hn--}},[])}function Lr(){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 xe=function(){return xe=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},xe.apply(this,arguments)};function ko(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 Xi(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))}var _t="right-scroll-bar-position",$t="width-before-scroll-bar",qi="with-scroll-bars-hidden",Ki="--removed-body-scroll-bar-size";function mn(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Qi(e,t){var n=v.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 Ji=typeof window<"u"?p.useLayoutEffect:p.useEffect,Tr=new WeakMap;function el(e,t){var n=Qi(null,function(r){return e.forEach(function(o){return mn(o,r)})});return Ji(function(){var r=Tr.get(n);if(r){var o=new Set(r),s=new Set(e),a=n.current;o.forEach(function(i){s.has(i)||mn(i,null)}),s.forEach(function(i){o.has(i)||mn(i,a)})}Tr.set(n,e)},[e]),n}function tl(e){return e}function nl(e,t){t===void 0&&(t=tl);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 a=t(s,r);return n.push(a),function(){n=n.filter(function(i){return i!==a})}},assignSyncMedium:function(s){for(r=!0;n.length;){var a=n;n=[],a.forEach(s)}n={push:function(i){return s(i)},filter:function(){return n}}},assignMedium:function(s){r=!0;var a=[];if(n.length){var i=n;n=[],i.forEach(s),a=n}var l=function(){var u=a;a=[],u.forEach(s)},c=function(){return Promise.resolve().then(l)};c(),n={push:function(u){a.push(u),c()},filter:function(u){return a=a.filter(u),n}}}};return o}function rl(e){e===void 0&&(e={});var t=nl(null);return t.options=xe({async:!0,ssr:!1},e),t}var Ro=function(e){var t=e.sideCar,n=ko(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 p.createElement(r,xe({},n))};Ro.isSideCarExport=!0;function ol(e,t){return e.useMedium(t),Ro}var Eo=rl(),gn=function(){},qt=p.forwardRef(function(e,t){var n=p.useRef(null),r=p.useState({onScrollCapture:gn,onWheelCapture:gn,onTouchMoveCapture:gn}),o=r[0],s=r[1],a=e.forwardProps,i=e.children,l=e.className,c=e.removeScrollBar,u=e.enabled,f=e.shards,h=e.sideCar,m=e.noRelative,w=e.noIsolation,g=e.inert,b=e.allowPinchZoom,y=e.as,x=y===void 0?"div":y,R=e.gapMode,C=ko(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=h,P=el([n,t]),k=xe(xe({},C),o);return p.createElement(p.Fragment,null,u&&p.createElement(S,{sideCar:Eo,removeScrollBar:c,shards:f,noRelative:m,noIsolation:w,inert:g,setCallbacks:s,allowPinchZoom:!!b,lockRef:n,gapMode:R}),a?p.cloneElement(p.Children.only(i),xe(xe({},k),{ref:P})):p.createElement(x,xe({},k,{className:l,ref:P}),i))});qt.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};qt.classNames={fullWidth:$t,zeroRight:_t};var sl=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function al(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=sl();return t&&e.setAttribute("nonce",t),e}function il(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function ll(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var cl=function(){var e=0,t=null;return{add:function(n){e==0&&(t=al())&&(il(t,n),ll(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},ul=function(){var e=cl();return function(t,n){p.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},So=function(){var e=ul(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},dl={left:0,top:0,right:0,gap:0},vn=function(e){return parseInt(e||"",10)||0},fl=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[vn(n),vn(r),vn(o)]},pl=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return dl;var t=fl(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])}},hl=So(),tt="data-scroll-locked",ml=function(e,t,n,r){var o=e.left,s=e.top,a=e.right,i=e.gap;return n===void 0&&(n="margin"),`
|
|
32
|
-
.`.concat(qi,` {
|
|
33
|
-
overflow: hidden `).concat(r,`;
|
|
34
|
-
padding-right: `).concat(i,"px ").concat(r,`;
|
|
35
|
-
}
|
|
36
|
-
body[`).concat(tt,`] {
|
|
37
|
-
overflow: hidden `).concat(r,`;
|
|
38
|
-
overscroll-behavior: contain;
|
|
39
|
-
`).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
|
|
40
|
-
padding-left: `.concat(o,`px;
|
|
41
|
-
padding-top: `).concat(s,`px;
|
|
42
|
-
padding-right: `).concat(a,`px;
|
|
43
|
-
margin-left:0;
|
|
44
|
-
margin-top:0;
|
|
45
|
-
margin-right: `).concat(i,"px ").concat(r,`;
|
|
46
|
-
`),n==="padding"&&"padding-right: ".concat(i,"px ").concat(r,";")].filter(Boolean).join(""),`
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
.`).concat(_t,` {
|
|
50
|
-
right: `).concat(i,"px ").concat(r,`;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
.`).concat($t,` {
|
|
54
|
-
margin-right: `).concat(i,"px ").concat(r,`;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
.`).concat(_t," .").concat(_t,` {
|
|
58
|
-
right: 0 `).concat(r,`;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
.`).concat($t," .").concat($t,` {
|
|
62
|
-
margin-right: 0 `).concat(r,`;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
body[`).concat(tt,`] {
|
|
66
|
-
`).concat(Ki,": ").concat(i,`px;
|
|
67
|
-
}
|
|
68
|
-
`)},jr=function(){var e=parseInt(document.body.getAttribute(tt)||"0",10);return isFinite(e)?e:0},gl=function(){p.useEffect(function(){return document.body.setAttribute(tt,(jr()+1).toString()),function(){var e=jr()-1;e<=0?document.body.removeAttribute(tt):document.body.setAttribute(tt,e.toString())}},[])},vl=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;gl();var s=p.useMemo(function(){return pl(o)},[o]);return p.createElement(hl,{styles:ml(s,!t,o,n?"":"!important")})},Ln=!1;if(typeof window<"u")try{var Tt=Object.defineProperty({},"passive",{get:function(){return Ln=!0,!0}});window.addEventListener("test",Tt,Tt),window.removeEventListener("test",Tt,Tt)}catch{Ln=!1}var Qe=Ln?{passive:!1}:!1,bl=function(e){return e.tagName==="TEXTAREA"},Po=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!bl(e)&&n[t]==="visible")},wl=function(e){return Po(e,"overflowY")},yl=function(e){return Po(e,"overflowX")},Mr=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=Ao(e,r);if(o){var s=Lo(e,r),a=s[1],i=s[2];if(a>i)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},xl=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Cl=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Ao=function(e,t){return e==="v"?wl(t):yl(t)},Lo=function(e,t){return e==="v"?xl(t):Cl(t)},kl=function(e,t){return e==="h"&&t==="rtl"?-1:1},Rl=function(e,t,n,r,o){var s=kl(e,window.getComputedStyle(t).direction),a=s*r,i=n.target,l=t.contains(i),c=!1,u=a>0,f=0,h=0;do{if(!i)break;var m=Lo(e,i),w=m[0],g=m[1],b=m[2],y=g-b-s*w;(w||y)&&Ao(e,i)&&(f+=y,h+=w);var x=i.parentNode;i=x&&x.nodeType===Node.DOCUMENT_FRAGMENT_NODE?x.host:x}while(!l&&i!==document.body||l&&(t.contains(i)||t===i));return(u&&Math.abs(f)<1||!u&&Math.abs(h)<1)&&(c=!0),c},jt=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Or=function(e){return[e.deltaX,e.deltaY]},Ir=function(e){return e&&"current"in e?e.current:e},El=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Sl=function(e){return`
|
|
69
|
-
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
70
|
-
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
71
|
-
`)},Pl=0,Je=[];function Al(e){var t=p.useRef([]),n=p.useRef([0,0]),r=p.useRef(),o=p.useState(Pl++)[0],s=p.useState(So)[0],a=p.useRef(e);p.useEffect(function(){a.current=e},[e]),p.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var g=Xi([e.lockRef.current],(e.shards||[]).map(Ir),!0).filter(Boolean);return g.forEach(function(b){return b.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),g.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var i=p.useCallback(function(g,b){if("touches"in g&&g.touches.length===2||g.type==="wheel"&&g.ctrlKey)return!a.current.allowPinchZoom;var y=jt(g),x=n.current,R="deltaX"in g?g.deltaX:x[0]-y[0],C="deltaY"in g?g.deltaY:x[1]-y[1],S,P=g.target,k=Math.abs(R)>Math.abs(C)?"h":"v";if("touches"in g&&k==="h"&&P.type==="range")return!1;var E=Mr(k,P);if(!E)return!0;if(E?S=k:(S=k==="v"?"h":"v",E=Mr(k,P)),!E)return!1;if(!r.current&&"changedTouches"in g&&(R||C)&&(r.current=S),!S)return!0;var L=r.current||S;return Rl(L,b,g,L==="h"?R:C)},[]),l=p.useCallback(function(g){var b=g;if(!(!Je.length||Je[Je.length-1]!==s)){var y="deltaY"in b?Or(b):jt(b),x=t.current.filter(function(S){return S.name===b.type&&(S.target===b.target||b.target===S.shadowParent)&&El(S.delta,y)})[0];if(x&&x.should){b.cancelable&&b.preventDefault();return}if(!x){var R=(a.current.shards||[]).map(Ir).filter(Boolean).filter(function(S){return S.contains(b.target)}),C=R.length>0?i(b,R[0]):!a.current.noIsolation;C&&b.cancelable&&b.preventDefault()}}},[]),c=p.useCallback(function(g,b,y,x){var R={name:g,delta:b,target:y,should:x,shadowParent:Ll(y)};t.current.push(R),setTimeout(function(){t.current=t.current.filter(function(C){return C!==R})},1)},[]),u=p.useCallback(function(g){n.current=jt(g),r.current=void 0},[]),f=p.useCallback(function(g){c(g.type,Or(g),g.target,i(g,e.lockRef.current))},[]),h=p.useCallback(function(g){c(g.type,jt(g),g.target,i(g,e.lockRef.current))},[]);p.useEffect(function(){return Je.push(s),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:h}),document.addEventListener("wheel",l,Qe),document.addEventListener("touchmove",l,Qe),document.addEventListener("touchstart",u,Qe),function(){Je=Je.filter(function(g){return g!==s}),document.removeEventListener("wheel",l,Qe),document.removeEventListener("touchmove",l,Qe),document.removeEventListener("touchstart",u,Qe)}},[]);var m=e.removeScrollBar,w=e.inert;return p.createElement(p.Fragment,null,w?p.createElement(s,{styles:Sl(o)}):null,m?p.createElement(vl,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Ll(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Tl=ol(Eo,Al);var Vn=p.forwardRef(function(e,t){return p.createElement(qt,xe({},e,{ref:t,sideCar:Tl}))});Vn.classNames=qt.classNames;var jl=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},et=new WeakMap,Mt=new WeakMap,Ot={},bn=0,To=function(e){return e&&(e.host||To(e.parentNode))},Ml=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=To(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})},Ol=function(e,t,n,r){var o=Ml(t,Array.isArray(e)?e:[e]);Ot[n]||(Ot[n]=new WeakMap);var s=Ot[n],a=[],i=new Set,l=new Set(o),c=function(f){!f||i.has(f)||(i.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(i.has(h))u(h);else try{var m=h.getAttribute(r),w=m!==null&&m!=="false",g=(et.get(h)||0)+1,b=(s.get(h)||0)+1;et.set(h,g),s.set(h,b),a.push(h),g===1&&w&&Mt.set(h,!0),b===1&&h.setAttribute(n,"true"),w||h.setAttribute(r,"true")}catch(y){console.error("aria-hidden: cannot operate on ",h,y)}})};return u(t),i.clear(),bn++,function(){a.forEach(function(f){var h=et.get(f)-1,m=s.get(f)-1;et.set(f,h),s.set(f,m),h||(Mt.has(f)||f.removeAttribute(r),Mt.delete(f)),m||f.removeAttribute(n)}),bn--,bn||(et=new WeakMap,et=new WeakMap,Mt=new WeakMap,Ot={})}},jo=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=jl(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),Ol(r,o,n,"aria-hidden")):function(){return null}},Kt="Dialog",[Mo,Xf]=Zt(Kt),[Il,ge]=Mo(Kt),Oo=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:s,modal:a=!0}=e,i=p.useRef(null),l=p.useRef(null),[c,u]=Wn({prop:r,defaultProp:o??!1,onChange:s,caller:Kt});return d.jsx(Il,{scope:t,triggerRef:i,contentRef:l,contentId:vt(),titleId:vt(),descriptionId:vt(),open:c,onOpenChange:u,onOpenToggle:p.useCallback(()=>u(f=>!f),[u]),modal:a,children:n})};Oo.displayName=Kt;var Io="DialogTrigger",Do=p.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=ge(Io,n),s=ue(t,o.triggerRef);return d.jsx(se.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Un(o.open),...r,ref:s,onClick:re(e.onClick,o.onOpenToggle)})});Do.displayName=Io;var Hn="DialogPortal",[Dl,No]=Mo(Hn,{forceMount:void 0}),_o=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,s=ge(Hn,t);return d.jsx(Dl,{scope:t,forceMount:n,children:p.Children.map(r,a=>d.jsx(Fe,{present:n||s.open,children:d.jsx(Xt,{asChild:!0,container:o,children:a})}))})};_o.displayName=Hn;var zt="DialogOverlay",$o=p.forwardRef((e,t)=>{const n=No(zt,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=ge(zt,e.__scopeDialog);return s.modal?d.jsx(Fe,{present:r||s.open,children:d.jsx(_l,{...o,ref:t})}):null});$o.displayName=zt;var Nl=Fn("DialogOverlay.RemoveScroll"),_l=p.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=ge(zt,n);return d.jsx(Vn,{as:Nl,allowPinchZoom:!0,shards:[o.contentRef],children:d.jsx(se.div,{"data-state":Un(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Ze="DialogContent",Wo=p.forwardRef((e,t)=>{const n=No(Ze,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=ge(Ze,e.__scopeDialog);return d.jsx(Fe,{present:r||s.open,children:s.modal?d.jsx($l,{...o,ref:t}):d.jsx(Wl,{...o,ref:t})})});Wo.displayName=Ze;var $l=p.forwardRef((e,t)=>{const n=ge(Ze,e.__scopeDialog),r=p.useRef(null),o=ue(t,n.contentRef,r);return p.useEffect(()=>{const s=r.current;if(s)return jo(s)},[]),d.jsx(Fo,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:re(e.onCloseAutoFocus,s=>{s.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:re(e.onPointerDownOutside,s=>{const a=s.detail.originalEvent,i=a.button===0&&a.ctrlKey===!0;(a.button===2||i)&&s.preventDefault()}),onFocusOutside:re(e.onFocusOutside,s=>s.preventDefault())})}),Wl=p.forwardRef((e,t)=>{const n=ge(Ze,e.__scopeDialog),r=p.useRef(!1),o=p.useRef(!1);return d.jsx(Fo,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{e.onCloseAutoFocus?.(s),s.defaultPrevented||(r.current||n.triggerRef.current?.focus(),s.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:s=>{e.onInteractOutside?.(s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const a=s.target;n.triggerRef.current?.contains(a)&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&o.current&&s.preventDefault()}})}),Fo=p.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:s,...a}=e,i=ge(Ze,n),l=p.useRef(null),c=ue(t,l);return Co(),d.jsxs(d.Fragment,{children:[d.jsx(zn,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:s,children:d.jsx(Yt,{role:"dialog",id:i.contentId,"aria-describedby":i.descriptionId,"aria-labelledby":i.titleId,"data-state":Un(i.open),...a,ref:c,onDismiss:()=>i.onOpenChange(!1)})}),d.jsxs(d.Fragment,{children:[d.jsx(Fl,{titleId:i.titleId}),d.jsx(Vl,{contentRef:l,descriptionId:i.descriptionId})]})]})}),Bn="DialogTitle",zo=p.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=ge(Bn,n);return d.jsx(se.h2,{id:o.titleId,...r,ref:t})});zo.displayName=Bn;var Vo="DialogDescription",Ho=p.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=ge(Vo,n);return d.jsx(se.p,{id:o.descriptionId,...r,ref:t})});Ho.displayName=Vo;var Bo="DialogClose",Uo=p.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=ge(Bo,n);return d.jsx(se.button,{type:"button",...r,ref:t,onClick:re(e.onClick,()=>o.onOpenChange(!1))})});Uo.displayName=Bo;function Un(e){return e?"open":"closed"}var Go="DialogTitleWarning",[qf,Zo]=gi(Go,{contentName:Ze,titleName:Bn,docsSlug:"dialog"}),Fl=({titleId:e})=>{const t=Zo(Go),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
72
|
-
|
|
73
|
-
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
74
|
-
|
|
75
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return p.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},zl="DialogDescriptionWarning",Vl=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Zo(zl).contentName}}.`;return p.useEffect(()=>{const o=e.current?.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},Hl=Oo,Bl=Do,Ul=_o,Gl=$o,Zl=Wo,Yl=zo,Xl=Ho,ql=Uo;function Kl(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}const Yo=v.createContext({drawerRef:{current:null},overlayRef:{current:null},onPress:()=>{},onRelease:()=>{},onDrag:()=>{},onNestedDrag:()=>{},onNestedOpenChange:()=>{},onNestedRelease:()=>{},openProp:void 0,dismissible:!1,isOpen:!1,isDragging:!1,keyboardIsOpen:{current:!1},snapPointsOffset:null,snapPoints:null,handleOnly:!1,modal:!1,shouldFade:!1,activeSnapPoint:null,onOpenChange:()=>{},setActiveSnapPoint:()=>{},closeDrawer:()=>{},direction:"bottom",shouldAnimate:{current:!0},shouldScaleBackground:!1,setBackgroundColorOnScale:!0,noBodyStyles:!1,container:null,autoFocus:!1}),xt=()=>{const e=v.useContext(Yo);if(!e)throw new Error("useDrawerContext must be used within a Drawer.Root");return e};Kl(`[data-vaul-drawer]{touch-action:none;will-change:transform;transition:transform .5s cubic-bezier(.32, .72, 0, 1);animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=open]{animation-name:slideFromBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=closed]{animation-name:slideToBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=open]{animation-name:slideFromTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=closed]{animation-name:slideToTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=open]{animation-name:slideFromLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=closed]{animation-name:slideToLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=open]{animation-name:slideFromRight}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=closed]{animation-name:slideToRight}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--initial-transform,100%),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--initial-transform,100%),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-overlay][data-vaul-snap-points=false]{animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-overlay][data-vaul-snap-points=false][data-state=open]{animation-name:fadeIn}[data-vaul-overlay][data-state=closed]{animation-name:fadeOut}[data-vaul-animate=false]{animation:none!important}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:0;transition:opacity .5s cubic-bezier(.32, .72, 0, 1)}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:1}[data-vaul-drawer]:not([data-vaul-custom-container=true])::after{content:'';position:absolute;background:inherit;background-color:inherit}[data-vaul-drawer][data-vaul-drawer-direction=top]::after{top:initial;bottom:100%;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=bottom]::after{top:100%;bottom:initial;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=left]::after{left:initial;right:100%;top:0;bottom:0;width:200%}[data-vaul-drawer][data-vaul-drawer-direction=right]::after{left:100%;right:initial;top:0;bottom:0;width:200%}[data-vaul-overlay][data-vaul-snap-points=true]:not([data-vaul-snap-points-overlay=true]):not(
|
|
76
|
-
[data-state=closed]
|
|
77
|
-
){opacity:0}[data-vaul-overlay][data-vaul-snap-points-overlay=true]{opacity:1}[data-vaul-handle]{display:block;position:relative;opacity:.7;background:#e2e2e4;margin-left:auto;margin-right:auto;height:5px;width:32px;border-radius:1rem;touch-action:pan-y}[data-vaul-handle]:active,[data-vaul-handle]:hover{opacity:1}[data-vaul-handle-hitarea]{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:max(100%,2.75rem);height:max(100%,2.75rem);touch-action:inherit}@media (hover:hover) and (pointer:fine){[data-vaul-drawer]{user-select:none}}@media (pointer:fine){[data-vaul-handle-hitarea]:{width:100%;height:100%}}@keyframes fadeIn{from{opacity:0}to{opacity:1}}@keyframes fadeOut{to{opacity:0}}@keyframes slideFromBottom{from{transform:translate3d(0,var(--initial-transform,100%),0)}to{transform:translate3d(0,0,0)}}@keyframes slideToBottom{to{transform:translate3d(0,var(--initial-transform,100%),0)}}@keyframes slideFromTop{from{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}to{transform:translate3d(0,0,0)}}@keyframes slideToTop{to{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}}@keyframes slideFromLeft{from{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToLeft{to{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}}@keyframes slideFromRight{from{transform:translate3d(var(--initial-transform,100%),0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToRight{to{transform:translate3d(var(--initial-transform,100%),0,0)}}`);function Ql(){const e=navigator.userAgent;return typeof window<"u"&&(/Firefox/.test(e)&&/Mobile/.test(e)||/FxiOS/.test(e))}function Jl(){return Gn(/^Mac/)}function ec(){return Gn(/^iPhone/)}function Dr(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function tc(){return Gn(/^iPad/)||Jl()&&navigator.maxTouchPoints>1}function Xo(){return ec()||tc()}function Gn(e){return typeof window<"u"&&window.navigator!=null?e.test(window.navigator.platform):void 0}const nc=24,rc=typeof window<"u"?v.useLayoutEffect:v.useEffect;function Nr(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const wn=typeof document<"u"&&window.visualViewport;function _r(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}function qo(e){for(_r(e)&&(e=e.parentElement);e&&!_r(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}const oc=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let It=0,yn;function sc(e={}){let{isDisabled:t}=e;rc(()=>{if(!t)return It++,It===1&&Xo()&&(yn=ac()),()=>{It--,It===0&&yn?.()}},[t])}function ac(){let e,t=0,n=f=>{e=qo(f.target),!(e===document.documentElement&&e===document.body)&&(t=f.changedTouches[0].pageY)},r=f=>{if(!e||e===document.documentElement||e===document.body){f.preventDefault();return}let h=f.changedTouches[0].pageY,m=e.scrollTop,w=e.scrollHeight-e.clientHeight;w!==0&&((m<=0&&h>t||m>=w&&h<t)&&f.preventDefault(),t=h)},o=f=>{let h=f.target;Tn(h)&&h!==document.activeElement&&(f.preventDefault(),h.style.transform="translateY(-2000px)",h.focus(),requestAnimationFrame(()=>{h.style.transform=""}))},s=f=>{let h=f.target;Tn(h)&&(h.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{h.style.transform="",wn&&(wn.height<window.innerHeight?requestAnimationFrame(()=>{$r(h)}):wn.addEventListener("resize",()=>$r(h),{once:!0}))}))},a=()=>{window.scrollTo(0,0)},i=window.pageXOffset,l=window.pageYOffset,c=Nr(ic(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`));window.scrollTo(0,0);let u=Nr(mt(document,"touchstart",n,{passive:!1,capture:!0}),mt(document,"touchmove",r,{passive:!1,capture:!0}),mt(document,"touchend",o,{passive:!1,capture:!0}),mt(document,"focus",s,!0),mt(window,"scroll",a));return()=>{c(),u(),window.scrollTo(i,l)}}function ic(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function mt(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function $r(e){let t=document.scrollingElement||document.documentElement;for(;e&&e!==t;){let n=qo(e);if(n!==document.documentElement&&n!==document.body&&n!==e){let r=n.getBoundingClientRect().top,o=e.getBoundingClientRect().top,s=e.getBoundingClientRect().bottom;const a=n.getBoundingClientRect().bottom+nc;s>a&&(n.scrollTop+=o-r)}e=n.parentElement}}function Tn(e){return e instanceof HTMLInputElement&&!oc.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}function lc(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function cc(...e){return t=>e.forEach(n=>lc(n,t))}function Ko(...e){return p.useCallback(cc(...e),e)}const Qo=new WeakMap;function ne(e,t,n=!1){if(!e||!(e instanceof HTMLElement))return;let r={};Object.entries(t).forEach(([o,s])=>{if(o.startsWith("--")){e.style.setProperty(o,s);return}r[o]=e.style[o],e.style[o]=s}),!n&&Qo.set(e,r)}function uc(e,t){if(!e||!(e instanceof HTMLElement))return;let n=Qo.get(e);n&&(e.style[t]=n[t])}const J=e=>{switch(e){case"top":case"bottom":return!0;case"left":case"right":return!1;default:return e}};function Dt(e,t){if(!e)return null;const n=window.getComputedStyle(e),r=n.transform||n.webkitTransform||n.mozTransform;let o=r.match(/^matrix3d\((.+)\)$/);return o?parseFloat(o[1].split(", ")[J(t)?13:12]):(o=r.match(/^matrix\((.+)\)$/),o?parseFloat(o[1].split(", ")[J(t)?5:4]):null)}function dc(e){return 8*(Math.log(e+1)-2)}function xn(e,t){if(!e)return()=>{};const n=e.style.cssText;return Object.assign(e.style,t),()=>{e.style.cssText=n}}function fc(...e){return(...t)=>{for(const n of e)typeof n=="function"&&n(...t)}}const q={DURATION:.5,EASE:[.32,.72,0,1]},Jo=.4,pc=.25,hc=100,es=8,Ge=16,jn=26,Cn="vaul-dragging";function ts(e){const t=v.useRef(e);return v.useEffect(()=>{t.current=e}),v.useMemo(()=>(...n)=>t.current==null?void 0:t.current.call(t,...n),[])}function mc({defaultProp:e,onChange:t}){const n=v.useState(e),[r]=n,o=v.useRef(r),s=ts(t);return v.useEffect(()=>{o.current!==r&&(s(r),o.current=r)},[r,o,s]),n}function ns({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=mc({defaultProp:t,onChange:n}),s=e!==void 0,a=s?e:r,i=ts(n),l=v.useCallback(c=>{if(s){const f=typeof c=="function"?c(e):c;f!==e&&i(f)}else o(c)},[s,e,o,i]);return[a,l]}function gc({activeSnapPointProp:e,setActiveSnapPointProp:t,snapPoints:n,drawerRef:r,overlayRef:o,fadeFromIndex:s,onSnapPointChange:a,direction:i="bottom",container:l,snapToSequentialPoint:c}){const[u,f]=ns({prop:e,defaultProp:n?.[0],onChange:t}),[h,m]=v.useState(typeof window<"u"?{innerWidth:window.innerWidth,innerHeight:window.innerHeight}:void 0);v.useEffect(()=>{function k(){m({innerWidth:window.innerWidth,innerHeight:window.innerHeight})}return window.addEventListener("resize",k),()=>window.removeEventListener("resize",k)},[]);const w=v.useMemo(()=>u===n?.[n.length-1]||null,[n,u]),g=v.useMemo(()=>{var k;return(k=n?.findIndex(E=>E===u))!=null?k:null},[n,u]),b=n&&n.length>0&&(s||s===0)&&!Number.isNaN(s)&&n[s]===u||!n,y=v.useMemo(()=>{const k=l?{width:l.getBoundingClientRect().width,height:l.getBoundingClientRect().height}:typeof window<"u"?{width:window.innerWidth,height:window.innerHeight}:{width:0,height:0};var E;return(E=n?.map(L=>{const I=typeof L=="string";let j=0;if(I&&(j=parseInt(L,10)),J(i)){const T=I?j:h?L*k.height:0;return h?i==="bottom"?k.height-T:-k.height+T:T}const W=I?j:h?L*k.width:0;return h?i==="right"?k.width-W:-k.width+W:W}))!=null?E:[]},[n,h,l]),x=v.useMemo(()=>g!==null?y?.[g]:null,[y,g]),R=v.useCallback(k=>{var E;const L=(E=y?.findIndex(I=>I===k))!=null?E:null;a(L),ne(r.current,{transition:`transform ${q.DURATION}s cubic-bezier(${q.EASE.join(",")})`,transform:J(i)?`translate3d(0, ${k}px, 0)`:`translate3d(${k}px, 0, 0)`}),y&&L!==y.length-1&&s!==void 0&&L!==s&&L<s?ne(o.current,{transition:`opacity ${q.DURATION}s cubic-bezier(${q.EASE.join(",")})`,opacity:"0"}):ne(o.current,{transition:`opacity ${q.DURATION}s cubic-bezier(${q.EASE.join(",")})`,opacity:"1"}),f(n?.[Math.max(L,0)])},[r.current,n,y,s,o,f]);v.useEffect(()=>{if(u||e){var k;const E=(k=n?.findIndex(L=>L===e||L===u))!=null?k:-1;y&&E!==-1&&typeof y[E]=="number"&&R(y[E])}},[u,e,n,y,R]);function C({draggedDistance:k,closeDrawer:E,velocity:L,dismissible:I}){if(s===void 0)return;const j=i==="bottom"||i==="right"?(x??0)-k:(x??0)+k,W=g===s-1,T=g===0,D=k>0;if(W&&ne(o.current,{transition:`opacity ${q.DURATION}s cubic-bezier(${q.EASE.join(",")})`}),!c&&L>2&&!D){I?E():R(y[0]);return}if(!c&&L>2&&D&&y&&n){R(y[n.length-1]);return}const F=y?.reduce((_,A)=>typeof _!="number"||typeof A!="number"?_:Math.abs(A-j)<Math.abs(_-j)?A:_),N=J(i)?window.innerHeight:window.innerWidth;if(L>Jo&&Math.abs(k)<N*.4){const _=D?1:-1;if(_>0&&w&&n){R(y[n.length-1]);return}if(T&&_<0&&I&&E(),g===null)return;R(y[g+_]);return}R(F)}function S({draggedDistance:k}){if(x===null)return;const E=i==="bottom"||i==="right"?x-k:x+k;(i==="bottom"||i==="right")&&E<y[y.length-1]||(i==="top"||i==="left")&&E>y[y.length-1]||ne(r.current,{transform:J(i)?`translate3d(0, ${E}px, 0)`:`translate3d(${E}px, 0, 0)`})}function P(k,E){if(!n||typeof g!="number"||!y||s===void 0)return null;const L=g===s-1;if(g>=s&&E)return 0;if(L&&!E)return 1;if(!b&&!L)return null;const j=L?g+1:g-1,W=L?y[j]-y[j-1]:y[j+1]-y[j],T=k/Math.abs(W);return L?1-T:T}return{isLastSnapPoint:w,activeSnapPoint:u,shouldFade:b,getPercentageDragged:P,setActiveSnapPoint:f,activeSnapPointIndex:g,onRelease:C,onDrag:S,snapPointsOffset:y}}const vc=()=>()=>{};function bc(){const{direction:e,isOpen:t,shouldScaleBackground:n,setBackgroundColorOnScale:r,noBodyStyles:o}=xt(),s=v.useRef(null),a=v.useMemo(()=>document.body.style.backgroundColor,[]);function i(){return(window.innerWidth-jn)/window.innerWidth}v.useEffect(()=>{if(t&&n){s.current&&clearTimeout(s.current);const l=document.querySelector("[data-vaul-drawer-wrapper]")||document.querySelector("[vaul-drawer-wrapper]");if(!l)return;fc(r&&!o?xn(document.body,{background:"black"}):vc,xn(l,{transformOrigin:J(e)?"top":"left",transitionProperty:"transform, border-radius",transitionDuration:`${q.DURATION}s`,transitionTimingFunction:`cubic-bezier(${q.EASE.join(",")})`}));const c=xn(l,{borderRadius:`${es}px`,overflow:"hidden",...J(e)?{transform:`scale(${i()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`}:{transform:`scale(${i()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`}});return()=>{c(),s.current=window.setTimeout(()=>{a?document.body.style.background=a:document.body.style.removeProperty("background")},q.DURATION*1e3)}}},[t,n,a])}let gt=null;function wc({isOpen:e,modal:t,nested:n,hasBeenOpened:r,preventScrollRestoration:o,noBodyStyles:s}){const[a,i]=v.useState(()=>typeof window<"u"?window.location.href:""),l=v.useRef(0),c=v.useCallback(()=>{if(Dr()&>===null&&e&&!s){gt={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left,height:document.body.style.height,right:"unset"};const{scrollX:f,innerHeight:h}=window;document.body.style.setProperty("position","fixed","important"),Object.assign(document.body.style,{top:`${-l.current}px`,left:`${-f}px`,right:"0px",height:"auto"}),window.setTimeout(()=>window.requestAnimationFrame(()=>{const m=h-window.innerHeight;m&&l.current>=h&&(document.body.style.top=`${-(l.current+m)}px`)}),300)}},[e]),u=v.useCallback(()=>{if(Dr()&>!==null&&!s){const f=-parseInt(document.body.style.top,10),h=-parseInt(document.body.style.left,10);Object.assign(document.body.style,gt),window.requestAnimationFrame(()=>{if(o&&a!==window.location.href){i(window.location.href);return}window.scrollTo(h,f)}),gt=null}},[a]);return v.useEffect(()=>{function f(){l.current=window.scrollY}return f(),window.addEventListener("scroll",f),()=>{window.removeEventListener("scroll",f)}},[]),v.useEffect(()=>{if(t)return()=>{typeof document>"u"||document.querySelector("[data-vaul-drawer]")||u()}},[t,u]),v.useEffect(()=>{n||!r||(e?(!window.matchMedia("(display-mode: standalone)").matches&&c(),t||window.setTimeout(()=>{u()},500)):u())},[e,r,a,t,n,c,u]),{restorePositionSetting:u}}function yc({open:e,onOpenChange:t,children:n,onDrag:r,onRelease:o,snapPoints:s,shouldScaleBackground:a=!1,setBackgroundColorOnScale:i=!0,closeThreshold:l=pc,scrollLockTimeout:c=hc,dismissible:u=!0,handleOnly:f=!1,fadeFromIndex:h=s&&s.length-1,activeSnapPoint:m,setActiveSnapPoint:w,fixed:g,modal:b=!0,onClose:y,nested:x,noBodyStyles:R=!1,direction:C="bottom",defaultOpen:S=!1,disablePreventScroll:P=!0,snapToSequentialPoint:k=!1,preventScrollRestoration:E=!1,repositionInputs:L=!0,onAnimationEnd:I,container:j,autoFocus:W=!1}){var T,D;const[F=!1,N]=ns({defaultProp:S,prop:e,onChange:$=>{t?.($),!$&&!x&&ma(),setTimeout(()=>{I?.($)},q.DURATION*1e3),$&&!b&&typeof window<"u"&&window.requestAnimationFrame(()=>{document.body.style.pointerEvents="auto"}),$||(document.body.style.pointerEvents="auto")}}),[_,A]=v.useState(!1),[G,ee]=v.useState(!1),[Ve,Te]=v.useState(!1),X=v.useRef(null),Q=v.useRef(null),ve=v.useRef(null),je=v.useRef(null),B=v.useRef(null),fe=v.useRef(!1),be=v.useRef(null),we=v.useRef(0),de=v.useRef(!1),Se=v.useRef(!S),He=v.useRef(0),z=v.useRef(null),lr=v.useRef(((T=z.current)==null?void 0:T.getBoundingClientRect().height)||0),cr=v.useRef(((D=z.current)==null?void 0:D.getBoundingClientRect().width)||0),cn=v.useRef(0),ua=v.useCallback($=>{s&&$===ft.length-1&&(Q.current=new Date)},[]),{activeSnapPoint:da,activeSnapPointIndex:qe,setActiveSnapPoint:ur,onRelease:fa,snapPointsOffset:ft,onDrag:pa,shouldFade:dr,getPercentageDragged:ha}=gc({snapPoints:s,activeSnapPointProp:m,setActiveSnapPointProp:w,drawerRef:z,fadeFromIndex:h,overlayRef:X,onSnapPointChange:ua,direction:C,container:j,snapToSequentialPoint:k});sc({isDisabled:!F||G||!b||Ve||!_||!L||!P});const{restorePositionSetting:ma}=wc({isOpen:F,modal:b,nested:x??!1,hasBeenOpened:_,preventScrollRestoration:E,noBodyStyles:R});function Et(){return(window.innerWidth-jn)/window.innerWidth}function ga($){var U,Z;!u&&!s||z.current&&!z.current.contains($.target)||(lr.current=((U=z.current)==null?void 0:U.getBoundingClientRect().height)||0,cr.current=((Z=z.current)==null?void 0:Z.getBoundingClientRect().width)||0,ee(!0),ve.current=new Date,Xo()&&window.addEventListener("touchend",()=>fe.current=!1,{once:!0}),$.target.setPointerCapture($.pointerId),we.current=J(C)?$.pageY:$.pageX)}function fr($,U){var Z;let H=$;const K=(Z=window.getSelection())==null?void 0:Z.toString(),ie=z.current?Dt(z.current,C):null,ae=new Date;if(H.tagName==="SELECT"||H.hasAttribute("data-vaul-no-drag")||H.closest("[data-vaul-no-drag]"))return!1;if(C==="right"||C==="left")return!0;if(Q.current&&ae.getTime()-Q.current.getTime()<500)return!1;if(ie!==null&&(C==="bottom"?ie>0:ie<0))return!0;if(K&&K.length>0)return!1;if(B.current&&ae.getTime()-B.current.getTime()<c&&ie===0||U)return B.current=ae,!1;for(;H;){if(H.scrollHeight>H.clientHeight){if(H.scrollTop!==0)return B.current=new Date,!1;if(H.getAttribute("role")==="dialog")return!0}H=H.parentNode}return!0}function va($){if(z.current&&G){const U=C==="bottom"||C==="right"?1:-1,Z=(we.current-(J(C)?$.pageY:$.pageX))*U,H=Z>0,K=s&&!u&&!H;if(K&&qe===0)return;const ie=Math.abs(Z),ae=document.querySelector("[data-vaul-drawer-wrapper]"),Me=C==="bottom"||C==="top"?lr.current:cr.current;let pe=ie/Me;const Be=ha(ie,H);if(Be!==null&&(pe=Be),K&&pe>=1||!fe.current&&!fr($.target,H))return;if(z.current.classList.add(Cn),fe.current=!0,ne(z.current,{transition:"none"}),ne(X.current,{transition:"none"}),s&&pa({draggedDistance:Z}),H&&!s){const ye=dc(Z),St=Math.min(ye*-1,0)*U;ne(z.current,{transform:J(C)?`translate3d(0, ${St}px, 0)`:`translate3d(${St}px, 0, 0)`});return}const Oe=1-pe;if((dr||h&&qe===h-1)&&(r?.($,pe),ne(X.current,{opacity:`${Oe}`,transition:"none"},!0)),ae&&X.current&&a){const ye=Math.min(Et()+pe*(1-Et()),1),St=8-pe*8,hr=Math.max(0,14-pe*14);ne(ae,{borderRadius:`${St}px`,transform:J(C)?`scale(${ye}) translate3d(0, ${hr}px, 0)`:`scale(${ye}) translate3d(${hr}px, 0, 0)`,transition:"none"},!0)}if(!s){const ye=ie*U;ne(z.current,{transform:J(C)?`translate3d(0, ${ye}px, 0)`:`translate3d(${ye}px, 0, 0)`})}}}v.useEffect(()=>{window.requestAnimationFrame(()=>{Se.current=!0})},[]),v.useEffect(()=>{var $;function U(){if(!z.current||!L)return;const Z=document.activeElement;if(Tn(Z)||de.current){var H;const K=((H=window.visualViewport)==null?void 0:H.height)||0,ie=window.innerHeight;let ae=ie-K;const Me=z.current.getBoundingClientRect().height||0,pe=Me>ie*.8;cn.current||(cn.current=Me);const Be=z.current.getBoundingClientRect().top;if(Math.abs(He.current-ae)>60&&(de.current=!de.current),s&&s.length>0&&ft&&qe){const Oe=ft[qe]||0;ae+=Oe}if(He.current=ae,Me>K||de.current){const Oe=z.current.getBoundingClientRect().height;let ye=Oe;Oe>K&&(ye=K-(pe?Be:jn)),g?z.current.style.height=`${Oe-Math.max(ae,0)}px`:z.current.style.height=`${Math.max(ye,K-Be)}px`}else Ql()||(z.current.style.height=`${cn.current}px`);s&&s.length>0&&!de.current?z.current.style.bottom="0px":z.current.style.bottom=`${Math.max(ae,0)}px`}}return($=window.visualViewport)==null||$.addEventListener("resize",U),()=>{var Z;return(Z=window.visualViewport)==null?void 0:Z.removeEventListener("resize",U)}},[qe,s,ft]);function pt($){ba(),y?.(),$||N(!1),setTimeout(()=>{s&&ur(s[0])},q.DURATION*1e3)}function pr(){if(!z.current)return;const $=document.querySelector("[data-vaul-drawer-wrapper]"),U=Dt(z.current,C);ne(z.current,{transform:"translate3d(0, 0, 0)",transition:`transform ${q.DURATION}s cubic-bezier(${q.EASE.join(",")})`}),ne(X.current,{transition:`opacity ${q.DURATION}s cubic-bezier(${q.EASE.join(",")})`,opacity:"1"}),a&&U&&U>0&&F&&ne($,{borderRadius:`${es}px`,overflow:"hidden",...J(C)?{transform:`scale(${Et()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:"top"}:{transform:`scale(${Et()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,transformOrigin:"left"},transitionProperty:"transform, border-radius",transitionDuration:`${q.DURATION}s`,transitionTimingFunction:`cubic-bezier(${q.EASE.join(",")})`},!0)}function ba(){!G||!z.current||(z.current.classList.remove(Cn),fe.current=!1,ee(!1),je.current=new Date)}function wa($){if(!G||!z.current)return;z.current.classList.remove(Cn),fe.current=!1,ee(!1),je.current=new Date;const U=Dt(z.current,C);if(!$||!fr($.target,!1)||!U||Number.isNaN(U)||ve.current===null)return;const Z=je.current.getTime()-ve.current.getTime(),H=we.current-(J(C)?$.pageY:$.pageX),K=Math.abs(H)/Z;if(K>.05&&(Te(!0),setTimeout(()=>{Te(!1)},200)),s){fa({draggedDistance:H*(C==="bottom"||C==="right"?1:-1),closeDrawer:pt,velocity:K,dismissible:u}),o?.($,!0);return}if(C==="bottom"||C==="right"?H>0:H<0){pr(),o?.($,!0);return}if(K>Jo){pt(),o?.($,!1);return}var ie;const ae=Math.min((ie=z.current.getBoundingClientRect().height)!=null?ie:0,window.innerHeight);var Me;const pe=Math.min((Me=z.current.getBoundingClientRect().width)!=null?Me:0,window.innerWidth),Be=C==="left"||C==="right";if(Math.abs(U)>=(Be?pe:ae)*l){pt(),o?.($,!1);return}o?.($,!0),pr()}v.useEffect(()=>(F&&(ne(document.documentElement,{scrollBehavior:"auto"}),Q.current=new Date),()=>{uc(document.documentElement,"scrollBehavior")}),[F]);function ya($){const U=$?(window.innerWidth-Ge)/window.innerWidth:1,Z=$?-Ge:0;be.current&&window.clearTimeout(be.current),ne(z.current,{transition:`transform ${q.DURATION}s cubic-bezier(${q.EASE.join(",")})`,transform:J(C)?`scale(${U}) translate3d(0, ${Z}px, 0)`:`scale(${U}) translate3d(${Z}px, 0, 0)`}),!$&&z.current&&(be.current=setTimeout(()=>{const H=Dt(z.current,C);ne(z.current,{transition:"none",transform:J(C)?`translate3d(0, ${H}px, 0)`:`translate3d(${H}px, 0, 0)`})},500))}function xa($,U){if(U<0)return;const Z=(window.innerWidth-Ge)/window.innerWidth,H=Z+U*(1-Z),K=-Ge+U*Ge;ne(z.current,{transform:J(C)?`scale(${H}) translate3d(0, ${K}px, 0)`:`scale(${H}) translate3d(${K}px, 0, 0)`,transition:"none"})}function Ca($,U){const Z=J(C)?window.innerHeight:window.innerWidth,H=U?(Z-Ge)/Z:1,K=U?-Ge:0;U&&ne(z.current,{transition:`transform ${q.DURATION}s cubic-bezier(${q.EASE.join(",")})`,transform:J(C)?`scale(${H}) translate3d(0, ${K}px, 0)`:`scale(${H}) translate3d(${K}px, 0, 0)`})}return v.useEffect(()=>{b||window.requestAnimationFrame(()=>{document.body.style.pointerEvents="auto"})},[b]),v.createElement(Hl,{defaultOpen:S,onOpenChange:$=>{!u&&!$||($?A(!0):pt(!0),N($))},open:F},v.createElement(Yo.Provider,{value:{activeSnapPoint:da,snapPoints:s,setActiveSnapPoint:ur,drawerRef:z,overlayRef:X,onOpenChange:t,onPress:ga,onRelease:wa,onDrag:va,dismissible:u,shouldAnimate:Se,handleOnly:f,isOpen:F,isDragging:G,shouldFade:dr,closeDrawer:pt,onNestedDrag:xa,onNestedOpenChange:ya,onNestedRelease:Ca,keyboardIsOpen:de,modal:b,snapPointsOffset:ft,activeSnapPointIndex:qe,direction:C,shouldScaleBackground:a,setBackgroundColorOnScale:i,noBodyStyles:R,container:j,autoFocus:W}},n))}const rs=v.forwardRef(function({...e},t){const{overlayRef:n,snapPoints:r,onRelease:o,shouldFade:s,isOpen:a,modal:i,shouldAnimate:l}=xt(),c=Ko(t,n),u=r&&r.length>0;if(!i)return null;const f=v.useCallback(h=>o(h),[o]);return v.createElement(Gl,{onMouseUp:f,ref:c,"data-vaul-overlay":"","data-vaul-snap-points":a&&u?"true":"false","data-vaul-snap-points-overlay":a&&s?"true":"false","data-vaul-animate":l?.current?"true":"false",...e})});rs.displayName="Drawer.Overlay";const os=v.forwardRef(function({onPointerDownOutside:e,style:t,onOpenAutoFocus:n,...r},o){const{drawerRef:s,onPress:a,onRelease:i,onDrag:l,keyboardIsOpen:c,snapPointsOffset:u,activeSnapPointIndex:f,modal:h,isOpen:m,direction:w,snapPoints:g,container:b,handleOnly:y,shouldAnimate:x,autoFocus:R}=xt(),[C,S]=v.useState(!1),P=Ko(o,s),k=v.useRef(null),E=v.useRef(null),L=v.useRef(!1),I=g&&g.length>0;bc();const j=(T,D,F=0)=>{if(L.current)return!0;const N=Math.abs(T.y),_=Math.abs(T.x),A=_>N,G=["bottom","right"].includes(D)?1:-1;if(D==="left"||D==="right"){if(!(T.x*G<0)&&_>=0&&_<=F)return A}else if(!(T.y*G<0)&&N>=0&&N<=F)return!A;return L.current=!0,!0};v.useEffect(()=>{I&&window.requestAnimationFrame(()=>{S(!0)})},[]);function W(T){k.current=null,L.current=!1,i(T)}return v.createElement(Zl,{"data-vaul-drawer-direction":w,"data-vaul-drawer":"","data-vaul-delayed-snap-points":C?"true":"false","data-vaul-snap-points":m&&I?"true":"false","data-vaul-custom-container":b?"true":"false","data-vaul-animate":x?.current?"true":"false",...r,ref:P,style:u&&u.length>0?{"--snap-point-height":`${u[f??0]}px`,...t}:t,onPointerDown:T=>{y||(r.onPointerDown==null||r.onPointerDown.call(r,T),k.current={x:T.pageX,y:T.pageY},a(T))},onOpenAutoFocus:T=>{n?.(T),R||T.preventDefault()},onPointerDownOutside:T=>{if(e?.(T),!h||T.defaultPrevented){T.preventDefault();return}c.current&&(c.current=!1)},onFocusOutside:T=>{if(!h){T.preventDefault();return}},onPointerMove:T=>{if(E.current=T,y||(r.onPointerMove==null||r.onPointerMove.call(r,T),!k.current))return;const D=T.pageY-k.current.y,F=T.pageX-k.current.x,N=T.pointerType==="touch"?10:2;j({x:F,y:D},w,N)?l(T):(Math.abs(F)>N||Math.abs(D)>N)&&(k.current=null)},onPointerUp:T=>{r.onPointerUp==null||r.onPointerUp.call(r,T),k.current=null,L.current=!1,i(T)},onPointerOut:T=>{r.onPointerOut==null||r.onPointerOut.call(r,T),W(E.current)},onContextMenu:T=>{r.onContextMenu==null||r.onContextMenu.call(r,T),E.current&&W(E.current)}})});os.displayName="Drawer.Content";const xc=250,Cc=120,kc=v.forwardRef(function({preventCycle:e=!1,children:t,...n},r){const{closeDrawer:o,isDragging:s,snapPoints:a,activeSnapPoint:i,setActiveSnapPoint:l,dismissible:c,handleOnly:u,isOpen:f,onPress:h,onDrag:m}=xt(),w=v.useRef(null),g=v.useRef(!1);function b(){if(g.current){R();return}window.setTimeout(()=>{y()},Cc)}function y(){if(s||e||g.current){R();return}if(R(),!a||a.length===0){c||o();return}if(i===a[a.length-1]&&c){o();return}const S=a.findIndex(k=>k===i);if(S===-1)return;const P=a[S+1];l(P)}function x(){w.current=window.setTimeout(()=>{g.current=!0},xc)}function R(){w.current&&window.clearTimeout(w.current),g.current=!1}return v.createElement("div",{onClick:b,onPointerCancel:R,onPointerDown:C=>{u&&h(C),x()},onPointerMove:C=>{u&&m(C)},ref:r,"data-vaul-drawer-visible":f?"true":"false","data-vaul-handle":"","aria-hidden":"true",...n},v.createElement("span",{"data-vaul-handle-hitarea":"","aria-hidden":"true"},t))});kc.displayName="Drawer.Handle";function Rc(e){const t=xt(),{container:n=t.container,...r}=e;return v.createElement(Ul,{container:n,...r})}const De={Root:yc,Content:os,Overlay:rs,Trigger:Bl,Portal:Rc,Close:ql,Title:Yl,Description:Xl},Ec=({trigger:e,title:t,description:n,children:r,direction:o="right",size:s="320px"})=>{const a="!font-sans fixed",i={left:{className:`${a} top-0 bottom-0 left-0 shadow-[20px_0_20px_rgba(0,0,0,0.4)]`,style:{width:s}},right:{className:`${a} top-0 bottom-0 right-0 shadow-[-20px_0_20px_rgba(0,0,0,0.4)]`,style:{width:s}},top:{className:`${a} top-0 left-0 right-0 shadow-[0_20px_20px_rgba(0,0,0,0.4)]`,style:{height:s}},bottom:{className:`${a} bottom-0 left-0 right-0 shadow-[0_-20px_20px_rgba(0,0,0,0.4)]`,style:{height:s}}},{className:l,style:c}=i[o];return d.jsxs(De.Root,{direction:o,children:[d.jsx(De.Trigger,{asChild:!0,children:e}),d.jsxs(De.Portal,{children:[d.jsx(De.Overlay,{className:"fixed inset-0 bg-transparent"}),d.jsxs(De.Content,{className:`bg-drawer-bg z-10 flex flex-col p-4 outline-none ${l}`,style:c,children:[d.jsx(De.Close,{}),d.jsx(De.Title,{className:"text-text-primary mb-2 text-lg font-semibold",children:t}),d.jsx(De.Description,{className:"!text-text-secondary mb-2 !text-xs uppercase",children:n}),d.jsx("div",{className:"pt-2",children:r})]})]})]})},Sc=["top","right","bottom","left"],$e=Math.min,le=Math.max,Vt=Math.round,Nt=Math.floor,ke=e=>({x:e,y:e}),Pc={left:"right",right:"left",bottom:"top",top:"bottom"},Ac={start:"end",end:"start"};function Mn(e,t,n){return le(e,$e(t,n))}function Ae(e,t){return typeof e=="function"?e(t):e}function Le(e){return e.split("-")[0]}function ut(e){return e.split("-")[1]}function Zn(e){return e==="x"?"y":"x"}function Yn(e){return e==="y"?"height":"width"}const Lc=new Set(["top","bottom"]);function Ce(e){return Lc.has(Le(e))?"y":"x"}function Xn(e){return Zn(Ce(e))}function Tc(e,t,n){n===void 0&&(n=!1);const r=ut(e),o=Xn(e),s=Yn(o);let a=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(a=Ht(a)),[a,Ht(a)]}function jc(e){const t=Ht(e);return[On(e),t,On(t)]}function On(e){return e.replace(/start|end/g,t=>Ac[t])}const Wr=["left","right"],Fr=["right","left"],Mc=["top","bottom"],Oc=["bottom","top"];function Ic(e,t,n){switch(e){case"top":case"bottom":return n?t?Fr:Wr:t?Wr:Fr;case"left":case"right":return t?Mc:Oc;default:return[]}}function Dc(e,t,n,r){const o=ut(e);let s=Ic(Le(e),n==="start",r);return o&&(s=s.map(a=>a+"-"+o),t&&(s=s.concat(s.map(On)))),s}function Ht(e){return e.replace(/left|right|bottom|top/g,t=>Pc[t])}function Nc(e){return{top:0,right:0,bottom:0,left:0,...e}}function ss(e){return typeof e!="number"?Nc(e):{top:e,right:e,bottom:e,left:e}}function Bt(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 zr(e,t,n){let{reference:r,floating:o}=e;const s=Ce(t),a=Xn(t),i=Yn(a),l=Le(t),c=s==="y",u=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,h=r[i]/2-o[i]/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(ut(t)){case"start":m[a]-=h*(n&&c?-1:1);break;case"end":m[a]+=h*(n&&c?-1:1);break}return m}const _c=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:a}=n,i=s.filter(Boolean),l=await(a.isRTL==null?void 0:a.isRTL(t));let c=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:f}=zr(c,r,l),h=r,m={},w=0;for(let g=0;g<i.length;g++){const{name:b,fn:y}=i[g],{x,y:R,data:C,reset:S}=await y({x:u,y:f,initialPlacement:r,placement:h,strategy:o,middlewareData:m,rects:c,platform:a,elements:{reference:e,floating:t}});u=x??u,f=R??f,m={...m,[b]:{...m[b],...C}},S&&w<=50&&(w++,typeof S=="object"&&(S.placement&&(h=S.placement),S.rects&&(c=S.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:o}):S.rects),{x:u,y:f}=zr(c,h,l)),g=-1)}return{x:u,y:f,placement:h,strategy:o,middlewareData:m}};async function bt(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:a,elements:i,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:h=!1,padding:m=0}=Ae(t,e),w=ss(m),b=i[h?f==="floating"?"reference":"floating":f],y=Bt(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(b)))==null||n?b:b.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(i.floating)),boundary:c,rootBoundary:u,strategy:l})),x=f==="floating"?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,R=await(s.getOffsetParent==null?void 0:s.getOffsetParent(i.floating)),C=await(s.isElement==null?void 0:s.isElement(R))?await(s.getScale==null?void 0:s.getScale(R))||{x:1,y:1}:{x:1,y:1},S=Bt(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:x,offsetParent:R,strategy:l}):x);return{top:(y.top-S.top+w.top)/C.y,bottom:(S.bottom-y.bottom+w.bottom)/C.y,left:(y.left-S.left+w.left)/C.x,right:(S.right-y.right+w.right)/C.x}}const $c=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:a,elements:i,middlewareData:l}=t,{element:c,padding:u=0}=Ae(e,t)||{};if(c==null)return{};const f=ss(u),h={x:n,y:r},m=Xn(o),w=Yn(m),g=await a.getDimensions(c),b=m==="y",y=b?"top":"left",x=b?"bottom":"right",R=b?"clientHeight":"clientWidth",C=s.reference[w]+s.reference[m]-h[m]-s.floating[w],S=h[m]-s.reference[m],P=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c));let k=P?P[R]:0;(!k||!await(a.isElement==null?void 0:a.isElement(P)))&&(k=i.floating[R]||s.floating[w]);const E=C/2-S/2,L=k/2-g[w]/2-1,I=$e(f[y],L),j=$e(f[x],L),W=I,T=k-g[w]-j,D=k/2-g[w]/2+E,F=Mn(W,D,T),N=!l.arrow&&ut(o)!=null&&D!==F&&s.reference[w]/2-(D<W?I:j)-g[w]/2<0,_=N?D<W?D-W:D-T:0;return{[m]:h[m]+_,data:{[m]:F,centerOffset:D-F-_,...N&&{alignmentOffset:_}},reset:N}}}),Wc=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:s,rects:a,initialPlacement:i,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:f=!0,fallbackPlacements:h,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:g=!0,...b}=Ae(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const y=Le(o),x=Ce(i),R=Le(i)===i,C=await(l.isRTL==null?void 0:l.isRTL(c.floating)),S=h||(R||!g?[Ht(i)]:jc(i)),P=w!=="none";!h&&P&&S.push(...Dc(i,g,w,C));const k=[i,...S],E=await bt(t,b),L=[];let I=((r=s.flip)==null?void 0:r.overflows)||[];if(u&&L.push(E[y]),f){const D=Tc(o,a,C);L.push(E[D[0]],E[D[1]])}if(I=[...I,{placement:o,overflows:L}],!L.every(D=>D<=0)){var j,W;const D=(((j=s.flip)==null?void 0:j.index)||0)+1,F=k[D];if(F&&(!(f==="alignment"?x!==Ce(F):!1)||I.every(A=>Ce(A.placement)===x?A.overflows[0]>0:!0)))return{data:{index:D,overflows:I},reset:{placement:F}};let N=(W=I.filter(_=>_.overflows[0]<=0).sort((_,A)=>_.overflows[1]-A.overflows[1])[0])==null?void 0:W.placement;if(!N)switch(m){case"bestFit":{var T;const _=(T=I.filter(A=>{if(P){const G=Ce(A.placement);return G===x||G==="y"}return!0}).map(A=>[A.placement,A.overflows.filter(G=>G>0).reduce((G,ee)=>G+ee,0)]).sort((A,G)=>A[1]-G[1])[0])==null?void 0:T[0];_&&(N=_);break}case"initialPlacement":N=i;break}if(o!==N)return{reset:{placement:N}}}return{}}}};function Vr(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Hr(e){return Sc.some(t=>e[t]>=0)}const Fc=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Ae(e,t);switch(r){case"referenceHidden":{const s=await bt(t,{...o,elementContext:"reference"}),a=Vr(s,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:Hr(a)}}}case"escaped":{const s=await bt(t,{...o,altBoundary:!0}),a=Vr(s,n.floating);return{data:{escapedOffsets:a,escaped:Hr(a)}}}default:return{}}}}},as=new Set(["left","top"]);async function zc(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),a=Le(n),i=ut(n),l=Ce(n)==="y",c=as.has(a)?-1:1,u=s&&l?-1:1,f=Ae(t,e);let{mainAxis:h,crossAxis:m,alignmentAxis:w}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return i&&typeof w=="number"&&(m=i==="end"?w*-1:w),l?{x:m*u,y:h*c}:{x:h*c,y:m*u}}const Vc=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:a,middlewareData:i}=t,l=await zc(t,e);return a===((n=i.offset)==null?void 0:n.placement)&&(r=i.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:s+l.y,data:{...l,placement:a}}}}},Hc=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:a=!1,limiter:i={fn:b=>{let{x:y,y:x}=b;return{x:y,y:x}}},...l}=Ae(e,t),c={x:n,y:r},u=await bt(t,l),f=Ce(Le(o)),h=Zn(f);let m=c[h],w=c[f];if(s){const b=h==="y"?"top":"left",y=h==="y"?"bottom":"right",x=m+u[b],R=m-u[y];m=Mn(x,m,R)}if(a){const b=f==="y"?"top":"left",y=f==="y"?"bottom":"right",x=w+u[b],R=w-u[y];w=Mn(x,w,R)}const g=i.fn({...t,[h]:m,[f]:w});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[h]:s,[f]:a}}}}}},Bc=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:a}=t,{offset:i=0,mainAxis:l=!0,crossAxis:c=!0}=Ae(e,t),u={x:n,y:r},f=Ce(o),h=Zn(f);let m=u[h],w=u[f];const g=Ae(i,t),b=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(l){const R=h==="y"?"height":"width",C=s.reference[h]-s.floating[R]+b.mainAxis,S=s.reference[h]+s.reference[R]-b.mainAxis;m<C?m=C:m>S&&(m=S)}if(c){var y,x;const R=h==="y"?"width":"height",C=as.has(Le(o)),S=s.reference[f]-s.floating[R]+(C&&((y=a.offset)==null?void 0:y[f])||0)+(C?0:b.crossAxis),P=s.reference[f]+s.reference[R]+(C?0:((x=a.offset)==null?void 0:x[f])||0)-(C?b.crossAxis:0);w<S?w=S:w>P&&(w=P)}return{[h]:m,[f]:w}}}},Uc=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:a,elements:i}=t,{apply:l=()=>{},...c}=Ae(e,t),u=await bt(t,c),f=Le(o),h=ut(o),m=Ce(o)==="y",{width:w,height:g}=s.floating;let b,y;f==="top"||f==="bottom"?(b=f,y=h===(await(a.isRTL==null?void 0:a.isRTL(i.floating))?"start":"end")?"left":"right"):(y=f,b=h==="end"?"top":"bottom");const x=g-u.top-u.bottom,R=w-u.left-u.right,C=$e(g-u[b],x),S=$e(w-u[y],R),P=!t.middlewareData.shift;let k=C,E=S;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(E=R),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(k=x),P&&!h){const I=le(u.left,0),j=le(u.right,0),W=le(u.top,0),T=le(u.bottom,0);m?E=w-2*(I!==0||j!==0?I+j:le(u.left,u.right)):k=g-2*(W!==0||T!==0?W+T:le(u.top,u.bottom))}await l({...t,availableWidth:E,availableHeight:k});const L=await a.getDimensions(i.floating);return w!==L.width||g!==L.height?{reset:{rects:!0}}:{}}}};function Qt(){return typeof window<"u"}function dt(e){return is(e)?(e.nodeName||"").toLowerCase():"#document"}function ce(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ee(e){var t;return(t=(is(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function is(e){return Qt()?e instanceof Node||e instanceof ce(e).Node:!1}function he(e){return Qt()?e instanceof Element||e instanceof ce(e).Element:!1}function Re(e){return Qt()?e instanceof HTMLElement||e instanceof ce(e).HTMLElement:!1}function Br(e){return!Qt()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ce(e).ShadowRoot}const Gc=new Set(["inline","contents"]);function Ct(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=me(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!Gc.has(o)}const Zc=new Set(["table","td","th"]);function Yc(e){return Zc.has(dt(e))}const Xc=[":popover-open",":modal"];function Jt(e){return Xc.some(t=>{try{return e.matches(t)}catch{return!1}})}const qc=["transform","translate","scale","rotate","perspective"],Kc=["transform","translate","scale","rotate","perspective","filter"],Qc=["paint","layout","strict","content"];function qn(e){const t=Kn(),n=he(e)?me(e):e;return qc.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)||Kc.some(r=>(n.willChange||"").includes(r))||Qc.some(r=>(n.contain||"").includes(r))}function Jc(e){let t=We(e);for(;Re(t)&&!st(t);){if(qn(t))return t;if(Jt(t))return null;t=We(t)}return null}function Kn(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const eu=new Set(["html","body","#document"]);function st(e){return eu.has(dt(e))}function me(e){return ce(e).getComputedStyle(e)}function en(e){return he(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function We(e){if(dt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Br(e)&&e.host||Ee(e);return Br(t)?t.host:t}function ls(e){const t=We(e);return st(t)?e.ownerDocument?e.ownerDocument.body:e.body:Re(t)&&Ct(t)?t:ls(t)}function wt(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=ls(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),a=ce(o);if(s){const i=In(a);return t.concat(a,a.visualViewport||[],Ct(o)?o:[],i&&n?wt(i):[])}return t.concat(o,wt(o,[],n))}function In(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function cs(e){const t=me(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Re(e),s=o?e.offsetWidth:n,a=o?e.offsetHeight:r,i=Vt(n)!==s||Vt(r)!==a;return i&&(n=s,r=a),{width:n,height:r,$:i}}function Qn(e){return he(e)?e:e.contextElement}function nt(e){const t=Qn(e);if(!Re(t))return ke(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=cs(t);let a=(s?Vt(n.width):n.width)/r,i=(s?Vt(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!i||!Number.isFinite(i))&&(i=1),{x:a,y:i}}const tu=ke(0);function us(e){const t=ce(e);return!Kn()||!t.visualViewport?tu:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function nu(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ce(e)?!1:t}function Ye(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=Qn(e);let a=ke(1);t&&(r?he(r)&&(a=nt(r)):a=nt(e));const i=nu(s,n,r)?us(s):ke(0);let l=(o.left+i.x)/a.x,c=(o.top+i.y)/a.y,u=o.width/a.x,f=o.height/a.y;if(s){const h=ce(s),m=r&&he(r)?ce(r):r;let w=h,g=In(w);for(;g&&r&&m!==w;){const b=nt(g),y=g.getBoundingClientRect(),x=me(g),R=y.left+(g.clientLeft+parseFloat(x.paddingLeft))*b.x,C=y.top+(g.clientTop+parseFloat(x.paddingTop))*b.y;l*=b.x,c*=b.y,u*=b.x,f*=b.y,l+=R,c+=C,w=ce(g),g=In(w)}}return Bt({width:u,height:f,x:l,y:c})}function tn(e,t){const n=en(e).scrollLeft;return t?t.left+n:Ye(Ee(e)).left+n}function ds(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-tn(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function ru(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",a=Ee(r),i=t?Jt(t.floating):!1;if(r===a||i&&s)return n;let l={scrollLeft:0,scrollTop:0},c=ke(1);const u=ke(0),f=Re(r);if((f||!f&&!s)&&((dt(r)!=="body"||Ct(a))&&(l=en(r)),Re(r))){const m=Ye(r);c=nt(r),u.x=m.x+r.clientLeft,u.y=m.y+r.clientTop}const h=a&&!f&&!s?ds(a,l):ke(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 ou(e){return Array.from(e.getClientRects())}function su(e){const t=Ee(e),n=en(e),r=e.ownerDocument.body,o=le(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=le(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+tn(e);const i=-n.scrollTop;return me(r).direction==="rtl"&&(a+=le(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:a,y:i}}const Ur=25;function au(e,t){const n=ce(e),r=Ee(e),o=n.visualViewport;let s=r.clientWidth,a=r.clientHeight,i=0,l=0;if(o){s=o.width,a=o.height;const u=Kn();(!u||u&&t==="fixed")&&(i=o.offsetLeft,l=o.offsetTop)}const c=tn(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,w=Math.abs(r.clientWidth-f.clientWidth-m);w<=Ur&&(s-=w)}else c<=Ur&&(s+=c);return{width:s,height:a,x:i,y:l}}const iu=new Set(["absolute","fixed"]);function lu(e,t){const n=Ye(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=Re(e)?nt(e):ke(1),a=e.clientWidth*s.x,i=e.clientHeight*s.y,l=o*s.x,c=r*s.y;return{width:a,height:i,x:l,y:c}}function Gr(e,t,n){let r;if(t==="viewport")r=au(e,n);else if(t==="document")r=su(Ee(e));else if(he(t))r=lu(t,n);else{const o=us(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Bt(r)}function fs(e,t){const n=We(e);return n===t||!he(n)||st(n)?!1:me(n).position==="fixed"||fs(n,t)}function cu(e,t){const n=t.get(e);if(n)return n;let r=wt(e,[],!1).filter(i=>he(i)&&dt(i)!=="body"),o=null;const s=me(e).position==="fixed";let a=s?We(e):e;for(;he(a)&&!st(a);){const i=me(a),l=qn(a);!l&&i.position==="fixed"&&(o=null),(s?!l&&!o:!l&&i.position==="static"&&!!o&&iu.has(o.position)||Ct(a)&&!l&&fs(e,a))?r=r.filter(u=>u!==a):o=i,a=We(a)}return t.set(e,r),r}function uu(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[...n==="clippingAncestors"?Jt(t)?[]:cu(t,this._c):[].concat(n),r],i=a[0],l=a.reduce((c,u)=>{const f=Gr(t,u,o);return c.top=le(f.top,c.top),c.right=$e(f.right,c.right),c.bottom=$e(f.bottom,c.bottom),c.left=le(f.left,c.left),c},Gr(t,i,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function du(e){const{width:t,height:n}=cs(e);return{width:t,height:n}}function fu(e,t,n){const r=Re(t),o=Ee(t),s=n==="fixed",a=Ye(e,!0,s,t);let i={scrollLeft:0,scrollTop:0};const l=ke(0);function c(){l.x=tn(o)}if(r||!r&&!s)if((dt(t)!=="body"||Ct(o))&&(i=en(t)),r){const m=Ye(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?ds(o,i):ke(0),f=a.left+i.scrollLeft-l.x-u.x,h=a.top+i.scrollTop-l.y-u.y;return{x:f,y:h,width:a.width,height:a.height}}function kn(e){return me(e).position==="static"}function Zr(e,t){if(!Re(e)||me(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Ee(e)===n&&(n=n.ownerDocument.body),n}function ps(e,t){const n=ce(e);if(Jt(e))return n;if(!Re(e)){let o=We(e);for(;o&&!st(o);){if(he(o)&&!kn(o))return o;o=We(o)}return n}let r=Zr(e,t);for(;r&&Yc(r)&&kn(r);)r=Zr(r,t);return r&&st(r)&&kn(r)&&!qn(r)?n:r||Jc(e)||n}const pu=async function(e){const t=this.getOffsetParent||ps,n=this.getDimensions,r=await n(e.floating);return{reference:fu(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function hu(e){return me(e).direction==="rtl"}const mu={convertOffsetParentRelativeRectToViewportRelativeRect:ru,getDocumentElement:Ee,getClippingRect:uu,getOffsetParent:ps,getElementRects:pu,getClientRects:ou,getDimensions:du,getScale:nt,isElement:he,isRTL:hu};function hs(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function gu(e,t){let n=null,r;const o=Ee(e);function s(){var i;clearTimeout(r),(i=n)==null||i.disconnect(),n=null}function a(i,l){i===void 0&&(i=!1),l===void 0&&(l=1),s();const c=e.getBoundingClientRect(),{left:u,top:f,width:h,height:m}=c;if(i||t(),!h||!m)return;const w=Nt(f),g=Nt(o.clientWidth-(u+h)),b=Nt(o.clientHeight-(f+m)),y=Nt(u),R={rootMargin:-w+"px "+-g+"px "+-b+"px "+-y+"px",threshold:le(0,$e(1,l))||1};let C=!0;function S(P){const k=P[0].intersectionRatio;if(k!==l){if(!C)return a();k?a(!1,k):r=setTimeout(()=>{a(!1,1e-7)},1e3)}k===1&&!hs(c,e.getBoundingClientRect())&&a(),C=!1}try{n=new IntersectionObserver(S,{...R,root:o.ownerDocument})}catch{n=new IntersectionObserver(S,R)}n.observe(e)}return a(!0),s}function vu(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=Qn(e),u=o||s?[...c?wt(c):[],...wt(t)]:[];u.forEach(y=>{o&&y.addEventListener("scroll",n,{passive:!0}),s&&y.addEventListener("resize",n)});const f=c&&i?gu(c,n):null;let h=-1,m=null;a&&(m=new ResizeObserver(y=>{let[x]=y;x&&x.target===c&&m&&(m.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var R;(R=m)==null||R.observe(t)})),n()}),c&&!l&&m.observe(c),m.observe(t));let w,g=l?Ye(e):null;l&&b();function b(){const y=Ye(e);g&&!hs(g,y)&&n(),g=y,w=requestAnimationFrame(b)}return n(),()=>{var y;u.forEach(x=>{o&&x.removeEventListener("scroll",n),s&&x.removeEventListener("resize",n)}),f?.(),(y=m)==null||y.disconnect(),m=null,l&&cancelAnimationFrame(w)}}const bu=Vc,wu=Hc,yu=Wc,xu=Uc,Cu=Fc,Yr=$c,ku=Bc,Ru=(e,t,n)=>{const r=new Map,o={platform:mu,...n},s={...o.platform,_c:r};return _c(e,t,{...o,platform:s})};var Eu=typeof document<"u",Su=function(){},Wt=Eu?v.useLayoutEffect:Su;function Ut(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(!Ut(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)&&!Ut(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function ms(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Xr(e,t){const n=ms(e);return Math.round(t*n)/n}function Rn(e){const t=p.useRef(e);return Wt(()=>{t.current=e}),t}function Pu(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:a}={},transform:i=!0,whileElementsMounted:l,open:c}=e,[u,f]=p.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,m]=p.useState(r);Ut(h,r)||m(r);const[w,g]=p.useState(null),[b,y]=p.useState(null),x=p.useCallback(A=>{A!==P.current&&(P.current=A,g(A))},[]),R=p.useCallback(A=>{A!==k.current&&(k.current=A,y(A))},[]),C=s||w,S=a||b,P=p.useRef(null),k=p.useRef(null),E=p.useRef(u),L=l!=null,I=Rn(l),j=Rn(o),W=Rn(c),T=p.useCallback(()=>{if(!P.current||!k.current)return;const A={placement:t,strategy:n,middleware:h};j.current&&(A.platform=j.current),Ru(P.current,k.current,A).then(G=>{const ee={...G,isPositioned:W.current!==!1};D.current&&!Ut(E.current,ee)&&(E.current=ee,Jr.flushSync(()=>{f(ee)}))})},[h,t,n,j,W]);Wt(()=>{c===!1&&E.current.isPositioned&&(E.current.isPositioned=!1,f(A=>({...A,isPositioned:!1})))},[c]);const D=p.useRef(!1);Wt(()=>(D.current=!0,()=>{D.current=!1}),[]),Wt(()=>{if(C&&(P.current=C),S&&(k.current=S),C&&S){if(I.current)return I.current(C,S,T);T()}},[C,S,T,I,L]);const F=p.useMemo(()=>({reference:P,floating:k,setReference:x,setFloating:R}),[x,R]),N=p.useMemo(()=>({reference:C,floating:S}),[C,S]),_=p.useMemo(()=>{const A={position:n,left:0,top:0};if(!N.floating)return A;const G=Xr(N.floating,u.x),ee=Xr(N.floating,u.y);return i?{...A,transform:"translate("+G+"px, "+ee+"px)",...ms(N.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:G,top:ee}},[n,i,N.floating,u.x,u.y]);return p.useMemo(()=>({...u,update:T,refs:F,elements:N,floatingStyles:_}),[u,T,F,N,_])}const Au=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?Yr({element:r.current,padding:o}).fn(n):{}:r?Yr({element:r,padding:o}).fn(n):{}}}},Lu=(e,t)=>({...bu(e),options:[e,t]}),Tu=(e,t)=>({...wu(e),options:[e,t]}),ju=(e,t)=>({...ku(e),options:[e,t]}),Mu=(e,t)=>({...yu(e),options:[e,t]}),Ou=(e,t)=>({...xu(e),options:[e,t]}),Iu=(e,t)=>({...Cu(e),options:[e,t]}),Du=(e,t)=>({...Au(e),options:[e,t]});var Nu="Arrow",gs=p.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return d.jsx(se.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:d.jsx("polygon",{points:"0,0 30,0 15,10"})})});gs.displayName=Nu;var _u=gs;function $u(e){const[t,n]=p.useState(void 0);return _e(()=>{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 a,i;if("borderBoxSize"in s){const l=s.borderBoxSize,c=Array.isArray(l)?l[0]:l;a=c.inlineSize,i=c.blockSize}else a=e.offsetWidth,i=e.offsetHeight;n({width:a,height:i})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Jn="Popper",[vs,nn]=Zt(Jn),[Wu,bs]=vs(Jn),ws=e=>{const{__scopePopper:t,children:n}=e,[r,o]=p.useState(null);return d.jsx(Wu,{scope:t,anchor:r,onAnchorChange:o,children:n})};ws.displayName=Jn;var ys="PopperAnchor",xs=p.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=bs(ys,n),a=p.useRef(null),i=ue(t,a),l=p.useRef(null);return p.useEffect(()=>{const c=l.current;l.current=r?.current||a.current,c!==l.current&&s.onAnchorChange(l.current)}),r?null:d.jsx(se.div,{...o,ref:i})});xs.displayName=ys;var er="PopperContent",[Fu,zu]=vs(er),Cs=p.forwardRef((e,t)=>{const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:a=0,arrowPadding:i=0,avoidCollisions:l=!0,collisionBoundary:c=[],collisionPadding:u=0,sticky:f="partial",hideWhenDetached:h=!1,updatePositionStrategy:m="optimized",onPlaced:w,...g}=e,b=bs(er,n),[y,x]=p.useState(null),R=ue(t,B=>x(B)),[C,S]=p.useState(null),P=$u(C),k=P?.width??0,E=P?.height??0,L=r+(s!=="center"?"-"+s:""),I=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},j=Array.isArray(c)?c:[c],W=j.length>0,T={padding:I,boundary:j.filter(Hu),altBoundary:W},{refs:D,floatingStyles:F,placement:N,isPositioned:_,middlewareData:A}=Pu({strategy:"fixed",placement:L,whileElementsMounted:(...B)=>vu(...B,{animationFrame:m==="always"}),elements:{reference:b.anchor},middleware:[Lu({mainAxis:o+E,alignmentAxis:a}),l&&Tu({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?ju():void 0,...T}),l&&Mu({...T}),Ou({...T,apply:({elements:B,rects:fe,availableWidth:be,availableHeight:we})=>{const{width:de,height:Se}=fe.reference,He=B.floating.style;He.setProperty("--radix-popper-available-width",`${be}px`),He.setProperty("--radix-popper-available-height",`${we}px`),He.setProperty("--radix-popper-anchor-width",`${de}px`),He.setProperty("--radix-popper-anchor-height",`${Se}px`)}}),C&&Du({element:C,padding:i}),Bu({arrowWidth:k,arrowHeight:E}),h&&Iu({strategy:"referenceHidden",...T})]}),[G,ee]=Es(N),Ve=ot(w);_e(()=>{_&&Ve?.()},[_,Ve]);const Te=A.arrow?.x,X=A.arrow?.y,Q=A.arrow?.centerOffset!==0,[ve,je]=p.useState();return _e(()=>{y&&je(window.getComputedStyle(y).zIndex)},[y]),d.jsx("div",{ref:D.setFloating,"data-radix-popper-content-wrapper":"",style:{...F,transform:_?F.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ve,"--radix-popper-transform-origin":[A.transformOrigin?.x,A.transformOrigin?.y].join(" "),...A.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:d.jsx(Fu,{scope:n,placedSide:G,onArrowChange:S,arrowX:Te,arrowY:X,shouldHideArrow:Q,children:d.jsx(se.div,{"data-side":G,"data-align":ee,...g,ref:R,style:{...g.style,animation:_?void 0:"none"}})})})});Cs.displayName=er;var ks="PopperArrow",Vu={top:"bottom",right:"left",bottom:"top",left:"right"},Rs=p.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=zu(ks,r),a=Vu[s.placedSide];return d.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[a]: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:d.jsx(_u,{...o,ref:n,style:{...o.style,display:"block"}})})});Rs.displayName=ks;function Hu(e){return e!==null}var Bu=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,a=o.arrow?.centerOffset!==0,i=a?0:e.arrowWidth,l=a?0:e.arrowHeight,[c,u]=Es(n),f={start:"0%",center:"50%",end:"100%"}[u],h=(o.arrow?.x??0)+i/2,m=(o.arrow?.y??0)+l/2;let w="",g="";return c==="bottom"?(w=a?f:`${h}px`,g=`${-l}px`):c==="top"?(w=a?f:`${h}px`,g=`${r.floating.height+l}px`):c==="right"?(w=`${-l}px`,g=a?f:`${m}px`):c==="left"&&(w=`${r.floating.width+l}px`,g=a?f:`${m}px`),{data:{x:w,y:g}}}});function Es(e){const[t,n="center"]=e.split("-");return[t,n]}var Ss=ws,tr=xs,Ps=Cs,As=Rs,rn="Popover",[Ls,Kf]=Zt(rn,[nn]),kt=nn(),[Uu,ze]=Ls(rn),Ts=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:s,modal:a=!1}=e,i=kt(t),l=p.useRef(null),[c,u]=p.useState(!1),[f,h]=Wn({prop:r,defaultProp:o??!1,onChange:s,caller:rn});return d.jsx(Ss,{...i,children:d.jsx(Uu,{scope:t,contentId:vt(),triggerRef:l,open:f,onOpenChange:h,onOpenToggle:p.useCallback(()=>h(m=>!m),[h]),hasCustomAnchor:c,onCustomAnchorAdd:p.useCallback(()=>u(!0),[]),onCustomAnchorRemove:p.useCallback(()=>u(!1),[]),modal:a,children:n})})};Ts.displayName=rn;var js="PopoverAnchor",Gu=p.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=ze(js,n),s=kt(n),{onCustomAnchorAdd:a,onCustomAnchorRemove:i}=o;return p.useEffect(()=>(a(),()=>i()),[a,i]),d.jsx(tr,{...s,...r,ref:t})});Gu.displayName=js;var Ms="PopoverTrigger",Os=p.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=ze(Ms,n),s=kt(n),a=ue(t,o.triggerRef),i=d.jsx(se.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":$s(o.open),...r,ref:a,onClick:re(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?i:d.jsx(tr,{asChild:!0,...s,children:i})});Os.displayName=Ms;var nr="PopoverPortal",[Zu,Yu]=Ls(nr,{forceMount:void 0}),Is=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,s=ze(nr,t);return d.jsx(Zu,{scope:t,forceMount:n,children:d.jsx(Fe,{present:n||s.open,children:d.jsx(Xt,{asChild:!0,container:o,children:r})})})};Is.displayName=nr;var at="PopoverContent",Ds=p.forwardRef((e,t)=>{const n=Yu(at,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,s=ze(at,e.__scopePopover);return d.jsx(Fe,{present:r||s.open,children:s.modal?d.jsx(qu,{...o,ref:t}):d.jsx(Ku,{...o,ref:t})})});Ds.displayName=at;var Xu=Fn("PopoverContent.RemoveScroll"),qu=p.forwardRef((e,t)=>{const n=ze(at,e.__scopePopover),r=p.useRef(null),o=ue(t,r),s=p.useRef(!1);return p.useEffect(()=>{const a=r.current;if(a)return jo(a)},[]),d.jsx(Vn,{as:Xu,allowPinchZoom:!0,children:d.jsx(Ns,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:re(e.onCloseAutoFocus,a=>{a.preventDefault(),s.current||n.triggerRef.current?.focus()}),onPointerDownOutside:re(e.onPointerDownOutside,a=>{const i=a.detail.originalEvent,l=i.button===0&&i.ctrlKey===!0,c=i.button===2||l;s.current=c},{checkForDefaultPrevented:!1}),onFocusOutside:re(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1})})})}),Ku=p.forwardRef((e,t)=>{const n=ze(at,e.__scopePopover),r=p.useRef(!1),o=p.useRef(!1);return d.jsx(Ns,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{e.onCloseAutoFocus?.(s),s.defaultPrevented||(r.current||n.triggerRef.current?.focus(),s.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:s=>{e.onInteractOutside?.(s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const a=s.target;n.triggerRef.current?.contains(a)&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&o.current&&s.preventDefault()}})}),Ns=p.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:s,disableOutsidePointerEvents:a,onEscapeKeyDown:i,onPointerDownOutside:l,onFocusOutside:c,onInteractOutside:u,...f}=e,h=ze(at,n),m=kt(n);return Co(),d.jsx(zn,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:s,children:d.jsx(Yt,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:u,onEscapeKeyDown:i,onPointerDownOutside:l,onFocusOutside:c,onDismiss:()=>h.onOpenChange(!1),children:d.jsx(Ps,{"data-state":$s(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)"}})})})}),_s="PopoverClose",Qu=p.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=ze(_s,n);return d.jsx(se.button,{type:"button",...r,ref:t,onClick:re(e.onClick,()=>o.onOpenChange(!1))})});Qu.displayName=_s;var Ju="PopoverArrow",ed=p.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=kt(n);return d.jsx(As,{...o,...r,ref:t})});ed.displayName=Ju;function $s(e){return e?"open":"closed"}var td=Ts,nd=Os,rd=Is,od=Ds;function sd({...e}){return d.jsx(td,{"data-slot":"popover",...e})}function ad({...e}){return d.jsx(nd,{asChild:!0,"data-slot":"popover-trigger",...e})}function id({className:e,align:t="center",sideOffset:n=4,width:r=320,...o}){return d.jsx(rd,{children:d.jsx(od,{"data-slot":"popover-content",align:t,sideOffset:n,className:oe("bg-popover-bg text-popover-text 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 z-50 h-fit","max-h-[var(--radix-popover-content-max-height)] origin-(--radix-popover-content-transform-origin) rounded-lg border-none p-4 shadow-md outline-hidden",e),style:{width:`${r}px`},...o})})}function ld({className:e,...t}){return d.jsx("div",{"data-slot":"skeleton",className:oe("bg-accent animate-pulse rounded-md",e),...t})}function on(...e){return e.filter(Boolean).join(" ")}function rt(e,t,n){return Math.min(n,Math.max(t,e))}function rr(e,t,n){const r=Math.round((e-n)/t),o=n+r*t;return Number(o.toFixed(10))}function Dn(e,t,n){return(e-t)*100/(n-t)}function cd(e,t,n){return t+e/100*(n-t)}function ud(e,t){let n=0,r=1/0;for(let o=0;o<e.length;o+=1){const s=Math.abs(e[o]-t);s<r&&(r=s,n=o)}return n}function dd(e){const{value:t,defaultValue:n,onChange:r}=e,[o,s]=v.useState(n),a=Array.isArray(t),i=a?t:o,l=v.useCallback(c=>{const u=typeof c=="function"?c(i):c;a||s(u),r?.(u)},[a,r,i]);return[i,l]}const sn=v.createContext(null),Ws=v.forwardRef(({asChild:e,className:t,value:n,defaultValue:r,onValueChange:o,onValueCommit:s,min:a=0,max:i=100,step:l=1,minStepsBetweenThumbs:c=0,orientation:u="horizontal",dir:f="ltr",disabled:h=!1,name:m,form:w,required:g,children:b,...y},x)=>{const[R,C]=dd({value:n,defaultValue:r&&r.length>0?r:[a],onChange:o});v.useEffect(()=>{C(D=>qr(D,{min:a,max:i,step:l,minStepsBetweenThumbs:c}))},[a,i,l,c,C]);const S=v.useRef(null),P=v.useRef([]),[k,E]=v.useState(null),L=v.useCallback((D,F)=>{const N=qr(D,{min:a,max:i,step:l,minStepsBetweenThumbs:c});C(N),F?.commit&&s?.(N)},[i,a,c,s,C,l]),I=v.useCallback((D,F,N)=>{const _=[...R];_[D]=F,L(_,N)},[L,R]),j={values:R,setValues:L,min:a,max:i,step:l,minStepsBetweenThumbs:c,orientation:u,dir:f,disabled:h,trackRef:S,thumbsRef:P,activeIndex:k,setActiveIndex:E,updateAtIndex:I},W=e?Xe:"div",T=x;return d.jsx(sn.Provider,{value:j,children:d.jsxs(W,{ref:T,role:"presentation","data-orientation":u,"data-disabled":h?"":void 0,className:on("relative touch-none select-none",u==="horizontal"?"h-6 w-full":"h-full w-6",t),...y,children:[m&&j.values.map((D,F)=>d.jsx("input",{type:"hidden",name:j.values.length>1?`${m}[]`:m,value:String(D),form:w,required:g&&F===0,"aria-hidden":"true"},F)),b]})})});Ws.displayName="Slider";function qr(e,t){const{min:n,max:r,step:o,minStepsBetweenThumbs:s}=t,a=e.map(l=>rt(rr(l,o,n),n,r));if(a.sort((l,c)=>l-c),a.length<=1||s<=0)return a;const i=o*s;for(let l=1;l<a.length;l+=1)a[l]-a[l-1]<i&&(a[l]=rt(a[l-1]+i,n,r));return a}const Fs=v.forwardRef(({asChild:e,className:t,onPointerDown:n,...r},o)=>{const s=v.useContext(sn);if(!s)throw new Error("SliderTrack must be used within Slider");const a=e?Xe:"div",i=c=>{s.trackRef.current=c,typeof o=="function"?o(c):o&&"current"in o&&(o.current=c)},l=v.useCallback(c=>{if(n?.(c),c.defaultPrevented||s.disabled)return;const u=s.trackRef.current;if(!u)return;u.setPointerCapture?.(c.pointerId),c.preventDefault();const f=u.getBoundingClientRect(),h=Hs(c.clientX,c.clientY,f,s),m=ud(s.values,h);s.setActiveIndex(m),s.updateAtIndex(m,h),Us(m,s)},[s,n]);return d.jsx(a,{ref:i,"data-orientation":s.orientation,className:on("bg-secondary relative grow rounded-full",s.orientation==="horizontal"?"h-2":"w-2",t),style:{touchAction:"none"},onPointerDown:l,...r})});Fs.displayName="SliderTrack";const zs=v.forwardRef(({asChild:e,className:t,style:n,...r},o)=>{const s=v.useContext(sn);if(!s)throw new Error("SliderRange must be used within Slider");const a=e?Xe:"div",i=Dn(s.values[0],s.min,s.max),l=Dn(s.values[s.values.length-1],s.min,s.max),c=s.orientation==="horizontal"?{left:`${i}%`,width:`${l-i}%`}:{bottom:`${i}%`,height:`${l-i}%`};return d.jsx(a,{ref:o,"data-orientation":s.orientation,className:on("bg-primary absolute rounded-full",s.orientation==="horizontal"?"h-2":"w-2",t),style:{...c,...n},...r})});zs.displayName="SliderRange";const Vs=v.forwardRef(({asChild:e,className:t,index:n,onKeyDown:r,onPointerDown:o,...s},a)=>{const i=v.useContext(sn);if(!i)throw new Error("SliderThumb must be used within Slider");const[l]=v.useState(()=>{const x=typeof n=="number"?n:i.thumbsRef.current.length;return i.thumbsRef.current[x]||(i.thumbsRef.current[x]=v.createRef()),x}),c=i.values[l]??i.values[i.values.length-1],u=Dn(c,i.min,i.max),f=e?Xe:"button",h=x=>{i.thumbsRef.current[l].current=x,typeof a=="function"?a(x):a&&"current"in a&&(a.current=x)},w=(i.activeIndex===null||i.activeIndex===l)&&!i.disabled?0:-1,g=v.useCallback(x=>{if(r?.(x),x.defaultPrevented||i.disabled)return;const R=Math.max(i.step*10,i.step),C=L=>L==="inc"?1:-1,S=L=>fd(l,L,i),P=x.key;if(P==="Home"){x.preventDefault(),i.updateAtIndex(l,i.min,{commit:!0});return}if(P==="End"){x.preventDefault(),i.updateAtIndex(l,i.max,{commit:!0});return}const k=i.orientation==="horizontal",E=i.dir==="rtl";if(P==="ArrowRight"&&k){x.preventDefault(),S(i.step*(E?-1:1));return}if(P==="ArrowLeft"&&k){x.preventDefault(),S(i.step*(E?1:-1));return}if(P==="ArrowUp"&&!k){x.preventDefault(),S(i.step);return}if(P==="ArrowDown"&&!k){x.preventDefault(),S(-i.step);return}if(P==="PageUp"){x.preventDefault(),S(C("inc")*R);return}if(P==="PageDown"){x.preventDefault(),S(C("dec")*R);return}},[i,l,r]),b=v.useCallback(x=>{if(o?.(x),x.defaultPrevented||i.disabled)return;const R=i.trackRef.current,C=i.thumbsRef.current[l].current;!R||!C||(C.setPointerCapture?.(x.pointerId),x.preventDefault(),i.setActiveIndex(l),Us(l,i))},[i,l,o]),y=i.orientation==="horizontal"?{left:`${u}%`,transform:"translate(-50%, -50%)"}:{bottom:`${u}%`,transform:"translate(-50%, 50%)"};return d.jsx(f,{ref:h,role:"slider",tabIndex:w,"aria-valuemin":i.min,"aria-valuemax":i.max,"aria-valuenow":c,"aria-orientation":i.orientation,"aria-disabled":i.disabled||void 0,"data-orientation":i.orientation,"data-disabled":i.disabled?"":void 0,className:on("bg-background absolute grid place-items-center rounded-full shadow","border-input border outline-none","focus-visible:ring-ring focus-visible:ring-2 focus-visible:ring-offset-2","h-5 w-5",t),style:{...y,top:i.orientation==="horizontal"?"50%":"auto",left:i.orientation==="horizontal"?void 0:"50%",touchAction:"none"},onKeyDown:g,onPointerDown:b,...s})});Vs.displayName="SliderThumb";function Hs(e,t,n,r){let o;if(r.orientation==="horizontal"){const l=rt(e-n.left,0,n.width)/n.width*100;o=r.dir==="rtl"?100-l:l}else o=100-rt(t-n.top,0,n.height)/n.height*100;const s=cd(o,r.min,r.max),a=rr(s,r.step,r.min);return rt(a,r.min,r.max)}function Bs(e,t,n){const r=n.step*n.minStepsBetweenThumbs,o=e>0?n.values[e-1]:n.min,s=e<n.values.length-1?n.values[e+1]:n.max,a=o+(e>0?r:0),i=s-(e<n.values.length-1?r:0);return rt(t,a,i)}function fd(e,t,n){const r=n.values[e],o=Bs(e,rr(r+t,n.step,n.min),n);n.updateAtIndex(e,o,{commit:!0})}function Us(e,t){const n=t.trackRef.current;if(!n)return;const r=()=>n.getBoundingClientRect(),o=a=>{if(t.disabled)return;const i=Hs(a.clientX,a.clientY,r(),t),l=Bs(e,i,t);t.updateAtIndex(e,l)},s=()=>{t.setActiveIndex(null),t.setValues([...t.values],{commit:!0}),window.removeEventListener("pointermove",o,!0),window.removeEventListener("pointerup",s,!0)};window.addEventListener("pointermove",o,!0),window.addEventListener("pointerup",s,!0)}const pd=({className:e,defaultValue:t,value:n,min:r=0,max:o=100,step:s=1,minStepsBetweenThumbs:a=1,onValueChange:i,orientation:l="horizontal",onValueCommit:c,disabled:u,name:f,...h})=>{const m=n||t||[r];return d.jsxs(Ws,{"data-slot":"slider",defaultValue:t,value:n,min:r,max:o,step:s,minStepsBetweenThumbs:a,onValueChange:i,orientation:l,onValueCommit:c,disabled:u,name:f,className:oe("relative flex w-full touch-none items-center select-none data-[disabled]:opacity-50 data-[orientation=vertical]:h-full data-[orientation=vertical]:min-h-44 data-[orientation=vertical]:w-auto data-[orientation=vertical]:flex-col",e),...h,children:[d.jsx(Fs,{"data-slot":"slider-track",className:oe("bg-slider-track relative grow overflow-hidden rounded-full data-[orientation=horizontal]:h-1.5 data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-1.5"),children:d.jsx(zs,{"data-slot":"slider-range",className:oe("bg-slider-range absolute data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full")})}),Array.from({length:m.length},(w,g)=>d.jsx(Vs,{"data-slot":"slider-thumb",className:"border-slider-thumb-border bg-slider-thumb-bg ring-slider-thumb-ring/50 block size-4 shrink-0 rounded-full border shadow-sm transition-[color,box-shadow] hover:ring-4 focus-visible:ring-4 focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50"},g))]})};function Gs(...e){return e.filter(Boolean).join(" ")}function or(e){const{value:t,defaultValue:n,onChange:r}=e,[o,s]=v.useState(n),a=t!==void 0,i=a?t:o,l=v.useCallback(c=>{const u=typeof c=="function"?c(i):c;a||s(u),r?.(u)},[a,r,i]);return[i,l]}function hd(e,t,n){return Math.min(n,Math.max(t,e))}const Zs=v.createContext(null),Ys=v.forwardRef(({asChild:e,className:t,checked:n,defaultChecked:r=!1,onCheckedChange:o,name:s,value:a="on",required:i,form:l,disabled:c,id:u,onClick:f,onKeyDown:h,children:m,...w},g)=>{const b=v.useRef(null),y=v.useId(),x=u??`swt-${y}`,[R,C]=or({value:n,defaultValue:r,onChange:o});v.useEffect(()=>{b.current&&(b.current.checked=R)},[R]),v.useEffect(()=>{const j=b.current?.form??null;if(!j)return;const W=()=>C(r);return j.addEventListener("reset",W),()=>j.removeEventListener("reset",W)},[r,C]);const S=v.useCallback(()=>{const j=b.current;if(!j)return;j.checked=R;const W=new Event("change",{bubbles:!0});j.dispatchEvent(W)},[R]),P=v.useCallback(()=>{c||(C(!R),queueMicrotask(()=>S()))},[c,S,R,C]),k=v.useCallback(j=>{f?.(j),!j.defaultPrevented&&P()},[f,P]),E=v.useCallback(j=>{h?.(j),!j.defaultPrevented&&(j.key===" "||j.key==="Enter")&&(j.preventDefault(),P())},[h,P]),L=e?Xe:"button",I=g;return d.jsx(Zs.Provider,{value:{checked:R,disabled:c},children:d.jsxs(L,{id:x,ref:I,type:"button",role:"switch","aria-checked":R,"aria-disabled":c||void 0,"data-state":R?"checked":"unchecked","data-disabled":c||void 0,onClick:k,onKeyDown:E,disabled:c,className:Gs("peer border-input inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border","bg-input focus-visible:ring-ring transition-colors focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none","disabled:cursor-not-allowed disabled:opacity-50","data-[state=checked]:bg-primary",t),...w,children:[d.jsx("input",{ref:b,type:"checkbox",name:s,value:a,required:i,disabled:c,form:l,checked:R,readOnly:!0,tabIndex:-1,"aria-hidden":"true",style:{position:"absolute",opacity:0,width:0,height:0,pointerEvents:"none"}}),m]})})});Ys.displayName="Switch";const Xs=v.forwardRef(({asChild:e,className:t,...n},r)=>{const o=v.useContext(Zs);if(!o)throw new Error("SwitchThumb must be used within Switch");const s=e?Xe:"span",a=r;return d.jsx(s,{ref:a,"data-state":o.checked?"checked":"unchecked","data-disabled":o.disabled||void 0,className:Gs("bg-background pointer-events-none block h-5 w-5 rounded-full shadow-lg ring-0 transition-transform","translate-x-0 data-[state=checked]:translate-x-5",t),...n})});Xs.displayName="SwitchThumb";const md=Gt("text-sm leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Ft=v.forwardRef(({className:e,htmlFor:t,...n},r)=>d.jsx("label",{htmlFor:t,ref:r,className:oe(md(),e),...n}));Ft.displayName="Label";const qs=v.forwardRef(({className:e,disabled:t,id:n,labelPosition:r="right",labelText:o,name:s,onChange:a,required:i,value:l,hideLabel:c=!1,variant:u,...f},h)=>{const m=u==="squared";return d.jsxs("div",{className:"flex items-center","data-testid":"switch-container",children:[r==="left"&&!c&&d.jsx(Ft,{htmlFor:n,className:"mr-2","data-testid":"switch-label-left",children:o}),d.jsx(Ys,{"data-testid":"switch-root",className:oe(m?"peer data-[state=checked]:bg-switch-bg--checked data-[state=unchecked]:bg-switch-bg inline-flex h-6 w-10 shrink-0 items-center rounded-sm border-2 border-transparent transition-all outline-none focus-visible:ring-[3px] focus-visible:ring-black disabled:cursor-not-allowed disabled:opacity-50 [&_span]:rounded-[4px]":"focus-visible:ring-ring focus-visible:ring-offset-background peer data-[state=checked]:bg-switch-bg--checked data-[state=unchecked]:bg-switch-bg inline-flex h-6 w-10 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent shadow-2xs transition-colors focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-hidden disabled:cursor-not-allowed disabled:opacity-50",e),disabled:t,id:n,name:s,onCheckedChange:a,value:l,required:i,...f,ref:h,children:d.jsx(Xs,{className:oe(m?"bg-switch-thumb pointer-events-none block size-5 rounded-full shadow-xs ring-0 transition-transform data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0 data-[state=checked]:rtl:-translate-x-4":"bg-switch-thumb pointer-events-none block h-5 w-5 rounded-full shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0")})}),r==="right"&&!c&&d.jsx(Ft,{htmlFor:n,id:`${n}-label`,className:"ml-2","data-testid":"switch-label-right",children:o}),c&&d.jsx(Ft,{htmlFor:n,className:"sr-only",children:o})]})});qs.displayName="Switch";const gd=v.forwardRef(function({pressed:t,defaultPressed:n=!1,onPressedChange:r,disabled:o,className:s,onKeyDown:a,onClick:i,type:l="button",...c},u){const[f,h]=or({value:t,defaultValue:n,onChange:r}),m=v.useCallback(()=>{o||h(!f)},[o,f,h]),w=v.useCallback(b=>{a&&a(b),!b.defaultPrevented&&(b.key===" "||b.key==="Enter")&&(b.preventDefault(),m())},[m,a]),g=v.useCallback(b=>{i&&i(b),!b.defaultPrevented&&m()},[m,i]);return d.jsx("button",{...c,ref:u,type:l,"aria-pressed":f,"data-state":f?"on":"off","data-disabled":o?"":void 0,disabled:o,onKeyDown:w,onClick:g,className:s})}),Ks=Gt(`
|
|
78
|
-
bg-toggle-bg inline-flex items-center justify-center gap-2 border rounded-md text-sm shadow-sm font-medium w-fit disabled:pointer-events-none disabled:opacity-50 disabled:cursor-not-allowed
|
|
79
|
-
hover:cursor-pointer data-[state=on]:text-toggle-text--active text-toggle-text hover:bg-toggle-bg--hover hover:border-toggle-border--hover data-[state=on]:bg-toggle-bg--active
|
|
80
|
-
data-[state=on]:border-toggle-border--active hover:text-toggle-text--hover data-[state=on]:bg-toggle-bg--active data-[state=on]:text-toggle-text--active data-[state=on]:border-toggle-border--active
|
|
81
|
-
transition-[colors] [&_svg]:pointer-events-none [&_svg]:shrink-0 focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] focus:outline-none outline-none
|
|
82
|
-
aria-invalid:ring-danger-200/20 dark:aria-invalid:ring-danger-200/40 aria-invalid:border-danger-200 whitespace-nowrap
|
|
83
|
-
`,{variants:{variant:{default:"border-toggle-border hover:border-toggle-border--hover",outline:"border-toggle-outline-border hover:bg-toggle-bg--hover"},size:{default:'h-9 px-3 min-w-9 [&_svg:not([class*="size-"]):not([width]):not([height])]:size-4',sm:'h-8 px-1.5 min-w-8 [&_svg:not([class*="size-"]):not([width]):not([height])]:size-3',lg:'h-10 px-2.5 min-w-10 [&_svg:not([class*="size-"]):not([width]):not([height])]:size-5'},layout:{default:"w-fit",expanded:"w-full"}},defaultVariants:{variant:"default",size:"default",layout:"default"}}),vd=v.forwardRef(({className:e,variant:t,size:n,layout:r,...o},s)=>d.jsx(gd,{ref:s,"data-slot":"toggle",className:oe(Ks({variant:t,size:n,layout:r}),e),...o})),Qs=v.createContext(null),bd=e=>{const{type:t="single",orientation:n="horizontal",loop:r=!0,disabled:o=!1,name:s,className:a,value:i,defaultValue:l,onValueChange:c,"data-variant":u,"data-size":f,"data-slot":h,"data-layout":m,...w}=e,g=t==="multiple",[b,y]=or({value:i,defaultValue:typeof l<"u"?l:g?[]:"",onChange:c}),x=v.useRef([]),R=v.useCallback((I,j)=>{const W={val:I,el:j,disabled:!!j?.disabled};return x.current=[...x.current.filter(T=>T.val!==I),W],()=>{x.current=x.current.filter(T=>T.val!==I)}},[]),C=v.useCallback(()=>x.current.slice(),[]),S=v.useCallback(I=>g?Array.isArray(b)&&b.includes(I):b===I,[g,b]),P=v.useCallback(I=>y(I),[y]),k=v.useCallback(I=>{const j=x.current;if(j.length===0)return;const W=j.length-1,T=r?(I%j.length+j.length)%j.length:hd(I,0,W);j[T]?.el?.focus()},[r]),E=v.useMemo(()=>({type:t,value:b,setValue:P,orientation:n,loop:r,groupDisabled:o,name:s,register:R,isItemPressed:S,focusItemByIndex:k,itemsSnapshot:C}),[o,S,C,r,s,n,P,t,b]),L=s;return d.jsxs("div",{...w,role:"group","data-orientation":n,"data-disabled":o?"":void 0,"data-variant":u,"data-size":f,"data-slot":h,"data-layout":m,className:a,children:[d.jsx(Qs.Provider,{value:E,children:e.children}),L&&t==="single"&&typeof b=="string"?d.jsx("input",{type:"hidden",name:L,value:b}):null,L&&t==="multiple"&&Array.isArray(b)?b.map(I=>d.jsx("input",{type:"hidden",name:L+"[]",value:I},I)):null]})},wd=v.forwardRef(function({value:t,disabled:n,className:r,children:o,onKeyDown:s,onClick:a,...i},l){const c=v.useContext(Qs);if(!c)throw new Error("ToggleGroupItem must be used within ToggleGroup");const{type:u,orientation:f,groupDisabled:h,setValue:m,isItemPressed:w,itemsSnapshot:g,register:b}=c,y=v.useRef(null);v.useImperativeHandle(l,()=>y.current),v.useEffect(()=>b(t,y.current),[b,t]);const x=w(t),R=v.useCallback(()=>{if(!(h||n))if(u==="single")m(x?"":t);else{const P=c.value,k=x?P.filter(E=>E!==t):[...P,t];m(k)}},[c.value,n,h,x,m,u,t]),C=v.useCallback(P=>{if(s&&s(P),P.defaultPrevented)return;if(P.key===" "||P.key==="Enter"){P.preventDefault(),R();return}const k=g(),E=k.findIndex(j=>j.val===t),L=f==="horizontal"?"ArrowLeft":"ArrowUp",I=f==="horizontal"?"ArrowRight":"ArrowDown";P.key===L?(P.preventDefault(),c.focusItemByIndex(E-1)):P.key===I?(P.preventDefault(),c.focusItemByIndex(E+1)):P.key==="Home"?(P.preventDefault(),c.focusItemByIndex(0)):P.key==="End"&&(P.preventDefault(),c.focusItemByIndex(k.length-1))},[c,g,s,f,R,t]),S=v.useCallback(P=>{a&&a(P),!P.defaultPrevented&&R()},[a,R]);return d.jsx("button",{...i,ref:y,type:"button","aria-pressed":x,"data-state":x?"on":"off","data-disabled":h||n?"":void 0,disabled:h||n,onKeyDown:C,onClick:S,className:r,children:o})}),Js=v.createContext({size:"default",variant:"default",layout:"default"}),yd=({className:e,variant:t,size:n,layout:r,children:o,...s})=>d.jsx(bd,{"data-slot":"toggle-group","data-variant":t,"data-size":n,"data-layout":r,className:oe("group/toggle-group [&[data-variant='outline']]:bg-toggle-group-bg flex h-fit w-fit items-center rounded-md [&_button:first-of-type]:rounded-l-md [&_button:last-of-type]:rounded-r-md [&[data-variant='outline']]:gap-0.25",e),...s,children:d.jsx(Js.Provider,{value:{variant:t,size:n,layout:r},children:o})}),xd=v.forwardRef(({className:e,children:t,variant:n,size:r,value:o,layout:s,...a},i)=>{const l=v.useContext(Js);return d.jsx(wd,{ref:i,"data-slot":"toggle-group-item","data-variant":l.variant||n,"data-size":l.size||r,"data-layout":l.layout||s,value:o,className:oe(Ks({variant:l.variant||n,size:l.size||r,layout:l.layout||s}),"group data-[variant=outline]:border-togglegroup-border rounded-none shadow-none focus:z-10 focus-visible:z-10 data-[variant=outline]:border-l-0",e),...a,children:t})}),Cd=({title:e,description:t,children:n})=>d.jsxs("div",{className:"bg-background text-text-primary border-border-primary flex h-[72px] w-full justify-between border-b",children:[d.jsxs("div",{className:"flex w-auto flex-col justify-center",children:[e&&d.jsx("h3",{className:"w-fit font-semibold",children:e}),t&&d.jsx("p",{className:"text-text-secondary m-0 w-fit text-sm",children:t})]}),d.jsx("div",{className:"flex items-center",children:n})]});var kd=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"}),Rd="VisuallyHidden",ea=p.forwardRef((e,t)=>d.jsx(se.span,{...e,ref:t,style:{...kd,...e.style}}));ea.displayName=Rd;var Ed=ea,[an,Qf]=Zt("Tooltip",[nn]),ln=nn(),ta="TooltipProvider",Sd=700,Nn="tooltip.open",[Pd,sr]=an(ta),na=e=>{const{__scopeTooltip:t,delayDuration:n=Sd,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:s}=e,a=p.useRef(!0),i=p.useRef(!1),l=p.useRef(0);return p.useEffect(()=>{const c=l.current;return()=>window.clearTimeout(c)},[]),d.jsx(Pd,{scope:t,isOpenDelayedRef:a,delayDuration:n,onOpen:p.useCallback(()=>{window.clearTimeout(l.current),a.current=!1},[]),onClose:p.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>a.current=!0,r)},[r]),isPointerInTransitRef:i,onPointerInTransitChange:p.useCallback(c=>{i.current=c},[]),disableHoverableContent:o,children:s})};na.displayName=ta;var yt="Tooltip",[Ad,Rt]=an(yt),ra=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o,onOpenChange:s,disableHoverableContent:a,delayDuration:i}=e,l=sr(yt,e.__scopeTooltip),c=ln(t),[u,f]=p.useState(null),h=vt(),m=p.useRef(0),w=a??l.disableHoverableContent,g=i??l.delayDuration,b=p.useRef(!1),[y,x]=Wn({prop:r,defaultProp:o??!1,onChange:k=>{k?(l.onOpen(),document.dispatchEvent(new CustomEvent(Nn))):l.onClose(),s?.(k)},caller:yt}),R=p.useMemo(()=>y?b.current?"delayed-open":"instant-open":"closed",[y]),C=p.useCallback(()=>{window.clearTimeout(m.current),m.current=0,b.current=!1,x(!0)},[x]),S=p.useCallback(()=>{window.clearTimeout(m.current),m.current=0,x(!1)},[x]),P=p.useCallback(()=>{window.clearTimeout(m.current),m.current=window.setTimeout(()=>{b.current=!0,x(!0),m.current=0},g)},[g,x]);return p.useEffect(()=>()=>{m.current&&(window.clearTimeout(m.current),m.current=0)},[]),d.jsx(Ss,{...c,children:d.jsx(Ad,{scope:t,contentId:h,open:y,stateAttribute:R,trigger:u,onTriggerChange:f,onTriggerEnter:p.useCallback(()=>{l.isOpenDelayedRef.current?P():C()},[l.isOpenDelayedRef,P,C]),onTriggerLeave:p.useCallback(()=>{w?S():(window.clearTimeout(m.current),m.current=0)},[S,w]),onOpen:C,onClose:S,disableHoverableContent:w,children:n})})};ra.displayName=yt;var _n="TooltipTrigger",oa=p.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Rt(_n,n),s=sr(_n,n),a=ln(n),i=p.useRef(null),l=ue(t,i,o.onTriggerChange),c=p.useRef(!1),u=p.useRef(!1),f=p.useCallback(()=>c.current=!1,[]);return p.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),d.jsx(tr,{asChild:!0,...a,children:d.jsx(se.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:l,onPointerMove:re(e.onPointerMove,h=>{h.pointerType!=="touch"&&!u.current&&!s.isPointerInTransitRef.current&&(o.onTriggerEnter(),u.current=!0)}),onPointerLeave:re(e.onPointerLeave,()=>{o.onTriggerLeave(),u.current=!1}),onPointerDown:re(e.onPointerDown,()=>{o.open&&o.onClose(),c.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:re(e.onFocus,()=>{c.current||o.onOpen()}),onBlur:re(e.onBlur,o.onClose),onClick:re(e.onClick,o.onClose)})})});oa.displayName=_n;var ar="TooltipPortal",[Ld,Td]=an(ar,{forceMount:void 0}),sa=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,s=Rt(ar,t);return d.jsx(Ld,{scope:t,forceMount:n,children:d.jsx(Fe,{present:n||s.open,children:d.jsx(Xt,{asChild:!0,container:o,children:r})})})};sa.displayName=ar;var it="TooltipContent",aa=p.forwardRef((e,t)=>{const n=Td(it,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...s}=e,a=Rt(it,e.__scopeTooltip);return d.jsx(Fe,{present:r||a.open,children:a.disableHoverableContent?d.jsx(ia,{side:o,...s,ref:t}):d.jsx(jd,{side:o,...s,ref:t})})}),jd=p.forwardRef((e,t)=>{const n=Rt(it,e.__scopeTooltip),r=sr(it,e.__scopeTooltip),o=p.useRef(null),s=ue(t,o),[a,i]=p.useState(null),{trigger:l,onClose:c}=n,u=o.current,{onPointerInTransitChange:f}=r,h=p.useCallback(()=>{i(null),f(!1)},[f]),m=p.useCallback((w,g)=>{const b=w.currentTarget,y={x:w.clientX,y:w.clientY},x=Dd(y,b.getBoundingClientRect()),R=Nd(y,x),C=_d(g.getBoundingClientRect()),S=Wd([...R,...C]);i(S),f(!0)},[f]);return p.useEffect(()=>()=>h(),[h]),p.useEffect(()=>{if(l&&u){const w=b=>m(b,u),g=b=>m(b,l);return l.addEventListener("pointerleave",w),u.addEventListener("pointerleave",g),()=>{l.removeEventListener("pointerleave",w),u.removeEventListener("pointerleave",g)}}},[l,u,m,h]),p.useEffect(()=>{if(a){const w=g=>{const b=g.target,y={x:g.clientX,y:g.clientY},x=l?.contains(b)||u?.contains(b),R=!$d(y,a);x?h():R&&(h(),c())};return document.addEventListener("pointermove",w),()=>document.removeEventListener("pointermove",w)}},[l,u,a,c,h]),d.jsx(ia,{...e,ref:s})}),[Md,Od]=an(yt,{isInside:!1}),Id=Ri("TooltipContent"),ia=p.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:s,onPointerDownOutside:a,...i}=e,l=Rt(it,n),c=ln(n),{onClose:u}=l;return p.useEffect(()=>(document.addEventListener(Nn,u),()=>document.removeEventListener(Nn,u)),[u]),p.useEffect(()=>{if(l.trigger){const f=h=>{h.target?.contains(l.trigger)&&u()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[l.trigger,u]),d.jsx(Yt,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:f=>f.preventDefault(),onDismiss:u,children:d.jsxs(Ps,{"data-state":l.stateAttribute,...c,...i,ref:t,style:{...i.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:[d.jsx(Id,{children:r}),d.jsx(Md,{scope:n,isInside:!0,children:d.jsx(Ed,{id:l.contentId,role:"tooltip",children:o||r})})]})})});aa.displayName=it;var la="TooltipArrow",ca=p.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=ln(n);return Od(la,n).isInside?null:d.jsx(As,{...o,...r,ref:t})});ca.displayName=la;function Dd(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 Nd(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 _d(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 $d(e,t){const{x:n,y:r}=e;let o=!1;for(let s=0,a=t.length-1;s<t.length;a=s++){const i=t[s],l=t[a],c=i.x,u=i.y,f=l.x,h=l.y;u>r!=h>r&&n<(f-c)*(r-u)/(h-u)+c&&(o=!o)}return o}function Wd(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),Fd(t)}function Fd(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],a=t[t.length-2];if((s.x-a.x)*(o.y-a.y)>=(s.y-a.y)*(o.x-a.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],a=n[n.length-2];if((s.x-a.x)*(o.y-a.y)>=(s.y-a.y)*(o.x-a.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 zd=na,Vd=ra,Hd=oa,Bd=sa,Ud=aa,Gd=ca;const Zd=({delayDuration:e=0,...t})=>d.jsx(zd,{"data-slot":"tooltip-provider",delayDuration:e,...t}),Yd=({...e})=>d.jsx(Zd,{children:d.jsx(Vd,{"data-slot":"tooltip",...e})}),Xd=({...e})=>d.jsx(Hd,{asChild:!0,"data-slot":"tooltip-trigger",...e}),qd=({className:e,children:t,sideOffset:n=0,showArrow:r=!1,...o})=>d.jsx(Bd,{children:d.jsxs(Ud,{"data-slot":"tooltip-content",sideOffset:n,className:oe("bg-tooltip-bg text-text-primary pointer-events-auto z-50 w-fit rounded-md px-3 py-1.5 text-xs shadow-lg will-change-transform outline-none select-none","data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]: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),...o,children:[t,r&&d.jsx(Gd,{className:"bg-tooltip-arrow fill-tooltip-arrow z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"})]})}),ir=v.createContext(""),Kd=({children:e,title:t,size:n=24,ariaHidden:r,description:o="",className:s="",style:a},i)=>{const l=v.useId(),c=r?"":`${l}_title`,u=!r&&o?`${l}_desc`:"";return d.jsxs("svg",{height:n,width:n,xmlns:"http://www.w3.org/2000/svg",className:s,role:"img","aria-hidden":r,"aria-labelledby":`${c} ${u}`,ref:i,style:a,fill:"none",viewBox:"0 0 24 24",children:[r?null:d.jsxs(d.Fragment,{children:[d.jsx("title",{id:c,children:t}),o?d.jsx("desc",{id:u,children:o}):null]}),d.jsx(ir.Provider,{value:l,children:e})]})},Y=v.forwardRef(Kd),Qd=({className:e,ariaHidden:t,title:n="Instagram",description:r,size:o=24},s)=>d.jsx(Y,{size:o,className:e,title:n,description:r,"aria-hidden":t,ref:s,children:d.jsx("path",{d:"M13.6104 6.53511L15.6288 4.51679C16.3845 3.761 17.6099 3.761 18.3657 4.51679L19.9832 6.1343C20.7389 6.89009 20.7389 8.11546 19.9832 8.87125L17.9649 10.8896M13.6104 6.53511L3.73343 16.4121C3.55196 16.5935 3.45001 16.8397 3.45001 17.0963V21.05H7.40366C7.66029 21.05 7.90642 20.948 8.08789 20.7665L17.9649 10.8896M13.6104 6.53511L17.9649 10.8896",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),Jd=v.forwardRef(Qd),ef=({className:e,ariaHidden:t,title:n="Instagram",description:r,size:o=24},s)=>d.jsxs(Y,{size:o,className:e,title:n,description:r,"aria-hidden":t,ref:s,children:[d.jsx("path",{d:"M8.39999 2.90918V6.54554",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),d.jsx("path",{d:"M15.6 2.90918V6.54554",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),d.jsx("path",{d:"M18.3 4.72729H5.69999C4.70588 4.72729 3.89999 5.54132 3.89999 6.54548V19.2727C3.89999 20.2769 4.70588 21.0909 5.69999 21.0909H18.3C19.2941 21.0909 20.1 20.2769 20.1 19.2727V6.54548C20.1 5.54132 19.2941 4.72729 18.3 4.72729Z",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),d.jsx("path",{d:"M3.89999 10.1819H20.1",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]}),tf=v.forwardRef(ef),nf=({className:e,ariaHidden:t,title:n="Clock",description:r,size:o=24},s)=>d.jsxs(Y,{size:o,className:e,title:n,description:r,"aria-hidden":t,ref:s,children:[d.jsx("path",{d:"M12 6.54541V12L15.6364 13.8181",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),d.jsx("path",{d:"M12 21.091C17.0208 21.091 21.0909 17.0209 21.0909 12.0001C21.0909 6.97932 17.0208 2.90918 12 2.90918C6.97923 2.90918 2.90909 6.97932 2.90909 12.0001C2.90909 17.0209 6.97923 21.091 12 21.091Z",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]}),rf=v.forwardRef(nf),of=({className:e,ariaHidden:t,title:n="Instagram",description:r,size:o=24},s)=>d.jsxs(Y,{size:o,className:e,title:n,description:r,"aria-hidden":t,ref:s,children:[d.jsx("path",{d:"M10 5C9.50309 5.00003 9.02397 5.18504 8.656 5.519L2.328 11.259C2.22472 11.3527 2.14219 11.467 2.08572 11.5946C2.02924 11.7221 2.00006 11.86 2.00006 11.9995C2.00006 12.139 2.02924 12.2769 2.08572 12.4044C2.14219 12.532 2.22472 12.6463 2.328 12.74L8.656 18.481C9.02397 18.815 9.50309 19 10 19H20C20.5304 19 21.0391 18.7893 21.4142 18.4142C21.7893 18.0391 22 17.5304 22 17V7C22 6.46957 21.7893 5.96086 21.4142 5.58579C21.0391 5.21071 20.5304 5 20 5H10Z",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),d.jsx("path",{d:"M12 9L18 15",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),d.jsx("path",{d:"M18 9L12 15",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]}),sf=v.forwardRef(of),af=({className:e,ariaHidden:t,title:n="Instagram",description:r,size:o=24},s)=>d.jsxs(Y,{size:o,className:e,title:n,description:r,"aria-hidden":t,ref:s,children:[d.jsx("path",{d:"M11.5652 3.36353C13.2523 3.36322 14.903 3.85034 16.3162 4.76551C17.7294 5.68069 18.8441 6.9844 19.5243 8.51774C20.2045 10.0511 20.421 11.7478 20.1472 13.4012C19.8735 15.0546 19.1214 16.5932 17.9826 17.8294",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),d.jsx("path",{d:"M11.5652 6.81812V11.9999L15.0435 13.7272",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),d.jsx("path",{d:"M3.30435 9.30103C3.02726 10.1376 2.88064 11.0113 2.86957 11.8919",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),d.jsx("path",{d:"M3.59128 15.4546C4.07954 16.5703 4.79961 17.5709 5.70432 18.391",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),d.jsx("path",{d:"M5.16171 6.15737C5.40436 5.89503 5.66311 5.64784 5.93649 5.41724",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),d.jsx("path",{d:"M8.64697 20.1356C10.8154 20.9028 13.2017 20.7848 15.2826 19.8074",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]}),lf=v.forwardRef(af),cf=({className:e,ariaHidden:t,title:n="Instagram",description:r,size:o=24},s)=>{const a=v.useContext(ir);return d.jsxs(Y,{size:o,className:e,title:n,description:r,"aria-hidden":t,ref:s,children:[d.jsxs("g",{clipPath:`url(#${a}-clip0)`,children:[d.jsx("path",{d:"M19 20.0001H8.5L4.29 15.7001C4.10375 15.5127 3.99921 15.2592 3.99921 14.9951C3.99921 14.7309 4.10375 14.4774 4.29 14.2901L14.29 4.29006C14.4774 4.10381 14.7308 3.99927 14.995 3.99927C15.2592 3.99927 15.5126 4.10381 15.7 4.29006L20.7 9.29006C20.8863 9.47742 20.9908 9.73087 20.9908 9.99506C20.9908 10.2592 20.8863 10.5127 20.7 10.7001L11.5 20.0001",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),d.jsx("path",{d:"M18 13.3L11.7 7",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]}),d.jsx("defs",{children:d.jsx("clipPath",{id:`${a}-clip0`,children:d.jsx("rect",{width:"24",height:"24",fill:"white"})})})]})},uf=v.forwardRef(cf),df=({className:e,ariaHidden:t,title:n="Instagram",description:r,size:o=24},s)=>d.jsxs(Y,{size:o,className:e,title:n,description:r,"aria-hidden":t,ref:s,children:[d.jsx("path",{d:"M18.1765 19.6501L10.7647 12.0001L18.1765 4.3501",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),d.jsx("path",{d:"M5.82353 4.3501V19.6501",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]}),ff=v.forwardRef(df),pf=({className:e,ariaHidden:t,title:n="Instagram",description:r,size:o=24},s)=>d.jsxs(Y,{size:o,className:e,title:n,description:r,"aria-hidden":t,ref:s,children:[d.jsx("path",{d:"M5.75 19.2858L13.25 12.0001L5.75 4.71436",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),d.jsx("path",{d:"M18.25 4.71436V19.2858",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]}),hf=v.forwardRef(pf),mf=({className:e,ariaHidden:t,title:n="Instagram",description:r,size:o=24},s)=>d.jsx(Y,{size:o,className:e,title:n,description:r,"aria-hidden":t,ref:s,children:d.jsx("path",{d:"M7.4 7.5H7.6M3 5V11.1716C3 11.702 3.21071 12.2107 3.58579 12.5858L11.3358 20.3358C12.1168 21.1168 13.3832 21.1168 14.1642 20.3358L20.3358 14.1642C21.1168 13.3832 21.1168 12.1168 20.3358 11.3358L12.5858 3.58579C12.2107 3.21071 11.702 3 11.1716 3H5C3.89543 3 3 3.89543 3 5ZM8 7.5C8 7.77614 7.77614 8 7.5 8C7.22386 8 7 7.77614 7 7.5C7 7.22386 7.22386 7 7.5 7C7.77614 7 8 7.22386 8 7.5Z",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"square"})}),gf=v.forwardRef(mf),vf=({className:e,ariaHidden:t,title:n="Instagram",description:r,size:o=24},s)=>d.jsxs(Y,{size:o,className:e,title:n,description:r,"aria-hidden":t,ref:s,children:[d.jsx("path",{d:"M4.45818 14.2428C3.44841 13.0426 2.90906 11.6287 2.90909 10.1819C2.90909 8.25306 3.86688 6.40321 5.57175 5.03931C7.27663 3.67541 9.58894 2.90918 12 2.90918C14.4111 2.90918 16.7234 3.67541 18.4282 5.03931C20.1331 6.40321 21.0909 8.25306 21.0909 10.1819C21.0909 12.1108 20.1331 13.9606 18.4282 15.3245C16.7234 16.6884 14.4111 17.4546 12 17.4546C10.3393 17.4545 8.71033 17.0904 7.29 16.4019",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),d.jsx("path",{d:"M7.45455 21.0911C6.89076 20.6683 6.43301 20.1201 6.11746 19.49C5.80192 18.8598 5.63721 18.1649 5.63637 17.4602",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),d.jsx("path",{d:"M5.63636 17.4545C6.64051 17.4545 7.45454 16.6405 7.45454 15.6363C7.45454 14.6321 6.64051 13.8181 5.63636 13.8181C4.6322 13.8181 3.81818 14.6321 3.81818 15.6363C3.81818 16.6405 4.6322 17.4545 5.63636 17.4545Z",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]}),bf=v.forwardRef(vf),wf=({className:e,ariaHidden:t,title:n="Instagram",description:r,size:o=24},s)=>d.jsxs(Y,{size:o,className:e,title:n,description:r,"aria-hidden":t,ref:s,children:[d.jsx("path",{d:"M4.84 6.85425V17.0514",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),d.jsx("path",{d:"M19.1287 6.85425V17.0514",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),d.jsx("path",{d:"M6.88124 4.81494H17.0874",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),d.jsx("path",{d:"M6.88124 19.0908H17.0874",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),d.jsx("path",{d:"M19.1287 19.0908C19.1287 19.1011 19.1287 19.1115 19.1339 19.1323C19.139 19.1532 19.1494 19.1842 19.16 19.1848",stroke:"currentColor",strokeWidth:"5",strokeLinecap:"round"}),d.jsx("path",{d:"M19.1287 4.81494C19.1287 4.82528 19.1287 4.83563 19.1339 4.85647C19.139 4.87732 19.1494 4.90835 19.16 4.90897",stroke:"currentColor",strokeWidth:"5",strokeLinecap:"round"}),d.jsx("path",{d:"M4.84 4.81494C4.84 4.82528 4.84 4.83563 4.84517 4.85647C4.85035 4.87732 4.8607 4.90835 4.87137 4.90897",stroke:"currentColor",strokeWidth:"5",strokeLinecap:"round"}),d.jsx("path",{d:"M4.84 19.0908C4.84 19.1011 4.84 19.1115 4.84517 19.1323C4.85035 19.1532 4.8607 19.1842 4.87137 19.1848",stroke:"currentColor",strokeWidth:"5",strokeLinecap:"round"})]}),yf=v.forwardRef(wf),xf=({className:e,ariaHidden:t,title:n="Instagram",description:r,size:o=24},s)=>d.jsxs(Y,{size:o,className:e,title:n,description:r,"aria-hidden":t,ref:s,children:[d.jsx("path",{d:"M12.0305 12.5V12.51",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),d.jsx("path",{d:"M15.4773 9.47021C16.3913 10.2739 16.9048 11.3638 16.9048 12.5002C16.9048 13.6366 16.3913 14.7265 15.4773 15.5302",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),d.jsx("path",{d:"M18.9254 6.43896C19.8309 7.2349 20.5492 8.17983 21.0392 9.21979C21.5293 10.2598 21.7815 11.3744 21.7815 12.5C21.7815 13.6257 21.5293 14.7403 21.0392 15.7803C20.5492 16.8202 19.8309 17.7652 18.9254 18.5611",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),d.jsx("path",{d:"M8.57873 15.5302C7.66474 14.7265 7.15129 13.6366 7.15129 12.5002C7.15129 11.3638 7.66474 10.2739 8.57873 9.47021",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),d.jsx("path",{d:"M5.1282 18.5611C4.22271 17.7652 3.50443 16.8202 3.01439 15.7803C2.52434 14.7403 2.27211 13.6257 2.27211 12.5C2.27211 11.3744 2.52434 10.2598 3.01439 9.21979C3.50443 8.17983 4.22271 7.2349 5.1282 6.43896",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]}),Cf=v.forwardRef(xf),kf=({className:e,ariaHidden:t,title:n="Instagram",description:r,size:o=24},s)=>d.jsxs(Y,{size:o,className:e,title:n,description:r,"aria-hidden":t,ref:s,children:[d.jsx("path",{d:"M19.1111 10.1819C19.1111 14.721 14.1876 19.4483 12.5342 20.9083C12.3802 21.0267 12.1927 21.0908 12 21.0908C11.8073 21.0908 11.6198 21.0267 11.4658 20.9083C9.81244 19.4483 4.88889 14.721 4.88889 10.1819C4.88889 8.25306 5.63809 6.40321 6.97168 5.03931C8.30527 3.67541 10.114 2.90918 12 2.90918C13.886 2.90918 15.6947 3.67541 17.0283 5.03931C18.3619 6.40321 19.1111 8.25306 19.1111 10.1819Z",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),d.jsx("path",{d:"M12 12.9091C13.4728 12.9091 14.6667 11.6881 14.6667 10.1819C14.6667 8.67563 13.4728 7.45459 12 7.45459C10.5273 7.45459 9.33334 8.67563 9.33334 10.1819C9.33334 11.6881 10.5273 12.9091 12 12.9091Z",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]}),Rf=v.forwardRef(kf),Ef=({className:e,ariaHidden:t,title:n="Instagram",description:r,size:o=24},s)=>d.jsx(Y,{size:o,className:e,title:n,description:r,"aria-hidden":t,ref:s,children:d.jsx("path",{d:"M3 12H6.80472C7.23083 12 7.62038 12.2408 7.81094 12.6219L9.75 16.5L14.25 7.5L16.1891 11.3781C16.3796 11.7592 16.7692 12 17.1953 12H21M5.25 21H18.75C19.9927 21 21 19.9927 21 18.75V5.25C21 4.00736 19.9927 3 18.75 3H5.25C4.00736 3 3 4.00736 3 5.25V18.75C3 19.9927 4.00736 21 5.25 21Z",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),Sf=v.forwardRef(Ef),Pf=({className:e,ariaHidden:t,title:n="Instagram",description:r,size:o=24},s)=>d.jsxs(Y,{size:o,className:e,title:n,description:r,"aria-hidden":t,ref:s,children:[d.jsx("path",{d:"M15.5 19.0625V19.0626",stroke:"currentColor",strokeWidth:"4.2",strokeLinecap:"round"}),d.jsx("path",{d:"M19.475 12.7126V12.7127",stroke:"currentColor",strokeWidth:"4.4",strokeLinecap:"round"}),d.jsx("path",{d:"M16.3375 5.6123V5.6124",stroke:"currentColor",strokeWidth:"4.3",strokeLinecap:"round"}),d.jsx("path",{d:"M5.25 4.8125V4.8126",stroke:"currentColor",strokeWidth:"4.5",strokeLinecap:"round"}),d.jsx("path",{d:"M5.25 19.1875V19.1876",stroke:"currentColor",strokeWidth:"4.3",strokeLinecap:"round"}),d.jsx("path",{d:"M8.875 11.5625V11.5626",stroke:"currentColor",strokeWidth:"6",strokeLinecap:"round"}),d.jsx("path",{d:"M7.95976 13.5L5.94999 17.8039",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),d.jsx("path",{d:"M5.66249 5.80737L7.49574 9.08025",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),d.jsx("path",{d:"M14.6209 7L10.75 10.1648",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),d.jsx("path",{d:"M17.9705 12.6067L11.75 11.9999",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),d.jsx("path",{d:"M14.4062 17.8035L10.125 13.25",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})]}),Af=v.forwardRef(Pf),Lf=({className:e,ariaHidden:t,title:n="Instagram",description:r,size:o=24},s)=>d.jsx(Y,{size:o,className:e,title:n,description:r,"aria-hidden":t,ref:s,children:d.jsx("path",{d:"M4.63333 3.11108V20.8889L19.3667 12L4.63333 3.11108Z",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),Tf=v.forwardRef(Lf),jf=({className:e,ariaHidden:t,title:n="Instagram",description:r,size:o=24},s)=>d.jsx(Y,{size:o,className:e,title:n,description:r,"aria-hidden":t,ref:s,children:d.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 3C12.5523 3 13 3.44772 13 4V11H20C20.5523 11 21 11.4477 21 12C21 12.5523 20.5523 13 20 13H13V20C13 20.5523 12.5523 21 12 21C11.4477 21 11 20.5523 11 20V13H4C3.44772 13 3 12.5523 3 12C3 11.4477 3.44772 11 4 11H11V4C11 3.44772 11.4477 3 12 3Z",fill:"currentColor"})}),Mf=v.forwardRef(jf),Of=({className:e,ariaHidden:t,title:n="Instagram",description:r,size:o=24},s)=>d.jsx(Y,{size:o,className:e,title:n,description:r,"aria-hidden":t,ref:s,children:d.jsx("path",{d:"M4.97266 12C4.97266 8.13401 8.10666 5 11.9727 5C13.9466 5 15.3753 5.67948 16.7591 7H15C14.4477 7 14 7.44772 14 8C14 8.55228 14.4477 9 15 9H18.25C19.2165 9 20 8.2165 20 7.25V4C20 3.44772 19.5523 3 19 3C18.4477 3 18 3.44772 18 4V5.42301C16.3778 3.9219 14.5241 3 11.9727 3C7.00209 3 2.97266 7.02944 2.97266 12C2.97266 16.9706 7.00209 21 11.9727 21C15.8929 21 19.2253 18.4941 20.4603 14.9999C20.6443 14.4792 20.3714 13.9079 19.8507 13.7238C19.33 13.5398 18.7586 13.8127 18.5746 14.3334C17.6132 17.0536 15.0189 19 11.9727 19C8.10666 19 4.97266 15.866 4.97266 12Z",fill:"currentColor"})}),If=v.forwardRef(Of),Df=({className:e,ariaHidden:t,title:n="Instagram",description:r,size:o=24},s)=>d.jsxs(Y,{size:o,className:e,title:n,description:r,"aria-hidden":t,ref:s,children:[d.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 3C3.79086 3 2 4.79086 2 7C2 9.20914 3.79086 11 6 11C7.02505 11 7.96004 10.6144 8.66786 9.9804L11.6973 12L8.66786 14.0196C7.96005 13.3856 7.02505 13 6 13C3.79086 13 2 14.7909 2 17C2 19.2091 3.79086 21 6 21C8.20914 21 10 19.2091 10 17C10 16.5386 9.92189 16.0955 9.77816 15.6831L22.3868 7.27735C21.7741 6.35829 20.5323 6.10995 19.6133 6.72265L13.5 10.7982L9.77816 8.3169C9.92189 7.90452 10 7.46138 10 7C10 4.79086 8.20914 3 6 3ZM4 7C4 5.89543 4.89543 5 6 5C7.10457 5 8 5.89543 8 7C8 8.10457 7.10457 9 6 9C4.89543 9 4 8.10457 4 7ZM4 17C4 15.8954 4.89543 15 6 15C7.10457 15 8 15.8954 8 17C8 18.1046 7.10457 19 6 19C4.89543 19 4 18.1046 4 17Z",fill:"currentColor"}),d.jsx("path",{d:"M19.6133 17.2773L14.4014 13.8027L16.2042 12.6008L22.3868 16.7226C21.7741 17.6416 20.5323 17.89 19.6133 17.2773Z",fill:"currentColor"})]}),Nf=v.forwardRef(Df),_f=({className:e,ariaHidden:t,title:n="Instagram",description:r,size:o=24},s)=>d.jsx(Y,{size:o,className:e,title:n,description:r,"aria-hidden":t,ref:s,children:d.jsx("path",{d:"M3 5C2.44772 5 2 5.44772 2 6C2 6.55228 2.44772 7 3 7V5ZM21 7C21.5523 7 22 6.55228 22 6C22 5.44772 21.5523 5 21 5V7ZM11 11C11 10.4477 10.5523 10 10 10C9.44772 10 9 10.4477 9 11H11ZM9 16C9 16.5523 9.44772 17 10 17C10.5523 17 11 16.5523 11 16H9ZM15 11C15 10.4477 14.5523 10 14 10C13.4477 10 13 10.4477 13 11H15ZM13 16C13 16.5523 13.4477 17 14 17C14.5523 17 15 16.5523 15 16H13ZM14.9056 6.24926C15.0432 6.78411 15.5884 7.1061 16.1233 6.96844C16.6581 6.83078 16.9801 6.28559 16.8424 5.75074L14.9056 6.24926ZM4.00221 6.06652L4.87775 19.1996L6.87332 19.0665L5.99779 5.93348L4.00221 6.06652ZM7.87111 22H16.1289V20H7.87111V22ZM19.1222 19.1996L19.9978 6.06652L18.0022 5.93348L17.1267 19.0665L19.1222 19.1996ZM19 5H5V7H19V5ZM3 7H5V5H3V7ZM19 7H21V5H19V7ZM16.1289 22C17.7083 22 19.0172 20.7754 19.1222 19.1996L17.1267 19.0665C17.0917 19.5918 16.6554 20 16.1289 20V22ZM4.87775 19.1996C4.98281 20.7754 6.29171 22 7.87111 22V20C7.34464 20 6.90834 19.5918 6.87332 19.0665L4.87775 19.1996ZM9 11V16H11V11H9ZM13 11V16H15V11H13ZM12 4C13.3965 4 14.5725 4.95512 14.9056 6.24926L16.8424 5.75074C16.2874 3.59442 14.3312 2 12 2V4ZM9.09447 6.24926C9.42756 4.95512 10.6035 4 12 4V2C9.66885 2 7.7126 3.59442 7.1576 5.75074L9.09447 6.24926Z",fill:"currentColor"})}),$f=v.forwardRef(_f),Wf=({className:e,ariaHidden:t,title:n="Instagram",description:r,size:o=24},s)=>d.jsx(Y,{size:o,className:e,title:n,description:r,"aria-hidden":t,ref:s,children:d.jsx("path",{d:"M7.8 9.66667L3 14.3333M3 14.3333L7.8 19M3 14.3333H16.2C17.473 14.3333 18.6939 13.8417 19.5941 12.9665C20.4943 12.0913 21 10.9043 21 9.66667C21 8.42899 20.4943 7.242 19.5941 6.36683C18.6939 5.49167 17.473 5 16.2 5H15",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),Ff=v.forwardRef(Wf),zf=({className:e,ariaHidden:t,title:n="Instagram",description:r,size:o=24},s)=>d.jsxs(Y,{size:o,className:e,title:n,description:r,"aria-hidden":t,ref:s,children:[d.jsx("path",{d:"M18 9L21 12L18 15",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),d.jsx("path",{d:"M15 12H21",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),d.jsx("path",{d:"M6 9L3 12L6 15",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),d.jsx("path",{d:"M3 12H9",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),d.jsx("path",{d:"M9 18L12 21L15 18",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),d.jsx("path",{d:"M12 15V21",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),d.jsx("path",{d:"M15 6L12 3L9 6",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),d.jsx("path",{d:"M12 3V9",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]}),Vf=v.forwardRef(zf),Hf=({className:e,ariaHidden:t,title:n="Instagram",description:r,size:o=24},s)=>d.jsxs(Y,{size:o,className:e,title:n,description:r,"aria-hidden":t,ref:s,children:[d.jsx("path",{d:"M6.65278 7.875L2.375 12L6.65278 16.125",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),d.jsx("path",{d:"M17.3472 7.875L21.625 12L17.3472 16.125",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),d.jsx("path",{d:"M2.375 12H21.625",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]}),Bf=v.forwardRef(Hf),Uf=({className:e,ariaHidden:t,title:n="Zoom Y Axis",description:r,size:o=24},s)=>d.jsxs(Y,{size:o,className:e,title:n,description:r,"aria-hidden":t,ref:s,children:[d.jsx("path",{d:"M7.90909 6.94958L12 2.90918L16.0909 6.94958",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),d.jsx("path",{d:"M7.90909 17.0505L12 21.0909L16.0909 17.0505",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),d.jsx("path",{d:"M12 2.90918V21.091",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]}),Gf=v.forwardRef(Uf);function Zf(e){const t=v.useRef(null);return v.useEffect(()=>{const n=r=>{t.current&&!t.current.contains(r.target)&&e()};return document.addEventListener("mousedown",n),()=>{document.removeEventListener("mousedown",n)}},[e]),t}const Yf=(e="dark")=>{const[t,n]=v.useState(()=>{if(typeof window>"u")return e;const s=localStorage.getItem("theme");return s==="light"||s==="dark"?s:window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}),r=s=>{n(s)},o=()=>{r(t==="dark"?"light":"dark")};return v.useEffect(()=>{document.documentElement.setAttribute("data-theme",t),localStorage.setItem("theme",t)},[t]),{theme:t,setTheme:r,toggleTheme:o}};exports.AnnotationsIcon=Jd;exports.Badge=ii;exports.Button=mo;exports.CalendarIcon=tf;exports.Card=go;exports.ClockIcon=rf;exports.DeleteIcon=sf;exports.Drawer=Ec;exports.DurationIcon=lf;exports.EraserIcon=uf;exports.GoToFirstIcon=ff;exports.GoToLastIcon=hf;exports.IconBase=Y;exports.LabelIcon=gf;exports.LassoIcon=bf;exports.LineToolIcon=yf;exports.LiveViewIcon=Cf;exports.LocationIcon=Rf;exports.MetadataIcon=Sf;exports.OntologyIcon=Af;exports.PlayIcon=Tf;exports.PlusIcon=Mf;exports.Popover=sd;exports.PopoverContent=id;exports.PopoverTrigger=ad;exports.ResetIcon=If;exports.ScissorsIcon=Nf;exports.Skeleton=ld;exports.Slider=pd;exports.SvgIdContext=ir;exports.Switch=qs;exports.Toggle=vd;exports.ToggleGroup=yd;exports.ToggleGroupItem=xd;exports.Toolbar=Cd;exports.Tooltip=Yd;exports.TooltipContent=qd;exports.TooltipTrigger=Xd;exports.TrashIcon=$f;exports.UndoIcon=Ff;exports.ZoomAllIcon=Vf;exports.ZoomXIcon=Bf;exports.ZoomYIcon=Gf;exports.cn=oe;exports.useOutsideClick=Zf;exports.useTheme=Yf;
|
|
File without changes
|