@seeqdev/qomponents 0.0.247-beta.8a907d827a.20261020 → 0.0.247-beta.c367deae9b.20261029
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.esm.js +12 -12
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +14 -14
- package/dist/index.js.map +1 -1
- package/dist/src/Accordion/Accordion.d.ts +2 -2
- package/dist/src/Alert/Alert.d.ts +2 -2
- package/dist/src/Badge/Badge.d.ts +2 -2
- package/dist/src/Button/Button.d.ts +2 -2
- package/dist/src/Button/Button.styles.d.ts +6 -0
- package/dist/src/Button/Button.types.d.ts +8 -3
- package/dist/src/ButtonGroup/ButtonGroup.d.ts +2 -2
- package/dist/src/ButtonWithDropdown/ButtonWithDropdown.d.ts +3 -3
- package/dist/src/ButtonWithPopover/ButtonWithPopover.d.ts +2 -2
- package/dist/src/Carousel/Carousel.d.ts +2 -2
- package/dist/src/Checkbox/Checkbox.d.ts +2 -2
- package/dist/src/Collapse/Collapse.d.ts +2 -2
- package/dist/src/ColorPickerControl/ColorPickerControl.d.ts +2 -2
- package/dist/src/ExternalLink/ExternalLink.d.ts +2 -2
- package/dist/src/InputGroup/InputGroup.d.ts +2 -2
- package/dist/src/InputGroup/InputGroup.types.d.ts +3 -0
- package/dist/src/LoadingIndicator/LoadingIndicator.d.ts +2 -2
- package/dist/src/Modal/Modal.d.ts +5 -2
- package/dist/src/Modal/Modal.types.d.ts +9 -0
- package/dist/src/Paginator/Paginator.d.ts +6 -3
- package/dist/src/Paginator/Paginator.styles.d.ts +70 -70
- package/dist/src/ProgressCircle/ProgressCircle.constants.d.ts +8 -0
- package/dist/src/ProgressCircle/ProgressCircle.d.ts +20 -0
- package/dist/src/ProgressCircle/ProgressCircle.styles.d.ts +44 -0
- package/dist/src/ProgressCircle/ProgressCircle.types.d.ts +44 -0
- package/dist/src/ProgressCircle/ProgressCircle.utilities.d.ts +31 -0
- package/dist/src/ProgressCircle/index.d.ts +2 -0
- package/dist/src/SeeqActionDropdown/SeeqActionDropdown.d.ts +2 -2
- package/dist/src/SeeqActionDropdown/variants.d.ts +4 -4
- package/dist/src/SegmentedControl/SegmentedControl.d.ts +2 -2
- package/dist/src/Select/Select.d.ts +4 -2
- package/dist/src/Select/Select.types.d.ts +9 -1
- package/dist/src/Slider/Slider.d.ts +2 -2
- package/dist/src/SvgIcon/SvgIcon.d.ts +2 -2
- package/dist/src/Tabs/Tabs.d.ts +2 -2
- package/dist/src/Tabs/Tabs.types.d.ts +1 -1
- package/dist/src/TextArea/TextArea.d.ts +2 -2
- package/dist/src/ToolbarButton/ToolbarButton.d.ts +3 -2
- package/dist/src/ToolbarButton/ToolbarButton.types.d.ts +2 -0
- package/dist/src/Tooltip/Qtip.d.ts +2 -2
- package/dist/src/Tooltip/Tooltip.d.ts +2 -2
- package/dist/src/Tooltip/Tooltip.types.d.ts +2 -2
- package/dist/src/TriggerWithDropdown/TriggerWithDropdown.d.ts +2 -2
- package/dist/src/TriggerWithDropdown/TriggerWithDropdown.types.d.ts +2 -0
- package/dist/src/index.build.d.ts +3 -1
- package/dist/src/index.d.ts +3 -1
- package/dist/src/styles/controls.d.ts +11 -11
- package/dist/src/theme/colors.stylex.d.ts +53 -2
- package/dist/src/theme/themes.d.ts +521 -11
- package/dist/src/types.d.ts +2 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import*as e from"react";import t,{Children as n,Component as r,Fragment as i,cloneElement as a,createContext as o,createElement as s,forwardRef as c,isValidElement as l,useCallback as u,useContext as d,useEffect as f,useId as p,useInsertionEffect as m,useLayoutEffect as h,useMemo as g,useRef as _,useState as v}from"react";import{Fragment as y,jsx as b,jsxs as x}from"react/jsx-runtime";import*as S from"react-dom";import C,{createPortal as w}from"react-dom";var T=Object.create,E=Object.defineProperty,D=Object.getOwnPropertyDescriptor,O=Object.getOwnPropertyNames,k=Object.getPrototypeOf,A=Object.prototype.hasOwnProperty,j=(e,t)=>()=>(e&&(t=e(e=0)),t),M=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),ee=(e,t)=>{for(var n in t)E(e,n,{get:t[n],enumerable:!0})},N=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=O(t),a=0,o=i.length,s;a<o;a++)s=i[a],!A.call(e,s)&&s!==n&&E(e,s,{get:(e=>t[e]).bind(null,s),enumerable:!(r=D(t,s))||r.enumerable});return e},te=(e,t,n)=>(n=e==null?{}:T(k(e)),N(t||!e||!e.__esModule?E(n,`default`,{value:e,enumerable:!0}):n,e)),P=e=>N(E({},`__esModule`,{value:!0}),e);function ne(t,n){let r=e.createContext(n),i=t=>{let{children:n,...i}=t,a=e.useMemo(()=>i,Object.values(i));return b(r.Provider,{value:a,children:n})};i.displayName=t+`Provider`;function a(i){let a=e.useContext(r);if(a)return a;if(n!==void 0)return n;throw Error(`\`${i}\` must be used within \`${t}\``)}return[i,a]}function F(t,n=[]){let r=[];function i(n,i){let a=e.createContext(i),o=r.length;r=[...r,i];let s=n=>{let{scope:r,children:i,...s}=n,c=r?.[t]?.[o]||a,l=e.useMemo(()=>s,Object.values(s));return b(c.Provider,{value:l,children:i})};s.displayName=n+`Provider`;function c(r,s){let c=s?.[t]?.[o]||a,l=e.useContext(c);if(l)return l;if(i!==void 0)return i;throw Error(`\`${r}\` must be used within \`${n}\``)}return[s,c]}let a=()=>{let n=r.map(t=>e.createContext(t));return function(r){let i=r?.[t]||n;return e.useMemo(()=>({[`__scope${t}`]:{...r,[t]:i}}),[r,i])}};return a.scopeName=t,[i,re(a,...n)]}function re(...t){let n=t[0];if(t.length===1)return n;let r=()=>{let r=t.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(t){let i=r.reduce((e,{useScope:n,scopeName:r})=>{let i=n(t),a=i[`__scope${r}`];return{...e,...a}},{});return e.useMemo(()=>({[`__scope${n.scopeName}`]:i}),[i])}};return r.scopeName=n.scopeName,r}function ie(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function ae(...e){return t=>{let n=!1,r=e.map(e=>{let r=ie(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():ie(e[t],null)}}}}function I(...t){return e.useCallback(ae(...t),t)}function oe(t){let n=se(t),r=e.forwardRef((t,r)=>{let{children:i,...a}=t,o=e.Children.toArray(i),s=o.find(L);if(s){let t=s.props.children,i=o.map(n=>n===s?e.Children.count(t)>1?e.Children.only(null):e.isValidElement(t)?t.props.children:null:n);return b(n,{...a,ref:r,children:e.isValidElement(t)?e.cloneElement(t,void 0,i):null})}return b(n,{...a,ref:r,children:i})});return r.displayName=`${t}.Slot`,r}function se(t){let n=e.forwardRef((t,n)=>{let{children:r,...i}=t;if(e.isValidElement(r)){let t=R(r),a=le(i,r.props);return r.type!==e.Fragment&&(a.ref=n?ae(n,t):t),e.cloneElement(r,a)}return e.Children.count(r)>1?e.Children.only(null):null});return n.displayName=`${t}.SlotClone`,n}var ce=Symbol(`radix.slottable`);function L(t){return e.isValidElement(t)&&typeof t.type==`function`&&`__radixId`in t.type&&t.type.__radixId===ce}function le(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r],o=/^on[A-Z]/.test(r);o?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function R(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function ue(e){let n=e+`CollectionProvider`,[r,i]=F(n),[a,o]=r(n,{collectionRef:{current:null},itemMap:new Map}),s=e=>{let{scope:n,children:r}=e,i=t.useRef(null),o=t.useRef(new Map).current;return b(a,{scope:n,itemMap:o,collectionRef:i,children:r})};s.displayName=n;let c=e+`CollectionSlot`,l=oe(c),u=t.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=o(c,n),a=I(t,i.collectionRef);return b(l,{ref:a,children:r})});u.displayName=c;let d=e+`CollectionItemSlot`,f=`data-radix-collection-item`,p=oe(d),m=t.forwardRef((e,n)=>{let{scope:r,children:i,...a}=e,s=t.useRef(null),c=I(n,s),l=o(d,r);return t.useEffect(()=>(l.itemMap.set(s,{ref:s,...a}),()=>void l.itemMap.delete(s))),b(p,{[f]:``,ref:c,children:i})});m.displayName=d;function h(n){let r=o(e+`CollectionConsumer`,n),i=t.useCallback(()=>{let e=r.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${f}]`)),n=Array.from(r.itemMap.values()),i=n.sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current));return i},[r.collectionRef,r.itemMap]);return i}return[{Provider:s,Slot:u,ItemSlot:m},h,i]}typeof window<`u`&&window.document&&window.document.createElement;function z(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),n===!1||!r.defaultPrevented)return t?.(r)}}var de=globalThis?.document?e.useLayoutEffect:()=>{},fe=e.useInsertionEffect||de;function pe({prop:t,defaultProp:n,onChange:r=()=>{},caller:i}){let[a,o,s]=me({defaultProp:n,onChange:r}),c=t!==void 0,l=c?t:a;{let n=e.useRef(t!==void 0);e.useEffect(()=>{let e=n.current;if(e!==c){let t=e?`controlled`:`uncontrolled`,n=c?`controlled`:`uncontrolled`;console.warn(`${i} is changing from ${t} to ${n}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}n.current=c},[c,i])}let u=e.useCallback(e=>{if(c){let n=he(e)?e(t):e;n!==t&&s.current?.(n)}else o(e)},[c,t,o,s]);return[l,u]}function me({defaultProp:t,onChange:n}){let[r,i]=e.useState(t),a=e.useRef(r),o=e.useRef(n);return fe(()=>{o.current=n},[n]),e.useEffect(()=>{a.current!==r&&(o.current?.(r),a.current=r)},[r,a]),[r,i,o]}function he(e){return typeof e==`function`}var ge=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`],B=ge.reduce((t,n)=>{let r=oe(`Primitive.${n}`),i=e.forwardRef((e,t)=>{let{asChild:i,...a}=e,o=i?r:n;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),b(o,{...a,ref:t})});return i.displayName=`Primitive.${n}`,{...t,[n]:i}},{});function _e(e,t){e&&S.flushSync(()=>e.dispatchEvent(t))}function ve(t,n){return e.useReducer((e,t)=>{let r=n[e][t];return r??e},t)}var ye=t=>{let{present:n,children:r}=t,i=be(n),a=typeof r==`function`?r({present:i.isPresent}):e.Children.only(r),o=I(i.ref,Se(a)),s=typeof r==`function`;return s||i.isPresent?e.cloneElement(a,{ref:o}):null};ye.displayName=`Presence`;function be(t){let[n,r]=e.useState(),i=e.useRef(null),a=e.useRef(t),o=e.useRef(`none`),s=t?`mounted`:`unmounted`,[c,l]=ve(s,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}});return e.useEffect(()=>{let e=xe(i.current);o.current=c===`mounted`?e:`none`},[c]),de(()=>{let e=i.current,n=a.current,r=n!==t;if(r){let r=o.current,i=xe(e);if(t)l(`MOUNT`);else if(i===`none`||e?.display===`none`)l(`UNMOUNT`);else{let e=r!==i;l(n&&e?`ANIMATION_OUT`:`UNMOUNT`)}a.current=t}},[t,l]),de(()=>{if(n){let e,t=n.ownerDocument.defaultView??window,r=r=>{let o=xe(i.current),s=o.includes(CSS.escape(r.animationName));if(r.target===n&&s&&(l(`ANIMATION_END`),!a.current)){let r=n.style.animationFillMode;n.style.animationFillMode=`forwards`,e=t.setTimeout(()=>{n.style.animationFillMode===`forwards`&&(n.style.animationFillMode=r)})}},s=e=>{e.target===n&&(o.current=xe(i.current))};return n.addEventListener(`animationstart`,s),n.addEventListener(`animationcancel`,r),n.addEventListener(`animationend`,r),()=>{t.clearTimeout(e),n.removeEventListener(`animationstart`,s),n.removeEventListener(`animationcancel`,r),n.removeEventListener(`animationend`,r)}}else l(`ANIMATION_END`)},[n,l]),{isPresent:[`mounted`,`unmountSuspended`].includes(c),ref:e.useCallback(e=>{i.current=e?getComputedStyle(e):null,r(e)},[])}}function xe(e){return e?.animationName||`none`}function Se(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Ce=e.useId||(()=>void 0),we=0;function Te(t){let[n,r]=e.useState(Ce());return de(()=>{t||r(e=>e??String(we++))},[t]),t||(n?`radix-${n}`:``)}var Ee=`Collapsible`,[De,Oe]=F(Ee),[ke,Ae]=De(Ee),je=e.forwardRef((t,n)=>{let{__scopeCollapsible:r,open:i,defaultOpen:a,disabled:o,onOpenChange:s,...c}=t,[l,u]=pe({prop:i,defaultProp:a??!1,onChange:s,caller:Ee});return b(ke,{scope:r,disabled:o,contentId:Te(),open:l,onOpenToggle:e.useCallback(()=>u(e=>!e),[u]),children:b(B.div,{"data-state":Le(l),"data-disabled":o?``:void 0,...c,ref:n})})});je.displayName=Ee;var Me=`CollapsibleTrigger`,Ne=e.forwardRef((e,t)=>{let{__scopeCollapsible:n,...r}=e,i=Ae(Me,n);return b(B.button,{type:`button`,"aria-controls":i.contentId,"aria-expanded":i.open||!1,"data-state":Le(i.open),"data-disabled":i.disabled?``:void 0,disabled:i.disabled,...r,ref:t,onClick:z(e.onClick,i.onOpenToggle)})});Ne.displayName=Me;var Pe=`CollapsibleContent`,Fe=e.forwardRef((e,t)=>{let{forceMount:n,...r}=e,i=Ae(Pe,e.__scopeCollapsible);return b(ye,{present:n||i.open,children:({present:e})=>b(Ie,{...r,ref:t,present:e})})});Fe.displayName=Pe;var Ie=e.forwardRef((t,n)=>{let{__scopeCollapsible:r,present:i,children:a,...o}=t,s=Ae(Pe,r),[c,l]=e.useState(i),u=e.useRef(null),d=I(n,u),f=e.useRef(0),p=f.current,m=e.useRef(0),h=m.current,g=s.open||c,_=e.useRef(g),v=e.useRef(void 0);return e.useEffect(()=>{let e=requestAnimationFrame(()=>_.current=!1);return()=>cancelAnimationFrame(e)},[]),de(()=>{let e=u.current;if(e){v.current=v.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration=`0s`,e.style.animationName=`none`;let t=e.getBoundingClientRect();f.current=t.height,m.current=t.width,_.current||(e.style.transitionDuration=v.current.transitionDuration,e.style.animationName=v.current.animationName),l(i)}},[s.open,i]),b(B.div,{"data-state":Le(s.open),"data-disabled":s.disabled?``:void 0,id:s.contentId,hidden:!g,...o,ref:d,style:{"--radix-collapsible-content-height":p?`${p}px`:void 0,"--radix-collapsible-content-width":h?`${h}px`:void 0,...t.style},children:g&&a})});function Le(e){return e?`open`:`closed`}var Re=je,ze=Ne,Be=Fe,Ve=e.createContext(void 0);function He(t){let n=e.useContext(Ve);return t||n||`ltr`}var Ue=`Accordion`,We=[`Home`,`End`,`ArrowDown`,`ArrowUp`,`ArrowLeft`,`ArrowRight`],[Ge,Ke,qe]=ue(Ue),[Je,Ye]=F(Ue,[qe,Oe]),Xe=Oe(),Ze=t.forwardRef((e,t)=>{let{type:n,...r}=e,i=r,a=r;return b(Ge.Provider,{scope:e.__scopeAccordion,children:n===`multiple`?b(rt,{...a,ref:t}):b(nt,{...i,ref:t})})});Ze.displayName=Ue;var[Qe,$e]=Je(Ue),[et,tt]=Je(Ue,{collapsible:!1}),nt=t.forwardRef((e,n)=>{let{value:r,defaultValue:i,onValueChange:a=()=>{},collapsible:o=!1,...s}=e,[c,l]=pe({prop:r,defaultProp:i??``,onChange:a,caller:Ue});return b(Qe,{scope:e.__scopeAccordion,value:t.useMemo(()=>c?[c]:[],[c]),onItemOpen:l,onItemClose:t.useCallback(()=>o&&l(``),[o,l]),children:b(et,{scope:e.__scopeAccordion,collapsible:o,children:b(ot,{...s,ref:n})})})}),rt=t.forwardRef((e,n)=>{let{value:r,defaultValue:i,onValueChange:a=()=>{},...o}=e,[s,c]=pe({prop:r,defaultProp:i??[],onChange:a,caller:Ue}),l=t.useCallback(e=>c((t=[])=>[...t,e]),[c]),u=t.useCallback(e=>c((t=[])=>t.filter(t=>t!==e)),[c]);return b(Qe,{scope:e.__scopeAccordion,value:s,onItemOpen:l,onItemClose:u,children:b(et,{scope:e.__scopeAccordion,collapsible:!0,children:b(ot,{...o,ref:n})})})}),[it,at]=Je(Ue),ot=t.forwardRef((e,n)=>{let{__scopeAccordion:r,disabled:i,dir:a,orientation:o=`vertical`,...s}=e,c=t.useRef(null),l=I(c,n),u=Ke(r),d=He(a),f=d===`ltr`,p=z(e.onKeyDown,e=>{if(!We.includes(e.key))return;let t=e.target,n=u().filter(e=>!e.ref.current?.disabled),r=n.findIndex(e=>e.ref.current===t),i=n.length;if(r===-1)return;e.preventDefault();let a=r,s=i-1,c=()=>{a=r+1,a>s&&(a=0)},l=()=>{a=r-1,a<0&&(a=s)};switch(e.key){case`Home`:a=0;break;case`End`:a=s;break;case`ArrowRight`:o===`horizontal`&&(f?c():l());break;case`ArrowDown`:o===`vertical`&&c();break;case`ArrowLeft`:o===`horizontal`&&(f?l():c());break;case`ArrowUp`:o===`vertical`&&l();break}let d=a%i;n[d].ref.current?.focus()});return b(it,{scope:r,disabled:i,direction:a,orientation:o,children:b(Ge.Slot,{scope:r,children:b(B.div,{...s,"data-orientation":o,ref:l,onKeyDown:i?void 0:p})})})}),st=`AccordionItem`,[ct,lt]=Je(st),ut=t.forwardRef((e,t)=>{let{__scopeAccordion:n,value:r,...i}=e,a=at(st,n),o=$e(st,n),s=Xe(n),c=Te(),l=r&&o.value.includes(r)||!1,u=a.disabled||e.disabled;return b(ct,{scope:n,open:l,disabled:u,triggerId:c,children:b(Re,{"data-orientation":a.orientation,"data-state":_t(l),...s,...i,ref:t,disabled:u,open:l,onOpenChange:e=>{e?o.onItemOpen(r):o.onItemClose(r)}})})});ut.displayName=st;var dt=`AccordionHeader`,ft=t.forwardRef((e,t)=>{let{__scopeAccordion:n,...r}=e,i=at(Ue,n),a=lt(dt,n);return b(B.h3,{"data-orientation":i.orientation,"data-state":_t(a.open),"data-disabled":a.disabled?``:void 0,...r,ref:t})});ft.displayName=dt;var pt=`AccordionTrigger`,mt=t.forwardRef((e,t)=>{let{__scopeAccordion:n,...r}=e,i=at(Ue,n),a=lt(pt,n),o=tt(pt,n),s=Xe(n);return b(Ge.ItemSlot,{scope:n,children:b(ze,{"aria-disabled":a.open&&!o.collapsible||void 0,"data-orientation":i.orientation,id:a.triggerId,...s,...r,ref:t})})});mt.displayName=pt;var ht=`AccordionContent`,gt=t.forwardRef((e,t)=>{let{__scopeAccordion:n,...r}=e,i=at(Ue,n),a=lt(ht,n),o=Xe(n);return b(Be,{role:`region`,"aria-labelledby":a.triggerId,"data-orientation":i.orientation,...o,...r,ref:t,style:{"--radix-accordion-content-height":`var(--radix-collapsible-content-height)`,"--radix-accordion-content-width":`var(--radix-collapsible-content-width)`,...e.style}})});gt.displayName=ht;function _t(e){return e?`open`:`closed`}var vt=Ze,yt=ut,bt=mt,xt=gt,St={},Ct;function wt(){if(Ct)return St;Ct=1,Object.defineProperty(St,`__esModule`,{value:!0}),St.styleq=void 0;var e=new WeakMap,t=`$$css`;function n(n){var r,i,a;return n!=null&&(r=n.disableCache===!0,i=n.disableMix===!0,a=n.transform),function(){for(var n=[],o=``,s=null,c=``,l=r?null:e,u=Array(arguments.length),d=0;d<arguments.length;d++)u[d]=arguments[d];for(;u.length>0;){var f=u.pop();if(!(f==null||f===!1)){if(Array.isArray(f)){for(var p=0;p<f.length;p++)u.push(f[p]);continue}var m=a==null?f:a(f);if(m.$$css!=null){var h=``;if(l!=null&&l.has(m)){var g=l.get(m);g!=null&&(h=g[0],c=g[2],n.push.apply(n,g[1]),l=g[3])}else{var _=[];for(var v in m){var y=m[v];if(v===t){var b=m[v];b!==!0&&(c=c?b+`; `+c:b);continue}typeof y==`string`||y===null?n.includes(v)||(n.push(v),l!=null&&_.push(v),typeof y==`string`&&(h+=h?` `+y:y)):console.error(`styleq: ${v} typeof ${String(y)} is not "string" or "null".`)}if(l!=null){var x=new WeakMap;l.set(m,[h,_,c,x]),l=x}}h&&(o=o?h+` `+o:h)}else if(i)s??={},s=Object.assign({},m,s);else{var S=null;for(var C in m){var w=m[C];w!==void 0&&(n.includes(C)||(w!=null&&(s??={},S??={},S[C]=w),n.push(C),l=null))}S!=null&&(s=Object.assign(S,s))}}}var T=[o,s,c];return T}}var r=St.styleq=n();return r.factory=n,St}var Tt=wt();function V(...e){let[t,n,r]=Tt.styleq(e),i={};return t!=null&&t!==``&&(i.className=t),n!=null&&Object.keys(n).length>0&&(i.style=n),r!=null&&r!==``&&(i[`data-style-src`]=r),i}Object.freeze({});function Et(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Et(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function Dt(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Et(e))&&(r&&(r+=` `),r+=t);return r}var H=Dt;const Ot={root:{kzqmXN:`xh8yej3`,kaIpWk:`x1vx5ruh`,k3XXqK:`xi5y0ii`,$$css:!0},content:{kVQacm:`xb3r6kr`,k3XXqK:`xi5y0ii`,k44tkh:`x4afe7t`,kyAemX:`x4hg4is`,kKVMdj:`x1a5igra x55lahc x7yx0tp`,$$css:!0}},kt=({accordionItems:e,defaultValue:t,value:n,onItemSelect:r,disabled:i,extraClassNames:a,xstyle:o,testId:s})=>{let c=V(Ot.root,o);return b(vt,{...c,className:Dt(c.className,a),type:`single`,defaultValue:t,value:n,collapsible:!0,"data-testid":s,onValueChange:e=>r(e),children:e.map(e=>{let t=b(bt,{disabled:i,...{0:{className:`xt0e3qv xjbqb8w xc342km x1717udv xln7xf2 x1heor9g xi5y0ii xh8yej3`},1:{className:`xt0e3qv xjbqb8w xc342km x1717udv xln7xf2 x1heor9g xi5y0ii x845mor`}}[!!e.headerActions<<0],children:e.trigger}),n=V(Ot.content,e.contentXstyle);return x(yt,{className:`x78zum5 xh8yej3 xdt5ytf x1717udv`,disabled:i,value:e.value,children:[e.headerActions?x(`div`,{className:`x78zum5 xh8yej3 x6s0dn4`,children:[t,e.headerActions]}):t,b(xt,{...n,className:Dt(n.className,e.contentClassNames),children:e.content})]},e.value)})})};var At=kt;const jt={prefix:`fak`,iconName:`arrow-dropdown`,icon:[1024,1024,[],`e948`,`M512 803.8c-25.6 0-46.1-10.2-66.6-25.6l-430-399.3c-20.5-20.5-20.5-51.2 0-71.7l66.5-71.7c20.5-20.5 51.2-20.5 71.7 0l363.5 337.9 363.5-337.9c20.5-20.5 51.2-15.4 71.7 0l56.3 71.7c20.5 20.5 15.4 51.2 0 71.7l-430 399.3c-20.5 15.4-41 25.6-66.6 25.6z`]},Mt={prefix:`fak`,iconName:`arrow-left-chevron`,icon:[1024,1024,[],``,`M220.2 512c0-25.6 10.2-46.1 25.6-66.6l399.3-430c20.5-20.5 51.2-20.5 71.7 0l71.7 66.5c20.5 20.5 20.5 51.2 0 71.7l-337.9 363.5 337.9 363.5c20.5 20.5 15.4 51.2 0 71.7l-71.7 56.3c-20.5 20.5-51.2 15.4-71.7 0l-399.3-430c-15.4-20.5-25.6-41-25.6-66.6z`]},Nt={prefix:`fak`,iconName:`arrow-right-chevron`,icon:[1024,1024,[],``,`M803.8 512c0 25.6-10.2 46.1-25.6 66.6l-399.3 430c-20.5 20.5-51.2 20.5-71.7 0l-71.7-66.5c-20.5-20.5-20.5-51.2 0-71.7l337.9-363.5-337.9-363.5c-20.5-20.5-15.4-51.2 0-71.7l71.7-56.3c20.5-20.5 51.2-15.4 71.7 0l399.3 430c15.4 20.5 25.6 41 25.6 66.6z`]},Pt={prefix:`fak`,iconName:`delete`,icon:[1024,1024,[],`e927`,`M1003.5 76.8l-51.2-51.2c-30.7-30.7-76.8-30.7-107.5 0l-332.8 327.7-332.8-332.8c-30.7-25.6-76.8-25.6-102.4 0l-51.2 51.2c-30.7 30.7-30.7 76.8 0 107.5l327.7 332.8-332.8 332.8c-30.7 30.7-30.7 76.8 0 107.5l51.2 51.2c30.7 30.7 76.8 30.7 107.5 0l332.8-332.8 332.8 332.8c30.7 30.7 76.8 30.7 107.5 0l51.2-51.2c30.7-30.7 30.7-76.8 0-107.5l-332.8-332.8 332.8-332.8c25.6-30.7 25.6-76.8 0-102.4z`]};
|
|
1
|
+
import*as e from"react";import t,{Children as n,Component as r,Fragment as i,cloneElement as a,createContext as o,createElement as s,forwardRef as c,isValidElement as l,useCallback as u,useContext as d,useEffect as f,useId as p,useInsertionEffect as m,useLayoutEffect as h,useMemo as g,useRef as _,useState as v}from"react";import{Fragment as y,jsx as b,jsxs as x}from"react/jsx-runtime";import*as S from"react-dom";import C,{createPortal as w}from"react-dom";var T=Object.create,E=Object.defineProperty,D=Object.getOwnPropertyDescriptor,O=Object.getOwnPropertyNames,k=Object.getPrototypeOf,A=Object.prototype.hasOwnProperty,j=(e,t)=>()=>(e&&(t=e(e=0)),t),M=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),ee=(e,t)=>{for(var n in t)E(e,n,{get:t[n],enumerable:!0})},te=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=O(t),a=0,o=i.length,s;a<o;a++)s=i[a],!A.call(e,s)&&s!==n&&E(e,s,{get:(e=>t[e]).bind(null,s),enumerable:!(r=D(t,s))||r.enumerable});return e},N=(e,t,n)=>(n=e==null?{}:T(k(e)),te(t||!e||!e.__esModule?E(n,`default`,{value:e,enumerable:!0}):n,e)),P=e=>te(E({},`__esModule`,{value:!0}),e);function ne(t,n){let r=e.createContext(n),i=t=>{let{children:n,...i}=t,a=e.useMemo(()=>i,Object.values(i));return b(r.Provider,{value:a,children:n})};i.displayName=t+`Provider`;function a(i){let a=e.useContext(r);if(a)return a;if(n!==void 0)return n;throw Error(`\`${i}\` must be used within \`${t}\``)}return[i,a]}function F(t,n=[]){let r=[];function i(n,i){let a=e.createContext(i),o=r.length;r=[...r,i];let s=n=>{let{scope:r,children:i,...s}=n,c=r?.[t]?.[o]||a,l=e.useMemo(()=>s,Object.values(s));return b(c.Provider,{value:l,children:i})};s.displayName=n+`Provider`;function c(r,s){let c=s?.[t]?.[o]||a,l=e.useContext(c);if(l)return l;if(i!==void 0)return i;throw Error(`\`${r}\` must be used within \`${n}\``)}return[s,c]}let a=()=>{let n=r.map(t=>e.createContext(t));return function(r){let i=r?.[t]||n;return e.useMemo(()=>({[`__scope${t}`]:{...r,[t]:i}}),[r,i])}};return a.scopeName=t,[i,re(a,...n)]}function re(...t){let n=t[0];if(t.length===1)return n;let r=()=>{let r=t.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(t){let i=r.reduce((e,{useScope:n,scopeName:r})=>{let i=n(t),a=i[`__scope${r}`];return{...e,...a}},{});return e.useMemo(()=>({[`__scope${n.scopeName}`]:i}),[i])}};return r.scopeName=n.scopeName,r}function ie(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function ae(...e){return t=>{let n=!1,r=e.map(e=>{let r=ie(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():ie(e[t],null)}}}}function I(...t){return e.useCallback(ae(...t),t)}function oe(t){let n=se(t),r=e.forwardRef((t,r)=>{let{children:i,...a}=t,o=e.Children.toArray(i),s=o.find(L);if(s){let t=s.props.children,i=o.map(n=>n===s?e.Children.count(t)>1?e.Children.only(null):e.isValidElement(t)?t.props.children:null:n);return b(n,{...a,ref:r,children:e.isValidElement(t)?e.cloneElement(t,void 0,i):null})}return b(n,{...a,ref:r,children:i})});return r.displayName=`${t}.Slot`,r}function se(t){let n=e.forwardRef((t,n)=>{let{children:r,...i}=t;if(e.isValidElement(r)){let t=ue(r),a=le(i,r.props);return r.type!==e.Fragment&&(a.ref=n?ae(n,t):t),e.cloneElement(r,a)}return e.Children.count(r)>1?e.Children.only(null):null});return n.displayName=`${t}.SlotClone`,n}var ce=Symbol(`radix.slottable`);function L(t){return e.isValidElement(t)&&typeof t.type==`function`&&`__radixId`in t.type&&t.type.__radixId===ce}function le(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r],o=/^on[A-Z]/.test(r);o?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function ue(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function de(e){let n=e+`CollectionProvider`,[r,i]=F(n),[a,o]=r(n,{collectionRef:{current:null},itemMap:new Map}),s=e=>{let{scope:n,children:r}=e,i=t.useRef(null),o=t.useRef(new Map).current;return b(a,{scope:n,itemMap:o,collectionRef:i,children:r})};s.displayName=n;let c=e+`CollectionSlot`,l=oe(c),u=t.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=o(c,n),a=I(t,i.collectionRef);return b(l,{ref:a,children:r})});u.displayName=c;let d=e+`CollectionItemSlot`,f=`data-radix-collection-item`,p=oe(d),m=t.forwardRef((e,n)=>{let{scope:r,children:i,...a}=e,s=t.useRef(null),c=I(n,s),l=o(d,r);return t.useEffect(()=>(l.itemMap.set(s,{ref:s,...a}),()=>void l.itemMap.delete(s))),b(p,{[f]:``,ref:c,children:i})});m.displayName=d;function h(n){let r=o(e+`CollectionConsumer`,n),i=t.useCallback(()=>{let e=r.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${f}]`)),n=Array.from(r.itemMap.values()),i=n.sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current));return i},[r.collectionRef,r.itemMap]);return i}return[{Provider:s,Slot:u,ItemSlot:m},h,i]}typeof window<`u`&&window.document&&window.document.createElement;function R(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),n===!1||!r.defaultPrevented)return t?.(r)}}var z=globalThis?.document?e.useLayoutEffect:()=>{},fe=e.useInsertionEffect||z;function pe({prop:t,defaultProp:n,onChange:r=()=>{},caller:i}){let[a,o,s]=me({defaultProp:n,onChange:r}),c=t!==void 0,l=c?t:a;{let n=e.useRef(t!==void 0);e.useEffect(()=>{let e=n.current;if(e!==c){let t=e?`controlled`:`uncontrolled`,n=c?`controlled`:`uncontrolled`;console.warn(`${i} is changing from ${t} to ${n}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}n.current=c},[c,i])}let u=e.useCallback(e=>{if(c){let n=he(e)?e(t):e;n!==t&&s.current?.(n)}else o(e)},[c,t,o,s]);return[l,u]}function me({defaultProp:t,onChange:n}){let[r,i]=e.useState(t),a=e.useRef(r),o=e.useRef(n);return fe(()=>{o.current=n},[n]),e.useEffect(()=>{a.current!==r&&(o.current?.(r),a.current=r)},[r,a]),[r,i,o]}function he(e){return typeof e==`function`}var ge=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`],B=ge.reduce((t,n)=>{let r=oe(`Primitive.${n}`),i=e.forwardRef((e,t)=>{let{asChild:i,...a}=e,o=i?r:n;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),b(o,{...a,ref:t})});return i.displayName=`Primitive.${n}`,{...t,[n]:i}},{});function _e(e,t){e&&S.flushSync(()=>e.dispatchEvent(t))}function ve(t,n){return e.useReducer((e,t)=>{let r=n[e][t];return r??e},t)}var ye=t=>{let{present:n,children:r}=t,i=be(n),a=typeof r==`function`?r({present:i.isPresent}):e.Children.only(r),o=I(i.ref,Se(a)),s=typeof r==`function`;return s||i.isPresent?e.cloneElement(a,{ref:o}):null};ye.displayName=`Presence`;function be(t){let[n,r]=e.useState(),i=e.useRef(null),a=e.useRef(t),o=e.useRef(`none`),s=t?`mounted`:`unmounted`,[c,l]=ve(s,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}});return e.useEffect(()=>{let e=xe(i.current);o.current=c===`mounted`?e:`none`},[c]),z(()=>{let e=i.current,n=a.current,r=n!==t;if(r){let r=o.current,i=xe(e);if(t)l(`MOUNT`);else if(i===`none`||e?.display===`none`)l(`UNMOUNT`);else{let e=r!==i;l(n&&e?`ANIMATION_OUT`:`UNMOUNT`)}a.current=t}},[t,l]),z(()=>{if(n){let e,t=n.ownerDocument.defaultView??window,r=r=>{let o=xe(i.current),s=o.includes(CSS.escape(r.animationName));if(r.target===n&&s&&(l(`ANIMATION_END`),!a.current)){let r=n.style.animationFillMode;n.style.animationFillMode=`forwards`,e=t.setTimeout(()=>{n.style.animationFillMode===`forwards`&&(n.style.animationFillMode=r)})}},s=e=>{e.target===n&&(o.current=xe(i.current))};return n.addEventListener(`animationstart`,s),n.addEventListener(`animationcancel`,r),n.addEventListener(`animationend`,r),()=>{t.clearTimeout(e),n.removeEventListener(`animationstart`,s),n.removeEventListener(`animationcancel`,r),n.removeEventListener(`animationend`,r)}}else l(`ANIMATION_END`)},[n,l]),{isPresent:[`mounted`,`unmountSuspended`].includes(c),ref:e.useCallback(e=>{i.current=e?getComputedStyle(e):null,r(e)},[])}}function xe(e){return e?.animationName||`none`}function Se(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Ce=e.useId||(()=>void 0),we=0;function Te(t){let[n,r]=e.useState(Ce());return z(()=>{t||r(e=>e??String(we++))},[t]),t||(n?`radix-${n}`:``)}var Ee=`Collapsible`,[De,Oe]=F(Ee),[ke,Ae]=De(Ee),je=e.forwardRef((t,n)=>{let{__scopeCollapsible:r,open:i,defaultOpen:a,disabled:o,onOpenChange:s,...c}=t,[l,u]=pe({prop:i,defaultProp:a??!1,onChange:s,caller:Ee});return b(ke,{scope:r,disabled:o,contentId:Te(),open:l,onOpenToggle:e.useCallback(()=>u(e=>!e),[u]),children:b(B.div,{"data-state":Le(l),"data-disabled":o?``:void 0,...c,ref:n})})});je.displayName=Ee;var Me=`CollapsibleTrigger`,Ne=e.forwardRef((e,t)=>{let{__scopeCollapsible:n,...r}=e,i=Ae(Me,n);return b(B.button,{type:`button`,"aria-controls":i.contentId,"aria-expanded":i.open||!1,"data-state":Le(i.open),"data-disabled":i.disabled?``:void 0,disabled:i.disabled,...r,ref:t,onClick:R(e.onClick,i.onOpenToggle)})});Ne.displayName=Me;var Pe=`CollapsibleContent`,Fe=e.forwardRef((e,t)=>{let{forceMount:n,...r}=e,i=Ae(Pe,e.__scopeCollapsible);return b(ye,{present:n||i.open,children:({present:e})=>b(Ie,{...r,ref:t,present:e})})});Fe.displayName=Pe;var Ie=e.forwardRef((t,n)=>{let{__scopeCollapsible:r,present:i,children:a,...o}=t,s=Ae(Pe,r),[c,l]=e.useState(i),u=e.useRef(null),d=I(n,u),f=e.useRef(0),p=f.current,m=e.useRef(0),h=m.current,g=s.open||c,_=e.useRef(g),v=e.useRef(void 0);return e.useEffect(()=>{let e=requestAnimationFrame(()=>_.current=!1);return()=>cancelAnimationFrame(e)},[]),z(()=>{let e=u.current;if(e){v.current=v.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration=`0s`,e.style.animationName=`none`;let t=e.getBoundingClientRect();f.current=t.height,m.current=t.width,_.current||(e.style.transitionDuration=v.current.transitionDuration,e.style.animationName=v.current.animationName),l(i)}},[s.open,i]),b(B.div,{"data-state":Le(s.open),"data-disabled":s.disabled?``:void 0,id:s.contentId,hidden:!g,...o,ref:d,style:{"--radix-collapsible-content-height":p?`${p}px`:void 0,"--radix-collapsible-content-width":h?`${h}px`:void 0,...t.style},children:g&&a})});function Le(e){return e?`open`:`closed`}var Re=je,ze=Ne,Be=Fe,Ve=e.createContext(void 0);function He(t){let n=e.useContext(Ve);return t||n||`ltr`}var Ue=`Accordion`,We=[`Home`,`End`,`ArrowDown`,`ArrowUp`,`ArrowLeft`,`ArrowRight`],[Ge,Ke,qe]=de(Ue),[Je,Ye]=F(Ue,[qe,Oe]),Xe=Oe(),Ze=t.forwardRef((e,t)=>{let{type:n,...r}=e,i=r,a=r;return b(Ge.Provider,{scope:e.__scopeAccordion,children:n===`multiple`?b(rt,{...a,ref:t}):b(nt,{...i,ref:t})})});Ze.displayName=Ue;var[Qe,$e]=Je(Ue),[et,tt]=Je(Ue,{collapsible:!1}),nt=t.forwardRef((e,n)=>{let{value:r,defaultValue:i,onValueChange:a=()=>{},collapsible:o=!1,...s}=e,[c,l]=pe({prop:r,defaultProp:i??``,onChange:a,caller:Ue});return b(Qe,{scope:e.__scopeAccordion,value:t.useMemo(()=>c?[c]:[],[c]),onItemOpen:l,onItemClose:t.useCallback(()=>o&&l(``),[o,l]),children:b(et,{scope:e.__scopeAccordion,collapsible:o,children:b(ot,{...s,ref:n})})})}),rt=t.forwardRef((e,n)=>{let{value:r,defaultValue:i,onValueChange:a=()=>{},...o}=e,[s,c]=pe({prop:r,defaultProp:i??[],onChange:a,caller:Ue}),l=t.useCallback(e=>c((t=[])=>[...t,e]),[c]),u=t.useCallback(e=>c((t=[])=>t.filter(t=>t!==e)),[c]);return b(Qe,{scope:e.__scopeAccordion,value:s,onItemOpen:l,onItemClose:u,children:b(et,{scope:e.__scopeAccordion,collapsible:!0,children:b(ot,{...o,ref:n})})})}),[it,at]=Je(Ue),ot=t.forwardRef((e,n)=>{let{__scopeAccordion:r,disabled:i,dir:a,orientation:o=`vertical`,...s}=e,c=t.useRef(null),l=I(c,n),u=Ke(r),d=He(a),f=d===`ltr`,p=R(e.onKeyDown,e=>{if(!We.includes(e.key))return;let t=e.target,n=u().filter(e=>!e.ref.current?.disabled),r=n.findIndex(e=>e.ref.current===t),i=n.length;if(r===-1)return;e.preventDefault();let a=r,s=i-1,c=()=>{a=r+1,a>s&&(a=0)},l=()=>{a=r-1,a<0&&(a=s)};switch(e.key){case`Home`:a=0;break;case`End`:a=s;break;case`ArrowRight`:o===`horizontal`&&(f?c():l());break;case`ArrowDown`:o===`vertical`&&c();break;case`ArrowLeft`:o===`horizontal`&&(f?l():c());break;case`ArrowUp`:o===`vertical`&&l();break}let d=a%i;n[d].ref.current?.focus()});return b(it,{scope:r,disabled:i,direction:a,orientation:o,children:b(Ge.Slot,{scope:r,children:b(B.div,{...s,"data-orientation":o,ref:l,onKeyDown:i?void 0:p})})})}),st=`AccordionItem`,[ct,lt]=Je(st),ut=t.forwardRef((e,t)=>{let{__scopeAccordion:n,value:r,...i}=e,a=at(st,n),o=$e(st,n),s=Xe(n),c=Te(),l=r&&o.value.includes(r)||!1,u=a.disabled||e.disabled;return b(ct,{scope:n,open:l,disabled:u,triggerId:c,children:b(Re,{"data-orientation":a.orientation,"data-state":_t(l),...s,...i,ref:t,disabled:u,open:l,onOpenChange:e=>{e?o.onItemOpen(r):o.onItemClose(r)}})})});ut.displayName=st;var dt=`AccordionHeader`,ft=t.forwardRef((e,t)=>{let{__scopeAccordion:n,...r}=e,i=at(Ue,n),a=lt(dt,n);return b(B.h3,{"data-orientation":i.orientation,"data-state":_t(a.open),"data-disabled":a.disabled?``:void 0,...r,ref:t})});ft.displayName=dt;var pt=`AccordionTrigger`,mt=t.forwardRef((e,t)=>{let{__scopeAccordion:n,...r}=e,i=at(Ue,n),a=lt(pt,n),o=tt(pt,n),s=Xe(n);return b(Ge.ItemSlot,{scope:n,children:b(ze,{"aria-disabled":a.open&&!o.collapsible||void 0,"data-orientation":i.orientation,id:a.triggerId,...s,...r,ref:t})})});mt.displayName=pt;var ht=`AccordionContent`,gt=t.forwardRef((e,t)=>{let{__scopeAccordion:n,...r}=e,i=at(Ue,n),a=lt(ht,n),o=Xe(n);return b(Be,{role:`region`,"aria-labelledby":a.triggerId,"data-orientation":i.orientation,...o,...r,ref:t,style:{"--radix-accordion-content-height":`var(--radix-collapsible-content-height)`,"--radix-accordion-content-width":`var(--radix-collapsible-content-width)`,...e.style}})});gt.displayName=ht;function _t(e){return e?`open`:`closed`}var vt=Ze,yt=ut,bt=mt,xt=gt,St={},Ct;function wt(){if(Ct)return St;Ct=1,Object.defineProperty(St,`__esModule`,{value:!0}),St.styleq=void 0;var e=new WeakMap,t=`$$css`;function n(n){var r,i,a;return n!=null&&(r=n.disableCache===!0,i=n.disableMix===!0,a=n.transform),function(){for(var n=[],o=``,s=null,c=``,l=r?null:e,u=Array(arguments.length),d=0;d<arguments.length;d++)u[d]=arguments[d];for(;u.length>0;){var f=u.pop();if(!(f==null||f===!1)){if(Array.isArray(f)){for(var p=0;p<f.length;p++)u.push(f[p]);continue}var m=a==null?f:a(f);if(m.$$css!=null){var h=``;if(l!=null&&l.has(m)){var g=l.get(m);g!=null&&(h=g[0],c=g[2],n.push.apply(n,g[1]),l=g[3])}else{var _=[];for(var v in m){var y=m[v];if(v===t){var b=m[v];b!==!0&&(c=c?b+`; `+c:b);continue}typeof y==`string`||y===null?n.includes(v)||(n.push(v),l!=null&&_.push(v),typeof y==`string`&&(h+=h?` `+y:y)):console.error(`styleq: ${v} typeof ${String(y)} is not "string" or "null".`)}if(l!=null){var x=new WeakMap;l.set(m,[h,_,c,x]),l=x}}h&&(o=o?h+` `+o:h)}else if(i)s??={},s=Object.assign({},m,s);else{var S=null;for(var C in m){var w=m[C];w!==void 0&&(n.includes(C)||(w!=null&&(s??={},S??={},S[C]=w),n.push(C),l=null))}S!=null&&(s=Object.assign(S,s))}}}var T=[o,s,c];return T}}var r=St.styleq=n();return r.factory=n,St}var Tt=wt();function V(...e){let[t,n,r]=Tt.styleq(e),i={};return t!=null&&t!==``&&(i.className=t),n!=null&&Object.keys(n).length>0&&(i.style=n),r!=null&&r!==``&&(i[`data-style-src`]=r),i}Object.freeze({});function Et(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Et(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function Dt(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Et(e))&&(r&&(r+=` `),r+=t);return r}var H=Dt;const Ot={root:{kzqmXN:`xh8yej3`,kaIpWk:`x1vx5ruh`,k3XXqK:`xi5y0ii`,$$css:!0},content:{kVQacm:`xb3r6kr`,k3XXqK:`xi5y0ii`,k44tkh:`x4afe7t`,kyAemX:`x4hg4is`,kKVMdj:`x1a5igra x55lahc x7yx0tp`,$$css:!0}},kt=({accordionItems:e,defaultValue:t,value:n,onItemSelect:r,disabled:i,extraClassNames:a,xstyle:o,testId:s})=>{let c=V(Ot.root,o);return b(vt,{...c,className:Dt(c.className,a),type:`single`,defaultValue:t,value:n,collapsible:!0,"data-testid":s,onValueChange:e=>r(e),children:e.map(e=>{let t=b(bt,{disabled:i,...{0:{className:`xt0e3qv xjbqb8w xc342km x1717udv xln7xf2 x1heor9g xi5y0ii xh8yej3`},1:{className:`xt0e3qv xjbqb8w xc342km x1717udv xln7xf2 x1heor9g xi5y0ii x845mor`}}[!!e.headerActions<<0],children:e.trigger}),n=V(Ot.content,e.contentXstyle);return x(yt,{className:`x78zum5 xh8yej3 xdt5ytf x1717udv`,disabled:i,value:e.value,children:[e.headerActions?x(`div`,{className:`x78zum5 xh8yej3 x6s0dn4`,children:[t,e.headerActions]}):t,b(xt,{...n,className:Dt(n.className,e.contentClassNames),children:e.content})]},e.value)})})};var At=kt;const jt={prefix:`fak`,iconName:`arrow-dropdown`,icon:[1024,1024,[],`e948`,`M512 803.8c-25.6 0-46.1-10.2-66.6-25.6l-430-399.3c-20.5-20.5-20.5-51.2 0-71.7l66.5-71.7c20.5-20.5 51.2-20.5 71.7 0l363.5 337.9 363.5-337.9c20.5-20.5 51.2-15.4 71.7 0l56.3 71.7c20.5 20.5 15.4 51.2 0 71.7l-430 399.3c-20.5 15.4-41 25.6-66.6 25.6z`]},Mt={prefix:`fak`,iconName:`arrow-left-chevron`,icon:[1024,1024,[],``,`M220.2 512c0-25.6 10.2-46.1 25.6-66.6l399.3-430c20.5-20.5 51.2-20.5 71.7 0l71.7 66.5c20.5 20.5 20.5 51.2 0 71.7l-337.9 363.5 337.9 363.5c20.5 20.5 15.4 51.2 0 71.7l-71.7 56.3c-20.5 20.5-51.2 15.4-71.7 0l-399.3-430c-15.4-20.5-25.6-41-25.6-66.6z`]},Nt={prefix:`fak`,iconName:`arrow-right-chevron`,icon:[1024,1024,[],``,`M803.8 512c0 25.6-10.2 46.1-25.6 66.6l-399.3 430c-20.5 20.5-51.2 20.5-71.7 0l-71.7-66.5c-20.5-20.5-20.5-51.2 0-71.7l337.9-363.5-337.9-363.5c-20.5-20.5-15.4-51.2 0-71.7l71.7-56.3c20.5-20.5 51.2-15.4 71.7 0l399.3 430c15.4 20.5 25.6 41 25.6 66.6z`]},Pt={prefix:`fak`,iconName:`delete`,icon:[1024,1024,[],`e927`,`M1003.5 76.8l-51.2-51.2c-30.7-30.7-76.8-30.7-107.5 0l-332.8 327.7-332.8-332.8c-30.7-25.6-76.8-25.6-102.4 0l-51.2 51.2c-30.7 30.7-30.7 76.8 0 107.5l327.7 332.8-332.8 332.8c-30.7 30.7-30.7 76.8 0 107.5l51.2 51.2c30.7 30.7 76.8 30.7 107.5 0l332.8-332.8 332.8 332.8c30.7 30.7 76.8 30.7 107.5 0l51.2-51.2c30.7-30.7 30.7-76.8 0-107.5l-332.8-332.8 332.8-332.8c25.6-30.7 25.6-76.8 0-102.4z`]};
|
|
2
2
|
/*!
|
|
3
3
|
* Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com
|
|
4
4
|
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
|
|
@@ -1083,7 +1083,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1083
1083
|
}`;function za(){var e=Wi,t=Gi,n=G.cssPrefix,r=G.replacementClass,i=Ra;if(n!==e||r!==t){var a=RegExp(`\\.${e}\\-`,`g`),o=RegExp(`\\--${e}\\-`,`g`),s=RegExp(`\\.${t}`,`g`);i=i.replace(a,`.${n}-`).replace(o,`--${n}-`).replace(s,`.${r}`)}return i}var Ba=!1;function Va(){G.autoAddCss&&!Ba&&(Da(za()),Ba=!0)}var Ha={mixout:function(){return{dom:{css:za,insertCss:Va}}},hooks:function(){return{beforeDOMElementCreation:function(){Va()},beforeI2svg:function(){Va()}}}},Ua=cn||{};Ua[Hi]||(Ua[Hi]={}),Ua[Hi].styles||(Ua[Hi].styles={}),Ua[Hi].hooks||(Ua[Hi].hooks={}),Ua[Hi].shims||(Ua[Hi].shims=[]);var Wa=Ua[Hi],Ga=[],Ka=function(){ln.removeEventListener(`DOMContentLoaded`,Ka),qa=1,Ga.map(function(e){return e()})},qa=!1;fn&&(qa=(ln.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(ln.readyState),qa||ln.addEventListener(`DOMContentLoaded`,Ka));function Ja(e){fn&&(qa?setTimeout(e,0):Ga.push(e))}function Ya(e){var t=e.tag,n=e.attributes,r=n===void 0?{}:n,i=e.children,a=i===void 0?[]:i;return typeof e==`string`?Ma(e):`<${t} ${Na(r)}>${a.map(Ya).join(``)}</${t}>`}function Xa(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var Za=function(e,t){return function(n,r,i,a){return e.call(t,n,r,i,a)}},Qa=function(e,t,n,r){var i=Object.keys(e),a=i.length,o=r===void 0?t:Za(t,r),s,c,l;for(n===void 0?(s=1,l=e[i[0]]):(s=0,l=n);s<a;s++)c=i[s],l=o(l,e[c],c,e);return l};function $a(e){return Jt(e).length===1?e.codePointAt(0).toString(16):null}function eo(e){return Object.keys(e).reduce(function(t,n){var r=e[n],i=!!r.icon;return i?t[r.iconName]=r.icon:t[n]=r,t},{})}function to(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.skipHooks,i=r===void 0?!1:r,a=eo(t);typeof Wa.hooks.addPack==`function`&&!i?Wa.hooks.addPack(e,eo(t)):Wa.styles[e]=W(W({},Wa.styles[e]||{}),a),e===`fas`&&to(`fa`,t)}var no=Wa.styles,ro=Wa.shims,io=Object.keys(ca),ao=io.reduce(function(e,t){return e[t]=Object.keys(ca[t]),e},{}),oo=null,so={},co={},lo={},uo={},fo={};function po(e){return~ga.indexOf(e)}function mo(e,t){var n=t.split(`-`),r=n[0],i=n.slice(1).join(`-`);return r===e&&i!==``&&!po(i)?i:null}var ho=function(){var e=function(e){return Qa(no,function(t,n,r){return t[r]=Qa(n,e,{}),t},{})};so=e(function(e,t,n){if(t[3]&&(e[t[3]]=n),t[2]){var r=t[2].filter(function(e){return typeof e==`number`});r.forEach(function(t){e[t.toString(16)]=n})}return e}),co=e(function(e,t,n){if(e[n]=n,t[2]){var r=t[2].filter(function(e){return typeof e==`string`});r.forEach(function(t){e[t]=n})}return e}),fo=e(function(e,t,n){var r=t[2];return e[n]=n,r.forEach(function(t){e[t]=n}),e});var t=`far`in no||G.autoFetchSvg,n=Qa(ro,function(e,n){var r=n[0],i=n[1],a=n[2];return i===`far`&&!t&&(i=`fas`),typeof r==`string`&&(e.names[r]={prefix:i,iconName:a}),typeof r==`number`&&(e.unicodes[r.toString(16)]={prefix:i,iconName:a}),e},{names:{},unicodes:{}});lo=n.names,uo=n.unicodes,oo=wo(G.styleDefault,{family:G.familyDefault})};wa(function(e){oo=wo(e.styleDefault,{family:G.familyDefault})}),ho();function go(e,t){return(so[e]||{})[t]}function _o(e,t){return(co[e]||{})[t]}function vo(e,t){return(fo[e]||{})[t]}function yo(e){return lo[e]||{prefix:null,iconName:null}}function bo(e){var t=uo[e],n=go(`fas`,e);return t||(n?{prefix:`fas`,iconName:n}:null)||{prefix:null,iconName:null}}function xo(){return oo}var So=function(){return{prefix:null,iconName:null,rest:[]}};function Co(e){var t=bn,n=io.reduce(function(e,t){return e[t]=`${G.cssPrefix}-${t}`,e},{});return mr.forEach(function(r){(e.includes(n[r])||e.some(function(e){return ao[r].includes(e)}))&&(t=r)}),t}function wo(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.family,r=n===void 0?bn:n,i=ia[r][e];if(r===xn&&!e)return`fad`;var a=oa[r][e]||oa[r][i],o=e in Wa.styles?e:null,s=a||o||null;return s}function To(e){var t=[],n=null;return e.forEach(function(e){var r=mo(G.cssPrefix,e);r?n=r:e&&t.push(e)}),{iconName:n,rest:t}}function Eo(e){return e.sort().filter(function(e,t,n){return n.indexOf(e)===t})}var Do=Fi.concat(yr);function Oo(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.skipLookups,r=n===void 0?!1:n,i=null,a=Eo(e.filter(function(e){return Do.includes(e)})),o=Eo(e.filter(function(e){return!Do.includes(e)})),s=a.filter(function(e){return i=e,!yn.includes(e)}),c=qt(s,1),l=c[0],u=l===void 0?null:l,d=Co(a),f=W(W({},To(o)),{},{prefix:wo(u,{family:d})});return W(W(W({},f),Mo({values:e,family:d,styles:no,config:G,canonical:f,givenPrefix:i})),ko(r,i,f))}function ko(e,t,n){var r=n.prefix,i=n.iconName;if(e||!r||!i)return{prefix:r,iconName:i};var a=t===`fa`?yo(i):{},o=vo(r,i);return i=a.iconName||o||i,r=a.prefix||r,r===`far`&&!no.far&&no.fas&&!G.autoFetchSvg&&(r=`fas`),{prefix:r,iconName:i}}var Ao=mr.filter(function(e){return e!==bn||e!==xn}),jo=Object.keys(Ni).filter(function(e){return e!==bn}).map(function(e){return Object.keys(Ni[e])}).flat();function Mo(e){var t=e.values,n=e.family,r=e.canonical,i=e.givenPrefix,a=i===void 0?``:i,o=e.styles,s=o===void 0?{}:o,c=e.config,l=c===void 0?{}:c,u=n===xn,d=t.includes(`fa-duotone`)||t.includes(`fad`),f=l.familyDefault===`duotone`,p=r.prefix===`fad`||r.prefix===`fa-duotone`;if(!u&&(d||f||p)&&(r.prefix=`fad`),(t.includes(`fa-brands`)||t.includes(`fab`))&&(r.prefix=`fab`),!r.prefix&&Ao.includes(n)){var m=Object.keys(s).find(function(e){return jo.includes(e)});if(m||l.autoFetchSvg){var h=_r.get(n).defaultShortPrefixId;r.prefix=h,r.iconName=vo(r.prefix,r.iconName)||r.iconName}}return(r.prefix===`fa`||a===`fa`)&&(r.prefix=xo()||`fas`),r}var No=function(){function e(){Rt(this,e),this.definitions={}}return Bt(e,[{key:`add`,value:function(){var e=this,t=[...arguments],n=t.reduce(this._pullDefinitions,{});Object.keys(n).forEach(function(t){e.definitions[t]=W(W({},e.definitions[t]||{}),n[t]),to(t,n[t]);var r=ca[bn][t];r&&to(r,n[t]),ho()})}},{key:`reset`,value:function(){this.definitions={}}},{key:`_pullDefinitions`,value:function(e,t){var n=t.prefix&&t.iconName&&t.icon?{0:t}:t;return Object.keys(n).map(function(t){var r=n[t],i=r.prefix,a=r.iconName,o=r.icon,s=o[2];e[i]||(e[i]={}),s.length>0&&s.forEach(function(t){typeof t==`string`&&(e[i][t]=o)}),e[i][a]=o}),e}}])}(),Po=[],Fo={},Io={},Lo=Object.keys(Io);function Ro(e,t){var n=t.mixoutsTo;return Po=e,Fo={},Object.keys(Io).forEach(function(e){Lo.indexOf(e)===-1&&delete Io[e]}),Po.forEach(function(e){var t=e.mixout?e.mixout():{};if(Object.keys(t).forEach(function(e){typeof t[e]==`function`&&(n[e]=t[e]),Zt(t[e])===`object`&&Object.keys(t[e]).forEach(function(r){n[e]||(n[e]={}),n[e][r]=t[e][r]})}),e.hooks){var r=e.hooks();Object.keys(r).forEach(function(e){Fo[e]||(Fo[e]=[]),Fo[e].push(r[e])})}e.provides&&e.provides(Io)}),n}function zo(e,t){var n=[...arguments].slice(2),r=Fo[e]||[];return r.forEach(function(e){t=e.apply(null,[t].concat(n))}),t}function Bo(e){var t=[...arguments].slice(1),n=Fo[e]||[];n.forEach(function(e){e.apply(null,t)})}function Vo(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1);return Io[e]?Io[e].apply(null,t):void 0}function Ho(e){e.prefix===`fa`&&(e.prefix=`fas`);var t=e.iconName,n=e.prefix||xo();if(t)return t=vo(n,t)||t,Xa(Uo.definitions,n,t)||Xa(Wa.styles,n,t)}var Uo=new No,Wo=function(){G.autoReplaceSvg=!1,G.observeMutations=!1,Bo(`noAuto`)},Go={i2svg:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return fn?(Bo(`beforeI2svg`,e),Vo(`pseudoElements2svg`,e),Vo(`i2svg`,e)):Promise.reject(Error(`Operation requires a DOM of some kind.`))},watch:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.autoReplaceSvgRoot;G.autoReplaceSvg===!1&&(G.autoReplaceSvg=!0),G.observeMutations=!0,Ja(function(){Jo({autoReplaceSvgRoot:t}),Bo(`watch`,e)})}},Ko={icon:function(e){if(e===null)return null;if(Zt(e)===`object`&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:vo(e.prefix,e.iconName)||e.iconName};if(Array.isArray(e)&&e.length===2){var t=e[1].indexOf(`fa-`)===0?e[1].slice(3):e[1],n=wo(e[0]);return{prefix:n,iconName:vo(n,t)||t}}if(typeof e==`string`&&(e.indexOf(`${G.cssPrefix}-`)>-1||e.match(ua))){var r=Oo(e.split(` `),{skipLookups:!0});return{prefix:r.prefix||xo(),iconName:vo(r.prefix,r.iconName)||r.iconName}}if(typeof e==`string`){var i=xo();return{prefix:i,iconName:vo(i,e)||e}}}},qo={noAuto:Wo,config:G,dom:Go,parse:Ko,library:Uo,findIconDefinition:Ho,toHtml:Ya},Jo=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.autoReplaceSvgRoot,n=t===void 0?ln:t;(Object.keys(Wa.styles).length>0||G.autoFetchSvg)&&fn&&G.autoReplaceSvg&&qo.dom.i2svg({node:n})};function Yo(e,t){return Object.defineProperty(e,`abstract`,{get:t}),Object.defineProperty(e,`html`,{get:function(){return e.abstract.map(function(e){return Ya(e)})}}),Object.defineProperty(e,`node`,{get:function(){if(fn){var t=ln.createElement(`div`);return t.innerHTML=e.html,t.children}}}),e}function Xo(e){var t=e.children,n=e.main,r=e.mask,i=e.attributes,a=e.styles,o=e.transform;if(Fa(o)&&n.found&&!r.found){var s=n.width,c=n.height,l={x:s/c/2,y:.5};i.style=Pa(W(W({},a),{},{"transform-origin":`${l.x+o.x/16}em ${l.y+o.y/16}em`}))}return[{tag:`svg`,attributes:i,children:t}]}function Zo(e){var t=e.prefix,n=e.iconName,r=e.children,i=e.attributes,a=e.symbol,o=a===!0?`${t}-${G.cssPrefix}-${n}`:a;return[{tag:`svg`,attributes:{style:`display: none;`},children:[{tag:`symbol`,attributes:W(W({},i),{},{id:o}),children:r}]}]}function Qo(e){var t=[`aria-label`,`aria-labelledby`,`title`,`role`];return t.some(function(t){return t in e})}function $o(e){var t=e.icons,n=t.main,r=t.mask,i=e.prefix,a=e.iconName,o=e.transform,s=e.symbol,c=e.maskId,l=e.extra,u=e.watchable,d=u===void 0?!1:u,f=r.found?r:n,p=f.width,m=f.height,h=[G.replacementClass,a?`${G.cssPrefix}-${a}`:``].filter(function(e){return l.classes.indexOf(e)===-1}).filter(function(e){return e!==``||!!e}).concat(l.classes).join(` `),g={children:[],attributes:W(W({},l.attributes),{},{"data-prefix":i,"data-icon":a,class:h,role:l.attributes.role||`img`,viewBox:`0 0 ${p} ${m}`})};!Qo(l.attributes)&&!l.attributes[`aria-hidden`]&&(g.attributes[`aria-hidden`]=`true`),d&&(g.attributes[Ki]=``);var _=W(W({},g),{},{prefix:i,iconName:a,main:n,mask:r,maskId:c,transform:o,symbol:s,styles:W({},l.styles)}),v=r.found&&n.found?Vo(`generateAbstractMask`,_)||{children:[],attributes:{}}:Vo(`generateAbstractIcon`,_)||{children:[],attributes:{}},y=v.children,b=v.attributes;return _.children=y,_.attributes=b,s?Zo(_):Xo(_)}function es(e){var t=e.content,n=e.width,r=e.height,i=e.transform,a=e.extra,o=e.watchable,s=o===void 0?!1:o,c=W(W({},a.attributes),{},{class:a.classes.join(` `)});s&&(c[Ki]=``);var l=W({},a.styles);Fa(i)&&(l.transform=La({transform:i,startCentered:!0,width:n,height:r}),l[`-webkit-transform`]=l.transform);var u=Pa(l);u.length>0&&(c.style=u);var d=[];return d.push({tag:`span`,attributes:c,children:[t]}),d}function ts(e){var t=e.content,n=e.extra,r=W(W({},n.attributes),{},{class:n.classes.join(` `)}),i=Pa(n.styles);i.length>0&&(r.style=i);var a=[];return a.push({tag:`span`,attributes:r,children:[t]}),a}var ns=Wa.styles;function rs(e){var t=e[0],n=e[1],r=e.slice(4),i=qt(r,1),a=i[0],o=null;return o=Array.isArray(a)?{tag:`g`,attributes:{class:`${G.cssPrefix}-${ha.GROUP}`},children:[{tag:`path`,attributes:{class:`${G.cssPrefix}-${ha.SECONDARY}`,fill:`currentColor`,d:a[0]}},{tag:`path`,attributes:{class:`${G.cssPrefix}-${ha.PRIMARY}`,fill:`currentColor`,d:a[1]}}]}:{tag:`path`,attributes:{fill:`currentColor`,d:a}},{found:!0,width:t,height:n,icon:o}}var os={found:!1,width:512,height:512};function ss(e,t){!ta&&!G.showMissingIcons&&e&&console.error(`Icon with name "${e}" and prefix "${t}" is missing.`)}function cs(e,t){var n=t;return t===`fa`&&G.styleDefault!==null&&(t=xo()),new Promise(function(r,i){if(n===`fa`){var a=yo(e)||{};e=a.iconName||e,t=a.prefix||t}if(e&&t&&ns[t]&&ns[t][e]){var o=ns[t][e];return r(rs(o))}ss(e,t),r(W(W({},os),{},{icon:G.showMissingIcons&&e&&Vo(`missingIconAbstract`)||{}}))})}var ls=function(){},us=G.measurePerformance&&dn&&dn.mark&&dn.measure?dn:{mark:ls,measure:ls},ds=`FA "7.3.1"`,fs=function(e){return us.mark(`${ds} ${e} begins`),function(){return ps(e)}},ps=function(e){us.mark(`${ds} ${e} ends`),us.measure(`${ds} ${e}`,`${ds} ${e} begins`,`${ds} ${e} ends`)},ms={begin:fs,end:ps},hs=function(){};function gs(e){var t=e.getAttribute?e.getAttribute(Ki):null;return typeof t==`string`}function _s(e){var t=e.getAttribute?e.getAttribute(Yi):null,n=e.getAttribute?e.getAttribute(Xi):null;return t&&n}function vs(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(G.replacementClass)}function ys(){if(G.autoReplaceSvg===!0)return ws.replace;var e=ws[G.autoReplaceSvg];return e||ws.replace}function bs(e){return ln.createElementNS(`http://www.w3.org/2000/svg`,e)}function xs(e){return ln.createElement(e)}function Ss(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.ceFn,r=n===void 0?e.tag===`svg`?bs:xs:n;if(typeof e==`string`)return ln.createTextNode(e);var i=r(e.tag);Object.keys(e.attributes||[]).forEach(function(t){i.setAttribute(t,e.attributes[t])});var a=e.children||[];return a.forEach(function(e){i.appendChild(Ss(e,{ceFn:r}))}),i}function Cs(e){var t=` ${e.outerHTML} `;return t=`${t}Font Awesome fontawesome.com `,t}var ws={replace:function(e){var t=e[0];if(t.parentNode)if(e[1].forEach(function(e){t.parentNode.insertBefore(Ss(e),t)}),t.getAttribute(Ki)===null&&G.keepOriginalSource){var n=ln.createComment(Cs(t));t.parentNode.replaceChild(n,t)}else t.remove()},nest:function(e){var t=e[0],n=e[1];if(~ja(t).indexOf(G.replacementClass))return ws.replace(e);var r=RegExp(`${G.cssPrefix}-.*`);if(delete n[0].attributes.id,n[0].attributes.class){var i=n[0].attributes.class.split(` `).reduce(function(e,t){return t===G.replacementClass||t.match(r)?e.toSvg.push(t):e.toNode.push(t),e},{toNode:[],toSvg:[]});n[0].attributes.class=i.toSvg.join(` `),i.toNode.length===0?t.removeAttribute(`class`):t.setAttribute(`class`,i.toNode.join(` `))}var a=n.map(function(e){return Ya(e)}).join(`
|
|
1084
1084
|
`);t.setAttribute(Ki,``),t.innerHTML=a}};function Ts(e){e()}function Es(e,t){var n=typeof t==`function`?t:hs;if(e.length===0)n();else{var r=Ts;G.mutateApproach===Qi&&(r=cn.requestAnimationFrame||Ts),r(function(){var t=ys(),r=ms.begin(`mutate`);e.map(t),r(),n()})}}var Ds=!1;function Os(){Ds=!0}function ks(){Ds=!1}var As=null;function js(e){if(un&&G.observeMutations){var t=e.treeCallback,n=t===void 0?hs:t,r=e.nodeCallback,i=r===void 0?hs:r,a=e.pseudoElementsCallback,o=a===void 0?hs:a,s=e.observeMutationsRoot,c=s===void 0?ln:s;As=new un(function(e){if(!Ds){var t=xo();Aa(e).forEach(function(e){if(e.type===`childList`&&e.addedNodes.length>0&&!gs(e.addedNodes[0])&&(G.searchPseudoElements&&o(e.target),n(e.target)),e.type===`attributes`&&e.target.parentNode&&G.searchPseudoElements&&o([e.target],!0),e.type===`attributes`&&gs(e.target)&&~ma.indexOf(e.attributeName))if(e.attributeName===`class`&&_s(e.target)){var r=Oo(ja(e.target)),a=r.prefix,s=r.iconName;e.target.setAttribute(Yi,a||t),s&&e.target.setAttribute(Xi,s)}else vs(e.target)&&i(e.target)})}}),fn&&As.observe(c,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function Ms(){As&&As.disconnect()}function Ns(e){var t=e.getAttribute(`style`),n=[];return t&&(n=t.split(`;`).reduce(function(e,t){var n=t.split(`:`),r=n[0],i=n.slice(1);return r&&i.length>0&&(e[r]=i.join(`:`).trim()),e},{})),n}function Ps(e){var t=e.getAttribute(`data-prefix`),n=e.getAttribute(`data-icon`),r=e.innerText===void 0?``:e.innerText.trim(),i=Oo(ja(e));return i.prefix||=xo(),t&&n&&(i.prefix=t,i.iconName=n),i.iconName&&i.prefix?i:(i.prefix&&r.length>0&&(i.iconName=_o(i.prefix,e.innerText)||go(i.prefix,$a(e.innerText))),!i.iconName&&G.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(i.iconName=e.firstChild.data),i)}function Fs(e){var t=Aa(e.attributes).reduce(function(e,t){return e.name!==`class`&&e.name!==`style`&&(e[t.name]=t.value),e},{});return t}function Is(){return{iconName:null,prefix:null,transform:Ea,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function Ls(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},n=Ps(e),r=n.iconName,i=n.prefix,a=n.rest,o=Fs(e),s=zo(`parseNodeAttributes`,{},e),c=t.styleParser?Ns(e):[];return W({iconName:r,prefix:i,transform:Ea,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:a,styles:c,attributes:o}},s)}var Rs=Wa.styles;function zs(e){var t=G.autoReplaceSvg===`nest`?Ls(e,{styleParser:!1}):Ls(e);return~t.extra.classes.indexOf(da)?Vo(`generateLayersText`,e,t):Vo(`generateSvgReplacementMutation`,e,t)}function Bs(){return[].concat(Jt(yr),Jt(Fi))}function Vs(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!fn)return Promise.resolve();var n=ln.documentElement.classList,r=function(e){return n.add(`${Zi}-${e}`)},i=function(e){return n.remove(`${Zi}-${e}`)},a=G.autoFetchSvg?Bs():yn.concat(Object.keys(Rs));a.includes(`fa`)||a.push(`fa`);var o=[`.${da}:not([${Ki}])`].concat(a.map(function(e){return`.${e}:not([${Ki}])`})).join(`, `);if(o.length===0)return Promise.resolve();var s=[];try{s=Aa(e.querySelectorAll(o))}catch{}if(s.length>0)r(`pending`),i(`complete`);else return Promise.resolve();var c=ms.begin(`onTree`),l=s.reduce(function(e,t){try{var n=zs(t);n&&e.push(n)}catch(e){ta||e.name===`MissingIcon`&&console.error(e)}return e},[]);return new Promise(function(e,n){Promise.all(l).then(function(n){Es(n,function(){r(`active`),r(`complete`),i(`pending`),typeof t==`function`&&t(),c(),e()})}).catch(function(e){c(),n(e)})})}function Hs(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;zs(e).then(function(e){e&&Es([e],t)})}function Us(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=(t||{}).icon?t:Ho(t||{}),i=n.mask;return i&&=(i||{}).icon?i:Ho(i||{}),e(r,W(W({},n),{},{mask:i}))}}var Ws=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.transform,r=n===void 0?Ea:n,i=t.symbol,a=i===void 0?!1:i,o=t.mask,s=o===void 0?null:o,c=t.maskId,l=c===void 0?null:c,u=t.classes,d=u===void 0?[]:u,f=t.attributes,p=f===void 0?{}:f,m=t.styles,h=m===void 0?{}:m;if(e){var g=e.prefix,_=e.iconName,v=e.icon;return Yo(W({type:`icon`},e),function(){return Bo(`beforeDOMElementCreation`,{iconDefinition:e,params:t}),$o({icons:{main:rs(v),mask:s?rs(s.icon):{found:!1,width:null,height:null,icon:{}}},prefix:g,iconName:_,transform:W(W({},Ea),r),symbol:a,maskId:l,extra:{attributes:p,styles:h,classes:d}})})}},Gs={mixout:function(){return{icon:Us(Ws)}},hooks:function(){return{mutationObserverCallbacks:function(e){return e.treeCallback=Vs,e.nodeCallback=Hs,e}}},provides:function(e){e.i2svg=function(e){var t=e.node,n=t===void 0?ln:t,r=e.callback,i=r===void 0?function(){}:r;return Vs(n,i)},e.generateSvgReplacementMutation=function(e,t){var n=t.iconName,r=t.prefix,i=t.transform,a=t.symbol,o=t.mask,s=t.maskId,c=t.extra;return new Promise(function(t,l){Promise.all([cs(n,r),o.iconName?cs(o.iconName,o.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(o){var l=qt(o,2),u=l[0],d=l[1];t([e,$o({icons:{main:u,mask:d},prefix:r,iconName:n,transform:i,symbol:a,maskId:s,extra:c,watchable:!0})])}).catch(l)})},e.generateAbstractIcon=function(e){var t=e.children,n=e.attributes,r=e.main,i=e.transform,a=e.styles,o=Pa(a);o.length>0&&(n.style=o);var s;return Fa(i)&&(s=Vo(`generateAbstractTransformGrouping`,{main:r,transform:i,containerWidth:r.width,iconWidth:r.width})),t.push(s||r.icon),{children:t,attributes:n}}}},Ks={mixout:function(){return{layer:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.classes,r=n===void 0?[]:n;return Yo({type:`layer`},function(){Bo(`beforeDOMElementCreation`,{assembler:e,params:t});var n=[];return e(function(e){Array.isArray(e)?e.map(function(e){n=n.concat(e.abstract)}):n=n.concat(e.abstract)}),[{tag:`span`,attributes:{class:[`${G.cssPrefix}-layers`].concat(Jt(r)).join(` `)},children:n}]})}}}},qs={mixout:function(){return{counter:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.title,r=n===void 0?null:n,i=t.classes,a=i===void 0?[]:i,o=t.attributes,s=o===void 0?{}:o,c=t.styles,l=c===void 0?{}:c;return Yo({type:`counter`,content:e},function(){return Bo(`beforeDOMElementCreation`,{content:e,params:t}),ts({content:e.toString(),title:r,extra:{attributes:s,styles:l,classes:[`${G.cssPrefix}-layers-counter`].concat(Jt(a))}})})}}}},Js={mixout:function(){return{text:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.transform,r=n===void 0?Ea:n,i=t.classes,a=i===void 0?[]:i,o=t.attributes,s=o===void 0?{}:o,c=t.styles,l=c===void 0?{}:c;return Yo({type:`text`,content:e},function(){return Bo(`beforeDOMElementCreation`,{content:e,params:t}),es({content:e,transform:W(W({},Ea),r),extra:{attributes:s,styles:l,classes:[`${G.cssPrefix}-layers-text`].concat(Jt(a))}})})}}},provides:function(e){e.generateLayersText=function(e,t){var n=t.transform,r=t.extra,i=null,a=null;if(pn){var o=parseInt(getComputedStyle(e).fontSize,10),s=e.getBoundingClientRect();i=s.width/o,a=s.height/o}return Promise.resolve([e,es({content:e.innerHTML,width:i,height:a,transform:n,extra:r,watchable:!0})])}}},Ys=RegExp(`"`,`ug`),Xs=[1105920,1112319],Zs=W(W(W(W({},{FontAwesome:{normal:`fas`,400:`fas`}}),gr),Vi),Dr),Qs=Object.keys(Zs).reduce(function(e,t){return e[t.toLowerCase()]=Zs[t],e},{}),$s=Object.keys(Qs).reduce(function(e,t){var n=Qs[t];return e[t]=n[900]||Jt(Object.entries(n))[0][1],e},{});function ec(e){var t=e.replace(Ys,``);return $a(Jt(t)[0]||``)}function tc(e){var t=e.getPropertyValue(`font-feature-settings`).includes(`ss01`),n=e.getPropertyValue(`content`),r=n.replace(Ys,``),i=r.codePointAt(0),a=i>=Xs[0]&&i<=Xs[1],o=r.length===2?r[0]===r[1]:!1;return a||o||t}function nc(e,t){var n=e.replace(/^['"]|['"]$/g,``).toLowerCase(),r=parseInt(t),i=isNaN(r)?`normal`:r;return(Qs[n]||{})[i]||$s[n]}function rc(e,t){var n=`${Ji}${t.replace(`:`,`-`)}`;return new Promise(function(r,i){if(e.getAttribute(n)!==null)return r();var a=Aa(e.children),o=a.filter(function(e){return e.getAttribute(qi)===t})[0],s=cn.getComputedStyle(e,t),c=s.getPropertyValue(`font-family`),l=c.match(fa),u=s.getPropertyValue(`font-weight`),d=s.getPropertyValue(`content`);if(o&&!l)return e.removeChild(o),r();if(l&&d!==`none`&&d!==``){var f=s.getPropertyValue(`content`),p=nc(c,u),m=ec(f),h=l[0].startsWith(`FontAwesome`),g=tc(s),_=go(p,m),v=_;if(h){var y=bo(m);y.iconName&&y.prefix&&(_=y.iconName,p=y.prefix)}if(_&&!g&&(!o||o.getAttribute(Yi)!==p||o.getAttribute(Xi)!==v)){e.setAttribute(n,v),o&&e.removeChild(o);var b=Is(),x=b.extra;x.attributes[qi]=t,cs(_,p).then(function(i){var a=$o(W(W({},b),{},{icons:{main:i,mask:So()},prefix:p,iconName:v,extra:x,watchable:!0})),o=ln.createElementNS(`http://www.w3.org/2000/svg`,`svg`);t===`::before`?e.insertBefore(o,e.firstChild):e.appendChild(o),o.outerHTML=a.map(function(e){return Ya(e)}).join(`
|
|
1085
1085
|
`),e.removeAttribute(n),r()}).catch(i)}else r()}else r()})}function ic(e){return Promise.all([rc(e,`::before`),rc(e,`::after`)])}function ac(e){return e.parentNode!==document.head&&!~$i.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(qi)&&(!e.parentNode||e.parentNode.tagName!==`svg`)}var oc=function(e){return!!e&&ea.some(function(t){return e.includes(t)})},sc=function(e){if(!e)return[];var t=new Set,n=e.split(/,(?![^()]*\))/).map(function(e){return e.trim()});n=n.flatMap(function(e){return e.includes(`(`)?e:e.split(`,`).map(function(e){return e.trim()})});var r=Vt(n),i;try{for(r.s();!(i=r.n()).done;){var a=i.value;if(oc(a)){var o=ea.reduce(function(e,t){return e.replace(t,``)},a);o!==``&&o!==`*`&&t.add(o)}}}catch(e){r.e(e)}finally{r.f()}return t};function cc(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(fn){var n;if(t)n=e;else if(G.searchPseudoElementsFullScan)n=e.querySelectorAll(`*`);else{var r=new Set,i=Vt(document.styleSheets),a;try{for(i.s();!(a=i.n()).done;){var o=a.value;try{var s=Vt(o.cssRules),c;try{for(s.s();!(c=s.n()).done;){var l=c.value,u=sc(l.selectorText),d=Vt(u),f;try{for(d.s();!(f=d.n()).done;){var p=f.value;r.add(p)}}catch(e){d.e(e)}finally{d.f()}}}catch(e){s.e(e)}finally{s.f()}}catch(e){G.searchPseudoElementsWarnings&&console.warn(`Font Awesome: cannot parse stylesheet: ${o.href} (${e.message})
|
|
1086
|
-
If it declares any Font Awesome CSS pseudo-elements, they will not be rendered as SVG icons. Add crossorigin="anonymous" to the <link>, enable searchPseudoElementsFullScan for slower but more thorough DOM parsing, or suppress this warning by setting searchPseudoElementsWarnings to false.`)}}}catch(e){i.e(e)}finally{i.f()}if(!r.size)return;var m=Array.from(r).join(`, `);try{n=e.querySelectorAll(m)}catch{}}return new Promise(function(e,t){var r=Aa(n).filter(ac).map(ic),i=ms.begin(`searchPseudoElements`);Os(),Promise.all(r).then(function(){i(),ks(),e()}).catch(function(){i(),ks(),t()})})}}var lc={hooks:function(){return{mutationObserverCallbacks:function(e){return e.pseudoElementsCallback=cc,e}}},provides:function(e){e.pseudoElements2svg=function(e){var t=e.node,n=t===void 0?ln:t;G.searchPseudoElements&&cc(n)}}},uc=!1,dc={mixout:function(){return{dom:{unwatch:function(){Os(),uc=!0}}}},hooks:function(){return{bootstrap:function(){js(zo(`mutationObserverCallbacks`,{}))},noAuto:function(){Ms()},watch:function(e){var t=e.observeMutationsRoot;uc?ks():js(zo(`mutationObserverCallbacks`,{observeMutationsRoot:t}))}}}},fc=function(e){var t={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return e.toLowerCase().split(` `).reduce(function(e,t){var n=t.toLowerCase().split(`-`),r=n[0],i=n.slice(1).join(`-`);if(r&&i===`h`)return e.flipX=!0,e;if(r&&i===`v`)return e.flipY=!0,e;if(i=parseFloat(i),isNaN(i))return e;switch(r){case`grow`:e.size+=i;break;case`shrink`:e.size-=i;break;case`left`:e.x-=i;break;case`right`:e.x+=i;break;case`up`:e.y-=i;break;case`down`:e.y+=i;break;case`rotate`:e.rotate+=i;break}return e},t)},pc={mixout:function(){return{parse:{transform:function(e){return fc(e)}}}},hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute(`data-fa-transform`);return n&&(e.transform=fc(n)),e}}},provides:function(e){e.generateAbstractTransformGrouping=function(e){var t=e.main,n=e.transform,r=e.containerWidth,i=e.iconWidth,a={transform:`translate(${r/2} 256)`},o=`translate(${n.x*32}, ${n.y*32}) `,s=`scale(${n.size/16*(n.flipX?-1:1)}, ${n.size/16*(n.flipY?-1:1)}) `,c=`rotate(${n.rotate} 0 0)`,l={transform:`${o} ${s} ${c}`},u={transform:`translate(${i/2*-1} -256)`},d={outer:a,inner:l,path:u};return{tag:`g`,attributes:W({},d.outer),children:[{tag:`g`,attributes:W({},d.inner),children:[{tag:t.icon.tag,children:t.icon.children,attributes:W(W({},t.icon.attributes),d.path)}]}]}}}},mc={x:0,y:0,width:`100%`,height:`100%`};function hc(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill=`black`),e}function gc(e){return e.tag===`g`?e.children:[e]}var _c={hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute(`data-fa-mask`),r=n?Oo(n.split(` `).map(function(e){return e.trim()})):So();return r.prefix||=xo(),e.mask=r,e.maskId=t.getAttribute(`data-fa-mask-id`),e}}},provides:function(e){e.generateAbstractMask=function(e){var t=e.children,n=e.attributes,r=e.main,i=e.mask,a=e.maskId,o=e.transform,s=r.width,c=r.icon,l=i.width,u=i.icon,d=Ia({transform:o,containerWidth:l,iconWidth:s}),f={tag:`rect`,attributes:W(W({},mc),{},{fill:`white`})},p=c.children?{children:c.children.map(hc)}:{},m={tag:`g`,attributes:W({},d.inner),children:[hc(W({tag:c.tag,attributes:W(W({},c.attributes),d.path)},p))]},h={tag:`g`,attributes:W({},d.outer),children:[m]},g=`mask-${a||ka()}`,_=`clip-${a||ka()}`,v={tag:`mask`,attributes:W(W({},mc),{},{id:g,maskUnits:`userSpaceOnUse`,maskContentUnits:`userSpaceOnUse`}),children:[f,h]},y={tag:`defs`,children:[{tag:`clipPath`,attributes:{id:_},children:gc(u)},v]};return t.push(y,{tag:`rect`,attributes:W({fill:`currentColor`,"clip-path":`url(#${_})`,mask:`url(#${g})`},mc)}),{children:t,attributes:n}}}},vc={provides:function(e){var t=!1;cn.matchMedia&&(t=cn.matchMedia(`(prefers-reduced-motion: reduce)`).matches),e.missingIconAbstract=function(){var e=[],n={fill:`currentColor`},r={attributeType:`XML`,repeatCount:`indefinite`,dur:`2s`};e.push({tag:`path`,attributes:W(W({},n),{},{d:`M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z`})});var i=W(W({},r),{},{attributeName:`opacity`}),a={tag:`circle`,attributes:W(W({},n),{},{cx:`256`,cy:`364`,r:`28`}),children:[]};return t||a.children.push({tag:`animate`,attributes:W(W({},r),{},{attributeName:`r`,values:`28;14;28;28;14;28;`})},{tag:`animate`,attributes:W(W({},i),{},{values:`1;0;1;1;0;1;`})}),e.push(a),e.push({tag:`path`,attributes:W(W({},n),{},{opacity:`1`,d:`M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z`}),children:t?[]:[{tag:`animate`,attributes:W(W({},i),{},{values:`1;0;0;0;0;1;`})}]}),t||e.push({tag:`path`,attributes:W(W({},n),{},{opacity:`0`,d:`M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z`}),children:[{tag:`animate`,attributes:W(W({},i),{},{values:`0;0;1;1;0;0;`})}]}),{tag:`g`,attributes:{class:`missing`},children:e}}}},yc={hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute(`data-fa-symbol`),r=n===null?!1:n===``?!0:n;return e.symbol=r,e}}}},bc=[Ha,Gs,Ks,qs,Js,lc,dc,pc,_c,vc,yc];Ro(bc,{mixoutsTo:qo}),qo.noAuto;var xc=qo.config;qo.library,qo.dom;var Sc=qo.parse;qo.findIconDefinition,qo.toHtml;var Cc=qo.icon;qo.layer,qo.text,qo.counter;function wc(e){return e-=0,e===e}function Tc(e){return wc(e)?e:(e=e.replace(/[_-]+(.)?/g,(e,t)=>t?t.toUpperCase():``),e.charAt(0).toLowerCase()+e.slice(1))}var Ec=(e,n)=>t.createElement(`stop`,{key:`${n}-${e.offset}`,offset:e.offset,stopColor:e.color,...e.opacity!==void 0&&{stopOpacity:e.opacity}});function Dc(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Oc=new Map,kc=1e3;function Ac(e){if(Oc.has(e))return Oc.get(e);let t={},n=0,r=e.length;for(;n<r;){let i=e.indexOf(`;`,n),a=i===-1?r:i,o=e.slice(n,a).trim();if(o){let e=o.indexOf(`:`);if(e>0){let n=o.slice(0,e).trim(),r=o.slice(e+1).trim();if(n&&r){let e=Tc(n);t[e.startsWith(`webkit`)?Dc(e):e]=r}}}n=a+1}if(Oc.size===kc){let e=Oc.keys().next().value;e&&Oc.delete(e)}return Oc.set(e,t),t}function jc(e,t,n={}){if(typeof t==`string`)return t;let r=(t.children||[]).map(t=>{let r=t;return(`fill`in n||n.gradientFill)&&t.tag===`path`&&`fill`in t.attributes&&(r={...t,attributes:{...t.attributes,fill:void 0}}),jc(e,r)}),i=t.attributes||{},a={};for(let[e,t]of Object.entries(i))switch(!0){case e===`class`:a.className=t;break;case e===`style`:a.style=Ac(String(t));break;case e.startsWith(`aria-`):case e.startsWith(`data-`):a[e.toLowerCase()]=t;break;default:a[Tc(e)]=t}let{style:o,role:s,"aria-label":c,gradientFill:l,...u}=n;if(o&&(a.style=a.style?{...a.style,...o}:o),s&&(a.role=s),c&&(a[`aria-label`]=c,a[`aria-hidden`]=`false`),l){a.fill=`url(#${l.id})`;let{type:t,stops:n=[],...i}=l;r.unshift(e(t===`linear`?`linearGradient`:`radialGradient`,{...i,id:l.id},n.map(Ec)))}return e(t.tag,{...a,...u},...r)}var Mc=jc.bind(null,t.createElement),Nc=(e,t)=>{let n=p();return e||(t?n:void 0)},Pc=class{constructor(e=`react-fontawesome`){this.enabled=!1;let t=!1;try{t=typeof process<`u`&&!1}catch{}this.scope=e,this.enabled=t}log(...e){this.enabled&&console.log(`[${this.scope}]`,...e)}warn(...e){this.enabled&&console.warn(`[${this.scope}]`,...e)}error(...e){this.enabled&&console.error(`[${this.scope}]`,...e)}};typeof process<`u`&&process.env?.FA_VERSION;var Fc=`searchPseudoElementsFullScan`in xc&&typeof xc.searchPseudoElementsFullScan==`boolean`?`7.0.0`:`6.0.0`,Ic=Number.parseInt(Fc)>=7,Lc=()=>Ic,Rc=`fa`,zc={beat:`fa-beat`,fade:`fa-fade`,beatFade:`fa-beat-fade`,bounce:`fa-bounce`,shake:`fa-shake`,spin:`fa-spin`,spinPulse:`fa-spin-pulse`,spinReverse:`fa-spin-reverse`,pulse:`fa-pulse`,flip360:`fa-flip-360`,buzz:`fa-buzz`,float:`fa-float`,jello:`fa-jello`,spinSnap:`fa-spin-snap`,spinSnap4:`fa-spin-snap-4`,spinSnap8:`fa-spin-snap-8`,swing:`fa-swing`,wag:`fa-wag`},Bc={left:`fa-pull-left`,right:`fa-pull-right`},Vc={90:`fa-rotate-90`,180:`fa-rotate-180`,270:`fa-rotate-270`},Hc={"2xs":`fa-2xs`,xs:`fa-xs`,sm:`fa-sm`,lg:`fa-lg`,xl:`fa-xl`,"2xl":`fa-2xl`,"1x":`fa-1x`,"2x":`fa-2x`,"3x":`fa-3x`,"4x":`fa-4x`,"5x":`fa-5x`,"6x":`fa-6x`,"7x":`fa-7x`,"8x":`fa-8x`,"9x":`fa-9x`,"10x":`fa-10x`},Uc={border:`fa-border`,fixedWidth:`fa-fw`,flip:`fa-flip`,flipHorizontal:`fa-flip-horizontal`,flipVertical:`fa-flip-vertical`,inverse:`fa-inverse`,rotateBy:`fa-rotate-by`,swapOpacity:`fa-swap-opacity`,widthAuto:`fa-width-auto`,canvasSquare:`fa-canvas-square`,canvasRoomy:`fa-canvas-roomy`},Wc={default:`fa-layers`};function Gc(e){let t=xc.cssPrefix||xc.familyPrefix||Rc;return t===Rc?e:e.replace(new RegExp(String.raw`(?<=^|\s)${Rc}-`,`g`),`${t}-`)}function Kc(e){let{beat:t,fade:n,beatFade:r,bounce:i,shake:a,spin:o,spinPulse:s,spinReverse:c,pulse:l,fixedWidth:u,inverse:d,border:f,flip:p,size:m,rotation:h,pull:g,swapOpacity:_,rotateBy:v,widthAuto:y,canvasSquare:b,canvasRoomy:x,flip360:S,buzz:C,float:w,jello:T,spinSnap:E,spinSnap4:D,spinSnap8:O,swing:k,wag:A,className:j}=e,M=[];if(j&&M.push(...j.split(` `)),t&&M.push(zc.beat),n&&M.push(zc.fade),r&&M.push(zc.beatFade),i&&M.push(zc.bounce),a&&M.push(zc.shake),o&&M.push(zc.spin),c&&M.push(zc.spinReverse),s&&M.push(zc.spinPulse),l&&M.push(zc.pulse),u&&M.push(Uc.fixedWidth),d&&M.push(Uc.inverse),f&&M.push(Uc.border),p===!0&&M.push(Uc.flip),(p===`horizontal`||p===`both`)&&M.push(Uc.flipHorizontal),(p===`vertical`||p===`both`)&&M.push(Uc.flipVertical),m!=null&&M.push(Hc[m]),h!=null&&h!==0&&M.push(Vc[h]),g!=null&&M.push(Bc[g]),_&&M.push(Uc.swapOpacity),!Lc())return M;v&&M.push(Uc.rotateBy),y&&M.push(Uc.widthAuto),b&&M.push(Uc.canvasSquare),x&&M.push(Uc.canvasRoomy),S&&M.push(zc.flip360),C&&M.push(zc.buzz),w&&M.push(zc.float),T&&M.push(zc.jello),E&&M.push(zc.spinSnap),D&&M.push(zc.spinSnap4),O&&M.push(zc.spinSnap8),k&&M.push(zc.swing),A&&M.push(zc.wag);let ee=xc.cssPrefix||xc.familyPrefix||Rc;return ee===Rc?M:M.map(Gc)}var qc=e=>typeof e==`object`&&`icon`in e&&!!e.icon;function Jc(e){if(e)return qc(e)?e:Sc.icon(e)}function Yc(e){return Object.keys(e)}var Xc=new Pc(`FontAwesomeIcon`),Zc={border:!1,className:``,mask:void 0,maskId:void 0,fixedWidth:!1,inverse:!1,flip:!1,icon:void 0,listItem:!1,pull:void 0,pulse:!1,rotation:void 0,rotateBy:!1,size:void 0,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:``,titleId:void 0,transform:void 0,swapOpacity:!1,widthAuto:!1,canvasSquare:!1,canvasRoomy:!1,flip360:!1,buzz:!1,float:!1,jello:!1,spinSnap:!1,spinSnap4:!1,spinSnap8:!1,swing:!1,wag:!1},Qc=new Set(Object.keys(Zc)),$c=t.forwardRef((e,t)=>{let n={...Zc,...e},{icon:r,mask:i,symbol:a,title:o,titleId:s,maskId:c,transform:l}=n,u=Nc(c,!!i),d=Nc(s,!!o),f=Jc(r);if(!f)return Xc.error(`Icon lookup is undefined`,r),null;let p=Kc(n),m=typeof l==`string`?Sc.transform(l):l,h=Jc(i),g=Cc(f,{...p.length>0&&{classes:p},...m&&{transform:m},...h&&{mask:h},symbol:a,title:o,titleId:d,maskId:u});if(!g)return Xc.error(`Could not find icon`,f),null;let{abstract:_}=g,v={ref:t};for(let e of Yc(n)){if(Qc.has(e))continue;v[e]=n[e]}return Mc(_[0],v)});$c.displayName=`FontAwesomeIcon`,`${Wc.default}${Uc.fixedWidth}`;const el=({tooltip:e,tooltipPlacement:t,isHtmlTooltip:n,tooltipTestId:r,tooltipDelay:i=500})=>e?{"data-qtip-text":e,"data-qtip-placement":t,"data-qtip-is-html":n,"data-qtip-testid":r,"data-qtip-delay":i}:void 0,tl={legacyToolsGroupBorder:`var(--xnydfdf)`,legacyToolsPrimary:`var(--xtidq40)`,legacyToolsLink:`var(--xxrwu7e)`,legacyToolsRowHover:`var(--x1g5ml2b)`,legacyToolsRowFocus:`var(--xoiatn2)`,toolsDisabledBorder:`var(--x1iuqhnh)`,toolPanelBorder:`var(--xvbkqoy)`,toolTableHeaderBorder:`var(--x1oj88j0)`,toolTableRowHover:`var(--xujr4zk)`,toolsSearchHighlight:`var(--xg767td)`,formGroupHeadingBackground:`var(--xkrzj8g)`,formulaUnselectedBackground:`var(--x1o1huai)`,formulaTypeBadgeBackground:`var(--x8ntlvv)`,legacyInfoBackground:`var(--x1wd6p52)`,legacyInfoBorder:`var(--x1bld1nu)`,statisticsDetailsBackground:`var(--x1a4guej)`,capsuleModeBackground:`var(--xy790ek)`,capsuleModeBorder:`var(--xwc67h9)`,piVisionFieldBackground:`var(--x7yzf4u)`,piVisionFieldBorder:`var(--xp8tryi)`,toolSelectedRow:`var(--x1a9sf6b)`,sampleInputBorder:`var(--x1xe6sx0)`,modelPropertyDisabled:`var(--x103bj6b)`,modelPropertyBorder:`var(--x3k0wbg)`,modelPropertyHeading:`var(--xzyv3pw)`,toolThemeLink:`var(--x100m8fh)`,toolThemeDark:`var(--x15q4owa)`,toolThemeLight:`var(--xjmvv9t)`,toolRowHover:`var(--x14tc3oa)`,templateOutputBorder:`var(--x1sxc480)`,templateBreakingBackground:`var(--xyr92g4)`,templateRestrictionError:`var(--x1mu8f5z)`,templateFindingBackground:`var(--x19jh2tg)`,agentBuilderTextColor:`var(--x1b27r7s)`,agentBuilderColorScheme:`var(--x1cinydn)`,agentBuilderDateBorder:`var(--xya71qm)`,agentBuilderDateActiveBorder:`var(--x68tpyz)`,agentBuilderDateFocusShadow:`var(--xhz3d7u)`,agentBuilderPaletteBackground:`var(--xnvt906)`,agentBuilderCardBackground:`var(--x1lt4nq1)`,agentBuilderCardHoverBackground:`var(--x1x4nfnk)`,agentBuilderCardIcon:`var(--x1rgrubx)`,agentBuilderPickerBackground:`var(--x1o08ydl)`,agentBuilderPickerBorder:`var(--xh4j2bw)`,agentBuilderPlaceholderBackground:`var(--xmhmsz2)`,agentBuilderPlaceholderHover:`var(--x8zfvxx)`,agentBuilderEdgeBackground:`var(--x1o7q96g)`,agentBuilderEdgeBorder:`var(--x1jdgyr)`,agentBuilderEdgeForeground:`var(--xciwljs)`,agentBuilderHelpHover:`var(--xprfi6z)`,agentBuilderNodeBackground:`var(--xsajygt)`,agentBuilderNodeBorder:`var(--x1mmu59m)`,agentBuilderNodeMuted:`var(--x1j6yd65)`,agentBuilderNodeText:`var(--x3j72ix)`,agentBuilderNodeMeta:`var(--x1rrkf2l)`,agentBuilderHandleLabel:`var(--x12ag7q6)`,agentBuilderBadgeBorder:`var(--x2ppicj)`,treeBuilderTabHover:`var(--x14cp583)`,treeBuilderAssistantBackground:`var(--x6nby4c)`,treeBuilderCardSelectedBackground:`var(--x1k181k0)`,timelineItemKind:`var(--x1ukkonr)`,progressSuccess:`var(--xiippi2)`,vantageActiveButtonBackground:`var(--x1qv5wb2)`,vantageActiveButtonHover:`var(--xfpb0l1)`,vantageActiveButtonPressed:`var(--x1t6mo9y)`,vantageActiveButtonBorder:`var(--x10062sr)`,vantageActiveButtonFocusBorder:`var(--x122kwz2)`,vantageActiveButtonText:`var(--x1s6ymhk)`,vantageSelectedTabIcon:`var(--x18tag7j)`,monitorActiveBackground:`var(--x1m0a8a1)`,monitorActiveText:`var(--xbhcjt6)`,monitorErrorBackground:`var(--x1nfgmo0)`,monitorErrorText:`var(--xoq5ylp)`,monitorSuppressedBackground:`var(--x7eu6ma)`,monitorSuppressedText:`var(--x1xkixeb)`,monitorInactiveBackground:`var(--x1wku2wg)`,monitorInactiveText:`var(--x1845yfb)`,monitorErrorAction:`var(--xey5wgd)`,monitorPlaceholderText:`var(--xbwwepg)`,monitorOverlayText:`var(--x1aqmw9r)`,evidenceFilterOptionHover:`var(--x1dvicqo)`,contextHintText:`var(--xzi6btn)`,suppressionDivider:`var(--xeoxfnr)`,reasonCodeRequiredText:`var(--x1mkmzo8)`,notificationFilterBorder:`var(--x1cbe8a8)`,notificationGroupBorder:`var(--x1qbkpb2)`,vantageRowHover:`var(--x1pj5yx1)`,contextLabelBackground:`var(--x178nznk)`,vantageSettingsHover:`var(--xmlm2q7)`,managementPageBackground:`var(--x9ogfp9)`,vantageWarningBackground:`var(--x1bnauru)`,vantageWarningBorder:`var(--xty1mua)`,vantageStandardBorder:`var(--x1iriv2k)`,vantageToolbarBackground:`var(--xi4ll4a)`,vantageChartWarningBackground:`var(--x1447mjt)`,vantageChartWarningText:`var(--x1h8jqqy)`,contextFlagIcon:`var(--x1rlnbc1)`,suppressionComparatorBorder:`var(--x1q02xbh)`,suppressionComparatorHover:`var(--xk3159m)`,suppressionComparatorPressed:`var(--xh01eko)`,suppressionComparatorSelectedText:`var(--x1u0f2hh)`,suppressionComparatorFocusBorder:`var(--xb9vzyb)`,suppressionComparatorSelected:`var(--x1tr9z7b)`,suppressionComparatorSelectedHover:`var(--x3pqcso)`,suppressionComparatorSelectedPressed:`var(--x1t3fzsl)`,suppressionComparatorSelectedBorder:`var(--xa9xrkn)`,suppressionComparatorSelectedHoverBorder:`var(--x1k9y569)`,suppressionComparatorSelectedPressedBorder:`var(--x14h1dsw)`,runWarningText:`var(--xfvdtaf)`,formulaAssistantError:`var(--xgfwx27)`,productionBadgeBackground:`var(--xg8d7yh)`,agentVersionMenuBorder:`var(--x52kkmm)`,agentVersionMenuBackground:`var(--x18mqvsc)`,workspaceSurface:`var(--x1ogc07e)`,workspaceBorder:`var(--x1fgjwgu)`,workspaceFrameBorder:`var(--x1gb9nk0)`,workspaceRowBorder:`var(--xpx677p)`,workspaceRowBackground:`var(--xh3gtyz)`,workspaceIcon:`var(--x1i754yw)`,workspaceDangerBackground:`var(--x1qpoizk)`,assistantPanelBorder:`var(--xb2mvhl)`,gaugeTrack:`var(--xe0qi3m)`,composerPlaceholder:`var(--xes0e8d)`,composerActionBackground:`var(--x14mxvzz)`,agentDescription:`var(--x7gztgb)`,subduedText:`var(--x3bjlya)`,effortTrack:`var(--x1n9l47y)`,effortSelected:`var(--x1r25c1t)`,effortHover:`var(--xyxv6ez)`,guidedAccent:`var(--x7js1xb)`,guidedAccentHover:`var(--x7bgt0x)`,guidedSelection:`var(--x1foq4tr)`,guidedSelectionText:`var(--x11hj5m1)`,inputBackground:`var(--x6wziv7)`,formGroupBorder:`var(--x1p7tckh)`,configurationGroupBorder:`var(--xjd0eim)`,diffAdded:`var(--xkrc4ok)`,diffRemoved:`var(--x1tx3m39)`,historyNumber:`var(--xuu40o0)`,historyNumberSelected:`var(--xpu1awn)`,historyNumberText:`var(--xn1kb5g)`,selectedFilterBackground:`var(--xhn5c79)`,readOnlyBackground:`var(--xxw3v4h)`,readOnlyBorder:`var(--xsnu80x)`,statusGood:`var(--xk54suj)`,statusProgress:`var(--xpcoyow)`,historyWarning:`var(--xstpm5k)`,popoverHeading:`var(--xz1q1lm)`,separator:`var(--x1k63mjo)`,info:`var(--xscr7c6)`,listRowAlternate:`var(--x1orq437)`,readOnlyText:`var(--x1rbxoul)`,subtleBorder:`var(--x122f8fp)`,cardBorder:`var(--xfh5vhi)`,cardHeaderBackground:`var(--xbnulac)`,sidebarBorder:`var(--x6wy6pn)`,sidebarBackground:`var(--x8i7yve)`,sidebarHover:`var(--xvmzh3u)`,sidebarSelected:`var(--x1je5gbe)`,sidebarSelectedBorder:`var(--x3tqopl)`,accent:`var(--xcthkzw)`,paginationSelected:`var(--xv44a5v)`,accentHover:`var(--xeufns5)`,accentPressed:`var(--x1fwiiwi)`,swatchBorder:`var(--x1ws0ftu)`,menuBorder:`var(--x17vpebz)`,menuText:`var(--xm8or8k)`,menuTextDisabled:`var(--x1c3ysa4)`,menuActionDisabled:`var(--xuvx1g6)`,notificationDanger:`var(--xah1r4m)`,dashboardTileBorder:`var(--x7hh52e)`,errorIconBackground:`var(--xp5rgxk)`,errorIconBorder:`var(--x6gdouz)`,assistantActionBorder:`var(--x1v5g0pd)`,assistantActionStart:`var(--x1gilj2r)`,assistantActionEnd:`var(--x14qd64p)`,assistantActionText:`var(--x1frmo2r)`,assistantActionIcon:`var(--xkqvvjt)`,overlayPanelBackground:`var(--x1bh7uq0)`,overlayPanelBorder:`var(--x1fd5fx1)`,overlayPanelShadow:`var(--xkj0eux)`,overlayPanelHighlight:`var(--x1itmj6x)`,boardTileBackground:`var(--xmne90l)`,boardTileBorder:`var(--x1qsdjlo)`,boardTileShadow:`var(--xu4cqt4)`,boardTileLoadingOverlay:`var(--x1qe8xwq)`,menuHover:`var(--x1vsr4sc)`,trackBackground:`var(--x1h1000k)`,selectionBorder:`var(--x17uq7uz)`,selectionBackground:`var(--x1v8dgp8)`,selectionText:`var(--x1g0ryz5)`,panelBorder:`var(--xpp4gys)`,panelBackground:`var(--xcz6vgl)`,black:`var(--x1il8j8j)`,mutedText:`var(--xvd09bk)`,badgeNewBackground:`var(--x1igma9f)`,badgeNewText:`var(--x1fchjee)`,badgePositiveBackground:`var(--xiaf2q8)`,badgePositiveText:`var(--xd4i6kc)`,badgePositiveLabelText:`var(--x5lifez)`,badgeNeutralBackground:`var(--x14wxm79)`,badgeErrorBackground:`var(--xzfsc5c)`,badgeNewBorder:`var(--xz5sm3y)`,badgePositiveBorder:`var(--x1waxhe3)`,badgeNeutralBorder:`var(--x1jxklyb)`,badgeErrorBorder:`var(--x734uxg)`,alertBackground:`var(--x1nb6roy)`,formulaErrorBackground:`var(--x9hbh3j)`,formulaErrorText:`var(--xll8ldf)`,formulaErrorBorder:`var(--xbnflqg)`,warningBackground:`var(--x2ka3ly)`,warningText:`var(--xwmmna3)`,toolbarHover:`var(--xzu75od)`,toolbarSelected:`var(--xhcl3lp)`,toolbarSelectedPressed:`var(--xva1xha)`,surfaceHover:`var(--x1ke12k0)`,surfaceSelected:`var(--x14c0qxq)`,surfacePressed:`var(--x1k341j3)`,navigationTextActive:`var(--xajr2vl)`,dangerHover:`var(--x4zsg9u)`,warningHover:`var(--x1utcwra)`,accentSubtle:`var(--x1fboi9w)`,accentHighlightBackground:`var(--x17jgama)`,link:`var(--xn4bgxe)`,white:`var(--x15lb3ge)`,bodyText:`var(--x1bvz1p9)`,textOnLight:`var(--x17apvey)`,tooltipBackground:`var(--xzidngj)`,segmentBorderInactive:`var(--x1863izj)`,segmentBackground:`var(--xjr4alx)`,segmentHover:`var(--x1ypuvwr)`,segmentSelected:`var(--xz64c5o)`,segmentSelectedHover:`var(--x193arbr)`,segmentBorder:`var(--x1q0jmt6)`,tabBorder:`var(--xi0fydx)`,tabHover:`var(--x72gymd)`,tabLabel:`var(--x1l8cuzk)`,tabLabelActive:`var(--xyltcfb)`,modalBackdrop:`var(--xqftmii)`,modalBorder:`var(--x1dagjc7)`,checkboxBorder:`var(--xocsh10)`,checkboxImage:`var(--xknbwwz)`,checkboxDisabledImage:`var(--xbu73kn)`,checkboxIndeterminateImage:`var(--xpodh2w)`,checkboxDisabledIndeterminateImage:`var(--xvieri1)`,textMuted:`var(--x2c4pg7)`,secondaryText:`var(--x12rbpj9)`,mutedForeground:`var(--xxe5bt8)`,supportingForeground:`var(--x1m6b9ck)`,controlHoverBackground:`var(--x1pe2rae)`,contrastForeground:`var(--x1jez451)`,secondaryBackground:`var(--x1c8bg53)`,contrastSelectedBackground:`var(--x15cwzrg)`,secondaryForeground:`var(--x1blpa30)`,surfaceSubtle:`var(--x7y4kvz)`,tableRowAlternate:`var(--x1imxq7e)`,divider:`var(--x5pbk73)`,textSubtle:`var(--x36a3zt)`,iconMuted:`var(--x1akzzq6)`,warning:`var(--x1vqr4j4)`,success:`var(--x8z506k)`,icon:`var(--x15h6w0o)`,iconForeground:`var(--xmjswtq)`,background:`var(--x13ip9or)`,fieldBackground:`var(--x5wchcd)`,backgroundDisabled:`var(--xtywrvk)`,border:`var(--x199arqb)`,borderInvalid:`var(--x1ekfkg7)`,borderDisabled:`var(--x1tz94zp)`,text:`var(--x4nhpc1)`,textDisabled:`var(--x32ga5b)`,placeholder:`var(--xi5kzck)`,borderHover:`var(--xqik12r)`,borderFocus:`var(--xlpbrz7)`,borderActive:`var(--xxlcm05)`,__varGroupHash__:`x1hdm7ur`},nl={base:{k3XXqK:`x1t137rt`,$$css:!0},interactive:{kkrTdU:`x1ypdohk`,$$css:!0}},rl={theme:{kMwMTN:`x190h4uq`,$$css:!0},white:{kMwMTN:`xeda06r`,$$css:!0},"dark-gray":{kMwMTN:`xp1ohcm`,$$css:!0},warning:{kMwMTN:`xt0ldj5`,$$css:!0},"darkish-gray":{kMwMTN:`x1t03eoi`,$$css:!0},gray:{kMwMTN:`x1k2oaju`,$$css:!0},color:{$$css:!0},info:{kMwMTN:`x1bc7ga3`,$$css:!0},text:{kMwMTN:`xcmjw3v`,$$css:!0},inherit:{$$css:!0},danger:{kMwMTN:`x1aijl2p`,$$css:!0},"theme-light":{kMwMTN:`x1s4dyt8`,$$css:!0},success:{kMwMTN:`x19aagk8`,$$css:!0}};function il({onClick:e,icon:t,iconPrefix:n,type:r=`theme`,extraClassNames:i,xstyle:a,id:o,large:s,small:c,size:l,color:u,testId:d,customId:f,number:p,...m}){if(r===`color`&&(u===void 0||u===``)||u&&r!==`color`){let e=u===void 0||u===``?`Icon with type="color" must have prop color specified.`:`Icon with prop color must have type="color".`;return b(`div`,{className:`x1aijl2p`,children:e})}let h=V(nl.base,rl[r],e&&nl.interactive,a),g={...h.style,...r===`color`&&u?{color:u}:{}},_=l??(c?`sm`:s?`lg`:void 0),v=H(h.className,i),y=el(m);if(typeof t!=`string`)return b($c,{icon:t,size:_,widthAuto:!0,className:v,style:g,onClick:e,"aria-label":e?m?.tooltip:void 0,"data-testid":d,"data-icon-type":r,"data-customid":f,id:o,"data-number":p,...y});let x=n||`fa-sharp fa-regular`,S=t.startsWith(`fc`)?`fc`:x,C=_?`fa-${_}`:``,w=`${S} ${t} ${C} ${v}`;return b(`i`,{className:w,style:g,onClick:e,"data-testid":d,"data-icon-type":r,"aria-label":e?m?.tooltip:void 0,"data-customid":f,id:o,"data-number":p,...y})}var al=il;const ol={base:{kB7OPa:`x9f619`,koQZXg:`x8x9d4c`,km5ZXQ:`xack27t`,kLWn49:`x1evy7pa`,k3XXqK:`x1t137rt`,kLKAdn:`x1b58sdr`,kGO01o:`xmnamis`,kE3dHu:`x79ra4s`,kpe85a:`x33uob6`,kaIpWk:`x1q4ynmn`,kzqmXN:`xh8yej3`,kVAEAm:`x1n2onr6`,ksu8eU:`x1y0btm7`,kMzoRj:`x15udo89`,kGuDYH:`xkpwil5`,k1xSpc:`x78zum5`,kXwgrk:`xdt5ytf`,kjj79g:`xl56j7k`,kGNEyG:`x6s0dn4`,$$css:!0},close:{kSGwAc:`xpvyfi4`,kkrTdU:`x1ypdohk`,kVAEAm:`x10l6tqk`,kCIrl2:`x1bnp733`,k87sOh:`x7h287w`,$$css:!0},closeText:{kMwMTN:`xcmjw3v`,$$css:!0}},sl={theme:{kWkggS:`x1s3hd1o`,kMwMTN:`x8x6yx0`,kVAM5u:`xjn1945`,$$css:!0},formulaError:{kWkggS:`x1khwhvv`,kMwMTN:`x227tgv`,kVAM5u:`x19vai2k`,kaIpWk:`x16eypsj`,$$css:!0},danger:{kWkggS:`x5tdp9u`,kMwMTN:`x1hil2k2`,kVAM5u:`xqqd531`,$$css:!0},warning:{kWkggS:`x1xg4bc`,kMwMTN:`x1lgzj2t`,kMzoRj:`xc342km`,$$css:!0},gray:{kWkggS:`x1j2g1ri`,kMwMTN:`x8x6yx0`,kVAM5u:`xmi20ts`,$$css:!0}},cl=({children:e,dismissible:t=!0,onClose:n,show:r=!0,variant:i,testId:a=`alert-id`,id:o,extraClassNames:s,xstyle:c,...l})=>{let u=V(ol.base,sl[i],c);return r?x(`div`,{"data-testid":a,id:o,...u,"data-variant":i,className:H(u.className,s),children:[e,t&&b(al,{icon:Pt,type:i.match(/danger|warning|formulaError/)?`color`:`theme`,color:i.match(/danger|warning|formulaError/)?`inherit`:void 0,xstyle:[ol.close,!!i.match(/danger|warning|gray|formulaError/)&&ol.closeText],testId:`${a}-close-btn`,onClick:n,...l})]}):b(`div`,{})},ll={base:{k1xSpc:`x3nfvp2`,kGNEyG:`x6s0dn4`,kaIpWk:`x18zih8k`,kE3dHu:`xcpk43y`,kpe85a:`x1nx2rwh`,kLKAdn:`x1nn3v0j`,kGO01o:`x1120s5i`,kGuDYH:`xgommxb`,khDVqt:`xuxw1ft`,kKX8nH:`x1k4tb9n`,$$css:!0},joined:{k1xSpc:`x3nfvp2`,kGNEyG:`x1qjc9v5`,kVQacm:`xb3r6kr`,kaIpWk:`x16eypsj`,kMzoRj:`x15udo89`,ksu8eU:`x1y0btm7`,$$css:!0},label:{k63SB2:`x1xlr1w8`,kKX8nH:`x1j61x8r`,$$css:!0},body:{kIxVMA:`x1ia1hqs`,kqGeR4:`xfrllxf`,$$css:!0}},ul={new:{kWkggS:`xyi6za0`,kMwMTN:`x1hy9b7a`,$$css:!0},preview:{kWkggS:`x9u4se7`,kMwMTN:`x1rrgm6i`,$$css:!0},success:{kWkggS:`x9u4se7`,kMwMTN:`x1rrgm6i`,$$css:!0},neutral:{kWkggS:`xf6a9ye`,kMwMTN:`xsjwgbd`,kMzoRj:`x15udo89`,ksu8eU:`x1y0btm7`,kVAM5u:`x9r1u3d`,$$css:!0},error:{kWkggS:`xh1g6j8`,kMwMTN:`x1aijl2p`,$$css:!0}},dl={new:{kWkggS:`x14jy53q`,kMwMTN:`x11mh32c`,$$css:!0},preview:{kWkggS:`x1xlf8yg`,kMwMTN:`x12o16bw`,$$css:!0},success:{kWkggS:`x1xlf8yg`,kMwMTN:`x12o16bw`,$$css:!0},neutral:{kWkggS:`xyrhqub`,kMwMTN:`xeda06r`,$$css:!0},error:{kWkggS:`x5tdp9u`,kMwMTN:`xeda06r`,$$css:!0}},fl={new:{kVAM5u:`xvmgpr6`,$$css:!0},preview:{kVAM5u:`xvfyo8r`,$$css:!0},success:{kVAM5u:`xvfyo8r`,$$css:!0},neutral:{kVAM5u:`x1q2kakz`,$$css:!0},error:{kVAM5u:`xk66f35`,$$css:!0}},pl=({children:e,variant:t=`new`,label:n,testId:r,extraClassNames:i=``,xstyle:a})=>{let o=n!=null,s=V(ll.base,ul[t],o&&ll.body,a);return o?x(`span`,{"data-testid":r,"data-variant":t,...V(ll.joined,fl[t]),children:[b(`span`,{...V(ll.base,ll.label,dl[t]),children:n}),b(`span`,{...s,className:H(s.className,i),children:e})]}):b(`span`,{...s,"data-testid":r,"data-variant":t,className:H(s.className,i),children:e})};var ml=pl;const hl={kX1K2I:`xwjwp01`,$$css:!0},gl={spinner:{kVAEAm:`x1n2onr6`,k1xSpc:`x1rg5ohu`,kUk6DE:`x3psx0u`,kzqmXN:`x100vrsf`,kZKoxP:`x1vqgdyp`,kMwMTN:`x190h4uq`,kLWn49:`xo5v014`,kXLuUW:`xxymvpz`,kaIpWk:`x16rqkct`,kKwaWg:`x4hbnts`,kX1K2I:`xbodh13`,kKVMdj:`x1aerksh`,k44tkh:`x1q3qbx4`,kyAemX:`x1esw782`,ko0y90:`xa4qsjk`,kgeoSG:`x10tli2e`,kEoFBp:`x1hmns74`,k96MEf:`x1y3wzot`,k75S9Q:`xgdch9p`,kOlAkY:`x1x7x01p`,kgzTxl:`xf3jtlm`,kLkRvE:`x15h7rrt`,kPB484:`x9msap3`,kcTAPf:`xnyzbwf`,$$css:!0},customSize:e=>[{kzqmXN:e==null?e:`x5lhr3w`,kZKoxP:e==null?e:`x16ye13r`,$$css:!0},{"--x-width":(e=>typeof e==`number`?e+`px`:e??void 0)(e),"--x-height":(e=>typeof e==`number`?e+`px`:e??void 0)(e)}],customThickness:e=>[hl,{kOlAkY:e==null?e:`x1hsxzkw`,kgzTxl:e==null?e:`x1v9n6q0`,$$css:!0},{"--x-maskImage":`radial-gradient(farthest-side, transparent calc(100% - ${e}px), black calc(100% - ${e}px + 0.5px))`==null?void 0:`radial-gradient(farthest-side, transparent calc(100% - ${e}px), black calc(100% - ${e}px + 0.5px))`,"--x-nzppn4":(e=>typeof e==`number`?e+`px`:e??void 0)(e),"--x-1whluux":(e=>typeof e==`number`?e+`px`:e??void 0)(e)}],customColor:e=>[{kMwMTN:e==null?e:`x14rh7hd`,$$css:!0},{"--x-color":e??void 0}]},_l={xs:{kzqmXN:`xsmyaan`,kZKoxP:`x1kpxq89`,kX1K2I:`xnb9ljo`,kOlAkY:`xjuy2up`,kgzTxl:`xuuc98b`,$$css:!0},sm:{kzqmXN:`x1kky2od`,kZKoxP:`xlup9mm`,kX1K2I:`xr1ufuy`,kOlAkY:`x1n405n8`,kgzTxl:`xv7f310`,$$css:!0},md:{kzqmXN:`xvy4d1p`,kZKoxP:`xxk0z11`,kX1K2I:`xb0qlen`,kOlAkY:`x1eencha`,kgzTxl:`x1k3893l`,$$css:!0},lg:{kzqmXN:`x100vrsf`,kZKoxP:`x1vqgdyp`,kX1K2I:`xbodh13`,kOlAkY:`x1x7x01p`,kgzTxl:`xf3jtlm`,$$css:!0},xl:{kzqmXN:`x1fu8urw`,kZKoxP:`x1peatla`,kX1K2I:`x1axhilb`,kOlAkY:`xaknh5y`,kgzTxl:`x17zp9gg`,$$css:!0}},vl=({id:e,customId:t,testId:n,size:r,thickness:i,color:a,extraClassNames:o,xstyle:s,style:c,ariaLabel:l,ariaHidden:u,role:d,onClick:f,title:p})=>{let m=!l&&!d&&!f,h=V(gl.spinner,typeof r==`string`&&_l[r],typeof r==`number`&&gl.customSize(r),typeof r==`number`&&gl.customThickness(Math.max(2,Math.round(r/6))),i!==void 0&&gl.customThickness(i),a?gl.customColor(a):void 0,s);return b(`div`,{id:e,"data-customid":t,"data-testid":n,"aria-hidden":u??(m?!0:void 0),"aria-label":l,role:d,title:p,className:Dt(`loading-spinner`,h.className,o),style:{...h.style,...c},onClick:f})};var yl=vl;const bl=(function(){let e,t=navigator.userAgent,n=t.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i)||[];return/trident/i.test(n[1])?(e=/\brv[ :]+(\d+)/g.exec(t)||[],`IE ${e[1]||``}`):n[1]===`Chrome`&&(e=t.match(/\b(OPR|Edge?)\/(\d+)/),e!==null)?e.slice(1).join(` `).replace(`OPR`,`Opera`).replace(`Edg `,`Edge `):(n=n[2]?[n[1],n[2]]:[navigator.appName,navigator.appVersion,`-?`],(e=t.match(/version\/(\d+)/i))!==null&&n.splice(1,1,e[1]),n.join(` `))})(),xl=bl&&bl.split(` `,2)[0];bl&&parseInt(bl.split(` `,2)[1],10);const Sl=bl&&xl===`Firefox`,Cl={base:{kB7OPa:`x9f619`,kMv6JI:`xjb2p0i`,k63SB2:`x1pd3egz`,kogj98:`x1ghz6dp`,k9WMMc:`x2b8uid`,kWkggS:`xjbqb8w`,kMzoRj:`xc342km`,ksu8eU:`x1y0btm7`,kE3dHu:`x164ht6e`,kpe85a:`x19pir32`,kaIpWk:`x1vx5ruh`,k3XXqK:`x1t137rt`,kkrTdU:`x1ypdohk`,$$css:!0},disabled:{kSiTet:`xbyyjgo`,kkrTdU:`x1h6gzvc`,$$css:!0},nativeDisabled:{kfzvcC:`x47corl`,$$css:!0},iconLeft:{km5ZXQ:`xj17ml3`,$$css:!0},iconRight:{koQZXg:`x4aigyd`,$$css:!0},iconColor:{kMwMTN:`x1heor9g`,$$css:!0}},wl={xs:{kGuDYH:`xboafo0`,kLWn49:`xl2ypbo`,kLKAdn:`xrhwvvd`,kGO01o:`xnw97ix`,$$css:!0},sm:{kGuDYH:`xkpwil5`,kLWn49:`x8r4c90`,kLKAdn:`x1iul6r4`,kGO01o:`xes99ow`,$$css:!0},lg:{kGuDYH:`x1603h9y`,kLWn49:`xladpa3`,kLKAdn:`x1iul6r4`,kGO01o:`xes99ow`,$$css:!0}},Tl={outline:{kWkggS:`xrkmy7n`,kMzoRj:`x15udo89`,kVAM5u:`x19rljk3`,kMwMTN:`xcmjw3v`,$$css:!0},theme:{kWkggS:`xu0u6m0`,kMzoRj:`x15udo89`,kVAM5u:`xjn1945`,kMwMTN:`xeda06r`,$$css:!0},"theme-light":{kWkggS:`x1x376a9`,kMzoRj:`x15udo89`,kVAM5u:`xt0mjhn`,kMwMTN:`xeda06r`,$$css:!0},danger:{kWkggS:`x5tdp9u`,kMzoRj:`x15udo89`,kVAM5u:`xqqd531`,kMwMTN:`xeda06r`,$$css:!0},warning:{kWkggS:`x14jy53q`,kMzoRj:`x15udo89`,kVAM5u:`xbxy22v`,kMwMTN:`xeda06r`,$$css:!0},"no-border":{kMwMTN:`xcmjw3v`,$$css:!0},navigation:{kMwMTN:`xcmjw3v`,$$css:!0},"navigation-selected":{kWkggS:`xrkmy7n`,kMwMTN:`x1v138wa`,$$css:!0}},El={outline:{kWkggS:`xrkmy7n x10vnkz x7z604p x176lpx6`,kVAM5u:`x19rljk3 xou0zi xvxx97q`,$$css:!0},theme:{kWkggS:`xu0u6m0 x5ar0eo x1cfzd5r x1ev14bi`,kVAM5u:`xjn1945 x1rkeuot x1s63pae x10njtxo`,$$css:!0},"theme-light":{kWkggS:`x1x376a9 xg4k83q x1cfzd5r x1ev14bi`,kVAM5u:`xt0mjhn x1j45run x1s63pae x10njtxo`,$$css:!0},danger:{kWkggS:`x5tdp9u xgg51et xbu8udh x10a0a6u`,kVAM5u:`xqqd531 xb3vrmz xl0zr31 x1qondk2`,$$css:!0},warning:{kWkggS:`x14jy53q x1hb5dtz xkrcyjn xz4jdf7`,kVAM5u:`xbxy22v xjjopnz x1uc3y9u xahy6kx`,$$css:!0},"no-border":{kWkggS:`xjbqb8w x10vnkz xhstdu2 x1qgq8df`,$$css:!0},navigation:{kWkggS:`xjbqb8w xjnwolr xc0lycw xzf14pi`,$$css:!0},"navigation-selected":{kWkggS:`xrkmy7n xjnwolr xc0lycw xzf14pi`,$$css:!0}},Dl=({onClick:e,label:t,variant:n=`outline`,type:r=`button`,size:i=`sm`,disabled:a,inProgress:o=!1,extraClassNames:s,xstyle:c,style:l,id:u,testId:d,stopPropagation:f=!0,tooltip:p,tooltipOptions:m,iconStyle:h=`text`,icon:g,iconColor:_,iconXstyle:v,iconPosition:y=`left`,iconPrefix:S,preventBlur:C=!1,isHtmlTooltip:w=!1,tooltipTestId:T,"aria-label":E,ref:D,...O})=>{let k={xs:`xs`,sm:`sm`,lg:`md`},A,j=V(Cl.base,Tl[n],wl[i],!a&&El[n],a&&Cl.disabled,a&&!p&&Cl.nativeDisabled,c);p&&(A={"data-qtip-text":p,"data-qtip-placement":m?.position,"data-qtip-is-html":w,"data-qtip-testid":T,"data-qtip-delay":m?.delay??500});let M=E??(!t&&g?p:void 0),ee=t?[y===`left`?Cl.iconLeft:Cl.iconRight,Cl.iconColor]:void 0,N=u?`${u}_spinner`:void 0,te=N??(d?`${d}_spinner`:void 0),P=o?b(yl,{size:k[i],color:h===`color`&&_?_:`currentColor`,xstyle:t?y===`left`?Cl.iconLeft:Cl.iconRight:void 0,testId:te}):g&&b(al,{icon:g,iconPrefix:S,type:h,color:_,xstyle:[ee,v],testId:N});return x(`button`,{...O,ref:D,id:u,...A,disabled:a&&!p,"aria-disabled":a,"aria-label":M,"data-testid":d,"data-variant":n,tabIndex:a?-1:void 0,type:r===`link`||r===`submit`&&Sl?`button`:r,onClick:t=>{f&&t.stopPropagation(),a||e?.(t)},onMouseDown:e=>{C&&e.preventDefault()},className:H(j.className,s),style:{...j.style,...l},children:[y===`left`&&P,t,y===`right`&&P]})};var Ol=Dl;const kl={group:{k1xSpc:`x78zum5`,k3XXqK:`x1t137rt`,kzqmXN:`xh8yej3`,kVAEAm:`x1n2onr6`,kwnvtZ:`x1a02dak`,$$css:!0},borderlessFocus:{kMzoRj:`xc342km xcvuhk8`,$$css:!0},button:{koQZXg:`xh9i6ac`,kY2c9j:`x1swf91x x16p59gx`,k3XXqK:`x1t137rt`,kIxVMA:`x1ia1hqs x194lrnv`,kqGeR4:`xfrllxf x1x3uajq`,ksF3WI:`x1a2w583 xxkfc9v`,kYm2EN:`xjppbhk x8txd6`,$$css:!0}},Al={outline:{kWkggS:`x116jm0a`,kVAM5u:`xjn1945`,$$css:!0},theme:{kWkggS:`xvnri51`,$$css:!0},danger:{$$css:!0},"theme-light":{$$css:!0},"no-border":{kWkggS:`x116jm0a`,$$css:!0},navigation:{kWkggS:`xrkmy7n`,kMwMTN:`x1bc7ga3`,$$css:!0},"navigation-selected":{kWkggS:`xrkmy7n`,kMwMTN:`x1bc7ga3`,$$css:!0},warning:{$$css:!0}},jl={outline:{kWkggS:`x116jm0a x10vnkz x7z604p x176lpx6`,kVAM5u:`xjn1945`,$$css:!0},theme:{kWkggS:`xvnri51 x5ar0eo x1cfzd5r x1ev14bi`,$$css:!0},danger:{$$css:!0},"theme-light":{$$css:!0},"no-border":{kWkggS:`x116jm0a`,$$css:!0},navigation:{kWkggS:`xrkmy7n`,kMwMTN:`x1bc7ga3`,$$css:!0},"navigation-selected":{kWkggS:`xrkmy7n`,kMwMTN:`x1bc7ga3`,$$css:!0},warning:{$$css:!0}},Ml=e=>{let{id:t,extraClassNames:n=``,xstyle:r,testId:i,onChange:a,buttons:o,...s}=e,c=el(s),l=V(kl.group,r);return b(`div`,{id:t?`button-group-${t}`:void 0,"data-testid":i,className:H(l.className,n),style:l.style,...c,children:o.filter(Boolean).map((e,t)=>{if(e?.variant===`button`){let{isActive:n,...r}=e.buttonProps;return b(Ol,{...r,"aria-pressed":n,xstyle:[kl.button,[`no-border`,`navigation`,`navigation-selected`].includes(e.buttonProps.variant??`outline`)&&kl.borderlessFocus,n&&(e.buttonProps.disabled?Al:jl)[e.buttonProps.variant??`outline`],e.buttonProps.xstyle],onClick:()=>a&&a(e.buttonProps.value)},t)}return e?.element})})};function Nl(t){let n=e.useRef(t);return e.useEffect(()=>{n.current=t}),e.useMemo(()=>(...e)=>n.current?.(...e),[])}function Pl(t,n=globalThis?.document){let r=Nl(t);e.useEffect(()=>{let e=e=>{e.key===`Escape`&&r(e)};return n.addEventListener(`keydown`,e,{capture:!0}),()=>n.removeEventListener(`keydown`,e,{capture:!0})},[r,n])}var Fl=`DismissableLayer`,Il=`dismissableLayer.update`,Ll=`dismissableLayer.pointerDownOutside`,Rl=`dismissableLayer.focusOutside`,zl,Bl=e.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Vl=e.forwardRef((t,n)=>{let{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:o,onInteractOutside:s,onDismiss:c,...l}=t,u=e.useContext(Bl),[d,f]=e.useState(null),p=d?.ownerDocument??globalThis?.document,[,m]=e.useState({}),h=I(n,e=>f(e)),g=Array.from(u.layers),[_]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),v=g.indexOf(_),y=d?g.indexOf(d):-1,x=u.layersWithOutsidePointerEventsDisabled.size>0,S=y>=v,C=Wl(e=>{let t=e.target,n=[...u.branches].some(e=>e.contains(t));!S||n||(a?.(e),s?.(e),e.defaultPrevented||c?.())},p),w=Gl(e=>{let t=e.target,n=[...u.branches].some(e=>e.contains(t));n||(o?.(e),s?.(e),e.defaultPrevented||c?.())},p);return Pl(e=>{let t=y===u.layers.size-1;t&&(i?.(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))},p),e.useEffect(()=>{if(d)return r&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(zl=p.body.style.pointerEvents,p.body.style.pointerEvents=`none`),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),Kl(),()=>{r&&u.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=zl)}},[d,p,r,u]),e.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),Kl())},[d,u]),e.useEffect(()=>{let e=()=>m({});return document.addEventListener(Il,e),()=>document.removeEventListener(Il,e)},[]),b(B.div,{...l,ref:h,style:{pointerEvents:x?S?`auto`:`none`:void 0,...t.style},onFocusCapture:z(t.onFocusCapture,w.onFocusCapture),onBlurCapture:z(t.onBlurCapture,w.onBlurCapture),onPointerDownCapture:z(t.onPointerDownCapture,C.onPointerDownCapture)})});Vl.displayName=Fl;var Hl=`DismissableLayerBranch`,Ul=e.forwardRef((t,n)=>{let r=e.useContext(Bl),i=e.useRef(null),a=I(n,i);return e.useEffect(()=>{let e=i.current;if(e)return r.branches.add(e),()=>{r.branches.delete(e)}},[r.branches]),b(B.div,{...t,ref:a})});Ul.displayName=Hl;function Wl(t,n=globalThis?.document){let r=Nl(t),i=e.useRef(!1),a=e.useRef(()=>{});return e.useEffect(()=>{let e=e=>{if(e.target&&!i.current){let t=function(){ql(Ll,r,i,{discrete:!0})},i={originalEvent:e};e.pointerType===`touch`?(n.removeEventListener(`click`,a.current),a.current=t,n.addEventListener(`click`,a.current,{once:!0})):t()}else n.removeEventListener(`click`,a.current);i.current=!1},t=window.setTimeout(()=>{n.addEventListener(`pointerdown`,e)},0);return()=>{window.clearTimeout(t),n.removeEventListener(`pointerdown`,e),n.removeEventListener(`click`,a.current)}},[n,r]),{onPointerDownCapture:()=>i.current=!0}}function Gl(t,n=globalThis?.document){let r=Nl(t),i=e.useRef(!1);return e.useEffect(()=>{let e=e=>{if(e.target&&!i.current){let t={originalEvent:e};ql(Rl,r,t,{discrete:!1})}};return n.addEventListener(`focusin`,e),()=>n.removeEventListener(`focusin`,e)},[n,r]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}function Kl(){let e=new CustomEvent(Il);document.dispatchEvent(e)}function ql(e,t,n,{discrete:r}){let i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?_e(i,a):i.dispatchEvent(a)}var Jl=0;function Yl(){e.useEffect(()=>{let e=document.querySelectorAll(`[data-radix-focus-guard]`);return document.body.insertAdjacentElement(`afterbegin`,e[0]??Xl()),document.body.insertAdjacentElement(`beforeend`,e[1]??Xl()),Jl++,()=>{Jl===1&&document.querySelectorAll(`[data-radix-focus-guard]`).forEach(e=>e.remove()),Jl--}},[])}function Xl(){let e=document.createElement(`span`);return e.setAttribute(`data-radix-focus-guard`,``),e.tabIndex=0,e.style.outline=`none`,e.style.opacity=`0`,e.style.position=`fixed`,e.style.pointerEvents=`none`,e}var Zl=`focusScope.autoFocusOnMount`,Ql=`focusScope.autoFocusOnUnmount`,$l={bubbles:!1,cancelable:!0},eu=`FocusScope`,tu=e.forwardRef((t,n)=>{let{loop:r=!1,trapped:i=!1,onMountAutoFocus:a,onUnmountAutoFocus:o,...s}=t,[c,l]=e.useState(null),u=Nl(a),d=Nl(o),f=e.useRef(null),p=I(n,e=>l(e)),m=e.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;e.useEffect(()=>{if(i){let e=function(e){if(m.paused||!c)return;let t=e.target;c.contains(t)?f.current=t:cu(f.current,{select:!0})},t=function(e){if(m.paused||!c)return;let t=e.relatedTarget;t!==null&&(c.contains(t)||cu(f.current,{select:!0}))},n=function(e){let t=document.activeElement;if(t===document.body)for(let t of e)t.removedNodes.length>0&&cu(c)};document.addEventListener(`focusin`,e),document.addEventListener(`focusout`,t);let r=new MutationObserver(n);return c&&r.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener(`focusin`,e),document.removeEventListener(`focusout`,t),r.disconnect()}}},[i,c,m.paused]),e.useEffect(()=>{if(c){lu.add(m);let e=document.activeElement,t=c.contains(e);if(!t){let t=new CustomEvent(Zl,$l);c.addEventListener(Zl,u),c.dispatchEvent(t),t.defaultPrevented||(nu(fu(iu(c)),{select:!0}),document.activeElement===e&&cu(c))}return()=>{c.removeEventListener(Zl,u),setTimeout(()=>{let t=new CustomEvent(Ql,$l);c.addEventListener(Ql,d),c.dispatchEvent(t),t.defaultPrevented||cu(e??document.body,{select:!0}),c.removeEventListener(Ql,d),lu.remove(m)},0)}}},[c,u,d,m]);let h=e.useCallback(e=>{if(!r&&!i||m.paused)return;let t=e.key===`Tab`&&!e.altKey&&!e.ctrlKey&&!e.metaKey,n=document.activeElement;if(t&&n){let t=e.currentTarget,[i,a]=ru(t),o=i&&a;o?!e.shiftKey&&n===a?(e.preventDefault(),r&&cu(i,{select:!0})):e.shiftKey&&n===i&&(e.preventDefault(),r&&cu(a,{select:!0})):n===t&&e.preventDefault()}},[r,i,m.paused]);return b(B.div,{tabIndex:-1,...s,ref:p,onKeyDown:h})});tu.displayName=eu;function nu(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(cu(r,{select:t}),document.activeElement!==n)return}function ru(e){let t=iu(e),n=au(t,e),r=au(t.reverse(),e);return[n,r]}function iu(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t=e.tagName===`INPUT`&&e.type===`hidden`;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function au(e,t){for(let n of e)if(!ou(n,{upTo:t}))return n}function ou(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 su(e){return e instanceof HTMLInputElement&&`select`in e}function cu(e,{select:t=!1}={}){if(e&&e.focus){let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&su(e)&&t&&e.select()}}var lu=uu();function uu(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),e=du(e,t),e.unshift(t)},remove(t){e=du(e,t),e[0]?.resume()}}}function du(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function fu(e){return e.filter(e=>e.tagName!==`A`)}const pu=[`top`,`right`,`bottom`,`left`],mu=Math.min,hu=Math.max,gu=Math.round,_u=Math.floor,vu=e=>({x:e,y:e}),yu={left:`right`,right:`left`,bottom:`top`,top:`bottom`},bu={start:`end`,end:`start`};function xu(e,t,n){return hu(e,mu(t,n))}function Su(e,t){return typeof e==`function`?e(t):e}function Cu(e){return e.split(`-`)[0]}function wu(e){return e.split(`-`)[1]}function Tu(e){return e===`x`?`y`:`x`}function Eu(e){return e===`y`?`height`:`width`}const Du=new Set([`top`,`bottom`]);function Ou(e){return Du.has(Cu(e))?`y`:`x`}function ku(e){return Tu(Ou(e))}function Au(e,t,n){n===void 0&&(n=!1);let r=wu(e),i=ku(e),a=Eu(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=zu(o)),[o,zu(o)]}function ju(e){let t=zu(e);return[Mu(e),t,Mu(t)]}function Mu(e){return e.replace(/start|end/g,e=>bu[e])}const Nu=[`left`,`right`],Pu=[`right`,`left`],Fu=[`top`,`bottom`],Iu=[`bottom`,`top`];function Lu(e,t,n){switch(e){case`top`:case`bottom`:return n?t?Pu:Nu:t?Nu:Pu;case`left`:case`right`:return t?Fu:Iu;default:return[]}}function Ru(e,t,n,r){let i=wu(e),a=Lu(Cu(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(Mu)))),a}function zu(e){return e.replace(/left|right|bottom|top/g,e=>yu[e])}function Bu(e){return{top:0,right:0,bottom:0,left:0,...e}}function Vu(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:Bu(e)}function Hu(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function Uu(e,t,n){let{reference:r,floating:i}=e,a=Ou(t),o=ku(t),s=Eu(o),c=Cu(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}switch(wu(t)){case`start`:p[o]-=f*(n&&l?-1:1);break;case`end`:p[o]+=f*(n&&l?-1:1);break}return p}const Wu=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=a.filter(Boolean),c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=Uu(l,r,c),f=r,p={},m=0;for(let n=0;n<s.length;n++){let{name:a,fn:h}=s[n],{x:g,y:_,data:v,reset:y}=await h({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:p,rects:l,platform:o,elements:{reference:e,floating:t}});u=g??u,d=_??d,p={...p,[a]:{...p[a],...v}},y&&m<=50&&(m++,typeof y==`object`&&(y.placement&&(f=y.placement),y.rects&&(l=y.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):y.rects),{x:u,y:d}=Uu(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:p}};async function Gu(e,t){var n;t===void 0&&(t={});let{x:r,y:i,platform:a,rects:o,elements:s,strategy:c}=e,{boundary:l=`clippingAncestors`,rootBoundary:u=`viewport`,elementContext:d=`floating`,altBoundary:f=!1,padding:p=0}=Su(t,e),m=Vu(p),h=d===`floating`?`reference`:`floating`,g=s[f?h:d],_=Hu(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(g)))??!0?g:g.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(s.floating)),boundary:l,rootBoundary:u,strategy:c})),v=d===`floating`?{x:r,y:i,width:o.floating.width,height:o.floating.height}:o.reference,y=await(a.getOffsetParent==null?void 0:a.getOffsetParent(s.floating)),b=await(a.isElement==null?void 0:a.isElement(y))&&await(a.getScale==null?void 0:a.getScale(y))||{x:1,y:1},x=Hu(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:v,offsetParent:y,strategy:c}):v);return{top:(_.top-x.top+m.top)/b.y,bottom:(x.bottom-_.bottom+m.bottom)/b.y,left:(_.left-x.left+m.left)/b.x,right:(x.right-_.right+m.right)/b.x}}const Ku=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=Su(e,t)||{};if(l==null)return{};let d=Vu(u),f={x:n,y:r},p=ku(i),m=Eu(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;(!C||!await(o.isElement==null?void 0:o.isElement(S)))&&(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,E=mu(d[_],T),D=mu(d[v],T),O=E,k=C-h[m]-D,A=C/2-h[m]/2+w,j=xu(O,A,k),M=!c.arrow&&wu(i)!=null&&A!==j&&a.reference[m]/2-(A<O?E:D)-h[m]/2<0,ee=M?A<O?A-O:A-k:0;return{[p]:f[p]+ee,data:{[p]:j,centerOffset:A-j-ee,...M&&{alignmentOffset:ee}},reset:M}}}),qu=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n,r;let{placement:i,middlewareData:a,rects:o,initialPlacement:s,platform:c,elements:l}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p=`bestFit`,fallbackAxisSideDirection:m=`none`,flipAlignment:h=!0,...g}=Su(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};let _=Cu(i),v=Ou(s),y=Cu(s)===s,b=await(c.isRTL==null?void 0:c.isRTL(l.floating)),x=f||(y||!h?[zu(s)]:ju(s)),S=m!==`none`;!f&&S&&x.push(...Ru(s,h,m,b));let C=[s,...x],w=await Gu(t,g),T=[],E=(r=a.flip)?.overflows||[];if(u&&T.push(w[_]),d){let e=Au(i,o,b);T.push(w[e[0]],w[e[1]])}if(E=[...E,{placement:i,overflows:T}],!T.every(e=>e<=0)){var D,O;let e=((D=a.flip)?.index||0)+1,t=C[e];if(t){let n=d===`alignment`?v!==Ou(t):!1;if(!n||E.every(e=>Ou(e.placement)===v?e.overflows[0]>0:!0))return{data:{index:e,overflows:E},reset:{placement:t}}}let n=(O=E.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?.placement;if(!n)switch(p){case`bestFit`:{var k;let e=(k=E.filter(e=>{if(S){let t=Ou(e.placement);return t===v||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?.[0];e&&(n=e);break}case`initialPlacement`:n=s;break}if(i!==n)return{reset:{placement:n}}}return{}}}};function Ju(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Yu(e){return pu.some(t=>e[t]>=0)}const Xu=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n}=t,{strategy:r=`referenceHidden`,...i}=Su(e,t);switch(r){case`referenceHidden`:{let e=await Gu(t,{...i,elementContext:`reference`}),r=Ju(e,n.reference);return{data:{referenceHiddenOffsets:r,referenceHidden:Yu(r)}}}case`escaped`:{let e=await Gu(t,{...i,altBoundary:!0}),r=Ju(e,n.floating);return{data:{escapedOffsets:r,escaped:Yu(r)}}}default:return{}}}}},Zu=new Set([`left`,`top`]);async function Qu(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=Cu(n),s=wu(n),c=Ou(n)===`y`,l=Zu.has(o)?-1:1,u=a&&c?-1:1,d=Su(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}const $u=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n,r;let{x:i,y:a,placement:o,middlewareData:s}=t,c=await Qu(t,e);return o===(n=s.offset)?.placement&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:i+c.x,y:a+c.y,data:{...c,placement:o}}}}},ed=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i}=t,{mainAxis:a=!0,crossAxis:o=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=Su(e,t),l={x:n,y:r},u=await Gu(t,c),d=Ou(Cu(i)),f=Tu(d),p=l[f],m=l[d];if(a){let e=f===`y`?`top`:`left`,t=f===`y`?`bottom`:`right`,n=p+u[e],r=p-u[t];p=xu(n,p,r)}if(o){let e=d===`y`?`top`:`left`,t=d===`y`?`bottom`:`right`,n=m+u[e],r=m-u[t];m=xu(n,m,r)}let h=s.fn({...t,[f]:p,[d]:m});return{...h,data:{x:h.x-n,y:h.y-r,enabled:{[f]:a,[d]:o}}}}}},td=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=Su(e,t),u={x:n,y:r},d=Ou(i),f=Tu(d),p=u[f],m=u[d],h=Su(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){var _,v;let e=f===`y`?`width`:`height`,t=Zu.has(Cu(i)),n=a.reference[d]-a.floating[e]+(t&&(_=o.offset)?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:(v=o.offset)?.[d]||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},nd=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){var n,r;let{placement:i,rects:a,platform:o,elements:s}=t,{apply:c=()=>{},...l}=Su(e,t),u=await Gu(t,l),d=Cu(i),f=wu(i),p=Ou(i)===`y`,{width:m,height:h}=a.floating,g,_;d===`top`||d===`bottom`?(g=d,_=f===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?`start`:`end`)?`left`:`right`):(_=d,g=f===`end`?`top`:`bottom`);let v=h-u.top-u.bottom,y=m-u.left-u.right,b=mu(h-u[g],v),x=mu(m-u[_],y),S=!t.middlewareData.shift,C=b,w=x;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(w=y),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(C=v),S&&!f){let e=hu(u.left,0),t=hu(u.right,0),n=hu(u.top,0),r=hu(u.bottom,0);p?w=m-2*(e!==0||t!==0?e+t:hu(u.left,u.right)):C=h-2*(n!==0||r!==0?n+r:hu(u.top,u.bottom))}await c({...t,availableWidth:w,availableHeight:C});let T=await o.getDimensions(s.floating);return m!==T.width||h!==T.height?{reset:{rects:!0}}:{}}}};function rd(){return typeof window<`u`}function id(e){return sd(e)?(e.nodeName||``).toLowerCase():`#document`}function ad(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function od(e){var t;return(t=(sd(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function sd(e){return rd()?e instanceof Node||e instanceof ad(e).Node:!1}function cd(e){return rd()?e instanceof Element||e instanceof ad(e).Element:!1}function ld(e){return rd()?e instanceof HTMLElement||e instanceof ad(e).HTMLElement:!1}function ud(e){return!rd()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof ad(e).ShadowRoot}const dd=new Set([`inline`,`contents`]);function fd(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=Td(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!dd.has(i)}const pd=new Set([`table`,`td`,`th`]);function md(e){return pd.has(id(e))}const hd=[`:popover-open`,`:modal`];function gd(e){return hd.some(t=>{try{return e.matches(t)}catch{return!1}})}const _d=[`transform`,`translate`,`scale`,`rotate`,`perspective`],vd=[`transform`,`translate`,`scale`,`rotate`,`perspective`,`filter`],yd=[`paint`,`layout`,`strict`,`content`];function bd(e){let t=Sd(),n=cd(e)?Td(e):e;return _d.some(e=>n[e]?n[e]!==`none`:!1)||(n.containerType?n.containerType!==`normal`:!1)||!t&&(n.backdropFilter?n.backdropFilter!==`none`:!1)||!t&&(n.filter?n.filter!==`none`:!1)||vd.some(e=>(n.willChange||``).includes(e))||yd.some(e=>(n.contain||``).includes(e))}function xd(e){let t=Dd(e);for(;ld(t)&&!wd(t);){if(bd(t))return t;if(gd(t))return null;t=Dd(t)}return null}function Sd(){return typeof CSS>`u`||!CSS.supports?!1:CSS.supports(`-webkit-backdrop-filter`,`none`)}const Cd=new Set([`html`,`body`,`#document`]);function wd(e){return Cd.has(id(e))}function Td(e){return ad(e).getComputedStyle(e)}function Ed(e){return cd(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Dd(e){if(id(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||ud(e)&&e.host||od(e);return ud(t)?t.host:t}function Od(e){let t=Dd(e);return wd(t)?e.ownerDocument?e.ownerDocument.body:e.body:ld(t)&&fd(t)?t:Od(t)}function kd(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);let i=Od(e),a=i===(r=e.ownerDocument)?.body,o=ad(i);if(a){let e=Ad(o);return t.concat(o,o.visualViewport||[],fd(i)?i:[],e&&n?kd(e):[])}return t.concat(i,kd(i,[],n))}function Ad(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function jd(e){let t=Td(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=ld(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=gu(n)!==a||gu(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function Md(e){return cd(e)?e:e.contextElement}function Nd(e){let t=Md(e);if(!ld(t))return vu(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=jd(t),o=(a?gu(n.width):n.width)/r,s=(a?gu(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}const Pd=vu(0);function Fd(e){let t=ad(e);return!Sd()||!t.visualViewport?Pd:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Id(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ad(e)?!1:t}function Ld(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=Md(e),o=vu(1);t&&(r?cd(r)&&(o=Nd(r)):o=Nd(e));let s=Id(a,n,r)?Fd(a):vu(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a){let e=ad(a),t=r&&cd(r)?ad(r):r,n=e,i=Ad(n);for(;i&&r&&t!==n;){let e=Nd(i),t=i.getBoundingClientRect(),r=Td(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=ad(i),i=Ad(n)}}return Hu({width:u,height:d,x:c,y:l})}function Rd(e,t){let n=Ed(e).scrollLeft;return t?t.left+n:Ld(od(e)).left+n}function zd(e,t){let n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Rd(e,n),i=n.top+t.scrollTop;return{x:r,y:i}}function Bd(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=od(r),s=t?gd(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=vu(1),u=vu(0),d=ld(r);if((d||!d&&!a)&&((id(r)!==`body`||fd(o))&&(c=Ed(r)),ld(r))){let e=Ld(r);l=Nd(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?zd(o,c):vu(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function Vd(e){return Array.from(e.getClientRects())}function Hd(e){let t=od(e),n=Ed(e),r=e.ownerDocument.body,i=hu(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=hu(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+Rd(e),s=-n.scrollTop;return Td(r).direction===`rtl`&&(o+=hu(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}function Ud(e,t){let n=ad(e),r=od(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=Sd();(!e||e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}let l=Rd(r);if(l<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(r.clientWidth-t.clientWidth-i);o<=25&&(a-=o)}else l<=25&&(a+=l);return{width:a,height:o,x:s,y:c}}const Wd=new Set([`absolute`,`fixed`]);function Gd(e,t){let n=Ld(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=ld(e)?Nd(e):vu(1),o=e.clientWidth*a.x,s=e.clientHeight*a.y,c=i*a.x,l=r*a.y;return{width:o,height:s,x:c,y:l}}function Kd(e,t,n){let r;if(t===`viewport`)r=Ud(e,n);else if(t===`document`)r=Hd(od(e));else if(cd(t))r=Gd(t,n);else{let n=Fd(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Hu(r)}function qd(e,t){let n=Dd(e);return n===t||!cd(n)||wd(n)?!1:Td(n).position===`fixed`||qd(n,t)}function Jd(e,t){let n=t.get(e);if(n)return n;let r=kd(e,[],!1).filter(e=>cd(e)&&id(e)!==`body`),i=null,a=Td(e).position===`fixed`,o=a?Dd(e):e;for(;cd(o)&&!wd(o);){let t=Td(o),n=bd(o);!n&&t.position===`fixed`&&(i=null);let s=a?!n&&!i:!n&&t.position===`static`&&!!i&&Wd.has(i.position)||fd(o)&&!n&&qd(e,o);s?r=r.filter(e=>e!==o):i=t,o=Dd(o)}return t.set(e,r),r}function Yd(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=n===`clippingAncestors`?gd(t)?[]:Jd(t,this._c):[].concat(n),o=[...a,r],s=o[0],c=o.reduce((e,n)=>{let r=Kd(t,n,i);return e.top=hu(r.top,e.top),e.right=mu(r.right,e.right),e.bottom=mu(r.bottom,e.bottom),e.left=hu(r.left,e.left),e},Kd(t,s,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Xd(e){let{width:t,height:n}=jd(e);return{width:t,height:n}}function Zd(e,t,n){let r=ld(t),i=od(t),a=n===`fixed`,o=Ld(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=vu(0);function l(){c.x=Rd(i)}if(r||!r&&!a)if((id(t)!==`body`||fd(i))&&(s=Ed(t)),r){let e=Ld(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else i&&l();a&&!r&&i&&l();let u=i&&!r&&!a?zd(i,s):vu(0),d=o.left+s.scrollLeft-c.x-u.x,f=o.top+s.scrollTop-c.y-u.y;return{x:d,y:f,width:o.width,height:o.height}}function Qd(e){return Td(e).position===`static`}function $d(e,t){if(!ld(e)||Td(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return od(e)===n&&(n=n.ownerDocument.body),n}function ef(e,t){let n=ad(e);if(gd(e))return n;if(!ld(e)){let t=Dd(e);for(;t&&!wd(t);){if(cd(t)&&!Qd(t))return t;t=Dd(t)}return n}let r=$d(e,t);for(;r&&md(r)&&Qd(r);)r=$d(r,t);return r&&wd(r)&&Qd(r)&&!bd(r)?n:r||xd(e)||n}const tf=async function(e){let t=this.getOffsetParent||ef,n=this.getDimensions,r=await n(e.floating);return{reference:Zd(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function nf(e){return Td(e).direction===`rtl`}const rf={convertOffsetParentRelativeRectToViewportRelativeRect:Bd,getDocumentElement:od,getClippingRect:Yd,getOffsetParent:ef,getElementRects:tf,getClientRects:Vd,getDimensions:Xd,getScale:Nd,isElement:cd,isRTL:nf};function af(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function sf(e,t){let n=null,r,i=od(e);function a(){var e;clearTimeout(r),(e=n)==null||e.disconnect(),n=null}function o(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),a();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(s||t(),!f||!p)return;let m=_u(d),h=_u(i.clientWidth-(u+f)),g=_u(i.clientHeight-(d+p)),_=_u(u),v=-m+`px `+-h+`px `+-g+`px `+-_+`px`,y={rootMargin:v,threshold:hu(0,mu(1,c))||1},b=!0;function x(t){let n=t[0].intersectionRatio;if(n!==c){if(!b)return o();n?o(!1,n):r=setTimeout(()=>{o(!1,1e-7)},1e3)}n===1&&!af(l,e.getBoundingClientRect())&&o(),b=!1}try{n=new IntersectionObserver(x,{...y,root:i.ownerDocument})}catch{n=new IntersectionObserver(x,y)}n.observe(e)}return o(!0),a}function cf(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=Md(e),u=i||a?[...l?kd(l):[],...kd(t)]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n,{passive:!0}),a&&e.addEventListener(`resize`,n)});let d=l&&s?sf(l,n):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),p.observe(t));let m,h=c?Ld(e):null;c&&g();function g(){let t=Ld(e);h&&!af(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}const lf=$u,uf=ed,df=qu,ff=nd,pf=Xu,mf=Ku,hf=td,gf=(e,t,n)=>{let r=new Map,i={platform:rf,...n},a={...i.platform,_c:r};return Wu(e,t,{...i,platform:a})};var _f=typeof document<`u`,vf=function(){},yf=_f?h:vf;function bf(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==`function`&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!bf(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!bf(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function xf(e){if(typeof window>`u`)return 1;let t=e.ownerDocument.defaultView||window;return t.devicePixelRatio||1}function Sf(e,t){let n=xf(e);return Math.round(t*n)/n}function Cf(t){let n=e.useRef(t);return yf(()=>{n.current=t}),n}function wf(t){t===void 0&&(t={});let{placement:n=`bottom`,strategy:r=`absolute`,middleware:i=[],platform:a,elements:{reference:o,floating:s}={},transform:c=!0,whileElementsMounted:l,open:u}=t,[d,f]=e.useState({x:0,y:0,strategy:r,placement:n,middlewareData:{},isPositioned:!1}),[p,m]=e.useState(i);bf(p,i)||m(i);let[h,g]=e.useState(null),[_,v]=e.useState(null),y=e.useCallback(e=>{e!==w.current&&(w.current=e,g(e))},[]),b=e.useCallback(e=>{e!==T.current&&(T.current=e,v(e))},[]),x=o||h,C=s||_,w=e.useRef(null),T=e.useRef(null),E=e.useRef(d),D=l!=null,O=Cf(l),k=Cf(a),A=Cf(u),j=e.useCallback(()=>{if(!w.current||!T.current)return;let e={placement:n,strategy:r,middleware:p};k.current&&(e.platform=k.current),gf(w.current,T.current,e).then(e=>{let t={...e,isPositioned:A.current!==!1};M.current&&!bf(E.current,t)&&(E.current=t,S.flushSync(()=>{f(t)}))})},[p,n,r,k,A]);yf(()=>{u===!1&&E.current.isPositioned&&(E.current.isPositioned=!1,f(e=>({...e,isPositioned:!1})))},[u]);let M=e.useRef(!1);yf(()=>(M.current=!0,()=>{M.current=!1}),[]),yf(()=>{if(x&&(w.current=x),C&&(T.current=C),x&&C){if(O.current)return O.current(x,C,j);j()}},[x,C,j,O,D]);let ee=e.useMemo(()=>({reference:w,floating:T,setReference:y,setFloating:b}),[y,b]),N=e.useMemo(()=>({reference:x,floating:C}),[x,C]),te=e.useMemo(()=>{let e={position:r,left:0,top:0};if(!N.floating)return e;let t=Sf(N.floating,d.x),n=Sf(N.floating,d.y);return c?{...e,transform:`translate(`+t+`px, `+n+`px)`,...xf(N.floating)>=1.5&&{willChange:`transform`}}:{position:r,left:t,top:n}},[r,c,N.floating,d.x,d.y]);return e.useMemo(()=>({...d,update:j,refs:ee,elements:N,floatingStyles:te}),[d,j,ee,N,te])}const Tf=e=>{function t(e){return{}.hasOwnProperty.call(e,`current`)}return{name:`arrow`,options:e,fn(n){let{element:r,padding:i}=typeof e==`function`?e(n):e;return r&&t(r)?r.current==null?{}:mf({element:r.current,padding:i}).fn(n):r?mf({element:r,padding:i}).fn(n):{}}}},Ef=(e,t)=>({...lf(e),options:[e,t]}),Df=(e,t)=>({...uf(e),options:[e,t]}),Of=(e,t)=>({...hf(e),options:[e,t]}),kf=(e,t)=>({...df(e),options:[e,t]}),Af=(e,t)=>({...ff(e),options:[e,t]}),jf=(e,t)=>({...pf(e),options:[e,t]}),Mf=(e,t)=>({...Tf(e),options:[e,t]});var Nf=`Arrow`,Pf=e.forwardRef((e,t)=>{let{children:n,width:r=10,height:i=5,...a}=e;return b(B.svg,{...a,ref:t,width:r,height:i,viewBox:`0 0 30 10`,preserveAspectRatio:`none`,children:e.asChild?n:b(`polygon`,{points:`0,0 30,0 15,10`})})});Pf.displayName=Nf;var Ff=Pf;function If(t){let[n,r]=e.useState(void 0);return de(()=>{if(t){r({width:t.offsetWidth,height:t.offsetHeight});let e=new ResizeObserver(e=>{if(!Array.isArray(e)||!e.length)return;let n=e[0],i,a;if(`borderBoxSize`in n){let e=n.borderBoxSize,t=Array.isArray(e)?e[0]:e;i=t.inlineSize,a=t.blockSize}else i=t.offsetWidth,a=t.offsetHeight;r({width:i,height:a})});return e.observe(t,{box:`border-box`}),()=>e.unobserve(t)}else r(void 0)},[t]),n}var Lf=`Popper`,[Rf,zf]=F(Lf),[Bf,Vf]=Rf(Lf),Hf=t=>{let{__scopePopper:n,children:r}=t,[i,a]=e.useState(null);return b(Bf,{scope:n,anchor:i,onAnchorChange:a,children:r})};Hf.displayName=Lf;var Uf=`PopperAnchor`,Wf=e.forwardRef((t,n)=>{let{__scopePopper:r,virtualRef:i,...a}=t,o=Vf(Uf,r),s=e.useRef(null),c=I(n,s),l=e.useRef(null);return e.useEffect(()=>{let e=l.current;l.current=i?.current||s.current,e!==l.current&&o.onAnchorChange(l.current)}),i?null:b(B.div,{...a,ref:c})});Wf.displayName=Uf;var Gf=`PopperContent`,[Kf,qf]=Rf(Gf),Jf=e.forwardRef((t,n)=>{let{__scopePopper:r,side:i=`bottom`,sideOffset:a=0,align:o=`center`,alignOffset:s=0,arrowPadding:c=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:f=`partial`,hideWhenDetached:p=!1,updatePositionStrategy:m=`optimized`,onPlaced:h,...g}=t,_=Vf(Gf,r),[v,y]=e.useState(null),x=I(n,e=>y(e)),[S,C]=e.useState(null),w=If(S),T=w?.width??0,E=w?.height??0,D=i+(o===`center`?``:`-`+o),O=typeof d==`number`?d:{top:0,right:0,bottom:0,left:0,...d},k=Array.isArray(u)?u:[u],A=k.length>0,j={padding:O,boundary:k.filter(Qf),altBoundary:A},{refs:M,floatingStyles:ee,placement:N,isPositioned:te,middlewareData:P}=wf({strategy:`fixed`,placement:D,whileElementsMounted:(...e)=>{let t=cf(...e,{animationFrame:m===`always`});return t},elements:{reference:_.anchor},middleware:[Ef({mainAxis:a+E,alignmentAxis:s}),l&&Df({mainAxis:!0,crossAxis:!1,limiter:f===`partial`?Of():void 0,...j}),l&&kf({...j}),Af({...j,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:a}=t.reference,o=e.floating.style;o.setProperty(`--radix-popper-available-width`,`${n}px`),o.setProperty(`--radix-popper-available-height`,`${r}px`),o.setProperty(`--radix-popper-anchor-width`,`${i}px`),o.setProperty(`--radix-popper-anchor-height`,`${a}px`)}}),S&&Mf({element:S,padding:c}),$f({arrowWidth:T,arrowHeight:E}),p&&jf({strategy:`referenceHidden`,...j})]}),[ne,F]=ep(N),re=Nl(h);de(()=>{te&&re?.()},[te,re]);let ie=P.arrow?.x,ae=P.arrow?.y,oe=P.arrow?.centerOffset!==0,[se,ce]=e.useState();return de(()=>{v&&ce(window.getComputedStyle(v).zIndex)},[v]),b(`div`,{ref:M.setFloating,"data-radix-popper-content-wrapper":``,style:{...ee,transform:te?ee.transform:`translate(0, -200%)`,minWidth:`max-content`,zIndex:se,"--radix-popper-transform-origin":[P.transformOrigin?.x,P.transformOrigin?.y].join(` `),...P.hide?.referenceHidden&&{visibility:`hidden`,pointerEvents:`none`}},dir:t.dir,children:b(Kf,{scope:r,placedSide:ne,onArrowChange:C,arrowX:ie,arrowY:ae,shouldHideArrow:oe,children:b(B.div,{"data-side":ne,"data-align":F,...g,ref:x,style:{...g.style,animation:te?void 0:`none`}})})})});Jf.displayName=Gf;var Yf=`PopperArrow`,Xf={top:`bottom`,right:`left`,bottom:`top`,left:`right`},Zf=e.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,i=qf(Yf,n),a=Xf[i.placedSide];return b(`span`,{ref:i.onArrowChange,style:{position:`absolute`,left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:``,right:`0 0`,bottom:`center 0`,left:`100% 0`}[i.placedSide],transform:{top:`translateY(100%)`,right:`translateY(50%) rotate(90deg) translateX(-50%)`,bottom:`rotate(180deg)`,left:`translateY(50%) rotate(-90deg) translateX(50%)`}[i.placedSide],visibility:i.shouldHideArrow?`hidden`:void 0},children:b(Ff,{...r,ref:t,style:{...r.style,display:`block`}})})});Zf.displayName=Yf;function Qf(e){return e!==null}var $f=e=>({name:`transformOrigin`,options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,a=i.arrow?.centerOffset!==0,o=a,s=o?0:e.arrowWidth,c=o?0:e.arrowHeight,[l,u]=ep(n),d={start:`0%`,center:`50%`,end:`100%`}[u],f=(i.arrow?.x??0)+s/2,p=(i.arrow?.y??0)+c/2,m=``,h=``;return l===`bottom`?(m=o?d:`${f}px`,h=`${-c}px`):l===`top`?(m=o?d:`${f}px`,h=`${r.floating.height+c}px`):l===`right`?(m=`${-c}px`,h=o?d:`${p}px`):l===`left`&&(m=`${r.floating.width+c}px`,h=o?d:`${p}px`),{data:{x:m,y:h}}}});function ep(e){let[t,n=`center`]=e.split(`-`);return[t,n]}var tp=Hf,np=Wf,rp=Jf,ip=Zf,ap=`Portal`,op=e.forwardRef((t,n)=>{let{container:r,...i}=t,[a,o]=e.useState(!1);de(()=>o(!0),[]);let s=r||a&&globalThis?.document?.body;return s?C.createPortal(b(B.div,{...i,ref:n}),s):null});op.displayName=ap;var sp=`rovingFocusGroup.onEntryFocus`,cp={bubbles:!1,cancelable:!0},lp=`RovingFocusGroup`,[up,dp,fp]=ue(lp),[pp,mp]=F(lp,[fp]),[hp,gp]=pp(lp),_p=e.forwardRef((e,t)=>b(up.Provider,{scope:e.__scopeRovingFocusGroup,children:b(up.Slot,{scope:e.__scopeRovingFocusGroup,children:b(vp,{...e,ref:t})})}));_p.displayName=lp;var vp=e.forwardRef((t,n)=>{let{__scopeRovingFocusGroup:r,orientation:i,loop:a=!1,dir:o,currentTabStopId:s,defaultCurrentTabStopId:c,onCurrentTabStopIdChange:l,onEntryFocus:u,preventScrollOnEntryFocus:d=!1,...f}=t,p=e.useRef(null),m=I(n,p),h=He(o),[g,_]=pe({prop:s,defaultProp:c??null,onChange:l,caller:lp}),[v,y]=e.useState(!1),x=Nl(u),S=dp(r),C=e.useRef(!1),[w,T]=e.useState(0);return e.useEffect(()=>{let e=p.current;if(e)return e.addEventListener(sp,x),()=>e.removeEventListener(sp,x)},[x]),b(hp,{scope:r,orientation:i,dir:h,loop:a,currentTabStopId:g,onItemFocus:e.useCallback(e=>_(e),[_]),onItemShiftTab:e.useCallback(()=>y(!0),[]),onFocusableItemAdd:e.useCallback(()=>T(e=>e+1),[]),onFocusableItemRemove:e.useCallback(()=>T(e=>e-1),[]),children:b(B.div,{tabIndex:v||w===0?-1:0,"data-orientation":i,...f,ref:m,style:{outline:`none`,...t.style},onMouseDown:z(t.onMouseDown,()=>{C.current=!0}),onFocus:z(t.onFocus,e=>{let t=!C.current;if(e.target===e.currentTarget&&t&&!v){let t=new CustomEvent(sp,cp);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=S().filter(e=>e.focusable),t=e.find(e=>e.active),n=e.find(e=>e.id===g),r=[t,n,...e].filter(Boolean),i=r.map(e=>e.ref.current);wp(i,d)}}C.current=!1}),onBlur:z(t.onBlur,()=>y(!1))})})}),yp=`RovingFocusGroupItem`,bp=e.forwardRef((t,n)=>{let{__scopeRovingFocusGroup:r,focusable:i=!0,active:a=!1,tabStopId:o,children:s,...c}=t,l=Te(),u=o||l,d=gp(yp,r),f=d.currentTabStopId===u,p=dp(r),{onFocusableItemAdd:m,onFocusableItemRemove:h,currentTabStopId:g}=d;return e.useEffect(()=>{if(i)return m(),()=>h()},[i,m,h]),b(up.ItemSlot,{scope:r,id:u,focusable:i,active:a,children:b(B.span,{tabIndex:f?0:-1,"data-orientation":d.orientation,...c,ref:n,onMouseDown:z(t.onMouseDown,e=>{i?d.onItemFocus(u):e.preventDefault()}),onFocus:z(t.onFocus,()=>d.onItemFocus(u)),onKeyDown:z(t.onKeyDown,e=>{if(e.key===`Tab`&&e.shiftKey){d.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=Cp(e,d.orientation,d.dir);if(t!==void 0){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let n=p().filter(e=>e.focusable),r=n.map(e=>e.ref.current);if(t===`last`)r.reverse();else if(t===`prev`||t===`next`){t===`prev`&&r.reverse();let n=r.indexOf(e.currentTarget);r=d.loop?Tp(r,n+1):r.slice(n+1)}setTimeout(()=>wp(r))}}),children:typeof s==`function`?s({isCurrentTabStop:f,hasTabStop:g!=null}):s})})});bp.displayName=yp;var xp={ArrowLeft:`prev`,ArrowUp:`prev`,ArrowRight:`next`,ArrowDown:`next`,PageUp:`first`,Home:`first`,PageDown:`last`,End:`last`};function Sp(e,t){return t===`rtl`?e===`ArrowLeft`?`ArrowRight`:e===`ArrowRight`?`ArrowLeft`:e:e}function Cp(e,t,n){let r=Sp(e.key,n);if(!(t===`vertical`&&[`ArrowLeft`,`ArrowRight`].includes(r))&&!(t===`horizontal`&&[`ArrowUp`,`ArrowDown`].includes(r)))return xp[r]}function wp(e,t=!1){let n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function Tp(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Ep=_p,Dp=bp,Op=function(e){if(typeof document>`u`)return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},kp=new WeakMap,Ap=new WeakMap,jp={},Mp=0,Np=function(e){return e&&(e.host||Np(e.parentNode))},Pp=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=Np(t);return n&&e.contains(n)?n:(console.error(`aria-hidden`,t,`in not contained inside`,e,`. Doing nothing`),null)}).filter(function(e){return!!e})},Fp=function(e,t,n,r){var i=Pp(t,Array.isArray(e)?e:[e]);jp[n]||(jp[n]=new WeakMap);var a=jp[n],o=[],s=new Set,c=new Set(i),l=function(e){!e||s.has(e)||(s.add(e),l(e.parentNode))};i.forEach(l);var u=function(e){!e||c.has(e)||Array.prototype.forEach.call(e.children,function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(r),i=t!==null&&t!==`false`,c=(kp.get(e)||0)+1,l=(a.get(e)||0)+1;kp.set(e,c),a.set(e,l),o.push(e),c===1&&i&&Ap.set(e,!0),l===1&&e.setAttribute(n,`true`),i||e.setAttribute(r,`true`)}catch(t){console.error(`aria-hidden: cannot operate on `,e,t)}})};return u(t),s.clear(),Mp++,function(){o.forEach(function(e){var t=kp.get(e)-1,i=a.get(e)-1;kp.set(e,t),a.set(e,i),t||(Ap.has(e)||e.removeAttribute(r),Ap.delete(e)),i||e.removeAttribute(n)}),Mp--,Mp||(kp=new WeakMap,kp=new WeakMap,Ap=new WeakMap,jp={})}},Ip=function(e,t,n){n===void 0&&(n=`data-aria-hidden`);var r=Array.from(Array.isArray(e)?e:[e]),i=t||Op(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll(`[aria-live], script`))),Fp(r,i,n,`aria-hidden`)):function(){return null}},Lp=function(){return Lp=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Lp.apply(this,arguments)};function Rp(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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function zp(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var Bp=`right-scroll-bar-position`,Vp=`width-before-scroll-bar`,Hp=`with-scroll-bars-hidden`,Up=`--removed-body-scroll-bar-size`;function Wp(e,t){return typeof e==`function`?e(t):e&&(e.current=t),e}function Gp(e,t){var n=v(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}})[0];return n.callback=t,n.facade}var Kp=typeof window<`u`?e.useLayoutEffect:e.useEffect,qp=new WeakMap;function Jp(e,t){var n=Gp(t||null,function(t){return e.forEach(function(e){return Wp(e,t)})});return Kp(function(){var t=qp.get(n);if(t){var r=new Set(t),i=new Set(e),a=n.current;r.forEach(function(e){i.has(e)||Wp(e,null)}),i.forEach(function(e){r.has(e)||Wp(e,a)})}qp.set(n,e)},[e]),n}function Yp(e){return e}function Xp(e,t){t===void 0&&(t=Yp);var n=[],r=!1,i={read:function(){if(r)throw 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(e){var i=t(e,r);return n.push(i),function(){n=n.filter(function(e){return e!==i})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var i=n;n=[],i.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(a)};o(),n={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),n}}}};return i}function Zp(e){e===void 0&&(e={});var t=Xp(null);return t.options=Lp({async:!0,ssr:!1},e),t}var Qp=function(t){var n=t.sideCar,r=Rp(t,[`sideCar`]);if(!n)throw Error("Sidecar: please provide `sideCar` property to import the right car");var i=n.read();if(!i)throw Error(`Sidecar medium not found`);return e.createElement(i,Lp({},r))};Qp.isSideCarExport=!0;function $p(e,t){return e.useMedium(t),Qp}var em=Zp(),tm=function(){},nm=e.forwardRef(function(t,n){var r=e.useRef(null),i=e.useState({onScrollCapture:tm,onWheelCapture:tm,onTouchMoveCapture:tm}),a=i[0],o=i[1],s=t.forwardProps,c=t.children,l=t.className,u=t.removeScrollBar,d=t.enabled,f=t.shards,p=t.sideCar,m=t.noRelative,h=t.noIsolation,g=t.inert,_=t.allowPinchZoom,v=t.as,y=v===void 0?`div`:v,b=t.gapMode,x=Rp(t,[`forwardProps`,`children`,`className`,`removeScrollBar`,`enabled`,`shards`,`sideCar`,`noRelative`,`noIsolation`,`inert`,`allowPinchZoom`,`as`,`gapMode`]),S=p,C=Jp([r,n]),w=Lp(Lp({},x),a);return e.createElement(e.Fragment,null,d&&e.createElement(S,{sideCar:em,removeScrollBar:u,shards:f,noRelative:m,noIsolation:h,inert:g,setCallbacks:o,allowPinchZoom:!!_,lockRef:r,gapMode:b}),s?e.cloneElement(e.Children.only(c),Lp(Lp({},w),{ref:C})):e.createElement(y,Lp({},w,{className:l,ref:C}),c))});nm.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},nm.classNames={fullWidth:Vp,zeroRight:Bp};var rm,im=function(){if(rm)return rm;if(typeof __webpack_nonce__<`u`)return __webpack_nonce__};function am(){if(!document)return null;var e=document.createElement(`style`);e.type=`text/css`;var t=im();return t&&e.setAttribute(`nonce`,t),e}function om(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function sm(e){var t=document.head||document.getElementsByTagName(`head`)[0];t.appendChild(e)}var cm=function(){var e=0,t=null;return{add:function(n){e==0&&(t=am())&&(om(t,n),sm(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},lm=function(){var t=cm();return function(n,r){e.useEffect(function(){return t.add(n),function(){t.remove()}},[n&&r])}},um=function(){var e=lm(),t=function(t){var n=t.styles,r=t.dynamic;return e(n,r),null};return t},dm={left:0,top:0,right:0,gap:0},fm=function(e){return parseInt(e||``,10)||0},pm=function(e){var t=window.getComputedStyle(document.body),n=t[e===`padding`?`paddingLeft`:`marginLeft`],r=t[e===`padding`?`paddingTop`:`marginTop`],i=t[e===`padding`?`paddingRight`:`marginRight`];return[fm(n),fm(r),fm(i)]},mm=function(e){if(e===void 0&&(e=`margin`),typeof window>`u`)return dm;var t=pm(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])}},hm=um(),gm=`data-scroll-locked`,_m=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return n===void 0&&(n=`margin`),`
|
|
1086
|
+
If it declares any Font Awesome CSS pseudo-elements, they will not be rendered as SVG icons. Add crossorigin="anonymous" to the <link>, enable searchPseudoElementsFullScan for slower but more thorough DOM parsing, or suppress this warning by setting searchPseudoElementsWarnings to false.`)}}}catch(e){i.e(e)}finally{i.f()}if(!r.size)return;var m=Array.from(r).join(`, `);try{n=e.querySelectorAll(m)}catch{}}return new Promise(function(e,t){var r=Aa(n).filter(ac).map(ic),i=ms.begin(`searchPseudoElements`);Os(),Promise.all(r).then(function(){i(),ks(),e()}).catch(function(){i(),ks(),t()})})}}var lc={hooks:function(){return{mutationObserverCallbacks:function(e){return e.pseudoElementsCallback=cc,e}}},provides:function(e){e.pseudoElements2svg=function(e){var t=e.node,n=t===void 0?ln:t;G.searchPseudoElements&&cc(n)}}},uc=!1,dc={mixout:function(){return{dom:{unwatch:function(){Os(),uc=!0}}}},hooks:function(){return{bootstrap:function(){js(zo(`mutationObserverCallbacks`,{}))},noAuto:function(){Ms()},watch:function(e){var t=e.observeMutationsRoot;uc?ks():js(zo(`mutationObserverCallbacks`,{observeMutationsRoot:t}))}}}},fc=function(e){var t={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return e.toLowerCase().split(` `).reduce(function(e,t){var n=t.toLowerCase().split(`-`),r=n[0],i=n.slice(1).join(`-`);if(r&&i===`h`)return e.flipX=!0,e;if(r&&i===`v`)return e.flipY=!0,e;if(i=parseFloat(i),isNaN(i))return e;switch(r){case`grow`:e.size+=i;break;case`shrink`:e.size-=i;break;case`left`:e.x-=i;break;case`right`:e.x+=i;break;case`up`:e.y-=i;break;case`down`:e.y+=i;break;case`rotate`:e.rotate+=i;break}return e},t)},pc={mixout:function(){return{parse:{transform:function(e){return fc(e)}}}},hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute(`data-fa-transform`);return n&&(e.transform=fc(n)),e}}},provides:function(e){e.generateAbstractTransformGrouping=function(e){var t=e.main,n=e.transform,r=e.containerWidth,i=e.iconWidth,a={transform:`translate(${r/2} 256)`},o=`translate(${n.x*32}, ${n.y*32}) `,s=`scale(${n.size/16*(n.flipX?-1:1)}, ${n.size/16*(n.flipY?-1:1)}) `,c=`rotate(${n.rotate} 0 0)`,l={transform:`${o} ${s} ${c}`},u={transform:`translate(${i/2*-1} -256)`},d={outer:a,inner:l,path:u};return{tag:`g`,attributes:W({},d.outer),children:[{tag:`g`,attributes:W({},d.inner),children:[{tag:t.icon.tag,children:t.icon.children,attributes:W(W({},t.icon.attributes),d.path)}]}]}}}},mc={x:0,y:0,width:`100%`,height:`100%`};function hc(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill=`black`),e}function gc(e){return e.tag===`g`?e.children:[e]}var _c={hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute(`data-fa-mask`),r=n?Oo(n.split(` `).map(function(e){return e.trim()})):So();return r.prefix||=xo(),e.mask=r,e.maskId=t.getAttribute(`data-fa-mask-id`),e}}},provides:function(e){e.generateAbstractMask=function(e){var t=e.children,n=e.attributes,r=e.main,i=e.mask,a=e.maskId,o=e.transform,s=r.width,c=r.icon,l=i.width,u=i.icon,d=Ia({transform:o,containerWidth:l,iconWidth:s}),f={tag:`rect`,attributes:W(W({},mc),{},{fill:`white`})},p=c.children?{children:c.children.map(hc)}:{},m={tag:`g`,attributes:W({},d.inner),children:[hc(W({tag:c.tag,attributes:W(W({},c.attributes),d.path)},p))]},h={tag:`g`,attributes:W({},d.outer),children:[m]},g=`mask-${a||ka()}`,_=`clip-${a||ka()}`,v={tag:`mask`,attributes:W(W({},mc),{},{id:g,maskUnits:`userSpaceOnUse`,maskContentUnits:`userSpaceOnUse`}),children:[f,h]},y={tag:`defs`,children:[{tag:`clipPath`,attributes:{id:_},children:gc(u)},v]};return t.push(y,{tag:`rect`,attributes:W({fill:`currentColor`,"clip-path":`url(#${_})`,mask:`url(#${g})`},mc)}),{children:t,attributes:n}}}},vc={provides:function(e){var t=!1;cn.matchMedia&&(t=cn.matchMedia(`(prefers-reduced-motion: reduce)`).matches),e.missingIconAbstract=function(){var e=[],n={fill:`currentColor`},r={attributeType:`XML`,repeatCount:`indefinite`,dur:`2s`};e.push({tag:`path`,attributes:W(W({},n),{},{d:`M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z`})});var i=W(W({},r),{},{attributeName:`opacity`}),a={tag:`circle`,attributes:W(W({},n),{},{cx:`256`,cy:`364`,r:`28`}),children:[]};return t||a.children.push({tag:`animate`,attributes:W(W({},r),{},{attributeName:`r`,values:`28;14;28;28;14;28;`})},{tag:`animate`,attributes:W(W({},i),{},{values:`1;0;1;1;0;1;`})}),e.push(a),e.push({tag:`path`,attributes:W(W({},n),{},{opacity:`1`,d:`M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z`}),children:t?[]:[{tag:`animate`,attributes:W(W({},i),{},{values:`1;0;0;0;0;1;`})}]}),t||e.push({tag:`path`,attributes:W(W({},n),{},{opacity:`0`,d:`M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z`}),children:[{tag:`animate`,attributes:W(W({},i),{},{values:`0;0;1;1;0;0;`})}]}),{tag:`g`,attributes:{class:`missing`},children:e}}}},yc={hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute(`data-fa-symbol`),r=n===null?!1:n===``?!0:n;return e.symbol=r,e}}}},bc=[Ha,Gs,Ks,qs,Js,lc,dc,pc,_c,vc,yc];Ro(bc,{mixoutsTo:qo}),qo.noAuto;var xc=qo.config;qo.library,qo.dom;var Sc=qo.parse;qo.findIconDefinition,qo.toHtml;var Cc=qo.icon;qo.layer,qo.text,qo.counter;function wc(e){return e-=0,e===e}function Tc(e){return wc(e)?e:(e=e.replace(/[_-]+(.)?/g,(e,t)=>t?t.toUpperCase():``),e.charAt(0).toLowerCase()+e.slice(1))}var Ec=(e,n)=>t.createElement(`stop`,{key:`${n}-${e.offset}`,offset:e.offset,stopColor:e.color,...e.opacity!==void 0&&{stopOpacity:e.opacity}});function Dc(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Oc=new Map,kc=1e3;function Ac(e){if(Oc.has(e))return Oc.get(e);let t={},n=0,r=e.length;for(;n<r;){let i=e.indexOf(`;`,n),a=i===-1?r:i,o=e.slice(n,a).trim();if(o){let e=o.indexOf(`:`);if(e>0){let n=o.slice(0,e).trim(),r=o.slice(e+1).trim();if(n&&r){let e=Tc(n);t[e.startsWith(`webkit`)?Dc(e):e]=r}}}n=a+1}if(Oc.size===kc){let e=Oc.keys().next().value;e&&Oc.delete(e)}return Oc.set(e,t),t}function jc(e,t,n={}){if(typeof t==`string`)return t;let r=(t.children||[]).map(t=>{let r=t;return(`fill`in n||n.gradientFill)&&t.tag===`path`&&`fill`in t.attributes&&(r={...t,attributes:{...t.attributes,fill:void 0}}),jc(e,r)}),i=t.attributes||{},a={};for(let[e,t]of Object.entries(i))switch(!0){case e===`class`:a.className=t;break;case e===`style`:a.style=Ac(String(t));break;case e.startsWith(`aria-`):case e.startsWith(`data-`):a[e.toLowerCase()]=t;break;default:a[Tc(e)]=t}let{style:o,role:s,"aria-label":c,gradientFill:l,...u}=n;if(o&&(a.style=a.style?{...a.style,...o}:o),s&&(a.role=s),c&&(a[`aria-label`]=c,a[`aria-hidden`]=`false`),l){a.fill=`url(#${l.id})`;let{type:t,stops:n=[],...i}=l;r.unshift(e(t===`linear`?`linearGradient`:`radialGradient`,{...i,id:l.id},n.map(Ec)))}return e(t.tag,{...a,...u},...r)}var Mc=jc.bind(null,t.createElement),Nc=(e,t)=>{let n=p();return e||(t?n:void 0)},Pc=class{constructor(e=`react-fontawesome`){this.enabled=!1;let t=!1;try{t=typeof process<`u`&&!1}catch{}this.scope=e,this.enabled=t}log(...e){this.enabled&&console.log(`[${this.scope}]`,...e)}warn(...e){this.enabled&&console.warn(`[${this.scope}]`,...e)}error(...e){this.enabled&&console.error(`[${this.scope}]`,...e)}};typeof process<`u`&&process.env?.FA_VERSION;var Fc=`searchPseudoElementsFullScan`in xc&&typeof xc.searchPseudoElementsFullScan==`boolean`?`7.0.0`:`6.0.0`,Ic=Number.parseInt(Fc)>=7,Lc=()=>Ic,Rc=`fa`,zc={beat:`fa-beat`,fade:`fa-fade`,beatFade:`fa-beat-fade`,bounce:`fa-bounce`,shake:`fa-shake`,spin:`fa-spin`,spinPulse:`fa-spin-pulse`,spinReverse:`fa-spin-reverse`,pulse:`fa-pulse`,flip360:`fa-flip-360`,buzz:`fa-buzz`,float:`fa-float`,jello:`fa-jello`,spinSnap:`fa-spin-snap`,spinSnap4:`fa-spin-snap-4`,spinSnap8:`fa-spin-snap-8`,swing:`fa-swing`,wag:`fa-wag`},Bc={left:`fa-pull-left`,right:`fa-pull-right`},Vc={90:`fa-rotate-90`,180:`fa-rotate-180`,270:`fa-rotate-270`},Hc={"2xs":`fa-2xs`,xs:`fa-xs`,sm:`fa-sm`,lg:`fa-lg`,xl:`fa-xl`,"2xl":`fa-2xl`,"1x":`fa-1x`,"2x":`fa-2x`,"3x":`fa-3x`,"4x":`fa-4x`,"5x":`fa-5x`,"6x":`fa-6x`,"7x":`fa-7x`,"8x":`fa-8x`,"9x":`fa-9x`,"10x":`fa-10x`},Uc={border:`fa-border`,fixedWidth:`fa-fw`,flip:`fa-flip`,flipHorizontal:`fa-flip-horizontal`,flipVertical:`fa-flip-vertical`,inverse:`fa-inverse`,rotateBy:`fa-rotate-by`,swapOpacity:`fa-swap-opacity`,widthAuto:`fa-width-auto`,canvasSquare:`fa-canvas-square`,canvasRoomy:`fa-canvas-roomy`},Wc={default:`fa-layers`};function Gc(e){let t=xc.cssPrefix||xc.familyPrefix||Rc;return t===Rc?e:e.replace(new RegExp(String.raw`(?<=^|\s)${Rc}-`,`g`),`${t}-`)}function Kc(e){let{beat:t,fade:n,beatFade:r,bounce:i,shake:a,spin:o,spinPulse:s,spinReverse:c,pulse:l,fixedWidth:u,inverse:d,border:f,flip:p,size:m,rotation:h,pull:g,swapOpacity:_,rotateBy:v,widthAuto:y,canvasSquare:b,canvasRoomy:x,flip360:S,buzz:C,float:w,jello:T,spinSnap:E,spinSnap4:D,spinSnap8:O,swing:k,wag:A,className:j}=e,M=[];if(j&&M.push(...j.split(` `)),t&&M.push(zc.beat),n&&M.push(zc.fade),r&&M.push(zc.beatFade),i&&M.push(zc.bounce),a&&M.push(zc.shake),o&&M.push(zc.spin),c&&M.push(zc.spinReverse),s&&M.push(zc.spinPulse),l&&M.push(zc.pulse),u&&M.push(Uc.fixedWidth),d&&M.push(Uc.inverse),f&&M.push(Uc.border),p===!0&&M.push(Uc.flip),(p===`horizontal`||p===`both`)&&M.push(Uc.flipHorizontal),(p===`vertical`||p===`both`)&&M.push(Uc.flipVertical),m!=null&&M.push(Hc[m]),h!=null&&h!==0&&M.push(Vc[h]),g!=null&&M.push(Bc[g]),_&&M.push(Uc.swapOpacity),!Lc())return M;v&&M.push(Uc.rotateBy),y&&M.push(Uc.widthAuto),b&&M.push(Uc.canvasSquare),x&&M.push(Uc.canvasRoomy),S&&M.push(zc.flip360),C&&M.push(zc.buzz),w&&M.push(zc.float),T&&M.push(zc.jello),E&&M.push(zc.spinSnap),D&&M.push(zc.spinSnap4),O&&M.push(zc.spinSnap8),k&&M.push(zc.swing),A&&M.push(zc.wag);let ee=xc.cssPrefix||xc.familyPrefix||Rc;return ee===Rc?M:M.map(Gc)}var qc=e=>typeof e==`object`&&`icon`in e&&!!e.icon;function Jc(e){if(e)return qc(e)?e:Sc.icon(e)}function Yc(e){return Object.keys(e)}var Xc=new Pc(`FontAwesomeIcon`),Zc={border:!1,className:``,mask:void 0,maskId:void 0,fixedWidth:!1,inverse:!1,flip:!1,icon:void 0,listItem:!1,pull:void 0,pulse:!1,rotation:void 0,rotateBy:!1,size:void 0,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:``,titleId:void 0,transform:void 0,swapOpacity:!1,widthAuto:!1,canvasSquare:!1,canvasRoomy:!1,flip360:!1,buzz:!1,float:!1,jello:!1,spinSnap:!1,spinSnap4:!1,spinSnap8:!1,swing:!1,wag:!1},Qc=new Set(Object.keys(Zc)),$c=t.forwardRef((e,t)=>{let n={...Zc,...e},{icon:r,mask:i,symbol:a,title:o,titleId:s,maskId:c,transform:l}=n,u=Nc(c,!!i),d=Nc(s,!!o),f=Jc(r);if(!f)return Xc.error(`Icon lookup is undefined`,r),null;let p=Kc(n),m=typeof l==`string`?Sc.transform(l):l,h=Jc(i),g=Cc(f,{...p.length>0&&{classes:p},...m&&{transform:m},...h&&{mask:h},symbol:a,title:o,titleId:d,maskId:u});if(!g)return Xc.error(`Could not find icon`,f),null;let{abstract:_}=g,v={ref:t};for(let e of Yc(n)){if(Qc.has(e))continue;v[e]=n[e]}return Mc(_[0],v)});$c.displayName=`FontAwesomeIcon`,`${Wc.default}${Uc.fixedWidth}`;const el=({tooltip:e,tooltipPlacement:t,isHtmlTooltip:n,tooltipTestId:r,tooltipDelay:i=500})=>e?{"data-qtip-text":e,"data-qtip-placement":t,"data-qtip-is-html":n,"data-qtip-testid":r,"data-qtip-delay":i}:void 0,tl={derivedTreeConnector:`var(--x1on9chw)`,selectedSearchItemBorder:`var(--xq2dp55)`,derivedTreeFallbackIcon:`var(--xy5i8tn)`,dataPanelSelectionBorder:`var(--xer3vhs)`,dataPanelInvalidFocusHalo:`var(--x3vo6b6)`,dataPanelUsageIcon:`var(--x1v6v65)`,dataPanelBorder:`var(--xvjy3p6)`,visualizationRangeHover:`var(--x19tjhaj)`,tablePropertyHover:`var(--x1ttbrel)`,tableAnalysisHelpText:`var(--x1gkxh1o)`,visualizationMenuChevron:`var(--x1k9414g)`,trendSummaryCopyBackground:`var(--x1e1ejx4)`,detailsMutedText:`var(--x1u47dkf)`,capsuleUncertainText:`var(--x1m5ugiq)`,propertySelectorSeparator:`var(--xi2xgo0)`,knowledgeActive:`var(--x1g9nwb3)`,knowledgeSurfaceBackground:`var(--xqnye8y)`,knowledgeToggleBackground:`var(--xd7vkzt)`,knowledgeToggleBorder:`var(--x12tkii1)`,knowledgeToggleShadow:`var(--x19icixl)`,knowledgeToggleThumbBorder:`var(--x11i9vnd)`,knowledgeToggleThumbShadow:`var(--x1iun8ij)`,knowledgeToggleCheckedBorder:`var(--x1494qbx)`,organizerValidationText:`var(--x14tarrd)`,organizerLoadingProgress:`var(--xgpr1pu)`,organizerFailedProgress:`var(--xyst49k)`,organizerDateGroupBackground:`var(--x1s0uwpv)`,organizerLegacyInputBackground:`var(--x1rzxzdu)`,organizerLegacyInputBorder:`var(--x1t6z4gz)`,organizerSelectedTemplate:`var(--xp0375j)`,organizerSelectedTemplateHover:`var(--x17o63h7)`,organizerValidSource:`var(--x113qs8g)`,organizerInvalidSource:`var(--xf92qh3)`,organizerContentSeparator:`var(--xffovsu)`,organizerSaveStatus:`var(--xg3280r)`,organizerContentMenuBackground:`var(--x1px1te2)`,organizerMarkdownPanelBorder:`var(--xeohwcv)`,organizerDashboardTriggerText:`var(--xtdronp)`,organizerDashboardTriggerHover:`var(--xdq78qq)`,organizerPreviewBackground:`var(--xrsjxzr)`,organizerTemplateBorder:`var(--xyy7vbn)`,captureSuggestionText:`var(--x1q6asko)`,headerBackground:`var(--xgafl80)`,headerBrandBackground:`var(--x1g27bzd)`,headerViewOnlyText:`var(--x74wdi9)`,workbookPrimary:`var(--x1h33yj4)`,worksheetThumbnailBorder:`var(--x1rxamrt)`,worksheetAnalysisAction:`var(--x1yrpcyd)`,worksheetTopicAction:`var(--x1jrscyn)`,worksheetBoardAction:`var(--x1l1l904)`,legacyToolsGroupBorder:`var(--xnydfdf)`,legacyToolsPrimary:`var(--xtidq40)`,legacyToolsLink:`var(--xxrwu7e)`,legacyToolsRowHover:`var(--x1g5ml2b)`,legacyToolsRowFocus:`var(--xoiatn2)`,toolsDisabledBorder:`var(--x1iuqhnh)`,toolPanelBorder:`var(--xvbkqoy)`,toolTableHeaderBorder:`var(--x1oj88j0)`,toolTableRowHover:`var(--xujr4zk)`,toolsSearchHighlight:`var(--xg767td)`,formGroupHeadingBackground:`var(--xkrzj8g)`,formulaUnselectedBackground:`var(--x1o1huai)`,formulaTypeBadgeBackground:`var(--x8ntlvv)`,legacyInfoBackground:`var(--x1wd6p52)`,legacyInfoBorder:`var(--x1bld1nu)`,statisticsDetailsBackground:`var(--x1a4guej)`,capsuleModeBackground:`var(--xy790ek)`,capsuleModeBorder:`var(--xwc67h9)`,piVisionFieldBackground:`var(--x7yzf4u)`,piVisionFieldBorder:`var(--xp8tryi)`,toolSelectedRow:`var(--x1a9sf6b)`,sampleInputBorder:`var(--x1xe6sx0)`,modelPropertyDisabled:`var(--x103bj6b)`,modelPropertyBorder:`var(--x3k0wbg)`,modelPropertyHeading:`var(--xzyv3pw)`,toolThemeLink:`var(--x100m8fh)`,toolThemeDark:`var(--x15q4owa)`,toolThemeLight:`var(--xjmvv9t)`,toolRowHover:`var(--x14tc3oa)`,templateOutputBorder:`var(--x1sxc480)`,templateBreakingBackground:`var(--xyr92g4)`,templateRestrictionError:`var(--x1mu8f5z)`,templateFindingBackground:`var(--x19jh2tg)`,agentBuilderTextColor:`var(--x1b27r7s)`,agentBuilderColorScheme:`var(--x1cinydn)`,agentBuilderDateBorder:`var(--xya71qm)`,agentBuilderDateActiveBorder:`var(--x68tpyz)`,agentBuilderDateFocusShadow:`var(--xhz3d7u)`,agentBuilderPaletteBackground:`var(--xnvt906)`,agentBuilderCardBackground:`var(--x1lt4nq1)`,agentBuilderCardHoverBackground:`var(--x1x4nfnk)`,agentBuilderCardIcon:`var(--x1rgrubx)`,agentBuilderPickerBackground:`var(--x1o08ydl)`,agentBuilderPickerBorder:`var(--xh4j2bw)`,agentBuilderPlaceholderBackground:`var(--xmhmsz2)`,agentBuilderPlaceholderHover:`var(--x8zfvxx)`,agentBuilderEdgeBackground:`var(--x1o7q96g)`,agentBuilderEdgeBorder:`var(--x1jdgyr)`,agentBuilderEdgeForeground:`var(--xciwljs)`,agentBuilderHelpHover:`var(--xprfi6z)`,agentBuilderNodeBackground:`var(--xsajygt)`,agentBuilderNodeBorder:`var(--x1mmu59m)`,agentBuilderNodeMuted:`var(--x1j6yd65)`,agentBuilderNodeText:`var(--x3j72ix)`,agentBuilderNodeMeta:`var(--x1rrkf2l)`,agentBuilderHandleLabel:`var(--x12ag7q6)`,agentBuilderBadgeBorder:`var(--x2ppicj)`,treeBuilderTabHover:`var(--x14cp583)`,treeBuilderAssistantBackground:`var(--x6nby4c)`,treeBuilderCardSelectedBackground:`var(--x1k181k0)`,timelineItemKind:`var(--x1ukkonr)`,progressSuccess:`var(--xiippi2)`,vantageActiveButtonBackground:`var(--x1qv5wb2)`,vantageActiveButtonHover:`var(--xfpb0l1)`,vantageActiveButtonPressed:`var(--x1t6mo9y)`,vantageActiveButtonBorder:`var(--x10062sr)`,vantageActiveButtonFocusBorder:`var(--x122kwz2)`,vantageActiveButtonText:`var(--x1s6ymhk)`,vantageSelectedTabIcon:`var(--x18tag7j)`,monitorActiveBackground:`var(--x1m0a8a1)`,monitorActiveText:`var(--xbhcjt6)`,monitorErrorBackground:`var(--x1nfgmo0)`,monitorErrorText:`var(--xoq5ylp)`,monitorSuppressedBackground:`var(--x7eu6ma)`,monitorSuppressedText:`var(--x1xkixeb)`,monitorInactiveBackground:`var(--x1wku2wg)`,monitorInactiveText:`var(--x1845yfb)`,monitorErrorAction:`var(--xey5wgd)`,monitorPlaceholderText:`var(--xbwwepg)`,monitorOverlayText:`var(--x1aqmw9r)`,evidenceFilterOptionHover:`var(--x1dvicqo)`,contextHintText:`var(--xzi6btn)`,suppressionDivider:`var(--xeoxfnr)`,reasonCodeRequiredText:`var(--x1mkmzo8)`,notificationFilterBorder:`var(--x1cbe8a8)`,notificationGroupBorder:`var(--x1qbkpb2)`,vantageRowHover:`var(--x1pj5yx1)`,contextLabelBackground:`var(--x178nznk)`,vantageSettingsHover:`var(--xmlm2q7)`,managementPageBackground:`var(--x9ogfp9)`,vantageWarningBackground:`var(--x1bnauru)`,vantageWarningBorder:`var(--xty1mua)`,vantageStandardBorder:`var(--x1iriv2k)`,vantageToolbarBackground:`var(--xi4ll4a)`,vantageChartWarningBackground:`var(--x1447mjt)`,vantageChartWarningText:`var(--x1h8jqqy)`,contextFlagIcon:`var(--x1rlnbc1)`,suppressionComparatorBorder:`var(--x1q02xbh)`,suppressionComparatorHover:`var(--xk3159m)`,suppressionComparatorPressed:`var(--xh01eko)`,suppressionComparatorSelectedText:`var(--x1u0f2hh)`,suppressionComparatorFocusBorder:`var(--xb9vzyb)`,suppressionComparatorSelected:`var(--x1tr9z7b)`,suppressionComparatorSelectedHover:`var(--x3pqcso)`,suppressionComparatorSelectedPressed:`var(--x1t3fzsl)`,suppressionComparatorSelectedBorder:`var(--xa9xrkn)`,suppressionComparatorSelectedHoverBorder:`var(--x1k9y569)`,suppressionComparatorSelectedPressedBorder:`var(--x14h1dsw)`,runWarningText:`var(--xfvdtaf)`,formulaAssistantError:`var(--xgfwx27)`,productionBadgeBackground:`var(--xg8d7yh)`,agentVersionMenuBorder:`var(--x52kkmm)`,agentVersionMenuBackground:`var(--x18mqvsc)`,workspaceSurface:`var(--x1ogc07e)`,workspaceBorder:`var(--x1fgjwgu)`,workspaceFrameBorder:`var(--x1gb9nk0)`,workspaceRowBorder:`var(--xpx677p)`,workspaceRowBackground:`var(--xh3gtyz)`,workspaceIcon:`var(--x1i754yw)`,workspaceDangerBackground:`var(--x1qpoizk)`,assistantPanelBorder:`var(--xb2mvhl)`,gaugeTrack:`var(--xe0qi3m)`,composerPlaceholder:`var(--xes0e8d)`,composerActionBackground:`var(--x14mxvzz)`,agentDescription:`var(--x7gztgb)`,subduedText:`var(--x3bjlya)`,effortTrack:`var(--x1n9l47y)`,effortSelected:`var(--x1r25c1t)`,effortHover:`var(--xyxv6ez)`,guidedAccent:`var(--x7js1xb)`,guidedAccentHover:`var(--x7bgt0x)`,guidedSelection:`var(--x1foq4tr)`,guidedSelectionText:`var(--x11hj5m1)`,inputBackground:`var(--x6wziv7)`,formGroupBorder:`var(--x1p7tckh)`,configurationGroupBorder:`var(--xjd0eim)`,diffAdded:`var(--xkrc4ok)`,diffRemoved:`var(--x1tx3m39)`,historyNumber:`var(--xuu40o0)`,historyNumberSelected:`var(--xpu1awn)`,historyNumberText:`var(--xn1kb5g)`,selectedFilterBackground:`var(--xhn5c79)`,readOnlyBackground:`var(--xxw3v4h)`,readOnlyBorder:`var(--xsnu80x)`,statusGood:`var(--xk54suj)`,statusProgress:`var(--xpcoyow)`,historyWarning:`var(--xstpm5k)`,popoverHeading:`var(--xz1q1lm)`,separator:`var(--x1k63mjo)`,info:`var(--xscr7c6)`,listRowAlternate:`var(--x1orq437)`,readOnlyText:`var(--x1rbxoul)`,subtleBorder:`var(--x122f8fp)`,cardBorder:`var(--xfh5vhi)`,cardHeaderBackground:`var(--xbnulac)`,sidebarBorder:`var(--x6wy6pn)`,sidebarBackground:`var(--x8i7yve)`,sidebarHover:`var(--xvmzh3u)`,sidebarSelected:`var(--x1je5gbe)`,sidebarSelectedBorder:`var(--x3tqopl)`,accent:`var(--xcthkzw)`,paginationSelected:`var(--xv44a5v)`,accentHover:`var(--xeufns5)`,accentPressed:`var(--x1fwiiwi)`,swatchBorder:`var(--x1ws0ftu)`,menuBorder:`var(--x17vpebz)`,menuText:`var(--xm8or8k)`,menuTextDisabled:`var(--x1c3ysa4)`,menuActionDisabled:`var(--xuvx1g6)`,notificationDanger:`var(--xah1r4m)`,dashboardTileBorder:`var(--x7hh52e)`,errorIconBackground:`var(--xp5rgxk)`,errorIconBorder:`var(--x6gdouz)`,assistantActionBorder:`var(--x1v5g0pd)`,assistantActionStart:`var(--x1gilj2r)`,assistantActionEnd:`var(--x14qd64p)`,assistantActionText:`var(--x1frmo2r)`,assistantActionIcon:`var(--xkqvvjt)`,overlayPanelBackground:`var(--x1bh7uq0)`,overlayPanelBorder:`var(--x1fd5fx1)`,overlayPanelShadow:`var(--xkj0eux)`,overlayPanelHighlight:`var(--x1itmj6x)`,boardTileBackground:`var(--xmne90l)`,boardTileBorder:`var(--x1qsdjlo)`,boardTileShadow:`var(--xu4cqt4)`,boardTileLoadingOverlay:`var(--x1qe8xwq)`,menuHover:`var(--x1vsr4sc)`,trackBackground:`var(--x1h1000k)`,selectionBorder:`var(--x17uq7uz)`,selectionBackground:`var(--x1v8dgp8)`,selectionText:`var(--x1g0ryz5)`,panelBorder:`var(--xpp4gys)`,panelBackground:`var(--xcz6vgl)`,black:`var(--x1il8j8j)`,mutedText:`var(--xvd09bk)`,badgeNewBackground:`var(--x1igma9f)`,badgeNewText:`var(--x1fchjee)`,badgePositiveBackground:`var(--xiaf2q8)`,badgePositiveText:`var(--xd4i6kc)`,badgePositiveLabelText:`var(--x5lifez)`,badgeNeutralBackground:`var(--x14wxm79)`,badgeErrorBackground:`var(--xzfsc5c)`,badgeNewBorder:`var(--xz5sm3y)`,badgePositiveBorder:`var(--x1waxhe3)`,badgeNeutralBorder:`var(--x1jxklyb)`,badgeErrorBorder:`var(--x734uxg)`,alertBackground:`var(--x1nb6roy)`,formulaErrorBackground:`var(--x9hbh3j)`,formulaErrorText:`var(--xll8ldf)`,formulaErrorBorder:`var(--xbnflqg)`,warningBackground:`var(--x2ka3ly)`,warningText:`var(--xwmmna3)`,toolbarHover:`var(--xzu75od)`,toolbarSelected:`var(--xhcl3lp)`,toolbarSelectedPressed:`var(--xva1xha)`,surfaceHover:`var(--x1ke12k0)`,surfaceSelected:`var(--x14c0qxq)`,surfacePressed:`var(--x1k341j3)`,navigationTextActive:`var(--xajr2vl)`,dangerHover:`var(--x4zsg9u)`,warningHover:`var(--x1utcwra)`,accentSubtle:`var(--x1fboi9w)`,accentHighlightBackground:`var(--x17jgama)`,link:`var(--xn4bgxe)`,white:`var(--x15lb3ge)`,bodyText:`var(--x1bvz1p9)`,textOnLight:`var(--x17apvey)`,tooltipBackground:`var(--xzidngj)`,segmentBorderInactive:`var(--x1863izj)`,segmentBackground:`var(--xjr4alx)`,segmentHover:`var(--x1ypuvwr)`,segmentSelected:`var(--xz64c5o)`,segmentSelectedHover:`var(--x193arbr)`,segmentBorder:`var(--x1q0jmt6)`,tabBorder:`var(--xi0fydx)`,tabHover:`var(--x72gymd)`,tabLabel:`var(--x1l8cuzk)`,tabLabelActive:`var(--xyltcfb)`,modalBackdrop:`var(--xqftmii)`,modalBorder:`var(--x1dagjc7)`,checkboxBorder:`var(--xocsh10)`,checkboxImage:`var(--xknbwwz)`,checkboxDisabledImage:`var(--xbu73kn)`,checkboxIndeterminateImage:`var(--xpodh2w)`,checkboxDisabledIndeterminateImage:`var(--xvieri1)`,textMuted:`var(--x2c4pg7)`,secondaryText:`var(--x12rbpj9)`,mutedForeground:`var(--xxe5bt8)`,supportingForeground:`var(--x1m6b9ck)`,controlHoverBackground:`var(--x1pe2rae)`,contrastForeground:`var(--x1jez451)`,secondaryBackground:`var(--x1c8bg53)`,contrastSelectedBackground:`var(--x15cwzrg)`,secondaryForeground:`var(--x1blpa30)`,surfaceSubtle:`var(--x7y4kvz)`,tableRowAlternate:`var(--x1imxq7e)`,divider:`var(--x5pbk73)`,textSubtle:`var(--x36a3zt)`,iconMuted:`var(--x1akzzq6)`,warning:`var(--x1vqr4j4)`,success:`var(--x8z506k)`,icon:`var(--x15h6w0o)`,iconForeground:`var(--xmjswtq)`,background:`var(--x13ip9or)`,fieldBackground:`var(--x5wchcd)`,backgroundDisabled:`var(--xtywrvk)`,border:`var(--x199arqb)`,borderInvalid:`var(--x1ekfkg7)`,borderDisabled:`var(--x1tz94zp)`,text:`var(--x4nhpc1)`,textDisabled:`var(--x32ga5b)`,placeholder:`var(--xi5kzck)`,itemSelectionPlaceholder:`var(--xb75v7k)`,borderHover:`var(--xqik12r)`,borderFocus:`var(--xlpbrz7)`,borderActive:`var(--xxlcm05)`,__varGroupHash__:`x1hdm7ur`},nl={base:{k3XXqK:`x1t137rt`,$$css:!0},interactive:{kkrTdU:`x1ypdohk`,$$css:!0}},rl={theme:{kMwMTN:`x190h4uq`,$$css:!0},white:{kMwMTN:`xeda06r`,$$css:!0},"dark-gray":{kMwMTN:`xp1ohcm`,$$css:!0},warning:{kMwMTN:`xt0ldj5`,$$css:!0},"darkish-gray":{kMwMTN:`x1t03eoi`,$$css:!0},gray:{kMwMTN:`x1k2oaju`,$$css:!0},color:{$$css:!0},info:{kMwMTN:`x1bc7ga3`,$$css:!0},text:{kMwMTN:`xcmjw3v`,$$css:!0},inherit:{$$css:!0},danger:{kMwMTN:`x1aijl2p`,$$css:!0},"theme-light":{kMwMTN:`x1s4dyt8`,$$css:!0},success:{kMwMTN:`x19aagk8`,$$css:!0}};function il({onClick:e,icon:t,iconPrefix:n,type:r=`theme`,extraClassNames:i,xstyle:a,id:o,large:s,small:c,size:l,color:u,testId:d,customId:f,number:p,...m}){if(r===`color`&&(u===void 0||u===``)||u&&r!==`color`){let e=u===void 0||u===``?`Icon with type="color" must have prop color specified.`:`Icon with prop color must have type="color".`;return b(`div`,{className:`x1aijl2p`,children:e})}let h=V(nl.base,rl[r],e&&nl.interactive,a),g={...h.style,...r===`color`&&u?{color:u}:{}},_=l??(c?`sm`:s?`lg`:void 0),v=H(h.className,i),y=el(m);if(typeof t!=`string`)return b($c,{icon:t,size:_,widthAuto:!0,className:v,style:g,onClick:e,"aria-label":e?m?.tooltip:void 0,"data-testid":d,"data-icon-type":r,"data-customid":f,id:o,"data-number":p,...y});let x=n||`fa-sharp fa-regular`,S=t.startsWith(`fc`)?`fc`:x,C=_?`fa-${_}`:``,w=`${S} ${t} ${C} ${v}`;return b(`i`,{className:w,style:g,onClick:e,"data-testid":d,"data-icon-type":r,"aria-label":e?m?.tooltip:void 0,"data-customid":f,id:o,"data-number":p,...y})}var al=il;const ol={base:{kB7OPa:`x9f619`,koQZXg:`x8x9d4c`,km5ZXQ:`xack27t`,kLWn49:`x1evy7pa`,k3XXqK:`x1t137rt`,kLKAdn:`x1b58sdr`,kGO01o:`xmnamis`,kE3dHu:`x79ra4s`,kpe85a:`x33uob6`,kaIpWk:`x1q4ynmn`,kzqmXN:`xh8yej3`,kVAEAm:`x1n2onr6`,ksu8eU:`x1y0btm7`,kMzoRj:`x15udo89`,kGuDYH:`xkpwil5`,k1xSpc:`x78zum5`,kXwgrk:`xdt5ytf`,kjj79g:`xl56j7k`,kGNEyG:`x6s0dn4`,$$css:!0},close:{kSGwAc:`xpvyfi4`,kkrTdU:`x1ypdohk`,kVAEAm:`x10l6tqk`,kCIrl2:`x1bnp733`,k87sOh:`x7h287w`,$$css:!0},closeText:{kMwMTN:`xcmjw3v`,$$css:!0}},sl={theme:{kWkggS:`x1s3hd1o`,kMwMTN:`x8x6yx0`,kVAM5u:`xjn1945`,$$css:!0},formulaError:{kWkggS:`x1khwhvv`,kMwMTN:`x227tgv`,kVAM5u:`x19vai2k`,kaIpWk:`x16eypsj`,$$css:!0},danger:{kWkggS:`x5tdp9u`,kMwMTN:`x1hil2k2`,kVAM5u:`xqqd531`,$$css:!0},warning:{kWkggS:`x1xg4bc`,kMwMTN:`x1lgzj2t`,kMzoRj:`xc342km`,$$css:!0},gray:{kWkggS:`x1j2g1ri`,kMwMTN:`x8x6yx0`,kVAM5u:`xmi20ts`,$$css:!0}},cl=({children:e,dismissible:t=!0,onClose:n,show:r=!0,variant:i,testId:a=`alert-id`,id:o,extraClassNames:s,xstyle:c,...l})=>{let u=V(ol.base,sl[i],c);return r?x(`div`,{"data-testid":a,id:o,...u,"data-variant":i,className:H(u.className,s),children:[e,t&&b(al,{icon:Pt,type:i.match(/danger|warning|formulaError/)?`color`:`theme`,color:i.match(/danger|warning|formulaError/)?`inherit`:void 0,xstyle:[ol.close,!!i.match(/danger|warning|gray|formulaError/)&&ol.closeText],testId:`${a}-close-btn`,onClick:n,...l})]}):b(`div`,{})},ll={base:{k1xSpc:`x3nfvp2`,kGNEyG:`x6s0dn4`,kaIpWk:`x18zih8k`,kE3dHu:`xcpk43y`,kpe85a:`x1nx2rwh`,kLKAdn:`x1nn3v0j`,kGO01o:`x1120s5i`,kGuDYH:`xgommxb`,khDVqt:`xuxw1ft`,kKX8nH:`x1k4tb9n`,$$css:!0},joined:{k1xSpc:`x3nfvp2`,kGNEyG:`x1qjc9v5`,kVQacm:`xb3r6kr`,kaIpWk:`x16eypsj`,kMzoRj:`x15udo89`,ksu8eU:`x1y0btm7`,$$css:!0},label:{k63SB2:`x1xlr1w8`,kKX8nH:`x1j61x8r`,$$css:!0},body:{kIxVMA:`x1ia1hqs`,kqGeR4:`xfrllxf`,$$css:!0}},ul={new:{kWkggS:`xyi6za0`,kMwMTN:`x1hy9b7a`,$$css:!0},preview:{kWkggS:`x9u4se7`,kMwMTN:`x1rrgm6i`,$$css:!0},success:{kWkggS:`x9u4se7`,kMwMTN:`x1rrgm6i`,$$css:!0},neutral:{kWkggS:`xf6a9ye`,kMwMTN:`xsjwgbd`,kMzoRj:`x15udo89`,ksu8eU:`x1y0btm7`,kVAM5u:`x9r1u3d`,$$css:!0},error:{kWkggS:`xh1g6j8`,kMwMTN:`x1aijl2p`,$$css:!0}},dl={new:{kWkggS:`x14jy53q`,kMwMTN:`x11mh32c`,$$css:!0},preview:{kWkggS:`x1xlf8yg`,kMwMTN:`x12o16bw`,$$css:!0},success:{kWkggS:`x1xlf8yg`,kMwMTN:`x12o16bw`,$$css:!0},neutral:{kWkggS:`xyrhqub`,kMwMTN:`xeda06r`,$$css:!0},error:{kWkggS:`x5tdp9u`,kMwMTN:`xeda06r`,$$css:!0}},fl={new:{kVAM5u:`xvmgpr6`,$$css:!0},preview:{kVAM5u:`xvfyo8r`,$$css:!0},success:{kVAM5u:`xvfyo8r`,$$css:!0},neutral:{kVAM5u:`x1q2kakz`,$$css:!0},error:{kVAM5u:`xk66f35`,$$css:!0}},pl=({children:e,variant:t=`new`,label:n,testId:r,extraClassNames:i=``,xstyle:a})=>{let o=n!=null,s=V(ll.base,ul[t],o&&ll.body,a);return o?x(`span`,{"data-testid":r,"data-variant":t,...V(ll.joined,fl[t]),children:[b(`span`,{...V(ll.base,ll.label,dl[t]),children:n}),b(`span`,{...s,className:H(s.className,i),children:e})]}):b(`span`,{...s,"data-testid":r,"data-variant":t,className:H(s.className,i),children:e})};var ml=pl;const hl={kX1K2I:`xwjwp01`,$$css:!0},gl={spinner:{kVAEAm:`x1n2onr6`,k1xSpc:`x1rg5ohu`,kUk6DE:`x3psx0u`,kzqmXN:`x100vrsf`,kZKoxP:`x1vqgdyp`,kMwMTN:`x190h4uq`,kLWn49:`xo5v014`,kXLuUW:`xxymvpz`,kaIpWk:`x16rqkct`,kKwaWg:`x4hbnts`,kX1K2I:`xbodh13`,kKVMdj:`x1aerksh`,k44tkh:`x1q3qbx4`,kyAemX:`x1esw782`,ko0y90:`xa4qsjk`,kgeoSG:`x10tli2e`,kEoFBp:`x1hmns74`,k96MEf:`x1y3wzot`,k75S9Q:`xgdch9p`,kOlAkY:`x1x7x01p`,kgzTxl:`xf3jtlm`,kLkRvE:`x15h7rrt`,kPB484:`x9msap3`,kcTAPf:`xnyzbwf`,$$css:!0},customSize:e=>[{kzqmXN:e==null?e:`x5lhr3w`,kZKoxP:e==null?e:`x16ye13r`,$$css:!0},{"--x-width":(e=>typeof e==`number`?e+`px`:e??void 0)(e),"--x-height":(e=>typeof e==`number`?e+`px`:e??void 0)(e)}],customThickness:e=>[hl,{kOlAkY:e==null?e:`x1hsxzkw`,kgzTxl:e==null?e:`x1v9n6q0`,$$css:!0},{"--x-maskImage":`radial-gradient(farthest-side, transparent calc(100% - ${e}px), black calc(100% - ${e}px + 0.5px))`==null?void 0:`radial-gradient(farthest-side, transparent calc(100% - ${e}px), black calc(100% - ${e}px + 0.5px))`,"--x-nzppn4":(e=>typeof e==`number`?e+`px`:e??void 0)(e),"--x-1whluux":(e=>typeof e==`number`?e+`px`:e??void 0)(e)}],customColor:e=>[{kMwMTN:e==null?e:`x14rh7hd`,$$css:!0},{"--x-color":e??void 0}]},_l={xs:{kzqmXN:`xsmyaan`,kZKoxP:`x1kpxq89`,kX1K2I:`xnb9ljo`,kOlAkY:`xjuy2up`,kgzTxl:`xuuc98b`,$$css:!0},sm:{kzqmXN:`x1kky2od`,kZKoxP:`xlup9mm`,kX1K2I:`xr1ufuy`,kOlAkY:`x1n405n8`,kgzTxl:`xv7f310`,$$css:!0},md:{kzqmXN:`xvy4d1p`,kZKoxP:`xxk0z11`,kX1K2I:`xb0qlen`,kOlAkY:`x1eencha`,kgzTxl:`x1k3893l`,$$css:!0},lg:{kzqmXN:`x100vrsf`,kZKoxP:`x1vqgdyp`,kX1K2I:`xbodh13`,kOlAkY:`x1x7x01p`,kgzTxl:`xf3jtlm`,$$css:!0},xl:{kzqmXN:`x1fu8urw`,kZKoxP:`x1peatla`,kX1K2I:`x1axhilb`,kOlAkY:`xaknh5y`,kgzTxl:`x17zp9gg`,$$css:!0}},vl=({id:e,customId:t,testId:n,size:r,thickness:i,color:a,extraClassNames:o,xstyle:s,style:c,ariaLabel:l,ariaHidden:u,role:d,onClick:f,title:p})=>{let m=!l&&!d&&!f,h=V(gl.spinner,typeof r==`string`&&_l[r],typeof r==`number`&&gl.customSize(r),typeof r==`number`&&gl.customThickness(Math.max(2,Math.round(r/6))),i!==void 0&&gl.customThickness(i),a?gl.customColor(a):void 0,s);return b(`div`,{id:e,"data-customid":t,"data-testid":n,"aria-hidden":u??(m?!0:void 0),"aria-label":l,role:d,title:p,className:Dt(`loading-spinner`,h.className,o),style:{...h.style,...c},onClick:f})};var yl=vl;const bl=(function(){let e,t=navigator.userAgent,n=t.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i)||[];return/trident/i.test(n[1])?(e=/\brv[ :]+(\d+)/g.exec(t)||[],`IE ${e[1]||``}`):n[1]===`Chrome`&&(e=t.match(/\b(OPR|Edge?)\/(\d+)/),e!==null)?e.slice(1).join(` `).replace(`OPR`,`Opera`).replace(`Edg `,`Edge `):(n=n[2]?[n[1],n[2]]:[navigator.appName,navigator.appVersion,`-?`],(e=t.match(/version\/(\d+)/i))!==null&&n.splice(1,1,e[1]),n.join(` `))})(),xl=bl&&bl.split(` `,2)[0];bl&&parseInt(bl.split(` `,2)[1],10);const Sl=bl&&xl===`Firefox`,Cl={streamingIcon:{kKVMdj:`xe15zz3`,k44tkh:`x1q3qbx4 xdn7m2a`,ko0y90:`xa4qsjk xg0664w`,kyAemX:`x4hg4is`,$$css:!0},base:{kB7OPa:`x9f619`,kMv6JI:`xjb2p0i`,k63SB2:`x1pd3egz`,kogj98:`x1ghz6dp`,k9WMMc:`x2b8uid`,kWkggS:`xjbqb8w`,kMzoRj:`xc342km`,ksu8eU:`x1y0btm7`,kE3dHu:`x164ht6e`,kpe85a:`x19pir32`,kaIpWk:`x1vx5ruh`,k3XXqK:`x1t137rt`,kkrTdU:`x1ypdohk`,$$css:!0},disabled:{kSiTet:`xbyyjgo`,kkrTdU:`x1h6gzvc`,$$css:!0},nativeDisabled:{kfzvcC:`x47corl`,$$css:!0},iconLeft:{km5ZXQ:`xj17ml3`,$$css:!0},iconRight:{koQZXg:`x4aigyd`,$$css:!0},iconColor:{kMwMTN:`x1heor9g`,$$css:!0}},wl={xs:{kGuDYH:`xboafo0`,kLWn49:`xl2ypbo`,kLKAdn:`xrhwvvd`,kGO01o:`xnw97ix`,$$css:!0},sm:{kGuDYH:`xkpwil5`,kLWn49:`x8r4c90`,kLKAdn:`x1iul6r4`,kGO01o:`xes99ow`,$$css:!0},lg:{kGuDYH:`x1603h9y`,kLWn49:`xladpa3`,kLKAdn:`x1iul6r4`,kGO01o:`xes99ow`,$$css:!0}},Tl={outline:{kWkggS:`xrkmy7n`,kMzoRj:`x15udo89`,kVAM5u:`x19rljk3`,kMwMTN:`xcmjw3v`,$$css:!0},theme:{kWkggS:`xu0u6m0`,kMzoRj:`x15udo89`,kVAM5u:`xjn1945`,kMwMTN:`xeda06r`,$$css:!0},"theme-light":{kWkggS:`x1x376a9`,kMzoRj:`x15udo89`,kVAM5u:`xt0mjhn`,kMwMTN:`xeda06r`,$$css:!0},danger:{kWkggS:`x5tdp9u`,kMzoRj:`x15udo89`,kVAM5u:`xqqd531`,kMwMTN:`xeda06r`,$$css:!0},warning:{kWkggS:`x14jy53q`,kMzoRj:`x15udo89`,kVAM5u:`xbxy22v`,kMwMTN:`xeda06r`,$$css:!0},"no-border":{kMwMTN:`xcmjw3v`,$$css:!0},navigation:{kMwMTN:`xcmjw3v`,$$css:!0},"navigation-selected":{kWkggS:`xrkmy7n`,kMwMTN:`x1v138wa`,$$css:!0}},El={outline:{kWkggS:`xrkmy7n x10vnkz x7z604p x176lpx6`,kVAM5u:`x19rljk3 xou0zi xvxx97q`,$$css:!0},theme:{kWkggS:`xu0u6m0 x5ar0eo x1cfzd5r x1ev14bi`,kVAM5u:`xjn1945 x1rkeuot x1s63pae x10njtxo`,$$css:!0},"theme-light":{kWkggS:`x1x376a9 xg4k83q x1cfzd5r x1ev14bi`,kVAM5u:`xt0mjhn x1j45run x1s63pae x10njtxo`,$$css:!0},danger:{kWkggS:`x5tdp9u xgg51et xbu8udh x10a0a6u`,kVAM5u:`xqqd531 xb3vrmz xl0zr31 x1qondk2`,$$css:!0},warning:{kWkggS:`x14jy53q x1hb5dtz xkrcyjn xz4jdf7`,kVAM5u:`xbxy22v xjjopnz x1uc3y9u xahy6kx`,$$css:!0},"no-border":{kWkggS:`xjbqb8w x10vnkz xhstdu2 x1qgq8df`,$$css:!0},navigation:{kWkggS:`xjbqb8w xjnwolr xc0lycw xzf14pi`,$$css:!0},"navigation-selected":{kWkggS:`xrkmy7n xjnwolr xc0lycw xzf14pi`,$$css:!0}},Dl=({onClick:e,label:t,variant:n=`outline`,type:r=`button`,size:i=`sm`,disabled:a,inProgress:o=!1,extraClassNames:s,xstyle:c,style:l,id:u,testId:d,stopPropagation:f=!0,tooltip:p,tooltipOptions:m,iconStyle:h=`text`,icon:g,iconColor:_,iconXstyle:v,iconPosition:y=`left`,iconPrefix:S,preventBlur:C=!1,isHtmlTooltip:w=!1,tooltipTestId:T,"aria-label":E,ref:D,...O})=>{let k={xs:`xs`,sm:`sm`,lg:`md`},A,j=V(Cl.base,Tl[n],wl[i],!a&&El[n],a&&Cl.disabled,a&&!p&&Cl.nativeDisabled,c);p&&(A={"data-qtip-text":p,"data-qtip-placement":m?.position,"data-qtip-is-html":w,"data-qtip-testid":T,"data-qtip-delay":m?.delay??500});let M=E??(!t&&g?p:void 0),ee=t?[y===`left`?Cl.iconLeft:Cl.iconRight,Cl.iconColor]:void 0,te=u?`${u}_spinner`:void 0,N=te??(d?`${d}_spinner`:void 0),P=o===!0||o===`loading`,ne=o===`streaming`,F=P?b(yl,{size:k[i],color:h===`color`&&_?_:`currentColor`,xstyle:t?y===`left`?Cl.iconLeft:Cl.iconRight:void 0,testId:N}):g&&b(al,{icon:g,iconPrefix:S,type:h,color:_,xstyle:[ee,ne?Cl.streamingIcon:null,v],testId:te});return x(`button`,{...O,ref:D,id:u,...A,disabled:a&&!p,"aria-disabled":a,"aria-label":M,"data-testid":d,"data-variant":n,tabIndex:a?-1:void 0,type:r===`link`||r===`submit`&&Sl?`button`:r,onClick:t=>{f&&t.stopPropagation(),a||e?.(t)},onMouseDown:e=>{C&&e.preventDefault()},className:H(j.className,s),style:{...j.style,...l},children:[y===`left`&&F,t,y===`right`&&F]})};var Ol=Dl;const kl={group:{k1xSpc:`x78zum5`,k3XXqK:`x1t137rt`,kzqmXN:`xh8yej3`,kVAEAm:`x1n2onr6`,kwnvtZ:`x1a02dak`,$$css:!0},borderlessFocus:{kMzoRj:`xc342km xcvuhk8`,$$css:!0},button:{koQZXg:`xh9i6ac`,kY2c9j:`x1swf91x x16p59gx`,k3XXqK:`x1t137rt`,kIxVMA:`x1ia1hqs x194lrnv`,kqGeR4:`xfrllxf x1x3uajq`,ksF3WI:`x1a2w583 xxkfc9v`,kYm2EN:`xjppbhk x8txd6`,$$css:!0}},Al={outline:{kWkggS:`x116jm0a`,kVAM5u:`xjn1945`,$$css:!0},theme:{kWkggS:`xvnri51`,$$css:!0},danger:{$$css:!0},"theme-light":{$$css:!0},"no-border":{kWkggS:`x116jm0a`,$$css:!0},navigation:{kWkggS:`xrkmy7n`,kMwMTN:`x1bc7ga3`,$$css:!0},"navigation-selected":{kWkggS:`xrkmy7n`,kMwMTN:`x1bc7ga3`,$$css:!0},warning:{$$css:!0}},jl={outline:{kWkggS:`x116jm0a x10vnkz x7z604p x176lpx6`,kVAM5u:`xjn1945`,$$css:!0},theme:{kWkggS:`xvnri51 x5ar0eo x1cfzd5r x1ev14bi`,$$css:!0},danger:{$$css:!0},"theme-light":{$$css:!0},"no-border":{kWkggS:`x116jm0a`,$$css:!0},navigation:{kWkggS:`xrkmy7n`,kMwMTN:`x1bc7ga3`,$$css:!0},"navigation-selected":{kWkggS:`xrkmy7n`,kMwMTN:`x1bc7ga3`,$$css:!0},warning:{$$css:!0}},Ml=e=>{let{id:t,extraClassNames:n=``,xstyle:r,testId:i,onChange:a,buttons:o,...s}=e,c=el(s),l=V(kl.group,r);return b(`div`,{id:t?`button-group-${t}`:void 0,"data-testid":i,className:H(l.className,n),style:l.style,...c,children:o.filter(Boolean).map((e,t)=>{if(e?.variant===`button`){let{isActive:n,...r}=e.buttonProps;return b(Ol,{...r,"aria-pressed":n,xstyle:[kl.button,[`no-border`,`navigation`,`navigation-selected`].includes(e.buttonProps.variant??`outline`)&&kl.borderlessFocus,n&&(e.buttonProps.disabled?Al:jl)[e.buttonProps.variant??`outline`],e.buttonProps.xstyle],onClick:()=>a&&a(e.buttonProps.value)},t)}return e?.element})})};function Nl(t){let n=e.useRef(t);return e.useEffect(()=>{n.current=t}),e.useMemo(()=>(...e)=>n.current?.(...e),[])}function Pl(t,n=globalThis?.document){let r=Nl(t);e.useEffect(()=>{let e=e=>{e.key===`Escape`&&r(e)};return n.addEventListener(`keydown`,e,{capture:!0}),()=>n.removeEventListener(`keydown`,e,{capture:!0})},[r,n])}var Fl=`DismissableLayer`,Il=`dismissableLayer.update`,Ll=`dismissableLayer.pointerDownOutside`,Rl=`dismissableLayer.focusOutside`,zl,Bl=e.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Vl=e.forwardRef((t,n)=>{let{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:o,onInteractOutside:s,onDismiss:c,...l}=t,u=e.useContext(Bl),[d,f]=e.useState(null),p=d?.ownerDocument??globalThis?.document,[,m]=e.useState({}),h=I(n,e=>f(e)),g=Array.from(u.layers),[_]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),v=g.indexOf(_),y=d?g.indexOf(d):-1,x=u.layersWithOutsidePointerEventsDisabled.size>0,S=y>=v,C=Wl(e=>{let t=e.target,n=[...u.branches].some(e=>e.contains(t));!S||n||(a?.(e),s?.(e),e.defaultPrevented||c?.())},p),w=Gl(e=>{let t=e.target,n=[...u.branches].some(e=>e.contains(t));n||(o?.(e),s?.(e),e.defaultPrevented||c?.())},p);return Pl(e=>{let t=y===u.layers.size-1;t&&(i?.(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))},p),e.useEffect(()=>{if(d)return r&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(zl=p.body.style.pointerEvents,p.body.style.pointerEvents=`none`),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),Kl(),()=>{r&&u.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=zl)}},[d,p,r,u]),e.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),Kl())},[d,u]),e.useEffect(()=>{let e=()=>m({});return document.addEventListener(Il,e),()=>document.removeEventListener(Il,e)},[]),b(B.div,{...l,ref:h,style:{pointerEvents:x?S?`auto`:`none`:void 0,...t.style},onFocusCapture:R(t.onFocusCapture,w.onFocusCapture),onBlurCapture:R(t.onBlurCapture,w.onBlurCapture),onPointerDownCapture:R(t.onPointerDownCapture,C.onPointerDownCapture)})});Vl.displayName=Fl;var Hl=`DismissableLayerBranch`,Ul=e.forwardRef((t,n)=>{let r=e.useContext(Bl),i=e.useRef(null),a=I(n,i);return e.useEffect(()=>{let e=i.current;if(e)return r.branches.add(e),()=>{r.branches.delete(e)}},[r.branches]),b(B.div,{...t,ref:a})});Ul.displayName=Hl;function Wl(t,n=globalThis?.document){let r=Nl(t),i=e.useRef(!1),a=e.useRef(()=>{});return e.useEffect(()=>{let e=e=>{if(e.target&&!i.current){let t=function(){ql(Ll,r,i,{discrete:!0})},i={originalEvent:e};e.pointerType===`touch`?(n.removeEventListener(`click`,a.current),a.current=t,n.addEventListener(`click`,a.current,{once:!0})):t()}else n.removeEventListener(`click`,a.current);i.current=!1},t=window.setTimeout(()=>{n.addEventListener(`pointerdown`,e)},0);return()=>{window.clearTimeout(t),n.removeEventListener(`pointerdown`,e),n.removeEventListener(`click`,a.current)}},[n,r]),{onPointerDownCapture:()=>i.current=!0}}function Gl(t,n=globalThis?.document){let r=Nl(t),i=e.useRef(!1);return e.useEffect(()=>{let e=e=>{if(e.target&&!i.current){let t={originalEvent:e};ql(Rl,r,t,{discrete:!1})}};return n.addEventListener(`focusin`,e),()=>n.removeEventListener(`focusin`,e)},[n,r]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}function Kl(){let e=new CustomEvent(Il);document.dispatchEvent(e)}function ql(e,t,n,{discrete:r}){let i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?_e(i,a):i.dispatchEvent(a)}var Jl=0;function Yl(){e.useEffect(()=>{let e=document.querySelectorAll(`[data-radix-focus-guard]`);return document.body.insertAdjacentElement(`afterbegin`,e[0]??Xl()),document.body.insertAdjacentElement(`beforeend`,e[1]??Xl()),Jl++,()=>{Jl===1&&document.querySelectorAll(`[data-radix-focus-guard]`).forEach(e=>e.remove()),Jl--}},[])}function Xl(){let e=document.createElement(`span`);return e.setAttribute(`data-radix-focus-guard`,``),e.tabIndex=0,e.style.outline=`none`,e.style.opacity=`0`,e.style.position=`fixed`,e.style.pointerEvents=`none`,e}var Zl=`focusScope.autoFocusOnMount`,Ql=`focusScope.autoFocusOnUnmount`,$l={bubbles:!1,cancelable:!0},eu=`FocusScope`,tu=e.forwardRef((t,n)=>{let{loop:r=!1,trapped:i=!1,onMountAutoFocus:a,onUnmountAutoFocus:o,...s}=t,[c,l]=e.useState(null),u=Nl(a),d=Nl(o),f=e.useRef(null),p=I(n,e=>l(e)),m=e.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;e.useEffect(()=>{if(i){let e=function(e){if(m.paused||!c)return;let t=e.target;c.contains(t)?f.current=t:cu(f.current,{select:!0})},t=function(e){if(m.paused||!c)return;let t=e.relatedTarget;t!==null&&(c.contains(t)||cu(f.current,{select:!0}))},n=function(e){let t=document.activeElement;if(t===document.body)for(let t of e)t.removedNodes.length>0&&cu(c)};document.addEventListener(`focusin`,e),document.addEventListener(`focusout`,t);let r=new MutationObserver(n);return c&&r.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener(`focusin`,e),document.removeEventListener(`focusout`,t),r.disconnect()}}},[i,c,m.paused]),e.useEffect(()=>{if(c){lu.add(m);let e=document.activeElement,t=c.contains(e);if(!t){let t=new CustomEvent(Zl,$l);c.addEventListener(Zl,u),c.dispatchEvent(t),t.defaultPrevented||(nu(fu(iu(c)),{select:!0}),document.activeElement===e&&cu(c))}return()=>{c.removeEventListener(Zl,u),setTimeout(()=>{let t=new CustomEvent(Ql,$l);c.addEventListener(Ql,d),c.dispatchEvent(t),t.defaultPrevented||cu(e??document.body,{select:!0}),c.removeEventListener(Ql,d),lu.remove(m)},0)}}},[c,u,d,m]);let h=e.useCallback(e=>{if(!r&&!i||m.paused)return;let t=e.key===`Tab`&&!e.altKey&&!e.ctrlKey&&!e.metaKey,n=document.activeElement;if(t&&n){let t=e.currentTarget,[i,a]=ru(t),o=i&&a;o?!e.shiftKey&&n===a?(e.preventDefault(),r&&cu(i,{select:!0})):e.shiftKey&&n===i&&(e.preventDefault(),r&&cu(a,{select:!0})):n===t&&e.preventDefault()}},[r,i,m.paused]);return b(B.div,{tabIndex:-1,...s,ref:p,onKeyDown:h})});tu.displayName=eu;function nu(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(cu(r,{select:t}),document.activeElement!==n)return}function ru(e){let t=iu(e),n=au(t,e),r=au(t.reverse(),e);return[n,r]}function iu(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t=e.tagName===`INPUT`&&e.type===`hidden`;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function au(e,t){for(let n of e)if(!ou(n,{upTo:t}))return n}function ou(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 su(e){return e instanceof HTMLInputElement&&`select`in e}function cu(e,{select:t=!1}={}){if(e&&e.focus){let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&su(e)&&t&&e.select()}}var lu=uu();function uu(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),e=du(e,t),e.unshift(t)},remove(t){e=du(e,t),e[0]?.resume()}}}function du(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function fu(e){return e.filter(e=>e.tagName!==`A`)}const pu=[`top`,`right`,`bottom`,`left`],mu=Math.min,hu=Math.max,gu=Math.round,_u=Math.floor,vu=e=>({x:e,y:e}),yu={left:`right`,right:`left`,bottom:`top`,top:`bottom`},bu={start:`end`,end:`start`};function xu(e,t,n){return hu(e,mu(t,n))}function Su(e,t){return typeof e==`function`?e(t):e}function Cu(e){return e.split(`-`)[0]}function wu(e){return e.split(`-`)[1]}function Tu(e){return e===`x`?`y`:`x`}function Eu(e){return e===`y`?`height`:`width`}const Du=new Set([`top`,`bottom`]);function Ou(e){return Du.has(Cu(e))?`y`:`x`}function ku(e){return Tu(Ou(e))}function Au(e,t,n){n===void 0&&(n=!1);let r=wu(e),i=ku(e),a=Eu(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=zu(o)),[o,zu(o)]}function ju(e){let t=zu(e);return[Mu(e),t,Mu(t)]}function Mu(e){return e.replace(/start|end/g,e=>bu[e])}const Nu=[`left`,`right`],Pu=[`right`,`left`],Fu=[`top`,`bottom`],Iu=[`bottom`,`top`];function Lu(e,t,n){switch(e){case`top`:case`bottom`:return n?t?Pu:Nu:t?Nu:Pu;case`left`:case`right`:return t?Fu:Iu;default:return[]}}function Ru(e,t,n,r){let i=wu(e),a=Lu(Cu(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(Mu)))),a}function zu(e){return e.replace(/left|right|bottom|top/g,e=>yu[e])}function Bu(e){return{top:0,right:0,bottom:0,left:0,...e}}function Vu(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:Bu(e)}function Hu(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function Uu(e,t,n){let{reference:r,floating:i}=e,a=Ou(t),o=ku(t),s=Eu(o),c=Cu(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}switch(wu(t)){case`start`:p[o]-=f*(n&&l?-1:1);break;case`end`:p[o]+=f*(n&&l?-1:1);break}return p}const Wu=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=a.filter(Boolean),c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=Uu(l,r,c),f=r,p={},m=0;for(let n=0;n<s.length;n++){let{name:a,fn:h}=s[n],{x:g,y:_,data:v,reset:y}=await h({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:p,rects:l,platform:o,elements:{reference:e,floating:t}});u=g??u,d=_??d,p={...p,[a]:{...p[a],...v}},y&&m<=50&&(m++,typeof y==`object`&&(y.placement&&(f=y.placement),y.rects&&(l=y.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):y.rects),{x:u,y:d}=Uu(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:p}};async function Gu(e,t){var n;t===void 0&&(t={});let{x:r,y:i,platform:a,rects:o,elements:s,strategy:c}=e,{boundary:l=`clippingAncestors`,rootBoundary:u=`viewport`,elementContext:d=`floating`,altBoundary:f=!1,padding:p=0}=Su(t,e),m=Vu(p),h=d===`floating`?`reference`:`floating`,g=s[f?h:d],_=Hu(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(g)))??!0?g:g.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(s.floating)),boundary:l,rootBoundary:u,strategy:c})),v=d===`floating`?{x:r,y:i,width:o.floating.width,height:o.floating.height}:o.reference,y=await(a.getOffsetParent==null?void 0:a.getOffsetParent(s.floating)),b=await(a.isElement==null?void 0:a.isElement(y))&&await(a.getScale==null?void 0:a.getScale(y))||{x:1,y:1},x=Hu(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:v,offsetParent:y,strategy:c}):v);return{top:(_.top-x.top+m.top)/b.y,bottom:(x.bottom-_.bottom+m.bottom)/b.y,left:(_.left-x.left+m.left)/b.x,right:(x.right-_.right+m.right)/b.x}}const Ku=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=Su(e,t)||{};if(l==null)return{};let d=Vu(u),f={x:n,y:r},p=ku(i),m=Eu(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;(!C||!await(o.isElement==null?void 0:o.isElement(S)))&&(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,E=mu(d[_],T),D=mu(d[v],T),O=E,k=C-h[m]-D,A=C/2-h[m]/2+w,j=xu(O,A,k),M=!c.arrow&&wu(i)!=null&&A!==j&&a.reference[m]/2-(A<O?E:D)-h[m]/2<0,ee=M?A<O?A-O:A-k:0;return{[p]:f[p]+ee,data:{[p]:j,centerOffset:A-j-ee,...M&&{alignmentOffset:ee}},reset:M}}}),qu=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n,r;let{placement:i,middlewareData:a,rects:o,initialPlacement:s,platform:c,elements:l}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p=`bestFit`,fallbackAxisSideDirection:m=`none`,flipAlignment:h=!0,...g}=Su(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};let _=Cu(i),v=Ou(s),y=Cu(s)===s,b=await(c.isRTL==null?void 0:c.isRTL(l.floating)),x=f||(y||!h?[zu(s)]:ju(s)),S=m!==`none`;!f&&S&&x.push(...Ru(s,h,m,b));let C=[s,...x],w=await Gu(t,g),T=[],E=(r=a.flip)?.overflows||[];if(u&&T.push(w[_]),d){let e=Au(i,o,b);T.push(w[e[0]],w[e[1]])}if(E=[...E,{placement:i,overflows:T}],!T.every(e=>e<=0)){var D,O;let e=((D=a.flip)?.index||0)+1,t=C[e];if(t){let n=d===`alignment`?v!==Ou(t):!1;if(!n||E.every(e=>Ou(e.placement)===v?e.overflows[0]>0:!0))return{data:{index:e,overflows:E},reset:{placement:t}}}let n=(O=E.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?.placement;if(!n)switch(p){case`bestFit`:{var k;let e=(k=E.filter(e=>{if(S){let t=Ou(e.placement);return t===v||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?.[0];e&&(n=e);break}case`initialPlacement`:n=s;break}if(i!==n)return{reset:{placement:n}}}return{}}}};function Ju(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Yu(e){return pu.some(t=>e[t]>=0)}const Xu=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n}=t,{strategy:r=`referenceHidden`,...i}=Su(e,t);switch(r){case`referenceHidden`:{let e=await Gu(t,{...i,elementContext:`reference`}),r=Ju(e,n.reference);return{data:{referenceHiddenOffsets:r,referenceHidden:Yu(r)}}}case`escaped`:{let e=await Gu(t,{...i,altBoundary:!0}),r=Ju(e,n.floating);return{data:{escapedOffsets:r,escaped:Yu(r)}}}default:return{}}}}},Zu=new Set([`left`,`top`]);async function Qu(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=Cu(n),s=wu(n),c=Ou(n)===`y`,l=Zu.has(o)?-1:1,u=a&&c?-1:1,d=Su(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}const $u=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n,r;let{x:i,y:a,placement:o,middlewareData:s}=t,c=await Qu(t,e);return o===(n=s.offset)?.placement&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:i+c.x,y:a+c.y,data:{...c,placement:o}}}}},ed=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i}=t,{mainAxis:a=!0,crossAxis:o=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=Su(e,t),l={x:n,y:r},u=await Gu(t,c),d=Ou(Cu(i)),f=Tu(d),p=l[f],m=l[d];if(a){let e=f===`y`?`top`:`left`,t=f===`y`?`bottom`:`right`,n=p+u[e],r=p-u[t];p=xu(n,p,r)}if(o){let e=d===`y`?`top`:`left`,t=d===`y`?`bottom`:`right`,n=m+u[e],r=m-u[t];m=xu(n,m,r)}let h=s.fn({...t,[f]:p,[d]:m});return{...h,data:{x:h.x-n,y:h.y-r,enabled:{[f]:a,[d]:o}}}}}},td=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=Su(e,t),u={x:n,y:r},d=Ou(i),f=Tu(d),p=u[f],m=u[d],h=Su(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){var _,v;let e=f===`y`?`width`:`height`,t=Zu.has(Cu(i)),n=a.reference[d]-a.floating[e]+(t&&(_=o.offset)?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:(v=o.offset)?.[d]||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},nd=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){var n,r;let{placement:i,rects:a,platform:o,elements:s}=t,{apply:c=()=>{},...l}=Su(e,t),u=await Gu(t,l),d=Cu(i),f=wu(i),p=Ou(i)===`y`,{width:m,height:h}=a.floating,g,_;d===`top`||d===`bottom`?(g=d,_=f===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?`start`:`end`)?`left`:`right`):(_=d,g=f===`end`?`top`:`bottom`);let v=h-u.top-u.bottom,y=m-u.left-u.right,b=mu(h-u[g],v),x=mu(m-u[_],y),S=!t.middlewareData.shift,C=b,w=x;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(w=y),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(C=v),S&&!f){let e=hu(u.left,0),t=hu(u.right,0),n=hu(u.top,0),r=hu(u.bottom,0);p?w=m-2*(e!==0||t!==0?e+t:hu(u.left,u.right)):C=h-2*(n!==0||r!==0?n+r:hu(u.top,u.bottom))}await c({...t,availableWidth:w,availableHeight:C});let T=await o.getDimensions(s.floating);return m!==T.width||h!==T.height?{reset:{rects:!0}}:{}}}};function rd(){return typeof window<`u`}function id(e){return sd(e)?(e.nodeName||``).toLowerCase():`#document`}function ad(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function od(e){var t;return(t=(sd(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function sd(e){return rd()?e instanceof Node||e instanceof ad(e).Node:!1}function cd(e){return rd()?e instanceof Element||e instanceof ad(e).Element:!1}function ld(e){return rd()?e instanceof HTMLElement||e instanceof ad(e).HTMLElement:!1}function ud(e){return!rd()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof ad(e).ShadowRoot}const dd=new Set([`inline`,`contents`]);function fd(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=Td(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!dd.has(i)}const pd=new Set([`table`,`td`,`th`]);function md(e){return pd.has(id(e))}const hd=[`:popover-open`,`:modal`];function gd(e){return hd.some(t=>{try{return e.matches(t)}catch{return!1}})}const _d=[`transform`,`translate`,`scale`,`rotate`,`perspective`],vd=[`transform`,`translate`,`scale`,`rotate`,`perspective`,`filter`],yd=[`paint`,`layout`,`strict`,`content`];function bd(e){let t=Sd(),n=cd(e)?Td(e):e;return _d.some(e=>n[e]?n[e]!==`none`:!1)||(n.containerType?n.containerType!==`normal`:!1)||!t&&(n.backdropFilter?n.backdropFilter!==`none`:!1)||!t&&(n.filter?n.filter!==`none`:!1)||vd.some(e=>(n.willChange||``).includes(e))||yd.some(e=>(n.contain||``).includes(e))}function xd(e){let t=Dd(e);for(;ld(t)&&!wd(t);){if(bd(t))return t;if(gd(t))return null;t=Dd(t)}return null}function Sd(){return typeof CSS>`u`||!CSS.supports?!1:CSS.supports(`-webkit-backdrop-filter`,`none`)}const Cd=new Set([`html`,`body`,`#document`]);function wd(e){return Cd.has(id(e))}function Td(e){return ad(e).getComputedStyle(e)}function Ed(e){return cd(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Dd(e){if(id(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||ud(e)&&e.host||od(e);return ud(t)?t.host:t}function Od(e){let t=Dd(e);return wd(t)?e.ownerDocument?e.ownerDocument.body:e.body:ld(t)&&fd(t)?t:Od(t)}function kd(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);let i=Od(e),a=i===(r=e.ownerDocument)?.body,o=ad(i);if(a){let e=Ad(o);return t.concat(o,o.visualViewport||[],fd(i)?i:[],e&&n?kd(e):[])}return t.concat(i,kd(i,[],n))}function Ad(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function jd(e){let t=Td(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=ld(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=gu(n)!==a||gu(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function Md(e){return cd(e)?e:e.contextElement}function Nd(e){let t=Md(e);if(!ld(t))return vu(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=jd(t),o=(a?gu(n.width):n.width)/r,s=(a?gu(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}const Pd=vu(0);function Fd(e){let t=ad(e);return!Sd()||!t.visualViewport?Pd:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Id(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ad(e)?!1:t}function Ld(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=Md(e),o=vu(1);t&&(r?cd(r)&&(o=Nd(r)):o=Nd(e));let s=Id(a,n,r)?Fd(a):vu(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a){let e=ad(a),t=r&&cd(r)?ad(r):r,n=e,i=Ad(n);for(;i&&r&&t!==n;){let e=Nd(i),t=i.getBoundingClientRect(),r=Td(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=ad(i),i=Ad(n)}}return Hu({width:u,height:d,x:c,y:l})}function Rd(e,t){let n=Ed(e).scrollLeft;return t?t.left+n:Ld(od(e)).left+n}function zd(e,t){let n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Rd(e,n),i=n.top+t.scrollTop;return{x:r,y:i}}function Bd(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=od(r),s=t?gd(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=vu(1),u=vu(0),d=ld(r);if((d||!d&&!a)&&((id(r)!==`body`||fd(o))&&(c=Ed(r)),ld(r))){let e=Ld(r);l=Nd(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?zd(o,c):vu(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function Vd(e){return Array.from(e.getClientRects())}function Hd(e){let t=od(e),n=Ed(e),r=e.ownerDocument.body,i=hu(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=hu(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+Rd(e),s=-n.scrollTop;return Td(r).direction===`rtl`&&(o+=hu(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}function Ud(e,t){let n=ad(e),r=od(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=Sd();(!e||e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}let l=Rd(r);if(l<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(r.clientWidth-t.clientWidth-i);o<=25&&(a-=o)}else l<=25&&(a+=l);return{width:a,height:o,x:s,y:c}}const Wd=new Set([`absolute`,`fixed`]);function Gd(e,t){let n=Ld(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=ld(e)?Nd(e):vu(1),o=e.clientWidth*a.x,s=e.clientHeight*a.y,c=i*a.x,l=r*a.y;return{width:o,height:s,x:c,y:l}}function Kd(e,t,n){let r;if(t===`viewport`)r=Ud(e,n);else if(t===`document`)r=Hd(od(e));else if(cd(t))r=Gd(t,n);else{let n=Fd(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Hu(r)}function qd(e,t){let n=Dd(e);return n===t||!cd(n)||wd(n)?!1:Td(n).position===`fixed`||qd(n,t)}function Jd(e,t){let n=t.get(e);if(n)return n;let r=kd(e,[],!1).filter(e=>cd(e)&&id(e)!==`body`),i=null,a=Td(e).position===`fixed`,o=a?Dd(e):e;for(;cd(o)&&!wd(o);){let t=Td(o),n=bd(o);!n&&t.position===`fixed`&&(i=null);let s=a?!n&&!i:!n&&t.position===`static`&&!!i&&Wd.has(i.position)||fd(o)&&!n&&qd(e,o);s?r=r.filter(e=>e!==o):i=t,o=Dd(o)}return t.set(e,r),r}function Yd(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=n===`clippingAncestors`?gd(t)?[]:Jd(t,this._c):[].concat(n),o=[...a,r],s=o[0],c=o.reduce((e,n)=>{let r=Kd(t,n,i);return e.top=hu(r.top,e.top),e.right=mu(r.right,e.right),e.bottom=mu(r.bottom,e.bottom),e.left=hu(r.left,e.left),e},Kd(t,s,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Xd(e){let{width:t,height:n}=jd(e);return{width:t,height:n}}function Zd(e,t,n){let r=ld(t),i=od(t),a=n===`fixed`,o=Ld(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=vu(0);function l(){c.x=Rd(i)}if(r||!r&&!a)if((id(t)!==`body`||fd(i))&&(s=Ed(t)),r){let e=Ld(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else i&&l();a&&!r&&i&&l();let u=i&&!r&&!a?zd(i,s):vu(0),d=o.left+s.scrollLeft-c.x-u.x,f=o.top+s.scrollTop-c.y-u.y;return{x:d,y:f,width:o.width,height:o.height}}function Qd(e){return Td(e).position===`static`}function $d(e,t){if(!ld(e)||Td(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return od(e)===n&&(n=n.ownerDocument.body),n}function ef(e,t){let n=ad(e);if(gd(e))return n;if(!ld(e)){let t=Dd(e);for(;t&&!wd(t);){if(cd(t)&&!Qd(t))return t;t=Dd(t)}return n}let r=$d(e,t);for(;r&&md(r)&&Qd(r);)r=$d(r,t);return r&&wd(r)&&Qd(r)&&!bd(r)?n:r||xd(e)||n}const tf=async function(e){let t=this.getOffsetParent||ef,n=this.getDimensions,r=await n(e.floating);return{reference:Zd(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function nf(e){return Td(e).direction===`rtl`}const rf={convertOffsetParentRelativeRectToViewportRelativeRect:Bd,getDocumentElement:od,getClippingRect:Yd,getOffsetParent:ef,getElementRects:tf,getClientRects:Vd,getDimensions:Xd,getScale:Nd,isElement:cd,isRTL:nf};function af(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function sf(e,t){let n=null,r,i=od(e);function a(){var e;clearTimeout(r),(e=n)==null||e.disconnect(),n=null}function o(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),a();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(s||t(),!f||!p)return;let m=_u(d),h=_u(i.clientWidth-(u+f)),g=_u(i.clientHeight-(d+p)),_=_u(u),v=-m+`px `+-h+`px `+-g+`px `+-_+`px`,y={rootMargin:v,threshold:hu(0,mu(1,c))||1},b=!0;function x(t){let n=t[0].intersectionRatio;if(n!==c){if(!b)return o();n?o(!1,n):r=setTimeout(()=>{o(!1,1e-7)},1e3)}n===1&&!af(l,e.getBoundingClientRect())&&o(),b=!1}try{n=new IntersectionObserver(x,{...y,root:i.ownerDocument})}catch{n=new IntersectionObserver(x,y)}n.observe(e)}return o(!0),a}function cf(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=Md(e),u=i||a?[...l?kd(l):[],...kd(t)]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n,{passive:!0}),a&&e.addEventListener(`resize`,n)});let d=l&&s?sf(l,n):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),p.observe(t));let m,h=c?Ld(e):null;c&&g();function g(){let t=Ld(e);h&&!af(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}const lf=$u,uf=ed,df=qu,ff=nd,pf=Xu,mf=Ku,hf=td,gf=(e,t,n)=>{let r=new Map,i={platform:rf,...n},a={...i.platform,_c:r};return Wu(e,t,{...i,platform:a})};var _f=typeof document<`u`,vf=function(){},yf=_f?h:vf;function bf(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==`function`&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!bf(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!bf(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function xf(e){if(typeof window>`u`)return 1;let t=e.ownerDocument.defaultView||window;return t.devicePixelRatio||1}function Sf(e,t){let n=xf(e);return Math.round(t*n)/n}function Cf(t){let n=e.useRef(t);return yf(()=>{n.current=t}),n}function wf(t){t===void 0&&(t={});let{placement:n=`bottom`,strategy:r=`absolute`,middleware:i=[],platform:a,elements:{reference:o,floating:s}={},transform:c=!0,whileElementsMounted:l,open:u}=t,[d,f]=e.useState({x:0,y:0,strategy:r,placement:n,middlewareData:{},isPositioned:!1}),[p,m]=e.useState(i);bf(p,i)||m(i);let[h,g]=e.useState(null),[_,v]=e.useState(null),y=e.useCallback(e=>{e!==w.current&&(w.current=e,g(e))},[]),b=e.useCallback(e=>{e!==T.current&&(T.current=e,v(e))},[]),x=o||h,C=s||_,w=e.useRef(null),T=e.useRef(null),E=e.useRef(d),D=l!=null,O=Cf(l),k=Cf(a),A=Cf(u),j=e.useCallback(()=>{if(!w.current||!T.current)return;let e={placement:n,strategy:r,middleware:p};k.current&&(e.platform=k.current),gf(w.current,T.current,e).then(e=>{let t={...e,isPositioned:A.current!==!1};M.current&&!bf(E.current,t)&&(E.current=t,S.flushSync(()=>{f(t)}))})},[p,n,r,k,A]);yf(()=>{u===!1&&E.current.isPositioned&&(E.current.isPositioned=!1,f(e=>({...e,isPositioned:!1})))},[u]);let M=e.useRef(!1);yf(()=>(M.current=!0,()=>{M.current=!1}),[]),yf(()=>{if(x&&(w.current=x),C&&(T.current=C),x&&C){if(O.current)return O.current(x,C,j);j()}},[x,C,j,O,D]);let ee=e.useMemo(()=>({reference:w,floating:T,setReference:y,setFloating:b}),[y,b]),te=e.useMemo(()=>({reference:x,floating:C}),[x,C]),N=e.useMemo(()=>{let e={position:r,left:0,top:0};if(!te.floating)return e;let t=Sf(te.floating,d.x),n=Sf(te.floating,d.y);return c?{...e,transform:`translate(`+t+`px, `+n+`px)`,...xf(te.floating)>=1.5&&{willChange:`transform`}}:{position:r,left:t,top:n}},[r,c,te.floating,d.x,d.y]);return e.useMemo(()=>({...d,update:j,refs:ee,elements:te,floatingStyles:N}),[d,j,ee,te,N])}const Tf=e=>{function t(e){return{}.hasOwnProperty.call(e,`current`)}return{name:`arrow`,options:e,fn(n){let{element:r,padding:i}=typeof e==`function`?e(n):e;return r&&t(r)?r.current==null?{}:mf({element:r.current,padding:i}).fn(n):r?mf({element:r,padding:i}).fn(n):{}}}},Ef=(e,t)=>({...lf(e),options:[e,t]}),Df=(e,t)=>({...uf(e),options:[e,t]}),Of=(e,t)=>({...hf(e),options:[e,t]}),kf=(e,t)=>({...df(e),options:[e,t]}),Af=(e,t)=>({...ff(e),options:[e,t]}),jf=(e,t)=>({...pf(e),options:[e,t]}),Mf=(e,t)=>({...Tf(e),options:[e,t]});var Nf=`Arrow`,Pf=e.forwardRef((e,t)=>{let{children:n,width:r=10,height:i=5,...a}=e;return b(B.svg,{...a,ref:t,width:r,height:i,viewBox:`0 0 30 10`,preserveAspectRatio:`none`,children:e.asChild?n:b(`polygon`,{points:`0,0 30,0 15,10`})})});Pf.displayName=Nf;var Ff=Pf;function If(t){let[n,r]=e.useState(void 0);return z(()=>{if(t){r({width:t.offsetWidth,height:t.offsetHeight});let e=new ResizeObserver(e=>{if(!Array.isArray(e)||!e.length)return;let n=e[0],i,a;if(`borderBoxSize`in n){let e=n.borderBoxSize,t=Array.isArray(e)?e[0]:e;i=t.inlineSize,a=t.blockSize}else i=t.offsetWidth,a=t.offsetHeight;r({width:i,height:a})});return e.observe(t,{box:`border-box`}),()=>e.unobserve(t)}else r(void 0)},[t]),n}var Lf=`Popper`,[Rf,zf]=F(Lf),[Bf,Vf]=Rf(Lf),Hf=t=>{let{__scopePopper:n,children:r}=t,[i,a]=e.useState(null);return b(Bf,{scope:n,anchor:i,onAnchorChange:a,children:r})};Hf.displayName=Lf;var Uf=`PopperAnchor`,Wf=e.forwardRef((t,n)=>{let{__scopePopper:r,virtualRef:i,...a}=t,o=Vf(Uf,r),s=e.useRef(null),c=I(n,s),l=e.useRef(null);return e.useEffect(()=>{let e=l.current;l.current=i?.current||s.current,e!==l.current&&o.onAnchorChange(l.current)}),i?null:b(B.div,{...a,ref:c})});Wf.displayName=Uf;var Gf=`PopperContent`,[Kf,qf]=Rf(Gf),Jf=e.forwardRef((t,n)=>{let{__scopePopper:r,side:i=`bottom`,sideOffset:a=0,align:o=`center`,alignOffset:s=0,arrowPadding:c=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:f=`partial`,hideWhenDetached:p=!1,updatePositionStrategy:m=`optimized`,onPlaced:h,...g}=t,_=Vf(Gf,r),[v,y]=e.useState(null),x=I(n,e=>y(e)),[S,C]=e.useState(null),w=If(S),T=w?.width??0,E=w?.height??0,D=i+(o===`center`?``:`-`+o),O=typeof d==`number`?d:{top:0,right:0,bottom:0,left:0,...d},k=Array.isArray(u)?u:[u],A=k.length>0,j={padding:O,boundary:k.filter(Qf),altBoundary:A},{refs:M,floatingStyles:ee,placement:te,isPositioned:N,middlewareData:P}=wf({strategy:`fixed`,placement:D,whileElementsMounted:(...e)=>{let t=cf(...e,{animationFrame:m===`always`});return t},elements:{reference:_.anchor},middleware:[Ef({mainAxis:a+E,alignmentAxis:s}),l&&Df({mainAxis:!0,crossAxis:!1,limiter:f===`partial`?Of():void 0,...j}),l&&kf({...j}),Af({...j,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:a}=t.reference,o=e.floating.style;o.setProperty(`--radix-popper-available-width`,`${n}px`),o.setProperty(`--radix-popper-available-height`,`${r}px`),o.setProperty(`--radix-popper-anchor-width`,`${i}px`),o.setProperty(`--radix-popper-anchor-height`,`${a}px`)}}),S&&Mf({element:S,padding:c}),$f({arrowWidth:T,arrowHeight:E}),p&&jf({strategy:`referenceHidden`,...j})]}),[ne,F]=ep(te),re=Nl(h);z(()=>{N&&re?.()},[N,re]);let ie=P.arrow?.x,ae=P.arrow?.y,oe=P.arrow?.centerOffset!==0,[se,ce]=e.useState();return z(()=>{v&&ce(window.getComputedStyle(v).zIndex)},[v]),b(`div`,{ref:M.setFloating,"data-radix-popper-content-wrapper":``,style:{...ee,transform:N?ee.transform:`translate(0, -200%)`,minWidth:`max-content`,zIndex:se,"--radix-popper-transform-origin":[P.transformOrigin?.x,P.transformOrigin?.y].join(` `),...P.hide?.referenceHidden&&{visibility:`hidden`,pointerEvents:`none`}},dir:t.dir,children:b(Kf,{scope:r,placedSide:ne,onArrowChange:C,arrowX:ie,arrowY:ae,shouldHideArrow:oe,children:b(B.div,{"data-side":ne,"data-align":F,...g,ref:x,style:{...g.style,animation:N?void 0:`none`}})})})});Jf.displayName=Gf;var Yf=`PopperArrow`,Xf={top:`bottom`,right:`left`,bottom:`top`,left:`right`},Zf=e.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,i=qf(Yf,n),a=Xf[i.placedSide];return b(`span`,{ref:i.onArrowChange,style:{position:`absolute`,left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:``,right:`0 0`,bottom:`center 0`,left:`100% 0`}[i.placedSide],transform:{top:`translateY(100%)`,right:`translateY(50%) rotate(90deg) translateX(-50%)`,bottom:`rotate(180deg)`,left:`translateY(50%) rotate(-90deg) translateX(50%)`}[i.placedSide],visibility:i.shouldHideArrow?`hidden`:void 0},children:b(Ff,{...r,ref:t,style:{...r.style,display:`block`}})})});Zf.displayName=Yf;function Qf(e){return e!==null}var $f=e=>({name:`transformOrigin`,options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,a=i.arrow?.centerOffset!==0,o=a,s=o?0:e.arrowWidth,c=o?0:e.arrowHeight,[l,u]=ep(n),d={start:`0%`,center:`50%`,end:`100%`}[u],f=(i.arrow?.x??0)+s/2,p=(i.arrow?.y??0)+c/2,m=``,h=``;return l===`bottom`?(m=o?d:`${f}px`,h=`${-c}px`):l===`top`?(m=o?d:`${f}px`,h=`${r.floating.height+c}px`):l===`right`?(m=`${-c}px`,h=o?d:`${p}px`):l===`left`&&(m=`${r.floating.width+c}px`,h=o?d:`${p}px`),{data:{x:m,y:h}}}});function ep(e){let[t,n=`center`]=e.split(`-`);return[t,n]}var tp=Hf,np=Wf,rp=Jf,ip=Zf,ap=`Portal`,op=e.forwardRef((t,n)=>{let{container:r,...i}=t,[a,o]=e.useState(!1);z(()=>o(!0),[]);let s=r||a&&globalThis?.document?.body;return s?C.createPortal(b(B.div,{...i,ref:n}),s):null});op.displayName=ap;var sp=`rovingFocusGroup.onEntryFocus`,cp={bubbles:!1,cancelable:!0},lp=`RovingFocusGroup`,[up,dp,fp]=de(lp),[pp,mp]=F(lp,[fp]),[hp,gp]=pp(lp),_p=e.forwardRef((e,t)=>b(up.Provider,{scope:e.__scopeRovingFocusGroup,children:b(up.Slot,{scope:e.__scopeRovingFocusGroup,children:b(vp,{...e,ref:t})})}));_p.displayName=lp;var vp=e.forwardRef((t,n)=>{let{__scopeRovingFocusGroup:r,orientation:i,loop:a=!1,dir:o,currentTabStopId:s,defaultCurrentTabStopId:c,onCurrentTabStopIdChange:l,onEntryFocus:u,preventScrollOnEntryFocus:d=!1,...f}=t,p=e.useRef(null),m=I(n,p),h=He(o),[g,_]=pe({prop:s,defaultProp:c??null,onChange:l,caller:lp}),[v,y]=e.useState(!1),x=Nl(u),S=dp(r),C=e.useRef(!1),[w,T]=e.useState(0);return e.useEffect(()=>{let e=p.current;if(e)return e.addEventListener(sp,x),()=>e.removeEventListener(sp,x)},[x]),b(hp,{scope:r,orientation:i,dir:h,loop:a,currentTabStopId:g,onItemFocus:e.useCallback(e=>_(e),[_]),onItemShiftTab:e.useCallback(()=>y(!0),[]),onFocusableItemAdd:e.useCallback(()=>T(e=>e+1),[]),onFocusableItemRemove:e.useCallback(()=>T(e=>e-1),[]),children:b(B.div,{tabIndex:v||w===0?-1:0,"data-orientation":i,...f,ref:m,style:{outline:`none`,...t.style},onMouseDown:R(t.onMouseDown,()=>{C.current=!0}),onFocus:R(t.onFocus,e=>{let t=!C.current;if(e.target===e.currentTarget&&t&&!v){let t=new CustomEvent(sp,cp);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=S().filter(e=>e.focusable),t=e.find(e=>e.active),n=e.find(e=>e.id===g),r=[t,n,...e].filter(Boolean),i=r.map(e=>e.ref.current);wp(i,d)}}C.current=!1}),onBlur:R(t.onBlur,()=>y(!1))})})}),yp=`RovingFocusGroupItem`,bp=e.forwardRef((t,n)=>{let{__scopeRovingFocusGroup:r,focusable:i=!0,active:a=!1,tabStopId:o,children:s,...c}=t,l=Te(),u=o||l,d=gp(yp,r),f=d.currentTabStopId===u,p=dp(r),{onFocusableItemAdd:m,onFocusableItemRemove:h,currentTabStopId:g}=d;return e.useEffect(()=>{if(i)return m(),()=>h()},[i,m,h]),b(up.ItemSlot,{scope:r,id:u,focusable:i,active:a,children:b(B.span,{tabIndex:f?0:-1,"data-orientation":d.orientation,...c,ref:n,onMouseDown:R(t.onMouseDown,e=>{i?d.onItemFocus(u):e.preventDefault()}),onFocus:R(t.onFocus,()=>d.onItemFocus(u)),onKeyDown:R(t.onKeyDown,e=>{if(e.key===`Tab`&&e.shiftKey){d.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=Cp(e,d.orientation,d.dir);if(t!==void 0){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let n=p().filter(e=>e.focusable),r=n.map(e=>e.ref.current);if(t===`last`)r.reverse();else if(t===`prev`||t===`next`){t===`prev`&&r.reverse();let n=r.indexOf(e.currentTarget);r=d.loop?Tp(r,n+1):r.slice(n+1)}setTimeout(()=>wp(r))}}),children:typeof s==`function`?s({isCurrentTabStop:f,hasTabStop:g!=null}):s})})});bp.displayName=yp;var xp={ArrowLeft:`prev`,ArrowUp:`prev`,ArrowRight:`next`,ArrowDown:`next`,PageUp:`first`,Home:`first`,PageDown:`last`,End:`last`};function Sp(e,t){return t===`rtl`?e===`ArrowLeft`?`ArrowRight`:e===`ArrowRight`?`ArrowLeft`:e:e}function Cp(e,t,n){let r=Sp(e.key,n);if(!(t===`vertical`&&[`ArrowLeft`,`ArrowRight`].includes(r))&&!(t===`horizontal`&&[`ArrowUp`,`ArrowDown`].includes(r)))return xp[r]}function wp(e,t=!1){let n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function Tp(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Ep=_p,Dp=bp,Op=function(e){if(typeof document>`u`)return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},kp=new WeakMap,Ap=new WeakMap,jp={},Mp=0,Np=function(e){return e&&(e.host||Np(e.parentNode))},Pp=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=Np(t);return n&&e.contains(n)?n:(console.error(`aria-hidden`,t,`in not contained inside`,e,`. Doing nothing`),null)}).filter(function(e){return!!e})},Fp=function(e,t,n,r){var i=Pp(t,Array.isArray(e)?e:[e]);jp[n]||(jp[n]=new WeakMap);var a=jp[n],o=[],s=new Set,c=new Set(i),l=function(e){!e||s.has(e)||(s.add(e),l(e.parentNode))};i.forEach(l);var u=function(e){!e||c.has(e)||Array.prototype.forEach.call(e.children,function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(r),i=t!==null&&t!==`false`,c=(kp.get(e)||0)+1,l=(a.get(e)||0)+1;kp.set(e,c),a.set(e,l),o.push(e),c===1&&i&&Ap.set(e,!0),l===1&&e.setAttribute(n,`true`),i||e.setAttribute(r,`true`)}catch(t){console.error(`aria-hidden: cannot operate on `,e,t)}})};return u(t),s.clear(),Mp++,function(){o.forEach(function(e){var t=kp.get(e)-1,i=a.get(e)-1;kp.set(e,t),a.set(e,i),t||(Ap.has(e)||e.removeAttribute(r),Ap.delete(e)),i||e.removeAttribute(n)}),Mp--,Mp||(kp=new WeakMap,kp=new WeakMap,Ap=new WeakMap,jp={})}},Ip=function(e,t,n){n===void 0&&(n=`data-aria-hidden`);var r=Array.from(Array.isArray(e)?e:[e]),i=t||Op(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll(`[aria-live], script`))),Fp(r,i,n,`aria-hidden`)):function(){return null}},Lp=function(){return Lp=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Lp.apply(this,arguments)};function Rp(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 i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function zp(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var Bp=`right-scroll-bar-position`,Vp=`width-before-scroll-bar`,Hp=`with-scroll-bars-hidden`,Up=`--removed-body-scroll-bar-size`;function Wp(e,t){return typeof e==`function`?e(t):e&&(e.current=t),e}function Gp(e,t){var n=v(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}})[0];return n.callback=t,n.facade}var Kp=typeof window<`u`?e.useLayoutEffect:e.useEffect,qp=new WeakMap;function Jp(e,t){var n=Gp(t||null,function(t){return e.forEach(function(e){return Wp(e,t)})});return Kp(function(){var t=qp.get(n);if(t){var r=new Set(t),i=new Set(e),a=n.current;r.forEach(function(e){i.has(e)||Wp(e,null)}),i.forEach(function(e){r.has(e)||Wp(e,a)})}qp.set(n,e)},[e]),n}function Yp(e){return e}function Xp(e,t){t===void 0&&(t=Yp);var n=[],r=!1,i={read:function(){if(r)throw 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(e){var i=t(e,r);return n.push(i),function(){n=n.filter(function(e){return e!==i})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var i=n;n=[],i.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(a)};o(),n={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),n}}}};return i}function Zp(e){e===void 0&&(e={});var t=Xp(null);return t.options=Lp({async:!0,ssr:!1},e),t}var Qp=function(t){var n=t.sideCar,r=Rp(t,[`sideCar`]);if(!n)throw Error("Sidecar: please provide `sideCar` property to import the right car");var i=n.read();if(!i)throw Error(`Sidecar medium not found`);return e.createElement(i,Lp({},r))};Qp.isSideCarExport=!0;function $p(e,t){return e.useMedium(t),Qp}var em=Zp(),tm=function(){},nm=e.forwardRef(function(t,n){var r=e.useRef(null),i=e.useState({onScrollCapture:tm,onWheelCapture:tm,onTouchMoveCapture:tm}),a=i[0],o=i[1],s=t.forwardProps,c=t.children,l=t.className,u=t.removeScrollBar,d=t.enabled,f=t.shards,p=t.sideCar,m=t.noRelative,h=t.noIsolation,g=t.inert,_=t.allowPinchZoom,v=t.as,y=v===void 0?`div`:v,b=t.gapMode,x=Rp(t,[`forwardProps`,`children`,`className`,`removeScrollBar`,`enabled`,`shards`,`sideCar`,`noRelative`,`noIsolation`,`inert`,`allowPinchZoom`,`as`,`gapMode`]),S=p,C=Jp([r,n]),w=Lp(Lp({},x),a);return e.createElement(e.Fragment,null,d&&e.createElement(S,{sideCar:em,removeScrollBar:u,shards:f,noRelative:m,noIsolation:h,inert:g,setCallbacks:o,allowPinchZoom:!!_,lockRef:r,gapMode:b}),s?e.cloneElement(e.Children.only(c),Lp(Lp({},w),{ref:C})):e.createElement(y,Lp({},w,{className:l,ref:C}),c))});nm.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},nm.classNames={fullWidth:Vp,zeroRight:Bp};var rm,im=function(){if(rm)return rm;if(typeof __webpack_nonce__<`u`)return __webpack_nonce__};function am(){if(!document)return null;var e=document.createElement(`style`);e.type=`text/css`;var t=im();return t&&e.setAttribute(`nonce`,t),e}function om(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function sm(e){var t=document.head||document.getElementsByTagName(`head`)[0];t.appendChild(e)}var cm=function(){var e=0,t=null;return{add:function(n){e==0&&(t=am())&&(om(t,n),sm(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},lm=function(){var t=cm();return function(n,r){e.useEffect(function(){return t.add(n),function(){t.remove()}},[n&&r])}},um=function(){var e=lm(),t=function(t){var n=t.styles,r=t.dynamic;return e(n,r),null};return t},dm={left:0,top:0,right:0,gap:0},fm=function(e){return parseInt(e||``,10)||0},pm=function(e){var t=window.getComputedStyle(document.body),n=t[e===`padding`?`paddingLeft`:`marginLeft`],r=t[e===`padding`?`paddingTop`:`marginTop`],i=t[e===`padding`?`paddingRight`:`marginRight`];return[fm(n),fm(r),fm(i)]},mm=function(e){if(e===void 0&&(e=`margin`),typeof window>`u`)return dm;var t=pm(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])}},hm=um(),gm=`data-scroll-locked`,_m=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return n===void 0&&(n=`margin`),`
|
|
1087
1087
|
.${Hp} {
|
|
1088
1088
|
overflow: hidden ${r};
|
|
1089
1089
|
padding-right: ${s}px ${r};
|
|
@@ -1123,7 +1123,7 @@ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered a
|
|
|
1123
1123
|
`},vm=function(){var e=parseInt(document.body.getAttribute(gm)||`0`,10);return isFinite(e)?e:0},ym=function(){e.useEffect(function(){return document.body.setAttribute(gm,(vm()+1).toString()),function(){var e=vm()-1;e<=0?document.body.removeAttribute(gm):document.body.setAttribute(gm,e.toString())}},[])},bm=function(t){var n=t.noRelative,r=t.noImportant,i=t.gapMode,a=i===void 0?`margin`:i;ym();var o=e.useMemo(function(){return mm(a)},[a]);return e.createElement(hm,{styles:_m(o,!n,a,r?``:`!important`)})},xm=!1;if(typeof window<`u`)try{var Sm=Object.defineProperty({},`passive`,{get:function(){return xm=!0,!0}});window.addEventListener(`test`,Sm,Sm),window.removeEventListener(`test`,Sm,Sm)}catch{xm=!1}var Cm=xm?{passive:!1}:!1,wm=function(e){return e.tagName===`TEXTAREA`},Tm=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!==`hidden`&&!(n.overflowY===n.overflowX&&!wm(e)&&n[t]===`visible`)},Em=function(e){return Tm(e,`overflowY`)},Dm=function(e){return Tm(e,`overflowX`)},Om=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<`u`&&r instanceof ShadowRoot&&(r=r.host);var i=jm(e,r);if(i){var a=Mm(e,r),o=a[1],s=a[2];if(o>s)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},km=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Am=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},jm=function(e,t){return e===`v`?Em(t):Dm(t)},Mm=function(e,t){return e===`v`?km(t):Am(t)},Nm=function(e,t){return e===`h`&&t===`rtl`?-1:1},Pm=function(e,t,n,r,i){var a=Nm(e,window.getComputedStyle(t).direction),o=a*r,s=n.target,c=t.contains(s),l=!1,u=o>0,d=0,f=0;do{if(!s)break;var p=Mm(e,s),m=p[0],h=p[1],g=p[2],_=h-g-a*m;(m||_)&&jm(e,s)&&(d+=_,f+=m);var v=s.parentNode;s=v&&v.nodeType===Node.DOCUMENT_FRAGMENT_NODE?v.host:v}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(u&&(i&&Math.abs(d)<1||!i&&o>d)||!u&&(i&&Math.abs(f)<1||!i&&-o>f))&&(l=!0),l},Fm=function(e){return`changedTouches`in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Im=function(e){return[e.deltaX,e.deltaY]},Lm=function(e){return e&&`current`in e?e.current:e},Rm=function(e,t){return e[0]===t[0]&&e[1]===t[1]},zm=function(e){return`
|
|
1124
1124
|
.block-interactivity-${e} {pointer-events: none;}
|
|
1125
1125
|
.allow-interactivity-${e} {pointer-events: all;}
|
|
1126
|
-
`},Bm=0,Vm=[];function Hm(t){var n=e.useRef([]),r=e.useRef([0,0]),i=e.useRef(),a=e.useState(Bm++)[0],o=e.useState(um)[0],s=e.useRef(t);e.useEffect(function(){s.current=t},[t]),e.useEffect(function(){if(t.inert){document.body.classList.add(`block-interactivity-${a}`);var e=zp([t.lockRef.current],(t.shards||[]).map(Lm),!0).filter(Boolean);return e.forEach(function(e){return e.classList.add(`allow-interactivity-${a}`)}),function(){document.body.classList.remove(`block-interactivity-${a}`),e.forEach(function(e){return e.classList.remove(`allow-interactivity-${a}`)})}}},[t.inert,t.lockRef.current,t.shards]);var c=e.useCallback(function(e,t){if(`touches`in e&&e.touches.length===2||e.type===`wheel`&&e.ctrlKey)return!s.current.allowPinchZoom;var n=Fm(e),a=r.current,o=`deltaX`in e?e.deltaX:a[0]-n[0],c=`deltaY`in e?e.deltaY:a[1]-n[1],l,u=e.target,d=Math.abs(o)>Math.abs(c)?`h`:`v`;if(`touches`in e&&d===`h`&&u.type===`range`)return!1;var f=window.getSelection(),p=f&&f.anchorNode,m=p?p===u||p.contains(u):!1;if(m)return!1;var h=Om(d,u);if(!h)return!0;if(h?l=d:(l=d===`v`?`h`:`v`,h=Om(d,u)),!h)return!1;if(!i.current&&`changedTouches`in e&&(o||c)&&(i.current=l),!l)return!0;var g=i.current||l;return Pm(g,t,e,g===`h`?o:c,!0)},[]),l=e.useCallback(function(e){var t=e;if(!(!Vm.length||Vm[Vm.length-1]!==o)){var r=`deltaY`in t?Im(t):Fm(t),i=n.current.filter(function(e){return e.name===t.type&&(e.target===t.target||t.target===e.shadowParent)&&Rm(e.delta,r)})[0];if(i&&i.should){t.cancelable&&t.preventDefault();return}if(!i){var a=(s.current.shards||[]).map(Lm).filter(Boolean).filter(function(e){return e.contains(t.target)}),l=a.length>0?c(t,a[0]):!s.current.noIsolation;l&&t.cancelable&&t.preventDefault()}}},[]),u=e.useCallback(function(e,t,r,i){var a={name:e,delta:t,target:r,should:i,shadowParent:Um(r)};n.current.push(a),setTimeout(function(){n.current=n.current.filter(function(e){return e!==a})},1)},[]),d=e.useCallback(function(e){r.current=Fm(e),i.current=void 0},[]),f=e.useCallback(function(e){u(e.type,Im(e),e.target,c(e,t.lockRef.current))},[]),p=e.useCallback(function(e){u(e.type,Fm(e),e.target,c(e,t.lockRef.current))},[]);e.useEffect(function(){return Vm.push(o),t.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener(`wheel`,l,Cm),document.addEventListener(`touchmove`,l,Cm),document.addEventListener(`touchstart`,d,Cm),function(){Vm=Vm.filter(function(e){return e!==o}),document.removeEventListener(`wheel`,l,Cm),document.removeEventListener(`touchmove`,l,Cm),document.removeEventListener(`touchstart`,d,Cm)}},[]);var m=t.removeScrollBar,h=t.inert;return e.createElement(e.Fragment,null,h?e.createElement(o,{styles:zm(a)}):null,m?e.createElement(bm,{noRelative:t.noRelative,gapMode:t.gapMode}):null)}function Um(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var Wm=$p(em,Hm),Gm=e.forwardRef(function(t,n){return e.createElement(nm,Lp({},t,{ref:n,sideCar:Wm}))});Gm.classNames=nm.classNames;var Km=Gm,qm=[`Enter`,` `],Jm=[`ArrowDown`,`PageUp`,`Home`],Ym=[`ArrowUp`,`PageDown`,`End`],Xm=[...Jm,...Ym],Zm={ltr:[...qm,`ArrowRight`],rtl:[...qm,`ArrowLeft`]},Qm={ltr:[`ArrowLeft`],rtl:[`ArrowRight`]},$m=`Menu`,[eh,th,nh]=ue($m),[rh,ih]=F($m,[nh,zf,mp]),ah=zf(),oh=mp(),[sh,ch]=rh($m),[lh,uh]=rh($m),dh=t=>{let{__scopeMenu:n,open:r=!1,children:i,dir:a,onOpenChange:o,modal:s=!0}=t,c=ah(n),[l,u]=e.useState(null),d=e.useRef(!1),f=Nl(o),p=He(a);return e.useEffect(()=>{let e=()=>{d.current=!0,document.addEventListener(`pointerdown`,t,{capture:!0,once:!0}),document.addEventListener(`pointermove`,t,{capture:!0,once:!0})},t=()=>d.current=!1;return document.addEventListener(`keydown`,e,{capture:!0}),()=>{document.removeEventListener(`keydown`,e,{capture:!0}),document.removeEventListener(`pointerdown`,t,{capture:!0}),document.removeEventListener(`pointermove`,t,{capture:!0})}},[]),b(tp,{...c,children:b(sh,{scope:n,open:r,onOpenChange:f,content:l,onContentChange:u,children:b(lh,{scope:n,onClose:e.useCallback(()=>f(!1),[f]),isUsingKeyboardRef:d,dir:p,modal:s,children:i})})})};dh.displayName=$m;var fh=`MenuAnchor`,ph=e.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,i=ah(n);return b(np,{...i,...r,ref:t})});ph.displayName=fh;var mh=`MenuPortal`,[hh,gh]=rh(mh,{forceMount:void 0}),_h=e=>{let{__scopeMenu:t,forceMount:n,children:r,container:i}=e,a=ch(mh,t);return b(hh,{scope:t,forceMount:n,children:b(ye,{present:n||a.open,children:b(op,{asChild:!0,container:i,children:r})})})};_h.displayName=mh;var vh=`MenuContent`,[yh,bh]=rh(vh),xh=e.forwardRef((e,t)=>{let n=gh(vh,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,a=ch(vh,e.__scopeMenu),o=uh(vh,e.__scopeMenu);return b(eh.Provider,{scope:e.__scopeMenu,children:b(ye,{present:r||a.open,children:b(eh.Slot,{scope:e.__scopeMenu,children:o.modal?b(Sh,{...i,ref:t}):b(Ch,{...i,ref:t})})})})}),Sh=e.forwardRef((t,n)=>{let r=ch(vh,t.__scopeMenu),i=e.useRef(null),a=I(n,i);return e.useEffect(()=>{let e=i.current;if(e)return Ip(e)},[]),b(Th,{...t,ref:a,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:z(t.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})}),Ch=e.forwardRef((e,t)=>{let n=ch(vh,e.__scopeMenu);return b(Th,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),wh=oe(`MenuContent.ScrollLock`),Th=e.forwardRef((t,n)=>{let{__scopeMenu:r,loop:i=!1,trapFocus:a,onOpenAutoFocus:o,onCloseAutoFocus:s,disableOutsidePointerEvents:c,onEntryFocus:l,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:p,onDismiss:m,disableOutsideScroll:h,...g}=t,_=ch(vh,r),v=uh(vh,r),y=ah(r),x=oh(r),S=th(r),[C,w]=e.useState(null),T=e.useRef(null),E=I(n,T,_.onContentChange),D=e.useRef(0),O=e.useRef(``),k=e.useRef(0),A=e.useRef(null),j=e.useRef(`right`),M=e.useRef(0),ee=h?Km:e.Fragment,N=h?{as:wh,allowPinchZoom:!0}:void 0,te=e=>{let t=O.current+e,n=S().filter(e=>!e.disabled),r=document.activeElement,i=n.find(e=>e.ref.current===r)?.textValue,a=n.map(e=>e.textValue),o=lg(a,t,i),s=n.find(e=>e.textValue===o)?.ref.current;(function e(t){O.current=t,window.clearTimeout(D.current),t!==``&&(D.current=window.setTimeout(()=>e(``),1e3))})(t),s&&setTimeout(()=>s.focus())};e.useEffect(()=>()=>window.clearTimeout(D.current),[]),Yl();let P=e.useCallback(e=>{let t=j.current===A.current?.side;return t&&dg(e,A.current?.area)},[]);return b(yh,{scope:r,searchRef:O,onItemEnter:e.useCallback(e=>{P(e)&&e.preventDefault()},[P]),onItemLeave:e.useCallback(e=>{P(e)||(T.current?.focus(),w(null))},[P]),onTriggerLeave:e.useCallback(e=>{P(e)&&e.preventDefault()},[P]),pointerGraceTimerRef:k,onPointerGraceIntentChange:e.useCallback(e=>{A.current=e},[]),children:b(ee,{...N,children:b(tu,{asChild:!0,trapped:a,onMountAutoFocus:z(o,e=>{e.preventDefault(),T.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:s,children:b(Vl,{asChild:!0,disableOutsidePointerEvents:c,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:p,onDismiss:m,children:b(Ep,{asChild:!0,...x,dir:v.dir,orientation:`vertical`,loop:i,currentTabStopId:C,onCurrentTabStopIdChange:w,onEntryFocus:z(l,e=>{v.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:b(rp,{role:`menu`,"aria-orientation":`vertical`,"data-state":ig(_.open),"data-radix-menu-content":``,dir:v.dir,...y,...g,ref:E,style:{outline:`none`,...g.style},onKeyDown:z(g.onKeyDown,e=>{let t=e.target,n=t.closest(`[data-radix-menu-content]`)===e.currentTarget,r=e.ctrlKey||e.altKey||e.metaKey,i=e.key.length===1;n&&(e.key===`Tab`&&e.preventDefault(),!r&&i&&te(e.key));let a=T.current;if(e.target!==a||!Xm.includes(e.key))return;e.preventDefault();let o=S().filter(e=>!e.disabled),s=o.map(e=>e.ref.current);Ym.includes(e.key)&&s.reverse(),sg(s)}),onBlur:z(t.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(D.current),O.current=``)}),onPointerMove:z(t.onPointerMove,fg(e=>{let t=e.target,n=M.current!==e.clientX;if(e.currentTarget.contains(t)&&n){let t=e.clientX>M.current?`right`:`left`;j.current=t,M.current=e.clientX}}))})})})})})})});xh.displayName=vh;var Eh=`MenuGroup`,Dh=e.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return b(B.div,{role:`group`,...r,ref:t})});Dh.displayName=Eh;var Oh=`MenuLabel`,kh=e.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return b(B.div,{...r,ref:t})});kh.displayName=Oh;var Ah=`MenuItem`,jh=`menu.itemSelect`,Mh=e.forwardRef((t,n)=>{let{disabled:r=!1,onSelect:i,...a}=t,o=e.useRef(null),s=uh(Ah,t.__scopeMenu),c=bh(Ah,t.__scopeMenu),l=I(n,o),u=e.useRef(!1),d=()=>{let e=o.current;if(!r&&e){let t=new CustomEvent(jh,{bubbles:!0,cancelable:!0});e.addEventListener(jh,e=>i?.(e),{once:!0}),_e(e,t),t.defaultPrevented?u.current=!1:s.onClose()}};return b(Nh,{...a,ref:l,disabled:r,onClick:z(t.onClick,d),onPointerDown:e=>{t.onPointerDown?.(e),u.current=!0},onPointerUp:z(t.onPointerUp,e=>{u.current||e.currentTarget?.click()}),onKeyDown:z(t.onKeyDown,e=>{let t=c.searchRef.current!==``;r||t&&e.key===` `||qm.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});Mh.displayName=Ah;var Nh=e.forwardRef((t,n)=>{let{__scopeMenu:r,disabled:i=!1,textValue:a,...o}=t,s=bh(Ah,r),c=oh(r),l=e.useRef(null),u=I(n,l),[d,f]=e.useState(!1),[p,m]=e.useState(``);return e.useEffect(()=>{let e=l.current;e&&m((e.textContent??``).trim())},[o.children]),b(eh.ItemSlot,{scope:r,disabled:i,textValue:a??p,children:b(Dp,{asChild:!0,...c,focusable:!i,children:b(B.div,{role:`menuitem`,"data-highlighted":d?``:void 0,"aria-disabled":i||void 0,"data-disabled":i?``:void 0,...o,ref:u,onPointerMove:z(t.onPointerMove,fg(e=>{if(i)s.onItemLeave(e);else if(s.onItemEnter(e),!e.defaultPrevented){let t=e.currentTarget;t.focus({preventScroll:!0})}})),onPointerLeave:z(t.onPointerLeave,fg(e=>s.onItemLeave(e))),onFocus:z(t.onFocus,()=>f(!0)),onBlur:z(t.onBlur,()=>f(!1))})})})}),Ph=`MenuCheckboxItem`,Fh=e.forwardRef((e,t)=>{let{checked:n=!1,onCheckedChange:r,...i}=e;return b(Uh,{scope:e.__scopeMenu,checked:n,children:b(Mh,{role:`menuitemcheckbox`,"aria-checked":ag(n)?`mixed`:n,...i,ref:t,"data-state":og(n),onSelect:z(i.onSelect,()=>r?.(ag(n)?!0:!n),{checkForDefaultPrevented:!1})})})});Fh.displayName=Ph;var Ih=`MenuRadioGroup`,[Lh,Rh]=rh(Ih,{value:void 0,onValueChange:()=>{}}),zh=e.forwardRef((e,t)=>{let{value:n,onValueChange:r,...i}=e,a=Nl(r);return b(Lh,{scope:e.__scopeMenu,value:n,onValueChange:a,children:b(Dh,{...i,ref:t})})});zh.displayName=Ih;var Bh=`MenuRadioItem`,Vh=e.forwardRef((e,t)=>{let{value:n,...r}=e,i=Rh(Bh,e.__scopeMenu),a=n===i.value;return b(Uh,{scope:e.__scopeMenu,checked:a,children:b(Mh,{role:`menuitemradio`,"aria-checked":a,...r,ref:t,"data-state":og(a),onSelect:z(r.onSelect,()=>i.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});Vh.displayName=Bh;var Hh=`MenuItemIndicator`,[Uh,Wh]=rh(Hh,{checked:!1}),Gh=e.forwardRef((e,t)=>{let{__scopeMenu:n,forceMount:r,...i}=e,a=Wh(Hh,n);return b(ye,{present:r||ag(a.checked)||a.checked===!0,children:b(B.span,{...i,ref:t,"data-state":og(a.checked)})})});Gh.displayName=Hh;var Kh=`MenuSeparator`,qh=e.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return b(B.div,{role:`separator`,"aria-orientation":`horizontal`,...r,ref:t})});qh.displayName=Kh;var Jh=`MenuArrow`,Yh=e.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,i=ah(n);return b(ip,{...i,...r,ref:t})});Yh.displayName=Jh;var Xh=`MenuSub`,[Zh,Qh]=rh(Xh),$h=t=>{let{__scopeMenu:n,children:r,open:i=!1,onOpenChange:a}=t,o=ch(Xh,n),s=ah(n),[c,l]=e.useState(null),[u,d]=e.useState(null),f=Nl(a);return e.useEffect(()=>(o.open===!1&&f(!1),()=>f(!1)),[o.open,f]),b(tp,{...s,children:b(sh,{scope:n,open:i,onOpenChange:f,content:u,onContentChange:d,children:b(Zh,{scope:n,contentId:Te(),triggerId:Te(),trigger:c,onTriggerChange:l,children:r})})})};$h.displayName=Xh;var eg=`MenuSubTrigger`,tg=e.forwardRef((t,n)=>{let r=ch(eg,t.__scopeMenu),i=uh(eg,t.__scopeMenu),a=Qh(eg,t.__scopeMenu),o=bh(eg,t.__scopeMenu),s=e.useRef(null),{pointerGraceTimerRef:c,onPointerGraceIntentChange:l}=o,u={__scopeMenu:t.__scopeMenu},d=e.useCallback(()=>{s.current&&window.clearTimeout(s.current),s.current=null},[]);return e.useEffect(()=>d,[d]),e.useEffect(()=>{let e=c.current;return()=>{window.clearTimeout(e),l(null)}},[c,l]),b(ph,{asChild:!0,...u,children:b(Nh,{id:a.triggerId,"aria-haspopup":`menu`,"aria-expanded":r.open,"aria-controls":a.contentId,"data-state":ig(r.open),...t,ref:ae(n,a.onTriggerChange),onClick:e=>{t.onClick?.(e),!(t.disabled||e.defaultPrevented)&&(e.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:z(t.onPointerMove,fg(e=>{o.onItemEnter(e),!e.defaultPrevented&&!t.disabled&&!r.open&&!s.current&&(o.onPointerGraceIntentChange(null),s.current=window.setTimeout(()=>{r.onOpenChange(!0),d()},100))})),onPointerLeave:z(t.onPointerLeave,fg(e=>{d();let t=r.content?.getBoundingClientRect();if(t){let n=r.content?.dataset.side,i=n===`right`,a=i?-5:5,s=t[i?`left`:`right`],l=t[i?`right`:`left`];o.onPointerGraceIntentChange({area:[{x:e.clientX+a,y:e.clientY},{x:s,y:t.top},{x:l,y:t.top},{x:l,y:t.bottom},{x:s,y:t.bottom}],side:n}),window.clearTimeout(c.current),c.current=window.setTimeout(()=>o.onPointerGraceIntentChange(null),300)}else{if(o.onTriggerLeave(e),e.defaultPrevented)return;o.onPointerGraceIntentChange(null)}})),onKeyDown:z(t.onKeyDown,e=>{let n=o.searchRef.current!==``;t.disabled||n&&e.key===` `||Zm[i.dir].includes(e.key)&&(r.onOpenChange(!0),r.content?.focus(),e.preventDefault())})})})});tg.displayName=eg;var ng=`MenuSubContent`,rg=e.forwardRef((t,n)=>{let r=gh(vh,t.__scopeMenu),{forceMount:i=r.forceMount,...a}=t,o=ch(vh,t.__scopeMenu),s=uh(vh,t.__scopeMenu),c=Qh(ng,t.__scopeMenu),l=e.useRef(null),u=I(n,l);return b(eh.Provider,{scope:t.__scopeMenu,children:b(ye,{present:i||o.open,children:b(eh.Slot,{scope:t.__scopeMenu,children:b(Th,{id:c.contentId,"aria-labelledby":c.triggerId,...a,ref:u,align:`start`,side:s.dir===`rtl`?`left`:`right`,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{s.isUsingKeyboardRef.current&&l.current?.focus(),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:z(t.onFocusOutside,e=>{e.target!==c.trigger&&o.onOpenChange(!1)}),onEscapeKeyDown:z(t.onEscapeKeyDown,e=>{s.onClose(),e.preventDefault()}),onKeyDown:z(t.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),n=Qm[s.dir].includes(e.key);t&&n&&(o.onOpenChange(!1),c.trigger?.focus(),e.preventDefault())})})})})})});rg.displayName=ng;function ig(e){return e?`open`:`closed`}function ag(e){return e===`indeterminate`}function og(e){return ag(e)?`indeterminate`:e?`checked`:`unchecked`}function sg(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function cg(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function lg(e,t,n){let r=t.length>1&&Array.from(t).every(e=>e===t[0]),i=r?t[0]:t,a=n?e.indexOf(n):-1,o=cg(e,Math.max(a,0)),s=i.length===1;s&&(o=o.filter(e=>e!==n));let c=o.find(e=>e.toLowerCase().startsWith(i.toLowerCase()));return c===n?void 0:c}function ug(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let o=t[e],s=t[a],c=o.x,l=o.y,u=s.x,d=s.y,f=l>r!=d>r&&n<(u-c)*(r-l)/(d-l)+c;f&&(i=!i)}return i}function dg(e,t){if(!t)return!1;let n={x:e.clientX,y:e.clientY};return ug(n,t)}function fg(e){return t=>t.pointerType===`mouse`?e(t):void 0}var pg=dh,mg=ph,hg=_h,gg=xh,_g=Dh,vg=kh,yg=Mh,bg=Fh,xg=zh,Sg=Vh,Cg=Gh,wg=qh,Tg=Yh,Eg=$h,Dg=tg,Og=rg,kg=`DropdownMenu`,[Ag,jg]=F(kg,[ih]),Mg=ih(),[Ng,Pg]=Ag(kg),Fg=t=>{let{__scopeDropdownMenu:n,children:r,dir:i,open:a,defaultOpen:o,onOpenChange:s,modal:c=!0}=t,l=Mg(n),u=e.useRef(null),[d,f]=pe({prop:a,defaultProp:o??!1,onChange:s,caller:kg});return b(Ng,{scope:n,triggerId:Te(),triggerRef:u,contentId:Te(),open:d,onOpenChange:f,onOpenToggle:e.useCallback(()=>f(e=>!e),[f]),modal:c,children:b(pg,{...l,open:d,onOpenChange:f,dir:i,modal:c,children:r})})};Fg.displayName=kg;var Ig=`DropdownMenuTrigger`,Lg=e.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,disabled:r=!1,...i}=e,a=Pg(Ig,n),o=Mg(n);return b(mg,{asChild:!0,...o,children:b(B.button,{type:`button`,id:a.triggerId,"aria-haspopup":`menu`,"aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?`open`:`closed`,"data-disabled":r?``:void 0,disabled:r,...i,ref:ae(t,a.triggerRef),onPointerDown:z(e.onPointerDown,e=>{!r&&e.button===0&&e.ctrlKey===!1&&(a.onOpenToggle(),a.open||e.preventDefault())}),onKeyDown:z(e.onKeyDown,e=>{r||([`Enter`,` `].includes(e.key)&&a.onOpenToggle(),e.key===`ArrowDown`&&a.onOpenChange(!0),[`Enter`,` `,`ArrowDown`].includes(e.key)&&e.preventDefault())})})})});Lg.displayName=Ig;var Rg=`DropdownMenuPortal`,zg=e=>{let{__scopeDropdownMenu:t,...n}=e,r=Mg(t);return b(hg,{...r,...n})};zg.displayName=Rg;var Bg=`DropdownMenuContent`,Vg=e.forwardRef((t,n)=>{let{__scopeDropdownMenu:r,...i}=t,a=Pg(Bg,r),o=Mg(r),s=e.useRef(!1);return b(gg,{id:a.contentId,"aria-labelledby":a.triggerId,...o,...i,ref:n,onCloseAutoFocus:z(t.onCloseAutoFocus,e=>{s.current||a.triggerRef.current?.focus(),s.current=!1,e.preventDefault()}),onInteractOutside:z(t.onInteractOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0,r=t.button===2||n;(!a.modal||r)&&(s.current=!0)}),style:{...t.style,"--radix-dropdown-menu-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-dropdown-menu-content-available-width":`var(--radix-popper-available-width)`,"--radix-dropdown-menu-content-available-height":`var(--radix-popper-available-height)`,"--radix-dropdown-menu-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-dropdown-menu-trigger-height":`var(--radix-popper-anchor-height)`}})});Vg.displayName=Bg;var Hg=`DropdownMenuGroup`,Ug=e.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=Mg(n);return b(_g,{...i,...r,ref:t})});Ug.displayName=Hg;var Wg=`DropdownMenuLabel`,Gg=e.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=Mg(n);return b(vg,{...i,...r,ref:t})});Gg.displayName=Wg;var Kg=`DropdownMenuItem`,qg=e.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=Mg(n);return b(yg,{...i,...r,ref:t})});qg.displayName=Kg;var Jg=`DropdownMenuCheckboxItem`,Yg=e.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=Mg(n);return b(bg,{...i,...r,ref:t})});Yg.displayName=Jg;var Xg=`DropdownMenuRadioGroup`,Zg=e.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=Mg(n);return b(xg,{...i,...r,ref:t})});Zg.displayName=Xg;var Qg=`DropdownMenuRadioItem`,$g=e.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=Mg(n);return b(Sg,{...i,...r,ref:t})});$g.displayName=Qg;var e_=`DropdownMenuItemIndicator`,t_=e.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=Mg(n);return b(Cg,{...i,...r,ref:t})});t_.displayName=e_;var n_=`DropdownMenuSeparator`,r_=e.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=Mg(n);return b(wg,{...i,...r,ref:t})});r_.displayName=n_;var i_=`DropdownMenuArrow`,a_=e.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=Mg(n);return b(Tg,{...i,...r,ref:t})});a_.displayName=i_;var o_=e=>{let{__scopeDropdownMenu:t,children:n,open:r,onOpenChange:i,defaultOpen:a}=e,o=Mg(t),[s,c]=pe({prop:r,defaultProp:a??!1,onChange:i,caller:`DropdownMenuSub`});return b(Eg,{...o,open:s,onOpenChange:c,children:n})},s_=`DropdownMenuSubTrigger`,c_=e.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=Mg(n);return b(Dg,{...i,...r,ref:t})});c_.displayName=s_;var l_=`DropdownMenuSubContent`,u_=e.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=Mg(n);return b(Og,{...i,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-dropdown-menu-content-available-width":`var(--radix-popper-available-width)`,"--radix-dropdown-menu-content-available-height":`var(--radix-popper-available-height)`,"--radix-dropdown-menu-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-dropdown-menu-trigger-height":`var(--radix-popper-anchor-height)`}})});u_.displayName=l_;var d_=Fg,f_=Lg,p_=zg,m_=Vg,h_=Gg,g_=qg,__=r_,v_=a_,y_=o_,b_=c_,x_=u_;const S_={panel:{kB7OPa:`x9f619`,kWkggS:`xrkmy7n`,kMzoRj:`x15udo89`,ksu8eU:`x1y0btm7`,kVAM5u:`x1r2g072`,kaIpWk:`x116uinm`,k3XXqK:`x1t137rt`,$$css:!0},outline:{k3XXqK:`x1t137rt`,$$css:!0},motion:{k44tkh:`x2mfxb`,kyAemX:`xa0mk88`,kKVMdj:`x1a5igra x1sxqptb x1m9yr5l xv4m6d9 xbpksmt`,$$css:!0},arrow:{keoZOQ:`xyd06bb`,kzqmXN:`x15xktyq`,kZKoxP:`x25yk9b`,k3aq6I:`x1158fpu`,kMzoRj:`xc342km`,kWqL5O:`x1e7mn6g`,kt9PQ7:`x1k21s18`,ksu8eU:`x1y0btm7`,kVAM5u:`x1r2g072`,kWkggS:`xrkmy7n`,kDwRjp:`xy6m8k3`,$$css:!0}},K={content:{kVAEAm:`x1n2onr6`,kY2c9j:`x1i7x82i`,k7Eaqz:`x1vi9356`,kLKAdn:`x1b58sdr`,kGO01o:`xmnamis`,kMwMTN:`x14yi97k`,$$css:!0},subContent:{kY2c9j:`xfo81ep`,$$css:!0},item:{kVAEAm:`x1n2onr6`,k1xSpc:`x78zum5`,kAzted:`xxtaxjb`,kkrTdU:`x1ypdohk`,kGNEyG:`x6s0dn4`,kE3dHu:`x1f7psco`,kpe85a:`xp2l5km`,kLWn49:`xo5v014`,k3XXqK:`x1t137rt`,kfSwDN:`x87ps6o`,kMwMTN:`x14yi97k`,kWkggS:`xjbqb8w x5teegj`,$$css:!0},fixedHeight:{kZKoxP:`xv6nkyv`,$$css:!0},subTrigger:{kZKoxP:`xv6nkyv`,kjj79g:`x1qughib`,kpe85a:`x1xpa7k`,$$css:!0},label:{koQZXg:`x4aigyd`,kGuDYH:`x1dcheo9`,kMwMTN:`x14yi97k`,k63SB2:`xo1l8bm`,kKX8nH:`x1j61x8r`,$$css:!0},subLabel:{k63SB2:`x1s688f`,$$css:!0},disabled:{kfzvcC:`x47corl`,$$css:!0},disabledText:{kMwMTN:`x1ru9b6h`,$$css:!0},dimmed:{kSiTet:`xuzhngd`,$$css:!0},icon:{kzqmXN:`xsk17dz`,$$css:!0},iconColor:{kMwMTN:`x14yi97k`,$$css:!0},iconSlot:{k7Eaqz:`x199i5n0`,$$css:!0},row:{k1xSpc:`x78zum5`,$$css:!0},chevronSlot:{k1xSpc:`x78zum5`,kGNEyG:`x6s0dn4`,kjj79g:`xl56j7k`,$$css:!0},chevron:{koQZXg:`xt3xpxm`,km5ZXQ:`xpoiemb`,k3aq6I:`x1rbgqaq`,$$css:!0},separator:{keoZOQ:`x1mjqqkp`,k1K539:`xhbfen4`,kZKoxP:`xjm9jq1`,kWkggS:`x1xtmd7b`,$$css:!0}},C_=({item:e,xstyle:t,spinnerXstyle:n,iconType:r=`text`})=>e.inProgress?b(yl,{size:`sm`,color:`currentColor`,testId:e.iconTestId,customId:e.iconCustomId,extraClassNames:e.iconExtraClassNames,xstyle:[n,e.iconXstyle]}):e.icon?b(al,{icon:e.icon,testId:e.iconTestId,type:r,color:e.iconColor,customId:e.iconCustomId,extraClassNames:e.iconExtraClassNames,xstyle:[t,e.iconXstyle]}):null,w_=e=>{let{label:t,variant:n=`outline`,size:r=`sm`,icon:i,iconStyle:a=`text`,iconColor:o,iconPosition:s=`left`,iconPrefix:c,extraClassNames:l=``,xstyle:u,testId:d,id:f,disabled:p=!1,inProgress:m=!1,"aria-label":h,...g}=e;return b(T_,{...e,children:b(f_,{asChild:!0,id:f,disabled:p,children:b(Ol,{label:t,variant:n,size:r,icon:i,iconStyle:a,iconColor:o,iconPosition:s,iconPrefix:c,extraClassNames:l,xstyle:u,testId:d,disabled:p,inProgress:m,"aria-label":h,tooltip:g.tooltip,tooltipOptions:{delay:g.tooltipDelay,position:g.tooltipPlacement}})})})},T_=({dropdownItems:e,id:t,children:n,contentExtraClassNames:r=``,contentXstyle:i,containerTestId:a,align:o=`end`,placement:s=`bottom`,placementOffset:c=5,alignOffset:l=-35,hasArrow:u=!1,onOpenChange:d,isOpen:f,setFocusOnTriggerOnClose:p=!0,keepFocusInsideDropdown:m=!0,onContainerClick:h})=>{let g=V(S_.panel,S_.motion,K.content,i),_=V(S_.panel,K.content,K.subContent,i);return x(d_,{defaultOpen:!1,open:f,onOpenChange:d,modal:m,children:[n,b(p_,{children:b(m_,{onClick:h,sideOffset:c,side:s,align:o,alignOffset:l,asChild:!0,onCloseAutoFocus:e=>!p&&e.preventDefault(),children:x(`div`,{...g,"data-testid":a,className:H(g.className,r),children:[u&&b(v_,{asChild:!0,children:b(`div`,{...V(S_.arrow),"data-testid":a?`${a}-arrow`:void 0})}),e.map((e,n)=>{let r=el(e),i=V(K.label,e.disabled&&K.disabledText,e.labelXstyle),o=V(K.item,e.disabled&&K.disabled,e.itemXstyle);if(e.isLabel){let t=V(e.itemXstyle);return x(h_,{...t,className:H(t.className,e.itemExtraClassNames),...r,children:[b(C_,{item:e,xstyle:[K.icon,K.iconColor],spinnerXstyle:K.iconColor}),b(`div`,{...i,"data-testid":e.labelTestId,className:H(i.className,e.labelClasses),children:e.label})]},(e.id||``)+n)}if(Array.isArray(e.subMenuItems)&&e.subMenuItems.length>0){let i=V(K.item,K.subTrigger,e.disabled&&K.disabled,e.itemXstyle),o=V(K.label,K.subLabel,e.disabled&&K.dimmed,e.labelXstyle),s=e.disabled?K.disabledText:K.iconColor;return x(y_,{children:[x(b_,{id:t,...i,className:H(i.className,e.itemExtraClassNames),"data-testid":e.testId,disabled:e.disabled,...r,children:[x(`div`,{...V(K.row),children:[(e.icon||e.inProgress)&&b(`div`,{...V(K.iconSlot),children:b(C_,{item:e,xstyle:[K.icon,s],spinnerXstyle:s})}),b(`div`,{...o,"data-testid":e.labelTestId,"data-customid":e.labelCustomId,className:H(o.className,e.labelClasses),children:e.label})]}),b(`div`,{...V(K.chevronSlot),children:b(al,{size:`sm`,icon:jt,xstyle:[K.chevron,s]})})]}),b(p_,{children:b(x_,{...V(S_.outline,S_.motion),children:b(`div`,{..._,"data-testid":a,children:e.subMenuItems.map((t,n)=>{let r=V(K.label,t.disabled&&K.disabledText,e.labelXstyle);return x(g_,{onSelect:t.onClick,"data-qtip-text":t.tooltip,...V(K.item,K.fixedHeight,t.disabled&&K.disabled),disabled:t.disabled,children:[t.iconClass&&b(al,{icon:t.iconClass,type:`text`,xstyle:[K.icon,e.disabled&&K.dimmed]}),b(`div`,{...r,className:H(r.className,e.labelClasses),children:t.label})]},t.label+n)})})})})]},(e.id||(typeof e.icon==`string`?e.icon:e.icon?.iconName)||``)+n)}return x(`div`,{...r,children:[x(g_,{"data-customid":e.itemCustomId,onSelect:t=>e.onClick(t),...o,className:H(o.className,e.itemExtraClassNames),"data-testid":e.testId,disabled:e.disabled,children:[(e.icon||e.inProgress)&&b(`div`,{...V(K.iconSlot),children:b(C_,{item:e,iconType:e.iconType||`text`,xstyle:[K.icon,e.disabled&&K.dimmed],spinnerXstyle:e.disabled&&K.dimmed})}),b(`div`,{...i,"data-testid":e.labelTestId,"data-customid":e.labelCustomId,className:H(i.className,e.labelClasses),children:e.label})]}),e.hasDivider&&b(__,{"data-testid":`dropdown-divider-${n}`,...V(K.separator)})]},(e.id||``)+n)})]})})})]})};var E_=w_,D_=`Popover`,[O_,k_]=F(D_,[zf]),A_=zf(),[j_,M_]=O_(D_),N_=t=>{let{__scopePopover:n,children:r,open:i,defaultOpen:a,onOpenChange:o,modal:s=!1}=t,c=A_(n),l=e.useRef(null),[u,d]=e.useState(!1),[f,p]=pe({prop:i,defaultProp:a??!1,onChange:o,caller:D_});return b(tp,{...c,children:b(j_,{scope:n,contentId:Te(),triggerRef:l,open:f,onOpenChange:p,onOpenToggle:e.useCallback(()=>p(e=>!e),[p]),hasCustomAnchor:u,onCustomAnchorAdd:e.useCallback(()=>d(!0),[]),onCustomAnchorRemove:e.useCallback(()=>d(!1),[]),modal:s,children:r})})};N_.displayName=D_;var P_=`PopoverAnchor`,F_=e.forwardRef((t,n)=>{let{__scopePopover:r,...i}=t,a=M_(P_,r),o=A_(r),{onCustomAnchorAdd:s,onCustomAnchorRemove:c}=a;return e.useEffect(()=>(s(),()=>c()),[s,c]),b(np,{...o,...i,ref:n})});F_.displayName=P_;var I_=`PopoverTrigger`,L_=e.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=M_(I_,n),a=A_(n),o=I(t,i.triggerRef),s=b(B.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":i.open,"aria-controls":i.contentId,"data-state":Q_(i.open),...r,ref:o,onClick:z(e.onClick,i.onOpenToggle)});return i.hasCustomAnchor?s:b(np,{asChild:!0,...a,children:s})});L_.displayName=I_;var R_=`PopoverPortal`,[z_,B_]=O_(R_,{forceMount:void 0}),V_=e=>{let{__scopePopover:t,forceMount:n,children:r,container:i}=e,a=M_(R_,t);return b(z_,{scope:t,forceMount:n,children:b(ye,{present:n||a.open,children:b(op,{asChild:!0,container:i,children:r})})})};V_.displayName=R_;var H_=`PopoverContent`,U_=e.forwardRef((e,t)=>{let n=B_(H_,e.__scopePopover),{forceMount:r=n.forceMount,...i}=e,a=M_(H_,e.__scopePopover);return b(ye,{present:r||a.open,children:a.modal?b(G_,{...i,ref:t}):b(K_,{...i,ref:t})})});U_.displayName=H_;var W_=oe(`PopoverContent.RemoveScroll`),G_=e.forwardRef((t,n)=>{let r=M_(H_,t.__scopePopover),i=e.useRef(null),a=I(n,i),o=e.useRef(!1);return e.useEffect(()=>{let e=i.current;if(e)return Ip(e)},[]),b(Km,{as:W_,allowPinchZoom:!0,children:b(q_,{...t,ref:a,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:z(t.onCloseAutoFocus,e=>{e.preventDefault(),o.current||r.triggerRef.current?.focus()}),onPointerDownOutside:z(t.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0,r=t.button===2||n;o.current=r},{checkForDefaultPrevented:!1}),onFocusOutside:z(t.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),K_=e.forwardRef((t,n)=>{let r=M_(H_,t.__scopePopover),i=e.useRef(!1),a=e.useRef(!1);return b(q_,{...t,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:e=>{t.onCloseAutoFocus?.(e),e.defaultPrevented||(i.current||r.triggerRef.current?.focus(),e.preventDefault()),i.current=!1,a.current=!1},onInteractOutside:e=>{t.onInteractOutside?.(e),e.defaultPrevented||(i.current=!0,e.detail.originalEvent.type===`pointerdown`&&(a.current=!0));let n=e.target,o=r.triggerRef.current?.contains(n);o&&e.preventDefault(),e.detail.originalEvent.type===`focusin`&&a.current&&e.preventDefault()}})}),q_=e.forwardRef((e,t)=>{let{__scopePopover:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,disableOutsidePointerEvents:o,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:l,onInteractOutside:u,...d}=e,f=M_(H_,n),p=A_(n);return Yl(),b(tu,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a,children:b(Vl,{asChild:!0,disableOutsidePointerEvents:o,onInteractOutside:u,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:l,onDismiss:()=>f.onOpenChange(!1),children:b(rp,{"data-state":Q_(f.open),role:`dialog`,id:f.contentId,...p,...d,ref:t,style:{...d.style,"--radix-popover-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-popover-content-available-width":`var(--radix-popper-available-width)`,"--radix-popover-content-available-height":`var(--radix-popper-available-height)`,"--radix-popover-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-popover-trigger-height":`var(--radix-popper-anchor-height)`}})})})}),J_=`PopoverClose`,Y_=e.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=M_(J_,n);return b(B.button,{type:`button`,...r,ref:t,onClick:z(e.onClick,()=>i.onOpenChange(!1))})});Y_.displayName=J_;var X_=`PopoverArrow`,Z_=e.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=A_(n);return b(ip,{...i,...r,ref:t})});Z_.displayName=X_;function Q_(e){return e?`open`:`closed`}var $_=N_,ev=L_,tv=V_,nv=U_,rv=Z_;const iv={triggerContent:{k3XXqK:`x1t137rt`,kMwMTN:`x14yi97k`,$$css:!0},fullWidthContent:{k1xSpc:`x78zum5`,kXwgrk:`xdt5ytf`,kGNEyG:`x6s0dn4`,kjj79g:`xl56j7k`,$$css:!0},inline:{k1xSpc:`xt0psk2`,$$css:!0},disabled:{kkrTdU:`x1h6gzvc`,kSiTet:`xbyyjgo`,$$css:!0},content:{kVAEAm:`x1n2onr6`,kY2c9j:`x1i7x82i`,k7Eaqz:`x1vi9356`,kzqmXN:`xh8yej3`,kZKoxP:`x5yr21d`,kMwMTN:`xcmjw3v`,$$css:!0}},av=({children:e,trigger:t,id:n,hasArrow:r,extraTriggerClassNames:i,extraPopoverClassNames:a,xstyle:o,contentXstyle:s,containerTestId:c,onInteractOutside:l,onPointerDownOutside:u,isTriggerAsChild:d=!1,shouldTriggerFullWidth:p=!1,disabled:m=!1,align:h=`end`,alignOffset:g=-35,placement:y=`bottom`,placementOffset:S=2,isHoverEnabled:C=!1,hoverOpenDelay:w=300,onOpenChange:T,isOpen:E,isCloseOnContentClick:D=!1,isPortal:O=!1,hideWhenDetached:k=!1,...A})=>{let j=el(A),M=_(null),[ee,N]=v(!1),te=()=>{M.current&&=(clearTimeout(M.current),null)},P=()=>{C&&(te(),M.current=setTimeout(()=>{N(!0),T&&T(!0)},w))},ne=()=>{C&&(te(),M.current=setTimeout(()=>{N(!1),T&&T(!1)},200))};f(()=>te,[]);let F=V(S_.panel,S_.motion,iv.content,s),re=V(iv.triggerContent,m&&iv.disabled,p?iv.fullWidthContent:iv.inline,o),ie=()=>b(nv,{sideOffset:S,align:h,side:y,onInteractOutside:l,onPointerDownOutside:u,alignOffset:C?-10:g,hideWhenDetached:k,asChild:!0,onClick:()=>D&&T&&T(!1),children:x(`div`,{"data-testid":c,...F,className:H(F.className,a),children:[r&&b(rv,{asChild:!0,children:b(`div`,{...V(S_.arrow)})}),e]})}),ae=e=>x($_,{open:e,defaultOpen:!1,onOpenChange:T,children:[t?b(ev,{id:n,asChild:d,...{0:{className:`xjbqb8w x1t137rt xc342km x1717udv xln7xf2 x1heor9g`},1:{className:`xjbqb8w x1t137rt xc342km x1717udv xln7xf2 x1heor9g x5yr21d xh8yej3`}}[!!p<<0],disabled:m,children:b(`div`,{...j,onMouseOver:P,onMouseOut:ne,...re,className:H(re.className,i),children:t})}):b(ev,{asChild:!0,children:b(`div`,{})}),O?b(tv,{children:ie()}):ie()]});return ae(C?ee:E)};var ov=av;const sv=o({});function cv(e){let t=_(null);return t.current===null&&(t.current=e()),t.current}const lv=typeof window<`u`,uv=lv?h:f,dv=o(null);function fv(e,t){e.indexOf(t)===-1&&e.push(t)}function pv(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}const mv=(e,t,n)=>n>t?t:n<e?e:n,hv={},gv=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function _v(e){return typeof e==`object`&&!!e}const vv=e=>/^0[^.\s]+$/u.test(e);function yv(e){let t;return()=>(t===void 0&&(t=e()),t)}const bv=e=>e,xv=(e,t)=>n=>t(e(n)),Sv=(...e)=>e.reduce(xv),Cv=(e,t,n)=>{let r=t-e;return r===0?1:(n-e)/r};var wv=class{constructor(){this.subscriptions=[]}add(e){return fv(this.subscriptions,e),()=>pv(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};const Tv=e=>e*1e3,Ev=e=>e/1e3;function Dv(e,t){return t?e*(1e3/t):0}const Ov=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e;function kv(e,t,n,r,i){let a,o,s=0;do o=t+(n-t)/2,a=Ov(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>1e-7&&++s<12);return o}function Av(e,t,n,r){if(e===t&&n===r)return bv;let i=t=>kv(t,0,1,e,n);return e=>e===0||e===1?e:Ov(i(e),t,r)}const jv=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Mv=e=>t=>1-e(1-t),Nv=Av(.33,1.53,.69,.99),Pv=Mv(Nv),Fv=jv(Pv),Iv=e=>(e*=2)<1?.5*Pv(e):.5*(2-2**(-10*(e-1))),Lv=e=>1-Math.sin(Math.acos(e)),Rv=Mv(Lv),zv=jv(Lv),Bv=Av(.42,0,1,1),Vv=Av(0,0,.58,1),Hv=Av(.42,0,.58,1),Uv=e=>Array.isArray(e)&&typeof e[0]!=`number`,Wv=e=>Array.isArray(e)&&typeof e[0]==`number`,Gv={linear:bv,easeIn:Bv,easeInOut:Hv,easeOut:Vv,circIn:Lv,circInOut:zv,circOut:Rv,backIn:Pv,backInOut:Fv,backOut:Nv,anticipate:Iv},Kv=e=>typeof e==`string`,qv=e=>{if(Wv(e)){e.length;let[t,n,r,i]=e;return Av(t,n,r,i)}else if(Kv(e))return Gv[e],`${e}`,Gv[e];return e},Jv=[`setup`,`read`,`resolveKeyframes`,`preUpdate`,`update`,`preRender`,`render`,`postRender`],Yv={value:null,addProjectionMetrics:null};function Xv(e,t){let n=new Set,r=new Set,i=!1,a=!1,o=new WeakSet,s={delta:0,timestamp:0,isProcessing:!1},c=0;function l(t){o.has(t)&&(u.schedule(t),e()),c++,t(s)}let u={schedule:(e,t=!1,a=!1)=>{let s=a&&i,c=s?n:r;return t&&o.add(e),c.has(e)||c.add(e),e},cancel:e=>{r.delete(e),o.delete(e)},process:e=>{if(s=e,i){a=!0;return}i=!0,[n,r]=[r,n],n.forEach(l),t&&Yv.value&&Yv.value.frameloop[t].push(c),c=0,n.clear(),i=!1,a&&(a=!1,u.process(e))}};return u}function Zv(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=Jv.reduce((e,n)=>(e[n]=Xv(a,t?n:void 0),e),{}),{setup:s,read:c,resolveKeyframes:l,preUpdate:u,update:d,preRender:f,render:p,postRender:m}=o,h=()=>{let a=hv.useManualTiming?i.timestamp:performance.now();n=!1,hv.useManualTiming||(i.delta=r?1e3/60:Math.max(Math.min(a-i.timestamp,40),1)),i.timestamp=a,i.isProcessing=!0,s.process(i),c.process(i),l.process(i),u.process(i),d.process(i),f.process(i),p.process(i),m.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(h))},g=()=>{n=!0,r=!0,i.isProcessing||e(h)},_=Jv.reduce((e,t)=>{let r=o[t];return e[t]=(e,t=!1,i=!1)=>(n||g(),r.schedule(e,t,i)),e},{}),v=e=>{for(let t=0;t<Jv.length;t++)o[Jv[t]].cancel(e)};return{schedule:_,cancel:v,state:i,steps:o}}const{schedule:Qv,cancel:$v,state:ey,steps:ty}=Zv(typeof requestAnimationFrame<`u`?requestAnimationFrame:bv,!0);let ny;function ry(){ny=void 0}const iy={now:()=>(ny===void 0&&iy.set(ey.isProcessing||hv.useManualTiming?ey.timestamp:performance.now()),ny),set:e=>{ny=e,queueMicrotask(ry)}},ay={layout:0,mainThread:0,waapi:0},oy=e=>t=>typeof t==`string`&&t.startsWith(e),sy=oy(`--`),cy=oy(`var(--`),ly=e=>{let t=cy(e);return t?uy.test(e.split(`/*`)[0].trim()):!1},uy=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,dy={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},fy={...dy,transform:e=>mv(0,1,e)},py={...dy,default:1},my=e=>Math.round(e*1e5)/1e5,hy=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function gy(e){return e==null}const _y=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,vy=(e,t)=>n=>!!(typeof n==`string`&&_y.test(n)&&n.startsWith(e)||t&&!gy(n)&&Object.prototype.hasOwnProperty.call(n,t)),yy=(e,t,n)=>r=>{if(typeof r!=`string`)return r;let[i,a,o,s]=r.match(hy);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},by=e=>mv(0,255,e),xy={...dy,transform:e=>Math.round(by(e))},Sy={test:vy(`rgb`,`red`),parse:yy(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+xy.transform(e)+`, `+xy.transform(t)+`, `+xy.transform(n)+`, `+my(fy.transform(r))+`)`};function Cy(e){let t=``,n=``,r=``,i=``;return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const wy={test:vy(`#`),parse:Cy,transform:Sy.transform},Ty=e=>({test:t=>typeof t==`string`&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Ey=Ty(`deg`),Dy=Ty(`%`),q=Ty(`px`),Oy=Ty(`vh`),ky=Ty(`vw`),Ay=(()=>({...Dy,parse:e=>Dy.parse(e)/100,transform:e=>Dy.transform(e*100)}))(),jy={test:vy(`hsl`,`hue`),parse:yy(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+Dy.transform(my(t))+`, `+Dy.transform(my(n))+`, `+my(fy.transform(r))+`)`},My={test:e=>Sy.test(e)||wy.test(e)||jy.test(e),parse:e=>Sy.test(e)?Sy.parse(e):jy.test(e)?jy.parse(e):wy.parse(e),transform:e=>typeof e==`string`?e:e.hasOwnProperty(`red`)?Sy.transform(e):jy.transform(e),getAnimatableNone:e=>{let t=My.parse(e);return t.alpha=0,My.transform(t)}},Ny=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Py(e){return isNaN(e)&&typeof e==`string`&&(e.match(hy)?.length||0)+(e.match(Ny)?.length||0)>0}const Fy=`number`,Iy=`color`,Ly=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Ry(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0,o=t.replace(Ly,e=>(My.test(e)?(r.color.push(a),i.push(Iy),n.push(My.parse(e))):e.startsWith(`var(`)?(r.var.push(a),i.push(`var`),n.push(e)):(r.number.push(a),i.push(Fy),n.push(parseFloat(e))),++a,"${}")),s=o.split("${}");return{values:n,split:s,indexes:r,types:i}}function zy(e){return Ry(e).values}function By(e){let{split:t,types:n}=Ry(e),r=t.length;return e=>{let i=``;for(let a=0;a<r;a++)if(i+=t[a],e[a]!==void 0){let t=n[a];t===Fy?i+=my(e[a]):t===Iy?i+=My.transform(e[a]):i+=e[a]}return i}}const Vy=e=>typeof e==`number`?0:My.test(e)?My.getAnimatableNone(e):e;function Hy(e){let t=zy(e),n=By(e);return n(t.map(Vy))}const Uy={test:Py,parse:zy,createTransformer:By,getAnimatableNone:Hy};function Wy(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Gy({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=Wy(s,r,e+1/3),a=Wy(s,r,e),o=Wy(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function Ky(e,t){return n=>n>0?t:e}const qy=(e,t,n)=>e+(t-e)*n,Jy=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},Yy=[wy,Sy,jy],Xy=e=>Yy.find(t=>t.test(e));function Zy(e){let t=Xy(e);if(`${e}`,!t)return!1;let n=t.parse(e);return t===jy&&(n=Gy(n)),n}const Qy=(e,t)=>{let n=Zy(e),r=Zy(t);if(!n||!r)return Ky(e,t);let i={...n};return e=>(i.red=Jy(n.red,r.red,e),i.green=Jy(n.green,r.green,e),i.blue=Jy(n.blue,r.blue,e),i.alpha=qy(n.alpha,r.alpha,e),Sy.transform(i))},$y=new Set([`none`,`hidden`]);function eb(e,t){return $y.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function tb(e,t){return n=>qy(e,t,n)}function nb(e){return typeof e==`number`?tb:typeof e==`string`?ly(e)?Ky:My.test(e)?Qy:ob:Array.isArray(e)?rb:typeof e==`object`?My.test(e)?Qy:ib:Ky}function rb(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>nb(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function ib(e,t){let n={...e,...t},r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=nb(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}function ab(e,t){let n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let a=t.types[i],o=e.indexes[a][r[a]],s=e.values[o]??0;n[i]=s,r[a]++}return n}const ob=(e,t)=>{let n=Uy.createTransformer(t),r=Ry(e),i=Ry(t),a=r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length;return a?$y.has(e)&&!i.values.length||$y.has(t)&&!r.values.length?eb(e,t):Sv(rb(ab(r,i),i.values),n):(`${e}${t}`,Ky(e,t))};function sb(e,t,n){if(typeof e==`number`&&typeof t==`number`&&typeof n==`number`)return qy(e,t,n);let r=nb(e);return r(e,t)}const cb=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>Qv.update(t,e),stop:()=>$v(t),now:()=>ey.isProcessing?ey.timestamp:iy.now()}},lb=(e,t,n=10)=>{let r=``,i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)r+=Math.round(e(t/(i-1))*1e4)/1e4+`, `;return`linear(${r.substring(0,r.length-2)})`},ub=2e4;function db(e){let t=0,n=e.next(t);for(;!n.done&&t<ub;)t+=50,n=e.next(t);return t>=ub?1/0:t}function fb(e,t=100,n){let r=n({...e,keyframes:[0,t]}),i=Math.min(db(r),ub);return{type:`keyframes`,ease:e=>r.next(i*e).value/t,duration:Ev(i)}}function pb(e,t,n){let r=Math.max(t-5,0);return Dv(n-e(r),t-r)}const mb={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},hb=.001;function gb({duration:e=mb.duration,bounce:t=mb.bounce,velocity:n=mb.velocity,mass:r=mb.mass}){let i,a;mb.maxDuration;let o=1-t;o=mv(mb.minDamping,mb.maxDamping,o),e=mv(mb.minDuration,mb.maxDuration,Ev(e)),o<1?(i=t=>{let r=t*o,i=r*e,a=r-n,s=vb(t,o),c=Math.exp(-i);return hb-a/s*c},a=t=>{let r=t*o,a=r*e,s=a*n+n,c=o**2*t**2*e,l=Math.exp(-a),u=vb(t**2,o),d=-i(t)+hb>0?-1:1;return d*((s-c)*l)/u}):(i=t=>{let r=Math.exp(-t*e),i=(t-n)*e+1;return-hb+r*i},a=t=>{let r=Math.exp(-t*e),i=(n-t)*(e*e);return r*i});let s=5/e,c=_b(i,a,s);if(e=Tv(e),isNaN(c))return{stiffness:mb.stiffness,damping:mb.damping,duration:e};{let t=c**2*r;return{stiffness:t,damping:o*2*Math.sqrt(r*t),duration:e}}}function _b(e,t,n){let r=n;for(let n=1;n<12;n++)r-=e(r)/t(r);return r}function vb(e,t){return e*Math.sqrt(1-t*t)}const yb=[`duration`,`bounce`],bb=[`stiffness`,`damping`,`mass`];function xb(e,t){return t.some(t=>e[t]!==void 0)}function Sb(e){let t={velocity:mb.velocity,stiffness:mb.stiffness,damping:mb.damping,mass:mb.mass,isResolvedFromDuration:!1,...e};if(!xb(e,bb)&&xb(e,yb))if(e.visualDuration){let n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*mv(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:mb.mass,stiffness:i,damping:a}}else{let n=gb(e);t={...t,...n,mass:mb.mass},t.isResolvedFromDuration=!0}return t}function Cb(e=mb.visualDuration,t=mb.bounce){let n=typeof e==`object`?e:{visualDuration:e,keyframes:[0,1],bounce:t},{restSpeed:r,restDelta:i}=n,a=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],s={done:!1,value:a},{stiffness:c,damping:l,mass:u,duration:d,velocity:f,isResolvedFromDuration:p}=Sb({...n,velocity:-Ev(n.velocity||0)}),m=f||0,h=l/(2*Math.sqrt(c*u)),g=o-a,_=Ev(Math.sqrt(c/u)),v=Math.abs(g)<5;r||=v?mb.restSpeed.granular:mb.restSpeed.default,i||=v?mb.restDelta.granular:mb.restDelta.default;let y;if(h<1){let e=vb(_,h);y=t=>{let n=Math.exp(-h*_*t);return o-n*((m+h*_*g)/e*Math.sin(e*t)+g*Math.cos(e*t))}}else if(h===1)y=e=>o-Math.exp(-_*e)*(g+(m+_*g)*e);else{let e=_*Math.sqrt(h*h-1);y=t=>{let n=Math.exp(-h*_*t),r=Math.min(e*t,300);return o-n*((m+h*_*g)*Math.sinh(r)+e*g*Math.cosh(r))/e}}let b={calculatedDuration:p&&d||null,next:e=>{let t=y(e);if(p)s.done=e>=d;else{let n=e===0?m:0;h<1&&(n=e===0?Tv(m):pb(y,e,t));let a=Math.abs(n)<=r,c=Math.abs(o-t)<=i;s.done=a&&c}return s.value=s.done?o:t,s},toString:()=>{let e=Math.min(db(b),ub),t=lb(t=>b.next(e*t).value,e,30);return e+`ms `+t},toTransition:()=>{}};return b}Cb.applyToOptions=e=>{let t=fb(e,100,Cb);return e.ease=t.ease,e.duration=Tv(t.duration),e.type=`keyframes`,e};function wb({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:c,restDelta:l=.5,restSpeed:u}){let d=e[0],f={done:!1,value:d},p=e=>s!==void 0&&e<s||c!==void 0&&e>c,m=e=>s===void 0?c:c===void 0||Math.abs(s-e)<Math.abs(c-e)?s:c,h=n*t,g=d+h,_=o===void 0?g:o(g);_!==g&&(h=_-d);let v=e=>-h*Math.exp(-e/r),y=e=>_+v(e),b=e=>{let t=v(e),n=y(e);f.done=Math.abs(t)<=l,f.value=f.done?_:n},x,S,C=e=>{p(f.value)&&(x=e,S=Cb({keyframes:[f.value,m(f.value)],velocity:pb(y,e,f.value),damping:i,stiffness:a,restDelta:l,restSpeed:u}))};return C(0),{calculatedDuration:null,next:e=>{let t=!1;return!S&&x===void 0&&(t=!0,b(e),C(e)),x!==void 0&&e>=x?S.next(e-x):(!t&&b(e),f)}}}function Tb(e,t,n){let r=[],i=n||hv.mix||sb,a=e.length-1;for(let n=0;n<a;n++){let a=i(e[n],e[n+1]);if(t){let e=Array.isArray(t)?t[n]||bv:t;a=Sv(e,a)}r.push(a)}return r}function Eb(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let a=e.length;if(t.length,a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];let o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=Tb(t,r,i),c=s.length,l=n=>{if(o&&n<e[0])return t[0];let r=0;if(c>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=Cv(e[r],e[r+1],n);return s[r](i)};return n?t=>l(mv(e[0],e[a-1],t)):l}function Db(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=Cv(0,t,r);e.push(qy(n,1,i))}}function Ob(e){let t=[0];return Db(t,e.length-1),t}function kb(e,t){return e.map(e=>e*t)}function Ab(e,t){return e.map(()=>t||Hv).splice(0,e.length-1)}function jb({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`}){let i=Uv(r)?r.map(qv):qv(r),a={done:!1,value:t[0]},o=kb(n&&n.length===t.length?n:Ob(t),e),s=Eb(o,t,{ease:Array.isArray(i)?i:Ab(t,i)});return{calculatedDuration:e,next:t=>(a.value=s(t),a.done=t>=e,a)}}const Mb=e=>e!==null;function Nb(e,{repeat:t,repeatType:n=`loop`},r,i=1){let a=e.filter(Mb),o=i<0||t&&n!==`loop`&&t%2==1,s=o?0:a.length-1;return!s||r===void 0?a[s]:r}const Pb={decay:wb,inertia:wb,tween:jb,keyframes:jb,spring:Cb};function Fb(e){typeof e.type==`string`&&(e.type=Pb[e.type])}var Ib=class{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}};const Lb=e=>e/100;var Rb=class extends Ib{constructor(e){super(),this.state=`idle`,this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==iy.now()&&this.tick(iy.now()),this.isStopped=!0,this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},ay.mainThread++,this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){let{options:e}=this;Fb(e);let{type:t=jb,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||jb;s!==jb&&typeof o[0]!=`number`&&(this.mixKeyframes=Sv(Lb,sb(o[0],o[1])),o=[0,100]);let c=s({...e,keyframes:o});i===`mirror`&&(this.mirroredGenerator=s({...e,keyframes:[...o].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=db(c));let{calculatedDuration:l}=c;this.calculatedDuration=l,this.resolvedDuration=l+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=c}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime===null?this.currentTime=t:this.currentTime=this.holdTime}tick(e,t=!1){let{generator:n,totalDuration:r,mixKeyframes:i,mirroredGenerator:a,resolvedDuration:o,calculatedDuration:s}=this;if(this.startTime===null)return n.next(0);let{delay:c=0,keyframes:l,repeat:u,repeatType:d,repeatDelay:f,type:p,onUpdate:m,finalKeyframe:h}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let g=this.currentTime-c*(this.playbackSpeed>=0?1:-1),_=this.playbackSpeed>=0?g<0:g>r;this.currentTime=Math.max(g,0),this.state===`finished`&&this.holdTime===null&&(this.currentTime=r);let v=this.currentTime,y=n;if(u){let e=Math.min(this.currentTime,r)/o,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),n===1&&t--,t=Math.min(t,u+1);let i=!!(t%2);i&&(d===`reverse`?(n=1-n,f&&(n-=f/o)):d===`mirror`&&(y=a)),v=mv(0,1,n)*o}let b=_?{done:!1,value:l[0]}:y.next(v);i&&(b.value=i(b.value));let{done:x}=b;!_&&s!==null&&(x=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let S=this.holdTime===null&&(this.state===`finished`||this.state===`running`&&x);return S&&p!==wb&&(b.value=Nb(l,this.options,h,this.speed)),m&&m(b.value),S&&this.finish(),b}then(e,t){return this.finished.then(e,t)}get duration(){return Ev(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+Ev(e)}get time(){return Ev(this.currentTime)}set time(e){e=Tv(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(e){this.updateTime(iy.now());let t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=Ev(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=cb,startTime:t}=this.options;this.driver||=e(e=>this.tick(e)),this.options.onPlay?.();let n=this.driver.now();this.state===`finished`?(this.updateFinished(),this.startTime=n):this.holdTime===null?this.startTime||=t??n:this.startTime=n-this.holdTime,this.state===`finished`&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state=`running`,this.driver.start()}pause(){this.state=`paused`,this.updateTime(iy.now()),this.holdTime=this.currentTime}complete(){this.state!==`running`&&this.play(),this.state=`finished`,this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state=`finished`,this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state=`idle`,this.stopDriver(),this.startTime=this.holdTime=null,ay.mainThread--}stopDriver(){this.driver&&=(this.driver.stop(),void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type=`keyframes`,this.options.ease=`linear`,this.initAnimation()),this.driver?.stop(),e.observe(this)}};function zb(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const Bb=e=>e*180/Math.PI,Vb=e=>{let t=Bb(Math.atan2(e[1],e[0]));return Ub(t)},Hb={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Vb,rotateZ:Vb,skewX:e=>Bb(Math.atan(e[1])),skewY:e=>Bb(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Ub=e=>(e%=360,e<0&&(e+=360),e),Wb=Vb,Gb=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Kb=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),qb={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Gb,scaleY:Kb,scale:e=>(Gb(e)+Kb(e))/2,rotateX:e=>Ub(Bb(Math.atan2(e[6],e[5]))),rotateY:e=>Ub(Bb(Math.atan2(-e[2],e[0]))),rotateZ:Wb,rotate:Wb,skewX:e=>Bb(Math.atan(e[4])),skewY:e=>Bb(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Jb(e){return e.includes(`scale`)?1:0}function Yb(e,t){if(!e||e===`none`)return Jb(t);let n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),r,i;if(n)r=qb,i=n;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=Hb,i=t}if(!i)return Jb(t);let a=r[t],o=i[1].split(`,`).map(Zb);return typeof a==`function`?a(o):o[a]}const Xb=(e,t)=>{let{transform:n=`none`}=getComputedStyle(e);return Yb(n,t)};function Zb(e){return parseFloat(e.trim())}const Qb=[`transformPerspective`,`x`,`y`,`z`,`translateX`,`translateY`,`translateZ`,`scale`,`scaleX`,`scaleY`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skew`,`skewX`,`skewY`],$b=(()=>new Set(Qb))(),ex=e=>e===dy||e===q,tx=new Set([`x`,`y`,`z`]),nx=Qb.filter(e=>!tx.has(e));function rx(e){let t=[];return nx.forEach(n=>{let r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith(`scale`)?1:0))}),t}const ix={width:({x:e},{paddingLeft:t=`0`,paddingRight:n=`0`})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t=`0`,paddingBottom:n=`0`})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>Yb(t,`x`),y:(e,{transform:t})=>Yb(t,`y`)};ix.translateX=ix.x,ix.translateY=ix.y;const ax=new Set;let ox=!1,sx=!1,cx=!1;function lx(){if(sx){let e=Array.from(ax).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t=rx(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=n.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{e.suspendedScrollY!==void 0&&window.scrollTo(0,e.suspendedScrollY)})}sx=!1,ox=!1,ax.forEach(e=>e.complete(cx)),ax.clear()}function ux(){ax.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(sx=!0)})}function dx(){cx=!0,ux(),lx(),cx=!1}var fx=class{constructor(e,t,n,r,i,a=!1){this.state=`pending`,this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=a}scheduleResolve(){this.state=`scheduled`,this.isAsync?(ax.add(this),ox||(ox=!0,Qv.read(ux),Qv.resolveKeyframes(lx))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(e[0]===null){let i=r?.get(),a=e[e.length-1];if(i!==void 0)e[0]=i;else if(n&&t){let r=n.readValue(t,a);r!=null&&(e[0]=r)}e[0]===void 0&&(e[0]=a),r&&i===void 0&&r.set(e[0])}zb(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state=`complete`,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),ax.delete(this)}cancel(){this.state===`scheduled`&&(ax.delete(this),this.state=`pending`)}resume(){this.state===`pending`&&this.scheduleResolve()}};const px=e=>e.startsWith(`--`);function mx(e,t,n){px(t)?e.style.setProperty(t,n):e.style[t]=n}const hx=yv(()=>window.ScrollTimeline!==void 0),gx={};function _x(e,t){let n=yv(e);return()=>gx[t]??n()}const vx=_x(()=>{try{document.createElement(`div`).animate({opacity:0},{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`),yx=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,bx={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:yx([0,.65,.55,1]),circOut:yx([.55,0,1,.45]),backIn:yx([.31,.01,.66,-.59]),backOut:yx([.33,1.53,.69,.99])};function xx(e,t){if(e)return typeof e==`function`?vx()?lb(e,t):`ease-out`:Wv(e)?yx(e):Array.isArray(e)?e.map(e=>xx(e,t)||bx.easeOut):bx[e]}function Sx(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o=`loop`,ease:s=`easeOut`,times:c}={},l=void 0){let u={[t]:n};c&&(u.offset=c);let d=xx(s,i);Array.isArray(d)&&(u.easing=d),Yv.value&&ay.waapi++;let f={delay:r,duration:i,easing:Array.isArray(d)?`linear`:d,fill:`both`,iterations:a+1,direction:o===`reverse`?`alternate`:`normal`};l&&(f.pseudoElement=l);let p=e.animate(u,f);return Yv.value&&p.finished.finally(()=>{ay.waapi--}),p}function Cx(e){return typeof e==`function`&&`applyToOptions`in e}function wx({type:e,...t}){return Cx(e)&&vx()?e.applyToOptions(t):(t.duration??=300,t.ease??=`easeOut`,t)}var Tx=class extends Ib{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,!e)return;let{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:o,onComplete:s}=e;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=e,e.type;let c=wx(e);this.animation=Sx(t,n,r,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=Nb(r,this.options,o,this.speed);this.updateMotionValue?this.updateMotionValue(e):mx(t,n,e),this.animation.cancel()}s?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state===`finished`&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;e===`idle`||e===`finished`||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){let e=this.animation.effect?.getComputedTiming?.().duration||0;return Ev(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+Ev(e)}get time(){return Ev(Number(this.animation.currentTime)||0)}set time(e){this.finishedTime=null,this.animation.currentTime=Tv(e)}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime===null?this.animation.playState:`finished`}get startTime(){return Number(this.animation.startTime)}set startTime(e){this.animation.startTime=e}attachTimeline({timeline:e,observe:t}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:`linear`}),this.animation.onfinish=null,e&&hx()?(this.animation.timeline=e,bv):t(this)}};const Ex={anticipate:Iv,backInOut:Fv,circInOut:zv};function Dx(e){return e in Ex}function Ox(e){typeof e.ease==`string`&&Dx(e.ease)&&(e.ease=Ex[e.ease])}var kx=class extends Tx{constructor(e){Ox(e),Fb(e),super(e),e.startTime&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:n,onComplete:r,element:i,...a}=this.options;if(!t)return;if(e!==void 0){t.set(e);return}let o=new Rb({...a,autoplay:!1}),s=Tv(this.finishedTime??this.time);t.setWithVelocity(o.sample(s-10).value,o.sample(s).value,10),o.stop()}};const Ax=(e,t)=>t===`zIndex`?!1:!!(typeof e==`number`||Array.isArray(e)||typeof e==`string`&&(Uy.test(e)||e===`0`)&&!e.startsWith(`url(`));function jx(e){let t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function Mx(e,t,n,r){let i=e[0];if(i===null)return!1;if(t===`display`||t===`visibility`)return!0;let a=e[e.length-1],o=Ax(i,t),s=Ax(a,t);return`${t}${i}${a}${o?a:i}`,!o||!s?!1:jx(e)||(n===`spring`||Cx(n))&&r}function Nx(e){e.duration=0,e.type=`keyframes`}const Px=new Set([`opacity`,`clipPath`,`filter`,`transform`]),Fx=yv(()=>Object.hasOwnProperty.call(Element.prototype,`animate`));function Ix(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o}=e,s=t?.owner?.current;if(!(s instanceof HTMLElement))return!1;let{onUpdate:c,transformTemplate:l}=t.owner.getProps();return Fx()&&n&&Px.has(n)&&(n!==`transform`||!l)&&!c&&!r&&i!==`mirror`&&a!==0&&o!==`inertia`}var Lx=class extends Ib{constructor({autoplay:e=!0,delay:t=0,type:n=`keyframes`,repeat:r=0,repeatDelay:i=0,repeatType:a=`loop`,keyframes:o,name:s,motionValue:c,element:l,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=iy.now();let d={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:a,name:s,motionValue:c,element:l,...u},f=l?.KeyframeResolver||fx;this.keyframeResolver=new f(o,(e,t,n)=>this.onKeyframesResolved(e,t,d,!n),s,c,l),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){this.keyframeResolver=void 0;let{name:i,type:a,velocity:o,delay:s,isHandoff:c,onUpdate:l}=n;this.resolvedAt=iy.now(),Mx(e,i,a,o)||((hv.instantAnimations||!s)&&l?.(Nb(e,n,t)),e[0]=e[e.length-1],Nx(n),n.repeat=0);let u=r?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,d={startTime:u,finalKeyframe:t,...n,keyframes:e},f=!c&&Ix(d)?new kx({...d,element:d.motionValue.owner.current}):new Rb(d);f.finished.then(()=>this.notifyFinished()).catch(bv),this.pendingTimeline&&=(this.stopTimeline=f.attachTimeline(this.pendingTimeline),void 0),this._animation=f}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),dx()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}};const Rx=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function zx(e){let t=Rx.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}function Bx(e,t,n=1){`${e}`;let[r,i]=zx(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return gv(e)?parseFloat(e):e}return ly(i)?Bx(i,t,n+1):i}function Vx(e,t){return e?.[t]??e?.default??e}const Hx=new Set([`width`,`height`,`top`,`left`,`right`,`bottom`,...Qb]),Ux={test:e=>e===`auto`,parse:e=>e},Wx=e=>t=>t.test(e),Gx=[dy,q,Dy,Ey,ky,Oy,Ux],Kx=e=>Gx.find(Wx(e));function qx(e){return typeof e==`number`?e===0:e===null?!0:e===`none`||e===`0`||vv(e)}const Jx=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function Yx(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(hy)||[];if(!r)return e;let i=n.replace(r,``),a=Jx.has(t)?1:0;return r!==n&&(a*=100),t+`(`+a+i+`)`}const Xx=/\b([a-z-]*)\(.*?\)/gu,Zx={...Uy,getAnimatableNone:e=>{let t=e.match(Xx);return t?t.map(Yx).join(` `):e}},Qx={...dy,transform:Math.round},$x={rotate:Ey,rotateX:Ey,rotateY:Ey,rotateZ:Ey,scale:py,scaleX:py,scaleY:py,scaleZ:py,skew:Ey,skewX:Ey,skewY:Ey,distance:q,translateX:q,translateY:q,translateZ:q,x:q,y:q,z:q,perspective:q,transformPerspective:q,opacity:fy,originX:Ay,originY:Ay,originZ:q},eS={borderWidth:q,borderTopWidth:q,borderRightWidth:q,borderBottomWidth:q,borderLeftWidth:q,borderRadius:q,radius:q,borderTopLeftRadius:q,borderTopRightRadius:q,borderBottomRightRadius:q,borderBottomLeftRadius:q,width:q,maxWidth:q,height:q,maxHeight:q,top:q,right:q,bottom:q,left:q,padding:q,paddingTop:q,paddingRight:q,paddingBottom:q,paddingLeft:q,margin:q,marginTop:q,marginRight:q,marginBottom:q,marginLeft:q,backgroundPositionX:q,backgroundPositionY:q,...$x,zIndex:Qx,fillOpacity:fy,strokeOpacity:fy,numOctaves:Qx},tS={...eS,color:My,backgroundColor:My,outlineColor:My,fill:My,stroke:My,borderColor:My,borderTopColor:My,borderRightColor:My,borderBottomColor:My,borderLeftColor:My,filter:Zx,WebkitFilter:Zx},nS=e=>tS[e];function rS(e,t){let n=nS(e);return n!==Zx&&(n=Uy),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const iS=new Set([`auto`,`none`,`0`]);function aS(e,t,n){let r=0,i;for(;r<e.length&&!i;){let t=e[r];typeof t==`string`&&!iS.has(t)&&Ry(t).values.length&&(i=e[r]),r++}if(i&&n)for(let r of t)e[r]=rS(n,i)}var oS=class extends fx{constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if(typeof r==`string`&&(r=r.trim(),ly(r))){let i=Bx(r,t.current);i!==void 0&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!Hx.has(n)||e.length!==2)return;let[r,i]=e,a=Kx(r),o=Kx(i);if(a!==o)if(ex(a)&&ex(o))for(let t=0;t<e.length;t++){let n=e[t];typeof n==`string`&&(e[t]=parseFloat(n))}else ix[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(e[t]===null||qx(e[t]))&&n.push(t);n.length&&aS(e,n,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;n===`height`&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=ix[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let r=t[t.length-1];r!==void 0&&e.getValue(n,r).jump(r,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:n}=this;if(!e||!e.current)return;let r=e.getValue(t);r&&r.jump(this.measuredOrigin,!1);let i=n.length-1,a=n[i];n[i]=ix[t](e.measureViewportBox(),window.getComputedStyle(e.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),this.removedTransforms?.length&&this.removedTransforms.forEach(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}};function sS(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e==`string`){let r=document;t&&(r=t.current);let i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}const cS=(e,t)=>t&&typeof e==`number`?t.transform(e):e;function lS(e){return _v(e)&&`offsetHeight`in e}const uS=e=>!isNaN(parseFloat(e)),dS={current:void 0};var fS=class{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=iy.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=iy.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=uS(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on(`change`,e)}on(e,t){this.events[e]||(this.events[e]=new wv);let n=this.events[e].add(t);return e===`change`?()=>{n(),Qv.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||=new Set,this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return dS.current&&dS.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=iy.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>30)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,30);return Dv(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function pS(e,t){return new fS(e,t)}const{schedule:mS,cancel:hS}=Zv(queueMicrotask,!1),gS={x:!1,y:!1};function _S(){return gS.x||gS.y}function vS(e){return e===`x`||e===`y`?gS[e]?null:(gS[e]=!0,()=>{gS[e]=!1}):gS.x||gS.y?null:(gS.x=gS.y=!0,()=>{gS.x=gS.y=!1})}function yS(e,t){let n=sS(e),r=new AbortController,i={passive:!0,...t,signal:r.signal},a=()=>r.abort();return[n,i,a]}function bS(e){return!(e.pointerType===`touch`||_S())}function xS(e,t,n={}){let[r,i,a]=yS(e,n),o=e=>{if(!bS(e))return;let{target:n}=e,r=t(n,e);if(typeof r!=`function`||!n)return;let a=e=>{bS(e)&&(r(e),n.removeEventListener(`pointerleave`,a))};n.addEventListener(`pointerleave`,a,i)};return r.forEach(e=>{e.addEventListener(`pointerenter`,o,i)}),a}const SS=(e,t)=>t?e===t?!0:SS(e,t.parentElement):!1,CS=e=>e.pointerType===`mouse`?typeof e.button!=`number`||e.button<=0:e.isPrimary!==!1,wS=new Set([`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`,`A`]);function TS(e){return wS.has(e.tagName)||e.tabIndex!==-1}const ES=new WeakSet;function DS(e){return t=>{t.key===`Enter`&&e(t)}}function OS(e,t){e.dispatchEvent(new PointerEvent(`pointer`+t,{isPrimary:!0,bubbles:!0}))}const kS=(e,t)=>{let n=e.currentTarget;if(!n)return;let r=DS(()=>{if(ES.has(n))return;OS(n,`down`);let e=DS(()=>{OS(n,`up`)}),r=()=>OS(n,`cancel`);n.addEventListener(`keyup`,e,t),n.addEventListener(`blur`,r,t)});n.addEventListener(`keydown`,r,t),n.addEventListener(`blur`,()=>n.removeEventListener(`keydown`,r),t)};function AS(e){return CS(e)&&!_S()}function jS(e,t,n={}){let[r,i,a]=yS(e,n),o=e=>{let r=e.currentTarget;if(!AS(e))return;ES.add(r);let a=t(r,e),o=(e,t)=>{window.removeEventListener(`pointerup`,s),window.removeEventListener(`pointercancel`,c),ES.has(r)&&ES.delete(r),AS(e)&&typeof a==`function`&&a(e,{success:t})},s=e=>{o(e,r===window||r===document||n.useGlobalTarget||SS(r,e.target))},c=e=>{o(e,!1)};window.addEventListener(`pointerup`,s,i),window.addEventListener(`pointercancel`,c,i)};return r.forEach(e=>{let t=n.useGlobalTarget?window:e;t.addEventListener(`pointerdown`,o,i),lS(e)&&(e.addEventListener(`focus`,e=>kS(e,i)),!TS(e)&&!e.hasAttribute(`tabindex`)&&(e.tabIndex=0))}),a}function MS(e){return _v(e)&&`ownerSVGElement`in e}function NS(e){return MS(e)&&e.tagName===`svg`}const PS=e=>!!(e&&e.getVelocity),FS=[...Gx,My,Uy],IS=e=>FS.find(Wx(e)),LS=o({transformPagePoint:e=>e,isStatic:!1,reducedMotion:`never`});function RS(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function zS(...e){return t=>{let n=!1,r=e.map(e=>{let r=RS(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():RS(e[t],null)}}}}function BS(...t){return e.useCallback(zS(...t),t)}var VS=class extends e.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){let e=t.offsetParent,n=lS(e)&&e.offsetWidth||0,r=this.props.sizeRef.current;r.height=t.offsetHeight||0,r.width=t.offsetWidth||0,r.top=t.offsetTop,r.left=t.offsetLeft,r.right=n-r.width-r.left}return null}componentDidUpdate(){}render(){return this.props.children}};function HS({children:t,isPresent:n,anchorX:r,root:i}){let a=p(),o=_(null),s=_({width:0,height:0,top:0,left:0,right:0}),{nonce:c}=d(LS),l=BS(o,t?.ref);return m(()=>{let{width:e,height:t,top:l,left:u,right:d}=s.current;if(n||!o.current||!e||!t)return;let f=r===`left`?`left: ${u}`:`right: ${d}`;o.current.dataset.motionPopId=a;let p=document.createElement(`style`);c&&(p.nonce=c);let m=i??document.head;return m.appendChild(p),p.sheet&&p.sheet.insertRule(`
|
|
1126
|
+
`},Bm=0,Vm=[];function Hm(t){var n=e.useRef([]),r=e.useRef([0,0]),i=e.useRef(),a=e.useState(Bm++)[0],o=e.useState(um)[0],s=e.useRef(t);e.useEffect(function(){s.current=t},[t]),e.useEffect(function(){if(t.inert){document.body.classList.add(`block-interactivity-${a}`);var e=zp([t.lockRef.current],(t.shards||[]).map(Lm),!0).filter(Boolean);return e.forEach(function(e){return e.classList.add(`allow-interactivity-${a}`)}),function(){document.body.classList.remove(`block-interactivity-${a}`),e.forEach(function(e){return e.classList.remove(`allow-interactivity-${a}`)})}}},[t.inert,t.lockRef.current,t.shards]);var c=e.useCallback(function(e,t){if(`touches`in e&&e.touches.length===2||e.type===`wheel`&&e.ctrlKey)return!s.current.allowPinchZoom;var n=Fm(e),a=r.current,o=`deltaX`in e?e.deltaX:a[0]-n[0],c=`deltaY`in e?e.deltaY:a[1]-n[1],l,u=e.target,d=Math.abs(o)>Math.abs(c)?`h`:`v`;if(`touches`in e&&d===`h`&&u.type===`range`)return!1;var f=window.getSelection(),p=f&&f.anchorNode,m=p?p===u||p.contains(u):!1;if(m)return!1;var h=Om(d,u);if(!h)return!0;if(h?l=d:(l=d===`v`?`h`:`v`,h=Om(d,u)),!h)return!1;if(!i.current&&`changedTouches`in e&&(o||c)&&(i.current=l),!l)return!0;var g=i.current||l;return Pm(g,t,e,g===`h`?o:c,!0)},[]),l=e.useCallback(function(e){var t=e;if(!(!Vm.length||Vm[Vm.length-1]!==o)){var r=`deltaY`in t?Im(t):Fm(t),i=n.current.filter(function(e){return e.name===t.type&&(e.target===t.target||t.target===e.shadowParent)&&Rm(e.delta,r)})[0];if(i&&i.should){t.cancelable&&t.preventDefault();return}if(!i){var a=(s.current.shards||[]).map(Lm).filter(Boolean).filter(function(e){return e.contains(t.target)}),l=a.length>0?c(t,a[0]):!s.current.noIsolation;l&&t.cancelable&&t.preventDefault()}}},[]),u=e.useCallback(function(e,t,r,i){var a={name:e,delta:t,target:r,should:i,shadowParent:Um(r)};n.current.push(a),setTimeout(function(){n.current=n.current.filter(function(e){return e!==a})},1)},[]),d=e.useCallback(function(e){r.current=Fm(e),i.current=void 0},[]),f=e.useCallback(function(e){u(e.type,Im(e),e.target,c(e,t.lockRef.current))},[]),p=e.useCallback(function(e){u(e.type,Fm(e),e.target,c(e,t.lockRef.current))},[]);e.useEffect(function(){return Vm.push(o),t.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener(`wheel`,l,Cm),document.addEventListener(`touchmove`,l,Cm),document.addEventListener(`touchstart`,d,Cm),function(){Vm=Vm.filter(function(e){return e!==o}),document.removeEventListener(`wheel`,l,Cm),document.removeEventListener(`touchmove`,l,Cm),document.removeEventListener(`touchstart`,d,Cm)}},[]);var m=t.removeScrollBar,h=t.inert;return e.createElement(e.Fragment,null,h?e.createElement(o,{styles:zm(a)}):null,m?e.createElement(bm,{noRelative:t.noRelative,gapMode:t.gapMode}):null)}function Um(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var Wm=$p(em,Hm),Gm=e.forwardRef(function(t,n){return e.createElement(nm,Lp({},t,{ref:n,sideCar:Wm}))});Gm.classNames=nm.classNames;var Km=Gm,qm=[`Enter`,` `],Jm=[`ArrowDown`,`PageUp`,`Home`],Ym=[`ArrowUp`,`PageDown`,`End`],Xm=[...Jm,...Ym],Zm={ltr:[...qm,`ArrowRight`],rtl:[...qm,`ArrowLeft`]},Qm={ltr:[`ArrowLeft`],rtl:[`ArrowRight`]},$m=`Menu`,[eh,th,nh]=de($m),[rh,ih]=F($m,[nh,zf,mp]),ah=zf(),oh=mp(),[sh,ch]=rh($m),[lh,uh]=rh($m),dh=t=>{let{__scopeMenu:n,open:r=!1,children:i,dir:a,onOpenChange:o,modal:s=!0}=t,c=ah(n),[l,u]=e.useState(null),d=e.useRef(!1),f=Nl(o),p=He(a);return e.useEffect(()=>{let e=()=>{d.current=!0,document.addEventListener(`pointerdown`,t,{capture:!0,once:!0}),document.addEventListener(`pointermove`,t,{capture:!0,once:!0})},t=()=>d.current=!1;return document.addEventListener(`keydown`,e,{capture:!0}),()=>{document.removeEventListener(`keydown`,e,{capture:!0}),document.removeEventListener(`pointerdown`,t,{capture:!0}),document.removeEventListener(`pointermove`,t,{capture:!0})}},[]),b(tp,{...c,children:b(sh,{scope:n,open:r,onOpenChange:f,content:l,onContentChange:u,children:b(lh,{scope:n,onClose:e.useCallback(()=>f(!1),[f]),isUsingKeyboardRef:d,dir:p,modal:s,children:i})})})};dh.displayName=$m;var fh=`MenuAnchor`,ph=e.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,i=ah(n);return b(np,{...i,...r,ref:t})});ph.displayName=fh;var mh=`MenuPortal`,[hh,gh]=rh(mh,{forceMount:void 0}),_h=e=>{let{__scopeMenu:t,forceMount:n,children:r,container:i}=e,a=ch(mh,t);return b(hh,{scope:t,forceMount:n,children:b(ye,{present:n||a.open,children:b(op,{asChild:!0,container:i,children:r})})})};_h.displayName=mh;var vh=`MenuContent`,[yh,bh]=rh(vh),xh=e.forwardRef((e,t)=>{let n=gh(vh,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,a=ch(vh,e.__scopeMenu),o=uh(vh,e.__scopeMenu);return b(eh.Provider,{scope:e.__scopeMenu,children:b(ye,{present:r||a.open,children:b(eh.Slot,{scope:e.__scopeMenu,children:o.modal?b(Sh,{...i,ref:t}):b(Ch,{...i,ref:t})})})})}),Sh=e.forwardRef((t,n)=>{let r=ch(vh,t.__scopeMenu),i=e.useRef(null),a=I(n,i);return e.useEffect(()=>{let e=i.current;if(e)return Ip(e)},[]),b(Th,{...t,ref:a,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:R(t.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})}),Ch=e.forwardRef((e,t)=>{let n=ch(vh,e.__scopeMenu);return b(Th,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),wh=oe(`MenuContent.ScrollLock`),Th=e.forwardRef((t,n)=>{let{__scopeMenu:r,loop:i=!1,trapFocus:a,onOpenAutoFocus:o,onCloseAutoFocus:s,disableOutsidePointerEvents:c,onEntryFocus:l,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:p,onDismiss:m,disableOutsideScroll:h,...g}=t,_=ch(vh,r),v=uh(vh,r),y=ah(r),x=oh(r),S=th(r),[C,w]=e.useState(null),T=e.useRef(null),E=I(n,T,_.onContentChange),D=e.useRef(0),O=e.useRef(``),k=e.useRef(0),A=e.useRef(null),j=e.useRef(`right`),M=e.useRef(0),ee=h?Km:e.Fragment,te=h?{as:wh,allowPinchZoom:!0}:void 0,N=e=>{let t=O.current+e,n=S().filter(e=>!e.disabled),r=document.activeElement,i=n.find(e=>e.ref.current===r)?.textValue,a=n.map(e=>e.textValue),o=lg(a,t,i),s=n.find(e=>e.textValue===o)?.ref.current;(function e(t){O.current=t,window.clearTimeout(D.current),t!==``&&(D.current=window.setTimeout(()=>e(``),1e3))})(t),s&&setTimeout(()=>s.focus())};e.useEffect(()=>()=>window.clearTimeout(D.current),[]),Yl();let P=e.useCallback(e=>{let t=j.current===A.current?.side;return t&&dg(e,A.current?.area)},[]);return b(yh,{scope:r,searchRef:O,onItemEnter:e.useCallback(e=>{P(e)&&e.preventDefault()},[P]),onItemLeave:e.useCallback(e=>{P(e)||(T.current?.focus(),w(null))},[P]),onTriggerLeave:e.useCallback(e=>{P(e)&&e.preventDefault()},[P]),pointerGraceTimerRef:k,onPointerGraceIntentChange:e.useCallback(e=>{A.current=e},[]),children:b(ee,{...te,children:b(tu,{asChild:!0,trapped:a,onMountAutoFocus:R(o,e=>{e.preventDefault(),T.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:s,children:b(Vl,{asChild:!0,disableOutsidePointerEvents:c,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:p,onDismiss:m,children:b(Ep,{asChild:!0,...x,dir:v.dir,orientation:`vertical`,loop:i,currentTabStopId:C,onCurrentTabStopIdChange:w,onEntryFocus:R(l,e=>{v.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:b(rp,{role:`menu`,"aria-orientation":`vertical`,"data-state":ig(_.open),"data-radix-menu-content":``,dir:v.dir,...y,...g,ref:E,style:{outline:`none`,...g.style},onKeyDown:R(g.onKeyDown,e=>{let t=e.target,n=t.closest(`[data-radix-menu-content]`)===e.currentTarget,r=e.ctrlKey||e.altKey||e.metaKey,i=e.key.length===1;n&&(e.key===`Tab`&&e.preventDefault(),!r&&i&&N(e.key));let a=T.current;if(e.target!==a||!Xm.includes(e.key))return;e.preventDefault();let o=S().filter(e=>!e.disabled),s=o.map(e=>e.ref.current);Ym.includes(e.key)&&s.reverse(),sg(s)}),onBlur:R(t.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(D.current),O.current=``)}),onPointerMove:R(t.onPointerMove,fg(e=>{let t=e.target,n=M.current!==e.clientX;if(e.currentTarget.contains(t)&&n){let t=e.clientX>M.current?`right`:`left`;j.current=t,M.current=e.clientX}}))})})})})})})});xh.displayName=vh;var Eh=`MenuGroup`,Dh=e.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return b(B.div,{role:`group`,...r,ref:t})});Dh.displayName=Eh;var Oh=`MenuLabel`,kh=e.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return b(B.div,{...r,ref:t})});kh.displayName=Oh;var Ah=`MenuItem`,jh=`menu.itemSelect`,Mh=e.forwardRef((t,n)=>{let{disabled:r=!1,onSelect:i,...a}=t,o=e.useRef(null),s=uh(Ah,t.__scopeMenu),c=bh(Ah,t.__scopeMenu),l=I(n,o),u=e.useRef(!1),d=()=>{let e=o.current;if(!r&&e){let t=new CustomEvent(jh,{bubbles:!0,cancelable:!0});e.addEventListener(jh,e=>i?.(e),{once:!0}),_e(e,t),t.defaultPrevented?u.current=!1:s.onClose()}};return b(Nh,{...a,ref:l,disabled:r,onClick:R(t.onClick,d),onPointerDown:e=>{t.onPointerDown?.(e),u.current=!0},onPointerUp:R(t.onPointerUp,e=>{u.current||e.currentTarget?.click()}),onKeyDown:R(t.onKeyDown,e=>{let t=c.searchRef.current!==``;r||t&&e.key===` `||qm.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});Mh.displayName=Ah;var Nh=e.forwardRef((t,n)=>{let{__scopeMenu:r,disabled:i=!1,textValue:a,...o}=t,s=bh(Ah,r),c=oh(r),l=e.useRef(null),u=I(n,l),[d,f]=e.useState(!1),[p,m]=e.useState(``);return e.useEffect(()=>{let e=l.current;e&&m((e.textContent??``).trim())},[o.children]),b(eh.ItemSlot,{scope:r,disabled:i,textValue:a??p,children:b(Dp,{asChild:!0,...c,focusable:!i,children:b(B.div,{role:`menuitem`,"data-highlighted":d?``:void 0,"aria-disabled":i||void 0,"data-disabled":i?``:void 0,...o,ref:u,onPointerMove:R(t.onPointerMove,fg(e=>{if(i)s.onItemLeave(e);else if(s.onItemEnter(e),!e.defaultPrevented){let t=e.currentTarget;t.focus({preventScroll:!0})}})),onPointerLeave:R(t.onPointerLeave,fg(e=>s.onItemLeave(e))),onFocus:R(t.onFocus,()=>f(!0)),onBlur:R(t.onBlur,()=>f(!1))})})})}),Ph=`MenuCheckboxItem`,Fh=e.forwardRef((e,t)=>{let{checked:n=!1,onCheckedChange:r,...i}=e;return b(Uh,{scope:e.__scopeMenu,checked:n,children:b(Mh,{role:`menuitemcheckbox`,"aria-checked":ag(n)?`mixed`:n,...i,ref:t,"data-state":og(n),onSelect:R(i.onSelect,()=>r?.(ag(n)?!0:!n),{checkForDefaultPrevented:!1})})})});Fh.displayName=Ph;var Ih=`MenuRadioGroup`,[Lh,Rh]=rh(Ih,{value:void 0,onValueChange:()=>{}}),zh=e.forwardRef((e,t)=>{let{value:n,onValueChange:r,...i}=e,a=Nl(r);return b(Lh,{scope:e.__scopeMenu,value:n,onValueChange:a,children:b(Dh,{...i,ref:t})})});zh.displayName=Ih;var Bh=`MenuRadioItem`,Vh=e.forwardRef((e,t)=>{let{value:n,...r}=e,i=Rh(Bh,e.__scopeMenu),a=n===i.value;return b(Uh,{scope:e.__scopeMenu,checked:a,children:b(Mh,{role:`menuitemradio`,"aria-checked":a,...r,ref:t,"data-state":og(a),onSelect:R(r.onSelect,()=>i.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});Vh.displayName=Bh;var Hh=`MenuItemIndicator`,[Uh,Wh]=rh(Hh,{checked:!1}),Gh=e.forwardRef((e,t)=>{let{__scopeMenu:n,forceMount:r,...i}=e,a=Wh(Hh,n);return b(ye,{present:r||ag(a.checked)||a.checked===!0,children:b(B.span,{...i,ref:t,"data-state":og(a.checked)})})});Gh.displayName=Hh;var Kh=`MenuSeparator`,qh=e.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return b(B.div,{role:`separator`,"aria-orientation":`horizontal`,...r,ref:t})});qh.displayName=Kh;var Jh=`MenuArrow`,Yh=e.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,i=ah(n);return b(ip,{...i,...r,ref:t})});Yh.displayName=Jh;var Xh=`MenuSub`,[Zh,Qh]=rh(Xh),$h=t=>{let{__scopeMenu:n,children:r,open:i=!1,onOpenChange:a}=t,o=ch(Xh,n),s=ah(n),[c,l]=e.useState(null),[u,d]=e.useState(null),f=Nl(a);return e.useEffect(()=>(o.open===!1&&f(!1),()=>f(!1)),[o.open,f]),b(tp,{...s,children:b(sh,{scope:n,open:i,onOpenChange:f,content:u,onContentChange:d,children:b(Zh,{scope:n,contentId:Te(),triggerId:Te(),trigger:c,onTriggerChange:l,children:r})})})};$h.displayName=Xh;var eg=`MenuSubTrigger`,tg=e.forwardRef((t,n)=>{let r=ch(eg,t.__scopeMenu),i=uh(eg,t.__scopeMenu),a=Qh(eg,t.__scopeMenu),o=bh(eg,t.__scopeMenu),s=e.useRef(null),{pointerGraceTimerRef:c,onPointerGraceIntentChange:l}=o,u={__scopeMenu:t.__scopeMenu},d=e.useCallback(()=>{s.current&&window.clearTimeout(s.current),s.current=null},[]);return e.useEffect(()=>d,[d]),e.useEffect(()=>{let e=c.current;return()=>{window.clearTimeout(e),l(null)}},[c,l]),b(ph,{asChild:!0,...u,children:b(Nh,{id:a.triggerId,"aria-haspopup":`menu`,"aria-expanded":r.open,"aria-controls":a.contentId,"data-state":ig(r.open),...t,ref:ae(n,a.onTriggerChange),onClick:e=>{t.onClick?.(e),!(t.disabled||e.defaultPrevented)&&(e.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:R(t.onPointerMove,fg(e=>{o.onItemEnter(e),!e.defaultPrevented&&!t.disabled&&!r.open&&!s.current&&(o.onPointerGraceIntentChange(null),s.current=window.setTimeout(()=>{r.onOpenChange(!0),d()},100))})),onPointerLeave:R(t.onPointerLeave,fg(e=>{d();let t=r.content?.getBoundingClientRect();if(t){let n=r.content?.dataset.side,i=n===`right`,a=i?-5:5,s=t[i?`left`:`right`],l=t[i?`right`:`left`];o.onPointerGraceIntentChange({area:[{x:e.clientX+a,y:e.clientY},{x:s,y:t.top},{x:l,y:t.top},{x:l,y:t.bottom},{x:s,y:t.bottom}],side:n}),window.clearTimeout(c.current),c.current=window.setTimeout(()=>o.onPointerGraceIntentChange(null),300)}else{if(o.onTriggerLeave(e),e.defaultPrevented)return;o.onPointerGraceIntentChange(null)}})),onKeyDown:R(t.onKeyDown,e=>{let n=o.searchRef.current!==``;t.disabled||n&&e.key===` `||Zm[i.dir].includes(e.key)&&(r.onOpenChange(!0),r.content?.focus(),e.preventDefault())})})})});tg.displayName=eg;var ng=`MenuSubContent`,rg=e.forwardRef((t,n)=>{let r=gh(vh,t.__scopeMenu),{forceMount:i=r.forceMount,...a}=t,o=ch(vh,t.__scopeMenu),s=uh(vh,t.__scopeMenu),c=Qh(ng,t.__scopeMenu),l=e.useRef(null),u=I(n,l);return b(eh.Provider,{scope:t.__scopeMenu,children:b(ye,{present:i||o.open,children:b(eh.Slot,{scope:t.__scopeMenu,children:b(Th,{id:c.contentId,"aria-labelledby":c.triggerId,...a,ref:u,align:`start`,side:s.dir===`rtl`?`left`:`right`,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{s.isUsingKeyboardRef.current&&l.current?.focus(),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:R(t.onFocusOutside,e=>{e.target!==c.trigger&&o.onOpenChange(!1)}),onEscapeKeyDown:R(t.onEscapeKeyDown,e=>{s.onClose(),e.preventDefault()}),onKeyDown:R(t.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),n=Qm[s.dir].includes(e.key);t&&n&&(o.onOpenChange(!1),c.trigger?.focus(),e.preventDefault())})})})})})});rg.displayName=ng;function ig(e){return e?`open`:`closed`}function ag(e){return e===`indeterminate`}function og(e){return ag(e)?`indeterminate`:e?`checked`:`unchecked`}function sg(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function cg(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function lg(e,t,n){let r=t.length>1&&Array.from(t).every(e=>e===t[0]),i=r?t[0]:t,a=n?e.indexOf(n):-1,o=cg(e,Math.max(a,0)),s=i.length===1;s&&(o=o.filter(e=>e!==n));let c=o.find(e=>e.toLowerCase().startsWith(i.toLowerCase()));return c===n?void 0:c}function ug(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let o=t[e],s=t[a],c=o.x,l=o.y,u=s.x,d=s.y,f=l>r!=d>r&&n<(u-c)*(r-l)/(d-l)+c;f&&(i=!i)}return i}function dg(e,t){if(!t)return!1;let n={x:e.clientX,y:e.clientY};return ug(n,t)}function fg(e){return t=>t.pointerType===`mouse`?e(t):void 0}var pg=dh,mg=ph,hg=_h,gg=xh,_g=Dh,vg=kh,yg=Mh,bg=Fh,xg=zh,Sg=Vh,Cg=Gh,wg=qh,Tg=Yh,Eg=$h,Dg=tg,Og=rg,kg=`DropdownMenu`,[Ag,jg]=F(kg,[ih]),Mg=ih(),[Ng,Pg]=Ag(kg),Fg=t=>{let{__scopeDropdownMenu:n,children:r,dir:i,open:a,defaultOpen:o,onOpenChange:s,modal:c=!0}=t,l=Mg(n),u=e.useRef(null),[d,f]=pe({prop:a,defaultProp:o??!1,onChange:s,caller:kg});return b(Ng,{scope:n,triggerId:Te(),triggerRef:u,contentId:Te(),open:d,onOpenChange:f,onOpenToggle:e.useCallback(()=>f(e=>!e),[f]),modal:c,children:b(pg,{...l,open:d,onOpenChange:f,dir:i,modal:c,children:r})})};Fg.displayName=kg;var Ig=`DropdownMenuTrigger`,Lg=e.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,disabled:r=!1,...i}=e,a=Pg(Ig,n),o=Mg(n);return b(mg,{asChild:!0,...o,children:b(B.button,{type:`button`,id:a.triggerId,"aria-haspopup":`menu`,"aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?`open`:`closed`,"data-disabled":r?``:void 0,disabled:r,...i,ref:ae(t,a.triggerRef),onPointerDown:R(e.onPointerDown,e=>{!r&&e.button===0&&e.ctrlKey===!1&&(a.onOpenToggle(),a.open||e.preventDefault())}),onKeyDown:R(e.onKeyDown,e=>{r||([`Enter`,` `].includes(e.key)&&a.onOpenToggle(),e.key===`ArrowDown`&&a.onOpenChange(!0),[`Enter`,` `,`ArrowDown`].includes(e.key)&&e.preventDefault())})})})});Lg.displayName=Ig;var Rg=`DropdownMenuPortal`,zg=e=>{let{__scopeDropdownMenu:t,...n}=e,r=Mg(t);return b(hg,{...r,...n})};zg.displayName=Rg;var Bg=`DropdownMenuContent`,Vg=e.forwardRef((t,n)=>{let{__scopeDropdownMenu:r,...i}=t,a=Pg(Bg,r),o=Mg(r),s=e.useRef(!1);return b(gg,{id:a.contentId,"aria-labelledby":a.triggerId,...o,...i,ref:n,onCloseAutoFocus:R(t.onCloseAutoFocus,e=>{s.current||a.triggerRef.current?.focus(),s.current=!1,e.preventDefault()}),onInteractOutside:R(t.onInteractOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0,r=t.button===2||n;(!a.modal||r)&&(s.current=!0)}),style:{...t.style,"--radix-dropdown-menu-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-dropdown-menu-content-available-width":`var(--radix-popper-available-width)`,"--radix-dropdown-menu-content-available-height":`var(--radix-popper-available-height)`,"--radix-dropdown-menu-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-dropdown-menu-trigger-height":`var(--radix-popper-anchor-height)`}})});Vg.displayName=Bg;var Hg=`DropdownMenuGroup`,Ug=e.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=Mg(n);return b(_g,{...i,...r,ref:t})});Ug.displayName=Hg;var Wg=`DropdownMenuLabel`,Gg=e.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=Mg(n);return b(vg,{...i,...r,ref:t})});Gg.displayName=Wg;var Kg=`DropdownMenuItem`,qg=e.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=Mg(n);return b(yg,{...i,...r,ref:t})});qg.displayName=Kg;var Jg=`DropdownMenuCheckboxItem`,Yg=e.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=Mg(n);return b(bg,{...i,...r,ref:t})});Yg.displayName=Jg;var Xg=`DropdownMenuRadioGroup`,Zg=e.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=Mg(n);return b(xg,{...i,...r,ref:t})});Zg.displayName=Xg;var Qg=`DropdownMenuRadioItem`,$g=e.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=Mg(n);return b(Sg,{...i,...r,ref:t})});$g.displayName=Qg;var e_=`DropdownMenuItemIndicator`,t_=e.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=Mg(n);return b(Cg,{...i,...r,ref:t})});t_.displayName=e_;var n_=`DropdownMenuSeparator`,r_=e.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=Mg(n);return b(wg,{...i,...r,ref:t})});r_.displayName=n_;var i_=`DropdownMenuArrow`,a_=e.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=Mg(n);return b(Tg,{...i,...r,ref:t})});a_.displayName=i_;var o_=e=>{let{__scopeDropdownMenu:t,children:n,open:r,onOpenChange:i,defaultOpen:a}=e,o=Mg(t),[s,c]=pe({prop:r,defaultProp:a??!1,onChange:i,caller:`DropdownMenuSub`});return b(Eg,{...o,open:s,onOpenChange:c,children:n})},s_=`DropdownMenuSubTrigger`,c_=e.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=Mg(n);return b(Dg,{...i,...r,ref:t})});c_.displayName=s_;var l_=`DropdownMenuSubContent`,u_=e.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,i=Mg(n);return b(Og,{...i,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-dropdown-menu-content-available-width":`var(--radix-popper-available-width)`,"--radix-dropdown-menu-content-available-height":`var(--radix-popper-available-height)`,"--radix-dropdown-menu-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-dropdown-menu-trigger-height":`var(--radix-popper-anchor-height)`}})});u_.displayName=l_;var d_=Fg,f_=Lg,p_=zg,m_=Vg,h_=Gg,g_=qg,__=r_,v_=a_,y_=o_,b_=c_,x_=u_;const S_={panel:{kB7OPa:`x9f619`,kWkggS:`xrkmy7n`,kMzoRj:`x15udo89`,ksu8eU:`x1y0btm7`,kVAM5u:`x1r2g072`,kaIpWk:`x116uinm`,k3XXqK:`x1t137rt`,$$css:!0},outline:{k3XXqK:`x1t137rt`,$$css:!0},motion:{k44tkh:`x2mfxb`,kyAemX:`xa0mk88`,kKVMdj:`x1a5igra x1sxqptb x1m9yr5l xv4m6d9 xbpksmt`,$$css:!0},arrow:{keoZOQ:`xyd06bb`,kzqmXN:`x15xktyq`,kZKoxP:`x25yk9b`,k3aq6I:`x1158fpu`,kMzoRj:`xc342km`,kWqL5O:`x1e7mn6g`,kt9PQ7:`x1k21s18`,ksu8eU:`x1y0btm7`,kVAM5u:`x1r2g072`,kWkggS:`xrkmy7n`,kDwRjp:`xy6m8k3`,$$css:!0}},K={content:{kVAEAm:`x1n2onr6`,kY2c9j:`x1i7x82i`,k7Eaqz:`x1vi9356`,kLKAdn:`x1b58sdr`,kGO01o:`xmnamis`,kMwMTN:`x14yi97k`,$$css:!0},subContent:{kY2c9j:`xfo81ep`,$$css:!0},item:{kVAEAm:`x1n2onr6`,k1xSpc:`x78zum5`,kAzted:`xxtaxjb`,kkrTdU:`x1ypdohk`,kGNEyG:`x6s0dn4`,kE3dHu:`x1f7psco`,kpe85a:`xp2l5km`,kLWn49:`xo5v014`,k3XXqK:`x1t137rt`,kfSwDN:`x87ps6o`,kMwMTN:`x14yi97k`,kWkggS:`xjbqb8w x5teegj`,$$css:!0},fixedHeight:{kZKoxP:`xv6nkyv`,$$css:!0},subTrigger:{kZKoxP:`xv6nkyv`,kjj79g:`x1qughib`,kpe85a:`x1xpa7k`,$$css:!0},label:{koQZXg:`x4aigyd`,kGuDYH:`x1dcheo9`,kMwMTN:`x14yi97k`,k63SB2:`xo1l8bm`,kKX8nH:`x1j61x8r`,$$css:!0},subLabel:{k63SB2:`x1s688f`,$$css:!0},disabled:{kfzvcC:`x47corl`,$$css:!0},disabledText:{kMwMTN:`x1ru9b6h`,$$css:!0},dimmed:{kSiTet:`xuzhngd`,$$css:!0},icon:{kzqmXN:`xsk17dz`,$$css:!0},iconColor:{kMwMTN:`x14yi97k`,$$css:!0},iconSlot:{k7Eaqz:`x199i5n0`,$$css:!0},row:{k1xSpc:`x78zum5`,$$css:!0},chevronSlot:{k1xSpc:`x78zum5`,kGNEyG:`x6s0dn4`,kjj79g:`xl56j7k`,$$css:!0},chevron:{koQZXg:`xt3xpxm`,km5ZXQ:`xpoiemb`,k3aq6I:`x1rbgqaq`,$$css:!0},separator:{keoZOQ:`x1mjqqkp`,k1K539:`xhbfen4`,kZKoxP:`xjm9jq1`,kWkggS:`x1xtmd7b`,$$css:!0}},C_=({item:e,xstyle:t,spinnerXstyle:n,iconType:r=`text`})=>e.inProgress?b(yl,{size:`sm`,color:`currentColor`,testId:e.iconTestId,customId:e.iconCustomId,extraClassNames:e.iconExtraClassNames,xstyle:[n,e.iconXstyle]}):e.icon?b(al,{icon:e.icon,testId:e.iconTestId,type:r,color:e.iconColor,customId:e.iconCustomId,extraClassNames:e.iconExtraClassNames,xstyle:[t,e.iconXstyle]}):null,w_=e=>{let{label:t,variant:n=`outline`,size:r=`sm`,icon:i,iconStyle:a=`text`,iconColor:o,iconPosition:s=`left`,iconPrefix:c,extraClassNames:l=``,xstyle:u,testId:d,id:f,disabled:p=!1,inProgress:m=!1,"aria-label":h,...g}=e;return b(T_,{...e,children:b(f_,{asChild:!0,id:f,disabled:p,children:b(Ol,{label:t,variant:n,size:r,icon:i,iconStyle:a,iconColor:o,iconPosition:s,iconPrefix:c,extraClassNames:l,xstyle:u,testId:d,disabled:p,inProgress:m,"aria-label":h,tooltip:g.tooltip,tooltipOptions:{delay:g.tooltipDelay,position:g.tooltipPlacement}})})})},T_=({dropdownItems:e,id:t,children:n,contentExtraClassNames:r=``,contentXstyle:i,containerTestId:a,align:o=`end`,placement:s=`bottom`,placementOffset:c=5,alignOffset:l=-35,hasArrow:u=!1,onOpenChange:d,isOpen:f,setFocusOnTriggerOnClose:p=!0,keepFocusInsideDropdown:m=!0,onContainerClick:h})=>{let g=V(S_.panel,S_.motion,K.content,i),_=V(S_.panel,K.content,K.subContent,i);return x(d_,{defaultOpen:!1,open:f,onOpenChange:d,modal:m,children:[n,b(p_,{children:b(m_,{onClick:h,sideOffset:c,side:s,align:o,alignOffset:l,asChild:!0,onCloseAutoFocus:e=>!p&&e.preventDefault(),children:x(`div`,{...g,"data-testid":a,className:H(g.className,r),children:[u&&b(v_,{asChild:!0,children:b(`div`,{...V(S_.arrow),"data-testid":a?`${a}-arrow`:void 0})}),e.map((e,n)=>{let r=el(e),i=V(K.label,e.disabled&&K.disabledText,e.labelXstyle),o=V(K.item,e.disabled&&K.disabled,e.itemXstyle);if(e.isLabel){let t=V(e.itemXstyle);return x(h_,{...t,className:H(t.className,e.itemExtraClassNames),...r,children:[b(C_,{item:e,xstyle:[K.icon,K.iconColor],spinnerXstyle:K.iconColor}),b(`div`,{...i,"data-testid":e.labelTestId,className:H(i.className,e.labelClasses),children:e.label})]},(e.id||``)+n)}if(Array.isArray(e.subMenuItems)&&e.subMenuItems.length>0){let i=V(K.item,K.subTrigger,e.disabled&&K.disabled,e.itemXstyle),o=V(K.label,K.subLabel,e.disabled&&K.dimmed,e.labelXstyle),s=e.disabled?K.disabledText:K.iconColor;return x(y_,{children:[x(b_,{id:t,...i,className:H(i.className,e.itemExtraClassNames),"data-testid":e.testId,disabled:e.disabled,...r,children:[x(`div`,{...V(K.row),children:[(e.icon||e.inProgress)&&b(`div`,{...V(K.iconSlot),children:b(C_,{item:e,xstyle:[K.icon,s],spinnerXstyle:s})}),b(`div`,{...o,"data-testid":e.labelTestId,"data-customid":e.labelCustomId,className:H(o.className,e.labelClasses),children:e.label})]}),b(`div`,{...V(K.chevronSlot),children:b(al,{size:`sm`,icon:jt,xstyle:[K.chevron,s]})})]}),b(p_,{children:b(x_,{...V(S_.outline,S_.motion),children:b(`div`,{..._,"data-testid":a,children:e.subMenuItems.map((t,n)=>{let r=V(K.label,t.disabled&&K.disabledText,e.labelXstyle);return x(g_,{onSelect:t.onClick,"data-qtip-text":t.tooltip,...V(K.item,K.fixedHeight,t.disabled&&K.disabled),disabled:t.disabled,children:[t.iconClass&&b(al,{icon:t.iconClass,type:`text`,xstyle:[K.icon,e.disabled&&K.dimmed]}),b(`div`,{...r,className:H(r.className,e.labelClasses),children:t.label})]},t.label+n)})})})})]},(e.id||(typeof e.icon==`string`?e.icon:e.icon?.iconName)||``)+n)}return x(`div`,{...r,children:[x(g_,{"data-customid":e.itemCustomId,onSelect:t=>e.onClick(t),...o,className:H(o.className,e.itemExtraClassNames),"data-testid":e.testId,disabled:e.disabled,children:[(e.icon||e.inProgress)&&b(`div`,{...V(K.iconSlot),children:b(C_,{item:e,iconType:e.iconType||`text`,xstyle:[K.icon,e.disabled&&K.dimmed],spinnerXstyle:e.disabled&&K.dimmed})}),b(`div`,{...i,"data-testid":e.labelTestId,"data-customid":e.labelCustomId,className:H(i.className,e.labelClasses),children:e.label})]}),e.hasDivider&&b(__,{"data-testid":`dropdown-divider-${n}`,...V(K.separator)})]},(e.id||``)+n)})]})})})]})};var E_=w_,D_=`Popover`,[O_,k_]=F(D_,[zf]),A_=zf(),[j_,M_]=O_(D_),N_=t=>{let{__scopePopover:n,children:r,open:i,defaultOpen:a,onOpenChange:o,modal:s=!1}=t,c=A_(n),l=e.useRef(null),[u,d]=e.useState(!1),[f,p]=pe({prop:i,defaultProp:a??!1,onChange:o,caller:D_});return b(tp,{...c,children:b(j_,{scope:n,contentId:Te(),triggerRef:l,open:f,onOpenChange:p,onOpenToggle:e.useCallback(()=>p(e=>!e),[p]),hasCustomAnchor:u,onCustomAnchorAdd:e.useCallback(()=>d(!0),[]),onCustomAnchorRemove:e.useCallback(()=>d(!1),[]),modal:s,children:r})})};N_.displayName=D_;var P_=`PopoverAnchor`,F_=e.forwardRef((t,n)=>{let{__scopePopover:r,...i}=t,a=M_(P_,r),o=A_(r),{onCustomAnchorAdd:s,onCustomAnchorRemove:c}=a;return e.useEffect(()=>(s(),()=>c()),[s,c]),b(np,{...o,...i,ref:n})});F_.displayName=P_;var I_=`PopoverTrigger`,L_=e.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=M_(I_,n),a=A_(n),o=I(t,i.triggerRef),s=b(B.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":i.open,"aria-controls":i.contentId,"data-state":Q_(i.open),...r,ref:o,onClick:R(e.onClick,i.onOpenToggle)});return i.hasCustomAnchor?s:b(np,{asChild:!0,...a,children:s})});L_.displayName=I_;var R_=`PopoverPortal`,[z_,B_]=O_(R_,{forceMount:void 0}),V_=e=>{let{__scopePopover:t,forceMount:n,children:r,container:i}=e,a=M_(R_,t);return b(z_,{scope:t,forceMount:n,children:b(ye,{present:n||a.open,children:b(op,{asChild:!0,container:i,children:r})})})};V_.displayName=R_;var H_=`PopoverContent`,U_=e.forwardRef((e,t)=>{let n=B_(H_,e.__scopePopover),{forceMount:r=n.forceMount,...i}=e,a=M_(H_,e.__scopePopover);return b(ye,{present:r||a.open,children:a.modal?b(G_,{...i,ref:t}):b(K_,{...i,ref:t})})});U_.displayName=H_;var W_=oe(`PopoverContent.RemoveScroll`),G_=e.forwardRef((t,n)=>{let r=M_(H_,t.__scopePopover),i=e.useRef(null),a=I(n,i),o=e.useRef(!1);return e.useEffect(()=>{let e=i.current;if(e)return Ip(e)},[]),b(Km,{as:W_,allowPinchZoom:!0,children:b(q_,{...t,ref:a,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:R(t.onCloseAutoFocus,e=>{e.preventDefault(),o.current||r.triggerRef.current?.focus()}),onPointerDownOutside:R(t.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0,r=t.button===2||n;o.current=r},{checkForDefaultPrevented:!1}),onFocusOutside:R(t.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),K_=e.forwardRef((t,n)=>{let r=M_(H_,t.__scopePopover),i=e.useRef(!1),a=e.useRef(!1);return b(q_,{...t,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:e=>{t.onCloseAutoFocus?.(e),e.defaultPrevented||(i.current||r.triggerRef.current?.focus(),e.preventDefault()),i.current=!1,a.current=!1},onInteractOutside:e=>{t.onInteractOutside?.(e),e.defaultPrevented||(i.current=!0,e.detail.originalEvent.type===`pointerdown`&&(a.current=!0));let n=e.target,o=r.triggerRef.current?.contains(n);o&&e.preventDefault(),e.detail.originalEvent.type===`focusin`&&a.current&&e.preventDefault()}})}),q_=e.forwardRef((e,t)=>{let{__scopePopover:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,disableOutsidePointerEvents:o,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:l,onInteractOutside:u,...d}=e,f=M_(H_,n),p=A_(n);return Yl(),b(tu,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a,children:b(Vl,{asChild:!0,disableOutsidePointerEvents:o,onInteractOutside:u,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:l,onDismiss:()=>f.onOpenChange(!1),children:b(rp,{"data-state":Q_(f.open),role:`dialog`,id:f.contentId,...p,...d,ref:t,style:{...d.style,"--radix-popover-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-popover-content-available-width":`var(--radix-popper-available-width)`,"--radix-popover-content-available-height":`var(--radix-popper-available-height)`,"--radix-popover-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-popover-trigger-height":`var(--radix-popper-anchor-height)`}})})})}),J_=`PopoverClose`,Y_=e.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=M_(J_,n);return b(B.button,{type:`button`,...r,ref:t,onClick:R(e.onClick,()=>i.onOpenChange(!1))})});Y_.displayName=J_;var X_=`PopoverArrow`,Z_=e.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=A_(n);return b(ip,{...i,...r,ref:t})});Z_.displayName=X_;function Q_(e){return e?`open`:`closed`}var $_=N_,ev=L_,tv=V_,nv=U_,rv=Z_;const iv={triggerContent:{k3XXqK:`x1t137rt`,kMwMTN:`x14yi97k`,$$css:!0},fullWidthContent:{k1xSpc:`x78zum5`,kXwgrk:`xdt5ytf`,kGNEyG:`x6s0dn4`,kjj79g:`xl56j7k`,$$css:!0},inline:{k1xSpc:`xt0psk2`,$$css:!0},disabled:{kkrTdU:`x1h6gzvc`,kSiTet:`xbyyjgo`,$$css:!0},content:{kVAEAm:`x1n2onr6`,kY2c9j:`x1i7x82i`,k7Eaqz:`x1vi9356`,kzqmXN:`xh8yej3`,kZKoxP:`x5yr21d`,kMwMTN:`xcmjw3v`,$$css:!0}},av=({children:e,trigger:t,id:n,hasArrow:r,extraTriggerClassNames:i,extraPopoverClassNames:a,xstyle:o,contentXstyle:s,containerTestId:c,onInteractOutside:l,onPointerDownOutside:u,isTriggerAsChild:d=!1,shouldTriggerFullWidth:p=!1,disabled:m=!1,align:h=`end`,alignOffset:g=-35,placement:y=`bottom`,placementOffset:S=2,isHoverEnabled:C=!1,hoverOpenDelay:w=300,onOpenChange:T,isOpen:E,isCloseOnContentClick:D=!1,isPortal:O=!1,hideWhenDetached:k=!1,...A})=>{let j=el(A),M=_(null),[ee,te]=v(!1),N=()=>{M.current&&=(clearTimeout(M.current),null)},P=()=>{C&&(N(),M.current=setTimeout(()=>{te(!0),T&&T(!0)},w))},ne=()=>{C&&(N(),M.current=setTimeout(()=>{te(!1),T&&T(!1)},200))};f(()=>N,[]);let F=V(S_.panel,S_.motion,iv.content,s),re=V(iv.triggerContent,m&&iv.disabled,p?iv.fullWidthContent:iv.inline,o),ie=()=>b(nv,{sideOffset:S,align:h,side:y,onInteractOutside:l,onPointerDownOutside:u,alignOffset:C?-10:g,hideWhenDetached:k,asChild:!0,onClick:()=>D&&T&&T(!1),children:x(`div`,{"data-testid":c,...F,className:H(F.className,a),children:[r&&b(rv,{asChild:!0,children:b(`div`,{...V(S_.arrow)})}),e]})}),ae=e=>x($_,{open:e,defaultOpen:!1,onOpenChange:T,children:[t?b(ev,{id:n,asChild:d,...{0:{className:`xjbqb8w x1t137rt xc342km x1717udv xln7xf2 x1heor9g`},1:{className:`xjbqb8w x1t137rt xc342km x1717udv xln7xf2 x1heor9g x5yr21d xh8yej3`}}[!!p<<0],disabled:m,children:b(`div`,{...j,onMouseOver:P,onMouseOut:ne,...re,className:H(re.className,i),children:t})}):b(ev,{asChild:!0,children:b(`div`,{})}),O?b(tv,{children:ie()}):ie()]});return ae(C?ee:E)};var ov=av;const sv=o({});function cv(e){let t=_(null);return t.current===null&&(t.current=e()),t.current}const lv=typeof window<`u`,uv=lv?h:f,dv=o(null);function fv(e,t){e.indexOf(t)===-1&&e.push(t)}function pv(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}const mv=(e,t,n)=>n>t?t:n<e?e:n,hv={},gv=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function _v(e){return typeof e==`object`&&!!e}const vv=e=>/^0[^.\s]+$/u.test(e);function yv(e){let t;return()=>(t===void 0&&(t=e()),t)}const bv=e=>e,xv=(e,t)=>n=>t(e(n)),Sv=(...e)=>e.reduce(xv),Cv=(e,t,n)=>{let r=t-e;return r===0?1:(n-e)/r};var wv=class{constructor(){this.subscriptions=[]}add(e){return fv(this.subscriptions,e),()=>pv(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};const Tv=e=>e*1e3,Ev=e=>e/1e3;function Dv(e,t){return t?e*(1e3/t):0}const Ov=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e;function kv(e,t,n,r,i){let a,o,s=0;do o=t+(n-t)/2,a=Ov(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>1e-7&&++s<12);return o}function Av(e,t,n,r){if(e===t&&n===r)return bv;let i=t=>kv(t,0,1,e,n);return e=>e===0||e===1?e:Ov(i(e),t,r)}const jv=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Mv=e=>t=>1-e(1-t),Nv=Av(.33,1.53,.69,.99),Pv=Mv(Nv),Fv=jv(Pv),Iv=e=>(e*=2)<1?.5*Pv(e):.5*(2-2**(-10*(e-1))),Lv=e=>1-Math.sin(Math.acos(e)),Rv=Mv(Lv),zv=jv(Lv),Bv=Av(.42,0,1,1),Vv=Av(0,0,.58,1),Hv=Av(.42,0,.58,1),Uv=e=>Array.isArray(e)&&typeof e[0]!=`number`,Wv=e=>Array.isArray(e)&&typeof e[0]==`number`,Gv={linear:bv,easeIn:Bv,easeInOut:Hv,easeOut:Vv,circIn:Lv,circInOut:zv,circOut:Rv,backIn:Pv,backInOut:Fv,backOut:Nv,anticipate:Iv},Kv=e=>typeof e==`string`,qv=e=>{if(Wv(e)){e.length;let[t,n,r,i]=e;return Av(t,n,r,i)}else if(Kv(e))return Gv[e],`${e}`,Gv[e];return e},Jv=[`setup`,`read`,`resolveKeyframes`,`preUpdate`,`update`,`preRender`,`render`,`postRender`],Yv={value:null,addProjectionMetrics:null};function Xv(e,t){let n=new Set,r=new Set,i=!1,a=!1,o=new WeakSet,s={delta:0,timestamp:0,isProcessing:!1},c=0;function l(t){o.has(t)&&(u.schedule(t),e()),c++,t(s)}let u={schedule:(e,t=!1,a=!1)=>{let s=a&&i,c=s?n:r;return t&&o.add(e),c.has(e)||c.add(e),e},cancel:e=>{r.delete(e),o.delete(e)},process:e=>{if(s=e,i){a=!0;return}i=!0,[n,r]=[r,n],n.forEach(l),t&&Yv.value&&Yv.value.frameloop[t].push(c),c=0,n.clear(),i=!1,a&&(a=!1,u.process(e))}};return u}function Zv(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=Jv.reduce((e,n)=>(e[n]=Xv(a,t?n:void 0),e),{}),{setup:s,read:c,resolveKeyframes:l,preUpdate:u,update:d,preRender:f,render:p,postRender:m}=o,h=()=>{let a=hv.useManualTiming?i.timestamp:performance.now();n=!1,hv.useManualTiming||(i.delta=r?1e3/60:Math.max(Math.min(a-i.timestamp,40),1)),i.timestamp=a,i.isProcessing=!0,s.process(i),c.process(i),l.process(i),u.process(i),d.process(i),f.process(i),p.process(i),m.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(h))},g=()=>{n=!0,r=!0,i.isProcessing||e(h)},_=Jv.reduce((e,t)=>{let r=o[t];return e[t]=(e,t=!1,i=!1)=>(n||g(),r.schedule(e,t,i)),e},{}),v=e=>{for(let t=0;t<Jv.length;t++)o[Jv[t]].cancel(e)};return{schedule:_,cancel:v,state:i,steps:o}}const{schedule:Qv,cancel:$v,state:ey,steps:ty}=Zv(typeof requestAnimationFrame<`u`?requestAnimationFrame:bv,!0);let ny;function ry(){ny=void 0}const iy={now:()=>(ny===void 0&&iy.set(ey.isProcessing||hv.useManualTiming?ey.timestamp:performance.now()),ny),set:e=>{ny=e,queueMicrotask(ry)}},ay={layout:0,mainThread:0,waapi:0},oy=e=>t=>typeof t==`string`&&t.startsWith(e),sy=oy(`--`),cy=oy(`var(--`),ly=e=>{let t=cy(e);return t?uy.test(e.split(`/*`)[0].trim()):!1},uy=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,dy={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},fy={...dy,transform:e=>mv(0,1,e)},py={...dy,default:1},my=e=>Math.round(e*1e5)/1e5,hy=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function gy(e){return e==null}const _y=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,vy=(e,t)=>n=>!!(typeof n==`string`&&_y.test(n)&&n.startsWith(e)||t&&!gy(n)&&Object.prototype.hasOwnProperty.call(n,t)),yy=(e,t,n)=>r=>{if(typeof r!=`string`)return r;let[i,a,o,s]=r.match(hy);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},by=e=>mv(0,255,e),xy={...dy,transform:e=>Math.round(by(e))},Sy={test:vy(`rgb`,`red`),parse:yy(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+xy.transform(e)+`, `+xy.transform(t)+`, `+xy.transform(n)+`, `+my(fy.transform(r))+`)`};function Cy(e){let t=``,n=``,r=``,i=``;return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const wy={test:vy(`#`),parse:Cy,transform:Sy.transform},Ty=e=>({test:t=>typeof t==`string`&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Ey=Ty(`deg`),Dy=Ty(`%`),q=Ty(`px`),Oy=Ty(`vh`),ky=Ty(`vw`),Ay=(()=>({...Dy,parse:e=>Dy.parse(e)/100,transform:e=>Dy.transform(e*100)}))(),jy={test:vy(`hsl`,`hue`),parse:yy(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+Dy.transform(my(t))+`, `+Dy.transform(my(n))+`, `+my(fy.transform(r))+`)`},My={test:e=>Sy.test(e)||wy.test(e)||jy.test(e),parse:e=>Sy.test(e)?Sy.parse(e):jy.test(e)?jy.parse(e):wy.parse(e),transform:e=>typeof e==`string`?e:e.hasOwnProperty(`red`)?Sy.transform(e):jy.transform(e),getAnimatableNone:e=>{let t=My.parse(e);return t.alpha=0,My.transform(t)}},Ny=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Py(e){return isNaN(e)&&typeof e==`string`&&(e.match(hy)?.length||0)+(e.match(Ny)?.length||0)>0}const Fy=`number`,Iy=`color`,Ly=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Ry(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0,o=t.replace(Ly,e=>(My.test(e)?(r.color.push(a),i.push(Iy),n.push(My.parse(e))):e.startsWith(`var(`)?(r.var.push(a),i.push(`var`),n.push(e)):(r.number.push(a),i.push(Fy),n.push(parseFloat(e))),++a,"${}")),s=o.split("${}");return{values:n,split:s,indexes:r,types:i}}function zy(e){return Ry(e).values}function By(e){let{split:t,types:n}=Ry(e),r=t.length;return e=>{let i=``;for(let a=0;a<r;a++)if(i+=t[a],e[a]!==void 0){let t=n[a];t===Fy?i+=my(e[a]):t===Iy?i+=My.transform(e[a]):i+=e[a]}return i}}const Vy=e=>typeof e==`number`?0:My.test(e)?My.getAnimatableNone(e):e;function Hy(e){let t=zy(e),n=By(e);return n(t.map(Vy))}const Uy={test:Py,parse:zy,createTransformer:By,getAnimatableNone:Hy};function Wy(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Gy({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=Wy(s,r,e+1/3),a=Wy(s,r,e),o=Wy(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function Ky(e,t){return n=>n>0?t:e}const qy=(e,t,n)=>e+(t-e)*n,Jy=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},Yy=[wy,Sy,jy],Xy=e=>Yy.find(t=>t.test(e));function Zy(e){let t=Xy(e);if(`${e}`,!t)return!1;let n=t.parse(e);return t===jy&&(n=Gy(n)),n}const Qy=(e,t)=>{let n=Zy(e),r=Zy(t);if(!n||!r)return Ky(e,t);let i={...n};return e=>(i.red=Jy(n.red,r.red,e),i.green=Jy(n.green,r.green,e),i.blue=Jy(n.blue,r.blue,e),i.alpha=qy(n.alpha,r.alpha,e),Sy.transform(i))},$y=new Set([`none`,`hidden`]);function eb(e,t){return $y.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function tb(e,t){return n=>qy(e,t,n)}function nb(e){return typeof e==`number`?tb:typeof e==`string`?ly(e)?Ky:My.test(e)?Qy:ob:Array.isArray(e)?rb:typeof e==`object`?My.test(e)?Qy:ib:Ky}function rb(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>nb(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function ib(e,t){let n={...e,...t},r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=nb(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}function ab(e,t){let n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let a=t.types[i],o=e.indexes[a][r[a]],s=e.values[o]??0;n[i]=s,r[a]++}return n}const ob=(e,t)=>{let n=Uy.createTransformer(t),r=Ry(e),i=Ry(t),a=r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length;return a?$y.has(e)&&!i.values.length||$y.has(t)&&!r.values.length?eb(e,t):Sv(rb(ab(r,i),i.values),n):(`${e}${t}`,Ky(e,t))};function sb(e,t,n){if(typeof e==`number`&&typeof t==`number`&&typeof n==`number`)return qy(e,t,n);let r=nb(e);return r(e,t)}const cb=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>Qv.update(t,e),stop:()=>$v(t),now:()=>ey.isProcessing?ey.timestamp:iy.now()}},lb=(e,t,n=10)=>{let r=``,i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)r+=Math.round(e(t/(i-1))*1e4)/1e4+`, `;return`linear(${r.substring(0,r.length-2)})`},ub=2e4;function db(e){let t=0,n=e.next(t);for(;!n.done&&t<ub;)t+=50,n=e.next(t);return t>=ub?1/0:t}function fb(e,t=100,n){let r=n({...e,keyframes:[0,t]}),i=Math.min(db(r),ub);return{type:`keyframes`,ease:e=>r.next(i*e).value/t,duration:Ev(i)}}function pb(e,t,n){let r=Math.max(t-5,0);return Dv(n-e(r),t-r)}const mb={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},hb=.001;function gb({duration:e=mb.duration,bounce:t=mb.bounce,velocity:n=mb.velocity,mass:r=mb.mass}){let i,a;mb.maxDuration;let o=1-t;o=mv(mb.minDamping,mb.maxDamping,o),e=mv(mb.minDuration,mb.maxDuration,Ev(e)),o<1?(i=t=>{let r=t*o,i=r*e,a=r-n,s=vb(t,o),c=Math.exp(-i);return hb-a/s*c},a=t=>{let r=t*o,a=r*e,s=a*n+n,c=o**2*t**2*e,l=Math.exp(-a),u=vb(t**2,o),d=-i(t)+hb>0?-1:1;return d*((s-c)*l)/u}):(i=t=>{let r=Math.exp(-t*e),i=(t-n)*e+1;return-hb+r*i},a=t=>{let r=Math.exp(-t*e),i=(n-t)*(e*e);return r*i});let s=5/e,c=_b(i,a,s);if(e=Tv(e),isNaN(c))return{stiffness:mb.stiffness,damping:mb.damping,duration:e};{let t=c**2*r;return{stiffness:t,damping:o*2*Math.sqrt(r*t),duration:e}}}function _b(e,t,n){let r=n;for(let n=1;n<12;n++)r-=e(r)/t(r);return r}function vb(e,t){return e*Math.sqrt(1-t*t)}const yb=[`duration`,`bounce`],bb=[`stiffness`,`damping`,`mass`];function xb(e,t){return t.some(t=>e[t]!==void 0)}function Sb(e){let t={velocity:mb.velocity,stiffness:mb.stiffness,damping:mb.damping,mass:mb.mass,isResolvedFromDuration:!1,...e};if(!xb(e,bb)&&xb(e,yb))if(e.visualDuration){let n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*mv(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:mb.mass,stiffness:i,damping:a}}else{let n=gb(e);t={...t,...n,mass:mb.mass},t.isResolvedFromDuration=!0}return t}function Cb(e=mb.visualDuration,t=mb.bounce){let n=typeof e==`object`?e:{visualDuration:e,keyframes:[0,1],bounce:t},{restSpeed:r,restDelta:i}=n,a=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],s={done:!1,value:a},{stiffness:c,damping:l,mass:u,duration:d,velocity:f,isResolvedFromDuration:p}=Sb({...n,velocity:-Ev(n.velocity||0)}),m=f||0,h=l/(2*Math.sqrt(c*u)),g=o-a,_=Ev(Math.sqrt(c/u)),v=Math.abs(g)<5;r||=v?mb.restSpeed.granular:mb.restSpeed.default,i||=v?mb.restDelta.granular:mb.restDelta.default;let y;if(h<1){let e=vb(_,h);y=t=>{let n=Math.exp(-h*_*t);return o-n*((m+h*_*g)/e*Math.sin(e*t)+g*Math.cos(e*t))}}else if(h===1)y=e=>o-Math.exp(-_*e)*(g+(m+_*g)*e);else{let e=_*Math.sqrt(h*h-1);y=t=>{let n=Math.exp(-h*_*t),r=Math.min(e*t,300);return o-n*((m+h*_*g)*Math.sinh(r)+e*g*Math.cosh(r))/e}}let b={calculatedDuration:p&&d||null,next:e=>{let t=y(e);if(p)s.done=e>=d;else{let n=e===0?m:0;h<1&&(n=e===0?Tv(m):pb(y,e,t));let a=Math.abs(n)<=r,c=Math.abs(o-t)<=i;s.done=a&&c}return s.value=s.done?o:t,s},toString:()=>{let e=Math.min(db(b),ub),t=lb(t=>b.next(e*t).value,e,30);return e+`ms `+t},toTransition:()=>{}};return b}Cb.applyToOptions=e=>{let t=fb(e,100,Cb);return e.ease=t.ease,e.duration=Tv(t.duration),e.type=`keyframes`,e};function wb({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:c,restDelta:l=.5,restSpeed:u}){let d=e[0],f={done:!1,value:d},p=e=>s!==void 0&&e<s||c!==void 0&&e>c,m=e=>s===void 0?c:c===void 0||Math.abs(s-e)<Math.abs(c-e)?s:c,h=n*t,g=d+h,_=o===void 0?g:o(g);_!==g&&(h=_-d);let v=e=>-h*Math.exp(-e/r),y=e=>_+v(e),b=e=>{let t=v(e),n=y(e);f.done=Math.abs(t)<=l,f.value=f.done?_:n},x,S,C=e=>{p(f.value)&&(x=e,S=Cb({keyframes:[f.value,m(f.value)],velocity:pb(y,e,f.value),damping:i,stiffness:a,restDelta:l,restSpeed:u}))};return C(0),{calculatedDuration:null,next:e=>{let t=!1;return!S&&x===void 0&&(t=!0,b(e),C(e)),x!==void 0&&e>=x?S.next(e-x):(!t&&b(e),f)}}}function Tb(e,t,n){let r=[],i=n||hv.mix||sb,a=e.length-1;for(let n=0;n<a;n++){let a=i(e[n],e[n+1]);if(t){let e=Array.isArray(t)?t[n]||bv:t;a=Sv(e,a)}r.push(a)}return r}function Eb(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let a=e.length;if(t.length,a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];let o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=Tb(t,r,i),c=s.length,l=n=>{if(o&&n<e[0])return t[0];let r=0;if(c>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=Cv(e[r],e[r+1],n);return s[r](i)};return n?t=>l(mv(e[0],e[a-1],t)):l}function Db(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=Cv(0,t,r);e.push(qy(n,1,i))}}function Ob(e){let t=[0];return Db(t,e.length-1),t}function kb(e,t){return e.map(e=>e*t)}function Ab(e,t){return e.map(()=>t||Hv).splice(0,e.length-1)}function jb({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`}){let i=Uv(r)?r.map(qv):qv(r),a={done:!1,value:t[0]},o=kb(n&&n.length===t.length?n:Ob(t),e),s=Eb(o,t,{ease:Array.isArray(i)?i:Ab(t,i)});return{calculatedDuration:e,next:t=>(a.value=s(t),a.done=t>=e,a)}}const Mb=e=>e!==null;function Nb(e,{repeat:t,repeatType:n=`loop`},r,i=1){let a=e.filter(Mb),o=i<0||t&&n!==`loop`&&t%2==1,s=o?0:a.length-1;return!s||r===void 0?a[s]:r}const Pb={decay:wb,inertia:wb,tween:jb,keyframes:jb,spring:Cb};function Fb(e){typeof e.type==`string`&&(e.type=Pb[e.type])}var Ib=class{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}};const Lb=e=>e/100;var Rb=class extends Ib{constructor(e){super(),this.state=`idle`,this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==iy.now()&&this.tick(iy.now()),this.isStopped=!0,this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},ay.mainThread++,this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){let{options:e}=this;Fb(e);let{type:t=jb,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||jb;s!==jb&&typeof o[0]!=`number`&&(this.mixKeyframes=Sv(Lb,sb(o[0],o[1])),o=[0,100]);let c=s({...e,keyframes:o});i===`mirror`&&(this.mirroredGenerator=s({...e,keyframes:[...o].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=db(c));let{calculatedDuration:l}=c;this.calculatedDuration=l,this.resolvedDuration=l+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=c}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime===null?this.currentTime=t:this.currentTime=this.holdTime}tick(e,t=!1){let{generator:n,totalDuration:r,mixKeyframes:i,mirroredGenerator:a,resolvedDuration:o,calculatedDuration:s}=this;if(this.startTime===null)return n.next(0);let{delay:c=0,keyframes:l,repeat:u,repeatType:d,repeatDelay:f,type:p,onUpdate:m,finalKeyframe:h}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let g=this.currentTime-c*(this.playbackSpeed>=0?1:-1),_=this.playbackSpeed>=0?g<0:g>r;this.currentTime=Math.max(g,0),this.state===`finished`&&this.holdTime===null&&(this.currentTime=r);let v=this.currentTime,y=n;if(u){let e=Math.min(this.currentTime,r)/o,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),n===1&&t--,t=Math.min(t,u+1);let i=!!(t%2);i&&(d===`reverse`?(n=1-n,f&&(n-=f/o)):d===`mirror`&&(y=a)),v=mv(0,1,n)*o}let b=_?{done:!1,value:l[0]}:y.next(v);i&&(b.value=i(b.value));let{done:x}=b;!_&&s!==null&&(x=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let S=this.holdTime===null&&(this.state===`finished`||this.state===`running`&&x);return S&&p!==wb&&(b.value=Nb(l,this.options,h,this.speed)),m&&m(b.value),S&&this.finish(),b}then(e,t){return this.finished.then(e,t)}get duration(){return Ev(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+Ev(e)}get time(){return Ev(this.currentTime)}set time(e){e=Tv(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(e){this.updateTime(iy.now());let t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=Ev(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=cb,startTime:t}=this.options;this.driver||=e(e=>this.tick(e)),this.options.onPlay?.();let n=this.driver.now();this.state===`finished`?(this.updateFinished(),this.startTime=n):this.holdTime===null?this.startTime||=t??n:this.startTime=n-this.holdTime,this.state===`finished`&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state=`running`,this.driver.start()}pause(){this.state=`paused`,this.updateTime(iy.now()),this.holdTime=this.currentTime}complete(){this.state!==`running`&&this.play(),this.state=`finished`,this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state=`finished`,this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state=`idle`,this.stopDriver(),this.startTime=this.holdTime=null,ay.mainThread--}stopDriver(){this.driver&&=(this.driver.stop(),void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type=`keyframes`,this.options.ease=`linear`,this.initAnimation()),this.driver?.stop(),e.observe(this)}};function zb(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const Bb=e=>e*180/Math.PI,Vb=e=>{let t=Bb(Math.atan2(e[1],e[0]));return Ub(t)},Hb={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Vb,rotateZ:Vb,skewX:e=>Bb(Math.atan(e[1])),skewY:e=>Bb(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Ub=e=>(e%=360,e<0&&(e+=360),e),Wb=Vb,Gb=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Kb=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),qb={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Gb,scaleY:Kb,scale:e=>(Gb(e)+Kb(e))/2,rotateX:e=>Ub(Bb(Math.atan2(e[6],e[5]))),rotateY:e=>Ub(Bb(Math.atan2(-e[2],e[0]))),rotateZ:Wb,rotate:Wb,skewX:e=>Bb(Math.atan(e[4])),skewY:e=>Bb(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Jb(e){return e.includes(`scale`)?1:0}function Yb(e,t){if(!e||e===`none`)return Jb(t);let n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),r,i;if(n)r=qb,i=n;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=Hb,i=t}if(!i)return Jb(t);let a=r[t],o=i[1].split(`,`).map(Zb);return typeof a==`function`?a(o):o[a]}const Xb=(e,t)=>{let{transform:n=`none`}=getComputedStyle(e);return Yb(n,t)};function Zb(e){return parseFloat(e.trim())}const Qb=[`transformPerspective`,`x`,`y`,`z`,`translateX`,`translateY`,`translateZ`,`scale`,`scaleX`,`scaleY`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skew`,`skewX`,`skewY`],$b=(()=>new Set(Qb))(),ex=e=>e===dy||e===q,tx=new Set([`x`,`y`,`z`]),nx=Qb.filter(e=>!tx.has(e));function rx(e){let t=[];return nx.forEach(n=>{let r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith(`scale`)?1:0))}),t}const ix={width:({x:e},{paddingLeft:t=`0`,paddingRight:n=`0`})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t=`0`,paddingBottom:n=`0`})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>Yb(t,`x`),y:(e,{transform:t})=>Yb(t,`y`)};ix.translateX=ix.x,ix.translateY=ix.y;const ax=new Set;let ox=!1,sx=!1,cx=!1;function lx(){if(sx){let e=Array.from(ax).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t=rx(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=n.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{e.suspendedScrollY!==void 0&&window.scrollTo(0,e.suspendedScrollY)})}sx=!1,ox=!1,ax.forEach(e=>e.complete(cx)),ax.clear()}function ux(){ax.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(sx=!0)})}function dx(){cx=!0,ux(),lx(),cx=!1}var fx=class{constructor(e,t,n,r,i,a=!1){this.state=`pending`,this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=a}scheduleResolve(){this.state=`scheduled`,this.isAsync?(ax.add(this),ox||(ox=!0,Qv.read(ux),Qv.resolveKeyframes(lx))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(e[0]===null){let i=r?.get(),a=e[e.length-1];if(i!==void 0)e[0]=i;else if(n&&t){let r=n.readValue(t,a);r!=null&&(e[0]=r)}e[0]===void 0&&(e[0]=a),r&&i===void 0&&r.set(e[0])}zb(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state=`complete`,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),ax.delete(this)}cancel(){this.state===`scheduled`&&(ax.delete(this),this.state=`pending`)}resume(){this.state===`pending`&&this.scheduleResolve()}};const px=e=>e.startsWith(`--`);function mx(e,t,n){px(t)?e.style.setProperty(t,n):e.style[t]=n}const hx=yv(()=>window.ScrollTimeline!==void 0),gx={};function _x(e,t){let n=yv(e);return()=>gx[t]??n()}const vx=_x(()=>{try{document.createElement(`div`).animate({opacity:0},{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`),yx=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,bx={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:yx([0,.65,.55,1]),circOut:yx([.55,0,1,.45]),backIn:yx([.31,.01,.66,-.59]),backOut:yx([.33,1.53,.69,.99])};function xx(e,t){if(e)return typeof e==`function`?vx()?lb(e,t):`ease-out`:Wv(e)?yx(e):Array.isArray(e)?e.map(e=>xx(e,t)||bx.easeOut):bx[e]}function Sx(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o=`loop`,ease:s=`easeOut`,times:c}={},l=void 0){let u={[t]:n};c&&(u.offset=c);let d=xx(s,i);Array.isArray(d)&&(u.easing=d),Yv.value&&ay.waapi++;let f={delay:r,duration:i,easing:Array.isArray(d)?`linear`:d,fill:`both`,iterations:a+1,direction:o===`reverse`?`alternate`:`normal`};l&&(f.pseudoElement=l);let p=e.animate(u,f);return Yv.value&&p.finished.finally(()=>{ay.waapi--}),p}function Cx(e){return typeof e==`function`&&`applyToOptions`in e}function wx({type:e,...t}){return Cx(e)&&vx()?e.applyToOptions(t):(t.duration??=300,t.ease??=`easeOut`,t)}var Tx=class extends Ib{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,!e)return;let{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:o,onComplete:s}=e;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=e,e.type;let c=wx(e);this.animation=Sx(t,n,r,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=Nb(r,this.options,o,this.speed);this.updateMotionValue?this.updateMotionValue(e):mx(t,n,e),this.animation.cancel()}s?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state===`finished`&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;e===`idle`||e===`finished`||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){let e=this.animation.effect?.getComputedTiming?.().duration||0;return Ev(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+Ev(e)}get time(){return Ev(Number(this.animation.currentTime)||0)}set time(e){this.finishedTime=null,this.animation.currentTime=Tv(e)}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime===null?this.animation.playState:`finished`}get startTime(){return Number(this.animation.startTime)}set startTime(e){this.animation.startTime=e}attachTimeline({timeline:e,observe:t}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:`linear`}),this.animation.onfinish=null,e&&hx()?(this.animation.timeline=e,bv):t(this)}};const Ex={anticipate:Iv,backInOut:Fv,circInOut:zv};function Dx(e){return e in Ex}function Ox(e){typeof e.ease==`string`&&Dx(e.ease)&&(e.ease=Ex[e.ease])}var kx=class extends Tx{constructor(e){Ox(e),Fb(e),super(e),e.startTime&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:n,onComplete:r,element:i,...a}=this.options;if(!t)return;if(e!==void 0){t.set(e);return}let o=new Rb({...a,autoplay:!1}),s=Tv(this.finishedTime??this.time);t.setWithVelocity(o.sample(s-10).value,o.sample(s).value,10),o.stop()}};const Ax=(e,t)=>t===`zIndex`?!1:!!(typeof e==`number`||Array.isArray(e)||typeof e==`string`&&(Uy.test(e)||e===`0`)&&!e.startsWith(`url(`));function jx(e){let t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function Mx(e,t,n,r){let i=e[0];if(i===null)return!1;if(t===`display`||t===`visibility`)return!0;let a=e[e.length-1],o=Ax(i,t),s=Ax(a,t);return`${t}${i}${a}${o?a:i}`,!o||!s?!1:jx(e)||(n===`spring`||Cx(n))&&r}function Nx(e){e.duration=0,e.type=`keyframes`}const Px=new Set([`opacity`,`clipPath`,`filter`,`transform`]),Fx=yv(()=>Object.hasOwnProperty.call(Element.prototype,`animate`));function Ix(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o}=e,s=t?.owner?.current;if(!(s instanceof HTMLElement))return!1;let{onUpdate:c,transformTemplate:l}=t.owner.getProps();return Fx()&&n&&Px.has(n)&&(n!==`transform`||!l)&&!c&&!r&&i!==`mirror`&&a!==0&&o!==`inertia`}var Lx=class extends Ib{constructor({autoplay:e=!0,delay:t=0,type:n=`keyframes`,repeat:r=0,repeatDelay:i=0,repeatType:a=`loop`,keyframes:o,name:s,motionValue:c,element:l,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=iy.now();let d={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:a,name:s,motionValue:c,element:l,...u},f=l?.KeyframeResolver||fx;this.keyframeResolver=new f(o,(e,t,n)=>this.onKeyframesResolved(e,t,d,!n),s,c,l),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){this.keyframeResolver=void 0;let{name:i,type:a,velocity:o,delay:s,isHandoff:c,onUpdate:l}=n;this.resolvedAt=iy.now(),Mx(e,i,a,o)||((hv.instantAnimations||!s)&&l?.(Nb(e,n,t)),e[0]=e[e.length-1],Nx(n),n.repeat=0);let u=r?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,d={startTime:u,finalKeyframe:t,...n,keyframes:e},f=!c&&Ix(d)?new kx({...d,element:d.motionValue.owner.current}):new Rb(d);f.finished.then(()=>this.notifyFinished()).catch(bv),this.pendingTimeline&&=(this.stopTimeline=f.attachTimeline(this.pendingTimeline),void 0),this._animation=f}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),dx()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}};const Rx=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function zx(e){let t=Rx.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}function Bx(e,t,n=1){`${e}`;let[r,i]=zx(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return gv(e)?parseFloat(e):e}return ly(i)?Bx(i,t,n+1):i}function Vx(e,t){return e?.[t]??e?.default??e}const Hx=new Set([`width`,`height`,`top`,`left`,`right`,`bottom`,...Qb]),Ux={test:e=>e===`auto`,parse:e=>e},Wx=e=>t=>t.test(e),Gx=[dy,q,Dy,Ey,ky,Oy,Ux],Kx=e=>Gx.find(Wx(e));function qx(e){return typeof e==`number`?e===0:e===null?!0:e===`none`||e===`0`||vv(e)}const Jx=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function Yx(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(hy)||[];if(!r)return e;let i=n.replace(r,``),a=Jx.has(t)?1:0;return r!==n&&(a*=100),t+`(`+a+i+`)`}const Xx=/\b([a-z-]*)\(.*?\)/gu,Zx={...Uy,getAnimatableNone:e=>{let t=e.match(Xx);return t?t.map(Yx).join(` `):e}},Qx={...dy,transform:Math.round},$x={rotate:Ey,rotateX:Ey,rotateY:Ey,rotateZ:Ey,scale:py,scaleX:py,scaleY:py,scaleZ:py,skew:Ey,skewX:Ey,skewY:Ey,distance:q,translateX:q,translateY:q,translateZ:q,x:q,y:q,z:q,perspective:q,transformPerspective:q,opacity:fy,originX:Ay,originY:Ay,originZ:q},eS={borderWidth:q,borderTopWidth:q,borderRightWidth:q,borderBottomWidth:q,borderLeftWidth:q,borderRadius:q,radius:q,borderTopLeftRadius:q,borderTopRightRadius:q,borderBottomRightRadius:q,borderBottomLeftRadius:q,width:q,maxWidth:q,height:q,maxHeight:q,top:q,right:q,bottom:q,left:q,padding:q,paddingTop:q,paddingRight:q,paddingBottom:q,paddingLeft:q,margin:q,marginTop:q,marginRight:q,marginBottom:q,marginLeft:q,backgroundPositionX:q,backgroundPositionY:q,...$x,zIndex:Qx,fillOpacity:fy,strokeOpacity:fy,numOctaves:Qx},tS={...eS,color:My,backgroundColor:My,outlineColor:My,fill:My,stroke:My,borderColor:My,borderTopColor:My,borderRightColor:My,borderBottomColor:My,borderLeftColor:My,filter:Zx,WebkitFilter:Zx},nS=e=>tS[e];function rS(e,t){let n=nS(e);return n!==Zx&&(n=Uy),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const iS=new Set([`auto`,`none`,`0`]);function aS(e,t,n){let r=0,i;for(;r<e.length&&!i;){let t=e[r];typeof t==`string`&&!iS.has(t)&&Ry(t).values.length&&(i=e[r]),r++}if(i&&n)for(let r of t)e[r]=rS(n,i)}var oS=class extends fx{constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if(typeof r==`string`&&(r=r.trim(),ly(r))){let i=Bx(r,t.current);i!==void 0&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!Hx.has(n)||e.length!==2)return;let[r,i]=e,a=Kx(r),o=Kx(i);if(a!==o)if(ex(a)&&ex(o))for(let t=0;t<e.length;t++){let n=e[t];typeof n==`string`&&(e[t]=parseFloat(n))}else ix[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(e[t]===null||qx(e[t]))&&n.push(t);n.length&&aS(e,n,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;n===`height`&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=ix[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let r=t[t.length-1];r!==void 0&&e.getValue(n,r).jump(r,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:n}=this;if(!e||!e.current)return;let r=e.getValue(t);r&&r.jump(this.measuredOrigin,!1);let i=n.length-1,a=n[i];n[i]=ix[t](e.measureViewportBox(),window.getComputedStyle(e.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),this.removedTransforms?.length&&this.removedTransforms.forEach(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}};function sS(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e==`string`){let r=document;t&&(r=t.current);let i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}const cS=(e,t)=>t&&typeof e==`number`?t.transform(e):e;function lS(e){return _v(e)&&`offsetHeight`in e}const uS=e=>!isNaN(parseFloat(e)),dS={current:void 0};var fS=class{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=iy.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=iy.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=uS(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on(`change`,e)}on(e,t){this.events[e]||(this.events[e]=new wv);let n=this.events[e].add(t);return e===`change`?()=>{n(),Qv.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||=new Set,this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return dS.current&&dS.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=iy.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>30)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,30);return Dv(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function pS(e,t){return new fS(e,t)}const{schedule:mS,cancel:hS}=Zv(queueMicrotask,!1),gS={x:!1,y:!1};function _S(){return gS.x||gS.y}function vS(e){return e===`x`||e===`y`?gS[e]?null:(gS[e]=!0,()=>{gS[e]=!1}):gS.x||gS.y?null:(gS.x=gS.y=!0,()=>{gS.x=gS.y=!1})}function yS(e,t){let n=sS(e),r=new AbortController,i={passive:!0,...t,signal:r.signal},a=()=>r.abort();return[n,i,a]}function bS(e){return!(e.pointerType===`touch`||_S())}function xS(e,t,n={}){let[r,i,a]=yS(e,n),o=e=>{if(!bS(e))return;let{target:n}=e,r=t(n,e);if(typeof r!=`function`||!n)return;let a=e=>{bS(e)&&(r(e),n.removeEventListener(`pointerleave`,a))};n.addEventListener(`pointerleave`,a,i)};return r.forEach(e=>{e.addEventListener(`pointerenter`,o,i)}),a}const SS=(e,t)=>t?e===t?!0:SS(e,t.parentElement):!1,CS=e=>e.pointerType===`mouse`?typeof e.button!=`number`||e.button<=0:e.isPrimary!==!1,wS=new Set([`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`,`A`]);function TS(e){return wS.has(e.tagName)||e.tabIndex!==-1}const ES=new WeakSet;function DS(e){return t=>{t.key===`Enter`&&e(t)}}function OS(e,t){e.dispatchEvent(new PointerEvent(`pointer`+t,{isPrimary:!0,bubbles:!0}))}const kS=(e,t)=>{let n=e.currentTarget;if(!n)return;let r=DS(()=>{if(ES.has(n))return;OS(n,`down`);let e=DS(()=>{OS(n,`up`)}),r=()=>OS(n,`cancel`);n.addEventListener(`keyup`,e,t),n.addEventListener(`blur`,r,t)});n.addEventListener(`keydown`,r,t),n.addEventListener(`blur`,()=>n.removeEventListener(`keydown`,r),t)};function AS(e){return CS(e)&&!_S()}function jS(e,t,n={}){let[r,i,a]=yS(e,n),o=e=>{let r=e.currentTarget;if(!AS(e))return;ES.add(r);let a=t(r,e),o=(e,t)=>{window.removeEventListener(`pointerup`,s),window.removeEventListener(`pointercancel`,c),ES.has(r)&&ES.delete(r),AS(e)&&typeof a==`function`&&a(e,{success:t})},s=e=>{o(e,r===window||r===document||n.useGlobalTarget||SS(r,e.target))},c=e=>{o(e,!1)};window.addEventListener(`pointerup`,s,i),window.addEventListener(`pointercancel`,c,i)};return r.forEach(e=>{let t=n.useGlobalTarget?window:e;t.addEventListener(`pointerdown`,o,i),lS(e)&&(e.addEventListener(`focus`,e=>kS(e,i)),!TS(e)&&!e.hasAttribute(`tabindex`)&&(e.tabIndex=0))}),a}function MS(e){return _v(e)&&`ownerSVGElement`in e}function NS(e){return MS(e)&&e.tagName===`svg`}const PS=e=>!!(e&&e.getVelocity),FS=[...Gx,My,Uy],IS=e=>FS.find(Wx(e)),LS=o({transformPagePoint:e=>e,isStatic:!1,reducedMotion:`never`});function RS(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function zS(...e){return t=>{let n=!1,r=e.map(e=>{let r=RS(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():RS(e[t],null)}}}}function BS(...t){return e.useCallback(zS(...t),t)}var VS=class extends e.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){let e=t.offsetParent,n=lS(e)&&e.offsetWidth||0,r=this.props.sizeRef.current;r.height=t.offsetHeight||0,r.width=t.offsetWidth||0,r.top=t.offsetTop,r.left=t.offsetLeft,r.right=n-r.width-r.left}return null}componentDidUpdate(){}render(){return this.props.children}};function HS({children:t,isPresent:n,anchorX:r,root:i}){let a=p(),o=_(null),s=_({width:0,height:0,top:0,left:0,right:0}),{nonce:c}=d(LS),l=BS(o,t?.ref);return m(()=>{let{width:e,height:t,top:l,left:u,right:d}=s.current;if(n||!o.current||!e||!t)return;let f=r===`left`?`left: ${u}`:`right: ${d}`;o.current.dataset.motionPopId=a;let p=document.createElement(`style`);c&&(p.nonce=c);let m=i??document.head;return m.appendChild(p),p.sheet&&p.sheet.insertRule(`
|
|
1127
1127
|
[data-motion-pop-id="${a}"] {
|
|
1128
1128
|
position: absolute !important;
|
|
1129
1129
|
width: ${e}px !important;
|
|
@@ -1131,23 +1131,23 @@ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered a
|
|
|
1131
1131
|
${f}px !important;
|
|
1132
1132
|
top: ${l}px !important;
|
|
1133
1133
|
}
|
|
1134
|
-
`),()=>{m.contains(p)&&m.removeChild(p)}},[n]),b(VS,{isPresent:n,childRef:o,sizeRef:s,children:e.cloneElement(t,{ref:l})})}const US=({children:t,initial:n,isPresent:r,onExitComplete:i,custom:a,presenceAffectsLayout:o,mode:s,anchorX:c,root:l})=>{let u=cv(WS),d=p(),f=!0,m=g(()=>(f=!1,{id:d,initial:n,isPresent:r,custom:a,onExitComplete:e=>{u.set(e,!0);for(let e of u.values())if(!e)return;i&&i()},register:e=>(u.set(e,!1),()=>u.delete(e))}),[r,u,i]);return o&&f&&(m={...m}),g(()=>{u.forEach((e,t)=>u.set(t,!1))},[r]),e.useEffect(()=>{!r&&!u.size&&i&&i()},[r]),s===`popLayout`&&(t=b(HS,{isPresent:r,anchorX:c,root:l,children:t})),b(dv.Provider,{value:m,children:t})};function WS(){return new Map}function GS(e=!0){let t=d(dv);if(t===null)return[!0,null];let{isPresent:n,onExitComplete:r,register:i}=t,a=p();f(()=>{if(e)return i(a)},[e]);let o=u(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,o]:[!0]}const KS=e=>e.key||``;function qS(e){let t=[];return n.forEach(e,e=>{l(e)&&t.push(e)}),t}const JS=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:a=`sync`,propagate:o=!1,anchorX:s=`left`,root:c})=>{let[l,u]=GS(o),f=g(()=>qS(e),[e]),p=o&&!l?[]:f.map(KS),m=_(!0),h=_(f),x=cv(()=>new Map),[S,C]=v(f),[w,T]=v(f);uv(()=>{m.current=!1,h.current=f;for(let e=0;e<w.length;e++){let t=KS(w[e]);p.includes(t)?x.delete(t):x.get(t)!==!0&&x.set(t,!1)}},[w,p.length,p.join(`-`)]);let E=[];if(f!==S){let e=[...f];for(let t=0;t<w.length;t++){let n=w[t],r=KS(n);p.includes(r)||(e.splice(t,0,n),E.push(n))}return a===`wait`&&E.length&&(e=E),T(qS(e)),C(f),null}let{forceRender:D}=d(sv);return b(y,{children:w.map(e=>{let d=KS(e),g=o&&!l?!1:f===w||p.includes(d),_=()=>{if(x.has(d))x.set(d,!0);else return;let e=!0;x.forEach(t=>{t||(e=!1)}),e&&(D?.(),T(h.current),o&&u?.(),r&&r())};return b(US,{isPresent:g,initial:!m.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:a,root:c,onExitComplete:g?void 0:_,anchorX:s,children:e},d)})})},YS=o({strict:!1}),XS={animation:[`animate`,`variants`,`whileHover`,`whileTap`,`exit`,`whileInView`,`whileFocus`,`whileDrag`],exit:[`exit`],drag:[`drag`,`dragControls`],focus:[`whileFocus`],hover:[`whileHover`,`onHoverStart`,`onHoverEnd`],tap:[`whileTap`,`onTap`,`onTapStart`,`onTapCancel`],pan:[`onPan`,`onPanStart`,`onPanSessionStart`,`onPanEnd`],inView:[`whileInView`,`onViewportEnter`,`onViewportLeave`],layout:[`layout`,`layoutId`]},ZS={};for(let e in XS)ZS[e]={isEnabled:t=>XS[e].some(e=>!!t[e])};function QS(e){for(let t in e)ZS[t]={...ZS[t],...e[t]}}const $S=new Set(`animate.exit.variants.initial.style.values.variants.transition.transformTemplate.custom.inherit.onBeforeLayoutMeasure.onAnimationStart.onAnimationComplete.onUpdate.onDragStart.onDrag.onDragEnd.onMeasureDragConstraints.onDirectionLock.onDragTransitionEnd._dragX._dragY.onHoverStart.onHoverEnd.onViewportEnter.onViewportLeave.globalTapTarget.ignoreStrict.viewport`.split(`.`));function eC(e){return e.startsWith(`while`)||e.startsWith(`drag`)&&e!==`draggable`||e.startsWith(`layout`)||e.startsWith(`onTap`)||e.startsWith(`onPan`)||e.startsWith(`onLayout`)||$S.has(e)}function tC(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var nC=j((()=>{})),rC={};ee(rC,{default:()=>aC});var iC,aC,oC=j((()=>{nC(),iC=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,aC=tC(function(e){return iC.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91})}));let sC=e=>!eC(e);function cC(e){typeof e==`function`&&(sC=t=>t.startsWith(`on`)?!eC(t):e(t))}try{cC((oC(),P(rC)).default)}catch{}function lC(e,t,n){let r={};for(let i in e){if(i===`values`&&typeof e.values==`object`)continue;(sC(i)||n===!0&&eC(i)||!t&&!eC(i)||e.draggable&&i.startsWith(`onDrag`))&&(r[i]=e[i])}return r}const uC=o({});function dC(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}function fC(e){return typeof e==`string`||Array.isArray(e)}const pC=[`animate`,`whileInView`,`whileFocus`,`whileHover`,`whileTap`,`whileDrag`,`exit`],mC=[`initial`,...pC];function hC(e){return dC(e.animate)||mC.some(t=>fC(e[t]))}function gC(e){return!!(hC(e)||e.variants)}function _C(e,t){if(hC(e)){let{initial:t,animate:n}=e;return{initial:t===!1||fC(t)?t:void 0,animate:fC(n)?n:void 0}}return e.inherit===!1?{}:t}function vC(e){let{initial:t,animate:n}=_C(e,d(uC));return g(()=>({initial:t,animate:n}),[yC(t),yC(n)])}function yC(e){return Array.isArray(e)?e.join(` `):e}function bC(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const xC={correct:(e,t)=>{if(!t.target)return e;if(typeof e==`string`)if(q.test(e))e=parseFloat(e);else return e;let n=bC(e,t.target.x),r=bC(e,t.target.y);return`${n}% ${r}%`}},SC={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=Uy.parse(e);if(i.length>5)return r;let a=Uy.createTransformer(e),o=typeof i[0]==`number`?0:1,s=n.x.scale*t.x,c=n.y.scale*t.y;i[0+o]/=s,i[1+o]/=c;let l=qy(s,c,.5);return typeof i[2+o]==`number`&&(i[2+o]/=l),typeof i[3+o]==`number`&&(i[3+o]/=l),a(i)}},CC={borderRadius:{...xC,applyTo:[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomLeftRadius`,`borderBottomRightRadius`]},borderTopLeftRadius:xC,borderTopRightRadius:xC,borderBottomLeftRadius:xC,borderBottomRightRadius:xC,boxShadow:SC};function wC(e,{layout:t,layoutId:n}){return $b.has(e)||e.startsWith(`origin`)||(t||n!==void 0)&&(!!CC[e]||e===`opacity`)}const TC={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},EC=Qb.length;function DC(e,t,n){let r=``,i=!0;for(let a=0;a<EC;a++){let o=Qb[a],s=e[o];if(s===void 0)continue;let c=!0;if(c=typeof s==`number`?s===(o.startsWith(`scale`)?1:0):parseFloat(s)===0,!c||n){let e=cS(s,eS[o]);if(!c){i=!1;let t=TC[o]||o;r+=`${t}(${e}) `}n&&(t[o]=e)}}return r=r.trim(),n?r=n(t,i?``:r):i&&(r=`none`),r}function OC(e,t,n){let{style:r,vars:i,transformOrigin:a}=e,o=!1,s=!1;for(let e in t){let n=t[e];if($b.has(e)){o=!0;continue}else if(sy(e)){i[e]=n;continue}else{let t=cS(n,eS[e]);e.startsWith(`origin`)?(s=!0,a[e]=t):r[e]=t}}if(t.transform||(o||n?r.transform=DC(t,e.transform,n):r.transform&&=`none`),s){let{originX:e=`50%`,originY:t=`50%`,originZ:n=0}=a;r.transformOrigin=`${e} ${t} ${n}`}}const kC=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function AC(e,t,n){for(let r in t)!PS(t[r])&&!wC(r,n)&&(e[r]=t[r])}function jC({transformTemplate:e},t){return g(()=>{let n=kC();return OC(n,t,e),Object.assign({},n.vars,n.style)},[t])}function MC(e,t){let n=e.style||{},r={};return AC(r,n,e),Object.assign(r,jC(e,t)),r}function NC(e,t){let n={},r=MC(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout=`none`,r.touchAction=e.drag===!0?`none`:`pan-${e.drag===`x`?`y`:`x`}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const PC={offset:`stroke-dashoffset`,array:`stroke-dasharray`},FC={offset:`strokeDashoffset`,array:`strokeDasharray`};function IC(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?PC:FC;e[a.offset]=q.transform(-r);let o=q.transform(t),s=q.transform(n);e[a.array]=`${o} ${s}`}function LC(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},c,l,u){if(OC(e,s,l),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:f}=e;d.transform&&(f.transform=d.transform,delete d.transform),(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??`50% 50%`,delete d.transformOrigin),f.transform&&(f.transformBox=u?.transformBox??`fill-box`,delete d.transformBox),t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&IC(d,i,a,o,!1)}const RC=()=>({...kC(),attrs:{}}),zC=e=>typeof e==`string`&&e.toLowerCase()===`svg`;function BC(e,t,n,r){let i=g(()=>{let n=RC();return LC(n,t,zC(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};AC(t,e.style,e),i.style={...t,...i.style}}return i}const VC=[`animate`,`circle`,`defs`,`desc`,`ellipse`,`g`,`image`,`line`,`filter`,`marker`,`mask`,`metadata`,`path`,`pattern`,`polygon`,`polyline`,`rect`,`stop`,`switch`,`symbol`,`svg`,`text`,`tspan`,`use`,`view`];function HC(e){return typeof e!=`string`||e.includes(`-`)?!1:!!(VC.indexOf(e)>-1||/[A-Z]/u.test(e))}function UC(e,t,n,{latestValues:r},a,o=!1){let c=HC(e)?BC:NC,l=c(t,r,a,e),u=lC(t,typeof e==`string`,o),d=e===i?{}:{...u,...l,ref:n},{children:f}=t,p=g(()=>PS(f)?f.get():f,[f]);return s(e,{...d,children:p})}function WC(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function GC(e,t,n,r){if(typeof t==`function`){let[i,a]=WC(r);t=t(n===void 0?e.custom:n,i,a)}if(typeof t==`string`&&(t=e.variants&&e.variants[t]),typeof t==`function`){let[i,a]=WC(r);t=t(n===void 0?e.custom:n,i,a)}return t}function KC(e){return PS(e)?e.get():e}function qC({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){let a={latestValues:JC(n,r,i,e),renderState:t()};return a}function JC(e,t,n,r){let i={},a=r(e,{});for(let e in a)i[e]=KC(a[e]);let{initial:o,animate:s}=e,c=hC(e),l=gC(e);t&&l&&!c&&e.inherit!==!1&&(o===void 0&&(o=t.initial),s===void 0&&(s=t.animate));let u=n?n.initial===!1:!1;u||=o===!1;let d=u?s:o;if(d&&typeof d!=`boolean`&&!dC(d)){let t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){let r=GC(e,t[n]);if(r){let{transitionEnd:e,transition:t,...n}=r;for(let e in n){let t=n[e];if(Array.isArray(t)){let e=u?t.length-1:0;t=t[e]}t!==null&&(i[e]=t)}for(let t in e)i[t]=e[t]}}}return i}const YC=e=>(t,n)=>{let r=d(uC),i=d(dv),a=()=>qC(e,t,r,i);return n?a():cv(a)};function XC(e,t,n){let{style:r}=e,i={};for(let a in r)(PS(r[a])||t.style&&PS(t.style[a])||wC(a,e)||n?.getValue(a)?.liveStyle!==void 0)&&(i[a]=r[a]);return i}const ZC=YC({scrapeMotionValuesFromProps:XC,createRenderState:kC});function QC(e,t,n){let r=XC(e,t,n);for(let n in e)if(PS(e[n])||PS(t[n])){let t=Qb.indexOf(n)===-1?n:`attr`+n.charAt(0).toUpperCase()+n.substring(1);r[t]=e[n]}return r}const $C=YC({scrapeMotionValuesFromProps:QC,createRenderState:RC}),ew=Symbol.for(`motionComponentSymbol`);function tw(e){return e&&typeof e==`object`&&Object.prototype.hasOwnProperty.call(e,`current`)}function nw(e,t,n){return u(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n==`function`?n(r):tw(n)&&(n.current=r))},[t])}const rw=e=>e.replace(/([a-z])([A-Z])/gu,`$1-$2`).toLowerCase(),iw=`data-`+rw(`framerAppearId`),aw=o({});function ow(e,t,n,r,i){let{visualElement:a}=d(uC),o=d(YS),s=d(dv),c=d(LS).reducedMotion,l=_(null);r||=o.renderer,!l.current&&r&&(l.current=r(e,{visualState:t,parent:a,props:n,presenceContext:s,blockInitialAnimation:s?s.initial===!1:!1,reducedMotionConfig:c}));let u=l.current,p=d(aw);u&&!u.projection&&i&&(u.type===`html`||u.type===`svg`)&&sw(l.current,n,i,p);let h=_(!1);m(()=>{u&&h.current&&u.update(n,s)});let g=n[iw],v=_(!!g&&!window.MotionHandoffIsComplete?.(g)&&window.MotionHasOptimisedAnimation?.(g));return uv(()=>{u&&(h.current=!0,window.MotionIsMounted=!0,u.updateFeatures(),u.scheduleRenderMicrotask(),v.current&&u.animationState&&u.animationState.animateChanges())}),f(()=>{u&&(!v.current&&u.animationState&&u.animationState.animateChanges(),v.current&&=(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(g)}),!1),u.enteringChildren=void 0)}),u}function sw(e,t,n,r){let{layoutId:i,layout:a,drag:o,dragConstraints:s,layoutScroll:c,layoutRoot:l,layoutCrossfade:u}=t;e.projection=new n(e.latestValues,t[`data-framer-portal-id`]?void 0:cw(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!o||s&&tw(s),visualElement:e,animationType:typeof a==`string`?a:`both`,initialPromotionConfig:r,crossfade:u,layoutScroll:c,layoutRoot:l})}function cw(e){if(e)return e.options.allowProjection===!1?cw(e.parent):e.projection}function lw(e,{forwardMotionProps:t=!1}={},n,r){n&&QS(n);let i=HC(e)?$C:ZC;function a(a,o){let s,c={...d(LS),...a,layoutId:uw(a)},{isStatic:l}=c,u=vC(a),f=i(a,l);if(!l&&lv){dw(c,n);let t=fw(c);s=t.MeasureLayout,u.visualElement=ow(e,f,c,r,t.ProjectionNode)}return x(uC.Provider,{value:u,children:[s&&u.visualElement?b(s,{visualElement:u.visualElement,...c}):null,UC(e,a,nw(f,u.visualElement,o),f,l,t)]})}a.displayName=`motion.${typeof e==`string`?e:`create(${e.displayName??e.name??``})`}`;let o=c(a);return o[ew]=e,o}function uw({layoutId:e}){let t=d(sv).id;return t&&e!==void 0?t+`-`+e:e}function dw(e,t){d(YS).strict}function fw(e){let{drag:t,layout:n}=ZS;if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function pw(e,t){if(typeof Proxy>`u`)return lw;let n=new Map,r=(n,r)=>lw(n,r,e,t),i=(e,t)=>r(e,t);return new Proxy(i,{get:(i,a)=>a===`create`?r:(n.has(a)||n.set(a,lw(a,void 0,e,t)),n.get(a))})}function mw({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function hw({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function gw(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function _w(e){return e===void 0||e===1}function vw({scale:e,scaleX:t,scaleY:n}){return!_w(e)||!_w(t)||!_w(n)}function yw(e){return vw(e)||bw(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function bw(e){return xw(e.x)||xw(e.y)}function xw(e){return e&&e!==`0%`}function Sw(e,t,n){let r=e-n,i=t*r;return n+i}function Cw(e,t,n,r,i){return i!==void 0&&(e=Sw(e,i,r)),Sw(e,n,r)+t}function ww(e,t=0,n=1,r,i){e.min=Cw(e.min,t,n,r,i),e.max=Cw(e.max,t,n,r,i)}function Tw(e,{x:t,y:n}){ww(e.x,t.translate,t.scale,t.originPoint),ww(e.y,n.translate,n.scale,n.originPoint)}const Ew=.999999999999,Dw=1.0000000000001;function Ow(e,t,n,r=!1){let i=n.length;if(!i)return;t.x=t.y=1;let a,o;for(let s=0;s<i;s++){a=n[s],o=a.projectionDelta;let{visualElement:i}=a.options;i&&i.props.style&&i.props.style.display===`contents`||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&jw(e,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,Tw(e,o)),r&&yw(a.latestValues)&&jw(e,a.latestValues))}t.x<Dw&&t.x>Ew&&(t.x=1),t.y<Dw&&t.y>Ew&&(t.y=1)}function kw(e,t){e.min+=t,e.max+=t}function Aw(e,t,n,r,i=.5){let a=qy(e.min,e.max,i);ww(e,t,n,a,r)}function jw(e,t){Aw(e.x,t.x,t.scaleX,t.scale,t.originX),Aw(e.y,t.y,t.scaleY,t.scale,t.originY)}function Mw(e,t){return mw(gw(e.getBoundingClientRect(),t))}function Nw(e,t,n){let r=Mw(e,n),{scroll:i}=t;return i&&(kw(r.x,i.offset.x),kw(r.y,i.offset.y)),r}const Pw=()=>({translate:0,scale:1,origin:0,originPoint:0}),Fw=()=>({x:Pw(),y:Pw()}),Iw=()=>({min:0,max:0}),Lw=()=>({x:Iw(),y:Iw()}),Rw={current:null},zw={current:!1};function Bw(){if(zw.current=!0,lv)if(window.matchMedia){let e=window.matchMedia(`(prefers-reduced-motion)`),t=()=>Rw.current=e.matches;e.addEventListener(`change`,t),t()}else Rw.current=!1}const Vw=new WeakMap;function Hw(e,t,n){for(let r in t){let i=t[r],a=n[r];if(PS(i))e.addValue(r,i);else if(PS(a))e.addValue(r,pS(i,{owner:e}));else if(a!==i)if(e.hasValue(r)){let t=e.getValue(r);t.liveStyle===!0?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(r);e.addValue(r,pS(t===void 0?i:t,{owner:e}))}}for(let r in n)t[r]===void 0&&e.removeValue(r);return t}const Uw=[`AnimationStart`,`AnimationComplete`,`Update`,`BeforeLayoutMeasure`,`LayoutMeasure`,`LayoutAnimationStart`,`LayoutAnimationComplete`];var Ww=class{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,blockInitialAnimation:i,visualState:a},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=fx,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify(`Update`,this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=iy.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,Qv.render(this.render,!1,!0))};let{latestValues:s,renderState:c}=a;this.latestValues=s,this.baseTarget={...s},this.initialValues=t.initial?{...s}:{},this.renderState=c,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.options=o,this.blockInitialAnimation=!!i,this.isControllingVariants=hC(t),this.isVariantNode=gC(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:l,...u}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in u){let t=u[e];s[e]!==void 0&&PS(t)&&t.set(s[e])}}mount(e){this.current=e,Vw.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),zw.current||Bw(),this.shouldReduceMotion=this.reducedMotionConfig===`never`?!1:this.reducedMotionConfig===`always`?!0:Rw.current,this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){for(let e in this.projection&&this.projection.unmount(),$v(this.notifyUpdate),$v(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this),this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??=new Set,this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();let n=$b.has(e);n&&this.onBindTransform&&this.onBindTransform();let r=t.on(`change`,t=>{this.latestValues[e]=t,this.props.onUpdate&&Qv.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()}),i;window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),i&&i(),t.owner&&t.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e=`animation`;for(e in ZS){let t=ZS[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Lw()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<Uw.length;t++){let n=Uw[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=`on`+n,i=e[r];i&&(this.propEventSubscriptions[n]=this.on(n,i))}this.prevMotionValues=Hw(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return n===void 0&&t!==void 0&&(n=pS(t===null?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return n!=null&&(typeof n==`string`&&(gv(n)||vv(n))?n=parseFloat(n):!IS(n)&&Uy.test(t)&&(n=rS(e,t)),this.setBaseTarget(e,PS(n)?n.get():n)),PS(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let{initial:t}=this.props,n;if(typeof t==`string`||typeof t==`object`){let r=GC(this.props,t,this.presenceContext?.custom);r&&(n=r[e])}if(t&&n!==void 0)return n;let r=this.getBaseTargetFromProps(this.props,e);return r!==void 0&&!PS(r)?r:this.initialValues[e]!==void 0&&n===void 0?void 0:this.baseTarget[e]}on(e,t){return this.events[e]||(this.events[e]=new wv),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){mS.render(this.render)}},Gw=class extends Ww{constructor(){super(...arguments),this.KeyframeResolver=oS}sortInstanceNodePosition(e,t){return e.compareDocumentPosition(t)&2?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;PS(e)&&(this.childSubscription=e.on(`change`,e=>{this.current&&(this.current.textContent=`${e}`)}))}};function Kw(e,{style:t,vars:n},r,i){let a=e.style,o;for(o in t)a[o]=t[o];for(o in i?.applyProjectionStyles(a,r),n)a.setProperty(o,n[o])}function qw(e){return window.getComputedStyle(e)}var Jw=class extends Gw{constructor(){super(...arguments),this.type=`html`,this.renderInstance=Kw}readValueFromInstance(e,t){if($b.has(t))return this.projection?.isProjecting?Jb(t):Xb(e,t);{let n=qw(e),r=(sy(t)?n.getPropertyValue(t):n[t])||0;return typeof r==`string`?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return Mw(e,t)}build(e,t,n){OC(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return XC(e,t,n)}};const Yw=new Set([`baseFrequency`,`diffuseConstant`,`kernelMatrix`,`kernelUnitLength`,`keySplines`,`keyTimes`,`limitingConeAngle`,`markerHeight`,`markerWidth`,`numOctaves`,`targetX`,`targetY`,`surfaceScale`,`specularConstant`,`specularExponent`,`stdDeviation`,`tableValues`,`viewBox`,`gradientTransform`,`pathLength`,`startOffset`,`textLength`,`lengthAdjust`]);function Xw(e,t,n,r){for(let n in Kw(e,t,void 0,r),t.attrs)e.setAttribute(Yw.has(n)?n:rw(n),t.attrs[n])}var Zw=class extends Gw{constructor(){super(...arguments),this.type=`svg`,this.isSVGTag=!1,this.measureInstanceViewportBox=Lw}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if($b.has(t)){let e=nS(t);return e&&e.default||0}return t=Yw.has(t)?t:rw(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return QC(e,t,n)}build(e,t,n){LC(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){Xw(e,t,n,r)}mount(e){this.isSVGTag=zC(e.tagName),super.mount(e)}};const Qw=(e,t)=>HC(e)?new Zw(t):new Jw(t,{allowProjection:e!==i});function $w(e,t,n){let r=e.getProps();return GC(r,t,n===void 0?r.custom:n,e)}const eT=e=>Array.isArray(e);function tT(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,pS(n))}function nT(e){return eT(e)?e[e.length-1]||0:e}function rT(e,t){let n=$w(e,t),{transitionEnd:r={},transition:i={},...a}=n||{};for(let t in a={...a,...r},a){let n=nT(a[t]);tT(e,t,n)}}function iT(e){return!!(PS(e)&&e.add)}function aT(e,t){let n=e.getValue(`willChange`);if(iT(n))return n.add(t);if(!n&&hv.WillChange){let n=new hv.WillChange(`auto`);e.addValue(`willChange`,n),n.add(t)}}function oT(e){return e.props[iw]}const sT=e=>e!==null;function cT(e,{repeat:t,repeatType:n=`loop`},r){let i=e.filter(sT),a=t&&n!==`loop`&&t%2==1?0:i.length-1;return!a||r===void 0?i[a]:r}const lT={type:`spring`,stiffness:500,damping:25,restSpeed:10},uT=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),dT={type:`keyframes`,duration:.8},fT={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},pT=(e,{keyframes:t})=>t.length>2?dT:$b.has(e)?e.startsWith(`scale`)?uT(t[1]):lT:fT;function mT({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:a,repeatType:o,repeatDelay:s,from:c,elapsed:l,...u}){return!!Object.keys(u).length}const hT=(e,t,n,r={},i,a)=>o=>{let s=Vx(r,e)||{},c=s.delay||r.delay||0,{elapsed:l=0}=r;l-=Tv(c);let u={keyframes:Array.isArray(n)?n:[null,n],ease:`easeOut`,velocity:t.getVelocity(),...s,delay:-l,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:a?void 0:i};mT(s)||Object.assign(u,pT(e,u)),u.duration&&=Tv(u.duration),u.repeatDelay&&=Tv(u.repeatDelay),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(Nx(u),u.delay===0&&(d=!0)),(hv.instantAnimations||hv.skipAnimations)&&(d=!0,Nx(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!a&&t.get()!==void 0){let e=cT(u.keyframes,s);if(e!==void 0){Qv.update(()=>{u.onUpdate(e),u.onComplete()});return}}return s.isSync?new Rb(u):new Lx(u)};function gT({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function _T(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a=e.getDefaultTransition(),transitionEnd:o,...s}=t;r&&(a=r);let c=[],l=i&&e.animationState&&e.animationState.getState()[i];for(let t in s){let r=e.getValue(t,e.latestValues[t]??null),i=s[t];if(i===void 0||l&&gT(l,t))continue;let o={delay:n,...Vx(a||{},t)},u=r.get();if(u!==void 0&&!r.isAnimating&&!Array.isArray(i)&&i===u&&!o.velocity)continue;let d=!1;if(window.MotionHandoffAnimation){let n=oT(e);if(n){let e=window.MotionHandoffAnimation(n,t,Qv);e!==null&&(o.startTime=e,d=!0)}}aT(e,t),r.start(hT(t,r,i,e.shouldReduceMotion&&Hx.has(t)?{type:!1}:o,e,d));let f=r.animation;f&&c.push(f)}return o&&Promise.all(c).then(()=>{Qv.update(()=>{o&&rT(e,o)})}),c}function vT(e,t,n,r=0,i=1){let a=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),o=e.size,s=(o-1)*r,c=typeof n==`function`;return c?n(a,o):i===1?a*r:s-a*r}function yT(e,t,n={}){let r=$w(e,t,n.type===`exit`?e.presenceContext?.custom:void 0),{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);let a=r?()=>Promise.all(_T(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:a=0,staggerChildren:o,staggerDirection:s}=i;return bT(e,t,r,a,o,s,n)}:()=>Promise.resolve(),{when:s}=i;if(s){let[e,t]=s===`beforeChildren`?[a,o]:[o,a];return e().then(()=>t())}else return Promise.all([a(),o(n.delay)])}function bT(e,t,n=0,r=0,i=0,a=1,o){let s=[];for(let c of e.variantChildren)c.notify(`AnimationStart`,t),s.push(yT(c,t,{...o,delay:n+(typeof r==`function`?0:r)+vT(e.variantChildren,c,r,i,a)}).then(()=>c.notify(`AnimationComplete`,t)));return Promise.all(s)}function xT(e,t,n={}){e.notify(`AnimationStart`,t);let r;if(Array.isArray(t)){let i=t.map(t=>yT(e,t,n));r=Promise.all(i)}else if(typeof t==`string`)r=yT(e,t,n);else{let i=typeof t==`function`?$w(e,t,n.custom):t;r=Promise.all(_T(e,i,n))}return r.then(()=>{e.notify(`AnimationComplete`,t)})}function ST(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const CT=mC.length;function wT(e){if(!e)return;if(!e.isControllingVariants){let t=e.parent&&wT(e.parent)||{};return e.props.initial!==void 0&&(t.initial=e.props.initial),t}let t={};for(let n=0;n<CT;n++){let r=mC[n],i=e.props[r];(fC(i)||i===!1)&&(t[r]=i)}return t}const TT=[...pC].reverse(),ET=pC.length;function DT(e){return t=>Promise.all(t.map(({animation:t,options:n})=>xT(e,t,n)))}function OT(e){let t=DT(e),n=jT(),r=!0,i=t=>(n,r)=>{let i=$w(e,r,t===`exit`?e.presenceContext?.custom:void 0);if(i){let{transition:e,transitionEnd:t,...r}=i;n={...n,...r,...t}}return n};function a(n){t=n(e)}function o(a){let{props:o}=e,s=wT(e.parent)||{},c=[],l=new Set,u={},d=1/0;for(let t=0;t<ET;t++){let f=TT[t],p=n[f],m=o[f]===void 0?s[f]:o[f],h=fC(m),g=f===a?p.isActive:null;g===!1&&(d=t);let _=m===s[f]&&m!==o[f]&&h;if(_&&r&&e.manuallyAnimateOnMount&&(_=!1),p.protectedKeys={...u},!p.isActive&&g===null||!m&&!p.prevProp||dC(m)||typeof m==`boolean`)continue;let v=kT(p.prevProp,m),y=v||f===a&&p.isActive&&!_&&h||t>d&&h,b=!1,x=Array.isArray(m)?m:[m],S=x.reduce(i(f),{});g===!1&&(S={});let{prevResolvedValues:C={}}=p,w={...C,...S},T=t=>{y=!0,l.has(t)&&(b=!0,l.delete(t)),p.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in w){let t=S[e],n=C[e];if(u.hasOwnProperty(e))continue;let r=!1;r=eT(t)&&eT(n)?!ST(t,n):t!==n,r?t==null?l.add(e):T(e):t!==void 0&&l.has(e)?T(e):p.protectedKeys[e]=!0}p.prevProp=m,p.prevResolvedValues=S,p.isActive&&(u={...u,...S}),r&&e.blockInitialAnimation&&(y=!1);let E=_&&v,D=!E||b;y&&D&&c.push(...x.map(t=>{let n={type:f};if(typeof t==`string`&&r&&!E&&e.manuallyAnimateOnMount&&e.parent){let{parent:r}=e,i=$w(r,t);if(r.enteringChildren&&i){let{delayChildren:t}=i.transition||{};n.delay=vT(r.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(l.size){let t={};if(typeof o.initial!=`boolean`){let n=$w(e,Array.isArray(o.initial)?o.initial[0]:o.initial);n&&n.transition&&(t.transition=n.transition)}l.forEach(n=>{let r=e.getBaseTarget(n),i=e.getValue(n);i&&(i.liveStyle=!0),t[n]=r??null}),c.push({animation:t})}let f=!!c.length;return r&&(o.initial===!1||o.initial===o.animate)&&!e.manuallyAnimateOnMount&&(f=!1),r=!1,f?t(c):Promise.resolve()}function s(t,r){if(n[t].isActive===r)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,r)),n[t].isActive=r;let i=o(t);for(let e in n)n[e].protectedKeys={};return i}return{animateChanges:o,setActive:s,setAnimateFunction:a,getState:()=>n,reset:()=>{n=jT()}}}function kT(e,t){return typeof t==`string`?t!==e:Array.isArray(t)?!ST(t,e):!1}function AT(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function jT(){return{animate:AT(!0),whileInView:AT(),whileHover:AT(),whileTap:AT(),whileDrag:AT(),whileFocus:AT(),exit:AT()}}var MT=class{constructor(e){this.isMounted=!1,this.node=e}update(){}},NT=class extends MT{constructor(e){super(e),e.animationState||=OT(e)}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();dC(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}};let PT=0;var FT=class extends MT{constructor(){super(...arguments),this.id=PT++}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;let r=this.node.animationState.setActive(`exit`,!e);t&&!e&&r.then(()=>{t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}};const IT={animation:{Feature:NT},exit:{Feature:FT}};function LT(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function RT(e){return{point:{x:e.pageX,y:e.pageY}}}const zT=e=>t=>CS(t)&&e(t,RT(t));function BT(e,t,n,r){return LT(e,t,zT(n),r)}const VT=1e-4;1-VT,1+VT;const HT=.01;0-HT,0+HT;function UT(e){return e.max-e.min}function WT(e,t,n){return Math.abs(e-t)<=n}function GT(e,t,n,r=.5){e.origin=r,e.originPoint=qy(t.min,t.max,e.origin),e.scale=UT(n)/UT(t),e.translate=qy(n.min,n.max,e.origin)-e.originPoint,(e.scale>=.9999&&e.scale<=1.0001||isNaN(e.scale))&&(e.scale=1),(e.translate>=-.01&&e.translate<=.01||isNaN(e.translate))&&(e.translate=0)}function KT(e,t,n,r){GT(e.x,t.x,n.x,r?r.originX:void 0),GT(e.y,t.y,n.y,r?r.originY:void 0)}function qT(e,t,n){e.min=n.min+t.min,e.max=e.min+UT(t)}function JT(e,t,n){qT(e.x,t.x,n.x),qT(e.y,t.y,n.y)}function YT(e,t,n){e.min=t.min-n.min,e.max=e.min+UT(t)}function XT(e,t,n){YT(e.x,t.x,n.x),YT(e.y,t.y,n.y)}function ZT(e){return[e(`x`),e(`y`)]}const QT=({current:e})=>e?e.ownerDocument.defaultView:null,$T=(e,t)=>Math.abs(e-t);function eE(e,t){let n=$T(e.x,t.x),r=$T(e.y,t.y);return Math.sqrt(n**2+r**2)}var tE=class{constructor(e,t,{transformPagePoint:n,contextWindow:r=window,dragSnapToOrigin:i=!1,distanceThreshold:a=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let e=iE(this.lastMoveEventInfo,this.history),t=this.startEvent!==null,n=eE(e.offset,{x:0,y:0})>=this.distanceThreshold;if(!t&&!n)return;let{point:r}=e,{timestamp:i}=ey;this.history.push({...r,timestamp:i});let{onStart:a,onMove:o}=this.handlers;t||(a&&a(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=nE(t,this.transformPagePoint),Qv.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if(this.dragSnapToOrigin&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let a=iE(e.type===`pointercancel`?this.lastMoveEventInfo:nE(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,a),r&&r(e,a)},!CS(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=a,this.contextWindow=r||window;let o=RT(e),s=nE(o,this.transformPagePoint),{point:c}=s,{timestamp:l}=ey;this.history=[{...c,timestamp:l}];let{onSessionStart:u}=t;u&&u(e,iE(s,this.history)),this.removeListeners=Sv(BT(this.contextWindow,`pointermove`,this.handlePointerMove),BT(this.contextWindow,`pointerup`,this.handlePointerUp),BT(this.contextWindow,`pointercancel`,this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),$v(this.updatePoint)}};function nE(e,t){return t?{point:t(e.point)}:e}function rE(e,t){return{x:e.x-t.x,y:e.y-t.y}}function iE({point:e},t){return{point:e,delta:rE(e,oE(t)),offset:rE(e,aE(t)),velocity:sE(t,.1)}}function aE(e){return e[0]}function oE(e){return e[e.length-1]}function sE(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=oE(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Tv(t)));)n--;if(!r)return{x:0,y:0};let a=Ev(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};let o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function cE(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?qy(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?qy(n,e,r.max):Math.min(e,n)),e}function lE(e,t,n){return{min:t===void 0?void 0:e.min+t,max:n===void 0?void 0:e.max+n-(e.max-e.min)}}function uE(e,{top:t,left:n,bottom:r,right:i}){return{x:lE(e.x,n,i),y:lE(e.y,t,r)}}function dE(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function fE(e,t){return{x:dE(e.x,t.x),y:dE(e.y,t.y)}}function pE(e,t){let n=.5,r=UT(e),i=UT(t);return i>r?n=Cv(t.min,t.max-r,e.min):r>i&&(n=Cv(e.min,e.max-i,t.min)),mv(0,1,n)}function mE(e,t){let n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const hE=.35;function gE(e=hE){return e===!1?e=0:e===!0&&(e=hE),{x:_E(e,`left`,`right`),y:_E(e,`top`,`bottom`)}}function _E(e,t,n){return{min:vE(e,t),max:vE(e,n)}}function vE(e,t){return typeof e==`number`?e:e[t]||0}const yE=new WeakMap;var bE=class{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Lw(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:n}={}){let{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;let i=e=>{let{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(RT(e).point)},a=(e,t)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=vS(n),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),ZT(e=>{let t=this.getAxisMotionValue(e).get()||0;if(Dy.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];if(r){let e=UT(r);t=e*(parseFloat(t)/100)}}}this.originPoint[e]=t}),i&&Qv.postRender(()=>i(e,t)),aT(this.visualElement,`transform`);let{animationState:a}=this.visualElement;a&&a.setActive(`whileDrag`,!0)},o=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:a}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:o}=t;if(r&&this.currentDirection===null){this.currentDirection=SE(o),this.currentDirection!==null&&i&&i(this.currentDirection);return}this.updateAxis(`x`,t.point,o),this.updateAxis(`y`,t.point,o),this.visualElement.render(),a&&a(e,t)},s=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>ZT(e=>this.getAnimationState(e)===`paused`&&this.getAxisMotionValue(e).animation?.play()),{dragSnapToOrigin:l}=this.getProps();this.panSession=new tE(e,{onSessionStart:i,onStart:a,onMove:o,onSessionEnd:s,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,distanceThreshold:n,contextWindow:QT(this.visualElement)})}stop(e,t){let n=e||this.latestPointerEvent,r=t||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!r||!n)return;let{velocity:a}=r;this.startAnimation(a);let{onDragEnd:o}=this.getProps();o&&Qv.postRender(()=>o(n,r))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive(`whileDrag`,!1)}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!xE(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=cE(a,this.constraints[e],this.elastic[e])),i.set(a)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;e&&tw(e)?this.constraints||=this.resolveRefConstraints():e&&n?this.constraints=uE(n.layoutBox,e):this.constraints=!1,this.elastic=gE(t),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&ZT(e=>{this.constraints!==!1&&this.getAxisMotionValue(e)&&(this.constraints[e]=mE(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){let{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!tw(e))return!1;let n=e.current,{projection:r}=this.visualElement;if(!r||!r.layout)return!1;let i=Nw(n,r.root,this.visualElement.getTransformPagePoint()),a=fE(r.layout.layoutBox,i);if(t){let e=t(hw(a));this.hasMutatedConstraints=!!e,e&&(a=mw(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:o}=this.getProps(),s=this.constraints||{},c=ZT(o=>{if(!xE(o,t,this.currentDirection))return;let c=s&&s[o]||{};a&&(c={min:0,max:0});let l=r?200:1e6,u=r?40:1e7,d={type:`inertia`,velocity:n?e[o]:0,bounceStiffness:l,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...i,...c};return this.startAxisValueAnimation(o,d)});return Promise.all(c).then(o)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return aT(this.visualElement,e),n.start(hT(e,n,0,t,this.visualElement,!1))}stopAnimation(){ZT(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){ZT(e=>this.getAxisMotionValue(e).animation?.pause())}getAnimationState(e){return this.getAxisMotionValue(e).animation?.state}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`,n=this.visualElement.getProps(),r=n[t];return r||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){ZT(t=>{let{drag:n}=this.getProps();if(!xE(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){let{min:n,max:a}=r.layout.layoutBox[t];i.set(e[t]-qy(n,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!tw(t)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};ZT(e=>{let t=this.getAxisMotionValue(e);if(t&&this.constraints!==!1){let n=t.get();r[e]=pE({min:n,max:n},this.constraints[e])}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},``):`none`,n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),ZT(t=>{if(!xE(t,e,null))return;let n=this.getAxisMotionValue(t),{min:i,max:a}=this.constraints[t];n.set(qy(i,a,r[t]))})}addListeners(){if(!this.visualElement.current)return;yE.set(this.visualElement,this);let e=this.visualElement.current,t=BT(e,`pointerdown`,e=>{let{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)}),n=()=>{let{dragConstraints:e}=this.getProps();tw(e)&&e.current&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,i=r.addEventListener(`measure`,n);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),Qv.read(n);let a=LT(window,`resize`,()=>this.scalePositionWithinConstraints()),o=r.addEventListener(`didUpdate`,(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(ZT(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())}));return()=>{a(),t(),i(),o&&o()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:a=hE,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:a,dragMomentum:o}}};function xE(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function SE(e,t=10){let n=null;return Math.abs(e.y)>t?n=`y`:Math.abs(e.x)>t&&(n=`x`),n}var CE=class extends MT{constructor(e){super(e),this.removeGroupControls=bv,this.removeListeners=bv,this.controls=new bE(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||bv}unmount(){this.removeGroupControls(),this.removeListeners()}};const wE=e=>(t,n)=>{e&&Qv.postRender(()=>e(t,n))};var TE=class extends MT{constructor(){super(...arguments),this.removePointerDownListener=bv}onPointerDown(e){this.session=new tE(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:QT(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:wE(e),onStart:wE(t),onMove:n,onEnd:(e,t)=>{delete this.session,r&&Qv.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=BT(this.node.current,`pointerdown`,e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}};const EE={hasAnimatedSinceResize:!0,hasEverUpdated:!1};let DE=!1;var OE=class extends r{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),DE&&i.root.didUpdate(),i.addEventListener(`animationComplete`,()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),EE.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,{projection:a}=n;return a?(a.isPresent=i,DE=!0,r||e.layoutDependency!==t||t===void 0||e.isPresent!==i?a.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?a.promote():a.relegate()||Qv.postRender(()=>{let e=a.getStack();(!e||!e.members.length)&&this.safeToRemove()})),null):null}componentDidUpdate(){let{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),mS.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;DE=!0,r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}};function kE(e){let[t,n]=GS(),r=d(sv);return b(OE,{...e,layoutGroup:r,switchLayoutGroup:d(aw),isPresent:t,safeToRemove:n})}function AE(e,t,n){let r=PS(e)?e:pS(e);return r.start(hT(``,r,t,n)),r.animation}const jE=(e,t)=>e.depth-t.depth;var ME=class{constructor(){this.children=[],this.isDirty=!1}add(e){fv(this.children,e),this.isDirty=!0}remove(e){pv(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(jE),this.isDirty=!1,this.children.forEach(e)}};function NE(e,t){let n=iy.now(),r=({timestamp:i})=>{let a=i-n;a>=t&&($v(r),e(a-t))};return Qv.setup(r,!0),()=>$v(r)}const PE=[`TopLeft`,`TopRight`,`BottomLeft`,`BottomRight`],FE=PE.length,IE=e=>typeof e==`string`?parseFloat(e):e,LE=e=>typeof e==`number`||q.test(e);function RE(e,t,n,r,i,a){i?(e.opacity=qy(0,n.opacity??1,BE(r)),e.opacityExit=qy(t.opacity??1,0,VE(r))):a&&(e.opacity=qy(t.opacity??1,n.opacity??1,r));for(let i=0;i<FE;i++){let a=`border${PE[i]}Radius`,o=zE(t,a),s=zE(n,a);if(o===void 0&&s===void 0)continue;o||=0,s||=0;let c=o===0||s===0||LE(o)===LE(s);c?(e[a]=Math.max(qy(IE(o),IE(s),r),0),(Dy.test(s)||Dy.test(o))&&(e[a]+=`%`)):e[a]=s}(t.rotate||n.rotate)&&(e.rotate=qy(t.rotate||0,n.rotate||0,r))}function zE(e,t){return e[t]===void 0?e.borderRadius:e[t]}const BE=HE(0,.5,Rv),VE=HE(.5,.95,bv);function HE(e,t,n){return r=>r<e?0:r>t?1:n(Cv(e,t,r))}function UE(e,t){e.min=t.min,e.max=t.max}function WE(e,t){UE(e.x,t.x),UE(e.y,t.y)}function GE(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function KE(e,t,n,r,i){return e-=t,e=Sw(e,1/n,r),i!==void 0&&(e=Sw(e,1/i,r)),e}function qE(e,t=0,n=1,r=.5,i,a=e,o=e){if(Dy.test(t)){t=parseFloat(t);let e=qy(o.min,o.max,t/100);t=e-o.min}if(typeof t!=`number`)return;let s=qy(a.min,a.max,r);e===a&&(s-=t),e.min=KE(e.min,t,n,s,i),e.max=KE(e.max,t,n,s,i)}function JE(e,t,[n,r,i],a,o){qE(e,t[n],t[r],t[i],t.scale,a,o)}const YE=[`x`,`scaleX`,`originX`],XE=[`y`,`scaleY`,`originY`];function ZE(e,t,n,r){JE(e.x,t,YE,n?n.x:void 0,r?r.x:void 0),JE(e.y,t,XE,n?n.y:void 0,r?r.y:void 0)}function QE(e){return e.translate===0&&e.scale===1}function $E(e){return QE(e.x)&&QE(e.y)}function eD(e,t){return e.min===t.min&&e.max===t.max}function tD(e,t){return eD(e.x,t.x)&&eD(e.y,t.y)}function nD(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function rD(e,t){return nD(e.x,t.x)&&nD(e.y,t.y)}function iD(e){return UT(e.x)/UT(e.y)}function aD(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}var oD=class{constructor(){this.members=[]}add(e){fv(this.members,e),e.scheduleRender()}remove(e){if(pv(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){let t=this.members.findIndex(t=>e===t);if(t===0)return!1;let n;for(let e=t;e>=0;e--){let t=this.members[e];if(t.isPresent!==!1){n=t;break}}return n?(this.promote(n),!0):!1}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);let{crossfade:r}=e.options;r===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{let{options:t,resumingFrom:n}=e;t.onExitComplete&&t.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}};function sD(e,t,n){let r=``,i=e.x.translate/t.x,a=e.y.translate/t.y,o=n?.z||0;if((i||a||o)&&(r=`translate3d(${i}px, ${a}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,rotateX:i,rotateY:a,skewX:o,skewY:s}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotateX(${i}deg) `),a&&(r+=`rotateY(${a}deg) `),o&&(r+=`skewX(${o}deg) `),s&&(r+=`skewY(${s}deg) `)}let s=e.x.scale*t.x,c=e.y.scale*t.y;return(s!==1||c!==1)&&(r+=`scale(${s}, ${c})`),r||`none`}const cD={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},lD=[``,`X`,`Y`,`Z`];let uD=0;function dD(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function fD(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let n=oT(t);if(window.MotionHasOptimisedAnimation(n,`transform`)){let{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,`transform`,Qv,!(t||r))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&fD(r)}function pD({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=uD++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Yv.value&&(cD.nodes=cD.calculatedTargetDeltas=cD.calculatedProjections=0),this.nodes.forEach(gD),this.nodes.forEach(CD),this.nodes.forEach(wD),this.nodes.forEach(_D),Yv.addProjectionMetrics&&Yv.addProjectionMetrics(cD)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new ME)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new wv),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=MS(t)&&!NS(t),this.instance=t;let{layoutId:n,layout:r,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(r||n)&&(this.isLayoutDirty=!0),e){let n,r=0,i=()=>this.root.updateBlockedByResize=!1;Qv.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n&&n(),n=NE(i,250),EE.hasAnimatedSinceResize&&(EE.hasAnimatedSinceResize=!1,this.nodes.forEach(SD)))})}n&&this.root.registerSharedNode(n,this),this.options.animate!==!1&&i&&(n||r)&&this.addEventListener(`didUpdate`,({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let a=this.options.transition||i.getDefaultTransition()||jD,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=i.getProps(),c=!this.targetLayout||!rD(this.targetLayout,r),l=!t&&n;if(this.options.layoutRoot||this.resumeFrom||l||t&&(c||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...Vx(a,`layout`),onPlay:o,onComplete:s};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,l)}else t||SD(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),$v(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(TD),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&fD(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,t.updateScroll(`snapshot`),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:n}=this.options;if(t===void 0&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,``):void 0,this.updateSnapshot(),e&&this.notifyListeners(`willUpdate`)}update(){this.updateScheduled=!1;let e=this.isUpdateBlocked();if(e){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(yD);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(bD);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(xD),this.nodes.forEach(mD),this.nodes.forEach(hD)):this.nodes.forEach(bD),this.clearAllSnapshots();let t=iy.now();ey.delta=mv(0,1e3/60,t-ey.timestamp),ey.timestamp=t,ey.isProcessing=!0,ty.update.process(ey),ty.preRender.process(ey),ty.render.process(ey),ey.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,mS.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(vD),this.sharedNodes.forEach(ED)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Qv.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Qv.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!UT(this.snapshot.measuredBox.x)&&!UT(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++){let t=this.path[e];t.updateScroll()}let e=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=Lw(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners(`measure`,this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify(`LayoutMeasure`,this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e=`measure`){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!$E(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,``):void 0,a=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||yw(this.latestValues)||a)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){let t=this.measurePageBox(),n=this.removeElementScroll(t);return e&&(n=this.removeTransform(n)),FD(n),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return Lw();let t=e.measureViewportBox(),n=this.scroll?.wasRoot||this.path.some(LD);if(!n){let{scroll:e}=this.root;e&&(kw(t.x,e.offset.x),kw(t.y,e.offset.y))}return t}removeElementScroll(e){let t=Lw();if(WE(t,e),this.scroll?.wasRoot)return t;for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:i,options:a}=r;r!==this.root&&i&&a.layoutScroll&&(i.wasRoot&&WE(t,e),kw(t.x,i.offset.x),kw(t.y,i.offset.y))}return t}applyTransform(e,t=!1){let n=Lw();WE(n,e);for(let e=0;e<this.path.length;e++){let r=this.path[e];!t&&r.options.layoutScroll&&r.scroll&&r!==r.root&&jw(n,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),yw(r.latestValues)&&jw(n,r.latestValues)}return yw(this.latestValues)&&jw(n,this.latestValues),n}removeTransform(e){let t=Lw();WE(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!n.instance||!yw(n.latestValues))continue;vw(n.latestValues)&&n.updateSnapshot();let r=Lw(),i=n.measurePageBox();WE(r,i),ZE(t,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,r)}return yw(this.latestValues)&&ZE(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:e.crossfade===void 0?!0:e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==ey.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||=t.isProjectionDirty,this.isTransformDirty||=t.isTransformDirty,this.isSharedProjectionDirty||=t.isSharedProjectionDirty;let n=!!this.resumingFrom||this!==t,r=!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize);if(r)return;let{layout:i,layoutId:a}=this.options;if(!this.layout||!(i||a))return;this.resolvedRelativeTargetAt=ey.timestamp;let o=this.getClosestProjectingParent();o&&this.linkedParentVersion!==o.layoutVersion&&!o.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(o&&o.layout?this.createRelativeTarget(o,this.layout.layoutBox,o.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Lw(),this.targetWithTransforms=Lw()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),JT(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):WE(this.target,this.layout.layoutBox),Tw(this.target,this.targetDelta)):WE(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,o&&!!o.resumingFrom==!!this.resumingFrom&&!o.options.layoutScroll&&o.target&&this.animationProgress!==1?this.createRelativeTarget(o,this.target,o.target):this.relativeParent=this.relativeTarget=void 0),Yv.value&&cD.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||vw(this.parent.latestValues)||bw(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(e,t,n){this.relativeParent=e,this.linkedParentVersion=e.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Lw(),this.relativeTargetOrigin=Lw(),XT(this.relativeTargetOrigin,t,n),WE(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===ey.timestamp&&(n=!1),n)return;let{layout:r,layoutId:i}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||i))return;WE(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,o=this.treeScale.y;Ow(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=Lw());let{target:s}=e;if(!s){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(GE(this.prevProjectionDelta.x,this.projectionDelta.x),GE(this.prevProjectionDelta.y,this.projectionDelta.y)),KT(this.projectionDelta,this.layoutCorrected,s,this.latestValues),(this.treeScale.x!==a||this.treeScale.y!==o||!aD(this.projectionDelta.x,this.prevProjectionDelta.x)||!aD(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners(`projectionUpdate`,s)),Yv.value&&cD.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Fw(),this.projectionDelta=Fw(),this.projectionDeltaWithTransform=Fw()}setAnimationOrigin(e,t=!1){let n=this.snapshot,r=n?n.latestValues:{},i={...this.latestValues},a=Fw();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let o=Lw(),s=n?n.source:void 0,c=this.layout?this.layout.source:void 0,l=s!==c,u=this.getStack(),d=!u||u.members.length<=1,f=!!(l&&!d&&this.options.crossfade===!0&&!this.path.some(AD));this.animationProgress=0;let p;this.mixTargetDelta=t=>{let n=t/1e3;DD(a.x,e.x,n),DD(a.y,e.y,n),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(XT(o,this.layout.layoutBox,this.relativeParent.layout.layoutBox),kD(this.relativeTarget,this.relativeTargetOrigin,o,n),p&&tD(this.relativeTarget,p)&&(this.isProjectionDirty=!1),p||=Lw(),WE(p,this.relativeTarget)),l&&(this.animationValues=i,RE(i,r,this.latestValues,n,f,d)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners(`animationStart`),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&=($v(this.pendingAnimation),void 0),this.pendingAnimation=Qv.update(()=>{EE.hasAnimatedSinceResize=!0,ay.layout++,this.motionValue||=pS(0),this.currentAnimation=AE(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onStop:()=>{ay.layout--},onComplete:()=>{ay.layout--,e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners(`animationComplete`)}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(!(!t||!n||!r)){if(this!==e&&this.layout&&r&&ID(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||Lw();let t=UT(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=UT(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}WE(t,n),jw(t,i),KT(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new oD);let n=this.sharedNodes.get(e);n.add(t);let r=t.options.initialPromotionConfig;t.promote({transition:r?r.transition:void 0,preserveFollowOpacity:r&&r.shouldPreserveFollowOpacity?r.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return e?e.lead===this:!0}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return e?e.relegate(this):!1}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let r={};n.z&&dD(`z`,e,r,this.animationValues);for(let t=0;t<lD.length;t++)dD(`rotate${lD[t]}`,e,r,this.animationValues),dD(`skew${lD[t]}`,e,r,this.animationValues);for(let t in e.render(),r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility=`hidden`;return}let n=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility=``,e.opacity=``,e.pointerEvents=KC(t?.pointerEvents)||``,e.transform=n?n(this.latestValues,``):`none`;return}let r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){this.options.layoutId&&(e.opacity=this.latestValues.opacity===void 0?1:this.latestValues.opacity,e.pointerEvents=KC(t?.pointerEvents)||``),this.hasProjected&&!yw(this.latestValues)&&(e.transform=n?n({},``):`none`,this.hasProjected=!1);return}e.visibility=``;let i=r.animationValues||r.latestValues;this.applyTransformsToTarget();let a=sD(this.projectionDeltaWithTransform,this.treeScale,i);n&&(a=n(i,a)),e.transform=a;let{x:o,y:s}=this.projectionDelta;for(let t in e.transformOrigin=`${o.origin*100}% ${s.origin*100}% 0`,r.animationValues?e.opacity=r===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:e.opacity=r===this?i.opacity===void 0?``:i.opacity:i.opacityExit===void 0?0:i.opacityExit,CC){if(i[t]===void 0)continue;let{correct:n,applyTo:o,isCSSVariable:s}=CC[t],c=a===`none`?i[t]:n(i[t],r);if(o){let t=o.length;for(let n=0;n<t;n++)e[o[n]]=c}else s?this.options.visualElement.renderState.vars[t]=c:e[t]=c}this.options.layoutId&&(e.pointerEvents=r===this?KC(t?.pointerEvents)||``:`none`)}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(yD),this.root.sharedNodes.clear()}}}function mD(e){e.updateLayout()}function hD(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners(`didUpdate`)){let{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,a=t.source!==e.layout.source;i===`size`?ZT(e=>{let r=a?t.measuredBox[e]:t.layoutBox[e],i=UT(r);r.min=n[e].min,r.max=r.min+i}):ID(i,t.layoutBox,n)&&ZT(r=>{let i=a?t.measuredBox[r]:t.layoutBox[r],o=UT(n[r]);i.max=i.min+o,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+o)});let o=Fw();KT(o,n,t.layoutBox);let s=Fw();a?KT(s,e.applyTransform(r,!0),t.measuredBox):KT(s,n,t.layoutBox);let c=!$E(o),l=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:a}=r;if(i&&a){let o=Lw();XT(o,t.layoutBox,i.layoutBox);let s=Lw();XT(s,n,a.layoutBox),rD(o,s)||(l=!0),r.options.layoutRoot&&(e.relativeTarget=s,e.relativeTargetOrigin=o,e.relativeParent=r)}}}e.notifyListeners(`didUpdate`,{layout:n,snapshot:t,delta:s,layoutDelta:o,hasLayoutChanged:c,hasRelativeLayoutChanged:l})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function gD(e){Yv.value&&cD.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty),e.isTransformDirty||=e.parent.isTransformDirty)}function _D(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function vD(e){e.clearSnapshot()}function yD(e){e.clearMeasurements()}function bD(e){e.isLayoutDirty=!1}function xD(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify(`BeforeLayoutMeasure`),e.resetTransform()}function SD(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function CD(e){e.resolveTargetDelta()}function wD(e){e.calcProjection()}function TD(e){e.resetSkewAndRotation()}function ED(e){e.removeLeadSnapshot()}function DD(e,t,n){e.translate=qy(t.translate,0,n),e.scale=qy(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function OD(e,t,n,r){e.min=qy(t.min,n.min,r),e.max=qy(t.max,n.max,r)}function kD(e,t,n,r){OD(e.x,t.x,n.x,r),OD(e.y,t.y,n.y,r)}function AD(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const jD={duration:.45,ease:[.4,0,.1,1]},MD=e=>typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),ND=MD(`applewebkit/`)&&!MD(`chrome/`)?Math.round:bv;function PD(e){e.min=ND(e.min),e.max=ND(e.max)}function FD(e){PD(e.x),PD(e.y)}function ID(e,t,n){return e===`position`||e===`preserve-aspect`&&!WT(iD(t),iD(n),.2)}function LD(e){return e!==e.root&&e.scroll?.wasRoot}const RD=pD({attachResizeListener:(e,t)=>LT(e,`resize`,t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),zD={current:void 0},BD=pD({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!zD.current){let e=new RD({});e.mount(window),e.setOptions({layoutScroll:!0}),zD.current=e}return zD.current},resetTransform:(e,t)=>{e.style.transform=t===void 0?`none`:t},checkIsScrollRoot:e=>window.getComputedStyle(e).position===`fixed`}),VD={pan:{Feature:TE},drag:{Feature:CE,ProjectionNode:BD,MeasureLayout:kE}};function HD(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive(`whileHover`,n===`Start`);let i=`onHover`+n,a=r[i];a&&Qv.postRender(()=>a(t,RT(t)))}var UD=class extends MT{mount(){let{current:e}=this.node;e&&(this.unmount=xS(e,(e,t)=>(HD(this.node,t,`Start`),e=>HD(this.node,e,`End`))))}unmount(){}},WD=class extends MT{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(`:focus-visible`)}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive(`whileFocus`,!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive(`whileFocus`,!1),this.isActive=!1)}mount(){this.unmount=Sv(LT(this.node.current,`focus`,()=>this.onFocus()),LT(this.node.current,`blur`,()=>this.onBlur()))}unmount(){}};function GD(e,t,n){let{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive(`whileTap`,n===`Start`);let i=`onTap`+(n===`End`?``:n),a=r[i];a&&Qv.postRender(()=>a(t,RT(t)))}var KD=class extends MT{mount(){let{current:e}=this.node;e&&(this.unmount=jS(e,(e,t)=>(GD(this.node,t,`Start`),(e,{success:t})=>GD(this.node,e,t?`End`:`Cancel`)),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}};const qD=new WeakMap,JD=new WeakMap,YD=e=>{let t=qD.get(e.target);t&&t(e)},XD=e=>{e.forEach(YD)};function ZD({root:e,...t}){let n=e||document;JD.has(n)||JD.set(n,{});let r=JD.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(XD,{root:e,...t})),r[i]}function QD(e,t,n){let r=ZD(t);return qD.set(e,n),r.observe(e),()=>{qD.delete(e),r.unobserve(e)}}const $D={some:0,all:1};var eO=class extends MT{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r=`some`,once:i}=e,a={root:t?t.current:void 0,rootMargin:n,threshold:typeof r==`number`?r:$D[r]},o=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,i&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive(`whileInView`,t);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),a=t?n:r;a&&a(e)};return QD(this.node.current,a,o)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>`u`)return;let{props:e,prevProps:t}=this.node,n=[`amount`,`margin`,`root`].some(tO(e,t));n&&this.startObserver()}unmount(){}};function tO({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const nO={inView:{Feature:eO},tap:{Feature:KD},focus:{Feature:WD},hover:{Feature:UD}},rO={layout:{ProjectionNode:BD,MeasureLayout:kE}},iO={...IT,...nO,...VD,...rO},aO=pw(iO,Qw),oO={root:{k1xSpc:`x78zum5`,kzqmXN:`xh8yej3`,kXwgrk:`xdt5ytf`,kGNEyG:`x6s0dn4`,kjj79g:`xl56j7k`,kVQacm:`xb3r6kr`,$$css:!0},arrow:{kKVMdj:`xqcmdr3`,k44tkh:`x4afe7t`,kyAemX:`x4hg4is`,$$css:!0},hidden:{k33iCy:`xlshs6z`,$$css:!0}},sO=({testId:e=`carousel-id`,activeIndex:t=0,extraClassNames:n=``,xstyle:r,onSlide:i=()=>{},autoSlide:a,showIndicators:o=!0,continuous:s=!0,interval:c=4e3,prevIcon:l=Mt,nextIcon:u=Nt,showArrows:d=!0,iconExtraClassNames:p=``,iconXstyle:m,carouselItems:h})=>{let[g,_]=v(t),y=e=>{let t=(e+h.length)%h.length;_(t),i(t,t>g?`right`:`left`)};f(()=>{if(a){let e=setInterval(()=>{s||g<h.length-1?y(g+1):clearInterval(e)},c);return()=>clearInterval(e)}},[a,g,s,c,h.length]),f(()=>{t!==g&&_(t)},[t]);let S=()=>{if(g===0&&!s)return;let e=g-1;e<0&&(e=h.length-1),y(e)},C=()=>{if(g===h.length-1){if(!s)return;y(0)}else y(g+1)},w={type:`spring`,damping:20,stiffness:100},T={initial:e=>({x:e>0?`100%`:`-100%`,opacity:0}),animate:{x:0,opacity:1,transition:w},exit:e=>({x:e>0?`-100%`:`100%`,opacity:0,transition:w})},E=V(oO.root,r);return x(`div`,{"data-testid":e,...E,className:H(E.className,n),children:[x(`div`,{className:`x78zum5 xdmi676 xh8yej3 x6s0dn4 xvh977a`,children:[d&&b(Ol,{icon:l,size:`lg`,variant:`no-border`,testId:`carousel-prev`,extraClassNames:p,xstyle:[oO.arrow,g===0&&!s&&oO.hidden,m],onClick:S}),b(`div`,{className:`x5yr21d xh8yej3 xb3r6kr`,children:b(aO.div,{custom:1,initial:`initial`,animate:`animate`,exit:`exit`,variants:T,className:`xh8yej3`,children:h[g]},g)}),d&&b(Ol,{icon:u,testId:`carousel-next`,size:`lg`,variant:`no-border`,extraClassNames:p,xstyle:[oO.arrow,g===h.length-1&&!s&&oO.hidden,m],onClick:C})]}),o&&b(`div`,{className:`x1mjqqkp x78zum5 xvh977a`,children:h.map((e,t)=>b(`div`,{...{0:{className:`x164u9eo x1jjc1wv x1ypdohk x10hpsqq x151irhy`},1:{className:`x164u9eo x1jjc1wv x1ypdohk x10hpsqq xu0u6m0`}}[(t===g)<<0],onClick:()=>y(t)},t))})]})};var cO=sO;const lO={base:{ksu8eU:`x1y0btm7`,kMzoRj:`x15udo89`,kVAM5u:`x19rljk3 x1yxquew x1tkmfiq xg92zho x1sua4ys`,kWkggS:`xrkmy7n`,kMwMTN:`xcmjw3v`,$$css:!0},invalid:{kVAM5u:`xqqd531 x35h4v5 x1g2ycgc x1xia7p2 x1qondk2`,$$css:!0},disabled:{kVAM5u:`x1b8hvqk x35v8bp xru2zqf xfrz04c x1g3wuin`,kWkggS:`x13zkdvk`,kMwMTN:`x16nf0g9`,kkrTdU:`x1h6gzvc`,$$css:!0}},uO={root:{k1xSpc:`x78zum5`,$$css:!0},input:{kB7OPa:`x9f619`,kysU6D:`xjyslct`,kmVPX3:`x1717udv`,kZKoxP:`xf08kfj`,kzqmXN:`x1xvt488`,kmuXW:`x2lah0s`,k3XXqK:`x1t137rt`,kGVxlE:`x1gnnqk1`,kVAM5u:`x9mfghu x1yxquew x1tkmfiq xg92zho x1sua4ys`,kWkggS:`x19nua0t`,kKwaWg:`x18o3ruo x11ewqas x1b4pi82`,k1YJky:`x1xsqp64`,kz484i:`xiy17q3`,kgSjnq:`x1h4uluw`,kl9DO0:`x1gqfdwy`,kkrTdU:`x1ypdohk`,$$css:!0},checkbox:{kaIpWk:`x12yonn6`,kKwaWg:`x18o3ruo x11ewqas x1b4pi82 x1fjbote x1xdpq4a`,$$css:!0},radio:{kaIpWk:`x10hpsqq`,$$css:!0},disabled:{kkrTdU:`x1h6gzvc`,$$css:!0},label:{koQZXg:`xko4hcy`,keoZOQ:`xjufezg`,kGuDYH:`xkpwil5`,kLWn49:`x8r4c90`,kkrTdU:`x1ypdohk`,kMwMTN:`xcmjw3v`,$$css:!0},disabledLabel:{kkrTdU:`x1h6gzvc`,kMwMTN:`xp1ohcm`,$$css:!0}},dO=e=>{let{type:t=`checkbox`,value:n,disabled:r=!1,label:i,onChange:a,onClick:o,onKeyDown:s,checked:c,defaultChecked:l,id:u,name:d,extraClassNames:f=``,extraLabelClassNames:m,xstyle:h,inputXstyle:g,labelXstyle:_,testId:v,...y}=e,S=p(),C=u??`checkbox${S}`,w=el(y),T=V(uO.root,h),E=V(uO.label,r&&uO.disabledLabel,_);return x(`span`,{...T,className:H(T.className,f),children:[b(`input`,{value:n,type:t,"data-testid":v,name:d,id:C,readOnly:!a,checked:c,defaultChecked:l,...V(lO.base,uO.input,uO[t],r&&lO.disabled,r&&uO.disabled,g),disabled:r,onClick:o,onChange:a,onKeyDown:s,...w}),i&&b(`label`,{htmlFor:C,...E,className:H(E.className,m),children:i})]})},fO=({isVisible:e,children:t})=>{let n=_(null),[r,i]=v(0);return f(()=>{n.current&&setTimeout(()=>{i((n.current?.scrollHeight??0)+5)},0)},[t]),b(JS,{initial:!1,children:e&&b(aO.div,{initial:{height:0,opacity:0},animate:{height:r,opacity:1},exit:{height:0,opacity:0},transition:{type:`spring`,damping:20,stiffness:100},children:b(`div`,{ref:n,children:t})})})};var pO=fO;const mO={button:{kB7OPa:`x9f619`,kmVPX3:`x1717udv`,kkrTdU:`x1ypdohk`,kMzoRj:`x15udo89`,ksu8eU:`x1y0btm7`,kVAM5u:`xcvrc18`,kGVxlE:`x1bbn379`,k3XXqK:`xi5y0ii`,$$css:!0}},hO={sm:{kzqmXN:`xwqq7k2`,kZKoxP:`xmll18r`,kaIpWk:`x16eypsj`,$$css:!0},md:{kzqmXN:`xp8d6y2`,kZKoxP:`xam5rvr`,kaIpWk:`x1vx5ruh`,$$css:!0},lg:{kzqmXN:`xs5h3dt`,kZKoxP:`xettwda`,kaIpWk:`x116uinm`,$$css:!0}},gO=c(function({color:e,onClick:t,"aria-label":n,size:r=`lg`,extraClassNames:i=``,xstyle:a,id:o,testId:s},c){let l=V(mO.button,hO[r],a);return b(`button`,{ref:c,"aria-label":n,className:H(l.className,i),"data-testid":s,id:o,onClick:t,style:{...l.style,backgroundColor:e},type:`button`})});var _O=gO;const vO={root:{k1xSpc:`x78zum5`,kGNEyG:`x6s0dn4`,kOIVth:`x13z6uf9`,$$css:!0},content:{kVAEAm:`x1n2onr6`,kY2c9j:`x1i7x82i`,k7Eaqz:`x1vi9356`,kMwMTN:`x8x6yx0`,$$css:!0}};function yO({color:e,label:t,children:n,placement:r=`bottom`,align:i=`start`,extraClassNames:a=``,xstyle:o,contentXstyle:s,id:c,testId:l,onOpen:u}){let d=p(),f=V(vO.root,o),m=b(`label`,{className:`x1ypdohk xkpwil5 x8r4c90 xuxw1ft x8x6yx0`,htmlFor:d,children:t}),h=b(_O,{"aria-label":t,color:e,id:c??d,size:`sm`,onClick:u});return n?x(`div`,{...f,className:H(f.className,a),children:[m,x($_,{children:[b(ev,{asChild:!0,children:h}),b(nv,{align:i,...V(S_.panel,S_.motion,vO.content,s),"data-testid":l,side:r,sideOffset:2,children:n})]})]}):x(`div`,{...f,className:H(f.className,a),children:[b(`span`,{className:`x1ypdohk xkpwil5 x8r4c90 xuxw1ft x8x6yx0`,children:t}),h]})}var bO=yO;const xO={panel:{kB7OPa:`x9f619`,keoZOQ:`xhj8ucd`,k1K539:`x1hpqcdg`,k1xSpc:`x78zum5`,kzqmXN:`xh8yej3`,ks0D6T:`x1983rqf`,kXwgrk:`xdt5ytf`,kGNEyG:`x1cy8zhl`,kaIpWk:`x1j6x5gx`,kMzoRj:`x15udo89`,ksu8eU:`x1y0btm7`,kVAM5u:`x8a1gvu`,kWkggS:`x15onfmv`,kE3dHu:`x9dzeaa`,kpe85a:`x52dz5p`,kLKAdn:`x1q57ora`,kGO01o:`xsaxbkt`,kGVxlE:`x1bbn379`,$$css:!0},normal:{kOIVth:`x13z6uf9`,$$css:!0},spacious:{kOIVth:`x8233eu`,$$css:!0},title:{kGuDYH:`xboafo0`,kLWn49:`xl2ypbo`,k63SB2:`x1xlr1w8`,kP9fke:`xtvhhri`,kb6lSQ:`x13qdn04`,kMwMTN:`x190h4uq`,$$css:!0},actions:{k1xSpc:`x78zum5`,kzqmXN:`xh8yej3`,ks0D6T:`x193iq5w`,kwnvtZ:`x1a02dak`,kGNEyG:`x6s0dn4`,kjj79g:`x13a6bvl`,kOIVth:`x13z6uf9`,$$css:!0}},SO=({title:e,children:t,onApply:n,onCancel:r,isApplyDisabled:i=!1,applyLabel:a=`Apply`,cancelLabel:o=`Cancel`,spacing:s=`normal`,extraClassNames:c=``,xstyle:l,id:u,testId:d})=>{let f=V(xO.panel,xO[s],l);return x(`div`,{...f,className:H(f.className,c),"data-testid":d,id:u,children:[b(`span`,{className:`xboafo0 xl2ypbo x1xlr1w8 xtvhhri x13qdn04 x190h4uq`,children:e}),t,x(`div`,{className:`x78zum5 xh8yej3 x193iq5w x1a02dak x6s0dn4 x13a6bvl x13z6uf9`,children:[r&&b(Ol,{label:o,onClick:r,size:`sm`,variant:`outline`}),n&&b(Ol,{disabled:i,label:a,onClick:n,size:`sm`,variant:`theme`})]})]})};var CO=SO;const wO={link:{k1xSpc:`x3nfvp2`,kMwMTN:`x1bc7ga3`,kMnn75:`xujl8zx`,kcSHmL:`xrys4gj`,k1ekBW:`xtnl7vc`,kIyJzY:`xx6bhzk`,kAMwcw:`xwwtwea`,$$css:!0},icon:{kMwMTN:`x1heor9g`,kMnn75:`x1ikc5xb`,$$css:!0},label:{kMwMTN:`x8x6yx0`,kmuXW:`x2lah0s`,$$css:!0}},TO=({variant:e=`link`,label:t,href:n,children:r,extraClassNames:i=``,xstyle:a,testId:o,onClick:s})=>{let c=V(wO[e],a);return x(y,{children:[t&&b(`span`,{className:`x8x6yx0 x2lah0s`,children:t}),b(`a`,{href:n,target:`_blank`,rel:`noopener`,...c,className:Dt(c.className,i),"data-testid":o,onClick:s,children:r})]})};var EO=TO;function DO(e,t){if(typeof e==`function`)return e(t);typeof e==`object`&&e&&`current`in e&&(e.current=t)}function OO(...e){let t=new Map;return n=>{if(e.forEach(e=>{let r=DO(e,n);r&&t.set(e,r)}),t.size>0)return()=>{e.forEach(e=>{let n=t.get(e);n&&typeof n==`function`?n():DO(e,null)}),t.clear()}}}function kO(...e){return u(OO(...e),e)}const AO=(e,t)=>{let n;return typeof e==`number`&&e>0&&(n={width:`${e}px`}),typeof t==`number`&&t>0&&(n||={},n.height=`${t}px`),n},jO={field:{kB7OPa:`x9f619`,kWkggS:`x1qzpk1z`,kZKoxP:`xvy3ard`,kE3dHu:`xq6sow3`,kpe85a:`xujd68v`,kLKAdn:`x1bixx6j`,kGO01o:`x1a943lp`,kaIpWk:`x1vx5ruh`,kMv6JI:`xjb2p0i`,k63SB2:`x1pd3egz`,kLWn49:`x8cebxl`,k3XXqK:`x1t137rt`,k8Qsv1:`xsvzths`,kH8XJS:`x7xwk5j`,$$css:!0},small:{kGuDYH:`x13vkkqp`,$$css:!0},large:{kGuDYH:`x1437gpi`,$$css:!0},left:{ksF3WI:`x1a2w583`,kYm2EN:`xjppbhk`,kWqL5O:`xgfja2r x1jh4cj x12ttex6 x1inl38p`,$$css:!0},right:{kIxVMA:`x1ia1hqs`,kqGeR4:`xfrllxf`,kZ1KPB:`xyj58a3 xfu29go x1h2v91w xy4jxoo`,$$css:!0},disabled:{kfzvcC:`x47corl`,$$css:!0}},MO=c((e,t)=>{let{readonly:n=!1,disabled:r=!1,onChange:i,onPaste:a,onKeyUp:o,onFocus:s,onBlur:c,onKeyDown:l,id:u,name:d,size:p=`sm`,value:m,placeholder:h,extraClassNames:g=``,xstyle:S,testId:C,type:w=`text`,inputGroup:T,step:E,showError:D,errorText:O,min:k,max:A,maxLength:j,minLength:M,required:ee=!1,autoComplete:N=`off`,inputWidth:te,inputHeight:P,autoFocus:ne=!1,...F}=e,re=_(null),ie=kO(t,re),[ae,I]=v(null),oe=el(F),se=_(ne);f(()=>{se.current&&setTimeout(()=>{re.current?.focus()},0)},[]),f(()=>{let e=re.current;e&&w!==`number`&&w!==`email`&&e.setSelectionRange(ae,ae)},[t,ae,m,w]);let ce=e=>{I(e.target.selectionStart),i&&i(e)},L=()=>w===`number`?k===void 0?!0:k%Number(E??1)===0:!1,le=e=>Array.isArray(e)?e.join(`,`):String(e),R=e=>{if(L()){let t=e.currentTarget,n=t.value;t.defaultValue=``,t.value=t.validity.valid&&m!=null?le(m):n}c?.(e)};f(()=>{let e=re.current;w===`number`&&m!=null&&m!==e?.value&&e&&(e.value=le(m))},[m,w]);let ue=V(lO.base,jO.field,p===`lg`?jO.large:jO.small,T===`left`&&jO.left,T===`right`&&jO.right,D&&lO.invalid,r&&lO.disabled,r&&jO.disabled,S),z=AO(te,P),de={};j&&(de.maxLength=j),M&&(de.minLength=M);let fe=w===`number`?{defaultValue:m}:{value:m};return x(y,{children:[b(`input`,{ref:ie,"data-testid":C,name:d,id:u,type:w,...fe,...ue,className:H(`specTextField`,ue.className,g),style:{...ue.style,...z},placeholder:h,disabled:r,readOnly:n,"aria-invalid":D||void 0,autoComplete:N,onChange:ce,onPaste:a,onFocus:s,onBlur:R,onKeyDown:l,onKeyUp:o,step:E,required:ee,min:k,max:A,...de,...oe}),O&&D&&b(`div`,{className:`xpfypby xwnasfm x1xe75nh x1aijl2p`,children:O})]})});MO.displayName=`TextField`;const NO={group:{kVAEAm:`x1n2onr6`,k1xSpc:`x78zum5`,kzqmXN:`xh8yej3`,kwnvtZ:`x1a02dak`,kaIpWk:`x1vx5ruh`,k3XXqK:`x1t137rt`,$$css:!0},field:{k1xSpc:`x78zum5`,kUk6DE:`x845mor`,kkrTdU:`x1ypdohk`,kE3dHu:`xq6sow3`,kpe85a:`xujd68v`,kLKAdn:`x1bixx6j`,kGO01o:`x1a943lp`,kLWn49:`x8cebxl`,kWkggS:`x1qzpk1z`,kaIpWk:`x1vx5ruh`,k3XXqK:`x1t137rt`,kY2c9j:`x1swf91x x1fq8jsg`,$$css:!0},left:{ksF3WI:`x1a2w583`,kYm2EN:`xjppbhk`,$$css:!0},right:{kIxVMA:`x1ia1hqs`,kqGeR4:`xfrllxf`,$$css:!0},input:{k1xSpc:`x78zum5`,kzqmXN:`xh8yej3`,kUk6DE:`x845mor`,kY2c9j:`x1swf91x x1nniw7y`,$$css:!0},appended:{koQZXg:`xj3b58b`,kaIpWk:`x2u8bby`,ksF3WI:`x1a2w583 xxkfc9v`,kYm2EN:`xjppbhk x8txd6`,$$css:!0},overlap:{koQZXg:`xh9i6ac`,$$css:!0},button:{kY2c9j:`x1swf91x x16p59gx`,kMzoRj:`x15udo89 xcvuhk8`,$$css:!0},element:{k1xSpc:`x78zum5`,kGNEyG:`x6s0dn4`,kjj79g:`xl56j7k`,kY2c9j:`x1swf91x xh986oh`,$$css:!0}},PO=c((e,t)=>{let{readonly:n=!1,onChange:r,onKeyUp:i,onFocus:o,onBlur:s,onKeyDown:c,name:u,value:d,placeholder:f,append:p=[],extraClassNames:m=``,xstyle:h,id:g,testId:_,showError:v,required:y,autoComplete:S,autoFocus:C,disabled:w,type:T,step:E,min:D,max:O,field:k,maxLength:A,minLength:j,inputGroup:M,...ee}=e,N=el(ee),te={className:`x1n2onr6 x78zum5 xh8yej3 x1a02dak x1vx5ruh x1t137rt`},P=p.filter(Boolean),ne=M??(P.length>0?`left`:void 0),F=V(lO.base,NO.field,ne&&NO[ne],v&&lO.invalid,h),re=l(k)&&typeof k.type!=`string`,ie=re?a(k,{inputGroup:ne}):k;return x(`div`,{id:`input-group-${g}`,...te,className:H(te.className,m),children:[k?b(`div`,{"data-testid":_,"aria-invalid":v||void 0,...F,className:H(F.className,m),children:ie}):b(MO,{testId:_,readonly:n,onChange:r,onKeyUp:i,onFocus:o,onBlur:s,onKeyDown:c,name:u,ref:t,showError:v,value:d,required:y,placeholder:f,autoComplete:S,autoFocus:C,id:g,type:T,disabled:w,step:E,min:D,max:O,maxLength:A,minLength:j,inputGroup:ne,extraClassNames:m,xstyle:[NO.input,h],...N}),P.map((e,t)=>e?.variant===`button`?b(Ol,{...e.buttonProps,xstyle:[NO.appended,t>0&&NO.overlap,NO.button,e.buttonProps.xstyle]},t):b(`div`,{...V(lO.base,NO.appended,t>0&&NO.overlap,NO.element),children:e?.element},t))]})});PO.displayName=`InputGroup`;var FO=`Dialog`,[IO,LO]=F(FO),[RO,zO]=IO(FO),BO=t=>{let{__scopeDialog:n,children:r,open:i,defaultOpen:a,onOpenChange:o,modal:s=!0}=t,c=e.useRef(null),l=e.useRef(null),[u,d]=pe({prop:i,defaultProp:a??!1,onChange:o,caller:FO});return b(RO,{scope:n,triggerRef:c,contentRef:l,contentId:Te(),titleId:Te(),descriptionId:Te(),open:u,onOpenChange:d,onOpenToggle:e.useCallback(()=>d(e=>!e),[d]),modal:s,children:r})};BO.displayName=FO;var VO=`DialogTrigger`,HO=e.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=zO(VO,n),a=I(t,i.triggerRef);return b(B.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":i.open,"aria-controls":i.contentId,"data-state":ck(i.open),...r,ref:a,onClick:z(e.onClick,i.onOpenToggle)})});HO.displayName=VO;var UO=`DialogPortal`,[WO,GO]=IO(UO,{forceMount:void 0}),KO=t=>{let{__scopeDialog:n,forceMount:r,children:i,container:a}=t,o=zO(UO,n);return b(WO,{scope:n,forceMount:r,children:e.Children.map(i,e=>b(ye,{present:r||o.open,children:b(op,{asChild:!0,container:a,children:e})}))})};KO.displayName=UO;var qO=`DialogOverlay`,JO=e.forwardRef((e,t)=>{let n=GO(qO,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=zO(qO,e.__scopeDialog);return a.modal?b(ye,{present:r||a.open,children:b(XO,{...i,ref:t})}):null});JO.displayName=qO;var YO=oe(`DialogOverlay.RemoveScroll`),XO=e.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=zO(qO,n);return b(Km,{as:YO,allowPinchZoom:!0,shards:[i.contentRef],children:b(B.div,{"data-state":ck(i.open),...r,ref:t,style:{pointerEvents:`auto`,...r.style}})})}),ZO=`DialogContent`,QO=e.forwardRef((e,t)=>{let n=GO(ZO,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=zO(ZO,e.__scopeDialog);return b(ye,{present:r||a.open,children:a.modal?b($O,{...i,ref:t}):b(ek,{...i,ref:t})})});QO.displayName=ZO;var $O=e.forwardRef((t,n)=>{let r=zO(ZO,t.__scopeDialog),i=e.useRef(null),a=I(n,r.contentRef,i);return e.useEffect(()=>{let e=i.current;if(e)return Ip(e)},[]),b(tk,{...t,ref:a,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:z(t.onCloseAutoFocus,e=>{e.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:z(t.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0,r=t.button===2||n;r&&e.preventDefault()}),onFocusOutside:z(t.onFocusOutside,e=>e.preventDefault())})}),ek=e.forwardRef((t,n)=>{let r=zO(ZO,t.__scopeDialog),i=e.useRef(!1),a=e.useRef(!1);return b(tk,{...t,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:e=>{t.onCloseAutoFocus?.(e),e.defaultPrevented||(i.current||r.triggerRef.current?.focus(),e.preventDefault()),i.current=!1,a.current=!1},onInteractOutside:e=>{t.onInteractOutside?.(e),e.defaultPrevented||(i.current=!0,e.detail.originalEvent.type===`pointerdown`&&(a.current=!0));let n=e.target,o=r.triggerRef.current?.contains(n);o&&e.preventDefault(),e.detail.originalEvent.type===`focusin`&&a.current&&e.preventDefault()}})}),tk=e.forwardRef((t,n)=>{let{__scopeDialog:r,trapFocus:i,onOpenAutoFocus:a,onCloseAutoFocus:o,...s}=t,c=zO(ZO,r),l=e.useRef(null),u=I(n,l);return Yl(),x(y,{children:[b(tu,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:a,onUnmountAutoFocus:o,children:b(Vl,{role:`dialog`,id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":ck(c.open),...s,ref:u,onDismiss:()=>c.onOpenChange(!1)})}),x(y,{children:[b(fk,{titleId:c.titleId}),b(mk,{contentRef:l,descriptionId:c.descriptionId})]})]})}),nk=`DialogTitle`,rk=e.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=zO(nk,n);return b(B.h2,{id:i.titleId,...r,ref:t})});rk.displayName=nk;var ik=`DialogDescription`,ak=e.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=zO(ik,n);return b(B.p,{id:i.descriptionId,...r,ref:t})});ak.displayName=ik;var ok=`DialogClose`,sk=e.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=zO(ok,n);return b(B.button,{type:`button`,...r,ref:t,onClick:z(e.onClick,()=>i.onOpenChange(!1))})});sk.displayName=ok;function ck(e){return e?`open`:`closed`}var lk=`DialogTitleWarning`,[uk,dk]=ne(lk,{contentName:ZO,titleName:nk,docsSlug:`dialog`}),fk=({titleId:t})=>{let n=dk(lk),r=`\`${n.contentName}\` requires a \`${n.titleName}\` for the component to be accessible for screen reader users.
|
|
1134
|
+
`),()=>{m.contains(p)&&m.removeChild(p)}},[n]),b(VS,{isPresent:n,childRef:o,sizeRef:s,children:e.cloneElement(t,{ref:l})})}const US=({children:t,initial:n,isPresent:r,onExitComplete:i,custom:a,presenceAffectsLayout:o,mode:s,anchorX:c,root:l})=>{let u=cv(WS),d=p(),f=!0,m=g(()=>(f=!1,{id:d,initial:n,isPresent:r,custom:a,onExitComplete:e=>{u.set(e,!0);for(let e of u.values())if(!e)return;i&&i()},register:e=>(u.set(e,!1),()=>u.delete(e))}),[r,u,i]);return o&&f&&(m={...m}),g(()=>{u.forEach((e,t)=>u.set(t,!1))},[r]),e.useEffect(()=>{!r&&!u.size&&i&&i()},[r]),s===`popLayout`&&(t=b(HS,{isPresent:r,anchorX:c,root:l,children:t})),b(dv.Provider,{value:m,children:t})};function WS(){return new Map}function GS(e=!0){let t=d(dv);if(t===null)return[!0,null];let{isPresent:n,onExitComplete:r,register:i}=t,a=p();f(()=>{if(e)return i(a)},[e]);let o=u(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,o]:[!0]}const KS=e=>e.key||``;function qS(e){let t=[];return n.forEach(e,e=>{l(e)&&t.push(e)}),t}const JS=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:a=`sync`,propagate:o=!1,anchorX:s=`left`,root:c})=>{let[l,u]=GS(o),f=g(()=>qS(e),[e]),p=o&&!l?[]:f.map(KS),m=_(!0),h=_(f),x=cv(()=>new Map),[S,C]=v(f),[w,T]=v(f);uv(()=>{m.current=!1,h.current=f;for(let e=0;e<w.length;e++){let t=KS(w[e]);p.includes(t)?x.delete(t):x.get(t)!==!0&&x.set(t,!1)}},[w,p.length,p.join(`-`)]);let E=[];if(f!==S){let e=[...f];for(let t=0;t<w.length;t++){let n=w[t],r=KS(n);p.includes(r)||(e.splice(t,0,n),E.push(n))}return a===`wait`&&E.length&&(e=E),T(qS(e)),C(f),null}let{forceRender:D}=d(sv);return b(y,{children:w.map(e=>{let d=KS(e),g=o&&!l?!1:f===w||p.includes(d),_=()=>{if(x.has(d))x.set(d,!0);else return;let e=!0;x.forEach(t=>{t||(e=!1)}),e&&(D?.(),T(h.current),o&&u?.(),r&&r())};return b(US,{isPresent:g,initial:!m.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:a,root:c,onExitComplete:g?void 0:_,anchorX:s,children:e},d)})})},YS=o({strict:!1}),XS={animation:[`animate`,`variants`,`whileHover`,`whileTap`,`exit`,`whileInView`,`whileFocus`,`whileDrag`],exit:[`exit`],drag:[`drag`,`dragControls`],focus:[`whileFocus`],hover:[`whileHover`,`onHoverStart`,`onHoverEnd`],tap:[`whileTap`,`onTap`,`onTapStart`,`onTapCancel`],pan:[`onPan`,`onPanStart`,`onPanSessionStart`,`onPanEnd`],inView:[`whileInView`,`onViewportEnter`,`onViewportLeave`],layout:[`layout`,`layoutId`]},ZS={};for(let e in XS)ZS[e]={isEnabled:t=>XS[e].some(e=>!!t[e])};function QS(e){for(let t in e)ZS[t]={...ZS[t],...e[t]}}const $S=new Set(`animate.exit.variants.initial.style.values.variants.transition.transformTemplate.custom.inherit.onBeforeLayoutMeasure.onAnimationStart.onAnimationComplete.onUpdate.onDragStart.onDrag.onDragEnd.onMeasureDragConstraints.onDirectionLock.onDragTransitionEnd._dragX._dragY.onHoverStart.onHoverEnd.onViewportEnter.onViewportLeave.globalTapTarget.ignoreStrict.viewport`.split(`.`));function eC(e){return e.startsWith(`while`)||e.startsWith(`drag`)&&e!==`draggable`||e.startsWith(`layout`)||e.startsWith(`onTap`)||e.startsWith(`onPan`)||e.startsWith(`onLayout`)||$S.has(e)}function tC(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var nC=j((()=>{})),rC={};ee(rC,{default:()=>aC});var iC,aC,oC=j((()=>{nC(),iC=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,aC=tC(function(e){return iC.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91})}));let sC=e=>!eC(e);function cC(e){typeof e==`function`&&(sC=t=>t.startsWith(`on`)?!eC(t):e(t))}try{cC((oC(),P(rC)).default)}catch{}function lC(e,t,n){let r={};for(let i in e){if(i===`values`&&typeof e.values==`object`)continue;(sC(i)||n===!0&&eC(i)||!t&&!eC(i)||e.draggable&&i.startsWith(`onDrag`))&&(r[i]=e[i])}return r}const uC=o({});function dC(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}function fC(e){return typeof e==`string`||Array.isArray(e)}const pC=[`animate`,`whileInView`,`whileFocus`,`whileHover`,`whileTap`,`whileDrag`,`exit`],mC=[`initial`,...pC];function hC(e){return dC(e.animate)||mC.some(t=>fC(e[t]))}function gC(e){return!!(hC(e)||e.variants)}function _C(e,t){if(hC(e)){let{initial:t,animate:n}=e;return{initial:t===!1||fC(t)?t:void 0,animate:fC(n)?n:void 0}}return e.inherit===!1?{}:t}function vC(e){let{initial:t,animate:n}=_C(e,d(uC));return g(()=>({initial:t,animate:n}),[yC(t),yC(n)])}function yC(e){return Array.isArray(e)?e.join(` `):e}function bC(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const xC={correct:(e,t)=>{if(!t.target)return e;if(typeof e==`string`)if(q.test(e))e=parseFloat(e);else return e;let n=bC(e,t.target.x),r=bC(e,t.target.y);return`${n}% ${r}%`}},SC={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=Uy.parse(e);if(i.length>5)return r;let a=Uy.createTransformer(e),o=typeof i[0]==`number`?0:1,s=n.x.scale*t.x,c=n.y.scale*t.y;i[0+o]/=s,i[1+o]/=c;let l=qy(s,c,.5);return typeof i[2+o]==`number`&&(i[2+o]/=l),typeof i[3+o]==`number`&&(i[3+o]/=l),a(i)}},CC={borderRadius:{...xC,applyTo:[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomLeftRadius`,`borderBottomRightRadius`]},borderTopLeftRadius:xC,borderTopRightRadius:xC,borderBottomLeftRadius:xC,borderBottomRightRadius:xC,boxShadow:SC};function wC(e,{layout:t,layoutId:n}){return $b.has(e)||e.startsWith(`origin`)||(t||n!==void 0)&&(!!CC[e]||e===`opacity`)}const TC={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},EC=Qb.length;function DC(e,t,n){let r=``,i=!0;for(let a=0;a<EC;a++){let o=Qb[a],s=e[o];if(s===void 0)continue;let c=!0;if(c=typeof s==`number`?s===(o.startsWith(`scale`)?1:0):parseFloat(s)===0,!c||n){let e=cS(s,eS[o]);if(!c){i=!1;let t=TC[o]||o;r+=`${t}(${e}) `}n&&(t[o]=e)}}return r=r.trim(),n?r=n(t,i?``:r):i&&(r=`none`),r}function OC(e,t,n){let{style:r,vars:i,transformOrigin:a}=e,o=!1,s=!1;for(let e in t){let n=t[e];if($b.has(e)){o=!0;continue}else if(sy(e)){i[e]=n;continue}else{let t=cS(n,eS[e]);e.startsWith(`origin`)?(s=!0,a[e]=t):r[e]=t}}if(t.transform||(o||n?r.transform=DC(t,e.transform,n):r.transform&&=`none`),s){let{originX:e=`50%`,originY:t=`50%`,originZ:n=0}=a;r.transformOrigin=`${e} ${t} ${n}`}}const kC=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function AC(e,t,n){for(let r in t)!PS(t[r])&&!wC(r,n)&&(e[r]=t[r])}function jC({transformTemplate:e},t){return g(()=>{let n=kC();return OC(n,t,e),Object.assign({},n.vars,n.style)},[t])}function MC(e,t){let n=e.style||{},r={};return AC(r,n,e),Object.assign(r,jC(e,t)),r}function NC(e,t){let n={},r=MC(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout=`none`,r.touchAction=e.drag===!0?`none`:`pan-${e.drag===`x`?`y`:`x`}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const PC={offset:`stroke-dashoffset`,array:`stroke-dasharray`},FC={offset:`strokeDashoffset`,array:`strokeDasharray`};function IC(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?PC:FC;e[a.offset]=q.transform(-r);let o=q.transform(t),s=q.transform(n);e[a.array]=`${o} ${s}`}function LC(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},c,l,u){if(OC(e,s,l),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:f}=e;d.transform&&(f.transform=d.transform,delete d.transform),(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??`50% 50%`,delete d.transformOrigin),f.transform&&(f.transformBox=u?.transformBox??`fill-box`,delete d.transformBox),t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&IC(d,i,a,o,!1)}const RC=()=>({...kC(),attrs:{}}),zC=e=>typeof e==`string`&&e.toLowerCase()===`svg`;function BC(e,t,n,r){let i=g(()=>{let n=RC();return LC(n,t,zC(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};AC(t,e.style,e),i.style={...t,...i.style}}return i}const VC=[`animate`,`circle`,`defs`,`desc`,`ellipse`,`g`,`image`,`line`,`filter`,`marker`,`mask`,`metadata`,`path`,`pattern`,`polygon`,`polyline`,`rect`,`stop`,`switch`,`symbol`,`svg`,`text`,`tspan`,`use`,`view`];function HC(e){return typeof e!=`string`||e.includes(`-`)?!1:!!(VC.indexOf(e)>-1||/[A-Z]/u.test(e))}function UC(e,t,n,{latestValues:r},a,o=!1){let c=HC(e)?BC:NC,l=c(t,r,a,e),u=lC(t,typeof e==`string`,o),d=e===i?{}:{...u,...l,ref:n},{children:f}=t,p=g(()=>PS(f)?f.get():f,[f]);return s(e,{...d,children:p})}function WC(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function GC(e,t,n,r){if(typeof t==`function`){let[i,a]=WC(r);t=t(n===void 0?e.custom:n,i,a)}if(typeof t==`string`&&(t=e.variants&&e.variants[t]),typeof t==`function`){let[i,a]=WC(r);t=t(n===void 0?e.custom:n,i,a)}return t}function KC(e){return PS(e)?e.get():e}function qC({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){let a={latestValues:JC(n,r,i,e),renderState:t()};return a}function JC(e,t,n,r){let i={},a=r(e,{});for(let e in a)i[e]=KC(a[e]);let{initial:o,animate:s}=e,c=hC(e),l=gC(e);t&&l&&!c&&e.inherit!==!1&&(o===void 0&&(o=t.initial),s===void 0&&(s=t.animate));let u=n?n.initial===!1:!1;u||=o===!1;let d=u?s:o;if(d&&typeof d!=`boolean`&&!dC(d)){let t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){let r=GC(e,t[n]);if(r){let{transitionEnd:e,transition:t,...n}=r;for(let e in n){let t=n[e];if(Array.isArray(t)){let e=u?t.length-1:0;t=t[e]}t!==null&&(i[e]=t)}for(let t in e)i[t]=e[t]}}}return i}const YC=e=>(t,n)=>{let r=d(uC),i=d(dv),a=()=>qC(e,t,r,i);return n?a():cv(a)};function XC(e,t,n){let{style:r}=e,i={};for(let a in r)(PS(r[a])||t.style&&PS(t.style[a])||wC(a,e)||n?.getValue(a)?.liveStyle!==void 0)&&(i[a]=r[a]);return i}const ZC=YC({scrapeMotionValuesFromProps:XC,createRenderState:kC});function QC(e,t,n){let r=XC(e,t,n);for(let n in e)if(PS(e[n])||PS(t[n])){let t=Qb.indexOf(n)===-1?n:`attr`+n.charAt(0).toUpperCase()+n.substring(1);r[t]=e[n]}return r}const $C=YC({scrapeMotionValuesFromProps:QC,createRenderState:RC}),ew=Symbol.for(`motionComponentSymbol`);function tw(e){return e&&typeof e==`object`&&Object.prototype.hasOwnProperty.call(e,`current`)}function nw(e,t,n){return u(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n==`function`?n(r):tw(n)&&(n.current=r))},[t])}const rw=e=>e.replace(/([a-z])([A-Z])/gu,`$1-$2`).toLowerCase(),iw=`data-`+rw(`framerAppearId`),aw=o({});function ow(e,t,n,r,i){let{visualElement:a}=d(uC),o=d(YS),s=d(dv),c=d(LS).reducedMotion,l=_(null);r||=o.renderer,!l.current&&r&&(l.current=r(e,{visualState:t,parent:a,props:n,presenceContext:s,blockInitialAnimation:s?s.initial===!1:!1,reducedMotionConfig:c}));let u=l.current,p=d(aw);u&&!u.projection&&i&&(u.type===`html`||u.type===`svg`)&&sw(l.current,n,i,p);let h=_(!1);m(()=>{u&&h.current&&u.update(n,s)});let g=n[iw],v=_(!!g&&!window.MotionHandoffIsComplete?.(g)&&window.MotionHasOptimisedAnimation?.(g));return uv(()=>{u&&(h.current=!0,window.MotionIsMounted=!0,u.updateFeatures(),u.scheduleRenderMicrotask(),v.current&&u.animationState&&u.animationState.animateChanges())}),f(()=>{u&&(!v.current&&u.animationState&&u.animationState.animateChanges(),v.current&&=(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(g)}),!1),u.enteringChildren=void 0)}),u}function sw(e,t,n,r){let{layoutId:i,layout:a,drag:o,dragConstraints:s,layoutScroll:c,layoutRoot:l,layoutCrossfade:u}=t;e.projection=new n(e.latestValues,t[`data-framer-portal-id`]?void 0:cw(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!o||s&&tw(s),visualElement:e,animationType:typeof a==`string`?a:`both`,initialPromotionConfig:r,crossfade:u,layoutScroll:c,layoutRoot:l})}function cw(e){if(e)return e.options.allowProjection===!1?cw(e.parent):e.projection}function lw(e,{forwardMotionProps:t=!1}={},n,r){n&&QS(n);let i=HC(e)?$C:ZC;function a(a,o){let s,c={...d(LS),...a,layoutId:uw(a)},{isStatic:l}=c,u=vC(a),f=i(a,l);if(!l&&lv){dw(c,n);let t=fw(c);s=t.MeasureLayout,u.visualElement=ow(e,f,c,r,t.ProjectionNode)}return x(uC.Provider,{value:u,children:[s&&u.visualElement?b(s,{visualElement:u.visualElement,...c}):null,UC(e,a,nw(f,u.visualElement,o),f,l,t)]})}a.displayName=`motion.${typeof e==`string`?e:`create(${e.displayName??e.name??``})`}`;let o=c(a);return o[ew]=e,o}function uw({layoutId:e}){let t=d(sv).id;return t&&e!==void 0?t+`-`+e:e}function dw(e,t){d(YS).strict}function fw(e){let{drag:t,layout:n}=ZS;if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function pw(e,t){if(typeof Proxy>`u`)return lw;let n=new Map,r=(n,r)=>lw(n,r,e,t),i=(e,t)=>r(e,t);return new Proxy(i,{get:(i,a)=>a===`create`?r:(n.has(a)||n.set(a,lw(a,void 0,e,t)),n.get(a))})}function mw({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function hw({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function gw(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function _w(e){return e===void 0||e===1}function vw({scale:e,scaleX:t,scaleY:n}){return!_w(e)||!_w(t)||!_w(n)}function yw(e){return vw(e)||bw(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function bw(e){return xw(e.x)||xw(e.y)}function xw(e){return e&&e!==`0%`}function Sw(e,t,n){let r=e-n,i=t*r;return n+i}function Cw(e,t,n,r,i){return i!==void 0&&(e=Sw(e,i,r)),Sw(e,n,r)+t}function ww(e,t=0,n=1,r,i){e.min=Cw(e.min,t,n,r,i),e.max=Cw(e.max,t,n,r,i)}function Tw(e,{x:t,y:n}){ww(e.x,t.translate,t.scale,t.originPoint),ww(e.y,n.translate,n.scale,n.originPoint)}const Ew=.999999999999,Dw=1.0000000000001;function Ow(e,t,n,r=!1){let i=n.length;if(!i)return;t.x=t.y=1;let a,o;for(let s=0;s<i;s++){a=n[s],o=a.projectionDelta;let{visualElement:i}=a.options;i&&i.props.style&&i.props.style.display===`contents`||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&jw(e,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,Tw(e,o)),r&&yw(a.latestValues)&&jw(e,a.latestValues))}t.x<Dw&&t.x>Ew&&(t.x=1),t.y<Dw&&t.y>Ew&&(t.y=1)}function kw(e,t){e.min+=t,e.max+=t}function Aw(e,t,n,r,i=.5){let a=qy(e.min,e.max,i);ww(e,t,n,a,r)}function jw(e,t){Aw(e.x,t.x,t.scaleX,t.scale,t.originX),Aw(e.y,t.y,t.scaleY,t.scale,t.originY)}function Mw(e,t){return mw(gw(e.getBoundingClientRect(),t))}function Nw(e,t,n){let r=Mw(e,n),{scroll:i}=t;return i&&(kw(r.x,i.offset.x),kw(r.y,i.offset.y)),r}const Pw=()=>({translate:0,scale:1,origin:0,originPoint:0}),Fw=()=>({x:Pw(),y:Pw()}),Iw=()=>({min:0,max:0}),Lw=()=>({x:Iw(),y:Iw()}),Rw={current:null},zw={current:!1};function Bw(){if(zw.current=!0,lv)if(window.matchMedia){let e=window.matchMedia(`(prefers-reduced-motion)`),t=()=>Rw.current=e.matches;e.addEventListener(`change`,t),t()}else Rw.current=!1}const Vw=new WeakMap;function Hw(e,t,n){for(let r in t){let i=t[r],a=n[r];if(PS(i))e.addValue(r,i);else if(PS(a))e.addValue(r,pS(i,{owner:e}));else if(a!==i)if(e.hasValue(r)){let t=e.getValue(r);t.liveStyle===!0?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(r);e.addValue(r,pS(t===void 0?i:t,{owner:e}))}}for(let r in n)t[r]===void 0&&e.removeValue(r);return t}const Uw=[`AnimationStart`,`AnimationComplete`,`Update`,`BeforeLayoutMeasure`,`LayoutMeasure`,`LayoutAnimationStart`,`LayoutAnimationComplete`];var Ww=class{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,blockInitialAnimation:i,visualState:a},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=fx,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify(`Update`,this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=iy.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,Qv.render(this.render,!1,!0))};let{latestValues:s,renderState:c}=a;this.latestValues=s,this.baseTarget={...s},this.initialValues=t.initial?{...s}:{},this.renderState=c,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.options=o,this.blockInitialAnimation=!!i,this.isControllingVariants=hC(t),this.isVariantNode=gC(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:l,...u}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in u){let t=u[e];s[e]!==void 0&&PS(t)&&t.set(s[e])}}mount(e){this.current=e,Vw.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),zw.current||Bw(),this.shouldReduceMotion=this.reducedMotionConfig===`never`?!1:this.reducedMotionConfig===`always`?!0:Rw.current,this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){for(let e in this.projection&&this.projection.unmount(),$v(this.notifyUpdate),$v(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this),this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??=new Set,this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();let n=$b.has(e);n&&this.onBindTransform&&this.onBindTransform();let r=t.on(`change`,t=>{this.latestValues[e]=t,this.props.onUpdate&&Qv.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()}),i;window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),i&&i(),t.owner&&t.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e=`animation`;for(e in ZS){let t=ZS[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Lw()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<Uw.length;t++){let n=Uw[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=`on`+n,i=e[r];i&&(this.propEventSubscriptions[n]=this.on(n,i))}this.prevMotionValues=Hw(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return n===void 0&&t!==void 0&&(n=pS(t===null?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return n!=null&&(typeof n==`string`&&(gv(n)||vv(n))?n=parseFloat(n):!IS(n)&&Uy.test(t)&&(n=rS(e,t)),this.setBaseTarget(e,PS(n)?n.get():n)),PS(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let{initial:t}=this.props,n;if(typeof t==`string`||typeof t==`object`){let r=GC(this.props,t,this.presenceContext?.custom);r&&(n=r[e])}if(t&&n!==void 0)return n;let r=this.getBaseTargetFromProps(this.props,e);return r!==void 0&&!PS(r)?r:this.initialValues[e]!==void 0&&n===void 0?void 0:this.baseTarget[e]}on(e,t){return this.events[e]||(this.events[e]=new wv),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){mS.render(this.render)}},Gw=class extends Ww{constructor(){super(...arguments),this.KeyframeResolver=oS}sortInstanceNodePosition(e,t){return e.compareDocumentPosition(t)&2?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;PS(e)&&(this.childSubscription=e.on(`change`,e=>{this.current&&(this.current.textContent=`${e}`)}))}};function Kw(e,{style:t,vars:n},r,i){let a=e.style,o;for(o in t)a[o]=t[o];for(o in i?.applyProjectionStyles(a,r),n)a.setProperty(o,n[o])}function qw(e){return window.getComputedStyle(e)}var Jw=class extends Gw{constructor(){super(...arguments),this.type=`html`,this.renderInstance=Kw}readValueFromInstance(e,t){if($b.has(t))return this.projection?.isProjecting?Jb(t):Xb(e,t);{let n=qw(e),r=(sy(t)?n.getPropertyValue(t):n[t])||0;return typeof r==`string`?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return Mw(e,t)}build(e,t,n){OC(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return XC(e,t,n)}};const Yw=new Set([`baseFrequency`,`diffuseConstant`,`kernelMatrix`,`kernelUnitLength`,`keySplines`,`keyTimes`,`limitingConeAngle`,`markerHeight`,`markerWidth`,`numOctaves`,`targetX`,`targetY`,`surfaceScale`,`specularConstant`,`specularExponent`,`stdDeviation`,`tableValues`,`viewBox`,`gradientTransform`,`pathLength`,`startOffset`,`textLength`,`lengthAdjust`]);function Xw(e,t,n,r){for(let n in Kw(e,t,void 0,r),t.attrs)e.setAttribute(Yw.has(n)?n:rw(n),t.attrs[n])}var Zw=class extends Gw{constructor(){super(...arguments),this.type=`svg`,this.isSVGTag=!1,this.measureInstanceViewportBox=Lw}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if($b.has(t)){let e=nS(t);return e&&e.default||0}return t=Yw.has(t)?t:rw(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return QC(e,t,n)}build(e,t,n){LC(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){Xw(e,t,n,r)}mount(e){this.isSVGTag=zC(e.tagName),super.mount(e)}};const Qw=(e,t)=>HC(e)?new Zw(t):new Jw(t,{allowProjection:e!==i});function $w(e,t,n){let r=e.getProps();return GC(r,t,n===void 0?r.custom:n,e)}const eT=e=>Array.isArray(e);function tT(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,pS(n))}function nT(e){return eT(e)?e[e.length-1]||0:e}function rT(e,t){let n=$w(e,t),{transitionEnd:r={},transition:i={},...a}=n||{};for(let t in a={...a,...r},a){let n=nT(a[t]);tT(e,t,n)}}function iT(e){return!!(PS(e)&&e.add)}function aT(e,t){let n=e.getValue(`willChange`);if(iT(n))return n.add(t);if(!n&&hv.WillChange){let n=new hv.WillChange(`auto`);e.addValue(`willChange`,n),n.add(t)}}function oT(e){return e.props[iw]}const sT=e=>e!==null;function cT(e,{repeat:t,repeatType:n=`loop`},r){let i=e.filter(sT),a=t&&n!==`loop`&&t%2==1?0:i.length-1;return!a||r===void 0?i[a]:r}const lT={type:`spring`,stiffness:500,damping:25,restSpeed:10},uT=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),dT={type:`keyframes`,duration:.8},fT={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},pT=(e,{keyframes:t})=>t.length>2?dT:$b.has(e)?e.startsWith(`scale`)?uT(t[1]):lT:fT;function mT({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:a,repeatType:o,repeatDelay:s,from:c,elapsed:l,...u}){return!!Object.keys(u).length}const hT=(e,t,n,r={},i,a)=>o=>{let s=Vx(r,e)||{},c=s.delay||r.delay||0,{elapsed:l=0}=r;l-=Tv(c);let u={keyframes:Array.isArray(n)?n:[null,n],ease:`easeOut`,velocity:t.getVelocity(),...s,delay:-l,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:a?void 0:i};mT(s)||Object.assign(u,pT(e,u)),u.duration&&=Tv(u.duration),u.repeatDelay&&=Tv(u.repeatDelay),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(Nx(u),u.delay===0&&(d=!0)),(hv.instantAnimations||hv.skipAnimations)&&(d=!0,Nx(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!a&&t.get()!==void 0){let e=cT(u.keyframes,s);if(e!==void 0){Qv.update(()=>{u.onUpdate(e),u.onComplete()});return}}return s.isSync?new Rb(u):new Lx(u)};function gT({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function _T(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a=e.getDefaultTransition(),transitionEnd:o,...s}=t;r&&(a=r);let c=[],l=i&&e.animationState&&e.animationState.getState()[i];for(let t in s){let r=e.getValue(t,e.latestValues[t]??null),i=s[t];if(i===void 0||l&&gT(l,t))continue;let o={delay:n,...Vx(a||{},t)},u=r.get();if(u!==void 0&&!r.isAnimating&&!Array.isArray(i)&&i===u&&!o.velocity)continue;let d=!1;if(window.MotionHandoffAnimation){let n=oT(e);if(n){let e=window.MotionHandoffAnimation(n,t,Qv);e!==null&&(o.startTime=e,d=!0)}}aT(e,t),r.start(hT(t,r,i,e.shouldReduceMotion&&Hx.has(t)?{type:!1}:o,e,d));let f=r.animation;f&&c.push(f)}return o&&Promise.all(c).then(()=>{Qv.update(()=>{o&&rT(e,o)})}),c}function vT(e,t,n,r=0,i=1){let a=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),o=e.size,s=(o-1)*r,c=typeof n==`function`;return c?n(a,o):i===1?a*r:s-a*r}function yT(e,t,n={}){let r=$w(e,t,n.type===`exit`?e.presenceContext?.custom:void 0),{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);let a=r?()=>Promise.all(_T(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:a=0,staggerChildren:o,staggerDirection:s}=i;return bT(e,t,r,a,o,s,n)}:()=>Promise.resolve(),{when:s}=i;if(s){let[e,t]=s===`beforeChildren`?[a,o]:[o,a];return e().then(()=>t())}else return Promise.all([a(),o(n.delay)])}function bT(e,t,n=0,r=0,i=0,a=1,o){let s=[];for(let c of e.variantChildren)c.notify(`AnimationStart`,t),s.push(yT(c,t,{...o,delay:n+(typeof r==`function`?0:r)+vT(e.variantChildren,c,r,i,a)}).then(()=>c.notify(`AnimationComplete`,t)));return Promise.all(s)}function xT(e,t,n={}){e.notify(`AnimationStart`,t);let r;if(Array.isArray(t)){let i=t.map(t=>yT(e,t,n));r=Promise.all(i)}else if(typeof t==`string`)r=yT(e,t,n);else{let i=typeof t==`function`?$w(e,t,n.custom):t;r=Promise.all(_T(e,i,n))}return r.then(()=>{e.notify(`AnimationComplete`,t)})}function ST(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const CT=mC.length;function wT(e){if(!e)return;if(!e.isControllingVariants){let t=e.parent&&wT(e.parent)||{};return e.props.initial!==void 0&&(t.initial=e.props.initial),t}let t={};for(let n=0;n<CT;n++){let r=mC[n],i=e.props[r];(fC(i)||i===!1)&&(t[r]=i)}return t}const TT=[...pC].reverse(),ET=pC.length;function DT(e){return t=>Promise.all(t.map(({animation:t,options:n})=>xT(e,t,n)))}function OT(e){let t=DT(e),n=jT(),r=!0,i=t=>(n,r)=>{let i=$w(e,r,t===`exit`?e.presenceContext?.custom:void 0);if(i){let{transition:e,transitionEnd:t,...r}=i;n={...n,...r,...t}}return n};function a(n){t=n(e)}function o(a){let{props:o}=e,s=wT(e.parent)||{},c=[],l=new Set,u={},d=1/0;for(let t=0;t<ET;t++){let f=TT[t],p=n[f],m=o[f]===void 0?s[f]:o[f],h=fC(m),g=f===a?p.isActive:null;g===!1&&(d=t);let _=m===s[f]&&m!==o[f]&&h;if(_&&r&&e.manuallyAnimateOnMount&&(_=!1),p.protectedKeys={...u},!p.isActive&&g===null||!m&&!p.prevProp||dC(m)||typeof m==`boolean`)continue;let v=kT(p.prevProp,m),y=v||f===a&&p.isActive&&!_&&h||t>d&&h,b=!1,x=Array.isArray(m)?m:[m],S=x.reduce(i(f),{});g===!1&&(S={});let{prevResolvedValues:C={}}=p,w={...C,...S},T=t=>{y=!0,l.has(t)&&(b=!0,l.delete(t)),p.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in w){let t=S[e],n=C[e];if(u.hasOwnProperty(e))continue;let r=!1;r=eT(t)&&eT(n)?!ST(t,n):t!==n,r?t==null?l.add(e):T(e):t!==void 0&&l.has(e)?T(e):p.protectedKeys[e]=!0}p.prevProp=m,p.prevResolvedValues=S,p.isActive&&(u={...u,...S}),r&&e.blockInitialAnimation&&(y=!1);let E=_&&v,D=!E||b;y&&D&&c.push(...x.map(t=>{let n={type:f};if(typeof t==`string`&&r&&!E&&e.manuallyAnimateOnMount&&e.parent){let{parent:r}=e,i=$w(r,t);if(r.enteringChildren&&i){let{delayChildren:t}=i.transition||{};n.delay=vT(r.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(l.size){let t={};if(typeof o.initial!=`boolean`){let n=$w(e,Array.isArray(o.initial)?o.initial[0]:o.initial);n&&n.transition&&(t.transition=n.transition)}l.forEach(n=>{let r=e.getBaseTarget(n),i=e.getValue(n);i&&(i.liveStyle=!0),t[n]=r??null}),c.push({animation:t})}let f=!!c.length;return r&&(o.initial===!1||o.initial===o.animate)&&!e.manuallyAnimateOnMount&&(f=!1),r=!1,f?t(c):Promise.resolve()}function s(t,r){if(n[t].isActive===r)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,r)),n[t].isActive=r;let i=o(t);for(let e in n)n[e].protectedKeys={};return i}return{animateChanges:o,setActive:s,setAnimateFunction:a,getState:()=>n,reset:()=>{n=jT()}}}function kT(e,t){return typeof t==`string`?t!==e:Array.isArray(t)?!ST(t,e):!1}function AT(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function jT(){return{animate:AT(!0),whileInView:AT(),whileHover:AT(),whileTap:AT(),whileDrag:AT(),whileFocus:AT(),exit:AT()}}var MT=class{constructor(e){this.isMounted=!1,this.node=e}update(){}},NT=class extends MT{constructor(e){super(e),e.animationState||=OT(e)}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();dC(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}};let PT=0;var FT=class extends MT{constructor(){super(...arguments),this.id=PT++}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;let r=this.node.animationState.setActive(`exit`,!e);t&&!e&&r.then(()=>{t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}};const IT={animation:{Feature:NT},exit:{Feature:FT}};function LT(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function RT(e){return{point:{x:e.pageX,y:e.pageY}}}const zT=e=>t=>CS(t)&&e(t,RT(t));function BT(e,t,n,r){return LT(e,t,zT(n),r)}const VT=1e-4;1-VT,1+VT;const HT=.01;0-HT,0+HT;function UT(e){return e.max-e.min}function WT(e,t,n){return Math.abs(e-t)<=n}function GT(e,t,n,r=.5){e.origin=r,e.originPoint=qy(t.min,t.max,e.origin),e.scale=UT(n)/UT(t),e.translate=qy(n.min,n.max,e.origin)-e.originPoint,(e.scale>=.9999&&e.scale<=1.0001||isNaN(e.scale))&&(e.scale=1),(e.translate>=-.01&&e.translate<=.01||isNaN(e.translate))&&(e.translate=0)}function KT(e,t,n,r){GT(e.x,t.x,n.x,r?r.originX:void 0),GT(e.y,t.y,n.y,r?r.originY:void 0)}function qT(e,t,n){e.min=n.min+t.min,e.max=e.min+UT(t)}function JT(e,t,n){qT(e.x,t.x,n.x),qT(e.y,t.y,n.y)}function YT(e,t,n){e.min=t.min-n.min,e.max=e.min+UT(t)}function XT(e,t,n){YT(e.x,t.x,n.x),YT(e.y,t.y,n.y)}function ZT(e){return[e(`x`),e(`y`)]}const QT=({current:e})=>e?e.ownerDocument.defaultView:null,$T=(e,t)=>Math.abs(e-t);function eE(e,t){let n=$T(e.x,t.x),r=$T(e.y,t.y);return Math.sqrt(n**2+r**2)}var tE=class{constructor(e,t,{transformPagePoint:n,contextWindow:r=window,dragSnapToOrigin:i=!1,distanceThreshold:a=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let e=iE(this.lastMoveEventInfo,this.history),t=this.startEvent!==null,n=eE(e.offset,{x:0,y:0})>=this.distanceThreshold;if(!t&&!n)return;let{point:r}=e,{timestamp:i}=ey;this.history.push({...r,timestamp:i});let{onStart:a,onMove:o}=this.handlers;t||(a&&a(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=nE(t,this.transformPagePoint),Qv.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if(this.dragSnapToOrigin&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let a=iE(e.type===`pointercancel`?this.lastMoveEventInfo:nE(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,a),r&&r(e,a)},!CS(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=a,this.contextWindow=r||window;let o=RT(e),s=nE(o,this.transformPagePoint),{point:c}=s,{timestamp:l}=ey;this.history=[{...c,timestamp:l}];let{onSessionStart:u}=t;u&&u(e,iE(s,this.history)),this.removeListeners=Sv(BT(this.contextWindow,`pointermove`,this.handlePointerMove),BT(this.contextWindow,`pointerup`,this.handlePointerUp),BT(this.contextWindow,`pointercancel`,this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),$v(this.updatePoint)}};function nE(e,t){return t?{point:t(e.point)}:e}function rE(e,t){return{x:e.x-t.x,y:e.y-t.y}}function iE({point:e},t){return{point:e,delta:rE(e,oE(t)),offset:rE(e,aE(t)),velocity:sE(t,.1)}}function aE(e){return e[0]}function oE(e){return e[e.length-1]}function sE(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=oE(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Tv(t)));)n--;if(!r)return{x:0,y:0};let a=Ev(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};let o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function cE(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?qy(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?qy(n,e,r.max):Math.min(e,n)),e}function lE(e,t,n){return{min:t===void 0?void 0:e.min+t,max:n===void 0?void 0:e.max+n-(e.max-e.min)}}function uE(e,{top:t,left:n,bottom:r,right:i}){return{x:lE(e.x,n,i),y:lE(e.y,t,r)}}function dE(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function fE(e,t){return{x:dE(e.x,t.x),y:dE(e.y,t.y)}}function pE(e,t){let n=.5,r=UT(e),i=UT(t);return i>r?n=Cv(t.min,t.max-r,e.min):r>i&&(n=Cv(e.min,e.max-i,t.min)),mv(0,1,n)}function mE(e,t){let n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const hE=.35;function gE(e=hE){return e===!1?e=0:e===!0&&(e=hE),{x:_E(e,`left`,`right`),y:_E(e,`top`,`bottom`)}}function _E(e,t,n){return{min:vE(e,t),max:vE(e,n)}}function vE(e,t){return typeof e==`number`?e:e[t]||0}const yE=new WeakMap;var bE=class{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Lw(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:n}={}){let{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;let i=e=>{let{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(RT(e).point)},a=(e,t)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=vS(n),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),ZT(e=>{let t=this.getAxisMotionValue(e).get()||0;if(Dy.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];if(r){let e=UT(r);t=e*(parseFloat(t)/100)}}}this.originPoint[e]=t}),i&&Qv.postRender(()=>i(e,t)),aT(this.visualElement,`transform`);let{animationState:a}=this.visualElement;a&&a.setActive(`whileDrag`,!0)},o=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:a}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:o}=t;if(r&&this.currentDirection===null){this.currentDirection=SE(o),this.currentDirection!==null&&i&&i(this.currentDirection);return}this.updateAxis(`x`,t.point,o),this.updateAxis(`y`,t.point,o),this.visualElement.render(),a&&a(e,t)},s=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>ZT(e=>this.getAnimationState(e)===`paused`&&this.getAxisMotionValue(e).animation?.play()),{dragSnapToOrigin:l}=this.getProps();this.panSession=new tE(e,{onSessionStart:i,onStart:a,onMove:o,onSessionEnd:s,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,distanceThreshold:n,contextWindow:QT(this.visualElement)})}stop(e,t){let n=e||this.latestPointerEvent,r=t||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!r||!n)return;let{velocity:a}=r;this.startAnimation(a);let{onDragEnd:o}=this.getProps();o&&Qv.postRender(()=>o(n,r))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive(`whileDrag`,!1)}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!xE(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=cE(a,this.constraints[e],this.elastic[e])),i.set(a)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;e&&tw(e)?this.constraints||=this.resolveRefConstraints():e&&n?this.constraints=uE(n.layoutBox,e):this.constraints=!1,this.elastic=gE(t),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&ZT(e=>{this.constraints!==!1&&this.getAxisMotionValue(e)&&(this.constraints[e]=mE(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){let{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!tw(e))return!1;let n=e.current,{projection:r}=this.visualElement;if(!r||!r.layout)return!1;let i=Nw(n,r.root,this.visualElement.getTransformPagePoint()),a=fE(r.layout.layoutBox,i);if(t){let e=t(hw(a));this.hasMutatedConstraints=!!e,e&&(a=mw(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:o}=this.getProps(),s=this.constraints||{},c=ZT(o=>{if(!xE(o,t,this.currentDirection))return;let c=s&&s[o]||{};a&&(c={min:0,max:0});let l=r?200:1e6,u=r?40:1e7,d={type:`inertia`,velocity:n?e[o]:0,bounceStiffness:l,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...i,...c};return this.startAxisValueAnimation(o,d)});return Promise.all(c).then(o)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return aT(this.visualElement,e),n.start(hT(e,n,0,t,this.visualElement,!1))}stopAnimation(){ZT(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){ZT(e=>this.getAxisMotionValue(e).animation?.pause())}getAnimationState(e){return this.getAxisMotionValue(e).animation?.state}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`,n=this.visualElement.getProps(),r=n[t];return r||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){ZT(t=>{let{drag:n}=this.getProps();if(!xE(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){let{min:n,max:a}=r.layout.layoutBox[t];i.set(e[t]-qy(n,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!tw(t)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};ZT(e=>{let t=this.getAxisMotionValue(e);if(t&&this.constraints!==!1){let n=t.get();r[e]=pE({min:n,max:n},this.constraints[e])}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},``):`none`,n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),ZT(t=>{if(!xE(t,e,null))return;let n=this.getAxisMotionValue(t),{min:i,max:a}=this.constraints[t];n.set(qy(i,a,r[t]))})}addListeners(){if(!this.visualElement.current)return;yE.set(this.visualElement,this);let e=this.visualElement.current,t=BT(e,`pointerdown`,e=>{let{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)}),n=()=>{let{dragConstraints:e}=this.getProps();tw(e)&&e.current&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,i=r.addEventListener(`measure`,n);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),Qv.read(n);let a=LT(window,`resize`,()=>this.scalePositionWithinConstraints()),o=r.addEventListener(`didUpdate`,(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(ZT(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())}));return()=>{a(),t(),i(),o&&o()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:a=hE,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:a,dragMomentum:o}}};function xE(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function SE(e,t=10){let n=null;return Math.abs(e.y)>t?n=`y`:Math.abs(e.x)>t&&(n=`x`),n}var CE=class extends MT{constructor(e){super(e),this.removeGroupControls=bv,this.removeListeners=bv,this.controls=new bE(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||bv}unmount(){this.removeGroupControls(),this.removeListeners()}};const wE=e=>(t,n)=>{e&&Qv.postRender(()=>e(t,n))};var TE=class extends MT{constructor(){super(...arguments),this.removePointerDownListener=bv}onPointerDown(e){this.session=new tE(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:QT(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:wE(e),onStart:wE(t),onMove:n,onEnd:(e,t)=>{delete this.session,r&&Qv.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=BT(this.node.current,`pointerdown`,e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}};const EE={hasAnimatedSinceResize:!0,hasEverUpdated:!1};let DE=!1;var OE=class extends r{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),DE&&i.root.didUpdate(),i.addEventListener(`animationComplete`,()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),EE.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,{projection:a}=n;return a?(a.isPresent=i,DE=!0,r||e.layoutDependency!==t||t===void 0||e.isPresent!==i?a.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?a.promote():a.relegate()||Qv.postRender(()=>{let e=a.getStack();(!e||!e.members.length)&&this.safeToRemove()})),null):null}componentDidUpdate(){let{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),mS.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;DE=!0,r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}};function kE(e){let[t,n]=GS(),r=d(sv);return b(OE,{...e,layoutGroup:r,switchLayoutGroup:d(aw),isPresent:t,safeToRemove:n})}function AE(e,t,n){let r=PS(e)?e:pS(e);return r.start(hT(``,r,t,n)),r.animation}const jE=(e,t)=>e.depth-t.depth;var ME=class{constructor(){this.children=[],this.isDirty=!1}add(e){fv(this.children,e),this.isDirty=!0}remove(e){pv(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(jE),this.isDirty=!1,this.children.forEach(e)}};function NE(e,t){let n=iy.now(),r=({timestamp:i})=>{let a=i-n;a>=t&&($v(r),e(a-t))};return Qv.setup(r,!0),()=>$v(r)}const PE=[`TopLeft`,`TopRight`,`BottomLeft`,`BottomRight`],FE=PE.length,IE=e=>typeof e==`string`?parseFloat(e):e,LE=e=>typeof e==`number`||q.test(e);function RE(e,t,n,r,i,a){i?(e.opacity=qy(0,n.opacity??1,BE(r)),e.opacityExit=qy(t.opacity??1,0,VE(r))):a&&(e.opacity=qy(t.opacity??1,n.opacity??1,r));for(let i=0;i<FE;i++){let a=`border${PE[i]}Radius`,o=zE(t,a),s=zE(n,a);if(o===void 0&&s===void 0)continue;o||=0,s||=0;let c=o===0||s===0||LE(o)===LE(s);c?(e[a]=Math.max(qy(IE(o),IE(s),r),0),(Dy.test(s)||Dy.test(o))&&(e[a]+=`%`)):e[a]=s}(t.rotate||n.rotate)&&(e.rotate=qy(t.rotate||0,n.rotate||0,r))}function zE(e,t){return e[t]===void 0?e.borderRadius:e[t]}const BE=HE(0,.5,Rv),VE=HE(.5,.95,bv);function HE(e,t,n){return r=>r<e?0:r>t?1:n(Cv(e,t,r))}function UE(e,t){e.min=t.min,e.max=t.max}function WE(e,t){UE(e.x,t.x),UE(e.y,t.y)}function GE(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function KE(e,t,n,r,i){return e-=t,e=Sw(e,1/n,r),i!==void 0&&(e=Sw(e,1/i,r)),e}function qE(e,t=0,n=1,r=.5,i,a=e,o=e){if(Dy.test(t)){t=parseFloat(t);let e=qy(o.min,o.max,t/100);t=e-o.min}if(typeof t!=`number`)return;let s=qy(a.min,a.max,r);e===a&&(s-=t),e.min=KE(e.min,t,n,s,i),e.max=KE(e.max,t,n,s,i)}function JE(e,t,[n,r,i],a,o){qE(e,t[n],t[r],t[i],t.scale,a,o)}const YE=[`x`,`scaleX`,`originX`],XE=[`y`,`scaleY`,`originY`];function ZE(e,t,n,r){JE(e.x,t,YE,n?n.x:void 0,r?r.x:void 0),JE(e.y,t,XE,n?n.y:void 0,r?r.y:void 0)}function QE(e){return e.translate===0&&e.scale===1}function $E(e){return QE(e.x)&&QE(e.y)}function eD(e,t){return e.min===t.min&&e.max===t.max}function tD(e,t){return eD(e.x,t.x)&&eD(e.y,t.y)}function nD(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function rD(e,t){return nD(e.x,t.x)&&nD(e.y,t.y)}function iD(e){return UT(e.x)/UT(e.y)}function aD(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}var oD=class{constructor(){this.members=[]}add(e){fv(this.members,e),e.scheduleRender()}remove(e){if(pv(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){let t=this.members.findIndex(t=>e===t);if(t===0)return!1;let n;for(let e=t;e>=0;e--){let t=this.members[e];if(t.isPresent!==!1){n=t;break}}return n?(this.promote(n),!0):!1}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);let{crossfade:r}=e.options;r===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{let{options:t,resumingFrom:n}=e;t.onExitComplete&&t.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}};function sD(e,t,n){let r=``,i=e.x.translate/t.x,a=e.y.translate/t.y,o=n?.z||0;if((i||a||o)&&(r=`translate3d(${i}px, ${a}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,rotateX:i,rotateY:a,skewX:o,skewY:s}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotateX(${i}deg) `),a&&(r+=`rotateY(${a}deg) `),o&&(r+=`skewX(${o}deg) `),s&&(r+=`skewY(${s}deg) `)}let s=e.x.scale*t.x,c=e.y.scale*t.y;return(s!==1||c!==1)&&(r+=`scale(${s}, ${c})`),r||`none`}const cD={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},lD=[``,`X`,`Y`,`Z`];let uD=0;function dD(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function fD(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let n=oT(t);if(window.MotionHasOptimisedAnimation(n,`transform`)){let{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,`transform`,Qv,!(t||r))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&fD(r)}function pD({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=uD++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Yv.value&&(cD.nodes=cD.calculatedTargetDeltas=cD.calculatedProjections=0),this.nodes.forEach(gD),this.nodes.forEach(CD),this.nodes.forEach(wD),this.nodes.forEach(_D),Yv.addProjectionMetrics&&Yv.addProjectionMetrics(cD)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new ME)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new wv),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=MS(t)&&!NS(t),this.instance=t;let{layoutId:n,layout:r,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(r||n)&&(this.isLayoutDirty=!0),e){let n,r=0,i=()=>this.root.updateBlockedByResize=!1;Qv.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n&&n(),n=NE(i,250),EE.hasAnimatedSinceResize&&(EE.hasAnimatedSinceResize=!1,this.nodes.forEach(SD)))})}n&&this.root.registerSharedNode(n,this),this.options.animate!==!1&&i&&(n||r)&&this.addEventListener(`didUpdate`,({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let a=this.options.transition||i.getDefaultTransition()||jD,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=i.getProps(),c=!this.targetLayout||!rD(this.targetLayout,r),l=!t&&n;if(this.options.layoutRoot||this.resumeFrom||l||t&&(c||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...Vx(a,`layout`),onPlay:o,onComplete:s};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,l)}else t||SD(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),$v(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(TD),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&fD(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,t.updateScroll(`snapshot`),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:n}=this.options;if(t===void 0&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,``):void 0,this.updateSnapshot(),e&&this.notifyListeners(`willUpdate`)}update(){this.updateScheduled=!1;let e=this.isUpdateBlocked();if(e){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(yD);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(bD);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(xD),this.nodes.forEach(mD),this.nodes.forEach(hD)):this.nodes.forEach(bD),this.clearAllSnapshots();let t=iy.now();ey.delta=mv(0,1e3/60,t-ey.timestamp),ey.timestamp=t,ey.isProcessing=!0,ty.update.process(ey),ty.preRender.process(ey),ty.render.process(ey),ey.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,mS.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(vD),this.sharedNodes.forEach(ED)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Qv.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Qv.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!UT(this.snapshot.measuredBox.x)&&!UT(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++){let t=this.path[e];t.updateScroll()}let e=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=Lw(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners(`measure`,this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify(`LayoutMeasure`,this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e=`measure`){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!$E(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,``):void 0,a=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||yw(this.latestValues)||a)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){let t=this.measurePageBox(),n=this.removeElementScroll(t);return e&&(n=this.removeTransform(n)),FD(n),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return Lw();let t=e.measureViewportBox(),n=this.scroll?.wasRoot||this.path.some(LD);if(!n){let{scroll:e}=this.root;e&&(kw(t.x,e.offset.x),kw(t.y,e.offset.y))}return t}removeElementScroll(e){let t=Lw();if(WE(t,e),this.scroll?.wasRoot)return t;for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:i,options:a}=r;r!==this.root&&i&&a.layoutScroll&&(i.wasRoot&&WE(t,e),kw(t.x,i.offset.x),kw(t.y,i.offset.y))}return t}applyTransform(e,t=!1){let n=Lw();WE(n,e);for(let e=0;e<this.path.length;e++){let r=this.path[e];!t&&r.options.layoutScroll&&r.scroll&&r!==r.root&&jw(n,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),yw(r.latestValues)&&jw(n,r.latestValues)}return yw(this.latestValues)&&jw(n,this.latestValues),n}removeTransform(e){let t=Lw();WE(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!n.instance||!yw(n.latestValues))continue;vw(n.latestValues)&&n.updateSnapshot();let r=Lw(),i=n.measurePageBox();WE(r,i),ZE(t,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,r)}return yw(this.latestValues)&&ZE(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:e.crossfade===void 0?!0:e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==ey.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||=t.isProjectionDirty,this.isTransformDirty||=t.isTransformDirty,this.isSharedProjectionDirty||=t.isSharedProjectionDirty;let n=!!this.resumingFrom||this!==t,r=!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize);if(r)return;let{layout:i,layoutId:a}=this.options;if(!this.layout||!(i||a))return;this.resolvedRelativeTargetAt=ey.timestamp;let o=this.getClosestProjectingParent();o&&this.linkedParentVersion!==o.layoutVersion&&!o.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(o&&o.layout?this.createRelativeTarget(o,this.layout.layoutBox,o.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Lw(),this.targetWithTransforms=Lw()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),JT(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):WE(this.target,this.layout.layoutBox),Tw(this.target,this.targetDelta)):WE(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,o&&!!o.resumingFrom==!!this.resumingFrom&&!o.options.layoutScroll&&o.target&&this.animationProgress!==1?this.createRelativeTarget(o,this.target,o.target):this.relativeParent=this.relativeTarget=void 0),Yv.value&&cD.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||vw(this.parent.latestValues)||bw(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(e,t,n){this.relativeParent=e,this.linkedParentVersion=e.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Lw(),this.relativeTargetOrigin=Lw(),XT(this.relativeTargetOrigin,t,n),WE(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===ey.timestamp&&(n=!1),n)return;let{layout:r,layoutId:i}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||i))return;WE(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,o=this.treeScale.y;Ow(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=Lw());let{target:s}=e;if(!s){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(GE(this.prevProjectionDelta.x,this.projectionDelta.x),GE(this.prevProjectionDelta.y,this.projectionDelta.y)),KT(this.projectionDelta,this.layoutCorrected,s,this.latestValues),(this.treeScale.x!==a||this.treeScale.y!==o||!aD(this.projectionDelta.x,this.prevProjectionDelta.x)||!aD(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners(`projectionUpdate`,s)),Yv.value&&cD.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Fw(),this.projectionDelta=Fw(),this.projectionDeltaWithTransform=Fw()}setAnimationOrigin(e,t=!1){let n=this.snapshot,r=n?n.latestValues:{},i={...this.latestValues},a=Fw();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let o=Lw(),s=n?n.source:void 0,c=this.layout?this.layout.source:void 0,l=s!==c,u=this.getStack(),d=!u||u.members.length<=1,f=!!(l&&!d&&this.options.crossfade===!0&&!this.path.some(AD));this.animationProgress=0;let p;this.mixTargetDelta=t=>{let n=t/1e3;DD(a.x,e.x,n),DD(a.y,e.y,n),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(XT(o,this.layout.layoutBox,this.relativeParent.layout.layoutBox),kD(this.relativeTarget,this.relativeTargetOrigin,o,n),p&&tD(this.relativeTarget,p)&&(this.isProjectionDirty=!1),p||=Lw(),WE(p,this.relativeTarget)),l&&(this.animationValues=i,RE(i,r,this.latestValues,n,f,d)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners(`animationStart`),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&=($v(this.pendingAnimation),void 0),this.pendingAnimation=Qv.update(()=>{EE.hasAnimatedSinceResize=!0,ay.layout++,this.motionValue||=pS(0),this.currentAnimation=AE(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onStop:()=>{ay.layout--},onComplete:()=>{ay.layout--,e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners(`animationComplete`)}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(!(!t||!n||!r)){if(this!==e&&this.layout&&r&&ID(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||Lw();let t=UT(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=UT(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}WE(t,n),jw(t,i),KT(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new oD);let n=this.sharedNodes.get(e);n.add(t);let r=t.options.initialPromotionConfig;t.promote({transition:r?r.transition:void 0,preserveFollowOpacity:r&&r.shouldPreserveFollowOpacity?r.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return e?e.lead===this:!0}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return e?e.relegate(this):!1}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let r={};n.z&&dD(`z`,e,r,this.animationValues);for(let t=0;t<lD.length;t++)dD(`rotate${lD[t]}`,e,r,this.animationValues),dD(`skew${lD[t]}`,e,r,this.animationValues);for(let t in e.render(),r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility=`hidden`;return}let n=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility=``,e.opacity=``,e.pointerEvents=KC(t?.pointerEvents)||``,e.transform=n?n(this.latestValues,``):`none`;return}let r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){this.options.layoutId&&(e.opacity=this.latestValues.opacity===void 0?1:this.latestValues.opacity,e.pointerEvents=KC(t?.pointerEvents)||``),this.hasProjected&&!yw(this.latestValues)&&(e.transform=n?n({},``):`none`,this.hasProjected=!1);return}e.visibility=``;let i=r.animationValues||r.latestValues;this.applyTransformsToTarget();let a=sD(this.projectionDeltaWithTransform,this.treeScale,i);n&&(a=n(i,a)),e.transform=a;let{x:o,y:s}=this.projectionDelta;for(let t in e.transformOrigin=`${o.origin*100}% ${s.origin*100}% 0`,r.animationValues?e.opacity=r===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:e.opacity=r===this?i.opacity===void 0?``:i.opacity:i.opacityExit===void 0?0:i.opacityExit,CC){if(i[t]===void 0)continue;let{correct:n,applyTo:o,isCSSVariable:s}=CC[t],c=a===`none`?i[t]:n(i[t],r);if(o){let t=o.length;for(let n=0;n<t;n++)e[o[n]]=c}else s?this.options.visualElement.renderState.vars[t]=c:e[t]=c}this.options.layoutId&&(e.pointerEvents=r===this?KC(t?.pointerEvents)||``:`none`)}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(yD),this.root.sharedNodes.clear()}}}function mD(e){e.updateLayout()}function hD(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners(`didUpdate`)){let{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,a=t.source!==e.layout.source;i===`size`?ZT(e=>{let r=a?t.measuredBox[e]:t.layoutBox[e],i=UT(r);r.min=n[e].min,r.max=r.min+i}):ID(i,t.layoutBox,n)&&ZT(r=>{let i=a?t.measuredBox[r]:t.layoutBox[r],o=UT(n[r]);i.max=i.min+o,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+o)});let o=Fw();KT(o,n,t.layoutBox);let s=Fw();a?KT(s,e.applyTransform(r,!0),t.measuredBox):KT(s,n,t.layoutBox);let c=!$E(o),l=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:a}=r;if(i&&a){let o=Lw();XT(o,t.layoutBox,i.layoutBox);let s=Lw();XT(s,n,a.layoutBox),rD(o,s)||(l=!0),r.options.layoutRoot&&(e.relativeTarget=s,e.relativeTargetOrigin=o,e.relativeParent=r)}}}e.notifyListeners(`didUpdate`,{layout:n,snapshot:t,delta:s,layoutDelta:o,hasLayoutChanged:c,hasRelativeLayoutChanged:l})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function gD(e){Yv.value&&cD.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty),e.isTransformDirty||=e.parent.isTransformDirty)}function _D(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function vD(e){e.clearSnapshot()}function yD(e){e.clearMeasurements()}function bD(e){e.isLayoutDirty=!1}function xD(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify(`BeforeLayoutMeasure`),e.resetTransform()}function SD(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function CD(e){e.resolveTargetDelta()}function wD(e){e.calcProjection()}function TD(e){e.resetSkewAndRotation()}function ED(e){e.removeLeadSnapshot()}function DD(e,t,n){e.translate=qy(t.translate,0,n),e.scale=qy(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function OD(e,t,n,r){e.min=qy(t.min,n.min,r),e.max=qy(t.max,n.max,r)}function kD(e,t,n,r){OD(e.x,t.x,n.x,r),OD(e.y,t.y,n.y,r)}function AD(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const jD={duration:.45,ease:[.4,0,.1,1]},MD=e=>typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),ND=MD(`applewebkit/`)&&!MD(`chrome/`)?Math.round:bv;function PD(e){e.min=ND(e.min),e.max=ND(e.max)}function FD(e){PD(e.x),PD(e.y)}function ID(e,t,n){return e===`position`||e===`preserve-aspect`&&!WT(iD(t),iD(n),.2)}function LD(e){return e!==e.root&&e.scroll?.wasRoot}const RD=pD({attachResizeListener:(e,t)=>LT(e,`resize`,t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),zD={current:void 0},BD=pD({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!zD.current){let e=new RD({});e.mount(window),e.setOptions({layoutScroll:!0}),zD.current=e}return zD.current},resetTransform:(e,t)=>{e.style.transform=t===void 0?`none`:t},checkIsScrollRoot:e=>window.getComputedStyle(e).position===`fixed`}),VD={pan:{Feature:TE},drag:{Feature:CE,ProjectionNode:BD,MeasureLayout:kE}};function HD(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive(`whileHover`,n===`Start`);let i=`onHover`+n,a=r[i];a&&Qv.postRender(()=>a(t,RT(t)))}var UD=class extends MT{mount(){let{current:e}=this.node;e&&(this.unmount=xS(e,(e,t)=>(HD(this.node,t,`Start`),e=>HD(this.node,e,`End`))))}unmount(){}},WD=class extends MT{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(`:focus-visible`)}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive(`whileFocus`,!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive(`whileFocus`,!1),this.isActive=!1)}mount(){this.unmount=Sv(LT(this.node.current,`focus`,()=>this.onFocus()),LT(this.node.current,`blur`,()=>this.onBlur()))}unmount(){}};function GD(e,t,n){let{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive(`whileTap`,n===`Start`);let i=`onTap`+(n===`End`?``:n),a=r[i];a&&Qv.postRender(()=>a(t,RT(t)))}var KD=class extends MT{mount(){let{current:e}=this.node;e&&(this.unmount=jS(e,(e,t)=>(GD(this.node,t,`Start`),(e,{success:t})=>GD(this.node,e,t?`End`:`Cancel`)),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}};const qD=new WeakMap,JD=new WeakMap,YD=e=>{let t=qD.get(e.target);t&&t(e)},XD=e=>{e.forEach(YD)};function ZD({root:e,...t}){let n=e||document;JD.has(n)||JD.set(n,{});let r=JD.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(XD,{root:e,...t})),r[i]}function QD(e,t,n){let r=ZD(t);return qD.set(e,n),r.observe(e),()=>{qD.delete(e),r.unobserve(e)}}const $D={some:0,all:1};var eO=class extends MT{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r=`some`,once:i}=e,a={root:t?t.current:void 0,rootMargin:n,threshold:typeof r==`number`?r:$D[r]},o=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,i&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive(`whileInView`,t);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),a=t?n:r;a&&a(e)};return QD(this.node.current,a,o)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>`u`)return;let{props:e,prevProps:t}=this.node,n=[`amount`,`margin`,`root`].some(tO(e,t));n&&this.startObserver()}unmount(){}};function tO({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const nO={inView:{Feature:eO},tap:{Feature:KD},focus:{Feature:WD},hover:{Feature:UD}},rO={layout:{ProjectionNode:BD,MeasureLayout:kE}},iO={...IT,...nO,...VD,...rO},aO=pw(iO,Qw),oO={root:{k1xSpc:`x78zum5`,kzqmXN:`xh8yej3`,kXwgrk:`xdt5ytf`,kGNEyG:`x6s0dn4`,kjj79g:`xl56j7k`,kVQacm:`xb3r6kr`,$$css:!0},arrow:{kKVMdj:`xqcmdr3`,k44tkh:`x4afe7t`,kyAemX:`x4hg4is`,$$css:!0},hidden:{k33iCy:`xlshs6z`,$$css:!0}},sO=({testId:e=`carousel-id`,activeIndex:t=0,extraClassNames:n=``,xstyle:r,onSlide:i=()=>{},autoSlide:a,showIndicators:o=!0,continuous:s=!0,interval:c=4e3,prevIcon:l=Mt,nextIcon:u=Nt,showArrows:d=!0,iconExtraClassNames:p=``,iconXstyle:m,carouselItems:h})=>{let[g,_]=v(t),y=e=>{let t=(e+h.length)%h.length;_(t),i(t,t>g?`right`:`left`)};f(()=>{if(a){let e=setInterval(()=>{s||g<h.length-1?y(g+1):clearInterval(e)},c);return()=>clearInterval(e)}},[a,g,s,c,h.length]),f(()=>{t!==g&&_(t)},[t]);let S=()=>{if(g===0&&!s)return;let e=g-1;e<0&&(e=h.length-1),y(e)},C=()=>{if(g===h.length-1){if(!s)return;y(0)}else y(g+1)},w={type:`spring`,damping:20,stiffness:100},T={initial:e=>({x:e>0?`100%`:`-100%`,opacity:0}),animate:{x:0,opacity:1,transition:w},exit:e=>({x:e>0?`-100%`:`100%`,opacity:0,transition:w})},E=V(oO.root,r);return x(`div`,{"data-testid":e,...E,className:H(E.className,n),children:[x(`div`,{className:`x78zum5 xdmi676 xh8yej3 x6s0dn4 xvh977a`,children:[d&&b(Ol,{icon:l,size:`lg`,variant:`no-border`,testId:`carousel-prev`,extraClassNames:p,xstyle:[oO.arrow,g===0&&!s&&oO.hidden,m],onClick:S}),b(`div`,{className:`x5yr21d xh8yej3 xb3r6kr`,children:b(aO.div,{custom:1,initial:`initial`,animate:`animate`,exit:`exit`,variants:T,className:`xh8yej3`,children:h[g]},g)}),d&&b(Ol,{icon:u,testId:`carousel-next`,size:`lg`,variant:`no-border`,extraClassNames:p,xstyle:[oO.arrow,g===h.length-1&&!s&&oO.hidden,m],onClick:C})]}),o&&b(`div`,{className:`x1mjqqkp x78zum5 xvh977a`,children:h.map((e,t)=>b(`div`,{...{0:{className:`x164u9eo x1jjc1wv x1ypdohk x10hpsqq x151irhy`},1:{className:`x164u9eo x1jjc1wv x1ypdohk x10hpsqq xu0u6m0`}}[(t===g)<<0],onClick:()=>y(t)},t))})]})};var cO=sO;const lO={base:{ksu8eU:`x1y0btm7`,kMzoRj:`x15udo89`,kVAM5u:`x19rljk3 x1yxquew x1tkmfiq xg92zho x1sua4ys`,kWkggS:`xrkmy7n`,kMwMTN:`xcmjw3v`,$$css:!0},invalid:{kVAM5u:`xqqd531 x35h4v5 x1g2ycgc x1xia7p2 x1qondk2`,$$css:!0},disabled:{kVAM5u:`x1b8hvqk x35v8bp xru2zqf xfrz04c x1g3wuin`,kWkggS:`x13zkdvk`,kMwMTN:`x16nf0g9`,kkrTdU:`x1h6gzvc`,$$css:!0}},uO={root:{k1xSpc:`x78zum5`,$$css:!0},input:{kB7OPa:`x9f619`,kysU6D:`xjyslct`,kmVPX3:`x1717udv`,kZKoxP:`xf08kfj`,kzqmXN:`x1xvt488`,kmuXW:`x2lah0s`,k3XXqK:`x1t137rt`,kGVxlE:`x1gnnqk1`,kVAM5u:`x9mfghu x1yxquew x1tkmfiq xg92zho x1sua4ys`,kWkggS:`x19nua0t`,kKwaWg:`x18o3ruo x11ewqas x1b4pi82`,k1YJky:`x1xsqp64`,kz484i:`xiy17q3`,kgSjnq:`x1h4uluw`,kl9DO0:`x1gqfdwy`,kkrTdU:`x1ypdohk`,$$css:!0},checkbox:{kaIpWk:`x12yonn6`,kKwaWg:`x18o3ruo x11ewqas x1b4pi82 x1fjbote x1xdpq4a`,$$css:!0},radio:{kaIpWk:`x10hpsqq`,$$css:!0},disabled:{kkrTdU:`x1h6gzvc`,$$css:!0},label:{koQZXg:`xko4hcy`,keoZOQ:`xjufezg`,kGuDYH:`xkpwil5`,kLWn49:`x8r4c90`,kkrTdU:`x1ypdohk`,kMwMTN:`xcmjw3v`,$$css:!0},disabledLabel:{kkrTdU:`x1h6gzvc`,kMwMTN:`xp1ohcm`,$$css:!0}},dO=e=>{let{type:t=`checkbox`,value:n,disabled:r=!1,label:i,onChange:a,onClick:o,onKeyDown:s,checked:c,defaultChecked:l,id:u,name:d,extraClassNames:f=``,extraLabelClassNames:m,xstyle:h,inputXstyle:g,labelXstyle:_,testId:v,...y}=e,S=p(),C=u??`checkbox${S}`,w=el(y),T=V(uO.root,h),E=V(uO.label,r&&uO.disabledLabel,_);return x(`span`,{...T,className:H(T.className,f),children:[b(`input`,{value:n,type:t,"data-testid":v,name:d,id:C,readOnly:!a,checked:c,defaultChecked:l,...V(lO.base,uO.input,uO[t],r&&lO.disabled,r&&uO.disabled,g),disabled:r,onClick:o,onChange:a,onKeyDown:s,...w}),i&&b(`label`,{htmlFor:C,...E,className:H(E.className,m),children:i})]})},fO=({isVisible:e,children:t})=>{let n=_(null),[r,i]=v(0);return f(()=>{n.current&&setTimeout(()=>{i((n.current?.scrollHeight??0)+5)},0)},[t]),b(JS,{initial:!1,children:e&&b(aO.div,{initial:{height:0,opacity:0},animate:{height:r,opacity:1},exit:{height:0,opacity:0},transition:{type:`spring`,damping:20,stiffness:100},children:b(`div`,{ref:n,children:t})})})};var pO=fO;const mO={button:{kB7OPa:`x9f619`,kmVPX3:`x1717udv`,kkrTdU:`x1ypdohk`,kMzoRj:`x15udo89`,ksu8eU:`x1y0btm7`,kVAM5u:`xcvrc18`,kGVxlE:`x1bbn379`,k3XXqK:`xi5y0ii`,$$css:!0}},hO={sm:{kzqmXN:`xwqq7k2`,kZKoxP:`xmll18r`,kaIpWk:`x16eypsj`,$$css:!0},md:{kzqmXN:`xp8d6y2`,kZKoxP:`xam5rvr`,kaIpWk:`x1vx5ruh`,$$css:!0},lg:{kzqmXN:`xs5h3dt`,kZKoxP:`xettwda`,kaIpWk:`x116uinm`,$$css:!0}},gO=c(function({color:e,onClick:t,"aria-label":n,size:r=`lg`,extraClassNames:i=``,xstyle:a,id:o,testId:s},c){let l=V(mO.button,hO[r],a);return b(`button`,{ref:c,"aria-label":n,className:H(l.className,i),"data-testid":s,id:o,onClick:t,style:{...l.style,backgroundColor:e},type:`button`})});var _O=gO;const vO={root:{k1xSpc:`x78zum5`,kGNEyG:`x6s0dn4`,kOIVth:`x13z6uf9`,$$css:!0},content:{kVAEAm:`x1n2onr6`,kY2c9j:`x1i7x82i`,k7Eaqz:`x1vi9356`,kMwMTN:`x8x6yx0`,$$css:!0}};function yO({color:e,label:t,children:n,placement:r=`bottom`,align:i=`start`,extraClassNames:a=``,xstyle:o,contentXstyle:s,id:c,testId:l,onOpen:u}){let d=p(),f=V(vO.root,o),m=b(`label`,{className:`x1ypdohk xkpwil5 x8r4c90 xuxw1ft x8x6yx0`,htmlFor:d,children:t}),h=b(_O,{"aria-label":t,color:e,id:c??d,size:`sm`,onClick:u});return n?x(`div`,{...f,className:H(f.className,a),children:[m,x($_,{children:[b(ev,{asChild:!0,children:h}),b(nv,{align:i,...V(S_.panel,S_.motion,vO.content,s),"data-testid":l,side:r,sideOffset:2,children:n})]})]}):x(`div`,{...f,className:H(f.className,a),children:[b(`span`,{className:`x1ypdohk xkpwil5 x8r4c90 xuxw1ft x8x6yx0`,children:t}),h]})}var bO=yO;const xO={panel:{kB7OPa:`x9f619`,keoZOQ:`xhj8ucd`,k1K539:`x1hpqcdg`,k1xSpc:`x78zum5`,kzqmXN:`xh8yej3`,ks0D6T:`x1983rqf`,kXwgrk:`xdt5ytf`,kGNEyG:`x1cy8zhl`,kaIpWk:`x1j6x5gx`,kMzoRj:`x15udo89`,ksu8eU:`x1y0btm7`,kVAM5u:`x8a1gvu`,kWkggS:`x15onfmv`,kE3dHu:`x9dzeaa`,kpe85a:`x52dz5p`,kLKAdn:`x1q57ora`,kGO01o:`xsaxbkt`,kGVxlE:`x1bbn379`,$$css:!0},normal:{kOIVth:`x13z6uf9`,$$css:!0},spacious:{kOIVth:`x8233eu`,$$css:!0},title:{kGuDYH:`xboafo0`,kLWn49:`xl2ypbo`,k63SB2:`x1xlr1w8`,kP9fke:`xtvhhri`,kb6lSQ:`x13qdn04`,kMwMTN:`x190h4uq`,$$css:!0},actions:{k1xSpc:`x78zum5`,kzqmXN:`xh8yej3`,ks0D6T:`x193iq5w`,kwnvtZ:`x1a02dak`,kGNEyG:`x6s0dn4`,kjj79g:`x13a6bvl`,kOIVth:`x13z6uf9`,$$css:!0}},SO=({title:e,children:t,onApply:n,onCancel:r,isApplyDisabled:i=!1,applyLabel:a=`Apply`,cancelLabel:o=`Cancel`,spacing:s=`normal`,extraClassNames:c=``,xstyle:l,id:u,testId:d})=>{let f=V(xO.panel,xO[s],l);return x(`div`,{...f,className:H(f.className,c),"data-testid":d,id:u,children:[b(`span`,{className:`xboafo0 xl2ypbo x1xlr1w8 xtvhhri x13qdn04 x190h4uq`,children:e}),t,x(`div`,{className:`x78zum5 xh8yej3 x193iq5w x1a02dak x6s0dn4 x13a6bvl x13z6uf9`,children:[r&&b(Ol,{label:o,onClick:r,size:`sm`,variant:`outline`}),n&&b(Ol,{disabled:i,label:a,onClick:n,size:`sm`,variant:`theme`})]})]})};var CO=SO;const wO={link:{k1xSpc:`x3nfvp2`,kMwMTN:`x1bc7ga3`,kMnn75:`xujl8zx`,kcSHmL:`xrys4gj`,k1ekBW:`xtnl7vc`,kIyJzY:`xx6bhzk`,kAMwcw:`xwwtwea`,$$css:!0},icon:{kMwMTN:`x1heor9g`,kMnn75:`x1ikc5xb`,$$css:!0},label:{kMwMTN:`x8x6yx0`,kmuXW:`x2lah0s`,$$css:!0}},TO=({variant:e=`link`,label:t,href:n,children:r,extraClassNames:i=``,xstyle:a,testId:o,onClick:s})=>{let c=V(wO[e],a);return x(y,{children:[t&&b(`span`,{className:`x8x6yx0 x2lah0s`,children:t}),b(`a`,{href:n,target:`_blank`,rel:`noopener`,...c,className:Dt(c.className,i),"data-testid":o,onClick:s,children:r})]})};var EO=TO;function DO(e,t){if(typeof e==`function`)return e(t);typeof e==`object`&&e&&`current`in e&&(e.current=t)}function OO(...e){let t=new Map;return n=>{if(e.forEach(e=>{let r=DO(e,n);r&&t.set(e,r)}),t.size>0)return()=>{e.forEach(e=>{let n=t.get(e);n&&typeof n==`function`?n():DO(e,null)}),t.clear()}}}function kO(...e){return u(OO(...e),e)}const AO=(e,t)=>{let n;return typeof e==`number`&&e>0&&(n={width:`${e}px`}),typeof t==`number`&&t>0&&(n||={},n.height=`${t}px`),n},jO={field:{kB7OPa:`x9f619`,kWkggS:`x1qzpk1z`,kZKoxP:`xvy3ard`,kE3dHu:`xq6sow3`,kpe85a:`xujd68v`,kLKAdn:`x1bixx6j`,kGO01o:`x1a943lp`,kaIpWk:`x1vx5ruh`,kMv6JI:`xjb2p0i`,k63SB2:`x1pd3egz`,kLWn49:`x8cebxl`,k3XXqK:`x1t137rt`,k8Qsv1:`xsvzths`,kH8XJS:`x7xwk5j`,$$css:!0},small:{kGuDYH:`x13vkkqp`,$$css:!0},large:{kGuDYH:`x1437gpi`,$$css:!0},left:{ksF3WI:`x1a2w583`,kYm2EN:`xjppbhk`,kWqL5O:`xgfja2r x1jh4cj x12ttex6 x1inl38p`,$$css:!0},right:{kIxVMA:`x1ia1hqs`,kqGeR4:`xfrllxf`,kZ1KPB:`xyj58a3 xfu29go x1h2v91w xy4jxoo`,$$css:!0},disabled:{kfzvcC:`x47corl`,$$css:!0}},MO=c((e,t)=>{let{readonly:n=!1,disabled:r=!1,onChange:i,onPaste:a,onKeyUp:o,onFocus:s,onBlur:c,onKeyDown:l,id:u,name:d,size:p=`sm`,value:m,placeholder:h,extraClassNames:g=``,xstyle:S,testId:C,type:w=`text`,inputGroup:T,step:E,showError:D,errorText:O,min:k,max:A,maxLength:j,minLength:M,required:ee=!1,autoComplete:te=`off`,inputWidth:N,inputHeight:P,autoFocus:ne=!1,...F}=e,re=_(null),ie=kO(t,re),[ae,I]=v(null),oe=el(F),se=_(ne);f(()=>{se.current&&setTimeout(()=>{re.current?.focus()},0)},[]),f(()=>{let e=re.current;e&&w!==`number`&&w!==`email`&&e.setSelectionRange(ae,ae)},[t,ae,m,w]);let ce=e=>{I(e.target.selectionStart),i&&i(e)},L=()=>w===`number`?k===void 0?!0:k%Number(E??1)===0:!1,le=e=>Array.isArray(e)?e.join(`,`):String(e),ue=e=>{if(L()){let t=e.currentTarget,n=t.value;t.defaultValue=``,t.value=t.validity.valid&&m!=null?le(m):n}c?.(e)};f(()=>{let e=re.current;w===`number`&&m!=null&&m!==e?.value&&e&&(e.value=le(m))},[m,w]);let de=V(lO.base,jO.field,p===`lg`?jO.large:jO.small,T===`left`&&jO.left,T===`right`&&jO.right,D&&lO.invalid,r&&lO.disabled,r&&jO.disabled,S),R=AO(N,P),z={};j&&(z.maxLength=j),M&&(z.minLength=M);let fe=w===`number`?{defaultValue:m}:{value:m};return x(y,{children:[b(`input`,{ref:ie,"data-testid":C,name:d,id:u,type:w,...fe,...de,className:H(`specTextField`,de.className,g),style:{...de.style,...R},placeholder:h,disabled:r,readOnly:n,"aria-invalid":D||void 0,autoComplete:te,onChange:ce,onPaste:a,onFocus:s,onBlur:ue,onKeyDown:l,onKeyUp:o,step:E,required:ee,min:k,max:A,...z,...oe}),O&&D&&b(`div`,{className:`xpfypby xwnasfm x1xe75nh x1aijl2p`,children:O})]})});MO.displayName=`TextField`;const NO={group:{kVAEAm:`x1n2onr6`,k1xSpc:`x78zum5`,kzqmXN:`xh8yej3`,kwnvtZ:`x1a02dak`,kaIpWk:`x1vx5ruh`,k3XXqK:`x1t137rt`,$$css:!0},field:{k1xSpc:`x78zum5`,kUk6DE:`x845mor`,kkrTdU:`x1ypdohk`,kE3dHu:`xq6sow3`,kpe85a:`xujd68v`,kLKAdn:`x1bixx6j`,kGO01o:`x1a943lp`,kLWn49:`x8cebxl`,kWkggS:`x1qzpk1z`,kaIpWk:`x1vx5ruh`,k3XXqK:`x1t137rt`,kY2c9j:`x1swf91x x1fq8jsg`,$$css:!0},left:{ksF3WI:`x1a2w583`,kYm2EN:`xjppbhk`,$$css:!0},right:{kIxVMA:`x1ia1hqs`,kqGeR4:`xfrllxf`,$$css:!0},input:{k1xSpc:`x78zum5`,kzqmXN:`xh8yej3`,kUk6DE:`x845mor`,kY2c9j:`x1swf91x x1nniw7y`,$$css:!0},appended:{koQZXg:`xj3b58b`,kaIpWk:`x2u8bby`,ksF3WI:`x1a2w583 xxkfc9v`,kYm2EN:`xjppbhk x8txd6`,$$css:!0},overlap:{koQZXg:`xh9i6ac`,$$css:!0},button:{kY2c9j:`x1swf91x x16p59gx`,kMzoRj:`x15udo89 xcvuhk8`,$$css:!0},element:{k1xSpc:`x78zum5`,kGNEyG:`x6s0dn4`,kjj79g:`xl56j7k`,kY2c9j:`x1swf91x xh986oh`,$$css:!0}},PO=c((e,t)=>{let{readonly:n=!1,onChange:r,onKeyUp:i,onFocus:o,onBlur:s,onKeyDown:c,name:u,value:d,placeholder:f,append:p=[],extraClassNames:m=``,xstyle:h,containerXstyle:g,id:_,testId:v,showError:y,required:S,autoComplete:C,autoFocus:w,disabled:T,type:E,step:D,min:O,max:k,field:A,maxLength:j,minLength:M,inputGroup:ee,...te}=e,N=el(te),P=V(NO.group,g),ne=p.filter(Boolean),F=ee??(ne.length>0?`left`:void 0),re=V(lO.base,NO.field,F&&NO[F],y&&lO.invalid,h),ie=l(A)&&typeof A.type!=`string`,ae=ie?a(A,{inputGroup:F}):A;return x(`div`,{id:`input-group-${_}`,...P,className:H(P.className,m),children:[A?b(`div`,{"data-testid":v,"aria-invalid":y||void 0,...re,className:H(re.className,m),children:ae}):b(MO,{testId:v,readonly:n,onChange:r,onKeyUp:i,onFocus:o,onBlur:s,onKeyDown:c,name:u,ref:t,showError:y,value:d,required:S,placeholder:f,autoComplete:C,autoFocus:w,id:_,type:E,disabled:T,step:D,min:O,max:k,maxLength:j,minLength:M,inputGroup:F,extraClassNames:m,xstyle:[NO.input,h],...N}),ne.map((e,t)=>e?.variant===`button`?b(Ol,{...e.buttonProps,xstyle:[NO.appended,t>0&&NO.overlap,NO.button,e.buttonProps.xstyle]},t):b(`div`,{...V(lO.base,NO.appended,t>0&&NO.overlap,NO.element),children:e?.element},t))]})});PO.displayName=`InputGroup`;var FO=`Dialog`,[IO,LO]=F(FO),[RO,zO]=IO(FO),BO=t=>{let{__scopeDialog:n,children:r,open:i,defaultOpen:a,onOpenChange:o,modal:s=!0}=t,c=e.useRef(null),l=e.useRef(null),[u,d]=pe({prop:i,defaultProp:a??!1,onChange:o,caller:FO});return b(RO,{scope:n,triggerRef:c,contentRef:l,contentId:Te(),titleId:Te(),descriptionId:Te(),open:u,onOpenChange:d,onOpenToggle:e.useCallback(()=>d(e=>!e),[d]),modal:s,children:r})};BO.displayName=FO;var VO=`DialogTrigger`,HO=e.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=zO(VO,n),a=I(t,i.triggerRef);return b(B.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":i.open,"aria-controls":i.contentId,"data-state":ck(i.open),...r,ref:a,onClick:R(e.onClick,i.onOpenToggle)})});HO.displayName=VO;var UO=`DialogPortal`,[WO,GO]=IO(UO,{forceMount:void 0}),KO=t=>{let{__scopeDialog:n,forceMount:r,children:i,container:a}=t,o=zO(UO,n);return b(WO,{scope:n,forceMount:r,children:e.Children.map(i,e=>b(ye,{present:r||o.open,children:b(op,{asChild:!0,container:a,children:e})}))})};KO.displayName=UO;var qO=`DialogOverlay`,JO=e.forwardRef((e,t)=>{let n=GO(qO,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=zO(qO,e.__scopeDialog);return a.modal?b(ye,{present:r||a.open,children:b(XO,{...i,ref:t})}):null});JO.displayName=qO;var YO=oe(`DialogOverlay.RemoveScroll`),XO=e.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=zO(qO,n);return b(Km,{as:YO,allowPinchZoom:!0,shards:[i.contentRef],children:b(B.div,{"data-state":ck(i.open),...r,ref:t,style:{pointerEvents:`auto`,...r.style}})})}),ZO=`DialogContent`,QO=e.forwardRef((e,t)=>{let n=GO(ZO,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=zO(ZO,e.__scopeDialog);return b(ye,{present:r||a.open,children:a.modal?b($O,{...i,ref:t}):b(ek,{...i,ref:t})})});QO.displayName=ZO;var $O=e.forwardRef((t,n)=>{let r=zO(ZO,t.__scopeDialog),i=e.useRef(null),a=I(n,r.contentRef,i);return e.useEffect(()=>{let e=i.current;if(e)return Ip(e)},[]),b(tk,{...t,ref:a,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:R(t.onCloseAutoFocus,e=>{e.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:R(t.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0,r=t.button===2||n;r&&e.preventDefault()}),onFocusOutside:R(t.onFocusOutside,e=>e.preventDefault())})}),ek=e.forwardRef((t,n)=>{let r=zO(ZO,t.__scopeDialog),i=e.useRef(!1),a=e.useRef(!1);return b(tk,{...t,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:e=>{t.onCloseAutoFocus?.(e),e.defaultPrevented||(i.current||r.triggerRef.current?.focus(),e.preventDefault()),i.current=!1,a.current=!1},onInteractOutside:e=>{t.onInteractOutside?.(e),e.defaultPrevented||(i.current=!0,e.detail.originalEvent.type===`pointerdown`&&(a.current=!0));let n=e.target,o=r.triggerRef.current?.contains(n);o&&e.preventDefault(),e.detail.originalEvent.type===`focusin`&&a.current&&e.preventDefault()}})}),tk=e.forwardRef((t,n)=>{let{__scopeDialog:r,trapFocus:i,onOpenAutoFocus:a,onCloseAutoFocus:o,...s}=t,c=zO(ZO,r),l=e.useRef(null),u=I(n,l);return Yl(),x(y,{children:[b(tu,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:a,onUnmountAutoFocus:o,children:b(Vl,{role:`dialog`,id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":ck(c.open),...s,ref:u,onDismiss:()=>c.onOpenChange(!1)})}),x(y,{children:[b(fk,{titleId:c.titleId}),b(mk,{contentRef:l,descriptionId:c.descriptionId})]})]})}),nk=`DialogTitle`,rk=e.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=zO(nk,n);return b(B.h2,{id:i.titleId,...r,ref:t})});rk.displayName=nk;var ik=`DialogDescription`,ak=e.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=zO(ik,n);return b(B.p,{id:i.descriptionId,...r,ref:t})});ak.displayName=ik;var ok=`DialogClose`,sk=e.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=zO(ok,n);return b(B.button,{type:`button`,...r,ref:t,onClick:R(e.onClick,()=>i.onOpenChange(!1))})});sk.displayName=ok;function ck(e){return e?`open`:`closed`}var lk=`DialogTitleWarning`,[uk,dk]=ne(lk,{contentName:ZO,titleName:nk,docsSlug:`dialog`}),fk=({titleId:t})=>{let n=dk(lk),r=`\`${n.contentName}\` requires a \`${n.titleName}\` for the component to be accessible for screen reader users.
|
|
1135
1135
|
|
|
1136
1136
|
If you want to hide the \`${n.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
1137
1137
|
|
|
1138
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${n.docsSlug}`;return e.useEffect(()=>{if(t){let e=document.getElementById(t);e||console.error(r)}},[r,t]),null},pk=`DialogDescriptionWarning`,mk=({contentRef:t,descriptionId:n})=>{let r=dk(pk),i=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${r.contentName}}.`;return e.useEffect(()=>{let e=t.current?.getAttribute(`aria-describedby`);if(n&&e){let e=document.getElementById(n);e||console.warn(i)}},[i,t,n]),null},hk=BO,gk=KO,_k=QO,vk=rk,yk=ak,bk=sk;const xk={kIyJzY:`x22j8wx`,$$css:!0},Sk={dialog:{kB7OPa:`x9f619`,kVAEAm:`xixxii4`,k87sOh:`x13vifvy`,kbCHJM:`x1nrll8i`,kY2c9j:`x1vjfegm`,kqGvvJ:`xjmfy54`,kzqmXN:`xh8yej3`,k3aq6I:`xuuh30`,kOIVth:`xxhr3t`,kaIpWk:`x116uinm`,kMzoRj:`xc342km`,kWkggS:`xrkmy7n`,kMwMTN:`xcmjw3v`,kskxy:`xsl6t7s`,kVQacm:`xb3r6kr`,k1xSpc:`x78zum5`,kXwgrk:`xdt5ytf`,kGVxlE:`x1yluqc4`,$$css:!0},duration:e=>[xk,{"--x-transitionDuration":(e=>typeof e==`number`?e+`ms`:e??void 0)(`${e}ms`)}],icon:{k1xSpc:`x78zum5`,kGuDYH:`x1603h9y`,keoZOQ:`x1tbvfm1`,kLWn49:`x1evy7pa`,$$css:!0},customButton:{kjj79g:`x1nhvcw1`,k7Eaqz:`xb8jz9x`,$$css:!0},cancelButton:{km5ZXQ:`x1yjprzi`,k7Eaqz:`xb8jz9x`,$$css:!0},submitButton:{k7Eaqz:`xb8jz9x`,$$css:!0}},Ck={xs:{ks0D6T:`x9h9p8b`,$$css:!0},sm:{ks0D6T:`xowlazn`,$$css:!0},md:{ks0D6T:`x1983rqf`,$$css:!0},lg:{ks0D6T:`x6ymgno`,$$css:!0},xl:{ks0D6T:`xc0i79g`,$$css:!0},"2xl":{ks0D6T:`x1jb01v5`,$$css:!0},"3xl":{ks0D6T:`x1vpbbxe`,$$css:!0},"4xl":{ks0D6T:`x14i9o60`,$$css:!0},"5xl":{ks0D6T:`xl4u9xm`,$$css:!0},"6xl":{ks0D6T:`x1hv4mr`,$$css:!0}},wk=hk,Tk=gk,Ek=bk,Dk=c(({className:e=``,"aria-describedby":t,children:n,xstyle:r,...i},a)=>{let o=V(Sk.dialog,Sk.duration(300),r);return b(Tk,{children:x(`div`,{className:`xixxii4 x10a8y8t xar8z0r x1odjw0f`,children:[b(`div`,{className:`x10l6tqk x10a8y8t x5yr21d xh8yej3 x1w213s4 xbyyjgo x87ps6o`}),x(_k,{ref:a,tabIndex:void 0,"aria-describedby":t,...o,className:Dt(o.className,e),...i,children:[b(rk,{className:`x1s85apg`}),n]})]})})});Dk.displayName=_k.displayName;const Ok=e=>b(`div`,{className:`xh8yej3 x1qughib`,children:b(`div`,{...e})});Ok.displayName=`DialogHeader`;const kk=e=>b(`div`,{...e});kk.displayName=`DialogFooter`;const Ak=c((e,t)=>b(vk,{ref:t,...e}));Ak.displayName=vk.displayName;const jk=c((e,t)=>b(yk,{asChild:!0,children:b(`div`,{ref:t,...e})}));jk.displayName=yk.displayName;const Mk=({titleIcon:e,title:t,titleSuffixLabel:n,subtitle:r,children:i,open:a=!1,onClose:o,onCloseAutoFocus:s,customButton:c=!1,customButtonLabel:u=`Back`,onClickCustomButton:d,submitButtonLabel:p=`Submit`,cancelButtonLabel:m=`Cancel`,disableSubmitButton:h=!1,stopPropagationSubmitButton:g=!1,onSubmit:_,isTitleEditable:S=!1,onTitleChanged:C,inputExtraClassNames:w,hideCloseIcon:T=!1,size:E=`xl`,titleIconPosition:D=`left`,hideFooterButtons:O=!1,hideSubmitButton:k=!1,hideCancelButton:A=!1,testId:j=`modal`,modalFooter:M,dialogClassName:ee,xstyle:N,titlePlaceholder:te,titleRequired:P,titleError:ne,submitButtonTooltip:F,cancelButtonTooltip:re,disableCustomButton:ie,customHeader:ae,middleFooterSection:I=b(y,{}),customButtonVariant:oe=`outline`,submitButtonVariant:se=`theme`,keepFocusInsideModal:ce=!0,onPointerDownOutside:L,onInteractOutside:le,ariaDescribedBy:R})=>{let[ue,z]=v(!1);f(()=>{if(a){let e=setTimeout(()=>{document.body.style.pointerEvents=``},0);return()=>clearTimeout(e)}else document.body.style.pointerEvents=`auto`},[a]);let de=async e=>{if(_)try{z(!0),await _(e)}finally{z(!1)}},fe=()=>{let i=b(y,{});return e&&(i=l(e)?b(`div`,{className:`x1mjqqkp`,children:e}):b(al,{icon:e,testId:`modalTitleIcon`,xstyle:Sk.icon})),x(y,{children:[e&&D===`left`?b(`div`,{className:`xpoiemb x78zum5`,children:i}):b(y,{}),b(Ak,{asChild:!0,children:S?x(`div`,{className:`x78zum5 xh8yej3 x6s0dn4`,children:[b(MO,{extraClassNames:w,value:t,type:`text`,testId:`modalTitle`,onChange:C,placeholder:te,required:P,showError:!!ne}),ne&&b(`p`,{className:`xat24cr x1pshirs x15u6esi x1aijl2p`,children:ne})]}):ae??x(`div`,{"data-testid":`modalTitle`,className:`modal-title`,children:[x(`div`,{className:`x78zum5 x6s0dn4`,children:[b(`h3`,{children:t}),n&&b(`span`,{className:`xqjs8ns x1603h9y xladpa3`,children:n})]}),r&&b(`div`,{className:`x1tbvfm1 xdpxx8g xkpwil5 x8r4c90 x1k4tb9n`,"data-testid":`modal-subtitle`,children:r})]})}),e&&D===`right`?b(`div`,{className:`xt3xpxm x78zum5`,children:i}):b(y,{})]})},pe={className:`x78zum5 xh8yej3 x1qughib xc342km xso031l x1y0btm7 x19rljk3 xzsmjar xgepmj6`},me={className:`xjb2p0i x1heor9g x1717udv xc342km xt3xpxm x1ypdohk xjbqb8w x1jchvi3 x17mssa0 x1ks1olk x1o7uuvo x1xlr1w8 xi5y0ii`},he={className:`x98rzlu x1odjw0f xzsmjar xgepmj6`},ge={className:`xzsmjar xgepmj6`};return a?b(wk,{open:!0,onOpenChange:o,modal:ce,children:x(Dk,{onCloseAutoFocus:s,onPointerDownOutside:e=>L?L(e):e.preventDefault(),onInteractOutside:e=>le?le(e):e.preventDefault(),"data-testid":j,"aria-describedby":R,xstyle:[Ck[E],N],className:Dt(`modalContent`,ee),children:[x(Ok,{...pe,className:Dt(pe.className,`modal-header`),children:[b(`div`,{className:`x78zum5 xh8yej3`,children:fe()}),!T&&b(Ek,{autoFocus:!1,...me,className:Dt(me.className,`close`),"data-testid":`closeButton`,children:b(`span`,{className:`x1ypdohk`,children:`×`})})]}),b(jk,{...he,className:Dt(he.className,`modal-body`),children:i}),!O&&b(kk,{...ge,className:Dt(ge.className,`modal-footer`),children:M??x(`div`,{className:`x78zum5 xh8yej3 x1qughib`,"data-testid":`modalFooter`,children:[b(`div`,{className:`x78zum5 x1nhvcw1`,children:c&&b(Ol,{label:u,onClick:d,disabled:ie,xstyle:Sk.customButton,testId:`customButton`,variant:oe})}),x(`div`,{className:`x78zum5 x13a6bvl`,children:[b(`div`,{className:`x78zum5 x6s0dn4`,children:I}),!A&&b(Ek,{asChild:!0,children:b(Ol,{label:m,xstyle:Sk.cancelButton,tooltip:re,variant:`outline`,stopPropagation:!1,testId:`cancelButton`})}),!k&&b(Ol,{label:p,onClick:de,disabled:h||ue,variant:se,stopPropagation:g,tooltip:F,inProgress:ue,iconPosition:`left`,testId:`submitButton`,xstyle:Sk.submitButton})]})]})})]})}):b(y,{})};var Nk=Mk;const Pk=(...e)=>{console?.warn&&(Vk(e[0])&&(e[0]=`react-i18next:: ${e[0]}`),console.warn(...e))},Fk={},Ik=(...e)=>{Vk(e[0])&&Fk[e[0]]||(Vk(e[0])&&(Fk[e[0]]=new Date),Pk(...e))},Lk=(e,t)=>()=>{if(e.isInitialized)t();else{let n=()=>{setTimeout(()=>{e.off(`initialized`,n)},0),t()};e.on(`initialized`,n)}},Rk=(e,t,n)=>{e.loadNamespaces(t,Lk(e,n))},zk=(e,t,n,r)=>{Vk(n)&&(n=[n]),n.forEach(t=>{e.options.ns.indexOf(t)<0&&e.options.ns.push(t)}),e.loadLanguages(t,Lk(e,r))},Bk=(e,t,n={})=>!t.languages||!t.languages.length?(Ik(`i18n.languages were undefined or empty`,t.languages),!0):t.hasLoadedNamespace(e,{lng:n.lng,precheck:(t,r)=>{if(n.bindI18n?.indexOf(`languageChanging`)>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!r(t.isLanguageChangingTo,e))return!1}}),Vk=e=>typeof e==`string`,Hk=e=>typeof e==`object`&&!!e,Uk=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,Wk={"&":`&`,"&":`&`,"<":`<`,"<":`<`,">":`>`,">":`>`,"'":`'`,"'":`'`,""":`"`,""":`"`," ":` `," ":` `,"©":`©`,"©":`©`,"®":`®`,"®":`®`,"…":`…`,"…":`…`,"/":`/`,"/":`/`},Gk=e=>Wk[e],Kk=e=>e.replace(Uk,Gk);let qk={bindI18n:`languageChanged`,bindI18nStore:``,transEmptyNodeValue:``,transSupportBasicHtmlNodes:!0,transWrapTextNodes:``,transKeepBasicHtmlNodesFor:[`br`,`strong`,`i`,`p`],useSuspense:!0,unescape:Kk};const Jk=()=>qk,Yk=()=>void 0,Xk=o();var Zk=class{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(e=>{this.usedNamespaces[e]??=!0})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}};const Qk=(e,t)=>{let n=_();return f(()=>{n.current=t?n.current:e},[e,t]),n.current},$k=(e,t,n,r)=>e.getFixedT(t,n,r),eA=(e,t,n,r)=>u($k(e,t,n,r),[e,t,n,r]),tA=(e,t={})=>{let{i18n:n}=t,{i18n:r,defaultNS:i}=d(Xk)||{},a=n||r||Yk();if(a&&!a.reportNamespaces&&(a.reportNamespaces=new Zk),!a){Ik(`You will need to pass in an i18next instance by using initReactI18next`);let e=(e,t)=>Vk(t)?t:Hk(t)&&Vk(t.defaultValue)?t.defaultValue:Array.isArray(e)?e[e.length-1]:e,t=[e,{},!1];return t.t=e,t.i18n={},t.ready=!1,t}a.options.react?.wait&&Ik(`It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.`);let o={...Jk(),...a.options.react,...t},{useSuspense:s,keyPrefix:c}=o,l=e||i||a.options?.defaultNS;l=Vk(l)?[l]:l||[`translation`],a.reportNamespaces.addUsedNamespaces?.(l);let u=(a.isInitialized||a.initializedStoreOnce)&&l.every(e=>Bk(e,a,o)),p=eA(a,t.lng||null,o.nsMode===`fallback`?l:l[0],c),m=()=>p,h=()=>$k(a,t.lng||null,o.nsMode===`fallback`?l:l[0],c),[g,y]=v(m),b=l.join();t.lng&&(b=`${t.lng}${b}`);let x=Qk(b),S=_(!0);f(()=>{let{bindI18n:e,bindI18nStore:n}=o;S.current=!0,!u&&!s&&(t.lng?zk(a,t.lng,l,()=>{S.current&&y(h)}):Rk(a,l,()=>{S.current&&y(h)})),u&&x&&x!==b&&S.current&&y(h);let r=()=>{S.current&&y(h)};return e&&a?.on(e,r),n&&a?.store.on(n,r),()=>{S.current=!1,a&&e?.split(` `).forEach(e=>a.off(e,r)),n&&a&&n.split(` `).forEach(e=>a.store.off(e,r))}},[a,b]),f(()=>{S.current&&u&&y(m)},[a,c,u]);let C=[g,a,u];if(C.t=g,C.i18n=a,C.ready=u,u||!u&&!s)return C;throw new Promise(e=>{t.lng?zk(a,t.lng,l,()=>e()):Rk(a,l,()=>e())})};function nA(e){"@babel/helpers - typeof";return nA=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},nA(e)}function rA(e,t){if(nA(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(nA(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function iA(e){var t=rA(e,`string`);return nA(t)==`symbol`?t:t+``}function aA(e,t,n){return(t=iA(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function oA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function J(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?oA(Object(n),!0).forEach(function(t){aA(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oA(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function sA(e){if(Array.isArray(e))return e}function cA(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function lA(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function uA(e,t){if(e){if(typeof e==`string`)return lA(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?lA(e,t):void 0}}function dA(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
1139
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fA(e,t){return sA(e)||cA(e,t)||uA(e,t)||dA()}function pA(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function mA(e,t){if(e==null)return{};var n,r,i=pA(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var hA=[`defaultInputValue`,`defaultMenuIsOpen`,`defaultValue`,`inputValue`,`menuIsOpen`,`onChange`,`onInputChange`,`onMenuClose`,`onMenuOpen`,`value`];function gA(e){var t=e.defaultInputValue,n=t===void 0?``:t,r=e.defaultMenuIsOpen,i=r===void 0?!1:r,a=e.defaultValue,o=a===void 0?null:a,s=e.inputValue,c=e.menuIsOpen,l=e.onChange,d=e.onInputChange,f=e.onMenuClose,p=e.onMenuOpen,m=e.value,h=mA(e,hA),g=v(s===void 0?n:s),_=fA(g,2),y=_[0],b=_[1],x=v(c===void 0?i:c),S=fA(x,2),C=S[0],w=S[1],T=v(m===void 0?o:m),E=fA(T,2),D=E[0],O=E[1],k=u(function(e,t){typeof l==`function`&&l(e,t),O(e)},[l]),A=u(function(e,t){var n;typeof d==`function`&&(n=d(e,t)),b(n===void 0?e:n)},[d]),j=u(function(){typeof p==`function`&&p(),w(!0)},[p]),M=u(function(){typeof f==`function`&&f(),w(!1)},[f]),ee=s===void 0?y:s,
|
|
1138
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${n.docsSlug}`;return e.useEffect(()=>{if(t){let e=document.getElementById(t);e||console.error(r)}},[r,t]),null},pk=`DialogDescriptionWarning`,mk=({contentRef:t,descriptionId:n})=>{let r=dk(pk),i=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${r.contentName}}.`;return e.useEffect(()=>{let e=t.current?.getAttribute(`aria-describedby`);if(n&&e){let e=document.getElementById(n);e||console.warn(i)}},[i,t,n]),null},hk=BO,gk=KO,_k=QO,vk=rk,yk=ak,bk=sk;const xk={kIyJzY:`x22j8wx`,$$css:!0},Sk={dialog:{kB7OPa:`x9f619`,kVAEAm:`xixxii4`,k87sOh:`x13vifvy`,kbCHJM:`x1nrll8i`,kY2c9j:`x1vjfegm`,kqGvvJ:`xjmfy54`,kzqmXN:`xh8yej3`,k3aq6I:`xuuh30`,kOIVth:`xxhr3t`,kaIpWk:`x116uinm`,kMzoRj:`xc342km`,kWkggS:`xrkmy7n`,kMwMTN:`xcmjw3v`,kskxy:`xsl6t7s`,kVQacm:`xb3r6kr`,k1xSpc:`x78zum5`,kXwgrk:`xdt5ytf`,kGVxlE:`x1yluqc4`,$$css:!0},duration:e=>[xk,{"--x-transitionDuration":(e=>typeof e==`number`?e+`ms`:e??void 0)(`${e}ms`)}],icon:{k1xSpc:`x78zum5`,kGuDYH:`x1603h9y`,keoZOQ:`x1tbvfm1`,kLWn49:`x1evy7pa`,$$css:!0},body:{kUk6DE:`x98rzlu`,kORKVm:`x1odjw0f`,kg3NbH:`xzsmjar`,k8WAf4:`xgepmj6`,$$css:!0},customButton:{kjj79g:`x1nhvcw1`,k7Eaqz:`xb8jz9x`,$$css:!0},cancelButton:{k7Eaqz:`xb8jz9x`,$$css:!0},submitButton:{k7Eaqz:`xb8jz9x`,$$css:!0}},Ck={xs:{ks0D6T:`x9h9p8b`,$$css:!0},sm:{ks0D6T:`xowlazn`,$$css:!0},md:{ks0D6T:`x1983rqf`,$$css:!0},lg:{ks0D6T:`x6ymgno`,$$css:!0},xl:{ks0D6T:`xc0i79g`,$$css:!0},"2xl":{ks0D6T:`x1jb01v5`,$$css:!0},"3xl":{ks0D6T:`x1vpbbxe`,$$css:!0},"4xl":{ks0D6T:`x14i9o60`,$$css:!0},"5xl":{ks0D6T:`xl4u9xm`,$$css:!0},"6xl":{ks0D6T:`x1hv4mr`,$$css:!0}},wk=hk,Tk=gk,Ek=bk,Dk=c(({className:e=``,"aria-describedby":t,children:n,xstyle:r,...i},a)=>{let o=V(Sk.dialog,Sk.duration(300),r);return b(Tk,{children:x(`div`,{className:`xixxii4 x10a8y8t xar8z0r x1odjw0f`,children:[b(`div`,{className:`x10l6tqk x10a8y8t x5yr21d xh8yej3 x1w213s4 xbyyjgo x87ps6o`}),x(_k,{ref:a,tabIndex:void 0,"aria-describedby":t,...o,className:Dt(o.className,e),...i,children:[b(rk,{className:`x1s85apg`}),n]})]})})});Dk.displayName=_k.displayName;const Ok=e=>b(`div`,{className:`xh8yej3 x1qughib`,children:b(`div`,{...e})});Ok.displayName=`DialogHeader`;const kk=e=>b(`div`,{...e});kk.displayName=`DialogFooter`;const Ak=c((e,t)=>b(vk,{ref:t,...e}));Ak.displayName=vk.displayName;const jk=c((e,t)=>b(yk,{asChild:!0,children:b(`div`,{ref:t,...e})}));jk.displayName=yk.displayName;const Mk=({titleIcon:e,title:t,titleSuffixLabel:n,subtitle:r,children:i,open:a=!1,onClose:o,onCloseAutoFocus:s,onEscapeKeyDown:c,customButton:u=!1,customButtonLabel:d=`Back`,onClickCustomButton:p,submitButtonLabel:m=`Submit`,cancelButtonLabel:h=`Cancel`,disableSubmitButton:g=!1,stopPropagationSubmitButton:_=!1,onSubmit:S,isTitleEditable:C=!1,onTitleChanged:w,inputExtraClassNames:T,inputXstyle:E,bodyXstyle:D,hideCloseIcon:O=!1,size:k=`xl`,titleIconPosition:A=`left`,hideFooterButtons:j=!1,hideSubmitButton:M=!1,hideCancelButton:ee=!1,testId:te=`modal`,modalFooter:N,dialogClassName:P,xstyle:ne,titlePlaceholder:F,titleRequired:re,titleError:ie,submitButtonTooltip:ae,cancelButtonTooltip:I,disableCustomButton:oe,customHeader:se,middleFooterSection:ce=b(y,{}),customButtonVariant:L=`outline`,submitButtonVariant:le=`theme`,keepFocusInsideModal:ue=!0,onPointerDownOutside:de,onInteractOutside:R,ariaDescribedBy:z})=>{let[fe,pe]=v(!1);f(()=>{if(a){let e=setTimeout(()=>{document.body.style.pointerEvents=``},0);return()=>clearTimeout(e)}else document.body.style.pointerEvents=`auto`},[a]);let me=async e=>{if(S)try{pe(!0),await S(e)}finally{pe(!1)}},he=()=>{let i=b(y,{});return e&&(i=l(e)?b(`div`,{className:`x1mjqqkp`,children:e}):b(al,{icon:e,testId:`modalTitleIcon`,xstyle:Sk.icon})),x(y,{children:[e&&A===`left`?b(`div`,{className:`xpoiemb x78zum5`,children:i}):b(y,{}),b(Ak,{asChild:!0,children:C?x(`div`,{className:`x78zum5 xh8yej3 x6s0dn4`,children:[b(MO,{extraClassNames:T,xstyle:E,value:t,type:`text`,testId:`modalTitle`,onChange:w,placeholder:F,required:re,showError:!!ie}),ie&&b(`p`,{className:`xat24cr x1pshirs x15u6esi x1aijl2p`,children:ie})]}):se??x(`div`,{"data-testid":`modalTitle`,className:`modal-title`,children:[x(`div`,{className:`x78zum5 x6s0dn4`,children:[b(`h3`,{children:t}),n&&b(`span`,{className:`xqjs8ns x1603h9y xladpa3`,children:n})]}),r&&b(`div`,{className:`x1tbvfm1 xdpxx8g xkpwil5 x8r4c90 x1k4tb9n`,"data-testid":`modal-subtitle`,children:r})]})}),e&&A===`right`?b(`div`,{className:`xt3xpxm x78zum5`,children:i}):b(y,{})]})},ge={className:`x78zum5 xh8yej3 x1qughib xc342km xso031l x1y0btm7 x19rljk3 xzsmjar xgepmj6`},B={className:`xjb2p0i x1heor9g x1717udv xc342km xt3xpxm x1ypdohk xjbqb8w x1jchvi3 x17mssa0 x1ks1olk x1o7uuvo x1xlr1w8 xi5y0ii`},_e=V(Sk.body,D),ve={className:`xzsmjar xgepmj6`};return a?b(wk,{open:!0,onOpenChange:o,modal:ue,children:x(Dk,{onCloseAutoFocus:s,onEscapeKeyDown:c,onPointerDownOutside:e=>de?de(e):e.preventDefault(),onInteractOutside:e=>R?R(e):e.preventDefault(),"data-testid":te,"aria-describedby":z,xstyle:[Ck[k],ne],className:Dt(`modalContent`,P),children:[x(Ok,{...ge,className:Dt(ge.className,`modal-header`),children:[b(`div`,{className:`x78zum5 xh8yej3`,children:he()}),!O&&b(Ek,{autoFocus:!1,...B,className:Dt(B.className,`close`),"data-testid":`closeButton`,children:b(`span`,{className:`x1ypdohk`,children:`×`})})]}),b(jk,{..._e,className:Dt(_e.className,`modal-body`),children:i}),!j&&b(kk,{...ve,className:Dt(ve.className,`modal-footer`),children:N??x(`div`,{className:`x78zum5 xh8yej3 x1qughib`,"data-testid":`modalFooter`,children:[b(`div`,{className:`x78zum5 x1nhvcw1`,children:u&&b(Ol,{label:d,onClick:p,disabled:oe,xstyle:Sk.customButton,testId:`customButton`,variant:L})}),x(`div`,{className:`x78zum5 x13a6bvl x4prdry`,children:[b(`div`,{className:`x78zum5 x6s0dn4`,children:ce}),!ee&&b(Ek,{asChild:!0,children:b(Ol,{label:h,xstyle:Sk.cancelButton,tooltip:I,variant:`outline`,stopPropagation:!1,testId:`cancelButton`})}),!M&&b(Ol,{label:m,onClick:me,disabled:g||fe,variant:le,stopPropagation:_,tooltip:ae,inProgress:fe,iconPosition:`left`,testId:`submitButton`,xstyle:Sk.submitButton})]})]})})]})}):b(y,{})};var Nk=Mk;const Pk=(...e)=>{console?.warn&&(Vk(e[0])&&(e[0]=`react-i18next:: ${e[0]}`),console.warn(...e))},Fk={},Ik=(...e)=>{Vk(e[0])&&Fk[e[0]]||(Vk(e[0])&&(Fk[e[0]]=new Date),Pk(...e))},Lk=(e,t)=>()=>{if(e.isInitialized)t();else{let n=()=>{setTimeout(()=>{e.off(`initialized`,n)},0),t()};e.on(`initialized`,n)}},Rk=(e,t,n)=>{e.loadNamespaces(t,Lk(e,n))},zk=(e,t,n,r)=>{Vk(n)&&(n=[n]),n.forEach(t=>{e.options.ns.indexOf(t)<0&&e.options.ns.push(t)}),e.loadLanguages(t,Lk(e,r))},Bk=(e,t,n={})=>!t.languages||!t.languages.length?(Ik(`i18n.languages were undefined or empty`,t.languages),!0):t.hasLoadedNamespace(e,{lng:n.lng,precheck:(t,r)=>{if(n.bindI18n?.indexOf(`languageChanging`)>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!r(t.isLanguageChangingTo,e))return!1}}),Vk=e=>typeof e==`string`,Hk=e=>typeof e==`object`&&!!e,Uk=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,Wk={"&":`&`,"&":`&`,"<":`<`,"<":`<`,">":`>`,">":`>`,"'":`'`,"'":`'`,""":`"`,""":`"`," ":` `," ":` `,"©":`©`,"©":`©`,"®":`®`,"®":`®`,"…":`…`,"…":`…`,"/":`/`,"/":`/`},Gk=e=>Wk[e],Kk=e=>e.replace(Uk,Gk);let qk={bindI18n:`languageChanged`,bindI18nStore:``,transEmptyNodeValue:``,transSupportBasicHtmlNodes:!0,transWrapTextNodes:``,transKeepBasicHtmlNodesFor:[`br`,`strong`,`i`,`p`],useSuspense:!0,unescape:Kk};const Jk=()=>qk,Yk=()=>void 0,Xk=o();var Zk=class{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(e=>{this.usedNamespaces[e]??=!0})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}};const Qk=(e,t)=>{let n=_();return f(()=>{n.current=t?n.current:e},[e,t]),n.current},$k=(e,t,n,r)=>e.getFixedT(t,n,r),eA=(e,t,n,r)=>u($k(e,t,n,r),[e,t,n,r]),tA=(e,t={})=>{let{i18n:n}=t,{i18n:r,defaultNS:i}=d(Xk)||{},a=n||r||Yk();if(a&&!a.reportNamespaces&&(a.reportNamespaces=new Zk),!a){Ik(`You will need to pass in an i18next instance by using initReactI18next`);let e=(e,t)=>Vk(t)?t:Hk(t)&&Vk(t.defaultValue)?t.defaultValue:Array.isArray(e)?e[e.length-1]:e,t=[e,{},!1];return t.t=e,t.i18n={},t.ready=!1,t}a.options.react?.wait&&Ik(`It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.`);let o={...Jk(),...a.options.react,...t},{useSuspense:s,keyPrefix:c}=o,l=e||i||a.options?.defaultNS;l=Vk(l)?[l]:l||[`translation`],a.reportNamespaces.addUsedNamespaces?.(l);let u=(a.isInitialized||a.initializedStoreOnce)&&l.every(e=>Bk(e,a,o)),p=eA(a,t.lng||null,o.nsMode===`fallback`?l:l[0],c),m=()=>p,h=()=>$k(a,t.lng||null,o.nsMode===`fallback`?l:l[0],c),[g,y]=v(m),b=l.join();t.lng&&(b=`${t.lng}${b}`);let x=Qk(b),S=_(!0);f(()=>{let{bindI18n:e,bindI18nStore:n}=o;S.current=!0,!u&&!s&&(t.lng?zk(a,t.lng,l,()=>{S.current&&y(h)}):Rk(a,l,()=>{S.current&&y(h)})),u&&x&&x!==b&&S.current&&y(h);let r=()=>{S.current&&y(h)};return e&&a?.on(e,r),n&&a?.store.on(n,r),()=>{S.current=!1,a&&e?.split(` `).forEach(e=>a.off(e,r)),n&&a&&n.split(` `).forEach(e=>a.store.off(e,r))}},[a,b]),f(()=>{S.current&&u&&y(m)},[a,c,u]);let C=[g,a,u];if(C.t=g,C.i18n=a,C.ready=u,u||!u&&!s)return C;throw new Promise(e=>{t.lng?zk(a,t.lng,l,()=>e()):Rk(a,l,()=>e())})};function nA(e){"@babel/helpers - typeof";return nA=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},nA(e)}function rA(e,t){if(nA(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(nA(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function iA(e){var t=rA(e,`string`);return nA(t)==`symbol`?t:t+``}function aA(e,t,n){return(t=iA(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function oA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function J(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?oA(Object(n),!0).forEach(function(t){aA(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oA(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function sA(e){if(Array.isArray(e))return e}function cA(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function lA(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function uA(e,t){if(e){if(typeof e==`string`)return lA(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?lA(e,t):void 0}}function dA(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
1139
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fA(e,t){return sA(e)||cA(e,t)||uA(e,t)||dA()}function pA(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function mA(e,t){if(e==null)return{};var n,r,i=pA(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var hA=[`defaultInputValue`,`defaultMenuIsOpen`,`defaultValue`,`inputValue`,`menuIsOpen`,`onChange`,`onInputChange`,`onMenuClose`,`onMenuOpen`,`value`];function gA(e){var t=e.defaultInputValue,n=t===void 0?``:t,r=e.defaultMenuIsOpen,i=r===void 0?!1:r,a=e.defaultValue,o=a===void 0?null:a,s=e.inputValue,c=e.menuIsOpen,l=e.onChange,d=e.onInputChange,f=e.onMenuClose,p=e.onMenuOpen,m=e.value,h=mA(e,hA),g=v(s===void 0?n:s),_=fA(g,2),y=_[0],b=_[1],x=v(c===void 0?i:c),S=fA(x,2),C=S[0],w=S[1],T=v(m===void 0?o:m),E=fA(T,2),D=E[0],O=E[1],k=u(function(e,t){typeof l==`function`&&l(e,t),O(e)},[l]),A=u(function(e,t){var n;typeof d==`function`&&(n=d(e,t)),b(n===void 0?e:n)},[d]),j=u(function(){typeof p==`function`&&p(),w(!0)},[p]),M=u(function(){typeof f==`function`&&f(),w(!1)},[f]),ee=s===void 0?y:s,te=c===void 0?C:c,N=m===void 0?D:m;return J(J({},h),{},{inputValue:ee,menuIsOpen:te,onChange:k,onInputChange:A,onMenuClose:M,onMenuOpen:j,value:N})}function Y(){return Y=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Y.apply(null,arguments)}function _A(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function vA(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,iA(r.key),r)}}function yA(e,t,n){return t&&vA(e.prototype,t),n&&vA(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function bA(e,t){return bA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},bA(e,t)}function xA(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,`prototype`,{writable:!1}),t&&bA(e,t)}function SA(e){return SA=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},SA(e)}function CA(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(CA=function(){return!!e})()}function wA(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function TA(e,t){if(t&&(nA(t)==`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return wA(e)}function EA(e){var t=CA();return function(){var n,r=SA(e);if(t){var i=SA(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return TA(this,n)}}function DA(e){if(Array.isArray(e))return lA(e)}function OA(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function kA(){throw TypeError(`Invalid attempt to spread non-iterable instance.
|
|
1140
1140
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function AA(e){return DA(e)||OA(e)||uA(e)||kA()}var jA=!1;function MA(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function NA(e){var t=document.createElement(`style`);return t.setAttribute(`data-emotion`,e.key),e.nonce!==void 0&&t.setAttribute(`nonce`,e.nonce),t.appendChild(document.createTextNode(``)),t.setAttribute(`data-s`,``),t}var PA=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=t.tags.length===0?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=e.speedy===void 0?!jA:e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(NA(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=MA(t);try{n.insertRule(e,n.cssRules.length)}catch{}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){var t;return(t=e.parentNode)?.removeChild(e)}),this.tags=[],this.ctr=0},e}(),FA=`-ms-`,IA=`-moz-`,X=`-webkit-`,LA=`comm`,RA=`rule`,zA=`decl`,BA=`@import`,VA=`@keyframes`,HA=`@layer`,UA=Math.abs,WA=String.fromCharCode,GA=Object.assign;function KA(e,t){return XA(e,0)^45?(((t<<2^XA(e,0))<<2^XA(e,1))<<2^XA(e,2))<<2^XA(e,3):0}function qA(e){return e.trim()}function JA(e,t){return(e=t.exec(e))?e[0]:e}function Z(e,t,n){return e.replace(t,n)}function YA(e,t){return e.indexOf(t)}function XA(e,t){return e.charCodeAt(t)|0}function ZA(e,t,n){return e.slice(t,n)}function QA(e){return e.length}function $A(e){return e.length}function ej(e,t){return t.push(e),e}function tj(e,t){return e.map(t).join(``)}var nj=1,rj=1,ij=0,aj=0,oj=0,sj=``;function cj(e,t,n,r,i,a,o){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:nj,column:rj,length:o,return:``}}function lj(e,t){return GA(cj(``,null,null,``,null,null,0),e,{length:-e.length},t)}function uj(){return oj}function dj(){return oj=aj>0?XA(sj,--aj):0,rj--,oj===10&&(rj=1,nj--),oj}function fj(){return oj=aj<ij?XA(sj,aj++):0,rj++,oj===10&&(rj=1,nj++),oj}function pj(){return XA(sj,aj)}function mj(){return aj}function hj(e,t){return ZA(sj,e,t)}function gj(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function _j(e){return nj=rj=1,ij=QA(sj=e),aj=0,[]}function vj(e){return sj=``,e}function yj(e){return qA(hj(aj-1,Sj(e===91?e+2:e===40?e+1:e)))}function bj(e){for(;(oj=pj())&&oj<33;)fj();return gj(e)>2||gj(oj)>3?``:` `}function xj(e,t){for(;--t&&fj()&&!(oj<48||oj>102||oj>57&&oj<65||oj>70&&oj<97););return hj(e,mj()+(t<6&&pj()==32&&fj()==32))}function Sj(e){for(;fj();)switch(oj){case e:return aj;case 34:case 39:e!==34&&e!==39&&Sj(oj);break;case 40:e===41&&Sj(e);break;case 92:fj();break}return aj}function Cj(e,t){for(;fj()&&e+oj!==57&&!(e+oj===84&&pj()===47););return`/*`+hj(t,aj-1)+`*`+WA(e===47?e:fj())}function wj(e){for(;!gj(pj());)fj();return hj(e,aj)}function Tj(e){return vj(Ej(``,null,null,null,[``],e=_j(e),0,[0],e))}function Ej(e,t,n,r,i,a,o,s,c){for(var l=0,u=0,d=o,f=0,p=0,m=0,h=1,g=1,_=1,v=0,y=``,b=i,x=a,S=r,C=y;g;)switch(m=v,v=fj()){case 40:if(m!=108&&XA(C,d-1)==58){YA(C+=Z(yj(v),`&`,`&\f`),`&\f`)!=-1&&(_=-1);break}case 34:case 39:case 91:C+=yj(v);break;case 9:case 10:case 13:case 32:C+=bj(m);break;case 92:C+=xj(mj()-1,7);continue;case 47:switch(pj()){case 42:case 47:ej(Oj(Cj(fj(),mj()),t,n),c);break;default:C+=`/`}break;case 123*h:s[l++]=QA(C)*_;case 125*h:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+u:_==-1&&(C=Z(C,/\f/g,``)),p>0&&QA(C)-d&&ej(p>32?kj(C+`;`,r,n,d-1):kj(Z(C,` `,``)+`;`,r,n,d-2),c);break;case 59:C+=`;`;default:if(ej(S=Dj(C,t,n,l,u,i,s,y,b=[],x=[],d),a),v===123)if(u===0)Ej(C,t,S,S,b,a,d,s,x);else switch(f===99&&XA(C,3)===110?100:f){case 100:case 108:case 109:case 115:Ej(e,S,S,r&&ej(Dj(e,S,S,0,0,i,s,y,i,b=[],d),x),i,x,d,s,r?b:x);break;default:Ej(C,S,S,S,[``],x,0,s,x)}}l=u=p=0,h=_=1,y=C=``,d=o;break;case 58:d=1+QA(C),p=m;default:if(h<1){if(v==123)--h;else if(v==125&&h++==0&&dj()==125)continue}switch(C+=WA(v),v*h){case 38:_=u>0?1:(C+=`\f`,-1);break;case 44:s[l++]=(QA(C)-1)*_,_=1;break;case 64:pj()===45&&(C+=yj(fj())),f=pj(),u=d=QA(y=C+=wj(mj())),v++;break;case 45:m===45&&QA(C)==2&&(h=0)}}return a}function Dj(e,t,n,r,i,a,o,s,c,l,u){for(var d=i-1,f=i===0?a:[``],p=$A(f),m=0,h=0,g=0;m<r;++m)for(var _=0,v=ZA(e,d+1,d=UA(h=o[m])),y=e;_<p;++_)(y=qA(h>0?f[_]+` `+v:Z(v,/&\f/g,f[_])))&&(c[g++]=y);return cj(e,t,n,i===0?RA:s,c,l,u)}function Oj(e,t,n){return cj(e,t,n,LA,WA(uj()),ZA(e,2,-2),0)}function kj(e,t,n,r){return cj(e,t,n,zA,ZA(e,0,r),ZA(e,r+1,-1),r)}function Aj(e,t){for(var n=``,r=$A(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||``;return n}function jj(e,t,n,r){switch(e.type){case HA:if(e.children.length)break;case BA:case zA:return e.return=e.return||e.value;case LA:return``;case VA:return e.return=e.value+`{`+Aj(e.children,r)+`}`;case RA:e.value=e.props.join(`,`)}return QA(n=Aj(e.children,r))?e.return=e.value+`{`+n+`}`:``}function Mj(e){var t=$A(e);return function(n,r,i,a){for(var o=``,s=0;s<t;s++)o+=e[s](n,r,i,a)||``;return o}}function Nj(e){return function(t){t.root||(t=t.return)&&e(t)}}var Pj=function(e,t,n){for(var r=0,i=0;r=i,i=pj(),r===38&&i===12&&(t[n]=1),!gj(i);)fj();return hj(e,aj)},Fj=function(e,t){var n=-1,r=44;do switch(gj(r)){case 0:r===38&&pj()===12&&(t[n]=1),e[n]+=Pj(aj-1,t,n);break;case 2:e[n]+=yj(r);break;case 4:if(r===44){e[++n]=pj()===58?`&\f`:``,t[n]=e[n].length;break}default:e[n]+=WA(r)}while(r=fj());return e},Ij=function(e,t){return vj(Fj(_j(e),t))},Lj=new WeakMap,Rj=function(e){if(!(e.type!==`rule`||!e.parent||e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;n.type!==`rule`;)if(n=n.parent,!n)return;if(!(e.props.length===1&&t.charCodeAt(0)!==58&&!Lj.get(n))&&!r){Lj.set(e,!0);for(var i=[],a=Ij(t,i),o=n.props,s=0,c=0;s<a.length;s++)for(var l=0;l<o.length;l++,c++)e.props[c]=i[s]?a[s].replace(/&\f/g,o[l]):o[l]+` `+a[s]}}},zj=function(e){if(e.type===`decl`){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return=``,e.value=``)}};function Bj(e,t){switch(KA(e,t)){case 5103:return X+`print-`+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return X+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return X+e+IA+e+FA+e+e;case 6828:case 4268:return X+e+FA+e+e;case 6165:return X+e+FA+`flex-`+e+e;case 5187:return X+e+Z(e,/(\w+).+(:[^]+)/,X+`box-$1$2`+FA+`flex-$1$2`)+e;case 5443:return X+e+FA+`flex-item-`+Z(e,/flex-|-self/,``)+e;case 4675:return X+e+FA+`flex-line-pack`+Z(e,/align-content|flex-|-self/,``)+e;case 5548:return X+e+FA+Z(e,`shrink`,`negative`)+e;case 5292:return X+e+FA+Z(e,`basis`,`preferred-size`)+e;case 6060:return X+`box-`+Z(e,`-grow`,``)+X+e+FA+Z(e,`grow`,`positive`)+e;case 4554:return X+Z(e,/([^-])(transform)/g,`$1`+X+`$2`)+e;case 6187:return Z(Z(Z(e,/(zoom-|grab)/,X+`$1`),/(image-set)/,X+`$1`),e,``)+e;case 5495:case 3959:return Z(e,/(image-set\([^]*)/,X+"$1$`$1");case 4968:return Z(Z(e,/(.+:)(flex-)?(.*)/,X+`box-pack:$3`+FA+`flex-pack:$3`),/s.+-b[^;]+/,`justify`)+X+e+e;case 4095:case 3583:case 4068:case 2532:return Z(e,/(.+)-inline(.+)/,X+`$1$2`)+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(QA(e)-1-t>6)switch(XA(e,t+1)){case 109:if(XA(e,t+4)!==45)break;case 102:return Z(e,/(.+:)(.+)-([^]+)/,`$1`+X+`$2-$3$1`+IA+(XA(e,t+3)==108?`$3`:`$2-$3`))+e;case 115:return~YA(e,`stretch`)?Bj(Z(e,`stretch`,`fill-available`),t)+e:e}break;case 4949:if(XA(e,t+1)!==115)break;case 6444:switch(XA(e,QA(e)-3-(~YA(e,`!important`)&&10))){case 107:return Z(e,`:`,`:`+X)+e;case 101:return Z(e,/(.+:)([^;!]+)(;|!.+)?/,`$1`+X+(XA(e,14)===45?`inline-`:``)+`box$3$1`+X+`$2$3$1`+FA+`$2box$3`)+e}break;case 5936:switch(XA(e,t+11)){case 114:return X+e+FA+Z(e,/[svh]\w+-[tblr]{2}/,`tb`)+e;case 108:return X+e+FA+Z(e,/[svh]\w+-[tblr]{2}/,`tb-rl`)+e;case 45:return X+e+FA+Z(e,/[svh]\w+-[tblr]{2}/,`lr`)+e}return X+e+FA+e+e}return e}var Vj=function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case zA:e.return=Bj(e.value,e.length);break;case VA:return Aj([lj(e,{value:Z(e.value,`@`,`@`+X)})],r);case RA:if(e.length)return tj(e.props,function(t){switch(JA(t,/(::plac\w+|:read-\w+)/)){case`:read-only`:case`:read-write`:return Aj([lj(e,{props:[Z(t,/:(read-\w+)/,`:`+IA+`$1`)]})],r);case`::placeholder`:return Aj([lj(e,{props:[Z(t,/:(plac\w+)/,`:`+X+`input-$1`)]}),lj(e,{props:[Z(t,/:(plac\w+)/,`:`+IA+`$1`)]}),lj(e,{props:[Z(t,/:(plac\w+)/,FA+`input-$1`)]})],r)}return``})}},Hj=[Vj],Uj=function(e){var t=e.key;if(t===`css`){var n=document.querySelectorAll(`style[data-emotion]:not([data-s])`);Array.prototype.forEach.call(n,function(e){var t=e.getAttribute(`data-emotion`);t.indexOf(` `)!==-1&&(document.head.appendChild(e),e.setAttribute(`data-s`,``))})}var r=e.stylisPlugins||Hj,i={},a,o=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll(`style[data-emotion^="`+t+` "]`),function(e){for(var t=e.getAttribute(`data-emotion`).split(` `),n=1;n<t.length;n++)i[t[n]]=!0;o.push(e)});var s,c=[Rj,zj],l,u=[jj,Nj(function(e){l.insert(e)})],d=Mj(c.concat(r,u)),f=function(e){return Aj(Tj(e),d)};s=function(e,t,n,r){l=n,f(e?e+`{`+t.styles+`}`:t.styles),r&&(p.inserted[t.name]=!0)};var p={key:t,sheet:new PA({key:t,container:a,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:s};return p.sheet.hydrate(o),p},Wj=M((exports=>{var t=typeof Symbol==`function`&&Symbol.for,n=t?Symbol.for(`react.element`):60103,r=t?Symbol.for(`react.portal`):60106,i=t?Symbol.for(`react.fragment`):60107,a=t?Symbol.for(`react.strict_mode`):60108,o=t?Symbol.for(`react.profiler`):60114,s=t?Symbol.for(`react.provider`):60109,c=t?Symbol.for(`react.context`):60110,l=t?Symbol.for(`react.async_mode`):60111,u=t?Symbol.for(`react.concurrent_mode`):60111,d=t?Symbol.for(`react.forward_ref`):60112,f=t?Symbol.for(`react.suspense`):60113,p=t?Symbol.for(`react.suspense_list`):60120,m=t?Symbol.for(`react.memo`):60115,h=t?Symbol.for(`react.lazy`):60116,g=t?Symbol.for(`react.block`):60121,_=t?Symbol.for(`react.fundamental`):60117,v=t?Symbol.for(`react.responder`):60118,y=t?Symbol.for(`react.scope`):60119;function b(e){if(typeof e==`object`&&e){var t=e.$$typeof;switch(t){case n:switch(e=e.type,e){case l:case u:case i:case o:case a:case f:return e;default:switch(e&&=e.$$typeof,e){case c:case d:case h:case m:case s:return e;default:return t}}case r:return t}}}function x(e){return b(e)===u}exports.AsyncMode=l,exports.ConcurrentMode=u,exports.ContextConsumer=c,exports.ContextProvider=s,exports.Element=n,exports.ForwardRef=d,exports.Fragment=i,exports.Lazy=h,exports.Memo=m,exports.Portal=r,exports.Profiler=o,exports.StrictMode=a,exports.Suspense=f,exports.isAsyncMode=function(e){return x(e)||b(e)===l},exports.isConcurrentMode=x,exports.isContextConsumer=function(e){return b(e)===c},exports.isContextProvider=function(e){return b(e)===s},exports.isElement=function(e){return typeof e==`object`&&!!e&&e.$$typeof===n},exports.isForwardRef=function(e){return b(e)===d},exports.isFragment=function(e){return b(e)===i},exports.isLazy=function(e){return b(e)===h},exports.isMemo=function(e){return b(e)===m},exports.isPortal=function(e){return b(e)===r},exports.isProfiler=function(e){return b(e)===o},exports.isStrictMode=function(e){return b(e)===a},exports.isSuspense=function(e){return b(e)===f},exports.isValidElementType=function(e){return typeof e==`string`||typeof e==`function`||e===i||e===u||e===o||e===a||e===f||e===p||typeof e==`object`&&!!e&&(e.$$typeof===h||e.$$typeof===m||e.$$typeof===s||e.$$typeof===c||e.$$typeof===d||e.$$typeof===_||e.$$typeof===v||e.$$typeof===y||e.$$typeof===g)},exports.typeOf=b})),Gj=M(((exports,t)=>{t.exports=Wj()})),Kj=M(((exports,t)=>{var n=Gj(),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};s[n.ForwardRef]=a,s[n.Memo]=o;function c(e){return n.isMemo(e)?o:s[e.$$typeof]||r}var l=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,m=Object.prototype;function h(e,t,n){if(typeof t!=`string`){if(m){var r=p(t);r&&r!==m&&h(e,r,n)}var a=u(t);d&&(a=a.concat(d(t)));for(var o=c(e),s=c(t),g=0;g<a.length;++g){var _=a[g];if(!i[_]&&!(n&&n[_])&&!(s&&s[_])&&!(o&&o[_])){var v=f(t,_);try{l(e,_,v)}catch{}}}}return e}t.exports=h})),qj=!0;function Jj(e,t,n){var r=``;return n.split(` `).forEach(function(n){e[n]===void 0?n&&(r+=n+` `):t.push(e[n]+`;`)}),r}var Yj=function(e,t,n){var r=e.key+`-`+t.name;(n===!1||qj===!1)&&e.registered[r]===void 0&&(e.registered[r]=t.styles)},Xj=function(e,t,n){Yj(e,t,n);var r=e.key+`-`+t.name;if(e.inserted[t.name]===void 0){var i=t;do e.insert(t===i?`.`+r:``,i,e.sheet,!0),i=i.next;while(i!==void 0)}};function Zj(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Qj={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};nC();var $j=!1,eM=/[A-Z]|^ms/g,tM=/_EMO_([^_]+?)_([^]*?)_EMO_/g,nM=function(e){return e.charCodeAt(1)===45},rM=function(e){return e!=null&&typeof e!=`boolean`},iM=tC(function(e){return nM(e)?e:e.replace(eM,`-$&`).toLowerCase()}),aM=function(e,t){switch(e){case`animation`:case`animationName`:if(typeof t==`string`)return t.replace(tM,function(e,t,n){return uM={name:t,styles:n,next:uM},t})}return Qj[e]!==1&&!nM(e)&&typeof t==`number`&&t!==0?t+`px`:t},oM=`Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.`;function sM(e,t,n){if(n==null)return``;var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case`boolean`:return``;case`object`:var i=n;if(i.anim===1)return uM={name:i.name,styles:i.styles,next:uM},i.name;var a=n;if(a.styles!==void 0){var o=a.next;if(o!==void 0)for(;o!==void 0;)uM={name:o.name,styles:o.styles,next:uM},o=o.next;var s=a.styles+`;`;return s}return cM(e,t,n);case`function`:if(e!==void 0){var c=uM,l=n(e);return uM=c,sM(e,t,l)}break}var u=n;if(t==null)return u;var d=t[u];return d===void 0?u:d}function cM(e,t,n){var r=``;if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=sM(e,t,n[i])+`;`;else for(var a in n){var o=n[a];if(typeof o!=`object`){var s=o;t!=null&&t[s]!==void 0?r+=a+`{`+t[s]+`}`:rM(s)&&(r+=iM(a)+`:`+aM(a,s)+`;`)}else{if(a===`NO_COMPONENT_SELECTOR`&&$j)throw Error(oM);if(Array.isArray(o)&&typeof o[0]==`string`&&(t==null||t[o[0]]===void 0))for(var c=0;c<o.length;c++)rM(o[c])&&(r+=iM(a)+`:`+aM(a,o[c])+`;`);else{var l=sM(e,t,o);switch(a){case`animation`:case`animationName`:r+=iM(a)+`:`+l+`;`;break;default:r+=a+`{`+l+`}`}}}}return r}var lM=/label:\s*([^\s;{]+)\s*(;|$)/g,uM;function dM(e,t,n){if(e.length===1&&typeof e[0]==`object`&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,i=``;uM=void 0;var a=e[0];if(a==null||a.raw===void 0)r=!1,i+=sM(n,t,a);else{var o=a;i+=o[0]}for(var s=1;s<e.length;s++)if(i+=sM(n,t,e[s]),r){var c=a;i+=c[s]}lM.lastIndex=0;for(var l=``,u;(u=lM.exec(i))!==null;)l+=`-`+u[1];var d=Zj(i)+l;return{name:d,styles:i,next:uM}}var fM=function(e){return e()},pM=e.useInsertionEffect?e.useInsertionEffect:!1,mM=pM||fM;pM||e.useLayoutEffect;var hM=!1,gM=e.createContext(typeof HTMLElement<`u`?Uj({key:`css`}):null);gM.Provider;var _M=function(e){return c(function(t,n){var r=d(gM);return e(t,r,n)})},vM=e.createContext({}),yM={}.hasOwnProperty,bM=`__EMOTION_TYPE_PLEASE_DO_NOT_USE__`,xM=function(e,t){var n={};for(var r in t)yM.call(t,r)&&(n[r]=t[r]);return n[bM]=e,n},SM=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Yj(t,n,r),mM(function(){return Xj(t,n,r)}),null},CM=_M(function(t,n,r){var i=t.css;typeof i==`string`&&n.registered[i]!==void 0&&(i=n.registered[i]);var a=t[bM],o=[i],s=``;typeof t.className==`string`?s=Jj(n.registered,o,t.className):t.className!=null&&(s=t.className+` `);var c=dM(o,void 0,e.useContext(vM));s+=n.key+`-`+c.name;var l={};for(var u in t)yM.call(t,u)&&u!==`css`&&u!==bM&&!hM&&(l[u]=t[u]);return l.className=s,r&&(l.ref=r),e.createElement(e.Fragment,null,e.createElement(SM,{cache:n,serialized:c,isStringTag:typeof a==`string`}),e.createElement(a,l))}),wM=CM;Kj();var Q=function(t,n){var r=arguments;if(n==null||!yM.call(n,`css`))return e.createElement.apply(void 0,r);var i=r.length,a=Array(i);a[0]=wM,a[1]=xM(t,n);for(var o=2;o<i;o++)a[o]=r[o];return e.createElement.apply(null,a)};(function(e){var t;(function(e){})(t||=e.JSX||={})})(Q||={});function TM(){var e=[...arguments];return dM(e)}function EM(){var e=TM.apply(void 0,arguments),t=`animation-`+e.name;return{name:t,styles:`@keyframes `+t+`{`+e.styles+`}`,anim:1,toString:function(){return`_EMO_`+this.name+`_`+this.styles+`_EMO_`}}}function DM(e,t){return t||=e.slice(0),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function OM(e){let t=Td(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=ld(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=gu(n)!==a||gu(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function kM(e){return cd(e)?e:e.contextElement}function AM(e){let t=kM(e);if(!ld(t))return vu(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=OM(t),o=(a?gu(n.width):n.width)/r,s=(a?gu(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}const jM=vu(0);function MM(e){let t=ad(e);return!Sd()||!t.visualViewport?jM:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function NM(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ad(e)?!1:t}function PM(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=kM(e),o=vu(1);t&&(r?cd(r)&&(o=AM(r)):o=AM(e));let s=NM(a,n,r)?MM(a):vu(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a){let e=ad(a),t=r&&cd(r)?ad(r):r,n=e,i=n.frameElement;for(;i&&r&&t!==n;){let e=AM(i),t=i.getBoundingClientRect(),r=Td(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=ad(i),i=n.frameElement}}return Hu({width:u,height:d,x:c,y:l})}const FM=[`:popover-open`,`:modal`];function IM(e){return FM.some(t=>{try{return e.matches(t)}catch{return!1}})}function LM(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=od(r),s=t?IM(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=vu(1),u=vu(0),d=ld(r);if((d||!d&&!a)&&((id(r)!==`body`||fd(o))&&(c=Ed(r)),ld(r))){let e=PM(r);l=AM(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x,y:n.y*l.y-c.scrollTop*l.y+u.y}}function RM(e){return Array.from(e.getClientRects())}function zM(e){return PM(od(e)).left+Ed(e).scrollLeft}function BM(e){let t=od(e),n=Ed(e),r=e.ownerDocument.body,i=hu(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=hu(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+zM(e),s=-n.scrollTop;return Td(r).direction===`rtl`&&(o+=hu(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}function VM(e,t){let n=ad(e),r=od(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=Sd();(!e||e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}return{width:a,height:o,x:s,y:c}}function HM(e,t){let n=PM(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=ld(e)?AM(e):vu(1),o=e.clientWidth*a.x,s=e.clientHeight*a.y,c=i*a.x,l=r*a.y;return{width:o,height:s,x:c,y:l}}function UM(e,t,n){let r;if(t===`viewport`)r=VM(e,n);else if(t===`document`)r=BM(od(e));else if(cd(t))r=HM(t,n);else{let n=MM(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return Hu(r)}function WM(e,t){let n=Dd(e);return n===t||!cd(n)||wd(n)?!1:Td(n).position===`fixed`||WM(n,t)}function GM(e,t){let n=t.get(e);if(n)return n;let r=kd(e,[],!1).filter(e=>cd(e)&&id(e)!==`body`),i=null,a=Td(e).position===`fixed`,o=a?Dd(e):e;for(;cd(o)&&!wd(o);){let t=Td(o),n=bd(o);!n&&t.position===`fixed`&&(i=null);let s=a?!n&&!i:!n&&t.position===`static`&&!!i&&[`absolute`,`fixed`].includes(i.position)||fd(o)&&!n&&WM(e,o);s?r=r.filter(e=>e!==o):i=t,o=Dd(o)}return t.set(e,r),r}function KM(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=n===`clippingAncestors`?GM(t,this._c):[].concat(n),o=[...a,r],s=o[0],c=o.reduce((e,n)=>{let r=UM(t,n,i);return e.top=hu(r.top,e.top),e.right=mu(r.right,e.right),e.bottom=mu(r.bottom,e.bottom),e.left=hu(r.left,e.left),e},UM(t,s,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function qM(e){let{width:t,height:n}=OM(e);return{width:t,height:n}}function JM(e,t,n){let r=ld(t),i=od(t),a=n===`fixed`,o=PM(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=vu(0);if(r||!r&&!a)if((id(t)!==`body`||fd(i))&&(s=Ed(t)),r){let e=PM(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else i&&(c.x=zM(i));let l=o.left+s.scrollLeft-c.x,u=o.top+s.scrollTop-c.y;return{x:l,y:u,width:o.width,height:o.height}}function YM(e,t){return!ld(e)||Td(e).position===`fixed`?null:t?t(e):e.offsetParent}function XM(e,t){let n=ad(e);if(!ld(e)||IM(e))return n;let r=YM(e,t);for(;r&&md(r)&&Td(r).position===`static`;)r=YM(r,t);return r&&(id(r)===`html`||id(r)===`body`&&Td(r).position===`static`&&!bd(r))?n:r||xd(e)||n}const ZM=async function(e){let t=this.getOffsetParent||XM,n=this.getDimensions;return{reference:JM(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,...await n(e.floating)}}};function QM(e){return Td(e).direction===`rtl`}const $M={convertOffsetParentRelativeRectToViewportRelativeRect:LM,getDocumentElement:od,getClippingRect:KM,getOffsetParent:XM,getElementRects:ZM,getClientRects:RM,getDimensions:qM,getScale:AM,isElement:cd,isRTL:QM};function eN(e,t){let n=null,r,i=od(e);function a(){var e;clearTimeout(r),(e=n)==null||e.disconnect(),n=null}function o(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),a();let{left:l,top:u,width:d,height:f}=e.getBoundingClientRect();if(s||t(),!d||!f)return;let p=_u(u),m=_u(i.clientWidth-(l+d)),h=_u(i.clientHeight-(u+f)),g=_u(l),_=-p+`px `+-m+`px `+-h+`px `+-g+`px`,v={rootMargin:_,threshold:hu(0,mu(1,c))||1},y=!0;function b(e){let t=e[0].intersectionRatio;if(t!==c){if(!y)return o();t?o(!1,t):r=setTimeout(()=>{o(!1,1e-7)},100)}y=!1}try{n=new IntersectionObserver(b,{...v,root:i.ownerDocument})}catch{n=new IntersectionObserver(b,v)}n.observe(e)}return o(!0),a}function tN(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=kM(e),u=i||a?[...l?kd(l):[],...kd(t)]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n,{passive:!0}),a&&e.addEventListener(`resize`,n)});let d=l&&s?eN(l,n):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),p.observe(t));let m,h=c?PM(e):null;c&&g();function g(){let t=PM(e);h&&(t.x!==h.x||t.y!==h.y||t.width!==h.width||t.height!==h.height)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}const nN=ed,rN=qu,iN=Ku,aN=(e,t,n)=>{let r=new Map,i={platform:$M,...n},a={...i.platform,_c:r};return Wu(e,t,{...i,platform:a})};var oN=h,sN=[`className`,`clearValue`,`cx`,`getStyles`,`getClassNames`,`getValue`,`hasValue`,`isMulti`,`isRtl`,`options`,`selectOption`,`selectProps`,`setValue`,`theme`],cN=function(){};function lN(e,t){return t?t[0]===`-`?e+t:e+`__`+t:e}function uN(e,t){var n=[...arguments].slice(2),r=[].concat(n);if(t&&e)for(var i in t)t.hasOwnProperty(i)&&t[i]&&r.push(`${lN(e,i)}`);return r.filter(function(e){return e}).map(function(e){return String(e).trim()}).join(` `)}var dN=function(e){return AN(e)?e.filter(Boolean):nA(e)===`object`&&e!==null?[e]:[]},fN=function(e){e.className,e.clearValue,e.cx,e.getStyles,e.getClassNames,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme;var t=mA(e,sN);return J({},t)},pN=function(e,t,n){var r=e.cx,i=e.getStyles,a=e.getClassNames,o=e.className;return{css:i(t,e),className:r(n??{},a(t,e),o)}};function mN(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function hN(e){return mN(e)?window.innerHeight:e.clientHeight}function gN(e){return mN(e)?window.pageYOffset:e.scrollTop}function _N(e,t){if(mN(e)){window.scrollTo(0,t);return}e.scrollTop=t}function vN(e){var t=getComputedStyle(e),n=t.position===`absolute`,r=/(auto|scroll)/;if(t.position===`fixed`)return document.documentElement;for(var i=e;i=i.parentElement;)if(t=getComputedStyle(i),!(n&&t.position===`static`)&&r.test(t.overflow+t.overflowY+t.overflowX))return i;return document.documentElement}function yN(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function bN(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:cN,i=gN(e),a=t-i,o=10,s=0;function c(){s+=o;var t=yN(s,i,a,n);_N(e,t),s<n?window.requestAnimationFrame(c):r(e)}c()}function xN(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=t.offsetHeight/3;r.bottom+i>n.bottom?_N(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+i,e.scrollHeight)):r.top-i<n.top&&_N(e,Math.max(t.offsetTop-i,0))}function SN(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}function CN(){try{return document.createEvent(`TouchEvent`),!0}catch{return!1}}function wN(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var TN=!1,EN={get passive(){return TN=!0}},DN=typeof window<`u`?window:{};DN.addEventListener&&DN.removeEventListener&&(DN.addEventListener(`p`,cN,EN),DN.removeEventListener(`p`,cN,!1));var ON=TN;function kN(e){return e!=null}function AN(e){return Array.isArray(e)}function jN(e,t,n){return e?t:n}function MN(e){return e}function NN(e){return e}var PN=function(e){var t=[...arguments].slice(1),n=Object.entries(e).filter(function(e){var n=fA(e,1),r=n[0];return!t.includes(r)});return n.reduce(function(e,t){var n=fA(t,2),r=n[0],i=n[1];return e[r]=i,e},{})},FN=[`children`,`innerProps`],IN=[`children`,`innerProps`];function LN(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,i=e.placement,a=e.shouldScroll,o=e.isFixedPosition,s=e.controlHeight,c=vN(n),l={placement:`bottom`,maxHeight:t};if(!n||!n.offsetParent)return l;var u=c.getBoundingClientRect(),d=u.height,f=n.getBoundingClientRect(),p=f.bottom,m=f.height,h=f.top,g=n.offsetParent.getBoundingClientRect(),_=g.top,v=o?window.innerHeight:hN(c),y=gN(c),b=parseInt(getComputedStyle(n).marginBottom,10),x=parseInt(getComputedStyle(n).marginTop,10),S=_-x,C=v-h,w=S+y,T=d-y-h,E=p-v+y+b,D=y+h-x,O=160;switch(i){case`auto`:case`bottom`:if(C>=m)return{placement:`bottom`,maxHeight:t};if(T>=m&&!o)return a&&bN(c,E,O),{placement:`bottom`,maxHeight:t};if(!o&&T>=r||o&&C>=r){a&&bN(c,E,O);var k=o?C-b:T-b;return{placement:`bottom`,maxHeight:k}}if(i===`auto`||o){var A=t,j=o?S:w;return j>=r&&(A=Math.min(j-b-s,t)),{placement:`top`,maxHeight:A}}if(i===`bottom`)return a&&_N(c,E),{placement:`bottom`,maxHeight:t};break;case`top`:if(S>=m)return{placement:`top`,maxHeight:t};if(w>=m&&!o)return a&&bN(c,D,O),{placement:`top`,maxHeight:t};if(!o&&w>=r||o&&S>=r){var M=t;return(!o&&w>=r||o&&S>=r)&&(M=o?S-x:w-x),a&&bN(c,D,O),{placement:`top`,maxHeight:M}}return{placement:`bottom`,maxHeight:t};default:throw Error(`Invalid placement provided "${i}".`)}return l}function RN(e){var t={bottom:`top`,top:`bottom`};return e?t[e]:`bottom`}var zN=function(e){return e===`auto`?`bottom`:e},BN=function(e,t){var n,r=e.placement,i=e.theme,a=i.borderRadius,o=i.spacing,s=i.colors;return J((n={label:`menu`},aA(n,RN(r),`100%`),aA(n,`position`,`absolute`),aA(n,`width`,`100%`),aA(n,`zIndex`,1),n),t?{}:{backgroundColor:s.neutral0,borderRadius:a,boxShadow:`0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)`,marginBottom:o.menuGutter,marginTop:o.menuGutter})},VN=o(null),HN=function(e){var t=e.children,n=e.minMenuHeight,r=e.maxMenuHeight,i=e.menuPlacement,a=e.menuPosition,o=e.menuShouldScrollIntoView,s=e.theme,c=d(VN)||{},l=c.setPortalPlacement,u=_(null),f=v(r),p=fA(f,2),m=p[0],h=p[1],g=v(null),y=fA(g,2),b=y[0],x=y[1],S=s.spacing.controlHeight;return oN(function(){var e=u.current;if(e){var t=a===`fixed`,s=o&&!t,c=LN({maxHeight:r,menuEl:e,minHeight:n,placement:i,shouldScroll:s,isFixedPosition:t,controlHeight:S});h(c.maxHeight),x(c.placement),l?.(c.placement)}},[r,i,a,o,n,l,S]),t({ref:u,placerProps:J(J({},e),{},{placement:b||zN(i),maxHeight:m})})},UN=function(e){var t=e.children,n=e.innerRef,r=e.innerProps;return Q(`div`,Y({},pN(e,`menu`,{menu:!0}),{ref:n},r),t)},WN=UN,GN=function(e,t){var n=e.maxHeight,r=e.theme.spacing.baseUnit;return J({maxHeight:n,overflowY:`auto`,position:`relative`,WebkitOverflowScrolling:`touch`},t?{}:{paddingBottom:r,paddingTop:r})},KN=function(e){var t=e.children,n=e.innerProps,r=e.innerRef,i=e.isMulti;return Q(`div`,Y({},pN(e,`menuList`,{"menu-list":!0,"menu-list--is-multi":i}),{ref:r},n),t)},qN=function(e,t){var n=e.theme,r=n.spacing.baseUnit,i=n.colors;return J({textAlign:`center`},t?{}:{color:i.neutral40,padding:`${r*2}px ${r*3}px`})},JN=qN,YN=qN,XN=function(e){var t=e.children,n=t===void 0?`No options`:t,r=e.innerProps,i=mA(e,FN);return Q(`div`,Y({},pN(J(J({},i),{},{children:n,innerProps:r}),`noOptionsMessage`,{"menu-notice":!0,"menu-notice--no-options":!0}),r),n)},ZN=function(e){var t=e.children,n=t===void 0?`Loading...`:t,r=e.innerProps,i=mA(e,IN);return Q(`div`,Y({},pN(J(J({},i),{},{children:n,innerProps:r}),`loadingMessage`,{"menu-notice":!0,"menu-notice--loading":!0}),r),n)},QN=function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},$N=function(e){var t=e.appendTo,n=e.children,r=e.controlElement,i=e.innerProps,a=e.menuPlacement,o=e.menuPosition,s=_(null),c=_(null),l=v(zN(a)),d=fA(l,2),f=d[0],p=d[1],m=g(function(){return{setPortalPlacement:p}},[]),h=v(null),y=fA(h,2),b=y[0],x=y[1],S=u(function(){if(r){var e=SN(r),t=o===`fixed`?0:window.pageYOffset,n=e[f]+t;(n!==b?.offset||e.left!==b?.rect.left||e.width!==b?.rect.width)&&x({offset:n,rect:e})}},[r,o,f,b?.offset,b?.rect.left,b?.rect.width]);oN(function(){S()},[S]);var C=u(function(){typeof c.current==`function`&&(c.current(),c.current=null),r&&s.current&&(c.current=tN(r,s.current,S,{elementResize:`ResizeObserver`in window}))},[r,S]);oN(function(){C()},[C]);var T=u(function(e){s.current=e,C()},[C]);if(!t&&o!==`fixed`||!b)return null;var E=Q(`div`,Y({ref:T},pN(J(J({},e),{},{offset:b.offset,position:o,rect:b.rect}),`menuPortal`,{"menu-portal":!0}),i),n);return Q(VN.Provider,{value:m},t?w(E,t):E)},eP=function(e){var t=e.isDisabled,n=e.isRtl;return{label:`container`,direction:n?`rtl`:void 0,pointerEvents:t?`none`:void 0,position:`relative`}},tP=function(e){var t=e.children,n=e.innerProps,r=e.isDisabled,i=e.isRtl;return Q(`div`,Y({},pN(e,`container`,{"--is-disabled":r,"--is-rtl":i}),n),t)},nP=function(e,t){var n=e.theme.spacing,r=e.isMulti,i=e.hasValue,a=e.selectProps.controlShouldRenderValue;return J({alignItems:`center`,display:r&&i&&a?`flex`:`grid`,flex:1,flexWrap:`wrap`,WebkitOverflowScrolling:`touch`,position:`relative`,overflow:`hidden`},t?{}:{padding:`${n.baseUnit/2}px ${n.baseUnit*2}px`})},rP=function(e){var t=e.children,n=e.innerProps,r=e.isMulti,i=e.hasValue;return Q(`div`,Y({},pN(e,`valueContainer`,{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":i}),n),t)},iP=function(){return{alignItems:`center`,alignSelf:`stretch`,display:`flex`,flexShrink:0}},aP=function(e){var t=e.children,n=e.innerProps;return Q(`div`,Y({},pN(e,`indicatorsContainer`,{indicators:!0}),n),t)},oP,sP=[`size`],cP=[`innerProps`,`isRtl`,`size`],lP={name:`8mmkcg`,styles:`display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0`},uP=function(e){var t=e.size,n=mA(e,sP);return Q(`svg`,Y({height:t,width:t,viewBox:`0 0 20 20`,"aria-hidden":`true`,focusable:`false`,css:lP},n))},dP=function(e){return Q(uP,Y({size:20},e),Q(`path`,{d:`M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z`}))},fP=function(e){return Q(uP,Y({size:20},e),Q(`path`,{d:`M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z`}))},pP=function(e,t){var n=e.isFocused,r=e.theme,i=r.spacing.baseUnit,a=r.colors;return J({label:`indicatorContainer`,display:`flex`,transition:`color 150ms`},t?{}:{color:n?a.neutral60:a.neutral20,padding:i*2,":hover":{color:n?a.neutral80:a.neutral40}})},mP=pP,hP=function(e){var t=e.children,n=e.innerProps;return Q(`div`,Y({},pN(e,`dropdownIndicator`,{indicator:!0,"dropdown-indicator":!0}),n),t||Q(fP,null))},gP=pP,_P=function(e){var t=e.children,n=e.innerProps;return Q(`div`,Y({},pN(e,`clearIndicator`,{indicator:!0,"clear-indicator":!0}),n),t||Q(dP,null))},vP=function(e,t){var n=e.isDisabled,r=e.theme,i=r.spacing.baseUnit,a=r.colors;return J({label:`indicatorSeparator`,alignSelf:`stretch`,width:1},t?{}:{backgroundColor:n?a.neutral10:a.neutral20,marginBottom:i*2,marginTop:i*2})},yP=function(e){var t=e.innerProps;return Q(`span`,Y({},t,pN(e,`indicatorSeparator`,{"indicator-separator":!0})))},bP=EM(oP||=DM([`
|
|
1141
1141
|
0%, 80%, 100% { opacity: 0; }
|
|
1142
1142
|
40% { opacity: 1; }
|
|
1143
|
-
`])),xP=function(e,t){var n=e.isFocused,r=e.size,i=e.theme,a=i.colors,o=i.spacing.baseUnit;return J({label:`loadingIndicator`,display:`flex`,transition:`color 150ms`,alignSelf:`center`,fontSize:r,lineHeight:1,marginRight:r,textAlign:`center`,verticalAlign:`middle`},t?{}:{color:n?a.neutral60:a.neutral20,padding:o*2})},SP=function(e){var t=e.delay,n=e.offset;return Q(`span`,{css:TM({animation:`${bP} 1s ease-in-out ${t}ms infinite;`,backgroundColor:`currentColor`,borderRadius:`1em`,display:`inline-block`,marginLeft:n?`1em`:void 0,height:`1em`,verticalAlign:`top`,width:`1em`},``,``)})},CP=function(e){var t=e.innerProps,n=e.isRtl,r=e.size,i=r===void 0?4:r,a=mA(e,cP);return Q(`div`,Y({},pN(J(J({},a),{},{innerProps:t,isRtl:n,size:i}),`loadingIndicator`,{indicator:!0,"loading-indicator":!0}),t),Q(SP,{delay:0,offset:n}),Q(SP,{delay:160,offset:!0}),Q(SP,{delay:320,offset:!n}))},wP=function(e,t){var n=e.isDisabled,r=e.isFocused,i=e.theme,a=i.colors,o=i.borderRadius,s=i.spacing;return J({label:`control`,alignItems:`center`,cursor:`default`,display:`flex`,flexWrap:`wrap`,justifyContent:`space-between`,minHeight:s.controlHeight,outline:`0 !important`,position:`relative`,transition:`all 100ms`},t?{}:{backgroundColor:n?a.neutral5:a.neutral0,borderColor:n?a.neutral10:r?a.primary:a.neutral20,borderRadius:o,borderStyle:`solid`,borderWidth:1,boxShadow:r?`0 0 0 1px ${a.primary}`:void 0,"&:hover":{borderColor:r?a.primary:a.neutral30}})},TP=function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,i=e.innerRef,a=e.innerProps,o=e.menuIsOpen;return Q(`div`,Y({ref:i},pN(e,`control`,{control:!0,"control--is-disabled":n,"control--is-focused":r,"control--menu-is-open":o}),a,{"aria-disabled":n||void 0}),t)},EP=TP,DP=[`data`],OP=function(e,t){var n=e.theme.spacing;return t?{}:{paddingBottom:n.baseUnit*2,paddingTop:n.baseUnit*2}},kP=function(e){var t=e.children,n=e.cx,r=e.getStyles,i=e.getClassNames,a=e.Heading,o=e.headingProps,s=e.innerProps,c=e.label,l=e.theme,u=e.selectProps;return Q(`div`,Y({},pN(e,`group`,{group:!0}),s),Q(a,Y({},o,{selectProps:u,theme:l,getStyles:r,getClassNames:i,cx:n}),c),Q(`div`,null,t))},AP=function(e,t){var n=e.theme,r=n.colors,i=n.spacing;return J({label:`group`,cursor:`default`,display:`block`},t?{}:{color:r.neutral40,fontSize:`75%`,fontWeight:500,marginBottom:`0.25em`,paddingLeft:i.baseUnit*3,paddingRight:i.baseUnit*3,textTransform:`uppercase`})},jP=function(e){var t=fN(e);t.data;var n=mA(t,DP);return Q(`div`,Y({},pN(e,`groupHeading`,{"group-heading":!0}),n))},MP=kP,NP=[`innerRef`,`isDisabled`,`isHidden`,`inputClassName`],PP=function(e,t){var n=e.isDisabled,r=e.value,i=e.theme,a=i.spacing,o=i.colors;return J(J({visibility:n?`hidden`:`visible`,transform:r?`translateZ(0)`:``},IP),t?{}:{margin:a.baseUnit/2,paddingBottom:a.baseUnit/2,paddingTop:a.baseUnit/2,color:o.neutral80})},FP={gridArea:`1 / 2`,font:`inherit`,minWidth:`2px`,border:0,margin:0,outline:0,padding:0},IP={flex:`1 1 auto`,display:`inline-grid`,gridArea:`1 / 1 / 2 / 3`,gridTemplateColumns:`0 min-content`,"&:after":J({content:`attr(data-value) " "`,visibility:`hidden`,whiteSpace:`pre`},FP)},LP=function(e){return J({label:`input`,color:`inherit`,background:0,opacity:e?0:1,width:`100%`},FP)},RP=function(e){var t=e.cx,n=e.value,r=fN(e),i=r.innerRef,a=r.isDisabled,o=r.isHidden,s=r.inputClassName,c=mA(r,NP);return Q(`div`,Y({},pN(e,`input`,{"input-container":!0}),{"data-value":n||``}),Q(`input`,Y({className:t({input:!0},s),ref:i,style:LP(o),disabled:a},c)))},zP=RP,BP=function(e,t){var n=e.theme,r=n.spacing,i=n.borderRadius,a=n.colors;return J({label:`multiValue`,display:`flex`,minWidth:0},t?{}:{backgroundColor:a.neutral10,borderRadius:i/2,margin:r.baseUnit/2})},VP=function(e,t){var n=e.theme,r=n.borderRadius,i=n.colors,a=e.cropWithEllipsis;return J({overflow:`hidden`,textOverflow:a||a===void 0?`ellipsis`:void 0,whiteSpace:`nowrap`},t?{}:{borderRadius:r/2,color:i.neutral80,fontSize:`85%`,padding:3,paddingLeft:6})},HP=function(e,t){var n=e.theme,r=n.spacing,i=n.borderRadius,a=n.colors,o=e.isFocused;return J({alignItems:`center`,display:`flex`},t?{}:{borderRadius:i/2,backgroundColor:o?a.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:a.dangerLight,color:a.danger}})},UP=function(e){var t=e.children,n=e.innerProps;return Q(`div`,n,t)},WP=UP,GP=UP;function KP(e){var t=e.children,n=e.innerProps;return Q(`div`,Y({role:`button`},n),t||Q(dP,{size:14}))}var qP=function(e){var t=e.children,n=e.components,r=e.data,i=e.innerProps,a=e.isDisabled,o=e.removeProps,s=e.selectProps,c=n.Container,l=n.Label,u=n.Remove;return Q(c,{data:r,innerProps:J(J({},pN(e,`multiValue`,{"multi-value":!0,"multi-value--is-disabled":a})),i),selectProps:s},Q(l,{data:r,innerProps:J({},pN(e,`multiValueLabel`,{"multi-value__label":!0})),selectProps:s},t),Q(u,{data:r,innerProps:J(J({},pN(e,`multiValueRemove`,{"multi-value__remove":!0})),{},{"aria-label":`Remove ${t||`option`}`},o),selectProps:s}))},JP=qP,YP=function(e,t){var n=e.isDisabled,r=e.isFocused,i=e.isSelected,a=e.theme,o=a.spacing,s=a.colors;return J({label:`option`,cursor:`default`,display:`block`,fontSize:`inherit`,width:`100%`,userSelect:`none`,WebkitTapHighlightColor:`rgba(0, 0, 0, 0)`},t?{}:{backgroundColor:i?s.primary:r?s.primary25:`transparent`,color:n?s.neutral20:i?s.neutral0:`inherit`,padding:`${o.baseUnit*2}px ${o.baseUnit*3}px`,":active":{backgroundColor:n?void 0:i?s.primary:s.primary50}})},XP=function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,i=e.isSelected,a=e.innerRef,o=e.innerProps;return Q(`div`,Y({},pN(e,`option`,{option:!0,"option--is-disabled":n,"option--is-focused":r,"option--is-selected":i}),{ref:a,"aria-disabled":n},o),t)},ZP=XP,QP=function(e,t){var n=e.theme,r=n.spacing,i=n.colors;return J({label:`placeholder`,gridArea:`1 / 1 / 2 / 3`},t?{}:{color:i.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},$P=function(e){var t=e.children,n=e.innerProps;return Q(`div`,Y({},pN(e,`placeholder`,{placeholder:!0}),n),t)},eF=$P,tF=function(e,t){var n=e.isDisabled,r=e.theme,i=r.spacing,a=r.colors;return J({label:`singleValue`,gridArea:`1 / 1 / 2 / 3`,maxWidth:`100%`,overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`},t?{}:{color:n?a.neutral40:a.neutral80,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},nF=function(e){var t=e.children,n=e.isDisabled,r=e.innerProps;return Q(`div`,Y({},pN(e,`singleValue`,{"single-value":!0,"single-value--is-disabled":n}),r),t)},rF=nF,iF={ClearIndicator:_P,Control:EP,DropdownIndicator:hP,DownChevron:fP,CrossIcon:dP,Group:MP,GroupHeading:jP,IndicatorsContainer:aP,IndicatorSeparator:yP,Input:zP,LoadingIndicator:CP,Menu:WN,MenuList:KN,MenuPortal:$N,LoadingMessage:ZN,NoOptionsMessage:XN,MultiValue:JP,MultiValueContainer:WP,MultiValueLabel:GP,MultiValueRemove:KP,Option:ZP,Placeholder:eF,SelectContainer:tP,SingleValue:rF,ValueContainer:rP},aF=function(e){return J(J({},iF),e.components)},oF=Number.isNaN||function(e){return typeof e==`number`&&e!==e};function sF(e,t){return!!(e===t||oF(e)&&oF(t))}function cF(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!sF(e[n],t[n]))return!1;return!0}function lF(e,t){t===void 0&&(t=cF);var n=null;function r(){var r=[...arguments];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var i=e.apply(this,r);return n={lastResult:i,lastArgs:r,lastThis:this},i}return r.clear=function(){n=null},r}for(var uF={name:`7pg0cj-a11yText`,styles:`label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap`},dF=function(e){return Q(`span`,Y({css:uF},e))},fF=dF,pF={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.tabSelectsValue,i=e.context,a=e.isInitialFocus;switch(i){case`menu`:return`Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu${r?`, press Tab to select the option and exit the menu`:``}.`;case`input`:return a?`${e[`aria-label`]||`Select`} is focused ${t?`,type to refine list`:``}, press Down to open the menu, ${n?` press left to focus selected values`:``}`:``;case`value`:return`Use left and right to toggle between focused values, press Backspace to remove the currently focused value`;default:return``}},onChange:function(e){var t=e.action,n=e.label,r=n===void 0?``:n,i=e.labels,a=e.isDisabled;switch(t){case`deselect-option`:case`pop-value`:case`remove-value`:return`option ${r}, deselected.`;case`clear`:return`All selected options have been cleared.`;case`initial-input-focus`:return`option${i.length>1?`s`:``} ${i.join(`,`)}, selected.`;case`select-option`:return a?`option ${r} is disabled. Select another option.`:`option ${r}, selected.`;default:return``}},onFocus:function(e){var t=e.context,n=e.focused,r=e.options,i=e.label,a=i===void 0?``:i,o=e.selectValue,s=e.isDisabled,c=e.isSelected,l=e.isAppleDevice,u=function(e,t){return e&&e.length?`${e.indexOf(t)+1} of ${e.length}`:``};if(t===`value`&&o)return`value ${a} focused, ${u(o,n)}.`;if(t===`menu`&&l){var d=s?` disabled`:``,f=`${c?` selected`:``}${d}`;return`${a}${f}, ${u(r,n)}.`}return``},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return`${n}${t?` for search term `+t:``}.`}},mF=function(e){var t=e.ariaSelection,n=e.focusedOption,r=e.focusedValue,a=e.focusableOptions,o=e.isFocused,s=e.selectValue,c=e.selectProps,l=e.id,u=e.isAppleDevice,d=c.ariaLiveMessages,f=c.getOptionLabel,p=c.inputValue,m=c.isMulti,h=c.isOptionDisabled,_=c.isSearchable,v=c.menuIsOpen,y=c.options,b=c.screenReaderStatus,x=c.tabSelectsValue,S=c.isLoading,C=c[`aria-label`],w=c[`aria-live`],T=g(function(){return J(J({},pF),d||{})},[d]),E=g(function(){var e=``;if(t&&T.onChange){var n=t.option,r=t.options,i=t.removedValue,a=t.removedValues,o=t.value,c=function(e){return Array.isArray(e)?null:e},l=i||n||c(o),u=l?f(l):``,d=r||a||void 0,p=d?d.map(f):[],m=J({isDisabled:l&&h(l,s),label:u,labels:p},t);e=T.onChange(m)}return e},[t,T,h,s,f]),D=g(function(){var e=``,t=n||r,i=!!(n&&s&&s.includes(n));if(t&&T.onFocus){var o={focused:t,label:f(t),isDisabled:h(t,s),isSelected:i,options:a,context:t===n?`menu`:`value`,selectValue:s,isAppleDevice:u};e=T.onFocus(o)}return e},[n,r,f,h,T,a,s,u]),O=g(function(){var e=``;if(v&&y.length&&!S&&T.onFilter){var t=b({count:a.length});e=T.onFilter({inputValue:p,resultsMessage:t})}return e},[a,p,v,T,y,b,S]),k=t?.action===`initial-input-focus`,A=g(function(){var e=``;if(T.guidance){var t=r?`value`:v?`menu`:`input`;e=T.guidance({"aria-label":C,context:t,isDisabled:n&&h(n,s),isMulti:m,isSearchable:_,tabSelectsValue:x,isInitialFocus:k})}return e},[C,n,r,m,h,_,v,T,s,x,k]),j=Q(i,null,Q(`span`,{id:`aria-selection`},E),Q(`span`,{id:`aria-focused`},D),Q(`span`,{id:`aria-results`},O),Q(`span`,{id:`aria-guidance`},A));return Q(i,null,Q(fF,{id:l},k&&j),Q(fF,{"aria-live":w,"aria-atomic":`false`,"aria-relevant":`additions text`,role:`log`},o&&!k&&j))},hF=mF,gF=[{base:`A`,letters:`AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ`},{base:`AA`,letters:`Ꜳ`},{base:`AE`,letters:`ÆǼǢ`},{base:`AO`,letters:`Ꜵ`},{base:`AU`,letters:`Ꜷ`},{base:`AV`,letters:`ꜸꜺ`},{base:`AY`,letters:`Ꜽ`},{base:`B`,letters:`BⒷBḂḄḆɃƂƁ`},{base:`C`,letters:`CⒸCĆĈĊČÇḈƇȻꜾ`},{base:`D`,letters:`DⒹDḊĎḌḐḒḎĐƋƊƉꝹ`},{base:`DZ`,letters:`DZDŽ`},{base:`Dz`,letters:`DzDž`},{base:`E`,letters:`EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ`},{base:`F`,letters:`FⒻFḞƑꝻ`},{base:`G`,letters:`GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ`},{base:`H`,letters:`HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ`},{base:`I`,letters:`IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ`},{base:`J`,letters:`JⒿJĴɈ`},{base:`K`,letters:`KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ`},{base:`L`,letters:`LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ`},{base:`LJ`,letters:`LJ`},{base:`Lj`,letters:`Lj`},{base:`M`,letters:`MⓂMḾṀṂⱮƜ`},{base:`N`,letters:`NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ`},{base:`NJ`,letters:`NJ`},{base:`Nj`,letters:`Nj`},{base:`O`,letters:`OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ`},{base:`OI`,letters:`Ƣ`},{base:`OO`,letters:`Ꝏ`},{base:`OU`,letters:`Ȣ`},{base:`P`,letters:`PⓅPṔṖƤⱣꝐꝒꝔ`},{base:`Q`,letters:`QⓆQꝖꝘɊ`},{base:`R`,letters:`RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ`},{base:`S`,letters:`SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ`},{base:`T`,letters:`TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ`},{base:`TZ`,letters:`Ꜩ`},{base:`U`,letters:`UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ`},{base:`V`,letters:`VⓋVṼṾƲꝞɅ`},{base:`VY`,letters:`Ꝡ`},{base:`W`,letters:`WⓌWẀẂŴẆẄẈⱲ`},{base:`X`,letters:`XⓍXẊẌ`},{base:`Y`,letters:`YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ`},{base:`Z`,letters:`ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ`},{base:`a`,letters:`aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ`},{base:`aa`,letters:`ꜳ`},{base:`ae`,letters:`æǽǣ`},{base:`ao`,letters:`ꜵ`},{base:`au`,letters:`ꜷ`},{base:`av`,letters:`ꜹꜻ`},{base:`ay`,letters:`ꜽ`},{base:`b`,letters:`bⓑbḃḅḇƀƃɓ`},{base:`c`,letters:`cⓒcćĉċčçḉƈȼꜿↄ`},{base:`d`,letters:`dⓓdḋďḍḑḓḏđƌɖɗꝺ`},{base:`dz`,letters:`dzdž`},{base:`e`,letters:`eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ`},{base:`f`,letters:`fⓕfḟƒꝼ`},{base:`g`,letters:`gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ`},{base:`h`,letters:`hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ`},{base:`hv`,letters:`ƕ`},{base:`i`,letters:`iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı`},{base:`j`,letters:`jⓙjĵǰɉ`},{base:`k`,letters:`kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ`},{base:`l`,letters:`lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ`},{base:`lj`,letters:`lj`},{base:`m`,letters:`mⓜmḿṁṃɱɯ`},{base:`n`,letters:`nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ`},{base:`nj`,letters:`nj`},{base:`o`,letters:`oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ`},{base:`oi`,letters:`ƣ`},{base:`ou`,letters:`ȣ`},{base:`oo`,letters:`ꝏ`},{base:`p`,letters:`pⓟpṕṗƥᵽꝑꝓꝕ`},{base:`q`,letters:`qⓠqɋꝗꝙ`},{base:`r`,letters:`rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ`},{base:`s`,letters:`sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ`},{base:`t`,letters:`tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ`},{base:`tz`,letters:`ꜩ`},{base:`u`,letters:`uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ`},{base:`v`,letters:`vⓥvṽṿʋꝟʌ`},{base:`vy`,letters:`ꝡ`},{base:`w`,letters:`wⓦwẁẃŵẇẅẘẉⱳ`},{base:`x`,letters:`xⓧxẋẍ`},{base:`y`,letters:`yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ`},{base:`z`,letters:`zⓩzźẑżžẓẕƶȥɀⱬꝣ`}],_F=RegExp(`[`+gF.map(function(e){return e.letters}).join(``)+`]`,`g`),vF={},yF=0;yF<gF.length;yF++)for(var bF=gF[yF],xF=0;xF<bF.letters.length;xF++)vF[bF.letters[xF]]=bF.base;var SF=function(e){return e.replace(_F,function(e){return vF[e]})},CF=lF(SF),wF=function(e){return e.replace(/^\s+|\s+$/g,``)},TF=function(e){return`${e.label} ${e.value}`},EF=function(e){return function(t,n){if(t.data.__isNew__)return!0;var r=J({ignoreCase:!0,ignoreAccents:!0,stringify:TF,trim:!0,matchFrom:`any`},e),i=r.ignoreCase,a=r.ignoreAccents,o=r.stringify,s=r.trim,c=r.matchFrom,l=s?wF(n):n,u=s?wF(o(t)):o(t);return i&&(l=l.toLowerCase(),u=u.toLowerCase()),a&&(l=CF(l),u=SF(u)),c===`start`?u.substr(0,l.length)===l:u.indexOf(l)>-1}},DF=[`innerRef`];function OF(e){var t=e.innerRef,n=mA(e,DF),r=PN(n,`onExited`,`in`,`enter`,`exit`,`appear`);return Q(`input`,Y({ref:t},r,{css:TM({label:`dummyInput`,background:0,border:0,caretColor:`transparent`,fontSize:`inherit`,gridArea:`1 / 1 / 2 / 3`,outline:0,padding:0,width:1,color:`transparent`,left:-100,opacity:0,position:`relative`,transform:`scale(.01)`},``,``)}))}var kF=function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()};function AF(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,i=e.onTopArrive,a=e.onTopLeave,o=_(!1),s=_(!1),c=_(0),l=_(null),d=u(function(e,t){if(l.current!==null){var c=l.current,u=c.scrollTop,d=c.scrollHeight,f=c.clientHeight,p=l.current,m=t>0,h=d-f-u,g=!1;h>t&&o.current&&(r&&r(e),o.current=!1),m&&s.current&&(a&&a(e),s.current=!1),m&&t>h?(n&&!o.current&&n(e),p.scrollTop=d,g=!0,o.current=!0):!m&&-t>u&&(i&&!s.current&&i(e),p.scrollTop=0,g=!0,s.current=!0),g&&kF(e)}},[n,r,i,a]),p=u(function(e){d(e,e.deltaY)},[d]),m=u(function(e){c.current=e.changedTouches[0].clientY},[]),h=u(function(e){var t=c.current-e.changedTouches[0].clientY;d(e,t)},[d]),g=u(function(e){if(e){var t=ON?{passive:!1}:!1;e.addEventListener(`wheel`,p,t),e.addEventListener(`touchstart`,m,t),e.addEventListener(`touchmove`,h,t)}},[h,m,p]),v=u(function(e){e&&(e.removeEventListener(`wheel`,p,!1),e.removeEventListener(`touchstart`,m,!1),e.removeEventListener(`touchmove`,h,!1))},[h,m,p]);return f(function(){if(t){var e=l.current;return g(e),function(){v(e)}}},[t,g,v]),function(e){l.current=e}}var jF=[`boxSizing`,`height`,`overflow`,`paddingRight`,`position`],MF={boxSizing:`border-box`,overflow:`hidden`,position:`relative`,height:`100%`};function NF(e){e.cancelable&&e.preventDefault()}function PF(e){e.stopPropagation()}function FF(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;e===0?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function IF(){return`ontouchstart`in window||navigator.maxTouchPoints}var LF=!!(typeof window<`u`&&window.document&&window.document.createElement),RF=0,zF={capture:!1,passive:!1};function BF(e){var t=e.isEnabled,n=e.accountForScrollbars,r=n===void 0?!0:n,i=_({}),a=_(null),o=u(function(e){if(LF){var t=document.body,n=t&&t.style;if(r&&jF.forEach(function(e){var t=n&&n[e];i.current[e]=t}),r&&RF<1){var a=parseInt(i.current.paddingRight,10)||0,o=document.body?document.body.clientWidth:0,s=window.innerWidth-o+a||0;Object.keys(MF).forEach(function(e){var t=MF[e];n&&(n[e]=t)}),n&&(n.paddingRight=`${s}px`)}t&&IF()&&(t.addEventListener(`touchmove`,NF,zF),e&&(e.addEventListener(`touchstart`,FF,zF),e.addEventListener(`touchmove`,PF,zF))),RF+=1}},[r]),s=u(function(e){if(LF){var t=document.body,n=t&&t.style;RF=Math.max(RF-1,0),r&&RF<1&&jF.forEach(function(e){var t=i.current[e];n&&(n[e]=t)}),t&&IF()&&(t.removeEventListener(`touchmove`,NF,zF),e&&(e.removeEventListener(`touchstart`,FF,zF),e.removeEventListener(`touchmove`,PF,zF)))}},[r]);return f(function(){if(t){var e=a.current;return o(e),function(){s(e)}}},[t,o,s]),function(e){a.current=e}}var VF=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},HF={name:`1kfdb0e`,styles:`position:fixed;left:0;bottom:0;right:0;top:0`};function UF(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,a=r===void 0?!0:r,o=e.onBottomArrive,s=e.onBottomLeave,c=e.onTopArrive,l=e.onTopLeave,u=AF({isEnabled:a,onBottomArrive:o,onBottomLeave:s,onTopArrive:c,onTopLeave:l}),d=BF({isEnabled:n}),f=function(e){u(e),d(e)};return Q(i,null,n&&Q(`div`,{onClick:VF,css:HF}),t(f))}var WF={name:`1a0ro4n-requiredInput`,styles:`label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%`},GF=function(e){var t=e.name,n=e.onFocus;return Q(`input`,{required:!0,name:t,tabIndex:-1,"aria-hidden":`true`,onFocus:n,css:WF,value:``,onChange:function(){}})},KF=GF;function qF(e){var t;return typeof window<`u`&&window.navigator!=null?e.test((t=window.navigator.userAgentData)?.platform||window.navigator.platform):!1}function JF(){return qF(/^iPhone/i)}function YF(){return qF(/^Mac/i)}function XF(){return qF(/^iPad/i)||YF()&&navigator.maxTouchPoints>1}function ZF(){return JF()||XF()}function QF(){return YF()||ZF()}var $F=function(e){return e.label},eI=function(e){return e.label},tI=function(e){return e.value},nI=function(e){return!!e.isDisabled},rI={clearIndicator:gP,container:eP,control:wP,dropdownIndicator:mP,group:OP,groupHeading:AP,indicatorsContainer:iP,indicatorSeparator:vP,input:PP,loadingIndicator:xP,loadingMessage:YN,menu:BN,menuList:GN,menuPortal:QN,multiValue:BP,multiValueLabel:VP,multiValueRemove:HP,noOptionsMessage:JN,option:YP,placeholder:QP,singleValue:tF,valueContainer:nP},iI={primary:`#2684FF`,primary75:`#4C9AFF`,primary50:`#B2D4FF`,primary25:`#DEEBFF`,danger:`#DE350B`,dangerLight:`#FFBDAD`,neutral0:`hsl(0, 0%, 100%)`,neutral5:`hsl(0, 0%, 95%)`,neutral10:`hsl(0, 0%, 90%)`,neutral20:`hsl(0, 0%, 80%)`,neutral30:`hsl(0, 0%, 70%)`,neutral40:`hsl(0, 0%, 60%)`,neutral50:`hsl(0, 0%, 50%)`,neutral60:`hsl(0, 0%, 40%)`,neutral70:`hsl(0, 0%, 30%)`,neutral80:`hsl(0, 0%, 20%)`,neutral90:`hsl(0, 0%, 10%)`},aI=4,oI=4,sI=38,cI=oI*2,lI={baseUnit:oI,controlHeight:sI,menuGutter:cI},uI={borderRadius:aI,colors:iI,spacing:lI},dI={"aria-live":`polite`,backspaceRemovesValue:!0,blurInputOnSelect:CN(),captureMenuScroll:!CN(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:EF(),formatGroupLabel:$F,getOptionLabel:eI,getOptionValue:tI,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:nI,loadingMessage:function(){return`Loading...`},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:`bottom`,menuPosition:`absolute`,menuShouldBlockScroll:!1,menuShouldScrollIntoView:!wN(),noOptionsMessage:function(){return`No options`},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:`Select...`,screenReaderStatus:function(e){var t=e.count;return`${t} result${t===1?``:`s`} available`},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function fI(e,t,n,r){var i=CI(e,t,n),a=wI(e,t,n),o=xI(e,t),s=SI(e,t);return{type:`option`,data:t,isDisabled:i,isSelected:a,label:o,value:s,index:r}}function pI(e,t){return e.options.map(function(n,r){if(`options`in n){var i=n.options.map(function(n,r){return fI(e,n,t,r)}).filter(function(t){return _I(e,t)});return i.length>0?{type:`group`,data:n,options:i,index:r}:void 0}var a=fI(e,n,t,r);return _I(e,a)?a:void 0}).filter(kN)}function mI(e){return e.reduce(function(e,t){return t.type===`group`?e.push.apply(e,AA(t.options.map(function(e){return e.data}))):e.push(t.data),e},[])}function hI(e,t){return e.reduce(function(e,n){return n.type===`group`?e.push.apply(e,AA(n.options.map(function(e){return{data:e.data,id:`${t}-${n.index}-${e.index}`}}))):e.push({data:n.data,id:`${t}-${n.index}`}),e},[])}function gI(e,t){return mI(pI(e,t))}function _I(e,t){var n=e.inputValue,r=n===void 0?``:n,i=t.data,a=t.isSelected,o=t.label,s=t.value;return(!EI(e)||!a)&&TI(e,{label:o,value:s,data:i},r)}function vI(e,t){var n=e.focusedValue,r=e.selectValue,i=r.indexOf(n);if(i>-1){var a=t.indexOf(n);if(a>-1)return n;if(i<t.length)return t[i]}return null}function yI(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}var bI=function(e,t){var n,r=(n=e.find(function(e){return e.data===t}))?.id;return r||null},xI=function(e,t){return e.getOptionLabel(t)},SI=function(e,t){return e.getOptionValue(t)};function CI(e,t,n){return typeof e.isOptionDisabled==`function`?e.isOptionDisabled(t,n):!1}function wI(e,t,n){if(n.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected==`function`)return e.isOptionSelected(t,n);var r=SI(e,t);return n.some(function(t){return SI(e,t)===r})}function TI(e,t,n){return e.filterOption?e.filterOption(t,n):!0}var EI=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return t===void 0?n:t},DI=1,OI=function(t){xA(r,t);var n=EA(r);function r(e){var t;if(_A(this,r),t=n.call(this,e),t.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:``},t.blockOptionHover=!1,t.isComposing=!1,t.commonProps=void 0,t.initialTouchX=0,t.initialTouchY=0,t.openAfterFocus=!1,t.scrollToFocusedOptionOnUpdate=!1,t.userIsDragging=void 0,t.isAppleDevice=QF(),t.controlRef=null,t.getControlRef=function(e){t.controlRef=e},t.focusedOptionRef=null,t.getFocusedOptionRef=function(e){t.focusedOptionRef=e},t.menuListRef=null,t.getMenuListRef=function(e){t.menuListRef=e},t.inputRef=null,t.getInputRef=function(e){t.inputRef=e},t.focus=t.focusInput,t.blur=t.blurInput,t.onChange=function(e,n){var r=t.props,i=r.onChange,a=r.name;n.name=a,t.ariaOnChange(e,n),i(e,n)},t.setValue=function(e,n,r){var i=t.props,a=i.closeMenuOnSelect,o=i.isMulti,s=i.inputValue;t.onInputChange(``,{action:`set-value`,prevInputValue:s}),a&&(t.setState({inputIsHiddenAfterUpdate:!o}),t.onMenuClose()),t.setState({clearFocusValueOnUpdate:!0}),t.onChange(e,{action:n,option:r})},t.selectOption=function(e){var n=t.props,r=n.blurInputOnSelect,i=n.isMulti,a=n.name,o=t.state.selectValue,s=i&&t.isOptionSelected(e,o),c=t.isOptionDisabled(e,o);if(s){var l=t.getOptionValue(e);t.setValue(NN(o.filter(function(e){return t.getOptionValue(e)!==l})),`deselect-option`,e)}else if(!c)i?t.setValue(NN([].concat(AA(o),[e])),`select-option`,e):t.setValue(MN(e),`select-option`);else{t.ariaOnChange(MN(e),{action:`select-option`,option:e,name:a});return}r&&t.blurInput()},t.removeValue=function(e){var n=t.props.isMulti,r=t.state.selectValue,i=t.getOptionValue(e),a=r.filter(function(e){return t.getOptionValue(e)!==i}),o=jN(n,a,a[0]||null);t.onChange(o,{action:`remove-value`,removedValue:e}),t.focusInput()},t.clearValue=function(){var e=t.state.selectValue;t.onChange(jN(t.props.isMulti,[],null),{action:`clear`,removedValues:e})},t.popValue=function(){var e=t.props.isMulti,n=t.state.selectValue,r=n[n.length-1],i=n.slice(0,n.length-1),a=jN(e,i,i[0]||null);r&&t.onChange(a,{action:`pop-value`,removedValue:r})},t.getFocusedOptionId=function(e){return bI(t.state.focusableOptionsWithIds,e)},t.getFocusableOptionsWithIds=function(){return hI(pI(t.props,t.state.selectValue),t.getElementId(`option`))},t.getValue=function(){return t.state.selectValue},t.cx=function(){var e=[...arguments];return uN.apply(void 0,[t.props.classNamePrefix].concat(e))},t.getOptionLabel=function(e){return xI(t.props,e)},t.getOptionValue=function(e){return SI(t.props,e)},t.getStyles=function(e,n){var r=t.props.unstyled,i=rI[e](n,r);i.boxSizing=`border-box`;var a=t.props.styles[e];return a?a(i,n):i},t.getClassNames=function(e,n){var r,i;return(r=(i=t.props.classNames)[e])?.call(i,n)},t.getElementId=function(e){return`${t.state.instancePrefix}-${e}`},t.getComponents=function(){return aF(t.props)},t.buildCategorizedOptions=function(){return pI(t.props,t.state.selectValue)},t.getCategorizedOptions=function(){return t.props.menuIsOpen?t.buildCategorizedOptions():[]},t.buildFocusableOptions=function(){return mI(t.buildCategorizedOptions())},t.getFocusableOptions=function(){return t.props.menuIsOpen?t.buildFocusableOptions():[]},t.ariaOnChange=function(e,n){t.setState({ariaSelection:J({value:e},n)})},t.onMenuMouseDown=function(e){e.button===0&&(e.stopPropagation(),e.preventDefault(),t.focusInput())},t.onMenuMouseMove=function(e){t.blockOptionHover=!1},t.onControlMouseDown=function(e){if(!e.defaultPrevented){var n=t.props.openMenuOnClick;t.state.isFocused?t.props.menuIsOpen?e.target.tagName!==`INPUT`&&e.target.tagName!==`TEXTAREA`&&t.onMenuClose():n&&t.openMenu(`first`):(n&&(t.openAfterFocus=!0),t.focusInput()),e.target.tagName!==`INPUT`&&e.target.tagName!==`TEXTAREA`&&e.preventDefault()}},t.onDropdownIndicatorMouseDown=function(e){if(!(e&&e.type===`mousedown`&&e.button!==0)&&!t.props.isDisabled){var n=t.props,r=n.isMulti,i=n.menuIsOpen;t.focusInput(),i?(t.setState({inputIsHiddenAfterUpdate:!r}),t.onMenuClose()):t.openMenu(`first`),e.preventDefault()}},t.onClearIndicatorMouseDown=function(e){e&&e.type===`mousedown`&&e.button!==0||(t.clearValue(),e.preventDefault(),t.openAfterFocus=!1,e.type===`touchend`?t.focusInput():setTimeout(function(){return t.focusInput()}))},t.onScroll=function(e){typeof t.props.closeMenuOnScroll==`boolean`?e.target instanceof HTMLElement&&mN(e.target)&&t.props.onMenuClose():typeof t.props.closeMenuOnScroll==`function`&&t.props.closeMenuOnScroll(e)&&t.props.onMenuClose()},t.onCompositionStart=function(){t.isComposing=!0},t.onCompositionEnd=function(){t.isComposing=!1},t.onTouchStart=function(e){var n=e.touches,r=n&&n.item(0);r&&(t.initialTouchX=r.clientX,t.initialTouchY=r.clientY,t.userIsDragging=!1)},t.onTouchMove=function(e){var n=e.touches,r=n&&n.item(0);if(r){var i=Math.abs(r.clientX-t.initialTouchX),a=Math.abs(r.clientY-t.initialTouchY),o=5;t.userIsDragging=i>o||a>o}},t.onTouchEnd=function(e){t.userIsDragging||(t.controlRef&&!t.controlRef.contains(e.target)&&t.menuListRef&&!t.menuListRef.contains(e.target)&&t.blurInput(),t.initialTouchX=0,t.initialTouchY=0)},t.onControlTouchEnd=function(e){t.userIsDragging||t.onControlMouseDown(e)},t.onClearIndicatorTouchEnd=function(e){t.userIsDragging||t.onClearIndicatorMouseDown(e)},t.onDropdownIndicatorTouchEnd=function(e){t.userIsDragging||t.onDropdownIndicatorMouseDown(e)},t.handleInputChange=function(e){var n=t.props.inputValue,r=e.currentTarget.value;t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange(r,{action:`input-change`,prevInputValue:n}),t.props.menuIsOpen||t.onMenuOpen()},t.onInputFocus=function(e){t.props.onFocus&&t.props.onFocus(e),t.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(t.openAfterFocus||t.props.openMenuOnFocus)&&t.openMenu(`first`),t.openAfterFocus=!1},t.onInputBlur=function(e){var n=t.props.inputValue;if(t.menuListRef&&t.menuListRef.contains(document.activeElement)){t.inputRef.focus();return}t.props.onBlur&&t.props.onBlur(e),t.onInputChange(``,{action:`input-blur`,prevInputValue:n}),t.onMenuClose(),t.setState({focusedValue:null,isFocused:!1})},t.onOptionHover=function(e){if(!(t.blockOptionHover||t.state.focusedOption===e)){var n=t.getFocusableOptions(),r=n.indexOf(e);t.setState({focusedOption:e,focusedOptionId:r>-1?t.getFocusedOptionId(e):null})}},t.shouldHideSelectedOptions=function(){return EI(t.props)},t.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),t.focus()},t.onKeyDown=function(e){var n=t.props,r=n.isMulti,i=n.backspaceRemovesValue,a=n.escapeClearsValue,o=n.inputValue,s=n.isClearable,c=n.isDisabled,l=n.menuIsOpen,u=n.onKeyDown,d=n.tabSelectsValue,f=n.openMenuOnFocus,p=t.state,m=p.focusedOption,h=p.focusedValue,g=p.selectValue;if(!c&&!(typeof u==`function`&&(u(e),e.defaultPrevented))){switch(t.blockOptionHover=!0,e.key){case`ArrowLeft`:if(!r||o)return;t.focusValue(`previous`);break;case`ArrowRight`:if(!r||o)return;t.focusValue(`next`);break;case`Delete`:case`Backspace`:if(o)return;if(h)t.removeValue(h);else{if(!i)return;r?t.popValue():s&&t.clearValue()}break;case`Tab`:if(t.isComposing||e.shiftKey||!l||!d||!m||f&&t.isOptionSelected(m,g))return;t.selectOption(m);break;case`Enter`:if(e.keyCode===229)break;if(l){if(!m||t.isComposing)return;t.selectOption(m);break}return;case`Escape`:l?(t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange(``,{action:`menu-close`,prevInputValue:o}),t.onMenuClose()):s&&a&&t.clearValue();break;case` `:if(o)return;if(!l){t.openMenu(`first`);break}if(!m)return;t.selectOption(m);break;case`ArrowUp`:l?t.focusOption(`up`):t.openMenu(`last`);break;case`ArrowDown`:l?t.focusOption(`down`):t.openMenu(`first`);break;case`PageUp`:if(!l)return;t.focusOption(`pageup`);break;case`PageDown`:if(!l)return;t.focusOption(`pagedown`);break;case`Home`:if(!l)return;t.focusOption(`first`);break;case`End`:if(!l)return;t.focusOption(`last`);break;default:return}e.preventDefault()}},t.state.instancePrefix=`react-select-`+(t.props.instanceId||++DI),t.state.selectValue=dN(e.value),e.menuIsOpen&&t.state.selectValue.length){var i=t.getFocusableOptionsWithIds(),a=t.buildFocusableOptions(),o=a.indexOf(t.state.selectValue[0]);t.state.focusableOptionsWithIds=i,t.state.focusedOption=a[o],t.state.focusedOptionId=bI(i,a[o])}return t}return yA(r,[{key:`componentDidMount`,value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener(`scroll`,this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&xN(this.menuListRef,this.focusedOptionRef)}},{key:`componentDidUpdate`,value:function(e){var t=this.props,n=t.isDisabled,r=t.menuIsOpen,i=this.state.isFocused;(i&&!n&&e.isDisabled||i&&r&&!e.menuIsOpen)&&this.focusInput(),i&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!i&&!n&&e.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(xN(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:`componentWillUnmount`,value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener(`scroll`,this.onScroll,!0)}},{key:`onMenuOpen`,value:function(){this.props.onMenuOpen()}},{key:`onMenuClose`,value:function(){this.onInputChange(``,{action:`menu-close`,prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:`onInputChange`,value:function(e,t){this.props.onInputChange(e,t)}},{key:`focusInput`,value:function(){this.inputRef&&this.inputRef.focus()}},{key:`blurInput`,value:function(){this.inputRef&&this.inputRef.blur()}},{key:`openMenu`,value:function(e){var t=this,n=this.state,r=n.selectValue,i=n.isFocused,a=this.buildFocusableOptions(),o=e===`first`?0:a.length-1;if(!this.props.isMulti){var s=a.indexOf(r[0]);s>-1&&(o=s)}this.scrollToFocusedOptionOnUpdate=!(i&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:a[o],focusedOptionId:this.getFocusedOptionId(a[o])},function(){return t.onMenuOpen()})}},{key:`focusValue`,value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var i=n.indexOf(r);r||(i=-1);var a=n.length-1,o=-1;if(n.length){switch(e){case`previous`:o=i===0?0:i===-1?a:i-1;break;case`next`:i>-1&&i<a&&(o=i+1);break}this.setState({inputIsHidden:o!==-1,focusedValue:n[o]})}}}},{key:`focusOption`,value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:`first`,t=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var i=0,a=r.indexOf(n);n||(a=-1),e===`up`?i=a>0?a-1:r.length-1:e===`down`?i=(a+1)%r.length:e===`pageup`?(i=a-t,i<0&&(i=0)):e===`pagedown`?(i=a+t,i>r.length-1&&(i=r.length-1)):e===`last`&&(i=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[i],focusedValue:null,focusedOptionId:this.getFocusedOptionId(r[i])})}}},{key:`getTheme`,value:function(){return this.props.theme?typeof this.props.theme==`function`?this.props.theme(uI):J(J({},uI),this.props.theme):uI}},{key:`getCommonProps`,value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getClassNames,i=this.getValue,a=this.selectOption,o=this.setValue,s=this.props,c=s.isMulti,l=s.isRtl,u=s.options,d=this.hasValue();return{clearValue:e,cx:t,getStyles:n,getClassNames:r,getValue:i,hasValue:d,isMulti:c,isRtl:l,options:u,selectOption:a,selectProps:s,setValue:o,theme:this.getTheme()}}},{key:`hasValue`,value:function(){var e=this.state.selectValue;return e.length>0}},{key:`hasOptions`,value:function(){return!!this.getFocusableOptions().length}},{key:`isClearable`,value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return t===void 0?n:t}},{key:`isOptionDisabled`,value:function(e,t){return CI(this.props,e,t)}},{key:`isOptionSelected`,value:function(e,t){return wI(this.props,e,t)}},{key:`filterOption`,value:function(e,t){return TI(this.props,e,t)}},{key:`formatOptionLabel`,value:function(e,t){if(typeof this.props.formatOptionLabel==`function`){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}else return this.getOptionLabel(e)}},{key:`formatGroupLabel`,value:function(e){return this.props.formatGroupLabel(e)}},{key:`startListeningComposition`,value:function(){document&&document.addEventListener&&(document.addEventListener(`compositionstart`,this.onCompositionStart,!1),document.addEventListener(`compositionend`,this.onCompositionEnd,!1))}},{key:`stopListeningComposition`,value:function(){document&&document.removeEventListener&&(document.removeEventListener(`compositionstart`,this.onCompositionStart),document.removeEventListener(`compositionend`,this.onCompositionEnd))}},{key:`startListeningToTouch`,value:function(){document&&document.addEventListener&&(document.addEventListener(`touchstart`,this.onTouchStart,!1),document.addEventListener(`touchmove`,this.onTouchMove,!1),document.addEventListener(`touchend`,this.onTouchEnd,!1))}},{key:`stopListeningToTouch`,value:function(){document&&document.removeEventListener&&(document.removeEventListener(`touchstart`,this.onTouchStart),document.removeEventListener(`touchmove`,this.onTouchMove),document.removeEventListener(`touchend`,this.onTouchEnd))}},{key:`renderInput`,value:function(){var t=this.props,n=t.isDisabled,r=t.isSearchable,i=t.inputId,a=t.inputValue,o=t.tabIndex,s=t.form,c=t.menuIsOpen,l=t.required,u=this.getComponents(),d=u.Input,f=this.state,p=f.inputIsHidden,m=f.ariaSelection,h=this.commonProps,g=i||this.getElementId(`input`),_=J(J(J({"aria-autocomplete":`list`,"aria-expanded":c,"aria-haspopup":!0,"aria-errormessage":this.props[`aria-errormessage`],"aria-invalid":this.props[`aria-invalid`],"aria-label":this.props[`aria-label`],"aria-labelledby":this.props[`aria-labelledby`],"aria-required":l,role:`combobox`,"aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||``},c&&{"aria-controls":this.getElementId(`listbox`)}),!r&&{"aria-readonly":!0}),this.hasValue()?m?.action===`initial-input-focus`&&{"aria-describedby":this.getElementId(`live-region`)}:{"aria-describedby":this.getElementId(`placeholder`)});return r?e.createElement(d,Y({},h,{autoCapitalize:`none`,autoComplete:`off`,autoCorrect:`off`,id:g,innerRef:this.getInputRef,isDisabled:n,isHidden:p,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:`false`,tabIndex:o,form:s,type:`text`,value:a},_)):e.createElement(OF,Y({id:g,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:cN,onFocus:this.onInputFocus,disabled:n,tabIndex:o,inputMode:`none`,form:s,value:``},_))}},{key:`renderPlaceholderOrValue`,value:function(){var t=this,n=this.getComponents(),r=n.MultiValue,i=n.MultiValueContainer,a=n.MultiValueLabel,o=n.MultiValueRemove,s=n.SingleValue,c=n.Placeholder,l=this.commonProps,u=this.props,d=u.controlShouldRenderValue,f=u.isDisabled,p=u.isMulti,m=u.inputValue,h=u.placeholder,g=this.state,_=g.selectValue,v=g.focusedValue,y=g.isFocused;if(!this.hasValue()||!d)return m?null:e.createElement(c,Y({},l,{key:`placeholder`,isDisabled:f,isFocused:y,innerProps:{id:this.getElementId(`placeholder`)}}),h);if(p)return _.map(function(n,s){var c=n===v,u=`${t.getOptionLabel(n)}-${t.getOptionValue(n)}`;return e.createElement(r,Y({},l,{components:{Container:i,Label:a,Remove:o},isFocused:c,isDisabled:f,key:u,index:s,removeProps:{onClick:function(){return t.removeValue(n)},onTouchEnd:function(){return t.removeValue(n)},onMouseDown:function(e){e.preventDefault()}},data:n}),t.formatOptionLabel(n,`value`))});if(m)return null;var b=_[0];return e.createElement(s,Y({},l,{data:b,isDisabled:f}),this.formatOptionLabel(b,`value`))}},{key:`renderClearIndicator`,value:function(){var t=this.getComponents(),n=t.ClearIndicator,r=this.commonProps,i=this.props,a=i.isDisabled,o=i.isLoading,s=this.state.isFocused;if(!this.isClearable()||!n||a||!this.hasValue()||o)return null;var c={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":`true`};return e.createElement(n,Y({},r,{innerProps:c,isFocused:s}))}},{key:`renderLoadingIndicator`,value:function(){var t=this.getComponents(),n=t.LoadingIndicator,r=this.commonProps,i=this.props,a=i.isDisabled,o=i.isLoading,s=this.state.isFocused;if(!n||!o)return null;var c={"aria-hidden":`true`};return e.createElement(n,Y({},r,{innerProps:c,isDisabled:a,isFocused:s}))}},{key:`renderIndicatorSeparator`,value:function(){var t=this.getComponents(),n=t.DropdownIndicator,r=t.IndicatorSeparator;if(!n||!r)return null;var i=this.commonProps,a=this.props.isDisabled,o=this.state.isFocused;return e.createElement(r,Y({},i,{isDisabled:a,isFocused:o}))}},{key:`renderDropdownIndicator`,value:function(){var t=this.getComponents(),n=t.DropdownIndicator;if(!n)return null;var r=this.commonProps,i=this.props.isDisabled,a=this.state.isFocused,o={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":`true`};return e.createElement(n,Y({},r,{innerProps:o,isDisabled:i,isFocused:a}))}},{key:`renderMenu`,value:function(){var t=this,n=this.getComponents(),r=n.Group,i=n.GroupHeading,a=n.Menu,o=n.MenuList,s=n.MenuPortal,c=n.LoadingMessage,l=n.NoOptionsMessage,u=n.Option,d=this.commonProps,f=this.state.focusedOption,p=this.props,m=p.captureMenuScroll,h=p.inputValue,g=p.isLoading,_=p.loadingMessage,v=p.minMenuHeight,y=p.maxMenuHeight,b=p.menuIsOpen,x=p.menuPlacement,S=p.menuPosition,C=p.menuPortalTarget,w=p.menuShouldBlockScroll,T=p.menuShouldScrollIntoView,E=p.noOptionsMessage,D=p.onMenuScrollToTop,O=p.onMenuScrollToBottom;if(!b)return null;var k=function(n,r){var i=n.type,a=n.data,o=n.isDisabled,s=n.isSelected,c=n.label,l=n.value,p=f===a,m=o?void 0:function(){return t.onOptionHover(a)},h=o?void 0:function(){return t.selectOption(a)},g=`${t.getElementId(`option`)}-${r}`,_={id:g,onClick:h,onMouseMove:m,onMouseOver:m,tabIndex:-1,role:`option`,"aria-selected":t.isAppleDevice?void 0:s};return e.createElement(u,Y({},d,{innerProps:_,data:a,isDisabled:o,isSelected:s,key:g,label:c,type:i,value:l,isFocused:p,innerRef:p?t.getFocusedOptionRef:void 0}),t.formatOptionLabel(n.data,`menu`))},A;if(this.hasOptions())A=this.getCategorizedOptions().map(function(n){if(n.type===`group`){var a=n.data,o=n.options,s=n.index,c=`${t.getElementId(`group`)}-${s}`,l=`${c}-heading`;return e.createElement(r,Y({},d,{key:c,data:a,options:o,Heading:i,headingProps:{id:l,data:n.data},label:t.formatGroupLabel(n.data)}),n.options.map(function(e){return k(e,`${s}-${e.index}`)}))}else if(n.type===`option`)return k(n,`${n.index}`)});else if(g){var j=_({inputValue:h});if(j===null)return null;A=e.createElement(c,d,j)}else{var M=E({inputValue:h});if(M===null)return null;A=e.createElement(l,d,M)}var ee={minMenuHeight:v,maxMenuHeight:y,menuPlacement:x,menuPosition:S,menuShouldScrollIntoView:T},N=e.createElement(HN,Y({},d,ee),function(n){var r=n.ref,i=n.placerProps,s=i.placement,c=i.maxHeight;return e.createElement(a,Y({},d,ee,{innerRef:r,innerProps:{onMouseDown:t.onMenuMouseDown,onMouseMove:t.onMenuMouseMove},isLoading:g,placement:s}),e.createElement(UF,{captureEnabled:m,onTopArrive:D,onBottomArrive:O,lockEnabled:w},function(n){return e.createElement(o,Y({},d,{innerRef:function(e){t.getMenuListRef(e),n(e)},innerProps:{role:`listbox`,"aria-multiselectable":d.isMulti,id:t.getElementId(`listbox`)},isLoading:g,maxHeight:c,focusedOption:f}),A)}))});return C||S===`fixed`?e.createElement(s,Y({},d,{appendTo:C,controlElement:this.controlRef,menuPlacement:x,menuPosition:S}),N):N}},{key:`renderFormField`,value:function(){var t=this,n=this.props,r=n.delimiter,i=n.isDisabled,a=n.isMulti,o=n.name,s=n.required,c=this.state.selectValue;if(s&&!this.hasValue()&&!i)return e.createElement(KF,{name:o,onFocus:this.onValueInputFocus});if(!(!o||i))if(a)if(r){var l=c.map(function(e){return t.getOptionValue(e)}).join(r);return e.createElement(`input`,{name:o,type:`hidden`,value:l})}else{var u=c.length>0?c.map(function(n,r){return e.createElement(`input`,{key:`i-${r}`,name:o,type:`hidden`,value:t.getOptionValue(n)})}):e.createElement(`input`,{name:o,type:`hidden`,value:``});return e.createElement(`div`,null,u)}else{var d=c[0]?this.getOptionValue(c[0]):``;return e.createElement(`input`,{name:o,type:`hidden`,value:d})}}},{key:`renderLiveRegion`,value:function(){var t=this.commonProps,n=this.state,r=n.ariaSelection,i=n.focusedOption,a=n.focusedValue,o=n.isFocused,s=n.selectValue,c=this.getFocusableOptions();return e.createElement(hF,Y({},t,{id:this.getElementId(`live-region`),ariaSelection:r,focusedOption:i,focusedValue:a,isFocused:o,selectValue:s,focusableOptions:c,isAppleDevice:this.isAppleDevice}))}},{key:`render`,value:function(){var t=this.getComponents(),n=t.Control,r=t.IndicatorsContainer,i=t.SelectContainer,a=t.ValueContainer,o=this.props,s=o.className,c=o.id,l=o.isDisabled,u=o.menuIsOpen,d=this.state.isFocused,f=this.commonProps=this.getCommonProps();return e.createElement(i,Y({},f,{className:s,innerProps:{id:c,onKeyDown:this.onKeyDown},isDisabled:l,isFocused:d}),this.renderLiveRegion(),e.createElement(n,Y({},f,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:l,isFocused:d,menuIsOpen:u}),e.createElement(a,Y({},f,{isDisabled:l}),this.renderPlaceholderOrValue(),this.renderInput()),e.createElement(r,Y({},f,{isDisabled:l}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:`getDerivedStateFromProps`,value:function(e,t){var n=t.prevProps,r=t.clearFocusValueOnUpdate,i=t.inputIsHiddenAfterUpdate,a=t.ariaSelection,o=t.isFocused,s=t.prevWasFocused,c=t.instancePrefix,l=e.options,u=e.value,d=e.menuIsOpen,f=e.inputValue,p=e.isMulti,m=dN(u),h={};if(n&&(u!==n.value||l!==n.options||d!==n.menuIsOpen||f!==n.inputValue)){var g=d?gI(e,m):[],_=d?hI(pI(e,m),`${c}-option`):[],v=r?vI(t,m):null,y=yI(t,g),b=bI(_,y);h={selectValue:m,focusedOption:y,focusedOptionId:b,focusableOptionsWithIds:_,focusedValue:v,clearFocusValueOnUpdate:!1}}var x=i!=null&&e!==n?{inputIsHidden:i,inputIsHiddenAfterUpdate:void 0}:{},S=a,C=o&&s;return o&&!C&&(S={value:jN(p,m,m[0]||null),options:m,action:`initial-input-focus`},C=!s),a?.action===`initial-input-focus`&&(S=null),J(J(J({},h),x),{},{prevProps:e,ariaSelection:S,prevWasFocused:C})}}]),r}(r);OI.defaultProps=dI;var kI=c(function(t,n){var r=gA(t);return e.createElement(OI,Y({ref:n},r))}),AI=kI,jI=[`allowCreateWhileLoading`,`createOptionPosition`,`formatCreateLabel`,`isValidNewOption`,`getNewOptionData`,`onCreateOption`,`options`,`onChange`],MI=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:``,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=String(e).toLowerCase(),i=String(n.getOptionValue(t)).toLowerCase(),a=String(n.getOptionLabel(t)).toLowerCase();return i===r||a===r},NI={formatCreateLabel:function(e){return`Create "${e}"`},isValidNewOption:function(e,t,n,r){return!(!e||t.some(function(t){return MI(e,t,r)})||n.some(function(t){return MI(e,t,r)}))},getNewOptionData:function(e,t){return{label:t,value:e,__isNew__:!0}}};function PI(e){var t=e.allowCreateWhileLoading,n=t===void 0?!1:t,r=e.createOptionPosition,i=r===void 0?`last`:r,a=e.formatCreateLabel,o=a===void 0?NI.formatCreateLabel:a,s=e.isValidNewOption,c=s===void 0?NI.isValidNewOption:s,l=e.getNewOptionData,d=l===void 0?NI.getNewOptionData:l,f=e.onCreateOption,p=e.options,m=p===void 0?[]:p,h=e.onChange,_=mA(e,jI),v=_.getOptionValue,y=v===void 0?tI:v,b=_.getOptionLabel,x=b===void 0?eI:b,S=_.inputValue,C=_.isLoading,w=_.isMulti,T=_.value,E=_.name,D=g(function(){return c(S,dN(T),m,{getOptionValue:y,getOptionLabel:x})?d(S,o(S)):void 0},[o,d,x,y,S,c,m,T]),O=g(function(){return(n||!C)&&D?i===`first`?[D].concat(AA(m)):[].concat(AA(m),[D]):m},[n,i,C,D,m]),k=u(function(e,t){if(t.action!==`select-option`)return h(e,t);var n=Array.isArray(e)?e:[e];if(n[n.length-1]===D){if(f)f(S);else{var r=d(S,S),i={action:`create-option`,name:E,option:r};h(jN(w,[].concat(AA(dN(T)),[r]),r),i)}return}h(e,t)},[d,S,w,E,D,f,h,T]);return J(J({},_),{},{options:O,onChange:k})}var FI=c(function(t,n){var r=gA(t),i=PI(r);return e.createElement(OI,Y({ref:n},i))}),II=FI;const LI={text:{kGuDYH:`xkpwil5`,kLWn49:`x8r4c90`,kMwMTN:`xcmjw3v`,$$css:!0},container:{kfzvcC:`x67bb7w`,$$css:!0},control:{kaIpWk:`x1vx5ruh`,k3XXqK:`x1t137rt`,$$css:!0},regular:{kAzted:`x9bhmlw`,kpe85a:`x1ijmo5n`,kE3dHu:`x164ht6e`,$$css:!0},small:{kAzted:`xe0957l`,kpe85a:`x1d60ukw`,kE3dHu:`x15u6esi`,$$css:!0},open:{kqGeR4:`xfrllxf`,kYm2EN:`xjppbhk`,$$css:!0},left:{ksF3WI:`x1a2w583`,kYm2EN:`xjppbhk`,$$css:!0},right:{kIxVMA:`x1ia1hqs`,kqGeR4:`xfrllxf`,$$css:!0},menu:{kY2c9j:`x1q2oy4v`,k7Eaqz:`x1pshirs`,kqGeR4:`x1olqv08`,kYm2EN:`xhbaxng`,kMzoRj:`x15udo89`,ksu8eU:`x1y0btm7`,kVAM5u:`x19rljk3`,khDVqt:`xuxw1ft`,$$css:!0},menuList:{kY2c9j:`x1q2oy4v`,k7Eaqz:`x1pshirs`,kqGeR4:`x1olqv08`,kYm2EN:`xhbaxng`,kWkggS:`xrkmy7n`,$$css:!0},menuPortal:{kY2c9j:`x1snuhyv`,$$css:!0},groupHeading:{kWkggS:`x13zkdvk`,kE3dHu:`x164ht6e`,kpe85a:`x19pir32`,kLKAdn:`x1iul6r4`,kGO01o:`xes99ow`,kMwMTN:`x1t03eoi`,$$css:!0},option:{kE3dHu:`x164ht6e`,kpe85a:`x19pir32`,kLKAdn:`x1iul6r4`,kGO01o:`xes99ow`,kkrTdU:`xt0e3qv x1277o0a`,kWkggS:`xjbqb8w x5teegj`,$$css:!0},selected:{kWkggS:`x41mqee x5teegj`,$$css:!0},focused:{kWkggS:`x3m21qo x5teegj`,$$css:!0},placeholder:{kMwMTN:`xv668q7`,$$css:!0},multiValue:{kogj98:`x1l7c2xk`,kaIpWk:`x16eypsj`,kWkggS:`x116jm0a`,kE3dHu:`xf00w7v`,kpe85a:`x1d60ukw`,kLKAdn:`xrhwvvd`,kGO01o:`xnw97ix`,kGuDYH:`xkpwil5`,kLWn49:`x8r4c90`,$$css:!0},dropdownIndicator:{kMwMTN:`xg8dcc9 x1yok1h2 xkn4al8 x106xpe0`,$$css:!0},clearIndicator:{kMwMTN:`x1ru9b6h x111sopx`,$$css:!0},remove:{kMwMTN:`x1heor9g x111sopx`,$$css:!0}},RI=e=>b(iF.SelectContainer,{...e,innerProps:{...e.innerProps,"data-testid":e.selectProps.testId}}),zI=({options:e,value:t,placeholder:n=`select`,noOptionsMessage:r=`no matching options`,isSearchable:i=!0,creatable:a=!1,isMulti:o=!1,isClearable:s=!1,closeMenuOnSelect:c=!0,id:l,inputId:u,menuPortalTarget:d,getOptionLabel:f,getSelectedValueLabel:p,getOptionValue:m,onChange:h,menuIsOpen:g,menuPlacement:_=`auto`,extraClassNames:v,controlClassNames:y=``,xstyle:x,controlXstyle:S,contentXstyle:C,inputGroup:w,filterConfig:T,filterOption:E,small:D=!1,isDisabled:O=!1,showError:k=!1,isLoading:A=!1,formatGroupLabel:j,onRemove:M,defaultValue:ee,onMenuOpen:N,onMenuClose:te,components:P,onMenuInputFocus:ne,onInputChange:F,inputValue:re,onMenuScrollToBottom:ie,testId:ae})=>{let I={SelectContainer:RI,...P},oe=(e,{context:t})=>{let n=p||f;return f||p?t===`value`?n?n(e):e.label:f?f(e):e.label:e.label},se=(e,t)=>{if(o&&M&&t.action===`remove-value`){M({id:t.removedValue});return}h(e)},ce=c?void 0:!1,L=V(LI.text,LI.container,x),le=V(LI.text,LI.menu,C),R=V(LI.menuPortal,C),ue=e=>V(lO.base,LI.control,D?LI.small:LI.regular,e&&LI.open,w&&LI[w],k&&lO.invalid,O&&lO.disabled,S),z={id:l,value:t,inputId:u,placeholder:n,closeMenuOnSelect:c,blurInputOnSelect:ce,isSearchable:a?!0:i,isMulti:o,isClearable:s,isLoading:A,defaultValue:ee,noOptionsMessage:()=>r,menuPortalTarget:d,menuIsOpen:g,onChange:se,unstyled:!0,menuPlacement:_,formatOptionLabel:oe,formatGroupLabel:j,getOptionValue:m,options:e,isDisabled:O,"aria-invalid":k,onMenuOpen:N,onMenuClose:te,components:I,testId:ae,onMenuInputFocus:ne,onInputChange:F,inputValue:re,onMenuScrollToBottom:ie,captureMenuScroll:void 0,hideSelectedOptions:o,filterOption:E||(T?EF(T):void 0),styles:{container:e=>({...e,pointerEvents:void 0,...L.style}),control:(e,{menuIsOpen:t})=>({...e,minHeight:void 0,cursor:void 0,...ue(t).style}),menu:e=>({...e,zIndex:void 0,...le.style}),menuPortal:e=>({...e,zIndex:void 0,...R.style}),option:e=>({...e,cursor:void 0})},classNames:{control:({menuIsOpen:e})=>H(ue(e).className,y,`specSelectControl`),placeholder:()=>H({className:`xv668q7`}.className,`specOpenSelect`),container:()=>H(L.className,v),input:()=>H({className:`xkpwil5 x8r4c90 xcmjw3v`}.className,`specSelectInput`),menuList:()=>H({className:`x1q2oy4v x1pshirs x1olqv08 xhbaxng xrkmy7n`}.className,`specSelectMenu`),menu:()=>le.className??``,menuPortal:()=>R.className??``,dropdownIndicator:()=>H({className:`xg8dcc9 x1yok1h2 xkn4al8 x106xpe0`}.className,`specOpenIt`),option:({isSelected:e,isDisabled:t,isFocused:n})=>H(V(LI.option,e?LI.selected:n&&LI.focused).className,`specSelectOption`,t&&`specDisabledOption`),singleValue:()=>`specOpenSelect`,multiValue:()=>H({className:`x1l7c2xk x16eypsj x116jm0a xf00w7v x1d60ukw xrhwvvd xnw97ix xkpwil5 x8r4c90`}.className,`specOpenSelect`),multiValueRemove:()=>H({className:`x1heor9g x111sopx`}.className,`specSelectMultiValueRemove`),clearIndicator:()=>H({className:`x1ru9b6h x111sopx`}.className,`specClearSelect`),group:()=>`specSelectGroup`,groupHeading:()=>H({className:`x13zkdvk x164ht6e x19pir32 x1iul6r4 xes99ow x1t03eoi`}.className,`specSelectGroupHeading`)}};return b(a?II:AI,{...z})};var BI=zI;const VI=`qomponents`,HI={root:{k1xSpc:`x78zum5`,kwnvtZ:`x1a02dak`,kGNEyG:`x6s0dn4`,k1C7PZ:`xsin8gy`,khm7nJ:`x1fc8kun`,kMwMTN:`xcmjw3v`,kjj79g:`x13a6bvl`,$$css:!0},compact:{kUk6DE:`x98rzlu`,kjj79g:`x1qughib`,$$css:!0},controls:{k1xSpc:`x78zum5`,kwnvtZ:`xozqiw3`,kGNEyG:`x6s0dn4`,$$css:!0},nowrap:{khDVqt:`xuxw1ft`,$$css:!0},nav:{k1xSpc:`x78zum5`,$$css:!0},list:{k1xSpc:`x78zum5`,kH6xsr:`x3ct3a4`,kogj98:`x1ghz6dp`,kmVPX3:`x1717udv`,kGNEyG:`x6s0dn4`,$$css:!0},button:{kB7OPa:`x9f619`,kMv6JI:`xjb2p0i`,kGuDYH:`x1qlqyl8`,kLWn49:`x15bjb6t`,kVAEAm:`x1n2onr6`,koQZXg:`xh9i6ac`,k1xSpc:`x3nfvp2`,kGNEyG:`x6s0dn4`,kjj79g:`xl56j7k`,kMzoRj:`x15udo89`,ksu8eU:`x1y0btm7`,kVAM5u:`x19rljk3`,kWkggS:`xrkmy7n`,kMwMTN:`xcmjw3v x1yok1h2 xkn4al8 x106xpe0`,kMnn75:`xkrqix3`,kkrTdU:`x1ypdohk`,$$css:!0},disabled:{kkrTdU:`x1h6gzvc`,kSiTet:`xbyyjgo`,kfzvcC:`x47corl`,kMwMTN:`xcmjw3v x1nx92op xo23e2e x1loksi`,$$css:!0},active:{kY2c9j:`x1n327nk`,kVAM5u:`xd1tv35`,kWkggS:`x1o0y99h`,kMwMTN:`xeda06r xbsh3m4 xicz4o8 x1nmlygt`,$$css:!0},previous:{kIxVMA:`xx1126p`,kqGeR4:`xri6rhv`,$$css:!0},next:{ksF3WI:`x1jmbype`,kYm2EN:`x7lg8ah`,$$css:!0},break:{k1xSpc:`x3nfvp2`,kAzted:`x1in32aq`,k7Eaqz:`x19hwnzc`,kGNEyG:`x6s0dn4`,kjj79g:`xl56j7k`,kWkggS:`xjbqb8w`,kMwMTN:`xcmjw3v`,$$css:!0},goToSmall:{koQZXg:`xd8780z`,$$css:!0},wrapperNormal:{kqGvvJ:`x16ktcqu`,$$css:!0},labelNormal:{koQZXg:`x16ydxro`,$$css:!0}},UI={small:{k7Eaqz:`x1vi9356`,kAzted:`x1rqwxy8`,$$css:!0},normal:{k7Eaqz:`x19hwnzc`,kAzted:`x9bhmlw`,$$css:!0}},WI={small:{kg3NbH:`x1xijbu4`,k8WAf4:`xsplgde`,$$css:!0},normal:{kg3NbH:`x15ldat2`,k8WAf4:`x1t0vds8`,$$css:!0}},GI={small:{kzqmXN:`xnfjc3l`,$$css:!0},normal:{kzqmXN:`x1hetxy2`,$$css:!0}},KI={small:{kOIVth:`xvh977a`,$$css:!0},normal:{kOIVth:`xpj7pl4`,$$css:!0}},qI=e=>!Number.isFinite(e)||e<=0?0:Math.ceil(e),JI=({currentPage:e,pageCount:t,pageRangeDisplayed:n,marginPagesDisplayed:r})=>{if(t<=0)return[];let i=new Set,a=Math.min(n,t),o=Math.floor((a-1)/2),s=a-o-1,c=Math.max(e-o,1),l=Math.min(e+s,t);l-c+1<a&&(c===1?l=Math.min(t,c+a-1):l===t&&(c=Math.max(1,t-a+1)));for(let e=1;e<=Math.min(r,t);e+=1)i.add(e);for(let e=c;e<=l;e+=1)i.add(e);for(let e=Math.max(t-r+1,1);e<=t;e+=1)i.add(e);let u=[...i].sort((e,t)=>e-t),d=[];return u.forEach((e,t)=>{let n=u[t-1];if(n){let t=e-n;t===2?d.push({type:`page`,page:n+1}):t>2&&d.push({type:`break`,key:`break-${n}-${e}`})}d.push({type:`page`,page:e})}),d},YI=e=>Array.isArray(e)?e.map(e=>({label:e,value:e})):Array.from({length:Math.max(e,0)},(e,t)=>{let n=t+1;return{label:n,value:n}}),XI=({onPageChange:e,pageCount:t,pageNumber:n,pageSize:r,onPageSizeChange:i=()=>void 0,variant:a=`normal`,pageRangeDisplayed:o,marginPagesDisplayed:s,total:c,pageSizeOptions:l,size:u=`normal`,creatablePageSizes:d=!1,totalLabel:f,pageLabel:p,showLabel:m,previousLabel:h,previousAriaLabel:g,nextLabel:_,nextAriaLabel:v,breakLabel:y,pageClassName:S=``,pageLinkClassName:C=``,previousClassName:w=``,previousLinkClassName:T=``,nextClassName:E=``,nextLinkClassName:D=``,activeClassName:O=``,containerClassName:k=``,"aria-label":A,testId:j=`paginator`,xstyle:M,contentXstyle:ee})=>{let{t:N}=tA(VI),te=a===`compact`,P=f??N(`PAGINATOR.TOTAL`,{defaultValue:`Total:`}),ne=p??N(`PAGINATOR.PAGE`,{defaultValue:`Page:`}),F=m??N(`PAGINATOR.SHOW`,{defaultValue:`Show:`}),re=h??N(`PAGINATOR.PREVIOUS`,{defaultValue:`Previous`}),ie=g??N(`PAGINATOR.PREVIOUS`,{defaultValue:`Previous`}),ae=_??N(`PAGINATOR.NEXT`,{defaultValue:`Next`}),I=v??N(`PAGINATOR.NEXT`,{defaultValue:`Next`}),oe=y??N(`PAGINATOR.BREAK`,{defaultValue:`...`}),se=A??N(`PAGINATOR.ARIA_LABEL`,{defaultValue:`Pagination`}),ce=qI(t),L=r!=null,le=L?l??[5,10,15,20,50]:[],R=YI(le),ue=YI(ce),z=ce>0?Math.min(Math.max(n,1),ce):1,de=o??(te?1:2),fe=s??(te?1:2),pe=JI({currentPage:z,pageCount:ce,pageRangeDisplayed:de,marginPagesDisplayed:fe}),me=t=>{t&&e(t.value)},he=e=>{e&&i(e.value)},ge=V(HI.list),B=V(HI.button,UI[u],WI[u],HI.previous,(z<=1||ce<=0)&&HI.disabled),_e=V(HI.button,UI[u],WI[u],HI.next,(z>=ce||ce<=0)&&HI.disabled);return x(`div`,{...V(HI.root,te&&HI.compact,M),"data-testid":j,children:[x(`div`,{...V(HI.controls,KI[u]),children:[x(`div`,{"data-testid":`goToPageWrapper`,...V(HI.controls,KI[u],u===`small`?HI.goToSmall:HI.wrapperNormal),children:[c!==void 0&&x(`span`,{...V(HI.nowrap),children:[P,` `,b(`strong`,{children:c})]}),b(`span`,{children:ne}),b(BI,{small:u===`small`,placeholder:``,contentXstyle:ee,menuPortalTarget:typeof document>`u`?null:document.body,xstyle:GI[u],value:ue.find(({value:e})=>e===z),options:ue,isSearchable:!0,onChange:me})]}),L&&x(`div`,{"data-testid":`itemCountWrapper`,...V(HI.controls,KI[u],u===`normal`&&HI.wrapperNormal),children:[b(`span`,{...V(u===`normal`&&HI.labelNormal),children:F}),b(BI,{small:u===`small`,menuPlacement:`auto`,contentXstyle:ee,menuPortalTarget:typeof document>`u`?null:document.body,xstyle:GI[u],value:R.find(({value:e})=>e===r),options:R,isSearchable:!1,onChange:he,creatable:d})]})]}),b(`nav`,{"aria-label":se,...V(HI.nav),children:x(`ul`,{...ge,className:H(ge.className,k),children:[b(`li`,{className:w,children:b(`button`,{type:`button`,"aria-label":ie,disabled:z<=1||ce<=0,onClick:()=>e(z-1),...B,className:H(B.className,T),children:te?h??b(`span`,{"aria-hidden":`true`,children:`‹`}):re})}),pe.map(t=>{let n=V(HI.button,UI[u],WI[u],t.type===`page`&&t.page===z&&HI.active);return b(`li`,{className:t.type===`page`?`${S} ${t.page===z?O:``}`.trim():void 0,children:t.type===`page`?b(`button`,{type:`button`,"aria-current":t.page===z?`page`:void 0,"aria-label":N(`PAGINATOR.PAGE_NUMBER`,{page:t.page,defaultValue:`Page {{page}}`}),onClick:()=>{t.page!==z&&e(t.page)},...n,className:H(n.className,C),children:t.page}):b(`span`,{"aria-hidden":`true`,...V(HI.break,WI[u]),children:oe})},t.type===`page`?`page-${t.page}`:t.key)}),b(`li`,{className:E,children:b(`button`,{type:`button`,"aria-label":I,disabled:z>=ce||ce<=0,onClick:()=>e(z+1),..._e,className:H(_e.className,D),children:te?_??b(`span`,{"aria-hidden":`true`,children:`›`}):ae})})]})})]})};var ZI=XI;const QI={pill:{kB7OPa:`x9f619`,k1xSpc:`x3nfvp2`,kZKoxP:`xettwda`,kGNEyG:`x6s0dn4`,kaIpWk:`x10hpsqq`,kMzoRj:`x15udo89`,ksu8eU:`x1y0btm7`,kVAM5u:`x19ghwce`,kE3dHu:`x79ra4s`,kpe85a:`x33uob6`,kGuDYH:`xkpwil5`,kLWn49:`x8r4c90`,khDVqt:`xuxw1ft`,kWkggS:`x41mqee`,kMwMTN:`xuekoit`,$$css:!0}},$I=({children:e,testId:t,extraClassNames:n=``,xstyle:r})=>{let i=V(QI.pill,r);return b(`span`,{...i,"data-testid":t,className:H(i.className,n),children:e})};var eL=$I;function tL(t,n=[]){let r=[];function i(n,i){let a=e.createContext(i);a.displayName=n+`Context`;let o=r.length;r=[...r,i];let s=n=>{let{scope:r,children:i,...s}=n,c=r?.[t]?.[o]||a,l=e.useMemo(()=>s,Object.values(s));return b(c.Provider,{value:l,children:i})};s.displayName=n+`Provider`;function c(r,s){let c=s?.[t]?.[o]||a,l=e.useContext(c);if(l)return l;if(i!==void 0)return i;throw Error(`\`${r}\` must be used within \`${n}\``)}return[s,c]}let a=()=>{let n=r.map(t=>e.createContext(t));return function(r){let i=r?.[t]||n;return e.useMemo(()=>({[`__scope${t}`]:{...r,[t]:i}}),[r,i])}};return a.scopeName=t,[i,nL(a,...n)]}function nL(...t){let n=t[0];if(t.length===1)return n;let r=()=>{let r=t.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(t){let i=r.reduce((e,{useScope:n,scopeName:r})=>{let i=n(t),a=i[`__scope${r}`];return{...e,...a}},{});return e.useMemo(()=>({[`__scope${n.scopeName}`]:i}),[i])}};return r.scopeName=n.scopeName,r}var rL=Symbol.for(`react.lazy`),iL=e.use;function aL(e){return typeof e==`object`&&!!e&&`then`in e}function oL(e){return typeof e==`object`&&!!e&&`$$typeof`in e&&e.$$typeof===rL&&`_payload`in e&&aL(e._payload)}function sL(t){let n=cL(t),r=e.forwardRef((t,r)=>{let{children:i,...a}=t;oL(i)&&typeof iL==`function`&&(i=iL(i._payload));let o=e.Children.toArray(i),s=o.find(uL);if(s){let t=s.props.children,i=o.map(n=>n===s?e.Children.count(t)>1?e.Children.only(null):e.isValidElement(t)?t.props.children:null:n);return b(n,{...a,ref:r,children:e.isValidElement(t)?e.cloneElement(t,void 0,i):null})}return b(n,{...a,ref:r,children:i})});return r.displayName=`${t}.Slot`,r}function cL(t){let n=e.forwardRef((t,n)=>{let{children:r,...i}=t;if(oL(r)&&typeof iL==`function`&&(r=iL(r._payload)),e.isValidElement(r)){let t=fL(r),a=dL(i,r.props);return r.type!==e.Fragment&&(a.ref=n?ae(n,t):t),e.cloneElement(r,a)}return e.Children.count(r)>1?e.Children.only(null):null});return n.displayName=`${t}.SlotClone`,n}var lL=Symbol(`radix.slottable`);function uL(t){return e.isValidElement(t)&&typeof t.type==`function`&&`__radixId`in t.type&&t.type.__radixId===lL}function dL(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r],o=/^on[A-Z]/.test(r);o?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function fL(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var pL=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`],mL=pL.reduce((t,n)=>{let r=sL(`Primitive.${n}`),i=e.forwardRef((e,t)=>{let{asChild:i,...a}=e,o=i?r:n;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),b(o,{...a,ref:t})});return i.displayName=`Primitive.${n}`,{...t,[n]:i}},{}),hL=`Progress`,gL=100,[_L,vL]=tL(hL),[yL,bL]=_L(hL),xL=e.forwardRef((e,t)=>{let{__scopeProgress:n,value:r=null,max:i,getValueLabel:a=wL,...o}=e;(i||i===0)&&!DL(i)&&console.error(kL(`${i}`,`Progress`));let s=DL(i)?i:gL;r!==null&&!OL(r,s)&&console.error(AL(`${r}`,`Progress`));let c=OL(r,s)?r:null,l=EL(c)?a(c,s):void 0;return b(yL,{scope:n,value:c,max:s,children:b(mL.div,{"aria-valuemax":s,"aria-valuemin":0,"aria-valuenow":EL(c)?c:void 0,"aria-valuetext":l,role:`progressbar`,"data-state":TL(c,s),"data-value":c??void 0,"data-max":s,...o,ref:t})})});xL.displayName=hL;var SL=`ProgressIndicator`,CL=e.forwardRef((e,t)=>{let{__scopeProgress:n,...r}=e,i=bL(SL,n);return b(mL.div,{"data-state":TL(i.value,i.max),"data-value":i.value??void 0,"data-max":i.max,...r,ref:t})});CL.displayName=SL;function wL(e,t){return`${Math.round(e/t*100)}%`}function TL(e,t){return e==null?`indeterminate`:e===t?`complete`:`loading`}function EL(e){return typeof e==`number`}function DL(e){return EL(e)&&!isNaN(e)&&e>0}function OL(e,t){return EL(e)&&!isNaN(e)&&e<=t&&e>=0}function kL(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${gL}\`.`}function AL(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:
|
|
1143
|
+
`])),xP=function(e,t){var n=e.isFocused,r=e.size,i=e.theme,a=i.colors,o=i.spacing.baseUnit;return J({label:`loadingIndicator`,display:`flex`,transition:`color 150ms`,alignSelf:`center`,fontSize:r,lineHeight:1,marginRight:r,textAlign:`center`,verticalAlign:`middle`},t?{}:{color:n?a.neutral60:a.neutral20,padding:o*2})},SP=function(e){var t=e.delay,n=e.offset;return Q(`span`,{css:TM({animation:`${bP} 1s ease-in-out ${t}ms infinite;`,backgroundColor:`currentColor`,borderRadius:`1em`,display:`inline-block`,marginLeft:n?`1em`:void 0,height:`1em`,verticalAlign:`top`,width:`1em`},``,``)})},CP=function(e){var t=e.innerProps,n=e.isRtl,r=e.size,i=r===void 0?4:r,a=mA(e,cP);return Q(`div`,Y({},pN(J(J({},a),{},{innerProps:t,isRtl:n,size:i}),`loadingIndicator`,{indicator:!0,"loading-indicator":!0}),t),Q(SP,{delay:0,offset:n}),Q(SP,{delay:160,offset:!0}),Q(SP,{delay:320,offset:!n}))},wP=function(e,t){var n=e.isDisabled,r=e.isFocused,i=e.theme,a=i.colors,o=i.borderRadius,s=i.spacing;return J({label:`control`,alignItems:`center`,cursor:`default`,display:`flex`,flexWrap:`wrap`,justifyContent:`space-between`,minHeight:s.controlHeight,outline:`0 !important`,position:`relative`,transition:`all 100ms`},t?{}:{backgroundColor:n?a.neutral5:a.neutral0,borderColor:n?a.neutral10:r?a.primary:a.neutral20,borderRadius:o,borderStyle:`solid`,borderWidth:1,boxShadow:r?`0 0 0 1px ${a.primary}`:void 0,"&:hover":{borderColor:r?a.primary:a.neutral30}})},TP=function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,i=e.innerRef,a=e.innerProps,o=e.menuIsOpen;return Q(`div`,Y({ref:i},pN(e,`control`,{control:!0,"control--is-disabled":n,"control--is-focused":r,"control--menu-is-open":o}),a,{"aria-disabled":n||void 0}),t)},EP=TP,DP=[`data`],OP=function(e,t){var n=e.theme.spacing;return t?{}:{paddingBottom:n.baseUnit*2,paddingTop:n.baseUnit*2}},kP=function(e){var t=e.children,n=e.cx,r=e.getStyles,i=e.getClassNames,a=e.Heading,o=e.headingProps,s=e.innerProps,c=e.label,l=e.theme,u=e.selectProps;return Q(`div`,Y({},pN(e,`group`,{group:!0}),s),Q(a,Y({},o,{selectProps:u,theme:l,getStyles:r,getClassNames:i,cx:n}),c),Q(`div`,null,t))},AP=function(e,t){var n=e.theme,r=n.colors,i=n.spacing;return J({label:`group`,cursor:`default`,display:`block`},t?{}:{color:r.neutral40,fontSize:`75%`,fontWeight:500,marginBottom:`0.25em`,paddingLeft:i.baseUnit*3,paddingRight:i.baseUnit*3,textTransform:`uppercase`})},jP=function(e){var t=fN(e);t.data;var n=mA(t,DP);return Q(`div`,Y({},pN(e,`groupHeading`,{"group-heading":!0}),n))},MP=kP,NP=[`innerRef`,`isDisabled`,`isHidden`,`inputClassName`],PP=function(e,t){var n=e.isDisabled,r=e.value,i=e.theme,a=i.spacing,o=i.colors;return J(J({visibility:n?`hidden`:`visible`,transform:r?`translateZ(0)`:``},IP),t?{}:{margin:a.baseUnit/2,paddingBottom:a.baseUnit/2,paddingTop:a.baseUnit/2,color:o.neutral80})},FP={gridArea:`1 / 2`,font:`inherit`,minWidth:`2px`,border:0,margin:0,outline:0,padding:0},IP={flex:`1 1 auto`,display:`inline-grid`,gridArea:`1 / 1 / 2 / 3`,gridTemplateColumns:`0 min-content`,"&:after":J({content:`attr(data-value) " "`,visibility:`hidden`,whiteSpace:`pre`},FP)},LP=function(e){return J({label:`input`,color:`inherit`,background:0,opacity:e?0:1,width:`100%`},FP)},RP=function(e){var t=e.cx,n=e.value,r=fN(e),i=r.innerRef,a=r.isDisabled,o=r.isHidden,s=r.inputClassName,c=mA(r,NP);return Q(`div`,Y({},pN(e,`input`,{"input-container":!0}),{"data-value":n||``}),Q(`input`,Y({className:t({input:!0},s),ref:i,style:LP(o),disabled:a},c)))},zP=RP,BP=function(e,t){var n=e.theme,r=n.spacing,i=n.borderRadius,a=n.colors;return J({label:`multiValue`,display:`flex`,minWidth:0},t?{}:{backgroundColor:a.neutral10,borderRadius:i/2,margin:r.baseUnit/2})},VP=function(e,t){var n=e.theme,r=n.borderRadius,i=n.colors,a=e.cropWithEllipsis;return J({overflow:`hidden`,textOverflow:a||a===void 0?`ellipsis`:void 0,whiteSpace:`nowrap`},t?{}:{borderRadius:r/2,color:i.neutral80,fontSize:`85%`,padding:3,paddingLeft:6})},HP=function(e,t){var n=e.theme,r=n.spacing,i=n.borderRadius,a=n.colors,o=e.isFocused;return J({alignItems:`center`,display:`flex`},t?{}:{borderRadius:i/2,backgroundColor:o?a.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:a.dangerLight,color:a.danger}})},UP=function(e){var t=e.children,n=e.innerProps;return Q(`div`,n,t)},WP=UP,GP=UP;function KP(e){var t=e.children,n=e.innerProps;return Q(`div`,Y({role:`button`},n),t||Q(dP,{size:14}))}var qP=function(e){var t=e.children,n=e.components,r=e.data,i=e.innerProps,a=e.isDisabled,o=e.removeProps,s=e.selectProps,c=n.Container,l=n.Label,u=n.Remove;return Q(c,{data:r,innerProps:J(J({},pN(e,`multiValue`,{"multi-value":!0,"multi-value--is-disabled":a})),i),selectProps:s},Q(l,{data:r,innerProps:J({},pN(e,`multiValueLabel`,{"multi-value__label":!0})),selectProps:s},t),Q(u,{data:r,innerProps:J(J({},pN(e,`multiValueRemove`,{"multi-value__remove":!0})),{},{"aria-label":`Remove ${t||`option`}`},o),selectProps:s}))},JP=qP,YP=function(e,t){var n=e.isDisabled,r=e.isFocused,i=e.isSelected,a=e.theme,o=a.spacing,s=a.colors;return J({label:`option`,cursor:`default`,display:`block`,fontSize:`inherit`,width:`100%`,userSelect:`none`,WebkitTapHighlightColor:`rgba(0, 0, 0, 0)`},t?{}:{backgroundColor:i?s.primary:r?s.primary25:`transparent`,color:n?s.neutral20:i?s.neutral0:`inherit`,padding:`${o.baseUnit*2}px ${o.baseUnit*3}px`,":active":{backgroundColor:n?void 0:i?s.primary:s.primary50}})},XP=function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,i=e.isSelected,a=e.innerRef,o=e.innerProps;return Q(`div`,Y({},pN(e,`option`,{option:!0,"option--is-disabled":n,"option--is-focused":r,"option--is-selected":i}),{ref:a,"aria-disabled":n},o),t)},ZP=XP,QP=function(e,t){var n=e.theme,r=n.spacing,i=n.colors;return J({label:`placeholder`,gridArea:`1 / 1 / 2 / 3`},t?{}:{color:i.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},$P=function(e){var t=e.children,n=e.innerProps;return Q(`div`,Y({},pN(e,`placeholder`,{placeholder:!0}),n),t)},eF=$P,tF=function(e,t){var n=e.isDisabled,r=e.theme,i=r.spacing,a=r.colors;return J({label:`singleValue`,gridArea:`1 / 1 / 2 / 3`,maxWidth:`100%`,overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`},t?{}:{color:n?a.neutral40:a.neutral80,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},nF=function(e){var t=e.children,n=e.isDisabled,r=e.innerProps;return Q(`div`,Y({},pN(e,`singleValue`,{"single-value":!0,"single-value--is-disabled":n}),r),t)},rF=nF,iF={ClearIndicator:_P,Control:EP,DropdownIndicator:hP,DownChevron:fP,CrossIcon:dP,Group:MP,GroupHeading:jP,IndicatorsContainer:aP,IndicatorSeparator:yP,Input:zP,LoadingIndicator:CP,Menu:WN,MenuList:KN,MenuPortal:$N,LoadingMessage:ZN,NoOptionsMessage:XN,MultiValue:JP,MultiValueContainer:WP,MultiValueLabel:GP,MultiValueRemove:KP,Option:ZP,Placeholder:eF,SelectContainer:tP,SingleValue:rF,ValueContainer:rP},aF=function(e){return J(J({},iF),e.components)},oF=Number.isNaN||function(e){return typeof e==`number`&&e!==e};function sF(e,t){return!!(e===t||oF(e)&&oF(t))}function cF(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!sF(e[n],t[n]))return!1;return!0}function lF(e,t){t===void 0&&(t=cF);var n=null;function r(){var r=[...arguments];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var i=e.apply(this,r);return n={lastResult:i,lastArgs:r,lastThis:this},i}return r.clear=function(){n=null},r}for(var uF={name:`7pg0cj-a11yText`,styles:`label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap`},dF=function(e){return Q(`span`,Y({css:uF},e))},fF=dF,pF={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.tabSelectsValue,i=e.context,a=e.isInitialFocus;switch(i){case`menu`:return`Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu${r?`, press Tab to select the option and exit the menu`:``}.`;case`input`:return a?`${e[`aria-label`]||`Select`} is focused ${t?`,type to refine list`:``}, press Down to open the menu, ${n?` press left to focus selected values`:``}`:``;case`value`:return`Use left and right to toggle between focused values, press Backspace to remove the currently focused value`;default:return``}},onChange:function(e){var t=e.action,n=e.label,r=n===void 0?``:n,i=e.labels,a=e.isDisabled;switch(t){case`deselect-option`:case`pop-value`:case`remove-value`:return`option ${r}, deselected.`;case`clear`:return`All selected options have been cleared.`;case`initial-input-focus`:return`option${i.length>1?`s`:``} ${i.join(`,`)}, selected.`;case`select-option`:return a?`option ${r} is disabled. Select another option.`:`option ${r}, selected.`;default:return``}},onFocus:function(e){var t=e.context,n=e.focused,r=e.options,i=e.label,a=i===void 0?``:i,o=e.selectValue,s=e.isDisabled,c=e.isSelected,l=e.isAppleDevice,u=function(e,t){return e&&e.length?`${e.indexOf(t)+1} of ${e.length}`:``};if(t===`value`&&o)return`value ${a} focused, ${u(o,n)}.`;if(t===`menu`&&l){var d=s?` disabled`:``,f=`${c?` selected`:``}${d}`;return`${a}${f}, ${u(r,n)}.`}return``},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return`${n}${t?` for search term `+t:``}.`}},mF=function(e){var t=e.ariaSelection,n=e.focusedOption,r=e.focusedValue,a=e.focusableOptions,o=e.isFocused,s=e.selectValue,c=e.selectProps,l=e.id,u=e.isAppleDevice,d=c.ariaLiveMessages,f=c.getOptionLabel,p=c.inputValue,m=c.isMulti,h=c.isOptionDisabled,_=c.isSearchable,v=c.menuIsOpen,y=c.options,b=c.screenReaderStatus,x=c.tabSelectsValue,S=c.isLoading,C=c[`aria-label`],w=c[`aria-live`],T=g(function(){return J(J({},pF),d||{})},[d]),E=g(function(){var e=``;if(t&&T.onChange){var n=t.option,r=t.options,i=t.removedValue,a=t.removedValues,o=t.value,c=function(e){return Array.isArray(e)?null:e},l=i||n||c(o),u=l?f(l):``,d=r||a||void 0,p=d?d.map(f):[],m=J({isDisabled:l&&h(l,s),label:u,labels:p},t);e=T.onChange(m)}return e},[t,T,h,s,f]),D=g(function(){var e=``,t=n||r,i=!!(n&&s&&s.includes(n));if(t&&T.onFocus){var o={focused:t,label:f(t),isDisabled:h(t,s),isSelected:i,options:a,context:t===n?`menu`:`value`,selectValue:s,isAppleDevice:u};e=T.onFocus(o)}return e},[n,r,f,h,T,a,s,u]),O=g(function(){var e=``;if(v&&y.length&&!S&&T.onFilter){var t=b({count:a.length});e=T.onFilter({inputValue:p,resultsMessage:t})}return e},[a,p,v,T,y,b,S]),k=t?.action===`initial-input-focus`,A=g(function(){var e=``;if(T.guidance){var t=r?`value`:v?`menu`:`input`;e=T.guidance({"aria-label":C,context:t,isDisabled:n&&h(n,s),isMulti:m,isSearchable:_,tabSelectsValue:x,isInitialFocus:k})}return e},[C,n,r,m,h,_,v,T,s,x,k]),j=Q(i,null,Q(`span`,{id:`aria-selection`},E),Q(`span`,{id:`aria-focused`},D),Q(`span`,{id:`aria-results`},O),Q(`span`,{id:`aria-guidance`},A));return Q(i,null,Q(fF,{id:l},k&&j),Q(fF,{"aria-live":w,"aria-atomic":`false`,"aria-relevant":`additions text`,role:`log`},o&&!k&&j))},hF=mF,gF=[{base:`A`,letters:`AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ`},{base:`AA`,letters:`Ꜳ`},{base:`AE`,letters:`ÆǼǢ`},{base:`AO`,letters:`Ꜵ`},{base:`AU`,letters:`Ꜷ`},{base:`AV`,letters:`ꜸꜺ`},{base:`AY`,letters:`Ꜽ`},{base:`B`,letters:`BⒷBḂḄḆɃƂƁ`},{base:`C`,letters:`CⒸCĆĈĊČÇḈƇȻꜾ`},{base:`D`,letters:`DⒹDḊĎḌḐḒḎĐƋƊƉꝹ`},{base:`DZ`,letters:`DZDŽ`},{base:`Dz`,letters:`DzDž`},{base:`E`,letters:`EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ`},{base:`F`,letters:`FⒻFḞƑꝻ`},{base:`G`,letters:`GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ`},{base:`H`,letters:`HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ`},{base:`I`,letters:`IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ`},{base:`J`,letters:`JⒿJĴɈ`},{base:`K`,letters:`KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ`},{base:`L`,letters:`LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ`},{base:`LJ`,letters:`LJ`},{base:`Lj`,letters:`Lj`},{base:`M`,letters:`MⓂMḾṀṂⱮƜ`},{base:`N`,letters:`NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ`},{base:`NJ`,letters:`NJ`},{base:`Nj`,letters:`Nj`},{base:`O`,letters:`OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ`},{base:`OI`,letters:`Ƣ`},{base:`OO`,letters:`Ꝏ`},{base:`OU`,letters:`Ȣ`},{base:`P`,letters:`PⓅPṔṖƤⱣꝐꝒꝔ`},{base:`Q`,letters:`QⓆQꝖꝘɊ`},{base:`R`,letters:`RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ`},{base:`S`,letters:`SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ`},{base:`T`,letters:`TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ`},{base:`TZ`,letters:`Ꜩ`},{base:`U`,letters:`UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ`},{base:`V`,letters:`VⓋVṼṾƲꝞɅ`},{base:`VY`,letters:`Ꝡ`},{base:`W`,letters:`WⓌWẀẂŴẆẄẈⱲ`},{base:`X`,letters:`XⓍXẊẌ`},{base:`Y`,letters:`YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ`},{base:`Z`,letters:`ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ`},{base:`a`,letters:`aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ`},{base:`aa`,letters:`ꜳ`},{base:`ae`,letters:`æǽǣ`},{base:`ao`,letters:`ꜵ`},{base:`au`,letters:`ꜷ`},{base:`av`,letters:`ꜹꜻ`},{base:`ay`,letters:`ꜽ`},{base:`b`,letters:`bⓑbḃḅḇƀƃɓ`},{base:`c`,letters:`cⓒcćĉċčçḉƈȼꜿↄ`},{base:`d`,letters:`dⓓdḋďḍḑḓḏđƌɖɗꝺ`},{base:`dz`,letters:`dzdž`},{base:`e`,letters:`eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ`},{base:`f`,letters:`fⓕfḟƒꝼ`},{base:`g`,letters:`gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ`},{base:`h`,letters:`hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ`},{base:`hv`,letters:`ƕ`},{base:`i`,letters:`iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı`},{base:`j`,letters:`jⓙjĵǰɉ`},{base:`k`,letters:`kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ`},{base:`l`,letters:`lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ`},{base:`lj`,letters:`lj`},{base:`m`,letters:`mⓜmḿṁṃɱɯ`},{base:`n`,letters:`nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ`},{base:`nj`,letters:`nj`},{base:`o`,letters:`oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ`},{base:`oi`,letters:`ƣ`},{base:`ou`,letters:`ȣ`},{base:`oo`,letters:`ꝏ`},{base:`p`,letters:`pⓟpṕṗƥᵽꝑꝓꝕ`},{base:`q`,letters:`qⓠqɋꝗꝙ`},{base:`r`,letters:`rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ`},{base:`s`,letters:`sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ`},{base:`t`,letters:`tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ`},{base:`tz`,letters:`ꜩ`},{base:`u`,letters:`uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ`},{base:`v`,letters:`vⓥvṽṿʋꝟʌ`},{base:`vy`,letters:`ꝡ`},{base:`w`,letters:`wⓦwẁẃŵẇẅẘẉⱳ`},{base:`x`,letters:`xⓧxẋẍ`},{base:`y`,letters:`yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ`},{base:`z`,letters:`zⓩzźẑżžẓẕƶȥɀⱬꝣ`}],_F=RegExp(`[`+gF.map(function(e){return e.letters}).join(``)+`]`,`g`),vF={},yF=0;yF<gF.length;yF++)for(var bF=gF[yF],xF=0;xF<bF.letters.length;xF++)vF[bF.letters[xF]]=bF.base;var SF=function(e){return e.replace(_F,function(e){return vF[e]})},CF=lF(SF),wF=function(e){return e.replace(/^\s+|\s+$/g,``)},TF=function(e){return`${e.label} ${e.value}`},EF=function(e){return function(t,n){if(t.data.__isNew__)return!0;var r=J({ignoreCase:!0,ignoreAccents:!0,stringify:TF,trim:!0,matchFrom:`any`},e),i=r.ignoreCase,a=r.ignoreAccents,o=r.stringify,s=r.trim,c=r.matchFrom,l=s?wF(n):n,u=s?wF(o(t)):o(t);return i&&(l=l.toLowerCase(),u=u.toLowerCase()),a&&(l=CF(l),u=SF(u)),c===`start`?u.substr(0,l.length)===l:u.indexOf(l)>-1}},DF=[`innerRef`];function OF(e){var t=e.innerRef,n=mA(e,DF),r=PN(n,`onExited`,`in`,`enter`,`exit`,`appear`);return Q(`input`,Y({ref:t},r,{css:TM({label:`dummyInput`,background:0,border:0,caretColor:`transparent`,fontSize:`inherit`,gridArea:`1 / 1 / 2 / 3`,outline:0,padding:0,width:1,color:`transparent`,left:-100,opacity:0,position:`relative`,transform:`scale(.01)`},``,``)}))}var kF=function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()};function AF(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,i=e.onTopArrive,a=e.onTopLeave,o=_(!1),s=_(!1),c=_(0),l=_(null),d=u(function(e,t){if(l.current!==null){var c=l.current,u=c.scrollTop,d=c.scrollHeight,f=c.clientHeight,p=l.current,m=t>0,h=d-f-u,g=!1;h>t&&o.current&&(r&&r(e),o.current=!1),m&&s.current&&(a&&a(e),s.current=!1),m&&t>h?(n&&!o.current&&n(e),p.scrollTop=d,g=!0,o.current=!0):!m&&-t>u&&(i&&!s.current&&i(e),p.scrollTop=0,g=!0,s.current=!0),g&&kF(e)}},[n,r,i,a]),p=u(function(e){d(e,e.deltaY)},[d]),m=u(function(e){c.current=e.changedTouches[0].clientY},[]),h=u(function(e){var t=c.current-e.changedTouches[0].clientY;d(e,t)},[d]),g=u(function(e){if(e){var t=ON?{passive:!1}:!1;e.addEventListener(`wheel`,p,t),e.addEventListener(`touchstart`,m,t),e.addEventListener(`touchmove`,h,t)}},[h,m,p]),v=u(function(e){e&&(e.removeEventListener(`wheel`,p,!1),e.removeEventListener(`touchstart`,m,!1),e.removeEventListener(`touchmove`,h,!1))},[h,m,p]);return f(function(){if(t){var e=l.current;return g(e),function(){v(e)}}},[t,g,v]),function(e){l.current=e}}var jF=[`boxSizing`,`height`,`overflow`,`paddingRight`,`position`],MF={boxSizing:`border-box`,overflow:`hidden`,position:`relative`,height:`100%`};function NF(e){e.cancelable&&e.preventDefault()}function PF(e){e.stopPropagation()}function FF(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;e===0?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function IF(){return`ontouchstart`in window||navigator.maxTouchPoints}var LF=!!(typeof window<`u`&&window.document&&window.document.createElement),RF=0,zF={capture:!1,passive:!1};function BF(e){var t=e.isEnabled,n=e.accountForScrollbars,r=n===void 0?!0:n,i=_({}),a=_(null),o=u(function(e){if(LF){var t=document.body,n=t&&t.style;if(r&&jF.forEach(function(e){var t=n&&n[e];i.current[e]=t}),r&&RF<1){var a=parseInt(i.current.paddingRight,10)||0,o=document.body?document.body.clientWidth:0,s=window.innerWidth-o+a||0;Object.keys(MF).forEach(function(e){var t=MF[e];n&&(n[e]=t)}),n&&(n.paddingRight=`${s}px`)}t&&IF()&&(t.addEventListener(`touchmove`,NF,zF),e&&(e.addEventListener(`touchstart`,FF,zF),e.addEventListener(`touchmove`,PF,zF))),RF+=1}},[r]),s=u(function(e){if(LF){var t=document.body,n=t&&t.style;RF=Math.max(RF-1,0),r&&RF<1&&jF.forEach(function(e){var t=i.current[e];n&&(n[e]=t)}),t&&IF()&&(t.removeEventListener(`touchmove`,NF,zF),e&&(e.removeEventListener(`touchstart`,FF,zF),e.removeEventListener(`touchmove`,PF,zF)))}},[r]);return f(function(){if(t){var e=a.current;return o(e),function(){s(e)}}},[t,o,s]),function(e){a.current=e}}var VF=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},HF={name:`1kfdb0e`,styles:`position:fixed;left:0;bottom:0;right:0;top:0`};function UF(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,a=r===void 0?!0:r,o=e.onBottomArrive,s=e.onBottomLeave,c=e.onTopArrive,l=e.onTopLeave,u=AF({isEnabled:a,onBottomArrive:o,onBottomLeave:s,onTopArrive:c,onTopLeave:l}),d=BF({isEnabled:n}),f=function(e){u(e),d(e)};return Q(i,null,n&&Q(`div`,{onClick:VF,css:HF}),t(f))}var WF={name:`1a0ro4n-requiredInput`,styles:`label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%`},GF=function(e){var t=e.name,n=e.onFocus;return Q(`input`,{required:!0,name:t,tabIndex:-1,"aria-hidden":`true`,onFocus:n,css:WF,value:``,onChange:function(){}})},KF=GF;function qF(e){var t;return typeof window<`u`&&window.navigator!=null?e.test((t=window.navigator.userAgentData)?.platform||window.navigator.platform):!1}function JF(){return qF(/^iPhone/i)}function YF(){return qF(/^Mac/i)}function XF(){return qF(/^iPad/i)||YF()&&navigator.maxTouchPoints>1}function ZF(){return JF()||XF()}function QF(){return YF()||ZF()}var $F=function(e){return e.label},eI=function(e){return e.label},tI=function(e){return e.value},nI=function(e){return!!e.isDisabled},rI={clearIndicator:gP,container:eP,control:wP,dropdownIndicator:mP,group:OP,groupHeading:AP,indicatorsContainer:iP,indicatorSeparator:vP,input:PP,loadingIndicator:xP,loadingMessage:YN,menu:BN,menuList:GN,menuPortal:QN,multiValue:BP,multiValueLabel:VP,multiValueRemove:HP,noOptionsMessage:JN,option:YP,placeholder:QP,singleValue:tF,valueContainer:nP},iI={primary:`#2684FF`,primary75:`#4C9AFF`,primary50:`#B2D4FF`,primary25:`#DEEBFF`,danger:`#DE350B`,dangerLight:`#FFBDAD`,neutral0:`hsl(0, 0%, 100%)`,neutral5:`hsl(0, 0%, 95%)`,neutral10:`hsl(0, 0%, 90%)`,neutral20:`hsl(0, 0%, 80%)`,neutral30:`hsl(0, 0%, 70%)`,neutral40:`hsl(0, 0%, 60%)`,neutral50:`hsl(0, 0%, 50%)`,neutral60:`hsl(0, 0%, 40%)`,neutral70:`hsl(0, 0%, 30%)`,neutral80:`hsl(0, 0%, 20%)`,neutral90:`hsl(0, 0%, 10%)`},aI=4,oI=4,sI=38,cI=oI*2,lI={baseUnit:oI,controlHeight:sI,menuGutter:cI},uI={borderRadius:aI,colors:iI,spacing:lI},dI={"aria-live":`polite`,backspaceRemovesValue:!0,blurInputOnSelect:CN(),captureMenuScroll:!CN(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:EF(),formatGroupLabel:$F,getOptionLabel:eI,getOptionValue:tI,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:nI,loadingMessage:function(){return`Loading...`},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:`bottom`,menuPosition:`absolute`,menuShouldBlockScroll:!1,menuShouldScrollIntoView:!wN(),noOptionsMessage:function(){return`No options`},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:`Select...`,screenReaderStatus:function(e){var t=e.count;return`${t} result${t===1?``:`s`} available`},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function fI(e,t,n,r){var i=CI(e,t,n),a=wI(e,t,n),o=xI(e,t),s=SI(e,t);return{type:`option`,data:t,isDisabled:i,isSelected:a,label:o,value:s,index:r}}function pI(e,t){return e.options.map(function(n,r){if(`options`in n){var i=n.options.map(function(n,r){return fI(e,n,t,r)}).filter(function(t){return _I(e,t)});return i.length>0?{type:`group`,data:n,options:i,index:r}:void 0}var a=fI(e,n,t,r);return _I(e,a)?a:void 0}).filter(kN)}function mI(e){return e.reduce(function(e,t){return t.type===`group`?e.push.apply(e,AA(t.options.map(function(e){return e.data}))):e.push(t.data),e},[])}function hI(e,t){return e.reduce(function(e,n){return n.type===`group`?e.push.apply(e,AA(n.options.map(function(e){return{data:e.data,id:`${t}-${n.index}-${e.index}`}}))):e.push({data:n.data,id:`${t}-${n.index}`}),e},[])}function gI(e,t){return mI(pI(e,t))}function _I(e,t){var n=e.inputValue,r=n===void 0?``:n,i=t.data,a=t.isSelected,o=t.label,s=t.value;return(!EI(e)||!a)&&TI(e,{label:o,value:s,data:i},r)}function vI(e,t){var n=e.focusedValue,r=e.selectValue,i=r.indexOf(n);if(i>-1){var a=t.indexOf(n);if(a>-1)return n;if(i<t.length)return t[i]}return null}function yI(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}var bI=function(e,t){var n,r=(n=e.find(function(e){return e.data===t}))?.id;return r||null},xI=function(e,t){return e.getOptionLabel(t)},SI=function(e,t){return e.getOptionValue(t)};function CI(e,t,n){return typeof e.isOptionDisabled==`function`?e.isOptionDisabled(t,n):!1}function wI(e,t,n){if(n.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected==`function`)return e.isOptionSelected(t,n);var r=SI(e,t);return n.some(function(t){return SI(e,t)===r})}function TI(e,t,n){return e.filterOption?e.filterOption(t,n):!0}var EI=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return t===void 0?n:t},DI=1,OI=function(t){xA(r,t);var n=EA(r);function r(e){var t;if(_A(this,r),t=n.call(this,e),t.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:``},t.blockOptionHover=!1,t.isComposing=!1,t.commonProps=void 0,t.initialTouchX=0,t.initialTouchY=0,t.openAfterFocus=!1,t.scrollToFocusedOptionOnUpdate=!1,t.userIsDragging=void 0,t.isAppleDevice=QF(),t.controlRef=null,t.getControlRef=function(e){t.controlRef=e},t.focusedOptionRef=null,t.getFocusedOptionRef=function(e){t.focusedOptionRef=e},t.menuListRef=null,t.getMenuListRef=function(e){t.menuListRef=e},t.inputRef=null,t.getInputRef=function(e){t.inputRef=e},t.focus=t.focusInput,t.blur=t.blurInput,t.onChange=function(e,n){var r=t.props,i=r.onChange,a=r.name;n.name=a,t.ariaOnChange(e,n),i(e,n)},t.setValue=function(e,n,r){var i=t.props,a=i.closeMenuOnSelect,o=i.isMulti,s=i.inputValue;t.onInputChange(``,{action:`set-value`,prevInputValue:s}),a&&(t.setState({inputIsHiddenAfterUpdate:!o}),t.onMenuClose()),t.setState({clearFocusValueOnUpdate:!0}),t.onChange(e,{action:n,option:r})},t.selectOption=function(e){var n=t.props,r=n.blurInputOnSelect,i=n.isMulti,a=n.name,o=t.state.selectValue,s=i&&t.isOptionSelected(e,o),c=t.isOptionDisabled(e,o);if(s){var l=t.getOptionValue(e);t.setValue(NN(o.filter(function(e){return t.getOptionValue(e)!==l})),`deselect-option`,e)}else if(!c)i?t.setValue(NN([].concat(AA(o),[e])),`select-option`,e):t.setValue(MN(e),`select-option`);else{t.ariaOnChange(MN(e),{action:`select-option`,option:e,name:a});return}r&&t.blurInput()},t.removeValue=function(e){var n=t.props.isMulti,r=t.state.selectValue,i=t.getOptionValue(e),a=r.filter(function(e){return t.getOptionValue(e)!==i}),o=jN(n,a,a[0]||null);t.onChange(o,{action:`remove-value`,removedValue:e}),t.focusInput()},t.clearValue=function(){var e=t.state.selectValue;t.onChange(jN(t.props.isMulti,[],null),{action:`clear`,removedValues:e})},t.popValue=function(){var e=t.props.isMulti,n=t.state.selectValue,r=n[n.length-1],i=n.slice(0,n.length-1),a=jN(e,i,i[0]||null);r&&t.onChange(a,{action:`pop-value`,removedValue:r})},t.getFocusedOptionId=function(e){return bI(t.state.focusableOptionsWithIds,e)},t.getFocusableOptionsWithIds=function(){return hI(pI(t.props,t.state.selectValue),t.getElementId(`option`))},t.getValue=function(){return t.state.selectValue},t.cx=function(){var e=[...arguments];return uN.apply(void 0,[t.props.classNamePrefix].concat(e))},t.getOptionLabel=function(e){return xI(t.props,e)},t.getOptionValue=function(e){return SI(t.props,e)},t.getStyles=function(e,n){var r=t.props.unstyled,i=rI[e](n,r);i.boxSizing=`border-box`;var a=t.props.styles[e];return a?a(i,n):i},t.getClassNames=function(e,n){var r,i;return(r=(i=t.props.classNames)[e])?.call(i,n)},t.getElementId=function(e){return`${t.state.instancePrefix}-${e}`},t.getComponents=function(){return aF(t.props)},t.buildCategorizedOptions=function(){return pI(t.props,t.state.selectValue)},t.getCategorizedOptions=function(){return t.props.menuIsOpen?t.buildCategorizedOptions():[]},t.buildFocusableOptions=function(){return mI(t.buildCategorizedOptions())},t.getFocusableOptions=function(){return t.props.menuIsOpen?t.buildFocusableOptions():[]},t.ariaOnChange=function(e,n){t.setState({ariaSelection:J({value:e},n)})},t.onMenuMouseDown=function(e){e.button===0&&(e.stopPropagation(),e.preventDefault(),t.focusInput())},t.onMenuMouseMove=function(e){t.blockOptionHover=!1},t.onControlMouseDown=function(e){if(!e.defaultPrevented){var n=t.props.openMenuOnClick;t.state.isFocused?t.props.menuIsOpen?e.target.tagName!==`INPUT`&&e.target.tagName!==`TEXTAREA`&&t.onMenuClose():n&&t.openMenu(`first`):(n&&(t.openAfterFocus=!0),t.focusInput()),e.target.tagName!==`INPUT`&&e.target.tagName!==`TEXTAREA`&&e.preventDefault()}},t.onDropdownIndicatorMouseDown=function(e){if(!(e&&e.type===`mousedown`&&e.button!==0)&&!t.props.isDisabled){var n=t.props,r=n.isMulti,i=n.menuIsOpen;t.focusInput(),i?(t.setState({inputIsHiddenAfterUpdate:!r}),t.onMenuClose()):t.openMenu(`first`),e.preventDefault()}},t.onClearIndicatorMouseDown=function(e){e&&e.type===`mousedown`&&e.button!==0||(t.clearValue(),e.preventDefault(),t.openAfterFocus=!1,e.type===`touchend`?t.focusInput():setTimeout(function(){return t.focusInput()}))},t.onScroll=function(e){typeof t.props.closeMenuOnScroll==`boolean`?e.target instanceof HTMLElement&&mN(e.target)&&t.props.onMenuClose():typeof t.props.closeMenuOnScroll==`function`&&t.props.closeMenuOnScroll(e)&&t.props.onMenuClose()},t.onCompositionStart=function(){t.isComposing=!0},t.onCompositionEnd=function(){t.isComposing=!1},t.onTouchStart=function(e){var n=e.touches,r=n&&n.item(0);r&&(t.initialTouchX=r.clientX,t.initialTouchY=r.clientY,t.userIsDragging=!1)},t.onTouchMove=function(e){var n=e.touches,r=n&&n.item(0);if(r){var i=Math.abs(r.clientX-t.initialTouchX),a=Math.abs(r.clientY-t.initialTouchY),o=5;t.userIsDragging=i>o||a>o}},t.onTouchEnd=function(e){t.userIsDragging||(t.controlRef&&!t.controlRef.contains(e.target)&&t.menuListRef&&!t.menuListRef.contains(e.target)&&t.blurInput(),t.initialTouchX=0,t.initialTouchY=0)},t.onControlTouchEnd=function(e){t.userIsDragging||t.onControlMouseDown(e)},t.onClearIndicatorTouchEnd=function(e){t.userIsDragging||t.onClearIndicatorMouseDown(e)},t.onDropdownIndicatorTouchEnd=function(e){t.userIsDragging||t.onDropdownIndicatorMouseDown(e)},t.handleInputChange=function(e){var n=t.props.inputValue,r=e.currentTarget.value;t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange(r,{action:`input-change`,prevInputValue:n}),t.props.menuIsOpen||t.onMenuOpen()},t.onInputFocus=function(e){t.props.onFocus&&t.props.onFocus(e),t.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(t.openAfterFocus||t.props.openMenuOnFocus)&&t.openMenu(`first`),t.openAfterFocus=!1},t.onInputBlur=function(e){var n=t.props.inputValue;if(t.menuListRef&&t.menuListRef.contains(document.activeElement)){t.inputRef.focus();return}t.props.onBlur&&t.props.onBlur(e),t.onInputChange(``,{action:`input-blur`,prevInputValue:n}),t.onMenuClose(),t.setState({focusedValue:null,isFocused:!1})},t.onOptionHover=function(e){if(!(t.blockOptionHover||t.state.focusedOption===e)){var n=t.getFocusableOptions(),r=n.indexOf(e);t.setState({focusedOption:e,focusedOptionId:r>-1?t.getFocusedOptionId(e):null})}},t.shouldHideSelectedOptions=function(){return EI(t.props)},t.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),t.focus()},t.onKeyDown=function(e){var n=t.props,r=n.isMulti,i=n.backspaceRemovesValue,a=n.escapeClearsValue,o=n.inputValue,s=n.isClearable,c=n.isDisabled,l=n.menuIsOpen,u=n.onKeyDown,d=n.tabSelectsValue,f=n.openMenuOnFocus,p=t.state,m=p.focusedOption,h=p.focusedValue,g=p.selectValue;if(!c&&!(typeof u==`function`&&(u(e),e.defaultPrevented))){switch(t.blockOptionHover=!0,e.key){case`ArrowLeft`:if(!r||o)return;t.focusValue(`previous`);break;case`ArrowRight`:if(!r||o)return;t.focusValue(`next`);break;case`Delete`:case`Backspace`:if(o)return;if(h)t.removeValue(h);else{if(!i)return;r?t.popValue():s&&t.clearValue()}break;case`Tab`:if(t.isComposing||e.shiftKey||!l||!d||!m||f&&t.isOptionSelected(m,g))return;t.selectOption(m);break;case`Enter`:if(e.keyCode===229)break;if(l){if(!m||t.isComposing)return;t.selectOption(m);break}return;case`Escape`:l?(t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange(``,{action:`menu-close`,prevInputValue:o}),t.onMenuClose()):s&&a&&t.clearValue();break;case` `:if(o)return;if(!l){t.openMenu(`first`);break}if(!m)return;t.selectOption(m);break;case`ArrowUp`:l?t.focusOption(`up`):t.openMenu(`last`);break;case`ArrowDown`:l?t.focusOption(`down`):t.openMenu(`first`);break;case`PageUp`:if(!l)return;t.focusOption(`pageup`);break;case`PageDown`:if(!l)return;t.focusOption(`pagedown`);break;case`Home`:if(!l)return;t.focusOption(`first`);break;case`End`:if(!l)return;t.focusOption(`last`);break;default:return}e.preventDefault()}},t.state.instancePrefix=`react-select-`+(t.props.instanceId||++DI),t.state.selectValue=dN(e.value),e.menuIsOpen&&t.state.selectValue.length){var i=t.getFocusableOptionsWithIds(),a=t.buildFocusableOptions(),o=a.indexOf(t.state.selectValue[0]);t.state.focusableOptionsWithIds=i,t.state.focusedOption=a[o],t.state.focusedOptionId=bI(i,a[o])}return t}return yA(r,[{key:`componentDidMount`,value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener(`scroll`,this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&xN(this.menuListRef,this.focusedOptionRef)}},{key:`componentDidUpdate`,value:function(e){var t=this.props,n=t.isDisabled,r=t.menuIsOpen,i=this.state.isFocused;(i&&!n&&e.isDisabled||i&&r&&!e.menuIsOpen)&&this.focusInput(),i&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!i&&!n&&e.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(xN(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:`componentWillUnmount`,value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener(`scroll`,this.onScroll,!0)}},{key:`onMenuOpen`,value:function(){this.props.onMenuOpen()}},{key:`onMenuClose`,value:function(){this.onInputChange(``,{action:`menu-close`,prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:`onInputChange`,value:function(e,t){this.props.onInputChange(e,t)}},{key:`focusInput`,value:function(){this.inputRef&&this.inputRef.focus()}},{key:`blurInput`,value:function(){this.inputRef&&this.inputRef.blur()}},{key:`openMenu`,value:function(e){var t=this,n=this.state,r=n.selectValue,i=n.isFocused,a=this.buildFocusableOptions(),o=e===`first`?0:a.length-1;if(!this.props.isMulti){var s=a.indexOf(r[0]);s>-1&&(o=s)}this.scrollToFocusedOptionOnUpdate=!(i&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:a[o],focusedOptionId:this.getFocusedOptionId(a[o])},function(){return t.onMenuOpen()})}},{key:`focusValue`,value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var i=n.indexOf(r);r||(i=-1);var a=n.length-1,o=-1;if(n.length){switch(e){case`previous`:o=i===0?0:i===-1?a:i-1;break;case`next`:i>-1&&i<a&&(o=i+1);break}this.setState({inputIsHidden:o!==-1,focusedValue:n[o]})}}}},{key:`focusOption`,value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:`first`,t=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var i=0,a=r.indexOf(n);n||(a=-1),e===`up`?i=a>0?a-1:r.length-1:e===`down`?i=(a+1)%r.length:e===`pageup`?(i=a-t,i<0&&(i=0)):e===`pagedown`?(i=a+t,i>r.length-1&&(i=r.length-1)):e===`last`&&(i=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[i],focusedValue:null,focusedOptionId:this.getFocusedOptionId(r[i])})}}},{key:`getTheme`,value:function(){return this.props.theme?typeof this.props.theme==`function`?this.props.theme(uI):J(J({},uI),this.props.theme):uI}},{key:`getCommonProps`,value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getClassNames,i=this.getValue,a=this.selectOption,o=this.setValue,s=this.props,c=s.isMulti,l=s.isRtl,u=s.options,d=this.hasValue();return{clearValue:e,cx:t,getStyles:n,getClassNames:r,getValue:i,hasValue:d,isMulti:c,isRtl:l,options:u,selectOption:a,selectProps:s,setValue:o,theme:this.getTheme()}}},{key:`hasValue`,value:function(){var e=this.state.selectValue;return e.length>0}},{key:`hasOptions`,value:function(){return!!this.getFocusableOptions().length}},{key:`isClearable`,value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return t===void 0?n:t}},{key:`isOptionDisabled`,value:function(e,t){return CI(this.props,e,t)}},{key:`isOptionSelected`,value:function(e,t){return wI(this.props,e,t)}},{key:`filterOption`,value:function(e,t){return TI(this.props,e,t)}},{key:`formatOptionLabel`,value:function(e,t){if(typeof this.props.formatOptionLabel==`function`){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}else return this.getOptionLabel(e)}},{key:`formatGroupLabel`,value:function(e){return this.props.formatGroupLabel(e)}},{key:`startListeningComposition`,value:function(){document&&document.addEventListener&&(document.addEventListener(`compositionstart`,this.onCompositionStart,!1),document.addEventListener(`compositionend`,this.onCompositionEnd,!1))}},{key:`stopListeningComposition`,value:function(){document&&document.removeEventListener&&(document.removeEventListener(`compositionstart`,this.onCompositionStart),document.removeEventListener(`compositionend`,this.onCompositionEnd))}},{key:`startListeningToTouch`,value:function(){document&&document.addEventListener&&(document.addEventListener(`touchstart`,this.onTouchStart,!1),document.addEventListener(`touchmove`,this.onTouchMove,!1),document.addEventListener(`touchend`,this.onTouchEnd,!1))}},{key:`stopListeningToTouch`,value:function(){document&&document.removeEventListener&&(document.removeEventListener(`touchstart`,this.onTouchStart),document.removeEventListener(`touchmove`,this.onTouchMove),document.removeEventListener(`touchend`,this.onTouchEnd))}},{key:`renderInput`,value:function(){var t=this.props,n=t.isDisabled,r=t.isSearchable,i=t.inputId,a=t.inputValue,o=t.tabIndex,s=t.form,c=t.menuIsOpen,l=t.required,u=this.getComponents(),d=u.Input,f=this.state,p=f.inputIsHidden,m=f.ariaSelection,h=this.commonProps,g=i||this.getElementId(`input`),_=J(J(J({"aria-autocomplete":`list`,"aria-expanded":c,"aria-haspopup":!0,"aria-errormessage":this.props[`aria-errormessage`],"aria-invalid":this.props[`aria-invalid`],"aria-label":this.props[`aria-label`],"aria-labelledby":this.props[`aria-labelledby`],"aria-required":l,role:`combobox`,"aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||``},c&&{"aria-controls":this.getElementId(`listbox`)}),!r&&{"aria-readonly":!0}),this.hasValue()?m?.action===`initial-input-focus`&&{"aria-describedby":this.getElementId(`live-region`)}:{"aria-describedby":this.getElementId(`placeholder`)});return r?e.createElement(d,Y({},h,{autoCapitalize:`none`,autoComplete:`off`,autoCorrect:`off`,id:g,innerRef:this.getInputRef,isDisabled:n,isHidden:p,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:`false`,tabIndex:o,form:s,type:`text`,value:a},_)):e.createElement(OF,Y({id:g,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:cN,onFocus:this.onInputFocus,disabled:n,tabIndex:o,inputMode:`none`,form:s,value:``},_))}},{key:`renderPlaceholderOrValue`,value:function(){var t=this,n=this.getComponents(),r=n.MultiValue,i=n.MultiValueContainer,a=n.MultiValueLabel,o=n.MultiValueRemove,s=n.SingleValue,c=n.Placeholder,l=this.commonProps,u=this.props,d=u.controlShouldRenderValue,f=u.isDisabled,p=u.isMulti,m=u.inputValue,h=u.placeholder,g=this.state,_=g.selectValue,v=g.focusedValue,y=g.isFocused;if(!this.hasValue()||!d)return m?null:e.createElement(c,Y({},l,{key:`placeholder`,isDisabled:f,isFocused:y,innerProps:{id:this.getElementId(`placeholder`)}}),h);if(p)return _.map(function(n,s){var c=n===v,u=`${t.getOptionLabel(n)}-${t.getOptionValue(n)}`;return e.createElement(r,Y({},l,{components:{Container:i,Label:a,Remove:o},isFocused:c,isDisabled:f,key:u,index:s,removeProps:{onClick:function(){return t.removeValue(n)},onTouchEnd:function(){return t.removeValue(n)},onMouseDown:function(e){e.preventDefault()}},data:n}),t.formatOptionLabel(n,`value`))});if(m)return null;var b=_[0];return e.createElement(s,Y({},l,{data:b,isDisabled:f}),this.formatOptionLabel(b,`value`))}},{key:`renderClearIndicator`,value:function(){var t=this.getComponents(),n=t.ClearIndicator,r=this.commonProps,i=this.props,a=i.isDisabled,o=i.isLoading,s=this.state.isFocused;if(!this.isClearable()||!n||a||!this.hasValue()||o)return null;var c={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":`true`};return e.createElement(n,Y({},r,{innerProps:c,isFocused:s}))}},{key:`renderLoadingIndicator`,value:function(){var t=this.getComponents(),n=t.LoadingIndicator,r=this.commonProps,i=this.props,a=i.isDisabled,o=i.isLoading,s=this.state.isFocused;if(!n||!o)return null;var c={"aria-hidden":`true`};return e.createElement(n,Y({},r,{innerProps:c,isDisabled:a,isFocused:s}))}},{key:`renderIndicatorSeparator`,value:function(){var t=this.getComponents(),n=t.DropdownIndicator,r=t.IndicatorSeparator;if(!n||!r)return null;var i=this.commonProps,a=this.props.isDisabled,o=this.state.isFocused;return e.createElement(r,Y({},i,{isDisabled:a,isFocused:o}))}},{key:`renderDropdownIndicator`,value:function(){var t=this.getComponents(),n=t.DropdownIndicator;if(!n)return null;var r=this.commonProps,i=this.props.isDisabled,a=this.state.isFocused,o={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":`true`};return e.createElement(n,Y({},r,{innerProps:o,isDisabled:i,isFocused:a}))}},{key:`renderMenu`,value:function(){var t=this,n=this.getComponents(),r=n.Group,i=n.GroupHeading,a=n.Menu,o=n.MenuList,s=n.MenuPortal,c=n.LoadingMessage,l=n.NoOptionsMessage,u=n.Option,d=this.commonProps,f=this.state.focusedOption,p=this.props,m=p.captureMenuScroll,h=p.inputValue,g=p.isLoading,_=p.loadingMessage,v=p.minMenuHeight,y=p.maxMenuHeight,b=p.menuIsOpen,x=p.menuPlacement,S=p.menuPosition,C=p.menuPortalTarget,w=p.menuShouldBlockScroll,T=p.menuShouldScrollIntoView,E=p.noOptionsMessage,D=p.onMenuScrollToTop,O=p.onMenuScrollToBottom;if(!b)return null;var k=function(n,r){var i=n.type,a=n.data,o=n.isDisabled,s=n.isSelected,c=n.label,l=n.value,p=f===a,m=o?void 0:function(){return t.onOptionHover(a)},h=o?void 0:function(){return t.selectOption(a)},g=`${t.getElementId(`option`)}-${r}`,_={id:g,onClick:h,onMouseMove:m,onMouseOver:m,tabIndex:-1,role:`option`,"aria-selected":t.isAppleDevice?void 0:s};return e.createElement(u,Y({},d,{innerProps:_,data:a,isDisabled:o,isSelected:s,key:g,label:c,type:i,value:l,isFocused:p,innerRef:p?t.getFocusedOptionRef:void 0}),t.formatOptionLabel(n.data,`menu`))},A;if(this.hasOptions())A=this.getCategorizedOptions().map(function(n){if(n.type===`group`){var a=n.data,o=n.options,s=n.index,c=`${t.getElementId(`group`)}-${s}`,l=`${c}-heading`;return e.createElement(r,Y({},d,{key:c,data:a,options:o,Heading:i,headingProps:{id:l,data:n.data},label:t.formatGroupLabel(n.data)}),n.options.map(function(e){return k(e,`${s}-${e.index}`)}))}else if(n.type===`option`)return k(n,`${n.index}`)});else if(g){var j=_({inputValue:h});if(j===null)return null;A=e.createElement(c,d,j)}else{var M=E({inputValue:h});if(M===null)return null;A=e.createElement(l,d,M)}var ee={minMenuHeight:v,maxMenuHeight:y,menuPlacement:x,menuPosition:S,menuShouldScrollIntoView:T},te=e.createElement(HN,Y({},d,ee),function(n){var r=n.ref,i=n.placerProps,s=i.placement,c=i.maxHeight;return e.createElement(a,Y({},d,ee,{innerRef:r,innerProps:{onMouseDown:t.onMenuMouseDown,onMouseMove:t.onMenuMouseMove},isLoading:g,placement:s}),e.createElement(UF,{captureEnabled:m,onTopArrive:D,onBottomArrive:O,lockEnabled:w},function(n){return e.createElement(o,Y({},d,{innerRef:function(e){t.getMenuListRef(e),n(e)},innerProps:{role:`listbox`,"aria-multiselectable":d.isMulti,id:t.getElementId(`listbox`)},isLoading:g,maxHeight:c,focusedOption:f}),A)}))});return C||S===`fixed`?e.createElement(s,Y({},d,{appendTo:C,controlElement:this.controlRef,menuPlacement:x,menuPosition:S}),te):te}},{key:`renderFormField`,value:function(){var t=this,n=this.props,r=n.delimiter,i=n.isDisabled,a=n.isMulti,o=n.name,s=n.required,c=this.state.selectValue;if(s&&!this.hasValue()&&!i)return e.createElement(KF,{name:o,onFocus:this.onValueInputFocus});if(!(!o||i))if(a)if(r){var l=c.map(function(e){return t.getOptionValue(e)}).join(r);return e.createElement(`input`,{name:o,type:`hidden`,value:l})}else{var u=c.length>0?c.map(function(n,r){return e.createElement(`input`,{key:`i-${r}`,name:o,type:`hidden`,value:t.getOptionValue(n)})}):e.createElement(`input`,{name:o,type:`hidden`,value:``});return e.createElement(`div`,null,u)}else{var d=c[0]?this.getOptionValue(c[0]):``;return e.createElement(`input`,{name:o,type:`hidden`,value:d})}}},{key:`renderLiveRegion`,value:function(){var t=this.commonProps,n=this.state,r=n.ariaSelection,i=n.focusedOption,a=n.focusedValue,o=n.isFocused,s=n.selectValue,c=this.getFocusableOptions();return e.createElement(hF,Y({},t,{id:this.getElementId(`live-region`),ariaSelection:r,focusedOption:i,focusedValue:a,isFocused:o,selectValue:s,focusableOptions:c,isAppleDevice:this.isAppleDevice}))}},{key:`render`,value:function(){var t=this.getComponents(),n=t.Control,r=t.IndicatorsContainer,i=t.SelectContainer,a=t.ValueContainer,o=this.props,s=o.className,c=o.id,l=o.isDisabled,u=o.menuIsOpen,d=this.state.isFocused,f=this.commonProps=this.getCommonProps();return e.createElement(i,Y({},f,{className:s,innerProps:{id:c,onKeyDown:this.onKeyDown},isDisabled:l,isFocused:d}),this.renderLiveRegion(),e.createElement(n,Y({},f,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:l,isFocused:d,menuIsOpen:u}),e.createElement(a,Y({},f,{isDisabled:l}),this.renderPlaceholderOrValue(),this.renderInput()),e.createElement(r,Y({},f,{isDisabled:l}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:`getDerivedStateFromProps`,value:function(e,t){var n=t.prevProps,r=t.clearFocusValueOnUpdate,i=t.inputIsHiddenAfterUpdate,a=t.ariaSelection,o=t.isFocused,s=t.prevWasFocused,c=t.instancePrefix,l=e.options,u=e.value,d=e.menuIsOpen,f=e.inputValue,p=e.isMulti,m=dN(u),h={};if(n&&(u!==n.value||l!==n.options||d!==n.menuIsOpen||f!==n.inputValue)){var g=d?gI(e,m):[],_=d?hI(pI(e,m),`${c}-option`):[],v=r?vI(t,m):null,y=yI(t,g),b=bI(_,y);h={selectValue:m,focusedOption:y,focusedOptionId:b,focusableOptionsWithIds:_,focusedValue:v,clearFocusValueOnUpdate:!1}}var x=i!=null&&e!==n?{inputIsHidden:i,inputIsHiddenAfterUpdate:void 0}:{},S=a,C=o&&s;return o&&!C&&(S={value:jN(p,m,m[0]||null),options:m,action:`initial-input-focus`},C=!s),a?.action===`initial-input-focus`&&(S=null),J(J(J({},h),x),{},{prevProps:e,ariaSelection:S,prevWasFocused:C})}}]),r}(r);OI.defaultProps=dI;var kI=c(function(t,n){var r=gA(t);return e.createElement(OI,Y({ref:n},r))}),AI=kI,jI=[`allowCreateWhileLoading`,`createOptionPosition`,`formatCreateLabel`,`isValidNewOption`,`getNewOptionData`,`onCreateOption`,`options`,`onChange`],MI=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:``,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=String(e).toLowerCase(),i=String(n.getOptionValue(t)).toLowerCase(),a=String(n.getOptionLabel(t)).toLowerCase();return i===r||a===r},NI={formatCreateLabel:function(e){return`Create "${e}"`},isValidNewOption:function(e,t,n,r){return!(!e||t.some(function(t){return MI(e,t,r)})||n.some(function(t){return MI(e,t,r)}))},getNewOptionData:function(e,t){return{label:t,value:e,__isNew__:!0}}};function PI(e){var t=e.allowCreateWhileLoading,n=t===void 0?!1:t,r=e.createOptionPosition,i=r===void 0?`last`:r,a=e.formatCreateLabel,o=a===void 0?NI.formatCreateLabel:a,s=e.isValidNewOption,c=s===void 0?NI.isValidNewOption:s,l=e.getNewOptionData,d=l===void 0?NI.getNewOptionData:l,f=e.onCreateOption,p=e.options,m=p===void 0?[]:p,h=e.onChange,_=mA(e,jI),v=_.getOptionValue,y=v===void 0?tI:v,b=_.getOptionLabel,x=b===void 0?eI:b,S=_.inputValue,C=_.isLoading,w=_.isMulti,T=_.value,E=_.name,D=g(function(){return c(S,dN(T),m,{getOptionValue:y,getOptionLabel:x})?d(S,o(S)):void 0},[o,d,x,y,S,c,m,T]),O=g(function(){return(n||!C)&&D?i===`first`?[D].concat(AA(m)):[].concat(AA(m),[D]):m},[n,i,C,D,m]),k=u(function(e,t){if(t.action!==`select-option`)return h(e,t);var n=Array.isArray(e)?e:[e];if(n[n.length-1]===D){if(f)f(S);else{var r=d(S,S),i={action:`create-option`,name:E,option:r};h(jN(w,[].concat(AA(dN(T)),[r]),r),i)}return}h(e,t)},[d,S,w,E,D,f,h,T]);return J(J({},_),{},{options:O,onChange:k})}var FI=c(function(t,n){var r=gA(t),i=PI(r);return e.createElement(OI,Y({ref:n},i))}),II=FI;const LI={text:{kGuDYH:`xkpwil5`,kLWn49:`x8r4c90`,kMwMTN:`xcmjw3v`,$$css:!0},container:{kfzvcC:`x67bb7w`,$$css:!0},control:{kaIpWk:`x1vx5ruh`,k3XXqK:`x1t137rt`,$$css:!0},regular:{kAzted:`x9bhmlw`,kpe85a:`x1ijmo5n`,kE3dHu:`x164ht6e`,$$css:!0},small:{kAzted:`xe0957l`,kpe85a:`x1d60ukw`,kE3dHu:`x15u6esi`,$$css:!0},open:{kqGeR4:`xfrllxf`,kYm2EN:`xjppbhk`,$$css:!0},left:{ksF3WI:`x1a2w583`,kYm2EN:`xjppbhk`,$$css:!0},right:{kIxVMA:`x1ia1hqs`,kqGeR4:`xfrllxf`,$$css:!0},menu:{kY2c9j:`x1q2oy4v`,k7Eaqz:`x1pshirs`,kqGeR4:`x1olqv08`,kYm2EN:`xhbaxng`,kMzoRj:`x15udo89`,ksu8eU:`x1y0btm7`,kVAM5u:`x19rljk3`,khDVqt:`xuxw1ft`,$$css:!0},menuList:{kY2c9j:`x1q2oy4v`,k7Eaqz:`x1pshirs`,kqGeR4:`x1olqv08`,kYm2EN:`xhbaxng`,kWkggS:`xrkmy7n`,$$css:!0},menuPortal:{kY2c9j:`x1snuhyv`,$$css:!0},groupHeading:{kWkggS:`x13zkdvk`,kE3dHu:`x164ht6e`,kpe85a:`x19pir32`,kLKAdn:`x1iul6r4`,kGO01o:`xes99ow`,kMwMTN:`x1t03eoi`,$$css:!0},option:{kE3dHu:`x164ht6e`,kpe85a:`x19pir32`,kLKAdn:`x1iul6r4`,kGO01o:`xes99ow`,kkrTdU:`xt0e3qv x1277o0a`,kWkggS:`xjbqb8w x5teegj`,$$css:!0},selected:{kWkggS:`x41mqee x5teegj`,$$css:!0},focused:{kWkggS:`x3m21qo x5teegj`,$$css:!0},placeholder:{kMwMTN:`xv668q7`,$$css:!0},multiValue:{kogj98:`x1l7c2xk`,kaIpWk:`x16eypsj`,kWkggS:`x116jm0a`,kE3dHu:`xf00w7v`,kpe85a:`x1d60ukw`,kLKAdn:`xrhwvvd`,kGO01o:`xnw97ix`,kGuDYH:`xkpwil5`,kLWn49:`x8r4c90`,$$css:!0},dropdownIndicator:{kMwMTN:`xg8dcc9 x1yok1h2 xkn4al8 x106xpe0`,$$css:!0},clearIndicator:{kMwMTN:`x1ru9b6h x111sopx`,$$css:!0},remove:{kMwMTN:`x1heor9g x111sopx`,$$css:!0}},RI=e=>b(iF.SelectContainer,{...e,innerProps:{...e.innerProps,"data-testid":e.selectProps.testId}}),zI=e=>{let t=e.selectProps[`aria-describedby`],n=[t,e[`aria-describedby`]].filter(Boolean).join(` `);return b(iF.Input,{...e,"aria-describedby":n||void 0})},BI=({options:e,value:t,placeholder:n=`select`,noOptionsMessage:r=`no matching options`,isSearchable:i=!0,creatable:a=!1,isMulti:o=!1,isClearable:s=!1,closeMenuOnSelect:c=!0,id:l,inputId:u,ariaDescribedBy:d,onKeyDown:f,menuPortalTarget:p,getOptionLabel:m,getSelectedValueLabel:h,getOptionValue:g,onChange:_,menuIsOpen:v,menuPlacement:y=`auto`,extraClassNames:x,controlClassNames:S=``,xstyle:C,controlXstyle:w,contentXstyle:T,inputGroup:E,filterConfig:D,filterOption:O,small:k=!1,isDisabled:A=!1,showError:j=!1,isLoading:M=!1,formatGroupLabel:ee,onRemove:te,defaultValue:N,onMenuOpen:P,onMenuClose:ne,components:F,onMenuInputFocus:re,onInputChange:ie,inputValue:ae,onMenuScrollToBottom:I,testId:oe})=>{let se={SelectContainer:RI,Input:zI,...F},ce=(e,{context:t})=>{let n=h||m;return m||h?t===`value`?n?n(e):e.label:m?m(e):e.label:e.label},L=(e,t)=>{if(o&&te&&t.action===`remove-value`){te({id:t.removedValue});return}_(e)},le=c?void 0:!1,ue=V(LI.text,LI.container,C),de=V(LI.text,LI.menu,T),R=V(LI.menuPortal,T),z=e=>V(lO.base,LI.control,k?LI.small:LI.regular,e&&LI.open,E&&LI[E],j&&lO.invalid,A&&lO.disabled,w),fe={id:l,value:t,inputId:u,"aria-describedby":d,onKeyDown:f,placeholder:n,closeMenuOnSelect:c,blurInputOnSelect:le,isSearchable:a?!0:i,isMulti:o,isClearable:s,isLoading:M,defaultValue:N,noOptionsMessage:()=>r,menuPortalTarget:p,menuIsOpen:v,onChange:L,unstyled:!0,menuPlacement:y,formatOptionLabel:ce,formatGroupLabel:ee,getOptionValue:g,options:e,isDisabled:A,"aria-invalid":j,onMenuOpen:P,onMenuClose:ne,components:se,testId:oe,onMenuInputFocus:re,onInputChange:ie,inputValue:ae,onMenuScrollToBottom:I,captureMenuScroll:void 0,hideSelectedOptions:o,filterOption:O||(D?EF(D):void 0),styles:{container:e=>({...e,pointerEvents:void 0,...ue.style}),control:(e,{menuIsOpen:t})=>({...e,minHeight:void 0,cursor:void 0,...z(t).style}),menu:e=>({...e,zIndex:void 0,...de.style}),menuPortal:e=>({...e,zIndex:void 0,...R.style}),option:e=>({...e,cursor:void 0})},classNames:{control:({menuIsOpen:e})=>H(z(e).className,S,`specSelectControl`),placeholder:()=>H({className:`xv668q7`}.className,`specOpenSelect`),container:()=>H(ue.className,x),input:()=>H({className:`xkpwil5 x8r4c90 xcmjw3v`}.className,`specSelectInput`),menuList:()=>H({className:`x1q2oy4v x1pshirs x1olqv08 xhbaxng xrkmy7n`}.className,`specSelectMenu`),menu:()=>de.className??``,menuPortal:()=>R.className??``,dropdownIndicator:()=>H({className:`xg8dcc9 x1yok1h2 xkn4al8 x106xpe0`}.className,`specOpenIt`),option:({isSelected:e,isDisabled:t,isFocused:n})=>H(V(LI.option,e?LI.selected:n&&LI.focused).className,`specSelectOption`,t&&`specDisabledOption`),singleValue:()=>`specOpenSelect`,multiValue:()=>H({className:`x1l7c2xk x16eypsj x116jm0a xf00w7v x1d60ukw xrhwvvd xnw97ix xkpwil5 x8r4c90`}.className,`specOpenSelect`),multiValueRemove:()=>H({className:`x1heor9g x111sopx`}.className,`specSelectMultiValueRemove`),clearIndicator:()=>H({className:`x1ru9b6h x111sopx`}.className,`specClearSelect`),group:()=>`specSelectGroup`,groupHeading:()=>H({className:`x13zkdvk x164ht6e x19pir32 x1iul6r4 xes99ow x1t03eoi`}.className,`specSelectGroupHeading`)}};return b(a?II:AI,{...fe})};var VI=BI;const HI=`qomponents`,UI={root:{k1xSpc:`x78zum5`,kwnvtZ:`x1a02dak`,kGNEyG:`x6s0dn4`,k1C7PZ:`xsin8gy`,khm7nJ:`x1fc8kun`,kMwMTN:`xcmjw3v`,kjj79g:`x13a6bvl`,$$css:!0},compact:{kUk6DE:`x98rzlu`,kjj79g:`x1qughib`,$$css:!0},controls:{k1xSpc:`x78zum5`,kwnvtZ:`xozqiw3`,kGNEyG:`x6s0dn4`,$$css:!0},nowrap:{khDVqt:`xuxw1ft`,$$css:!0},nav:{k1xSpc:`x78zum5`,$$css:!0},list:{k1xSpc:`x78zum5`,kH6xsr:`x3ct3a4`,kogj98:`x1ghz6dp`,kmVPX3:`x1717udv`,kGNEyG:`x6s0dn4`,$$css:!0},button:{kB7OPa:`x9f619`,kMv6JI:`xjb2p0i`,kGuDYH:`x1qlqyl8`,kLWn49:`x15bjb6t`,kVAEAm:`x1n2onr6`,koQZXg:`xh9i6ac`,k1xSpc:`x3nfvp2`,kGNEyG:`x6s0dn4`,kjj79g:`xl56j7k`,kMzoRj:`x15udo89`,ksu8eU:`x1y0btm7`,kVAM5u:`x19rljk3`,kWkggS:`xrkmy7n`,kMwMTN:`xcmjw3v x1yok1h2 xkn4al8 x106xpe0`,kMnn75:`xkrqix3`,kkrTdU:`x1ypdohk`,$$css:!0},disabled:{kkrTdU:`x1h6gzvc`,kSiTet:`xbyyjgo`,kfzvcC:`x47corl`,kMwMTN:`xcmjw3v x1nx92op xo23e2e x1loksi`,$$css:!0},active:{kY2c9j:`x1n327nk`,kVAM5u:`xd1tv35`,kWkggS:`x1o0y99h`,kMwMTN:`xeda06r xbsh3m4 xicz4o8 x1nmlygt`,$$css:!0},previous:{kIxVMA:`xx1126p`,kqGeR4:`xri6rhv`,$$css:!0},next:{ksF3WI:`x1jmbype`,kYm2EN:`x7lg8ah`,$$css:!0},break:{k1xSpc:`x3nfvp2`,kAzted:`x1in32aq`,k7Eaqz:`x19hwnzc`,kGNEyG:`x6s0dn4`,kjj79g:`xl56j7k`,kWkggS:`xjbqb8w`,kMwMTN:`xcmjw3v`,$$css:!0},goToSmall:{koQZXg:`xd8780z`,$$css:!0},wrapperNormal:{kqGvvJ:`x16ktcqu`,$$css:!0},labelNormal:{koQZXg:`x16ydxro`,$$css:!0}},WI={small:{k7Eaqz:`x1vi9356`,kAzted:`x1rqwxy8`,$$css:!0},normal:{k7Eaqz:`x19hwnzc`,kAzted:`x9bhmlw`,$$css:!0}},GI={small:{kg3NbH:`x1xijbu4`,k8WAf4:`xsplgde`,$$css:!0},normal:{kg3NbH:`x15ldat2`,k8WAf4:`x1t0vds8`,$$css:!0}},KI={small:{kzqmXN:`xnfjc3l`,$$css:!0},normal:{kzqmXN:`x1hetxy2`,$$css:!0}},qI={small:{kOIVth:`xvh977a`,$$css:!0},normal:{kOIVth:`xpj7pl4`,$$css:!0}},JI=e=>!Number.isFinite(e)||e<=0?0:Math.ceil(e),YI=({currentPage:e,pageCount:t,pageRangeDisplayed:n,marginPagesDisplayed:r})=>{if(t<=0)return[];let i=new Set,a=Math.min(n,t),o=Math.floor((a-1)/2),s=a-o-1,c=Math.max(e-o,1),l=Math.min(e+s,t);l-c+1<a&&(c===1?l=Math.min(t,c+a-1):l===t&&(c=Math.max(1,t-a+1)));for(let e=1;e<=Math.min(r,t);e+=1)i.add(e);for(let e=c;e<=l;e+=1)i.add(e);for(let e=Math.max(t-r+1,1);e<=t;e+=1)i.add(e);let u=[...i].sort((e,t)=>e-t),d=[];return u.forEach((e,t)=>{let n=u[t-1];if(n){let t=e-n;t===2?d.push({type:`page`,page:n+1}):t>2&&d.push({type:`break`,key:`break-${n}-${e}`})}d.push({type:`page`,page:e})}),d},XI=e=>Array.isArray(e)?e.map(e=>({label:e,value:e})):Array.from({length:Math.max(e,0)},(e,t)=>{let n=t+1;return{label:n,value:n}}),ZI=({onPageChange:e,pageCount:t,pageNumber:n,pageSize:r,onPageSizeChange:i=()=>void 0,variant:a=`normal`,pageRangeDisplayed:o,marginPagesDisplayed:s,total:c,pageSizeOptions:l,size:u=`normal`,creatablePageSizes:d=!1,totalLabel:f,pageLabel:p,showLabel:m,previousLabel:h,previousAriaLabel:g,nextLabel:_,nextAriaLabel:v,breakLabel:y,pageClassName:S=``,pageLinkClassName:C=``,previousClassName:w=``,previousLinkClassName:T=``,nextClassName:E=``,nextLinkClassName:D=``,activeClassName:O=``,containerClassName:k=``,"aria-label":A,testId:j=`paginator`,xstyle:M,contentXstyle:ee,breakXstyle:te})=>{let{t:N}=tA(HI),P=a===`compact`,ne=f??N(`PAGINATOR.TOTAL`,{defaultValue:`Total:`}),F=p??N(`PAGINATOR.PAGE`,{defaultValue:`Page:`}),re=m??N(`PAGINATOR.SHOW`,{defaultValue:`Show:`}),ie=h??N(`PAGINATOR.PREVIOUS`,{defaultValue:`Previous`}),ae=g??N(`PAGINATOR.PREVIOUS`,{defaultValue:`Previous`}),I=_??N(`PAGINATOR.NEXT`,{defaultValue:`Next`}),oe=v??N(`PAGINATOR.NEXT`,{defaultValue:`Next`}),se=y??N(`PAGINATOR.BREAK`,{defaultValue:`...`}),ce=A??N(`PAGINATOR.ARIA_LABEL`,{defaultValue:`Pagination`}),L=JI(t),le=r!=null,ue=le?l??[5,10,15,20,50]:[],de=XI(ue),R=XI(L),z=L>0?Math.min(Math.max(n,1),L):1,fe=o??(P?1:2),pe=s??(P?1:2),me=YI({currentPage:z,pageCount:L,pageRangeDisplayed:fe,marginPagesDisplayed:pe}),he=t=>{t&&e(t.value)},ge=e=>{e&&i(e.value)},B=V(UI.list),_e=V(UI.button,WI[u],GI[u],UI.previous,(z<=1||L<=0)&&UI.disabled),ve=V(UI.button,WI[u],GI[u],UI.next,(z>=L||L<=0)&&UI.disabled);return x(`div`,{...V(UI.root,P&&UI.compact,M),"data-testid":j,children:[x(`div`,{...V(UI.controls,qI[u]),children:[x(`div`,{"data-testid":`goToPageWrapper`,...V(UI.controls,qI[u],u===`small`?UI.goToSmall:UI.wrapperNormal),children:[c!==void 0&&x(`span`,{...V(UI.nowrap),children:[ne,` `,b(`strong`,{children:c})]}),b(`span`,{children:F}),b(VI,{small:u===`small`,placeholder:``,contentXstyle:ee,menuPortalTarget:typeof document>`u`?null:document.body,xstyle:KI[u],value:R.find(({value:e})=>e===z),options:R,isSearchable:!0,onChange:he})]}),le&&x(`div`,{"data-testid":`itemCountWrapper`,...V(UI.controls,qI[u],u===`normal`&&UI.wrapperNormal),children:[b(`span`,{...V(u===`normal`&&UI.labelNormal),children:re}),b(VI,{small:u===`small`,menuPlacement:`auto`,contentXstyle:ee,menuPortalTarget:typeof document>`u`?null:document.body,xstyle:KI[u],value:de.find(({value:e})=>e===r),options:de,isSearchable:!1,onChange:ge,creatable:d})]})]}),b(`nav`,{"aria-label":ce,...V(UI.nav),children:x(`ul`,{...B,className:H(B.className,k),children:[b(`li`,{className:w,children:b(`button`,{type:`button`,"aria-label":ae,disabled:z<=1||L<=0,onClick:()=>e(z-1),..._e,className:H(_e.className,T),children:P?h??b(`span`,{"aria-hidden":`true`,children:`‹`}):ie})}),me.map(t=>{let n=V(UI.button,WI[u],GI[u],t.type===`page`&&t.page===z&&UI.active);return b(`li`,{className:t.type===`page`?`${S} ${t.page===z?O:``}`.trim():void 0,children:t.type===`page`?b(`button`,{type:`button`,"aria-current":t.page===z?`page`:void 0,"aria-label":N(`PAGINATOR.PAGE_NUMBER`,{page:t.page,defaultValue:`Page {{page}}`}),onClick:()=>{t.page!==z&&e(t.page)},...n,className:H(n.className,C),children:t.page}):b(`span`,{"aria-hidden":`true`,...V(UI.break,GI[u],te),children:se})},t.type===`page`?`page-${t.page}`:t.key)}),b(`li`,{className:E,children:b(`button`,{type:`button`,"aria-label":oe,disabled:z>=L||L<=0,onClick:()=>e(z+1),...ve,className:H(ve.className,D),children:P?_??b(`span`,{"aria-hidden":`true`,children:`›`}):I})})]})})]})};var QI=ZI;const $I={pill:{kB7OPa:`x9f619`,k1xSpc:`x3nfvp2`,kZKoxP:`xettwda`,kGNEyG:`x6s0dn4`,kaIpWk:`x10hpsqq`,kMzoRj:`x15udo89`,ksu8eU:`x1y0btm7`,kVAM5u:`x19ghwce`,kE3dHu:`x79ra4s`,kpe85a:`x33uob6`,kGuDYH:`xkpwil5`,kLWn49:`x8r4c90`,khDVqt:`xuxw1ft`,kWkggS:`x41mqee`,kMwMTN:`xuekoit`,$$css:!0}},eL=({children:e,testId:t,extraClassNames:n=``,xstyle:r})=>{let i=V($I.pill,r);return b(`span`,{...i,"data-testid":t,className:H(i.className,n),children:e})};var tL=eL;function nL(t,n=[]){let r=[];function i(n,i){let a=e.createContext(i);a.displayName=n+`Context`;let o=r.length;r=[...r,i];let s=n=>{let{scope:r,children:i,...s}=n,c=r?.[t]?.[o]||a,l=e.useMemo(()=>s,Object.values(s));return b(c.Provider,{value:l,children:i})};s.displayName=n+`Provider`;function c(r,s){let c=s?.[t]?.[o]||a,l=e.useContext(c);if(l)return l;if(i!==void 0)return i;throw Error(`\`${r}\` must be used within \`${n}\``)}return[s,c]}let a=()=>{let n=r.map(t=>e.createContext(t));return function(r){let i=r?.[t]||n;return e.useMemo(()=>({[`__scope${t}`]:{...r,[t]:i}}),[r,i])}};return a.scopeName=t,[i,rL(a,...n)]}function rL(...t){let n=t[0];if(t.length===1)return n;let r=()=>{let r=t.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(t){let i=r.reduce((e,{useScope:n,scopeName:r})=>{let i=n(t),a=i[`__scope${r}`];return{...e,...a}},{});return e.useMemo(()=>({[`__scope${n.scopeName}`]:i}),[i])}};return r.scopeName=n.scopeName,r}var iL=Symbol.for(`react.lazy`),aL=e.use;function oL(e){return typeof e==`object`&&!!e&&`then`in e}function sL(e){return typeof e==`object`&&!!e&&`$$typeof`in e&&e.$$typeof===iL&&`_payload`in e&&oL(e._payload)}function cL(t){let n=lL(t),r=e.forwardRef((t,r)=>{let{children:i,...a}=t;sL(i)&&typeof aL==`function`&&(i=aL(i._payload));let o=e.Children.toArray(i),s=o.find(dL);if(s){let t=s.props.children,i=o.map(n=>n===s?e.Children.count(t)>1?e.Children.only(null):e.isValidElement(t)?t.props.children:null:n);return b(n,{...a,ref:r,children:e.isValidElement(t)?e.cloneElement(t,void 0,i):null})}return b(n,{...a,ref:r,children:i})});return r.displayName=`${t}.Slot`,r}function lL(t){let n=e.forwardRef((t,n)=>{let{children:r,...i}=t;if(sL(r)&&typeof aL==`function`&&(r=aL(r._payload)),e.isValidElement(r)){let t=pL(r),a=fL(i,r.props);return r.type!==e.Fragment&&(a.ref=n?ae(n,t):t),e.cloneElement(r,a)}return e.Children.count(r)>1?e.Children.only(null):null});return n.displayName=`${t}.SlotClone`,n}var uL=Symbol(`radix.slottable`);function dL(t){return e.isValidElement(t)&&typeof t.type==`function`&&`__radixId`in t.type&&t.type.__radixId===uL}function fL(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r],o=/^on[A-Z]/.test(r);o?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function pL(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var mL=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`],hL=mL.reduce((t,n)=>{let r=cL(`Primitive.${n}`),i=e.forwardRef((e,t)=>{let{asChild:i,...a}=e,o=i?r:n;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),b(o,{...a,ref:t})});return i.displayName=`Primitive.${n}`,{...t,[n]:i}},{}),gL=`Progress`,_L=100,[vL,yL]=nL(gL),[bL,xL]=vL(gL),SL=e.forwardRef((e,t)=>{let{__scopeProgress:n,value:r=null,max:i,getValueLabel:a=TL,...o}=e;(i||i===0)&&!OL(i)&&console.error(AL(`${i}`,`Progress`));let s=OL(i)?i:_L;r!==null&&!kL(r,s)&&console.error(jL(`${r}`,`Progress`));let c=kL(r,s)?r:null,l=DL(c)?a(c,s):void 0;return b(bL,{scope:n,value:c,max:s,children:b(hL.div,{"aria-valuemax":s,"aria-valuemin":0,"aria-valuenow":DL(c)?c:void 0,"aria-valuetext":l,role:`progressbar`,"data-state":EL(c,s),"data-value":c??void 0,"data-max":s,...o,ref:t})})});SL.displayName=gL;var CL=`ProgressIndicator`,wL=e.forwardRef((e,t)=>{let{__scopeProgress:n,...r}=e,i=xL(CL,n);return b(hL.div,{"data-state":EL(i.value,i.max),"data-value":i.value??void 0,"data-max":i.max,...r,ref:t})});wL.displayName=CL;function TL(e,t){return`${Math.round(e/t*100)}%`}function EL(e,t){return e==null?`indeterminate`:e===t?`complete`:`loading`}function DL(e){return typeof e==`number`}function OL(e){return DL(e)&&!isNaN(e)&&e>0}function kL(e,t){return DL(e)&&!isNaN(e)&&e<=t&&e>=0}function AL(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${_L}\`.`}function jL(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:
|
|
1144
1144
|
- a positive number
|
|
1145
|
-
- less than the value passed to \`max\` (or ${
|
|
1145
|
+
- less than the value passed to \`max\` (or ${_L} if no \`max\` prop is set)
|
|
1146
1146
|
- \`null\` or \`undefined\` if the progress is indeterminate.
|
|
1147
1147
|
|
|
1148
|
-
Defaulting to \`null\`.`}var jL=xL,ML=CL,NL=M(((exports,t)=>{(function(e){var n=/^\s+/,r=/\s+$/,i=0,a=e.round,o=e.min,s=e.max,c=e.random;function l(e,t){if(e||=``,t||={},e instanceof l)return e;if(!(this instanceof l))return new l(e,t);var n=u(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=a(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=a(this._r)),this._g<1&&(this._g=a(this._g)),this._b<1&&(this._b=a(this._b)),this._ok=n.ok,this._tc_id=i++}l.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(e.r*299+e.g*587+e.b*114)/1e3},getLuminance:function(){var t=this.toRgb(),n,r,i,a,o,s;return n=t.r/255,r=t.g/255,i=t.b/255,a=n<=.03928?n/12.92:e.pow((n+.055)/1.055,2.4),o=r<=.03928?r/12.92:e.pow((r+.055)/1.055,2.4),s=i<=.03928?i/12.92:e.pow((i+.055)/1.055,2.4),.2126*a+.7152*o+.0722*s},setAlpha:function(e){return this._a=te(e),this._roundA=a(100*this._a)/100,this},toHsv:function(){var e=m(this._r,this._g,this._b);return{h:e.h*360,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=m(this._r,this._g,this._b),t=a(e.h*360),n=a(e.s*100),r=a(e.v*100);return this._a==1?`hsv(`+t+`, `+n+`%, `+r+`%)`:`hsva(`+t+`, `+n+`%, `+r+`%, `+this._roundA+`)`},toHsl:function(){var e=f(this._r,this._g,this._b);return{h:e.h*360,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=f(this._r,this._g,this._b),t=a(e.h*360),n=a(e.s*100),r=a(e.l*100);return this._a==1?`hsl(`+t+`, `+n+`%, `+r+`%)`:`hsla(`+t+`, `+n+`%, `+r+`%, `+this._roundA+`)`},toHex:function(e){return g(this._r,this._g,this._b,e)},toHexString:function(e){return`#`+this.toHex(e)},toHex8:function(e){return _(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return`#`+this.toHex8(e)},toRgb:function(){return{r:a(this._r),g:a(this._g),b:a(this._b),a:this._a}},toRgbString:function(){return this._a==1?`rgb(`+a(this._r)+`, `+a(this._g)+`, `+a(this._b)+`)`:`rgba(`+a(this._r)+`, `+a(this._g)+`, `+a(this._b)+`, `+this._roundA+`)`},toPercentageRgb:function(){return{r:a(P(this._r,255)*100)+`%`,g:a(P(this._g,255)*100)+`%`,b:a(P(this._b,255)*100)+`%`,a:this._a}},toPercentageRgbString:function(){return this._a==1?`rgb(`+a(P(this._r,255)*100)+`%, `+a(P(this._g,255)*100)+`%, `+a(P(this._b,255)*100)+`%)`:`rgba(`+a(P(this._r,255)*100)+`%, `+a(P(this._g,255)*100)+`%, `+a(P(this._b,255)*100)+`%, `+this._roundA+`)`},toName:function(){return this._a===0?`transparent`:this._a<1?!1:ee[g(this._r,this._g,this._b,!0)]||!1},toFilter:function(e){var t=`#`+v(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?`GradientType = 1, `:``;if(e){var i=l(e);n=`#`+v(i._r,i._g,i._b,i._a)}return`progid:DXImageTransform.Microsoft.gradient(`+r+`startColorstr=`+t+`,endColorstr=`+n+`)`},toString:function(e){var t=!!e;e||=this._format;var n=!1,r=this._a<1&&this._a>=0,i=!t&&r&&(e===`hex`||e===`hex6`||e===`hex3`||e===`hex4`||e===`hex8`||e===`name`);return i?e===`name`&&this._a===0?this.toName():this.toRgbString():(e===`rgb`&&(n=this.toRgbString()),e===`prgb`&&(n=this.toPercentageRgbString()),(e===`hex`||e===`hex6`)&&(n=this.toHexString()),e===`hex3`&&(n=this.toHexString(!0)),e===`hex4`&&(n=this.toHex8String(!0)),e===`hex8`&&(n=this.toHex8String()),e===`name`&&(n=this.toName()),e===`hsl`&&(n=this.toHslString()),e===`hsv`&&(n=this.toHsvString()),n||this.toHexString())},clone:function(){return l(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(S,arguments)},brighten:function(){return this._applyModification(C,arguments)},darken:function(){return this._applyModification(w,arguments)},desaturate:function(){return this._applyModification(y,arguments)},saturate:function(){return this._applyModification(b,arguments)},greyscale:function(){return this._applyModification(x,arguments)},spin:function(){return this._applyModification(T,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(A,arguments)},complement:function(){return this._applyCombination(E,arguments)},monochromatic:function(){return this._applyCombination(j,arguments)},splitcomplement:function(){return this._applyCombination(k,arguments)},triad:function(){return this._applyCombination(D,arguments)},tetrad:function(){return this._applyCombination(O,arguments)}},l.fromRatio=function(e,t){if(typeof e==`object`){var n={};for(var r in e)e.hasOwnProperty(r)&&(r===`a`?n[r]=e[r]:n[r]=I(e[r]));e=n}return l(e,t)};function u(e){var t={r:0,g:0,b:0},n=1,r=null,i=null,a=null,c=!1,l=!1;return typeof e==`string`&&(e=le(e)),typeof e==`object`&&(L(e.r)&&L(e.g)&&L(e.b)?(t=d(e.r,e.g,e.b),c=!0,l=String(e.r).substr(-1)===`%`?`prgb`:`rgb`):L(e.h)&&L(e.s)&&L(e.v)?(r=I(e.s),i=I(e.v),t=h(e.h,r,i),c=!0,l=`hsv`):L(e.h)&&L(e.s)&&L(e.l)&&(r=I(e.s),a=I(e.l),t=p(e.h,r,a),c=!0,l=`hsl`),e.hasOwnProperty(`a`)&&(n=e.a)),n=te(n),{ok:c,format:e.format||l,r:o(255,s(t.r,0)),g:o(255,s(t.g,0)),b:o(255,s(t.b,0)),a:n}}function d(e,t,n){return{r:P(e,255)*255,g:P(t,255)*255,b:P(n,255)*255}}function f(e,t,n){e=P(e,255),t=P(t,255),n=P(n,255);var r=s(e,t,n),i=o(e,t,n),a,c,l=(r+i)/2;if(r==i)a=c=0;else{var u=r-i;switch(c=l>.5?u/(2-r-i):u/(r+i),r){case e:a=(t-n)/u+(t<n?6:0);break;case t:a=(n-e)/u+2;break;case n:a=(e-t)/u+4;break}a/=6}return{h:a,s:c,l}}function p(e,t,n){var r,i,a;e=P(e,360),t=P(t,100),n=P(n,100);function o(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(t===0)r=i=a=n;else{var s=n<.5?n*(1+t):n+t-n*t,c=2*n-s;r=o(c,s,e+1/3),i=o(c,s,e),a=o(c,s,e-1/3)}return{r:r*255,g:i*255,b:a*255}}function m(e,t,n){e=P(e,255),t=P(t,255),n=P(n,255);var r=s(e,t,n),i=o(e,t,n),a,c,l=r,u=r-i;if(c=r===0?0:u/r,r==i)a=0;else{switch(r){case e:a=(t-n)/u+(t<n?6:0);break;case t:a=(n-e)/u+2;break;case n:a=(e-t)/u+4;break}a/=6}return{h:a,s:c,v:l}}function h(t,n,r){t=P(t,360)*6,n=P(n,100),r=P(r,100);var i=e.floor(t),a=t-i,o=r*(1-n),s=r*(1-a*n),c=r*(1-(1-a)*n),l=i%6,u=[r,s,o,o,c,r][l],d=[c,r,r,s,o,o][l],f=[o,o,c,r,r,s][l];return{r:u*255,g:d*255,b:f*255}}function g(e,t,n,r){var i=[ae(a(e).toString(16)),ae(a(t).toString(16)),ae(a(n).toString(16))];return r&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join(``)}function _(e,t,n,r,i){var o=[ae(a(e).toString(16)),ae(a(t).toString(16)),ae(a(n).toString(16)),ae(oe(r))];return i&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)&&o[3].charAt(0)==o[3].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join(``)}function v(e,t,n,r){var i=[ae(oe(r)),ae(a(e).toString(16)),ae(a(t).toString(16)),ae(a(n).toString(16))];return i.join(``)}l.equals=function(e,t){return!e||!t?!1:l(e).toRgbString()==l(t).toRgbString()},l.random=function(){return l.fromRatio({r:c(),g:c(),b:c()})};function y(e,t){t=t===0?0:t||10;var n=l(e).toHsl();return n.s-=t/100,n.s=ne(n.s),l(n)}function b(e,t){t=t===0?0:t||10;var n=l(e).toHsl();return n.s+=t/100,n.s=ne(n.s),l(n)}function x(e){return l(e).desaturate(100)}function S(e,t){t=t===0?0:t||10;var n=l(e).toHsl();return n.l+=t/100,n.l=ne(n.l),l(n)}function C(e,t){t=t===0?0:t||10;var n=l(e).toRgb();return n.r=s(0,o(255,n.r-a(255*-(t/100)))),n.g=s(0,o(255,n.g-a(255*-(t/100)))),n.b=s(0,o(255,n.b-a(255*-(t/100)))),l(n)}function w(e,t){t=t===0?0:t||10;var n=l(e).toHsl();return n.l-=t/100,n.l=ne(n.l),l(n)}function T(e,t){var n=l(e).toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,l(n)}function E(e){var t=l(e).toHsl();return t.h=(t.h+180)%360,l(t)}function D(e){var t=l(e).toHsl(),n=t.h;return[l(e),l({h:(n+120)%360,s:t.s,l:t.l}),l({h:(n+240)%360,s:t.s,l:t.l})]}function O(e){var t=l(e).toHsl(),n=t.h;return[l(e),l({h:(n+90)%360,s:t.s,l:t.l}),l({h:(n+180)%360,s:t.s,l:t.l}),l({h:(n+270)%360,s:t.s,l:t.l})]}function k(e){var t=l(e).toHsl(),n=t.h;return[l(e),l({h:(n+72)%360,s:t.s,l:t.l}),l({h:(n+216)%360,s:t.s,l:t.l})]}function A(e,t,n){t||=6,n||=30;var r=l(e).toHsl(),i=360/n,a=[l(e)];for(r.h=(r.h-(i*t>>1)+720)%360;--t;)r.h=(r.h+i)%360,a.push(l(r));return a}function j(e,t){t||=6;for(var n=l(e).toHsv(),r=n.h,i=n.s,a=n.v,o=[],s=1/t;t--;)o.push(l({h:r,s:i,v:a})),a=(a+s)%1;return o}l.mix=function(e,t,n){n=n===0?0:n||50;var r=l(e).toRgb(),i=l(t).toRgb(),a=n/100,o={r:(i.r-r.r)*a+r.r,g:(i.g-r.g)*a+r.g,b:(i.b-r.b)*a+r.b,a:(i.a-r.a)*a+r.a};return l(o)},l.readability=function(t,n){var r=l(t),i=l(n);return(e.max(r.getLuminance(),i.getLuminance())+.05)/(e.min(r.getLuminance(),i.getLuminance())+.05)},l.isReadable=function(e,t,n){var r=l.readability(e,t),i,a;switch(a=!1,i=R(n),i.level+i.size){case`AAsmall`:case`AAAlarge`:a=r>=4.5;break;case`AAlarge`:a=r>=3;break;case`AAAsmall`:a=r>=7;break}return a},l.mostReadable=function(e,t,n){var r=null,i=0,a,o,s,c;n||={},o=n.includeFallbackColors,s=n.level,c=n.size;for(var u=0;u<t.length;u++)a=l.readability(e,t[u]),a>i&&(i=a,r=l(t[u]));return l.isReadable(e,r,{level:s,size:c})||!o?r:(n.includeFallbackColors=!1,l.mostReadable(e,[`#fff`,`#000`],n))};var M=l.names={aliceblue:`f0f8ff`,antiquewhite:`faebd7`,aqua:`0ff`,aquamarine:`7fffd4`,azure:`f0ffff`,beige:`f5f5dc`,bisque:`ffe4c4`,black:`000`,blanchedalmond:`ffebcd`,blue:`00f`,blueviolet:`8a2be2`,brown:`a52a2a`,burlywood:`deb887`,burntsienna:`ea7e5d`,cadetblue:`5f9ea0`,chartreuse:`7fff00`,chocolate:`d2691e`,coral:`ff7f50`,cornflowerblue:`6495ed`,cornsilk:`fff8dc`,crimson:`dc143c`,cyan:`0ff`,darkblue:`00008b`,darkcyan:`008b8b`,darkgoldenrod:`b8860b`,darkgray:`a9a9a9`,darkgreen:`006400`,darkgrey:`a9a9a9`,darkkhaki:`bdb76b`,darkmagenta:`8b008b`,darkolivegreen:`556b2f`,darkorange:`ff8c00`,darkorchid:`9932cc`,darkred:`8b0000`,darksalmon:`e9967a`,darkseagreen:`8fbc8f`,darkslateblue:`483d8b`,darkslategray:`2f4f4f`,darkslategrey:`2f4f4f`,darkturquoise:`00ced1`,darkviolet:`9400d3`,deeppink:`ff1493`,deepskyblue:`00bfff`,dimgray:`696969`,dimgrey:`696969`,dodgerblue:`1e90ff`,firebrick:`b22222`,floralwhite:`fffaf0`,forestgreen:`228b22`,fuchsia:`f0f`,gainsboro:`dcdcdc`,ghostwhite:`f8f8ff`,gold:`ffd700`,goldenrod:`daa520`,gray:`808080`,green:`008000`,greenyellow:`adff2f`,grey:`808080`,honeydew:`f0fff0`,hotpink:`ff69b4`,indianred:`cd5c5c`,indigo:`4b0082`,ivory:`fffff0`,khaki:`f0e68c`,lavender:`e6e6fa`,lavenderblush:`fff0f5`,lawngreen:`7cfc00`,lemonchiffon:`fffacd`,lightblue:`add8e6`,lightcoral:`f08080`,lightcyan:`e0ffff`,lightgoldenrodyellow:`fafad2`,lightgray:`d3d3d3`,lightgreen:`90ee90`,lightgrey:`d3d3d3`,lightpink:`ffb6c1`,lightsalmon:`ffa07a`,lightseagreen:`20b2aa`,lightskyblue:`87cefa`,lightslategray:`789`,lightslategrey:`789`,lightsteelblue:`b0c4de`,lightyellow:`ffffe0`,lime:`0f0`,limegreen:`32cd32`,linen:`faf0e6`,magenta:`f0f`,maroon:`800000`,mediumaquamarine:`66cdaa`,mediumblue:`0000cd`,mediumorchid:`ba55d3`,mediumpurple:`9370db`,mediumseagreen:`3cb371`,mediumslateblue:`7b68ee`,mediumspringgreen:`00fa9a`,mediumturquoise:`48d1cc`,mediumvioletred:`c71585`,midnightblue:`191970`,mintcream:`f5fffa`,mistyrose:`ffe4e1`,moccasin:`ffe4b5`,navajowhite:`ffdead`,navy:`000080`,oldlace:`fdf5e6`,olive:`808000`,olivedrab:`6b8e23`,orange:`ffa500`,orangered:`ff4500`,orchid:`da70d6`,palegoldenrod:`eee8aa`,palegreen:`98fb98`,paleturquoise:`afeeee`,palevioletred:`db7093`,papayawhip:`ffefd5`,peachpuff:`ffdab9`,peru:`cd853f`,pink:`ffc0cb`,plum:`dda0dd`,powderblue:`b0e0e6`,purple:`800080`,rebeccapurple:`663399`,red:`f00`,rosybrown:`bc8f8f`,royalblue:`4169e1`,saddlebrown:`8b4513`,salmon:`fa8072`,sandybrown:`f4a460`,seagreen:`2e8b57`,seashell:`fff5ee`,sienna:`a0522d`,silver:`c0c0c0`,skyblue:`87ceeb`,slateblue:`6a5acd`,slategray:`708090`,slategrey:`708090`,snow:`fffafa`,springgreen:`00ff7f`,steelblue:`4682b4`,tan:`d2b48c`,teal:`008080`,thistle:`d8bfd8`,tomato:`ff6347`,turquoise:`40e0d0`,violet:`ee82ee`,wheat:`f5deb3`,white:`fff`,whitesmoke:`f5f5f5`,yellow:`ff0`,yellowgreen:`9acd32`},ee=l.hexNames=N(M);function N(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function te(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function P(t,n){re(t)&&(t=`100%`);var r=ie(t);return t=o(n,s(0,parseFloat(t))),r&&(t=parseInt(t*n,10)/100),e.abs(t-n)<1e-6?1:t%n/parseFloat(n)}function ne(e){return o(1,s(0,e))}function F(e){return parseInt(e,16)}function re(e){return typeof e==`string`&&e.indexOf(`.`)!=-1&&parseFloat(e)===1}function ie(e){return typeof e==`string`&&e.indexOf(`%`)!=-1}function ae(e){return e.length==1?`0`+e:``+e}function I(e){return e<=1&&(e=e*100+`%`),e}function oe(t){return e.round(parseFloat(t)*255).toString(16)}function se(e){return F(e)/255}var ce=(function(){var e=`[-\\+]?\\d+%?`,t=`[-\\+]?\\d*\\.\\d+%?`,n=`(?:`+t+`)|(?:`+e+`)`,r=`[\\s|\\(]+(`+n+`)[,|\\s]+(`+n+`)[,|\\s]+(`+n+`)\\s*\\)?`,i=`[\\s|\\(]+(`+n+`)[,|\\s]+(`+n+`)[,|\\s]+(`+n+`)[,|\\s]+(`+n+`)\\s*\\)?`;return{CSS_UNIT:new RegExp(n),rgb:RegExp(`rgb`+r),rgba:RegExp(`rgba`+i),hsl:RegExp(`hsl`+r),hsla:RegExp(`hsla`+i),hsv:RegExp(`hsv`+r),hsva:RegExp(`hsva`+i),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}})();function L(e){return!!ce.CSS_UNIT.exec(e)}function le(e){e=e.replace(n,``).replace(r,``).toLowerCase();var t=!1;if(M[e])e=M[e],t=!0;else if(e==`transparent`)return{r:0,g:0,b:0,a:0,format:`name`};var i;return(i=ce.rgb.exec(e))?{r:i[1],g:i[2],b:i[3]}:(i=ce.rgba.exec(e))?{r:i[1],g:i[2],b:i[3],a:i[4]}:(i=ce.hsl.exec(e))?{h:i[1],s:i[2],l:i[3]}:(i=ce.hsla.exec(e))?{h:i[1],s:i[2],l:i[3],a:i[4]}:(i=ce.hsv.exec(e))?{h:i[1],s:i[2],v:i[3]}:(i=ce.hsva.exec(e))?{h:i[1],s:i[2],v:i[3],a:i[4]}:(i=ce.hex8.exec(e))?{r:F(i[1]),g:F(i[2]),b:F(i[3]),a:se(i[4]),format:t?`name`:`hex8`}:(i=ce.hex6.exec(e))?{r:F(i[1]),g:F(i[2]),b:F(i[3]),format:t?`name`:`hex`}:(i=ce.hex4.exec(e))?{r:F(i[1]+``+i[1]),g:F(i[2]+``+i[2]),b:F(i[3]+``+i[3]),a:se(i[4]+``+i[4]),format:t?`name`:`hex8`}:(i=ce.hex3.exec(e))?{r:F(i[1]+``+i[1]),g:F(i[2]+``+i[2]),b:F(i[3]+``+i[3]),format:t?`name`:`hex`}:!1}function R(e){var t,n;return e||={level:`AA`,size:`small`},t=(e.level||`AA`).toUpperCase(),n=(e.size||`small`).toLowerCase(),t!==`AA`&&t!==`AAA`&&(t=`AA`),n!==`small`&&n!==`large`&&(n=`small`),{level:t,size:n}}t!==void 0&&t.exports?t.exports=l:typeof define==`function`&&define.amd?define(function(){return l}):window.tinycolor=l})(Math)})),PL=te(NL());const FL={duration:660,easing:`ease-in-out`,fill:`forwards`},IL={root:{kVAEAm:`x1n2onr6`,k1xSpc:`x78zum5`,kZKoxP:`xaylbqo`,kzqmXN:`xh8yej3`,kUk6DE:`x845mor`,kVQacm:`xb3r6kr`,kaIpWk:`x7rs9z2`,kWkggS:`xyujy1i`,$$css:!0},indicator:{k1xSpc:`x78zum5`,kZKoxP:`xaylbqo`,kzqmXN:`xh8yej3`,kGNEyG:`x6s0dn4`,kjj79g:`xl56j7k`,kWkggS:`xu0u6m0`,$$css:!0},overflow:{kVQacm:`xb3r6kr`,$$css:!0},roundedLeft:{kIxVMA:`x69i97v`,kqGeR4:`x3jlkfl`,$$css:!0},roundedRight:{ksF3WI:`x1wrqj5y`,kYm2EN:`x1s7l6xb`,$$css:!0},label:{kbCHJM:`x6fl0gr`,kGuDYH:`xboafo0`,kLWn49:`xl2ypbo`,kMwMTN:`xcmjw3v`,kGNEyG:`x6s0dn4`,kZKoxP:`xaylbqo`,$$css:!0},onDark:{kMwMTN:`xeda06r`,$$css:!0},onLight:{kMwMTN:`x1hil2k2`,$$css:!0},singleLabel:{kVAEAm:`x10l6tqk`,kY2c9j:`xa9119d`,$$css:!0}},LL=e=>{let{value:t,color:n,testId:r,label:i,extraClasses:a=``,labelClasses:o=``,xstyle:s,labelXstyle:c,valuesLength:l,max:u,index:d,totalValue:p,...m}=e,h=el(m),g=_(0),y=_(null),x=_(null),[S,C]=v(!1),w=window.matchMedia(`(prefers-reduced-motion: reduce)`).matches,T=r?`progress-bar-indicator-${r}`:`progress-bar-indicator`,E=Number(t)/Number(u)*100;f(()=>{if(!x.current)return;function e(){y.current&&=(y.current.cancel(),null)}let t=g.current;return e(),x.current.style.width=`${E}%`,!w&&E!==t&&(y.current=x.current.animate([{width:`${t}%`},{width:`${E}%`}],FL)),g.current=E,()=>e()},[E,w]),f(()=>{x.current&&C((0,PL.default)(getComputedStyle(x.current).backgroundColor).isDark())},[n]);let D=V(IL.indicator,l!==1&&IL.overflow,d===0&&IL.roundedLeft,p>=u&&d===l-1&&IL.roundedRight,s),O=V(IL.label,S?IL.onDark:IL.onLight,l===1&&IL.singleLabel,c);return b(ML,{...D,className:H(D.className,a),...h,"data-qtip-text":m.tooltip?m.tooltip:`${t}%`,"data-segment-value":t,"data-testid":T,ref:x,style:{...D.style,backgroundColor:n||void 0,width:w?`${E}%`:void 0},children:i?b(`span`,{...O,className:H(O.className,o),children:i}):void 0})},RL=({values:e,max:t=100,containerExtraClasses:n=``,xstyle:r,zeroValueLabel:i=`No progress yet`})=>{let a=V(IL.root,r),o=e.reduce((e,{value:t})=>e+t,0);return b(jL,{...a,className:H(a.className,n),max:t,value:o,children:o>0?e.map((n,r)=>s(LL,{...n,max:t,valuesLength:e.length,index:r,totalValue:o,key:r})):b(`div`,{className:`x6fl0gr xboafo0 xl2ypbo xcmjw3v x6s0dn4 xaylbqo x8x9d4c xack27t xb3r6kr`,children:i})})};var zL=RL;function BL(e){return e.startsWith(`svgpath:`)}function VL(e){return BL(e)?e.substring(8):``}const HL={container:{k3XXqK:`x1t137rt`,$$css:!0},interactive:{kkrTdU:`x1ypdohk`,$$css:!0}},UL=({onClick:e,icon:t,color:n,type:r=`default`,extraClassNames:i,xstyle:a,viewBox:o=`0 0 19 19`,id:s,testId:c,customId:l,...u})=>{let d=el(u),f=r===`default`?`currentColor`:tl.icon,p=V(HL.container,e&&HL.interactive,a);return b(`div`,{onClick:e,...d,...p,className:H(p.className,i),children:b(`svg`,{id:s,"data-customid":l,xmlns:`http://www.w3.org/2000/svg`,className:`x1lliihq xxymvpz xwmolx9`,viewBox:o,fill:n||f,"data-testid":c,children:b(`path`,{className:`xva0lvy`,d:VL(t)})})})};var WL=UL;const GL={createIcon:{kGuDYH:`x1aueamr`,kMwMTN:`xeda06r`,k7Eaqz:`x1arx1u8`,$$css:!0},createSvg:{kmVPX3:`x78pyy4`,kZKoxP:`xk8t5le`,kzqmXN:`x1s4ejo4`,$$css:!0},createIconContainer:{k1xSpc:`x78zum5`,kZKoxP:`xk8t5le`,kzqmXN:`x1s4ejo4`,kGNEyG:`x6s0dn4`,kjj79g:`xl56j7k`,kaIpWk:`x10a6c4v`,kWkggS:`xu0u6m0`,keoZOQ:`x5j7nwy`,$$css:!0},viewIcon:{kGuDYH:`x1603h9y`,kMwMTN:`x14yi97k`,$$css:!0},viewSvg:{kzqmXN:`xcdlrvm`,$$css:!0}},KL=e=>{let t=b(y,{});e.icon&&(t=typeof e.icon==`string`&&BL(e.icon)?b(WL,{...e,icon:e.icon,extraClassNames:e.iconExtraClassNames,xstyle:[GL.createIcon,GL.createSvg,e.iconXstyle]}):b(al,{icon:e.icon,type:`text`,extraClassNames:e.iconExtraClassNames,xstyle:[GL.createIcon,e.iconXstyle]}));let n=V(GL.createIconContainer,e.iconContainerXstyle);return x(`div`,{className:`x78zum5 x184cif5 x1q0g3np x8fetqu x1835gkm x1uae1lo`,children:[b(`div`,{...n,className:Dt(n.className,e.iconContainerExtraClassNames),children:t}),x(`div`,{className:`x78zum5 xdt5ytf xl56j7k`,children:[b(`div`,{className:`xwsyq91 x1s688f`,children:e.display}),b(`div`,{className:`x1dcheo9 xl2ypbo`,children:e.text})]})]})},qL=e=>{let t=b(y,{});return e.icon&&(t=typeof e.icon==`string`&&BL(e.icon)?b(WL,{...e,icon:e.icon,extraClassNames:e.iconExtraClassNames,xstyle:[GL.viewIcon,GL.viewSvg,e.iconXstyle],type:`default`}):b(al,{icon:e.icon,type:`text`,extraClassNames:e.iconExtraClassNames,xstyle:[GL.viewIcon,e.iconXstyle]})),b(`div`,{className:`x78zum5 xdt5ytf x1835gkm`,children:x(`div`,{className:`x78zum5 x1q0g3np xuk3077 x13z6uf9`,children:[b(`div`,{className:`x78zum5 xmll18r xwqq7k2 x6s0dn4 xl56j7k x10a6c4v`,children:t}),b(`div`,{className:`x1dcheo9`,children:e.display})]})})},JL=e=>x(`div`,{className:`x78zum5 xdt5ytf x1nhvcw1 x1835gkm xdpxx8g xo1l8bm xcmjw3v`,children:[b(`h5`,{className:`xhj8ucd xhbfen4 x6u19be xdpg8n2 xk50ysn x190h4uq`,children:e.display}),b(`div`,{className:`x1tbvfm1 x1dcheo9 xcmjw3v`,children:e.text})]}),YL={trigger:{k1xSpc:`x78zum5`,kXwgrk:`xdt5ytf`,kGNEyG:`x6s0dn4`,kWkggS:`xjbqb8w`,ksu8eU:`xng3xce`,k3XXqK:`xi1ac0m xhlp2gg xi5y0ii`,$$css:!0},disabled:{kkrTdU:`x1h6gzvc`,kSiTet:`xbyyjgo`,$$css:!0},content:{kaIpWk:`x6i6fhv`,kGVxlE:`x1tq5fk4`,$$css:!0}},XL=(e,t)=>{switch(e){case`create-workbench`:return b(KL,{...t});case`view-workbench`:return b(qL,{...t});case`insert-seeq-content`:return b(JL,{...t});default:return b(KL,{...t})}},ZL=({seeqActionDropdownItems:e,trigger:t,id:n,extraClassNames:r,xstyle:i,contentXstyle:a,containerTestId:o,disabled:s=!1,align:c=`end`,placement:l=`bottom`,placementOffset:u=5,alignOffset:d=-35,hasArrow:f=!1,onOpenChange:p,isOpen:m,setFocusOnTriggerOnClose:h=!0,keepFocusInsideDropdown:g=!0,variant:_,...v})=>{let y=el(v),S=V(YL.trigger,s&&YL.disabled,i);return x(d_,{defaultOpen:!1,open:m,onOpenChange:p,modal:g,children:[b(f_,{id:n,"data-testid":n,asChild:!0,disabled:s,children:b(`div`,{...y,...S,className:Dt(S.className,r),children:t})}),b(m_,{sideOffset:u,side:l,align:c,alignOffset:d,asChild:!0,onCloseAutoFocus:e=>!h&&e.preventDefault(),...V(S_.outline),children:x(`div`,{"data-testid":o,...V(S_.panel,S_.motion,K.content,YL.content,a),children:[f&&b(v_,{asChild:!0,children:b(`div`,{...V(S_.arrow)})}),e.map((e,t)=>x(`div`,{children:[b(g_,{onSelect:t=>{e.action(t)},...{0:{className:`x1n2onr6 x78zum5 x1ypdohk x1t137rt x87ps6o xjbqb8w x5teegj x14yi97k`},2:{className:`x1n2onr6 x78zum5 x1ypdohk x1t137rt x87ps6o xjbqb8w x5teegj x14yi97k xbyyjgo`},1:{className:`x1n2onr6 x78zum5 x1ypdohk x1t137rt x87ps6o xjbqb8w x5teegj x47corl x1ru9b6h`},3:{className:`x1n2onr6 x78zum5 x1ypdohk x1t137rt x87ps6o xjbqb8w x5teegj xbyyjgo x47corl x1ru9b6h`}}[!!e.dim<<1|!e.enabled<<0],"data-testid":e.testId,"data-dim":e.dim?``:void 0,disabled:!e.enabled,children:XL(_,e)}),e.divider&&b(__,{"data-testid":`dropdown-divider-${t}`,...V(K.separator)})]},e.id??t))]})})]})};var QL=ZL;const $L={root:{k1xSpc:`x78zum5`,kwnvtZ:`x1a02dak`,kOIVth:`x13z6uf9`,$$css:!0}};function eR({options:e,value:t,onChange:n,extraClassNames:r=``,xstyle:i,id:a,testId:o,ariaLabel:c}){let l=V($L.root,i);return b(`div`,{"aria-label":c,...l,className:H(l.className,r),"data-testid":o,id:a,role:`group`,children:e.map(e=>{let r=e.value===t;return s(`button`,{"aria-pressed":r,...{0:{className:`x9f619 xjb2p0i xkpwil5 x8r4c90 x1ypdohk x10hpsqq x1y0btm7 x15udo89 x1bilvtl x1ryrjj2 xfagghw xx6bhzk x9lcvmn xi5y0ii x1gnnqk1 x1c7lb1k x18o3ruo xhfeknq x19dje6q x1xmzkbo x8x6yx0 xzqgziu`},1:{className:`x9f619 xjb2p0i xkpwil5 x8r4c90 x1ypdohk x10hpsqq x1y0btm7 x15udo89 x1bilvtl x1ryrjj2 xfagghw xx6bhzk x9lcvmn xi5y0ii x1gnnqk1 x1c7lb1k x18o3ruo x1b20zrg xj8hjnn x1o2v4ir x14yi97k xzqgziu`}}[!!r<<0],key:String(e.value),onClick:n?()=>n(e.value):void 0,type:`button`},e.label)})})}var tR=eR;function nR(e,[t,n]){return Math.min(n,Math.max(t,e))}function rR(t){let n=e.useRef({value:t,previous:t});return e.useMemo(()=>(n.current.value!==t&&(n.current.previous=n.current.value,n.current.value=t),n.current.previous),[t])}var iR=[`PageUp`,`PageDown`],aR=[`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`],oR={"from-left":[`Home`,`PageDown`,`ArrowDown`,`ArrowLeft`],"from-right":[`Home`,`PageDown`,`ArrowDown`,`ArrowRight`],"from-bottom":[`Home`,`PageDown`,`ArrowDown`,`ArrowLeft`],"from-top":[`Home`,`PageDown`,`ArrowUp`,`ArrowLeft`]},sR=`Slider`,[cR,lR,uR]=ue(sR),[dR,fR]=F(sR,[uR]),[pR,mR]=dR(sR),hR=e.forwardRef((t,n)=>{let{name:r,min:i=0,max:a=100,step:o=1,orientation:s=`horizontal`,disabled:c=!1,minStepsBetweenThumbs:l=0,defaultValue:u=[i],value:d,onValueChange:f=()=>{},onValueCommit:p=()=>{},inverted:m=!1,form:h,...g}=t,_=e.useRef(new Set),v=e.useRef(0),y=s===`horizontal`,x=y?vR:yR,[S=[],C]=pe({prop:d,defaultProp:u,onChange:e=>{let t=[..._.current];t[v.current]?.focus(),f(e)}}),w=e.useRef(S);function T(e){let t=NR(S,e);O(e,t)}function E(e){O(e,v.current)}function D(){let e=w.current[v.current],t=S[v.current],n=t!==e;n&&p(S)}function O(e,t,{commit:n}={commit:!1}){let r=RR(o),s=zR(Math.round((e-i)/o)*o+i,r),c=nR(s,[i,a]);C((e=[])=>{let r=AR(e,c,t);if(IR(r,l*o)){v.current=r.indexOf(c);let t=String(r)!==String(e);return t&&n&&p(r),t?r:e}else return e})}return b(pR,{scope:t.__scopeSlider,name:r,disabled:c,min:i,max:a,valueIndexToChangeRef:v,thumbs:_.current,values:S,orientation:s,form:h,children:b(cR.Provider,{scope:t.__scopeSlider,children:b(cR.Slot,{scope:t.__scopeSlider,children:b(x,{"aria-disabled":c,"data-disabled":c?``:void 0,...g,ref:n,onPointerDown:z(g.onPointerDown,()=>{c||(w.current=S)}),min:i,max:a,inverted:m,onSlideStart:c?void 0:T,onSlideMove:c?void 0:E,onSlideEnd:c?void 0:D,onHomeKeyDown:()=>!c&&O(i,0,{commit:!0}),onEndKeyDown:()=>!c&&O(a,S.length-1,{commit:!0}),onStepKeyDown:({event:e,direction:t})=>{if(!c){let n=iR.includes(e.key),r=n||e.shiftKey&&aR.includes(e.key),i=r?10:1,a=v.current,s=S[a],c=o*i*t;O(s+c,a,{commit:!0})}}})})})})});hR.displayName=sR;var[gR,_R]=dR(sR,{startEdge:`left`,endEdge:`right`,size:`width`,direction:1}),vR=e.forwardRef((t,n)=>{let{min:r,max:i,dir:a,inverted:o,onSlideStart:s,onSlideMove:c,onSlideEnd:l,onStepKeyDown:u,...d}=t,[f,p]=e.useState(null),m=I(n,e=>p(e)),h=e.useRef(void 0),g=He(a),_=g===`ltr`,v=_&&!o||!_&&o;function y(e){let t=h.current||f.getBoundingClientRect(),n=[0,t.width],a=v?[r,i]:[i,r],o=LR(n,a);return h.current=t,o(e-t.left)}return b(gR,{scope:t.__scopeSlider,startEdge:v?`left`:`right`,endEdge:v?`right`:`left`,direction:v?1:-1,size:`width`,children:b(bR,{dir:g,"data-orientation":`horizontal`,...d,ref:m,style:{...d.style,"--radix-slider-thumb-transform":`translateX(-50%)`},onSlideStart:e=>{let t=y(e.clientX);s?.(t)},onSlideMove:e=>{let t=y(e.clientX);c?.(t)},onSlideEnd:()=>{h.current=void 0,l?.()},onStepKeyDown:e=>{let t=v?`from-left`:`from-right`,n=oR[t].includes(e.key);u?.({event:e,direction:n?-1:1})}})})}),yR=e.forwardRef((t,n)=>{let{min:r,max:i,inverted:a,onSlideStart:o,onSlideMove:s,onSlideEnd:c,onStepKeyDown:l,...u}=t,d=e.useRef(null),f=I(n,d),p=e.useRef(void 0),m=!a;function h(e){let t=p.current||d.current.getBoundingClientRect(),n=[0,t.height],a=m?[i,r]:[r,i],o=LR(n,a);return p.current=t,o(e-t.top)}return b(gR,{scope:t.__scopeSlider,startEdge:m?`bottom`:`top`,endEdge:m?`top`:`bottom`,size:`height`,direction:m?1:-1,children:b(bR,{"data-orientation":`vertical`,...u,ref:f,style:{...u.style,"--radix-slider-thumb-transform":`translateY(50%)`},onSlideStart:e=>{let t=h(e.clientY);o?.(t)},onSlideMove:e=>{let t=h(e.clientY);s?.(t)},onSlideEnd:()=>{p.current=void 0,c?.()},onStepKeyDown:e=>{let t=m?`from-bottom`:`from-top`,n=oR[t].includes(e.key);l?.({event:e,direction:n?-1:1})}})})}),bR=e.forwardRef((e,t)=>{let{__scopeSlider:n,onSlideStart:r,onSlideMove:i,onSlideEnd:a,onHomeKeyDown:o,onEndKeyDown:s,onStepKeyDown:c,...l}=e,u=mR(sR,n);return b(B.span,{...l,ref:t,onKeyDown:z(e.onKeyDown,e=>{e.key===`Home`?(o(e),e.preventDefault()):e.key===`End`?(s(e),e.preventDefault()):iR.concat(aR).includes(e.key)&&(c(e),e.preventDefault())}),onPointerDown:z(e.onPointerDown,e=>{let t=e.target;t.setPointerCapture(e.pointerId),e.preventDefault(),u.thumbs.has(t)?t.focus():r(e)}),onPointerMove:z(e.onPointerMove,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&i(e)}),onPointerUp:z(e.onPointerUp,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&(t.releasePointerCapture(e.pointerId),a(e))})})}),xR=`SliderTrack`,SR=e.forwardRef((e,t)=>{let{__scopeSlider:n,...r}=e,i=mR(xR,n);return b(B.span,{"data-disabled":i.disabled?``:void 0,"data-orientation":i.orientation,...r,ref:t})});SR.displayName=xR;var CR=`SliderRange`,wR=e.forwardRef((t,n)=>{let{__scopeSlider:r,...i}=t,a=mR(CR,r),o=_R(CR,r),s=e.useRef(null),c=I(n,s),l=a.values.length,u=a.values.map(e=>jR(e,a.min,a.max)),d=l>1?Math.min(...u):0,f=100-Math.max(...u);return b(B.span,{"data-orientation":a.orientation,"data-disabled":a.disabled?``:void 0,...i,ref:c,style:{...t.style,[o.startEdge]:d+`%`,[o.endEdge]:f+`%`}})});wR.displayName=CR;var TR=`SliderThumb`,ER=e.forwardRef((t,n)=>{let r=lR(t.__scopeSlider),[i,a]=e.useState(null),o=I(n,e=>a(e)),s=e.useMemo(()=>i?r().findIndex(e=>e.ref.current===i):-1,[r,i]);return b(DR,{...t,ref:o,index:s})}),DR=e.forwardRef((t,n)=>{let{__scopeSlider:r,index:i,name:a,...o}=t,s=mR(TR,r),c=_R(TR,r),[l,u]=e.useState(null),d=I(n,e=>u(e)),f=l?s.form||!!l.closest(`form`):!0,p=If(l),m=s.values[i],h=m===void 0?0:jR(m,s.min,s.max),g=MR(i,s.values.length),_=p?.[c.size],v=_?PR(_,h,c.direction):0;return e.useEffect(()=>{if(l)return s.thumbs.add(l),()=>{s.thumbs.delete(l)}},[l,s.thumbs]),x(`span`,{style:{transform:`var(--radix-slider-thumb-transform)`,position:`absolute`,[c.startEdge]:`calc(${h}% + ${v}px)`},children:[b(cR.ItemSlot,{scope:t.__scopeSlider,children:b(B.span,{role:`slider`,"aria-label":t[`aria-label`]||g,"aria-valuemin":s.min,"aria-valuenow":m,"aria-valuemax":s.max,"aria-orientation":s.orientation,"data-orientation":s.orientation,"data-disabled":s.disabled?``:void 0,tabIndex:s.disabled?void 0:0,...o,ref:d,style:m===void 0?{display:`none`}:t.style,onFocus:z(t.onFocus,()=>{s.valueIndexToChangeRef.current=i})})}),f&&b(kR,{name:a??(s.name?s.name+(s.values.length>1?`[]`:``):void 0),form:s.form,value:m},i)]})});ER.displayName=TR;var OR=`RadioBubbleInput`,kR=e.forwardRef(({__scopeSlider:t,value:n,...r},i)=>{let a=e.useRef(null),o=I(a,i),s=rR(n);return e.useEffect(()=>{let e=a.current;if(!e)return;let t=window.HTMLInputElement.prototype,r=Object.getOwnPropertyDescriptor(t,`value`),i=r.set;if(s!==n&&i){let t=new Event(`input`,{bubbles:!0});i.call(e,n),e.dispatchEvent(t)}},[s,n]),b(B.input,{style:{display:`none`},...r,ref:o,defaultValue:n})});kR.displayName=OR;function AR(e=[],t,n){let r=[...e];return r[n]=t,r.sort((e,t)=>e-t)}function jR(e,t,n){let r=n-t,i=100/r,a=i*(e-t);return nR(a,[0,100])}function MR(e,t){if(t>2)return`Value ${e+1} of ${t}`;if(t===2)return[`Minimum`,`Maximum`][e]}function NR(e,t){if(e.length===1)return 0;let n=e.map(e=>Math.abs(e-t)),r=Math.min(...n);return n.indexOf(r)}function PR(e,t,n){let r=e/2,i=LR([0,50],[0,r]);return(r-i(t)*n)*n}function FR(e){return e.slice(0,-1).map((t,n)=>e[n+1]-t)}function IR(e,t){if(t>0){let n=FR(e),r=Math.min(...n);return r>=t}return!0}function LR(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function RR(e){return(String(e).split(`.`)[1]||``).length}function zR(e,t){let n=10**t;return Math.round(e*n)/n}var BR=hR,VR=SR,HR=wR,UR=ER;const WR={root:{kVAEAm:`x1n2onr6`,k1xSpc:`x78zum5`,kZKoxP:`xmll18r`,kzqmXN:`xh8yej3`,kFalU9:`x5ve5x3`,kGNEyG:`x6s0dn4`,kfSwDN:`x87ps6o`,$$css:!0},track:{kVAEAm:`x1n2onr6`,kZKoxP:`xvqfenq`,kzQI83:`x1iyjqo2`,kaIpWk:`x16eypsj`,kWkggS:`xyujy1i`,$$css:!0},range:{kVAEAm:`x10l6tqk`,kZKoxP:`x5yr21d`,kaIpWk:`x10hpsqq`,$$css:!0},thumb:{k1xSpc:`x1lliihq`,kZKoxP:`x25yk9b`,kzqmXN:`x15xktyq`,kaIpWk:`x10hpsqq`,kWkggS:`xu0u6m0 x1ev14bi`,k1ekBW:`x1msayyd`,kIyJzY:`xx6bhzk`,kAMwcw:`xwwtwea`,k3XXqK:`x1t137rt`,$$css:!0},disabled:{kWkggS:`xyujy1i xvb1xs4`,$$css:!0}},GR=({onValueChange:e,onPointerUp:t,id:n,value:r,name:i,disabled:a=!1,rootExtraClassNames:o=``,trackExtraClassNames:s=``,rangeExtraClassNames:c=``,thumbExtraClassNames:l=``,xstyle:u,trackXstyle:d,rangeXstyle:f,thumbXstyle:p,step:m,min:h=0,max:g=100,maxAccessible:_})=>{let v=Math.min(Math.max(_??g,h),g),y=Math.min(Math.max(r,h),v),S=t=>{if(!e)return;let n=Math.min(Math.max(t[0]??h,h),v);e([n])},C=V(WR.root,u),w=V(WR.track,d),T=V(WR.range,f),E=V(WR.thumb,a&&WR.disabled,p);return x(BR,{...C,className:H(C.className,o),defaultValue:[y],value:[y],onValueChange:S,onPointerUp:e=>t&&t(e),name:i,id:n,max:g,min:h,disabled:a,step:m,children:[b(VR,{...w,className:H(w.className,s),children:b(HR,{...T,className:H(T.className,c)})}),b(UR,{...E,className:H(E.className,l),"aria-disabled":a})]})};var KR=`Tabs`,[qR,JR]=F(KR,[mp]),YR=mp(),[XR,ZR]=qR(KR),QR=e.forwardRef((e,t)=>{let{__scopeTabs:n,value:r,onValueChange:i,defaultValue:a,orientation:o=`horizontal`,dir:s,activationMode:c=`automatic`,...l}=e,u=He(s),[d,f]=pe({prop:r,onChange:i,defaultProp:a??``,caller:KR});return b(XR,{scope:n,baseId:Te(),value:d,onValueChange:f,orientation:o,dir:u,activationMode:c,children:b(B.div,{dir:u,"data-orientation":o,...l,ref:t})})});QR.displayName=KR;var $R=`TabsList`,ez=e.forwardRef((e,t)=>{let{__scopeTabs:n,loop:r=!0,...i}=e,a=ZR($R,n),o=YR(n);return b(Ep,{asChild:!0,...o,orientation:a.orientation,dir:a.dir,loop:r,children:b(B.div,{role:`tablist`,"aria-orientation":a.orientation,...i,ref:t})})});ez.displayName=$R;var tz=`TabsTrigger`,nz=e.forwardRef((e,t)=>{let{__scopeTabs:n,value:r,disabled:i=!1,...a}=e,o=ZR(tz,n),s=YR(n),c=az(o.baseId,r),l=oz(o.baseId,r),u=r===o.value;return b(Dp,{asChild:!0,...s,focusable:!i,active:u,children:b(B.button,{type:`button`,role:`tab`,"aria-selected":u,"aria-controls":l,"data-state":u?`active`:`inactive`,"data-disabled":i?``:void 0,disabled:i,id:c,...a,ref:t,onMouseDown:z(e.onMouseDown,e=>{!i&&e.button===0&&e.ctrlKey===!1?o.onValueChange(r):e.preventDefault()}),onKeyDown:z(e.onKeyDown,e=>{[` `,`Enter`].includes(e.key)&&o.onValueChange(r)}),onFocus:z(e.onFocus,()=>{let e=o.activationMode!==`manual`;!u&&!i&&e&&o.onValueChange(r)})})})});nz.displayName=tz;var rz=`TabsContent`,iz=e.forwardRef((t,n)=>{let{__scopeTabs:r,value:i,forceMount:a,children:o,...s}=t,c=ZR(rz,r),l=az(c.baseId,i),u=oz(c.baseId,i),d=i===c.value,f=e.useRef(d);return e.useEffect(()=>{let e=requestAnimationFrame(()=>f.current=!1);return()=>cancelAnimationFrame(e)},[]),b(ye,{present:a||d,children:({present:e})=>b(B.div,{"data-state":d?`active`:`inactive`,"data-orientation":c.orientation,role:`tabpanel`,"aria-labelledby":l,hidden:!e,id:u,tabIndex:0,...s,ref:n,style:{...t.style,animationDuration:f.current?`0s`:void 0},children:e&&o})})});iz.displayName=rz;function az(e,t){return`${e}-trigger-${t}`}function oz(e,t){return`${e}-content-${t}`}var sz=QR,cz=ez,lz=nz,uz=iz;const dz={root:{k1xSpc:`x78zum5`,ks0D6T:`x193iq5w`,k7Eaqz:`xk9iosm`,kzQI83:`x1iyjqo2`,kXwgrk:`xdt5ytf`,k3XXqK:`xi5y0ii`,$$css:!0},trigger:{kB7OPa:`x9f619`,kMv6JI:`xjb2p0i`,kGuDYH:`x1qlqyl8`,kLWn49:`x15bjb6t`,kMwMTN:`x1heor9g`,k8WAf4:`xt970qd`,kkrTdU:`x1ypdohk`,k1xSpc:`x78zum5`,k7Eaqz:`xb8jz9x`,kUk6DE:`x98rzlu`,kGNEyG:`x6s0dn4`,kjj79g:`xl56j7k`,kMzoRj:`xc342km`,kWqL5O:`xyy74w7 x1lpyac`,ksu8eU:`x1y0btm7`,kVAM5u:`xek9zaq`,kWkggS:`xrkmy7n x1jvro2g`,kg3NbH:`xnxx81d`,kt9PQ7:`x1ad9899`,k3XXqK:`xi5y0ii`,$$css:!0},fit:{ks0D6T:`x1t8xbu`,k7Eaqz:`x1pshirs`,$$css:!0},active:{kt9PQ7:`x1czjtmd`,kL6WhQ:`x1kj26jr`,kWkggS:`xrkmy7n xjnwolr`,$$css:!0},icon:{kGuDYH:`x6u19be`,km5ZXQ:`x8oiz64`,kmuXW:`x2lah0s`,$$css:!0},label:{kVQacm:`xb3r6kr`,kGuDYH:`x1dcheo9`,k63SB2:`xk50ysn`,kg5iWk:`xlyipyv`,khDVqt:`xuxw1ft`,kMwMTN:`x1lms4yp`,$$css:!0},activeLabel:{kMwMTN:`x16sok1n`,$$css:!0},content:{kY2c9j:`x6cuj84`,keoZOQ:`x1ig984f`,k1xSpc:`x78zum5`,kzQI83:`x1iyjqo2`,kXwgrk:`xdt5ytf`,kORKVm:`x1odjw0f`,kEafiO:`x1jfus2j`,kPef9Z:`x13fuv20`,kLZC3w:`x1qu6d5y`,kWkggS:`xrkmy7n`,k3XXqK:`xi5y0ii`,$$css:!0}},fz=({tabs:e,defaultActiveTab:t,activeTab:n,onTabSelect:r,extraClassNames:i,xstyle:a,testId:o,id:c,stretchTabs:l=!1})=>{let u=e=>{n!==e&&r&&r(e)},d=V(dz.root,a);return x(sz,{...d,className:Dt(d.className,i),defaultValue:t,"data-testid":o,id:c,value:n,onValueChange:u,children:[b(cz,{className:`x1bkdxzg x78zum5 x1q0g3np x1a02dak`,children:e.map((e,t)=>{let r=V(dz.trigger,!l&&dz.fit,n===e.id&&dz.active,e.tabXstyle),i=V(dz.label,n===e.id&&dz.activeLabel,e.tabLabelXstyle);return s(lz,{...r,className:Dt(r.className,e.tabExtraClassNames),"data-testid":e.testId,disabled:e.disabled,key:`${e.label}-${e.id}-${t}`,value:e.id},x(`span`,{className:`x78zum5 x6s0dn4 xb3r6kr`,children:[e.icon&&b(al,{icon:e.icon,testId:`${e.id}_tab-icon`,xstyle:dz.icon}),b(`span`,{...i,className:Dt(i.className,e.tabLabelExtraClassNames),children:e.label})]}))})}),e.map((e,t)=>{let n=V(dz.content,e.tabContentXstyle);return s(uz,{...n,className:Dt(n.className,e.tabContentExtraClassNames),key:`${e.label}_${t}_content`,value:e.id},e.content)})]})};var pz=fz;const mz={disabled:{kfzvcC:`x47corl`,$$css:!0},field:{kB7OPa:`x9f619`,kzqmXN:`xh8yej3`,kaIpWk:`x1vx5ruh`,kE3dHu:`xq6sow3`,kpe85a:`xujd68v`,kLKAdn:`x1bixx6j`,kGO01o:`x1a943lp`,kMv6JI:`xjb2p0i`,kGuDYH:`x13vkkqp`,k63SB2:`x1pd3egz`,kLWn49:`x8cebxl`,k3XXqK:`x1t137rt`,kHenm0:`x288g5`,k8Qsv1:`xsvzths`,kH8XJS:`x7xwk5j`,$$css:!0}},hz=c(({readonly:e=!1,disabled:t=!1,onChange:n,onKeyUp:r,onFocus:i,onBlur:a,onKeyDown:o,onSelectionChange:s,id:c,name:l,rows:u=3,cols:d,value:p,placeholder:m,showError:h,extraClassNames:g=``,xstyle:v,testId:y,autoFocus:x=!1},S)=>{let C=V(lO.base,mz.field,h&&lO.invalid,t&&lO.disabled,t&&mz.disabled,v),w=_(null),T=kO(S,w);return f(()=>{if(!s||!w.current)return;let e=w.current,t=e=>{s(e)};return e.addEventListener(`selectionchange`,t),e.addEventListener(`mouseup`,t),e.addEventListener(`keyup`,t),()=>{e.removeEventListener(`selectionchange`,t),e.removeEventListener(`mouseup`,t),e.removeEventListener(`keyup`,t)}},[s]),b(`textarea`,{ref:T,"data-testid":y,name:l,id:c,value:p,...C,className:H(C.className,g),"aria-invalid":h||void 0,placeholder:m,disabled:t,readOnly:e,onChange:n,onFocus:i,onBlur:a,onKeyDown:o,onKeyUp:r,rows:u,cols:d,autoFocus:x})});hz.displayName=`TextArea`;const gz={content:{kVAEAm:`x1n2onr6`,k1xSpc:`x78zum5`,kXwgrk:`xdt5ytf`,kGNEyG:`x6s0dn4`,kaIpWk:`x1vx5ruh`,$$css:!0},small:{kE3dHu:`xf00w7v`,kpe85a:`x1d60ukw`,kLKAdn:`x4p5aij`,kGO01o:`x1j85h84`,$$css:!0},regular:{kE3dHu:`x15u6esi`,kpe85a:`x1arb9wb`,kLKAdn:`xox8ek`,kGO01o:`xmnn75e`,$$css:!0},inactive:{kWkggS:`xjbqb8w xqxyxvn x187hhwn`,$$css:!0},active:{kWkggS:`x1aprzmt xu97pxr`,$$css:!0},highlighted:{kWkggS:`xyi6za0`,$$css:!0},highlightedSmall:{koQZXg:`x1gfa6gt`,kzqmXN:`xezl2tj`,kZKoxP:`xlrawln`,kjj79g:`xl56j7k`,$$css:!0},highlightedRegular:{koQZXg:`x13zjp5t`,$$css:!0},badge:{kWkggS:`x14jy53q`,kE3dHu:`xyms1uu`,kpe85a:`xw7nc43`,kLKAdn:`x4p5aij`,kGO01o:`x1j85h84`,kGuDYH:`x1k6wstc`,kMwMTN:`x11mh32c`,$$css:!0},disabled:{kkrTdU:`x1h6gzvc`,kSiTet:`xbyyjgo`,$$css:!0},icon:{kMwMTN:`xcmjw3v`,$$css:!0},arrowIcon:{koQZXg:`x1he087y`,$$css:!0},popover:{kVAEAm:`x1n2onr6`,kY2c9j:`xfo81ep`,k7Eaqz:`x1vi9356`,kmVPX3:`x7gbtqy`,kaIpWk:`x1vx5ruh`,$$css:!0}},_z=c(({align:e=`center`,sideOffset:t=4,...n},r)=>b(nv,{ref:r,align:e,sideOffset:t,...n,asChild:!0}));_z.displayName=`PopoverContent`;const vz=({isSmall:e=!1,label:t,icon:n,secondIcon:r,forceSmallIcon:i=!1,tooltipText:a,id:o,popoverContent:s,extraClassNames:c,xstyle:l,contentXstyle:u,testId:d,tooltipTestId:f,tooltipOptions:p,isActive:m,isHighlighted:h=!1,badge:g,isHtmlTooltip:_=!1,hasArrow:v=!1,disabled:y=!1,isPrimaryAnSvg:S=!1,primaryIconExtraClassNames:C,primaryIconXstyle:w,iconHeight:T=24,iconWidth:E=24,primaryIconViewbox:D=`0 0 24 24`,popoverAlign:O=`start`,onClick:k,onHide:A})=>{let j;a&&(j={"data-qtip-text":a,"data-qtip-placement":p?.position,"data-qtip-is-html":_,"data-qtip-testid":f,"data-qtip-delay":p?.delay??500});let M=e=>{e||A&&A()},ee={className:`xr1qrh x4o9dxs x1qif595 x552jh6 xng3xce xjbqb8w x1717udv xln7xf2 x1heor9g`},N=V(gz.content,m?gz.active:h?gz.highlighted:gz.inactive,e?gz.small:gz.regular,h&&(e?gz.highlightedSmall:gz.highlightedRegular),y&&gz.disabled,l),te=V(gz.icon,w);return x($_,{defaultOpen:!1,onOpenChange:M,children:[b(ev,{id:o,...ee,className:H(ee.className,{active:m}),"aria-pressed":m,disabled:y,"data-testid":d,onClick:e=>{k&&k(e)},children:x(`div`,{...j,"data-highlighted":h||void 0,...N,className:H(N.className,{active:m},c),children:[x(`span`,{className:`xuxw1ft`,children:[S&&typeof n==`string`?b(`svg`,{xmlns:`http://www.w3.org/2000/svg`,...te,className:H(te.className,C),viewBox:D,height:`${T}px`,width:`${E}px`,fill:`currentColor`,"data-testid":d,children:b(`path`,{d:VL(n)})}):b(al,{icon:n,testId:`firstIcon`,type:`text`,size:!e&&!t&&!r&&!i?`lg`:`sm`,extraClassNames:C,xstyle:[gz.icon,w]}),r&&b(al,{icon:r,type:`text`,testId:`secondIcon`}),s?b(al,{icon:jt,xstyle:[gz.icon,gz.arrowIcon],type:`text`,size:`sm`}):void 0]}),!e&&b(`small`,{className:`x2ohwh0 xcmjw3v`,children:t}),g?b(`span`,{className:`x47corl x10l6tqk x13vifvy xgvigy7 xo5v014`,children:b(ml,{testId:d?`${d}-badge`:void 0,xstyle:gz.badge,children:g})}):void 0]})}),s?b(_z,{sideOffset:2,align:O,children:x(`div`,{...V(S_.panel,gz.popover,u),children:[v&&b(rv,{asChild:!0,children:b(`div`,{...V(S_.arrow)})}),s]})}):void 0]})},yz={kIr0Dl:`xlohyk8`,$$css:!0},bz={root:{kVAEAm:`x1n2onr6`,k1xSpc:`x1rg5ohu`,$$css:!0},tooltip:{kVAEAm:`x10l6tqk`,kY2c9j:`xa9119d`,khDVqt:`xuxw1ft`,kaIpWk:`x16eypsj`,kWkggS:`x186xesn`,kmVPX3:`x7gbtqy`,kGuDYH:`xboafo0`,kLWn49:`xl2ypbo`,kMwMTN:`xeda06r`,k1xSpc:`x1s85apg xffv3ix`,kSiTet:`xg01cxk x5b7970`,kgeoSG:`x1cpjm7i`,kEoFBp:`x1hmns74`,k5Ohv7:`x1w5wfvx`,kj4x2v:`x1fo1fc9`,kfXFYZ:`xhkbipy`,$$css:!0},delay:e=>[yz,{"--x-transitionDelay":(e=>typeof e==`number`?e+`ms`:e??void 0)(`${e}ms`)}],top:{k87sOh:`x17v2gtu`,kbCHJM:`x1nrll8i`,k3aq6I:`xo88s9q`,k5Ofw7:`xnxhvzd`,k75S9Q:`xgdch9p`,kcTAPf:`xnyzbwf`,kwknyK:`x9v96k9`,$$css:!0},bottom:{krVfgx:`xjg1pr4`,kbCHJM:`x1nrll8i`,k3aq6I:`x31h1t8`,k96MEf:`x1nxnffj`,k75S9Q:`xgdch9p`,kcTAPf:`xnyzbwf`,k1cwP5:`xtin7g8`,$$css:!0},left:{kbCHJM:`x1muxdp`,k87sOh:`xwa60dl`,k3aq6I:`x5c49eg`,k75S9Q:`xj5rhnp`,k96MEf:`x1knuo7r`,kcTAPf:`xkjykve`,k6d8aP:`xblqu9g`,$$css:!0},right:{kCIrl2:`x1osv2p`,k87sOh:`xwa60dl`,k3aq6I:`x1xl9qsw`,kLBHJ3:`x3cmejs`,k96MEf:`x1knuo7r`,kcTAPf:`xkjykve`,kSMQRv:`xektodi`,$$css:!0}},xz=({position:e=`bottom`,children:t,text:n,delay:r=500})=>x(`div`,{className:`x-default-marker x1n2onr6 x1rg5ohu`,children:[t,b(`div`,{...V(bz.tooltip,bz[e],bz.delay(r)),children:n})]});
|
|
1148
|
+
Defaulting to \`null\`.`}var ML=SL,NL=wL,PL=M(((exports,t)=>{(function(e){var n=/^\s+/,r=/\s+$/,i=0,a=e.round,o=e.min,s=e.max,c=e.random;function l(e,t){if(e||=``,t||={},e instanceof l)return e;if(!(this instanceof l))return new l(e,t);var n=u(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=a(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=a(this._r)),this._g<1&&(this._g=a(this._g)),this._b<1&&(this._b=a(this._b)),this._ok=n.ok,this._tc_id=i++}l.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(e.r*299+e.g*587+e.b*114)/1e3},getLuminance:function(){var t=this.toRgb(),n,r,i,a,o,s;return n=t.r/255,r=t.g/255,i=t.b/255,a=n<=.03928?n/12.92:e.pow((n+.055)/1.055,2.4),o=r<=.03928?r/12.92:e.pow((r+.055)/1.055,2.4),s=i<=.03928?i/12.92:e.pow((i+.055)/1.055,2.4),.2126*a+.7152*o+.0722*s},setAlpha:function(e){return this._a=N(e),this._roundA=a(100*this._a)/100,this},toHsv:function(){var e=m(this._r,this._g,this._b);return{h:e.h*360,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=m(this._r,this._g,this._b),t=a(e.h*360),n=a(e.s*100),r=a(e.v*100);return this._a==1?`hsv(`+t+`, `+n+`%, `+r+`%)`:`hsva(`+t+`, `+n+`%, `+r+`%, `+this._roundA+`)`},toHsl:function(){var e=f(this._r,this._g,this._b);return{h:e.h*360,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=f(this._r,this._g,this._b),t=a(e.h*360),n=a(e.s*100),r=a(e.l*100);return this._a==1?`hsl(`+t+`, `+n+`%, `+r+`%)`:`hsla(`+t+`, `+n+`%, `+r+`%, `+this._roundA+`)`},toHex:function(e){return g(this._r,this._g,this._b,e)},toHexString:function(e){return`#`+this.toHex(e)},toHex8:function(e){return _(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return`#`+this.toHex8(e)},toRgb:function(){return{r:a(this._r),g:a(this._g),b:a(this._b),a:this._a}},toRgbString:function(){return this._a==1?`rgb(`+a(this._r)+`, `+a(this._g)+`, `+a(this._b)+`)`:`rgba(`+a(this._r)+`, `+a(this._g)+`, `+a(this._b)+`, `+this._roundA+`)`},toPercentageRgb:function(){return{r:a(P(this._r,255)*100)+`%`,g:a(P(this._g,255)*100)+`%`,b:a(P(this._b,255)*100)+`%`,a:this._a}},toPercentageRgbString:function(){return this._a==1?`rgb(`+a(P(this._r,255)*100)+`%, `+a(P(this._g,255)*100)+`%, `+a(P(this._b,255)*100)+`%)`:`rgba(`+a(P(this._r,255)*100)+`%, `+a(P(this._g,255)*100)+`%, `+a(P(this._b,255)*100)+`%, `+this._roundA+`)`},toName:function(){return this._a===0?`transparent`:this._a<1?!1:ee[g(this._r,this._g,this._b,!0)]||!1},toFilter:function(e){var t=`#`+v(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?`GradientType = 1, `:``;if(e){var i=l(e);n=`#`+v(i._r,i._g,i._b,i._a)}return`progid:DXImageTransform.Microsoft.gradient(`+r+`startColorstr=`+t+`,endColorstr=`+n+`)`},toString:function(e){var t=!!e;e||=this._format;var n=!1,r=this._a<1&&this._a>=0,i=!t&&r&&(e===`hex`||e===`hex6`||e===`hex3`||e===`hex4`||e===`hex8`||e===`name`);return i?e===`name`&&this._a===0?this.toName():this.toRgbString():(e===`rgb`&&(n=this.toRgbString()),e===`prgb`&&(n=this.toPercentageRgbString()),(e===`hex`||e===`hex6`)&&(n=this.toHexString()),e===`hex3`&&(n=this.toHexString(!0)),e===`hex4`&&(n=this.toHex8String(!0)),e===`hex8`&&(n=this.toHex8String()),e===`name`&&(n=this.toName()),e===`hsl`&&(n=this.toHslString()),e===`hsv`&&(n=this.toHsvString()),n||this.toHexString())},clone:function(){return l(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(S,arguments)},brighten:function(){return this._applyModification(C,arguments)},darken:function(){return this._applyModification(w,arguments)},desaturate:function(){return this._applyModification(y,arguments)},saturate:function(){return this._applyModification(b,arguments)},greyscale:function(){return this._applyModification(x,arguments)},spin:function(){return this._applyModification(T,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(A,arguments)},complement:function(){return this._applyCombination(E,arguments)},monochromatic:function(){return this._applyCombination(j,arguments)},splitcomplement:function(){return this._applyCombination(k,arguments)},triad:function(){return this._applyCombination(D,arguments)},tetrad:function(){return this._applyCombination(O,arguments)}},l.fromRatio=function(e,t){if(typeof e==`object`){var n={};for(var r in e)e.hasOwnProperty(r)&&(r===`a`?n[r]=e[r]:n[r]=I(e[r]));e=n}return l(e,t)};function u(e){var t={r:0,g:0,b:0},n=1,r=null,i=null,a=null,c=!1,l=!1;return typeof e==`string`&&(e=le(e)),typeof e==`object`&&(L(e.r)&&L(e.g)&&L(e.b)?(t=d(e.r,e.g,e.b),c=!0,l=String(e.r).substr(-1)===`%`?`prgb`:`rgb`):L(e.h)&&L(e.s)&&L(e.v)?(r=I(e.s),i=I(e.v),t=h(e.h,r,i),c=!0,l=`hsv`):L(e.h)&&L(e.s)&&L(e.l)&&(r=I(e.s),a=I(e.l),t=p(e.h,r,a),c=!0,l=`hsl`),e.hasOwnProperty(`a`)&&(n=e.a)),n=N(n),{ok:c,format:e.format||l,r:o(255,s(t.r,0)),g:o(255,s(t.g,0)),b:o(255,s(t.b,0)),a:n}}function d(e,t,n){return{r:P(e,255)*255,g:P(t,255)*255,b:P(n,255)*255}}function f(e,t,n){e=P(e,255),t=P(t,255),n=P(n,255);var r=s(e,t,n),i=o(e,t,n),a,c,l=(r+i)/2;if(r==i)a=c=0;else{var u=r-i;switch(c=l>.5?u/(2-r-i):u/(r+i),r){case e:a=(t-n)/u+(t<n?6:0);break;case t:a=(n-e)/u+2;break;case n:a=(e-t)/u+4;break}a/=6}return{h:a,s:c,l}}function p(e,t,n){var r,i,a;e=P(e,360),t=P(t,100),n=P(n,100);function o(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(t===0)r=i=a=n;else{var s=n<.5?n*(1+t):n+t-n*t,c=2*n-s;r=o(c,s,e+1/3),i=o(c,s,e),a=o(c,s,e-1/3)}return{r:r*255,g:i*255,b:a*255}}function m(e,t,n){e=P(e,255),t=P(t,255),n=P(n,255);var r=s(e,t,n),i=o(e,t,n),a,c,l=r,u=r-i;if(c=r===0?0:u/r,r==i)a=0;else{switch(r){case e:a=(t-n)/u+(t<n?6:0);break;case t:a=(n-e)/u+2;break;case n:a=(e-t)/u+4;break}a/=6}return{h:a,s:c,v:l}}function h(t,n,r){t=P(t,360)*6,n=P(n,100),r=P(r,100);var i=e.floor(t),a=t-i,o=r*(1-n),s=r*(1-a*n),c=r*(1-(1-a)*n),l=i%6,u=[r,s,o,o,c,r][l],d=[c,r,r,s,o,o][l],f=[o,o,c,r,r,s][l];return{r:u*255,g:d*255,b:f*255}}function g(e,t,n,r){var i=[ae(a(e).toString(16)),ae(a(t).toString(16)),ae(a(n).toString(16))];return r&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join(``)}function _(e,t,n,r,i){var o=[ae(a(e).toString(16)),ae(a(t).toString(16)),ae(a(n).toString(16)),ae(oe(r))];return i&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)&&o[3].charAt(0)==o[3].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join(``)}function v(e,t,n,r){var i=[ae(oe(r)),ae(a(e).toString(16)),ae(a(t).toString(16)),ae(a(n).toString(16))];return i.join(``)}l.equals=function(e,t){return!e||!t?!1:l(e).toRgbString()==l(t).toRgbString()},l.random=function(){return l.fromRatio({r:c(),g:c(),b:c()})};function y(e,t){t=t===0?0:t||10;var n=l(e).toHsl();return n.s-=t/100,n.s=ne(n.s),l(n)}function b(e,t){t=t===0?0:t||10;var n=l(e).toHsl();return n.s+=t/100,n.s=ne(n.s),l(n)}function x(e){return l(e).desaturate(100)}function S(e,t){t=t===0?0:t||10;var n=l(e).toHsl();return n.l+=t/100,n.l=ne(n.l),l(n)}function C(e,t){t=t===0?0:t||10;var n=l(e).toRgb();return n.r=s(0,o(255,n.r-a(255*-(t/100)))),n.g=s(0,o(255,n.g-a(255*-(t/100)))),n.b=s(0,o(255,n.b-a(255*-(t/100)))),l(n)}function w(e,t){t=t===0?0:t||10;var n=l(e).toHsl();return n.l-=t/100,n.l=ne(n.l),l(n)}function T(e,t){var n=l(e).toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,l(n)}function E(e){var t=l(e).toHsl();return t.h=(t.h+180)%360,l(t)}function D(e){var t=l(e).toHsl(),n=t.h;return[l(e),l({h:(n+120)%360,s:t.s,l:t.l}),l({h:(n+240)%360,s:t.s,l:t.l})]}function O(e){var t=l(e).toHsl(),n=t.h;return[l(e),l({h:(n+90)%360,s:t.s,l:t.l}),l({h:(n+180)%360,s:t.s,l:t.l}),l({h:(n+270)%360,s:t.s,l:t.l})]}function k(e){var t=l(e).toHsl(),n=t.h;return[l(e),l({h:(n+72)%360,s:t.s,l:t.l}),l({h:(n+216)%360,s:t.s,l:t.l})]}function A(e,t,n){t||=6,n||=30;var r=l(e).toHsl(),i=360/n,a=[l(e)];for(r.h=(r.h-(i*t>>1)+720)%360;--t;)r.h=(r.h+i)%360,a.push(l(r));return a}function j(e,t){t||=6;for(var n=l(e).toHsv(),r=n.h,i=n.s,a=n.v,o=[],s=1/t;t--;)o.push(l({h:r,s:i,v:a})),a=(a+s)%1;return o}l.mix=function(e,t,n){n=n===0?0:n||50;var r=l(e).toRgb(),i=l(t).toRgb(),a=n/100,o={r:(i.r-r.r)*a+r.r,g:(i.g-r.g)*a+r.g,b:(i.b-r.b)*a+r.b,a:(i.a-r.a)*a+r.a};return l(o)},l.readability=function(t,n){var r=l(t),i=l(n);return(e.max(r.getLuminance(),i.getLuminance())+.05)/(e.min(r.getLuminance(),i.getLuminance())+.05)},l.isReadable=function(e,t,n){var r=l.readability(e,t),i,a;switch(a=!1,i=ue(n),i.level+i.size){case`AAsmall`:case`AAAlarge`:a=r>=4.5;break;case`AAlarge`:a=r>=3;break;case`AAAsmall`:a=r>=7;break}return a},l.mostReadable=function(e,t,n){var r=null,i=0,a,o,s,c;n||={},o=n.includeFallbackColors,s=n.level,c=n.size;for(var u=0;u<t.length;u++)a=l.readability(e,t[u]),a>i&&(i=a,r=l(t[u]));return l.isReadable(e,r,{level:s,size:c})||!o?r:(n.includeFallbackColors=!1,l.mostReadable(e,[`#fff`,`#000`],n))};var M=l.names={aliceblue:`f0f8ff`,antiquewhite:`faebd7`,aqua:`0ff`,aquamarine:`7fffd4`,azure:`f0ffff`,beige:`f5f5dc`,bisque:`ffe4c4`,black:`000`,blanchedalmond:`ffebcd`,blue:`00f`,blueviolet:`8a2be2`,brown:`a52a2a`,burlywood:`deb887`,burntsienna:`ea7e5d`,cadetblue:`5f9ea0`,chartreuse:`7fff00`,chocolate:`d2691e`,coral:`ff7f50`,cornflowerblue:`6495ed`,cornsilk:`fff8dc`,crimson:`dc143c`,cyan:`0ff`,darkblue:`00008b`,darkcyan:`008b8b`,darkgoldenrod:`b8860b`,darkgray:`a9a9a9`,darkgreen:`006400`,darkgrey:`a9a9a9`,darkkhaki:`bdb76b`,darkmagenta:`8b008b`,darkolivegreen:`556b2f`,darkorange:`ff8c00`,darkorchid:`9932cc`,darkred:`8b0000`,darksalmon:`e9967a`,darkseagreen:`8fbc8f`,darkslateblue:`483d8b`,darkslategray:`2f4f4f`,darkslategrey:`2f4f4f`,darkturquoise:`00ced1`,darkviolet:`9400d3`,deeppink:`ff1493`,deepskyblue:`00bfff`,dimgray:`696969`,dimgrey:`696969`,dodgerblue:`1e90ff`,firebrick:`b22222`,floralwhite:`fffaf0`,forestgreen:`228b22`,fuchsia:`f0f`,gainsboro:`dcdcdc`,ghostwhite:`f8f8ff`,gold:`ffd700`,goldenrod:`daa520`,gray:`808080`,green:`008000`,greenyellow:`adff2f`,grey:`808080`,honeydew:`f0fff0`,hotpink:`ff69b4`,indianred:`cd5c5c`,indigo:`4b0082`,ivory:`fffff0`,khaki:`f0e68c`,lavender:`e6e6fa`,lavenderblush:`fff0f5`,lawngreen:`7cfc00`,lemonchiffon:`fffacd`,lightblue:`add8e6`,lightcoral:`f08080`,lightcyan:`e0ffff`,lightgoldenrodyellow:`fafad2`,lightgray:`d3d3d3`,lightgreen:`90ee90`,lightgrey:`d3d3d3`,lightpink:`ffb6c1`,lightsalmon:`ffa07a`,lightseagreen:`20b2aa`,lightskyblue:`87cefa`,lightslategray:`789`,lightslategrey:`789`,lightsteelblue:`b0c4de`,lightyellow:`ffffe0`,lime:`0f0`,limegreen:`32cd32`,linen:`faf0e6`,magenta:`f0f`,maroon:`800000`,mediumaquamarine:`66cdaa`,mediumblue:`0000cd`,mediumorchid:`ba55d3`,mediumpurple:`9370db`,mediumseagreen:`3cb371`,mediumslateblue:`7b68ee`,mediumspringgreen:`00fa9a`,mediumturquoise:`48d1cc`,mediumvioletred:`c71585`,midnightblue:`191970`,mintcream:`f5fffa`,mistyrose:`ffe4e1`,moccasin:`ffe4b5`,navajowhite:`ffdead`,navy:`000080`,oldlace:`fdf5e6`,olive:`808000`,olivedrab:`6b8e23`,orange:`ffa500`,orangered:`ff4500`,orchid:`da70d6`,palegoldenrod:`eee8aa`,palegreen:`98fb98`,paleturquoise:`afeeee`,palevioletred:`db7093`,papayawhip:`ffefd5`,peachpuff:`ffdab9`,peru:`cd853f`,pink:`ffc0cb`,plum:`dda0dd`,powderblue:`b0e0e6`,purple:`800080`,rebeccapurple:`663399`,red:`f00`,rosybrown:`bc8f8f`,royalblue:`4169e1`,saddlebrown:`8b4513`,salmon:`fa8072`,sandybrown:`f4a460`,seagreen:`2e8b57`,seashell:`fff5ee`,sienna:`a0522d`,silver:`c0c0c0`,skyblue:`87ceeb`,slateblue:`6a5acd`,slategray:`708090`,slategrey:`708090`,snow:`fffafa`,springgreen:`00ff7f`,steelblue:`4682b4`,tan:`d2b48c`,teal:`008080`,thistle:`d8bfd8`,tomato:`ff6347`,turquoise:`40e0d0`,violet:`ee82ee`,wheat:`f5deb3`,white:`fff`,whitesmoke:`f5f5f5`,yellow:`ff0`,yellowgreen:`9acd32`},ee=l.hexNames=te(M);function te(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function N(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function P(t,n){re(t)&&(t=`100%`);var r=ie(t);return t=o(n,s(0,parseFloat(t))),r&&(t=parseInt(t*n,10)/100),e.abs(t-n)<1e-6?1:t%n/parseFloat(n)}function ne(e){return o(1,s(0,e))}function F(e){return parseInt(e,16)}function re(e){return typeof e==`string`&&e.indexOf(`.`)!=-1&&parseFloat(e)===1}function ie(e){return typeof e==`string`&&e.indexOf(`%`)!=-1}function ae(e){return e.length==1?`0`+e:``+e}function I(e){return e<=1&&(e=e*100+`%`),e}function oe(t){return e.round(parseFloat(t)*255).toString(16)}function se(e){return F(e)/255}var ce=(function(){var e=`[-\\+]?\\d+%?`,t=`[-\\+]?\\d*\\.\\d+%?`,n=`(?:`+t+`)|(?:`+e+`)`,r=`[\\s|\\(]+(`+n+`)[,|\\s]+(`+n+`)[,|\\s]+(`+n+`)\\s*\\)?`,i=`[\\s|\\(]+(`+n+`)[,|\\s]+(`+n+`)[,|\\s]+(`+n+`)[,|\\s]+(`+n+`)\\s*\\)?`;return{CSS_UNIT:new RegExp(n),rgb:RegExp(`rgb`+r),rgba:RegExp(`rgba`+i),hsl:RegExp(`hsl`+r),hsla:RegExp(`hsla`+i),hsv:RegExp(`hsv`+r),hsva:RegExp(`hsva`+i),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}})();function L(e){return!!ce.CSS_UNIT.exec(e)}function le(e){e=e.replace(n,``).replace(r,``).toLowerCase();var t=!1;if(M[e])e=M[e],t=!0;else if(e==`transparent`)return{r:0,g:0,b:0,a:0,format:`name`};var i;return(i=ce.rgb.exec(e))?{r:i[1],g:i[2],b:i[3]}:(i=ce.rgba.exec(e))?{r:i[1],g:i[2],b:i[3],a:i[4]}:(i=ce.hsl.exec(e))?{h:i[1],s:i[2],l:i[3]}:(i=ce.hsla.exec(e))?{h:i[1],s:i[2],l:i[3],a:i[4]}:(i=ce.hsv.exec(e))?{h:i[1],s:i[2],v:i[3]}:(i=ce.hsva.exec(e))?{h:i[1],s:i[2],v:i[3],a:i[4]}:(i=ce.hex8.exec(e))?{r:F(i[1]),g:F(i[2]),b:F(i[3]),a:se(i[4]),format:t?`name`:`hex8`}:(i=ce.hex6.exec(e))?{r:F(i[1]),g:F(i[2]),b:F(i[3]),format:t?`name`:`hex`}:(i=ce.hex4.exec(e))?{r:F(i[1]+``+i[1]),g:F(i[2]+``+i[2]),b:F(i[3]+``+i[3]),a:se(i[4]+``+i[4]),format:t?`name`:`hex8`}:(i=ce.hex3.exec(e))?{r:F(i[1]+``+i[1]),g:F(i[2]+``+i[2]),b:F(i[3]+``+i[3]),format:t?`name`:`hex`}:!1}function ue(e){var t,n;return e||={level:`AA`,size:`small`},t=(e.level||`AA`).toUpperCase(),n=(e.size||`small`).toLowerCase(),t!==`AA`&&t!==`AAA`&&(t=`AA`),n!==`small`&&n!==`large`&&(n=`small`),{level:t,size:n}}t!==void 0&&t.exports?t.exports=l:typeof define==`function`&&define.amd?define(function(){return l}):window.tinycolor=l})(Math)})),FL=N(PL());const IL={duration:660,easing:`ease-in-out`,fill:`forwards`},LL={root:{kVAEAm:`x1n2onr6`,k1xSpc:`x78zum5`,kZKoxP:`xaylbqo`,kzqmXN:`xh8yej3`,kUk6DE:`x845mor`,kVQacm:`xb3r6kr`,kaIpWk:`x7rs9z2`,kWkggS:`xyujy1i`,$$css:!0},indicator:{k1xSpc:`x78zum5`,kZKoxP:`xaylbqo`,kzqmXN:`xh8yej3`,kGNEyG:`x6s0dn4`,kjj79g:`xl56j7k`,kWkggS:`xu0u6m0`,$$css:!0},overflow:{kVQacm:`xb3r6kr`,$$css:!0},roundedLeft:{kIxVMA:`x69i97v`,kqGeR4:`x3jlkfl`,$$css:!0},roundedRight:{ksF3WI:`x1wrqj5y`,kYm2EN:`x1s7l6xb`,$$css:!0},label:{kbCHJM:`x6fl0gr`,kGuDYH:`xboafo0`,kLWn49:`xl2ypbo`,kMwMTN:`xcmjw3v`,kGNEyG:`x6s0dn4`,kZKoxP:`xaylbqo`,$$css:!0},onDark:{kMwMTN:`xeda06r`,$$css:!0},onLight:{kMwMTN:`x1hil2k2`,$$css:!0},singleLabel:{kVAEAm:`x10l6tqk`,kY2c9j:`xa9119d`,$$css:!0}},RL=e=>{let{value:t,color:n,testId:r,label:i,extraClasses:a=``,labelClasses:o=``,xstyle:s,labelXstyle:c,valuesLength:l,max:u,index:d,totalValue:p,...m}=e,h=el(m),g=_(0),y=_(null),x=_(null),[S,C]=v(!1),w=window.matchMedia(`(prefers-reduced-motion: reduce)`).matches,T=r?`progress-bar-indicator-${r}`:`progress-bar-indicator`,E=Number(t)/Number(u)*100;f(()=>{if(!x.current)return;function e(){y.current&&=(y.current.cancel(),null)}let t=g.current;return e(),x.current.style.width=`${E}%`,!w&&E!==t&&(y.current=x.current.animate([{width:`${t}%`},{width:`${E}%`}],IL)),g.current=E,()=>e()},[E,w]),f(()=>{x.current&&C((0,FL.default)(getComputedStyle(x.current).backgroundColor).isDark())},[n]);let D=V(LL.indicator,l!==1&&LL.overflow,d===0&&LL.roundedLeft,p>=u&&d===l-1&&LL.roundedRight,s),O=V(LL.label,S?LL.onDark:LL.onLight,l===1&&LL.singleLabel,c);return b(NL,{...D,className:H(D.className,a),...h,"data-qtip-text":m.tooltip?m.tooltip:`${t}%`,"data-segment-value":t,"data-testid":T,ref:x,style:{...D.style,backgroundColor:n||void 0,width:w?`${E}%`:void 0},children:i?b(`span`,{...O,className:H(O.className,o),children:i}):void 0})},zL=({values:e,max:t=100,containerExtraClasses:n=``,xstyle:r,zeroValueLabel:i=`No progress yet`})=>{let a=V(LL.root,r),o=e.reduce((e,{value:t})=>e+t,0);return b(ML,{...a,className:H(a.className,n),max:t,value:o,children:o>0?e.map((n,r)=>s(RL,{...n,max:t,valuesLength:e.length,index:r,totalValue:o,key:r})):b(`div`,{className:`x6fl0gr xboafo0 xl2ypbo xcmjw3v x6s0dn4 xaylbqo x8x9d4c xack27t xb3r6kr`,children:i})})};var BL=zL;const VL={kDRTOe:`x1o453hq`,kSiTet:`xb4nw82`,$$css:!0},HL={kGuDYH:`xdmh292`,$$css:!0},UL={sm:{kzqmXN:`xn6xy2s`,$$css:!0},md:{kzqmXN:`x1td3qas`,$$css:!0},lg:{kzqmXN:`x1n7h9c3`,$$css:!0},root:{k1xSpc:`x1rg5ohu`,kXLuUW:`xxymvpz`,$$css:!0},circle:{k1xSpc:`x1lliihq`,kzqmXN:`xh8yej3`,$$css:!0},trail:{kjVXCG:`xjzhoas`,kU5bRw:`x1owpc8m`,$$css:!0},progress:{kjVXCG:`xm4deor`,kU5bRw:`x1owpc8m`,kmkexE:`xed09e2 x9kvfbb`,$$css:!0},progressValue:e=>[VL,{"--x-strokeDashoffset":100-e==null?void 0:100-e,"--x-opacity":e===0?0:1}],label:{kDwRjp:`x1ldtxas`,kR6KzO:`xw6cgo0`,$$css:!0},labelSize:e=>[HL,{"--x-fontSize":(e=>typeof e==`number`?e+`px`:e??void 0)(`${e}px`)}]},WL=(e,{showFraction:t=!1,rounding:n=`round`}={})=>{let r=t?10:1;return Math[n](e*r)/r},GL=(e,{isFraction:t=!1}={})=>{let n=t?1:0,r=(e.length-n)*.5+n*.28;return Math.min(50,70/r)},KL=({value:e,showFraction:t,rounding:n,size:r=`md`,xstyle:i,"aria-label":a,"aria-labelledby":o})=>{if(!Number.isFinite(e))return null;let s=Math.min(100,Math.max(0,e)),c=WL(s,{showFraction:t,rounding:n}),l=String(c);return b(`span`,{role:`progressbar`,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":s,"aria-label":a,"aria-labelledby":o,...V(UL.root,UL[r],i),children:x(`svg`,{viewBox:`0 0 100 100`,...V(UL.circle),"aria-hidden":`true`,children:[b(`circle`,{cx:`50`,cy:`50`,r:`46`,fill:`none`,strokeWidth:`8`,...V(UL.trail)}),b(`circle`,{cx:`50`,cy:`50`,r:`46`,fill:`none`,strokeWidth:`8`,pathLength:`100`,strokeDasharray:`100`,transform:`rotate(-90 50 50)`,...V(UL.progress,UL.progressValue(s))}),b(`text`,{x:`50`,y:`50`,dy:`0.33em`,...V(UL.label,UL.labelSize(GL(l,{isFraction:!Number.isInteger(c)}))),children:l})]})})};var qL=KL;function JL(e){return e.startsWith(`svgpath:`)}function YL(e){return JL(e)?e.substring(8):``}const XL={container:{k3XXqK:`x1t137rt`,$$css:!0},interactive:{kkrTdU:`x1ypdohk`,$$css:!0}},ZL=({onClick:e,icon:t,color:n,type:r=`default`,extraClassNames:i,xstyle:a,viewBox:o=`0 0 19 19`,id:s,testId:c,customId:l,...u})=>{let d=el(u),f=r===`default`?`currentColor`:tl.icon,p=V(XL.container,e&&XL.interactive,a);return b(`div`,{onClick:e,...d,...p,className:H(p.className,i),children:b(`svg`,{id:s,"data-customid":l,xmlns:`http://www.w3.org/2000/svg`,className:`x1lliihq xxymvpz xwmolx9`,viewBox:o,fill:n||f,"data-testid":c,children:b(`path`,{className:`xva0lvy`,d:YL(t)})})})};var QL=ZL;const $L={createIcon:{kGuDYH:`x1aueamr`,kMwMTN:`xeda06r`,k7Eaqz:`x1arx1u8`,$$css:!0},createSvg:{kmVPX3:`x78pyy4`,kZKoxP:`xk8t5le`,kzqmXN:`x1s4ejo4`,$$css:!0},createIconContainer:{k1xSpc:`x78zum5`,kZKoxP:`xk8t5le`,kzqmXN:`x1s4ejo4`,kGNEyG:`x6s0dn4`,kjj79g:`xl56j7k`,kaIpWk:`x10a6c4v`,kWkggS:`xu0u6m0`,keoZOQ:`x5j7nwy`,$$css:!0},viewIcon:{kGuDYH:`x1603h9y`,kMwMTN:`x14yi97k`,$$css:!0},viewSvg:{kzqmXN:`xcdlrvm`,$$css:!0}},eR=e=>{let t=b(y,{});e.icon&&(t=typeof e.icon==`string`&&JL(e.icon)?b(QL,{...e,icon:e.icon,extraClassNames:e.iconExtraClassNames,xstyle:[$L.createIcon,$L.createSvg,e.iconXstyle]}):b(al,{icon:e.icon,type:`text`,extraClassNames:e.iconExtraClassNames,xstyle:[$L.createIcon,e.iconXstyle]}));let n=V($L.createIconContainer,e.iconContainerXstyle);return x(`div`,{className:`x78zum5 x184cif5 x1q0g3np x8fetqu x1835gkm x1uae1lo`,children:[b(`div`,{...n,className:Dt(n.className,e.iconContainerExtraClassNames),children:t}),x(`div`,{className:`x78zum5 xdt5ytf xl56j7k`,children:[b(`div`,{className:`xwsyq91 x1s688f`,children:e.display}),b(`div`,{className:`x1dcheo9 xl2ypbo`,children:e.text})]})]})},tR=e=>{let t=b(y,{});return e.icon&&(t=typeof e.icon==`string`&&JL(e.icon)?b(QL,{...e,icon:e.icon,extraClassNames:e.iconExtraClassNames,xstyle:[$L.viewIcon,$L.viewSvg,e.iconXstyle],type:`default`}):b(al,{icon:e.icon,type:`text`,extraClassNames:e.iconExtraClassNames,xstyle:[$L.viewIcon,e.iconXstyle]})),b(`div`,{className:`x78zum5 xdt5ytf x1835gkm`,children:x(`div`,{className:`x78zum5 x1q0g3np xuk3077 x13z6uf9`,children:[b(`div`,{className:`x78zum5 xmll18r xwqq7k2 x6s0dn4 xl56j7k x10a6c4v`,children:t}),b(`div`,{className:`x1dcheo9`,children:e.display})]})})},nR=e=>x(`div`,{className:`x78zum5 xdt5ytf x1nhvcw1 x1835gkm xdpxx8g xo1l8bm xcmjw3v`,children:[b(`h5`,{className:`xhj8ucd xhbfen4 x6u19be xdpg8n2 xk50ysn x190h4uq`,children:e.display}),b(`div`,{className:`x1tbvfm1 x1dcheo9 xcmjw3v`,children:e.text})]}),rR={trigger:{k1xSpc:`x78zum5`,kXwgrk:`xdt5ytf`,kGNEyG:`x6s0dn4`,kWkggS:`xjbqb8w`,ksu8eU:`xng3xce`,k3XXqK:`xi1ac0m xhlp2gg xi5y0ii`,$$css:!0},disabled:{kkrTdU:`x1h6gzvc`,kSiTet:`xbyyjgo`,$$css:!0},content:{kaIpWk:`x6i6fhv`,kGVxlE:`x1tq5fk4`,$$css:!0}},iR=(e,t)=>{switch(e){case`create-workbench`:return b(eR,{...t});case`view-workbench`:return b(tR,{...t});case`insert-seeq-content`:return b(nR,{...t});default:return b(eR,{...t})}},aR=({seeqActionDropdownItems:e,trigger:t,id:n,extraClassNames:r,xstyle:i,contentXstyle:a,containerTestId:o,disabled:s=!1,align:c=`end`,placement:l=`bottom`,placementOffset:u=5,alignOffset:d=-35,hasArrow:f=!1,onOpenChange:p,isOpen:m,setFocusOnTriggerOnClose:h=!0,keepFocusInsideDropdown:g=!0,variant:_,...v})=>{let y=el(v),S=V(rR.trigger,s&&rR.disabled,i);return x(d_,{defaultOpen:!1,open:m,onOpenChange:p,modal:g,children:[b(f_,{id:n,"data-testid":n,asChild:!0,disabled:s,children:b(`div`,{...y,...S,className:Dt(S.className,r),children:t})}),b(m_,{sideOffset:u,side:l,align:c,alignOffset:d,asChild:!0,onCloseAutoFocus:e=>!h&&e.preventDefault(),...V(S_.outline),children:x(`div`,{"data-testid":o,...V(S_.panel,S_.motion,K.content,rR.content,a),children:[f&&b(v_,{asChild:!0,children:b(`div`,{...V(S_.arrow)})}),e.map((e,t)=>x(`div`,{children:[b(g_,{onSelect:t=>{e.action(t)},...{0:{className:`x1n2onr6 x78zum5 x1ypdohk x1t137rt x87ps6o xjbqb8w x5teegj x14yi97k`},2:{className:`x1n2onr6 x78zum5 x1ypdohk x1t137rt x87ps6o xjbqb8w x5teegj x14yi97k xbyyjgo`},1:{className:`x1n2onr6 x78zum5 x1ypdohk x1t137rt x87ps6o xjbqb8w x5teegj x47corl x1ru9b6h`},3:{className:`x1n2onr6 x78zum5 x1ypdohk x1t137rt x87ps6o xjbqb8w x5teegj xbyyjgo x47corl x1ru9b6h`}}[!!e.dim<<1|!e.enabled<<0],"data-testid":e.testId,"data-dim":e.dim?``:void 0,disabled:!e.enabled,children:iR(_,e)}),e.divider&&b(__,{"data-testid":`dropdown-divider-${t}`,...V(K.separator)})]},e.id??t))]})})]})};var oR=aR;const sR={root:{k1xSpc:`x78zum5`,kwnvtZ:`x1a02dak`,kOIVth:`x13z6uf9`,$$css:!0}};function cR({options:e,value:t,onChange:n,extraClassNames:r=``,xstyle:i,id:a,testId:o,ariaLabel:c}){let l=V(sR.root,i);return b(`div`,{"aria-label":c,...l,className:H(l.className,r),"data-testid":o,id:a,role:`group`,children:e.map(e=>{let r=e.value===t;return s(`button`,{"aria-pressed":r,...{0:{className:`x9f619 xjb2p0i xkpwil5 x8r4c90 x1ypdohk x10hpsqq x1y0btm7 x15udo89 x1bilvtl x1ryrjj2 xfagghw xx6bhzk x9lcvmn xi5y0ii x1gnnqk1 x1c7lb1k x18o3ruo xhfeknq x19dje6q x1xmzkbo x8x6yx0 xzqgziu`},1:{className:`x9f619 xjb2p0i xkpwil5 x8r4c90 x1ypdohk x10hpsqq x1y0btm7 x15udo89 x1bilvtl x1ryrjj2 xfagghw xx6bhzk x9lcvmn xi5y0ii x1gnnqk1 x1c7lb1k x18o3ruo x1b20zrg xj8hjnn x1o2v4ir x14yi97k xzqgziu`}}[!!r<<0],key:String(e.value),onClick:n?()=>n(e.value):void 0,type:`button`},e.label)})})}var lR=cR;function uR(e,[t,n]){return Math.min(n,Math.max(t,e))}function dR(t){let n=e.useRef({value:t,previous:t});return e.useMemo(()=>(n.current.value!==t&&(n.current.previous=n.current.value,n.current.value=t),n.current.previous),[t])}var fR=[`PageUp`,`PageDown`],pR=[`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`],mR={"from-left":[`Home`,`PageDown`,`ArrowDown`,`ArrowLeft`],"from-right":[`Home`,`PageDown`,`ArrowDown`,`ArrowRight`],"from-bottom":[`Home`,`PageDown`,`ArrowDown`,`ArrowLeft`],"from-top":[`Home`,`PageDown`,`ArrowUp`,`ArrowLeft`]},hR=`Slider`,[gR,_R,vR]=de(hR),[yR,bR]=F(hR,[vR]),[xR,SR]=yR(hR),CR=e.forwardRef((t,n)=>{let{name:r,min:i=0,max:a=100,step:o=1,orientation:s=`horizontal`,disabled:c=!1,minStepsBetweenThumbs:l=0,defaultValue:u=[i],value:d,onValueChange:f=()=>{},onValueCommit:p=()=>{},inverted:m=!1,form:h,...g}=t,_=e.useRef(new Set),v=e.useRef(0),y=s===`horizontal`,x=y?ER:DR,[S=[],C]=pe({prop:d,defaultProp:u,onChange:e=>{let t=[..._.current];t[v.current]?.focus(),f(e)}}),w=e.useRef(S);function T(e){let t=VR(S,e);O(e,t)}function E(e){O(e,v.current)}function D(){let e=w.current[v.current],t=S[v.current],n=t!==e;n&&p(S)}function O(e,t,{commit:n}={commit:!1}){let r=KR(o),s=qR(Math.round((e-i)/o)*o+i,r),c=uR(s,[i,a]);C((e=[])=>{let r=RR(e,c,t);if(WR(r,l*o)){v.current=r.indexOf(c);let t=String(r)!==String(e);return t&&n&&p(r),t?r:e}else return e})}return b(xR,{scope:t.__scopeSlider,name:r,disabled:c,min:i,max:a,valueIndexToChangeRef:v,thumbs:_.current,values:S,orientation:s,form:h,children:b(gR.Provider,{scope:t.__scopeSlider,children:b(gR.Slot,{scope:t.__scopeSlider,children:b(x,{"aria-disabled":c,"data-disabled":c?``:void 0,...g,ref:n,onPointerDown:R(g.onPointerDown,()=>{c||(w.current=S)}),min:i,max:a,inverted:m,onSlideStart:c?void 0:T,onSlideMove:c?void 0:E,onSlideEnd:c?void 0:D,onHomeKeyDown:()=>!c&&O(i,0,{commit:!0}),onEndKeyDown:()=>!c&&O(a,S.length-1,{commit:!0}),onStepKeyDown:({event:e,direction:t})=>{if(!c){let n=fR.includes(e.key),r=n||e.shiftKey&&pR.includes(e.key),i=r?10:1,a=v.current,s=S[a],c=o*i*t;O(s+c,a,{commit:!0})}}})})})})});CR.displayName=hR;var[wR,TR]=yR(hR,{startEdge:`left`,endEdge:`right`,size:`width`,direction:1}),ER=e.forwardRef((t,n)=>{let{min:r,max:i,dir:a,inverted:o,onSlideStart:s,onSlideMove:c,onSlideEnd:l,onStepKeyDown:u,...d}=t,[f,p]=e.useState(null),m=I(n,e=>p(e)),h=e.useRef(void 0),g=He(a),_=g===`ltr`,v=_&&!o||!_&&o;function y(e){let t=h.current||f.getBoundingClientRect(),n=[0,t.width],a=v?[r,i]:[i,r],o=GR(n,a);return h.current=t,o(e-t.left)}return b(wR,{scope:t.__scopeSlider,startEdge:v?`left`:`right`,endEdge:v?`right`:`left`,direction:v?1:-1,size:`width`,children:b(OR,{dir:g,"data-orientation":`horizontal`,...d,ref:m,style:{...d.style,"--radix-slider-thumb-transform":`translateX(-50%)`},onSlideStart:e=>{let t=y(e.clientX);s?.(t)},onSlideMove:e=>{let t=y(e.clientX);c?.(t)},onSlideEnd:()=>{h.current=void 0,l?.()},onStepKeyDown:e=>{let t=v?`from-left`:`from-right`,n=mR[t].includes(e.key);u?.({event:e,direction:n?-1:1})}})})}),DR=e.forwardRef((t,n)=>{let{min:r,max:i,inverted:a,onSlideStart:o,onSlideMove:s,onSlideEnd:c,onStepKeyDown:l,...u}=t,d=e.useRef(null),f=I(n,d),p=e.useRef(void 0),m=!a;function h(e){let t=p.current||d.current.getBoundingClientRect(),n=[0,t.height],a=m?[i,r]:[r,i],o=GR(n,a);return p.current=t,o(e-t.top)}return b(wR,{scope:t.__scopeSlider,startEdge:m?`bottom`:`top`,endEdge:m?`top`:`bottom`,size:`height`,direction:m?1:-1,children:b(OR,{"data-orientation":`vertical`,...u,ref:f,style:{...u.style,"--radix-slider-thumb-transform":`translateY(50%)`},onSlideStart:e=>{let t=h(e.clientY);o?.(t)},onSlideMove:e=>{let t=h(e.clientY);s?.(t)},onSlideEnd:()=>{p.current=void 0,c?.()},onStepKeyDown:e=>{let t=m?`from-bottom`:`from-top`,n=mR[t].includes(e.key);l?.({event:e,direction:n?-1:1})}})})}),OR=e.forwardRef((e,t)=>{let{__scopeSlider:n,onSlideStart:r,onSlideMove:i,onSlideEnd:a,onHomeKeyDown:o,onEndKeyDown:s,onStepKeyDown:c,...l}=e,u=SR(hR,n);return b(B.span,{...l,ref:t,onKeyDown:R(e.onKeyDown,e=>{e.key===`Home`?(o(e),e.preventDefault()):e.key===`End`?(s(e),e.preventDefault()):fR.concat(pR).includes(e.key)&&(c(e),e.preventDefault())}),onPointerDown:R(e.onPointerDown,e=>{let t=e.target;t.setPointerCapture(e.pointerId),e.preventDefault(),u.thumbs.has(t)?t.focus():r(e)}),onPointerMove:R(e.onPointerMove,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&i(e)}),onPointerUp:R(e.onPointerUp,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&(t.releasePointerCapture(e.pointerId),a(e))})})}),kR=`SliderTrack`,AR=e.forwardRef((e,t)=>{let{__scopeSlider:n,...r}=e,i=SR(kR,n);return b(B.span,{"data-disabled":i.disabled?``:void 0,"data-orientation":i.orientation,...r,ref:t})});AR.displayName=kR;var jR=`SliderRange`,MR=e.forwardRef((t,n)=>{let{__scopeSlider:r,...i}=t,a=SR(jR,r),o=TR(jR,r),s=e.useRef(null),c=I(n,s),l=a.values.length,u=a.values.map(e=>zR(e,a.min,a.max)),d=l>1?Math.min(...u):0,f=100-Math.max(...u);return b(B.span,{"data-orientation":a.orientation,"data-disabled":a.disabled?``:void 0,...i,ref:c,style:{...t.style,[o.startEdge]:d+`%`,[o.endEdge]:f+`%`}})});MR.displayName=jR;var NR=`SliderThumb`,PR=e.forwardRef((t,n)=>{let r=_R(t.__scopeSlider),[i,a]=e.useState(null),o=I(n,e=>a(e)),s=e.useMemo(()=>i?r().findIndex(e=>e.ref.current===i):-1,[r,i]);return b(FR,{...t,ref:o,index:s})}),FR=e.forwardRef((t,n)=>{let{__scopeSlider:r,index:i,name:a,...o}=t,s=SR(NR,r),c=TR(NR,r),[l,u]=e.useState(null),d=I(n,e=>u(e)),f=l?s.form||!!l.closest(`form`):!0,p=If(l),m=s.values[i],h=m===void 0?0:zR(m,s.min,s.max),g=BR(i,s.values.length),_=p?.[c.size],v=_?HR(_,h,c.direction):0;return e.useEffect(()=>{if(l)return s.thumbs.add(l),()=>{s.thumbs.delete(l)}},[l,s.thumbs]),x(`span`,{style:{transform:`var(--radix-slider-thumb-transform)`,position:`absolute`,[c.startEdge]:`calc(${h}% + ${v}px)`},children:[b(gR.ItemSlot,{scope:t.__scopeSlider,children:b(B.span,{role:`slider`,"aria-label":t[`aria-label`]||g,"aria-valuemin":s.min,"aria-valuenow":m,"aria-valuemax":s.max,"aria-orientation":s.orientation,"data-orientation":s.orientation,"data-disabled":s.disabled?``:void 0,tabIndex:s.disabled?void 0:0,...o,ref:d,style:m===void 0?{display:`none`}:t.style,onFocus:R(t.onFocus,()=>{s.valueIndexToChangeRef.current=i})})}),f&&b(LR,{name:a??(s.name?s.name+(s.values.length>1?`[]`:``):void 0),form:s.form,value:m},i)]})});PR.displayName=NR;var IR=`RadioBubbleInput`,LR=e.forwardRef(({__scopeSlider:t,value:n,...r},i)=>{let a=e.useRef(null),o=I(a,i),s=dR(n);return e.useEffect(()=>{let e=a.current;if(!e)return;let t=window.HTMLInputElement.prototype,r=Object.getOwnPropertyDescriptor(t,`value`),i=r.set;if(s!==n&&i){let t=new Event(`input`,{bubbles:!0});i.call(e,n),e.dispatchEvent(t)}},[s,n]),b(B.input,{style:{display:`none`},...r,ref:o,defaultValue:n})});LR.displayName=IR;function RR(e=[],t,n){let r=[...e];return r[n]=t,r.sort((e,t)=>e-t)}function zR(e,t,n){let r=n-t,i=100/r,a=i*(e-t);return uR(a,[0,100])}function BR(e,t){if(t>2)return`Value ${e+1} of ${t}`;if(t===2)return[`Minimum`,`Maximum`][e]}function VR(e,t){if(e.length===1)return 0;let n=e.map(e=>Math.abs(e-t)),r=Math.min(...n);return n.indexOf(r)}function HR(e,t,n){let r=e/2,i=GR([0,50],[0,r]);return(r-i(t)*n)*n}function UR(e){return e.slice(0,-1).map((t,n)=>e[n+1]-t)}function WR(e,t){if(t>0){let n=UR(e),r=Math.min(...n);return r>=t}return!0}function GR(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function KR(e){return(String(e).split(`.`)[1]||``).length}function qR(e,t){let n=10**t;return Math.round(e*n)/n}var JR=CR,YR=AR,XR=MR,ZR=PR;const QR={root:{kVAEAm:`x1n2onr6`,k1xSpc:`x78zum5`,kZKoxP:`xmll18r`,kzqmXN:`xh8yej3`,kFalU9:`x5ve5x3`,kGNEyG:`x6s0dn4`,kfSwDN:`x87ps6o`,$$css:!0},track:{kVAEAm:`x1n2onr6`,kZKoxP:`xvqfenq`,kzQI83:`x1iyjqo2`,kaIpWk:`x16eypsj`,kWkggS:`xyujy1i`,$$css:!0},range:{kVAEAm:`x10l6tqk`,kZKoxP:`x5yr21d`,kaIpWk:`x10hpsqq`,$$css:!0},thumb:{k1xSpc:`x1lliihq`,kZKoxP:`x25yk9b`,kzqmXN:`x15xktyq`,kaIpWk:`x10hpsqq`,kWkggS:`xu0u6m0 x1ev14bi`,k1ekBW:`x1msayyd`,kIyJzY:`xx6bhzk`,kAMwcw:`xwwtwea`,k3XXqK:`x1t137rt`,$$css:!0},disabled:{kWkggS:`xyujy1i xvb1xs4`,$$css:!0}},$R=({onValueChange:e,onPointerUp:t,id:n,value:r,name:i,disabled:a=!1,rootExtraClassNames:o=``,trackExtraClassNames:s=``,rangeExtraClassNames:c=``,thumbExtraClassNames:l=``,xstyle:u,trackXstyle:d,rangeXstyle:f,thumbXstyle:p,step:m,min:h=0,max:g=100,maxAccessible:_})=>{let v=Math.min(Math.max(_??g,h),g),y=Math.min(Math.max(r,h),v),S=t=>{if(!e)return;let n=Math.min(Math.max(t[0]??h,h),v);e([n])},C=V(QR.root,u),w=V(QR.track,d),T=V(QR.range,f),E=V(QR.thumb,a&&QR.disabled,p);return x(JR,{...C,className:H(C.className,o),defaultValue:[y],value:[y],onValueChange:S,onPointerUp:e=>t&&t(e),name:i,id:n,max:g,min:h,disabled:a,step:m,children:[b(YR,{...w,className:H(w.className,s),children:b(XR,{...T,className:H(T.className,c)})}),b(ZR,{...E,className:H(E.className,l),"aria-disabled":a})]})};var ez=`Tabs`,[tz,nz]=F(ez,[mp]),rz=mp(),[iz,az]=tz(ez),oz=e.forwardRef((e,t)=>{let{__scopeTabs:n,value:r,onValueChange:i,defaultValue:a,orientation:o=`horizontal`,dir:s,activationMode:c=`automatic`,...l}=e,u=He(s),[d,f]=pe({prop:r,onChange:i,defaultProp:a??``,caller:ez});return b(iz,{scope:n,baseId:Te(),value:d,onValueChange:f,orientation:o,dir:u,activationMode:c,children:b(B.div,{dir:u,"data-orientation":o,...l,ref:t})})});oz.displayName=ez;var sz=`TabsList`,cz=e.forwardRef((e,t)=>{let{__scopeTabs:n,loop:r=!0,...i}=e,a=az(sz,n),o=rz(n);return b(Ep,{asChild:!0,...o,orientation:a.orientation,dir:a.dir,loop:r,children:b(B.div,{role:`tablist`,"aria-orientation":a.orientation,...i,ref:t})})});cz.displayName=sz;var lz=`TabsTrigger`,uz=e.forwardRef((e,t)=>{let{__scopeTabs:n,value:r,disabled:i=!1,...a}=e,o=az(lz,n),s=rz(n),c=pz(o.baseId,r),l=mz(o.baseId,r),u=r===o.value;return b(Dp,{asChild:!0,...s,focusable:!i,active:u,children:b(B.button,{type:`button`,role:`tab`,"aria-selected":u,"aria-controls":l,"data-state":u?`active`:`inactive`,"data-disabled":i?``:void 0,disabled:i,id:c,...a,ref:t,onMouseDown:R(e.onMouseDown,e=>{!i&&e.button===0&&e.ctrlKey===!1?o.onValueChange(r):e.preventDefault()}),onKeyDown:R(e.onKeyDown,e=>{[` `,`Enter`].includes(e.key)&&o.onValueChange(r)}),onFocus:R(e.onFocus,()=>{let e=o.activationMode!==`manual`;!u&&!i&&e&&o.onValueChange(r)})})})});uz.displayName=lz;var dz=`TabsContent`,fz=e.forwardRef((t,n)=>{let{__scopeTabs:r,value:i,forceMount:a,children:o,...s}=t,c=az(dz,r),l=pz(c.baseId,i),u=mz(c.baseId,i),d=i===c.value,f=e.useRef(d);return e.useEffect(()=>{let e=requestAnimationFrame(()=>f.current=!1);return()=>cancelAnimationFrame(e)},[]),b(ye,{present:a||d,children:({present:e})=>b(B.div,{"data-state":d?`active`:`inactive`,"data-orientation":c.orientation,role:`tabpanel`,"aria-labelledby":l,hidden:!e,id:u,tabIndex:0,...s,ref:n,style:{...t.style,animationDuration:f.current?`0s`:void 0},children:e&&o})})});fz.displayName=dz;function pz(e,t){return`${e}-trigger-${t}`}function mz(e,t){return`${e}-content-${t}`}var hz=oz,gz=cz,_z=uz,vz=fz;const yz={root:{k1xSpc:`x78zum5`,ks0D6T:`x193iq5w`,k7Eaqz:`xk9iosm`,kzQI83:`x1iyjqo2`,kXwgrk:`xdt5ytf`,k3XXqK:`xi5y0ii`,$$css:!0},trigger:{kB7OPa:`x9f619`,kMv6JI:`xjb2p0i`,kGuDYH:`x1qlqyl8`,kLWn49:`x15bjb6t`,kMwMTN:`x1heor9g`,k8WAf4:`xt970qd`,kkrTdU:`x1ypdohk`,k1xSpc:`x78zum5`,k7Eaqz:`xb8jz9x`,kUk6DE:`x98rzlu`,kGNEyG:`x6s0dn4`,kjj79g:`xl56j7k`,kMzoRj:`xc342km`,kWqL5O:`xyy74w7 x1lpyac`,ksu8eU:`x1y0btm7`,kVAM5u:`xek9zaq`,kWkggS:`xrkmy7n x1jvro2g`,kg3NbH:`xnxx81d`,kt9PQ7:`x1ad9899`,k3XXqK:`xi5y0ii`,$$css:!0},fit:{ks0D6T:`x1t8xbu`,k7Eaqz:`x1pshirs`,$$css:!0},active:{kt9PQ7:`x1czjtmd`,kL6WhQ:`x1kj26jr`,kWkggS:`xrkmy7n xjnwolr`,$$css:!0},icon:{kGuDYH:`x6u19be`,km5ZXQ:`x8oiz64`,kmuXW:`x2lah0s`,$$css:!0},label:{kVQacm:`xb3r6kr`,kGuDYH:`x1dcheo9`,k63SB2:`xk50ysn`,kg5iWk:`xlyipyv`,khDVqt:`xuxw1ft`,kMwMTN:`x1lms4yp`,$$css:!0},activeLabel:{kMwMTN:`x16sok1n`,$$css:!0},content:{kY2c9j:`x6cuj84`,keoZOQ:`x1ig984f`,k1xSpc:`x78zum5`,kzQI83:`x1iyjqo2`,kXwgrk:`xdt5ytf`,kORKVm:`x1odjw0f`,kEafiO:`x1jfus2j`,kPef9Z:`x13fuv20`,kLZC3w:`x1qu6d5y`,kWkggS:`xrkmy7n`,k3XXqK:`xi5y0ii`,$$css:!0}},bz=({tabs:e,defaultActiveTab:t,activeTab:n,onTabSelect:r,extraClassNames:i,xstyle:a,testId:o,id:c,stretchTabs:l=!1})=>{let u=e=>{n!==e&&r&&r(e)},d=V(yz.root,a);return x(hz,{...d,className:Dt(d.className,i),defaultValue:t,"data-testid":o,id:c,value:n,onValueChange:u,children:[b(gz,{className:`x1bkdxzg x78zum5 x1q0g3np x1a02dak`,children:e.map((e,t)=>{let r=V(yz.trigger,!l&&yz.fit,n===e.id&&yz.active,e.tabXstyle),i=V(yz.label,n===e.id&&yz.activeLabel,e.tabLabelXstyle);return s(_z,{...r,className:Dt(r.className,e.tabExtraClassNames),"data-testid":e.testId,disabled:e.disabled,key:`${e.label}-${e.id}-${t}`,value:e.id},x(`span`,{className:`x78zum5 x6s0dn4 xb3r6kr`,children:[e.icon&&b(al,{icon:e.icon,testId:`${e.id}_tab-icon`,xstyle:yz.icon}),b(`span`,{...i,className:Dt(i.className,e.tabLabelExtraClassNames),children:e.label})]}))})}),e.map((e,t)=>{let n=V(yz.content,e.tabContentXstyle);return s(vz,{...n,className:Dt(n.className,e.tabContentExtraClassNames),key:`${e.label}_${t}_content`,value:e.id},e.content)})]})};var xz=bz;const Sz={disabled:{kfzvcC:`x47corl`,$$css:!0},field:{kB7OPa:`x9f619`,kzqmXN:`xh8yej3`,kaIpWk:`x1vx5ruh`,kE3dHu:`xq6sow3`,kpe85a:`xujd68v`,kLKAdn:`x1bixx6j`,kGO01o:`x1a943lp`,kMv6JI:`xjb2p0i`,kGuDYH:`x13vkkqp`,k63SB2:`x1pd3egz`,kLWn49:`x8cebxl`,k3XXqK:`x1t137rt`,kHenm0:`x288g5`,k8Qsv1:`xsvzths`,kH8XJS:`x7xwk5j`,$$css:!0}},Cz=c(({readonly:e=!1,disabled:t=!1,onChange:n,onKeyUp:r,onFocus:i,onBlur:a,onKeyDown:o,onSelectionChange:s,id:c,name:l,rows:u=3,cols:d,value:p,placeholder:m,showError:h,extraClassNames:g=``,xstyle:v,testId:y,autoFocus:x=!1},S)=>{let C=V(lO.base,Sz.field,h&&lO.invalid,t&&lO.disabled,t&&Sz.disabled,v),w=_(null),T=kO(S,w);return f(()=>{if(!s||!w.current)return;let e=w.current,t=e=>{s(e)};return e.addEventListener(`selectionchange`,t),e.addEventListener(`mouseup`,t),e.addEventListener(`keyup`,t),()=>{e.removeEventListener(`selectionchange`,t),e.removeEventListener(`mouseup`,t),e.removeEventListener(`keyup`,t)}},[s]),b(`textarea`,{ref:T,"data-testid":y,name:l,id:c,value:p,...C,className:H(C.className,g),"aria-invalid":h||void 0,placeholder:m,disabled:t,readOnly:e,onChange:n,onFocus:i,onBlur:a,onKeyDown:o,onKeyUp:r,rows:u,cols:d,autoFocus:x})});Cz.displayName=`TextArea`;const wz={trigger:{koQZXg:`xr1qrh x4o9dxs`,km5ZXQ:`x1qif595 x552jh6`,ksu8eU:`xng3xce`,kWkggS:`xjbqb8w`,kmVPX3:`x1717udv`,kVVagm:`xln7xf2`,kMwMTN:`x1heor9g`,$$css:!0},content:{kVAEAm:`x1n2onr6`,k1xSpc:`x78zum5`,kXwgrk:`xdt5ytf`,kGNEyG:`x6s0dn4`,kaIpWk:`x1vx5ruh`,$$css:!0},small:{kE3dHu:`xf00w7v`,kpe85a:`x1d60ukw`,kLKAdn:`x4p5aij`,kGO01o:`x1j85h84`,$$css:!0},regular:{kE3dHu:`x15u6esi`,kpe85a:`x1arb9wb`,kLKAdn:`xox8ek`,kGO01o:`xmnn75e`,$$css:!0},inactive:{kWkggS:`xjbqb8w xqxyxvn x187hhwn`,$$css:!0},active:{kWkggS:`x1aprzmt xu97pxr`,$$css:!0},highlighted:{kWkggS:`xyi6za0`,$$css:!0},highlightedSmall:{koQZXg:`x1gfa6gt`,kzqmXN:`xezl2tj`,kZKoxP:`xlrawln`,kjj79g:`xl56j7k`,$$css:!0},highlightedRegular:{koQZXg:`x13zjp5t`,$$css:!0},badge:{kWkggS:`x14jy53q`,kE3dHu:`xyms1uu`,kpe85a:`xw7nc43`,kLKAdn:`x4p5aij`,kGO01o:`x1j85h84`,kGuDYH:`x1k6wstc`,kMwMTN:`x11mh32c`,$$css:!0},disabled:{kkrTdU:`x1h6gzvc`,kSiTet:`xbyyjgo`,$$css:!0},icon:{kMwMTN:`xcmjw3v`,$$css:!0},arrowIcon:{koQZXg:`x1he087y`,$$css:!0},popover:{kVAEAm:`x1n2onr6`,kY2c9j:`xfo81ep`,k7Eaqz:`x1vi9356`,kmVPX3:`x7gbtqy`,kaIpWk:`x1vx5ruh`,$$css:!0}},Tz=c(({align:e=`center`,sideOffset:t=4,...n},r)=>b(nv,{ref:r,align:e,sideOffset:t,...n,asChild:!0}));Tz.displayName=`PopoverContent`;const Ez=({isSmall:e=!1,label:t,icon:n,secondIcon:r,forceSmallIcon:i=!1,tooltipText:a,id:o,popoverContent:s,extraClassNames:c,xstyle:l,triggerXstyle:u,contentXstyle:d,testId:f,tooltipTestId:p,tooltipOptions:m,isActive:h,isHighlighted:g=!1,badge:_,isHtmlTooltip:v=!1,hasArrow:y=!1,disabled:S=!1,isPrimaryAnSvg:C=!1,primaryIconExtraClassNames:w,primaryIconXstyle:T,iconHeight:E=24,iconWidth:D=24,primaryIconViewbox:O=`0 0 24 24`,popoverAlign:k=`start`,onClick:A,onHide:j})=>{let M;a&&(M={"data-qtip-text":a,"data-qtip-placement":m?.position,"data-qtip-is-html":v,"data-qtip-testid":p,"data-qtip-delay":m?.delay??500});let ee=e=>{e||j&&j()},te=V(wz.trigger,u),N=V(wz.content,h?wz.active:g?wz.highlighted:wz.inactive,e?wz.small:wz.regular,g&&(e?wz.highlightedSmall:wz.highlightedRegular),S&&wz.disabled,l),P=V(wz.icon,T);return x($_,{defaultOpen:!1,onOpenChange:ee,children:[b(ev,{id:o,...te,className:H(te.className,{active:h}),"aria-pressed":h,disabled:S,"data-testid":f,onClick:e=>{A&&A(e)},children:x(`div`,{...M,"data-highlighted":g||void 0,...N,className:H(N.className,{active:h},c),children:[x(`span`,{className:`xuxw1ft`,children:[C&&typeof n==`string`?b(`svg`,{xmlns:`http://www.w3.org/2000/svg`,...P,className:H(P.className,w),viewBox:O,height:`${E}px`,width:`${D}px`,fill:`currentColor`,"data-testid":f,children:b(`path`,{d:YL(n)})}):b(al,{icon:n,testId:`firstIcon`,type:`text`,size:!e&&!t&&!r&&!i?`lg`:`sm`,extraClassNames:w,xstyle:[wz.icon,T]}),r&&b(al,{icon:r,type:`text`,testId:`secondIcon`}),s?b(al,{icon:jt,xstyle:[wz.icon,wz.arrowIcon],type:`text`,size:`sm`}):void 0]}),!e&&b(`small`,{className:`x2ohwh0 xcmjw3v`,children:t}),_?b(`span`,{className:`x47corl x10l6tqk x13vifvy xgvigy7 xo5v014`,children:b(ml,{testId:f?`${f}-badge`:void 0,xstyle:wz.badge,children:_})}):void 0]})}),s?b(Tz,{sideOffset:2,align:k,children:x(`div`,{...V(S_.panel,wz.popover,d),children:[y&&b(rv,{asChild:!0,children:b(`div`,{...V(S_.arrow)})}),s]})}):void 0]})},Dz={kIr0Dl:`xlohyk8`,$$css:!0},Oz={root:{kVAEAm:`x1n2onr6`,k1xSpc:`x1rg5ohu`,$$css:!0},tooltip:{kVAEAm:`x10l6tqk`,kY2c9j:`xa9119d`,khDVqt:`xuxw1ft`,kaIpWk:`x16eypsj`,kWkggS:`x186xesn`,kmVPX3:`x7gbtqy`,kGuDYH:`xboafo0`,kLWn49:`xl2ypbo`,kMwMTN:`xeda06r`,k1xSpc:`x1s85apg xffv3ix`,kSiTet:`xg01cxk x5b7970`,kgeoSG:`x1cpjm7i`,kEoFBp:`x1hmns74`,k5Ohv7:`x1w5wfvx`,kj4x2v:`x1fo1fc9`,kfXFYZ:`xhkbipy`,$$css:!0},delay:e=>[Dz,{"--x-transitionDelay":(e=>typeof e==`number`?e+`ms`:e??void 0)(`${e}ms`)}],top:{k87sOh:`x17v2gtu`,kbCHJM:`x1nrll8i`,k3aq6I:`xo88s9q`,k5Ofw7:`xnxhvzd`,k75S9Q:`xgdch9p`,kcTAPf:`xnyzbwf`,kwknyK:`x9v96k9`,$$css:!0},bottom:{krVfgx:`xjg1pr4`,kbCHJM:`x1nrll8i`,k3aq6I:`x31h1t8`,k96MEf:`x1nxnffj`,k75S9Q:`xgdch9p`,kcTAPf:`xnyzbwf`,k1cwP5:`xtin7g8`,$$css:!0},left:{kbCHJM:`x1muxdp`,k87sOh:`xwa60dl`,k3aq6I:`x5c49eg`,k75S9Q:`xj5rhnp`,k96MEf:`x1knuo7r`,kcTAPf:`xkjykve`,k6d8aP:`xblqu9g`,$$css:!0},right:{kCIrl2:`x1osv2p`,k87sOh:`xwa60dl`,k3aq6I:`x1xl9qsw`,kLBHJ3:`x3cmejs`,k96MEf:`x1knuo7r`,kcTAPf:`xkjykve`,kSMQRv:`xektodi`,$$css:!0}},kz=({position:e=`bottom`,children:t,text:n,delay:r=500})=>x(`div`,{className:`x-default-marker x1n2onr6 x1rg5ohu`,children:[t,b(`div`,{...V(Oz.tooltip,Oz[e],Oz.delay(r)),children:n})]});
|
|
1149
1149
|
/*! @license DOMPurify 3.4.12 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.12/LICENSE */
|
|
1150
|
-
function
|
|
1151
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ez(e,t){return Cz(e)||wz(e,t)||Dz(e,t)||Tz()}function Dz(e,t){if(e){if(typeof e==`string`)return Sz(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Sz(e,t):void 0}}const Oz=Object.entries,kz=Object.setPrototypeOf,Az=Object.isFrozen,jz=Object.getPrototypeOf,Mz=Object.getOwnPropertyDescriptor;let Nz=Object.freeze,Pz=Object.seal,Fz=Object.create,Iz=typeof Reflect<`u`&&Reflect,Lz=Iz.apply,Rz=Iz.construct;Nz||=function(e){return e},Pz||=function(e){return e},Lz||=function(e,t){var n=[...arguments].slice(2);return e.apply(t,n)},Rz||=function(e){var t=[...arguments].slice(1);return new e(...t)};const zz=aB(Array.prototype.forEach),Bz=aB(Array.prototype.lastIndexOf),Vz=aB(Array.prototype.pop),Hz=aB(Array.prototype.push),Uz=aB(Array.prototype.splice),Wz=Array.isArray,Gz=aB(String.prototype.toLowerCase),Kz=aB(String.prototype.toString),qz=aB(String.prototype.match),Jz=aB(String.prototype.replace),Yz=aB(String.prototype.indexOf),Xz=aB(String.prototype.trim),Zz=aB(Number.prototype.toString),Qz=aB(Boolean.prototype.toString),$z=typeof BigInt>`u`?null:aB(BigInt.prototype.toString),eB=typeof Symbol>`u`?null:aB(Symbol.prototype.toString),tB=aB(Object.prototype.hasOwnProperty),nB=aB(Object.prototype.toString),rB=aB(RegExp.prototype.test),iB=oB(TypeError);function aB(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);var n=[...arguments].slice(1);return Lz(e,t,n)}}function oB(e){return function(){var t=[...arguments];return Rz(e,t)}}function $(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Gz;if(kz&&kz(e,null),!Wz(t))return e;let r=t.length;for(;r--;){let i=t[r];if(typeof i==`string`){let e=n(i);e!==i&&(Az(t)||(t[r]=e),i=e)}e[i]=!0}return e}function sB(e){for(let t=0;t<e.length;t++){let n=tB(e,t);n||(e[t]=null)}return e}function cB(e){let t=Fz(null);for(let r of Oz(e)){var n=Ez(r,2);let i=n[0],a=n[1],o=tB(e,i);o&&(Wz(a)?t[i]=sB(a):a&&typeof a==`object`&&a.constructor===Object?t[i]=cB(a):t[i]=a)}return t}function lB(e){switch(typeof e){case`string`:return e;case`number`:return Zz(e);case`boolean`:return Qz(e);case`bigint`:return $z?$z(e):`0`;case`symbol`:return eB?eB(e):`Symbol()`;case`undefined`:return nB(e);case`function`:case`object`:{if(e===null)return nB(e);let t=e,n=uB(t,`toString`);if(typeof n==`function`){let e=n(t);return typeof e==`string`?e:nB(e)}return nB(e)}default:return nB(e)}}function uB(e,t){for(;e!==null;){let n=Mz(e,t);if(n){if(n.get)return aB(n.get);if(typeof n.value==`function`)return aB(n.value)}e=jz(e)}function n(){return null}return n}function dB(e){try{return rB(e,``),!0}catch{return!1}}const fB=Nz(`a.abbr.acronym.address.area.article.aside.audio.b.bdi.bdo.big.blink.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.content.data.datalist.dd.decorator.del.details.dfn.dialog.dir.div.dl.dt.element.em.fieldset.figcaption.figure.font.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.img.input.ins.kbd.label.legend.li.main.map.mark.marquee.menu.menuitem.meter.nav.nobr.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.search.section.select.shadow.slot.small.source.spacer.span.strike.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.tr.track.tt.u.ul.var.video.wbr`.split(`.`)),pB=Nz(`svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.enterkeyhint.exportparts.filter.font.g.glyph.glyphref.hkern.image.inputmode.line.lineargradient.marker.mask.metadata.mpath.part.path.pattern.polygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern`.split(`.`)),mB=Nz([`feBlend`,`feColorMatrix`,`feComponentTransfer`,`feComposite`,`feConvolveMatrix`,`feDiffuseLighting`,`feDisplacementMap`,`feDistantLight`,`feDropShadow`,`feFlood`,`feFuncA`,`feFuncB`,`feFuncG`,`feFuncR`,`feGaussianBlur`,`feImage`,`feMerge`,`feMergeNode`,`feMorphology`,`feOffset`,`fePointLight`,`feSpecularLighting`,`feSpotLight`,`feTile`,`feTurbulence`]),hB=Nz([`animate`,`color-profile`,`cursor`,`discard`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`foreignobject`,`hatch`,`hatchpath`,`mesh`,`meshgradient`,`meshpatch`,`meshrow`,`missing-glyph`,`script`,`set`,`solidcolor`,`unknown`,`use`]),gB=Nz(`math.menclose.merror.mfenced.mfrac.mglyph.mi.mlabeledtr.mmultiscripts.mn.mo.mover.mpadded.mphantom.mroot.mrow.ms.mspace.msqrt.mstyle.msub.msup.msubsup.mtable.mtd.mtext.mtr.munder.munderover.mprescripts`.split(`.`)),_B=Nz([`maction`,`maligngroup`,`malignmark`,`mlongdiv`,`mscarries`,`mscarry`,`msgroup`,`mstack`,`msline`,`msrow`,`semantics`,`annotation`,`annotation-xml`,`mprescripts`,`none`]),vB=Nz([`#text`]),yB=Nz(`accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.command.commandfor.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns`.split(`.`)),bB=Nz(`accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dominant-baseline.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-orientation.text-rendering.textlength.type.u1.u2.unicode.values.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan`.split(`.`)),xB=Nz(`accent.accentunder.align.bevelled.close.columnalign.columnlines.columnspacing.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lquote.lspace.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns`.split(`.`)),SB=Nz([`xlink:href`,`xml:id`,`xlink:title`,`xml:space`,`xmlns:xlink`]),CB=Pz(/{{[\w\W]*|^[\w\W]*}}/g),wB=Pz(/<%[\w\W]*|^[\w\W]*%>/g),TB=Pz(/\${[\w\W]*/g),EB=Pz(/^data-[\-\w.\u00B7-\uFFFF]+$/),DB=Pz(/^aria-[\-\w]+$/),OB=Pz(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),kB=Pz(/^(?:\w+script|data):/i),AB=Pz(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),jB=Pz(/^html$/i),MB=Pz(/^[a-z][.\w]*(-[.\w]+)+$/i),NB=Pz(/<[/\w!]/g),PB=Pz(/<[/\w]/g),FB=Pz(/<\/no(script|embed|frames)/i),IB=Pz(/\/>/i),LB={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},RB=function(){return typeof window>`u`?null:window},zB=function(e,t){if(typeof e!=`object`||typeof e.createPolicy!=`function`)return null;let n=null,r=`data-tt-policy-suffix`;t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let i=`dompurify`+(n?`#`+n:``);try{return e.createPolicy(i,{createHTML(e){return e},createScriptURL(e){return e}})}catch{return console.warn(`TrustedTypes policy `+i+` could not be created.`),null}},BB=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},VB=function(e,t,n,r){return tB(e,t)&&Wz(e[t])?$(r.base?cB(r.base):{},e[t],r.transform):n};function HB(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:RB(),t=e=>HB(e);if(t.version=`3.4.12`,t.removed=[],!e||!e.document||e.document.nodeType!==LB.document||!e.Element)return t.isSupported=!1,t;let n=e.document,r=n,i=r.currentScript;e.DocumentFragment;let a=e.HTMLTemplateElement,o=e.Node,s=e.Element,c=e.NodeFilter,l=e.NamedNodeMap;l===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;let u=e.DOMParser,d=e.trustedTypes,f=s.prototype,p=uB(f,`cloneNode`),m=uB(f,`remove`),h=uB(f,`nextSibling`),g=uB(f,`childNodes`),_=uB(f,`parentNode`),v=uB(f,`shadowRoot`),y=uB(f,`attributes`),b=o&&o.prototype?uB(o.prototype,`nodeType`):null,x=o&&o.prototype?uB(o.prototype,`nodeName`):null;if(typeof a==`function`){let e=n.createElement(`template`);e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let S,C=``,w,T=0,E=function(){if(T>0)throw iB(`A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.`)},D=function(e){E(),T++;try{return S.createHTML(e)}finally{T--}},O=function(e){E(),T++;try{return S.createScriptURL(e)}finally{T--}},k=function(){return w=zB(d,i),w},A=n,j=A.implementation,M=A.createNodeIterator,ee=A.createDocumentFragment,N=A.getElementsByTagName,te=r.importNode,P=BB();t.isSupported=typeof Oz==`function`&&typeof _==`function`&&j&&j.createHTMLDocument!==void 0;let ne=CB,F=wB,re=TB,ie=EB,ae=DB,I=kB,oe=AB,se=MB,ce=OB,L=null,le=$({},[...fB,...pB,...mB,...gB,...vB]),R=null,ue=$({},[...yB,...bB,...xB,...SB]),z=Object.seal(Fz(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),de=null,fe=null,pe=Object.seal(Fz(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),me=!0,he=!0,ge=!1,B=!0,_e=!1,ve=!0,ye=!1,be=!1,xe=null,Se=null,Ce=!1,we=!1,Te=!1,Ee=!1,De=!0,Oe=!1,ke=`user-content-`,Ae=!0,je=!1,Me={},Ne=null,Pe=$({},`annotation-xml.audio.colgroup.desc.foreignobject.head.iframe.math.mi.mn.mo.ms.mtext.noembed.noframes.noscript.plaintext.script.selectedcontent.style.svg.template.thead.title.video.xmp`.split(`.`)),Fe=null,Ie=$({},[`audio`,`video`,`img`,`source`,`image`,`track`]),Le=null,Re=$({},[`alt`,`class`,`for`,`id`,`label`,`name`,`pattern`,`placeholder`,`role`,`summary`,`title`,`value`,`style`,`xmlns`]),ze=`http://www.w3.org/1998/Math/MathML`,Be=`http://www.w3.org/2000/svg`,Ve=`http://www.w3.org/1999/xhtml`,He=Ve,Ue=!1,We=null,Ge=$({},[ze,Be,Ve],Kz),Ke=Nz([`mi`,`mo`,`mn`,`ms`,`mtext`]),qe=$({},Ke),Je=Nz([`annotation-xml`]),Ye=$({},Je),Xe=$({},[`title`,`style`,`font`,`a`,`script`]),Ze=null,Qe=[`application/xhtml+xml`,`text/html`],$e=null,et=null,tt=n.createElement(`form`),nt=function(e){return e instanceof RegExp||e instanceof Function},rt=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(et&&et===e)return;(!e||typeof e!=`object`)&&(e={}),e=cB(e),Ze=Qe.indexOf(e.PARSER_MEDIA_TYPE)===-1?`text/html`:e.PARSER_MEDIA_TYPE,$e=Ze===`application/xhtml+xml`?Kz:Gz,L=VB(e,`ALLOWED_TAGS`,le,{transform:$e}),R=VB(e,`ALLOWED_ATTR`,ue,{transform:$e}),We=VB(e,`ALLOWED_NAMESPACES`,Ge,{transform:Kz}),Le=VB(e,`ADD_URI_SAFE_ATTR`,Re,{transform:$e,base:Re}),Fe=VB(e,`ADD_DATA_URI_TAGS`,Ie,{transform:$e,base:Ie}),Ne=VB(e,`FORBID_CONTENTS`,Pe,{transform:$e}),de=VB(e,`FORBID_TAGS`,cB({}),{transform:$e}),fe=VB(e,`FORBID_ATTR`,cB({}),{transform:$e}),Me=tB(e,`USE_PROFILES`)?e.USE_PROFILES&&typeof e.USE_PROFILES==`object`?cB(e.USE_PROFILES):e.USE_PROFILES:!1,me=e.ALLOW_ARIA_ATTR!==!1,he=e.ALLOW_DATA_ATTR!==!1,ge=e.ALLOW_UNKNOWN_PROTOCOLS||!1,B=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,_e=e.SAFE_FOR_TEMPLATES||!1,ve=e.SAFE_FOR_XML!==!1,ye=e.WHOLE_DOCUMENT||!1,we=e.RETURN_DOM||!1,Te=e.RETURN_DOM_FRAGMENT||!1,Ee=e.RETURN_TRUSTED_TYPE||!1,Ce=e.FORCE_BODY||!1,De=e.SANITIZE_DOM!==!1,Oe=e.SANITIZE_NAMED_PROPS||!1,Ae=e.KEEP_CONTENT!==!1,je=e.IN_PLACE||!1,ce=dB(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:OB,He=typeof e.NAMESPACE==`string`?e.NAMESPACE:Ve,qe=tB(e,`MATHML_TEXT_INTEGRATION_POINTS`)&&e.MATHML_TEXT_INTEGRATION_POINTS&&typeof e.MATHML_TEXT_INTEGRATION_POINTS==`object`?cB(e.MATHML_TEXT_INTEGRATION_POINTS):$({},Ke),Ye=tB(e,`HTML_INTEGRATION_POINTS`)&&e.HTML_INTEGRATION_POINTS&&typeof e.HTML_INTEGRATION_POINTS==`object`?cB(e.HTML_INTEGRATION_POINTS):$({},Je);let t=tB(e,`CUSTOM_ELEMENT_HANDLING`)&&e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING==`object`?cB(e.CUSTOM_ELEMENT_HANDLING):Fz(null);if(z=Fz(null),tB(t,`tagNameCheck`)&&nt(t.tagNameCheck)&&(z.tagNameCheck=t.tagNameCheck),tB(t,`attributeNameCheck`)&&nt(t.attributeNameCheck)&&(z.attributeNameCheck=t.attributeNameCheck),tB(t,`allowCustomizedBuiltInElements`)&&typeof t.allowCustomizedBuiltInElements==`boolean`&&(z.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),Pz(z),_e&&(he=!1),Te&&(we=!0),Me&&(L=$({},vB),R=Fz(null),Me.html===!0&&($(L,fB),$(R,yB)),Me.svg===!0&&($(L,pB),$(R,bB),$(R,SB)),Me.svgFilters===!0&&($(L,mB),$(R,bB),$(R,SB)),Me.mathMl===!0&&($(L,gB),$(R,xB),$(R,SB))),pe.tagCheck=null,pe.attributeCheck=null,tB(e,`ADD_TAGS`)&&(typeof e.ADD_TAGS==`function`?pe.tagCheck=e.ADD_TAGS:Wz(e.ADD_TAGS)&&(L===le&&(L=cB(L)),$(L,e.ADD_TAGS,$e))),tB(e,`ADD_ATTR`)&&(typeof e.ADD_ATTR==`function`?pe.attributeCheck=e.ADD_ATTR:Wz(e.ADD_ATTR)&&(R===ue&&(R=cB(R)),$(R,e.ADD_ATTR,$e))),tB(e,`ADD_URI_SAFE_ATTR`)&&Wz(e.ADD_URI_SAFE_ATTR)&&$(Le,e.ADD_URI_SAFE_ATTR,$e),tB(e,`FORBID_CONTENTS`)&&Wz(e.FORBID_CONTENTS)&&(Ne===Pe&&(Ne=cB(Ne)),$(Ne,e.FORBID_CONTENTS,$e)),tB(e,`ADD_FORBID_CONTENTS`)&&Wz(e.ADD_FORBID_CONTENTS)&&(Ne===Pe&&(Ne=cB(Ne)),$(Ne,e.ADD_FORBID_CONTENTS,$e)),Ae&&(L[`#text`]=!0),ye&&$(L,[`html`,`head`,`body`]),L.table&&($(L,[`tbody`]),delete de.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!=`function`)throw iB(`TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.`);if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!=`function`)throw iB(`TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.`);let t=S;S=e.TRUSTED_TYPES_POLICY;try{C=D(``)}catch(e){throw S=t,e}}else e.TRUSTED_TYPES_POLICY===null?(S=void 0,C=``):(S===void 0&&(S=k()),S&&typeof C==`string`&&(C=D(``)));Nz&&Nz(e),et=e},it=$({},[...pB,...mB,...hB]),at=$({},[...gB,..._B]),ot=function(e,t,n){return t.namespaceURI===Ve?e===`svg`:t.namespaceURI===ze?e===`svg`&&(n===`annotation-xml`||qe[n]):!!it[e]},st=function(e,t,n){return t.namespaceURI===Ve?e===`math`:t.namespaceURI===Be?e===`math`&&Ye[n]:!!at[e]},ct=function(e,t,n){return t.namespaceURI===Be&&!Ye[n]||t.namespaceURI===ze&&!qe[n]?!1:!at[e]&&(Xe[e]||!it[e])},lt=function(e){let t=_(e);(!t||!t.tagName)&&(t={namespaceURI:He,tagName:`template`});let n=Gz(e.tagName),r=Gz(t.tagName);return We[e.namespaceURI]?e.namespaceURI===Be?ot(n,t,r):e.namespaceURI===ze?st(n,t,r):e.namespaceURI===Ve?ct(n,t,r):!!(Ze===`application/xhtml+xml`&&We[e.namespaceURI]):!1},ut=function(e){Hz(t.removed,{element:e});try{_(e).removeChild(e)}catch{if(m(e),!_(e))throw iB(`a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place`)}},dt=function(e){mt(e);let t=g(e);if(t){let e=[];zz(t,t=>{Hz(e,t)}),zz(e,e=>{try{m(e)}catch{}})}let n=y(e);if(n)for(let t=n.length-1;t>=0;--t){let r=n[t],i=r&&r.name;if(typeof i==`string`)try{e.removeAttribute(i)}catch{}}},ft=function(e,n){try{Hz(t.removed,{attribute:n.getAttributeNode(e),from:n})}catch{Hz(t.removed,{attribute:null,from:n})}if(n.removeAttribute(e),e===`is`)if(we||Te)try{ut(n)}catch{}else try{n.setAttribute(e,``)}catch{}},pt=function(e){let t=y(e);if(t)for(let n=t.length-1;n>=0;--n){let r=t[n],i=r&&r.name;if(!(typeof i!=`string`||R[$e(i)]))try{e.removeAttribute(i)}catch{}}},mt=function(e){let t=[e];for(;t.length>0;){let e=t.pop(),n=b?b(e):e.nodeType;n===LB.element&&pt(e);let r=g(e);if(r)for(let e=r.length-1;e>=0;--e)t.push(r[e])}},ht=function(e){if(!ve)return;let t=[e];for(;t.length>0;){let e=t.pop(),n=b?b(e):e.nodeType;if(n===LB.processingInstruction||n===LB.comment&&rB(PB,e.data)){try{m(e)}catch{}continue}if(n===LB.element){let t=e,n=$e(x?x(e):e.nodeName);try{t.hasAttribute&&t.hasAttribute(`patchsrc`)&&t.removeAttribute(`patchsrc`),t.hasAttribute&&t.hasAttribute(`for`)&&n!==`label`&&n!==`output`&&t.removeAttribute(`for`)}catch{}}let r=g(e);if(r)for(let e=r.length-1;e>=0;--e)t.push(r[e])}},gt=function(e){let t=null,r=null;if(Ce)e=`<remove></remove>`+e;else{let t=qz(e,/^[\r\n\t ]+/);r=t&&t[0]}Ze===`application/xhtml+xml`&&He===Ve&&(e=`<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>`+e+`</body></html>`);let i=S?D(e):e;if(He===Ve)try{t=new u().parseFromString(i,Ze)}catch{}if(!t||!t.documentElement){t=j.createDocument(He,`template`,null);try{t.documentElement.innerHTML=Ue?C:i}catch{}}let a=t.body||t.documentElement;return e&&r&&a.insertBefore(n.createTextNode(r),a.childNodes[0]||null),He===Ve?N.call(t,ye?`html`:`body`)[0]:ye?t.documentElement:a},_t=function(e){return M.call(e.ownerDocument||e,e,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},vt=function(e){return e=Jz(e,ne,` `),e=Jz(e,F,` `),e=Jz(e,re,` `),e},yt=function(e){var t;e.normalize();let n=M.call(e.ownerDocument||e,e,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null),r=n.nextNode();for(;r;)r.data=vt(r.data),r=n.nextNode();let i=(t=e.querySelectorAll)?.call(e,`template`);i&&zz(i,e=>{xt(e.content)&&yt(e.content)})},bt=function(e){let t=x?x(e):null;return typeof t!=`string`||$e(t)!==`form`?!1:typeof e.nodeName!=`string`||typeof e.textContent!=`string`||typeof e.removeChild!=`function`||e.attributes!==y(e)||typeof e.removeAttribute!=`function`||typeof e.setAttribute!=`function`||typeof e.namespaceURI!=`string`||typeof e.insertBefore!=`function`||typeof e.hasChildNodes!=`function`||e.nodeType!==b(e)||e.childNodes!==g(e)},xt=function(e){if(!b||typeof e!=`object`||!e)return!1;try{return b(e)===LB.documentFragment}catch{return!1}},St=function(e){if(!b||typeof e!=`object`||!e)return!1;try{return typeof b(e)==`number`}catch{return!1}};function Ct(e,n,r){e.length!==0&&zz(e,e=>{e.call(t,n,r,et)})}let wt=function(e,t){return!!(ve&&e.hasChildNodes()&&!St(e.firstElementChild)&&rB(NB,e.textContent)&&rB(NB,e.innerHTML)||ve&&e.namespaceURI===Ve&&t===`style`&&St(e.firstElementChild)||e.nodeType===LB.processingInstruction||ve&&e.nodeType===LB.comment&&rB(PB,e.data))},Tt=function(e,t){if(!de[t]&&H(t)&&(z.tagNameCheck instanceof RegExp&&rB(z.tagNameCheck,t)||z.tagNameCheck instanceof Function&&z.tagNameCheck(t)))return!1;if(Ae&&!Ne[t]){let t=_(e),n=g(e);if(n&&t){let r=n.length;for(let i=r-1;i>=0;--i){let r=je?n[i]:p(n[i],!0);t.insertBefore(r,h(e))}}}return ut(e),!0},V=function(e,n){if(Ct(P.beforeSanitizeElements,e,null),e!==n&&_(e)===null)return!0;if(bt(e))return ut(e),!0;let r=$e(x?x(e):e.nodeName);if(Ct(P.uponSanitizeElement,e,{tagName:r,allowedTags:L}),e!==n&&_(e)===null)return!0;if(wt(e,r))return ut(e),!0;if(de[r]||!(pe.tagCheck instanceof Function&&pe.tagCheck(r))&&!L[r]){let t=Tt(e,r);return t===!1&&Ct(P.afterSanitizeElements,e,null),t}let i=b?b(e):e.nodeType;if(i===LB.element&&!lt(e)||(r===`noscript`||r===`noembed`||r===`noframes`)&&rB(FB,e.innerHTML))return ut(e),!0;if(_e&&e.nodeType===LB.text){let n=vt(e.textContent);e.textContent!==n&&(Hz(t.removed,{element:e.cloneNode()}),e.textContent=n)}return Ct(P.afterSanitizeElements,e,null),!1},Et=function(e,t,r){if(fe[t]||ve&&t===`patchsrc`||ve&&t===`for`&&e!==`label`&&e!==`output`||De&&(t===`id`||t===`name`)&&(r in n||r in tt))return!1;let i=R[t]||pe.attributeCheck instanceof Function&&pe.attributeCheck(t,e);if(!(he&&rB(ie,t))&&!(me&&rB(ae,t))){if(i){if(!Le[t]&&!rB(ce,Jz(r,oe,``))&&!((t===`src`||t===`xlink:href`||t===`href`)&&e!==`script`&&Yz(r,`data:`)===0&&Fe[e])&&!(ge&&!rB(I,Jz(r,oe,``)))&&r)return!1}else if(!(H(e)&&(z.tagNameCheck instanceof RegExp&&rB(z.tagNameCheck,e)||z.tagNameCheck instanceof Function&&z.tagNameCheck(e))&&(z.attributeNameCheck instanceof RegExp&&rB(z.attributeNameCheck,t)||z.attributeNameCheck instanceof Function&&z.attributeNameCheck(t,e))||t===`is`&&z.allowCustomizedBuiltInElements&&(z.tagNameCheck instanceof RegExp&&rB(z.tagNameCheck,r)||z.tagNameCheck instanceof Function&&z.tagNameCheck(r))))return!1}return!0},Dt=$({},[`annotation-xml`,`color-profile`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`missing-glyph`]),H=function(e){return!Dt[Gz(e)]&&rB(se,e)},Ot=function(e,t,n,r){if(S&&typeof d==`object`&&typeof d.getAttributeType==`function`&&!n)switch(d.getAttributeType(e,t)){case`TrustedHTML`:return D(r);case`TrustedScriptURL`:return O(r)}return r},kt=function(e,n,r,i){try{r?e.setAttributeNS(r,n,i):e.setAttribute(n,i),bt(e)?ut(e):Vz(t.removed)}catch{ft(n,e)}},At=function(e){Ct(P.beforeSanitizeAttributes,e,null);let t=e.attributes;if(!t||bt(e))return;let n={attrName:``,attrValue:``,keepAttr:!0,allowedAttributes:R,forceKeepAttr:void 0},r=t.length,i=$e(e.nodeName);for(;r--;){let a=t[r],o=a.name,s=a.namespaceURI,c=a.value,l=$e(o),u=c,d=o===`value`?u:Xz(u);if(n.attrName=l,n.attrValue=d,n.keepAttr=!0,n.forceKeepAttr=void 0,Ct(P.uponSanitizeAttribute,e,n),d=n.attrValue,Oe&&(l===`id`||l===`name`)&&Yz(d,ke)!==0&&(ft(o,e),d=ke+d),ve&&rB(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,d)){ft(o,e);continue}if(l===`attributename`&&qz(d,`href`)){ft(o,e);continue}if(!n.forceKeepAttr){if(!n.keepAttr){ft(o,e);continue}if(!B&&rB(IB,d)){ft(o,e);continue}if(_e&&(d=vt(d)),!Et(i,l,d)){ft(o,e);continue}d=Ot(i,l,s,d),d!==u&&kt(e,o,s,d)}}Ct(P.afterSanitizeAttributes,e,null)},jt=function(e){let t=null,n=_t(e);for(Ct(P.beforeSanitizeShadowDOM,e,null);t=n.nextNode();){Ct(P.uponSanitizeShadowNode,t,null),V(t,e),At(t),xt(t.content)&&jt(t.content);let n=b?b(t):t.nodeType;if(n===LB.element){let e=v(t);xt(e)&&(Mt(e),jt(e))}}Ct(P.afterSanitizeShadowDOM,e,null)},Mt=function(e){let t=[{node:e,shadow:null}];for(;t.length>0;){let e=t.pop();if(e.shadow){jt(e.shadow);continue}let n=e.node,r=b?b(n):n.nodeType,i=r===LB.element,a=g(n);if(a)for(let e=a.length-1;e>=0;--e)t.push({node:a[e],shadow:null});if(i){let e=x?x(n):null;if(typeof e==`string`&&$e(e)===`template`){let e=n.content;xt(e)&&t.push({node:e,shadow:null})}}if(i){let e=v(n);xt(e)&&t.push({node:null,shadow:e},{node:e,shadow:null})}}};return t.sanitize=function(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=null,a=null,o=null,s=null;if(Ue=!e,Ue&&(e=`<!-->`),typeof e!=`string`&&!St(e)&&(e=lB(e),typeof e!=`string`))throw iB(`dirty is not a string, aborting`);if(!t.isSupported)return e;be?(L=xe,R=Se):rt(n),(P.uponSanitizeElement.length>0||P.uponSanitizeAttribute.length>0)&&(L=cB(L)),P.uponSanitizeAttribute.length>0&&(R=cB(R)),t.removed=[];let c=je&&typeof e!=`string`&&St(e);if(c){ht(e);let t=x?x(e):e.nodeName;if(typeof t==`string`){let n=$e(t);if(!L[n]||de[n])throw dt(e),iB(`root node is forbidden and cannot be sanitized in-place`)}if(bt(e))throw dt(e),iB(`root node is clobbered and cannot be sanitized in-place`);try{Mt(e)}catch(t){throw dt(e),t}}else if(St(e))i=gt(`<!---->`),a=i.ownerDocument.importNode(e,!0),a.nodeType===LB.element&&a.nodeName===`BODY`||a.nodeName===`HTML`?i=a:i.appendChild(a),Mt(a);else{if(!we&&!_e&&!ye&&e.indexOf(`<`)===-1)return S&&Ee?D(e):e;if(i=gt(e),!i)return we?null:Ee?C:``}i&&Ce&&ut(i.firstChild);let l=c?e:i,u=_t(l);try{for(;o=u.nextNode();)V(o,l),At(o),xt(o.content)&&jt(o.content)}catch(n){throw c&&(dt(e),zz(t.removed,e=>{e.element&&mt(e.element)})),n}if(c)return zz(t.removed,e=>{e.element&&mt(e.element)}),_e&&yt(e),e;if(we){if(_e&&yt(i),Te)for(s=ee.call(i.ownerDocument);i.firstChild;)s.appendChild(i.firstChild);else s=i;return(R.shadowroot||R.shadowrootmode)&&(s=te.call(r,s,!0)),s}let d=ye?i.outerHTML:i.innerHTML;return ye&&L[`!doctype`]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&rB(jB,i.ownerDocument.doctype.name)&&(d=`<!DOCTYPE `+i.ownerDocument.doctype.name+`>
|
|
1152
|
-
`+d),_e&&(d=vt(d)),S&&Ee?D(d):d},t.setConfig=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};rt(e),be=!0,xe=L,Se=R},t.clearConfig=function(){et=null,be=!1,xe=null,Se=null,S=w,C=``},t.isValidAttribute=function(e,t,n){et||rt({});let r=$e(e),i=$e(t);return Et(r,i,n)},t.addHook=function(e,t){typeof t==`function`&&tB(P,e)&&Hz(P[e],t)},t.removeHook=function(e,t){if(tB(P,e)){if(t!==void 0){let n=Bz(P[e],t);return n===-1?void 0:Uz(P[e],n,1)[0]}return Vz(P[e])}},t.removeHooks=function(e){tB(P,e)&&(P[e]=[])},t.removeAllHooks=function(){P=BB()},t}var UB=HB(),WB=M(((exports,t)=>{var n=`Expected a function`,r=NaN,i=`[object Symbol]`,a=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,c=/^0o[0-7]+$/i,l=parseInt,u=typeof global==`object`&&global&&global.Object===Object&&global,d=typeof self==`object`&&self&&self.Object===Object&&self,f=u||d||Function(`return this`)(),p=Object.prototype,m=p.toString,h=Math.max,g=Math.min,_=function(){return f.Date.now()};function v(e,t,r){var i,a,o,s,c,l,u=0,d=!1,f=!1,p=!0;if(typeof e!=`function`)throw TypeError(n);t=S(t)||0,y(r)&&(d=!!r.leading,f=`maxWait`in r,o=f?h(S(r.maxWait)||0,t):o,p=`trailing`in r?!!r.trailing:p);function m(t){var n=i,r=a;return i=a=void 0,u=t,s=e.apply(r,n),s}function v(e){return u=e,c=setTimeout(C,t),d?m(e):s}function b(e){var n=e-l,r=e-u,i=t-n;return f?g(i,o-r):i}function x(e){var n=e-l,r=e-u;return l===void 0||n>=t||n<0||f&&r>=o}function C(){var e=_();if(x(e))return w(e);c=setTimeout(C,b(e))}function w(e){return c=void 0,p&&i?m(e):(i=a=void 0,s)}function T(){c!==void 0&&clearTimeout(c),u=0,i=l=a=c=void 0}function E(){return c===void 0?s:w(_())}function D(){var e=_(),n=x(e);if(i=arguments,a=this,l=e,n){if(c===void 0)return v(l);if(f)return c=setTimeout(C,t),m(l)}return c===void 0&&(c=setTimeout(C,t)),s}return D.cancel=T,D.flush=E,D}function y(e){var t=typeof e;return!!e&&(t==`object`||t==`function`)}function b(e){return!!e&&typeof e==`object`}function x(e){return typeof e==`symbol`||b(e)&&m.call(e)==i}function S(e){if(typeof e==`number`)return e;if(x(e))return r;if(y(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=y(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;e=e.replace(a,``);var n=s.test(e);return n||c.test(e)?l(e.slice(2),n?2:8):o.test(e)?r:+e}t.exports=v})),GB=M(((exports,t)=>{t.exports=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t==`object`&&typeof n==`object`){if(t.constructor!==n.constructor)return!1;var r,i,a;if(Array.isArray(t)){if(r=t.length,r!=n.length)return!1;for(i=r;i--!==0;)if(!e(t[i],n[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(a=Object.keys(t),r=a.length,r!==Object.keys(n).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(n,a[i]))return!1;for(i=r;i--!==0;){var o=a[i];if(!e(t[o],n[o]))return!1}return!0}return t!==t&&n!==n}})),KB=M(((exports,n)=>{n.exports={...e}})),qB=M((exports=>{var t=KB();function n(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var r=typeof Object.is==`function`?Object.is:n,i=t.useState,a=t.useEffect,o=t.useLayoutEffect,s=t.useDebugValue;function c(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),c=r[0].inst,u=r[1];return o(function(){c.value=n,c.getSnapshot=t,l(c)&&u({inst:c})},[e,n,t]),a(function(){return l(c)&&u({inst:c}),e(function(){l(c)&&u({inst:c})})},[e]),s(n),n}function l(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(e,n)}catch{return!0}}function u(e,t){return t()}var d=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?u:c;exports.useSyncExternalStore=t.useSyncExternalStore===void 0?d:t.useSyncExternalStore})),JB=M(((exports,t)=>{t.exports=qB()})),YB=M(((exports,t)=>{(function(){var e,n,r,i,a,o;typeof performance<`u`&&performance!==null&&performance.now?t.exports=function(){return performance.now()}:typeof process<`u`&&process!==null&&process.hrtime?(t.exports=function(){return(e()-a)/1e6},n=process.hrtime,e=function(){var e;return e=n(),e[0]*1e9+e[1]},i=e(),o=process.uptime()*1e9,a=i-o):Date.now?(t.exports=function(){return Date.now()-r},r=Date.now()):(t.exports=function(){return new Date().getTime()-r},r=new Date().getTime())}).call(exports)})),XB=M(((exports,t)=>{for(var n=YB(),r=typeof window>`u`?global:window,i=[`moz`,`webkit`],a=`AnimationFrame`,o=r[`request`+a],s=r[`cancel`+a]||r[`cancelRequest`+a],c=0;!o&&c<i.length;c++)o=r[i[c]+`Request`+a],s=r[i[c]+`Cancel`+a]||r[i[c]+`CancelRequest`+a];if(!o||!s){var l=0,u=0,d=[],f=1e3/60;o=function(e){if(d.length===0){var t=n(),r=Math.max(0,f-(t-l));l=r+t,setTimeout(function(){var e=d.slice(0);d.length=0;for(var t=0;t<e.length;t++)if(!e[t].cancelled)try{e[t].callback(l)}catch(e){setTimeout(function(){throw e},0)}},Math.round(r))}return d.push({handle:++u,callback:e,cancelled:!1}),u},s=function(e){for(var t=0;t<d.length;t++)d[t].handle===e&&(d[t].cancelled=!0)}}t.exports=function(e){return o.call(r,e)},t.exports.cancel=function(){s.apply(r,arguments)},t.exports.polyfill=function(e){e||=r,e.requestAnimationFrame=o,e.cancelAnimationFrame=s}}));WB(),GB(),JB(),XB();var ZB=()=>{};function QB(e,t=0,n=!0,r=!1){let i=_(void 0);f(()=>{i.current=e}),f(()=>{if(n){let e=function(){i.current?.()};r&&e();let n=window.setInterval(e,t);return()=>{window.clearInterval(n)}}return ZB},[n,t,r])}var $B=!1,eV=()=>{};if($B){let e=e=>{let t=`Warning: ${e}`;typeof console<`u`&&console.error(t);try{throw Error(t)}catch{}};eV=function(t,n){t||e(n)}}const tV=(e,t,n,r,i)=>{switch(e){case`bottom`:return{left:`${t}px`,top:`${-n}px`};case`left`:return{left:`${i-n}px`,top:`${r/2-n}px`};case`right`:return{left:`${-n}px`,top:`${r/2-n}px`};default:return{left:`${t}px`,top:`${r-10+n}px`}}},nV=({text:e})=>b(`div`,{dangerouslySetInnerHTML:{__html:UB.sanitize(e)}}),rV=()=>window.navigator.userAgent===`Playwright`,iV=()=>{let e=_(null),t=_(null),[n,r]=v(null),[i,a]=v(!1),[o,s]=v(!1);h(()=>{if(!n||!e.current||!t.current)return;let r=!1;return aN(n.target,e.current,{placement:n.placement,middleware:[$u(10),rN(),nN({padding:8}),iN({element:t.current})]}).then(({x:n,y:i,middlewareData:o,placement:s})=>{if(!(r||!e.current||!t.current)){if(Object.assign(e.current.style,{left:`${n}px`,top:`${i}px`}),o.arrow){let{x:n,y:r}=o.arrow,i=t.current.offsetHeight/2,a=e.current.offsetHeight,c=e.current.offsetWidth,l=tV(s,n??r,i,a,c);Object.assign(t.current.style,l)}a(!0)}}),()=>{r=!0}},[n]),QB(()=>{if(o||!n)return;let e=n.target.getBoundingClientRect();(n.originalPosition.y!==e.y||n.originalPosition.x!==e.x)&&a(!1)},300,i);let c=_(null);return f(()=>{let t=t=>{c.current&&clearTimeout(c.current);let n=t.target instanceof Element?t.target.closest(`[data-qtip-text]`):null;if(!n){let n=t.target instanceof Node&&e.current?.contains(t.target);n||a(!1);return}let i=n.dataset.qtipText;if(!i)return;let o=parseInt(n.dataset.qtipDelay||`500`,10),s=n.dataset.qtipPlacement||`top`,l=n.dataset.qtipIsHtml===`true`,u=n.dataset.qtipTestid;c.current=setTimeout(()=>{r({target:n,text:i,html:l,testId:u,placement:s,originalPosition:n.getBoundingClientRect()})},o)};return!rV()&&document.body.addEventListener(`mousemove`,t),()=>{!rV()&&document.removeEventListener(`mousemove`,t)}},[]),b(y,{children:x(`div`,{onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1),"data-testid":n?.testId,ref:e,...{0:{className:`x10l6tqk x1q2oy4v xowlazn x16eypsj x186xesn x7gbtqy xboafo0 xl2ypbo xeda06r xlshs6z x47corl`},1:{className:`x10l6tqk x1q2oy4v xowlazn x16eypsj x186xesn x7gbtqy xboafo0 xl2ypbo xeda06r xnpuxes xqcmdr3 x4afe7t x4hg4is`}}[!!i<<0],children:[n?.html?b(nV,{text:n.text}):n?.text,b(`div`,{className:`x10l6tqk x1qa65zt x1e7hgle x1158fpu x186xesn`,ref:t})]})})},aV={content:{k1xSpc:`x78zum5`,kXwgrk:`xdt5ytf`,kGNEyG:`x6s0dn4`,kWkggS:`xjbqb8w`,k3XXqK:`x1t137rt`,$$css:!0},disabled:{kkrTdU:`x1h6gzvc`,kSiTet:`xbyyjgo`,$$css:!0}},oV=({"aria-busy":e,...t})=>{let{triggerIcon:n,id:r,extraClassNames:i=``,xstyle:a,disabled:o=!1,...s}=t,c=el(s),l=V(aV.content,o&&aV.disabled,a);return b(T_,{...t,children:b(f_,{id:r,className:`xng3xce xjbqb8w x1t137rt x1717udv xln7xf2 x1heor9g`,"aria-busy":e,disabled:o,children:b(`div`,{...c,...l,className:H(l.className,i),children:n})})})};var sV=oV;const cV=[`new`,`preview`,`success`,`neutral`,`error`],lV=[`button`,`reset`,`submit`,`link`],uV=[`xs`,`sm`,`lg`],dV=[`outline`,`theme`,`theme-light`,`warning`,`danger`,`no-border`,`navigation`,`navigation-selected`],fV=[`left`,`right`],pV=[`theme`,`white`,`dark-gray`,`darkish-gray`,`gray`,`color`,`info`,`text`,`warning`,`inherit`,`danger`,`theme-light`,`success`],mV=[...pV,`default`],hV=[`outline`,`theme`,`theme-light`,`warning`,`danger`,`no-border`],gV={x1hdm7ur:`x8qo5x5 x1hdm7ur`,$$css:!0},_V={x1hdm7ur:`xomkwl5 x1hdm7ur`,$$css:!0},vV={x1hdm7ur:`xif9rir x1hdm7ur`,$$css:!0},yV={x1hdm7ur:`xmwmknw x1hdm7ur`,$$css:!0},bV={x1hdm7ur:`x1xd6wte x1hdm7ur`,$$css:!0},xV={x1hdm7ur:`x4u9uoa x1hdm7ur`,$$css:!0},SV={x1hdm7ur:`xiezi0x x1hdm7ur`,$$css:!0},CV={x1hdm7ur:`xv0rt1q x1hdm7ur`,$$css:!0},wV={x1hdm7ur:`xrzawk1 x1hdm7ur`,$$css:!0},TV={x1hdm7ur:`x1uu7o03 x1hdm7ur`,$$css:!0},EV={topic:{light:gV,dark:_V},analysis:{light:vV,dark:yV},datalab:{light:bV,dark:xV},vantage:{light:SV,dark:CV},insights:{light:wV,dark:TV}};export{At as Accordion,cl as Alert,ml as Badge,Ol as Button,Ml as ButtonGroup,E_ as ButtonWithDropdown,ov as ButtonWithPopover,cO as Carousel,dO as Checkbox,pO as Collapse,bO as ColorPickerControl,_O as ColorSwatch,CO as EditorPanel,EO as ExternalLink,VI as I18N_NAMESPACE,al as Icon,PO as InputGroup,yl as LoadingIndicator,Nk as Modal,ZI as Paginator,eL as Pill,zL as ProgressBar,iV as QTip,QL as SeeqActionDropdown,tR as SegmentedControl,BI as Select,iF as SelectComponents,GR as Slider,pz as Tabs,hz as TextArea,MO as TextField,vz as ToolbarButton,xz as Tooltip,sV as TriggerWithDropdown,cV as badgeVariants,uV as buttonSizes,lV as buttonTypes,dV as buttonVariants,fV as iconPositions,pV as iconTypes,mV as svgIconTypes,EV as themes,hV as toolbarButtonVariants};
|
|
1150
|
+
function Az(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function jz(e){if(Array.isArray(e))return e}function Mz(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function Nz(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
1151
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Pz(e,t){return jz(e)||Mz(e,t)||Fz(e,t)||Nz()}function Fz(e,t){if(e){if(typeof e==`string`)return Az(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Az(e,t):void 0}}const Iz=Object.entries,Lz=Object.setPrototypeOf,Rz=Object.isFrozen,zz=Object.getPrototypeOf,Bz=Object.getOwnPropertyDescriptor;let Vz=Object.freeze,Hz=Object.seal,Uz=Object.create,Wz=typeof Reflect<`u`&&Reflect,Gz=Wz.apply,Kz=Wz.construct;Vz||=function(e){return e},Hz||=function(e){return e},Gz||=function(e,t){var n=[...arguments].slice(2);return e.apply(t,n)},Kz||=function(e){var t=[...arguments].slice(1);return new e(...t)};const qz=pB(Array.prototype.forEach),Jz=pB(Array.prototype.lastIndexOf),Yz=pB(Array.prototype.pop),Xz=pB(Array.prototype.push),Zz=pB(Array.prototype.splice),Qz=Array.isArray,$z=pB(String.prototype.toLowerCase),eB=pB(String.prototype.toString),tB=pB(String.prototype.match),nB=pB(String.prototype.replace),rB=pB(String.prototype.indexOf),iB=pB(String.prototype.trim),aB=pB(Number.prototype.toString),oB=pB(Boolean.prototype.toString),sB=typeof BigInt>`u`?null:pB(BigInt.prototype.toString),cB=typeof Symbol>`u`?null:pB(Symbol.prototype.toString),lB=pB(Object.prototype.hasOwnProperty),uB=pB(Object.prototype.toString),dB=pB(RegExp.prototype.test),fB=mB(TypeError);function pB(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);var n=[...arguments].slice(1);return Gz(e,t,n)}}function mB(e){return function(){var t=[...arguments];return Kz(e,t)}}function $(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:$z;if(Lz&&Lz(e,null),!Qz(t))return e;let r=t.length;for(;r--;){let i=t[r];if(typeof i==`string`){let e=n(i);e!==i&&(Rz(t)||(t[r]=e),i=e)}e[i]=!0}return e}function hB(e){for(let t=0;t<e.length;t++){let n=lB(e,t);n||(e[t]=null)}return e}function gB(e){let t=Uz(null);for(let r of Iz(e)){var n=Pz(r,2);let i=n[0],a=n[1],o=lB(e,i);o&&(Qz(a)?t[i]=hB(a):a&&typeof a==`object`&&a.constructor===Object?t[i]=gB(a):t[i]=a)}return t}function _B(e){switch(typeof e){case`string`:return e;case`number`:return aB(e);case`boolean`:return oB(e);case`bigint`:return sB?sB(e):`0`;case`symbol`:return cB?cB(e):`Symbol()`;case`undefined`:return uB(e);case`function`:case`object`:{if(e===null)return uB(e);let t=e,n=vB(t,`toString`);if(typeof n==`function`){let e=n(t);return typeof e==`string`?e:uB(e)}return uB(e)}default:return uB(e)}}function vB(e,t){for(;e!==null;){let n=Bz(e,t);if(n){if(n.get)return pB(n.get);if(typeof n.value==`function`)return pB(n.value)}e=zz(e)}function n(){return null}return n}function yB(e){try{return dB(e,``),!0}catch{return!1}}const bB=Vz(`a.abbr.acronym.address.area.article.aside.audio.b.bdi.bdo.big.blink.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.content.data.datalist.dd.decorator.del.details.dfn.dialog.dir.div.dl.dt.element.em.fieldset.figcaption.figure.font.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.img.input.ins.kbd.label.legend.li.main.map.mark.marquee.menu.menuitem.meter.nav.nobr.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.search.section.select.shadow.slot.small.source.spacer.span.strike.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.tr.track.tt.u.ul.var.video.wbr`.split(`.`)),xB=Vz(`svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.enterkeyhint.exportparts.filter.font.g.glyph.glyphref.hkern.image.inputmode.line.lineargradient.marker.mask.metadata.mpath.part.path.pattern.polygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern`.split(`.`)),SB=Vz([`feBlend`,`feColorMatrix`,`feComponentTransfer`,`feComposite`,`feConvolveMatrix`,`feDiffuseLighting`,`feDisplacementMap`,`feDistantLight`,`feDropShadow`,`feFlood`,`feFuncA`,`feFuncB`,`feFuncG`,`feFuncR`,`feGaussianBlur`,`feImage`,`feMerge`,`feMergeNode`,`feMorphology`,`feOffset`,`fePointLight`,`feSpecularLighting`,`feSpotLight`,`feTile`,`feTurbulence`]),CB=Vz([`animate`,`color-profile`,`cursor`,`discard`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`foreignobject`,`hatch`,`hatchpath`,`mesh`,`meshgradient`,`meshpatch`,`meshrow`,`missing-glyph`,`script`,`set`,`solidcolor`,`unknown`,`use`]),wB=Vz(`math.menclose.merror.mfenced.mfrac.mglyph.mi.mlabeledtr.mmultiscripts.mn.mo.mover.mpadded.mphantom.mroot.mrow.ms.mspace.msqrt.mstyle.msub.msup.msubsup.mtable.mtd.mtext.mtr.munder.munderover.mprescripts`.split(`.`)),TB=Vz([`maction`,`maligngroup`,`malignmark`,`mlongdiv`,`mscarries`,`mscarry`,`msgroup`,`mstack`,`msline`,`msrow`,`semantics`,`annotation`,`annotation-xml`,`mprescripts`,`none`]),EB=Vz([`#text`]),DB=Vz(`accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.command.commandfor.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns`.split(`.`)),OB=Vz(`accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dominant-baseline.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-orientation.text-rendering.textlength.type.u1.u2.unicode.values.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan`.split(`.`)),kB=Vz(`accent.accentunder.align.bevelled.close.columnalign.columnlines.columnspacing.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lquote.lspace.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns`.split(`.`)),AB=Vz([`xlink:href`,`xml:id`,`xlink:title`,`xml:space`,`xmlns:xlink`]),jB=Hz(/{{[\w\W]*|^[\w\W]*}}/g),MB=Hz(/<%[\w\W]*|^[\w\W]*%>/g),NB=Hz(/\${[\w\W]*/g),PB=Hz(/^data-[\-\w.\u00B7-\uFFFF]+$/),FB=Hz(/^aria-[\-\w]+$/),IB=Hz(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),LB=Hz(/^(?:\w+script|data):/i),RB=Hz(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),zB=Hz(/^html$/i),BB=Hz(/^[a-z][.\w]*(-[.\w]+)+$/i),VB=Hz(/<[/\w!]/g),HB=Hz(/<[/\w]/g),UB=Hz(/<\/no(script|embed|frames)/i),WB=Hz(/\/>/i),GB={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},KB=function(){return typeof window>`u`?null:window},qB=function(e,t){if(typeof e!=`object`||typeof e.createPolicy!=`function`)return null;let n=null,r=`data-tt-policy-suffix`;t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let i=`dompurify`+(n?`#`+n:``);try{return e.createPolicy(i,{createHTML(e){return e},createScriptURL(e){return e}})}catch{return console.warn(`TrustedTypes policy `+i+` could not be created.`),null}},JB=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},YB=function(e,t,n,r){return lB(e,t)&&Qz(e[t])?$(r.base?gB(r.base):{},e[t],r.transform):n};function XB(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:KB(),t=e=>XB(e);if(t.version=`3.4.12`,t.removed=[],!e||!e.document||e.document.nodeType!==GB.document||!e.Element)return t.isSupported=!1,t;let n=e.document,r=n,i=r.currentScript;e.DocumentFragment;let a=e.HTMLTemplateElement,o=e.Node,s=e.Element,c=e.NodeFilter,l=e.NamedNodeMap;l===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;let u=e.DOMParser,d=e.trustedTypes,f=s.prototype,p=vB(f,`cloneNode`),m=vB(f,`remove`),h=vB(f,`nextSibling`),g=vB(f,`childNodes`),_=vB(f,`parentNode`),v=vB(f,`shadowRoot`),y=vB(f,`attributes`),b=o&&o.prototype?vB(o.prototype,`nodeType`):null,x=o&&o.prototype?vB(o.prototype,`nodeName`):null;if(typeof a==`function`){let e=n.createElement(`template`);e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let S,C=``,w,T=0,E=function(){if(T>0)throw fB(`A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.`)},D=function(e){E(),T++;try{return S.createHTML(e)}finally{T--}},O=function(e){E(),T++;try{return S.createScriptURL(e)}finally{T--}},k=function(){return w=qB(d,i),w},A=n,j=A.implementation,M=A.createNodeIterator,ee=A.createDocumentFragment,te=A.getElementsByTagName,N=r.importNode,P=JB();t.isSupported=typeof Iz==`function`&&typeof _==`function`&&j&&j.createHTMLDocument!==void 0;let ne=jB,F=MB,re=NB,ie=PB,ae=FB,I=LB,oe=RB,se=BB,ce=IB,L=null,le=$({},[...bB,...xB,...SB,...wB,...EB]),ue=null,de=$({},[...DB,...OB,...kB,...AB]),R=Object.seal(Uz(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),z=null,fe=null,pe=Object.seal(Uz(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),me=!0,he=!0,ge=!1,B=!0,_e=!1,ve=!0,ye=!1,be=!1,xe=null,Se=null,Ce=!1,we=!1,Te=!1,Ee=!1,De=!0,Oe=!1,ke=`user-content-`,Ae=!0,je=!1,Me={},Ne=null,Pe=$({},`annotation-xml.audio.colgroup.desc.foreignobject.head.iframe.math.mi.mn.mo.ms.mtext.noembed.noframes.noscript.plaintext.script.selectedcontent.style.svg.template.thead.title.video.xmp`.split(`.`)),Fe=null,Ie=$({},[`audio`,`video`,`img`,`source`,`image`,`track`]),Le=null,Re=$({},[`alt`,`class`,`for`,`id`,`label`,`name`,`pattern`,`placeholder`,`role`,`summary`,`title`,`value`,`style`,`xmlns`]),ze=`http://www.w3.org/1998/Math/MathML`,Be=`http://www.w3.org/2000/svg`,Ve=`http://www.w3.org/1999/xhtml`,He=Ve,Ue=!1,We=null,Ge=$({},[ze,Be,Ve],eB),Ke=Vz([`mi`,`mo`,`mn`,`ms`,`mtext`]),qe=$({},Ke),Je=Vz([`annotation-xml`]),Ye=$({},Je),Xe=$({},[`title`,`style`,`font`,`a`,`script`]),Ze=null,Qe=[`application/xhtml+xml`,`text/html`],$e=null,et=null,tt=n.createElement(`form`),nt=function(e){return e instanceof RegExp||e instanceof Function},rt=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(et&&et===e)return;(!e||typeof e!=`object`)&&(e={}),e=gB(e),Ze=Qe.indexOf(e.PARSER_MEDIA_TYPE)===-1?`text/html`:e.PARSER_MEDIA_TYPE,$e=Ze===`application/xhtml+xml`?eB:$z,L=YB(e,`ALLOWED_TAGS`,le,{transform:$e}),ue=YB(e,`ALLOWED_ATTR`,de,{transform:$e}),We=YB(e,`ALLOWED_NAMESPACES`,Ge,{transform:eB}),Le=YB(e,`ADD_URI_SAFE_ATTR`,Re,{transform:$e,base:Re}),Fe=YB(e,`ADD_DATA_URI_TAGS`,Ie,{transform:$e,base:Ie}),Ne=YB(e,`FORBID_CONTENTS`,Pe,{transform:$e}),z=YB(e,`FORBID_TAGS`,gB({}),{transform:$e}),fe=YB(e,`FORBID_ATTR`,gB({}),{transform:$e}),Me=lB(e,`USE_PROFILES`)?e.USE_PROFILES&&typeof e.USE_PROFILES==`object`?gB(e.USE_PROFILES):e.USE_PROFILES:!1,me=e.ALLOW_ARIA_ATTR!==!1,he=e.ALLOW_DATA_ATTR!==!1,ge=e.ALLOW_UNKNOWN_PROTOCOLS||!1,B=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,_e=e.SAFE_FOR_TEMPLATES||!1,ve=e.SAFE_FOR_XML!==!1,ye=e.WHOLE_DOCUMENT||!1,we=e.RETURN_DOM||!1,Te=e.RETURN_DOM_FRAGMENT||!1,Ee=e.RETURN_TRUSTED_TYPE||!1,Ce=e.FORCE_BODY||!1,De=e.SANITIZE_DOM!==!1,Oe=e.SANITIZE_NAMED_PROPS||!1,Ae=e.KEEP_CONTENT!==!1,je=e.IN_PLACE||!1,ce=yB(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:IB,He=typeof e.NAMESPACE==`string`?e.NAMESPACE:Ve,qe=lB(e,`MATHML_TEXT_INTEGRATION_POINTS`)&&e.MATHML_TEXT_INTEGRATION_POINTS&&typeof e.MATHML_TEXT_INTEGRATION_POINTS==`object`?gB(e.MATHML_TEXT_INTEGRATION_POINTS):$({},Ke),Ye=lB(e,`HTML_INTEGRATION_POINTS`)&&e.HTML_INTEGRATION_POINTS&&typeof e.HTML_INTEGRATION_POINTS==`object`?gB(e.HTML_INTEGRATION_POINTS):$({},Je);let t=lB(e,`CUSTOM_ELEMENT_HANDLING`)&&e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING==`object`?gB(e.CUSTOM_ELEMENT_HANDLING):Uz(null);if(R=Uz(null),lB(t,`tagNameCheck`)&&nt(t.tagNameCheck)&&(R.tagNameCheck=t.tagNameCheck),lB(t,`attributeNameCheck`)&&nt(t.attributeNameCheck)&&(R.attributeNameCheck=t.attributeNameCheck),lB(t,`allowCustomizedBuiltInElements`)&&typeof t.allowCustomizedBuiltInElements==`boolean`&&(R.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),Hz(R),_e&&(he=!1),Te&&(we=!0),Me&&(L=$({},EB),ue=Uz(null),Me.html===!0&&($(L,bB),$(ue,DB)),Me.svg===!0&&($(L,xB),$(ue,OB),$(ue,AB)),Me.svgFilters===!0&&($(L,SB),$(ue,OB),$(ue,AB)),Me.mathMl===!0&&($(L,wB),$(ue,kB),$(ue,AB))),pe.tagCheck=null,pe.attributeCheck=null,lB(e,`ADD_TAGS`)&&(typeof e.ADD_TAGS==`function`?pe.tagCheck=e.ADD_TAGS:Qz(e.ADD_TAGS)&&(L===le&&(L=gB(L)),$(L,e.ADD_TAGS,$e))),lB(e,`ADD_ATTR`)&&(typeof e.ADD_ATTR==`function`?pe.attributeCheck=e.ADD_ATTR:Qz(e.ADD_ATTR)&&(ue===de&&(ue=gB(ue)),$(ue,e.ADD_ATTR,$e))),lB(e,`ADD_URI_SAFE_ATTR`)&&Qz(e.ADD_URI_SAFE_ATTR)&&$(Le,e.ADD_URI_SAFE_ATTR,$e),lB(e,`FORBID_CONTENTS`)&&Qz(e.FORBID_CONTENTS)&&(Ne===Pe&&(Ne=gB(Ne)),$(Ne,e.FORBID_CONTENTS,$e)),lB(e,`ADD_FORBID_CONTENTS`)&&Qz(e.ADD_FORBID_CONTENTS)&&(Ne===Pe&&(Ne=gB(Ne)),$(Ne,e.ADD_FORBID_CONTENTS,$e)),Ae&&(L[`#text`]=!0),ye&&$(L,[`html`,`head`,`body`]),L.table&&($(L,[`tbody`]),delete z.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!=`function`)throw fB(`TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.`);if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!=`function`)throw fB(`TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.`);let t=S;S=e.TRUSTED_TYPES_POLICY;try{C=D(``)}catch(e){throw S=t,e}}else e.TRUSTED_TYPES_POLICY===null?(S=void 0,C=``):(S===void 0&&(S=k()),S&&typeof C==`string`&&(C=D(``)));Vz&&Vz(e),et=e},it=$({},[...xB,...SB,...CB]),at=$({},[...wB,...TB]),ot=function(e,t,n){return t.namespaceURI===Ve?e===`svg`:t.namespaceURI===ze?e===`svg`&&(n===`annotation-xml`||qe[n]):!!it[e]},st=function(e,t,n){return t.namespaceURI===Ve?e===`math`:t.namespaceURI===Be?e===`math`&&Ye[n]:!!at[e]},ct=function(e,t,n){return t.namespaceURI===Be&&!Ye[n]||t.namespaceURI===ze&&!qe[n]?!1:!at[e]&&(Xe[e]||!it[e])},lt=function(e){let t=_(e);(!t||!t.tagName)&&(t={namespaceURI:He,tagName:`template`});let n=$z(e.tagName),r=$z(t.tagName);return We[e.namespaceURI]?e.namespaceURI===Be?ot(n,t,r):e.namespaceURI===ze?st(n,t,r):e.namespaceURI===Ve?ct(n,t,r):!!(Ze===`application/xhtml+xml`&&We[e.namespaceURI]):!1},ut=function(e){Xz(t.removed,{element:e});try{_(e).removeChild(e)}catch{if(m(e),!_(e))throw fB(`a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place`)}},dt=function(e){mt(e);let t=g(e);if(t){let e=[];qz(t,t=>{Xz(e,t)}),qz(e,e=>{try{m(e)}catch{}})}let n=y(e);if(n)for(let t=n.length-1;t>=0;--t){let r=n[t],i=r&&r.name;if(typeof i==`string`)try{e.removeAttribute(i)}catch{}}},ft=function(e,n){try{Xz(t.removed,{attribute:n.getAttributeNode(e),from:n})}catch{Xz(t.removed,{attribute:null,from:n})}if(n.removeAttribute(e),e===`is`)if(we||Te)try{ut(n)}catch{}else try{n.setAttribute(e,``)}catch{}},pt=function(e){let t=y(e);if(t)for(let n=t.length-1;n>=0;--n){let r=t[n],i=r&&r.name;if(!(typeof i!=`string`||ue[$e(i)]))try{e.removeAttribute(i)}catch{}}},mt=function(e){let t=[e];for(;t.length>0;){let e=t.pop(),n=b?b(e):e.nodeType;n===GB.element&&pt(e);let r=g(e);if(r)for(let e=r.length-1;e>=0;--e)t.push(r[e])}},ht=function(e){if(!ve)return;let t=[e];for(;t.length>0;){let e=t.pop(),n=b?b(e):e.nodeType;if(n===GB.processingInstruction||n===GB.comment&&dB(HB,e.data)){try{m(e)}catch{}continue}if(n===GB.element){let t=e,n=$e(x?x(e):e.nodeName);try{t.hasAttribute&&t.hasAttribute(`patchsrc`)&&t.removeAttribute(`patchsrc`),t.hasAttribute&&t.hasAttribute(`for`)&&n!==`label`&&n!==`output`&&t.removeAttribute(`for`)}catch{}}let r=g(e);if(r)for(let e=r.length-1;e>=0;--e)t.push(r[e])}},gt=function(e){let t=null,r=null;if(Ce)e=`<remove></remove>`+e;else{let t=tB(e,/^[\r\n\t ]+/);r=t&&t[0]}Ze===`application/xhtml+xml`&&He===Ve&&(e=`<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>`+e+`</body></html>`);let i=S?D(e):e;if(He===Ve)try{t=new u().parseFromString(i,Ze)}catch{}if(!t||!t.documentElement){t=j.createDocument(He,`template`,null);try{t.documentElement.innerHTML=Ue?C:i}catch{}}let a=t.body||t.documentElement;return e&&r&&a.insertBefore(n.createTextNode(r),a.childNodes[0]||null),He===Ve?te.call(t,ye?`html`:`body`)[0]:ye?t.documentElement:a},_t=function(e){return M.call(e.ownerDocument||e,e,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},vt=function(e){return e=nB(e,ne,` `),e=nB(e,F,` `),e=nB(e,re,` `),e},yt=function(e){var t;e.normalize();let n=M.call(e.ownerDocument||e,e,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null),r=n.nextNode();for(;r;)r.data=vt(r.data),r=n.nextNode();let i=(t=e.querySelectorAll)?.call(e,`template`);i&&qz(i,e=>{xt(e.content)&&yt(e.content)})},bt=function(e){let t=x?x(e):null;return typeof t!=`string`||$e(t)!==`form`?!1:typeof e.nodeName!=`string`||typeof e.textContent!=`string`||typeof e.removeChild!=`function`||e.attributes!==y(e)||typeof e.removeAttribute!=`function`||typeof e.setAttribute!=`function`||typeof e.namespaceURI!=`string`||typeof e.insertBefore!=`function`||typeof e.hasChildNodes!=`function`||e.nodeType!==b(e)||e.childNodes!==g(e)},xt=function(e){if(!b||typeof e!=`object`||!e)return!1;try{return b(e)===GB.documentFragment}catch{return!1}},St=function(e){if(!b||typeof e!=`object`||!e)return!1;try{return typeof b(e)==`number`}catch{return!1}};function Ct(e,n,r){e.length!==0&&qz(e,e=>{e.call(t,n,r,et)})}let wt=function(e,t){return!!(ve&&e.hasChildNodes()&&!St(e.firstElementChild)&&dB(VB,e.textContent)&&dB(VB,e.innerHTML)||ve&&e.namespaceURI===Ve&&t===`style`&&St(e.firstElementChild)||e.nodeType===GB.processingInstruction||ve&&e.nodeType===GB.comment&&dB(HB,e.data))},Tt=function(e,t){if(!z[t]&&H(t)&&(R.tagNameCheck instanceof RegExp&&dB(R.tagNameCheck,t)||R.tagNameCheck instanceof Function&&R.tagNameCheck(t)))return!1;if(Ae&&!Ne[t]){let t=_(e),n=g(e);if(n&&t){let r=n.length;for(let i=r-1;i>=0;--i){let r=je?n[i]:p(n[i],!0);t.insertBefore(r,h(e))}}}return ut(e),!0},V=function(e,n){if(Ct(P.beforeSanitizeElements,e,null),e!==n&&_(e)===null)return!0;if(bt(e))return ut(e),!0;let r=$e(x?x(e):e.nodeName);if(Ct(P.uponSanitizeElement,e,{tagName:r,allowedTags:L}),e!==n&&_(e)===null)return!0;if(wt(e,r))return ut(e),!0;if(z[r]||!(pe.tagCheck instanceof Function&&pe.tagCheck(r))&&!L[r]){let t=Tt(e,r);return t===!1&&Ct(P.afterSanitizeElements,e,null),t}let i=b?b(e):e.nodeType;if(i===GB.element&&!lt(e)||(r===`noscript`||r===`noembed`||r===`noframes`)&&dB(UB,e.innerHTML))return ut(e),!0;if(_e&&e.nodeType===GB.text){let n=vt(e.textContent);e.textContent!==n&&(Xz(t.removed,{element:e.cloneNode()}),e.textContent=n)}return Ct(P.afterSanitizeElements,e,null),!1},Et=function(e,t,r){if(fe[t]||ve&&t===`patchsrc`||ve&&t===`for`&&e!==`label`&&e!==`output`||De&&(t===`id`||t===`name`)&&(r in n||r in tt))return!1;let i=ue[t]||pe.attributeCheck instanceof Function&&pe.attributeCheck(t,e);if(!(he&&dB(ie,t))&&!(me&&dB(ae,t))){if(i){if(!Le[t]&&!dB(ce,nB(r,oe,``))&&!((t===`src`||t===`xlink:href`||t===`href`)&&e!==`script`&&rB(r,`data:`)===0&&Fe[e])&&!(ge&&!dB(I,nB(r,oe,``)))&&r)return!1}else if(!(H(e)&&(R.tagNameCheck instanceof RegExp&&dB(R.tagNameCheck,e)||R.tagNameCheck instanceof Function&&R.tagNameCheck(e))&&(R.attributeNameCheck instanceof RegExp&&dB(R.attributeNameCheck,t)||R.attributeNameCheck instanceof Function&&R.attributeNameCheck(t,e))||t===`is`&&R.allowCustomizedBuiltInElements&&(R.tagNameCheck instanceof RegExp&&dB(R.tagNameCheck,r)||R.tagNameCheck instanceof Function&&R.tagNameCheck(r))))return!1}return!0},Dt=$({},[`annotation-xml`,`color-profile`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`missing-glyph`]),H=function(e){return!Dt[$z(e)]&&dB(se,e)},Ot=function(e,t,n,r){if(S&&typeof d==`object`&&typeof d.getAttributeType==`function`&&!n)switch(d.getAttributeType(e,t)){case`TrustedHTML`:return D(r);case`TrustedScriptURL`:return O(r)}return r},kt=function(e,n,r,i){try{r?e.setAttributeNS(r,n,i):e.setAttribute(n,i),bt(e)?ut(e):Yz(t.removed)}catch{ft(n,e)}},At=function(e){Ct(P.beforeSanitizeAttributes,e,null);let t=e.attributes;if(!t||bt(e))return;let n={attrName:``,attrValue:``,keepAttr:!0,allowedAttributes:ue,forceKeepAttr:void 0},r=t.length,i=$e(e.nodeName);for(;r--;){let a=t[r],o=a.name,s=a.namespaceURI,c=a.value,l=$e(o),u=c,d=o===`value`?u:iB(u);if(n.attrName=l,n.attrValue=d,n.keepAttr=!0,n.forceKeepAttr=void 0,Ct(P.uponSanitizeAttribute,e,n),d=n.attrValue,Oe&&(l===`id`||l===`name`)&&rB(d,ke)!==0&&(ft(o,e),d=ke+d),ve&&dB(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,d)){ft(o,e);continue}if(l===`attributename`&&tB(d,`href`)){ft(o,e);continue}if(!n.forceKeepAttr){if(!n.keepAttr){ft(o,e);continue}if(!B&&dB(WB,d)){ft(o,e);continue}if(_e&&(d=vt(d)),!Et(i,l,d)){ft(o,e);continue}d=Ot(i,l,s,d),d!==u&&kt(e,o,s,d)}}Ct(P.afterSanitizeAttributes,e,null)},jt=function(e){let t=null,n=_t(e);for(Ct(P.beforeSanitizeShadowDOM,e,null);t=n.nextNode();){Ct(P.uponSanitizeShadowNode,t,null),V(t,e),At(t),xt(t.content)&&jt(t.content);let n=b?b(t):t.nodeType;if(n===GB.element){let e=v(t);xt(e)&&(Mt(e),jt(e))}}Ct(P.afterSanitizeShadowDOM,e,null)},Mt=function(e){let t=[{node:e,shadow:null}];for(;t.length>0;){let e=t.pop();if(e.shadow){jt(e.shadow);continue}let n=e.node,r=b?b(n):n.nodeType,i=r===GB.element,a=g(n);if(a)for(let e=a.length-1;e>=0;--e)t.push({node:a[e],shadow:null});if(i){let e=x?x(n):null;if(typeof e==`string`&&$e(e)===`template`){let e=n.content;xt(e)&&t.push({node:e,shadow:null})}}if(i){let e=v(n);xt(e)&&t.push({node:null,shadow:e},{node:e,shadow:null})}}};return t.sanitize=function(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=null,a=null,o=null,s=null;if(Ue=!e,Ue&&(e=`<!-->`),typeof e!=`string`&&!St(e)&&(e=_B(e),typeof e!=`string`))throw fB(`dirty is not a string, aborting`);if(!t.isSupported)return e;be?(L=xe,ue=Se):rt(n),(P.uponSanitizeElement.length>0||P.uponSanitizeAttribute.length>0)&&(L=gB(L)),P.uponSanitizeAttribute.length>0&&(ue=gB(ue)),t.removed=[];let c=je&&typeof e!=`string`&&St(e);if(c){ht(e);let t=x?x(e):e.nodeName;if(typeof t==`string`){let n=$e(t);if(!L[n]||z[n])throw dt(e),fB(`root node is forbidden and cannot be sanitized in-place`)}if(bt(e))throw dt(e),fB(`root node is clobbered and cannot be sanitized in-place`);try{Mt(e)}catch(t){throw dt(e),t}}else if(St(e))i=gt(`<!---->`),a=i.ownerDocument.importNode(e,!0),a.nodeType===GB.element&&a.nodeName===`BODY`||a.nodeName===`HTML`?i=a:i.appendChild(a),Mt(a);else{if(!we&&!_e&&!ye&&e.indexOf(`<`)===-1)return S&&Ee?D(e):e;if(i=gt(e),!i)return we?null:Ee?C:``}i&&Ce&&ut(i.firstChild);let l=c?e:i,u=_t(l);try{for(;o=u.nextNode();)V(o,l),At(o),xt(o.content)&&jt(o.content)}catch(n){throw c&&(dt(e),qz(t.removed,e=>{e.element&&mt(e.element)})),n}if(c)return qz(t.removed,e=>{e.element&&mt(e.element)}),_e&&yt(e),e;if(we){if(_e&&yt(i),Te)for(s=ee.call(i.ownerDocument);i.firstChild;)s.appendChild(i.firstChild);else s=i;return(ue.shadowroot||ue.shadowrootmode)&&(s=N.call(r,s,!0)),s}let d=ye?i.outerHTML:i.innerHTML;return ye&&L[`!doctype`]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&dB(zB,i.ownerDocument.doctype.name)&&(d=`<!DOCTYPE `+i.ownerDocument.doctype.name+`>
|
|
1152
|
+
`+d),_e&&(d=vt(d)),S&&Ee?D(d):d},t.setConfig=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};rt(e),be=!0,xe=L,Se=ue},t.clearConfig=function(){et=null,be=!1,xe=null,Se=null,S=w,C=``},t.isValidAttribute=function(e,t,n){et||rt({});let r=$e(e),i=$e(t);return Et(r,i,n)},t.addHook=function(e,t){typeof t==`function`&&lB(P,e)&&Xz(P[e],t)},t.removeHook=function(e,t){if(lB(P,e)){if(t!==void 0){let n=Jz(P[e],t);return n===-1?void 0:Zz(P[e],n,1)[0]}return Yz(P[e])}},t.removeHooks=function(e){lB(P,e)&&(P[e]=[])},t.removeAllHooks=function(){P=JB()},t}var ZB=XB(),QB=M(((exports,t)=>{var n=`Expected a function`,r=NaN,i=`[object Symbol]`,a=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,c=/^0o[0-7]+$/i,l=parseInt,u=typeof global==`object`&&global&&global.Object===Object&&global,d=typeof self==`object`&&self&&self.Object===Object&&self,f=u||d||Function(`return this`)(),p=Object.prototype,m=p.toString,h=Math.max,g=Math.min,_=function(){return f.Date.now()};function v(e,t,r){var i,a,o,s,c,l,u=0,d=!1,f=!1,p=!0;if(typeof e!=`function`)throw TypeError(n);t=S(t)||0,y(r)&&(d=!!r.leading,f=`maxWait`in r,o=f?h(S(r.maxWait)||0,t):o,p=`trailing`in r?!!r.trailing:p);function m(t){var n=i,r=a;return i=a=void 0,u=t,s=e.apply(r,n),s}function v(e){return u=e,c=setTimeout(C,t),d?m(e):s}function b(e){var n=e-l,r=e-u,i=t-n;return f?g(i,o-r):i}function x(e){var n=e-l,r=e-u;return l===void 0||n>=t||n<0||f&&r>=o}function C(){var e=_();if(x(e))return w(e);c=setTimeout(C,b(e))}function w(e){return c=void 0,p&&i?m(e):(i=a=void 0,s)}function T(){c!==void 0&&clearTimeout(c),u=0,i=l=a=c=void 0}function E(){return c===void 0?s:w(_())}function D(){var e=_(),n=x(e);if(i=arguments,a=this,l=e,n){if(c===void 0)return v(l);if(f)return c=setTimeout(C,t),m(l)}return c===void 0&&(c=setTimeout(C,t)),s}return D.cancel=T,D.flush=E,D}function y(e){var t=typeof e;return!!e&&(t==`object`||t==`function`)}function b(e){return!!e&&typeof e==`object`}function x(e){return typeof e==`symbol`||b(e)&&m.call(e)==i}function S(e){if(typeof e==`number`)return e;if(x(e))return r;if(y(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=y(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;e=e.replace(a,``);var n=s.test(e);return n||c.test(e)?l(e.slice(2),n?2:8):o.test(e)?r:+e}t.exports=v})),$B=M(((exports,t)=>{t.exports=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t==`object`&&typeof n==`object`){if(t.constructor!==n.constructor)return!1;var r,i,a;if(Array.isArray(t)){if(r=t.length,r!=n.length)return!1;for(i=r;i--!==0;)if(!e(t[i],n[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(a=Object.keys(t),r=a.length,r!==Object.keys(n).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(n,a[i]))return!1;for(i=r;i--!==0;){var o=a[i];if(!e(t[o],n[o]))return!1}return!0}return t!==t&&n!==n}})),eV=M(((exports,n)=>{n.exports={...e}})),tV=M((exports=>{var t=eV();function n(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var r=typeof Object.is==`function`?Object.is:n,i=t.useState,a=t.useEffect,o=t.useLayoutEffect,s=t.useDebugValue;function c(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),c=r[0].inst,u=r[1];return o(function(){c.value=n,c.getSnapshot=t,l(c)&&u({inst:c})},[e,n,t]),a(function(){return l(c)&&u({inst:c}),e(function(){l(c)&&u({inst:c})})},[e]),s(n),n}function l(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(e,n)}catch{return!0}}function u(e,t){return t()}var d=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?u:c;exports.useSyncExternalStore=t.useSyncExternalStore===void 0?d:t.useSyncExternalStore})),nV=M(((exports,t)=>{t.exports=tV()})),rV=M(((exports,t)=>{(function(){var e,n,r,i,a,o;typeof performance<`u`&&performance!==null&&performance.now?t.exports=function(){return performance.now()}:typeof process<`u`&&process!==null&&process.hrtime?(t.exports=function(){return(e()-a)/1e6},n=process.hrtime,e=function(){var e;return e=n(),e[0]*1e9+e[1]},i=e(),o=process.uptime()*1e9,a=i-o):Date.now?(t.exports=function(){return Date.now()-r},r=Date.now()):(t.exports=function(){return new Date().getTime()-r},r=new Date().getTime())}).call(exports)})),iV=M(((exports,t)=>{for(var n=rV(),r=typeof window>`u`?global:window,i=[`moz`,`webkit`],a=`AnimationFrame`,o=r[`request`+a],s=r[`cancel`+a]||r[`cancelRequest`+a],c=0;!o&&c<i.length;c++)o=r[i[c]+`Request`+a],s=r[i[c]+`Cancel`+a]||r[i[c]+`CancelRequest`+a];if(!o||!s){var l=0,u=0,d=[],f=1e3/60;o=function(e){if(d.length===0){var t=n(),r=Math.max(0,f-(t-l));l=r+t,setTimeout(function(){var e=d.slice(0);d.length=0;for(var t=0;t<e.length;t++)if(!e[t].cancelled)try{e[t].callback(l)}catch(e){setTimeout(function(){throw e},0)}},Math.round(r))}return d.push({handle:++u,callback:e,cancelled:!1}),u},s=function(e){for(var t=0;t<d.length;t++)d[t].handle===e&&(d[t].cancelled=!0)}}t.exports=function(e){return o.call(r,e)},t.exports.cancel=function(){s.apply(r,arguments)},t.exports.polyfill=function(e){e||=r,e.requestAnimationFrame=o,e.cancelAnimationFrame=s}}));QB(),$B(),nV(),iV();var aV=()=>{};function oV(e,t=0,n=!0,r=!1){let i=_(void 0);f(()=>{i.current=e}),f(()=>{if(n){let e=function(){i.current?.()};r&&e();let n=window.setInterval(e,t);return()=>{window.clearInterval(n)}}return aV},[n,t,r])}var sV=!1,cV=()=>{};if(sV){let e=e=>{let t=`Warning: ${e}`;typeof console<`u`&&console.error(t);try{throw Error(t)}catch{}};cV=function(t,n){t||e(n)}}const lV=(e,t,n,r,i)=>{switch(e){case`bottom`:return{left:`${t}px`,top:`${-n}px`};case`left`:return{left:`${i-n}px`,top:`${r/2-n}px`};case`right`:return{left:`${-n}px`,top:`${r/2-n}px`};default:return{left:`${t}px`,top:`${r-10+n}px`}}},uV=({text:e})=>b(`div`,{dangerouslySetInnerHTML:{__html:ZB.sanitize(e)}}),dV=()=>window.navigator.userAgent===`Playwright`,fV=()=>{let e=_(null),t=_(null),[n,r]=v(null),[i,a]=v(!1),[o,s]=v(!1);h(()=>{if(!n||!e.current||!t.current)return;let r=!1;return aN(n.target,e.current,{placement:n.placement,middleware:[$u(10),rN(),nN({padding:8}),iN({element:t.current})]}).then(({x:n,y:i,middlewareData:o,placement:s})=>{if(!(r||!e.current||!t.current)){if(Object.assign(e.current.style,{left:`${n}px`,top:`${i}px`}),o.arrow){let{x:n,y:r}=o.arrow,i=t.current.offsetHeight/2,a=e.current.offsetHeight,c=e.current.offsetWidth,l=lV(s,n??r,i,a,c);Object.assign(t.current.style,l)}a(!0)}}),()=>{r=!0}},[n]),oV(()=>{if(o||!n)return;let e=n.target.getBoundingClientRect();(n.originalPosition.y!==e.y||n.originalPosition.x!==e.x)&&a(!1)},300,i);let c=_(null);return f(()=>{let t=t=>{c.current&&clearTimeout(c.current);let n=t.target instanceof Element?t.target.closest(`[data-qtip-text]`):null;if(!n){let n=t.target instanceof Node&&e.current?.contains(t.target);n||a(!1);return}let i=n.dataset.qtipText;if(!i)return;let o=parseInt(n.dataset.qtipDelay||`500`,10),s=n.dataset.qtipPlacement||`top`,l=n.dataset.qtipIsHtml===`true`,u=n.dataset.qtipTestid;c.current=setTimeout(()=>{r({target:n,text:i,html:l,testId:u,placement:s,originalPosition:n.getBoundingClientRect()})},o)};return!dV()&&document.body.addEventListener(`mousemove`,t),()=>{!dV()&&document.removeEventListener(`mousemove`,t)}},[]),b(y,{children:x(`div`,{onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1),"data-testid":n?.testId,ref:e,...{0:{className:`x10l6tqk x1q2oy4v xowlazn x16eypsj x186xesn x7gbtqy xboafo0 xl2ypbo xeda06r xlshs6z x47corl`},1:{className:`x10l6tqk x1q2oy4v xowlazn x16eypsj x186xesn x7gbtqy xboafo0 xl2ypbo xeda06r xnpuxes xqcmdr3 x4afe7t x4hg4is`}}[!!i<<0],children:[n?.html?b(uV,{text:n.text}):n?.text,b(`div`,{className:`x10l6tqk x1qa65zt x1e7hgle x1158fpu x186xesn`,ref:t})]})})},pV={trigger:{ksu8eU:`xng3xce`,kWkggS:`xjbqb8w`,k3XXqK:`x1t137rt`,kmVPX3:`x1717udv`,kVVagm:`xln7xf2`,kMwMTN:`x1heor9g`,$$css:!0},content:{k1xSpc:`x78zum5`,kXwgrk:`xdt5ytf`,kGNEyG:`x6s0dn4`,kWkggS:`xjbqb8w`,k3XXqK:`x1t137rt`,$$css:!0},disabled:{kkrTdU:`x1h6gzvc`,kSiTet:`xbyyjgo`,$$css:!0}},mV=({"aria-busy":e,...t})=>{let{triggerIcon:n,id:r,extraClassNames:i=``,xstyle:a,triggerXstyle:o,disabled:s=!1,...c}=t,l=el(c),u=V(pV.content,s&&pV.disabled,a);return b(T_,{...t,children:b(f_,{id:r,...V(pV.trigger,o),"aria-busy":e,disabled:s,children:b(`div`,{...l,...u,className:H(u.className,i),children:n})})})};var hV=mV;const gV=[`new`,`preview`,`success`,`neutral`,`error`],_V=[`button`,`reset`,`submit`,`link`],vV=[`xs`,`sm`,`lg`],yV=[`outline`,`theme`,`theme-light`,`warning`,`danger`,`no-border`,`navigation`,`navigation-selected`],bV=[`left`,`right`],xV=[`theme`,`white`,`dark-gray`,`darkish-gray`,`gray`,`color`,`info`,`text`,`warning`,`inherit`,`danger`,`theme-light`,`success`],SV=[...xV,`default`],CV=[`outline`,`theme`,`theme-light`,`warning`,`danger`,`no-border`],wV={x1hdm7ur:`x12mylc3 x1hdm7ur`,$$css:!0},TV={x1hdm7ur:`xfavs6a x1hdm7ur`,$$css:!0},EV={x1hdm7ur:`xbvu8ca x1hdm7ur`,$$css:!0},DV={x1hdm7ur:`x10c4d6j x1hdm7ur`,$$css:!0},OV={x1hdm7ur:`x1e1cp5p x1hdm7ur`,$$css:!0},kV={x1hdm7ur:`x1vj4my4 x1hdm7ur`,$$css:!0},AV={x1hdm7ur:`xkfwkqu x1hdm7ur`,$$css:!0},jV={x1hdm7ur:`x1i4do0 x1hdm7ur`,$$css:!0},MV={x1hdm7ur:`x1m3ok6h x1hdm7ur`,$$css:!0},NV={x1hdm7ur:`xc0q6dd x1hdm7ur`,$$css:!0},PV={topic:{light:wV,dark:TV},analysis:{light:EV,dark:DV},datalab:{light:OV,dark:kV},vantage:{light:AV,dark:jV},insights:{light:MV,dark:NV}};export{At as Accordion,cl as Alert,ml as Badge,Ol as Button,Ml as ButtonGroup,E_ as ButtonWithDropdown,ov as ButtonWithPopover,cO as Carousel,dO as Checkbox,pO as Collapse,bO as ColorPickerControl,_O as ColorSwatch,CO as EditorPanel,EO as ExternalLink,HI as I18N_NAMESPACE,al as Icon,PO as InputGroup,yl as LoadingIndicator,Nk as Modal,QI as Paginator,tL as Pill,BL as ProgressBar,qL as ProgressCircle,fV as QTip,oR as SeeqActionDropdown,lR as SegmentedControl,VI as Select,iF as SelectComponents,$R as Slider,xz as Tabs,Cz as TextArea,MO as TextField,Ez as ToolbarButton,kz as Tooltip,hV as TriggerWithDropdown,gV as badgeVariants,vV as buttonSizes,_V as buttonTypes,yV as buttonVariants,bV as iconPositions,xV as iconTypes,SV as svgIconTypes,PV as themes,CV as toolbarButtonVariants};
|
|
1153
1153
|
//# sourceMappingURL=index.esm.js.map
|