@antoniobenincasa/ui 0.11.1 → 0.11.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -48,7 +48,7 @@ You can add a description to the \`${ki}\` by passing a \`${Ii}\` component as a
48
48
 
49
49
  Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${ki}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.
50
50
 
51
- For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return l.useEffect(()=>{document.getElementById(e.current?.getAttribute(`aria-describedby`))||console.warn(t)},[t,e]),null},Ui=Si,Wi=wi,Gi=Ei,Ki=Oi,qi=Ni,Ji=zi,Yi=Vi,Xi=Fi,Zi=Li,Qi=Symbol.for(`react.lazy`),$i=l.use;function ea(e){return typeof e==`object`&&!!e&&`then`in e}function ta(e){return typeof e==`object`&&!!e&&`$$typeof`in e&&e.$$typeof===Qi&&`_payload`in e&&ea(e._payload)}function na(e){let t=ia(e),n=l.forwardRef((e,n)=>{let{children:r,...i}=e;ta(r)&&typeof $i==`function`&&(r=$i(r._payload));let a=l.Children.toArray(r),o=a.find(oa);if(o){let e=o.props.children,r=a.map(t=>t===o?l.Children.count(e)>1?l.Children.only(null):l.isValidElement(e)?e.props.children:null:t);return(0,d.jsx)(t,{...i,ref:n,children:l.isValidElement(e)?l.cloneElement(e,void 0,r):null})}return(0,d.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}var ra=na(`Slot`);function ia(e){let t=l.forwardRef((e,t)=>{let{children:n,...r}=e;if(ta(n)&&typeof $i==`function`&&(n=$i(n._payload)),l.isValidElement(n)){let e=ca(n),i=sa(r,n.props);return n.type!==l.Fragment&&(i.ref=t?G(t,e):e),l.cloneElement(n,i)}return l.Children.count(n)>1?l.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var aa=Symbol(`radix.slottable`);function oa(e){return l.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===aa}function sa(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function ca(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var la=e=>typeof e==`boolean`?`${e}`:e===0?`0`:e;const ua=_,da=(e,t)=>n=>{if(t?.variants==null)return ua(e,n?.class,n?.className);let{variants:r,defaultVariants:i}=t,a=Object.keys(r).map(e=>{let t=n?.[e],a=i?.[e];if(t===null)return null;let o=la(t)||la(a);return r[e][o]}),o=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return r===void 0||(e[n]=r),e},{});return ua(e,a,t?.compoundVariants?.reduce((e,t)=>{let{class:n,className:r,...a}=t;return Object.entries(a).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...i,...o}[t]):{...i,...o}[t]===n})?[...e,n,r]:e},[]),n?.class,n?.className)};var fa=da(`button`,{variants:{variant:{default:`button--default`,destructive:`button--destructive`,outline:`button--outline`,secondary:`button--secondary`,ghost:`button--ghost`,link:`button--link`},size:{default:`button--size-default`,sm:`button--size-sm`,lg:`button--size-lg`,icon:`button--size-icon`}},defaultVariants:{variant:`default`,size:`default`}});function pa({className:e,variant:t,size:n,asChild:r=!1,...i}){return(0,d.jsx)(r?ra:`button`,{"data-slot":`button`,"data-variant":t,"data-size":n,className:W(fa({variant:t,size:n,className:e})),...i})}function ma({...e}){return(0,d.jsx)(Ui,{"data-slot":`alert-dialog`,...e})}function ha({...e}){return(0,d.jsx)(Wi,{"data-slot":`alert-dialog-trigger`,...e})}function ga({...e}){return(0,d.jsx)(Gi,{"data-slot":`alert-dialog-portal`,...e})}function _a({className:e,...t}){return(0,d.jsx)(Ki,{"data-slot":`alert-dialog-overlay`,className:W(`data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50`,e),...t})}function va({className:e,size:t=`default`,...n}){return(0,d.jsxs)(ga,{children:[(0,d.jsx)(_a,{}),(0,d.jsx)(qi,{"data-slot":`alert-dialog-content`,"data-size":t,className:W(`bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 group/alert-dialog-content fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 data-[size=sm]:max-w-xs data-[size=default]:sm:max-w-lg`,e),...n})]})}function ya({className:e,...t}){return(0,d.jsx)(`div`,{"data-slot":`alert-dialog-header`,className:W(`grid grid-rows-[auto_1fr] place-items-center gap-1.5 text-center has-data-[slot=alert-dialog-media]:grid-rows-[auto_auto_1fr] has-data-[slot=alert-dialog-media]:gap-x-6 sm:group-data-[size=default]/alert-dialog-content:place-items-start sm:group-data-[size=default]/alert-dialog-content:text-left sm:group-data-[size=default]/alert-dialog-content:has-data-[slot=alert-dialog-media]:grid-rows-[auto_1fr]`,e),...t})}function ba({className:e,...t}){return(0,d.jsx)(`div`,{"data-slot":`alert-dialog-footer`,className:W(`flex flex-col-reverse gap-2 group-data-[size=sm]/alert-dialog-content:grid group-data-[size=sm]/alert-dialog-content:grid-cols-2 sm:flex-row sm:justify-end`,e),...t})}function xa({className:e,...t}){return(0,d.jsx)(Xi,{"data-slot":`alert-dialog-title`,className:W(`text-lg font-semibold sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2`,e),...t})}function Sa({className:e,...t}){return(0,d.jsx)(Zi,{"data-slot":`alert-dialog-description`,className:W(`text-muted-foreground text-sm`,e),...t})}function Ca({className:e,...t}){return(0,d.jsx)(`div`,{"data-slot":`alert-dialog-media`,className:W(`bg-muted mb-2 inline-flex size-16 items-center justify-center rounded-md sm:group-data-[size=default]/alert-dialog-content:row-span-2 *:[svg:not([class*='size-'])]:size-8`,e),...t})}function wa({className:e,variant:t=`default`,size:n=`default`,...r}){return(0,d.jsx)(pa,{variant:t,size:n,asChild:!0,children:(0,d.jsx)(Ji,{"data-slot":`alert-dialog-action`,className:W(e),...r})})}function Ta({className:e,variant:t=`outline`,size:n=`default`,...r}){return(0,d.jsx)(pa,{variant:t,size:n,asChild:!0,children:(0,d.jsx)(Yi,{"data-slot":`alert-dialog-cancel`,className:W(e),...r})})}var Ea=1,Da=.9,Oa=.8,ka=.17,Aa=.1,ja=.999,Ma=.9999,Na=.99,Pa=/[\\\/_+.#"@\[\(\{&]/,Fa=/[\\\/_+.#"@\[\(\{&]/g,Ia=/[\s-]/,La=/[\s-]/g;function Ra(e,t,n,r,i,a,o){if(a===t.length)return i===e.length?Ea:Na;var s=`${i},${a}`;if(o[s]!==void 0)return o[s];for(var c=r.charAt(a),l=n.indexOf(c,i),u=0,d,f,p,m;l>=0;)d=Ra(e,t,n,r,l+1,a+1,o),d>u&&(l===i?d*=Ea:Pa.test(e.charAt(l-1))?(d*=Oa,p=e.slice(i,l-1).match(Fa),p&&i>0&&(d*=ja**+p.length)):Ia.test(e.charAt(l-1))?(d*=Da,m=e.slice(i,l-1).match(La),m&&i>0&&(d*=ja**+m.length)):(d*=ka,i>0&&(d*=ja**+(l-i))),e.charAt(l)!==t.charAt(a)&&(d*=Ma)),(d<Aa&&n.charAt(l-1)===r.charAt(a+1)||r.charAt(a+1)===r.charAt(a)&&n.charAt(l-1)!==r.charAt(a))&&(f=Ra(e,t,n,r,l+1,a+2,o),f*Aa>d&&(d=f*Aa)),d>u&&(u=d),l=n.indexOf(c,l+1);return o[s]=u,u}function za(e){return e.toLowerCase().replace(La,` `)}function Ba(e,t,n){return e=n&&n.length>0?`${e+` `+n.join(` `)}`:e,Ra(e,t,za(e),za(t),0,0,{})}var Va=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=na(`Primitive.${t}`),r=l.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,d.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Ha=`[cmdk-group=""]`,Ua=`[cmdk-group-items=""]`,Wa=`[cmdk-group-heading=""]`,Ga=`[cmdk-item=""]`,Ka=`${Ga}:not([aria-disabled="true"])`,qa=`cmdk-item-select`,Ja=`data-value`,Ya=(e,t,n)=>Ba(e,t,n),Xa=l.createContext(void 0),Za=()=>l.useContext(Xa),Qa=l.createContext(void 0),$a=()=>l.useContext(Qa),eo=l.createContext(void 0),to=l.forwardRef((e,t)=>{let n=go(()=>({search:``,value:e.value??e.defaultValue??``,selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}})),r=go(()=>new Set),i=go(()=>new Map),a=go(()=>new Map),o=go(()=>new Set),s=mo(e),{label:c,children:u,value:d,onValueChange:f,filter:p,shouldFilter:m,loop:h,disablePointerSelection:g=!1,vimBindings:_=!0,...v}=e,y=Y(),b=Y(),x=Y(),S=l.useRef(null),C=yo();ho(()=>{if(d!==void 0){let e=d.trim();n.current.value=e,w.emit()}},[d]),ho(()=>{C(6,A)},[]);let w=l.useMemo(()=>({subscribe:e=>(o.current.add(e),()=>o.current.delete(e)),snapshot:()=>n.current,setState:(e,t,r)=>{var i,a,o;if(!Object.is(n.current[e],t)){if(n.current[e]=t,e===`search`)k(),D(),C(1,O);else if(e===`value`){if(document.activeElement.hasAttribute(`cmdk-input`)||document.activeElement.hasAttribute(`cmdk-root`)){let e=document.getElementById(x);e?e.focus():(i=document.getElementById(y))==null||i.focus()}if(C(7,()=>{n.current.selectedItemId=j()?.id,w.emit()}),r||C(5,A),s.current?.value!==void 0){let e=t??``;(o=(a=s.current).onValueChange)==null||o.call(a,e);return}}w.emit()}},emit:()=>{o.current.forEach(e=>e())}}),[]),T=l.useMemo(()=>({value:(e,t,r)=>{t!==a.current.get(e)?.value&&(a.current.set(e,{value:t,keywords:r}),n.current.filtered.items.set(e,E(t,r)),C(2,()=>{D(),w.emit()}))},item:(e,t)=>(r.current.add(e),t&&(i.current.has(t)?i.current.get(t).add(e):i.current.set(t,new Set([e]))),C(3,()=>{k(),D(),n.current.value||O(),w.emit()}),()=>{a.current.delete(e),r.current.delete(e),n.current.filtered.items.delete(e);let t=j();C(4,()=>{k(),t?.getAttribute(`id`)===e&&O(),w.emit()})}),group:e=>(i.current.has(e)||i.current.set(e,new Set),()=>{a.current.delete(e),i.current.delete(e)}),filter:()=>s.current.shouldFilter,label:c||e[`aria-label`],getDisablePointerSelection:()=>s.current.disablePointerSelection,listId:y,inputId:x,labelId:b,listInnerRef:S}),[]);function E(e,t){let r=s.current?.filter??Ya;return e?r(e,n.current.search,t):0}function D(){if(!n.current.search||s.current.shouldFilter===!1)return;let e=n.current.filtered.items,t=[];n.current.filtered.groups.forEach(n=>{let r=i.current.get(n),a=0;r.forEach(t=>{let n=e.get(t);a=Math.max(n,a)}),t.push([n,a])});let r=S.current;M().sort((t,n)=>{let r=t.getAttribute(`id`),i=n.getAttribute(`id`);return(e.get(i)??0)-(e.get(r)??0)}).forEach(e=>{let t=e.closest(Ua);t?t.appendChild(e.parentElement===t?e:e.closest(`${Ua} > *`)):r.appendChild(e.parentElement===r?e:e.closest(`${Ua} > *`))}),t.sort((e,t)=>t[1]-e[1]).forEach(e=>{let t=S.current?.querySelector(`${Ha}[${Ja}="${encodeURIComponent(e[0])}"]`);t?.parentElement.appendChild(t)})}function O(){let e=M().find(e=>e.getAttribute(`aria-disabled`)!==`true`)?.getAttribute(Ja);w.setState(`value`,e||void 0)}function k(){if(!n.current.search||s.current.shouldFilter===!1){n.current.filtered.count=r.current.size;return}n.current.filtered.groups=new Set;let e=0;for(let t of r.current){let r=E(a.current.get(t)?.value??``,a.current.get(t)?.keywords??[]);n.current.filtered.items.set(t,r),r>0&&e++}for(let[e,t]of i.current)for(let r of t)if(n.current.filtered.items.get(r)>0){n.current.filtered.groups.add(e);break}n.current.filtered.count=e}function A(){var e;let t=j();t&&(t.parentElement?.firstChild===t&&((e=t.closest(Ha)?.querySelector(Wa))==null||e.scrollIntoView({block:`nearest`})),t.scrollIntoView({block:`nearest`}))}function j(){return S.current?.querySelector(`${Ga}[aria-selected="true"]`)}function M(){return Array.from(S.current?.querySelectorAll(Ka)||[])}function N(e){let t=M()[e];t&&w.setState(`value`,t.getAttribute(Ja))}function P(e){var t;let n=j(),r=M(),i=r.findIndex(e=>e===n),a=r[i+e];(t=s.current)!=null&&t.loop&&(a=i+e<0?r[r.length-1]:i+e===r.length?r[0]:r[i+e]),a&&w.setState(`value`,a.getAttribute(Ja))}function F(e){let t=j()?.closest(Ha),n;for(;t&&!n;)t=e>0?fo(t,Ha):po(t,Ha),n=t?.querySelector(Ka);n?w.setState(`value`,n.getAttribute(Ja)):P(e)}let I=()=>N(M().length-1),ee=e=>{e.preventDefault(),e.metaKey?I():e.altKey?F(1):P(1)},te=e=>{e.preventDefault(),e.metaKey?N(0):e.altKey?F(-1):P(-1)};return l.createElement(Va.div,{ref:t,tabIndex:-1,...v,"cmdk-root":``,onKeyDown:e=>{var t;(t=v.onKeyDown)==null||t.call(v,e);let n=e.nativeEvent.isComposing||e.keyCode===229;if(!(e.defaultPrevented||n))switch(e.key){case`n`:case`j`:_&&e.ctrlKey&&ee(e);break;case`ArrowDown`:ee(e);break;case`p`:case`k`:_&&e.ctrlKey&&te(e);break;case`ArrowUp`:te(e);break;case`Home`:e.preventDefault(),N(0);break;case`End`:e.preventDefault(),I();break;case`Enter`:{e.preventDefault();let t=j();if(t){let e=new Event(qa);t.dispatchEvent(e)}}}}},l.createElement(`label`,{"cmdk-label":``,htmlFor:T.inputId,id:T.labelId,style:So},c),xo(e,e=>l.createElement(Qa.Provider,{value:w},l.createElement(Xa.Provider,{value:T},e))))}),no=l.forwardRef((e,t)=>{let n=Y(),r=l.useRef(null),i=l.useContext(eo),a=Za(),o=mo(e),s=o.current?.forceMount??i?.forceMount;ho(()=>{if(!s)return a.item(n,i?.id)},[s]);let c=vo(n,r,[e.value,e.children,r],e.keywords),u=$a(),d=_o(e=>e.value&&e.value===c.current),f=_o(e=>s||a.filter()===!1?!0:e.search?e.filtered.items.get(n)>0:!0);l.useEffect(()=>{let t=r.current;if(!(!t||e.disabled))return t.addEventListener(qa,p),()=>t.removeEventListener(qa,p)},[f,e.onSelect,e.disabled]);function p(){var e,t;m(),(t=(e=o.current).onSelect)==null||t.call(e,c.current)}function m(){u.setState(`value`,c.current,!0)}if(!f)return null;let{disabled:h,value:g,onSelect:_,forceMount:v,keywords:y,...b}=e;return l.createElement(Va.div,{ref:G(r,t),...b,id:n,"cmdk-item":``,role:`option`,"aria-disabled":!!h,"aria-selected":!!d,"data-disabled":!!h,"data-selected":!!d,onPointerMove:h||a.getDisablePointerSelection()?void 0:m,onClick:h?void 0:p},e.children)}),ro=l.forwardRef((e,t)=>{let{heading:n,children:r,forceMount:i,...a}=e,o=Y(),s=l.useRef(null),c=l.useRef(null),u=Y(),d=Za(),f=_o(e=>i||d.filter()===!1?!0:e.search?e.filtered.groups.has(o):!0);ho(()=>d.group(o),[]),vo(o,s,[e.value,e.heading,c]);let p=l.useMemo(()=>({id:o,forceMount:i}),[i]);return l.createElement(Va.div,{ref:G(s,t),...a,"cmdk-group":``,role:`presentation`,hidden:f?void 0:!0},n&&l.createElement(`div`,{ref:c,"cmdk-group-heading":``,"aria-hidden":!0,id:u},n),xo(e,e=>l.createElement(`div`,{"cmdk-group-items":``,role:`group`,"aria-labelledby":n?u:void 0},l.createElement(eo.Provider,{value:p},e))))}),io=l.forwardRef((e,t)=>{let{alwaysRender:n,...r}=e,i=l.useRef(null),a=_o(e=>!e.search);return!n&&!a?null:l.createElement(Va.div,{ref:G(i,t),...r,"cmdk-separator":``,role:`separator`})}),ao=l.forwardRef((e,t)=>{let{onValueChange:n,...r}=e,i=e.value!=null,a=$a(),o=_o(e=>e.search),s=_o(e=>e.selectedItemId),c=Za();return l.useEffect(()=>{e.value!=null&&a.setState(`search`,e.value)},[e.value]),l.createElement(Va.input,{ref:t,...r,"cmdk-input":``,autoComplete:`off`,autoCorrect:`off`,spellCheck:!1,"aria-autocomplete":`list`,role:`combobox`,"aria-expanded":!0,"aria-controls":c.listId,"aria-labelledby":c.labelId,"aria-activedescendant":s,id:c.inputId,type:`text`,value:i?e.value:o,onChange:e=>{i||a.setState(`search`,e.target.value),n?.(e.target.value)}})}),oo=l.forwardRef((e,t)=>{let{children:n,label:r=`Suggestions`,...i}=e,a=l.useRef(null),o=l.useRef(null),s=_o(e=>e.selectedItemId),c=Za();return l.useEffect(()=>{if(o.current&&a.current){let e=o.current,t=a.current,n,r=new ResizeObserver(()=>{n=requestAnimationFrame(()=>{let n=e.offsetHeight;t.style.setProperty(`--cmdk-list-height`,n.toFixed(1)+`px`)})});return r.observe(e),()=>{cancelAnimationFrame(n),r.unobserve(e)}}},[]),l.createElement(Va.div,{ref:G(a,t),...i,"cmdk-list":``,role:`listbox`,tabIndex:-1,"aria-activedescendant":s,"aria-label":r,id:c.listId},xo(e,e=>l.createElement(`div`,{ref:G(o,c.listInnerRef),"cmdk-list-sizer":``},e)))}),so=l.forwardRef((e,t)=>{let{open:n,onOpenChange:r,overlayClassName:i,contentClassName:a,container:o,...s}=e;return l.createElement(ci,{open:n,onOpenChange:r},l.createElement(ui,{container:o},l.createElement(di,{"cmdk-overlay":``,className:i}),l.createElement(fi,{"aria-label":e.label,"cmdk-dialog":``,className:a},l.createElement(to,{ref:t,...s}))))}),co=l.forwardRef((e,t)=>_o(e=>e.filtered.count===0)?l.createElement(Va.div,{ref:t,...e,"cmdk-empty":``,role:`presentation`}):null),lo=l.forwardRef((e,t)=>{let{progress:n,children:r,label:i=`Loading...`,...a}=e;return l.createElement(Va.div,{ref:t,...a,"cmdk-loading":``,role:`progressbar`,"aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":i},xo(e,e=>l.createElement(`div`,{"aria-hidden":!0},e)))}),uo=Object.assign(to,{List:oo,Item:no,Input:ao,Group:ro,Separator:io,Dialog:so,Empty:co,Loading:lo});function fo(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function po(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function mo(e){let t=l.useRef(e);return ho(()=>{t.current=e}),t}var ho=typeof window>`u`?l.useEffect:l.useLayoutEffect;function go(e){let t=l.useRef();return t.current===void 0&&(t.current=e()),t}function _o(e){let t=$a(),n=()=>e(t.snapshot());return l.useSyncExternalStore(t.subscribe,n,n)}function vo(e,t,n,r=[]){let i=l.useRef(),a=Za();return ho(()=>{var o;let s=(()=>{for(let e of n){if(typeof e==`string`)return e.trim();if(typeof e==`object`&&`current`in e)return e.current?e.current.textContent?.trim():i.current}})(),c=r.map(e=>e.trim());a.value(e,s,c),(o=t.current)==null||o.setAttribute(Ja,s),i.current=s}),i}var yo=()=>{let[e,t]=l.useState(),n=go(()=>new Map);return ho(()=>{n.current.forEach(e=>e()),n.current=new Map},[e]),(e,r)=>{n.current.set(e,r),t({})}};function bo(e){let t=e.type;return typeof t==`function`?t(e.props):`render`in t?t.render(e.props):e}function xo({asChild:e,children:t},n){return e&&l.isValidElement(t)?l.cloneElement(bo(t),{ref:t.ref},n(t.props.children)):n(t)}var So={position:`absolute`,width:`1px`,height:`1px`,padding:`0`,margin:`-1px`,overflow:`hidden`,clip:`rect(0, 0, 0, 0)`,whiteSpace:`nowrap`,borderWidth:`0`};function Co({...e}){return(0,d.jsx)(ci,{"data-slot":`dialog`,...e})}function wo({...e}){return(0,d.jsx)(li,{"data-slot":`dialog-trigger`,...e})}function To({...e}){return(0,d.jsx)(ui,{"data-slot":`dialog-portal`,...e})}function Eo({...e}){return(0,d.jsx)(hi,{"data-slot":`dialog-close`,...e})}function Do({className:e,...t}){return(0,d.jsx)(di,{"data-slot":`dialog-overlay`,className:W(`data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50`,e),...t})}function Oo({className:e,children:t,showCloseButton:n=!0,...r}){return(0,d.jsxs)(To,{"data-slot":`dialog-portal`,children:[(0,d.jsx)(Do,{}),(0,d.jsxs)(fi,{"data-slot":`dialog-content`,className:W(`bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 outline-none sm:max-w-lg`,e),...r,children:[t,n&&(0,d.jsxs)(hi,{"data-slot":`dialog-close`,className:`ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,children:[(0,d.jsx)(u.XIcon,{}),(0,d.jsx)(`span`,{className:`sr-only`,children:`Close`})]})]})]})}function ko({className:e,...t}){return(0,d.jsx)(`div`,{"data-slot":`dialog-header`,className:W(`flex flex-col gap-2 text-center sm:text-left`,e),...t})}function Ao({className:e,...t}){return(0,d.jsx)(`div`,{"data-slot":`dialog-footer`,className:W(`flex flex-col-reverse gap-2 sm:flex-row sm:justify-end`,e),...t})}function jo({className:e,...t}){return(0,d.jsx)(pi,{"data-slot":`dialog-title`,className:W(`text-lg leading-none font-semibold`,e),...t})}function Mo({className:e,...t}){return(0,d.jsx)(mi,{"data-slot":`dialog-description`,className:W(`text-muted-foreground text-sm`,e),...t})}function No({className:e,...t}){return(0,d.jsx)(uo,{"data-slot":`command`,className:W(`bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md`,e),...t})}function Po({title:e=`Command Palette`,description:t=`Search for a command to run...`,children:n,className:r,showCloseButton:i=!0,...a}){return(0,d.jsxs)(Co,{...a,children:[(0,d.jsxs)(ko,{className:`sr-only`,children:[(0,d.jsx)(jo,{children:e}),(0,d.jsx)(Mo,{children:t})]}),(0,d.jsx)(Oo,{className:W(`overflow-hidden p-0`,r),showCloseButton:i,children:(0,d.jsx)(No,{className:`[&_[cmdk-group-heading]]:text-muted-foreground **:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5`,children:n})})]})}function Fo({className:e,...t}){return(0,d.jsxs)(`div`,{"data-slot":`command-input-wrapper`,className:`flex gap-2 items-center px-3 h-9 border-b`,children:[(0,d.jsx)(u.SearchIcon,{className:`opacity-50 size-4 shrink-0`}),(0,d.jsx)(uo.Input,{"data-slot":`command-input`,className:W(`placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50`,e),...t})]})}function Io({className:e,...t}){return(0,d.jsx)(uo.List,{"data-slot":`command-list`,className:W(`max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto`,e),...t})}function Lo({...e}){return(0,d.jsx)(uo.Empty,{"data-slot":`command-empty`,className:`py-6 text-sm text-center`,...e})}function Ro({className:e,...t}){return(0,d.jsx)(uo.Group,{"data-slot":`command-group`,className:W(`text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium`,e),...t})}function zo({className:e,...t}){return(0,d.jsx)(uo.Separator,{"data-slot":`command-separator`,className:W(`bg-border -mx-1 h-px`,e),...t})}function Bo({className:e,...t}){return(0,d.jsx)(uo.Item,{"data-slot":`command-item`,className:W(`data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,e),...t})}function Vo({className:e,...t}){return(0,d.jsx)(`span`,{"data-slot":`command-shortcut`,className:W(`text-muted-foreground ml-auto text-xs tracking-widest`,e),...t})}var Ho=[`top`,`right`,`bottom`,`left`],Uo=Math.min,Wo=Math.max,Go=Math.round,Ko=Math.floor,qo=e=>({x:e,y:e}),Jo={left:`right`,right:`left`,bottom:`top`,top:`bottom`},Yo={start:`end`,end:`start`};function Xo(e,t,n){return Wo(e,Uo(t,n))}function Zo(e,t){return typeof e==`function`?e(t):e}function Qo(e){return e.split(`-`)[0]}function $o(e){return e.split(`-`)[1]}function es(e){return e===`x`?`y`:`x`}function ts(e){return e===`y`?`height`:`width`}var ns=new Set([`top`,`bottom`]);function rs(e){return ns.has(Qo(e))?`y`:`x`}function is(e){return es(rs(e))}function as(e,t,n){n===void 0&&(n=!1);let r=$o(e),i=is(e),a=ts(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=ms(o)),[o,ms(o)]}function os(e){let t=ms(e);return[ss(e),t,ss(t)]}function ss(e){return e.replace(/start|end/g,e=>Yo[e])}var cs=[`left`,`right`],ls=[`right`,`left`],us=[`top`,`bottom`],ds=[`bottom`,`top`];function fs(e,t,n){switch(e){case`top`:case`bottom`:return n?t?ls:cs:t?cs:ls;case`left`:case`right`:return t?us:ds;default:return[]}}function ps(e,t,n,r){let i=$o(e),a=fs(Qo(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(ss)))),a}function ms(e){return e.replace(/left|right|bottom|top/g,e=>Jo[e])}function hs(e){return{top:0,right:0,bottom:0,left:0,...e}}function gs(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:hs(e)}function _s(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function vs(e,t,n){let{reference:r,floating:i}=e,a=rs(t),o=is(t),s=ts(o),c=Qo(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}switch($o(t)){case`start`:p[o]-=f*(n&&l?-1:1);break;case`end`:p[o]+=f*(n&&l?-1:1);break}return p}var ys=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=a.filter(Boolean),c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=vs(l,r,c),f=r,p={},m=0;for(let n=0;n<s.length;n++){let{name:a,fn:h}=s[n],{x:g,y:_,data:v,reset:y}=await h({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:p,rects:l,platform:o,elements:{reference:e,floating:t}});u=g??u,d=_??d,p={...p,[a]:{...p[a],...v}},y&&m<=50&&(m++,typeof y==`object`&&(y.placement&&(f=y.placement),y.rects&&(l=y.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):y.rects),{x:u,y:d}=vs(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:p}};async function bs(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=Zo(t,e),p=gs(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=_s(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=_s(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var xs=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=Zo(e,t)||{};if(l==null)return{};let d=gs(u),f={x:n,y:r},p=is(i),m=ts(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;(!C||!await(o.isElement==null?void 0:o.isElement(S)))&&(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,E=Uo(d[_],T),D=Uo(d[v],T),O=E,k=C-h[m]-D,A=C/2-h[m]/2+w,j=Xo(O,A,k),M=!c.arrow&&$o(i)!=null&&A!==j&&a.reference[m]/2-(A<O?E:D)-h[m]/2<0,N=M?A<O?A-O:A-k:0;return{[p]:f[p]+N,data:{[p]:j,centerOffset:A-j-N,...M&&{alignmentOffset:N}},reset:M}}}),Ss=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=Zo(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=Qo(r),_=rs(o),v=Qo(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[ms(o)]:os(o)),x=p!==`none`;!d&&x&&b.push(...ps(o,m,p,y));let S=[o,...b],C=await bs(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=as(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(!(u===`alignment`&&_!==rs(t))||T.every(e=>rs(e.placement)===_?e.overflows[0]>0:!0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=rs(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o;break}if(r!==n)return{reset:{placement:n}}}return{}}}};function Cs(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function ws(e){return Ho.some(t=>e[t]>=0)}var Ts=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n}=t,{strategy:r=`referenceHidden`,...i}=Zo(e,t);switch(r){case`referenceHidden`:{let e=Cs(await bs(t,{...i,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:ws(e)}}}case`escaped`:{let e=Cs(await bs(t,{...i,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:ws(e)}}}default:return{}}}}},Es=new Set([`left`,`top`]);async function Ds(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=Qo(n),s=$o(n),c=rs(n)===`y`,l=Es.has(o)?-1:1,u=a&&c?-1:1,d=Zo(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var Os=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await Ds(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},ks=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i}=t,{mainAxis:a=!0,crossAxis:o=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=Zo(e,t),l={x:n,y:r},u=await bs(t,c),d=rs(Qo(i)),f=es(d),p=l[f],m=l[d];if(a){let e=f===`y`?`top`:`left`,t=f===`y`?`bottom`:`right`,n=p+u[e],r=p-u[t];p=Xo(n,p,r)}if(o){let e=d===`y`?`top`:`left`,t=d===`y`?`bottom`:`right`,n=m+u[e],r=m-u[t];m=Xo(n,m,r)}let h=s.fn({...t,[f]:p,[d]:m});return{...h,data:{x:h.x-n,y:h.y-r,enabled:{[f]:a,[d]:o}}}}}},As=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=Zo(e,t),u={x:n,y:r},d=rs(i),f=es(d),p=u[f],m=u[d],h=Zo(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=Es.has(Qo(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},js=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){var n,r;let{placement:i,rects:a,platform:o,elements:s}=t,{apply:c=()=>{},...l}=Zo(e,t),u=await bs(t,l),d=Qo(i),f=$o(i),p=rs(i)===`y`,{width:m,height:h}=a.floating,g,_;d===`top`||d===`bottom`?(g=d,_=f===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?`start`:`end`)?`left`:`right`):(_=d,g=f===`end`?`top`:`bottom`);let v=h-u.top-u.bottom,y=m-u.left-u.right,b=Uo(h-u[g],v),x=Uo(m-u[_],y),S=!t.middlewareData.shift,C=b,w=x;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(w=y),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(C=v),S&&!f){let e=Wo(u.left,0),t=Wo(u.right,0),n=Wo(u.top,0),r=Wo(u.bottom,0);p?w=m-2*(e!==0||t!==0?e+t:Wo(u.left,u.right)):C=h-2*(n!==0||r!==0?n+r:Wo(u.top,u.bottom))}await c({...t,availableWidth:w,availableHeight:C});let T=await o.getDimensions(s.floating);return m!==T.width||h!==T.height?{reset:{rects:!0}}:{}}}};function Ms(){return typeof window<`u`}function Ns(e){return Is(e)?(e.nodeName||``).toLowerCase():`#document`}function Ps(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Fs(e){return((Is(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function Is(e){return Ms()?e instanceof Node||e instanceof Ps(e).Node:!1}function Ls(e){return Ms()?e instanceof Element||e instanceof Ps(e).Element:!1}function Rs(e){return Ms()?e instanceof HTMLElement||e instanceof Ps(e).HTMLElement:!1}function zs(e){return!Ms()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof Ps(e).ShadowRoot}var Bs=new Set([`inline`,`contents`]);function Vs(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=ec(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!Bs.has(i)}var Hs=new Set([`table`,`td`,`th`]);function Us(e){return Hs.has(Ns(e))}var Ws=[`:popover-open`,`:modal`];function Gs(e){return Ws.some(t=>{try{return e.matches(t)}catch{return!1}})}var Ks=[`transform`,`translate`,`scale`,`rotate`,`perspective`],qs=[`transform`,`translate`,`scale`,`rotate`,`perspective`,`filter`],Js=[`paint`,`layout`,`strict`,`content`];function Ys(e){let t=Zs(),n=Ls(e)?ec(e):e;return Ks.some(e=>n[e]?n[e]!==`none`:!1)||(n.containerType?n.containerType!==`normal`:!1)||!t&&(n.backdropFilter?n.backdropFilter!==`none`:!1)||!t&&(n.filter?n.filter!==`none`:!1)||qs.some(e=>(n.willChange||``).includes(e))||Js.some(e=>(n.contain||``).includes(e))}function Xs(e){let t=nc(e);for(;Rs(t)&&!$s(t);){if(Ys(t))return t;if(Gs(t))return null;t=nc(t)}return null}function Zs(){return typeof CSS>`u`||!CSS.supports?!1:CSS.supports(`-webkit-backdrop-filter`,`none`)}var Qs=new Set([`html`,`body`,`#document`]);function $s(e){return Qs.has(Ns(e))}function ec(e){return Ps(e).getComputedStyle(e)}function tc(e){return Ls(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function nc(e){if(Ns(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||zs(e)&&e.host||Fs(e);return zs(t)?t.host:t}function rc(e){let t=nc(e);return $s(t)?e.ownerDocument?e.ownerDocument.body:e.body:Rs(t)&&Vs(t)?t:rc(t)}function ic(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=rc(e),i=r===e.ownerDocument?.body,a=Ps(r);if(i){let e=ac(a);return t.concat(a,a.visualViewport||[],Vs(r)?r:[],e&&n?ic(e):[])}return t.concat(r,ic(r,[],n))}function ac(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function oc(e){let t=ec(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=Rs(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=Go(n)!==a||Go(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function sc(e){return Ls(e)?e:e.contextElement}function cc(e){let t=sc(e);if(!Rs(t))return qo(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=oc(t),o=(a?Go(n.width):n.width)/r,s=(a?Go(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var lc=qo(0);function uc(e){let t=Ps(e);return!Zs()||!t.visualViewport?lc:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function dc(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Ps(e)?!1:t}function fc(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=sc(e),o=qo(1);t&&(r?Ls(r)&&(o=cc(r)):o=cc(e));let s=dc(a,n,r)?uc(a):qo(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a){let e=Ps(a),t=r&&Ls(r)?Ps(r):r,n=e,i=ac(n);for(;i&&r&&t!==n;){let e=cc(i),t=i.getBoundingClientRect(),r=ec(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=Ps(i),i=ac(n)}}return _s({width:u,height:d,x:c,y:l})}function pc(e,t){let n=tc(e).scrollLeft;return t?t.left+n:fc(Fs(e)).left+n}function mc(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-pc(e,n),y:n.top+t.scrollTop}}function hc(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=Fs(r),s=t?Gs(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=qo(1),u=qo(0),d=Rs(r);if((d||!d&&!a)&&((Ns(r)!==`body`||Vs(o))&&(c=tc(r)),Rs(r))){let e=fc(r);l=cc(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?mc(o,c):qo(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function gc(e){return Array.from(e.getClientRects())}function _c(e){let t=Fs(e),n=tc(e),r=e.ownerDocument.body,i=Wo(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=Wo(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+pc(e),s=-n.scrollTop;return ec(r).direction===`rtl`&&(o+=Wo(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}var vc=25;function yc(e,t){let n=Ps(e),r=Fs(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=Zs();(!e||e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}let l=pc(r);if(l<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(r.clientWidth-t.clientWidth-i);o<=vc&&(a-=o)}else l<=vc&&(a+=l);return{width:a,height:o,x:s,y:c}}var bc=new Set([`absolute`,`fixed`]);function xc(e,t){let n=fc(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=Rs(e)?cc(e):qo(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function Sc(e,t,n){let r;if(t===`viewport`)r=yc(e,n);else if(t===`document`)r=_c(Fs(e));else if(Ls(t))r=xc(t,n);else{let n=uc(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return _s(r)}function Cc(e,t){let n=nc(e);return n===t||!Ls(n)||$s(n)?!1:ec(n).position===`fixed`||Cc(n,t)}function wc(e,t){let n=t.get(e);if(n)return n;let r=ic(e,[],!1).filter(e=>Ls(e)&&Ns(e)!==`body`),i=null,a=ec(e).position===`fixed`,o=a?nc(e):e;for(;Ls(o)&&!$s(o);){let t=ec(o),n=Ys(o);!n&&t.position===`fixed`&&(i=null),(a?!n&&!i:!n&&t.position===`static`&&i&&bc.has(i.position)||Vs(o)&&!n&&Cc(e,o))?r=r.filter(e=>e!==o):i=t,o=nc(o)}return t.set(e,r),r}function Tc(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?Gs(t)?[]:wc(t,this._c):[].concat(n),r],o=a[0],s=a.reduce((e,n)=>{let r=Sc(t,n,i);return e.top=Wo(r.top,e.top),e.right=Uo(r.right,e.right),e.bottom=Uo(r.bottom,e.bottom),e.left=Wo(r.left,e.left),e},Sc(t,o,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}}function Ec(e){let{width:t,height:n}=oc(e);return{width:t,height:n}}function Dc(e,t,n){let r=Rs(t),i=Fs(t),a=n===`fixed`,o=fc(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=qo(0);function l(){c.x=pc(i)}if(r||!r&&!a)if((Ns(t)!==`body`||Vs(i))&&(s=tc(t)),r){let e=fc(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else i&&l();a&&!r&&i&&l();let u=i&&!r&&!a?mc(i,s):qo(0);return{x:o.left+s.scrollLeft-c.x-u.x,y:o.top+s.scrollTop-c.y-u.y,width:o.width,height:o.height}}function Oc(e){return ec(e).position===`static`}function kc(e,t){if(!Rs(e)||ec(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return Fs(e)===n&&(n=n.ownerDocument.body),n}function Ac(e,t){let n=Ps(e);if(Gs(e))return n;if(!Rs(e)){let t=nc(e);for(;t&&!$s(t);){if(Ls(t)&&!Oc(t))return t;t=nc(t)}return n}let r=kc(e,t);for(;r&&Us(r)&&Oc(r);)r=kc(r,t);return r&&$s(r)&&Oc(r)&&!Ys(r)?n:r||Xs(e)||n}var jc=async function(e){let t=this.getOffsetParent||Ac,n=this.getDimensions,r=await n(e.floating);return{reference:Dc(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Mc(e){return ec(e).direction===`rtl`}var Nc={convertOffsetParentRelativeRectToViewportRelativeRect:hc,getDocumentElement:Fs,getClippingRect:Tc,getOffsetParent:Ac,getElementRects:jc,getClientRects:gc,getDimensions:Ec,getScale:cc,isElement:Ls,isRTL:Mc};function Pc(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Fc(e,t){let n=null,r,i=Fs(e);function a(){var e;clearTimeout(r),(e=n)==null||e.disconnect(),n=null}function o(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),a();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(s||t(),!f||!p)return;let m=Ko(d),h=Ko(i.clientWidth-(u+f)),g=Ko(i.clientHeight-(d+p)),_=Ko(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:Wo(0,Uo(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(n!==c){if(!y)return o();n?o(!1,n):r=setTimeout(()=>{o(!1,1e-7)},1e3)}n===1&&!Pc(l,e.getBoundingClientRect())&&o(),y=!1}try{n=new IntersectionObserver(b,{...v,root:i.ownerDocument})}catch{n=new IntersectionObserver(b,v)}n.observe(e)}return o(!0),a}function Ic(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=sc(e),u=i||a?[...l?ic(l):[],...ic(t)]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n,{passive:!0}),a&&e.addEventListener(`resize`,n)});let d=l&&s?Fc(l,n):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),p.observe(t));let m,h=c?fc(e):null;c&&g();function g(){let t=fc(e);h&&!Pc(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var Lc=Os,Rc=ks,zc=Ss,Bc=js,Vc=Ts,Hc=xs,Uc=As,Wc=(e,t,n)=>{let r=new Map,i={platform:Nc,...n},a={...i.platform,_c:r};return ys(e,t,{...i,platform:a})},Gc=typeof document<`u`?l.useLayoutEffect:function(){};function Kc(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==`function`&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Kc(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!Kc(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function qc(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Jc(e,t){let n=qc(e);return Math.round(t*n)/n}function Yc(e){let t=l.useRef(e);return Gc(()=>{t.current=e}),t}function Xc(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:c,open:u}=e,[d,p]=l.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,h]=l.useState(r);Kc(m,r)||h(r);let[g,_]=l.useState(null),[v,y]=l.useState(null),b=l.useCallback(e=>{e!==w.current&&(w.current=e,_(e))},[]),x=l.useCallback(e=>{e!==T.current&&(T.current=e,y(e))},[]),S=a||g,C=o||v,w=l.useRef(null),T=l.useRef(null),E=l.useRef(d),D=c!=null,O=Yc(c),k=Yc(i),A=Yc(u),j=l.useCallback(()=>{if(!w.current||!T.current)return;let e={placement:t,strategy:n,middleware:m};k.current&&(e.platform=k.current),Wc(w.current,T.current,e).then(e=>{let t={...e,isPositioned:A.current!==!1};M.current&&!Kc(E.current,t)&&(E.current=t,f.flushSync(()=>{p(t)}))})},[m,t,n,k,A]);Gc(()=>{u===!1&&E.current.isPositioned&&(E.current.isPositioned=!1,p(e=>({...e,isPositioned:!1})))},[u]);let M=l.useRef(!1);Gc(()=>(M.current=!0,()=>{M.current=!1}),[]),Gc(()=>{if(S&&(w.current=S),C&&(T.current=C),S&&C){if(O.current)return O.current(S,C,j);j()}},[S,C,j,O,D]);let N=l.useMemo(()=>({reference:w,floating:T,setReference:b,setFloating:x}),[b,x]),P=l.useMemo(()=>({reference:S,floating:C}),[S,C]),F=l.useMemo(()=>{let e={position:n,left:0,top:0};if(!P.floating)return e;let t=Jc(P.floating,d.x),r=Jc(P.floating,d.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...qc(P.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,P.floating,d.x,d.y]);return l.useMemo(()=>({...d,update:j,refs:N,elements:P,floatingStyles:F}),[d,j,N,P,F])}var Zc=e=>{function t(e){return{}.hasOwnProperty.call(e,`current`)}return{name:`arrow`,options:e,fn(n){let{element:r,padding:i}=typeof e==`function`?e(n):e;return r&&t(r)?r.current==null?{}:Hc({element:r.current,padding:i}).fn(n):r?Hc({element:r,padding:i}).fn(n):{}}}},Qc=(e,t)=>({...Lc(e),options:[e,t]}),$c=(e,t)=>({...Rc(e),options:[e,t]}),el=(e,t)=>({...Uc(e),options:[e,t]}),tl=(e,t)=>({...zc(e),options:[e,t]}),nl=(e,t)=>({...Bc(e),options:[e,t]}),rl=(e,t)=>({...Vc(e),options:[e,t]}),il=(e,t)=>({...Zc(e),options:[e,t]}),al=`Arrow`,ol=l.forwardRef((e,t)=>{let{children:n,width:r=10,height:i=5,...a}=e;return(0,d.jsx)(X.svg,{...a,ref:t,width:r,height:i,viewBox:`0 0 30 10`,preserveAspectRatio:`none`,children:e.asChild?n:(0,d.jsx)(`polygon`,{points:`0,0 30,0 15,10`})})});ol.displayName=al;var sl=ol;function cl(e){let[t,n]=l.useState(void 0);return J(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{if(!Array.isArray(t)||!t.length)return;let r=t[0],i,a;if(`borderBoxSize`in r){let e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;i=t.inlineSize,a=t.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return t.observe(e,{box:`border-box`}),()=>t.unobserve(e)}else n(void 0)},[e]),t}var ll=`Popper`,[ul,dl]=et(ll),[fl,pl]=ul(ll),ml=e=>{let{__scopePopper:t,children:n}=e,[r,i]=l.useState(null);return(0,d.jsx)(fl,{scope:t,anchor:r,onAnchorChange:i,children:n})};ml.displayName=ll;var hl=`PopperAnchor`,gl=l.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:r,...i}=e,a=pl(hl,n),o=l.useRef(null),s=K(t,o),c=l.useRef(null);return l.useEffect(()=>{let e=c.current;c.current=r?.current||o.current,e!==c.current&&a.onAnchorChange(c.current)}),r?null:(0,d.jsx)(X.div,{...i,ref:s})});gl.displayName=hl;var _l=`PopperContent`,[vl,yl]=ul(_l),bl=l.forwardRef((e,t)=>{let{__scopePopper:n,side:r=`bottom`,sideOffset:i=0,align:a=`center`,alignOffset:o=0,arrowPadding:s=0,avoidCollisions:c=!0,collisionBoundary:u=[],collisionPadding:f=0,sticky:p=`partial`,hideWhenDetached:m=!1,updatePositionStrategy:h=`optimized`,onPlaced:g,..._}=e,v=pl(_l,n),[y,b]=l.useState(null),x=K(t,e=>b(e)),[S,C]=l.useState(null),w=cl(S),T=w?.width??0,E=w?.height??0,D=r+(a===`center`?``:`-`+a),O=typeof f==`number`?f:{top:0,right:0,bottom:0,left:0,...f},k=Array.isArray(u)?u:[u],A=k.length>0,j={padding:O,boundary:k.filter(wl),altBoundary:A},{refs:M,floatingStyles:N,placement:P,isPositioned:F,middlewareData:I}=Xc({strategy:`fixed`,placement:D,whileElementsMounted:(...e)=>Ic(...e,{animationFrame:h===`always`}),elements:{reference:v.anchor},middleware:[Qc({mainAxis:i+E,alignmentAxis:o}),c&&$c({mainAxis:!0,crossAxis:!1,limiter:p===`partial`?el():void 0,...j}),c&&tl({...j}),nl({...j,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:a}=t.reference,o=e.floating.style;o.setProperty(`--radix-popper-available-width`,`${n}px`),o.setProperty(`--radix-popper-available-height`,`${r}px`),o.setProperty(`--radix-popper-anchor-width`,`${i}px`),o.setProperty(`--radix-popper-anchor-height`,`${a}px`)}}),S&&il({element:S,padding:s}),Tl({arrowWidth:T,arrowHeight:E}),m&&rl({strategy:`referenceHidden`,...j})]}),[ee,te]=El(P),L=Z(g);J(()=>{F&&L?.()},[F,L]);let R=I.arrow?.x,ne=I.arrow?.y,re=I.arrow?.centerOffset!==0,[z,ie]=l.useState();return J(()=>{y&&ie(window.getComputedStyle(y).zIndex)},[y]),(0,d.jsx)(`div`,{ref:M.setFloating,"data-radix-popper-content-wrapper":``,style:{...N,transform:F?N.transform:`translate(0, -200%)`,minWidth:`max-content`,zIndex:z,"--radix-popper-transform-origin":[I.transformOrigin?.x,I.transformOrigin?.y].join(` `),...I.hide?.referenceHidden&&{visibility:`hidden`,pointerEvents:`none`}},dir:e.dir,children:(0,d.jsx)(vl,{scope:n,placedSide:ee,onArrowChange:C,arrowX:R,arrowY:ne,shouldHideArrow:re,children:(0,d.jsx)(X.div,{"data-side":ee,"data-align":te,..._,ref:x,style:{..._.style,animation:F?void 0:`none`}})})})});bl.displayName=_l;var xl=`PopperArrow`,Sl={top:`bottom`,right:`left`,bottom:`top`,left:`right`},Cl=l.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,i=yl(xl,n),a=Sl[i.placedSide];return(0,d.jsx)(`span`,{ref:i.onArrowChange,style:{position:`absolute`,left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:``,right:`0 0`,bottom:`center 0`,left:`100% 0`}[i.placedSide],transform:{top:`translateY(100%)`,right:`translateY(50%) rotate(90deg) translateX(-50%)`,bottom:`rotate(180deg)`,left:`translateY(50%) rotate(-90deg) translateX(50%)`}[i.placedSide],visibility:i.shouldHideArrow?`hidden`:void 0},children:(0,d.jsx)(sl,{...r,ref:t,style:{...r.style,display:`block`}})})});Cl.displayName=xl;function wl(e){return e!==null}var Tl=e=>({name:`transformOrigin`,options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,a=i.arrow?.centerOffset!==0,o=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[c,l]=El(n),u={start:`0%`,center:`50%`,end:`100%`}[l],d=(i.arrow?.x??0)+o/2,f=(i.arrow?.y??0)+s/2,p=``,m=``;return c===`bottom`?(p=a?u:`${d}px`,m=`${-s}px`):c===`top`?(p=a?u:`${d}px`,m=`${r.floating.height+s}px`):c===`right`?(p=`${-s}px`,m=a?u:`${f}px`):c===`left`&&(p=`${r.floating.width+s}px`,m=a?u:`${f}px`),{data:{x:p,y:m}}}});function El(e){let[t,n=`center`]=e.split(`-`);return[t,n]}var Dl=ml,Ol=gl,kl=bl,Al=Cl;function jl(e){let t=Ml(e),n=l.forwardRef((e,n)=>{let{children:r,...i}=e,a=l.Children.toArray(r),o=a.find(Pl);if(o){let e=o.props.children,r=a.map(t=>t===o?l.Children.count(e)>1?l.Children.only(null):l.isValidElement(e)?e.props.children:null:t);return(0,d.jsx)(t,{...i,ref:n,children:l.isValidElement(e)?l.cloneElement(e,void 0,r):null})}return(0,d.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}function Ml(e){let t=l.forwardRef((e,t)=>{let{children:n,...r}=e;if(l.isValidElement(n)){let e=Il(n),i=Fl(r,n.props);return n.type!==l.Fragment&&(i.ref=t?G(t,e):e),l.cloneElement(n,i)}return l.Children.count(n)>1?l.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Nl=Symbol(`radix.slottable`);function Pl(e){return l.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===Nl}function Fl(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function Il(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Ll=`Popover`,[Rl,zl]=et(Ll,[dl]),Bl=dl(),[Vl,Hl]=Rl(Ll),Ul=e=>{let{__scopePopover:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!1}=e,s=Bl(t),c=l.useRef(null),[u,f]=l.useState(!1),[p,m]=st({prop:r,defaultProp:i??!1,onChange:a,caller:Ll});return(0,d.jsx)(Dl,{...s,children:(0,d.jsx)(Vl,{scope:t,contentId:Y(),triggerRef:c,open:p,onOpenChange:m,onOpenToggle:l.useCallback(()=>m(e=>!e),[m]),hasCustomAnchor:u,onCustomAnchorAdd:l.useCallback(()=>f(!0),[]),onCustomAnchorRemove:l.useCallback(()=>f(!1),[]),modal:o,children:n})})};Ul.displayName=Ll;var Wl=`PopoverAnchor`,Gl=l.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=Hl(Wl,n),a=Bl(n),{onCustomAnchorAdd:o,onCustomAnchorRemove:s}=i;return l.useEffect(()=>(o(),()=>s()),[o,s]),(0,d.jsx)(Ol,{...a,...r,ref:t})});Gl.displayName=Wl;var Kl=`PopoverTrigger`,ql=l.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=Hl(Kl,n),a=Bl(n),o=K(t,i.triggerRef),s=(0,d.jsx)(X.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":i.open,"aria-controls":i.contentId,"data-state":cu(i.open),...r,ref:o,onClick:q(e.onClick,i.onOpenToggle)});return i.hasCustomAnchor?s:(0,d.jsx)(Ol,{asChild:!0,...a,children:s})});ql.displayName=Kl;var Jl=`PopoverPortal`,[Yl,Xl]=Rl(Jl,{forceMount:void 0}),Zl=e=>{let{__scopePopover:t,forceMount:n,children:r,container:i}=e,a=Hl(Jl,t);return(0,d.jsx)(Yl,{scope:t,forceMount:n,children:(0,d.jsx)(Q,{present:n||a.open,children:(0,d.jsx)(Jt,{asChild:!0,container:i,children:r})})})};Zl.displayName=Jl;var Ql=`PopoverContent`,$l=l.forwardRef((e,t)=>{let n=Xl(Ql,e.__scopePopover),{forceMount:r=n.forceMount,...i}=e,a=Hl(Ql,e.__scopePopover);return(0,d.jsx)(Q,{present:r||a.open,children:a.modal?(0,d.jsx)(tu,{...i,ref:t}):(0,d.jsx)(nu,{...i,ref:t})})});$l.displayName=Ql;var eu=jl(`PopoverContent.RemoveScroll`),tu=l.forwardRef((e,t)=>{let n=Hl(Ql,e.__scopePopover),r=l.useRef(null),i=K(t,r),a=l.useRef(!1);return l.useEffect(()=>{let e=r.current;if(e)return xr(e)},[]),(0,d.jsx)(fr,{as:eu,allowPinchZoom:!0,children:(0,d.jsx)(ru,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:q(e.onCloseAutoFocus,e=>{e.preventDefault(),a.current||n.triggerRef.current?.focus()}),onPointerDownOutside:q(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0;a.current=t.button===2||n},{checkForDefaultPrevented:!1}),onFocusOutside:q(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),nu=l.forwardRef((e,t)=>{let n=Hl(Ql,e.__scopePopover),r=l.useRef(!1),i=l.useRef(!1);return(0,d.jsx)(ru,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,t.detail.originalEvent.type===`pointerdown`&&(i.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&i.current&&t.preventDefault()}})}),ru=l.forwardRef((e,t)=>{let{__scopePopover:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,disableOutsidePointerEvents:o,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:l,onInteractOutside:u,...f}=e,p=Hl(Ql,n),m=Bl(n);return en(),(0,d.jsx)(Ft,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,d.jsx)(wt,{asChild:!0,disableOutsidePointerEvents:o,onInteractOutside:u,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:l,onDismiss:()=>p.onOpenChange(!1),children:(0,d.jsx)(kl,{"data-state":cu(p.open),role:`dialog`,id:p.contentId,...m,...f,ref:t,style:{...f.style,"--radix-popover-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-popover-content-available-width":`var(--radix-popper-available-width)`,"--radix-popover-content-available-height":`var(--radix-popper-available-height)`,"--radix-popover-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-popover-trigger-height":`var(--radix-popper-anchor-height)`}})})})}),iu=`PopoverClose`,au=l.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=Hl(iu,n);return(0,d.jsx)(X.button,{type:`button`,...r,ref:t,onClick:q(e.onClick,()=>i.onOpenChange(!1))})});au.displayName=iu;var ou=`PopoverArrow`,su=l.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=Bl(n);return(0,d.jsx)(Al,{...i,...r,ref:t})});su.displayName=ou;function cu(e){return e?`open`:`closed`}var lu=Ul,uu=Gl,du=ql,fu=Zl,pu=$l;function mu({...e}){return(0,d.jsx)(lu,{"data-slot":`popover`,...e})}function hu({...e}){return(0,d.jsx)(du,{"data-slot":`popover-trigger`,...e})}function gu({className:e,align:t=`center`,sideOffset:n=4,...r}){return(0,d.jsx)(fu,{children:(0,d.jsx)(pu,{"data-slot":`popover-content`,align:t,sideOffset:n,className:W(`bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden`,e),...r})})}function _u({...e}){return(0,d.jsx)(uu,{"data-slot":`popover-anchor`,...e})}function vu({className:e,...t}){return(0,d.jsx)(u.Loader2Icon,{role:`status`,"aria-label":`Loading`,className:W(`size-4 animate-spin`,e),...t})}const yu=e=>{let[t,n]=(0,l.useState)(``),[r,i]=(0,l.useState)(!1),a=(0,l.useRef)(e.onFilterChange),[o,s]=(0,l.useState)(e.value&&e.items?.find(t=>t.value===e.value)?.label||``);return(0,l.useEffect)(()=>{a.current=e.onFilterChange},[e.onFilterChange]),(0,l.useEffect)(()=>{if(!a.current)return;let e=setTimeout(()=>{a.current?.(t)},300);return()=>{clearTimeout(e)}},[t]),(0,l.useEffect)(()=>{if(!e.items&&!e.isLoading){s(``);return}else if(!e.items)return;let t=e.items.find(t=>t.value===e.value);t&&s(t.label)},[e.value,e.items,e.isLoading]),(0,d.jsxs)(mu,{open:r,onOpenChange:i,children:[(0,d.jsx)(hu,{asChild:!0,children:(0,d.jsxs)(pa,{variant:`outline`,className:`justify-between w-full`,disabled:e.disabled,children:[!e.value&&(0,d.jsx)(`div`,{className:`text-muted-foreground`,children:e.placeholder}),e.value&&(0,d.jsx)(`div`,{className:`truncate`,children:o||e.value}),e.isLoading&&(0,d.jsx)(vu,{className:`ml-2 w-4 h-4 shrink-0`}),!e.isLoading&&(0,d.jsx)(u.ChevronsUpDown,{className:`ml-2 w-4 h-4 shrink-0`})]})}),(0,d.jsx)(gu,{className:`p-0 w-[--radix-popover-trigger-width]`,children:(0,d.jsxs)(No,{shouldFilter:!e.onFilterChange,children:[(0,d.jsx)(Fo,{value:t,placeholder:e.filterPlaceholder||`Type to filter...`,onValueChange:e=>{n(e)}}),(0,d.jsxs)(Io,{children:[(0,d.jsx)(Lo,{className:`p-2`,children:e.emptyMessage||`No results found.`}),(0,d.jsx)(Ro,{children:e.items?.map(t=>(0,d.jsxs)(Bo,{value:t.value,onSelect:t=>{e.onValueChange?.(t),i(!1)},children:[t.label,(0,d.jsx)(u.CheckIcon,{className:W(`ml-auto size-4`,e.value===t.value&&`opacity-100`,e.value!==t.value&&`opacity-0`)})]},t.value))})]})]})})]})};function bu({className:e,...t}){return(0,d.jsx)(`div`,{"data-slot":`card`,className:W(`bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm`,e),...t})}function xu({className:e,...t}){return(0,d.jsx)(`div`,{"data-slot":`card-header`,className:W(`@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-2 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6`,e),...t})}function Su({className:e,...t}){return(0,d.jsx)(`div`,{"data-slot":`card-title`,className:W(`leading-none font-semibold`,e),...t})}function Cu({className:e,...t}){return(0,d.jsx)(`div`,{"data-slot":`card-description`,className:W(`text-muted-foreground text-sm`,e),...t})}function wu({className:e,...t}){return(0,d.jsx)(`div`,{"data-slot":`card-action`,className:W(`col-start-2 row-span-2 row-start-1 self-start justify-self-end`,e),...t})}function Tu({className:e,...t}){return(0,d.jsx)(`div`,{"data-slot":`card-content`,className:W(`px-6`,e),...t})}function Eu({className:e,...t}){return(0,d.jsx)(`div`,{"data-slot":`card-footer`,className:W(`flex items-center px-6 [.border-t]:pt-6`,e),...t})}var Du=o(((e,t)=>{t.exports=Array.isArray})),Ou=o(((e,t)=>{t.exports=typeof global==`object`&&global&&global.Object===Object&&global})),ku=o(((e,t)=>{var n=Ou(),r=typeof self==`object`&&self&&self.Object===Object&&self;t.exports=n||r||Function(`return this`)()})),Au=o(((e,t)=>{t.exports=ku().Symbol})),ju=o(((e,t)=>{var n=Au(),r=Object.prototype,i=r.hasOwnProperty,a=r.toString,o=n?n.toStringTag:void 0;function s(e){var t=i.call(e,o),n=e[o];try{e[o]=void 0;var r=!0}catch{}var s=a.call(e);return r&&(t?e[o]=n:delete e[o]),s}t.exports=s})),Mu=o(((e,t)=>{var n=Object.prototype.toString;function r(e){return n.call(e)}t.exports=r})),Nu=o(((e,t)=>{var n=Au(),r=ju(),i=Mu(),a=`[object Null]`,o=`[object Undefined]`,s=n?n.toStringTag:void 0;function c(e){return e==null?e===void 0?o:a:s&&s in Object(e)?r(e):i(e)}t.exports=c})),Pu=o(((e,t)=>{function n(e){return typeof e==`object`&&!!e}t.exports=n})),Fu=o(((e,t)=>{var n=Nu(),r=Pu(),i=`[object Symbol]`;function a(e){return typeof e==`symbol`||r(e)&&n(e)==i}t.exports=a})),Iu=o(((e,t)=>{var n=Du(),r=Fu(),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;function o(e,t){if(n(e))return!1;var o=typeof e;return o==`number`||o==`symbol`||o==`boolean`||e==null||r(e)?!0:a.test(e)||!i.test(e)||t!=null&&e in Object(t)}t.exports=o})),Lu=o(((e,t)=>{function n(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}t.exports=n})),Ru=o(((e,t)=>{var n=Nu(),r=Lu(),i=`[object AsyncFunction]`,a=`[object Function]`,o=`[object GeneratorFunction]`,s=`[object Proxy]`;function c(e){if(!r(e))return!1;var t=n(e);return t==a||t==o||t==i||t==s}t.exports=c})),zu=o(((e,t)=>{t.exports=ku()[`__core-js_shared__`]})),Bu=o(((e,t)=>{var n=zu(),r=function(){var e=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}();function i(e){return!!r&&r in e}t.exports=i})),Vu=o(((e,t)=>{var n=Function.prototype.toString;function r(e){if(e!=null){try{return n.call(e)}catch{}try{return e+``}catch{}}return``}t.exports=r})),Hu=o(((e,t)=>{var n=Ru(),r=Bu(),i=Lu(),a=Vu(),o=/[\\^$.*+?()[\]{}|]/g,s=/^\[object .+?Constructor\]$/,c=Function.prototype,l=Object.prototype,u=c.toString,d=l.hasOwnProperty,f=RegExp(`^`+u.call(d).replace(o,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`);function p(e){return!i(e)||r(e)?!1:(n(e)?f:s).test(a(e))}t.exports=p})),Uu=o(((e,t)=>{function n(e,t){return e?.[t]}t.exports=n})),Wu=o(((e,t)=>{var n=Hu(),r=Uu();function i(e,t){var i=r(e,t);return n(i)?i:void 0}t.exports=i})),Gu=o(((e,t)=>{t.exports=Wu()(Object,`create`)})),Ku=o(((e,t)=>{var n=Gu();function r(){this.__data__=n?n(null):{},this.size=0}t.exports=r})),qu=o(((e,t)=>{function n(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}t.exports=n})),Ju=o(((e,t)=>{var n=Gu(),r=`__lodash_hash_undefined__`,i=Object.prototype.hasOwnProperty;function a(e){var t=this.__data__;if(n){var a=t[e];return a===r?void 0:a}return i.call(t,e)?t[e]:void 0}t.exports=a})),Yu=o(((e,t)=>{var n=Gu(),r=Object.prototype.hasOwnProperty;function i(e){var t=this.__data__;return n?t[e]!==void 0:r.call(t,e)}t.exports=i})),Xu=o(((e,t)=>{var n=Gu(),r=`__lodash_hash_undefined__`;function i(e,t){var i=this.__data__;return this.size+=this.has(e)?0:1,i[e]=n&&t===void 0?r:t,this}t.exports=i})),Zu=o(((e,t)=>{var n=Ku(),r=qu(),i=Ju(),a=Yu(),o=Xu();function s(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=n,s.prototype.delete=r,s.prototype.get=i,s.prototype.has=a,s.prototype.set=o,t.exports=s})),Qu=o(((e,t)=>{function n(){this.__data__=[],this.size=0}t.exports=n})),$u=o(((e,t)=>{function n(e,t){return e===t||e!==e&&t!==t}t.exports=n})),ed=o(((e,t)=>{var n=$u();function r(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return-1}t.exports=r})),td=o(((e,t)=>{var n=ed(),r=Array.prototype.splice;function i(e){var t=this.__data__,i=n(t,e);return i<0?!1:(i==t.length-1?t.pop():r.call(t,i,1),--this.size,!0)}t.exports=i})),nd=o(((e,t)=>{var n=ed();function r(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}t.exports=r})),rd=o(((e,t)=>{var n=ed();function r(e){return n(this.__data__,e)>-1}t.exports=r})),id=o(((e,t)=>{var n=ed();function r(e,t){var r=this.__data__,i=n(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}t.exports=r})),ad=o(((e,t)=>{var n=Qu(),r=td(),i=nd(),a=rd(),o=id();function s(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=n,s.prototype.delete=r,s.prototype.get=i,s.prototype.has=a,s.prototype.set=o,t.exports=s})),od=o(((e,t)=>{t.exports=Wu()(ku(),`Map`)})),sd=o(((e,t)=>{var n=Zu(),r=ad(),i=od();function a(){this.size=0,this.__data__={hash:new n,map:new(i||r),string:new n}}t.exports=a})),cd=o(((e,t)=>{function n(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}t.exports=n})),ld=o(((e,t)=>{var n=cd();function r(e,t){var r=e.__data__;return n(t)?r[typeof t==`string`?`string`:`hash`]:r.map}t.exports=r})),ud=o(((e,t)=>{var n=ld();function r(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}t.exports=r})),dd=o(((e,t)=>{var n=ld();function r(e){return n(this,e).get(e)}t.exports=r})),fd=o(((e,t)=>{var n=ld();function r(e){return n(this,e).has(e)}t.exports=r})),pd=o(((e,t)=>{var n=ld();function r(e,t){var r=n(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this}t.exports=r})),md=o(((e,t)=>{var n=sd(),r=ud(),i=dd(),a=fd(),o=pd();function s(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=n,s.prototype.delete=r,s.prototype.get=i,s.prototype.has=a,s.prototype.set=o,t.exports=s})),hd=o(((e,t)=>{var n=md(),r=`Expected a function`;function i(e,t){if(typeof e!=`function`||t!=null&&typeof t!=`function`)throw TypeError(r);var a=function(){var n=arguments,r=t?t.apply(this,n):n[0],i=a.cache;if(i.has(r))return i.get(r);var o=e.apply(this,n);return a.cache=i.set(r,o)||i,o};return a.cache=new(i.Cache||n),a}i.Cache=n,t.exports=i})),gd=o(((e,t)=>{var n=hd(),r=500;function i(e){var t=n(e,function(e){return i.size===r&&i.clear(),e}),i=t.cache;return t}t.exports=i})),_d=o(((e,t)=>{var n=gd(),r=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g;t.exports=n(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(``),e.replace(r,function(e,n,r,a){t.push(r?a.replace(i,`$1`):n||e)}),t})})),vd=o(((e,t)=>{function n(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}t.exports=n})),yd=o(((e,t)=>{var n=Au(),r=vd(),i=Du(),a=Fu(),o=1/0,s=n?n.prototype:void 0,c=s?s.toString:void 0;function l(e){if(typeof e==`string`)return e;if(i(e))return r(e,l)+``;if(a(e))return c?c.call(e):``;var t=e+``;return t==`0`&&1/e==-o?`-0`:t}t.exports=l})),bd=o(((e,t)=>{var n=yd();function r(e){return e==null?``:n(e)}t.exports=r})),xd=o(((e,t)=>{var n=Du(),r=Iu(),i=_d(),a=bd();function o(e,t){return n(e)?e:r(e,t)?[e]:i(a(e))}t.exports=o})),Sd=o(((e,t)=>{var n=Fu(),r=1/0;function i(e){if(typeof e==`string`||n(e))return e;var t=e+``;return t==`0`&&1/e==-r?`-0`:t}t.exports=i})),Cd=o(((e,t)=>{var n=xd(),r=Sd();function i(e,t){t=n(t,e);for(var i=0,a=t.length;e!=null&&i<a;)e=e[r(t[i++])];return i&&i==a?e:void 0}t.exports=i})),wd=o(((e,t)=>{var n=Cd();function r(e,t,r){var i=e==null?void 0:n(e,t);return i===void 0?r:i}t.exports=r})),Td=o(((e,t)=>{function n(e){return e==null}t.exports=n})),Ed=o(((e,t)=>{var n=Nu(),r=Du(),i=Pu(),a=`[object String]`;function o(e){return typeof e==`string`||!r(e)&&i(e)&&n(e)==a}t.exports=o})),Dd=o((e=>{})),Od=o((e=>{process.env.NODE_ENV!==`production`&&(function(){"use strict";var t=Symbol.for(`react.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.provider`),s=Symbol.for(`react.context`),c=Symbol.for(`react.server_context`),l=Symbol.for(`react.forward_ref`),u=Symbol.for(`react.suspense`),d=Symbol.for(`react.suspense_list`),f=Symbol.for(`react.memo`),p=Symbol.for(`react.lazy`),m=Symbol.for(`react.offscreen`),h=!1,g=!1,_=!1,v=!1,y=!1,b=Symbol.for(`react.module.reference`);function x(e){return!!(typeof e==`string`||typeof e==`function`||e===r||e===a||y||e===i||e===u||e===d||v||e===m||h||g||_||typeof e==`object`&&e&&(e.$$typeof===p||e.$$typeof===f||e.$$typeof===o||e.$$typeof===s||e.$$typeof===l||e.$$typeof===b||e.getModuleId!==void 0))}function S(e){if(typeof e==`object`&&e){var m=e.$$typeof;switch(m){case t:var h=e.type;switch(h){case r:case a:case i:case u:case d:return h;default:var g=h&&h.$$typeof;switch(g){case c:case s:case l:case p:case f:case o:return g;default:return m}}case n:return m}}}var C=s,w=o,T=t,E=l,D=r,O=p,k=f,A=n,j=a,M=i,N=u,P=d,F=!1,I=!1;function ee(e){return F||(F=!0,console.warn(`The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.`)),!1}function te(e){return I||(I=!0,console.warn(`The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.`)),!1}function L(e){return S(e)===s}function R(e){return S(e)===o}function ne(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function re(e){return S(e)===l}function z(e){return S(e)===r}function ie(e){return S(e)===p}function ae(e){return S(e)===f}function oe(e){return S(e)===n}function se(e){return S(e)===a}function ce(e){return S(e)===i}function le(e){return S(e)===u}function ue(e){return S(e)===d}e.ContextConsumer=C,e.ContextProvider=w,e.Element=T,e.ForwardRef=E,e.Fragment=D,e.Lazy=O,e.Memo=k,e.Portal=A,e.Profiler=j,e.StrictMode=M,e.Suspense=N,e.SuspenseList=P,e.isAsyncMode=ee,e.isConcurrentMode=te,e.isContextConsumer=L,e.isContextProvider=R,e.isElement=ne,e.isForwardRef=re,e.isFragment=z,e.isLazy=ie,e.isMemo=ae,e.isPortal=oe,e.isProfiler=se,e.isStrictMode=ce,e.isSuspense=le,e.isSuspenseList=ue,e.isValidElementType=x,e.typeOf=S})()})),kd=o(((e,t)=>{process.env.NODE_ENV===`production`?t.exports=Dd():t.exports=Od()})),Ad=o(((e,t)=>{var n=Nu(),r=Pu(),i=`[object Number]`;function a(e){return typeof e==`number`||r(e)&&n(e)==i}t.exports=a})),jd=o(((e,t)=>{var n=Ad();function r(e){return n(e)&&e!=+e}t.exports=r})),Md=c(Ed()),Nd=c(jd()),Pd=c(wd()),Fd=c(Ad()),Id=c(Td()),Ld=function(e){return(0,Md.default)(e)&&e.indexOf(`%`)===e.length-1},Rd=function(e){return(0,Fd.default)(e)&&!(0,Nd.default)(e)},zd=function(e){return Rd(e)||(0,Md.default)(e)},Bd=c(Lu());function Vd(e){"@babel/helpers - typeof";return Vd=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Vd(e)}var Hd=[`viewBox`,`children`],Ud=`aria-activedescendant.aria-atomic.aria-autocomplete.aria-busy.aria-checked.aria-colcount.aria-colindex.aria-colspan.aria-controls.aria-current.aria-describedby.aria-details.aria-disabled.aria-errormessage.aria-expanded.aria-flowto.aria-haspopup.aria-hidden.aria-invalid.aria-keyshortcuts.aria-label.aria-labelledby.aria-level.aria-live.aria-modal.aria-multiline.aria-multiselectable.aria-orientation.aria-owns.aria-placeholder.aria-posinset.aria-pressed.aria-readonly.aria-relevant.aria-required.aria-roledescription.aria-rowcount.aria-rowindex.aria-rowspan.aria-selected.aria-setsize.aria-sort.aria-valuemax.aria-valuemin.aria-valuenow.aria-valuetext.className.color.height.id.lang.max.media.method.min.name.style.target.width.role.tabIndex.accentHeight.accumulate.additive.alignmentBaseline.allowReorder.alphabetic.amplitude.arabicForm.ascent.attributeName.attributeType.autoReverse.azimuth.baseFrequency.baselineShift.baseProfile.bbox.begin.bias.by.calcMode.capHeight.clip.clipPath.clipPathUnits.clipRule.colorInterpolation.colorInterpolationFilters.colorProfile.colorRendering.contentScriptType.contentStyleType.cursor.cx.cy.d.decelerate.descent.diffuseConstant.direction.display.divisor.dominantBaseline.dur.dx.dy.edgeMode.elevation.enableBackground.end.exponent.externalResourcesRequired.fill.fillOpacity.fillRule.filter.filterRes.filterUnits.floodColor.floodOpacity.focusable.fontFamily.fontSize.fontSizeAdjust.fontStretch.fontStyle.fontVariant.fontWeight.format.from.fx.fy.g1.g2.glyphName.glyphOrientationHorizontal.glyphOrientationVertical.glyphRef.gradientTransform.gradientUnits.hanging.horizAdvX.horizOriginX.href.ideographic.imageRendering.in2.in.intercept.k1.k2.k3.k4.k.kernelMatrix.kernelUnitLength.kerning.keyPoints.keySplines.keyTimes.lengthAdjust.letterSpacing.lightingColor.limitingConeAngle.local.markerEnd.markerHeight.markerMid.markerStart.markerUnits.markerWidth.mask.maskContentUnits.maskUnits.mathematical.mode.numOctaves.offset.opacity.operator.order.orient.orientation.origin.overflow.overlinePosition.overlineThickness.paintOrder.panose1.pathLength.patternContentUnits.patternTransform.patternUnits.pointerEvents.pointsAtX.pointsAtY.pointsAtZ.preserveAlpha.preserveAspectRatio.primitiveUnits.r.radius.refX.refY.renderingIntent.repeatCount.repeatDur.requiredExtensions.requiredFeatures.restart.result.rotate.rx.ry.seed.shapeRendering.slope.spacing.specularConstant.specularExponent.speed.spreadMethod.startOffset.stdDeviation.stemh.stemv.stitchTiles.stopColor.stopOpacity.strikethroughPosition.strikethroughThickness.string.stroke.strokeDasharray.strokeDashoffset.strokeLinecap.strokeLinejoin.strokeMiterlimit.strokeOpacity.strokeWidth.surfaceScale.systemLanguage.tableValues.targetX.targetY.textAnchor.textDecoration.textLength.textRendering.to.transform.u1.u2.underlinePosition.underlineThickness.unicode.unicodeBidi.unicodeRange.unitsPerEm.vAlphabetic.values.vectorEffect.version.vertAdvY.vertOriginX.vertOriginY.vHanging.vIdeographic.viewTarget.visibility.vMathematical.widths.wordSpacing.writingMode.x1.x2.x.xChannelSelector.xHeight.xlinkActuate.xlinkArcrole.xlinkHref.xlinkRole.xlinkShow.xlinkTitle.xlinkType.xmlBase.xmlLang.xmlns.xmlnsXlink.xmlSpace.y1.y2.y.yChannelSelector.z.zoomAndPan.ref.key.angle`.split(`.`),Wd=[`points`,`pathLength`],Gd={svg:Hd,polygon:Wd,polyline:Wd},Kd=`dangerouslySetInnerHTML.onCopy.onCopyCapture.onCut.onCutCapture.onPaste.onPasteCapture.onCompositionEnd.onCompositionEndCapture.onCompositionStart.onCompositionStartCapture.onCompositionUpdate.onCompositionUpdateCapture.onFocus.onFocusCapture.onBlur.onBlurCapture.onChange.onChangeCapture.onBeforeInput.onBeforeInputCapture.onInput.onInputCapture.onReset.onResetCapture.onSubmit.onSubmitCapture.onInvalid.onInvalidCapture.onLoad.onLoadCapture.onError.onErrorCapture.onKeyDown.onKeyDownCapture.onKeyPress.onKeyPressCapture.onKeyUp.onKeyUpCapture.onAbort.onAbortCapture.onCanPlay.onCanPlayCapture.onCanPlayThrough.onCanPlayThroughCapture.onDurationChange.onDurationChangeCapture.onEmptied.onEmptiedCapture.onEncrypted.onEncryptedCapture.onEnded.onEndedCapture.onLoadedData.onLoadedDataCapture.onLoadedMetadata.onLoadedMetadataCapture.onLoadStart.onLoadStartCapture.onPause.onPauseCapture.onPlay.onPlayCapture.onPlaying.onPlayingCapture.onProgress.onProgressCapture.onRateChange.onRateChangeCapture.onSeeked.onSeekedCapture.onSeeking.onSeekingCapture.onStalled.onStalledCapture.onSuspend.onSuspendCapture.onTimeUpdate.onTimeUpdateCapture.onVolumeChange.onVolumeChangeCapture.onWaiting.onWaitingCapture.onAuxClick.onAuxClickCapture.onClick.onClickCapture.onContextMenu.onContextMenuCapture.onDoubleClick.onDoubleClickCapture.onDrag.onDragCapture.onDragEnd.onDragEndCapture.onDragEnter.onDragEnterCapture.onDragExit.onDragExitCapture.onDragLeave.onDragLeaveCapture.onDragOver.onDragOverCapture.onDragStart.onDragStartCapture.onDrop.onDropCapture.onMouseDown.onMouseDownCapture.onMouseEnter.onMouseLeave.onMouseMove.onMouseMoveCapture.onMouseOut.onMouseOutCapture.onMouseOver.onMouseOverCapture.onMouseUp.onMouseUpCapture.onSelect.onSelectCapture.onTouchCancel.onTouchCancelCapture.onTouchEnd.onTouchEndCapture.onTouchMove.onTouchMoveCapture.onTouchStart.onTouchStartCapture.onPointerDown.onPointerDownCapture.onPointerMove.onPointerMoveCapture.onPointerUp.onPointerUpCapture.onPointerCancel.onPointerCancelCapture.onPointerEnter.onPointerEnterCapture.onPointerLeave.onPointerLeaveCapture.onPointerOver.onPointerOverCapture.onPointerOut.onPointerOutCapture.onGotPointerCapture.onGotPointerCaptureCapture.onLostPointerCapture.onLostPointerCaptureCapture.onScroll.onScrollCapture.onWheel.onWheelCapture.onAnimationStart.onAnimationStartCapture.onAnimationEnd.onAnimationEndCapture.onAnimationIteration.onAnimationIterationCapture.onTransitionEnd.onTransitionEndCapture`.split(`.`),qd=function(e,t,n){return function(r){return e(t,n,r),null}},Jd=function(e,t,n){if(!(0,Bd.default)(e)||Vd(e)!==`object`)return null;var r=null;return Object.keys(e).forEach(function(i){var a=e[i];Kd.includes(i)&&typeof a==`function`&&(r||={},r[i]=qd(a,t,n))}),r},Yd=c(wd()),Xd=c(Td()),Zd=c(Ed()),Qd=c(Ru()),$d=c(Lu()),ef=kd(),tf=function(e){return typeof e==`string`?e:e?e.displayName||e.name||`Component`:``},nf=function(e,t,n,r){var i=Gd?.[r]??[];return t.startsWith(`data-`)||!(0,Qd.default)(e)&&(r&&i.includes(t)||Ud.includes(t))||n&&Kd.includes(t)},rf=function(e,t,n){if(!e||typeof e==`function`||typeof e==`boolean`)return null;var r=e;if((0,l.isValidElement)(e)&&(r=e.props),!(0,$d.default)(r))return null;var i={};return Object.keys(r).forEach(function(e){nf(r?.[e],e,t,n)&&(i[e]=r[e])}),i},af=[`children`,`width`,`height`,`viewBox`,`className`,`style`,`title`,`desc`];function of(){return of=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},of.apply(this,arguments)}function sf(e,t){if(e==null)return{};var n=cf(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function cf(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function lf(e){var t=e.children,n=e.width,r=e.height,i=e.viewBox,a=e.className,o=e.style,s=e.title,c=e.desc,u=sf(e,af),d=i||{width:n,height:r,x:0,y:0},f=v(`recharts-surface`,a);return l.default.createElement(`svg`,of({},rf(u,!0,`svg`),{className:f,width:n,height:r,style:o,viewBox:`${d.x} ${d.y} ${d.width} ${d.height}`}),l.default.createElement(`title`,null,s),l.default.createElement(`desc`,null,c),t)}var uf=process.env.NODE_ENV!==`production`,df=function(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];if(uf&&typeof console<`u`&&console.warn&&(t===void 0&&console.warn(`LogUtils requires an error message argument`),!e))if(t===void 0)console.warn(`Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.`);else{var a=0;console.warn(t.replace(/%s/g,function(){return r[a++]}))}},ff=o(((e,t)=>{function n(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(i);++r<i;)a[r]=e[r+t];return a}t.exports=n})),pf=o(((e,t)=>{var n=ff();function r(e,t,r){var i=e.length;return r=r===void 0?i:r,!t&&r>=i?e:n(e,t,r)}t.exports=r})),mf=o(((e,t)=>{var n=RegExp(`[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]`);function r(e){return n.test(e)}t.exports=r})),hf=o(((e,t)=>{function n(e){return e.split(``)}t.exports=n})),gf=o(((e,t)=>{var n=`\\ud800-\\udfff`,r=`\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff`,i=`\\ufe0e\\ufe0f`,a=`[`+n+`]`,o=`[`+r+`]`,s=`\\ud83c[\\udffb-\\udfff]`,c=`(?:`+o+`|`+s+`)`,l=`[^`+n+`]`,u=`(?:\\ud83c[\\udde6-\\uddff]){2}`,d=`[\\ud800-\\udbff][\\udc00-\\udfff]`,f=`\\u200d`,p=c+`?`,m=`[`+i+`]?`,h=`(?:`+f+`(?:`+[l,u,d].join(`|`)+`)`+m+p+`)*`,g=m+p+h,_=`(?:`+[l+o+`?`,o,u,d,a].join(`|`)+`)`,v=RegExp(s+`(?=`+s+`)|`+_+g,`g`);function y(e){return e.match(v)||[]}t.exports=y})),_f=o(((e,t)=>{var n=hf(),r=mf(),i=gf();function a(e){return r(e)?i(e):n(e)}t.exports=a})),vf=o(((e,t)=>{var n=pf(),r=mf(),i=_f(),a=bd();function o(e){return function(t){t=a(t);var o=r(t)?i(t):void 0,s=o?o[0]:t.charAt(0),c=o?n(o,1).join(``):t.slice(1);return s[e]()+c}}t.exports=o})),yf=o(((e,t)=>{t.exports=vf()(`toUpperCase`)}));function bf(e){return function(){return e}}const xf=Math.cos,Sf=Math.sin,Cf=Math.sqrt,wf=Math.PI,Tf=wf/2,Ef=2*wf;var Df=Math.PI,Of=2*Df,kf=1e-6,Af=Of-kf;function jf(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function Mf(e){let t=Math.floor(e);if(!(t>=0))throw Error(`invalid digits: ${e}`);if(t>15)return jf;let n=10**t;return function(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=Math.round(arguments[t]*n)/n+e[t]}}var Nf=class{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._=``,this._append=e==null?jf:Mf(e)}moveTo(e,t){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,t){this._append`L${this._x1=+e},${this._y1=+t}`}quadraticCurveTo(e,t,n,r){this._append`Q${+e},${+t},${this._x1=+n},${this._y1=+r}`}bezierCurveTo(e,t,n,r,i,a){this._append`C${+e},${+t},${+n},${+r},${this._x1=+i},${this._y1=+a}`}arcTo(e,t,n,r,i){if(e=+e,t=+t,n=+n,r=+r,i=+i,i<0)throw Error(`negative radius: ${i}`);let a=this._x1,o=this._y1,s=n-e,c=r-t,l=a-e,u=o-t,d=l*l+u*u;if(this._x1===null)this._append`M${this._x1=e},${this._y1=t}`;else if(d>kf)if(!(Math.abs(u*s-c*l)>kf)||!i)this._append`L${this._x1=e},${this._y1=t}`;else{let f=n-a,p=r-o,m=s*s+c*c,h=f*f+p*p,g=Math.sqrt(m),_=Math.sqrt(d),v=i*Math.tan((Df-Math.acos((m+d-h)/(2*g*_)))/2),y=v/_,b=v/g;Math.abs(y-1)>kf&&this._append`L${e+y*l},${t+y*u}`,this._append`A${i},${i},0,0,${+(u*f>l*p)},${this._x1=e+b*s},${this._y1=t+b*c}`}}arc(e,t,n,r,i,a){if(e=+e,t=+t,n=+n,a=!!a,n<0)throw Error(`negative radius: ${n}`);let o=n*Math.cos(r),s=n*Math.sin(r),c=e+o,l=t+s,u=1^a,d=a?r-i:i-r;this._x1===null?this._append`M${c},${l}`:(Math.abs(this._x1-c)>kf||Math.abs(this._y1-l)>kf)&&this._append`L${c},${l}`,n&&(d<0&&(d=d%Of+Of),d>Af?this._append`A${n},${n},0,1,${u},${e-o},${t-s}A${n},${n},0,1,${u},${this._x1=c},${this._y1=l}`:d>kf&&this._append`A${n},${n},0,${+(d>=Df)},${u},${this._x1=e+n*Math.cos(i)},${this._y1=t+n*Math.sin(i)}`)}rect(e,t,n,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}};function Pf(){return new Nf}Pf.prototype=Nf.prototype;function Ff(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{let e=Math.floor(n);if(!(e>=0))throw RangeError(`invalid digits: ${n}`);t=e}return e},()=>new Nf(t)}var If={draw(e,t){let n=Cf(t/wf);e.moveTo(n,0),e.arc(0,0,n,0,Ef)}},Lf={draw(e,t){let n=Cf(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},Rf=Cf(1/3),zf=Rf*2,Bf={draw(e,t){let n=Cf(t/zf),r=n*Rf;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},Vf={draw(e,t){let n=Cf(t),r=-n/2;e.rect(r,r,n,n)}},Hf=.8908130915292852,Uf=Sf(wf/10)/Sf(7*wf/10),Wf=Sf(Ef/10)*Uf,Gf=-xf(Ef/10)*Uf,Kf={draw(e,t){let n=Cf(t*Hf),r=Wf*n,i=Gf*n;e.moveTo(0,-n),e.lineTo(r,i);for(let t=1;t<5;++t){let a=Ef*t/5,o=xf(a),s=Sf(a);e.lineTo(s*n,-o*n),e.lineTo(o*r-s*i,s*r+o*i)}e.closePath()}},qf=Cf(3),Jf={draw(e,t){let n=-Cf(t/(qf*3));e.moveTo(0,n*2),e.lineTo(-qf*n,-n),e.lineTo(qf*n,-n),e.closePath()}},Yf=-.5,Xf=Cf(3)/2,Zf=1/Cf(12),Qf=(Zf/2+1)*3,$f={draw(e,t){let n=Cf(t/Qf),r=n/2,i=n*Zf,a=r,o=n*Zf+n,s=-a,c=o;e.moveTo(r,i),e.lineTo(a,o),e.lineTo(s,c),e.lineTo(Yf*r-Xf*i,Xf*r+Yf*i),e.lineTo(Yf*a-Xf*o,Xf*a+Yf*o),e.lineTo(Yf*s-Xf*c,Xf*s+Yf*c),e.lineTo(Yf*r+Xf*i,Yf*i-Xf*r),e.lineTo(Yf*a+Xf*o,Yf*o-Xf*a),e.lineTo(Yf*s+Xf*c,Yf*c-Xf*s),e.closePath()}};function ep(e,t){let n=null,r=Ff(i);e=typeof e==`function`?e:bf(e||If),t=typeof t==`function`?t:bf(t===void 0?64:+t);function i(){let i;if(n||=i=r(),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),i)return n=null,i+``||null}return i.type=function(t){return arguments.length?(e=typeof t==`function`?t:bf(t),i):e},i.size=function(e){return arguments.length?(t=typeof e==`function`?e:bf(+e),i):t},i.context=function(e){return arguments.length?(n=e??null,i):n},i}var tp=c(yf());function np(e){"@babel/helpers - typeof";return np=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},np(e)}var rp=[`type`,`size`,`sizeType`];function ip(){return ip=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},ip.apply(this,arguments)}function ap(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function op(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?ap(Object(n),!0).forEach(function(t){sp(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ap(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function sp(e,t,n){return t=cp(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cp(e){var t=lp(e,`string`);return np(t)==`symbol`?t:t+``}function lp(e,t){if(np(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(np(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function up(e,t){if(e==null)return{};var n=dp(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function dp(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var fp={symbolCircle:If,symbolCross:Lf,symbolDiamond:Bf,symbolSquare:Vf,symbolStar:Kf,symbolTriangle:Jf,symbolWye:$f},pp=Math.PI/180,mp=function(e){return fp[`symbol${(0,tp.default)(e)}`]||If},hp=function(e,t,n){if(t===`area`)return e;switch(n){case`cross`:return 5*e*e/9;case`diamond`:return .5*e*e/Math.sqrt(3);case`square`:return e*e;case`star`:var r=18*pp;return 1.25*e*e*(Math.tan(r)-Math.tan(r*2)*Math.tan(r)**2);case`triangle`:return Math.sqrt(3)*e*e/4;case`wye`:return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}},gp=function(e,t){fp[`symbol${(0,tp.default)(e)}`]=t},_p=function(e){var t=e.type,n=t===void 0?`circle`:t,r=e.size,i=r===void 0?64:r,a=e.sizeType,o=a===void 0?`area`:a,s=op(op({},up(e,rp)),{},{type:n,size:i,sizeType:o}),c=function(){var e=mp(n);return ep().type(e).size(hp(i,o,n))()},u=s.className,d=s.cx,f=s.cy,p=rf(s,!0);return d===+d&&f===+f&&i===+i?l.default.createElement(`path`,ip({},p,{className:v(`recharts-symbols`,u),transform:`translate(${d}, ${f})`,d:c()})):null};_p.registerSymbol=gp;var vp=c(Ru());function yp(e){"@babel/helpers - typeof";return yp=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},yp(e)}function bp(){return bp=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},bp.apply(this,arguments)}function xp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Sp(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?xp(Object(n),!0).forEach(function(t){Np(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xp(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Cp(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function wp(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,Pp(r.key),r)}}function Tp(e,t,n){return t&&wp(e.prototype,t),n&&wp(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function Ep(e,t,n){return t=Ap(t),Dp(e,kp()?Reflect.construct(t,n||[],Ap(e).constructor):t.apply(e,n))}function Dp(e,t){if(t&&(yp(t)===`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return Op(e)}function Op(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function kp(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(kp=function(){return!!e})()}function Ap(e){return Ap=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ap(e)}function jp(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,`prototype`,{writable:!1}),t&&Mp(e,t)}function Mp(e,t){return Mp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Mp(e,t)}function Np(e,t,n){return t=Pp(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pp(e){var t=Fp(e,`string`);return yp(t)==`symbol`?t:t+``}function Fp(e,t){if(yp(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(yp(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var Ip=32,Lp=function(e){function t(){return Cp(this,t),Ep(this,t,arguments)}return jp(t,e),Tp(t,[{key:`renderIcon`,value:function(e){var t=this.props.inactiveColor,n=Ip/2,r=Ip/6,i=Ip/3,a=e.inactive?t:e.color;if(e.type===`plainline`)return l.default.createElement(`line`,{strokeWidth:4,fill:`none`,stroke:a,strokeDasharray:e.payload.strokeDasharray,x1:0,y1:n,x2:Ip,y2:n,className:`recharts-legend-icon`});if(e.type===`line`)return l.default.createElement(`path`,{strokeWidth:4,fill:`none`,stroke:a,d:`M0,${n}h${i}
51
+ For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return l.useEffect(()=>{document.getElementById(e.current?.getAttribute(`aria-describedby`))||console.warn(t)},[t,e]),null},Ui=Si,Wi=wi,Gi=Ei,Ki=Oi,qi=Ni,Ji=zi,Yi=Vi,Xi=Fi,Zi=Li,Qi=Symbol.for(`react.lazy`),$i=l.use;function ea(e){return typeof e==`object`&&!!e&&`then`in e}function ta(e){return typeof e==`object`&&!!e&&`$$typeof`in e&&e.$$typeof===Qi&&`_payload`in e&&ea(e._payload)}function na(e){let t=ia(e),n=l.forwardRef((e,n)=>{let{children:r,...i}=e;ta(r)&&typeof $i==`function`&&(r=$i(r._payload));let a=l.Children.toArray(r),o=a.find(oa);if(o){let e=o.props.children,r=a.map(t=>t===o?l.Children.count(e)>1?l.Children.only(null):l.isValidElement(e)?e.props.children:null:t);return(0,d.jsx)(t,{...i,ref:n,children:l.isValidElement(e)?l.cloneElement(e,void 0,r):null})}return(0,d.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}var ra=na(`Slot`);function ia(e){let t=l.forwardRef((e,t)=>{let{children:n,...r}=e;if(ta(n)&&typeof $i==`function`&&(n=$i(n._payload)),l.isValidElement(n)){let e=ca(n),i=sa(r,n.props);return n.type!==l.Fragment&&(i.ref=t?G(t,e):e),l.cloneElement(n,i)}return l.Children.count(n)>1?l.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var aa=Symbol(`radix.slottable`);function oa(e){return l.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===aa}function sa(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function ca(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var la=e=>typeof e==`boolean`?`${e}`:e===0?`0`:e;const ua=_,da=(e,t)=>n=>{if(t?.variants==null)return ua(e,n?.class,n?.className);let{variants:r,defaultVariants:i}=t,a=Object.keys(r).map(e=>{let t=n?.[e],a=i?.[e];if(t===null)return null;let o=la(t)||la(a);return r[e][o]}),o=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return r===void 0||(e[n]=r),e},{});return ua(e,a,t?.compoundVariants?.reduce((e,t)=>{let{class:n,className:r,...a}=t;return Object.entries(a).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...i,...o}[t]):{...i,...o}[t]===n})?[...e,n,r]:e},[]),n?.class,n?.className)};var fa=da(`button`,{variants:{variant:{default:`button--default`,destructive:`button--destructive`,outline:`button--outline`,secondary:`button--secondary`,ghost:`button--ghost`,link:`button--link`},size:{default:`button--size-default`,sm:`button--size-sm`,lg:`button--size-lg`,icon:`button--size-icon`}},defaultVariants:{variant:`default`,size:`default`}});function pa({className:e,variant:t,size:n,asChild:r=!1,...i}){return(0,d.jsx)(r?ra:`button`,{"data-slot":`button`,"data-variant":t,"data-size":n,className:W(fa({variant:t,size:n,className:e})),...i})}function ma({...e}){return(0,d.jsx)(Ui,{"data-slot":`alert-dialog`,...e})}function ha({...e}){return(0,d.jsx)(Wi,{"data-slot":`alert-dialog-trigger`,...e})}function ga({...e}){return(0,d.jsx)(Gi,{"data-slot":`alert-dialog-portal`,...e})}function _a({className:e,...t}){return(0,d.jsx)(Ki,{"data-slot":`alert-dialog-overlay`,className:W(`data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50`,e),...t})}function va({className:e,size:t=`default`,...n}){return(0,d.jsxs)(ga,{children:[(0,d.jsx)(_a,{}),(0,d.jsx)(qi,{"data-slot":`alert-dialog-content`,"data-size":t,className:W(`bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 group/alert-dialog-content fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 data-[size=sm]:max-w-xs data-[size=default]:sm:max-w-lg`,e),...n})]})}function ya({className:e,...t}){return(0,d.jsx)(`div`,{"data-slot":`alert-dialog-header`,className:W(`grid grid-rows-[auto_1fr] place-items-center gap-1.5 text-center has-data-[slot=alert-dialog-media]:grid-rows-[auto_auto_1fr] has-data-[slot=alert-dialog-media]:gap-x-6 sm:group-data-[size=default]/alert-dialog-content:place-items-start sm:group-data-[size=default]/alert-dialog-content:text-left sm:group-data-[size=default]/alert-dialog-content:has-data-[slot=alert-dialog-media]:grid-rows-[auto_1fr]`,e),...t})}function ba({className:e,...t}){return(0,d.jsx)(`div`,{"data-slot":`alert-dialog-footer`,className:W(`flex flex-col-reverse gap-2 group-data-[size=sm]/alert-dialog-content:grid group-data-[size=sm]/alert-dialog-content:grid-cols-2 sm:flex-row sm:justify-end`,e),...t})}function xa({className:e,...t}){return(0,d.jsx)(Xi,{"data-slot":`alert-dialog-title`,className:W(`text-lg font-semibold sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2`,e),...t})}function Sa({className:e,...t}){return(0,d.jsx)(Zi,{"data-slot":`alert-dialog-description`,className:W(`text-muted-foreground text-sm`,e),...t})}function Ca({className:e,...t}){return(0,d.jsx)(`div`,{"data-slot":`alert-dialog-media`,className:W(`bg-muted mb-2 inline-flex size-16 items-center justify-center rounded-md sm:group-data-[size=default]/alert-dialog-content:row-span-2 *:[svg:not([class*='size-'])]:size-8`,e),...t})}function wa({className:e,variant:t=`default`,size:n=`default`,...r}){return(0,d.jsx)(pa,{variant:t,size:n,asChild:!0,children:(0,d.jsx)(Ji,{"data-slot":`alert-dialog-action`,className:W(e),...r})})}function Ta({className:e,variant:t=`outline`,size:n=`default`,...r}){return(0,d.jsx)(pa,{variant:t,size:n,asChild:!0,children:(0,d.jsx)(Yi,{"data-slot":`alert-dialog-cancel`,className:W(e),...r})})}var Ea=1,Da=.9,Oa=.8,ka=.17,Aa=.1,ja=.999,Ma=.9999,Na=.99,Pa=/[\\\/_+.#"@\[\(\{&]/,Fa=/[\\\/_+.#"@\[\(\{&]/g,Ia=/[\s-]/,La=/[\s-]/g;function Ra(e,t,n,r,i,a,o){if(a===t.length)return i===e.length?Ea:Na;var s=`${i},${a}`;if(o[s]!==void 0)return o[s];for(var c=r.charAt(a),l=n.indexOf(c,i),u=0,d,f,p,m;l>=0;)d=Ra(e,t,n,r,l+1,a+1,o),d>u&&(l===i?d*=Ea:Pa.test(e.charAt(l-1))?(d*=Oa,p=e.slice(i,l-1).match(Fa),p&&i>0&&(d*=ja**+p.length)):Ia.test(e.charAt(l-1))?(d*=Da,m=e.slice(i,l-1).match(La),m&&i>0&&(d*=ja**+m.length)):(d*=ka,i>0&&(d*=ja**+(l-i))),e.charAt(l)!==t.charAt(a)&&(d*=Ma)),(d<Aa&&n.charAt(l-1)===r.charAt(a+1)||r.charAt(a+1)===r.charAt(a)&&n.charAt(l-1)!==r.charAt(a))&&(f=Ra(e,t,n,r,l+1,a+2,o),f*Aa>d&&(d=f*Aa)),d>u&&(u=d),l=n.indexOf(c,l+1);return o[s]=u,u}function za(e){return e.toLowerCase().replace(La,` `)}function Ba(e,t,n){return e=n&&n.length>0?`${e+` `+n.join(` `)}`:e,Ra(e,t,za(e),za(t),0,0,{})}var Va=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=na(`Primitive.${t}`),r=l.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,d.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Ha=`[cmdk-group=""]`,Ua=`[cmdk-group-items=""]`,Wa=`[cmdk-group-heading=""]`,Ga=`[cmdk-item=""]`,Ka=`${Ga}:not([aria-disabled="true"])`,qa=`cmdk-item-select`,Ja=`data-value`,Ya=(e,t,n)=>Ba(e,t,n),Xa=l.createContext(void 0),Za=()=>l.useContext(Xa),Qa=l.createContext(void 0),$a=()=>l.useContext(Qa),eo=l.createContext(void 0),to=l.forwardRef((e,t)=>{let n=go(()=>({search:``,value:e.value??e.defaultValue??``,selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}})),r=go(()=>new Set),i=go(()=>new Map),a=go(()=>new Map),o=go(()=>new Set),s=mo(e),{label:c,children:u,value:d,onValueChange:f,filter:p,shouldFilter:m,loop:h,disablePointerSelection:g=!1,vimBindings:_=!0,...v}=e,y=Y(),b=Y(),x=Y(),S=l.useRef(null),C=yo();ho(()=>{if(d!==void 0){let e=d.trim();n.current.value=e,w.emit()}},[d]),ho(()=>{C(6,A)},[]);let w=l.useMemo(()=>({subscribe:e=>(o.current.add(e),()=>o.current.delete(e)),snapshot:()=>n.current,setState:(e,t,r)=>{var i,a,o;if(!Object.is(n.current[e],t)){if(n.current[e]=t,e===`search`)k(),D(),C(1,O);else if(e===`value`){if(document.activeElement.hasAttribute(`cmdk-input`)||document.activeElement.hasAttribute(`cmdk-root`)){let e=document.getElementById(x);e?e.focus():(i=document.getElementById(y))==null||i.focus()}if(C(7,()=>{n.current.selectedItemId=j()?.id,w.emit()}),r||C(5,A),s.current?.value!==void 0){let e=t??``;(o=(a=s.current).onValueChange)==null||o.call(a,e);return}}w.emit()}},emit:()=>{o.current.forEach(e=>e())}}),[]),T=l.useMemo(()=>({value:(e,t,r)=>{t!==a.current.get(e)?.value&&(a.current.set(e,{value:t,keywords:r}),n.current.filtered.items.set(e,E(t,r)),C(2,()=>{D(),w.emit()}))},item:(e,t)=>(r.current.add(e),t&&(i.current.has(t)?i.current.get(t).add(e):i.current.set(t,new Set([e]))),C(3,()=>{k(),D(),n.current.value||O(),w.emit()}),()=>{a.current.delete(e),r.current.delete(e),n.current.filtered.items.delete(e);let t=j();C(4,()=>{k(),t?.getAttribute(`id`)===e&&O(),w.emit()})}),group:e=>(i.current.has(e)||i.current.set(e,new Set),()=>{a.current.delete(e),i.current.delete(e)}),filter:()=>s.current.shouldFilter,label:c||e[`aria-label`],getDisablePointerSelection:()=>s.current.disablePointerSelection,listId:y,inputId:x,labelId:b,listInnerRef:S}),[]);function E(e,t){let r=s.current?.filter??Ya;return e?r(e,n.current.search,t):0}function D(){if(!n.current.search||s.current.shouldFilter===!1)return;let e=n.current.filtered.items,t=[];n.current.filtered.groups.forEach(n=>{let r=i.current.get(n),a=0;r.forEach(t=>{let n=e.get(t);a=Math.max(n,a)}),t.push([n,a])});let r=S.current;M().sort((t,n)=>{let r=t.getAttribute(`id`),i=n.getAttribute(`id`);return(e.get(i)??0)-(e.get(r)??0)}).forEach(e=>{let t=e.closest(Ua);t?t.appendChild(e.parentElement===t?e:e.closest(`${Ua} > *`)):r.appendChild(e.parentElement===r?e:e.closest(`${Ua} > *`))}),t.sort((e,t)=>t[1]-e[1]).forEach(e=>{let t=S.current?.querySelector(`${Ha}[${Ja}="${encodeURIComponent(e[0])}"]`);t?.parentElement.appendChild(t)})}function O(){let e=M().find(e=>e.getAttribute(`aria-disabled`)!==`true`)?.getAttribute(Ja);w.setState(`value`,e||void 0)}function k(){if(!n.current.search||s.current.shouldFilter===!1){n.current.filtered.count=r.current.size;return}n.current.filtered.groups=new Set;let e=0;for(let t of r.current){let r=E(a.current.get(t)?.value??``,a.current.get(t)?.keywords??[]);n.current.filtered.items.set(t,r),r>0&&e++}for(let[e,t]of i.current)for(let r of t)if(n.current.filtered.items.get(r)>0){n.current.filtered.groups.add(e);break}n.current.filtered.count=e}function A(){var e;let t=j();t&&(t.parentElement?.firstChild===t&&((e=t.closest(Ha)?.querySelector(Wa))==null||e.scrollIntoView({block:`nearest`})),t.scrollIntoView({block:`nearest`}))}function j(){return S.current?.querySelector(`${Ga}[aria-selected="true"]`)}function M(){return Array.from(S.current?.querySelectorAll(Ka)||[])}function N(e){let t=M()[e];t&&w.setState(`value`,t.getAttribute(Ja))}function P(e){var t;let n=j(),r=M(),i=r.findIndex(e=>e===n),a=r[i+e];(t=s.current)!=null&&t.loop&&(a=i+e<0?r[r.length-1]:i+e===r.length?r[0]:r[i+e]),a&&w.setState(`value`,a.getAttribute(Ja))}function F(e){let t=j()?.closest(Ha),n;for(;t&&!n;)t=e>0?fo(t,Ha):po(t,Ha),n=t?.querySelector(Ka);n?w.setState(`value`,n.getAttribute(Ja)):P(e)}let I=()=>N(M().length-1),ee=e=>{e.preventDefault(),e.metaKey?I():e.altKey?F(1):P(1)},te=e=>{e.preventDefault(),e.metaKey?N(0):e.altKey?F(-1):P(-1)};return l.createElement(Va.div,{ref:t,tabIndex:-1,...v,"cmdk-root":``,onKeyDown:e=>{var t;(t=v.onKeyDown)==null||t.call(v,e);let n=e.nativeEvent.isComposing||e.keyCode===229;if(!(e.defaultPrevented||n))switch(e.key){case`n`:case`j`:_&&e.ctrlKey&&ee(e);break;case`ArrowDown`:ee(e);break;case`p`:case`k`:_&&e.ctrlKey&&te(e);break;case`ArrowUp`:te(e);break;case`Home`:e.preventDefault(),N(0);break;case`End`:e.preventDefault(),I();break;case`Enter`:{e.preventDefault();let t=j();if(t){let e=new Event(qa);t.dispatchEvent(e)}}}}},l.createElement(`label`,{"cmdk-label":``,htmlFor:T.inputId,id:T.labelId,style:So},c),xo(e,e=>l.createElement(Qa.Provider,{value:w},l.createElement(Xa.Provider,{value:T},e))))}),no=l.forwardRef((e,t)=>{let n=Y(),r=l.useRef(null),i=l.useContext(eo),a=Za(),o=mo(e),s=o.current?.forceMount??i?.forceMount;ho(()=>{if(!s)return a.item(n,i?.id)},[s]);let c=vo(n,r,[e.value,e.children,r],e.keywords),u=$a(),d=_o(e=>e.value&&e.value===c.current),f=_o(e=>s||a.filter()===!1?!0:e.search?e.filtered.items.get(n)>0:!0);l.useEffect(()=>{let t=r.current;if(!(!t||e.disabled))return t.addEventListener(qa,p),()=>t.removeEventListener(qa,p)},[f,e.onSelect,e.disabled]);function p(){var e,t;m(),(t=(e=o.current).onSelect)==null||t.call(e,c.current)}function m(){u.setState(`value`,c.current,!0)}if(!f)return null;let{disabled:h,value:g,onSelect:_,forceMount:v,keywords:y,...b}=e;return l.createElement(Va.div,{ref:G(r,t),...b,id:n,"cmdk-item":``,role:`option`,"aria-disabled":!!h,"aria-selected":!!d,"data-disabled":!!h,"data-selected":!!d,onPointerMove:h||a.getDisablePointerSelection()?void 0:m,onClick:h?void 0:p},e.children)}),ro=l.forwardRef((e,t)=>{let{heading:n,children:r,forceMount:i,...a}=e,o=Y(),s=l.useRef(null),c=l.useRef(null),u=Y(),d=Za(),f=_o(e=>i||d.filter()===!1?!0:e.search?e.filtered.groups.has(o):!0);ho(()=>d.group(o),[]),vo(o,s,[e.value,e.heading,c]);let p=l.useMemo(()=>({id:o,forceMount:i}),[i]);return l.createElement(Va.div,{ref:G(s,t),...a,"cmdk-group":``,role:`presentation`,hidden:f?void 0:!0},n&&l.createElement(`div`,{ref:c,"cmdk-group-heading":``,"aria-hidden":!0,id:u},n),xo(e,e=>l.createElement(`div`,{"cmdk-group-items":``,role:`group`,"aria-labelledby":n?u:void 0},l.createElement(eo.Provider,{value:p},e))))}),io=l.forwardRef((e,t)=>{let{alwaysRender:n,...r}=e,i=l.useRef(null),a=_o(e=>!e.search);return!n&&!a?null:l.createElement(Va.div,{ref:G(i,t),...r,"cmdk-separator":``,role:`separator`})}),ao=l.forwardRef((e,t)=>{let{onValueChange:n,...r}=e,i=e.value!=null,a=$a(),o=_o(e=>e.search),s=_o(e=>e.selectedItemId),c=Za();return l.useEffect(()=>{e.value!=null&&a.setState(`search`,e.value)},[e.value]),l.createElement(Va.input,{ref:t,...r,"cmdk-input":``,autoComplete:`off`,autoCorrect:`off`,spellCheck:!1,"aria-autocomplete":`list`,role:`combobox`,"aria-expanded":!0,"aria-controls":c.listId,"aria-labelledby":c.labelId,"aria-activedescendant":s,id:c.inputId,type:`text`,value:i?e.value:o,onChange:e=>{i||a.setState(`search`,e.target.value),n?.(e.target.value)}})}),oo=l.forwardRef((e,t)=>{let{children:n,label:r=`Suggestions`,...i}=e,a=l.useRef(null),o=l.useRef(null),s=_o(e=>e.selectedItemId),c=Za();return l.useEffect(()=>{if(o.current&&a.current){let e=o.current,t=a.current,n,r=new ResizeObserver(()=>{n=requestAnimationFrame(()=>{let n=e.offsetHeight;t.style.setProperty(`--cmdk-list-height`,n.toFixed(1)+`px`)})});return r.observe(e),()=>{cancelAnimationFrame(n),r.unobserve(e)}}},[]),l.createElement(Va.div,{ref:G(a,t),...i,"cmdk-list":``,role:`listbox`,tabIndex:-1,"aria-activedescendant":s,"aria-label":r,id:c.listId},xo(e,e=>l.createElement(`div`,{ref:G(o,c.listInnerRef),"cmdk-list-sizer":``},e)))}),so=l.forwardRef((e,t)=>{let{open:n,onOpenChange:r,overlayClassName:i,contentClassName:a,container:o,...s}=e;return l.createElement(ci,{open:n,onOpenChange:r},l.createElement(ui,{container:o},l.createElement(di,{"cmdk-overlay":``,className:i}),l.createElement(fi,{"aria-label":e.label,"cmdk-dialog":``,className:a},l.createElement(to,{ref:t,...s}))))}),co=l.forwardRef((e,t)=>_o(e=>e.filtered.count===0)?l.createElement(Va.div,{ref:t,...e,"cmdk-empty":``,role:`presentation`}):null),lo=l.forwardRef((e,t)=>{let{progress:n,children:r,label:i=`Loading...`,...a}=e;return l.createElement(Va.div,{ref:t,...a,"cmdk-loading":``,role:`progressbar`,"aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":i},xo(e,e=>l.createElement(`div`,{"aria-hidden":!0},e)))}),uo=Object.assign(to,{List:oo,Item:no,Input:ao,Group:ro,Separator:io,Dialog:so,Empty:co,Loading:lo});function fo(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function po(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function mo(e){let t=l.useRef(e);return ho(()=>{t.current=e}),t}var ho=typeof window>`u`?l.useEffect:l.useLayoutEffect;function go(e){let t=l.useRef();return t.current===void 0&&(t.current=e()),t}function _o(e){let t=$a(),n=()=>e(t.snapshot());return l.useSyncExternalStore(t.subscribe,n,n)}function vo(e,t,n,r=[]){let i=l.useRef(),a=Za();return ho(()=>{var o;let s=(()=>{for(let e of n){if(typeof e==`string`)return e.trim();if(typeof e==`object`&&`current`in e)return e.current?e.current.textContent?.trim():i.current}})(),c=r.map(e=>e.trim());a.value(e,s,c),(o=t.current)==null||o.setAttribute(Ja,s),i.current=s}),i}var yo=()=>{let[e,t]=l.useState(),n=go(()=>new Map);return ho(()=>{n.current.forEach(e=>e()),n.current=new Map},[e]),(e,r)=>{n.current.set(e,r),t({})}};function bo(e){let t=e.type;return typeof t==`function`?t(e.props):`render`in t?t.render(e.props):e}function xo({asChild:e,children:t},n){return e&&l.isValidElement(t)?l.cloneElement(bo(t),{ref:t.ref},n(t.props.children)):n(t)}var So={position:`absolute`,width:`1px`,height:`1px`,padding:`0`,margin:`-1px`,overflow:`hidden`,clip:`rect(0, 0, 0, 0)`,whiteSpace:`nowrap`,borderWidth:`0`};function Co({...e}){return(0,d.jsx)(ci,{"data-slot":`dialog`,...e})}function wo({...e}){return(0,d.jsx)(li,{"data-slot":`dialog-trigger`,...e})}function To({...e}){return(0,d.jsx)(ui,{"data-slot":`dialog-portal`,...e})}function Eo({...e}){return(0,d.jsx)(hi,{"data-slot":`dialog-close`,...e})}function Do({className:e,...t}){return(0,d.jsx)(di,{"data-slot":`dialog-overlay`,className:W(`data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50`,e),...t})}function Oo({className:e,children:t,showCloseButton:n=!0,...r}){return(0,d.jsxs)(To,{"data-slot":`dialog-portal`,children:[(0,d.jsx)(Do,{}),(0,d.jsxs)(fi,{"data-slot":`dialog-content`,className:W(`bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 outline-none sm:max-w-lg`,e),...r,children:[t,n&&(0,d.jsxs)(hi,{"data-slot":`dialog-close`,className:`ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,children:[(0,d.jsx)(u.XIcon,{}),(0,d.jsx)(`span`,{className:`sr-only`,children:`Close`})]})]})]})}function ko({className:e,...t}){return(0,d.jsx)(`div`,{"data-slot":`dialog-header`,className:W(`flex flex-col gap-2 text-center sm:text-left`,e),...t})}function Ao({className:e,...t}){return(0,d.jsx)(`div`,{"data-slot":`dialog-footer`,className:W(`flex flex-col-reverse gap-2 sm:flex-row sm:justify-end`,e),...t})}function jo({className:e,...t}){return(0,d.jsx)(pi,{"data-slot":`dialog-title`,className:W(`text-lg leading-none font-semibold`,e),...t})}function Mo({className:e,...t}){return(0,d.jsx)(mi,{"data-slot":`dialog-description`,className:W(`text-muted-foreground text-sm`,e),...t})}function No({className:e,...t}){return(0,d.jsx)(uo,{"data-slot":`command`,className:W(`bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md`,e),...t})}function Po({title:e=`Command Palette`,description:t=`Search for a command to run...`,children:n,className:r,showCloseButton:i=!0,...a}){return(0,d.jsxs)(Co,{...a,children:[(0,d.jsxs)(ko,{className:`sr-only`,children:[(0,d.jsx)(jo,{children:e}),(0,d.jsx)(Mo,{children:t})]}),(0,d.jsx)(Oo,{className:W(`overflow-hidden p-0`,r),showCloseButton:i,children:(0,d.jsx)(No,{className:`[&_[cmdk-group-heading]]:text-muted-foreground **:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5`,children:n})})]})}function Fo({className:e,...t}){return(0,d.jsxs)(`div`,{"data-slot":`command-input-wrapper`,className:`flex gap-2 items-center px-3 h-9 border-b`,children:[(0,d.jsx)(u.SearchIcon,{className:`opacity-50 size-4 shrink-0`}),(0,d.jsx)(uo.Input,{"data-slot":`command-input`,className:W(`placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50`,e),...t})]})}function Io({className:e,...t}){return(0,d.jsx)(uo.List,{"data-slot":`command-list`,className:W(`max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto`,e),...t})}function Lo({...e}){return(0,d.jsx)(uo.Empty,{"data-slot":`command-empty`,className:`py-6 text-sm text-center`,...e})}function Ro({className:e,...t}){return(0,d.jsx)(uo.Group,{"data-slot":`command-group`,className:W(`text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium`,e),...t})}function zo({className:e,...t}){return(0,d.jsx)(uo.Separator,{"data-slot":`command-separator`,className:W(`bg-border -mx-1 h-px`,e),...t})}function Bo({className:e,...t}){return(0,d.jsx)(uo.Item,{"data-slot":`command-item`,className:W(`data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,e),...t})}function Vo({className:e,...t}){return(0,d.jsx)(`span`,{"data-slot":`command-shortcut`,className:W(`text-muted-foreground ml-auto text-xs tracking-widest`,e),...t})}var Ho=[`top`,`right`,`bottom`,`left`],Uo=Math.min,Wo=Math.max,Go=Math.round,Ko=Math.floor,qo=e=>({x:e,y:e}),Jo={left:`right`,right:`left`,bottom:`top`,top:`bottom`},Yo={start:`end`,end:`start`};function Xo(e,t,n){return Wo(e,Uo(t,n))}function Zo(e,t){return typeof e==`function`?e(t):e}function Qo(e){return e.split(`-`)[0]}function $o(e){return e.split(`-`)[1]}function es(e){return e===`x`?`y`:`x`}function ts(e){return e===`y`?`height`:`width`}var ns=new Set([`top`,`bottom`]);function rs(e){return ns.has(Qo(e))?`y`:`x`}function is(e){return es(rs(e))}function as(e,t,n){n===void 0&&(n=!1);let r=$o(e),i=is(e),a=ts(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=ms(o)),[o,ms(o)]}function os(e){let t=ms(e);return[ss(e),t,ss(t)]}function ss(e){return e.replace(/start|end/g,e=>Yo[e])}var cs=[`left`,`right`],ls=[`right`,`left`],us=[`top`,`bottom`],ds=[`bottom`,`top`];function fs(e,t,n){switch(e){case`top`:case`bottom`:return n?t?ls:cs:t?cs:ls;case`left`:case`right`:return t?us:ds;default:return[]}}function ps(e,t,n,r){let i=$o(e),a=fs(Qo(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(ss)))),a}function ms(e){return e.replace(/left|right|bottom|top/g,e=>Jo[e])}function hs(e){return{top:0,right:0,bottom:0,left:0,...e}}function gs(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:hs(e)}function _s(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function vs(e,t,n){let{reference:r,floating:i}=e,a=rs(t),o=is(t),s=ts(o),c=Qo(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}switch($o(t)){case`start`:p[o]-=f*(n&&l?-1:1);break;case`end`:p[o]+=f*(n&&l?-1:1);break}return p}var ys=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=a.filter(Boolean),c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=vs(l,r,c),f=r,p={},m=0;for(let n=0;n<s.length;n++){let{name:a,fn:h}=s[n],{x:g,y:_,data:v,reset:y}=await h({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:p,rects:l,platform:o,elements:{reference:e,floating:t}});u=g??u,d=_??d,p={...p,[a]:{...p[a],...v}},y&&m<=50&&(m++,typeof y==`object`&&(y.placement&&(f=y.placement),y.rects&&(l=y.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):y.rects),{x:u,y:d}=vs(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:p}};async function bs(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=Zo(t,e),p=gs(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=_s(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=_s(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var xs=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=Zo(e,t)||{};if(l==null)return{};let d=gs(u),f={x:n,y:r},p=is(i),m=ts(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;(!C||!await(o.isElement==null?void 0:o.isElement(S)))&&(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,E=Uo(d[_],T),D=Uo(d[v],T),O=E,k=C-h[m]-D,A=C/2-h[m]/2+w,j=Xo(O,A,k),M=!c.arrow&&$o(i)!=null&&A!==j&&a.reference[m]/2-(A<O?E:D)-h[m]/2<0,N=M?A<O?A-O:A-k:0;return{[p]:f[p]+N,data:{[p]:j,centerOffset:A-j-N,...M&&{alignmentOffset:N}},reset:M}}}),Ss=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=Zo(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=Qo(r),_=rs(o),v=Qo(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[ms(o)]:os(o)),x=p!==`none`;!d&&x&&b.push(...ps(o,m,p,y));let S=[o,...b],C=await bs(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=as(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(!(u===`alignment`&&_!==rs(t))||T.every(e=>rs(e.placement)===_?e.overflows[0]>0:!0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=rs(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o;break}if(r!==n)return{reset:{placement:n}}}return{}}}};function Cs(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function ws(e){return Ho.some(t=>e[t]>=0)}var Ts=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n}=t,{strategy:r=`referenceHidden`,...i}=Zo(e,t);switch(r){case`referenceHidden`:{let e=Cs(await bs(t,{...i,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:ws(e)}}}case`escaped`:{let e=Cs(await bs(t,{...i,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:ws(e)}}}default:return{}}}}},Es=new Set([`left`,`top`]);async function Ds(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=Qo(n),s=$o(n),c=rs(n)===`y`,l=Es.has(o)?-1:1,u=a&&c?-1:1,d=Zo(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var Os=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await Ds(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},ks=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i}=t,{mainAxis:a=!0,crossAxis:o=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=Zo(e,t),l={x:n,y:r},u=await bs(t,c),d=rs(Qo(i)),f=es(d),p=l[f],m=l[d];if(a){let e=f===`y`?`top`:`left`,t=f===`y`?`bottom`:`right`,n=p+u[e],r=p-u[t];p=Xo(n,p,r)}if(o){let e=d===`y`?`top`:`left`,t=d===`y`?`bottom`:`right`,n=m+u[e],r=m-u[t];m=Xo(n,m,r)}let h=s.fn({...t,[f]:p,[d]:m});return{...h,data:{x:h.x-n,y:h.y-r,enabled:{[f]:a,[d]:o}}}}}},As=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=Zo(e,t),u={x:n,y:r},d=rs(i),f=es(d),p=u[f],m=u[d],h=Zo(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=Es.has(Qo(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},js=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){var n,r;let{placement:i,rects:a,platform:o,elements:s}=t,{apply:c=()=>{},...l}=Zo(e,t),u=await bs(t,l),d=Qo(i),f=$o(i),p=rs(i)===`y`,{width:m,height:h}=a.floating,g,_;d===`top`||d===`bottom`?(g=d,_=f===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?`start`:`end`)?`left`:`right`):(_=d,g=f===`end`?`top`:`bottom`);let v=h-u.top-u.bottom,y=m-u.left-u.right,b=Uo(h-u[g],v),x=Uo(m-u[_],y),S=!t.middlewareData.shift,C=b,w=x;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(w=y),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(C=v),S&&!f){let e=Wo(u.left,0),t=Wo(u.right,0),n=Wo(u.top,0),r=Wo(u.bottom,0);p?w=m-2*(e!==0||t!==0?e+t:Wo(u.left,u.right)):C=h-2*(n!==0||r!==0?n+r:Wo(u.top,u.bottom))}await c({...t,availableWidth:w,availableHeight:C});let T=await o.getDimensions(s.floating);return m!==T.width||h!==T.height?{reset:{rects:!0}}:{}}}};function Ms(){return typeof window<`u`}function Ns(e){return Is(e)?(e.nodeName||``).toLowerCase():`#document`}function Ps(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Fs(e){return((Is(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function Is(e){return Ms()?e instanceof Node||e instanceof Ps(e).Node:!1}function Ls(e){return Ms()?e instanceof Element||e instanceof Ps(e).Element:!1}function Rs(e){return Ms()?e instanceof HTMLElement||e instanceof Ps(e).HTMLElement:!1}function zs(e){return!Ms()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof Ps(e).ShadowRoot}var Bs=new Set([`inline`,`contents`]);function Vs(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=ec(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!Bs.has(i)}var Hs=new Set([`table`,`td`,`th`]);function Us(e){return Hs.has(Ns(e))}var Ws=[`:popover-open`,`:modal`];function Gs(e){return Ws.some(t=>{try{return e.matches(t)}catch{return!1}})}var Ks=[`transform`,`translate`,`scale`,`rotate`,`perspective`],qs=[`transform`,`translate`,`scale`,`rotate`,`perspective`,`filter`],Js=[`paint`,`layout`,`strict`,`content`];function Ys(e){let t=Zs(),n=Ls(e)?ec(e):e;return Ks.some(e=>n[e]?n[e]!==`none`:!1)||(n.containerType?n.containerType!==`normal`:!1)||!t&&(n.backdropFilter?n.backdropFilter!==`none`:!1)||!t&&(n.filter?n.filter!==`none`:!1)||qs.some(e=>(n.willChange||``).includes(e))||Js.some(e=>(n.contain||``).includes(e))}function Xs(e){let t=nc(e);for(;Rs(t)&&!$s(t);){if(Ys(t))return t;if(Gs(t))return null;t=nc(t)}return null}function Zs(){return typeof CSS>`u`||!CSS.supports?!1:CSS.supports(`-webkit-backdrop-filter`,`none`)}var Qs=new Set([`html`,`body`,`#document`]);function $s(e){return Qs.has(Ns(e))}function ec(e){return Ps(e).getComputedStyle(e)}function tc(e){return Ls(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function nc(e){if(Ns(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||zs(e)&&e.host||Fs(e);return zs(t)?t.host:t}function rc(e){let t=nc(e);return $s(t)?e.ownerDocument?e.ownerDocument.body:e.body:Rs(t)&&Vs(t)?t:rc(t)}function ic(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=rc(e),i=r===e.ownerDocument?.body,a=Ps(r);if(i){let e=ac(a);return t.concat(a,a.visualViewport||[],Vs(r)?r:[],e&&n?ic(e):[])}return t.concat(r,ic(r,[],n))}function ac(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function oc(e){let t=ec(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=Rs(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=Go(n)!==a||Go(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function sc(e){return Ls(e)?e:e.contextElement}function cc(e){let t=sc(e);if(!Rs(t))return qo(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=oc(t),o=(a?Go(n.width):n.width)/r,s=(a?Go(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var lc=qo(0);function uc(e){let t=Ps(e);return!Zs()||!t.visualViewport?lc:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function dc(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Ps(e)?!1:t}function fc(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=sc(e),o=qo(1);t&&(r?Ls(r)&&(o=cc(r)):o=cc(e));let s=dc(a,n,r)?uc(a):qo(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a){let e=Ps(a),t=r&&Ls(r)?Ps(r):r,n=e,i=ac(n);for(;i&&r&&t!==n;){let e=cc(i),t=i.getBoundingClientRect(),r=ec(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=Ps(i),i=ac(n)}}return _s({width:u,height:d,x:c,y:l})}function pc(e,t){let n=tc(e).scrollLeft;return t?t.left+n:fc(Fs(e)).left+n}function mc(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-pc(e,n),y:n.top+t.scrollTop}}function hc(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=Fs(r),s=t?Gs(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=qo(1),u=qo(0),d=Rs(r);if((d||!d&&!a)&&((Ns(r)!==`body`||Vs(o))&&(c=tc(r)),Rs(r))){let e=fc(r);l=cc(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?mc(o,c):qo(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function gc(e){return Array.from(e.getClientRects())}function _c(e){let t=Fs(e),n=tc(e),r=e.ownerDocument.body,i=Wo(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=Wo(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+pc(e),s=-n.scrollTop;return ec(r).direction===`rtl`&&(o+=Wo(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}var vc=25;function yc(e,t){let n=Ps(e),r=Fs(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=Zs();(!e||e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}let l=pc(r);if(l<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(r.clientWidth-t.clientWidth-i);o<=vc&&(a-=o)}else l<=vc&&(a+=l);return{width:a,height:o,x:s,y:c}}var bc=new Set([`absolute`,`fixed`]);function xc(e,t){let n=fc(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=Rs(e)?cc(e):qo(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function Sc(e,t,n){let r;if(t===`viewport`)r=yc(e,n);else if(t===`document`)r=_c(Fs(e));else if(Ls(t))r=xc(t,n);else{let n=uc(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return _s(r)}function Cc(e,t){let n=nc(e);return n===t||!Ls(n)||$s(n)?!1:ec(n).position===`fixed`||Cc(n,t)}function wc(e,t){let n=t.get(e);if(n)return n;let r=ic(e,[],!1).filter(e=>Ls(e)&&Ns(e)!==`body`),i=null,a=ec(e).position===`fixed`,o=a?nc(e):e;for(;Ls(o)&&!$s(o);){let t=ec(o),n=Ys(o);!n&&t.position===`fixed`&&(i=null),(a?!n&&!i:!n&&t.position===`static`&&i&&bc.has(i.position)||Vs(o)&&!n&&Cc(e,o))?r=r.filter(e=>e!==o):i=t,o=nc(o)}return t.set(e,r),r}function Tc(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?Gs(t)?[]:wc(t,this._c):[].concat(n),r],o=a[0],s=a.reduce((e,n)=>{let r=Sc(t,n,i);return e.top=Wo(r.top,e.top),e.right=Uo(r.right,e.right),e.bottom=Uo(r.bottom,e.bottom),e.left=Wo(r.left,e.left),e},Sc(t,o,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}}function Ec(e){let{width:t,height:n}=oc(e);return{width:t,height:n}}function Dc(e,t,n){let r=Rs(t),i=Fs(t),a=n===`fixed`,o=fc(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=qo(0);function l(){c.x=pc(i)}if(r||!r&&!a)if((Ns(t)!==`body`||Vs(i))&&(s=tc(t)),r){let e=fc(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else i&&l();a&&!r&&i&&l();let u=i&&!r&&!a?mc(i,s):qo(0);return{x:o.left+s.scrollLeft-c.x-u.x,y:o.top+s.scrollTop-c.y-u.y,width:o.width,height:o.height}}function Oc(e){return ec(e).position===`static`}function kc(e,t){if(!Rs(e)||ec(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return Fs(e)===n&&(n=n.ownerDocument.body),n}function Ac(e,t){let n=Ps(e);if(Gs(e))return n;if(!Rs(e)){let t=nc(e);for(;t&&!$s(t);){if(Ls(t)&&!Oc(t))return t;t=nc(t)}return n}let r=kc(e,t);for(;r&&Us(r)&&Oc(r);)r=kc(r,t);return r&&$s(r)&&Oc(r)&&!Ys(r)?n:r||Xs(e)||n}var jc=async function(e){let t=this.getOffsetParent||Ac,n=this.getDimensions,r=await n(e.floating);return{reference:Dc(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Mc(e){return ec(e).direction===`rtl`}var Nc={convertOffsetParentRelativeRectToViewportRelativeRect:hc,getDocumentElement:Fs,getClippingRect:Tc,getOffsetParent:Ac,getElementRects:jc,getClientRects:gc,getDimensions:Ec,getScale:cc,isElement:Ls,isRTL:Mc};function Pc(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Fc(e,t){let n=null,r,i=Fs(e);function a(){var e;clearTimeout(r),(e=n)==null||e.disconnect(),n=null}function o(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),a();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(s||t(),!f||!p)return;let m=Ko(d),h=Ko(i.clientWidth-(u+f)),g=Ko(i.clientHeight-(d+p)),_=Ko(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:Wo(0,Uo(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(n!==c){if(!y)return o();n?o(!1,n):r=setTimeout(()=>{o(!1,1e-7)},1e3)}n===1&&!Pc(l,e.getBoundingClientRect())&&o(),y=!1}try{n=new IntersectionObserver(b,{...v,root:i.ownerDocument})}catch{n=new IntersectionObserver(b,v)}n.observe(e)}return o(!0),a}function Ic(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=sc(e),u=i||a?[...l?ic(l):[],...ic(t)]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n,{passive:!0}),a&&e.addEventListener(`resize`,n)});let d=l&&s?Fc(l,n):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),p.observe(t));let m,h=c?fc(e):null;c&&g();function g(){let t=fc(e);h&&!Pc(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var Lc=Os,Rc=ks,zc=Ss,Bc=js,Vc=Ts,Hc=xs,Uc=As,Wc=(e,t,n)=>{let r=new Map,i={platform:Nc,...n},a={...i.platform,_c:r};return ys(e,t,{...i,platform:a})},Gc=typeof document<`u`?l.useLayoutEffect:function(){};function Kc(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==`function`&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Kc(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!Kc(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function qc(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Jc(e,t){let n=qc(e);return Math.round(t*n)/n}function Yc(e){let t=l.useRef(e);return Gc(()=>{t.current=e}),t}function Xc(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:c,open:u}=e,[d,p]=l.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,h]=l.useState(r);Kc(m,r)||h(r);let[g,_]=l.useState(null),[v,y]=l.useState(null),b=l.useCallback(e=>{e!==w.current&&(w.current=e,_(e))},[]),x=l.useCallback(e=>{e!==T.current&&(T.current=e,y(e))},[]),S=a||g,C=o||v,w=l.useRef(null),T=l.useRef(null),E=l.useRef(d),D=c!=null,O=Yc(c),k=Yc(i),A=Yc(u),j=l.useCallback(()=>{if(!w.current||!T.current)return;let e={placement:t,strategy:n,middleware:m};k.current&&(e.platform=k.current),Wc(w.current,T.current,e).then(e=>{let t={...e,isPositioned:A.current!==!1};M.current&&!Kc(E.current,t)&&(E.current=t,f.flushSync(()=>{p(t)}))})},[m,t,n,k,A]);Gc(()=>{u===!1&&E.current.isPositioned&&(E.current.isPositioned=!1,p(e=>({...e,isPositioned:!1})))},[u]);let M=l.useRef(!1);Gc(()=>(M.current=!0,()=>{M.current=!1}),[]),Gc(()=>{if(S&&(w.current=S),C&&(T.current=C),S&&C){if(O.current)return O.current(S,C,j);j()}},[S,C,j,O,D]);let N=l.useMemo(()=>({reference:w,floating:T,setReference:b,setFloating:x}),[b,x]),P=l.useMemo(()=>({reference:S,floating:C}),[S,C]),F=l.useMemo(()=>{let e={position:n,left:0,top:0};if(!P.floating)return e;let t=Jc(P.floating,d.x),r=Jc(P.floating,d.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...qc(P.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,P.floating,d.x,d.y]);return l.useMemo(()=>({...d,update:j,refs:N,elements:P,floatingStyles:F}),[d,j,N,P,F])}var Zc=e=>{function t(e){return{}.hasOwnProperty.call(e,`current`)}return{name:`arrow`,options:e,fn(n){let{element:r,padding:i}=typeof e==`function`?e(n):e;return r&&t(r)?r.current==null?{}:Hc({element:r.current,padding:i}).fn(n):r?Hc({element:r,padding:i}).fn(n):{}}}},Qc=(e,t)=>({...Lc(e),options:[e,t]}),$c=(e,t)=>({...Rc(e),options:[e,t]}),el=(e,t)=>({...Uc(e),options:[e,t]}),tl=(e,t)=>({...zc(e),options:[e,t]}),nl=(e,t)=>({...Bc(e),options:[e,t]}),rl=(e,t)=>({...Vc(e),options:[e,t]}),il=(e,t)=>({...Zc(e),options:[e,t]}),al=`Arrow`,ol=l.forwardRef((e,t)=>{let{children:n,width:r=10,height:i=5,...a}=e;return(0,d.jsx)(X.svg,{...a,ref:t,width:r,height:i,viewBox:`0 0 30 10`,preserveAspectRatio:`none`,children:e.asChild?n:(0,d.jsx)(`polygon`,{points:`0,0 30,0 15,10`})})});ol.displayName=al;var sl=ol;function cl(e){let[t,n]=l.useState(void 0);return J(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{if(!Array.isArray(t)||!t.length)return;let r=t[0],i,a;if(`borderBoxSize`in r){let e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;i=t.inlineSize,a=t.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return t.observe(e,{box:`border-box`}),()=>t.unobserve(e)}else n(void 0)},[e]),t}var ll=`Popper`,[ul,dl]=et(ll),[fl,pl]=ul(ll),ml=e=>{let{__scopePopper:t,children:n}=e,[r,i]=l.useState(null);return(0,d.jsx)(fl,{scope:t,anchor:r,onAnchorChange:i,children:n})};ml.displayName=ll;var hl=`PopperAnchor`,gl=l.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:r,...i}=e,a=pl(hl,n),o=l.useRef(null),s=K(t,o),c=l.useRef(null);return l.useEffect(()=>{let e=c.current;c.current=r?.current||o.current,e!==c.current&&a.onAnchorChange(c.current)}),r?null:(0,d.jsx)(X.div,{...i,ref:s})});gl.displayName=hl;var _l=`PopperContent`,[vl,yl]=ul(_l),bl=l.forwardRef((e,t)=>{let{__scopePopper:n,side:r=`bottom`,sideOffset:i=0,align:a=`center`,alignOffset:o=0,arrowPadding:s=0,avoidCollisions:c=!0,collisionBoundary:u=[],collisionPadding:f=0,sticky:p=`partial`,hideWhenDetached:m=!1,updatePositionStrategy:h=`optimized`,onPlaced:g,..._}=e,v=pl(_l,n),[y,b]=l.useState(null),x=K(t,e=>b(e)),[S,C]=l.useState(null),w=cl(S),T=w?.width??0,E=w?.height??0,D=r+(a===`center`?``:`-`+a),O=typeof f==`number`?f:{top:0,right:0,bottom:0,left:0,...f},k=Array.isArray(u)?u:[u],A=k.length>0,j={padding:O,boundary:k.filter(wl),altBoundary:A},{refs:M,floatingStyles:N,placement:P,isPositioned:F,middlewareData:I}=Xc({strategy:`fixed`,placement:D,whileElementsMounted:(...e)=>Ic(...e,{animationFrame:h===`always`}),elements:{reference:v.anchor},middleware:[Qc({mainAxis:i+E,alignmentAxis:o}),c&&$c({mainAxis:!0,crossAxis:!1,limiter:p===`partial`?el():void 0,...j}),c&&tl({...j}),nl({...j,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:a}=t.reference,o=e.floating.style;o.setProperty(`--radix-popper-available-width`,`${n}px`),o.setProperty(`--radix-popper-available-height`,`${r}px`),o.setProperty(`--radix-popper-anchor-width`,`${i}px`),o.setProperty(`--radix-popper-anchor-height`,`${a}px`)}}),S&&il({element:S,padding:s}),Tl({arrowWidth:T,arrowHeight:E}),m&&rl({strategy:`referenceHidden`,...j})]}),[ee,te]=El(P),L=Z(g);J(()=>{F&&L?.()},[F,L]);let R=I.arrow?.x,ne=I.arrow?.y,re=I.arrow?.centerOffset!==0,[z,ie]=l.useState();return J(()=>{y&&ie(window.getComputedStyle(y).zIndex)},[y]),(0,d.jsx)(`div`,{ref:M.setFloating,"data-radix-popper-content-wrapper":``,style:{...N,transform:F?N.transform:`translate(0, -200%)`,minWidth:`max-content`,zIndex:z,"--radix-popper-transform-origin":[I.transformOrigin?.x,I.transformOrigin?.y].join(` `),...I.hide?.referenceHidden&&{visibility:`hidden`,pointerEvents:`none`}},dir:e.dir,children:(0,d.jsx)(vl,{scope:n,placedSide:ee,onArrowChange:C,arrowX:R,arrowY:ne,shouldHideArrow:re,children:(0,d.jsx)(X.div,{"data-side":ee,"data-align":te,..._,ref:x,style:{..._.style,animation:F?void 0:`none`}})})})});bl.displayName=_l;var xl=`PopperArrow`,Sl={top:`bottom`,right:`left`,bottom:`top`,left:`right`},Cl=l.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,i=yl(xl,n),a=Sl[i.placedSide];return(0,d.jsx)(`span`,{ref:i.onArrowChange,style:{position:`absolute`,left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:``,right:`0 0`,bottom:`center 0`,left:`100% 0`}[i.placedSide],transform:{top:`translateY(100%)`,right:`translateY(50%) rotate(90deg) translateX(-50%)`,bottom:`rotate(180deg)`,left:`translateY(50%) rotate(-90deg) translateX(50%)`}[i.placedSide],visibility:i.shouldHideArrow?`hidden`:void 0},children:(0,d.jsx)(sl,{...r,ref:t,style:{...r.style,display:`block`}})})});Cl.displayName=xl;function wl(e){return e!==null}var Tl=e=>({name:`transformOrigin`,options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,a=i.arrow?.centerOffset!==0,o=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[c,l]=El(n),u={start:`0%`,center:`50%`,end:`100%`}[l],d=(i.arrow?.x??0)+o/2,f=(i.arrow?.y??0)+s/2,p=``,m=``;return c===`bottom`?(p=a?u:`${d}px`,m=`${-s}px`):c===`top`?(p=a?u:`${d}px`,m=`${r.floating.height+s}px`):c===`right`?(p=`${-s}px`,m=a?u:`${f}px`):c===`left`&&(p=`${r.floating.width+s}px`,m=a?u:`${f}px`),{data:{x:p,y:m}}}});function El(e){let[t,n=`center`]=e.split(`-`);return[t,n]}var Dl=ml,Ol=gl,kl=bl,Al=Cl;function jl(e){let t=Ml(e),n=l.forwardRef((e,n)=>{let{children:r,...i}=e,a=l.Children.toArray(r),o=a.find(Pl);if(o){let e=o.props.children,r=a.map(t=>t===o?l.Children.count(e)>1?l.Children.only(null):l.isValidElement(e)?e.props.children:null:t);return(0,d.jsx)(t,{...i,ref:n,children:l.isValidElement(e)?l.cloneElement(e,void 0,r):null})}return(0,d.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}function Ml(e){let t=l.forwardRef((e,t)=>{let{children:n,...r}=e;if(l.isValidElement(n)){let e=Il(n),i=Fl(r,n.props);return n.type!==l.Fragment&&(i.ref=t?G(t,e):e),l.cloneElement(n,i)}return l.Children.count(n)>1?l.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Nl=Symbol(`radix.slottable`);function Pl(e){return l.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===Nl}function Fl(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function Il(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Ll=`Popover`,[Rl,zl]=et(Ll,[dl]),Bl=dl(),[Vl,Hl]=Rl(Ll),Ul=e=>{let{__scopePopover:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!1}=e,s=Bl(t),c=l.useRef(null),[u,f]=l.useState(!1),[p,m]=st({prop:r,defaultProp:i??!1,onChange:a,caller:Ll});return(0,d.jsx)(Dl,{...s,children:(0,d.jsx)(Vl,{scope:t,contentId:Y(),triggerRef:c,open:p,onOpenChange:m,onOpenToggle:l.useCallback(()=>m(e=>!e),[m]),hasCustomAnchor:u,onCustomAnchorAdd:l.useCallback(()=>f(!0),[]),onCustomAnchorRemove:l.useCallback(()=>f(!1),[]),modal:o,children:n})})};Ul.displayName=Ll;var Wl=`PopoverAnchor`,Gl=l.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=Hl(Wl,n),a=Bl(n),{onCustomAnchorAdd:o,onCustomAnchorRemove:s}=i;return l.useEffect(()=>(o(),()=>s()),[o,s]),(0,d.jsx)(Ol,{...a,...r,ref:t})});Gl.displayName=Wl;var Kl=`PopoverTrigger`,ql=l.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=Hl(Kl,n),a=Bl(n),o=K(t,i.triggerRef),s=(0,d.jsx)(X.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":i.open,"aria-controls":i.contentId,"data-state":cu(i.open),...r,ref:o,onClick:q(e.onClick,i.onOpenToggle)});return i.hasCustomAnchor?s:(0,d.jsx)(Ol,{asChild:!0,...a,children:s})});ql.displayName=Kl;var Jl=`PopoverPortal`,[Yl,Xl]=Rl(Jl,{forceMount:void 0}),Zl=e=>{let{__scopePopover:t,forceMount:n,children:r,container:i}=e,a=Hl(Jl,t);return(0,d.jsx)(Yl,{scope:t,forceMount:n,children:(0,d.jsx)(Q,{present:n||a.open,children:(0,d.jsx)(Jt,{asChild:!0,container:i,children:r})})})};Zl.displayName=Jl;var Ql=`PopoverContent`,$l=l.forwardRef((e,t)=>{let n=Xl(Ql,e.__scopePopover),{forceMount:r=n.forceMount,...i}=e,a=Hl(Ql,e.__scopePopover);return(0,d.jsx)(Q,{present:r||a.open,children:a.modal?(0,d.jsx)(tu,{...i,ref:t}):(0,d.jsx)(nu,{...i,ref:t})})});$l.displayName=Ql;var eu=jl(`PopoverContent.RemoveScroll`),tu=l.forwardRef((e,t)=>{let n=Hl(Ql,e.__scopePopover),r=l.useRef(null),i=K(t,r),a=l.useRef(!1);return l.useEffect(()=>{let e=r.current;if(e)return xr(e)},[]),(0,d.jsx)(fr,{as:eu,allowPinchZoom:!0,children:(0,d.jsx)(ru,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:q(e.onCloseAutoFocus,e=>{e.preventDefault(),a.current||n.triggerRef.current?.focus()}),onPointerDownOutside:q(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0;a.current=t.button===2||n},{checkForDefaultPrevented:!1}),onFocusOutside:q(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),nu=l.forwardRef((e,t)=>{let n=Hl(Ql,e.__scopePopover),r=l.useRef(!1),i=l.useRef(!1);return(0,d.jsx)(ru,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,t.detail.originalEvent.type===`pointerdown`&&(i.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&i.current&&t.preventDefault()}})}),ru=l.forwardRef((e,t)=>{let{__scopePopover:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,disableOutsidePointerEvents:o,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:l,onInteractOutside:u,...f}=e,p=Hl(Ql,n),m=Bl(n);return en(),(0,d.jsx)(Ft,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,d.jsx)(wt,{asChild:!0,disableOutsidePointerEvents:o,onInteractOutside:u,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:l,onDismiss:()=>p.onOpenChange(!1),children:(0,d.jsx)(kl,{"data-state":cu(p.open),role:`dialog`,id:p.contentId,...m,...f,ref:t,style:{...f.style,"--radix-popover-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-popover-content-available-width":`var(--radix-popper-available-width)`,"--radix-popover-content-available-height":`var(--radix-popper-available-height)`,"--radix-popover-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-popover-trigger-height":`var(--radix-popper-anchor-height)`}})})})}),iu=`PopoverClose`,au=l.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=Hl(iu,n);return(0,d.jsx)(X.button,{type:`button`,...r,ref:t,onClick:q(e.onClick,()=>i.onOpenChange(!1))})});au.displayName=iu;var ou=`PopoverArrow`,su=l.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=Bl(n);return(0,d.jsx)(Al,{...i,...r,ref:t})});su.displayName=ou;function cu(e){return e?`open`:`closed`}var lu=Ul,uu=Gl,du=ql,fu=Zl,pu=$l;function mu({...e}){return(0,d.jsx)(lu,{"data-slot":`popover`,...e})}function hu({...e}){return(0,d.jsx)(du,{"data-slot":`popover-trigger`,...e})}function gu({className:e,align:t=`center`,sideOffset:n=4,...r}){return(0,d.jsx)(fu,{children:(0,d.jsx)(pu,{"data-slot":`popover-content`,align:t,sideOffset:n,className:W(`bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden`,e),...r})})}function _u({...e}){return(0,d.jsx)(uu,{"data-slot":`popover-anchor`,...e})}function vu({className:e,...t}){return(0,d.jsx)(u.Loader2Icon,{role:`status`,"aria-label":`Loading`,className:W(`size-4 animate-spin`,e),...t})}const yu=e=>{let[t,n]=(0,l.useState)(``),[r,i]=(0,l.useState)(!1),a=(0,l.useRef)(e.onFilterChange),[o,s]=(0,l.useState)(e.value&&e.items?.find(t=>t.value===e.value)?.label||``);return(0,l.useEffect)(()=>{a.current=e.onFilterChange},[e.onFilterChange]),(0,l.useEffect)(()=>{if(!a.current)return;let e=setTimeout(()=>{a.current?.(t)},300);return()=>{clearTimeout(e)}},[t]),(0,l.useEffect)(()=>{if(!e.items&&!e.isLoading){s(``);return}else if(!e.items)return;let t=e.items.find(t=>t.value===e.value);t&&s(t.label)},[e.value,e.items,e.isLoading]),(0,d.jsxs)(mu,{open:r,onOpenChange:i,children:[(0,d.jsx)(hu,{asChild:!0,children:(0,d.jsxs)(pa,{variant:`outline`,className:`autocomplete-trigger`,disabled:e.disabled,children:[!e.value&&(0,d.jsx)(`div`,{className:`text-muted-foreground`,children:e.placeholder}),e.value&&(0,d.jsx)(`div`,{className:`truncate`,children:o||e.value}),e.isLoading&&(0,d.jsx)(vu,{className:`ml-2 w-4 h-4 shrink-0`}),!e.isLoading&&(0,d.jsx)(u.ChevronsUpDown,{className:`ml-2 w-4 h-4 shrink-0`})]})}),(0,d.jsx)(gu,{className:`p-0 w-[--radix-popover-trigger-width]`,children:(0,d.jsxs)(No,{shouldFilter:!e.onFilterChange,children:[(0,d.jsx)(Fo,{value:t,placeholder:e.filterPlaceholder||`Type to filter...`,onValueChange:e=>{n(e)}}),(0,d.jsxs)(Io,{children:[(0,d.jsx)(Lo,{className:`p-2`,children:e.emptyMessage||`No results found.`}),(0,d.jsx)(Ro,{children:e.items?.map(t=>(0,d.jsxs)(Bo,{value:t.value,onSelect:t=>{e.onValueChange?.(t),i(!1)},children:[t.label,(0,d.jsx)(u.CheckIcon,{className:W(`ml-auto size-4`,e.value===t.value&&`opacity-100`,e.value!==t.value&&`opacity-0`)})]},t.value))})]})]})})]})};function bu({className:e,...t}){return(0,d.jsx)(`div`,{"data-slot":`card`,className:W(`bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm`,e),...t})}function xu({className:e,...t}){return(0,d.jsx)(`div`,{"data-slot":`card-header`,className:W(`@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-2 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6`,e),...t})}function Su({className:e,...t}){return(0,d.jsx)(`div`,{"data-slot":`card-title`,className:W(`leading-none font-semibold`,e),...t})}function Cu({className:e,...t}){return(0,d.jsx)(`div`,{"data-slot":`card-description`,className:W(`text-muted-foreground text-sm`,e),...t})}function wu({className:e,...t}){return(0,d.jsx)(`div`,{"data-slot":`card-action`,className:W(`col-start-2 row-span-2 row-start-1 self-start justify-self-end`,e),...t})}function Tu({className:e,...t}){return(0,d.jsx)(`div`,{"data-slot":`card-content`,className:W(`px-6`,e),...t})}function Eu({className:e,...t}){return(0,d.jsx)(`div`,{"data-slot":`card-footer`,className:W(`flex items-center px-6 [.border-t]:pt-6`,e),...t})}var Du=o(((e,t)=>{t.exports=Array.isArray})),Ou=o(((e,t)=>{t.exports=typeof global==`object`&&global&&global.Object===Object&&global})),ku=o(((e,t)=>{var n=Ou(),r=typeof self==`object`&&self&&self.Object===Object&&self;t.exports=n||r||Function(`return this`)()})),Au=o(((e,t)=>{t.exports=ku().Symbol})),ju=o(((e,t)=>{var n=Au(),r=Object.prototype,i=r.hasOwnProperty,a=r.toString,o=n?n.toStringTag:void 0;function s(e){var t=i.call(e,o),n=e[o];try{e[o]=void 0;var r=!0}catch{}var s=a.call(e);return r&&(t?e[o]=n:delete e[o]),s}t.exports=s})),Mu=o(((e,t)=>{var n=Object.prototype.toString;function r(e){return n.call(e)}t.exports=r})),Nu=o(((e,t)=>{var n=Au(),r=ju(),i=Mu(),a=`[object Null]`,o=`[object Undefined]`,s=n?n.toStringTag:void 0;function c(e){return e==null?e===void 0?o:a:s&&s in Object(e)?r(e):i(e)}t.exports=c})),Pu=o(((e,t)=>{function n(e){return typeof e==`object`&&!!e}t.exports=n})),Fu=o(((e,t)=>{var n=Nu(),r=Pu(),i=`[object Symbol]`;function a(e){return typeof e==`symbol`||r(e)&&n(e)==i}t.exports=a})),Iu=o(((e,t)=>{var n=Du(),r=Fu(),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;function o(e,t){if(n(e))return!1;var o=typeof e;return o==`number`||o==`symbol`||o==`boolean`||e==null||r(e)?!0:a.test(e)||!i.test(e)||t!=null&&e in Object(t)}t.exports=o})),Lu=o(((e,t)=>{function n(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}t.exports=n})),Ru=o(((e,t)=>{var n=Nu(),r=Lu(),i=`[object AsyncFunction]`,a=`[object Function]`,o=`[object GeneratorFunction]`,s=`[object Proxy]`;function c(e){if(!r(e))return!1;var t=n(e);return t==a||t==o||t==i||t==s}t.exports=c})),zu=o(((e,t)=>{t.exports=ku()[`__core-js_shared__`]})),Bu=o(((e,t)=>{var n=zu(),r=function(){var e=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}();function i(e){return!!r&&r in e}t.exports=i})),Vu=o(((e,t)=>{var n=Function.prototype.toString;function r(e){if(e!=null){try{return n.call(e)}catch{}try{return e+``}catch{}}return``}t.exports=r})),Hu=o(((e,t)=>{var n=Ru(),r=Bu(),i=Lu(),a=Vu(),o=/[\\^$.*+?()[\]{}|]/g,s=/^\[object .+?Constructor\]$/,c=Function.prototype,l=Object.prototype,u=c.toString,d=l.hasOwnProperty,f=RegExp(`^`+u.call(d).replace(o,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`);function p(e){return!i(e)||r(e)?!1:(n(e)?f:s).test(a(e))}t.exports=p})),Uu=o(((e,t)=>{function n(e,t){return e?.[t]}t.exports=n})),Wu=o(((e,t)=>{var n=Hu(),r=Uu();function i(e,t){var i=r(e,t);return n(i)?i:void 0}t.exports=i})),Gu=o(((e,t)=>{t.exports=Wu()(Object,`create`)})),Ku=o(((e,t)=>{var n=Gu();function r(){this.__data__=n?n(null):{},this.size=0}t.exports=r})),qu=o(((e,t)=>{function n(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}t.exports=n})),Ju=o(((e,t)=>{var n=Gu(),r=`__lodash_hash_undefined__`,i=Object.prototype.hasOwnProperty;function a(e){var t=this.__data__;if(n){var a=t[e];return a===r?void 0:a}return i.call(t,e)?t[e]:void 0}t.exports=a})),Yu=o(((e,t)=>{var n=Gu(),r=Object.prototype.hasOwnProperty;function i(e){var t=this.__data__;return n?t[e]!==void 0:r.call(t,e)}t.exports=i})),Xu=o(((e,t)=>{var n=Gu(),r=`__lodash_hash_undefined__`;function i(e,t){var i=this.__data__;return this.size+=this.has(e)?0:1,i[e]=n&&t===void 0?r:t,this}t.exports=i})),Zu=o(((e,t)=>{var n=Ku(),r=qu(),i=Ju(),a=Yu(),o=Xu();function s(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=n,s.prototype.delete=r,s.prototype.get=i,s.prototype.has=a,s.prototype.set=o,t.exports=s})),Qu=o(((e,t)=>{function n(){this.__data__=[],this.size=0}t.exports=n})),$u=o(((e,t)=>{function n(e,t){return e===t||e!==e&&t!==t}t.exports=n})),ed=o(((e,t)=>{var n=$u();function r(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return-1}t.exports=r})),td=o(((e,t)=>{var n=ed(),r=Array.prototype.splice;function i(e){var t=this.__data__,i=n(t,e);return i<0?!1:(i==t.length-1?t.pop():r.call(t,i,1),--this.size,!0)}t.exports=i})),nd=o(((e,t)=>{var n=ed();function r(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}t.exports=r})),rd=o(((e,t)=>{var n=ed();function r(e){return n(this.__data__,e)>-1}t.exports=r})),id=o(((e,t)=>{var n=ed();function r(e,t){var r=this.__data__,i=n(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}t.exports=r})),ad=o(((e,t)=>{var n=Qu(),r=td(),i=nd(),a=rd(),o=id();function s(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=n,s.prototype.delete=r,s.prototype.get=i,s.prototype.has=a,s.prototype.set=o,t.exports=s})),od=o(((e,t)=>{t.exports=Wu()(ku(),`Map`)})),sd=o(((e,t)=>{var n=Zu(),r=ad(),i=od();function a(){this.size=0,this.__data__={hash:new n,map:new(i||r),string:new n}}t.exports=a})),cd=o(((e,t)=>{function n(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}t.exports=n})),ld=o(((e,t)=>{var n=cd();function r(e,t){var r=e.__data__;return n(t)?r[typeof t==`string`?`string`:`hash`]:r.map}t.exports=r})),ud=o(((e,t)=>{var n=ld();function r(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}t.exports=r})),dd=o(((e,t)=>{var n=ld();function r(e){return n(this,e).get(e)}t.exports=r})),fd=o(((e,t)=>{var n=ld();function r(e){return n(this,e).has(e)}t.exports=r})),pd=o(((e,t)=>{var n=ld();function r(e,t){var r=n(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this}t.exports=r})),md=o(((e,t)=>{var n=sd(),r=ud(),i=dd(),a=fd(),o=pd();function s(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=n,s.prototype.delete=r,s.prototype.get=i,s.prototype.has=a,s.prototype.set=o,t.exports=s})),hd=o(((e,t)=>{var n=md(),r=`Expected a function`;function i(e,t){if(typeof e!=`function`||t!=null&&typeof t!=`function`)throw TypeError(r);var a=function(){var n=arguments,r=t?t.apply(this,n):n[0],i=a.cache;if(i.has(r))return i.get(r);var o=e.apply(this,n);return a.cache=i.set(r,o)||i,o};return a.cache=new(i.Cache||n),a}i.Cache=n,t.exports=i})),gd=o(((e,t)=>{var n=hd(),r=500;function i(e){var t=n(e,function(e){return i.size===r&&i.clear(),e}),i=t.cache;return t}t.exports=i})),_d=o(((e,t)=>{var n=gd(),r=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g;t.exports=n(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(``),e.replace(r,function(e,n,r,a){t.push(r?a.replace(i,`$1`):n||e)}),t})})),vd=o(((e,t)=>{function n(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}t.exports=n})),yd=o(((e,t)=>{var n=Au(),r=vd(),i=Du(),a=Fu(),o=1/0,s=n?n.prototype:void 0,c=s?s.toString:void 0;function l(e){if(typeof e==`string`)return e;if(i(e))return r(e,l)+``;if(a(e))return c?c.call(e):``;var t=e+``;return t==`0`&&1/e==-o?`-0`:t}t.exports=l})),bd=o(((e,t)=>{var n=yd();function r(e){return e==null?``:n(e)}t.exports=r})),xd=o(((e,t)=>{var n=Du(),r=Iu(),i=_d(),a=bd();function o(e,t){return n(e)?e:r(e,t)?[e]:i(a(e))}t.exports=o})),Sd=o(((e,t)=>{var n=Fu(),r=1/0;function i(e){if(typeof e==`string`||n(e))return e;var t=e+``;return t==`0`&&1/e==-r?`-0`:t}t.exports=i})),Cd=o(((e,t)=>{var n=xd(),r=Sd();function i(e,t){t=n(t,e);for(var i=0,a=t.length;e!=null&&i<a;)e=e[r(t[i++])];return i&&i==a?e:void 0}t.exports=i})),wd=o(((e,t)=>{var n=Cd();function r(e,t,r){var i=e==null?void 0:n(e,t);return i===void 0?r:i}t.exports=r})),Td=o(((e,t)=>{function n(e){return e==null}t.exports=n})),Ed=o(((e,t)=>{var n=Nu(),r=Du(),i=Pu(),a=`[object String]`;function o(e){return typeof e==`string`||!r(e)&&i(e)&&n(e)==a}t.exports=o})),Dd=o((e=>{})),Od=o((e=>{process.env.NODE_ENV!==`production`&&(function(){"use strict";var t=Symbol.for(`react.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.provider`),s=Symbol.for(`react.context`),c=Symbol.for(`react.server_context`),l=Symbol.for(`react.forward_ref`),u=Symbol.for(`react.suspense`),d=Symbol.for(`react.suspense_list`),f=Symbol.for(`react.memo`),p=Symbol.for(`react.lazy`),m=Symbol.for(`react.offscreen`),h=!1,g=!1,_=!1,v=!1,y=!1,b=Symbol.for(`react.module.reference`);function x(e){return!!(typeof e==`string`||typeof e==`function`||e===r||e===a||y||e===i||e===u||e===d||v||e===m||h||g||_||typeof e==`object`&&e&&(e.$$typeof===p||e.$$typeof===f||e.$$typeof===o||e.$$typeof===s||e.$$typeof===l||e.$$typeof===b||e.getModuleId!==void 0))}function S(e){if(typeof e==`object`&&e){var m=e.$$typeof;switch(m){case t:var h=e.type;switch(h){case r:case a:case i:case u:case d:return h;default:var g=h&&h.$$typeof;switch(g){case c:case s:case l:case p:case f:case o:return g;default:return m}}case n:return m}}}var C=s,w=o,T=t,E=l,D=r,O=p,k=f,A=n,j=a,M=i,N=u,P=d,F=!1,I=!1;function ee(e){return F||(F=!0,console.warn(`The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.`)),!1}function te(e){return I||(I=!0,console.warn(`The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.`)),!1}function L(e){return S(e)===s}function R(e){return S(e)===o}function ne(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function re(e){return S(e)===l}function z(e){return S(e)===r}function ie(e){return S(e)===p}function ae(e){return S(e)===f}function oe(e){return S(e)===n}function se(e){return S(e)===a}function ce(e){return S(e)===i}function le(e){return S(e)===u}function ue(e){return S(e)===d}e.ContextConsumer=C,e.ContextProvider=w,e.Element=T,e.ForwardRef=E,e.Fragment=D,e.Lazy=O,e.Memo=k,e.Portal=A,e.Profiler=j,e.StrictMode=M,e.Suspense=N,e.SuspenseList=P,e.isAsyncMode=ee,e.isConcurrentMode=te,e.isContextConsumer=L,e.isContextProvider=R,e.isElement=ne,e.isForwardRef=re,e.isFragment=z,e.isLazy=ie,e.isMemo=ae,e.isPortal=oe,e.isProfiler=se,e.isStrictMode=ce,e.isSuspense=le,e.isSuspenseList=ue,e.isValidElementType=x,e.typeOf=S})()})),kd=o(((e,t)=>{process.env.NODE_ENV===`production`?t.exports=Dd():t.exports=Od()})),Ad=o(((e,t)=>{var n=Nu(),r=Pu(),i=`[object Number]`;function a(e){return typeof e==`number`||r(e)&&n(e)==i}t.exports=a})),jd=o(((e,t)=>{var n=Ad();function r(e){return n(e)&&e!=+e}t.exports=r})),Md=c(Ed()),Nd=c(jd()),Pd=c(wd()),Fd=c(Ad()),Id=c(Td()),Ld=function(e){return(0,Md.default)(e)&&e.indexOf(`%`)===e.length-1},Rd=function(e){return(0,Fd.default)(e)&&!(0,Nd.default)(e)},zd=function(e){return Rd(e)||(0,Md.default)(e)},Bd=c(Lu());function Vd(e){"@babel/helpers - typeof";return Vd=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Vd(e)}var Hd=[`viewBox`,`children`],Ud=`aria-activedescendant.aria-atomic.aria-autocomplete.aria-busy.aria-checked.aria-colcount.aria-colindex.aria-colspan.aria-controls.aria-current.aria-describedby.aria-details.aria-disabled.aria-errormessage.aria-expanded.aria-flowto.aria-haspopup.aria-hidden.aria-invalid.aria-keyshortcuts.aria-label.aria-labelledby.aria-level.aria-live.aria-modal.aria-multiline.aria-multiselectable.aria-orientation.aria-owns.aria-placeholder.aria-posinset.aria-pressed.aria-readonly.aria-relevant.aria-required.aria-roledescription.aria-rowcount.aria-rowindex.aria-rowspan.aria-selected.aria-setsize.aria-sort.aria-valuemax.aria-valuemin.aria-valuenow.aria-valuetext.className.color.height.id.lang.max.media.method.min.name.style.target.width.role.tabIndex.accentHeight.accumulate.additive.alignmentBaseline.allowReorder.alphabetic.amplitude.arabicForm.ascent.attributeName.attributeType.autoReverse.azimuth.baseFrequency.baselineShift.baseProfile.bbox.begin.bias.by.calcMode.capHeight.clip.clipPath.clipPathUnits.clipRule.colorInterpolation.colorInterpolationFilters.colorProfile.colorRendering.contentScriptType.contentStyleType.cursor.cx.cy.d.decelerate.descent.diffuseConstant.direction.display.divisor.dominantBaseline.dur.dx.dy.edgeMode.elevation.enableBackground.end.exponent.externalResourcesRequired.fill.fillOpacity.fillRule.filter.filterRes.filterUnits.floodColor.floodOpacity.focusable.fontFamily.fontSize.fontSizeAdjust.fontStretch.fontStyle.fontVariant.fontWeight.format.from.fx.fy.g1.g2.glyphName.glyphOrientationHorizontal.glyphOrientationVertical.glyphRef.gradientTransform.gradientUnits.hanging.horizAdvX.horizOriginX.href.ideographic.imageRendering.in2.in.intercept.k1.k2.k3.k4.k.kernelMatrix.kernelUnitLength.kerning.keyPoints.keySplines.keyTimes.lengthAdjust.letterSpacing.lightingColor.limitingConeAngle.local.markerEnd.markerHeight.markerMid.markerStart.markerUnits.markerWidth.mask.maskContentUnits.maskUnits.mathematical.mode.numOctaves.offset.opacity.operator.order.orient.orientation.origin.overflow.overlinePosition.overlineThickness.paintOrder.panose1.pathLength.patternContentUnits.patternTransform.patternUnits.pointerEvents.pointsAtX.pointsAtY.pointsAtZ.preserveAlpha.preserveAspectRatio.primitiveUnits.r.radius.refX.refY.renderingIntent.repeatCount.repeatDur.requiredExtensions.requiredFeatures.restart.result.rotate.rx.ry.seed.shapeRendering.slope.spacing.specularConstant.specularExponent.speed.spreadMethod.startOffset.stdDeviation.stemh.stemv.stitchTiles.stopColor.stopOpacity.strikethroughPosition.strikethroughThickness.string.stroke.strokeDasharray.strokeDashoffset.strokeLinecap.strokeLinejoin.strokeMiterlimit.strokeOpacity.strokeWidth.surfaceScale.systemLanguage.tableValues.targetX.targetY.textAnchor.textDecoration.textLength.textRendering.to.transform.u1.u2.underlinePosition.underlineThickness.unicode.unicodeBidi.unicodeRange.unitsPerEm.vAlphabetic.values.vectorEffect.version.vertAdvY.vertOriginX.vertOriginY.vHanging.vIdeographic.viewTarget.visibility.vMathematical.widths.wordSpacing.writingMode.x1.x2.x.xChannelSelector.xHeight.xlinkActuate.xlinkArcrole.xlinkHref.xlinkRole.xlinkShow.xlinkTitle.xlinkType.xmlBase.xmlLang.xmlns.xmlnsXlink.xmlSpace.y1.y2.y.yChannelSelector.z.zoomAndPan.ref.key.angle`.split(`.`),Wd=[`points`,`pathLength`],Gd={svg:Hd,polygon:Wd,polyline:Wd},Kd=`dangerouslySetInnerHTML.onCopy.onCopyCapture.onCut.onCutCapture.onPaste.onPasteCapture.onCompositionEnd.onCompositionEndCapture.onCompositionStart.onCompositionStartCapture.onCompositionUpdate.onCompositionUpdateCapture.onFocus.onFocusCapture.onBlur.onBlurCapture.onChange.onChangeCapture.onBeforeInput.onBeforeInputCapture.onInput.onInputCapture.onReset.onResetCapture.onSubmit.onSubmitCapture.onInvalid.onInvalidCapture.onLoad.onLoadCapture.onError.onErrorCapture.onKeyDown.onKeyDownCapture.onKeyPress.onKeyPressCapture.onKeyUp.onKeyUpCapture.onAbort.onAbortCapture.onCanPlay.onCanPlayCapture.onCanPlayThrough.onCanPlayThroughCapture.onDurationChange.onDurationChangeCapture.onEmptied.onEmptiedCapture.onEncrypted.onEncryptedCapture.onEnded.onEndedCapture.onLoadedData.onLoadedDataCapture.onLoadedMetadata.onLoadedMetadataCapture.onLoadStart.onLoadStartCapture.onPause.onPauseCapture.onPlay.onPlayCapture.onPlaying.onPlayingCapture.onProgress.onProgressCapture.onRateChange.onRateChangeCapture.onSeeked.onSeekedCapture.onSeeking.onSeekingCapture.onStalled.onStalledCapture.onSuspend.onSuspendCapture.onTimeUpdate.onTimeUpdateCapture.onVolumeChange.onVolumeChangeCapture.onWaiting.onWaitingCapture.onAuxClick.onAuxClickCapture.onClick.onClickCapture.onContextMenu.onContextMenuCapture.onDoubleClick.onDoubleClickCapture.onDrag.onDragCapture.onDragEnd.onDragEndCapture.onDragEnter.onDragEnterCapture.onDragExit.onDragExitCapture.onDragLeave.onDragLeaveCapture.onDragOver.onDragOverCapture.onDragStart.onDragStartCapture.onDrop.onDropCapture.onMouseDown.onMouseDownCapture.onMouseEnter.onMouseLeave.onMouseMove.onMouseMoveCapture.onMouseOut.onMouseOutCapture.onMouseOver.onMouseOverCapture.onMouseUp.onMouseUpCapture.onSelect.onSelectCapture.onTouchCancel.onTouchCancelCapture.onTouchEnd.onTouchEndCapture.onTouchMove.onTouchMoveCapture.onTouchStart.onTouchStartCapture.onPointerDown.onPointerDownCapture.onPointerMove.onPointerMoveCapture.onPointerUp.onPointerUpCapture.onPointerCancel.onPointerCancelCapture.onPointerEnter.onPointerEnterCapture.onPointerLeave.onPointerLeaveCapture.onPointerOver.onPointerOverCapture.onPointerOut.onPointerOutCapture.onGotPointerCapture.onGotPointerCaptureCapture.onLostPointerCapture.onLostPointerCaptureCapture.onScroll.onScrollCapture.onWheel.onWheelCapture.onAnimationStart.onAnimationStartCapture.onAnimationEnd.onAnimationEndCapture.onAnimationIteration.onAnimationIterationCapture.onTransitionEnd.onTransitionEndCapture`.split(`.`),qd=function(e,t,n){return function(r){return e(t,n,r),null}},Jd=function(e,t,n){if(!(0,Bd.default)(e)||Vd(e)!==`object`)return null;var r=null;return Object.keys(e).forEach(function(i){var a=e[i];Kd.includes(i)&&typeof a==`function`&&(r||={},r[i]=qd(a,t,n))}),r},Yd=c(wd()),Xd=c(Td()),Zd=c(Ed()),Qd=c(Ru()),$d=c(Lu()),ef=kd(),tf=function(e){return typeof e==`string`?e:e?e.displayName||e.name||`Component`:``},nf=function(e,t,n,r){var i=Gd?.[r]??[];return t.startsWith(`data-`)||!(0,Qd.default)(e)&&(r&&i.includes(t)||Ud.includes(t))||n&&Kd.includes(t)},rf=function(e,t,n){if(!e||typeof e==`function`||typeof e==`boolean`)return null;var r=e;if((0,l.isValidElement)(e)&&(r=e.props),!(0,$d.default)(r))return null;var i={};return Object.keys(r).forEach(function(e){nf(r?.[e],e,t,n)&&(i[e]=r[e])}),i},af=[`children`,`width`,`height`,`viewBox`,`className`,`style`,`title`,`desc`];function of(){return of=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},of.apply(this,arguments)}function sf(e,t){if(e==null)return{};var n=cf(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function cf(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function lf(e){var t=e.children,n=e.width,r=e.height,i=e.viewBox,a=e.className,o=e.style,s=e.title,c=e.desc,u=sf(e,af),d=i||{width:n,height:r,x:0,y:0},f=v(`recharts-surface`,a);return l.default.createElement(`svg`,of({},rf(u,!0,`svg`),{className:f,width:n,height:r,style:o,viewBox:`${d.x} ${d.y} ${d.width} ${d.height}`}),l.default.createElement(`title`,null,s),l.default.createElement(`desc`,null,c),t)}var uf=process.env.NODE_ENV!==`production`,df=function(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];if(uf&&typeof console<`u`&&console.warn&&(t===void 0&&console.warn(`LogUtils requires an error message argument`),!e))if(t===void 0)console.warn(`Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.`);else{var a=0;console.warn(t.replace(/%s/g,function(){return r[a++]}))}},ff=o(((e,t)=>{function n(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(i);++r<i;)a[r]=e[r+t];return a}t.exports=n})),pf=o(((e,t)=>{var n=ff();function r(e,t,r){var i=e.length;return r=r===void 0?i:r,!t&&r>=i?e:n(e,t,r)}t.exports=r})),mf=o(((e,t)=>{var n=RegExp(`[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]`);function r(e){return n.test(e)}t.exports=r})),hf=o(((e,t)=>{function n(e){return e.split(``)}t.exports=n})),gf=o(((e,t)=>{var n=`\\ud800-\\udfff`,r=`\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff`,i=`\\ufe0e\\ufe0f`,a=`[`+n+`]`,o=`[`+r+`]`,s=`\\ud83c[\\udffb-\\udfff]`,c=`(?:`+o+`|`+s+`)`,l=`[^`+n+`]`,u=`(?:\\ud83c[\\udde6-\\uddff]){2}`,d=`[\\ud800-\\udbff][\\udc00-\\udfff]`,f=`\\u200d`,p=c+`?`,m=`[`+i+`]?`,h=`(?:`+f+`(?:`+[l,u,d].join(`|`)+`)`+m+p+`)*`,g=m+p+h,_=`(?:`+[l+o+`?`,o,u,d,a].join(`|`)+`)`,v=RegExp(s+`(?=`+s+`)|`+_+g,`g`);function y(e){return e.match(v)||[]}t.exports=y})),_f=o(((e,t)=>{var n=hf(),r=mf(),i=gf();function a(e){return r(e)?i(e):n(e)}t.exports=a})),vf=o(((e,t)=>{var n=pf(),r=mf(),i=_f(),a=bd();function o(e){return function(t){t=a(t);var o=r(t)?i(t):void 0,s=o?o[0]:t.charAt(0),c=o?n(o,1).join(``):t.slice(1);return s[e]()+c}}t.exports=o})),yf=o(((e,t)=>{t.exports=vf()(`toUpperCase`)}));function bf(e){return function(){return e}}const xf=Math.cos,Sf=Math.sin,Cf=Math.sqrt,wf=Math.PI,Tf=wf/2,Ef=2*wf;var Df=Math.PI,Of=2*Df,kf=1e-6,Af=Of-kf;function jf(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function Mf(e){let t=Math.floor(e);if(!(t>=0))throw Error(`invalid digits: ${e}`);if(t>15)return jf;let n=10**t;return function(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=Math.round(arguments[t]*n)/n+e[t]}}var Nf=class{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._=``,this._append=e==null?jf:Mf(e)}moveTo(e,t){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,t){this._append`L${this._x1=+e},${this._y1=+t}`}quadraticCurveTo(e,t,n,r){this._append`Q${+e},${+t},${this._x1=+n},${this._y1=+r}`}bezierCurveTo(e,t,n,r,i,a){this._append`C${+e},${+t},${+n},${+r},${this._x1=+i},${this._y1=+a}`}arcTo(e,t,n,r,i){if(e=+e,t=+t,n=+n,r=+r,i=+i,i<0)throw Error(`negative radius: ${i}`);let a=this._x1,o=this._y1,s=n-e,c=r-t,l=a-e,u=o-t,d=l*l+u*u;if(this._x1===null)this._append`M${this._x1=e},${this._y1=t}`;else if(d>kf)if(!(Math.abs(u*s-c*l)>kf)||!i)this._append`L${this._x1=e},${this._y1=t}`;else{let f=n-a,p=r-o,m=s*s+c*c,h=f*f+p*p,g=Math.sqrt(m),_=Math.sqrt(d),v=i*Math.tan((Df-Math.acos((m+d-h)/(2*g*_)))/2),y=v/_,b=v/g;Math.abs(y-1)>kf&&this._append`L${e+y*l},${t+y*u}`,this._append`A${i},${i},0,0,${+(u*f>l*p)},${this._x1=e+b*s},${this._y1=t+b*c}`}}arc(e,t,n,r,i,a){if(e=+e,t=+t,n=+n,a=!!a,n<0)throw Error(`negative radius: ${n}`);let o=n*Math.cos(r),s=n*Math.sin(r),c=e+o,l=t+s,u=1^a,d=a?r-i:i-r;this._x1===null?this._append`M${c},${l}`:(Math.abs(this._x1-c)>kf||Math.abs(this._y1-l)>kf)&&this._append`L${c},${l}`,n&&(d<0&&(d=d%Of+Of),d>Af?this._append`A${n},${n},0,1,${u},${e-o},${t-s}A${n},${n},0,1,${u},${this._x1=c},${this._y1=l}`:d>kf&&this._append`A${n},${n},0,${+(d>=Df)},${u},${this._x1=e+n*Math.cos(i)},${this._y1=t+n*Math.sin(i)}`)}rect(e,t,n,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}};function Pf(){return new Nf}Pf.prototype=Nf.prototype;function Ff(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{let e=Math.floor(n);if(!(e>=0))throw RangeError(`invalid digits: ${n}`);t=e}return e},()=>new Nf(t)}var If={draw(e,t){let n=Cf(t/wf);e.moveTo(n,0),e.arc(0,0,n,0,Ef)}},Lf={draw(e,t){let n=Cf(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},Rf=Cf(1/3),zf=Rf*2,Bf={draw(e,t){let n=Cf(t/zf),r=n*Rf;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},Vf={draw(e,t){let n=Cf(t),r=-n/2;e.rect(r,r,n,n)}},Hf=.8908130915292852,Uf=Sf(wf/10)/Sf(7*wf/10),Wf=Sf(Ef/10)*Uf,Gf=-xf(Ef/10)*Uf,Kf={draw(e,t){let n=Cf(t*Hf),r=Wf*n,i=Gf*n;e.moveTo(0,-n),e.lineTo(r,i);for(let t=1;t<5;++t){let a=Ef*t/5,o=xf(a),s=Sf(a);e.lineTo(s*n,-o*n),e.lineTo(o*r-s*i,s*r+o*i)}e.closePath()}},qf=Cf(3),Jf={draw(e,t){let n=-Cf(t/(qf*3));e.moveTo(0,n*2),e.lineTo(-qf*n,-n),e.lineTo(qf*n,-n),e.closePath()}},Yf=-.5,Xf=Cf(3)/2,Zf=1/Cf(12),Qf=(Zf/2+1)*3,$f={draw(e,t){let n=Cf(t/Qf),r=n/2,i=n*Zf,a=r,o=n*Zf+n,s=-a,c=o;e.moveTo(r,i),e.lineTo(a,o),e.lineTo(s,c),e.lineTo(Yf*r-Xf*i,Xf*r+Yf*i),e.lineTo(Yf*a-Xf*o,Xf*a+Yf*o),e.lineTo(Yf*s-Xf*c,Xf*s+Yf*c),e.lineTo(Yf*r+Xf*i,Yf*i-Xf*r),e.lineTo(Yf*a+Xf*o,Yf*o-Xf*a),e.lineTo(Yf*s+Xf*c,Yf*c-Xf*s),e.closePath()}};function ep(e,t){let n=null,r=Ff(i);e=typeof e==`function`?e:bf(e||If),t=typeof t==`function`?t:bf(t===void 0?64:+t);function i(){let i;if(n||=i=r(),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),i)return n=null,i+``||null}return i.type=function(t){return arguments.length?(e=typeof t==`function`?t:bf(t),i):e},i.size=function(e){return arguments.length?(t=typeof e==`function`?e:bf(+e),i):t},i.context=function(e){return arguments.length?(n=e??null,i):n},i}var tp=c(yf());function np(e){"@babel/helpers - typeof";return np=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},np(e)}var rp=[`type`,`size`,`sizeType`];function ip(){return ip=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},ip.apply(this,arguments)}function ap(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function op(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?ap(Object(n),!0).forEach(function(t){sp(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ap(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function sp(e,t,n){return t=cp(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cp(e){var t=lp(e,`string`);return np(t)==`symbol`?t:t+``}function lp(e,t){if(np(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(np(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function up(e,t){if(e==null)return{};var n=dp(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function dp(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var fp={symbolCircle:If,symbolCross:Lf,symbolDiamond:Bf,symbolSquare:Vf,symbolStar:Kf,symbolTriangle:Jf,symbolWye:$f},pp=Math.PI/180,mp=function(e){return fp[`symbol${(0,tp.default)(e)}`]||If},hp=function(e,t,n){if(t===`area`)return e;switch(n){case`cross`:return 5*e*e/9;case`diamond`:return .5*e*e/Math.sqrt(3);case`square`:return e*e;case`star`:var r=18*pp;return 1.25*e*e*(Math.tan(r)-Math.tan(r*2)*Math.tan(r)**2);case`triangle`:return Math.sqrt(3)*e*e/4;case`wye`:return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}},gp=function(e,t){fp[`symbol${(0,tp.default)(e)}`]=t},_p=function(e){var t=e.type,n=t===void 0?`circle`:t,r=e.size,i=r===void 0?64:r,a=e.sizeType,o=a===void 0?`area`:a,s=op(op({},up(e,rp)),{},{type:n,size:i,sizeType:o}),c=function(){var e=mp(n);return ep().type(e).size(hp(i,o,n))()},u=s.className,d=s.cx,f=s.cy,p=rf(s,!0);return d===+d&&f===+f&&i===+i?l.default.createElement(`path`,ip({},p,{className:v(`recharts-symbols`,u),transform:`translate(${d}, ${f})`,d:c()})):null};_p.registerSymbol=gp;var vp=c(Ru());function yp(e){"@babel/helpers - typeof";return yp=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},yp(e)}function bp(){return bp=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},bp.apply(this,arguments)}function xp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Sp(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?xp(Object(n),!0).forEach(function(t){Np(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xp(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Cp(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function wp(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,Pp(r.key),r)}}function Tp(e,t,n){return t&&wp(e.prototype,t),n&&wp(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function Ep(e,t,n){return t=Ap(t),Dp(e,kp()?Reflect.construct(t,n||[],Ap(e).constructor):t.apply(e,n))}function Dp(e,t){if(t&&(yp(t)===`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return Op(e)}function Op(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function kp(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(kp=function(){return!!e})()}function Ap(e){return Ap=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ap(e)}function jp(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,`prototype`,{writable:!1}),t&&Mp(e,t)}function Mp(e,t){return Mp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Mp(e,t)}function Np(e,t,n){return t=Pp(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pp(e){var t=Fp(e,`string`);return yp(t)==`symbol`?t:t+``}function Fp(e,t){if(yp(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(yp(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var Ip=32,Lp=function(e){function t(){return Cp(this,t),Ep(this,t,arguments)}return jp(t,e),Tp(t,[{key:`renderIcon`,value:function(e){var t=this.props.inactiveColor,n=Ip/2,r=Ip/6,i=Ip/3,a=e.inactive?t:e.color;if(e.type===`plainline`)return l.default.createElement(`line`,{strokeWidth:4,fill:`none`,stroke:a,strokeDasharray:e.payload.strokeDasharray,x1:0,y1:n,x2:Ip,y2:n,className:`recharts-legend-icon`});if(e.type===`line`)return l.default.createElement(`path`,{strokeWidth:4,fill:`none`,stroke:a,d:`M0,${n}h${i}
52
52
  A${r},${r},0,1,1,${2*i},${n}
53
53
  H${Ip}M${2*i},${n}
54
54
  A${r},${r},0,1,1,${i},${n}`,className:`recharts-legend-icon`});if(e.type===`rect`)return l.default.createElement(`path`,{stroke:`none`,fill:a,d:`M0,${Ip/8}h${Ip}v${Ip*3/4}h${-Ip}z`,className:`recharts-legend-icon`});if(l.default.isValidElement(e.legendIcon)){var o=Sp({},e);return delete o.legendIcon,l.default.cloneElement(e.legendIcon,o)}return l.default.createElement(_p,{fill:a,cx:n,cy:n,size:Ip,sizeType:`diameter`,type:e.type})}},{key:`renderItems`,value:function(){var e=this,t=this.props,n=t.payload,r=t.iconSize,i=t.layout,a=t.formatter,o=t.inactiveColor,s={x:0,y:0,width:Ip,height:Ip},c={display:i===`horizontal`?`inline-block`:`block`,marginRight:10},u={display:`inline-block`,verticalAlign:`middle`,marginRight:4};return n.map(function(t,n){var i=t.formatter||a,d=v(Np(Np({"recharts-legend-item":!0},`legend-item-${n}`,!0),`inactive`,t.inactive));if(t.type===`none`)return null;var f=(0,vp.default)(t.value)?null:t.value;df(!(0,vp.default)(t.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: <Bar name="Name of my Data"/>`);var p=t.inactive?o:t.color;return l.default.createElement(`li`,bp({className:d,style:c,key:`legend-item-${n}`},Jd(e.props,t,n)),l.default.createElement(lf,{width:r,height:r,viewBox:s,style:u},e.renderIcon(t)),l.default.createElement(`span`,{className:`recharts-legend-item-text`,style:{color:p}},i?i(f,t,n):f))})}},{key:`render`,value:function(){var e=this.props,t=e.payload,n=e.layout,r=e.align;if(!t||!t.length)return null;var i={padding:0,margin:0,textAlign:n===`horizontal`?r:`left`};return l.default.createElement(`ul`,{className:`recharts-default-legend`,style:i},this.renderItems())}}])}(l.PureComponent);Np(Lp,`displayName`,`Legend`),Np(Lp,`defaultProps`,{iconSize:14,layout:`horizontal`,align:`center`,verticalAlign:`middle`,inactiveColor:`#ccc`});var Rp=o(((e,t)=>{var n=ad();function r(){this.__data__=new n,this.size=0}t.exports=r})),zp=o(((e,t)=>{function n(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}t.exports=n})),Bp=o(((e,t)=>{function n(e){return this.__data__.get(e)}t.exports=n})),Vp=o(((e,t)=>{function n(e){return this.__data__.has(e)}t.exports=n})),Hp=o(((e,t)=>{var n=ad(),r=od(),i=md(),a=200;function o(e,t){var o=this.__data__;if(o instanceof n){var s=o.__data__;if(!r||s.length<a-1)return s.push([e,t]),this.size=++o.size,this;o=this.__data__=new i(s)}return o.set(e,t),this.size=o.size,this}t.exports=o})),Up=o(((e,t)=>{var n=ad(),r=Rp(),i=zp(),a=Bp(),o=Vp(),s=Hp();function c(e){this.size=(this.__data__=new n(e)).size}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=a,c.prototype.has=o,c.prototype.set=s,t.exports=c})),Wp=o(((e,t)=>{var n=`__lodash_hash_undefined__`;function r(e){return this.__data__.set(e,n),this}t.exports=r})),Gp=o(((e,t)=>{function n(e){return this.__data__.has(e)}t.exports=n})),Kp=o(((e,t)=>{var n=md(),r=Wp(),i=Gp();function a(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new n;++t<r;)this.add(e[t])}a.prototype.add=a.prototype.push=r,a.prototype.has=i,t.exports=a})),qp=o(((e,t)=>{function n(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}t.exports=n})),Jp=o(((e,t)=>{function n(e,t){return e.has(t)}t.exports=n})),Yp=o(((e,t)=>{var n=Kp(),r=qp(),i=Jp(),a=1,o=2;function s(e,t,s,c,l,u){var d=s&a,f=e.length,p=t.length;if(f!=p&&!(d&&p>f))return!1;var m=u.get(e),h=u.get(t);if(m&&h)return m==t&&h==e;var g=-1,_=!0,v=s&o?new n:void 0;for(u.set(e,t),u.set(t,e);++g<f;){var y=e[g],b=t[g];if(c)var x=d?c(b,y,g,t,e,u):c(y,b,g,e,t,u);if(x!==void 0){if(x)continue;_=!1;break}if(v){if(!r(t,function(e,t){if(!i(v,t)&&(y===e||l(y,e,s,c,u)))return v.push(t)})){_=!1;break}}else if(!(y===b||l(y,b,s,c,u))){_=!1;break}}return u.delete(e),u.delete(t),_}t.exports=s})),Xp=o(((e,t)=>{t.exports=ku().Uint8Array})),Zp=o(((e,t)=>{function n(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}t.exports=n})),Qp=o(((e,t)=>{function n(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}t.exports=n})),$p=o(((e,t)=>{var n=Au(),r=Xp(),i=$u(),a=Yp(),o=Zp(),s=Qp(),c=1,l=2,u=`[object Boolean]`,d=`[object Date]`,f=`[object Error]`,p=`[object Map]`,m=`[object Number]`,h=`[object RegExp]`,g=`[object Set]`,_=`[object String]`,v=`[object Symbol]`,y=`[object ArrayBuffer]`,b=`[object DataView]`,x=n?n.prototype:void 0,S=x?x.valueOf:void 0;function C(e,t,n,x,C,w,T){switch(n){case b:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case y:return!(e.byteLength!=t.byteLength||!w(new r(e),new r(t)));case u:case d:case m:return i(+e,+t);case f:return e.name==t.name&&e.message==t.message;case h:case _:return e==t+``;case p:var E=o;case g:var D=x&c;if(E||=s,e.size!=t.size&&!D)return!1;var O=T.get(e);if(O)return O==t;x|=l,T.set(e,t);var k=a(E(e),E(t),x,C,w,T);return T.delete(e),k;case v:if(S)return S.call(e)==S.call(t)}return!1}t.exports=C})),em=o(((e,t)=>{function n(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}t.exports=n})),tm=o(((e,t)=>{var n=em(),r=Du();function i(e,t,i){var a=t(e);return r(e)?a:n(a,i(e))}t.exports=i})),nm=o(((e,t)=>{function n(e,t){for(var n=-1,r=e==null?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}t.exports=n})),rm=o(((e,t)=>{function n(){return[]}t.exports=n})),im=o(((e,t)=>{var n=nm(),r=rm(),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols;t.exports=a?function(e){return e==null?[]:(e=Object(e),n(a(e),function(t){return i.call(e,t)}))}:r})),am=o(((e,t)=>{function n(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}t.exports=n})),om=o(((e,t)=>{var n=Nu(),r=Pu(),i=`[object Arguments]`;function a(e){return r(e)&&n(e)==i}t.exports=a})),sm=o(((e,t)=>{var n=om(),r=Pu(),i=Object.prototype,a=i.hasOwnProperty,o=i.propertyIsEnumerable;t.exports=n(function(){return arguments}())?n:function(e){return r(e)&&a.call(e,`callee`)&&!o.call(e,`callee`)}})),cm=o(((e,t)=>{function n(){return!1}t.exports=n})),lm=o(((e,t)=>{var n=ku(),r=cm(),i=typeof e==`object`&&e&&!e.nodeType&&e,a=i&&typeof t==`object`&&t&&!t.nodeType&&t,o=a&&a.exports===i?n.Buffer:void 0;t.exports=(o?o.isBuffer:void 0)||r})),um=o(((e,t)=>{var n=9007199254740991,r=/^(?:0|[1-9]\d*)$/;function i(e,t){var i=typeof e;return t??=n,!!t&&(i==`number`||i!=`symbol`&&r.test(e))&&e>-1&&e%1==0&&e<t}t.exports=i})),dm=o(((e,t)=>{var n=9007199254740991;function r(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=n}t.exports=r})),fm=o(((e,t)=>{var n=Nu(),r=dm(),i=Pu(),a=`[object Arguments]`,o=`[object Array]`,s=`[object Boolean]`,c=`[object Date]`,l=`[object Error]`,u=`[object Function]`,d=`[object Map]`,f=`[object Number]`,p=`[object Object]`,m=`[object RegExp]`,h=`[object Set]`,g=`[object String]`,_=`[object WeakMap]`,v=`[object ArrayBuffer]`,y=`[object DataView]`,b=`[object Float32Array]`,x=`[object Float64Array]`,S=`[object Int8Array]`,C=`[object Int16Array]`,w=`[object Int32Array]`,T=`[object Uint8Array]`,E=`[object Uint8ClampedArray]`,D=`[object Uint16Array]`,O=`[object Uint32Array]`,k={};k[b]=k[x]=k[S]=k[C]=k[w]=k[T]=k[E]=k[D]=k[O]=!0,k[a]=k[o]=k[v]=k[s]=k[y]=k[c]=k[l]=k[u]=k[d]=k[f]=k[p]=k[m]=k[h]=k[g]=k[_]=!1;function A(e){return i(e)&&r(e.length)&&!!k[n(e)]}t.exports=A})),pm=o(((e,t)=>{function n(e){return function(t){return e(t)}}t.exports=n})),mm=o(((e,t)=>{var n=Ou(),r=typeof e==`object`&&e&&!e.nodeType&&e,i=r&&typeof t==`object`&&t&&!t.nodeType&&t,a=i&&i.exports===r&&n.process;t.exports=function(){try{return i&&i.require&&i.require(`util`).types||a&&a.binding&&a.binding(`util`)}catch{}}()})),hm=o(((e,t)=>{var n=fm(),r=pm(),i=mm(),a=i&&i.isTypedArray;t.exports=a?r(a):n})),gm=o(((e,t)=>{var n=am(),r=sm(),i=Du(),a=lm(),o=um(),s=hm(),c=Object.prototype.hasOwnProperty;function l(e,t){var l=i(e),u=!l&&r(e),d=!l&&!u&&a(e),f=!l&&!u&&!d&&s(e),p=l||u||d||f,m=p?n(e.length,String):[],h=m.length;for(var g in e)(t||c.call(e,g))&&!(p&&(g==`length`||d&&(g==`offset`||g==`parent`)||f&&(g==`buffer`||g==`byteLength`||g==`byteOffset`)||o(g,h)))&&m.push(g);return m}t.exports=l})),_m=o(((e,t)=>{var n=Object.prototype;function r(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||n)}t.exports=r})),vm=o(((e,t)=>{function n(e,t){return function(n){return e(t(n))}}t.exports=n})),ym=o(((e,t)=>{t.exports=vm()(Object.keys,Object)})),bm=o(((e,t)=>{var n=_m(),r=ym(),i=Object.prototype.hasOwnProperty;function a(e){if(!n(e))return r(e);var t=[];for(var a in Object(e))i.call(e,a)&&a!=`constructor`&&t.push(a);return t}t.exports=a})),xm=o(((e,t)=>{var n=Ru(),r=dm();function i(e){return e!=null&&r(e.length)&&!n(e)}t.exports=i})),Sm=o(((e,t)=>{var n=gm(),r=bm(),i=xm();function a(e){return i(e)?n(e):r(e)}t.exports=a})),Cm=o(((e,t)=>{var n=tm(),r=im(),i=Sm();function a(e){return n(e,i,r)}t.exports=a})),wm=o(((e,t)=>{var n=Cm(),r=1,i=Object.prototype.hasOwnProperty;function a(e,t,a,o,s,c){var l=a&r,u=n(e),d=u.length;if(d!=n(t).length&&!l)return!1;for(var f=d;f--;){var p=u[f];if(!(l?p in t:i.call(t,p)))return!1}var m=c.get(e),h=c.get(t);if(m&&h)return m==t&&h==e;var g=!0;c.set(e,t),c.set(t,e);for(var _=l;++f<d;){p=u[f];var v=e[p],y=t[p];if(o)var b=l?o(y,v,p,t,e,c):o(v,y,p,e,t,c);if(!(b===void 0?v===y||s(v,y,a,o,c):b)){g=!1;break}_||=p==`constructor`}if(g&&!_){var x=e.constructor,S=t.constructor;x!=S&&`constructor`in e&&`constructor`in t&&!(typeof x==`function`&&x instanceof x&&typeof S==`function`&&S instanceof S)&&(g=!1)}return c.delete(e),c.delete(t),g}t.exports=a})),Tm=o(((e,t)=>{t.exports=Wu()(ku(),`DataView`)})),Em=o(((e,t)=>{t.exports=Wu()(ku(),`Promise`)})),Dm=o(((e,t)=>{t.exports=Wu()(ku(),`Set`)})),Om=o(((e,t)=>{t.exports=Wu()(ku(),`WeakMap`)})),km=o(((e,t)=>{var n=Tm(),r=od(),i=Em(),a=Dm(),o=Om(),s=Nu(),c=Vu(),l=`[object Map]`,u=`[object Object]`,d=`[object Promise]`,f=`[object Set]`,p=`[object WeakMap]`,m=`[object DataView]`,h=c(n),g=c(r),_=c(i),v=c(a),y=c(o),b=s;(n&&b(new n(new ArrayBuffer(1)))!=m||r&&b(new r)!=l||i&&b(i.resolve())!=d||a&&b(new a)!=f||o&&b(new o)!=p)&&(b=function(e){var t=s(e),n=t==u?e.constructor:void 0,r=n?c(n):``;if(r)switch(r){case h:return m;case g:return l;case _:return d;case v:return f;case y:return p}return t}),t.exports=b})),Am=o(((e,t)=>{var n=Up(),r=Yp(),i=$p(),a=wm(),o=km(),s=Du(),c=lm(),l=hm(),u=1,d=`[object Arguments]`,f=`[object Array]`,p=`[object Object]`,m=Object.prototype.hasOwnProperty;function h(e,t,h,g,_,v){var y=s(e),b=s(t),x=y?f:o(e),S=b?f:o(t);x=x==d?p:x,S=S==d?p:S;var C=x==p,w=S==p,T=x==S;if(T&&c(e)){if(!c(t))return!1;y=!0,C=!1}if(T&&!C)return v||=new n,y||l(e)?r(e,t,h,g,_,v):i(e,t,x,h,g,_,v);if(!(h&u)){var E=C&&m.call(e,`__wrapped__`),D=w&&m.call(t,`__wrapped__`);if(E||D){var O=E?e.value():e,k=D?t.value():t;return v||=new n,_(O,k,h,g,v)}}return T?(v||=new n,a(e,t,h,g,_,v)):!1}t.exports=h})),jm=o(((e,t)=>{var n=Am(),r=Pu();function i(e,t,a,o,s){return e===t?!0:e==null||t==null||!r(e)&&!r(t)?e!==e&&t!==t:n(e,t,a,o,i,s)}t.exports=i})),Mm=o(((e,t)=>{var n=Up(),r=jm(),i=1,a=2;function o(e,t,o,s){var c=o.length,l=c,u=!s;if(e==null)return!l;for(e=Object(e);c--;){var d=o[c];if(u&&d[2]?d[1]!==e[d[0]]:!(d[0]in e))return!1}for(;++c<l;){d=o[c];var f=d[0],p=e[f],m=d[1];if(u&&d[2]){if(p===void 0&&!(f in e))return!1}else{var h=new n;if(s)var g=s(p,m,f,e,t,h);if(!(g===void 0?r(m,p,i|a,s,h):g))return!1}}return!0}t.exports=o})),Nm=o(((e,t)=>{var n=Lu();function r(e){return e===e&&!n(e)}t.exports=r})),Pm=o(((e,t)=>{var n=Nm(),r=Sm();function i(e){for(var t=r(e),i=t.length;i--;){var a=t[i],o=e[a];t[i]=[a,o,n(o)]}return t}t.exports=i})),Fm=o(((e,t)=>{function n(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}t.exports=n})),Im=o(((e,t)=>{var n=Mm(),r=Pm(),i=Fm();function a(e){var t=r(e);return t.length==1&&t[0][2]?i(t[0][0],t[0][1]):function(r){return r===e||n(r,e,t)}}t.exports=a})),Lm=o(((e,t)=>{function n(e,t){return e!=null&&t in Object(e)}t.exports=n})),Rm=o(((e,t)=>{var n=xd(),r=sm(),i=Du(),a=um(),o=dm(),s=Sd();function c(e,t,c){t=n(t,e);for(var l=-1,u=t.length,d=!1;++l<u;){var f=s(t[l]);if(!(d=e!=null&&c(e,f)))break;e=e[f]}return d||++l!=u?d:(u=e==null?0:e.length,!!u&&o(u)&&a(f,u)&&(i(e)||r(e)))}t.exports=c})),zm=o(((e,t)=>{var n=Lm(),r=Rm();function i(e,t){return e!=null&&r(e,t,n)}t.exports=i})),Bm=o(((e,t)=>{var n=jm(),r=wd(),i=zm(),a=Iu(),o=Nm(),s=Fm(),c=Sd(),l=1,u=2;function d(e,t){return a(e)&&o(t)?s(c(e),t):function(a){var o=r(a,e);return o===void 0&&o===t?i(a,e):n(t,o,l|u)}}t.exports=d})),Vm=o(((e,t)=>{function n(e){return e}t.exports=n})),Hm=o(((e,t)=>{function n(e){return function(t){return t?.[e]}}t.exports=n})),Um=o(((e,t)=>{var n=Cd();function r(e){return function(t){return n(t,e)}}t.exports=r})),Wm=o(((e,t)=>{var n=Hm(),r=Um(),i=Iu(),a=Sd();function o(e){return i(e)?n(a(e)):r(e)}t.exports=o})),Gm=o(((e,t)=>{var n=Im(),r=Bm(),i=Vm(),a=Du(),o=Wm();function s(e){return typeof e==`function`?e:e==null?i:typeof e==`object`?a(e)?r(e[0],e[1]):n(e):o(e)}t.exports=s})),Km=o(((e,t)=>{function n(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a<i;)if(t(e[a],a,e))return a;return-1}t.exports=n})),qm=o(((e,t)=>{function n(e){return e!==e}t.exports=n})),Jm=o(((e,t)=>{function n(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}t.exports=n})),Ym=o(((e,t)=>{var n=Km(),r=qm(),i=Jm();function a(e,t,a){return t===t?i(e,t,a):n(e,r,a)}t.exports=a})),Xm=o(((e,t)=>{var n=Ym();function r(e,t){return!!(e!=null&&e.length)&&n(e,t,0)>-1}t.exports=r})),Zm=o(((e,t)=>{function n(e,t,n){for(var r=-1,i=e==null?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}t.exports=n})),Qm=o(((e,t)=>{function n(){}t.exports=n})),$m=o(((e,t)=>{var n=Dm(),r=Qm(),i=Qp();t.exports=n&&1/i(new n([,-0]))[1]==1/0?function(e){return new n(e)}:r})),eh=o(((e,t)=>{var n=Kp(),r=Xm(),i=Zm(),a=Jp(),o=$m(),s=Qp(),c=200;function l(e,t,l){var u=-1,d=r,f=e.length,p=!0,m=[],h=m;if(l)p=!1,d=i;else if(f>=c){var g=t?null:o(e);if(g)return s(g);p=!1,d=a,h=new n}else h=t?[]:m;outer:for(;++u<f;){var _=e[u],v=t?t(_):_;if(_=l||_!==0?_:0,p&&v===v){for(var y=h.length;y--;)if(h[y]===v)continue outer;t&&h.push(v),m.push(_)}else d(h,v,l)||(h!==m&&h.push(v),m.push(_))}return m}t.exports=l})),th=o(((e,t)=>{var n=Gm(),r=eh();function i(e,t){return e&&e.length?r(e,n(t,2)):[]}t.exports=i})),nh=c(th()),rh=c(Ru());function ih(e,t,n){return t===!0?(0,nh.default)(e,n):(0,rh.default)(t)?(0,nh.default)(e,t):e}function ah(e){"@babel/helpers - typeof";return ah=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},ah(e)}var oh=[`ref`];function sh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ch(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?sh(Object(n),!0).forEach(function(t){yh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sh(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function lh(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function uh(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,bh(r.key),r)}}function dh(e,t,n){return t&&uh(e.prototype,t),n&&uh(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function fh(e,t,n){return t=gh(t),ph(e,hh()?Reflect.construct(t,n||[],gh(e).constructor):t.apply(e,n))}function ph(e,t){if(t&&(ah(t)===`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return mh(e)}function mh(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function hh(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(hh=function(){return!!e})()}function gh(e){return gh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},gh(e)}function _h(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,`prototype`,{writable:!1}),t&&vh(e,t)}function vh(e,t){return vh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},vh(e,t)}function yh(e,t,n){return t=bh(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bh(e){var t=xh(e,`string`);return ah(t)==`symbol`?t:t+``}function xh(e,t){if(ah(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(ah(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Sh(e,t){if(e==null)return{};var n=Ch(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Ch(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function wh(e){return e.value}function Th(e,t){if(l.default.isValidElement(e))return l.default.cloneElement(e,t);if(typeof e==`function`)return l.default.createElement(e,t);t.ref;var n=Sh(t,oh);return l.default.createElement(Lp,n)}var Eh=1,Dh=function(e){function t(){var e;lh(this,t);for(var n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];return e=fh(this,t,[].concat(r)),yh(e,`lastBoundingBox`,{width:-1,height:-1}),e}return _h(t,e),dh(t,[{key:`componentDidMount`,value:function(){this.updateBBox()}},{key:`componentDidUpdate`,value:function(){this.updateBBox()}},{key:`getBBox`,value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var e=this.wrapperNode.getBoundingClientRect();return e.height=this.wrapperNode.offsetHeight,e.width=this.wrapperNode.offsetWidth,e}return null}},{key:`updateBBox`,value:function(){var e=this.props.onBBoxUpdate,t=this.getBBox();t?(Math.abs(t.width-this.lastBoundingBox.width)>Eh||Math.abs(t.height-this.lastBoundingBox.height)>Eh)&&(this.lastBoundingBox.width=t.width,this.lastBoundingBox.height=t.height,e&&e(t)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,e&&e(null))}},{key:`getBBoxSnapshot`,value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?ch({},this.lastBoundingBox):{width:0,height:0}}},{key:`getDefaultPosition`,value:function(e){var t=this.props,n=t.layout,r=t.align,i=t.verticalAlign,a=t.margin,o=t.chartWidth,s=t.chartHeight,c,l;if(!e||(e.left===void 0||e.left===null)&&(e.right===void 0||e.right===null))if(r===`center`&&n===`vertical`){var u=this.getBBoxSnapshot();c={left:((o||0)-u.width)/2}}else c=r===`right`?{right:a&&a.right||0}:{left:a&&a.left||0};if(!e||(e.top===void 0||e.top===null)&&(e.bottom===void 0||e.bottom===null))if(i===`middle`){var d=this.getBBoxSnapshot();l={top:((s||0)-d.height)/2}}else l=i===`bottom`?{bottom:a&&a.bottom||0}:{top:a&&a.top||0};return ch(ch({},c),l)}},{key:`render`,value:function(){var e=this,t=this.props,n=t.content,r=t.width,i=t.height,a=t.wrapperStyle,o=t.payloadUniqBy,s=t.payload,c=ch(ch({position:`absolute`,width:r||`auto`,height:i||`auto`},this.getDefaultPosition(a)),a);return l.default.createElement(`div`,{className:`recharts-legend-wrapper`,style:c,ref:function(t){e.wrapperNode=t}},Th(n,ch(ch({},this.props),{},{payload:ih(s,o,wh)})))}}],[{key:`getWithHeight`,value:function(e,t){var n=ch(ch({},this.defaultProps),e.props).layout;return n===`vertical`&&Rd(e.props.height)?{height:e.props.height}:n===`horizontal`?{width:e.props.width||t}:null}}])}(l.PureComponent);yh(Dh,`displayName`,`Legend`),yh(Dh,`defaultProps`,{iconSize:14,layout:`horizontal`,align:`center`,verticalAlign:`bottom`});var Oh=o(((e,t)=>{var n=Au(),r=sm(),i=Du(),a=n?n.isConcatSpreadable:void 0;function o(e){return i(e)||r(e)||!!(a&&e&&e[a])}t.exports=o})),kh=o(((e,t)=>{var n=em(),r=Oh();function i(e,t,a,o,s){var c=-1,l=e.length;for(a||=r,s||=[];++c<l;){var u=e[c];t>0&&a(u)?t>1?i(u,t-1,a,o,s):n(s,u):o||(s[s.length]=u)}return s}t.exports=i})),Ah=o(((e,t)=>{function n(e){return function(t,n,r){for(var i=-1,a=Object(t),o=r(t),s=o.length;s--;){var c=o[e?s:++i];if(n(a[c],c,a)===!1)break}return t}}t.exports=n})),jh=o(((e,t)=>{t.exports=Ah()()})),Mh=o(((e,t)=>{var n=jh(),r=Sm();function i(e,t){return e&&n(e,t,r)}t.exports=i})),Nh=o(((e,t)=>{var n=xm();function r(e,t){return function(r,i){if(r==null)return r;if(!n(r))return e(r,i);for(var a=r.length,o=t?a:-1,s=Object(r);(t?o--:++o<a)&&i(s[o],o,s)!==!1;);return r}}t.exports=r})),Ph=o(((e,t)=>{var n=Mh();t.exports=Nh()(n)})),Fh=o(((e,t)=>{var n=Ph(),r=xm();function i(e,t){var i=-1,a=r(e)?Array(e.length):[];return n(e,function(e,n,r){a[++i]=t(e,n,r)}),a}t.exports=i})),Ih=o(((e,t)=>{function n(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}t.exports=n})),Lh=o(((e,t)=>{var n=Fu();function r(e,t){if(e!==t){var r=e!==void 0,i=e===null,a=e===e,o=n(e),s=t!==void 0,c=t===null,l=t===t,u=n(t);if(!c&&!u&&!o&&e>t||o&&s&&l&&!c&&!u||i&&s&&l||!r&&l||!a)return 1;if(!i&&!o&&!u&&e<t||u&&r&&a&&!i&&!o||c&&r&&a||!s&&a||!l)return-1}return 0}t.exports=r})),Rh=o(((e,t)=>{var n=Lh();function r(e,t,r){for(var i=-1,a=e.criteria,o=t.criteria,s=a.length,c=r.length;++i<s;){var l=n(a[i],o[i]);if(l)return i>=c?l:l*(r[i]==`desc`?-1:1)}return e.index-t.index}t.exports=r})),zh=o(((e,t)=>{var n=vd(),r=Cd(),i=Gm(),a=Fh(),o=Ih(),s=pm(),c=Rh(),l=Vm(),u=Du();function d(e,t,d){t=t.length?n(t,function(e){return u(e)?function(t){return r(t,e.length===1?e[0]:e)}:e}):[l];var f=-1;return t=n(t,s(i)),o(a(e,function(e,r,i){return{criteria:n(t,function(t){return t(e)}),index:++f,value:e}}),function(e,t){return c(e,t,d)})}t.exports=d})),Bh=o(((e,t)=>{function n(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}t.exports=n})),Vh=o(((e,t)=>{var n=Bh(),r=Math.max;function i(e,t,i){return t=r(t===void 0?e.length-1:t,0),function(){for(var a=arguments,o=-1,s=r(a.length-t,0),c=Array(s);++o<s;)c[o]=a[t+o];o=-1;for(var l=Array(t+1);++o<t;)l[o]=a[o];return l[t]=i(c),n(e,this,l)}}t.exports=i})),Hh=o(((e,t)=>{function n(e){return function(){return e}}t.exports=n})),Uh=o(((e,t)=>{var n=Wu();t.exports=function(){try{var e=n(Object,`defineProperty`);return e({},``,{}),e}catch{}}()})),Wh=o(((e,t)=>{var n=Hh(),r=Uh(),i=Vm();t.exports=r?function(e,t){return r(e,`toString`,{configurable:!0,enumerable:!1,value:n(t),writable:!0})}:i})),Gh=o(((e,t)=>{var n=800,r=16,i=Date.now;function a(e){var t=0,a=0;return function(){var o=i(),s=r-(o-a);if(a=o,s>0){if(++t>=n)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}t.exports=a})),Kh=o(((e,t)=>{var n=Wh();t.exports=Gh()(n)})),qh=o(((e,t)=>{var n=Vm(),r=Vh(),i=Kh();function a(e,t){return i(r(e,t,n),e+``)}t.exports=a})),Jh=o(((e,t)=>{var n=$u(),r=xm(),i=um(),a=Lu();function o(e,t,o){if(!a(o))return!1;var s=typeof t;return(s==`number`?r(o)&&i(t,o.length):s==`string`&&t in o)?n(o[t],e):!1}t.exports=o})),Yh=o(((e,t)=>{var n=kh(),r=zh(),i=qh(),a=Jh();t.exports=i(function(e,t){if(e==null)return[];var i=t.length;return i>1&&a(e,t[0],t[1])?t=[]:i>2&&a(t[0],t[1],t[2])&&(t=[t[0]]),r(e,n(t,1),[])})})),Xh=c(Yh()),Zh=c(Td());function Qh(e){"@babel/helpers - typeof";return Qh=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Qh(e)}function $h(){return $h=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},$h.apply(this,arguments)}function eg(e,t){return ag(e)||ig(e,t)||ng(e,t)||tg()}function tg(){throw TypeError(`Invalid attempt to destructure non-iterable instance.