@theroutingcompany/components 0.0.3 → 0.0.4

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,26 +1,26 @@
1
- (function(A,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):(A=typeof globalThis<"u"?globalThis:A||self,a(A["trc-components"]={},A.React,A.ReactDOM,A.styled,A.ReactIs,A.icons))})(this,function(A,a,Qe,lt,Lc,ve){"use strict";const Nn=e=>e&&typeof e=="object"&&"default"in e?e:{default:e};function mo(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=mo(a),de=Nn(a),Mc=Nn(Qe),Fc=mo(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 Nc(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,zc(o,...t)]}function zc(...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 Bc(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function go(...e){return t=>e.forEach(n=>Bc(n,t))}function J(...e){return a.useCallback(go(...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:()=>{},Vc=j["useId".toString()]||(()=>{});let Rc=0;function Le(e){const[t,n]=j.useState(Vc());return pe(()=>{e||n(r=>r!=null?r:String(Rc++))},[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]=Wc({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 Wc({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(Hc);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,{...Kc(r,n.props),ref:go(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 Hc(e){return a.isValidElement(e)&&e.type===Bn}function Kc(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 $o(e,t){e&&Qe.flushSync(()=>e.dispatchEvent(t))}function Uc(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",jc="dismissableLayer.pointerDownOutside",Gc="dismissableLayer.focusOutside";let ho;const vo=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(vo),[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,I=>$(I)),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=qc(I=>{const F=I.target,W=[...u.branches].some(P=>P.contains(F));!O||W||(i==null||i(I),l==null||l(I),I.defaultPrevented||d==null||d())},b),C=Xc(I=>{const F=I.target;[...u.branches].some(P=>P.contains(F))||(s==null||s(I),l==null||l(I),I.defaultPrevented||d==null||d())},b);return Uc(I=>{w===u.layers.size-1&&(o==null||o(I),!I.defaultPrevented&&d&&(I.preventDefault(),d()))},b),a.useEffect(()=>{if(!!p)return r&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(ho=b.body.style.pointerEvents,b.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(p)),u.layers.add(p),_o(),()=>{r&&u.layersWithOutsidePointerEventsDisabled.size===1&&(b.body.style.pointerEvents=ho)}},[p,b,r,u]),a.useEffect(()=>()=>{!p||(u.layers.delete(p),u.layersWithOutsidePointerEventsDisabled.delete(p),_o())},[p,u]),a.useEffect(()=>{const I=()=>h({});return document.addEventListener(Vn,I),()=>document.removeEventListener(Vn,I)},[]),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)}))}),Yc=a.forwardRef((e,t)=>{const n=a.useContext(vo),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 qc(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(){yo(jc,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 Xc(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&&yo(Gc,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 _o(){const e=new CustomEvent(Vn);document.dispatchEvent(e)}function yo(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?$o(o,i):o.dispatchEvent(i)}const Zc=St,Jc=Yc,Rn="focusScope.autoFocusOnMount",Wn="focusScope.autoFocusOnUnmount",xo={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){Po.add(b);const m=document.activeElement;if(!l.contains(m)){const y=new CustomEvent(Rn,xo);l.addEventListener(Rn,f),l.dispatchEvent(y),y.defaultPrevented||(Qc(od(wo(l)),{select:!0}),document.activeElement===m&&tt(l))}return()=>{l.removeEventListener(Rn,f),setTimeout(()=>{const y=new CustomEvent(Wn,xo);l.addEventListener(Wn,u),l.dispatchEvent(y),y.defaultPrevented||tt(m!=null?m:document.body,{select:!0}),l.removeEventListener(Wn,u),Po.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]=ed(_);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 Qc(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(tt(r,{select:t}),document.activeElement!==n)return}function ed(e){const t=wo(e),n=Eo(t,e),r=Eo(t.reverse(),e);return[n,r]}function wo(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 Eo(e,t){for(const n of e)if(!td(n,{upTo:t}))return n}function td(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 nd(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&&nd(e)&&t&&e.select()}}const Po=rd();function rd(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Co(e,t),e.unshift(t)},remove(t){var n;e=Co(e,t),(n=e[0])===null||n===void 0||n.resume()}}}function Co(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function od(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?Mc.default.createPortal(a.createElement(R.div,D({},o,{ref:t})),r):null});function ad(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=id(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 id(e){const[t,n]=a.useState(),r=a.useRef({}),o=a.useRef(e),i=a.useRef("none"),s=e?"mounted":"unmounted",[l,d]=ad(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:To()),document.body.insertAdjacentElement("beforeend",(t=n[1])!==null&&t!==void 0?t:To()),Kn++,()=>{Kn===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),Kn--}},[])}function To(){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 So(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 sd(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",ld="with-scroll-bars-hidden",cd="--removed-body-scroll-bar-size";function dd(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function ud(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 fd(e,t){return ud(t||null,function(n){return e.forEach(function(r){return dd(r,n)})})}var Ut={exports:{}},ct={};/** @license React v16.14.0
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 U=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=U["useId".toString()]||(()=>{});let Wc=0;function Le(e){const[t,n]=U.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
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 ko;function pd(){if(ko)return ct;ko=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 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
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 Do;function bd(){return Do||(Do=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];I("error",x,N)}}function I(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 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 j(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 j(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`
17
17
 
18
18
  Check the render method of \``+x+"`."}return""}}function we(x){{if(x!==void 0){var M=x.fileName.replace(/^.*[\\\/]/,""),N=x.lineNumber;return`
19
19
 
20
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=`
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 bo=0;bo<Tt.length;bo++)he(Tt[bo],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=pd():e.exports=bd()})(Ut);const Gn=Ut.exports.Fragment,T=Ut.exports.jsx,ee=Ut.exports.jsxs;function md(e){return e}function gd(e,t){t===void 0&&(t=md);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 $d(e){e===void 0&&(e={});var t=gd(null);return t.options=Ce({async:!0,ssr:!1},e),t}var Oo=function(e){var t=e.sideCar,n=So(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)})};Oo.isSideCarExport=!0;function hd(e,t){return e.useMedium(t),Oo}var Io=$d(),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,_=So(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),w=$,g=fd([n,t]),O=Ce(Ce({},_),o);return ee(Gn,{children:[u&&T(w,{sideCar:Io,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 vd=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function _d(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=vd();return t&&e.setAttribute("nonce",t),e}function yd(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function xd(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var wd=function(){var e=0,t=null;return{add:function(n){e==0&&(t=_d())&&(yd(t,n),xd(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Ed=function(){var e=wd();return function(t,n){j.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Ao=function(){var e=Ed(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},Pd={left:0,top:0,right:0,gap:0},qn=function(e){return parseInt(e||"",10)||0},Cd=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)]},Td=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Pd;var t=Cd(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])}},Sd=Ao(),kd=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(ld,` {
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=U.forwardRef(function(e,t){var n=U.useRef(null),r=U.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?U.cloneElement(U.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){U.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
24
  overflow: hidden `).concat(r,`;
25
25
  padding-right: `).concat(l,"px ").concat(r,`;
26
26
  }
@@ -54,12 +54,12 @@ Check the top-level render call using <`+N+">.")}return M}}function Ct(x,M){{if(
54
54
  }
55
55
 
56
56
  body {
57
- `).concat(cd,": ").concat(l,`px;
57
+ `).concat(dd,": ").concat(l,`px;
58
58
  }
59
- `)},Dd=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r,i=j.useMemo(function(){return Td(o)},[o]);return T(Sd,{styles:kd(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,Od=function(e){return e.tagName==="TEXTAREA"},Lo=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Od(e)&&n[t]==="visible")},Id=function(e){return Lo(e,"overflowY")},Ad=function(e){return Lo(e,"overflowX")},Mo=function(e,t){var n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var r=Fo(e,n);if(r){var o=No(e,n),i=o[1],s=o[2];if(i>s)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},Ld=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Md=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Fo=function(e,t){return e==="v"?Id(t):Ad(t)},No=function(e,t){return e==="v"?Ld(t):Md(t)},Fd=function(e,t){return e==="h"&&t==="rtl"?-1:1},Nd=function(e,t,n,r,o){var i=Fd(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=No(e,l),h=b[0],m=b[1],v=b[2],y=m-v-i*h;(h||y)&&Fo(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]},zo=function(e){return[e.deltaX,e.deltaY]},Bo=function(e){return e&&"current"in e?e.current:e},zd=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Bd=function(e){return`
59
+ `)},Od=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r,i=U.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`
60
60
  .block-interactivity-`.concat(e,` {pointer-events: none;}
61
61
  .allow-interactivity-`).concat(e,` {pointer-events: all;}
62
- `)},Vd=0,ut=[];function Rd(e){var t=j.useRef([]),n=j.useRef([0,0]),r=j.useRef(),o=j.useState(Vd++)[0],i=j.useState(function(){return Ao()})[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=sd([e.lockRef.current],(e.shards||[]).map(Bo),!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 I=Mo(C,L);if(!I)return!0;if(I?O=C:(O=C==="v"?"h":"v",I=Mo(C,L)),!I)return!1;if(!r.current&&"changedTouches"in m&&(w||g)&&(r.current=O),!O)return!0;var F=r.current||O;return Nd(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?zo(v):Yt(v),_=t.current.filter(function(O){return O.name===v.type&&O.target===v.target&&zd(O.delta,y)})[0];if(_&&_.should){v.cancelable&&v.preventDefault();return}if(!_){var w=(s.current.shards||[]).map(Bo).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,zo(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:Bd(o)}):null,b?T(Dd,{gapMode:"margin"}):null]})}const Wd=hd(Io,Rd);var Vo=j.forwardRef(function(e,t){return T(jt,{...Ce({},e,{ref:t,sideCar:Wd})})});Vo.classNames=jt.classNames;const Zn=Vo;var Hd=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,Ro=function(e){return e&&(e.host||Ro(e.parentNode))},Kd=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Ro(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)})},Ud=function(e,t,n,r){var o=Kd(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||Hd(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),Ud(r,o,n,"aria-hidden")):function(){return null}};const Wo="Dialog",[Ho,Ko]=ge(Wo),[jd,xe]=Ho(Wo),Gd=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(jd,{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)},Yd="DialogTrigger",qd=a.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=xe(Yd,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)}))}),Uo="DialogPortal",[Xd,jo]=Ho(Uo,{forceMount:void 0}),Zd=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=xe(Uo,t);return a.createElement(Xd,{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",Jd=a.forwardRef((e,t)=>{const n=jo(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(Qd,D({},o,{ref:t}))):null}),Qd=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",eu=a.forwardRef((e,t)=>{const n=jo(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(tu,D({},o,{ref:t})):a.createElement(nu,D({},o,{ref:t})))}),tu=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(Go,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())}))}),nu=a.forwardRef((e,t)=>{const n=xe(pt,e.__scopeDialog),r=a.useRef(!1);return a.createElement(Go,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()}}))}),Go=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)}),Yo="DialogTitle",ru=a.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=xe(Yo,n);return a.createElement(R.h2,D({id:o.titleId},r,{ref:t}))}),ou="DialogDescription",au=a.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=xe(ou,n);return a.createElement(R.p,D({id:o.descriptionId},r,{ref:t}))}),iu="DialogClose",su=a.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=xe(iu,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 lu="DialogTitleWarning",[cu,Ah]=Nc(lu,{contentName:pt,titleName:Yo,docsSlug:"dialog"}),qo=Gd,Xo=qd,Zo=Zd,Jo=Jd,Qo=eu,ea=ru,ta=au,nr=su,du="AlertDialog",[uu,Lh]=ge(du,[Ko]),Me=Ko(),fu=e=>{const{__scopeAlertDialog:t,...n}=e,r=Me(t);return a.createElement(qo,D({},r,n,{modal:!0}))},pu=a.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=Me(n);return a.createElement(Xo,D({},o,r,{ref:t}))}),bu=e=>{const{__scopeAlertDialog:t,...n}=e,r=Me(t);return a.createElement(Zo,D({},r,n))},mu=a.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=Me(n);return a.createElement(Jo,D({},o,r,{ref:t}))}),na="AlertDialogContent",[gu,$u]=uu(na),hu=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(cu,{contentName:na,titleName:vu,docsSlug:"alert-dialog"},a.createElement(gu,{scope:n,cancelRef:d},a.createElement(Qo,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)))}),vu="AlertDialogTitle",_u=a.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=Me(n);return a.createElement(ea,D({},o,r,{ref:t}))}),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(nr,D({},o,r,{ref:t}))}),wu="AlertDialogCancel",Eu=a.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,{cancelRef:o}=$u(wu,n),i=Me(n),s=J(t,o);return a.createElement(nr,D({},i,r,{ref:s}))}),Pu=fu,Cu=pu,Tu=bu,Su=mu,ku=hu,Du=xu,Ou=Eu,Iu=_u,Au=yu,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
+ `)},Rd=0,ut=[];function Wd(e){var t=U.useRef([]),n=U.useRef([0,0]),r=U.useRef(),o=U.useState(Rd++)[0],i=U.useState(function(){return Lo()})[0],s=U.useRef(e);U.useEffect(function(){s.current=e},[e]),U.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=U.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=U.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=U.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=U.useCallback(function(m){n.current=Yt(m),r.current=void 0},[]),p=U.useCallback(function(m){f(m.type,Bo(m),m.target,l(m,e.lockRef.current))},[]),$=U.useCallback(function(m){f(m.type,Yt(m),m.target,l(m,e.lockRef.current))},[]);U.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=U.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`
63
63
  0% {
64
64
  opacity: 0;
65
65
  }
@@ -77,7 +77,7 @@ 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
- `,Lu=k.default(Jo)`
80
+ `,Mu=k.default(Qo)`
81
81
  --overlay-opacity: 0.8;
82
82
  background-color: dimgray; // TODO
83
83
  opacity: var(--overlay-opacity);
@@ -85,7 +85,7 @@ Check the top-level render call using <`+N+">.")}return M}}function Ct(x,M){{if(
85
85
  inset: 0;
86
86
  z-index: 4;
87
87
  animation: ${rr} 150ms cubic-bezier(0.16, 1, 0.3, 1);
88
- `,ar={small:"360px",medium:"540px",large:"960px"},Mu=k.default(Qo)`
88
+ `,ar={small:"360px",medium:"540px",large:"960px"},Fu=k.default(ea)`
89
89
  background: white;
90
90
  padding: ${c.sizing_500};
91
91
  width: ${e=>ar[e.size||"medium"]};
@@ -99,7 +99,7 @@ Check the top-level render call using <`+N+">.")}return M}}function Ct(x,M){{if(
99
99
  box-shadow: ${c.elevation_static_high};
100
100
  border-radius: ${c.border_radius_400};
101
101
  animation: ${or} 150ms cubic-bezier(0.16, 1, 0.3, 1);
102
- `;function Fu({children:e,size:t,...n}){return ee(Zo,{children:[T(Lu,{}),T(Mu,{size:t,...n,children:e})]})}const Nu=k.default(ea)`
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
103
  font-family: ${c.font_family_sans};
104
104
  font-style: normal;
105
105
  font-weight: 500;
@@ -108,7 +108,7 @@ Check the top-level render call using <`+N+">.")}return M}}function Ct(x,M){{if(
108
108
  letter-spacing: ${c.letter_spacing_tighter};
109
109
  margin: 0;
110
110
  margin-bottom: ${c.spacing_200};
111
- `,zu=k.default(ta)`
111
+ `,Bu=k.default(na)`
112
112
  font-family: ${c.font_family_sans};
113
113
  font-style: normal;
114
114
  font-weight: 400;
@@ -117,12 +117,12 @@ Check the top-level render call using <`+N+">.")}return M}}function Ct(x,M){{if(
117
117
  margin: 0;
118
118
  margin-top: ${c.sizing_200}; /* or flex parent and gap? */
119
119
  margin-bottom: ${c.sizing_400};
120
- `,Bu=k.default.footer`
120
+ `,Vu=k.default.footer`
121
121
  margin-top: ${c.spacing_400};
122
122
  display: flex;
123
123
  justify-content: end;
124
124
  gap: ${c.sizing_200};
125
- `,Vu=k.default.button`
125
+ `,Ru=k.default.button`
126
126
  all: unset;
127
127
  font-family: inherit;
128
128
  height: 25px;
@@ -149,7 +149,7 @@ 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
- `,Ru=qo,Wu=Xo,Hu=nr,Ku=k.default(Su)`
152
+ `,Wu=Xo,Hu=U.forwardRef((e,t)=>{const{children:n,...r}=e;return T(Zo,{ref:t,type:"button",...r,children:n})}),Ku=nr,Uu=k.default(ku)`
153
153
  --overlay-opacity: 0.8;
154
154
  background-color: dimgray; // TODO
155
155
  opacity: var(--overlay-opacity);
@@ -157,7 +157,7 @@ Check the top-level render call using <`+N+">.")}return M}}function Ct(x,M){{if(
157
157
  inset: 0;
158
158
  z-index: 4;
159
159
  animation: ${rr} 150ms cubic-bezier(0.16, 1, 0.3, 1);
160
- `,Uu=k.default(ku)`
160
+ `,ju=k.default(Du)`
161
161
  background: white;
162
162
  padding: ${c.sizing_500};
163
163
  width: ${e=>ar[e.size||"medium"]};
@@ -171,7 +171,7 @@ Check the top-level render call using <`+N+">.")}return M}}function Ct(x,M){{if(
171
171
  box-shadow: ${c.elevation_static_high};
172
172
  border-radius: ${c.border_radius_400};
173
173
  animation: ${or} 150ms cubic-bezier(0.16, 1, 0.3, 1);
174
- `;function ju({children:e,size:t,...n}){return ee(Tu,{children:[T(Ku,{}),T(Uu,{size:t,...n,children:e})]})}const Gu=k.default(Iu)`
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
175
  font-family: ${c.font_family_sans}; // todo make design token variable
176
176
  font-style: normal;
177
177
  font-weight: 500;
@@ -180,7 +180,7 @@ Check the top-level render call using <`+N+">.")}return M}}function Ct(x,M){{if(
180
180
  letter-spacing: ${c.letter_spacing_tighter};
181
181
  margin: 0;
182
182
  margin-bottom: ${c.spacing_200};
183
- `,Yu=k.default(Au)`
183
+ `,qu=k.default(Lu)`
184
184
  font-family: ${c.font_family_sans};
185
185
  font-style: normal;
186
186
  font-weight: 400;
@@ -189,21 +189,21 @@ Check the top-level render call using <`+N+">.")}return M}}function Ct(x,M){{if(
189
189
  margin: 0;
190
190
  margin-top: ${c.sizing_200}; /* or flex parent and gap? */
191
191
  margin-bottom: ${c.sizing_400};
192
- `,qu=k.default.footer`
192
+ `,Xu=k.default.footer`
193
193
  margin-top: ${c.sizing_400};
194
194
  display: flex;
195
195
  justify-content: end;
196
196
  gap: ${c.sizing_200};
197
- `,Xu=Pu,Zu=Cu,Ju=Du,Qu=Ou,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}}))),ra=Zt,ef=({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(ra,null,t))};function Jt({children:e,label:t}){return T(ef,{label:t,children:e})}function tf(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 nf(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},oa=de.default.createContext(ir);let rf=Boolean(typeof window<"u"&&window.document&&window.document.createElement);function of(e){let t=a.useContext(oa);return t===ir&&!rf&&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 af(){let t=a.useContext(oa)!==ir,[n,r]=a.useState(t);return typeof window<"u"&&t&&a.useLayoutEffect(()=>{r(!1)},[]),n}function aa(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=aa(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function sf(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=aa(e))&&(r&&(r+=" "),r+=t);return r}const bt=typeof window<"u"?de.default.useLayoutEffect:()=>{};function lf(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=of(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 cf(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 ia(e=[]){let t=rt(),[n,r]=lf(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 df(...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]=df(i,s):(o==="className"||o==="UNSAFE_className")&&typeof i=="string"&&typeof s=="string"?t[o]=sf(i,s):o==="id"&&i&&s?t.id=cf(i,s):t[o]=s!==void 0?s:i}}return t}const uf=new Set(["id"]),ff=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),pf=/^(data-.*)$/;function Dt(e,t={}){let{labelable:n,propNames:r}=t,o={};for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(uf.has(i)||n&&ff.has(i)||(r==null?void 0:r.has(i))||pf.test(i))&&(o[i]=e[i]);return o}function mt(e){if(bf())e.focus({preventScroll:!0});else{let t=mf(e);e.focus(),gf(t)}}let en=null;function bf(){if(en==null){en=!1;try{var e=document.createElement("div");e.focus({get preventScroll(){return en=!0,!0}})}catch{}}return en}function mf(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 gf(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 sa(){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"?sa():document.addEventListener("DOMContentLoaded",sa));function la(e){requestAnimationFrame(()=>{gt.size===0?e():sr.add(e)})}function ca(){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 $f(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 da(e,t){bt(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref.current=null}},[e,t])}function hf(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 ua(){return lr(/^Mac/i)}function fa(){return lr(/^iPhone/i)}function vf(){return lr(/^iPad/i)||ua()&&navigator.maxTouchPoints>1}function cr(){return fa()||vf()}function pa(){return hf(/Android/i)}function _f(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:pa()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function yf(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 ba(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(()=>{la(()=>{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 ma=de.default.createContext(null);ma.displayName="PressResponderContext";function xf(e){let t=a.useContext(ma);if(t){let{register:n,...r}=t;e=be(r,e),n()}return da(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,...$}=xf(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:_}=ca(),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})},I=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)?($a(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)){$a(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(yf(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||ba(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&&I(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=>{I(E)};F.onDragStart=E=>{!E.currentTarget.contains(E.target)||I(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&&I(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=wf(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||ba(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=ga(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&&I(S))},F.onTouchEnd=S=>{if(!S.currentTarget.contains(S.target)||(S.stopPropagation(),!g.isPressed))return;let E=ga(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&&I(S))};let V=S=>{g.isPressed&&S.target.contains(g.target)&&I({currentTarget:g.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};F.onDragStart=S=>{!S.currentTarget.contains(S.target)||I(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&&!ha(o,n)||o instanceof HTMLTextAreaElement||o.isContentEditable)&&(!br(o)||i==="button"&&n!=="Enter")&&!(i==="link"&&n!=="Enter")}function wf(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function ga(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 Ef(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 Pf(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=Ef(e);return Pf(n,r)}function gr(e){return!(e instanceof HTMLElement)||!e.draggable}function $a(e,t){return e instanceof HTMLInputElement?!ha(e,t):e instanceof HTMLButtonElement?e.type!=="submit":!0}const Cf=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function ha(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":Cf.has(e.type)}class Tf{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 va(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 Tf("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=va(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,_a=!1,ot=!1,vr=!1;const Sf={Tab:!0,Escape:!0};function _r(e,t){for(let n of hr)n(e,t)}function kf(e){return!(e.metaKey||!ua()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function ya(e){ot=!0,kf(e)&&(_t="keyboard",_r("keyboard",e))}function yt(e){_t="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(ot=!0,_r("pointer",e))}function Df(e){dr(e)&&(ot=!0,_t="virtual")}function Of(e){e.target===window||e.target===document||(!ot&&!vr&&(_t="virtual",_r("virtual",e)),ot=!1,vr=!1)}function If(){ot=!1,vr=!0}function yr(){if(typeof window>"u"||_a)return;let e=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(){ot=!0,e.apply(this,arguments)},document.addEventListener("keydown",ya,!0),document.addEventListener("keyup",ya,!0),document.addEventListener("click",Df,!0),window.addEventListener("focus",Of,!0),window.addEventListener("blur",If,!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)),_a=!0}typeof document<"u"&&(document.readyState!=="loading"?yr():document.addEventListener("DOMContentLoaded",yr));function xa(){return _t!=="pointer"}function Af(){return _t}function Lf(e,t,n){return!(e&&t==="keyboard"&&n instanceof KeyboardEvent&&!Sf[n.key])}function Mf(e,t,n){yr(),a.useEffect(()=>{let r=(o,i)=>{!Lf(n==null?void 0:n.isTextInput,o,i)||e(xa())};return hr.add(r),()=>{hr.delete(r)}},t)}function wa(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=va(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 Ea(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 Ff(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:Ea(e.onKeyDown),onKeyUp:Ea(e.onKeyUp)}}}function Nf(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]);_f(t,"wheel",r?null:o)}function zf(e){if(Af()==="virtual"){let t=document.activeElement;la(()=>{document.activeElement===t&&document.contains(e)&&mt(e)})}else mt(e)}function Bf(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 Pa({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&&Bf(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 Pa({scopeRef:null}),this.fastMap.set(null,this.root)}}class Pa{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||xa()}),[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]);Mf(b=>{o.current.isFocusVisible=b,f()},[],{isTextInput:n});let{focusProps:p}=$r({isDisabled:r,onFocusChange:u}),{focusWithinProps:$}=wa({isDisabled:!r,onFocusWithinChange:u});return{isFocused:i,isFocusVisible:o.current.isFocused&&l,focusProps:r?$:p}}let Vf=de.default.createContext(null);function Rf(e){let t=a.useContext(Vf)||{};da(t,e);let{ref:n,...r}=t;return r}function wr(e,t){let{focusProps:n}=$r(e),{keyboardProps:r}=Ff(e),o=be(n,r),i=Rf(t),s=e.isDisabled?{}:i,l=a.useRef(e.autoFocus);return a.useEffect(()=>{l.current&&t.current&&zf(t.current),l.current=!1},[t]),{focusableProps:be({...o,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},s)}}function Wf(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 Hf{getStringForLocale(t,n){let r=this.strings[n];r||(r=Kf(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 Kf(e,t,n="en-US"){if(t[e])return t[e];let r=Uf(e);if(t[r])return t[r];for(let o in t)if(o.startsWith(r+"-"))return t[o];return t[n]}function Uf(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const Ca=new Map,Ta=new Map;class jf{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=Ca.get(i);s||(s=new Intl.PluralRules(this.locale,{type:r}),Ca.set(i,s));let l=s.select(t);return o=n[l]||n.other,typeof o=="function"?o():o}number(t){let n=Ta.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),Ta.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 Sa={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=Yf(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=Sa[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=Gf(t,n),this.options=n}}function Gf(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=Sa[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 Yf(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 qf=new RegExp("^.*\\(.*\\).*$"),Xf=["latn","arab","hanidec"];class Zf{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 ka=new Map;function Tr(e,t,n){let r=Da(e,t);if(!e.includes("-nu-")&&!r.isValidPartialNumber(n)){for(let o of Xf)if(o!==r.options.numberingSystem){let i=Da(e+(e.includes("-u-")?"-nu-":"-u-nu-")+o,t);if(i.isValidPartialNumber(n))return i}}return r}function Da(e,t){let n=e+(t?Object.entries(t).sort((o,i)=>o[0]<i[0]?-1:1).join():""),r=ka.get(n);return r||(r=new Jf(e,t),ka.set(n,r)),r}class Jf{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"&&qf.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=Qf(this.formatter,this.options,n)}}const Oa=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]);function Qf(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=>!Oa.has(C.type)).map(C=>Ia(C.value)),v=f.filter(C=>!Oa.has(C.type)).map(C=>Ia(C.value)),y=[...new Set([...v,...m])].sort((C,I)=>I.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,I)=>[C,I])),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 Ia(e){return e.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}const ep=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),tp=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function np(e){if(Intl.Locale){let n=new Intl.Locale(e).maximize().script;return ep.has(n)}let t=e.split("-")[0];return tp.has(t)}function Aa(){let e=typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:np(e)?"rtl":"ltr"}}let Sr=Aa(),Ot=new Set;function La(){Sr=Aa();for(let e of Ot)e(Sr)}function rp(){let e=af(),[t,n]=a.useState(Sr);return a.useEffect(()=>(Ot.size===0&&window.addEventListener("languagechange",La),Ot.add(n),()=>{Ot.delete(n),Ot.size===0&&window.removeEventListener("languagechange",La)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const op=de.default.createContext(null);function Ma(){let e=rp();return a.useContext(op)||e}const Fa=new WeakMap;function ap(e){let t=Fa.get(e);return t||(t=new Hf(e),Fa.set(e,t)),t}function kr(e){let{locale:t}=Ma(),n=a.useMemo(()=>ap(e),[e]);return a.useMemo(()=>new jf(t,n),[t,n])}function ip(e={}){let{locale:t}=Ma();return a.useMemo(()=>new Cr(t,e),[t,e])}function sp(e){return e&&e.__esModule?e.default:e}function lp(e,t){let{isCurrent:n,isDisabled:r,"aria-current":o,elementType:i="a",...s}=e,{linkProps:l}=Wf({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 Na={},za={};za={breadcrumbs:"\u0639\u0646\u0627\u0635\u0631 \u0627\u0644\u0648\u0627\u062C\u0647\u0629"};var Ba={};Ba={breadcrumbs:"\u0422\u0440\u043E\u0445\u0438 \u0445\u043B\u044F\u0431"};var Va={};Va={breadcrumbs:"Popis cesty"};var Ra={};Ra={breadcrumbs:"Br\xF8dkrummer"};var Wa={};Wa={breadcrumbs:"Breadcrumbs"};var Ha={};Ha={breadcrumbs:"\u03A0\u03BB\u03BF\u03B7\u03B3\u03AE\u03C3\u03B5\u03B9\u03C2 breadcrumb"};var Ka={};Ka={breadcrumbs:"Breadcrumbs"};var Ua={};Ua={breadcrumbs:"Migas de pan"};var ja={};ja={breadcrumbs:"Lingiread"};var Ga={};Ga={breadcrumbs:"Navigointilinkit"};var Ya={};Ya={breadcrumbs:"Chemin de navigation"};var qa={};qa={breadcrumbs:"\u05E9\u05D1\u05D9\u05DC\u05D9 \u05E0\u05D9\u05D5\u05D5\u05D8"};var Xa={};Xa={breadcrumbs:"Navigacijski putovi"};var Za={};Za={breadcrumbs:"Morzsamen\xFC"};var Ja={};Ja={breadcrumbs:"Breadcrumb"};var Qa={};Qa={breadcrumbs:"\u30D1\u30F3\u304F\u305A\u30EA\u30B9\u30C8"};var ei={};ei={breadcrumbs:"\uD0D0\uC0C9 \uD45C\uC2DC"};var ti={};ti={breadcrumbs:"Nar\u0161ymo kelias"};var ni={};ni={breadcrumbs:"Atpaka\u013Cce\u013Ci"};var ri={};ri={breadcrumbs:"Navigasjonsstier"};var oi={};oi={breadcrumbs:"Broodkruimels"};var ai={};ai={breadcrumbs:"Struktura nawigacyjna"};var ii={};ii={breadcrumbs:"Caminho detalhado"};var si={};si={breadcrumbs:"Categorias"};var li={};li={breadcrumbs:"Miez de p\xE2ine"};var ci={};ci={breadcrumbs:"\u041D\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u044F"};var di={};di={breadcrumbs:"Naviga\u010Dn\xE9 prvky Breadcrumbs"};var ui={};ui={breadcrumbs:"Drobtine"};var fi={};fi={breadcrumbs:"Putanje navigacije"};var pi={};pi={breadcrumbs:"S\xF6kv\xE4gar"};var bi={};bi={breadcrumbs:"\u0130\xE7erik haritalar\u0131"};var mi={};mi={breadcrumbs:"\u041D\u0430\u0432\u0456\u0433\u0430\u0446\u0456\u0439\u043D\u0430 \u0441\u0442\u0435\u0436\u043A\u0430"};var gi={};gi={breadcrumbs:"\u5BFC\u822A\u680F"};var $i={};$i={breadcrumbs:"\u5C0E\u89BD\u5217"},Na={"ar-AE":za,"bg-BG":Ba,"cs-CZ":Va,"da-DK":Ra,"de-DE":Wa,"el-GR":Ha,"en-US":Ka,"es-ES":Ua,"et-EE":ja,"fi-FI":Ga,"fr-FR":Ya,"he-IL":qa,"hr-HR":Xa,"hu-HU":Za,"it-IT":Ja,"ja-JP":Qa,"ko-KR":ei,"lt-LT":ti,"lv-LV":ni,"nb-NO":ri,"nl-NL":oi,"pl-PL":ai,"pt-BR":ii,"pt-PT":si,"ro-RO":li,"ru-RU":ci,"sk-SK":di,"sl-SI":ui,"sr-SP":fi,"sv-SE":pi,"tr-TR":bi,"uk-UA":mi,"zh-CN":gi,"zh-TW":$i};function cp(e){let{"aria-label":t,...n}=e,r=kr(sp(Na));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 hi(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 dp=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}=hi(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}=hi(d,p,l)),h=-1;continue}}return{x:f,y:u,placement:p,strategy:o,middlewareData:$}};function up(e){return{top:0,right:0,bottom:0,left:0,...e}}function vi(e){return typeof e!="number"?up(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=vi(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 fp=Math.min,pp=Math.max;function Or(e,t,n){return pp(e,fp(t,n))}const _i=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=vi(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],I=g/2-h[b]/2+O,F=Or(L,I,C),V=($==="start"?f[m]:f[v])>0&&I!==F&&l.reference[b]<=l.floating[b]?I<L?L-I:C-I:0;return{[p]:u[p]-V,data:{[p]:F,centerOffset:I-F}}}}),bp={left:"right",right:"left",bottom:"top",top:"bottom"};function dn(e){return e.replace(/left|right|bottom|top/g,t=>bp[t])}function mp(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 gp={start:"end",end:"start"};function yi(e){return e.replace(/start|end/g,t=>gp[t])}const $p=["top","right","bottom","left"];function hp(e){const t=dn(e);return[yi(e),t,yi(t)]}const vp=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)]:hp(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}=mp(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 I;const V=(I=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:I[0].placement;V&&(P=V);break}case"initialPlacement":P=s;break}if(r!==P)return{reset:{placement:P}}}return{}}}};function xi(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function wi(e){return $p.some(t=>e[t]>=0)}const _p=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=xi(i,o.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:wi(s)}}}case"escaped":{const i=await cn(r,{...n,altBoundary:!0}),s=xi(i,o.floating);return{data:{escapedOffsets:s,escaped:wi(s)}}}default:return{}}}}};async function yp(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 xp=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:r}=t,o=await yp(t,e);return{x:n+o.x,y:r+o.y,data:o}}}};function Ei(e){return e==="x"?"y":"x"}const wp=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)),$=Ei(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}}}}},Ep=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),$=Ei(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),I=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>I&&(h=I)}return{[p]:b,[$]:h}}}};function Pi(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function Ne(e){if(e==null)return window;if(!Pi(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function It(e){return Ne(e).getComputedStyle(e)}function ze(e){return Pi(e)?"":e?(e.nodeName||"").toLowerCase():""}function Ci(){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 Pp(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 Cp(e){return["table","td","th"].includes(ze(e))}function Ti(e){const t=/firefox/i.test(Ci()),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 Si(){return!/^((?!chrome|android).)*safari/i.test(Ci())}const ki=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=!Si()&&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((Pp(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 Di(e){return Be(Ke(e)).left+pn(e).scrollLeft}function Tp(e){const t=Be(e);return fn(t.width)!==e.offsetWidth||fn(t.height)!==e.offsetHeight}function Sp(e,t,n){const r=Te(t),o=Ke(t),i=Be(e,r&&Tp(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=Di(o));return{x:i.left+s.scrollLeft-l.x,y:i.top+s.scrollTop-l.y,width:i.width,height:i.height}}function Oi(e){return ze(e)==="html"?e:e.assignedSlot||e.parentNode||(Ir(e)?e.host:null)||Ke(e)}function Ii(e){return!Te(e)||getComputedStyle(e).position==="fixed"?null:e.offsetParent}function kp(e){let t=Oi(e);for(Ir(t)&&(t=t.host);Te(t)&&!["html","body"].includes(ze(t));){if(Ti(t))return t;t=t.parentNode}return null}function Ar(e){const t=Ne(e);let n=Ii(e);for(;n&&Cp(n)&&getComputedStyle(n).position==="static";)n=Ii(n);return n&&(ze(n)==="html"||ze(n)==="body"&&getComputedStyle(n).position==="static"&&!Ti(n))?t:n||kp(e)||t}function Ai(e){if(Te(e))return{width:e.offsetWidth,height:e.offsetHeight};const t=Be(e);return{width:t.width,height:t.height}}function Dp(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 Op(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=Si();(f||!f&&t==="fixed")&&(l=o.offsetLeft,d=o.offsetTop)}return{width:i,height:s,x:l,y:d}}function Ip(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+Di(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 Li(e){const t=Oi(e);return["html","body","#document"].includes(ze(t))?e.ownerDocument.body:Te(t)&&un(t)?t:Li(t)}function bn(e,t){var n;t===void 0&&(t=[]);const r=Li(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 Ap(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 Lp(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 Mi(e,t,n){return t==="viewport"?ln(Op(e,n)):He(t)?Lp(t,n):ln(Ip(Ke(e)))}function Mp(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)&&Ap(o,r)&&ze(o)!=="body"):[]}function Fp(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?Mp(t):[].concat(n),r],l=s[0],d=s.reduce((f,u)=>{const p=Mi(t,u,o);return f.top=At(p.top,f.top),f.right=ki(p.right,f.right),f.bottom=ki(p.bottom,f.bottom),f.left=At(p.left,f.left),f},Mi(t,l,o));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}const Np={getClippingRect:Fp,convertOffsetParentRelativeRectToViewportRelativeRect:Dp,isElement:He,getDimensions:Ai,getOffsetParent:Ar,getDocumentElement:Ke,getElementRects:e=>{let{reference:t,floating:n,strategy:r}=e;return{reference:Sp(t,Ar(n),r),floating:{...Ai(n),x:0,y:0}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>It(e).direction==="rtl"};function zp(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 Bp=(e,t,n)=>dp(e,t,{platform:Np,...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 Vp(e){const t=j.useRef(e);return Lr(()=>{t.current=e}),t}function Rp(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=Vp(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||Bp(i.current,s.current,{middleware:p,placement:n,strategy:r}).then(w=>{h.current&&Fc.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 Wp=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?_i({element:t.current,padding:n}).fn(o):{}:t?_i({element:t,padding:n}).fn(o):{}}}},Hp=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 Fi="Popper",[Fr,gn]=ge(Fi),[Kp,Ni]=Fr(Fi),Up=e=>{const{__scopePopper:t,children:n}=e,[r,o]=a.useState(null);return a.createElement(Kp,{scope:t,anchor:r,onAnchorChange:o},n)},jp="PopperAnchor",Gp=a.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=Ni(jp,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",[Yp,qp]=Fr($n),[Xp,Zp]=Fr($n,{hasParent:!1,positionUpdateFns:new Set}),Jp=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=Ni($n,u),[C,I]=a.useState(null),F=J(t,Ee=>I(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(rb),altBoundary:ie},{reference:z,floating:K,strategy:Q,x:G,y:Z,placement:ne,middlewareData:se,update:ue}=Rp({strategy:"fixed",placement:U,whileElementsMounted:zp,middleware:[xp({mainAxis:$+E,alignmentAxis:h}),g?wp({mainAxis:!0,crossAxis:!1,limiter:_==="partial"?Ep():void 0,...H}):void 0,W?Wp({element:W,padding:m}):void 0,g?vp({...H}):void 0,ob({arrowWidth:S,arrowHeight:E}),w?_p({strategy:"referenceHidden"}):void 0].filter(nb)});pe(()=>{z(L.anchor)},[z,L.anchor]);const fe=G!==null&&Z!==null,[Ve,Ye]=zi(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}=Zp($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(Yp,{scope:u,placedSide:Ve,onArrowChange:P,arrowX:qe,arrowY:Xe,shouldHideArrow:st},ce?a.createElement(Xp,{scope:u,hasParent:!0,positionUpdateFns:le},a.createElement(R.div,we)):a.createElement(R.div,we)))}),Qp="PopperArrow",eb={top:"bottom",right:"left",bottom:"top",left:"right"},tb=a.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,i=qp(Qp,r),s=eb[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(Hp,D({},o,{ref:n,style:{...o.style,display:"block"}})))});function nb(e){return e!==void 0}function rb(e){return e!==null}const ob=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]=zi(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 zi(e){const[t,n="center"]=e.split("-");return[t,n]}const Bi=Up,Vi=Gp,Ri=Jp,Wi=tb,Hi="Popover",[Ki,Nh]=ge(Hi,[gn]),hn=gn(),[ab,at]=Ki(Hi),ib=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(Bi,l,a.createElement(ab,{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))},sb="PopoverTrigger",lb=a.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=at(sb,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":Yi(o.open)},r,{ref:s,onClick:B(e.onClick,o.onOpenToggle)}));return o.hasCustomAnchor?l:a.createElement(Vi,D({asChild:!0},i),l)}),Ui="PopoverPortal",[cb,db]=Ki(Ui,{forceMount:void 0}),ub=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,i=at(Ui,t);return a.createElement(cb,{scope:t,forceMount:n},a.createElement(ye,{present:n||i.open},a.createElement(kt,{asChild:!0,container:o},r)))},Lt="PopoverContent",ji=a.forwardRef((e,t)=>{const n=db(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(fb,D({},o,{ref:t})):a.createElement(pb,D({},o,{ref:t})))}),fb=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(Gi,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})})))}),pb=a.forwardRef((e,t)=>{const n=at(Lt,e.__scopePopover),r=a.useRef(!1);return a.createElement(Gi,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()}}))}),Gi=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(Ri,D({"data-state":Yi($.open),role:"dialog",id:$.contentId},b,p,{ref:t,style:{...p.style,["--radix-popover-content-transform-origin"]:"var(--radix-popper-transform-origin)"}}))))}),bb="PopoverClose",mb=a.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=at(bb,n);return a.createElement(R.button,D({type:"button"},r,{ref:t,onClick:B(e.onClick,()=>o.onOpenChange(!1))}))}),gb=a.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=hn(n);return a.createElement(Wi,D({},o,r,{ref:t}))});function Yi(e){return e?"open":"closed"}const $b=ib,hb=lb,vb=ub,_b=ji,yb=mb,xb=gb,wb=k.default(_b)`
197
+ `,Zu=Cu,Ju=U.forwardRef((e,t)=>{const{children:n,...r}=e;return T(Tu,{ref:t,type:"button",...r,children:n})}),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:j}=b.current;j||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:j,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}),j&&j(!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,j)=>E+j,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=U.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=U.useRef(null),s=U.useRef(null),l=Rp(o),d=U.useRef(null),[f,u]=U.useState({x:null,y:null,strategy:r,placement:n,middlewareData:{}}),[p,$]=U.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=U.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=U.useRef(!1);Lr(()=>(h.current=!0,()=>{h.current=!1}),[]);const m=U.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=U.useCallback(w=>{i.current=w,m()},[m]),y=U.useCallback(w=>{s.current=w,m()},[m]),_=U.useMemo(()=>({reference:i,floating:s}),[]);return U.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,j=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:j,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
198
  border-radius: ${c.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
- `,Eb=k.default(xb)`
204
+ `,Pb=k.default(wb)`
205
205
  fill: white;
206
- `;function Pb({children:e,...t}){return T(vb,{children:ee(wb,{...t,children:[e,T(Eb,{})]})})}const Cb=k.default(yb)`
206
+ `;function Cb({children:e,...t}){return T(_b,{children:ee(Eb,{...t,children:[e,T(Pb,{})]})})}const Tb=k.default(xb)`
207
207
  all: unset;
208
208
  font-family: inherit;
209
209
  border-radius: 100%;
@@ -216,7 +216,7 @@ 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
- `,qi=$b,Xi=hb,Tb=Pb,Sb=Cb,kb="data:image/svg+xml;base64,PHN2ZyBmb2N1c2FibGU9ImZhbHNlIiB2aWV3Qm94PSIwIDAgMjQgMjQiIGFyaWEtaGlkZGVuPSJ0cnVlIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgICB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8cGF0aCBkPSIgTTE5IDE1bC02IDYtMS40Mi0xLjQyTDE1LjE3IDE2SDRWNGgydjEwaDkuMTdsLTMuNTktMy41OEwxMyA5bDYgNnoiIGZpbGw9ImhzbGEoMCwgMCUsIDAlLCAwLjEyKSI+PC9wYXRoPgo8L3N2Zz4=",Db=k.default(ji)`
219
+ `,Xi=hb,Zi=a.forwardRef((e,t)=>{const{children:n,...r}=e;return T(vb,{ref:t,type:"button",...r,children:n})}),Sb=Cb,kb=Tb,Db="data:image/svg+xml;base64,PHN2ZyBmb2N1c2FibGU9ImZhbHNlIiB2aWV3Qm94PSIwIDAgMjQgMjQiIGFyaWEtaGlkZGVuPSJ0cnVlIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgICB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8cGF0aCBkPSIgTTE5IDE1bC02IDYtMS40Mi0xLjQyTDE1LjE3IDE2SDRWNGgydjEwaDkuMTdsLTMuNTktMy41OEwxMyA5bDYgNnoiIGZpbGw9ImhzbGEoMCwgMCUsIDAlLCAwLjEyKSI+PC9wYXRoPgo8L3N2Zz4=",Ob=k.default(Gi)`
220
220
  margin-top: 22px;
221
221
  isolation: isolate;
222
222
  min-width: 210px;
@@ -228,7 +228,7 @@ Check the top-level render call using <`+N+">.")}return M}}function Ct(x,M){{if(
228
228
  &[data-state~='focused'] {
229
229
  outline: 1px solid ${c.color_black};
230
230
  }
231
- `;function Ob({children:e}){const{isFocusVisible:t,focusProps:n}=rn();return T(Db,{align:"start",...n,"data-state":t?"focused":void 0,children:e})}const Nr=k.default.ol`
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
232
  font-family: ${c.font_family_sans};
233
233
  display: flex;
234
234
  list-style: none;
@@ -244,7 +244,7 @@ Check the top-level render call using <`+N+">.")}return M}}function Ct(x,M){{if(
244
244
  font-family: ${c.font_family_inter};
245
245
  color: ${c.color_divider_standard};
246
246
  }
247
- `,Zi=k.default(Nr)`
247
+ `,Ji=k.default(Nr)`
248
248
  flex-direction: column;
249
249
 
250
250
  & li {
@@ -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(${kb});
261
+ background-image: url(${Db});
262
262
  display: block;
263
263
  height: 1em;
264
264
  width: 1em;
@@ -267,12 +267,12 @@ 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
- `,Ji=k.default.li`
270
+ `,zr=k.default.li`
271
271
  color: ${c.color_text_weak};
272
272
  display: flex;
273
273
  align-items: center;
274
274
  gap: ${c.sizing_200};
275
- `,Ib=k.default.a`
275
+ `,Qi=k.default.a`
276
276
  text-decoration: none;
277
277
  color: ${c.color_text_weak};
278
278
  font-style: normal;
@@ -280,18 +280,22 @@ Check the top-level render call using <`+N+">.")}return M}}function Ct(x,M){{if(
280
280
  font-size: ${c.font_size_100};
281
281
  line-height: ${c.line_height_114};
282
282
  letter-spacing: ${c.letter_spacing_tight};
283
- cursor: pointer;
284
283
  border-radius: ${c.border_radius_400};
285
284
  padding: 2px 4px;
286
-
285
+
287
286
  transition-property: ${c.transition_property_color};
288
287
  transition-duration: ${c.transition_duration_100};
288
+ cursor: default;
289
+
290
+ &[href] {
291
+ cursor: pointer;
292
+ }
289
293
 
290
294
  &:hover {
291
295
  background-color: ${c.color_overlay_secondary_hover}; /* Interactive / Overlay / Secondary / Hover */
292
296
  }
293
297
 
294
- &[data-state~='pressed'] {
298
+ &[href][data-state~='pressed'] {
295
299
  background-color: ${c.color_overlay_secondary_pressed}; /* Interactive / Overlay / Secondary / Pressed */
296
300
  }
297
301
 
@@ -338,7 +342,7 @@ Check the top-level render call using <`+N+">.")}return M}}function Ct(x,M){{if(
338
342
  &[data-state='open'] {
339
343
  background-color: ${c.color_overlay_secondary_pressed}; /* Interactive / Overlay / Secondary / Pressed */
340
344
  }
341
- `;function Qi({truncatedItems:e}){return e.length>1?ee(Zi,{children:[e.slice(0,1),T(Qi,{truncatedItems:e.slice(1)})]}):T(Zi,{children:e})}function Lb({truncatedItems:e}){return T(Ji,{children:ee(qi,{children:[T(Xi,{asChild:!0,children:T(Ab,{type:"button",children:"..."})}),T(Ob,{children:T(Qi,{truncatedItems:e})})]})})}const es=a.forwardRef(({children:e,...t},n)=>{const{navProps:r}=cp(t);Lc.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})})});es.displayName="Breadcrumbs";const ts=a.forwardRef((e,t)=>{const{disabled:n,as:r,navigate:o,...i}=e,s=$t(t),{children:l,href:d,isCurrent:f}=e,{itemProps:u}=lp({isDisabled:n,isCurrent:f,...i,elementType:r,onPress:o},s),{isPressed:p,pressProps:$}=pr({isDisabled:n,ref:s}),{isFocusVisible:b,focusProps:h}=rn(),m=[p&&"pressed",n&&"disabled",b&&"focused"].filter(Boolean).join(" ");return T(Ji,{children:T(Ib,{as:r,...u,ref:s,href:d,"data-state":m,...h,...$,children:l})})});ts.displayName="BreadcrumbItem";function zr(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 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(" "),y=!f&&!r&&d,w={[s?"href":"to"]:y};return T(zr,{children:T(Qi,{as:n,...u,ref:i,"data-state":m,...h,...$,...w,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`
342
346
  appearance: none;
343
347
  border-radius: ${c.border_radius_400};
344
348
  border: 1px solid transparent;
@@ -577,10 +581,10 @@ Check the top-level render call using <`+N+">.")}return M}}function Ct(x,M){{if(
577
581
  &:disabled {
578
582
  background: ${c.color_fill_inverse_disabled};
579
583
  }
580
- `,Yb={low:Hb,medium:Bb,high:{primary:Kb,secondary:Ub,danger:jb,inverse:Gb}},ns=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:$}=zr({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})});ns.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 rs="Checkbox",[qb,Bh]=ge(rs),[Xb,Zb]=qb(rs),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":os(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":os(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 os(e){return it(e)?"indeterminate":e?"checked":"unchecked"}const n0=Jb,r0=e0,Br=a.createContext(!1);Br.displayName="FieldsetContext";const as=k.default.fieldset`
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`
581
585
  padding: 0;
582
586
  border: none;
583
- `;function o0({children:e,disabled:t,...n}){const o=Ue()||Boolean(t);return T(Br.Provider,{value:o,children:T(as,{disabled:t,...n,children:e})})}function Ue(){return a.useContext(Br)}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=$f({id:t,"aria-label":o,"aria-labelledby":r});return{labelProps:l,fieldProps:d}}function is(e){let{description:t,errorMessage:n,validationState:r}=e,{labelProps:o,fieldProps:i}=a0(e),s=ia([Boolean(t),Boolean(n),r]),l=ia([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 Vr(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}=is(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 ss(){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(!ss())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=ss()?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}=Vr(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 Rr=k.default.label`
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`
584
588
  font-family: ${c.font_family_sans};
585
589
  margin: 0;
586
590
  font-style: normal;
@@ -589,15 +593,15 @@ Check the top-level render call using <`+N+">.")}return M}}function Ct(x,M){{if(
589
593
  align-items: center;
590
594
  font-weight: var(--label-font-weight, 400);
591
595
  color: ${c.color_background_black_standard};
592
- `,s0=k.default(Rr)`
596
+ `,s0=k.default(Wr)`
593
597
  font-size: ${c.font_size_label_small};
594
598
  letter-spacing: ${c.letter_spacing_label_small};
595
599
  line-height: ${c.line_height_label_small};
596
- `,l0=k.default(Rr)`
600
+ `,l0=k.default(Wr)`
597
601
  font-size: ${c.font_size_label_large};
598
602
  letter-spacing: ${c.letter_spacing_label_large};
599
603
  line-height: ${c.line_height_label_large};
600
- `,c0=k.default(Rr)`
604
+ `,c0=k.default(Wr)`
601
605
  font-size: ${c.font_size_label_medium};
602
606
  letter-spacing: ${c.letter_spacing_label_medium};
603
607
  line-height: ${c.line_height_label_medium};
@@ -694,7 +698,7 @@ Check the top-level render call using <`+N+">.")}return M}}function Ct(x,M){{if(
694
698
  display: flex;
695
699
  align-items: center;
696
700
  pointer-events: none;
697
- `;const Wr=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:_}=Vr({...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})]})});Wr.displayName="TextInput";const[En,Vh]=ge("Tooltip",[gn]),Pn=gn(),f0="TooltipProvider",p0=700,Hr="tooltip.open",[b0,Kr]=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)},Ur="Tooltip",[g0,Mt]=En(Ur),$0=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o=!1,onOpenChange:i,disableHoverableContent:s,delayDuration:l}=e,d=Kr(Ur,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(Hr))):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(Bi,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))},ls="TooltipTrigger",h0=a.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Mt(ls,n),i=Kr(ls,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(Vi,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)})))}),cs="TooltipPortal",[v0,_0]=En(cs,{forceMount:void 0}),y0=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,i=Mt(cs,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(ds,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=Kr(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(ds,D({},e,{ref:i}))}),[E0,P0]=En(Ur,{isInside:!1}),ds=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(Hr,u),()=>document.removeEventListener(Hr,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(Ri,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(ra,{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(Wi,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)`
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)`
698
702
  padding: ${c.sizing_200} ${c.sizing_200};
699
703
  /* user-select: none; // TODO not sure about this */
700
704
  background: ${c.color_background_black_standard};
@@ -713,7 +717,7 @@ Check the top-level render call using <`+N+">.")}return M}}function Ct(x,M){{if(
713
717
  border: none;
714
718
  background-color: unset;
715
719
  line-height: 0;
716
- `,us=({children:e,...t})=>T(W0,{...t,type:"button",children:e}),fs=A0,ps=L0,bs=R0,H0=k.default(us)`
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)`
717
721
  color: ${c.color_text_white_weak};
718
722
  margin-block: auto;
719
723
 
@@ -737,7 +741,7 @@ Check the top-level render call using <`+N+">.")}return M}}function Ct(x,M){{if(
737
741
  color: steelblue;
738
742
  /* color: ${c.color_fill_primary_hover}; */
739
743
  }
740
- `;function Cn({children:e,icon:t=T(ve.Help,{}),label:n="More info"}){return T(fs,{children:ee(ps,{children:[T(H0,{children:T(Jt,{label:n,children:t})}),T(bs,{sideOffset:5,children:e})]})})}const ms=7e3;let jr=null;function K0(e,t="assertive",n=ms){jr||(jr=new U0),jr.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=ms){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 gs={},$s={};$s={Empty:"\u0641\u0627\u0631\u063A"};var hs={};hs={Empty:"\u0418\u0437\u043F\u0440\u0430\u0437\u043D\u0438"};var vs={};vs={Empty:"Pr\xE1zdn\xE9"};var _s={};_s={Empty:"Tom"};var ys={};ys={Empty:"Leer"};var xs={};xs={Empty:"\u0386\u03B4\u03B5\u03B9\u03BF"};var ws={};ws={Empty:"Empty"};var Es={};Es={Empty:"Vac\xEDo"};var Ps={};Ps={Empty:"T\xFChjenda"};var Cs={};Cs={Empty:"Tyhj\xE4"};var Ts={};Ts={Empty:"Vide"};var Ss={};Ss={Empty:"\u05E8\u05D9\u05E7"};var ks={};ks={Empty:"Prazno"};var Ds={};Ds={Empty:"\xDCres"};var Os={};Os={Empty:"Vuoto"};var Is={};Is={Empty:"\u7A7A"};var As={};As={Empty:"\uBE44\uC5B4 \uC788\uC74C"};var Ls={};Ls={Empty:"Tu\u0161\u010Dias"};var Ms={};Ms={Empty:"Tuk\u0161s"};var Fs={};Fs={Empty:"Tom"};var Ns={};Ns={Empty:"Leeg"};var zs={};zs={Empty:"Pusty"};var Bs={};Bs={Empty:"Vazio"};var Vs={};Vs={Empty:"Vazio"};var Rs={};Rs={Empty:"Gol"};var Ws={};Ws={Empty:"\u041D\u0435 \u0437\u0430\u043F\u043E\u043B\u043D\u0435\u043D\u043E"};var Hs={};Hs={Empty:"Pr\xE1zdne"};var Ks={};Ks={Empty:"Prazen"};var Us={};Us={Empty:"Prazno"};var js={};js={Empty:"Tomt"};var Gs={};Gs={Empty:"Bo\u015F"};var Ys={};Ys={Empty:"\u041F\u0443\u0441\u0442\u043E"};var qs={};qs={Empty:"\u7A7A"};var Xs={};Xs={Empty:"\u7A7A\u767D"},gs={"ar-AE":$s,"bg-BG":hs,"cs-CZ":vs,"da-DK":_s,"de-DE":ys,"el-GR":xs,"en-US":ws,"es-ES":Es,"et-EE":Ps,"fi-FI":Cs,"fr-FR":Ts,"he-IL":Ss,"hr-HR":ks,"hu-HU":Ds,"it-IT":Os,"ja-JP":Is,"ko-KR":As,"lt-LT":Ls,"lv-LV":Ms,"nb-NO":Fs,"nl-NL":Ns,"pl-PL":zs,"pt-BR":Bs,"pt-PT":Vs,"ro-RO":Rs,"ru-RU":Ws,"sk-SK":Hs,"sl-SI":Ks,"sr-SP":Us,"sv-SE":js,"tr-TR":Gs,"uk-UA":Ys,"zh-CN":qs,"zh-TW":Xs};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(gs)),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 I=P=>{P.preventDefault()},{addGlobalListener:F,removeAllGlobalListeners:W}=ca();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",I)},onPressEnd:()=>{y(),W()},onFocus:g,onBlur:O},decrementButtonProps:{onPressStart:()=>{C(400),F(window,"contextmenu",I)},onPressEnd:()=>{y(),W()},onFocus:g,onBlur:O}}}function Y0(e){return e&&e.__esModule?e.default:e}var Zs={},Js={};Js={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 Qs={};Qs={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 el={};el={decrease:e=>`Sn\xED\u017Eit ${e.fieldLabel}`,increase:e=>`Zv\xFD\u0161it ${e.fieldLabel}`,numberField:"\u010C\xEDseln\xE9 pole"};var tl={};tl={decrease:e=>`Reducer ${e.fieldLabel}`,increase:e=>`\xD8g ${e.fieldLabel}`,numberField:"Talfelt"};var nl={};nl={decrease:e=>`${e.fieldLabel} verringern`,increase:e=>`${e.fieldLabel} erh\xF6hen`,numberField:"Nummernfeld"};var rl={};rl={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 ol={};ol={decrease:e=>`Decrease ${e.fieldLabel}`,increase:e=>`Increase ${e.fieldLabel}`,numberField:"Number field"};var al={};al={decrease:e=>`Reducir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo de n\xFAmero"};var il={};il={decrease:e=>`V\xE4henda ${e.fieldLabel}`,increase:e=>`Suurenda ${e.fieldLabel}`,numberField:"Numbri v\xE4li"};var sl={};sl={decrease:e=>`V\xE4henn\xE4 ${e.fieldLabel}`,increase:e=>`Lis\xE4\xE4 ${e.fieldLabel}`,numberField:"Numerokentt\xE4"};var ll={};ll={decrease:e=>`Diminuer ${e.fieldLabel}`,increase:e=>`Augmenter ${e.fieldLabel}`,numberField:"Champ de nombre"};var cl={};cl={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 dl={};dl={decrease:e=>`Smanji ${e.fieldLabel}`,increase:e=>`Pove\u0107aj ${e.fieldLabel}`,numberField:"Polje broja"};var ul={};ul={decrease:e=>`${e.fieldLabel} cs\xF6kkent\xE9se`,increase:e=>`${e.fieldLabel} n\xF6vel\xE9se`,numberField:"Sz\xE1mmez\u0151"};var fl={};fl={decrease:e=>`Riduci ${e.fieldLabel}`,increase:e=>`Aumenta ${e.fieldLabel}`,numberField:"Campo numero"};var pl={};pl={decrease:e=>`${e.fieldLabel}\u3092\u7E2E\u5C0F`,increase:e=>`${e.fieldLabel}\u3092\u62E1\u5927`,numberField:"\u6570\u5024\u30D5\u30A3\u30FC\u30EB\u30C9"};var bl={};bl={decrease:e=>`${e.fieldLabel} \uAC10\uC18C`,increase:e=>`${e.fieldLabel} \uC99D\uAC00`,numberField:"\uBC88\uD638 \uD544\uB4DC"};var ml={};ml={decrease:e=>`Suma\u017Einti ${e.fieldLabel}`,increase:e=>`Padidinti ${e.fieldLabel}`,numberField:"Numerio laukas"};var gl={};gl={decrease:e=>`Samazin\u0101\u0161ana ${e.fieldLabel}`,increase:e=>`Palielin\u0101\u0161ana ${e.fieldLabel}`,numberField:"Skait\u013Cu lauks"};var $l={};$l={decrease:e=>`Reduser ${e.fieldLabel}`,increase:e=>`\xD8k ${e.fieldLabel}`,numberField:"Tallfelt"};var hl={};hl={decrease:e=>`${e.fieldLabel} verlagen`,increase:e=>`${e.fieldLabel} verhogen`,numberField:"Getalveld"};var vl={};vl={decrease:e=>`Zmniejsz ${e.fieldLabel}`,increase:e=>`Zwi\u0119ksz ${e.fieldLabel}`,numberField:"Pole numeru"};var _l={};_l={decrease:e=>`Diminuir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo de n\xFAmero"};var yl={};yl={decrease:e=>`Diminuir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo num\xE9rico"};var xl={};xl={decrease:e=>`Sc\u0103dere ${e.fieldLabel}`,increase:e=>`Cre\u0219tere ${e.fieldLabel}`,numberField:"C\xE2mp numeric"};var wl={};wl={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 El={};El={decrease:e=>`Zn\xED\u017Ei\u0165 ${e.fieldLabel}`,increase:e=>`Zv\xFD\u0161i\u0165 ${e.fieldLabel}`,numberField:"\u010C\xEDseln\xE9 pole"};var Pl={};Pl={decrease:e=>`Upadati ${e.fieldLabel}`,increase:e=>`Pove\u010Dajte ${e.fieldLabel}`,numberField:"\u0160tevil\u010Dno polje"};var Cl={};Cl={decrease:e=>`Decrease ${e.fieldLabel}`,increase:e=>`Increase ${e.fieldLabel}`,numberField:"Number field"};var Tl={};Tl={decrease:e=>`Minska ${e.fieldLabel}`,increase:e=>`\xD6ka ${e.fieldLabel}`,numberField:"Nummerf\xE4lt"};var Sl={};Sl={decrease:e=>`${e.fieldLabel} azalt`,increase:e=>`${e.fieldLabel} artt\u0131r`,numberField:"Say\u0131 alan\u0131"};var kl={};kl={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 Dl={};Dl={decrease:e=>`\u964D\u4F4E ${e.fieldLabel}`,increase:e=>`\u63D0\u9AD8 ${e.fieldLabel}`,numberField:"\u6570\u5B57\u5B57\u6BB5"};var Ol={};Ol={decrease:e=>`\u7E2E\u5C0F ${e.fieldLabel}`,increase:e=>`\u653E\u5927 ${e.fieldLabel}`,numberField:"\u6578\u5B57\u6B04\u4F4D"},Zs={"ar-AE":Js,"bg-BG":Qs,"cs-CZ":el,"da-DK":tl,"de-DE":nl,"el-GR":rl,"en-US":ol,"es-ES":al,"et-EE":il,"fi-FI":sl,"fr-FR":ll,"he-IL":cl,"hr-HR":dl,"hu-HU":ul,"it-IT":fl,"ja-JP":pl,"ko-KR":bl,"lt-LT":ml,"lv-LV":gl,"nb-NO":$l,"nl-NL":hl,"pl-PL":vl,"pt-BR":_l,"pt-PT":yl,"ro-RO":xl,"ru-RU":wl,"sk-SK":El,"sl-SI":Pl,"sr-SP":Cl,"sv-SE":Tl,"tr-TR":Sl,"uk-UA":kl,"zh-CN":Dl,"zh-TW":Ol};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:I,decrement:F,decrementToMin:W,numberValue:P,commit:V}=t;const S=kr(Y0(Zs));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:I,onDecrement:F,onDecrementToMin:W,value:P,textValue:t.inputValue}),[H,z]=a.useState(!1),{focusWithinProps:K}=wa({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]);Nf({onScroll:Q,isDisabled:s||l||!H},n);let Z=ip(h),se=a.useMemo(()=>Z.resolvedOptions(),[Z]).maximumFractionDigits>0,ue=isNaN(t.minValue)||t.minValue<0,fe="numeric";fa()?ue?fe="text":se&&(fe="decimal"):pa()&&(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,$]=tf(i,isNaN(s)?NaN:s,l),[b,h]=a.useState(()=>isNaN(p)?"":new Cr(d,o).format(p)),m=a.useMemo(()=>new Zf(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 I=a.useMemo(()=>m.parse(b),[m,b]),F=a.useRef(0);F.current=I;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=nf(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(Gr(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(I)||isNaN(n)||nt(I,t,n,g)>I||Gr("+",I,g)<=n),[f,u,t,n,g,I]),ae=a.useMemo(()=>!f&&!u&&(isNaN(I)||isNaN(t)||nt(I,t,n,g)<I||Gr("-",I,g)>=t),[f,u,t,n,g,I]);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:I,setInputValue:h,inputValue:b,commit:W}}function Gr(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}=zr(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`
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:j}=$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,j,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))},j=()=>{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:j,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`
741
745
  --border-color: ${c.color_outline_secondary_enabled};
742
746
  display: inline-grid;
743
747
  grid-template:
@@ -764,7 +768,7 @@ Check the top-level render call using <`+N+">.")}return M}}function Ct(x,M){{if(
764
768
  grid-area: field;
765
769
  margin: 0;
766
770
  margin-right: -1px; // to make the borders overlap
767
- `,Il=k.default(Z0)`
771
+ `,Al=k.default(Z0)`
768
772
  display: grid;
769
773
  place-items: center;
770
774
  color: ${c.color_text_weak};
@@ -810,14 +814,14 @@ Check the top-level render call using <`+N+">.")}return M}}function Ct(x,M){{if(
810
814
  line-height: 0;
811
815
  font-size: 1rem;
812
816
  }
813
- `,em=k.default(Il)`
817
+ `,em=k.default(Al)`
814
818
  border-radius: unset;
815
819
  border-top: 1px solid var(--border-color);
816
820
  border-top-right-radius: ${c.border_radius_400};
817
821
  border-bottom-width: 0.5px;
818
822
  grid-area: increment;
819
823
  margin-bottom: -0.5px;
820
- `,tm=k.default(Il)`
824
+ `,tm=k.default(Al)`
821
825
  border-radius: unset;
822
826
  border-bottom: 1px solid var(--border-color);
823
827
  border-bottom-right-radius: ${c.border_radius_400};
@@ -825,7 +829,7 @@ Check the top-level render call using <`+N+">.")}return M}}function Ct(x,M){{if(
825
829
  border-top-width: 0.5px;
826
830
  margin-top: -0.5px;
827
831
  grid-area: decrement;
828
- `,Yr=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:I,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,{...I,children:n})]})});Yr.displayName="NumberInput";const Al=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:_}=Vr({...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})]})});Al.displayName="TextAreaInput";const qr=a.createContext({});qr.displayName="FormControlContext";function Tn(){return a.useContext(qr)}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:$}=is({errorMessage:n,label:t,description:r,validationState:s,id:l,...d});return T(qr.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 Ll=a.forwardRef((e,t)=>{const{label:n,tooltipContent:r,tooltipIcon:o,value:i,...s}=e;return T(Wr,{ref:t,label:ee(je,{children:[n,r?T(Cn,{icon:o,children:r}):null]}),...s})});Ll.displayName="TextFormControl";const Ml=a.forwardRef((e,t)=>{const{label:n,tooltipContent:r,tooltipIcon:o,...i}=e;return T(Al,{ref:t,label:ee(je,{children:[n,r?T(Cn,{icon:o,children:r}):null]}),...i})});Ml.displayName="TextAreaFormControl";const Fl=a.forwardRef((e,t)=>{const{label:n,tooltipContent:r,tooltipIcon:o,...i}=e;return T(Yr,{ref:t,label:ee(je,{children:[n,r?T(Cn,{icon:o,children:r}):null]}),...i})});Fl.displayName="NumberFormControl";function Nl(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"})}),Xr=k.default.div`
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`
829
833
  display: grid;
830
834
  place-items: center;
831
835
  width: 16px;
@@ -898,21 +902,21 @@ Check the top-level render call using <`+N+">.")}return M}}function Ct(x,M){{if(
898
902
  & > svg {
899
903
  line-height: 0;
900
904
  }
901
- `;function sm({disabled:e,checked:t,invalid:n,...r}){const o=Nl(e);return ee(am,{...r,...o,checked:t,"aria-invalid":n,children:[!t&&T(Xr,{}),ee(im,{children:[t===!0&&T(Xr,{children:T(rm,{})}),t==="indeterminate"&&T(Xr,{children:T(om,{})})]})]})}const Zr=k.default.h1`
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`
902
906
  font-family: ${c.font_family_inter_display};
903
907
  font-weight: 500; // don't really see value of using tokens for font-weight
904
908
  font-style: normal;
905
909
  margin: 0;
906
- `,lm=k.default(Zr)`
910
+ `,lm=k.default(Jr)`
907
911
  letter-spacing: ${c.letter_spacing_heading_large};
908
912
  font-size: ${c.font_size_heading_large};
909
- `,cm=k.default(Zr)`
913
+ `,cm=k.default(Jr)`
910
914
  letter-spacing: ${c.letter_spacing_heading_medium};
911
915
  font-size: ${c.font_size_heading_medium};
912
- `,dm={small:k.default(Zr)`
916
+ `,dm={small:k.default(Jr)`
913
917
  letter-spacing: ${c.letter_spacing_heading_small};
914
918
  font-size: ${c.font_size_heading_small};
915
- `,medium:cm,large:lm},zl=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})});zl.displayName="Heading";const um={small:"32px",large:"40px"},fm={circle:c.border_radius_circle,square:c.border_radius_400},Sn=k.default.button`
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`
916
920
  all: unset;
917
921
  appearance: none;
918
922
  display: grid;
@@ -1014,11 +1018,11 @@ Check the top-level render call using <`+N+">.")}return M}}function Ct(x,M){{if(
1014
1018
  &:disabled {
1015
1019
  background: ${c.color_fill_inverse_disabled};
1016
1020
  }
1017
- `,$m={primary:pm,secondary:bm,danger:mm,inverse:gm},Bl=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}=zr({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})})});Bl.displayName="Button";const Jr="horizontal",hm=["horizontal","vertical"],Vl=a.forwardRef((e,t)=>{const{decorative:n,orientation:r=Jr,...o}=e,i=Rl(r)?r:Jr,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}))});Vl.propTypes={orientation(e,t,n){const r=e[t],o=String(r);return r&&!Rl(r)?new Error(vm(o,n)):null}};function vm(e,t){return`Invalid prop \`orientation\` of value \`${e}\` supplied to \`${t}\`, expected one of:
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:
1018
1022
  - horizontal
1019
1023
  - vertical
1020
1024
 
1021
- Defaulting to \`${Jr}\`.`}function Rl(e){return hm.includes(e)}const _m=Vl;function Qr(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 Wl="ToastProvider",[eo,ym,xm]=Qr("Toast"),[Hl,Wh]=ge("Toast",[xm]),[wm,kn]=Hl(Wl),Kl=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(eo.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))};Kl.propTypes={label(e){if(e.label&&typeof e.label=="string"&&!e.label.trim()){const t=`Invalid prop \`label\` supplied to \`${Wl}\`. Expected non-empty \`string\`.`;return new Error(t)}return null}};const Em="ToastViewport",Pm=["F8"],to="toast.viewportPause",no="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(to);y.dispatchEvent(L),s.isClosePausedRef.current=!0}},w=()=>{if(s.isClosePausedRef.current){const L=new CustomEvent(no);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 I=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===I);if(ro(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(Jc,{ref:d,role:"region","aria-label":o.replace("{hotkey}",b),tabIndex:-1,style:{pointerEvents:h?void 0:"none"}},h&&a.createElement(Ul,{ref:f,onFocusFromOutsideViewport:()=>{const v=m({tabbingDirection:"forwards"});ro(v)}}),a.createElement(eo.Slot,{scope:n},a.createElement(R.ol,D({tabIndex:-1},i,{ref:$}))),h&&a.createElement(Ul,{ref:u,onFocusFromOutsideViewport:()=>{const v=m({tabbingDirection:"backwards"});ro(v)}}))}),Tm="ToastFocusProxy",Ul=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(jl,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]=Hl(Dn,{onClose(){}}),jl=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),I=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(I.current),L.current=new Date().getTime(),I.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(I.current),d==null||d()};return E.addEventListener(to,Y),E.addEventListener(no,U),()=>{E.removeEventListener(to,Y),E.removeEventListener(no,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?Xl(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(eo.ItemSlot,{scope:n},a.createElement(Zc,{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})):Zl(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};Zl(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});jl.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",Gl=a.forwardRef((e,t)=>{const{altText:n,...r}=e;return n?a.createElement(ql,{altText:n,asChild:!0},a.createElement(Yl,D({},r,{ref:t}))):null});Gl.propTypes={altText(e){return e.altText?null:new Error(`Missing prop \`altText\` expected on \`${Nm}\``)}};const zm="ToastClose",Yl=a.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,o=Lm(zm,n);return a.createElement(ql,{asChild:!0},a.createElement(R.button,D({type:"button"},r,{ref:t,onClick:B(e.onClick,o.onClose)})))}),ql=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 Xl(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(...Xl(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?$o(o,i):o.dispatchEvent(i)}const Zl=(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 ro(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}const Wm=Kl,Hm=Cm,Km=Im,Um=Fm,jm=Gl,Gm=Yl,oo=25,Ym=lt.keyframes`
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 j=()=>{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,j),()=>{E.removeEventListener(no,Y),E.removeEventListener(ro,j)}}},[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 j=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,j):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(j)>Q||Math.abs(Y)>Q)&&(w.current=null)}),onPointerUp:B(e.onPointerUp,E=>{const j=g.current,Y=E.target;if(Y.hasPointerCapture(E.pointerId)&&Y.releasePointerCapture(E.pointerId),g.current=null,w.current=null,j){const ae=E.currentTarget,ie={originalEvent:E,delta:j};Jl(j,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`
1022
1026
  0% {
1023
1027
  opacity: 1
1024
1028
  }
@@ -1028,7 +1032,7 @@ Defaulting to \`${Jr}\`.`}function Rl(e){return hm.includes(e)}const _m=Vl;funct
1028
1032
  }
1029
1033
  `,qm=lt.keyframes`
1030
1034
  from {
1031
- transform: translateX(calc(100% + ${oo}px));
1035
+ transform: translateX(calc(100% + ${ao}px));
1032
1036
  }
1033
1037
 
1034
1038
  to {
@@ -1039,9 +1043,9 @@ Defaulting to \`${Jr}\`.`}function Rl(e){return hm.includes(e)}const _m=Vl;funct
1039
1043
  transform: translateX(var(--radix-toast-swipe-end-x));
1040
1044
  }
