UNPKG

@saleor/macaw-ui

Version:

Saleor's UI component library

27 lines (24 loc) 471 kB
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react"),st=require("react-dom");function Hi(s){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(s){for(const t in s)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(s,t);Object.defineProperty(e,t,o.get?o:{enumerable:!0,get:()=>s[t]})}}return e.default=s,Object.freeze(e)}const os=Hi(a),Qr=Hi(st);function s1(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}var No={exports:{}},Fe={};/** * @license React * react-jsx-runtime.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var N8;function e1(){if(N8)return Fe;N8=1;var s=a,e=Symbol.for("react.element"),t=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,i=s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,n={key:!0,ref:!0,__self:!0,__source:!0};function f(l,r,p){var c,d={},b=null,_=null;p!==void 0&&(b=""+p),r.key!==void 0&&(b=""+r.key),r.ref!==void 0&&(_=r.ref);for(c in r)o.call(r,c)&&!n.hasOwnProperty(c)&&(d[c]=r[c]);if(l&&l.defaultProps)for(c in r=l.defaultProps,r)d[c]===void 0&&(d[c]=r[c]);return{$$typeof:e,type:l,key:b,ref:_,props:d,_owner:i.current}}return Fe.Fragment=t,Fe.jsx=f,Fe.jsxs=f,Fe}var Ke={};/** * @license React * react-jsx-runtime.development.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var W8;function t1(){return W8||(W8=1,process.env.NODE_ENV!=="production"&&function(){var s=a,e=Symbol.for("react.element"),t=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),n=Symbol.for("react.profiler"),f=Symbol.for("react.provider"),l=Symbol.for("react.context"),r=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),_=Symbol.for("react.offscreen"),y=Symbol.iterator,v="@@iterator";function m(w){if(w===null||typeof w!="object")return null;var z=y&&w[y]||w[v];return typeof z=="function"?z:null}var k=s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function h(w){{for(var z=arguments.length,ss=new Array(z>1?z-1:0),ls=1;ls<z;ls++)ss[ls-1]=arguments[ls];C("error",w,ss)}}function C(w,z,ss){{var ls=k.ReactDebugCurrentFrame,_s=ls.getStackAddendum();_s!==""&&(z+="%s",ss=ss.concat([_s]));var ks=ss.map(function(ds){return String(ds)});ks.unshift("Warning: "+z),Function.prototype.apply.call(console[w],console,ks)}}var x=!1,g=!1,I=!1,E=!1,P=!1,R;R=Symbol.for("react.module.reference");function O(w){return!!(typeof w=="string"||typeof w=="function"||w===o||w===n||P||w===i||w===p||w===c||E||w===_||x||g||I||typeof w=="object"&&w!==null&&(w.$$typeof===b||w.$$typeof===d||w.$$typeof===f||w.$$typeof===l||w.$$typeof===r||w.$$typeof===R||w.getModuleId!==void 0))}function V(w,z,ss){var ls=w.displayName;if(ls)return ls;var _s=z.displayName||z.name||"";return _s!==""?ss+"("+_s+")":ss}function A(w){return w.displayName||"Context"}function Z(w){if(w==null)return null;if(typeof w.tag=="number"&&h("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof w=="function")return w.displayName||w.name||null;if(typeof w=="string")return w;switch(w){case o:return"Fragment";case t:return"Portal";case n:return"Profiler";case i:return"StrictMode";case p:return"Suspense";case c:return"SuspenseList"}if(typeof w=="object")switch(w.$$typeof){case l:var z=w;return A(z)+".Consumer";case f:var ss=w;return A(ss._context)+".Provider";case r:return V(w,w.render,"ForwardRef");case d:var ls=w.displayName||null;return ls!==null?ls:Z(w.type)||"Memo";case b:{var _s=w,ks=_s._payload,ds=_s._init;try{return Z(ds(ks))}catch{return null}}}return null}var N=Object.assign,B=0,H,U,K,M,$,S,j;function T(){}T.__reactDisabledLog=!0;function D(){{if(B===0){H=console.log,U=console.info,K=console.warn,M=console.error,$=console.group,S=console.groupCollapsed,j=console.groupEnd;var w={configurable:!0,enumerable:!0,value:T,writable:!0};Object.defineProperties(console,{info:w,log:w,warn:w,error:w,group:w,groupCollapsed:w,groupEnd:w})}B++}}function L(){{if(B--,B===0){var w={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:N({},w,{value:H}),info:N({},w,{value:U}),warn:N({},w,{value:K}),error:N({},w,{value:M}),group:N({},w,{value:$}),groupCollapsed:N({},w,{value:S}),groupEnd:N({},w,{value:j})})}B<0&&h("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var F=k.ReactCurrentDispatcher,G;function X(w,z,ss){{if(G===void 0)try{throw Error()}catch(_s){var ls=_s.stack.trim().match(/\n( *(at )?)/);G=ls&&ls[1]||""}return` `+G+w}}var Q=!1,es;{var as=typeof WeakMap=="function"?WeakMap:Map;es=new as}function W(w,z){if(!w||Q)return"";{var ss=es.get(w);if(ss!==void 0)return ss}var ls;Q=!0;var _s=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var ks;ks=F.current,F.current=null,D();try{if(z){var ds=function(){throw Error()};if(Object.defineProperty(ds.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ds,[])}catch(ie){ls=ie}Reflect.construct(w,[],ds)}else{try{ds.call()}catch(ie){ls=ie}w.call(ds.prototype)}}else{try{throw Error()}catch(ie){ls=ie}w()}}catch(ie){if(ie&&ls&&typeof ie.stack=="string"){for(var rs=ie.stack.split(` `),Ts=ls.stack.split(` `),Rs=rs.length-1,Ss=Ts.length-1;Rs>=1&&Ss>=0&&rs[Rs]!==Ts[Ss];)Ss--;for(;Rs>=1&&Ss>=0;Rs--,Ss--)if(rs[Rs]!==Ts[Ss]){if(Rs!==1||Ss!==1)do if(Rs--,Ss--,Ss<0||rs[Rs]!==Ts[Ss]){var Ks=` `+rs[Rs].replace(" at new "," at ");return w.displayName&&Ks.includes("<anonymous>")&&(Ks=Ks.replace("<anonymous>",w.displayName)),typeof w=="function"&&es.set(w,Ks),Ks}while(Rs>=1&&Ss>=0);break}}}finally{Q=!1,F.current=ks,L(),Error.prepareStackTrace=_s}var De=w?w.displayName||w.name:"",A8=De?X(De):"";return typeof w=="function"&&es.set(w,A8),A8}function us(w,z,ss){return W(w,!1)}function J(w){var z=w.prototype;return!!(z&&z.isReactComponent)}function ys(w,z,ss){if(w==null)return"";if(typeof w=="function")return W(w,J(w));if(typeof w=="string")return X(w);switch(w){case p:return X("Suspense");case c:return X("SuspenseList")}if(typeof w=="object")switch(w.$$typeof){case r:return us(w.render);case d:return ys(w.type,z,ss);case b:{var ls=w,_s=ls._payload,ks=ls._init;try{return ys(ks(_s),z,ss)}catch{}}}return""}var cs=Object.prototype.hasOwnProperty,Is={},Ds=k.ReactDebugCurrentFrame;function Os(w){if(w){var z=w._owner,ss=ys(w.type,w._source,z?z.type:null);Ds.setExtraStackFrame(ss)}else Ds.setExtraStackFrame(null)}function ne(w,z,ss,ls,_s){{var ks=Function.call.bind(cs);for(var ds in w)if(ks(w,ds)){var rs=void 0;try{if(typeof w[ds]!="function"){var Ts=Error((ls||"React class")+": "+ss+" type `"+ds+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof w[ds]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Ts.name="Invariant Violation",Ts}rs=w[ds](z,ds,ls,ss,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Rs){rs=Rs}rs&&!(rs instanceof Error)&&(Os(_s),h("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",ls||"React class",ss,ds,typeof rs),Os(null)),rs instanceof Error&&!(rs.message in Is)&&(Is[rs.message]=!0,Os(_s),h("Failed %s type: %s",ss,rs.message),Os(null))}}}var Es=Array.isArray;function js(w){return Es(w)}function ge(w){{var z=typeof Symbol=="function"&&Symbol.toStringTag,ss=z&&w[Symbol.toStringTag]||w.constructor.name||"Object";return ss}}function Pe(w){try{return Zs(w),!1}catch{return!0}}function Zs(w){return""+w}function Js(w){if(Pe(w))return h("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",ge(w)),Zs(w)}var As=k.ReactCurrentOwner,Ws={key:!0,ref:!0,__self:!0,__source:!0},mt,S8,bo;bo={};function Nr(w){if(cs.call(w,"ref")){var z=Object.getOwnPropertyDescriptor(w,"ref").get;if(z&&z.isReactWarning)return!1}return w.ref!==void 0}function Wr(w){if(cs.call(w,"key")){var z=Object.getOwnPropertyDescriptor(w,"key").get;if(z&&z.isReactWarning)return!1}return w.key!==void 0}function Lr(w,z){if(typeof w.ref=="string"&&As.current&&z&&As.current.stateNode!==z){var ss=Z(As.current.type);bo[ss]||(h('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',Z(As.current.type),w.ref),bo[ss]=!0)}}function zr(w,z){{var ss=function(){mt||(mt=!0,h("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",z))};ss.isReactWarning=!0,Object.defineProperty(w,"key",{get:ss,configurable:!0})}}function Hr(w,z){{var ss=function(){S8||(S8=!0,h("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",z))};ss.isReactWarning=!0,Object.defineProperty(w,"ref",{get:ss,configurable:!0})}}var qr=function(w,z,ss,ls,_s,ks,ds){var rs={$$typeof:e,type:w,key:z,ref:ss,props:ds,_owner:ks};return rs._store={},Object.defineProperty(rs._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(rs,"_self",{configurable:!1,enumerable:!1,writable:!1,value:ls}),Object.defineProperty(rs,"_source",{configurable:!1,enumerable:!1,writable:!1,value:_s}),Object.freeze&&(Object.freeze(rs.props),Object.freeze(rs)),rs};function Fr(w,z,ss,ls,_s){{var ks,ds={},rs=null,Ts=null;ss!==void 0&&(Js(ss),rs=""+ss),Wr(z)&&(Js(z.key),rs=""+z.key),Nr(z)&&(Ts=z.ref,Lr(z,_s));for(ks in z)cs.call(z,ks)&&!Ws.hasOwnProperty(ks)&&(ds[ks]=z[ks]);if(w&&w.defaultProps){var Rs=w.defaultProps;for(ks in Rs)ds[ks]===void 0&&(ds[ks]=Rs[ks])}if(rs||Ts){var Ss=typeof w=="function"?w.displayName||w.name||"Unknown":w;rs&&zr(ds,Ss),Ts&&Hr(ds,Ss)}return qr(w,rs,Ts,_s,ls,As.current,ds)}}var mo=k.ReactCurrentOwner,D8=k.ReactDebugCurrentFrame;function Se(w){if(w){var z=w._owner,ss=ys(w.type,w._source,z?z.type:null);D8.setExtraStackFrame(ss)}else D8.setExtraStackFrame(null)}var vo;vo=!1;function Co(w){return typeof w=="object"&&w!==null&&w.$$typeof===e}function O8(){{if(mo.current){var w=Z(mo.current.type);if(w)return` Check the render method of \``+w+"`."}return""}}function Kr(w){{if(w!==void 0){var z=w.fileName.replace(/^.*[\\\/]/,""),ss=w.lineNumber;return` Check your code at `+z+":"+ss+"."}return""}}var j8={};function Br(w){{var z=O8();if(!z){var ss=typeof w=="string"?w:w.displayName||w.name;ss&&(z=` Check the top-level render call using <`+ss+">.")}return z}}function T8(w,z){{if(!w._store||w._store.validated||w.key!=null)return;w._store.validated=!0;var ss=Br(z);if(j8[ss])return;j8[ss]=!0;var ls="";w&&w._owner&&w._owner!==mo.current&&(ls=" It was passed a child from "+Z(w._owner.type)+"."),Se(w),h('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',ss,ls),Se(null)}}function M8(w,z){{if(typeof w!="object")return;if(js(w))for(var ss=0;ss<w.length;ss++){var ls=w[ss];Co(ls)&&T8(ls,z)}else if(Co(w))w._store&&(w._store.validated=!0);else if(w){var _s=m(w);if(typeof _s=="function"&&_s!==w.entries)for(var ks=_s.call(w),ds;!(ds=ks.next()).done;)Co(ds.value)&&T8(ds.value,z)}}}function Zr(w){{var z=w.type;if(z==null||typeof z=="string")return;var ss;if(typeof z=="function")ss=z.propTypes;else if(typeof z=="object"&&(z.$$typeof===r||z.$$typeof===d))ss=z.propTypes;else return;if(ss){var ls=Z(z);ne(ss,w.props,"prop",ls,w)}else if(z.PropTypes!==void 0&&!vo){vo=!0;var _s=Z(z);h("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",_s||"Unknown")}typeof z.getDefaultProps=="function"&&!z.getDefaultProps.isReactClassApproved&&h("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Ur(w){{for(var z=Object.keys(w.props),ss=0;ss<z.length;ss++){var ls=z[ss];if(ls!=="children"&&ls!=="key"){Se(w),h("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",ls),Se(null);break}}w.ref!==null&&(Se(w),h("Invalid attribute `ref` supplied to `React.Fragment`."),Se(null))}}function V8(w,z,ss,ls,_s,ks){{var ds=O(w);if(!ds){var rs="";(w===void 0||typeof w=="object"&&w!==null&&Object.keys(w).length===0)&&(rs+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Ts=Kr(_s);Ts?rs+=Ts:rs+=O8();var Rs;w===null?Rs="null":js(w)?Rs="array":w!==void 0&&w.$$typeof===e?(Rs="<"+(Z(w.type)||"Unknown")+" />",rs=" Did you accidentally export a JSX literal instead of a component?"):Rs=typeof w,h("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Rs,rs)}var Ss=Fr(w,z,ss,_s,ks);if(Ss==null)return Ss;if(ds){var Ks=z.children;if(Ks!==void 0)if(ls)if(js(Ks)){for(var De=0;De<Ks.length;De++)M8(Ks[De],w);Object.freeze&&Object.freeze(Ks)}else h("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else M8(Ks,w)}return w===o?Ur(Ss):Zr(Ss),Ss}}function Yr(w,z,ss){return V8(w,z,ss,!0)}function Gr(w,z,ss){return V8(w,z,ss,!1)}var Xr=Gr,Jr=Yr;Ke.Fragment=o,Ke.jsx=Xr,Ke.jsxs=Jr}()),Ke}process.env.NODE_ENV==="production"?No.exports=e1():No.exports=t1();var u=No.exports;function ts(){return ts=Object.assign?Object.assign.bind():function(s){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(s[o]=t[o])}return s},ts.apply(this,arguments)}function qs(s,e=[]){let t=[];function o(n,f){const l=a.createContext(f),r=t.length;t=[...t,f];function p(d){const{scope:b,children:_,...y}=d,v=(b==null?void 0:b[s][r])||l,m=a.useMemo(()=>y,Object.values(y));return a.createElement(v.Provider,{value:m},_)}function c(d,b){const _=(b==null?void 0:b[s][r])||l,y=a.useContext(_);if(y)return y;if(f!==void 0)return f;throw new Error(`\`${d}\` must be used within \`${n}\``)}return p.displayName=n+"Provider",[p,c]}const i=()=>{const n=t.map(f=>a.createContext(f));return function(l){const r=(l==null?void 0:l[s])||n;return a.useMemo(()=>({[`__scope${s}`]:{...l,[s]:r}}),[l,r])}};return i.scopeName=s,[o,o1(i,...e)]}function o1(...s){const e=s[0];if(s.length===1)return e;const t=()=>{const o=s.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(n){const f=o.reduce((l,{useScope:r,scopeName:p})=>{const d=r(n)[`__scope${p}`];return{...l,...d}},{});return a.useMemo(()=>({[`__scope${e.scopeName}`]:f}),[f])}};return t.scopeName=e.scopeName,t}function n1(s,e){typeof s=="function"?s(e):s!=null&&(s.current=e)}function fn(...s){return e=>s.forEach(t=>n1(t,e))}function ws(...s){return a.useCallback(fn(...s),s)}function gs(){return gs=Object.assign?Object.assign.bind():function(s){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(s[o]=t[o])}return s},gs.apply(this,arguments)}const $e=a.forwardRef((s,e)=>{const{children:t,...o}=s,i=a.Children.toArray(t),n=i.find(i1);if(n){const f=n.props.children,l=i.map(r=>r===n?a.Children.count(f)>1?a.Children.only(null):a.isValidElement(f)?f.props.children:null:r);return a.createElement(Wo,gs({},o,{ref:e}),a.isValidElement(f)?a.cloneElement(f,void 0,l):null)}return a.createElement(Wo,gs({},o,{ref:e}),t)});$e.displayName="Slot";const Wo=a.forwardRef((s,e)=>{const{children:t,...o}=s;return a.isValidElement(t)?a.cloneElement(t,{...f1(o,t.props),ref:e?fn(e,t.ref):t.ref}):a.Children.count(t)>1?a.Children.only(null):null});Wo.displayName="SlotClone";const qi=({children:s})=>a.createElement(a.Fragment,null,s);function i1(s){return a.isValidElement(s)&&s.type===qi}function f1(s,e){const t={...e};for(const o in e){const i=s[o],n=e[o];/^on[A-Z]/.test(o)?i&&n?t[o]=(...l)=>{n(...l),i(...l)}:i&&(t[o]=i):o==="style"?t[o]={...i,...n}:o==="className"&&(t[o]=[i,n].filter(Boolean).join(" "))}return{...s,...t}}function ln(s){const e=s+"CollectionProvider",[t,o]=qs(e),[i,n]=t(e,{collectionRef:{current:null},itemMap:new Map}),f=_=>{const{scope:y,children:v}=_,m=a.useRef(null),k=a.useRef(new Map).current;return a.createElement(i,{scope:y,itemMap:k,collectionRef:m},v)},l=s+"CollectionSlot",r=a.forwardRef((_,y)=>{const{scope:v,children:m}=_,k=n(l,v),h=ws(y,k.collectionRef);return a.createElement($e,{ref:h},m)}),p=s+"CollectionItemSlot",c="data-radix-collection-item",d=a.forwardRef((_,y)=>{const{scope:v,children:m,...k}=_,h=a.useRef(null),C=ws(y,h),x=n(p,v);return a.useEffect(()=>(x.itemMap.set(h,{ref:h,...k}),()=>void x.itemMap.delete(h))),a.createElement($e,{[c]:"",ref:C},m)});function b(_){const y=n(s+"CollectionConsumer",_);return a.useCallback(()=>{const m=y.collectionRef.current;if(!m)return[];const k=Array.from(m.querySelectorAll(`[${c}]`));return Array.from(y.itemMap.values()).sort((x,g)=>k.indexOf(x.ref.current)-k.indexOf(g.ref.current))},[y.collectionRef,y.itemMap])}return[{Provider:f,Slot:r,ItemSlot:d},b,o]}function fs(s,e,{checkForDefaultPrevented:t=!0}={}){return function(i){if(s==null||s(i),t===!1||!i.defaultPrevented)return e==null?void 0:e(i)}}function te(s){const e=a.useRef(s);return a.useEffect(()=>{e.current=s}),a.useMemo(()=>(...t)=>{var o;return(o=e.current)===null||o===void 0?void 0:o.call(e,...t)},[])}function Gs({prop:s,defaultProp:e,onChange:t=()=>{}}){const[o,i]=l1({defaultProp:e,onChange:t}),n=s!==void 0,f=n?s:o,l=te(t),r=a.useCallback(p=>{if(n){const d=typeof p=="function"?p(s):p;d!==s&&l(d)}else i(p)},[n,s,i,l]);return[f,r]}function l1({defaultProp:s,onChange:e}){const t=a.useState(s),[o]=t,i=a.useRef(o),n=te(e);return a.useEffect(()=>{i.current!==o&&(n(o),i.current=o)},[o,i,n]),t}const a1=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],xs=a1.reduce((s,e)=>{const t=a.forwardRef((o,i)=>{const{asChild:n,...f}=o,l=n?$e:e;return a.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),a.createElement(l,gs({},f,{ref:i}))});return t.displayName=`Primitive.${e}`,{...s,[e]:t}},{});function Fi(s,e){s&&st.flushSync(()=>s.dispatchEvent(e))}const Ie=globalThis!=null&&globalThis.document?a.useLayoutEffect:()=>{};function r1(s,e){return a.useReducer((t,o)=>{const i=e[t][o];return i??t},s)}const Fs=s=>{const{present:e,children:t}=s,o=p1(e),i=typeof t=="function"?t({present:o.isPresent}):a.Children.only(t),n=ws(o.ref,i.ref);return typeof t=="function"||o.isPresent?a.cloneElement(i,{ref:n}):null};Fs.displayName="Presence";function p1(s){const[e,t]=a.useState(),o=a.useRef({}),i=a.useRef(s),n=a.useRef("none"),f=s?"mounted":"unmounted",[l,r]=r1(f,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return a.useEffect(()=>{const p=vt(o.current);n.current=l==="mounted"?p:"none"},[l]),Ie(()=>{const p=o.current,c=i.current;if(c!==s){const b=n.current,_=vt(p);s?r("MOUNT"):_==="none"||(p==null?void 0:p.display)==="none"?r("UNMOUNT"):r(c&&b!==_?"ANIMATION_OUT":"UNMOUNT"),i.current=s}},[s,r]),Ie(()=>{if(e){const p=d=>{const _=vt(o.current).includes(d.animationName);d.target===e&&_&&st.flushSync(()=>r("ANIMATION_END"))},c=d=>{d.target===e&&(n.current=vt(o.current))};return e.addEventListener("animationstart",c),e.addEventListener("animationcancel",p),e.addEventListener("animationend",p),()=>{e.removeEventListener("animationstart",c),e.removeEventListener("animationcancel",p),e.removeEventListener("animationend",p)}}else r("ANIMATION_END")},[e,r]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:a.useCallback(p=>{p&&(o.current=getComputedStyle(p)),t(p)},[])}}function vt(s){return(s==null?void 0:s.animationName)||"none"}const d1=os.useId||(()=>{});let c1=0;function se(s){const[e,t]=os.useState(d1());return Ie(()=>{s||t(o=>o??String(c1++))},[s]),s||(e?`radix-${e}`:"")}const Ki="Collapsible",[u1,Bi]=qs(Ki),[_1,an]=u1(Ki),h1=a.forwardRef((s,e)=>{const{__scopeCollapsible:t,open:o,defaultOpen:i,disabled:n,onOpenChange:f,...l}=s,[r=!1,p]=Gs({prop:o,defaultProp:i,onChange:f});return a.createElement(_1,{scope:t,disabled:n,contentId:se(),open:r,onOpenToggle:a.useCallback(()=>p(c=>!c),[p])},a.createElement(xs.div,gs({"data-state":rn(r),"data-disabled":n?"":void 0},l,{ref:e})))}),b1="CollapsibleTrigger",m1=a.forwardRef((s,e)=>{const{__scopeCollapsible:t,...o}=s,i=an(b1,t);return a.createElement(xs.button,gs({type:"button","aria-controls":i.contentId,"aria-expanded":i.open||!1,"data-state":rn(i.open),"data-disabled":i.disabled?"":void 0,disabled:i.disabled},o,{ref:e,onClick:fs(s.onClick,i.onOpenToggle)}))}),Zi="CollapsibleContent",v1=a.forwardRef((s,e)=>{const{forceMount:t,...o}=s,i=an(Zi,s.__scopeCollapsible);return a.createElement(Fs,{present:t||i.open},({present:n})=>a.createElement(C1,gs({},o,{ref:e,present:n})))}),C1=a.forwardRef((s,e)=>{const{__scopeCollapsible:t,present:o,children:i,...n}=s,f=an(Zi,t),[l,r]=a.useState(o),p=a.useRef(null),c=ws(e,p),d=a.useRef(0),b=d.current,_=a.useRef(0),y=_.current,v=f.open||l,m=a.useRef(v),k=a.useRef();return a.useEffect(()=>{const h=requestAnimationFrame(()=>m.current=!1);return()=>cancelAnimationFrame(h)},[]),Ie(()=>{const h=p.current;if(h){k.current=k.current||{transitionDuration:h.style.transitionDuration,animationName:h.style.animationName},h.style.transitionDuration="0s",h.style.animationName="none";const C=h.getBoundingClientRect();d.current=C.height,_.current=C.width,m.current||(h.style.transitionDuration=k.current.transitionDuration,h.style.animationName=k.current.animationName),r(o)}},[f.open,o]),a.createElement(xs.div,gs({"data-state":rn(f.open),"data-disabled":f.disabled?"":void 0,id:f.contentId,hidden:!v},n,{ref:c,style:{"--radix-collapsible-content-height":b?`${b}px`:void 0,"--radix-collapsible-content-width":y?`${y}px`:void 0,...s.style}}),v&&i)});function rn(s){return s?"open":"closed"}const g1=h1,y1=m1,x1=v1,k1=a.createContext(void 0);function Ut(s){const e=a.useContext(k1);return s||e||"ltr"}const me="Accordion",w1=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[pn,$1,I1]=ln(me),[Yt,pm]=qs(me,[I1,Bi]),dn=Bi(),Ui=a.forwardRef((s,e)=>{const{type:t,...o}=s,i=o,n=o;return a.createElement(pn.Provider,{scope:s.__scopeAccordion},t==="multiple"?a.createElement(S1,ts({},n,{ref:e})):a.createElement(P1,ts({},i,{ref:e})))});Ui.propTypes={type(s){const e=s.value||s.defaultValue;return s.type&&!["single","multiple"].includes(s.type)?new Error("Invalid prop `type` supplied to `Accordion`. Expected one of `single | multiple`."):s.type==="multiple"&&typeof e=="string"?new Error("Invalid prop `type` supplied to `Accordion`. Expected `single` when `defaultValue` or `value` is type `string`."):s.type==="single"&&Array.isArray(e)?new Error("Invalid prop `type` supplied to `Accordion`. Expected `multiple` when `defaultValue` or `value` is type `string[]`."):null}};const[Yi,E1]=Yt(me),[Gi,R1]=Yt(me,{collapsible:!1}),P1=a.forwardRef((s,e)=>{const{value:t,defaultValue:o,onValueChange:i=()=>{},collapsible:n=!1,...f}=s,[l,r]=Gs({prop:t,defaultProp:o,onChange:i});return a.createElement(Yi,{scope:s.__scopeAccordion,value:l?[l]:[],onItemOpen:r,onItemClose:a.useCallback(()=>n&&r(""),[n,r])},a.createElement(Gi,{scope:s.__scopeAccordion,collapsible:n},a.createElement(Xi,ts({},f,{ref:e}))))}),S1=a.forwardRef((s,e)=>{const{value:t,defaultValue:o,onValueChange:i=()=>{},...n}=s,[f=[],l]=Gs({prop:t,defaultProp:o,onChange:i}),r=a.useCallback(c=>l((d=[])=>[...d,c]),[l]),p=a.useCallback(c=>l((d=[])=>d.filter(b=>b!==c)),[l]);return a.createElement(Yi,{scope:s.__scopeAccordion,value:f,onItemOpen:r,onItemClose:p},a.createElement(Gi,{scope:s.__scopeAccordion,collapsible:!0},a.createElement(Xi,ts({},n,{ref:e}))))}),[D1,Gt]=Yt(me),Xi=a.forwardRef((s,e)=>{const{__scopeAccordion:t,disabled:o,dir:i,orientation:n="vertical",...f}=s,l=a.useRef(null),r=ws(l,e),p=$1(t),d=Ut(i)==="ltr",b=fs(s.onKeyDown,_=>{var y;if(!w1.includes(_.key))return;const v=_.target,m=p().filter(R=>{var O;return!((O=R.ref.current)!==null&&O!==void 0&&O.disabled)}),k=m.findIndex(R=>R.ref.current===v),h=m.length;if(k===-1)return;_.preventDefault();let C=k;const x=0,g=h-1,I=()=>{C=k+1,C>g&&(C=x)},E=()=>{C=k-1,C<x&&(C=g)};switch(_.key){case"Home":C=x;break;case"End":C=g;break;case"ArrowRight":n==="horizontal"&&(d?I():E());break;case"ArrowDown":n==="vertical"&&I();break;case"ArrowLeft":n==="horizontal"&&(d?E():I());break;case"ArrowUp":n==="vertical"&&E();break}const P=C%h;(y=m[P].ref.current)===null||y===void 0||y.focus()});return a.createElement(D1,{scope:t,disabled:o,direction:i,orientation:n},a.createElement(pn.Slot,{scope:t},a.createElement(xs.div,ts({},f,{"data-orientation":n,ref:r,onKeyDown:o?void 0:b}))))}),Lo="AccordionItem",[O1,cn]=Yt(Lo),j1=a.forwardRef((s,e)=>{const{__scopeAccordion:t,value:o,...i}=s,n=Gt(Lo,t),f=E1(Lo,t),l=dn(t),r=se(),p=o&&f.value.includes(o)||!1,c=n.disabled||s.disabled;return a.createElement(O1,{scope:t,open:p,disabled:c,triggerId:r},a.createElement(g1,ts({"data-orientation":n.orientation,"data-state":sf(p)},l,i,{ref:e,disabled:c,open:p,onOpenChange:d=>{d?f.onItemOpen(o):f.onItemClose(o)}})))}),T1="AccordionHeader",M1=a.forwardRef((s,e)=>{const{__scopeAccordion:t,...o}=s,i=Gt(me,t),n=cn(T1,t);return a.createElement(xs.h3,ts({"data-orientation":i.orientation,"data-state":sf(n.open),"data-disabled":n.disabled?"":void 0},o,{ref:e}))}),L8="AccordionTrigger",Ji=a.forwardRef((s,e)=>{const{__scopeAccordion:t,...o}=s,i=Gt(me,t),n=cn(L8,t),f=R1(L8,t),l=dn(t);return a.createElement(pn.ItemSlot,{scope:t},a.createElement(y1,ts({"aria-disabled":n.open&&!f.collapsible||void 0,"data-orientation":i.orientation,id:n.triggerId},l,o,{ref:e})))}),V1="AccordionContent",Qi=a.forwardRef((s,e)=>{const{__scopeAccordion:t,...o}=s,i=Gt(me,t),n=cn(V1,t),f=dn(t);return a.createElement(x1,ts({role:"region","aria-labelledby":n.triggerId,"data-orientation":i.orientation},f,o,{ref:e,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...s.style}}))});function sf(s){return s?"open":"closed"}const zo=Ui,ef=j1,A1=M1,N1=Ji,W1=Qi;function L1(...s){const e=s.filter(t=>!!t&&t!==" ").map(t=>t==null?void 0:t.toString().trim());return e.length===0?void 0:e.join(" ")}function z1(s,e){let t=!1,o={},i={},n={};for(const f in s)if(f[0]==="_"&&f[1]==="_"){const l=f.substring(2);n[l]=s[f]}else e.properties.has(f)?(t=!0,o[f]=s[f]):i[f]=s[f];return{hasAtomProps:t,atomProps:o,otherProps:i,customProps:n}}function H1({atoms:s,defaultClassName:e}){const t=a.forwardRef(({as:o="div",className:i,style:n,...f},l)=>{const{atomProps:r,customProps:p,otherProps:c}=z1(f,s);return a.createElement(o,{ref:l,style:{...n,...p},...c,className:L1(i,s(r),e)})});return t.displayName="DessertBox",t}var Ze={spacing:{0:"var(--mu-spacing-0)",1:"var(--mu-spacing-1)",2:"var(--mu-spacing-2)",3:"var(--mu-spacing-3)",4:"var(--mu-spacing-4)",5:"var(--mu-spacing-5)",6:"var(--mu-spacing-6)",7:"var(--mu-spacing-7)",8:"var(--mu-spacing-8)",9:"var(--mu-spacing-9)",10:"var(--mu-spacing-10)",11:"var(--mu-spacing-11)",12:"var(--mu-spacing-12)",14:"var(--mu-spacing-14)",16:"var(--mu-spacing-16)",20:"var(--mu-spacing-20)",24:"var(--mu-spacing-24)",28:"var(--mu-spacing-28)",32:"var(--mu-spacing-32)",36:"var(--mu-spacing-36)",40:"var(--mu-spacing-40)",44:"var(--mu-spacing-44)",48:"var(--mu-spacing-48)",52:"var(--mu-spacing-52)",px:"var(--mu-spacing-px)","0.5":"var(--mu-spacing-0-5)","1.5":"var(--mu-spacing-1-5)","2.5":"var(--mu-spacing-2-5)","3.5":"var(--mu-spacing-3-5)"},colors:{background:{accent1:"var(--mu-colors-background-accent1)",accent1Hovered:"var(--mu-colors-background-accent1-hovered)",accent1Focused:"var(--mu-colors-background-accent1-focused)",accent1Pressed:"var(--mu-colors-background-accent1-pressed)",buttonCriticalDisabled:"var(--mu-colors-background-button-critical-disabled)",buttonCriticalPrimary:"var(--mu-colors-background-button-critical-primary)",buttonCriticalPrimaryFocused:"var(--mu-colors-background-button-critical-primary-focused)",buttonCriticalPrimaryHovered:"var(--mu-colors-background-button-critical-primary-hovered)",buttonCriticalPrimaryPressed:"var(--mu-colors-background-button-critical-primary-pressed)",buttonDefaultDisabled:"var(--mu-colors-background-button-default-disabled)",buttonDefaultPrimary:"var(--mu-colors-background-button-default-primary)",buttonDefaultPrimaryFocused:"var(--mu-colors-background-button-default-primary-focused)",buttonDefaultPrimaryHovered:"var(--mu-colors-background-button-default-primary-hovered)",buttonDefaultPrimaryPressed:"var(--mu-colors-background-button-default-primary-pressed)",buttonDefaultSecondary:"var(--mu-colors-background-button-default-secondary)",buttonDefaultSecondaryFocused:"var(--mu-colors-background-button-default-secondary-focused)",buttonDefaultSecondaryHovered:"var(--mu-colors-background-button-default-secondary-hovered)",buttonDefaultSecondaryPressed:"var(--mu-colors-background-button-default-secondary-pressed)",buttonDefaultTertiary:"var(--mu-colors-background-button-default-tertiary)",buttonDefaultTertiaryFocused:"var(--mu-colors-background-button-default-tertiary-focused)",buttonDefaultTertiaryHovered:"var(--mu-colors-background-button-default-tertiary-hovered)",buttonDefaultTertiaryPressed:"var(--mu-colors-background-button-default-tertiary-pressed)",critical1:"var(--mu-colors-background-critical1)",critical1Focused:"var(--mu-colors-background-critical1-focused)",critical1Hovered:"var(--mu-colors-background-critical1-hovered)",critical1Pressed:"var(--mu-colors-background-critical1-pressed)",critical2:"var(--mu-colors-background-critical2)",default1:"var(--mu-colors-background-default1)",default1Focused:"var(--mu-colors-background-default1-focused)",default1Hovered:"var(--mu-colors-background-default1-hovered)",default1Pressed:"var(--mu-colors-background-default1-pressed)",default2:"var(--mu-colors-background-default2)",default3:"var(--mu-colors-background-default3)",defaultDisabled:"var(--mu-colors-background-default-disabled)",info1:"var(--mu-colors-background-info1)",success1:"var(--mu-colors-background-success1)",warning1:"var(--mu-colors-background-warning1)"},text:{accent1:"var(--mu-colors-text-accent1)",buttonCriticalDisabled:"var(--mu-colors-text-button-critical-disabled)",buttonCriticalPrimary:"var(--mu-colors-text-button-critical-primary)",buttonDefaultPrimary:"var(--mu-colors-text-button-default-primary)",buttonDefaultSecondary:"var(--mu-colors-text-button-default-secondary)",buttonDefaultTertiary:"var(--mu-colors-text-button-default-tertiary)",critical1:"var(--mu-colors-text-critical1)",critical2:"var(--mu-colors-text-critical2)",default1:"var(--mu-colors-text-default1)",default2:"var(--mu-colors-text-default2)",defaultDisabled:"var(--mu-colors-text-default-disabled)",info1:"var(--mu-colors-text-info1)",success1:"var(--mu-colors-text-success1)",warning1:"var(--mu-colors-text-warning1)"},border:{accent1:"var(--mu-colors-border-accent1)",critical1:"var(--mu-colors-border-critical1)",default1:"var(--mu-colors-border-default1)",default1Focused:"var(--mu-colors-border-default1-focused)",default1Hovered:"var(--mu-colors-border-default1-hovered)",default2:"var(--mu-colors-border-default2)",defaultDisabled:"var(--mu-colors-border-default-disabled)",info1:"var(--mu-colors-border-info1)",success1:"var(--mu-colors-border-success1)",warning1:"var(--mu-colors-border-warning1)"}},fontSize:{1:"var(--mu-font-size-1)",2:"var(--mu-font-size-2)",3:"var(--mu-font-size-3)",4:"var(--mu-font-size-4)",5:"var(--mu-font-size-5)",6:"var(--mu-font-size-6)",7:"var(--mu-font-size-7)",8:"var(--mu-font-size-8)",9:"var(--mu-font-size-9)",10:"var(--mu-font-size-10)",11:"var(--mu-font-size-11)"},borderRadius:{1:"var(--mu-border-radius-1)",2:"var(--mu-border-radius-2)",3:"var(--mu-border-radius-3)",4:"var(--mu-border-radius-4)",5:"var(--mu-border-radius-5)",6:"var(--mu-border-radius-6)",7:"var(--mu-border-radius-7)",8:"var(--mu-border-radius-8)",9:"var(--mu-border-radius-9)"},lineHeight:{1:"var(--mu-line-height-1)",2:"var(--mu-line-height-2)",3:"var(--mu-line-height-3)",4:"var(--mu-line-height-4)",5:"var(--mu-line-height-5)",6:"var(--mu-line-height-6)",7:"var(--mu-line-height-7)",8:"var(--mu-line-height-8)",9:"var(--mu-line-height-9)",10:"var(--mu-line-height-10)",11:"var(--mu-line-height-11)"},fontWeight:{light:"var(--mu-font-weight-light)",regular:"var(--mu-font-weight-regular)",medium:"var(--mu-font-weight-medium)",bold:"var(--mu-font-weight-bold)"},letterSpacing:{1:"var(--mu-letter-spacing-1)",2:"var(--mu-letter-spacing-2)",3:"var(--mu-letter-spacing-3)",4:"var(--mu-letter-spacing-4)",5:"var(--mu-letter-spacing-5)",6:"var(--mu-letter-spacing-6)",7:"var(--mu-letter-spacing-7)",8:"var(--mu-letter-spacing-8)",9:"var(--mu-letter-spacing-9)",10:"var(--mu-letter-spacing-10)",11:"var(--mu-letter-spacing-11)"},boxShadow:{defaultFocused:"var(--mu-box-shadow-default-focused)",defaultHovered:"var(--mu-box-shadow-default-hovered)",defaultOverlay:"var(--mu-box-shadow-default-overlay)",defaultModal:"var(--mu-box-shadow-default-modal)"},borderWidth:{0:"var(--mu-border-width-0)",1:"var(--mu-border-width-1)"}};function Ho(s){var e=s.match(/^var\((.*)\)$/);return e?e[1]:s}function tf(s,e){var t=s;for(var o of e){if(!(o in t))throw new Error("Path ".concat(e.join(" -> ")," does not exist in object"));t=t[o]}return t}function un(s,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],o=s.constructor();for(var i in s){var n=s[i],f=[...t,i];typeof n=="string"||typeof n=="number"||n==null?o[i]=e(n,f):typeof n=="object"&&!Array.isArray(n)?o[i]=un(n,e,f):console.warn('Skipping invalid key "'.concat(f.join("."),'". Should be a string, number, null or object. Received: "').concat(Array.isArray(n)?"Array":typeof n,'"'))}return o}function q1(s,e){var t={};if(typeof e=="object"){var o=s;un(e,(l,r)=>{if(l!=null){var p=tf(o,r);t[Ho(p)]=String(l)}})}else{var i=s;for(var n in i){var f=i[n];f!=null&&(t[Ho(n)]=f)}}return Object.defineProperty(t,"toString",{value:function(){return Object.keys(this).map(r=>"".concat(r,":").concat(this[r])).join(";")},writable:!1}),t}function z8(s,e,t){s.style.setProperty(Ho(e),t)}function F1(s,e,t){if(typeof t=="object"){var o=e;un(t,(l,r)=>{l!=null&&z8(s,tf(o,r),String(l))})}else{var i=e;for(var n in i){var f=i[n];f!=null&&z8(s,n,i[n])}}}const of={0:"0px",px:"1px",.5:"2px",1:"4px",1.5:"6px",2:"8px",2.5:"10px",3:"12px",3.5:"14px",4:"16px",5:"20px",6:"24px",7:"28px",8:"32px",9:"36px",10:"40px",11:"44px",12:"48px",14:"56px",16:"64px",20:"80px",24:"96px",28:"112px",32:"128px",36:"144px",40:"160px",44:"176px",48:"192px",52:"208px"},nf={1:"11px",2:"12px",3:"13px",4:"14px",5:"16px",6:"18px",7:"20px",8:"22px",9:"24px",10:"28px",11:"34px"},ff={1:"2px",2:"4px",3:"6px",4:"8px",5:"12px",6:"14px",7:"16px",8:"18px",9:"20px"},lf={1:"16px",2:"18px",3:"20px",4:"20px",5:"22px",6:"24px",7:"26px",8:"28px",9:"30px",10:"36px",11:"40px"},af={light:"300",regular:"400",medium:"500",bold:"600"},rf={1:"0.025em",2:"0.015em",3:"0.015em",4:"0.01em",5:"0em",6:"0em",7:"0em",8:"0em",9:"-0.01em",10:"-0.01em",11:"-0.01em"},pf={0:"0px",1:"1px"},K1={spacing:of,colors:{background:{accent1:"hsla(215, 100%, 62%, 1)",accent1Hovered:"hsla(215, 100%, 51%, 0.16)",accent1Pressed:"hsla(215, 100%, 51%, 0.32)",accent1Focused:"hsla(215, 100%, 51%, 0.32)",buttonCriticalDisabled:"hsla(204, 16%, 94%, 1)",buttonCriticalPrimary:"hsla(11, 100%, 56%, 1)",buttonCriticalPrimaryFocused:"hsla(11, 100%, 42%, 1)",buttonCriticalPrimaryHovered:"hsla(11, 100%, 42%, 1)",buttonCriticalPrimaryPressed:"hsla(11, 100%, 29%, 1)",buttonDefaultDisabled:"hsla(211, 32%, 21%, 1)",buttonDefaultPrimary:"hsla(0, 0%, 100%, 1)",buttonDefaultPrimaryFocused:"hsla(210, 24%, 86%, 1)",buttonDefaultPrimaryHovered:"hsla(211, 24%, 86%, 1)",buttonDefaultPrimaryPressed:"hsla(211, 16%, 68%, 1)",buttonDefaultSecondary:"hsla(232, 17%, 18%, 1)",buttonDefaultSecondaryFocused:"hsla(211, 32%, 19%, 1)",buttonDefaultSecondaryHovered:"hsla(211, 32%, 19%, 1)",buttonDefaultSecondaryPressed:"hsla(211, 24%, 26%, 1)",buttonDefaultTertiary:"hsla(180, 4%, 15%, 0)",buttonDefaultTertiaryFocused:"hsla(0, 0%, 100%, 0.06)",buttonDefaultTertiaryHovered:"hsla(0, 0%, 100%, 0.06)",buttonDefaultTertiaryPressed:"hsla(0, 0%, 100%, 0.12)",critical1:"hsla(11, 100%, 96%, 1)",critical1Focused:"hsla(11, 100%, 46%, 0.2)",critical1Hovered:"hsla(11, 100%, 46%, 0.2)",critical1Pressed:"hsla(11, 100%, 46%, 0.32)",critical2:"hsla(11, 100%, 56%, 1)",default1:"hsla(232, 17%, 18%, 1)",default1Focused:"hsla(0, 0%, 100%, 0.06)",default1Hovered:"hsla(0, 0%, 100%, 0.06)",default1Pressed:"hsla(0, 0%, 100%, 0.12)",default2:"hsla(231, 17%, 16%, 1)",default3:"hsla(211, 42%, 12%, 1)",defaultDisabled:"hsla(211, 32%, 21%, 1)",info1:"hsla(215, 100%, 62%, 1)",success1:"hsla(173, 100%, 32%, 1)",warning1:"hsla(42, 100%, 84%, 1)"},text:{accent1:"hsla(215, 100%, 83%, 1)",buttonCriticalDisabled:"hsla(212, 14%, 67%, 1)",buttonCriticalPrimary:"hsla(0, 0%, 100%, 1)",buttonDefaultPrimary:"hsla(212, 44%, 13%, 1)",buttonDefaultSecondary:"hsla(0, 0%, 100%, 1)",buttonDefaultTertiary:"hsla(0, 0%, 100%, 1)",critical1:"hsla(11, 100%, 82%, 1)",critical2:"hsla(11, 100%, 58%, 1)",default1:"hsla(0, 0%, 100%, 1)",default2:"hsla(230, 10%, 53%, 1)",defaultDisabled:"hsla(212, 19%, 39%, 1)",info1:"hsla(215, 100%, 83%, 1)",success1:"hsla(173, 79%, 62%, 1)",warning1:"hsla(36, 44%, 50%, 1)"},border:{accent1:"hsla(215, 100%, 39%, 1)",critical1:"hsla(11, 100%, 35%, 1)",default1:"hsla(210, 32%, 25%, 1)",default1Focused:"hsla(212, 24%, 32%, 1)",default1Hovered:"hsla(210, 32%, 25%, 1)",defaultDisabled:"hsla(231, 18%, 23%, 1)",default2:"hsla(211, 21%, 39%, 1)",info1:"hsla(210, 32%, 25%, 1)",success1:"hsl(173, 79%, 62%, 1)",warning1:"hsla(36, 44%, 50%, 1)"}},fontSize:nf,borderRadius:ff,lineHeight:lf,fontWeight:af,letterSpacing:rf,boxShadow:{defaultFocused:"0px 1px 1px 0px hsla(0, 0%, 0%, 0.32)",defaultHovered:"0px 2px 3px 0px hsla(0, 0%, 0%, 0.28)",defaultOverlay:"0px 3px 8px 0px hsla(0, 0%, 0%, 0.24)",defaultModal:"0px 8px 16px 0px hsla(0, 0%, 0%, 0.2)"},borderWidth:pf},B1={spacing:of,colors:{background:{accent1:"hsla(215, 100%, 51%, 1)",accent1Hovered:"hsla(215, 100%, 51%, 0.12)",accent1Focused:"hsla(215, 100%, 51%, 0.32)",accent1Pressed:"hsla(215, 100%, 51%, 0.24)",buttonCriticalDisabled:"hsla(204, 16%, 94%, 1)",buttonCriticalPrimary:"hsla(11, 100%, 46%, 1)",buttonCriticalPrimaryFocused:"hsla(11, 100%, 63%, 1)",buttonCriticalPrimaryHovered:"hsla(11, 100%, 63%, 1)",buttonCriticalPrimaryPressed:"hsla(11, 100%, 29%, 1)",buttonDefaultDisabled:"hsla(211, 16%, 94%, 1)",buttonDefaultPrimary:"hsla(211, 45%, 13%, 1)",buttonDefaultPrimaryFocused:"hsla(211, 22%, 26%, 1)",buttonDefaultPrimaryHovered:"hsla(211, 22%, 26%, 1)",buttonDefaultPrimaryPressed:"hsla(211, 45%, 3%, 1)",buttonDefaultSecondary:"hsla(0, 0%, 100%, 1)",buttonDefaultSecondaryFocused:"hsla(220, 18%, 97%, 1)",buttonDefaultSecondaryHovered:"hsla(220, 18%, 97%, 1)",buttonDefaultSecondaryPressed:"hsla(210, 15%, 87%, 1)",buttonDefaultTertiary:"hsla(180, 4%, 15%, 0)",buttonDefaultTertiaryFocused:"hsla(180, 4%, 15%, 0.08)",buttonDefaultTertiaryHovered:"hsla(180, 4%, 15%, 0.06)",buttonDefaultTertiaryPressed:"hsla(180, 4%, 15%, 0.12)",critical1:"hsla(11, 100%, 96%, 1)",critical1Focused:"hsla(11, 100%, 59%, 0.07)",critical1Hovered:"hsla(11, 100%, 45%, 0.16)",critical1Pressed:"hsla(11, 100%, 45%, 0.32)",critical2:"hsla(11, 100%, 46%, 1)",default1:"hsla(0, 0%, 100%, 1)",default1Focused:"hsla(180, 4%, 15%, 0.08)",default1Hovered:"hsla(180, 4%, 15%, 0.06)",default1Pressed:"hsla(180, 4%, 15%, 0.12)",default2:"hsla(120, 11%, 98%, 1)",default3:"hsla(180, 1%, 85%, 1)",defaultDisabled:"hsla(211, 16%, 94%, 1)",info1:"hsla(233, 100%, 91%, 1)",success1:"hsla(173, 43%, 80%, 1)",warning1:"hsla(42, 100%, 84%, 1)"},text:{accent1:"hsla(234, 96%, 56%, 1)",buttonCriticalDisabled:"hsla(212, 14%, 67%, 1)",buttonCriticalPrimary:"hsla(0, 0%, 100%, 1)",buttonDefaultPrimary:"hsla(0, 0%, 100%, 1)",buttonDefaultSecondary:"hsla(180, 4%, 15%, 1)",buttonDefaultTertiary:"hsla(180, 4%, 15%, 1)",critical1:"hsla(11, 100%, 29%, 1)",critical2:"hsla(11, 100%, 45%, 1)",default1:"hsla(180, 4%, 15%, 1)",default2:"hsla(180, 1%, 49%, 1)",defaultDisabled:"hsla(212, 14%, 67%, 1)",info1:"hsla(234, 100%, 42%, 1)",success1:"hsla(169, 42%, 20%, 1)",warning1:"hsla(36, 44%, 50%, 1)"},border:{accent1:"hsla(215, 100%, 74%, 1)",critical1:"hsla(11, 100%, 29%, 1)",default1:"hsla(210, 15%, 87%, 1)",default1Focused:"hsla(212, 14%, 77%, 1)",default1Hovered:"hsla(210, 15%, 87%, 1)",default2:"hsla(211, 13%, 66%, 1)",defaultDisabled:"hsla(210, 15%, 87%, 1)",info1:"hsla(234, 100%, 42%, 1)",success1:"hsla(173, 97%, 15%, 1)",warning1:"hsla(36, 44%, 50%, 1)"}},fontSize:nf,borderRadius:ff,lineHeight:lf,fontWeight:af,letterSpacing:rf,boxShadow:{defaultFocused:"0px 1px 1px 0px hsla(212, 44%, 13%, 0.16)",defaultHovered:"0px 2px 3px 0px hsla(211, 42%, 16%, 0.1)",defaultOverlay:"0px 3px 8px 0px hsla(211, 42%, 16%, 0.08)",defaultModal:"0px 8px 16px 0px hsla(211, 42%, 16%, 0.08)"},borderWidth:pf},Tt={defaultLight:B1,defaultDark:K1},df=a.createContext(null),Z1=({children:s,defaultTheme:e})=>{const[t,o]=a.useState(e);return typeof document<"u"&&F1(document.documentElement,Ze,Tt[t]),u.jsx(df.Provider,{value:{theme:t,setTheme:o,themeValues:Tt[t]},children:s})},U1=()=>{const s=a.useContext(df);if(s===null)throw new Error("useTheme must be used within a MacawUI ThemeContext");return s},Y1=({children:s,defaultTheme:e="defaultLight"})=>u.jsx(Z1,{defaultTheme:e,children:u.jsx("main",{id:"macaw-ui-root",children:s})});function G1(s,e){if(typeof s!="object"||s===null)return s;var t=s[Symbol.toPrimitive];if(t!==void 0){var o=t.call(s,e||"default");if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(s)}function X1(s){var e=G1(s,"string");return typeof e=="symbol"?e:String(e)}function J1(s,e,t){return e=X1(e),e in s?Object.defineProperty(s,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):s[e]=t,s}function H8(s,e){var t=Object.keys(s);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(s);e&&(o=o.filter(function(i){return Object.getOwnPropertyDescriptor(s,i).enumerable})),t.push.apply(t,o)}return t}function go(s){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?H8(Object(t),!0).forEach(function(o){J1(s,o,t[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(t)):H8(Object(t)).forEach(function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(t,o))})}return s}var Q1=s=>function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];var i=Object.assign({},...t.map(r=>r.styles)),n=Object.keys(i),f=n.filter(r=>"mappings"in i[r]),l=r=>{var p=[],c={},d=go({},r),b=!1;for(var _ of f){var y=r[_];if(y!=null){var v=i[_];b=!0;for(var m of v.mappings)c[m]=y,d[m]==null&&delete d[m]}}var k=b?go(go({},c),d):r,h=function(){var I=k[C],E=i[C];try{if(E.mappings)return"continue";if(typeof I=="string"||typeof I=="number"){if(process.env.NODE_ENV!=="production"&&!E.values[I].defaultClass)throw new Error;p.push(E.values[I].defaultClass)}else if(Array.isArray(I))for(var P=0;P<I.length;P++){var R=I[P];if(R!=null){var O=E.responsiveArray[P];if(process.env.NODE_ENV!=="production"&&!E.values[R].conditions[O])throw new Error;p.push(E.values[R].conditions[O])}}else for(var V in I){var A=I[V];if(A!=null){if(process.env.NODE_ENV!=="production"&&!E.values[A].conditions[V])throw new Error;p.push(E.values[A].conditions[V])}}}catch(M){if(process.env.NODE_ENV!=="production"){class $ extends Error{constructor(j){super(j),this.name="SprinklesError"}}var Z=S=>typeof S=="string"?'"'.concat(S,'"'):S,N=(S,j,T)=>{throw new $('"'.concat(S,'" has no value ').concat(Z(j),". Possible values are ").concat(Object.keys(T).map(Z).join(", ")))};if(!E)throw new $('"'.concat(C,'" is not a valid sprinkle'));if((typeof I=="string"||typeof I=="number")&&(I in E.values||N(C,I,E.values),!E.values[I].defaultClass))throw new $('"'.concat(C,'" has no default condition. You must specify which conditions to target explicitly. Possible options are ').concat(Object.keys(E.values[I].conditions).map(Z).join(", ")));if(typeof I=="object"){if(!("conditions"in E.values[Object.keys(E.values)[0]]))throw new $('"'.concat(C,'" is not a conditional property'));if(Array.isArray(I)){if(!("responsiveArray"in E))throw new $('"'.concat(C,'" does not support responsive arrays'));var B=E.responsiveArray.length;if(B<I.length)throw new $('"'.concat(C,'" only supports up to ').concat(B," breakpoints. You passed ").concat(I.length));for(var H of I)E.values[H]||N(C,H,E.values)}else for(var U in I){var K=I[U];if(K!=null&&(E.values[K]||N(C,K,E.values),!E.values[K].conditions[U]))throw new $('"'.concat(C,'" has no condition named ').concat(Z(U),". Possible values are ").concat(Object.keys(E.values[K].conditions).map(Z).join(", ")))}}}throw M}};for(var C in k)var x=h();return s(p.join(" "))};return Object.assign(l,{properties:new Set(n)})},sp=s=>s,ep=function(){return Q1(sp)(...arguments)},Xs=ep({conditions:{defaultCondition:"mobile",conditionNames:["mobile","tablet","desktop"],responsiveArray:void 0},styles:{padding:{mappings:["paddingTop","paddingBottom","paddingLeft","paddingRight"]},paddingX:{mappings:["paddingLeft","paddingRight"]},paddingY:{mappings:["paddingTop","paddingBottom"]},margin:{mappings:["marginTop","marginBottom","marginLeft","marginRight"]},marginX:{mappings:["marginLeft","marginRight"]},marginY:{mappings:["marginTop","marginBottom"]},placeItems:{mappings:["alignItems","justifyContent"]},borderWidth:{mappings:["borderTopWidth","borderBottomWidth","borderLeftWidth","borderRightWidth"]},borderXWidth:{mappings:["borderLeftWidth","borderRightWidth"]},borderYWidth:{mappings:["borderTopWidth","borderBottomWidth"]},borderStyle:{mappings:["borderTopStyle","borderBottomStyle","borderLeftStyle","borderRightStyle"]},borderXStyle:{mappings:["borderLeftStyle","borderRightStyle"]},borderYStyle:{mappings:["borderTopStyle","borderBottomStyle"]},inset:{mappings:["top","bottom","left","right"]},borderRadius:{mappings:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},overflow:{mappings:["overflowX","overflowY"]},flex:{mappings:["flexGrow","flexShrink","flexBasis"]},display:{values:{none:{conditions:{mobile:"_18fs8ps0",tablet:"_18fs8ps1",desktop:"_18fs8ps2"},defaultClass:"_18fs8ps0"},flex:{conditions:{mobile:"_18fs8ps3",tablet:"_18fs8ps4",desktop:"_18fs8ps5"},defaultClass:"_18fs8ps3"},"inline-flex":{conditions:{mobile:"_18fs8ps6",tablet:"_18fs8ps7",desktop:"_18fs8ps8"},defaultClass:"_18fs8ps6"},grid:{conditions:{mobile:"_18fs8ps9",tablet:"_18fs8psa",desktop:"_18fs8psb"},defaultClass:"_18fs8ps9"},"inline-grid":{conditions:{mobile:"_18fs8psc",tablet:"_18fs8psd",desktop:"_18fs8pse"},defaultClass:"_18fs8psc"},block:{conditions:{mobile:"_18fs8psf",tablet:"_18fs8psg",desktop:"_18fs8psh"},defaultClass:"_18fs8psf"},"inline-block":{conditions:{mobile:"_18fs8psi",tablet:"_18fs8psj",desktop:"_18fs8psk"},defaultClass:"_18fs8psi"},contents:{conditions:{mobile:"_18fs8psl",tablet:"_18fs8psm",desktop:"_18fs8psn"},defaultClass:"_18fs8psl"}}},flexDirection:{values:{row:{conditions:{mobile:"_18fs8pso",tablet:"_18fs8psp",desktop:"_18fs8psq"},defaultClass:"_18fs8pso"},column:{conditions:{mobile:"_18fs8psr",tablet:"_18fs8pss",desktop:"_18fs8pst"},defaultClass:"_18fs8psr"}}},alignItems:{values:{stretch:{conditions:{mobile:"_18fs8psu",tablet:"_18fs8psv",desktop:"_18fs8psw"},defaultClass:"_18fs8psu"},"flex-start":{conditions:{mobile:"_18fs8psx",tablet:"_18fs8psy",desktop:"_18fs8psz"},defaultClass:"_18fs8psx"},center:{conditions:{mobile:"_18fs8ps10",tablet:"_18fs8ps11",desktop:"_18fs8ps12"},defaultClass:"_18fs8ps10"},"flex-end":{conditions:{mobile:"_18fs8ps13",tablet:"_18fs8ps14",desktop:"_18fs8ps15"},defaultClass:"_18fs8ps13"},start:{conditions:{mobile:"_18fs8ps16",tablet:"_18fs8ps17",desktop:"_18fs8ps18"},defaultClass:"_18fs8ps16"},end:{conditions:{mobile:"_18fs8ps19",tablet:"_18fs8ps1a",desktop:"_18fs8ps1b"},defaultClass:"_18fs8ps19"},baseline:{conditions:{mobile:"_18fs8ps1c",tablet:"_18fs8ps1d",desktop:"_18fs8ps1e"},defaultClass:"_18fs8ps1c"}}},justifyContent:{values:{stretch:{conditions:{mobile:"_18fs8ps1f",tablet:"_18fs8ps1g",desktop:"_18fs8ps1h"},defaultClass:"_18fs8ps1f"},"flex-start":{conditions:{mobile:"_18fs8ps1i",tablet:"_18fs8ps1j",desktop:"_18fs8ps1k"},defaultClass:"_18fs8ps1i"},center:{conditions:{mobile:"_18fs8ps1l",tablet:"_18fs8ps1m",desktop:"_18fs8ps1n"},defaultClass:"_18fs8ps1l"},"flex-end":{conditions:{mobile:"_18fs8ps1o",tablet:"_18fs8ps1p",desktop:"_18fs8ps1q"},defaultClass:"_18fs8ps1o"},"space-between":{conditions:{mobile:"_18fs8ps1r",tablet:"_18fs8ps1s",desktop:"_18fs8ps1t"},defaultClass:"_18fs8ps1r"},"space-around":{conditions:{mobile:"_18fs8ps1u",tablet:"_18fs8ps1v",desktop:"_18fs8ps1w"},defaultClass:"_18fs8ps1u"},"space-evenly":{conditions:{mobile:"_18fs8ps1x",tablet:"_18fs8ps1y",desktop:"_18fs8ps1