PageSourceSearch

https://ideasparkrai.com/_next/static/chunks/848-7d7eab9d445c0b7c.js

js ideasparkrai.com collected 2026-10-02 01:32:02 UTC 45,603 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[848],{9053:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(7401).A)("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]])},8867:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(7401).A)("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},1719:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(7401).A)("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},8485:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(7401).A)("Monitor",[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]])},9191:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(7401).A)("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]])},6954:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(7401).A)("Smartphone",[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]])},5565:(e,t,n)=>{n.d(t,{default:()=>o.a});var r=n(4146),o=n.n(r)},4146:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{default:function(){return u},getImageProps:function(){return l}});let r=n(306),o=n(666),a=n(7970),i=r._(n(5514));function l(e){let{props:t}=(0,o.getImgProps)(e,{defaultLoader:i.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image/",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0}});for(let[e,n]of Object.entries(t))void 0===n&&delete t[e];return{props:t}}let u=a.Image},1685:(e,t,n)=>{n.d(t,{UC:()=>el,Y9:()=>ea,q7:()=>eo,bL:()=>er,l9:()=>ei});var r=n(2115),o=n(8166),a=n(5155),i=n(8068),l=n(2317);function u(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}var c=n(1488),s=n(3360),d=n(6611),f=e=>{let{present:t,children:n}=e,o=function(e){var t,n;let[o,a]=r.useState(),i=r.useRef({}),l=r.useRef(e),u=r.useRef("none"),[c,s]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},r.useReducer((e,t)=>{let r=n[e][t];return null!=r?r:e},t));return r.useEffect(()=>{let e=p(i.current);u.current="mounted"===c?e:"none"},[c]),(0,d.N)(()=>{let t=i.current,n=l.current;if(n!==e){let r=u.current,o=p(t);e?s("MOUNT"):"none"===o||(null==t?void 0:t.display)==="none"?s("UNMOUNT"):n&&r!==o?s("ANIMATION_OUT"):s("UNMOUNT"),l.current=e}},[e,s]),(0,d.N)(()=>{if(o){var e;let t;let n=null!==(e=o.ownerDocument.defaultView)&&void 0!==e?e:window,r=e=>{let r=p(i.current).includes(e.animationName);if(e.target===o&&r&&(s("ANIMATION_END"),!l.current)){let e=o.style.animationFillMode;o.style.animationFillMode="forwards",t=n.setTimeout(()=>{"forwards"===o.style.animationFillMode&&(o.style.animationFillMode=e)})}},a=e=>{e.target===o&&(u.current=p(i.current))};return o.addEventListener("animationstart",a),o.addEventListener("animationcancel",r),o.addEventListener("animationend",r),()=>{n.clearTimeout(t),o.removeEventListener("animationstart",a),o.removeEventListener("animationcancel",r),o.removeEventListener("animationend",r)}}s("ANIMATION_END")},[o,s]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:r.useCallback(e=>{e&&(i.current=getComputedStyle(e)),a(e)},[])}}(t),a="function"==typeof n?n({present:o.isPresent}):r.Children.only(n),l=(0,i.s)(o.ref,function(e){var t,n;let r=null===(t=Object.getOwnPropertyDescriptor(e.props,"ref"))||void 0===t?void 0:t.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?e.ref:(o=(r=null===(n=Object.getOwnPropertyDescriptor(e,"ref"))||void 0===n?void 0:n.get)&&"isReactWarning"in r&&r.isReactWarning)?e.props.ref:e.props.ref||e.ref}(a));return"function"==typeof n||o.isPresent?r.cloneElement(a,{ref:l}):null};function p(e){return(null==e?void 0:e.animationName)||"none"}f.displayName="Presence";var v=n(7668),m="Collapsible",[h,g]=(0,o.A)(m),[y,b]=h(m),w=r.forwardRef((e,t)=>{let{__scopeCollapsible:n,open:o,defaultOpen:i,disabled:l,onOpenChange:u,...d}=e,[f=!1,p]=(0,c.i)({prop:o,defaultProp:i,onChange:u});return(0,a.jsx)(y,{scope:n,disabled:l,contentId:(0,v.B)(),open:f,onOpenToggle:r.useCallback(()=>p(e=>!e),[p]),children:(0,a.jsx)(s.sG.div,{"data-state":A(f),"data-disabled":l?"":void 0,...d,ref:t})})});w.displayName=m;var E="CollapsibleTrigger",N=r.forwardRef((e,t)=>
1{let{__scopeCollapsible:n,...r}=e,o=b(E,n);return(0,a.jsx)(s.sG.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":A(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...r,ref:t,onClick:u(e.onClick,o.onOpenToggle)})});N.displayName=E;var x="CollapsibleContent",C=r.forwardRef((e,t)=>{let{forceMount:n,...r}=e,o=b(x,e.__scopeCollapsible);return(0,a.jsx)(f,{present:n||o.open,children:e=>{let{present:n}=e;return(0,a.jsx)(R,{...r,ref:t,present:n})}})});C.displayName=x;var R=r.forwardRef((e,t)=>{let{__scopeCollapsible:n,present:o,children:l,...u}=e,c=b(x,n),[f,p]=r.useState(o),v=r.useRef(null),m=(0,i.s)(t,v),h=r.useRef(0),g=h.current,y=r.useRef(0),w=y.current,E=c.open||f,N=r.useRef(E),C=r.useRef();return r.useEffect(()=>{let e=requestAnimationFrame(()=>N.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,d.N)(()=>{let e=v.current;if(e){C.current=C.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";let t=e.getBoundingClientRect();h.current=t.height,y.current=t.width,N.current||(e.style.transitionDuration=C.current.transitionDuration,e.style.animationName=C.current.animationName),p(o)}},[c.open,o]),(0,a.jsx)(s.sG.div,{"data-state":A(c.open),"data-disabled":c.disabled?"":void 0,id:c.contentId,hidden:!E,...u,ref:m,style:{"--radix-collapsible-content-height":g?"".concat(g,"px"):void 0,"--radix-collapsible-content-width":w?"".concat(w,"px"):void 0,...e.style},children:E&&l})});function A(e){return e?"open":"closed"}var O=r.createContext(void 0),S="Accordion",j=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[M,P,D]=function(e){let t=e+"CollectionProvider",[n,o]=function(e,t=[]){let n=[],o=()=>{let t=n.map(e=>r.createContext(e));return function(n){let o=n?.[e]||t;return r.useMemo(()=>({[`__scope${e}`]:{...n,[e]:o}}),[n,o])}};return o.scopeName=e,[function(t,o){let i=r.createContext(o),l=n.length;function u(t){let{scope:n,children:o,...u}=t,c=n?.[e][l]||i,s=r.useMemo(()=>u,Object.values(u));return(0,a.jsx)(c.Provider,{value:s,children:o})}return n=[...n,o],u.displayName=t+"Provider",[u,function(n,a){let u=a?.[e][l]||i,c=r.useContext(u);if(c)return c;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 o=n.reduce((t,{useScope:n,scopeName:r})=>{let o=n(e)[`__scope${r}`];return{...t,...o}},{});return r.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}(o,...t)]}(t),[u,c]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=e=>{let{scope:t,children:n}=e,o=r.useRef(null),i=r.useRef(new Map).current;return(0,a.jsx)(u,{scope:t,itemMap:i,collectionRef:o,children:n})};s.displayName=t;let d=e+"CollectionSlot",f=r.forwardRef((e,t)=>{let{scope:n,children:r}=e,o=c(d,n),u=(0,i.s)(t,o.collectionRef);return(0,a.jsx)(l.DX,{ref:u,children:r})});f.displayName=d;let p=e+"CollectionItemSlot",v="data-radix-collection-item",m=r.forwardRef((e,t)=>{let{scope:n,children:o,...u}=e,s=r.useRef(null),d=(0,i.s)(t,s),f=c(p,n);return r.useEffect(()=>(f.itemMap.set(s,{ref:s,...u}),()=>void f.itemMap.delete(s))),(0,a.jsx)(l.DX,{[v]:"",ref:d,children:o})});return m.displayName=p,[{Provider:s,Slot:f,ItemSlot:m},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("[".concat(v,"]")));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])},o]}(S),[I,T]=(0,o.A)(S,[D,g]),k=g(),L=r.forwardRef((e,t)=>{let{type:n,...r}=e;return(0,a.jsx)(M.Provider,{scope:e.__scopeAccordion,children:"multiple"===n?(0,a.jsx)($,{...r,ref:t}):(0,a.jsx)(B,{...r,ref:t})})});L.displayName=S;var[_,F]=I(S),[W,U]=I(S,{collapsible:!1}),B=r.forwardRef((e,t)=>{let{value:n,defaultValue:o,onValueChange:i=()=>{},collapsible:l=!1,...u}=e,[s,d]=(0,c.i)({prop:n,defaultProp:o,onChange:i});return(0,a.jsx)(_,{scope:e.__scopeAccordion,value:s?[s]:[],onItemOpen:d,onItemClose:r.useCallback(()=>l&&d(""),[l,d]),children:(0,a.jsx)(W,{scope:e.__scopeAccordion,collapsible:l,children:(0,a.jsx)(K,{...u,ref:t})})})}),$=r.forwardRef((e,t)=>
1{let{value:n,defaultValue:o,onValueChange:i=()=>{},...l}=e,[u=[],s]=(0,c.i)({prop:n,defaultProp:o,onChange:i}),d=r.useCallback(e=>s(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return[...t,e]}),[s]),f=r.useCallback(e=>s(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return t.filter(t=>t!==e)}),[s]);return(0,a.jsx)(_,{scope:e.__scopeAccordion,value:u,onItemOpen:d,onItemClose:f,children:(0,a.jsx)(W,{scope:e.__scopeAccordion,collapsible:!0,children:(0,a.jsx)(K,{...l,ref:t})})})}),[z,q]=I(S),K=r.forwardRef((e,t)=>{let{__scopeAccordion:n,disabled:o,dir:l,orientation:c="vertical",...d}=e,f=r.useRef(null),p=(0,i.s)(f,t),v=P(n),m="ltr"===function(e){let t=r.useContext(O);return e||t||"ltr"}(l),h=u(e.onKeyDown,e=>{var t;if(!j.includes(e.key))return;let n=e.target,r=v().filter(e=>{var t;return!(null===(t=e.ref.current)||void 0===t?void 0:t.disabled)}),o=r.findIndex(e=>e.ref.current===n),a=r.length;if(-1===o)return;e.preventDefault();let i=o,l=a-1,u=()=>{(i=o+1)>l&&(i=0)},s=()=>{(i=o-1)<0&&(i=l)};switch(e.key){case"Home":i=0;break;case"End":i=l;break;case"ArrowRight":"horizontal"===c&&(m?u():s());break;case"ArrowDown":"vertical"===c&&u();break;case"ArrowLeft":"horizontal"===c&&(m?s():u());break;case"ArrowUp":"vertical"===c&&s()}null===(t=r[i%a].ref.current)||void 0===t||t.focus()});return(0,a.jsx)(z,{scope:n,disabled:o,direction:l,orientation:c,children:(0,a.jsx)(M.Slot,{scope:n,children:(0,a.jsx)(s.sG.div,{...d,"data-orientation":c,ref:p,onKeyDown:o?void 0:h})})})}),G="AccordionItem",[V,X]=I(G),H=r.forwardRef((e,t)=>{let{__scopeAccordion:n,value:r,...o}=e,i=q(G,n),l=F(G,n),u=k(n),c=(0,v.B)(),s=r&&l.value.includes(r)||!1,d=i.disabled||e.disabled;return(0,a.jsx)(V,{scope:n,open:s,disabled:d,triggerId:c,children:(0,a.jsx)(w,{"data-orientation":i.orientation,"data-state":en(s),...u,...o,ref:t,disabled:d,open:s,onOpenChange:e=>{e?l.onItemOpen(r):l.onItemClose(r)}})})});H.displayName=G;var Y="AccordionHeader",Z=r.forwardRef((e,t)=>{let{__scopeAccordion:n,...r}=e,o=q(S,n),i=X(Y,n);return(0,a.jsx)(s.sG.h3,{"data-orientation":o.orientation,"data-state":en(i.open),"data-disabled":i.disabled?"":void 0,...r,ref:t})});Z.displayName=Y;var J="AccordionTrigger",Q=r.forwardRef((e,t)=>{let{__scopeAccordion:n,...r}=e,o=q(S,n),i=X(J,n),l=U(J,n),u=k(n);return(0,a.jsx)(M.ItemSlot,{scope:n,children:(0,a.jsx)(N,{"aria-disabled":i.open&&!l.collapsible||void 0,"data-orientation":o.orientation,id:i.triggerId,...u,...r,ref:t})})});Q.displayName=J;var ee="AccordionContent",et=r.forwardRef((e,t)=>{let{__scopeAccordion:n,...r}=e,o=q(S,n),i=X(ee,n),l=k(n);return(0,a.jsx)(C,{role:"region","aria-labelledby":i.triggerId,"data-orientation":o.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 en(e){return e?"open":"closed"}et.displayName=ee;var er=L,eo=H,ea=Z,ei=Q,el=et},4920:(e,t,n)=>{n.d(t,{H4:()=>E,_V:()=>w,bL:()=>b});var r=n(2115),o=n(8166),a=n(1524),i=n(6611),l=n(3360),u=n(5155),c="Avatar",[s,d]=(0,o.A)(c),[f,p]=s(c),v=r.forwardRef((e,t)=>{let{__scopeAvatar:n,...o}=e,[a,i]=r.useState("idle");return(0,u.jsx)(f,{scope:n,imageLoadingStatus:a,onImageLoadingStatusChange:i,children:(0,u.jsx)(l.sG.span,{...o,ref:t})})});v.displayName=c;var m="AvatarImage",h=r.forwardRef((e,t)=>{let{__scopeAvatar:n,src:o,onLoadingStatusChange:c=()=>{},...s}=e,d=p(m,n),f=function(e,t){let[n,o]=r.useState("idle");return(0,i.N)(()=>{if(!e){o("error");return}let n=!0,r=new window.Image,a=e=>()=>{n&&o(e)};return o("loading"),r.onload=a("loaded"),r.onerror=a("error"),r.src=e,t&&(r.referrerPolicy=t),()=>{n=!1}},[e,t]),n}(o,s.referrerPolicy),v=(0,a.c)(e=>{c(e),d.onImageLoadingStatusChange(e)});return(0,i.N)(()=>{"idle"!==f&&v(f)},[f,v]),"loaded"===f?(0,u.jsx)(l.sG.img,{...s,ref:t,src:o}):null});h.displayName=m;var g="AvatarFallback",y=r.forwardRef((e,t)=>{let{__scopeAvatar:n,delayMs:o,...a}=e,i=p(g,n),[c,s]=r.useState(void 0===o);return r.useEffect(()=>{if(void 0!==o){let e=window.setTimeout(()=>s(!0),o);return()=>window.clearTimeout(e)}},[o]),c&&"loaded"!==i.imageLoadingStatus?(0,u.jsx)(l.sG.span,{...a,ref:t}):null});y.displayName=g;var b=v,w=h,E=y},8166:(e,t,n)=>{n.d(t,{A:()=>i,q:()=>a});var r=n(2115),o=n(5155);function a(e,t){let n=r.createContext(t),a=e=>{let{children:t,...a}=e,i=r.useMemo(()=>a,Object.values(a));return(0,o.jsx)(n.Provider,{value:i,children:t})};return a.displayName=e+"Provider",[a,function(o){let a=r.useContext(n);if(a)return a;
1if(void 0!==t)return t;throw Error(`\`${o}\` must be used within \`${e}\``)}]}function i(e,t=[]){let n=[],a=()=>{let t=n.map(e=>r.createContext(e));return function(n){let o=n?.[e]||t;return r.useMemo(()=>({[`__scope${e}`]:{...n,[e]:o}}),[n,o])}};return a.scopeName=e,[function(t,a){let i=r.createContext(a),l=n.length;n=[...n,a];let u=t=>{let{scope:n,children:a,...u}=t,c=n?.[e]?.[l]||i,s=r.useMemo(()=>u,Object.values(u));return(0,o.jsx)(c.Provider,{value:s,children:a})};return u.displayName=t+"Provider",[u,function(n,o){let u=o?.[e]?.[l]||i,c=r.useContext(u);if(c)return c;if(void 0!==a)return a;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 o=n.reduce((t,{useScope:n,scopeName:r})=>{let o=n(e)[`__scope${r}`];return{...t,...o}},{});return r.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}(a,...t)]}},5101:(e,t,n)=>{n.d(t,{bm:()=>ts,UC:()=>tl,VY:()=>tc,hJ:()=>ti,ZL:()=>ta,bL:()=>tr,hE:()=>tu,l9:()=>to});var r,o,a,i=n(2115);function l(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function u(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function c(...e){return t=>{let n=!1,r=e.map(e=>{let r=u(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():u(e[t],null)}}}}function s(...e){return i.useCallback(c(...e),e)}var d=n(8166),f=n(7668),p=n(1488),v=n(7650),m=n(5155),h=i.forwardRef((e,t)=>{let{children:n,...r}=e,o=i.Children.toArray(n),a=o.find(b);if(a){let e=a.props.children,n=o.map(t=>t!==a?t:i.Children.count(e)>1?i.Children.only(null):i.isValidElement(e)?e.props.children:null);return(0,m.jsx)(g,{...r,ref:t,children:i.isValidElement(e)?i.cloneElement(e,void 0,n):null})}return(0,m.jsx)(g,{...r,ref:t,children:n})});h.displayName="Slot";var g=i.forwardRef((e,t)=>{let{children:n,...r}=e;if(i.isValidElement(n)){let e=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}(n),o=function(e,t){let n={...t};for(let r in t){let o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...e)=>{a(...e),o(...e)}:o&&(n[r]=o):"style"===r?n[r]={...o,...a}:"className"===r&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props);return n.type!==i.Fragment&&(o.ref=t?c(t,e):e),i.cloneElement(n,o)}return i.Children.count(n)>1?i.Children.only(null):null});g.displayName="SlotClone";var y=({children:e})=>(0,m.jsx)(m.Fragment,{children:e});function b(e){return i.isValidElement(e)&&e.type===y}var w=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=i.forwardRef((e,n)=>{let{asChild:r,...o}=e,a=r?h:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,m.jsx)(a,{...o,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),E=n(1524),N="dismissableLayer.update",x=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),C=i.forwardRef((e,t)=>{var n,r;let{disableOutsidePointerEvents:a=!1,onEscapeKeyDown:u,onPointerDownOutside:c,onFocusOutside:d,onInteractOutside:f,onDismiss:p,...v}=e,h=i.useContext(x),[g,y]=i.useState(null),b=null!==(r=null==g?void 0:g.ownerDocument)&&void 0!==r?r:null===(n=globalThis)||void 0===n?void 0:n.document,[,C]=i.useState({}),O=s(t,e=>y(e)),S=Array.from(h.layers),[j]=[...h.layersWithOutsidePointerEventsDisabled].slice(-1),M=S.indexOf(j),P=g?S.indexOf(g):-1,D=h.layersWithOutsidePointerEventsDisabled.size>0,I=P>=M,T=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===(t=globalThis)||void 0===t?void 0:t.document,r=(0,E.c)(e),o=i.useRef(!1),a=i.useRef(()=>{});return i.useEffect(()=>{let e=e=>{if(e.target&&!o.current){let t=function(){A("dismissableLayer.pointerDownOutside",r,o,{discrete:!0})},o={originalEvent:e};"touch"===e.pointerType?(n.removeEventListener("click",a.current),a.current=t,n.addEventListener("click",a.current,{once:!0})):t()}else n.removeEventListener("click",a.current);o.current=!1},t=window.setTimeout(()=>{n.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",a.current)}},[n,r]),{onPointerDownCapture:()=>o.current=!0}}(e=>{let t=e.target,n=[...h.branches].some(e=>e.contains(t));!I||n||(null==c||c(e),null==f||f(e),e.defaultPrevented||null==p||p())},b),k=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===(t=globalThis)||void 0===t?void 0:t.document,r=(0,E.c)(e),o=i.useRef(!1);return i.useEffect(()=>{let e=e=>
1{e.target&&!o.current&&A("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)},[n,r]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}(e=>{let t=e.target;[...h.branches].some(e=>e.contains(t))||(null==d||d(e),null==f||f(e),e.defaultPrevented||null==p||p())},b);return!function(e,t=globalThis?.document){let n=(0,E.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=>{P!==h.layers.size-1||(null==u||u(e),!e.defaultPrevented&&p&&(e.preventDefault(),p()))},b),i.useEffect(()=>{if(g)return a&&(0===h.layersWithOutsidePointerEventsDisabled.size&&(o=b.body.style.pointerEvents,b.body.style.pointerEvents="none"),h.layersWithOutsidePointerEventsDisabled.add(g)),h.layers.add(g),R(),()=>{a&&1===h.layersWithOutsidePointerEventsDisabled.size&&(b.body.style.pointerEvents=o)}},[g,b,a,h]),i.useEffect(()=>()=>{g&&(h.layers.delete(g),h.layersWithOutsidePointerEventsDisabled.delete(g),R())},[g,h]),i.useEffect(()=>{let e=()=>C({});return document.addEventListener(N,e),()=>document.removeEventListener(N,e)},[]),(0,m.jsx)(w.div,{...v,ref:O,style:{pointerEvents:D?I?"auto":"none":void 0,...e.style},onFocusCapture:l(e.onFocusCapture,k.onFocusCapture),onBlurCapture:l(e.onBlurCapture,k.onBlurCapture),onPointerDownCapture:l(e.onPointerDownCapture,T.onPointerDownCapture)})});function R(){let e=new CustomEvent(N);document.dispatchEvent(e)}function A(e,t,n,r){let{discrete:o}=r,a=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});(t&&a.addEventListener(e,t,{once:!0}),o)?a&&v.flushSync(()=>a.dispatchEvent(i)):a.dispatchEvent(i)}C.displayName="DismissableLayer",i.forwardRef((e,t)=>{let n=i.useContext(x),r=i.useRef(null),o=s(t,r);return i.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,m.jsx)(w.div,{...e,ref:o})}).displayName="DismissableLayerBranch";var O="focusScope.autoFocusOnMount",S="focusScope.autoFocusOnUnmount",j={bubbles:!1,cancelable:!0},M=i.forwardRef((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...l}=e,[u,c]=i.useState(null),d=(0,E.c)(o),f=(0,E.c)(a),p=i.useRef(null),v=s(t,e=>c(e)),h=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(r){let e=function(e){if(h.paused||!u)return;let t=e.target;u.contains(t)?p.current=t:I(p.current,{select:!0})},t=function(e){if(h.paused||!u)return;let t=e.relatedTarget;null===t||u.contains(t)||I(p.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&&I(u)});return u&&n.observe(u,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[r,u,h.paused]),i.useEffect(()=>{if(u){T.add(h);let e=document.activeElement;if(!u.contains(e)){let t=new CustomEvent(O,j);u.addEventListener(O,d),u.dispatchEvent(t),t.defaultPrevented||(function(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=document.activeElement;for(let r of e)if(I(r,{select:t}),document.activeElement!==n)return}(P(u).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&I(u))}return()=>{u.removeEventListener(O,d),setTimeout(()=>{let t=new CustomEvent(S,j);u.addEventListener(S,f),u.dispatchEvent(t),t.defaultPrevented||I(null!=e?e:document.body,{select:!0}),u.removeEventListener(S,f),T.remove(h)},0)}}},[u,d,f,h]);let g=i.useCallback(e=>{if(!n&&!r||h.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){let t=e.currentTarget,[r,a]=function(e){let t=P(e);return[D(t,e),D(t.reverse(),e)]}(t);r&&a?e.shiftKey||o!==a?e.shiftKey&&o===r&&(e.preventDefault(),n&&I(a,{select:!0})):(e.preventDefault(),n&&I(r,{select:!0})):o===t&&e.preventDefault()}},[n,r,h.paused]);return(0,m.jsx)(w.div,{tabIndex:-1,...l,ref:v,onKeyDown:g})});function P(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 D(e,t){for(let n of e)if(!function(e,t){let{upTo:n}=t;if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===n||e!==n);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(n,{upTo:t}))return n}function I(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[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()}}M.displayName="FocusScope";var T=function(){let e=[];return{add(t){let n=e[0];t!==n&&(null==n||n.pause()),(e=k(e,t)).unshift(t)},remove(t){var n;null===(n=(e=k(e,t))[0])||void 0===n||n.resume()}}}();function k(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}var L=n(6611),_=i.forwardRef((e,t)=>
1{var n,r;let{container:o,...a}=e,[l,u]=i.useState(!1);(0,L.N)(()=>u(!0),[]);let c=o||l&&(null===(r=globalThis)||void 0===r?void 0:null===(n=r.document)||void 0===n?void 0:n.body);return c?v.createPortal((0,m.jsx)(w.div,{...a,ref:t}),c):null});_.displayName="Portal";var F=e=>{let{present:t,children:n}=e,r=function(e){var t,n;let[r,o]=i.useState(),a=i.useRef({}),l=i.useRef(e),u=i.useRef("none"),[c,s]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},i.useReducer((e,t)=>{let r=n[e][t];return null!=r?r:e},t));return i.useEffect(()=>{let e=W(a.current);u.current="mounted"===c?e:"none"},[c]),(0,L.N)(()=>{let t=a.current,n=l.current;if(n!==e){let r=u.current,o=W(t);e?s("MOUNT"):"none"===o||(null==t?void 0:t.display)==="none"?s("UNMOUNT"):n&&r!==o?s("ANIMATION_OUT"):s("UNMOUNT"),l.current=e}},[e,s]),(0,L.N)(()=>{if(r){var e;let t;let n=null!==(e=r.ownerDocument.defaultView)&&void 0!==e?e:window,o=e=>{let o=W(a.current).includes(e.animationName);if(e.target===r&&o&&(s("ANIMATION_END"),!l.current)){let e=r.style.animationFillMode;r.style.animationFillMode="forwards",t=n.setTimeout(()=>{"forwards"===r.style.animationFillMode&&(r.style.animationFillMode=e)})}},i=e=>{e.target===r&&(u.current=W(a.current))};return r.addEventListener("animationstart",i),r.addEventListener("animationcancel",o),r.addEventListener("animationend",o),()=>{n.clearTimeout(t),r.removeEventListener("animationstart",i),r.removeEventListener("animationcancel",o),r.removeEventListener("animationend",o)}}s("ANIMATION_END")},[r,s]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:i.useCallback(e=>{e&&(a.current=getComputedStyle(e)),o(e)},[])}}(t),o="function"==typeof n?n({present:r.isPresent}):i.Children.only(n),a=s(r.ref,function(e){var t,n;let r=null===(t=Object.getOwnPropertyDescriptor(e.props,"ref"))||void 0===t?void 0:t.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?e.ref:(o=(r=null===(n=Object.getOwnPropertyDescriptor(e,"ref"))||void 0===n?void 0:n.get)&&"isReactWarning"in r&&r.isReactWarning)?e.props.ref:e.props.ref||e.ref}(o));return"function"==typeof n||r.isPresent?i.cloneElement(o,{ref:a}):null};function W(e){return(null==e?void 0:e.animationName)||"none"}F.displayName="Presence";var U=0;function B(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var $=function(){return($=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function z(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}Object.create,Object.create;var q=("function"==typeof SuppressedError&&SuppressedError,"right-scroll-bar-position"),K="width-before-scroll-bar";function G(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var V="undefined"!=typeof window?i.useLayoutEffect:i.useEffect,X=new WeakMap;function H(e){return e}var Y=function(e){void 0===e&&(e={});var t,n,r,o=(void 0===t&&(t=H),n=[],r=!1,{read:function(){if(r)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:null},useMedium:function(e){var o=t(e,r);return n.push(o),function(){n=n.filter(function(e){return e!==o})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var o=n;n=[],o.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},i=function(){return Promise.resolve().then(a)};i(),n={push:function(e){t.push(e),i()},filter:function(e){return t=t.filter(e),n}}}});return o.options=$({async:!0,ssr:!1},e),o}
1(),Z=function(){},J=i.forwardRef(function(e,t){var n,r,o,a,l=i.useRef(null),u=i.useState({onScrollCapture:Z,onWheelCapture:Z,onTouchMoveCapture:Z}),c=u[0],s=u[1],d=e.forwardProps,f=e.children,p=e.className,v=e.removeScrollBar,m=e.enabled,h=e.shards,g=e.sideCar,y=e.noIsolation,b=e.inert,w=e.allowPinchZoom,E=e.as,N=e.gapMode,x=z(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=(n=[l,t],r=function(e){return n.forEach(function(t){return G(t,e)})},(o=(0,i.useState)(function(){return{value:null,callback:r,facade:{get current(){return o.value},set current(value){var e=o.value;e!==value&&(o.value=value,o.callback(value,e))}}}})[0]).callback=r,a=o.facade,V(function(){var e=X.get(a);if(e){var t=new Set(e),r=new Set(n),o=a.current;t.forEach(function(e){r.has(e)||G(e,null)}),r.forEach(function(e){t.has(e)||G(e,o)})}X.set(a,n)},[n]),a),R=$($({},x),c);return i.createElement(i.Fragment,null,m&&i.createElement(g,{sideCar:Y,removeScrollBar:v,shards:h,noIsolation:y,inert:b,setCallbacks:s,allowPinchZoom:!!w,lockRef:l,gapMode:N}),d?i.cloneElement(i.Children.only(f),$($({},R),{ref:C})):i.createElement(void 0===E?"div":E,$({},R,{className:p,ref:C}),f))});J.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},J.classNames={fullWidth:K,zeroRight:q};var Q=function(e){var t=e.sideCar,n=z(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error("Sidecar medium not found");return i.createElement(r,$({},n))};Q.isSideCarExport=!0;var ee=function(){var e=0,t=null;return{add:function(r){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=a||n.nc;return t&&e.setAttribute("nonce",t),e}())){var o,i;(o=t).styleSheet?o.styleSheet.cssText=r:o.appendChild(document.createTextNode(r)),i=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(i)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},et=function(){var e=ee();return function(t,n){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},en=function(){var e=et();return function(t){return e(t.styles,t.dynamic),null}},er={left:0,top:0,right:0,gap:0},eo=function(e){return parseInt(e||"",10)||0},ea=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[eo(n),eo(r),eo(o)]},ei=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return er;var t=ea(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])}},el=en(),eu="data-scroll-locked",ec=function(e,t,n,r){var o=e.left,a=e.top,i=e.right,l=e.gap;return void 0===n&&(n="margin"),"\n  .".concat("with-scroll-bars-hidden"," {\n   overflow: hidden ").concat(r,";\n   padding-right: ").concat(l,"px ").concat(r,";\n  }\n  body[").concat(eu,"] {\n    overflow: hidden ").concat(r,";\n    overscroll-behavior: contain;\n    ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n    padding-left: ".concat(o,"px;\n    padding-top: ").concat(a,"px;\n    padding-right: ").concat(i,"px;\n    margin-left:0;\n    margin-top:0;\n    margin-right: ").concat(l,"px ").concat(r,";\n    "),"padding"===n&&"padding-right: ".concat(l,"px ").concat(r,";")].filter(Boolean).join(""),"\n  }\n  \n  .").concat(q," {\n    right: ").concat(l,"px ").concat(r,";\n  }\n  \n  .").concat(K," {\n    margin-right: ").concat(l,"px ").concat(r,";\n  }\n  \n  .").concat(q," .").concat(q," {\n    right: 0 ").concat(r,";\n  }\n  \n  .").concat(K," .").concat(K," {\n    margin-right: 0 ").concat(r,";\n  }\n  \n  body[").concat(eu,"] {\n    ").concat("--removed-body-scroll-bar-size",": ").concat(l,"px;\n  }\n")},es=function(){var e=parseInt(document.body.getAttribute(eu)||"0",10);return isFinite(e)?e:0},ed=function(){i.useEffect(function(){return document.body.setAttribute(eu,(es()+1).toString()),function(){var e=es()-1;e<=0?document.body.removeAttribute(eu):document.body.setAttribute(eu,e.toString())}},[])},ef=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r;ed();var a=i.useMemo(function(){return ei(o)},[o]);return i.createElement(el,{styles:ec(a,!t,o,n?"":"!important")})},ep=!1;if("undefined"!=typeof window)try{var ev=Object.defineProperty({},"passive",{get:function(){return ep=!0,!0}});window.addEventListener("test",ev,ev),window.removeEventListener("test",ev,ev)}catch(e){ep=!1}var em=!!ep&&{passive:!1},eh=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])},eg=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),ey(e,r)){var o=eb(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},ey=function(e,t){return"v"===e?eh(t,"overflowY"):eh(t,"overflowX")},eb=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},ew=function(e,t,n,r,o){var a,i=(a=window.getComputedStyle(t).direction,"h"===e&&"rtl"===a?-1:1),l=i*r,u=n.target,c=t.contains(u),s=!1,d=l>0,f=0,p=0;do{var v=eb(e,u),m=v[0],h=v[1]-v[2]-i*m;(m||h)&&ey(e,u)&&(f+=h,p+=m),u instanceof ShadowRoot?u=u.host:u=u.parentNode}while(!c&&u!==document.body||c&&(t.contains(u)||t===u));return d&&(o&&1>Math.abs(f)||!o&&l>f)?s=!0:!d&&(o&&1>Math.abs(p)||!o&&-l>p)&&(s=!0),s},eE=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},eN=function(e){return[e.deltaX,e.deltaY]},ex=function(e){return e&&"current"in e?e.current:e},eC=0,eR=[];let eA=(r=function(e){var t=i.useRef([]),n=i.useRef([0,0]),r=i.useRef(),o=i.useState(eC++)[0],a=i.useState(en)[0],l=i.useRef(e);i.useEffect(function(){l.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=(function(e,t,n){if(n||2==arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}
1)([e.lockRef.current],(e.shards||[]).map(ex),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(o))})}}},[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!l.current.allowPinchZoom;var o,a=eE(e),i=n.current,u="deltaX"in e?e.deltaX:i[0]-a[0],c="deltaY"in e?e.deltaY:i[1]-a[1],s=e.target,d=Math.abs(u)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===d&&"range"===s.type)return!1;var f=eg(d,s);if(!f)return!0;if(f?o=d:(o="v"===d?"h":"v",f=eg(d,s)),!f)return!1;if(!r.current&&"changedTouches"in e&&(u||c)&&(r.current=o),!o)return!0;var p=r.current||o;return ew(p,t,e,"h"===p?u:c,!0)},[]),c=i.useCallback(function(e){if(eR.length&&eR[eR.length-1]===a){var n="deltaY"in e?eN(e):eE(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)[0]===n[0]&&r[1]===n[1]})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var o=(l.current.shards||[]).map(ex).filter(Boolean).filter(function(t){return t.contains(e.target)});(o.length>0?u(e,o[0]):!l.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),s=i.useCallback(function(e,n,r,o){var a={name:e,delta:n,target:r,should:o,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(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),d=i.useCallback(function(e){n.current=eE(e),r.current=void 0},[]),f=i.useCallback(function(t){s(t.type,eN(t),t.target,u(t,e.lockRef.current))},[]),p=i.useCallback(function(t){s(t.type,eE(t),t.target,u(t,e.lockRef.current))},[]);i.useEffect(function(){return eR.push(a),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",c,em),document.addEventListener("touchmove",c,em),document.addEventListener("touchstart",d,em),function(){eR=eR.filter(function(e){return e!==a}),document.removeEventListener("wheel",c,em),document.removeEventListener("touchmove",c,em),document.removeEventListener("touchstart",d,em)}},[]);var v=e.removeScrollBar,m=e.inert;return i.createElement(i.Fragment,null,m?i.createElement(a,{styles:"\n  .block-interactivity-".concat(o," {pointer-events: none;}\n  .allow-interactivity-").concat(o," {pointer-events: all;}\n")}):null,v?i.createElement(ef,{gapMode:e.gapMode}):null)},Y.useMedium(r),Q);var eO=i.forwardRef(function(e,t){return i.createElement(J,$({},e,{ref:t,sideCar:eA}))});eO.classNames=J.classNames;var eS=new WeakMap,ej=new WeakMap,eM={},eP=0,eD=function(e){return e&&(e.host||eD(e.parentNode))},eI=function(e,t,n,r){var o=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var n=eD(e);return n&&t.contains(n)?n:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return!!e});eM[n]||(eM[n]=new WeakMap);var a=eM[n],i=[],l=new Set,u=new Set(o),c=function(e){!e||l.has(e)||(l.add(e),c(e.parentNode))};o.forEach(c);var s=function(e){!e||u.has(e)||Array.prototype.forEach.call(e.children,function(e){if(l.has(e))s(e);else try{var t=e.getAttribute(r),o=null!==t&&"false"!==t,u=(eS.get(e)||0)+1,c=(a.get(e)||0)+1;eS.set(e,u),a.set(e,c),i.push(e),1===u&&o&&ej.set(e,!0),1===c&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return s(t),l.clear(),eP++,function(){i.forEach(function(e){var t=eS.get(e)-1,o=a.get(e)-1;eS.set(e,t),a.set(e,o),t||(ej.has(e)||e.removeAttribute(r),ej.delete(e)),o||e.removeAttribute(n)}),--eP||(eS=new WeakMap,eS=new WeakMap,ej=new WeakMap,eM={})}},eT=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r,o=Array.from(Array.isArray(e)?e:[e]),a=t||(r=e,"undefined"==typeof document?null:(Array.isArray(r)?r[0]:r).ownerDocument.body);return a?(o.push.apply(o,Array.from(a.querySelectorAll("[aria-live]"))),eI(o,a,n,"aria-hidden")):function(){return null}},ek="Dialog",[eL,e_]=(0,d.A)(ek),[eF,eW]=eL(ek),eU=e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:l=!0}=e,u=i.useRef(null),c=i.useRef(null),[s=!1,d]=(0,p.i)({prop:r,defaultProp:o,onChange:a});return(0,m.jsx)(eF,{scope:t,triggerRef:u,contentRef:c,contentId:(0,f.B)(),titleId:(0,f.B)(),descriptionId:(0,f.B)(),open:s,onOpenChange:d,onOpenToggle:i.useCallback(()=>d(e=>!e),[d]),modal:l,children:n})};eU.displayName=ek;var eB="DialogTrigger",e$=i.forwardRef((e,t)=>
1{let{__scopeDialog:n,...r}=e,o=eW(eB,n),a=s(t,o.triggerRef);return(0,m.jsx)(w.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":e7(o.open),...r,ref:a,onClick:l(e.onClick,o.onOpenToggle)})});e$.displayName=eB;var ez="DialogPortal",[eq,eK]=eL(ez,{forceMount:void 0}),eG=e=>{let{__scopeDialog:t,forceMount:n,children:r,container:o}=e,a=eW(ez,t);return(0,m.jsx)(eq,{scope:t,forceMount:n,children:i.Children.map(r,e=>(0,m.jsx)(F,{present:n||a.open,children:(0,m.jsx)(_,{asChild:!0,container:o,children:e})}))})};eG.displayName=ez;var eV="DialogOverlay",eX=i.forwardRef((e,t)=>{let n=eK(eV,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=eW(eV,e.__scopeDialog);return a.modal?(0,m.jsx)(F,{present:r||a.open,children:(0,m.jsx)(eH,{...o,ref:t})}):null});eX.displayName=eV;var eH=i.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=eW(eV,n);return(0,m.jsx)(eO,{as:h,allowPinchZoom:!0,shards:[o.contentRef],children:(0,m.jsx)(w.div,{"data-state":e7(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),eY="DialogContent",eZ=i.forwardRef((e,t)=>{let n=eK(eY,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=eW(eY,e.__scopeDialog);return(0,m.jsx)(F,{present:r||a.open,children:a.modal?(0,m.jsx)(eJ,{...o,ref:t}):(0,m.jsx)(eQ,{...o,ref:t})})});eZ.displayName=eY;var eJ=i.forwardRef((e,t)=>{let n=eW(eY,e.__scopeDialog),r=i.useRef(null),o=s(t,n.contentRef,r);return i.useEffect(()=>{let e=r.current;if(e)return eT(e)},[]),(0,m.jsx)(e0,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:l(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),null===(t=n.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:l(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:l(e.onFocusOutside,e=>e.preventDefault())})}),eQ=i.forwardRef((e,t)=>{let n=eW(eY,e.__scopeDialog),r=i.useRef(!1),o=i.useRef(!1);return(0,m.jsx)(e0,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var a,i;null===(a=e.onCloseAutoFocus)||void 0===a||a.call(e,t),t.defaultPrevented||(r.current||null===(i=n.triggerRef.current)||void 0===i||i.focus(),t.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:t=>{var a,i;null===(a=e.onInteractOutside)||void 0===a||a.call(e,t),t.defaultPrevented||(r.current=!0,"pointerdown"!==t.detail.originalEvent.type||(o.current=!0));let l=t.target;(null===(i=n.triggerRef.current)||void 0===i?void 0:i.contains(l))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}})}),e0=i.forwardRef((e,t)=>{let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,...l}=e,u=eW(eY,n),c=i.useRef(null),d=s(t,c);return i.useEffect(()=>{var e,t;let n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:B()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:B()),U++,()=>{1===U&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),U--}},[]),(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(M,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a,children:(0,m.jsx)(C,{role:"dialog",id:u.contentId,"aria-describedby":u.descriptionId,"aria-labelledby":u.titleId,"data-state":e7(u.open),...l,ref:d,onDismiss:()=>u.onOpenChange(!1)})}),(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(tt,{titleId:u.titleId}),(0,m.jsx)(tn,{contentRef:c,descriptionId:u.descriptionId})]})]})}),e1="DialogTitle",e2=i.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=eW(e1,n);return(0,m.jsx)(w.h2,{id:o.titleId,...r,ref:t})});e2.displayName=e1;var e6="DialogDescription",e5=i.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=eW(e6,n);return(0,m.jsx)(w.p,{id:o.descriptionId,...r,ref:t})});e5.displayName=e6;var e4="DialogClose",e8=i.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=eW(e4,n);return(0,m.jsx)(w.button,{type:"button",...r,ref:t,onClick:l(e.onClick,()=>o.onOpenChange(!1))})});function e7(e){return e?"open":"closed"}e8.displayName=e4;var e3="DialogTitleWarning",[e9,te]=(0,d.q)(e3,{contentName:eY,titleName:e1,docsSlug:"dialog"}),tt=e=>{let{titleId:t}=e,n=te(e3),r="`".concat(n.contentName,"` requires a `").concat(n.titleName,"` for the component to be accessible for screen reader users.\n\nIf you want to hide the `").concat(n.titleName,"`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/").concat(n.docsSlug);return i.useEffect(()=>{t&&!document.getElementById(t)&&console.error(r)},[r,t]),null},tn=e=>{let{contentRef:t,descriptionId:n}=e,r=te("DialogDescriptionWarning"),o="Warning: Missing `Description` or `aria-describedby={undefined}` for {".concat(r.contentName,"}.");return i.useEffect(()=>{var e;let r=null===(e=t.current)||void 0===e?void 0:e.getAttribute("aria-describedby");n&&r&&!document.getElementById(n)&&console.warn(o)},[o,t,n]),null},tr=eU,to=e$,ta=eG,ti=eX,tl=eZ,tu=e2,tc=e5,ts=e8},7668:(e,t,n)=>{n.d(t,{B:()=>u});var r,o=n(2115),a=n(6611),i=(r||(r=n.t(o,2)))["useId".toString()]||(()=>void 0),l=0;function u(e){let[t,n]=o.useState(i());return(0,a.N)(()=>{e||n(e=>e??String(l++))},[e]),e||(t?`radix-${t}`:"")}},3360:(e,t,n)=>{n.d(t,{sG:()=>i});var r=n(2115);n(7650);var o=n(2317),a=n(5155),i=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>
1{let n=r.forwardRef((e,n)=>{let{asChild:r,...i}=e,l=r?o.DX:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,a.jsx)(l,{...i,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{})},434:(e,t,n)=>{n.d(t,{b:()=>c});var r=n(2115),o=n(3360),a=n(5155),i="horizontal",l=["horizontal","vertical"],u=r.forwardRef((e,t)=>{let{decorative:n,orientation:r=i,...u}=e,c=l.includes(r)?r:i;return(0,a.jsx)(o.sG.div,{"data-orientation":c,...n?{role:"none"}:{"aria-orientation":"vertical"===c?c:void 0,role:"separator"},...u,ref:t})});u.displayName="Separator";var c=u},1524:(e,t,n)=>{n.d(t,{c:()=>o});var r=n(2115);function o(e){let t=r.useRef(e);return r.useEffect(()=>{t.current=e}),r.useMemo(()=>(...e)=>t.current?.(...e),[])}},1488:(e,t,n)=>{n.d(t,{i:()=>a});var r=n(2115),o=n(1524);function a({prop:e,defaultProp:t,onChange:n=()=>{}}){let[a,i]=function({defaultProp:e,onChange:t}){let n=r.useState(e),[a]=n,i=r.useRef(a),l=(0,o.c)(t);return r.useEffect(()=>{i.current!==a&&(l(a),i.current=a)},[a,i,l]),n}({defaultProp:t,onChange:n}),l=void 0!==e,u=l?e:a,c=(0,o.c)(n);return[u,r.useCallback(t=>{if(l){let n="function"==typeof t?t(e):t;n!==e&&c(n)}else i(t)},[l,e,i,c])]}},6611:(e,t,n)=>{n.d(t,{N:()=>o});var r=n(2115),o=globalThis?.document?r.useLayoutEffect:()=>{}}}]);

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.