1041
1045
  to {
1042
- transform: translateX(calc(100% + ${oo}px));
1046
+ transform: translateX(calc(100% + ${ao}px));
1043
1047
  }
1044
- `,Zm=k.default(jm)``,Jl=k.default(Gm)`
1048
+ `,Zm=k.default(jm)``,Ql=k.default(Gm)`
1045
1049
  all: unset;
1046
1050
  display: grid;
1047
1051
  width: ${c.sizing_500};
@@ -1067,7 +1071,7 @@ Defaulting to \`${Jr}\`.`}function Rl(e){return hm.includes(e)}const _m=Vl;funct
1067
1071
  letter-spacing: ${c.letter_spacing_tight};
1068
1072
  display: flex;
1069
1073
  align-items: center;
1070
- `,Ql=k.default(_m)`
1074
+ `,ec=k.default(_m)`
1071
1075
  background-color: var(--color-separator);
1072
1076
 
1073
1077
  &[data-orientation='horizontal'] {
@@ -1087,7 +1091,7 @@ Defaulting to \`${Jr}\`.`}function Rl(e){return hm.includes(e)}const _m=Vl;funct
1087
1091
  right: 0;
1088
1092
  display: flex;
1089
1093
  flex-direction: column;
1090
- padding: ${oo}px;
1094
+ padding: ${ao}px;
1091
1095
  gap: 10px;
