UNPKG

@figr-design/identity-code-lib

Version:

This repo contains code for components exported from Figrs design system generator (Identity).

20 lines 730 kB
import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import*as r from"react";import o,{useCallback as i,forwardRef as a,Children as s,isValidElement as l,createElement as c,cloneElement as u,Fragment as d,createContext as f,useMemo as g,useContext as p,useRef as h,useEffect as m,useState as b,useLayoutEffect as v,useReducer as w,Component as y}from"react";import*as x from"react-dom";import C,{flushSync as I,createPortal as S}from"react-dom";import*as N from"@radix-ui/react-accordion";import*as k from"@radix-ui/react-dialog";import*as _ from"@radix-ui/react-tooltip";import*as A from"@radix-ui/react-popover";import{Drawer as M}from"vaul";var E=function(){return E=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},E.apply(this,arguments)};function P(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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 R(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}function O(){return O=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},O.apply(this,arguments)}function T(...e){return t=>e.forEach((e=>function(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}(e,t)))}function D(...e){return i(T(...e),e)}"function"==typeof SuppressedError&&SuppressedError;const L=a(((e,t)=>{const{children:n,...r}=e,o=s.toArray(n),i=o.find(G);if(i){const e=i.props.children,n=o.map((t=>t===i?s.count(e)>1?s.only(null):l(e)?e.props.children:null:t));return c(F,O({},r,{ref:t}),l(e)?u(e,void 0,n):null)}return c(F,O({},r,{ref:t}),n)}));L.displayName="Slot";const F=a(((e,t)=>{const{children:n,...r}=e;return l(n)?u(n,{...B(r,n.props),ref:t?T(t,n.ref):n.ref}):s.count(n)>1?s.only(null):null}));F.displayName="SlotClone";const V=({children:e})=>c(d,null,e);function G(e){return l(e)&&e.type===V}function B(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{i(...e),o(...e)}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function W(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=W(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}const H=e=>"boolean"==typeof e?"".concat(e):0===e?"0":e,z=function(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=W(e))&&(r&&(r+=" "),r+=t);return r},X=(e,t)=>n=>{var r;if(null==(null==t?void 0:t.variants))return z(e,null==n?void 0:n.class,null==n?void 0:n.className);const{variants:o,defaultVariants:i}=t,a=Object.keys(o).map((e=>{const t=null==n?void 0:n[e],r=null==i?void 0:i[e];if(null===t)return null;const a=H(t)||H(r);return o[e][a]})),s=n&&Object.entries(n).reduce(((e,t)=>{let[n,r]=t;return void 0===r||(e[n]=r),e}),{}),l=null==t||null===(r=t.compoundVariants)||void 0===r?void 0:r.reduce(((e,t)=>{let{class:n,className:r,...o}=t;return Object.entries(o).every((e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...i,...s}[t]):{...i,...s}[t]===n}))?[...e,n,r]:e}),[]);return z(e,a,l,null==n?void 0:n.class,null==n?void 0:n.className)};function j(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=j(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}const Z="-";function Y(e){const t=function(e){const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]},o=function(e,t){if(!t)return e;return e.map((([e,n])=>[e,n.map((e=>"string"==typeof e?t+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map((([e,n])=>[t+e,n]))):e))]))}(Object.entries(e.classGroups),n);return o.forEach((([e,n])=>{$(n,r,e,t)})),r}(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:function(e){const n=e.split(Z);return""===n[0]&&1!==n.length&&n.shift(),J(n,t)||function(e){if(U.test(e)){const t=U.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}}(e)},getConflictingClassGroupIds:function(e,t){const o=n[e]||[];return t&&r[e]?[...o,...r[e]]:o}}}function J(e,t){if(0===e.length)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?J(e.slice(1),r):void 0;if(o)return o;if(0===t.validators.length)return;const i=e.join(Z);return t.validators.find((({validator:e})=>e(i)))?.classGroupId}const U=/^\[(.+)\]$/;function $(e,t,n,r){e.forEach((e=>{if("string"!=typeof e){if("function"==typeof e)return e.isThemeGetter?void $(e(r),t,n,r):void t.validators.push({validator:e,classGroupId:n});Object.entries(e).forEach((([e,o])=>{$(o,Q(t,e),n,r)}))}else{(""===e?t:Q(t,e)).classGroupId=n}}))}function Q(e,t){let n=e;return t.split(Z).forEach((e=>{n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)})),n}function K(e){if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;function o(o,i){n.set(o,i),t++,t>e&&(t=0,r=n,n=new Map)}return{get(e){let t=n.get(e);return void 0!==t?t:void 0!==(t=r.get(e))?(o(e,t),t):void 0},set(e,t){n.has(e)?n.set(e,t):o(e,t)}}}const q="!";function ee(e){const t=e.separator,n=1===t.length,r=t[0],o=t.length;return function(e){const i=[];let a,s=0,l=0;for(let c=0;c<e.length;c++){let u=e[c];if(0===s){if(u===r&&(n||e.slice(c,c+o)===t)){i.push(e.slice(l,c)),l=c+o;continue}if("/"===u){a=c;continue}}"["===u?s++:"]"===u&&s--}const c=0===i.length?e:e.substring(l),u=c.startsWith(q);return{modifiers:i,hasImportantModifier:u,baseClassName:u?c.substring(1):c,maybePostfixModifierPosition:a&&a>l?a-l:void 0}}}const te=/\s+/;function ne(){let e,t,n=0,r="";for(;n<arguments.length;)(e=arguments[n++])&&(t=re(e))&&(r&&(r+=" "),r+=t);return r}function re(e){if("string"==typeof e)return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=re(e[r]))&&(n&&(n+=" "),n+=t);return n}function oe(e,...t){let n,r,o,i=function(s){const l=t.reduce(((e,t)=>t(e)),e());return n=function(e){return{cache:K(e.cacheSize),splitModifiers:ee(e),...Y(e)}}(l),r=n.cache.get,o=n.cache.set,i=a,a(s)};function a(e){const t=r(e);if(t)return t;const i=function(e,t){const{splitModifiers:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,i=new Set;return e.trim().split(te).map((e=>{const{modifiers:t,hasImportantModifier:o,baseClassName:i,maybePostfixModifierPosition:a}=n(e);let s=r(a?i.substring(0,a):i),l=Boolean(a);if(!s){if(!a)return{isTailwindClass:!1,originalClassName:e};if(s=r(i),!s)return{isTailwindClass:!1,originalClassName:e};l=!1}const c=function(e){if(e.length<=1)return e;const t=[];let n=[];return e.forEach((e=>{"["===e[0]?(t.push(...n.sort(),e),n=[]):n.push(e)})),t.push(...n.sort()),t}(t).join(":");return{isTailwindClass:!0,modifierId:o?c+q:c,classGroupId:s,originalClassName:e,hasPostfixModifier:l}})).reverse().filter((e=>{if(!e.isTailwindClass)return!0;const{modifierId:t,classGroupId:n,hasPostfixModifier:r}=e,a=t+n;return!i.has(a)&&(i.add(a),o(n,r).forEach((e=>i.add(t+e))),!0)})).reverse().map((e=>e.originalClassName)).join(" ")}(e,n);return o(e,i),i}return function(){return i(ne.apply(null,arguments))}}function ie(e){const t=t=>t[e]||[];return t.isThemeGetter=!0,t}const ae=/^\[(?:([a-z-]+):)?(.+)\]$/i,se=/^\d+\/\d+$/,le=new Set(["px","full","screen"]),ce=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ue=/\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$/,de=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,fe=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ge=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function pe(e){return me(e)||le.has(e)||se.test(e)}function he(e){return Me(e,"length",Ee)}function me(e){return Boolean(e)&&!Number.isNaN(Number(e))}function be(e){return Me(e,"number",me)}function ve(e){return Boolean(e)&&Number.isInteger(Number(e))}function we(e){return e.endsWith("%")&&me(e.slice(0,-1))}function ye(e){return ae.test(e)}function xe(e){return ce.test(e)}const Ce=new Set(["length","size","percentage"]);function Ie(e){return Me(e,Ce,Pe)}function Se(e){return Me(e,"position",Pe)}const Ne=new Set(["image","url"]);function ke(e){return Me(e,Ne,Oe)}function _e(e){return Me(e,"",Re)}function Ae(){return!0}function Me(e,t,n){const r=ae.exec(e);return!!r&&(r[1]?"string"==typeof t?r[1]===t:t.has(r[1]):n(r[2]))}function Ee(e){return ue.test(e)&&!de.test(e)}function Pe(){return!1}function Re(e){return fe.test(e)}function Oe(e){return ge.test(e)}function Te(){const e=ie("colors"),t=ie("spacing"),n=ie("blur"),r=ie("brightness"),o=ie("borderColor"),i=ie("borderRadius"),a=ie("borderSpacing"),s=ie("borderWidth"),l=ie("contrast"),c=ie("grayscale"),u=ie("hueRotate"),d=ie("invert"),f=ie("gap"),g=ie("gradientColorStops"),p=ie("gradientColorStopPositions"),h=ie("inset"),m=ie("margin"),b=ie("opacity"),v=ie("padding"),w=ie("saturate"),y=ie("scale"),x=ie("sepia"),C=ie("skew"),I=ie("space"),S=ie("translate"),N=()=>["auto",ye,t],k=()=>[ye,t],_=()=>["",pe,he],A=()=>["auto",me,ye],M=()=>["","0",ye],E=()=>[me,be],P=()=>[me,ye];return{cacheSize:500,separator:":",theme:{colors:[Ae],spacing:[pe,he],blur:["none","",xe,ye],brightness:E(),borderColor:[e],borderRadius:["none","","full",xe,ye],borderSpacing:k(),borderWidth:_(),contrast:E(),grayscale:M(),hueRotate:P(),invert:M(),gap:k(),gradientColorStops:[e],gradientColorStopPositions:[we,he],inset:N(),margin:N(),opacity:E(),padding:k(),saturate:E(),scale:E(),sepia:M(),skew:P(),space:k(),translate:k()},classGroups:{aspect:[{aspect:["auto","square","video",ye]}],container:["container"],columns:[{columns:[xe]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",ye]}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[h]}],"inset-x":[{"inset-x":[h]}],"inset-y":[{"inset-y":[h]}],start:[{start:[h]}],end:[{end:[h]}],top:[{top:[h]}],right:[{right:[h]}],bottom:[{bottom:[h]}],left:[{left:[h]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",ve,ye]}],basis:[{basis:N()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",ye]}],grow:[{grow:M()}],shrink:[{shrink:M()}],order:[{order:["first","last","none",ve,ye]}],"grid-cols":[{"grid-cols":[Ae]}],"col-start-end":[{col:["auto",{span:["full",ve,ye]},ye]}],"col-start":[{"col-start":A()}],"col-end":[{"col-end":A()}],"grid-rows":[{"grid-rows":[Ae]}],"row-start-end":[{row:["auto",{span:[ve,ye]},ye]}],"row-start":[{"row-start":A()}],"row-end":[{"row-end":A()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",ye]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",ye]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal","start","end","center","between","around","evenly","stretch"]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[v]}],px:[{px:[v]}],py:[{py:[v]}],ps:[{ps:[v]}],pe:[{pe:[v]}],pt:[{pt:[v]}],pr:[{pr:[v]}],pb:[{pb:[v]}],pl:[{pl:[v]}],m:[{m:[m]}],mx:[{mx:[m]}],my:[{my:[m]}],ms:[{ms:[m]}],me:[{me:[m]}],mt:[{mt:[m]}],mr:[{mr:[m]}],mb:[{mb:[m]}],ml:[{ml:[m]}],"space-x":[{"space-x":[I]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[I]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",ye,t]}],"min-w":[{"min-w":[ye,t,"min","max","fit"]}],"max-w":[{"max-w":[ye,t,"none","full","min","max","fit","prose",{screen:[xe]},xe]}],h:[{h:[ye,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[ye,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[ye,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[ye,t,"auto","min","max","fit"]}],"font-size":[{text:["base",xe,he]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",be]}],"font-family":[{font:[Ae]}],"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-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",ye]}],"line-clamp":[{"line-clamp":["none",me,be]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",pe,ye]}],"list-image":[{"list-image":["none",ye]}],"list-style-type":[{list:["none","disc","decimal",ye]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[b]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[b]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","none","wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",pe,he]}],"underline-offset":[{"underline-offset":["auto",pe,ye]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:k()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ye]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ye]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[b]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",Se]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Ie]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},ke]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[p]}],"gradient-via-pos":[{via:[p]}],"gradient-to-pos":[{to:[p]}],"gradient-from":[{from:[g]}],"gradient-via":[{via:[g]}],"gradient-to":[{to:[g]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[b]}],"border-style":[{border:["solid","dashed","dotted","double","none","hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[b]}],"divide-style":[{divide:["solid","dashed","dotted","double","none"]}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["","solid","dashed","dotted","double","none"]}],"outline-offset":[{"outline-offset":[pe,ye]}],"outline-w":[{outline:[pe,he]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:_()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[b]}],"ring-offset-w":[{"ring-offset":[pe,he]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",xe,_e]}],"shadow-color":[{shadow:[Ae]}],opacity:[{opacity:[b]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",xe,ye]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[d]}],saturate:[{saturate:[w]}],sepia:[{sepia:[x]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[b]}],"backdrop-saturate":[{"backdrop-saturate":[w]}],"backdrop-sepia":[{"backdrop-sepia":[x]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",ye]}],duration:[{duration:P()}],ease:[{ease:["linear","in","out","in-out",ye]}],delay:[{delay:P()}],animate:[{animate:["none","spin","ping","pulse","bounce",ye]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[y]}],"scale-x":[{"scale-x":[y]}],"scale-y":[{"scale-y":[y]}],rotate:[{rotate:[ve,ye]}],"translate-x":[{"translate-x":[S]}],"translate-y":[{"translate-y":[S]}],"skew-x":[{"skew-x":[C]}],"skew-y":[{"skew-y":[C]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",ye]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ye]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":k()}],"scroll-mx":[{"scroll-mx":k()}],"scroll-my":[{"scroll-my":k()}],"scroll-ms":[{"scroll-ms":k()}],"scroll-me":[{"scroll-me":k()}],"scroll-mt":[{"scroll-mt":k()}],"scroll-mr":[{"scroll-mr":k()}],"scroll-mb":[{"scroll-mb":k()}],"scroll-ml":[{"scroll-ml":k()}],"scroll-p":[{"scroll-p":k()}],"scroll-px":[{"scroll-px":k()}],"scroll-py":[{"scroll-py":k()}],"scroll-ps":[{"scroll-ps":k()}],"scroll-pe":[{"scroll-pe":k()}],"scroll-pt":[{"scroll-pt":k()}],"scroll-pr":[{"scroll-pr":k()}],"scroll-pb":[{"scroll-pb":k()}],"scroll-pl":[{"scroll-pl":k()}],"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",ye]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[pe,he,be]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}const De=oe(Te);function Le(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return De(function(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=j(e))&&(r&&(r+=" "),r+=t);return r}(e))}var Fe=X("tw-figr-font-secondary tw-figr-inline-flex tw-figr-cursor-pointer tw-figr-items-center tw-figr-justify-center tw-figr-whitespace-nowrap tw-figr-transition-colors disabled:tw-figr-cursor-not-allowed disabled:tw-figr-opacity-50",{variants:{variant:{primary:"tw-figr-rounded-m hover:tw-figr-bg-primary-600 tw-figr-bg-primary tw-figr-text-base-white",destructive:"tw-figr-rounded-m tw-figr-bg-error-100 hover:tw-figr-bg-error-200 tw-figr-text-base-white",secondary:"tw-figr-rounded-m tw-figr-bg-secondary tw-figr-text-base-black hover:tw-figr-bg-secondary-700",outline:"tw-figr-rounded-m tw-figr-border tw-figr-border-neutral-200 tw-figr-bg-base-white tw-figr-text-base-black hover:tw-figr-bg-neutral-100",ghost:"tw-figr-rounded-m tw-figr-text-base-black hover:tw-figr-bg-neutral-100",link:"tw-figr-rounded-m tw-figr-text-base-black hover:tw-figr-text-primary hover:tw-figr-underline","primary-with-icon":"tw-figr-rounded-m tw-figr-gap-s tw-figr-bg-primary tw-figr-text-base-white hover:tw-figr-bg-primary-600","outline-with-icon":"tw-figr-rounded-m tw-figr-gap-s tw-figr-border tw-figr-border-neutral-200 tw-figr-bg-base-white tw-figr-text-base-black hover:tw-figr-bg-neutral-100",icon:"tw-figr-rounded-m tw-figr-gap-s tw-figr-border tw-figr-border-neutral-200 tw-figr-bg-base-white tw-figr-text-base-black hover:tw-figr-bg-neutral-100","icon-rounded":"tw-figr-gap-s tw-figr-rounded-full tw-figr-border tw-figr-border-neutral-200 tw-figr-bg-base-white tw-figr-text-base-black hover:tw-figr-bg-neutral-100",loading:"tw-figr-rounded-m tw-figr-cursor-not-allowed tw-figr-gap-s tw-figr-bg-primary tw-figr-text-base-white tw-figr-opacity-50"},size:{none:"",sm:"tw-figr-py-xs tw-figr-px-m",md:"tw-figr-py-s tw-figr-px-sm",lg:"tw-figr-py-sm tw-figr-px-l",icon:"tw-figr-p-sm"}},defaultVariants:{variant:"primary",size:"md"}}),Ve=r.forwardRef((function(t,n){var r=t.className,o=t.variant,i=t.size,a=t.asChild,s=void 0!==a&&a,l=P(t,["className","variant","size","asChild"]);return e(s?L:"button",E({className:Le(Fe({variant:o,size:i,className:r})),ref:n},l))}));Ve.displayName="Button";var Ge=r.forwardRef((function(t,n){var r=t.className,o=t.type,i=P(t,["className","type"]);return e("input",E({type:o,className:Le("tw-figr-ring-offset-background focus-visible:tw-figr-ring-2 focus-visible:tw-figr-ring-primary focus-visible:tw-figr-ring-offset-2 focus-visible:tw-figr-ring-offset-primary tw-figr-border-neutral-200 file:tw-figr-border-0 tw-figr-bg-base-white file:tw-figr-bg-transparent tw-figr-text-desktop-caption-regular tw-figr-text-base-black file:tw-figr-text-desktop-caption-regular placeholder:tw-figr-text-neutral-700 tw-figr-h-10 tw-figr-w-full tw-figr-rounded-m tw-figr-border focus-visible:tw-figr-outline-none disabled:tw-figr-cursor-not-allowed disabled:tw-figr-opacity-50 tw-figr-flex tw-figr-px-3 tw-figr-py-2 file:tw-figr-font-medium",r),ref:n},i))}));function Be(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}function We(e,t=[]){let n=[];const r=()=>{const t=n.map((e=>f(e)));return function(n){const r=(null==n?void 0:n[e])||t;return g((()=>({[`__scope${e}`]:{...n,[e]:r}})),[n,r])}};return r.scopeName=e,[function(t,r){const o=f(r),i=n.length;function a(t){const{scope:n,children:r,...a}=t,s=(null==n?void 0:n[e][i])||o,l=g((()=>a),Object.values(a));return c(s.Provider,{value:l},r)}return n=[...n,r],a.displayName=t+"Provider",[a,function(n,a){const s=(null==a?void 0:a[e][i])||o,l=p(s);if(l)return l;if(void 0!==r)return r;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},He(r,...t)]}function He(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const r=n.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return g((()=>({[`__scope${t.scopeName}`]:r})),[r])}};return n.scopeName=t.scopeName,n}function ze(e){const t=h(e);return m((()=>{t.current=e})),g((()=>(...e)=>{var n;return null===(n=t.current)||void 0===n?void 0:n.call(t,...e)}),[])}function Xe({prop:e,defaultProp:t,onChange:n=(()=>{})}){const[r,o]=function({defaultProp:e,onChange:t}){const n=b(e),[r]=n,o=h(r),i=ze(t);return m((()=>{o.current!==r&&(i(r),o.current=r)}),[r,o,i]),n}({defaultProp:t,onChange:n}),a=void 0!==e,s=a?e:r,l=ze(n);return[s,i((t=>{if(a){const n="function"==typeof t?t(e):t;n!==e&&l(n)}else o(t)}),[a,e,o,l])]}function je(e){const t=h({value:e,previous:e});return g((()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous)),[e])}Ge.displayName="Input";const Ze=Boolean(null===globalThis||void 0===globalThis?void 0:globalThis.document)?v:()=>{};function Ye(e){const[t,n]=b(void 0);return Ze((()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver((t=>{if(!Array.isArray(t))return;if(!t.length)return;const r=t[0];let o,i;if("borderBoxSize"in r){const e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,i=t.blockSize}else o=e.offsetWidth,i=e.offsetHeight;n({width:o,height:i})}));return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)}),[e]),t}const Je=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((e,t)=>{const n=a(((e,n)=>{const{asChild:r,...o}=e,i=r?L:t;return m((()=>{window[Symbol.for("radix-ui")]=!0}),[]),c(i,O({},o,{ref:n}))}));return n.displayName=`Primitive.${t}`,{...e,[t]:n}}),{});function Ue(e,t){e&&I((()=>e.dispatchEvent(t)))}const $e="Switch",[Qe,Ke]=We($e),[qe,et]=Qe($e),tt=a(((e,t)=>{const{__scopeSwitch:n,name:r,checked:o,defaultChecked:i,required:a,disabled:s,value:l="on",onCheckedChange:u,...d}=e,[f,g]=b(null),p=D(t,(e=>g(e))),m=h(!1),v=!f||Boolean(f.closest("form")),[w=!1,y]=Xe({prop:o,defaultProp:i,onChange:u});return c(qe,{scope:n,checked:w,disabled:s},c(Je.button,O({type:"button",role:"switch","aria-checked":w,"aria-required":a,"data-state":rt(w),"data-disabled":s?"":void 0,disabled:s,value:l},d,{ref:p,onClick:Be(e.onClick,(e=>{y((e=>!e)),v&&(m.current=e.isPropagationStopped(),m.current||e.stopPropagation())}))})),v&&c(nt,{control:f,bubbles:!m.current,name:r,value:l,checked:w,required:a,disabled:s,style:{transform:"translateX(-100%)"}}))})),nt=e=>{const{control:t,checked:n,bubbles:r=!0,...o}=e,i=h(null),a=je(n),s=Ye(t);return m((()=>{const e=i.current,t=window.HTMLInputElement.prototype,o=Object.getOwnPropertyDescriptor(t,"checked").set;if(a!==n&&o){const t=new Event("click",{bubbles:r});o.call(e,n),e.dispatchEvent(t)}}),[a,n,r]),c("input",O({type:"checkbox","aria-hidden":!0,defaultChecked:n},o,{tabIndex:-1,ref:i,style:{...e.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function rt(e){return e?"checked":"unchecked"}const ot=tt,it=a(((e,t)=>{const{__scopeSwitch:n,...r}=e,o=et("SwitchThumb",n);return c(Je.span,O({"data-state":rt(o.checked),"data-disabled":o.disabled?"":void 0},r,{ref:t}))}));var at=r.forwardRef((function(t,n){var r=t.className,o=P(t,["className"]);return e(ot,E({className:Le("focus-visible:tw-figr-ring-ring focus-visible:tw-figr-ring-2 focus-visible:tw-figr-ring-offset-2 focus-visible:tw-figr-ring-offset-background tw-figr-border-2 tw-figr-border-transparent data-[state=checked]:tw-figr-bg-primary data-[state=unchecked]:tw-figr-bg-neutral-200 tw-figr-h-6 tw-figr-w-11 tw-figr-shrink-0 tw-figr-rounded-full focus-visible:tw-figr-outline-none disabled:tw-figr-cursor-not-allowed disabled:tw-figr-opacity-50 tw-figr-inline-flex tw-figr-cursor-pointer tw-figr-items-center tw-figr-transition-colors peer",r)},o,{ref:n,children:e(it,{className:Le("tw-figr-ring-0 tw-figr-bg-base-white tw-figr-h-5 tw-figr-w-5 tw-figr-rounded-full tw-figr-shadow-lg tw-figr-pointer-events-none tw-figr-block tw-figr-transition-transform data-[state=checked]:tw-figr-translate-x-5 data-[state=unchecked]:tw-figr-translate-x-0")})}))}));at.displayName=ot.displayName;const st=e=>{const{present:t,children:n}=e,r=function(e){const[t,n]=b(),r=h({}),o=h(e),a=h("none"),s=e?"mounted":"unmounted",[l,c]=function(e,t){return w(((e,n)=>{const r=t[e][n];return null!=r?r:e}),e)}(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return m((()=>{const e=lt(r.current);a.current="mounted"===l?e:"none"}),[l]),Ze((()=>{const t=r.current,n=o.current;if(n!==e){const r=a.current,i=lt(t);if(e)c("MOUNT");else if("none"===i||"none"===(null==t?void 0:t.display))c("UNMOUNT");else{c(n&&r!==i?"ANIMATION_OUT":"UNMOUNT")}o.current=e}}),[e,c]),Ze((()=>{if(t){const e=e=>{const n=lt(r.current).includes(e.animationName);e.target===t&&n&&I((()=>c("ANIMATION_END")))},n=e=>{e.target===t&&(a.current=lt(r.current))};return t.addEventListener("animationstart",n),t.addEventListener("animationcancel",e),t.addEventListener("animationend",e),()=>{t.removeEventListener("animationstart",n),t.removeEventListener("animationcancel",e),t.removeEventListener("animationend",e)}}c("ANIMATION_END")}),[t,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:i((e=>{e&&(r.current=getComputedStyle(e)),n(e)}),[])}}(t),o="function"==typeof n?n({present:r.isPresent}):s.only(n),a=D(r.ref,o.ref);return"function"==typeof n||r.isPresent?u(o,{ref:a}):null};function lt(e){return(null==e?void 0:e.animationName)||"none"}st.displayName="Presence";const ct="Checkbox",[ut,dt]=We(ct),[ft,gt]=ut(ct),pt=a(((e,t)=>{const{__scopeCheckbox:n,name:r,checked:o,defaultChecked:i,required:a,disabled:s,value:l="on",onCheckedChange:u,...d}=e,[f,g]=b(null),p=D(t,(e=>g(e))),v=h(!1),w=!f||Boolean(f.closest("form")),[y=!1,x]=Xe({prop:o,defaultProp:i,onChange:u}),C=h(y);return m((()=>{const e=null==f?void 0:f.form;if(e){const t=()=>x(C.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}}),[f,x]),c(ft,{scope:n,state:y,disabled:s},c(Je.button,O({type:"button",role:"checkbox","aria-checked":mt(y)?"mixed":y,"aria-required":a,"data-state":bt(y),"data-disabled":s?"":void 0,disabled:s,value:l},d,{ref:p,onKeyDown:Be(e.onKeyDown,(e=>{"Enter"===e.key&&e.preventDefault()})),onClick:Be(e.onClick,(e=>{x((e=>!!mt(e)||!e)),w&&(v.current=e.isPropagationStopped(),v.current||e.stopPropagation())}))})),w&&c(ht,{control:f,bubbles:!v.current,name:r,value:l,checked:y,required:a,disabled:s,style:{transform:"translateX(-100%)"}}))})),ht=e=>{const{control:t,checked:n,bubbles:r=!0,...o}=e,i=h(null),a=je(n),s=Ye(t);return m((()=>{const e=i.current,t=window.HTMLInputElement.prototype,o=Object.getOwnPropertyDescriptor(t,"checked").set;if(a!==n&&o){const t=new Event("click",{bubbles:r});e.indeterminate=mt(n),o.call(e,!mt(n)&&n),e.dispatchEvent(t)}}),[a,n,r]),c("input",O({type:"checkbox","aria-hidden":!0,defaultChecked:!mt(n)&&n},o,{tabIndex:-1,ref:i,style:{...e.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function mt(e){return"indeterminate"===e}function bt(e){return mt(e)?"indeterminate":e?"checked":"unchecked"}const vt=pt,wt=a(((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...o}=e,i=gt("CheckboxIndicator",n);return c(st,{present:r||mt(i.state)||!0===i.state},c(Je.span,O({"data-state":bt(i.state),"data-disabled":i.disabled?"":void 0},o,{ref:t,style:{pointerEvents:"none",...e.style}})))})); /** * @license lucide-react v0.372.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ var yt={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"}; /** * @license lucide-react v0.372.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const xt=(e,t)=>{const n=a((({color:n="currentColor",size:r=24,strokeWidth:o=2,absoluteStrokeWidth:i,className:a="",children:s,...l},u)=>{return c("svg",{ref:u,...yt,width:r,height:r,stroke:n,strokeWidth:i?24*Number(o)/Number(r):o,className:["lucide",`lucide-${d=e,d.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,a].join(" "),...l},[...t.map((([e,t])=>c(e,t))),...Array.isArray(s)?s:[s]]);var d; /** * @license lucide-react v0.372.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */}));return n.displayName=`${e}`,n},Ct=xt("ArrowDown",[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]),It=xt("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]),St=xt("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]),Nt=xt("ArrowUpDown",[["path",{d:"m21 16-4 4-4-4",key:"f6ql7i"}],["path",{d:"M17 20V4",key:"1ejh1v"}],["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}]]),kt=xt("ArrowUp",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]),_t=xt("Calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]),At=xt("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),Mt=xt("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),Et=xt("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]),Pt=xt("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]),Rt=xt("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]),Ot=xt("ChevronsLeft",[["path",{d:"m11 17-5-5 5-5",key:"13zhaf"}],["path",{d:"m18 17-5-5 5-5",key:"h8a8et"}]]),Tt=xt("ChevronsRight",[["path",{d:"m6 17 5-5-5-5",key:"xnjwq"}],["path",{d:"m13 17 5-5-5-5",key:"17xmmf"}]]),Dt=xt("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]),Lt=xt("Dot",[["circle",{cx:"12.1",cy:"12.1",r:"1",key:"18d7e5"}]]),Ft=xt("Ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]),Vt=xt("Eye",[["path",{d:"M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z",key:"rwhkz3"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]),Gt=xt("PanelRightClose",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M15 3v18",key:"14nvp0"}],["path",{d:"m8 9 3 3-3 3",key:"12hl5m"}]]),Bt=xt("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);var Wt=r.forwardRef((function(t,n){var r=t.className,o=P(t,["className"]);return e(vt,E({ref:n,className:Le("focus-visible:tw-figr-ring-ring tw-figr-border-custom-primary data-[state=checked]:tw-figr-bg-custom-primary data-[state=checked]:tw-figr-text-custom-base-white focus-visible:tw-figr-ring-1 tw-figr-border-primary data-[state=checked]:tw-figr-bg-primary data-[state=checked]:tw-figr-text-base-white tw-figr-h-4 tw-figr-w-4 tw-figr-shrink-0 tw-figr-rounded-full tw-figr-border tw-figr-shadow focus-visible:tw-figr-outline-none disabled:tw-figr-cursor-not-allowed disabled:tw-figr-opacity-50 peer",r)},o,{children:e(wt,{className:Le("tw-figr-text-current tw-figr-flex items-center justify-center"),children:e(At,{className:"tw-figr-h-4 tw-figr-w-4"})})}))}));function Ht(e){const t=e+"CollectionProvider",[n,r]=We(t),[i,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=e+"CollectionSlot",l=e+"CollectionItemSlot",c="data-radix-collection-item";return[{Provider:e=>{const{scope:t,children:n}=e,r=o.useRef(null),a=o.useRef(new Map).current;return o.createElement(i,{scope:t,itemMap:a,collectionRef:r},n)},Slot:o.forwardRef(((e,t)=>{const{scope:n,children:r}=e,i=D(t,a(s,n).collectionRef);return o.createElement(L,{ref:i},r)})),ItemSlot:o.forwardRef(((e,t)=>{const{scope:n,children:r,...i}=e,s=o.useRef(null),u=D(t,s),d=a(l,n);return o.useEffect((()=>(d.itemMap.set(s,{ref:s,...i}),()=>{d.itemMap.delete(s)}))),o.createElement(L,{[c]:"",ref:u},r)}))},function(t){const n=a(e+"CollectionConsumer",t);return o.useCallback((()=>{const e=n.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${c}]`));return Array.from(n.itemMap.values()).sort(((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current)))}),[n.collectionRef,n.itemMap])},r]}Wt.displayName=vt.displayName;const zt=r["useId".toString()]||(()=>{});let Xt=0;function jt(e){const[t,n]=r.useState(zt());return Ze((()=>{e||n((e=>null!=e?e:String(Xt++)))}),[e]),e||(t?`radix-${t}`:"")}const Zt=f(void 0);function Yt(e){const t=p(Zt);return e||t||"ltr"}const Jt="rovingFocusGroup.onEntryFocus",Ut={bubbles:!1,cancelable:!0},$t="RovingFocusGroup",[Qt,Kt,qt]=Ht($t),[en,tn]=We($t,[qt]),[nn,rn]=en($t),on=a(((e,t)=>c(Qt.Provider,{scope:e.__scopeRovingFocusGroup},c(Qt.Slot,{scope:e.__scopeRovingFocusGroup},c(an,O({},e,{ref:t})))))),an=a(((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:a,currentTabStopId:s,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:u,onEntryFocus:d,...f}=e,g=h(null),p=D(t,g),v=Yt(a),[w=null,y]=Xe({prop:s,defaultProp:l,onChange:u}),[x,C]=b(!1),I=ze(d),S=Kt(n),N=h(!1),[k,_]=b(0);return m((()=>{const e=g.current;if(e)return e.addEventListener(Jt,I),()=>e.removeEventListener(Jt,I)}),[I]),c(nn,{scope:n,orientation:r,dir:v,loop:o,currentTabStopId:w,onItemFocus:i((e=>y(e)),[y]),onItemShiftTab:i((()=>C(!0)),[]),onFocusableItemAdd:i((()=>_((e=>e+1))),[]),onFocusableItemRemove:i((()=>_((e=>e-1))),[])},c(Je.div,O({tabIndex:x||0===k?-1:0,"data-orientation":r},f,{ref:p,style:{outline:"none",...e.style},onMouseDown:Be(e.onMouseDown,(()=>{N.current=!0})),onFocus:Be(e.onFocus,(e=>{const t=!N.current;if(e.target===e.currentTarget&&t&&!x){const t=new CustomEvent(Jt,Ut);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){const e=S().filter((e=>e.focusable));cn([e.find((e=>e.active)),e.find((e=>e.id===w)),...e].filter(Boolean).map((e=>e.ref.current)))}}N.current=!1})),onBlur:Be(e.onBlur,(()=>C(!1)))})))})),sn=a(((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:i,...a}=e,s=jt(),l=i||s,u=rn("RovingFocusGroupItem",n),d=u.currentTabStopId===l,f=Kt(n),{onFocusableItemAdd:g,onFocusableItemRemove:p}=u;return m((()=>{if(r)return g(),()=>p()}),[r,g,p]),c(Qt.ItemSlot,{scope:n,id:l,focusable:r,active:o},c(Je.span,O({tabIndex:d?0:-1,"data-orientation":u.orientation},a,{ref:t,onMouseDown:Be(e.onMouseDown,(e=>{r?u.onItemFocus(l):e.preventDefault()})),onFocus:Be(e.onFocus,(()=>u.onItemFocus(l))),onKeyDown:Be(e.onKeyDown,(e=>{if("Tab"===e.key&&e.shiftKey)return void u.onItemShiftTab();if(e.target!==e.currentTarget)return;const t=function(e,t,n){const r=function(e,t){return"rtl"!==t?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}(e.key,n);return"vertical"===t&&["ArrowLeft","ArrowRight"].includes(r)||"horizontal"===t&&["ArrowUp","ArrowDown"].includes(r)?void 0:ln[r]}(e,u.orientation,u.dir);if(void 0!==t){e.preventDefault();let o=f().filter((e=>e.focusable)).map((e=>e.ref.current));if("last"===t)o.reverse();else if("prev"===t||"next"===t){"prev"===t&&o.reverse();const i=o.indexOf(e.currentTarget);o=u.loop?(r=i+1,(n=o).map(((e,t)=>n[(r+t)%n.length]))):o.slice(i+1)}setTimeout((()=>cn(o)))}var n,r}))})))})),ln={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function cn(e){const t=document.activeElement;for(const n of e){if(n===t)return;if(n.focus(),document.activeElement!==t)return}}const un=on,dn=sn,fn="Radio",[gn,pn]=We(fn),[hn,mn]=gn(fn),bn=a(((e,t)=>{const{__scopeRadio:n,name:r,checked:o=!1,required:i,disabled:a,value:s="on",onCheck:l,...u}=e,[d,f]=b(null),g=D(t,(e=>f(e))),p=h(!1),m=!d||Boolean(d.closest("form"));return c(hn,{scope:n,checked:o,disabled:a},c(Je.button,O({type:"button",role:"radio","aria-checked":o,"data-state":yn(o),"data-disabled":a?"":void 0,disabled:a,value:s},u,{ref:g,onClick:Be(e.onClick,(e=>{o||null==l||l(),m&&(p.current=e.isPropagationStopped(),p.current||e.stopPropagation())}))})),m&&c(wn,{control:d,bubbles:!p.current,name:r,value:s,checked:o,required:i,disabled:a,style:{transform:"translateX(-100%)"}}))})),vn=a(((e,t)=>{const{__scopeRadio:n,forceMount:r,...o}=e,i=mn("RadioIndicator",n);return c(st,{present:r||i.checked},c(Je.span,O({"data-state":yn(i.checked),"data-disabled":i.disabled?"":void 0},o,{ref:t})))})),wn=e=>{const{control:t,checked:n,bubbles:r=!0,...o}=e,i=h(null),a=je(n),s=Ye(t);return m((()=>{const e=i.current,t=window.HTMLInputElement.prototype,o=Object.getOwnPropertyDescriptor(t,"checked").set;if(a!==n&&o){const t=new Event("click",{bubbles:r});o.call(e,n),e.dispatchEvent(t)}}),[a,n,r]),c("input",O({type:"radio","aria-hidden":!0,defaultChecked:n},o,{tabIndex:-1,ref:i,style:{...e.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function yn(e){return e?"checked":"unchecked"}const xn=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Cn="RadioGroup",[In,Sn]=We(Cn,[tn,pn]),Nn=tn(),kn=pn(),[_n,An]=In(Cn),Mn=a(((e,t)=>{const{__scopeRadioGroup:n,name:r,defaultValue:o,value:i,required:a=!1,disabled:s=!1,orientation:l,dir:u,loop:d=!0,onValueChange:f,...g}=e,p=Nn(n),h=Yt(u),[m,b]=Xe({prop:i,defaultProp:o,onChange:f});return c(_n,{scope:n,name:r,required:a,disabled:s,value:m,onValueChange:b},c(un,O({asChild:!0},p,{orientation:l,dir:h,loop:d}),c(Je.div,O({role:"radiogroup","aria-required":a,"aria-orientation":l,"data-disabled":s?"":void 0,dir:h},g,{ref:t}))))})),En=a(((e,t)=>{const{__scopeRadioGroup:n,disabled:r,...o}=e,i=An("RadioGroupItem",n),a=i.disabled||r,s=Nn(n),l=kn(n),u=h(null),d=D(t,u),f=i.value===o.value,g=h(!1);return m((()=>{const e=e=>{xn.includes(e.key)&&(g.current=!0)},t=()=>g.current=!1;return document.addEventListener("keydown",e),document.addEventListener("keyup",t),()=>{document.removeEventListener("keydown",e),document.removeEventListener("keyup",t)}}),[]),c(dn,O({asChild:!0},s,{focusable:!a,active:f}),c(bn,O({disabled:a,required:i.required,checked:f},l,o,{name:i.name,ref:d,onCheck:()=>i.onValueChange(o.value),onKeyDown:Be((e=>{"Enter"===e.key&&e.preventDefault()})),onFocus:Be(o.onFocus,(()=>{var e;g.current&&(null===(e=u.current)||void 0===e||e.click())}))})))})),Pn=a(((e,t)=>{const{__scopeRadioGroup:n,...r}=e,o=kn(n);return c(vn,O({},o,r,{ref:t}))}));var Rn=r.forwardRef((function(t,n){var r=t.className,o=P(t,["className"]);return e(Mn,E({className:Le("tw-figr-grid tw-figr-gap-2 tw-figr-font-secondary tw-figr-text-desktop-caption-accent ",r)},o,{ref:n}))}));Rn.displayName=Mn.displayName;var On=r.forwardRef((function(t,n){var r=t.className,o=P(t,["className"]);return e(En,E({ref:n,className:Le("tw-figr-ring-offset-background focus-visible:tw-figr-ring-2 focus-visible:tw-figr-ring-ring focus-visible:tw-figr-ring-offset-2 tw-figr-border-primary tw-figr-text-primary tw-figr-h-4 tw-figr-w-4 tw-figr-rounded-full focus:tw-figr-outline-none disabled:tw-figr-cursor-not-allowed disabled:tw-figr-opacity-50 tw-figr-aspect-square tw-figr-border",r)},o,{children:e(Pn,{className:"tw-figr-flex tw-figr-items-center tw-figr-justify-center",children:e(Dt,{className:"tw-figr-text-current tw-figr-h-2.5 tw-figr-w-2.5 tw-figr-fill-current"})})}))}));On.displayName=En.displayName;const Tn=a(((e,t)=>c(Je.label,O({},e,{ref:t,onMouseDown:t=>{var n;null===(n=e.onMouseDown)||void 0===n||n.call(e,t),!t.defaultPrevented&&t.detail>1&&t.preventDefault()}}))));var Dn=X("tw-figr-text-desktop-caption-accent peer-disabled:tw-figr-cursor-not-allowed peer-disabled:tw-figr-opacity-70"),Ln=r.forwardRef((function(t,n){var r=t.className,o=P(t,["className"]);return e(Tn,E({ref:n,className:Le(Dn(),r)},o))}));Ln.displayName=Tn.displayName;var Fn=function(n){var r=n.inputId,o=void 0===r?"input_primary":r,i=n.label,a=void 0===i?"Label":i,s=n.helperText,l=void 0===s?"HelperText":s,c=n.submitButtonLabel,u=void 0===c?"Submit":c,d=n.disabled,f=void 0!==d&&d,g=n.inputProps,p=void 0===g?{placeholder:"Input Placeholder"}:g,h=n.buttonProps,m=void 0===h?{}:h;return t("section",{className:Le("tw-figr-flex tw-figr-flex-col tw-figr-gap-xs tw-figr-font-secondary ","".concat(f?"tw-figr-text-neutral-500":"tw-figr-text-base-black")),children:[e(Ln,{htmlFor:o,className:"tw-figr-text-desktop-caption-accent",children:a}),t("div",{className:"tw-figr-text-desktop-content-regular tw-figr-flex tw-figr-gap-s",children:[e(Ge,E({id:o,disabled:f},p)),e(Ve,E({disabled:f},m,{children:u}))]}),e("p",{className:"".concat(f?"":"tw-figr-text-neutral-700"),children:l})]})},Vn=r.forwardRef((function(t,n){var r=t.className,o=P(t,["className"]);return e(N.Root,E({ref:n,className:Le("tw-figr-w-full tw-figr-rounded-xs tw-figr-bg-base-white tw-figr-p-ml tw-figr-font-secondary",r)},o))})),Gn=r.forwardRef((function(t,n){var r=t.className,o=P(t,["className"]);return e(N.Item,E({ref:n,className:Le("tw-figr-border-b tw-figr-border-neutral-200 tw-figr-text-base-black last:tw-figr-border-b-0",r)},o))}));Gn.displayName="AccordionItem";var Bn=r.forwardRef((function(n,r){var o=n.className,i=n.children,a=P(n,["className","children"]);return e(N.Header,{className:"tw-figr