@theroutingcompany/components 0.0.5 → 0.0.6

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.
@@ -1,65 +1,65 @@
1
- (function(I,a){typeof exports=="object"&&typeof module<"u"?a(exports,require("react"),require("react-dom"),require("styled-components"),require("react-is"),require("@material-ui/icons")):typeof define=="function"&&define.amd?define(["exports","react","react-dom","styled-components","react-is","@material-ui/icons"],a):(I=typeof globalThis<"u"?globalThis:I||self,a(I["trc-components"]={},I.React,I.ReactDOM,I.styled,I.ReactIs,I.icons))})(this,function(I,a,Qe,lt,Mc,ve){"use strict";const Nn=e=>e&&typeof e=="object"&&"default"in e?e:{default:e};function go(e){if(e&&e.__esModule)return e;const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const j=go(a),de=Nn(a),Fc=Nn(Qe),Nc=go(Qe),k=Nn(lt);function D(){return D=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},D.apply(this,arguments)}function zc(e,t){const n=a.createContext(t);function r(i){const{children:s,...l}=i,d=a.useMemo(()=>l,Object.values(l));return a.createElement(n.Provider,{value:d},s)}function o(i){const s=a.useContext(n);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return r.displayName=e+"Provider",[r,o]}function ge(e,t=[]){let n=[];function r(i,s){const l=a.createContext(s),d=n.length;n=[...n,s];function f(p){const{scope:$,children:b,...h}=p,m=($==null?void 0:$[e][d])||l,v=a.useMemo(()=>h,Object.values(h));return a.createElement(m.Provider,{value:v},b)}function u(p,$){const b=($==null?void 0:$[e][d])||l,h=a.useContext(b);if(h)return h;if(s!==void 0)return s;throw new Error(`\`${p}\` must be used within \`${i}\``)}return f.displayName=i+"Provider",[f,u]}const o=()=>{const i=n.map(s=>a.createContext(s));return function(l){const d=(l==null?void 0:l[e])||i;return a.useMemo(()=>({[`__scope${e}`]:{...l,[e]:d}}),[l,d])}};return o.scopeName=e,[r,Bc(o,...t)]}function Bc(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const s=r.reduce((l,{useScope:d,scopeName:f})=>{const p=d(i)[`__scope${f}`];return{...l,...p}},{});return a.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}function Vc(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function $o(...e){return t=>e.forEach(n=>Vc(n,t))}function J(...e){return a.useCallback($o(...e),e)}function B(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}const pe=Boolean(globalThis==null?void 0:globalThis.document)?a.useLayoutEffect:()=>{},Rc=j["useId".toString()]||(()=>{});let Wc=0;function Le(e){const[t,n]=j.useState(Rc());return pe(()=>{e||n(r=>r!=null?r:String(Wc++))},[e]),e||(t?`radix-${t}`:"")}function $e(e){const t=a.useRef(e);return a.useEffect(()=>{t.current=e}),a.useMemo(()=>(...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}function Pe({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=Hc({defaultProp:t,onChange:n}),i=e!==void 0,s=i?e:r,l=$e(n),d=a.useCallback(f=>{if(i){const p=typeof f=="function"?f(e):f;p!==e&&l(p)}else o(f)},[i,e,o,l]);return[s,d]}function Hc({defaultProp:e,onChange:t}){const n=a.useState(e),[r]=n,o=a.useRef(r),i=$e(t);return a.useEffect(()=>{o.current!==r&&(i(r),o.current=r)},[r,o,i]),n}const et=a.forwardRef((e,t)=>{const{children:n,...r}=e,o=a.Children.toArray(n),i=o.find(Kc);if(i){const s=i.props.children,l=o.map(d=>d===i?a.Children.count(s)>1?a.Children.only(null):a.isValidElement(s)?s.props.children:null:d);return a.createElement(zn,D({},r,{ref:t}),a.isValidElement(s)?a.cloneElement(s,void 0,l):null)}return a.createElement(zn,D({},r,{ref:t}),n)});et.displayName="Slot";const zn=a.forwardRef((e,t)=>{const{children:n,...r}=e;return a.isValidElement(n)?a.cloneElement(n,{...Uc(r,n.props),ref:$o(t,n.ref)}):a.Children.count(n)>1?a.Children.only(null):null});zn.displayName="SlotClone";const Bn=({children:e})=>a.createElement(a.Fragment,null,e);function Kc(e){return a.isValidElement(e)&&e.type===Bn}function Uc(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...l)=>{i(...l),o(...l)}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}const R=["a","button","div","h2","h3","img","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{const n=a.forwardRef((r,o)=>{const{asChild:i,...s}=r,l=i?et:t;return a.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),a.createElement(l,D({},s,{ref:o}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function ho(e,t){e&&Qe.flushSync(()=>e.dispatchEvent(t))}function jc(e,t=globalThis==null?void 0:globalThis.document){const n=$e(e);a.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r),()=>t.removeEventListener("keydown",r)},[n,t])}const Vn="dismissableLayer.update",Gc="dismissableLayer.pointerDownOutside",Yc="dismissableLayer.focusOutside";let vo;const _o=a.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),St=a.forwardRef((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:s,onInteractOutside:l,onDismiss:d,...f}=e,u=a.useContext(_o),[p,$]=a.useState(null),b=(n=p==null?void 0:p.ownerDocument)!==null&&n!==void 0?n:globalThis==null?void 0:globalThis.document,[,h]=a.useState({}),m=J(t,A=>$(A)),v=Array.from(u.layers),[y]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),_=v.indexOf(y),w=p?v.indexOf(p):-1,g=u.layersWithOutsidePointerEventsDisabled.size>0,O=w>=_,L=Xc(A=>{const F=A.target,W=[...u.branches].some(P=>P.contains(F));!O||W||(i==null||i(A),l==null||l(A),A.defaultPrevented||d==null||d())},b),C=Zc(A=>{const F=A.target;[...u.branches].some(P=>P.contains(F))||(s==null||s(A),l==null||l(A),A.defaultPrevented||d==null||d())},b);return jc(A=>{w===u.layers.size-1&&(o==null||o(A),!A.defaultPrevented&&d&&(A.preventDefault(),d()))},b),a.useEffect(()=>{if(!!p)return r&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(vo=b.body.style.pointerEvents,b.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(p)),u.layers.add(p),yo(),()=>{r&&u.layersWithOutsidePointerEventsDisabled.size===1&&(b.body.style.pointerEvents=vo)}},[p,b,r,u]),a.useEffect(()=>()=>{!p||(u.layers.delete(p),u.layersWithOutsidePointerEventsDisabled.delete(p),yo())},[p,u]),a.useEffect(()=>{const A=()=>h({});return document.addEventListener(Vn,A),()=>document.removeEventListener(Vn,A)},[]),a.createElement(R.div,D({},f,{ref:m,style:{pointerEvents:g?O?"auto":"none":void 0,...e.style},onFocusCapture:B(e.onFocusCapture,C.onFocusCapture),onBlurCapture:B(e.onBlurCapture,C.onBlurCapture),onPointerDownCapture:B(e.onPointerDownCapture,L.onPointerDownCapture)}))}),qc=a.forwardRef((e,t)=>{const n=a.useContext(_o),r=a.useRef(null),o=J(t,r);return a.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),a.createElement(R.div,D({},e,{ref:o}))});function Xc(e,t=globalThis==null?void 0:globalThis.document){const n=$e(e),r=a.useRef(!1),o=a.useRef(()=>{});return a.useEffect(()=>{const i=l=>{if(l.target&&!r.current){let f=function(){xo(Gc,n,d,{discrete:!0})};const d={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=f,t.addEventListener("click",o.current,{once:!0})):f()}r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Zc(e,t=globalThis==null?void 0:globalThis.document){const n=$e(e),r=a.useRef(!1);return a.useEffect(()=>{const o=i=>{i.target&&!r.current&&xo(Yc,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function yo(){const e=new CustomEvent(Vn);document.dispatchEvent(e)}function xo(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?ho(o,i):o.dispatchEvent(i)}const Jc=St,Qc=qc,Rn="focusScope.autoFocusOnMount",Wn="focusScope.autoFocusOnUnmount",wo={bubbles:!1,cancelable:!0},Hn=a.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...s}=e,[l,d]=a.useState(null),f=$e(o),u=$e(i),p=a.useRef(null),$=J(t,m=>d(m)),b=a.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;a.useEffect(()=>{if(r){let m=function(y){if(b.paused||!l)return;const _=y.target;l.contains(_)?p.current=_:tt(p.current,{select:!0})},v=function(y){b.paused||!l||l.contains(y.relatedTarget)||tt(p.current,{select:!0})};return document.addEventListener("focusin",m),document.addEventListener("focusout",v),()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",v)}}},[r,l,b.paused]),a.useEffect(()=>{if(l){Co.add(b);const m=document.activeElement;if(!l.contains(m)){const y=new CustomEvent(Rn,wo);l.addEventListener(Rn,f),l.dispatchEvent(y),y.defaultPrevented||(ed(ad(Eo(l)),{select:!0}),document.activeElement===m&&tt(l))}return()=>{l.removeEventListener(Rn,f),setTimeout(()=>{const y=new CustomEvent(Wn,wo);l.addEventListener(Wn,u),l.dispatchEvent(y),y.defaultPrevented||tt(m!=null?m:document.body,{select:!0}),l.removeEventListener(Wn,u),Co.remove(b)},0)}}},[l,f,u,b]);const h=a.useCallback(m=>{if(!n&&!r||b.paused)return;const v=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,y=document.activeElement;if(v&&y){const _=m.currentTarget,[w,g]=td(_);w&&g?!m.shiftKey&&y===g?(m.preventDefault(),n&&tt(w,{select:!0})):m.shiftKey&&y===w&&(m.preventDefault(),n&&tt(g,{select:!0})):y===_&&m.preventDefault()}},[n,r,b.paused]);return a.createElement(R.div,D({tabIndex:-1},s,{ref:$,onKeyDown:h}))});function ed(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(tt(r,{select:t}),document.activeElement!==n)return}function td(e){const t=Eo(e),n=Po(t,e),r=Po(t.reverse(),e);return[n,r]}function Eo(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Po(e,t){for(const n of e)if(!nd(n,{upTo:t}))return n}function nd(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function rd(e){return e instanceof HTMLInputElement&&"select"in e}function tt(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&rd(e)&&t&&e.select()}}const Co=od();function od(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=To(e,t),e.unshift(t)},remove(t){var n;e=To(e,t),(n=e[0])===null||n===void 0||n.resume()}}}function To(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function ad(e){return e.filter(t=>t.tagName!=="A")}const kt=a.forwardRef((e,t)=>{var n;const{container:r=globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body,...o}=e;return r?Fc.default.createPortal(a.createElement(R.div,D({},o,{ref:t})),r):null});function id(e,t){return a.useReducer((n,r)=>{const o=t[n][r];return o!=null?o:n},e)}const ye=e=>{const{present:t,children:n}=e,r=sd(t),o=typeof n=="function"?n({present:r.isPresent}):a.Children.only(n),i=J(r.ref,o.ref);return typeof n=="function"||r.isPresent?a.cloneElement(o,{ref:i}):null};ye.displayName="Presence";function sd(e){const[t,n]=a.useState(),r=a.useRef({}),o=a.useRef(e),i=a.useRef("none"),s=e?"mounted":"unmounted",[l,d]=id(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return a.useEffect(()=>{const f=Wt(r.current);i.current=l==="mounted"?f:"none"},[l]),pe(()=>{const f=r.current,u=o.current;if(u!==e){const $=i.current,b=Wt(f);e?d("MOUNT"):b==="none"||(f==null?void 0:f.display)==="none"?d("UNMOUNT"):d(u&&$!==b?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,d]),pe(()=>{if(t){const f=p=>{const b=Wt(r.current).includes(p.animationName);p.target===t&&b&&Qe.flushSync(()=>d("ANIMATION_END"))},u=p=>{p.target===t&&(i.current=Wt(r.current))};return t.addEventListener("animationstart",u),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{t.removeEventListener("animationstart",u),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else d("ANIMATION_END")},[t,d]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:a.useCallback(f=>{f&&(r.current=getComputedStyle(f)),n(f)},[])}}function Wt(e){return(e==null?void 0:e.animationName)||"none"}let Kn=0;function Un(){a.useEffect(()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=n[0])!==null&&e!==void 0?e:So()),document.body.insertAdjacentElement("beforeend",(t=n[1])!==null&&t!==void 0?t:So()),Kn++,()=>{Kn===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),Kn--}},[])}function So(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var Ce=function(){return Ce=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Ce.apply(this,arguments)};function ko(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function ld(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}var Ht="right-scroll-bar-position",Kt="width-before-scroll-bar",cd="with-scroll-bars-hidden",dd="--removed-body-scroll-bar-size";function ud(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function fd(e,t){var n=a.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}function pd(e,t){return fd(t||null,function(n){return e.forEach(function(r){return ud(r,n)})})}var Ut={exports:{}},ct={};/** @license React v16.14.0
1
+ (function(R,l){typeof exports=="object"&&typeof module<"u"?l(exports,require("react"),require("react-dom"),require("styled-components"),require("react-is"),require("@material-ui/icons")):typeof define=="function"&&define.amd?define(["exports","react","react-dom","styled-components","react-is","@material-ui/icons"],l):(R=typeof globalThis<"u"?globalThis:R||self,l(R["trc-components"]={},R.React,R.ReactDOM,R.styled,R.ReactIs,R.icons))})(this,function(R,l,ut,$t,gr,xe){"use strict";const yr=e=>e&&typeof e=="object"&&"default"in e?e:{default:e};function aa(e){if(e&&e.__esModule)return e;const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const H=aa(l),ie=yr(l),Ip=yr(ut),sa=aa(ut),A=yr($t),Pn=yr(gr);function C(){return C=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},C.apply(this,arguments)}function Ap(e,t){const r=l.createContext(t);function n(i){const{children:a,...s}=i,c=l.useMemo(()=>s,Object.values(s));return l.createElement(r.Provider,{value:c},a)}function o(i){const a=l.useContext(r);if(a)return a;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return n.displayName=e+"Provider",[n,o]}function Se(e,t=[]){let r=[];function n(i,a){const s=l.createContext(a),c=r.length;r=[...r,a];function u(p){const{scope:b,children:h,...v}=p,m=(b==null?void 0:b[e][c])||s,y=l.useMemo(()=>v,Object.values(v));return l.createElement(m.Provider,{value:y},h)}function d(p,b){const h=(b==null?void 0:b[e][c])||s,v=l.useContext(h);if(v)return v;if(a!==void 0)return a;throw new Error(`\`${p}\` must be used within \`${i}\``)}return u.displayName=i+"Provider",[u,d]}const o=()=>{const i=r.map(a=>l.createContext(a));return function(s){const c=(s==null?void 0:s[e])||i;return l.useMemo(()=>({[`__scope${e}`]:{...s,[e]:c}}),[s,c])}};return o.scopeName=e,[n,Np(o,...t)]}function Np(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const a=n.reduce((s,{useScope:c,scopeName:u})=>{const p=c(i)[`__scope${u}`];return{...s,...p}},{});return l.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return r.scopeName=t.scopeName,r}function Mp(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function la(...e){return t=>e.forEach(r=>Mp(r,t))}function le(...e){return l.useCallback(la(...e),e)}function K(e,t,{checkForDefaultPrevented:r=!0}={}){return function(o){if(e==null||e(o),r===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}const $e=Boolean(globalThis==null?void 0:globalThis.document)?l.useLayoutEffect:()=>{},Lp=H["useId".toString()]||(()=>{});let Fp=0;function Ke(e){const[t,r]=H.useState(Lp());return $e(()=>{e||r(n=>n!=null?n:String(Fp++))},[e]),e||(t?`radix-${t}`:"")}function Ce(e){const t=l.useRef(e);return l.useEffect(()=>{t.current=e}),l.useMemo(()=>(...r)=>{var n;return(n=t.current)===null||n===void 0?void 0:n.call(t,...r)},[])}function Me({prop:e,defaultProp:t,onChange:r=()=>{}}){const[n,o]=Rp({defaultProp:t,onChange:r}),i=e!==void 0,a=i?e:n,s=Ce(r),c=l.useCallback(u=>{if(i){const p=typeof u=="function"?u(e):u;p!==e&&s(p)}else o(u)},[i,e,o,s]);return[a,c]}function Rp({defaultProp:e,onChange:t}){const r=l.useState(e),[n]=r,o=l.useRef(n),i=Ce(t);return l.useEffect(()=>{o.current!==n&&(i(n),o.current=n)},[n,o,i]),r}const dt=l.forwardRef((e,t)=>{const{children:r,...n}=e,o=l.Children.toArray(r),i=o.find(zp);if(i){const a=i.props.children,s=o.map(c=>c===i?l.Children.count(a)>1?l.Children.only(null):l.isValidElement(a)?a.props.children:null:c);return l.createElement(Sn,C({},n,{ref:t}),l.isValidElement(a)?l.cloneElement(a,void 0,s):null)}return l.createElement(Sn,C({},n,{ref:t}),r)});dt.displayName="Slot";const Sn=l.forwardRef((e,t)=>{const{children:r,...n}=e;return l.isValidElement(r)?l.cloneElement(r,{...Vp(n,r.props),ref:la(t,r.ref)}):l.Children.count(r)>1?l.Children.only(null):null});Sn.displayName="SlotClone";const Cn=({children:e})=>l.createElement(l.Fragment,null,e);function zp(e){return l.isValidElement(e)&&e.type===Cn}function Vp(e,t){const r={...t};for(const n in t){const o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...s)=>{i(...s),o(...s)}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}const Q=["a","button","div","h2","h3","img","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{const r=l.forwardRef((n,o)=>{const{asChild:i,...a}=n,s=i?dt:t;return l.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),l.createElement(s,C({},a,{ref:o}))});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function ca(e,t){e&&ut.flushSync(()=>e.dispatchEvent(t))}function jp(e,t=globalThis==null?void 0:globalThis.document){const r=Ce(e);l.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",n),()=>t.removeEventListener("keydown",n)},[r,t])}const Tn="dismissableLayer.update",Bp="dismissableLayer.pointerDownOutside",Wp="dismissableLayer.focusOutside";let ua;const da=l.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ht=l.forwardRef((e,t)=>{var r;const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:s,onDismiss:c,...u}=e,d=l.useContext(da),[p,b]=l.useState(null),h=(r=p==null?void 0:p.ownerDocument)!==null&&r!==void 0?r:globalThis==null?void 0:globalThis.document,[,v]=l.useState({}),m=le(t,N=>b(N)),y=Array.from(d.layers),[$]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),_=y.indexOf($),w=p?y.indexOf(p):-1,g=d.layersWithOutsidePointerEventsDisabled.size>0,D=w>=_,M=Kp(N=>{const F=N.target,G=[...d.branches].some(S=>S.contains(F));!D||G||(i==null||i(N),s==null||s(N),N.defaultPrevented||c==null||c())},h),O=Hp(N=>{const F=N.target;[...d.branches].some(S=>S.contains(F))||(a==null||a(N),s==null||s(N),N.defaultPrevented||c==null||c())},h);return jp(N=>{w===d.layers.size-1&&(o==null||o(N),!N.defaultPrevented&&c&&(N.preventDefault(),c()))},h),l.useEffect(()=>{if(!!p)return n&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(ua=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(p)),d.layers.add(p),fa(),()=>{n&&d.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=ua)}},[p,h,n,d]),l.useEffect(()=>()=>{!p||(d.layers.delete(p),d.layersWithOutsidePointerEventsDisabled.delete(p),fa())},[p,d]),l.useEffect(()=>{const N=()=>v({});return document.addEventListener(Tn,N),()=>document.removeEventListener(Tn,N)},[]),l.createElement(Q.div,C({},u,{ref:m,style:{pointerEvents:g?D?"auto":"none":void 0,...e.style},onFocusCapture:K(e.onFocusCapture,O.onFocusCapture),onBlurCapture:K(e.onBlurCapture,O.onBlurCapture),onPointerDownCapture:K(e.onPointerDownCapture,M.onPointerDownCapture)}))}),Up=l.forwardRef((e,t)=>{const r=l.useContext(da),n=l.useRef(null),o=le(t,n);return l.useEffect(()=>{const i=n.current;if(i)return r.branches.add(i),()=>{r.branches.delete(i)}},[r.branches]),l.createElement(Q.div,C({},e,{ref:o}))});function Kp(e,t=globalThis==null?void 0:globalThis.document){const r=Ce(e),n=l.useRef(!1),o=l.useRef(()=>{});return l.useEffect(()=>{const i=s=>{if(s.target&&!n.current){let u=function(){pa(Bp,r,c,{discrete:!0})};const c={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=u,t.addEventListener("click",o.current,{once:!0})):u()}n.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function Hp(e,t=globalThis==null?void 0:globalThis.document){const r=Ce(e),n=l.useRef(!1);return l.useEffect(()=>{const o=i=>{i.target&&!n.current&&pa(Wp,r,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function fa(){const e=new CustomEvent(Tn);document.dispatchEvent(e)}function pa(e,t,r,{discrete:n}){const o=r.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?ca(o,i):o.dispatchEvent(i)}const Gp=Ht,qp=Up,On="focusScope.autoFocusOnMount",kn="focusScope.autoFocusOnUnmount",ha={bubbles:!1,cancelable:!0},Dn=l.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...a}=e,[s,c]=l.useState(null),u=Ce(o),d=Ce(i),p=l.useRef(null),b=le(t,m=>c(m)),h=l.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;l.useEffect(()=>{if(n){let m=function($){if(h.paused||!s)return;const _=$.target;s.contains(_)?p.current=_:ft(p.current,{select:!0})},y=function($){h.paused||!s||s.contains($.relatedTarget)||ft(p.current,{select:!0})};return document.addEventListener("focusin",m),document.addEventListener("focusout",y),()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",y)}}},[n,s,h.paused]),l.useEffect(()=>{if(s){va.add(h);const m=document.activeElement;if(!s.contains(m)){const $=new CustomEvent(On,ha);s.addEventListener(On,u),s.dispatchEvent($),$.defaultPrevented||(Yp(eh(ba(s)),{select:!0}),document.activeElement===m&&ft(s))}return()=>{s.removeEventListener(On,u),setTimeout(()=>{const $=new CustomEvent(kn,ha);s.addEventListener(kn,d),s.dispatchEvent($),$.defaultPrevented||ft(m!=null?m:document.body,{select:!0}),s.removeEventListener(kn,d),va.remove(h)},0)}}},[s,u,d,h]);const v=l.useCallback(m=>{if(!r&&!n||h.paused)return;const y=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,$=document.activeElement;if(y&&$){const _=m.currentTarget,[w,g]=Xp(_);w&&g?!m.shiftKey&&$===g?(m.preventDefault(),r&&ft(w,{select:!0})):m.shiftKey&&$===w&&(m.preventDefault(),r&&ft(g,{select:!0})):$===_&&m.preventDefault()}},[r,n,h.paused]);return l.createElement(Q.div,C({tabIndex:-1},a,{ref:b,onKeyDown:v}))});function Yp(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(ft(n,{select:t}),document.activeElement!==r)return}function Xp(e){const t=ba(e),r=ma(t,e),n=ma(t.reverse(),e);return[r,n]}function ba(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function ma(e,t){for(const r of e)if(!Jp(r,{upTo:t}))return r}function Jp(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Zp(e){return e instanceof HTMLInputElement&&"select"in e}function ft(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&Zp(e)&&t&&e.select()}}const va=Qp();function Qp(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=ga(e,t),e.unshift(t)},remove(t){var r;e=ga(e,t),(r=e[0])===null||r===void 0||r.resume()}}}function ga(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function eh(e){return e.filter(t=>t.tagName!=="A")}const Gt=l.forwardRef((e,t)=>{var r;const{container:n=globalThis==null||(r=globalThis.document)===null||r===void 0?void 0:r.body,...o}=e;return n?Ip.default.createPortal(l.createElement(Q.div,C({},o,{ref:t})),n):null});function th(e,t){return l.useReducer((r,n)=>{const o=t[r][n];return o!=null?o:r},e)}const De=e=>{const{present:t,children:r}=e,n=rh(t),o=typeof r=="function"?r({present:n.isPresent}):l.Children.only(r),i=le(n.ref,o.ref);return typeof r=="function"||n.isPresent?l.cloneElement(o,{ref:i}):null};De.displayName="Presence";function rh(e){const[t,r]=l.useState(),n=l.useRef({}),o=l.useRef(e),i=l.useRef("none"),a=e?"mounted":"unmounted",[s,c]=th(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return l.useEffect(()=>{const u=_r(n.current);i.current=s==="mounted"?u:"none"},[s]),$e(()=>{const u=n.current,d=o.current;if(d!==e){const b=i.current,h=_r(u);e?c("MOUNT"):h==="none"||(u==null?void 0:u.display)==="none"?c("UNMOUNT"):c(d&&b!==h?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),$e(()=>{if(t){const u=p=>{const h=_r(n.current).includes(p.animationName);p.target===t&&h&&ut.flushSync(()=>c("ANIMATION_END"))},d=p=>{p.target===t&&(i.current=_r(n.current))};return t.addEventListener("animationstart",d),t.addEventListener("animationcancel",u),t.addEventListener("animationend",u),()=>{t.removeEventListener("animationstart",d),t.removeEventListener("animationcancel",u),t.removeEventListener("animationend",u)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:l.useCallback(u=>{u&&(n.current=getComputedStyle(u)),r(u)},[])}}function _r(e){return(e==null?void 0:e.animationName)||"none"}let In=0;function An(){l.useEffect(()=>{var e,t;const r=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=r[0])!==null&&e!==void 0?e:ya()),document.body.insertAdjacentElement("beforeend",(t=r[1])!==null&&t!==void 0?t:ya()),In++,()=>{In===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(n=>n.remove()),In--}},[])}function ya(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var Le=function(){return Le=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},Le.apply(this,arguments)};function _a(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function nh(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,i;n<o;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}var $r="right-scroll-bar-position",xr="width-before-scroll-bar",oh="with-scroll-bars-hidden",ih="--removed-body-scroll-bar-size";function ah(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function sh(e,t){var r=l.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}function lh(e,t){return sh(t||null,function(r){return e.forEach(function(n){return ah(n,r)})})}function ch(e){var t=e.default;if(typeof t=="function"){var r=function(){return t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),r}var wr={exports:{}},xt={};/** @license React v16.14.0
2
2
  * react-jsx-runtime.production.min.js
3
3
  *
4
4
  * Copyright (c) Facebook, Inc. and its affiliates.
5
5
  *
6
6
  * This source code is licensed under the MIT license found in the
7
7
  * LICENSE file in the root directory of this source tree.
8
- */var Do;function bd(){if(Do)return ct;Do=1;var e=de.default,t=60103;if(ct.Fragment=60107,typeof Symbol=="function"&&Symbol.for){var n=Symbol.for;t=n("react.element"),ct.Fragment=n("react.fragment")}var r=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o=Object.prototype.hasOwnProperty,i={key:!0,ref:!0,__self:!0,__source:!0};function s(l,d,f){var u,p={},$=null,b=null;f!==void 0&&($=""+f),d.key!==void 0&&($=""+d.key),d.ref!==void 0&&(b=d.ref);for(u in d)o.call(d,u)&&!i.hasOwnProperty(u)&&(p[u]=d[u]);if(l&&l.defaultProps)for(u in d=l.defaultProps,d)p[u]===void 0&&(p[u]=d[u]);return{$$typeof:t,type:l,key:$,ref:b,props:p,_owner:r.current}}return ct.jsx=s,ct.jsxs=s,ct}var jn={};/** @license React v16.14.0
8
+ */var $a;function uh(){if($a)return xt;$a=1;var e=ie.default,t=60103;if(xt.Fragment=60107,typeof Symbol=="function"&&Symbol.for){var r=Symbol.for;t=r("react.element"),xt.Fragment=r("react.fragment")}var n=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o=Object.prototype.hasOwnProperty,i={key:!0,ref:!0,__self:!0,__source:!0};function a(s,c,u){var d,p={},b=null,h=null;u!==void 0&&(b=""+u),c.key!==void 0&&(b=""+c.key),c.ref!==void 0&&(h=c.ref);for(d in c)o.call(c,d)&&!i.hasOwnProperty(d)&&(p[d]=c[d]);if(s&&s.defaultProps)for(d in c=s.defaultProps,c)p[d]===void 0&&(p[d]=c[d]);return{$$typeof:t,type:s,key:b,ref:h,props:p,_owner:n.current}}return xt.jsx=a,xt.jsxs=a,xt}var Nn={};/** @license React v16.14.0
9
9
  * react-jsx-runtime.development.js
10
10
  *
11
11
  * Copyright (c) Facebook, Inc. and its affiliates.
12
12
  *
13
13
  * This source code is licensed under the MIT license found in the
14
14
  * LICENSE file in the root directory of this source tree.
15
- */var Oo;function md(){return Oo||(Oo=1,function(e){process.env.NODE_ENV!=="production"&&function(){var t=de.default,n=60103,r=60106;e.Fragment=60107;var o=60108,i=60114,s=60109,l=60110,d=60112,f=60113,u=60120,p=60115,$=60116,b=60121,h=60122,m=60117,v=60129,y=60131;if(typeof Symbol=="function"&&Symbol.for){var _=Symbol.for;n=_("react.element"),r=_("react.portal"),e.Fragment=_("react.fragment"),o=_("react.strict_mode"),i=_("react.profiler"),s=_("react.provider"),l=_("react.context"),d=_("react.forward_ref"),f=_("react.suspense"),u=_("react.suspense_list"),p=_("react.memo"),$=_("react.lazy"),b=_("react.block"),h=_("react.server.block"),m=_("react.fundamental"),_("react.scope"),_("react.opaque.id"),v=_("react.debug_trace_mode"),_("react.offscreen"),y=_("react.legacy_hidden")}var w=typeof Symbol=="function"&&Symbol.iterator,g="@@iterator";function O(x){if(x===null||typeof x!="object")return null;var M=w&&x[w]||x[g];return typeof M=="function"?M:null}var L=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function C(x){{for(var M=arguments.length,N=new Array(M>1?M-1:0),q=1;q<M;q++)N[q-1]=arguments[q];A("error",x,N)}}function A(x,M,N){{var q=L.ReactDebugCurrentFrame,re="";if(ie){var oe=Y(ie.type),te=ie._owner;re+=V(oe,ie._source,te&&Y(te.type))}re+=q.getStackAddendum(),re!==""&&(M+="%s",N=N.concat([re]));var X=N.map(function(me){return""+me});X.unshift("Warning: "+M),Function.prototype.apply.call(console[x],console,X)}}var F=!1;function W(x){return!!(typeof x=="string"||typeof x=="function"||x===e.Fragment||x===i||x===v||x===o||x===f||x===u||x===y||F||typeof x=="object"&&x!==null&&(x.$$typeof===$||x.$$typeof===p||x.$$typeof===s||x.$$typeof===l||x.$$typeof===d||x.$$typeof===m||x.$$typeof===b||x[0]===h))}var P=/^(.*)[\\\/]/;function V(x,M,N){var q="";if(M){var re=M.fileName,oe=re.replace(P,"");if(/^index\./.test(oe)){var te=re.match(P);if(te){var X=te[1];if(X){var me=X.replace(P,"");oe=me+"/"+oe}}}q=" (at "+oe+":"+M.lineNumber+")"}else N&&(q=" (created by "+N+")");return`
16
- in `+(x||"Unknown")+q}var S=1;function E(x){return x._status===S?x._result:null}function U(x,M,N){var q=M.displayName||M.name||"";return x.displayName||(q!==""?N+"("+q+")":N)}function Y(x){if(x==null)return null;if(typeof x.tag=="number"&&C("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."),typeof x=="function")return x.displayName||x.name||null;if(typeof x=="string")return x;switch(x){case e.Fragment:return"Fragment";case r:return"Portal";case i:return"Profiler";case o:return"StrictMode";case f:return"Suspense";case u:return"SuspenseList"}if(typeof x=="object")switch(x.$$typeof){case l:return"Context.Consumer";case s:return"Context.Provider";case d:return U(x,x.render,"ForwardRef");case p:return Y(x.type);case b:return Y(x.render);case $:{var M=x,N=E(M);if(N)return Y(N);break}}return null}var ae={};L.ReactDebugCurrentFrame;var ie=null;function H(x){ie=x}function z(x,M,N,q,re){{var oe=Function.call.bind(Object.prototype.hasOwnProperty);for(var te in x)if(oe(x,te)){var X=void 0;try{if(typeof x[te]!="function"){var me=Error((q||"React class")+": "+N+" type `"+te+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof x[te]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw me.name="Invariant Violation",me}X=x[te](M,te,q,N,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Ae){X=Ae}X&&!(X instanceof Error)&&(H(re),C("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",q||"React class",N,te,typeof X),H(null)),X instanceof Error&&!(X.message in ae)&&(ae[X.message]=!0,H(re),C("Failed %s type: %s",N,X.message),H(null))}}}var K=L.ReactCurrentOwner,Q=Object.prototype.hasOwnProperty,G={key:!0,ref:!0,__self:!0,__source:!0},Z,ne,se;se={};function ue(x){if(Q.call(x,"ref")){var M=Object.getOwnPropertyDescriptor(x,"ref").get;if(M&&M.isReactWarning)return!1}return x.ref!==void 0}function fe(x){if(Q.call(x,"key")){var M=Object.getOwnPropertyDescriptor(x,"key").get;if(M&&M.isReactWarning)return!1}return x.key!==void 0}function Ve(x,M){if(typeof x.ref=="string"&&K.current&&M&&K.current.stateNode!==M){var N=Y(K.current.type);se[N]||(C('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',Y(K.current.type),x.ref),se[N]=!0)}}function Ye(x,M){{var N=function(){Z||(Z=!0,C("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",M))};N.isReactWarning=!0,Object.defineProperty(x,"key",{get:N,configurable:!0})}}function qe(x,M){{var N=function(){ne||(ne=!0,C("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",M))};N.isReactWarning=!0,Object.defineProperty(x,"ref",{get:N,configurable:!0})}}var Xe=function(x,M,N,q,re,oe,te){var X={$$typeof:n,type:x,key:M,ref:N,props:te,_owner:oe};return X._store={},Object.defineProperty(X._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(X,"_self",{configurable:!1,enumerable:!1,writable:!1,value:q}),Object.defineProperty(X,"_source",{configurable:!1,enumerable:!1,writable:!1,value:re}),Object.freeze&&(Object.freeze(X.props),Object.freeze(X)),X};function st(x,M,N,q,re){{var oe,te={},X=null,me=null;N!==void 0&&(X=""+N),fe(M)&&(X=""+M.key),ue(M)&&(me=M.ref,Ve(M,re));for(oe in M)Q.call(M,oe)&&!G.hasOwnProperty(oe)&&(te[oe]=M[oe]);if(x&&x.defaultProps){var Ae=x.defaultProps;for(oe in Ae)te[oe]===void 0&&(te[oe]=Ae[oe])}if(X||me){var Je=typeof x=="function"?x.displayName||x.name||"Unknown":x;X&&Ye(te,Je),me&&qe(te,Je)}return Xe(x,X,me,re,q,K.current,te)}}var ke=L.ReactCurrentOwner;L.ReactDebugCurrentFrame;function _e(x){ie=x}var De;De=!1;function le(x){return typeof x=="object"&&x!==null&&x.$$typeof===n}function ce(){{if(ke.current){var x=Y(ke.current.type);if(x)return`
15
+ */var xa;function dh(){return xa||(xa=1,function(e){process.env.NODE_ENV!=="production"&&function(){var t=ie.default,r=60103,n=60106;e.Fragment=60107;var o=60108,i=60114,a=60109,s=60110,c=60112,u=60113,d=60120,p=60115,b=60116,h=60121,v=60122,m=60117,y=60129,$=60131;if(typeof Symbol=="function"&&Symbol.for){var _=Symbol.for;r=_("react.element"),n=_("react.portal"),e.Fragment=_("react.fragment"),o=_("react.strict_mode"),i=_("react.profiler"),a=_("react.provider"),s=_("react.context"),c=_("react.forward_ref"),u=_("react.suspense"),d=_("react.suspense_list"),p=_("react.memo"),b=_("react.lazy"),h=_("react.block"),v=_("react.server.block"),m=_("react.fundamental"),_("react.scope"),_("react.opaque.id"),y=_("react.debug_trace_mode"),_("react.offscreen"),$=_("react.legacy_hidden")}var w=typeof Symbol=="function"&&Symbol.iterator,g="@@iterator";function D(x){if(x===null||typeof x!="object")return null;var z=w&&x[w]||x[g];return typeof z=="function"?z:null}var M=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function O(x){{for(var z=arguments.length,W=new Array(z>1?z-1:0),ae=1;ae<z;ae++)W[ae-1]=arguments[ae];N("error",x,W)}}function N(x,z,W){{var ae=M.ReactDebugCurrentFrame,he="";if(ve){var be=Z(ve.type),de=ve._owner;he+=Y(be,ve._source,de&&Z(de.type))}he+=ae.getStackAddendum(),he!==""&&(z+="%s",W=W.concat([he]));var se=W.map(function(Pe){return""+Pe});se.unshift("Warning: "+z),Function.prototype.apply.call(console[x],console,se)}}var F=!1;function G(x){return!!(typeof x=="string"||typeof x=="function"||x===e.Fragment||x===i||x===y||x===o||x===u||x===d||x===$||F||typeof x=="object"&&x!==null&&(x.$$typeof===b||x.$$typeof===p||x.$$typeof===a||x.$$typeof===s||x.$$typeof===c||x.$$typeof===m||x.$$typeof===h||x[0]===v))}var S=/^(.*)[\\\/]/;function Y(x,z,W){var ae="";if(z){var he=z.fileName,be=he.replace(S,"");if(/^index\./.test(be)){var de=he.match(S);if(de){var se=de[1];if(se){var Pe=se.replace(S,"");be=Pe+"/"+be}}}ae=" (at "+be+":"+z.lineNumber+")"}else W&&(ae=" (created by "+W+")");return`
16
+ in `+(x||"Unknown")+ae}var I=1;function P(x){return x._status===I?x._result:null}function re(x,z,W){var ae=z.displayName||z.name||"";return x.displayName||(ae!==""?W+"("+ae+")":W)}function Z(x){if(x==null)return null;if(typeof x.tag=="number"&&O("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."),typeof x=="function")return x.displayName||x.name||null;if(typeof x=="string")return x;switch(x){case e.Fragment:return"Fragment";case n:return"Portal";case i:return"Profiler";case o:return"StrictMode";case u:return"Suspense";case d:return"SuspenseList"}if(typeof x=="object")switch(x.$$typeof){case s:return"Context.Consumer";case a:return"Context.Provider";case c:return re(x,x.render,"ForwardRef");case p:return Z(x.type);case h:return Z(x.render);case b:{var z=x,W=P(z);if(W)return Z(W);break}}return null}var fe={};M.ReactDebugCurrentFrame;var ve=null;function ee(x){ve=x}function E(x,z,W,ae,he){{var be=Function.call.bind(Object.prototype.hasOwnProperty);for(var de in x)if(be(x,de)){var se=void 0;try{if(typeof x[de]!="function"){var Pe=Error((ae||"React class")+": "+W+" type `"+de+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof x[de]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Pe.name="Invariant Violation",Pe}se=x[de](z,de,ae,W,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Ue){se=Ue}se&&!(se instanceof Error)&&(ee(he),O("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",ae||"React class",W,de,typeof se),ee(null)),se instanceof Error&&!(se.message in fe)&&(fe[se.message]=!0,ee(he),O("Failed %s type: %s",W,se.message),ee(null))}}}var L=M.ReactCurrentOwner,B=Object.prototype.hasOwnProperty,j={key:!0,ref:!0,__self:!0,__source:!0},V,U,q;q={};function X(x){if(B.call(x,"ref")){var z=Object.getOwnPropertyDescriptor(x,"ref").get;if(z&&z.isReactWarning)return!1}return x.ref!==void 0}function J(x){if(B.call(x,"key")){var z=Object.getOwnPropertyDescriptor(x,"key").get;if(z&&z.isReactWarning)return!1}return x.key!==void 0}function oe(x,z){if(typeof x.ref=="string"&&L.current&&z&&L.current.stateNode!==z){var W=Z(L.current.type);q[W]||(O('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',Z(L.current.type),x.ref),q[W]=!0)}}function ne(x,z){{var W=function(){V||(V=!0,O("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",z))};W.isReactWarning=!0,Object.defineProperty(x,"key",{get:W,configurable:!0})}}function ge(x,z){{var W=function(){U||(U=!0,O("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",z))};W.isReactWarning=!0,Object.defineProperty(x,"ref",{get:W,configurable:!0})}}var me=function(x,z,W,ae,he,be,de){var se={$$typeof:r,type:x,key:z,ref:W,props:de,_owner:be};return se._store={},Object.defineProperty(se._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(se,"_self",{configurable:!1,enumerable:!1,writable:!1,value:ae}),Object.defineProperty(se,"_source",{configurable:!1,enumerable:!1,writable:!1,value:he}),Object.freeze&&(Object.freeze(se.props),Object.freeze(se)),se};function Ee(x,z,W,ae,he){{var be,de={},se=null,Pe=null;W!==void 0&&(se=""+W),J(z)&&(se=""+z.key),X(z)&&(Pe=z.ref,oe(z,he));for(be in z)B.call(z,be)&&!j.hasOwnProperty(be)&&(de[be]=z[be]);if(x&&x.defaultProps){var Ue=x.defaultProps;for(be in Ue)de[be]===void 0&&(de[be]=Ue[be])}if(se||Pe){var ct=typeof x=="function"?x.displayName||x.name||"Unknown":x;se&&ne(de,ct),Pe&&ge(de,ct)}return me(x,se,Pe,he,ae,L.current,de)}}var Ve=M.ReactCurrentOwner;M.ReactDebugCurrentFrame;function ke(x){ve=x}var je;je=!1;function ye(x){return typeof x=="object"&&x!==null&&x.$$typeof===r}function _e(){{if(Ve.current){var x=Z(Ve.current.type);if(x)return`
17
17
 
18
- Check the render method of \``+x+"`."}return""}}function we(x){{if(x!==void 0){var M=x.fileName.replace(/^.*[\\\/]/,""),N=x.lineNumber;return`
18
+ Check the render method of \``+x+"`."}return""}}function Ae(x){{if(x!==void 0){var z=x.fileName.replace(/^.*[\\\/]/,""),W=x.lineNumber;return`
19
19
 
20
- Check your code at `+M+":"+N+"."}return""}}var Ee={};function Ze(x){{var M=ce();if(!M){var N=typeof x=="string"?x:x.displayName||x.name;N&&(M=`
20
+ Check your code at `+z+":"+W+"."}return""}}var Ne={};function lt(x){{var z=_e();if(!z){var W=typeof x=="string"?x:x.displayName||x.name;W&&(z=`
21
21
 
22
- Check the top-level render call using <`+N+">.")}return M}}function Ct(x,M){{if(!x._store||x._store.validated||x.key!=null)return;x._store.validated=!0;var N=Ze(M);if(Ee[N])return;Ee[N]=!0;var q="";x&&x._owner&&x._owner!==ke.current&&(q=" It was passed a child from "+Y(x._owner.type)+"."),_e(x),C('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',N,q),_e(null)}}function he(x,M){{if(typeof x!="object")return;if(Array.isArray(x))for(var N=0;N<x.length;N++){var q=x[N];le(q)&&Ct(q,M)}else if(le(x))x._store&&(x._store.validated=!0);else if(x){var re=O(x);if(typeof re=="function"&&re!==x.entries)for(var oe=re.call(x),te;!(te=oe.next()).done;)le(te.value)&&Ct(te.value,M)}}}function Re(x){{var M=x.type;if(M==null||typeof M=="string")return;var N;if(typeof M=="function")N=M.propTypes;else if(typeof M=="object"&&(M.$$typeof===d||M.$$typeof===p))N=M.propTypes;else return;if(N){var q=Y(M);z(N,x.props,"prop",q,x)}else if(M.PropTypes!==void 0&&!De){De=!0;var re=Y(M);C("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",re||"Unknown")}typeof M.getDefaultProps=="function"&&!M.getDefaultProps.isReactClassApproved&&C("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Oe(x){{for(var M=Object.keys(x.props),N=0;N<M.length;N++){var q=M[N];if(q!=="children"&&q!=="key"){_e(x),C("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",q),_e(null);break}}x.ref!==null&&(_e(x),C("Invalid attribute `ref` supplied to `React.Fragment`."),_e(null))}}function Ie(x,M,N,q,re,oe){{var te=W(x);if(!te){var X="";(x===void 0||typeof x=="object"&&x!==null&&Object.keys(x).length===0)&&(X+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var me=we(re);me?X+=me:X+=ce();var Ae;x===null?Ae="null":Array.isArray(x)?Ae="array":x!==void 0&&x.$$typeof===n?(Ae="<"+(Y(x.type)||"Unknown")+" />",X=" Did you accidentally export a JSX literal instead of a component?"):Ae=typeof x,C("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Ae,X)}var Je=st(x,M,N,re,oe);if(Je==null)return Je;if(te){var Tt=M.children;if(Tt!==void 0)if(q)if(Array.isArray(Tt)){for(var mo=0;mo<Tt.length;mo++)he(Tt[mo],x);Object.freeze&&Object.freeze(Tt)}else C("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else he(Tt,x)}return x===e.Fragment?Oe(Je):Re(Je),Je}}function We(x,M,N){return Ie(x,M,N,!0)}function Bt(x,M,N){return Ie(x,M,N,!1)}var Vt=Bt,Rt=We;e.jsx=Vt,e.jsxs=Rt}()}(jn)),jn}(function(e){process.env.NODE_ENV==="production"?e.exports=bd():e.exports=md()})(Ut);const Gn=Ut.exports.Fragment,T=Ut.exports.jsx,ee=Ut.exports.jsxs;function gd(e){return e}function $d(e,t){t===void 0&&(t=gd);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var s=t(i,r);return n.push(s),function(){n=n.filter(function(l){return l!==s})}},assignSyncMedium:function(i){for(r=!0;n.length;){var s=n;n=[],s.forEach(i)}n={push:function(l){return i(l)},filter:function(){return n}}},assignMedium:function(i){r=!0;var s=[];if(n.length){var l=n;n=[],l.forEach(i),s=n}var d=function(){var u=s;s=[],u.forEach(i)},f=function(){return Promise.resolve().then(d)};f(),n={push:function(u){s.push(u),f()},filter:function(u){return s=s.filter(u),n}}}};return o}function hd(e){e===void 0&&(e={});var t=$d(null);return t.options=Ce({async:!0,ssr:!1},e),t}var Io=function(e){var t=e.sideCar,n=ko(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return T(r,{...Ce({},n)})};Io.isSideCarExport=!0;function vd(e,t){return e.useMedium(t),Io}var Ao=hd(),Yn=function(){},jt=j.forwardRef(function(e,t){var n=j.useRef(null),r=j.useState({onScrollCapture:Yn,onWheelCapture:Yn,onTouchMoveCapture:Yn}),o=r[0],i=r[1],s=e.forwardProps,l=e.children,d=e.className,f=e.removeScrollBar,u=e.enabled,p=e.shards,$=e.sideCar,b=e.noIsolation,h=e.inert,m=e.allowPinchZoom,v=e.as,y=v===void 0?"div":v,_=ko(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),w=$,g=pd([n,t]),O=Ce(Ce({},_),o);return ee(Gn,{children:[u&&T(w,{sideCar:Ao,removeScrollBar:f,shards:p,noIsolation:b,inert:h,setCallbacks:i,allowPinchZoom:!!m,lockRef:n}),s?j.cloneElement(j.Children.only(l),Ce(Ce({},O),{ref:g})):T(y,{...Ce({},O,{className:d,ref:g}),children:l})]})});jt.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},jt.classNames={fullWidth:Kt,zeroRight:Ht};var _d=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function yd(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=_d();return t&&e.setAttribute("nonce",t),e}function xd(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function wd(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Ed=function(){var e=0,t=null;return{add:function(n){e==0&&(t=yd())&&(xd(t,n),wd(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Pd=function(){var e=Ed();return function(t,n){j.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Lo=function(){var e=Pd(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},Cd={left:0,top:0,right:0,gap:0},qn=function(e){return parseInt(e||"",10)||0},Td=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[qn(n),qn(r),qn(o)]},Sd=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Cd;var t=Td(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},kd=Lo(),Dd=function(e,t,n,r){var o=e.left,i=e.top,s=e.right,l=e.gap;return n===void 0&&(n="margin"),`
23
- .`.concat(cd,` {
24
- overflow: hidden `).concat(r,`;
25
- padding-right: `).concat(l,"px ").concat(r,`;
22
+ Check the top-level render call using <`+W+">.")}return z}}function Ut(x,z){{if(!x._store||x._store.validated||x.key!=null)return;x._store.validated=!0;var W=lt(z);if(Ne[W])return;Ne[W]=!0;var ae="";x&&x._owner&&x._owner!==Ve.current&&(ae=" It was passed a child from "+Z(x._owner.type)+"."),ke(x),O('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',W,ae),ke(null)}}function Te(x,z){{if(typeof x!="object")return;if(Array.isArray(x))for(var W=0;W<x.length;W++){var ae=x[W];ye(ae)&&Ut(ae,z)}else if(ye(x))x._store&&(x._store.validated=!0);else if(x){var he=D(x);if(typeof he=="function"&&he!==x.entries)for(var be=he.call(x),de;!(de=be.next()).done;)ye(de.value)&&Ut(de.value,z)}}}function Je(x){{var z=x.type;if(z==null||typeof z=="string")return;var W;if(typeof z=="function")W=z.propTypes;else if(typeof z=="object"&&(z.$$typeof===c||z.$$typeof===p))W=z.propTypes;else return;if(W){var ae=Z(z);E(W,x.props,"prop",ae,x)}else if(z.PropTypes!==void 0&&!je){je=!0;var he=Z(z);O("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",he||"Unknown")}typeof z.getDefaultProps=="function"&&!z.getDefaultProps.isReactClassApproved&&O("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Be(x){{for(var z=Object.keys(x.props),W=0;W<z.length;W++){var ae=z[W];if(ae!=="children"&&ae!=="key"){ke(x),O("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",ae),ke(null);break}}x.ref!==null&&(ke(x),O("Invalid attribute `ref` supplied to `React.Fragment`."),ke(null))}}function We(x,z,W,ae,he,be){{var de=G(x);if(!de){var se="";(x===void 0||typeof x=="object"&&x!==null&&Object.keys(x).length===0)&&(se+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Pe=Ae(he);Pe?se+=Pe:se+=_e();var Ue;x===null?Ue="null":Array.isArray(x)?Ue="array":x!==void 0&&x.$$typeof===r?(Ue="<"+(Z(x.type)||"Unknown")+" />",se=" Did you accidentally export a JSX literal instead of a component?"):Ue=typeof x,O("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Ue,se)}var ct=Ee(x,z,W,he,be);if(ct==null)return ct;if(de){var Kt=z.children;if(Kt!==void 0)if(ae)if(Array.isArray(Kt)){for(var ia=0;ia<Kt.length;ia++)Te(Kt[ia],x);Object.freeze&&Object.freeze(Kt)}else O("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Te(Kt,x)}return x===e.Fragment?Be(ct):Je(ct),ct}}function Ze(x,z,W){return We(x,z,W,!0)}function br(x,z,W){return We(x,z,W,!1)}var mr=br,vr=Ze;e.jsx=mr,e.jsxs=vr}()}(Nn)),Nn}(function(e){process.env.NODE_ENV==="production"?e.exports=uh():e.exports=dh()})(wr);const Mn=wr.exports.Fragment,T=wr.exports.jsx,ce=wr.exports.jsxs;function fh(e){return e}function ph(e,t){t===void 0&&(t=fh);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(i){var a=t(i,n);return r.push(a),function(){r=r.filter(function(s){return s!==a})}},assignSyncMedium:function(i){for(n=!0;r.length;){var a=r;r=[],a.forEach(i)}r={push:function(s){return i(s)},filter:function(){return r}}},assignMedium:function(i){n=!0;var a=[];if(r.length){var s=r;r=[],s.forEach(i),a=r}var c=function(){var d=a;a=[],d.forEach(i)},u=function(){return Promise.resolve().then(c)};u(),r={push:function(d){a.push(d),u()},filter:function(d){return a=a.filter(d),r}}}};return o}function hh(e){e===void 0&&(e={});var t=ph(null);return t.options=Le({async:!0,ssr:!1},e),t}var wa=function(e){var t=e.sideCar,r=_a(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return T(n,{...Le({},r)})};wa.isSideCarExport=!0;function bh(e,t){return e.useMedium(t),wa}var Ea=hh(),Ln=function(){},Er=H.forwardRef(function(e,t){var r=H.useRef(null),n=H.useState({onScrollCapture:Ln,onWheelCapture:Ln,onTouchMoveCapture:Ln}),o=n[0],i=n[1],a=e.forwardProps,s=e.children,c=e.className,u=e.removeScrollBar,d=e.enabled,p=e.shards,b=e.sideCar,h=e.noIsolation,v=e.inert,m=e.allowPinchZoom,y=e.as,$=y===void 0?"div":y,_=_a(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),w=b,g=lh([r,t]),D=Le(Le({},_),o);return ce(Mn,{children:[d&&T(w,{sideCar:Ea,removeScrollBar:u,shards:p,noIsolation:h,inert:v,setCallbacks:i,allowPinchZoom:!!m,lockRef:r}),a?H.cloneElement(H.Children.only(s),Le(Le({},D),{ref:g})):T($,{...Le({},D,{className:c,ref:g}),children:s})]})});Er.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Er.classNames={fullWidth:xr,zeroRight:$r};var mh=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function vh(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=mh();return t&&e.setAttribute("nonce",t),e}function gh(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function yh(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var _h=function(){var e=0,t=null;return{add:function(r){e==0&&(t=vh())&&(gh(t,r),yh(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},$h=function(){var e=_h();return function(t,r){H.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},Pa=function(){var e=$h(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},xh={left:0,top:0,right:0,gap:0},Fn=function(e){return parseInt(e||"",10)||0},wh=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Fn(r),Fn(n),Fn(o)]},Eh=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return xh;var t=wh(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},Ph=Pa(),Sh=function(e,t,r,n){var o=e.left,i=e.top,a=e.right,s=e.gap;return r===void 0&&(r="margin"),`
23
+ .`.concat(oh,` {
24
+ overflow: hidden `).concat(n,`;
25
+ padding-right: `).concat(s,"px ").concat(n,`;
26
26
  }
27
27
  body {
28
- overflow: hidden `).concat(r,`;
28
+ overflow: hidden `).concat(n,`;
29
29
  overscroll-behavior: contain;
30
- `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
30
+ `).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
31
31
  padding-left: `.concat(o,`px;
32
32
  padding-top: `).concat(i,`px;
33
- padding-right: `).concat(s,`px;
33
+ padding-right: `).concat(a,`px;
34
34
  margin-left:0;
35
35
  margin-top:0;
36
- margin-right: `).concat(l,"px ").concat(r,`;
37
- `),n==="padding"&&"padding-right: ".concat(l,"px ").concat(r,";")].filter(Boolean).join(""),`
36
+ margin-right: `).concat(s,"px ").concat(n,`;
37
+ `),r==="padding"&&"padding-right: ".concat(s,"px ").concat(n,";")].filter(Boolean).join(""),`
38
38
  }
39
39
 
40
- .`).concat(Ht,` {
41
- right: `).concat(l,"px ").concat(r,`;
40
+ .`).concat($r,` {
41
+ right: `).concat(s,"px ").concat(n,`;
42
42
  }
43
43
 
44
- .`).concat(Kt,` {
45
- margin-right: `).concat(l,"px ").concat(r,`;
44
+ .`).concat(xr,` {
45
+ margin-right: `).concat(s,"px ").concat(n,`;
46
46
  }
47
47
 
48
- .`).concat(Ht," .").concat(Ht,` {
49
- right: 0 `).concat(r,`;
48
+ .`).concat($r," .").concat($r,` {
49
+ right: 0 `).concat(n,`;
50
50
  }
51
51
 
52
- .`).concat(Kt," .").concat(Kt,` {
53
- margin-right: 0 `).concat(r,`;
52
+ .`).concat(xr," .").concat(xr,` {
53
+ margin-right: 0 `).concat(n,`;
54
54
  }
55
55
 
56
56
  body {
57
- `).concat(dd,": ").concat(l,`px;
57
+ `).concat(ih,": ").concat(s,`px;
58
58
  }
59
- `)},Od=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r,i=j.useMemo(function(){return Sd(o)},[o]);return T(kd,{styles:Dd(i,!t,o,n?"":"!important")})},Xn=!1;if(typeof window<"u")try{var Gt=Object.defineProperty({},"passive",{get:function(){return Xn=!0,!0}});window.addEventListener("test",Gt,Gt),window.removeEventListener("test",Gt,Gt)}catch{Xn=!1}var dt=Xn?{passive:!1}:!1,Id=function(e){return e.tagName==="TEXTAREA"},Mo=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Id(e)&&n[t]==="visible")},Ad=function(e){return Mo(e,"overflowY")},Ld=function(e){return Mo(e,"overflowX")},Fo=function(e,t){var n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var r=No(e,n);if(r){var o=zo(e,n),i=o[1],s=o[2];if(i>s)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},Md=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Fd=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},No=function(e,t){return e==="v"?Ad(t):Ld(t)},zo=function(e,t){return e==="v"?Md(t):Fd(t)},Nd=function(e,t){return e==="h"&&t==="rtl"?-1:1},zd=function(e,t,n,r,o){var i=Nd(e,window.getComputedStyle(t).direction),s=i*r,l=n.target,d=t.contains(l),f=!1,u=s>0,p=0,$=0;do{var b=zo(e,l),h=b[0],m=b[1],v=b[2],y=m-v-i*h;(h||y)&&No(e,l)&&(p+=y,$+=h),l=l.parentNode}while(!d&&l!==document.body||d&&(t.contains(l)||t===l));return(u&&(o&&p===0||!o&&s>p)||!u&&(o&&$===0||!o&&-s>$))&&(f=!0),f},Yt=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Bo=function(e){return[e.deltaX,e.deltaY]},Vo=function(e){return e&&"current"in e?e.current:e},Bd=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Vd=function(e){return`
59
+ `)},Ch=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n,i=H.useMemo(function(){return Eh(o)},[o]);return T(Ph,{styles:Sh(i,!t,o,r?"":"!important")})},Rn=!1;if(typeof window<"u")try{var Pr=Object.defineProperty({},"passive",{get:function(){return Rn=!0,!0}});window.addEventListener("test",Pr,Pr),window.removeEventListener("test",Pr,Pr)}catch{Rn=!1}var wt=Rn?{passive:!1}:!1,Th=function(e){return e.tagName==="TEXTAREA"},Sa=function(e,t){var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!Th(e)&&r[t]==="visible")},Oh=function(e){return Sa(e,"overflowY")},kh=function(e){return Sa(e,"overflowX")},Ca=function(e,t){var r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var n=Ta(e,r);if(n){var o=Oa(e,r),i=o[1],a=o[2];if(i>a)return!0}r=r.parentNode}while(r&&r!==document.body);return!1},Dh=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},Ih=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},Ta=function(e,t){return e==="v"?Oh(t):kh(t)},Oa=function(e,t){return e==="v"?Dh(t):Ih(t)},Ah=function(e,t){return e==="h"&&t==="rtl"?-1:1},Nh=function(e,t,r,n,o){var i=Ah(e,window.getComputedStyle(t).direction),a=i*n,s=r.target,c=t.contains(s),u=!1,d=a>0,p=0,b=0;do{var h=Oa(e,s),v=h[0],m=h[1],y=h[2],$=m-y-i*v;(v||$)&&Ta(e,s)&&(p+=$,b+=v),s=s.parentNode}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(d&&(o&&p===0||!o&&a>p)||!d&&(o&&b===0||!o&&-a>b))&&(u=!0),u},Sr=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},ka=function(e){return[e.deltaX,e.deltaY]},Da=function(e){return e&&"current"in e?e.current:e},Mh=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Lh=function(e){return`
60
60
  .block-interactivity-`.concat(e,` {pointer-events: none;}
61
61
  .allow-interactivity-`).concat(e,` {pointer-events: all;}
62
- `)},Rd=0,ut=[];function Wd(e){var t=j.useRef([]),n=j.useRef([0,0]),r=j.useRef(),o=j.useState(Rd++)[0],i=j.useState(function(){return Lo()})[0],s=j.useRef(e);j.useEffect(function(){s.current=e},[e]),j.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var m=ld([e.lockRef.current],(e.shards||[]).map(Vo),!0).filter(Boolean);return m.forEach(function(v){return v.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),m.forEach(function(v){return v.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var l=j.useCallback(function(m,v){if("touches"in m&&m.touches.length===2)return!s.current.allowPinchZoom;var y=Yt(m),_=n.current,w="deltaX"in m?m.deltaX:_[0]-y[0],g="deltaY"in m?m.deltaY:_[1]-y[1],O,L=m.target,C=Math.abs(w)>Math.abs(g)?"h":"v";if("touches"in m&&C==="h"&&L.type==="range")return!1;var A=Fo(C,L);if(!A)return!0;if(A?O=C:(O=C==="v"?"h":"v",A=Fo(C,L)),!A)return!1;if(!r.current&&"changedTouches"in m&&(w||g)&&(r.current=O),!O)return!0;var F=r.current||O;return zd(F,v,m,F==="h"?w:g,!0)},[]),d=j.useCallback(function(m){var v=m;if(!(!ut.length||ut[ut.length-1]!==i)){var y="deltaY"in v?Bo(v):Yt(v),_=t.current.filter(function(O){return O.name===v.type&&O.target===v.target&&Bd(O.delta,y)})[0];if(_&&_.should){v.cancelable&&v.preventDefault();return}if(!_){var w=(s.current.shards||[]).map(Vo).filter(Boolean).filter(function(O){return O.contains(v.target)}),g=w.length>0?l(v,w[0]):!s.current.noIsolation;g&&v.cancelable&&v.preventDefault()}}},[]),f=j.useCallback(function(m,v,y,_){var w={name:m,delta:v,target:y,should:_};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(g){return g!==w})},1)},[]),u=j.useCallback(function(m){n.current=Yt(m),r.current=void 0},[]),p=j.useCallback(function(m){f(m.type,Bo(m),m.target,l(m,e.lockRef.current))},[]),$=j.useCallback(function(m){f(m.type,Yt(m),m.target,l(m,e.lockRef.current))},[]);j.useEffect(function(){return ut.push(i),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:$}),document.addEventListener("wheel",d,dt),document.addEventListener("touchmove",d,dt),document.addEventListener("touchstart",u,dt),function(){ut=ut.filter(function(m){return m!==i}),document.removeEventListener("wheel",d,dt),document.removeEventListener("touchmove",d,dt),document.removeEventListener("touchstart",u,dt)}},[]);var b=e.removeScrollBar,h=e.inert;return ee(Gn,{children:[h?T(i,{styles:Vd(o)}):null,b?T(Od,{gapMode:"margin"}):null]})}const Hd=vd(Ao,Wd);var Ro=j.forwardRef(function(e,t){return T(jt,{...Ce({},e,{ref:t,sideCar:Hd})})});Ro.classNames=jt.classNames;const Zn=Ro;var Kd=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},ft=new WeakMap,qt=new WeakMap,Xt={},Jn=0,Wo=function(e){return e&&(e.host||Wo(e.parentNode))},Ud=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Wo(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return Boolean(n)})},jd=function(e,t,n,r){var o=Ud(t,Array.isArray(e)?e:[e]);Xt[n]||(Xt[n]=new WeakMap);var i=Xt[n],s=[],l=new Set,d=new Set(o),f=function(p){!p||l.has(p)||(l.add(p),f(p.parentNode))};o.forEach(f);var u=function(p){!p||d.has(p)||Array.prototype.forEach.call(p.children,function($){if(l.has($))u($);else{var b=$.getAttribute(r),h=b!==null&&b!=="false",m=(ft.get($)||0)+1,v=(i.get($)||0)+1;ft.set($,m),i.set($,v),s.push($),m===1&&h&&qt.set($,!0),v===1&&$.setAttribute(n,"true"),h||$.setAttribute(r,"true")}})};return u(t),l.clear(),Jn++,function(){s.forEach(function(p){var $=ft.get(p)-1,b=i.get(p)-1;ft.set(p,$),i.set(p,b),$||(qt.has(p)||p.removeAttribute(r),qt.delete(p)),b||p.removeAttribute(n)}),Jn--,Jn||(ft=new WeakMap,ft=new WeakMap,qt=new WeakMap,Xt={})}},Qn=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||Kd(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),jd(r,o,n,"aria-hidden")):function(){return null}};const Ho="Dialog",[Ko,Uo]=ge(Ho),[Gd,xe]=Ko(Ho),Yd=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:s=!0}=e,l=a.useRef(null),d=a.useRef(null),[f=!1,u]=Pe({prop:r,defaultProp:o,onChange:i});return a.createElement(Gd,{scope:t,triggerRef:l,contentRef:d,contentId:Le(),titleId:Le(),descriptionId:Le(),open:f,onOpenChange:u,onOpenToggle:a.useCallback(()=>u(p=>!p),[u]),modal:s},n)},qd="DialogTrigger",Xd=a.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=xe(qd,n),i=J(t,o.triggerRef);return a.createElement(R.button,D({type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":tr(o.open)},r,{ref:i,onClick:B(e.onClick,o.onOpenToggle)}))}),jo="DialogPortal",[Zd,Go]=Ko(jo,{forceMount:void 0}),Jd=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=xe(jo,t);return a.createElement(Zd,{scope:t,forceMount:n},a.Children.map(r,s=>a.createElement(ye,{present:n||i.open},a.createElement(kt,{asChild:!0,container:o},s))))},er="DialogOverlay",Qd=a.forwardRef((e,t)=>{const n=Go(er,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=xe(er,e.__scopeDialog);return i.modal?a.createElement(ye,{present:r||i.open},a.createElement(eu,D({},o,{ref:t}))):null}),eu=a.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=xe(er,n);return a.createElement(Zn,{as:et,allowPinchZoom:!0,shards:[o.contentRef]},a.createElement(R.div,D({"data-state":tr(o.open)},r,{ref:t,style:{pointerEvents:"auto",...r.style}})))}),pt="DialogContent",tu=a.forwardRef((e,t)=>{const n=Go(pt,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=xe(pt,e.__scopeDialog);return a.createElement(ye,{present:r||i.open},i.modal?a.createElement(nu,D({},o,{ref:t})):a.createElement(ru,D({},o,{ref:t})))}),nu=a.forwardRef((e,t)=>{const n=xe(pt,e.__scopeDialog),r=a.useRef(null),o=J(t,n.contentRef,r);return a.useEffect(()=>{const i=r.current;if(i)return Qn(i)},[]),a.createElement(Yo,D({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:B(e.onCloseAutoFocus,i=>{var s;i.preventDefault(),(s=n.triggerRef.current)===null||s===void 0||s.focus()}),onPointerDownOutside:B(e.onPointerDownOutside,i=>{const s=i.detail.originalEvent,l=s.button===0&&s.ctrlKey===!0;(s.button===2||l)&&i.preventDefault()}),onFocusOutside:B(e.onFocusOutside,i=>i.preventDefault())}))}),ru=a.forwardRef((e,t)=>{const n=xe(pt,e.__scopeDialog),r=a.useRef(!1);return a.createElement(Yo,D({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{var i;if((i=e.onCloseAutoFocus)===null||i===void 0||i.call(e,o),!o.defaultPrevented){var s;r.current||(s=n.triggerRef.current)===null||s===void 0||s.focus(),o.preventDefault()}r.current=!1},onInteractOutside:o=>{var i,s;(i=e.onInteractOutside)===null||i===void 0||i.call(e,o),o.defaultPrevented||(r.current=!0);const l=o.target;((s=n.triggerRef.current)===null||s===void 0?void 0:s.contains(l))&&o.preventDefault()}}))}),Yo=a.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...s}=e,l=xe(pt,n),d=a.useRef(null),f=J(t,d);return Un(),a.createElement(a.Fragment,null,a.createElement(Hn,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i},a.createElement(St,D({role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":tr(l.open)},s,{ref:f,onDismiss:()=>l.onOpenChange(!1)}))),!1)}),qo="DialogTitle",ou=a.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=xe(qo,n);return a.createElement(R.h2,D({id:o.titleId},r,{ref:t}))}),au="DialogDescription",iu=a.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=xe(au,n);return a.createElement(R.p,D({id:o.descriptionId},r,{ref:t}))}),su="DialogClose",lu=a.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=xe(su,n);return a.createElement(R.button,D({type:"button"},r,{ref:t,onClick:B(e.onClick,()=>o.onOpenChange(!1))}))});function tr(e){return e?"open":"closed"}const cu="DialogTitleWarning",[du,Ah]=zc(cu,{contentName:pt,titleName:qo,docsSlug:"dialog"}),Xo=Yd,Zo=Xd,Jo=Jd,Qo=Qd,ea=tu,ta=ou,na=iu,nr=lu,uu="AlertDialog",[fu,Lh]=ge(uu,[Uo]),Me=Uo(),pu=e=>{const{__scopeAlertDialog:t,...n}=e,r=Me(t);return a.createElement(Xo,D({},r,n,{modal:!0}))},bu=a.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=Me(n);return a.createElement(Zo,D({},o,r,{ref:t}))}),mu=e=>{const{__scopeAlertDialog:t,...n}=e,r=Me(t);return a.createElement(Jo,D({},r,n))},gu=a.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=Me(n);return a.createElement(Qo,D({},o,r,{ref:t}))}),ra="AlertDialogContent",[$u,hu]=fu(ra),vu=a.forwardRef((e,t)=>{const{__scopeAlertDialog:n,children:r,...o}=e,i=Me(n),s=a.useRef(null),l=J(t,s),d=a.useRef(null);return a.createElement(du,{contentName:ra,titleName:_u,docsSlug:"alert-dialog"},a.createElement($u,{scope:n,cancelRef:d},a.createElement(ea,D({role:"alertdialog"},i,o,{ref:l,onOpenAutoFocus:B(o.onOpenAutoFocus,f=>{var u;f.preventDefault(),(u=d.current)===null||u===void 0||u.focus({preventScroll:!0})}),onPointerDownOutside:f=>f.preventDefault(),onInteractOutside:f=>f.preventDefault()}),a.createElement(Bn,null,r),!1)))}),_u="AlertDialogTitle",yu=a.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=Me(n);return a.createElement(ta,D({},o,r,{ref:t}))}),xu=a.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=Me(n);return a.createElement(na,D({},o,r,{ref:t}))}),wu=a.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=Me(n);return a.createElement(nr,D({},o,r,{ref:t}))}),Eu="AlertDialogCancel",Pu=a.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,{cancelRef:o}=hu(Eu,n),i=Me(n),s=J(t,o);return a.createElement(nr,D({},i,r,{ref:s}))}),Cu=pu,Tu=bu,Su=mu,ku=gu,Du=vu,Ou=wu,Iu=Pu,Au=yu,Lu=xu,c={border_radius_0:"0",border_radius_100:"1px",border_radius_200:"2px",border_radius_400:"4px",border_radius_800:"8px",border_radius_pill:"9999em",border_radius_circle:"50%",border_width_0:"0",border_width_100:"1px",border_width_200:"2px",color_gray_4:"hsl(0, 0%, 4%)",color_gray_8:"hsl(0, 0%, 8%)",color_gray_10:"hsl(0, 0%, 10%)",color_gray_12:"hsl(0, 0%, 12%)",color_gray_14:"hsl(0, 0%, 14%)",color_gray_16:"hsl(0, 0%, 16%)",color_gray_24:"hsl(0, 0%, 24%)",color_gray_32:"hsl(0, 0%, 32%)",color_gray_56:"hsl(0, 0%, 56%)",color_gray_64:"hsl(0, 0%, 64%)",color_gray_84:"hsl(0, 0%, 84%)",color_gray_94:"hsl(0, 0% 94%)",color_gray_96:"hsl(0, 0%, 96%)",color_white:"hsl(0, 0%, 100%)",color_black:"hsl(0, 0%, 0%)",color_background_white_standard:"hsl(0, 0%, 100%)",color_background_white_strong:"hsl(0, 0% 94%)",color_background_white_weak:"hsl(0, 0%, 96%)",color_background_black_standard:"hsl(0, 0%, 16%)",color_background_black_strong:"hsl(0, 0%, 8%)",color_background_black_weak:"hsl(0, 0%, 12%)",color_background_sentiment_negative:"hsl(11, 68%, 55%)",color_background_sentiment_positive:"hsl(54, 63% 52%)",color_background_sentiment_notice:"hsl(29, 74% 53%)",color_background_sentiment_neutral:"hsl(0, 0%, 10%)",color_divider_standard:"hsla(0, 0%, 0%, 12%)",color_divider_strong:"hsla(0, 0%, 0%, 16%)",color_divider_weak:"hsla(0, 0%, 0%, 8%)",color_divider_inverse_standard:"hsla(0, 0%, 1000%, 32%)",color_divider_inverse_strong:"hsla(0, 0%, 100%, 48%)",color_divider_inverse_weak:"hsla(0, 0%, 100%, 24%)",color_text_standard:"hsl(0, 0%, 32%)",color_text_strong:"hsl(0, 0%, 0%)",color_text_weak:"hsl(0, 0%, 56%)",color_text_white_standard:"hsl(0, 0%, 84%)",color_text_white_strong:"hsl(0, 0%, 100%)",color_text_white_weak:"hsl(0, 0%, 64%)",color_text_sentiment_negative:"hsl(11, 68%, 55%)",color_text_sentiment_positive:"hsl(54, 63%, 52%)",color_text_sentiment_notice:"hsl(29, 67%, 47%)",color_text_sentiment_neutral:"hsl(0, 0%, 24%)",color_fill_primary_enabled:"hsla(0, 0%, 8%, 1)",color_fill_primary_hover:"hsl(210, 5%, 16%)",color_fill_primary_pressed:"hsl(210, 3%, 28%)",color_fill_primary_disabled:"hsla(0, 0%, 8%, 0.2)",color_fill_secondary_enabled:"hsla(0, 0%, 0%, 0.06)",color_fill_secondary_hover:"hsla(0, 0%, 0%, 0.12)",color_fill_secondary_pressed:"hsla(0, 0%, 0%, 0.2)",color_fill_secondary_disabled:"hsla(0, 0%, 88%, 0.5)",color_fill_inverse_enabled:"hsl(0, 0%, 100%)",color_fill_inverse_hover:"hsl(0, 0%, 94%)",color_fill_inverse_pressed:"hsl(0, 0%, 90%)",color_fill_inverse_disabled:"hsla(0, 0%, 98%, 0.4)",color_fill_danger_enabled:"hsl(11, 68%, 55%)",color_fill_danger_hover:"hsl(11, 57%, 51%)",color_fill_danger_pressed:"hsl(11, 55%, 48%)",color_fill_danger_disabled:"hsla(11, 68%, 55%, 0.2)",color_outline_primary_danger_enabled:"hsla(11, 68%, 55%, 0.24)",color_outline_primary_danger_hover:"hsla(11, 68%, 55%, 0.48)",color_outline_primary_danger_pressed:"hsla(11, 68%, 55%, 0.72)",color_outline_primary_danger_disabled:"hsla(11, 68%, 55%, 0.16)",color_outline_primary_danger_selected_enabled:"hsla(11, 68%, 55%, 0.96)",color_outline_primary_danger_selected_hover:"hsla(11, 68%, 55%, 0.96)",color_outline_primary_danger_selected_pressed:"hsla(11, 68%, 55%, 0.96)",color_outline_secondary_enabled:"hsla(0, 0%, 0%, 0.16)",color_outline_secondary_hover:"hsla(0, 0%, 0%, 0.32)",color_outline_secondary_pressed:"hsla(0, 0%, 0%, 0.48)",color_outline_secondary_disabled:"hsla(0, 0%, 14%, 0.16)",color_outline_secondary_selected_enabled:"hsla(0, 0%, 0%, 0.6)",color_outline_secondary_selected_hover:"hsla(0, 0%, 0%, 0.72)",color_outline_secondary_selected_pressed:"hsla(0, 0%, 0%, 0.76)",color_outline_inverse_enabled:"hsla(0, 0%, 100%, 0.32)",color_outline_inverse_hover:"hsla(0, 0%, 100%, 0.48)",color_outline_inverse_pressed:"hsla(0, 0%, 100%, 0.56)",color_outline_inverse_disabled:"hsla(0, 0%, 100%, 0.2)",color_outline_inverse_selected_enabled:"hsla(0, 0%, 100%, 0.6)",color_outline_inverse_selected_hover:"hsla(0, 0%, 100%, 0.72)",color_outline_inverse_selected_pressed:"hsla(0, 0%, 100%, 0.8)",color_outline_danger_enabled:"hsl(11, 68%, 55%)",color_outline_danger_hover:"hsla(11, 68%, 55%, 0.9)",color_outline_danger_pressed:"hsla(11, 68%, 55%, 0.9)",color_outline_danger_disabled:"hsla(11, 68%, 55%, 0.32)",color_overlay_secondary_enabled:"hsl(0, 0%, 100%)",color_overlay_secondary_hover:"hsl(0, 0%, 97%)",color_overlay_secondary_pressed:"hsl(0, 0%, 92%)",color_overlay_secondary_selected_enabled:"hsl(0, 0%, 94%)",color_overlay_secondary_selected_hover:"hsl(0, 0%, 91%)",color_overlay_secondary_selected_pressed:"hsl(0, 0%, 88%)",color_overlay_inverse_enabled:"hsl(0, 0%, 0%)",color_overlay_inverse_hover:"hsl(0, 0%, 4%)",color_overlay_inverse_pressed:"hsl(0, 0%, 12%)",color_overlay_inverse_selected_enabled:"hsl(0, 0%, 10%)",color_overlay_inverse_selected_hover:"hsl(0, 0%, 16%)",color_overlay_inverse_selected_pressed:"hsl(0, 0%, 24%)",elevation_static_low:"0px 1px 1px rgba(0, 0, 0, 0.07), 0px 1px 2px rgba(0, 0, 0, 0.08), 0px 2px 2px rgba(0, 0, 0, 0.1), 0px 0px 8px rgba(0, 0, 0, 0.05)",elevation_static_medium:"0px 1px 1px rgba(0, 0, 0, 0.05), 0px 2px 2px rgba(0, 0, 0, 0.05), 0px 5px 5px rgba(0, 0, 0, 0.05), 0px 10px 10px rgba(0, 0, 0, 0.05), 0px 0px 8px rgba(0, 0, 0, 0.05)",elevation_static_high:"0px 2px 4px rgba(0, 0, 0, 0.03), 0px 6px 6px rgba(0, 0, 0, 0.03), 0px 15px 20px rgba(0, 0, 0, 0.03), 0px 30px 40px rgba(0, 0, 0, 0.03), 0px 40px 70px rgba(0, 0, 0, 0.03), 0px 4px 30px rgba(0, 0, 0, 0.03), 0px 0px 8px rgba(0, 0, 0, 0.03)",elevation_interactive_down:"inset 0px 1000px 250px rgba(0, 0, 0, 0.04)",elevation_interactive_low:"0px 1px 1px rgba(0, 0, 0, 0.1), 0px 1px 2px rgba(0, 0, 0, 0.1), 0px 0px 2px rgba(0, 0, 0, 0.07)",elevation_interactive_medium:"0px 1px 1px rgba(0, 0, 0, 0.1), 0px 2px 2px rgba(0, 0, 0, 0.05), 0px 2px 4px rgba(0, 0, 0, 0.07), 0px 1px 4px rgba(0, 0, 0, 0.08)",elevation_interactive_high:"0px 2px 4px rgba(0, 0, 0, 0.05), 0px 3px 5px rgba(0, 0, 0, 0.05), 0px 4px 6px rgba(0, 0, 0, 0.05), 0px 4px 20px rgba(0, 0, 0, 0.05)",z_index_auto:"auto",z_index_below:"-1",z_index_default:"1",z_index_above:"10",z_index_overlay:"1000",font_family_inter:"'Inter', -apple-system, Helvetica, sans-serif",font_family_sans:"'Inter', -apple-system, Helvetica, sans-serif",font_family_inter_display:"'Inter', -apple-system, Helvetica, sans-serif",font_family_monospace:"'SFMono-Regular', Monaco, Consolas, 'Lucida Console', monospace",feature_settings_number:"'tnum' on, 'lnum' on, 'ss01' on",letter_spacing_tight:"-0.006em",letter_spacing_tighter:"-0.01em",letter_spacing_heading_large:"-0.018em",letter_spacing_heading_medium:"-0.016em",letter_spacing_heading_small:"-0.014em",letter_spacing_title_large:"-0.014em",letter_spacing_title_medium:"-0.012em",letter_spacing_title_small:"-0.01em",letter_spacing_title_xsmall:"-0.008em",letter_spacing_label_large:"-0.01em",letter_spacing_label_medium:"normal",letter_spacing_label_small:"-0.006em",letter_spacing_body_large:"-0.01em",letter_spacing_body_medium:"-0.006em",letter_spacing_body_small:"normal",letter_spacing_number_large:"-0.05em",letter_spacing_number_medium:"-0.05em",letter_spacing_number_small:"-0.04em",letter_spacing_number_xsmall:"-0.05em",letter_spacing_caption_medium:"0.01em",letter_spacing_caption_small:"0.02em",line_height_111:1.11,line_height_114:1.14,line_height_129:1.29,line_height_133:1.33,line_height_143:1.43,line_height_title_large:1.06,line_height_title_medium:1.08,line_height_title_small:1.1,line_height_title_xsmall:1.11,line_height_label_large:1.11,line_height_label_medium:1.12,line_height_label_small:1.14,line_height_body_large:1.25,line_height_body_medium:1.29,line_height_body_small:1.33,line_height_number_large:1.25,line_height_number_medium:1.14,line_height_number_small:1.17,line_height_number_xsmall:1.2,line_height_caption_medium:1.17,line_height_caption_small:1.2,font_size_50:"0.75rem",font_size_100:"0.875rem",font_size_200:"1rem",font_size_300:"1.125rem",font_size_400:"1.25rem",font_size_500:"1.5rem",font_size_600:"2rem",font_size_700:"2.75rem",font_size_800:"3.5rem",font_size_root:"16px",font_size_heading_large:"4.5rem",font_size_heading_medium:"3.5rem",font_size_heading_small:"3rem",font_size_title_large:"2.125rem",font_size_title_medium:"1.5rem",font_size_title_small:"1.25rem",font_size_title_xsmall:"1.125rem",font_size_label_large:"1.125rem",font_size_label_medium:"16px",font_size_label_small:"0.875rem",font_size_body_large:"16px",font_size_body_medium:"0.875rem",font_size_body_small:"0.75rem",font_size_number_large:"16px",font_size_number_medium:"0.875rem",font_size_number_small:"0.75rem",font_size_number_xsmall:"0.625rem",font_size_caption_medium:"0.875rem",font_size_caption_small:"0.75rem",font_weight_light:"300",font_weight_normal:"400",font_weight_medium:"500",font_weight_semibold:"600",media_query_xs:"448px",media_query_sm:"720px",media_query_md:"960px",media_query_lg:"1200px",media_query_xl:"1440px",sizing_0:"0rem",sizing_100:"0.25rem",sizing_200:"0.5rem",sizing_300:"0.75rem",sizing_350:"0.875rem",sizing_400:"1rem",sizing_450:"1.25rem",sizing_500:"1.5rem",sizing_550:"1.75rem",sizing_600:"2rem",sizing_650:"2.5rem",sizing_700:"3rem",sizing_750:"3.5rem",sizing_800:"4rem",sizing_850:"6rem",sizing_900:"10rem",sizing_1000:"20rem",sizing_1100:"28rem",sizing_1150:"35rem",sizing_1200:"45rem",sizing_1300:"60rem",sizing_1350:"66rem",sizing_1400:"75rem",sizing_1500:"90rem",spacing_0:"0rem",spacing_100:"0.25rem",spacing_200:"0.5rem",spacing_300:"0.75rem",spacing_400:"1rem",spacing_450:"1.25rem",spacing_500:"1.5rem",spacing_550:"1.75rem",spacing_600:"2rem",spacing_650:"2.5rem",spacing_700:"3rem",spacing_750:"3.5rem",spacing_800:"4rem",spacing_850:"6rem",spacing_900:"10rem",transition_duration_75:"75ms",transition_duration_100:"100ms",transition_duration_150:"150ms",transition_duration_200:"200ms",transition_duration_300:"300ms",transition_property_color:"color, background-color, border-color, text-decoration-color, fill, stroke;",transition_property_all:"all",transition_property_opacity:"opacity",transition_property_box_shadow:"box-shadow",transition_property_transform:"transform",transition_timing_function_ease_in:"cubic-bezier(0.4, 0, 1, 1)",transition_timing_function_ease_out:"cubic-bezier(0, 0, 0.2, 1)",transition_timing_function_ease_in_out:"cubic-bezier(0.4, 0, 0.2, 1)"},rr=lt.keyframes`
62
+ `)},Fh=0,Et=[];function Rh(e){var t=H.useRef([]),r=H.useRef([0,0]),n=H.useRef(),o=H.useState(Fh++)[0],i=H.useState(function(){return Pa()})[0],a=H.useRef(e);H.useEffect(function(){a.current=e},[e]),H.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var m=nh([e.lockRef.current],(e.shards||[]).map(Da),!0).filter(Boolean);return m.forEach(function(y){return y.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),m.forEach(function(y){return y.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=H.useCallback(function(m,y){if("touches"in m&&m.touches.length===2)return!a.current.allowPinchZoom;var $=Sr(m),_=r.current,w="deltaX"in m?m.deltaX:_[0]-$[0],g="deltaY"in m?m.deltaY:_[1]-$[1],D,M=m.target,O=Math.abs(w)>Math.abs(g)?"h":"v";if("touches"in m&&O==="h"&&M.type==="range")return!1;var N=Ca(O,M);if(!N)return!0;if(N?D=O:(D=O==="v"?"h":"v",N=Ca(O,M)),!N)return!1;if(!n.current&&"changedTouches"in m&&(w||g)&&(n.current=D),!D)return!0;var F=n.current||D;return Nh(F,y,m,F==="h"?w:g,!0)},[]),c=H.useCallback(function(m){var y=m;if(!(!Et.length||Et[Et.length-1]!==i)){var $="deltaY"in y?ka(y):Sr(y),_=t.current.filter(function(D){return D.name===y.type&&D.target===y.target&&Mh(D.delta,$)})[0];if(_&&_.should){y.cancelable&&y.preventDefault();return}if(!_){var w=(a.current.shards||[]).map(Da).filter(Boolean).filter(function(D){return D.contains(y.target)}),g=w.length>0?s(y,w[0]):!a.current.noIsolation;g&&y.cancelable&&y.preventDefault()}}},[]),u=H.useCallback(function(m,y,$,_){var w={name:m,delta:y,target:$,should:_};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(g){return g!==w})},1)},[]),d=H.useCallback(function(m){r.current=Sr(m),n.current=void 0},[]),p=H.useCallback(function(m){u(m.type,ka(m),m.target,s(m,e.lockRef.current))},[]),b=H.useCallback(function(m){u(m.type,Sr(m),m.target,s(m,e.lockRef.current))},[]);H.useEffect(function(){return Et.push(i),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:b}),document.addEventListener("wheel",c,wt),document.addEventListener("touchmove",c,wt),document.addEventListener("touchstart",d,wt),function(){Et=Et.filter(function(m){return m!==i}),document.removeEventListener("wheel",c,wt),document.removeEventListener("touchmove",c,wt),document.removeEventListener("touchstart",d,wt)}},[]);var h=e.removeScrollBar,v=e.inert;return ce(Mn,{children:[v?T(i,{styles:Lh(o)}):null,h?T(Ch,{gapMode:"margin"}):null]})}const zh=bh(Ea,Rh);var Ia=H.forwardRef(function(e,t){return T(Er,{...Le({},e,{ref:t,sideCar:zh})})});Ia.classNames=Er.classNames;const zn=Ia;var Vh=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Pt=new WeakMap,Cr=new WeakMap,Tr={},Vn=0,Aa=function(e){return e&&(e.host||Aa(e.parentNode))},jh=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=Aa(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return Boolean(r)})},Bh=function(e,t,r,n){var o=jh(t,Array.isArray(e)?e:[e]);Tr[r]||(Tr[r]=new WeakMap);var i=Tr[r],a=[],s=new Set,c=new Set(o),u=function(p){!p||s.has(p)||(s.add(p),u(p.parentNode))};o.forEach(u);var d=function(p){!p||c.has(p)||Array.prototype.forEach.call(p.children,function(b){if(s.has(b))d(b);else{var h=b.getAttribute(n),v=h!==null&&h!=="false",m=(Pt.get(b)||0)+1,y=(i.get(b)||0)+1;Pt.set(b,m),i.set(b,y),a.push(b),m===1&&v&&Cr.set(b,!0),y===1&&b.setAttribute(r,"true"),v||b.setAttribute(n,"true")}})};return d(t),s.clear(),Vn++,function(){a.forEach(function(p){var b=Pt.get(p)-1,h=i.get(p)-1;Pt.set(p,b),i.set(p,h),b||(Cr.has(p)||p.removeAttribute(n),Cr.delete(p)),h||p.removeAttribute(r)}),Vn--,Vn||(Pt=new WeakMap,Pt=new WeakMap,Cr=new WeakMap,Tr={})}},jn=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=t||Vh(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live]"))),Bh(n,o,r,"aria-hidden")):function(){return null}};const Na="Dialog",[Ma,La]=Se(Na),[Wh,Ie]=Ma(Na),Uh=e=>{const{__scopeDialog:t,children:r,open:n,defaultOpen:o,onOpenChange:i,modal:a=!0}=e,s=l.useRef(null),c=l.useRef(null),[u=!1,d]=Me({prop:n,defaultProp:o,onChange:i});return l.createElement(Wh,{scope:t,triggerRef:s,contentRef:c,contentId:Ke(),titleId:Ke(),descriptionId:Ke(),open:u,onOpenChange:d,onOpenToggle:l.useCallback(()=>d(p=>!p),[d]),modal:a},r)},Kh="DialogTrigger",Hh=l.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ie(Kh,r),i=le(t,o.triggerRef);return l.createElement(Q.button,C({type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Wn(o.open)},n,{ref:i,onClick:K(e.onClick,o.onOpenToggle)}))}),Fa="DialogPortal",[Gh,Ra]=Ma(Fa,{forceMount:void 0}),qh=e=>{const{__scopeDialog:t,forceMount:r,children:n,container:o}=e,i=Ie(Fa,t);return l.createElement(Gh,{scope:t,forceMount:r},l.Children.map(n,a=>l.createElement(De,{present:r||i.open},l.createElement(Gt,{asChild:!0,container:o},a))))},Bn="DialogOverlay",Yh=l.forwardRef((e,t)=>{const r=Ra(Bn,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,i=Ie(Bn,e.__scopeDialog);return i.modal?l.createElement(De,{present:n||i.open},l.createElement(Xh,C({},o,{ref:t}))):null}),Xh=l.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ie(Bn,r);return l.createElement(zn,{as:dt,allowPinchZoom:!0,shards:[o.contentRef]},l.createElement(Q.div,C({"data-state":Wn(o.open)},n,{ref:t,style:{pointerEvents:"auto",...n.style}})))}),St="DialogContent",Jh=l.forwardRef((e,t)=>{const r=Ra(St,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,i=Ie(St,e.__scopeDialog);return l.createElement(De,{present:n||i.open},i.modal?l.createElement(Zh,C({},o,{ref:t})):l.createElement(Qh,C({},o,{ref:t})))}),Zh=l.forwardRef((e,t)=>{const r=Ie(St,e.__scopeDialog),n=l.useRef(null),o=le(t,r.contentRef,n);return l.useEffect(()=>{const i=n.current;if(i)return jn(i)},[]),l.createElement(za,C({},e,{ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:K(e.onCloseAutoFocus,i=>{var a;i.preventDefault(),(a=r.triggerRef.current)===null||a===void 0||a.focus()}),onPointerDownOutside:K(e.onPointerDownOutside,i=>{const a=i.detail.originalEvent,s=a.button===0&&a.ctrlKey===!0;(a.button===2||s)&&i.preventDefault()}),onFocusOutside:K(e.onFocusOutside,i=>i.preventDefault())}))}),Qh=l.forwardRef((e,t)=>{const r=Ie(St,e.__scopeDialog),n=l.useRef(!1);return l.createElement(za,C({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{var i;if((i=e.onCloseAutoFocus)===null||i===void 0||i.call(e,o),!o.defaultPrevented){var a;n.current||(a=r.triggerRef.current)===null||a===void 0||a.focus(),o.preventDefault()}n.current=!1},onInteractOutside:o=>{var i,a;(i=e.onInteractOutside)===null||i===void 0||i.call(e,o),o.defaultPrevented||(n.current=!0);const s=o.target;((a=r.triggerRef.current)===null||a===void 0?void 0:a.contains(s))&&o.preventDefault()}}))}),za=l.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:i,...a}=e,s=Ie(St,r),c=l.useRef(null),u=le(t,c);return An(),l.createElement(l.Fragment,null,l.createElement(Dn,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:i},l.createElement(Ht,C({role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":Wn(s.open)},a,{ref:u,onDismiss:()=>s.onOpenChange(!1)}))),!1)}),Va="DialogTitle",e0=l.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ie(Va,r);return l.createElement(Q.h2,C({id:o.titleId},n,{ref:t}))}),t0="DialogDescription",r0=l.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ie(t0,r);return l.createElement(Q.p,C({id:o.descriptionId},n,{ref:t}))}),n0="DialogClose",o0=l.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=Ie(n0,r);return l.createElement(Q.button,C({type:"button"},n,{ref:t,onClick:K(e.onClick,()=>o.onOpenChange(!1))}))});function Wn(e){return e?"open":"closed"}const i0="DialogTitleWarning",[a0,_E]=Ap(i0,{contentName:St,titleName:Va,docsSlug:"dialog"}),ja=Uh,Ba=Hh,Wa=qh,Ua=Yh,Ka=Jh,Ha=e0,Ga=r0,Un=o0,s0="AlertDialog",[l0,$E]=Se(s0,[La]),He=La(),c0=e=>{const{__scopeAlertDialog:t,...r}=e,n=He(t);return l.createElement(ja,C({},n,r,{modal:!0}))},u0=l.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,o=He(r);return l.createElement(Ba,C({},o,n,{ref:t}))}),d0=e=>{const{__scopeAlertDialog:t,...r}=e,n=He(t);return l.createElement(Wa,C({},n,r))},f0=l.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,o=He(r);return l.createElement(Ua,C({},o,n,{ref:t}))}),qa="AlertDialogContent",[p0,h0]=l0(qa),b0=l.forwardRef((e,t)=>{const{__scopeAlertDialog:r,children:n,...o}=e,i=He(r),a=l.useRef(null),s=le(t,a),c=l.useRef(null);return l.createElement(a0,{contentName:qa,titleName:m0,docsSlug:"alert-dialog"},l.createElement(p0,{scope:r,cancelRef:c},l.createElement(Ka,C({role:"alertdialog"},i,o,{ref:s,onOpenAutoFocus:K(o.onOpenAutoFocus,u=>{var d;u.preventDefault(),(d=c.current)===null||d===void 0||d.focus({preventScroll:!0})}),onPointerDownOutside:u=>u.preventDefault(),onInteractOutside:u=>u.preventDefault()}),l.createElement(Cn,null,n),!1)))}),m0="AlertDialogTitle",v0=l.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,o=He(r);return l.createElement(Ha,C({},o,n,{ref:t}))}),g0=l.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,o=He(r);return l.createElement(Ga,C({},o,n,{ref:t}))}),y0=l.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,o=He(r);return l.createElement(Un,C({},o,n,{ref:t}))}),_0="AlertDialogCancel",$0=l.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,{cancelRef:o}=h0(_0,r),i=He(r),a=le(t,o);return l.createElement(Un,C({},i,n,{ref:a}))}),x0=c0,w0=u0,E0=d0,P0=f0,S0=b0,C0=y0,T0=$0,O0=v0,k0=g0,f={border_radius_0:"0",border_radius_100:"1px",border_radius_200:"2px",border_radius_400:"4px",border_radius_800:"8px",border_radius_pill:"9999em",border_radius_circle:"50%",border_width_0:"0",border_width_100:"1px",border_width_200:"2px",color_gray_4:"hsl(0, 0%, 4%)",color_gray_8:"hsl(0, 0%, 8%)",color_gray_10:"hsl(0, 0%, 10%)",color_gray_12:"hsl(0, 0%, 12%)",color_gray_14:"hsl(0, 0%, 14%)",color_gray_16:"hsl(0, 0%, 16%)",color_gray_24:"hsl(0, 0%, 24%)",color_gray_32:"hsl(0, 0%, 32%)",color_gray_56:"hsl(0, 0%, 56%)",color_gray_64:"hsl(0, 0%, 64%)",color_gray_84:"hsl(0, 0%, 84%)",color_gray_94:"hsl(0, 0% 94%)",color_gray_96:"hsl(0, 0%, 96%)",color_white:"hsl(0, 0%, 100%)",color_black:"hsl(0, 0%, 0%)",color_background_white_standard:"hsl(0, 0%, 100%)",color_background_white_strong:"hsl(0, 0% 94%)",color_background_white_weak:"hsl(0, 0%, 96%)",color_background_black_standard:"hsl(0, 0%, 16%)",color_background_black_strong:"hsl(0, 0%, 8%)",color_background_black_weak:"hsl(0, 0%, 12%)",color_background_sentiment_negative:"hsl(11, 68%, 55%)",color_background_sentiment_positive:"hsl(54, 63% 52%)",color_background_sentiment_notice:"hsl(29, 74% 53%)",color_background_sentiment_neutral:"hsl(0, 0%, 10%)",color_divider_standard:"hsla(0, 0%, 0%, 12%)",color_divider_strong:"hsla(0, 0%, 0%, 16%)",color_divider_weak:"hsla(0, 0%, 0%, 8%)",color_divider_inverse_standard:"hsla(0, 0%, 1000%, 32%)",color_divider_inverse_strong:"hsla(0, 0%, 100%, 48%)",color_divider_inverse_weak:"hsla(0, 0%, 100%, 24%)",color_text_standard:"hsl(0, 0%, 32%)",color_text_strong:"hsl(0, 0%, 0%)",color_text_weak:"hsl(0, 0%, 56%)",color_text_white_standard:"hsl(0, 0%, 84%)",color_text_white_strong:"hsl(0, 0%, 100%)",color_text_white_weak:"hsl(0, 0%, 64%)",color_text_sentiment_negative:"hsl(11, 68%, 55%)",color_text_sentiment_positive:"hsl(54, 63%, 52%)",color_text_sentiment_notice:"hsl(29, 67%, 47%)",color_text_sentiment_neutral:"hsl(0, 0%, 24%)",color_fill_primary_enabled:"hsla(0, 0%, 8%, 1)",color_fill_primary_hover:"hsl(210, 5%, 16%)",color_fill_primary_pressed:"hsl(210, 3%, 28%)",color_fill_primary_disabled:"hsla(0, 0%, 8%, 0.2)",color_fill_secondary_enabled:"hsla(0, 0%, 0%, 0.06)",color_fill_secondary_hover:"hsla(0, 0%, 0%, 0.12)",color_fill_secondary_pressed:"hsla(0, 0%, 0%, 0.2)",color_fill_secondary_disabled:"hsla(0, 0%, 88%, 0.5)",color_fill_inverse_enabled:"hsl(0, 0%, 100%)",color_fill_inverse_hover:"hsl(0, 0%, 94%)",color_fill_inverse_pressed:"hsl(0, 0%, 90%)",color_fill_inverse_disabled:"hsla(0, 0%, 98%, 0.4)",color_fill_danger_enabled:"hsl(11, 68%, 55%)",color_fill_danger_hover:"hsl(11, 57%, 51%)",color_fill_danger_pressed:"hsl(11, 55%, 48%)",color_fill_danger_disabled:"hsla(11, 68%, 55%, 0.2)",color_outline_primary_danger_enabled:"hsla(11, 68%, 55%, 0.24)",color_outline_primary_danger_hover:"hsla(11, 68%, 55%, 0.48)",color_outline_primary_danger_pressed:"hsla(11, 68%, 55%, 0.72)",color_outline_primary_danger_disabled:"hsla(11, 68%, 55%, 0.16)",color_outline_primary_danger_selected_enabled:"hsla(11, 68%, 55%, 0.96)",color_outline_primary_danger_selected_hover:"hsla(11, 68%, 55%, 0.96)",color_outline_primary_danger_selected_pressed:"hsla(11, 68%, 55%, 0.96)",color_outline_secondary_enabled:"hsla(0, 0%, 0%, 0.16)",color_outline_secondary_hover:"hsla(0, 0%, 0%, 0.32)",color_outline_secondary_pressed:"hsla(0, 0%, 0%, 0.48)",color_outline_secondary_disabled:"hsla(0, 0%, 14%, 0.16)",color_outline_secondary_selected_enabled:"hsla(0, 0%, 0%, 0.6)",color_outline_secondary_selected_hover:"hsla(0, 0%, 0%, 0.72)",color_outline_secondary_selected_pressed:"hsla(0, 0%, 0%, 0.76)",color_outline_inverse_enabled:"hsla(0, 0%, 100%, 0.32)",color_outline_inverse_hover:"hsla(0, 0%, 100%, 0.48)",color_outline_inverse_pressed:"hsla(0, 0%, 100%, 0.56)",color_outline_inverse_disabled:"hsla(0, 0%, 100%, 0.2)",color_outline_inverse_selected_enabled:"hsla(0, 0%, 100%, 0.6)",color_outline_inverse_selected_hover:"hsla(0, 0%, 100%, 0.72)",color_outline_inverse_selected_pressed:"hsla(0, 0%, 100%, 0.8)",color_outline_danger_enabled:"hsl(11, 68%, 55%)",color_outline_danger_hover:"hsla(11, 68%, 55%, 0.9)",color_outline_danger_pressed:"hsla(11, 68%, 55%, 0.9)",color_outline_danger_disabled:"hsla(11, 68%, 55%, 0.32)",color_overlay_secondary_enabled:"hsl(0, 0%, 100%)",color_overlay_secondary_hover:"hsl(0, 0%, 97%)",color_overlay_secondary_pressed:"hsl(0, 0%, 92%)",color_overlay_secondary_selected_enabled:"hsl(0, 0%, 94%)",color_overlay_secondary_selected_hover:"hsl(0, 0%, 91%)",color_overlay_secondary_selected_pressed:"hsl(0, 0%, 88%)",color_overlay_inverse_enabled:"hsl(0, 0%, 0%)",color_overlay_inverse_hover:"hsl(0, 0%, 4%)",color_overlay_inverse_pressed:"hsl(0, 0%, 12%)",color_overlay_inverse_selected_enabled:"hsl(0, 0%, 10%)",color_overlay_inverse_selected_hover:"hsl(0, 0%, 16%)",color_overlay_inverse_selected_pressed:"hsl(0, 0%, 24%)",elevation_static_low:"0px 1px 1px rgba(0, 0, 0, 0.07), 0px 1px 2px rgba(0, 0, 0, 0.08), 0px 2px 2px rgba(0, 0, 0, 0.1), 0px 0px 8px rgba(0, 0, 0, 0.05)",elevation_static_medium:"0px 1px 1px rgba(0, 0, 0, 0.05), 0px 2px 2px rgba(0, 0, 0, 0.05), 0px 5px 5px rgba(0, 0, 0, 0.05), 0px 10px 10px rgba(0, 0, 0, 0.05), 0px 0px 8px rgba(0, 0, 0, 0.05)",elevation_static_high:"0px 2px 4px rgba(0, 0, 0, 0.03), 0px 6px 6px rgba(0, 0, 0, 0.03), 0px 15px 20px rgba(0, 0, 0, 0.03), 0px 30px 40px rgba(0, 0, 0, 0.03), 0px 40px 70px rgba(0, 0, 0, 0.03), 0px 4px 30px rgba(0, 0, 0, 0.03), 0px 0px 8px rgba(0, 0, 0, 0.03)",elevation_interactive_down:"inset 0px 1000px 250px rgba(0, 0, 0, 0.04)",elevation_interactive_low:"0px 1px 1px rgba(0, 0, 0, 0.1), 0px 1px 2px rgba(0, 0, 0, 0.1), 0px 0px 2px rgba(0, 0, 0, 0.07)",elevation_interactive_medium:"0px 1px 1px rgba(0, 0, 0, 0.1), 0px 2px 2px rgba(0, 0, 0, 0.05), 0px 2px 4px rgba(0, 0, 0, 0.07), 0px 1px 4px rgba(0, 0, 0, 0.08)",elevation_interactive_high:"0px 2px 4px rgba(0, 0, 0, 0.05), 0px 3px 5px rgba(0, 0, 0, 0.05), 0px 4px 6px rgba(0, 0, 0, 0.05), 0px 4px 20px rgba(0, 0, 0, 0.05)",z_index_auto:"auto",z_index_below:"-1",z_index_default:"1",z_index_above:"10",z_index_overlay:"1000",font_family_inter:"'Inter', -apple-system, Helvetica, sans-serif",font_family_sans:"'Inter', -apple-system, Helvetica, sans-serif",font_family_inter_display:"'Inter', -apple-system, Helvetica, sans-serif",font_family_monospace:"'SFMono-Regular', Monaco, Consolas, 'Lucida Console', monospace",feature_settings_number:"'tnum' on, 'lnum' on, 'ss01' on",letter_spacing_tight:"-0.006em",letter_spacing_tighter:"-0.01em",letter_spacing_heading_large:"-0.018em",letter_spacing_heading_medium:"-0.016em",letter_spacing_heading_small:"-0.014em",letter_spacing_title_large:"-0.014em",letter_spacing_title_medium:"-0.012em",letter_spacing_title_small:"-0.01em",letter_spacing_title_xsmall:"-0.008em",letter_spacing_label_large:"-0.01em",letter_spacing_label_medium:"normal",letter_spacing_label_small:"-0.006em",letter_spacing_body_large:"-0.01em",letter_spacing_body_medium:"-0.006em",letter_spacing_body_small:"normal",letter_spacing_number_large:"-0.05em",letter_spacing_number_medium:"-0.05em",letter_spacing_number_small:"-0.04em",letter_spacing_number_xsmall:"-0.05em",letter_spacing_caption_medium:"0.01em",letter_spacing_caption_small:"0.02em",line_height_111:1.11,line_height_114:1.14,line_height_129:1.29,line_height_133:1.33,line_height_143:1.43,line_height_title_large:1.06,line_height_title_medium:1.08,line_height_title_small:1.1,line_height_title_xsmall:1.11,line_height_label_large:1.11,line_height_label_medium:1.12,line_height_label_small:1.14,line_height_body_large:1.25,line_height_body_medium:1.29,line_height_body_small:1.33,line_height_number_large:1.25,line_height_number_medium:1.14,line_height_number_small:1.17,line_height_number_xsmall:1.2,line_height_caption_medium:1.17,line_height_caption_small:1.2,font_size_50:"0.75rem",font_size_100:"0.875rem",font_size_200:"1rem",font_size_300:"1.125rem",font_size_400:"1.25rem",font_size_500:"1.5rem",font_size_600:"2rem",font_size_700:"2.75rem",font_size_800:"3.5rem",font_size_root:"16px",font_size_heading_large:"4.5rem",font_size_heading_medium:"3.5rem",font_size_heading_small:"3rem",font_size_title_large:"2.125rem",font_size_title_medium:"1.5rem",font_size_title_small:"1.25rem",font_size_title_xsmall:"1.125rem",font_size_label_large:"1.125rem",font_size_label_medium:"16px",font_size_label_small:"0.875rem",font_size_body_large:"16px",font_size_body_medium:"0.875rem",font_size_body_small:"0.75rem",font_size_number_large:"16px",font_size_number_medium:"0.875rem",font_size_number_small:"0.75rem",font_size_number_xsmall:"0.625rem",font_size_caption_medium:"0.875rem",font_size_caption_small:"0.75rem",font_weight_light:"300",font_weight_normal:"400",font_weight_medium:"500",font_weight_semibold:"600",media_query_xs:"448px",media_query_sm:"720px",media_query_md:"960px",media_query_lg:"1200px",media_query_xl:"1440px",sizing_0:"0rem",sizing_100:"0.25rem",sizing_200:"0.5rem",sizing_300:"0.75rem",sizing_350:"0.875rem",sizing_400:"1rem",sizing_450:"1.25rem",sizing_500:"1.5rem",sizing_550:"1.75rem",sizing_600:"2rem",sizing_650:"2.5rem",sizing_700:"3rem",sizing_750:"3.5rem",sizing_800:"4rem",sizing_850:"6rem",sizing_900:"10rem",sizing_1000:"20rem",sizing_1100:"28rem",sizing_1150:"35rem",sizing_1200:"45rem",sizing_1300:"60rem",sizing_1350:"66rem",sizing_1400:"75rem",sizing_1500:"90rem",spacing_0:"0rem",spacing_100:"0.25rem",spacing_200:"0.5rem",spacing_300:"0.75rem",spacing_400:"1rem",spacing_450:"1.25rem",spacing_500:"1.5rem",spacing_550:"1.75rem",spacing_600:"2rem",spacing_650:"2.5rem",spacing_700:"3rem",spacing_750:"3.5rem",spacing_800:"4rem",spacing_850:"6rem",spacing_900:"10rem",transition_duration_75:"75ms",transition_duration_100:"100ms",transition_duration_150:"150ms",transition_duration_200:"200ms",transition_duration_300:"300ms",transition_property_color:"color, background-color, border-color, text-decoration-color, fill, stroke;",transition_property_all:"all",transition_property_opacity:"opacity",transition_property_box_shadow:"box-shadow",transition_property_transform:"transform",transition_timing_function_ease_in:"cubic-bezier(0.4, 0, 1, 1)",transition_timing_function_ease_out:"cubic-bezier(0, 0, 0.2, 1)",transition_timing_function_ease_in_out:"cubic-bezier(0.4, 0, 0.2, 1)"},Kn=$t.keyframes`
63
63
  0% {
64
64
  opacity: 0;
65
65
  }
@@ -67,7 +67,7 @@ Check the top-level render call using <`+N+">.")}return M}}function Ct(x,M){{if(
67
67
  100% {
68
68
  opacity: var(--overlay-opacity);
69
69
  }
70
- `,or=lt.keyframes`
70
+ `,Hn=$t.keyframes`
71
71
  0% {
72
72
  opacity: 0;
73
73
  transform: translate(-50%, -48%) scale(.96);
@@ -77,18 +77,18 @@ Check the top-level render call using <`+N+">.")}return M}}function Ct(x,M){{if(
77
77
  opacity: 1;
78
78
  transform: translate(-50%, -50%) scale(1);
79
79
  }
80
- `,Mu=k.default(Qo)`
80
+ `,D0=A.default(Ua)`
81
81
  --overlay-opacity: 0.8;
82
82
  background-color: dimgray; // TODO
83
83
  opacity: var(--overlay-opacity);
84
84
  position: fixed;
85
85
  inset: 0;
86
86
  z-index: 4;
87
- animation: ${rr} 150ms cubic-bezier(0.16, 1, 0.3, 1);
88
- `,ar={small:"360px",medium:"540px",large:"960px"},Fu=k.default(ea)`
87
+ animation: ${Kn} 150ms cubic-bezier(0.16, 1, 0.3, 1);
88
+ `,Gn={small:"360px",medium:"540px",large:"960px"},I0=A.default(Ka)`
89
89
  background: white;
90
- padding: ${c.sizing_500};
91
- width: ${e=>ar[e.size||"medium"]};
90
+ padding: ${f.sizing_500};
91
+ width: ${e=>Gn[e.size||"medium"]};
92
92
  max-width: 100vw; // think about this
93
93
  min-width: min(200px, 100%); // ??
94
94
  position: fixed;
@@ -96,52 +96,52 @@ Check the top-level render call using <`+N+">.")}return M}}function Ct(x,M){{if(
96
96
  left: 50%;
97
97
  transform: translate(-50%, -50%);
98
98
  z-index: 5;
99
- box-shadow: ${c.elevation_static_high};
100
- border-radius: ${c.border_radius_400};
101
- animation: ${or} 150ms cubic-bezier(0.16, 1, 0.3, 1);
102
- `;function Nu({children:e,size:t,...n}){return ee(Jo,{children:[T(Mu,{}),T(Fu,{size:t,...n,children:e})]})}const zu=k.default(ta)`
103
- font-family: ${c.font_family_sans};
99
+ box-shadow: ${f.elevation_static_high};
100
+ border-radius: ${f.border_radius_400};
101
+ animation: ${Hn} 150ms cubic-bezier(0.16, 1, 0.3, 1);
102
+ `;function A0({children:e,size:t,...r}){return ce(Wa,{children:[T(D0,{}),T(I0,{size:t,...r,children:e})]})}const N0=A.default(Ha)`
103
+ font-family: ${f.font_family_sans};
104
104
  font-style: normal;
105
105
  font-weight: 500;
106
- font-size: ${c.font_size_300};
107
- line-height: ${c.line_height_111};
108
- letter-spacing: ${c.letter_spacing_tighter};
106
+ font-size: ${f.font_size_300};
107
+ line-height: ${f.line_height_111};
108
+ letter-spacing: ${f.letter_spacing_tighter};
109
109
  margin: 0;
110
- margin-bottom: ${c.spacing_200};
111
- `,Bu=k.default(na)`
112
- font-family: ${c.font_family_sans};
110
+ margin-bottom: ${f.spacing_200};
111
+ `,M0=A.default(Ga)`
112
+ font-family: ${f.font_family_sans};
113
113
  font-style: normal;
114
114
  font-weight: 400;
115
- font-size: ${c.font_size_100};
116
- line-height: ${c.line_height_129};
115
+ font-size: ${f.font_size_100};
116
+ line-height: ${f.line_height_129};
117
117
  margin: 0;
118
- margin-top: ${c.sizing_200}; /* or flex parent and gap? */
119
- margin-bottom: ${c.sizing_400};
120
- `,Vu=k.default.footer`
121
- margin-top: ${c.spacing_400};
118
+ margin-top: ${f.sizing_200}; /* or flex parent and gap? */
119
+ margin-bottom: ${f.sizing_400};
120
+ `,L0=A.default.footer`
121
+ margin-top: ${f.spacing_400};
122
122
  display: flex;
123
123
  justify-content: end;
124
- gap: ${c.sizing_200};
125
- `,Ru=k.default.button`
124
+ gap: ${f.sizing_200};
125
+ `,F0=A.default.button`
126
126
  all: unset;
127
127
  font-family: inherit;
128
128
  height: 25px;
129
129
  width: 25px;
130
130
  line-height: 0;
131
131
  display: inline-flex;
132
- border-radius: ${c.border_radius_circle};
132
+ border-radius: ${f.border_radius_circle};
133
133
  align-items: center;
134
134
  justify-content: center;
135
- color: ${c.color_fill_primary_enabled};
135
+ color: ${f.color_fill_primary_enabled};
136
136
  position: absolute;
137
137
  top: 16px;
138
138
  right: 12px;
139
139
 
140
- transition-property: ${c.transition_property_color};
141
- transition-duration: ${c.transition_duration_150};
140
+ transition-property: ${f.transition_property_color};
141
+ transition-duration: ${f.transition_duration_150};
142
142
 
143
143
  &:hover {
144
- color: ${c.color_fill_primary_hover};
144
+ color: ${f.color_fill_primary_hover};
145
145
  background-color: hsla(
146
146
  0deg,
147
147
  0%,
@@ -149,18 +149,18 @@ Check the top-level render call using <`+N+">.")}return M}}function Ct(x,M){{if(
149
149
  3%
150
150
  ); /* Interactive / Overlay / Secondary / Hover */
151
151
  }
152
- `,Wu=Xo,Hu=Zo,Ku=nr,Uu=k.default(ku)`
152
+ `,R0=ja,z0=Ba,V0=Un,j0=A.default(P0)`
153
153
  --overlay-opacity: 0.8;
154
154
  background-color: dimgray; // TODO
155
155
  opacity: var(--overlay-opacity);
156
156
  position: fixed;
157
157
  inset: 0;
158
158
  z-index: 4;
159
- animation: ${rr} 150ms cubic-bezier(0.16, 1, 0.3, 1);
160
- `,ju=k.default(Du)`
159
+ animation: ${Kn} 150ms cubic-bezier(0.16, 1, 0.3, 1);
160
+ `,B0=A.default(S0)`
161
161
  background: white;
162
- padding: ${c.sizing_500};
163
- width: ${e=>ar[e.size||"medium"]};
162
+ padding: ${f.sizing_500};
163
+ width: ${e=>Gn[e.size||"medium"]};
164
164
  max-width: 100vw; // think about this
165
165
  min-width: 200px; // ??
166
166
  position: fixed;
@@ -168,42 +168,42 @@ Check the top-level render call using <`+N+">.")}return M}}function Ct(x,M){{if(
168
168
  left: 50%;
169
169
  transform: translate(-50%, -50%);
170
170
  z-index: 5;
171
- box-shadow: ${c.elevation_static_high};
172
- border-radius: ${c.border_radius_400};
173
- animation: ${or} 150ms cubic-bezier(0.16, 1, 0.3, 1);
174
- `;function Gu({children:e,size:t,...n}){return ee(Su,{children:[T(Uu,{}),T(ju,{size:t,...n,children:e})]})}const Yu=k.default(Au)`
175
- font-family: ${c.font_family_sans}; // todo make design token variable
171
+ box-shadow: ${f.elevation_static_high};
172
+ border-radius: ${f.border_radius_400};
173
+ animation: ${Hn} 150ms cubic-bezier(0.16, 1, 0.3, 1);
174
+ `;function W0({children:e,size:t,...r}){return ce(E0,{children:[T(j0,{}),T(B0,{size:t,...r,children:e})]})}const U0=A.default(O0)`
175
+ font-family: ${f.font_family_sans}; // todo make design token variable
176
176
  font-style: normal;
177
177
  font-weight: 500;
178
- font-size: ${c.font_size_300};
179
- line-height: ${c.line_height_111};
180
- letter-spacing: ${c.letter_spacing_tighter};
178
+ font-size: ${f.font_size_300};
179
+ line-height: ${f.line_height_111};
180
+ letter-spacing: ${f.letter_spacing_tighter};
181
181
  margin: 0;
182
- margin-bottom: ${c.spacing_200};
183
- `,qu=k.default(Lu)`
184
- font-family: ${c.font_family_sans};
182
+ margin-bottom: ${f.spacing_200};
183
+ `,K0=A.default(k0)`
184
+ font-family: ${f.font_family_sans};
185
185
  font-style: normal;
186
186
  font-weight: 400;
187
- font-size: ${c.font_size_100};
188
- line-height: ${c.line_height_129};
187
+ font-size: ${f.font_size_100};
188
+ line-height: ${f.line_height_129};
189
189
  margin: 0;
190
- margin-top: ${c.sizing_200}; /* or flex parent and gap? */
191
- margin-bottom: ${c.sizing_400};
192
- `,Xu=k.default.footer`
193
- margin-top: ${c.sizing_400};
190
+ margin-top: ${f.sizing_200}; /* or flex parent and gap? */
191
+ margin-bottom: ${f.sizing_400};
192
+ `,H0=A.default.footer`
193
+ margin-top: ${f.sizing_400};
194
194
  display: flex;
195
195
  justify-content: end;
196
- gap: ${c.sizing_200};
197
- `,Zu=Cu,Ju=Tu,Qu=Ou,ef=Iu,Zt=a.forwardRef((e,t)=>a.createElement(R.span,D({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}))),oa=Zt,tf=({children:e,label:t})=>{const n=a.Children.only(e);return a.createElement(a.Fragment,null,a.cloneElement(n,{"aria-hidden":"true",focusable:"false"}),a.createElement(oa,null,t))};function Jt({children:e,label:t}){return T(tf,{label:t,children:e})}function nf(e,t,n){let[r,o]=a.useState(e||t),i=a.useRef(e!==void 0),s=i.current,l=e!==void 0,d=a.useRef(r);s!==l&&console.warn(`WARN: A component changed from ${s?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}.`),i.current=l;let f=a.useCallback((u,...p)=>{let $=(b,...h)=>{n&&(Object.is(d.current,b)||n(b,...h)),l||(d.current=b)};typeof u=="function"?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),o((h,...m)=>{let v=u(l?d.current:h,...m);return $(v,...p),l?h:v})):(l||o(u),$(u,...p))},[l,n]);return l?d.current=e:e=r,[e,f]}function rf(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}function nt(e,t,n,r){let o=(e-(isNaN(t)?0:t))%r,i=Math.abs(o)*2>=r?e+Math.sign(o)*(r-Math.abs(o)):e-o;isNaN(t)?!isNaN(n)&&i>n&&(i=Math.floor(n/r)*r):i<t?i=t:!isNaN(n)&&i>n&&(i=t+Math.floor((n-t)/r)*r);let s=r.toString(),l=s.indexOf("."),d=l>=0?s.length-l:0;if(d>0){let f=Math.pow(10,d);i=Math.round(i*f)/f}return i}const ir={prefix:String(Math.round(Math.random()*1e10)),current:0},aa=de.default.createContext(ir);let of=Boolean(typeof window<"u"&&window.document&&window.document.createElement);function af(e){let t=a.useContext(aa);return t===ir&&!of&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server."),a.useMemo(()=>e||`react-aria${t.prefix}-${++t.current}`,[e])}function sf(){let t=a.useContext(aa)!==ir,[n,r]=a.useState(t);return typeof window<"u"&&t&&a.useLayoutEffect(()=>{r(!1)},[]),n}function ia(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=ia(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function lf(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=ia(e))&&(r&&(r+=" "),r+=t);return r}const bt=typeof window<"u"?de.default.useLayoutEffect:()=>{};function cf(e){let[t,n]=a.useState(e),r=a.useRef(t),o=a.useRef(null);r.current=t;let i=a.useRef(null);i.current=()=>{let l=o.current.next();if(l.done){o.current=null;return}t===l.value?i.current():n(l.value)},bt(()=>{o.current&&i.current()});let s=a.useCallback(l=>{o.current=l(r.current),i.current()},[o,i]);return[t,s]}let Qt=new Map;function rt(e){let[t,n]=a.useState(e),r=a.useRef(null),o=af(t),i=a.useCallback(s=>{r.current=s},[]);return Qt.set(o,i),bt(()=>{let s=o;return()=>{Qt.delete(s)}},[o]),a.useEffect(()=>{let s=r.current;s&&(r.current=null,n(s))}),o}function df(e,t){if(e===t)return e;let n=Qt.get(e);if(n)return n(t),t;let r=Qt.get(t);return r?(r(e),e):t}function sa(e=[]){let t=rt(),[n,r]=cf(t),o=a.useCallback(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return bt(o,[t,o,...e]),n}function uf(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}function be(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let o in r){let i=t[o],s=r[o];typeof i=="function"&&typeof s=="function"&&o[0]==="o"&&o[1]==="n"&&o.charCodeAt(2)>=65&&o.charCodeAt(2)<=90?t[o]=uf(i,s):(o==="className"||o==="UNSAFE_className")&&typeof i=="string"&&typeof s=="string"?t[o]=lf(i,s):o==="id"&&i&&s?t.id=df(i,s):t[o]=s!==void 0?s:i}}return t}const ff=new Set(["id"]),pf=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),bf=/^(data-.*)$/;function Dt(e,t={}){let{labelable:n,propNames:r}=t,o={};for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(ff.has(i)||n&&pf.has(i)||(r==null?void 0:r.has(i))||bf.test(i))&&(o[i]=e[i]);return o}function mt(e){if(mf())e.focus({preventScroll:!0});else{let t=gf(e);e.focus(),$f(t)}}let en=null;function mf(){if(en==null){en=!1;try{var e=document.createElement("div");e.focus({get preventScroll(){return en=!0,!0}})}catch{}}return en}function gf(e){for(var t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}function $f(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}let gt=new Map,sr=new Set;function la(){if(typeof window>"u")return;let e=n=>{let r=gt.get(n.target);r||(r=new Set,gt.set(n.target,r),n.target.addEventListener("transitioncancel",t)),r.add(n.propertyName)},t=n=>{let r=gt.get(n.target);if(!!r&&(r.delete(n.propertyName),r.size===0&&(n.target.removeEventListener("transitioncancel",t),gt.delete(n.target)),gt.size===0)){for(let o of sr)o();sr.clear()}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",t)}typeof document<"u"&&(document.readyState!=="loading"?la():document.addEventListener("DOMContentLoaded",la));function ca(e){requestAnimationFrame(()=>{gt.size===0?e():sr.add(e)})}function da(){let e=a.useRef(new Map),t=a.useCallback((o,i,s,l)=>{let d=l!=null&&l.once?(...f)=>{e.current.delete(s),s(...f)}:s;e.current.set(s,{type:i,eventTarget:o,fn:d,options:l}),o.addEventListener(i,s,l)},[]),n=a.useCallback((o,i,s,l)=>{var d;let f=((d=e.current.get(s))===null||d===void 0?void 0:d.fn)||s;o.removeEventListener(i,f,l),e.current.delete(s)},[]),r=a.useCallback(()=>{e.current.forEach((o,i)=>{n(o.eventTarget,o.type,i,o.options)})},[n]);return a.useEffect(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function hf(e,t){let{id:n,"aria-label":r,"aria-labelledby":o}=e;return n=rt(n),o&&r?o=[...new Set([...o.trim().split(/\s+/),n])].join(" "):o&&(o=o.trim().split(/\s+/).join(" ")),!r&&!o&&t&&(r=t),{id:n,"aria-label":r,"aria-labelledby":o}}function $t(e){const t=a.useRef();return bt(()=>{!e||(typeof e=="function"?e(t.current):e.current=t.current)},[e]),t}function ua(e,t){bt(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref.current=null}},[e,t])}function vf(e){var t;return typeof window>"u"||window.navigator==null?!1:((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands.some(n=>e.test(n.brand)))||e.test(window.navigator.userAgent)}function lr(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function fa(){return lr(/^Mac/i)}function pa(){return lr(/^iPhone/i)}function _f(){return lr(/^iPad/i)||fa()&&navigator.maxTouchPoints>1}function cr(){return pa()||_f()}function ba(){return vf(/Android/i)}function yf(e,t,n,r){let o=a.useRef(n);o.current=n;let i=n==null;a.useEffect(()=>{if(i)return;let s=e.current,l=d=>o.current.call(this,d);return s.addEventListener(t,l,r),()=>{s.removeEventListener(t,l,r)}},[e,t,r,i])}function dr(e){return e.mozInputSource===0&&e.isTrusted?!0:ba()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function xf(e){return e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function ur(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}let ht="default",fr="",tn=new WeakMap;function ma(e){cr()?(ht==="default"&&(fr=document.documentElement.style.webkitUserSelect,document.documentElement.style.webkitUserSelect="none"),ht="disabled"):(e instanceof HTMLElement||e instanceof SVGElement)&&(tn.set(e,e.style.userSelect),e.style.userSelect="none")}function nn(e){if(cr()){if(ht!=="disabled")return;ht="restoring",setTimeout(()=>{ca(()=>{ht==="restoring"&&(document.documentElement.style.webkitUserSelect==="none"&&(document.documentElement.style.webkitUserSelect=fr||""),fr="",ht="default")})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&tn.has(e)){let t=tn.get(e);e.style.userSelect==="none"&&(e.style.userSelect=t),e.getAttribute("style")===""&&e.removeAttribute("style"),tn.delete(e)}}const ga=de.default.createContext(null);ga.displayName="PressResponderContext";function wf(e){let t=a.useContext(ga);if(t){let{register:n,...r}=t;e=be(r,e),n()}return ua(t,e.ref),e}function pr(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:o,onPressUp:i,isDisabled:s,isPressed:l,preventFocusOnPress:d,shouldCancelOnPointerExit:f,allowTextSelectionOnPress:u,ref:p,...$}=wf(e),b=a.useRef(null);b.current={onPress:t,onPressChange:n,onPressStart:r,onPressEnd:o,onPressUp:i,isDisabled:s,shouldCancelOnPointerExit:f};let[h,m]=a.useState(!1),v=a.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:y,removeAllGlobalListeners:_}=da(),w=a.useMemo(()=>{let g=v.current,O=(P,V)=>{let{onPressStart:S,onPressChange:E,isDisabled:U}=b.current;U||g.didFirePressStart||(S&&S({type:"pressstart",pointerType:V,target:P.currentTarget,shiftKey:P.shiftKey,metaKey:P.metaKey,ctrlKey:P.ctrlKey,altKey:P.altKey}),E&&E(!0),g.didFirePressStart=!0,m(!0))},L=(P,V,S=!0)=>{let{onPressEnd:E,onPressChange:U,onPress:Y,isDisabled:ae}=b.current;!g.didFirePressStart||(g.ignoreClickAfterPress=!0,g.didFirePressStart=!1,E&&E({type:"pressend",pointerType:V,target:P.currentTarget,shiftKey:P.shiftKey,metaKey:P.metaKey,ctrlKey:P.ctrlKey,altKey:P.altKey}),U&&U(!1),m(!1),Y&&S&&!ae&&Y({type:"press",pointerType:V,target:P.currentTarget,shiftKey:P.shiftKey,metaKey:P.metaKey,ctrlKey:P.ctrlKey,altKey:P.altKey}))},C=(P,V)=>{let{onPressUp:S,isDisabled:E}=b.current;E||S&&S({type:"pressup",pointerType:V,target:P.currentTarget,shiftKey:P.shiftKey,metaKey:P.metaKey,ctrlKey:P.ctrlKey,altKey:P.altKey})},A=P=>{g.isPressed&&(g.isOverTarget&&L(Fe(g.target,P),g.pointerType,!1),g.isPressed=!1,g.isOverTarget=!1,g.activePointerId=null,g.pointerType=null,_(),u||nn(g.target))},F={onKeyDown(P){mr(P.nativeEvent,P.currentTarget)&&P.currentTarget.contains(P.target)?(ha(P.target,P.key)&&P.preventDefault(),P.stopPropagation(),!g.isPressed&&!P.repeat&&(g.target=P.currentTarget,g.isPressed=!0,O(P,"keyboard"),y(document,"keyup",W,!1))):P.key==="Enter"&&br(P.currentTarget)&&P.stopPropagation()},onKeyUp(P){mr(P.nativeEvent,P.currentTarget)&&!P.repeat&&P.currentTarget.contains(P.target)&&C(Fe(g.target,P),"keyboard")},onClick(P){P&&!P.currentTarget.contains(P.target)||P&&P.button===0&&(P.stopPropagation(),s&&P.preventDefault(),!g.ignoreClickAfterPress&&!g.ignoreEmulatedMouseEvents&&(g.pointerType==="virtual"||dr(P.nativeEvent))&&(!s&&!d&&mt(P.currentTarget),O(P,"virtual"),C(P,"virtual"),L(P,"virtual")),g.ignoreEmulatedMouseEvents=!1,g.ignoreClickAfterPress=!1)}},W=P=>{if(g.isPressed&&mr(P,g.target)){ha(P.target,P.key)&&P.preventDefault(),P.stopPropagation(),g.isPressed=!1;let V=P.target;L(Fe(g.target,P),"keyboard",g.target.contains(V)),_(),g.target instanceof HTMLElement&&g.target.contains(V)&&(br(g.target)||g.target.getAttribute("role")==="link")&&g.target.click()}};if(typeof PointerEvent<"u"){F.onPointerDown=E=>{if(!(E.button!==0||!E.currentTarget.contains(E.target))){if(xf(E.nativeEvent)){g.pointerType="virtual";return}gr(E.currentTarget)&&E.preventDefault(),g.pointerType=E.pointerType,E.stopPropagation(),g.isPressed||(g.isPressed=!0,g.isOverTarget=!0,g.activePointerId=E.pointerId,g.target=E.currentTarget,!s&&!d&&mt(E.currentTarget),u||ma(g.target),O(E,g.pointerType),y(document,"pointermove",P,!1),y(document,"pointerup",V,!1),y(document,"pointercancel",S,!1))}},F.onMouseDown=E=>{!E.currentTarget.contains(E.target)||E.button===0&&(gr(E.currentTarget)&&E.preventDefault(),E.stopPropagation())},F.onPointerUp=E=>{!E.currentTarget.contains(E.target)||g.pointerType==="virtual"||E.button===0&&vt(E,E.currentTarget)&&C(E,g.pointerType||E.pointerType)};let P=E=>{E.pointerId===g.activePointerId&&(vt(E,g.target)?g.isOverTarget||(g.isOverTarget=!0,O(Fe(g.target,E),g.pointerType)):g.isOverTarget&&(g.isOverTarget=!1,L(Fe(g.target,E),g.pointerType,!1),b.current.shouldCancelOnPointerExit&&A(E)))},V=E=>{E.pointerId===g.activePointerId&&g.isPressed&&E.button===0&&(vt(E,g.target)?L(Fe(g.target,E),g.pointerType):g.isOverTarget&&L(Fe(g.target,E),g.pointerType,!1),g.isPressed=!1,g.isOverTarget=!1,g.activePointerId=null,g.pointerType=null,_(),u||nn(g.target))},S=E=>{A(E)};F.onDragStart=E=>{!E.currentTarget.contains(E.target)||A(E)}}else{F.onMouseDown=S=>{S.button!==0||!S.currentTarget.contains(S.target)||(gr(S.currentTarget)&&S.preventDefault(),S.stopPropagation(),!g.ignoreEmulatedMouseEvents&&(g.isPressed=!0,g.isOverTarget=!0,g.target=S.currentTarget,g.pointerType=dr(S.nativeEvent)?"virtual":"mouse",!s&&!d&&mt(S.currentTarget),O(S,g.pointerType),y(document,"mouseup",P,!1)))},F.onMouseEnter=S=>{!S.currentTarget.contains(S.target)||(S.stopPropagation(),g.isPressed&&!g.ignoreEmulatedMouseEvents&&(g.isOverTarget=!0,O(S,g.pointerType)))},F.onMouseLeave=S=>{!S.currentTarget.contains(S.target)||(S.stopPropagation(),g.isPressed&&!g.ignoreEmulatedMouseEvents&&(g.isOverTarget=!1,L(S,g.pointerType,!1),b.current.shouldCancelOnPointerExit&&A(S)))},F.onMouseUp=S=>{!S.currentTarget.contains(S.target)||!g.ignoreEmulatedMouseEvents&&S.button===0&&C(S,g.pointerType)};let P=S=>{if(S.button===0){if(g.isPressed=!1,_(),g.ignoreEmulatedMouseEvents){g.ignoreEmulatedMouseEvents=!1;return}vt(S,g.target)?L(Fe(g.target,S),g.pointerType):g.isOverTarget&&L(Fe(g.target,S),g.pointerType,!1),g.isOverTarget=!1}};F.onTouchStart=S=>{if(!S.currentTarget.contains(S.target))return;S.stopPropagation();let E=Ef(S.nativeEvent);!E||(g.activePointerId=E.identifier,g.ignoreEmulatedMouseEvents=!0,g.isOverTarget=!0,g.isPressed=!0,g.target=S.currentTarget,g.pointerType="touch",!s&&!d&&mt(S.currentTarget),u||ma(g.target),O(S,g.pointerType),y(window,"scroll",V,!0))},F.onTouchMove=S=>{if(!S.currentTarget.contains(S.target)||(S.stopPropagation(),!g.isPressed))return;let E=$a(S.nativeEvent,g.activePointerId);E&&vt(E,S.currentTarget)?g.isOverTarget||(g.isOverTarget=!0,O(S,g.pointerType)):g.isOverTarget&&(g.isOverTarget=!1,L(S,g.pointerType,!1),b.current.shouldCancelOnPointerExit&&A(S))},F.onTouchEnd=S=>{if(!S.currentTarget.contains(S.target)||(S.stopPropagation(),!g.isPressed))return;let E=$a(S.nativeEvent,g.activePointerId);E&&vt(E,S.currentTarget)?(C(S,g.pointerType),L(S,g.pointerType)):g.isOverTarget&&L(S,g.pointerType,!1),g.isPressed=!1,g.activePointerId=null,g.isOverTarget=!1,g.ignoreEmulatedMouseEvents=!0,u||nn(g.target),_()},F.onTouchCancel=S=>{!S.currentTarget.contains(S.target)||(S.stopPropagation(),g.isPressed&&A(S))};let V=S=>{g.isPressed&&S.target.contains(g.target)&&A({currentTarget:g.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};F.onDragStart=S=>{!S.currentTarget.contains(S.target)||A(S)}}return F},[y,s,d,_,u]);return a.useEffect(()=>()=>{u||nn(v.current.target)},[u]),{isPressed:l||h,pressProps:be($,w)}}function br(e){return e.tagName==="A"&&e.hasAttribute("href")}function mr(e,t){const{key:n,code:r}=e,o=t,i=o.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(o instanceof HTMLInputElement&&!va(o,n)||o instanceof HTMLTextAreaElement||o.isContentEditable)&&(!br(o)||i==="button"&&n!=="Enter")&&!(i==="link"&&n!=="Enter")}function Ef(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function $a(e,t){const n=e.changedTouches;for(let r=0;r<n.length;r++){const o=n[r];if(o.identifier===t)return o}return null}function Fe(e,t){return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey}}function Pf(e){let t=e.width/2||e.radiusX||0,n=e.height/2||e.radiusY||0;return{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}function Cf(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function vt(e,t){let n=t.getBoundingClientRect(),r=Pf(e);return Cf(n,r)}function gr(e){return!(e instanceof HTMLElement)||!e.draggable}function ha(e,t){return e instanceof HTMLInputElement?!va(e,t):e instanceof HTMLButtonElement?e.type!=="submit":!0}const Tf=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function va(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":Tf.has(e.type)}class Sf{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(t,n){this.nativeEvent=n,this.target=n.target,this.currentTarget=n.currentTarget,this.relatedTarget=n.relatedTarget,this.bubbles=n.bubbles,this.cancelable=n.cancelable,this.defaultPrevented=n.defaultPrevented,this.eventPhase=n.eventPhase,this.isTrusted=n.isTrusted,this.timeStamp=n.timeStamp,this.type=t}}function _a(e){let t=a.useRef({isFocused:!1,onBlur:e,observer:null});return t.current.onBlur=e,bt(()=>{const n=t.current;return()=>{n.observer&&(n.observer.disconnect(),n.observer=null)}},[]),a.useCallback(n=>{if(n.target instanceof HTMLButtonElement||n.target instanceof HTMLInputElement||n.target instanceof HTMLTextAreaElement||n.target instanceof HTMLSelectElement){t.current.isFocused=!0;let r=n.target,o=i=>{var s,l;t.current.isFocused=!1,r.disabled&&((l=(s=t.current).onBlur)===null||l===void 0||l.call(s,new Sf("blur",i))),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};r.addEventListener("focusout",o,{once:!0}),t.current.observer=new MutationObserver(()=>{t.current.isFocused&&r.disabled&&(t.current.observer.disconnect(),r.dispatchEvent(new FocusEvent("blur")),r.dispatchEvent(new FocusEvent("focusout",{bubbles:!0})))}),t.current.observer.observe(r,{attributes:!0,attributeFilter:["disabled"]})}},[])}function $r(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:o}=e;const i=a.useCallback(d=>{if(d.target===d.currentTarget)return r&&r(d),o&&o(!1),!0},[r,o]),s=_a(i),l=a.useCallback(d=>{d.target===d.currentTarget&&(n&&n(d),o&&o(!0),s(d))},[o,n,s]);return{focusProps:{onFocus:!t&&(n||o||r)?l:void 0,onBlur:!t&&(r||o)?i:null}}}let _t=null,hr=new Set,ya=!1,ot=!1,vr=!1;const kf={Tab:!0,Escape:!0};function _r(e,t){for(let n of hr)n(e,t)}function Df(e){return!(e.metaKey||!fa()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function xa(e){ot=!0,Df(e)&&(_t="keyboard",_r("keyboard",e))}function yt(e){_t="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(ot=!0,_r("pointer",e))}function Of(e){dr(e)&&(ot=!0,_t="virtual")}function If(e){e.target===window||e.target===document||(!ot&&!vr&&(_t="virtual",_r("virtual",e)),ot=!1,vr=!1)}function Af(){ot=!1,vr=!0}function yr(){if(typeof window>"u"||ya)return;let e=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(){ot=!0,e.apply(this,arguments)},document.addEventListener("keydown",xa,!0),document.addEventListener("keyup",xa,!0),document.addEventListener("click",Of,!0),window.addEventListener("focus",If,!0),window.addEventListener("blur",Af,!1),typeof PointerEvent<"u"?(document.addEventListener("pointerdown",yt,!0),document.addEventListener("pointermove",yt,!0),document.addEventListener("pointerup",yt,!0)):(document.addEventListener("mousedown",yt,!0),document.addEventListener("mousemove",yt,!0),document.addEventListener("mouseup",yt,!0)),ya=!0}typeof document<"u"&&(document.readyState!=="loading"?yr():document.addEventListener("DOMContentLoaded",yr));function wa(){return _t!=="pointer"}function Lf(){return _t}function Mf(e,t,n){return!(e&&t==="keyboard"&&n instanceof KeyboardEvent&&!kf[n.key])}function Ff(e,t,n){yr(),a.useEffect(()=>{let r=(o,i)=>{!Mf(n==null?void 0:n.isTextInput,o,i)||e(wa())};return hr.add(r),()=>{hr.delete(r)}},t)}function Ea(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:o}=e,i=a.useRef({isFocusWithin:!1}),s=a.useCallback(f=>{i.current.isFocusWithin&&!f.currentTarget.contains(f.relatedTarget)&&(i.current.isFocusWithin=!1,n&&n(f),o&&o(!1))},[n,o,i]),l=_a(s),d=a.useCallback(f=>{i.current.isFocusWithin||(r&&r(f),o&&o(!0),i.current.isFocusWithin=!0,l(f))},[r,o,l]);return t?{focusWithinProps:{onFocus:null,onBlur:null}}:{focusWithinProps:{onFocus:d,onBlur:s}}}function Pa(e){if(!e)return;let t=!0;return n=>{let r={...n,preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.isDefaultPrevented()},stopPropagation(){console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.")},continuePropagation(){t=!1}};e(r),t&&n.stopPropagation()}}function Nf(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:Pa(e.onKeyDown),onKeyUp:Pa(e.onKeyUp)}}}function zf(e,t){let{onScroll:n,isDisabled:r}=e,o=a.useCallback(i=>{i.ctrlKey||(i.preventDefault(),i.stopPropagation(),n&&n({deltaX:i.deltaX,deltaY:i.deltaY}))},[n]);yf(t,"wheel",r?null:o)}function Bf(e){if(Lf()==="virtual"){let t=document.activeElement;ca(()=>{document.activeElement===t&&document.contains(e)&&mt(e)})}else mt(e)}function Vf(e,t){return t.some(n=>n.contains(e))}class xr{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,n,r){let o=this.fastMap.get(n!=null?n:null),i=new Ca({scopeRef:t});o.addChild(i),i.parent=o,this.fastMap.set(t,i),r&&(i.nodeToRestore=r)}removeTreeNode(t){if(t===null)return;let n=this.fastMap.get(t),r=n.parent;for(let i of this.traverse())i!==n&&n.nodeToRestore&&i.nodeToRestore&&n.scopeRef.current&&Vf(i.nodeToRestore,n.scopeRef.current)&&(i.nodeToRestore=n.nodeToRestore);let o=n.children;r.removeChild(n),o.length>0&&o.forEach(i=>r.addChild(i)),this.fastMap.delete(n.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.length>0)for(let n of t.children)yield*this.traverse(n)}clone(){let t=new xr;for(let n of this.traverse())t.addTreeNode(n.scopeRef,n.parent.scopeRef,n.nodeToRestore);return t}constructor(){ur(this,"fastMap",new Map),this.root=new Ca({scopeRef:null}),this.fastMap.set(null,this.root)}}class Ca{addChild(t){this.children.push(t),t.parent=this}removeChild(t){this.children.splice(this.children.indexOf(t),1),t.parent=void 0}constructor(t){ur(this,"children",[]),ur(this,"contain",!1),this.scopeRef=t.scopeRef}}new xr;function rn(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,o=a.useRef({isFocused:!1,isFocusVisible:t||wa()}),[i,s]=a.useState(!1),[l,d]=a.useState(()=>o.current.isFocused&&o.current.isFocusVisible),f=a.useCallback(()=>d(o.current.isFocused&&o.current.isFocusVisible),[]),u=a.useCallback(b=>{o.current.isFocused=b,s(b),f()},[f]);Ff(b=>{o.current.isFocusVisible=b,f()},[],{isTextInput:n});let{focusProps:p}=$r({isDisabled:r,onFocusChange:u}),{focusWithinProps:$}=Ea({isDisabled:!r,onFocusWithinChange:u});return{isFocused:i,isFocusVisible:o.current.isFocused&&l,focusProps:r?$:p}}let Rf=de.default.createContext(null);function Wf(e){let t=a.useContext(Rf)||{};ua(t,e);let{ref:n,...r}=t;return r}function wr(e,t){let{focusProps:n}=$r(e),{keyboardProps:r}=Nf(e),o=be(n,r),i=Wf(t),s=e.isDisabled?{}:i,l=a.useRef(e.autoFocus);return a.useEffect(()=>{l.current&&t.current&&Bf(t.current),l.current=!1},[t]),{focusableProps:be({...o,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},s)}}function Hf(e,t){let{elementType:n="a",onPress:r,onPressStart:o,onPressEnd:i,onClick:s,isDisabled:l,...d}=e,f;n!=="a"&&(f={role:"link",tabIndex:l?void 0:0});let{focusableProps:u}=wr(e,t),{pressProps:p,isPressed:$}=pr({onPress:r,onPressStart:o,onPressEnd:i,isDisabled:l,ref:t}),b=Dt(d,{labelable:!0}),h=be(u,p);return{isPressed:$,linkProps:be(b,{...h,...f,"aria-disabled":l||void 0,onClick:m=>{p.onClick(m),s&&(s(m),console.warn("onClick is deprecated, please use onPress"))}})}}class Kf{getStringForLocale(t,n){let r=this.strings[n];r||(r=Uf(n,this.strings,this.defaultLocale),this.strings[n]=r);let o=r[t];if(!o)throw new Error(`Could not find intl message ${t} in ${n} locale`);return o}constructor(t,n="en-US"){this.strings={...t},this.defaultLocale=n}}function Uf(e,t,n="en-US"){if(t[e])return t[e];let r=jf(e);if(t[r])return t[r];for(let o in t)if(o.startsWith(r+"-"))return t[o];return t[n]}function jf(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const Ta=new Map,Sa=new Map;class Gf{format(t,n){let r=this.strings.getStringForLocale(t,this.locale);return typeof r=="function"?r(n,this):r}plural(t,n,r="cardinal"){let o=n["="+t];if(o)return typeof o=="function"?o():o;let i=this.locale+":"+r,s=Ta.get(i);s||(s=new Intl.PluralRules(this.locale,{type:r}),Ta.set(i,s));let l=s.select(t);return o=n[l]||n.other,typeof o=="function"?o():o}number(t){let n=Sa.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),Sa.set(this.locale,n)),n.format(t)}select(t,n){let r=t[n]||t.other;return typeof r=="function"?r():r}constructor(t,n){this.locale=t,this.strings=n}}let Er=new Map,Pr=!1;try{Pr=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let on=!1;try{on=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const ka={degree:{narrow:{default:"\xB0","ja-JP":" \u5EA6","zh-TW":"\u5EA6","sl-SI":" \xB0"}}};class Cr{format(t){let n="";if(!Pr&&this.options.signDisplay!=null?n=qf(this.numberFormatter,this.options.signDisplay,t):n=this.numberFormatter.format(t),this.options.style==="unit"&&!on){var r;let{unit:o,unitDisplay:i="short",locale:s}=this.resolvedOptions(),l=(r=ka[o])===null||r===void 0?void 0:r[i];n+=l[s]||l.default}return n}formatToParts(t){return this.numberFormatter.formatToParts(t)}formatRange(t,n){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(t,n);if(n<t)throw new RangeError("End date must be >= start date");return`${this.format(t)} \u2013 ${this.format(n)}`}formatRangeToParts(t,n){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(t,n);if(n<t)throw new RangeError("End date must be >= start date");let r=this.numberFormatter.formatToParts(t),o=this.numberFormatter.formatToParts(n);return[...r.map(i=>({...i,source:"startRange"})),{type:"literal",value:" \u2013 ",source:"shared"},...o.map(i=>({...i,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return!Pr&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!on&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}constructor(t,n={}){this.numberFormatter=Yf(t,n),this.options=n}}function Yf(e,t={}){let{numberingSystem:n}=t;if(n&&e.indexOf("-u-nu-")===-1&&(e=`${e}-u-nu-${n}`),t.style==="unit"&&!on){var r;let{unit:s,unitDisplay:l="short"}=t;if(!s)throw new Error('unit option must be provided with style: "unit"');if(!(!((r=ka[s])===null||r===void 0)&&r[l]))throw new Error(`Unsupported unit ${s} with unitDisplay = ${l}`);t={...t,style:"decimal"}}let o=e+(t?Object.entries(t).sort((s,l)=>s[0]<l[0]?-1:1).join():"");if(Er.has(o))return Er.get(o);let i=new Intl.NumberFormat(e,t);return Er.set(o,i),i}function qf(e,t,n){if(t==="auto")return e.format(n);if(t==="never")return e.format(Math.abs(n));{let r=!1;if(t==="always"?r=n>0||Object.is(n,0):t==="exceptZero"&&(Object.is(n,-0)||Object.is(n,0)?n=Math.abs(n):r=n>0),r){let o=e.format(-n),i=e.format(n),s=o.replace(i,"").replace(/\u200e|\u061C/,"");return[...s].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),o.replace(i,"!!!").replace(s,"+").replace("!!!",i)}else return e.format(n)}}const Xf=new RegExp("^.*\\(.*\\).*$"),Zf=["latn","arab","hanidec"];class Jf{parse(t){return Tr(this.locale,this.options,t).parse(t)}isValidPartialNumber(t,n,r){return Tr(this.locale,this.options,t).isValidPartialNumber(t,n,r)}getNumberingSystem(t){return Tr(this.locale,this.options,t).options.numberingSystem}constructor(t,n={}){this.locale=t,this.options=n}}const Da=new Map;function Tr(e,t,n){let r=Oa(e,t);if(!e.includes("-nu-")&&!r.isValidPartialNumber(n)){for(let o of Zf)if(o!==r.options.numberingSystem){let i=Oa(e+(e.includes("-u-")?"-nu-":"-u-nu-")+o,t);if(i.isValidPartialNumber(n))return i}}return r}function Oa(e,t){let n=e+(t?Object.entries(t).sort((o,i)=>o[0]<i[0]?-1:1).join():""),r=Da.get(n);return r||(r=new Qf(e,t),Da.set(n,r)),r}class Qf{parse(t){let n=this.sanitize(t);n=an(n,this.symbols.group,"").replace(this.symbols.decimal,".").replace(this.symbols.minusSign,"-").replace(this.symbols.numeral,this.symbols.index);let r=n?+n:NaN;if(isNaN(r))return NaN;if(this.options.currencySign==="accounting"&&Xf.test(t)&&(r=-1*r),this.options.style==="percent"){r/=100;var o;r=+r.toFixed(((o=this.options.maximumFractionDigits)!==null&&o!==void 0?o:0)+2)}return r}sanitize(t){return t=t.replace(this.symbols.literals,""),t=t.replace("-",this.symbols.minusSign),this.options.numberingSystem==="arab"&&(t=t.replace(",",this.symbols.decimal),t=t.replace(String.fromCharCode(1548),this.symbols.decimal),t=an(t,".",this.symbols.group)),this.options.locale==="fr-FR"&&(t=an(t,".",String.fromCharCode(8239))),t}isValidPartialNumber(t,n=-1/0,r=1/0){return t=this.sanitize(t),t.startsWith(this.symbols.minusSign)&&n<0?t=t.slice(this.symbols.minusSign.length):this.symbols.plusSign&&t.startsWith(this.symbols.plusSign)&&r>0&&(t=t.slice(this.symbols.plusSign.length)),t.startsWith(this.symbols.group)?!1:(t=an(t,this.symbols.group,"").replace(this.symbols.numeral,"").replace(this.symbols.decimal,""),t.length===0)}constructor(t,n={}){this.formatter=new Intl.NumberFormat(t,n),this.options=this.formatter.resolvedOptions(),this.symbols=ep(this.formatter,this.options,n)}}const Ia=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]);function ep(e,t,n){var r,o,i,s;let l=e.formatToParts(-10000.111),d=e.formatToParts(10000.111),f=e.formatToParts(1);var u;let p=(u=(r=l.find(C=>C.type==="minusSign"))===null||r===void 0?void 0:r.value)!==null&&u!==void 0?u:"-",$=(o=d.find(C=>C.type==="plusSign"))===null||o===void 0?void 0:o.value;!$&&((n==null?void 0:n.signDisplay)==="exceptZero"||(n==null?void 0:n.signDisplay)==="always")&&($="+");let b=(i=l.find(C=>C.type==="decimal"))===null||i===void 0?void 0:i.value,h=(s=l.find(C=>C.type==="group"))===null||s===void 0?void 0:s.value,m=l.filter(C=>!Ia.has(C.type)).map(C=>Aa(C.value)),v=f.filter(C=>!Ia.has(C.type)).map(C=>Aa(C.value)),y=[...new Set([...v,...m])].sort((C,A)=>A.length-C.length),_=y.length===0?new RegExp("[\\p{White_Space}]","gu"):new RegExp(`${y.join("|")}|[\\p{White_Space}]`,"gu"),w=[...new Intl.NumberFormat(t.locale,{useGrouping:!1}).format(9876543210)].reverse(),g=new Map(w.map((C,A)=>[C,A])),O=new RegExp(`[${w.join("")}]`,"g");return{minusSign:p,plusSign:$,decimal:b,group:h,literals:_,numeral:O,index:C=>String(g.get(C))}}function an(e,t,n){return e.replaceAll?e.replaceAll(t,n):e.split(t).join(n)}function Aa(e){return e.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}const tp=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),np=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function rp(e){if(Intl.Locale){let n=new Intl.Locale(e).maximize().script;return tp.has(n)}let t=e.split("-")[0];return np.has(t)}function La(){let e=typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:rp(e)?"rtl":"ltr"}}let Sr=La(),Ot=new Set;function Ma(){Sr=La();for(let e of Ot)e(Sr)}function op(){let e=sf(),[t,n]=a.useState(Sr);return a.useEffect(()=>(Ot.size===0&&window.addEventListener("languagechange",Ma),Ot.add(n),()=>{Ot.delete(n),Ot.size===0&&window.removeEventListener("languagechange",Ma)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const ap=de.default.createContext(null);function Fa(){let e=op();return a.useContext(ap)||e}const Na=new WeakMap;function ip(e){let t=Na.get(e);return t||(t=new Kf(e),Na.set(e,t)),t}function kr(e){let{locale:t}=Fa(),n=a.useMemo(()=>ip(e),[e]);return a.useMemo(()=>new Gf(t,n),[t,n])}function sp(e={}){let{locale:t}=Fa();return a.useMemo(()=>new Cr(t,e),[t,e])}function lp(e){return e&&e.__esModule?e.default:e}function cp(e,t){let{isCurrent:n,isDisabled:r,"aria-current":o,elementType:i="a",...s}=e,{linkProps:l}=Hf({isDisabled:r||n,elementType:i,...s},t),d=/^h[1-6]$/.test(i),f={};return d||(f=l),n&&(f["aria-current"]=o||"page",f.tabIndex=e.autoFocus?-1:void 0),{itemProps:{"aria-disabled":r,...f}}}var za={},Ba={};Ba={breadcrumbs:"\u0639\u0646\u0627\u0635\u0631 \u0627\u0644\u0648\u0627\u062C\u0647\u0629"};var Va={};Va={breadcrumbs:"\u0422\u0440\u043E\u0445\u0438 \u0445\u043B\u044F\u0431"};var Ra={};Ra={breadcrumbs:"Popis cesty"};var Wa={};Wa={breadcrumbs:"Br\xF8dkrummer"};var Ha={};Ha={breadcrumbs:"Breadcrumbs"};var Ka={};Ka={breadcrumbs:"\u03A0\u03BB\u03BF\u03B7\u03B3\u03AE\u03C3\u03B5\u03B9\u03C2 breadcrumb"};var Ua={};Ua={breadcrumbs:"Breadcrumbs"};var ja={};ja={breadcrumbs:"Migas de pan"};var Ga={};Ga={breadcrumbs:"Lingiread"};var Ya={};Ya={breadcrumbs:"Navigointilinkit"};var qa={};qa={breadcrumbs:"Chemin de navigation"};var Xa={};Xa={breadcrumbs:"\u05E9\u05D1\u05D9\u05DC\u05D9 \u05E0\u05D9\u05D5\u05D5\u05D8"};var Za={};Za={breadcrumbs:"Navigacijski putovi"};var Ja={};Ja={breadcrumbs:"Morzsamen\xFC"};var Qa={};Qa={breadcrumbs:"Breadcrumb"};var ei={};ei={breadcrumbs:"\u30D1\u30F3\u304F\u305A\u30EA\u30B9\u30C8"};var ti={};ti={breadcrumbs:"\uD0D0\uC0C9 \uD45C\uC2DC"};var ni={};ni={breadcrumbs:"Nar\u0161ymo kelias"};var ri={};ri={breadcrumbs:"Atpaka\u013Cce\u013Ci"};var oi={};oi={breadcrumbs:"Navigasjonsstier"};var ai={};ai={breadcrumbs:"Broodkruimels"};var ii={};ii={breadcrumbs:"Struktura nawigacyjna"};var si={};si={breadcrumbs:"Caminho detalhado"};var li={};li={breadcrumbs:"Categorias"};var ci={};ci={breadcrumbs:"Miez de p\xE2ine"};var di={};di={breadcrumbs:"\u041D\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u044F"};var ui={};ui={breadcrumbs:"Naviga\u010Dn\xE9 prvky Breadcrumbs"};var fi={};fi={breadcrumbs:"Drobtine"};var pi={};pi={breadcrumbs:"Putanje navigacije"};var bi={};bi={breadcrumbs:"S\xF6kv\xE4gar"};var mi={};mi={breadcrumbs:"\u0130\xE7erik haritalar\u0131"};var gi={};gi={breadcrumbs:"\u041D\u0430\u0432\u0456\u0433\u0430\u0446\u0456\u0439\u043D\u0430 \u0441\u0442\u0435\u0436\u043A\u0430"};var $i={};$i={breadcrumbs:"\u5BFC\u822A\u680F"};var hi={};hi={breadcrumbs:"\u5C0E\u89BD\u5217"},za={"ar-AE":Ba,"bg-BG":Va,"cs-CZ":Ra,"da-DK":Wa,"de-DE":Ha,"el-GR":Ka,"en-US":Ua,"es-ES":ja,"et-EE":Ga,"fi-FI":Ya,"fr-FR":qa,"he-IL":Xa,"hr-HR":Za,"hu-HU":Ja,"it-IT":Qa,"ja-JP":ei,"ko-KR":ti,"lt-LT":ni,"lv-LV":ri,"nb-NO":oi,"nl-NL":ai,"pl-PL":ii,"pt-BR":si,"pt-PT":li,"ro-RO":ci,"ru-RU":di,"sk-SK":ui,"sl-SI":fi,"sr-SP":pi,"sv-SE":bi,"tr-TR":mi,"uk-UA":gi,"zh-CN":$i,"zh-TW":hi};function dp(e){let{"aria-label":t,...n}=e,r=kr(lp(za));return{navProps:{...Dt(n,{labelable:!0}),"aria-label":t||r.format("breadcrumbs")}}}function xt(e){return e.split("-")[0]}function sn(e){return e.split("-")[1]}function wt(e){return["top","bottom"].includes(xt(e))?"x":"y"}function Dr(e){return e==="y"?"height":"width"}function vi(e,t,n){let{reference:r,floating:o}=e;const i=r.x+r.width/2-o.width/2,s=r.y+r.height/2-o.height/2,l=wt(t),d=Dr(l),f=r[d]/2-o[d]/2,u=xt(t),p=l==="x";let $;switch(u){case"top":$={x:i,y:r.y-o.height};break;case"bottom":$={x:i,y:r.y+r.height};break;case"right":$={x:r.x+r.width,y:s};break;case"left":$={x:r.x-o.width,y:s};break;default:$={x:r.x,y:r.y}}switch(sn(t)){case"start":$[l]-=f*(n&&p?-1:1);break;case"end":$[l]+=f*(n&&p?-1:1);break}return $}const up=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,l=await(s.isRTL==null?void 0:s.isRTL(t));if(process.env.NODE_ENV!=="production"&&(s==null&&console.error(["Floating UI: `platform` property was not passed to config. If you","want to use Floating UI on the web, install @floating-ui/dom","instead of the /core package. Otherwise, you can create your own","`platform`: https://floating-ui.com/docs/platform"].join(" ")),i.filter(h=>{let{name:m}=h;return m==="autoPlacement"||m==="flip"}).length>1))throw new Error(["Floating UI: duplicate `flip` and/or `autoPlacement`","middleware detected. This will lead to an infinite loop. Ensure only","one of either has been passed to the `middleware` array."].join(" "));let d=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:u}=vi(d,r,l),p=r,$={},b=0;for(let h=0;h<i.length;h++){const{name:m,fn:v}=i[h],{x:y,y:_,data:w,reset:g}=await v({x:f,y:u,initialPlacement:r,placement:p,strategy:o,middlewareData:$,rects:d,platform:s,elements:{reference:e,floating:t}});if(f=y!=null?y:f,u=_!=null?_:u,$={...$,[m]:{...$[m],...w}},process.env.NODE_ENV!=="production"&&b>50&&console.warn(["Floating UI: The middleware lifecycle appears to be running in an","infinite loop. This is usually caused by a `reset` continually","being returned without a break condition."].join(" ")),g&&b<=50){b++,typeof g=="object"&&(g.placement&&(p=g.placement),g.rects&&(d=g.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):g.rects),{x:f,y:u}=vi(d,p,l)),h=-1;continue}}return{x:f,y:u,placement:p,strategy:o,middlewareData:$}};function fp(e){return{top:0,right:0,bottom:0,left:0,...e}}function _i(e){return typeof e!="number"?fp(e):{top:e,right:e,bottom:e,left:e}}function ln(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function cn(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:i,rects:s,elements:l,strategy:d}=e,{boundary:f="clippingAncestors",rootBoundary:u="viewport",elementContext:p="floating",altBoundary:$=!1,padding:b=0}=t,h=_i(b),v=l[$?p==="floating"?"reference":"floating":p],y=ln(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(v)))==null||n?v:v.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(l.floating)),boundary:f,rootBoundary:u,strategy:d})),_=ln(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:p==="floating"?{...s.floating,x:r,y:o}:s.reference,offsetParent:await(i.getOffsetParent==null?void 0:i.getOffsetParent(l.floating)),strategy:d}):s[p]);return{top:y.top-_.top+h.top,bottom:_.bottom-y.bottom+h.bottom,left:y.left-_.left+h.left,right:_.right-y.right+h.right}}const pp=Math.min,bp=Math.max;function Or(e,t,n){return bp(e,pp(t,n))}const yi=e=>({name:"arrow",options:e,async fn(t){const{element:n,padding:r=0}=e!=null?e:{},{x:o,y:i,placement:s,rects:l,platform:d}=t;if(n==null)return process.env.NODE_ENV!=="production"&&console.warn("Floating UI: No `element` was passed to the `arrow` middleware."),{};const f=_i(r),u={x:o,y:i},p=wt(s),$=sn(s),b=Dr(p),h=await d.getDimensions(n),m=p==="y"?"top":"left",v=p==="y"?"bottom":"right",y=l.reference[b]+l.reference[p]-u[p]-l.floating[b],_=u[p]-l.reference[p],w=await(d.getOffsetParent==null?void 0:d.getOffsetParent(n));let g=w?p==="y"?w.clientHeight||0:w.clientWidth||0:0;g===0&&(g=l.floating[b]);const O=y/2-_/2,L=f[m],C=g-h[b]-f[v],A=g/2-h[b]/2+O,F=Or(L,A,C),V=($==="start"?f[m]:f[v])>0&&A!==F&&l.reference[b]<=l.floating[b]?A<L?L-A:C-A:0;return{[p]:u[p]-V,data:{[p]:F,centerOffset:A-F}}}}),mp={left:"right",right:"left",bottom:"top",top:"bottom"};function dn(e){return e.replace(/left|right|bottom|top/g,t=>mp[t])}function gp(e,t,n){n===void 0&&(n=!1);const r=sn(e),o=wt(e),i=Dr(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=dn(s)),{main:s,cross:dn(s)}}const $p={start:"end",end:"start"};function xi(e){return e.replace(/start|end/g,t=>$p[t])}const hp=["top","right","bottom","left"];function vp(e){const t=dn(e);return[xi(e),t,xi(t)]}const _p=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n;const{placement:r,middlewareData:o,rects:i,initialPlacement:s,platform:l,elements:d}=t,{mainAxis:f=!0,crossAxis:u=!0,fallbackPlacements:p,fallbackStrategy:$="bestFit",flipAlignment:b=!0,...h}=e,m=xt(r),y=p||(m===s||!b?[dn(s)]:vp(s)),_=[s,...y],w=await cn(t,h),g=[];let O=((n=o.flip)==null?void 0:n.overflows)||[];if(f&&g.push(w[m]),u){const{main:F,cross:W}=gp(r,i,await(l.isRTL==null?void 0:l.isRTL(d.floating)));g.push(w[F],w[W])}if(O=[...O,{placement:r,overflows:g}],!g.every(F=>F<=0)){var L,C;const F=((L=(C=o.flip)==null?void 0:C.index)!=null?L:0)+1,W=_[F];if(W)return{data:{index:F,overflows:O},reset:{placement:W}};let P="bottom";switch($){case"bestFit":{var A;const V=(A=O.map(S=>[S,S.overflows.filter(E=>E>0).reduce((E,U)=>E+U,0)]).sort((S,E)=>S[1]-E[1])[0])==null?void 0:A[0].placement;V&&(P=V);break}case"initialPlacement":P=s;break}if(r!==P)return{reset:{placement:P}}}return{}}}};function wi(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ei(e){return hp.some(t=>e[t]>=0)}const yp=function(e){let{strategy:t="referenceHidden",...n}=e===void 0?{}:e;return{name:"hide",async fn(r){const{rects:o}=r;switch(t){case"referenceHidden":{const i=await cn(r,{...n,elementContext:"reference"}),s=wi(i,o.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Ei(s)}}}case"escaped":{const i=await cn(r,{...n,altBoundary:!0}),s=wi(i,o.floating);return{data:{escapedOffsets:s,escaped:Ei(s)}}}default:return{}}}}};async function xp(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=xt(n),l=sn(n),d=wt(n)==="x",f=["left","top"].includes(s)?-1:1,u=i&&d?-1:1,p=typeof t=="function"?t(e):t;let{mainAxis:$,crossAxis:b,alignmentAxis:h}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...p};return l&&typeof h=="number"&&(b=l==="end"?h*-1:h),d?{x:b*u,y:$*f}:{x:$*f,y:b*u}}const wp=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:r}=t,o=await xp(t,e);return{x:n+o.x,y:r+o.y,data:o}}}};function Pi(e){return e==="x"?"y":"x"}const Ep=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:l={fn:v=>{let{x:y,y:_}=v;return{x:y,y:_}}},...d}=e,f={x:n,y:r},u=await cn(t,d),p=wt(xt(o)),$=Pi(p);let b=f[p],h=f[$];if(i){const v=p==="y"?"top":"left",y=p==="y"?"bottom":"right",_=b+u[v],w=b-u[y];b=Or(_,b,w)}if(s){const v=$==="y"?"top":"left",y=$==="y"?"bottom":"right",_=h+u[v],w=h-u[y];h=Or(_,h,w)}const m=l.fn({...t,[p]:b,[$]:h});return{...m,data:{x:m.x-n,y:m.y-r}}}}},Pp=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:s}=t,{offset:l=0,mainAxis:d=!0,crossAxis:f=!0}=e,u={x:n,y:r},p=wt(o),$=Pi(p);let b=u[p],h=u[$];const m=typeof l=="function"?l({...i,placement:o}):l,v=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(d){const O=p==="y"?"height":"width",L=i.reference[p]-i.floating[O]+v.mainAxis,C=i.reference[p]+i.reference[O]-v.mainAxis;b<L?b=L:b>C&&(b=C)}if(f){var y,_,w,g;const O=p==="y"?"width":"height",L=["top","left"].includes(xt(o)),C=i.reference[$]-i.floating[O]+(L&&(y=(_=s.offset)==null?void 0:_[$])!=null?y:0)+(L?0:v.crossAxis),A=i.reference[$]+i.reference[O]+(L?0:(w=(g=s.offset)==null?void 0:g[$])!=null?w:0)-(L?v.crossAxis:0);h<C?h=C:h>A&&(h=A)}return{[p]:b,[$]:h}}}};function Ci(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function Ne(e){if(e==null)return window;if(!Ci(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function It(e){return Ne(e).getComputedStyle(e)}function ze(e){return Ci(e)?"":e?(e.nodeName||"").toLowerCase():""}function Ti(){const e=navigator.userAgentData;return e!=null&&e.brands?e.brands.map(t=>t.brand+"/"+t.version).join(" "):navigator.userAgent}function Te(e){return e instanceof Ne(e).HTMLElement}function He(e){return e instanceof Ne(e).Element}function Cp(e){return e instanceof Ne(e).Node}function Ir(e){if(typeof ShadowRoot>"u")return!1;const t=Ne(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function un(e){const{overflow:t,overflowX:n,overflowY:r}=It(e);return/auto|scroll|overlay|hidden/.test(t+r+n)}function Tp(e){return["table","td","th"].includes(ze(e))}function Si(e){const t=/firefox/i.test(Ti()),n=It(e);return n.transform!=="none"||n.perspective!=="none"||n.contain==="paint"||["transform","perspective"].includes(n.willChange)||t&&n.willChange==="filter"||t&&(n.filter?n.filter!=="none":!1)}function ki(){return!/^((?!chrome|android).)*safari/i.test(Ti())}const Di=Math.min,At=Math.max,fn=Math.round;function Be(e,t,n){var r,o,i,s;t===void 0&&(t=!1),n===void 0&&(n=!1);const l=e.getBoundingClientRect();let d=1,f=1;t&&Te(e)&&(d=e.offsetWidth>0&&fn(l.width)/e.offsetWidth||1,f=e.offsetHeight>0&&fn(l.height)/e.offsetHeight||1);const u=He(e)?Ne(e):window,p=!ki()&&n,$=(l.left+(p&&(r=(o=u.visualViewport)==null?void 0:o.offsetLeft)!=null?r:0))/d,b=(l.top+(p&&(i=(s=u.visualViewport)==null?void 0:s.offsetTop)!=null?i:0))/f,h=l.width/d,m=l.height/f;return{width:h,height:m,top:b,right:$+h,bottom:b+m,left:$,x:$,y:b}}function Ke(e){return((Cp(e)?e.ownerDocument:e.document)||window.document).documentElement}function pn(e){return He(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Oi(e){return Be(Ke(e)).left+pn(e).scrollLeft}function Sp(e){const t=Be(e);return fn(t.width)!==e.offsetWidth||fn(t.height)!==e.offsetHeight}function kp(e,t,n){const r=Te(t),o=Ke(t),i=Be(e,r&&Sp(t),n==="fixed");let s={scrollLeft:0,scrollTop:0};const l={x:0,y:0};if(r||!r&&n!=="fixed")if((ze(t)!=="body"||un(o))&&(s=pn(t)),Te(t)){const d=Be(t,!0);l.x=d.x+t.clientLeft,l.y=d.y+t.clientTop}else o&&(l.x=Oi(o));return{x:i.left+s.scrollLeft-l.x,y:i.top+s.scrollTop-l.y,width:i.width,height:i.height}}function Ii(e){return ze(e)==="html"?e:e.assignedSlot||e.parentNode||(Ir(e)?e.host:null)||Ke(e)}function Ai(e){return!Te(e)||getComputedStyle(e).position==="fixed"?null:e.offsetParent}function Dp(e){let t=Ii(e);for(Ir(t)&&(t=t.host);Te(t)&&!["html","body"].includes(ze(t));){if(Si(t))return t;t=t.parentNode}return null}function Ar(e){const t=Ne(e);let n=Ai(e);for(;n&&Tp(n)&&getComputedStyle(n).position==="static";)n=Ai(n);return n&&(ze(n)==="html"||ze(n)==="body"&&getComputedStyle(n).position==="static"&&!Si(n))?t:n||Dp(e)||t}function Li(e){if(Te(e))return{width:e.offsetWidth,height:e.offsetHeight};const t=Be(e);return{width:t.width,height:t.height}}function Op(e){let{rect:t,offsetParent:n,strategy:r}=e;const o=Te(n),i=Ke(n);if(n===i)return t;let s={scrollLeft:0,scrollTop:0};const l={x:0,y:0};if((o||!o&&r!=="fixed")&&((ze(n)!=="body"||un(i))&&(s=pn(n)),Te(n))){const d=Be(n,!0);l.x=d.x+n.clientLeft,l.y=d.y+n.clientTop}return{...t,x:t.x-s.scrollLeft+l.x,y:t.y-s.scrollTop+l.y}}function Ip(e,t){const n=Ne(e),r=Ke(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,l=0,d=0;if(o){i=o.width,s=o.height;const f=ki();(f||!f&&t==="fixed")&&(l=o.offsetLeft,d=o.offsetTop)}return{width:i,height:s,x:l,y:d}}function Ap(e){var t;const n=Ke(e),r=pn(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=At(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=At(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0);let l=-r.scrollLeft+Oi(e);const d=-r.scrollTop;return It(o||n).direction==="rtl"&&(l+=At(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:l,y:d}}function Mi(e){const t=Ii(e);return["html","body","#document"].includes(ze(t))?e.ownerDocument.body:Te(t)&&un(t)?t:Mi(t)}function bn(e,t){var n;t===void 0&&(t=[]);const r=Mi(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=Ne(r),s=o?[i].concat(i.visualViewport||[],un(r)?r:[]):r,l=t.concat(s);return o?l:l.concat(bn(s))}function Lp(e,t){const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&Ir(n)){let r=t;do{if(r&&e===r)return!0;r=r.parentNode||r.host}while(r)}return!1}function Mp(e,t){const n=Be(e,!1,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft;return{top:r,left:o,x:o,y:r,right:o+e.clientWidth,bottom:r+e.clientHeight,width:e.clientWidth,height:e.clientHeight}}function Fi(e,t,n){return t==="viewport"?ln(Ip(e,n)):He(t)?Mp(t,n):ln(Ap(Ke(e)))}function Fp(e){const t=bn(e),r=["absolute","fixed"].includes(It(e).position)&&Te(e)?Ar(e):e;return He(r)?t.filter(o=>He(o)&&Lp(o,r)&&ze(o)!=="body"):[]}function Np(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?Fp(t):[].concat(n),r],l=s[0],d=s.reduce((f,u)=>{const p=Fi(t,u,o);return f.top=At(p.top,f.top),f.right=Di(p.right,f.right),f.bottom=Di(p.bottom,f.bottom),f.left=At(p.left,f.left),f},Fi(t,l,o));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}const zp={getClippingRect:Np,convertOffsetParentRelativeRectToViewportRelativeRect:Op,isElement:He,getDimensions:Li,getOffsetParent:Ar,getDocumentElement:Ke,getElementRects:e=>{let{reference:t,floating:n,strategy:r}=e;return{reference:kp(t,Ar(n),r),floating:{...Li(n),x:0,y:0}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>It(e).direction==="rtl"};function Bp(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=!0,animationFrame:l=!1}=r,d=o&&!l,f=i&&!l,u=d||f?[...He(e)?bn(e):[],...bn(t)]:[];u.forEach(m=>{d&&m.addEventListener("scroll",n,{passive:!0}),f&&m.addEventListener("resize",n)});let p=null;if(s){let m=!0;p=new ResizeObserver(()=>{m||n(),m=!1}),He(e)&&!l&&p.observe(e),p.observe(t)}let $,b=l?Be(e):null;l&&h();function h(){const m=Be(e);b&&(m.x!==b.x||m.y!==b.y||m.width!==b.width||m.height!==b.height)&&n(),b=m,$=requestAnimationFrame(h)}return n(),()=>{var m;u.forEach(v=>{d&&v.removeEventListener("scroll",n),f&&v.removeEventListener("resize",n)}),(m=p)==null||m.disconnect(),p=null,l&&cancelAnimationFrame($)}}const Vp=(e,t,n)=>up(e,t,{platform:zp,...n});var Lr=typeof document<"u"?a.useLayoutEffect:a.useEffect;function Mr(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!Mr(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!Mr(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Rp(e){const t=j.useRef(e);return Lr(()=>{t.current=e}),t}function Wp(e){let{middleware:t,placement:n="bottom",strategy:r="absolute",whileElementsMounted:o}=e===void 0?{}:e;const i=j.useRef(null),s=j.useRef(null),l=Rp(o),d=j.useRef(null),[f,u]=j.useState({x:null,y:null,strategy:r,placement:n,middlewareData:{}}),[p,$]=j.useState(t);Mr(p==null?void 0:p.map(w=>{let{options:g}=w;return g}),t==null?void 0:t.map(w=>{let{options:g}=w;return g}))||$(t);const b=j.useCallback(()=>{!i.current||!s.current||Vp(i.current,s.current,{middleware:p,placement:n,strategy:r}).then(w=>{h.current&&Nc.flushSync(()=>{u(w)})})},[p,n,r]);Lr(()=>{h.current&&b()},[b]);const h=j.useRef(!1);Lr(()=>(h.current=!0,()=>{h.current=!1}),[]);const m=j.useCallback(()=>{if(typeof d.current=="function"&&(d.current(),d.current=null),i.current&&s.current)if(l.current){const w=l.current(i.current,s.current,b);d.current=w}else b()},[b,l]),v=j.useCallback(w=>{i.current=w,m()},[m]),y=j.useCallback(w=>{s.current=w,m()},[m]),_=j.useMemo(()=>({reference:i,floating:s}),[]);return j.useMemo(()=>({...f,update:b,refs:_,reference:v,floating:y}),[f,b,_,v,y])}const Hp=e=>{const{element:t,padding:n}=e;function r(o){return Object.prototype.hasOwnProperty.call(o,"current")}return{name:"arrow",options:e,fn(o){return r(t)?t.current!=null?yi({element:t.current,padding:n}).fn(o):{}:t?yi({element:t,padding:n}).fn(o):{}}}},Kp=a.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return a.createElement(R.svg,D({},i,{ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:a.createElement("polygon",{points:"0,0 30,0 15,10"}))});function mn(e){const[t,n]=a.useState(void 0);return pe(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let s,l;if("borderBoxSize"in i){const d=i.borderBoxSize,f=Array.isArray(d)?d[0]:d;s=f.inlineSize,l=f.blockSize}else s=e.offsetWidth,l=e.offsetHeight;n({width:s,height:l})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}const Ni="Popper",[Fr,gn]=ge(Ni),[Up,zi]=Fr(Ni),jp=e=>{const{__scopePopper:t,children:n}=e,[r,o]=a.useState(null);return a.createElement(Up,{scope:t,anchor:r,onAnchorChange:o},n)},Gp="PopperAnchor",Yp=a.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=zi(Gp,n),s=a.useRef(null),l=J(t,s);return a.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||s.current)}),r?null:a.createElement(R.div,D({},o,{ref:l}))}),$n="PopperContent",[qp,Xp]=Fr($n),[Zp,Jp]=Fr($n,{hasParent:!1,positionUpdateFns:new Set}),Qp=a.forwardRef((e,t)=>{var n,r,o,i,s,l,d,f;const{__scopePopper:u,side:p="bottom",sideOffset:$=0,align:b="center",alignOffset:h=0,arrowPadding:m=0,collisionBoundary:v=[],collisionPadding:y=0,sticky:_="partial",hideWhenDetached:w=!1,avoidCollisions:g=!0,...O}=e,L=zi($n,u),[C,A]=a.useState(null),F=J(t,Ee=>A(Ee)),[W,P]=a.useState(null),V=mn(W),S=(n=V==null?void 0:V.width)!==null&&n!==void 0?n:0,E=(r=V==null?void 0:V.height)!==null&&r!==void 0?r:0,U=p+(b!=="center"?"-"+b:""),Y=typeof y=="number"?y:{top:0,right:0,bottom:0,left:0,...y},ae=Array.isArray(v)?v:[v],ie=ae.length>0,H={padding:Y,boundary:ae.filter(ob),altBoundary:ie},{reference:z,floating:K,strategy:Q,x:G,y:Z,placement:ne,middlewareData:se,update:ue}=Wp({strategy:"fixed",placement:U,whileElementsMounted:Bp,middleware:[wp({mainAxis:$+E,alignmentAxis:h}),g?Ep({mainAxis:!0,crossAxis:!1,limiter:_==="partial"?Pp():void 0,...H}):void 0,W?Hp({element:W,padding:m}):void 0,g?_p({...H}):void 0,ab({arrowWidth:S,arrowHeight:E}),w?yp({strategy:"referenceHidden"}):void 0].filter(rb)});pe(()=>{z(L.anchor)},[z,L.anchor]);const fe=G!==null&&Z!==null,[Ve,Ye]=Bi(ne),qe=(o=se.arrow)===null||o===void 0?void 0:o.x,Xe=(i=se.arrow)===null||i===void 0?void 0:i.y,st=((s=se.arrow)===null||s===void 0?void 0:s.centerOffset)!==0,[ke,_e]=a.useState();pe(()=>{C&&_e(window.getComputedStyle(C).zIndex)},[C]);const{hasParent:De,positionUpdateFns:le}=Jp($n,u),ce=!De;a.useLayoutEffect(()=>{if(!ce)return le.add(ue),()=>{le.delete(ue)}},[ce,le,ue]),a.useLayoutEffect(()=>{ce&&fe&&Array.from(le).reverse().forEach(Ee=>requestAnimationFrame(Ee))},[ce,fe,le]);const we={"data-side":Ve,"data-align":Ye,...O,ref:F,style:{...O.style,animation:fe?void 0:"none",opacity:(l=se.hide)!==null&&l!==void 0&&l.referenceHidden?0:void 0}};return a.createElement("div",{ref:K,"data-radix-popper-content-wrapper":"",style:{position:Q,left:0,top:0,transform:fe?`translate3d(${Math.round(G)}px, ${Math.round(Z)}px, 0)`:"translate3d(0, -200%, 0)",minWidth:"max-content",zIndex:ke,["--radix-popper-transform-origin"]:[(d=se.transformOrigin)===null||d===void 0?void 0:d.x,(f=se.transformOrigin)===null||f===void 0?void 0:f.y].join(" ")}},a.createElement(qp,{scope:u,placedSide:Ve,onArrowChange:P,arrowX:qe,arrowY:Xe,shouldHideArrow:st},ce?a.createElement(Zp,{scope:u,hasParent:!0,positionUpdateFns:le},a.createElement(R.div,we)):a.createElement(R.div,we)))}),eb="PopperArrow",tb={top:"bottom",right:"left",bottom:"top",left:"right"},nb=a.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,i=Xp(eb,r),s=tb[i.placedSide];return a.createElement("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]: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}},a.createElement(Kp,D({},o,{ref:n,style:{...o.style,display:"block"}})))});function rb(e){return e!==void 0}function ob(e){return e!==null}const ab=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,s;const{placement:l,rects:d,middlewareData:f}=t,p=((n=f.arrow)===null||n===void 0?void 0:n.centerOffset)!==0,$=p?0:e.arrowWidth,b=p?0:e.arrowHeight,[h,m]=Bi(l),v={start:"0%",center:"50%",end:"100%"}[m],y=((r=(o=f.arrow)===null||o===void 0?void 0:o.x)!==null&&r!==void 0?r:0)+$/2,_=((i=(s=f.arrow)===null||s===void 0?void 0:s.y)!==null&&i!==void 0?i:0)+b/2;let w="",g="";return h==="bottom"?(w=p?v:`${y}px`,g=`${-b}px`):h==="top"?(w=p?v:`${y}px`,g=`${d.floating.height+b}px`):h==="right"?(w=`${-b}px`,g=p?v:`${_}px`):h==="left"&&(w=`${d.floating.width+b}px`,g=p?v:`${_}px`),{data:{x:w,y:g}}}});function Bi(e){const[t,n="center"]=e.split("-");return[t,n]}const Vi=jp,Ri=Yp,Wi=Qp,Hi=nb,Ki="Popover",[Ui,Nh]=ge(Ki,[gn]),hn=gn(),[ib,at]=Ui(Ki),sb=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:s=!1}=e,l=hn(t),d=a.useRef(null),[f,u]=a.useState(!1),[p=!1,$]=Pe({prop:r,defaultProp:o,onChange:i});return a.createElement(Vi,l,a.createElement(ib,{scope:t,contentId:Le(),triggerRef:d,open:p,onOpenChange:$,onOpenToggle:a.useCallback(()=>$(b=>!b),[$]),hasCustomAnchor:f,onCustomAnchorAdd:a.useCallback(()=>u(!0),[]),onCustomAnchorRemove:a.useCallback(()=>u(!1),[]),modal:s},n))},lb="PopoverTrigger",cb=a.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=at(lb,n),i=hn(n),s=J(t,o.triggerRef),l=a.createElement(R.button,D({type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":qi(o.open)},r,{ref:s,onClick:B(e.onClick,o.onOpenToggle)}));return o.hasCustomAnchor?l:a.createElement(Ri,D({asChild:!0},i),l)}),ji="PopoverPortal",[db,ub]=Ui(ji,{forceMount:void 0}),fb=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,i=at(ji,t);return a.createElement(db,{scope:t,forceMount:n},a.createElement(ye,{present:n||i.open},a.createElement(kt,{asChild:!0,container:o},r)))},Lt="PopoverContent",Gi=a.forwardRef((e,t)=>{const n=ub(Lt,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,i=at(Lt,e.__scopePopover);return a.createElement(ye,{present:r||i.open},i.modal?a.createElement(pb,D({},o,{ref:t})):a.createElement(bb,D({},o,{ref:t})))}),pb=a.forwardRef((e,t)=>{const n=at(Lt,e.__scopePopover),r=a.useRef(null),o=J(t,r),i=a.useRef(!1);return a.useEffect(()=>{const s=r.current;if(s)return Qn(s)},[]),a.createElement(Zn,{as:et,allowPinchZoom:!0},a.createElement(Yi,D({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:B(e.onCloseAutoFocus,s=>{var l;s.preventDefault(),i.current||(l=n.triggerRef.current)===null||l===void 0||l.focus()}),onPointerDownOutside:B(e.onPointerDownOutside,s=>{const l=s.detail.originalEvent,d=l.button===0&&l.ctrlKey===!0,f=l.button===2||d;i.current=f},{checkForDefaultPrevented:!1}),onFocusOutside:B(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1})})))}),bb=a.forwardRef((e,t)=>{const n=at(Lt,e.__scopePopover),r=a.useRef(!1);return a.createElement(Yi,D({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{var i;if((i=e.onCloseAutoFocus)===null||i===void 0||i.call(e,o),!o.defaultPrevented){var s;r.current||(s=n.triggerRef.current)===null||s===void 0||s.focus(),o.preventDefault()}r.current=!1},onInteractOutside:o=>{var i,s;(i=e.onInteractOutside)===null||i===void 0||i.call(e,o),o.defaultPrevented||(r.current=!0);const l=o.target;((s=n.triggerRef.current)===null||s===void 0?void 0:s.contains(l))&&o.preventDefault()}}))}),Yi=a.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,disableOutsidePointerEvents:s,onEscapeKeyDown:l,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:u,...p}=e,$=at(Lt,n),b=hn(n);return Un(),a.createElement(Hn,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i},a.createElement(St,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:u,onEscapeKeyDown:l,onPointerDownOutside:d,onFocusOutside:f,onDismiss:()=>$.onOpenChange(!1)},a.createElement(Wi,D({"data-state":qi($.open),role:"dialog",id:$.contentId},b,p,{ref:t,style:{...p.style,["--radix-popover-content-transform-origin"]:"var(--radix-popper-transform-origin)"}}))))}),mb="PopoverClose",gb=a.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=at(mb,n);return a.createElement(R.button,D({type:"button"},r,{ref:t,onClick:B(e.onClick,()=>o.onOpenChange(!1))}))}),$b=a.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=hn(n);return a.createElement(Hi,D({},o,r,{ref:t}))});function qi(e){return e?"open":"closed"}const hb=sb,vb=cb,_b=fb,yb=Gi,xb=gb,wb=$b,Eb=k.default(yb)`
198
- border-radius: ${c.border_radius_400};
196
+ gap: ${f.sizing_200};
197
+ `,G0=x0,q0=w0,Y0=C0,X0=T0,Or=l.forwardRef((e,t)=>l.createElement(Q.span,C({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}))),Ya=Or,J0=({children:e,label:t})=>{const r=l.Children.only(e);return l.createElement(l.Fragment,null,l.cloneElement(r,{"aria-hidden":"true",focusable:"false"}),l.createElement(Ya,null,t))};function qt({children:e,label:t}){return T(J0,{label:t,children:e})}function Xa(e,t,r){let[n,o]=l.useState(e||t),i=l.useRef(e!==void 0),a=i.current,s=e!==void 0,c=l.useRef(n);a!==s&&console.warn(`WARN: A component changed from ${a?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}.`),i.current=s;let u=l.useCallback((d,...p)=>{let b=(h,...v)=>{r&&(Object.is(c.current,h)||r(h,...v)),s||(c.current=h)};typeof d=="function"?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),o((v,...m)=>{let y=d(s?c.current:v,...m);return b(y,...p),s?v:y})):(s||o(d),b(d,...p))},[s,r]);return s?c.current=e:e=n,[e,u]}function Z0(e,t=-1/0,r=1/0){return Math.min(Math.max(e,t),r)}function pt(e,t,r,n){let o=(e-(isNaN(t)?0:t))%n,i=Math.abs(o)*2>=n?e+Math.sign(o)*(n-Math.abs(o)):e-o;isNaN(t)?!isNaN(r)&&i>r&&(i=Math.floor(r/n)*n):i<t?i=t:!isNaN(r)&&i>r&&(i=t+Math.floor((r-t)/n)*n);let a=n.toString(),s=a.indexOf("."),c=s>=0?a.length-s:0;if(c>0){let u=Math.pow(10,c);i=Math.round(i*u)/u}return i}const qn={prefix:String(Math.round(Math.random()*1e10)),current:0},Ja=ie.default.createContext(qn);let Q0=Boolean(typeof window<"u"&&window.document&&window.document.createElement);function eb(e){let t=l.useContext(Ja);return t===qn&&!Q0&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server."),l.useMemo(()=>e||`react-aria${t.prefix}-${++t.current}`,[e])}function tb(){let t=l.useContext(Ja)!==qn,[r,n]=l.useState(t);return typeof window<"u"&&t&&l.useLayoutEffect(()=>{n(!1)},[]),r}function Za(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=Za(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function Qa(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=Za(e))&&(n&&(n+=" "),n+=t);return n}const Ct=typeof window<"u"?ie.default.useLayoutEffect:()=>{};function rb(e){let[t,r]=l.useState(e),n=l.useRef(t),o=l.useRef(null);n.current=t;let i=l.useRef(null);i.current=()=>{let s=o.current.next();if(s.done){o.current=null;return}t===s.value?i.current():r(s.value)},Ct(()=>{o.current&&i.current()});let a=l.useCallback(s=>{o.current=s(n.current),i.current()},[o,i]);return[t,a]}let kr=new Map;function ht(e){let[t,r]=l.useState(e),n=l.useRef(null),o=eb(t),i=l.useCallback(a=>{n.current=a},[]);return kr.set(o,i),Ct(()=>{let a=o;return()=>{kr.delete(a)}},[o]),l.useEffect(()=>{let a=n.current;a&&(n.current=null,r(a))}),o}function nb(e,t){if(e===t)return e;let r=kr.get(e);if(r)return r(t),t;let n=kr.get(t);return n?(n(e),e):t}function es(e=[]){let t=ht(),[r,n]=rb(t),o=l.useCallback(()=>{n(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,n]);return Ct(o,[t,o,...e]),r}function ts(...e){return(...t)=>{for(let r of e)typeof r=="function"&&r(...t)}}function we(...e){let t={...e[0]};for(let r=1;r<e.length;r++){let n=e[r];for(let o in n){let i=t[o],a=n[o];typeof i=="function"&&typeof a=="function"&&o[0]==="o"&&o[1]==="n"&&o.charCodeAt(2)>=65&&o.charCodeAt(2)<=90?t[o]=ts(i,a):(o==="className"||o==="UNSAFE_className")&&typeof i=="string"&&typeof a=="string"?t[o]=Qa(i,a):o==="id"&&i&&a?t.id=nb(i,a):t[o]=a!==void 0?a:i}}return t}const ob=new Set(["id"]),ib=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),ab=/^(data-.*)$/;function Yt(e,t={}){let{labelable:r,propNames:n}=t,o={};for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(ob.has(i)||r&&ib.has(i)||(n==null?void 0:n.has(i))||ab.test(i))&&(o[i]=e[i]);return o}function Tt(e){if(sb())e.focus({preventScroll:!0});else{let t=lb(e);e.focus(),cb(t)}}let Dr=null;function sb(){if(Dr==null){Dr=!1;try{var e=document.createElement("div");e.focus({get preventScroll(){return Dr=!0,!0}})}catch{}}return Dr}function lb(e){for(var t=e.parentNode,r=[],n=document.scrollingElement||document.documentElement;t instanceof HTMLElement&&t!==n;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&r.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return n instanceof HTMLElement&&r.push({element:n,scrollTop:n.scrollTop,scrollLeft:n.scrollLeft}),r}function cb(e){for(let{element:t,scrollTop:r,scrollLeft:n}of e)t.scrollTop=r,t.scrollLeft=n}let Ot=new Map,Yn=new Set;function rs(){if(typeof window>"u")return;let e=r=>{let n=Ot.get(r.target);n||(n=new Set,Ot.set(r.target,n),r.target.addEventListener("transitioncancel",t)),n.add(r.propertyName)},t=r=>{let n=Ot.get(r.target);if(!!n&&(n.delete(r.propertyName),n.size===0&&(r.target.removeEventListener("transitioncancel",t),Ot.delete(r.target)),Ot.size===0)){for(let o of Yn)o();Yn.clear()}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",t)}typeof document<"u"&&(document.readyState!=="loading"?rs():document.addEventListener("DOMContentLoaded",rs));function ns(e){requestAnimationFrame(()=>{Ot.size===0?e():Yn.add(e)})}function os(){let e=l.useRef(new Map),t=l.useCallback((o,i,a,s)=>{let c=s!=null&&s.once?(...u)=>{e.current.delete(a),a(...u)}:a;e.current.set(a,{type:i,eventTarget:o,fn:c,options:s}),o.addEventListener(i,a,s)},[]),r=l.useCallback((o,i,a,s)=>{var c;let u=((c=e.current.get(a))===null||c===void 0?void 0:c.fn)||a;o.removeEventListener(i,u,s),e.current.delete(a)},[]),n=l.useCallback(()=>{e.current.forEach((o,i)=>{r(o.eventTarget,o.type,i,o.options)})},[r]);return l.useEffect(()=>n,[n]),{addGlobalListener:t,removeGlobalListener:r,removeAllGlobalListeners:n}}function ub(e,t){let{id:r,"aria-label":n,"aria-labelledby":o}=e;return r=ht(r),o&&n?o=[...new Set([...o.trim().split(/\s+/),r])].join(" "):o&&(o=o.trim().split(/\s+/).join(" ")),!n&&!o&&t&&(n=t),{id:r,"aria-label":n,"aria-labelledby":o}}function bt(e){const t=l.useRef();return Ct(()=>{!e||(typeof e=="function"?e(t.current):e.current=t.current)},[e]),t}function is(e,t){Ct(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref.current=null}},[e,t])}function db(e){var t;return typeof window>"u"||window.navigator==null?!1:((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands.some(r=>e.test(r.brand)))||e.test(window.navigator.userAgent)}function Xn(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function as(){return Xn(/^Mac/i)}function ss(){return Xn(/^iPhone/i)}function fb(){return Xn(/^iPad/i)||as()&&navigator.maxTouchPoints>1}function Jn(){return ss()||fb()}function ls(){return db(/Android/i)}function pb(e,t,r,n){let o=l.useRef(r);o.current=r;let i=r==null;l.useEffect(()=>{if(i)return;let a=e.current,s=c=>o.current.call(this,c);return a.addEventListener(t,s,n),()=>{a.removeEventListener(t,s,n)}},[e,t,n,i])}function Zn(e){return e.mozInputSource===0&&e.isTrusted?!0:ls()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function hb(e){return e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function Qn(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}let kt="default",eo="",Ir=new WeakMap;function cs(e){Jn()?(kt==="default"&&(eo=document.documentElement.style.webkitUserSelect,document.documentElement.style.webkitUserSelect="none"),kt="disabled"):(e instanceof HTMLElement||e instanceof SVGElement)&&(Ir.set(e,e.style.userSelect),e.style.userSelect="none")}function Ar(e){if(Jn()){if(kt!=="disabled")return;kt="restoring",setTimeout(()=>{ns(()=>{kt==="restoring"&&(document.documentElement.style.webkitUserSelect==="none"&&(document.documentElement.style.webkitUserSelect=eo||""),eo="",kt="default")})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&Ir.has(e)){let t=Ir.get(e);e.style.userSelect==="none"&&(e.style.userSelect=t),e.getAttribute("style")===""&&e.removeAttribute("style"),Ir.delete(e)}}const us=ie.default.createContext(null);us.displayName="PressResponderContext";function bb(e){let t=l.useContext(us);if(t){let{register:r,...n}=t;e=we(n,e),r()}return is(t,e.ref),e}function to(e){let{onPress:t,onPressChange:r,onPressStart:n,onPressEnd:o,onPressUp:i,isDisabled:a,isPressed:s,preventFocusOnPress:c,shouldCancelOnPointerExit:u,allowTextSelectionOnPress:d,ref:p,...b}=bb(e),h=l.useRef(null);h.current={onPress:t,onPressChange:r,onPressStart:n,onPressEnd:o,onPressUp:i,isDisabled:a,shouldCancelOnPointerExit:u};let[v,m]=l.useState(!1),y=l.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:$,removeAllGlobalListeners:_}=os(),w=l.useMemo(()=>{let g=y.current,D=(S,Y)=>{let{onPressStart:I,onPressChange:P,isDisabled:re}=h.current;re||g.didFirePressStart||(I&&I({type:"pressstart",pointerType:Y,target:S.currentTarget,shiftKey:S.shiftKey,metaKey:S.metaKey,ctrlKey:S.ctrlKey,altKey:S.altKey}),P&&P(!0),g.didFirePressStart=!0,m(!0))},M=(S,Y,I=!0)=>{let{onPressEnd:P,onPressChange:re,onPress:Z,isDisabled:fe}=h.current;!g.didFirePressStart||(g.ignoreClickAfterPress=!0,g.didFirePressStart=!1,P&&P({type:"pressend",pointerType:Y,target:S.currentTarget,shiftKey:S.shiftKey,metaKey:S.metaKey,ctrlKey:S.ctrlKey,altKey:S.altKey}),re&&re(!1),m(!1),Z&&I&&!fe&&Z({type:"press",pointerType:Y,target:S.currentTarget,shiftKey:S.shiftKey,metaKey:S.metaKey,ctrlKey:S.ctrlKey,altKey:S.altKey}))},O=(S,Y)=>{let{onPressUp:I,isDisabled:P}=h.current;P||I&&I({type:"pressup",pointerType:Y,target:S.currentTarget,shiftKey:S.shiftKey,metaKey:S.metaKey,ctrlKey:S.ctrlKey,altKey:S.altKey})},N=S=>{g.isPressed&&(g.isOverTarget&&M(Ge(g.target,S),g.pointerType,!1),g.isPressed=!1,g.isOverTarget=!1,g.activePointerId=null,g.pointerType=null,_(),d||Ar(g.target))},F={onKeyDown(S){no(S.nativeEvent,S.currentTarget)&&S.currentTarget.contains(S.target)?(fs(S.target,S.key)&&S.preventDefault(),S.stopPropagation(),!g.isPressed&&!S.repeat&&(g.target=S.currentTarget,g.isPressed=!0,D(S,"keyboard"),$(document,"keyup",G,!1))):S.key==="Enter"&&ro(S.currentTarget)&&S.stopPropagation()},onKeyUp(S){no(S.nativeEvent,S.currentTarget)&&!S.repeat&&S.currentTarget.contains(S.target)&&O(Ge(g.target,S),"keyboard")},onClick(S){S&&!S.currentTarget.contains(S.target)||S&&S.button===0&&(S.stopPropagation(),a&&S.preventDefault(),!g.ignoreClickAfterPress&&!g.ignoreEmulatedMouseEvents&&(g.pointerType==="virtual"||Zn(S.nativeEvent))&&(!a&&!c&&Tt(S.currentTarget),D(S,"virtual"),O(S,"virtual"),M(S,"virtual")),g.ignoreEmulatedMouseEvents=!1,g.ignoreClickAfterPress=!1)}},G=S=>{if(g.isPressed&&no(S,g.target)){fs(S.target,S.key)&&S.preventDefault(),S.stopPropagation(),g.isPressed=!1;let Y=S.target;M(Ge(g.target,S),"keyboard",g.target.contains(Y)),_(),g.target instanceof HTMLElement&&g.target.contains(Y)&&(ro(g.target)||g.target.getAttribute("role")==="link")&&g.target.click()}};if(typeof PointerEvent<"u"){F.onPointerDown=P=>{if(!(P.button!==0||!P.currentTarget.contains(P.target))){if(hb(P.nativeEvent)){g.pointerType="virtual";return}oo(P.currentTarget)&&P.preventDefault(),g.pointerType=P.pointerType,P.stopPropagation(),g.isPressed||(g.isPressed=!0,g.isOverTarget=!0,g.activePointerId=P.pointerId,g.target=P.currentTarget,!a&&!c&&Tt(P.currentTarget),d||cs(g.target),D(P,g.pointerType),$(document,"pointermove",S,!1),$(document,"pointerup",Y,!1),$(document,"pointercancel",I,!1))}},F.onMouseDown=P=>{!P.currentTarget.contains(P.target)||P.button===0&&(oo(P.currentTarget)&&P.preventDefault(),P.stopPropagation())},F.onPointerUp=P=>{!P.currentTarget.contains(P.target)||g.pointerType==="virtual"||P.button===0&&Dt(P,P.currentTarget)&&O(P,g.pointerType||P.pointerType)};let S=P=>{P.pointerId===g.activePointerId&&(Dt(P,g.target)?g.isOverTarget||(g.isOverTarget=!0,D(Ge(g.target,P),g.pointerType)):g.isOverTarget&&(g.isOverTarget=!1,M(Ge(g.target,P),g.pointerType,!1),h.current.shouldCancelOnPointerExit&&N(P)))},Y=P=>{P.pointerId===g.activePointerId&&g.isPressed&&P.button===0&&(Dt(P,g.target)?M(Ge(g.target,P),g.pointerType):g.isOverTarget&&M(Ge(g.target,P),g.pointerType,!1),g.isPressed=!1,g.isOverTarget=!1,g.activePointerId=null,g.pointerType=null,_(),d||Ar(g.target))},I=P=>{N(P)};F.onDragStart=P=>{!P.currentTarget.contains(P.target)||N(P)}}else{F.onMouseDown=I=>{I.button!==0||!I.currentTarget.contains(I.target)||(oo(I.currentTarget)&&I.preventDefault(),I.stopPropagation(),!g.ignoreEmulatedMouseEvents&&(g.isPressed=!0,g.isOverTarget=!0,g.target=I.currentTarget,g.pointerType=Zn(I.nativeEvent)?"virtual":"mouse",!a&&!c&&Tt(I.currentTarget),D(I,g.pointerType),$(document,"mouseup",S,!1)))},F.onMouseEnter=I=>{!I.currentTarget.contains(I.target)||(I.stopPropagation(),g.isPressed&&!g.ignoreEmulatedMouseEvents&&(g.isOverTarget=!0,D(I,g.pointerType)))},F.onMouseLeave=I=>{!I.currentTarget.contains(I.target)||(I.stopPropagation(),g.isPressed&&!g.ignoreEmulatedMouseEvents&&(g.isOverTarget=!1,M(I,g.pointerType,!1),h.current.shouldCancelOnPointerExit&&N(I)))},F.onMouseUp=I=>{!I.currentTarget.contains(I.target)||!g.ignoreEmulatedMouseEvents&&I.button===0&&O(I,g.pointerType)};let S=I=>{if(I.button===0){if(g.isPressed=!1,_(),g.ignoreEmulatedMouseEvents){g.ignoreEmulatedMouseEvents=!1;return}Dt(I,g.target)?M(Ge(g.target,I),g.pointerType):g.isOverTarget&&M(Ge(g.target,I),g.pointerType,!1),g.isOverTarget=!1}};F.onTouchStart=I=>{if(!I.currentTarget.contains(I.target))return;I.stopPropagation();let P=mb(I.nativeEvent);!P||(g.activePointerId=P.identifier,g.ignoreEmulatedMouseEvents=!0,g.isOverTarget=!0,g.isPressed=!0,g.target=I.currentTarget,g.pointerType="touch",!a&&!c&&Tt(I.currentTarget),d||cs(g.target),D(I,g.pointerType),$(window,"scroll",Y,!0))},F.onTouchMove=I=>{if(!I.currentTarget.contains(I.target)||(I.stopPropagation(),!g.isPressed))return;let P=ds(I.nativeEvent,g.activePointerId);P&&Dt(P,I.currentTarget)?g.isOverTarget||(g.isOverTarget=!0,D(I,g.pointerType)):g.isOverTarget&&(g.isOverTarget=!1,M(I,g.pointerType,!1),h.current.shouldCancelOnPointerExit&&N(I))},F.onTouchEnd=I=>{if(!I.currentTarget.contains(I.target)||(I.stopPropagation(),!g.isPressed))return;let P=ds(I.nativeEvent,g.activePointerId);P&&Dt(P,I.currentTarget)?(O(I,g.pointerType),M(I,g.pointerType)):g.isOverTarget&&M(I,g.pointerType,!1),g.isPressed=!1,g.activePointerId=null,g.isOverTarget=!1,g.ignoreEmulatedMouseEvents=!0,d||Ar(g.target),_()},F.onTouchCancel=I=>{!I.currentTarget.contains(I.target)||(I.stopPropagation(),g.isPressed&&N(I))};let Y=I=>{g.isPressed&&I.target.contains(g.target)&&N({currentTarget:g.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};F.onDragStart=I=>{!I.currentTarget.contains(I.target)||N(I)}}return F},[$,a,c,_,d]);return l.useEffect(()=>()=>{d||Ar(y.current.target)},[d]),{isPressed:s||v,pressProps:we(b,w)}}function ro(e){return e.tagName==="A"&&e.hasAttribute("href")}function no(e,t){const{key:r,code:n}=e,o=t,i=o.getAttribute("role");return(r==="Enter"||r===" "||r==="Spacebar"||n==="Space")&&!(o instanceof HTMLInputElement&&!ps(o,r)||o instanceof HTMLTextAreaElement||o.isContentEditable)&&(!ro(o)||i==="button"&&r!=="Enter")&&!(i==="link"&&r!=="Enter")}function mb(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function ds(e,t){const r=e.changedTouches;for(let n=0;n<r.length;n++){const o=r[n];if(o.identifier===t)return o}return null}function Ge(e,t){return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey}}function vb(e){let t=e.width/2||e.radiusX||0,r=e.height/2||e.radiusY||0;return{top:e.clientY-r,right:e.clientX+t,bottom:e.clientY+r,left:e.clientX-t}}function gb(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function Dt(e,t){let r=t.getBoundingClientRect(),n=vb(e);return gb(r,n)}function oo(e){return!(e instanceof HTMLElement)||!e.draggable}function fs(e,t){return e instanceof HTMLInputElement?!ps(e,t):e instanceof HTMLButtonElement?e.type!=="submit":!0}const yb=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function ps(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":yb.has(e.type)}class _b{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(t,r){this.nativeEvent=r,this.target=r.target,this.currentTarget=r.currentTarget,this.relatedTarget=r.relatedTarget,this.bubbles=r.bubbles,this.cancelable=r.cancelable,this.defaultPrevented=r.defaultPrevented,this.eventPhase=r.eventPhase,this.isTrusted=r.isTrusted,this.timeStamp=r.timeStamp,this.type=t}}function hs(e){let t=l.useRef({isFocused:!1,onBlur:e,observer:null});return t.current.onBlur=e,Ct(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]),l.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let n=r.target,o=i=>{var a,s;t.current.isFocused=!1,n.disabled&&((s=(a=t.current).onBlur)===null||s===void 0||s.call(a,new _b("blur",i))),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};n.addEventListener("focusout",o,{once:!0}),t.current.observer=new MutationObserver(()=>{t.current.isFocused&&n.disabled&&(t.current.observer.disconnect(),n.dispatchEvent(new FocusEvent("blur")),n.dispatchEvent(new FocusEvent("focusout",{bubbles:!0})))}),t.current.observer.observe(n,{attributes:!0,attributeFilter:["disabled"]})}},[])}function io(e){let{isDisabled:t,onFocus:r,onBlur:n,onFocusChange:o}=e;const i=l.useCallback(c=>{if(c.target===c.currentTarget)return n&&n(c),o&&o(!1),!0},[n,o]),a=hs(i),s=l.useCallback(c=>{c.target===c.currentTarget&&(r&&r(c),o&&o(!0),a(c))},[o,r,a]);return{focusProps:{onFocus:!t&&(r||o||n)?s:void 0,onBlur:!t&&(n||o)?i:null}}}let It=null,ao=new Set,bs=!1,mt=!1,so=!1;const $b={Tab:!0,Escape:!0};function lo(e,t){for(let r of ao)r(e,t)}function xb(e){return!(e.metaKey||!as()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function ms(e){mt=!0,xb(e)&&(It="keyboard",lo("keyboard",e))}function At(e){It="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(mt=!0,lo("pointer",e))}function wb(e){Zn(e)&&(mt=!0,It="virtual")}function Eb(e){e.target===window||e.target===document||(!mt&&!so&&(It="virtual",lo("virtual",e)),mt=!1,so=!1)}function Pb(){mt=!1,so=!0}function co(){if(typeof window>"u"||bs)return;let e=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(){mt=!0,e.apply(this,arguments)},document.addEventListener("keydown",ms,!0),document.addEventListener("keyup",ms,!0),document.addEventListener("click",wb,!0),window.addEventListener("focus",Eb,!0),window.addEventListener("blur",Pb,!1),typeof PointerEvent<"u"?(document.addEventListener("pointerdown",At,!0),document.addEventListener("pointermove",At,!0),document.addEventListener("pointerup",At,!0)):(document.addEventListener("mousedown",At,!0),document.addEventListener("mousemove",At,!0),document.addEventListener("mouseup",At,!0)),bs=!0}typeof document<"u"&&(document.readyState!=="loading"?co():document.addEventListener("DOMContentLoaded",co));function vs(){return It!=="pointer"}function Sb(){return It}function Cb(e,t,r){return!(e&&t==="keyboard"&&r instanceof KeyboardEvent&&!$b[r.key])}function Tb(e,t,r){co(),l.useEffect(()=>{let n=(o,i)=>{!Cb(r==null?void 0:r.isTextInput,o,i)||e(vs())};return ao.add(n),()=>{ao.delete(n)}},t)}function gs(e){let{isDisabled:t,onBlurWithin:r,onFocusWithin:n,onFocusWithinChange:o}=e,i=l.useRef({isFocusWithin:!1}),a=l.useCallback(u=>{i.current.isFocusWithin&&!u.currentTarget.contains(u.relatedTarget)&&(i.current.isFocusWithin=!1,r&&r(u),o&&o(!1))},[r,o,i]),s=hs(a),c=l.useCallback(u=>{i.current.isFocusWithin||(n&&n(u),o&&o(!0),i.current.isFocusWithin=!0,s(u))},[n,o,s]);return t?{focusWithinProps:{onFocus:null,onBlur:null}}:{focusWithinProps:{onFocus:c,onBlur:a}}}function ys(e){if(!e)return;let t=!0;return r=>{let n={...r,preventDefault(){r.preventDefault()},isDefaultPrevented(){return r.isDefaultPrevented()},stopPropagation(){console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.")},continuePropagation(){t=!1}};e(n),t&&r.stopPropagation()}}function Ob(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:ys(e.onKeyDown),onKeyUp:ys(e.onKeyUp)}}}function kb(e,t){let{onScroll:r,isDisabled:n}=e,o=l.useCallback(i=>{i.ctrlKey||(i.preventDefault(),i.stopPropagation(),r&&r({deltaX:i.deltaX,deltaY:i.deltaY}))},[r]);pb(t,"wheel",n?null:o)}function Db(e){if(Sb()==="virtual"){let t=document.activeElement;ns(()=>{document.activeElement===t&&document.contains(e)&&Tt(e)})}else Tt(e)}function Ib(e,t){return t.some(r=>r.contains(e))}class uo{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,r,n){let o=this.fastMap.get(r!=null?r:null),i=new _s({scopeRef:t});o.addChild(i),i.parent=o,this.fastMap.set(t,i),n&&(i.nodeToRestore=n)}removeTreeNode(t){if(t===null)return;let r=this.fastMap.get(t),n=r.parent;for(let i of this.traverse())i!==r&&r.nodeToRestore&&i.nodeToRestore&&r.scopeRef.current&&Ib(i.nodeToRestore,r.scopeRef.current)&&(i.nodeToRestore=r.nodeToRestore);let o=r.children;n.removeChild(r),o.length>0&&o.forEach(i=>n.addChild(i)),this.fastMap.delete(r.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.length>0)for(let r of t.children)yield*this.traverse(r)}clone(){let t=new uo;for(let r of this.traverse())t.addTreeNode(r.scopeRef,r.parent.scopeRef,r.nodeToRestore);return t}constructor(){Qn(this,"fastMap",new Map),this.root=new _s({scopeRef:null}),this.fastMap.set(null,this.root)}}class _s{addChild(t){this.children.push(t),t.parent=this}removeChild(t){this.children.splice(this.children.indexOf(t),1),t.parent=void 0}constructor(t){Qn(this,"children",[]),Qn(this,"contain",!1),this.scopeRef=t.scopeRef}}new uo;function Nr(e={}){let{autoFocus:t=!1,isTextInput:r,within:n}=e,o=l.useRef({isFocused:!1,isFocusVisible:t||vs()}),[i,a]=l.useState(!1),[s,c]=l.useState(()=>o.current.isFocused&&o.current.isFocusVisible),u=l.useCallback(()=>c(o.current.isFocused&&o.current.isFocusVisible),[]),d=l.useCallback(h=>{o.current.isFocused=h,a(h),u()},[u]);Tb(h=>{o.current.isFocusVisible=h,u()},[],{isTextInput:r});let{focusProps:p}=io({isDisabled:n,onFocusChange:d}),{focusWithinProps:b}=gs({isDisabled:!n,onFocusWithinChange:d});return{isFocused:i,isFocusVisible:o.current.isFocused&&s,focusProps:n?b:p}}let Ab=ie.default.createContext(null);function Nb(e){let t=l.useContext(Ab)||{};is(t,e);let{ref:r,...n}=t;return n}function fo(e,t){let{focusProps:r}=io(e),{keyboardProps:n}=Ob(e),o=we(r,n),i=Nb(t),a=e.isDisabled?{}:i,s=l.useRef(e.autoFocus);return l.useEffect(()=>{s.current&&t.current&&Db(t.current),s.current=!1},[t]),{focusableProps:we({...o,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},a)}}function Mb(e,t){let{elementType:r="a",onPress:n,onPressStart:o,onPressEnd:i,onClick:a,isDisabled:s,...c}=e,u;r!=="a"&&(u={role:"link",tabIndex:s?void 0:0});let{focusableProps:d}=fo(e,t),{pressProps:p,isPressed:b}=to({onPress:n,onPressStart:o,onPressEnd:i,isDisabled:s,ref:t}),h=Yt(c,{labelable:!0}),v=we(d,p);return{isPressed:b,linkProps:we(h,{...v,...u,"aria-disabled":s||void 0,onClick:m=>{p.onClick(m),a&&(a(m),console.warn("onClick is deprecated, please use onPress"))}})}}class Lb{getStringForLocale(t,r){let n=this.strings[r];n||(n=Fb(r,this.strings,this.defaultLocale),this.strings[r]=n);let o=n[t];if(!o)throw new Error(`Could not find intl message ${t} in ${r} locale`);return o}constructor(t,r="en-US"){this.strings={...t},this.defaultLocale=r}}function Fb(e,t,r="en-US"){if(t[e])return t[e];let n=Rb(e);if(t[n])return t[n];for(let o in t)if(o.startsWith(n+"-"))return t[o];return t[r]}function Rb(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const $s=new Map,xs=new Map;class zb{format(t,r){let n=this.strings.getStringForLocale(t,this.locale);return typeof n=="function"?n(r,this):n}plural(t,r,n="cardinal"){let o=r["="+t];if(o)return typeof o=="function"?o():o;let i=this.locale+":"+n,a=$s.get(i);a||(a=new Intl.PluralRules(this.locale,{type:n}),$s.set(i,a));let s=a.select(t);return o=r[s]||r.other,typeof o=="function"?o():o}number(t){let r=xs.get(this.locale);return r||(r=new Intl.NumberFormat(this.locale),xs.set(this.locale,r)),r.format(t)}select(t,r){let n=t[r]||t.other;return typeof n=="function"?n():n}constructor(t,r){this.locale=t,this.strings=r}}let po=new Map,ho=!1;try{ho=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let Mr=!1;try{Mr=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const ws={degree:{narrow:{default:"\xB0","ja-JP":" \u5EA6","zh-TW":"\u5EA6","sl-SI":" \xB0"}}};class bo{format(t){let r="";if(!ho&&this.options.signDisplay!=null?r=jb(this.numberFormatter,this.options.signDisplay,t):r=this.numberFormatter.format(t),this.options.style==="unit"&&!Mr){var n;let{unit:o,unitDisplay:i="short",locale:a}=this.resolvedOptions(),s=(n=ws[o])===null||n===void 0?void 0:n[i];r+=s[a]||s.default}return r}formatToParts(t){return this.numberFormatter.formatToParts(t)}formatRange(t,r){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(t,r);if(r<t)throw new RangeError("End date must be >= start date");return`${this.format(t)} \u2013 ${this.format(r)}`}formatRangeToParts(t,r){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(t,r);if(r<t)throw new RangeError("End date must be >= start date");let n=this.numberFormatter.formatToParts(t),o=this.numberFormatter.formatToParts(r);return[...n.map(i=>({...i,source:"startRange"})),{type:"literal",value:" \u2013 ",source:"shared"},...o.map(i=>({...i,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return!ho&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!Mr&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}constructor(t,r={}){this.numberFormatter=Vb(t,r),this.options=r}}function Vb(e,t={}){let{numberingSystem:r}=t;if(r&&e.indexOf("-u-nu-")===-1&&(e=`${e}-u-nu-${r}`),t.style==="unit"&&!Mr){var n;let{unit:a,unitDisplay:s="short"}=t;if(!a)throw new Error('unit option must be provided with style: "unit"');if(!(!((n=ws[a])===null||n===void 0)&&n[s]))throw new Error(`Unsupported unit ${a} with unitDisplay = ${s}`);t={...t,style:"decimal"}}let o=e+(t?Object.entries(t).sort((a,s)=>a[0]<s[0]?-1:1).join():"");if(po.has(o))return po.get(o);let i=new Intl.NumberFormat(e,t);return po.set(o,i),i}function jb(e,t,r){if(t==="auto")return e.format(r);if(t==="never")return e.format(Math.abs(r));{let n=!1;if(t==="always"?n=r>0||Object.is(r,0):t==="exceptZero"&&(Object.is(r,-0)||Object.is(r,0)?r=Math.abs(r):n=r>0),n){let o=e.format(-r),i=e.format(r),a=o.replace(i,"").replace(/\u200e|\u061C/,"");return[...a].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),o.replace(i,"!!!").replace(a,"+").replace("!!!",i)}else return e.format(r)}}const Bb=new RegExp("^.*\\(.*\\).*$"),Wb=["latn","arab","hanidec"];class Ub{parse(t){return mo(this.locale,this.options,t).parse(t)}isValidPartialNumber(t,r,n){return mo(this.locale,this.options,t).isValidPartialNumber(t,r,n)}getNumberingSystem(t){return mo(this.locale,this.options,t).options.numberingSystem}constructor(t,r={}){this.locale=t,this.options=r}}const Es=new Map;function mo(e,t,r){let n=Ps(e,t);if(!e.includes("-nu-")&&!n.isValidPartialNumber(r)){for(let o of Wb)if(o!==n.options.numberingSystem){let i=Ps(e+(e.includes("-u-")?"-nu-":"-u-nu-")+o,t);if(i.isValidPartialNumber(r))return i}}return n}function Ps(e,t){let r=e+(t?Object.entries(t).sort((o,i)=>o[0]<i[0]?-1:1).join():""),n=Es.get(r);return n||(n=new Kb(e,t),Es.set(r,n)),n}class Kb{parse(t){let r=this.sanitize(t);r=Lr(r,this.symbols.group,"").replace(this.symbols.decimal,".").replace(this.symbols.minusSign,"-").replace(this.symbols.numeral,this.symbols.index);let n=r?+r:NaN;if(isNaN(n))return NaN;if(this.options.currencySign==="accounting"&&Bb.test(t)&&(n=-1*n),this.options.style==="percent"){n/=100;var o;n=+n.toFixed(((o=this.options.maximumFractionDigits)!==null&&o!==void 0?o:0)+2)}return n}sanitize(t){return t=t.replace(this.symbols.literals,""),t=t.replace("-",this.symbols.minusSign),this.options.numberingSystem==="arab"&&(t=t.replace(",",this.symbols.decimal),t=t.replace(String.fromCharCode(1548),this.symbols.decimal),t=Lr(t,".",this.symbols.group)),this.options.locale==="fr-FR"&&(t=Lr(t,".",String.fromCharCode(8239))),t}isValidPartialNumber(t,r=-1/0,n=1/0){return t=this.sanitize(t),t.startsWith(this.symbols.minusSign)&&r<0?t=t.slice(this.symbols.minusSign.length):this.symbols.plusSign&&t.startsWith(this.symbols.plusSign)&&n>0&&(t=t.slice(this.symbols.plusSign.length)),t.startsWith(this.symbols.group)?!1:(t=Lr(t,this.symbols.group,"").replace(this.symbols.numeral,"").replace(this.symbols.decimal,""),t.length===0)}constructor(t,r={}){this.formatter=new Intl.NumberFormat(t,r),this.options=this.formatter.resolvedOptions(),this.symbols=Hb(this.formatter,this.options,r)}}const Ss=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]);function Hb(e,t,r){var n,o,i,a;let s=e.formatToParts(-10000.111),c=e.formatToParts(10000.111),u=e.formatToParts(1);var d;let p=(d=(n=s.find(O=>O.type==="minusSign"))===null||n===void 0?void 0:n.value)!==null&&d!==void 0?d:"-",b=(o=c.find(O=>O.type==="plusSign"))===null||o===void 0?void 0:o.value;!b&&((r==null?void 0:r.signDisplay)==="exceptZero"||(r==null?void 0:r.signDisplay)==="always")&&(b="+");let h=(i=s.find(O=>O.type==="decimal"))===null||i===void 0?void 0:i.value,v=(a=s.find(O=>O.type==="group"))===null||a===void 0?void 0:a.value,m=s.filter(O=>!Ss.has(O.type)).map(O=>Cs(O.value)),y=u.filter(O=>!Ss.has(O.type)).map(O=>Cs(O.value)),$=[...new Set([...y,...m])].sort((O,N)=>N.length-O.length),_=$.length===0?new RegExp("[\\p{White_Space}]","gu"):new RegExp(`${$.join("|")}|[\\p{White_Space}]`,"gu"),w=[...new Intl.NumberFormat(t.locale,{useGrouping:!1}).format(9876543210)].reverse(),g=new Map(w.map((O,N)=>[O,N])),D=new RegExp(`[${w.join("")}]`,"g");return{minusSign:p,plusSign:b,decimal:h,group:v,literals:_,numeral:D,index:O=>String(g.get(O))}}function Lr(e,t,r){return e.replaceAll?e.replaceAll(t,r):e.split(t).join(r)}function Cs(e){return e.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}const Gb=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),qb=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function Yb(e){if(Intl.Locale){let r=new Intl.Locale(e).maximize().script;return Gb.has(r)}let t=e.split("-")[0];return qb.has(t)}function Ts(){let e=typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:Yb(e)?"rtl":"ltr"}}let vo=Ts(),Xt=new Set;function Os(){vo=Ts();for(let e of Xt)e(vo)}function Xb(){let e=tb(),[t,r]=l.useState(vo);return l.useEffect(()=>(Xt.size===0&&window.addEventListener("languagechange",Os),Xt.add(r),()=>{Xt.delete(r),Xt.size===0&&window.removeEventListener("languagechange",Os)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const Jb=ie.default.createContext(null);function ks(){let e=Xb();return l.useContext(Jb)||e}const Ds=new WeakMap;function Zb(e){let t=Ds.get(e);return t||(t=new Lb(e),Ds.set(e,t)),t}function Fr(e){let{locale:t}=ks(),r=l.useMemo(()=>Zb(e),[e]);return l.useMemo(()=>new zb(t,r),[t,r])}function Qb(e={}){let{locale:t}=ks();return l.useMemo(()=>new bo(t,e),[t,e])}function em(e){return e&&e.__esModule?e.default:e}function tm(e,t){let{isCurrent:r,isDisabled:n,"aria-current":o,elementType:i="a",...a}=e,{linkProps:s}=Mb({isDisabled:n||r,elementType:i,...a},t),c=/^h[1-6]$/.test(i),u={};return c||(u=s),r&&(u["aria-current"]=o||"page",u.tabIndex=e.autoFocus?-1:void 0),{itemProps:{"aria-disabled":n,...u}}}var Is={},As={};As={breadcrumbs:"\u0639\u0646\u0627\u0635\u0631 \u0627\u0644\u0648\u0627\u062C\u0647\u0629"};var Ns={};Ns={breadcrumbs:"\u0422\u0440\u043E\u0445\u0438 \u0445\u043B\u044F\u0431"};var Ms={};Ms={breadcrumbs:"Popis cesty"};var Ls={};Ls={breadcrumbs:"Br\xF8dkrummer"};var Fs={};Fs={breadcrumbs:"Breadcrumbs"};var Rs={};Rs={breadcrumbs:"\u03A0\u03BB\u03BF\u03B7\u03B3\u03AE\u03C3\u03B5\u03B9\u03C2 breadcrumb"};var zs={};zs={breadcrumbs:"Breadcrumbs"};var Vs={};Vs={breadcrumbs:"Migas de pan"};var js={};js={breadcrumbs:"Lingiread"};var Bs={};Bs={breadcrumbs:"Navigointilinkit"};var Ws={};Ws={breadcrumbs:"Chemin de navigation"};var Us={};Us={breadcrumbs:"\u05E9\u05D1\u05D9\u05DC\u05D9 \u05E0\u05D9\u05D5\u05D5\u05D8"};var Ks={};Ks={breadcrumbs:"Navigacijski putovi"};var Hs={};Hs={breadcrumbs:"Morzsamen\xFC"};var Gs={};Gs={breadcrumbs:"Breadcrumb"};var qs={};qs={breadcrumbs:"\u30D1\u30F3\u304F\u305A\u30EA\u30B9\u30C8"};var Ys={};Ys={breadcrumbs:"\uD0D0\uC0C9 \uD45C\uC2DC"};var Xs={};Xs={breadcrumbs:"Nar\u0161ymo kelias"};var Js={};Js={breadcrumbs:"Atpaka\u013Cce\u013Ci"};var Zs={};Zs={breadcrumbs:"Navigasjonsstier"};var Qs={};Qs={breadcrumbs:"Broodkruimels"};var el={};el={breadcrumbs:"Struktura nawigacyjna"};var tl={};tl={breadcrumbs:"Caminho detalhado"};var rl={};rl={breadcrumbs:"Categorias"};var nl={};nl={breadcrumbs:"Miez de p\xE2ine"};var ol={};ol={breadcrumbs:"\u041D\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u044F"};var il={};il={breadcrumbs:"Naviga\u010Dn\xE9 prvky Breadcrumbs"};var al={};al={breadcrumbs:"Drobtine"};var sl={};sl={breadcrumbs:"Putanje navigacije"};var ll={};ll={breadcrumbs:"S\xF6kv\xE4gar"};var cl={};cl={breadcrumbs:"\u0130\xE7erik haritalar\u0131"};var ul={};ul={breadcrumbs:"\u041D\u0430\u0432\u0456\u0433\u0430\u0446\u0456\u0439\u043D\u0430 \u0441\u0442\u0435\u0436\u043A\u0430"};var dl={};dl={breadcrumbs:"\u5BFC\u822A\u680F"};var fl={};fl={breadcrumbs:"\u5C0E\u89BD\u5217"},Is={"ar-AE":As,"bg-BG":Ns,"cs-CZ":Ms,"da-DK":Ls,"de-DE":Fs,"el-GR":Rs,"en-US":zs,"es-ES":Vs,"et-EE":js,"fi-FI":Bs,"fr-FR":Ws,"he-IL":Us,"hr-HR":Ks,"hu-HU":Hs,"it-IT":Gs,"ja-JP":qs,"ko-KR":Ys,"lt-LT":Xs,"lv-LV":Js,"nb-NO":Zs,"nl-NL":Qs,"pl-PL":el,"pt-BR":tl,"pt-PT":rl,"ro-RO":nl,"ru-RU":ol,"sk-SK":il,"sl-SI":al,"sr-SP":sl,"sv-SE":ll,"tr-TR":cl,"uk-UA":ul,"zh-CN":dl,"zh-TW":fl};function rm(e){let{"aria-label":t,...r}=e,n=Fr(em(Is));return{navProps:{...Yt(r,{labelable:!0}),"aria-label":t||n.format("breadcrumbs")}}}function Nt(e){return e.split("-")[0]}function Rr(e){return e.split("-")[1]}function Mt(e){return["top","bottom"].includes(Nt(e))?"x":"y"}function go(e){return e==="y"?"height":"width"}function pl(e,t,r){let{reference:n,floating:o}=e;const i=n.x+n.width/2-o.width/2,a=n.y+n.height/2-o.height/2,s=Mt(t),c=go(s),u=n[c]/2-o[c]/2,d=Nt(t),p=s==="x";let b;switch(d){case"top":b={x:i,y:n.y-o.height};break;case"bottom":b={x:i,y:n.y+n.height};break;case"right":b={x:n.x+n.width,y:a};break;case"left":b={x:n.x-o.width,y:a};break;default:b={x:n.x,y:n.y}}switch(Rr(t)){case"start":b[s]-=u*(r&&p?-1:1);break;case"end":b[s]+=u*(r&&p?-1:1);break}return b}const nm=async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:i=[],platform:a}=r,s=await(a.isRTL==null?void 0:a.isRTL(t));if(process.env.NODE_ENV!=="production"&&(a==null&&console.error(["Floating UI: `platform` property was not passed to config. If you","want to use Floating UI on the web, install @floating-ui/dom","instead of the /core package. Otherwise, you can create your own","`platform`: https://floating-ui.com/docs/platform"].join(" ")),i.filter(v=>{let{name:m}=v;return m==="autoPlacement"||m==="flip"}).length>1))throw new Error(["Floating UI: duplicate `flip` and/or `autoPlacement`","middleware detected. This will lead to an infinite loop. Ensure only","one of either has been passed to the `middleware` array."].join(" "));let c=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=pl(c,n,s),p=n,b={},h=0;for(let v=0;v<i.length;v++){const{name:m,fn:y}=i[v],{x:$,y:_,data:w,reset:g}=await y({x:u,y:d,initialPlacement:n,placement:p,strategy:o,middlewareData:b,rects:c,platform:a,elements:{reference:e,floating:t}});if(u=$!=null?$:u,d=_!=null?_:d,b={...b,[m]:{...b[m],...w}},process.env.NODE_ENV!=="production"&&h>50&&console.warn(["Floating UI: The middleware lifecycle appears to be running in an","infinite loop. This is usually caused by a `reset` continually","being returned without a break condition."].join(" ")),g&&h<=50){h++,typeof g=="object"&&(g.placement&&(p=g.placement),g.rects&&(c=g.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:o}):g.rects),{x:u,y:d}=pl(c,p,s)),v=-1;continue}}return{x:u,y:d,placement:p,strategy:o,middlewareData:b}};function om(e){return{top:0,right:0,bottom:0,left:0,...e}}function hl(e){return typeof e!="number"?om(e):{top:e,right:e,bottom:e,left:e}}function zr(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function Vr(e,t){var r;t===void 0&&(t={});const{x:n,y:o,platform:i,rects:a,elements:s,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:p="floating",altBoundary:b=!1,padding:h=0}=t,v=hl(h),y=s[b?p==="floating"?"reference":"floating":p],$=zr(await i.getClippingRect({element:(r=await(i.isElement==null?void 0:i.isElement(y)))==null||r?y:y.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(s.floating)),boundary:u,rootBoundary:d,strategy:c})),_=zr(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:p==="floating"?{...a.floating,x:n,y:o}:a.reference,offsetParent:await(i.getOffsetParent==null?void 0:i.getOffsetParent(s.floating)),strategy:c}):a[p]);return{top:$.top-_.top+v.top,bottom:_.bottom-$.bottom+v.bottom,left:$.left-_.left+v.left,right:_.right-$.right+v.right}}const im=Math.min,am=Math.max;function yo(e,t,r){return am(e,im(t,r))}const bl=e=>({name:"arrow",options:e,async fn(t){const{element:r,padding:n=0}=e!=null?e:{},{x:o,y:i,placement:a,rects:s,platform:c}=t;if(r==null)return process.env.NODE_ENV!=="production"&&console.warn("Floating UI: No `element` was passed to the `arrow` middleware."),{};const u=hl(n),d={x:o,y:i},p=Mt(a),b=Rr(a),h=go(p),v=await c.getDimensions(r),m=p==="y"?"top":"left",y=p==="y"?"bottom":"right",$=s.reference[h]+s.reference[p]-d[p]-s.floating[h],_=d[p]-s.reference[p],w=await(c.getOffsetParent==null?void 0:c.getOffsetParent(r));let g=w?p==="y"?w.clientHeight||0:w.clientWidth||0:0;g===0&&(g=s.floating[h]);const D=$/2-_/2,M=u[m],O=g-v[h]-u[y],N=g/2-v[h]/2+D,F=yo(M,N,O),Y=(b==="start"?u[m]:u[y])>0&&N!==F&&s.reference[h]<=s.floating[h]?N<M?M-N:O-N:0;return{[p]:d[p]-Y,data:{[p]:F,centerOffset:N-F}}}}),sm={left:"right",right:"left",bottom:"top",top:"bottom"};function jr(e){return e.replace(/left|right|bottom|top/g,t=>sm[t])}function lm(e,t,r){r===void 0&&(r=!1);const n=Rr(e),o=Mt(e),i=go(o);let a=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=jr(a)),{main:a,cross:jr(a)}}const cm={start:"end",end:"start"};function ml(e){return e.replace(/start|end/g,t=>cm[t])}const um=["top","right","bottom","left"];function dm(e){const t=jr(e);return[ml(e),t,ml(t)]}const fm=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r;const{placement:n,middlewareData:o,rects:i,initialPlacement:a,platform:s,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:b="bestFit",flipAlignment:h=!0,...v}=e,m=Nt(n),$=p||(m===a||!h?[jr(a)]:dm(a)),_=[a,...$],w=await Vr(t,v),g=[];let D=((r=o.flip)==null?void 0:r.overflows)||[];if(u&&g.push(w[m]),d){const{main:F,cross:G}=lm(n,i,await(s.isRTL==null?void 0:s.isRTL(c.floating)));g.push(w[F],w[G])}if(D=[...D,{placement:n,overflows:g}],!g.every(F=>F<=0)){var M,O;const F=((M=(O=o.flip)==null?void 0:O.index)!=null?M:0)+1,G=_[F];if(G)return{data:{index:F,overflows:D},reset:{placement:G}};let S="bottom";switch(b){case"bestFit":{var N;const Y=(N=D.map(I=>[I,I.overflows.filter(P=>P>0).reduce((P,re)=>P+re,0)]).sort((I,P)=>I[1]-P[1])[0])==null?void 0:N[0].placement;Y&&(S=Y);break}case"initialPlacement":S=a;break}if(n!==S)return{reset:{placement:S}}}return{}}}};function vl(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function gl(e){return um.some(t=>e[t]>=0)}const pm=function(e){let{strategy:t="referenceHidden",...r}=e===void 0?{}:e;return{name:"hide",async fn(n){const{rects:o}=n;switch(t){case"referenceHidden":{const i=await Vr(n,{...r,elementContext:"reference"}),a=vl(i,o.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:gl(a)}}}case"escaped":{const i=await Vr(n,{...r,altBoundary:!0}),a=vl(i,o.floating);return{data:{escapedOffsets:a,escaped:gl(a)}}}default:return{}}}}};async function hm(e,t){const{placement:r,platform:n,elements:o}=e,i=await(n.isRTL==null?void 0:n.isRTL(o.floating)),a=Nt(r),s=Rr(r),c=Mt(r)==="x",u=["left","top"].includes(a)?-1:1,d=i&&c?-1:1,p=typeof t=="function"?t(e):t;let{mainAxis:b,crossAxis:h,alignmentAxis:v}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...p};return s&&typeof v=="number"&&(h=s==="end"?v*-1:v),c?{x:h*d,y:b*u}:{x:b*u,y:h*d}}const bm=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:r,y:n}=t,o=await hm(t,e);return{x:r+o.x,y:n+o.y,data:o}}}};function yl(e){return e==="x"?"y":"x"}const mm=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:y=>{let{x:$,y:_}=y;return{x:$,y:_}}},...c}=e,u={x:r,y:n},d=await Vr(t,c),p=Mt(Nt(o)),b=yl(p);let h=u[p],v=u[b];if(i){const y=p==="y"?"top":"left",$=p==="y"?"bottom":"right",_=h+d[y],w=h-d[$];h=yo(_,h,w)}if(a){const y=b==="y"?"top":"left",$=b==="y"?"bottom":"right",_=v+d[y],w=v-d[$];v=yo(_,v,w)}const m=s.fn({...t,[p]:h,[b]:v});return{...m,data:{x:m.x-r,y:m.y-n}}}}},vm=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:o,rects:i,middlewareData:a}=t,{offset:s=0,mainAxis:c=!0,crossAxis:u=!0}=e,d={x:r,y:n},p=Mt(o),b=yl(p);let h=d[p],v=d[b];const m=typeof s=="function"?s({...i,placement:o}):s,y=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(c){const D=p==="y"?"height":"width",M=i.reference[p]-i.floating[D]+y.mainAxis,O=i.reference[p]+i.reference[D]-y.mainAxis;h<M?h=M:h>O&&(h=O)}if(u){var $,_,w,g;const D=p==="y"?"width":"height",M=["top","left"].includes(Nt(o)),O=i.reference[b]-i.floating[D]+(M&&($=(_=a.offset)==null?void 0:_[b])!=null?$:0)+(M?0:y.crossAxis),N=i.reference[b]+i.reference[D]+(M?0:(w=(g=a.offset)==null?void 0:g[b])!=null?w:0)-(M?y.crossAxis:0);v<O?v=O:v>N&&(v=N)}return{[p]:h,[b]:v}}}};function _l(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function qe(e){if(e==null)return window;if(!_l(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function Jt(e){return qe(e).getComputedStyle(e)}function Ye(e){return _l(e)?"":e?(e.nodeName||"").toLowerCase():""}function $l(){const e=navigator.userAgentData;return e!=null&&e.brands?e.brands.map(t=>t.brand+"/"+t.version).join(" "):navigator.userAgent}function Fe(e){return e instanceof qe(e).HTMLElement}function Qe(e){return e instanceof qe(e).Element}function gm(e){return e instanceof qe(e).Node}function _o(e){if(typeof ShadowRoot>"u")return!1;const t=qe(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Br(e){const{overflow:t,overflowX:r,overflowY:n}=Jt(e);return/auto|scroll|overlay|hidden/.test(t+n+r)}function ym(e){return["table","td","th"].includes(Ye(e))}function xl(e){const t=/firefox/i.test($l()),r=Jt(e);return r.transform!=="none"||r.perspective!=="none"||r.contain==="paint"||["transform","perspective"].includes(r.willChange)||t&&r.willChange==="filter"||t&&(r.filter?r.filter!=="none":!1)}function wl(){return!/^((?!chrome|android).)*safari/i.test($l())}const El=Math.min,Zt=Math.max,Wr=Math.round;function Xe(e,t,r){var n,o,i,a;t===void 0&&(t=!1),r===void 0&&(r=!1);const s=e.getBoundingClientRect();let c=1,u=1;t&&Fe(e)&&(c=e.offsetWidth>0&&Wr(s.width)/e.offsetWidth||1,u=e.offsetHeight>0&&Wr(s.height)/e.offsetHeight||1);const d=Qe(e)?qe(e):window,p=!wl()&&r,b=(s.left+(p&&(n=(o=d.visualViewport)==null?void 0:o.offsetLeft)!=null?n:0))/c,h=(s.top+(p&&(i=(a=d.visualViewport)==null?void 0:a.offsetTop)!=null?i:0))/u,v=s.width/c,m=s.height/u;return{width:v,height:m,top:h,right:b+v,bottom:h+m,left:b,x:b,y:h}}function et(e){return((gm(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ur(e){return Qe(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Pl(e){return Xe(et(e)).left+Ur(e).scrollLeft}function _m(e){const t=Xe(e);return Wr(t.width)!==e.offsetWidth||Wr(t.height)!==e.offsetHeight}function $m(e,t,r){const n=Fe(t),o=et(t),i=Xe(e,n&&_m(t),r==="fixed");let a={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if(n||!n&&r!=="fixed")if((Ye(t)!=="body"||Br(o))&&(a=Ur(t)),Fe(t)){const c=Xe(t,!0);s.x=c.x+t.clientLeft,s.y=c.y+t.clientTop}else o&&(s.x=Pl(o));return{x:i.left+a.scrollLeft-s.x,y:i.top+a.scrollTop-s.y,width:i.width,height:i.height}}function Sl(e){return Ye(e)==="html"?e:e.assignedSlot||e.parentNode||(_o(e)?e.host:null)||et(e)}function Cl(e){return!Fe(e)||getComputedStyle(e).position==="fixed"?null:e.offsetParent}function xm(e){let t=Sl(e);for(_o(t)&&(t=t.host);Fe(t)&&!["html","body"].includes(Ye(t));){if(xl(t))return t;t=t.parentNode}return null}function $o(e){const t=qe(e);let r=Cl(e);for(;r&&ym(r)&&getComputedStyle(r).position==="static";)r=Cl(r);return r&&(Ye(r)==="html"||Ye(r)==="body"&&getComputedStyle(r).position==="static"&&!xl(r))?t:r||xm(e)||t}function Tl(e){if(Fe(e))return{width:e.offsetWidth,height:e.offsetHeight};const t=Xe(e);return{width:t.width,height:t.height}}function wm(e){let{rect:t,offsetParent:r,strategy:n}=e;const o=Fe(r),i=et(r);if(r===i)return t;let a={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if((o||!o&&n!=="fixed")&&((Ye(r)!=="body"||Br(i))&&(a=Ur(r)),Fe(r))){const c=Xe(r,!0);s.x=c.x+r.clientLeft,s.y=c.y+r.clientTop}return{...t,x:t.x-a.scrollLeft+s.x,y:t.y-a.scrollTop+s.y}}function Em(e,t){const r=qe(e),n=et(e),o=r.visualViewport;let i=n.clientWidth,a=n.clientHeight,s=0,c=0;if(o){i=o.width,a=o.height;const u=wl();(u||!u&&t==="fixed")&&(s=o.offsetLeft,c=o.offsetTop)}return{width:i,height:a,x:s,y:c}}function Pm(e){var t;const r=et(e),n=Ur(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=Zt(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=Zt(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0);let s=-n.scrollLeft+Pl(e);const c=-n.scrollTop;return Jt(o||r).direction==="rtl"&&(s+=Zt(r.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:c}}function Ol(e){const t=Sl(e);return["html","body","#document"].includes(Ye(t))?e.ownerDocument.body:Fe(t)&&Br(t)?t:Ol(t)}function Kr(e,t){var r;t===void 0&&(t=[]);const n=Ol(e),o=n===((r=e.ownerDocument)==null?void 0:r.body),i=qe(n),a=o?[i].concat(i.visualViewport||[],Br(n)?n:[]):n,s=t.concat(a);return o?s:s.concat(Kr(a))}function Sm(e,t){const r=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(r&&_o(r)){let n=t;do{if(n&&e===n)return!0;n=n.parentNode||n.host}while(n)}return!1}function Cm(e,t){const r=Xe(e,!1,t==="fixed"),n=r.top+e.clientTop,o=r.left+e.clientLeft;return{top:n,left:o,x:o,y:n,right:o+e.clientWidth,bottom:n+e.clientHeight,width:e.clientWidth,height:e.clientHeight}}function kl(e,t,r){return t==="viewport"?zr(Em(e,r)):Qe(t)?Cm(t,r):zr(Pm(et(e)))}function Tm(e){const t=Kr(e),n=["absolute","fixed"].includes(Jt(e).position)&&Fe(e)?$o(e):e;return Qe(n)?t.filter(o=>Qe(o)&&Sm(o,n)&&Ye(o)!=="body"):[]}function Om(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const a=[...r==="clippingAncestors"?Tm(t):[].concat(r),n],s=a[0],c=a.reduce((u,d)=>{const p=kl(t,d,o);return u.top=Zt(p.top,u.top),u.right=El(p.right,u.right),u.bottom=El(p.bottom,u.bottom),u.left=Zt(p.left,u.left),u},kl(t,s,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}const km={getClippingRect:Om,convertOffsetParentRelativeRectToViewportRelativeRect:wm,isElement:Qe,getDimensions:Tl,getOffsetParent:$o,getDocumentElement:et,getElementRects:e=>{let{reference:t,floating:r,strategy:n}=e;return{reference:$m(t,$o(r),n),floating:{...Tl(r),x:0,y:0}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>Jt(e).direction==="rtl"};function Dm(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=!0,animationFrame:s=!1}=n,c=o&&!s,u=i&&!s,d=c||u?[...Qe(e)?Kr(e):[],...Kr(t)]:[];d.forEach(m=>{c&&m.addEventListener("scroll",r,{passive:!0}),u&&m.addEventListener("resize",r)});let p=null;if(a){let m=!0;p=new ResizeObserver(()=>{m||r(),m=!1}),Qe(e)&&!s&&p.observe(e),p.observe(t)}let b,h=s?Xe(e):null;s&&v();function v(){const m=Xe(e);h&&(m.x!==h.x||m.y!==h.y||m.width!==h.width||m.height!==h.height)&&r(),h=m,b=requestAnimationFrame(v)}return r(),()=>{var m;d.forEach(y=>{c&&y.removeEventListener("scroll",r),u&&y.removeEventListener("resize",r)}),(m=p)==null||m.disconnect(),p=null,s&&cancelAnimationFrame(b)}}const Im=(e,t,r)=>nm(e,t,{platform:km,...r});var xo=typeof document<"u"?l.useLayoutEffect:l.useEffect;function wo(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 r,n,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!wo(e[n],t[n]))return!1;return!0}if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[n]))return!1;for(n=r;n--!==0;){const i=o[n];if(!(i==="_owner"&&e.$$typeof)&&!wo(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Am(e){const t=H.useRef(e);return xo(()=>{t.current=e}),t}function Nm(e){let{middleware:t,placement:r="bottom",strategy:n="absolute",whileElementsMounted:o}=e===void 0?{}:e;const i=H.useRef(null),a=H.useRef(null),s=Am(o),c=H.useRef(null),[u,d]=H.useState({x:null,y:null,strategy:n,placement:r,middlewareData:{}}),[p,b]=H.useState(t);wo(p==null?void 0:p.map(w=>{let{options:g}=w;return g}),t==null?void 0:t.map(w=>{let{options:g}=w;return g}))||b(t);const h=H.useCallback(()=>{!i.current||!a.current||Im(i.current,a.current,{middleware:p,placement:r,strategy:n}).then(w=>{v.current&&sa.flushSync(()=>{d(w)})})},[p,r,n]);xo(()=>{v.current&&h()},[h]);const v=H.useRef(!1);xo(()=>(v.current=!0,()=>{v.current=!1}),[]);const m=H.useCallback(()=>{if(typeof c.current=="function"&&(c.current(),c.current=null),i.current&&a.current)if(s.current){const w=s.current(i.current,a.current,h);c.current=w}else h()},[h,s]),y=H.useCallback(w=>{i.current=w,m()},[m]),$=H.useCallback(w=>{a.current=w,m()},[m]),_=H.useMemo(()=>({reference:i,floating:a}),[]);return H.useMemo(()=>({...u,update:h,refs:_,reference:y,floating:$}),[u,h,_,y,$])}const Mm=e=>{const{element:t,padding:r}=e;function n(o){return Object.prototype.hasOwnProperty.call(o,"current")}return{name:"arrow",options:e,fn(o){return n(t)?t.current!=null?bl({element:t.current,padding:r}).fn(o):{}:t?bl({element:t,padding:r}).fn(o):{}}}},Lm=l.forwardRef((e,t)=>{const{children:r,width:n=10,height:o=5,...i}=e;return l.createElement(Q.svg,C({},i,{ref:t,width:n,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?r:l.createElement("polygon",{points:"0,0 30,0 15,10"}))});function Hr(e){const[t,r]=l.useState(void 0);return $e(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let a,s;if("borderBoxSize"in i){const c=i.borderBoxSize,u=Array.isArray(c)?c[0]:c;a=u.inlineSize,s=u.blockSize}else a=e.offsetWidth,s=e.offsetHeight;r({width:a,height:s})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}const Dl="Popper",[Eo,Gr]=Se(Dl),[Fm,Il]=Eo(Dl),Rm=e=>{const{__scopePopper:t,children:r}=e,[n,o]=l.useState(null);return l.createElement(Fm,{scope:t,anchor:n,onAnchorChange:o},r)},zm="PopperAnchor",Vm=l.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...o}=e,i=Il(zm,r),a=l.useRef(null),s=le(t,a);return l.useEffect(()=>{i.onAnchorChange((n==null?void 0:n.current)||a.current)}),n?null:l.createElement(Q.div,C({},o,{ref:s}))}),qr="PopperContent",[jm,Bm]=Eo(qr),[Wm,Um]=Eo(qr,{hasParent:!1,positionUpdateFns:new Set}),Km=l.forwardRef((e,t)=>{var r,n,o,i,a,s,c,u;const{__scopePopper:d,side:p="bottom",sideOffset:b=0,align:h="center",alignOffset:v=0,arrowPadding:m=0,collisionBoundary:y=[],collisionPadding:$=0,sticky:_="partial",hideWhenDetached:w=!1,avoidCollisions:g=!0,...D}=e,M=Il(qr,d),[O,N]=l.useState(null),F=le(t,Ne=>N(Ne)),[G,S]=l.useState(null),Y=Hr(G),I=(r=Y==null?void 0:Y.width)!==null&&r!==void 0?r:0,P=(n=Y==null?void 0:Y.height)!==null&&n!==void 0?n:0,re=p+(h!=="center"?"-"+h:""),Z=typeof $=="number"?$:{top:0,right:0,bottom:0,left:0,...$},fe=Array.isArray(y)?y:[y],ve=fe.length>0,ee={padding:Z,boundary:fe.filter(Xm),altBoundary:ve},{reference:E,floating:L,strategy:B,x:j,y:V,placement:U,middlewareData:q,update:X}=Nm({strategy:"fixed",placement:re,whileElementsMounted:Dm,middleware:[bm({mainAxis:b+P,alignmentAxis:v}),g?mm({mainAxis:!0,crossAxis:!1,limiter:_==="partial"?vm():void 0,...ee}):void 0,G?Mm({element:G,padding:m}):void 0,g?fm({...ee}):void 0,Jm({arrowWidth:I,arrowHeight:P}),w?pm({strategy:"referenceHidden"}):void 0].filter(Ym)});$e(()=>{E(M.anchor)},[E,M.anchor]);const J=j!==null&&V!==null,[oe,ne]=Al(U),ge=(o=q.arrow)===null||o===void 0?void 0:o.x,me=(i=q.arrow)===null||i===void 0?void 0:i.y,Ee=((a=q.arrow)===null||a===void 0?void 0:a.centerOffset)!==0,[Ve,ke]=l.useState();$e(()=>{O&&ke(window.getComputedStyle(O).zIndex)},[O]);const{hasParent:je,positionUpdateFns:ye}=Um(qr,d),_e=!je;l.useLayoutEffect(()=>{if(!_e)return ye.add(X),()=>{ye.delete(X)}},[_e,ye,X]),l.useLayoutEffect(()=>{_e&&J&&Array.from(ye).reverse().forEach(Ne=>requestAnimationFrame(Ne))},[_e,J,ye]);const Ae={"data-side":oe,"data-align":ne,...D,ref:F,style:{...D.style,animation:J?void 0:"none",opacity:(s=q.hide)!==null&&s!==void 0&&s.referenceHidden?0:void 0}};return l.createElement("div",{ref:L,"data-radix-popper-content-wrapper":"",style:{position:B,left:0,top:0,transform:J?`translate3d(${Math.round(j)}px, ${Math.round(V)}px, 0)`:"translate3d(0, -200%, 0)",minWidth:"max-content",zIndex:Ve,["--radix-popper-transform-origin"]:[(c=q.transformOrigin)===null||c===void 0?void 0:c.x,(u=q.transformOrigin)===null||u===void 0?void 0:u.y].join(" ")}},l.createElement(jm,{scope:d,placedSide:oe,onArrowChange:S,arrowX:ge,arrowY:me,shouldHideArrow:Ee},_e?l.createElement(Wm,{scope:d,hasParent:!0,positionUpdateFns:ye},l.createElement(Q.div,Ae)):l.createElement(Q.div,Ae)))}),Hm="PopperArrow",Gm={top:"bottom",right:"left",bottom:"top",left:"right"},qm=l.forwardRef(function(t,r){const{__scopePopper:n,...o}=t,i=Bm(Hm,n),a=Gm[i.placedSide];return l.createElement("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}},l.createElement(Lm,C({},o,{ref:r,style:{...o.style,display:"block"}})))});function Ym(e){return e!==void 0}function Xm(e){return e!==null}const Jm=e=>({name:"transformOrigin",options:e,fn(t){var r,n,o,i,a;const{placement:s,rects:c,middlewareData:u}=t,p=((r=u.arrow)===null||r===void 0?void 0:r.centerOffset)!==0,b=p?0:e.arrowWidth,h=p?0:e.arrowHeight,[v,m]=Al(s),y={start:"0%",center:"50%",end:"100%"}[m],$=((n=(o=u.arrow)===null||o===void 0?void 0:o.x)!==null&&n!==void 0?n:0)+b/2,_=((i=(a=u.arrow)===null||a===void 0?void 0:a.y)!==null&&i!==void 0?i:0)+h/2;let w="",g="";return v==="bottom"?(w=p?y:`${$}px`,g=`${-h}px`):v==="top"?(w=p?y:`${$}px`,g=`${c.floating.height+h}px`):v==="right"?(w=`${-h}px`,g=p?y:`${_}px`):v==="left"&&(w=`${c.floating.width+h}px`,g=p?y:`${_}px`),{data:{x:w,y:g}}}});function Al(e){const[t,r="center"]=e.split("-");return[t,r]}const Nl=Rm,Ml=Vm,Ll=Km,Fl=qm,Rl="Popover",[zl,EE]=Se(Rl,[Gr]),Yr=Gr(),[Zm,vt]=zl(Rl),Qm=e=>{const{__scopePopover:t,children:r,open:n,defaultOpen:o,onOpenChange:i,modal:a=!1}=e,s=Yr(t),c=l.useRef(null),[u,d]=l.useState(!1),[p=!1,b]=Me({prop:n,defaultProp:o,onChange:i});return l.createElement(Nl,s,l.createElement(Zm,{scope:t,contentId:Ke(),triggerRef:c,open:p,onOpenChange:b,onOpenToggle:l.useCallback(()=>b(h=>!h),[b]),hasCustomAnchor:u,onCustomAnchorAdd:l.useCallback(()=>d(!0),[]),onCustomAnchorRemove:l.useCallback(()=>d(!1),[]),modal:a},r))},ev="PopoverTrigger",tv=l.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=vt(ev,r),i=Yr(r),a=le(t,o.triggerRef),s=l.createElement(Q.button,C({type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Wl(o.open)},n,{ref:a,onClick:K(e.onClick,o.onOpenToggle)}));return o.hasCustomAnchor?s:l.createElement(Ml,C({asChild:!0},i),s)}),Vl="PopoverPortal",[rv,nv]=zl(Vl,{forceMount:void 0}),ov=e=>{const{__scopePopover:t,forceMount:r,children:n,container:o}=e,i=vt(Vl,t);return l.createElement(rv,{scope:t,forceMount:r},l.createElement(De,{present:r||i.open},l.createElement(Gt,{asChild:!0,container:o},n)))},Qt="PopoverContent",jl=l.forwardRef((e,t)=>{const r=nv(Qt,e.__scopePopover),{forceMount:n=r.forceMount,...o}=e,i=vt(Qt,e.__scopePopover);return l.createElement(De,{present:n||i.open},i.modal?l.createElement(iv,C({},o,{ref:t})):l.createElement(av,C({},o,{ref:t})))}),iv=l.forwardRef((e,t)=>{const r=vt(Qt,e.__scopePopover),n=l.useRef(null),o=le(t,n),i=l.useRef(!1);return l.useEffect(()=>{const a=n.current;if(a)return jn(a)},[]),l.createElement(zn,{as:dt,allowPinchZoom:!0},l.createElement(Bl,C({},e,{ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:K(e.onCloseAutoFocus,a=>{var s;a.preventDefault(),i.current||(s=r.triggerRef.current)===null||s===void 0||s.focus()}),onPointerDownOutside:K(e.onPointerDownOutside,a=>{const s=a.detail.originalEvent,c=s.button===0&&s.ctrlKey===!0,u=s.button===2||c;i.current=u},{checkForDefaultPrevented:!1}),onFocusOutside:K(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1})})))}),av=l.forwardRef((e,t)=>{const r=vt(Qt,e.__scopePopover),n=l.useRef(!1);return l.createElement(Bl,C({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{var i;if((i=e.onCloseAutoFocus)===null||i===void 0||i.call(e,o),!o.defaultPrevented){var a;n.current||(a=r.triggerRef.current)===null||a===void 0||a.focus(),o.preventDefault()}n.current=!1},onInteractOutside:o=>{var i,a;(i=e.onInteractOutside)===null||i===void 0||i.call(e,o),o.defaultPrevented||(n.current=!0);const s=o.target;((a=r.triggerRef.current)===null||a===void 0?void 0:a.contains(s))&&o.preventDefault()}}))}),Bl=l.forwardRef((e,t)=>{const{__scopePopover:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:i,disableOutsidePointerEvents:a,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:u,onInteractOutside:d,...p}=e,b=vt(Qt,r),h=Yr(r);return An(),l.createElement(Dn,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:i},l.createElement(Ht,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:d,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:u,onDismiss:()=>b.onOpenChange(!1)},l.createElement(Ll,C({"data-state":Wl(b.open),role:"dialog",id:b.contentId},h,p,{ref:t,style:{...p.style,["--radix-popover-content-transform-origin"]:"var(--radix-popper-transform-origin)"}}))))}),sv="PopoverClose",lv=l.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=vt(sv,r);return l.createElement(Q.button,C({type:"button"},n,{ref:t,onClick:K(e.onClick,()=>o.onOpenChange(!1))}))}),cv=l.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=Yr(r);return l.createElement(Fl,C({},o,n,{ref:t}))});function Wl(e){return e?"open":"closed"}const uv=Qm,dv=tv,fv=ov,pv=jl,hv=lv,bv=cv,mv=A.default(pv)`
198
+ border-radius: ${f.border_radius_400};
199
199
  padding: 8px;
200
200
  width: 260px;
201
201
  background-color: white;
202
202
  box-shadow: hsl(206 22% 7% / 35%) 0px 10px 38px -10px,
203
203
  hsl(206 22% 7% / 20%) 0px 10px 20px -15px;
204
- `,Pb=k.default(wb)`
204
+ `,vv=A.default(bv)`
205
205
  fill: white;
206
- `;function Cb({children:e,...t}){return T(_b,{children:ee(Eb,{...t,children:[e,T(Pb,{})]})})}const Tb=k.default(xb)`
206
+ `;function gv({children:e,...t}){return T(fv,{children:ce(mv,{...t,children:[e,T(vv,{})]})})}const yv=A.default(hv)`
207
207
  all: unset;
208
208
  font-family: inherit;
209
209
  border-radius: 100%;
@@ -216,23 +216,23 @@ Check the top-level render call using <`+N+">.")}return M}}function Ct(x,M){{if(
216
216
  position: absolute;
217
217
  top: 5px;
218
218
  right: 5px;
219
- `,Xi=hb,Zi=vb,Sb=Cb,kb=Tb,Db="data:image/svg+xml;base64,PHN2ZyBmb2N1c2FibGU9ImZhbHNlIiB2aWV3Qm94PSIwIDAgMjQgMjQiIGFyaWEtaGlkZGVuPSJ0cnVlIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgICB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8cGF0aCBkPSIgTTE5IDE1bC02IDYtMS40Mi0xLjQyTDE1LjE3IDE2SDRWNGgydjEwaDkuMTdsLTMuNTktMy41OEwxMyA5bDYgNnoiIGZpbGw9ImhzbGEoMCwgMCUsIDAlLCAwLjEyKSI+PC9wYXRoPgo8L3N2Zz4=",Ob=k.default(Gi)`
219
+ `,Ul=uv,Kl=dv,_v=gv,$v=yv,xv="data:image/svg+xml;base64,PHN2ZyBmb2N1c2FibGU9ImZhbHNlIiB2aWV3Qm94PSIwIDAgMjQgMjQiIGFyaWEtaGlkZGVuPSJ0cnVlIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgICB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8cGF0aCBkPSIgTTE5IDE1bC02IDYtMS40Mi0xLjQyTDE1LjE3IDE2SDRWNGgydjEwaDkuMTdsLTMuNTktMy41OEwxMyA5bDYgNnoiIGZpbGw9ImhzbGEoMCwgMCUsIDAlLCAwLjEyKSI+PC9wYXRoPgo8L3N2Zz4=",wv=A.default(jl)`
220
220
  margin-top: 22px;
221
221
  isolation: isolate;
222
222
  min-width: 210px;
223
- padding: ${c.sizing_350};
224
- background: ${c.color_background_white_standard};
225
- box-shadow: ${c.elevation_interactive_high};
226
- border-radius: ${c.border_radius_800};
223
+ padding: ${f.sizing_350};
224
+ background: ${f.color_background_white_standard};
225
+ box-shadow: ${f.elevation_interactive_high};
226
+ border-radius: ${f.border_radius_800};
227
227
 
228
228
  &[data-state~='focused'] {
229
- outline: 1px solid ${c.color_black};
229
+ outline: 1px solid ${f.color_black};
230
230
  }
231
- `;function Ib({children:e}){const{isFocusVisible:t,focusProps:n}=rn();return T(Ob,{align:"start",...n,"data-state":t?"focused":void 0,children:e})}const Nr=k.default.ol`
232
- font-family: ${c.font_family_sans};
231
+ `;function Ev({children:e}){const{isFocusVisible:t,focusProps:r}=Nr();return T(wv,{align:"start",...r,"data-state":t?"focused":void 0,children:e})}const Po=A.default.ol`
232
+ font-family: ${f.font_family_sans};
233
233
  display: flex;
234
234
  list-style: none;
235
- gap: ${c.sizing_200};
235
+ gap: ${f.sizing_200};
236
236
 
237
237
  flex-direction: row;
238
238
  padding-inline-start: 0;
@@ -241,14 +241,14 @@ Check the top-level render call using <`+N+">.")}return M}}function Ct(x,M){{if(
241
241
 
242
242
  & > li:not(:last-of-type)::after {
243
243
  content: '/';
244
- font-family: ${c.font_family_inter};
245
- color: ${c.color_divider_standard};
244
+ font-family: ${f.font_family_inter};
245
+ color: ${f.color_divider_standard};
246
246
  }
247
- `,Ji=k.default(Nr)`
247
+ `,Hl=A.default(Po)`
248
248
  flex-direction: column;
249
249
 
250
250
  & li {
251
- color: ${c.color_text_standard} !important;
251
+ color: ${f.color_text_standard} !important;
252
252
  font-weight: 400 !important;
253
253
  }
254
254
 
@@ -258,7 +258,7 @@ Check the top-level render call using <`+N+">.")}return M}}function Ct(x,M){{if(
258
258
 
259
259
  & > ol li:first-of-type::before {
260
260
  content: '';
261
- background-image: url(${Db});
261
+ background-image: url(${xv});
262
262
  display: block;
263
263
  height: 1em;
264
264
  width: 1em;
@@ -267,24 +267,24 @@ Check the top-level render call using <`+N+">.")}return M}}function Ct(x,M){{if(
267
267
  background-size: initial;
268
268
  background-repeat: initial;
269
269
  }
270
- `,zr=k.default.li`
271
- color: ${c.color_text_weak};
270
+ `,So=A.default.li`
271
+ color: ${f.color_text_weak};
272
272
  display: flex;
273
273
  align-items: center;
274
- gap: ${c.sizing_200};
275
- `,Qi=k.default.a`
274
+ gap: ${f.sizing_200};
275
+ `,Gl=A.default.a`
276
276
  text-decoration: none;
277
- color: ${c.color_text_weak};
277
+ color: ${f.color_text_weak};
278
278
  font-style: normal;
279
279
  font-weight: 500;
280
- font-size: ${c.font_size_100};
281
- line-height: ${c.line_height_114};
282
- letter-spacing: ${c.letter_spacing_tight};
283
- border-radius: ${c.border_radius_400};
280
+ font-size: ${f.font_size_100};
281
+ line-height: ${f.line_height_114};
282
+ letter-spacing: ${f.letter_spacing_tight};
283
+ border-radius: ${f.border_radius_400};
284
284
  padding: 2px 4px;
285
285
 
286
- transition-property: ${c.transition_property_color};
287
- transition-duration: ${c.transition_duration_100};
286
+ transition-property: ${f.transition_property_color};
287
+ transition-duration: ${f.transition_duration_100};
288
288
  cursor: default;
289
289
 
290
290
  &[href] {
@@ -292,11 +292,11 @@ Check the top-level render call using <`+N+">.")}return M}}function Ct(x,M){{if(
292
292
  }
293
293
 
294
294
  &:hover {
295
- background-color: ${c.color_overlay_secondary_hover}; /* Interactive / Overlay / Secondary / Hover */
295
+ background-color: ${f.color_overlay_secondary_hover}; /* Interactive / Overlay / Secondary / Hover */
296
296
  }
297
297
 
298
298
  &[href][data-state~='pressed'] {
299
- background-color: ${c.color_overlay_secondary_pressed}; /* Interactive / Overlay / Secondary / Pressed */
299
+ background-color: ${f.color_overlay_secondary_pressed}; /* Interactive / Overlay / Secondary / Pressed */
300
300
  }
301
301
 
302
302
  &:focus {
@@ -304,65 +304,63 @@ Check the top-level render call using <`+N+">.")}return M}}function Ct(x,M){{if(
304
304
  }
305
305
 
306
306
  &[data-state~='focused'] {
307
- outline: 1px solid ${c.color_black};
307
+ outline: 1px solid ${f.color_black};
308
308
  }
309
309
 
310
310
  &[data-state~='disabled'] {
311
- color: ${c.color_fill_primary_disabled};
311
+ color: ${f.color_fill_primary_disabled};
312
312
  }
313
313
 
314
314
  &[aria-current='page'] {
315
- color: ${c.color_text_strong};
315
+ color: ${f.color_text_strong};
316
316
  font-weight: 400;
317
317
  }
318
- `,Ab=k.default.button`
318
+ `,Pv=A.default.button`
319
319
  appearance: none;
320
320
  cursor: pointer;
321
321
  touch-action: none;
322
322
  border: none;
323
- font-family: ${c.font_family_inter};
323
+ font-family: ${f.font_family_inter};
324
324
 
325
- background-color: ${c.color_white};
326
- color: ${c.color_text_weak};
327
- border-radius: ${c.border_radius_400};
325
+ background-color: ${f.color_white};
326
+ color: ${f.color_text_weak};
327
+ border-radius: ${f.border_radius_400};
328
328
  padding: 2px 4px;
329
329
 
330
- transition-property: ${c.transition_property_color};
331
- transition-duration: ${c.transition_duration_100};
330
+ transition-property: ${f.transition_property_color};
331
+ transition-duration: ${f.transition_duration_100};
332
332
 
333
333
  &:focus-visible {
334
- outline: 1px solid ${c.color_black};
334
+ outline: 1px solid ${f.color_black};
335
335
  }
336
336
 
337
337
  &:hover {
338
- background-color: ${c.color_overlay_secondary_hover}; /* Interactive / Overlay / Secondary / Hover */
338
+ background-color: ${f.color_overlay_secondary_hover}; /* Interactive / Overlay / Secondary / Hover */
339
339
  }
340
340
 
341
341
  &:active,
342
342
  &[data-state='open'] {
343
- background-color: ${c.color_overlay_secondary_pressed}; /* Interactive / Overlay / Secondary / Pressed */
343
+ background-color: ${f.color_overlay_secondary_pressed}; /* Interactive / Overlay / Secondary / Pressed */
344
344
  }
345
- `;function es({truncatedItems:e}){return e.length>1?ee(Ji,{children:[e.slice(0,1),T(es,{truncatedItems:e.slice(1)})]}):T(Ji,{children:e})}function Lb({truncatedItems:e}){return T(zr,{children:ee(Xi,{children:[T(Zi,{asChild:!0,children:T(Ab,{type:"button",children:"..."})}),T(Ib,{children:T(es,{truncatedItems:e})})]})})}const ts=a.forwardRef(({children:e,...t},n)=>{const{navProps:r}=dp(t);Mc.isFragment(e)&&console.warn("Passing a React fragment to Breadcrumbs will make it not work correctly!");const o=a.Children.toArray(e),i=3;if(o.length>i){const l=o[0],d=o.slice(-2),f=o.slice(1,-2);return T("nav",{...r,children:ee(Nr,{ref:n,children:[l,T(Lb,{truncatedItems:f}),d]})})}return T("nav",{...r,children:T(Nr,{ref:n,children:o})})});ts.displayName="Breadcrumbs";const ns=a.forwardRef((e,t)=>{const{LinkComponent:n="a",disabled:r,...o}=e,i=$t(t),s=typeof n=="string",{children:l,href:d,isCurrent:f}=e,{itemProps:u}=cp({isDisabled:r,isCurrent:f,elementType:s?n:"a",...o},i),{isPressed:p,pressProps:$}=pr({isDisabled:r,ref:i}),{isFocusVisible:b,focusProps:h}=rn(),m=[p&&"pressed",r&&"disabled",b&&"focused"].filter(Boolean).join(" "),v=!u["aria-disabled"]&&d?d:"",_={[s?"href":"to"]:v};return T(zr,{children:T(Qi,{as:n,...u,ref:i,"data-state":m,...h,...$,..._,children:l})})});ns.displayName="BreadcrumbItem";function Br(e,t){let{elementType:n="button",isDisabled:r,onPress:o,onPressStart:i,onPressEnd:s,onPressChange:l,preventFocusOnPress:d,allowFocusWhenDisabled:f,onClick:u,href:p,target:$,rel:b,type:h="button"}=e,m;n==="button"?m={type:h,disabled:r}:m={role:"button",tabIndex:r?void 0:0,href:n==="a"&&r?void 0:p,target:n==="a"?$:void 0,type:n==="input"?h:void 0,disabled:n==="input"?r:void 0,"aria-disabled":!r||n==="input"?void 0:r,rel:n==="a"?b:void 0};let{pressProps:v,isPressed:y}=pr({onPressStart:i,onPressEnd:s,onPressChange:l,onPress:o,isDisabled:r,preventFocusOnPress:d,ref:t}),{focusableProps:_}=wr(e,t);f&&(_.tabIndex=r?-1:_.tabIndex);let w=be(_,v,Dt(e,{labelable:!0}));return{isPressed:y,buttonProps:be(m,w,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],onClick:g=>{u&&(u(g),console.warn("onClick is deprecated, please use onPress"))}})}}const Mb={small:`${c.spacing_200} ${c.spacing_300}`,large:`${c.spacing_300} ${c.spacing_400}`},Se=k.default.button`
345
+ `;function ql({truncatedItems:e}){return e.length>1?ce(Hl,{children:[e.slice(0,1),T(ql,{truncatedItems:e.slice(1)})]}):T(Hl,{children:e})}function Sv({truncatedItems:e}){return T(So,{children:ce(Ul,{children:[T(Kl,{asChild:!0,children:T(Pv,{type:"button",children:"..."})}),T(Ev,{children:T(ql,{truncatedItems:e})})]})})}const Yl=l.forwardRef(({children:e,...t},r)=>{const{navProps:n}=rm(t);gr.isFragment(e)&&console.warn("Passing a React fragment to Breadcrumbs will make it not work correctly!");const o=l.Children.toArray(e),i=3;if(o.length>i){const s=o[0],c=o.slice(-2),u=o.slice(1,-2);return T("nav",{...n,children:ce(Po,{ref:r,children:[s,T(Sv,{truncatedItems:u}),c]})})}return T("nav",{...n,children:T(Po,{ref:r,children:o})})});Yl.displayName="Breadcrumbs";const Xl=l.forwardRef((e,t)=>{const{LinkComponent:r="a",disabled:n,...o}=e,i=bt(t),a=typeof r=="string",{children:s,href:c,isCurrent:u}=e,{itemProps:d}=tm({isDisabled:n,isCurrent:u,elementType:a?r:"a",...o},i),{isPressed:p,pressProps:b}=to({isDisabled:n,ref:i}),{isFocusVisible:h,focusProps:v}=Nr(),m=[p&&"pressed",n&&"disabled",h&&"focused"].filter(Boolean).join(" "),y=!d["aria-disabled"]&&c?c:"",_={[a?"href":"to"]:y};return T(So,{children:T(Gl,{as:r,...d,ref:i,"data-state":m,...v,...b,..._,children:s})})});Xl.displayName="BreadcrumbItem";function Co(e,t){let{elementType:r="button",isDisabled:n,onPress:o,onPressStart:i,onPressEnd:a,onPressChange:s,preventFocusOnPress:c,allowFocusWhenDisabled:u,onClick:d,href:p,target:b,rel:h,type:v="button"}=e,m;r==="button"?m={type:v,disabled:n}:m={role:"button",tabIndex:n?void 0:0,href:r==="a"&&n?void 0:p,target:r==="a"?b:void 0,type:r==="input"?v:void 0,disabled:r==="input"?n:void 0,"aria-disabled":!n||r==="input"?void 0:n,rel:r==="a"?h:void 0};let{pressProps:y,isPressed:$}=to({onPressStart:i,onPressEnd:a,onPressChange:s,onPress:o,isDisabled:n,preventFocusOnPress:c,ref:t}),{focusableProps:_}=fo(e,t);u&&(_.tabIndex=n?-1:_.tabIndex);let w=we(_,y,Yt(e,{labelable:!0}));return{isPressed:$,buttonProps:we(m,w,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],onClick:g=>{d&&(d(g),console.warn("onClick is deprecated, please use onPress"))}})}}const Cv={small:`${f.spacing_200} ${f.spacing_300}`,large:`${f.spacing_300} ${f.spacing_400}`},Re=A.default.button`
346
346
  appearance: none;
347
- border-radius: ${c.border_radius_400};
347
+ border-radius: ${f.border_radius_400};
348
348
  border: 1px solid transparent;
349
349
  font-style: normal;
350
- padding: ${({paddingSize:e})=>Mb[e]};
351
- font-family: ${c.font_family_inter};
350
+ padding: ${({paddingSize:e})=>Cv[e]};
351
+ font-family: ${f.font_family_inter};
352
352
  cursor: pointer;
353
353
  white-space: nowrap;
354
- max-width: ${c.spacing_900}; // not sure about this
355
- font-size: ${c.font_size_100};
356
- letter-spacing: ${c.letter_spacing_tight};
354
+ max-width: ${f.spacing_900}; // not sure about this
355
+ font-size: ${f.font_size_100};
356
+ letter-spacing: ${f.letter_spacing_tight};
357
357
  flex-shrink: 0;
358
358
  overflow: hidden;
359
359
  text-overflow: ellipsis;
360
360
  touch-action: none;
361
361
  -webkit-tap-highlight-color: transparent;
362
-
363
- transition-property: ${c.transition_property_color};
364
- transition-timing-function: linear; // ??
365
- transition-duration: ${c.transition_duration_100};
362
+ transition-property: ${f.transition_property_color};
363
+ transition-duration: ${f.transition_duration_100};
366
364
 
367
365
  // Not sure about this?
368
366
  &:focus-visible {
@@ -370,7 +368,7 @@ Check the top-level render call using <`+N+">.")}return M}}function Ct(x,M){{if(
370
368
  }
371
369
 
372
370
  &[data-state~='focused'] {
373
- outline-color: ${c.color_black};
371
+ outline-color: ${f.color_black};
374
372
  outline-style: solid;
375
373
  outline-width: 1px; // TODO make token?
376
374
  outline-offset: 2px;
@@ -379,74 +377,74 @@ Check the top-level render call using <`+N+">.")}return M}}function Ct(x,M){{if(
379
377
  &:disabled {
380
378
  cursor: not-allowed;
381
379
  }
382
- `,Fb=k.default(Se)`
380
+ `,Tv=A.default(Re)`
383
381
  background: white;
384
382
  color: hsl(0, 0%, 7.84%);
385
- border: 1px solid ${c.color_outline_secondary_enabled};
383
+ border: 1px solid ${f.color_outline_secondary_enabled};
386
384
 
387
385
  &:hover {
388
- background: ${c.color_overlay_secondary_hover}; /* Interactive / Overlay / Secondary / Enabled */
389
- color: ${c.color_fill_primary_hover};
390
- border-color: ${c.color_outline_secondary_hover};
386
+ background: ${f.color_overlay_secondary_hover}; /* Interactive / Overlay / Secondary / Enabled */
387
+ color: ${f.color_fill_primary_hover};
388
+ border-color: ${f.color_outline_secondary_hover};
391
389
  }
392
390
 
393
391
  &[data-state~='pressed'] {
394
- background: ${c.color_overlay_secondary_pressed};
395
- color: ${c.color_outline_secondary_pressed};
396
- border-color: ${c.color_outline_secondary_pressed};
392
+ background: ${f.color_overlay_secondary_pressed};
393
+ color: ${f.color_outline_secondary_pressed};
394
+ border-color: ${f.color_outline_secondary_pressed};
397
395
  }
398
396
 
399
397
  &:disabled {
400
- color: ${c.color_fill_secondary_disabled};
401
- border-color: ${c.color_outline_secondary_disabled};
398
+ color: ${f.color_fill_secondary_disabled};
399
+ border-color: ${f.color_outline_secondary_disabled};
402
400
  }
403
- `,Nb=k.default(Se)`
401
+ `,Ov=A.default(Re)`
404
402
  background: white;
405
- color: ${c.color_fill_danger_enabled};
406
- border: 1px solid ${c.color_outline_danger_enabled};
403
+ color: ${f.color_fill_danger_enabled};
404
+ border: 1px solid ${f.color_outline_danger_enabled};
407
405
 
408
406
  &:hover {
409
- color: ${c.color_fill_danger_hover};
407
+ color: ${f.color_fill_danger_hover};
410
408
  background: hsla(10.519, 67.54%, 55.29%, 0.06);
411
409
  }
412
410
 
413
411
  &[data-state~='pressed'] {
414
412
  background-color: hsla(10.52, 67.54%, 55.29%, 0.18);
415
- color: ${c.color_fill_danger_pressed};
413
+ color: ${f.color_fill_danger_pressed};
416
414
  }
417
415
 
418
416
  &:disabled {
419
- color: ${c.color_fill_danger_disabled};
417
+ color: ${f.color_fill_danger_disabled};
420
418
  }
421
- `,zb=k.default(Se)`
422
- background: ${c.color_overlay_inverse_enabled};
423
- border-color: ${c.color_outline_inverse_enabled};
424
- color: ${c.color_fill_inverse_enabled};
419
+ `,kv=A.default(Re)`
420
+ background: ${f.color_overlay_inverse_enabled};
421
+ border-color: ${f.color_outline_inverse_enabled};
422
+ color: ${f.color_fill_inverse_enabled};
425
423
 
426
424
  &:hover {
427
- background: ${c.color_overlay_inverse_hover};
428
- border-color: ${c.color_outline_inverse_hover};
429
- color: ${c.color_fill_inverse_hover};
425
+ background: ${f.color_overlay_inverse_hover};
426
+ border-color: ${f.color_outline_inverse_hover};
427
+ color: ${f.color_fill_inverse_hover};
430
428
  }
431
429
 
432
430
  &:focus {
433
- background: ${c.color_overlay_inverse_hover};
434
- border-color: ${c.color_outline_inverse_hover};
435
- color: ${c.color_fill_inverse_hover};
431
+ background: ${f.color_overlay_inverse_hover};
432
+ border-color: ${f.color_outline_inverse_hover};
433
+ color: ${f.color_fill_inverse_hover};
436
434
  /* TODO put in tokens Interactive / Focus / Outside */
437
435
  box-shadow: 0px 0px 0px 2px white, 0px 0px 0px 4px black;
438
436
  }
439
437
 
440
438
  &[data-state~='pressed'] {
441
- background-color: ${c.color_overlay_inverse_pressed};
442
- color: ${c.color_outline_inverse_pressed};
439
+ background-color: ${f.color_overlay_inverse_pressed};
440
+ color: ${f.color_outline_inverse_pressed};
443
441
  }
444
442
 
445
443
  &:disabled {
446
444
  background-color: transparent;
447
- color: ${c.color_outline_inverse_disabled};
445
+ color: ${f.color_outline_inverse_disabled};
448
446
  }
449
- `,Bb={primary:Fb,danger:Nb,inverse:zb},Vb=k.default(Se)`
447
+ `,Dv={primary:Tv,danger:Ov,inverse:kv},Iv=A.default(Re)`
450
448
  background: hsla(
451
449
  217.35,
452
450
  81.6%,
@@ -457,240 +455,239 @@ Check the top-level render call using <`+N+">.")}return M}}function Ct(x,M){{if(
457
455
  color: hsl(0, 0%, 7.845%);
458
456
 
459
457
  &:hover {
460
- background: ${c.color_overlay_secondary_hover};
461
- color: ${c.color_fill_primary_hover};
458
+ background: ${f.color_overlay_secondary_hover};
459
+ color: ${f.color_fill_primary_hover};
462
460
  }
463
461
 
464
462
  &[data-state~='pressed'] {
465
- background: ${c.color_overlay_secondary_pressed};
466
- color: ${c.color_fill_primary_pressed};
463
+ background: ${f.color_overlay_secondary_pressed};
464
+ color: ${f.color_fill_primary_pressed};
467
465
  }
468
466
 
469
467
  &:disabled {
470
- color: ${c.color_fill_primary_disabled};
468
+ color: ${f.color_fill_primary_disabled};
471
469
  }
472
- `,Rb=k.default(Se)`
473
- color: ${c.color_fill_danger_enabled};
470
+ `,Av=A.default(Re)`
471
+ color: ${f.color_fill_danger_enabled};
474
472
  background-color: hsl(217.35, 81.6%, 50.98%);
475
473
 
476
474
  &:hover {
477
- color: ${c.color_fill_danger_hover};
478
- background: ${c.color_overlay_secondary_hover};
475
+ color: ${f.color_fill_danger_hover};
476
+ background: ${f.color_overlay_secondary_hover};
479
477
  }
480
478
 
481
479
  &:focus {
482
- border-color: ${c.color_outline_danger_enabled};
480
+ border-color: ${f.color_outline_danger_enabled};
483
481
  }
484
482
 
485
483
  &[data-state~='pressed'] {
486
- background-color: ${c.color_overlay_secondary_pressed};
487
- color: ${c.color_fill_danger_pressed};
484
+ background-color: ${f.color_overlay_secondary_pressed};
485
+ color: ${f.color_fill_danger_pressed};
488
486
  border-color: transparent;
489
487
  }
490
488
 
491
489
  &:disabled {
492
- color: ${c.color_fill_danger_disabled};
490
+ color: ${f.color_fill_danger_disabled};
493
491
  }
494
- `,Wb=k.default(Se)`
495
- background: ${c.color_overlay_inverse_enabled};
492
+ `,Nv=A.default(Re)`
493
+ background: ${f.color_overlay_inverse_enabled};
496
494
  border-color: transparent;
497
- color: ${c.color_fill_inverse_enabled};
495
+ color: ${f.color_fill_inverse_enabled};
498
496
 
499
497
  &:hover {
500
- background: ${c.color_overlay_inverse_hover};
501
- color: ${c.color_fill_inverse_hover};
498
+ background: ${f.color_overlay_inverse_hover};
499
+ color: ${f.color_fill_inverse_hover};
502
500
  }
503
501
 
504
502
  &:focus {
505
- background: ${c.color_overlay_inverse_hover};
503
+ background: ${f.color_overlay_inverse_hover};
506
504
  /* TODO put in tokens Interactive / Focus / Outside */
507
505
  box-shadow: 0px 0px 0px 2px white, 0px 0px 0px 4px black;
508
506
  }
509
507
 
510
508
  &[data-state~='pressed'] {
511
- background-color: ${c.color_overlay_inverse_pressed};
512
- color: ${c.color_fill_inverse_pressed};
509
+ background-color: ${f.color_overlay_inverse_pressed};
510
+ color: ${f.color_fill_inverse_pressed};
513
511
  }
514
512
 
515
513
  &:disabled {
516
- background-color: ${c.color_fill_inverse_disabled};
517
- color: ${c.color_outline_inverse_disabled};
514
+ background-color: ${f.color_fill_inverse_disabled};
515
+ color: ${f.color_outline_inverse_disabled};
518
516
  }
519
- `,Hb={primary:Vb,danger:Rb,inverse:Wb},Kb=k.default(Se)`
520
- background: ${c.color_fill_primary_enabled};
521
- color: ${c.color_white};
517
+ `,Mv={primary:Iv,danger:Av,inverse:Nv},Lv=A.default(Re)`
518
+ background: ${f.color_fill_primary_enabled};
519
+ color: ${f.color_white};
522
520
 
523
521
  &:hover {
524
- background: ${c.color_fill_primary_hover};
525
- color: ${c.color_fill_inverse_hover};
522
+ background: ${f.color_fill_primary_hover};
523
+ color: ${f.color_fill_inverse_hover};
526
524
  }
527
525
 
528
526
  &[data-state~='pressed'] {
529
- background: ${c.color_fill_primary_pressed};
527
+ background: ${f.color_fill_primary_pressed};
530
528
  }
531
529
 
532
530
  &:disabled {
533
- background: ${c.color_fill_primary_disabled};
534
- color: ${c.color_fill_inverse_pressed};
531
+ background: ${f.color_fill_primary_disabled};
532
+ color: ${f.color_fill_inverse_pressed};
535
533
  }
536
- `,Ub=k.default(Se)`
537
- background: ${c.color_fill_secondary_enabled};
538
- color: ${c.color_fill_primary_enabled};
534
+ `,Fv=A.default(Re)`
535
+ background: ${f.color_fill_secondary_enabled};
536
+ color: ${f.color_fill_primary_enabled};
539
537
 
540
538
  &:hover {
541
- background: ${c.color_fill_secondary_hover};
542
- color: ${c.color_fill_primary_hover};
539
+ background: ${f.color_fill_secondary_hover};
540
+ color: ${f.color_fill_primary_hover};
543
541
  }
544
542
 
545
543
  &[data-state~='pressed'] {
546
- background: ${c.color_fill_secondary_pressed};
547
- color: ${c.color_fill_primary_enabled};
544
+ background: ${f.color_fill_secondary_pressed};
545
+ color: ${f.color_fill_primary_enabled};
548
546
  }
549
547
 
550
548
  &:disabled {
551
- background: ${c.color_fill_secondary_disabled};
549
+ background: ${f.color_fill_secondary_disabled};
552
550
  }
553
- `,jb=k.default(Se)`
554
- background: ${c.color_fill_danger_enabled};
555
- color: ${c.color_white};
551
+ `,Rv=A.default(Re)`
552
+ background: ${f.color_fill_danger_enabled};
553
+ color: ${f.color_white};
556
554
 
557
555
  &:hover {
558
- color: ${c.color_fill_inverse_hover};
559
- background: ${c.color_fill_danger_hover};
556
+ color: ${f.color_fill_inverse_hover};
557
+ background: ${f.color_fill_danger_hover};
560
558
  }
561
559
 
562
560
  &[data-state~='pressed'] {
563
- background-color: ${c.color_fill_danger_pressed};
564
- color: ${c.color_fill_inverse_pressed};
561
+ background-color: ${f.color_fill_danger_pressed};
562
+ color: ${f.color_fill_inverse_pressed};
565
563
  }
566
564
 
567
565
  &:disabled {
568
- background: ${c.color_fill_danger_disabled};
566
+ background: ${f.color_fill_danger_disabled};
569
567
  }
570
- `,Gb=k.default(Se)`
571
- background: ${c.color_white};
568
+ `,zv=A.default(Re)`
569
+ background: ${f.color_white};
572
570
 
573
571
  &:hover {
574
- background-color: ${c.color_fill_inverse_hover};
572
+ background-color: ${f.color_fill_inverse_hover};
575
573
  }
576
574
 
577
575
  &[data-state~='pressed'] {
578
- background-color: ${c.color_fill_inverse_pressed};
576
+ background-color: ${f.color_fill_inverse_pressed};
579
577
  }
580
578
 
581
579
  &:disabled {
582
- background: ${c.color_fill_inverse_disabled};
580
+ background: ${f.color_fill_inverse_disabled};
583
581
  }
584
- `,Yb={low:Hb,medium:Bb,high:{primary:Kb,secondary:Ub,danger:jb,inverse:Gb}},rs=a.forwardRef((e,t)=>{const{size:n="small",variant:r="primary",emphasis:o="high",disabled:i=!1,onClick:s,autoFocus:l,children:d,...f}=e,u=$t(t),{buttonProps:p,isPressed:$}=Br({onPress:s,isDisabled:i,autoFocus:l,...f},u),{isFocusVisible:b,focusProps:h}=rn({autoFocus:l}),y=[b?"focused":void 0,$?"pressed":void 0].filter(Boolean).join(" "),w=Yb[o][r];return T(w,{ref:u,"data-state":y,paddingSize:n,...f,...p,...h,children:d})});rs.displayName="Button";function vn(e){const t=a.useRef({value:e,previous:e});return a.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}const os="Checkbox",[qb,Bh]=ge(os),[Xb,Zb]=qb(os),Jb=a.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:r,checked:o,defaultChecked:i,required:s,disabled:l,value:d="on",onCheckedChange:f,...u}=e,[p,$]=a.useState(null),b=J(t,_=>$(_)),h=a.useRef(!1),m=p?Boolean(p.closest("form")):!0,[v=!1,y]=Pe({prop:o,defaultProp:i,onChange:f});return a.createElement(Xb,{scope:n,state:v,disabled:l},a.createElement(R.button,D({type:"button",role:"checkbox","aria-checked":it(v)?"mixed":v,"aria-required":s,"data-state":as(v),"data-disabled":l?"":void 0,disabled:l,value:d},u,{ref:b,onKeyDown:B(e.onKeyDown,_=>{_.key==="Enter"&&_.preventDefault()}),onClick:B(e.onClick,_=>{y(w=>it(w)?!0:!w),m&&(h.current=_.isPropagationStopped(),h.current||_.stopPropagation())})})),m&&a.createElement(t0,{control:p,bubbles:!h.current,name:r,value:d,checked:v,required:s,disabled:l,style:{transform:"translateX(-100%)"}}))}),Qb="CheckboxIndicator",e0=a.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...o}=e,i=Zb(Qb,n);return a.createElement(ye,{present:r||it(i.state)||i.state===!0},a.createElement(R.span,D({"data-state":as(i.state),"data-disabled":i.disabled?"":void 0},o,{ref:t,style:{pointerEvents:"none",...e.style}})))}),t0=e=>{const{control:t,checked:n,bubbles:r=!0,...o}=e,i=a.useRef(null),s=vn(n),l=mn(t);return a.useEffect(()=>{const d=i.current,f=window.HTMLInputElement.prototype,p=Object.getOwnPropertyDescriptor(f,"checked").set;if(s!==n&&p){const $=new Event("click",{bubbles:r});d.indeterminate=it(n),p.call(d,it(n)?!1:n),d.dispatchEvent($)}},[s,n,r]),a.createElement("input",D({type:"checkbox","aria-hidden":!0,defaultChecked:it(n)?!1:n},o,{tabIndex:-1,ref:i,style:{...e.style,...l,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function it(e){return e==="indeterminate"}function as(e){return it(e)?"indeterminate":e?"checked":"unchecked"}const n0=Jb,r0=e0,Vr=a.createContext(!1);Vr.displayName="FieldsetContext";const is=k.default.fieldset`
582
+ `,Vv={low:Mv,medium:Dv,high:{primary:Lv,secondary:Fv,danger:Rv,inverse:zv}},To=l.forwardRef((e,t)=>{const{size:r="small",variant:n="primary",emphasis:o="high",disabled:i=!1,onClick:a,autoFocus:s,children:c,...u}=e,d=bt(t),{buttonProps:p,isPressed:b}=Co({onPress:a,isDisabled:i,autoFocus:s,...u},d),{isFocusVisible:h,focusProps:v}=Nr({autoFocus:s}),$=[h?"focused":void 0,b?"pressed":void 0].filter(Boolean).join(" "),w=Vv[o][n];return T(w,{ref:d,"data-state":$,paddingSize:r,...u,...p,...v,children:c})});To.displayName="Button";function Xr(e){const t=l.useRef({value:e,previous:e});return l.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}const Jl="Checkbox",[jv,SE]=Se(Jl),[Bv,Wv]=jv(Jl),Uv=l.forwardRef((e,t)=>{const{__scopeCheckbox:r,name:n,checked:o,defaultChecked:i,required:a,disabled:s,value:c="on",onCheckedChange:u,...d}=e,[p,b]=l.useState(null),h=le(t,_=>b(_)),v=l.useRef(!1),m=p?Boolean(p.closest("form")):!0,[y=!1,$]=Me({prop:o,defaultProp:i,onChange:u});return l.createElement(Bv,{scope:r,state:y,disabled:s},l.createElement(Q.button,C({type:"button",role:"checkbox","aria-checked":gt(y)?"mixed":y,"aria-required":a,"data-state":Zl(y),"data-disabled":s?"":void 0,disabled:s,value:c},d,{ref:h,onKeyDown:K(e.onKeyDown,_=>{_.key==="Enter"&&_.preventDefault()}),onClick:K(e.onClick,_=>{$(w=>gt(w)?!0:!w),m&&(v.current=_.isPropagationStopped(),v.current||_.stopPropagation())})})),m&&l.createElement(Gv,{control:p,bubbles:!v.current,name:n,value:c,checked:y,required:a,disabled:s,style:{transform:"translateX(-100%)"}}))}),Kv="CheckboxIndicator",Hv=l.forwardRef((e,t)=>{const{__scopeCheckbox:r,forceMount:n,...o}=e,i=Wv(Kv,r);return l.createElement(De,{present:n||gt(i.state)||i.state===!0},l.createElement(Q.span,C({"data-state":Zl(i.state),"data-disabled":i.disabled?"":void 0},o,{ref:t,style:{pointerEvents:"none",...e.style}})))}),Gv=e=>{const{control:t,checked:r,bubbles:n=!0,...o}=e,i=l.useRef(null),a=Xr(r),s=Hr(t);return l.useEffect(()=>{const c=i.current,u=window.HTMLInputElement.prototype,p=Object.getOwnPropertyDescriptor(u,"checked").set;if(a!==r&&p){const b=new Event("click",{bubbles:n});c.indeterminate=gt(r),p.call(c,gt(r)?!1:r),c.dispatchEvent(b)}},[a,r,n]),l.createElement("input",C({type:"checkbox","aria-hidden":!0,defaultChecked:gt(r)?!1:r},o,{tabIndex:-1,ref:i,style:{...e.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function gt(e){return e==="indeterminate"}function Zl(e){return gt(e)?"indeterminate":e?"checked":"unchecked"}const qv=Uv,Yv=Hv,Oo=l.createContext(!1);Oo.displayName="FieldsetContext";const Ql=A.default.fieldset`
585
583
  padding: 0;
586
584
  border: none;
587
- `;function o0({children:e,disabled:t,...n}){const o=Ue()||Boolean(t);return T(Vr.Provider,{value:o,children:T(is,{disabled:t,...n,children:e})})}function Ue(){return a.useContext(Vr)}function a0(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":o,labelElementType:i="label"}=e;t=rt(t);let s=rt(),l={};n?(r=r?`${r} ${s}`:s,l={id:s,htmlFor:i==="label"?t:void 0}):!r&&!o&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let d=hf({id:t,"aria-label":o,"aria-labelledby":r});return{labelProps:l,fieldProps:d}}function ss(e){let{description:t,errorMessage:n,validationState:r}=e,{labelProps:o,fieldProps:i}=a0(e),s=sa([Boolean(t),Boolean(n),r]),l=sa([Boolean(t),Boolean(n),r]);return i=be(i,{"aria-describedby":[s,l,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:o,fieldProps:i,descriptionProps:{id:s},errorMessageProps:{id:l}}}function Rr(e,t){let{inputElementType:n="input",isDisabled:r=!1,isRequired:o=!1,isReadOnly:i=!1,validationState:s,type:l="text",onChange:d=()=>{}}=e,{focusableProps:f}=wr(e,t),{labelProps:u,fieldProps:p,descriptionProps:$,errorMessageProps:b}=ss(e),h=Dt(e,{labelable:!0});const m={type:l,pattern:e.pattern};return{labelProps:u,inputProps:be(h,n==="input"&&m,{disabled:r,readOnly:i,"aria-required":o||void 0,"aria-invalid":s==="invalid"||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],value:e.value,defaultValue:e.value?void 0:e.defaultValue,onChange:v=>d(v.target.value),autoComplete:e.autoComplete,maxLength:e.maxLength,minLength:e.minLength,name:e.name,placeholder:e.placeholder,inputMode:e.inputMode,onCopy:e.onCopy,onCut:e.onCut,onPaste:e.onPaste,onCompositionEnd:e.onCompositionEnd,onCompositionStart:e.onCompositionStart,onCompositionUpdate:e.onCompositionUpdate,onSelect:e.onSelect,onBeforeInput:e.onBeforeInput,onInput:e.onInput,...f,...p}),descriptionProps:$,errorMessageProps:b}}function ls(){return typeof window<"u"&&window.InputEvent&&typeof InputEvent.prototype.getTargetRanges=="function"}function i0(e,t,n){let r=a.useRef(t);r.current=t,a.useEffect(()=>{if(!ls())return;let u=n.current,p=$=>{let b=r.current,h;switch($.inputType){case"historyUndo":case"historyRedo":return;case"deleteContent":case"deleteByCut":case"deleteByDrag":h=u.value.slice(0,u.selectionStart)+u.value.slice(u.selectionEnd);break;case"deleteContentForward":h=u.selectionEnd===u.selectionStart?u.value.slice(0,u.selectionStart)+u.value.slice(u.selectionEnd+1):u.value.slice(0,u.selectionStart)+u.value.slice(u.selectionEnd);break;case"deleteContentBackward":h=u.selectionEnd===u.selectionStart?u.value.slice(0,u.selectionStart-1)+u.value.slice(u.selectionStart):u.value.slice(0,u.selectionStart)+u.value.slice(u.selectionEnd);break;case"deleteSoftLineBackward":case"deleteHardLineBackward":h=u.value.slice(u.selectionStart);break;default:$.data!=null&&(h=u.value.slice(0,u.selectionStart)+$.data+u.value.slice(u.selectionEnd));break}(h==null||!b.validate(h))&&$.preventDefault()};return u.addEventListener("beforeinput",p,!1),()=>{u.removeEventListener("beforeinput",p,!1)}},[n,r]);let o=ls()?null:u=>{let p=u.target.value.slice(0,u.target.selectionStart)+u.data+u.target.value.slice(u.target.selectionEnd);t.validate(p)||u.preventDefault()},{labelProps:i,inputProps:s,descriptionProps:l,errorMessageProps:d}=Rr(e,n),f=a.useRef(null);return{inputProps:be(s,{onBeforeInput:o,onCompositionStart(){let{value:u,selectionStart:p,selectionEnd:$}=n.current;f.current={value:u,selectionStart:p,selectionEnd:$}},onCompositionEnd(){if(!t.validate(n.current.value)){let{value:u,selectionStart:p,selectionEnd:$}=f.current;n.current.value=u,n.current.setSelectionRange(p,$),t.setInputValue(u)}}}),labelProps:i,descriptionProps:l,errorMessageProps:d}}const Wr=k.default.label`
588
- font-family: ${c.font_family_sans};
585
+ `;function Xv({children:e,disabled:t,...r}){const o=tt()||Boolean(t);return T(Oo.Provider,{value:o,children:T(Ql,{disabled:t,...r,children:e})})}function tt(){return l.useContext(Oo)}function Jv(e){let{id:t,label:r,"aria-labelledby":n,"aria-label":o,labelElementType:i="label"}=e;t=ht(t);let a=ht(),s={};r?(n=n?`${n} ${a}`:a,s={id:a,htmlFor:i==="label"?t:void 0}):!n&&!o&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let c=ub({id:t,"aria-label":o,"aria-labelledby":n});return{labelProps:s,fieldProps:c}}function ec(e){let{description:t,errorMessage:r,validationState:n}=e,{labelProps:o,fieldProps:i}=Jv(e),a=es([Boolean(t),Boolean(r),n]),s=es([Boolean(t),Boolean(r),n]);return i=we(i,{"aria-describedby":[a,s,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:o,fieldProps:i,descriptionProps:{id:a},errorMessageProps:{id:s}}}function Jr(e,t){let{inputElementType:r="input",isDisabled:n=!1,isRequired:o=!1,isReadOnly:i=!1,validationState:a,type:s="text",onChange:c=()=>{}}=e,{focusableProps:u}=fo(e,t),{labelProps:d,fieldProps:p,descriptionProps:b,errorMessageProps:h}=ec(e),v=Yt(e,{labelable:!0});const m={type:s,pattern:e.pattern};return{labelProps:d,inputProps:we(v,r==="input"&&m,{disabled:n,readOnly:i,"aria-required":o||void 0,"aria-invalid":a==="invalid"||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],value:e.value,defaultValue:e.value?void 0:e.defaultValue,onChange:y=>c(y.target.value),autoComplete:e.autoComplete,maxLength:e.maxLength,minLength:e.minLength,name:e.name,placeholder:e.placeholder,inputMode:e.inputMode,onCopy:e.onCopy,onCut:e.onCut,onPaste:e.onPaste,onCompositionEnd:e.onCompositionEnd,onCompositionStart:e.onCompositionStart,onCompositionUpdate:e.onCompositionUpdate,onSelect:e.onSelect,onBeforeInput:e.onBeforeInput,onInput:e.onInput,...u,...p}),descriptionProps:b,errorMessageProps:h}}function tc(){return typeof window<"u"&&window.InputEvent&&typeof InputEvent.prototype.getTargetRanges=="function"}function Zv(e,t,r){let n=l.useRef(t);n.current=t,l.useEffect(()=>{if(!tc())return;let d=r.current,p=b=>{let h=n.current,v;switch(b.inputType){case"historyUndo":case"historyRedo":return;case"deleteContent":case"deleteByCut":case"deleteByDrag":v=d.value.slice(0,d.selectionStart)+d.value.slice(d.selectionEnd);break;case"deleteContentForward":v=d.selectionEnd===d.selectionStart?d.value.slice(0,d.selectionStart)+d.value.slice(d.selectionEnd+1):d.value.slice(0,d.selectionStart)+d.value.slice(d.selectionEnd);break;case"deleteContentBackward":v=d.selectionEnd===d.selectionStart?d.value.slice(0,d.selectionStart-1)+d.value.slice(d.selectionStart):d.value.slice(0,d.selectionStart)+d.value.slice(d.selectionEnd);break;case"deleteSoftLineBackward":case"deleteHardLineBackward":v=d.value.slice(d.selectionStart);break;default:b.data!=null&&(v=d.value.slice(0,d.selectionStart)+b.data+d.value.slice(d.selectionEnd));break}(v==null||!h.validate(v))&&b.preventDefault()};return d.addEventListener("beforeinput",p,!1),()=>{d.removeEventListener("beforeinput",p,!1)}},[r,n]);let o=tc()?null:d=>{let p=d.target.value.slice(0,d.target.selectionStart)+d.data+d.target.value.slice(d.target.selectionEnd);t.validate(p)||d.preventDefault()},{labelProps:i,inputProps:a,descriptionProps:s,errorMessageProps:c}=Jr(e,r),u=l.useRef(null);return{inputProps:we(a,{onBeforeInput:o,onCompositionStart(){let{value:d,selectionStart:p,selectionEnd:b}=r.current;u.current={value:d,selectionStart:p,selectionEnd:b}},onCompositionEnd(){if(!t.validate(r.current.value)){let{value:d,selectionStart:p,selectionEnd:b}=u.current;r.current.value=d,r.current.setSelectionRange(p,b),t.setInputValue(d)}}}),labelProps:i,descriptionProps:s,errorMessageProps:c}}const ko=A.default.label`
586
+ font-family: ${f.font_family_sans};
589
587
  margin: 0;
590
588
  font-style: normal;
591
589
  display: var(--label-display);
592
- gap: ${c.sizing_200};
590
+ gap: ${f.sizing_200};
593
591
  align-items: center;
594
592
  font-weight: var(--label-font-weight, 400);
595
- color: ${c.color_background_black_standard};
596
- `,s0=k.default(Wr)`
597
- font-size: ${c.font_size_label_small};
598
- letter-spacing: ${c.letter_spacing_label_small};
599
- line-height: ${c.line_height_label_small};
600
- `,l0=k.default(Wr)`
601
- font-size: ${c.font_size_label_large};
602
- letter-spacing: ${c.letter_spacing_label_large};
603
- line-height: ${c.line_height_label_large};
604
- `,c0=k.default(Wr)`
605
- font-size: ${c.font_size_label_medium};
606
- letter-spacing: ${c.letter_spacing_label_medium};
607
- line-height: ${c.line_height_label_medium};
608
- `,d0={small:s0,medium:c0,large:l0};function je({children:e,bold:t,size:n="small",display:r="inline-flex",...o}){const i=d0[n];return T(i,{...o,style:{"--label-font-weight":t?500:400,"--label-display":r},children:e})}const u0={small:"7px 8px",large:"11px 12px"},_n=k.default.input`
609
- padding: ${({paddingSize:e="small"})=>u0[e]}; // add default?
593
+ color: ${f.color_background_black_standard};
594
+ `,Qv=A.default(ko)`
595
+ font-size: ${f.font_size_label_small};
596
+ letter-spacing: ${f.letter_spacing_label_small};
597
+ line-height: ${f.line_height_label_small};
598
+ `,eg=A.default(ko)`
599
+ font-size: ${f.font_size_label_large};
600
+ letter-spacing: ${f.letter_spacing_label_large};
601
+ line-height: ${f.line_height_label_large};
602
+ `,tg=A.default(ko)`
603
+ font-size: ${f.font_size_label_medium};
604
+ letter-spacing: ${f.letter_spacing_label_medium};
605
+ line-height: ${f.line_height_label_medium};
606
+ `,rg={small:Qv,medium:tg,large:eg};function rt({children:e,bold:t,size:r="small",display:n="inline-flex",...o}){const i=rg[r];return T(i,{...o,style:{"--label-font-weight":t?500:400,"--label-display":n},children:e})}const ng={small:"7px 8px",large:"11px 12px"},er=A.default.input`
607
+ padding: ${({paddingSize:e="small"})=>ng[e]}; // add default?
610
608
  appearance: none;
611
- border: 1px solid ${c.color_outline_secondary_enabled};
612
- border-radius: ${c.border_radius_400};
613
- line-height: ${c.line_height_body_medium};
609
+ border: 1px solid ${f.color_outline_secondary_enabled};
610
+ border-radius: ${f.border_radius_400};
611
+ line-height: ${f.line_height_body_medium};
614
612
 
615
- transition-property: ${c.transition_property_color};
616
- transition-timing-function: linear;
617
- transition-duration: ${c.transition_duration_100};
613
+ transition-property: ${f.transition_property_color};
614
+ transition-duration: ${f.transition_duration_100};
618
615
 
619
616
  resize: none; // TODO make this toggleable with a prop
620
- font-family: ${c.font_family_inter};
617
+ font-family: ${f.font_family_inter};
621
618
 
622
619
  &::placeholder {
623
620
  font-weight: 400;
624
621
  font-style: normal;
625
- color: ${c.color_text_weak};
626
- font-size: ${c.font_size_100};
622
+ color: ${f.color_text_weak};
623
+ font-size: ${f.font_size_100};
627
624
  }
628
625
 
629
626
  &:hover {
630
- background-color: ${c.color_overlay_secondary_hover};
631
- border-color: ${c.color_outline_secondary_hover};
627
+ background-color: ${f.color_overlay_secondary_hover};
628
+ border-color: ${f.color_outline_secondary_hover};
632
629
  }
633
630
 
634
631
  &[data-state="invalid"],
635
632
  &:invalid {
636
- border-color: ${c.color_outline_danger_enabled};
633
+ border-color: ${f.color_outline_danger_enabled};
637
634
  }
638
635
 
639
636
  /* &:active too? */
640
637
  &:focus-visible {
641
- background-color: ${c.color_overlay_secondary_enabled};
642
- outline: 1px solid ${c.color_black};
643
- border-color: ${c.color_black};
638
+ background-color: ${f.color_overlay_secondary_enabled};
639
+ outline: 1px solid ${f.color_black};
640
+ border-color: ${f.color_black};
644
641
  }
645
642
 
646
643
  &:disabled {
647
- /* border-color: ${c.color_outline_secondary_disabled}; */
648
- color: ${c.color_fill_primary_disabled};
644
+ /* border-color: ${f.color_outline_secondary_disabled}; */
645
+ color: ${f.color_fill_primary_disabled};
649
646
  cursor: not-allowed;
650
647
  border-color: revert;
651
648
  }
652
649
 
653
650
  &:disabled::placeholder {
654
- color: ${c.color_fill_primary_disabled};
651
+ color: ${f.color_fill_primary_disabled};
655
652
  }
656
- `,yn=k.default.div`
653
+ `,Zr=A.default.div`
657
654
  display: flex;
658
655
  flex-direction: column;
659
656
  justify-content: space-between;
660
657
 
661
- gap: ${c.sizing_200};
658
+ gap: ${f.sizing_200};
662
659
  position: relative;
663
- font-family: ${c.font_family_inter};
660
+ font-family: ${f.font_family_inter};
664
661
  font-style: normal;
665
662
  font-weight: 400;
666
- font-size: ${c.font_size_100};
667
- line-height: ${c.line_height_129};
668
- border-radius: ${c.border_radius_400};
669
- letter-spacing: ${c.letter_spacing_tight};
663
+ font-size: ${f.font_size_100};
664
+ line-height: ${f.line_height_129};
665
+ border-radius: ${f.border_radius_400};
666
+ letter-spacing: ${f.letter_spacing_tight};
670
667
 
671
668
  /* max-width: 300px; make configurable with prop? */
672
- `,xn=k.default.div`
669
+ `,Qr=A.default.div`
673
670
  display: flex;
674
671
  align-items: center;
675
672
  gap: 5.33px; // TODO update sizing this is 1/3rem
676
- color: ${c.color_text_sentiment_negative};
677
- font-size: ${c.font_size_50};
678
- font-family: ${c.font_family_sans};
673
+ color: ${f.color_text_sentiment_negative};
674
+ font-size: ${f.font_size_50};
675
+ font-family: ${f.font_family_sans};
679
676
  /* max-height? with overflow-x? */
680
677
 
681
678
  & > svg {
682
- font-size: ${c.font_size_200};
679
+ font-size: ${f.font_size_200};
683
680
  line-height: 0;
684
681
  /* display: inline-flex;
685
682
  align-self: center; */
686
683
  }
687
- `,wn=k.default.div`
688
- color: ${c.color_text_weak};
689
- font-size: ${c.font_size_50};
690
- line-height: ${c.line_height_133};
691
- font-family: ${c.font_family_sans};
684
+ `,en=A.default.div`
685
+ color: ${f.color_text_weak};
686
+ font-size: ${f.font_size_50};
687
+ line-height: ${f.line_height_133};
688
+ font-family: ${f.font_family_sans};
692
689
  /* max-height? with overflow-x? */
693
- `;k.default.div`
690
+ `;A.default.div`
694
691
  position: absolute;
695
692
  right: 8px;
696
693
  top: 0;
@@ -698,68 +695,67 @@ Check the top-level render call using <`+N+">.")}return M}}function Ct(x,M){{if(
698
695
  display: flex;
699
696
  align-items: center;
700
697
  pointer-events: none;
701
- `;const Hr=a.forwardRef((e,t)=>{const{errorMessage:n,description:r,disabled:o,readOnly:i,required:s,paddingSize:l="small",label:d,validationState:f,placeholder:u="Enter text...",...p}=e,$=$t(t),b=Ue(),h=o||b,{labelProps:m,descriptionProps:v,inputProps:y,errorMessageProps:_}=Rr({...p,isDisabled:h,isReadOnly:i,isRequired:s,placeholder:u,label:d},$);let w=null;return typeof d=="string"?w=T(je,{...m,children:d}):a.isValidElement(d)&&(w=a.cloneElement(d,{...m})),ee(yn,{children:[w,T(_n,{"data-state":f,paddingSize:l,ref:$,placeholder:"Enter...",type:"text",...y}),n&&ee(xn,{..._,children:[T(ve.Error,{}),n]}),r&&T(wn,{...v,children:r})]})});Hr.displayName="TextInput";const[En,Vh]=ge("Tooltip",[gn]),Pn=gn(),f0="TooltipProvider",p0=700,Kr="tooltip.open",[b0,Ur]=En(f0),m0=e=>{const{__scopeTooltip:t,delayDuration:n=p0,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:i}=e,[s,l]=a.useState(!0),d=a.useRef(!1),f=a.useRef(0);return a.useEffect(()=>{const u=f.current;return()=>window.clearTimeout(u)},[]),a.createElement(b0,{scope:t,isOpenDelayed:s,delayDuration:n,onOpen:a.useCallback(()=>{window.clearTimeout(f.current),l(!1)},[]),onClose:a.useCallback(()=>{window.clearTimeout(f.current),f.current=window.setTimeout(()=>l(!0),r)},[r]),isPointerInTransitRef:d,onPointerInTransitChange:a.useCallback(u=>{d.current=u},[]),disableHoverableContent:o},i)},jr="Tooltip",[g0,Mt]=En(jr),$0=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o=!1,onOpenChange:i,disableHoverableContent:s,delayDuration:l}=e,d=Ur(jr,e.__scopeTooltip),f=Pn(t),[u,p]=a.useState(null),$=Le(),b=a.useRef(0),h=s!=null?s:d.disableHoverableContent,m=l!=null?l:d.delayDuration,v=a.useRef(!1),[y=!1,_]=Pe({prop:r,defaultProp:o,onChange:C=>{C?(d.onOpen(),document.dispatchEvent(new CustomEvent(Kr))):d.onClose(),i==null||i(C)}}),w=a.useMemo(()=>y?v.current?"delayed-open":"instant-open":"closed",[y]),g=a.useCallback(()=>{window.clearTimeout(b.current),v.current=!1,_(!0)},[_]),O=a.useCallback(()=>{window.clearTimeout(b.current),_(!1)},[_]),L=a.useCallback(()=>{window.clearTimeout(b.current),b.current=window.setTimeout(()=>{v.current=!0,_(!0)},m)},[m,_]);return a.useEffect(()=>()=>window.clearTimeout(b.current),[]),a.createElement(Vi,f,a.createElement(g0,{scope:t,contentId:$,open:y,stateAttribute:w,trigger:u,onTriggerChange:p,onTriggerEnter:a.useCallback(()=>{d.isOpenDelayed?L():g()},[d.isOpenDelayed,L,g]),onTriggerLeave:a.useCallback(()=>{h?O():window.clearTimeout(b.current)},[O,h]),onOpen:g,onClose:O,disableHoverableContent:h},n))},cs="TooltipTrigger",h0=a.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Mt(cs,n),i=Ur(cs,n),s=Pn(n),l=a.useRef(null),d=J(t,l,o.onTriggerChange),f=a.useRef(!1),u=a.useRef(!1),p=a.useCallback(()=>f.current=!1,[]);return a.useEffect(()=>()=>document.removeEventListener("pointerup",p),[p]),a.createElement(Ri,D({asChild:!0},s),a.createElement(R.button,D({"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute},r,{ref:d,onPointerMove:B(e.onPointerMove,$=>{$.pointerType!=="touch"&&!u.current&&!i.isPointerInTransitRef.current&&(o.onTriggerEnter(),u.current=!0)}),onPointerLeave:B(e.onPointerLeave,()=>{o.onTriggerLeave(),u.current=!1}),onPointerDown:B(e.onPointerDown,()=>{f.current=!0,document.addEventListener("pointerup",p,{once:!0})}),onFocus:B(e.onFocus,()=>{f.current||o.onOpen()}),onBlur:B(e.onBlur,o.onClose),onClick:B(e.onClick,o.onClose)})))}),ds="TooltipPortal",[v0,_0]=En(ds,{forceMount:void 0}),y0=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,i=Mt(ds,t);return a.createElement(v0,{scope:t,forceMount:n},a.createElement(ye,{present:n||i.open},a.createElement(kt,{asChild:!0,container:o},r)))},Ft="TooltipContent",x0=a.forwardRef((e,t)=>{const n=_0(Ft,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...i}=e,s=Mt(Ft,e.__scopeTooltip);return a.createElement(ye,{present:r||s.open},s.disableHoverableContent?a.createElement(us,D({side:o},i,{ref:t})):a.createElement(w0,D({side:o},i,{ref:t})))}),w0=a.forwardRef((e,t)=>{const n=Mt(Ft,e.__scopeTooltip),r=Ur(Ft,e.__scopeTooltip),o=a.useRef(null),i=J(t,o),[s,l]=a.useState(null),{trigger:d,onClose:f}=n,u=o.current,{onPointerInTransitChange:p}=r,$=a.useCallback(()=>{l(null),p(!1)},[p]),b=a.useCallback((h,m)=>{const v=h.currentTarget,y={x:h.clientX,y:h.clientY},_=S0(y,v.getBoundingClientRect()),w=_==="right"||_==="bottom"?-5:5,O=_==="right"||_==="left"?{x:h.clientX+w,y:h.clientY}:{x:h.clientX,y:h.clientY+w},L=k0(m.getBoundingClientRect()),C=O0([O,...L]);l(C),p(!0)},[p]);return a.useEffect(()=>()=>$(),[$]),a.useEffect(()=>{if(d&&u){const h=v=>b(v,u),m=v=>b(v,d);return d.addEventListener("pointerleave",h),u.addEventListener("pointerleave",m),()=>{d.removeEventListener("pointerleave",h),u.removeEventListener("pointerleave",m)}}},[d,u,b,$]),a.useEffect(()=>{if(s){const h=m=>{const v=m.target,y={x:m.clientX,y:m.clientY},_=(d==null?void 0:d.contains(v))||(u==null?void 0:u.contains(v)),w=!D0(y,s);_?$():w&&($(),f())};return document.addEventListener("pointermove",h),()=>document.removeEventListener("pointermove",h)}},[d,u,s,f,$]),a.createElement(us,D({},e,{ref:i}))}),[E0,P0]=En(jr,{isInside:!1}),us=a.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:i,onPointerDownOutside:s,...l}=e,d=Mt(Ft,n),f=Pn(n),{onClose:u}=d;return a.useEffect(()=>(document.addEventListener(Kr,u),()=>document.removeEventListener(Kr,u)),[u]),a.useEffect(()=>{if(d.trigger){const p=$=>{const b=$.target;b!=null&&b.contains(d.trigger)&&u()};return window.addEventListener("scroll",p,{capture:!0}),()=>window.removeEventListener("scroll",p,{capture:!0})}},[d.trigger,u]),a.createElement(St,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:p=>p.preventDefault(),onDismiss:u},a.createElement(Wi,D({"data-state":d.stateAttribute},f,l,{ref:t,style:{...l.style,["--radix-tooltip-content-transform-origin"]:"var(--radix-popper-transform-origin)"}}),a.createElement(Bn,null,r),a.createElement(E0,{scope:n,isInside:!0},a.createElement(oa,{id:d.contentId,role:"tooltip"},o||r))))}),C0="TooltipArrow",T0=a.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Pn(n);return P0(C0,n).isInside?null:a.createElement(Hi,D({},o,r,{ref:t}))});function S0(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:return null}}function k0(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function D0(e,t){const{x:n,y:r}=e;let o=!1;for(let i=0,s=t.length-1;i<t.length;s=i++){const l=t[i].x,d=t[i].y,f=t[s].x,u=t[s].y;d>r!=u>r&&n<(f-l)*(r-d)/(u-d)+l&&(o=!o)}return o}function O0(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),I0(t)}function I0(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const i=t[t.length-1],s=t[t.length-2];if((i.x-s.x)*(o.y-s.y)>=(i.y-s.y)*(o.x-s.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const i=n[n.length-1],s=n[n.length-2];if((i.x-s.x)*(o.y-s.y)>=(i.y-s.y)*(o.x-s.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}const A0=m0,L0=$0,M0=h0,F0=y0,N0=x0,z0=T0,B0=k.default(N0)`
702
- padding: ${c.sizing_200} ${c.sizing_200};
698
+ `;const Do=l.forwardRef((e,t)=>{const{errorMessage:r,description:n,disabled:o,readOnly:i,required:a,paddingSize:s="small",label:c,validationState:u,placeholder:d="Enter text...",...p}=e,b=bt(t),h=tt(),v=o||h,{labelProps:m,descriptionProps:y,inputProps:$,errorMessageProps:_}=Jr({...p,isDisabled:v,isReadOnly:i,isRequired:a,placeholder:d,label:c},b);let w=null;return typeof c=="string"?w=T(rt,{...m,children:c}):l.isValidElement(c)&&(w=l.cloneElement(c,{...m})),ce(Zr,{children:[w,T(er,{"data-state":u,paddingSize:s,ref:b,placeholder:"Enter...",type:"text",...$}),r&&ce(Qr,{..._,children:[T(xe.Error,{}),r]}),n&&T(en,{...y,children:n})]})});Do.displayName="TextInput";const[tn,CE]=Se("Tooltip",[Gr]),rn=Gr(),og="TooltipProvider",ig=700,Io="tooltip.open",[ag,Ao]=tn(og),sg=e=>{const{__scopeTooltip:t,delayDuration:r=ig,skipDelayDuration:n=300,disableHoverableContent:o=!1,children:i}=e,[a,s]=l.useState(!0),c=l.useRef(!1),u=l.useRef(0);return l.useEffect(()=>{const d=u.current;return()=>window.clearTimeout(d)},[]),l.createElement(ag,{scope:t,isOpenDelayed:a,delayDuration:r,onOpen:l.useCallback(()=>{window.clearTimeout(u.current),s(!1)},[]),onClose:l.useCallback(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>s(!0),n)},[n]),isPointerInTransitRef:c,onPointerInTransitChange:l.useCallback(d=>{c.current=d},[]),disableHoverableContent:o},i)},No="Tooltip",[lg,tr]=tn(No),cg=e=>{const{__scopeTooltip:t,children:r,open:n,defaultOpen:o=!1,onOpenChange:i,disableHoverableContent:a,delayDuration:s}=e,c=Ao(No,e.__scopeTooltip),u=rn(t),[d,p]=l.useState(null),b=Ke(),h=l.useRef(0),v=a!=null?a:c.disableHoverableContent,m=s!=null?s:c.delayDuration,y=l.useRef(!1),[$=!1,_]=Me({prop:n,defaultProp:o,onChange:O=>{O?(c.onOpen(),document.dispatchEvent(new CustomEvent(Io))):c.onClose(),i==null||i(O)}}),w=l.useMemo(()=>$?y.current?"delayed-open":"instant-open":"closed",[$]),g=l.useCallback(()=>{window.clearTimeout(h.current),y.current=!1,_(!0)},[_]),D=l.useCallback(()=>{window.clearTimeout(h.current),_(!1)},[_]),M=l.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{y.current=!0,_(!0)},m)},[m,_]);return l.useEffect(()=>()=>window.clearTimeout(h.current),[]),l.createElement(Nl,u,l.createElement(lg,{scope:t,contentId:b,open:$,stateAttribute:w,trigger:d,onTriggerChange:p,onTriggerEnter:l.useCallback(()=>{c.isOpenDelayed?M():g()},[c.isOpenDelayed,M,g]),onTriggerLeave:l.useCallback(()=>{v?D():window.clearTimeout(h.current)},[D,v]),onOpen:g,onClose:D,disableHoverableContent:v},r))},rc="TooltipTrigger",ug=l.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=tr(rc,r),i=Ao(rc,r),a=rn(r),s=l.useRef(null),c=le(t,s,o.onTriggerChange),u=l.useRef(!1),d=l.useRef(!1),p=l.useCallback(()=>u.current=!1,[]);return l.useEffect(()=>()=>document.removeEventListener("pointerup",p),[p]),l.createElement(Ml,C({asChild:!0},a),l.createElement(Q.button,C({"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute},n,{ref:c,onPointerMove:K(e.onPointerMove,b=>{b.pointerType!=="touch"&&!d.current&&!i.isPointerInTransitRef.current&&(o.onTriggerEnter(),d.current=!0)}),onPointerLeave:K(e.onPointerLeave,()=>{o.onTriggerLeave(),d.current=!1}),onPointerDown:K(e.onPointerDown,()=>{u.current=!0,document.addEventListener("pointerup",p,{once:!0})}),onFocus:K(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:K(e.onBlur,o.onClose),onClick:K(e.onClick,o.onClose)})))}),nc="TooltipPortal",[dg,fg]=tn(nc,{forceMount:void 0}),pg=e=>{const{__scopeTooltip:t,forceMount:r,children:n,container:o}=e,i=tr(nc,t);return l.createElement(dg,{scope:t,forceMount:r},l.createElement(De,{present:r||i.open},l.createElement(Gt,{asChild:!0,container:o},n)))},rr="TooltipContent",hg=l.forwardRef((e,t)=>{const r=fg(rr,e.__scopeTooltip),{forceMount:n=r.forceMount,side:o="top",...i}=e,a=tr(rr,e.__scopeTooltip);return l.createElement(De,{present:n||a.open},a.disableHoverableContent?l.createElement(oc,C({side:o},i,{ref:t})):l.createElement(bg,C({side:o},i,{ref:t})))}),bg=l.forwardRef((e,t)=>{const r=tr(rr,e.__scopeTooltip),n=Ao(rr,e.__scopeTooltip),o=l.useRef(null),i=le(t,o),[a,s]=l.useState(null),{trigger:c,onClose:u}=r,d=o.current,{onPointerInTransitChange:p}=n,b=l.useCallback(()=>{s(null),p(!1)},[p]),h=l.useCallback((v,m)=>{const y=v.currentTarget,$={x:v.clientX,y:v.clientY},_=_g($,y.getBoundingClientRect()),w=_==="right"||_==="bottom"?-5:5,D=_==="right"||_==="left"?{x:v.clientX+w,y:v.clientY}:{x:v.clientX,y:v.clientY+w},M=$g(m.getBoundingClientRect()),O=wg([D,...M]);s(O),p(!0)},[p]);return l.useEffect(()=>()=>b(),[b]),l.useEffect(()=>{if(c&&d){const v=y=>h(y,d),m=y=>h(y,c);return c.addEventListener("pointerleave",v),d.addEventListener("pointerleave",m),()=>{c.removeEventListener("pointerleave",v),d.removeEventListener("pointerleave",m)}}},[c,d,h,b]),l.useEffect(()=>{if(a){const v=m=>{const y=m.target,$={x:m.clientX,y:m.clientY},_=(c==null?void 0:c.contains(y))||(d==null?void 0:d.contains(y)),w=!xg($,a);_?b():w&&(b(),u())};return document.addEventListener("pointermove",v),()=>document.removeEventListener("pointermove",v)}},[c,d,a,u,b]),l.createElement(oc,C({},e,{ref:i}))}),[mg,vg]=tn(No,{isInside:!1}),oc=l.forwardRef((e,t)=>{const{__scopeTooltip:r,children:n,"aria-label":o,onEscapeKeyDown:i,onPointerDownOutside:a,...s}=e,c=tr(rr,r),u=rn(r),{onClose:d}=c;return l.useEffect(()=>(document.addEventListener(Io,d),()=>document.removeEventListener(Io,d)),[d]),l.useEffect(()=>{if(c.trigger){const p=b=>{const h=b.target;h!=null&&h.contains(c.trigger)&&d()};return window.addEventListener("scroll",p,{capture:!0}),()=>window.removeEventListener("scroll",p,{capture:!0})}},[c.trigger,d]),l.createElement(Ht,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:p=>p.preventDefault(),onDismiss:d},l.createElement(Ll,C({"data-state":c.stateAttribute},u,s,{ref:t,style:{...s.style,["--radix-tooltip-content-transform-origin"]:"var(--radix-popper-transform-origin)"}}),l.createElement(Cn,null,n),l.createElement(mg,{scope:r,isInside:!0},l.createElement(Ya,{id:c.contentId,role:"tooltip"},o||n))))}),gg="TooltipArrow",yg=l.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=rn(r);return vg(gg,r).isInside?null:l.createElement(Fl,C({},o,n,{ref:t}))});function _g(e,t){const r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(r,n,o,i)){case i:return"left";case o:return"right";case r:return"top";case n:return"bottom";default:return null}}function $g(e){const{top:t,right:r,bottom:n,left:o}=e;return[{x:o,y:t},{x:r,y:t},{x:r,y:n},{x:o,y:n}]}function xg(e,t){const{x:r,y:n}=e;let o=!1;for(let i=0,a=t.length-1;i<t.length;a=i++){const s=t[i].x,c=t[i].y,u=t[a].x,d=t[a].y;c>n!=d>n&&r<(u-s)*(n-c)/(d-c)+s&&(o=!o)}return o}function wg(e){const t=e.slice();return t.sort((r,n)=>r.x<n.x?-1:r.x>n.x?1:r.y<n.y?-1:r.y>n.y?1:0),Eg(t)}function Eg(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const o=e[n];for(;t.length>=2;){const i=t[t.length-1],a=t[t.length-2];if((i.x-a.x)*(o.y-a.y)>=(i.y-a.y)*(o.x-a.x))t.pop();else break}t.push(o)}t.pop();const r=[];for(let n=e.length-1;n>=0;n--){const o=e[n];for(;r.length>=2;){const i=r[r.length-1],a=r[r.length-2];if((i.x-a.x)*(o.y-a.y)>=(i.y-a.y)*(o.x-a.x))r.pop();else break}r.push(o)}return r.pop(),t.length===1&&r.length===1&&t[0].x===r[0].x&&t[0].y===r[0].y?t:t.concat(r)}const Pg=sg,Sg=cg,Cg=ug,Tg=pg,Og=hg,kg=yg,Dg=A.default(Og)`
699
+ padding: ${f.sizing_200} ${f.sizing_200};
703
700
  /* user-select: none; // TODO not sure about this */
704
- background: ${c.color_background_black_standard};
705
- color: ${c.color_text_white_standard};
706
- border-radius: ${c.border_radius_400};
707
- font-size: ${c.font_size_50};
708
- line-height: ${c.line_height_133}; /* identical to box height 16px, or 133% */
709
- font-family: ${c.font_family_inter};
710
- max-width: ${c.sizing_1000}; // TODO ask designers?
701
+ background: ${f.color_background_black_standard};
702
+ color: ${f.color_text_white_standard};
703
+ border-radius: ${f.border_radius_400};
704
+ font-size: ${f.font_size_50};
705
+ line-height: ${f.line_height_133}; /* identical to box height 16px, or 133% */
706
+ font-family: ${f.font_family_inter};
707
+ max-width: ${f.sizing_1000}; // TODO ask designers?
711
708
  z-index: 100; // TODO get from tokens
712
- `,V0=k.default(z0)`
709
+ `,Ig=A.default(kg)`
713
710
  fill: 'white';
714
- `;function R0({children:e,...t}){return T(F0,{children:ee(B0,{...t,children:[e,T(V0,{})]})})}const W0=k.default(M0)`
711
+ `;function Ag({children:e,...t}){return T(Tg,{children:ce(Dg,{...t,children:[e,T(Ig,{})]})})}const Ng=A.default(Cg)`
715
712
  appearance: none;
716
713
  padding: 0;
717
714
  border: none;
718
715
  background-color: unset;
719
716
  line-height: 0;
720
- `,fs=a.forwardRef((e,t)=>{const{children:n,...r}=e;return T(W0,{ref:t,type:"button",...r,children:n})}),ps=A0,bs=L0,ms=R0,H0=k.default(fs)`
721
- color: ${c.color_text_white_weak};
717
+ `,ic=l.forwardRef((e,t)=>{const{children:r,...n}=e;return T(Ng,{ref:t,type:"button",...n,children:r})}),ac=Pg,sc=Sg,lc=Ag,Mg=A.default(ic)`
718
+ color: ${f.color_text_white_weak};
722
719
  margin-block: auto;
723
720
 
724
721
  & > svg {
725
722
  font-size: 0.9rem;
726
- /* ${c.font_size_200}; */
723
+ /* ${f.font_size_200}; */
727
724
  line-height: 0;
728
- color: ${c.color_text_white_weak};
725
+ color: ${f.color_text_white_weak};
729
726
 
730
- transition-property: ${c.transition_property_color};
731
- transition-timing-function: linear;
732
- transition-duration: ${c.transition_duration_100};
727
+ transition-property: ${f.transition_property_color};
728
+ transition-duration: ${f.transition_duration_100};
733
729
  }
734
730
 
735
731
  &:hover > svg {
736
- color: ${c.color_fill_primary_pressed};
732
+ color: ${f.color_fill_primary_pressed};
737
733
  }
738
734
 
739
735
  /* TODO check these colors with designers */
740
736
  &:not([data-state='closed']) > svg {
741
737
  color: steelblue;
742
- /* color: ${c.color_fill_primary_hover}; */
738
+ /* color: ${f.color_fill_primary_hover}; */
743
739
  }
744
- `;function Cn({children:e,icon:t=T(ve.Help,{}),label:n="More info"}){return T(ps,{children:ee(bs,{children:[T(H0,{children:T(Jt,{label:n,children:t})}),T(ms,{sideOffset:5,children:e})]})})}const gs=7e3;let Gr=null;function K0(e,t="assertive",n=gs){Gr||(Gr=new U0),Gr.announce(e,t,n)}class U0{createLog(t){let n=document.createElement("div");return n.setAttribute("role","log"),n.setAttribute("aria-live",t),n.setAttribute("aria-relevant","additions"),n}destroy(){!this.node||(document.body.removeChild(this.node),this.node=null)}announce(t,n="assertive",r=gs){if(!this.node)return;let o=document.createElement("div");o.textContent=t,n==="assertive"?this.assertiveLog.appendChild(o):this.politeLog.appendChild(o),t!==""&&setTimeout(()=>{o.remove()},r)}clear(t){!this.node||((!t||t==="assertive")&&(this.assertiveLog.innerHTML=""),(!t||t==="polite")&&(this.politeLog.innerHTML=""))}constructor(){this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:1,margin:"0 -1px -1px 0",overflow:"hidden",padding:0,position:"absolute",width:1,whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node)}}function j0(e){return e&&e.__esModule?e.default:e}var $s={},hs={};hs={Empty:"\u0641\u0627\u0631\u063A"};var vs={};vs={Empty:"\u0418\u0437\u043F\u0440\u0430\u0437\u043D\u0438"};var _s={};_s={Empty:"Pr\xE1zdn\xE9"};var ys={};ys={Empty:"Tom"};var xs={};xs={Empty:"Leer"};var ws={};ws={Empty:"\u0386\u03B4\u03B5\u03B9\u03BF"};var Es={};Es={Empty:"Empty"};var Ps={};Ps={Empty:"Vac\xEDo"};var Cs={};Cs={Empty:"T\xFChjenda"};var Ts={};Ts={Empty:"Tyhj\xE4"};var Ss={};Ss={Empty:"Vide"};var ks={};ks={Empty:"\u05E8\u05D9\u05E7"};var Ds={};Ds={Empty:"Prazno"};var Os={};Os={Empty:"\xDCres"};var Is={};Is={Empty:"Vuoto"};var As={};As={Empty:"\u7A7A"};var Ls={};Ls={Empty:"\uBE44\uC5B4 \uC788\uC74C"};var Ms={};Ms={Empty:"Tu\u0161\u010Dias"};var Fs={};Fs={Empty:"Tuk\u0161s"};var Ns={};Ns={Empty:"Tom"};var zs={};zs={Empty:"Leeg"};var Bs={};Bs={Empty:"Pusty"};var Vs={};Vs={Empty:"Vazio"};var Rs={};Rs={Empty:"Vazio"};var Ws={};Ws={Empty:"Gol"};var Hs={};Hs={Empty:"\u041D\u0435 \u0437\u0430\u043F\u043E\u043B\u043D\u0435\u043D\u043E"};var Ks={};Ks={Empty:"Pr\xE1zdne"};var Us={};Us={Empty:"Prazen"};var js={};js={Empty:"Prazno"};var Gs={};Gs={Empty:"Tomt"};var Ys={};Ys={Empty:"Bo\u015F"};var qs={};qs={Empty:"\u041F\u0443\u0441\u0442\u043E"};var Xs={};Xs={Empty:"\u7A7A"};var Zs={};Zs={Empty:"\u7A7A\u767D"},$s={"ar-AE":hs,"bg-BG":vs,"cs-CZ":_s,"da-DK":ys,"de-DE":xs,"el-GR":ws,"en-US":Es,"es-ES":Ps,"et-EE":Cs,"fi-FI":Ts,"fr-FR":Ss,"he-IL":ks,"hr-HR":Ds,"hu-HU":Os,"it-IT":Is,"ja-JP":As,"ko-KR":Ls,"lt-LT":Ms,"lv-LV":Fs,"nb-NO":Ns,"nl-NL":zs,"pl-PL":Bs,"pt-BR":Vs,"pt-PT":Rs,"ro-RO":Ws,"ru-RU":Hs,"sk-SK":Ks,"sl-SI":Us,"sr-SP":js,"sv-SE":Gs,"tr-TR":Ys,"uk-UA":qs,"zh-CN":Xs,"zh-TW":Zs};function G0(e){const t=a.useRef();let{value:n,textValue:r,minValue:o,maxValue:i,isDisabled:s,isReadOnly:l,isRequired:d,onIncrement:f,onIncrementPage:u,onDecrement:p,onDecrementPage:$,onDecrementToMin:b,onIncrementToMax:h}=e;const m=kr(j0($s)),v=a.useRef(e);v.current=e;const y=()=>clearTimeout(t.current);a.useEffect(()=>()=>y(),[]);let _=P=>{if(!(P.ctrlKey||P.metaKey||P.shiftKey||P.altKey||l))switch(P.key){case"PageUp":if(u){P.preventDefault(),u();break}case"ArrowUp":case"Up":f&&(P.preventDefault(),f());break;case"PageDown":if($){P.preventDefault(),$();break}case"ArrowDown":case"Down":p&&(P.preventDefault(),p());break;case"Home":b&&(P.preventDefault(),b());break;case"End":h&&(P.preventDefault(),h());break}},w=a.useRef(!1),g=()=>{w.current=!0},O=()=>{w.current=!1};r=r===""?m.format("Empty"):(r||`${n}`).replace("-","\u2212"),a.useEffect(()=>{w.current&&K0(r,"assertive")},[r]);const L=a.useCallback(P=>{y(),v.current.onIncrement(),t.current=window.setTimeout(()=>{(isNaN(i)||isNaN(n)||n<i)&&L(60)},P)},[f,i,n]),C=a.useCallback(P=>{y(),v.current.onDecrement(),t.current=window.setTimeout(()=>{(isNaN(o)||isNaN(n)||n>o)&&C(60)},P)},[p,o,n]);let A=P=>{P.preventDefault()},{addGlobalListener:F,removeAllGlobalListeners:W}=da();return{spinButtonProps:{role:"spinbutton","aria-valuenow":isNaN(n)?null:n,"aria-valuetext":r,"aria-valuemin":o,"aria-valuemax":i,"aria-disabled":s||null,"aria-readonly":l||null,"aria-required":d||null,onKeyDown:_,onFocus:g,onBlur:O},incrementButtonProps:{onPressStart:()=>{L(400),F(window,"contextmenu",A)},onPressEnd:()=>{y(),W()},onFocus:g,onBlur:O},decrementButtonProps:{onPressStart:()=>{C(400),F(window,"contextmenu",A)},onPressEnd:()=>{y(),W()},onFocus:g,onBlur:O}}}function Y0(e){return e&&e.__esModule?e.default:e}var Js={},Qs={};Qs={decrease:e=>`\u062E\u0641\u0636 ${e.fieldLabel}`,increase:e=>`\u0632\u064A\u0627\u062F\u0629 ${e.fieldLabel}`,numberField:"\u062D\u0642\u0644 \u0631\u0642\u0645\u064A"};var el={};el={decrease:e=>`\u041D\u0430\u043C\u0430\u043B\u044F\u0432\u0430\u043D\u0435 ${e.fieldLabel}`,increase:e=>`\u0423\u0441\u0438\u043B\u0432\u0430\u043D\u0435 ${e.fieldLabel}`,numberField:"\u041D\u043E\u043C\u0435\u0440 \u043D\u0430 \u043F\u043E\u043B\u0435\u0442\u043E"};var tl={};tl={decrease:e=>`Sn\xED\u017Eit ${e.fieldLabel}`,increase:e=>`Zv\xFD\u0161it ${e.fieldLabel}`,numberField:"\u010C\xEDseln\xE9 pole"};var nl={};nl={decrease:e=>`Reducer ${e.fieldLabel}`,increase:e=>`\xD8g ${e.fieldLabel}`,numberField:"Talfelt"};var rl={};rl={decrease:e=>`${e.fieldLabel} verringern`,increase:e=>`${e.fieldLabel} erh\xF6hen`,numberField:"Nummernfeld"};var ol={};ol={decrease:e=>`\u039C\u03B5\u03AF\u03C9\u03C3\u03B7 ${e.fieldLabel}`,increase:e=>`\u0391\u03CD\u03BE\u03B7\u03C3\u03B7 ${e.fieldLabel}`,numberField:"\u03A0\u03B5\u03B4\u03AF\u03BF \u03B1\u03C1\u03B9\u03B8\u03BC\u03BF\u03CD"};var al={};al={decrease:e=>`Decrease ${e.fieldLabel}`,increase:e=>`Increase ${e.fieldLabel}`,numberField:"Number field"};var il={};il={decrease:e=>`Reducir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo de n\xFAmero"};var sl={};sl={decrease:e=>`V\xE4henda ${e.fieldLabel}`,increase:e=>`Suurenda ${e.fieldLabel}`,numberField:"Numbri v\xE4li"};var ll={};ll={decrease:e=>`V\xE4henn\xE4 ${e.fieldLabel}`,increase:e=>`Lis\xE4\xE4 ${e.fieldLabel}`,numberField:"Numerokentt\xE4"};var cl={};cl={decrease:e=>`Diminuer ${e.fieldLabel}`,increase:e=>`Augmenter ${e.fieldLabel}`,numberField:"Champ de nombre"};var dl={};dl={decrease:e=>`\u05D4\u05E7\u05D8\u05DF ${e.fieldLabel}`,increase:e=>`\u05D4\u05D2\u05D3\u05DC ${e.fieldLabel}`,numberField:"\u05E9\u05D3\u05D4 \u05DE\u05E1\u05E4\u05E8"};var ul={};ul={decrease:e=>`Smanji ${e.fieldLabel}`,increase:e=>`Pove\u0107aj ${e.fieldLabel}`,numberField:"Polje broja"};var fl={};fl={decrease:e=>`${e.fieldLabel} cs\xF6kkent\xE9se`,increase:e=>`${e.fieldLabel} n\xF6vel\xE9se`,numberField:"Sz\xE1mmez\u0151"};var pl={};pl={decrease:e=>`Riduci ${e.fieldLabel}`,increase:e=>`Aumenta ${e.fieldLabel}`,numberField:"Campo numero"};var bl={};bl={decrease:e=>`${e.fieldLabel}\u3092\u7E2E\u5C0F`,increase:e=>`${e.fieldLabel}\u3092\u62E1\u5927`,numberField:"\u6570\u5024\u30D5\u30A3\u30FC\u30EB\u30C9"};var ml={};ml={decrease:e=>`${e.fieldLabel} \uAC10\uC18C`,increase:e=>`${e.fieldLabel} \uC99D\uAC00`,numberField:"\uBC88\uD638 \uD544\uB4DC"};var gl={};gl={decrease:e=>`Suma\u017Einti ${e.fieldLabel}`,increase:e=>`Padidinti ${e.fieldLabel}`,numberField:"Numerio laukas"};var $l={};$l={decrease:e=>`Samazin\u0101\u0161ana ${e.fieldLabel}`,increase:e=>`Palielin\u0101\u0161ana ${e.fieldLabel}`,numberField:"Skait\u013Cu lauks"};var hl={};hl={decrease:e=>`Reduser ${e.fieldLabel}`,increase:e=>`\xD8k ${e.fieldLabel}`,numberField:"Tallfelt"};var vl={};vl={decrease:e=>`${e.fieldLabel} verlagen`,increase:e=>`${e.fieldLabel} verhogen`,numberField:"Getalveld"};var _l={};_l={decrease:e=>`Zmniejsz ${e.fieldLabel}`,increase:e=>`Zwi\u0119ksz ${e.fieldLabel}`,numberField:"Pole numeru"};var yl={};yl={decrease:e=>`Diminuir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo de n\xFAmero"};var xl={};xl={decrease:e=>`Diminuir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo num\xE9rico"};var wl={};wl={decrease:e=>`Sc\u0103dere ${e.fieldLabel}`,increase:e=>`Cre\u0219tere ${e.fieldLabel}`,numberField:"C\xE2mp numeric"};var El={};El={decrease:e=>`\u0423\u043C\u0435\u043D\u044C\u0448\u0435\u043D\u0438\u0435 ${e.fieldLabel}`,increase:e=>`\u0423\u0432\u0435\u043B\u0438\u0447\u0435\u043D\u0438\u0435 ${e.fieldLabel}`,numberField:"\u0427\u0438\u0441\u043B\u043E\u0432\u043E\u0435 \u043F\u043E\u043B\u0435"};var Pl={};Pl={decrease:e=>`Zn\xED\u017Ei\u0165 ${e.fieldLabel}`,increase:e=>`Zv\xFD\u0161i\u0165 ${e.fieldLabel}`,numberField:"\u010C\xEDseln\xE9 pole"};var Cl={};Cl={decrease:e=>`Upadati ${e.fieldLabel}`,increase:e=>`Pove\u010Dajte ${e.fieldLabel}`,numberField:"\u0160tevil\u010Dno polje"};var Tl={};Tl={decrease:e=>`Decrease ${e.fieldLabel}`,increase:e=>`Increase ${e.fieldLabel}`,numberField:"Number field"};var Sl={};Sl={decrease:e=>`Minska ${e.fieldLabel}`,increase:e=>`\xD6ka ${e.fieldLabel}`,numberField:"Nummerf\xE4lt"};var kl={};kl={decrease:e=>`${e.fieldLabel} azalt`,increase:e=>`${e.fieldLabel} artt\u0131r`,numberField:"Say\u0131 alan\u0131"};var Dl={};Dl={decrease:e=>`\u0417\u043C\u0435\u043D\u0448\u0438\u0442\u0438 ${e.fieldLabel}`,increase:e=>`\u0417\u0431\u0456\u043B\u044C\u0448\u0438\u0442\u0438 ${e.fieldLabel}`,numberField:"\u041F\u043E\u043B\u0435 \u043D\u043E\u043C\u0435\u0440\u0430"};var Ol={};Ol={decrease:e=>`\u964D\u4F4E ${e.fieldLabel}`,increase:e=>`\u63D0\u9AD8 ${e.fieldLabel}`,numberField:"\u6570\u5B57\u5B57\u6BB5"};var Il={};Il={decrease:e=>`\u7E2E\u5C0F ${e.fieldLabel}`,increase:e=>`\u653E\u5927 ${e.fieldLabel}`,numberField:"\u6578\u5B57\u6B04\u4F4D"},Js={"ar-AE":Qs,"bg-BG":el,"cs-CZ":tl,"da-DK":nl,"de-DE":rl,"el-GR":ol,"en-US":al,"es-ES":il,"et-EE":sl,"fi-FI":ll,"fr-FR":cl,"he-IL":dl,"hr-HR":ul,"hu-HU":fl,"it-IT":pl,"ja-JP":bl,"ko-KR":ml,"lt-LT":gl,"lv-LV":$l,"nb-NO":hl,"nl-NL":vl,"pl-PL":_l,"pt-BR":yl,"pt-PT":xl,"ro-RO":wl,"ru-RU":El,"sk-SK":Pl,"sl-SI":Cl,"sr-SP":Tl,"sv-SE":Sl,"tr-TR":kl,"uk-UA":Dl,"zh-CN":Ol,"zh-TW":Il};function q0(e,t,n){let{id:r,decrementAriaLabel:o,incrementAriaLabel:i,isDisabled:s,isReadOnly:l,isRequired:d,minValue:f,maxValue:u,autoFocus:p,validationState:$,label:b,formatOptions:h,onBlur:m=()=>{},onFocus:v,onFocusChange:y,onKeyDown:_,onKeyUp:w,description:g,errorMessage:O,...L}=e,{increment:C,incrementToMax:A,decrement:F,decrementToMin:W,numberValue:P,commit:V}=t;const S=kr(Y0(Js));let E=rt(r),{focusProps:U}=$r({onBlur:()=>{V()}}),{spinButtonProps:Y,incrementButtonProps:ae,decrementButtonProps:ie}=G0({isDisabled:s,isReadOnly:l,isRequired:d,maxValue:u,minValue:f,onIncrement:C,onIncrementToMax:A,onDecrement:F,onDecrementToMin:W,value:P,textValue:t.inputValue}),[H,z]=a.useState(!1),{focusWithinProps:K}=Ea({isDisabled:s,onFocusWithinChange:z}),Q=a.useCallback(he=>{Math.abs(he.deltaY)<=Math.abs(he.deltaX)||(he.deltaY>0?C():he.deltaY<0&&F())},[F,C]);zf({onScroll:Q,isDisabled:s||l||!H},n);let Z=sp(h),se=a.useMemo(()=>Z.resolvedOptions(),[Z]).maximumFractionDigits>0,ue=isNaN(t.minValue)||t.minValue<0,fe="numeric";pa()?ue?fe="text":se&&(fe="decimal"):ba()&&(ue?fe="numeric":se&&(fe="decimal"));let Ve=he=>{t.setInputValue(he)},Ye=Dt(e),{labelProps:qe,inputProps:Xe,descriptionProps:st,errorMessageProps:ke}=i0({...L,...Ye,label:b,autoFocus:p,isDisabled:s,isReadOnly:l,isRequired:d,validationState:$,value:t.inputValue,defaultValue:void 0,autoComplete:"off","aria-label":e["aria-label"]||null,"aria-labelledby":e["aria-labelledby"]||null,id:E,type:"text",inputMode:fe,onChange:Ve,onBlur:m,onFocus:v,onFocusChange:y,onKeyDown:_,onKeyUp:w,description:g,errorMessage:O},t,n),_e=be(Y,U,Xe,{role:null,"aria-roledescription":cr()?null:S.format("numberField"),"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null,autoCorrect:"off",spellCheck:"false"}),De=he=>{document.activeElement!==n.current&&(he.pointerType==="mouse"?n.current.focus():he.target.focus())},le=e["aria-label"]||(typeof e.label=="string"?e.label:""),ce;le||(ce=e.label!=null?qe.id:e["aria-labelledby"]);let we=rt(),Ee=rt(),Ze=be(ae,{"aria-label":i||S.format("increase",{fieldLabel:le}).trim(),id:ce&&!i?we:null,"aria-labelledby":ce&&!i?`${we} ${ce}`:null,"aria-controls":E,excludeFromTabOrder:!0,preventFocusOnPress:!0,allowFocusWhenDisabled:!0,isDisabled:!t.canIncrement,onPressStart:De}),Ct=be(ie,{"aria-label":o||S.format("decrease",{fieldLabel:le}).trim(),id:ce&&!o?Ee:null,"aria-labelledby":ce&&!o?`${Ee} ${ce}`:null,"aria-controls":E,excludeFromTabOrder:!0,preventFocusOnPress:!0,allowFocusWhenDisabled:!0,isDisabled:!t.canDecrement,onPressStart:De});return{groupProps:{role:"group","aria-disabled":s,"aria-invalid":$==="invalid"?"true":void 0,...K},labelProps:qe,inputProps:_e,incrementButtonProps:Ze,decrementButtonProps:Ct,errorMessageProps:ke,descriptionProps:st}}function X0(e){let{minValue:t,maxValue:n,step:r,formatOptions:o,value:i,defaultValue:s,onChange:l,locale:d,isDisabled:f,isReadOnly:u}=e,[p,$]=nf(i,isNaN(s)?NaN:s,l),[b,h]=a.useState(()=>isNaN(p)?"":new Cr(d,o).format(p)),m=a.useMemo(()=>new Jf(d,o),[d,o]),v=a.useMemo(()=>m.getNumberingSystem(b),[m,b]),y=a.useMemo(()=>new Cr(d,{...o,numberingSystem:v}),[d,o,v]),_=a.useMemo(()=>y.resolvedOptions(),[y]),w=a.useCallback(H=>isNaN(H)||H===null?"":y.format(H),[y]),g=isNaN(r)?1:r;_.style==="percent"&&isNaN(r)&&(g=.01);let O=a.useRef(p),L=a.useRef(d),C=a.useRef(o);(!Object.is(p,O.current)||d!==L.current||o!==C.current)&&(h(w(p)),O.current=p,L.current=d,C.current=o);let A=a.useMemo(()=>m.parse(b),[m,b]),F=a.useRef(0);F.current=A;let W=()=>{if(!b.length){$(NaN),h(i===void 0?"":w(p));return}if(isNaN(F.current)){h(w(p));return}let H;isNaN(r)?H=rf(F.current,t,n):H=nt(F.current,t,n,r),H=m.parse(w(H)),$(H),h(w(i===void 0?H:p))},P=(H,z)=>{let K=F.current;if(isNaN(K)){let Q=isNaN(z)?0:z;return nt(Q,t,n,g)}else{let Q=nt(K,t,n,g);return H==="+"&&Q>K||H==="-"&&Q<K?Q:nt(Yr(H,K,g),t,n,g)}},V=()=>{let H=P("+",t);H===p&&h(w(H)),$(H)},S=()=>{let H=P("-",n);H===p&&h(w(H)),$(H)},E=()=>{n!=null&&$(nt(n,t,n,g))},U=()=>{t!=null&&$(t)},Y=a.useMemo(()=>!f&&!u&&(isNaN(A)||isNaN(n)||nt(A,t,n,g)>A||Yr("+",A,g)<=n),[f,u,t,n,g,A]),ae=a.useMemo(()=>!f&&!u&&(isNaN(A)||isNaN(t)||nt(A,t,n,g)<A||Yr("-",A,g)>=t),[f,u,t,n,g,A]);return{validate:H=>m.isValidPartialNumber(H,t,n),increment:V,incrementToMax:E,decrement:S,decrementToMin:U,canIncrement:Y,canDecrement:ae,minValue:t,maxValue:n,numberValue:A,setInputValue:h,inputValue:b,commit:W}}function Yr(e,t,n){let r=e==="+"?t+n:t-n;if(t%1!==0||n%1!==0){const o=t.toString().split("."),i=n.toString().split("."),s=o[1]&&o[1].length||0,l=i[1]&&i[1].length||0,d=Math.pow(10,Math.max(s,l));t=Math.round(t*d),n=Math.round(n*d),r=e==="+"?t+n:t-n,r/=d}return r}function Z0(e){const t=a.useRef(null),{buttonProps:n,isPressed:r}=Br(e,t),{children:o,className:i}=e;return T("button",{"data-state":r?"pressed":void 0,ref:t,...n,className:i,children:o})}const J0=k.default.div`
745
- --border-color: ${c.color_outline_secondary_enabled};
740
+ `;function nn({children:e,icon:t=T(xe.Help,{}),label:r="More info"}){return T(ac,{children:ce(sc,{children:[T(Mg,{children:T(qt,{label:r,children:t})}),T(lc,{sideOffset:5,children:e})]})})}const cc=7e3;let Mo=null;function Lg(e,t="assertive",r=cc){Mo||(Mo=new Fg),Mo.announce(e,t,r)}class Fg{createLog(t){let r=document.createElement("div");return r.setAttribute("role","log"),r.setAttribute("aria-live",t),r.setAttribute("aria-relevant","additions"),r}destroy(){!this.node||(document.body.removeChild(this.node),this.node=null)}announce(t,r="assertive",n=cc){if(!this.node)return;let o=document.createElement("div");o.textContent=t,r==="assertive"?this.assertiveLog.appendChild(o):this.politeLog.appendChild(o),t!==""&&setTimeout(()=>{o.remove()},n)}clear(t){!this.node||((!t||t==="assertive")&&(this.assertiveLog.innerHTML=""),(!t||t==="polite")&&(this.politeLog.innerHTML=""))}constructor(){this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:1,margin:"0 -1px -1px 0",overflow:"hidden",padding:0,position:"absolute",width:1,whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node)}}function Rg(e){return e&&e.__esModule?e.default:e}var uc={},dc={};dc={Empty:"\u0641\u0627\u0631\u063A"};var fc={};fc={Empty:"\u0418\u0437\u043F\u0440\u0430\u0437\u043D\u0438"};var pc={};pc={Empty:"Pr\xE1zdn\xE9"};var hc={};hc={Empty:"Tom"};var bc={};bc={Empty:"Leer"};var mc={};mc={Empty:"\u0386\u03B4\u03B5\u03B9\u03BF"};var vc={};vc={Empty:"Empty"};var gc={};gc={Empty:"Vac\xEDo"};var yc={};yc={Empty:"T\xFChjenda"};var _c={};_c={Empty:"Tyhj\xE4"};var $c={};$c={Empty:"Vide"};var xc={};xc={Empty:"\u05E8\u05D9\u05E7"};var wc={};wc={Empty:"Prazno"};var Ec={};Ec={Empty:"\xDCres"};var Pc={};Pc={Empty:"Vuoto"};var Sc={};Sc={Empty:"\u7A7A"};var Cc={};Cc={Empty:"\uBE44\uC5B4 \uC788\uC74C"};var Tc={};Tc={Empty:"Tu\u0161\u010Dias"};var Oc={};Oc={Empty:"Tuk\u0161s"};var kc={};kc={Empty:"Tom"};var Dc={};Dc={Empty:"Leeg"};var Ic={};Ic={Empty:"Pusty"};var Ac={};Ac={Empty:"Vazio"};var Nc={};Nc={Empty:"Vazio"};var Mc={};Mc={Empty:"Gol"};var Lc={};Lc={Empty:"\u041D\u0435 \u0437\u0430\u043F\u043E\u043B\u043D\u0435\u043D\u043E"};var Fc={};Fc={Empty:"Pr\xE1zdne"};var Rc={};Rc={Empty:"Prazen"};var zc={};zc={Empty:"Prazno"};var Vc={};Vc={Empty:"Tomt"};var jc={};jc={Empty:"Bo\u015F"};var Bc={};Bc={Empty:"\u041F\u0443\u0441\u0442\u043E"};var Wc={};Wc={Empty:"\u7A7A"};var Uc={};Uc={Empty:"\u7A7A\u767D"},uc={"ar-AE":dc,"bg-BG":fc,"cs-CZ":pc,"da-DK":hc,"de-DE":bc,"el-GR":mc,"en-US":vc,"es-ES":gc,"et-EE":yc,"fi-FI":_c,"fr-FR":$c,"he-IL":xc,"hr-HR":wc,"hu-HU":Ec,"it-IT":Pc,"ja-JP":Sc,"ko-KR":Cc,"lt-LT":Tc,"lv-LV":Oc,"nb-NO":kc,"nl-NL":Dc,"pl-PL":Ic,"pt-BR":Ac,"pt-PT":Nc,"ro-RO":Mc,"ru-RU":Lc,"sk-SK":Fc,"sl-SI":Rc,"sr-SP":zc,"sv-SE":Vc,"tr-TR":jc,"uk-UA":Bc,"zh-CN":Wc,"zh-TW":Uc};function zg(e){const t=l.useRef();let{value:r,textValue:n,minValue:o,maxValue:i,isDisabled:a,isReadOnly:s,isRequired:c,onIncrement:u,onIncrementPage:d,onDecrement:p,onDecrementPage:b,onDecrementToMin:h,onIncrementToMax:v}=e;const m=Fr(Rg(uc)),y=l.useRef(e);y.current=e;const $=()=>clearTimeout(t.current);l.useEffect(()=>()=>$(),[]);let _=S=>{if(!(S.ctrlKey||S.metaKey||S.shiftKey||S.altKey||s))switch(S.key){case"PageUp":if(d){S.preventDefault(),d();break}case"ArrowUp":case"Up":u&&(S.preventDefault(),u());break;case"PageDown":if(b){S.preventDefault(),b();break}case"ArrowDown":case"Down":p&&(S.preventDefault(),p());break;case"Home":h&&(S.preventDefault(),h());break;case"End":v&&(S.preventDefault(),v());break}},w=l.useRef(!1),g=()=>{w.current=!0},D=()=>{w.current=!1};n=n===""?m.format("Empty"):(n||`${r}`).replace("-","\u2212"),l.useEffect(()=>{w.current&&Lg(n,"assertive")},[n]);const M=l.useCallback(S=>{$(),y.current.onIncrement(),t.current=window.setTimeout(()=>{(isNaN(i)||isNaN(r)||r<i)&&M(60)},S)},[u,i,r]),O=l.useCallback(S=>{$(),y.current.onDecrement(),t.current=window.setTimeout(()=>{(isNaN(o)||isNaN(r)||r>o)&&O(60)},S)},[p,o,r]);let N=S=>{S.preventDefault()},{addGlobalListener:F,removeAllGlobalListeners:G}=os();return{spinButtonProps:{role:"spinbutton","aria-valuenow":isNaN(r)?null:r,"aria-valuetext":n,"aria-valuemin":o,"aria-valuemax":i,"aria-disabled":a||null,"aria-readonly":s||null,"aria-required":c||null,onKeyDown:_,onFocus:g,onBlur:D},incrementButtonProps:{onPressStart:()=>{M(400),F(window,"contextmenu",N)},onPressEnd:()=>{$(),G()},onFocus:g,onBlur:D},decrementButtonProps:{onPressStart:()=>{O(400),F(window,"contextmenu",N)},onPressEnd:()=>{$(),G()},onFocus:g,onBlur:D}}}function Vg(e){return e&&e.__esModule?e.default:e}var Kc={},Hc={};Hc={decrease:e=>`\u062E\u0641\u0636 ${e.fieldLabel}`,increase:e=>`\u0632\u064A\u0627\u062F\u0629 ${e.fieldLabel}`,numberField:"\u062D\u0642\u0644 \u0631\u0642\u0645\u064A"};var Gc={};Gc={decrease:e=>`\u041D\u0430\u043C\u0430\u043B\u044F\u0432\u0430\u043D\u0435 ${e.fieldLabel}`,increase:e=>`\u0423\u0441\u0438\u043B\u0432\u0430\u043D\u0435 ${e.fieldLabel}`,numberField:"\u041D\u043E\u043C\u0435\u0440 \u043D\u0430 \u043F\u043E\u043B\u0435\u0442\u043E"};var qc={};qc={decrease:e=>`Sn\xED\u017Eit ${e.fieldLabel}`,increase:e=>`Zv\xFD\u0161it ${e.fieldLabel}`,numberField:"\u010C\xEDseln\xE9 pole"};var Yc={};Yc={decrease:e=>`Reducer ${e.fieldLabel}`,increase:e=>`\xD8g ${e.fieldLabel}`,numberField:"Talfelt"};var Xc={};Xc={decrease:e=>`${e.fieldLabel} verringern`,increase:e=>`${e.fieldLabel} erh\xF6hen`,numberField:"Nummernfeld"};var Jc={};Jc={decrease:e=>`\u039C\u03B5\u03AF\u03C9\u03C3\u03B7 ${e.fieldLabel}`,increase:e=>`\u0391\u03CD\u03BE\u03B7\u03C3\u03B7 ${e.fieldLabel}`,numberField:"\u03A0\u03B5\u03B4\u03AF\u03BF \u03B1\u03C1\u03B9\u03B8\u03BC\u03BF\u03CD"};var Zc={};Zc={decrease:e=>`Decrease ${e.fieldLabel}`,increase:e=>`Increase ${e.fieldLabel}`,numberField:"Number field"};var Qc={};Qc={decrease:e=>`Reducir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo de n\xFAmero"};var eu={};eu={decrease:e=>`V\xE4henda ${e.fieldLabel}`,increase:e=>`Suurenda ${e.fieldLabel}`,numberField:"Numbri v\xE4li"};var tu={};tu={decrease:e=>`V\xE4henn\xE4 ${e.fieldLabel}`,increase:e=>`Lis\xE4\xE4 ${e.fieldLabel}`,numberField:"Numerokentt\xE4"};var ru={};ru={decrease:e=>`Diminuer ${e.fieldLabel}`,increase:e=>`Augmenter ${e.fieldLabel}`,numberField:"Champ de nombre"};var nu={};nu={decrease:e=>`\u05D4\u05E7\u05D8\u05DF ${e.fieldLabel}`,increase:e=>`\u05D4\u05D2\u05D3\u05DC ${e.fieldLabel}`,numberField:"\u05E9\u05D3\u05D4 \u05DE\u05E1\u05E4\u05E8"};var ou={};ou={decrease:e=>`Smanji ${e.fieldLabel}`,increase:e=>`Pove\u0107aj ${e.fieldLabel}`,numberField:"Polje broja"};var iu={};iu={decrease:e=>`${e.fieldLabel} cs\xF6kkent\xE9se`,increase:e=>`${e.fieldLabel} n\xF6vel\xE9se`,numberField:"Sz\xE1mmez\u0151"};var au={};au={decrease:e=>`Riduci ${e.fieldLabel}`,increase:e=>`Aumenta ${e.fieldLabel}`,numberField:"Campo numero"};var su={};su={decrease:e=>`${e.fieldLabel}\u3092\u7E2E\u5C0F`,increase:e=>`${e.fieldLabel}\u3092\u62E1\u5927`,numberField:"\u6570\u5024\u30D5\u30A3\u30FC\u30EB\u30C9"};var lu={};lu={decrease:e=>`${e.fieldLabel} \uAC10\uC18C`,increase:e=>`${e.fieldLabel} \uC99D\uAC00`,numberField:"\uBC88\uD638 \uD544\uB4DC"};var cu={};cu={decrease:e=>`Suma\u017Einti ${e.fieldLabel}`,increase:e=>`Padidinti ${e.fieldLabel}`,numberField:"Numerio laukas"};var uu={};uu={decrease:e=>`Samazin\u0101\u0161ana ${e.fieldLabel}`,increase:e=>`Palielin\u0101\u0161ana ${e.fieldLabel}`,numberField:"Skait\u013Cu lauks"};var du={};du={decrease:e=>`Reduser ${e.fieldLabel}`,increase:e=>`\xD8k ${e.fieldLabel}`,numberField:"Tallfelt"};var fu={};fu={decrease:e=>`${e.fieldLabel} verlagen`,increase:e=>`${e.fieldLabel} verhogen`,numberField:"Getalveld"};var pu={};pu={decrease:e=>`Zmniejsz ${e.fieldLabel}`,increase:e=>`Zwi\u0119ksz ${e.fieldLabel}`,numberField:"Pole numeru"};var hu={};hu={decrease:e=>`Diminuir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo de n\xFAmero"};var bu={};bu={decrease:e=>`Diminuir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo num\xE9rico"};var mu={};mu={decrease:e=>`Sc\u0103dere ${e.fieldLabel}`,increase:e=>`Cre\u0219tere ${e.fieldLabel}`,numberField:"C\xE2mp numeric"};var vu={};vu={decrease:e=>`\u0423\u043C\u0435\u043D\u044C\u0448\u0435\u043D\u0438\u0435 ${e.fieldLabel}`,increase:e=>`\u0423\u0432\u0435\u043B\u0438\u0447\u0435\u043D\u0438\u0435 ${e.fieldLabel}`,numberField:"\u0427\u0438\u0441\u043B\u043E\u0432\u043E\u0435 \u043F\u043E\u043B\u0435"};var gu={};gu={decrease:e=>`Zn\xED\u017Ei\u0165 ${e.fieldLabel}`,increase:e=>`Zv\xFD\u0161i\u0165 ${e.fieldLabel}`,numberField:"\u010C\xEDseln\xE9 pole"};var yu={};yu={decrease:e=>`Upadati ${e.fieldLabel}`,increase:e=>`Pove\u010Dajte ${e.fieldLabel}`,numberField:"\u0160tevil\u010Dno polje"};var _u={};_u={decrease:e=>`Decrease ${e.fieldLabel}`,increase:e=>`Increase ${e.fieldLabel}`,numberField:"Number field"};var $u={};$u={decrease:e=>`Minska ${e.fieldLabel}`,increase:e=>`\xD6ka ${e.fieldLabel}`,numberField:"Nummerf\xE4lt"};var xu={};xu={decrease:e=>`${e.fieldLabel} azalt`,increase:e=>`${e.fieldLabel} artt\u0131r`,numberField:"Say\u0131 alan\u0131"};var wu={};wu={decrease:e=>`\u0417\u043C\u0435\u043D\u0448\u0438\u0442\u0438 ${e.fieldLabel}`,increase:e=>`\u0417\u0431\u0456\u043B\u044C\u0448\u0438\u0442\u0438 ${e.fieldLabel}`,numberField:"\u041F\u043E\u043B\u0435 \u043D\u043E\u043C\u0435\u0440\u0430"};var Eu={};Eu={decrease:e=>`\u964D\u4F4E ${e.fieldLabel}`,increase:e=>`\u63D0\u9AD8 ${e.fieldLabel}`,numberField:"\u6570\u5B57\u5B57\u6BB5"};var Pu={};Pu={decrease:e=>`\u7E2E\u5C0F ${e.fieldLabel}`,increase:e=>`\u653E\u5927 ${e.fieldLabel}`,numberField:"\u6578\u5B57\u6B04\u4F4D"},Kc={"ar-AE":Hc,"bg-BG":Gc,"cs-CZ":qc,"da-DK":Yc,"de-DE":Xc,"el-GR":Jc,"en-US":Zc,"es-ES":Qc,"et-EE":eu,"fi-FI":tu,"fr-FR":ru,"he-IL":nu,"hr-HR":ou,"hu-HU":iu,"it-IT":au,"ja-JP":su,"ko-KR":lu,"lt-LT":cu,"lv-LV":uu,"nb-NO":du,"nl-NL":fu,"pl-PL":pu,"pt-BR":hu,"pt-PT":bu,"ro-RO":mu,"ru-RU":vu,"sk-SK":gu,"sl-SI":yu,"sr-SP":_u,"sv-SE":$u,"tr-TR":xu,"uk-UA":wu,"zh-CN":Eu,"zh-TW":Pu};function jg(e,t,r){let{id:n,decrementAriaLabel:o,incrementAriaLabel:i,isDisabled:a,isReadOnly:s,isRequired:c,minValue:u,maxValue:d,autoFocus:p,validationState:b,label:h,formatOptions:v,onBlur:m=()=>{},onFocus:y,onFocusChange:$,onKeyDown:_,onKeyUp:w,description:g,errorMessage:D,...M}=e,{increment:O,incrementToMax:N,decrement:F,decrementToMin:G,numberValue:S,commit:Y}=t;const I=Fr(Vg(Kc));let P=ht(n),{focusProps:re}=io({onBlur:()=>{Y()}}),{spinButtonProps:Z,incrementButtonProps:fe,decrementButtonProps:ve}=zg({isDisabled:a,isReadOnly:s,isRequired:c,maxValue:d,minValue:u,onIncrement:O,onIncrementToMax:N,onDecrement:F,onDecrementToMin:G,value:S,textValue:t.inputValue}),[ee,E]=l.useState(!1),{focusWithinProps:L}=gs({isDisabled:a,onFocusWithinChange:E}),B=l.useCallback(Te=>{Math.abs(Te.deltaY)<=Math.abs(Te.deltaX)||(Te.deltaY>0?O():Te.deltaY<0&&F())},[F,O]);kb({onScroll:B,isDisabled:a||s||!ee},r);let V=Qb(v),q=l.useMemo(()=>V.resolvedOptions(),[V]).maximumFractionDigits>0,X=isNaN(t.minValue)||t.minValue<0,J="numeric";ss()?X?J="text":q&&(J="decimal"):ls()&&(X?J="numeric":q&&(J="decimal"));let oe=Te=>{t.setInputValue(Te)},ne=Yt(e),{labelProps:ge,inputProps:me,descriptionProps:Ee,errorMessageProps:Ve}=Zv({...M,...ne,label:h,autoFocus:p,isDisabled:a,isReadOnly:s,isRequired:c,validationState:b,value:t.inputValue,defaultValue:void 0,autoComplete:"off","aria-label":e["aria-label"]||null,"aria-labelledby":e["aria-labelledby"]||null,id:P,type:"text",inputMode:J,onChange:oe,onBlur:m,onFocus:y,onFocusChange:$,onKeyDown:_,onKeyUp:w,description:g,errorMessage:D},t,r),ke=we(Z,re,me,{role:null,"aria-roledescription":Jn()?null:I.format("numberField"),"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null,autoCorrect:"off",spellCheck:"false"}),je=Te=>{document.activeElement!==r.current&&(Te.pointerType==="mouse"?r.current.focus():Te.target.focus())},ye=e["aria-label"]||(typeof e.label=="string"?e.label:""),_e;ye||(_e=e.label!=null?ge.id:e["aria-labelledby"]);let Ae=ht(),Ne=ht(),lt=we(fe,{"aria-label":i||I.format("increase",{fieldLabel:ye}).trim(),id:_e&&!i?Ae:null,"aria-labelledby":_e&&!i?`${Ae} ${_e}`:null,"aria-controls":P,excludeFromTabOrder:!0,preventFocusOnPress:!0,allowFocusWhenDisabled:!0,isDisabled:!t.canIncrement,onPressStart:je}),Ut=we(ve,{"aria-label":o||I.format("decrease",{fieldLabel:ye}).trim(),id:_e&&!o?Ne:null,"aria-labelledby":_e&&!o?`${Ne} ${_e}`:null,"aria-controls":P,excludeFromTabOrder:!0,preventFocusOnPress:!0,allowFocusWhenDisabled:!0,isDisabled:!t.canDecrement,onPressStart:je});return{groupProps:{role:"group","aria-disabled":a,"aria-invalid":b==="invalid"?"true":void 0,...L},labelProps:ge,inputProps:ke,incrementButtonProps:lt,decrementButtonProps:Ut,errorMessageProps:Ve,descriptionProps:Ee}}function Bg(e){let{minValue:t,maxValue:r,step:n,formatOptions:o,value:i,defaultValue:a,onChange:s,locale:c,isDisabled:u,isReadOnly:d}=e,[p,b]=Xa(i,isNaN(a)?NaN:a,s),[h,v]=l.useState(()=>isNaN(p)?"":new bo(c,o).format(p)),m=l.useMemo(()=>new Ub(c,o),[c,o]),y=l.useMemo(()=>m.getNumberingSystem(h),[m,h]),$=l.useMemo(()=>new bo(c,{...o,numberingSystem:y}),[c,o,y]),_=l.useMemo(()=>$.resolvedOptions(),[$]),w=l.useCallback(ee=>isNaN(ee)||ee===null?"":$.format(ee),[$]),g=isNaN(n)?1:n;_.style==="percent"&&isNaN(n)&&(g=.01);let D=l.useRef(p),M=l.useRef(c),O=l.useRef(o);(!Object.is(p,D.current)||c!==M.current||o!==O.current)&&(v(w(p)),D.current=p,M.current=c,O.current=o);let N=l.useMemo(()=>m.parse(h),[m,h]),F=l.useRef(0);F.current=N;let G=()=>{if(!h.length){b(NaN),v(i===void 0?"":w(p));return}if(isNaN(F.current)){v(w(p));return}let ee;isNaN(n)?ee=Z0(F.current,t,r):ee=pt(F.current,t,r,n),ee=m.parse(w(ee)),b(ee),v(w(i===void 0?ee:p))},S=(ee,E)=>{let L=F.current;if(isNaN(L)){let B=isNaN(E)?0:E;return pt(B,t,r,g)}else{let B=pt(L,t,r,g);return ee==="+"&&B>L||ee==="-"&&B<L?B:pt(Lo(ee,L,g),t,r,g)}},Y=()=>{let ee=S("+",t);ee===p&&v(w(ee)),b(ee)},I=()=>{let ee=S("-",r);ee===p&&v(w(ee)),b(ee)},P=()=>{r!=null&&b(pt(r,t,r,g))},re=()=>{t!=null&&b(t)},Z=l.useMemo(()=>!u&&!d&&(isNaN(N)||isNaN(r)||pt(N,t,r,g)>N||Lo("+",N,g)<=r),[u,d,t,r,g,N]),fe=l.useMemo(()=>!u&&!d&&(isNaN(N)||isNaN(t)||pt(N,t,r,g)<N||Lo("-",N,g)>=t),[u,d,t,r,g,N]);return{validate:ee=>m.isValidPartialNumber(ee,t,r),increment:Y,incrementToMax:P,decrement:I,decrementToMin:re,canIncrement:Z,canDecrement:fe,minValue:t,maxValue:r,numberValue:N,setInputValue:v,inputValue:h,commit:G}}function Lo(e,t,r){let n=e==="+"?t+r:t-r;if(t%1!==0||r%1!==0){const o=t.toString().split("."),i=r.toString().split("."),a=o[1]&&o[1].length||0,s=i[1]&&i[1].length||0,c=Math.pow(10,Math.max(a,s));t=Math.round(t*c),r=Math.round(r*c),n=e==="+"?t+r:t-r,n/=c}return n}function Su(e){const t=l.useRef(null),{buttonProps:r,isPressed:n}=Co(e,t),{children:o,className:i}=e;return T("button",{"data-state":n?"pressed":void 0,ref:t,...r,className:i,children:o})}const Wg=A.default.div`
741
+ --border-color: ${f.color_outline_secondary_enabled};
746
742
  display: inline-grid;
747
743
  grid-template:
748
744
  'field increment'
749
745
  'field decrement'/1fr auto;
750
- border-radius: ${c.border_radius_400};
746
+ border-radius: ${f.border_radius_400};
751
747
 
752
748
  &:hover {
753
- --border-color: ${c.color_outline_secondary_hover};
754
- background-color: ${c.color_overlay_secondary_hover};
749
+ --border-color: ${f.color_outline_secondary_hover};
750
+ background-color: ${f.color_overlay_secondary_hover};
755
751
  }
756
752
 
757
753
  &:focus-within {
758
- background-color: ${c.color_overlay_secondary_enabled};
754
+ background-color: ${f.color_overlay_secondary_enabled};
759
755
  outline: 1px solid black;
760
- --border-color: ${c.color_black};
756
+ --border-color: ${f.color_black};
761
757
  }
762
- `,Q0=k.default(_n)`
758
+ `,Ug=A.default(er)`
763
759
  border-top-right-radius: 0;
764
760
  border-color: var(--border-color);
765
761
  border-bottom-right-radius: 0;
@@ -768,10 +764,10 @@ Check the top-level render call using <`+N+">.")}return M}}function Ct(x,M){{if(
768
764
  grid-area: field;
769
765
  margin: 0;
770
766
  margin-right: -1px; // to make the borders overlap
771
- `,Al=k.default(Z0)`
767
+ `,Cu=A.default(Su)`
772
768
  display: grid;
773
769
  place-items: center;
774
- color: ${c.color_text_weak};
770
+ color: ${f.color_text_weak};
775
771
  margin: 0;
776
772
  padding: 0;
777
773
  width: 20px;
@@ -785,26 +781,24 @@ Check the top-level render call using <`+N+">.")}return M}}function Ct(x,M){{if(
785
781
 
786
782
  background-color: white;
787
783
 
788
- transition-property: ${c.transition_property_color};
789
- transition-timing-function: linear;
790
- transition-duration: ${c.transition_duration_150};
791
- outline-width: 0;
784
+ transition-property: ${f.transition_property_color};
785
+ transition-duration: ${f.transition_duration_150};
786
+ outline-width: 0; // hmmm
792
787
 
793
788
  &:hover {
794
- background-color: ${c.color_overlay_secondary_hover};
795
- color: ${c.color_fill_primary_hover};
796
- /* border-color: hotpink; */
789
+ background-color: ${f.color_overlay_secondary_hover};
790
+ color: ${f.color_fill_primary_hover};
797
791
  }
798
792
 
799
793
  &[data-state='pressed'] {
800
- background: ${c.color_fill_secondary_pressed};
801
- color: ${c.color_fill_primary_enabled};
794
+ background: ${f.color_fill_secondary_pressed};
795
+ color: ${f.color_fill_primary_enabled};
802
796
  border-color: transparent;
803
797
  outline: none;
804
798
  }
805
799
 
806
800
  &:disabled {
807
- background-color: ${c.color_fill_secondary_disabled};
801
+ background-color: ${f.color_fill_secondary_disabled};
808
802
  cursor: not-allowed;
809
803
  color: revert;
810
804
  border-color: none;
@@ -814,27 +808,27 @@ Check the top-level render call using <`+N+">.")}return M}}function Ct(x,M){{if(
814
808
  line-height: 0;
815
809
  font-size: 1rem;
816
810
  }
817
- `,em=k.default(Al)`
811
+ `,Kg=A.default(Cu)`
818
812
  border-radius: unset;
819
813
  border-top: 1px solid var(--border-color);
820
- border-top-right-radius: ${c.border_radius_400};
814
+ border-top-right-radius: ${f.border_radius_400};
821
815
  border-bottom-width: 0.5px;
822
816
  grid-area: increment;
823
817
  margin-bottom: -0.5px;
824
- `,tm=k.default(Al)`
818
+ `,Hg=A.default(Cu)`
825
819
  border-radius: unset;
826
820
  border-bottom: 1px solid var(--border-color);
827
- border-bottom-right-radius: ${c.border_radius_400};
821
+ border-bottom-right-radius: ${f.border_radius_400};
828
822
  border-top-color: transparent;
829
823
  border-top-width: 0.5px;
830
824
  margin-top: -0.5px;
831
825
  grid-area: decrement;
832
- `,qr=a.forwardRef((e,t)=>{const{description:n,disabled:r,readOnly:o,required:i,paddingSize:s="small",label:l,errorMessage:d,validationState:f,placeholder:u="Enter number...",showStepper:p=!0,min:$,max:b,...h}=e,m=Ue(),v=r||m,y=$t(t),_=X0({...h,isDisabled:v,isReadOnly:o,isRequired:i,minValue:$,maxValue:b,placeholder:u,locale:"en-US"}),{labelProps:w,groupProps:g,inputProps:O,incrementButtonProps:L,decrementButtonProps:C,descriptionProps:A,errorMessageProps:F}=q0({...h,isDisabled:v,isReadOnly:o,isRequired:i,minValue:$,maxValue:b,placeholder:u,label:l},_,y);let W=null;return typeof l=="string"?W=T(je,{...w,children:l}):a.isValidElement(l)&&(W=a.cloneElement(l,{...w})),ee(yn,{children:[W,p?ee(J0,{...g,children:[T(Q0,{...O,paddingSize:s,ref:y}),p?ee(Gn,{children:[T(em,{...L,children:T(ve.KeyboardArrowUp,{})}),T(tm,{...C,children:T(ve.KeyboardArrowDown,{})})]}):null]}):T(_n,{ref:y,...O,paddingSize:s}),d&&ee(xn,{...F,children:[T(ve.Error,{}),d]}),n&&T(wn,{...A,children:n})]})});qr.displayName="NumberInput";const Ll=a.forwardRef((e,t)=>{const{errorMessage:n,description:r,disabled:o,readOnly:i,required:s,paddingSize:l="large",label:d,validationState:f,placeholder:u="Enter text...",...p}=e,$=$t(t),b=Ue(),h=o||b,{labelProps:m,descriptionProps:v,inputProps:y,errorMessageProps:_}=Rr({...p,isDisabled:h,isReadOnly:i,isRequired:s,placeholder:u,label:d,inputElementType:"textarea"},$);let w=null;return typeof d=="string"?w=T(je,{...m,children:d}):a.isValidElement(d)&&(w=a.cloneElement(d,{...m})),ee(yn,{children:[w,T(_n,{as:"textarea","data-state":f,paddingSize:l,ref:$,placeholder:"Enter...",...y}),n&&ee(xn,{..._,children:[T(ve.Error,{}),n]}),r&&T(wn,{...v,children:r})]})});Ll.displayName="TextAreaInput";const Xr=a.createContext({});Xr.displayName="FormControlContext";function Tn(){return a.useContext(Xr)}function nm({children:e,label:t,errorMessage:n,description:r,tooltipContent:o,tooltipIcon:i,validationState:s,id:l,...d}){const{descriptionProps:f,errorMessageProps:u,fieldProps:p,labelProps:$}=ss({errorMessage:n,label:t,description:r,validationState:s,id:l,...d});return T(Xr.Provider,{value:p,children:ee(yn,{children:[ee(je,{...$,display:"flex",children:[t,o?T(Cn,{icon:i,children:o}):null]}),e,r&&T(wn,{...f,children:r}),n&&ee(xn,{...u,children:[T(ve.Error,{}),n]})]})})}const Ml=a.forwardRef((e,t)=>{const{label:n,tooltipContent:r,tooltipIcon:o,value:i,...s}=e;return T(Hr,{ref:t,label:ee(je,{children:[n,r?T(Cn,{icon:o,children:r}):null]}),...s})});Ml.displayName="TextFormControl";const Fl=a.forwardRef((e,t)=>{const{label:n,tooltipContent:r,tooltipIcon:o,...i}=e;return T(Ll,{ref:t,label:ee(je,{children:[n,r?T(Cn,{icon:o,children:r}):null]}),...i})});Fl.displayName="TextAreaFormControl";const Nl=a.forwardRef((e,t)=>{const{label:n,tooltipContent:r,tooltipIcon:o,...i}=e;return T(qr,{ref:t,label:ee(je,{children:[n,r?T(Cn,{icon:o,children:r}):null]}),...i})});Nl.displayName="NumberFormControl";function zl(e){const t=Ue(),n=e||t;return{...Tn(),disabled:n}}const rm=()=>T("svg",{viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:T("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M 11.9577 4.4057 L 5.766 10.5974 L 2.4187 7.2501 L 3.4244 6.2445 L 5.766 8.5861 L 10.952 3.4 L 11.9577 4.4057 Z",fill:"white",stroke:"white","stroke-width":"0.25"})}),om=()=>T("svg",{focusable:"false",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:T("path",{d:"M19 13 H5 v-3 h14 v2 z"})}),Zr=k.default.div`
826
+ `,Fo=l.forwardRef((e,t)=>{const{description:r,disabled:n,readOnly:o,required:i,paddingSize:a="small",label:s,errorMessage:c,validationState:u,placeholder:d="Enter number...",showStepper:p=!0,min:b,max:h,...v}=e,m=tt(),y=n||m,$=bt(t),_=Bg({...v,isDisabled:y,isReadOnly:o,isRequired:i,minValue:b,maxValue:h,placeholder:d,locale:"en-US"}),{labelProps:w,groupProps:g,inputProps:D,incrementButtonProps:M,decrementButtonProps:O,descriptionProps:N,errorMessageProps:F}=jg({...v,isDisabled:y,isReadOnly:o,isRequired:i,minValue:b,maxValue:h,placeholder:d,label:s},_,$);let G=null;return typeof s=="string"?G=T(rt,{...w,children:s}):l.isValidElement(s)&&(G=l.cloneElement(s,{...w})),ce(Zr,{children:[G,p?ce(Wg,{...g,children:[T(Ug,{...D,paddingSize:a,ref:$}),p?ce(Mn,{children:[T(Kg,{...M,children:T(xe.KeyboardArrowUp,{})}),T(Hg,{...O,children:T(xe.KeyboardArrowDown,{})})]}):null]}):T(er,{ref:$,...D,paddingSize:a}),c&&ce(Qr,{...F,children:[T(xe.Error,{}),c]}),r&&T(en,{...N,children:r})]})});Fo.displayName="NumberInput";const Tu=l.forwardRef((e,t)=>{const{errorMessage:r,description:n,disabled:o,readOnly:i,required:a,paddingSize:s="large",label:c,validationState:u,placeholder:d="Enter text...",...p}=e,b=bt(t),h=tt(),v=o||h,{labelProps:m,descriptionProps:y,inputProps:$,errorMessageProps:_}=Jr({...p,isDisabled:v,isReadOnly:i,isRequired:a,placeholder:d,label:c,inputElementType:"textarea"},b);let w=null;return typeof c=="string"?w=T(rt,{...m,children:c}):l.isValidElement(c)&&(w=l.cloneElement(c,{...m})),ce(Zr,{children:[w,T(er,{as:"textarea","data-state":u,paddingSize:s,ref:b,placeholder:"Enter...",...$}),r&&ce(Qr,{..._,children:[T(xe.Error,{}),r]}),n&&T(en,{...y,children:n})]})});Tu.displayName="TextAreaInput";const Ro=l.createContext({});Ro.displayName="FormControlContext";function on(){return l.useContext(Ro)}function Gg({children:e,label:t,errorMessage:r,description:n,tooltipContent:o,tooltipIcon:i,validationState:a,id:s,...c}){const{descriptionProps:u,errorMessageProps:d,fieldProps:p,labelProps:b}=ec({errorMessage:r,label:t,description:n,validationState:a,id:s,...c});return T(Ro.Provider,{value:p,children:ce(Zr,{children:[ce(rt,{...b,display:"flex",children:[t,o?T(nn,{icon:i,children:o}):null]}),e,n&&T(en,{...u,children:n}),r&&ce(Qr,{...d,children:[T(xe.Error,{}),r]})]})})}const Ou=l.forwardRef((e,t)=>{const{label:r,tooltipContent:n,tooltipIcon:o,value:i,...a}=e;return T(Do,{ref:t,label:ce(rt,{children:[r,n?T(nn,{icon:o,children:n}):null]}),...a})});Ou.displayName="TextFormControl";const ku=l.forwardRef((e,t)=>{const{label:r,tooltipContent:n,tooltipIcon:o,...i}=e;return T(Tu,{ref:t,label:ce(rt,{children:[r,n?T(nn,{icon:o,children:n}):null]}),...i})});ku.displayName="TextAreaFormControl";const Du=l.forwardRef((e,t)=>{const{label:r,tooltipContent:n,tooltipIcon:o,...i}=e;return T(Fo,{ref:t,label:ce(rt,{children:[r,n?T(nn,{icon:o,children:n}):null]}),...i})});Du.displayName="NumberFormControl";function Iu(e){const t=tt(),r=e||t;return{...on(),disabled:r}}const qg=()=>T("svg",{viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:T("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M 11.9577 4.4057 L 5.766 10.5974 L 2.4187 7.2501 L 3.4244 6.2445 L 5.766 8.5861 L 10.952 3.4 L 11.9577 4.4057 Z",fill:"white",stroke:"white","stroke-width":"0.25"})}),Yg=()=>T("svg",{focusable:"false",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:T("path",{d:"M19 13 H5 v-3 h14 v2 z"})}),zo=A.default.div`
833
827
  display: grid;
834
828
  place-items: center;
835
829
  width: 16px;
836
830
  height: 16px;
837
- border-radius: ${c.border_radius_400};
831
+ border-radius: ${f.border_radius_400};
838
832
  border: 1px solid currentColor;
839
833
  background: var(--background-color);
840
834
  overflow: hidden;
@@ -844,12 +838,12 @@ Check the top-level render call using <`+N+">.")}return M}}function Ct(x,M){{if(
844
838
  width: 100%;
845
839
  height: 100%;
846
840
  }
847
- `,am=k.default(n0)`
841
+ `,Xg=A.default(qv)`
848
842
  all: unset;
849
- background-color: ${c.color_white};
850
- width: ${c.sizing_600};
851
- height: ${c.sizing_600};
852
- border-radius: ${c.border_radius_circle};
843
+ background-color: ${f.color_white};
844
+ width: ${f.sizing_600};
845
+ height: ${f.sizing_600};
846
+ border-radius: ${f.border_radius_circle};
853
847
  display: grid;
854
848
  place-items: center;
855
849
  animation: fadeIn 0.1s linear;
@@ -878,45 +872,45 @@ Check the top-level render call using <`+N+">.")}return M}}function Ct(x,M){{if(
878
872
  }
879
873
 
880
874
  &:invalid {
881
- color: ${c.color_fill_danger_enabled};
875
+ color: ${f.color_fill_danger_enabled};
882
876
  }
883
877
 
884
878
  &[data-state='checked'],
885
879
  &[data-state='indeterminate'] {
886
- --background-color: ${c.color_fill_primary_enabled};
887
- color: ${c.color_fill_primary_enabled};
880
+ --background-color: ${f.color_fill_primary_enabled};
881
+ color: ${f.color_fill_primary_enabled};
888
882
  }
889
883
 
890
884
  &[data-disabled] {
891
- color: ${c.color_fill_primary_disabled};
885
+ color: ${f.color_fill_primary_disabled};
892
886
  cursor: not-allowed;
893
887
  }
894
888
 
895
889
  &[aria-invalid='true'] {
896
- --background-color: ${c.color_fill_danger_enabled};
897
- color: ${c.color_fill_danger_enabled};
890
+ --background-color: ${f.color_fill_danger_enabled};
891
+ color: ${f.color_fill_danger_enabled};
898
892
  }
899
- `,im=k.default(r0)`
893
+ `,Jg=A.default(Yv)`
900
894
  line-height: 0;
901
895
 
902
896
  & > svg {
903
897
  line-height: 0;
904
898
  }
905
- `;function sm({disabled:e,checked:t,invalid:n,...r}){const o=zl(e);return ee(am,{...r,...o,checked:t,"aria-invalid":n,children:[!t&&T(Zr,{}),ee(im,{children:[t===!0&&T(Zr,{children:T(rm,{})}),t==="indeterminate"&&T(Zr,{children:T(om,{})})]})]})}const Jr=k.default.h1`
906
- font-family: ${c.font_family_inter_display};
899
+ `;function Zg({disabled:e,checked:t,invalid:r,...n}){const o=Iu(e);return ce(Xg,{...n,...o,checked:t,"aria-invalid":r,children:[!t&&T(zo,{}),ce(Jg,{children:[t===!0&&T(zo,{children:T(qg,{})}),t==="indeterminate"&&T(zo,{children:T(Yg,{})})]})]})}const Vo=A.default.h1`
900
+ font-family: ${f.font_family_inter_display};
907
901
  font-weight: 500; // don't really see value of using tokens for font-weight
908
902
  font-style: normal;
909
903
  margin: 0;
910
- `,lm=k.default(Jr)`
911
- letter-spacing: ${c.letter_spacing_heading_large};
912
- font-size: ${c.font_size_heading_large};
913
- `,cm=k.default(Jr)`
914
- letter-spacing: ${c.letter_spacing_heading_medium};
915
- font-size: ${c.font_size_heading_medium};
916
- `,dm={small:k.default(Jr)`
917
- letter-spacing: ${c.letter_spacing_heading_small};
918
- font-size: ${c.font_size_heading_small};
919
- `,medium:cm,large:lm},Bl=a.forwardRef((e,t)=>{const{children:n,as:r,size:o,...i}=e,s=dm[o];return T(s,{...i,ref:t,as:r,children:n})});Bl.displayName="Heading";const um={small:"32px",large:"40px"},fm={circle:c.border_radius_circle,square:c.border_radius_400},Sn=k.default.button`
904
+ `,Qg=A.default(Vo)`
905
+ letter-spacing: ${f.letter_spacing_heading_large};
906
+ font-size: ${f.font_size_heading_large};
907
+ `,ey=A.default(Vo)`
908
+ letter-spacing: ${f.letter_spacing_heading_medium};
909
+ font-size: ${f.font_size_heading_medium};
910
+ `,ty={small:A.default(Vo)`
911
+ letter-spacing: ${f.letter_spacing_heading_small};
912
+ font-size: ${f.font_size_heading_small};
913
+ `,medium:ey,large:Qg},Au=l.forwardRef((e,t)=>{const{children:r,as:n,size:o,...i}=e,a=ty[o];return T(a,{...i,ref:t,as:n,children:r})});Au.displayName="Heading";const ry={small:"32px",large:"40px"},ny={circle:f.border_radius_circle,square:f.border_radius_400},an=A.default.button`
920
914
  all: unset;
921
915
  appearance: none;
922
916
  display: grid;
@@ -929,9 +923,8 @@ Check the top-level render call using <`+N+">.")}return M}}function Ct(x,M){{if(
929
923
  white-space: nowrap;
930
924
  -webkit-tap-highlight-color: transparent;
931
925
 
932
- transition-property: ${c.transition_property_color};
933
- transition-timing-function: linear;
934
- transition-duration: ${c.transition_duration_150};
926
+ transition-property: ${f.transition_property_color};
927
+ transition-duration: ${f.transition_duration_150};
935
928
 
936
929
  // Not sure about focus-visible
937
930
  /* &:focus-visible {
@@ -939,7 +932,7 @@ Check the top-level render call using <`+N+">.")}return M}}function Ct(x,M){{if(
939
932
  } */
940
933
 
941
934
  &[data-state~='focused'] {
942
- outline-color: ${c.color_black};
935
+ outline-color: ${f.color_black};
943
936
  outline-style: solid;
944
937
  outline-width: 1px; // TODO make token
945
938
  outline-offset: 2px; // TODO make token
@@ -951,78 +944,78 @@ Check the top-level render call using <`+N+">.")}return M}}function Ct(x,M){{if(
951
944
 
952
945
  & > svg {
953
946
  line-height: 0;
954
- font-size: ${c.font_size_200};
947
+ font-size: ${f.font_size_200};
955
948
  }
956
- `,pm=k.default(Sn)`
957
- background: ${c.color_fill_primary_enabled};
958
- color: ${c.color_white};
949
+ `,oy=A.default(an)`
950
+ background: ${f.color_fill_primary_enabled};
951
+ color: ${f.color_white};
959
952
 
960
953
  &:hover {
961
- background: ${c.color_fill_primary_hover};
962
- color: ${c.color_fill_inverse_hover};
954
+ background: ${f.color_fill_primary_hover};
955
+ color: ${f.color_fill_inverse_hover};
963
956
  }
964
957
 
965
958
  &[data-state~='pressed'] {
966
- background: ${c.color_fill_primary_pressed};
959
+ background: ${f.color_fill_primary_pressed};
967
960
  }
968
961
 
969
962
  &:disabled {
970
- background: ${c.color_fill_primary_disabled};
971
- color: ${c.color_fill_inverse_pressed};
963
+ background: ${f.color_fill_primary_disabled};
964
+ color: ${f.color_fill_inverse_pressed};
972
965
  }
973
- `,bm=k.default(Sn)`
974
- background: ${c.color_fill_secondary_enabled};
975
- color: ${c.color_fill_primary_enabled};
966
+ `,iy=A.default(an)`
967
+ background: ${f.color_fill_secondary_enabled};
968
+ color: ${f.color_fill_primary_enabled};
976
969
 
977
970
  &:hover {
978
- background: ${c.color_fill_secondary_hover};
979
- color: ${c.color_fill_primary_hover};
971
+ background: ${f.color_fill_secondary_hover};
972
+ color: ${f.color_fill_primary_hover};
980
973
  }
981
974
 
982
975
  &[data-state~='pressed'] {
983
- background: ${c.color_fill_secondary_pressed};
984
- color: ${c.color_fill_primary_enabled};
976
+ background: ${f.color_fill_secondary_pressed};
977
+ color: ${f.color_fill_primary_enabled};
985
978
  }
986
979
 
987
980
  &:disabled {
988
- background: ${c.color_fill_secondary_disabled};
981
+ background: ${f.color_fill_secondary_disabled};
989
982
  }
990
- `,mm=k.default(Sn)`
991
- background: ${c.color_fill_danger_enabled};
992
- color: ${c.color_white};
983
+ `,ay=A.default(an)`
984
+ background: ${f.color_fill_danger_enabled};
985
+ color: ${f.color_white};
993
986
 
994
987
  &:hover {
995
- color: ${c.color_fill_inverse_hover};
996
- background: ${c.color_fill_danger_hover};
988
+ color: ${f.color_fill_inverse_hover};
989
+ background: ${f.color_fill_danger_hover};
997
990
  }
998
991
 
999
992
  &[data-state~='pressed'] {
1000
- background-color: ${c.color_fill_danger_pressed};
1001
- color: ${c.color_fill_inverse_pressed};
993
+ background-color: ${f.color_fill_danger_pressed};
994
+ color: ${f.color_fill_inverse_pressed};
1002
995
  }
1003
996
 
1004
997
  &:disabled {
1005
- background: ${c.color_fill_danger_disabled};
998
+ background: ${f.color_fill_danger_disabled};
1006
999
  }
1007
- `,gm=k.default(Sn)`
1008
- background: ${c.color_white};
1000
+ `,sy=A.default(an)`
1001
+ background: ${f.color_white};
1009
1002
 
1010
1003
  &:hover {
1011
- background-color: ${c.color_fill_inverse_hover};
1004
+ background-color: ${f.color_fill_inverse_hover};
1012
1005
  }
1013
1006
 
1014
1007
  &[data-state~='pressed'] {
1015
- background-color: ${c.color_fill_inverse_pressed};
1008
+ background-color: ${f.color_fill_inverse_pressed};
1016
1009
  }
1017
1010
 
1018
1011
  &:disabled {
1019
- background: ${c.color_fill_inverse_disabled};
1012
+ background: ${f.color_fill_inverse_disabled};
1020
1013
  }
1021
- `,$m={primary:pm,secondary:bm,danger:mm,inverse:gm},Vl=a.forwardRef((e,t)=>{const n=$t(t),{label:r,size:o="small",variant:i="primary",shape:s="circle",disabled:l=!1,onClick:d,autoFocus:f,children:u,...p}=e,{buttonProps:$,isPressed:b}=Br({onPress:d,isDisabled:l,autoFocus:f,...p},n),{isFocusVisible:h,focusProps:m}=rn({autoFocus:f}),_=[h?"focused":void 0,b?"pressed":void 0].filter(Boolean).join(" "),w=$m[i],g=fm[s],O=um[o];return T(w,{ref:n,"data-state":_,shape:s,size:o,...$,...m,style:{"--icon-button-size":O,"--icon-button-border-radius":g},children:T(Jt,{label:r,children:u})})});Vl.displayName="Button";const Qr="horizontal",hm=["horizontal","vertical"],Rl=a.forwardRef((e,t)=>{const{decorative:n,orientation:r=Qr,...o}=e,i=Wl(r)?r:Qr,l=n?{role:"none"}:{"aria-orientation":i==="vertical"?i:void 0,role:"separator"};return a.createElement(R.div,D({"data-orientation":i},l,o,{ref:t}))});Rl.propTypes={orientation(e,t,n){const r=e[t],o=String(r);return r&&!Wl(r)?new Error(vm(o,n)):null}};function vm(e,t){return`Invalid prop \`orientation\` of value \`${e}\` supplied to \`${t}\`, expected one of:
1014
+ `,ly={primary:oy,secondary:iy,danger:ay,inverse:sy},Nu=l.forwardRef((e,t)=>{const r=bt(t),{label:n,size:o="small",variant:i="primary",shape:a="circle",disabled:s=!1,onClick:c,autoFocus:u,children:d,...p}=e,{buttonProps:b,isPressed:h}=Co({onPress:c,isDisabled:s,autoFocus:u,...p},r),{isFocusVisible:v,focusProps:m}=Nr({autoFocus:u}),_=[v?"focused":void 0,h?"pressed":void 0].filter(Boolean).join(" "),w=ly[i],g=ny[a],D=ry[o];return T(w,{ref:r,"data-state":_,shape:a,size:o,...b,...m,style:{"--icon-button-size":D,"--icon-button-border-radius":g},children:T(qt,{label:n,children:d})})});Nu.displayName="Button";const jo="horizontal",cy=["horizontal","vertical"],Mu=l.forwardRef((e,t)=>{const{decorative:r,orientation:n=jo,...o}=e,i=Lu(n)?n:jo,s=r?{role:"none"}:{"aria-orientation":i==="vertical"?i:void 0,role:"separator"};return l.createElement(Q.div,C({"data-orientation":i},s,o,{ref:t}))});Mu.propTypes={orientation(e,t,r){const n=e[t],o=String(n);return n&&!Lu(n)?new Error(uy(o,r)):null}};function uy(e,t){return`Invalid prop \`orientation\` of value \`${e}\` supplied to \`${t}\`, expected one of:
1022
1015
  - horizontal
1023
1016
  - vertical
1024
1017
 
1025
- Defaulting to \`${Qr}\`.`}function Wl(e){return hm.includes(e)}const _m=Rl;function eo(e){const t=e+"CollectionProvider",[n,r]=ge(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=b=>{const{scope:h,children:m}=b,v=de.default.useRef(null),y=de.default.useRef(new Map).current;return de.default.createElement(o,{scope:h,itemMap:y,collectionRef:v},m)},l=e+"CollectionSlot",d=de.default.forwardRef((b,h)=>{const{scope:m,children:v}=b,y=i(l,m),_=J(h,y.collectionRef);return de.default.createElement(et,{ref:_},v)}),f=e+"CollectionItemSlot",u="data-radix-collection-item",p=de.default.forwardRef((b,h)=>{const{scope:m,children:v,...y}=b,_=de.default.useRef(null),w=J(h,_),g=i(f,m);return de.default.useEffect(()=>(g.itemMap.set(_,{ref:_,...y}),()=>void g.itemMap.delete(_))),de.default.createElement(et,{[u]:"",ref:w},v)});function $(b){const h=i(e+"CollectionConsumer",b);return de.default.useCallback(()=>{const v=h.collectionRef.current;if(!v)return[];const y=Array.from(v.querySelectorAll(`[${u}]`));return Array.from(h.itemMap.values()).sort((g,O)=>y.indexOf(g.ref.current)-y.indexOf(O.ref.current))},[h.collectionRef,h.itemMap])}return[{Provider:s,Slot:d,ItemSlot:p},$,r]}const Hl="ToastProvider",[to,ym,xm]=eo("Toast"),[Kl,Wh]=ge("Toast",[xm]),[wm,kn]=Kl(Hl),Ul=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:o="right",swipeThreshold:i=50,children:s}=e,[l,d]=a.useState(null),[f,u]=a.useState(0),p=a.useRef(!1),$=a.useRef(!1);return a.createElement(to.Provider,{scope:t},a.createElement(wm,{scope:t,label:n,duration:r,swipeDirection:o,swipeThreshold:i,toastCount:f,viewport:l,onViewportChange:d,onToastAdd:a.useCallback(()=>u(b=>b+1),[]),onToastRemove:a.useCallback(()=>u(b=>b-1),[]),isFocusedToastEscapeKeyDownRef:p,isClosePausedRef:$},s))};Ul.propTypes={label(e){if(e.label&&typeof e.label=="string"&&!e.label.trim()){const t=`Invalid prop \`label\` supplied to \`${Hl}\`. Expected non-empty \`string\`.`;return new Error(t)}return null}};const Em="ToastViewport",Pm=["F8"],no="toast.viewportPause",ro="toast.viewportResume",Cm=a.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=Pm,label:o="Notifications ({hotkey})",...i}=e,s=kn(Em,n),l=ym(n),d=a.useRef(null),f=a.useRef(null),u=a.useRef(null),p=a.useRef(null),$=J(t,p,s.onViewportChange),b=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),h=s.toastCount>0;a.useEffect(()=>{const v=y=>{var _;r.every(g=>y[g]||y.code===g)&&((_=p.current)===null||_===void 0||_.focus())};return document.addEventListener("keydown",v),()=>document.removeEventListener("keydown",v)},[r]),a.useEffect(()=>{const v=d.current,y=p.current;if(h&&v&&y){const _=()=>{if(!s.isClosePausedRef.current){const L=new CustomEvent(no);y.dispatchEvent(L),s.isClosePausedRef.current=!0}},w=()=>{if(s.isClosePausedRef.current){const L=new CustomEvent(ro);y.dispatchEvent(L),s.isClosePausedRef.current=!1}},g=L=>{!v.contains(L.relatedTarget)&&w()},O=()=>{v.contains(document.activeElement)||w()};return v.addEventListener("focusin",_),v.addEventListener("focusout",g),v.addEventListener("pointermove",_),v.addEventListener("pointerleave",O),window.addEventListener("blur",_),window.addEventListener("focus",w),()=>{v.removeEventListener("focusin",_),v.removeEventListener("focusout",g),v.removeEventListener("pointermove",_),v.removeEventListener("pointerleave",O),window.removeEventListener("blur",_),window.removeEventListener("focus",w)}}},[h,s.isClosePausedRef]);const m=a.useCallback(({tabbingDirection:v})=>{const _=l().map(w=>{const g=w.ref.current,O=[g,...Rm(g)];return v==="forwards"?O:O.reverse()});return(v==="forwards"?_.reverse():_).flat()},[l]);return a.useEffect(()=>{const v=p.current;if(v){const y=_=>{const w=_.altKey||_.ctrlKey||_.metaKey;if(_.key==="Tab"&&!w){const A=document.activeElement,F=_.shiftKey;if(_.target===v&&F){var O;(O=f.current)===null||O===void 0||O.focus();return}const V=m({tabbingDirection:F?"backwards":"forwards"}),S=V.findIndex(E=>E===A);if(oo(V.slice(S+1)))_.preventDefault();else{var L,C;F?(L=f.current)===null||L===void 0||L.focus():(C=u.current)===null||C===void 0||C.focus()}}};return v.addEventListener("keydown",y),()=>v.removeEventListener("keydown",y)}},[l,m]),a.createElement(Qc,{ref:d,role:"region","aria-label":o.replace("{hotkey}",b),tabIndex:-1,style:{pointerEvents:h?void 0:"none"}},h&&a.createElement(jl,{ref:f,onFocusFromOutsideViewport:()=>{const v=m({tabbingDirection:"forwards"});oo(v)}}),a.createElement(to.Slot,{scope:n},a.createElement(R.ol,D({tabIndex:-1},i,{ref:$}))),h&&a.createElement(jl,{ref:u,onFocusFromOutsideViewport:()=>{const v=m({tabbingDirection:"backwards"});oo(v)}}))}),Tm="ToastFocusProxy",jl=a.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...o}=e,i=kn(Tm,n);return a.createElement(Zt,D({"aria-hidden":!0,tabIndex:0},o,{ref:t,style:{position:"fixed"},onFocus:s=>{var l;const d=s.relatedTarget;!((l=i.viewport)!==null&&l!==void 0&&l.contains(d))&&r()}}))}),Dn="Toast",Sm="toast.swipeStart",km="toast.swipeMove",Dm="toast.swipeCancel",Om="toast.swipeEnd",Im=a.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:o,onOpenChange:i,...s}=e,[l=!0,d]=Pe({prop:r,defaultProp:o,onChange:i});return a.createElement(ye,{present:n||l},a.createElement(Gl,D({open:l},s,{ref:t,onClose:()=>d(!1),onPause:$e(e.onPause),onResume:$e(e.onResume),onSwipeStart:B(e.onSwipeStart,f=>{f.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:B(e.onSwipeMove,f=>{const{x:u,y:p}=f.detail.delta;f.currentTarget.setAttribute("data-swipe","move"),f.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${u}px`),f.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${p}px`)}),onSwipeCancel:B(e.onSwipeCancel,f=>{f.currentTarget.setAttribute("data-swipe","cancel"),f.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),f.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),f.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),f.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:B(e.onSwipeEnd,f=>{const{x:u,y:p}=f.detail.delta;f.currentTarget.setAttribute("data-swipe","end"),f.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),f.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),f.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${u}px`),f.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${p}px`),d(!1)})})))}),[Am,Lm]=Kl(Dn,{onClose(){}}),Gl=a.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:o,open:i,onClose:s,onEscapeKeyDown:l,onPause:d,onResume:f,onSwipeStart:u,onSwipeMove:p,onSwipeCancel:$,onSwipeEnd:b,...h}=e,m=kn(Dn,n),[v,y]=a.useState(null),_=J(t,E=>y(E)),w=a.useRef(null),g=a.useRef(null),O=o||m.duration,L=a.useRef(0),C=a.useRef(O),A=a.useRef(0),{onToastAdd:F,onToastRemove:W}=m,P=$e(()=>{var E;(v==null?void 0:v.contains(document.activeElement))&&((E=m.viewport)===null||E===void 0||E.focus()),s()}),V=a.useCallback(E=>{!E||E===1/0||(window.clearTimeout(A.current),L.current=new Date().getTime(),A.current=window.setTimeout(P,E))},[P]);a.useEffect(()=>{const E=m.viewport;if(E){const U=()=>{V(C.current),f==null||f()},Y=()=>{const ae=new Date().getTime()-L.current;C.current=C.current-ae,window.clearTimeout(A.current),d==null||d()};return E.addEventListener(no,Y),E.addEventListener(ro,U),()=>{E.removeEventListener(no,Y),E.removeEventListener(ro,U)}}},[m.viewport,O,d,f,V]),a.useEffect(()=>{i&&!m.isClosePausedRef.current&&V(O)},[i,O,m.isClosePausedRef,V]),a.useEffect(()=>(F(),()=>W()),[F,W]);const S=a.useMemo(()=>v?Zl(v):null,[v]);return m.viewport?a.createElement(a.Fragment,null,S&&a.createElement(Mm,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0},S),a.createElement(Am,{scope:n,onClose:P},Qe.createPortal(a.createElement(to.ItemSlot,{scope:n},a.createElement(Jc,{asChild:!0,onEscapeKeyDown:B(l,()=>{m.isFocusedToastEscapeKeyDownRef.current||P(),m.isFocusedToastEscapeKeyDownRef.current=!1})},a.createElement(R.li,D({role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":m.swipeDirection},h,{ref:_,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:B(e.onKeyDown,E=>{E.key==="Escape"&&(l==null||l(E.nativeEvent),E.nativeEvent.defaultPrevented||(m.isFocusedToastEscapeKeyDownRef.current=!0,P()))}),onPointerDown:B(e.onPointerDown,E=>{E.button===0&&(w.current={x:E.clientX,y:E.clientY})}),onPointerMove:B(e.onPointerMove,E=>{if(!w.current)return;const U=E.clientX-w.current.x,Y=E.clientY-w.current.y,ae=Boolean(g.current),ie=["left","right"].includes(m.swipeDirection),H=["left","up"].includes(m.swipeDirection)?Math.min:Math.max,z=ie?H(0,U):0,K=ie?0:H(0,Y),Q=E.pointerType==="touch"?10:2,G={x:z,y:K},Z={originalEvent:E,delta:G};ae?(g.current=G,On(km,p,Z,{discrete:!1})):Jl(G,m.swipeDirection,Q)?(g.current=G,On(Sm,u,Z,{discrete:!1}),E.target.setPointerCapture(E.pointerId)):(Math.abs(U)>Q||Math.abs(Y)>Q)&&(w.current=null)}),onPointerUp:B(e.onPointerUp,E=>{const U=g.current,Y=E.target;if(Y.hasPointerCapture(E.pointerId)&&Y.releasePointerCapture(E.pointerId),g.current=null,w.current=null,U){const ae=E.currentTarget,ie={originalEvent:E,delta:U};Jl(U,m.swipeDirection,m.swipeThreshold)?On(Om,b,ie,{discrete:!0}):On(Dm,$,ie,{discrete:!0}),ae.addEventListener("click",H=>H.preventDefault(),{once:!0})}})})))),m.viewport))):null});Gl.propTypes={type(e){if(e.type&&!["foreground","background"].includes(e.type)){const t=`Invalid prop \`type\` supplied to \`${Dn}\`. Expected \`foreground | background\`.`;return new Error(t)}return null}};const Mm=e=>{const{__scopeToast:t,children:n,...r}=e,o=kn(Dn,t),[i,s]=a.useState(!1),[l,d]=a.useState(!1);return Bm(()=>s(!0)),a.useEffect(()=>{const f=window.setTimeout(()=>d(!0),1e3);return()=>window.clearTimeout(f)},[]),l?null:a.createElement(kt,{asChild:!0},a.createElement(Zt,r,i&&a.createElement(a.Fragment,null,o.label," ",n)))},Fm=a.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return a.createElement(R.div,D({},r,{ref:t}))}),Nm="ToastAction",Yl=a.forwardRef((e,t)=>{const{altText:n,...r}=e;return n?a.createElement(Xl,{altText:n,asChild:!0},a.createElement(ql,D({},r,{ref:t}))):null});Yl.propTypes={altText(e){return e.altText?null:new Error(`Missing prop \`altText\` expected on \`${Nm}\``)}};const zm="ToastClose",ql=a.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,o=Lm(zm,n);return a.createElement(Xl,{asChild:!0},a.createElement(R.button,D({type:"button"},r,{ref:t,onClick:B(e.onClick,o.onClose)})))}),Xl=a.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...o}=e;return a.createElement(R.div,D({"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0},o,{ref:t}))});function Zl(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),Vm(r)){const o=r.ariaHidden||r.hidden||r.style.display==="none",i=r.dataset.radixToastAnnounceExclude==="";if(!o)if(i){const s=r.dataset.radixToastAnnounceAlt;s&&t.push(s)}else t.push(...Zl(r))}}),t}function On(e,t,n,{discrete:r}){const o=n.originalEvent.currentTarget,i=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?ho(o,i):o.dispatchEvent(i)}const Jl=(e,t,n=0)=>{const r=Math.abs(e.x),o=Math.abs(e.y),i=r>o;return t==="left"||t==="right"?i&&r>n:!i&&o>n};function Bm(e=()=>{}){const t=$e(e);pe(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function Vm(e){return e.nodeType===e.ELEMENT_NODE}function Rm(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function oo(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}const Wm=Ul,Hm=Cm,Km=Im,Um=Fm,jm=Yl,Gm=ql,ao=25,Ym=lt.keyframes`
1018
+ Defaulting to \`${jo}\`.`}function Lu(e){return cy.includes(e)}const dy=Mu;function Bo(e){const t=e+"CollectionProvider",[r,n]=Se(t),[o,i]=r(t,{collectionRef:{current:null},itemMap:new Map}),a=h=>{const{scope:v,children:m}=h,y=ie.default.useRef(null),$=ie.default.useRef(new Map).current;return ie.default.createElement(o,{scope:v,itemMap:$,collectionRef:y},m)},s=e+"CollectionSlot",c=ie.default.forwardRef((h,v)=>{const{scope:m,children:y}=h,$=i(s,m),_=le(v,$.collectionRef);return ie.default.createElement(dt,{ref:_},y)}),u=e+"CollectionItemSlot",d="data-radix-collection-item",p=ie.default.forwardRef((h,v)=>{const{scope:m,children:y,...$}=h,_=ie.default.useRef(null),w=le(v,_),g=i(u,m);return ie.default.useEffect(()=>(g.itemMap.set(_,{ref:_,...$}),()=>void g.itemMap.delete(_))),ie.default.createElement(dt,{[d]:"",ref:w},y)});function b(h){const v=i(e+"CollectionConsumer",h);return ie.default.useCallback(()=>{const y=v.collectionRef.current;if(!y)return[];const $=Array.from(y.querySelectorAll(`[${d}]`));return Array.from(v.itemMap.values()).sort((g,D)=>$.indexOf(g.ref.current)-$.indexOf(D.ref.current))},[v.collectionRef,v.itemMap])}return[{Provider:a,Slot:c,ItemSlot:p},b,n]}const Fu="ToastProvider",[Wo,fy,py]=Bo("Toast"),[Ru,OE]=Se("Toast",[py]),[hy,sn]=Ru(Fu),zu=e=>{const{__scopeToast:t,label:r="Notification",duration:n=5e3,swipeDirection:o="right",swipeThreshold:i=50,children:a}=e,[s,c]=l.useState(null),[u,d]=l.useState(0),p=l.useRef(!1),b=l.useRef(!1);return l.createElement(Wo.Provider,{scope:t},l.createElement(hy,{scope:t,label:r,duration:n,swipeDirection:o,swipeThreshold:i,toastCount:u,viewport:s,onViewportChange:c,onToastAdd:l.useCallback(()=>d(h=>h+1),[]),onToastRemove:l.useCallback(()=>d(h=>h-1),[]),isFocusedToastEscapeKeyDownRef:p,isClosePausedRef:b},a))};zu.propTypes={label(e){if(e.label&&typeof e.label=="string"&&!e.label.trim()){const t=`Invalid prop \`label\` supplied to \`${Fu}\`. Expected non-empty \`string\`.`;return new Error(t)}return null}};const by="ToastViewport",my=["F8"],Uo="toast.viewportPause",Ko="toast.viewportResume",vy=l.forwardRef((e,t)=>{const{__scopeToast:r,hotkey:n=my,label:o="Notifications ({hotkey})",...i}=e,a=sn(by,r),s=fy(r),c=l.useRef(null),u=l.useRef(null),d=l.useRef(null),p=l.useRef(null),b=le(t,p,a.onViewportChange),h=n.join("+").replace(/Key/g,"").replace(/Digit/g,""),v=a.toastCount>0;l.useEffect(()=>{const y=$=>{var _;n.every(g=>$[g]||$.code===g)&&((_=p.current)===null||_===void 0||_.focus())};return document.addEventListener("keydown",y),()=>document.removeEventListener("keydown",y)},[n]),l.useEffect(()=>{const y=c.current,$=p.current;if(v&&y&&$){const _=()=>{if(!a.isClosePausedRef.current){const M=new CustomEvent(Uo);$.dispatchEvent(M),a.isClosePausedRef.current=!0}},w=()=>{if(a.isClosePausedRef.current){const M=new CustomEvent(Ko);$.dispatchEvent(M),a.isClosePausedRef.current=!1}},g=M=>{!y.contains(M.relatedTarget)&&w()},D=()=>{y.contains(document.activeElement)||w()};return y.addEventListener("focusin",_),y.addEventListener("focusout",g),y.addEventListener("pointermove",_),y.addEventListener("pointerleave",D),window.addEventListener("blur",_),window.addEventListener("focus",w),()=>{y.removeEventListener("focusin",_),y.removeEventListener("focusout",g),y.removeEventListener("pointermove",_),y.removeEventListener("pointerleave",D),window.removeEventListener("blur",_),window.removeEventListener("focus",w)}}},[v,a.isClosePausedRef]);const m=l.useCallback(({tabbingDirection:y})=>{const _=s().map(w=>{const g=w.ref.current,D=[g,...Iy(g)];return y==="forwards"?D:D.reverse()});return(y==="forwards"?_.reverse():_).flat()},[s]);return l.useEffect(()=>{const y=p.current;if(y){const $=_=>{const w=_.altKey||_.ctrlKey||_.metaKey;if(_.key==="Tab"&&!w){const N=document.activeElement,F=_.shiftKey;if(_.target===y&&F){var D;(D=u.current)===null||D===void 0||D.focus();return}const Y=m({tabbingDirection:F?"backwards":"forwards"}),I=Y.findIndex(P=>P===N);if(Ho(Y.slice(I+1)))_.preventDefault();else{var M,O;F?(M=u.current)===null||M===void 0||M.focus():(O=d.current)===null||O===void 0||O.focus()}}};return y.addEventListener("keydown",$),()=>y.removeEventListener("keydown",$)}},[s,m]),l.createElement(qp,{ref:c,role:"region","aria-label":o.replace("{hotkey}",h),tabIndex:-1,style:{pointerEvents:v?void 0:"none"}},v&&l.createElement(Vu,{ref:u,onFocusFromOutsideViewport:()=>{const y=m({tabbingDirection:"forwards"});Ho(y)}}),l.createElement(Wo.Slot,{scope:r},l.createElement(Q.ol,C({tabIndex:-1},i,{ref:b}))),v&&l.createElement(Vu,{ref:d,onFocusFromOutsideViewport:()=>{const y=m({tabbingDirection:"backwards"});Ho(y)}}))}),gy="ToastFocusProxy",Vu=l.forwardRef((e,t)=>{const{__scopeToast:r,onFocusFromOutsideViewport:n,...o}=e,i=sn(gy,r);return l.createElement(Or,C({"aria-hidden":!0,tabIndex:0},o,{ref:t,style:{position:"fixed"},onFocus:a=>{var s;const c=a.relatedTarget;!((s=i.viewport)!==null&&s!==void 0&&s.contains(c))&&n()}}))}),ln="Toast",yy="toast.swipeStart",_y="toast.swipeMove",$y="toast.swipeCancel",xy="toast.swipeEnd",wy=l.forwardRef((e,t)=>{const{forceMount:r,open:n,defaultOpen:o,onOpenChange:i,...a}=e,[s=!0,c]=Me({prop:n,defaultProp:o,onChange:i});return l.createElement(De,{present:r||s},l.createElement(ju,C({open:s},a,{ref:t,onClose:()=>c(!1),onPause:Ce(e.onPause),onResume:Ce(e.onResume),onSwipeStart:K(e.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:K(e.onSwipeMove,u=>{const{x:d,y:p}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","move"),u.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${d}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${p}px`)}),onSwipeCancel:K(e.onSwipeCancel,u=>{u.currentTarget.setAttribute("data-swipe","cancel"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:K(e.onSwipeEnd,u=>{const{x:d,y:p}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","end"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${d}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${p}px`),c(!1)})})))}),[Ey,Py]=Ru(ln,{onClose(){}}),ju=l.forwardRef((e,t)=>{const{__scopeToast:r,type:n="foreground",duration:o,open:i,onClose:a,onEscapeKeyDown:s,onPause:c,onResume:u,onSwipeStart:d,onSwipeMove:p,onSwipeCancel:b,onSwipeEnd:h,...v}=e,m=sn(ln,r),[y,$]=l.useState(null),_=le(t,P=>$(P)),w=l.useRef(null),g=l.useRef(null),D=o||m.duration,M=l.useRef(0),O=l.useRef(D),N=l.useRef(0),{onToastAdd:F,onToastRemove:G}=m,S=Ce(()=>{var P;(y==null?void 0:y.contains(document.activeElement))&&((P=m.viewport)===null||P===void 0||P.focus()),a()}),Y=l.useCallback(P=>{!P||P===1/0||(window.clearTimeout(N.current),M.current=new Date().getTime(),N.current=window.setTimeout(S,P))},[S]);l.useEffect(()=>{const P=m.viewport;if(P){const re=()=>{Y(O.current),u==null||u()},Z=()=>{const fe=new Date().getTime()-M.current;O.current=O.current-fe,window.clearTimeout(N.current),c==null||c()};return P.addEventListener(Uo,Z),P.addEventListener(Ko,re),()=>{P.removeEventListener(Uo,Z),P.removeEventListener(Ko,re)}}},[m.viewport,D,c,u,Y]),l.useEffect(()=>{i&&!m.isClosePausedRef.current&&Y(D)},[i,D,m.isClosePausedRef,Y]),l.useEffect(()=>(F(),()=>G()),[F,G]);const I=l.useMemo(()=>y?Ku(y):null,[y]);return m.viewport?l.createElement(l.Fragment,null,I&&l.createElement(Sy,{__scopeToast:r,role:"status","aria-live":n==="foreground"?"assertive":"polite","aria-atomic":!0},I),l.createElement(Ey,{scope:r,onClose:S},ut.createPortal(l.createElement(Wo.ItemSlot,{scope:r},l.createElement(Gp,{asChild:!0,onEscapeKeyDown:K(s,()=>{m.isFocusedToastEscapeKeyDownRef.current||S(),m.isFocusedToastEscapeKeyDownRef.current=!1})},l.createElement(Q.li,C({role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":m.swipeDirection},v,{ref:_,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:K(e.onKeyDown,P=>{P.key==="Escape"&&(s==null||s(P.nativeEvent),P.nativeEvent.defaultPrevented||(m.isFocusedToastEscapeKeyDownRef.current=!0,S()))}),onPointerDown:K(e.onPointerDown,P=>{P.button===0&&(w.current={x:P.clientX,y:P.clientY})}),onPointerMove:K(e.onPointerMove,P=>{if(!w.current)return;const re=P.clientX-w.current.x,Z=P.clientY-w.current.y,fe=Boolean(g.current),ve=["left","right"].includes(m.swipeDirection),ee=["left","up"].includes(m.swipeDirection)?Math.min:Math.max,E=ve?ee(0,re):0,L=ve?0:ee(0,Z),B=P.pointerType==="touch"?10:2,j={x:E,y:L},V={originalEvent:P,delta:j};fe?(g.current=j,cn(_y,p,V,{discrete:!1})):Hu(j,m.swipeDirection,B)?(g.current=j,cn(yy,d,V,{discrete:!1}),P.target.setPointerCapture(P.pointerId)):(Math.abs(re)>B||Math.abs(Z)>B)&&(w.current=null)}),onPointerUp:K(e.onPointerUp,P=>{const re=g.current,Z=P.target;if(Z.hasPointerCapture(P.pointerId)&&Z.releasePointerCapture(P.pointerId),g.current=null,w.current=null,re){const fe=P.currentTarget,ve={originalEvent:P,delta:re};Hu(re,m.swipeDirection,m.swipeThreshold)?cn(xy,h,ve,{discrete:!0}):cn($y,b,ve,{discrete:!0}),fe.addEventListener("click",ee=>ee.preventDefault(),{once:!0})}})})))),m.viewport))):null});ju.propTypes={type(e){if(e.type&&!["foreground","background"].includes(e.type)){const t=`Invalid prop \`type\` supplied to \`${ln}\`. Expected \`foreground | background\`.`;return new Error(t)}return null}};const Sy=e=>{const{__scopeToast:t,children:r,...n}=e,o=sn(ln,t),[i,a]=l.useState(!1),[s,c]=l.useState(!1);return ky(()=>a(!0)),l.useEffect(()=>{const u=window.setTimeout(()=>c(!0),1e3);return()=>window.clearTimeout(u)},[]),s?null:l.createElement(Gt,{asChild:!0},l.createElement(Or,n,i&&l.createElement(l.Fragment,null,o.label," ",r)))},Cy=l.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e;return l.createElement(Q.div,C({},n,{ref:t}))}),Ty="ToastAction",Bu=l.forwardRef((e,t)=>{const{altText:r,...n}=e;return r?l.createElement(Uu,{altText:r,asChild:!0},l.createElement(Wu,C({},n,{ref:t}))):null});Bu.propTypes={altText(e){return e.altText?null:new Error(`Missing prop \`altText\` expected on \`${Ty}\``)}};const Oy="ToastClose",Wu=l.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e,o=Py(Oy,r);return l.createElement(Uu,{asChild:!0},l.createElement(Q.button,C({type:"button"},n,{ref:t,onClick:K(e.onClick,o.onClose)})))}),Uu=l.forwardRef((e,t)=>{const{__scopeToast:r,altText:n,...o}=e;return l.createElement(Q.div,C({"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":n||void 0},o,{ref:t}))});function Ku(e){const t=[];return Array.from(e.childNodes).forEach(n=>{if(n.nodeType===n.TEXT_NODE&&n.textContent&&t.push(n.textContent),Dy(n)){const o=n.ariaHidden||n.hidden||n.style.display==="none",i=n.dataset.radixToastAnnounceExclude==="";if(!o)if(i){const a=n.dataset.radixToastAnnounceAlt;a&&t.push(a)}else t.push(...Ku(n))}}),t}function cn(e,t,r,{discrete:n}){const o=r.originalEvent.currentTarget,i=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?ca(o,i):o.dispatchEvent(i)}const Hu=(e,t,r=0)=>{const n=Math.abs(e.x),o=Math.abs(e.y),i=n>o;return t==="left"||t==="right"?i&&n>r:!i&&o>r};function ky(e=()=>{}){const t=Ce(e);$e(()=>{let r=0,n=0;return r=window.requestAnimationFrame(()=>n=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(r),window.cancelAnimationFrame(n)}},[t])}function Dy(e){return e.nodeType===e.ELEMENT_NODE}function Iy(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function Ho(e){const t=document.activeElement;return e.some(r=>r===t?!0:(r.focus(),document.activeElement!==t))}const Ay=zu,Ny=vy,My=wy,Ly=Cy,Fy=Bu,Ry=Wu,Go=25,zy=$t.keyframes`
1026
1019
  0% {
1027
1020
  opacity: 1
1028
1021
  }
@@ -1030,30 +1023,30 @@ Defaulting to \`${Qr}\`.`}function Wl(e){return hm.includes(e)}const _m=Rl;funct
1030
1023
  100% {
1031
1024
  opacity: 0
1032
1025
  }
1033
- `,qm=lt.keyframes`
1026
+ `,Vy=$t.keyframes`
1034
1027
  from {
1035
- transform: translateX(calc(100% + ${ao}px));
1028
+ transform: translateX(calc(100% + ${Go}px));
1036
1029
  }
1037
1030
 
1038
1031
  to {
1039
1032
  transform: translateX(0);
1040
1033
  }
1041
- `,Xm=lt.keyframes`
1034
+ `,jy=$t.keyframes`
1042
1035
  from {
1043
1036
  transform: translateX(var(--radix-toast-swipe-end-x));
1044
1037
  }
1045
1038
  to {
1046
- transform: translateX(calc(100% + ${ao}px));
1039
+ transform: translateX(calc(100% + ${Go}px));
1047
1040
  }
1048
- `,Zm=k.default(jm)``,Ql=k.default(Gm)`
1041
+ `,By=A.default(Fy)``,Gu=A.default(Ry)`
1049
1042
  all: unset;
1050
1043
  display: grid;
1051
- width: ${c.sizing_500};
1044
+ width: ${f.sizing_500};
1052
1045
  aspect-ratio: 1;
1053
1046
  margin-left: auto;
1054
1047
  place-items: center;
1055
- padding: ${c.sizing_100};
1056
- border-radius: ${c.border_radius_400};
1048
+ padding: ${f.sizing_100};
1049
+ border-radius: ${f.border_radius_400};
1057
1050
 
1058
1051
  &:hover {
1059
1052
  background-color: hsl(0deg 0% 0% / 5%);
@@ -1062,64 +1055,64 @@ Defaulting to \`${Qr}\`.`}function Wl(e){return hm.includes(e)}const _m=Rl;funct
1062
1055
  & > svg {
1063
1056
  font-size: 0.95rem;
1064
1057
  }
1065
- `,Jm=k.default(Um)`
1066
- font-family: ${c.font_family_inter};
1058
+ `,Wy=A.default(Ly)`
1059
+ font-family: ${f.font_family_inter};
1067
1060
  font-style: normal;
1068
1061
  font-weight: 500;
1069
- font-size: ${c.font_size_100};
1070
- line-height: ${c.line_height_129};
1071
- letter-spacing: ${c.letter_spacing_tight};
1062
+ font-size: ${f.font_size_100};
1063
+ line-height: ${f.line_height_129};
1064
+ letter-spacing: ${f.letter_spacing_tight};
1072
1065
  display: flex;
1073
1066
  align-items: center;
1074
- `,ec=k.default(_m)`
1067
+ `,qu=A.default(dy)`
1075
1068
  background-color: var(--color-separator);
1076
1069
 
1077
1070
  &[data-orientation='horizontal'] {
1078
1071
  width: 1px;
1079
- height: ${c.sizing_600};
1080
- margin-left: ${c.sizing_500};
1081
- margin-right: ${c.sizing_200};
1072
+ height: ${f.sizing_600};
1073
+ margin-left: ${f.sizing_500};
1074
+ margin-right: ${f.sizing_200};
1082
1075
  }
1083
1076
 
1084
1077
  &[data-orientation='vertical'] {
1085
1078
  height: 100%;
1086
1079
  width: 1;
1087
1080
  }
1088
- `,Qm={info:c.color_background_white_standard,inverse:c.color_background_sentiment_neutral,negative:c.color_background_sentiment_negative},eg={info:c.color_text_standard,inverse:c.color_background_white_standard,negative:c.color_background_white_standard},tg={info:c.color_divider_weak,inverse:c.color_divider_inverse_weak,negative:c.color_divider_inverse_weak},ng=k.default(Hm)`
1081
+ `,Uy={info:f.color_background_white_standard,inverse:f.color_background_sentiment_neutral,negative:f.color_background_sentiment_negative},Ky={info:f.color_text_standard,inverse:f.color_background_white_standard,negative:f.color_background_white_standard},Hy={info:f.color_divider_weak,inverse:f.color_divider_inverse_weak,negative:f.color_divider_inverse_weak},Gy=A.default(Ny)`
1089
1082
  position: fixed;
1090
1083
  bottom: 0;
1091
1084
  right: 0;
1092
1085
  display: flex;
1093
1086
  flex-direction: column;
1094
- padding: ${ao}px;
1087
+ padding: ${Go}px;
1095
1088
  gap: 10px;
1096
1089
  max-width: 100vw;
1097
1090
  margin: 0;
1098
1091
  list-style: none;
1099
1092
  z-index: 30;
1100
1093
  outline: none;
1101
- `,rg=k.default(Km)`
1094
+ `,qy=A.default(My)`
1102
1095
  display: flex;
1103
1096
  flex-direction: row;
1104
1097
  align-items: center;
1105
- padding: ${c.sizing_200};
1106
- padding-left: ${c.sizing_400};
1107
- gap: ${c.spacing_300};
1098
+ padding: ${f.sizing_200};
1099
+ padding-left: ${f.sizing_400};
1100
+ gap: ${f.spacing_300};
1108
1101
  background-color: var(--color-background-notification);
1109
1102
  color: var(--color-notification);
1110
- box-shadow: ${c.elevation_interactive_low};
1111
- border-radius: ${c.border_radius_400};
1103
+ box-shadow: ${f.elevation_interactive_low};
1104
+ border-radius: ${f.border_radius_400};
1112
1105
 
1113
1106
  & > svg {
1114
1107
  line-height: 0;
1115
1108
  }
1116
1109
 
1117
1110
  &[data-state='open'] {
1118
- animation: ${qm} 150ms cubic-bezier(0.16, 1, 0.3, 1);
1111
+ animation: ${Vy} 150ms cubic-bezier(0.16, 1, 0.3, 1);
1119
1112
  }
1120
1113
 
1121
1114
  &[data-state='closed'] {
1122
- animation: ${Ym} 100ms ease-in;
1115
+ animation: ${zy} 100ms ease-in;
1123
1116
  }
1124
1117
 
1125
1118
  &[data-swipe='move'] {
@@ -1130,36 +1123,53 @@ Defaulting to \`${Qr}\`.`}function Wl(e){return hm.includes(e)}const _m=Rl;funct
1130
1123
  transition: transform 200ms ease-out;
1131
1124
  }
1132
1125
  &[data-swipe='end'] {
1133
- animation: ${Xm} 100ms ease-out;
1126
+ animation: ${jy} 100ms ease-out;
1127
+ }
1128
+ `;function Yy({children:e,...t}){return T(Ay,{...t,children:e})}function Xy({title:e,children:t,sentiment:r,onDismiss:n,...o}){const i=Uy[r],a=Ky[r],s=Hy[r];return ce(qy,{style:{"--color-background-notification":i,"--color-notification":a},...o,children:[r==="negative"?T(xe.Warning,{height:18}):null,T(Wy,{children:e}),T(qu,{style:{"--color-separator":s}}),t,T(Gu,{onClick:n,children:T(qt,{label:"Dismiss notification",children:T(xe.Close,{width:18,height:18})})})]})}const Yu=A.default(To)`
1129
+ display: grid;
1130
+ place-content: center;
1131
+ border-radius: ${f.border_radius_400};
1132
+ height: ${f.sizing_650};
1133
+ width: ${f.sizing_650};
1134
+
1135
+ & > svg {
1136
+ line-height: 0;
1137
+ font-size: ${f.font_size_200};
1138
+ }
1139
+ `,un=l.forwardRef((e,t)=>{const{direction:r,label:n=r==="left"?"Previous":"Next",...o}=e,i=r==="left"?T(xe.NavigateBefore,{}):T(xe.NavigateNext,{});return T(Yu,{variant:"inverse",emphasis:"high",ref:t,...o,children:T(qt,{label:n,children:i})})});un.displayName="PaginatorButton";const Jy=A.default(Yu)`
1140
+ &[aria-current='true'] {
1141
+ background-color: ${f.color_overlay_secondary_selected_enabled};
1134
1142
  }
1135
- `;function og({children:e,...t}){return T(Wm,{...t,children:e})}function ag({title:e,children:t,sentiment:n,onDismiss:r,...o}){const i=Qm[n],s=eg[n],l=tg[n];return ee(rg,{style:{"--color-background-notification":i,"--color-notification":s},...o,children:[n==="negative"?T(ve.Warning,{height:18}):null,T(Jm,{children:e}),T(ec,{style:{"--color-separator":l}}),t,T(Ql,{onClick:r,children:T(Jt,{label:"Dismiss notification",children:T(ve.Close,{width:18,height:18})})})]})}const ig=a.createContext(void 0);function io(e){const t=a.useContext(ig);return e||t||"ltr"}const so="rovingFocusGroup.onEntryFocus",sg={bubbles:!1,cancelable:!0},lo="RovingFocusGroup",[co,tc,lg]=eo(lo),[cg,nc]=ge(lo,[lg]),[dg,ug]=cg(lo),fg=a.forwardRef((e,t)=>a.createElement(co.Provider,{scope:e.__scopeRovingFocusGroup},a.createElement(co.Slot,{scope:e.__scopeRovingFocusGroup},a.createElement(pg,D({},e,{ref:t}))))),pg=a.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:i,currentTabStopId:s,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:d,onEntryFocus:f,...u}=e,p=a.useRef(null),$=J(t,p),b=io(i),[h=null,m]=Pe({prop:s,defaultProp:l,onChange:d}),[v,y]=a.useState(!1),_=$e(f),w=tc(n),g=a.useRef(!1),[O,L]=a.useState(0);return a.useEffect(()=>{const C=p.current;if(C)return C.addEventListener(so,_),()=>C.removeEventListener(so,_)},[_]),a.createElement(dg,{scope:n,orientation:r,dir:b,loop:o,currentTabStopId:h,onItemFocus:a.useCallback(C=>m(C),[m]),onItemShiftTab:a.useCallback(()=>y(!0),[]),onFocusableItemAdd:a.useCallback(()=>L(C=>C+1),[]),onFocusableItemRemove:a.useCallback(()=>L(C=>C-1),[])},a.createElement(R.div,D({tabIndex:v||O===0?-1:0,"data-orientation":r},u,{ref:$,style:{outline:"none",...e.style},onMouseDown:B(e.onMouseDown,()=>{g.current=!0}),onFocus:B(e.onFocus,C=>{const A=!g.current;if(C.target===C.currentTarget&&A&&!v){const F=new CustomEvent(so,sg);if(C.currentTarget.dispatchEvent(F),!F.defaultPrevented){const W=w().filter(U=>U.focusable),P=W.find(U=>U.active),V=W.find(U=>U.id===h),E=[P,V,...W].filter(Boolean).map(U=>U.ref.current);rc(E)}}g.current=!1}),onBlur:B(e.onBlur,()=>y(!1))})))}),bg="RovingFocusGroupItem",mg=a.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,...i}=e,s=Le(),l=ug(bg,n),d=l.currentTabStopId===s,f=tc(n),{onFocusableItemAdd:u,onFocusableItemRemove:p}=l;return a.useEffect(()=>{if(r)return u(),()=>p()},[r,u,p]),a.createElement(co.ItemSlot,{scope:n,id:s,focusable:r,active:o},a.createElement(R.span,D({tabIndex:d?0:-1,"data-orientation":l.orientation},i,{ref:t,onMouseDown:B(e.onMouseDown,$=>{r?l.onItemFocus(s):$.preventDefault()}),onFocus:B(e.onFocus,()=>l.onItemFocus(s)),onKeyDown:B(e.onKeyDown,$=>{if($.key==="Tab"&&$.shiftKey){l.onItemShiftTab();return}if($.target!==$.currentTarget)return;const b=hg($,l.orientation,l.dir);if(b!==void 0){$.preventDefault();let m=f().filter(v=>v.focusable).map(v=>v.ref.current);if(b==="last")m.reverse();else if(b==="prev"||b==="next"){b==="prev"&&m.reverse();const v=m.indexOf($.currentTarget);m=l.loop?vg(m,v+1):m.slice(v+1)}setTimeout(()=>rc(m))}})})))}),gg={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function $g(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function hg(e,t,n){const r=$g(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return gg[r]}function rc(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function vg(e,t){return e.map((n,r)=>e[(t+r)%e.length])}const _g=fg,yg=mg,oc="Radio",[xg,ac]=ge(oc),[wg,Eg]=xg(oc),Pg=a.forwardRef((e,t)=>{const{__scopeRadio:n,name:r,checked:o=!1,required:i,disabled:s,value:l="on",onCheck:d,...f}=e,[u,p]=a.useState(null),$=J(t,m=>p(m)),b=a.useRef(!1),h=u?Boolean(u.closest("form")):!0;return a.createElement(wg,{scope:n,checked:o,disabled:s},a.createElement(R.button,D({type:"button",role:"radio","aria-checked":o,"data-state":ic(o),"data-disabled":s?"":void 0,disabled:s,value:l},f,{ref:$,onClick:B(e.onClick,m=>{o||d==null||d(),h&&(b.current=m.isPropagationStopped(),b.current||m.stopPropagation())})})),h&&a.createElement(Sg,{control:u,bubbles:!b.current,name:r,value:l,checked:o,required:i,disabled:s,style:{transform:"translateX(-100%)"}}))}),Cg="RadioIndicator",Tg=a.forwardRef((e,t)=>{const{__scopeRadio:n,forceMount:r,...o}=e,i=Eg(Cg,n);return a.createElement(ye,{present:r||i.checked},a.createElement(R.span,D({"data-state":ic(i.checked),"data-disabled":i.disabled?"":void 0},o,{ref:t})))}),Sg=e=>{const{control:t,checked:n,bubbles:r=!0,...o}=e,i=a.useRef(null),s=vn(n),l=mn(t);return a.useEffect(()=>{const d=i.current,f=window.HTMLInputElement.prototype,p=Object.getOwnPropertyDescriptor(f,"checked").set;if(s!==n&&p){const $=new Event("click",{bubbles:r});p.call(d,n),d.dispatchEvent($)}},[s,n,r]),a.createElement("input",D({type:"radio","aria-hidden":!0,defaultChecked:n},o,{tabIndex:-1,ref:i,style:{...e.style,...l,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function ic(e){return e?"checked":"unchecked"}const kg=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],sc="RadioGroup",[Dg,Hh]=ge(sc,[nc,ac]),lc=nc(),cc=ac(),[Og,Ig]=Dg(sc),Ag=a.forwardRef((e,t)=>{const{__scopeRadioGroup:n,name:r,defaultValue:o,value:i,required:s=!1,disabled:l=!1,orientation:d,dir:f,loop:u=!0,onValueChange:p,...$}=e,b=lc(n),h=io(f),[m,v]=Pe({prop:i,defaultProp:o,onChange:p});return a.createElement(Og,{scope:n,name:r,required:s,disabled:l,value:m,onValueChange:v},a.createElement(_g,D({asChild:!0},b,{orientation:d,dir:h,loop:u}),a.createElement(R.div,D({role:"radiogroup","aria-required":s,"aria-orientation":d,"data-disabled":l?"":void 0,dir:h},$,{ref:t}))))}),Lg="RadioGroupItem",Mg=a.forwardRef((e,t)=>{const{__scopeRadioGroup:n,disabled:r,...o}=e,i=Ig(Lg,n),s=i.disabled||r,l=lc(n),d=cc(n),f=a.useRef(null),u=J(t,f),p=i.value===o.value,$=a.useRef(!1);return a.useEffect(()=>{const b=m=>{kg.includes(m.key)&&($.current=!0)},h=()=>$.current=!1;return document.addEventListener("keydown",b),document.addEventListener("keyup",h),()=>{document.removeEventListener("keydown",b),document.removeEventListener("keyup",h)}},[]),a.createElement(yg,D({asChild:!0},l,{focusable:!s,active:p}),a.createElement(Pg,D({disabled:s,required:i.required,checked:p},d,o,{name:i.name,ref:u,onCheck:()=>i.onValueChange(o.value),onKeyDown:B(b=>{b.key==="Enter"&&b.preventDefault()}),onFocus:B(o.onFocus,()=>{var b;$.current&&((b=f.current)===null||b===void 0||b.click())})})))}),Fg=a.forwardRef((e,t)=>{const{__scopeRadioGroup:n,...r}=e,o=cc(n);return a.createElement(Tg,D({},o,r,{ref:t}))}),Ng=Ag,zg=Mg,Bg=Fg,dc=k.default(zg)`
1143
+ `,dn=l.forwardRef((e,t)=>{const{children:r,...n}=e;return T(Jy,{variant:"inverse",emphasis:"high",ref:t,...n,children:r})});dn.displayName="PaginatorNumber";const Zy=A.default.nav`
1144
+ display: flex;
1145
+ gap: 4px;
1146
+ `;function Qy({nrOfPages:e,currentPage:t,onPrevious:r,onClick:n,onNext:o,ariaLabel:i="Pagination Navigation"}){const a=Array.from({length:e},(b,h)=>h),s=6;let c=a;const u=s-1;if(e>5){const b=e-1;t>e-u?c=[0,-1,...a.slice(-u)]:t+1<u?c=[...a.slice(0,u),-1,b]:c=[0,-1,...c.slice(t-1,t),t,...c.slice(t+1,t+2),-1,b]}const d=t===0,p=t===e-1;return ce(Zy,{"aria-label":i,children:[T(un,{direction:"left",label:"Previous",disabled:d,onClick:d?void 0:r}),c.map((b,h)=>b>-1?T(dn,{"aria-current":b===t,"aria-label":`Page ${b+1}`,onClick:()=>n(b),children:b+1},b):T(dn,{as:"span",children:"..."},`${b}-${h}`)),T(un,{direction:"right",label:"Next",title:"next",disabled:p,onClick:p?void 0:o})]})}const e_=l.createContext(void 0);function qo(e){const t=l.useContext(e_);return e||t||"ltr"}const Yo="rovingFocusGroup.onEntryFocus",t_={bubbles:!1,cancelable:!0},Xo="RovingFocusGroup",[Jo,Xu,r_]=Bo(Xo),[n_,Ju]=Se(Xo,[r_]),[o_,i_]=n_(Xo),a_=l.forwardRef((e,t)=>l.createElement(Jo.Provider,{scope:e.__scopeRovingFocusGroup},l.createElement(Jo.Slot,{scope:e.__scopeRovingFocusGroup},l.createElement(s_,C({},e,{ref:t}))))),s_=l.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:o=!1,dir:i,currentTabStopId:a,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:c,onEntryFocus:u,...d}=e,p=l.useRef(null),b=le(t,p),h=qo(i),[v=null,m]=Me({prop:a,defaultProp:s,onChange:c}),[y,$]=l.useState(!1),_=Ce(u),w=Xu(r),g=l.useRef(!1),[D,M]=l.useState(0);return l.useEffect(()=>{const O=p.current;if(O)return O.addEventListener(Yo,_),()=>O.removeEventListener(Yo,_)},[_]),l.createElement(o_,{scope:r,orientation:n,dir:h,loop:o,currentTabStopId:v,onItemFocus:l.useCallback(O=>m(O),[m]),onItemShiftTab:l.useCallback(()=>$(!0),[]),onFocusableItemAdd:l.useCallback(()=>M(O=>O+1),[]),onFocusableItemRemove:l.useCallback(()=>M(O=>O-1),[])},l.createElement(Q.div,C({tabIndex:y||D===0?-1:0,"data-orientation":n},d,{ref:b,style:{outline:"none",...e.style},onMouseDown:K(e.onMouseDown,()=>{g.current=!0}),onFocus:K(e.onFocus,O=>{const N=!g.current;if(O.target===O.currentTarget&&N&&!y){const F=new CustomEvent(Yo,t_);if(O.currentTarget.dispatchEvent(F),!F.defaultPrevented){const G=w().filter(re=>re.focusable),S=G.find(re=>re.active),Y=G.find(re=>re.id===v),P=[S,Y,...G].filter(Boolean).map(re=>re.ref.current);Zu(P)}}g.current=!1}),onBlur:K(e.onBlur,()=>$(!1))})))}),l_="RovingFocusGroupItem",c_=l.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:o=!1,...i}=e,a=Ke(),s=i_(l_,r),c=s.currentTabStopId===a,u=Xu(r),{onFocusableItemAdd:d,onFocusableItemRemove:p}=s;return l.useEffect(()=>{if(n)return d(),()=>p()},[n,d,p]),l.createElement(Jo.ItemSlot,{scope:r,id:a,focusable:n,active:o},l.createElement(Q.span,C({tabIndex:c?0:-1,"data-orientation":s.orientation},i,{ref:t,onMouseDown:K(e.onMouseDown,b=>{n?s.onItemFocus(a):b.preventDefault()}),onFocus:K(e.onFocus,()=>s.onItemFocus(a)),onKeyDown:K(e.onKeyDown,b=>{if(b.key==="Tab"&&b.shiftKey){s.onItemShiftTab();return}if(b.target!==b.currentTarget)return;const h=f_(b,s.orientation,s.dir);if(h!==void 0){b.preventDefault();let m=u().filter(y=>y.focusable).map(y=>y.ref.current);if(h==="last")m.reverse();else if(h==="prev"||h==="next"){h==="prev"&&m.reverse();const y=m.indexOf(b.currentTarget);m=s.loop?p_(m,y+1):m.slice(y+1)}setTimeout(()=>Zu(m))}})})))}),u_={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function d_(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function f_(e,t,r){const n=d_(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return u_[n]}function Zu(e){const t=document.activeElement;for(const r of e)if(r===t||(r.focus(),document.activeElement!==t))return}function p_(e,t){return e.map((r,n)=>e[(t+n)%e.length])}const h_=a_,b_=c_,Qu="Radio",[m_,ed]=Se(Qu),[v_,g_]=m_(Qu),y_=l.forwardRef((e,t)=>{const{__scopeRadio:r,name:n,checked:o=!1,required:i,disabled:a,value:s="on",onCheck:c,...u}=e,[d,p]=l.useState(null),b=le(t,m=>p(m)),h=l.useRef(!1),v=d?Boolean(d.closest("form")):!0;return l.createElement(v_,{scope:r,checked:o,disabled:a},l.createElement(Q.button,C({type:"button",role:"radio","aria-checked":o,"data-state":td(o),"data-disabled":a?"":void 0,disabled:a,value:s},u,{ref:b,onClick:K(e.onClick,m=>{o||c==null||c(),v&&(h.current=m.isPropagationStopped(),h.current||m.stopPropagation())})})),v&&l.createElement(x_,{control:d,bubbles:!h.current,name:n,value:s,checked:o,required:i,disabled:a,style:{transform:"translateX(-100%)"}}))}),__="RadioIndicator",$_=l.forwardRef((e,t)=>{const{__scopeRadio:r,forceMount:n,...o}=e,i=g_(__,r);return l.createElement(De,{present:n||i.checked},l.createElement(Q.span,C({"data-state":td(i.checked),"data-disabled":i.disabled?"":void 0},o,{ref:t})))}),x_=e=>{const{control:t,checked:r,bubbles:n=!0,...o}=e,i=l.useRef(null),a=Xr(r),s=Hr(t);return l.useEffect(()=>{const c=i.current,u=window.HTMLInputElement.prototype,p=Object.getOwnPropertyDescriptor(u,"checked").set;if(a!==r&&p){const b=new Event("click",{bubbles:n});p.call(c,r),c.dispatchEvent(b)}},[a,r,n]),l.createElement("input",C({type:"radio","aria-hidden":!0,defaultChecked:r},o,{tabIndex:-1,ref:i,style:{...e.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function td(e){return e?"checked":"unchecked"}const w_=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],rd="RadioGroup",[E_,kE]=Se(rd,[Ju,ed]),nd=Ju(),od=ed(),[P_,S_]=E_(rd),C_=l.forwardRef((e,t)=>{const{__scopeRadioGroup:r,name:n,defaultValue:o,value:i,required:a=!1,disabled:s=!1,orientation:c,dir:u,loop:d=!0,onValueChange:p,...b}=e,h=nd(r),v=qo(u),[m,y]=Me({prop:i,defaultProp:o,onChange:p});return l.createElement(P_,{scope:r,name:n,required:a,disabled:s,value:m,onValueChange:y},l.createElement(h_,C({asChild:!0},h,{orientation:c,dir:v,loop:d}),l.createElement(Q.div,C({role:"radiogroup","aria-required":a,"aria-orientation":c,"data-disabled":s?"":void 0,dir:v},b,{ref:t}))))}),T_="RadioGroupItem",O_=l.forwardRef((e,t)=>{const{__scopeRadioGroup:r,disabled:n,...o}=e,i=S_(T_,r),a=i.disabled||n,s=nd(r),c=od(r),u=l.useRef(null),d=le(t,u),p=i.value===o.value,b=l.useRef(!1);return l.useEffect(()=>{const h=m=>{w_.includes(m.key)&&(b.current=!0)},v=()=>b.current=!1;return document.addEventListener("keydown",h),document.addEventListener("keyup",v),()=>{document.removeEventListener("keydown",h),document.removeEventListener("keyup",v)}},[]),l.createElement(b_,C({asChild:!0},s,{focusable:!a,active:p}),l.createElement(y_,C({disabled:a,required:i.required,checked:p},c,o,{name:i.name,ref:d,onCheck:()=>i.onValueChange(o.value),onKeyDown:K(h=>{h.key==="Enter"&&h.preventDefault()}),onFocus:K(o.onFocus,()=>{var h;b.current&&((h=u.current)===null||h===void 0||h.click())})})))}),k_=l.forwardRef((e,t)=>{const{__scopeRadioGroup:r,...n}=e,o=od(r);return l.createElement($_,C({},o,n,{ref:t}))}),D_=C_,I_=O_,A_=k_,id=A.default(I_)`
1136
1147
  all: unset;
1137
- --radio-width: ${c.sizing_600};
1138
- --inner-circle-color: ${c.color_white};
1148
+ --radio-width: ${f.sizing_600};
1149
+ --inner-circle-color: ${f.color_white};
1139
1150
  display: grid;
1140
1151
  place-items: center;
1141
- color: ${c.color_outline_secondary_enabled};
1152
+ color: ${f.color_outline_secondary_enabled};
1142
1153
 
1143
- background-color: ${c.color_white};
1154
+ background-color: ${f.color_white};
1144
1155
  width: var(--radio-width);
1145
1156
  height: var(--radio-width);
1146
- border-radius: ${c.border_radius_circle};
1157
+ border-radius: ${f.border_radius_circle};
1147
1158
 
1148
- transition-property: ${c.transition_property_color};
1149
- transition-timing-function: linear; // ??
1150
- transition-duration: ${c.transition_duration_100};
1159
+ transition-property: ${f.transition_property_color};
1160
+ transition-duration: ${f.transition_duration_100};
1151
1161
  position: relative;
1152
1162
 
1153
1163
  &:hover {
1154
- --inner-circle-color: ${c.color_overlay_secondary_hover};
1155
- background-color: ${c.color_overlay_secondary_hover};
1156
- color: ${c.color_outline_secondary_hover};
1164
+ --inner-circle-color: ${f.color_overlay_secondary_hover};
1165
+ background-color: ${f.color_overlay_secondary_hover};
1166
+ color: ${f.color_outline_secondary_hover};
1157
1167
  }
1158
1168
 
1159
1169
  &:active {
1160
- --inner-circle-color: ${c.color_overlay_secondary_pressed};
1161
- background-color: ${c.color_overlay_secondary_pressed};
1162
- color: ${c.color_outline_secondary_pressed};
1170
+ --inner-circle-color: ${f.color_overlay_secondary_pressed};
1171
+ background-color: ${f.color_overlay_secondary_pressed};
1172
+ color: ${f.color_outline_secondary_pressed};
1163
1173
  }
1164
1174
 
1165
1175
  &::after {
@@ -1168,7 +1178,7 @@ Defaulting to \`${Qr}\`.`}function Wl(e){return hm.includes(e)}const _m=Rl;funct
1168
1178
  display: block;
1169
1179
  width: calc(var(--radio-width) / 2);
1170
1180
  height: calc(var(--radio-width) / 2);
1171
- border-radius: ${c.border_radius_circle};
1181
+ border-radius: ${f.border_radius_circle};
1172
1182
  border: 1px solid;
1173
1183
  box-sizing: border-box; // not sure
1174
1184
  }
@@ -1179,16 +1189,16 @@ Defaulting to \`${Qr}\`.`}function Wl(e){return hm.includes(e)}const _m=Rl;funct
1179
1189
  }
1180
1190
 
1181
1191
  &[data-disabled]::after {
1182
- border-color: ${c.color_fill_secondary_disabled};
1192
+ border-color: ${f.color_fill_secondary_disabled};
1183
1193
  }
1184
1194
 
1185
1195
  &[data-disabled],
1186
1196
  &:disabled {
1187
1197
  cursor: not-allowed;
1188
- --inner-circle-color: ${c.color_fill_primary_disabled};
1189
- color: ${c.color_fill_primary_disabled};
1198
+ --inner-circle-color: ${f.color_fill_primary_disabled};
1199
+ color: ${f.color_fill_primary_disabled};
1190
1200
  }
1191
- `,Vg=k.default(Bg)`
1201
+ `,N_=A.default(A_)`
1192
1202
  display: grid;
1193
1203
  place-items: center;
1194
1204
  width: 100%;
@@ -1201,12 +1211,12 @@ Defaulting to \`${Qr}\`.`}function Wl(e){return hm.includes(e)}const _m=Rl;funct
1201
1211
  display: block;
1202
1212
  width: 16px;
1203
1213
  height: 16px;
1204
- border-radius: ${c.border_radius_circle};
1205
- background-color: ${c.color_fill_primary_enabled};
1214
+ border-radius: ${f.border_radius_circle};
1215
+ background-color: ${f.color_fill_primary_enabled};
1206
1216
  }
1207
1217
 
1208
1218
  &[data-disabled]::before {
1209
- background-color: ${c.color_fill_secondary_disabled};
1219
+ background-color: ${f.color_fill_secondary_disabled};
1210
1220
  }
1211
1221
 
1212
1222
  /* Lighter inner circle */
@@ -1216,89 +1226,89 @@ Defaulting to \`${Qr}\`.`}function Wl(e){return hm.includes(e)}const _m=Rl;funct
1216
1226
  position: absolute;
1217
1227
  width: 5px;
1218
1228
  height: 5px;
1219
- border-radius: ${c.border_radius_circle};
1229
+ border-radius: ${f.border_radius_circle};
1220
1230
  background-color: var(--inner-circle-color);
1221
1231
  }
1222
- `;function Rg({children:e,disabled:t,...n}){const r=Ue(),o=t||r,i=Tn();return T(Ng,{...n,disabled:o,...i,children:e})}const Wg=dc,uc=Vg;function Hg({disabled:e,...t}){const n=Ue(),r=e||n,o=Tn();return T(dc,{...t,...o,disabled:r,children:T(uc,{})})}function fc(e,[t,n]){return Math.min(n,Math.max(t,e))}const Kg=[" ","Enter","ArrowUp","ArrowDown"],Ug=[" ","Enter"],In="Select",[An,uo,jg]=eo(In),[Nt,Kh]=ge(In,[jg]),[Gg,Et]=Nt(In),[Yg,qg]=Nt(In),Xg=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:i,value:s,defaultValue:l,onValueChange:d,dir:f,name:u,autoComplete:p,disabled:$,required:b}=e,[h,m]=a.useState(null),[v,y]=a.useState(null),[_,w]=a.useState(!1),g=io(f),[O=!1,L]=Pe({prop:r,defaultProp:o,onChange:i}),[C,A]=Pe({prop:s,defaultProp:l,onChange:d}),F=a.useRef(null),W=h?Boolean(h.closest("form")):!0,[P,V]=a.useState(new Set),S=Array.from(P).map(E=>E.props.value).join(";");return a.createElement(Gg,{required:b,scope:t,trigger:h,onTriggerChange:m,valueNode:v,onValueNodeChange:y,valueNodeHasChildren:_,onValueNodeHasChildrenChange:w,contentId:Le(),value:C,onValueChange:A,open:O,onOpenChange:L,dir:g,triggerPointerDownPosRef:F,disabled:$},a.createElement(An.Provider,{scope:t},a.createElement(Yg,{scope:e.__scopeSelect,onNativeOptionAdd:a.useCallback(E=>{V(U=>new Set(U).add(E))},[]),onNativeOptionRemove:a.useCallback(E=>{V(U=>{const Y=new Set(U);return Y.delete(E),Y})},[])},n)),W?a.createElement(gc,{key:S,"aria-hidden":!0,required:b,tabIndex:-1,name:u,autoComplete:p,value:C,onChange:E=>A(E.target.value),disabled:$},C===void 0?a.createElement("option",{value:""}):null,Array.from(P)):null)},Zg="SelectTrigger",Jg=a.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,i=Et(Zg,n),s=i.disabled||r,l=J(t,i.onTriggerChange),d=uo(n),[f,u,p]=$c(b=>{const h=d().filter(y=>!y.disabled),m=h.find(y=>y.value===i.value),v=hc(h,b,m);v!==void 0&&i.onValueChange(v.value)}),$=()=>{s||(i.onOpenChange(!0),p())};return a.createElement(R.button,D({type:"button",role:"combobox","aria-controls":i.contentId,"aria-expanded":i.open,"aria-required":i.required,"aria-autocomplete":"none",dir:i.dir,"data-state":i.open?"open":"closed",disabled:s,"data-disabled":s?"":void 0,"data-placeholder":i.value===void 0?"":void 0},o,{ref:l,onClick:B(o.onClick,b=>{b.currentTarget.focus()}),onPointerDown:B(o.onPointerDown,b=>{const h=b.target;h.hasPointerCapture(b.pointerId)&&h.releasePointerCapture(b.pointerId),b.button===0&&b.ctrlKey===!1&&($(),i.triggerPointerDownPosRef.current={x:Math.round(b.pageX),y:Math.round(b.pageY)},b.preventDefault())}),onKeyDown:B(o.onKeyDown,b=>{const h=f.current!=="";!(b.ctrlKey||b.altKey||b.metaKey)&&b.key.length===1&&u(b.key),!(h&&b.key===" ")&&Kg.includes(b.key)&&($(),b.preventDefault())})}))}),Qg="SelectValue",e$=a.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:i,placeholder:s,...l}=e,d=Et(Qg,n),{onValueNodeHasChildrenChange:f}=d,u=i!==void 0,p=J(t,d.onValueNodeChange);return pe(()=>{f(u)},[f,u]),a.createElement(R.span,D({},l,{ref:p,style:{pointerEvents:"none"}}),d.value===void 0&&s!==void 0?s:i)}),t$=a.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return a.createElement(R.span,D({"aria-hidden":!0},o,{ref:t}),r||"\u25BC")}),n$=e=>a.createElement(kt,D({asChild:!0},e)),fo="SelectContent",r$=a.forwardRef((e,t)=>{const n=Et(fo,e.__scopeSelect),[r,o]=a.useState();return pe(()=>{o(new DocumentFragment)},[]),a.createElement(a.Fragment,null,n.open?a.createElement(o$,D({},e,{ref:t})):r?Qe.createPortal(a.createElement(pc,{scope:e.__scopeSelect},a.createElement(An.Slot,{scope:e.__scopeSelect},a.createElement("div",null,e.children))),r):null)}),Ge=10,[pc,Pt]=Nt(fo),o$=a.forwardRef((e,t)=>{const{__scopeSelect:n,onCloseAutoFocus:r,...o}=e,i=Et(fo,n),[s,l]=a.useState(null),[d,f]=a.useState(null),[u,p]=a.useState(null),$=J(t,z=>f(z)),[b,h]=a.useState(null),[m,v]=a.useState(null),y=uo(n),[_,w]=a.useState(!1),g=a.useRef(!0),O=a.useRef(!1),L=a.useRef(!1);a.useEffect(()=>{if(d)return Qn(d)},[d]),Un();const[C,A]=a.useState();pe(()=>{d&&A(window.getComputedStyle(d).zIndex)},[d]);const F=a.useCallback(z=>{const[K,...Q]=y().map(ne=>ne.ref.current),[G]=Q.slice(-1),Z=document.activeElement;for(const ne of z)if(ne===Z||(ne==null||ne.scrollIntoView({block:"nearest"}),ne===K&&u&&(u.scrollTop=0),ne===G&&u&&(u.scrollTop=u.scrollHeight),ne==null||ne.focus(),document.activeElement!==Z))return},[y,u]),W=a.useCallback(()=>{if(i.trigger&&i.valueNode&&s&&d&&u&&b&&m){const z=i.trigger.getBoundingClientRect(),K=d.getBoundingClientRect(),Q=i.valueNode.getBoundingClientRect(),G=m.getBoundingClientRect();if(i.dir!=="rtl"){const Re=G.left-K.left,Oe=Q.left-Re,Ie=z.left-Oe,We=z.width+Ie,Bt=Math.max(We,K.width),Vt=window.innerWidth-Ge,Rt=fc(Oe,[Ge,Vt-Bt]);s.style.minWidth=We+"px",s.style.left=Rt+"px"}else{const Re=K.right-G.right,Oe=window.innerWidth-Q.right-Re,Ie=window.innerWidth-z.right-Oe,We=z.width+Ie,Bt=Math.max(We,K.width),Vt=window.innerWidth-Ge,Rt=fc(Oe,[Ge,Vt-Bt]);s.style.minWidth=We+"px",s.style.right=Rt+"px"}const Z=y(),ne=window.innerHeight-Ge*2,se=u.scrollHeight,ue=window.getComputedStyle(d),fe=parseInt(ue.borderTopWidth,10),Ve=parseInt(ue.paddingTop,10),Ye=parseInt(ue.borderBottomWidth,10),qe=parseInt(ue.paddingBottom,10),Xe=fe+Ve+se+qe+Ye,st=Math.min(b.offsetHeight*5,Xe),ke=window.getComputedStyle(u),_e=parseInt(ke.paddingTop,10),De=parseInt(ke.paddingBottom,10),le=z.top+z.height/2-Ge,ce=ne-le,we=b.offsetHeight/2,Ee=b.offsetTop+we,Ze=fe+Ve+Ee,Ct=Xe-Ze;if(Ze<=le){const Re=b===Z[Z.length-1].ref.current;s.style.bottom="0px";const Oe=d.clientHeight-u.offsetTop-u.offsetHeight,Ie=Math.max(ce,we+(Re?De:0)+Oe+Ye),We=Ze+Ie;s.style.height=We+"px"}else{const Re=b===Z[0].ref.current;s.style.top="0px";const Ie=Math.max(le,fe+u.offsetTop+(Re?_e:0)+we)+Ct;s.style.height=Ie+"px",u.scrollTop=Ze-le+u.offsetTop}s.style.margin=`${Ge}px 0`,s.style.minHeight=st+"px",s.style.maxHeight=ne+"px",w(!0),requestAnimationFrame(()=>O.current=!0)}},[y,i.trigger,i.valueNode,s,d,u,b,m,i.dir]);pe(()=>W(),[W]);const P=a.useCallback(()=>F([b,d]),[F,b,d]);a.useEffect(()=>{_&&P()},[_,P]);const V=a.useCallback(z=>{z&&g.current===!0&&(W(),P(),g.current=!1)},[W,P]),{onOpenChange:S,triggerPointerDownPosRef:E}=i;a.useEffect(()=>{if(d){let z={x:0,y:0};const K=G=>{var Z,ne,se,ue;z={x:Math.abs(Math.round(G.pageX)-((Z=(ne=E.current)===null||ne===void 0?void 0:ne.x)!==null&&Z!==void 0?Z:0)),y:Math.abs(Math.round(G.pageY)-((se=(ue=E.current)===null||ue===void 0?void 0:ue.y)!==null&&se!==void 0?se:0))}},Q=G=>{z.x<=10&&z.y<=10?G.preventDefault():d.contains(G.target)||S(!1),document.removeEventListener("pointermove",K),E.current=null};return E.current!==null&&(document.addEventListener("pointermove",K),document.addEventListener("pointerup",Q,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",K),document.removeEventListener("pointerup",Q,{capture:!0})}}},[d,S,E]),a.useEffect(()=>{const z=()=>S(!1);return window.addEventListener("blur",z),window.addEventListener("resize",z),()=>{window.removeEventListener("blur",z),window.removeEventListener("resize",z)}},[S]);const[U,Y]=$c(z=>{const K=y().filter(Z=>!Z.disabled),Q=K.find(Z=>Z.ref.current===document.activeElement),G=hc(K,z,Q);G&&setTimeout(()=>G.ref.current.focus())}),ae=a.useCallback((z,K,Q)=>{const G=!L.current&&!Q;(i.value!==void 0&&i.value===K||G)&&(h(z),G&&(L.current=!0))},[i.value]),ie=a.useCallback(()=>d==null?void 0:d.focus(),[d]),H=a.useCallback((z,K,Q)=>{const G=!L.current&&!Q;(i.value!==void 0&&i.value===K||G)&&v(z)},[i.value]);return a.createElement(pc,{scope:n,contentWrapper:s,content:d,viewport:u,onViewportChange:p,itemRefCallback:ae,selectedItem:b,onItemLeave:ie,itemTextRefCallback:H,selectedItemText:m,onScrollButtonChange:V,isPositioned:_,shouldExpandOnScrollRef:O,searchRef:U},a.createElement(Zn,{as:et,allowPinchZoom:!0},a.createElement("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:C}},a.createElement(Hn,{asChild:!0,trapped:i.open,onMountAutoFocus:z=>{z.preventDefault()},onUnmountAutoFocus:B(r,z=>{var K;(K=i.trigger)===null||K===void 0||K.focus({preventScroll:!0}),z.preventDefault()})},a.createElement(St,D({role:"listbox",id:i.contentId,"data-state":i.open?"open":"closed",dir:i.dir,onContextMenu:z=>z.preventDefault()},o,{ref:$,style:{display:"flex",flexDirection:"column",boxSizing:"border-box",maxHeight:"100%",outline:"none",...o.style},disableOutsidePointerEvents:!0,onFocusOutside:z=>z.preventDefault(),onDismiss:()=>i.onOpenChange(!1),onKeyDown:B(o.onKeyDown,z=>{const K=z.ctrlKey||z.altKey||z.metaKey;if(z.key==="Tab"&&z.preventDefault(),!K&&z.key.length===1&&Y(z.key),["ArrowUp","ArrowDown","Home","End"].includes(z.key)){let G=y().filter(Z=>!Z.disabled).map(Z=>Z.ref.current);if(["ArrowUp","End"].includes(z.key)&&(G=G.slice().reverse()),["ArrowUp","ArrowDown"].includes(z.key)){const Z=z.target,ne=G.indexOf(Z);G=G.slice(ne+1)}setTimeout(()=>F(G)),z.preventDefault()}})}))))))}),a$="SelectViewport",i$=a.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Pt(a$,n),i=J(t,o.onViewportChange),s=a.useRef(0);return a.createElement(a.Fragment,null,a.createElement("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"}}),a.createElement(An.Slot,{scope:n},a.createElement(R.div,D({"data-radix-select-viewport":"",role:"presentation"},r,{ref:i,style:{position:"relative",flex:1,overflow:"auto",...r.style},onScroll:B(r.onScroll,l=>{const d=l.currentTarget,{contentWrapper:f,shouldExpandOnScrollRef:u}=o;if(u!=null&&u.current&&f){const p=Math.abs(s.current-d.scrollTop);if(p>0){const $=window.innerHeight-Ge*2,b=parseFloat(f.style.minHeight),h=parseFloat(f.style.height),m=Math.max(b,h);if(m<$){const v=m+p,y=Math.min($,v),_=v-y;f.style.height=y+"px",f.style.bottom==="0px"&&(d.scrollTop=_>0?_:0,f.style.justifyContent="flex-end")}}}s.current=d.scrollTop})}))))}),s$="SelectGroup",[l$,c$]=Nt(s$),d$=a.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Le();return a.createElement(l$,{scope:n,id:o},a.createElement(R.div,D({role:"group","aria-labelledby":o},r,{ref:t})))}),u$="SelectLabel",f$=a.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=c$(u$,n);return a.createElement(R.div,D({id:o.id},r,{ref:t}))}),po="SelectItem",[p$,bc]=Nt(po),b$=a.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:i,...s}=e,l=Et(po,n),d=Pt(po,n),f=l.value===r,[u,p]=a.useState(i!=null?i:""),[$,b]=a.useState(!1),h=J(t,y=>{var _;return(_=d.itemRefCallback)===null||_===void 0?void 0:_.call(d,y,r,o)}),m=Le(),v=()=>{o||(l.onValueChange(r),l.onOpenChange(!1))};return a.createElement(p$,{scope:n,value:r,disabled:o,textId:m,isSelected:f,onItemTextChange:a.useCallback(y=>{p(_=>{var w;return _||((w=y==null?void 0:y.textContent)!==null&&w!==void 0?w:"").trim()})},[])},a.createElement(An.ItemSlot,{scope:n,value:r,disabled:o,textValue:u},a.createElement(R.div,D({role:"option","aria-labelledby":m,"data-highlighted":$?"":void 0,"aria-selected":f&&$,"data-state":f?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1},s,{ref:h,onFocus:B(s.onFocus,()=>b(!0)),onBlur:B(s.onBlur,()=>b(!1)),onPointerUp:B(s.onPointerUp,v),onPointerMove:B(s.onPointerMove,y=>{if(o){var _;(_=d.onItemLeave)===null||_===void 0||_.call(d)}else y.currentTarget.focus({preventScroll:!0})}),onPointerLeave:B(s.onPointerLeave,y=>{if(y.currentTarget===document.activeElement){var _;(_=d.onItemLeave)===null||_===void 0||_.call(d)}}),onKeyDown:B(s.onKeyDown,y=>{var _;((_=d.searchRef)===null||_===void 0?void 0:_.current)!==""&&y.key===" "||(Ug.includes(y.key)&&v(),y.key===" "&&y.preventDefault())})}))))}),Ln="SelectItemText",m$=a.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...i}=e,s=Et(Ln,n),l=Pt(Ln,n),d=bc(Ln,n),f=qg(Ln,n),[u,p]=a.useState(null),$=J(t,y=>p(y),d.onItemTextChange,y=>{var _;return(_=l.itemTextRefCallback)===null||_===void 0?void 0:_.call(l,y,d.value,d.disabled)}),b=u==null?void 0:u.textContent,h=a.useMemo(()=>a.createElement("option",{key:d.value,value:d.value,disabled:d.disabled},b),[d.disabled,d.value,b]),{onNativeOptionAdd:m,onNativeOptionRemove:v}=f;return pe(()=>(m(h),()=>v(h)),[m,v,h]),a.createElement(a.Fragment,null,a.createElement(R.span,D({id:d.textId},i,{ref:$})),d.isSelected&&s.valueNode&&!s.valueNodeHasChildren?Qe.createPortal(i.children,s.valueNode):null)}),g$="SelectItemIndicator",$$=a.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return bc(g$,n).isSelected?a.createElement(R.span,D({"aria-hidden":!0},r,{ref:t})):null}),h$="SelectScrollUpButton",v$=a.forwardRef((e,t)=>{const n=Pt(h$,e.__scopeSelect),[r,o]=a.useState(!1),i=J(t,n.onScrollButtonChange);return pe(()=>{if(n.viewport&&n.isPositioned){let l=function(){const d=s.scrollTop>0;o(d)};const s=n.viewport;return l(),s.addEventListener("scroll",l),()=>s.removeEventListener("scroll",l)}},[n.viewport,n.isPositioned]),r?a.createElement(mc,D({},e,{ref:i,onAutoScroll:()=>{const{viewport:s,selectedItem:l}=n;s&&l&&(s.scrollTop=s.scrollTop-l.offsetHeight)}})):null}),_$="SelectScrollDownButton",y$=a.forwardRef((e,t)=>{const n=Pt(_$,e.__scopeSelect),[r,o]=a.useState(!1),i=J(t,n.onScrollButtonChange);return pe(()=>{if(n.viewport&&n.isPositioned){let l=function(){const d=s.scrollHeight-s.clientHeight,f=Math.ceil(s.scrollTop)<d;o(f)};const s=n.viewport;return l(),s.addEventListener("scroll",l),()=>s.removeEventListener("scroll",l)}},[n.viewport,n.isPositioned]),r?a.createElement(mc,D({},e,{ref:i,onAutoScroll:()=>{const{viewport:s,selectedItem:l}=n;s&&l&&(s.scrollTop=s.scrollTop+l.offsetHeight)}})):null}),mc=a.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,i=Pt("SelectScrollButton",n),s=a.useRef(null),l=uo(n),d=a.useCallback(()=>{s.current!==null&&(window.clearInterval(s.current),s.current=null)},[]);return a.useEffect(()=>()=>d(),[d]),pe(()=>{var f;const u=l().find(p=>p.ref.current===document.activeElement);u==null||(f=u.ref.current)===null||f===void 0||f.scrollIntoView({block:"nearest"})},[l]),a.createElement(R.div,D({"aria-hidden":!0},o,{ref:t,style:{flexShrink:0,...o.style},onPointerMove:B(o.onPointerMove,()=>{var f;(f=i.onItemLeave)===null||f===void 0||f.call(i),s.current===null&&(s.current=window.setInterval(r,50))}),onPointerLeave:B(o.onPointerLeave,()=>{d()})}))}),x$=a.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return a.createElement(R.div,D({"aria-hidden":!0},r,{ref:t}))}),gc=a.forwardRef((e,t)=>{const{value:n,...r}=e,o=a.useRef(null),i=J(t,o),s=vn(n);return a.useEffect(()=>{const l=o.current,d=window.HTMLSelectElement.prototype,u=Object.getOwnPropertyDescriptor(d,"value").set;if(s!==n&&u){const p=new Event("change",{bubbles:!0});u.call(l,n),l.dispatchEvent(p)}},[s,n]),a.createElement(Zt,{asChild:!0},a.createElement("select",D({},r,{ref:i,defaultValue:n})))});gc.displayName="BubbleSelect";function $c(e){const t=$e(e),n=a.useRef(""),r=a.useRef(0),o=a.useCallback(s=>{const l=n.current+s;t(l),function d(f){n.current=f,window.clearTimeout(r.current),f!==""&&(r.current=window.setTimeout(()=>d(""),1e3))}(l)},[t]),i=a.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return a.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,i]}function hc(e,t,n){const o=t.length>1&&Array.from(t).every(f=>f===t[0])?t[0]:t,i=n?e.indexOf(n):-1;let s=w$(e,Math.max(i,0));o.length===1&&(s=s.filter(f=>f!==n));const d=s.find(f=>f.textValue.toLowerCase().startsWith(o.toLowerCase()));return d!==n?d:void 0}function w$(e,t){return e.map((n,r)=>e[(t+r)%e.length])}const E$=Xg,P$=e$,C$=n$,T$=r$,S$=i$,k$=d$,D$=f$,O$=b$,I$=m$,A$=$$,L$=v$,M$=y$,F$=x$,vc=k.default(Jg)`
1232
+ `;function M_({children:e,disabled:t,...r}){const n=tt(),o=t||n,i=on();return T(D_,{...r,disabled:o,...i,children:e})}const L_=id,ad=N_;function F_({disabled:e,...t}){const r=tt(),n=e||r,o=on();return T(id,{...t,...o,disabled:n,children:T(ad,{})})}function sd(e,[t,r]){return Math.min(r,Math.max(t,e))}const R_=[" ","Enter","ArrowUp","ArrowDown"],z_=[" ","Enter"],fn="Select",[pn,Zo,V_]=Bo(fn),[nr,DE]=Se(fn,[V_]),[j_,Lt]=nr(fn),[B_,W_]=nr(fn),U_=e=>{const{__scopeSelect:t,children:r,open:n,defaultOpen:o,onOpenChange:i,value:a,defaultValue:s,onValueChange:c,dir:u,name:d,autoComplete:p,disabled:b,required:h}=e,[v,m]=l.useState(null),[y,$]=l.useState(null),[_,w]=l.useState(!1),g=qo(u),[D=!1,M]=Me({prop:n,defaultProp:o,onChange:i}),[O,N]=Me({prop:a,defaultProp:s,onChange:c}),F=l.useRef(null),G=v?Boolean(v.closest("form")):!0,[S,Y]=l.useState(new Set),I=Array.from(S).map(P=>P.props.value).join(";");return l.createElement(j_,{required:h,scope:t,trigger:v,onTriggerChange:m,valueNode:y,onValueNodeChange:$,valueNodeHasChildren:_,onValueNodeHasChildrenChange:w,contentId:Ke(),value:O,onValueChange:N,open:D,onOpenChange:M,dir:g,triggerPointerDownPosRef:F,disabled:b},l.createElement(pn.Provider,{scope:t},l.createElement(B_,{scope:e.__scopeSelect,onNativeOptionAdd:l.useCallback(P=>{Y(re=>new Set(re).add(P))},[]),onNativeOptionRemove:l.useCallback(P=>{Y(re=>{const Z=new Set(re);return Z.delete(P),Z})},[])},r)),G?l.createElement(dd,{key:I,"aria-hidden":!0,required:h,tabIndex:-1,name:d,autoComplete:p,value:O,onChange:P=>N(P.target.value),disabled:b},O===void 0?l.createElement("option",{value:""}):null,Array.from(S)):null)},K_="SelectTrigger",H_=l.forwardRef((e,t)=>{const{__scopeSelect:r,disabled:n=!1,...o}=e,i=Lt(K_,r),a=i.disabled||n,s=le(t,i.onTriggerChange),c=Zo(r),[u,d,p]=fd(h=>{const v=c().filter($=>!$.disabled),m=v.find($=>$.value===i.value),y=pd(v,h,m);y!==void 0&&i.onValueChange(y.value)}),b=()=>{a||(i.onOpenChange(!0),p())};return l.createElement(Q.button,C({type:"button",role:"combobox","aria-controls":i.contentId,"aria-expanded":i.open,"aria-required":i.required,"aria-autocomplete":"none",dir:i.dir,"data-state":i.open?"open":"closed",disabled:a,"data-disabled":a?"":void 0,"data-placeholder":i.value===void 0?"":void 0},o,{ref:s,onClick:K(o.onClick,h=>{h.currentTarget.focus()}),onPointerDown:K(o.onPointerDown,h=>{const v=h.target;v.hasPointerCapture(h.pointerId)&&v.releasePointerCapture(h.pointerId),h.button===0&&h.ctrlKey===!1&&(b(),i.triggerPointerDownPosRef.current={x:Math.round(h.pageX),y:Math.round(h.pageY)},h.preventDefault())}),onKeyDown:K(o.onKeyDown,h=>{const v=u.current!=="";!(h.ctrlKey||h.altKey||h.metaKey)&&h.key.length===1&&d(h.key),!(v&&h.key===" ")&&R_.includes(h.key)&&(b(),h.preventDefault())})}))}),G_="SelectValue",q_=l.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:o,children:i,placeholder:a,...s}=e,c=Lt(G_,r),{onValueNodeHasChildrenChange:u}=c,d=i!==void 0,p=le(t,c.onValueNodeChange);return $e(()=>{u(d)},[u,d]),l.createElement(Q.span,C({},s,{ref:p,style:{pointerEvents:"none"}}),c.value===void 0&&a!==void 0?a:i)}),Y_=l.forwardRef((e,t)=>{const{__scopeSelect:r,children:n,...o}=e;return l.createElement(Q.span,C({"aria-hidden":!0},o,{ref:t}),n||"\u25BC")}),X_=e=>l.createElement(Gt,C({asChild:!0},e)),Qo="SelectContent",J_=l.forwardRef((e,t)=>{const r=Lt(Qo,e.__scopeSelect),[n,o]=l.useState();return $e(()=>{o(new DocumentFragment)},[]),l.createElement(l.Fragment,null,r.open?l.createElement(Z_,C({},e,{ref:t})):n?ut.createPortal(l.createElement(ld,{scope:e.__scopeSelect},l.createElement(pn.Slot,{scope:e.__scopeSelect},l.createElement("div",null,e.children))),n):null)}),nt=10,[ld,Ft]=nr(Qo),Z_=l.forwardRef((e,t)=>{const{__scopeSelect:r,onCloseAutoFocus:n,...o}=e,i=Lt(Qo,r),[a,s]=l.useState(null),[c,u]=l.useState(null),[d,p]=l.useState(null),b=le(t,E=>u(E)),[h,v]=l.useState(null),[m,y]=l.useState(null),$=Zo(r),[_,w]=l.useState(!1),g=l.useRef(!0),D=l.useRef(!1),M=l.useRef(!1);l.useEffect(()=>{if(c)return jn(c)},[c]),An();const[O,N]=l.useState();$e(()=>{c&&N(window.getComputedStyle(c).zIndex)},[c]);const F=l.useCallback(E=>{const[L,...B]=$().map(U=>U.ref.current),[j]=B.slice(-1),V=document.activeElement;for(const U of E)if(U===V||(U==null||U.scrollIntoView({block:"nearest"}),U===L&&d&&(d.scrollTop=0),U===j&&d&&(d.scrollTop=d.scrollHeight),U==null||U.focus(),document.activeElement!==V))return},[$,d]),G=l.useCallback(()=>{if(i.trigger&&i.valueNode&&a&&c&&d&&h&&m){const E=i.trigger.getBoundingClientRect(),L=c.getBoundingClientRect(),B=i.valueNode.getBoundingClientRect(),j=m.getBoundingClientRect();if(i.dir!=="rtl"){const Je=j.left-L.left,Be=B.left-Je,We=E.left-Be,Ze=E.width+We,br=Math.max(Ze,L.width),mr=window.innerWidth-nt,vr=sd(Be,[nt,mr-br]);a.style.minWidth=Ze+"px",a.style.left=vr+"px"}else{const Je=L.right-j.right,Be=window.innerWidth-B.right-Je,We=window.innerWidth-E.right-Be,Ze=E.width+We,br=Math.max(Ze,L.width),mr=window.innerWidth-nt,vr=sd(Be,[nt,mr-br]);a.style.minWidth=Ze+"px",a.style.right=vr+"px"}const V=$(),U=window.innerHeight-nt*2,q=d.scrollHeight,X=window.getComputedStyle(c),J=parseInt(X.borderTopWidth,10),oe=parseInt(X.paddingTop,10),ne=parseInt(X.borderBottomWidth,10),ge=parseInt(X.paddingBottom,10),me=J+oe+q+ge+ne,Ee=Math.min(h.offsetHeight*5,me),Ve=window.getComputedStyle(d),ke=parseInt(Ve.paddingTop,10),je=parseInt(Ve.paddingBottom,10),ye=E.top+E.height/2-nt,_e=U-ye,Ae=h.offsetHeight/2,Ne=h.offsetTop+Ae,lt=J+oe+Ne,Ut=me-lt;if(lt<=ye){const Je=h===V[V.length-1].ref.current;a.style.bottom="0px";const Be=c.clientHeight-d.offsetTop-d.offsetHeight,We=Math.max(_e,Ae+(Je?je:0)+Be+ne),Ze=lt+We;a.style.height=Ze+"px"}else{const Je=h===V[0].ref.current;a.style.top="0px";const We=Math.max(ye,J+d.offsetTop+(Je?ke:0)+Ae)+Ut;a.style.height=We+"px",d.scrollTop=lt-ye+d.offsetTop}a.style.margin=`${nt}px 0`,a.style.minHeight=Ee+"px",a.style.maxHeight=U+"px",w(!0),requestAnimationFrame(()=>D.current=!0)}},[$,i.trigger,i.valueNode,a,c,d,h,m,i.dir]);$e(()=>G(),[G]);const S=l.useCallback(()=>F([h,c]),[F,h,c]);l.useEffect(()=>{_&&S()},[_,S]);const Y=l.useCallback(E=>{E&&g.current===!0&&(G(),S(),g.current=!1)},[G,S]),{onOpenChange:I,triggerPointerDownPosRef:P}=i;l.useEffect(()=>{if(c){let E={x:0,y:0};const L=j=>{var V,U,q,X;E={x:Math.abs(Math.round(j.pageX)-((V=(U=P.current)===null||U===void 0?void 0:U.x)!==null&&V!==void 0?V:0)),y:Math.abs(Math.round(j.pageY)-((q=(X=P.current)===null||X===void 0?void 0:X.y)!==null&&q!==void 0?q:0))}},B=j=>{E.x<=10&&E.y<=10?j.preventDefault():c.contains(j.target)||I(!1),document.removeEventListener("pointermove",L),P.current=null};return P.current!==null&&(document.addEventListener("pointermove",L),document.addEventListener("pointerup",B,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",L),document.removeEventListener("pointerup",B,{capture:!0})}}},[c,I,P]),l.useEffect(()=>{const E=()=>I(!1);return window.addEventListener("blur",E),window.addEventListener("resize",E),()=>{window.removeEventListener("blur",E),window.removeEventListener("resize",E)}},[I]);const[re,Z]=fd(E=>{const L=$().filter(V=>!V.disabled),B=L.find(V=>V.ref.current===document.activeElement),j=pd(L,E,B);j&&setTimeout(()=>j.ref.current.focus())}),fe=l.useCallback((E,L,B)=>{const j=!M.current&&!B;(i.value!==void 0&&i.value===L||j)&&(v(E),j&&(M.current=!0))},[i.value]),ve=l.useCallback(()=>c==null?void 0:c.focus(),[c]),ee=l.useCallback((E,L,B)=>{const j=!M.current&&!B;(i.value!==void 0&&i.value===L||j)&&y(E)},[i.value]);return l.createElement(ld,{scope:r,contentWrapper:a,content:c,viewport:d,onViewportChange:p,itemRefCallback:fe,selectedItem:h,onItemLeave:ve,itemTextRefCallback:ee,selectedItemText:m,onScrollButtonChange:Y,isPositioned:_,shouldExpandOnScrollRef:D,searchRef:re},l.createElement(zn,{as:dt,allowPinchZoom:!0},l.createElement("div",{ref:s,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:O}},l.createElement(Dn,{asChild:!0,trapped:i.open,onMountAutoFocus:E=>{E.preventDefault()},onUnmountAutoFocus:K(n,E=>{var L;(L=i.trigger)===null||L===void 0||L.focus({preventScroll:!0}),E.preventDefault()})},l.createElement(Ht,C({role:"listbox",id:i.contentId,"data-state":i.open?"open":"closed",dir:i.dir,onContextMenu:E=>E.preventDefault()},o,{ref:b,style:{display:"flex",flexDirection:"column",boxSizing:"border-box",maxHeight:"100%",outline:"none",...o.style},disableOutsidePointerEvents:!0,onFocusOutside:E=>E.preventDefault(),onDismiss:()=>i.onOpenChange(!1),onKeyDown:K(o.onKeyDown,E=>{const L=E.ctrlKey||E.altKey||E.metaKey;if(E.key==="Tab"&&E.preventDefault(),!L&&E.key.length===1&&Z(E.key),["ArrowUp","ArrowDown","Home","End"].includes(E.key)){let j=$().filter(V=>!V.disabled).map(V=>V.ref.current);if(["ArrowUp","End"].includes(E.key)&&(j=j.slice().reverse()),["ArrowUp","ArrowDown"].includes(E.key)){const V=E.target,U=j.indexOf(V);j=j.slice(U+1)}setTimeout(()=>F(j)),E.preventDefault()}})}))))))}),Q_="SelectViewport",e$=l.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,o=Ft(Q_,r),i=le(t,o.onViewportChange),a=l.useRef(0);return l.createElement(l.Fragment,null,l.createElement("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"}}),l.createElement(pn.Slot,{scope:r},l.createElement(Q.div,C({"data-radix-select-viewport":"",role:"presentation"},n,{ref:i,style:{position:"relative",flex:1,overflow:"auto",...n.style},onScroll:K(n.onScroll,s=>{const c=s.currentTarget,{contentWrapper:u,shouldExpandOnScrollRef:d}=o;if(d!=null&&d.current&&u){const p=Math.abs(a.current-c.scrollTop);if(p>0){const b=window.innerHeight-nt*2,h=parseFloat(u.style.minHeight),v=parseFloat(u.style.height),m=Math.max(h,v);if(m<b){const y=m+p,$=Math.min(b,y),_=y-$;u.style.height=$+"px",u.style.bottom==="0px"&&(c.scrollTop=_>0?_:0,u.style.justifyContent="flex-end")}}}a.current=c.scrollTop})}))))}),t$="SelectGroup",[r$,n$]=nr(t$),o$=l.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,o=Ke();return l.createElement(r$,{scope:r,id:o},l.createElement(Q.div,C({role:"group","aria-labelledby":o},n,{ref:t})))}),i$="SelectLabel",a$=l.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,o=n$(i$,r);return l.createElement(Q.div,C({id:o.id},n,{ref:t}))}),ei="SelectItem",[s$,cd]=nr(ei),l$=l.forwardRef((e,t)=>{const{__scopeSelect:r,value:n,disabled:o=!1,textValue:i,...a}=e,s=Lt(ei,r),c=Ft(ei,r),u=s.value===n,[d,p]=l.useState(i!=null?i:""),[b,h]=l.useState(!1),v=le(t,$=>{var _;return(_=c.itemRefCallback)===null||_===void 0?void 0:_.call(c,$,n,o)}),m=Ke(),y=()=>{o||(s.onValueChange(n),s.onOpenChange(!1))};return l.createElement(s$,{scope:r,value:n,disabled:o,textId:m,isSelected:u,onItemTextChange:l.useCallback($=>{p(_=>{var w;return _||((w=$==null?void 0:$.textContent)!==null&&w!==void 0?w:"").trim()})},[])},l.createElement(pn.ItemSlot,{scope:r,value:n,disabled:o,textValue:d},l.createElement(Q.div,C({role:"option","aria-labelledby":m,"data-highlighted":b?"":void 0,"aria-selected":u&&b,"data-state":u?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1},a,{ref:v,onFocus:K(a.onFocus,()=>h(!0)),onBlur:K(a.onBlur,()=>h(!1)),onPointerUp:K(a.onPointerUp,y),onPointerMove:K(a.onPointerMove,$=>{if(o){var _;(_=c.onItemLeave)===null||_===void 0||_.call(c)}else $.currentTarget.focus({preventScroll:!0})}),onPointerLeave:K(a.onPointerLeave,$=>{if($.currentTarget===document.activeElement){var _;(_=c.onItemLeave)===null||_===void 0||_.call(c)}}),onKeyDown:K(a.onKeyDown,$=>{var _;((_=c.searchRef)===null||_===void 0?void 0:_.current)!==""&&$.key===" "||(z_.includes($.key)&&y(),$.key===" "&&$.preventDefault())})}))))}),hn="SelectItemText",c$=l.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:o,...i}=e,a=Lt(hn,r),s=Ft(hn,r),c=cd(hn,r),u=W_(hn,r),[d,p]=l.useState(null),b=le(t,$=>p($),c.onItemTextChange,$=>{var _;return(_=s.itemTextRefCallback)===null||_===void 0?void 0:_.call(s,$,c.value,c.disabled)}),h=d==null?void 0:d.textContent,v=l.useMemo(()=>l.createElement("option",{key:c.value,value:c.value,disabled:c.disabled},h),[c.disabled,c.value,h]),{onNativeOptionAdd:m,onNativeOptionRemove:y}=u;return $e(()=>(m(v),()=>y(v)),[m,y,v]),l.createElement(l.Fragment,null,l.createElement(Q.span,C({id:c.textId},i,{ref:b})),c.isSelected&&a.valueNode&&!a.valueNodeHasChildren?ut.createPortal(i.children,a.valueNode):null)}),u$="SelectItemIndicator",d$=l.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return cd(u$,r).isSelected?l.createElement(Q.span,C({"aria-hidden":!0},n,{ref:t})):null}),f$="SelectScrollUpButton",p$=l.forwardRef((e,t)=>{const r=Ft(f$,e.__scopeSelect),[n,o]=l.useState(!1),i=le(t,r.onScrollButtonChange);return $e(()=>{if(r.viewport&&r.isPositioned){let s=function(){const c=a.scrollTop>0;o(c)};const a=r.viewport;return s(),a.addEventListener("scroll",s),()=>a.removeEventListener("scroll",s)}},[r.viewport,r.isPositioned]),n?l.createElement(ud,C({},e,{ref:i,onAutoScroll:()=>{const{viewport:a,selectedItem:s}=r;a&&s&&(a.scrollTop=a.scrollTop-s.offsetHeight)}})):null}),h$="SelectScrollDownButton",b$=l.forwardRef((e,t)=>{const r=Ft(h$,e.__scopeSelect),[n,o]=l.useState(!1),i=le(t,r.onScrollButtonChange);return $e(()=>{if(r.viewport&&r.isPositioned){let s=function(){const c=a.scrollHeight-a.clientHeight,u=Math.ceil(a.scrollTop)<c;o(u)};const a=r.viewport;return s(),a.addEventListener("scroll",s),()=>a.removeEventListener("scroll",s)}},[r.viewport,r.isPositioned]),n?l.createElement(ud,C({},e,{ref:i,onAutoScroll:()=>{const{viewport:a,selectedItem:s}=r;a&&s&&(a.scrollTop=a.scrollTop+s.offsetHeight)}})):null}),ud=l.forwardRef((e,t)=>{const{__scopeSelect:r,onAutoScroll:n,...o}=e,i=Ft("SelectScrollButton",r),a=l.useRef(null),s=Zo(r),c=l.useCallback(()=>{a.current!==null&&(window.clearInterval(a.current),a.current=null)},[]);return l.useEffect(()=>()=>c(),[c]),$e(()=>{var u;const d=s().find(p=>p.ref.current===document.activeElement);d==null||(u=d.ref.current)===null||u===void 0||u.scrollIntoView({block:"nearest"})},[s]),l.createElement(Q.div,C({"aria-hidden":!0},o,{ref:t,style:{flexShrink:0,...o.style},onPointerMove:K(o.onPointerMove,()=>{var u;(u=i.onItemLeave)===null||u===void 0||u.call(i),a.current===null&&(a.current=window.setInterval(n,50))}),onPointerLeave:K(o.onPointerLeave,()=>{c()})}))}),m$=l.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return l.createElement(Q.div,C({"aria-hidden":!0},n,{ref:t}))}),dd=l.forwardRef((e,t)=>{const{value:r,...n}=e,o=l.useRef(null),i=le(t,o),a=Xr(r);return l.useEffect(()=>{const s=o.current,c=window.HTMLSelectElement.prototype,d=Object.getOwnPropertyDescriptor(c,"value").set;if(a!==r&&d){const p=new Event("change",{bubbles:!0});d.call(s,r),s.dispatchEvent(p)}},[a,r]),l.createElement(Or,{asChild:!0},l.createElement("select",C({},n,{ref:i,defaultValue:r})))});dd.displayName="BubbleSelect";function fd(e){const t=Ce(e),r=l.useRef(""),n=l.useRef(0),o=l.useCallback(a=>{const s=r.current+a;t(s),function c(u){r.current=u,window.clearTimeout(n.current),u!==""&&(n.current=window.setTimeout(()=>c(""),1e3))}(s)},[t]),i=l.useCallback(()=>{r.current="",window.clearTimeout(n.current)},[]);return l.useEffect(()=>()=>window.clearTimeout(n.current),[]),[r,o,i]}function pd(e,t,r){const o=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,i=r?e.indexOf(r):-1;let a=v$(e,Math.max(i,0));o.length===1&&(a=a.filter(u=>u!==r));const c=a.find(u=>u.textValue.toLowerCase().startsWith(o.toLowerCase()));return c!==r?c:void 0}function v$(e,t){return e.map((r,n)=>e[(t+n)%e.length])}const g$=U_,y$=q_,_$=X_,$$=J_,x$=e$,w$=o$,E$=a$,P$=l$,S$=c$,C$=d$,T$=p$,O$=b$,k$=m$,hd=A.default(H_)`
1223
1233
  all: unset;
1224
1234
  display: flex;
1225
1235
  align-items: center;
1226
1236
  padding: 6px 8px;
1227
- font-size: ${c.font_size_100};
1237
+ font-size: ${f.font_size_100};
1228
1238
  font-family: 'Inter', sans-serif;
1229
- line-height: ${c.line_height_129};
1230
- gap: ${c.sizing_200};
1239
+ line-height: ${f.line_height_129};
1240
+ gap: ${f.sizing_200};
1231
1241
  background-color: white;
1232
- color: ${c.color_text_white_weak};
1242
+ color: ${f.color_text_white_weak};
1233
1243
 
1234
- background: ${c.color_overlay_secondary_enabled};
1235
- border: 1px solid ${c.color_outline_secondary_enabled};
1236
- border-radius: ${c.border_radius_400};
1244
+ background: ${f.color_overlay_secondary_enabled};
1245
+ border: 1px solid ${f.color_outline_secondary_enabled};
1246
+ border-radius: ${f.border_radius_400};
1237
1247
 
1238
1248
  &[data-placeholder] {
1239
- color: ${c.color_text_white_weak};
1249
+ color: ${f.color_text_white_weak};
1240
1250
  }
1241
1251
 
1242
1252
  &:hover {
1243
- background-color: ${c.color_overlay_secondary_hover};
1253
+ background-color: ${f.color_overlay_secondary_hover};
1244
1254
  }
1245
1255
 
1246
1256
  &:focus-visible {
1247
- color: ${c.color_black};
1257
+ color: ${f.color_black};
1248
1258
  }
1249
1259
 
1250
1260
  &:disabled {
1251
- background-color: ${c.color_overlay_secondary_hover};
1252
- color: ${c.color_fill_primary_disabled};
1261
+ background-color: ${f.color_overlay_secondary_hover};
1262
+ color: ${f.color_fill_primary_disabled};
1253
1263
  cursor: not-allowed;
1254
1264
  }
1255
- `,N$=k.default(t$)`
1256
- color: ${c.color_fill_secondary_enabled};
1257
- `,z$=k.default(T$)`
1265
+ `,D$=A.default(Y_)`
1266
+ color: ${f.color_fill_secondary_enabled};
1267
+ `,I$=A.default($$)`
1258
1268
  font-family: 'Inter', sans-serif;
1259
1269
  overflow: hidden;
1260
1270
  background-color: white;
1261
1271
  margin-top: 52px;
1262
- border-radius: ${c.border_radius_400};
1263
- box-shadow: ${c.elevation_static_high};
1264
- `,B$=k.default(S$)`
1265
- padding: ${c.sizing_100};
1272
+ border-radius: ${f.border_radius_400};
1273
+ box-shadow: ${f.elevation_static_high};
1274
+ `,A$=A.default(x$)`
1275
+ padding: ${f.sizing_100};
1266
1276
  min-width: 172px;
1267
- `;function _c({children:e,...t}){return T(C$,{children:T(z$,{...t,children:e})})}const V$=k.default(O$)`
1277
+ `;function bd({children:e,...t}){return T(_$,{children:T(I$,{...t,children:e})})}const N$=A.default(P$)`
1268
1278
  all: unset;
1269
- font-size: ${c.font_size_100};
1270
- line-height: ${c.line_height_129};
1271
- letter-spacing: ${c.letter_spacing_tight};
1272
- color: ${c.color_fill_primary_pressed};
1279
+ font-size: ${f.font_size_100};
1280
+ line-height: ${f.line_height_129};
1281
+ letter-spacing: ${f.letter_spacing_tight};
1282
+ color: ${f.color_fill_primary_pressed};
1273
1283
  font-weight: 500;
1274
- border-radius: ${c.border_radius_400};
1284
+ border-radius: ${f.border_radius_400};
1275
1285
  display: flex;
1276
1286
  align-items: center;
1277
1287
  justify-content: space-between; // make this configurable?
1278
1288
  /* height: 25px; */
1279
- padding: 7px ${c.sizing_200};
1289
+ padding: 7px ${f.sizing_200};
1280
1290
  position: relative;
1281
1291
  user-select: none;
1282
1292
 
1283
1293
  &[data-disabled] {
1284
- color: ${c.color_text_white_standard}; /* Static / Text / Inverse / Standard */
1294
+ color: ${f.color_text_white_standard}; /* Static / Text / Inverse / Standard */
1285
1295
  pointer-events: none;
1286
1296
  }
1287
1297
 
1288
1298
  &[data-highlighted] {
1289
- background-color: ${c.color_background_white_weak}; /* Static / Background / Weak */
1299
+ background-color: ${f.color_background_white_weak}; /* Static / Background / Weak */
1290
1300
  }
1291
- `,R$=k.default(D$)`
1292
- padding: 7px ${c.sizing_200};
1293
- font-size: ${c.font_size_50};
1294
- line-height: ${c.line_height_133};
1295
- color: ${c.color_text_weak};
1301
+ `,M$=A.default(E$)`
1302
+ padding: 7px ${f.sizing_200};
1303
+ font-size: ${f.font_size_50};
1304
+ line-height: ${f.line_height_133};
1305
+ color: ${f.color_text_weak};
1296
1306
  font-style: normal;
1297
- `,W$=k.default(F$)`
1307
+ `,L$=A.default(k$)`
1298
1308
  height: 1px;
1299
- background-color: ${c.color_divider_standard};
1300
- margin: ${c.spacing_100};
1301
- `,H$=k.default(A$)`
1309
+ background-color: ${f.color_divider_standard};
1310
+ margin: ${f.spacing_100};
1311
+ `,F$=A.default(C$)`
1302
1312
  /* position: absolute; // why? */
1303
1313
  left: 0;
1304
1314
  width: 25px;
@@ -1308,9 +1318,9 @@ Defaulting to \`${Qr}\`.`}function Wl(e){return hm.includes(e)}const _m=Rl;funct
1308
1318
 
1309
1319
  & > svg {
1310
1320
  line-height: 0;
1311
- font-size: ${c.font_size_200};
1321
+ font-size: ${f.font_size_200};
1312
1322
  }
1313
- `,yc=`
1323
+ `,md=`
1314
1324
  display: flex;
1315
1325
  align-items: center;
1316
1326
  justify-content: center;
@@ -1318,20 +1328,135 @@ Defaulting to \`${Qr}\`.`}function Wl(e){return hm.includes(e)}const _m=Rl;funct
1318
1328
  background-color: white;
1319
1329
  color: black;
1320
1330
  cursor: default;
1321
- `,K$=k.default(L$)`
1322
- ${yc}
1323
- `,U$=k.default(M$)`
1324
- ${yc}
1325
- `,xc=E$,wc=vc,Ec=P$,Pc=N$,j$=B$,G$=k$,Cc=V$,Tc=I$,Y$=H$,q$=R$,X$=W$,Sc=K$,kc=U$;function Z$({items:e,...t}){return ee(xc,{...t,children:[ee(wc,{"aria-label":"Food",children:[T(Ec,{placeholder:"Select"}),T(Pc,{children:T(ve.ArrowDropDown,{})})]}),ee(_c,{children:[T(Sc,{children:T(ve.ArrowDropUp,{})}),e.map(n=>T(Cc,{value:n,children:T(Tc,{children:n})},n)),T(kc,{children:T(ve.ArrowDropDown,{})})]})]})}const Dc="Switch",[J$,Uh]=ge(Dc),[Q$,eh]=J$(Dc),th=a.forwardRef((e,t)=>{const{__scopeSwitch:n,name:r,checked:o,defaultChecked:i,required:s,disabled:l,value:d="on",onCheckedChange:f,...u}=e,[p,$]=a.useState(null),b=J(t,_=>$(_)),h=a.useRef(!1),m=p?Boolean(p.closest("form")):!0,[v=!1,y]=Pe({prop:o,defaultProp:i,onChange:f});return a.createElement(Q$,{scope:n,checked:v,disabled:l},a.createElement(R.button,D({type:"button",role:"switch","aria-checked":v,"aria-required":s,"data-state":Oc(v),"data-disabled":l?"":void 0,disabled:l,value:d},u,{ref:b,onClick:B(e.onClick,_=>{y(w=>!w),m&&(h.current=_.isPropagationStopped(),h.current||_.stopPropagation())})})),m&&a.createElement(oh,{control:p,bubbles:!h.current,name:r,value:d,checked:v,required:s,disabled:l,style:{transform:"translateX(-100%)"}}))}),nh="SwitchThumb",rh=a.forwardRef((e,t)=>{const{__scopeSwitch:n,...r}=e,o=eh(nh,n);return a.createElement(R.span,D({"data-state":Oc(o.checked),"data-disabled":o.disabled?"":void 0},r,{ref:t}))}),oh=e=>{const{control:t,checked:n,bubbles:r=!0,...o}=e,i=a.useRef(null),s=vn(n),l=mn(t);return a.useEffect(()=>{const d=i.current,f=window.HTMLInputElement.prototype,p=Object.getOwnPropertyDescriptor(f,"checked").set;if(s!==n&&p){const $=new Event("click",{bubbles:r});p.call(d,n),d.dispatchEvent($)}},[s,n,r]),a.createElement("input",D({type:"checkbox","aria-hidden":!0,defaultChecked:n},o,{tabIndex:-1,ref:i,style:{...e.style,...l,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function Oc(e){return e?"checked":"unchecked"}const ah=th,ih=rh,sh=k.default(ah)`
1331
+ `,R$=A.default(T$)`
1332
+ ${md}
1333
+ `,z$=A.default(O$)`
1334
+ ${md}
1335
+ `,vd=g$,gd=hd,yd=y$,_d=D$,V$=A$,j$=w$,$d=N$,xd=S$,B$=F$,W$=M$,U$=L$,wd=R$,Ed=z$;function K$({items:e,...t}){return ce(vd,{...t,children:[ce(gd,{"aria-label":"Food",children:[T(yd,{placeholder:"Select"}),T(_d,{children:T(xe.ArrowDropDown,{})})]}),ce(bd,{children:[T(wd,{children:T(xe.ArrowDropUp,{})}),e.map(r=>T($d,{value:r,children:T(xd,{children:r})},r)),T(Ed,{children:T(xe.ArrowDropDown,{})})]})]})}function H$(e){let[t,r]=Xa(Pd(e.value),Pd(e.defaultValue)||"",e.onChange);return{value:t,setValue:r}}function Pd(e){if(e!=null)return e.toString()}function G$(e){return e&&e.__esModule?e.default:e}var Sd={},Cd={};Cd={"Clear search":"\u0645\u0633\u062D \u0627\u0644\u0628\u062D\u062B"};var Td={};Td={"Clear search":"\u0418\u0437\u0447\u0438\u0441\u0442\u0432\u0430\u043D\u0435 \u043D\u0430 \u0442\u044A\u0440\u0441\u0435\u043D\u0435"};var Od={};Od={"Clear search":"Vymazat hled\xE1n\xED"};var kd={};kd={"Clear search":"Ryd s\xF8gning"};var Dd={};Dd={"Clear search":"Suche zur\xFCcksetzen"};var Id={};Id={"Clear search":"\u0391\u03C0\u03B1\u03BB\u03BF\u03B9\u03C6\u03AE \u03B1\u03BD\u03B1\u03B6\u03AE\u03C4\u03B7\u03C3\u03B7\u03C2"};var Ad={};Ad={"Clear search":"Clear search"};var Nd={};Nd={"Clear search":"Borrar b\xFAsqueda"};var Md={};Md={"Clear search":"T\xFChjenda otsing"};var Ld={};Ld={"Clear search":"Tyhjenn\xE4 haku"};var Fd={};Fd={"Clear search":"Effacer la recherche"};var Rd={};Rd={"Clear search":"\u05E0\u05E7\u05D4 \u05D7\u05D9\u05E4\u05D5\u05E9"};var zd={};zd={"Clear search":"Obri\u0161i pretragu"};var Vd={};Vd={"Clear search":"Keres\xE9s t\xF6rl\xE9se"};var jd={};jd={"Clear search":"Cancella ricerca"};var Bd={};Bd={"Clear search":"\u691C\u7D22\u3092\u30AF\u30EA\u30A2"};var Wd={};Wd={"Clear search":"\uAC80\uC0C9 \uC9C0\uC6B0\uAE30"};var Ud={};Ud={"Clear search":"I\u0161valyti ie\u0161k\u0105"};var Kd={};Kd={"Clear search":"Not\u012Br\u012Bt mekl\u0113\u0161anu"};var Hd={};Hd={"Clear search":"T\xF8m s\xF8k"};var Gd={};Gd={"Clear search":"Zoekactie wissen"};var qd={};qd={"Clear search":"Wyczy\u015B\u0107 zawarto\u015B\u0107 wyszukiwania"};var Yd={};Yd={"Clear search":"Limpar pesquisa"};var Xd={};Xd={"Clear search":"Limpar pesquisa"};var Jd={};Jd={"Clear search":"\u015Eterge\u0163i c\u0103utarea"};var Zd={};Zd={"Clear search":"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C \u043F\u043E\u0438\u0441\u043A"};var Qd={};Qd={"Clear search":"Vymaza\u0165 vyh\u013Ead\xE1vanie"};var ef={};ef={"Clear search":"Po\u010Disti iskanje"};var tf={};tf={"Clear search":"Obri\u0161i pretragu"};var rf={};rf={"Clear search":"Rensa s\xF6kning"};var nf={};nf={"Clear search":"Aramay\u0131 temizle"};var of={};of={"Clear search":"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u0438 \u043F\u043E\u0448\u0443\u043A"};var af={};af={"Clear search":"\u6E05\u9664\u641C\u7D22"};var sf={};sf={"Clear search":"\u6E05\u9664\u641C\u5C0B\u689D\u4EF6"},Sd={"ar-AE":Cd,"bg-BG":Td,"cs-CZ":Od,"da-DK":kd,"de-DE":Dd,"el-GR":Id,"en-US":Ad,"es-ES":Nd,"et-EE":Md,"fi-FI":Ld,"fr-FR":Fd,"he-IL":Rd,"hr-HR":zd,"hu-HU":Vd,"it-IT":jd,"ja-JP":Bd,"ko-KR":Wd,"lt-LT":Ud,"lv-LV":Kd,"nb-NO":Hd,"nl-NL":Gd,"pl-PL":qd,"pt-BR":Yd,"pt-PT":Xd,"ro-RO":Jd,"ru-RU":Zd,"sk-SK":Qd,"sl-SI":ef,"sr-SP":tf,"sv-SE":rf,"tr-TR":nf,"uk-UA":of,"zh-CN":af,"zh-TW":sf};function q$(e,t,r){let n=Fr(G$(Sd)),{isDisabled:o,isReadOnly:i,onSubmit:a=()=>{},onClear:s,type:c="search"}=e,u=y=>{const $=y.key;($==="Enter"||$==="Escape")&&y.preventDefault(),!(o||i)&&($==="Enter"&&a(t.value),$==="Escape"&&(t.setValue(""),s&&s()))},d=()=>{t.setValue(""),s&&s()},p=()=>{r.current.focus()},{labelProps:b,inputProps:h,descriptionProps:v,errorMessageProps:m}=Jr({...e,value:t.value,onChange:t.setValue,onKeyDown:ts(u,e.onKeyDown),type:c},r);return{labelProps:b,inputProps:{...h,defaultValue:void 0},clearButtonProps:{"aria-label":n.format("Clear search"),excludeFromTabOrder:!0,preventFocusOnPress:!0,isDisabled:o||i,onPress:d,onPressStart:p},descriptionProps:v,errorMessageProps:m}}var ti={},ri={exports:{}};(function(e){function t(r){return r&&r.__esModule?r:{default:r}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(ri);var ni={exports:{}},lf={exports:{}};(function(e){function t(r){return e.exports=t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(lf),function(e){var t=lf.exports.default;function r(o){if(typeof WeakMap!="function")return null;var i=new WeakMap,a=new WeakMap;return(r=function(c){return c?a:i})(o)}function n(o,i){if(!i&&o&&o.__esModule)return o;if(o===null||t(o)!=="object"&&typeof o!="function")return{default:o};var a=r(i);if(a&&a.has(o))return a.get(o);var s={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in o)if(u!=="default"&&Object.prototype.hasOwnProperty.call(o,u)){var d=c?Object.getOwnPropertyDescriptor(o,u):null;d&&(d.get||d.set)?Object.defineProperty(s,u,d):s[u]=o[u]}return s.default=o,a&&a.set(o,s),s}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(ni);var oi={};function cf(e,t){return process.env.NODE_ENV==="production"?function(){return null}:function(){return e.apply(void 0,arguments)||t.apply(void 0,arguments)}}function or(e){return or=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},or(e)}function ii(e){return e&&or(e)==="object"&&e.constructor===Object}function Rt(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{clone:!0},n=r.clone?C({},e):e;return ii(e)&&ii(t)&&Object.keys(t).forEach(function(o){o!=="__proto__"&&(ii(t[o])&&o in e?n[o]=Rt(e[o],t[o],r):n[o]=t[o])}),n}var ue={exports:{}};/*
1336
+ object-assign
1337
+ (c) Sindre Sorhus
1338
+ @license MIT
1339
+ */var ai,uf;function Y$(){if(uf)return ai;uf=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function o(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var a={},s=0;s<10;s++)a["_"+String.fromCharCode(s)]=s;var c=Object.getOwnPropertyNames(a).map(function(d){return a[d]});if(c.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(d){u[d]=d}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return ai=o()?Object.assign:function(i,a){for(var s,c=n(i),u,d=1;d<arguments.length;d++){s=Object(arguments[d]);for(var p in s)t.call(s,p)&&(c[p]=s[p]);if(e){u=e(s);for(var b=0;b<u.length;b++)r.call(s,u[b])&&(c[u[b]]=s[u[b]])}}return c},ai}var si,df;function li(){if(df)return si;df=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return si=e,si}var ci,ff;function pf(){return ff||(ff=1,ci=Function.call.bind(Object.prototype.hasOwnProperty)),ci}var ui,hf;function X$(){if(hf)return ui;hf=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=li(),r={},n=pf();e=function(i){var a="Warning: "+i;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function o(i,a,s,c,u){if(process.env.NODE_ENV!=="production"){for(var d in i)if(n(i,d)){var p;try{if(typeof i[d]!="function"){var b=Error((c||"React class")+": "+s+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw b.name="Invariant Violation",b}p=i[d](a,d,c,s,null,t)}catch(v){p=v}if(p&&!(p instanceof Error)&&e((c||"React class")+": type specification of "+s+" `"+d+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof p+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),p instanceof Error&&!(p.message in r)){r[p.message]=!0;var h=u?u():"";e("Failed "+s+" type: "+p.message+(h!=null?h:""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},ui=o,ui}var di,bf;function J$(){if(bf)return di;bf=1;var e=Pn.default,t=Y$(),r=li(),n=pf(),o=X$(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(s){var c="Warning: "+s;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function a(){return null}return di=function(s,c){var u=typeof Symbol=="function"&&Symbol.iterator,d="@@iterator";function p(E){var L=E&&(u&&E[u]||E[d]);if(typeof L=="function")return L}var b="<<anonymous>>",h={array:$("array"),bigint:$("bigint"),bool:$("boolean"),func:$("function"),number:$("number"),object:$("object"),string:$("string"),symbol:$("symbol"),any:_(),arrayOf:w,element:g(),elementType:D(),instanceOf:M,node:G(),objectOf:N,oneOf:O,oneOfType:F,shape:Y,exact:I};function v(E,L){return E===L?E!==0||1/E===1/L:E!==E&&L!==L}function m(E,L){this.message=E,this.data=L&&typeof L=="object"?L:{},this.stack=""}m.prototype=Error.prototype;function y(E){if(process.env.NODE_ENV!=="production")var L={},B=0;function j(U,q,X,J,oe,ne,ge){if(J=J||b,ne=ne||X,ge!==r){if(c){var me=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw me.name="Invariant Violation",me}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Ee=J+":"+X;!L[Ee]&&B<3&&(i("You are manually calling a React.PropTypes validation function for the `"+ne+"` prop on `"+J+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),L[Ee]=!0,B++)}}return q[X]==null?U?q[X]===null?new m("The "+oe+" `"+ne+"` is marked as required "+("in `"+J+"`, but its value is `null`.")):new m("The "+oe+" `"+ne+"` is marked as required in "+("`"+J+"`, but its value is `undefined`.")):null:E(q,X,J,oe,ne)}var V=j.bind(null,!1);return V.isRequired=j.bind(null,!0),V}function $(E){function L(B,j,V,U,q,X){var J=B[j],oe=Z(J);if(oe!==E){var ne=fe(J);return new m("Invalid "+U+" `"+q+"` of type "+("`"+ne+"` supplied to `"+V+"`, expected ")+("`"+E+"`."),{expectedType:E})}return null}return y(L)}function _(){return y(a)}function w(E){function L(B,j,V,U,q){if(typeof E!="function")return new m("Property `"+q+"` of component `"+V+"` has invalid PropType notation inside arrayOf.");var X=B[j];if(!Array.isArray(X)){var J=Z(X);return new m("Invalid "+U+" `"+q+"` of type "+("`"+J+"` supplied to `"+V+"`, expected an array."))}for(var oe=0;oe<X.length;oe++){var ne=E(X,oe,V,U,q+"["+oe+"]",r);if(ne instanceof Error)return ne}return null}return y(L)}function g(){function E(L,B,j,V,U){var q=L[B];if(!s(q)){var X=Z(q);return new m("Invalid "+V+" `"+U+"` of type "+("`"+X+"` supplied to `"+j+"`, expected a single ReactElement."))}return null}return y(E)}function D(){function E(L,B,j,V,U){var q=L[B];if(!e.isValidElementType(q)){var X=Z(q);return new m("Invalid "+V+" `"+U+"` of type "+("`"+X+"` supplied to `"+j+"`, expected a single ReactElement type."))}return null}return y(E)}function M(E){function L(B,j,V,U,q){if(!(B[j]instanceof E)){var X=E.name||b,J=ee(B[j]);return new m("Invalid "+U+" `"+q+"` of type "+("`"+J+"` supplied to `"+V+"`, expected ")+("instance of `"+X+"`."))}return null}return y(L)}function O(E){if(!Array.isArray(E))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):i("Invalid argument supplied to oneOf, expected an array.")),a;function L(B,j,V,U,q){for(var X=B[j],J=0;J<E.length;J++)if(v(X,E[J]))return null;var oe=JSON.stringify(E,function(ge,me){var Ee=fe(me);return Ee==="symbol"?String(me):me});return new m("Invalid "+U+" `"+q+"` of value `"+String(X)+"` "+("supplied to `"+V+"`, expected one of "+oe+"."))}return y(L)}function N(E){function L(B,j,V,U,q){if(typeof E!="function")return new m("Property `"+q+"` of component `"+V+"` has invalid PropType notation inside objectOf.");var X=B[j],J=Z(X);if(J!=="object")return new m("Invalid "+U+" `"+q+"` of type "+("`"+J+"` supplied to `"+V+"`, expected an object."));for(var oe in X)if(n(X,oe)){var ne=E(X,oe,V,U,q+"."+oe,r);if(ne instanceof Error)return ne}return null}return y(L)}function F(E){if(!Array.isArray(E))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var L=0;L<E.length;L++){var B=E[L];if(typeof B!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+ve(B)+" at index "+L+"."),a}function j(V,U,q,X,J){for(var oe=[],ne=0;ne<E.length;ne++){var ge=E[ne],me=ge(V,U,q,X,J,r);if(me==null)return null;me.data&&n(me.data,"expectedType")&&oe.push(me.data.expectedType)}var Ee=oe.length>0?", expected one of type ["+oe.join(", ")+"]":"";return new m("Invalid "+X+" `"+J+"` supplied to "+("`"+q+"`"+Ee+"."))}return y(j)}function G(){function E(L,B,j,V,U){return P(L[B])?null:new m("Invalid "+V+" `"+U+"` supplied to "+("`"+j+"`, expected a ReactNode."))}return y(E)}function S(E,L,B,j,V){return new m((E||"React class")+": "+L+" type `"+B+"."+j+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+V+"`.")}function Y(E){function L(B,j,V,U,q){var X=B[j],J=Z(X);if(J!=="object")return new m("Invalid "+U+" `"+q+"` of type `"+J+"` "+("supplied to `"+V+"`, expected `object`."));for(var oe in E){var ne=E[oe];if(typeof ne!="function")return S(V,U,q,oe,fe(ne));var ge=ne(X,oe,V,U,q+"."+oe,r);if(ge)return ge}return null}return y(L)}function I(E){function L(B,j,V,U,q){var X=B[j],J=Z(X);if(J!=="object")return new m("Invalid "+U+" `"+q+"` of type `"+J+"` "+("supplied to `"+V+"`, expected `object`."));var oe=t({},B[j],E);for(var ne in oe){var ge=E[ne];if(n(E,ne)&&typeof ge!="function")return S(V,U,q,ne,fe(ge));if(!ge)return new m("Invalid "+U+" `"+q+"` key `"+ne+"` supplied to `"+V+"`.\nBad object: "+JSON.stringify(B[j],null," ")+`
1340
+ Valid keys: `+JSON.stringify(Object.keys(E),null," "));var me=ge(X,ne,V,U,q+"."+ne,r);if(me)return me}return null}return y(L)}function P(E){switch(typeof E){case"number":case"string":case"undefined":return!0;case"boolean":return!E;case"object":if(Array.isArray(E))return E.every(P);if(E===null||s(E))return!0;var L=p(E);if(L){var B=L.call(E),j;if(L!==E.entries){for(;!(j=B.next()).done;)if(!P(j.value))return!1}else for(;!(j=B.next()).done;){var V=j.value;if(V&&!P(V[1]))return!1}}else return!1;return!0;default:return!1}}function re(E,L){return E==="symbol"?!0:L?L["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&L instanceof Symbol:!1}function Z(E){var L=typeof E;return Array.isArray(E)?"array":E instanceof RegExp?"object":re(L,E)?"symbol":L}function fe(E){if(typeof E>"u"||E===null)return""+E;var L=Z(E);if(L==="object"){if(E instanceof Date)return"date";if(E instanceof RegExp)return"regexp"}return L}function ve(E){var L=fe(E);switch(L){case"array":case"object":return"an "+L;case"boolean":case"date":case"regexp":return"a "+L;default:return L}}function ee(E){return!E.constructor||!E.constructor.name?b:E.constructor.name}return h.checkPropTypes=o,h.resetWarningCache=o.resetWarningCache,h.PropTypes=h,h},di}var fi,mf;function Z$(){if(mf)return fi;mf=1;var e=li();function t(){}function r(){}return r.resetWarningCache=t,fi=function(){function n(a,s,c,u,d,p){if(p!==e){var b=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw b.name="Invariant Violation",b}}n.isRequired=n;function o(){return n}var i={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:o,element:n,elementType:n,instanceOf:o,node:n,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:r,resetWarningCache:t};return i.PropTypes=i,i},fi}if(process.env.NODE_ENV!=="production"){var Q$=Pn.default,e1=!0;ue.exports=J$()(Q$.isElement,e1)}else ue.exports=Z$()();function ir(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var t1="exact-prop: \u200B";function r1(e){return process.env.NODE_ENV==="production"?e:C({},e,ir({},t1,function(t){var r=Object.keys(t).filter(function(n){return!e.hasOwnProperty(n)});return r.length>0?new Error("The following props are not supported: ".concat(r.map(function(n){return"`".concat(n,"`")}).join(", "),". Please remove them.")):null}))}function bn(e){for(var t="https://mui.com/production-error/?code="+e,r=1;r<arguments.length;r+=1)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified Material-UI error #"+e+"; visit "+t+" for the full message."}var n1=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function o1(e){var t="".concat(e).match(n1),r=t&&t[1];return r||""}function vf(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return e.displayName||e.name||o1(e)||t}function gf(e,t,r){var n=vf(t);return e.displayName||(n!==""?"".concat(r,"(").concat(n,")"):r)}function ar(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return vf(e,"Component");if(or(e)==="object")switch(e.$$typeof){case gr.ForwardRef:return gf(e,e.render,"ForwardRef");case gr.Memo:return gf(e,e.type,"memo");default:return}}}function pi(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"Material-UI: capitalize(string) expects a string argument.":bn(7));return e.charAt(0).toUpperCase()+e.slice(1)}function i1(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.reduce(function(n,o){return o==null?n:(process.env.NODE_ENV!=="production"&&typeof o!="function"&&console.error("Material-UI: Invalid Argument Type, must only provide functions, undefined, or null."),function(){for(var a=arguments.length,s=new Array(a),c=0;c<a;c++)s[c]=arguments[c];n.apply(this,s),o.apply(this,s)})},function(){})}function yf(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,i;for(i=0;i<n.length;i++)o=n[i],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}function ze(e,t){if(e==null)return{};var r=yf(e,t),n,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],!(t.indexOf(n)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,n)||(r[n]=e[n]))}return r}var a1=typeof Symbol=="function"&&Symbol.for;const s1=a1?Symbol.for("mui.nested"):"__THEME_NESTED__";var l1=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function c1(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.disableGlobal,r=t===void 0?!1:t,n=e.productionPrefix,o=n===void 0?"jss":n,i=e.seed,a=i===void 0?"":i,s=a===""?"":"".concat(a,"-"),c=0,u=function(){return c+=1,process.env.NODE_ENV!=="production"&&c>=1e10&&console.warn(["Material-UI: You might have a memory leak.","The ruleCounter is not supposed to grow that much."].join("")),c};return function(d,p){var b=p.options.name;if(b&&b.indexOf("Mui")===0&&!p.options.link&&!r){if(l1.indexOf(d.key)!==-1)return"Mui-".concat(d.key);var h="".concat(s).concat(b,"-").concat(d.key);return!p.options.theme[s1]||a!==""?h:"".concat(h,"-").concat(u())}if(process.env.NODE_ENV==="production")return"".concat(s).concat(o).concat(u());var v="".concat(d.key,"-").concat(u());return p.options.classNamePrefix?"".concat(s).concat(p.options.classNamePrefix,"-").concat(v):"".concat(s).concat(v)}}function u1(e){var t=e.theme,r=e.name,n=e.props;if(!t||!t.props||!t.props[r])return n;var o=t.props[r],i;for(i in o)n[i]===void 0&&(n[i]=o[i]);return n}var d1=process.env.NODE_ENV==="production";function Oe(e,t){if(!d1){if(e)return;var r="Warning: "+t;typeof console<"u"&&console.warn(r);try{throw Error(r)}catch{}}}var _f=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},sr=(typeof window>"u"?"undefined":_f(window))==="object"&&(typeof document>"u"?"undefined":_f(document))==="object"&&document.nodeType===9;function $f(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function xf(e,t,r){return t&&$f(e.prototype,t),r&&$f(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function hi(e,t){return hi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},hi(e,t)}function wf(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,hi(e,t)}function Ef(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var f1={}.constructor;function bi(e){if(e==null||typeof e!="object")return e;if(Array.isArray(e))return e.map(bi);if(e.constructor!==f1)return e;var t={};for(var r in e)t[r]=bi(e[r]);return t}function mi(e,t,r){e===void 0&&(e="unnamed");var n=r.jss,o=bi(t),i=n.plugins.onCreateRule(e,o,r);return i||(e[0]==="@"&&process.env.NODE_ENV!=="production"&&Oe(!1,"[JSS] Unknown rule "+e),null)}var Pf=function(t,r){for(var n="",o=0;o<t.length&&t[o]!=="!important";o++)n&&(n+=r),n+=t[o];return n},yt=function(t){if(!Array.isArray(t))return t;var r="";if(Array.isArray(t[0]))for(var n=0;n<t.length&&t[n]!=="!important";n++)r&&(r+=", "),r+=Pf(t[n]," ");else r=Pf(t,", ");return t[t.length-1]==="!important"&&(r+=" !important"),r};function zt(e){return e&&e.format===!1?{linebreak:"",space:""}:{linebreak:`
1341
+ `,space:" "}}function lr(e,t){for(var r="",n=0;n<t;n++)r+=" ";return r+e}function cr(e,t,r){r===void 0&&(r={});var n="";if(!t)return n;var o=r,i=o.indent,a=i===void 0?0:i,s=t.fallbacks;r.format===!1&&(a=-1/0);var c=zt(r),u=c.linebreak,d=c.space;if(e&&a++,s)if(Array.isArray(s))for(var p=0;p<s.length;p++){var b=s[p];for(var h in b){var v=b[h];v!=null&&(n&&(n+=u),n+=lr(h+":"+d+yt(v)+";",a))}}else for(var m in s){var y=s[m];y!=null&&(n&&(n+=u),n+=lr(m+":"+d+yt(y)+";",a))}for(var $ in t){var _=t[$];_!=null&&$!=="fallbacks"&&(n&&(n+=u),n+=lr($+":"+d+yt(_)+";",a))}return!n&&!r.allowEmpty||!e?n:(a--,n&&(n=""+u+n+u),lr(""+e+d+"{"+n,a)+lr("}",a))}var p1=/([[\].#*$><+~=|^:(),"'`\s])/g,Sf=typeof CSS<"u"&&CSS.escape,vi=function(e){return Sf?Sf(e):e.replace(p1,"\\$1")},Cf=function(){function e(r,n,o){this.type="style",this.isProcessed=!1;var i=o.sheet,a=o.Renderer;this.key=r,this.options=o,this.style=n,i?this.renderer=i.renderer:a&&(this.renderer=new a)}var t=e.prototype;return t.prop=function(n,o,i){if(o===void 0)return this.style[n];var a=i?i.force:!1;if(!a&&this.style[n]===o)return this;var s=o;(!i||i.process!==!1)&&(s=this.options.jss.plugins.onChangeValue(o,n,this));var c=s==null||s===!1,u=n in this.style;if(c&&!u&&!a)return this;var d=c&&u;if(d?delete this.style[n]:this.style[n]=s,this.renderable&&this.renderer)return d?this.renderer.removeProperty(this.renderable,n):this.renderer.setProperty(this.renderable,n,s),this;var p=this.options.sheet;return p&&p.attached&&process.env.NODE_ENV!=="production"&&Oe(!1,'[JSS] Rule is not linked. Missing sheet option "link: true".'),this},e}(),gi=function(e){wf(t,e);function t(n,o,i){var a;a=e.call(this,n,o,i)||this;var s=i.selector,c=i.scoped,u=i.sheet,d=i.generateId;return s?a.selectorText=s:c!==!1&&(a.id=d(Ef(Ef(a)),u),a.selectorText="."+vi(a.id)),a}var r=t.prototype;return r.applyTo=function(o){var i=this.renderer;if(i){var a=this.toJSON();for(var s in a)i.setProperty(o,s,a[s])}return this},r.toJSON=function(){var o={};for(var i in this.style){var a=this.style[i];typeof a!="object"?o[i]=a:Array.isArray(a)&&(o[i]=yt(a))}return o},r.toString=function(o){var i=this.options.sheet,a=i?i.options.link:!1,s=a?C({},o,{allowEmpty:!0}):o;return cr(this.selectorText,this.style,s)},xf(t,[{key:"selector",set:function(o){if(o!==this.selectorText){this.selectorText=o;var i=this.renderer,a=this.renderable;if(!(!a||!i)){var s=i.setSelector(a,o);s||i.replaceRule(a,this)}}},get:function(){return this.selectorText}}]),t}(Cf),h1={onCreateRule:function(t,r,n){return t[0]==="@"||n.parent&&n.parent.type==="keyframes"?null:new gi(t,r,n)}},yi={indent:1,children:!0},b1=/@([\w-]+)/,m1=function(){function e(r,n,o){this.type="conditional",this.isProcessed=!1,this.key=r;var i=r.match(b1);this.at=i?i[1]:"unknown",this.query=o.name||"@"+this.at,this.options=o,this.rules=new mn(C({},o,{parent:this}));for(var a in n)this.rules.add(a,n[a]);this.rules.process()}var t=e.prototype;return t.getRule=function(n){return this.rules.get(n)},t.indexOf=function(n){return this.rules.indexOf(n)},t.addRule=function(n,o,i){var a=this.rules.add(n,o,i);return a?(this.options.jss.plugins.onProcessRule(a),a):null},t.replaceRule=function(n,o,i){var a=this.rules.replace(n,o,i);return a&&this.options.jss.plugins.onProcessRule(a),a},t.toString=function(n){n===void 0&&(n=yi);var o=zt(n),i=o.linebreak;if(n.indent==null&&(n.indent=yi.indent),n.children==null&&(n.children=yi.children),n.children===!1)return this.query+" {}";var a=this.rules.toString(n);return a?this.query+" {"+i+a+i+"}":""},e}(),v1=/@media|@supports\s+/,g1={onCreateRule:function(t,r,n){return v1.test(t)?new m1(t,r,n):null}},_i={indent:1,children:!0},y1=/@keyframes\s+([\w-]+)/,$i=function(){function e(r,n,o){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var i=r.match(y1);i&&i[1]?this.name=i[1]:(this.name="noname",process.env.NODE_ENV!=="production"&&Oe(!1,"[JSS] Bad keyframes name "+r)),this.key=this.type+"-"+this.name,this.options=o;var a=o.scoped,s=o.sheet,c=o.generateId;this.id=a===!1?this.name:vi(c(this,s)),this.rules=new mn(C({},o,{parent:this}));for(var u in n)this.rules.add(u,n[u],C({},o,{parent:this}));this.rules.process()}var t=e.prototype;return t.toString=function(n){n===void 0&&(n=_i);var o=zt(n),i=o.linebreak;if(n.indent==null&&(n.indent=_i.indent),n.children==null&&(n.children=_i.children),n.children===!1)return this.at+" "+this.id+" {}";var a=this.rules.toString(n);return a&&(a=""+i+a+i),this.at+" "+this.id+" {"+a+"}"},e}(),_1=/@keyframes\s+/,$1=/\$([\w-]+)/g,xi=function(t,r){return typeof t=="string"?t.replace($1,function(n,o){return o in r?r[o]:(process.env.NODE_ENV!=="production"&&Oe(!1,'[JSS] Referenced keyframes rule "'+o+'" is not defined.'),n)}):t},Tf=function(t,r,n){var o=t[r],i=xi(o,n);i!==o&&(t[r]=i)},x1={onCreateRule:function(t,r,n){return typeof t=="string"&&_1.test(t)?new $i(t,r,n):null},onProcessStyle:function(t,r,n){return r.type!=="style"||!n||("animation-name"in t&&Tf(t,"animation-name",n.keyframes),"animation"in t&&Tf(t,"animation",n.keyframes)),t},onChangeValue:function(t,r,n){var o=n.options.sheet;if(!o)return t;switch(r){case"animation":return xi(t,o.keyframes);case"animation-name":return xi(t,o.keyframes);default:return t}}},w1=function(e){wf(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;return r.toString=function(o){var i=this.options.sheet,a=i?i.options.link:!1,s=a?C({},o,{allowEmpty:!0}):o;return cr(this.key,this.style,s)},t}(Cf),E1={onCreateRule:function(t,r,n){return n.parent&&n.parent.type==="keyframes"?new w1(t,r,n):null}},P1=function(){function e(r,n,o){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=r,this.style=n,this.options=o}var t=e.prototype;return t.toString=function(n){var o=zt(n),i=o.linebreak;if(Array.isArray(this.style)){for(var a="",s=0;s<this.style.length;s++)a+=cr(this.at,this.style[s]),this.style[s+1]&&(a+=i);return a}return cr(this.at,this.style,n)},e}(),S1=/@font-face/,C1={onCreateRule:function(t,r,n){return S1.test(t)?new P1(t,r,n):null}},T1=function(){function e(r,n,o){this.type="viewport",this.at="@viewport",this.isProcessed=!1,this.key=r,this.style=n,this.options=o}var t=e.prototype;return t.toString=function(n){return cr(this.key,this.style,n)},e}(),O1={onCreateRule:function(t,r,n){return t==="@viewport"||t==="@-ms-viewport"?new T1(t,r,n):null}},k1=function(){function e(r,n,o){this.type="simple",this.isProcessed=!1,this.key=r,this.value=n,this.options=o}var t=e.prototype;return t.toString=function(n){if(Array.isArray(this.value)){for(var o="",i=0;i<this.value.length;i++)o+=this.key+" "+this.value[i]+";",this.value[i+1]&&(o+=`
1342
+ `);return o}return this.key+" "+this.value+";"},e}(),D1={"@charset":!0,"@import":!0,"@namespace":!0},I1={onCreateRule:function(t,r,n){return t in D1?new k1(t,r,n):null}},Of=[h1,g1,x1,E1,C1,O1,I1],A1={process:!0},kf={force:!0,process:!0},mn=function(){function e(r){this.map={},this.raw={},this.index=[],this.counter=0,this.options=r,this.classes=r.classes,this.keyframes=r.keyframes}var t=e.prototype;return t.add=function(n,o,i){var a=this.options,s=a.parent,c=a.sheet,u=a.jss,d=a.Renderer,p=a.generateId,b=a.scoped,h=C({classes:this.classes,parent:s,sheet:c,jss:u,Renderer:d,generateId:p,scoped:b,name:n,keyframes:this.keyframes,selector:void 0},i),v=n;n in this.raw&&(v=n+"-d"+this.counter++),this.raw[v]=o,v in this.classes&&(h.selector="."+vi(this.classes[v]));var m=mi(v,o,h);if(!m)return null;this.register(m);var y=h.index===void 0?this.index.length:h.index;return this.index.splice(y,0,m),m},t.replace=function(n,o,i){var a=this.get(n),s=this.index.indexOf(a);a&&this.remove(a);var c=i;return s!==-1&&(c=C({},i,{index:s})),this.add(n,o,c)},t.get=function(n){return this.map[n]},t.remove=function(n){this.unregister(n),delete this.raw[n.key],this.index.splice(this.index.indexOf(n),1)},t.indexOf=function(n){return this.index.indexOf(n)},t.process=function(){var n=this.options.jss.plugins;this.index.slice(0).forEach(n.onProcessRule,n)},t.register=function(n){this.map[n.key]=n,n instanceof gi?(this.map[n.selector]=n,n.id&&(this.classes[n.key]=n.id)):n instanceof $i&&this.keyframes&&(this.keyframes[n.name]=n.id)},t.unregister=function(n){delete this.map[n.key],n instanceof gi?(delete this.map[n.selector],delete this.classes[n.key]):n instanceof $i&&delete this.keyframes[n.name]},t.update=function(){var n,o,i;if(typeof(arguments.length<=0?void 0:arguments[0])=="string"?(n=arguments.length<=0?void 0:arguments[0],o=arguments.length<=1?void 0:arguments[1],i=arguments.length<=2?void 0:arguments[2]):(o=arguments.length<=0?void 0:arguments[0],i=arguments.length<=1?void 0:arguments[1],n=null),n)this.updateOne(this.get(n),o,i);else for(var a=0;a<this.index.length;a++)this.updateOne(this.index[a],o,i)},t.updateOne=function(n,o,i){i===void 0&&(i=A1);var a=this.options,s=a.jss.plugins,c=a.sheet;if(n.rules instanceof e){n.rules.update(o,i);return}var u=n.style;if(s.onUpdate(o,n,c,i),i.process&&u&&u!==n.style){s.onProcessStyle(n.style,n,c);for(var d in n.style){var p=n.style[d],b=u[d];p!==b&&n.prop(d,p,kf)}for(var h in u){var v=n.style[h],m=u[h];v==null&&v!==m&&n.prop(h,null,kf)}}},t.toString=function(n){for(var o="",i=this.options.sheet,a=i?i.options.link:!1,s=zt(n),c=s.linebreak,u=0;u<this.index.length;u++){var d=this.index[u],p=d.toString(n);!p&&!a||(o&&(o+=c),o+=p)}return o},e}(),Df=function(){function e(r,n){this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=C({},n,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),n.Renderer&&(this.renderer=new n.Renderer(this)),this.rules=new mn(this.options);for(var o in r)this.rules.add(o,r[o]);this.rules.process()}var t=e.prototype;return t.attach=function(){return this.attached?this:(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy(),this)},t.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},t.addRule=function(n,o,i){var a=this.queue;this.attached&&!a&&(this.queue=[]);var s=this.rules.add(n,o,i);return s?(this.options.jss.plugins.onProcessRule(s),this.attached?(this.deployed&&(a?a.push(s):(this.insertRule(s),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0))),s):(this.deployed=!1,s)):null},t.replaceRule=function(n,o,i){var a=this.rules.get(n);if(!a)return this.addRule(n,o,i);var s=this.rules.replace(n,o,i);return s&&this.options.jss.plugins.onProcessRule(s),this.attached?(this.deployed&&this.renderer&&(s?a.renderable&&this.renderer.replaceRule(a.renderable,s):this.renderer.deleteRule(a)),s):(this.deployed=!1,s)},t.insertRule=function(n){this.renderer&&this.renderer.insertRule(n)},t.addRules=function(n,o){var i=[];for(var a in n){var s=this.addRule(a,n[a],o);s&&i.push(s)}return i},t.getRule=function(n){return this.rules.get(n)},t.deleteRule=function(n){var o=typeof n=="object"?n:this.rules.get(n);return!o||this.attached&&!o.renderable?!1:(this.rules.remove(o),this.attached&&o.renderable&&this.renderer?this.renderer.deleteRule(o.renderable):!0)},t.indexOf=function(n){return this.rules.indexOf(n)},t.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},t.update=function(){var n;return(n=this.rules).update.apply(n,arguments),this},t.updateOne=function(n,o,i){return this.rules.updateOne(n,o,i),this},t.toString=function(n){return this.rules.toString(n)},e}(),N1=function(){function e(){this.plugins={internal:[],external:[]},this.registry={}}var t=e.prototype;return t.onCreateRule=function(n,o,i){for(var a=0;a<this.registry.onCreateRule.length;a++){var s=this.registry.onCreateRule[a](n,o,i);if(s)return s}return null},t.onProcessRule=function(n){if(!n.isProcessed){for(var o=n.options.sheet,i=0;i<this.registry.onProcessRule.length;i++)this.registry.onProcessRule[i](n,o);n.style&&this.onProcessStyle(n.style,n,o),n.isProcessed=!0}},t.onProcessStyle=function(n,o,i){for(var a=0;a<this.registry.onProcessStyle.length;a++)o.style=this.registry.onProcessStyle[a](o.style,o,i)},t.onProcessSheet=function(n){for(var o=0;o<this.registry.onProcessSheet.length;o++)this.registry.onProcessSheet[o](n)},t.onUpdate=function(n,o,i,a){for(var s=0;s<this.registry.onUpdate.length;s++)this.registry.onUpdate[s](n,o,i,a)},t.onChangeValue=function(n,o,i){for(var a=n,s=0;s<this.registry.onChangeValue.length;s++)a=this.registry.onChangeValue[s](a,o,i);return a},t.use=function(n,o){o===void 0&&(o={queue:"external"});var i=this.plugins[o.queue];i.indexOf(n)===-1&&(i.push(n),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce(function(a,s){for(var c in s)c in a?a[c].push(s[c]):process.env.NODE_ENV!=="production"&&Oe(!1,'[JSS] Unknown hook "'+c+'".');return a},{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},e}(),M1=function(){function e(){this.registry=[]}var t=e.prototype;return t.add=function(n){var o=this.registry,i=n.options.index;if(o.indexOf(n)===-1){if(o.length===0||i>=this.index){o.push(n);return}for(var a=0;a<o.length;a++)if(o[a].options.index>i){o.splice(a,0,n);return}}},t.reset=function(){this.registry=[]},t.remove=function(n){var o=this.registry.indexOf(n);this.registry.splice(o,1)},t.toString=function(n){for(var o=n===void 0?{}:n,i=o.attached,a=yf(o,["attached"]),s=zt(a),c=s.linebreak,u="",d=0;d<this.registry.length;d++){var p=this.registry[d];i!=null&&p.attached!==i||(u&&(u+=c),u+=p.toString(a))}return u},xf(e,[{key:"index",get:function(){return this.registry.length===0?0:this.registry[this.registry.length-1].options.index}}]),e}(),ur=new M1,wi=typeof globalThis<"u"?globalThis:typeof window<"u"&&window.Math===Math?window:typeof self<"u"&&self.Math===Math?self:Function("return this")(),Ei="2f1acc6c3a606b082e5eef5e54414ffb";wi[Ei]==null&&(wi[Ei]=0);var If=wi[Ei]++,L1=1e10,Af=function(t){t===void 0&&(t={});var r=0,n=function(i,a){r+=1,r>L1&&process.env.NODE_ENV!=="production"&&Oe(!1,"[JSS] You might have a memory leak. Rule counter is at "+r+".");var s="",c="";return a&&(a.options.classNamePrefix&&(c=a.options.classNamePrefix),a.options.jss.id!=null&&(s=String(a.options.jss.id))),t.minify?""+(c||"c")+If+s+r:c+i.key+"-"+If+(s?"-"+s:"")+"-"+r};return n},Nf=function(t){var r;return function(){return r||(r=t()),r}},F1=function(t,r){try{return t.attributeStyleMap?t.attributeStyleMap.get(r):t.style.getPropertyValue(r)}catch{return""}},R1=function(t,r,n){try{var o=n;if(Array.isArray(n)&&(o=yt(n)),t.attributeStyleMap)t.attributeStyleMap.set(r,o);else{var i=o?o.indexOf("!important"):-1,a=i>-1?o.substr(0,i-1):o;t.style.setProperty(r,a,i>-1?"important":"")}}catch{return!1}return!0},z1=function(t,r){try{t.attributeStyleMap?t.attributeStyleMap.delete(r):t.style.removeProperty(r)}catch(n){process.env.NODE_ENV!=="production"&&Oe(!1,'[JSS] DOMException "'+n.message+'" was thrown. Tried to remove property "'+r+'".')}},V1=function(t,r){return t.selectorText=r,t.selectorText===r},Mf=Nf(function(){return document.querySelector("head")});function j1(e,t){for(var r=0;r<e.length;r++){var n=e[r];if(n.attached&&n.options.index>t.index&&n.options.insertionPoint===t.insertionPoint)return n}return null}function B1(e,t){for(var r=e.length-1;r>=0;r--){var n=e[r];if(n.attached&&n.options.insertionPoint===t.insertionPoint)return n}return null}function W1(e){for(var t=Mf(),r=0;r<t.childNodes.length;r++){var n=t.childNodes[r];if(n.nodeType===8&&n.nodeValue.trim()===e)return n}return null}function U1(e){var t=ur.registry;if(t.length>0){var r=j1(t,e);if(r&&r.renderer)return{parent:r.renderer.element.parentNode,node:r.renderer.element};if(r=B1(t,e),r&&r.renderer)return{parent:r.renderer.element.parentNode,node:r.renderer.element.nextSibling}}var n=e.insertionPoint;if(n&&typeof n=="string"){var o=W1(n);if(o)return{parent:o.parentNode,node:o.nextSibling};process.env.NODE_ENV!=="production"&&Oe(!1,'[JSS] Insertion point "'+n+'" not found.')}return!1}function K1(e,t){var r=t.insertionPoint,n=U1(t);if(n!==!1&&n.parent){n.parent.insertBefore(e,n.node);return}if(r&&typeof r.nodeType=="number"){var o=r,i=o.parentNode;i?i.insertBefore(e,o.nextSibling):process.env.NODE_ENV!=="production"&&Oe(!1,"[JSS] Insertion point is not in the DOM.");return}Mf().appendChild(e)}var H1=Nf(function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null}),Lf=function(t,r,n){try{"insertRule"in t?t.insertRule(r,n):"appendRule"in t&&t.appendRule(r)}catch(o){return process.env.NODE_ENV!=="production"&&Oe(!1,"[JSS] "+o.message),!1}return t.cssRules[n]},Ff=function(t,r){var n=t.cssRules.length;return r===void 0||r>n?n:r},G1=function(){var t=document.createElement("style");return t.textContent=`
1343
+ `,t},q1=function(){function e(r){this.getPropertyValue=F1,this.setProperty=R1,this.removeProperty=z1,this.setSelector=V1,this.hasInsertedRules=!1,this.cssRules=[],r&&ur.add(r),this.sheet=r;var n=this.sheet?this.sheet.options:{},o=n.media,i=n.meta,a=n.element;this.element=a||G1(),this.element.setAttribute("data-jss",""),o&&this.element.setAttribute("media",o),i&&this.element.setAttribute("data-meta",i);var s=H1();s&&this.element.setAttribute("nonce",s)}var t=e.prototype;return t.attach=function(){if(!(this.element.parentNode||!this.sheet)){K1(this.element,this.sheet.options);var n=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&n&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(!!this.sheet){var n=this.element.parentNode;n&&n.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent=`
1344
+ `)}},t.deploy=function(){var n=this.sheet;if(!!n){if(n.options.link){this.insertRules(n.rules);return}this.element.textContent=`
1345
+ `+n.toString()+`
1346
+ `}},t.insertRules=function(n,o){for(var i=0;i<n.index.length;i++)this.insertRule(n.index[i],i,o)},t.insertRule=function(n,o,i){if(i===void 0&&(i=this.element.sheet),n.rules){var a=n,s=i;if(n.type==="conditional"||n.type==="keyframes"){var c=Ff(i,o);if(s=Lf(i,a.toString({children:!1}),c),s===!1)return!1;this.refCssRule(n,c,s)}return this.insertRules(a.rules,s),s}var u=n.toString();if(!u)return!1;var d=Ff(i,o),p=Lf(i,u,d);return p===!1?!1:(this.hasInsertedRules=!0,this.refCssRule(n,d,p),p)},t.refCssRule=function(n,o,i){n.renderable=i,n.options.parent instanceof Df&&this.cssRules.splice(o,0,i)},t.deleteRule=function(n){var o=this.element.sheet,i=this.indexOf(n);return i===-1?!1:(o.deleteRule(i),this.cssRules.splice(i,1),!0)},t.indexOf=function(n){return this.cssRules.indexOf(n)},t.replaceRule=function(n,o){var i=this.indexOf(n);return i===-1?!1:(this.element.sheet.deleteRule(i),this.cssRules.splice(i,1),this.insertRule(o,i))},t.getRules=function(){return this.element.sheet.cssRules},e}(),Y1=0,X1=function(){function e(r){this.id=Y1++,this.version="10.9.2",this.plugins=new N1,this.options={id:{minify:!1},createGenerateId:Af,Renderer:sr?q1:null,plugins:[]},this.generateId=Af({minify:!1});for(var n=0;n<Of.length;n++)this.plugins.use(Of[n],{queue:"internal"});this.setup(r)}var t=e.prototype;return t.setup=function(n){return n===void 0&&(n={}),n.createGenerateId&&(this.options.createGenerateId=n.createGenerateId),n.id&&(this.options.id=C({},this.options.id,n.id)),(n.createGenerateId||n.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),n.insertionPoint!=null&&(this.options.insertionPoint=n.insertionPoint),"Renderer"in n&&(this.options.Renderer=n.Renderer),n.plugins&&this.use.apply(this,n.plugins),this},t.createStyleSheet=function(n,o){o===void 0&&(o={});var i=o,a=i.index;typeof a!="number"&&(a=ur.index===0?0:ur.index+1);var s=new Df(n,C({},o,{jss:this,generateId:o.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:a}));return this.plugins.onProcessSheet(s),s},t.removeStyleSheet=function(n){return n.detach(),ur.remove(n),this},t.createRule=function(n,o,i){if(o===void 0&&(o={}),i===void 0&&(i={}),typeof n=="object")return this.createRule(void 0,n,o);var a=C({},i,{name:n,jss:this,Renderer:this.options.Renderer});a.generateId||(a.generateId=this.generateId),a.classes||(a.classes={}),a.keyframes||(a.keyframes={});var s=mi(n,o,a);return s&&this.plugins.onProcessRule(s),s},t.use=function(){for(var n=this,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return i.forEach(function(s){n.plugins.use(s)}),this},e}(),Pi=function(t){return new X1(t)},Si=typeof CSS=="object"&&CSS!=null&&"number"in CSS;function Rf(e){var t=null;for(var r in e){var n=e[r],o=typeof n;if(o==="function")t||(t={}),t[r]=n;else if(o==="object"&&n!==null&&!Array.isArray(n)){var i=Rf(n);i&&(t||(t={}),t[r]=i)}}return t}/**
1347
+ * A better abstraction over CSS.
1348
+ *
1349
+ * @copyright Oleg Isonen (Slobodskoi) / Isonen 2014-present
1350
+ * @website https://github.com/cssinjs/jss
1351
+ * @license MIT
1352
+ */Pi();var zf=Date.now(),Ci="fnValues"+zf,Ti="fnStyle"+ ++zf,J1=function(){return{onCreateRule:function(r,n,o){if(typeof n!="function")return null;var i=mi(r,{},o);return i[Ti]=n,i},onProcessStyle:function(r,n){if(Ci in n||Ti in n)return r;var o={};for(var i in r){var a=r[i];typeof a=="function"&&(delete r[i],o[i]=a)}return n[Ci]=o,r},onUpdate:function(r,n,o,i){var a=n,s=a[Ti];if(s&&(a.style=s(r)||{},process.env.NODE_ENV==="development")){for(var c in a.style)if(typeof a.style[c]=="function"){process.env.NODE_ENV!=="production"&&Oe(!1,"[JSS] Function values inside function rules are not supported.");break}}var u=a[Ci];if(u)for(var d in u)a.prop(d,u[d](r),i)}}};const Z1=J1;var ot="@global",Oi="@global ",Q1=function(){function e(r,n,o){this.type="global",this.at=ot,this.isProcessed=!1,this.key=r,this.options=o,this.rules=new mn(C({},o,{parent:this}));for(var i in n)this.rules.add(i,n[i]);this.rules.process()}var t=e.prototype;return t.getRule=function(n){return this.rules.get(n)},t.addRule=function(n,o,i){var a=this.rules.add(n,o,i);return a&&this.options.jss.plugins.onProcessRule(a),a},t.replaceRule=function(n,o,i){var a=this.rules.replace(n,o,i);return a&&this.options.jss.plugins.onProcessRule(a),a},t.indexOf=function(n){return this.rules.indexOf(n)},t.toString=function(n){return this.rules.toString(n)},e}(),ex=function(){function e(r,n,o){this.type="global",this.at=ot,this.isProcessed=!1,this.key=r,this.options=o;var i=r.substr(Oi.length);this.rule=o.jss.createRule(i,n,C({},o,{parent:this}))}var t=e.prototype;return t.toString=function(n){return this.rule?this.rule.toString(n):""},e}(),tx=/\s*,\s*/g;function Vf(e,t){for(var r=e.split(tx),n="",o=0;o<r.length;o++)n+=t+" "+r[o].trim(),r[o+1]&&(n+=", ");return n}function rx(e,t){var r=e.options,n=e.style,o=n?n[ot]:null;if(!!o){for(var i in o)t.addRule(i,o[i],C({},r,{selector:Vf(i,e.selector)}));delete n[ot]}}function nx(e,t){var r=e.options,n=e.style;for(var o in n)if(!(o[0]!=="@"||o.substr(0,ot.length)!==ot)){var i=Vf(o.substr(ot.length),e.selector);t.addRule(i,n[o],C({},r,{selector:i})),delete n[o]}}function ox(){function e(r,n,o){if(!r)return null;if(r===ot)return new Q1(r,n,o);if(r[0]==="@"&&r.substr(0,Oi.length)===Oi)return new ex(r,n,o);var i=o.parent;return i&&(i.type==="global"||i.options.parent&&i.options.parent.type==="global")&&(o.scoped=!1),!o.selector&&o.scoped===!1&&(o.selector=r),null}function t(r,n){r.type!=="style"||!n||(rx(r,n),nx(r,n))}return{onCreateRule:e,onProcessRule:t}}var jf=/\s*,\s*/g,ix=/&/g,ax=/\$([\w-]+)/g;function sx(){function e(o,i){return function(a,s){var c=o.getRule(s)||i&&i.getRule(s);return c?c.selector:(process.env.NODE_ENV!=="production"&&Oe(!1,'[JSS] Could not find the referenced rule "'+s+'" in "'+(o.options.meta||o.toString())+'".'),s)}}function t(o,i){for(var a=i.split(jf),s=o.split(jf),c="",u=0;u<a.length;u++)for(var d=a[u],p=0;p<s.length;p++){var b=s[p];c&&(c+=", "),c+=b.indexOf("&")!==-1?b.replace(ix,d):d+" "+b}return c}function r(o,i,a){if(a)return C({},a,{index:a.index+1});var s=o.options.nestingLevel;s=s===void 0?1:s+1;var c=C({},o.options,{nestingLevel:s,index:i.indexOf(o)+1});return delete c.name,c}function n(o,i,a){if(i.type!=="style")return o;var s=i,c=s.options.parent,u,d;for(var p in o){var b=p.indexOf("&")!==-1,h=p[0]==="@";if(!(!b&&!h)){if(u=r(s,c,u),b){var v=t(p,s.selector);d||(d=e(c,a)),v=v.replace(ax,d);var m=s.key+"-"+p;"replaceRule"in c?c.replaceRule(m,o[p],C({},u,{selector:v})):c.addRule(m,o[p],C({},u,{selector:v}))}else h&&c.addRule(p,{},u).addRule(s.key,o[p],{selector:s.selector});delete o[p]}}return o}return{onProcessStyle:n}}var lx=/[A-Z]/g,cx=/^ms-/,ki={};function ux(e){return"-"+e.toLowerCase()}function Bf(e){if(ki.hasOwnProperty(e))return ki[e];var t=e.replace(lx,ux);return ki[e]=cx.test(t)?"-"+t:t}function vn(e){var t={};for(var r in e){var n=r.indexOf("--")===0?r:Bf(r);t[n]=e[r]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(vn):t.fallbacks=vn(e.fallbacks)),t}function dx(){function e(r){if(Array.isArray(r)){for(var n=0;n<r.length;n++)r[n]=vn(r[n]);return r}return vn(r)}function t(r,n,o){if(n.indexOf("--")===0)return r;var i=Bf(n);return n===i?r:(o.prop(i,r),null)}return{onProcessStyle:e,onChangeValue:t}}var k=Si&&CSS?CSS.px:"px",gn=Si&&CSS?CSS.ms:"ms",Vt=Si&&CSS?CSS.percent:"%",fx={"animation-delay":gn,"animation-duration":gn,"background-position":k,"background-position-x":k,"background-position-y":k,"background-size":k,border:k,"border-bottom":k,"border-bottom-left-radius":k,"border-bottom-right-radius":k,"border-bottom-width":k,"border-left":k,"border-left-width":k,"border-radius":k,"border-right":k,"border-right-width":k,"border-top":k,"border-top-left-radius":k,"border-top-right-radius":k,"border-top-width":k,"border-width":k,"border-block":k,"border-block-end":k,"border-block-end-width":k,"border-block-start":k,"border-block-start-width":k,"border-block-width":k,"border-inline":k,"border-inline-end":k,"border-inline-end-width":k,"border-inline-start":k,"border-inline-start-width":k,"border-inline-width":k,"border-start-start-radius":k,"border-start-end-radius":k,"border-end-start-radius":k,"border-end-end-radius":k,margin:k,"margin-bottom":k,"margin-left":k,"margin-right":k,"margin-top":k,"margin-block":k,"margin-block-end":k,"margin-block-start":k,"margin-inline":k,"margin-inline-end":k,"margin-inline-start":k,padding:k,"padding-bottom":k,"padding-left":k,"padding-right":k,"padding-top":k,"padding-block":k,"padding-block-end":k,"padding-block-start":k,"padding-inline":k,"padding-inline-end":k,"padding-inline-start":k,"mask-position-x":k,"mask-position-y":k,"mask-size":k,height:k,width:k,"min-height":k,"max-height":k,"min-width":k,"max-width":k,bottom:k,left:k,top:k,right:k,inset:k,"inset-block":k,"inset-block-end":k,"inset-block-start":k,"inset-inline":k,"inset-inline-end":k,"inset-inline-start":k,"box-shadow":k,"text-shadow":k,"column-gap":k,"column-rule":k,"column-rule-width":k,"column-width":k,"font-size":k,"font-size-delta":k,"letter-spacing":k,"text-decoration-thickness":k,"text-indent":k,"text-stroke":k,"text-stroke-width":k,"word-spacing":k,motion:k,"motion-offset":k,outline:k,"outline-offset":k,"outline-width":k,perspective:k,"perspective-origin-x":Vt,"perspective-origin-y":Vt,"transform-origin":Vt,"transform-origin-x":Vt,"transform-origin-y":Vt,"transform-origin-z":Vt,"transition-delay":gn,"transition-duration":gn,"vertical-align":k,"flex-basis":k,"shape-margin":k,size:k,gap:k,grid:k,"grid-gap":k,"row-gap":k,"grid-row-gap":k,"grid-column-gap":k,"grid-template-rows":k,"grid-template-columns":k,"grid-auto-rows":k,"grid-auto-columns":k,"box-shadow-x":k,"box-shadow-y":k,"box-shadow-blur":k,"box-shadow-spread":k,"font-line-height":k,"text-shadow-x":k,"text-shadow-y":k,"text-shadow-blur":k};function Wf(e){var t=/(-[a-z])/g,r=function(a){return a[1].toUpperCase()},n={};for(var o in e)n[o]=e[o],n[o.replace(t,r)]=e[o];return n}var px=Wf(fx);function dr(e,t,r){if(t==null)return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)t[n]=dr(e,t[n],r);else if(typeof t=="object")if(e==="fallbacks")for(var o in t)t[o]=dr(o,t[o],r);else for(var i in t)t[i]=dr(e+"-"+i,t[i],r);else if(typeof t=="number"&&isNaN(t)===!1){var a=r[e]||px[e];return a&&!(t===0&&a===k)?typeof a=="function"?a(t).toString():""+t+a:t.toString()}return t}function hx(e){e===void 0&&(e={});var t=Wf(e);function r(o,i){if(i.type!=="style")return o;for(var a in o)o[a]=dr(a,o[a],t);return o}function n(o,i){return dr(i,o,t)}return{onProcessStyle:r,onChangeValue:n}}function Di(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function bx(e){if(Array.isArray(e))return Di(e)}function mx(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function vx(e,t){if(!!e){if(typeof e=="string")return Di(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Di(e,t)}}function gx(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
1353
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function yx(e){return bx(e)||mx(e)||vx(e)||gx()}var fr="",Ii="",Uf="",Kf="",_x=sr&&"ontouchstart"in document.documentElement;if(sr){var Ai={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},$x=document.createElement("p"),Ni=$x.style,xx="Transform";for(var Mi in Ai)if(Mi+xx in Ni){fr=Mi,Ii=Ai[Mi];break}fr==="Webkit"&&"msHyphens"in Ni&&(fr="ms",Ii=Ai.ms,Kf="edge"),fr==="Webkit"&&"-apple-trailing-word"in Ni&&(Uf="apple")}var te={js:fr,css:Ii,vendor:Uf,browser:Kf,isTouch:_x};function wx(e){return e[1]==="-"||te.js==="ms"?e:"@"+te.css+"keyframes"+e.substr(10)}var Ex={noPrefill:["appearance"],supportedProperty:function(t){return t!=="appearance"?!1:te.js==="ms"?"-webkit-"+t:te.css+t}},Px={noPrefill:["color-adjust"],supportedProperty:function(t){return t!=="color-adjust"?!1:te.js==="Webkit"?te.css+"print-"+t:t}},Sx=/[-\s]+(.)?/g;function Cx(e,t){return t?t.toUpperCase():""}function Li(e){return e.replace(Sx,Cx)}function it(e){return Li("-"+e)}var Tx={noPrefill:["mask"],supportedProperty:function(t,r){if(!/^mask/.test(t))return!1;if(te.js==="Webkit"){var n="mask-image";if(Li(n)in r)return t;if(te.js+it(n)in r)return te.css+t}return t}},Ox={noPrefill:["text-orientation"],supportedProperty:function(t){return t!=="text-orientation"?!1:te.vendor==="apple"&&!te.isTouch?te.css+t:t}},kx={noPrefill:["transform"],supportedProperty:function(t,r,n){return t!=="transform"?!1:n.transform?t:te.css+t}},Dx={noPrefill:["transition"],supportedProperty:function(t,r,n){return t!=="transition"?!1:n.transition?t:te.css+t}},Ix={noPrefill:["writing-mode"],supportedProperty:function(t){return t!=="writing-mode"?!1:te.js==="Webkit"||te.js==="ms"&&te.browser!=="edge"?te.css+t:t}},Ax={noPrefill:["user-select"],supportedProperty:function(t){return t!=="user-select"?!1:te.js==="Moz"||te.js==="ms"||te.vendor==="apple"?te.css+t:t}},Nx={supportedProperty:function(t,r){if(!/^break-/.test(t))return!1;if(te.js==="Webkit"){var n="WebkitColumn"+it(t);return n in r?te.css+"column-"+t:!1}if(te.js==="Moz"){var o="page"+it(t);return o in r?"page-"+t:!1}return!1}},Mx={supportedProperty:function(t,r){if(!/^(border|margin|padding)-inline/.test(t))return!1;if(te.js==="Moz")return t;var n=t.replace("-inline","");return te.js+it(n)in r?te.css+n:!1}},Lx={supportedProperty:function(t,r){return Li(t)in r?t:!1}},Fx={supportedProperty:function(t,r){var n=it(t);return t[0]==="-"||t[0]==="-"&&t[1]==="-"?t:te.js+n in r?te.css+t:te.js!=="Webkit"&&"Webkit"+n in r?"-webkit-"+t:!1}},Rx={supportedProperty:function(t){return t.substring(0,11)!=="scroll-snap"?!1:te.js==="ms"?""+te.css+t:t}},zx={supportedProperty:function(t){return t!=="overscroll-behavior"?!1:te.js==="ms"?te.css+"scroll-chaining":t}},Vx={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},jx={supportedProperty:function(t,r){var n=Vx[t];return n&&te.js+it(n)in r?te.css+n:!1}},Hf={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},Bx=Object.keys(Hf),Wx=function(t){return te.css+t},Ux={supportedProperty:function(t,r,n){var o=n.multiple;if(Bx.indexOf(t)>-1){var i=Hf[t];if(!Array.isArray(i))return te.js+it(i)in r?te.css+i:!1;if(!o)return!1;for(var a=0;a<i.length;a++)if(!(te.js+it(i[0])in r))return!1;return i.map(Wx)}return!1}},Gf=[Ex,Px,Tx,Ox,kx,Dx,Ix,Ax,Nx,Mx,Lx,Fx,Rx,zx,jx,Ux],qf=Gf.filter(function(e){return e.supportedProperty}).map(function(e){return e.supportedProperty}),Kx=Gf.filter(function(e){return e.noPrefill}).reduce(function(e,t){return e.push.apply(e,yx(t.noPrefill)),e},[]),pr,_t={};if(sr){pr=document.createElement("p");var Fi=window.getComputedStyle(document.documentElement,"");for(var Ri in Fi)isNaN(Ri)||(_t[Fi[Ri]]=Fi[Ri]);Kx.forEach(function(e){return delete _t[e]})}function zi(e,t){if(t===void 0&&(t={}),!pr)return e;if(process.env.NODE_ENV!=="benchmark"&&_t[e]!=null)return _t[e];(e==="transition"||e==="transform")&&(t[e]=e in pr.style);for(var r=0;r<qf.length&&(_t[e]=qf[r](e,pr.style,t),!_t[e]);r++);try{pr.style[e]=""}catch{return!1}return _t[e]}var jt={},Hx={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},Gx=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g,at;function qx(e,t,r){if(t==="var")return"var";if(t==="all")return"all";if(r==="all")return", all";var n=t?zi(t):", "+zi(r);return n||t||r}sr&&(at=document.createElement("p"));function Yf(e,t){var r=t;if(!at||e==="content")return t;if(typeof r!="string"||!isNaN(parseInt(r,10)))return r;var n=e+r;if(process.env.NODE_ENV!=="benchmark"&&jt[n]!=null)return jt[n];try{at.style[e]=r}catch{return jt[n]=!1,!1}if(Hx[e])r=r.replace(Gx,qx);else if(at.style[e]===""&&(r=te.css+r,r==="-ms-flex"&&(at.style[e]="-ms-flexbox"),at.style[e]=r,at.style[e]===""))return jt[n]=!1,!1;return at.style[e]="",jt[n]=r,jt[n]}function Yx(){function e(o){if(o.type==="keyframes"){var i=o;i.at=wx(i.at)}}function t(o){for(var i in o){var a=o[i];if(i==="fallbacks"&&Array.isArray(a)){o[i]=a.map(t);continue}var s=!1,c=zi(i);c&&c!==i&&(s=!0);var u=!1,d=Yf(c,yt(a));d&&d!==a&&(u=!0),(s||u)&&(s&&delete o[i],o[c||i]=d||a)}return o}function r(o,i){return i.type!=="style"?o:t(o)}function n(o,i){return Yf(i,yt(o))||o}return{onProcessRule:e,onProcessStyle:r,onChangeValue:n}}function Xx(){var e=function(r,n){return r.length===n.length?r>n?1:-1:r.length-n.length};return{onProcessStyle:function(r,n){if(n.type!=="style")return r;for(var o={},i=Object.keys(r).sort(e),a=0;a<i.length;a++)o[i[a]]=r[i[a]];return o}}}function Xf(){return{plugins:[Z1(),ox(),sx(),dx(),hx(),typeof window>"u"?null:Yx(),Xx()]}}function Jf(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.baseClasses,r=e.newClasses,n=e.Component;if(!r)return t;var o=C({},t);return process.env.NODE_ENV!=="production"&&typeof r=="string"?(console.error(["Material-UI: The value `".concat(r,"` ")+"provided to the classes prop of ".concat(ar(n)," is incorrect."),"You might want to use the className prop instead."].join(`
1354
+ `)),t):(Object.keys(r).forEach(function(i){process.env.NODE_ENV!=="production"&&(!t[i]&&r[i]&&console.error(["Material-UI: The key `".concat(i,"` ")+"provided to the classes prop is not implemented in ".concat(ar(n),"."),"You can only override one of the following: ".concat(Object.keys(t).join(","),".")].join(`
1355
+ `)),r[i]&&typeof r[i]!="string"&&console.error(["Material-UI: The key `".concat(i,"` ")+"provided to the classes prop is not valid for ".concat(ar(n),"."),"You need to provide a non empty string instead of: ".concat(r[i],".")].join(`
1356
+ `))),r[i]&&(o[i]="".concat(t[i]," ").concat(r[i]))}),o)}var Jx={set:function(t,r,n,o){var i=t.get(r);i||(i=new Map,t.set(r,i)),i.set(n,o)},get:function(t,r,n){var o=t.get(r);return o?o.get(n):void 0},delete:function(t,r,n){var o=t.get(r);o.delete(n)}};const Bt=Jx;var Zf=ie.default.createContext(null);process.env.NODE_ENV!=="production"&&(Zf.displayName="ThemeContext");const Zx=Zf;function Qf(){var e=ie.default.useContext(Zx);return process.env.NODE_ENV!=="production"&&ie.default.useDebugValue(e),e}var Qx=Pi(Xf()),ew=c1(),tw=new Map,rw={disableGeneration:!1,generateClassName:ew,jss:Qx,sheetsCache:null,sheetsManager:tw,sheetsRegistry:null},yn=ie.default.createContext(rw);process.env.NODE_ENV!=="production"&&(yn.displayName="StylesContext");var _n;function Vi(e){var t=e.children,r=e.injectFirst,n=r===void 0?!1:r,o=e.disableGeneration,i=o===void 0?!1:o,a=ze(e,["children","injectFirst","disableGeneration"]),s=ie.default.useContext(yn),c=C({},s,{disableGeneration:i},a);if(process.env.NODE_ENV!=="production"&&typeof window>"u"&&!c.sheetsManager&&console.error("Material-UI: You need to use the ServerStyleSheets API when rendering on the server."),process.env.NODE_ENV!=="production"&&c.jss.options.insertionPoint&&n&&console.error("Material-UI: You cannot use a custom insertionPoint and <StylesContext injectFirst> at the same time."),process.env.NODE_ENV!=="production"&&n&&a.jss&&console.error("Material-UI: You cannot use the jss and injectFirst props at the same time."),!c.jss.options.insertionPoint&&n&&typeof window<"u"){if(!_n){var u=document.head;_n=document.createComment("mui-inject-first"),u.insertBefore(_n,u.firstChild)}c.jss=Pi({plugins:Xf().plugins,insertionPoint:_n})}return T(yn.Provider,{value:c,children:t})}process.env.NODE_ENV!=="production"&&(Vi.propTypes={children:ue.exports.node.isRequired,disableGeneration:ue.exports.bool,generateClassName:ue.exports.func,injectFirst:ue.exports.bool,jss:ue.exports.object,serverGenerateClassName:ue.exports.func,sheetsCache:ue.exports.object,sheetsManager:ue.exports.object,sheetsRegistry:ue.exports.object}),process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="production"&&(Vi.propTypes=r1(Vi.propTypes));var ji=-1e9;function nw(){return ji+=1,process.env.NODE_ENV!=="production"&&ji>=0&&console.warn(["Material-UI: You might have a memory leak.","The indexCounter is not supposed to grow that much."].join(`
1357
+ `)),ji}var ow={};const ep=ow;function iw(e){var t=typeof e=="function";return process.env.NODE_ENV!=="production"&&or(e)!=="object"&&!t&&console.error(["Material-UI: The `styles` argument provided is invalid.","You need to provide a function generating the styles or a styles object."].join(`
1358
+ `)),{create:function(n,o){var i;try{i=t?e(n):e}catch(c){throw process.env.NODE_ENV!=="production"&&t===!0&&n===ep&&console.error(["Material-UI: The `styles` argument provided is invalid.","You are providing a function without a theme in the context.","One of the parent elements needs to use a ThemeProvider."].join(`
1359
+ `)),c}if(!o||!n.overrides||!n.overrides[o])return i;var a=n.overrides[o],s=C({},i);return Object.keys(a).forEach(function(c){process.env.NODE_ENV!=="production"&&(s[c]||console.warn(["Material-UI: You are trying to override a style that does not exist.","Fix the `".concat(c,"` key of `theme.overrides.").concat(o,"`.")].join(`
1360
+ `))),s[c]=Rt(s[c],a[c])}),s},options:{}}}function aw(e,t,r){var n=e.state,o=e.stylesOptions;if(o.disableGeneration)return t||{};n.cacheClasses||(n.cacheClasses={value:null,lastProp:null,lastJSS:{}});var i=!1;return n.classes!==n.cacheClasses.lastJSS&&(n.cacheClasses.lastJSS=n.classes,i=!0),t!==n.cacheClasses.lastProp&&(n.cacheClasses.lastProp=t,i=!0),i&&(n.cacheClasses.value=Jf({baseClasses:n.cacheClasses.lastJSS,newClasses:t,Component:r})),n.cacheClasses.value}function sw(e,t){var r=e.state,n=e.theme,o=e.stylesOptions,i=e.stylesCreator,a=e.name;if(!o.disableGeneration){var s=Bt.get(o.sheetsManager,i,n);s||(s={refs:0,staticSheet:null,dynamicStyles:null},Bt.set(o.sheetsManager,i,n,s));var c=C({},i.options,o,{theme:n,flip:typeof o.flip=="boolean"?o.flip:n.direction==="rtl"});c.generateId=c.serverGenerateClassName||c.generateClassName;var u=o.sheetsRegistry;if(s.refs===0){var d;o.sheetsCache&&(d=Bt.get(o.sheetsCache,i,n));var p=i.create(n,a);d||(d=o.jss.createStyleSheet(p,C({link:!1},c)),d.attach(),o.sheetsCache&&Bt.set(o.sheetsCache,i,n,d)),u&&u.add(d),s.staticSheet=d,s.dynamicStyles=Rf(p)}if(s.dynamicStyles){var b=o.jss.createStyleSheet(s.dynamicStyles,C({link:!0},c));b.update(t),b.attach(),r.dynamicSheet=b,r.classes=Jf({baseClasses:s.staticSheet.classes,newClasses:b.classes}),u&&u.add(b)}else r.classes=s.staticSheet.classes;s.refs+=1}}function lw(e,t){var r=e.state;r.dynamicSheet&&r.dynamicSheet.update(t)}function cw(e){var t=e.state,r=e.theme,n=e.stylesOptions,o=e.stylesCreator;if(!n.disableGeneration){var i=Bt.get(n.sheetsManager,o,r);i.refs-=1;var a=n.sheetsRegistry;i.refs===0&&(Bt.delete(n.sheetsManager,o,r),n.jss.removeStyleSheet(i.staticSheet),a&&a.remove(i.staticSheet)),t.dynamicSheet&&(n.jss.removeStyleSheet(t.dynamicSheet),a&&a.remove(t.dynamicSheet))}}function uw(e,t){var r=ie.default.useRef([]),n,o=ie.default.useMemo(function(){return{}},t);r.current!==o&&(r.current=o,n=e()),ie.default.useEffect(function(){return function(){n&&n()}},[o])}function dw(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.name,n=t.classNamePrefix,o=t.Component,i=t.defaultTheme,a=i===void 0?ep:i,s=ze(t,["name","classNamePrefix","Component","defaultTheme"]),c=iw(e),u=r||n||"makeStyles";c.options={index:nw(),name:r,meta:u,classNamePrefix:u};var d=function(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},h=Qf()||a,v=C({},ie.default.useContext(yn),s),m=ie.default.useRef(),y=ie.default.useRef();uw(function(){var _={name:r,state:{},stylesCreator:c,stylesOptions:v,theme:h};return sw(_,b),y.current=!1,m.current=_,function(){cw(_)}},[h,c]),ie.default.useEffect(function(){y.current&&lw(m.current,b),y.current=!0});var $=aw(m.current,b.classes,o);return process.env.NODE_ENV!=="production"&&ie.default.useDebugValue($),$};return d}var Bi=Pn.default,fw={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},pw={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},hw={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},tp={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Wi={};Wi[Bi.ForwardRef]=hw,Wi[Bi.Memo]=tp;function rp(e){return Bi.isMemo(e)?tp:Wi[e.$$typeof]||fw}var bw=Object.defineProperty,mw=Object.getOwnPropertyNames,np=Object.getOwnPropertySymbols,vw=Object.getOwnPropertyDescriptor,gw=Object.getPrototypeOf,op=Object.prototype;function ip(e,t,r){if(typeof t!="string"){if(op){var n=gw(t);n&&n!==op&&ip(e,n,r)}var o=mw(t);np&&(o=o.concat(np(t)));for(var i=rp(e),a=rp(t),s=0;s<o.length;++s){var c=o[s];if(!pw[c]&&!(r&&r[c])&&!(a&&a[c])&&!(i&&i[c])){var u=vw(t,c);try{bw(e,c,u)}catch{}}}}return e}var yw=ip,_w=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return function(n){var o=r.defaultTheme,i=r.withTheme,a=i===void 0?!1:i,s=r.name,c=ze(r,["defaultTheme","withTheme","name"]);if(process.env.NODE_ENV!=="production"&&n===void 0)throw new Error(["You are calling withStyles(styles)(Component) with an undefined component.","You may have forgotten to import it."].join(`
1361
+ `));var u=s;if(process.env.NODE_ENV!=="production"&&!s){var d=ar(n);d!==void 0&&(u=d)}var p=dw(t,C({defaultTheme:o,Component:n,name:s||n.displayName,classNamePrefix:u},c)),b=ie.default.forwardRef(function(v,m){v.classes;var y=v.innerRef,$=ze(v,["classes","innerRef"]),_=p(C({},n.defaultProps,v)),w,g=$;return(typeof s=="string"||a)&&(w=Qf()||o,s&&(g=u1({theme:w,name:s,props:$})),a&&!g.theme&&(g.theme=w)),T(n,{ref:y||m,classes:_,...g})});return process.env.NODE_ENV!=="production"&&(b.propTypes={classes:ue.exports.object,innerRef:cf(ue.exports.oneOfType([ue.exports.func,ue.exports.object]),function(h){return h.innerRef==null,null})}),process.env.NODE_ENV!=="production"&&(b.displayName="WithStyles(".concat(ar(n),")")),yw(b,n),process.env.NODE_ENV!=="production"&&(b.Naked=n,b.options=r,b.useStyles=p),b}};const $w=_w;var st=["xs","sm","md","lg","xl"];function xw(e){var t=e.values,r=t===void 0?{xs:0,sm:600,md:960,lg:1280,xl:1920}:t,n=e.unit,o=n===void 0?"px":n,i=e.step,a=i===void 0?5:i,s=ze(e,["values","unit","step"]);function c(v){var m=typeof r[v]=="number"?r[v]:v;return"@media (min-width:".concat(m).concat(o,")")}function u(v){var m=st.indexOf(v)+1,y=r[st[m]];if(m===st.length)return c("xs");var $=typeof y=="number"&&m>0?y:v;return"@media (max-width:".concat($-a/100).concat(o,")")}function d(v,m){var y=st.indexOf(m);return y===st.length-1?c(v):"@media (min-width:".concat(typeof r[v]=="number"?r[v]:v).concat(o,") and ")+"(max-width:".concat((y!==-1&&typeof r[st[y+1]]=="number"?r[st[y+1]]:m)-a/100).concat(o,")")}function p(v){return d(v,v)}var b=!1;function h(v){return process.env.NODE_ENV!=="production"&&(b||(b=!0,console.warn(["Material-UI: The `theme.breakpoints.width` utility is deprecated because it's redundant.","Use the `theme.breakpoints.values` instead."].join(`
1362
+ `)))),r[v]}return C({keys:st,values:r,up:c,down:u,between:d,only:p,width:h},s)}function ww(e,t,r){var n;return C({gutters:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return console.warn(["Material-UI: theme.mixins.gutters() is deprecated.","You can use the source of the mixin directly:",`
1363
+ paddingLeft: theme.spacing(2),
1364
+ paddingRight: theme.spacing(2),
1365
+ [theme.breakpoints.up('sm')]: {
1366
+ paddingLeft: theme.spacing(3),
1367
+ paddingRight: theme.spacing(3),
1368
+ },
1369
+ `].join(`
1370
+ `)),C({paddingLeft:t(2),paddingRight:t(2)},i,ir({},e.up("sm"),C({paddingLeft:t(3),paddingRight:t(3)},i[e.up("sm")])))},toolbar:(n={minHeight:56},ir(n,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),ir(n,e.up("sm"),{minHeight:64}),n)},r)}var Ew={black:"#000",white:"#fff"};const $n=Ew;var Pw={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"};const Ui=Pw;var Sw={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"};const Ki=Sw;var Cw={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162"};const Hi=Cw;var Tw={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"};const Gi=Tw;var Ow={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"};const qi=Ow;var kw={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"};const Yi=kw;var Dw={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};const Xi=Dw;function ap(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;return process.env.NODE_ENV!=="production"&&(e<t||e>r)&&console.error("Material-UI: The value provided ".concat(e," is out of range [").concat(t,", ").concat(r,"].")),Math.min(Math.max(t,e),r)}function Iw(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),r=e.match(t);return r&&r[0].length===1&&(r=r.map(function(n){return n+n})),r?"rgb".concat(r.length===4?"a":"","(").concat(r.map(function(n,o){return o<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3}).join(", "),")"):""}function Aw(e){e=Wt(e);var t=e,r=t.values,n=r[0],o=r[1]/100,i=r[2]/100,a=o*Math.min(i,1-i),s=function(p){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:(p+n/30)%12;return i-a*Math.max(Math.min(b-3,9-b,1),-1)},c="rgb",u=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(c+="a",u.push(r[3])),Ji({type:c,values:u})}function Wt(e){if(e.type)return e;if(e.charAt(0)==="#")return Wt(Iw(e));var t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla"].indexOf(r)===-1)throw new Error(process.env.NODE_ENV!=="production"?"Material-UI: Unsupported `".concat(e,"` color.\nWe support the following formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()."):bn(3,e));var n=e.substring(t+1,e.length-1).split(",");return n=n.map(function(o){return parseFloat(o)}),{type:r,values:n}}function Ji(e){var t=e.type,r=e.values;return t.indexOf("rgb")!==-1?r=r.map(function(n,o){return o<3?parseInt(n,10):n}):t.indexOf("hsl")!==-1&&(r[1]="".concat(r[1],"%"),r[2]="".concat(r[2],"%")),"".concat(t,"(").concat(r.join(", "),")")}function sp(e,t){var r=lp(e),n=lp(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function lp(e){e=Wt(e);var t=e.type==="hsl"?Wt(Aw(e)).values:e.values;return t=t.map(function(r){return r/=255,r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4)}),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Nw(e,t){if(e=Wt(e),t=ap(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1)for(var r=0;r<3;r+=1)e.values[r]*=1-t;return Ji(e)}function Mw(e,t){if(e=Wt(e),t=ap(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(var r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;return Ji(e)}var cp={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:$n.white,default:Ui[50]},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},Zi={text:{primary:$n.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:Ui[800],default:"#303030"},action:{active:$n.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function up(e,t,r,n){var o=n.light||n,i=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=Mw(e.main,o):t==="dark"&&(e.dark=Nw(e.main,i)))}function Lw(e){var t=e.primary,r=t===void 0?{light:Ki[300],main:Ki[500],dark:Ki[700]}:t,n=e.secondary,o=n===void 0?{light:Hi.A200,main:Hi.A400,dark:Hi.A700}:n,i=e.error,a=i===void 0?{light:Gi[300],main:Gi[500],dark:Gi[700]}:i,s=e.warning,c=s===void 0?{light:qi[300],main:qi[500],dark:qi[700]}:s,u=e.info,d=u===void 0?{light:Yi[300],main:Yi[500],dark:Yi[700]}:u,p=e.success,b=p===void 0?{light:Xi[300],main:Xi[500],dark:Xi[700]}:p,h=e.type,v=h===void 0?"light":h,m=e.contrastThreshold,y=m===void 0?3:m,$=e.tonalOffset,_=$===void 0?.2:$,w=ze(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function g(N){var F=sp(N,Zi.text.primary)>=y?Zi.text.primary:cp.text.primary;if(process.env.NODE_ENV!=="production"){var G=sp(N,F);G<3&&console.error(["Material-UI: The contrast ratio of ".concat(G,":1 for ").concat(F," on ").concat(N),"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
1371
+ `))}return F}var D=function(F){var G=arguments.length>1&&arguments[1]!==void 0?arguments[1]:500,S=arguments.length>2&&arguments[2]!==void 0?arguments[2]:300,Y=arguments.length>3&&arguments[3]!==void 0?arguments[3]:700;if(F=C({},F),!F.main&&F[G]&&(F.main=F[G]),!F.main)throw new Error(process.env.NODE_ENV!=="production"?"Material-UI: The color provided to augmentColor(color) is invalid.\nThe color object needs to have a `main` property or a `".concat(G,"` property."):bn(4,G));if(typeof F.main!="string")throw new Error(process.env.NODE_ENV!=="production"?"Material-UI: The color provided to augmentColor(color) is invalid.\n`color.main` should be a string, but `".concat(JSON.stringify(F.main),`\` was provided instead.
1372
+
1373
+ Did you intend to use one of the following approaches?
1374
+
1375
+ import {\xA0green } from "@material-ui/core/colors";
1376
+
1377
+ const theme1 = createTheme({ palette: {
1378
+ primary: green,
1379
+ } });
1380
+
1381
+ const theme2 = createTheme({ palette: {
1382
+ primary: { main: green[500] },
1383
+ } });`):bn(5,JSON.stringify(F.main)));return up(F,"light",S,_),up(F,"dark",Y,_),F.contrastText||(F.contrastText=g(F.main)),F},M={dark:Zi,light:cp};process.env.NODE_ENV!=="production"&&(M[v]||console.error("Material-UI: The palette type `".concat(v,"` is not supported.")));var O=Rt(C({common:$n,type:v,primary:D(r),secondary:D(o,"A400","A200","A700"),error:D(a),warning:D(c),info:D(d),success:D(b),grey:Ui,contrastThreshold:y,getContrastText:g,augmentColor:D,tonalOffset:_},M[v]),w);return O}function dp(e){return Math.round(e*1e5)/1e5}var fp=!1;function Fw(e){return process.env.NODE_ENV!=="production"&&(fp||(console.warn(["Material-UI: The `theme.typography.round` helper is deprecated.","Head to https://mui.com/r/migration-v4/#theme for a migration path."].join(`
1384
+ `)),fp=!0)),dp(e)}var pp={textTransform:"uppercase"},hp='"Roboto", "Helvetica", "Arial", sans-serif';function Rw(e,t){var r=typeof t=="function"?t(e):t,n=r.fontFamily,o=n===void 0?hp:n,i=r.fontSize,a=i===void 0?14:i,s=r.fontWeightLight,c=s===void 0?300:s,u=r.fontWeightRegular,d=u===void 0?400:u,p=r.fontWeightMedium,b=p===void 0?500:p,h=r.fontWeightBold,v=h===void 0?700:h,m=r.htmlFontSize,y=m===void 0?16:m,$=r.allVariants,_=r.pxToRem,w=ze(r,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]);process.env.NODE_ENV!=="production"&&(typeof a!="number"&&console.error("Material-UI: `fontSize` is required to be a number."),typeof y!="number"&&console.error("Material-UI: `htmlFontSize` is required to be a number."));var g=a/14,D=_||function(N){return"".concat(N/y*g,"rem")},M=function(F,G,S,Y,I){return C({fontFamily:o,fontWeight:F,fontSize:D(G),lineHeight:S},o===hp?{letterSpacing:"".concat(dp(Y/G),"em")}:{},I,$)},O={h1:M(c,96,1.167,-1.5),h2:M(c,60,1.2,-.5),h3:M(d,48,1.167,0),h4:M(d,34,1.235,.25),h5:M(d,24,1.334,0),h6:M(b,20,1.6,.15),subtitle1:M(d,16,1.75,.15),subtitle2:M(b,14,1.57,.1),body1:M(d,16,1.5,.15),body2:M(d,14,1.43,.15),button:M(b,14,1.75,.4,pp),caption:M(d,12,1.66,.4),overline:M(d,12,2.66,1,pp)};return Rt(C({htmlFontSize:y,pxToRem:D,round:Fw,fontFamily:o,fontSize:a,fontWeightLight:c,fontWeightRegular:d,fontWeightMedium:b,fontWeightBold:v},O),w,{clone:!1})}var zw=.2,Vw=.14,jw=.12;function pe(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(zw,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(Vw,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(jw,")")].join(",")}var Bw=["none",pe(0,2,1,-1,0,1,1,0,0,1,3,0),pe(0,3,1,-2,0,2,2,0,0,1,5,0),pe(0,3,3,-2,0,3,4,0,0,1,8,0),pe(0,2,4,-1,0,4,5,0,0,1,10,0),pe(0,3,5,-1,0,5,8,0,0,1,14,0),pe(0,3,5,-1,0,6,10,0,0,1,18,0),pe(0,4,5,-2,0,7,10,1,0,2,16,1),pe(0,5,5,-3,0,8,10,1,0,3,14,2),pe(0,5,6,-3,0,9,12,1,0,3,16,2),pe(0,6,6,-3,0,10,14,1,0,4,18,3),pe(0,6,7,-4,0,11,15,1,0,4,20,3),pe(0,7,8,-4,0,12,17,2,0,5,22,4),pe(0,7,8,-4,0,13,19,2,0,5,24,4),pe(0,7,9,-4,0,14,21,2,0,5,26,4),pe(0,8,9,-5,0,15,22,2,0,6,28,5),pe(0,8,10,-5,0,16,24,2,0,6,30,5),pe(0,8,11,-5,0,17,26,2,0,6,32,5),pe(0,9,11,-5,0,18,28,2,0,7,34,6),pe(0,9,12,-6,0,19,29,2,0,7,36,6),pe(0,10,13,-6,0,20,31,3,0,8,38,7),pe(0,10,13,-6,0,21,33,3,0,8,40,7),pe(0,10,14,-6,0,22,35,3,0,8,42,7),pe(0,11,14,-7,0,23,36,3,0,9,44,8),pe(0,11,15,-7,0,24,38,3,0,9,46,8)];const Ww=Bw;var Uw={borderRadius:4};const Kw=Uw;var Hw=process.env.NODE_ENV!=="production"?ue.exports.oneOfType([ue.exports.number,ue.exports.string,ue.exports.object,ue.exports.array]):{};const Gw=Hw;var qw=["m","mt","mr","mb","ml","mx","my","p","pt","pr","pb","pl","px","py","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY"];function Yw(e){var t=e.spacing||8;return typeof t=="number"?function(r){return process.env.NODE_ENV!=="production"&&typeof r!="number"&&console.error("Material-UI: Expected spacing argument to be a number, got ".concat(r,".")),t*r}:Array.isArray(t)?function(r){return process.env.NODE_ENV!=="production"&&r>t.length-1&&console.error(["Material-UI: The value provided (".concat(r,") overflows."),"The supported values are: ".concat(JSON.stringify(t),"."),"".concat(r," > ").concat(t.length-1,", you need to add the missing values.")].join(`
1385
+ `)),t[r]}:typeof t=="function"?t:(process.env.NODE_ENV!=="production"&&console.error(["Material-UI: The `theme.spacing` value (".concat(t,") is invalid."),"It should be a number, an array or a function."].join(`
1386
+ `)),function(){})}process.env.NODE_ENV!=="production"&&qw.reduce(function(e,t){return e[t]=Gw,e},{});var bp;function Xw(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:8;if(e.mui)return e;var t=Yw({spacing:e}),r=function(){for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return process.env.NODE_ENV!=="production"&&(i.length<=4||console.error("Material-UI: Too many arguments provided, expected between 0 and 4, got ".concat(i.length))),i.length===0?t(1):i.length===1?t(i[0]):i.map(function(s){if(typeof s=="string")return s;var c=t(s);return typeof c=="number"?"".concat(c,"px"):c}).join(" ")};return Object.defineProperty(r,"unit",{get:function(){return process.env.NODE_ENV!=="production"&&((!bp||process.env.NODE_ENV==="test")&&console.error(["Material-UI: theme.spacing.unit usage has been deprecated.","It will be removed in v5.","You can replace `theme.spacing.unit * y` with `theme.spacing(y)`.","","You can use the `https://github.com/mui-org/material-ui/tree/master/packages/material-ui-codemod/README.md#theme-spacing-api` migration helper to make the process smoother."].join(`
1387
+ `)),bp=!0),e}}),r.mui=!0,r}var mp={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},vp={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function gp(e){return"".concat(Math.round(e),"ms")}const Jw={easing:mp,duration:vp,create:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["all"],r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.duration,o=n===void 0?vp.standard:n,i=r.easing,a=i===void 0?mp.easeInOut:i,s=r.delay,c=s===void 0?0:s,u=ze(r,["duration","easing","delay"]);if(process.env.NODE_ENV!=="production"){var d=function(h){return typeof h=="string"},p=function(h){return!isNaN(parseFloat(h))};!d(t)&&!Array.isArray(t)&&console.error('Material-UI: Argument "props" must be a string or Array.'),!p(o)&&!d(o)&&console.error('Material-UI: Argument "duration" must be a number or a string but found '.concat(o,".")),d(a)||console.error('Material-UI: Argument "easing" must be a string.'),!p(c)&&!d(c)&&console.error('Material-UI: Argument "delay" must be a number or a string.'),Object.keys(u).length!==0&&console.error("Material-UI: Unrecognized argument(s) [".concat(Object.keys(u).join(","),"]."))}return(Array.isArray(t)?t:[t]).map(function(b){return"".concat(b," ").concat(typeof o=="string"?o:gp(o)," ").concat(a," ").concat(typeof c=="string"?c:gp(c))}).join(",")},getAutoHeightDuration:function(t){if(!t)return 0;var r=t/36;return Math.round((4+15*Math.pow(r,.25)+r/5)*10)}};var Zw={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const Qw=Zw;function e5(){for(var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.breakpoints,r=t===void 0?{}:t,n=e.mixins,o=n===void 0?{}:n,i=e.palette,a=i===void 0?{}:i,s=e.spacing,c=e.typography,u=c===void 0?{}:c,d=ze(e,["breakpoints","mixins","palette","spacing","typography"]),p=Lw(a),b=xw(r),h=Xw(s),v=Rt({breakpoints:b,direction:"ltr",mixins:ww(b,h,o),overrides:{},palette:p,props:{},shadows:Ww,typography:Rw(p,u),spacing:h,shape:Kw,transitions:Jw,zIndex:Qw},d),m=arguments.length,y=new Array(m>1?m-1:0),$=1;$<m;$++)y[$-1]=arguments[$];if(v=y.reduce(function(g,D){return Rt(g,D)},v),process.env.NODE_ENV!=="production"){var _=["checked","disabled","error","focused","focusVisible","required","expanded","selected"],w=function g(D,M){var O=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,N;for(N in D){var F=D[N];O===1?N.indexOf("Mui")===0&&F&&g(F,N,O+1):_.indexOf(N)!==-1&&Object.keys(F).length>0&&(process.env.NODE_ENV!=="production"&&console.error(["Material-UI: The `".concat(M,"` component increases ")+"the CSS specificity of the `".concat(N,"` internal state."),"You can not override it like this: ",JSON.stringify(D,null,2),"","Instead, you need to use the $ruleName syntax:",JSON.stringify({root:ir({},"&$".concat(N),F)},null,2),"","https://mui.com/r/pseudo-classes-guide"].join(`
1388
+ `)),D[N]={})}};w(v.overrides)}return v}var t5=e5();const r5=t5;function n5(e,t){return $w(e,C({defaultTheme:r5},t))}var o5=function(t){return{root:{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,fontSize:t.typography.pxToRem(24),transition:t.transitions.create("fill",{duration:t.transitions.duration.shorter})},colorPrimary:{color:t.palette.primary.main},colorSecondary:{color:t.palette.secondary.main},colorAction:{color:t.palette.action.active},colorError:{color:t.palette.error.main},colorDisabled:{color:t.palette.action.disabled},fontSizeInherit:{fontSize:"inherit"},fontSizeSmall:{fontSize:t.typography.pxToRem(20)},fontSizeLarge:{fontSize:t.typography.pxToRem(35)}}},Qi=H.forwardRef(function(t,r){var n=t.children,o=t.classes,i=t.className,a=t.color,s=a===void 0?"inherit":a,c=t.component,u=c===void 0?"svg":c,d=t.fontSize,p=d===void 0?"medium":d,b=t.htmlColor,h=t.titleAccess,v=t.viewBox,m=v===void 0?"0 0 24 24":v,y=ze(t,["children","classes","className","color","component","fontSize","htmlColor","titleAccess","viewBox"]);return ce(u,{className:Qa(o.root,i,s!=="inherit"&&o["color".concat(pi(s))],p!=="default"&&p!=="medium"&&o["fontSize".concat(pi(p))]),focusable:"false",viewBox:m,color:b,"aria-hidden":h?void 0:!0,role:h?"img":void 0,ref:r,...y,children:[n,h?T("title",{children:h}):null]})});process.env.NODE_ENV!=="production"&&(Qi.propTypes={children:ue.exports.node,classes:ue.exports.object,className:ue.exports.string,color:ue.exports.oneOf(["action","disabled","error","inherit","primary","secondary"]),component:ue.exports.elementType,fontSize:cf(ue.exports.oneOf(["default","inherit","large","medium","small"]),function(e){var t=e.fontSize;if(t==="default")throw new Error('Material-UI: `fontSize="default"` is deprecated. Use `fontSize="medium"` instead.');return null}),htmlColor:ue.exports.string,shapeRendering:ue.exports.string,titleAccess:ue.exports.string,viewBox:ue.exports.string}),Qi.muiName="SvgIcon";const yp=n5(o5,{name:"MuiSvgIcon"})(Qi);function i5(e,t){var r=function(o,i){return T(yp,{ref:i,...o,children:e})};return process.env.NODE_ENV!=="production"&&(r.displayName="".concat(t,"Icon")),r.muiName=yp.muiName,ie.default.memo(ie.default.forwardRef(r))}function a5(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:166,r;function n(){for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];var s=this,c=function(){e.apply(s,i)};clearTimeout(r),r=setTimeout(c,t)}return n.clear=function(){clearTimeout(r)},n}function s5(e,t){return process.env.NODE_ENV==="production"?function(){return null}:function(r,n,o,i,a){var s=o||"<<anonymous>>",c=a||n;return typeof r[n]<"u"?new Error("The ".concat(i," `").concat(c,"` of ")+"`".concat(s,"` is deprecated. ").concat(t)):null}}function l5(e,t){return H.isValidElement(e)&&t.indexOf(e.type.muiName)!==-1}function _p(e){return e&&e.ownerDocument||document}function c5(e){var t=_p(e);return t.defaultView||window}function u5(e){if(process.env.NODE_ENV==="production")return function(){return null};var t=function(n){return function(o,i,a,s,c){var u=c||i;return typeof o[i]<"u"&&!o[n]?new Error("The prop `".concat(u,"` of ")+"`".concat(e,"` must be used on `").concat(n,"`.")):null}};return t}function ea(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function d5(e,t,r,n,o){if(process.env.NODE_ENV==="production")return null;var i=o||t;return typeof e[t]<"u"?new Error("The prop `".concat(i,"` is not supported. Please remove it.")):null}function f5(e){var t=e.controlled,r=e.default,n=e.name,o=e.state,i=o===void 0?"value":o,a=H.useRef(t!==void 0),s=a.current,c=H.useState(r),u=c[0],d=c[1],p=s?t:u;if(process.env.NODE_ENV!=="production"){H.useEffect(function(){s!==(t!==void 0)&&console.error(["Material-UI: A component is changing the ".concat(s?"":"un","controlled ").concat(i," state of ").concat(n," to be ").concat(s?"un":"","controlled."),"Elements should not switch from uncontrolled to controlled (or vice versa).","Decide between using a controlled or uncontrolled ".concat(n," ")+"element for the lifetime of the component.","The nature of the state is determined during the first render, it's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
1389
+ `))},[t]);var b=H.useRef(r),h=b.current;H.useEffect(function(){!s&&h!==r&&console.error(["Material-UI: A component is changing the default ".concat(i," state of an uncontrolled ").concat(n," after being initialized. ")+"To suppress this warning opt to use a controlled ".concat(n,".")].join(`
1390
+ `))},[JSON.stringify(r)])}var v=H.useCallback(function(m){s||d(m)},[]);return[p,v]}var p5=typeof window<"u"?H.useLayoutEffect:H.useEffect;function h5(e){var t=H.useRef(e);return p5(function(){t.current=e}),H.useCallback(function(){return t.current.apply(void 0,arguments)},[])}function b5(e,t){return H.useMemo(function(){return e==null&&t==null?null:function(r){ea(e,r),ea(t,r)}},[e,t])}function m5(e){var t=H.useState(e),r=t[0],n=t[1],o=e||r;return H.useEffect(function(){r==null&&n("mui-".concat(Math.round(Math.random()*1e5)))},[r]),o}var xn=!0,ta=!1,$p=null,v5={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function g5(e){var t=e.type,r=e.tagName;return!!(r==="INPUT"&&v5[t]&&!e.readOnly||r==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function y5(e){e.metaKey||e.altKey||e.ctrlKey||(xn=!0)}function ra(){xn=!1}function _5(){this.visibilityState==="hidden"&&ta&&(xn=!0)}function $5(e){e.addEventListener("keydown",y5,!0),e.addEventListener("mousedown",ra,!0),e.addEventListener("pointerdown",ra,!0),e.addEventListener("touchstart",ra,!0),e.addEventListener("visibilitychange",_5,!0)}function xp(e){var t=e.target;try{return t.matches(":focus-visible")}catch{}return xn||g5(t)}function x5(){ta=!0,window.clearTimeout($p),$p=window.setTimeout(function(){ta=!1},100)}function w5(){var e=H.useCallback(function(t){var r=sa.findDOMNode(t);r!=null&&$5(r.ownerDocument)},[]);return process.env.NODE_ENV!=="production"&&H.useDebugValue(xp),{isFocusVisible:xp,onBlurVisible:x5,ref:e}}const E5=ch(Object.freeze(Object.defineProperty({__proto__:null,capitalize:pi,createChainedFunction:i1,createSvgIcon:i5,debounce:a5,deprecatedPropType:s5,isMuiElement:l5,ownerDocument:_p,ownerWindow:c5,requirePropFactory:u5,setRef:ea,unsupportedProp:d5,useControlled:f5,useEventCallback:h5,useForkRef:b5,unstable_useId:m5,useIsFocusVisible:w5},Symbol.toStringTag,{value:"Module"})));var wp;function Ep(){return wp||(wp=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=E5}(oi)),oi}var P5=ri.exports,S5=ni.exports;Object.defineProperty(ti,"__esModule",{value:!0});var Pp=ti.default=void 0,C5=S5(ie.default),T5=P5(Ep()),O5=(0,T5.default)(C5.createElement("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}),"Search");Pp=ti.default=O5;var na={},k5=ri.exports,D5=ni.exports;Object.defineProperty(na,"__esModule",{value:!0});var Sp=na.default=void 0,I5=D5(ie.default),A5=k5(Ep()),N5=(0,A5.default)(I5.createElement("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear");Sp=na.default=N5;const M5=A.default.div`
1391
+ --border-color: ${f.color_outline_secondary_enabled};
1392
+ border-radius: ${f.border_radius_400};
1393
+ position: relative;
1394
+
1395
+ &:hover {
1396
+ --border-color: ${f.color_outline_secondary_hover};
1397
+ background-color: ${f.color_overlay_secondary_hover};
1398
+ }
1399
+
1400
+ &:focus-within {
1401
+ background-color: ${f.color_overlay_secondary_enabled};
1402
+ outline: 1px solid black;
1403
+ --border-color: ${f.color_black};
1404
+ }
1405
+
1406
+ & > svg {
1407
+ display: block;
1408
+ position: absolute;
1409
+ left: 11px;
1410
+ width: 18px;
1411
+ height: 18px;
1412
+ top: 0;
1413
+ bottom: 0;
1414
+ margin: auto 0;
1415
+ font-size: 1rem;
1416
+ fill: ${f.color_text_weak};
1417
+ }
1418
+ `,L5=A.default(Su)`
1419
+ all: unset;
1420
+ position: absolute;
1421
+ right: 10px;
1422
+ top: 0;
1423
+ bottom: 0;
1424
+ margin: auto 0;
1425
+ cursor: pointer;
1426
+ border-radius: ${f.border_radius_circle};
1427
+ background-color: ${f.color_text_weak};
1428
+ color: white;
1429
+ display: grid;
1430
+ place-items: center;
1431
+ // I think this needs to be an even number cu
1432
+ width: 16px;
1433
+ height: 16px;
1434
+ & > svg {
1435
+ margin: 0;
1436
+ line-height: 0;
1437
+ font-size: ${f.font_size_50};
1438
+ }
1439
+ `,F5=A.default(er)`
1440
+ padding-left: 32px;
1441
+ /* width: 100%; */
1442
+
1443
+ // Use our own custom clear button
1444
+ // https://stackoverflow.com/questions/9421551/how-do-i-remove-all-default-webkit-search-field-styling
1445
+ &::-webkit-search-decoration,
1446
+ &::-webkit-search-cancel-button,
1447
+ &::-webkit-search-results-button,
1448
+ &::-webkit-search-results-decoration {
1449
+ -webkit-appearance: none;
1450
+ }
1451
+ `,R5=l.forwardRef((e,t)=>{const{label:r,size:n="small",placeholder:o="Search",disabled:i,readOnly:a,required:s,...c}=e,u={label:r,placeholder:o,isDisabled:i,isReadOnly:a,isRequired:s,...c},d=H$(u),p=bt(t),{labelProps:b,inputProps:h,clearButtonProps:v}=q$(u,d,p);return ce(M5,{children:[T(Pp,{}),T("label",{...b,children:r}),T(F5,{...h,ref:p,placeholder:o,paddingSize:n}),d.value!==""&&T(L5,{...v,children:T(Sp,{})})]})}),Cp="Switch",[z5,AE]=Se(Cp),[V5,j5]=z5(Cp),B5=l.forwardRef((e,t)=>{const{__scopeSwitch:r,name:n,checked:o,defaultChecked:i,required:a,disabled:s,value:c="on",onCheckedChange:u,...d}=e,[p,b]=l.useState(null),h=le(t,_=>b(_)),v=l.useRef(!1),m=p?Boolean(p.closest("form")):!0,[y=!1,$]=Me({prop:o,defaultProp:i,onChange:u});return l.createElement(V5,{scope:r,checked:y,disabled:s},l.createElement(Q.button,C({type:"button",role:"switch","aria-checked":y,"aria-required":a,"data-state":Tp(y),"data-disabled":s?"":void 0,disabled:s,value:c},d,{ref:h,onClick:K(e.onClick,_=>{$(w=>!w),m&&(v.current=_.isPropagationStopped(),v.current||_.stopPropagation())})})),m&&l.createElement(K5,{control:p,bubbles:!v.current,name:n,value:c,checked:y,required:a,disabled:s,style:{transform:"translateX(-100%)"}}))}),W5="SwitchThumb",U5=l.forwardRef((e,t)=>{const{__scopeSwitch:r,...n}=e,o=j5(W5,r);return l.createElement(Q.span,C({"data-state":Tp(o.checked),"data-disabled":o.disabled?"":void 0},n,{ref:t}))}),K5=e=>{const{control:t,checked:r,bubbles:n=!0,...o}=e,i=l.useRef(null),a=Xr(r),s=Hr(t);return l.useEffect(()=>{const c=i.current,u=window.HTMLInputElement.prototype,p=Object.getOwnPropertyDescriptor(u,"checked").set;if(a!==r&&p){const b=new Event("click",{bubbles:n});p.call(c,r),c.dispatchEvent(b)}},[a,r,n]),l.createElement("input",C({type:"checkbox","aria-hidden":!0,defaultChecked:r},o,{tabIndex:-1,ref:i,style:{...e.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function Tp(e){return e?"checked":"unchecked"}const H5=B5,G5=U5,q5=A.default(H5)`
1326
1452
  all: unset;
1327
1453
  width: 40px;
1328
1454
  height: 24px;
1329
- background-color: ${c.color_fill_secondary_enabled};
1455
+ background-color: ${f.color_fill_secondary_enabled};
1330
1456
  border-radius: 9999px;
1331
1457
  position: relative;
1332
- transition-property: ${c.transition_property_color};
1333
- transition-timing-function: linear;
1334
- transition-duration: ${c.transition_duration_150};
1458
+ transition-property: ${f.transition_property_color};
1459
+ transition-duration: ${f.transition_duration_150};
1335
1460
 
1336
1461
  &:focus-visible {
1337
1462
  outline-offset: 2px;
@@ -1340,38 +1465,38 @@ Defaulting to \`${Qr}\`.`}function Wl(e){return hm.includes(e)}const _m=Rl;funct
1340
1465
  }
1341
1466
 
1342
1467
  &:hover {
1343
- background-color: ${c.color_fill_secondary_hover};
1468
+ background-color: ${f.color_fill_secondary_hover};
1344
1469
  }
1345
1470
 
1346
1471
  &:active {
1347
- background-color: ${c.color_fill_secondary_pressed};
1472
+ background-color: ${f.color_fill_secondary_pressed};
1348
1473
  }
1349
1474
 
1350
1475
  &[data-disabled] {
1351
- background: ${c.color_fill_secondary_disabled};
1476
+ background: ${f.color_fill_secondary_disabled};
1352
1477
  cursor: not-allowed;
1353
1478
  }
1354
1479
 
1355
- &[data-state~='checked'] {
1356
- background-color: ${c.color_black};
1480
+ &[aria-checked='true'] {
1481
+ background-color: ${f.color_black};
1357
1482
  }
1358
1483
 
1359
- &[data-state~='checked']:hover {
1360
- background-color: ${c.color_fill_primary_hover};
1484
+ &[aria-checked='true']:hover {
1485
+ background-color: ${f.color_fill_primary_hover};
1361
1486
  }
1362
1487
 
1363
- &[data-state~='checked']:active {
1364
- background-color: ${c.color_fill_primary_pressed};
1488
+ &[aria-checked='true']:active {
1489
+ background-color: ${f.color_fill_primary_pressed};
1365
1490
  }
1366
- `,lh=k.default(ih)`
1491
+ `,Y5=A.default(G5)`
1367
1492
  --thumb-width: 18px;
1368
1493
  display: block;
1369
1494
  width: var(--thumb-width);
1370
1495
  height: var(--thumb-width);
1371
1496
  background-color: white;
1372
- border-radius: ${c.border_radius_circle};
1373
- box-shadow: ${c.elevation_interactive_medium};
1374
- transition: transform ${c.transition_duration_100};
1497
+ border-radius: ${f.border_radius_circle};
1498
+ box-shadow: ${f.elevation_interactive_medium};
1499
+ transition: transform ${f.transition_duration_100};
1375
1500
  transform: translateX(2px);
1376
1501
  will-change: transform;
1377
1502
 
@@ -1382,83 +1507,83 @@ Defaulting to \`${Qr}\`.`}function Wl(e){return hm.includes(e)}const _m=Rl;funct
1382
1507
  &[data-state='checked'] {
1383
1508
  transform: translateX(19px);
1384
1509
  }
1385
- `,ch=a.forwardRef((e,t)=>{const{disabled:n,...r}=e,o=zl(n);return T(sh,{...r,...o,ref:t,children:T(lh,{})})}),zt=k.default.p`
1386
- font-family: ${c.font_family_inter};
1510
+ `,X5=l.forwardRef((e,t)=>{const{disabled:r,...n}=e,o=Iu(r);return T(q5,{...n,...o,ref:t,children:T(Y5,{})})}),hr=A.default.p`
1511
+ font-family: ${f.font_family_inter};
1387
1512
  font-style: normal;
1388
1513
  font-weight: var(--text-font-weight, 400);
1389
- color: var(--text-color, ${c.color_text_strong});
1514
+ color: var(--text-color, ${f.color_text_strong});
1390
1515
  margin-block: 0;
1391
- `,bo=k.default(zt)`
1516
+ `,oa=A.default(hr)`
1392
1517
  max-width: 60ch; // should check with designers
1393
- `,dh=k.default(bo)`
1394
- letter-spacing: ${c.letter_spacing_body_large};
1395
- line-height: ${c.line_height_body_large};
1396
- font-size: ${c.font_size_body_large};
1397
- `,uh=k.default(bo)`
1398
- letter-spacing: ${c.letter_spacing_body_medium};
1399
- line-height: ${c.line_height_body_medium};
1400
- font-size: ${c.font_size_body_medium};
1401
- `,fh=k.default(bo)`
1402
- letter-spacing: ${c.letter_spacing_body_small};
1403
- line-height: ${c.line_height_body_small};
1404
- font-size: ${c.font_size_body_small};
1405
- `,ph={large:dh,medium:uh,small:fh};function bh({size:e="medium",bold:t,...n}){const r=ph[e];return T(r,{...n})}const Mn=k.default.p`
1518
+ `,J5=A.default(oa)`
1519
+ letter-spacing: ${f.letter_spacing_body_large};
1520
+ line-height: ${f.line_height_body_large};
1521
+ font-size: ${f.font_size_body_large};
1522
+ `,Z5=A.default(oa)`
1523
+ letter-spacing: ${f.letter_spacing_body_medium};
1524
+ line-height: ${f.line_height_body_medium};
1525
+ font-size: ${f.font_size_body_medium};
1526
+ `,Q5=A.default(oa)`
1527
+ letter-spacing: ${f.letter_spacing_body_small};
1528
+ line-height: ${f.line_height_body_small};
1529
+ font-size: ${f.font_size_body_small};
1530
+ `,eE={large:J5,medium:Z5,small:Q5};function tE({size:e="medium",bold:t,...r}){const n=eE[e];return T(n,{...r})}const wn=A.default.p`
1406
1531
  font-feature-settings: 'tnum' on, 'lnum' on, 'ss01' on;
1407
- font-family: ${c.font_family_inter};
1532
+ font-family: ${f.font_family_inter};
1408
1533
  font-style: normal;
1409
1534
  font-weight: var(--text-font-weight, 400);
1410
- color: var(--text-color, ${c.color_text_strong});
1535
+ color: var(--text-color, ${f.color_text_strong});
1411
1536
  margin-block: 0;
1412
- `,mh=k.default(Mn)`
1413
- letter-spacing: ${c.letter_spacing_number_xsmall};
1414
- line-height: ${c.line_height_number_xsmall};
1415
- font-size: ${c.font_size_number_xsmall};
1416
- `,gh=k.default(Mn)`
1417
- letter-spacing: ${c.letter_spacing_number_small};
1418
- line-height: ${c.line_height_number_small};
1419
- font-size: ${c.font_size_number_small};
1420
- `,Ic=k.default(Mn)`
1421
- letter-spacing: ${c.letter_spacing_number_medium};
1422
- line-height: ${c.line_height_number_medium};
1423
- font-size: ${c.font_size_number_medium};
1424
- `,$h=k.default(Mn)`
1425
- letter-spacing: ${c.letter_spacing_number_large};
1426
- line-height: ${c.line_height_number_large};
1427
- font-size: ${c.font_size_number_large};
1428
- `,hh={xsmall:mh,small:gh,medium:Ic,large:$h};function vh({size:e="medium",bold:t,...n}){const r=hh[e];return T(r,{...n})}const _h=k.default(zt)`
1429
- letter-spacing: ${c.letter_spacing_number_small};
1430
- line-height: ${c.line_height_number_small};
1431
- font-size: ${c.font_size_number_small};
1432
- `,yh=k.default(zt)`
1433
- letter-spacing: ${c.letter_spacing_number_xsmall};
1434
- line-height: ${c.line_height_number_xsmall};
1435
- font-size: ${c.font_size_number_xsmall};
1436
- `,xh=k.default(zt)`
1437
- letter-spacing: ${c.letter_spacing_number_large};
1438
- line-height: ${c.line_height_number_large};
1439
- font-size: ${c.font_size_number_large};
1440
- `,wh=k.default(zt)`
1441
- letter-spacing: ${c.letter_spacing_number_medium};
1442
- line-height: ${c.line_height_number_medium};
1443
- font-size: ${c.font_size_number_medium};
1444
- `,Eh={xsmall:yh,small:_h,medium:wh,large:xh};function Ph({size:e="medium",bold:t,...n}){const r=Eh[e]||Ic;return T(r,{...n})}const Ch={caption:Ph,body:bh,number:vh},Th={normal:{standard:c.color_text_standard,strong:c.color_text_strong,weak:c.color_text_weak},sentiment:{positive:c.color_text_sentiment_positive,negative:c.color_text_sentiment_negative,notice:c.color_text_sentiment_notice,neutral:c.color_text_sentiment_neutral}},Ac=a.forwardRef((e,t)=>{const{type:n="body",textType:r="normal",variant:o="standard",bold:i,as:s,...l}=e,d=Ch[n]||"div",u=Th[r][o];return T(d,{as:s,...l,ref:t,style:{"--text-font-weight":i?500:400,"--text-color":u}})});Ac.displayName="Text";const Fn=k.default.h1`
1445
- font-family: ${c.font_family_inter_display};
1537
+ `,rE=A.default(wn)`
1538
+ letter-spacing: ${f.letter_spacing_number_xsmall};
1539
+ line-height: ${f.line_height_number_xsmall};
1540
+ font-size: ${f.font_size_number_xsmall};
1541
+ `,nE=A.default(wn)`
1542
+ letter-spacing: ${f.letter_spacing_number_small};
1543
+ line-height: ${f.line_height_number_small};
1544
+ font-size: ${f.font_size_number_small};
1545
+ `,Op=A.default(wn)`
1546
+ letter-spacing: ${f.letter_spacing_number_medium};
1547
+ line-height: ${f.line_height_number_medium};
1548
+ font-size: ${f.font_size_number_medium};
1549
+ `,oE=A.default(wn)`
1550
+ letter-spacing: ${f.letter_spacing_number_large};
1551
+ line-height: ${f.line_height_number_large};
1552
+ font-size: ${f.font_size_number_large};
1553
+ `,iE={xsmall:rE,small:nE,medium:Op,large:oE};function aE({size:e="medium",bold:t,...r}){const n=iE[e];return T(n,{...r})}const sE=A.default(hr)`
1554
+ letter-spacing: ${f.letter_spacing_number_small};
1555
+ line-height: ${f.line_height_number_small};
1556
+ font-size: ${f.font_size_number_small};
1557
+ `,lE=A.default(hr)`
1558
+ letter-spacing: ${f.letter_spacing_number_xsmall};
1559
+ line-height: ${f.line_height_number_xsmall};
1560
+ font-size: ${f.font_size_number_xsmall};
1561
+ `,cE=A.default(hr)`
1562
+ letter-spacing: ${f.letter_spacing_number_large};
1563
+ line-height: ${f.line_height_number_large};
1564
+ font-size: ${f.font_size_number_large};
1565
+ `,uE=A.default(hr)`
1566
+ letter-spacing: ${f.letter_spacing_number_medium};
1567
+ line-height: ${f.line_height_number_medium};
1568
+ font-size: ${f.font_size_number_medium};
1569
+ `,dE={xsmall:lE,small:sE,medium:uE,large:cE};function fE({size:e="medium",bold:t,...r}){const n=dE[e]||Op;return T(n,{...r})}const pE={caption:fE,body:tE,number:aE},hE={normal:{standard:f.color_text_standard,strong:f.color_text_strong,weak:f.color_text_weak},sentiment:{positive:f.color_text_sentiment_positive,negative:f.color_text_sentiment_negative,notice:f.color_text_sentiment_notice,neutral:f.color_text_sentiment_neutral}},kp=l.forwardRef((e,t)=>{const{type:r="body",textType:n="normal",variant:o="standard",bold:i,as:a,...s}=e,c=pE[r]||"div",d=hE[n][o];return T(c,{as:a,...s,ref:t,style:{"--text-font-weight":i?500:400,"--text-color":d}})});kp.displayName="Text";const En=A.default.h1`
1570
+ font-family: ${f.font_family_inter_display};
1446
1571
  font-style: normal;
1447
1572
  font-weight: 500; // don't really see value of using tokens for font-weight
1448
1573
  margin: 0;
1449
1574
  padding-inline: 0;
1450
- color: ${c.color_text_strong};
1451
- `,Sh=k.default(Fn)`
1452
- font-size: ${c.font_size_title_large};
1453
- letter-spacing: ${c.letter_spacing_title_large};
1454
- `,kh=k.default(Fn)`
1455
- font-size: ${c.font_size_title_medium};
1456
- letter-spacing: ${c.letter_spacing_title_medium};
1457
- `,Dh=k.default(Fn)`
1458
- font-size: ${c.font_size_title_small};
1459
- letter-spacing: ${c.letter_spacing_title_small};
1460
- `,Oh={xsmall:k.default(Fn)`
1461
- font-size: ${c.font_size_title_xsmall};
1462
- letter-spacing: ${c.letter_spacing_title_xsmall};
1463
- `,small:Dh,medium:kh,large:Sh},Lc=a.forwardRef((e,t)=>{const{children:n,size:r,as:o,...i}=e,s=Oh[r];return T(s,{...i,as:o,ref:t,children:n})});Lc.displayName="Title",I.AccessibleIcon=Jt,I.AlertDialog=Zu,I.AlertDialogAction=Qu,I.AlertDialogCancel=ef,I.AlertDialogContent=Gu,I.AlertDialogDescription=qu,I.AlertDialogFooter=Xu,I.AlertDialogTitle=Yu,I.AlertDialogTrigger=Ju,I.BreadcrumbItem=ns,I.BreadcrumbLink=Qi,I.BreadcrumbListItem=zr,I.Breadcrumbs=ts,I.Button=rs,I.Checkbox=sm,I.Dialog=Wu,I.DialogClose=Ku,I.DialogCloseButton=Ru,I.DialogContent=Nu,I.DialogDescription=Bu,I.DialogFooter=Vu,I.DialogTitle=zu,I.DialogTrigger=Hu,I.Fieldset=o0,I.FormControl=nm,I.Heading=Bl,I.IconButton=Vl,I.Label=je,I.NumberFormControl=Nl,I.NumberInput=qr,I.Popover=Xi,I.PopoverClose=kb,I.PopoverContent=Sb,I.PopoverTrigger=Zi,I.Radio=Hg,I.RadioGroup=Rg,I.RadioGroupIndicator=uc,I.RadioGroupRadio=Wg,I.Select=xc,I.SelectContent=_c,I.SelectGroup=G$,I.SelectGroupLabel=q$,I.SelectIcon=Pc,I.SelectItem=Cc,I.SelectItemIndicator=Y$,I.SelectItemText=Tc,I.SelectScrollDownButton=kc,I.SelectScrollUpButton=Sc,I.SelectSeparator=X$,I.SelectTrigger=wc,I.SelectValue=Ec,I.SelectViewport=j$,I.SingleSelect=Z$,I.StyledFieldSet=is,I.StyledTrigger=vc,I.Switch=ch,I.Text=Ac,I.TextAreaFormControl=Fl,I.TextFormControl=Ml,I.TextInput=Hr,I.Title=Lc,I.Toast=ag,I.ToastAction=Zm,I.ToastClose=Ql,I.ToastProvider=og,I.ToastSeparator=ec,I.ToastViewport=ng,I.Tooltip=bs,I.TooltipContent=ms,I.TooltipProvider=ps,I.TooltipTrigger=fs,I.contentShow=or,I.dialogWidths=ar,I.overlayShow=rr,I.useFieldProps=Tn,I.useFieldset=Ue,Object.defineProperties(I,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
1575
+ color: ${f.color_text_strong};
1576
+ `,bE=A.default(En)`
1577
+ font-size: ${f.font_size_title_large};
1578
+ letter-spacing: ${f.letter_spacing_title_large};
1579
+ `,mE=A.default(En)`
1580
+ font-size: ${f.font_size_title_medium};
1581
+ letter-spacing: ${f.letter_spacing_title_medium};
1582
+ `,vE=A.default(En)`
1583
+ font-size: ${f.font_size_title_small};
1584
+ letter-spacing: ${f.letter_spacing_title_small};
1585
+ `,gE={xsmall:A.default(En)`
1586
+ font-size: ${f.font_size_title_xsmall};
1587
+ letter-spacing: ${f.letter_spacing_title_xsmall};
1588
+ `,small:vE,medium:mE,large:bE},Dp=l.forwardRef((e,t)=>{const{children:r,size:n,as:o,...i}=e,a=gE[n];return T(a,{...i,as:o,ref:t,children:r})});Dp.displayName="Title",R.AccessibleIcon=qt,R.AlertDialog=G0,R.AlertDialogAction=Y0,R.AlertDialogCancel=X0,R.AlertDialogContent=W0,R.AlertDialogDescription=K0,R.AlertDialogFooter=H0,R.AlertDialogTitle=U0,R.AlertDialogTrigger=q0,R.BreadcrumbItem=Xl,R.BreadcrumbLink=Gl,R.BreadcrumbListItem=So,R.Breadcrumbs=Yl,R.Button=To,R.Checkbox=Zg,R.Dialog=R0,R.DialogClose=V0,R.DialogCloseButton=F0,R.DialogContent=A0,R.DialogDescription=M0,R.DialogFooter=L0,R.DialogTitle=N0,R.DialogTrigger=z0,R.Fieldset=Xv,R.FormControl=Gg,R.Heading=Au,R.IconButton=Nu,R.Label=rt,R.NumberFormControl=Du,R.NumberInput=Fo,R.Pagination=Qy,R.PaginatorButton=un,R.PaginatorNumber=dn,R.Popover=Ul,R.PopoverClose=$v,R.PopoverContent=_v,R.PopoverTrigger=Kl,R.Radio=F_,R.RadioGroup=M_,R.RadioGroupIndicator=ad,R.RadioGroupRadio=L_,R.Search=R5,R.Select=vd,R.SelectContent=bd,R.SelectGroup=j$,R.SelectGroupLabel=W$,R.SelectIcon=_d,R.SelectItem=$d,R.SelectItemIndicator=B$,R.SelectItemText=xd,R.SelectScrollDownButton=Ed,R.SelectScrollUpButton=wd,R.SelectSeparator=U$,R.SelectTrigger=gd,R.SelectValue=yd,R.SelectViewport=V$,R.SingleSelect=K$,R.StyledFieldSet=Ql,R.StyledTrigger=hd,R.Switch=X5,R.Text=kp,R.TextAreaFormControl=ku,R.TextFormControl=Ou,R.TextInput=Do,R.Title=Dp,R.Toast=Xy,R.ToastAction=By,R.ToastClose=Gu,R.ToastProvider=Yy,R.ToastSeparator=qu,R.ToastViewport=Gy,R.Tooltip=sc,R.TooltipContent=lc,R.TooltipProvider=ac,R.TooltipTrigger=ic,R.contentShow=Hn,R.dialogWidths=Gn,R.overlayShow=Kn,R.useFieldProps=on,R.useFieldset=tt,Object.defineProperties(R,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
1464
1589
  //# sourceMappingURL=trc-components.umd.js.map