1092
1096
  max-width: 100vw;
1093
1097
  margin: 0;
@@ -1128,7 +1132,7 @@ Defaulting to \`${Jr}\`.`}function Rl(e){return hm.includes(e)}const _m=Vl;funct
1128
1132
  &[data-swipe='end'] {
1129
1133
  animation: ${Xm} 100ms ease-out;
1130
1134
  }
1131
- `;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(Ql,{style:{"--color-separator":l}}),t,T(Jl,{onClick:r,children:T(Jt,{label:"Dismiss notification",children:T(ve.Close,{width:18,height:18})})})]})}const ig=a.createContext(void 0);function ao(e){const t=a.useContext(ig);return e||t||"ltr"}const io="rovingFocusGroup.onEntryFocus",sg={bubbles:!1,cancelable:!0},so="RovingFocusGroup",[lo,ec,lg]=Qr(so),[cg,tc]=ge(so,[lg]),[dg,ug]=cg(so),fg=a.forwardRef((e,t)=>a.createElement(lo.Provider,{scope:e.__scopeRovingFocusGroup},a.createElement(lo.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=ao(i),[h=null,m]=Pe({prop:s,defaultProp:l,onChange:d}),[v,y]=a.useState(!1),_=$e(f),w=ec(n),g=a.useRef(!1),[O,L]=a.useState(0);return a.useEffect(()=>{const C=p.current;if(C)return C.addEventListener(io,_),()=>C.removeEventListener(io,_)},[_]),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 I=!g.current;if(C.target===C.currentTarget&&I&&!v){const F=new CustomEvent(io,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);nc(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=ec(n),{onFocusableItemAdd:u,onFocusableItemRemove:p}=l;return a.useEffect(()=>{if(r)return u(),()=>p()},[r,u,p]),a.createElement(lo.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(()=>nc(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 nc(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,rc="Radio",[xg,oc]=ge(rc),[wg,Eg]=xg(rc),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":ac(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":ac(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 ac(e){return e?"checked":"unchecked"}const kg=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],ic="RadioGroup",[Dg,Hh]=ge(ic,[tc,oc]),sc=tc(),lc=oc(),[Og,Ig]=Dg(ic),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=sc(n),h=ao(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=sc(n),d=lc(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=lc(n);return a.createElement(Tg,D({},o,r,{ref:t}))}),Ng=Ag,zg=Mg,Bg=Fg,cc=k.default(zg)`
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(j=>j.focusable),P=W.find(j=>j.active),V=W.find(j=>j.id===h),E=[P,V,...W].filter(Boolean).map(j=>j.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)`
1132
1136
  all: unset;
1133
1137
  --radio-width: ${c.sizing_600};
1134
1138
  --inner-circle-color: ${c.color_white};
@@ -1215,7 +1219,7 @@ Defaulting to \`${Jr}\`.`}function Rl(e){return hm.includes(e)}const _m=Vl;funct
1215
1219
  border-radius: ${c.border_radius_circle};
