PageSourceSearch

https://www.beachparkanimalclinic.com/_next/static/chunks/936-6ba570b7953cfd37.js

js beachparkanimalclinic.com collected 2026-10-08 20:32:02 UTC 46,716 bytes, 5 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[936],{4838:(e,t,n)=>{"use strict";n.d(t,{i:()=>a});var r=n(14232),i=n.t(r,2),o=n(81285);i[" useEffectEvent ".trim().toString()],i[" useInsertionEffect ".trim().toString()];var l=i[" useInsertionEffect ".trim().toString()]||o.N;function a({prop:e,defaultProp:t,onChange:n=()=>{},caller:i}){let[o,a,s]=function({defaultProp:e,onChange:t}){let[n,i]=r.useState(e),o=r.useRef(n),a=r.useRef(t);return l(()=>{a.current=t},[t]),r.useEffect(()=>{o.current!==n&&(a.current?.(n),o.current=n)},[n,o]),[n,i,a]}({defaultProp:t,onChange:n}),u=void 0!==e,c=u?e:o;{let t=r.useRef(void 0!==e);r.useEffect(()=>{let e=t.current;if(e!==u){let t=u?"controlled":"uncontrolled";console.warn(`${i} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=u},[u,i])}return[c,r.useCallback(t=>{if(u){let n="function"==typeof t?t(e):t;n!==e&&s.current?.(n)}else a(t)},[u,e,a,s])]}Symbol("RADIX:SYNC_STATE")},10714:(e,t,n)=>{"use strict";n.d(t,{s:()=>l,t:()=>o});var r=n(14232);function i(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function o(...e){return t=>{let n=!1,r=e.map(e=>{let r=i(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():i(e[t],null)}}}}function l(...e){return r.useCallback(o(...e),e)}},14352:(e,t,n)=>{"use strict";n.d(t,{G:()=>z});var r=n(4902),i=n(14232),o="right-scroll-bar-position",l="width-before-scroll-bar",a=n(5783),s=n(25139),u=(0,s.fi)(),c=function(){},d=i.forwardRef(function(e,t){var n=i.useRef(null),o=i.useState({onScrollCapture:c,onWheelCapture:c,onTouchMoveCapture:c}),l=o[0],s=o[1],d=e.forwardProps,f=e.children,p=e.className,h=e.removeScrollBar,m=e.enabled,v=e.shards,y=e.sideCar,g=e.noRelative,b=e.noIsolation,w=e.inert,E=e.allowPinchZoom,C=e.as,x=e.gapMode,R=(0,r.Tt)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),N=(0,a.SV)([n,t]),O=(0,r.Cl)((0,r.Cl)({},R),l);return i.createElement(i.Fragment,null,m&&i.createElement(y,{sideCar:u,removeScrollBar:h,shards:v,noRelative:g,noIsolation:b,inert:w,setCallbacks:s,allowPinchZoom:!!E,lockRef:n,gapMode:x}),d?i.cloneElement(i.Children.only(f),(0,r.Cl)((0,r.Cl)({},O),{ref:N})):i.createElement(void 0===C?"div":C,(0,r.Cl)({},O,{className:p,ref:N}),f))});d.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},d.classNames={fullWidth:l,zeroRight:o};var f=n(94647),p=function(){var e=0,t=null;return{add:function(n){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=(0,f.m)();return t&&e.setAttribute("nonce",t),e}())){var r,i;(r=t).styleSheet?r.styleSheet.cssText=n:r.appendChild(document.createTextNode(n)),i=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(i)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},h=function(){var e=p();return function(t,n){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},m=function(){var e=h();return function(t){return e(t.styles,t.dynamic),null}},v={left:0,top:0,right:0,gap:0},y=function(e){return parseInt(e||"",10)||0},g=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],i=t["padding"===e?"paddingRight":"marginRight"];return[y(n),y(r),y(i)]},b=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return v;var t=g(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},w=m(),E="data-scroll-locked",C=function(e,t,n,r){var i=e.left,a=e.top,s=e.right,u=e.gap;return void 0===n&&(n="margin"),"\n  .".concat("with-scroll-bars-hidden"," {\n   overflow: hidden ").concat(r,";\n   padding-right: ").concat(u,"px ").concat(r,";\n  }\n  body[").concat(E,"] {\n    overflow: hidden ").concat(r,";\n    overscroll-behavior: contain;\n    ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n    padding-left: ".concat(i,"px;\n    padding-top: ").concat(a,"px;\n    padding-right: ").concat(s,"px;\n    margin-left:0;\n    margin-top:0;\n    margin-right: ").concat(u,"px ").concat(r,";\n    "),"padding"===n&&"padding-right: ".concat(u,"px ").concat(r,";
1")].filter(Boolean).join(""),"\n  }\n  \n  .").concat(o," {\n    right: ").concat(u,"px ").concat(r,";\n  }\n  \n  .").concat(l," {\n    margin-right: ").concat(u,"px ").concat(r,";\n  }\n  \n  .").concat(o," .").concat(o," {\n    right: 0 ").concat(r,";\n  }\n  \n  .").concat(l," .").concat(l," {\n    margin-right: 0 ").concat(r,";\n  }\n  \n  body[").concat(E,"] {\n    ").concat("--removed-body-scroll-bar-size",": ").concat(u,"px;\n  }\n")},x=function(){var e=parseInt(document.body.getAttribute(E)||"0",10);return isFinite(e)?e:0},R=function(){i.useEffect(function(){return document.body.setAttribute(E,(x()+1).toString()),function(){var e=x()-1;e<=0?document.body.removeAttribute(E):document.body.setAttribute(E,e.toString())}},[])},N=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r;R();var l=i.useMemo(function(){return b(o)},[o]);return i.createElement(w,{styles:C(l,!t,o,n?"":"!important")})},O=!1;if("undefined"!=typeof window)try{var D=Object.defineProperty({},"passive",{get:function(){return O=!0,!0}});window.addEventListener("test",D,D),window.removeEventListener("test",D,D)}catch(e){O=!1}var A=!!O&&{passive:!1},k=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&(n.overflowY!==n.overflowX||"TEXTAREA"===e.tagName||"visible"!==n[t])},j=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),S(e,r)){var i=I(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},S=function(e,t){return"v"===e?k(t,"overflowY"):k(t,"overflowX")},I=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},P=function(e,t,n,r,i){var o,l=(o=window.getComputedStyle(t).direction,"h"===e&&"rtl"===o?-1:1),a=l*r,s=n.target,u=t.contains(s),c=!1,d=a>0,f=0,p=0;do{if(!s)break;var h=I(e,s),m=h[0],v=h[1]-h[2]-l*m;(m||v)&&S(e,s)&&(f+=v,p+=m);var y=s.parentNode;s=y&&y.nodeType===Node.DOCUMENT_FRAGMENT_NODE?y.host:y}while(!u&&s!==document.body||u&&(t.contains(s)||t===s));return d&&(i&&1>Math.abs(f)||!i&&a>f)?c=!0:!d&&(i&&1>Math.abs(p)||!i&&-a>p)&&(c=!0),c},T=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},L=function(e){return[e.deltaX,e.deltaY]},M=function(e){return e&&"current"in e?e.current:e},_=0,F=[];let W=(0,s.mb)(u,function(e){var t=i.useRef([]),n=i.useRef([0,0]),o=i.useRef(),l=i.useState(_++)[0],a=i.useState(m)[0],s=i.useRef(e);i.useEffect(function(){s.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(l));var t=(0,r.fX)([e.lockRef.current],(e.shards||[]).map(M),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(l))}),function(){document.body.classList.remove("block-interactivity-".concat(l)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(l))})}}},[e.inert,e.lockRef.current,e.shards]);var u=i.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!s.current.allowPinchZoom;var r,i=T(e),l=n.current,a="deltaX"in e?e.deltaX:l[0]-i[0],u="deltaY"in e?e.deltaY:l[1]-i[1],c=e.target,d=Math.abs(a)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var f=window.getSelection(),p=f&&f.anchorNode;if(p&&(p===c||p.contains(c)))return!1;var h=j(d,c);if(!h)return!0;if(h?r=d:(r="v"===d?"h":"v",h=j(d,c)),!h)return!1;if(!o.current&&"changedTouches"in e&&(a||u)&&(o.current=r),!r)return!0;var m=o.current||r;return P(m,t,e,"h"===m?a:u,!0)},[]),c=i.useCallback(function(e){if(F.length&&F[F.length-1]===a){var n="deltaY"in e?L(e):T(e),r=t.current.filter(function(t){var r;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(r=t.delta,r[0]===n[0]&&r[1]===n[1])})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var i=(s.current.shards||[]).map(M).filter(Boolean).filter(function(t){return t.contains(e.target)});(i.length>0?u(e,i[0]):!s.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),d=i.useCallback(function(e,n,r,i){var o={name:e,delta:n,target:r,should:i,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(r)};t.current.push(o),setTimeout(function(){t.current=t.current.filter(function(e){return e!==o})},1)},[]),f=i.useCallback(function(e){n.current=T(e),o.current=void 0},[]),p=i.useCallback(function(t){d(t.type,L(t),t.target,u(t,e.lockRef.current))},[]),h=i.useCallback(function(t){d(t.type,T(t),t.target,u(t,e.lockRef.current))},[]);i.useEffect(function(){return F.push(a),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:h}),document.addEventListener("wheel",c,A),document.addEventListener("touchmove",c,A),document.addEventListener("touchstart",f,A),function(){F=F.filter(function(e){return e!==a}),document.removeEventListener("wheel",c,A),document.removeEventListener("touchmove",c,A),document.removeEventListener("touchstart",f,A)}},[]);var v=e.removeScrollBar,y=e.inert;return i.createElement(i.Fragment,null,y?i.createElement(a,{styles:"\n  .block-interactivity-".concat(l," {pointer-events: none;}\n  .allow-interactivity-").concat(l," {pointer-events: all;}\n")}):null,v?i.createElement(N,{noRelative:e.noRelative,gapMode:e.gapMode}):null)});var V=i.forwardRef(function(e,t){return i.createElement(d,(0,r.Cl)({},e,{ref:t,sideCar:W}))});V.classNames=d.classNames;let z=V},14966:(e,t,n)=>{"use strict";n.d(t,{jH:()=>o});var r=n(14232);n(37876);var i=r.createContext(void 0);function o(e){let t=r.useContext(i);return e||t||"ltr"}},22658:(e,t,n)=>{"use strict";n.d(t,{Oh:()=>o});var r=n(14232),i=0;function o(){r.useEffect(()=>{let e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??l()),document.body.insertAdjacentElement("beforeend",e[1]??l()),i++,()=>{1===i&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e
1=>e.remove()),i--}},[])}function l(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}},23325:(e,t,n)=>{"use strict";n.d(t,{UC:()=>el,Y9:()=>ei,q7:()=>er,bL:()=>en,l9:()=>eo});var r=n(14232),i=n(91844),o=n(33134),l=n(10714),a=n(33716),s=n(4838),u=n(57797),c=n(81285),d=n(96822),f=n(70294),p=n(37876),h="Collapsible",[m,v]=(0,i.A)(h),[y,g]=m(h),b=r.forwardRef((e,t)=>{let{__scopeCollapsible:n,open:i,defaultOpen:o,disabled:l,onOpenChange:a,...c}=e,[d,m]=(0,s.i)({prop:i,defaultProp:o??!1,onChange:a,caller:h});return(0,p.jsx)(y,{scope:n,disabled:l,contentId:(0,f.B)(),open:d,onOpenToggle:r.useCallback(()=>m(e=>!e),[m]),children:(0,p.jsx)(u.sG.div,{"data-state":N(d),"data-disabled":l?"":void 0,...c,ref:t})})});b.displayName=h;var w="CollapsibleTrigger",E=r.forwardRef((e,t)=>{let{__scopeCollapsible:n,...r}=e,i=g(w,n);return(0,p.jsx)(u.sG.button,{type:"button","aria-controls":i.contentId,"aria-expanded":i.open||!1,"data-state":N(i.open),"data-disabled":i.disabled?"":void 0,disabled:i.disabled,...r,ref:t,onClick:(0,a.mK)(e.onClick,i.onOpenToggle)})});E.displayName=w;var C="CollapsibleContent",x=r.forwardRef((e,t)=>{let{forceMount:n,...r}=e,i=g(C,e.__scopeCollapsible);return(0,p.jsx)(d.C,{present:n||i.open,children:({present:e})=>(0,p.jsx)(R,{...r,ref:t,present:e})})});x.displayName=C;var R=r.forwardRef((e,t)=>{let{__scopeCollapsible:n,present:i,children:o,...a}=e,s=g(C,n),[d,f]=r.useState(i),h=r.useRef(null),m=(0,l.s)(t,h),v=r.useRef(0),y=v.current,b=r.useRef(0),w=b.current,E=s.open||d,x=r.useRef(E),R=r.useRef(void 0);return r.useEffect(()=>{let e=requestAnimationFrame(()=>x.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,c.N)(()=>{let e=h.current;if(e){R.current=R.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";let t=e.getBoundingClientRect();v.current=t.height,b.current=t.width,x.current||(e.style.transitionDuration=R.current.transitionDuration,e.style.animationName=R.current.animationName),f(i)}},[s.open,i]),(0,p.jsx)(u.sG.div,{"data-state":N(s.open),"data-disabled":s.disabled?"":void 0,id:s.contentId,hidden:!E,...a,ref:m,style:{"--radix-collapsible-content-height":y?`${y}px`:void 0,"--radix-collapsible-content-width":w?`${w}px`:void 0,...e.style},children:E&&o})});function N(e){return e?"open":"closed"}var O=n(14966),D="Accordion",A=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[k,j,S]=(0,o.N)(D),[I,P]=(0,i.A)(D,[S,v]),T=v(),L=r.forwardRef((e,t)=>{let{type:n,...r}=e;return(0,p.jsx)(k.Provider,{scope:e.__scopeAccordion,children:"multiple"===n?(0,p.jsx)(z,{...r,ref:t}):(0,p.jsx)(V,{...r,ref:t})})});L.displayName=D;var[M,_]=I(D),[F,W]=I(D,{collapsible:!1}),V=r.forwardRef((e,t)=>{let{value:n,defaultValue:i,onValueChange:o=()=>{},collapsible:l=!1,...a}=e,[u,c]=(0,s.i)({prop:n,defaultProp:i??"",onChange:o,caller:D});return(0,p.jsx)(M,{scope:e.__scopeAccordion,value:r.useMemo(()=>u?[u]:[],[u]),onItemOpen:c,onItemClose:r.useCallback(()=>l&&c(""),[l,c]),children:(0,p.jsx)(F,{scope:e.__scopeAccordion,collapsible:l,children:(0,p.jsx)($,{...a,ref:t})})})}),z=r.forwardRef((e,t)=>{let{value:n,defaultValue:i,onValueChange:o=()=>{},...l}=e,[a,u]=(0,s.i)({prop:n,defaultProp:i??[],onChange:o,caller:D}),c=r.useCallback(e=>u(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return[...t,e]}),[u]),d=r.useCallback(e=>u(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return t.filter(t=>t!==e)}),[u]);return(0,p.jsx)(M,{scope:e.__scopeAccordion,value:a,onItemOpen:c,onItemClose:d,children:(0,p.jsx)(F,{scope:e.__scopeAccordion,collapsible:!0,children:(0,p.jsx)($,{...l,ref:t})})})}),[K,B]=I(D),$=r.forwardRef((e,t)=>{let{__scopeAccordion:n,disabled:i,dir:o,orientation:s="vertical",...c}=e,d=r.useRef(null),f=(0,l.s)(d,t),h=j(n),m="ltr"===(0,O.jH)(o),v=(0,a.mK)(e.onKeyDown,e=>{if(!A.includes(e.key))return;let t=e.target,n=h().filter(e=>!e.ref.current?.disabled),r=n.findIndex(e=>e.ref.current===t),i=n.length;if(-1===r)return;e.preventDefault();let o=r,l=i-1,a=()=>{(o=r+1)>l&&(o=0)},u=()=>{(o=r-1)<0&&(o=l)};switch(e.key){case"Home":o=0;break;case"End":o=l;break;case"ArrowRight":"horizontal"===s&&(m?a():u());break;case"ArrowDown":"vertical"===s&&a();break;case"ArrowLeft":"horizontal"===s&&(m?u():a());break;case"ArrowUp":"vertical"===s&&u()}let c=o%i;n[c].ref.current?.focus()});return(0,p.jsx)(K,{scope:n,disabled:i,direction:o,orientation:s,children:(0,p.jsx)(k.Slot,{scope:n,children:(0,p.jsx)(u.sG.div,{...c,"data-orientation":s,ref:f,onKeyDown:i?void 0:v})})})}),U="AccordionItem",[G,X]=I(U),q=r.forwardRef((e,t)=>
1{let{__scopeAccordion:n,value:r,...i}=e,o=B(U,n),l=_(U,n),a=T(n),s=(0,f.B)(),u=r&&l.value.includes(r)||!1,c=o.disabled||e.disabled;return(0,p.jsx)(G,{scope:n,open:u,disabled:c,triggerId:s,children:(0,p.jsx)(b,{"data-orientation":o.orientation,"data-state":et(u),...a,...i,ref:t,disabled:c,open:u,onOpenChange:e=>{e?l.onItemOpen(r):l.onItemClose(r)}})})});q.displayName=U;var Z="AccordionHeader",H=r.forwardRef((e,t)=>{let{__scopeAccordion:n,...r}=e,i=B(D,n),o=X(Z,n);return(0,p.jsx)(u.sG.h3,{"data-orientation":i.orientation,"data-state":et(o.open),"data-disabled":o.disabled?"":void 0,...r,ref:t})});H.displayName=Z;var Y="AccordionTrigger",J=r.forwardRef((e,t)=>{let{__scopeAccordion:n,...r}=e,i=B(D,n),o=X(Y,n),l=W(Y,n),a=T(n);return(0,p.jsx)(k.ItemSlot,{scope:n,children:(0,p.jsx)(E,{"aria-disabled":o.open&&!l.collapsible||void 0,"data-orientation":i.orientation,id:o.triggerId,...a,...r,ref:t})})});J.displayName=Y;var Q="AccordionContent",ee=r.forwardRef((e,t)=>{let{__scopeAccordion:n,...r}=e,i=B(D,n),o=X(Q,n),l=T(n);return(0,p.jsx)(x,{role:"region","aria-labelledby":o.triggerId,"data-orientation":i.orientation,...l,...r,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});function et(e){return e?"open":"closed"}ee.displayName=Q;var en=L,er=q,ei=H,eo=J,el=ee},31893:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(14232),i=n(98477),o=n(57797),l=n(81285),a=n(37876),s=r.forwardRef((e,t)=>{let{container:n,...s}=e,[u,c]=r.useState(!1);(0,l.N)(()=>c(!0),[]);let d=n||u&&globalThis?.document?.body;return d?i.createPortal((0,a.jsx)(o.sG.div,{...s,ref:t}),d):null});s.displayName="Portal"},33134:(e,t,n)=>{"use strict";n.d(t,{N:()=>c});var r=n(14232),i=n(91844),o=n(10714),l=n(37876);function a(e){let t=function(e){let t=r.forwardRef((e,t)=>{let{children:n,...i}=e;if(r.isValidElement(n)){var l;let e,a,s=(l=n,(a=(e=Object.getOwnPropertyDescriptor(l.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?l.ref:(a=(e=Object.getOwnPropertyDescriptor(l,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?l.props.ref:l.props.ref||l.ref),u=function(e,t){let n={...t};for(let r in t){let i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...e)=>{let t=o(...e);return i(...e),t}:i&&(n[r]=i):"style"===r?n[r]={...i,...o}:"className"===r&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}(i,n.props);return n.type!==r.Fragment&&(u.ref=t?(0,o.t)(t,s):s),r.cloneElement(n,u)}return r.Children.count(n)>1?r.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),n=r.forwardRef((e,n)=>{let{children:i,...o}=e,a=r.Children.toArray(i),s=a.find(u);if(s){let e=s.props.children,i=a.map(t=>t!==s?t:r.Children.count(e)>1?r.Children.only(null):r.isValidElement(e)?e.props.children:null);return(0,l.jsx)(t,{...o,ref:n,children:r.isValidElement(e)?r.cloneElement(e,void 0,i):null})}return(0,l.jsx)(t,{...o,ref:n,children:i})});return n.displayName=`${e}.Slot`,n}var s=Symbol("radix.slottable");function u(e){return r.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===s}function c(e){let t=e+"CollectionProvider",[n,s]=(0,i.A)(t),[u,c]=n(t,{collectionRef:{current:null},itemMap:new Map}),d=e=>{let{scope:t,children:n}=e,i=r.useRef(null),o=r.useRef(new Map).current;return(0,l.jsx)(u,{scope:t,itemMap:o,collectionRef:i,children:n})};d.displayName=t;let f=e+"CollectionSlot",p=a(f),h=r.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=c(f,n),a=(0,o.s)(t,i.collectionRef);return(0,l.jsx)(p,{ref:a,children:r})});h.displayName=f;let m=e+"CollectionItemSlot",v="data-radix-collection-item",y=a(m),g=r.forwardRef((e,t)=>{let{scope:n,children:i,...a}=e,s=r.useRef(null),u=(0,o.s)(t,s),d=c(m,n);return r.useEffect(()=>(d.itemMap.set(s,{ref:s,...a}),()=>void d.itemMap.delete(s))),(0,l.jsx)(y,{...{[v]:""},ref:u,children:i})});return g.displayName=m,[{Provider:d,Slot:h,ItemSlot:g},function(t){let n=c(e+"CollectionConsumer",t);return r.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${v}
1]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])},s]}var d=new WeakMap;function f(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);let n=function(e,t){let n=e.length,r=p(t),i=r>=0?r:n+r;return i<0||i>=n?-1:i}(e,t);return -1===n?void 0:e[n]}function p(e){return e!=e||0===e?0:Math.trunc(e)}(class e extends Map{#e;constructor(e){super(e),this.#e=[...super.keys()],d.set(this,!0)}set(e,t){return d.get(this)&&(this.has(e)?this.#e[this.#e.indexOf(e)]=e:this.#e.push(e)),super.set(e,t),this}insert(e,t,n){let r,i=this.has(t),o=this.#e.length,l=p(e),a=l>=0?l:o+l,s=a<0||a>=o?-1:a;if(s===this.size||i&&s===this.size-1||-1===s)return this.set(t,n),this;let u=this.size+ +!i;l<0&&a++;let c=[...this.#e],d=!1;for(let e=a;e<u;e++)if(a===e){let o=c[e];c[e]===t&&(o=c[e+1]),i&&this.delete(t),r=this.get(o),this.set(t,n)}else{d||c[e-1]!==t||(d=!0);let n=c[d?e:e-1],i=r;r=this.get(n),this.delete(n),this.set(n,i)}return this}with(t,n,r){let i=new e(this);return i.insert(t,n,r),i}before(e){let t=this.#e.indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,n){let r=this.#e.indexOf(e);return -1===r?this:this.insert(r,t,n)}after(e){let t=this.#e.indexOf(e);if(-1!==(t=-1===t||t===this.size-1?-1:t+1))return this.entryAt(t)}setAfter(e,t,n){let r=this.#e.indexOf(e);return -1===r?this:this.insert(r+1,t,n)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#e=[],super.clear()}delete(e){let t=super.delete(e);return t&&this.#e.splice(this.#e.indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return void 0!==t&&this.delete(t)}at(e){let t=f(this.#e,e);if(void 0!==t)return this.get(t)}entryAt(e){let t=f(this.#e,e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return f(this.#e,e)}from(e,t){let n=this.indexOf(e);if(-1===n)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.at(r)}keyFrom(e,t){let n=this.indexOf(e);if(-1===n)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.keyAt(r)}find(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return r;n++}}findIndex(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return n;n++}return -1}filter(t,n){let r=[],i=0;for(let e of this)Reflect.apply(t,n,[e,i,this])&&r.push(e),i++;return new e(r)}map(t,n){let r=[],i=0;for(let e of this)r.push([e[0],Reflect.apply(t,n,[e,i,this])]),i++;return new e(r)}reduce(...e){let[t,n]=e,r=0,i=n??this.at(0);for(let n of this)i=0===r&&1===e.length?n:Reflect.apply(t,this,[i,n,r,this]),r++;return i}reduceRight(...e){let[t,n]=e,r=n??this.at(-1);for(let n=this.size-1;n>=0;n--){let i=this.at(n);r=n===this.size-1&&1===e.length?i:Reflect.apply(t,this,[r,i,n,this])}return r}toSorted(t){return new e([...this.entries()].sort(t))}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let n=this.keyAt(e),r=this.get(n);t.set(n,r)}return t}toSpliced(...t){let n=[...this.entries()];return n.splice(...t),new e(n)}slice(t,n){let r=new e,i=this.size-1;if(void 0===t)return r;t<0&&(t+=this.size),void 0!==n&&n>0&&(i=n-1);for(let e=t;e<=i;e++){let t=this.keyAt(e),n=this.get(t);r.set(t,n)}return r}every(e,t){let n=0;for(let r of this){if(!Reflect.apply(e,t,[r,n,this]))return!1;n++}return!0}some(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return!0;n++}return!1}})},33716:(e,t,n)=>{"use strict";function r(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}n.d(t,{mK:()=>r}),"undefined"!=typeof window&&window.document&&window.document.createElement},45105:(e,t,n)=>{e.exports=n(36758)},48230:(e,t,n)=>{e.exports=n(34009)},53764:(e,t,n)=>{"use strict";let r;n.d(t,{DX:()=>l.DX,yN:()=>O,LV:()=>k});var i=n(39668),o=n(98100),l=n(37600);let a=new l.DX,{hasOwnProperty:s}=Object.prototype,u=Array.from||function(e){let t=[];return e.forEach(e=>t.push(e)),t};function c(e){let{unsubscribe:t}=e;"function"==typeof t&&(e.unsubscribe=void 0,t())}let d=[];function f(e,t){if(!e)throw Error(t||"assertion failure")}function p(e,t){let n=e.length;return n>0&&n===t.length&&e[n-1]===t[n-1]}function h(e){switch(e.length){case 0:throw Error("unknown value");case 1:return e[0];case 2:throw e[1]}}class m{constructor(e){this.fn=e,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++m.count}peek(){if(1===this.value.length&&!g(this))return v(this),this.value[0]}recompute(e){var t,n,r;return f(!this.recomputing,"already recomputing"),v(this),g(this)?(t=this,n=e,x(t),a.withValue(t,y,[t,n]),function(e,t){if("function"==typeof e.subscribe)try{c(e),e.unsubscribe=e.subscribe.apply(null,t)}catch(t){return e.setDirty(),!1}return!0}
1(t,n)&&((r=t).dirty=!1,g(r)||function(e){b(e,E)}(r)),h(t.value)):h(this.value)}setDirty(){var e;this.dirty||(this.dirty=!0,e=this,b(e,w),c(this))}dispose(){this.setDirty(),x(this),b(this,(e,t)=>{e.setDirty(),R(e,this)})}forget(){this.dispose()}dependOn(e){e.add(this),this.deps||(this.deps=d.pop()||new Set),this.deps.add(e)}forgetDeps(){this.deps&&(u(this.deps).forEach(e=>e.delete(this)),this.deps.clear(),d.push(this.deps),this.deps=null)}}function v(e){let t=a.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),g(e)?w(t,e):E(t,e),t}function y(e,t){let n;e.recomputing=!0;let{normalizeResult:r}=e;r&&1===e.value.length&&(n=e.value.slice(0)),e.value.length=0;try{if(e.value[0]=e.fn.apply(null,t),r&&n&&!p(n,e.value))try{e.value[0]=r(e.value[0],n[0])}catch(e){}}catch(t){e.value[1]=t}e.recomputing=!1}function g(e){return e.dirty||!!(e.dirtyChildren&&e.dirtyChildren.size)}m.count=0;function b(e,t){let n=e.parents.size;if(n){let r=u(e.parents);for(let i=0;i<n;++i)t(r[i],e)}}function w(e,t){f(e.childValues.has(t)),f(g(t));let n=!g(e);if(e.dirtyChildren){if(e.dirtyChildren.has(t))return}else e.dirtyChildren=d.pop()||new Set;e.dirtyChildren.add(t),n&&b(e,w)}function E(e,t){f(e.childValues.has(t)),f(!g(t));let n=e.childValues.get(t);0===n.length?e.childValues.set(t,t.value.slice(0)):p(n,t.value)||e.setDirty(),C(e,t),g(e)||b(e,E)}function C(e,t){let n=e.dirtyChildren;n&&(n.delete(t),0===n.size&&(d.length<100&&d.push(n),e.dirtyChildren=null))}function x(e){e.childValues.size>0&&e.childValues.forEach((t,n)=>{R(e,n)}),e.forgetDeps(),f(null===e.dirtyChildren)}function R(e,t){t.parents.delete(e),e.childValues.delete(t),C(e,t)}let N={setDirty:!0,dispose:!0,forget:!0};function O(e){let t=new Map,n=e&&e.subscribe;function r(e){let r=a.getValue();if(r){let i=t.get(e);i||t.set(e,i=new Set),r.dependOn(i),"function"==typeof n&&(c(i),i.unsubscribe=n(e))}}return r.dirty=function(e,n){let r=t.get(e);if(r){let i=n&&s.call(N,n)?n:"setDirty";u(r).forEach(e=>e[i]()),t.delete(e),c(r)}},r}function D(...e){return(r||(r=new i.b("function"==typeof WeakMap))).lookupArray(e)}let A=new Set;function k(e,{max:t=65536,keyArgs:n,makeCacheKey:r=D,normalizeResult:i,subscribe:l,cache:s=o.C}=Object.create(null)){let u="function"==typeof s?new s(t,e=>e.dispose()):s,c=function(){let t=r.apply(null,n?n.apply(null,arguments):arguments);if(void 0===t)return e.apply(null,arguments);let o=u.get(t);o||(u.set(t,o=new m(e)),o.normalizeResult=i,o.subscribe=l,o.forget=()=>u.delete(t));let s=o.recompute(Array.prototype.slice.call(arguments));return u.set(t,o),A.add(u),a.hasValue()||(A.forEach(e=>e.clean()),A.clear()),s};function d(e){let t=e&&u.get(e);t&&t.setDirty()}function f(e){let t=e&&u.get(e);if(t)return t.peek()}function p(e){return!!e&&u.delete(e)}return Object.defineProperty(c,"size",{get:()=>u.size,configurable:!1,enumerable:!1}),Object.freeze(c.options={max:t,keyArgs:n,makeCacheKey:r,normalizeResult:i,subscribe:l,cache:u}),c.dirtyKey=d,c.dirty=function(){d(r.apply(null,arguments))},c.peekKey=f,c.peek=function(){return f(r.apply(null,arguments))},c.forgetKey=p,c.forget=function(){return p(r.apply(null,arguments))},c.makeCacheKey=r,c.getKey=n?function(){return r.apply(null,n.apply(null,arguments))}:r,Object.freeze(c)}},54587:(e,t,n)=>{e.exports=n(24468)},57797:(e,t,n)=>{"use strict";n.d(t,{sG:()=>u,hO:()=>c});var r=n(14232),i=n(98477),o=n(10714),l=n(37876),a=Symbol("radix.slottable");function s(e){return r.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===a}var u=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=function(e){let t=function(e){let t=r.forwardRef((e,t)=>{let{children:n,...i}=e;if(r.isValidElement(n)){var l;let e,a,s=(l=n,(a=(e=Object.getOwnPropertyDescriptor(l.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?l.ref:(a=(e=Object.getOwnPropertyDescriptor(l,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?l.props.ref:l.props.ref||l.ref),u=function(e,t){let n={...t};for(let r in t){let i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...e)=>
1{let t=o(...e);return i(...e),t}:i&&(n[r]=i):"style"===r?n[r]={...i,...o}:"className"===r&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}(i,n.props);return n.type!==r.Fragment&&(u.ref=t?(0,o.t)(t,s):s),r.cloneElement(n,u)}return r.Children.count(n)>1?r.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),n=r.forwardRef((e,n)=>{let{children:i,...o}=e,a=r.Children.toArray(i),u=a.find(s);if(u){let e=u.props.children,i=a.map(t=>t!==u?t:r.Children.count(e)>1?r.Children.only(null):r.isValidElement(e)?e.props.children:null);return(0,l.jsx)(t,{...o,ref:n,children:r.isValidElement(e)?r.cloneElement(e,void 0,i):null})}return(0,l.jsx)(t,{...o,ref:n,children:i})});return n.displayName=`${e}.Slot`,n}(`Primitive.${t}`),i=r.forwardRef((e,r)=>{let{asChild:i,...o}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,l.jsx)(i?n:t,{...o,ref:r})});return i.displayName=`Primitive.${t}`,{...e,[t]:i}},{});function c(e,t){e&&i.flushSync(()=>e.dispatchEvent(t))}},62146:(e,t,n)=>{"use strict";n.d(t,{c:()=>i});var r=n(14232);function i(e){let t=r.useRef(e);return r.useEffect(()=>{t.current=e}),r.useMemo(()=>(...e)=>t.current?.(...e),[])}},70294:(e,t,n)=>{"use strict";n.d(t,{B:()=>s});var r,i=n(14232),o=n(81285),l=(r||(r=n.t(i,2)))[" useId ".trim().toString()]||(()=>void 0),a=0;function s(e){let[t,n]=i.useState(l());return(0,o.N)(()=>{e||n(e=>e??String(a++))},[e]),e||(t?`radix-${t}`:"")}},73520:(e,t,n)=>{"use strict";n.d(t,{qW:()=>f});var r,i=n(14232),o=n(33716),l=n(57797),a=n(10714),s=n(62146),u=n(37876),c="dismissableLayer.update",d=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),f=i.forwardRef((e,t)=>{let{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:f,onPointerDownOutside:m,onFocusOutside:v,onInteractOutside:y,onDismiss:g,...b}=e,w=i.useContext(d),[E,C]=i.useState(null),x=E?.ownerDocument??globalThis?.document,[,R]=i.useState({}),N=(0,a.s)(t,e=>C(e)),O=Array.from(w.layers),[D]=[...w.layersWithOutsidePointerEventsDisabled].slice(-1),A=O.indexOf(D),k=E?O.indexOf(E):-1,j=w.layersWithOutsidePointerEventsDisabled.size>0,S=k>=A,I=function(e,t=globalThis?.document){let n=(0,s.c)(e),r=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{let e=e=>{if(e.target&&!r.current){let r=function(){h("dismissableLayer.pointerDownOutside",n,i,{discrete:!0})},i={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",o.current),o.current=r,t.addEventListener("click",o.current,{once:!0})):r()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",e),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}(e=>{let t=e.target,n=[...w.branches].some(e=>e.contains(t));S&&!n&&(m?.(e),y?.(e),e.defaultPrevented||g?.())},x),P=function(e,t=globalThis?.document){let n=(0,s.c)(e),r=i.useRef(!1);return i.useEffect(()=>{let e=e=>{e.target&&!r.current&&h("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}(e=>{let t=e.target;![...w.branches].some(e=>e.contains(t))&&(v?.(e),y?.(e),e.defaultPrevented||g?.())},x);return!function(e,t=globalThis?.document){let n=(0,s.c)(e);i.useEffect(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[n,t])}(e=>{k===w.layers.size-1&&(f?.(e),!e.defaultPrevented&&g&&(e.preventDefault(),g()))},x),i.useEffect(()=>{if(E)return n&&(0===w.layersWithOutsidePointerEventsDisabled.size&&(r=x.body.style.pointerEvents,x.body.style.pointerEvents="none"),w.layersWithOutsidePointerEventsDisabled.add(E)),w.layers.add(E),p(),()=>{n&&1===w.layersWithOutsidePointerEventsDisabled.size&&(x.body.style.pointerEvents=r)}},[E,x,n,w]),i.useEffect(()=>()=>{E&&(w.layers.delete(E),w.layersWithOutsidePointerEventsDisabled.delete(E),p())},[E,w]),i.useEffect(()=>{let e=()=>R({});return document.addEventListener(c,e),()=>document.removeEventListener(c,e)},[]),(0,u.jsx)(l.sG.div,{...b,ref:N,style:{pointerEvents:j?S?"auto":"none":void 0,...e.style},onFocusCapture:(0,o.mK)(e.onFocusCapture,P.onFocusCapture),onBlurCapture:(0,o.mK)(e.onBlurCapture,P.onBlurCapture),onPointerDownCapture:(0,o.mK)(e.onPointerDownCapture,I.onPointerDownCapture)})});function p(){let e=new CustomEvent(c);document.dispatchEvent(e)}function h(e,t,n,{discrete:r}){let i=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?(0,l.hO)(i,o):i.dispatchEvent(o)}f.displayName="DismissableLayer",i.forwardRef((e,t)=>
1{let n=i.useContext(d),r=i.useRef(null),o=(0,a.s)(t,r);return i.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,u.jsx)(l.sG.div,{...e,ref:o})}).displayName="DismissableLayerBranch"},81285:(e,t,n)=>{"use strict";n.d(t,{N:()=>i});var r=n(14232),i=globalThis?.document?r.useLayoutEffect:()=>{}},85152:()=>{},89099:(e,t,n)=>{e.exports=n(16296)},90870:(e,t,n)=>{"use strict";n.d(t,{n:()=>d});var r=n(14232),i=n(10714),o=n(57797),l=n(62146),a=n(37876),s="focusScope.autoFocusOnMount",u="focusScope.autoFocusOnUnmount",c={bubbles:!1,cancelable:!0},d=r.forwardRef((e,t)=>{let{loop:n=!1,trapped:d=!1,onMountAutoFocus:v,onUnmountAutoFocus:y,...g}=e,[b,w]=r.useState(null),E=(0,l.c)(v),C=(0,l.c)(y),x=r.useRef(null),R=(0,i.s)(t,e=>w(e)),N=r.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;r.useEffect(()=>{if(d){let e=function(e){if(N.paused||!b)return;let t=e.target;b.contains(t)?x.current=t:h(x.current,{select:!0})},t=function(e){if(N.paused||!b)return;let t=e.relatedTarget;null!==t&&(b.contains(t)||h(x.current,{select:!0}))};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let n=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&h(b)});return b&&n.observe(b,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[d,b,N.paused]),r.useEffect(()=>{if(b){m.add(N);let e=document.activeElement;if(!b.contains(e)){let t=new CustomEvent(s,c);b.addEventListener(s,E),b.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(h(r,{select:t}),document.activeElement!==n)return}(f(b).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&h(b))}return()=>{b.removeEventListener(s,E),setTimeout(()=>{let t=new CustomEvent(u,c);b.addEventListener(u,C),b.dispatchEvent(t),t.defaultPrevented||h(e??document.body,{select:!0}),b.removeEventListener(u,C),m.remove(N)},0)}}},[b,E,C,N]);let O=r.useCallback(e=>{if(!n&&!d||N.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,r=document.activeElement;if(t&&r){let t=e.currentTarget,[i,o]=function(e){let t=f(e);return[p(t,e),p(t.reverse(),e)]}(t);i&&o?e.shiftKey||r!==o?e.shiftKey&&r===i&&(e.preventDefault(),n&&h(o,{select:!0})):(e.preventDefault(),n&&h(i,{select:!0})):r===t&&e.preventDefault()}},[n,d,N.paused]);return(0,a.jsx)(o.sG.div,{tabIndex:-1,...g,ref:R,onKeyDown:O})});function f(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function p(e,t){for(let n of e)if(!function(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===t||e!==t);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(n,{upTo:t}))return n}function h(e,{select:t=!1}={}){if(e&&e.focus){var n;let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&(n=e)instanceof HTMLInputElement&&"select"in n&&t&&e.select()}}d.displayName="FocusScope";var m=function(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),(e=v(e,t)).unshift(t)},remove(t){e=v(e,t),e[0]?.resume()}}}();function v(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}},91017:(e,t,n)=>{"use strict";n.d(t,{bm:()=>el,UC:()=>er,VY:()=>eo,hJ:()=>en,ZL:()=>et,bL:()=>Q,hE:()=>ei,l9:()=>ee});var r=n(14232),i=n(33716),o=n(10714),l=n(91844),a=n(70294),s=n(4838),u=n(73520),c=n(90870),d=n(31893),f=n(96822),p=n(57797),h=n(22658),m=n(14352),v=n(94769),y=n(37876),g=Symbol("radix.slottable");function b(e){return r.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===g}var w="Dialog",[E,C]=(0,l.A)(w),[x,R]=E(w),N=e=>{let{__scopeDialog:t,children:n,open:i,defaultOpen:o,onOpenChange:l,modal:u=!0}=e,c=r.useRef(null),d=r.useRef(null),[f,p]=(0,s.i)({prop:i,defaultProp:o??!1,onChange:l,caller:w});return(0,y.jsx)(x,{scope:t,triggerRef:c,contentRef:d,contentId:(0,a.B)(),titleId:(0,a.B)(),descriptionId:(0,a.B)(),open:f,onOpenChange:p,onOpenToggle:r.useCallback(()=>p(e=>!e),[p]),modal:u,children:n})};N.displayName=w;var O="DialogTrigger",D=r.forwardRef((e,t)=>
1{let{__scopeDialog:n,...r}=e,l=R(O,n),a=(0,o.s)(t,l.triggerRef);return(0,y.jsx)(p.sG.button,{type:"button","aria-haspopup":"dialog","aria-expanded":l.open,"aria-controls":l.contentId,"data-state":X(l.open),...r,ref:a,onClick:(0,i.mK)(e.onClick,l.onOpenToggle)})});D.displayName=O;var A="DialogPortal",[k,j]=E(A,{forceMount:void 0}),S=e=>{let{__scopeDialog:t,forceMount:n,children:i,container:o}=e,l=R(A,t);return(0,y.jsx)(k,{scope:t,forceMount:n,children:r.Children.map(i,e=>(0,y.jsx)(f.C,{present:n||l.open,children:(0,y.jsx)(d.Z,{asChild:!0,container:o,children:e})}))})};S.displayName=A;var I="DialogOverlay",P=r.forwardRef((e,t)=>{let n=j(I,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,o=R(I,e.__scopeDialog);return o.modal?(0,y.jsx)(f.C,{present:r||o.open,children:(0,y.jsx)(L,{...i,ref:t})}):null});P.displayName=I;var T=function(e){let t=function(e){let t=r.forwardRef((e,t)=>{let{children:n,...i}=e;if(r.isValidElement(n)){var l;let e,a,s=(l=n,(a=(e=Object.getOwnPropertyDescriptor(l.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?l.ref:(a=(e=Object.getOwnPropertyDescriptor(l,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?l.props.ref:l.props.ref||l.ref),u=function(e,t){let n={...t};for(let r in t){let i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let r=o(...t);return i(...t),r}:i&&(n[r]=i):"style"===r?n[r]={...i,...o}:"className"===r&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}(i,n.props);return n.type!==r.Fragment&&(u.ref=t?(0,o.t)(t,s):s),r.cloneElement(n,u)}return r.Children.count(n)>1?r.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),n=r.forwardRef((e,n)=>{let{children:i,...o}=e,l=r.Children.toArray(i),a=l.find(b);if(a){let e=a.props.children,i=l.map(t=>t!==a?t:r.Children.count(e)>1?r.Children.only(null):r.isValidElement(e)?e.props.children:null);return(0,y.jsx)(t,{...o,ref:n,children:r.isValidElement(e)?r.cloneElement(e,void 0,i):null})}return(0,y.jsx)(t,{...o,ref:n,children:i})});return n.displayName=`${e}.Slot`,n}("DialogOverlay.RemoveScroll"),L=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=R(I,n);return(0,y.jsx)(m.G,{as:T,allowPinchZoom:!0,shards:[i.contentRef],children:(0,y.jsx)(p.sG.div,{"data-state":X(i.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),M="DialogContent",_=r.forwardRef((e,t)=>{let n=j(M,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,o=R(M,e.__scopeDialog);return(0,y.jsx)(f.C,{present:r||o.open,children:o.modal?(0,y.jsx)(F,{...i,ref:t}):(0,y.jsx)(W,{...i,ref:t})})});_.displayName=M;var F=r.forwardRef((e,t)=>{let n=R(M,e.__scopeDialog),l=r.useRef(null),a=(0,o.s)(t,n.contentRef,l);return r.useEffect(()=>{let e=l.current;
1if(e)return(0,v.Eq)(e)},[]),(0,y.jsx)(V,{...e,ref:a,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,i.mK)(e.onCloseAutoFocus,e=>{e.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:(0,i.mK)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:(0,i.mK)(e.onFocusOutside,e=>e.preventDefault())})}),W=r.forwardRef((e,t)=>{let n=R(M,e.__scopeDialog),i=r.useRef(!1),o=r.useRef(!1);return(0,y.jsx)(V,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(i.current||n.triggerRef.current?.focus(),t.preventDefault()),i.current=!1,o.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(i.current=!0,"pointerdown"===t.detail.originalEvent.type&&(o.current=!0));let r=t.target;n.triggerRef.current?.contains(r)&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}})}),V=r.forwardRef((e,t)=>{let{__scopeDialog:n,trapFocus:i,onOpenAutoFocus:l,onCloseAutoFocus:a,...s}=e,d=R(M,n),f=r.useRef(null),p=(0,o.s)(t,f);return(0,h.Oh)(),(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(c.n,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:l,onUnmountAutoFocus:a,children:(0,y.jsx)(u.qW,{role:"dialog",id:d.contentId,"aria-describedby":d.descriptionId,"aria-labelledby":d.titleId,"data-state":X(d.open),...s,ref:p,onDismiss:()=>d.onOpenChange(!1)})}),(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(Y,{titleId:d.titleId}),(0,y.jsx)(J,{contentRef:f,descriptionId:d.descriptionId})]})]})}),z="DialogTitle",K=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=R(z,n);return(0,y.jsx)(p.sG.h2,{id:i.titleId,...r,ref:t})});K.displayName=z;var B="DialogDescription",$=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=R(B,n);return(0,y.jsx)(p.sG.p,{id:i.descriptionId,...r,ref:t})});$.displayName=B;var U="DialogClose",G=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=R(U,n);return(0,y.jsx)(p.sG.button,{type:"button",...r,ref:t,onClick:(0,i.mK)(e.onClick,()=>o.onOpenChange(!1))})});function X(e){return e?"open":"closed"}G.displayName=U;var q="DialogTitleWarning",[Z,H]=(0,l.q)(q,{contentName:M,titleName:z,docsSlug:"dialog"}),Y=e=>{let{titleId:t}=e,n=H(q),i=`\`${n.contentName}\` requires a \`${n.titleName}\` for the component to be accessible for screen reader users.
2
3If you want to hide the \`${n.titleName}\`, you can wrap it with our VisuallyHidden component.
4
5For more information, see https://radix-ui.com/primitives/docs/components/${n.docsSlug}`;return r.useEffect(()=>{t&&(document.getElementById(t)||console.error(i))},[i,t]),null},J=e=>{let{contentRef:t,descriptionId:n}=e,i=H("DialogDescriptionWarning"),o=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${i.contentName}}.`;return r.useEffect(()=>{let e=t.current?.getAttribute("aria-describedby");n&&e&&(document.getElementById(n)||console.warn(o))},[o,t,n]),null},Q=N,ee=D,et=S,en=P,er=_,ei=K,eo=$,el=G},91844:(e,t,n)=>{"use strict";n.d(t,{A:()=>l,q:()=>o});var r=n(14232),i=n(37876);function o(e,t){let n=r.createContext(t),o=e=>{let{children:t,...o}=e,l=r.useMemo(()=>o,Object.values(o));return(0,i.jsx)(n.Provider,{value:l,children:t})};return o.displayName=e+"Provider",[o,function(i){let o=r.useContext(n);if(o)return o;if(void 0!==t)return t;throw Error(`\`${i}\` must be used within \`${e}\``)}]}function l(e,t=[]){let n=[],o=()=>{let t=n.map(e=>r.createContext(e));return function(n){let i=n?.[e]||t;return r.useMemo(()=>({[`__scope${e}`]:{...n,[e]:i}}),[n,i])}};return o.scopeName=e,[function(t,o){let l=r.createContext(o),a=n.length;n=[...n,o];let s=t=>{let{scope:n,children:o,...s}=t,u=n?.[e]?.[a]||l,c=r.useMemo(()=>s,Object.values(s));return(0,i.jsx)(u.Provider,{value:c,children:o})};return s.displayName=t+"Provider",[s,function(n,i){let s=i?.[e]?.[a]||l,u=r.useContext(s);if(u)return u;if(void 0!==o)return o;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let i=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return r.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}(o,...t)]}},96822:(e,t,n)=>{"use strict";n.d(t,{C:()=>l});var r=n(14232),i=n(10714),o=n(81285),l=e=>{let{present:t,children:n}=e,l=function(e){var t,n;let[i,l]=r.useState(),s=r.useRef(null),u=r.useRef(e),c=r.useRef("none"),[d,f]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},r.useReducer((e,t)=>
5n[e][t]??e,t));return r.useEffect(()=>{let e=a(s.current);c.current="mounted"===d?e:"none"},[d]),(0,o.N)(()=>{let t=s.current,n=u.current;if(n!==e){let r=c.current,i=a(t);e?f("MOUNT"):"none"===i||t?.display==="none"?f("UNMOUNT"):n&&r!==i?f("ANIMATION_OUT"):f("UNMOUNT"),u.current=e}},[e,f]),(0,o.N)(()=>{if(i){let e,t=i.ownerDocument.defaultView??window,n=n=>{let r=a(s.current).includes(CSS.escape(n.animationName));if(n.target===i&&r&&(f("ANIMATION_END"),!u.current)){let n=i.style.animationFillMode;i.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===i.style.animationFillMode&&(i.style.animationFillMode=n)})}},r=e=>{e.target===i&&(c.current=a(s.current))};return i.addEventListener("animationstart",r),i.addEventListener("animationcancel",n),i.addEventListener("animationend",n),()=>{t.clearTimeout(e),i.removeEventListener("animationstart",r),i.removeEventListener("animationcancel",n),i.removeEventListener("animationend",n)}}f("ANIMATION_END")},[i,f]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:r.useCallback(e=>{s.current=e?getComputedStyle(e):null,l(e)},[])}}(t),s="function"==typeof n?n({present:l.isPresent}):r.Children.only(n),u=(0,i.s)(l.ref,function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(n=(t=Object.getOwnPropertyDescriptor(e,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?e.props.ref:e.props.ref||e.ref}(s));return"function"==typeof n||l.isPresent?r.cloneElement(s,{ref:u}):null};function a(e){return e?.animationName||"none"}l.displayName="Presence"}}]);

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.