!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="01a09faf-5302-72c2-a682-c221aa21b4e9")}catch(e){}}();(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,797738,e=>{"use strict";var t=e.i(270401);let n=t.forwardRef(function({title:e,titleId:n,...r},i){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":n},r),e?t.createElement("title",{id:n},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 4.5v15m7.5-7.5h-15"}))});e.s(["PlusIcon",0,n],797738)},145891,e=>{"use strict";let t=(0,e.i(202913).default)("pause",[["rect",{x:"14",y:"3",width:"5",height:"18",rx:"1",key:"kaeet6"}],["rect",{x:"5",y:"3",width:"5",height:"18",rx:"1",key:"1wsw3u"}]]);e.s(["Pause",0,t],145891)},130868,e=>{"use strict";var t=e.i(222666),n=e.i(505962),r=e.i(452473),i=e.i(201459),o=e.i(145891),a=e.i(197070),s=e.i(270401),l=e.i(528164);let u=(0,s.createContext)(null),d=(0,s.createContext)(null);function c(){return(0,s.useContext)(u)}function p(){return(0,s.useContext)(d)}function g({audioProps:e,children:n,src:r}){let i=(0,s.useRef)(null),o=(0,s.useRef)(null),[a,l]=(0,s.useState)(),[c,p]=(0,s.useState)(null),[f,v]=(0,s.useState)(0),[h,m]=(0,s.useState)(!0),[x,y]=(0,s.useState)(0),[S,C]=(0,s.useState)(0),E=(0,s.useCallback)(async()=>{let e=i.current;if(!e)return;if(o.current)try{await o.current}catch{}finally{o.current=null}let t=e.play();o.current=t;try{await t}catch(e){if(e instanceof DOMException&&"AbortError"===e.name)return;throw e}finally{o.current=null}},[]),w=(0,s.useCallback)(()=>{i.current?.pause()},[]),b=(0,s.useCallback)(e=>{let t=i.current;if(!t||void 0===a||!Number.isFinite(a))return;let n=Math.max(0,Math.min(e,a));t.currentTime=n,C(n)},[a]);(0,s.useEffect)(()=>{let e=i.current;e&&(l(void 0),p(null),v(e.networkState),m(!0),y(e.readyState),C(0),e.load())},[r]),(0,s.useEffect)(()=>{let e=i.current;if(!e)return;let t=()=>{v(e.networkState),y(e.readyState)},n=()=>{l(e.duration)},r=()=>{p(e.error)},o=()=>{m(!0)},a=()=>{m(!1)},s=()=>{C(e.currentTime)};return e.addEventListener("canplay",t),e.addEventListener("durationchange",n),e.addEventListener("ended",o),e.addEventListener("error",r),e.addEventListener("loadedmetadata",n),e.addEventListener("loadstart",t),e.addEventListener("pause",o),e.addEventListener("play",a),e.addEventListener("playing",t),e.addEventListener("timeupdate",s),e.addEventListener("waiting",t),()=>{e.removeEventListener("canplay",t),e.removeEventListener("durationchange",n),e.removeEventListener("ended",o),e.removeEventListener("error",r),e.removeEventListener("loadedmetadata",n),e.removeEventListener("loadstart",t),e.removeEventListener("pause",o),e.removeEventListener("play",a),e.removeEventListener("playing",t),e.removeEventListener("timeupdate",s),e.removeEventListener("waiting",t)}},[]);let P=!h,R=x<3&&2===f,j=(0,s.useMemo)(()=>({duration:a,error:c,isBuffering:R,isPlaying:P,pause:w,play:E,ref:i,seek:b}),[a,c,R,P,w,E,b]);return(0,t.jsx)(u.Provider,{value:j,children:(0,t.jsxs)(d.Provider,{value:S,children:[(0,t.jsx)("audio",{ref:i,src:r,className:"hidden",preload:"metadata",...e}),n]})})}function f(e){let s,u,d,p,g,f,v,h,m,x,y,S,C=(0,n.c)(30);C[0]!==e?({children:s,className:u,isLoading:d,size:g,type:f,variant:v,...p}=e,C[0]=e,C[1]=s,C[2]=u,C[3]=d,C[4]=p,C[5]=g,C[6]=f,C[7]=v):(s=C[1],u=C[2],d=C[3],p=C[4],g=C[5],f=C[6],v=C[7]);let E=void 0===g?"icon":g,w=void 0===f?"button":f,b=void 0===v?"outline":v,P=c();if(!P)return null;let R=d??P.isBuffering;C[8]!==P.isPlaying?(h=P.isPlaying?(0,t.jsx)(o.Pause,{}):(0,t.jsx)(a.Play,{}),C[8]=P.isPlaying,C[9]=h):h=C[9];let j=h,O=R||void 0,A=P.isPlaying?"Pause audio":"Play audio";C[10]!==u?(m=(0,r.cn)("shrink-0 rounded-full",u),C[10]=u,C[11]=m):m=C[11];let N=!0===d;return C[12]!==P?(x=()=>{P.isPlaying?P.pause():P.play()},C[12]=P,C[13]=x):x=C[13],C[14]!==s||C[15]!==j||C[16]!==R||C[17]!==d?(y=R&&!0!==d?(0,t.jsx)(i.Loader2,{className:"animate-spin"}):s??j,C[14]=s,C[15]=j,C[16]=R,C[17]=d,C[18]=y):y=C[18],C[19]!==p||C[20]!==E||C[21]!==y||C[22]!==O||C[23]!==A||C[24]!==m||C[25]!==N||C[26]!==x||C[27]!==w||C[28]!==b?(S=(0,t.jsx)(l.Button,{"aria-busy":O,"aria-label":A,className:m,isLoading:N,onClick:x,size:E,type:w,variant:b,...p,children:y}),C[19]=p,C[20]=E,C[21]=y,C[22]=O,C[23]=A,C[24]=m,C[25]=N,C[26]=x,C[27]=w,C[28]=b,C[29]=S):S=C[29],S}function v(e){let i,o,a,l,u,d,g,f,v,m,x,y,S,C,E,w,b,P,R,j,O,A,N,T=(0,n.c)(55);T[0]!==e?({"aria-label":f,className:i,disabled:o,onPointerCancel:a,onPointerDown:l,onPointerUp:u,onValueChange:d,step:v,...g}=e,T[0]=e,T[1]=i,T[2]=o,T[3]=a,T[4]=l,T[5]=u,T[6]=d,T[7]=g,T[8]=f,T[9]=v):(i=T[1],o=T[2],a=T[3],l=T[4],u=T[5],d=T[6],g=T[7],f=T[8],v=T[9]);let L=void 0===f?"Seek audio":f,M=void 0===v?.25:v,k=c(),I=p(),D=(0,s.useRef)(!1),[F,H]=(0,s.useState)(!1),[B,_]=(0,s.useState)(null);if(!k||null===I)return null;let{duration:V}=k;T[10]!==V?(m=void 0!==V&&Number.isFinite(V)&&V>0,T[10]=V,T[11]=m):m=T[11];let U=m,G=F&&null!==B?B:I,$=U?Math.min(100,Math.max(0,G/V*100)):0,K=o||!U;T[12]!==k?(x=()=>{H(!1),_(null),D.current&&k.play().catch(h)},T[12]=k,T[13]=x):x=T[13];let W=x;T[14]!==W||T[15]!==u?(y=e=>{W(),u?.(e)},T[14]=W,T[15]=u,T[16]=y):y=T[16];let z=y;T[17]!==W||T[18]!==a?(S=e=>{W(),a?.(e)},T[17]=W,T[18]=a,T[19]=S):S=T[19];let q=S;T[20]!==i?(C=(0,r.cn)("group/audio-progress relative flex h-4 min-w-20 flex-1 items-center",i),T[20]=i,T[21]=C):C=T[21],T[22]===Symbol.for("react.memo_cache_sentinel")?(E=(0,t.jsx)("div",{className:"pointer-events-none absolute inset-x-0 h-1 rounded-full bg-secondary"}),T[22]=E):E=T[22];let Z=`${$}%`;T[23]!==Z?(w=(0,t.jsx)("div",{className:"pointer-events-none absolute left-0 h-1 rounded-full bg-primary","data-allow-inline-style":!0,style:{width:Z}}),T[23]=Z,T[24]=w):w=T[24];let J=!K&&"group-hover/audio-progress:opacity-100",Q=!K&&F&&"opacity-100";T[25]!==J||T[26]!==Q?(b=(0,r.cn)("pointer-events-none absolute size-3 rounded-full bg-foreground opacity-0 shadow-sm transition-opacity",J,Q),T[25]=J,T[26]=Q,T[27]=b):b=T[27];let X=`calc(${$}% - 0.375rem)`;T[28]!==X?(P={left:X},T[28]=X,T[29]=P):P=T[29],T[30]!==b||T[31]!==P?(R=(0,t.jsx)("span",{className:b,"data-allow-inline-style":!0,style:P}),T[30]=b,T[31]=P,T[32]=R):R=T[32];let Y=U?V:0;return T[33]!==d||T[34]!==k?(j=e=>{let t=e.currentTarget.valueAsNumber;_(t),k.seek(t),d?.(t)},T[33]=d,T[34]=k,T[35]=j):j=T[35],T[36]!==l||T[37]!==k?(O=e=>{D.current=k.isPlaying,H(!0),k.pause(),l?.(e)},T[36]=l,T[37]=k,T[38]=O):O=T[38],T[39]!==L||T[40]!==G||T[41]!==q||T[42]!==z||T[43]!==K||T[44]!==g||T[45]!==M||T[46]!==Y||T[47]!==j||T[48]!==O?(A=(0,t.jsx)("input",{"aria-label":L,className:"absolute inset-0 h-full w-full cursor-pointer appearance-none bg-transparent opacity-0 disabled:cursor-not-allowed",disabled:K,max:Y,min:0,onChange:j,onPointerDown:O,onPointerUp:z,onPointerCancel:q,step:M,type:"range",value:G,...g}),T[39]=L,T[40]=G,T[41]=q,T[42]=z,T[43]=K,T[44]=g,T[45]=M,T[46]=Y,T[47]=j,T[48]=O,T[49]=A):A=T[49],T[50]!==w||T[51]!==R||T[52]!==A||T[53]!==C?(N=(0,t.jsxs)("div",{className:C,children:[E,w,R,A]}),T[50]=w,T[51]=R,T[52]=A,T[53]=C,T[54]=N):N=T[54],N}function h(){}function m(e){let i,o,a,s,l,u=(0,n.c)(11);u[0]!==e?({className:i,...o}=e,u[0]=e,u[1]=i,u[2]=o):(i=u[1],o=u[2]);let d=p();return null===d?null:(u[3]!==i?(a=(0,r.cn)("w-10 text-overline tabular-nums text-muted-foreground",i),u[3]=i,u[4]=a):a=u[4],u[5]!==d?(s=S(d),u[5]=d,u[6]=s):s=u[6],u[7]!==o||u[8]!==a||u[9]!==s?(l=(0,t.jsx)("span",{className:a,...o,children:s}),u[7]=o,u[8]=a,u[9]=s,u[10]=l):l=u[10],l)}function x(e){let i,o,a,s,l,u=(0,n.c)(11);u[0]!==e?({className:i,...o}=e,u[0]=e,u[1]=i,u[2]=o):(i=u[1],o=u[2]);let d=c();if(!d)return null;let{duration:p}=d;return u[3]!==i?(a=(0,r.cn)("w-10 text-right text-overline tabular-nums text-muted-foreground",i),u[3]=i,u[4]=a):a=u[4],u[5]!==p?(s=void 0!==p&&Number.isFinite(p)?S(p):"--:--",u[5]=p,u[6]=s):s=u[6],u[7]!==o||u[8]!==a||u[9]!==s?(l=(0,t.jsx)("span",{className:a,...o,children:s}),u[7]=o,u[8]=a,u[9]=s,u[10]=l):l=u[10],l}function y(e){let i,o,a,s,l,u=(0,n.c)(10);u[0]!==e?({className:i,children:a,...o}=e,u[0]=e,u[1]=i,u[2]=o,u[3]=a):(i=u[1],o=u[2],a=u[3]);let d=void 0===a?"Audio could not be loaded.":a,p=c();return p?.error?(u[4]!==i?(s=(0,r.cn)("text-overline text-negative-text",i),u[4]=i,u[5]=s):s=u[5],u[6]!==d||u[7]!==o||u[8]!==s?(l=(0,t.jsx)("div",{className:s,role:"status",...o,children:d}),u[6]=d,u[7]=o,u[8]=s,u[9]=l):l=u[9],l):null}function S(e){let t=Number.isFinite(e)?Math.max(0,e):0,n=Math.floor(t/3600),r=Math.floor(t%3600/60),i=Math.floor(t%60),o=n>0?r.toString().padStart(2,"0"):r.toString(),a=i.toString().padStart(2,"0");return n>0?`${n}:${o}:${a}`:`${o}:${a}`}e.s(["AudioPlayer",0,function(e){let i,o,a,s,l,u,d,c,p,h,S,C,E=(0,n.c)(24);E[0]!==e?({audioProps:i,children:o,className:a,description:s,metadata:l,src:d,title:c,...u}=e,E[0]=e,E[1]=i,E[2]=o,E[3]=a,E[4]=s,E[5]=l,E[6]=u,E[7]=d,E[8]=c):(i=E[1],o=E[2],a=E[3],s=E[4],l=E[5],u=E[6],d=E[7],c=E[8]);let w=void 0===c?"Audio preview":c;return E[9]!==a?(p=(0,r.cn)("flex w-full items-center gap-3 rounded-lg border border-border bg-card p-3 text-card-foreground shadow-sm",a),E[9]=a,E[10]=p):p=E[10],E[11]!==o||E[12]!==s||E[13]!==l||E[14]!==w?(h=o??(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(f,{}),(0,t.jsxs)("div",{className:"min-w-0 flex-1 flex flex-col gap-y-2",children:[(0,t.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,t.jsxs)("div",{className:"min-w-0 flex flex-col gap-y-0.5",children:[(0,t.jsx)("div",{className:"truncate text-xs font-medium",children:w}),s&&(0,t.jsx)("div",{className:"truncate text-overline text-muted-foreground",children:s})]}),l&&(0,t.jsx)("div",{className:"shrink-0 text-overline text-muted-foreground",children:l})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(m,{}),(0,t.jsx)(v,{}),(0,t.jsx)(x,{})]}),(0,t.jsx)(y,{})]})]}),E[11]=o,E[12]=s,E[13]=l,E[14]=w,E[15]=h):h=E[15],E[16]!==u||E[17]!==p||E[18]!==h?(S=(0,t.jsx)("div",{className:p,...u,children:h}),E[16]=u,E[17]=p,E[18]=h,E[19]=S):S=E[19],E[20]!==i||E[21]!==d||E[22]!==S?(C=(0,t.jsx)(g,{src:d,audioProps:i,children:S}),E[20]=i,E[21]=d,E[22]=S,E[23]=C):C=E[23],C},"AudioPlayerButton",0,f,"AudioPlayerDuration",0,x,"AudioPlayerProgress",0,v,"AudioPlayerProvider",0,g,"AudioPlayerTime",0,m,"useAudioPlayer",0,c,"useAudioPlayerTime",0,p])},311520,e=>{"use strict";var t,n=e.i(222666),r=e.i(505962);e.s([],450654),e.i(450654);var i=e.i(270401),o=e.i(361409),a=e.i(796021),s=e.i(427702),l=e.i(802691),u=e.i(991066),d=e.i(397744);let c=i.createContext(void 0);function p(e){let t=i.useContext(c);if(void 0===t&&!e)throw Error((0,d.default)(50));return t}var g=e.i(939550),f=e.i(467219),v=e.i(214857),h=e.i(306694),m=e.i(246364),x=e.i(836033),y=e.i(325070),S=e.i(190642),C=e.i(875796);let E={...y.popupStoreSelectors,instantType:(0,h.createSelector)(e=>e.instantType),hasViewport:(0,h.createSelector)(e=>e.hasViewport)};class w extends m.ReactStore{constructor(e){super({...{...(0,y.createInitialPopupStoreState)(),instantType:void 0,hasViewport:!1},...e},{popupRef:i.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:new S.PopupTriggerMap,closeDelayRef:{current:300}},E)}setOpen=(e,t)=>{let n=t.reason,r=n===f.REASONS.triggerHover,i=e&&n===f.REASONS.triggerFocus,o=!e&&(n===f.REASONS.triggerPress||n===f.REASONS.escapeKey);if(t.preventUnmountOnClose=()=>{this.set("preventUnmountingOnClose",!0)},this.context.onOpenChange?.(e,t),t.isCanceled)return;this.state.floatingRootContext.dispatchOpenChange(e,t);let a=()=>{let r={open:e};i?r.instantType="focus":o?r.instantType="dismiss":n===f.REASONS.triggerHover&&(r.instantType=void 0);let a=t.trigger?.id??null;(a||e)&&(r.activeTriggerId=a,r.activeTriggerElement=t.trigger??null),this.update(r)};r?v.flushSync(a):a()};static useStore(e,t){let n=(0,x.useRefWithInit)(()=>new w(t)).current,r=e??n,i=(0,C.useSyncedFloatingRootContext)({popupStore:r,onOpenChange:r.setOpen});return r.state.floatingRootContext=i,r}}var b=e.i(373851);function P(e){let{open:t,defaultOpen:r=!1,onOpenChange:u,onOpenChangeComplete:d,actionsRef:p,handle:v,triggerId:h,defaultTriggerId:m=null,children:x}=e,y=w.useStore(v?.store,{open:r,openProp:t,activeTriggerId:m,triggerIdProp:h});(0,a.useOnFirstRender)(()=>{void 0===t&&!1===y.state.open&&!0===r&&y.update({open:!0,activeTriggerId:m})}),y.useControlledProp("openProp",t),y.useControlledProp("triggerIdProp",h),y.useContextCallback("onOpenChange",u),y.useContextCallback("onOpenChangeComplete",d);let S=y.useState("open"),C=y.select("floatingRootContext"),E=y.useState("activeTriggerId"),P=y.useState("payload");(0,b.useImplicitActiveTrigger)(y);let{forceUnmount:R}=(0,b.useOpenStateTransitions)(S,y);(0,o.useIsoLayoutEffect)(()=>{S&&null==E&&y.set("payload",void 0)},[y,E,S]);let j=i.useCallback(()=>{y.setOpen(!1,(0,g.createChangeEventDetails)(f.REASONS.imperativeAction))},[y]);i.useImperativeHandle(p,()=>({unmount:R,close:j}),[R,j]);let O=(0,s.useDismiss)(C),{getReferenceProps:A,getTriggerProps:N,getFloatingProps:T}=(0,l.useInteractions)([O]),L=i.useMemo(()=>A(),[A]),M=i.useMemo(()=>N(),[N]),k=i.useMemo(()=>T(),[T]);return y.useSyncedValues({activeTriggerProps:L,inactiveTriggerProps:M,popupProps:k}),(0,n.jsx)(c.Provider,{value:y,children:"function"==typeof x?x({payload:P}):x})}let R=i.createContext(void 0);var j=e.i(161046);let O=i.forwardRef(function(e,t){let{keepMounted:r=!1,...i}=e;return p().useState("mounted")||r?(0,n.jsx)(R.Provider,{value:r,children:(0,n.jsx)(j.FloatingPortalLite,{ref:t,...i})}):null});var A=e.i(290530),N=e.i(281334),T=e.i(593478),L=e.i(137834),M=e.i(670884),k=e.i(129356);let I=i.forwardRef(function(e,t){let{render:n,className:r,delay:a,closeDelay:s,id:l,payload:u,handle:c,style:g,...f}=e,v=p(!0),h=c?.store??v;if(!h)throw Error((0,d.default)(89));let m=(0,T.useBaseUiId)(l),x=h.useState("isTriggerActive",m),y=h.useState("isOpenedByTrigger",m),S=h.useState("floatingRootContext"),C=i.useRef(null),E=a??600,w=s??300,{registerTrigger:P,isMountedByThisTrigger:R}=(0,b.useTriggerDataForwarding)(m,C,h,{payload:u});(0,o.useIsoLayoutEffect)(()=>{R&&(h.context.closeDelayRef.current=w)},[h,R,w]);let j=(0,k.useHoverReferenceInteraction)(S,{mouseOnly:!0,move:!1,handleClose:(0,L.safePolygon)(),delay:()=>({open:E,close:w}),triggerElementRef:C,isActiveTrigger:x,isClosing:()=>"ending"===h.select("transitionStatus")}),O=(0,M.useFocus)(S,{delay:E}),I=h.useState("triggerProps",R);return(0,N.useRenderElement)("a",e,{state:{open:y},ref:[t,P,C],props:[j,O.reference,I,{id:m},f],stateAttributesMapping:A.triggerOpenStateMapping})}),D=i.createContext(void 0);function F(){let e=i.useContext(D);if(void 0===e)throw Error((0,d.default)(49));return e}var H=e.i(707999),B=e.i(916317),_=e.i(290281),V=e.i(556982);let U=i.forwardRef(function(e,t){let{render:r,className:o,anchor:a,positionMethod:s="absolute",side:l="bottom",align:c="center",sideOffset:g=0,alignOffset:f=0,collisionBoundary:v="clipping-ancestors",collisionPadding:h=5,arrowPadding:m=5,sticky:x=!1,disableAnchorTracking:y=!1,collisionAvoidance:S=B.POPUP_COLLISION_AVOIDANCE,style:C,...E}=e,w=p(),b=function(){let e=i.useContext(R);if(void 0===e)throw Error((0,d.default)(48));return e}(),P=(0,u.useFloatingNodeId)(),j=w.useState("open"),O=w.useState("mounted"),A=w.useState("floatingRootContext"),N=w.useState("instantType"),T=w.useState("transitionStatus"),L=w.useState("hasViewport"),M=(0,H.useAnchorPositioning)({anchor:a,floatingRootContext:A,positionMethod:s,mounted:O,side:l,sideOffset:g,align:c,alignOffset:f,arrowPadding:m,collisionBoundary:v,collisionPadding:h,sticky:x,disableAnchorTracking:y,keepMounted:b,nodeId:P,collisionAvoidance:S,adaptiveOrigin:L?_.adaptiveOrigin:void 0}),k={open:j,side:M.side,align:M.align,anchorHidden:M.anchorHidden,instant:N},I=(0,V.usePositioner)(e,k,{styles:M.positionerStyles,transitionStatus:T,props:E,refs:[t,w.useStateSetter("positionerElement")],hidden:!O,inert:!j});return(0,n.jsx)(D.Provider,{value:M,children:(0,n.jsx)(u.FloatingNode,{id:P,children:I})})});var G=e.i(228876),$=e.i(678968),K=e.i(688342),W=e.i(837861),z=e.i(294064);let q={...A.popupStateMapping,...$.transitionStatusMapping},Z=i.forwardRef(function(e,t){let{className:n,render:r,style:i,...o}=e,a=p(),{side:s,align:l}=F(),u=a.useState("open"),d=a.useState("instantType"),c=a.useState("transitionStatus"),g=a.useState("popupProps"),f=a.useState("floatingRootContext");(0,K.useOpenChangeComplete)({open:u,ref:a.context.popupRef,onComplete(){u&&a.context.onOpenChangeComplete?.(!0)}});let v=(0,G.useStableCallback)(()=>a.context.closeDelayRef.current);return(0,z.useHoverFloatingInteraction)(f,{closeDelay:v}),(0,N.useRenderElement)("div",e,{state:{open:u,side:s,align:l,instant:d,transitionStatus:c},ref:[t,a.context.popupRef,a.useStateSetter("popupElement")],props:[g,(0,W.getDisabledMountTransitionStyles)(c),o],stateAttributesMapping:q})}),J=i.forwardRef(function(e,t){let{render:n,className:r,style:i,...o}=e,a=p(),{arrowRef:s,side:l,align:u,arrowUncentered:d,arrowStyles:c}=F(),g=a.useState("open");return(0,N.useRenderElement)("div",e,{state:{open:g,side:l,align:u,uncentered:d},ref:[s,t],props:[{style:c,"aria-hidden":!0},o],stateAttributesMapping:A.popupStateMapping})}),Q={...A.popupStateMapping,...$.transitionStatusMapping},X=i.forwardRef(function(e,t){let{render:n,className:r,style:i,...o}=e,a=p(),s=a.useState("open"),l=a.useState("mounted"),u=a.useState("transitionStatus");return(0,N.useRenderElement)("div",e,{state:{open:s,transitionStatus:u},ref:[t],props:[{role:"presentation",hidden:!l,style:{pointerEvents:"none",userSelect:"none",WebkitUserSelect:"none"}},o],stateAttributesMapping:Q})}),Y=((t={}).popupWidth="--popup-width",t.popupHeight="--popup-height",t);var ee=e.i(894727);let et={activationDirection:e=>e?{"data-activation-direction":e}:null},en=i.forwardRef(function(e,t){let{render:n,className:r,style:i,children:o,...a}=e,s=p(),l=F(),u=s.useState("instantType"),{children:d,state:c}=(0,ee.usePopupViewport)({store:s,side:l.side,cssVars:Y,children:o}),g={activationDirection:c.activationDirection,transitioning:c.transitioning,instant:u};return(0,N.useRenderElement)("div",e,{state:g,ref:t,props:[a,{children:d}],stateAttributesMapping:et})});class er{constructor(){this.store=new w}open(e){let t=e?this.store.context.triggerElements.getById(e):void 0;if(e&&!t)throw Error((0,d.default)(88,e));this.store.setOpen(!0,(0,g.createChangeEventDetails)(f.REASONS.imperativeAction,void 0,t))}close(){this.store.setOpen(!1,(0,g.createChangeEventDetails)(f.REASONS.imperativeAction,void 0,void 0))}get isOpen(){return this.store.state.open}}e.s(["Arrow",0,J,"Backdrop",0,X,"Handle",0,er,"Popup",0,Z,"Portal",0,O,"Positioner",0,U,"Root",0,function(e){return p(!0)?(0,n.jsx)(P,{...e}):(0,n.jsx)(u.FloatingTree,{children:(0,n.jsx)(P,{...e})})},"Trigger",0,I,"Viewport",0,en,"createHandle",0,function(){return new er}],8995);var ei=e.i(8995),ei=ei,eo=e.i(452473),ea=e.i(320187),es=e.i(147680),el=e.i(691038);let eu=0,ed=0,ec=new Set;function ep(e){if(!(e.target instanceof Element&&e.target.closest('[data-slot="hover-card-content"]')))for(let e of(eu=Date.now(),ec))e()}let eg=(0,i.createContext)(null);function ef(){return 1===(ed+=1)&&document.addEventListener("scroll",ep,{capture:!0,passive:!0}),()=>{0==(ed-=1)&&document.removeEventListener("scroll",ep,!0)}}e.s(["HoverCard",0,e=>{let t,o,a,s,l,u,d,c,p,g=(0,r.c)(17);g[0]!==e?({children:t,...o}=e,g[0]=e,g[1]=t,g[2]=o):(t=g[1],o=g[2]);let[f,v]=(0,i.useState)(!1),h=(0,el.useMatchMedia)("(hover: hover) and (pointer: fine)",!0);g[3]===Symbol.for("react.memo_cache_sentinel")?(a=[],g[3]=a):a=g[3],(0,i.useEffect)(ef,a),g[4]!==f?(s=()=>{if(!f)return;let e=()=>v(!1);return ec.add(e),()=>{ec.delete(e)}},l=[f],g[4]=f,g[5]=s,g[6]=l):(s=g[5],l=g[6]),(0,i.useEffect)(s,l),g[7]!==h?(u={isHoverCapable:h,setOpen:v},g[7]=h,g[8]=u):u=g[8];let m=u;g[9]===Symbol.for("react.memo_cache_sentinel")?(d=e=>{e&&Date.now()-eu<200||v(e)},g[9]=d):d=g[9];let x=d;return g[10]!==t||g[11]!==f||g[12]!==o?(c=(0,n.jsx)(ei.Root,{open:f,onOpenChange:x,...o,children:t}),g[10]=t,g[11]=f,g[12]=o,g[13]=c):c=g[13],g[14]!==m||g[15]!==c?(p=(0,n.jsx)(eg.Provider,{value:m,children:c}),g[14]=m,g[15]=c,g[16]=p):p=g[16],p},"HoverCardContent",0,e=>{let t,i,o,a,s,l,u,d,c,p,g,f,v,h,m,x,y,S=(0,r.c)(35);S[0]!==e?({className:a,anchor:i,align:f,alignOffset:t,arrowPadding:o,collisionAvoidance:s,collisionBoundary:l,collisionPadding:u,positionMethod:d,ref:p,side:v,sideOffset:h,sticky:g,...c}=e,S[0]=e,S[1]=t,S[2]=i,S[3]=o,S[4]=a,S[5]=s,S[6]=l,S[7]=u,S[8]=d,S[9]=c,S[10]=p,S[11]=g,S[12]=f,S[13]=v,S[14]=h):(t=S[1],i=S[2],o=S[3],a=S[4],s=S[5],l=S[6],u=S[7],d=S[8],c=S[9],p=S[10],g=S[11],f=S[12],v=S[13],h=S[14]);let C=void 0===f?"center":f,E=void 0===v?"top":v,w=void 0===h?6:h,b=(0,ea.useFloatingLayerZClass)();return S[15]!==a?(m=(0,eo.cn)("w-72 rounded-lg border border-border bg-popover p-4 text-popover-foreground shadow-md outline-hidden",es.popupMotion,a),S[15]=a,S[16]=m):m=S[16],S[17]!==c||S[18]!==p||S[19]!==m?(x=(0,n.jsx)(ei.Popup,{"data-slot":"hover-card-content",ref:p,className:m,...c}),S[17]=c,S[18]=p,S[19]=m,S[20]=x):x=S[20],S[21]!==C||S[22]!==t||S[23]!==i||S[24]!==o||S[25]!==s||S[26]!==l||S[27]!==u||S[28]!==d||S[29]!==E||S[30]!==w||S[31]!==g||S[32]!==x||S[33]!==b?(y=(0,n.jsx)(ei.Portal,{children:(0,n.jsx)(ei.Positioner,{anchor:i,align:C,alignOffset:t,arrowPadding:o,collisionAvoidance:s,collisionBoundary:l,collisionPadding:u,positionMethod:d,side:E,sideOffset:w,sticky:g,className:b,children:x})}),S[21]=C,S[22]=t,S[23]=i,S[24]=o,S[25]=s,S[26]=l,S[27]=u,S[28]=d,S[29]=E,S[30]=w,S[31]=g,S[32]=x,S[33]=b,S[34]=y):y=S[34],y},"HoverCardTrigger",0,e=>{let t,o,a,s,l,u,d,c=(0,r.c)(16);c[0]!==e?({className:t,onClick:o,delay:s,closeDelay:l,...a}=e,c[0]=e,c[1]=t,c[2]=o,c[3]=a,c[4]=s,c[5]=l):(t=c[1],o=c[2],a=c[3],s=c[4],l=c[5]);let p=void 0===s?120:s,g=void 0===l?120:l,{isHoverCapable:f,setOpen:v}=function(){let e=(0,i.useContext)(eg);if(!e)throw Error("HoverCard subcomponents must be rendered inside ");return e}();return c[6]!==f||c[7]!==o||c[8]!==v?(u=e=>{if(!f){e.stopPropagation();let t=e.currentTarget;t instanceof Element&&(t.matches("a[href]")||t.querySelector("a[href]"))||(e.preventDefault(),v(!0))}o?.(e)},c[6]=f,c[7]=o,c[8]=v,c[9]=u):u=c[9],c[10]!==t||c[11]!==g||c[12]!==p||c[13]!==a||c[14]!==u?(d=(0,n.jsx)(ei.Trigger,{delay:p,closeDelay:g,className:t,onClick:u,...a}),c[10]=t,c[11]=g,c[12]=p,c[13]=a,c[14]=u,c[15]=d):d=c[15],d}],311520)},958969,e=>{"use strict";e.s(["LatestRouterModel",0,{AnthropicClaudeOpus:"~anthropic/claude-opus-latest",AnthropicClaudeSonnet:"~anthropic/claude-sonnet-latest",AnthropicClaudeHaiku:"~anthropic/claude-haiku-latest",GoogleGeminiPro:"~google/gemini-pro-latest",GoogleGeminiFlash:"~google/gemini-flash-latest",OpenAIGpt:"~openai/gpt-latest",OpenAIGptSol:"~openai/gpt-sol-latest",OpenAIGptMini:"~openai/gpt-mini-latest",MoonshotKimi:"~moonshotai/kimi-latest"},"RouterModel",0,{Auto:"openrouter/auto",AutoBeta:"openrouter/auto-beta",BodyBuilder:"openrouter/bodybuilder",Free:"openrouter/free",ParetoCode:"openrouter/pareto-code",Fusion:"openrouter/fusion",FusionFlash:"openrouter/fusion-flash",Phaser:"openrouter/phaser"}])},175817,e=>{"use strict";e.s(["getTotalTokens",0,e=>e?e.total_prompt_tokens+(e.total_completion_tokens??0):0])}]); //# sourceMappingURL=3rgkp89b9sdny.js.map //# chunkId=01a09faf-5302-72c2-a682-c221aa21b4e9