1216
1220
  background-color: var(--inner-circle-color);
1217
1221
  }
1218
- `;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=cc,dc=Vg;function Hg({disabled:e,...t}){const n=Ue(),r=e||n,o=Tn();return T(cc,{...t,...o,disabled:r,children:T(dc,{})})}function uc(e,[t,n]){return Math.min(n,Math.max(t,e))}const Kg=[" ","Enter","ArrowUp","ArrowDown"],Ug=[" ","Enter"],In="Select",[An,co,jg]=Qr(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=ao(f),[O=!1,L]=Pe({prop:r,defaultProp:o,onChange:i}),[C,I]=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:I,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(mc,{key:S,"aria-hidden":!0,required:b,tabIndex:-1,name:u,autoComplete:p,value:C,onChange:E=>I(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=co(n),[f,u,p]=gc(b=>{const h=d().filter(y=>!y.disabled),m=h.find(y=>y.value===i.value),v=$c(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)),uo="SelectContent",r$=a.forwardRef((e,t)=>{const n=Et(uo,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(fc,{scope:e.__scopeSelect},a.createElement(An.Slot,{scope:e.__scopeSelect},a.createElement("div",null,e.children))),r):null)}),Ge=10,[fc,Pt]=Nt(uo),o$=a.forwardRef((e,t)=>{const{__scopeSelect:n,onCloseAutoFocus:r,...o}=e,i=Et(uo,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=co(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,I]=a.useState();pe(()=>{d&&I(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=uc(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=uc(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]=gc(z=>{const K=y().filter(Z=>!Z.disabled),Q=K.find(Z=>Z.ref.current===document.activeElement),G=$c(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(fc,{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}))}),fo="SelectItem",[p$,pc]=Nt(fo),b$=a.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:i,...s}=e,l=Et(fo,n),d=Pt(fo,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=pc(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 pc(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(bc,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(bc,D({},e,{ref:i,onAutoScroll:()=>{const{viewport:s,selectedItem:l}=n;s&&l&&(s.scrollTop=s.scrollTop+l.offsetHeight)}})):null}),bc=a.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,i=Pt("SelectScrollButton",n),s=a.useRef(null),l=co(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}))}),mc=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})))});mc.displayName="BubbleSelect";function gc(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 $c(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$,hc=k.default(Jg)`
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(j=>new Set(j).add(E))},[]),onNativeOptionRemove:a.useCallback(E=>{V(j=>{const Y=new Set(j);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[j,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:j},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)`
1219
1223
  all: unset;
1220
1224
  display: flex;
1221
1225
  align-items: center;
@@ -1260,7 +1264,7 @@ Defaulting to \`${Jr}\`.`}function Rl(e){return hm.includes(e)}const _m=Vl;funct
1260
1264
  `,B$=k.default(S$)`
1261
1265
  padding: ${c.sizing_100};
1262
1266
  min-width: 172px;
1263
- `;function vc({children:e,...t}){return T(C$,{children:T(z$,{...t,children:e})})}const V$=k.default(O$)`
1267
+ `;function _c({children:e,...t}){return T(C$,{children:T(z$,{...t,children:e})})}const V$=k.default(O$)`
1264
1268
  all: unset;
1265
1269
  font-size: ${c.font_size_100};
1266
1270
  line-height: ${c.line_height_129};
@@ -1306,7 +1310,7 @@ Defaulting to \`${Jr}\`.`}function Rl(e){return hm.includes(e)}const _m=Vl;funct
1306
1310
  line-height: 0;
1307
1311
  font-size: ${c.font_size_200};
1308
1312
  }
