1/*! For license information please see 173.2212760d72daebc92e1e.js.LICENSE.txt */ 2"use strict";(globalThis.webpackChunkarcadis_optimizely_web_design=globalThis.webpackChunkarcadis_optimizely_web_design||[]).push([[173],{8064(e,t,r){r.d(t,{A:()=>n});const n=(0,r(2722).A)("arrow-up-right",[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]])},5197(e,t,r){r.d(t,{hn:()=>d,lB:()=>h});const n=()=>{},o=()=>{},s="@googlemaps/js-api-loader",i={createScriptURL:e=>e};let a;function c(){if(a)return a;const e=globalThis.trustedTypes;if(!e)return a=i,a;try{a=e.createPolicy(s,{createScriptURL:e=>e})}catch(e){n(`Failed to create Trusted Types policy "${t=s}": ${(r=e)instanceof Error?r.message:String(r)}.\n\nIf your Content Security Policy uses "require-trusted-types-for 'script'", allow this policy with "trusted-types ${t} google-maps-api-loader google-maps-api#html lit-html". The "google-maps-api-loader", "lit-html", and "google-maps-api#html" policies are required for full Maps JavaScript API execution. Falling back to a string script URL.`),a=i}var t,r;return a}const l=e=>{var t,r,n,o="The Google Maps JavaScript API",s="google",i="importLibrary",a="__ib__",l=document,u=window,d=u[s]||(u[s]={}),h=d.maps||(d.maps={}),f=new Set,p=new URLSearchParams,m=()=>t||(t=new Promise(async(i,u)=>{for(n in await(r=l.createElement("script")),p.set("libraries",[...f]+""),e)p.set(n.replace(/[A-Z]/g,e=>"_"+e[0].toLowerCase()),e[n]);p.set("callback",s+".maps."+a),function(e,t){e.src=c().createScriptURL(t)}(r,"https://maps.googleapis.com/maps/api/js?"+p),h[a]=i,r.onerror=()=>t=u(Error(o+" could not load.")),r.nonce=l.querySelector("script[nonce]")?.nonce||"",l.head.append(r)}));h[i]?console.warn(o+" only loads once. Ignoring:",e):h[i]=(e,...t)=>f.add(e)&&m().then(()=>h[i](e,...t))};let u=!1;function d(e){u?n((e=>`The setOptions() function should only be called once. The options passed to the additional call (${JSON.stringify(e)}) will be ignored.`)(e)):(e.apiKey&&(n("The 'apiKey' parameter was used in setOptions(), but 'key' is the correct parameter name. Please update your configuration."),e.key||(e.key=e.apiKey)),function(e){const t=Boolean(window.google?.maps?.importLibrary);t&&o((e=>`The google.maps.importLibrary() function is already defined, and @googlemaps/js-api-loader will use the existing function instead of overwriting it. The options passed to setOptions (${JSON.stringify(e)}) will be ignored.`)(e));t||l(e)}(e),u=!0)}async function h(e){if(u||n("No options were set before calling importLibrary. Make sure to configure the loader using setOptions()."),!window?.google?.maps?.importLibrary)throw new Error("google.maps.importLibrary is not installed.");return await google.maps.importLibrary(e)}},5693(e,t,r){r.d(t,{UC:()=>B,Y9:()=>H,bL:()=>G,l9:()=>V,q7:()=>K});var n=r(758),o=r(5540),s=r(5519),i=r(5313),a=r(7674),c=r(5822),l=r(8656),u=r(2541),d=r(2748),h=r(6290),f=r(6070),p="Accordion",m=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[g,v,y]=(0,s.N)(p),[b,w]=(0,o.A)(p,[y,u.z3]),S=(0,u.z3)(),C=n.forwardRef((e,t)=>{const{type:r,...n}=e,o=n,s=n;return(0,f.jsx)(g.Provider,{scope:e.__scopeAccordion,children:"multiple"===r?(0,f.jsx)(P,{...s,ref:t}):(0,f.jsx)(j,{...o,ref:t})})});C.displayName=p;var[x,R]=b(p),[O,E]=b(p,{collapsible:!1}),j=n.forwardRef((e,t)=>{const{value:r,defaultValue:o,onValueChange:s=()=>{},collapsible:i=!1,...a}=e,[l,u]=(0,c.i)({prop:r,defaultProp:o??"",onChange:s,caller:p});return(0,f.jsx)(x,{scope:e.__scopeAccordion,value:n.useMemo(()=>l?[l]:[],[l]),onItemOpen:u,onItemClose:n.useCallback(()=>i&&u(""),[i,u]),children:(0,f.jsx)(O,{scope:e.__scopeAccordion,collapsible:i,children:(0,f.jsx)(I,{...a,ref:t})})})}),P=n.forwardRef((e,t)=>{const{value:r,defaultValue:o,onValueChange:s=()=>{},...i}=e,[a,l]=(0,c.i)({prop:r,defaultProp:o??[],onChange:s,caller:p}),u=n.useCallback(e=>l((t=[])=>[...t,e]),[l]),d=n.useCallback(e=>l((t=[])=>t.filter(t=>t!==e)),[l]);return(0,f.jsx)(x,{scope:e.__scopeAccordion,value:a,onItemOpen:u,onItemClose:d,children:(0,f.jsx)(O,{scope:e.__scopeAccordion,collapsible:!0,children:(0,f.jsx)(I,{...i,ref:t})})})}),[A,k]=b(p),I=n.forwardRef((e,t)=>
2{const{__scopeAccordion:r,disabled:o,dir:s,orientation:c="vertical",...u}=e,d=n.useRef(null),p=(0,i.s)(d,t),y=v(r),b="ltr"===(0,h.jH)(s),w=(0,a.mK)(e.onKeyDown,e=>{if(!m.includes(e.key))return;const t=e.target,r=y().filter(e=>!e.ref.current?.disabled),n=r.findIndex(e=>e.ref.current===t),o=r.length;if(-1===n)return;e.preventDefault();let s=n;const i=o-1,a=()=>{s=n+1,s>i&&(s=0)},l=()=>{s=n-1,s<0&&(s=i)};switch(e.key){case"Home":s=0;break;case"End":s=i;break;case"ArrowRight":"horizontal"===c&&(b?a():l());break;case"ArrowDown":"vertical"===c&&a();break;case"ArrowLeft":"horizontal"===c&&(b?l():a());break;case"ArrowUp":"vertical"===c&&l()}const u=s%o;r[u].ref.current?.focus()});return(0,f.jsx)(A,{scope:r,disabled:o,direction:s,orientation:c,children:(0,f.jsx)(g.Slot,{scope:r,children:(0,f.jsx)(l.sG.div,{...u,"data-orientation":c,ref:p,onKeyDown:o?void 0:w})})})}),T="AccordionItem",[_,D]=b(T),q=n.forwardRef((e,t)=>{const{__scopeAccordion:r,value:n,...o}=e,s=k(T,r),i=R(T,r),a=S(r),c=(0,d.B)(),l=n&&i.value.includes(n)||!1,h=s.disabled||e.disabled;return(0,f.jsx)(_,{scope:r,open:l,disabled:h,triggerId:c,children:(0,f.jsx)(u.bL,{"data-orientation":s.orientation,"data-state":z(l),...a,...o,ref:t,disabled:h,open:l,onOpenChange:e=>{e?i.onItemOpen(n):i.onItemClose(n)}})})});q.displayName=T;var M="AccordionHeader",F=n.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,o=k(p,r),s=D(M,r);return(0,f.jsx)(l.sG.h3,{"data-orientation":o.orientation,"data-state":z(s.open),"data-disabled":s.disabled?"":void 0,...n,ref:t})});F.displayName=M;var L="AccordionTrigger",U=n.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,o=k(p,r),s=D(L,r),i=E(L,r),a=S(r);return(0,f.jsx)(g.ItemSlot,{scope:r,children:(0,f.jsx)(u.l9,{"aria-disabled":s.open&&!i.collapsible||void 0,"data-orientation":o.orientation,id:s.triggerId,...a,...n,ref:t})})});U.displayName=L;var Q="AccordionContent",N=n.forwardRef((e,t)=>{const{__scopeAccordion:r,...n}=e,o=k(p,r),s=D(Q,r),i=S(r);return(0,f.jsx)(u.UC,{role:"region","aria-labelledby":s.triggerId,"data-orientation":o.orientation,...i,...n,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});function z(e){return e?"open":"closed"}N.displayName=Q;var G=C,K=q,H=F,V=U,B=N},2541(e,t,r){r.d(t,{Ke:()=>C,R6:()=>w,UC:()=>j,bL:()=>O,l9:()=>E,z3:()=>m});var n=r(758),o=r(7674),s=r(5540),i=r(5822),a=r(9166),c=r(5313),l=r(8656),u=r(1315),d=r(2748),h=r(6070),f="Collapsible",[p,m]=(0,s.A)(f),[g,v]=p(f),y=n.forwardRef((e,t)=>{const{__scopeCollapsible:r,open:o,defaultOpen:s,disabled:a,onOpenChange:c,...u}=e,[p,m]=(0,i.i)({prop:o,defaultProp:s??!1,onChange:c,caller:f});return(0,h.jsx)(g,{scope:r,disabled:a,contentId:(0,d.B)(),open:p,onOpenToggle:n.useCallback(()=>m(e=>!e),[m]),children:(0,h.jsx)(l.sG.div,{"data-state":R(p),"data-disabled":a?"":void 0,...u,ref:t})})});y.displayName=f;var b="CollapsibleTrigger",w=n.forwardRef((e,t)=>{const{__scopeCollapsible:r,...n}=e,s=v(b,r);return(0,h.jsx)(l.sG.button,{type:"button","aria-controls":s.open?s.contentId:void 0,"aria-expanded":s.open||!1,"data-state":R(s.open),"data-disabled":s.disabled?"":void 0,disabled:s.disabled,...n,ref:t,onClick:(0,o.mK)(e.onClick,s.onOpenToggle)})});w.displayName=b;var S="CollapsibleContent",C=n.forwardRef((e,t)=>{const{forceMount:r,...n}=e,o=v(S,e.__scopeCollapsible);return(0,h.jsx)(u.C,{present:r||o.open,children:({present:e})=>(0,h.jsx)(x,{...n,ref:t,present:e})})});C.displayName=S;var x=n.forwardRef((e,t)=>{const{__scopeCollapsible:r,present:o,children:s,...i}=e,u=v(S,r),[d,f]=n.useState(o),p=n.useRef(null),m=(0,c.s)(t,p),g=n.useRef(0),y=g.current,b=n.useRef(0),w=b.current,C=u.open||d,x=n.useRef(C),O=n.useRef(void 0);return n.useEffect(()=>{const e=requestAnimationFrame(()=>x.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,a.N)(()=>{const e=p.current;if(e){O.current=O.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";const t=e.getBoundingClientRect();g.current=t.height,b.current=t.width,x.current||(e.style.transitionDuration=O.current.transitionDuration,e.style.animationName=O.current.animationName),f(o)}},[u.open,o]),(0,h.jsx)(l.sG.div,{"data-state":R(u.open),"data-disabled":u.disabled?"":void 0,id:u.contentId,hidden:!C,...i,ref:m,style:{"--radix-collapsible-content-height":y?`${y}px`:void 0,"--radix-collapsible-content-width":w?`${w}px`:void 0,...e.style},children:C&&s})});function R(e){return e?"open":"closed"}var O=y,E=w,j=C},9265(e,t,r){r.d(t,{Cf:()=>M,HM:()=>H,L3:()=>N,LC:()=>T,UC:()=>M,ZJ:()=>k,ZL:()=>k,bL:()=>R,bm:()=>H,hE:()=>N,hJ:()=>T,l9:()=>E,lG:()=>R,rr:()=>G,zM:()=>E}
2);var n=r(758),o=r(7674),s=r(5313),i=r(5540),a=r(2748),c=r(5822),l=r(1157),u=r(6413),d=r(1562),h=r(1315),f=r(8656),p=r(4346),m=r(8630),g=r(2694),v=r(8386),y=r(6070),b="Dialog",[w,S]=(0,i.A)(b),[C,x]=w(b),R=e=>{const{__scopeDialog:t,children:r,open:o,defaultOpen:s,onOpenChange:i,modal:l=!0}=e,u=n.useRef(null),d=n.useRef(null),[h,f]=(0,c.i)({prop:o,defaultProp:s??!1,onChange:i,caller:b});return(0,y.jsx)(C,{scope:t,triggerRef:u,contentRef:d,contentId:(0,a.B)(),titleId:(0,a.B)(),descriptionId:(0,a.B)(),open:h,onOpenChange:f,onOpenToggle:n.useCallback(()=>f(e=>!e),[f]),modal:l,children:r})};R.displayName=b;var O="DialogTrigger",E=n.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,i=x(O,r),a=(0,s.s)(t,i.triggerRef);return(0,y.jsx)(f.sG.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":V(i.open),...n,ref:a,onClick:(0,o.mK)(e.onClick,i.onOpenToggle)})});E.displayName=O;var j="DialogPortal",[P,A]=w(j,{forceMount:void 0}),k=e=>{const{__scopeDialog:t,forceMount:r,children:o,container:s}=e,i=x(j,t);return(0,y.jsx)(P,{scope:t,forceMount:r,children:n.Children.map(o,e=>(0,y.jsx)(h.C,{present:r||i.open,children:(0,y.jsx)(d.Z,{asChild:!0,container:s,children:e})}))})};k.displayName=j;var I="DialogOverlay",T=n.forwardRef((e,t)=>{const r=A(I,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,s=x(I,e.__scopeDialog);return s.modal?(0,y.jsx)(h.C,{present:n||s.open,children:(0,y.jsx)(D,{...o,ref:t})}):null});T.displayName=I;var _=(0,v.TL)("DialogOverlay.RemoveScroll"),D=n.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=x(I,r),i=(0,l.e0)(),a=(0,s.s)(t,i);return(0,y.jsx)(m.A,{as:_,allowPinchZoom:!0,shards:[o.contentRef],children:(0,y.jsx)(f.sG.div,{"data-state":V(o.open),...n,ref:a,style:{pointerEvents:"auto",...n.style}})})}),q="DialogContent",M=n.forwardRef((e,t)=>{const r=A(q,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,s=x(q,e.__scopeDialog);return(0,y.jsx)(h.C,{present:n||s.open,children:s.modal?(0,y.jsx)(F,{...o,ref:t}):(0,y.jsx)(L,{...o,ref:t})})});M.displayName=q;var F=n.forwardRef((e,t)=>{const r=x(q,e.__scopeDialog),i=n.useRef(null),a=(0,s.s)(t,r.contentRef,i);return n.useEffect(()=>{const e=i.current;if(e)return(0,g.Eq)(e)},[]),(0,y.jsx)(U,{...e,ref:a,trapFocus:r.open,disableOutsidePointerEvents:r.open,onCloseAutoFocus:(0,o.mK)(e.onCloseAutoFocus,e=>{e.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:(0,o.mK)(e.onPointerDownOutside,e=>{const t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey;(2===t.button||r)&&e.preventDefault()}),onFocusOutside:(0,o.mK)(e.onFocusOutside,e=>e.preventDefault())})}),L=n.forwardRef((e,t)=>{const r=x(q,e.__scopeDialog),o=n.useRef(!1),s=n.useRef(!1);return(0,y.jsx)(U,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(o.current||r.triggerRef.current?.focus(),t.preventDefault()),o.current=!1,s.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(o.current=!0,"pointerdown"===t.detail.originalEvent.type&&(s.current=!0));const n=t.target,i=r.triggerRef.current?.contains(n);i&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&s.current&&t.preventDefault()}})}),U=n.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:s,...i}=e,a=x(q,r);return(0,p.Oh)(),(0,y.jsx)(y.Fragment,{children:(0,y.jsx)(u.n,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:s,children:(0,y.jsx)(l.qW,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":V(a.open),...i,ref:t,deferPointerDownOutside:!0,onDismiss:()=>a.onOpenChange(!1)})})})}),Q="DialogTitle",N=n.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=x(Q,r);return(0,y.jsx)(f.sG.h2,{id:o.titleId,...n,ref:t})});N.displayName=Q;var z="DialogDescription",G=n.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=x(z,r);return(0,y.jsx)(f.sG.p,{id:o.descriptionId,...n,ref:t})});G.displayName=z;var K="DialogClose",H=n.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,s=x(K,r);return(0,y.jsx)(f.sG.button,{type:"button",...n,ref:t,onClick:(0,o.mK)(e.onClick,()=>s.onOpenChange(!1))})});H.displayName=K;function V(e){return e?"open":"closed"}},6603(e,t,r){r.d(t,{UC:()=>$,ZL:()=>B,bL:()=>H,l9:()=>V});var n=r(758),o=r(7674),s=r(5313),i=r(5540),a=r(1157),c=r(4346),l=r(6413),u=r(2748),d=r(3969),h=r(1562),f=r(1315),p=r(8656),m=r(8386),g=r(5822),v=r(2694),y=r(8630),b=r(6070),w="Popover",[S,C]=(0,i.A)(w,[d.Bk]),x=(0,d.Bk)(),[R,O]=S(w),E=e=>{const{__scopePopover:t,children:r,open:o,defaultOpen:s,onOpenChange:i,modal:
2a=!1}=e,c=x(t),l=n.useRef(null),[h,f]=n.useState(!1),[p,m]=(0,g.i)({prop:o,defaultProp:s??!1,onChange:i,caller:w});return(0,b.jsx)(d.bL,{...c,children:(0,b.jsx)(R,{scope:t,contentId:(0,u.B)(),triggerRef:l,open:p,onOpenChange:m,onOpenToggle:n.useCallback(()=>m(e=>!e),[m]),hasCustomAnchor:h,onCustomAnchorAdd:n.useCallback(()=>f(!0),[]),onCustomAnchorRemove:n.useCallback(()=>f(!1),[]),modal:a,children:r})})};E.displayName=w;var j="PopoverAnchor",P=n.forwardRef((e,t)=>{const{__scopePopover:r,...o}=e,s=O(j,r),i=x(r),{onCustomAnchorAdd:a,onCustomAnchorRemove:c}=s;return n.useEffect(()=>(a(),()=>c()),[a,c]),(0,b.jsx)(d.Mz,{...i,...o,ref:t})});P.displayName=j;var A="PopoverTrigger",k=n.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,i=O(A,r),a=x(r),c=(0,s.s)(t,i.triggerRef),l=(0,b.jsx)(p.sG.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":K(i.open),...n,ref:c,onClick:(0,o.mK)(e.onClick,i.onOpenToggle)});return i.hasCustomAnchor?l:(0,b.jsx)(d.Mz,{asChild:!0,...a,children:l})});k.displayName=A;var I="PopoverPortal",[T,_]=S(I,{forceMount:void 0}),D=e=>{const{__scopePopover:t,forceMount:r,children:n,container:o}=e,s=O(I,t);return(0,b.jsx)(T,{scope:t,forceMount:r,children:(0,b.jsx)(f.C,{present:r||s.open,children:(0,b.jsx)(h.Z,{asChild:!0,container:o,children:n})})})};D.displayName=I;var q="PopoverContent",M=n.forwardRef((e,t)=>{const r=_(q,e.__scopePopover),{forceMount:n=r.forceMount,...o}=e,s=O(q,e.__scopePopover);return(0,b.jsx)(f.C,{present:n||s.open,children:s.modal?(0,b.jsx)(L,{...o,ref:t}):(0,b.jsx)(U,{...o,ref:t})})});M.displayName=q;var F=(0,m.TL)("PopoverContent.RemoveScroll"),L=n.forwardRef((e,t)=>{const r=O(q,e.__scopePopover),i=n.useRef(null),a=(0,s.s)(t,i),c=n.useRef(!1);return n.useEffect(()=>{const e=i.current;
2if(e)return(0,v.Eq)(e)},[]),(0,b.jsx)(y.A,{as:F,allowPinchZoom:!0,children:(0,b.jsx)(Q,{...e,ref:a,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,o.mK)(e.onCloseAutoFocus,e=>{e.preventDefault(),c.current||r.triggerRef.current?.focus()}),onPointerDownOutside:(0,o.mK)(e.onPointerDownOutside,e=>{const t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey,n=2===t.button||r;c.current=n},{checkForDefaultPrevented:!1}),onFocusOutside:(0,o.mK)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),U=n.forwardRef((e,t)=>{const r=O(q,e.__scopePopover),o=n.useRef(!1),s=n.useRef(!1);return(0,b.jsx)(Q,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(o.current||r.triggerRef.current?.focus(),t.preventDefault()),o.current=!1,s.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(o.current=!0,"pointerdown"===t.detail.originalEvent.type&&(s.current=!0));const n=t.target,i=r.triggerRef.current?.contains(n);i&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&s.current&&t.preventDefault()}})}),Q=n.forwardRef((e,t)=>{const{__scopePopover:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:s,disableOutsidePointerEvents:i,onEscapeKeyDown:u,onPointerDownOutside:h,onFocusOutside:f,onInteractOutside:p,...m}=e,g=O(q,r),v=x(r);return(0,c.Oh)(),(0,b.jsx)(l.n,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:s,children:(0,b.jsx)(a.qW,{asChild:!0,disableOutsidePointerEvents:i,onInteractOutside:p,onEscapeKeyDown:u,onPointerDownOutside:h,onFocusOutside:f,onDismiss:()=>g.onOpenChange(!1),deferPointerDownOutside:!0,children:(0,b.jsx)(d.UC,{"data-state":K(g.open),role:"dialog",id:g.contentId,...v,...m,ref:t,style:{...m.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)"}})})})}),N="PopoverClose",z=n.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,s=O(N,r);return(0,b.jsx)(p.sG.button,{type:"button",...n,ref:t,onClick:(0,o.mK)(e.onClick,()=>s.onOpenChange(!1))})});z.displayName=N;var G=n.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=x(r);return(0,b.jsx)(d.i3,{...o,...n,ref:t})});function K(e){return e?"open":"closed"}G.displayName="PopoverArrow";var H=E,V=k,B=D,$=M},6388(e,t,r){r.d(t,{LM:()=>Z,OK:()=>X,VM:()=>R,bL:()=>W,lr:()=>q});var n=r(758),o=r(8656),s=r(1315),i=r(5540),a=r(5313),c=r(5452),l=r(6290),u=r(9166),d=r(9482),h=r(7674),f=r(6070);var p="ScrollArea",[m,g]=(0,i.A)(p),[v,y]=m(p),b=n.forwardRef((e,t)=>{const{__scopeScrollArea:r,type:s="hover",dir:i,scrollHideDelay:c=600,...u}=e,[d,h]=n.useState(null),[p,m]=n.useState(null),[g,y]=n.useState(null),[b,w]=n.useState(null),[S,C]=n.useState(null),[x,R]=n.useState(0),[O,E]=n.useState(0),[j,P]=n.useState(!1),[A,k]=n.useState(!1),I=(0,a.s)(t,e=>h(e)),T=(0,l.jH)(i);return(0,f.jsx)(v,{scope:r,type:s,dir:T,scrollHideDelay:c,scrollArea:d,viewport:p,onViewportChange:m,content:g,onContentChange:y,scrollbarX:b,onScrollbarXChange:w,scrollbarXEnabled:j,onScrollbarXEnabledChange:P,scrollbarY:S,onScrollbarYChange:C,scrollbarYEnabled:A,onScrollbarYEnabledChange:k,onCornerWidthChange:R,onCornerHeightChange:E,children:(0,f.jsx)(o.sG.div,{dir:T,...u,ref:I,style:{position:"relative","--radix-scroll-area-corner-width":x+"px","--radix-scroll-area-corner-height":O+"px",...e.style}})})});b.displayName=p;var w="ScrollAreaViewport",S=n.forwardRef((e,t)=>{const{__scopeScrollArea:r,children:s,nonce:i,...c}=e,l=y(w,r),u=n.useRef(null),d=(0,a.s)(t,u,l.onViewportChange);return(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(C,{nonce:i}),(0,f.jsx)(o.sG.div,{"data-radix-scroll-area-viewport":"",...c,ref:d,style:{overflowX:l.scrollbarXEnabled?"scroll":"hidden",overflowY:l.scrollbarYEnabled?"scroll":"hidden",...e.style},children:(0,f.jsx)("div",{ref:l.onContentChange,style:{minWidth:"100%",display:"table"},children:s})})]})});S.displayName=w;var C=n.memo(({nonce:e})=>(0,f.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:e}),(e,t)=>e.nonce===t.nonce),x="ScrollAreaScrollbar",R=n.forwardRef((e,t)=>
2{const{forceMount:r,...o}=e,s=y(x,e.__scopeScrollArea),{onScrollbarXEnabledChange:i,onScrollbarYEnabledChange:a}=s,c="horizontal"===e.orientation;return n.useEffect(()=>(c?i(!0):a(!0),()=>{c?i(!1):a(!1)}),[c,i,a]),"hover"===s.type?(0,f.jsx)(O,{...o,ref:t,forceMount:r}):"scroll"===s.type?(0,f.jsx)(E,{...o,ref:t,forceMount:r}):"auto"===s.type?(0,f.jsx)(j,{...o,ref:t,forceMount:r}):"always"===s.type?(0,f.jsx)(P,{...o,ref:t,"data-state":"visible"}):null});R.displayName=x;var O=n.forwardRef((e,t)=>{const{forceMount:r,...o}=e,i=y(x,e.__scopeScrollArea),[a,c]=n.useState(!1);return n.useEffect(()=>{const e=i.scrollArea;let t=0;if(e){const r=()=>{window.clearTimeout(t),c(!0)},n=()=>{t=window.setTimeout(()=>c(!1),i.scrollHideDelay)};return e.addEventListener("pointerenter",r),e.addEventListener("pointerleave",n),()=>{window.clearTimeout(t),e.removeEventListener("pointerenter",r),e.removeEventListener("pointerleave",n)}}},[i.scrollArea,i.scrollHideDelay]),(0,f.jsx)(s.C,{present:r||a,children:(0,f.jsx)(j,{"data-state":a?"visible":"hidden",...o,ref:t})})}),E=n.forwardRef((e,t)=>{const{forceMount:r,...o}=e,i=y(x,e.__scopeScrollArea),a="horizontal"===e.orientation,c=B(()=>u("SCROLL_END"),100),[l,u]=(d="hidden",p={hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}},n.useReducer((e,t)=>p[e][t]??e,d));var d,p;return n.useEffect(()=>{if("idle"===l){const e=window.setTimeout(()=>u("HIDE"),i.scrollHideDelay);return()=>window.clearTimeout(e)}},[l,i.scrollHideDelay,u]),n.useEffect(()=>{const e=i.viewport,t=a?"scrollLeft":"scrollTop";if(e){let r=e[t];const n=()=>{const n=e[t];r!==n&&(u("SCROLL"),c()),r=n};return e.addEventListener("scroll",n),()=>e.removeEventListener("scroll",n)}},[i.viewport,a,u,c]),(0,f.jsx)(s.C,{present:r||"hidden"!==l,children:(0,f.jsx)(P,{"data-state":"hidden"===l?"hidden":"visible",...o,ref:t,onPointerEnter:(0,h.mK)(e.onPointerEnter,()=>u("POINTER_ENTER")),onPointerLeave:(0,h.mK)(e.onPointerLeave,()=>u("POINTER_LEAVE"))})})}),j=n.forwardRef((e,t)=>{const r=y(x,e.__scopeScrollArea),{forceMount:o,...i}=e,[a,c]=n.useState(!1),l="horizontal"===e.orientation,u=B(()=>{if(r.viewport){const e=r.viewport.offsetWidth<r.viewport.scrollWidth,t=r.viewport.offsetHeight<r.viewport.scrollHeight;c(l?e:t)}},10);return $(r.viewport,u),$(r.content,u),(0,f.jsx)(s.C,{present:o||a,children:(0,f.jsx)(P,{"data-state":a?"visible":"hidden",...i,ref:t})})}),P=n.forwardRef((e,t)=>{const{orientation:r="vertical",...o}=e,s=y(x,e.__scopeScrollArea),i=n.useRef(null),a=n.useRef(0),[c,l]=n.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=N(c.viewport,c.content),d={...o,sizes:c,onSizesChange:l,hasThumb:Boolean(u>0&&u<1),onThumbChange:e=>i.current=e,onThumbPointerUp:()=>a.current=0,onThumbPointerDown:e=>a.current=e};function h(e,t){return function(e,t,r,n="ltr"){const o=z(r),s=o/2,i=t||s,a=o-i,c=r.scrollbar.paddingStart+i,l=r.scrollbar.size-r.scrollbar.paddingEnd-a,u=r.content-r.viewport,d="ltr"===n?[0,u]:[-1*u,0];return K([c,l],d)(e)}(e,a.current,c,t)}return"horizontal"===r?(0,f.jsx)(A,{...d,ref:t,onThumbPositionChange:()=>{if(s.viewport&&i.current){const e=G(s.viewport.scrollLeft,c,s.dir);i.current.style.transform=`translate3d(${e}px, 0, 0)`}},onWheelScroll:e=>{s.viewport&&(s.viewport.scrollLeft=e)},onDragScroll:e=>{s.viewport&&(s.viewport.scrollLeft=h(e,s.dir))}}):"vertical"===r?(0,f.jsx)(k,{...d,ref:t,onThumbPositionChange:()=>{if(s.viewport&&i.current){const e=G(s.viewport.scrollTop,c);i.current.style.transform=`translate3d(0, ${e}px, 0)`}},onWheelScroll:e=>{s.viewport&&(s.viewport.scrollTop=e)},onDragScroll:e=>{s.viewport&&(s.viewport.scrollTop=h(e))}}):null}),A=n.forwardRef((e,t)=>{const{sizes:r,onSizesChange:o,...s}=e,i=y(x,e.__scopeScrollArea),[c,l]=n.useState(),u=n.useRef(null),d=(0,a.s)(t,u,i.onScrollbarXChange);return n.useEffect(()=>{u.current&&l(getComputedStyle(u.current))},[u]),(0,f.jsx)(_,{"data-orientation":"horizontal",...s,ref:d,sizes:r,style:{bottom:0,left:"rtl"===i.dir?"var(--radix-scroll-area-corner-width)":0,right:"ltr"===i.dir?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":z(r)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.x),onDragScroll:t=>e.onDragScroll(t.x),onWheelScroll:(t,r)=>{if(i.viewport){const n=i.viewport.scrollLeft+t.deltaX;e.onWheelScroll(n),H(n,r)&&t.preventDefault()}},onResize:()=>{u.current&&i.viewport&&c&&o({content:i.viewport.scrollWidth,viewport:i.viewport.offsetWidth,scrollbar:{size:u.current.clientWidth,paddingStart:Q(c.paddingLeft),paddingEnd:Q(c.paddingRight)}})}})}),k=n.forwardRef((e,t)=>
2{const{sizes:r,onSizesChange:o,...s}=e,i=y(x,e.__scopeScrollArea),[c,l]=n.useState(),u=n.useRef(null),d=(0,a.s)(t,u,i.onScrollbarYChange);return n.useEffect(()=>{u.current&&l(getComputedStyle(u.current))},[u]),(0,f.jsx)(_,{"data-orientation":"vertical",...s,ref:d,sizes:r,style:{top:0,right:"ltr"===i.dir?0:void 0,left:"rtl"===i.dir?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":z(r)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.y),onDragScroll:t=>e.onDragScroll(t.y),onWheelScroll:(t,r)=>{if(i.viewport){const n=i.viewport.scrollTop+t.deltaY;e.onWheelScroll(n),H(n,r)&&t.preventDefault()}},onResize:()=>{u.current&&i.viewport&&c&&o({content:i.viewport.scrollHeight,viewport:i.viewport.offsetHeight,scrollbar:{size:u.current.clientHeight,paddingStart:Q(c.paddingTop),paddingEnd:Q(c.paddingBottom)}})}})}),[I,T]=m(x),_=n.forwardRef((e,t)=>{const{__scopeScrollArea:r,sizes:s,hasThumb:i,onThumbChange:l,onThumbPointerUp:u,onThumbPointerDown:d,onThumbPositionChange:p,onDragScroll:m,onWheelScroll:g,onResize:v,...b}=e,w=y(x,r),[S,C]=n.useState(null),R=(0,a.s)(t,e=>C(e)),O=n.useRef(null),E=n.useRef(""),j=w.viewport,P=s.content-s.viewport,A=(0,c.c)(g),k=(0,c.c)(p),T=B(v,10);function _(e){if(O.current){const t=e.clientX-O.current.left,r=e.clientY-O.current.top;m({x:t,y:r})}}return n.useEffect(()=>{const e=e=>{const t=e.target,r=S?.contains(t);r&&A(e,P)};return document.addEventListener("wheel",e,{passive:!1}),()=>document.removeEventListener("wheel",e,{passive:!1})},[j,S,P,A]),n.useEffect(k,[s,k]),$(S,T),$(w.content,T),(0,f.jsx)(I,{scope:r,scrollbar:S,hasThumb:i,onThumbChange:(0,c.c)(l),onThumbPointerUp:(0,c.c)(u),onThumbPositionChange:k,onThumbPointerDown:(0,c.c)(d),children:(0,f.jsx)(o.sG.div,{...b,ref:R,style:{position:"absolute",...b.style},onPointerDown:(0,h.mK)(e.onPointerDown,e=>{if(0===e.button){e.target.setPointerCapture(e.pointerId),O.current=S.getBoundingClientRect(),E.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",w.viewport&&(w.viewport.style.scrollBehavior="auto"),_(e)}}),onPointerMove:(0,h.mK)(e.onPointerMove,_),onPointerUp:(0,h.mK)(e.onPointerUp,e=>{const t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),document.body.style.webkitUserSelect=E.current,w.viewport&&(w.viewport.style.scrollBehavior=""),O.current=null})})})}),D="ScrollAreaThumb",q=n.forwardRef((e,t)=>{const{forceMount:r,...n}=e,o=T(D,e.__scopeScrollArea);return(0,f.jsx)(s.C,{present:r||o.hasThumb,children:(0,f.jsx)(M,{ref:t,...n})})}),M=n.forwardRef((e,t)=>{const{__scopeScrollArea:r,style:s,...i}=e,c=y(D,r),l=T(D,r),{onThumbPositionChange:u}=l,d=(0,a.s)(t,e=>l.onThumbChange(e)),p=n.useRef(void 0),m=B(()=>{p.current&&(p.current(),p.current=void 0)},100);return n.useEffect(()=>{const e=c.viewport;if(e){const t=()=>{if(m(),!p.current){const t=V(e,u);p.current=t,u()}};return u(),e.addEventListener("scroll",t),()=>e.removeEventListener("scroll",t)}},[c.viewport,m,u]),(0,f.jsx)(o.sG.div,{"data-state":l.hasThumb?"visible":"hidden",...i,ref:d,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...s},onPointerDownCapture:(0,h.mK)(e.onPointerDownCapture,e=>{const t=e.target.getBoundingClientRect(),r=e.clientX-t.left,n=e.clientY-t.top;l.onThumbPointerDown({x:r,y:n})}),onPointerUp:(0,h.mK)(e.onPointerUp,l.onThumbPointerUp)})});q.displayName=D;var F="ScrollAreaCorner",L=n.forwardRef((e,t)=>{const r=y(F,e.__scopeScrollArea),n=Boolean(r.scrollbarX&&r.scrollbarY);return"scroll"!==r.type&&n?(0,f.jsx)(U,{...e,ref:t}):null});L.displayName=F;var U=n.forwardRef((e,t)=>{const{__scopeScrollArea:r,...s}=e,i=y(F,r),[a,c]=n.useState(0),[l,u]=n.useState(0),d=Boolean(a&&l);return $(i.scrollbarX,()=>{const e=i.scrollbarX?.offsetHeight||0;i.onCornerHeightChange(e),u(e)}),$(i.scrollbarY,()=>{const e=i.scrollbarY?.offsetWidth||0;i.onCornerWidthChange(e),c(e)}),d?(0,f.jsx)(o.sG.div,{...s,ref:t,style:{width:a,height:l,position:"absolute",right:"ltr"===i.dir?0:void 0,left:"rtl"===i.dir?0:void 0,bottom:0,...e.style}}):null});function Q(e){return e?parseInt(e,10):0}function N(e,t){const r=e/t;return isNaN(r)?0:r}function z(e){const t=N(e.viewport,e.content),r=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,n=(e.scrollbar.size-r)*t;return Math.max(n,18)}function G(e,t,r="ltr"){const n=z(t),o=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,s=t.scrollbar.size-o,i=t.content-t.viewport,a=s-n,c="ltr"===r?[0,i]:[-1*i,0],l=(0,d.q)(e,c);return K([0,i],[0,a])(l)}function K(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const n=(t[1]-t[0])/(e[1]-e[0]);return t[0]+n*(r-e[0])}}function H(e,t){return e>0&&e<t}var V=(e,t=()=>{})=>{let r={left:e.scrollLeft,top:e.scrollTop},n=0;return function o(){const s={left:e.scrollLeft,top:e.scrollTop},i=r.left!==s.left,a=r.top!==s.top;
2(i||a)&&t(),r=s,n=window.requestAnimationFrame(o)}(),()=>window.cancelAnimationFrame(n)};function B(e,t){const r=(0,c.c)(e),o=n.useRef(0);return n.useEffect(()=>()=>window.clearTimeout(o.current),[]),n.useCallback(()=>{window.clearTimeout(o.current),o.current=window.setTimeout(r,t)},[r,t])}function $(e,t){const r=(0,c.c)(t);(0,u.N)(()=>{let t=0;if(e){const n=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(r)});return n.observe(e),()=>{window.cancelAnimationFrame(t),n.unobserve(e)}}},[e,r])}var W=b,Z=S,X=L},4144(e,t,r){r.d(t,{bL:()=>w,zi:()=>C});var n=r(758),o=r(7674),s=r(5313),i=r(5540),a=r(5822),c=r(9732),l=r(4396),u=r(8656),d=r(6070),h="Switch",[f,p]=(0,i.A)(h),[m,g]=f(h);function v(e){const{__scopeSwitch:t,checked:r,children:o,defaultChecked:s,disabled:i,form:c,name:l,onCheckedChange:u,required:f,value:p="on",internal_do_not_use_render:g}=e,[v,y]=(0,a.i)({prop:r,defaultProp:s??!1,onChange:u,caller:h}),[b,w]=n.useState(null),[S,C]=n.useState(null),x=n.useRef(!1),R=!b||(!!c||!!b.closest("form")),E={checked:v,setChecked:y,disabled:i,control:b,setControl:w,name:l,form:c,value:p,hasConsumerStoppedPropagationRef:x,required:f,defaultChecked:s,isFormControl:R,bubbleInput:S,setBubbleInput:C};return(0,d.jsx)(m,{scope:t,...E,children:O(g)?g(E):o})}var y="SwitchTrigger",b=n.forwardRef(({__scopeSwitch:e,onClick:t,...r},n)=>{const{value:i,disabled:a,checked:c,required:l,setControl:h,setChecked:f,hasConsumerStoppedPropagationRef:p,isFormControl:m,bubbleInput:v}=g(y,e),b=(0,s.s)(n,h);return(0,d.jsx)(u.sG.button,{type:"button",role:"switch","aria-checked":c,"aria-required":l,"data-state":E(c),"data-disabled":a?"":void 0,disabled:a,value:i,...r,ref:b,onClick:(0,o.mK)(t,e=>{f(e=>!e),v&&m&&(p.current=e.isPropagationStopped(),p.current||e.stopPropagation())})})});b.displayName=y;var w=n.forwardRef((e,t)=>{const{__scopeSwitch:r,name:n,checked:o,defaultChecked:s,required:i,disabled:a,value:c,onCheckedChange:l,form:u,...h}=e;return(0,d.jsx)(v,{__scopeSwitch:r,checked:o,defaultChecked:s,disabled:a,required:i,onCheckedChange:l,name:n,form:u,value:c,internal_do_not_use_render:({isFormControl:e})=>(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(b,{...h,ref:t,__scopeSwitch:r}),e&&(0,d.jsx)(R,{__scopeSwitch:r})]})})});w.displayName=h;var S="SwitchThumb",C=n.forwardRef((e,t)=>{const{__scopeSwitch:r,...n}=e,o=g(S,r);return(0,d.jsx)(u.sG.span,{"data-state":E(o.checked),"data-disabled":o.disabled?"":void 0,...n,ref:t})});C.displayName=S;var x="SwitchBubbleInput",R=n.forwardRef(({__scopeSwitch:e,...t},r)=>{const{control:o,hasConsumerStoppedPropagationRef:i,checked:a,defaultChecked:h,required:f,disabled:p,name:m,value:v,form:y,bubbleInput:b,setBubbleInput:w}=g(x,e),S=(0,s.s)(r,w),C=(0,c.Z)(a),R=(0,l.X)(o);n.useEffect(()=>{const e=b;if(!e)return;const t=window.HTMLInputElement.prototype,r=Object.getOwnPropertyDescriptor(t,"checked").set,n=!i.current;if(C!==a&&r){const t=new Event("click",{bubbles:n});r.call(e,a),e.dispatchEvent(t)}},[b,C,a,i]);const O=n.useRef(a);return(0,d.jsx)(u.sG.input,{type:"checkbox","aria-hidden":!0,defaultChecked:h??O.current,required:f,disabled:p,name:m,value:v,form:y,...t,tabIndex:-1,ref:S,style:{...t.style,...R,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});function O(e){return"function"==typeof e}function E(e){return e?"checked":"unchecked"}R.displayName=x},779(e,t,r){r.d(t,{B8:()=>A,UC:()=>I,bL:()=>P,l9:()=>k});var n=r(758),o=r(7674),s=r(5540),i=r(7663),a=r(1315),c=r(8656),l=r(6290),u=r(5822),d=r(2748),h=r(6070),f="Tabs",[p,m]=(0,s.A)(f,[i.RG]),g=(0,i.RG)(),[v,y]=p(f),b=n.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,onValueChange:o,defaultValue:s,orientation:i="horizontal",dir:a,activationMode:p="automatic",...m}=e,g=(0,l.jH)(a),[y,b]=(0,u.i)({prop:n,onChange:o,defaultProp:s??"",caller:f});return(0,h.jsx)(v,{scope:r,baseId:(0,d.B)(),value:y,onValueChange:b,orientation:i,dir:g,activationMode:p,children:(0,h.jsx)(c.sG.div,{dir:g,"data-orientation":i,...m,ref:t})})});b.displayName=f;var w="TabsList",S=n.forwardRef((e,t)=>{const{__scopeTabs:r,loop:n=!0,...o}=e,s=y(w,r),a=g(r);return(0,h.jsx)(i.bL,{asChild:!0,...a,orientation:s.orientation,dir:s.dir,loop:n,children:(0,h.jsx)(c.sG.div,{role:"tablist","aria-orientation":s.orientation,...o,ref:t})})});S.displayName=w;var C="TabsTrigger",x=n.forwardRef((e,t)=>
2{const{__scopeTabs:r,value:n,disabled:s=!1,...a}=e,l=y(C,r),u=g(r),d=E(l.baseId,n),f=j(l.baseId,n),p=n===l.value;return(0,h.jsx)(i.q7,{asChild:!0,...u,focusable:!s,active:p,children:(0,h.jsx)(c.sG.button,{type:"button",role:"tab","aria-selected":p,"aria-controls":f,"data-state":p?"active":"inactive","data-disabled":s?"":void 0,disabled:s,id:d,...a,ref:t,onMouseDown:(0,o.mK)(e.onMouseDown,e=>{s||0!==e.button||!1!==e.ctrlKey?e.preventDefault():l.onValueChange(n)}),onKeyDown:(0,o.mK)(e.onKeyDown,e=>{[" ","Enter"].includes(e.key)&&l.onValueChange(n)}),onFocus:(0,o.mK)(e.onFocus,()=>{const e="manual"!==l.activationMode;p||s||!e||l.onValueChange(n)})})})});x.displayName=C;var R="TabsContent",O=n.forwardRef((e,t)=>{const{__scopeTabs:r,value:o,forceMount:s,children:i,...l}=e,u=y(R,r),d=E(u.baseId,o),f=j(u.baseId,o),p=o===u.value,m=n.useRef(p);return n.useEffect(()=>{const e=requestAnimationFrame(()=>m.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,h.jsx)(a.C,{present:s||p,children:({present:r})=>(0,h.jsx)(c.sG.div,{"data-state":p?"active":"inactive","data-orientation":u.orientation,role:"tabpanel","aria-labelledby":d,hidden:!r,id:f,tabIndex:0,...l,ref:t,style:{...e.style,animationDuration:m.current?"0s":void 0},children:r&&i})})});function E(e,t){return`${e}-trigger-${t}`}function j(e,t){return`${e}-content-${t}`}O.displayName=R;var P=b,A=S,k=x,I=O},3266(e,t,r){r.d(t,{q7:()=>E,bL:()=>v});var n=r(758),o=r(5540),s=r(8656),i=r(7663),a=r(7674),c=r(5822),l=r(6070),u="Toggle",d=n.forwardRef((e,t)=>
2{const{pressed:r,defaultPressed:n,onPressedChange:o,...i}=e,[d,h]=(0,c.i)({prop:r,onChange:o,defaultProp:n??!1,caller:u});return(0,l.jsx)(s.sG.button,{type:"button","aria-pressed":d,"data-state":d?"on":"off","data-disabled":e.disabled?"":void 0,...i,ref:t,onClick:(0,a.mK)(e.onClick,()=>{e.disabled||h(!d)})})});d.displayName=u;var h=r(6290),f="ToggleGroup",[p,m]=(0,o.A)(f,[i.RG]),g=(0,i.RG)(),v=n.forwardRef((e,t)=>{const{type:r,...n}=e;if("single"===r){const e=n;return(0,l.jsx)(w,{role:"radiogroup",...e,ref:t})}if("multiple"===r){const e=n;return(0,l.jsx)(S,{role:"toolbar",...e,ref:t})}throw new Error(`Missing prop \`type\` expected on \`${f}\``)});v.displayName=f;var[y,b]=p(f),w=n.forwardRef((e,t)=>{const{value:r,defaultValue:o,onValueChange:s=()=>{},...i}=e,[a,u]=(0,c.i)({prop:r,defaultProp:o??"",onChange:s,caller:f});return(0,l.jsx)(y,{scope:e.__scopeToggleGroup,type:"single",value:n.useMemo(()=>a?[a]:[],[a]),onItemActivate:u,onItemDeactivate:n.useCallback(()=>u(""),[u]),children:(0,l.jsx)(R,{...i,ref:t})})}),S=n.forwardRef((e,t)=>{const{value:r,defaultValue:o,onValueChange:s=()=>{},...i}=e,[a,u]=(0,c.i)({prop:r,defaultProp:o??[],onChange:s,caller:f}),d=n.useCallback(e=>u((t=[])=>[...t,e]),[u]),h=n.useCallback(e=>u((t=[])=>t.filter(t=>t!==e)),[u]);return(0,l.jsx)(y,{scope:e.__scopeToggleGroup,type:"multiple",value:a,onItemActivate:d,onItemDeactivate:h,children:(0,l.jsx)(R,{...i,ref:t})})});v.displayName=f;var[C,x]=p(f),R=n.forwardRef((e,t)=>{const{__scopeToggleGroup:r,disabled:n=!1,rovingFocus:o=!0,orientation:a,dir:c,loop:u=!0,...d}=e,f=g(r),p=(0,h.jH)(c),m={dir:p,...d};return(0,l.jsx)(C,{scope:r,rovingFocus:o,disabled:n,children:o?(0,l.jsx)(i.bL,{asChild:!0,...f,orientation:a,dir:p,loop:u,children:(0,l.jsx)(s.sG.div,{...m,ref:t})}):(0,l.jsx)(s.sG.div,{...m,ref:t})})}),O="ToggleGroupItem",E=n.forwardRef((e,t)=>{const r=b(O,e.__scopeToggleGroup),o=x(O,e.__scopeToggleGroup),s=g(e.__scopeToggleGroup),a=r.value.includes(e.value),c=o.disabled||e.disabled,u={...e,pressed:a,disabled:c},d=n.useRef(null);return o.rovingFocus?(0,l.jsx)(i.q7,{asChild:!0,...s,focusable:!c,active:a,ref:d,children:(0,l.jsx)(j,{...u,ref:t})}):(0,l.jsx)(j,{...u,ref:t})});E.displayName=O;var j=n.forwardRef((e,t)=>{const{__scopeToggleGroup:r,value:n,...o}=e,s=b(O,r),i={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},a="single"===s.type?i:void 0;return(0,l.jsx)(d,{...a,...o,ref:t,onPressedChange:e=>{e?s.onItemActivate(n):s.onItemDeactivate(n)}})})},4043(e,t,r){r.d(t,{H:()=>o});var n=r(8138),o=(()=>{let e=()=>n.S$;return{isServer:()=>e(),setIsServer(t){e=t}}})()},8448(e,t,r){r.d(t,{m:()=>o});var n=r(9802),o=new class extends n.Q{#e;#t;#r;constructor(){super(),this.#r=e=>{if("undefined"!=typeof window&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#r)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#r=e,this.#t?.(),this.#t=e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return"boolean"==typeof this.#e?this.#e:"hidden"!==globalThis.document?.visibilityState}}},3763(e,t,r){r.d(t,{jG:()=>o});var n=r(657).Zq;var o=function(){let e=[],t=0,r=e=>{e()},o=e=>{e()},s=n;const i=n=>{t?e.push(n):s(()=>{r(n)})};return{batch:n=>{let i;t++;try{i=n()}finally{t--,t||(()=>{const t=e;e=[],t.length&&s(()=>{o(()=>{t.forEach(e=>{r(e)})})})})()}return i},batchCalls:e=>(...t)=>{i(()=>{e(...t)})},schedule:i,setNotifyFunction:e=>{r=e},setBatchNotifyFunction:e=>{o=e},setScheduler:e=>{s=e}}}()},1681(e,t,r){r.d(t,{t:()=>o});var n=r(9802),o=new class extends n.Q{#n=!0;#t;#r;constructor(){super(),this.#r=e=>{if("undefined"!=typeof window&&window.addEventListener){const t=()=>e(!0),r=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",r)}}}}onSubscribe(){this.#t||this.setEventListener(this.#r)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#r=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}
2setOnline(e){this.#n!==e&&(this.#n=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#n}}},6355(e,t,r){r.d(t,{X:()=>u,k:()=>d});var n=r(8138),o=r(3763),s=r(6834),i=r(1530);function a(e){return{onFetch:(t,r)=>{const o=t.options,s=t.fetchOptions?.meta?.fetchMore?.direction,i=t.state.data?.pages||[],a=t.state.data?.pageParams||[];let u={pages:[],pageParams:[]},d=0;const h=async()=>{let r=!1;const h=(0,n.ZM)(t.options,t.fetchOptions),f=async(e,o,s)=>{if(r)return Promise.reject(t.signal.reason);if(null==o&&e.pages.length)return Promise.resolve(e);const i=(()=>{const e={client:t.client,queryKey:t.queryKey,pageParam:o,direction:s?"backward":"forward",meta:t.options.meta};var i;return i=e,(0,n.ox)(i,()=>t.signal,()=>r=!0),e})(),a=await h(i),{maxPages:c}=t.options,l=s?n.ZZ:n.y9;return{pages:l(e.pages,a,c),pageParams:l(e.pageParams,o,c)}};if(s&&i.length){const e="backward"===s,t={pages:i,pageParams:a},r=(e?l:c)(o,t);u=await f(t,r,e)}else{const t=e??i.length;do{const e=0===d?a[0]??o.initialPageParam:c(o,u);if(d>0&&null==e)break;u=await f(u,e),d++}while(d<t)}return u};t.options.persister?t.fetchFn=()=>t.options.persister?.(h,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r):t.fetchFn=h}}}function c(e,{pages:t,pageParams:r}){const n=t.length-1;return t.length>0?e.getNextPageParam(t[n],t,r[n],r):void 0}function l(e,{pages:t,pageParams:r}){return t.length>0?e.getPreviousPageParam?.(t[0],t,r[0],r):void 0}var u=class extends i.k{#o;#s;#i;#a;#c;#l;#u;#d;constructor(e){super(),this.#d=!1,this.#u=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#c=e.client,this.#a=this.#c.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#s=f(this.options),this.state=e.state??this.#s,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#o}get promise(){return this.#l?.promise}setOptions(e){if(this.options={...this.#u,...e},e?._type&&(this.#o=e._type),this.updateGcTime(this.options.gcTime),this.state&&void 0===this.state.data){const e=f(this.options);void 0!==e.data&&(this.setState(h(e.data,e.dataUpdatedAt)),this.#s=e)}}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.#a.remove(this)}setData(e,t){const r=(0,n.pl)(this.state.data,e,this.options);return this.#h({data:r,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),r}setState(e){this.#h({type:"setState",state:e})}cancel(e){const t=this.#l?.promise;return this.#l?.cancel(e),t?t.then(n.lQ).catch(n.lQ):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#s}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>!1!==(0,n.nU)(e.options.enabled,this))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===n.hT||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>"static"===(0,n.d2)(e.options.staleTime,this))}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):void 0===this.state.data||this.state.isInvalidated}isStaleByTime(e=0){return void 0===this.state.data||"static"!==e&&(!!this.state.isInvalidated||!(0,n.j3)(this.state.dataUpdatedAt,e))}onFocus(){const e=this.observers.find(e=>e.shouldFetchOnWindowFocus());e?.refetch({cancelRefetch:!1}),this.#l?.continue()}onOnline(){const e=this.observers.find(e=>e.shouldFetchOnReconnect());e?.refetch({cancelRefetch:!1}),this.#l?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#a.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#l&&(this.#d||this.#f()?this.#l.cancel({revert:!0}):this.#l.cancelRetry()),this.scheduleGc()),this.#a.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}#f(){return"paused"===this.state.fetchStatus&&"pending"===this.state.status}invalidate(){this.state.isInvalidated||this.#h({type:"invalidate"})}async fetch(e,t){if("idle"!==this.state.fetchStatus&&"rejected"!==this.#l?.status())if(void 0!==this.state.data&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#l)return this.#l.continueRetry(),this.#l.promise;if(e&&this.setOptions(e),!this.options.queryFn){const e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}const r=new AbortController,o=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#d=!0,r.signal)}
2)},i=()=>{const e=(0,n.ZM)(this.options,t),r=(()=>{const e={client:this.#c,queryKey:this.queryKey,meta:this.meta};return o(e),e})();return this.#d=!1,this.options.persister?this.options.persister(e,r,this):e(r)},c=(()=>{const e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#c,state:this.state,fetchFn:i};return o(e),e})(),l="infinite"===this.#o?a(this.options.pages):this.options.behavior;l?.onFetch(c,this),this.#i=this.state,"idle"!==this.state.fetchStatus&&this.state.fetchMeta===c.fetchOptions?.meta||this.#h({type:"fetch",meta:c.fetchOptions?.meta}),this.#l=(0,s.II)({initialPromise:t?.initialPromise,fn:c.fetchFn,onCancel:e=>{e instanceof s.cc&&e.revert&&this.setState({...this.#i,fetchStatus:"idle"}),r.abort()},onFail:(e,t)=>{this.#h({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#h({type:"pause"})},onContinue:()=>{this.#h({type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode,canRun:()=>!0});try{const e=await this.#l.start();if(void 0===e)throw new Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#a.config.onSuccess?.(e,this),this.#a.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof s.cc){if(e.silent)return this.#l.promise;if(e.revert){if(void 0===this.state.data)throw e;return this.state.data}}throw this.#h({type:"error",error:e}),this.#a.config.onError?.(e,this),this.#a.config.onSettled?.(this.state.data,e,this),e}finally{this.scheduleGc()}}#h(e){this.state=(t=>{switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,...d(t.data,this.options),fetchMeta:e.meta??null};case"success":const r={...t,...h(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#i=e.manual?r:void 0,r;case"error":const n=e.error;return{...t,error:n,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:n,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),o.jG.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#a.notify({query:this,type:"updated",action:e})})}};function d(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:(0,s.v_)(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}function h(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function f(e){const t="function"==typeof e.initialData?e.initialData():e.initialData,r=void 0!==t,n=r?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}},1269(e,t,r){r.d(t,{$:()=>d});var n=r(8448),o=r(4043),s=r(3763),i=r(6355),a=r(9802),c=r(5228),l=r(8138),u=r(657),d=class extends a.Q{constructor(e,t){super(),this.options=t,this.#c=e,this.#p=null,this.#m=(0,c.T)(),this.bindMethods(),this.setOptions(t)}#c;#g=void 0;#v=void 0;#y=void 0;#b;#w;#m;#p;#S;#C;#x;#R;#O;#E;#j=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#g.addObserver(this),h(this.#g,this.options)?this.#P():this.updateResult(),this.#A())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return f(this.#g,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return f(this.#g,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#k(),this.#I(),this.#g.removeObserver(this)}setOptions(e){const t=this.options,r=this.#g;if(this.options=this.#c.defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof(0,l.nU)(this.options.enabled,this.#g))throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#T(),this.#g.setOptions(this.options),t._defaulted&&!(0,l.f8)(this.options,t)&&this.#c.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#g,observer:this});const n=this.hasListeners();n&&p(this.#g,r,this.options,t)&&this.#P(),this.updateResult(),!n||this.#g===r&&(0,l.nU)(this.options.enabled,this.#g)===(0,l.nU)(t.enabled,this.#g)&&(0,l.d2)(this.options.staleTime,this.#g)===(0,l.d2)(t.staleTime,this.#g)||this.#_();const o=this.#D();!n||this.#g===r&&(0,l.nU)(this.options.enabled,this.#g)===(0,l.nU)(t.enabled,this.#g)&&o===this.#E||this.#q(o)}getOptimisticResult(e){const t=this.#c.getQueryCache().build(this.#c,e),r=this.createResult(t,e);return function(e,t){if(!(0,l.f8)(e.getCurrentResult(),t))return!0;return!1}(this,r)&&(this.#y=r,this.#w=this.options,this.#b=this.#g.state),r}getCurrentResult(){return this.#y}trackResult(e,t){return new Proxy(e,{get:(e,r)=>(this.trackProp(r),t?.(r),"promise"===r&&(this.trackProp("data"),this.options.experimental_prefetchInRender||"pending"!==this.#m.status||this.#m.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(e,r))})}trackProp(e){this.#j.add(e)}getCurrentQuery(){return this.#g}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#c.defaultQueryOptions(e),r=this.#c.getQueryCache().build(this.#c,t);return r.fetch().then(()=>this.createResult(r,t))}fetch(e){return this.#P({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#y))}#P(e){this.#T();let t=this.#g.fetch(this.options,e);return e?.throwOnError||(t=t.catch(l.lQ)),t}#_(){this.#k();const e=(0,l.d2)(this.options.staleTime,this.#g);if(o.H.isServer()||this.#y.isStale||!(0,l.gn)(e))return;const t=(0,l.j3)(this.#y.dataUpdatedAt,e)+1;this.#R=u.zs.setTimeout(()=>{this.#y.isStale||this.updateResult()},t)}#D(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#g):this.options.refetchInterval)??!1}#q(e){this.#I(),this.#E=e,!o.H.isServer()&&!1!==(0,l.nU)(this.options.enabled,this.#g)&&(0,l.gn)(this.#E)&&0!==this.#E&&(this.#O=u.zs.setInterval(()=>
2{(this.options.refetchIntervalInBackground||n.m.isFocused())&&this.#P()},this.#E))}#A(){this.#_(),this.#q(this.#D())}#k(){void 0!==this.#R&&(u.zs.clearTimeout(this.#R),this.#R=void 0)}#I(){void 0!==this.#O&&(u.zs.clearInterval(this.#O),this.#O=void 0)}createResult(e,t){const r=this.#g,n=this.options,o=this.#y,s=this.#b,a=this.#w,u=e!==r?e.state:this.#v,{state:d}=e;let f,g={...d},v=!1;if(t._optimisticResults){const o=this.hasListeners(),s=!o&&h(e,t),a=o&&p(e,r,t,n);(s||a)&&(g={...g,...(0,i.k)(d.data,e.options)}),"isRestoring"===t._optimisticResults&&(g.fetchStatus="idle")}let{error:y,errorUpdatedAt:b,status:w}=g;f=g.data;let S=!1;if(void 0!==t.placeholderData&&void 0===f&&"pending"===w){let e;o?.isPlaceholderData&&t.placeholderData===a?.placeholderData?(e=o.data,S=!0):e="function"==typeof t.placeholderData?t.placeholderData(this.#x?.state.data,this.#x):t.placeholderData,void 0!==e&&(w="success",f=(0,l.pl)(o?.data,e,t),v=!0)}if(t.select&&void 0!==f&&!S)if(o&&f===s?.data&&t.select===this.#S)f=this.#C;else try{this.#S=t.select,f=t.select(f),f=(0,l.pl)(o?.data,f,t),this.#C=f,this.#p=null}catch(e){this.#p=e}this.#p&&(y=this.#p,f=this.#C,b=Date.now(),w="error");const C="fetching"===g.fetchStatus,x="pending"===w,R="error"===w,O=x&&C,E=void 0!==f,j={status:w,fetchStatus:g.fetchStatus,isPending:x,isSuccess:"success"===w,isError:R,isInitialLoading:O,isLoading:O,data:f,dataUpdatedAt:g.dataUpdatedAt,error:y,errorUpdatedAt:b,failureCount:g.fetchFailureCount,failureReason:g.fetchFailureReason,errorUpdateCount:g.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:g.dataUpdateCount>u.dataUpdateCount||g.errorUpdateCount>u.errorUpdateCount,isFetching:C,isRefetching:C&&!x,isLoadingError:R&&!E,isPaused:"paused"===g.fetchStatus,isPlaceholderData:v,isRefetchError:R&&E,isStale:m(e,t),refetch:this.refetch,promise:this.#m,isEnabled:!1!==(0,l.nU)(t.enabled,e)};if(this.options.experimental_prefetchInRender){const t=void 0!==j.data,n="error"===j.status&&!t,o=e=>{n?e.reject(j.error):t&&e.resolve(j.data)},s=()=>{const e=this.#m=j.promise=(0,c.T)();o(e)},i=this.#m;switch(i.status){case"pending":e.queryHash===r.queryHash&&o(i);break;case"fulfilled":(n||j.data!==i.value)&&s();break;case"rejected":n&&j.error===i.reason||s()}}return j}updateResult(){const e=this.#y,t=this.createResult(this.#g,this.options);if(this.#b=this.#g.state,this.#w=this.options,void 0!==this.#b.data&&(this.#x=this.#g),(0,l.f8)(t,e))return;this.#y=t;this.#M({listeners:(()=>{if(!e)return!0;const{notifyOnChangeProps:t}=this.options,r="function"==typeof t?t():t;if("all"===r||!r&&!this.#j.size)return!0;const n=new Set(r??this.#j);return this.options.throwOnError&&n.add("error"),Object.keys(this.#y).some(t=>{const r=t;return this.#y[r]!==e[r]&&n.has(r)})})()})}#T(){const e=this.#c.getQueryCache().build(this.#c,this.options);if(e===this.#g)return;const t=this.#g;this.#g=e,this.#v=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#A()}#M(e){s.jG.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#y)}),this.#c.getQueryCache().notify({query:this.#g,type:"observerResultsUpdated"})})}};function h(e,t){return function(e,t){return!1!==(0,l.nU)(t.enabled,e)&&void 0===e.state.data&&!("error"===e.state.status&&!1===(0,l.nU)(t.retryOnMount,e))}(e,t)||void 0!==e.state.data&&f(e,t,t.refetchOnMount)}function f(e,t,r){if(!1!==(0,l.nU)(t.enabled,e)&&"static"!==(0,l.d2)(t.staleTime,e)){const n="function"==typeof r?r(e):r;return"always"===n||!1!==n&&m(e,t)}return!1}function p(e,t,r,n){return(e!==t||!1===(0,l.nU)(n.enabled,e))&&(!r.suspense||"error"!==e.state.status)&&m(e,r)}function m(e,t){return!1!==(0,l.nU)(t.enabled,e)&&e.isStaleByTime((0,l.d2)(t.staleTime,e))}},1530(e,t,r){r.d(t,{k:()=>i});var n=r(657),o=r(4043),s=r(8138),i=class{#F;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),(0,s.gn)(this.gcTime)&&(this.#F=n.zs.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(o.H.isServer()?1/0:3e5))}clearGcTimeout(){void 0!==this.#F&&(n.zs.clearTimeout(this.#F),this.#F=void 0)}}},6834(e,t,r){r.d(t,{II:()=>d,cc:()=>u,v_:()=>l});var n=r(8448),o=r(1681),s=r(5228),i=r(4043),a=r(8138);function c(e){return Math.min(1e3*2**e,3e4)}function l(e){return"online"!==(e??"online")||o.t.isOnline()}
2var u=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function d(e){let t,r=!1,d=0;const h=(0,s.T)(),f=()=>"pending"!==h.status,p=()=>n.m.isFocused()&&("always"===e.networkMode||o.t.isOnline())&&e.canRun(),m=()=>l(e.networkMode)&&e.canRun(),g=e=>{f()||(t?.(),h.resolve(e))},v=e=>{f()||(t?.(),h.reject(e))},y=()=>new Promise(r=>{t=e=>{(f()||p())&&r(e)},e.onPause?.()}).then(()=>{t=void 0,f()||e.onContinue?.()}),b=()=>{if(f())return;let t;const n=0===d?e.initialPromise:void 0;try{t=n??e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(g).catch(t=>{if(f())return;const n=e.retry??(i.H.isServer()?0:3),o=e.retryDelay??c,s="function"==typeof o?o(d,t):o,l=!0===n||"number"==typeof n&&d<n||"function"==typeof n&&n(d,t);!r&&l?(d++,e.onFail?.(d,t),(0,a.yy)(s).then(()=>p()?void 0:y()).then(()=>{r?v(t):b()})):v(t)})};return{promise:h,status:()=>h.status,cancel:t=>{if(!f()){const r=new u(t);v(r),e.onCancel?.(r)}},continue:()=>(t?.(),h),cancelRetry:()=>{r=!0},continueRetry:()=>{r=!1},canStart:m,start:()=>(m()?b():y().then(b),h)}}},9802(e,t,r){r.d(t,{Q:()=>n});var n=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}},5228(e,t,r){function n(){let e,t;const r=new Promise((r,n)=>{e=r,t=n});function n(e){Object.assign(r,e),delete r.resolve,delete r.reject}return r.status="pending",r.catch(()=>{}),r.resolve=t=>{n({status:"fulfilled",value:t}),e(t)},r.reject=e=>{n({status:"rejected",reason:e}),t(e)},r}r.d(t,{T:()=>n})},657(e,t,r){r.d(t,{Zq:()=>s,zs:()=>o});var n={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},o=new class{#L=n;#U=!1;setTimeoutProvider(e){this.#L=e}setTimeout(e,t){return this.#L.setTimeout(e,t)}clearTimeout(e){this.#L.clearTimeout(e)}setInterval(e,t){return this.#L.setInterval(e,t)}clearInterval(e){this.#L.clearInterval(e)}};function s(e){setTimeout(e,0)}},8138(e,t,r){r.d(t,{BH:()=>v,Cp:()=>m,EN:()=>p,F$:()=>f,GU:()=>A,MK:()=>d,S$:()=>o,ZM:()=>P,ZZ:()=>E,Zw:()=>i,d2:()=>l,f8:()=>y,gn:()=>a,hT:()=>j,j3:()=>c,lQ:()=>s,nJ:()=>h,nU:()=>u,ox:()=>k,pl:()=>x,rX:()=>R,y9:()=>O,yy:()=>C});var n=r(657),o="undefined"==typeof window||"Deno"in globalThis;function s(){}function i(e,t){return"function"==typeof e?e(t):e}function a(e){return"number"==typeof e&&e>=0&&e!==1/0}function c(e,t){return Math.max(e+(t||0)-Date.now(),0)}function l(e,t){return"function"==typeof e?e(t):e}function u(e,t){return"function"==typeof e?e(t):e}function d(e,t){const{type:r="all",exact:n,fetchStatus:o,predicate:s,queryKey:i,stale:a}=e;if(i)if(n){if(t.queryHash!==f(i,t.options))return!1}else if(!m(t.queryKey,i))return!1;if("all"!==r){const e=t.isActive();if("active"===r&&!e)return!1;if("inactive"===r&&e)return!1}return("boolean"!=typeof a||t.isStale()===a)&&((!o||o===t.state.fetchStatus)&&!(s&&!s(t)))}function h(e,t){const{exact:r,status:n,predicate:o,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(r){if(p(t.options.mutationKey)!==p(s))return!1}else if(!m(t.options.mutationKey,s))return!1}return(!n||t.state.status===n)&&!(o&&!o(t))}function f(e,t){return(t?.queryKeyHashFn||p)(e)}function p(e){return JSON.stringify(e,(e,t)=>w(t)?Object.keys(t).sort().reduce((e,r)=>(e[r]=t[r],e),{}):t)}function m(e,t){return e===t||typeof e==typeof t&&(!(!e||!t||"object"!=typeof e||"object"!=typeof t)&&Object.keys(t).every(r=>m(e[r],t[r])))}var g=Object.prototype.hasOwnProperty;function v(e,t,r=0){if(e===t)return e;if(r>500)return t;const n=b(e)&&b(t);if(!(n||w(e)&&w(t)))return t;const o=(n?e:Object.keys(e)).length,s=n?t:Object.keys(t),i=s.length,a=n?new Array(i):{};let c=0;for(let l=0;l<i;l++){const i=n?l:s[l],u=e[i],d=t[i];if(u===d){a[i]=u,(n?l<o:g.call(e,i))&&c++;continue}if(null===u||null===d||"object"!=typeof u||"object"!=typeof d){a[i]=d;continue}const h=v(u,d,r+1);a[i]=h,h===u&&c++}return o===i&&c===o?e:a}function y(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(e[r]!==t[r])return!1;return!0}function b(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function w(e){if(!S(e))return!1;const t=e.constructor;if(void 0===t)return!0;const r=t.prototype;return!!S(r)&&(!!r.hasOwnProperty("isPrototypeOf")&&Object.getPrototypeOf(e)===Object.prototype)}function S(e){return"[object Object]"===Object.prototype.toString.call(e)}function C(e){return new Promise(t=>{n.zs.setTimeout(t,e)})}function x(e,t,r){return"function"==typeof r.structuralSharing?r.structuralSharing(e,t):!1!==r.structuralSharing?v(e,t):t}function R(e){return e}function O(e,t,r=0){const n=[...e,t];return r&&n.length>r?n.slice(1):n}function E(e,t,r=0){const n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var j=Symbol();function P(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:e.queryFn&&e.queryFn!==j?e.queryFn:()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`))}function A(e,t){return"function"==typeof e?e(...t):!!e}function k(e,t,r){let n,o=!1;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(n??=t(),o||(o=!0,n.aborted?r():n.addEventListener("abort",r,{once:!0})),n)}),e}},2124(e,t,r){r.d(t,{w:()=>s});var n=r(758),o=n.createContext(!1),s=()=>n.useContext(o);o.Provider},2610(e,t,r){r.d(t,{Ht:()=>a,jE:()=>i});var n=r(758),o=r(6070),s=n.createContext(void 0),i=e=>{const t=n.useContext(s);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},a=({client:e,children:t})=>(n.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,o.jsx)(s.Provider,{value:e,children:t}))},2223(e,t,r){r.d(t,{h:()=>i});var n=r(758);r(6070);function o(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}
2var s=n.createContext(o()),i=()=>n.useContext(s)},4283(e,t,r){r.d(t,{$1:()=>a,LJ:()=>s,wZ:()=>i});var n=r(758),o=r(8138),s=(e,t,r)=>{const n=r?.state.error&&"function"==typeof e.throwOnError?(0,o.GU)(e.throwOnError,[r.state.error,r]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||n)&&(t.isReset()||(e.retryOnMount=!1))},i=e=>{n.useEffect(()=>{e.clearReset()},[e])},a=({result:e,errorResetBoundary:t,throwOnError:r,query:n,suspense:s})=>e.isError&&!t.isReset()&&!e.isFetching&&n&&(s&&void 0===e.data||(0,o.GU)(r,[e.error,n]))},3782(e,t,r){r.d(t,{EU:()=>s,iL:()=>i,jv:()=>n,nE:()=>o});var n=e=>{if(e.suspense){const t=1e3,r=e=>"static"===e?e:Math.max(e??t,t),n=e.staleTime;e.staleTime="function"==typeof n?(...e)=>r(n(...e)):r(n),"number"==typeof e.gcTime&&(e.gcTime=Math.max(e.gcTime,t))}},o=(e,t)=>e.isLoading&&e.isFetching&&!t,s=(e,t)=>e?.suspense&&t.isPending,i=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()})},6114(e,t,r){r.d(t,{I:()=>f});var n=r(1269),o=r(758),s=r(3763),i=r(8138),a=r(4043),c=r(2610),l=r(2223),u=r(4283),d=r(2124),h=r(3782);function f(e,t){return function(e,t,r){const n=(0,d.w)(),f=(0,l.h)(),p=(0,c.jE)(r),m=p.defaultQueryOptions(e);p.getDefaultOptions().queries?._experimental_beforeQuery?.(m);const g=p.getQueryCache().get(m.queryHash),v=!1!==e.subscribed;m._optimisticResults=n?"isRestoring":v?"optimistic":void 0,(0,h.jv)(m),(0,u.LJ)(m,f,g),(0,u.wZ)(f);const y=!p.getQueryCache().get(m.queryHash),[b]=o.useState(()=>new t(p,m)),w=b.getOptimisticResult(m),S=!n&&v;if(o.useSyncExternalStore(o.useCallback(e=>{const t=S?b.subscribe(s.jG.batchCalls(e)):i.lQ;return b.updateResult(),t},[b,S]),()=>b.getCurrentResult(),()=>b.getCurrentResult()),o.useEffect(()=>{b.setOptions(m)},[m,b]),(0,h.EU)(m,w))throw(0,h.iL)(m,b,f);if((0,u.$1)({result:w,errorResetBoundary:f,throwOnError:m.throwOnError,query:g,suspense:m.suspense}))throw w.error;if(p.getDefaultOptions().queries?._experimental_afterQuery?.(m,w),m.experimental_prefetchInRender&&!a.H.isServer()&&(0,h.nE)(w,n)){const e=y?(0,h.iL)(m,b,f):g?.promise;e?.catch(i.lQ).finally(()=>{b.updateResult()})}return m.notifyOnChangeProps?w:b.trackResult(w)}(e,n.$,t)}},9120(e,t,r){r.d(t,{Gn:()=>p});var n=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","#","$","%","*","+",",","-",".",":",";","=","?","@","[","]","^","_","{","|","}","~"],o=e=>{let t=0;for(let r=0;r<e.length;r++){let o=e[r];t=83*t+n.indexOf(o)}return t},s=e=>{let t=e/255;return t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)},i=e=>{let t=Math.max(0,Math.min(1,e));return t<=.0031308?Math.trunc(12.92*t*255+.5):Math.trunc(255*(1.055*Math.pow(t,.4166666666666667)-.055)+.5)},a=(e,t)=>(e=>e<0?-1:1)(e)*Math.pow(Math.abs(e),t),c=class extends Error{constructor(e){super(e),this.name="ValidationError",this.message=e}},l=e=>{if(!e||e.length<6)throw new c("The blurhash string must be at least 6 characters");let t=o(e[0]),r=Math.floor(t/9)+1,n=t%9+1;if(e.length!==4+2*n*r)throw new c(`blurhash length mismatch: length is ${e.length} but it should be ${4+2*n*r}`)},u=e=>{let t=e>>8&255,r=255&e;return[s(e>>16),s(t),s(r)]},d=(e,t)=>{let r=Math.floor(e/361),n=Math.floor(e/19)%19,o=e%19;return[a((r-9)/9,2)*t,a((n-9)/9,2)*t,a((o-9)/9,2)*t]},h=(e,t,r,n)=>{l(e),n|=1;let s=o(e[0]),a=Math.floor(s/9)+1,c=s%9+1,h=(o(e[1])+1)/166,f=new Array(c*a);for(let t=0;t<f.length;t++)if(0===t){let r=o(e.substring(2,6));f[t]=u(r)}else{let r=o(e.substring(4+2*t,6+2*t));f[t]=d(r,h*n)}let p=4*t,m=new Uint8ClampedArray(p*r);for(let e=0;e<r;e++)for(let n=0;n<t;n++){let o=0,s=0,l=0;for(let i=0;i<a;i++)for(let a=0;a<c;a++){let u=Math.cos(Math.PI*n*a/t)*Math.cos(Math.PI*e*i/r),d=f[a+i*c];o+=d[0]*u,s+=d[1]*u,l+=d[2]*u}let u=i(o),d=i(s),h=i(l);m[4*n+0+e*p]=u,m[4*n+1+e*p]=d,m[4*n+2+e*p]=h,m[4*n+3+e*p]=255}return m};function f(e,t=8,r=8){const n=function(e,t,r){const n=(4-3*t%4)%4,o=new Uint8Array((3*t+n)*r);for(let s=0;s<r;s++)for(let i=0;i<t;i++){const a=4*(s*t+i),c=(r-s-1)*(3*t+n)+3*i;o[c]=e[a+2],o[c+1]=e[a+1],o[c+2]=e[a]}const s=new Uint8Array([66,77,54+o.length,4,0,0,0,0,0,0,54,0,0,0,40,0,0,0,255&t,t>>8&255,t>>16&255,t>>24&255,255&r,r>>8&255,r>>16&255,r>>24&255,1,0,24,0,0,0,0,0,o.length,0,0,0,19,11,0,0,19,11,0,0,0,0,0,0,0,0,0,0]),i=new Uint8Array(s.length+o.length);return i.set(s),i.set(o,s.length),i}(h(e,t,r),t,r);return function(e,t){return`data:${t};base64,${btoa(String.fromCharCode(...e))}`}(n,"image/bmp")}function p(e,t=8,r=8){return{backgroundImage:`url("${f(e,t,r)}")`,backgroundSize:"cover"}}},9593(e,t,r){r.d(t,{uB:()=>F});var n=.999,o=/[\\\/_+.#"@\[\(\{&]/,s=/[\\\/_+.#"@\[\(\{&]/g,i=/[\s-]/,a=/[\s-]/g;function c(e,t,r,l,u,d,h){if(d===t.length)return u===e.length?1:.99;var f=`${u},${d}`;if(void 0!==h[f])return h[f];for(var p,m,g,v,y=l.charAt(d),b=r.indexOf(y,u),w=0;b>=0;)(p=c(e,t,r,l,b+1,d+1,h))>w&&(b===u?p*=1:o.test(e.charAt(b-1))?(p*=.8,(g=e.slice(u,b-1).match(s))&&u>0&&(p*=Math.pow(n,g.length))):i.test(e.charAt(b-1))?(p*=.9,(v=e.slice(u,b-1).match(a))&&u>0&&(p*=Math.pow(n,v.length))):(p*=.17,u>0&&(p*=Math.pow(n,b-u))),e.charAt(b)!==t.charAt(d)&&(p*=.9999)),(p<.1&&r.charAt(b-1)===l.charAt(d+1)||l.charAt(d+1)===l.charAt(d)&&r.charAt(b-1)!==l.charAt(d))&&
2(.1*(m=c(e,t,r,l,b+1,d+2,h))>p&&(p=.1*m)),p>w&&(w=p),b=r.indexOf(y,b+1);return h[f]=w,w}function l(e){return e.toLowerCase().replace(a," ")}function u(e,t,r){return c(e=r&&r.length>0?""+(e+" "+r.join(" ")):e,t,l(e),l(t),0,0,{})}var d=r(9265),h=r(758),f=r(8656),p=r(2748),m=r(5313),g='[cmdk-group=""]',v='[cmdk-group-items=""]',y='[cmdk-item=""]',b=`${y}:not([aria-disabled="true"])`,w="cmdk-item-select",S="data-value",C=(e,t,r)=>u(e,t,r),x=h.createContext(void 0),R=()=>h.useContext(x),O=h.createContext(void 0),E=()=>h.useContext(O),j=h.createContext(void 0),P=h.forwardRef((e,t)=>{let r=z(()=>{var t,r;return{search:"",value:null!=(r=null!=(t=e.value)?t:e.defaultValue)?r:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),n=z(()=>new Set),o=z(()=>new Map),s=z(()=>new Map),i=z(()=>new Set),a=Q(e),{label:c,children:l,value:u,onValueChange:d,filter:m,shouldFilter:R,loop:E,disablePointerSelection:j=!1,vimBindings:P=!0,...A}=e,k=(0,p.B)(),I=(0,p.B)(),T=(0,p.B)(),_=h.useRef(null),D=H();N(()=>{if(void 0!==u){let e=u.trim();r.current.value=e,q.emit()}},[u]),N(()=>{D(6,W)},[]);let q=h.useMemo(()=>({subscribe:e=>(i.current.add(e),()=>i.current.delete(e)),snapshot:()=>r.current,setState:(e,t,n)=>{var o,s,i,c;if(!Object.is(r.current[e],t)){if(r.current[e]=t,"search"===e)$(),G(),D(1,K);else if("value"===e){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let e=document.getElementById(T);e?e.focus():null==(o=document.getElementById(k))||o.focus()}if(D(7,()=>{var e;r.current.selectedItemId=null==(e=Z())?void 0:e.id,q.emit()}),n||D(5,W),void 0!==(null==(s=a.current)?void 0:s.value)){let e=null!=t?t:"";return void(null==(c=(i=a.current).onValueChange)||c.call(i,e))}}q.emit()}},emit:()=>{i.current.forEach(e=>e())}}),[]),M=h.useMemo(()=>({value:(e,t,n)=>{var o;t!==(null==(o=s.current.get(e))?void 0:o.value)&&(s.current.set(e,{value:t,keywords:n}),r.current.filtered.items.set(e,F(t,n)),D(2,()=>{G(),q.emit()}))},item:(e,t)=>(n.current.add(e),t&&(o.current.has(t)?o.current.get(t).add(e):o.current.set(t,new Set([e]))),D(3,()=>{$(),G(),r.current.value||K(),q.emit()}),()=>{s.current.delete(e),n.current.delete(e),r.current.filtered.items.delete(e);let t=Z();D(4,()=>{$(),(null==t?void 0:t.getAttribute("id"))===e&&K(),q.emit()})}),group:e=>(o.current.has(e)||o.current.set(e,new Set),()=>{s.current.delete(e),o.current.delete(e)}),filter:()=>a.current.shouldFilter,label:c||e["aria-label"],getDisablePointerSelection:()=>a.current.disablePointerSelection,listId:k,inputId:T,labelId:I,listInnerRef:_}),[]);function F(e,t){var n,o;let s=null!=(o=null==(n=a.current)?void 0:n.filter)?o:C;return e?s(e,r.current.search,t):0}function G(){if(!r.current.search||!1===a.current.shouldFilter)return;let e=r.current.filtered.items,t=[];r.current.filtered.groups.forEach(r=>{let n=o.current.get(r),s=0;n.forEach(t=>{let r=e.get(t);s=Math.max(r,s)}),t.push([r,s])});let n=_.current;X().sort((t,r)=>{var n,o;let s=t.getAttribute("id"),i=r.getAttribute("id");return(null!=(n=e.get(i))?n:0)-(null!=(o=e.get(s))?o:0)}).forEach(e=>{let t=e.closest(v);t?t.appendChild(e.parentElement===t?e:e.closest(`${v} > *`)):n.appendChild(e.parentElement===n?e:e.closest(`${v} > *`))}),t.sort((e,t)=>t[1]-e[1]).forEach(e=>{var t;let r=null==(t=_.current)?void 0:t.querySelector(`${g}[${S}="${encodeURIComponent(e[0])}"]`);null==r||r.parentElement.appendChild(r)})}function K(){let e=X().find(e=>"true"!==e.getAttribute("aria-disabled")),t=null==e?void 0:e.getAttribute(S);q.setState("value",t||void 0)}function $(){var e,t,i,c;if(!r.current.search||!1===a.current.shouldFilter)return void(r.current.filtered.count=n.current.size);r.current.filtered.groups=new Set;let l=0;for(let o of n.current){let n=F(null!=(t=null==(e=s.current.get(o))?void 0:e.value)?t:"",null!=(c=null==(i=s.current.get(o))?void 0:i.keywords)?c:[]);r.current.filtered.items.set(o,n),n>0&&l++}for(let[e,t]of o.current)for(let n of t)if(r.current.filtered.items.get(n)>0){r.current.filtered.groups.add(e);break}r.current.filtered.count=l}function W(){var e,t,r;let n=Z();n&&((null==(e=n.parentElement)?void 0:e.firstChild)===n&&(null==(r=null==(t=n.closest(g))?void 0:t.querySelector('[cmdk-group-heading=""]'))||r.scrollIntoView({block:"nearest"})),n.scrollIntoView({block:"nearest"}))}function Z(){var e;return null==(e=_.current)?void 0:e.querySelector(`${y}[aria-selected="true"]`)}function X(){var e;return Array.from((null==(e=_.current)?void 0:e.querySelectorAll(b))||[])}function J(e){let t=X()[e];t&&q.setState("value",t.getAttribute(S))}function Y(e){var t;let r=Z(),n=X(),o=n.findIndex(e=>e===r),s=n[o+e];null!=(t=a.current)&&t.loop&&(s=o+e<0?n[n.length-1]:o+e===n.length?n[0]:n[o+e]),s&&q.setState("value",s.getAttribute(S))}function ee(e){let t,r=Z(),n=null==r?void 0:r.closest(g);for(;n&&!t;)n=e>0?L(n,g):U(n,g),t=null==n?void 0:n.querySelector(b);t?q.setState("value",t.getAttribute(S)):Y(e)}let te=()=>J(X().length-1),re=e=>{e.preventDefault(),e.metaKey?te():e.altKey?ee(1):Y(1)},ne=e=>
2{e.preventDefault(),e.metaKey?J(0):e.altKey?ee(-1):Y(-1)};return h.createElement(f.sG.div,{ref:t,tabIndex:-1,...A,"cmdk-root":"",onKeyDown:e=>{var t;null==(t=A.onKeyDown)||t.call(A,e);let r=e.nativeEvent.isComposing||229===e.keyCode;if(!e.defaultPrevented&&!r)switch(e.key){case"n":case"j":P&&e.ctrlKey&&re(e);break;case"ArrowDown":re(e);break;case"p":case"k":P&&e.ctrlKey&&ne(e);break;case"ArrowUp":ne(e);break;case"Home":e.preventDefault(),J(0);break;case"End":e.preventDefault(),te();break;case"Enter":{e.preventDefault();let t=Z();if(t){let e=new Event(w);t.dispatchEvent(e)}}}}},h.createElement("label",{"cmdk-label":"",htmlFor:M.inputId,id:M.labelId,style:B},c),V(e,e=>h.createElement(O.Provider,{value:q},h.createElement(x.Provider,{value:M},e))))}),A=h.forwardRef((e,t)=>{var r,n;let o=(0,p.B)(),s=h.useRef(null),i=h.useContext(j),a=R(),c=Q(e),l=null!=(n=null==(r=c.current)?void 0:r.forceMount)?n:null==i?void 0:i.forceMount;N(()=>{if(!l)return a.item(o,null==i?void 0:i.id)},[l]);let u=K(o,s,[e.value,e.children,s],e.keywords),d=E(),g=G(e=>e.value&&e.value===u.current),v=G(e=>!(!l&&!1!==a.filter())||(!e.search||e.filtered.items.get(o)>0));function y(){var e,t;b(),null==(t=(e=c.current).onSelect)||t.call(e,u.current)}function b(){d.setState("value",u.current,!0)}if(h.useEffect(()=>{let t=s.current;if(t&&!e.disabled)return t.addEventListener(w,y),()=>t.removeEventListener(w,y)},[v,e.onSelect,e.disabled]),!v)return null;let{disabled:S,value:C,onSelect:x,forceMount:O,keywords:P,...A}=e;return h.createElement(f.sG.div,{ref:(0,m.t)(s,t),...A,id:o,"cmdk-item":"",role:"option","aria-disabled":!!S,"aria-selected":!!g,"data-disabled":!!S,"data-selected":!!g,onPointerMove:S||a.getDisablePointerSelection()?void 0:b,onClick:S?void 0:y},e.children)}),k=h.forwardRef((e,t)=>{let{heading:r,children:n,forceMount:o,...s}=e,i=(0,p.B)(),a=h.useRef(null),c=h.useRef(null),l=(0,p.B)(),u=R(),d=G(e=>!(!o&&!1!==u.filter())||(!e.search||e.filtered.groups.has(i)));N(()=>u.group(i),[]),K(i,a,[e.value,e.heading,c]);let g=h.useMemo(()=>({id:i,forceMount:o}),[o]);return h.createElement(f.sG.div,{ref:(0,m.t)(a,t),...s,"cmdk-group":"",role:"presentation",hidden:!d||void 0},r&&h.createElement("div",{ref:c,"cmdk-group-heading":"","aria-hidden":!0,id:l},r),V(e,e=>h.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":r?l:void 0},h.createElement(j.Provider,{value:g},e))))}),I=h.forwardRef((e,t)=>{let{alwaysRender:r,...n}=e,o=h.useRef(null),s=G(e=>!e.search);return r||s?h.createElement(f.sG.div,{ref:(0,m.t)(o,t),...n,"cmdk-separator":"",role:"separator"}):null}),T=h.forwardRef((e,t)=>{let{onValueChange:r,...n}=e,o=null!=e.value,s=E(),i=G(e=>e.search),a=G(e=>e.selectedItemId),c=R();return h.useEffect(()=>{null!=e.value&&s.setState("search",e.value)},[e.value]),h.createElement(f.sG.input,{ref:t,...n,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":c.listId,"aria-labelledby":c.labelId,"aria-activedescendant":a,id:c.inputId,type:"text",value:o?e.value:i,onChange:e=>{o||s.setState("search",e.target.value),null==r||r(e.target.value)}})}),_=h.forwardRef((e,t)=>{let{children:r,label:n="Suggestions",...o}=e,s=h.useRef(null),i=h.useRef(null),a=G(e=>e.selectedItemId),c=R();return h.useEffect(()=>{if(i.current&&s.current){let e,t=i.current,r=s.current,n=new ResizeObserver(()=>{e=requestAnimationFrame(()=>{let e=t.offsetHeight;r.style.setProperty("--cmdk-list-height",e.toFixed(1)+"px")})});return n.observe(t),()=>{cancelAnimationFrame(e),n.unobserve(t)}}},[]),h.createElement(f.sG.div,{ref:(0,m.t)(s,t),...o,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":a,"aria-label":n,id:c.listId},V(e,e=>h.createElement("div",{ref:(0,m.t)(i,c.listInnerRef),"cmdk-list-sizer":""},e)))}),D=h.forwardRef((e,t)=>{let{open:r,onOpenChange:n,overlayClassName:o,contentClassName:s,container:i,...a}=e;return h.createElement(d.bL,{open:r,onOpenChange:n},h.createElement(d.ZL,{container:i},h.createElement(d.hJ,{"cmdk-overlay":"",className:o}),h.createElement(d.UC,{"aria-label":e.label,"cmdk-dialog":"",className:s},h.createElement(P,{ref:t,...a}))))}),q=h.forwardRef((e,t)=>
2G(e=>0===e.filtered.count)?h.createElement(f.sG.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),M=h.forwardRef((e,t)=>{let{progress:r,children:n,label:o="Loading...",...s}=e;return h.createElement(f.sG.div,{ref:t,...s,"cmdk-loading":"",role:"progressbar","aria-valuenow":r,"aria-valuemin":0,"aria-valuemax":100,"aria-label":o},V(e,e=>h.createElement("div",{"aria-hidden":!0},e)))}),F=Object.assign(P,{List:_,Item:A,Input:T,Group:k,Separator:I,Dialog:D,Empty:q,Loading:M});function L(e,t){let r=e.nextElementSibling;for(;r;){if(r.matches(t))return r;r=r.nextElementSibling}}function U(e,t){let r=e.previousElementSibling;for(;r;){if(r.matches(t))return r;r=r.previousElementSibling}}function Q(e){let t=h.useRef(e);return N(()=>{t.current=e}),t}var N="undefined"==typeof window?h.useEffect:h.useLayoutEffect;function z(e){let t=h.useRef();return void 0===t.current&&(t.current=e()),t}function G(e){let t=E(),r=()=>e(t.snapshot());return h.useSyncExternalStore(t.subscribe,r,r)}function K(e,t,r,n=[]){let o=h.useRef(),s=R();return N(()=>{var i;let a=(()=>{var e;for(let t of r){if("string"==typeof t)return t.trim();if("object"==typeof t&&"current"in t)return t.current?null==(e=t.current.textContent)?void 0:e.trim():o.current}})(),c=n.map(e=>e.trim());s.value(e,a,c),null==(i=t.current)||i.setAttribute(S,a),o.current=a}),o}var H=()=>{let[e,t]=h.useState(),r=z(()=>new Map);return N(()=>{r.current.forEach(e=>e()),r.current=new Map},[e]),(e,n)=>{r.current.set(e,n),t({})}};function V({asChild:e,children:t},r){return e&&h.isValidElement(t)?h.cloneElement(function(e){let t=e.type;return"function"==typeof t?t(e.props):"render"in t?t.render(e.props):e}(t),{ref:t.ref},r(t.props.children)):r(t)}var B={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"}},9477(e,t,r){r.d(t,{A:()=>G});var n=r(758);function o(e){return function(e){return"[object Object]"===Object.prototype.toString.call(e)}(e)||Array.isArray(e)}function s(e,t){const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;return JSON.stringify(Object.keys(e.breakpoints||{}))===JSON.stringify(Object.keys(t.breakpoints||{}))&&r.every(r=>{const n=e[r],i=t[r];return"function"==typeof n?`${n}`==`${i}`:o(n)&&o(i)?s(n,i):n===i})}function i(e){return e.concat().sort((e,t)=>e.name>t.name?1:-1).map(e=>e.options)}function a(e){return"number"==typeof e}function c(e){return"string"==typeof e}function l(e){return"boolean"==typeof e}function u(e){return"[object Object]"===Object.prototype.toString.call(e)}function d(e){return Math.abs(e)}function h(e){return Math.sign(e)}function f(e,t){return d(e-t)}function p(e){return b(e).map(Number)}function m(e){return e[g(e)]}function g(e){return Math.max(0,e.length-1)}function v(e,t){return t===g(e)}function y(e,t=0){return Array.from(Array(e),(e,r)=>t+r)}function b(e){return Object.keys(e)}function w(e,t){return[e,t].reduce((e,t)=>(b(t).forEach(r=>{const n=e[r],o=t[r],s=u(n)&&u(o);e[r]=s?w(n,o):o}),e),{})}function S(e,t){return void 0!==t.MouseEvent&&e instanceof t.MouseEvent}function C(){let e=[];const t={add:function(r,n,o,s={passive:!0}){let i;if("addEventListener"in r)r.addEventListener(n,o,s),i=()=>r.removeEventListener(n,o,s);else{const e=r;e.addListener(o),i=()=>e.removeListener(o)}return e.push(i),t},clear:function(){e=e.filter(e=>e())}};return t}function x(e,t,r,n){const o=C(),s=1e3/60;let i=null,a=0,c=0;function l(e){if(!c)return;i||(i=e,r(),r());const o=e-i;for(i=e,a+=o;a>=s;)r(),a-=s;n(a/s),c&&(c=t.requestAnimationFrame(l))}function u(){t.cancelAnimationFrame(c),i=null,a=0,c=0}return{init:function(){o.add(e,"visibilitychange",()=>{e.hidden&&(i=null,a=0)})},destroy:function(){u(),o.clear()},start:function(){c||(c=t.requestAnimationFrame(l))},stop:u,update:r,render:n}}function R(e=0,t=0){const r=d(e-t);function n(t){return t<e}function o(e){return e>t}function s(e){return n(e)||o(e)}return{length:r,max:t,min:e,constrain:function(r){return s(r)?n(r)?e:t:r},reachedAny:s,reachedMax:o,reachedMin:n,removeOffset:function(e){return r?e-r*Math.ceil((e-t)/r):e}}}function O(e,t,r){const{constrain:n}=R(0,e),o=e+1;let s=i(t);function i(e){return r?d((o+e)%o):n(e)}function a(){return s}function c(){return O(e,a(),r)}const l={get:a,set:function(e){return s=i(e),l},add:function(e){return c().set(a()+e)},clone:c};return l}function E(e,t,r,n,o,s,i,a,c,u,p,m,g,v,y,b,w,x,O){const{cross:E,direction:j}=e,P=["INPUT","SELECT","TEXTAREA"],A={passive:!1},k=C(),I=C(),T=R(50,225).constrain(v.measure(20)),_={mouse:300,touch:400},D={mouse:500,touch:600},q=y?43:25;let M=!1,F=0,L=0,U=!1,Q=!1,N=!1,z=!1;function G(e){if(!S(e,n)&&e.touches.length>=2)return K(e);const t=s.readPoint(e),r=s.readPoint(e,E),i=f(t,F),c=f(r,L);if(!Q&&!z){if(!e.cancelable)return K(e);if(Q=i>c,!Q)return K(e)}const l=s.pointerMove(e);i>b&&(N=!0),u.useFriction(.3).useDuration(.75),a.start(),o.add(j(l)),e.preventDefault()}
vendor: 14,777 bytes, line 2
2function K(e){const t=p.byDistance(0,!1).index!==m.get(),r=s.pointerUp(e)*(y?D:_)[z?"mouse":"touch"],n=function(e,t){const r=m.add(-1*h(e)),n=p.byDistance(e,!y).distance;return y||d(e)<T?n:w&&t?.5*n:p.byIndex(r.get(),0).distance}(j(r),t),o=function(e,t){if(0===e||0===t)return 0;if(d(e)<=d(t))return 0;const r=f(d(e),d(t));return d(r/e)}(r,n),i=q-10*o,a=x+o/50;Q=!1,U=!1,I.clear(),u.useDuration(i).useFriction(a),c.distance(n,!y),z=!1,g.emit("pointerUp")}function H(e){N&&(e.stopPropagation(),e.preventDefault(),N=!1)}return{init:function(e){if(!O)return;function a(a){(l(O)||O(e,a))&&function(e){const a=S(e,n);if(z=a,N=y&&a&&!e.buttons&&M,M=f(o.get(),i.get())>=2,a&&0!==e.button)return;if(function(e){const t=e.nodeName||"";return P.includes(t)}(e.target))return;U=!0,s.pointerDown(e),u.useFriction(0).useDuration(0),o.set(i),function(){const e=z?r:t;I.add(e,"touchmove",G,A).add(e,"touchend",K).add(e,"mousemove",G,A).add(e,"mouseup",K)}(),F=s.readPoint(e),L=s.readPoint(e,E),g.emit("pointerDown")}(a)}const c=t;k.add(c,"dragstart",e=>e.preventDefault(),A).add(c,"touchmove",()=>{},A).add(c,"touchend",()=>{}).add(c,"touchstart",a).add(c,"mousedown",a).add(c,"touchcancel",K).add(c,"contextmenu",K).add(c,"click",H,!0)},destroy:function(){k.clear(),I.clear()},pointerDown:function(){return U}}}function j(e,t){let r,n;function o(e){return e.timeStamp}function s(r,n){const o="client"+("x"===(n||e.scroll)?"X":"Y");return(S(r,t)?r:r.touches[0])[o]}return{pointerDown:function(e){return r=e,n=e,s(e)},pointerMove:function(e){const t=s(e)-s(n),i=o(e)-o(r)>170;return n=e,i&&(r=e),t},pointerUp:function(e){if(!r||!n)return 0;const t=s(n)-s(r),i=o(e)-o(r),a=o(e)-o(n)>170,c=t/i;return i&&!a&&d(c)>.1?c:0},readPoint:s}}function P(e,t,r,n,o,s,i){const a=[e].concat(n);let c,u,h=[],f=!1;function p(e){return o.measureSize(i.measure(e))}return{init:function(o){s&&(u=p(e),h=n.map(p),c=new ResizeObserver(r=>{(l(s)||s(o,r))&&function(r){for(const s of r){if(f)return;const r=s.target===e,i=n.indexOf(s.target),a=r?u:h[i];if(d(p(r?e:n[i])-a)>=.5){o.reInit(),t.emit("resize");break}}}(r)}),r.requestAnimationFrame(()=>{a.forEach(e=>c.observe(e))}))},destroy:function(){f=!0,c&&c.disconnect()}}}function A(e,t,r,n,o){const s=o.measure(10),i=o.measure(50),a=R(.1,.99);let c=!1;function l(){return!c&&(!!e.reachedAny(r.get())&&!!e.reachedAny(t.get()))}return{shouldConstrain:l,constrain:function(o){if(!l())return;const c=e.reachedMin(t.get())?"min":"max",u=d(e[c]-t.get()),h=r.get()-t.get(),f=a.constrain(u/i);r.subtract(h*f),!o&&d(h)<s&&(r.set(e.constrain(r.get())),n.useDuration(25).useBaseFriction())},toggleActive:function(e){c=!e}}}function k(e,t,r,n){const o=t.min+.1,s=t.max+.1,{reachedMin:i,reachedMax:a}=R(o,s);return{loop:function(t){if(!function(e){return 1===e?a(r.get()):-1===e&&i(r.get())}(t))return;const o=e*(-1*t);n.forEach(e=>e.add(o))}}}function I(e,t,r,n,o){const{reachedAny:s,removeOffset:i,constrain:a}=n;function c(e){return e.concat().sort((e,t)=>d(e)-d(t))[0]}function l(t,n){const o=[t,t+r,t-r];if(!e)return t;if(!n)return c(o);const s=o.filter(e=>h(e)===n);return s.length?c(s):m(o)-r}return{byDistance:function(r,n){const c=o.get()+r,{index:u,distance:h}=function(r){const n=e?i(r):a(r),o=t.map((e,t)=>({diff:l(e-n,0),index:t})).sort((e,t)=>d(e.diff)-d(t.diff)),{index:s}=o[0];return{index:s,distance:n}}(c),f=!e&&s(c);return!n||f?{index:u,distance:r}:{index:u,distance:r+l(t[u]-h,0)}},byIndex:function(e,r){return{index:e,distance:l(t[e]-o.get(),r)}},shortcut:l}}function T(e,t,r,n,o,s,i,c){const u={passive:!0,capture:!0};let d=0;function h(e){"Tab"===e.code&&(d=(new Date).getTime())}return{init:function(f){c&&(s.add(document,"keydown",h,!1),t.forEach((t,h)=>{s.add(t,"focus",t=>{(l(c)||c(f,t))&&function(t){if((new Date).getTime()-d>10)return;i.emit("slideFocusStart"),e.scrollLeft=0;const s=r.findIndex(e=>e.includes(t));a(s)&&(o.useDuration(0),n.index(s,0),i.emit("slideFocus"))}(h)},u)}))}}}function _(e){let t=e;function r(e){return a(e)?e:e.get()}return{get:function(){return t},set:function(e){t=r(e)},add:function(e){t+=r(e)},subtract:function(e){t-=r(e)}}}function D(e,t){const r="x"===e.scroll?function(e){return`translate3d(${e}px,0px,0px)`}:function(e){return`translate3d(0px,${e}px,0px)`},n=t.style;let o=null,s=!1;return{clear:function(){s||(n.transform="",t.getAttribute("style")||t.removeAttribute("style"))},to:function(t){if(s)return;const i=(a=e.direction(t),Math.round(100*a)/100);var a;i!==o&&(n.transform=r(i),o=i)},toggleActive:function(e){s=!e}}}function q(e,t,r,n,o,s,i,a,c){const l=p(o),u=p(o).reverse(),d=function(){const e=i[0];return m(f(u,e),r,!1)}().concat(function(){const e=t-i[0]-1;return m(f(l,e),-r,!0)}());function h(e,t){return e.reduce((e,t)=>e-o[t],t)}function f(e,t){return e.reduce((e,r)=>h(e,t)>0?e.concat([r]):e,[])}function m(o,i,l){const u=function(e){return s.map((r,o)=>({start:r-n[o]+.5+e,end:r+t-.5+e}))}(i);return o.map(t=>{const n=l?0:-r,o=l?r:0,s=l?"end":"start",i=u[t][s];return{index:t,loopPoint:i,slideLocation:_(-1),translate:D(e,c[t]),target:()=>a.get()>i?n:o}})}return{canLoop:function(){return d.every(({index:e})=>h(l.filter(t=>t!==e),t)<=.1)},clear:function(){d.forEach(e=>e.translate.clear())},loop:function(){d.forEach(e=>{const{target:t,translate:r,slideLocation:n}=e,o=t();o!==n.get()&&(r.to(o),n.set(o))})},loopPoints:d}}function M(e,t,r){let n,o=!1;return{init:function(s){r&&(n=new MutationObserver(e=>{o||(l(r)||r(s,e))&&function(e){for(const r of e)if("childList"===r.type){s.reInit(),t.emit("slidesChanged");break}}(e)}),n.observe(e,{childList:!0}))},destroy:function(){n&&n.disconnect(),o=!0}}}function F(e,t,r,n){const o={};let s,i=null,a=null,c=!1;return{init:function(){s=new IntersectionObserver(e=>{c||(e.forEach(e=>{const r=t.indexOf(e.target);o[r]=e}),i=null,a=null,r.emit("slidesInView"))},{root:e.parentElement,threshold:n}),t.forEach(e=>s.observe(e))},destroy:function(){s&&s.disconnect(),c=!0},get:function(e=!0){if(e&&i)return i;if(!e&&a)return a;const t=function(e){return b(o).reduce((t,r)=>{const n=parseInt(r),{isIntersecting:s}=o[n];return(e&&s||!e&&!s)&&t.push(n),t},[])}(e);return e&&(i=t),e||(a=t),t}}}function L(e,t,r,n,o,s,i,c,l){const{startEdge:u,endEdge:h,direction:f}=e,v=a(r);return{groupSlides:function(e){return v?function(e,t){return p(e).filter(e=>e%t===0).map(r=>e.slice(r,r+t))}(e,r):function(e){return e.length?p(e).reduce((r,a,p)=>{const v=m(r)||0,y=0===v,b=a===g(e),w=o[u]-s[v][u],S=o[u]-s[a][h],C=!n&&y?f(i):0,x=d(S-(!n&&b?f(c):0)-(w+C));return p&&x>t+l&&r.push(a),b&&r.push(e.length),r},[]).map((t,r,n)=>{const o=Math.max(n[r-1]||0);return e.slice(o,t)}):[]}(e)}}}function U(e,t,r,n,o,s,i){const{align:a,axis:l,direction:u,startIndex:b,loop:w,duration:S,dragFree:U,dragThreshold:Q,inViewThreshold:N,slidesToScroll:z,skipSnaps:G,containScroll:K,watchResize:H,watchSlides:V,watchDrag:B,watchFocus:$}=s,W={measure:function(e){const{offsetTop:t,offsetLeft:r,offsetWidth:n,offsetHeight:o}=e;return{top:t,right:r+n,bottom:t+o,left:r,width:n,height:o}}},Z=W.measure(t),X=r.map(W.measure),J=function(e,t){const r="rtl"===t,n="y"===e,o=!n&&r?-1:1;return{scroll:n?"y":"x",cross:n?"x":"y",startEdge:n?"top":r?"right":"left",endEdge:n?"bottom":r?"left":"right",measureSize:function(e){const{height:t,width:r}=e;return n?t:r},direction:function(e){return e*o}}}(l,u),Y=J.measureSize(Z),ee=function(e){return{measure:function(t){return e*(t/100)}}}(Y),te=function(e,t){const r={start:function(){return 0},center:function(e){return n(e)/2},end:n};function n(e){return t-e}return{measure:function(n,o){return c(e)?r[e](n):e(t,n,o)}}}(a,Y),re=!w&&!!K,ne=w||!!K,{slideSizes:oe,slideSizesWithGaps:se,startGap:ie,endGap:ae}=function(e,t,r,n,o,s){const{measureSize:i,startEdge:a,endEdge:c}=e,l=r[0]&&o,u=function(){if(!l)return 0;const e=r[0];return d(t[a]-e[a])}(),h=function(){if(!l)return 0;const e=s.getComputedStyle(m(n));return parseFloat(e.getPropertyValue(`margin-${c}`))}(),f=r.map(i),p=r.map((e,t,r)=>{const n=!t,o=v(r,t);return n?f[t]+u:o?f[t]+h:r[t+1][a]-e[a]}).map(d);return{slideSizes:f,slideSizesWithGaps:p,startGap:u,endGap:h}}(J,Z,X,r,ne,o),ce=L(J,Y,z,w,Z,X,ie,ae,2),{snaps:le,snapsAligned:ue}=function(e,t,r,n,o){const{startEdge:s,endEdge:i}=e,{groupSlides:a}=o,c=a(n).map(e=>m(e)[i]-e[0][s]).map(d).map(t.measure),l=n.map(e=>r[s]-e[s]).map(e=>-d(e)),u=a(l).map(e=>e[0]).map((e,t)=>e+c[t]);return{snaps:l,snapsAligned:u}}(J,te,Z,X,ce),de=-m(le)+m(se),{snapsContained:he,scrollContainLimit:fe}=function(e,t,r,n,o){const s=R(-t+e,0),i=r.map((e,t)=>{const{min:n,max:o}=s,i=s.constrain(e),a=!t,l=v(r,t);return a?o:l||c(n,i)?n:c(o,i)?o:i}).map(e=>parseFloat(e.toFixed(3))),a=function(){const e=i[0],t=m(i);return R(i.lastIndexOf(e),i.indexOf(t)+1)}();function c(e,t){return f(e,t)<=1}return{snapsContained:function(){if(t<=e+o)return[s.max];if("keepSnaps"===n)return i;const{min:r,max:c}=a;return i.slice(r,c)}(),scrollContainLimit:a}}(Y,de,ue,K,2),pe=re?he:ue,{limit:me}=function(e,t,r){const n=t[0];return{limit:R(r?n-e:m(t),n)}}(de,pe,w),ge=O(g(pe),b,w),ve=ge.clone(),ye=p(r),be=x(n,o,()=>(({dragHandler:e,scrollBody:t,scrollBounds:r,options:{loop:n}})=>{n||r.constrain(e.pointerDown()),t.seek()})(_e),e=>(({scrollBody:e,translate:t,location:r,offsetLocation:n,previousLocation:o,scrollLooper:s,slideLooper:i,dragHandler:a,animation:c,eventHandler:l,scrollBounds:u,options:{loop:d}},h)=>{const f=e.settled(),p=!u.shouldConstrain(),m=d?f:f&&p,g=m&&!a.pointerDown();g&&c.stop();const v=r.get()*h+o.get()*(1-h);n.set(v),d&&(s.loop(e.direction()),i.loop()),t.to(n.get()),g&&l.emit("settle"),m||l.emit("scroll")})(_e,e)),we=pe[ge.get()],Se=_(we),Ce=_(we),xe=_(we),Re=_(we),Oe=function(e,t,r,n,o,s){let i=0,a=0,c=o,l=s,u=e.get(),f=0;function p(e){return c=e,g}function m(e){return l=e,g}const g={direction:function(){return a},duration:function(){return c},velocity:function(){return i},seek:function(){const t=n.get()-e.get();let o=0;return c?(r.set(e),i+=t/c,i*=l,u+=i,e.add(i),o=u-f):(i=0,r.set(n),e.set(n),o=t),a=h(o),f=u,g},settled:function(){return d(n.get()-t.get())<.001},useBaseFriction:function(){return m(s)},useBaseDuration:function(){return p(o)},useFriction:m,useDuration:p};return g}(Se,xe,Ce,Re,S,.68),Ee=I(w,pe,de,me,Re),je=function(e,t,r,n,o,s,i){function a(o){const a=o.distance,c=o.index!==t.get();s.add(a),a&&(n.duration()?e.start():(e.update(),e.render(1),e.update())),c&&(r.set(t.get()),t.set(o.index),i.emit("select"))}return{distance:function(e,t){a(o.byDistance(e,t))},index:function(e,r){const n=t.clone().set(e);a(o.byIndex(n.get(),r))}}}(be,ge,ve,Oe,Ee,Re,i),Pe=function(e){const{max:t,length:r}=e;return{get:function(e){return r?(e-t)/-r:0}}}(me),Ae=C(),ke=F(t,r,i,N),{slideRegistry:Ie}=function(e,t,r,n,o,s){const{groupSlides:i}=o,{min:a,max:c}=n;return{slideRegistry:function(){const n=i(s),o=!e||"keepSnaps"===t;return 1===r.length?[s]:o?n:n.slice(a,c).map((e,t,r)=>{const n=!t,o=v(r,t);return n?y(m(r[0])+1):o?y(g(s)-m(r)[0]+1,m(r)[0]):e})}()}}(re,K,pe,fe,ce,ye),Te=T(e,r,Ie,je,Oe,Ae,i,$),_e={ownerDocument:n,ownerWindow:o,eventHandler:i,containerRect:Z,slideRects:X,animation:be,axis:J,dragHandler:E(J,e,n,o,Re,j(J,o),Se,be,je,Oe,Ee,ge,i,ee,U,Q,G,.68,B),eventStore:Ae,percentOfView:ee,index:ge,indexPrevious:ve,limit:me,location:Se,offsetLocation:xe,previousLocation:Ce,options:s,resizeHandler:P(t,i,o,r,J,H,W),scrollBody:Oe,scrollBounds:A(me,xe,Re,Oe,ee),scrollLooper:k(de,me,xe,[Se,xe,Ce,Re]),scrollProgress:Pe,scrollSnapList:pe.map(Pe.get),scrollSnaps:pe,scrollTarget:Ee,scrollTo:je,slideLooper:q(J,Y,de,oe,se,le,pe,xe,r),slideFocus:Te,slidesHandler:M(t,i,V),slidesInView:ke,slideIndexes:ye,slideRegistry:Ie,slidesToScroll:ce,target:Re,translate:D(J,t)};return _e}const Q={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function N(e){function t(e,t){return w(e,t||{})}const r={mergeOptions:t,optionsAtMedia:function(r){const n=r.breakpoints||{},o=b(n).filter(t=>e.matchMedia(t).matches).map(e=>n[e]).reduce((e,r)=>t(e,r),{});return t(r,o)},optionsMediaQueries:function(t){return t.map(e=>b(e.breakpoints||{})).reduce((e,t)=>e.concat(t),[]).map(e.matchMedia)}};return r}function z(e,t,r){const n=e.ownerDocument,o=n.defaultView,s=N(o),i=function(e){let t=[];return{init:function(r,n){return t=n.filter(({options:t})=>!1!==e.optionsAtMedia(t).active),t.forEach(t=>t.init(r,e)),n.reduce((e,t)=>Object.assign(e,{[t.name]:t}),{})},destroy:function(){t=t.filter(e=>e.destroy())}}}(s),a=C(),l=function(){let e,t={};function r(e){return t[e]||[]}const n={init:function(t){e=t},emit:function(t){return r(t).forEach(r=>r(e,t)),n},off:function(e,o){return t[e]=r(e).filter(e=>e!==o),n},on:function(e,o){return t[e]=r(e).concat([o]),n},clear:function(){t={}}};return n}(),{mergeOptions:u,optionsAtMedia:d,optionsMediaQueries:h}=s,{on:f,off:p,emit:m}=l,g=P;let v,y,b,w,S=!1,x=u(Q,z.globalOptions),R=u(x),O=[];function E(t){const r=U(e,b,w,n,o,t,l);if(t.loop&&!r.slideLooper.canLoop()){return E(Object.assign({},t,{loop:!1}))}return r}function j(t,r){S||(x=u(x,t),R=d(x),O=r||O,function(){const{container:t,slides:r}=R,n=c(t)?e.querySelector(t):t;b=n||e.children[0];const o=c(r)?b.querySelectorAll(r):r;w=[].slice.call(o||b.children)}(),v=E(R),h([x,...O.map(({options:e})=>e)]).forEach(e=>a.add(e,"change",P)),R.active&&(v.translate.to(v.location.get()),v.animation.init(),v.slidesInView.init(),v.slideFocus.init(T),v.eventHandler.init(T),v.resizeHandler.init(T),v.slidesHandler.init(T),v.options.loop&&v.slideLooper.loop(),b.offsetParent&&w.length&&v.dragHandler.init(T),y=i.init(T,O)))}function P(e,t){const r=I();A(),j(u({startIndex:r},e),t),l.emit("reInit")}function A(){v.dragHandler.destroy(),v.eventStore.clear(),v.translate.clear(),v.slideLooper.clear(),v.resizeHandler.destroy(),v.slidesHandler.destroy(),v.slidesInView.destroy(),v.animation.destroy(),i.destroy(),a.clear()}function k(e,t,r){R.active&&!S&&(v.scrollBody.useBaseFriction().useDuration(!0===t?0:R.duration),v.scrollTo.index(e,r||0))}function I(){return v.index.get()}const T={canScrollNext:function(){return v.index.add(1).get()!==I()},canScrollPrev:function(){return v.index.add(-1).get()!==I()},containerNode:function(){return b},internalEngine:function(){return v},destroy:function(){S||(S=!0,a.clear(),A(),l.emit("destroy"),l.clear())},off:p,on:f,emit:m,plugins:function(){return y},previousScrollSnap:function(){return v.indexPrevious.get()},reInit:g,rootNode:function(){return e},scrollNext:function(e){k(v.index.add(1).get(),e,-1)},scrollPrev:function(e){k(v.index.add(-1).get(),e,1)},scrollProgress:function(){return v.scrollProgress.get(v.offsetLocation.get())},scrollSnapList:function(){return v.scrollSnapList}
2,scrollTo:k,selectedScrollSnap:I,slideNodes:function(){return w},slidesInView:function(){return v.slidesInView.get()},slidesNotInView:function(){return v.slidesInView.get(!1)}};return j(t,r),setTimeout(()=>l.emit("init"),0),T}function G(e={},t=[]){const r=(0,n.useRef)(e),o=(0,n.useRef)(t),[a,c]=(0,n.useState)(),[l,u]=(0,n.useState)(),d=(0,n.useCallback)(()=>{a&&a.reInit(r.current,o.current)},[a]);return(0,n.useEffect)(()=>{s(r.current,e)||(r.current=e,d())},[e,d]),(0,n.useEffect)(()=>{(function(e,t){if(e.length!==t.length)return!1;const r=i(e),n=i(t);return r.every((e,t)=>s(e,n[t]))})(o.current,t)||(o.current=t,d())},[t,d]),(0,n.useEffect)(()=>{if("undefined"!=typeof window&&window.document&&window.document.createElement&&l){z.globalOptions=G.globalOptions;const e=z(l,r.current,o.current);return c(e),()=>e.destroy()}c(void 0)},[l,c]),[u,a]}z.globalOptions=void 0,G.globalOptions=void 0},2501(e,t,r){function n(e,t){return e===t||null!==e&&null!==t&&("string"!=typeof e&&"string"!=typeof t&&(e.length===t.length&&e.every((e,r)=>e===t[r])))}r.d(t,{t:()=>n})},9742(e,t,r){r.d(t,{a:()=>m,c:()=>s,i:()=>p,l:()=>i,n:()=>h,o:()=>l,r:()=>f,s:()=>c});var n=r(758);const o=function(){if("undefined"==typeof window)return(process.env.DEBUG||"").includes("nuqs");try{const e="nuqs-localStorage-test";if("undefined"==typeof localStorage)return!1;localStorage.setItem(e,e);const t=localStorage.getItem(e)===e;return localStorage.removeItem(e),t&&(localStorage.getItem("debug")||"").includes("nuqs")}catch{return!1}}();function s(e,...t){if(!o)return;const r=function(e,...t){return e.replace(/%[sfdO]/g,e=>{const r=t.shift();return"%O"===e&&r?JSON.stringify(r).replace(/"([^"]+)":/g,"$1:"):String(r)})}(e,...t);performance.mark(r);try{console.log(e,...t)}catch{console.log(r)}}function i(e,...t){o&&console.warn(e,...t)}const a={303:"Multiple adapter contexts detected. This might happen in monorepos.",404:"nuqs requires an adapter to work with your framework.",409:"Multiple versions of the library are loaded. This may lead to unexpected behavior. Currently using `%s`, but `%s` (via the %s adapter) was about to load on top.",414:"Max safe URL length exceeded. Some browsers may not be able to accept this URL. Consider limiting the amount of state stored in the URL.",422:"Invalid options combination: `limitUrlUpdates: debounce` should be used in SSR scenarios, with `shallow: false`",429:"URL update rate-limited by the browser. Consider increasing `throttleMs` for key(s) `%s`. %O",500:"Empty search params cache. Search params can't be accessed in Layouts.",501:"Search params cache already populated. Have you called `parse` twice?"};function c(e){return`[nuqs] ${a[e]}\n See https://nuqs.dev/NUQS-${e}`}function l(e){if(0===e.size)return"";const t=[];for(const[r,n]of e.entries()){const e=r.replace(/#/g,"%23").replace(/&/g,"%26").replace(/\+/g,"%2B").replace(/=/g,"%3D").replace(/\?/g,"%3F");t.push(`${e}=${u(n)}`)}const r="?"+t.join("&");return r}function u(e){return e.replace(/%/g,"%25").replace(/\+/g,"%2B").replace(/ /g,"+").replace(/#/g,"%23").replace(/&/g,"%26").replace(/"/g,"%22").replace(/'/g,"%27").replace(/`/g,"%60").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/[\x00-\x1F]/g,e=>encodeURIComponent(e))}const d=(0,n.createContext)({useAdapter(){throw new Error(c(404))}});function h(e){return({children:t,defaultOptions:r,processUrlSearchParams:o,...s})=>(0,n.createElement)(d.Provider,{...s,value:{useAdapter:e,defaultOptions:r,processUrlSearchParams:o}},t)}function f(e){const t=(0,n.useContext)(d);if(!("useAdapter"in t))throw new Error(c(404));return t.useAdapter(e)}d.displayName="NuqsAdapterContext",o&&"undefined"!=typeof window&&(window.__NuqsAdapterContext&&window.__NuqsAdapterContext!==d&&console.error(c(303)),window.__NuqsAdapterContext=d);const p=()=>(0,n.useContext)(d).defaultOptions,m=()=>(0,n.useContext)(d).processUrlSearchParams},3986(e,t,r){r.d(t,{i:()=>a,n:()=>p,o:()=>s,r:()=>l,s:()=>i,t:()=>g});var n=r(9742),o=r(758);function s(e){return{method:"debounce",timeMs:e}}const i={method:"throttle",timeMs:function(){if("undefined"==typeof window)return 50;if(!Boolean(window.GestureEvent))return 50;try{const e=navigator.userAgent?.match(/version\/([\d\.]+) safari/i);return parseFloat(e[1])>=17?120:320}catch{return 320}}()};function a(e){return null===e||Array.isArray(e)&&0===e.length}function c(e,t,r){if("string"==typeof e)r.set(t,e);else{r.delete(t);for(const n of e)r.append(t,n);r.has(t)||r.set(t,"")}return r}function l(){const e=new Map;return{on(t,r){const n=e.get(t)||[];return n.push(r),e.set(t,n),()=>this.off(t,r)},off(t,r){const n=e.get(t);n&&e.set(t,n.filter(e=>e!==r))}
2,emit(t,r){e.get(t)?.forEach(e=>e(r))}}}function u(e,t,r){const n=setTimeout(function(){e(),r.removeEventListener("abort",o)},t);function o(){clearTimeout(n),r.removeEventListener("abort",o)}r.addEventListener("abort",o)}function d(){const e=Promise;if(Promise.hasOwnProperty("withResolvers"))return Promise.withResolvers();let t=()=>{},r=()=>{};return{promise:new e((e,n)=>{t=e,r=n}),resolve:t,reject:r}}function h(){return new URLSearchParams(location.search)}var f=class{updateMap=new Map;options={history:"replace",scroll:!1,shallow:!0};timeMs=i.timeMs;transitions=new Set;resolvers=null;controller=null;lastFlushedAt=0;resetQueueOnNextPush=!1;push({key:e,query:t,options:r},o=i.timeMs){this.resetQueueOnNextPush&&(this.reset(),this.resetQueueOnNextPush=!1),(0,n.c)("[nuqs gtq] Enqueueing %s=%s %O",e,t,r),this.updateMap.set(e,t),"push"===r.history&&(this.options.history="push"),r.scroll&&(this.options.scroll=!0),!1===r.shallow&&(this.options.shallow=!1),r.startTransition&&this.transitions.add(r.startTransition),(!Number.isFinite(this.timeMs)||o>this.timeMs)&&(this.timeMs=o)}getQueuedQuery(e){return this.updateMap.get(e)}getPendingPromise({getSearchParamsSnapshot:e=h}){return this.resolvers?.promise??Promise.resolve(e())}flush({getSearchParamsSnapshot:e=h,rateLimitFactor:t=1,...r},o){if(this.controller??=new AbortController,!Number.isFinite(this.timeMs))return(0,n.c)("[nuqs gtq] Skipping flush due to throttleMs=Infinity"),Promise.resolve(e());if(this.resolvers)return this.resolvers.promise;this.resolvers=d();const s=()=>{this.lastFlushedAt=performance.now();const[t,n]=this.applyPendingUpdates({...r,autoResetQueueOnUpdate:r.autoResetQueueOnUpdate??!0,getSearchParamsSnapshot:e},o);null===n?(this.resolvers.resolve(t),this.resetQueueOnNextPush=!0):this.resolvers.reject(t),this.resolvers=null};return u(()=>{const e=performance.now()-this.lastFlushedAt,r=this.timeMs,o=t*Math.max(0,r-e);(0,n.c)("[nuqs gtq] Scheduling flush in %f ms. Throttled at %f ms (x%f)",o,r,t),0===o?s():u(s,o,this.controller.signal)},0,this.controller.signal),this.resolvers.promise}abort(){return this.controller?.abort(),this.controller=new AbortController,this.resolvers?.resolve(new URLSearchParams),this.resolvers=null,this.reset()}reset(){const e=Array.from(this.updateMap.keys());return(0,n.c)("[nuqs gtq] Resetting queue %s",JSON.stringify(Object.fromEntries(this.updateMap))),this.updateMap.clear(),this.transitions.clear(),this.options={history:"replace",scroll:!1,shallow:!0},this.timeMs=i.timeMs,e}applyPendingUpdates(e,t){const{updateUrl:r,getSearchParamsSnapshot:o}=e;let s=o();if((0,n.c)("[nuqs gtq] Applying %d pending update(s) on top of %s",this.updateMap.size,s.toString()),0===this.updateMap.size)return[s,null];const i=Array.from(this.updateMap.entries()),a={...this.options},l=Array.from(this.transitions);e.autoResetQueueOnUpdate&&this.reset(),(0,n.c)("[nuqs gtq] Flushing queue %O with options %O",i,a);for(const[e,t]of i)null===t?s.delete(e):s=c(t,e,s);t&&(s=t(s));try{return function(e,t){let r=t;for(let t=e.length-1;t>=0;t--){const n=e[t];if(!n)continue;const o=r;r=()=>n(o)}r()}(l,()=>{r(s,a)}),[s,null]}catch(e){return console.error((0,n.s)(429),i.map(([e])=>e).join(),e),[s,e]}}};const p=new f;var m=class{callback;resolvers=d();controller=new AbortController;queuedValue=void 0;constructor(e){this.callback=e}abort(){this.controller.abort(),this.queuedValue=void 0}push(e,t){return this.queuedValue=e,this.controller.abort(),this.controller=new AbortController,u(()=>{const t=this.resolvers;try{(0,n.c)("[nuqs dq] Flushing debounce queue",e);const r=this.callback(e);(0,n.c)("[nuqs dq] Reset debounce queue %O",this.queuedValue),this.queuedValue=void 0,this.resolvers=d(),r.then(e=>t.resolve(e)).catch(e=>t.reject(e))}catch(e){this.queuedValue=void 0,t.reject(e)}},t,this.controller.signal),this.resolvers.promise}};const g=new class{throttleQueue;queues=new Map;queuedQuerySync=l();constructor(e=new f){this.throttleQueue=e}useQueuedQueries(e){return function(e,t,r){const n=(0,o.useCallback)(()=>{const t=Object.fromEntries(e.map(e=>[e,r(e)]));return[JSON.stringify(t),t]},[e.join(","),r]),s=(0,o.useRef)(null);return null===s.current&&(s.current=n()),(0,o.useSyncExternalStore)((0,o.useCallback)(r=>{const n=e.map(e=>t(e,r));return()=>
2n.forEach(e=>e())},[e.join(","),t]),()=>{const[e,t]=n();return s.current[0]===e?s.current[1]:(s.current=[e,t],t)},()=>s.current[1])}(e,(e,t)=>this.queuedQuerySync.on(e,t),e=>this.getQueuedQuery(e))}push(e,t,r,o){if(!Number.isFinite(t)){const e=r.getSearchParamsSnapshot??h;return Promise.resolve(e())}const s=e.key;if(!this.queues.has(s)){(0,n.c)("[nuqs dqc] Creating debounce queue for `%s`",s);const e=new m(e=>(this.throttleQueue.push(e),this.throttleQueue.flush(r,o).finally(()=>{void 0===this.queues.get(e.key)?.queuedValue&&((0,n.c)("[nuqs dqc] Cleaning up empty queue for `%s`",e.key),this.queues.delete(e.key)),this.queuedQuerySync.emit(e.key)})));this.queues.set(s,e)}(0,n.c)("[nuqs dqc] Enqueueing debounce update %O",e);const i=this.queues.get(s).push(e,t);return this.queuedQuerySync.emit(s),i}abort(e){const t=this.queues.get(e);return t?((0,n.c)("[nuqs dqc] Aborting debounce queue %s=%s",e,t.queuedValue?.query),this.queues.delete(e),t.abort(),this.queuedQuerySync.emit(e),e=>(e.then(t.resolvers.resolve,t.resolvers.reject),e)):e=>e}abortAll(){for(const[e,t]of this.queues.entries())(0,n.c)("[nuqs dqc] Aborting debounce queue %s=%s",e,t.queuedValue?.query),t.abort(),t.resolvers.resolve(new URLSearchParams),this.queuedQuerySync.emit(e);this.queues.clear()}getQueuedQuery(e){const t=this.queues.get(e)?.queuedValue?.query;return void 0!==t?t:this.throttleQueue.getQueuedQuery(e)}}(p)},4371(e,t,r){r.d(t,{GJ:()=>u,M1:()=>h,ZA:()=>y,tU:()=>l,zj:()=>f});var n=r(3986),o=r(9742),s=r(2501),i=r(758);function a(e,t,r){try{return e(t)}catch(e){return(0,o.l)("[nuqs] Error while parsing value `%s`: %O"+(r?" (for key `%s`)":""),t,e,r),null}}function c(e){function t(t){if(void 0===t)return null;let r="";if(Array.isArray(t)){if(void 0===t[0])return null;r=t[0]}return"string"==typeof t&&(r=t),a(e.parse,r)}return{type:"single",eq:(e,t)=>e===t,...e,parseServerSide:t,withDefault(e){return{...this,defaultValue:e,parseServerSide:r=>t(r)??e}},withOptions(e){return{...this,...e}}}}const l=c({parse:e=>e,serialize:String}),u=c({parse:e=>{const t=parseInt(e);return t==t?t:null},serialize:e=>""+Math.round(e)});c({parse:e=>{const t=parseInt(e);return t==t?t-1:null},serialize:e=>""+Math.round(e+1)}),c({parse:e=>{const t=parseInt(e,16);return t==t?t:null},serialize:e=>{const t=Math.round(e).toString(16);return(1&t.length?"0":"")+t}}),c({parse:e=>{const t=parseFloat(e);return t==t?t:null},serialize:String}),c({parse:e=>"true"===e.toLowerCase(),serialize:String});function d(e,t){return e.valueOf()===t.valueOf()}c({parse:e=>{const t=parseInt(e);return t==t?new Date(t):null},serialize:e=>""+e.valueOf(),eq:d}),c({parse:e=>{const t=new Date(e);return t.valueOf()==t.valueOf()?t:null},serialize:e=>e.toISOString(),eq:d}),c({parse:e=>{const t=new Date(e.slice(0,10));return t.valueOf()==t.valueOf()?t:null},serialize:e=>e.toISOString().slice(0,10),eq:d});function h(e){return c({parse:t=>{const r=t;return e.includes(r)?r:null},serialize:String})}function f(e){const t=e.eq??((e,t)=>e===t);return function(e){function t(t){return void 0===t?null:a(e.parse,Array.isArray(t)?t:[t])}return{type:"multi",eq:(e,t)=>e===t,...e,parseServerSide:t,withDefault(e){return{...this,defaultValue:e,parseServerSide:r=>t(r)??e}},withOptions(e){return{...this,...e}}}}({parse:t=>{const r=t.map((t,r)=>a(e.parse,t,`[${r}]`)).filter(e=>null!=e);return 0===r.length?null:r},serialize:t=>(Array.isArray(t)?t:[t]).flatMap(t=>{const r=e.serialize?.(t)??String(t);return"string"==typeof r?[r]:[...r]}),eq:(e,r)=>e===r||e.length===r.length&&e.every((e,n)=>t(e,r[n]))}).withDefault([])}const p=(0,n.r)(),m={};function g(e,t,r,o,i,c){let l=!1;const u=Object.entries(e).reduce((e,[u,d])=>{const h=t?.[u]??u,f=o[h],p="multi"===d.type?[]:null,m=void 0===f?("multi"===d.type?r?.getAll(h):r?.get(h))??p:f;return i&&c&&(0,s.t)(i[h]??p,m)?(e[u]=c[u]??null,e):(l=!0,e[u]=((0,n.i)(m)?null:a(d.parse,m,h))??null,i&&(i[h]=m),e)},{});if(!l){const t=Object.keys(e),r=Object.keys(c??{});l=t.length!==r.length||t.some(e=>!r.includes(e))}return{state:u,hasChanged:l}}function v(e,t){return Object.fromEntries(Object.keys(e).map(r=>[r,e[r]??t[r]??null]))}function y(e,t={}){const{parse:r,type:s,serialize:a,eq:c,defaultValue:l,...u}=t,[{[e]:d},h]=function(e,t={}){const r=(0,i.useId)(),s=(0,o.i)(),a=(0,o.a)(),{history:c="replace",scroll:l=s?.scroll??!1,shallow:u=s?.shallow??!0,throttleMs:d=n.s.timeMs,limitUrlUpdates:h=s?.limitUrlUpdates,clearOnDefault:f=s?.clearOnDefault??!0,startTransition:y,urlKe
2ys:b=m}=t,w=Object.keys(e).join(","),S=(0,i.useMemo)(()=>Object.fromEntries(Object.keys(e).map(e=>[e,b[e]??e])),[w,JSON.stringify(b)]),C=(0,o.r)(Object.values(S)),x=C.searchParams,R=(0,i.useRef)({}),O=(0,i.useMemo)(()=>Object.fromEntries(Object.keys(e).map(t=>[t,e[t].defaultValue??null])),[Object.values(e).map(({defaultValue:e})=>e).join(",")]),E=n.t.useQueuedQueries(Object.values(S)),[j,P]=(0,i.useState)(()=>g(e,b,x??new URLSearchParams,E).state),A=(0,i.useRef)(j);if((0,o.c)("[nuq+ %s `%s`] render - state: %O, iSP: %s",r,w,j,x),Object.keys(R.current).join("&")!==Object.values(S).join("&")){const{state:t,hasChanged:n}=g(e,b,x,E,R.current,A.current);n&&((0,o.c)("[nuq+ %s `%s`] State changed: %O",r,w,{state:t,initialSearchParams:x,queuedQueries:E,queryRef:R.current,stateRef:A.current}),A.current=t,P(t)),R.current=Object.fromEntries(Object.entries(S).map(([t,r])=>[r,"multi"===e[t]?.type?x?.getAll(r):x?.get(r)??null]))}(0,i.useEffect)(()=>{const{state:t,hasChanged:n}=g(e,b,x,E,R.current,A.current);n&&((0,o.c)("[nuq+ %s `%s`] State changed: %O",r,w,{state:t,initialSearchParams:x,queuedQueries:E,queryRef:R.current,stateRef:A.current}),A.current=t,P(t))},[Object.values(S).map(e=>`${e}=${x?.getAll(e)}`).join("&"),JSON.stringify(E)]),(0,i.useEffect)(()=>{const t=Object.keys(e).reduce((t,n)=>(t[n]=({state:t,query:s})=>{P(i=>{const{defaultValue:a}=e[n],c=S[n],l=t??a??null,u=i[n]??a??null;return Object.is(u,l)?((0,o.c)("[nuq+ %s `%s`] Cross-hook key sync %s: %O (default: %O). no change, skipping, resolved: %O",r,w,c,t,a,A.current),i):(A.current={...A.current,[n]:l},R.current[c]=s,(0,o.c)("[nuq+ %s `%s`] Cross-hook key sync %s: %O (default: %O). updateInternalState, resolved: %O",r,w,c,t,a,A.current),A.current)})},t),{});for(const n of Object.keys(e)){const e=S[n];(0,o.c)("[nuq+ %s `%s`] Subscribing to sync for `%s`",r,e,w),p.on(e,t[n])}return()=>{for(const n of Object.keys(e)){const e=S[n];(0,o.c)("[nuq+ %s `%s`] Unsubscribing to sync for `%s`",r,e,w),p.off(e,t[n])}}},[w,S]);const k=(0,i.useCallback)((t,s={})=>{const i=Object.fromEntries(Object.keys(e).map(e=>[e,null])),m="function"==typeof t?t(v(A.current,O))??i:t??i;let g;(0,o.c)("[nuq+ %s `%s`] setState: %O",r,w,m);let b=0,x=!1;const R=[];for(let[t,r]of Object.entries(m)){const i=e[t],m=S[t];if(!i||void 0===r)continue;(s.clearOnDefault??i.clearOnDefault??f)&&null!==r&&void 0!==i.defaultValue&&(i.eq??((e,t)=>e===t))(r,i.defaultValue)&&(r=null);const v=null===r?null:(i.serialize??String)(r);p.emit(m,{state:r,query:v});const w={key:m,query:v,options:{history:s.history??i.history??c,shallow:s.shallow??i.shallow??u,scroll:s.scroll??i.scroll??l,startTransition:s.startTransition??i.startTransition??y}};if("debounce"===s?.limitUrlUpdates?.method||"debounce"===h?.method||"debounce"===i.limitUrlUpdates?.method){!0===w.options.shallow&&console.warn((0,o.s)(422));const e=s?.limitUrlUpdates?.timeMs??h?.timeMs??i.limitUrlUpdates?.timeMs??n.s.timeMs,t=n.t.push(w,e,C,a);b<e&&(g=t,b=e)}else{const e=s?.limitUrlUpdates?.timeMs??i?.limitUrlUpdates?.timeMs??h?.timeMs??s.throttleMs??i.throttleMs??d;R.push(n.t.abort(m)),n.n.push(w,e),x=!0}}const E=R.reduce((e,t)=>t(e),x?n.n.flush(C,a):n.n.getPendingPromise(C));return g??E},[w,c,u,l,d,h?.method,h?.timeMs,y,S,C.updateUrl,C.getSearchParamsSnapshot,C.rateLimitFactor,a,O]);return[(0,i.useMemo)(()=>v(j,O),[j,O]),k]}({[e]:{parse:r??(e=>e),type:s,serialize:a,eq:c,defaultValue:l}},u);return[d,(0,i.useCallback)((t,r={})=>h(r=>({[e]:"function"==typeof t?t(r[e]):t}),r),[e,h])]}}}]); 3//# sourceMappingURL=173.2212760d72daebc92e1e.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.