(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,829622,e=>{"use strict";var t=e.i(659350),r=e.i(663456),n=e.i(214051),o=e.i(51365),i=e.i(288265),a=e.i(16043);e.s(["RemoteFavicon",0,function(e){let s,l,u,c,d,f,p,h,m,g,v,w,x,y=(0,r.c)(55),b=(0,i.f)(),[S,N]=(0,a.useState)(null),[C,j]=(0,a.useState)(null),[P,R]=(0,a.useState)(!1),[T,M]=(0,a.useState)(!1),k=e.size||256;y[0]!==P||y[1]!==T||y[2]!==e.curatedIconAppId||y[3]!==e.faviconFor||y[4]!==e.imgSrc||y[5]!==k?(s=function({faviconFor:e,size:t,didCuratedIconFail:r,didSiteIconFail:n,curatedIconAppId:i,imgSrc:a}){if(a)return{source:"given",src:a};if(void 0!==i&&(0,o.Q)(e)&&!r)return{source:"curated",src:(0,o.$)(e)?e:(0,o.g)(i)};let s=n?(0,o.Z)(e):null;return null!==s?{source:"parent-site",src:(0,o.e)(s,t)}:{source:"site",src:(0,o.e)(e,t)}}({faviconFor:e.faviconFor,size:k,didCuratedIconFail:P,didSiteIconFail:T,curatedIconAppId:e.curatedIconAppId,imgSrc:e.imgSrc}),y[0]=P,y[1]=T,y[2]=e.curatedIconAppId,y[3]=e.faviconFor,y[4]=e.imgSrc,y[5]=k,y[6]=s):s=y[6];let{source:F,src:I}=s;y[7]!==e.faviconFor||y[8]!==k||y[9]!==F?(l=t=>{"site"!==F||k<=16||t>16||null!==(0,o.Z)(e.faviconFor)&&M(!0)},y[7]=e.faviconFor,y[8]=k,y[9]=F,y[10]=l):l=y[10];let D=l;y[11]!==e.faviconFor||y[12]!==F?(u=t=>{switch(F){case"curated":if((0,o.$)(e.faviconFor))return void N(t);R(!0);return;case"site":if(null===(0,o.Z)(e.faviconFor))return void N(t);M(!0);return;case"given":case"parent-site":return void N(t);default:N(t)}},y[11]=e.faviconFor,y[12]=F,y[13]=u):u=y[13];let A=u;y[14]===Symbol.for("react.memo_cache_sentinel")?(c=()=>{N(null)},y[14]=c):c=y[14],y[15]!==I?(d=[I],y[15]=I,y[16]=d):d=y[16],(0,a.useEffect)(c,d),y[17]===Symbol.for("react.memo_cache_sentinel")?(f=()=>{R(!1),M(!1)},y[17]=f):f=y[17],y[18]!==e.curatedIconAppId||y[19]!==e.faviconFor||y[20]!==e.imgSrc||y[21]!==k?(p=[e.faviconFor,e.curatedIconAppId,e.imgSrc,k],y[18]=e.curatedIconAppId,y[19]=e.faviconFor,y[20]=e.imgSrc,y[21]=k,y[22]=p):p=y[22],(0,a.useEffect)(f,p),y[23]===Symbol.for("react.memo_cache_sentinel")?(h=()=>{j(null)},y[23]=h):h=y[23],y[24]!==e.imgSrcDark?(m=[e.imgSrcDark],y[24]=e.imgSrcDark,y[25]=m):m=y[25],(0,a.useEffect)(h,m),y[26]!==b||y[27]!==e.faviconFor?(g=b("Favicon for {faviconFor}",{faviconFor:e.faviconFor}),y[26]=b,y[27]=e.faviconFor,y[28]=g):g=y[28],y[29]!==k||y[30]!==g?(v={width:k,height:k,alt:g,className:"h-full w-full object-cover"},y[29]=k,y[30]=g,y[31]=v):v=y[31];let $=v;if(e.imgSrcDark){let r,o,i;return y[32]!==S||y[33]!==$||y[34]!==A||y[35]!==D||y[36]!==I?(r=(0,t.jsx)("span",{className:"block h-full w-full shrink-0 dark:hidden",children:S?(0,t.jsx)("span",{className:"bg-muted",children:(0,t.jsx)(n.f,{className:"h-4 w-4 text-muted-foreground/60"})}):(0,t.jsx)("img",{...$,src:I,onError:e=>A(e.toString()),onLoad:e=>D(e.currentTarget.naturalWidth)})}),y[32]=S,y[33]=$,y[34]=A,y[35]=D,y[36]=I,y[37]=r):r=y[37],y[38]!==C||y[39]!==$||y[40]!==e.imgSrcDark?(o=(0,t.jsx)("span",{className:"hidden h-full w-full shrink-0 dark:block",children:C?(0,t.jsx)("span",{className:"bg-muted",children:(0,t.jsx)(n.f,{className:"h-4 w-4 text-muted-foreground/60"})}):(0,t.jsx)("img",{...$,src:e.imgSrcDark,onError:e=>j(e.toString())})}),y[38]=C,y[39]=$,y[40]=e.imgSrcDark,y[41]=o):o=y[41],y[42]!==e.className||y[43]!==r||y[44]!==o?(i=(0,t.jsxs)("div",{className:e.className,children:[r,o]}),y[42]=e.className,y[43]=r,y[44]=o,y[45]=i):i=y[45],i}return y[46]!==S||y[47]!==$||y[48]!==A||y[49]!==D||y[50]!==I?(w=S?(0,t.jsx)("span",{className:"bg-muted",children:(0,t.jsx)(n.f,{className:"h-4 w-4 text-muted-foreground/60"})}):(0,t.jsx)("picture",{className:"h-full w-full shrink-0",children:(0,t.jsx)("img",{...$,src:I,loading:"lazy",decoding:"async",onError:e=>A(e.toString()),onLoad:e=>D(e.currentTarget.naturalWidth)})}),y[46]=S,y[47]=$,y[48]=A,y[49]=D,y[50]=I,y[51]=w):w=y[51],y[52]!==e.className||y[53]!==w?(x=(0,t.jsx)("div",{className:e.className,children:w}),y[52]=e.className,y[53]=w,y[54]=x):x=y[54],x}])},217411,e=>{"use strict";var t,r,n=e.i(659350),o=e.i(663456),i=e.i(694448),a=e.i(806733),s=e.i(376032),l=e.i(718251),u=e.i(192154),c=e.i(613733),d=e.i(512682),f=e.i(779243),p=e.i(16043),h=e.i(113003),m=e.i(93836),g=e.i(664591);let v="--drawer-height",w="--drawer-swipe-movement-x",x="--drawer-swipe-movement-y",y="--drawer-snap-point-offset",b="--drawer-swipe-strength",S="--drawer-swipe-progress",N=p.forwardRef(function(e,t){let{render:r,className:n,style:o,forceRender:i=!1,...a}=e,s=(0,h.x)(),l=s.useState("open"),u=s.useState("nested"),c=s.useState("mounted"),d=s.useState("transitionStatus");return(0,m.a)("div",e,{state:{open:l,transitionStatus:d},ref:[s.context.backdropRef,t],stateAttributesMapping:g.M,props:[{role:"presentation",hidden:!c,style:{pointerEvents:l?void 0:"none",userSelect:"none",WebkitUserSelect:"none",[S]:"0",[b]:"1"}},a],enabled:i||!u})}),C="data-drawer-content",j=p.forwardRef(function(e,t){let{render:r,className:n,style:o,...i}=e;return(0,h.x)(),(0,m.a)("div",e,{ref:t,props:[{[C]:""},i]})});var P=e.i(533124),R=e.i(815922),T=e.i(115370),M=e.i(909005),k=e.i(350683),F=e.i(894788),I=e.i(106513),D=e.i(431891);k.f.open,F.f.closed,I.f.startingStyle,D.f.endingStyle;let A="data-swipe-dismiss",$="data-swiping";var E=e.i(791170),O=e.i(692933),Y=e.i(597233),z=e.i(107397);let X=p.createContext(void 0);function W(e){let t=p.useContext(X);if(!0!==e&&void 0===t)throw Error((0,z.f)(90));return t}var L=e.i(997932),H=e.i(788968);function U(e,t){let r=e+t;return r>=0?t:-Math.sqrt(-r)-e}function V(e,t,r){if(!Number.isFinite(t)||t<=0)return null;if("number"==typeof e)return Number.isFinite(e)?e<=1?(0,H.f)(e,0,1)*t:e:null;let n=e.trim();if(n.endsWith("px")){let e=Number.parseFloat(n);return Number.isFinite(e)?e:null}if(n.endsWith("rem")){let e=Number.parseFloat(n);return Number.isFinite(e)?e*r:null}return null}function B(e,t){let r=-1,n=1/0;for(let o=0;o{let e=(0,L.f)(i).documentElement;s(i?i.offsetHeight:e.clientHeight);let t=parseFloat(getComputedStyle(e).fontSize);Number.isFinite(t)&&u(t)});(0,P.f)(()=>{if(c(),!i||"function"!=typeof ResizeObserver)return;let e=new ResizeObserver(c);return e.observe(i),()=>{e.disconnect()}},[c,i]);let d=p.useMemo(()=>{if(!t||0===t.length||a<=0||o<=0)return[];let e=Math.min(o,a),r=t.map(t=>{let r=V(t,a,l);if(null===r)return null;let n=(0,H.f)(r,0,e);return{value:t,height:n,offset:Math.max(0,o-n)}}).filter(e=>!!e);if(r.length<=1)return r;let n=[],i=[];for(let e=r.length-1;e>=0;e-=1){let t=r[e];i.some(e=>1>=Math.abs(e-t.height))||(i.push(t.height),n.push(t))}return n.reverse(),n},[o,l,t,a]),f=p.useMemo(()=>{if(null===r)return;let e=d.find(e=>Object.is(e.value,r));if(e)return e;let t=Math.min(o,a),n=V(r,a,l);if(null===n)return;let i=(0,H.f)(n,0,t);return d[B(d.map(e=>e.height),i)]},[r,o,d,l,a]);return{snapPoints:t,activeSnapPoint:r,setActiveSnapPoint:n,popupHeight:o,viewportHeight:a,resolvedSnapPoints:d,activeSnapPointOffset:f?.offset??null}}let _=p.createContext(null);var K=e.i(369714);let q=!1,G={...g.M,expanded:e=>e?{"data-expanded":""}:null,nestedDrawerOpen:e=>e?{"data-nested-drawer-open":""}:null,nestedDrawerSwiping:e=>e?{"data-nested-drawer-swiping":""}:null,swipeDirection:e=>({"data-swipe-direction":e}),swiping:e=>e?{[$]:""}:null},Q=p.forwardRef(function(e,t){let r,{render:o,className:i,style:a,finalFocus:s,initialFocus:l,...u}=e,c=(0,h.x)(),d=c.context.popupRef,{swipeDirection:f,frontmostHeight:g,hasNestedDrawer:N,nestedSwiping:C,nestedSwipeProgressStore:j,onPopupHeightChange:k,notifyParentFrontmostHeight:F,notifyParentHasNestedDrawer:I}=W(),D=c.useState("descriptionElementId"),A=c.useState("disablePointerDismissal"),$=c.useState("floatingRootContext"),z=c.useState("popupProps"),X=c.useState("modal"),L=c.useState("mounted"),H=c.useState("nested"),V=c.useState("nestedOpenDrawerCount"),B=c.useState("transitionStatus"),Q=c.useState("open"),J=c.useState("openMethod"),ee=c.useState("titleElementId"),et=c.useState("role"),er=$.useState("floatingId"),en=u.id??er,eo=p.useContext(_);(0,E.Z)();let{snapPoints:ei,activeSnapPoint:ea,activeSnapPointOffset:es}=Z(),el=V>0,eu=eo?.swiping??!1,ec=eo?.swipeStrength??null,[ed,ef]=p.useState(0),ep=p.useRef(0),eh=(0,R.f)(()=>{let e=d.current;if(!e)return;let t=e.offsetHeight;if(!(ep.current>0)||!(g>ep.current)||!(t>ep.current)){if(ep.current>0&&N){let e=ep.current;ef(e),k(e);return}t!==ep.current&&(ep.current=t,ef(t),k(t))}});(0,P.f)(()=>{if(!L){ep.current=0,ef(0),k(0);return}let e=d.current;if(!e||(q||("u">typeof CSS&&"registerProperty"in CSS&&([w,x,y].forEach(e=>{try{CSS.registerProperty({name:e,syntax:"",inherits:!1,initialValue:"0px"})}catch{}}),[{name:S,initialValue:"0"},{name:b,initialValue:"1"}].forEach(({name:e,initialValue:t})=>{try{CSS.registerProperty({name:e,syntax:"",inherits:!1,initialValue:t})}catch{}})),q=!0),eh(),"function"!=typeof ResizeObserver))return;let t=new ResizeObserver(eh);return t.observe(e),()=>{t.disconnect()}},[eh,L,el,k,d]),(0,P.f)(()=>{let e=()=>{let e=d.current;if(!e)return;let t=j.getSnapshot();t>0?e.style.setProperty(S,`${t}`):e.style.setProperty(S,"0")};e();let t=j.subscribe(e),r=d.current;return()=>{t(),r&&r.style.setProperty(S,"0")}},[j,d]),(0,P.f)(()=>{if(Q)return F?.(g),()=>{F?.(0)}},[g,Q,F]),(0,P.f)(()=>{if(I)return I(Q||"ending"===B),()=>{I(!1)}},[I,Q,B]),(0,O.f)({open:Q,ref:d,onComplete(){Q&&c.context.onOpenChangeComplete?.(!0)}});let em=void 0===l?d:l,eg=c.useStateSetter("popupElement"),ev=!N&&"ending"!==B;ed&&!ev&&(r=`${ed}px`);let ew=ei&&ei.length>0&&("down"===f||"up"===f),ex=null;ew&&null!==es&&(ex="up"===f?-es:es);let ey=eo?eo.getDragStyles():T.w;if(ew&&"down"===f){let e=Number.parseFloat(String(ey[x]));ey=eu&&Number.isFinite(e)?{...ey,transform:void 0,[x]:`${U(es??0,e)}px`}:{...ey,transform:void 0}}let eb=(0,m.a)("div",e,{state:{open:Q,nested:H,transitionStatus:B,expanded:1===ea,nestedDrawerOpen:el,nestedDrawerSwiping:C,swipeDirection:f,swiping:eu},props:[z,{id:en,"aria-labelledby":ee,"aria-describedby":D,role:et,...K.X,hidden:!L,onKeyDown(e){Y.J.has(e.key)&&e.stopPropagation()},style:{...ey,[S]:"0","--nested-drawers":V,[v]:r,[y]:"number"==typeof ex?`${ex}px`:"0px","--drawer-frontmost-height":g?`${g}px`:void 0,[b]:"number"==typeof ec&&Number.isFinite(ec)&&ec>0?`${ec}`:"1"}},u],ref:[t,d,eg],stateAttributesMapping:G});return(0,n.jsx)(M.f,{context:$,openInteractionType:J,disabled:!L,closeOnFocusOut:!A,initialFocus:em,returnFocus:s,modal:!1!==X,restoreFocus:"popup",children:eb})}),J=e.i(899575).f;var ee=e.i(976987),et=e.i(389475),er=e.i(223732),en=e.i(195155),eo=e.i(132887),ei=e.i(111407),ea=e.i(24220),ea=ea,es=e.i(874511);let el=p.createContext(void 0);function eu(){return p.useContext(el)}function ec(){let e=0,t=new Set;return{getSnapshot:()=>e,set(r){let n=Number.isFinite(r)?r:0;n!==e&&(e=n,t.forEach(e=>{e()}))},subscribe:e=>(t.add(e),()=>{t.delete(e)})}}function ed(){let e=eu(),t=(0,h.x)(!1),r=e?.setDrawerOpen,n=e?.removeDrawer,o=t.useState("open"),i=t.useState("nestedOpenDialogCount"),a=t.useState("popupElement"),s=0===i;return(0,P.f)(()=>{if(n)return()=>{n(t)}},[n,t]),(0,P.f)(()=>{r?.(t,o)},[o,r,t]),p.useEffect(()=>{if(!o||!s||!en.f.os.android)return;let e=(0,er.f)(a).CloseWatcher;if(!e)return;let r=new e,n=(0,ee.f)(r,"cancel",function(e){if(!t.select("open"))return;let r=(0,eo.j)(ea.closeWatcher,e);e.cancelable||(r.cancel=T.x),t.setOpen(!1,r),r.isCanceled&&e.preventDefault()});return()=>{n(),r.destroy()}},[t,s,o,a]),null}var ef=e.i(18728),ep=e.i(807257),eh=e.i(792343),em=e.i(334932);k.f.open,F.f.closed,I.f.startingStyle,D.f.endingStyle;var eg=e.i(195618),ev=e.i(662254),ew=ea,ex=e.i(393298),ey=e.i(773183),eb=e.i(212962),eS=e.i(510043),eN=e.i(511196);let eC=p.createContext(void 0),ej=`[${C}]`,eP={horizontal:`[${eS.a}="x"]`,vertical:`[${eS.a}="y"]`},eR=p.forwardRef(function(e,t){let{render:r,className:o,style:i,children:a,...s}=e,l=(0,h.x)(),u=l.context.popupRef,c=l.context.backdropRef,{swipeDirection:d,notifyParentSwipingChange:f,notifyParentSwipeProgressChange:m,frontmostHeight:g,snapToSequentialPoints:y,swipeAreaActiveRef:b}=W(),N=eu(),{snapPoints:C,resolvedSnapPoints:j,activeSnapPoint:T,activeSnapPointOffset:M,setActiveSnapPoint:k,popupHeight:F}=Z(),I=l.useState("open"),D=l.useState("mounted"),$=l.useState("nested"),E=l.useState("nestedOpenDrawerCount"),O=l.useState("viewportElement"),Y=l.useState("popupElement"),z=N?.visualStateStore,X=E>0,V="left"===d||"right"===d?"horizontal":"vertical",K="vertical"===V,q=K?"horizontal":"vertical",[G,Q]=p.useState(null),J=p.useRef(void 0),et=p.useRef(null),en=(0,eh.z)(),ei=p.useRef(!1),ea=p.useRef(!1),es=p.useRef(""),el=p.useRef(!1),ec=p.useRef(!1),ed=p.useRef(null),eR=p.useContext(eC),e$=p.useMemo(()=>{if(!C||C.length<2||j.length<2||"down"!==d&&"up"!==d)return null;let e=j.map(e=>e.offset).sort((e,t)=>e-t),t=e[0];return{minOffset:t,range:e[1]-t}},[j,C,d]),eE=p.useMemo(()=>e$&&null!==M?(0,H.f)((M-e$.minOffset)/e$.range,0,1):null,[M,e$]),eO=p.useMemo(()=>C&&C.length>0&&("down"===d||"up"===d)?"down"===d?["down","up"]:["up","down"]:[d],[C,d]),eY=(0,R.f)(e=>{u.current?.toggleAttribute(A,e),c.current?.toggleAttribute(A,e)}),ez=(0,R.f)(()=>{eY(!1),u.current?.removeAttribute(ey.f.endingStyle),Q(null)}),eX=(0,R.f)(()=>{ea.current&&(ea.current=!1,f?.(!1))}),eW=(0,R.f)((e,t,r)=>{let n=I&&!$&&t,o=n?e:0,i=I&&t?e:0;r&&m&&(m(i),i<=0&&eX()),z?.set({swipeProgress:o,frontmostHeight:o>0?g:0});let a=c.current;if(!a)return;let s=n&&o>0;a.style.setProperty(S,s?`${o}`:"0"),s&&g>0?a.style.setProperty(v,`${g}px`):a.style.removeProperty(v)}),eL=(0,ev.w)({enabled:D&&!X,directions:eO,elementRef:l.context.popupRef,ignoreSelectorWhenTouch:!1,ignoreScrollableAncestors:!0,movementCssVars:{x:w,y:x},onSwipeStart(e){if("touches"in e||"touch"===e.pointerType)return;let t=u.current,r=(0,L.f)(t),n=r.getSelection?.();if(!n||n.isCollapsed)return;let o=(0,ep.m)(n.anchorNode)?n.anchorNode:n.anchorNode?.parentElement,i=(0,ep.m)(n.focusNode)?n.focusNode:n.focusNode?.parentElement;((0,ex.I)(t,o)||(0,ex.I)(t,i))&&n.removeAllRanges()},onSwipingChange(e){ei.current=e,eT(l.context.backdropRef.current,e),e||m||eX()},swipeThreshold:({element:e,direction:t})=>ek(e,t),canStart(e,t){let r=l.context.popupRef.current;if(!r)return!1;let n=t.nativeEvent,o="touches"in n||"touch"===n.pointerType,i=o?ed.current:null,a=r.ownerDocument,s=(0,eN.f)(r.getRootNode(),e.x,e.y);return!(!i?.startedInPopup&&!(0,ex.I)(r,s)||o&&eF(a,r)||i?.hasCrossAxisGestureTarget&&!i.drawerAxisAttributed&&!0!==i.allowSwipe)},onProgress(e,t){let r=ei.current;r&&function(e){if(ea.current||!e)return;let t=e.direction??d;10>Math.abs((0,ev.R)(t,e.deltaX,e.deltaY))||(ea.current=!0,f?.(!0))}(t);let n=!!(C&&C.length>0);if(r&&"down"===d&&n&&t){let e=l.context.popupRef.current;e&&(e.style.removeProperty("transform"),e.style.setProperty(x,`${U(M??0,t.deltaY)}px`))}let o=e;if(e$&&F>0){let e=M??e$.minOffset;if(r&&t&&Number.isFinite(t.deltaY)){let r;r=(0,H.f)(e+t.deltaY,0,F),o=(0,H.f)((r-e$.minOffset)/e$.range,0,1)}else null!==eE&&(o=eE)}r||(m?.(0),eX()),eW(o,!0,r)},onRelease({event:e,deltaX:t,deltaY:r,direction:n,velocityX:o,velocityY:i,releaseVelocityX:a,releaseVelocityY:s}){let u=l.context.popupRef.current;if(!u)return void ez();function c(e){eX(),eY(!0),u.style.removeProperty("transition"),u.setAttribute(ey.f.endingStyle,""),ef.flushSync(()=>{Q(function(e,t,r,n,o,i,a,s){let l=eM(e,t);if(l<=0)return null;let u=Math.max(0,l-((("down"===t||"up"===t)&&C&&C.length>0?M??0:0)+(0,ev.R)(t,r,n)));if(u<=0)return null;let c=(0,ev.R)(t,a,s),d=Math.abs(c)>0?c:(0,ev.R)(t,o,i);if(d<=.2)return null;let f=(0,H.f)(d,.2,4);return .1+((0,H.f)(u/f,80,360)-80)/280*.9}(u,e,t,r,o,i,a,s))})}if(!C||0===C.length){if(!n)return void ez();let e=(0,ev.R)(n,t,r);if(e<=0)return ez(),!1;if((0,ev.R)(n,o,i)>=.5)return c(n),!0;let a=e>ek(u,n);return a?c(n):ez(),a}if("down"!==d&&"up"!==d)return void ez();if(!F)return ez(),!1;if(0===j.length)return void ez();let f="down"===d?r:-r,p=Math.sign(f),h="down"===d?s:-s,m="down"===d?i:-i,g=h;if(0!==p&&Math.abs(f)>=10){let e=Math.sign(g);0!==e&&e!==p&&(g=m)}let v=M??0,w=(0,H.f)(v+f,0,F),x=Math.abs(g)>=.5?300*(0,H.f)(g,-4,4):0,b=y?w:(0,H.f)(w+x,0,F),S=(0,eo.j)(ew.swipe,e),N=()=>(eW(0,!0,!0),ez(),!1),P=e=>(k(e.value,S),N()),R=e=>n?(k(null,S),S.isCanceled)?N():(J.current=T,c(d),!0):P(e);if(y){let e=[...j].sort((e,t)=>e.offset-t.offset),t=e.map(e=>e.offset),r=B(t,v),n=e[B(t,b)],o=Math.sign(g),i=b;if(0!==p&&0!==o&&o===p&&Math.abs(g)>=.5){let t=(0,H.f)(r+p,0,e.length-1);if(t!==r){let r=e[t];(p>0?br.offset)&&(n=r,i=r.offset)}else if(p>0)return R(n)}return Math.abs(i-F)e.offset),b)];return g>=.5&&f>0||Math.abs(b-F){if(l.select("open")){let t=J.current;void 0!==t&&k(t,(0,eo.j)(ew.swipe,e)),J.current=void 0,ez(),et.current?.()}else J.current=void 0}):(J.current=void 0,eY(!0))}}),eH=eL.getPointerProps(),eU=eL.getTouchProps(),{moveNative:eV,reset:eB}=eL;et.current=eB,p.useEffect(()=>{let e=O??Y;if(!e||!I||!D)return;let t=(0,L.f)(e);return(0,ee.f)(t,"touchmove",function(r){var n,o;if(eR?.onTouchMove(r),ec.current)return;let i=ed.current,a=r.touches[0];a&&i&&(!function(r,n,o){let i=K?o.clientY-n.lastY:o.clientX-n.lastX;if(2===r.touches.length||eF(t,e)||X||function(e,t,r,n){if(e.preserveNativeCrossAxisScroll)return!0;if(e.drawerAxisAttributed||!0===e.allowSwipe||!e.hasCrossAxisGestureTarget)return!1;if(!t.cancelable)return e.preserveNativeCrossAxisScroll=!0,!0;let o=n?r.clientY-e.startY:r.clientX-e.startX,i=n?r.clientX-e.startX:r.clientY-e.startY,a=Math.abs(o),s=Math.abs(i);return s>=6&&s>a+2?(e.preserveNativeCrossAxisScroll=!0,!0):!(a>=6)||(e.drawerAxisAttributed=!0,!1)}(n,r,o,K))return;let a=n.scrollTarget;if(!a||a===t.documentElement||a===t.body){r.cancelable&&r.preventDefault(),r.stopPropagation(),eV(r,e);return}if(!(eI(a,V).max>0)){r.cancelable&&r.preventDefault(),r.stopPropagation();return}if(0!==i){var s,l,u,c;let e=(s=a,l=V,u=d,c=i,!!(eA(u,l)?c>0:c<0)&&eD(s,l,u));n.allowSwipe?r.cancelable&&r.preventDefault():r.cancelable&&e?(n.allowSwipe=!0,r.preventDefault()):n.allowSwipe=!1}!0===n.allowSwipe&&(r.stopPropagation(),eV(r,e))}(r,i,a),(n=i).lastX=(o=a).clientX,n.lastY=o.clientY)},{passive:!1,capture:!0})},[D,X,I,Y,K,V,d,eV,O,eR]),(0,P.f)(()=>{e$&&!eL.swiping&&eW(!I||$?0:eE??0,!0,!1)},[eW,g,$,m,I,eE,e$,eL.swiping,l,z]),(0,P.f)(()=>{if(m)return I||m(0),()=>{m(0)}},[m,I]),(0,P.f)(()=>{I&&(b.current||eB(),ez())},[ez,I,eB,b]),(0,P.f)(()=>{let e=c.current;return()=>{z?.set({swipeProgress:0,frontmostHeight:0}),eT(e,!1);let t=c.current;t!==e&&eT(t,!1),eX()}},[c,eX,z]);let eZ=p.useMemo(()=>({swiping:eL.swiping,getDragStyles:eL.getDragStyles,swipeStrength:G??null,setSwipeDismissed:eY}),[eY,eL.getDragStyles,eL.swiping,G]);function e_(e){ec.current=e,ed.current=null}function eK(){e_(!1),es.current="",el.current=!1}function eq(e){return es.current="","touch"!==e.pointerType}return(0,n.jsx)(em.f,{ref:t,className:o,style:i,render:r,...(0,eg.w)(s,{onPointerDown(e){var t,r;if(es.current=e.pointerType,el.current="pen"===e.pointerType,!I||!D||X)return;let n=(0,eN.f)(e.currentTarget.getRootNode(),e.clientX,e.clientY);t=n,(0,ex.h)(t,eS.u)||(r=n,(0,ex.h)(r,ej))||"touch"!==e.pointerType&&eH.onPointerDown?.(e)},onPointerMove(e){"touch"!==e.pointerType&&eH.onPointerMove?.(e)},onPointerUp(e){eq(e)&&eH.onPointerUp?.(e)},onPointerCancel(e){eq(e)&&eH.onPointerCancel?.(e)},onTouchStart(e){var t,r,n;if("pen"===es.current&&el.current){el.current=!1,e_(!1);return}if(!I||!D||X)return void e_(!1);let o=e.touches[0];if(!o)return;if(r=(t=e).nativeEvent,n=(0,er.f)(t.currentTarget),r.composedPath().some(e=>e instanceof n.HTMLInputElement&&"range"===e.type))return void e_(!1);let i=e.currentTarget,a=(0,eN.f)(i.getRootNode(),o.clientX,o.clientY),s=(0,ex.Z)(e.nativeEvent),l=(0,ep.m)(s)?s:i;if(!(0,ex.I)(i,l)||(eR?.onTouchStart(e),(0,ex.h)(a,`${eS.u}:not(${eP[q]})`)))return void e_(!0);ec.current=!1;let c=(0,eb.U)(l,i,V),f=null!=(0,eb.U)(l,i,q)||null!=(0,ex.h)(a,eP[q]),p=null;c&&(p=!!eD(c,V,d)&&null),ed.current={startX:o.clientX,startY:o.clientY,lastX:o.clientX,lastY:o.clientY,startedInPopup:(0,ex.I)(u.current,a),scrollTarget:c,hasCrossAxisGestureTarget:f,allowSwipe:p,preserveNativeCrossAxisScroll:!1,drawerAxisAttributed:!1},eU.onTouchStart?.(e)},onTouchEnd(e){eR?.onTouchEnd(e),eK(),eU.onTouchEnd?.(e)},onTouchCancel(e){eR?.onTouchCancel(),eK(),eU.onTouchCancel?.(e)},"data-nested-dialog-open":void 0}),children:(0,n.jsx)(_.Provider,{value:eZ,children:a})})});function eT(e,t){e?.toggleAttribute($,t)}function eM(e,t){return"left"===t||"right"===t?e.offsetWidth:e.offsetHeight}function ek(e,t){return Math.max(.5*eM(e,t),10)}function eF(e,t){let r,n,o=(0,ex.T)(e);if(o&&(0,ex.I)(t,o)&&("INPUT"===o.tagName||"TEXTAREA"===o.tagName)){let{selectionStart:e,selectionEnd:t}=o;if(null!=e&&null!=t&&e=i}function eA(e,t){return"vertical"===t?"down"===e:"right"===e}e.s(["Backdrop",0,N,"Content",0,j,"Popup",0,Q,"Portal",0,J,"Root",0,function(e){let{children:o,open:i,defaultOpen:a=!1,onOpenChange:s,onOpenChangeComplete:l,disablePointerDismissal:u=!1,modal:c=!0,actionsRef:d,handle:f,triggerId:h,defaultTriggerId:m=null,swipeDirection:g="down",snapToSequentialPoints:v=!1,snapPoints:w,snapPoint:x,defaultSnapPoint:y,onSnapPointChange:b}=e,S=W(!0),N=S?.onNestedSwipeProgressChange,C=S?.onNestedFrontmostHeightChange,j=S?.onNestedSwipingChange,P=S?.onNestedDrawerPresenceChange,[T,M]=p.useState(0),[k,F]=p.useState(0),[I,D]=p.useState(!1),[A,$]=p.useState(!1),[E]=p.useState(ec),O=void 0!==y?y:w?.[0]??null,Y=void 0!==x,[z,L]=(0,et.f)({controlled:x,default:O,name:"Drawer",state:"snapPoint"}),H=p.useRef(!1),U=p.useRef(!1),V=(0,R.f)((e,t)=>{let r=t??(0,eo.j)(ei.f.none);b?.(e,r),r.isCanceled||L(e)}),B=p.useMemo(()=>Y||!w||0===w.length||null!==z&&w.some(e=>Object.is(e,z))?z:O,[z,Y,O,w]),Z=(0,R.f)(e=>{M(e),!H.current&&e>0&&F(e)}),_=(0,R.f)(e=>{if(e>0){H.current=!0,F(e);return}H.current=!1,T>0&&F(T)}),K=(0,R.f)(e=>{D(e)}),q=(0,R.f)(e=>{E.set(e),N?.(e)}),G=(0,R.f)(e=>{$(e),j?.(e)}),Q=(0,R.f)((e,t)=>{s?.(e,t),!t.isCanceled&&!e&&w&&w.length>0&&V(O,(0,eo.j)(t.reason,t.event,t.trigger))}),J=p.useMemo(()=>({swipeDirection:g,swipeAreaActiveRef:U,snapToSequentialPoints:v,snapPoints:w,activeSnapPoint:B,setActiveSnapPoint:V,frontmostHeight:k,popupHeight:T,hasNestedDrawer:I,nestedSwiping:A,nestedSwipeProgressStore:E,onNestedDrawerPresenceChange:K,onPopupHeightChange:Z,onNestedFrontmostHeightChange:_,onNestedSwipingChange:G,onNestedSwipeProgressChange:q,notifyParentFrontmostHeight:C,notifyParentSwipingChange:j,notifyParentSwipeProgressChange:N,notifyParentHasNestedDrawer:P}),[B,k,I,A,E,P,N,j,C,K,_,q,G,Z,T,V,w,v,U,g]),ee="function"==typeof o?e=>(0,n.jsxs)(p.Fragment,{children:[t||(t=(0,n.jsx)(ed,{})),o(e)]}):(0,n.jsxs)(p.Fragment,{children:[r||(r=(0,n.jsx)(ed,{})),o]}),er=(0,es.f)("drawer",{open:i,defaultOpen:a,onOpenChange:Q,onOpenChangeComplete:l,disablePointerDismissal:u,modal:c,actionsRef:d,handle:f,triggerId:h,defaultTriggerId:m,children:ee});return(0,n.jsx)(X.Provider,{value:J,children:er})},"Viewport",0,eR],22034);var e$=e.i(22034),e$=e$,eE=e$,eO=e$,eY=e$,ez=e$,eX=e$,eW=e.i(207298),eL=e.i(196991),eH=e.i(612927),eU=e.i(136562),eV=e.i(857162),eB=e.i(80676),eZ=e.i(374696);let e_=(0,p.createContext)(null),eK=l.f.Portal;function eq(e){let t,r,i,a,s,l=(0,o.c)(10);return l[0]!==e?({className:t,ref:i,...r}=e,l[0]=e,l[1]=t,l[2]=r,l[3]=i):(t=l[1],r=l[2],i=l[3]),l[4]!==t?(a=(0,eU.f)("fixed inset-0 z-modal bg-black/50 ease-drawer data-[open]:duration-slow data-[closed]:duration-medium data-[open]:animate-in data-[closed]:animate-out data-[closed]:fade-out-0 data-[open]:fade-in-0",t),l[4]=t,l[5]=a):a=l[5],l[6]!==r||l[7]!==i||l[8]!==a?(s=(0,n.jsx)(u.f.Backdrop,{className:a,"data-slot":"sheet-overlay",...r,forceRender:!0,ref:i}),l[6]=r,l[7]=i,l[8]=a,l[9]=s):s=l[9],s}let eG=(0,eW.f)("fixed gap-4 border-border bg-popover p-6 text-popover-foreground shadow-lg transition ease-drawer data-[open]:animate-in data-[closed]:animate-out data-[closed]:duration-medium data-[open]:duration-slow",{variants:{side:{top:"inset-x-0 top-0 border-b data-[closed]:slide-out-to-top data-[open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[closed]:slide-out-to-bottom data-[open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[closed]:slide-out-to-left data-[open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[closed]:slide-out-to-right data-[open]:slide-in-from-right sm:max-w-sm"},layer:{modal:"z-modal",overlay:"z-overlay"}},defaultVariants:{side:"right",layer:"modal"}}),eQ=(0,eW.f)("[--viewport-padding:0px] supports-[-webkit-touch-callout:none]:[--viewport-padding:0.625rem] fixed inset-0 z-overlay flex p-(--viewport-padding)",{variants:{side:{top:"items-start justify-stretch",bottom:"items-end justify-stretch",left:"items-stretch justify-start",right:"items-stretch justify-end"}},defaultVariants:{side:"right"}}),eJ="duration-[450ms] data-[ending-style]:duration-[calc(var(--drawer-swipe-strength)*var(--duration-slow))]",e0=(0,eW.f)((0,eU.f)("[--bleed:3rem] supports-[-webkit-touch-callout:none]:[--bleed:0px]","fixed bg-popover text-popover-foreground shadow-lg","overflow-y-auto overscroll-contain touch-auto","transition-transform ease-drawer","data-[swiping]:select-none data-[swiping]:duration-0","motion-reduce:transition-none","[&:is([data-starting-style],[data-ending-style])]:[transform:var(--exit)]"),{variants:{side:{top:(0,eU.f)("inset-x-0 top-0 max-h-[calc(100dvh-var(--viewport-padding)*2)] border-b p-6",eJ,"[transform:translateY(var(--drawer-swipe-movement-y))]","[--exit:translateY(calc(-100%+var(--bleed)-var(--viewport-padding)-2px))]"),bottom:(0,eU.f)("inset-x-2 bottom-2 max-h-[calc(100dvh-var(--viewport-padding)*2-3.5rem)] rounded-sheet border p-4","pb-sheet-safe","duration-slow data-[ending-style]:duration-[calc(var(--drawer-swipe-strength)*var(--duration-fast))]","[transform:translateY(var(--drawer-swipe-movement-y))]","[--exit:translateY(calc(100%-var(--bleed)+var(--viewport-padding)+0.5rem+2px))]"),left:(0,eU.f)("inset-y-0 left-0 h-full w-3/4 border-r p-6 sm:max-w-sm",eJ,"[transform:translateX(var(--drawer-swipe-movement-x))]","[--exit:translateX(calc(-100%-var(--viewport-padding)-2px))]"),right:(0,eU.f)("inset-y-0 right-0 h-full w-3/4 border-l p-6 sm:max-w-sm",eJ,"[transform:translateX(var(--drawer-swipe-movement-x))]","[--exit:translateX(calc(100%+var(--viewport-padding)+2px))]")}},defaultVariants:{side:"right"}});function e1(e){let t,r,i,a,l,u,c,d,f,p,h,m,g,v,w,x,y,b,S,N,C,j,P,R,T,M=(0,o.c)(62);if(M[0]!==e){let{side:n,className:o,children:s,showCloseButton:g,overlayClassName:v,keepMounted:w,container:x,nonModal:y,showNonModalScrim:b,ref:S,render:N,style:C,...j}=e;d=n,r=o,t=s,f=g,a=v,p=w,i=x,h=y,m=b,u=S,c=C,l=j,M[0]=e,M[1]=t,M[2]=r,M[3]=i,M[4]=a,M[5]=l,M[6]=u,M[7]=c,M[8]=d,M[9]=f,M[10]=p,M[11]=h,M[12]=m}else t=M[1],r=M[2],i=M[3],a=M[4],l=M[5],u=M[6],c=M[7],d=M[8],f=M[9],p=M[10],h=M[11],m=M[12];let k=void 0===d?"right":d,F=void 0===f||f,I=void 0===p||p,D=void 0!==h&&h,A=void 0!==m&&m,$=(0,eZ.r)();M[13]!==a||M[14]!==$?(g=a?.includes("z-popover-overlay")?"z-popover-overlay":$,M[13]=a,M[14]=$,M[15]=g):g=M[15];let E=g;return M[16]!==D||M[17]!==a||M[18]!==$||M[19]!==k?(v=!D&&(0,n.jsx)(eE.Backdrop,{className:(0,eU.f)("fixed inset-0 z-overlay min-h-dvh bg-black/50 opacity-[calc(1-var(--drawer-swipe-progress))] transition-opacity ease-drawer data-[swiping]:duration-0 data-[ending-style]:opacity-0 data-[starting-style]:opacity-0 supports-[-webkit-touch-callout:none]:absolute",$,e2(k),a),"data-slot":"sheet-overlay",forceRender:!0}),M[16]=D,M[17]=a,M[18]=$,M[19]=k,M[20]=v):v=M[20],M[21]!==D||M[22]!==a||M[23]!==A||M[24]!==k?(w=D&&A&&(0,n.jsx)(eE.Backdrop,{className:(0,eU.f)("pointer-events-none fixed inset-0 z-overlay min-h-dvh bg-background/80 transition-opacity ease-drawer data-[ending-style]:opacity-0 data-[starting-style]:opacity-0",e2(k),a),"data-slot":"sheet-overlay",forceRender:!0}),M[21]=D,M[22]=a,M[23]=A,M[24]=k,M[25]=w):w=M[25],M[26]!==E||M[27]!==D||M[28]!==k?(x=(0,eU.f)(eQ({side:k}),E,D&&"pointer-events-none"),M[26]=E,M[27]=D,M[28]=k,M[29]=x):x=M[29],M[30]!==r||M[31]!==E||M[32]!==D||M[33]!==k?(y=(0,eU.f)(e0({side:k}),E,D&&"pointer-events-auto",r),M[30]=r,M[31]=E,M[32]=D,M[33]=k,M[34]=y):y=M[34],M[35]!==c?(b="function"==typeof c?e=>c({open:e.open,transitionStatus:e.transitionStatus,nested:e.nested,nestedDialogOpen:e.nestedDrawerOpen}):c,M[35]=c,M[36]=b):b=M[36],M[37]!==t||M[38]!==D?(S=D?t:(0,n.jsx)(eZ.l,{children:t}),M[37]=t,M[38]=D,M[39]=S):S=M[39],M[40]!==S?(N=(0,n.jsx)(eO.Content,{className:"contents",children:S}),M[40]=S,M[41]=N):N=M[41],M[42]!==F?(C=F&&(0,n.jsxs)(s.f.Close,{className:(0,eU.f)("absolute right-6 top-6 cursor-pointer",eB.k,"rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100","focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none"),children:[(0,n.jsx)(eH.X,{className:"h-4 w-4"}),(0,n.jsx)(eL.T,{children:(0,n.jsx)("span",{className:"sr-only",children:"Close"})})]}),M[42]=F,M[43]=C):C=M[43],M[44]!==l||M[45]!==u||M[46]!==y||M[47]!==b||M[48]!==N||M[49]!==C?(j=(0,n.jsxs)(eY.Popup,{ref:u,initialFocus:!1,className:y,style:b,...l,children:[N,C]}),M[44]=l,M[45]=u,M[46]=y,M[47]=b,M[48]=N,M[49]=C,M[50]=j):j=M[50],M[51]!==j||M[52]!==x?(P=(0,n.jsx)(ez.Viewport,{className:x,children:j}),M[51]=j,M[52]=x,M[53]=P):P=M[53],M[54]!==P||M[55]!==v||M[56]!==w?(R=(0,n.jsxs)(eV.ContainedContextProvider,{value:!1,children:[v,w,P]}),M[54]=P,M[55]=v,M[56]=w,M[57]=R):R=M[57],M[58]!==i||M[59]!==I||M[60]!==R?(T=(0,n.jsx)(eX.Portal,{keepMounted:I,container:i,children:R}),M[58]=i,M[59]=I,M[60]=R,M[61]=T):T=M[61],T}function e2(e){return"bottom"===e?"duration-slow data-[ending-style]:duration-fast":"duration-[450ms] data-[ending-style]:duration-slow"}e.s(["j",0,function(e){let t,r=(0,o.c)(11);if(void 0!==e.swipeDirection){let t,o,i,a;return r[0]!==e?({swipeDirection:o,...t}=e,r[0]=e,r[1]=t,r[2]=o):(t=r[1],o=r[2]),r[3]!==t||r[4]!==o?(i=(0,n.jsx)(e$.Root,{swipeDirection:o,...t}),r[3]=t,r[4]=o,r[5]=i):i=r[5],r[6]!==o||r[7]!==i?(a=(0,n.jsx)(e_.Provider,{value:o,children:i}),r[6]=o,r[7]=i,r[8]=a):a=r[8],a}return r[9]!==e?(t=(0,n.jsx)(e_.Provider,{value:null,children:(0,n.jsx)(i.f.Root,{...e})}),r[9]=e,r[10]=t):t=r[10],t},"O",0,function(e){let t,r=(0,o.c)(2);return r[0]!==e?(t=(0,n.jsx)(s.f.Close,{...e}),r[0]=e,r[1]=t):t=r[1],t},"U",0,function(e){let t,r,i,a,l,u,d,f,h,m,g,v,w,x,y,b,S,N,C,j=(0,o.c)(54);j[0]!==e?({side:d,className:r,children:t,showCloseButton:f,overlayClassName:a,keepMounted:h,container:i,nonModal:m,showNonModalScrim:g,ref:u,...l}=e,j[0]=e,j[1]=t,j[2]=r,j[3]=i,j[4]=a,j[5]=l,j[6]=u,j[7]=d,j[8]=f,j[9]=h,j[10]=m,j[11]=g):(t=j[1],r=j[2],i=j[3],a=j[4],l=j[5],u=j[6],d=j[7],f=j[8],h=j[9],m=j[10],g=j[11]);let P=void 0===d?"right":d,R=void 0===f||f,T=void 0===h||h,M=void 0!==m&&m,k=void 0!==g&&g;if(null!==(0,p.useContext)(e_)){let e;return j[12]!==t||j[13]!==r||j[14]!==i||j[15]!==T||j[16]!==M||j[17]!==a||j[18]!==l||j[19]!==u||j[20]!==R||j[21]!==k||j[22]!==P?(e=(0,n.jsx)(e1,{side:P,className:r,showCloseButton:R,overlayClassName:a,keepMounted:T,container:i,nonModal:M,showNonModalScrim:k,ref:u,...l,children:t}),j[12]=t,j[13]=r,j[14]=i,j[15]=T,j[16]=M,j[17]=a,j[18]=l,j[19]=u,j[20]=R,j[21]=k,j[22]=P,j[23]=e):e=j[23],e}return j[24]!==M||j[25]!==a?(v=!M&&(0,n.jsx)(eq,{className:a}),j[24]=M,j[25]=a,j[26]=v):v=j[26],j[27]!==M||j[28]!==a||j[29]!==k?(w=M&&k&&(0,n.jsx)(eq,{className:(0,eU.f)("pointer-events-none z-overlay",a)}),j[27]=M,j[28]=a,j[29]=k,j[30]=w):w=j[30],j[31]!==r||j[32]!==M||j[33]!==P?(x=(0,eU.f)(eG({side:P,layer:M?"overlay":"modal"}),r),j[31]=r,j[32]=M,j[33]=P,j[34]=x):x=j[34],j[35]!==t||j[36]!==M?(y=M?t:(0,n.jsx)(eZ.l,{children:t}),j[35]=t,j[36]=M,j[37]=y):y=j[37],j[38]!==R?(b=R&&(0,n.jsxs)(s.f.Close,{className:(0,eU.f)("absolute right-6 top-6 cursor-pointer",eB.k,"rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100","focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none"),children:[(0,n.jsx)(eH.X,{className:"h-4 w-4"}),(0,n.jsx)(eL.T,{children:(0,n.jsx)("span",{className:"sr-only",children:"Close"})})]}),j[38]=R,j[39]=b):b=j[39],j[40]!==l||j[41]!==u||j[42]!==b||j[43]!==x||j[44]!==y?(S=(0,n.jsxs)(c.f.Popup,{ref:u,initialFocus:!1,className:x,...l,children:[y,b]}),j[40]=l,j[41]=u,j[42]=b,j[43]=x,j[44]=y,j[45]=S):S=j[45],j[46]!==S||j[47]!==v||j[48]!==w?(N=(0,n.jsxs)(eV.ContainedContextProvider,{value:!1,children:[v,w,S]}),j[46]=S,j[47]=v,j[48]=w,j[49]=N):N=j[49],j[50]!==i||j[51]!==T||j[52]!==N?(C=(0,n.jsx)(eK,{keepMounted:T,container:i,children:N}),j[50]=i,j[51]=T,j[52]=N,j[53]=C):C=j[53],C},"c",0,function(e){let t,r,i,a,s,l=(0,o.c)(10);return l[0]!==e?({className:t,ref:i,...r}=e,l[0]=e,l[1]=t,l[2]=r,l[3]=i):(t=l[1],r=l[2],i=l[3]),l[4]!==t?(a=(0,eU.f)("text-xs text-muted-foreground",t),l[4]=t,l[5]=a):a=l[5],l[6]!==r||l[7]!==i||l[8]!==a?(s=(0,n.jsx)(f.f.Description,{ref:i,className:a,...r}),l[6]=r,l[7]=i,l[8]=a,l[9]=s):s=l[9],s},"L",0,function(e){let t,r,i,a,s,l=(0,o.c)(10);return l[0]!==e?({className:t,ref:i,...r}=e,l[0]=e,l[1]=t,l[2]=r,l[3]=i):(t=l[1],r=l[2],i=l[3]),l[4]!==t?(a=(0,eU.f)("pr-10 text-base font-semibold text-foreground",t),l[4]=t,l[5]=a):a=l[5],l[6]!==r||l[7]!==i||l[8]!==a?(s=(0,n.jsx)(d.f.Title,{ref:i,className:a,...r}),l[6]=r,l[7]=i,l[8]=a,l[9]=s):s=l[9],s},"V",0,function(e){let t,r=(0,o.c)(2);return r[0]!==e?(t=(0,n.jsx)(a.f.Trigger,{...e}),r[0]=e,r[1]=t):t=r[1],t}],217411)},51365,e=>{"use strict";e.i(640216);let t=new Set(["ac","co","com","edu","go","gob","gov","ltd","me","ne","net","nom","or","org","plc","sch"]),r=(e,t=256)=>`https://t0.gstatic.com/faviconV2?client=SOCIAL&type=FAVICON&fallback_opts=TYPE,SIZE,URL&url=${e}&size=${t}`,n=new Set(["amazonaws.com","azurewebsites.net","cloudfront.net","firebaseapp.com","fly.dev","github.io","gitlab.io","herokuapp.com","ngrok.app","ngrok.io","netlify.app","onrender.com","pages.dev","run.app","vercel.app","web.app","workers.dev"]),o=/\.(png|jpe?g|ico|svg|webp|gif|bmp)$/i,i=r("https://huggingface.co/");e.s(["t",0,i,"g",0,e=>`/api/frontend/v1/apps/${e}/icon`,"e",0,r,"r",0,e=>`/images/icons/${e}`,"Z",0,e=>{let r=(e=>{let t=/^[a-z][a-z\d+\-.]*:\/\//iu.test(e)?e:`https://${e}`;try{return new URL(t).hostname.toLowerCase().replace(/\.$/u,"")}catch{return null}})(e);if(null===r)return null;let o=r.split(".").slice(1);if(o.length<2||2===o.length&&2===(o[1]??"").length&&t.has(o[0]??""))return null;let i=o.join(".");return[...n].some(e=>i===e||i.endsWith(`.${e}`))?null:`https://${i}`},"Q",0,e=>{try{return o.test(new URL(e).pathname)}catch{return!1}},"$",0,e=>{try{let t=new URL(e).hostname.toLowerCase().replace(/\.$/,"");return"openrouter.ai"===t||t.endsWith(".openrouter.ai")}catch{return!1}}],51365)},640216,e=>{"use strict";var t=e.i(914571),r=e.i(647204),n=e.i(30012);function o(e){let t=e.replaceAll(/^\[|\]$/g,""),r=l(t);if(r)return o(r);if(i(t)){let e=Number.parseInt(t.split(".")[0]??"",10);return 0===e||127===e}let n=a(t);if(n)return n.slice(0,15).every(e=>0===e)&&(0===n[15]||1===n[15]);let s=u(t);return"localhost"===s||s.endsWith(".localhost")||s.includes(":")}function i(e){let t=e.split(".");return 4===t.length&&t.every(e=>/^\d{1,3}$/.test(e)&&Number(e)>=0&&255>=Number(e))}function a(e){let t=e.replaceAll(/^\[|\]$/g,"").toLowerCase(),r=t.indexOf("%");if(-1!==r){if(0===r||r===t.length-1)return null;t=t.slice(0,r)}if(!t.includes(":"))return null;if(t.includes(".")){let e=t.lastIndexOf(":");if(-1===e)return null;let r=t.slice(e+1);if(!i(r))return null;let n=r.split(".").map(Number),o=(n[0]??0)<<8|(n[1]??0),a=(n[2]??0)<<8|(n[3]??0);t=`${t.slice(0,e+1)}${o.toString(16)}:${a.toString(16)}`}let n=t.indexOf("::");if(n!==t.lastIndexOf("::"))return null;let o=-1!==n?function(e,t){let r=e.slice(0,t),n=e.slice(t+2),o=""===r?[]:r.split(":"),i=""===n?[]:n.split(":");if(o.some(e=>""===e)||i.some(e=>""===e))return null;let a=8-o.length-i.length;return a<1?null:[...o,...Array.from({length:a},()=>"0"),...i]}(t,n):t.split(":");return null===o||8!==o.length||o.some(e=>!/^[0-9a-f]{1,4}$/.test(e))?null:o.flatMap(e=>{let t=Number.parseInt(e,16);return[t>>8&255,255&t]})}function s(e){return 254===e[0]&&((e[1]??0)&192)==128}function l(e){let t=a(e);if(null===t)return null;let r=t.slice(0,10).every(e=>0===e)&&255===t[10]&&255===t[11],n=t.slice(0,12).every(e=>0===e),o=t.slice(0,15).every(e=>0===e)&&(0===t[15]||1===t[15]);return!r&&!n||n&&o?null:`${t[12]}.${t[13]}.${t[14]}.${t[15]}`}function u(e){let t=e.toLowerCase(),r=t.length;for(;r>0&&"."===t[r-1];)r-=1;return t.slice(0,r)}t.n,e.s(["b",0,function(e,t){return"https:"===e.protocol||"http:"===e.protocol&&t&&o(e.hostname)},"i",0,function(e){let t=u(e);return"cfargotunnel.com"===t||t.endsWith(".cfargotunnel.com")},"y",0,o,"r",0,function(e){let t=u(e);return"openrouter.ai"===t||t.endsWith(".openrouter.ai")},"E",0,function(e,t={}){let c,d,f,p;try{c=new URL(e)}catch{return(0,r.Y)("Invalid URL format")}let h=c.hostname.toLowerCase(),m=c.protocol,g=(0,n.T)()&&!0;if(o(h)&&g)return"http:"!==m&&"https:"!==m?(0,r.Y)("Only HTTP and HTTPS protocols are allowed"):(0,r.N)(!0);if(o(h))return(0,r.Y)("Localhost URLs are not allowed");if(function e(t){let r=l(t.replaceAll(/^\[|\]$/g,""));if(r)return e(r)||o(r);if(i(t)){let e=t.split(".").map(Number);if(4!==e.length||e.some(e=>Number.isNaN(e)))return!1;let[r,n]=e;return void 0!==r&&void 0!==n&&(10===r||172===r&&n>=16&&n<=31||192===r&&168===n||100===r&&n>=64&&n<=127||169===r&&254===n)}if(null!==a(t)){let e=a(t);return null!==e&&(((e[0]??0)&254)==252||s(e))}return!1}(h))return(0,r.Y)("Private IP addresses are not allowed");if(function(e){if(i(e)){let t=e.split(".").map(Number);if(4===t.length&&169===t[0]&&254===t[1])return!0}if(null!==a(e)){let t=a(e);return null!==t&&s(t)}return!1}(h)||"metadata.google.internal"===(d=u(h))||d.endsWith(".metadata.google.internal")||(f=u(h)).endsWith(".svc")||f.endsWith(".svc.cluster.local")||f.endsWith(".cluster.local")||(p=u(h)).endsWith(".internal")||p.endsWith(".local"))return(0,r.Y)("Unsupported URL, public internet addresses only");if(!g&&"https:"!==m){if(!t.allowHttp)return(0,r.Y)("Only HTTPS URLs are allowed");if("http:"!==m)return(0,r.Y)("Only HTTP and HTTPS protocols are allowed")}return g&&"http:"!==m&&"https:"!==m?(0,r.Y)("Only HTTP and HTTPS protocols are allowed in dev"):(0,r.N)(!0)}],640216)}]); //# sourceMappingURL=3rehdq19u7c4k.js.map