1309
- `,_c=`
1313
+ `,yc=`
1310
1314
  display: flex;
1311
1315
  align-items: center;
1312
1316
  justify-content: center;
@@ -1315,10 +1319,10 @@ Defaulting to \`${Jr}\`.`}function Rl(e){return hm.includes(e)}const _m=Vl;funct
1315
1319
  color: black;
1316
1320
  cursor: default;
1317
1321
  `,K$=k.default(L$)`
1318
- ${_c}
1322
+ ${yc}
1319
1323
  `,U$=k.default(M$)`
1320
- ${_c}
1321
- `,yc=E$,xc=hc,wc=P$,Ec=N$,j$=B$,G$=k$,Pc=V$,Cc=I$,Y$=H$,q$=R$,X$=W$,Tc=K$,Sc=U$;function Z$({items:e,...t}){return ee(yc,{...t,children:[ee(xc,{"aria-label":"Food",children:[T(wc,{placeholder:"Select"}),T(Ec,{children:T(ve.ArrowDropDown,{})})]}),ee(vc,{children:[T(Tc,{children:T(ve.ArrowDropUp,{})}),e.map(n=>T(Pc,{value:n,children:T(Cc,{children:n})},n)),T(Sc,{children:T(ve.ArrowDropDown,{})})]})]})}const kc="Switch",[J$,Uh]=ge(kc),[Q$,eh]=J$(kc),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":Dc(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":Dc(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 Dc(e){return e?"checked":"unchecked"}const ah=th,ih=rh,sh=k.default(ah)`
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)`
1322
1326
  all: unset;
1323
1327
  width: 40px;
1324
1328
  height: 24px;
@@ -1378,23 +1382,23 @@ Defaulting to \`${Jr}\`.`}function Rl(e){return hm.includes(e)}const _m=Vl;funct
1378
1382
  &[data-state='checked'] {
1379
1383
  transform: translateX(19px);
1380
1384
  }
1381
- `,ch=a.forwardRef((e,t)=>{const{disabled:n,...r}=e,o=Nl(n);return T(sh,{...r,...o,ref:t,children:T(lh,{})})}),zt=k.default.p`
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`
1382
1386
  font-family: ${c.font_family_inter};
1383
1387
  font-style: normal;
1384
1388
  font-weight: var(--text-font-weight, 400);
1385
1389
  color: var(--text-color, ${c.color_text_strong});
1386
1390
  margin-block: 0;
1387
- `,po=k.default(zt)`
1391
+ `,bo=k.default(zt)`
1388
1392
  max-width: 60ch; // should check with designers
1389
- `,dh=k.default(po)`
1393
+ `,dh=k.default(bo)`
1390
1394
  letter-spacing: ${c.letter_spacing_body_large};
1391
1395
  line-height: ${c.line_height_body_large};
1392
1396
  font-size: ${c.font_size_body_large};
1393
- `,uh=k.default(po)`
1397
+ `,uh=k.default(bo)`
1394
1398
  letter-spacing: ${c.letter_spacing_body_medium};
1395
1399
  line-height: ${c.line_height_body_medium};
1396
1400
  font-size: ${c.font_size_body_medium};
1397
- `,fh=k.default(po)`
1401
+ `,fh=k.default(bo)`
1398
1402
  letter-spacing: ${c.letter_spacing_body_small};
1399
1403
  line-height: ${c.line_height_body_small};
1400
1404
  font-size: ${c.font_size_body_small};
@@ -1413,7 +1417,7 @@ Defaulting to \`${Jr}\`.`}function Rl(e){return hm.includes(e)}const _m=Vl;funct
1413
1417
  letter-spacing: ${c.letter_spacing_number_small};
1414
1418
  line-height: ${c.line_height_number_small};
1415
1419
  font-size: ${c.font_size_number_small};
1416
- `,Oc=k.default(Mn)`
1420
+ `,Ic=k.default(Mn)`
1417
1421
  letter-spacing: ${c.letter_spacing_number_medium};
1418
1422
  line-height: ${c.line_height_number_medium};
1419
1423
  font-size: ${c.font_size_number_medium};
@@ -1421,7 +1425,7 @@ Defaulting to \`${Jr}\`.`}function Rl(e){return hm.includes(e)}const _m=Vl;funct
1421
1425
  letter-spacing: ${c.letter_spacing_number_large};
1422
1426
  line-height: ${c.line_height_number_large};
1423
1427
  font-size: ${c.font_size_number_large};
1424
- `,hh={xsmall:mh,small:gh,medium:Oc,large:$h};function vh({size:e="medium",bold:t,...n}){const r=hh[e];return T(r,{...n})}const _h=k.default(zt)`
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)`
1425
1429
  letter-spacing: ${c.letter_spacing_number_small};
1426
1430
  line-height: ${c.line_height_number_small};
1427
1431
  font-size: ${c.font_size_number_small};
@@ -1437,12 +1441,13 @@ Defaulting to \`${Jr}\`.`}function Rl(e){return hm.includes(e)}const _m=Vl;funct
1437
1441
  letter-spacing: ${c.letter_spacing_number_medium};
1438
1442
  line-height: ${c.line_height_number_medium};
1439
1443
  font-size: ${c.font_size_number_medium};
1440
- `,Eh={xsmall:yh,small:_h,medium:wh,large:xh};function Ph({size:e="medium",bold:t,...n}){const r=Eh[e]||Oc;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}},Ic=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}})});Ic.displayName="Text";const Fn=k.default.h1`
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`
1441
1445
  font-family: ${c.font_family_inter_display};
1442
1446
  font-style: normal;
1443
1447
  font-weight: 500; // don't really see value of using tokens for font-weight
1444
1448
  margin: 0;
1445
1449
  padding-inline: 0;
1450
+ color: ${c.color_text_strong};
1446
1451
  `,Sh=k.default(Fn)`
1447
1452
  font-size: ${c.font_size_title_large};
1448
1453
  letter-spacing: ${c.letter_spacing_title_large};
@@ -1455,5 +1460,5 @@ Defaulting to \`${Jr}\`.`}function Rl(e){return hm.includes(e)}const _m=Vl;funct
1455
1460
  `,Oh={xsmall:k.default(Fn)`
1456
1461
  font-size: ${c.font_size_title_xsmall};
1457
1462
  letter-spacing: ${c.letter_spacing_title_xsmall};
1458
- `,small:Dh,medium:kh,large:Sh},Ac=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})});Ac.displayName="Title",A.AccessibleIcon=Jt,A.AlertDialog=Xu,A.AlertDialogAction=Ju,A.AlertDialogCancel=Qu,A.AlertDialogContent=ju,A.AlertDialogDescription=Yu,A.AlertDialogFooter=qu,A.AlertDialogTitle=Gu,A.AlertDialogTrigger=Zu,A.BreadcrumbItem=ts,A.Breadcrumbs=es,A.Button=ns,A.Checkbox=sm,A.Dialog=Ru,A.DialogClose=Hu,A.DialogCloseButton=Vu,A.DialogContent=Fu,A.DialogDescription=zu,A.DialogFooter=Bu,A.DialogTitle=Nu,A.DialogTrigger=Wu,A.Fieldset=o0,A.FormControl=nm,A.Heading=zl,A.IconButton=Bl,A.Label=je,A.NumberFormControl=Fl,A.NumberInput=Yr,A.Popover=qi,A.PopoverClose=Sb,A.PopoverContent=Tb,A.PopoverTrigger=Xi,A.Radio=Hg,A.RadioGroup=Rg,A.RadioGroupIndicator=dc,A.RadioGroupRadio=Wg,A.Select=yc,A.SelectContent=vc,A.SelectGroup=G$,A.SelectGroupLabel=q$,A.SelectIcon=Ec,A.SelectItem=Pc,A.SelectItemIndicator=Y$,A.SelectItemText=Cc,A.SelectScrollDownButton=Sc,A.SelectScrollUpButton=Tc,A.SelectSeparator=X$,A.SelectTrigger=xc,A.SelectValue=wc,A.SelectViewport=j$,A.SingleSelect=Z$,A.StyledFieldSet=as,A.StyledTrigger=hc,A.Switch=ch,A.Text=Ic,A.TextAreaFormControl=Ml,A.TextFormControl=Ll,A.TextInput=Wr,A.Title=Ac,A.Toast=ag,A.ToastAction=Zm,A.ToastClose=Jl,A.ToastProvider=og,A.ToastSeparator=Ql,A.ToastViewport=ng,A.Tooltip=ps,A.TooltipContent=bs,A.TooltipProvider=fs,A.TooltipTrigger=us,A.contentShow=or,A.dialogWidths=ar,A.overlayShow=rr,A.useFieldProps=Tn,A.useFieldset=Ue,Object.defineProperties(A,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
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"}})});
1459
1464
  //# sourceMappingURL=trc-components.umd.js.map