1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,67178,t=>{"use strict";let r,a,n,i,o,s,l,d,c,u;t.s(["BIGINT_FORMAT_RANGES",()=>i3,"CONSTANT_CATCH",()=>oP,"Class",()=>oN,"NUMBER_FORMAT_RANGES",()=>i4,"aborted",()=>oi,"allowsEval",()=>iV,"assert",()=>iy,"assertEqual",()=>ih,"assertIs",()=>ix,"assertNever",()=>ig,"assertNotEqual",()=>ip,"assignProp",()=>iA,"attachSchema",()=>od,"base64ToUint8Array",()=>oy,"base64urlToUint8Array",()=>ov,"cached",()=>ij,"captureStackTrace",()=>iF,"cleanEnum",()=>og,"cleanRegex",()=>i_,"clone",()=>iQ,"cloneDef",()=>i$,"codePointLength",()=>op,"constantCatch",()=>oO,"createTransparentProxy",()=>i1,"defineLazy",()=>iC,"defineLazyInternal",()=>oI,"derived",()=>oC,"esc",()=>iU,"escapeRegex",()=>iX,"explicitlyAborted",()=>oo,"extend",()=>i7,"finalizeIssue",()=>oc,"floatSafeRemainder",()=>iE,"getElementAtPath",()=>iz,"getEnumValues",()=>ib,"getLengthableOrigin",()=>om,"getParsedType",()=>iK,"getSizableOrigin",()=>ou,"hexToUint8Array",()=>ok,"hide",()=>oS,"installLazyProp",()=>oM,"isObject",()=>iY,"isPlainObject",()=>iq,"issue",()=>ox,"joinValues",()=>iv,"jsonStringifyReplacer",()=>iw,"members",()=>o_,"merge",()=>or,"mergeDefs",()=>iR,"normalizeParams",()=>i0,"nullish",()=>iN,"numKeys",()=>iZ,"objectClone",()=>iT,"omit",()=>i9,"optionalKeys",()=>i5,"own",()=>oE,"parsedType",()=>of,"partial",()=>oa,"pick",()=>i6,"prefixIssues",()=>os,"primitiveTypes",()=>iJ,"promiseAllObject",()=>iL,"propertyKeyTypes",()=>iG,"randomString",()=>iW,"rawShape",()=>iI,"required",()=>on,"safeExtend",()=>ot,"shallowClone",()=>iH,"slugify",()=>iB,"stringifyPrimitive",()=>i2,"toZod",()=>im,"uint8ArrayToBase64",()=>ob,"uint8ArrayToBase64url",()=>ow,"uint8ArrayToHex",()=>oj,"unwrapMessage",()=>ol],13322);var h,p,m,f,x,g,y,b,v,w,k,j,N,_,E,S,C,T,A,I,M,P,O,D,R,$,z,L,W,U,B,F,Y,V,q,H,Z,K,G,J,X,Q,ee,et,er,ea,en,ei,eo,es,el,ed,ec,eu,eh,ep,em,ef,ex,eg,ey=t.i(46882),eb=t.i(26201),ev=t.i(99219),ew=t.i(66809),ek=t.i(55118);function ej({balance:t,onGetMore:r,loggedIn:a,freeUsed:n,balanceKnown:i,tone:o="brass"}){let s=(0,ey.jsx)(e_,{balance:t,freeUsed:n}),l=n&&t<=3;return i?"hero"===o?a&&t<=0&&n?(0,ey.jsx)("button",{type:"button",onClick:()=>{(0,eb.track)("BUY_QUESTIONS_CLICKED_WEB_EVENT",{placement:"balance_hero_exhausted",balance:t}),r()},className:"text-mlh-amber/85 hover:text-mlh-amber decoration-mlh-amber/40 cursor-pointer font-mono text-[9.5px] tracking-[0.18em] uppercase underline underline-offset-[5px] transition-colors duration-200",children:"Out of questions · Buy questions"}):(0,ey.jsxs)("span",{className:`flex items-center gap-1.5 font-mono text-[9.5px] tracking-[0.18em] whitespace-nowrap uppercase ${l?"text-mlh-amber/90":"text-mlh-plum-300/80"}`,children:[(0,ey.jsx)(ew.Star,{size:9,className:"fill-mlh-amber text-mlh-amber"}),s]}):t>0?(0,ey.jsx)(eS,{count:s,action:"Buy more",onAction:()=>{(0,eb.track)("BUY_QUESTIONS_CLICKED_WEB_EVENT",{placement:"balance_chip",balance:t}),r()},low:l}):a&&!n?(0,ey.jsx)(eS,{count:s,action:"Buy",onAction:()=>{(0,eb.track)("BUY_QUESTIONS_CLICKED_WEB_EVENT",{placement:"balance_chip_free_owed",balance:t}),r()},low:!1}):a?(0,ey.jsx)(eS,{count:s,action:"Buy more",onAction:()=>{(0,eb.track)("BUY_QUESTIONS_CLICKED_WEB_EVENT",{placement:"balance_chip_exhausted",balance:t}),r()},low:!0}):(0,ey.jsx)(eC,{label:"Buy questions",onClick:()=>{(0,eb.track)("BUY_QUESTIONS_CLICKED_WEB_EVENT",{placement:"balance_action",balance:t}),r()}}):"hero"===o?(0,ey.jsx)("span",{"aria-hidden":!0,className:"block h-[14px]"}):(0,ey.jsx)("span",{"aria-hidden":!0,className:"border-mlh-plum-400/18 bg-mlh-plum-500/6 inline-block w-[176px] animate-pulse rounded-full border px-3.5 py-[7px] font-mono text-[10.5px] tracking-[0.14em]",children:" "})}function eN(t,r){return t>0?`${(0,ev.unitLabel)(t,"questions")} left`:r?"0 questions left":"Next question free"}function e_({balance:t,freeUsed:r}){let a=eN(t,r),n=String(t);return a.startsWith(n)?(0,ey.jsxs)(ey.Fragment,{children:[(0,ey.jsx)(eE,{value:t}),a.slice(n.length)]}):a}function eE({value:t}){let[r,a]=(0,ek.useState)({value:t,was:null,up:!1,seq:0});return r.value!==t&&a(r=>({value:t,was:r.value,up:t>r.value,seq:r.seq+1})),(0,ey.jsxs)("span",{className:"mlh-tally","data-dir":r.up?"up":"down",children:[null!==r.was&&(0,ey.jsx)("span",{"aria-hidden":!0,
1className:"mlh-tally-was",onAnimationEnd:()=>a(t=>({...t,was:null})),children:r.was},`was-${r.seq}`),(0,ey.jsx)("span",{className:r.seq>0?"mlh-tally-now":"",children:t},r.seq)]})}function eS({count:t,action:r,onAction:a,low:n}){return(0,ey.jsxs)("div",{className:`flex items-stretch overflow-hidden rounded-full border font-mono text-[10.5px] font-medium tracking-[0.14em] whitespace-nowrap uppercase ${n?"border-mlh-amber/50 bg-mlh-amber/12 text-mlh-amber":"border-mlh-plum-400/45 bg-mlh-plum-500/14 text-mlh-plum-100/85"}`,children:[(0,ey.jsx)("span",{className:"px-3.5 py-[7px]",children:t}),(0,ey.jsx)("button",{type:"button",onClick:a,className:`cursor-pointer border-l px-3.5 py-[7px] transition-colors duration-200 ${n?"border-mlh-amber/40 bg-mlh-amber/20 text-mlh-amber hover:bg-mlh-amber/32":"border-mlh-plum-400/40 bg-mlh-plum/70 text-mlh-plum-100 hover:bg-mlh-plum/95"}`,children:r})]})}function eC({label:t,onClick:r}){return(0,ey.jsx)("button",{type:"button",onClick:r,className:"border-mlh-plum-400/45 bg-mlh-plum/70 text-mlh-plum-100 hover:border-mlh-plum-400/70 hover:bg-mlh-plum/95 cursor-pointer rounded-full border px-3.5 py-[7px] font-mono text-[10.5px] font-medium tracking-[0.14em] whitespace-nowrap uppercase transition-colors duration-200",children:t})}let eT=/[^\p{L}\p{M}\p{N}\s.,?'â]/gu,eA=/\p{Extended_Pictographic}|[\u{1F3FB}-\u{1F3FF}]|\uFE0F|\u200D/gu,eI=/[\p{L}\p{N}]/u;function eM(t){return eI.test(t)}function eP({note:t,count:r,exempt:a,chip:n}){if(!t&&!(!a&&r>0))return null;let i=!!t||r>=230;return(0,ey.jsx)("span",{role:t?"alert":void 0,"aria-live":"polite",className:`min-w-[104px] rounded-full border px-3.5 py-[7px] text-center font-mono text-[10.5px] font-medium tracking-[0.14em] whitespace-nowrap uppercase tabular-nums transition-colors duration-200 ${i?"border-mlh-amber/60 bg-mlh-amber/18 text-mlh-amber":n}`,children:t??`${r} / 250`})}var eO=t.i(49793);let eD=(0,eO.default)("log-in",[["path",{d:"m10 17 5-5-5-5",key:"1bsop3"}],["path",{d:"M15 12H3",key:"6jk70r"}],["path",{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4",key:"u53s6r"}]]);function eR({onSignIn:t}){return(0,ey.jsxs)("button",{type:"button",onClick:()=>{(0,eb.track)("SIGNIN_GATE_SHOWN_WEB_EVENT",{trigger:"free_use_pill"}),t()},className:"border-mlh-orrery/45 bg-mlh-orrery/12 text-mlh-orrery-hi hover:border-mlh-orrery/70 hover:bg-mlh-orrery/22 flex cursor-pointer items-center gap-1.5 rounded-full border px-3.5 py-[7px] font-mono text-[10.5px] font-medium tracking-[0.14em] whitespace-nowrap uppercase transition-colors duration-200",children:[(0,ey.jsx)(eD,{size:11}),"Sign in to continue"]})}var e$=t.i(90882),ez=t.i(75419);let eL=[{id:"chart",label:"Vaani",icon:e$.SparkleIcon,hint:null,fill:"linear-gradient(150deg,#811756 0%,#671245 55%,#4d0e34 100%)",edge:"rgba(205,162,187,.45)",halo:"rgba(129,23,86,.42)",seat:"#811756",ink:"#f2e8ee"},{id:"astropedia",label:"Astropedia",icon:ez.BookOpen,hint:"FREE",fill:"linear-gradient(150deg,#573203 0%,color-mix(in srgb,#573203 55%,#0c070a) 55%,#0c070a 100%)",edge:"rgba(254,179,113,.42)",halo:"rgba(223,129,7,.26)",seat:"#feb371",ink:"#0f090c"}],eW={sm:{track:"p-[3px] rounded-[9px]",thumb:"inset-y-[3px] left-[3px] w-[calc(50%-3px)]",seg:"h-[26px] px-3 text-[12.5px]",gap:"gap-1.5",icon:13,outer:"6px",seam:"3px"},lg:{track:"p-1 rounded-full",thumb:"inset-y-1 left-1 w-[calc(50%-0.25rem)]",seg:"h-8 px-4 text-[14px] sm:h-[34px] sm:px-5 sm:text-[15px]",gap:"gap-2",icon:14,outer:"999px",seam:"4px"}};function eU({mode:t,onChange:r,size:a="lg",variant:n="metal",disabled:i=!1,id:o,className:s=""}){let l=(0,ek.useRef)(null),d=eL.findIndex(r=>
1r.id===t),c=-1===d?0:d,u=eW[a],h={transform:`translateX(${100*c}%)`,borderRadius:0===c?`${u.outer} ${u.seam} ${u.seam} ${u.outer}`:`${u.seam} ${u.outer} ${u.outer} ${u.seam}`},p=t=>{let a={ArrowLeft:c-1,ArrowUp:c-1,ArrowRight:c+1,ArrowDown:c+1,Home:0,End:eL.length-1};t.key in a&&(t.preventDefault(),(t=>{if(i)return;let a=eL[(t+eL.length)%eL.length];(0,eb.track)("ASK_MODE_CHANGED_WEB_EVENT",{to:"chart"===a.id?"chart":"pedia",via:"keyboard"}),r(a.id),requestAnimationFrame(()=>l.current?.querySelector(`[data-mode="${a.id}"]`)?.focus())})(a[t.key]))},m="transition-[transform,border-radius,background-color] duration-[380ms] ease-[cubic-bezier(.32,.72,0,1)] motion-reduce:transition-none";return"plain"===n?(0,ey.jsxs)("div",{id:o,ref:l,role:"radiogroup","aria-label":"Answer source",onKeyDown:p,"aria-disabled":i||void 0,style:{borderColor:eL[c]?.edge},className:`bg-mlh-bg/50 relative grid grid-cols-2 overflow-hidden rounded-full border transition-[border-color] duration-300 ${i?"opacity-55":""} ${s}`,children:[(0,ey.jsx)("span",{"aria-hidden":!0,className:`pointer-events-none absolute inset-y-0 left-0 w-1/2 ${m}`,style:{transform:`translateX(${100*c}%)`,backgroundColor:eL[c]?.seat}}),eL.map((t,a)=>{let n=a===c,o=t.icon;return(0,ey.jsxs)("button",{type:"button",role:"radio","data-mode":t.id,"aria-checked":n,tabIndex:n?0:-1,disabled:i,onClick:()=>{(0,eb.track)("ASK_MODE_CHANGED_WEB_EVENT",{to:"chart"===t.id?"chart":"pedia",via:"click"}),r(t.id)},style:n?{color:t.ink}:void 0,className:`relative flex items-center justify-center gap-1.5 px-3.5 py-[9px] font-sans text-[14px] whitespace-nowrap transition-colors duration-200 outline-none select-none disabled:cursor-not-allowed sm:gap-2 sm:px-[18px] sm:text-[15px] ${i?"":"cursor-pointer"} ${n?"":"text-mlh-text/60 hover:text-mlh-text/85"}`,children:[(0,ey.jsx)(o,{size:14,className:`shrink-0 transition-opacity duration-300 ${n?"opacity-100":"opacity-55"}`}),t.label]},t.id)})]}):(0,ey.jsxs)("div",{id:o,ref:l,className:`group relative ${s}`,children:[(0,ey.jsx)("span",{"aria-hidden":!0,className:`pointer-events-none absolute -inset-1 opacity-0 blur-md transition-opacity duration-200 group-has-[:focus-visible]:opacity-100 ${u.track}`,style:{backgroundColor:eL[c].halo}}),(0,ey.jsx)("span",{"aria-hidden":!0,className:`pointer-events-none absolute blur-md ${u.thumb} ${m}`,style:{...h,backgroundColor:eL[c].halo}}),(0,ey.jsxs)("div",{role:"radiogroup","aria-label":"Answer source",onKeyDown:p,"aria-disabled":i||void 0,className:`bg-mlh-surface/70 relative grid grid-cols-2 shadow-[0_10px_30px_-14px_rgba(0,0,0,.9)] backdrop-blur-md ${i?"opacity-55":""} ${u.track}`,children:[(0,ey.jsxs)("span",{"aria-hidden":!0,className:`pointer-events-none absolute overflow-hidden ${u.thumb} ${m}`,style:h,children:[eL.map((t,r)=>(0,ey.jsx)("span",{className:`absolute inset-0 transition-opacity duration-300 ${r===c?"opacity-100":"opacity-0"}`,style:{backgroundImage:t.fill,boxShadow:`inset 0 1px 0 ${t.edge}, inset 0 -1px 0 rgba(0,0,0,.35)`}},t.id)),(0,ey.jsx)("span",{className:"mlh-seg-sheen absolute inset-y-0 -left-1/3 w-1/3"},t)]}),eL.map((t,n)=>{let o=n===c,s=t.icon;return(0,ey.jsx)("button",{type:"button",role:"radio","data-mode":t.id,"aria-checked":o,tabIndex:o?0:-1,disabled:i,onClick:()=>{(0,eb.track)("ASK_MODE_CHANGED_WEB_EVENT",{to:"chart"===t.id?"chart":"pedia",via:"click"}),r(t.id)},className:`group/seat relative flex items-center justify-center font-medium whitespace-nowrap transition-colors duration-200 outline-none select-none disabled:cursor-not-allowed ${i?"":"cursor-pointer"} ${u.seg} ${o?"text-white":"text-mlh-muted hover:text-mlh-text"}`,children:(0,ey.jsxs)("span",{className:`flex items-center transition-transform duration-150 group-active/seat:scale-[.96] ${u.gap}`,children:[(0,ey.jsx)(s,{size:u.icon,className:`shrink-0 transition-all duration-300 ${o?"scale-100 opacity-100":"scale-90 opacity-55 group-hover/seat:opacity-80"}`}),(0,ey.jsx)("span",{children:t.label}),t.hint&&"lg"===a&&(0,ey.jsx)("span",{className:`hidden rounded-[3px] px-1 font-mono text-[8px] leading-[1.5] tracking-[0.12em] transition-colors duration-300 sm:inline ${o?"bg-black/25 text-white/95":"text-mlh-orrery/70 bg-mlh-orrery/10"}`,children:t.hint})]})},t.id)})]})]})}let eB="223, 129, 7",eF="254, 179, 113";function eY(t,r){return{position:"absolute",left:"50%",top:"50%",width:t,height:t,margin:-t/2,...r}}function eV(t){let r=`radial-gradient(circle, transparent calc(50% - ${t}px), #000 calc(50% - ${t}px))`;return{mask:r,WebkitMask:r}}function eq(t,r,a){return`repeating-conic-gradient(from 0deg, rgba(${eB}, ${t}) 0 ${r}deg, transparent ${r}deg ${a}deg)`}let eH=t=>`mlh-orrery-spin ${t}s linear infinite`,eZ=t=>`mlh-orrery-spin-rev ${t}s linear infinite`,eK=[{glyph:"â",house:"I"},{glyph:"â",house:"II"},{glyph:"â",house:"III"},{glyph:"â",house:"IV"},{glyph:"â",house:"V"},{glyph:"â",house:"VI"},{glyph:"â",house:"VII"},{glyph:"â",house:"VIII"},{glyph:"â",house:"IX"},{glyph:"â",house:"X"},{glyph:"â",house:"XI"},{glyph:"â",house:"XII"}],eG=new Set([0,3,7]),eJ=[0,30,60,90,120,150],eX=[15,75,135,195,255,315],eQ=[0,22.5,45,67.5,90,112.5,135,157.5
1],e0={brass:"hue-rotate(0deg) saturate(1)",plum:"hue-rotate(300deg) saturate(0.72)"};function e1({tone:t="brass"}){return(0,ey.jsxs)("div",{"aria-hidden":!0,style:{filter:e0[t]},className:"mlh-orrery pointer-events-none absolute top-1/2 left-1/2 mt-4 h-[780px] w-[780px] -translate-x-1/2 -translate-y-1/2 scale-[0.55] select-none sm:mt-8 sm:scale-[0.82] lg:scale-[1.05]",children:[(0,ey.jsx)("div",{style:eY(780,{borderRadius:"50%",background:`radial-gradient(circle, rgba(${eB}, .16), rgba(${eB}, .04) 45%, transparent 66%)`,animation:"mlh-orrery-glow 11s ease-in-out infinite"})}),(0,ey.jsx)("div",{style:eY(780,{borderRadius:"50%",border:`1px solid rgba(${eB}, .4)`})}),(0,ey.jsx)("div",{style:eY(766,{borderRadius:"50%",background:eq(.7,.22,3),...eV(8),animation:eH(700)})}),(0,ey.jsx)("div",{style:eY(704,{borderRadius:"50%",border:`1px solid rgba(${eB}, .28)`})}),(0,ey.jsx)("div",{style:eY(700,{borderRadius:"50%",background:eq(.5,.12,1),...eV(5)})}),(0,ey.jsx)("div",{style:eY(636,{borderRadius:"50%",border:`1px solid rgba(${eB}, .34)`})}),(0,ey.jsx)("div",{style:eY(566,{borderRadius:"50%",border:`1px dashed rgba(${eB}, .26)`,animation:eZ(220)})}),(0,ey.jsx)("div",{style:eY(552,{borderRadius:"50%",backgroundImage:"radial-gradient(1.5px 1.5px at 30% 12%, rgba(254,179,113,.9), transparent),radial-gradient(1px 1px at 68% 22%, rgba(255,255,255,.6), transparent),radial-gradient(1.5px 1.5px at 82% 54%, rgba(254,179,113,.95), transparent),radial-gradient(1px 1px at 50% 90%, rgba(255,255,255,.55), transparent),radial-gradient(1.5px 1.5px at 16% 66%, rgba(254,179,113,.8), transparent),radial-gradient(1px 1px at 40% 44%, rgba(255,255,255,.4), transparent)",...eV(62),animation:eZ(320)})}),(0,ey.jsx)("div",{style:eY(470,{borderRadius:"50%",border:`1px solid rgba(${eB}, .3)`})}),(0,ey.jsx)("div",{style:eY(466,{borderRadius:"50%",background:eq(.6,.18,6),...eV(7),animation:eH(420)})}),(0,ey.jsxs)("div",{style:eY(352),children:[eJ.map(t=>(0,ey.jsx)("div",{style:{position:"absolute",left:"50%",top:"50%",width:1,height:352,marginTop:-176,background:`rgba(${eB}, .24)`,transform:`rotate(${t}deg)`}},`spoke-${t}`)),eX.map(t=>(0,ey.jsx)("div",{style:{position:"absolute",left:"50%",top:"50%",width:304,height:1,marginLeft:-152,background:`rgba(${eF}, .3)`,transform:`rotate(${t}deg) translateY(-88px)`}},`chord-${t}`))]}),(0,ey.jsx)("div",{style:eY(300,{borderRadius:"50%",border:`1px solid rgba(${eB}, .34)`})}),(0,ey.jsx)("div",{style:eY(296,{borderRadius:"50%",background:eq(.5,.3,2),...eV(5),animation:eZ(500)})}),(0,ey.jsxs)("div",{style:eY(200,{animation:eH(300)}),children:[eQ.map(t=>(0,ey.jsx)("div",{style:{position:"absolute",left:"50%",top:"50%",width:2,height:196,margin:"-98px 0 0 -1px",background:`linear-gradient(180deg, rgba(${eB}, .5), transparent 42%, transparent 58%, rgba(${eB}, .5))`,transform:`rotate(${t}deg)`}},`inner-${t}`)),[0,30,60].map(t=>(0,ey.jsx)("div",{style:eY(104,{border:`1px solid rgba(${eB}, .35)`,transform:`rotate(${t}deg)`})},`square-${t}`))]}),eK.map((t,r)=>{let a=30*r,n=`translateX(-50%) rotate(${-a}deg)`;return(0,ey.jsxs)("div",{style:eY(780,{transform:`rotate(${a}deg)`}),children:[(0,ey.jsx)("span",{className:"font-symbols",style:{position:"absolute",top:52,left:"50%",transform:n,fontSize:26,fontVariantEmoji:"text",color:eG.has(r)?"#feb371":`rgba(${eF}, .9)`},children:t.glyph}),(0,ey.jsx)("span",{className:"font-mono",style:{position:"absolute",top:96,left:"50%",transform:n,fontSize:10,color:`rgba(${eB}, .7)`},children:t.house})]},t.house)})]})}let e2={chart:{accent:"var(--mlh-plum)",rim:"border-mlh-plum-400/40 focus-within:border-mlh-plum-400/80",glow:"shadow-[0_22px_60px_rgba(0,0,0,.55),0_0_48px_rgba(129,23,86,.44),inset_0_1px_0_rgba(255,255,255,.08)] focus-within:shadow-[0_22px_60px_rgba(0,0,0,.55),0_0_60px_rgba(129,23,86,.58),inset_0_1px_0_rgba(255,255,255,.1)]",glowThread:"shadow-[0_22px_60px_rgba(0,0,0,.65),0_0_34px_rgba(129,23,86,.32),inset_0_1px_0_rgba(255,255,255,.05)] focus-within:shadow-[0_22px_60px_rgba(0,0,0,.65),0_0_44px_rgba(129,23,86,.5),inset_0_1px_0_rgba(255,255,255,.06)]",spark:"text-mlh-plum-300/85",caret:"caret-mlh-plum-300",chip:"border-mlh-plum-400/45 bg-mlh-plum-500/14 text-mlh-plum-100/85",send:"text-mlh-plum-100 bg-[linear-gradient(160deg,#9a4578,#811756_62%,#6b0f47)] shadow-[0_0_24px_rgba(129,23,86,.6)] hover:shadow-[0_0_40px_rgba(129,23,86,1)]"},pedia:{accent:"var(--mlh-orrery)",rim:"border-mlh-orrery/45 focus-within:border-mlh-orrery/85",glow:"shadow-[0_22px_60px_rgba(0,0,0,.55),0_0_48px_rgba(223,129,7,.34),inset_0_1px_0_rgba(255,255,255,.08)] focus-within:shadow-[0_22px_60px_rgba(0,0,0,.55),0_0_60px_rgba(223,129,7,.46),inset_0_1px_0_rgba(255,255,255,.1)]",glowThread:"shadow-[0_22px_60px_rgba(0,0,0,.65),0_0_34px_rgba(223,129,7,.24),inset_0_1px_0_rgba(255,255,255,.05)] focus-within:shadow-[0_22px_60px_rgba(0,0,0,.65),0_0_44px_rgba(223,129,7,.4),inset_0_1px_0_rgba(255,255,255,.06)]",spark:"text-mlh-orrery-hi/90",caret:"caret-mlh-orrery-hi",chip:"border-mlh-orrery/45 bg-mlh-orrery/12 text-mlh-orrery-hi",send:"text-[#0f090c] bg-[linear-gradient(160deg,#feb371,#df8107)] shadow-[0_0_24px_rgba(223,129,7,.45)] hover:shadow-[0_0_40px_rgba(223,129,7,.85)]"}};var e5=t.i(79303);let e4=t=>({"--mlh-in-delay":`${t}ms`});function e3({input:t,setInput:r,mode:a,exempt:n,box:i}){let[o,s]=(0,ek.useState)(null),[l,d]=(0,ek.useState)(!1),c=(0,ek.useRef)(null),u=(0,ek.useCallback)(t=>{c.current&&clearTimeout(c.current),s(t),t&&(c.current=setTimeout(()=>s(null),2400))},[]);(0,ek.useEffect)(()=>()=>{c.current&&clearTimeout(c.current)},[]);let h=(0,ek.useRef)(null),p=(0,ek.useCallback)(t=>{var i;let o=function(t,{cap:r}){let a=t.replace(/\r\n?/g,"\n"),n=a.replace(eA,""),i=n.length!==a.length;if(!r)return{value:n,blocked:i?"emoji":null};let o=n.replace(eT,""),s=o.replace(/^\s+/,"").replace(/[^\S\n]+/g," ").replace(/ *\n */g,"\n").replace(/\n{2,}/g,"\n"),l=s.slice(0,250),d=i?"emoji":o.length!==n.length?"chars":l.length!==s.length?"length":null;return{value:l,blocked:d}}(t,{cap:!n});r(o.value),u(o.blocked?"emoji"===(i=o.blocked)?"No emoji":"chars"===i?"No symbols":null:null),o.blocked!==h.current&&(o.blocked&&(0,eb.track)("COMPOSER_INPUT_REPAIRED_WEB_EVENT",{mode:a,block:o.blocked}),h.current=o.blocked)},[n,a,r,u]),m=(0,ek.useCallback)(()=>{d(!1),requestAnimationFrame(()=>d(!0))},[]),f=(0,ek.useCallback)(t=>{"mlh-refuse"===t.animationName&&d(!1)},[]);return{onChange:p,guard:(0,ek.useCallback)(()=>
1{if(eM(t.trim()))return!0;let r=t.trim()?"no_substance":"empty";return(0,eb.track)("QUESTION_BLOCKED_WEB_EVENT",{mode:a,reason:r}),u("empty"===r?"Type first":"Use words"),m(),i.current?.focus(),!1},[t,a,u,m,i]),note:o,flinch:l?"mlh-refuse":"",settle:f,count:t.length,sendable:eM(t.trim())}}let e6=(0,eO.default)("arrow-up",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]);var e8=t.i(69670);let e9={chart:"var(--mlh-plum-400)",pedia:"var(--mlh-orrery-hi)"};function e7(t,r){let a=[...t],n=[];for(;n.length<r&&a.length>0;)n.push(...a.splice(Math.floor(Math.random()*a.length),1));return n}function te({mode:t,setMode:r,input:a,setInput:n,send:i,balance:o,onGetMore:s,loggedIn:l,freeUsed:d,pediaLocked:c=!1,onSignIn:u,balanceKnown:h,prefill:p=0,queued:m=null,exempt:f=!1}){let x="astropedia"===t,g=x?"pedia":"chart",y=!x&&null!==m,[b,v]=(0,ek.useState)(()=>({chart:e5.CHART_STARTER_POOL.slice(0,4),pedia:e5.PEDIA_STARTER_POOL.slice(0,4)}));(0,ek.useEffect)(()=>{v({chart:e7(e5.CHART_STARTER_POOL,4),pedia:e7(e5.PEDIA_STARTER_POOL,4)})},[]);let w=b[g].map(t=>({kind:g,q:t})),k=e9[g],j=e2[g],[N,_]=(0,ek.useState)({kind:g,cards:w}),[E,S]=(0,ek.useState)(!1),[C,T]=(0,ek.useState)(0),A=w.map(t=>t.q).join("\0"),I=N.cards.map(t=>t.q).join("\0");(0,ek.useEffect)(()=>{if(N.kind!==g){_({kind:g,cards:w}),S(!1);return}if(A===I)return;S(!0);let t=setTimeout(()=>{_({kind:g,cards:w}),T(t=>t+1),S(!1)},170);return()=>clearTimeout(t)},[A,I,g,N.kind]);let M=(0,ek.useRef)(null),P=(0,ek.useRef)([]),[O,D]=(0,ek.useState)([]),R=(0,ek.useCallback)(()=>{D(P.current.map(t=>t?{x:t.offsetLeft,y:t.offsetTop,w:t.offsetWidth,h:t.offsetHeight}:null))},[]);(0,ek.useEffect)(()=>{let t=M.current;if(!t)return;let r=new ResizeObserver(R);return r.observe(t),()=>r.disconnect()},[R]),(0,ek.useEffect)(()=>{C>0&&R()},[C,R]);let[$,z]=(0,ek.useState)(null),[L,W]=(0,ek.useState)(!1),U=null===$?null:O[$]??null,B=(0,ek.useCallback)(t=>{z(t),W(!0)},[]),F=(0,ek.useCallback)(()=>W(!1),[]),Y=(0,ek.useRef)(null),V=(0,ek.useCallback)(()=>{let t=Y.current;t&&(t.style.height="auto",t.style.height=`${Math.min(Math.max(t.scrollHeight,60),150)}px`)},[]);(0,ek.useEffect)(V,[a,V]);let q=e3({input:a,setInput:n,mode:g,exempt:f,box:Y}),H=()=>{q.guard()&&i(a,g)};return(0,ek.useEffect)(()=>{if(!p)return;let t=Y.current;t&&(t.focus(),t.setSelectionRange(t.value.length,t.value.length),t.scrollTop=t.scrollHeight)},[p]),(0,ey.jsxs)("div",{className:"relative flex min-h-full flex-col overflow-hidden",children:[(0,ey.jsxs)("div",{className:"relative flex flex-1 items-center justify-center px-5 py-12 sm:px-8 sm:py-10",children:[(0,ey.jsx)(e1,{tone:x?"brass":"plum"}),(0,ey.jsxs)("div",{className:"relative z-10 flex w-full max-w-[760px] flex-col items-center text-center",children:[(0,ey.jsx)("div",{"aria-hidden":!0,className:"mlh-in pointer-events-none absolute -top-16 left-1/2 -z-10 h-[230px] w-[min(820px,130%)] -translate-x-1/2 [--mlh-in-delay:100ms] [--mlh-in-y:0px]",style:{background:"radial-gradient(closest-side, rgba(15,9,12,.86), rgba(15,9,12,.55) 70%, transparent)"}}),(0,ey.jsx)("h1",{className:"text-mlh-text mlh-in font-serif text-[25px] leading-[1.1] font-normal tracking-[-0.015em] [--mlh-in-delay:240ms] [--mlh-in-scale:0.985] [--mlh-in-y:12px] sm:text-[31px] lg:text-[36px]",style:{textShadow:"0 0 46px rgba(223,129,7,.28)"},children:"What do you want to know?"}),(0,ey.jsxs)("div",{id:"cm-ask",style:{"--mlh-plate-accent":j.accent},onAnimationEnd:q.settle,className:`mlh-composer-glass mlh-in relative mt-6 w-full overflow-hidden rounded-[22px] border text-left backdrop-blur-[7px] transition-[border-color,box-shadow] duration-300 [--mlh-in-delay:300ms] [--mlh-in-scale:0.98] [--mlh-in-y:10px] sm:mt-7 ${j.rim} ${j.glow} ${q.flinch}`,children:[(0,ey.jsx)("span",{"aria-hidden":!0,className:"mlh-ticks-brass pointer-events-none absolute -top-[90px] -right-[90px] h-[240px] w-[240px] rounded-full opacity-40"}),(0,ey.jsx)("div",{className:"relative px-4 pt-5 sm:px-5 sm:pt-6",children:(0,ey.jsx)("textarea",{ref:Y,rows:3,value:a,onChange:t=>q.onChange(t.target.value),onKeyDown:t=>{"Enter"!==t.key||t.shiftKey||(t.preventDefault(),H())},"aria-label":"Ask a question",placeholder:x?"Search any Vedic astrology topicâ¦":"Ask about your career, marriage, or the timing of a decisionâ¦",className:`text-mlh-text placeholder:text-mlh-text/55 min-h-[64px] w-full resize-none bg-transparent font-sans text-[18px] leading-[1.5] outline-none sm:min-h-[84px] sm:text-[22px] ${j.caret}`})}),(0,ey.jsxs)("div",{className:"relative flex flex-col gap-2.5 px-3 pt-2.5 pb-3 sm:flex-row sm:flex-wrap sm:items-center sm:gap-3.5 sm:px-3.5 sm:pt-3 sm:pb-3.5 sm:pl-5",children:[(0,ey.jsx)(eU,{id:"cm-toggle",mode:t,onChange:r,variant:"plain"}),(0,ey.jsxs)("div",{className:"flex flex-wrap items-center gap-2.5 sm:contents",children:[(0,ey.jsx)(eP,{note:q.note,count:q.count,exempt:f,chip:j.chip}),(0,ey.jsxs)("div",{className:"flex w-full flex-wrap items-center gap-2.5 sm:ml-auto sm:w-auto
1sm:flex-nowrap sm:gap-3",children:[x?c&&u?(0,ey.jsx)(eR,{onSignIn:u}):null:(0,ey.jsx)(ej,{balance:o,onGetMore:s,loggedIn:l,freeUsed:d,balanceKnown:h,tone:"brass"}),(0,ey.jsx)("button",{onClick:H,"aria-label":y?"Sending once your chart is bound":"Send question","aria-busy":y,className:`ml-auto grid h-11 w-11 flex-none place-items-center rounded-full transition-[box-shadow,transform,background-color] duration-200 hover:-translate-y-0.5 sm:ml-0 sm:h-[46px] sm:w-[46px] ${j.send} ${y?"cursor-wait":"cursor-pointer"}`,children:y?(0,ey.jsx)(e8.Loader2,{size:19,className:"animate-spin"}):(0,ey.jsx)(e6,{size:19})})]})]})]})]}),(0,ey.jsx)("div",{ref:M,style:{"--mlh-card-accent":k,transitionDuration:"170ms"},className:`mt-5 grid w-full grid-cols-1 gap-2.5 transition-opacity ease-out sm:mt-6 sm:grid-cols-2 ${E?"opacity-0":"opacity-100"}`,onMouseLeave:F,children:N.cards.map((t,r)=>{let a=m===t.q,n=y&&!a,o=O[r],s=U??o;return(0,ey.jsxs)("button",{ref:t=>{P.current[r]=t},onClick:()=>{(0,eb.track)("STARTER_PROMPT_CLICKED_WEB_EVENT",{mode:t.kind}),i(t.q,t.kind,void 0,"starter")},onMouseEnter:()=>B(r),onFocus:()=>B(r),onBlur:F,disabled:n,"aria-busy":a,style:{...e4(0===C?350+55*r:70*r),borderColor:"color-mix(in srgb, var(--mlh-card-accent) 25%, transparent)"},className:`mlh-card-glass mlh-in relative flex flex-col overflow-hidden rounded-[14px] border pb-3.5 text-left backdrop-blur-[3px] transition-opacity duration-200 outline-none ${a?"cursor-wait":n?"cursor-default opacity-45":"cursor-pointer"}`,children:[o&&s&&(0,ey.jsx)("span",{"aria-hidden":!0,className:"mlh-card-glass-hi pointer-events-none absolute top-0 left-0 rounded-[14px] border transition-[transform,width,height,opacity] duration-300 ease-out",style:{transform:`translate3d(${s.x-o.x}px, ${s.y-o.y}px, 0)`,width:s.w,height:s.h,opacity:L&&U?1:0,borderColor:"color-mix(in srgb, var(--mlh-card-accent) 60%, transparent)"}}),(0,ey.jsx)("span",{"aria-hidden":!0,className:"block h-1 shrink-0",style:{background:"linear-gradient(90deg, var(--mlh-card-accent), transparent)"}}),(0,ey.jsx)("span",{className:"text-mlh-text my-auto block px-4 pt-3 font-serif text-[16px] leading-snug sm:text-[17px]",children:t.q})]},`${C}-${r}`)})})]})]}),(0,ey.jsx)("div",{"aria-hidden":!0,className:"h-[36px] shrink-0"})]})}var tt=t.i(1234);function tr({steps:t,astro:r,stepsLabel:a="What I read from your chart"}){let[n,i]=(0,ek.useState)(null),o=t=>i(r=>{let a=r===t?null:t;return(0,eb.track)("ANSWER_DISCLOSURE_TOGGLED_WEB_EVENT",{which:t,open:a===t}),a});return 0!==t.length||r?(0,ey.jsxs)("div",{className:"mt-4",children:[(0,ey.jsxs)("div",{className:"flex flex-wrap gap-2.5",children:[t.length>0&&(0,ey.jsx)(ta,{on:"steps"===n,glyph:"â",label:"What I analysed",onClick:()=>o("steps")}),r&&(0,ey.jsx)(ta,{on:"astro"===n,glyph:"â¦",label:"The astrology behind this",onClick:()=>o("astro")})]}),(0,ey.jsx)("div",{className:"mlh-disclose","data-open":"steps"===n,children:(0,ey.jsx)("div",{children:(0,ey.jsxs)("div",{className:"border-mlh-plum-400/22 bg-mlh-plum-500/6 rounded-2xl border px-5 py-5 sm:px-[22px]",children:[(0,ey.jsx)("div",{className:"text-mlh-plum-300/85 font-mono text-[9.5px] tracking-[0.22em] uppercase",children:a}),(0,ey.jsx)("ul",{className:"mt-3.5 flex flex-col gap-2.5",children:t.map((t,r)=>(0,ey.jsxs)("li",{className:"text-mlh-text/85 flex items-baseline gap-[11px] font-sans text-[16px] leading-snug sm:text-[18px]",children:[(0,ey.jsx)("span",{"aria-hidden":!0,className:"text-mlh-success shrink-0",children:"â"}),t]},r))})]})})}),(0,ey.jsx)("div",{className:"mlh-disclose","data-open":"astro"===n,children:(0,ey.jsx)("div",{children:(0,ey.jsx)("div",{className:"border-mlh-plum-400/22 bg-mlh-plum-500/6 overflow-hidden rounded-2xl border",children:r})})})]}):null}function ta({on:t,glyph:r,label:a,onClick:n}){return(0,ey.jsxs)("button",{type:"button",onClick:n,"aria-expanded":t,className:`flex cursor-pointer items-center gap-2.5 rounded-full border px-4 py-2 font-sans text-[15px] transition-[color,background-color,border-color] duration-200 sm:text-[16px] ${t?"border-mlh-plum-400/70 bg-mlh-plum-500/18 text-mlh-plum-100":"border-mlh-plum-400/28 bg-mlh-plum-500/8 text-mlh-text/75 hover:border-mlh-plum-400/52 hover:text-mlh-text"}
1`,children:[(0,ey.jsx)("span",{"aria-hidden":!0,className:"font-symbols text-[12px] leading-none",children:r}),a,(0,ey.jsx)(tt.ChevronDown,{size:13,"aria-hidden":!0,className:`transition-transform duration-[220ms] ${t?"rotate-180":""}`})]})}function tn({rows:t}){return(0,ey.jsx)("div",{children:t.map((r,a)=>(0,ey.jsxs)("div",{className:`flex items-baseline justify-between gap-4 px-5 py-3.5 ${a<t.length-1?"border-mlh-plum-400/14 border-b":""}`,children:[(0,ey.jsx)("span",{className:"text-mlh-text/45 font-mono text-[9.5px] tracking-[0.18em] uppercase",children:r.label}),(0,ey.jsx)("span",{className:"text-mlh-text/92 text-right font-sans text-[16px] sm:text-[18px]",children:r.value})]},a))})}var ti=t.i(76248);function to({product:t,onBuy:r}){return(0,ey.jsxs)("div",{className:"border-mlh-plum mlh-card-plum rounded-2xl border p-4",children:[(0,ey.jsxs)("div",{className:"text-mlh-plum-300 mb-1 flex items-center gap-1.5 text-[11px] font-bold tracking-wider uppercase",children:[(0,ey.jsx)(ti.FileText,{size:12})," Go deeper with a report"]}),(0,ey.jsx)("div",{className:"text-[15px] font-bold text-white",children:t.title}),(0,ey.jsx)("p",{className:"text-mlh-muted mt-1 mb-3 text-[13px] leading-snug",children:t.blurb}),(0,ey.jsx)("div",{className:"flex justify-end",children:(0,ey.jsx)("button",{onClick:()=>{(0,eb.track)("CROSS_SELL_CLICKED_WEB_EVENT",{kind:"reports",placement:"thread"}),r(t)},className:"bg-mlh-plum rounded-xl px-4 py-2 text-[13px] font-bold text-white transition hover:brightness-110",children:"Get this report"})})]})}let ts=(0,eO.default)("lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]),tl={plum:{rule:"border-mlh-plum-400/18",lead:"text-mlh-plum-300/85",chip:"border-mlh-text/15 bg-mlh-plum-500/[.05] text-mlh-text/75 hover:border-mlh-plum-400/60 hover:bg-mlh-plum-500/14 hover:text-mlh-plum-100",arrow:"text-mlh-plum-300/70"},brass:{rule:"border-mlh-orrery/15",lead:"text-mlh-orrery-hi/85",chip:"border-mlh-text/15 bg-mlh-orrery/[.03] text-mlh-text/75 hover:border-mlh-orrery/60 hover:bg-mlh-orrery/10 hover:text-mlh-orrery-hi",arrow:"text-mlh-orrery/70"}};function td({items:t,onFollowup:r,lead:a,tone:n="plum",nudgeChart:i=!1,chartLocked:o=!1}){if(0===t.length)return null;let s=tl[n];return(0,ey.jsxs)("div",{className:`mt-[22px] border-t pt-[18px] ${s.rule}`,children:[a&&(0,ey.jsx)("div",{className:`font-mono text-[9.5px] tracking-[0.22em] uppercase ${s.lead}`,children:a}),(0,ey.jsx)("div",{className:"mt-3.5 grid gap-2.5 sm:grid-cols-2",children:t.map((t,a)=>{let n="chart"===t.kind,l=i&&n,d=o&&n;return(0,ey.jsxs)("button",{onClick:()=>r(t.q,t.kind),"aria-label":d?`${t.q}: unlock more questions`:void 0,className:`group flex cursor-pointer items-center gap-2.5 rounded-full border px-4 py-2.5 text-left font-sans text-[15px] transition-[color,background-color,border-color,transform,box-shadow] duration-200 ease-[cubic-bezier(.22,1,.36,1)] hover:-translate-y-0.5 hover:shadow-[0_8px_20px_rgba(0,0,0,.35)] sm:text-[16px] ${d?"border-mlh-plum-400/22 bg-mlh-plum-500/[.06] text-mlh-text/45 hover:border-mlh-plum-400/45 hover:bg-mlh-plum-500/12 hover:text-mlh-text/70":l?"border-mlh-plum-400/50 bg-mlh-plum-500/14 text-mlh-plum-100 hover:border-mlh-plum-400/80 hover:bg-mlh-plum-500/22":s.chip}`,children:[d?(0,ey.jsx)(ts,{size:12,className:"shrink-0"}):l&&(0,ey.jsx)(e$.SparkleIcon,{size:13,className:"shrink-0"}),t.q,(0,ey.jsx)("span",{"aria-hidden":!0,className:`ml-auto pl-1 font-mono text-[11px] transition-transform duration-200 group-hover:translate-x-0.5 ${d?"text-mlh-plum-300/40":l?"text-mlh-plum-300/75":s.arrow}`,children:"â"})]},a)})})]})}let tc=[{n:1,poly:"100,0 150,50 100,100 50,50",cx:100,cy:42},{n:2,poly:"0,0 100,0 50,50",cx:50,cy:20},{n:3,poly:"0,0 50,50 0,100",cx:22,cy:52},{n:4,poly:"0,100 50,50 100,100 50,150",cx:50,cy:100},{n:5,poly:"0,100 50,150 0,200",cx:22,cy:150},{n:6,poly:"0,200 50,150 100,200",cx:50,cy:182},{n:7,poly:"100,200 50,150 100,100 150,150",cx:100,cy:158},{n:8,poly:"100,200 150,150 200,200",cx:150,cy:182},{n:9,poly:"200,200 150,150 200,100",cx:178,cy:150},{n:10,poly:"200,100 150,150 100,100 150,50",cx:150,cy:100},{n:11,poly:"200,100 150,50 200,0",cx:178,cy:52},{n:12,poly:"200,0 150,50 100,0",cx:150,cy:20}],tu=[{sign:"Can",planets:["Mo","As"]},{sign:"Leo",planets:["Ma"]},{sign:"Vir",planets:[]},{sign:"Lib",planets:[]},{sign:"Sco",planets:[]},{sign:"Sag",planets:["Ju","Ke"]},{sign:"Cap",planets:["Sa"]},{sign:"Aqu",planets:[]},{sign:"Pis",planets:["Me"]},{sign:"Ari",planets:["Su"]},{sign:"Tau",planets:["Ve"]},{sign:"Gem",planets:["Ra"]}],th=tc.map((t,r)=>({...t,...tu[r]}));function tp({highlight:t=[],caption:r}){return(0,ey.jsxs)("div",{className:"border-mlh-orrery/22 bg-mlh-orrery/[.06] animate-mlh-rise mb-[18px] flex flex-col items-center rounded-[18px] border p-5 sm:p-[22px]",children:[(0,ey.jsxs)("svg",{viewBox:"0 0 200 200",className:"border-mlh-orrery/40 block w-full max-w-[320px] border",role:"img","aria-label":"North Indian birth chart",children:[(0,ey.jsx)("line",{x1:"0",y1:"0",x2:"200",y2:"200",stroke:"var(--mlh-orrery)",strokeOpacity:"0.3",strokeWidth:"1"}),(0,ey.jsx)("line",{x1:"200",y1:"0",x2:"0",y2:"200",stroke:"var(--mlh-orrery)",strokeOpacity:"0.3",strokeWidth:"1"}),(0,ey.jsx)("polygon",{points:"100,0 200,100 100,200 0,100",fill:"none",stroke:"var(--mlh-orrery)",strokeOpacity:"0.3",strokeWidth:"1"}),th.map(r=>{let a=t.includes(r.n);return(0,ey.jsxs)("g",{children:[a&&(0,ey.jsx)("polygon",{points:r.poly,fill:"var(--mlh-orrery)",fillOpacity:"0.16"}),(0,ey.jsx)("text",{x:r.cx,y:r.cy-5,textAnchor:"middle",fontSize:"6.5",letterSpacing:"0.6",fill:"var(--mlh-text)",fillOpacity:"0.35",fontFamily:"var(--font-mono)",children:r.sign}),(0,ey.jsx)("text",{x:r.cx,y:r.cy+7,textAnchor:"middle",fontSize:"10",fill:a?"var(--mlh-orrery-hi)":"var(--mlh-text)",fillOpacity:a?1:.85,children:r.planets.join(" ")})]},r.n)})]}),r&&(0,ey.jsx)("div",{className:"text-mlh-text/55 mt-4 max-w-[520px] text-center font-sans text-[15px] leading-relaxed text-pretty sm:text-[16
1px]",children:r})]})}let tm="Jan(?:uary)?|Feb(?:ruary)?|Mar(?:ch)?|Apr(?:il)?|May|Jun(?:e)?|Jul(?:y)?|Aug(?:ust)?|Sep(?:t(?:ember)?)?|Oct(?:ober)?|Nov(?:ember)?|Dec(?:ember)?",tf=RegExp(`\\b(\\d{1,2}\\s(?:${tm})\\s\\d{4}|(?:${tm})\\s\\d{4}|\\d{1,2}(?:st|nd|rd|th)[-\\s]house|(?:first|second|third|fourth|fifth|sixth|seventh|eighth|ninth|tenth|eleventh|twelfth)[-\\s]house|D(?:1|2|3|4|7|9|10|12|16|20|24|27|30|40|45|60)|Mahadasha|Antardasha|Pratyantardasha|Dasha|Gochar|Navamsa|Dasamsa|Rasi|Lagna|Ascendant|Kundli|Retrograde|Combust|transiting|transits|transit|Sun|Moon|Mars|Mercury|Jupiter|Venus|Saturn|Rahu|Ketu|Mesha|Vrishabha|Mithuna|Karka|Simha|Kanya|Tula|Vrischika|Dhanu|Makara|Kumbha|Meena|Aries|Taurus|Gemini|Cancer|Leo|Virgo|Libra|Scorpio|Sagittarius|Capricorn|Aquarius|Pisces)\\b`,"g");function tx(t){return t.split(tf).map((t,r)=>r%2==1?(0,ey.jsx)("span",{className:"text-mlh-plum-300",children:t},r):t)}function tg({data:t,onFollowup:r,onReveal:a,onBuy:n,showCross:i=!1}){let[o,s]=(0,ek.useState)(0),[l,d]=(0,ek.useState)(!1);return((0,ek.useEffect)(()=>{if(o<t.computing.length){let t=setTimeout(()=>s(t=>t+1),480);return()=>clearTimeout(t)}let r=setTimeout(()=>d(!0),550);return()=>clearTimeout(r)},[o,t.computing.length]),(0,ek.useEffect)(()=>{l&&a?.()},[l]),l)?(0,ey.jsxs)("div",{className:"min-w-0 flex-1",children:[t.highlight.length>0&&(0,ey.jsx)(tp,{highlight:t.highlight,caption:t.chartCaption}),(0,ey.jsxs)("div",{className:"text-mlh-text/86 font-sans text-[17px] leading-[1.6] text-pretty sm:text-[20px]",children:[(0,ey.jsx)("p",{className:"mb-4",children:t.mirror}),t.answer.split("\n\n").map((t,r)=>(0,ey.jsx)("p",{className:"mb-4 last:mb-0",children:tx(t)},r))]}),(0,ey.jsx)(tr,{steps:t.computing,astro:(0,ey.jsx)(tn,{rows:t.astro})}),(0,ey.jsx)(td,{items:t.followups,onFollowup:r,lead:"Where this could go next"}),i&&(0,ey.jsx)("div",{className:"mt-4",children:(0,ey.jsx)(to,{product:t.crosssell,onBuy:n})})]}):(0,ey.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,ey.jsx)("p",{className:"text-mlh-text/86 mb-4 font-sans text-[17px] leading-[1.6] text-pretty sm:text-[20px]",children:t.mirror}),(0,ey.jsx)(ty,{steps:t.computing.slice(0,o)})]})}function ty({steps:t}){return(0,ey.jsxs)("div",{className:"border-mlh-plum-400/22 bg-mlh-plum-500/5 rounded-2xl border px-5 py-5 sm:px-[22px]",children:[(0,ey.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,ey.jsx)("span",{"aria-hidden":!0,className:"bg-mlh-plum-300 animate-mlh-pulse h-[5px] w-[5px] shrink-0 rounded-full"}),(0,ey.jsx)("span",{className:"text-mlh-plum-300/80 font-mono text-[9.5px] tracking-[0.22em] uppercase",children:"Reading your chart"})]}),(0,ey.jsxs)("ul",{className:"mt-3.5 flex flex-col gap-2.5",children:[t.map((t,r)=>(0,ey.jsxs)("li",{className:"text-mlh-text/85 animate-mlh-rise flex items-baseline gap-[11px] font-sans text-[16px] leading-snug sm:text-[18px]",children:[(0,ey.jsx)("span",{"aria-hidden":!0,className:"text-mlh-success shrink-0",children:"â"}),t]},r)),0===t.length&&(0,ey.jsx)("li",{className:"text-mlh-text/40 font-sans text-[16px] sm:text-[18px]",children:"Connecting to Vaaniâ¦"})]})]})}function tb({onAsk:t}){return(0,ey.jsxs)("div",{className:"border-mlh-orrery/22 mlh-card-glass mlh-corner-ticks relative flex items-center justify-between gap-4 overflow-hidden rounded-[18px] border p-4",children:[(0,ey.jsxs)("div",{className:"flex min-w-0 items-center gap-3.5",children:[(0,ey.jsx)("span",{className:"border-mlh-orrery/35 bg-mlh-orrery/15 text-mlh-orrery-hi grid size-10 shrink-0 place-items-center rounded-[13px] border",children:(0,ey.jsx)(e$.SparkleIcon,{size:17})}),(0,ey.jsxs)("div",{className:"min-w-0",children:[(0,ey.jsxs)("div",{className:"flex flex-wrap items-center gap-x-2.5 gap-y-1",children:[(0,ey.jsx)("span",{className:"text-mlh-text font-serif text-[18px] sm:text-[19px]",children:"Your next chart question is free"}),(0,ey.jsx)("span",{className:"border-mlh-success/30 bg-mlh-success/10 text-mlh-success/90 rounded-full border px-2 py-[3px] font-mono text-[9px] tracking-[0.18em] whitespace-nowrap uppercase",children:"1 on us"})]}),(0,ey.jsx)("p",{className:"text-mlh-muted mt-1 font-sans text-[14.5px] leading-snug sm:text-[15px]",children:"Astropedia is general, so ask the same question against your own chart."})]})]}),(0,ey.jsx)("button",{onClick:()=>{(0,eb.track)("FIRST_FREE_NUDGE_CLICKED_WEB_EVENT"),t()},className:"from-mlh-orrery-hi to-mlh-orrery text-mlh-bg shrink-0 cursor-pointer rounded-full bg-gradient-to-b px-5 py-2.5 font-sans text-[15px] transition-[filter,box-shadow] duration-200 hover:shadow-[0_0_26px_rgba(223,129,7,.35)] hover:brightness-110 sm:text-[16
1px]",children:"Try it free"})]})}let tv=/^#{1,4}\s+(.*)$/,tw=/^\*\*(.+)\*\*:?$/,tk=/^\s*[-*â¢]\s+(.*)$/,tj=/^\s*\d{1,2}[.)]\s+(.*)$/;function tN({text:t,caret:r}){let a=function(t){let r=[];for(let a of t.split(/\n\s*\n/)){let t=a.split("\n").filter(t=>t.trim());if(!t.length)continue;let n=[],i=[],o=!1,s=()=>{if(!n.length)return;let t=1===n.length?n[0].trim():null,a=t&&(tv.exec(t)??tw.exec(t));a?r.push({kind:"heading",text:a[1]}):r.push({kind:"para",text:n.join("\n")}),n=[]},l=()=>{i.length&&(r.push({kind:o?"numbers":"bullets",text:i.join("\n")}),i=[])};for(let r of t){let t=tk.exec(r),a=t?null:tj.exec(r);if(t||a){let r=!!a;i.length&&r!==o&&l(),o=r,s(),i.push((t??a)[1])}else l(),n.push(r)}l(),s()}return r}(r?t.replace(/[*_#]+$/,""):t);return(0,ey.jsx)("div",{className:"text-mlh-text/86 font-sans text-[17px] leading-[1.6] text-pretty sm:text-[20px]",children:a.map((t,n)=>{let i=!!r&&n===a.length-1;return"heading"===t.kind?(0,ey.jsx)(t_,{text:t.text},n):"para"===t.kind?(0,ey.jsx)(tE,{text:t.text,caret:i},n):(0,ey.jsx)(tS,{text:t.text,ordered:"numbers"===t.kind,caret:i},n)})})}let t_=(0,ek.memo)(function({text:t}){return(0,ey.jsx)("div",{className:"text-mlh-plum-300/85 mt-6 mb-3 font-mono text-[9.5px] tracking-[0.22em] uppercase first:mt-0",children:t})}),tE=(0,ek.memo)(function({text:t,caret:r}){return(0,ey.jsxs)("p",{className:"mb-4 last:mb-0",children:[tT(t),r&&(0,ey.jsx)(tA,{})]})}),tS=(0,ek.memo)(function({text:t,ordered:r,caret:a}){let n=t.split("\n");return(0,ey.jsx)("ul",{className:"mb-4 flex flex-col gap-2.5 last:mb-0",children:n.map((t,i)=>(0,ey.jsxs)("li",{className:"flex items-baseline gap-[11px]",children:[r?(0,ey.jsx)("span",{"aria-hidden":!0,className:"text-mlh-plum-300/70 shrink-0 font-mono text-[11px] tabular-nums",children:String(i+1).padStart(2,"0")}):(0,ey.jsx)("span",{"aria-hidden":!0,className:"bg-mlh-plum-400/70 mt-[9px] h-1 w-1 shrink-0 self-start rounded-full"}),(0,ey.jsxs)("span",{children:[tT(t),a&&i===n.length-1&&(0,ey.jsx)(tA,{})]})]},i))})}),tC=/(\*\*[^*]+\*\*|__[^_]+__|\*[^*\n]+\*|_[^_\n]+_|\n)/g;function tT(t){return t.split(tC).map((t,r)=>r%2==0?(0,ey.jsx)(ek.Fragment,{children:tx(t)},r):"\n"===t?(0,ey.jsx)("br",{},r):t.startsWith("**")||t.startsWith("__")?(0,ey.jsx)("strong",{className:"text-mlh-text font-medium",children:tx(t.slice(2,-2))},r):(0,ey.jsx)("em",{className:"italic",children:tx(t.slice(1,-1))},r))}function tA(){return(0,ey.jsx)("span",{"aria-hidden":!0,className:"bg-mlh-plum-300/80 animate-mlh-caret ml-[3px] inline-block h-[0.9em] w-[2px] translate-y-[1px]"})}var tI=t.i(94192);let tM=(0,eO.default)("thumbs-down",[["path",{d:"M9 18.12 10 14H4.17a2 2 0 0 1-1.92-2.56l2.33-8A2 2 0 0 1 6.5 2H20a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-2.76a2 2 0 0 0-1.79 1.11L12 22a3.13 3.13 0 0 1-3-3.88Z",key:"m61m77"}],["path",{d:"M17 14V2",key:"8ymqnk"}]]);var tP=t.i(21890);let tO=["Wrong","Mostly off","Partly useful","Close","Good, but"];function tD({rating:t,note:r,onClose:a,onSubmit:n}){let[i,o]=(0,ek.useState)(t??0),[s,l]=(0,ek.useState)(r??""),[d,c]=(0,ek.useState)(!1);return"u"<typeof document?null:(0,tP.createPortal)((0,ey.jsxs)("div",{role:"dialog","aria-modal":"true","aria-label":"Tell us what went wrong",onMouseDown:t=>t.target===t.currentTarget&&a(),className:`${tI.SCRIM} ${tI.SCRIM_PAD}`,children:[(0,ey.jsx)(tI.DialogBloom,{}),(0,ey.jsxs)("div",{style:tI.PANEL_WASH,className:`${tI.PANEL} ${tI.PANEL_FIT} w-full max-w-[540px] overflow-y-auto`,children:[(0,ey.jsxs)("div",{className:"border-mlh-plum-400/22 relative overflow-hidden border-b px-6 pt-7 pb-6 sm:px-8",children:[(0,ey.jsx)("div",{"aria-hidden":!0,className:"pointer-events-none absolute -inset-x-8 -top-24 h-56 bg-[radial-gradient(closest-side,color-mix(in_srgb,var(--mlh-plum)_38%,transparent),transparent_72%)]"}),(0,ey.jsxs)("div",{className:"relative flex items-start gap-[18px]",children:[(0,ey.jsx)("div",{className:"border-mlh-plum-400/55 text-mlh-plum-300 grid size-11 flex-none place-items-center rounded-full border bg-[radial-gradient(closest-side,color-mix(in_srgb,var(--mlh-plum)_55%,transparent),transparent)] shadow-[inset_0_0_20px_color-mix(in_srgb,var(--mlh-plum)_60%,transparent),
10_0_24px_color-mix(in_srgb,var(--mlh-plum)_30%,transparent)]",children:(0,ey.jsx)(tM,{size:17})}),(0,ey.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,ey.jsx)("h2",{className:"font-serif text-[27px] leading-[1.08] tracking-[-0.01em] text-white",children:"What missed the mark?"}),(0,ey.jsx)("p",{className:"text-mlh-muted mt-2.5 max-w-[44ch] text-[13.5px] leading-[1.55] text-pretty",children:"Your thumbs-down is already filed. This part is optional: it is what tells us which bit of the reading was wrong."})]})]})]}),(0,ey.jsxs)("div",{className:"space-y-6 px-6 py-7 sm:px-8",children:[(0,ey.jsxs)("div",{children:[(0,ey.jsx)("div",{className:"text-mlh-faint mb-3 font-mono text-[9px] tracking-[0.2em] uppercase",children:"How far off was it"}),(0,ey.jsx)("div",{className:"flex items-center gap-2",children:tO.map((t,r)=>{let a=r+1;return(0,ey.jsx)("button",{type:"button","aria-label":`${a}: ${t}`,"aria-pressed":i===a,onClick:()=>o(a),className:`grid size-11 cursor-pointer place-items-center rounded-xl border transition ${a<=i?"border-mlh-orrery/60 bg-mlh-orrery/12 text-mlh-orrery-hi":"border-mlh-plum-400/25 text-mlh-text/35 hover:border-mlh-plum-400/50 hover:text-mlh-text/70"}`,children:(0,ey.jsx)(ew.Star,{size:17,fill:a<=i?"currentColor":"none"})},t)})}),(0,ey.jsx)("p",{className:"text-mlh-faint mt-2.5 h-4 text-[11.5px]",children:i?tO[i-1]:""})]}),(0,ey.jsxs)("div",{children:[(0,ey.jsx)("label",{htmlFor:"mlh-feedback-note",className:"text-mlh-faint mb-3 block font-mono text-[9px] tracking-[0.2em] uppercase",children:"In your words"}),(0,ey.jsx)("textarea",{id:"mlh-feedback-note",value:s,onChange:t=>l(t.target.value.slice(0,2e3)),rows:4,autoFocus:!0,placeholder:"The timing was wrong, it did not answer what I asked, the placements do not match my chartâ¦",className:"border-mlh-border bg-mlh-bg text-mlh-text placeholder:text-mlh-faint hover:border-mlh-border-hi focus:border-mlh-plum-400 focus:ring-mlh-plum/25 w-full resize-none rounded-xl border px-[15px] py-[13px] text-[15px] leading-[1.55] [color-scheme:dark] transition outline-none focus:ring-4"})]})]}),(0,ey.jsxs)("div",{className:"border-mlh-plum-400/22 flex items-center gap-5 border-t px-6 py-5 sm:px-8",children:[(0,ey.jsx)("p",{className:"text-mlh-faint max-w-[30ch] flex-1 text-[11.5px] leading-[1.5]",children:"A real person reads these."}),(0,ey.jsxs)("div",{className:"flex flex-none items-center gap-2.5",children:[(0,ey.jsx)("button",{onClick:a,className:"border-mlh-border-hi text-mlh-muted hover:border-mlh-plum-400/60 hover:text-mlh-text cursor-pointer rounded-xl border px-[22px] py-3 text-[13.5px] font-medium transition",children:"Not now"}),(0,ey.jsx)("button",{onClick:()=>{c(!0),n(i||1,s.trim())},disabled:d||!i&&!s.trim(),className:"mlh-cta-plum cursor-pointer rounded-xl px-[26px] py-3 text-[13.5px] font-semibold text-white disabled:cursor-default disabled:opacity-50",children:d?"Sendingâ¦":"Send"})]})]})]})]}),document.body)}var tR=t.i(3144);let t$=(0,eO.default)("thumbs-up",[["path",{d:"M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z",key:"emmmcr"}],["path",{d:"M7 10v12",key:"1qc93n"}]]);function tz({verdict:t,note:r,rating:a,onVerdict:n,onNote:i}){let[o,s]=(0,ek.useState)(!1),l=r=>{let a=t===r?null:r;n(a),"dislike"===a&&s(!0)};return(0,ey.jsxs)("div",{className:"mt-4",children:[(0,ey.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,ey.jsx)("span",{className:"text-mlh-text/45 mr-1 font-mono text-[9px] tracking-[0.2em] uppercase",children:"Was this useful"}),(0,ey.jsx)(tL,{label:"Yes",on:"like"===t,onClick:()=>l("like"),children:(0,ey.jsx)(t$,{size:14})}),(0,ey.jsx)(tL,{label:"No",on:"dislike"===t,onClick:()=>l("dislike"),children:(0,ey.jsx)(tM,{size:14})}),"dislike"===t&&!r&&(0,ey.jsx)("button",{type:"button",onClick:()=>s(!0),className:"text-mlh-plum-300/85 hover:text-mlh-plum-100 cursor-pointer font-sans text-[13px] underline underline-offset-[3px] transition",children:"Tell us what missed"})]}),r&&"dislike"===t&&(0,ey.jsxs)("div",{className:"border-mlh-plum-400/22 bg-mlh-plum-500/8 mt-2.5 flex items-start gap-3 rounded-xl border px-4 py-3",children:[(0,ey.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,ey.jsxs)("div",{className:"text-mlh-text/40 font-mono text-[9px] tracking-[0.2em] uppercase",children:["You told us",a?` \xb7 ${a}/5`:""]}),(0,ey.jsx)("p",{className:"text-mlh-text/80 mt-1.5 font-sans text-[14px] leading-[1.5] text-pretty",children:r})]}),(0,ey.jsx)("button",{type:"button","aria-label":"Edit your feedback",onClick:()=>s(!0),className:"text-mlh-text/40 hover:text-mlh-text/75 mt-0.5 flex-none cursor-pointer transition",children:(0,ey.jsx)(tR.Pencil,{size:13})})]}),o&&(0,ey.jsx)(tD,{rating:a,note:r,onClose:()=>s(!1),onSubmit:(t,r)=>{i(t,r),s(!1)}})]})}function tL({label:t,on:r,onClick:a,children:n}){return(0,ey.jsx)("button",{type:"button","aria-label":t,"aria-pressed":r,onClick:a,className:`grid h-[30px] w-[30px] cursor-pointer place-items-center rounded-lg border transition ${r?"border-mlh-plum-400/70 text-mlh-plum-100 bg-mlh-plum-500/25":"border-mlh-plum-400/40 bg-mlh-plum-500/8 text-mlh-text/65 hover:border-mlh-plum-400/70 hover:text-mlh-text"}`,children:n})}let tW={chart:{rail:"border-mlh-plum-400/28",label:"text-mlh-plum-300/85",bubble:"border-mlh-plum-400/32",accent:"var(--mlh-plum)",mark:"border-mlh-plum-400/45 text-mlh-plum-300 shadow-[0_0_14px_rgba(154,69,120,.3)]",markGround:"radial-gradient(circle at 35% 28%, rgba(154,69,120,.42), rgba(154,69,120,.08))",ring:"text-mlh-plum-400/50",barTrack:"bg-mlh-plum-400/15",barSweep:"via-mlh-plum-300"},pedia:{rail:"border-mlh-orrery/28",label:"text-mlh-orrery-hi/85",bubble:"border-mlh-orrery/32",accent:"var(--mlh-orrery)",mark:"border-mlh-orrery/45 text-mlh-orrery-hi shadow-[0_0_14px_rgba(223,129,7,.3)]",markGround:"radial-gradient(circle at 35% 28%, rgba(223,129,7,.42), rgba(223,129,7,.08))",ring:"text-mlh-orrery/50",barTrack:"bg-mlh-orrery/15",barSweep:"via-mlh-orrery-hi"}};
1var tU=t.i(85105);function tB(){return(0,ey.jsxs)(ey.Fragment,{children:[(0,ey.jsx)("path",{d:"M40.0672 12.9987C40.3692 12.733 40.3933 12.262 40.1155 11.9721L34.6441 5.93332C34.3783 5.63138 33.9073 5.60722 33.6174 5.88501C33.3155 6.15072 33.2913 6.62174 33.5691 6.91161L39.0527 12.9383C39.3063 13.2524 39.7773 13.2644 40.0672 12.9987Z",fill:"currentColor"}),(0,ey.jsx)("path",{d:"M34.1836 20.3295C34.3527 19.9672 34.2077 19.5324 33.8454 19.3512L26.5018 15.8125C26.1394 15.6434 25.7046 15.7883 25.5234 16.1507C25.3543 16.513 25.4993 16.9478 25.8616 17.1289L33.2052 20.6677C33.5797 20.8489 34.0145 20.6918 34.1836 20.3295Z",fill:"currentColor"}),(0,ey.jsx)("path",{d:"M63.2695 20.7765C63.1004 20.4142 63.2454 19.9794 63.6077 19.7983L70.9513 16.2595C71.3137 16.0904 71.7485 16.2354 71.9297 16.5977C72.0988 16.96 71.9538 17.3948 71.5915 17.576L64.2358 21.1147C63.8734 21.2838 63.4386 21.1389 63.2695 20.7765Z",fill:"currentColor"}),(0,ey.jsx)("path",{d:"M57.749 13.1073C58.0751 13.3368 58.5341 13.2522 58.7636 12.9261L63.4137 6.23513C63.6432 5.90904 63.5587 5.45009 63.2325 5.22061C62.9064 4.99114 62.4475 5.07568 62.218 5.40178L57.5678 12.0928C57.3263 12.4189 57.4108 12.8778 57.749 13.1073Z",fill:"currentColor"}),(0,ey.jsx)("path",{d:"M64.8392 23.9771L61.3123 21.8876C61.3123 21.8756 61.2882 21.8514 61.2278 21.8273C60.8051 21.6582 61.0587 21.1509 61.0587 21.1509H61.0466L62.8463 17.4068C63.1482 16.7788 63.0879 16.0783 62.6893 15.5107C62.2907 14.943 61.6505 14.6411 60.9621 14.7135L56.94 15.1121C56.9158 15.1121 56.8917 15.1121 56.8555 15.1121C56.4689 15.1483 56.324 14.9189 56.2636 14.7618L55.4664 10.583C55.3336 9.90664 54.8746 9.37522 54.2224 9.15782C53.5702 8.94043 52.8817 9.08536 52.3623 9.54431L49.4031 12.2135C49.379 12.2255 49.3427 12.2376 49.3186 12.2618C48.9804 12.5154 48.6784 12.3342 48.5939 12.2739L45.6105 9.44769C45.1033 8.96458 44.3786 8.78342 43.7384 8.98874C43.0862 9.19406 42.6031 9.7134 42.4581 10.3897L41.5885 14.3995C41.4918 14.8102 41.2261 14.8705 41.0208 14.8585L40.9483 14.8464C40.8396 14.8222 40.7672 14.7981 40.7672 14.7981C40.7672 14.7981 40.7671 14.8102 40.7792 14.8343L36.89 14.3391C36.2136 14.2546 35.5614 14.5324 35.1507 15.0759C34.7401 15.6314 34.6555 16.3319 34.9333 16.96L36.6484 20.8852C36.6484 20.8852 36.733 21.1267 36.5156 21.3562L32.7472 23.4698C32.1553 23.808 31.793 24.4119 31.793 25.1003C31.793 25.7887 32.1432 26.4047 32.7351 26.7428L35.8996 28.5666L35.8875 28.5907L36.4552 28.8806L36.576 28.953C36.6243 28.9772 36.6605 29.0014 36.7088 29.0134L40.4773 30.9821H40.5981C40.1753 29.9555 39.9458 28.8202 39.9458 27.6366C39.9458 22.7
1572 43.9075 18.7958 48.7871 18.7958C53.6668 18.7958 57.6285 22.7572 57.6285 27.6366C57.6285 29.0014 57.3144 30.3057 56.7588 31.4531L60.8775 29.2791C60.9258 29.2671 60.9742 29.2429 61.0225 29.2188L64.7184 27.2863C65.3465 26.9602 65.7451 26.3201 65.7572 25.6438C65.7813 24.9554 65.431 24.3273 64.8392 23.9771Z",fill:"currentColor"}),(0,ey.jsx)("path",{d:"M54.2329 23.4697C54.2329 23.4697 55.6461 26.8273 53.4116 29.7622C51.1771 32.697 46.1042 32.7574 43.8456 29.6414C41.5869 26.5374 43.3624 23.6026 43.3624 23.6026C40.5603 27.0085 42.6981 30.7767 42.6981 30.7767C42.6981 30.7767 44.0992 33.7719 47.9401 34.1463C51.7931 34.5207 54.6798 31.8758 55.4408 28.8563C56.2017 25.8611 54.2329 23.4697 54.2329 23.4697Z",fill:"currentColor"}),(0,ey.jsx)("path",{d:"M48.7746 22.5762C47.0112 22.5762 45.5859 24.0013 45.5859 25.7647C45.5859 27.528 47.0112 28.9532 48.7746 28.9532C50.538 28.9532 51.9633 27.528 51.9633 25.7647C51.9633 24.0013 50.526 22.5762 48.7746 22.5762ZM48.7384 27.214C47.9291 27.214 47.2769 26.5618 47.2769 25.7526C47.2769 24.9434 47.9291 24.2912 48.7384 24.2912C49.5476 24.2912 50.1998 24.9434 50.1998 25.7526C50.1998 26.5618 49.5476 27.214 48.7384 27.214Z",fill:"currentColor"}),(0,ey.jsx)("path",{d:"M50.7677 7.30999C49.4994 7.08052 49.5236 6.41625 49.4511 6.02976C49.3787 5.64328 48.9197 4.80992 48.7868 5.93314C48.654 7.04428 48.0138 7.10467 47.3978 7.28584C46.7818 7.45492 47.2046 7.7931 47.3374 7.81725C48.8834 8.08296 48.5573 8.81969 48.7264 9.3028C48.7868 9.45981 49.0646 10.1241 49.3545 9.0854C49.6444 8.04673 50.2241 8.02257 50.6469 7.93803C50.8039 7.9018 52.0359 7.53947 50.7677 7.30999Z",fill:"currentColor"})]})}function tF(){return(0,ey.jsxs)(ey.Fragment,{children:[(0,ey.jsx)("path",{d:"M20.3322 51.6241L17.135 39.5552C17.0746 39.3362 16.8937 39.2389 16.7489 39.2389C16.6041 39.2267 16.4111 39.2997 16.3266 39.5065L13.3707 46.7941C13.3224 46.9158 13.2138 46.9888 13.0811 46.9888C12.9484 46.9888 12.8398 46.9158 12.7916 46.7941L9.83565 39.5065C9.75119 39.2876 9.55815 39.2267 9.41337 39.2389C9.26859 39.2511 9.08762 39.3362 9.02729 39.5552L5.81801 51.6241H7.38646C7.57949 51.6241 7.7484 51.4903 7.79666 51.3078L9.63054 44.7989C9.66674 44.665 9.77532 44.5799 9.90804 44.5799C10.0408 44.5799 10.1614 44.6529 10.2097 44.7745L12.6709 50.9428C12.7554 51.1375 12.9243 51.2105 13.0691 51.2105C13.2138 51.2105 13.3827 51.1375 13.4672 50.9428L15.9285 44.7745C15.9767 44.6529 16.0853 44.5799 16.218 44.5799H16.2301C16.3628 44.592 16.4714 44.6772 16.5076 44.7989L18.3415 51.3078C18.3897 51.4903 18.5586 51.6241 18.7517 51.6241H20.3322Z",fill:"currentColor"}),(0,ey.jsx)("path",{d:"M23.1185 51.6242H28.7046C29.163 51.6242 29.525 51.2471 29.525 50.7969C29.525 50.3346 29.151 49.9696 28.7046 49.9696H24.8438C24.6749 49.9696 24.5422 49.8358 24.5422 49.6655V45.5411C24.5422 45.3708 24.6749 45.2369 24.8438 45.2369H27.5463C27.9807 45.2369 28.3426 44.8719 28.3426 44.434C28.3426 43.996 27.9807 43.631 27.5463 43.631H24.8438C24.6749 43.631 24.5422 43.4972 24.5422 43.3268V40.5529C24.5422 40.3826 24.6749 40.2488 24.8438 40.2488H28.7046C29.163 40.2488 29.525 39.8716 29.525 39.4215C29.525 38.9591 29.151 38.5941 28.7046 38.5941H23.1185C22.8772 38.5941 22.6841 38.7888 22.6841 39.0321V43.339C22.6841 43.5093 22.5514 43.6431 22.3825 43.6431H21.5018V45.2491H22.370
15C22.5394 45.2491 22.6721 45.3829 22.6721 45.5533V51.2106C22.6841 51.4296 22.8772 51.6242 23.1185 51.6242Z",fill:"currentColor"}),(0,ey.jsx)("path",{d:"M34.2428 38.5575C33.736 38.5575 33.3258 38.9712 33.3258 39.4822V51.6241H37.8502C38.3087 51.6241 38.6827 51.247 38.6827 50.7847C38.6827 50.3223 38.3087 49.9452 37.8502 49.9452H35.9319C35.5216 49.9452 35.1838 49.6045 35.1838 49.1909V39.4944C35.1597 38.9712 34.7495 38.5575 34.2428 38.5575Z",fill:"currentColor"}),(0,ey.jsx)("path",{d:"M76.8202 51.6242C77.327 51.6242 77.7372 51.2106 77.7372 50.6996V39.4944C77.7372 38.9835 77.327 38.5698 76.8202 38.5698C76.3135 38.5698 75.9033 38.9835 75.9033 39.4944V43.339C75.9033 43.5093 75.7706 43.6431 75.6017 43.6431H70.4379C70.269 43.6431 70.1363 43.5093 70.1363 43.339V39.4944C70.1363 38.9835 69.726 38.5698 69.2193 38.5698C68.7126 38.5698 68.3024 38.9835 68.3024 39.4944V50.6996C68.3024 51.2106 68.7126 51.6242 69.2193 51.6242C69.726 51.6242 70.1363 51.2106 70.1363 50.6996V45.6384C70.1363 45.4681 70.269 45.3342 70.4379 45.3342H75.6017C75.7706 45.3342 75.9033 45.4681 75.9033 45.6384V50.6996C75.8912 51.2106 76.3135 51.6242 76.8202 51.6242Z",fill:"currentColor"}),(0,ey.jsx)("path",{d:"M91.6356 51.6243L86.0615 39.0808C85.9891 38.9227 85.8444 38.8253 85.6634 38.8253C85.4824 38.8253 85.3376 38.9227 85.2653 39.0808L79.6912 51.6243H81.3562C81.5251 51.6243 81.682 51.5269 81.7543 51.3688L82.9246 48.753C83.0453 48.4854 83.3107 48.3029 83.6123 48.3029H87.6903C87.9799 48.3029 88.2453 48.4732 88.366 48.7409L89.5724 51.3688C89.6448 51.5269 89.8017 51.6243 89.9585 51.6243H91.6356ZM87.256 46.5509C87.1956 46.6361 87.0991 46.6969 87.0026 46.6969H84.3483C84.2397 46.6969 84.1432 46.6483 84.0949 46.5509C84.0346 46.4658 84.0346 46.3563 84.0708 46.2589L85.398 43.339C85.4462 43.2295 85.5548 43.1565 85.6755 43.1565C85.7961 43.1565 85.9047 43.2295 85.953 43.339L87.2801 46.2589C87.3163 46.3563 87.3042 46.4658 87.256 46.5509Z",fill:"currentColor"}),(0,ey.jsx)("path",{d:"M39.8768 45.091C39.8768 44.1907 40.0216 43.3391 40.3111 42.5604C40.6007 41.7818 41.035 41.0761 41.6021 40.4557C42.145 39.8717 42.7844 39.4215 43.5083 39.093C44.2322 38.7767 44.9803 38.6186 45.7766 38.6186C46.5608 38.6186 47.3088 38.7767 48.0327 39.093C48.7445 39.4094 49.384 39.8717 49.939 40.4678C50.506 41.0761 50.9404 41.7818 51.2299 42.5604C51.5195 43.3391 51.6643 44.1785 51.6643 45.0789C51.6643 45.8332 51.5677 46.551 51.3626 47.2201C51.1575 47.8893 50.8559 48.4976 50.4578 49.0572C49.9028 49.8359 49.203 50.4442 48.3826 50.8822C47.5501 51.3202 46.6814 51.5391 45.7766 51.5391C44.9923 51.5391 44.2443 51.381 43.5204 51.0525C42.7965 50.7362 42.1571 50.2739 41.6141 49.6777C41.035 49.0572 40.6007 48.3637 40.3111 47.5851C40.0216 46.8308 39.8768 45.9913 39.8768 45.091ZM41.3246 45.091C41.3246 46.551 41.7589 47.7676 42.6155 48.7409C43.4721 49.7264 44.5339 50.213 45.7886 50.213C47.0434 50.213 48.093 49.7264 48.9496 48.7531C49.7942 47.7798 50.2285 46.5631 50.2285 45.091C50.2285 43.6189 49.8063 42.4023 48.9496 41.429C48.1051 40.4557 47.0434 39.969 45.7886 39.969C44.5218 39.969 43.4721 40.4557 42.6155 41.429C41.7469 42.4023 41.3246 43.6189 41.3246 45.091Z",fill:"currentColor"}),(0,ey.jsx)("path",{d:"M45.7887 51.6365C45.0045 51.6365 44.2324 51.4661 43.4964 51.1498C42.7604 50.8213 42.1089 50.359 41.566 49.7629C40.9869 49.1424 40.5405 48.4246 40.2509 47.6459C39.9614 46.8673 39.8045 46.0035 39.8045 45.091C39.8045 44.1785 39.9493 43.3147 40.2509 42.5361C40.5405 41.7453 40.9869 41.0275 41.566 40.407C42.121 39.8109 42.7725 39.3485 43.4964 39.0322C44.2203 38.7159 44.9924 38.5456 45.7887 38.5456C46.585 38.5456 47.3451 38.7037 48.069 39.0322C48.7929 39.3485 49.4444 39.823 49.9994 40.4192C50.5785 41.0397 51.0129 41.7575 51.3145 42.5483C51.6041 43.3391 51.7609 44.1907 51.7609 45.091C51.7609 45.8575 51.6523 46.5875 51.4593 47.2566C51.2542 47.9379 50.9526 48.5584 50.5423 49.1181C49.9753 49.9089 49.2755 50.5293 48.431 50.9673C47.5985 51.4053 46.7057 51.6365 45.7887 51.6365ZM45.7887 38.7037C45.0166 38.7037 44.2686 38.8619 43.5567 39.1782C42.8449 39.4945 42.2175 39.9447 41.6746 40.5165C41.1196 41.1248 40.6853 41.8183 40.3957 42.5969C40.1061 43.3634 39.9614 44.2029 39.9614 45.1032C39.9614 45.9913 40.1061 46.8308 40.3957 47.5973C40.6853 48.3637 41.10
175 49.0572 41.6746 49.6655C42.2175 50.2495 42.8449 50.6997 43.5567 51.016C44.2686 51.3323 45.0166 51.4905 45.7887 51.4905C46.6815 51.4905 47.5502 51.2715 48.3586 50.8457C49.1669 50.4198 49.8667 49.8115 50.4096 49.0451C50.7957 48.4976 51.0973 47.8893 51.3024 47.2323C51.4955 46.5753 51.6041 45.8575 51.6041 45.1153C51.6041 44.2394 51.4593 43.3999 51.1697 42.6213C50.8802 41.8548 50.4458 41.1491 49.8908 40.553C49.3358 39.969 48.7085 39.5067 48.0087 39.2025C47.2969 38.8619 46.5609 38.7037 45.7887 38.7037ZM45.7887 50.286C44.5099 50.286 43.424 49.7872 42.5553 48.7896C41.6866 47.8041 41.2523 46.551 41.2523 45.0789C41.2523 43.6067 41.6866 42.3536 42.5553 41.3681C43.424 40.3827 44.5099 39.8717 45.7887 39.8717C47.0676 39.8717 48.1414 40.3705 49.0101 41.356C49.8667 42.3414 50.301 43.5946 50.301 45.0667C50.301 46.551 49.8667 47.8041 49.0101 48.7774C48.1414 49.7872 47.0556 50.286 45.7887 50.286ZM45.7887 40.042C44.5581 40.042 43.5085 40.5287 42.676 41.4776C41.8435 42.4388 41.4092 43.6432 41.4092 45.0789C41.4092 46.5145 41.8314 47.7189 42.676 48.6801C43.5085 49.6412 44.5581 50.1279 45.7887 50.1279C47.0194 50.1279 48.057 49.6412 48.8894 48.6922C49.7219 47.7433 50.1442 46.5266 50.1442 45.0789C50.1442 43.6432 49.7219 42.4266 48.8894 41.4655C48.057 40.5287 47.0073 40.042 45.7887 40.042Z",fill:"currentColor"}),(0,ey.jsx)("path",{d:"M53.4862 45.091C53.4862 44.1907 53.6309 43.3391 53.9205 42.5604C54.2101 41.7818 54.6444 41.0761 55.2114 40.4557C55.7544 39.8717 56.3938 39.4215 57.1177 39.093C57.8416 38.7767 58.5896 38.6186 59.3859 38.6186C60.1701 38.6186 60.9182 38.7767 61.6421 39.093C62.3539 39.4094 62.9934 39.8717 63.5483 40.4678C64.1154 41.0761 64.5497 41.7818 64.8393 42.5604C65.1289 43.3391 65.2736 44.1785 65.2736 45.0789C65.2736 45.8332 65.1771 46.551 64.972 47.2201C64.7669 47.8893 64.4653 48.4976 64.0671 49.0572C63.5121 49.8359 62.8124 50.4442 61.992 50.8822C61.1595 51.3202 60.2908 51.5391 59.3859 51.5391C58.6017 51.5391 57.8537 51.381 57.1298 51.0525C56.4059 50.7362 55.7664 50.2739 55.2235 49.6777C54.6444 49.0572 54.2101 48.3637 53.9205 47.5851C53.6309 46.8308 53.4862 45.9913 53.4862 45.091ZM54.9219 45.091C54.9219 46.551 55.3562 47.7676 56.2128 48.7409C57.0695 49.7264 58.1312 50.213 59.3859 50.213C60.6407 50.213 61.6903 49.7264 62.547 48.7531C63.3915 47.7798 63.8258 46.5631 63.8258 45.091C63.8258 43.6189 63.4036 42.4023 62.547 41.429C61.7024 40.4557 60.6407 39.969 59.3859 39.969C58.1191 39.969 57.0695 40.4557 56.2128 41.429C55.3562 42.4023 54.9219 43.6189 54.9219 45.091Z",fill:"currentColor"}),(0,ey.jsx)("path",{d:"M59.3864 51.6365C58.6022 51.6365 57.83 51.4661 57.0941 51.1498C56.3581 50.8213 55.7066 50.359 55.1637 49.7629C54.5845 49.1424 54.1381 48.4246 53.8486 47.6459C53.559 46.8673 53.4022 46.0035 53.4022 45.091C53.4022 44.1785 53.5469 43.3269 53.8486 42.5361C54.1381 41.7453 54.5845 41.0275 55.1637 40.407C55.7186 39.8109 56.3702 39.3485 57.0941 39.0322C57.818 38.7159 58.5901 38.5456 59.3864 38.5456C60.1827 38.5456 60.9428 38.7037 61.6667 39.0322C62.3906 39.3485 63.0421 39.823 63.5971 40.4192C64.1762 41.0397 64.6105 41.7575 64.9122 42.5483C65.2017 43.3391 65.3586 44.1907 65.3586 45.091C65.3586 45.8575 65.25 46.5875 65.0569 47.2566C64.8518 47.9379 64.5502 48.5584 64.14 49.1181C63.5729 49.9089 62.8732 50.5293 62.0286 50.9673C61.1961 51.4053 60.3033 51.6365 59.3864 51.6365ZM59.3864 38.7037C58.6142 38.7037 57.8662 38.8619 57.1544 39.1782C56.4425 39.4945 55.8152 39.9447 55.2722 40.5165C54.7173 41.1248 54.2829 41.8183 53.9934 42.5969C53.7038 43.3634 53.559 44.2029 53.559 45.1032C53.559 45.9913 53.7038 46.8308 53.9934 47.5973C54.2829 48.3637 54.7052 49.0572 55.2722 49.6655C55.8152 50.2495 56.4425 50.6997 57.1544 51.016C57.8662 51.3323 58.6142 51.4905 59.3864 51.4905C60.2792 51.4905 61.1479 51.2715 61.9562 50.8457C62.7646 50.4198 63.4644 49.8115 64.0073 49.0451C64.3934 48.4976 64.695 47.8893 64.9001 47.2323C65.0931 46.5753 65.2017 45.8575 65.2017 45.1153C65.2017 44.2394 65.0569 43.3999 64.7674 42.6213C64.4778 41.8548 64.0435 41.1491 63.4885 40.553C62.9335 39.969 62.3061 39.5067 61.6064 39.2025C60.9066 38.8619 60.1586 38.7037 59.3864 38.7037ZM59.3864 50.286C58.1075 50.286 57.0217 49.7872 56.153 48.7896C55.2843 47.8041 54.85 46.551 54.85 45.0789C54.85 43.6067 55.2843 42.3536 56.153 41.3681C57.0217 40.3827 58.1075 39.8717 59.3864 39.8717C60.6653 39.8717 61.7391 40.3705 62.6077 41.356C63.4644 42.3414 63.8987 43.5946 63.8987 45.0667C63.8987 46.551 63.4644 47.8041 62.6077 48.7774C61.7391 49.7872 60.6653 50.286 59.3864 50.286ZM59.3864 40.042C58.1558 40.042 57.1061 40.5287 56.2736 41.4776C55.4412 42.4388 55.0068 43.6432 55.0068 45.0789C55.0068 46.5145 55.4291 47.7189 56.2736 48.6801C57.1061 49.6412 58.1558 50.1279 59.3864 50.1279C60.617 50.1279 61.6546 49.6412 62.4871 48.6922C63.3196 47.7433 63.7419 46.5266 63.7419 45.0789C63.7419 43.6432 63.3196 42.4266 62.4871 41.4655C61.6546 40.5287 60.617 40.042 59.3864 40.042Z",fill:"currentColor"})]})}function tY({className:t="h-8 w-auto",title:r="Melooha"}){return(0,ey.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"87",height:"47",viewBox:"5.3 4.6 87 47.4",fill:"none",role:"img","aria-label":r,className:t,children:[(0,ey.jsx)(tB,{}),(0,ey.jsx)(tF,{})]})}function tV({className:t="h-4 w-4",title:r="Melooha"}){return(0,ey.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"25.2 4.9 47.2 30.2",fill:"none",role:"img","aria-label":r,className:t,children:(0,ey.jsx)(tB,{})})}function tq({className:t="h-5 w-5",title:r="Melooha"}){return(0,ey.jsx)(tU.default,{src:"/melooha-mark.png",alt:r,width:225,height:225,priority:!0,className:t})}function tH({className:t}
1){return(0,ey.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":!0,className:t,children:(0,ey.jsx)("path",{d:"M12 2c.62 6 3.98 9.38 10 10-6.02.62-9.38 4-10 10-.62-6-3.98-9.38-10-10 6.02-.62 9.38-4 10-10Z"})})}function tZ({ring:t}){return(0,ey.jsx)("svg",{viewBox:"0 0 40 40",fill:"none","aria-hidden":!0,className:`mlh-ring-spin absolute -inset-[6px] [--mlh-ring-dur:7s] ${t}`,children:(0,ey.jsx)("circle",{cx:"20",cy:"20",r:"18.6",stroke:"currentColor",strokeWidth:"1.3",strokeDasharray:"3.35 5",strokeLinecap:"round"})})}function tK({orbit:t,kind:r="chart"}){let a=tW[r];return(0,ey.jsxs)("span",{"aria-hidden":!0,className:`relative grid h-[26px] w-[26px] flex-none place-items-center rounded-[9px] border ${a.mark}`,style:{backgroundImage:a.markGround},children:[(0,ey.jsx)(tV,{className:`h-auto w-[15px] ${t?"animate-mlh-glow":""}`}),t&&(0,ey.jsx)(tZ,{ring:a.ring})]})}let tG=["97%","91%","54%"],tJ=["[--mlh-in-delay:0ms]","[--mlh-in-delay:70ms]","[--mlh-in-delay:140ms]"];function tX({long:t,reconnecting:r}){return(0,ey.jsxs)("div",{className:"animate-mlh-rise mt-4",children:[(0,ey.jsx)("p",{className:"sr-only",role:"status",children:r?"The connection dropped. Picking the reading back up.":"Vaani is still writing this answer."}),(0,ey.jsx)("div",{"aria-hidden":!0,className:"flex flex-col gap-[9px]",children:tG.map((t,r)=>(0,ey.jsx)("div",{style:{width:t},className:`mlh-in mlh-shimmer h-[11px] rounded-full [--mlh-in-y:4px] ${tJ[r]}`},r))}),(0,ey.jsxs)("div",{"aria-hidden":!0,className:"mt-3.5 flex items-center gap-2",children:[(0,ey.jsx)(tH,{className:`h-[9px] w-[9px] flex-none ${r?"text-mlh-amber animate-mlh-tick":"text-mlh-plum-300/80 animate-mlh-glow"}`}),(0,ey.jsx)("span",{className:`font-mono text-[9px] tracking-[0.18em] uppercase sm:text-[9.5px] ${r?"text-mlh-amber/75":"text-mlh-text/35"}`,children:r?"Connection dropped, picking the reading back up":t?"Still reading your chart, this one is taking longer":"Still reading your chart"})]})]})}let tQ=/^\s*(?:\d+[).]\s*)?(.+?)\s*(?:\(chart\))?\s*\|\s*(.+?)\s*(?:\(house\))?\s*\|\s*(.+?)\s*$/i,t0=/^astro\s*reference\s*:?$/i;function t1({text:t}){let r=function(t){let r=[];for(let a of t.split("\n")){let t=a.trim();if(!t||t0.test(t))continue;let n=tQ.exec(t);if(!n)return null;let i=n[2].replace(/\s*house\s*$/i,""),o=i&&!/^n\/?a$/i.test(i);r.push({label:o?`${n[1]} \xb7 ${i} house`:n[1],value:n[3]})}return r.length?r:null}(t);return r?(0,ey.jsx)(tn,{rows:r}):(0,ey.jsx)("div",{className:"text-mlh-text/80 px-5 py-5 font-sans text-[16px] leading-relaxed whitespace-pre-wrap sm:text-[18px]",children:t})}var t2=t.i(48209);let t5="from-mlh-orrery-hi to-mlh-orrery text-mlh-bg shrink-0 rounded-full bg-gradient-to-b px-5 py-2.5 text-[13.5px] font-semibold shadow-[0_0_26px_rgba(223,129,7,.26)] transition-[filter,box-shadow] duration-200 hover:shadow-[0_0_34px_rgba(223,129,7,.42)] hover:brightness-110";function t4({offer:t,onBuy:r}){let a="number"==typeof t.expiry?1e3*t.expiry:null,[n,i]=(0,ek.useState)(()=>Date.now());(0,ek.useEffect)(()=>{if(null===a)return;let t=setInterval(()=>i(Date.now()),1e3);return()=>clearInterval(t)},[a]);let o=null===a?null:Math.max(0,Math.floor((a-n)/1e3)),s=null!==o&&o<=0,l=s&&t.title_expired||t.title,d=s&&t.description_expired||t.description,c=s&&t.cta_expired||t.cta,u=r?function(t){let r;try{r=new URL(t)}catch{return null}let a=r.hostname.toLowerCase();if("https:"!==r.protocol||"melooha.com"!==a&&!a.endsWith(".melooha.com")||"/pay"!==r.pathname.replace(/\/+$/,""))return null;let n=Number(r.searchParams.get("plan_id"));return!Number.isInteger(n)||n<=0?null:{planId:n,promo:r.searchParams.get("promo")?.trim().toUpperCase()||null,href:t}}(c.deep_link):null,h=(0,t2.safeHttpUrl)(c.deep_link),p=!u&&!h;return(0,ek.useEffect)(()=>{p&&(0,eb.track)("OFFER_CTA_INERT_WEB_EVENT",{offer_id:t.id,expired:s})},[p,t.id,s]),(0,ey.jsxs)("div",{className:"border-mlh-orrery/18 mlh-card-glass mlh-corner-ticks relative mt-4 overflow-hidden rounded-[16px] border p-4 sm:p-5",children:[(0,ey.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-x-4 gap-y-2",children:[(0,ey.jsxs)("div",{className:"text-mlh-orrery-hi/85 flex items-center gap-2 font-mono text-[9px] tracking-[0.22em] uppercase",children:[(0,ey.jsx)("span",{className:"bg-mlh-orrery size-[5px] rounded-full"}),"Offer"]}),null!==o&&(0,ey.jsx)("span",{className:"border-mlh-orrery/35 bg-mlh-orrery/12 text-mlh-orrery-hi rounded-md border px-1.5 py-[2px] font-mono text-[9px] tracking-[0.14em] whitespace-nowrap uppercase",children:s?"Offer ended":`${function(t){if(t<3600)return(0,ev.mmss)(t);let r=Math.floor(t/3600);return r<24?`${r}h ${Math.floor(t%3600/60)}m`:`${Math.floor(r/24)}d ${r%24}h`}(o)} left`})]}),(0,ey.jsx)("h3",{className:"text-mlh-text mt-2.5 font-serif text-[21px] leading-[1.15] sm:text-[24px]",children:l}
1),(0,ey.jsx)("p",{className:"text-mlh-muted mt-1.5 max-w-[62ch] text-[13px] leading-snug sm:text-[13.5px]",children:d}),(0,ey.jsx)("div",{className:"border-mlh-orrery/12 mt-3.5 border-t pt-3.5",children:(0,ey.jsxs)("div",{className:`flex flex-wrap items-center gap-x-5 gap-y-3 ${t.promo?"justify-between":"justify-end"}`,children:[t.promo&&(0,ey.jsxs)("div",{className:"text-mlh-text/30 font-mono text-[9px] tracking-[0.16em] uppercase",children:["Code ",t.promo]}),u?(0,ey.jsx)("button",{type:"button",onClick:()=>{(0,eb.track)("OFFER_CTA_CLICKED_WEB_EVENT",{offer_id:t.id,target:"purchase",expired:s}),r?.(u)},className:t5,children:c.title}):h?(0,ey.jsx)("a",{href:h,target:"_blank",rel:"noreferrer",onClick:()=>(0,eb.track)("OFFER_CTA_CLICKED_WEB_EVENT",{offer_id:t.id,target:"link",expired:s}),className:t5,children:c.title}):(0,ey.jsx)("span",{className:t5,children:c.title})]})})]})}var t3=t.i(83541);function t6(t,r){let a=(0,ek.useRef)(r?0:t),[n,i]=(0,ek.useState)(()=>r?0:t);return(0,ek.useEffect)(()=>{let r=0,n=performance.now(),o=s=>{let l=s-n;n=s,a.current>t&&(a.current=t);let d=t-a.current;if(d>0){let r=Math.max(Math.min(1e3,Math.max(110,11.5*Math.sqrt(d))),d/6e3*1e3);a.current=Math.min(t,a.current+Math.ceil(r*l/1e3))}i(a.current),a.current<t&&(r=requestAnimationFrame(o))};return r=requestAnimationFrame(o),()=>cancelAnimationFrame(r)},[t]),n}var t8=t.i(46832);function t9({stream:t,onReveal:r,onFeedback:a,onFeedbackNote:n,onFollowup:i,onBuyOffer:o}){var s,l;let d,c="done"===t.status||"error"===t.status,[u,h]=(s=t.answer??"",l=!c,d=t6(s.length,l),[s.slice(0,d),d<s.length]),p=c&&!h,{quiet:m,long:f}=function(t,r){let[a,n]=(0,ek.useState)(0);(0,ek.useEffect)(()=>{if(!r)return;let t=setInterval(()=>n(Date.now()),500);return()=>clearInterval(t)},[r]);let i=r?Math.max(0,a-t):0;return{quietMs:i,quiet:i>=1800,long:i>=1e4}}(t.lastEventAt,!c&&!h),x=!c&&"reconnecting"===t.phase,g=!c&&(m||x);(0,ek.useEffect)(()=>{p&&r?.()},[p]);let y=p&&!t.isError&&null!==t.answerId,b=function(t){let r=t.prompts.slice(0,2).map(t=>({q:t.question,kind:"chart"}));if(0===r.length)return[];let a=new Set(r.map(t=>t.q)),n=e5.CHART_GENERAL.filter(t=>!a.has(t)),i=2*Math.abs(t.answerId??0)%n.length;return[...r,...[n[i],n[(i+1)%n.length]].filter(t=>!!t).map(t=>({q:t,kind:"chart"}))]}(t),v=t.error?t3.NOTICES[t.error]:null;return(0,ey.jsxs)("div",{className:"min-w-0 flex-1",children:["error"===t.status&&(0,ey.jsxs)("div",{className:"bg-mlh-amber/10 border-mlh-amber/40 text-mlh-amber flex items-start gap-2.5 rounded-2xl border px-5 py-4 font-sans text-[16px] leading-snug sm:text-[18px]",children:[(0,ey.jsx)(t8.AlertTriangle,{size:16,className:"mt-1 shrink-0"}),(0,ey.jsxs)("span",{children:[v?.text??"The reading could not be completed.",v?.hint&&(0,ey.jsx)("span",{className:"text-mlh-amber/70 mt-1 block text-[14px] sm:text-[15px]",children:v.hint})]})]}),u&&(0,ey.jsx)(tN,{text:u,caret:!p&&!g}),g&&(0,ey.jsx)(tX,{long:f,reconnecting:x}),p&&t.offer&&(0,ey.jsx)(t4,{offer:t.offer,...o?{onBuy:o}:{}}
1),p&&t.astroReference&&(0,ey.jsx)(tr,{steps:[],astro:(0,ey.jsx)(t1,{text:t.astroReference})}),y&&a&&(0,ey.jsx)(tz,{verdict:t.feedback,note:t.feedbackNote,rating:t.feedbackRating,onVerdict:a,onNote:(t,r)=>n?.(t,r)}),y&&i&&b.length>0&&(0,ey.jsx)(td,{items:b,onFollowup:i,lead:"Ask next"})]})}let t7={7:"Seven",12:"Twelve",20:"Twenty"};function re({product:t,onBuy:r,offerStart:a}){let[n,i]=(0,ek.useState)(()=>Date.now()),[o,s]=(0,ek.useState)(!1);(0,ek.useEffect)(()=>{let t=setInterval(()=>i(Date.now()),1e3);return()=>clearInterval(t)},[]);let l=!!a&&n-a>=1e3*t.timerSec;return o?null:(0,ey.jsxs)("div",{className:"border-mlh-orrery/18 mlh-card-glass mlh-corner-ticks relative overflow-hidden rounded-[16px] border p-4 sm:p-5",children:[(0,ey.jsxs)("div",{className:"text-mlh-orrery-hi/85 flex items-center gap-2 font-mono text-[9px] tracking-[0.22em] uppercase",children:[(0,ey.jsx)("span",{className:"bg-mlh-orrery size-[5px] rounded-full"}),"Founding rate"]}),(0,ey.jsxs)("h3",{className:"text-mlh-text mt-2.5 font-serif text-[21px] leading-[1.15] sm:text-[24px]",children:[t7[t.qty]??t.qty," questions on"," ",(0,ey.jsx)("em",{className:"text-mlh-orrery-hi italic",children:"your own"})," chart"]}),(0,ey.jsx)("p",{className:"text-mlh-muted mt-1.5 max-w-[62ch] text-[13px] leading-snug sm:text-[13.5px]",children:t.blurb}),(0,ey.jsx)("div",{className:"border-mlh-orrery/12 mt-3.5 border-t pt-3.5",children:(0,ey.jsxs)("div",{className:"flex flex-wrap items-end justify-between gap-x-5 gap-y-3",children:[(0,ey.jsxs)("div",{className:"min-w-0",children:[(0,ey.jsxs)("div",{className:"flex flex-wrap items-baseline gap-x-2.5 gap-y-1",children:[(0,ey.jsx)("span",{className:"text-mlh-text font-sans text-[24px] leading-none",children:t.price}),(0,ey.jsx)("span",{className:"text-mlh-text/30 font-mono text-[12px] line-through",children:t.mrp}),(0,ey.jsx)("span",{className:"border-mlh-orrery/35 bg-mlh-orrery/12 text-mlh-orrery-hi rounded-md border px-1.5 py-[2px] font-mono text-[9px] tracking-[0.14em] whitespace-nowrap uppercase",children:t.off})]}),(0,ey.jsxs)("div",{className:"text-mlh-text/30 mt-2 font-mono text-[9px] tracking-[0.16em] uppercase",children:[t.perUnit," a question · Never expires"]})]}),(0,ey.jsxs)("div",{className:"flex items-center gap-4",children:[(0,ey.jsx)("button",{onClick:()=>{(0,eb.track)("PACK_CARD_DISMISSED_WEB_EVENT"),s(!0)},className:"text-mlh-text/40 hover:text-mlh-text/70 shrink-0 cursor-pointer text-[13.5px] transition-colors",children:"Not now"}),(0,ey.jsx)("button",{onClick:()=>{(0,eb.track)("CROSS_SELL_CLICKED_WEB_EVENT",{kind:"questions",placement:"pack_card"}),r(t)},className:`shrink-0 cursor-pointer rounded-full px-5 py-2.5 text-[13.5px] font-semibold duration-200 ${l?"border-mlh-orrery/45 bg-mlh-orrery/12 text-mlh-orrery-hi hover:border-mlh-orrery/70 hover:bg-mlh-orrery/22 border transition-colors":"from-mlh-orrery-hi to-mlh-orrery text-mlh-bg bg-gradient-to-b shadow-[0_0_26px_rgba(223,129,7,.26)] transition-[filter,box-shadow] hover:shadow-[0_0_34px_rgba(223,129,7,.42)] hover:brightness-110"}`,children:l?"See packs":`Unlock ${t.qty} questions`})]})]})})]})}let rt=["Reading your question","Gathering what it needs","Checking the details","Writing the answer"],rr=[0,700,1600],ra={wait:"border-mlh-text/14",now:"border-mlh-amber/70 bg-mlh-amber/16 text-mlh-amber animate-mlh-breathe shadow-[0_0_14px_rgba(252,153,24,.3)]",done:"border-mlh-success/55 bg-mlh-success/14 text-mlh-success"},rn={wait:"text-mlh-text/26",now:"text-mlh-text",done:"text-mlh-text/55"};function ri({state:t}){return"wait"===t?null:(0,ey.jsx)("svg",{viewBox:"0 0 24 24","aria-hidden":!0,className:"h-[11px] w-[11px]",children:"done"===t?(0,ey.jsx)("path",{d:"M5 12.5 10 17.5 19 6.5",fill:"none",stroke:"currentColor",strokeWidth:"2.6",strokeLinecap:"round",strokeLinejoin:"round"}):(0,ey.jsx)("path",{d:"M12 3a9 9 0 0 0 0 18Z",fill:"currentColor"})})}let ro=["[--mlh-in-delay:90ms]","[--mlh-in-delay:150ms]","[--mlh-in-delay:210ms]","[--mlh-in-delay:270ms]"];function rs({label:t="Vaani is preparing your answer",detail:r,phase:a,kind:n="chart"}){let i,o=tW[n],[s,l]=(0,ek.useState)(0);(0,ek.useEffect)(()=>{let t=Date.now(),r=setInterval(()=>l(Date.now()-t),250);return()=>clearInterval(r)},[]);let d=r?rt.map((t,a)=>2===a?r:t):rt,c=(i=rr.filter(t=>s>=t).length-1,a?"acknowledged"===a||"writing"===a?2:Math.min(i,1):i),u="reconnecting"===a;return(0,ey.jsxs)("div",{className:`animate-mlh-rise max-w-[840px] border-l pl-4 sm:pl-[22px] ${o.rail}`,children:[(0,ey.jsx)("p",{className:"sr-only",children:t}),(0,ey.jsx)("p",{className:"sr-only",role:"status",children:u?"Reconnecting to Vaani.":d[c]}
1),(0,ey.jsxs)("div",{"aria-hidden":!0,children:[(0,ey.jsxs)("div",{className:"mb-3.5 flex items-center gap-2.5",children:[(0,ey.jsx)(tK,{orbit:!0,kind:n}),(0,ey.jsx)("span",{className:`font-mono text-[9px] tracking-[0.2em] uppercase sm:text-[9.5px] ${o.label}`,children:t})]}),(0,ey.jsx)("ul",{className:"flex flex-col gap-[11px]",children:d.map((t,r)=>{let a=c>r?"done":c===r?"now":"wait";return(0,ey.jsxs)("li",{className:`mlh-in flex items-center gap-[11px] font-sans text-[16px] transition-colors duration-500 [--mlh-in-y:6px] sm:text-[17px] ${ro[r]} ${rn[a]}`,children:[(0,ey.jsx)("span",{className:`grid h-[18px] w-[18px] flex-none place-items-center rounded-full border transition-all duration-500 ${ra[a]}`,children:(0,ey.jsx)(ri,{state:a})}),t]},t)})}),(0,ey.jsx)("div",{className:`mt-[18px] h-[2px] max-w-[320px] overflow-hidden rounded-full ${o.barTrack}`,children:(0,ey.jsx)("div",{className:`animate-mlh-sweep h-full w-[40%] rounded-full bg-gradient-to-r from-transparent to-transparent ${o.barSweep}`})}),(s>=1e4||u)&&(0,ey.jsx)("p",{className:`animate-mlh-rise mt-3 font-mono text-[9px] tracking-[0.18em] uppercase ${u?"text-mlh-amber/75":"text-mlh-text/35"}`,children:u?"Connection dropped, picking the reading back up":"Still working, this one is taking a little longer"})]})]})}function rl({data:t,streaming:r,error:a,onHandoff:n,onWritten:i}){var o;let s,l,d,c,u,h,p,[m,f]=(o=!!r,l=t6(s=function(t){let r=t.lead.length;for(let a of t.sections)for(let t of(r+=a.h.length,a.bullets))r+=t.term.length+t.text.length;return r+t.followup.length}(t),o),[(d=l,u=(c=t=>{let r=t.slice(0,d);return d-=r.length,r})(t.lead),h=t.sections.map(t=>({h:c(t.h),bullets:t.bullets.map(t=>({term:c(t.term),text:c(t.text)})).filter(t=>t.term)})).filter(t=>t.h),p=c(t.followup),{...t,lead:u,sections:h,followup:p}),l<s]),x=a?t3.NOTICES[a]:null,g=!!r||f;return(0,ek.useEffect)(()=>{g||i?.()},[g]),(0,ey.jsxs)("div",{className:"text-mlh-text/86 min-w-0 flex-1 font-sans text-[17px] leading-[1.6] text-pretty sm:text-[20px]",children:[(0,ey.jsxs)("p",{className:"mb-5",children:[m.lead,g&&0===m.sections.length&&(0,ey.jsx)(rd,{})]}),m.sections.map((t,r)=>(0,ey.jsxs)("div",{className:"mb-5",children:[(0,ey.jsx)("div",{className:"text-mlh-orrery-hi/85 mb-3 font-mono text-[9.5px] tracking-[0.22em] uppercase",children:t.h}),(0,ey.jsx)("ul",{className:"flex flex-col gap-2.5",children:t.bullets.map((a,n)=>(0,ey.jsxs)("li",{className:"flex items-baseline gap-[11px]",children:[(0,ey.jsx)("span",{"aria-hidden":!0,className:"bg-mlh-orrery/70 mt-[9px] h-1 w-1 shrink-0 self-start rounded-full"}),(0,ey.jsxs)("span",{children:[(0,ey.jsxs)("span",{className:"text-mlh-orrery-hi",children:[a.term,":"]})," ",a.text,g&&r===m.sections.length-1&&n===t.bullets.length-1&&(0,ey.jsx)(rd,{})]})]},n))})]},r)),m.followup&&(0,ey.jsx)("p",{className:"text-mlh-text/55",children:m.followup}),x&&(0,ey.jsxs)("p",{className:"text-mlh-amber/90 mt-2 text-[15px] leading-snug",children:[x.text,x.hint&&(0,ey.jsx)("span",{className:"text-mlh-amber/65 mt-0.5 block text-[13px]",children:x.hint})]}),n&&(0,ey.jsxs)("button",{onClick:n,className:"group border-mlh-plum-400/50 bg-mlh-plum-500/14 text-mlh-plum-100 hover:border-mlh-plum-400/80 hover:bg-mlh-plum-500/22 mt-4 flex cursor-pointer items-center gap-2.5 rounded-full border px-4 py-2.5 text-left font-sans text-[15px] transition-[color,background-color,border-color,transform,box-shadow] duration-200 ease-[cubic-bezier(.22,1,.36,1)] hover:-translate-y-0.5 hover:shadow-[0_8px_20px_rgba(0,0,0,.35)] sm:text-[16px]",children:[(0,ey.jsx)(e$.SparkleIcon,{size:13,className:"shrink-0"}),"Ask this in Vaani",(0,ey.jsx)("span",{"aria-hidden":!0,className:"text-mlh-plum-300/75 pl-1 font-mono text-[11px] transition-transform duration-200 group-hover:translate-x-0.5",children:"â"})]})]})}function rd(){return(0,ey.jsx)("span",{"aria-hidden":!0,className:"bg-mlh-orrery-hi/80 ml-[3px] inline-block h-[0.9em] w-[2px] translate-y-[1px] animate-pulse"})}function rc({input:t,setInput:r,onSend:a,mode:n,balance:i,onGetMore:o,onNewThread:s,loggedIn:l,freeUsed:d,balanceKnown:c,pediaLocked:u=!1,onSignIn:h,prefill:p=0,holding:m=!1,answering:f=!1,exempt:x=!1}){let g="astropedia"===n,y=g?"pedia":"chart",b=e2[y],v=(0,ek.useRef)(null),w=e3({input:t,setInput:r,mode:y,exempt:x,box:v}),k=()=>{f||w.guard()&&a()},j=(0,ek.useCallback)(()=>{let t=v.current;t&&(t.style.height="auto",t.style.height=`${Math.min(Math.max(t.scrollHeight,60),150)}px`)},[]);return(0,ek.useEffect)(j,[t,j]),(0,ek.useEffect)(()=>
1{if(!p)return;let t=v.current;t&&(t.focus(),t.setSelectionRange(t.value.length,t.value.length),t.scrollTop=t.scrollHeight,t.scrollIntoView({block:"nearest"}))},[p]),(0,ey.jsxs)("div",{children:[(0,ey.jsxs)("div",{style:{"--mlh-plate-accent":b.accent},onAnimationEnd:w.settle,className:`mlh-composer relative overflow-hidden rounded-[22px] border transition-[border-color,box-shadow] duration-300 ${b.rim} ${b.glowThread} ${w.flinch}`,children:[(0,ey.jsx)("span",{"aria-hidden":!0,className:"mlh-ticks-brass pointer-events-none absolute -top-[90px] -right-[90px] h-[240px] w-[240px] rounded-full opacity-40"}),(0,ey.jsxs)("div",{className:"relative flex gap-3.5 px-4 pt-4 sm:px-5 sm:pt-[18px]",children:[(0,ey.jsx)("span",{"aria-hidden":!0,className:`animate-mlh-glow shrink-0 pt-1 text-[16px] leading-none ${b.spark}`,children:"â¦"}),(0,ey.jsx)("textarea",{ref:v,rows:2,value:t,onChange:t=>w.onChange(t.target.value),onKeyDown:t=>{"Enter"!==t.key||t.shiftKey||(t.preventDefault(),k())},disabled:f,"aria-label":"Ask a question",placeholder:f?"Vaani is writingâ¦":g?"Search another topic: a term, a yoga, a doá¹£aâ¦":"Ask a follow-up: a date you are weighing, a decision, a what-ifâ¦",className:`text-mlh-text placeholder:text-mlh-text/45 min-h-[60px] min-w-0 flex-1 resize-none bg-transparent font-sans text-[17px] leading-[1.5] outline-none disabled:cursor-not-allowed disabled:opacity-60 sm:text-[20px] ${b.caret}`})]}),(0,ey.jsxs)("div",{className:"relative flex flex-wrap items-center gap-3 px-3 pt-3 pb-3 sm:gap-3.5 sm:px-3.5 sm:pt-3 sm:pb-3.5 sm:pl-5",children:[(0,ey.jsx)(eP,{note:w.note,count:w.count,exempt:x,chip:b.chip}),(0,ey.jsxs)("div",{className:"ml-auto flex items-center gap-2.5 sm:gap-3",children:[g?u&&h?(0,ey.jsx)(eR,{onSignIn:h}):null:(0,ey.jsx)(ej,{balance:i,onGetMore:o,loggedIn:l,freeUsed:d,balanceKnown:c,tone:"brass"}),(0,ey.jsx)("button",{type:"button",onClick:k,disabled:f,"aria-label":f?"Vaani is writing":m?"Sending once your chart is bound":"Send question","aria-busy":m||f,className:`grid h-11 w-11 flex-none place-items-center rounded-full transition-[box-shadow,transform,background-color] duration-200 sm:h-[46px] sm:w-[46px] ${b.send} ${f?"cursor-not-allowed opacity-55":`hover:-translate-y-0.5 ${m?"cursor-wait":"cursor-pointer"}`}`,children:m||f?(0,ey.jsx)(e8.Loader2,{size:19,className:"animate-spin"}):(0,ey.jsx)(e6,{size:19})})]})]})]}),(0,ey.jsx)("div",{className:"text-mlh-text/25 mt-2.5 text-center font-mono text-[9px] tracking-[0.18em] uppercase",children:f?"One question at a time · the box returns with the answer":"Enter to send · Shift + Enter for a new line"})]})}function ru({messages:t,input:r,setInput:a,mode:n,balance:i,send:o,endRef:s,onGetMore:l,onFollowup:d,onFeedback:c,onFeedbackNote:u,onBuy:h,onBuyOffer:p,onNewThread:m,loggedIn:f,freeUsed:x,balanceKnown:g,pediaLocked:y=!1,onSignIn:b,prefill:v=0,queued:w=null,exempt:k=!1,answering:j=!1,offerStart:N,pack:_}){let E="astropedia"===n,S=E?"pedia":"chart",C=f&&g&&x&&i<=0,T=t.filter(t=>"vaani"===t.role).length,A=T>0&&T%3==0,[I,M]=(0,ek.useState)(null),P=t[t.length-1],O=P&&"vaani"===P.role&&"pedia"===P.kind&&!P.streaming&&I===P.id&&"ask.off-topic"!==P.error&&"ask.needs-chart"!==P.error?P:null,D=()=>s.current?.scrollIntoView({behavior:"smooth"});return(0,ey.jsxs)("div",{className:"flex h-full flex-col overflow-hidden px-4 sm:px-8 lg:px-10",children:[(0,ey.jsx)("div",{className:"text-mlh-text/40 mlh-in relative z-10 flex flex-none items-center pt-4 font-mono text-[9px] tracking-[0.22em] [--mlh-in-delay:80ms] [--mlh-in-y:-8px] sm:text-[10px]",children:(0,ey.jsx)("span",{className:"uppercase",children:"Melooha / Ask Vaani"})}),(0,ey.jsxs)("div",{className:"relative z-10 flex min-h-0 flex-1 flex-col items-center pt-3.5",children:[(0,ey.jsxs)("div",{className:"flex w-full max-w-[900px] flex-1 flex-col gap-[30px] overflow-x-hidden overflow-y-auto pr-1 pb-2",children:[t.map((r,a)=>"user"===r.role?(0,ey.jsx)(rh,{text:r.text,kind:r.kind},r.id):("pedia"===r.kind?!r.streaming||r.structured.lead:!r.stream||r.stream.answer||"done"===r.stream.status||"error"===r.stream.status)?(0,ey.jsx)(rp,{label:"pedia"===r.kind?"Vaani · Astropedia":"Vaani · reading from your birth chart",kind:r.kind,children:"pedia"===r.kind?(0,ey.jsx)(rl,{data:r.structured,streaming:r.streaming,error:r.error,onHandoff:r.handoff?()=>o(r.handoff,"chart",void 0,"redirected"):void 0,onWritten:()=>{M(r.id),D()}}):r.stream?(0,ey.jsx)(t9,{stream:r.stream,onReveal:D,onFollowup:d,onFeedback:t=>{let a=r.stream?.answerId;null!=a&&c(a,t)},onFeedbackNote:(t,a)=>{let n=r.stream?.answerId;null!=n&&u(n,t,a)},onBuyOffer:p}):r.chart?(0,ey.jsx)(tg,{data:r.chart,onFollowup:d,onReveal:D,onBuy:h,showCross:A&&a===t.length-1}):null},r.id):(0,ey.jsx)(rs,{kind:r.kind,phase:"chart"===r.kind?r.stream?.phase:void 0,detail:"chart"===r.kind?"Consulting your charts":void 0},r.id)),O&&(0,ey.jsxs)("div",{className:`border-l pl-4 sm:pl-[22px] ${tW.pedia.rail}`,children:[(0,ey.jsx)(td,{items:O.structured.followups,onFollowup:d,lead:"Keep exploring",tone:"brass",nudgeChart:!0,chartLocked:C}),(0,ey.jsxs)("div",{className:"mt-4 space-y-4",children:[A&&(0,ey.jsx)(to,{product:O.structured.crosssell,onBuy:h}),x||i>0?(0,ey.jsx)(re,{product:_,onBuy:l,offerStart:N}):(0,ey.jsx)(tb,{onAsk:()=>d("What does my chart say about the year ahead?","chart")})]})]}),(0,ey.jsx)("div",{ref:s})]}),(0,ey.jsx)("div",{className:"w-full max-w-[900px] flex-none pt-4 pb-4 sm:pb-5",children:(0,ey.jsx)(rc,{input:r,setInput:a,onSend:()=>o(r,S),mode:n,balance:i,onGetMore:l,onNewThread:m,loggedIn:f,freeUsed:x,balanceKnown:g,pediaLocked:y,...b?{onSignIn:b}:{},prefill:v,exempt:k,holding:!E&&null!==w,answering:j})})]})]})}function rh({text:t,kind:r}){let a=tW[r];return(0,ey.jsxs)("div",{className:"animate-mlh-rise flex max-w-[700px] flex-col items-end self-end",children:[(0,ey.jsx)("span",{className:"text-mlh-text/35 mb-2.5 font-mono text-[9.5px] tracking-[0.2em] uppercase",children:"You"}),(0,ey.jsx)("div",{style:{"--mlh-bubble-accent":a.accent},className:`mlh-bubble-ask text-mlh-text rounded-[18px_18px_4px_18px] border px-[18px] py-3 font-sans text-[15.5px] leading-[1.4] text-pretty shadow-[0_10px_30px_rgba(0,0,0,.35)] sm:text-[18px] ${a.bubble}`,children:t})]})}function rp({label:t,kind:r,children:a}){let n=tW[r];return(0,ey.jsxs)("div",{className:`animate-mlh-rise max-w-[840px] border-l pl-4 sm:pl-[22px] ${n.rail}`,children:[(0,ey.jsxs)("div",{className:"mb-2.5 flex items-center gap-2.5",children:[(0,ey.jsx)(tK,{kind:r}),(0,ey.jsx)("span",{className:`font-mono text-[9px] tracking-[0.2em] uppercase sm:text-[9.5px] ${n.label}`,children:t})]}),a]})}
1var rm=t.i(85310),rf=t.i(96561),rx=t.i(88526),rg=t.i(82257),rg=rg,ry=t.i(96502),ry=ry;let rb={},rv={};function rw(t,r){try{let a=(rb[t]||=new Intl.DateTimeFormat("en-US",{timeZone:t,timeZoneName:"longOffset"}).format)(r).split("GMT")[1];if(a in rv)return rv[a];return rj(a,a.split(":"))}catch{if(t in rv)return rv[t];let r=t?.match(rk);if(r)return rj(t,r.slice(1));return NaN}}let rk=/([+-]\d\d):?(\d\d)?/;function rj(t,r){let a=+(r[0]||0),n=+(r[1]||0),i=(r[2]||0)/60;return rv[t]=60*a+n>0?60*a+n+i:60*a-n-i}class rN extends Date{constructor(...t){super(),t.length>1&&"string"==typeof t[t.length-1]&&(this.timeZone=t.pop()),this.internal=new Date,isNaN(rw(this.timeZone,this))?this.setTime(NaN):t.length?"number"==typeof t[0]&&(1===t.length||2===t.length&&"number"!=typeof t[1])?this.setTime(t[0]):"string"==typeof t[0]?this.setTime(+new Date(t[0])):t[0]instanceof Date?this.setTime(+t[0]):(this.setTime(+new Date(...t)),rS(this,t)):this.setTime(Date.now())}static tz(t,...r){return r.length?new rN(...r,t):new rN(Date.now(),t)}withTimeZone(t){return new rN(+this,t)}getTimezoneOffset(){let t=-rw(this.timeZone,this);return t>0?Math.floor(t):Math.ceil(t)}setTime(t){return Date.prototype.setTime.apply(this,arguments),rE(this),+this}[Symbol.for("constructDateFrom")](t){return new rN(+new Date(t),this.timeZone)}}let r_=/^(get|set)(?!UTC)/;function rE(t){t.internal.setTime(+t),t.internal.setUTCSeconds(t.internal.getUTCSeconds()-Math.round(-(60*rw(t.timeZone,t))))}function rS(t,r){var a;let n=Array.isArray(r)?Date.UTC((a=r)[0],a.length>1?a[1]:0,a.length>2?a[2]:1,...a.slice(3)):+t.internal,i=rw(t.timeZone,t),o=i>0?Math.floor(i):Math.ceil(i),s=new Date(+t);s.setUTCHours(s.getUTCHours()-1);let l=-new Date(+t).getTimezoneOffset(),d=-new Date(+s).getTimezoneOffset(),c=l;if(l-d&&l!==o&&Date.prototype.getHours.apply(t)!==(Array.isArray(r)?r[3]||0:t.internal.getUTCHours())){let r=new Date(+t),a=l-o;a&&r.setUTCMinutes(r.getUTCMinutes()+a);let n=rw(t.timeZone,r);(n>0?Math.floor(n):Math.ceil(n))===o&&(c=d)}let u=c-o;u&&Date.prototype.setUTCMinutes.call(t,Date.prototype.getUTCMinutes.call(t)+u);let h=new Date(+t);h.setUTCSeconds(0);let p=l>0?h.getSeconds():(h.getSeconds()-60)%60,m=Math.round(-(60*rw(t.timeZone,t)))%60;(m||p)&&Date.prototype.setUTCSeconds.call(t,Date.prototype.getUTCSeconds.call(t)+m+p);let f=rw(t.timeZone,t),x=f>0?Math.floor(f):Math.ceil(f),g=-new Date(+t).getTimezoneOffset()-x-u,y=x-o,b=y>0&&rC(t)-n==60*y*1e3&&rC(t,n-60*x*1e3)!==n;if(x!==o&&g&&!b){Date.prototype.setUTCMinutes.call(t,Date.prototype.getUTCMinutes.call(t)+g);let r=rw(t.timeZone,t),a=x-(r>0?Math.floor(r):Math.ceil(r));a&&g<0&&Date.prototype.setUTCMinutes.call(t,Date.prototype.getUTCMinutes.call(t)+a)}rE(t);let v=(r?n:n+1e3*m)-t.internal;v&&18e5>Math.abs(v)&&(Date.prototype.setTime.call(t,+t+v),rE(t))}function rC(t,r){let a=new Date(r??+t);return a.setUTCSeconds(a.getUTCSeconds()-Math.round(-(60*rw(t.timeZone,a)))),+a}Object.getOwnPropertyNames(Date.prototype).forEach(t=>{if(!r_.test(t))return;let r=t.replace(r_,"$1UTC");rN.prototype[r]&&(t.startsWith("get")?rN.prototype[t]=function(){return this.internal[r]()}:(rN.prototype[t]=function(){var t;return Date.prototype[r].apply(this.internal,arguments),t=this,Date.prototype.setFullYear.call(t,t.internal.getUTCFullYear(),t.internal.getUTCMonth(),t.internal.getUTCDate()),Date.prototype.setHours.call(t,t.internal.getUTCHours(),t.internal.getUTCMinutes(),t.internal.getUTCSeconds(),t.internal.getUTCMilliseconds()),rS(t),+this},rN.prototype[r]=function(){return Date.prototype[r].apply(this,arguments),rE(this),+this}))});class rT extends rN{static tz(t,...r){return r.length?new rT(...r,t):new rT(Date.now(),t)}toISOString(){let[t,r,a]=this.tzComponents(),n=`${t}${r}:${a}`;return this.internal.toISOString().slice(0,-1)+n}toString(){return`${this.toDateString()} ${this.toTimeString()}`}toDateString(){let[t,r,a,n]=this.internal.toUTCString().split(" ");return`${t?.slice(0,-1)} ${a} ${r} ${n}`}
1toTimeString(){let t=this.internal.toUTCString().split(" ")[4],[r,a,n]=this.tzComponents();return`${t} GMT${r}${a}${n} (${function(t,r,a="long"){return new Intl.DateTimeFormat("en-US",{hour:"numeric",timeZone:t,timeZoneName:a}).format(r).split(/\s/g).slice(2).join(" ")}(this.timeZone,this)})`}toLocaleString(t,r){return Date.prototype.toLocaleString.call(this,t,{...r,timeZone:r?.timeZone||this.timeZone})}toLocaleDateString(t,r){return Date.prototype.toLocaleDateString.call(this,t,{...r,timeZone:r?.timeZone||this.timeZone})}toLocaleTimeString(t,r){return Date.prototype.toLocaleTimeString.call(this,t,{...r,timeZone:r?.timeZone||this.timeZone})}tzComponents(){let t=this.getTimezoneOffset(),r=String(Math.floor(Math.abs(t)/60)).padStart(2,"0"),a=String(Math.abs(t)%60).padStart(2,"0");return[t>0?"-":"+",r,a]}withTimeZone(t){return new rT(+this,t)}[Symbol.for("constructDateFrom")](t){return new rT(+new Date(t),this.timeZone)}}let rA=Symbol.for("constructDateFrom");function rI(t,r){return"function"==typeof t?t(r):t&&"object"==typeof t&&rA in t?t[rA](r):t instanceof Date?new t.constructor(r):new Date(r)}function rM(t,r){return rI(r||t,t)}function rP(t,r,a){let n=rM(t,a?.in);return isNaN(r)?rI(a?.in||t,NaN):(r&&n.setDate(n.getDate()+r),n)}function rO(t,r,a){let n=rM(t,a?.in);if(isNaN(r))return rI(a?.in||t,NaN);if(!r)return n;let i=n.getDate(),o=rI(a?.in||t,n.getTime());return(o.setMonth(n.getMonth()+r+1,0),i>=o.getDate())?o:(n.setFullYear(o.getFullYear(),o.getMonth(),i),n)}function rD(t){let r=rM(t),a=new Date(Date.UTC(r.getFullYear(),r.getMonth(),r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds()));return a.setUTCFullYear(r.getFullYear()),t-a}function rR(t,...r){let a=rI.bind(null,t||r.find(t=>"object"==typeof t));return r.map(a)}function r$(t,r){let a=rM(t,r?.in);return a.setHours(0,0,0,0),a}function rz(t,r,a){let[n,i]=rR(a?.in,t,r),o=r$(n),s=r$(i);return Math.round((o-rD(o)-(s-rD(s)))/864e5)}function rL(t,r,a){let[n,i]=rR(a?.in,t,r);return 12*(n.getFullYear()-i.getFullYear())+(n.getMonth()-i.getMonth())}function rW(t,r){let[a,n]=rR(t,r.start,r.end);return{start:a,end:n}}let rU={};function rB(t,r){let a=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??rU.weekStartsOn??rU.locale?.options?.weekStartsOn??0,n=rM(t,r?.in),i=n.getDay();return n.setDate(n.getDate()+((i<a?-7:0)+6-(i-a))),n.setHours(23,59,59,999),n}let rF={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function rY(t){return (r={})=>{let a=r.width?String(r.width):t.defaultWidth;return t.formats[a]||t.formats[t.defaultWidth]}}let rV={date:rY({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:rY({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:rY({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},rq={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function rH(t){return(r,a)=>{let n;if("formatting"===(a?.context?String(a.context):"standalone")&&t.formattingValues){let r=t.defaultFormattingWidth||t.defaultWidth,i=a?.width?String(a.width):r;n=t.formattingValues[i]||t.formattingValues[r]}else{let r=t.defaultWidth,i=a?.width?String(a.width):t.defaultWidth;n=t.values[i]||t.values[r]}return n[t.argumentCallback?t.argumentCallback(r):r]}}function rZ(t){return(r,a={})=>{let n,i=a.width,o=i&&t.matchPatterns[i]||t.matchPatterns[t.defaultMatchWidth],s=r.match(o);if(!s)return null;let l=s[0],d=i&&t.parsePatterns[i]||t.parsePatterns[t.defaultParseWidth],c=Array.isArray(d)?function(t,r){for(let a=0;a<t.length;a++)if(r(t[a]))return a}(d,t=>t.test(l)):function(t,r){for(let a in t)if(Object.prototype.hasOwnProperty.call(t,a)&&r(t[a]))return a}(d,t=>t.test(l));return n=t.valueCallback?t.valueCallback(c):c,{value:n=a.valueCallback?a.valueCallback(n):n,rest:r.slice(l.length)}}}let rK={code:"en-US",formatDistance:(t,r,a)=>{let n,i=rF[t];if(n="string"==typeof i?i:1===r?i.one:i.other.replace("{{count}}",r.toString()),a?.addSuffix)if(a.comparison&&a.comparison>0)return"in "+n;else return n+" ago";return n},formatLong:rV,formatRelative:(t,r,a,n)=>rq[t],localize:{ordinalNumber:(t,r)=>{let a=Number(t),n=a%100;if(n>20||n<10)switch(n%10){case 1:return a+"st";
1case 2:return a+"nd";case 3:return a+"rd"}return a+"th"},era:rH({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:rH({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:t=>t-1}),month:rH({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:rH({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:rH({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(h={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:t=>parseInt(t,10)},(t,r={})=>{let a=t.match(h.matchPattern);if(!a)return null;let n=a[0],i=t.match(h.parsePattern);if(!i)return null;let o=h.valueCallback?h.valueCallback(i[0]):i[0];return{value:o=r.valueCallback?r.valueCallback(o):o,rest:t.slice(n.length)}}),era:rZ({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:rZ({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:t=>t+1}),month:rZ({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:rZ({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:rZ({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};function rG(t,r){let a=rM(t,r?.in);return a.setFullYear(a.getFullYear(),0,1),a.setHours(0,0,0,0),a}function rJ(t,r){let a=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??rU.weekStartsOn??rU.locale?.options?.weekStartsOn??0,n=rM(t,r?.in),i=n.getDay();return n.setDate(n.getDate()-(7*(i<a)+i-a)),n.setHours(0,0,0,0),n}function rX(t,r){return rJ(t,{...r,weekStartsOn:1}
1)}function rQ(t,r){let a=rM(t,r?.in),n=a.getFullYear(),i=rI(a,0);i.setFullYear(n+1,0,4),i.setHours(0,0,0,0);let o=rX(i),s=rI(a,0);s.setFullYear(n,0,4),s.setHours(0,0,0,0);let l=rX(s);return a.getTime()>=o.getTime()?n+1:a.getTime()>=l.getTime()?n:n-1}function r0(t,r){let a,n,i=rM(t,r?.in);return Math.round((rX(i)-(a=rQ(i,void 0),(n=rI(i,0)).setFullYear(a,0,4),n.setHours(0,0,0,0),rX(n)))/6048e5)+1}function r1(t,r){let a=rM(t,r?.in),n=a.getFullYear(),i=r?.firstWeekContainsDate??r?.locale?.options?.firstWeekContainsDate??rU.firstWeekContainsDate??rU.locale?.options?.firstWeekContainsDate??1,o=rI(r?.in||t,0);o.setFullYear(n+1,0,i),o.setHours(0,0,0,0);let s=rJ(o,r),l=rI(r?.in||t,0);l.setFullYear(n,0,i),l.setHours(0,0,0,0);let d=rJ(l,r);return+a>=+s?n+1:+a>=+d?n:n-1}function r2(t,r){let a,n,i,o=rM(t,r?.in);return Math.round((rJ(o,r)-(a=r?.firstWeekContainsDate??r?.locale?.options?.firstWeekContainsDate??rU.firstWeekContainsDate??rU.locale?.options?.firstWeekContainsDate??1,n=r1(o,r),(i=rI(r?.in||o,0)).setFullYear(n,0,a),i.setHours(0,0,0,0),rJ(i,r)))/6048e5)+1}function r5(t,r){let a=Math.abs(t).toString().padStart(r,"0");return(t<0?"-":"")+a}let r4={y(t,r){let a=t.getFullYear(),n=a>0?a:1-a;return r5("yy"===r?n%100:n,r.length)},M(t,r){let a=t.getMonth();return"M"===r?String(a+1):r5(a+1,2)},d:(t,r)=>r5(t.getDate(),r.length),a(t,r){let a=t.getHours()/12>=1?"pm":"am";switch(r){case"a":case"aa":return a.toUpperCase();case"aaa":return a;case"aaaaa":return a[0];default:return"am"===a?"a.m.":"p.m."}},h:(t,r)=>r5(t.getHours()%12||12,r.length),H:(t,r)=>r5(t.getHours(),r.length),m:(t,r)=>r5(t.getMinutes(),r.length),s:(t,r)=>r5(t.getSeconds(),r.length),S(t,r){let a=r.length;return r5(Math.trunc(t.getMilliseconds()*Math.pow(10,a-3)),r.length)}},r3={G:function(t,r,a){let n=+(t.getFullYear()>0);switch(r){case"G":case"GG":case"GGG":return a.era(n,{width:"abbreviated"});case"GGGGG":return a.era(n,{width:"narrow"});default:return a.era(n,{width:"wide"})}},y:function(t,r,a){if("yo"===r){let r=t.getFullYear();return a.ordinalNumber(r>0?r:1-r,{unit:"year"})}return r4.y(t,r)},Y:function(t,r,a,n){let i=r1(t,n),o=i>0?i:1-i;return"YY"===r?r5(o%100,2):"Yo"===r?a.ordinalNumber(o,{unit:"year"}):r5(o,r.length)},R:function(t,r){return r5(rQ(t),r.length)},u:function(t,r){return r5(t.getFullYear(),r.length)},Q:function(t,r,a){let n=Math.ceil((t.getMonth()+1)/3);switch(r){case"Q":return String(n);case"QQ":return r5(n,2);case"Qo":return a.ordinalNumber(n,{unit:"quarter"});case"QQQ":return a.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return a.quarter(n,{width:"narrow",context:"formatting"});default:return a.quarter(n,{width:"wide",context:"formatting"})}},q:function(t,r,a){let n=Math.ceil((t.getMonth()+1)/3);switch(r){case"q":return String(n);case"qq":return r5(n,2);case"qo":return a.ordinalNumber(n,{unit:"quarter"});case"qqq":return a.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return a.quarter(n,{width:"narrow",context:"standalone"});default:return a.quarter(n,{width:"wide",context:"standalone"})}},M:function(t,r,a){let n=t.getMonth();switch(r){case"M":case"MM":return r4.M(t,r);case"Mo":return a.ordinalNumber(n+1,{unit:"month"});case"MMM":return a.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return a.month(n,{width:"narrow",context:"formatting"});default:return a.month(n,{width:"wide",context:"formatting"})}},L:function(t,r,a){let n=t.getMonth();switch(r){case"L":return String(n+1);case"LL":return r5(n+1,2);case"Lo":return a.ordinalNumber(n+1,{unit:"month"});case"LLL":return a.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return a.month(n,{width:"narrow",context:"standalone"});default:return a.month(n,{width:"wide",context:"standalone"})}},w:function(t,r,a,n){let i=r2(t,n);return"wo"===r?a.ordinalNumber(i,{unit:"week"}):r5(i,r.length)},I:function(t,r,a){let n=r0(t);return"Io"===r?a.ordinalNumber(n,{unit:"week"}):r5(n,r.length)},d:function(t,r,a){return"do"===r?a.ordinalNumber(t.getDate(),{unit:"date"}):r4.d(t,r)},D:function(t,r,a){let n,i=rz(n=rM(t,void 0),rG(n))+1;return"Do"===r?a.ordinalNumber(i,{unit:"dayOfYear"}):r5(i,r.length)},E:function(t,r,a){let n=t.getDay();switch(r){case"E":case"EE":case"EEE":return a.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return a.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return a.day(n,{width:"short",context:"formatting"});default:return a.day(n,{width:"wide",context:"formatting"})}},e:function(t,r,a,n){let i=t.getDay(),o=(i-n.weekStartsOn+8)%7||7;switch(r){case"e":return String(o);case"ee":return r5(o,2);case"eo":return a.ordinalNumber(o,{unit:"day"});case"eee":return a.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return a.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return a.day(i,{width:"short",context:"formatting"});default:return a.day(i,{width:"wide",context:"formatting"})}},c:function(t,r,a,n){let i=t.getDay(),o=(i-n.weekStartsOn+8)%7||7;switch(r){case"c":return String(o);case"cc":return r5(o,r.length);case"co":return a.ordinalNumber(o,{unit:"day"});case"ccc":return a.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return a.day(i,{width:"narrow",context:"standalone"});case"cccccc":return a.day(i,{width:"short",context:"standalone"});default:return a.day(i,{width:"wide",context:"standalone"})}},i:function(t,r,a){let n=t.getDay(),i=0===n?7:n;switch(r){case"i":return String(i);case"ii":return r5(i,r.length);case"io":return a.ordinalNumber(i,{unit:"day"});case"iii":return a.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return a.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return a.day(n,{width:"short",context:"formatting"});default:return a.day(n,{width:"wide",context:"formatting"})}},a:function(t,r,a){let n=t.getHours()/12>=1?"pm":"am";switch(r){case"a":case"aa":return a.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"aaa":return a.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return a.dayPeriod(n,{width:"narrow",context:"formatting"});default:return a.dayPeriod(n,{width:"wide",context:"formatting"})}},b:function(t,r,a){let n,i=t.getHours();switch(n=12===i?"noon":0===i?"midnight":i/12>
1=1?"pm":"am",r){case"b":case"bb":return a.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"bbb":return a.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return a.dayPeriod(n,{width:"narrow",context:"formatting"});default:return a.dayPeriod(n,{width:"wide",context:"formatting"})}},B:function(t,r,a){let n,i=t.getHours();switch(n=i>=17?"evening":i>=12?"afternoon":i>=4?"morning":"night",r){case"B":case"BB":case"BBB":return a.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"BBBBB":return a.dayPeriod(n,{width:"narrow",context:"formatting"});default:return a.dayPeriod(n,{width:"wide",context:"formatting"})}},h:function(t,r,a){if("ho"===r){let r=t.getHours()%12;return 0===r&&(r=12),a.ordinalNumber(r,{unit:"hour"})}return r4.h(t,r)},H:function(t,r,a){return"Ho"===r?a.ordinalNumber(t.getHours(),{unit:"hour"}):r4.H(t,r)},K:function(t,r,a){let n=t.getHours()%12;return"Ko"===r?a.ordinalNumber(n,{unit:"hour"}):r5(n,r.length)},k:function(t,r,a){let n=t.getHours();return(0===n&&(n=24),"ko"===r)?a.ordinalNumber(n,{unit:"hour"}):r5(n,r.length)},m:function(t,r,a){return"mo"===r?a.ordinalNumber(t.getMinutes(),{unit:"minute"}):r4.m(t,r)},s:function(t,r,a){return"so"===r?a.ordinalNumber(t.getSeconds(),{unit:"second"}):r4.s(t,r)},S:function(t,r){return r4.S(t,r)},X:function(t,r,a){let n=t.getTimezoneOffset();if(0===n)return"Z";switch(r){case"X":return r8(n);case"XXXX":case"XX":return r9(n);default:return r9(n,":")}},x:function(t,r,a){let n=t.getTimezoneOffset();switch(r){case"x":return r8(n);case"xxxx":case"xx":return r9(n);default:return r9(n,":")}},O:function(t,r,a){let n=t.getTimezoneOffset();switch(r){case"O":case"OO":case"OOO":return"GMT"+r6(n,":");default:return"GMT"+r9(n,":")}},z:function(t,r,a){let n=t.getTimezoneOffset();switch(r){case"z":case"zz":case"zzz":return"GMT"+r6(n,":");default:return"GMT"+r9(n,":")}},t:function(t,r,a){return r5(Math.trunc(t/1e3),r.length)},T:function(t,r,a){return r5(+t,r.length)}};function r6(t,r=""){let a=t>0?"-":"+",n=Math.abs(t),i=Math.trunc(n/60),o=n%60;return 0===o?a+String(i):a+String(i)+r+r5(o,2)}function r8(t,r){return t%60==0?(t>0?"-":"+")+r5(Math.abs(t)/60,2):r9(t,r)}function r9(t,r=""){let a=Math.abs(t);return(t>0?"-":"+")+r5(Math.trunc(a/60),2)+r+r5(a%60,2)}let r7=(t,r)=>{switch(t){case"P":return r.date({width:"short"});case"PP":return r.date({width:"medium"});case"PPP":return r.date({width:"long"});default:return r.date({width:"full"})}},ae=(t,r)=>{switch(t){case"p":return r.time({width:"short"});case"pp":return r.time({width:"medium"});case"ppp":return r.time({width:"long"});default:return r.time({width:"full"})}},at={p:ae,P:(t,r)=>{let a,n=t.match(/(P+)(p+)?/)||[],i=n[1],o=n[2];if(!o)return r7(t,r);switch(i){case"P":a=r.dateTime({width:"short"});break;case"PP":a=r.dateTime({width:"medium"});break;case"PPP":a=r.dateTime({width:"long"});break;default:a=r.dateTime({width:"full"})}return a.replace("{{date}}",r7(i,r)).replace("{{time}}",ae(o,r))}},ar=/^D+$/,aa=/^Y+$/,an=["D","DD","YY","YYYY"];function ai(t){return t instanceof Date||"object"==typeof t&&"[object Date]"===Object.prototype.toString.call(t)}let ao=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,as=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,al=/^'([^]*?)'?$/,ad=/''/g,ac=/[a-zA-Z]/;function au(t,r,a){let n=a?.locale??rU.locale??rK,i=a?.firstWeekContainsDate??a?.locale?.options?.firstWeekContainsDate??rU.firstWeekContainsDate??rU.locale?.options?.firstWeekContainsDate??1,o=a?.weekStartsOn??a?.locale?.options?.weekStartsOn??rU.weekStartsOn??rU.locale?.options?.weekStartsOn??0,s=rM(t,a?.in);if(!ai(s)&&"number"!=typeof s||isNaN(+rM(s)))throw RangeError("Invalid time value");let l=r.match(as).map(t=>{let r=t[0];return"p"===r||"P"===r?(0,at[r])(t,n.formatLong):t}).join("").match(ao).map(t=>{if("''"===t)return{isToken:!1,value:"'"};let r=t[0];if("'"===r){var a;let r;return{isToken:!1,value:(r=(a=t).match(al))?r[1].replace(ad,"'"):a}}if(r3[r])return{isToken:!0,value:t};if(r.match(ac))throw RangeError("Format string contains an unescaped latin alphabet character `"+r+"`");return{isToken:!1,value:t}});n.localize.preprocessor&&(l=n.localize.preprocessor(s,l));let d={firstWeekContainsDate:i,weekStartsOn:o,locale:n};return l.map(i=>{if(!i.isToken)return i.value;let o=i.value;return(!a?.useAdditionalWeekYearTokens&&aa.test(o)||!a?.useAdditionalDayOfYearTokens&&ar.test(o))&&function(t,r,a){var n,i,o;let s,l=(n=t,i=r,o=a,s="Y"===n[0]?"years":"days of the month",`Use \`${n.toLowerCase()}\` instead of \`${n}\` (in \`${i}\`) for formatting ${s} to the input \`${o}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`);if(console.warn(l),an.includes(t))throw RangeError(l)}(o,r,String(t)),(0,r3[o[0]])(s,o,n.localize,d)}).join("")}function ah(t,r){let a=r.startOfMonth(t),n=a.getDay();return 1===n?a:0===n?r.addDays(a,-6):r.addDays(a,-1*(n-1))}let ap={...rK,labels:{labelDayButton:(t,r,a,n)=>{let i=(n&&"function"==typeof n.format?n.format.bind(n):(t,r)=>au(t,r,{locale:rK,...a}))(t,"PPPP");return r.today&&(i=`Today, ${i}`),r.selected&&(i=`${i}, selected`),i},labelMonthDropdown:"Choose the Month",labelNext:"Go to the Next Month",labelPrevious:"Go to the Previous Month",labelWeekNumber:t=>`Week ${t}`,labelYearDropdown:"Choose the Year",labelGrid:(t,r,a)=>(a&&"function"==typeof a.format?a.format.bind(a):(t,a)=>au(t,a,{locale:rK,...r}
1))(t,"LLLL yyyy"),labelGridcell:(t,r,a,n)=>{let i=(n&&"function"==typeof n.format?n.format.bind(n):(t,r)=>au(t,r,{locale:rK,...a}))(t,"PPPP");return r?.today&&(i=`Today, ${i}`),i},labelNav:"Navigation bar",labelWeekNumberHeader:"Week Number",labelWeekday:(t,r,a)=>(a&&"function"==typeof a.format?a.format.bind(a):(t,a)=>au(t,a,{locale:rK,...r}))(t,"cccc")}};class am{constructor(t,r){this.today=()=>this.overrides?.today?this.overrides.today():this.options.timeZone?rT.tz(this.options.timeZone):new(this.options.Date??Date),this.newDate=(t,r,a)=>this.overrides?.newDate?this.overrides.newDate(t,r,a):this.options.timeZone?new rT(t,r,a,this.options.timeZone):new Date(t,r,a),this.addDays=(t,r)=>this.overrides?.addDays?this.overrides.addDays(t,r):rP(t,r),this.addMonths=(t,r)=>this.overrides?.addMonths?this.overrides.addMonths(t,r):rO(t,r),this.addWeeks=(t,r)=>this.overrides?.addWeeks?this.overrides.addWeeks(t,r):rP(t,7*r,void 0),this.addYears=(t,r)=>this.overrides?.addYears?this.overrides.addYears(t,r):rO(t,12*r,void 0),this.differenceInCalendarDays=(t,r)=>this.overrides?.differenceInCalendarDays?this.overrides.differenceInCalendarDays(t,r):rz(t,r),this.differenceInCalendarMonths=(t,r)=>this.overrides?.differenceInCalendarMonths?this.overrides.differenceInCalendarMonths(t,r):rL(t,r),this.eachMonthOfInterval=t=>this.overrides?.eachMonthOfInterval?this.overrides.eachMonthOfInterval(t):function(t){let{start:r,end:a}=rW(void 0,t),n=+r>+a,i=n?+r:+a,o=n?a:r;o.setHours(0,0,0,0),o.setDate(1);let s=(void 0)??1;if(!s)return[];s<0&&(s=-s,n=!n);let l=[];for(;+o<=i;)l.push(rI(r,o)),o.setMonth(o.getMonth()+s);return n?l.reverse():l}(t),this.eachYearOfInterval=t=>{let r=this.overrides?.eachYearOfInterval?this.overrides.eachYearOfInterval(t):function(t){let{start:r,end:a}=rW(void 0,t),n=+r>+a,i=n?+r:+a,o=n?a:r;o.setHours(0,0,0,0),o.setMonth(0,1);let s=(void 0)??1;if(!s)return[];s<0&&(s=-s,n=!n);let l=[];for(;+o<=i;)l.push(rI(r,o)),o.setFullYear(o.getFullYear()+s);return n?l.reverse():l}(t),a=new Set(r.map(t=>this.getYear(t)));if(a.size===r.length)return r;let n=[];return a.forEach(t=>{n.push(new Date(t,0,1))}),n},this.endOfBroadcastWeek=t=>{let r,a,n,i,o,s;return this.overrides?.endOfBroadcastWeek?this.overrides.endOfBroadcastWeek(t):(r=ah(t,this),n=(a=this.startOfMonth(t)).getDay()>0?a.getDay():7,i=this.addDays(t,-n+1),o=this.addDays(i,34),s=this.getMonth(t)===this.getMonth(o)?5:4,this.addDays(r,7*s-1))},this.endOfISOWeek=t=>this.overrides?.endOfISOWeek?this.overrides.endOfISOWeek(t):rB(t,{...void 0,weekStartsOn:1}),this.endOfMonth=t=>{let r,a;return this.overrides?.endOfMonth?this.overrides.endOfMonth(t):(a=(r=rM(t,void 0)).getMonth(),r.setFullYear(r.getFullYear(),a+1,0),r.setHours(23,59,59,999),r)},this.endOfWeek=(t,r)=>this.overrides?.endOfWeek?this.overrides.endOfWeek(t,r):rB(t,this.options),this.endOfYear=t=>{let r,a;return this.overrides?.endOfYear?this.overrides.endOfYear(t):(a=(r=rM(t,void 0)).getFullYear(),r.setFullYear(a+1,0,0),r.setHours(23,59,59,999),r)},this.format=(t,r,a)=>{let n=this.overrides?.format?this.overrides.format(t,r,this.options):au(t,r,this.options);return this.options.numerals&&"latn"!==this.options.numerals?this.replaceDigits(n):n},this.getISOWeek=t=>this.overrides?.getISOWeek?this.overrides.getISOWeek(t):r0(t),this.getMonth=(t,r)=>{var a;return this.overrides?.getMonth?this.overrides.getMonth(t,this.options):(a=this.options,rM(t,a?.in).getMonth())},this.getYear=(t,r)=>{var a;return this.overrides?.getYear?this.overrides.getYear(t,this.options):(a=this.options,rM(t,a?.in).getFullYear())},this.getWeek=(t,r)=>this.overrides?.getWeek?this.overrides.getWeek(t,this.options):r2(t,this.options),this.isAfter=(t,r)=>this.overrides?.isAfter?this.overrides.isAfter(t,r):+rM(t)>+rM(r),this.isBefore=(t,r)=>this.overrides?.isBefore?this.overrides.isBefore(t,r):+rM(t)<+rM(r),this.isDate=t=>this.overrides?.isDate?this.overrides.isDate(t):ai(t),this.isSameDay=(t,r)=>this.overrides?.isSameDay?this.overrides.isSameDay(t,r):function(t,r){let[a,n]=rR(void 0,t,r);return+r$(a)==+r$(n)}(t,r),this.isSameMonth=(t,r)=>this.overrides?.isSameMonth?this.overrides.isSameMonth(t,r):function(t,r){let[a,n]=rR(void 0,t,r);return a.getFullYear()===n.getFullYear()&&a.getMonth()===n.getMonth()}(t,r),this.isSameYear=(t,r)=>this.overrides?.isSameYear?this.overrides.isSameYear(t,r):function(t,r){let[a,n]=rR(void 0,t,r);return a.getFullYear()===n.getFullYear()}(t,r),this.max=t=>{let r,a;return this.overrides?.max?this.overrides.max(t):(a=void 0,t.forEach(t=>{a||"object"!=typeof t||(a=rI.bind(null,t));let n=rM(t,a);(!r||r<n||isNaN(+n))&&(r=n)}),rI(a,r||NaN))},this.min=t=>{let r,a;return this.overrides?.min?this.overrides.min(t):(a=void 0,t.forEach(t=>{a||"object"!=typeof t||(a=rI.bind(null,t));let n=rM(t,a);(!r||r>n||isNaN(+n))&&(r=n)}),rI(a,r||NaN))},this.setMonth=(t,r)=>{var a,n;let i,o,s,l,d,c,u,h,p;return this.overrides?.setMonth?this.overrides.setMonth(t,r):(a=t,n=r,c=(d=rM(a,void 0)).getFullYear(),u=d.getDate(),(h=rI(a,0)).setFullYear(c,n,15),h.setHours(0,0,0,0),p=(o=(i=rM(h,void 0)).getFullYear(),s=i.getMonth(),(l=rI(i,0)).setFullYear(o,s+1,0),l.setHours(0,0,0,0),l.getDate()),d.setMonth(n,Math.min(u,p)),d)},this.setYear=(t,r)=>{let a;return this.overrides?.setYear?this.overrides.setYear(t,r):isNaN(+(a=rM(t,void 0)))?rI(t,NaN):(a.setFullYear(r),a)},this.startOfBroadcastWeek=(t,r)=>this.overrides?.startOfBroadcastWeek?this.overrides.startOfBroadcastWeek(t,this):ah(t,this),this.startOfDay=t=>this.overrides?.startOfDay?this.overrides.startOfDay(t):r$(t),this.startOfISOWeek=t=>this.overrides?.startOfISOWeek?this.overrides.startOfISOWeek(t):rX(t),this.startOfMonth=t=>{let r;return this.overrides?.startOfMonth?this.overrides.startOfMonth(t):((r=rM(t,void 0)).setDate(1),r.setHours(0,0,0,0),r)},this.startOfWeek=(t,r)=>this.overrides?.startOfWeek?this.overrides.startOfWeek(t,this.options):rJ(t,this.options),this.startOfYear=t=>this.overrides?.startOfYear?this.overrides.startOfYear(t):rG(t),this.options={locale:ap,...t},this.overrides=r}getDigitMap(){let{numerals:t="latn"}=this.options,r=new Intl.NumberFormat("en-US",{numberingSystem:t}),a={};for(let t=0;t<10;t++)a[t.toString()]=r.format(t);return a}replaceDigits(t){let r=this.getDigitMap();return t.replace(/\d/g,t=>r[t]||t)}formatNumber(t){return this.replaceDigits(t.toString())}getMonthYearOrder(){let t=this.options.locale?.code;return t&&am.yearFirstLocales.has(t)?"year-first":"month-first"}formatMonthYear(t){let{locale:r,timeZone:a,numerals:n}=this.options,i=r?.code;if(i&&am.yearFirstLocales.has(i))try{return new Intl.DateTimeFormat(i,{month:"long",year:"numeric",timeZone:a,numberingSystem:n}).format(t)}catch{}let o="year-first"===this.getMonthYearOrder()?"y LLLL":"LLLL y";return this.format(t,o)}}am.yearFirstLocales=new Set(["eu","hu","ja","ja-Hira","ja-JP","ko","ko-KR","lt","lt-LT","lv","lv-LV","mn","mn-MN","zh","zh-CN","zh-HK","zh-TW"]);let af=new am;function ax(t,r,a=!1,n=af){let{from:i,to:o}=t,{differenceInCalendarDays:s,isSameDay:l}=n;return i&&o?(0>s(o,i)&&([i,o]=[o,i]),s(r,i)>=+!!a&&s(o,r)>=+!!a):!a&&o?l(o,r):!a&&!!i&&l(i,r)}function ag(t){return!!(t&&"object"==typeof t&&"before"in t&&"after"in t)}function ay(t){return!!(t&&"object"==typeof t&&"from"in t)}function ab(t){return!!(t&&"object"==typeof t&&"after"in t)}function av(t){return!!(t&&"object"==typeof t&&"before"in t)}function aw(t){return!!(t&&"object"==typeof t&&"dayOfWeek"in t)}function ak(t,r){return Array.isArray(t)&&t.every(r.isDate)}function aj(t,r,a=af){let n=Array.isArray(r)?r:[r],{isSameDay:i,differenceInCalendarDays:o,isAfter:s}=a;return n.some(r=>{if("boolean"==typeof r)return r;if(a.isDate(r))return i(t,r);if(ak(r,a))return r.some(r=>i(t,r));if(ay(r))return ax(r,t,!1,a);if(aw(r))return Array.isArray(r.dayOfWeek)?r.dayOfWeek.includes(t.getDay()):r.dayOfWeek===t.getDay();if(ag(r)){let a=o(r.before,t),n=o(r.after,t),i=a>0,l=n<0;return s(r.before,r.after)?l&&i:i||l}return ab(r)?o(t,r.after)>0:av(r)?o(r.before,t)>0:"function"==typeof r&&r(t)})}function aN(t){return ek.default.createElement("span",{...t})}function a_(t){let{size:r=24,orientation:a="left",className:n,style:i}=t;return ek.default.createElement("svg",{className:n,style:i,width:r,height:r,viewBox:"0 0 24 24"},"up"===a&&ek.default.createElement("polygon",{points:"6.77 17 12.5 11.43 18.24 17 20 15.28 12.5 8 5 15.28"}),"down"===a&&ek.default.createElement("polygon",{points:"6.77 8 12.5 13.57 18.24 8 20 9.72 12.5 17 5 9.72"}),"left"===a&&ek.default.createElement("polygon",{points:"16 18.112 9.81111111 12 16 5.87733333 14.0888889 4 6 12 14.0888889 20"}),"right"===a&&ek.default.createElement("polygon",{points:"8 18.112 14.18888889 12 8 5.87733333 9.91111111 4 18 12 9.91111111 20"}))}function aE(t){let{day:r,modifiers:a,...n}=t;return ek.default.createElement("td",{...n})}function aS(t){let{day:r,modifiers:a,...n}=t,i=ek.default.useRef(null);return ek.default.useEffect(()=>{a.focused&&i.current?.focus()},[a.focused]),ek.default.createElement("button",{ref:i,...n})}(p=y||(y={})).Root="root",p.Chevron="chevron",p.Day="day",p.DayButton="day_button",p.CaptionLabel="caption_label",p.Dropdowns="dropdowns",p.Dropdown="dropdown",p.DropdownRoot="dropdown_root",p.Footer="footer",p.MonthGrid="month_grid",p.MonthCaption="month_caption",p.MonthsDropdown="months_dropdown",p.Month="month",p.Months="months",p.Nav="nav",p.NextMonthButton="button_next",p.PreviousMonthButton="button_previous",p.Week="week",p.Weeks="weeks",p.Weekday="weekday",p.Weekdays="weekdays",p.WeekNumber="week_number",p.WeekNumberHeader="week_number_header",p.Years
1Dropdown="years_dropdown",(m=b||(b={})).disabled="disabled",m.hidden="hidden",m.outside="outside",m.focused="focused",m.today="today",(f=v||(v={})).range_end="range_end",f.range_middle="range_middle",f.range_start="range_start",f.selected="selected",(x=w||(w={})).weeks_before_enter="weeks_before_enter",x.weeks_before_exit="weeks_before_exit",x.weeks_after_enter="weeks_after_enter",x.weeks_after_exit="weeks_after_exit",x.caption_after_enter="caption_after_enter",x.caption_after_exit="caption_after_exit",x.caption_before_enter="caption_before_enter",x.caption_before_exit="caption_before_exit",t.s([],39684),t.i(39684),t.s(["CaptionLabel",0,aN],665),t.i(665),t.s(["Chevron",0,a_],95491),t.i(95491),t.s(["Day",0,aE],96975),t.i(96975),t.s(["DayButton",0,aS],38782),t.i(38782);let aC=(0,ek.createContext)(void 0);function aT(){let t=(0,ek.useContext)(aC);if(void 0===t)throw Error("useDayPicker() must be used within a custom component.");return t}function aA(t){let{options:r,className:a,...n}=t,{classNames:i,components:o,styles:s}=aT(),l=[i[y.Dropdown],a].join(" "),d=r?.find(({value:t})=>t===n.value);return ek.default.createElement("span",{"data-disabled":n.disabled,className:i[y.DropdownRoot],style:s?.[y.DropdownRoot]},ek.default.createElement(o.Select,{className:l,...n},r?.map(({value:t,label:r,disabled:a})=>ek.default.createElement(o.Option,{key:t,value:t,disabled:a},r))),ek.default.createElement("span",{className:i[y.CaptionLabel],style:s?.[y.CaptionLabel],"aria-hidden":!0},d?.label,ek.default.createElement(o.Chevron,{orientation:"down",size:18,className:i[y.Chevron],style:s?.[y.Chevron]})))}function aI(t){return ek.default.createElement("div",{...t})}function aM(t){return ek.default.createElement("div",{...t})}function aP(t){let{calendarMonth:r,displayIndex:a,...n}=t;return ek.default.createElement("div",{...n},t.children)}function aO(t){let{calendarMonth:r,displayIndex:a,...n}=t;return ek.default.createElement("div",{...n})}function aD(t){return ek.default.createElement("table",{...t})}function aR(t){return ek.default.createElement("div",{...t})}function a$(t){let{components:r}=aT();return ek.default.createElement(r.Dropdown,{...t})}function az(t){let{onPreviousClick:r,onNextClick:a,previousMonth:n,nextMonth:i,...o}=t,{components:s,classNames:l,styles:d,labels:{labelPrevious:c,labelNext:u}}=aT(),h=(0,ek.useCallback)(t=>{i&&a?.(t)},[i,a]),p=(0,ek.useCallback)(t=>{n&&r?.(t)},[n,r]);return ek.default.createElement("nav",{...o},ek.default.createElement(s.PreviousMonthButton,{type:"button",className:l[y.PreviousMonthButton],style:d?.[y.PreviousMonthButton],tabIndex:n?void 0:-1,"aria-disabled":!n||void 0,"aria-label":c(n),onClick:p},ek.default.createElement(s.Chevron,{disabled:!n||void 0,className:l[y.Chevron],style:d?.[y.Chevron],orientation:"left"})),ek.default.createElement(s.NextMonthButton,{type:"button",className:l[y.NextMonthButton],style:d?.[y.NextMonthButton],tabIndex:i?void 0:-1,"aria-disabled":!i||void 0,"aria-label":u(i),onClick:h},ek.default.createElement(s.Chevron,{disabled:!i||void 0,orientation:"right",className:l[y.Chevron],style:d?.[y.Chevron]})))}function aL(t){return ek.default.createElement("button",{...t})}function aW(t){return ek.default.createElement("option",{...t})}function aU(t){return ek.default.createElement("button",{...t})}function aB(t){let{rootRef:r,...a}=t;return ek.default.createElement("div",{...a,ref:r})}function aF(t){return ek.default.createElement("select",{...t})}function aY(t){let{week:r,...a}=t;return ek.default.createElement("tr",{...a})}function aV(t){return ek.default.createElement("th",{...t})}function aq(t){return ek.default.createElement("thead",{"aria-hidden":!0},ek.default.createElement("tr",{...t}))}function aH(t){let{week:r,...a}=t;return ek.default.createElement("th",{...a})}function aZ(t){return ek.default.createElement("th",{...t})}function aK(t){return ek.default.createElement("tbody",{...t})}function aG(t){let{components:r}=aT();return ek.default.createElement(r.Dropdown,{...t})}t.s(["Dropdown",0,aA],75720),t.i(75720),t.s(["DropdownNav",0,aI],3493),t.i(3493),t.s(["Footer",0,aM],71972),t.i(71972),t.s(["Month",0,aP],5523),t.i(5523),t.s(["MonthCaption",0,aO],40750),t.i(40750),t.s(["MonthGrid",0,aD],11449),t.i(11449),t.s(["Months",0,aR],69062),t.i(69062),t.s(["MonthsDropdown",0,a$],40081),t.i(40081),t.s(["Nav",0,az],50945),t.i(50945),t.s(["NextMonthButton",0,aL],29527),t.i(29527),t.s(["Option",0,aW],21829),t.i(21829),t.s(["PreviousMonthButton",0,aU],40780),t.i(40780),t.s(["Root",0,aB],59084),t.i(59084),t.s(["Select",0,aF],77622),t.i(77622),t.s(["Week",0,aY],13429),t.i(13429),t.s(["Weekday",0,aV],20085),t.i(20085),t.s(["Weekdays",0,aq],65535),t.i(65535),t.s(["WeekNumber",0,aH],94704),t.i(94704),t.s(["WeekNumberHeader",0,aZ],20380),t.i(20380),t.s(["Weeks",0,aK],19917),t.i(19917),t.s(["YearsDropdown",0,aG],98430),t.i(98430),t.s(["CaptionLabel",0,aN,"Chevron",0,a_,"Day",0,aE,"DayButton",0,aS,"Dropdown",0,aA,"DropdownNav",0,aI,"Footer",0,aM,"Month",0,aP,"MonthCaption",0,aO,"MonthGrid",0,aD,"Months",0,aR,"MonthsDropdown",0,a$,"Nav",0,az,"NextMonthButton",0,aL,"Option",0,aW,"PreviousMonthButton",0,aU,"Root",0,aB,"
1Select",0,aF,"Week",0,aY,"WeekNumber",0,aH,"WeekNumberHeader",0,aZ,"Weekday",0,aV,"Weekdays",0,aq,"Weeks",0,aK,"YearsDropdown",0,aG],76807);var aJ=t.i(76807);function aX(){let t={};for(let r in y)t[y[r]]=`rdp-${y[r]}`;for(let r in b)t[b[r]]=`rdp-${b[r]}`;for(let r in v)t[v[r]]=`rdp-${v[r]}`;for(let r in w)t[w[r]]=`rdp-${w[r]}`;return t}function aQ(t,r,a){return(a??new am(r)).formatMonthYear(t)}function a0(t,r,a){return(a??new am(r)).format(t,"d")}function a1(t,r=af){return r.format(t,"LLLL")}function a2(t,r,a){return(a??new am(r)).format(t,"cccccc")}function a5(t,r=af){return t<10?r.formatNumber(`0${t.toLocaleString()}`):r.formatNumber(`${t.toLocaleString()}`)}function a4(){return""}function a3(t,r=af){return r.format(t,"yyyy")}t.s([],52945),t.i(52945),t.s(["formatCaption",0,aQ],76903),t.i(76903),t.s(["formatDay",0,a0],60035),t.i(60035),t.s(["formatMonthDropdown",0,a1],17500),t.i(17500),t.s(["formatWeekdayName",0,a2],30193),t.i(30193),t.s(["formatWeekNumber",0,a5],46387),t.i(46387),t.s(["formatWeekNumberHeader",0,a4],16920),t.i(16920),t.s(["formatYearDropdown",0,a3],40530),t.i(40530),t.s(["formatCaption",0,aQ,"formatDay",0,a0,"formatMonthDropdown",0,a1,"formatWeekNumber",0,a5,"formatWeekNumberHeader",0,a4,"formatWeekdayName",0,a2,"formatYearDropdown",0,a3],60702);var a6=t.i(60702);function a8(t,r,a,n){let i=(n??new am(a)).format(t,"PPPP");return r.today&&(i=`Today, ${i}`),r.selected&&(i=`${i}, selected`),i}function a9(t,r,a){return(a??new am(r)).formatMonthYear(t)}function a7(t,r,a,n){let i=(n??new am(a)).format(t,"PPPP");return r?.today&&(i=`Today, ${i}`),i}function ne(t){return"Choose the Month"}function nt(){return""}function nr(t,r){return"Go to the Next Month"}function na(t){return"Go to the Previous Month"}function nn(t,r,a){return(a??new am(r)).format(t,"cccc")}function ni(t,r){return`Week ${t}`}function no(t){return"Week Number"}function ns(t){return"Choose the Year"}t.s([],65837),t.i(65837),t.s(["labelDayButton",0,a8],92794),t.i(92794),t.s(["labelGrid",0,a9],41605),t.i(41605),t.s(["labelGridcell",0,a7],69867),t.i(69867),t.s(["labelMonthDropdown",0,ne],65185),t.i(65185),t.s(["labelNav",0,nt],16489),t.i(16489),t.s(["labelNext",0,nr],72989),t.i(72989),t.s(["labelPrevious",0,na],68538),t.i(68538),t.s(["labelWeekday",0,nn],15648),t.i(15648),t.s(["labelWeekNumber",0,ni],66109),t.i(66109),t.s(["labelWeekNumberHeader",0,no],51284),t.i(51284),t.s(["labelYearDropdown",0,ns],66473),t.i(66473),t.s(["labelDayButton",0,a8,"labelGrid",0,a9,"labelGridcell",0,a7,"labelMonthDropdown",0,ne,"labelNav",0,nt,"labelNext",0,nr,"labelPrevious",0,na,"labelWeekNumber",0,ni,"labelWeekNumberHeader",0,no,"labelWeekday",0,nn,"labelYearDropdown",0,ns],72240);var nl=t.i(72240);let nd=(t,r,a)=>r||(a?"function"==typeof a?a:(...t)=>a:t),nc=t=>t instanceof HTMLElement?t:null,nu=t=>[...t.querySelectorAll("[data-animated-month]")??[]],nh=t=>nc(t.querySelector("[data-animated-caption]")),np=t=>nc(t.querySelector("[data-animated-weeks]"));function nm(t,r,a,n){let{month:i,defaultMonth:o,today:s=n.today(),numberOfMonths:l=1}=t,d=i||o||s,{differenceInCalendarMonths:c,addMonths:u,startOfMonth:h}=n;return a&&c(a,d)<l-1&&(d=u(a,-1*(l-1))),r&&0>c(d,r)&&(d=r),h(d)}class nf{constructor(t,r,a=af){this.date=t,this.displayMonth=r,this.outside=!!(r&&!a.isSameMonth(t,r)),this.dateLib=a,this.isoDate=a.format(t,"yyyy-MM-dd"),this.displayMonthId=a.format(r,"yyyy-MM"),this.dateMonthId=a.format(t,"yyyy-MM")}isEqualTo(t){return this.dateLib.isSameDay(t.date,this.date)&&this.dateLib.isSameMonth(t.displayMonth,this.displayMonth)}}class nx{constructor(t,r){this.date=t,this.weeks=r}}class ng{constructor(t,r){this.days=r,this.weekNumber=t}}function ny(t,r){let[a,n]=(0,ek.useState)(t);return[void 0===r?a:r,n]}function nb(t){return!t[b.disabled]&&!t[b.hidden]&&!t[b.outside]}function nv(t,r,a=af){return ax(t,r.from,!1,a)||ax(t,r.to,!1,a)||ax(r,t.from,!1,a)||ax(r,t.to,!1,a)}function nw(t,r){return t instanceof rT&&t.timeZone===r?t:new rT(t,r)}function nk(t,r,a){if(!a)return nw(t,r);let n=nw(t,r);return new Date(new rT(n.getFullYear(),n.getMonth(),n.getDate(),12,0,0,r).getTime())}function nj(t,r,a){return"boolean"==typeof t||"function"==typeof t?t:t instanceof Date?nk(t,r,a):Array.isArray(t)?t.map(t=>t instanceof Date?nk(t,r,a):t):ay(t)?{...t,from:t.from?nw(t.from,r):t.from,to:t.to?nw(t.to,r):t.to}:ag(t)?{before:nk(t.before,r,a),after:nk(t.after,r,a)}:ab(t)?{after:nk(t.after,r,a)}:av(t)?{before:nk(t.before,r,a)}:t}function nN(t,r,a){return t?Array.isArray(t)?t.map(t=>nj(t,r,a)):nj(t,r,a):t}function n_(t){var r;let a,n=t,i=n.timeZone;if(i&&((n={...t,timeZone:i}).today&&(n.today=nw(n.today,i)),n.month&&(n.month=nw(n.month,i)),n.defaultMonth&&(n.defaultMonth=nw(n.defaultMonth,i)),n.startMonth&&(n.startMonth=nw(n.startMonth,i)),n.endMonth&&(n.endMonth=nw(n.endMonth,i)),"single"===n.mode&&n.selected?n.selected=nw(n.selected,i):"multiple"===n.mode&&n.selected?n.selected=n.selected?.map(t=>nw(t,i)):"range"===n.mode&&n.selected&&(n.selected={from:n.selected.from?nw(n.selected.from,i):n.selected.from,to:n.selected.to?nw(n.selected.to,i):n.selected.to}),void 0!==n.disabled&&(n.disabled=nN(n.disabled,i)),void 0!==n.hidden&&(n.hidden=nN(n.hidden,i)),n.modifiers)){let t={};
1Object.keys(n.modifiers).forEach(r=>{t[r]=nN(n.modifiers?.[r],i)}),n.modifiers=t}let{components:o,formatters:s,labels:l,dateLib:d,locale:c,classNames:u}=(0,ek.useMemo)(()=>{var t,r,a,i;let o,s={...ap,...n.locale},l=n.broadcastCalendar?1:n.weekStartsOn,d=n.noonSafe&&n.timeZone?function(t,r={}){let{weekStartsOn:a,locale:n}=r,i=a??n?.options?.weekStartsOn??0,o=r=>{let a="number"==typeof r||"string"==typeof r?new Date(r):r;return new rT(a.getFullYear(),a.getMonth(),a.getDate(),12,0,0,t)},s=t=>{let r=o(t);return new Date(r.getFullYear(),r.getMonth(),r.getDate(),0,0,0,0)};return{today:()=>o(rT.tz(t)),newDate:(r,a,n)=>new rT(r,a,n,12,0,0,t),startOfDay:t=>o(t),startOfWeek:(t,r)=>{let a=o(t),n=r?.weekStartsOn??i,s=(a.getDay()-n+7)%7;return a.setDate(a.getDate()-s),a},startOfISOWeek:t=>{let r=o(t),a=(r.getDay()-1+7)%7;return r.setDate(r.getDate()-a),r},startOfMonth:t=>{let r=o(t);return r.setDate(1),r},startOfYear:t=>{let r=o(t);return r.setMonth(0,1),r},endOfWeek:(t,r)=>{let a=o(t),n=(((r?.weekStartsOn??i)+6)%7-a.getDay()+7)%7;return a.setDate(a.getDate()+n),a},endOfISOWeek:t=>{let r=o(t),a=(7-r.getDay())%7;return r.setDate(r.getDate()+a),r},endOfMonth:t=>{let r=o(t);return r.setMonth(r.getMonth()+1,0),r},endOfYear:t=>{let r=o(t);return r.setMonth(11,31),r},eachMonthOfInterval:r=>{let a=o(r.start),n=o(r.end),i=[],s=new rT(a.getFullYear(),a.getMonth(),1,12,0,0,t),l=12*n.getFullYear()+n.getMonth();for(;12*s.getFullYear()+s.getMonth()<=l;)i.push(new rT(s,t)),s.setMonth(s.getMonth()+1,1);return i},addDays:(t,r)=>{let a=o(t);return a.setDate(a.getDate()+r),a},addWeeks:(t,r)=>{let a=o(t);return a.setDate(a.getDate()+7*r),a},addMonths:(t,r)=>{let a=o(t);return a.setMonth(a.getMonth()+r),a},addYears:(t,r)=>{let a=o(t);return a.setFullYear(a.getFullYear()+r),a},eachYearOfInterval:r=>{let a=o(r.start),n=o(r.end),i=[],s=new rT(a.getFullYear(),0,1,12,0,0,t);for(;s.getFullYear()<=n.getFullYear();)i.push(new rT(s,t)),s.setFullYear(s.getFullYear()+1,0,1);return i},getWeek:(t,r)=>r2(s(t),{weekStartsOn:r?.weekStartsOn??i,firstWeekContainsDate:r?.firstWeekContainsDate??n?.options?.firstWeekContainsDate??1}),getISOWeek:t=>r0(s(t)),differenceInCalendarDays:(t,r)=>rz(s(t),s(r)),differenceInCalendarMonths:(t,r)=>rL(s(t),s(r))}}(n.timeZone,{weekStartsOn:l,locale:s}):void 0,c=n.dateLib&&d?{...d,...n.dateLib}:n.dateLib??d,u=new am({locale:s,weekStartsOn:l,firstWeekContainsDate:n.firstWeekContainsDate,useAdditionalWeekYearTokens:n.useAdditionalWeekYearTokens,useAdditionalDayOfYearTokens:n.useAdditionalDayOfYearTokens,timeZone:n.timeZone,numerals:n.numerals},c);return{dateLib:u,components:(t=n.components,{...aJ,...t}),formatters:(r=n.formatters,{...a6,...r}),labels:(a=n.labels,i=u.options,o=i.locale?.labels??{},{...nl,...a??{},labelDayButton:nd(nl.labelDayButton,a?.labelDayButton,o.labelDayButton),labelMonthDropdown:nd(nl.labelMonthDropdown,a?.labelMonthDropdown,o.labelMonthDropdown),labelNext:nd(nl.labelNext,a?.labelNext,o.labelNext),labelPrevious:nd(nl.labelPrevious,a?.labelPrevious,o.labelPrevious),labelWeekNumber:nd(nl.labelWeekNumber,a?.labelWeekNumber,o.labelWeekNumber),labelYearDropdown:nd(nl.labelYearDropdown,a?.labelYearDropdown,o.labelYearDropdown),labelGrid:nd(nl.labelGrid,a?.labelGrid,o.labelGrid),labelGridcell:nd(nl.labelGridcell,a?.labelGridcell,o.labelGridcell),labelNav:nd(nl.labelNav,a?.labelNav,o.labelNav),labelWeekNumberHeader:nd(nl.labelWeekNumberHeader,a?.labelWeekNumberHeader,o.labelWeekNumberHeader),labelWeekday:nd(nl.labelWeekday,a?.labelWeekday,o.labelWeekday)}),locale:s,classNames:{...aX(),...n.classNames}}},[n.locale,n.broadcastCalendar,n.weekStartsOn,n.firstWeekContainsDate,n.useAdditionalWeekYearTokens,n.useAdditionalDayOfYearTokens,n.timeZone,n.numerals,n.dateLib,n.noonSafe,n.components,n.formatters,n.labels,n.classNames]);n.today||(n={...n,today:d.today()});let{captionLayout:h,mode:p,navLayout:m,numberOfMonths:f=1,onDayBlur:x,onDayCl
1ick:g,onDayFocus:j,onDayKeyDown:N,onDayMouseEnter:_,onDayMouseLeave:E,onNextClick:S,onPrevClick:C,showWeekNumber:T,styles:A}=n,{formatCaption:I,formatDay:M,formatMonthDropdown:P,formatWeekNumber:O,formatWeekNumberHeader:D,formatWeekdayName:R,formatYearDropdown:$}=s,z=function(t,r){let[a,n]=function(t,r){let{startMonth:a,endMonth:n}=t,{startOfYear:i,startOfDay:o,startOfMonth:s,endOfMonth:l,addYears:d,endOfYear:c,today:u}=r,h="dropdown"===t.captionLayout||"dropdown-years"===t.captionLayout;return a?a=s(a):!a&&h&&(a=i(d(t.today??u(),-100))),n?n=l(n):!n&&h&&(n=c(t.today??u())),[a?o(a):a,n?o(n):n]}(t,r),{startOfMonth:i,endOfMonth:o}=r,s=nm(t,a,n,r),[l,d]=ny(s,t.month?s:void 0);(0,ek.useEffect)(()=>{d(nm(t,a,n,r))},[t.timeZone]);let{months:c,weeks:u,days:h,previousMonth:p,nextMonth:m}=(0,ek.useMemo)(()=>{let i,s=function(t,r,a,n){let{numberOfMonths:i=1}=a,o=[];for(let a=0;a<i;a++){let i=n.addMonths(t,a);if(r&&i>r)break;o.push(i)}return o}(l,n,{numberOfMonths:t.numberOfMonths},r),d=function(t,r,a,n){let i=t[0],o=t[t.length-1],{ISOWeek:s,fixedWeeks:l,broadcastCalendar:d}=a??{},{addDays:c,differenceInCalendarDays:u,differenceInCalendarMonths:h,endOfBroadcastWeek:p,endOfISOWeek:m,endOfMonth:f,endOfWeek:x,isAfter:g,startOfBroadcastWeek:y,startOfISOWeek:b,startOfWeek:v}=n,w=d?y(i,n):s?b(i):v(i),k=d?p(o):s?m(f(o)):x(f(o)),j=r&&(d?p(r):s?m(r):x(r)),N=u(j&&g(k,j)?j:k,w),_=h(o,i)+1,E=[];for(let t=0;t<=N;t++){let r=c(w,t);E.push(r)}let S=(d?35:42)*_;if(l&&E.length<S){let t=S-E.length;for(let r=0;r<t;r++){let t=c(E[E.length-1],1);E.push(t)}}return E}(s,t.endMonth?o(t.endMonth):void 0,{ISOWeek:t.ISOWeek,fixedWeeks:t.fixedWeeks,broadcastCalendar:t.broadcastCalendar},r),c=function(t,r,a,n){let{addDays:i,endOfBroadcastWeek:o,endOfISOWeek:s,endOfMonth:l,endOfWeek:d,getISOWeek:c,getWeek:u,startOfBroadcastWeek:h,startOfISOWeek:p,startOfWeek:m}=n,f=t.reduce((t,f)=>{let x=a.broadcastCalendar?h(f,n):a.ISOWeek?p(f):m(f),g=a.broadcastCalendar?o(f):a.ISOWeek?s(l(f)):d(l(f)),y=r.filter(t=>t>=x&&t<=g),b=a.broadcastCalendar?35:42;if(a.fixedWeeks&&y.length<b){let t=r.filter(t=>{let r=b-y.length;return t>g&&t<=i(g,r)});y.push(...t)}let v=y.reduce((t,r)=>{let i=a.ISOWeek?c(r):u(r),o=t.find(t=>t.weekNumber===i),s=new nf(r,f,n);return o?o.days.push(s):t.push(new ng(i,[s])),t},[]),w=new nx(f,v);return t.push(w),t},[]);return a.reverseMonths?f.reverse():f}(s,d,{broadcastCalendar:t.broadcastCalendar,fixedWeeks:t.fixedWeeks,ISOWeek:t.ISOWeek,reverseMonths:t.reverseMonths},r),u=c.reduce((t,r)=>t.concat(r.weeks.slice()),[]),h=(i=[],c.reduce((t,r)=>{let a=r.weeks.reduce((t,r)=>t.concat(r.days.slice()),i.slice());return t.concat(a.slice())},i.slice()));return{months:c,weeks:u,days:h,previousMonth:function(t,r,a,n){if(a.disableNavigation)return;let{pagedNavigation:i,numberOfMonths:o}=a,{startOfMonth:s,addMonths:l,differenceInCalendarMonths:d}=n,c=s(t);if(!r||!(0>=d(c,r)))return l(c,-(i?o??1:1))}(l,a,t,r),nextMonth:function(t,r,a,n){if(a.disableNavigation)return;let{pagedNavigation:i,numberOfMonths:o=1}=a,{startOfMonth:s,addMonths:l,differenceInCalendarMonths:d}=n,c=s(t);if(!r||!(d(r,t)<o))return l(c,i?o:1)}(l,n,t,r)}},[r,l.getTime(),n?.getTime(),a?.getTime(),t.disableNavigation,t.broadcastCalendar,t.endMonth?.getTime(),t.fixedWeeks,t.ISOWeek,t.numberOfMonths,t.pagedNavigation,t.reverseMonths]),{disableNavigation:f,onMonthChange:x}=t,g=t=>{if(f)return;let r=i(t);a&&r<i(a)&&(r=i(a)),n&&r>i(n)&&(r=i(n)),d(r),x?.(r)};return{months:c,weeks:u,days:h,navStart:a,navEnd:n,previousMonth:p,nextMonth:m,goToMonth:g,goToDay:t=>{u.some(r=>r.days.some(r=>r.isEqualTo(t)))||g(t.date)}}}(n,d),{days:L,months:W,navStart:U,navEnd:B,previousMonth:F,nextMonth:Y,goToMonth:V}=z,q=function(t,r,a,n,i){let{disabled:o,hidden:s,modifiers:l,showOutsideDays:d,broadcastCalendar:c,today:u=i.today()}=r,{isSameDay:h,isSameMonth:p,startOfMonth:m,isBefore:f,endOfMonth:x,isAfter:g}=i,y=a&&m(a),v=n&&x(n),w={[b.focused]:[],[b.outside]:[],[b.disabled]:[],[b.hidden]:[],[b.today]:[]},k={};for(let r of t){let{date:t,displayMonth:a}=r,n=!!(a&&!p(t,a)),m=!!(y&&f(t,y)),x=!!(v&&g(t,v)),b=!!(o&&aj(t,o,i)),j=!!(s&&aj(t,s,i))||m||x||!c&&!
1d&&n||c&&!1===d&&n,N=h(t,u);n&&w.outside.push(r),b&&w.disabled.push(r),j&&w.hidden.push(r),N&&w.today.push(r),l&&Object.keys(l).forEach(a=>{let n=l?.[a];n&&aj(t,n,i)&&(k[a]?k[a].push(r):k[a]=[r])})}return t=>{let r={[b.focused]:!1,[b.disabled]:!1,[b.hidden]:!1,[b.outside]:!1,[b.today]:!1},a={};for(let a in w){let n=w[a];r[a]=n.some(r=>r===t)}for(let r in k)a[r]=k[r].some(r=>r===t);return{...r,...a}}}(L,n,U,B,d),{isSelected:H,select:Z,selected:K}=function(t,r){let a=function(t,r){let{selected:a,required:n,onSelect:i}=t,[o,s]=ny(a,i?a:void 0),l=i?a:o,{isSameDay:d}=r;return{selected:l,select:(t,r,a)=>{let o=t;return!n&&l&&l&&d(t,l)&&(o=void 0),i||s(o),i?.(o,t,r,a),o},isSelected:t=>!!l&&d(l,t)}}(t,r),n=function(t,r){let{selected:a,required:n,onSelect:i}=t,[o,s]=ny(a,i?a:void 0),l=i?a:o,{isSameDay:d}=r,c=t=>l?.some(r=>d(r,t))??!1,{min:u,max:h}=t;return{selected:l,select:(t,r,a)=>{let o=[...l??[]];if(c(t)){if(l?.length===u||n&&l?.length===1)return;o=l?.filter(r=>!d(r,t))}else o=l?.length===h?[t]:[...o,t];return i||s(o),i?.(o,t,r,a),o},isSelected:c}}(t,r),i=function(t,r){let{disabled:a,excludeDisabled:n,resetOnSelect:i,selected:o,required:s,onSelect:l}=t,[d,c]=ny(o,l?o:void 0),u=l?o:d;return{selected:u,select:(o,d,h)=>{let p,{min:m,max:f}=t;if(o){let t=u?.from,a=u?.to,n=!!t&&!!a&&r.isSameDay(t,a)&&r.isSameDay(o,t);p=i&&(t&&a||!u?.from)?!s&&n?void 0:{from:o,to:void 0}:function(t,r,a=0,n=0,i=!1,o=af){let s,{from:l,to:d}=r||{},{isSameDay:c,isAfter:u,isBefore:h}=o;if(l||d){if(l&&!d)s=c(l,t)?0===a?{from:l,to:t}:i?{from:l,to:void 0}:void 0:h(t,l)?{from:t,to:l}:{from:l,to:t};else if(l&&d)if(c(l,t)&&c(d,t))s=i?{from:l,to:d}:void 0;else if(c(l,t))s={from:l,to:a>0?void 0:t};else if(c(d,t))s={from:t,to:a>0?void 0:t};else if(h(t,l))s={from:t,to:d};else if(u(t,l))s={from:l,to:t};else if(u(t,d))s={from:l,to:t};else throw Error("Invalid range")}else s={from:t,to:a>0?void 0:t};if(s?.from&&s?.to){let r=o.differenceInCalendarDays(s.to,s.from);n>0&&r>n?s={from:t,to:void 0}:a>1&&r<a&&(s={from:t,to:void 0})}return s}(o,u,m,f,s,r)}return n&&a&&p?.from&&p.to&&function(t,r,a=af){let n=Array.isArray(r)?r:[r];if(n.filter(t=>"function"!=typeof t).some(r=>"boolean"==typeof r?r:a.isDate(r)?ax(t,r,!1,a):ak(r,a)?r.some(r=>ax(t,r,!1,a)):ay(r)?!!r.from&&!!r.to&&nv(t,{from:r.from,to:r.to},a):aw(r)?function(t,r,a=af){let n=Array.isArray(r)?r:[r],i=t.from,o=Math.min(a.differenceInCalendarDays(t.to,t.from),6);for(let t=0;t<=o;t++){if(n.includes(i.getDay()))return!0;i=a.addDays(i,1)}return!1}(t,r.dayOfWeek,a):ag(r)?a.isAfter(r.before,r.after)?nv(t,{from:a.addDays(r.after,1),to:a.addDays(r.before,-1)},a):aj(t.from,r,a)||aj(t.to,r,a):!!(ab(r)||av(r))&&(aj(t.from,r,a)||aj(t.to,r,a))))return!0;let i=n.filter(t=>"function"==typeof t);if(i.length){let r=t.from,n=a.differenceInCalendarDays(t.to,t.from);for(let t=0;t<=n;t++){if(i.some(t=>t(r)))return!0;r=a.addDays(r,1)}}return!1}({from:p.from,to:p.to},a,r)&&(p.from=o,p.to=void 0),l||c(p),l?.(p,o,d,h),p},isSelected:t=>u&&ax(u,t,!1,r)}}(t,r);switch(t.mode){case"single":return a;case"multiple":return n;case"range":return i;default:return}}(n,d)??{},{blur:G,focused:J,isFocusTarget:X,moveFocus:Q,setFocused:ee}=function(t,r,a,n,i){let{autoFocus:o}=t,[s,l]=(0,ek.useState)(),d=function(t,r,a,n){let i,o=-1;for(let s of t){let t=r(s);nb(t)&&(t[b.focused]&&o<k.FocusedModifier?(i=s,o=k.FocusedModifier):n?.isEqualTo(s)&&o<k.LastFocused?(i=s,o=k.LastFocused):a(s.date)&&o<k.Selected?(i=s,o=k.Selected):t[b.today]&&o<k.Today&&(i=s,o=k.Today))}return i||(i=t.find(t=>nb(r(t)))),i}(r.days,a,n||(()=>!1),s),[c,u]=(0,ek.useState)(o?d:void 0);return{isFocusTarget:t=>!!d?.isEqualTo(t),setFocused:u,focused:c,blur:()=>{l(c),u(void 0)},moveFocus:(a,n)=>{if(!c)return;let o=function t(r,a,n,i,o,s,l,d=0){if(d>365)return;let c=function(t,r,a,n,i,o,s){let{ISOWeek:l,broadcastCalendar:d}=o,{addDays:c,addMonths:u,addWeeks:h,addYears:p,endOfBroadcastWeek:m,endOfISOWeek:f,endOfWeek:x,max:g,min:y,startOfBroadcastWeek:b,startOfISOWeek:v,startOfWeek:w}=s,k=({day:c,week:h,month:u,year:p,startOfWeek:t=>d?b(t,s):l?v(t):w(t),endOfWeek:t=>d?m(t):l?f(t):x(t)})[t](a,"after"===r?1:-1);return"before"===r&&n?k=g([n,k]):"after"===r&&i&&(k=y([i,k])),k}(r,a,n.date,i,o,s,l),u=!!(s.disabled&&aj(c,s.disabled,l)),h=!!(s.hidden&&aj(c,s.hidden,l)),p=new nf(c,c,l);return u||h?t(r,a,p,i,o,s,l,d+1):p}(a,n,c,r.navStart,r.navEnd,t,i);if(o){if(t.disableNavigation&&!r.days.some(t=>t.isEqualTo(o)))return;r.goToDay(o),u(o)}}}}(n,z,q,H??(()=>!1),d),{labelDayButton:et,labelGridcell:er,labelGrid:ea,labelMonthDropdown:en,labelNav:ei,labelPrevious:eo,labelNext:es,labelWeekday:el,labelWeekNumber:ed,labelWeekNumberHeader:ec,labelYearDropdown:eu}=l,eh=(0,ek.useMemo)(()=>(function(t,r,a,n){let i=n??t.today(),o=a?t.startOfBroadcastWeek(i,t):r?t.startOfISOWeek(i):t.startOfWeek(i),s=[];for(let r=0;r<7;r++){let a=t.addDays(o,r);s.push(a)}return s})(d,n.ISOWeek,n.broadcastCalendar,n.today),[d,n.ISOWeek,n.broadcastCalendar,n.today]),ep=void 0!==p||void 0!==g,em=(0,ek.useCallback)(()=>{F&&(V(F),C?.(F))},[F,V,C]),ef=(0,ek.useCallback)(()=>{Y&&(V(Y),S?.(Y))},[V,Y,S]),ex=(0,ek.useCallback)((t,r)=>a=>{a.preventDefault(),a.stopPropagation(),ee(t),r.disabled||(Z?.(t.date,r,a),g?.(t.date,r,a))},[Z,g,ee]),eg=(0,ek.useCallback)((t,r)=>a=>{ee(t),j?.(t.date,r,a)},[j,ee]),ey=(0,ek.useCallback)((t,r)=>a=>{G(),x?.(t.date,r,a)},[G,x]),eb=(0,ek.useCallback)((t,r)=>a=>{let i={ArrowLeft:[a.shiftKey?"month":"day","rtl"===n.dir?"after":"before"],ArrowRight:[a.shiftKey?"month":"day","rtl"===n.dir?"before":"after"],ArrowDown:[a.shiftKey?"year":"week","after"],ArrowUp:[a.shiftKey?"year":"week","before"],PageUp:[a.shiftKey?"year":"month","before"],PageDown:[a.shiftKey?"year":"month","after"],Home:["startOfWeek","before"],End:["endOfWeek","after"]};if(i[a.key]){a.preventDefault(),a.stopPropagation();let[t,r]=i[a.key];Q(t,r)}N?.(t.date,r,a)},[Q,N,n.dir]),ev=(0,ek.useCallback)((t,r)=>a=>{_?.(t.date,r,a)},[_]),ew=(0,ek.useCallback)((t,r)=>a=>{E?.(t.date,r,a)},[E]),ej=(0,ek.useCallback)((t,r)=>a=>{let n=Number(a.target.value),i=d.setMonth(d.startOfMonth(t),n);V(d.addMonths(i,-r))},[d,V]),eN=(0,ek.useCallback)((t,r)=>a=>{let n=Number(a.target.value),i=d.setYear(d.startOfMonth(t),n);V(d.addMonths(i,-r))},[d,V]),{className:e_,style:eE}=(0,ek.useMemo)(()=>
1({className:[u[y.Root],n.className].filter(Boolean).join(" "),style:{...A?.[y.Root],...n.style}}),[u,n.className,n.style,A]),eS=(a={"data-mode":(r=n).mode??void 0,"data-required":"required"in r?r.required:void 0,"data-multiple-months":r.numberOfMonths&&r.numberOfMonths>1||void 0,"data-week-numbers":r.showWeekNumber||void 0,"data-broadcast-calendar":r.broadcastCalendar||void 0,"data-nav-layout":r.navLayout||void 0},Object.entries(r).forEach(([t,r])=>{t.startsWith("data-")&&(a[t]=r)}),a),eC=t=>{let r=A?.[y.Dropdown],a=A?.[t];if(r||a)return{...r,...a}},eT=(0,ek.useRef)(null);!function(t,r,{classNames:a,months:n,focused:i,dateLib:o}){let s=(0,ek.useRef)(null),l=(0,ek.useRef)(n),d=(0,ek.useRef)(!1);(0,ek.useLayoutEffect)(()=>{let c=l.current;if(l.current=n,!r||!t.current||!(t.current instanceof HTMLElement)||0===n.length||0===c.length||n.length!==c.length)return;let u=o.isSameMonth(n[0].date,c[0].date),h=o.isAfter(n[0].date,c[0].date),p=h?a[w.caption_after_enter]:a[w.caption_before_enter],m=h?a[w.weeks_after_enter]:a[w.weeks_before_enter],f=s.current,x=t.current.cloneNode(!0);if(x instanceof HTMLElement?(nu(x).forEach(t=>{if(!(t instanceof HTMLElement))return;let r=nc(t.querySelector("[data-animated-month]"));r&&t.contains(r)&&t.removeChild(r);let a=nh(t);a&&a.classList.remove(p);let n=np(t);n&&n.classList.remove(m)}),s.current=x):s.current=null,d.current||u||i)return;let g=f instanceof HTMLElement?nu(f):[],y=nu(t.current);if(y?.every(t=>t instanceof HTMLElement)&&g?.every(t=>t instanceof HTMLElement)){d.current=!0;let r=[];t.current.style.isolation="isolate";let n=nc(t.current.querySelector("[data-animated-nav]"));n&&(n.style.zIndex="1"),y.forEach((i,o)=>{let s=g[o];if(!s)return;i.style.position="relative",i.style.overflow="hidden";let l=nh(i);l&&l.classList.add(p);let c=np(i);c&&c.classList.add(m);let u=()=>{d.current=!1,t.current&&(t.current.style.isolation=""),n&&(n.style.zIndex=""),l&&l.classList.remove(p),c&&c.classList.remove(m),i.style.position="",i.style.overflow="",i.contains(s)&&i.removeChild(s)};r.push(u),s.style.pointerEvents="none",s.style.position="absolute",s.style.overflow="hidden",s.setAttribute("aria-hidden","true");let f=nc(s.querySelector("[data-animated-weekdays]"));f&&(f.style.opacity="0");let x=nh(s);x&&(x.classList.add(h?a[w.caption_before_exit]:a[w.caption_after_exit]),x.addEventListener("animationend",u));let y=np(s);y&&y.classList.add(h?a[w.weeks_before_exit]:a[w.weeks_after_exit]),i.insertBefore(s,i.firstChild)})}})}(eT,!!n.animate,{classNames:u,months:W,focused:J,dateLib:d});let eA={dayPickerProps:n,selected:K,select:Z,isSelected:H,months:W,nextMonth:Y,previousMonth:F,goToMonth:V,getModifiers:q,components:o,classNames:u,styles:A,labels:l,formatters:s};return ek.default.createElement(aC.Provider,{value:eA},ek.default.createElement(o.Root,{rootRef:n.animate?eT:void 0,className:e_,style:eE,dir:n.dir,id:n.id,lang:n.lang??c.code,nonce:n.nonce,title:n.title,role:n.role,"aria-label":n["aria-label"],"aria-labelledby":n["aria-labelledby"],...eS},ek.default.createElement(o.Months,{className:u[y.Months],style:A?.[y.Months]},!n.hideNavigation&&!m&&ek.default.createElement(o.Nav,{"data-animated-nav":n.animate?"true":void 0,className:u[y.Nav],style:A?.[y.Nav],"aria-label":ei(),onPreviousClick:em,onNextClick:ef,previousMonth:F,nextMonth:Y}),W.map((t,r)=>{let a,i,l=n.reverseMonths?W.length-1-r:r;return ek.default.createElement(o.Month,{"data-animated-month":n.animate?"true":void 0,className:u[y.Month],style:A?.[y.Month],key:r,displayIndex:r,calendarMonth:t},"around"===m&&!n.hideNavigation&&0===r&&ek.default.createElement(o.PreviousMonthButton,{type:"button",className:u[y.PreviousMonthButton],style:A?.[y.PreviousMonthButton],tabIndex:F?void 0:-1,"aria-disabled":!F||void 0,"aria-label":eo(F),onClick:em,"data-animated-button":n.animate?"true":void 0},ek.default.createElement(o.Chevron,{disabled:!F||void 0,className:u[y.Chevron],style:A?.[y.Chevron],orientation:"rtl"===n.dir?"right":"left"})),ek.default.createElement(o.MonthCaption,{"data-animated-caption":n.animate?"true":void 0,className:u[y.MonthCaption],style:A?.[y.MonthCaption],calendarMonth:t,displayIndex:r},h?.startsWith("dropdown")?ek.default.createElement(o.DropdownNav,{className:u[y.Dropdowns],style:A?.[y.Dropdowns]},(a="dropdown"===h||"dropdown-months"===h?ek.default.createElement(o.MonthsDropdown,{key:"month",className:u[y.MonthsDropdown],"aria-label":en(),disabled:!!n.disableNavigation,onChange:ej(t.date,l),options:function(t,r,a,n,i){let{startOfMonth:o,startOfYear:s,endOfYear:l,eachMonthOfInterval:d,getMonth:c}=i;return d({start:s(t),end:l(t)}).map(t=>{let s=n.formatMonthDropdown(t,i);return{value:c(t),label:s,disabled:r&&t<o(r)||a&&t>o(a)||!1}})}(t.date,U,B,s,d),style:eC(y.MonthsDropdown),value:d.getMonth(t.date)}):ek.default.createElement("span",{key:"month"},P(t.date,d)),i="dropdown"===h||"dropdown-years"===h?ek.default.createElement(o.YearsDropdown,{key:"year",className:u[y.YearsDropdown],"aria-label":eu(d.options),disabled:!!n.disableNavigation,onChange:eN(t.date,l),options:function(t,r,a,n,i=!1){if(!t||!r)return;let{startOfYear:o,endOfYear:s,eachYearOfInterval:l,getYear:d}=n,c=l({start:o(t),end:s(r)});return i&&c.reverse(),c.map(t=>{let r=a.formatYearDropdown(t,n);return{value:d(t),label:r,disabled:!1}})}(U,B,s,d,!!n.reverseYears),style:eC(y.YearsDropdown),value:d.getYear(t.date)}):ek.default.createElement("span",{key:"year"},$(t.date,d)),"year-first"===d.getMonthYearOrder()?[i,a]:[a,i]),ek.default.createElement("span",{role:"status","aria-live":"polite",style:{border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap",wordWrap:"normal"}},I(t.date,d.options,d))):ek.default.createElement(o.CaptionLabel,{className:u[y.CaptionLabel],style:A?.[y.CaptionLabel],role:"status","aria-live":"polite"},I(t.date,d.options,d))),"around"===m&&!n.hideNavigation&&r===f-1&&ek.default.createElement(o.NextMonthButton,{type:"button",className:u[y.NextMonthButton],style:A?.[y.NextMonthButton],tabIndex:Y?void 0:-1,"aria-disabled":!Y||void 0,"aria-label":es(Y),onClick:ef,"data-animated-button":n.animate?"true":void 0},ek.default.createElement(o.Chevron,{disabled:!Y||void 0,className:u[y.Chevron],style:A?.[y.Chevron],orientation:"rtl"===n.dir?"left":"right"}
1)),r===f-1&&"after"===m&&!n.hideNavigation&&ek.default.createElement(o.Nav,{"data-animated-nav":n.animate?"true":void 0,className:u[y.Nav],style:A?.[y.Nav],"aria-label":ei(),onPreviousClick:em,onNextClick:ef,previousMonth:F,nextMonth:Y}),ek.default.createElement(o.MonthGrid,{role:"grid","aria-multiselectable":"multiple"===p||"range"===p,"aria-label":ea(t.date,d.options,d)||void 0,className:u[y.MonthGrid],style:A?.[y.MonthGrid]},!n.hideWeekdays&&ek.default.createElement(o.Weekdays,{"data-animated-weekdays":n.animate?"true":void 0,className:u[y.Weekdays],style:A?.[y.Weekdays]},T&&ek.default.createElement(o.WeekNumberHeader,{"aria-label":ec(d.options),className:u[y.WeekNumberHeader],style:A?.[y.WeekNumberHeader],scope:"col"},D()),eh.map(t=>ek.default.createElement(o.Weekday,{"aria-label":el(t,d.options,d),className:u[y.Weekday],key:String(t),style:A?.[y.Weekday],scope:"col"},R(t,d.options,d)))),ek.default.createElement(o.Weeks,{"data-animated-weeks":n.animate?"true":void 0,className:u[y.Weeks],style:A?.[y.Weeks]},t.weeks.map(t=>ek.default.createElement(o.Week,{className:u[y.Week],key:t.weekNumber,style:A?.[y.Week],week:t},T&&ek.default.createElement(o.WeekNumber,{week:t,style:A?.[y.WeekNumber],"aria-label":ed(t.weekNumber,{locale:c}),className:u[y.WeekNumber],scope:"row",role:"rowheader"},O(t.weekNumber,d)),t.days.map(t=>{let{date:r}=t,a=q(t);if(a[b.focused]=!a.hidden&&!!J?.isEqualTo(t),a[v.selected]=H?.(r)||a.selected,ay(K)){let{from:t,to:n}=K;a[v.range_start]=!!(t&&n&&d.isSameDay(r,t)),a[v.range_end]=!!(t&&n&&d.isSameDay(r,n)),a[v.range_middle]=ax(K,r,!0,d)}let i=function(t,r={},a={}){let n={...r?.[y.Day]};return Object.entries(t).filter(([,t])=>!0===t).forEach(([t])=>{n={...n,...a?.[t]}}),n}(a,A,n.modifiersStyles),s=function(t,r,a={}){return Object.entries(t).filter(([,t])=>!0===t).reduce((t,[n])=>(a[n]?t.push(a[n]):r[b[n]]?t.push(r[b[n]]):r[v[n]]&&t.push(r[v[n]]),t),[r[y.Day]])}(a,u,n.modifiersClassNames),l=ep||a.hidden?void 0:er(r,a,d.options,d);return ek.default.createElement(o.Day,{key:`${t.isoDate}_${t.displayMonthId}`,day:t,modifiers:a,className:s.join(" "),style:i,role:"gridcell","aria-selected":a.selected||void 0,"aria-label":l,"data-day":t.isoDate,"data-month":t.outside?t.dateMonthId:void 0,"data-selected":a.selected||void 0,"data-disabled":a.disabled||void 0,"data-hidden":a.hidden||void 0,"data-outside":t.outside||void 0,"data-focused":a.focused||void 0,"data-today":a.today||void 0},!a.hidden&&ep?ek.default.createElement(o.DayButton,{className:u[y.DayButton],style:A?.[y.DayButton],type:"button",day:t,modifiers:a,disabled:!a.focused&&a.disabled||void 0,"aria-disabled":a.focused&&a.disabled||void 0,tabIndex:X(t)?0:-1,"aria-label":et(r,a,d.options,d),onClick:ex(t,a),onBlur:ey(t,a),onFocus:eg(t,a),onKeyDown:eb(t,a),onMouseEnter:ev(t,a),onMouseLeave:ew(t,a)},M(r,d.options,d)):!a.hidden&&M(t.date,d.options,d))}))))))})),n.footer&&ek.default.createElement(o.Footer,{className:u[y.Footer],style:A?.[y.Footer],role:"status","aria-live":"polite"},n.footer)))}function nE({value:t,onChange:r,options:a=[],disabled:n,"aria-label":i}){let[o,s]=ek.useState(!1),[l,d]=ek.useState(!1);return ek.useEffect(()=>{if(!o)return void d(!1);let t=window.setTimeout(()=>d(!0),120);return()=>window.clearTimeout(t)},[o]),(0,ey.jsxs)(rm.Select,{open:o,onOpenChange:s,value:String(t),disabled:n,onValueChange:t=>r?.({target:{value:t}}),children:[(0,ey.jsx)(rm.SelectTrigger,{size:"sm","aria-label":i,className:"border-mlh-plum-400/25 bg-mlh-bg/60 text-mlh-text gap-1 font-medium",children:(0,ey.jsx)(rm.SelectValue,{})}),(0,ey.jsx)(rm.SelectContent,{className:(0,rf.cn)("max-h-[288px] overscroll-contain",l&&"[&_[data-radix-select-viewport]]:scroll-smooth"),children:a.map(t=>(0,ey.jsx)(rm.SelectItem,{value:String(t.value),disabled:t.disabled,children:t.label},t.value))})]})}function nS({orientation:t,className:r}){let a="left"===t?rg.default:"right"===t?ry.default:rx.ChevronDownIcon;return(0,ey.jsx)(a,{className:(0,rf.cn)("size-4",r)})}function nC({className:t,day:r,modifiers:a,...n}){return(0,ey.jsx)("button",{...n,className:(0,rf.cn)("flex aspect-square h-full w-full cursor-pointer items-center justify-center rounded-lg text-[13.5px] leading-none transition outline-none","focus-visible:ring-mlh-plum/40 focus-visible:ring-2",a.selected?"bg-mlh-plum text-white shadow-[inset_0_1px_0_rgba(255,255,255,0.18)]":a.disabled?"text-mlh-faint/40 cursor-not-allowed":a.outside?"text-mlh-faint/55 hover:bg-mlh-plum/15 hover:text-mlh-text":"text-mlh-text hover:bg-mlh-plum/22",a.today&&!a.selected&&"text-mlh-plum-300 ring-mlh-plum-400/45 ring-1 ring-inset",t)})}function nT({className:t,classNames:r,showOutsideDays:a=!0,captionLayout:n="label",formatters:i,components:o,...s}){let l=aX();return(0,ey.jsx)(n_,{showOutsideDays:a,captionLayout:n,className:(0,rf.cn)("w-fit p-1",t),formatters:{formatMonthDropdown:t=>
1t.toLocaleString("en-US",{month:"short"}),formatWeekdayName:t=>t.toLocaleString("en-US",{weekday:"narrow"}),...i},classNames:{root:(0,rf.cn)("relative",l.root),months:(0,rf.cn)("flex flex-col gap-4 sm:flex-row",l.months),month:(0,rf.cn)("flex w-full flex-col gap-3",l.month),nav:(0,rf.cn)("pointer-events-none absolute inset-x-1 top-1 flex items-center justify-between",l.nav),button_previous:(0,rf.cn)("text-mlh-faint hover:text-mlh-plum-300 hover:border-mlh-plum-400/45 border-mlh-border/70 pointer-events-auto grid size-7 cursor-pointer place-items-center rounded-lg border transition disabled:pointer-events-none disabled:opacity-35",l.button_previous),button_next:(0,rf.cn)("text-mlh-faint hover:text-mlh-plum-300 hover:border-mlh-plum-400/45 border-mlh-border/70 pointer-events-auto grid size-7 cursor-pointer place-items-center rounded-lg border transition disabled:pointer-events-none disabled:opacity-35",l.button_next),month_caption:(0,rf.cn)("flex h-7 items-center justify-center px-9",l.month_caption),caption_label:(0,rf.cn)("text-mlh-text font-sans text-[15px] font-medium",l.caption_label),dropdowns:(0,rf.cn)("flex items-center gap-1.5",l.dropdowns),month_grid:(0,rf.cn)("w-full border-collapse",l.month_grid),weekdays:(0,rf.cn)("flex",l.weekdays),weekday:(0,rf.cn)("text-mlh-faint flex-1 pb-1 font-mono text-[9px] tracking-[0.16em] uppercase select-none",l.weekday),week:(0,rf.cn)("mt-1 flex w-full gap-1",l.week),day:(0,rf.cn)("relative min-w-0 flex-1 p-0 select-none",l.day),outside:(0,rf.cn)("",l.outside),hidden:(0,rf.cn)("invisible",l.hidden),...r},components:{Chevron:nS,DayButton:nC,Dropdown:nE,MonthsDropdown:nE,YearsDropdown:nE,...o},...s})}(g=k||(k={}))[g.Today=0]="Today",g[g.Selected=1]="Selected",g[g.LastFocused=2]="LastFocused",g[g.FocusedModifier=3]="FocusedModifier";var nA=t.i(3825),nI=t.i(3359),nM=t.i(14932),nP=t.i(82947),nO=t.i(52431),nD=t.i(1368),nR=t.i(57213),n$=t.i(39879),nz=t.i(68111),nL=t.i(92081),nW=t.i(16720),nU=t.i(73261),nB=t.i(1613),nF=t.i(65208),nY=t.i(79924),nV=Object.defineProperty,nq=(t,r)=>nV(t,"name",{value:r,configurable:!0}),nH="Popover",[nZ,nK]=(0,nM.createContextScope)(nH,[n$.createPopperScope]),nG=(0,n$.createPopperScope)(),[nJ,nX]=nZ(nH),nQ=nq(t=>{let{__scopePopover:r,children:a,open:n,defaultOpen:i,onOpenChange:o,modal:s=!1}=t,l=nG(r),d=ek.useRef(null),[c,u]=ek.useState(!1),[h,p]=(0,nB.useControllableState)({prop:n,defaultProp:i??!1,onChange:o,caller:nH});return(0,ey.jsx)(n$.Root,{...l,children:(0,ey.jsx)(nJ,{scope:r,contentId:(0,nR.useId)(),triggerRef:d,open:h,onOpenChange:p,onOpenToggle:ek.useCallback(()=>p(t=>!t),[p]),hasCustomAnchor:c,onCustomAnchorAdd:ek.useCallback(()=>u(!0),[]),onCustomAnchorRemove:ek.useCallback(()=>u(!1),[]),modal:s,children:a})})},"Popover"),n0=ek.forwardRef(nq(function(t,r){let{__scopePopover:a,...n}=t,i=nX("PopoverTrigger",a),o=nG(a),s=(0,nI.useComposedRefs)(r,i.triggerRef),l=(0,ey.jsx)(nW.Primitive.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":it(i.open),...n,ref:s,onClick:(0,nA.composeEventHandlers)(t.onClick,i.onOpenToggle)});return i.hasCustomAnchor?l:(0,ey.jsx)(n$.Anchor,{asChild:!0,...o,children:l})},"PopoverTrigger")),n1="PopoverPortal",[n2,n5]=nZ(n1,{forceMount:void 0}),n4=nq(t=>{let{__scopePopover:r,forceMount:a,children:n,container:i}=t,o=nX(n1,r);return(0,ey.jsx)(n2,{scope:r,forceMount:a,children:(0,ey.jsx)(nL.Presence,{present:a||o.open,children:(0,ey.jsx)(nz.Portal,{asChild:!0,container:i,children:n})})})},"PopoverPortal"),n3="PopoverContent",n6=ek.forwardRef(nq(function(t,r){let a=n5(n3,t.__scopePopover),{forceMount:n=a.forceMount,...i}=t,o=nX(n3,t.__scopePopover);return(0,ey.jsx)(nL.Presence,{present:n||o.open,children:o.modal?(0,ey.jsx)(n9,{...i,ref:r}):(0,ey.jsx)(n7,{...i,ref:r})})},"PopoverContent")),n8=(0,nU.createSlot)("PopoverContent.RemoveScroll"),n9=ek.forwardRef(nq(function(t,r){let a=nX(n3,t.__scopePopover),n=ek.useRef(null),i=(0,nI.useComposedRefs)(r,n),o=ek.useRef(!1);return ek.useEffect(()=>{let t=n.current;if(t)return(0,nF.hideOthers)(t)},[]),(0,ey.jsx)(nY.RemoveScroll,{as:n8,allowPinchZoom:!0,children:(0,ey.jsx)(ie,{...t,ref:i,trapFocus:a.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,nA.composeEventHandlers)(t.onCloseAutoFocus,t=>{t.preventDefault(),o.current||a.triggerRef.current?.focus()}),onPointerDownOutside:(0,nA.composeEventHandlers)(t.onPointerDownOutside,t=>{let r=t.detail.originalEvent,a=0===r.button&&!0===r.ctrlKey;o.current=2===r.button||a},{checkForDefaultPrevented:!1}),onFocusOutside:(0,nA.composeEventHandlers)(t.onFocusOutside,t=>t.preventDefault(),{checkForDefaultPrevented:!1})})})},"PopoverContentModal")),n7=ek.forwardRef(nq(function(t,r){let a=nX(n3,t.__scopePopover),n=ek.useRef(!1),i=ek.useRef(!1);return(0,ey.jsx)(ie,{...t,ref:r,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:r=>{t.onCloseAutoFocus?.(r),r.defaultPrevented||(n.current||a.triggerRef.current?.focus(),r.preventDefault()),n.current=!1,i.current=!1},onInteractOutside:r=>{t.onInteractOutside?.(r),r.defaultPrevented||(n.current=!0,"pointerdown"===r.detail.originalEvent.type&&(i.current=!0));let o=r.target;a.triggerRef.current?.contains(o)&&r.preventDefault(),"focusin"===r.detail.originalEvent.type&&i.current&&r.preventDefault()}})},"PopoverContentNonModal")),ie=ek.forwardRef(nq(function(t,r){let{__scopePopover:a,trapFocus:n,onOpenAutoFocus:i,onCloseAutoFocus:o,disableOutsidePointerEvents:s,onEscapeKeyDown:l,onPointerDownOutside:d,onFocusOutside:c,onInteractOutside:u,...h}=t,p=nX(n3,a),m=nG(a);return(0,nO.useFocusGuards)(),(0,ey.jsx)(nD.FocusScope,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:i,onUnmountAutoFocus:o,children:(0,ey.jsx)(nP.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:u,onEscapeKeyDown:l,onPointerDownOutside:d,onFocusOutside:c,onDismiss:()=>p.onOpenChange(!1),deferPointerDownOutside:!0,children:(0,ey.jsx)(n$.Content,{"data-state":it(p.open),role:"dialog",id:p.contentId,...m,...h,ref:r,style:{...h.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})},"PopoverContentImpl"));function it(t){return t?"open":"closed"}function ir({...t}){return(0,ey.jsx)(nQ,{"data-slot":"popover",...t})}function ia({...t}){return(0,ey.jsx)(n0,{"data-slot":"popover-trigger",...t})}function ii({className:t,align:r="start",sideOffset:a=8,...n}){return(0,ey.jsx)(n4,{children:(0,ey.jsx)(n6,{"data-slot":"popover-content",align:r,sideOffset:a,className:(0,rf.cn)("border-mlh-plum-400/28 bg-mlh-surface-hi text-mlh-text data-[state=open]:animate-mlh-rise z-[60] w-auto origin-(--radix-popover-content-transform-origin) rounded-2xl border p-3 shadow-[0_28px_70px_rgba(0,0,0,0.72)] outline-none",t),...n})})}nq(it,"getState");
1class io extends Error{verdict;constructor(t){super("guidance"===t?"This question needs your birth chart.":"Astropedia only answers questions about astrology."),this.verdict=t,this.name="AstropediaScopeError"}}var is=t.i(86772),il=t.i(72976);let id={"what does moon in 7th house mean for marriage and public life?":{lead:"The Moon in the seventh house puts your emotional centre on partnership and the public. You tend to need companionship to feel settled, you pick up on other people's moods quickly, and you do well in work that faces the crowd.",sections:[{h:"For marriage and relationships",bullets:[{term:"Engaged partner",text:"you are drawn to a caring, emotionally present partner, and the relationship matters a lot to your sense of stability."},{term:"Shared mood",text:"your state of mind rises and falls with your partner's, so a calm relationship steadies you and a tense one unsettles you."},{term:"Early pull",text:"the wish to partner often shows up early and stays a central life theme."}]},{h:"For public life and work",bullets:[{term:"Ease with people",text:"you read a room fast and connect quickly, which comes across as warmth."},{term:"People-facing work",text:"hospitality, healthcare, counselling, sales and performance suit you well."},{term:"Visibility",text:"the Moon signifies the public, so your reputation grows when you serve or care for others."}]},{h:"What to watch",bullets:[{term:"Over-dependence",text:"leaning too hard on a partner's approval can throw off your balance."},{term:"Validation",text:"needing the crowd's approval can pull you away from your own judgement."}]}],followup:"Want me to explain how the Moon's sign, or the planets aspecting it, change this?",followups:[{q:"How does the Moon's sign change a 7th house placement?",kind:"pedia"},{q:"What does the 7th house govern in Vedic astrology?",kind:"pedia"},{q:"Is my Moon in the 7th house?",kind:"chart"},{q:"What does my chart say about marriage timing?",kind:"chart"}],crosssell:{kind:"report",title:"Marriage",reportId:"marriage",blurb:"Your full marriage reading from your own chart: partner nature, compatibility and timing windows."}},"what is sade sati and what are the most effective remedies?":{lead:"Sade Sati is a seven and a half year period when Saturn transits the twelfth, first and second houses from your natal Moon sign. It moves through three phases of about two and a half years each, and it is about discipline and long-term growth rather than simple bad luck.",sections:[{h:"The three phases",bullets:[{term:"Rising phase",text:"Saturn in the twelfth from your Moon affects sleep, spending and energy."},{term:"Peak phase",text:"Saturn over your Moon tests the mind and emotions most directly."},{term:"Setting phase",text:"Saturn in the second touches family, speech and finances."}]},{h:"Most effective responses",bullets:[{term:"Steady work",text:"realistic plans and honest effort matter more than shortcuts."},{term:"Service",text:"helping elders, workers and those in need eases the period."},{term:"Hanuman worship",text:"a traditional support while Saturn applies pressure."},{term:"Saturday charity",text:"giving something linked to Saturn on a Saturday is the classic remedy."}]},{h:"Good to know",bullets:[{term:"Not always hard",text:"a strong or well-placed Saturn can make the whole period constructive."},{term:"Context matters",text:"your running Mahadasha shapes how it actually feels."}]}],followup:"Want to check which phase you are in? You can run it on the Sade Sati calculator.",followups:[{q:"How is Sade Sati different from Shani Dhaiya?",kind:"pedia"},{q:"How often does Sade Sati come around?",kind:"pedia"},{q:"Am I in Sade Sati right now?",kind:"chart"},{q:"When does my Sade Sati end?",kind:"chart"}],crosssell:{kind:"report",title:"Career",reportId:"career",blurb:"See how Saturn's slow pressure plays out in your work, and when it lifts."}}},ic={lead:"Here is the plain-language version. This is a core idea in Vedic astrology, and it gets easier to use once you separate what it means from how it actually shows up.",sections:[{h:"The core idea",bullets:[{term:"What it is",text:"a short, direct definition in everyday words."},{term:"Why it matters",text:"the area of life it governs and shapes."}]},{h:"How it shows up",bullets:[{term:"In practice",text:"the everyday effect people tend to notice."},{term:"What changes it",text:"the placements or timings that make it stronger or weaker."}]}],followup:"Want me to go deeper on any part of this?",followups:[{q:"Can you give a simple example?",kind:"pedia"}
1,{q:"How does this show up in my chart?",kind:"chart"},{q:"Is this active for me right now?",kind:"chart"}],crosssell:{kind:"report",title:"Personality",reportId:"personality",blurb:"Who you are at the core, your strengths, and your blind spots."}};var iu=t.i(76816);function ih(t){return t}function ip(t){return t}function im(){return t=>t}function ix(t){}function ig(t){throw Error("Unexpected value in exhaustive check")}function iy(t){}function ib(t){let r=Object.values(t).filter(t=>"number"==typeof t);return Object.entries(t).filter(([t,a])=>-1===r.indexOf(+t)).map(([t,r])=>r)}function iv(t,r="|"){return t.map(t=>i2(t)).join(r)}function iw(t,r){return"bigint"==typeof r?r.toString():r}class ik{constructor(t){this._getter=t,this._value=void 0}get value(){let t=this._getter;return void 0!==t&&(this._value=t(),this._getter=void 0),this._value}}function ij(t){return new ik(t)}function iN(t){return null==t}function i_(t){let r=+!!t.startsWith("^"),a=t.endsWith("$")?t.length-1:t.length;return t.slice(r,a)}function iE(t,r){let a=t/r,n=Math.round(a),i=4*Number.EPSILON*Math.max(Math.abs(a),1);return Math.abs(a-n)<i?0:a-n}let iS=Symbol("evaluating");function iC(t,r,a){let n;
1Object.defineProperty(t,r,{get(){if(n!==iS)return void 0===n&&(n=iS,n=a()),n},set(a){Object.defineProperty(t,r,{value:a})},configurable:!0})}function iT(t){return Object.create(Object.getPrototypeOf(t),Object.getOwnPropertyDescriptors(t))}function iA(t,r,a){Object.defineProperty(t,r,{value:a,writable:!0,enumerable:!0,configurable:!0})}function iI(t){let r=Object.getOwnPropertyDescriptor(t,"shape");return r?.get?r.get.raw:r?.value}function iM(t){return iI(t._zod.def)??t._zod.def.shape}function iP(t,r,a){Object.defineProperty(t,r,{get(){let t=a();return iA(this,r,t),t},enumerable:!0,configurable:!0})}function iO(t,r,a){r in t?iA(t,r,a):t[r]=a}function iD(t,r,a,n){let i=iM(r);for(let o of a){let a=Object.getOwnPropertyDescriptor(i,o);a.enumerable&&(a.get?iP(t,o,()=>{let t=r._zod.def.shape[o];return n?n(t,o):t}):iO(t,o,n?n(a.value,o):a.value))}}function iR(...t){let r={};for(let a of t)Object.assign(r,Object.getOwnPropertyDescriptors(a));return Object.defineProperties({},r)}function i$(t){return iR(t._zod.def)}function iz(t,r){return r?r.reduce((t,r)=>t?.[r],t):t}function iL(t){let r=Object.keys(t);return Promise.all(r.map(r=>t[r])).then(t=>{let a={};for(let n=0;n<r.length;n++)a[r[n]]=t[n];return a})}function iW(t=10){let r="abcdefghijklmnopqrstuvwxyz",a="";for(let n=0;n<t;n++)a+=r[Math.floor(Math.random()*r.length)];return a}function iU(t){return JSON.stringify(t)}function iB(t){return t.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}let iF="captureStackTrace"in Error?Error.captureStackTrace:(...t)=>{};function iY(t){return"object"==typeof t&&null!==t&&!Array.isArray(t)}let iV=ij(()=>
1{if(oW.jitless||"u">typeof navigator&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{return Function(""),!0}catch(t){return!1}});function iq(t){if(!1===iY(t))return!1;let r=t.constructor;if(void 0===r||"function"!=typeof r)return!0;let a=r.prototype;return!1!==iY(a)&&!1!==Object.prototype.hasOwnProperty.call(a,"isPrototypeOf")}function iH(t){return iq(t)?{...t}:Array.isArray(t)?[...t]:t instanceof Map?new Map(t):t instanceof Set?new Set(t):t}function iZ(t){let r=0;for(let a in t)Object.prototype.hasOwnProperty.call(t,a)&&r++;return r}let iK=t=>{let r=typeof t;switch(r){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(t)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":if(Array.isArray(t))return"array";if(null===t)return"null";if(t.then&&"function"==typeof t.then&&t.catch&&"function"==typeof t.catch)return"promise";if("u">typeof Map&&t instanceof Map)return"map";if("u">typeof Set&&t instanceof Set)return"set";if("u">typeof Date&&t instanceof Date)return"date";if("u">typeof File&&t instanceof File)return"file";return"object";default:throw Error(`Unknown data type: ${r}`)}},iG=new Set(["string","number","symbol"]),iJ=new Set(["string","number","bigint","boolean","symbol","undefined"]);function iX(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function iQ(t,r,a){let n=new t._zod.constr(r??t._zod.def);return(!r||a?.parent)&&(n._zod.parent=t),n}function i0(t){if(!t)return{};if("string"==typeof t)return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");t.error=t.message}return(delete t.message,"string"==typeof t.error)?{...t,error:()=>t.error}:t}function i1(t){let r;return new Proxy({},{get:(a,n,i)=>(r??(r=t()),Reflect.get(r,n,i)),set:(a,n,i,o)=>(r??(r=t()),Reflect.set(r,n,i,o)),has:(a,n)=>(r??(r=t()),Reflect.has(r,n)),deleteProperty:(a,n)=>(r??(r=t()),Reflect.deleteProperty(r,n)),ownKeys:a=>(r??(r=t()),Reflect.ownKeys(r)),getOwnPropertyDescriptor:(a,n)=>(r??(r=t()),Reflect.getOwnPropertyDescriptor(r,n)),defineProperty:(a,n,i)=>(r??(r=t()),Reflect.defineProperty(r,n,i))})}function i2(t){return"bigint"==typeof t?t.toString()+"n":"string"==typeof t?`"${t}"`:`${t}`}function i5(t){return Object.keys(t).filter(r=>void 0!==t[r]._zod.optin&&"optional"===t[r]._zod.optout)}let i4={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-0x80000000,0x7fffffff],uint32:[0,0xffffffff],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},i3={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function i6(t,r){let a=t._zod.def,n=a.checks;if(n&&n.length>0)throw Error(".pick() cannot be used on object schemas containing refinements");let i={};return iD(i,t,i8(t,r)),iQ(t,iR(a,{shape:i,checks:[]}))}function i8(t,r){let a=iM(t),n=[];for(let t of Reflect.ownKeys(r)){if(!Object.getOwnPropertyDescriptor(a,t)?.enumerable)throw Error(`Unrecognized key: "${String(t)}"`);r[t]&&n.push(t)}return n}function i9(t,r){let a=t._zod.def,n=a.checks;if(n&&n.length>0)throw Error(".omit() cannot be used on object schemas containing refinements");let i=new Set(i8(t,r)),o={};return iD(o,t,Reflect.ownKeys(iM(t)).filter(t=>!i.has(t))),iQ(t,iR(a,{shape:o,checks:[]}))}function i7(t,r){if(!iq(r))throw Error("Invalid input to extend: expected a plain object");let a=t._zod.def.checks;if(a&&a.length>0){let a=iM(t);for(let t of Reflect.ownKeys(r))if(void 0!==Object.getOwnPropertyDescriptor(a,t))throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return iQ(t,iR(t._zod.def,{shape:oe(t,r)}))}function oe(t,r){let a={};iD(a,t,Reflect.ownKeys(iM(t)));for(let t of Reflect.ownKeys(r)){let n=Object.getOwnPropertyDescriptor(r,t);n.enumerable&&(n.get?iP(a,t,()=>r[t]):iO(a,t,n.value))}return a}function ot(t,r){if(!iq(r))throw Error("Invalid input to safeExtend: expected a plain object");return iQ(t,iR(t._zod.def,{shape:oe(t,r)}))}function or(t,r){if(!r?._zod?.def)throw Error("Invalid input to merge: expected an object schema. To merge a plain shape, use `.extend()`.");if(t._zod.def.checks?.length)throw Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");let a={};iD(a,t,Reflect.ownKeys(iM(t))),iD(a,r,Reflect.ownKeys(iM(r)));let n=iR(t._zod.def,{shape:a,get catchall(){return r._zod.def.catchall},checks:r._zod.def.checks??[]});return iQ(t,n)}function oa(t,r,a,n="partial"){let i=r._zod.def.checks;if(i&&i.length>0)throw Error(`.${n}() cannot be used on object schemas containing refinements`);let o=a?new Set(i8(r,a)):void 0,s={};return iD(s,r,Reflect.ownKeys(iM(r)),t&&((r,a)=>o&&!o.has(a)?r:new t({type:"optional",innerType:r}))),iQ(r,iR(r._zod.def,{shape:s,checks:[]}))}function on(t,r,a){let n=a?new Set(i8(r,a)):void 0,i={};return iD(i,r,Reflect.ownKeys(iM(r)),(r,a)=>n&&!n.has(a)?r:new t({type:"nonoptional",innerType:r})),iQ(r,iR(r._zod.def,{shape:i}))}function oi(t,r=0){if(!0===t.aborted)return!0;for(let a=r;a<t.issues.length;a++)if(t.issues[a]?.continue!==!0)return!0;return!1}function oo(t,r=0){if(!0===t.aborted)return!0;for(let a=r;a<t.issues.length;a++)if(t.issues[a]?.continue===!1)return!0;return!1}function os(t,r){return r.map(r=>(r.path??(r.path=[]),r.path.unshift(t),r))}function ol(t){return"string"==typeof t?t:t?.message}function od(t,r,a){var n;for(let i=r;i<t.length;i++)(n=t[i]).schema??(n.schema=a)}function oc(t,r,a){let n=t.inst?._zod?.traits;n?.has("$ZodType")&&(n.has("$ZodCheck")?t.schema??(t.schema=t.inst):t.schema=t.inst);let i=t.schema!==t.inst?t.schema?._zod.def?.error:void 0,o=t.message?t.message:ol(t.inst?._zod.def?.error?.(t))??ol(i?.(t))??ol(r?.error?.(t))??ol(a.customError?.(t))??ol(a.localeError?.(t))??"Invalid input",s={};for(let r of Object.keys(t))"inst"!==r&&"schema"!==r&&"continue"!==r&&"input"!==r&&"__proto__"!==r&&(s[r]=t[r]);return s.path??(s.path=[]),s.message=o,r?.reportInput&&(s.input=t.input),s}function ou(t){return t instanceof Set?"set":t instanceof Map?"map":t instanceof File?"file":"unknown"}let oh=/[\uD800-\uDBFF]/;function op(t){let r=t.length;if(!oh.test(t))return r;let a=r;for(let n=0;n<r-1;
1n++)(64512&t.charCodeAt(n))==55296&&(64512&t.charCodeAt(n+1))==56320&&(a--,n++);return a}function om(t){return Array.isArray(t)?"array":"string"==typeof t?"string":"unknown"}function of(t){let r=typeof t;switch(r){case"number":return Number.isNaN(t)?"nan":"number";case"object":if(null===t)return"null";if(Array.isArray(t))return"array";if(t&&Object.getPrototypeOf(t)!==Object.prototype&&"constructor"in t&&t.constructor)return t.constructor.name}return r}function ox(...t){let[r,a,n]=t;return"string"==typeof r?{message:r,code:"custom",input:a,inst:n}:{...r}}function og(t){return Object.entries(t).filter(([t,r])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}function oy(t){let r=atob(t),a=new Uint8Array(r.length);for(let t=0;t<r.length;t++)a[t]=r.charCodeAt(t);return a}function ob(t){let r="";for(let a=0;a<t.length;a++)r+=String.fromCharCode(t[a]);return btoa(r)}function ov(t){let r=t.replace(/-/g,"+").replace(/_/g,"/"),a="=".repeat((4-r.length%4)%4);return oy(r+a)}function ow(t){return ob(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function ok(t){let r=t.replace(/^0x/,"");if(r.length%2!=0)throw Error("Invalid hex string length");let a=new Uint8Array(r.length/2);for(let t=0;t<r.length;t+=2)a[t/2]=Number.parseInt(r.slice(t,t+2),16);return a}function oj(t){return Array.from(t).map(t=>t.toString(16).padStart(2,"0")).join("")}class oN{constructor(...t){}}function o_(t,r){for(let a in r){let n=Object.getOwnPropertyDescriptor(r,a);n.get?Object.defineProperty(t,a,{...n,enumerable:!1}):function(t,r,a){Object.defineProperty(t,r,{configurable:!0,get(){return this==null?a:oE(this,r,a.bind(this))},set(t){oE(this,r,t)}})}(t,a,n.value)}}function oE(t,r,a,n=!0){return Object.defineProperty(t,r,{configurable:!0,writable:!0,enumerable:n,value:a}),a}function oS(t,r,a){return oE(t,r,a,!1)}function oC(t,r){for(let a in t){let n=t[a];Object.defineProperty(r,a,{configurable:!0,enumerable:!0,get(){return oE(this,a,n(this))},set(t){oE(this,a,t)}})}return r}let oT=!1,oA={configurable:!0,get(){oT=!0}};function oI(t,a,n){let i=Object.getPrototypeOf(t._zod);if(a in i&&r!==t._zod){r=void 0;return}r=t._zod,Object.defineProperty(i,a,{configurable:!0,get(){Object.defineProperty(this,a,oA);let t=oT;oT=!1;try{let r=n(this);return oT?delete this[a]:Object.defineProperty(this,a,{configurable:!0,writable:!0,value:r}),oT=oT||t,r}catch(r){throw delete this[a],oT=oT||t,r}},set(t){Object.defineProperty(this,a,{configurable:!0,writable:!0,value:t})}})}function oM(t,r,a,n){let i,o=r in(i=Object.getPrototypeOf(t))?void 0:i;o&&Object.defineProperty(o,r,{configurable:!0,get(){let t={configurable:!0,writable:!0,enumerable:n,value:void 0};return Object.defineProperty(this,r,t),t.value=a(this),Object.defineProperty(this,r,t),t.value},set(t){Object.defineProperty(this,r,{configurable:!0,writable:!0,enumerable:n,value:t})}})}let oP="~constantCatch";function oO(t){let r=()=>t;return r[oP]=!0,r}let oD={value:void 0,enumerable:!1},oR="captureStackTrace"in Error?Error:null;function o$(t,r,a,n){function i(t){this.def=t,this.constr=c,this.traits=new Set}i.prototype={};let o=a&&new WeakSet;function s(n,s){if(n._zod){if(n._zod.traits.has(t))return}else{oD.value=new i(s);try{Object.defineProperty(n,"_zod",oD)}finally{oD.value=void 0}}if(n._zod.traits.add(t),r(n,s),o){let t=Object.getPrototypeOf(n),r=n._zod.constr.prototype,i=t;for(;i&&i!==r;)i=Object.getPrototypeOf(i);let s=i??t;o.has(s)||(o.add(s),o_(s,a))}let l=c.prototype;for(let t in l)Object.prototype.hasOwnProperty.call(l,t)&&(t in n||(n[t]=l[t].bind(n)))}let l=n?.Parent??Object;class d extends l{}function c(t){let r=n?.Parent?function(t){let r=oR;if(r){let a=r.stackTraceLimit;if("number"==typeof a){try{r.stackTraceLimit=0}catch{return oR=null,new t}try{return new t}finally{r.stackTraceLimit=a}}}return new t}(d):this;s(r,t);let a=r._zod.deferred;if(a){for(let t of a)t();r._zod.deferred=void 0}let i=globalThis.__zod_globalConfig?.postProcessor;return i&&i(r),r}return Object.defineProperty(d,"name",{value:t}),Object.defineProperty(c,"init",{value:s}),Object.defineProperty(c,Symbol.hasInstance,{value:r=>!!n?.Parent&&r instanceof n.Parent||r?._zod?.traits?.has(t)}),Object.defineProperty(c,"name",{value:t}),c}
1class oz extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class oL extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}(j=globalThis).__zod_globalConfig??(j.__zod_globalConfig={});let oW=globalThis.__zod_globalConfig;function oU(t){return t&&Object.assign(oW,t),oW}oU({jitless:!0});var oB=t.i(19940),oF=t.i(89984),oY="vercel.ai.error",oV=Symbol.for(oY),oq=class t extends(_=Error,N=oV,_){constructor({name:t,message:r,cause:a}){super(r),this[N]=!0,this.name=t,this.cause=a}static isInstance(r){return t.hasMarker(r,oY)}static hasMarker(t,r){let a=Symbol.for(r);return null!=t&&"object"==typeof t&&a in t&&"boolean"==typeof t[a]&&!0===t[a]}},oH="AI_APICallError",oZ=`vercel.ai.error.${oH}`,oK=Symbol.for(oZ),oG=class extends(S=oq,E=oK,S){constructor({message:t,url:r,requestBodyValues:a,statusCode:n,responseHeaders:i,responseBody:o,cause:s,isRetryable:l=null!=n&&(408===n||409===n||429===n||n>=500),data:d}){super({name:oH,message:t,cause:s}),this[E]=!0,this.url=r,this.requestBodyValues=a,this.statusCode=n,this.responseHeaders=i,this.responseBody=o,this.isRetryable=l,this.data=d}static isInstance(t){return oq.hasMarker(t,oZ)}},oJ="AI_EmptyResponseBodyError",oX=`vercel.ai.error.${oJ}`,oQ=Symbol.for(oX),o0=class extends(T=oq,C=oQ,T){constructor({message:t="Empty response body"}={}){super({name:oJ,message:t}),this[C]=!0}static isInstance(t){return oq.hasMarker(t,oX)}};function o1(t){return null==t?"unknown error":"string"==typeof t?t:t instanceof Error?t.toString():JSON.stringify(t)}var o2="AI_InvalidArgumentError",o5=`vercel.ai.error.${o2}`,o4=Symbol.for(o5),o3=class extends(I=oq,A=o4,I){constructor({message:t,cause:r,argument:a}){super({name:o2,message:t,cause:r}),this[A]=!0,this.argument=a}static isInstance(t){return oq.hasMarker(t,o5)}},o6=Symbol.for("vercel.ai.error.AI_InvalidPromptError");Symbol.for("vercel.ai.error.AI_InvalidResponseDataError");var o8="AI_JSONParseError",o9=`vercel.ai.error.${o8}`,o7=Symbol.for(o9),se=class extends(P=oq,M=o7,P){constructor({text:t,cause:r}){super({name:o8,message:`JSON parsing failed: Text: ${t}. 2Error message: ${o1(r)}`,cause:r}),this[M]=!0,this.text=t}static isInstance(t){return oq.hasMarker(t,o9)}},st=Symbol.for("vercel.ai.error.AI_LoadAPIKeyError");Symbol.for("vercel.ai.error.AI_LoadSettingError");Symbol.for("vercel.ai.error.AI_NoContentGeneratedError");var sr="AI_NoSuchModelError",sa=`vercel.ai.error.${sr}`,sn=Symbol.for(sa),si=class extends(D=oq,O=sn,D){constructor({errorName:t=sr,modelId:r,modelType:a,message:n=`No such ${a}: ${r}`}){super({name:t,message:n}),this[O]=!0,this.modelId=r,this.modelType=a}static isInstance(t){return oq.hasMarker(t,sa)}},so=Symbol.for("vercel.ai.error.AI_NoSuchProviderReferenceError");Symbol.for("vercel.ai.error.AI_TooManyEmbeddingValuesForCallError");var ss="AI_TypeValidationError",sl=`vercel.ai.error.${ss}`,sd=Symbol.for(sl),sc=class t extends($=oq,R=sd,$){constructor({value:t,cause:r,context:a}){let n="Type validation failed";if((null==a?void 0:a.field)&&(n+=` for ${a.field}`),(null==a?void 0:a.entityName)||(null==a?void 0:a.entityId)){n+=" (";const t=[];a.entityName&&t.push(a.entityName),a.entityId&&t.push(`id: "${a.entityId}"`),n+=t.join(", "),n+=")"}super({name:ss,message:`${n}: Value: ${JSON.stringify(t)}. 3Error message: ${o1(r)}`,cause:r}),this[R]=!0,this.value=t,this.context=a}static isInstance(t){return oq.hasMarker(t,sl)}static wrap({value:r,cause:a,context:n}){var i,o,s;return t.isInstance(a)&&a.value===r&&(null==(i=a.context)?void 0:i.field)===(null==n?void 0:n.field)&&(null==(o=a.context)?void 0:o.entityName)===(null==n?void 0:n.entityName)&&(null==(s=a.context)?void 0:s.entityId)===(null==n?void 0:n.entityId)?a:new t({value:r,cause:a,context:n})}},su="AI_UnsupportedFunctionalityError",sh=`vercel.ai.error.${su}`,sp=Symbol.for(sh),sm=class extends(L=oq,z=sp,L){constructor({functionality:t,message:r=`'${t}' functionality not supported.`}){super({name:su,message:r}),this[z]=!0,this.functionality=t}static isInstance(t){return oq.hasMarker(t,sh)}};let sf={get:function(){let t=this._zod;return t.message??(t.message=JSON.stringify(t.def,iw,2)),t.message},set:function(t){this._zod.message=t},enumerable:!0,configurable:!0},sx={value:void 0,enumerable:!1},sg=new WeakSet([Object.prototype,Error.prototype]),sy=(t,r)=>{t.name="$ZodError",sx.value=r,Object.defineProperty(t,"issues",sx),sx.value=void 0,Object.defineProperty(t,"message",sf);let a=Object.getPrototypeOf(t);sg.has(a)||(sg.add(a),Object.defineProperty(a,"toString",{configurable:!0,enumerable:!1,get(){let t=()=>this.message;return Object.defineProperty(this,"toString",{value:t,configurable:!0,writable:!0}),t},set(t){Object.defineProperty(this,"toString",{value:t,configurable:!0,writable:!0})}}))}
3,sb=o$("$ZodError",sy),sv=o$("$ZodError",sy,void 0,{Parent:Error});function sw(t,r){return{callee:r?.callee??t,Err:r?.Err}}let sk=t=>{let r=(a,n,i,o)=>{let s=i?{...i,async:!1}:{async:!1},l=a._zod.run({value:n,issues:[]},s);if(l instanceof Promise)throw new oz;if(l.issues.length){let a=new(o?.Err??t)(l.issues.map(t=>oc(t,s,oU())));throw iF(a,o?.callee??r),a}return l.value};return r},sj=sk(sv),sN=t=>{let r=async(a,n,i,o)=>{let s=i?{...i,async:!0}:{async:!0},l=a._zod.run({value:n,issues:[]},s);if(l instanceof Promise&&(l=await l),l.issues.length){let a=new(o?.Err??t)(l.issues.map(t=>oc(t,s,oU())));throw iF(a,o?.callee??r),a}return l.value};return r},s_=sN(sv),sE=t=>(r,a,n)=>{let i=n?{...n,async:!1}:{async:!1},o=r._zod.run({value:a,issues:[]},i);if(o instanceof Promise)throw new oz;return o.issues.length?sS(t,o.issues,i):{success:!0,data:o.value}};function sS(t,r,a){let n;return{success:!1,get error(){return n||(n=new t(r.map(t=>oc(t,a,oU()))),r=void 0,a=void 0),n},set error(e){n=e,r=void 0,a=void 0}}}let sC=t=>async(r,a,n)=>{let i=n?{...n,async:!0}:{async:!0},o=r._zod.run({value:a,issues:[]},i);return o instanceof Promise&&(o=await o),o.issues.length?sS(t,o.issues,i):{success:!0,data:o.value}},sT=Symbol.for("zod.compile.invalid"),sA=Symbol.for("zod.compile.fallback"),sI=async(t,r,a)=>{let n=a?{...a,async:!0,abortEarly:!0}:{async:!0,abortEarly:!0},i=t._zod.run({value:r,issues:[]},n);return i instanceof Promise&&(i=await i),0===i.issues.length},sM=new WeakSet([Object.prototype,Error.prototype]);function sP(t,r,a){Object.defineProperty(t,r,{configurable:!0,enumerable:!1,get(){let t=a(this);return Object.defineProperty(this,r,{value:t,configurable:!0,writable:!0}),t},set(t){Object.defineProperty(this,r,{value:t,configurable:!0,writable:!0})}})}let sO=o$("ZodError",(t,r)=>{sb.init(t,r),t.name="ZodError";let a=Object.getPrototypeOf(t);sM.has(a)||(sM.add(a),sP(a,"format",t=>r=>(function(t,r=t=>t.message){let a={_errors:[]},n=(t,i=[])=>{for(let o of t.issues)if("invalid_union"===o.code&&o.errors.length)o.errors.map(t=>n({issues:t},[...i,...o.path]));else if("invalid_key"===o.code)n({issues:o.issues},[...i,...o.path]);else if("invalid_element"===o.code)n({issues:o.issues},[...i,...o.path]);else{let t=[...i,...o.path];if(0===t.length)a._errors.push(r(o));else{let n=a,i=0;for(;i<t.length;){let a=t[i],s=i===t.length-1;if("_errors"===a){s&&n._errors.push(r(o)),i++;continue}Object.prototype.hasOwnProperty.call(n,a)||Object.defineProperty(n,a,{value:{_errors:[]},enumerable:!0,writable:!0,configurable:!0});let l=n[a];s&&l._errors.push(r(o)),n=l,i++}}}};return n(t),a})(t,r)),sP(a,"flatten",t=>r=>(function(t,r=t=>t.message){let a={},n=[];for(let s of t.issues)if(s.path.length>0){var i,o;(i=s.path[0],o=()=>[],!Object.prototype.hasOwnProperty.call(a,i)&&("__proto__"===i?Object.defineProperty(a,i,{value:o(),writable:!0,enumerable:!0,configurable:!0}):a[i]=o()),a[i]).push(r(s))}else n.push(r(s));return{formErrors:n,fieldErrors:a}})(t,r)),sP(a,"addIssue",t=>r=>{t.issues.push(r),t.message=JSON.stringify(t.issues,iw,2)}),sP(a,"addIssues",t=>r=>{t.issues.push(...r),t.message=JSON.stringify(t.issues,iw,2)}),Object.defineProperty(a,"isEmpty",{configurable:!0,enumerable:!1,get(){return 0===this.issues.length}}))},void 0,{Parent:Error}),sD=sk(sO),sR=sN(sO),s$=sE(sO),sz=sC(sO),sL=(n=sk(sO),i=(t,r,a,o)=>n(t,r,a?{...a,direction:"backward"}:{direction:"backward"},sw(i,o))),sW=(o=sk(sO),s=(t,r,a,n)=>o(t,r,a,sw(s,n))),sU=(l=sN(sO),d=async(t,r,a,n)=>{let i=a?{...a,direction:"backward"}:{direction:"backward"};return await l(t,r,i,sw(d,n))}),sB=(c=sN(sO),u=async(t,r,a,n)=>await c(t,r,a,sw(u,n))),sF=(t,r,a)=>{let n=a?{...a,direction:"backward"}:{direction:"backward"};return sE(sO)(t,r,n)},sY=(t,r,a)=>sE(sO)(t,r,a),sV=async(t,r,a)=>{let n=a?{...a,direction:"backward"}:{direction:"backward"};return sC(sO)(t,r,n)},sq=async(t,r,a)=>sC(sO)(t,r,a),sH=/^[cC][0-9a-z]{6,}$/,sZ=/^[0-9a-z]+$/,sK=/^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/,sG=/^[0-9a-vA-V]{20}$/,sJ=/^[A-Za-z0-9]{27}$/,sX=/^[a-zA-Z0-9_-]{21}$/;function sQ(t){return RegExp(`^[a-zA-Z0-9_-]{${t}}$`)}let s0=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,s1=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,s2=t=>t?RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${t}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,s5=s2(4),s4=s2(6),s3=s2(7),s6=/^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,s8=/^[^\s@"]{1,64}
3@[^\s@]{1,255}$/u;function s9(){return RegExp("^(?=[\\s\\S]*[\\p{Extended_Pictographic}\\p{Regional_Indicator}\\u20E3])[\\p{Extended_Pictographic}\\p{Emoji_Component}]+$","u")}let s7=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,le=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,lt=t=>{let r=iX(t??":");return RegExp(`^(?:[0-9A-F]{2}${r}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${r}){5}[0-9a-f]{2}$`)},lr=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,la=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,ln=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,li=/^(?:[A-Za-z0-9_-]{4})*(?:[A-Za-z0-9_-]{2,3})?$/,lo=/^https?$/,ls=/^\+[1-9]\d{6,14}$/,ll=/^\d(?:[ -]?\d){11,18}$/,ld=/^[A-Z]{2}(?!00|01|99)\d{2}[A-Z0-9]{11,30}$/,lc="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",lu=RegExp(`^${lc}$`);function lh(t){let r="(?:[01]\\d|2[0-3]):[0-5]\\d";return"number"==typeof t.precision?-1===t.precision?`${r}`:0===t.precision?`${r}:[0-5]\\d`:`${r}:[0-5]\\d\\.\\d{${t.precision}}`:t.seconds?`${r}:[0-5]\\d(?:\\.\\d+)?`:`${r}(?::[0-5]\\d(?:\\.\\d+)?)?`}function lp(t){return RegExp(`^${lh(t)}$`)}function lm(t){let r=["Z"];t.offset&&r.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let a=`${lh({precision:t.precision,seconds:!0})}(?:${r.join("|")})`,n=t.local?`${a}|${lh({precision:t.precision})}`:a;return RegExp(`^${lc}T(?:${n})$`)}let lf=/^[\s\S]{0,}$/,lx=t=>{let r=t?`[\\s\\S]{${t?.minimum??0},${t?.maximum??""}}`:"[\\s\\S]*";return RegExp(`^${r}$`)},lg=/^-?\d+n?$/,ly=/^-?\d+$/,lb=/^-?\d+(?:\.\d+)?$/,lv=/^(?:true|false)$/i,lw=/^null$/i,lk=/^undefined$/i,lj=/^[^A-Z]*$/,lN=/^[^a-z]*$/;function l_(t,r){return RegExp(`^[A-Za-z0-9+/]{${t}}${r}$`)}function lE(t){return RegExp(`^[A-Za-z0-9_-]{${t}}$`)}let lS=l_(22,"=="),lC=lE(22),lT=l_(27,"="),lA=lE(27),lI=l_(43,"="),lM=lE(43),lP=l_(64,""),lO=lE(64),lD=l_(86,"=="),lR=lE(86);t.s(["anyString",0,lf,"base64",0,ln,"base64url",0,li,"bigint",0,lg,"boolean",0,lv,"browserEmail",0,/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,"cidrv4",0,lr,"cidrv6",0,la,"creditCard",0,ll,"cuid",0,sH,"cuid2",0,sZ,"currencyCode",0,/^(?:AED|AFN|ALL|AMD|AOA|ARS|AUD|AWG|AZN|BAM|BBD|BDT|BHD|BIF|BMD|BND|BOB|BOV|BRL|BSD|BTN|BWP|BYN|BZD|CAD|CDF|CHE|CHF|CHW|CLF|CLP|CNY|COP|COU|CRC|CUP|CVE|CZK|DJF|DKK|DOP|DZD|EGP|ERN|ETB|EUR|FJD|FKP|GBP|GEL|GHS|GIP|GMD|GNF|GTQ|GYD|HKD|HNL|HTG|HUF|IDR|ILS|INR|IQD|IRR|ISK|JMD|JOD|JPY|KES|KGS|KHR|KMF|KPW|KRW|KWD|KYD|KZT|LAK|LBP|LKR|LRD|LSL|LYD|MAD|MDL|MGA|MKD|MMK|MNT|MOP|MRU|MUR|MVR|MWK|MXN|MXV|MYR|MZN|NAD|NGN|NIO|NOK|NPR|NZD|OMR|PAB|PEN|PGK|PHP|PKR|PLN|PYG|QAR|RON|RSD|RUB|RWF|SAR|SBD|SCR|SDG|SEK|SGD|SHP|SLE|SOS|SRD|SSP|STN|SVC|SYP|SZL|THB|TJS|TMT|TND|TOP|TRY|TTD|TWD|TZS|UAH|UGX|USD|USN|UYI|UYU|UYW|UZS|VED|VES|VND|VUV|WST|XAD|XAF|XAG|XAU|XBA|XBB|XBC|XBD|XCD|XCG|XDR|XOF|XPD|XPF|XPT|XSU|XTS|XUA|XXX|YER|ZAR|ZMW|ZWG)$/,"date",0,lu,"datetime",0,lm,"domain",0,/^(?=.{1,253}$)([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,63}$/,"duration",0,s0,"e164",0,ls,"email",0,s6,"emoji",0,s9,"extendedDuration",0,/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,"guid",0,s1,"hex",0,/^[0-9a-fA-F]*$/,"hostname",0,/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,"html5Email",0,/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,"httpProtocol",0,lo,"iban",0,ld,"idnEmail",0,s8,"integer",0,ly,"ipv4",0,s7,"ipv6",0,le,"ksuid",0,sJ,"lowercase",0,lj,"mac",0,lt,"md5_base64",0,lS,"md5_base64url",0,lC,"md5_hex",0,/^[0-9a-fA-F]{32}$/,"nanoid",0,sX,"nanoidOfLength",0,sQ,"null",0,lw,"number",0,lb,"rfc5322Email",0,/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,"sha1_base64",0,lT,"sha1_base64url",0,lA,"sha1_hex",0,/^[0-9a-fA-F]{40}$/,"sha256_base64",0,lI,"sha256_base64url",0,lM,"sha256_hex",0,/^[0-9a-fA-F]{64}$/,"sha384_base64",0,lP,"sha384_base64url",0,lO,"sha384_hex",0,/^[0-9a-fA-F]{96}$/,"sha512_base64",0,lD,"sha512_base64url",0,lR,"sha512_hex",0,/^[0-9a-fA-F]{128}$/,"string",0,lx,"time",0,lp,"ulid",0,sK,"undefined",0,lk,"unicodeEmail",0,s8,"uppercase",0,lN,"uuid",0,s2,"uuid4",0,s5,"uuid6",0,s4,"uuid7",0,s3,"xid",0,sG],96094);let l$=o$("$ZodCheck",(t,r)=>{var a;t._zod??(t._zod={}),t._zod.def=r,(a=t._zod).onattach??(a.onattach=[])}),lz=t=>{let r=t.value;return!iN(r)&&void 0!==r.size},lL=t=>{let r=t.value;return!iN(r)&&void 0!==r.length},lW={number:"number",bigint:"bigint",object:"date"},lU=o$("$ZodCheckLessThan",(t,r)=>{l$.init(t,r);let a=lW[typeof r.value];t._zod.check=n=>{(r.inclusive?n.value<=r.value:n.value<r.value)||n.issues.push({origin:lW[typeof n.value]??a,code:"too_big",maximum:"object"==typeof r.value?r.value.getTime():r.value,input:n.value,inclusive:r.inclusive,inst:t,continue:!r.abort})}}),lB=o$("$ZodCheckGreaterThan",(t,r)=>{l$.init(t,r);let a=lW[typeof r.value];t._zod.check=n=>{(r.inclusive?n.value>=r.value:n.value>r.value)||n.issues.push({origin:lW[typeof n.value]??a,code:"too_small",minimum:"object"==typeof r.value?r.value.getTime():r.value,input:n.value,inclusive:r.inclusive,inst:t,continue:!r.abort})}}),lF=o$("$ZodCheckMultipleOf",(t,r)=>{l$.init(t,r),t._zod.check=a=>{if(typeof a.value!=typeof r.value)throw Error("Cannot mix number and bigint in multiple_of check.");("bigint"==typeof a.value?r.value!==BigInt(0)&&a.value%r.value===BigInt(0):0===iE(a.value,r.value))||a.issues.push({origin:typeof a.value,code:"not_multiple_of",divisor:r.value,input:a.value,inst:t,continue:!r.abort})}}),lY=o$("$ZodCheckNumberFormat",(t,r)=>{l$.init(t,r),r.format=r.format||"float64";let a=r.format?.includes("int"),n=a?"int":"number",[i,o]=i4[r.format];t._zod.check=s=>{let l=s.value;if(a){if(!Number.isInteger(l))return void s.issues.push({expected:n,format:r.format,code:"invalid_type",continue:!1,input:l,inst:t});if(!Number.isSafeInteger(l))return void(l>0?s.issues.push({input:l,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:t,origin:n,inclusive:!0,
3continue:!r.abort}):s.issues.push({input:l,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:t,origin:n,inclusive:!0,continue:!r.abort}))}l<i&&s.issues.push({origin:"number",input:l,code:"too_small",minimum:i,inclusive:!0,inst:t,continue:!r.abort}),l>o&&s.issues.push({origin:"number",input:l,code:"too_big",maximum:o,inclusive:!0,inst:t,continue:!r.abort})}}),lV=o$("$ZodCheckBigIntFormat",(t,r)=>{l$.init(t,r);let[a,n]=i3[r.format];t._zod.check=i=>{let o=i.value;o<a&&i.issues.push({origin:"bigint",input:o,code:"too_small",minimum:a,inclusive:!0,inst:t,continue:!r.abort}),o>n&&i.issues.push({origin:"bigint",input:o,code:"too_big",maximum:n,inclusive:!0,inst:t,continue:!r.abort})}}),lq=o$("$ZodCheckMaxSize",(t,r)=>{var a;l$.init(t,r),(a=t._zod.def).when??(a.when=lz),t._zod.check=a=>{let n=a.value;n.size<=r.maximum||a.issues.push({origin:ou(n),code:"too_big",maximum:r.maximum,inclusive:!0,input:n,inst:t,continue:!r.abort})}}),lH=o$("$ZodCheckMinSize",(t,r)=>{var a;l$.init(t,r),(a=t._zod.def).when??(a.when=lz),t._zod.check=a=>{let n=a.value;n.size>=r.minimum||a.issues.push({origin:ou(n),code:"too_small",minimum:r.minimum,inclusive:!0,input:n,inst:t,continue:!r.abort})}}),lZ=o$("$ZodCheckSizeEquals",(t,r)=>{var a;l$.init(t,r),(a=t._zod.def).when??(a.when=lz),t._zod.check=a=>{let n=a.value,i=n.size;if(i===r.size)return;let o=i>r.size;a.issues.push({origin:ou(n),...o?{code:"too_big",maximum:r.size}:{code:"too_small",minimum:r.size},inclusive:!0,exact:!0,input:a.value,inst:t,continue:!r.abort})}}),lK=o$("$ZodCheckMaxLength",(t,r)=>{var a;l$.init(t,r),(a=t._zod.def).when??(a.when=lL),t._zod.check=a=>{let n=a.value,i=n.length;if(("string"==typeof n&&i>r.maximum?op(n):i)<=r.maximum)return;let o=om(n);a.issues.push({origin:o,code:"too_big",maximum:r.maximum,inclusive:!0,input:n,inst:t,continue:!r.abort})}}),lG=o$("$ZodCheckMinLength",(t,r)=>{var a;l$.init(t,r),(a=t._zod.def).when??(a.when=lL),t._zod.check=a=>{let n=a.value,i=n.length;if(("string"==typeof n&&i>=r.minimum&&i<2*r.minimum?op(n):i)>=r.minimum)return;let o=om(n);a.issues.push({origin:o,code:"too_small",minimum:r.minimum,inclusive:!0,input:n,inst:t,continue:!r.abort})}}),lJ=o$("$ZodCheckLengthEquals",(t,r)=>{var a;l$.init(t,r),(a=t._zod.def).when??(a.when=lL),t._zod.check=a=>{let n=a.value,i=n.length,o="string"==typeof n&&i>=r.length&&i<=2*r.length?op(n):i;if(o===r.length)return;let s=om(n),l=o>r.length;a.issues.push({origin:s,...l?{code:"too_big",maximum:r.length}:{code:"too_small",minimum:r.length},inclusive:!0,exact:!0,input:a.value,inst:t,continue:!r.abort})}}),lX=o$("$ZodCheckStringFormat",(t,r)=>{var a,n;l$.init(t,r),r.pattern?(a=t._zod).check??(a.check=a=>{r.pattern.lastIndex=0,r.pattern.test(a.value)||a.issues.push({origin:"string",code:"invalid_format",format:r.format,input:a.value,...r.pattern?{pattern:r.pattern.toString()}:{},inst:t,continue:!r.abort})}):(n=t._zod).check??(n.check=()=>{})}),lQ=o$("$ZodCheckRegex",(t,r)=>{lX.init(t,r),t._zod.check=a=>{r.pattern.lastIndex=0,r.pattern.test(a.value)||a.issues.push({origin:"string",code:"invalid_format",format:"regex",input:a.value,pattern:r.pattern.toString(),inst:t,continue:!r.abort})}}),l0=o$("$ZodCheckLowerCase",(t,r)=>{r.pattern??(r.pattern=lj),lX.init(t,r)}),l1=o$("$ZodCheckUpperCase",(t,r)=>{r.pattern??(r.pattern=lN),lX.init(t,r)}),l2=o$("$ZodCheckIncludes",(t,r)=>{l$.init(t,r);let a=iX(r.includes),n=new RegExp("number"==typeof r.position?`^.{${r.position},}${a}`:a);r.pattern=n,t._zod.check=a=>{a.value.includes(r.includes,r.position)||a.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:r.includes,input:a.value,inst:t,continue:!r.abort})}}),l5=o$("$ZodCheckStartsWith",(t,r)=>{l$.init(t,r);let a=RegExp(`^${iX(r.prefix)}.*`);r.pattern??(r.pattern=a),t._zod.check=a=>{a.value.startsWith(r.prefix)||a.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:r.prefix,input:a.value,inst:t,continue:!r.abort})}}),l4=o$("$ZodCheckEndsWith",(t,r)=>{l$.init(t,r);let a=RegExp(`.*${iX(r.suffix)}$`);r.pattern??(r.pattern=a),t._zod.check=a=>{a.value.endsWith(r.suffix)||a.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:r.suffix,input
3:a.value,inst:t,continue:!r.abort})}});function l3(t,r,a){t.issues.length&&r.issues.push(...os(a,t.issues))}let l6=o$("$ZodCheckProperties",(t,r)=>{let a;l$.init(t,r),oS(t,Symbol.iterator,function*(){yield t}),t._zod.check=n=>{let i;if(null==n.value)return void n.issues.push({expected:"object",code:"invalid_type",input:n.value,inst:t});a??(a=Reflect.ownKeys(r.shape).map(t=>[t,r.shape[t]]));let o=n.value;for(let[t,r]of a){let a=r._zod.run({value:o[t],issues:[]},{});a instanceof Promise?(i??(i=[]),i.push(a.then(r=>l3(r,n,t)))):l3(a,n,t)}if(i)return Promise.all(i).then(()=>void 0)}}),l8=((t,r)=>{l$.init(t,r);let a=new Set(r.mime);t._zod.check=n=>{a.has(n.value.type)||n.issues.push({code:"invalid_value",values:r.mime,input:n.value.type,inst:t,continue:!r.abort})}},o$("$ZodCheckOverwrite",(t,r)=>{l$.init(t,r),t._zod.check=t=>{t.value=r.tx(t.value)}}));class l9{constructor(t=[],r={}){this.content=[],this.indent=0,this.args=t,this.closed=r}indented(t){this.indent+=1;try{t(this)}finally{this.indent-=1}}write(t){if("function"==typeof t){t(this,{execution:"sync"}),t(this,{execution:"async"});return}let r=t.split("\n").filter(t=>t),a=Math.min(...r.map(t=>t.length-t.trimStart().length));for(let t of r.map(t=>t.slice(a)).map(t=>" ".repeat(2*this.indent)+t))this.content.push(t)}compile(){let t=Function,r=this?.content??[""];return new t(...Object.keys(this.closed),`return function (${this.args.join(", ")}) { 4${r.join("\n")} 5};`)(...Object.values(this.closed))}}let l7={major:4,minor:6,patch:5},de=o$("$ZodType",(t,r)=>{var a;t??(t={}),t._zod.def=r,t._zod.bag=t._zod.bag||{},t._zod.version=l7;let n=t._zod.def.checks,i=t._zod.traits.has("$ZodCheck")?[t,...n??[]]:n?.length?[...n]:[];for(let r of i)for(let a of r._zod.onattach)a(t);if(0===i.length)(a=t._zod).deferred??(a.deferred=[]),t._zod.deferred?.push(()=>{t._zod.run=t._zod.parse});else{let r=(r,a,n)=>{let i;if(r.memo)return r;let o=oi(r);for(let s of a){if(s._zod.def.when){if(oo(r)||!s._zod.def.when(r))continue}else if(o)continue;let a=r.issues.length,l=s._zod.check(r);if(l instanceof Promise&&n?.async===!1)throw new oz;if(i||l instanceof Promise)i=(i??Promise.resolve()).then(async()=>{await l,r.issues.length!==a&&(od(r.issues,a,t),o||(o=oi(r,a)))});else{if(r.issues.length===a)continue;od(r.issues,a,t),o||(o=oi(r,a))}}return i?i.then(()=>r):r},a=(a,n,o)=>{if(oi(a))return a.aborted=!0,a;let s=r(n,i,o);if(s instanceof Promise){if(!1===o.async)throw new oz;return s.then(r=>t._zod.parse(r,o))}return t._zod.parse(s,o)};t._zod.run=(n,o)=>{if(o.skipChecks)return t._zod.parse(n,o);if("backward"===o.direction){let r=t._zod.parse({value:n.value,issues:[]},{...o,skipChecks:!0});return r instanceof Promise?r.then(t=>a(t,n,o)):a(r,n,o)}let s=t._zod.parse(n,o);if(s instanceof Promise){if(!1===o.async)throw new oz;return s.then(t=>r(t,i,o))}return r(s,i,o)}}},{get"~standard"(){return oS(this,"~standard",da(this))},set"~standard"(value){oE(this,"~standard",value)}}),dt=(t,r)=>t.issues.length?{issues:t.issues.map(t=>oc(t,r,oU()))}:{value:t.value};async function dr(t,r){let a={async:!0};return dt(await t._zod.run({value:r,issues:[]},a),a)}function da(t){return{validate:r=>{let a={async:!1};try{let n=t._zod.run({value:r,issues:[]},a);if(!(n instanceof Promise))return dt(n,a)}catch(t){}return dr(t,r)},vendor:"zod",version:1}}let dn=o$("$ZodString",(t,r)=>{de.init(t,r),t._zod.pattern=r.pattern??lf,t._zod.parse=(a,n)=>{if(r.coerce)try{a.value=String(a.value)}catch(t){}return"string"==typeof a.value||a.issues.push({expected:"string",code:"invalid_type",input:a.value,inst:t}),a}}),di=o$("$ZodStringFormat",(t,r)=>{lX.init(t,r),dn.init(t,r)}),ds=o$("$ZodGUID",(t,r)=>{r.pattern??(r.pattern=s1),di.init(t,r)}),dl=o$("$ZodUUID",(t,r)=>{if(r.version){let t={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[r.version];if(void 0===t)throw Error(`Invalid UUID version: "${r.version}"`);r.pattern??(r.pattern=s2(t))}else r.pattern??(r.pattern=s2());di.init(t,r)}),dd=o$("$ZodEmail",(t,r)=>{r.pattern??(r.pattern=s6),di.init(t,r)});function dc(t){try{if("u">typeof URL&&"function"==typeof URL.canParse)return URL.canParse(t);return new URL(t),!0}catch{return!1}}let du=/[\t\n\r]/g;function dh(t){return t.replace(du,"")}let dp=o$("$ZodURL",(t,r)=>{di.init(t,r),t._zod.check=a=>{try{var n,i;let o=a.value.trim(),s="normalize"in r||"hostname"in r||"protocol"in r?function(t,r){if(!r.normalize&&r.protocol?.source===lo.source&&!/^https?:\/\//i.test(t))return 1;try{if("u">typeof URL){let r=URL;if("function"==typeof r.parse)return r.parse(t)??2}return new URL(t)}catch{return 2}}(o,r):dc(o)||2;if(1===s)return void a.issues.push({code:"invalid_format",format:"url",n
5ote:"Invalid URL format",input:a.value,inst:t,continue:!r.abort});if(2===s)return void a.issues.push({code:"invalid_format",format:"url",input:a.value,inst:t,continue:!r.abort});if(!0===s){a.value=dh(o);return}r.hostname&&((n=r.hostname).lastIndex=0,!n.test(s.hostname))&&a.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:r.hostname.source,input:a.value,inst:t,continue:!r.abort}),r.protocol&&((i=r.protocol).lastIndex=0,!i.test(s.protocol.endsWith(":")?s.protocol.slice(0,-1):s.protocol))&&a.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:r.protocol.source,input:a.value,inst:t,continue:!r.abort}),a.value=r.normalize?s.href:dh(o);return}catch(n){a.issues.push({code:"invalid_format",format:"url",input:a.value,inst:t,continue:!r.abort})}}}),dm=o$("$ZodEmoji",(t,r)=>{r.pattern??(r.pattern=s9()),di.init(t,r)}),df=o$("$ZodNanoID",(t,r)=>{if(void 0!==r.length&&(!Number.isInteger(r.length)||r.length<1))throw Error(`Invalid nanoid length: ${r.length}`);r.pattern??(r.pattern=void 0===r.length?sX:sQ(r.length)),di.init(t,r)}),dx=o$("$ZodCUID",(t,r)=>{r.pattern??(r.pattern=sH),di.init(t,r)}),dg=o$("$ZodCUID2",(t,r)=>{r.pattern??(r.pattern=sZ),di.init(t,r)}),dy=o$("$ZodULID",(t,r)=>{r.pattern??(r.pattern=sK),di.init(t,r)}),db=o$("$ZodXID",(t,r)=>{r.pattern??(r.pattern=sG),di.init(t,r)}),dv=o$("$ZodKSUID",(t,r)=>{r.pattern??(r.pattern=sJ),di.init(t,r)}),dw=o$("$ZodISODateTime",(t,r)=>{r.pattern??(r.pattern=lm(r)),di.init(t,r)}),dk=o$("$ZodISODate",(t,r)=>{r.pattern??(r.pattern=lu),di.init(t,r)}),dj=o$("$ZodISOTime",(t,r)=>{r.pattern??(r.pattern=lp(r)),di.init(t,r)}),dN=o$("$ZodISODuration",(t,r)=>{r.pattern??(r.pattern=s0),di.init(t,r)}),d_=o$("$ZodIPv4",(t,r)=>{r.pattern??(r.pattern=s7),di.init(t,r)}),dE=/^[0-9a-fA-F:.]+$/;function dS(t){return!!dE.test(t)&&dc(`http://[${t}]`)}let dC=o$("$ZodIPv6",(t,r)=>{r.pattern??(r.pattern=le),di.init(t,r),t._zod.check=a=>{dS(a.value)||a.issues.push({code:"invalid_format",format:"ipv6",input:a.value,inst:t,continue:!r.abort})}}),dT=((t,r)=>{r.pattern??(r.pattern=lt(r.delimiter)),di.init(t,r)},o$("$ZodCIDRv4",(t,r)=>{r.pattern??(r.pattern=lr),di.init(t,r)})),dA=o$("$ZodCIDRv6",(t,r)=>{r.pattern??(r.pattern=la),di.init(t,r),t._zod.check=a=>{!function(t){let r=t.split("/");if(2!==r.length)return!1;let[a,n]=r;if(!n)return!1;let i=Number(n);return`${i}`===n&&!(i<0)&&!(i>128)&&dS(a)}(a.value)&&a.issues.push({code:"invalid_format",format:"cidrv6",input:a.value,inst:t,continue:!r.abort})}});function dI(t){if(""===t)return!0;if(/\s/.test(t)||t.length%4!=0)return!1;try{return atob(t),!0}catch{return!1}}let dM=/^[0-9a-zA-Z+/]*={0,2}$/,dP=o$("$ZodBase64",(t,r)=>{r.pattern??(r.pattern=dM),di.init(t,r),t._zod.check=a=>{dI(a.value)||a.issues.push({code:"invalid_format",format:"base64",input:a.value,inst:t,continue:!r.abort})}}),dO=/^[A-Za-z0-9_-]*$/,dD=o$("$ZodBase64URL",(t,r)=>{r.pattern??(r.pattern=dO),di.init(t,r),t._zod.check=a=>{!function(t){if(!dO.test(t))return!1;let r=t.replace(/[-_]/g,t=>"-"===t?"+":"/");return dI(r.padEnd(4*Math.ceil(r.length/4),"="))}(a.value)&&a.issues.push({code:"invalid_format",format:"base64url",input:a.value,inst:t,continue:!r.abort})}}),dR=o$("$ZodE164",(t,r)=>{r.pattern??(r.pattern=ls),di.init(t,r)}),d$=/[- ]/g,dz=((t,r)=>{r.pattern??(r.pattern=ll),di.init(t,r),t._zod.check=a=>{var n;n=a.value,ll.test(n)&&function(t){let r=t.length,a=1,n=0;for(;r;){let i=t.charCodeAt(--r)-48;a^=1,n+=a?[0,2,4,6,8,1,3,5,7,9][i]:i}return n%10==0}(n.replace(d$,""))||a.issues.push({code:"invalid_format",format:"credit_card",input:a.value,inst:t,continue:!r.abort})}},o$("$ZodJWT",(t,r)=>{di.init(t,r),t._zod.check=a=>{!function(t,r=null){try{let a=t.split(".");if(3!==a.length)return!1;let[n]=a;if(!n)return!1;let i=JSON.parse(atob(n));if("typ"in i&&i?.typ!=="JWT"||!i.alg||r&&(!("alg"in i)||i.alg!==r))return!1;return!0}catch{return!1}}(a.value,r.alg)&&a.issues.push({code:"invalid_format",format:"jwt",input:a.value,inst:t,continue:!r.abort})}})),dL=((t,r)=>{di.init(t,r),t._zod.check=a=>{r.fn(a.value)||a.issues.push({code:"invalid_format",format:r.format,input:a.value,inst:t,continue:!r.abort})}},o$("$ZodNumber",(t,r)=>{de.init(t,r),t._zod.pattern=lb,t._zod.parse=(a,n)=>{if(r.coerce)try{a.value=Number(a.value)}catch(t){}let i=a.value;if("number"==typeof i&&!Number.isNaN(i)&&Number.isFinite(i))return a;let o="number"==typeof i?Number.isNaN(i)?"NaN":Number.isFinite(i)?void 0:String(i):void 0;return a.issues.push({expected:"number",code:"invalid_type",input:i,inst:t,...o?{received:o}:{}}),a}})),dW=o$("$ZodNumberFormat",(t,r)=>{lY.init(t,r),dL.init(t,r)}),dU=o$("$ZodBoolean",(t,r)=>{de.init(t,r),t._zod.pattern=lv,t._zod.parse=(a,n)=>{if(r.coerce)try{a.value=!!a.value}catch(t){}let i=a.value;return"boolean"==typeof i||a.issues.push({expected:"boolean",code:"invalid_type",input:i,inst:t}),a}}),dB=o$("$ZodBigInt",(t,r)=>{de.init(t,r),t._zod.pattern=lg,t._zod.parse=(a,n)=>
5{if(r.coerce)try{a.value=BigInt(a.value)}catch(t){}return"bigint"==typeof a.value||a.issues.push({expected:"bigint",code:"invalid_type",input:a.value,inst:t}),a}}),dF=((t,r)=>{lV.init(t,r),dB.init(t,r)},o$("$ZodNull",(t,r)=>{de.init(t,r),t._zod.pattern=lw,t._zod.values=new Set([null]),t._zod.parse=(r,a)=>{let n=r.value;return null===n||r.issues.push({expected:"null",code:"invalid_type",input:n,inst:t}),r}})),dY=o$("$ZodAny",(t,r)=>{de.init(t,r),t._zod.parse=t=>t}),dV=o$("$ZodUnknown",(t,r)=>{de.init(t,r),t._zod.parse=t=>t}),dq=o$("$ZodNever",(t,r)=>{de.init(t,r),t._zod.parse=(r,a)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:t}),r)});function dH(t,r,a){t.issues.length&&r.issues.push(...os(a,t.issues)),r.value[a]=t.value}(t,r)=>{de.init(t,r),t._zod.parse=(r,a)=>{let n=r.value;return void 0===n||r.issues.push({expected:"void",code:"invalid_type",input:n,inst:t}),r}},(t,r)=>{de.init(t,r),t._zod.parse=(a,n)=>{if(r.coerce)try{a.value=new Date(a.value)}catch(t){}let i=a.value,o=i instanceof Date;return o&&!Number.isNaN(i.getTime())||a.issues.push({expected:"date",code:"invalid_type",input:i,...o?{received:"Invalid Date"}:{},inst:t}),a}};let dZ=o$("$ZodArray",(t,r)=>{de.init(t,r);let a=oW.memoizer;a?.attach(t),t._zod.parse=(n,i)=>{let o=n.value;if(!Array.isArray(o))return n.issues.push({expected:"array",code:"invalid_type",input:o,inst:t}),n;n.value=a?a.alloc(t,n,Array(o.length),i):Array(o.length);let s=[],l=i?.abortEarly;for(let t=0;t<o.length;t++){let a=o[t],d=r.element._zod.run({value:a,issues:[]},i);if(d instanceof Promise)s.push(d.then(r=>dH(r,n,t)));else if(dH(d,n,t),l&&0!==d.issues.length&&oi(d))break}return s.length?Promise.all(s).then(()=>n):n}});function dK(t,r,a,n,i,o){let s=a in n,l="optional"===o;if(s||!l||"optional"!==i){if(t.issues.length){if(void 0!==i&&l&&!s)return;r.issues.push(...os(a,t.issues))}if(!s&&void 0===i){t.issues.length||r.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[a]});return}void 0===t.value?(s||"defaulted"===i&&!l)&&(r.value[a]=void 0):r.value[a]=t.value}}let dG=[];function dJ(t){let r=Object.keys(t.shape),a=Object.getOwnPropertySymbols(t.shape),n=a.length?a:dG,i=n.length?[...r,...n]:r;for(let r of i)if(!t.shape?.[r]?._zod?.traits?.has("$ZodType"))throw Error(`Invalid element at key "${String(r)}": expected a Zod schema`);let o=i5(t.shape);return{...t,allKeys:i,symbolKeys:n,keySet:new Set(r),numKeys:r.length,optionalKeys:new Set(o)}}function dX(t,r,a,n,i,o,s){let l=[],d=i.keySet,c=i.catchall._zod,u=c.def.type,h=c.optin,p=c.optout,m=0;for(let i in r){if(s&&a.issues.length!==m){if(oi(a,m))break;m=a.issues.length}if(d.has(i))continue;if("__proto__"===i){"never"===u&&l.push(i);continue}if("never"===u){l.push(i);continue}let o=c.run({value:r[i],issues:[]},n);o instanceof Promise?t.push(o.then(t=>dK(t,a,i,r,h,p))):dK(o,a,i,r,h,p)}return(l.length&&a.issues.push({code:"unrecognized_keys",keys:l,input:r,inst:o,continue:!0}),t.length)?Promise.all(t).then(()=>a):a}let dQ=o$("$ZodObject",(t,r)=>{let a;de.init(t,r);let n=Object.getOwnPropertyDescriptor(r,"shape"),i=n?.get?n.get.raw:r.shape??{};if(i){let t=()=>{let a={...i};return Object.defineProperty(r,"shape",{value:a}),t.raw=a,a};t.raw=i,Object.defineProperty(r,"shape",{get:t})}let o=ij(()=>dJ(r));oI(t,"propValues",t=>{let r=t.def.shape,a={};for(let t in r){let n=r[t]._zod;if(n.values){for(let r of(Object.prototype.hasOwnProperty.call(a,t)||iA(a,t,new Set),n.values))a[t].add(r);void 0!==n.optin&&a[t].add(void 0)}}return a});let s=r.catchall,l=oW.memoizer;l?.attach(t),t._zod.parse=(r,n)=>{a??(a=o.value);let i=r.value;if(!iY(i))return r.issues.push({expected:"object",code:"invalid_type",input:i,inst:t}),r;r.value=l?l.alloc(t,r,{},n):{};let d=[],c=a.shape,u=n?.abortEarly,h=r.issues.length;for(let t of a.allKeys){if(u&&r.issues.length!==h){if(oi(r,h))break;h=r.issues.length}if("__proto__"===t)continue;let a=c[t],o=a._zod.optin,s=a._zod.optout,l=a._zod.run({value:i[t],issues:[]},n);l instanceof Promise?d.push(l.then(a=>dK(a,r,t,i,o,s))):dK(l,r,t,i,o,s)}return s?dX(d,i,r,n,o.value,t,!0===u):d.length?Promise.all(d).then(()=>r):r}}),d0=o$("$ZodObjectJIT",(t,r)=>{let a,n;dQ.init(t,r);let i=t._zod.parse,o=ij(()=>dJ(r)),s=oW.memoizer,l=!oW.jitless,d=l&&iV.value,c=r.catchall;t._zod.parse=(u,h)=>{n??(n=o.value);let p=u.value;return iY(p)?l&&d&&h?.async===!1&&!0!==h.jitless?(a||(a=(r=>{let a=o.value,n=a.symbolKeys,i=new l9(["payload","ctx"],{shape:r,inst:t,memo:s,syms:n}),l=t=>`shape[${t}]._zod.run({ value: input[${t}], issues: [] }, ctx)`,d=(t,r)=>` 6 let ${t}_ab = false;
7 for (let i = 0; i < ${t}.issues.length; i++) { 8 const iss = ${t}.issues[i]; 9 iss.path = iss.path ? [${r}, ...iss.path] : [${r}]; 10 payload.issues.push(iss); 11 if (iss.continue !== true) ${t}_ab = true; 12 } 13 if (${t}_ab && ctx && ctx.abortEarly) { 14 payload.value = newResult; 15 return payload; 16 }`;i.write("const input = payload.value;");let c=Object.create(null),u=0;for(let t of a.allKeys)c[t]=`key_${u++}`;for(let t of(i.write(s?"const newResult = memo.alloc(inst, payload, {}, ctx);":"const newResult = {};"),a.allKeys)){if("__proto__"===t)continue;let a=c[t],o="symbol"==typeof t?`syms[${n.indexOf(t)}]`:iU(t),s=`${o} in input`,u=r[t],h=u?._zod?.optin,p=void 0!==h,m=u?._zod?.optout==="optional";if(i.write(`const ${a} = ${l(o)};`),p&&m){let t="optional"===h?`${a}_present`:`${a}.value !== undefined || ${a}_present`;i.write(` 17 const ${a}_present = ${s}; 18 if (!${a}.issues.length || ${a}_present) { 19 if (${a}.issues.length) {${d(a,o)} 20 } 21 22 if (${t}) { 23 newResult[${o}] = ${a}.value; 24 } 25 } 26 27 `)}else p?(i.write(` 28 if (${a}.issues.length) {${d(a,o)} 29 } 30 `),"defaulted"===h?i.write(`newResult[${o}] = ${a}.value;`):i.write(` 31 if (${a}.value !== undefined || ${s}) { 32 newResult[${o}] = ${a}.value; 33 } 34 `)):i.write(` 35 const ${a}_present = ${s}; 36 if (${a}.issues.length) {${d(a,o)} 37 } 38 if (!${a}_present && !${a}.issues.length) { 39 payload.issues.push({ 40 code: "invalid_type", 41 expected: "nonoptional", 42 input: undefined, 43 path: [${o}] 44 }); 45 if (ctx && ctx.abortEarly) { 46 payload.value = newResult; 47 return payload; 48 } 49 } 50 51 if (${a}_present) { 52 newResult[${o}] = ${a}.value; 53 } 54 55 `)}return i.write("payload.value = newResult;"),i.write("return payload;"),i.compile()})(r.shape)),u=a(u,h),c)?dX([],p,u,h,n,t,h?.abortEarly===!0):u:i(u,h):(u.issues.push({expected:"object",code:"invalid_type",input:p,inst:t}),u)}});function d1(t,r,a,n){for(let a of t)if(0===a.issues.length)return r.value=a.value,r;let i=t.filter(t=>!oi(t));return 1===i.length?(r.value=i[0].value,i[0]):(r.issues.push({code:"invalid_union",input:r.value,inst:a,errors:t.map(t=>t.issues.map(t=>oc(t,n,oU())))}),r)}let d2=o$("$ZodUnion",(t,r)=>{de.init(t,r),oI(t,"optin",t=>t.def.options.some(t=>"defaulted"===t._zod.optin)?"defaulted":t.def.options.some(t=>void 0!==t._zod.optin)?"optional":void 0),oI(t,"optout",t=>t.def.options.some(t=>"optional"===t._zod.optout)?"optional":void 0),oI(t,"values",t=>{if(t.def.options.every(t=>t._zod.values))return new Set(t.def.options.flatMap(t=>Array.from(t._zod.values)))}),oI(t,"pattern",t=>{if(t.def.options.every(t=>t._zod.pattern)){let r=t.def.options.map(t=>t._zod.pattern);return RegExp(`^(${r.map(t=>i_(t.source)).join("|")})$`)}});let a=1===r.options.length?r.options[0]._zod.run:null;t._zod.parse=(n,i)=>{if(a)return a(n,i);let o=!1,s=[];for(let t of r.options){let r=t._zod.run({value:n.value,issues:[]},i);if(r instanceof Promise)s.push(r),o=!0;else{if(0===r.issues.length)return r;s.push(r)}}return o?Promise.all(s).then(r=>d1(r,n,t,i)):d1(s,n,t,i)}});function d5(t,r,a,n){let i=[];for(let r=0;r<t.length;r++)0===t[r].issues.length&&i.push(r);return 1===i.length?r.value=t[i[0]].value:0===i.length?r.issues.push({code:"invalid_union",input:r.value,inst:a,errors:t.map(t=>t.issues.map(t=>oc(t,n,oU())))}):r.issues.push({code:"invalid_union",input:r.value,inst:a,errors:[],inclusive:!1,matches:i}),r}(t,r)=>{d2.init(t,r),r.inclusive=!1;let a=1===r.options.length?r.options[0]._zod.run:null;t._zod.parse=(n,i)=>{if(a)return a(n,i);let o=!1,s=[];for(let t of r.options){let r=t._zod.run({value:n.value,issues:[]},i);r instanceof Promise?(s.push(r),o=!0):s.push(r)}return o?Promise.all(s).then(r=>d5(r,n,t,i)):d5(s,n,t,i)}};let d4=o$("$ZodDiscriminatedUnion",(t,r)=>{r.inclusive=!1,d2.init(t,r);let a=t._zod.parse;oI(t,"propValues",t=>{let r={},a=0;for(let n of t.def.options){let i=n._zod.propValues;if(!i||0===Object.keys(i).length)throw Error(`Invalid discriminated union option at index "${t.def.options.indexOf(n)}"`);for(let[n,o]of(i[t.def.discriminator]?.has(void 0)&&a++,Object.entries(i)))for(let t of(Object.prototype.hasOwnProperty.call(r,n)||iA(r,n,new Set),o))r[n].add(t)}return!t.def.unionFallback&&a>1&&r[t.def.discriminator]?.delete(void 0),r}),r.options.forEach((t,a)=>{let n=iI(t._zod.def);if(n&&!Object.prototype.hasOwnProperty.call(n,r.discriminator))throw Error(`Invalid discriminated union option at index "${a}"`)});let n=ij(()=>(function(t){let r=new Map;for(let a of t.options){let n=a._zod.propValues?.[t.discriminator];
55if(!n||0===n.size)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(a)}"`);for(let t of n)if(r.has(t)){if(void 0!==t)throw Error(`Duplicate discriminator value "${String(t)}"`);r.set(t,null)}else r.set(t,a)}return r})(r));t._zod.parse=(i,o)=>{let s=i.value;if(!iY(s))return i.issues.push({code:"invalid_type",expected:"object",input:s,inst:t}),i;let l=s?.[r.discriminator],d=n.value.get(l);return d&&(void 0!==l||"backward"!==o.direction)?d._zod.run(i,o):r.unionFallback||"backward"===o.direction?a(i,o):(i.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:r.discriminator,options:Array.from(n.value.keys()).filter(t=>null!==n.value.get(t)),input:s,path:[r.discriminator],inst:t}),i)}}),d3=o$("$ZodIntersection",(t,r)=>{de.init(t,r),t._zod.parse=(t,a)=>{let n=t.value,i=r.left._zod.run({value:n,issues:[]},a),o=r.right._zod.run({value:n,issues:[]},a);return i instanceof Promise||o instanceof Promise?Promise.all([i,o]).then(([r,a])=>d6(t,r,a)):d6(t,i,o)}});function d6(t,r,a){let n,i=new Map,o=new Map,s=(t,r)=>{let a;if("unrecognized_keys"!==t.code||t.path?.length)if("invalid_key"!==t.code||"record"!==t.origin||t.path?.length!==1)return!1;else{let r=String(t.path[0]);o.has(r)||o.set(r,t),a=[r]}else n??(n=t),a=t.keys;for(let t of a)i.has(t)||i.set(t,{}),i.get(t)[r]=!0;return!0};for(let a of r.issues)s(a,"l")||t.issues.push(a);for(let r of a.issues)s(r,"r")||t.issues.push(r);let l=[...i].filter(([,t])=>t.l&&t.r).map(([t])=>t);if(l.length){let r=n?l.filter(t=>n.keys.includes(t)):[];for(let a of(r.length&&t.issues.push({...n,keys:r}),l))!r.includes(a)&&o.has(a)&&t.issues.push(o.get(a))}let d=function t(r,a){if(r===a||r instanceof Date&&a instanceof Date&&+r==+a)return{valid:!0,data:r};if(iq(r)&&iq(a)){let n=Object.keys(a),i=Object.keys(r).filter(t=>-1!==n.indexOf(t)),o={...r,...a};for(let n of(Object.prototype.hasOwnProperty.call(o,"__proto__")&&delete o.__proto__,i)){if("__proto__"===n)continue;let i=t(r[n],a[n]);if(!i.valid)return{valid:!1,mergeErrorPath:[n,...i.mergeErrorPath]};o[n]=i.data}return{valid:!0,data:o}}if(Array.isArray(r)&&Array.isArray(a)){if(r.length!==a.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let i=0;i<r.length;i++){let o=t(r[i],a[i]);if(!o.valid)return{valid:!1,mergeErrorPath:[i,...o.mergeErrorPath]};n.push(o.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}(r.value,a.value);if(!d.valid){if(oi(t))return t;throw Error(`Unmergable intersection. Error path: ${JSON.stringify(d.mergeErrorPath)}`)}return t.value=d.data,t}let d8=o$("$ZodTuple",(t,r)=>{de.init(t,r);let a=r.items,n=oW.memoizer;n?.attach(t),t._zod.parse=(i,o)=>{let s=i.value;if(!Array.isArray(s))return i.issues.push({input:s,inst:t,expected:"tuple",code:"invalid_type"}),i;i.value=n?n.alloc(t,i,[],o):[];let l=[],d=d9(a,"optin"),c=d9(a,"optout");if(!r.rest){if(s.length<d)return i.issues.push({code:"too_small",minimum:d,inclusive:!0,input:s,inst:t,origin:"array"}),i;s.length>a.length&&i.issues.push({code:"too_big",maximum:a.length,inclusive:!0,input:s,inst:t,origin:"array"})}let u=Array(a.length),h=r.rest?o?.abortEarly:void 0,p=!1;for(let t=0;t<a.length;t++){let r=a[t]._zod.run({value:s[t],issues:[]},o);r instanceof Promise?l.push(r.then(r=>{u[t]=r})):(u[t]=r,h&&!p&&r.issues.length&&(p=oi(r)))}if(r.rest&&!p){let t=a.length-1,n=s.slice(a.length),d=i.issues.length;for(let a of n){if(h&&i.issues.length!==d){if(oi(i,d))break;d=i.issues.length}t++;let n=r.rest._zod.run({value:a,issues:[]},o);n instanceof Promise?l.push(n.then(r=>d7(r,i,t))):d7(n,i,t)}}return l.length?Promise.all(l).then(()=>ce(u,i,a,s,c)):ce(u,i,a,s,c)}});function d9(t,r){for(let a=t.length-1;a>=0;a--)if(!("optin"===r?void 0!==t[a]._zod.optin:"optional"===t[a]._zod.optout))return a+1;return 0}function d7(t,r,a){t.issues.length&&r.issues.push(...os(a,t.issues)),r.value[a]=t.value}function ce(t,r,a,n,i){for(let o=0;o<a.length;o++){let s=t[o],l=o<n.length;if(!l&&o>=i&&"optional"===a[o]._zod.optin){r.value.length=o;break}if(s.issues.length){if(!l&&o>=i){r.value.length=o;break}r.issues.push(...os(o,s.issues))}r.value[o]=s.value}for(let t=r.value.length-1;t>=n.length;t--)if("optional"===a[t]._zod.optout&&void 0===r.value[t])r.value.length=t;else break;return r}let ct=o$("$ZodRecord",(t,r)=>{de.init(t,r);let a=oW.memoizer;a?.attach(t),t._zod.parse=(n,i)=>{let o=n.value;if(!iq(o))return n.issues.push({expected:"record",code:"invalid_type",input:o,inst:t}),n;let s=[],l=r.keyType._zod.values;if(l&&!r.partial){let d;n.value=a?a.alloc(t,n,{},i):{};let c=new Set;for(let a of l)if("string"==typeof a||"number"==typeof a||"symbol"==typeof a){if(c.add("number"==typeof a?a.toString():a),"__proto__"===a)continue;let l=r.keyType._zod.run({value:a,issues:[]},i);if(l instanceof Promise)throw Error("Async schemas not supported in object keys currently");if(l.issues.length){n.issues.push({code:"invalid_key",origin:"record",issues:l.issues.map(t=>
55oc(t,i,oU())),input:a,path:[a],inst:t});continue}let d=l.value;if("__proto__"===d)continue;let u=r.valueType._zod.run({value:o[a],issues:[]},i);u instanceof Promise?s.push(u.then(t=>{t.issues.length&&n.issues.push(...os(a,t.issues)),n.value[d]=t.value})):(u.issues.length&&n.issues.push(...os(a,u.issues)),n.value[d]=u.value)}for(let t in o)if(!c.has(t))if("loose"===r.mode){if("__proto__"===t)continue;n.value[t]=o[t]}else(d=d??[]).push(t);d&&d.length>0&&n.issues.push({code:"unrecognized_keys",input:o,inst:t,keys:d,continue:!0})}else{let d;for(let c of(n.value=a?a.alloc(t,n,{},i):{},Reflect.ownKeys(o))){if("__proto__"===c||!Object.prototype.propertyIsEnumerable.call(o,c))continue;let a=r.keyType._zod.run({value:c,issues:[]},i);if(a instanceof Promise)throw Error("Async schemas not supported in object keys currently");if("string"==typeof c&&lb.test(c)&&a.issues.length){let t=r.keyType._zod.run({value:Number(c),issues:[]},i);if(t instanceof Promise)throw Error("Async schemas not supported in object keys currently");0===t.issues.length&&(a=t)}if(a.issues.length){"loose"===r.mode?n.value[c]=o[c]:l?(d=d??[]).push(c):n.issues.push({code:"invalid_key",origin:"record",issues:a.issues.map(t=>oc(t,i,oU())),input:c,path:[c],inst:t});continue}let u=a.value;if("__proto__"===u)continue;let h=r.valueType._zod.run({value:o[c],issues:[]},i);h instanceof Promise?s.push(h.then(t=>{t.issues.length&&n.issues.push(...os(c,t.issues)),n.value[u]=t.value})):(h.issues.length&&n.issues.push(...os(c,h.issues)),n.value[u]=h.value)}d&&d.length>0&&n.issues.push({code:"unrecognized_keys",input:o,inst:t,keys:d,continue:!0})}return s.length?Promise.all(s).then(()=>n):n}});function cr(t,r,a,n,i,o,s){t.issues.length&&(iG.has(typeof n)?a.issues.push(...os(n,t.issues)):a.issues.push({code:"invalid_key",origin:"map",input:i,inst:o,issues:t.issues.map(t=>oc(t,s,oU()))})),r.issues.length&&(iG.has(typeof n)?a.issues.push(...os(n,r.issues)):a.issues.push({origin:"map",code:"invalid_element",input:i,inst:o,key:n,issues:r.issues.map(t=>oc(t,s,oU()))})),a.value.set(t.value,r.value)}function ca(t,r){t.issues.length&&r.issues.push(...t.issues),r.value.add(t.value)}(t,r)=>{de.init(t,r);let a=oW.memoizer;a?.attach(t),t._zod.parse=(n,i)=>{let o=n.value;if(!(o instanceof Map))return n.issues.push({expected:"map",code:"invalid_type",input:o,inst:t}),n;let s=[];n.value=a?a.alloc(t,n,new Map,i):new Map;let l=i?.abortEarly,d=n.issues.length;for(let[a,c]of o){if(l&&n.issues.length!==d){if(oi(n,d))break;d=n.issues.length}let u=r.keyType._zod.run({value:a,issues:[]},i),h=r.valueType._zod.run({value:c,issues:[]},i);u instanceof Promise||h instanceof Promise?s.push(Promise.all([u,h]).then(([r,s])=>{cr(r,s,n,a,o,t,i)})):cr(u,h,n,a,o,t,i)}return s.length?Promise.all(s).then(()=>n):n}},(t,r)=>{de.init(t,r);let a=oW.memoizer;a?.attach(t),t._zod.parse=(n,i)=>{let o=n.value;if(!(o instanceof Set))return n.issues.push({input:o,inst:t,expected:"set",code:"invalid_type"}),n;let s=[];n.value=a?a.alloc(t,n,new Set,i):new Set;let l=i?.abortEarly,d=n.issues.length;for(let t of o){if(l&&n.issues.length!==d){if(oi(n,d))break;d=n.issues.length}let a=r.valueType._zod.run({value:t,issues:[]},i);a instanceof Promise?s.push(a.then(t=>ca(t,n))):ca(a,n)}return s.length?Promise.all(s).then(()=>n):n}};let cn=o$("$ZodEnum",(t,r)=>{de.init(t,r);let a=ib(r.entries),n=new Set(a);t._zod.values=n,oI(t,"pattern",t=>{let r=ib(t.def.entries).filter(t=>iG.has(typeof t));return new RegExp(r.length?`^(${r.map(t=>iX(t.toString())).join("|")})$`:"^[^\\s\\S]$")}),t._zod.parse=(r,i)=>{let o=r.value;return n.has(o)||r.issues.push({code:"invalid_value",values:a,input:o,inst:t}),r}}),ci=o$("$ZodLiteral",(t,r)=>{de.init(t,r);let a=new Set(r.values);t._zod.values=a,oI(t,"pattern",t=>{let r=t.def.values;return new RegExp(r.length?`^(${r.map(t=>"string"==typeof t?iX(t):t?iX(t.toString()):String(t)).join("|")})$`:"^[^\\s\\S]$")}),t._zod.parse=(n,i)=>{let o=n.value;return a.has(o)||n.issues.push({code:"invalid_value",values:r.values,input:o,inst:t}),n}}),co=((t,r)=>{de.init(t,r),t._zod.parse=(r,a)=>{let n=r.value;return n instanceof File||r.issues.push({expected:"file",code:"invalid_type",input:n,inst:t}),r}},o$("$ZodTransform",(t,r)=>{de.init(t,r),t._zod.optin="optional",oW.memoizer?.guard(t),t._zod.parse=(a,n)=>{if("backward"===n.direction)throw new oL(t.constructor.name);let i=r.transform(a.value,a);if(n.async)return(i instanceof Promise?i:Promise.resolve(i)).then(t=>(a.value=t,a));if(i instanceof Promise)throw new oz;return a.value=i,a}}));
55function cs(t,r){return t.value=r.issues.length?void 0:r.value,t}let cl=o$("$ZodOptional",(t,r)=>{de.init(t,r),oI(t,"optin",t=>"defaulted"===t.def.innerType._zod.optin?"defaulted":"optional"),t._zod.optout="optional",oI(t,"values",t=>{let r=t.def.innerType._zod.values;return r?new Set([...r,void 0]):void 0}),oI(t,"pattern",t=>{let r=t.def.innerType._zod.pattern;return r?RegExp(`^(${i_(r.source)})?$`):void 0}),t._zod.parse=(t,a)=>{if(void 0===t.value){if("defaulted"!==r.innerType._zod.optin)return t;let n=r.innerType._zod.run({value:t.value,issues:[]},a);return n instanceof Promise?n.then(r=>cs(t,r)):cs(t,n)}return r.innerType._zod.run(t,a)}}),cd=o$("$ZodExactOptional",(t,r)=>{cl.init(t,r),oI(t,"values",t=>t.def.innerType._zod.values),oI(t,"pattern",t=>t.def.innerType._zod.pattern),t._zod.parse=(t,a)=>r.innerType._zod.run(t,a)}),cc=o$("$ZodNullable",(t,r)=>{de.init(t,r),oI(t,"optin",t=>t.def.innerType._zod.optin),oI(t,"optout",t=>t.def.innerType._zod.optout),oI(t,"pattern",t=>{let r=t.def.innerType._zod.pattern;return r?RegExp(`^(${i_(r.source)}|null)$`):void 0}),oI(t,"values",t=>t.def.innerType._zod.values?new Set([...t.def.innerType._zod.values,null]):void 0),t._zod.parse=(t,a)=>null===t.value?t:r.innerType._zod.run(t,a)}),cu=o$("$ZodDefault",(t,r)=>{de.init(t,r),t._zod.optin="defaulted",oI(t,"values",t=>t.def.innerType._zod.values),t._zod.parse=(t,a)=>{if("backward"===a.direction)return r.innerType._zod.run(t,a);if(void 0===t.value)return t.value=r.defaultValue,t;let n=r.innerType._zod.run(t,a);return n instanceof Promise?n.then(t=>ch(t,r)):ch(n,r)}});function ch(t,r){return void 0===t.value&&(t.value=r.defaultValue),t}let cp=o$("$ZodPrefault",(t,r)=>{de.init(t,r),t._zod.optin="defaulted",oI(t,"values",t=>t.def.innerType._zod.values),t._zod.parse=(t,a)=>("backward"===a.direction||void 0===t.value&&(t.value=r.defaultValue),r.innerType._zod.run(t,a))}),cm=o$("$ZodNonOptional",(t,r)=>{de.init(t,r),oI(t,"values",t=>{let r=t.def.innerType._zod.values;return r?new Set([...r].filter(t=>void 0!==t)):void 0}),t._zod.parse=(a,n)=>{let i=r.innerType._zod.run(a,n);return i instanceof Promise?i.then(r=>cf(r,t)):cf(i,t)}});function cf(t,r){return t.issues.length||void 0!==t.value||t.issues.push({code:"invalid_type",expected:"nonoptional",input:t.value,inst:r}),t}function cx(t,r,a,n){return r.issues.length?t.value=a.catchValue({...r,value:t.value,error:{issues:r.issues.map(t=>oc(t,n,oU()))},input:t.value}):(t.value=r.value,r.memo&&(t.memo=!0)),t}(t,r)=>{de.init(t,r),t._zod.parse=(t,a)=>{if("backward"===a.direction)throw new oL("ZodSuccess");let n=r.innerType._zod.run(t,a);return n instanceof Promise?n.then(r=>(t.value=0===r.issues.length,t)):(t.value=0===n.issues.length,t)}};let cg=o$("$ZodCatch",(t,r)=>{de.init(t,r),oI(t,"optin",t=>"defaulted"===t.def.innerType._zod.optin?"defaulted":"optional"),oI(t,"optout",t=>t.def.innerType._zod.optout),oI(t,"values",t=>t.def.innerType._zod.values),t._zod.parse=(t,a)=>{if("backward"===a.direction)return r.innerType._zod.run(t,a);let n=r.innerType._zod.run({value:t.value,issues:[]},a);return n instanceof Promise?n.then(n=>cx(t,n,r,a)):cx(t,n,r,a)}}),cy=((t,r)=>{de.init(t,r),t._zod.parse=(r,a)=>("number"==typeof r.value&&Number.isNaN(r.value)||r.issues.push({input:r.value,inst:t,expected:"nan",code:"invalid_type"}),r)},o$("$ZodPipe",(t,r)=>{de.init(t,r),oI(t,"values",t=>t.def.in._zod.values),oI(t,"optin",t=>t.def.in._zod.optin),oI(t,"optout",t=>t.def.out._zod.optout),oI(t,"propValues",t=>t.def.in._zod.propValues),t._zod.parse=(t,a)=>{if("backward"===a.direction){let n=r.out._zod.run(t,a);return n instanceof Promise?n.then(t=>cb(t,r.in,a)):cb(n,r.in,a)}let n=r.in._zod.run(t,a);return n instanceof Promise?n.then(t=>cb(t,r.out,a)):cb(n,r.out,a)}}));function cb(t,r,a){return t.issues.some(t=>"unrecognized_keys"!==t.code)?(t.aborted=!0,t):r._zod.run({value:t.value,issues:t.issues},a)}function cv(t,r,a){if(t.issues.length)return t.aborted=!0,t;if("forward"===(a.direction||"forward")){let n=r.transform(t.value,t);return n instanceof Promise?n.then(n=>cw(t,n,r.out,a)):cw(t,n,r.out,a)}{let n=r.reverseTransform(t.value,t);return n instanceof Promise?n.then(n=>cw(t,n,r.in,a)):cw(t,n,r.in,a)}}function cw(t,r,a,n){return t.issues.length?(t.aborted=!0,t):a._zod.run({value:r,issues:t.issues},n)}(t,r)=>{de.init(t,r),oI(t,"values",t=>t.def.in._zod.values),oI(t,"optin",t=>t.def.in._zod.optin),oI(t,"optout",t=>t.def.out._zod.optout),oI(t,"propValues",t=>t.def.in._zod.propValues),t._zod.parse=(t,a)=>{if("forward"===(a.direction||"forward")){let n=r.in._zod.run(t,a);return n instanceof Promise?n.then(t=>cv(t,r,a)):cv(n,r,a)}{let n=r.out._zod.run(t,a);return n instanceof Promise?n.then(t=>cv(t,r,a)):cv(n,r,a)}}},(t,r)=>{cy.init(t,r)};let ck=o$("$ZodReadonly",(t,r)=>{de.init(t,r),oI(t,"propValues",t=>t.def.innerType._zod.propValues),oI(t,"values",t=>t.def.innerType._zod.values),oI(t,"optin",t=>t.def.innerType?._zod?.optin),oI(t,"optout",t=>t.def.innerType?._zod?.optout),t._zod.parse=(t,a)=>{if("backward"===a.direction)return r.innerType._zod.run(t,a);let n=r.innerType._zod.run(t,a);return n instanceof Promise?n.then(cj):cj(n)}});function cj(t){return t.memo||(t.value=Object.freeze(t.value)),t}(t,r)=>{de.init(t,r);let a=[];for(let t of r.parts)if("object"==typeof t&&null!==t){let r=function t(r){let a=r._zod.def,n=r._zod.pattern?.source,i=a.innerType??r._zod.innerType;if(i){let r=i._zod.pattern?.source,a=t(i);return n&&r&&a&&a!==r?n.replace(i_(r),()=>i_(a)):n}if(a.options){let r=a.options.map(t);if(r.every(Boolean))return`^(${r.map(t=>i_(t)).join("|")})$`}return function(t){let r,a,n=t._zod.def,i=n.pattern,o=!!n.format?.includes("int");for(let t of n.checks??[]){let n=t._zod.def;n.pattern&&(i=n.pattern),o||(o=!!n.format?.includes("int"));let s=n.minimum??n.length,l=n.maximum??n.length;void 0!==s&&(void 0===r||s>r)&&(r=s),void 0!==l&&(void 0===a||l<a)&&(a=l)}if(i)return i.source;if(void 0!==r&&void 0!==a&&r>a)return"(?!)";if(void 0!==r||void 0!==a)return lx({minimum:r,maximum:a}).source;let s=t._zod.pattern;return(o&&s===lb?ly:s)?.source}(r)}(t);if(!r)throw Error(`Invalid template literal part, no pattern found: ${[...t._zod.traits].shift()}`);a.push(i_(r))}else if(null===t||iJ.has(typeof t))a.push(iX(`${t}`));else throw Error(`Invalid template literal part: ${t}`);t._zod.pattern=RegExp(`^${a.join("")}$`),t._zod.parse=(a,n)=>
55("string"!=typeof a.value?a.issues.push({input:a.value,inst:t,expected:"string",code:"invalid_type"}):(t._zod.pattern.lastIndex=0,t._zod.pattern.test(a.value)||a.issues.push({input:a.value,inst:t,code:"invalid_format",format:r.format??"template_literal",pattern:t._zod.pattern.source})),a)},(t,r)=>{de.init(t,r),t._zod.parse=(t,a)=>Promise.resolve(t.value).then(t=>r.innerType._zod.run({value:t,issues:[]},a))};let cN=o$("$ZodLazy",(t,r)=>{de.init(t,r),iC(t._zod,"innerType",()=>(r._cachedInner||(r._cachedInner=r.getter()),r._cachedInner)),oI(t,"pattern",t=>t.innerType?._zod?.pattern),oI(t,"propValues",t=>t.innerType?._zod?.propValues),oI(t,"optin",t=>t.innerType?._zod?.optin??void 0),oI(t,"optout",t=>t.innerType?._zod?.optout??void 0),t._zod.parse=(r,a)=>t._zod.innerType._zod.run(r,a)}),c_=o$("$ZodCustom",(t,r)=>{l$.init(t,r),de.init(t,r),t._zod.parse=(t,r)=>t,t._zod.check=a=>{let n=a.value,i=r.fn(n);if(i instanceof Promise)return i.then(r=>cE(r,a,n,t));cE(i,a,n,t)}});function cE(t,r,a,n){if(!t){let t={code:"custom",input:a,inst:n,path:[...n._zod.def.path??[]],continue:!n._zod.def.abort};n._zod.def.params&&(t.params=n._zod.def.params),r.issues.push(ox(t))}}(W=globalThis).__zod_globalRegistry??(W.__zod_globalRegistry=new class t{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...r){let a=r[0];return this._map.set(t,a),a&&"object"==typeof a&&"id"in a&&this._idmap.set(a.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){let r=this._map.get(t);return r&&"object"==typeof r&&"id"in r&&this._idmap.delete(r.id),this._map.delete(t),this}get(t){let r=t._zod.parent;if(r){let a={...this.get(r)??{}};delete a.id;let n={...a,...this._map.get(t)};return Object.keys(n).length?n:void 0}return this._map.get(t)}has(t){return this._map.has(t)}});let cS=globalThis.__zod_globalRegistry;function cC(t,...r){for(let a of r)for(let r of Reflect.ownKeys(a))Object.prototype.propertyIsEnumerable.call(a,r)&&iA(t,r,a[r]);return t}function cT(t){let r=t?.target??"draft-2020-12";return"draft-4"===r&&(r="draft-04"),"draft-7"===r&&(r="draft-07"),{processors:t.processors??{},metadataRegistry:t?.metadata??cS,target:r,unrepresentable:t?.unrepresentable??"throw",override:t?.override??(()=>{}),io:t?.io??"output",counter:0,seen:new Map,sharedDefsExtractedFor:void 0,sharedEmitDoneFor:void 0,cycles:t?.cycles??"ref",reused:t?.reused??"inline",intersections:[],deferred:[],external:t?.external??void 0}}function cA(t,r,a,n,i){let o="function"==typeof r.unrepresentable?r.unrepresentable({zodSchema:t,path:n.path,message:i}):r.unrepresentable;if("any"===o)return!1;if(void 0===o||"throw"===o)throw Error(i);return Object.assign(a,o),!0}function cI(t,r,a={path:[],schemaPath:[]}){var n;let i=t._zod.def,o=r.seen.get(t);if(o)return o.count++,a.schemaPath.includes(t)&&(o.cycle=a.path),o.schema;let s={schema:{},count:1,cycle:void 0,path:a.path};r.seen.set(t,s),r.sharedDefsExtractedFor=void 0,r.sharedEmitDoneFor=void 0;let l=t._zod.toJSONSchema?.();if(l)s.schema=l;else{let n={...a,schemaPath:[...a.schemaPath,t],path:a.path};if(t._zod.processJSONSchema)t._zod.processJSONSchema(r,s.schema,n);else{let a=s.schema,o=r.processors[i.type];if(!o)throw Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);o(t,r,a,n)}let o=t._zod.parent;o&&(s.ref||(s.ref=o),cI(o,r,n),r.seen.get(o).isParent=!0)}let d=r.metadataRegistry.get(t);return d&&cC(s.schema,d),"input"===r.io&&function t(r,a){let n=a??{seen:new Set};if(n.seen.has(r))return!1;n.seen.add(r);let i=r._zod.def;if("transform"===i.type)return!0;if("array"===i.type)return t(i.element,n);if("set"===i.type)return t(i.valueType,n);if("lazy"===i.type)return t(i.getter(),n);if("promise"===i.type||"optional"===i.type||"nonoptional"===i.type||"nullable"===i.type||"readonly"===i.type||"default"===i.type||"prefault"===i.type||"catch"===i.type)return t(i.innerType,n);if("intersection"===i.type)return t(i.left,n)||t(i.right,n);if("record"===i.type||"map"===i.type)return t(i.keyType,n)||t(i.valueType,n);if("pipe"===i.type)return!!r._zod.traits.has("$ZodCodec")||t(i.in,n)||t(i.out,n);if("object"===i.type){for(let r in i.shape)if(t(i.shape[r],n))return!0;return!1}
55if("union"===i.type){for(let r of i.options)if(t(r,n))return!0;return!1}if("tuple"===i.type){for(let r of i.items)if(t(r,n))return!0;if(i.rest&&t(i.rest,n))return!0}return!1}(t)&&(delete s.schema.examples,delete s.schema.default),"input"===r.io&&"_prefault"in s.schema&&((n=s.schema).default??(n.default=s.schema._prefault)),delete s.schema._prefault,r.seen.get(t).schema}function cM(t){return t.replace(/~/g,"~0").replace(/\//g,"~1")}function cP(t,r){let a=t.seen.get(r);if(!a)throw Error("Unprocessed schema. This is a bug in Zod.");if(t.external&&t.sharedDefsExtractedFor===t.external)return;let n=new Map;for(let r of t.seen.entries()){let a=t.metadataRegistry.get(r[0])?.id;if(a){let t=n.get(a);if(t&&t!==r[0])throw Error(`Duplicate schema id "${a}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);n.set(a,r[0])}}let i=r=>{if(r[1].schema.$ref)return;let n=r[1],{ref:i,defId:o}=(r=>{let n="draft-2020-12"===t.target?"$defs":"definitions";if(t.external){let a=t.external.registry.get(r[0])?.id,i=t.external.uri??(t=>t);if(a)return{ref:i(a)};let o=r[1].defId??r[1].schema.id??`schema${t.counter++}`;return r[1].defId=o,{defId:o,ref:`${i("__shared")}#/${n}/${cM(o)}`}}let i=`#/${n}/`;if(r[1]===a&&!r[1].schema.id)return{ref:"#"};let o=r[1].schema.id??`__schema${t.counter++}`;return{defId:o,ref:i+cM(o)}})(r);n.def={...n.schema},o&&(n.defId=o);let s=n.schema;for(let t in s)delete s[t];s.$ref=i};if("throw"===t.cycles)for(let r of t.seen.entries()){let t=r[1];if(t.cycle)throw Error(`Cycle detected: #/${t.cycle?.join("/")}/<root> 56 57Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let a of t.seen.entries()){let n=a[1];if(r===a[0]){i(a);continue}if(t.external){let n=t.external.registry.get(a[0])?.id;if(r!==a[0]&&n){i(a);continue}}if(t.metadataRegistry.get(a[0])?.id||n.cycle){i(a);continue}n.count>1&&"ref"===t.reused&&i(a)}t.external&&(t.sharedDefsExtractedFor=t.external)}let cO=new Set(["type","properties","required","additionalProperties"]),cD=["oneOf","anyOf"];function cR(t){let r=t.additionalProperties;return void 0===r||!1===r||"object"!=typeof r||null===r?null:Object.keys(r).length?r:null}function c$(t){let r=[];for(let a of t){if("object"!=typeof a||"object"!==a.type)return null;for(let t in a)if(!cO.has(t))return null;r.push(a)}let a={},n=new Set;for(let t of r){for(let n in t.properties){if(Object.prototype.hasOwnProperty.call(a,n))continue;let t=[];for(let a of r){let r=a.properties?.[n]??cR(a);null!=r&&(t.some(t=>JSON.stringify(t)===JSON.stringify(r))||t.push(r))}iA(a,n,1===t.length?t[0]:c$(t)??{allOf:t})}for(let r of t.required??[])n.add(r)}let i={type:"object",properties:a};if(n.size&&(i.required=[...n]),r.every(t=>!1===t.additionalProperties))i.additionalProperties=!1;else{let t=[];for(let a of r){let r=cR(a);r&&!t.some(t=>JSON.stringify(t)===JSON.stringify(r))&&t.push(r)}1===t.length?i.additionalProperties=t[0]:t.length>1&&(i.additionalProperties={allOf:t})}return i}function cz(t,r){let a=t.seen.get(r);if(!a)throw Error("Unprocessed schema. This is a bug in Zod.");let n=r=>{let a=t.seen.get(r);if(null===a.ref)return;let i=a.def??a.schema,o={...i},s=a.ref;if(a.ref=null,s){n(s);let a=t.seen.get(s),l=a.schema;if(l.$ref&&("draft-07"===t.target||"draft-04"===t.target||"openapi-3.0"===t.target)?(i.allOf=i.allOf??[],i.allOf.push(l)):cC(i,l),cC(i,o),r._zod.parent===s)for(let t in i)"$ref"!==t&&"allOf"!==t&&(t in o||delete i[t]);if(l.$ref&&a.def)for(let t in i)"$ref"!==t&&"allOf"!==t&&t in a.def&&JSON.stringify(i[t])===JSON.stringify(a.def[t])&&delete i[t]}let l=r._zod.parent;if(l&&l!==s){n(l);let r=t.seen.get(l);if(r?.schema.$ref&&(i.$ref=r.schema.$ref,r.def))for(let t in i)"$ref"!==t&&"allOf"!==t&&t in r.def&&JSON.stringify(i[t])===JSON.stringify(r.def[t])&&delete i[t]}t.override({zodSchema:r,jsonSchema:i,path:a.path??[]})};if(!t.external||t.sharedEmitDoneFor!==t.external){for(let r of[...t.seen.entries()].reverse())n(r[0]);if("openapi-3.0"!==t.target)for(let r of t.seen.entries())!function t(r){let a=r.anyOf;if(!Array.isArray(a)||0===a.length||void 0!==r.type)return;let n=[];for(let r of a){if(!r||"object"!=typeof r)return;t(r);let a=Object.keys(r);if(1!==a.length||"type"!==a[0])return;let i=r.type;for(let t of Array.isArray(i)?i:[i]){if("string"!=typeof t)return;n.includes(t)||n.push(t)}}delete r.anyOf,r.type=1===n.length?n[0]:n}(r[1].def??r[1].schema);for(let r of t.deferred)r();if(t.intersections.length){let r=new Map;for(let a of t.seen.values())for(let t of[a.schema,a.def]){let a=t?.allOf;if(!Array.isArray(a))continue;let n=r.get(a);n?n.push(t):r.set(a,[t])}for(let a of t.intersections)for(let t of r.get(a)??[])!function(t){let r=t.allOf;if(!Array.isArray(r)||r.length<2)return;for(let r of cO)if(r in t)return;let a=r.filter(t=>cD.some(r=>Array.isArray(t[r]))),n=null;if(a.length){let t=a[0],i=cD.find(r=>Array.isArray(t[r]));if(1!==Object.keys(t).length)return;let o=r.filter(r=>r!==t),s=t[i].map(t=>c$([...o,t]));if(s.some(t=>!t))return;n={[i]:s}}else n=c$(r);n&&(delete t.allOf,cC(t,n))}(t)}}let i={};
57if("draft-2020-12"===t.target?i.$schema="https://json-schema.org/draft/2020-12/schema":"draft-07"===t.target?i.$schema="http://json-schema.org/draft-07/schema#":"draft-04"===t.target?i.$schema="http://json-schema.org/draft-04/schema#":t.target,t.external?.uri){let a=t.external.registry.get(r)?.id;if(!a)throw Error("Schema is missing an `id` property");i.$id=t.external.uri(a)}cC(i,a.defId?a.schema:a.def??a.schema);let o=t.metadataRegistry.get(r)?.id;void 0!==o&&i.id===o&&delete i.id;let s=t.external?.defs??{};if(!t.external||t.sharedEmitDoneFor!==t.external)for(let r of t.seen.entries()){let t=r[1];t.def&&t.defId&&(t.def.id===t.defId&&delete t.def.id,iA(s,t.defId,t.def))}t.external&&(t.sharedEmitDoneFor=t.external),t.external||Object.keys(s).length>0&&("draft-2020-12"===t.target?i.$defs=s:i.definitions=s);try{let a=JSON.parse(JSON.stringify(i));return Object.defineProperty(a,"~standard",{value:{...r["~standard"],jsonSchema:{input:cL(r,"input",t.processors),output:cL(r,"output",t.processors)}},enumerable:!1,writable:!1}),a}catch(t){throw Error("Error converting schema to JSON.")}}let cL=(t,r,a={})=>n=>{let{libraryOptions:i,target:o}=n??{},s=cT({...i??{},target:o,io:r,processors:a});return cI(t,s),cP(s,t),cz(s,t)},cW=(t,r,a)=>{(void 0===t[r]||a>t[r])&&(t[r]=a)},cU=(t,r,a)=>{(void 0===t[r]||a<t[r])&&(t[r]=a)},cB=(t,r)=>{cW(t,"minimum",r),cU(t,"maximum",r)},cF=(t,r)=>{t.multipleOf??(t.multipleOf=[]),t.multipleOf.includes(r)||t.multipleOf.push(r)},cY=(t,r)=>{t.patterns??(t.patterns=new Set),t.patterns.add(r)},cV=(t,r)=>{t.mime=t.mime?t.mime.filter(t=>r.includes(t)):[...r]},cq=(t,r)=>{t.format=r,r.includes("int")&&(t.isInt=!0)},cH=(t,r)=>cW(t,"minimum",r.minimum),cZ=(t,r)=>cU(t,"maximum",r.maximum),cK=t=>(r,a)=>{cq(r,a.format);let[n,i]=t[a.format];cW(r,"minimum",n),cU(r,"maximum",i)},cG={greater_than:(t,r)=>cW(t,r.inclusive?"minimum":"exclusiveMinimum",r.value),less_than:(t,r)=>cU(t,r.inclusive?"maximum":"exclusiveMaximum",r.value),multiple_of:(t,r)=>cF(t,r.value),number_format:cK(i4),bigint_format:cK(i3),min_length:cH,max_length:cZ,length_equals:(t,r)=>cB(t,r.length),min_size:cH,max_size:cZ,size_equals:(t,r)=>cB(t,r.size),string_format:(t,r)=>{cq(t,r.format),r.pattern&&cY(t,r.pattern),("base64"===r.format||"base64url"===r.format)&&(t.contentEncoding=r.format),(r.local||-1===r.precision)&&(t.laxFormat=!0)},mime_type:(t,r)=>cV(t,r.mime)};function cJ(t){let r={},a=t._zod.def;for(let n of t._zod.traits.has("$ZodCheck")?[t,...a.checks??[]]:a.checks??[])cG[n._zod.def.check]?.(r,n._zod.def);let n=t._zod.bag;for(let t of(void 0!==n.minimum&&cW(r,"minimum",n.minimum),void 0!==n.exclusiveMinimum&&cW(r,"exclusiveMinimum",n.exclusiveMinimum),void 0!==n.maximum&&cU(r,"maximum",n.maximum),void 0!==n.exclusiveMaximum&&cU(r,"exclusiveMaximum",n.exclusiveMaximum),void 0!==n.multipleOf&&cF(r,n.multipleOf),void 0!==n.format&&(r.format??(r.format=n.format),n.format.includes("int")&&(r.isInt=!0)),n.mime&&cV(r,n.mime),n.patterns??[]))cY(r,t);return r}let cX={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},cQ=new Map([[dM,ln],[dO,li]]),c0=t=>cQ.get(t)??t,c1=(t,r,a,n)=>{a.type="string";let{minimum:i,maximum:o,format:s,patterns:l,contentEncoding:d,laxFormat:c}=cJ(t);if("number"==typeof i&&(a.minLength=i),"number"==typeof o&&(a.maxLength=o),s&&(a.format=cX[s]??s,""===a.format&&delete a.format,("time"===s||c)&&delete a.format),d&&(a.contentEncoding=d),l&&l.size>0){let t=[...l].map(c0);1===t.length?a.pattern=t[0].source:t.length>1&&(a.allOf=[...t.map(t=>({..."draft-07"===r.target||"draft-04"===r.target||"openapi-3.0"===r.target?{type:"string"}:{},pattern:t.source}))])}},c2=(t,r,a,n)=>{let{minimum:i,maximum:o,multipleOf:s,exclusiveMaximum:l,exclusiveMinimum:d,isInt:c}=cJ(t);a.type=c?"integer":"number";let u="number"==typeof d&&d>=(i??-1/0),h="number"==typeof l&&l<=(o??1/0),p="draft-04"===r.target||"openapi-3.0"===r.target;if(u?p?(a.minimum=d,a.exclusiveMinimum=!0):a.exclusiveMinimum=d:"number"==typeof i&&(a.minimum=i),h?p?(a.maximum=l,a.exclusiveMaximum=!0):a.exclusiveMaximum=l:"number"==typeof o&&(a.maximum=o),s){let i=new Set;for(let o of s)Number.isFinite(o)&&0!==o?i.add(Math.abs(o)):cA(t,r,a,n,`A multipleOf divisor of ${o} cannot be represented in JSON Schema`);let[o,...l]=i;void 0!==o&&(a.multipleOf=o),l.length&&(a.allOf=[...a.allOf??[],...l.map(t=>({multipleOf:t}))])}},c5=(t,r,a,n)=>{a.type="boolean"},c4=(t,r,a,n)=>{cA(t,r,a,n,"BigInt cannot be represented in JSON Schema")},c3=(t,r,a,n)=>{"openapi-3.0"===r.target?(a.type="string",a.nullable=!0,a.enum=[null]):a.type="null"},c6=(t,r,a,n)=>{a.not={}},c8=(t,r,a,n)=>{},c9=(t,r,a,n)=>{},c7=(t,r,a,n)=>{let i=ib(t._zod.def.entries);if(0===i.length){a.not={};return}i.every(t=>"number"==typeof t)&&(a.type="number"),i.every(t=>"string"==typeof t)&&(a.type="string"),a.enum=i},ue=(t,r,a,n)=>{let i=t._zod.def;if(0===i.values.length){a.not={};return}let o=[];for(let s of i.values)if(void 0===s){if(cA(t,r,a,n,"Literal `undefined` cannot be represented in JSON Schema"))return}else if("bigint"==typeof s){if(cA(t,r,a,n,"BigInt literals cannot be represented in JSON Schema"))return;o.push(Number(s))}else o.push(s);if(0===o.length);
57else if(1===o.length){let t=o[0];a.type=null===t?"null":typeof t,"draft-04"===r.target||"openapi-3.0"===r.target?a.enum=[t]:a.const=t}else o.every(t=>"number"==typeof t)&&(a.type="number"),o.every(t=>"string"==typeof t)&&(a.type="string"),o.every(t=>"boolean"==typeof t)&&(a.type="boolean"),o.every(t=>null===t)&&(a.type="null"),a.enum=o},ut=(t,r,a,n)=>{cA(t,r,a,n,"Custom types cannot be represented in JSON Schema")},ur=(t,r,a,n)=>{cA(t,r,a,n,"Transforms cannot be represented in JSON Schema")},ua=(t,r,a,n)=>{let i=t._zod.def,{minimum:o,maximum:s}=cJ(t);"number"==typeof o&&(a.minItems=o),"number"==typeof s&&(a.maxItems=s),a.type="array",a.items=cI(i.element,r,{...n,path:[...n.path,"items"]})};function un(t){let r=t._zod.def;return"pipe"===r.type&&r.in._zod.traits.has("$ZodTransform")?un(r.out):"catch"===r.type?un(r.innerType):t._zod.optin}let ui=(t,r,a,n)=>{let i=t._zod.def,o=i.shape;if(Object.getOwnPropertySymbols(o).length&&cA(t,r,a,n,"Symbol keys cannot be represented in JSON Schema"))return;for(let t in a.type="object",a.properties={},o)iA(a.properties,t,cI(o[t],r,{...n,path:[...n.path,"properties",t]}));let s=[];for(let t of Object.keys(o)){let a=i.shape[t];("input"===r.io?void 0===un(a):void 0===a._zod.optout)&&s.push(t)}s.length>0&&(a.required=s),i.catchall?._zod.def.type==="never"?a.additionalProperties=!1:i.catchall?i.catchall&&(a.additionalProperties=cI(i.catchall,r,{...n,path:[...n.path,"additionalProperties"]})):"output"===r.io&&(a.additionalProperties=!1)},uo=(t,r,a,n)=>{let i=t._zod.def,o=!1===i.inclusive,s=i.options.map((t,a)=>cI(t,r,{...n,path:[...n.path,o?"oneOf":"anyOf",a]}));o?a.oneOf=s:a.anyOf=s},us=(t,r,a,n)=>{let i=t._zod.def,o=cI(i.left,r,{...n,path:[...n.path,"allOf",0]}),s=cI(i.right,r,{...n,path:[...n.path,"allOf",1]}),l=t=>"allOf"in t&&1===Object.keys(t).length,d=[...l(o)?o.allOf:[o],...l(s)?s.allOf:[s]];a.allOf=d,r.intersections.push(d)},ul=new WeakMap,ud=(t,r,a,n)=>{let i=t._zod.def;a.type="object";let o=i.keyType,s=cJ(o).patterns;if("loose"===i.mode&&s&&s.size>0){let t=cI(i.valueType,r,{...n,path:[...n.path,"patternProperties","*"]});for(let r of(a.patternProperties={},s))iA(a.patternProperties,c0(r).source,t)}else{if("draft-07"===r.target||"draft-2020-12"===r.target){a.propertyNames=cI(i.keyType,r,{...n,path:[...n.path,"propertyNames"]});let o=ul.get(r);o||(o=[],ul.set(r,o),r.deferred.push(()=>(function(t){let r=new Map;for(let a of t.seen.values())a.def&&!r.has(a.schema)&&r.set(a.schema,a);let a=new Map;for(let n of ul.get(t)??[]){let i=t.seen.get(n),o=(i?.def??i?.schema)?.propertyNames;if(!o||!0===o||a.has(o))continue;let s=function t(r,a,n){if(a.$ref){if(n.has(a))return a;n.add(a);let i=r.get(a)?.def;if(!i)return a;let o=t(r,i,n);return o===i?a:o}for(let i of["anyOf","oneOf"]){let o=a[i];if(!Array.isArray(o))continue;let s=o.map(a=>t(r,a,n));s.some((t,r)=>t!==o[r])&&(a={...a,[i]:s})}let i=Array.isArray(a.type)?a.type:[a.type],o=!i.includes("string")&&i.some(t=>"number"===t||"integer"===t),s=a.enum??(void 0!==a.const?[a.const]:void 0);if(!o&&!s?.some(t=>"number"==typeof t))return a;let{minimum:l,maximum:d,exclusiveMinimum:c,exclusiveMaximum:u,multipleOf:h,format:p,id:m,...f}=a;return f.enum?f.enum=f.enum.map(t=>"number"==typeof t?String(t):t):"number"==typeof f.const&&(f.const=String(f.const)),o&&(f.type="string",s||(f.pattern=(i.includes("number")?lb:ly).source)),f}(r,o,new Set);s!==o&&a.set(o,s)}if(a.size)for(let r of t.seen.values())for(let t of[r.schema,r.def]){let r=t&&a.get(t.propertyNames);r&&(t.propertyNames=r)}})(r))),o.push(t)}a.additionalProperties=cI(i.valueType,r,{...n,path:[...n.path,"additionalProperties"]})}let l=o._zod.values,d="input"===r.io&&void 0!==un(i.valueType);if(l&&!i.partial&&!d){let t=[...l].filter(t=>"string"==typeof t||"number"==typeof t);t.length>0&&(a.required=t.map(String))}},uc=(t,r,a,n)=>{let i=t._zod.def,o=cI(i.innerType,r,n),s=r.seen.get(t);"openapi-3.0"===r.target?(s.ref=i.innerType,a.nullable=!0):a.anyOf=[o,{type:"null"}]},uu=(t,r,a,n)=>{let i=t._zod.def;cI(i.innerType,r,n),r.seen.get(t).ref=i.innerType},uh=Symbol();function up(t,r,a,n,i){let o=!1,s=JSON.stringify(t,(t,r)=>"bigint"!=typeof r?r:(o=!0,null));return o?(cA(r,a,n,i,"BigInt defaults cannot be represented in JSON Schema"),uh):JSON.parse(s)}let um=(t,r,a,n)=>{let i=t._zod.def;cI(i.innerType,r,n),r.seen.get(t).ref=i.innerType;let o=up(i.defaultValue,t,r,a,n);o!==uh&&(a.default=o)},uf=(t,r,a,n)=>{let i=t._zod.def;if(cI(i.innerType,r,n),r.seen.get(t).ref=i.innerType,"input"!==r.io)return;let o=up(i.defaultValue,t,r,a,n);o!==uh&&(a._prefault=o)},ux=(t,r,a,n)=>{let i,o=t._zod.def;cI(o.innerType,r,n),r.seen.get(t).ref=o.innerType;try{i=o.catchValue(void 0)}catch{cA(t,r,a,n,"Dynamic catch values are not supported in JSON Schema");return}a.default=i},ug=(t,r,a,n)=>{let i=t._zod.def,o=i.in._zod.traits.has("$ZodTransform"),s="input"===r.io?o?i.out:i.in:i.out;cI(s,r,n),r.seen.get(t).ref=s},uy=(t,r,a,n)=>{let i=t._zod.def;cI(i.innerType,r,n),r.seen.get(t).ref=i.innerType,a.readOnly=!0},ub=(t,r,a,n)=>{let i=t._zod.def;cI(i.innerType,r,n),r.seen.get(t).ref=i.innerType},uv=(t,r,a,n)=>{let i=t._zod.innerType;cI(i,r,n),r.seen.get(t).ref=i},uw={string:c1,number:c2,boolean:c5,bigint:c4,symbol:(t,r,a,n)=>{cA(t,r,a,n,"Symbols cannot be represented in JSON Schema")},null:c3,undefined:(t,r,a,n)=>{cA(t,r,a,n,"Undefined cannot be represented in JSON Schema")},void:(t,r,a,n)=>{cA(t,r,a,n,"Void cannot be represented in JSON Schema")},never:c6,any:c8,unknown:c9,date:(t,r,a,n)=>{cA(t,r,a,n,"Date cannot be represented in JSON Schema")},enum:c7,literal:ue,nan:(t,r,a,n)=>{cA(t,r,a,n,"NaN cannot be represented in JSON Schema")},template_literal:(t,r,a,n)=>{let i=t._zod.pattern;if(!i)throw Error("Pattern not found in template literal");a.type="string",a.pattern=i.source},file:(t,r,a,n)=>{a.type="string",a.format="binary",a.contentEncoding="binary";let{minimum:i,maximum:o,mime:s}=cJ(t);void 0!==i&&(a.minLength=i),void 0!==o&&(a.maxLength=o),s&&(0===s.length?a.not={}:1===s.length?a.contentMediaType=s[0]:a.anyOf=s.map(t=>({contentMediaType:t})))},success:(t,r,a,n)=>{a.type="boolean"},custom:ut,function:(t,r,a,n)=>{cA(t,r,a,n,"Function types cannot be represented in JSON Schema")},transform:ur,map:(t,r,a,n)=>{cA(t,r,a,n,"Map cannot be represented in JSON Schema")},set:(t,r,a,n)=>{cA(t,r,a,n,"Set cannot be represented in JSON Schema")},array:ua,object:ui,union:uo,intersection:us,tuple:(t,r,a,n)=>{let i=t._zod.def;a.type="array";
57let o="draft-2020-12"===r.target?"prefixItems":"items",s="draft-2020-12"===r.target||"openapi-3.0"===r.target?"items":"additionalItems",l=i.items.map((t,a)=>cI(t,r,{...n,path:[...n.path,o,a]})),d=i.rest?cI(i.rest,r,{...n,path:[...n.path,s,..."openapi-3.0"===r.target?[i.items.length]:[]]}):null,c=i.items.length;for(;c>0;){let t=i.items[c-1];if(!("input"===r.io?void 0!==un(t):"optional"===t._zod.optout))break;c--}let u=i.items.length,h=!i.rest;"draft-2020-12"===r.target?(a.prefixItems=l,h?a.items=!1:d&&(a.items=d)):"openapi-3.0"===r.target?(a.items={anyOf:l},d&&a.items.anyOf.push(d)):(a.items=l,h?a.additionalItems=!1:d&&(a.additionalItems=d)),c>0&&(a.minItems=c),h&&(a.maxItems=u);let{minimum:p,maximum:m}=cJ(t);"number"==typeof p&&(a.minItems=p),"number"==typeof m&&(a.maxItems=m)},record:ud,nullable:uc,nonoptional:uu,default:um,prefault:uf,catch:ux,pipe:ug,readonly:uy,promise:(t,r,a,n)=>{let i=t._zod.def;cI(i.innerType,r,n),r.seen.get(t).ref=i.innerType},optional:ub,lazy:uv};class uk extends Error{constructor(t,r){super(t),this.name="ParseError",this.type=r.type,this.field=r.field,this.value=r.value,this.line=r.line}}function uj(t){}function uN(t,r,a){return 100===a&&97===t.charCodeAt(r+1)&&116===t.charCodeAt(r+2)&&97===t.charCodeAt(r+3)&&58===t.charCodeAt(r+4)}function u_(t,r,a){return 101===a&&118===t.charCodeAt(r+1)&&101===t.charCodeAt(r+2)&&110===t.charCodeAt(r+3)&&116===t.charCodeAt(r+4)&&58===t.charCodeAt(r+5)}class uE extends TransformStream{constructor({onError:t,onRetry:r,onComment:a,maxBufferSize:n}={}){let i;super({start(o){i=function(t){if("function"==typeof t)throw TypeError("`config` must be an object, got a function instead. Did you mean `createParser({onEvent: fn})`?");let{onEvent:r=uj,onError:a=uj,onRetry:n=uj,onComment:i,maxBufferSize:o}=t,s=[],l=0,d=!0,c,u="",h=0,p,m=!1;function f(){void 0!==o&&(l+u.length<=o||(m=!0,s.length=0,l=0,c=void 0,u="",h=0,p=void 0,a(new uk(`Buffered data exceeded max buffer size of ${o} characters`,{type:"max-buffer-size-exceeded"}))))}function x(t){let a=0;if(-1===t.indexOf("\r")){let n=t.indexOf(` 58`,a);for(;-1!==n;){if(a===n){h>0&&r({id:c,event:p,data:u}),c=void 0,u="",h=0,p=void 0,a=n+1,n=t.indexOf(` 59`,a);continue}let i=t.charCodeAt(a);if(uN(t,a,i)){let i=32===t.charCodeAt(a+5)?a+6:a+5,o=t.slice(i,n);if(0===h&&10===t.charCodeAt(n+1)){r({id:c,event:p,data:o}),c=void 0,u="",p=void 0,a=n+2,n=t.indexOf(` 60`,a);continue}u=0===h?o:`${u} 61${o}`,h++}else u_(t,a,i)?p=t.slice(32===t.charCodeAt(a+6)?a+7:a+6,n)||void 0:g(t,a,n);a=n+1,n=t.indexOf(` 62`,a)}return t.slice(a)}for(;a<t.length;){let r=t.indexOf("\r",a),n=t.indexOf(` 63`,a),i=-1;if(-1!==r&&-1!==n?i=r<n?r:n:-1!==r?i=r===t.length-1?-1:r:-1!==n&&(i=n),-1===i)break;g(t,a,i),a=i+1,13===t.charCodeAt(a-1)&&10===t.charCodeAt(a)&&a++}return t.slice(a)}function g(t,a,n){if(a===n)return void(h>0&&r({id:c,event:p,data:u}),c=void 0,u="",h=0,p=void 0);let o=t.charCodeAt(a);if(uN(t,a,o)){let r=32===t.charCodeAt(a+5)?a+6:a+5,i=t.slice(r,n);u=0===h?i:`${u} 64${i}`,h++;return}if(u_(t,a,o)){p=t.slice(32===t.charCodeAt(a+6)?a+7:a+6,n)||void 0;return}if(105===o&&100===t.charCodeAt(a+1)&&58===t.charCodeAt(a+2)){let r=t.slice(32===t.charCodeAt(a+3)?a+4:a+3,n);c=r.includes("\0")?void 0:r;return}if(58===o){i&&i(t.slice(a,n).slice(32===t.charCodeAt(a+1)?2:1));return}let s=t.slice(a,n),l=s.indexOf(":");if(-1===l)return void y(s,"",s);let d=s.slice(0,l),m=32===s.charCodeAt(l+1)?2:1;y(d,s.slice(l+m),s)}function y(t,r,i){switch(t){case"event":p=r||void 0;break;case"data":u=0===h?r:`${u} 65${r}`,h++;break;case"id":c=r.includes("\0")?void 0:r;break;case"retry":/^\d+$/.test(r)?n(parseInt(r,10)):a(new uk(`Invalid \`retry\` value: "${r}"`,{type:"invalid-retry",value:r,line:i}));break;default:a(new uk(`Unknown field "${t.length>20?`${t.slice(0,20)}\u2026`:t}"`,{type:"unknown-field",field:t,value:r,line:i}))}}return{feed:function(t){if(m)throw Error("Cannot feed parser: it was terminated after exceeding the configured max buffer size. Call `reset()` to resume parsing.");if(d&&(d=!1,239===t.charCodeAt(0)&&187===t.charCodeAt(1)&&191===t.charCodeAt(2)&&(t=t.slice(3))),0===s.length){let r=x(t);""!==r&&(s.push(r),l=r.length),f();return}if(-1===t.indexOf(` 66`)&&-1===t.indexOf("\r")){s.push(t),l+=t.length,f();return}s.push(t);let r=s.join("");s.length=0,l=0;let a=x(r);""!==a&&(s.push(a),l=a.length),f()},reset:function(t={}){if(t.consume&&s.length>0){let t=s.join("");g(t,0,t.length)}d=!0,c=void 0,u="",h=0,p=void 0,s.length=0,l=0,m=!1}}}({onEvent:t=>{o.enqueue(t)},onError(r){"function"==typeof t&&t(r),("terminate"===t||"max-buffer-size-exceeded"===r.type)&&o.error(r)},onRetry:r,onComment:a,maxBufferSize:n})},transform(t){i.feed(t)}})}}let uS=Symbol.for("workflow-serialize"),uC=Symbol.for("workflow-deserialize");function uT(...t){return t.reduce((t,r)=>({...t,...null!=r?r:{}}),{})}async function uA(t,r){if(null==t)return Promise.resolve();let a=null==r?void 0:r.abortSignal;return new Promise((r,n)=>{if(null==a?void 0:a.aborted)return void n(uI());let i=setTimeout(()=>{o(),r()},t),o=()=>{clearTimeout(i),null==a||a.removeEventListener("abort",s)},s=()=>{o(),n(uI())};null==a||a.addEventListener("abort",s)})}function uI(){return new DOMException("Delay was aborted","AbortError")}var uM=new TextDecoder;async function uP(t){return"string"==typeof t?t:t instanceof ArrayBuffer||ArrayBuffer.isView(t)?uM.decode(t):"u">typeof Blob&&t instanceof Blob?t.text():String(t)}async function uO(t,{highWaterMark:r=1048576,pollIntervalMs:a=20,abortSignal:n}={}){for(var i;1===t.readyState&&(null!=(i=t.bufferedAmount)?i:0)>r;){if((null==n?void 0:n.aborted)===!0)return;await uA(a)}}var{btoa:uD,atob:uR}=globalThis;function u$(t){let r=[];for(let a=0;a<t.length;a+=4096)r.push(String.fromCodePoint(...t.subarray(a,a+4096)));return uD(r.join(""))}function uz(t){return Object.fromEntries([...t.headers])}function uL(t=globalThis){var r,a,n;return t.window?"runtime/browser":(null==(r=t.navigator)?void 0:r.userAgent)?`runtime/${t.navigator.userAgent.toLowerCase()}`:(null==(n=null==(a=t.process)?void 0:a.versions)?void 0:n.node)?`runtime/node.js/${t.process.version.substring(0)}`:t.EdgeRuntime?"runtime/vercel-edge":"runtime/unknown"}function uW(t){return(t instanceof Error||t instanceof DOMException)&&("AbortError"===t.name||"ResponseAborted"===t.name||"TimeoutError"===t.name)}var uU=["fetch failed","failed to fetch"],uB=new Set(["ConnectionRefused","ConnectionClosed","FailedToOpenSocket","ECONNRESET","ECONNREFUSED","ETIMEDOUT","EPIPE","UND_ERR_SOCKET","UND_ERR_HEADERS_TIMEOUT","UND_ERR_BODY_TIMEOUT","UND_ERR_CONNECT_TIMEOUT"]);function uF({error:t,url:r,requestBodyValues:a}){if(uW(t))return t;if(t instanceof TypeError&&uU.includes(t.message.toLowerCase())){let n=t.cause;if(null!=n)return new oG({message:`Cannot connect to API: ${n.message}`,cause:n,url:r,requestBodyValues:a,isRetryable:!0})}let n=function(t){let r=new Set,a=t;for(;a instanceof Error&&!r.has(a);){r.add(a);let t=a;if("string"==typeof t.code&&uB.has(t.code))return t;a=a.cause}}(t);return null!=n?new oG(oG.isInstance(t)?{message:t.message,cause:t.cause,url:t.url,requestBodyValues:t.requestBodyValues,statusCode:t.statusCode,responseHeaders:t.responseHeaders,responseBody:t.responseBody,data:t.data,isRetryable:!0}:{message:`Cannot connect to API: ${t instanceof Error?t.message:n.message}`,cause:t,url:r,requestBodyValues:a,isRetryable:!0}):t}
66var uY="5.0.40";function uV(t){if(null==t)return{};let r={};if(t instanceof Headers)t.forEach((t,a)=>{r[a.toLowerCase()]=t});else for(let[a,n]of(Array.isArray(t)||(t=Object.entries(t)),t))null!=n&&(r[a.toLowerCase()]=n);return r}function uq(t,...r){let a=new Headers(uV(t)),n=a.get("user-agent")||"";return a.set("user-agent",[n,...r].filter(Boolean).join(" ")),Object.fromEntries(a.entries())}async function uH(t){var r;try{await (null==(r=t.body)?void 0:r.cancel())}catch(t){}}var uZ="AI_DownloadError",uK=`vercel.ai.error.${uZ}`,uG=Symbol.for(uK),uJ=class extends(B=oq,U=uG,B){constructor({url:t,statusCode:r,statusText:a,cause:n,message:i=null==n?`Failed to download ${t}: ${r} ${a}`:`Failed to download ${t}: ${n}`}){super({name:uZ,message:i,cause:n}),this[U]=!0,this.url=t,this.statusCode=r,this.statusText=a}static isInstance(t){return oq.hasMarker(t,uK)}};function uX(t,r){try{return new URL(t).origin===new URL(r).origin}catch(t){return!1}}function uQ(t){let r=t.split(".");return 4===r.length&&r.every(t=>{let r=Number(t);return Number.isInteger(r)&&r>=0&&r<=255&&String(r)===t})}function u0(t){let[r,a,n]=t.split(".").map(Number);return 0===r||10===r||100===r&&a>=64&&a<=127||127===r||169===r&&254===a||172===r&&a>=16&&a<=31||192===r&&0===a&&0===n||192===r&&0===a&&2===n||192===r&&168===a||198===r&&(18===a||19===a)||198===r&&51===a&&100===n||203===r&&0===a&&113===n||r>=224||!1}function u1(t){let r=function(t){let r=t.toLowerCase(),a=r.indexOf("%");-1!==a&&(r=r.slice(0,a));let n=r.split("::");if(n.length>2)return null;let i=t=>{if(""===t)return[];let r=[],a=t.split(":");for(let t=0;t<a.length;t++){let n=a[t];if(n.includes(".")){if(t!==a.length-1||!uQ(n))return null;let[i,o,s,l]=n.split(".").map(Number);r.push(i<<8|o,s<<8|l);continue}if(!/^[0-9a-f]{1,4}$/.test(n))return null;r.push(parseInt(n,16))}return r},o=i(n[0]);if(null===o)return null;if(2===n.length){let t=i(n[1]);if(null===t)return null;let r=8-o.length-t.length;return r<0?null:[...o,...Array(r).fill(0),...t]}return 8===o.length?o:null}(t);if(null===r)return!0;let a=t=>r.slice(0,t).every(t=>0===t);
66if(a(7)&&(0===r[7]||1===r[7])||(65024&r[0])==64512||(65472&r[0])==65152||(65472&r[0])==65216||(65280&r[0])==65280||8193===r[0]&&3512===r[1]||16383===r[0]&&(61440&r[1])==0)return!0;if(a(6)||a(5)&&65535===r[5]||a(4)&&65535===r[4]&&0===r[5]||100===r[0]&&65435===r[1]&&0===r[2]&&0===r[3]&&0===r[4]&&0===r[5]||100===r[0]&&65435===r[1]&&1===r[2]){let t=r[6]>>8&255,a=255&r[6],n=r[7]>>8&255,i=255&r[7];return u0(`${t}.${a}.${n}.${i}`)}return!1}var u2=globalThis.fetch,u5=function(t){if("function"!=typeof t)return!1;let r=Function.prototype.toString.call(t);return r.includes("internal/deps/undici")||r.includes("lazy loading of undici")}(u2);async function u4(){var t,r;let a;return(null==(t=null==(a=globalThis.process)?void 0:a.release)?void 0:t.name)==="node"&&(null==(r=a.versions)?void 0:r.bun)==null&&u5&&globalThis.fetch===u2?null!=F?F:F=Promise.resolve().then(u3):globalThis.fetch}function u3(){let{createRequire:t}=u6("node:module"),{lookup:r}=u6("node:dns"),{Agent:a,fetch:n}=t(function t(){let r=Error.prepareStackTrace;try{Error.prepareStackTrace=(t,r)=>r;let r=Error("Capture current module path");Error.captureStackTrace(r,t);let[a]=r.stack,n=null==a?void 0:a.getFileName();if(null==n)throw Error("Unable to determine the current module path");return n}finally{Error.prepareStackTrace=r}}())("undici"),i=new a({connect:{lookup:(t,a,n)=>{r(t,{...a,all:!0},(r,i)=>{if(r)return void n(r);try{let[r]=i;if(null==r)throw Error(`Hostname ${t} did not resolve to an address`);for(let{address:r,family:a}of i)!function({address:t,family:r,hostname:a}){if(4===r?!uQ(t)||u0(t):6!==r||u1(t))throw new uJ({url:a,message:`Hostname ${a} resolved to disallowed IP address ${t}`})}({address:r,family:a,hostname:t});!0===a.all?n(null,i):n(null,r.address,r.family)}catch(t){n(t instanceof Error?t:Error(String(t)))}})}}});return(t,r)=>n(t,{...r,dispatcher:i})}function u6(t){var r;let a=globalThis.process,n=null==(r=null==a?void 0:a.getBuiltinModule)?void 0:r.call(a,t);if(null==n)throw Error(`Node.js built-in module ${t} is unavailable`);return n}var u8=["connection","keep-alive","te","trailer","transfer-encoding","upgrade","host","forwarded","proxy-authorization","via","x-forwarded-for","x-forwarded-host","x-forwarded-proto","x-real-ip","metadata","metadata-flavor","x-aws-ec2-metadata-token","x-metadata-token","cookie","set-cookie"],u9=new Set([301,302,303,307,308]);async function u7(t){return null==t||t===globalThis.fetch?await u4():t}async function he({url:t,headers:r,abortSignal:a,maxRedirects:n=10,fetch:i,trustedOrigin:o}){var s;let l=void 0===r?void 0:function(t){let r=new Headers(t);for(let t of u8)r.delete(t);return r}(r),d=t=>{let r={signal:a,redirect:t};return void 0!==l&&(r.headers=new Headers(l)),r},c=t;for(let r=0;r<=n;r++){let r=void 0!==o&&uX(c,o);r||function(t){let r;try{r=new URL(t)}catch(r){throw new uJ({url:t,message:`Invalid URL: ${t}`})}if("data:"===r.protocol)return;if("http:"!==r.protocol&&"https:"!==r.protocol)throw new uJ({url:t,message:`URL scheme must be http, https, or data, got ${r.protocol}`});let a=r.hostname.toLowerCase().replace(/\.+$/,"");if(!a)throw new uJ({url:t,message:"URL must have a hostname"});if("localhost"===a||a.endsWith(".local")||a.endsWith(".localhost"))throw new uJ({url:t,message:`URL with hostname ${a} is not allowed`});if(a.startsWith("[")&&a.endsWith("]")){if(u1(a.slice(1,-1)))throw new uJ({url:t,message:`URL with IPv6 address ${a} is not allowed`});return}if(uQ(a)&&u0(a))throw new uJ({url:t,message:`URL with IP address ${a} is not allowed`})}(c);let a=r&&null!=i?i:r?globalThis.fetch:await u7(i),n=await a(c,d("manual"));if("opaqueredirect"===n.type){if(!function(t=globalThis){return null!=t.window}())throw new uJ({url:t,message:`Redirect from ${c} could not be validated and was blocked`});return await a(c,d("follow"))}let u=null==(s=n.headers)?void 0:s.get("location");if(u9.has(n.status)&&u){await uH(n);let t=new URL(u,c).toString();if(void 0!==l&&!uX(t,c)){let t=l.get("user-agent");l=new Headers(null==t?void 0:{"user-agent":t})}c=t;continue}return n}throw new uJ({url:t,message:`Too many redirects (max ${n})`})}async function ht({response:t,url:r,maxBytes:a=0x80000000}){let n=t.headers.get("content-length");if(null!=n){let i=parseInt(n,10);if(!isNaN(i)&&i>a)throw await uH(t),new uJ({url:r,message:`Download of ${r} exceeded maximum size of ${a} bytes (Content-Length: ${i}).`})}let i=t.body;if(null==i)return new Uint8Array(0);let o=i.getReader(),s=[],l=0;try{for(;;){let{done:t,value:n}=await o.read();if(t)break;
66if((l+=n.length)>a)throw new uJ({url:r,message:`Download of ${r} exceeded maximum size of ${a} bytes.`});s.push(n)}}finally{try{await o.cancel()}catch(t){}finally{o.releaseLock()}}let d=new Uint8Array(l),c=0;for(let t of s)d.set(t,c),c+=t.length;return d}var hr=({prefix:t,size:r=16,alphabet:a="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",separator:n="-"}={})=>{let i=()=>{let t=a.length,n=Array(r);for(let i=0;i<r;i++)n[i]=a[Math.random()*t|0];return n.join("")};if(null==t)return i;if(a.includes(n))throw new o3({argument:"separator",message:`The separator "${n}" must not be part of the alphabet "${a}".`});return()=>`${t}${n}${i()}`};hr();var ha=async({url:t,headers:r={},successfulResponseHandler:a,failedResponseHandler:n,abortSignal:i,fetch:o,validateUrl:s,credentialedOrigin:l,trustedOrigin:d})=>{try{let c=null!=o?o:globalThis.fetch,u=void 0===l||uX(t,l)?r:{},h=uq(u,`ai-sdk/provider-utils/${uY}`,uL()),p=s?await he({url:t,headers:h,abortSignal:i,fetch:o,trustedOrigin:d}):await c(t,{method:"GET",headers:h,signal:i}),m=uz(p);if(!p.ok){let r;try{r=await n({response:p,url:t,requestBodyValues:{}})}catch(r){if(uW(r)||oG.isInstance(r))throw r;throw new oG({message:"Failed to process error response",cause:r,statusCode:p.status,url:t,responseHeaders:m,requestBodyValues:{}})}throw r.value}try{return await a({response:p,url:t,requestBodyValues:{}})}catch(r){if(r instanceof Error&&(uW(r)||oG.isInstance(r)))throw r;throw new oG({message:"Failed to process successful response",cause:r,statusCode:p.status,url:t,responseHeaders:m,requestBodyValues:{}})}}catch(r){throw uF({error:r,url:t,requestBodyValues:{}})}};function hn(t){return null!=t&&"object"==typeof t&&!Array.isArray(t)}function hi({settingValue:t,environmentVariableName:r}){return"string"==typeof t?t:null!=t||void 0===oB.default?void 0:null!=(t=oB.default.env[r])&&"string"==typeof t?t:void 0}function ho(t){return null!=t&&Number.isSafeInteger(t)&&t>=0}var hs=/"(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])"\s*:/,hl=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/;function hd(t){let r=JSON.parse(t);return null===r||"object"!=typeof r||!1===hs.test(t)&&!1===hl.test(t)?r:function(t){let r=[t];for(;r.length;){let t=r;for(let a of(r=[],t)){if(Object.prototype.hasOwnProperty.call(a,"__proto__")||Object.prototype.hasOwnProperty.call(a,"constructor")&&null!==a.constructor&&"object"==typeof a.constructor&&Object.prototype.hasOwnProperty.call(a.constructor,"prototype"))throw SyntaxError("Object contains forbidden prototype property");for(let t in a){let n=a[t];n&&"object"==typeof n&&r.push(n)}}}return t}(r)}function hc(t){let{stackTraceLimit:r}=Error;try{Error.stackTraceLimit=0}catch(r){return hd(t)}try{return hd(t)}finally{Error.stackTraceLimit=r}}function hu(t){if("object"===t.type||Array.isArray(t.type)&&t.type.includes("object")){let{additionalProperties:r}=t;t.additionalProperties=null!=r&&"boolean"!=typeof r&&hh(r);let{properties:a}=t;if(null!=a)for(let t of Object.keys(a))a[t]=hh(a[t])}null!=t.items&&(t.items=Array.isArray(t.items)?t.items.map(hh):hh(t.items)),null!=t.anyOf&&(t.anyOf=t.anyOf.map(hh)),null!=t.allOf&&(t.allOf=t.allOf.map(hh)),null!=t.oneOf&&(t.oneOf=t.oneOf.map(hh));let{definitions:r}=t;if(null!=r)for(let t of Object.keys(r))r[t]=hh(r[t]);return t}function hh(t){return"boolean"==typeof t?t:hu(t)}var hp=Symbol("Let zodToJsonSchema decide on which parser to use"),hm={name:void 0,$refStrategy:"root",basePath:["#"],effectStrategy:"input",pipeStrategy:"all",dateStrategy:"format:date-time",mapStrategy:"entries",removeAdditionalStrategy:"passthrough",allowedAdditionalProperties:!0,rejectedAdditionalProperties:!1,definitionPath:"definitions",strictUnions:!1,definitions:{},errorMessages:!1,patternStrategy:"escape",applyRegexFlags:!1,emailStrategy:"format:email",base64Strategy:"contentEncoding:base64",nameStrategy:"ref"};function hf(t,r){return hR(t.type._def,r)}var hx=void 0,hg=/^[cC][^\s-]{8,}
66$/,hy=/^[0-9a-z]+$/,hb=/^[0-9A-HJKMNP-TV-Z]{26}$/,hv=/^(?!\.)(?!.*\.\.)([a-zA-Z0-9_'+\-\.]*)[a-zA-Z0-9_+-]@([a-zA-Z0-9][a-zA-Z0-9\-]*\.)+[a-zA-Z]{2,}$/,hw=()=>(void 0===hx&&(hx=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),hx),hk=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,hj=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,hN=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,h_=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,hE=/^[a-zA-Z0-9_-]{21}$/,hS=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/;function hC(t,r){let a={type:"string"};if(t.checks)for(let n of t.checks)switch(n.kind){case"min":a.minLength="number"==typeof a.minLength?Math.max(a.minLength,n.value):n.value;break;case"max":a.maxLength="number"==typeof a.maxLength?Math.min(a.maxLength,n.value):n.value;break;case"email":switch(r.emailStrategy){case"format:email":hI(a,"email",n.message,r);break;case"format:idn-email":hI(a,"idn-email",n.message,r);break;case"pattern:zod":hM(a,hv,n.message,r)}break;case"url":hI(a,"uri",n.message,r);break;case"uuid":hI(a,"uuid",n.message,r);break;case"regex":hM(a,n.regex,n.message,r);break;case"cuid":hM(a,hg,n.message,r);break;case"cuid2":hM(a,hy,n.message,r);break;case"startsWith":hM(a,RegExp(`^${hT(n.value,r)}`),n.message,r);break;case"endsWith":hM(a,RegExp(`${hT(n.value,r)}$`),n.message,r);break;case"datetime":hI(a,"date-time",n.message,r);break;case"date":hI(a,"date",n.message,r);break;case"time":hI(a,"time",n.message,r);break;case"duration":hI(a,"duration",n.message,r);break;case"length":a.minLength="number"==typeof a.minLength?Math.max(a.minLength,n.value):n.value,a.maxLength="number"==typeof a.maxLength?Math.min(a.maxLength,n.value):n.value;break;case"includes":hM(a,RegExp(hT(n.value,r)),n.message,r);break;case"ip":"v6"!==n.version&&hI(a,"ipv4",n.message,r),"v4"!==n.version&&hI(a,"ipv6",n.message,r);break;case"base64url":hM(a,h_,n.message,r);break;case"jwt":hM(a,hS,n.message,r);break;case"cidr":"v6"!==n.version&&hM(a,hk,n.message,r),"v4"!==n.version&&hM(a,hj,n.message,r);break;case"emoji":hM(a,hw(),n.message,r);break;case"ulid":hM(a,hb,n.message,r);break;case"base64":switch(r.base64Strategy){case"format:binary":hI(a,"binary",n.message,r);break;case"contentEncoding:base64":a.contentEncoding="base64";break;case"pattern:zod":hM(a,hN,n.message,r)}break;case"nanoid":hM(a,hE,n.message,r)}return a}function hT(t,r){return"escape"===r.patternStrategy?function(t){let r="";for(let a=0;a<t.length;a++)hA.has(t[a])||(r+="\\"),r+=t[a];return r}(t):t}var hA=new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");function hI(t,r,a,n){var i;t.format||(null==(i=t.anyOf)?void 0:i.some(t=>t.format))?(t.anyOf||(t.anyOf=[]),t.format&&(t.anyOf.push({format:t.format}),delete t.format),t.anyOf.push({format:r,...a&&n.errorMessages&&{errorMessage:{format:a}}})):t.format=r}function hM(t,r,a,n){var i;t.pattern||(null==(i=t.allOf)?void 0:i.some(t=>t.pattern))?(t.allOf||(t.allOf=[]),t.pattern&&(t.allOf.push({pattern:t.pattern}),delete t.pattern),t.allOf.push({pattern:hP(r,n),...a&&n.errorMessages&&{errorMessage:{pattern:a}}})):t.pattern=hP(r,n)}function hP(t,r){var a;if(!r.applyRegexFlags||!t.flags)return t.source;let n={i:t.flags.includes("i"),m:t.flags.includes("m"),s:t.flags.includes("s")},i=n.i?t.source.toLowerCase():t.source,o="",s=!1,l=!1,d=!1;for(let t=0;t<i.length;t++){if(s){o+=i[t],s=!1;continue}
66if(n.i){if(l){if(i[t].match(/[a-z]/)){d?(o+=i[t],o+=`${i[t-2]}-${i[t]}`.toUpperCase(),d=!1):"-"===i[t+1]&&(null==(a=i[t+2])?void 0:a.match(/[a-z]/))?(o+=i[t],d=!0):o+=`${i[t]}${i[t].toUpperCase()}`;continue}}else if(i[t].match(/[a-z]/)){o+=`[${i[t]}${i[t].toUpperCase()}]`;continue}}if(n.m){if("^"===i[t]){o+=`(^|(?<=[\r 67]))`;continue}else if("$"===i[t]){o+=`($|(?=[\r 68]))`;continue}}if(n.s&&"."===i[t]){o+=l?`${i[t]}\r 69`:`[${i[t]}\r 70]`;continue}o+=i[t],"\\"===i[t]?s=!0:l&&"]"===i[t]?l=!1:l||"["!==i[t]||(l=!0)}try{new RegExp(o)}catch(a){return console.warn(`Could not convert regex pattern at ${r.currentPath.join("/")} to a flag-independent form! Falling back to the flag-ignorant source`),t.source}return o}function hO(t,r){var a,n,i,o,s,l;let d={type:"object",additionalProperties:null!=(a=hR(t.valueType._def,{...r,currentPath:[...r.currentPath,"additionalProperties"]}))?a:r.allowedAdditionalProperties};if((null==(n=t.keyType)?void 0:n._def.typeName)==="ZodString"&&(null==(i=t.keyType._def.checks)?void 0:i.length)){let{type:a,...n}=hC(t.keyType._def,r);return{...d,propertyNames:n}}if((null==(o=t.keyType)?void 0:o._def.typeName)==="ZodEnum")return{...d,propertyNames:{enum:t.keyType._def.values}};if((null==(s=t.keyType)?void 0:s._def.typeName)==="ZodBranded"&&"ZodString"===t.keyType._def.type._def.typeName&&(null==(l=t.keyType._def.type._def.checks)?void 0:l.length)){let{type:a,...n}=hf(t.keyType._def,r);return{...d,propertyNames:n}}return d}var hD={ZodString:"string",ZodNumber:"number",ZodBigInt:"integer",ZodBoolean:"boolean",ZodNull:"null"};function hR(t,r,a=!1){var n;let i=r.seen.get(t);if(r.override){let o=null==(n=r.override)?void 0:n.call(r,t,r,i,a);if(o!==hp)return o}if(i&&!a){let t=h$(i,r);if(void 0!==t)return t}let o={def:t,path:r.currentPath,jsonSchema:void 0};r.seen.set(t,o);let s=((t,r,a)=>{var n,i,o,s,l,d;switch(r){case"ZodString":return hC(t,a);case"ZodNumber":let c={type:"number"};if(!t.checks)return c;for(let r of t.checks)switch(r.kind){case"int":c.type="integer";break;case"min":r.inclusive?c.minimum=r.value:c.exclusiveMinimum=r.value;break;case"max":r.inclusive?c.maximum=r.value:c.exclusiveMaximum=r.value;break;case"multipleOf":c.multipleOf=r.value}return c;case"ZodObject":return function(t,r){let a={type:"object",properties:{}},n=[],i=t.shape();for(let t in i){let o=i[t];if(void 0===o||void 0===o._def)continue;let s=function(t){try{return t.isOptional()}catch(t){return!0}}(o),l=hR(o._def,{...r,currentPath:[...r.currentPath,"properties",t],propertyPath:[...r.currentPath,"properties",t]});void 0!==l&&(a.properties[t]=l,s||n.push(t))}n.length&&(a.required=n);let o=function(t,r){if("ZodNever"!==t.catchall._def.typeName)return hR(t.catchall._def,{...r,currentPath:[...r.currentPath,"additionalProperties"]});switch(t.unknownKeys){case"passthrough":return r.allowedAdditionalProperties;case"strict":return r.rejectedAdditionalProperties;case"strip":return"strict"===r.removeAdditionalStrategy?r.allowedAdditionalProperties:r.rejectedAdditionalProperties}}(t,r);return void 0!==o&&(a.additionalProperties=o),a}(t,a);case"ZodBigInt":let u={type:"integer",format:"int64"};if(!t.checks)return u;for(let r of t.checks)switch(r.kind){case"min":r.inclusive?u.minimum=r.value:u.exclusiveMinimum=r.value;break;case"max":r.inclusive?u.maximum=r.value:u.exclusiveMaximum=r.value;break;case"multipleOf":u.multipleOf=r.value}return u;case"ZodBoolean":return{type:"boolean"};case"ZodDate":return function t(r,a,n){let i=null!=n?n:a.dateStrategy;if(Array.isArray(i))return{anyOf:i.map(n=>t(r,a,n))};switch(i){case"string":case"format:date-time":return{type:"string",format:"date-time"};case"format:date":return{type:"string",format:"date"};case"integer":var o=r;let s={type:"integer",format:"unix-time"};for(let t of o.checks)switch(t.kind){case"min":s.minimum=t.value;break;case"max":s.maximum=t.value}return s}}(t,a);case"ZodUndefined":case"ZodNaN":case"ZodNever":return{not:{}};case"ZodNull":return{type:"null"};case"ZodArray":let h;return h={type:"array"},(null==(o=t.type)?void 0:o._def)&&(null==(l=null==(s=t.type)?void 0:s._def)?void 0:l.typeName)!=="ZodAny"&&(h.items=hR(t.type._def,{...a,currentPath:[...a.currentPath,"items"]})),t.minLength&&(h.minItems=t.minLength.value),t.maxLength&&(h.maxItems=t.maxLength.value),t.exactLength&&(h.minItems=t.exactLength.value,h.maxItems=t.exactLength.value),h;case"ZodUnion":case"ZodDiscriminatedUnion":let p,m=t.options instanceof Map?Array.from(t.options.values()):t.options;if(m.every(t=>t._def.typeName in hD&&(!t._def.checks||!t._def.checks.length))){let t=m.reduce((t,r)=>{let a=hD[r._def.typeName];return a&&!t.includes(a)?[...t,a]:t},[]);return{type:t.length>1?t:t[0]}}if(m.every(t=>
70"ZodLiteral"===t._def.typeName&&!t.description)){let t=m.reduce((t,r)=>{let a=typeof r._def.value;switch(a){case"string":case"number":case"boolean":return[...t,a];case"bigint":return[...t,"integer"];case"object":if(null===r._def.value)return[...t,"null"];default:return t}},[]);if(t.length===m.length){let r=t.filter((t,r,a)=>a.indexOf(t)===r);return{type:r.length>1?r:r[0],enum:m.reduce((t,r)=>t.includes(r._def.value)?t:[...t,r._def.value],[])}}}else if(m.every(t=>"ZodEnum"===t._def.typeName))return{type:"string",enum:m.reduce((t,r)=>[...t,...r._def.values.filter(r=>!t.includes(r))],[])};return n=t,i=a,(p=(n.options instanceof Map?Array.from(n.options.values()):n.options).map((t,r)=>hR(t._def,{...i,currentPath:[...i.currentPath,"anyOf",`${r}`]})).filter(t=>!!t&&(!i.strictUnions||"object"==typeof t&&Object.keys(t).length>0))).length?{anyOf:p}:void 0;case"ZodIntersection":let f,x;return f=[hR(t.left._def,{...a,currentPath:[...a.currentPath,"allOf","0"]}),hR(t.right._def,{...a,currentPath:[...a.currentPath,"allOf","1"]})].filter(t=>!!t),x=[],f.forEach(t=>{if((!("type"in t)||"string"!==t.type)&&"allOf"in t)x.push(...t.allOf);else{let r=t;if("additionalProperties"in t&&!1===t.additionalProperties){let{additionalProperties:a,...n}=t;r=n}x.push(r)}}),x.length?{allOf:x}:void 0;case"ZodTuple":return t.rest?{type:"array",minItems:t.items.length,items:t.items.map((t,r)=>hR(t._def,{...a,currentPath:[...a.currentPath,"items",`${r}`]})).reduce((t,r)=>void 0===r?t:[...t,r],[]),additionalItems:hR(t.rest._def,{...a,currentPath:[...a.currentPath,"additionalItems"]})}:{type:"array",minItems:t.items.length,maxItems:t.items.length,items:t.items.map((t,r)=>hR(t._def,{...a,currentPath:[...a.currentPath,"items",`${r}`]})).reduce((t,r)=>void 0===r?t:[...t,r],[])};case"ZodRecord":return hO(t,a);case"ZodLiteral":let g;return"bigint"!=(g=typeof t.value)&&"number"!==g&&"boolean"!==g&&"string"!==g?{type:Array.isArray(t.value)?"array":"object"}:{type:"bigint"===g?"integer":g,const:t.value};case"ZodEnum":return{type:"string",enum:Array.from(t.values)};case"ZodNativeEnum":let y,b,v;return y=t.values,{type:1===(v=Array.from(new Set((b=Object.keys(t.values).filter(t=>"number"!=typeof y[y[t]]).map(t=>y[t])).map(t=>typeof t)))).length?"string"===v[0]?"string":"number":["string","number"],enum:b};case"ZodNullable":if(["ZodString","ZodNumber","ZodBigInt","ZodBoolean","ZodNull"].includes(t.innerType._def.typeName)&&(!t.innerType._def.checks||!t.innerType._def.checks.length))return{type:[hD[t.innerType._def.typeName],"null"]};let w=hR(t.innerType._def,{...a,currentPath:[...a.currentPath,"anyOf","0"]});return w&&{anyOf:[w,{type:"null"}]};case"ZodOptional":if(a.currentPath.toString()===(null==(d=a.propertyPath)?void 0:d.toString()))return hR(t.innerType._def,a);let k=hR(t.innerType._def,{...a,currentPath:[...a.currentPath,"anyOf","1"]});return k?{anyOf:[{not:{}},k]}:{};case"ZodMap":if("record"===a.mapStrategy)return hO(t,a);return{type:"array",maxItems:125,items:{type:"array",items:[hR(t.keyType._def,{...a,currentPath:[...a.currentPath,"items","items","0"]})||{},hR(t.valueType._def,{...a,currentPath:[...a.currentPath,"items","items","1"]})||{}],minItems:2,maxItems:2}};case"ZodSet":let j;return j={type:"array",uniqueItems:!0,items:hR(t.valueType._def,{...a,currentPath:[...a.currentPath,"items"]})},t.minSize&&(j.minItems=t.minSize.value),t.maxSize&&(j.maxItems=t.maxSize.value),j;case"ZodLazy":return()=>t.getter()._def;case"ZodPromise":return hR(t.type._def,a);case"ZodEffects":return"input"===a.effectStrategy?hR(t.schema._def,a):{};case"ZodAny":case"ZodUnknown":return{};case"ZodDefault":return{...hR(t.innerType._def,a),default:t.defaultValue()};case"ZodBranded":return hf(t,a);case"ZodReadonly":case"ZodCatch":return hR(t.innerType._def,a);case"ZodPipeline":if("input"===a.pipeStrategy)return hR(t.in._def,a);if("output"===a.pipeStrategy)return hR(t.out._def,a);let N=hR(t.in._def,{...a,currentPath:[...a.currentPath,"allOf","0"]}),_=hR(t.out._def,{...a,currentPath:[...a.currentPath,"allOf",N?"1":"0"]});return{allOf:[N,_].filter(t=>void 0!==t)};default:return}})(t,t.typeName,r),l="function"==typeof s?hR(s(),r):s;if(l&&hz(t,r,l),r.postProcess){let a=r.postProcess(l,t,r);return o.jsonSchema=l,a}return o.jsonSchema=l,l}var h$=(t,r)=>{switch(r.$refStrategy){case"root":return{$ref:t.path.join("/")};case"relative":return{$ref:((t,r)=>{let a=0;for(;a<t.length&&a<r.length&&t[a]===r[a];a++);return[(t.length-a).toString(),...r.slice(a)].join("/")})(r.currentPath,t.path)};case"none":case"seen":if(t.path.length<r.currentPath.length&&t.path.every((t,a)=>r.currentPath[a]===t))return console.warn(`Recursive reference detected at ${r.currentPath.join("/")}! Defaulting to any`),{};return"seen"===r.$refStrategy?{}:void 0}},hz=(t,r,a)=>(t.description&&(a.description=t.description),a),hL=Symbol.for("vercel.ai.schema");function hW(t){let r;return()=>(null==r&&(r=t()),r)}function hU(t,{validate:r}={}){return{[hL]:!0,_type:void 0,get jsonSchema(){return"function"==typeof t&&(t=t()),t},validate:r}}function hB(t){var r;return null==t?hU({type:"object",properties:{},additionalProperties:!1}):"object"==typeof t&&null!==t&&hL in t&&!0===t[hL]&&"jsonSchema"in t&&"validate"in t?t:"~standard"in t?"zod"===t["~standard"].vendor?hF(t):(r=t,hU(()=>
70{if(null==r["~standard"].jsonSchema)throw Error(`Standard schema vendor '${r["~standard"].vendor}' does not support JSON Schema conversion.`);return hu(r["~standard"].jsonSchema.input({target:"draft-07"}))},{validate:async t=>{let a=await r["~standard"].validate(t);return"value"in a?{success:!0,value:a.value}:{success:!1,error:new sc({value:t,cause:a.issues})}}})):t()}function hF(t,r){var a,n;let i;if("_zod"in t){let n;return n=null!=(a=null==r?void 0:r.useReferences)&&a,hU(()=>hu(function(t,r){if("_idmap"in t){let a=cT({...r,processors:uw}),n={};for(let r of t._idmap.entries()){let[t,n]=r;cI(n,a)}let i={};for(let o of(a.external={registry:t,uri:r?.uri,defs:n},t._idmap.entries())){let[t,r]=o;cP(a,r),iA(i,t,cz(a,r))}return Object.keys(n).length>0&&(i.__shared={["draft-2020-12"===a.target?"$defs":"definitions"]:n}),{schemas:i}}let a=cT({...r,processors:uw});return cI(t,a),cP(a,t),cz(a,t)}(t,{target:"draft-7",io:"input",reused:n?"ref":"inline"})),{validate:async r=>{let a=await sz(t,r);return a.success?{success:!0,value:a.data}:{success:!1,error:a.error}}})}return i=null!=(n=null==r?void 0:r.useReferences)&&n,hU(()=>((t,r)=>{var a;let n,i,o=(i=void 0!==(n="string"==typeof r?{...hm,name:r}:{...hm,...r}).name?[...n.basePath,n.definitionPath,n.name]:n.basePath,{...n,currentPath:i,propertyPath:void 0,seen:new Map(Object.entries(n.definitions).map(([t,r])=>[r._def,{def:r._def,path:[...n.basePath,n.definitionPath,t],jsonSchema:void 0}]))}),s="object"==typeof r&&r.definitions?Object.entries(r.definitions).reduce((t,[r,a])=>{var n;return{...t,[r]:null!=(n=hR(a._def,{...o,currentPath:[...o.basePath,o.definitionPath,r]},!0))?n:{}}},{}):void 0,l="string"==typeof r?r:(null==r?void 0:r.nameStrategy)==="title"||null==r?void 0:r.name,d=null!=(a=hR(t._def,void 0===l?o:{...o,currentPath:[...o.basePath,o.definitionPath,l]},!1))?a:{},c="object"==typeof r&&void 0!==r.name&&"title"===r.nameStrategy?r.name:void 0;void 0!==c&&(d.title=c);let u=void 0===l?s?{...d,[o.definitionPath]:s}:d:{$ref:[..."relative"===o.$refStrategy?[]:o.basePath,o.definitionPath,l].join("/"),[o.definitionPath]:{...s,[l]:d}};return u.$schema="http://json-schema.org/draft-07/schema#",u})(t,{$refStrategy:i?"root":"none"}),{validate:async r=>{let a=await t.safeParseAsync(r);return a.success?{success:!0,value:a.data}:{success:!1,error:a.error}}})}async function hY({value:t,schema:r,context:a}){let n=await hV({value:t,schema:r,context:a});if(!n.success)throw sc.wrap({value:t,cause:n.error,context:a});return n.value}async function hV({value:t,schema:r,context:a}){let n=hB(r);try{if(null==n.validate)return{success:!0,value:t,rawValue:t};let r=await n.validate(t);if(r.success)return{success:!0,value:r.value,rawValue:t};return{success:!1,error:sc.wrap({value:t,cause:r.error,context:a}),rawValue:t}}catch(r){return{success:!1,error:sc.wrap({value:t,cause:r,context:a}),rawValue:t}}}async function hq({text:t,schema:r}){try{let a=hc(t);if(null==r)return a;return await hY({value:a,schema:r})}catch(r){if(se.isInstance(r)||sc.isInstance(r))throw r;throw new se({text:t,cause:r})}}async function hH({text:t,schema:r}){try{let a=hc(t);if(null==r)return{success:!0,value:a,rawValue:a};return await hV({value:a,schema:r})}catch(r){return{success:!1,error:se.isInstance(r)?r:new se({text:t,cause:r}),rawValue:void 0}}}function hZ({stream:t,schema:r}){return t.pipeThrough(new TextDecoderStream).pipeThrough(new uE).pipeThrough(new TransformStream({async transform({data:t},a){"[DONE]"!==t&&a.enqueue(await hH({text:t,schema:r}))}}))}var hK=()=>globalThis.fetch,hG=async({url:t,headers:r,body:a,failedResponseHandler:n,successfulResponseHandler:i,abortSignal:o,fetch:s})=>await hJ({url:t,headers:{"Content-Type":"application/json",...r},body:{content:JSON.stringify(a),values:a},failedResponseHandler:n,successfulResponseHandler:i,abortSignal:o,fetch:s}),hJ=async({url:t,headers:r={},body:a,successfulResponseHandler:n,failedResponseHandler:i,abortSignal:o,fetch:s=hK()})=>{try{let l=await s(t,{method:"POST",headers:uq(r,`ai-sdk/provider-utils/${uY}`,uL()),body:a.content,signal:o}),d=uz(l);if(!l.ok){let r;try{r=await i({response:l,url:t,requestBodyValues:a.values})}catch(r){if(uW(r)||oG.isInstance(r))throw r;throw new oG({message:"Failed to process error response",cause:r,statusCode:l.status,url:t,responseHeaders:d,requestBodyValues:a.values})}throw r.value}try{return await n({response:l,url:t,requestBodyValues:a.values})}catch(r){if(r instanceof Error&&(uW(r)||oG.isInstance(r)))throw r;throw new oG({message:"Failed to process successful response",cause:r,statusCode:l.status,url:t,responseHeaders:d,requestBodyValues:a.values})}}catch(r){throw uF({error:r,url:t,requestBodyValues:a.values})}};
70function hX({id:t,inputSchema:r,outputSchema:a,supportsDeferredResults:n}){return({onInputStart:i,onInputDelta:o,onInputAvailable:s,...l})=>({type:"provider",isProviderExecuted:!0,id:t,args:l,inputSchema:r,outputSchema:a,onInputStart:i,onInputDelta:o,onInputAvailable:s,supportsDeferredResults:n})}async function hQ(t){return"function"==typeof t&&(t=t()),Promise.resolve(t)}var h0=new TextDecoder;async function h1({response:t,url:r}){return h0.decode(await ht({response:t,url:r}))}var h2=({errorSchema:t,errorToMessage:r,isRetryable:a})=>async({response:n,url:i,requestBodyValues:o})=>{let s=await h1({response:n,url:i}),l=uz(n);if(""===s.trim())return{responseHeaders:l,value:new oG({message:n.statusText,url:i,requestBodyValues:o,statusCode:n.status,responseHeaders:l,responseBody:s,isRetryable:null==a?void 0:a(n)})};try{let d=await hq({text:s,schema:t});return{responseHeaders:l,value:new oG({message:r(d),url:i,requestBodyValues:o,statusCode:n.status,responseHeaders:l,responseBody:s,data:d,isRetryable:null==a?void 0:a(n,d)})}}catch(t){return{responseHeaders:l,value:new oG({message:n.statusText,url:i,requestBodyValues:o,statusCode:n.status,responseHeaders:l,responseBody:s,isRetryable:null==a?void 0:a(n)})}}},h5=t=>async({response:r,url:a,requestBodyValues:n})=>{let i=await h1({response:r,url:a}),o=await hH({text:i,schema:t}),s=uz(r);if(!o.success)throw new oG({message:"Invalid JSON response",cause:o.error,statusCode:r.status,responseHeaders:s,responseBody:i,url:a,requestBodyValues:n});return{responseHeaders:s,value:o.value,rawValue:o.rawValue}};async function*h4({stream:t,schema:r}){let a=t.getReader(),n=new TextDecoder,i="",o=!1;try{for(;;){let{done:t,value:s}=await a.read();if(t){o=!0,i+=n.decode();break}let l=(i+=n.decode(s,{stream:!0})).indexOf("\n");for(;-1!==l;){let t=i.slice(0,l).replace(/\r$/,"");i=i.slice(l+1),t.trim().length>0&&(yield await hq({text:t,schema:r})),l=i.indexOf("\n")}}let t=i.replace(/\r$/,"");t.trim().length>0&&(yield await hq({text:t,schema:r}))}finally{o||await a.cancel().catch(()=>{}),a.releaseLock()}}function h3(t){if(null==t)return!0;let r=typeof t;return"string"===r||"number"===r||"boolean"===r||"function"!==r&&"symbol"!==r&&"bigint"!==r&&(Array.isArray(t)?t.every(h3):Object.getPrototypeOf(t)===Object.prototype&&Object.values(t).every(h3))}var h6="AI_SerializationError",h8=`vercel.ai.error.${h6}`,h9=Symbol.for(h8),h7=class extends(V=oq,Y=h9,V){constructor({message:t="Failed to serialize value.",cause:r}={}){super({name:h6,message:t,cause:r}),this[Y]=!0}static isInstance(t){return oq.hasMarker(t,h8)}};function pe(t){let r={};for(let[a,n]of Object.entries(t.config))if("headers"===a){let t=function(t){let r=t;if("function"==typeof t&&(r=t()),r instanceof Promise)throw new h7({message:"Cannot serialize asynchronous model options."});return r}(n);h3(t)&&(r[a]=t)}else h3(n)&&(r[a]=n);return{modelId:t.modelId,config:r}}function pt(t){return"string"==typeof t}function pr(t){return"number"==typeof t}function pa(t,r){return void 0===t||r(t)}function pn(t){return hn(t)&&pt(t.type)}function pi(t){return hn(t)&&pt(t.text)&&pr(t.startSecond)&&pr(t.endSecond)}class po extends Error{constructor(){super("Cannot parse a reference cycle that closes through a transform"),this.name="ZodCyclicError"}}let ps="~memo",pl=[];function pd(t){return null!==t&&"object"==typeof t}function pc(t){return t.map(t=>t.path?{...t,path:t.path.slice()}:{...t})}let pu=new WeakMap,ph=[],pp={alloc(t,r,n){let i=a;if(!i)return n;a=void 0;let o={value:n,issues:null};return i.set(r.value,o),ph.push(o),n},guard(t){var r;(r=t._zod).deferred??(r.deferred=[]),t._zod.deferred.push(()=>{let r=t._zod.parse,a=(t,a)=>{var n,i;let o;if("backward"!==a.direction&&(n=a,i=t.value,void 0!==(o=n[ps]?.backEdges)&&pd(i)&&o.has(i)))throw new po;return r(t,a)};t._zod.parse=a,t._zod.run===r&&(t._zod.run=a)})},attach(t){var r;let n,i,o,s=!1;(r=t._zod).deferred??(r.deferred=[]),t._zod.deferred.push(()=>{let r=t._zod.parse,l=(d,c)=>{let u;if(void 0===n){let a=function t(r,a,n){var i,o;let s=pu.get(r);if(void 0!==s)return 2*!!s;if(a.has(r))return 2;a.add(r);let l=0,d=r=>{if(2!==l&&r?._zod){let i=t(r,a,n);i>l&&(l=i)}},c=t=>{t>l&&(l=t)},u=r._zod.def;switch(u.type){case"object":{let r=iI(u);c(r?((r,i)=>{let o=0;for(let s of Reflect.ownKeys(r)){let l=Object.getOwnPropertyDescriptor(r,s);if(i&&!l.enumerable)continue;let d=l.get?1:l.value?._zod?t(l.value,a,n):0;d>o&&(o=d)}return o}
70)(r,!0):1),d(u.catchall);break}case"array":d(u.element);break;case"tuple":for(let t of u.items)d(t);d(u.rest);break;case"record":case"map":d(u.keyType),d(u.valueType);break;case"set":d(u.valueType);break;case"union":for(let t of u.options)d(t);break;case"intersection":d(u.left),d(u.right);break;case"optional":case"nullable":case"default":case"prefault":case"catch":case"readonly":case"nonoptional":case"promise":case"success":d(u.innerType);break;case"pipe":d(u.in),d(u.out);break;case"function":d(u.input),d(u.output);break;case"lazy":{let i=u._cachedInner??(n?r._zod.innerType:void 0);c(i?t(i,a,!1):1);break}case"template_literal":case"string":case"number":case"int":case"boolean":case"bigint":case"symbol":case"undefined":case"null":case"void":case"never":case"any":case"unknown":case"date":case"nan":case"enum":case"literal":case"file":case"transform":case"custom":break;default:for(let t in u){let r=Object.getOwnPropertyDescriptor(u,t);if(!r||r.get)continue;let a=r.value;if(a&&"object"==typeof a){if(a._zod)d(a);else if(Array.isArray(a))for(let t of a)d(t)}}}return a.delete(r),i=r,1!==(o=l)&&pu.set(i,2===o),o}(t,new Set,!1);if(0===a)return t._zod.parse=r,t._zod.run===l&&(t._zod.run=r),r(d,c);2===a||s?n=!0:s=!0}let h=d.value;if(!pd(h))return r(d,c);let p=c[ps];if(p||(p={buckets:new WeakMap,backEdges:void 0},c[ps]=p),i===c)u=o;else{var m;let r;(r=(m=p).buckets.get(t))||(r=new WeakMap,m.buckets.set(t,r)),u=r,i=c,o=u}let f=u.get(h);if(f)return d.value=f.value,f.issues?f.issues.length&&d.issues.push(...pc(f.issues)):(d.memo=!0,p.backEdges??(p.backEdges=new WeakSet),p.backEdges.add(f.value)),d;a=u;let x=ph.length,g=r(d,c);a=void 0;let y=ph.length>x?ph.pop():void 0;return g instanceof Promise?g.then(t=>(y&&(y.issues=t.issues.length?pc(t.issues):pl),t)):(y&&(y.issues=g.issues.length?pc(g.issues):pl),g)};t._zod.parse=l,t._zod.run===r&&(t._zod.run=l)})}};function pm(t){return t.checks&&(t.checks=[...t.checks]),t}function pf(t,r){return new lU({check:"less_than",...i0(r),value:t,inclusive:!1})}function px(t,r){return new lU({check:"less_than",...i0(r),value:t,inclusive:!0})}function pg(t,r){return new lB({check:"greater_than",...i0(r),value:t,inclusive:!1})}function py(t,r){return new lB({check:"greater_than",...i0(r),value:t,inclusive:!0})}function pb(t,r){return new lF({check:"multiple_of",...i0(r),value:t})}function pv(t,r){return new lK({check:"max_length",...i0(r),maximum:t})}function pw(t,r){return new lG({check:"min_length",...i0(r),minimum:t})}function pk(t,r){return new lJ({check:"length_equals",...i0(r),length:t})}function pj(t){return new l8({check:"overwrite",tx:t})}t.i(96094);var pN=t.i(13322),pN=pN;function p_(){oW.memoizer||oU({memoizer:pp})}let pE=o$("ZodType",(t,r)=>(oW.localeError||oU({localeError:(()=>{let t={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"},map:{unit:"entries",verb:"to have"}},r={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",currency_code:"currency code",credit_card:"credit card number",iban:"IBAN",jwt:"JWT",template_literal:"input"},a={nan:"NaN"};function n(t,r){return"number"!==t||"number"!=typeof r||Number.isFinite(r)?a[t]??t:String(r)}return a=>{switch(a.code){case"invalid_type":{let t=n(a.expected),r=n(of(a.input),a.input);return`Invalid input: expected ${t}, received ${r}`}case"invalid_value":if(1===a.values.length)return`Invalid input: expected ${i2(a.values[0])}`;return`Invalid option: expected one of ${iv(a.values,"|")}`;case"too_big":{let r=a.exact?"exactly ":a.inclusive?"<=":"<",n=t[a.origin]??null;if(n)return`Too big: expected ${a.origin??"value"} to have ${r}${a.maximum.toString()} ${n.unit??"elements"}`;return`Too big: expected ${a.origin??"value"} to be ${r}${a.maximum.toString()}`}case"too_small":{let r=a.exact?"exactly ":a.inclusive?">=":">",n=t[a.origin]??null;if(n)return`Too small: expected ${a.origin} to have ${r}${a.minimum.toString()} ${n.unit}`;return`Too small: expected ${a.origin} to be ${r}${a.minimum.toString()}`}
70case"invalid_format":if("starts_with"===a.format)return`Invalid string: must start with "${a.prefix}"`;if("ends_with"===a.format)return`Invalid string: must end with "${a.suffix}"`;if("includes"===a.format)return`Invalid string: must include "${a.includes}"`;if("regex"===a.format)return`Invalid string: must match pattern ${a.pattern}`;return`Invalid ${r[a.format]??a.format}`;case"not_multiple_of":return`Invalid number: must be a multiple of ${a.divisor}`;case"unrecognized_keys":return`Unrecognized key${a.keys.length>1?"s":""}: ${iv(a.keys,", ")}`;case"invalid_key":return`Invalid key in ${a.origin}`;case"invalid_union":if(a.options&&Array.isArray(a.options)&&a.options.length>0){let t=a.options.map(t=>`'${t}'`).join(" | ");return`Invalid discriminator value. Expected ${t}`}if(!1===a.inclusive)return"Invalid input: more than one option matched";return"Invalid input";case"invalid_element":return`Invalid value in ${a.origin}`;default:return"Invalid input"}}})()}),de.init(t,r),t.def=r,t.type=r.type,t),{check(...t){let r=this.def;return this.clone(pN.mergeDefs(r,{checks:[...r.checks??[],...t.map(t=>"function"==typeof t?{_zod:{check:t,def:{check:"custom"},onattach:[]}}:t)]}),{parent:!0})},with(...t){return this.check(...t)},clone(t,r){return iQ(this,t,r)},brand(){return this},register(t,r){return t.add(this,r),this},refine(t,r){return this.check(function(t,r={}){return new mI({type:"custom",check:"custom",fn:t,...i0(r)})}(t,r))},superRefine(t,r){return this.check(function(t,r){var a;let n,i;return a=r=>(r.addIssue=t=>{"string"==typeof t?r.issues.push(ox(t,r.value,n._zod.def)):(t.fatal&&(t.continue=!1),t.code??(t.code="custom"),"input"in t||(t.input=r.value),t.inst??(t.inst=n),t.continue??(t.continue=!n._zod.def.abort),r.issues.push(ox(t)))},t(r.value,r)),(i=new l$({check:"custom",...i0(r)}))._zod.check=a,n=i}(t,r))},overwrite(t){return this.check(pj(t))},optional(){return mb(this)},exactOptional(){var t;return t=this,new mv({type:"optional",innerType:t})},nullable(){return mk(this)},nullish(){return mb(mk(this))},nonoptional(t){var r,a;return r=this,a=t,new m_({type:"nonoptional",innerType:r,...pN.normalizeParams(a)})},array(){return ma(this)},or(t){return ms([this,t])},and(t){var r;return r=this,new mc({type:"intersection",left:r,right:t})},transform(t){return mC(this,new mg({type:"transform",transform:t}))},default(t){var r,a;return r=this,a=t,new mj({type:"default",innerType:r,get defaultValue(){return"function"==typeof a?a():pN.shallowClone(a)}})},prefault(t){var r,a;return r=this,a=t,new mN({type:"prefault",innerType:r,get defaultValue(){return"function"==typeof a?a():pN.shallowClone(a)}})},catch(t){var r,a;return r=this,new mE({type:"catch",innerType:r,catchValue:"function"==typeof(a=t)?a:pN.constantCatch(a)})},pipe(t){return mC(this,t)},readonly(){var t;return t=this,new mT({type:"readonly",innerType:t})},describe(t){let r=this.clone();return cS.add(r,{description:t}),r},meta(...t){if(0===t.length)return cS.get(this);let r=this.clone();return cS.add(r,t[0]),r},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(t,...r){return 0===r.length?t(this):t(this,...r)},get"~standard"(){return pN.hide(this,"~standard",{...da(this),jsonSchema:{input:cL(this,"input"),output:cL(this,"output")}})},set"~standard"(value){pN.own(this,"~standard",value)},parse:function t(r,a){return sD(this,r,a,{callee:t})},parseAsync:async function t(r,a){return await sR(this,r,a,{callee:t})},safeParse(t,r){return s$(this,t,r)},async safeParseAsync(t,r){return sz(this,t,r)},get spa(){return this?.safeParseAsync},set spa(value){pN.own(this,"spa",value)},validate(t,r){let a=this._zod.bag.validator;if(void 0!==a){if(a(t)!==sT)return!0;if(!0===a.definite&&void 0===r)return!1}return function(t,r,a){let n,i=a?{...a,async:!1,abortEarly:!0}:{async:!1,abortEarly:!0},o=t._zod.bag.fallbackRun;if(o?(i[sA]=!0,n=o({value:r,issues:[]},i)):n=t._zod.run({value:r,issues:[]},i),n instanceof Promise)throw new oz;return 0===n.issues.length}(this,t,r)},validateAsync(t,r){return sI(this,t,r)},encode:function t(r,a){return sL(this,r,a,{callee:t})},decode:function t(r,a){return sW(this,r,a,{callee:t})},encodeAsync:async function t(r,a){return await sU(this,r,a,{callee:t})},decodeAsync:async function t(r,a){return await sB(this,r,a,{callee:t})},safeEncode(t,r){return sF(this,t,r)},safeDecode(t,r){return sY(this,t,r)},async safeEncodeAsync(t,r){return sV(this,t,r)},async safeDecodeAsync(t,r){return sq(this,t,r)},toJSONSchema(t){return((t,r={})=>a=>{let n=cT({...a,processors:r});return cI(t,n),cP(n,t),cz(n,t)})(this,{})(t)},get description(){return cS.get(this)?.description},get _def(){return this._zod.def}}),pS=o$("_ZodString",(t,r)=>{dn.init(t,r),pE.init(t,r),t._zod.processJSONSchema=(r,a,n)=>c1(t,r,a,n)},pN.derived({format:t=>cJ(t).format??null,minLength:t=>cJ(t).minimum??null,maxLength:t=>cJ(t).maximum??null},{regex(...t){return this.check(function(t,r){return new lQ({check:"string_format",format:"regex",...i0(r),pattern:t})}(...t))},includes(...t){return this.check(function(t,r){return new l2({check:"string_format",format:"includes",...i0(r),includes:t})}(...t))},startsWith(...t){return this.check(function(t,r){return new l5({check:"string_format",format:"starts_with",...i0(r),prefix:t})}(...t))},endsWith(...t){return this.check(function(t,r){return new l4({check:"string_format",format:"ends_with",...i0(r),suffix:t})}(...t))},min(...t){return this.check(pw(...t))},max(...t){return this.check(pv(...t))},length(...t){return this.check(pk(...t))},nonempty(...t){return this.check(pw(1,...t))},lowercase(t){return this.check(new l0({check:"string_format",format:"lowercase",...i0(t)}))},uppercase(t){return this.check(new l1({check:"string_format",format:"up
70percase",...i0(t)}))},trim(){return this.check(pj(t=>t.trim()))},normalize(...t){return this.check(function(t){return pj(r=>r.normalize(t))}(...t))},toLowerCase(){return this.check(pj(t=>t.toLowerCase()))},toUpperCase(){return this.check(pj(t=>t.toUpperCase()))},slugify(){return this.check(pj(t=>iB(t)))}})),pC=o$("ZodString",(t,r)=>{dn.init(t,r),pS.init(t,r)},{email(t){return this.check(new pD({type:"string",format:"email",check:"string_format",abort:!1,...i0(t)}))},url(t){return this.check(new pz({type:"string",format:"url",check:"string_format",abort:!1,...i0(t)}))},jwt(t){return this.check(new pQ({type:"string",format:"jwt",check:"string_format",abort:!1,...i0(t)}))},emoji(t){return this.check(new pL({type:"string",format:"emoji",check:"string_format",abort:!1,...i0(t)}))},guid(t){return this.check(new pR({type:"string",format:"guid",check:"string_format",abort:!1,...i0(t)}))},uuid(t){return this.check(new p$({type:"string",format:"uuid",check:"string_format",abort:!1,...i0(t)}))},uuidv4(t){return this.check(new p$({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...i0(t)}))},uuidv6(t){return this.check(new p$({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...i0(t)}))},uuidv7(t){return this.check(new p$({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...i0(t)}))},nanoid(t){return this.check(new pW({type:"string",format:"nanoid",check:"string_format",abort:!1,...i0(t)}))},cuid(t){return this.check(new pU({type:"string",format:"cuid",check:"string_format",abort:!1,...i0(t)}))},cuid2(t){return this.check(new pB({type:"string",format:"cuid2",check:"string_format",abort:!1,...i0(t)}))},ulid(t){return this.check(new pF({type:"string",format:"ulid",check:"string_format",abort:!1,...i0(t)}))},base64(t){return this.check(new pG({type:"string",format:"base64",check:"string_format",abort:!1,...i0(t)}))},base64url(t){return this.check(new pJ({type:"string",format:"base64url",check:"string_format",abort:!1,...i0(t)}))},xid(t){return this.check(new pY({type:"string",format:"xid",check:"string_format",abort:!1,...i0(t)}))},ksuid(t){return this.check(new pV({type:"string",format:"ksuid",check:"string_format",abort:!1,...i0(t)}))},ipv4(t){return this.check(new pq({type:"string",format:"ipv4",check:"string_format",abort:!1,...i0(t)}))},ipv6(t){return this.check(new pH({type:"string",format:"ipv6",check:"string_format",abort:!1,...i0(t)}))},cidrv4(t){return this.check(new pZ({type:"string",format:"cidrv4",check:"string_format",abort:!1,...i0(t)}))},cidrv6(t){return this.check(new pK({type:"string",format:"cidrv6",check:"string_format",abort:!1,...i0(t)}))},e164(t){return this.check(new pX({type:"string",format:"e164",check:"string_format",abort:!1,...i0(t)}))},datetime(t){return this.check(new pI({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...i0(t)}))},date(t){return this.check(new pM({type:"string",format:"date",check:"string_format",...i0(t)}))},time(t){return this.check(new pP({type:"string",format:"time",check:"string_format",precision:null,...i0(t)}))},duration(t){return this.check(new pO({type:"string",format:"duration",check:"string_format",...i0(t)}))}});function pT(t){return new pC(pm({type:"string",...i0(t)}))}let pA=o$("ZodStringFormat",(t,r)=>{di.init(t,r),pS.init(t,r)}),pI=o$("ZodISODateTime",(t,r)=>{dw.init(t,r),pA.init(t,r)}),pM=o$("ZodISODate",(t,r)=>{dk.init(t,r),pA.init(t,r)}),pP=o$("ZodISOTime",(t,r)=>{dj.init(t,r),pA.init(t,r)}),pO=o$("ZodISODuration",(t,r)=>{dN.init(t,r),pA.init(t,r)}),pD=o$("ZodEmail",(t,r)=>{dd.init(t,r),pA.init(t,r)}),pR=o$("ZodGUID",(t,r)=>{ds.init(t,r),pA.init(t,r)}),p$=o$("ZodUUID",(t,r)=>{dl.init(t,r),pA.init(t,r)}),pz=o$("ZodURL",(t,r)=>{dp.init(t,r),pA.init(t,r)}),pL=o$("ZodEmoji",(t,r)=>{dm.init(t,r),pA.init(t,r)}),pW=o$("ZodNanoID",(t,r)=>{df.init(t,r),pA.init(t,r)}),pU=o$("ZodCUID",(t,r)=>{dx.init(t,r),pA.init(t,r)}),pB=o$("ZodCUID2",(t,r)=>{dg.init(t,r),pA.init(t,r)}),pF=o$("ZodULID",(t,r)=>{dy.init(t,r),pA.init(t,r)}),pY=o$("ZodXID",(t,r)=>{db.init(t,r),pA.init(t,r)}),pV=o$("ZodKSUID",(t,r)=>{dv.init(t,r),pA.init(t,r)}),pq=o$("ZodIPv4",(t,r)=>{d_.init(t,r),pA.init(t,r)}),pH=o$("ZodIPv6",(t,r)=>{dC.init(t,r),pA.init(t,r)}),pZ=o$("ZodCIDRv4",(t,r)=>{dT.init(t,r),pA.init(t,r)}),pK=o$("ZodCIDRv6",(t,r)=>{dA.init(t,r),pA.init(t,r)}),pG=o$("ZodBase64",(t,r)=>{dP.init(t,r),pA.init(t,r)}),pJ=o$("ZodBase64URL",(t,r)=>{dD.init(t,r),pA.init(t,r)}),pX=o$("ZodE164",(t,r)=>{dR.init(t,r),pA.init(t,r)}),pQ=o$("ZodJWT",(t,r)=>{dz.init(t,r),pA.init(t,r)}),p0=o$("ZodNumber",(t,r)=>{dL.init(t,r),pE.init(t,r),t._zod.processJSONSchema=(r,a,n)=>c2(t,r,a,n),t.isFinite=!0},pN.derived({minValue:t=>{let{minimum:r,exclusiveMinimum:a}=cJ(t);return Math.max(r??-1/0,a??-1/0)},maxValue:t=>{let{maximum:r,exclusiveMaximum:a}=cJ(t);return Math.min(r??1/0,a??1/0)},isInt:t=>{let{isInt:r,multipleOf:a}=cJ(t);return!!r||!!a?.some(Number.isSafeInteger)},format:t=>cJ(t).format??null},{gt(t,r){return this.check(pg(t,r))},gte(t,r){return this.check(py(t,r))},min(t,r){return this.check(py(t,r))},lt(t,r){return this.check(pf(t,r))},lte(t,r){return this.check(px(t,r))},max(t,r){return this.check(px(t,r))},int(t){return this.check(p5(t))},safe(t){return this.check(p5(t))},positive(t){return this.check(pg(0,t))},nonnegative(t){return this.check(py(0,t))},negative(t){return this.check(pf(0,t))},nonpositive(t){return this.check(px(0,t))},multipleOf(t,r){return this.check(pb(t,r))},step(t,r){return this.check(pb(t,r))},finite(){return this}}));function p1(t){return new p0(pm({type:"number",checks:[],...i0(t)}))}let p2=o$("ZodNumberFormat",(t,r)=>{dW.init(t,r),p0.init(t,r)});function p5(t){return new p2({type:"number",check:"number_format",abort:!1,format:"safeint",...i0(t)})}let p4=o$("ZodBoolean",(t,r)=>{dU.init(t,r),pE.init(t,r),t._zod.processJSONSchema=(r,a,n)=>c5(t,r,a,n)});function p3(t){return new p4({type:"boolean",...i0(t)})}(t,r)=>{dB.init(t,r),pE.init(t,r),t._zod.processJSONSchema=(r,a,n)=>c4(t,r,a,n)};let p6=o$("ZodNull",(t,r)=>{dF.init(t,r),pE.init(t,r),t._zod.processJSONSchema=(r,a,n)=>c3(t,r,a,n)}),p8=o$("ZodAny",(t,r)=>{dY.init(t,r),pE.init(t,r),t._zod.processJSONSchema=(r,a,n)=>c8(t,r,a,n)}),p9=o$("ZodUnknown",(t,r)=>{dV.init(t,r),pE.init(t,r),t._zod.processJSONSchema=(r,a,n)=>c9(t,r,a,n)});function p7(){return new p9({type:"unknown"})}let me=o$("ZodNever",(t,r)=>{dq.init(t,r),pE.init(t,r),t._zod.processJSONSchema=(r,a,n)=>c6(t,r,a,n)});function mt(t){return new me({type:"never",...i0(t)})}let mr=o$("ZodArray",(t,r)=>{p_(),dZ.init(t,r),pE.init(t,r),t._zod.processJSONSchema=(r,a,n)=>ua(t,r,a,n),t.element=r.element},{min(t,r){return this.check(pw(t,r))},nonempty(t){return this.check(pw(1,t))},max(t,r){return this.check(pv(t,r))},length(t,r){return this.check(pk(t,r))},unwrap(){return this.element}});function ma(t,r){return new mr({type:"array",element:t,...i0(r)})}let mn=o$("ZodObject",(t,r)=>{p_(),d0.init(t,r),pE.init(t,r),t._zod.processJSONSchema=(r,a,n)=>
70ui(t,r,a,n),pN.installLazyProp(t,"shape",t=>t._zod.def.shape,!1)},{keyof(){return mm(Object.keys(this._zod.def.shape))},catchall(t){return this.clone(pN.mergeDefs(this._zod.def,{catchall:t}))},passthrough(){return this.clone(pN.mergeDefs(this._zod.def,{catchall:p7()}))},loose(){return this.clone(pN.mergeDefs(this._zod.def,{catchall:p7()}))},strict(){return this.clone(pN.mergeDefs(this._zod.def,{catchall:mt()}))},strip(){return this.clone(pN.mergeDefs(this._zod.def,{catchall:void 0}))},extend(t){return pN.extend(this,t)},safeExtend(t){return pN.safeExtend(this,t)},merge(t){return pN.merge(this,t)},pick(t){return pN.pick(this,t)},omit(t){return pN.omit(this,t)},partial(...t){return pN.partial(my,this,t[0])},exactPartial(...t){return pN.partial(mv,this,t[0],"exactPartial")},required(...t){return pN.required(m_,this,t[0])}});function mi(t,r){return new mn({type:"object",shape:t??{},...pN.normalizeParams(r)})}let mo=o$("ZodUnion",(t,r)=>{d2.init(t,r),pE.init(t,r),t._zod.processJSONSchema=(r,a,n)=>uo(t,r,a,n),t.options=r.options});function ms(t,r){return new mo({type:"union",options:t,...pN.normalizeParams(r)})}let ml=o$("ZodDiscriminatedUnion",(t,r)=>{mo.init(t,r),d4.init(t,r)});function md(t,r,a){return new ml({type:"union",options:r,discriminator:t,...pN.normalizeParams(a)})}let mc=o$("ZodIntersection",(t,r)=>{d3.init(t,r),pE.init(t,r),t._zod.processJSONSchema=(r,a,n)=>us(t,r,a,n)}),mu=o$("ZodRecord",(t,r)=>{p_(),ct.init(t,r),pE.init(t,r),t._zod.processJSONSchema=(r,a,n)=>ud(t,r,a,n),t.keyType=r.keyType,t.valueType=r.valueType});function mh(t,r,a){return new mu(r&&r._zod?{type:"record",keyType:t,valueType:r,...pN.normalizeParams(a)}:{type:"record",keyType:pT(),valueType:t,...pN.normalizeParams(r)})}let mp=o$("ZodEnum",(t,r)=>{cn.init(t,r),pE.init(t,r),t._zod.processJSONSchema=(r,a,n)=>c7(t,r,a,n),t.enum=r.entries,t.options=[...t._zod.values];let a=new Set(Object.keys(r.entries));t.extract=(t,n)=>{let i={};for(let n of t)if(a.has(n))i[n]=r.entries[n];else throw Error(`Key ${n} not found in enum`);return new mp({...r,checks:[],...pN.normalizeParams(n),entries:i})},t.exclude=(t,n)=>{let i={...r.entries};for(let r of t)if(a.has(r))delete i[r];else throw Error(`Key ${r} not found in enum`);return new mp({...r,checks:[],...pN.normalizeParams(n),entries:i})}});function mm(t,r){return new mp({type:"enum",entries:Array.isArray(t)?Object.fromEntries(t.map(t=>[t,t])):t,...pN.normalizeParams(r)})}let mf=o$("ZodLiteral",(t,r)=>{ci.init(t,r),pE.init(t,r),t._zod.processJSONSchema=(r,a,n)=>ue(t,r,a,n),t.values=new Set(r.values),Object.defineProperty(t,"value",{get(){if
70(r.values.length>1)throw Error("This schema contains multiple valid literal values. Use `.values` instead.");return r.values[0]}})});function mx(t,r){return new mf({type:"literal",values:Array.isArray(t)?t:[t],...pN.normalizeParams(r)})}let mg=o$("ZodTransform",(t,r)=>{p_(),co.init(t,r),pE.init(t,r),t._zod.processJSONSchema=(r,a,n)=>ur(t,r,a,n),t._zod.parse=(a,n)=>{if("backward"===n.direction)throw new oL(t.constructor.name);a.addIssue=n=>{"string"==typeof n?a.issues.push(pN.issue(n,a.value,r)):(n.fatal&&(n.continue=!1),n.code??(n.code="custom"),"input"in n||(n.input=a.value),n.inst??(n.inst=t),a.issues.push(pN.issue(n)))};let i=r.transform(a.value,a);return i instanceof Promise?i.then(t=>(a.value=t,a)):(a.value=i,a)}}),my=o$("ZodOptional",(t,r)=>{cl.init(t,r),pE.init(t,r),t._zod.processJSONSchema=(r,a,n)=>ub(t,r,a,n),t.unwrap=()=>t._zod.def.innerType});function mb(t){return new my({type:"optional",innerType:t})}let mv=o$("ZodExactOptional",(t,r)=>{cd.init(t,r),pE.init(t,r),t._zod.processJSONSchema=(r,a,n)=>ub(t,r,a,n),t.unwrap=()=>t._zod.def.innerType}),mw=o$("ZodNullable",(t,r)=>{cc.init(t,r),pE.init(t,r),t._zod.processJSONSchema=(r,a,n)=>uc(t,r,a,n),t.unwrap=()=>t._zod.def.innerType});function mk(t){return new mw({type:"nullable",innerType:t})}let mj=o$("ZodDefault",(t,r)=>{cu.init(t,r),pE.init(t,r),t._zod.processJSONSchema=(r,a,n)=>um(t,r,a,n),t.unwrap=()=>t._zod.def.innerType,t.removeDefault=t.unwrap}),mN=o$("ZodPrefault",(t,r)=>{cp.init(t,r),pE.init(t,r),t._zod.processJSONSchema=(r,a,n)=>uf(t,r,a,n),t.unwrap=()=>t._zod.def.innerType}),m_=o$("ZodNonOptional",(t,r)=>{cm.init(t,r),pE.init(t,r),t._zod.processJSONSchema=(r,a,n)=>uu(t,r,a,n),t.unwrap=()=>t._zod.def.innerType}),mE=o$("ZodCatch",(t,r)=>{cg.init(t,r),pE.init(t,r),t._zod.processJSONSchema=(r,a,n)=>ux(t,r,a,n),t.unwrap=()=>t._zod.def.innerType,t.removeCatch=t.unwrap}),mS=o$("ZodPipe",(t,r)=>{cy.init(t,r),pE.init(t,r),t._zod.processJSONSchema=(r,a,n)=>ug(t,r,a,n),t.in=r.in,t.out=r.out});function mC(t,r){return new mS({type:"pipe",in:t,out:r})}let mT=o$("ZodReadonly",(t,r)=>{ck.init(t,r),pE.init(t,r),t._zod.processJSONSchema=(r,a,n)=>uy(t,r,a,n),t.unwrap=()=>t._zod.def.innerType}),mA=o$("ZodLazy",(t,r)=>{cN.init(t,r),pE.init(t,r),t._zod.processJSONSchema=(r,a,n)=>uv(t,r,a,n),t.unwrap=()=>t._zod.def.getter()}),mI=o$("ZodCustom",(t,r)=>{c_.init(t,r),pE.init(t,r),t._zod.processJSONSchema=(r,a,n)=>ut(t,r,a,n)}),mM=o$("ZodInstanceOf",(t,r)=>{mI.init(t,r)},{properties(t,r){return this.check(new l6({check:"properties",shape:t,...i0(r)}))}});var mP=t.i(54796),mO="ai-gateway-transcription.v1";function mD(t,r,a){let n=[t,`ai-gateway-auth.${r}`];return(null==a?void 0:a.teamIdOrSlug)&&n.push(`ai-gateway-team.${function(t){let r=new TextEncoder().encode(t),a="";for(let t of r)a+=String.fromCharCode(t);return btoa(a).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/u,"")}(a.teamIdOrSlug)}`),n}var mR=function(){return new p8({type:"any"})},m$=ma,mz=mm,mL=ms,mW=Symbol.for("vercel.ai.gateway.error"),mU=class t extends(H=Error,q=mW,H){constructor({message:t,statusCode:r=500,cause:a,generationId:n,isRetryable:i=null!=r&&(408===r||409===r||429===r||r>=500)}){super(n?`${t} [${n}]`:t),this[q]=!0,this.statusCode=r,this.cause=a,this.generationId=n,this.isRetryable=i}static isInstance(r){return t.hasMarker(r)}static hasMarker(t){return"object"==typeof t&&null!==t&&mW in t&&!0===t[mW]}},mB="GatewayAuthenticationError",mF=Symbol.for(`vercel.ai.gateway.error.${mB}`),mY=class t extends(K=mU,Z=mF,K){constructor({message:t="Authentication failed",statusCode:r=401,cause:a,generationId:n}={}){super({message:t,statusCode:r,cause:a,generationId:n}),this[Z]=!0,this.name=mB,this.type="authentication_error"}static isInstance(t){return mU.hasMarker(t)&&mF in t}static createContextualError({apiKeyProvided:r,oidcTokenProvided:a,statusCode:n=401,cause:i,generationId:o}){return new t({message:r?`AI Gateway authentication failed: Invalid API key or token. 71 72Create a new API key: https://vercel.com/d?to=%2F%5Bteam%5D%2F%7E%2Fai%2Fapi-keys 73 74Provide an API key or Vercel access token via 'apiKey' option or 'AI_GATEWAY_API_KEY' environment variable.`:a?`AI Gateway authentication failed: Invalid OIDC token. 75 76Run 'npx vercel link' to link your project, then 'vc env pull' to fetch the token. 77 78Alternatively, use an API key: https://vercel.com/d?to=%2F%5Bteam%5D%2F%7E%2Fai%2Fapi-keys 79or pass a Vercel access token via the 'apiKey' option.`:`AI Gateway authentication failed: No authentication provided. 80 81Option 1 - API key: 82Create an API key: https://vercel.com/d?to=%2F%5Bteam%5D%2F%7E%2Fai%2Fapi-keys 83Provide via 'apiKey' option or 'AI_GATEWAY_API_KEY' environment variable. 84 85Option 2 - Vercel access token: 86Pass a Vercel personal access token or Vercel app access token via the 'apiKey' option. 87 88Option 3 - OIDC token: 89Run 'npx vercel link' to link your project, then 'vc env pull' to fetch the token.`,statusCode:n,cause:i,generationId:o})}},mV="GatewayInvalidRequestError",mq=Symbol.for(`vercel.ai.gateway.error.${mV}`),mH=class extends(J=mU,G=mq,J){constructor({message:t="Invalid request",statusCode:r=400,cause:a,generationId:n}={}){super({message:t,statusCode:r,cause:a,generationId:n}),this[G]=!0,this.name=mV,this.type="invalid_request_error"}static isInstance(t){return mU.hasMarker(t)&&mq in t}},mZ="GatewayRateLimitError",mK=Symbol.for(`vercel.ai.gateway.error.${mZ}`),mG=class extends(Q=mU,X=mK,Q){constructor({message:t="Rate limit exceeded",statusCode:r=429,cause:a,generationId:n}={}){super({message:t,statusCode:r,cause:a,generationId:n}),this[X]=!0,this.name=mZ,this.type="rate_limit_exceeded"}static isInstance(t){return mU.hasMarker(t)&&mK in t}},mJ="GatewayModelNotFoundError",mX=Symbol.for(`vercel.ai.gateway.error.${mJ}`),mQ=hW(()=>hF(mi({modelId:pT()}))),m0=class extends(et=mU,ee=mX,et){constructor({message:t="Model not found",statusCode:r=404,modelId:a,cause:n,generationId:i}={}){super({message:t,statusCode:r,cause:n,generationId:i}),this[ee]=!0,this.name=mJ,this.type="model_not_found",this.modelId=a}static isInstance(t){return mU.hasMarker(t)&&mX in t}},m1="GatewayNotFoundError",m2=Symbol.for(`vercel.ai.gateway.error.${m1}`),m5=class extends(ea=mU,er=m2,ea){constructor({message:t="Resource not found",statusCode:r=404,cause:a,generationId:n}={}){super({message:t,statusCode:r,cause:a,generationId:n}),this[er]=!0,this.name=m1,this.type="not_found"}static isInstance(t){return mU.hasMarker(t)&&m2 in t}},m4="GatewayInternalServerError",m3=Symbol.for(`vercel.ai.gateway.error.${m4}`),m6=class extends(ei=mU,en=m3,ei){constructor({message:t="Internal server error",statusCode:r=500,cause:a,generationId:n}={}){super({message:t,statusCode:r,cause:a,generationId:n}),this[en]=!0,this.name=m4,this.type="internal_server_error"}static isInstance(t){return mU.hasMarker(t)&&m3 in t}},m8="GatewayFailedDependencyError",m9=Symbol.for(`vercel.ai.gateway.error.${m8}`),m7=class extends(es=mU,eo=m9,es){constructor({message:t="Failed dependency",statusCode:r=424,cause:a,generationId:n}={}){super({message:t,statusCode:r,cause:a,generationId:n}),this[eo]=!0,this.name=m8,this.type="failed_dependency"}static isInstance(t){return mU.hasMarker(t)&&m9 in t}},fe="GatewayForbiddenError",ft=Symbol.for(`vercel.ai.gateway.error.${fe}`),fr=hW(()=>hF(mi({ruleId:pT()}))),fa=class extends(ed=mU,el=ft,ed){constructor({message:t="Forbidden",statusCode:r=403,cause:a,generationId:n,ruleId:i}={}){super({message:t,statusCode:r,cause:a,generationId:n}),this[el]=!0,this.name=fe,this.type="forbidden",this.ruleId=i}static isInstance(t){return mU.hasMarker(t)&&ft in t}},fn="GatewayResponseError",fi=Symbol.for(`vercel.ai.gateway.error.${fn}`),fo=class extends(eu=mU,ec=fi,eu){constructor({message:t="Invalid response from Gateway",statusCode:r=502,response:a,validationError:n,cause:i,generationId:o,isRetryable:s}={}){super({message:t,statusCode:r,cause:i,generationId:o,isRetryable:s}),this[ec]=!0,this.name=fn,this.type="response_error",this.response=a,this.validationError=n}static isInstance(t){return mU.hasMarker(t)&&fi in t}};async function fs({response:t,statusCode:r,defaultMessage:a="Gateway request failed",cause:n,authMethod:i,isRetryable:o}){var s;let l=await hV({value:t,schema:fl});if(!l.success){let i="object"==typeof t&&null!==t&&"generationId"in t?t.generationId:void 0;return new fo({message:`Invalid error response format: ${a}`,statusCode:r,response:t,validationError:l.error,cause:n,generationId:i,isRetryable:o})}let d=l.value,c=d.error.type,u=d.error.message,h=null!=(s=d.generationId)?s:void 0;switch(c){case"authentication_error":return mY.createContextualError({apiKeyProvided:"api-key"===i,oidcTokenProvided:"oidc"===i,statusCode:r,cause:n,generationId:h});
89case"invalid_request_error":return new mH({message:u,statusCode:r,cause:n,generationId:h});case"rate_limit_exceeded":return new mG({message:u,statusCode:r,cause:n,generationId:h});case"model_not_found":{let t=await hV({value:d.error.param,schema:mQ});return new m0({message:u,statusCode:r,modelId:t.success?t.value.modelId:void 0,cause:n,generationId:h})}case"not_found":return new m5({message:u,statusCode:r,cause:n,generationId:h});case"internal_server_error":default:return new m6({message:u,statusCode:r,cause:n,generationId:h});case"failed_dependency":return new m7({message:u,statusCode:r,cause:n,generationId:h});case"forbidden":{let t=await hV({value:d.error.param,schema:fr});return new fa({message:u,statusCode:r,cause:n,generationId:h,ruleId:t.success?t.value.ruleId:void 0})}}}var fl=hW(()=>hF(mi({error:mi({message:pT(),type:pT().nullish(),param:p7().nullish(),code:mL([pT(),p1()]).nullish()}),generationId:pT().nullish()}))),fd="GatewayTimeoutError",fc=Symbol.for(`vercel.ai.gateway.error.${fd}`),fu=class t extends(ep=mU,eh=fc,ep){constructor({message:t="Request timed out",statusCode:r=408,cause:a,generationId:n}={}){super({message:t,statusCode:r,cause:a,generationId:n}),this[eh]=!0,this.name=fd,this.type="timeout_error"}static isInstance(t){return mU.hasMarker(t)&&fc in t}static createTimeoutError({originalMessage:r,statusCode:a=408,cause:n,generationId:i}){return new t({message:`Gateway request timed out: ${r} 90 91 This is a client-side timeout. To resolve this, increase your timeout configuration: https://vercel.com/docs/ai-gateway/capabilities/video-generation#extending-timeouts-for-node.js`,statusCode:a,cause:n,generationId:i})}};function fh(t){if(!(t instanceof Error))return!1;let r=t.code;return"string"==typeof r&&["UND_ERR_HEADERS_TIMEOUT","UND_ERR_BODY_TIMEOUT","UND_ERR_CONNECT_TIMEOUT"].includes(r)}async function fp(t,r){var a;return mU.isInstance(t)?t:fh(t)?fu.createTimeoutError({originalMessage:t instanceof Error?t.message:"Unknown error",cause:t}):oG.isInstance(t)?t.cause&&fh(t.cause)?fu.createTimeoutError({originalMessage:t.message,cause:t}):await fs({response:function(t){if(void 0!==t.data)return t.data;if(null!=t.responseBody)try{return hc(t.responseBody)}catch(r){return t.responseBody}return{}}(t),statusCode:null!=(a=t.statusCode)?a:500,defaultMessage:"Gateway request failed",cause:t,authMethod:r,isRetryable:!!t.isRetryable&&(null==t.statusCode||t.statusCode<400)||void 0}):await fs({response:{},statusCode:500,defaultMessage:t instanceof Error?`Gateway request failed: ${t.message}`:"Unknown Gateway error",cause:t,authMethod:r})}var fm="ai-gateway-auth-method",ff="x-vercel-ai-gateway-team";async function fx(t){let r=await hV({value:t[fm],schema:fg});return r.success?r.value:void 0}var fg=hW(()=>hF(mL([mx("api-key"),mx("oidc")]))),fy=["embedding","image","language","realtime","reranking","speech","transcription","video"],fb=class{constructor(t){this.config=t}async getAvailableModels(){try{let{value:t}=await ha({url:`${this.config.baseURL}/config`,validateUrl:!1,headers:this.config.headers?await hQ(this.config.headers):void 0,successfulResponseHandler:h5(fv),failedResponseHandler:h2({errorSchema:mR(),errorToMessage:t=>{var r;return null!=(r=o1(t))?r:"unknown error"}}),fetch:this.config.fetch});return t}catch(t){throw await fp(t)}}async getCredits(){try{let t=new URL(this.config.baseURL),{value:r}=await ha({url:`${t.origin}/v1/credits`,validateUrl:!1,headers:this.config.headers?await hQ(this.config.headers):void 0,successfulResponseHandler:h5(fw),failedResponseHandler:h2({errorSchema:mR(),errorToMessage:t=>{var r;return null!=(r=o1(t))?r:"unknown error"}}),fetch:this.config.fetch});return r}catch(t){throw await fp(t)}}},fv=hW(()=>hF(mi({models:m$(mi({id:pT(),name:pT(),description:pT().nullish(),pricing:mi({input:pT(),output:pT(),input_cache_read:pT().nullish(),input_cache_write:pT().nullish()}).transform(({input:t,output:r,input_cache_read:a,input_cache_write:n})=>
91({input:t,output:r,...a?{cachedInputTokens:a}:{},...n?{cacheCreationInputTokens:n}:{}})).nullish(),specification:mi({specificationVersion:mx("v4"),provider:pT(),modelId:pT()}),modelType:pT().nullish()})).transform(t=>t.filter(t=>null==t.modelType||fy.includes(t.modelType)))}))),fw=hW(()=>hF(mi({balance:pT(),total_used:pT()}).transform(({balance:t,total_used:r})=>({balance:t,totalUsed:r})))),fk=class{constructor(t){this.config=t}async getSpendReport(t){try{let r=new URL(this.config.baseURL),a=new URLSearchParams;a.set("start_date",t.startDate),a.set("end_date",t.endDate),t.groupBy&&a.set("group_by",t.groupBy),t.datePart&&a.set("date_part",t.datePart),t.userId&&a.set("user_id",t.userId),t.model&&a.set("model",t.model),t.provider&&a.set("provider",t.provider),t.credentialType&&a.set("credential_type",t.credentialType),t.tags&&t.tags.length>0&&a.set("tags",t.tags.join(","));let{value:n}=await ha({url:`${r.origin}/v1/report?${a.toString()}`,validateUrl:!1,headers:this.config.headers?await hQ(this.config.headers):void 0,successfulResponseHandler:h5(fj),failedResponseHandler:h2({errorSchema:mR(),errorToMessage:t=>{var r;return null!=(r=o1(t))?r:"unknown error"}}),fetch:this.config.fetch});return n}catch(t){throw await fp(t)}}},fj=hW(()=>hF(mi({results:m$(mi({day:pT().optional(),hour:pT().optional(),user:pT().optional(),model:pT().optional(),tag:pT().optional(),provider:pT().optional(),credential_type:mz(["byok","system"]).optional(),total_cost:p1(),market_cost:p1().optional(),input_tokens:p1().optional(),output_tokens:p1().optional(),cached_input_tokens:p1().optional(),cache_creation_input_tokens:p1().optional(),reasoning_tokens:p1().optional(),request_count:p1().optional()}).transform(({credential_type:t,total_cost:r,market_cost:a,input_tokens:n,output_tokens:i,cached_input_tokens:o,cache_creation_input_tokens:s,reasoning_tokens:l,request_count:d,...c})=>({...c,...void 0!==t?{credentialType:t}:{},totalCost:r,...void 0!==a?{marketCost:a}:{},...void 0!==n?{inputTokens:n}:{},...void 0!==i?{outputTokens:i}:{},...void 0!==o?{cachedInputTokens:o}:{},...void 0!==s?{cacheCreationInputTokens:s}:{},...void 0!==l?{reasoningTokens:l}:{},...void 0!==d?{requestCount:d}:{}})))}))),fN=class{constructor(t){this.config=t}async getGenerationInfo(t){try{let r=new URL(this.config.baseURL),{value:a}=await ha({url:`${r.origin}/v1/generation?id=${encodeURIComponent(t.id)}`,validateUrl:!1,headers:this.config.headers?await hQ(this.config.headers):void 0,successfulResponseHandler:h5(f_),failedResponseHandler:h2({errorSchema:mR(),errorToMessage:t=>{var r;return null!=(r=o1(t))?r:"unknown error"}}),fetch:this.config.fetch});return a}catch(t){throw await fp(t)}}},f_=hW(()=>hF(mi({data:mi({id:pT(),total_cost:p1(),upstream_inference_cost:p1(),usage:p1(),created_at:pT(),model:pT(),is_byok:p3(),provider_name:pT(),streamed:p3(),finish_reason:pT(),latency:p1(),generation_time:p1(),native_tokens_prompt:p1(),native_tokens_completion:p1(),native_tokens_reasoning:p1(),native_tokens_cached:p1(),native_tokens_cache_creation:p1(),billable_web_search_calls:p1()}).transform(({total_cost:t,upstream_inference_cost:r,created_at:a,is_byok:n,provider_name:i,finish_reason:o,generation_time:s,native_tokens_prompt:l,native_tokens_completion:d,native_tokens_reasoning:c,native_tokens_cached:u,native_tokens_cache_creation:h,billable_web_search_calls:p,...m})=>({...m,totalCost:t,upstreamInferenceCost:r,createdAt:a,isByok:n,providerName:i,finishReason:o,generationTime:s,promptTokens:l,completionTokens:d,reasoningTokens:c,cachedTokens:u,cacheCreationTokens:h,billableWebSearchCalls:p}))}).transform(({data:t})=>t))),fE=class{constructor(t){this.config=t,this.specificationVersion="v4",this.supportedUrls={"*/*":[/.*/]},this.provider=`${t.provider}.batch`}async doStartBatch({requests:t,providerOptions:r,headers:a,abortSignal:n,webhookUrl:i}){var o,s=t;for(let t of s){let r=t.type;if("text"!==r)throw new sm({functionality:`batch request type: ${r}`,message:`The AI Gateway Batch API does not support batch requests with type "${r}".`})}let l=function(t){var r;let a=null==(r=t[0])?void 0:r.modelId;if(null==a)throw new o3({argument:"requests",message:"The AI Gateway Batch API requires at least one request."});for(let r of t)if(r.modelId!==a)throw new o3({argument:"requests",message:`The AI Gateway Batch API requires all requests in a batch to use the same model. Found "${a}" and "${r.modelId}".`});return a}(t),d=this.config.headers?await hQ(this.config.headers):void 0,c=function(t){let r=null==t?void 0:t.gateway;if(null==r||"object"!=typeof r||Array.isArray(r))return;
91let a=r.idempotencyKey;return"string"==typeof a&&a.length>0?a:void 0}(r),u=function(t){let r=null==t?void 0:t.gateway;if(null==r||"object"!=typeof r||Array.isArray(r)||!("idempotencyKey"in r))return t;let{idempotencyKey:a,...n}=r,i={...t};if(0===Object.keys(n).length?delete i.gateway:i.gateway=n,0!==Object.keys(i).length)return i}(r);try{let{value:r}=await hG({url:this.getBatchUrl("start"),headers:uT(d,a,{"ai-model-id":l},await hQ(this.config.o11yHeaders),null!=c?{"idempotency-key":c}:void 0),body:{...null!=i&&{callbackUrl:i},requests:t.map(t=>({id:t.id,type:t.type,modelId:t.modelId,options:function(t){for(let r of t.prompt)if(Array.isArray(r.content)){for(let t of r.content)if("file"===t.type||"reasoning-file"===t.type)t.data=fS(t.data);else if("tool-result"===t.type&&"content"===t.output.type)for(let r of t.output.value)"file"===r.type&&(r.data=fS(r.data))}return t}(t.options)})),...null!=u&&{providerOptions:u}},successfulResponseHandler:h5(fR),failedResponseHandler:h2({errorSchema:mR(),errorToMessage:t=>{var r;return null!=(r=o1(t))?r:"unknown error"}}),...n&&{abortSignal:n},fetch:this.config.fetch});return{batchId:r.batchId,...fT(r),warnings:null!=(o=r.warnings)?o:[]}}catch(t){if(fC(t))throw t;throw await fp(t,await fx(null!=d?d:{}))}}async doGetBatchStatus({batchId:t,headers:r,abortSignal:a}){let n=this.config.headers?await hQ(this.config.headers):void 0;try{let{value:i}=await hG({url:this.getBatchUrl("status"),headers:uT(n,r,await hQ(this.config.o11yHeaders)),body:{batchId:t},successfulResponseHandler:h5(f$),failedResponseHandler:h2({errorSchema:mR(),errorToMessage:t=>{var r;return null!=(r=o1(t))?r:"unknown error"}}),...a&&{abortSignal:a},fetch:this.config.fetch});return fT(i)}catch(t){if(fC(t))throw t;throw await fp(t,await fx(null!=n?n:{}))}}async doGetBatchResults({batchId:t,headers:r,abortSignal:a}){let n=this.config.headers?await hQ(this.config.headers):void 0;try{var i;let o,{value:s}=await hG({url:this.getBatchUrl("results"),headers:uT(n,r,await hQ(this.config.o11yHeaders)),body:{batchId:t},successfulResponseHandler:async({response:t})=>{let r=uz(t);if(null==t.body)throw new o0({});return{responseHeaders:r,value:h4({stream:t.body,schema:fI})}},failedResponseHandler:h2({errorSchema:mR(),errorToMessage:t=>{var r;return null!=(r=o1(t))?r:"unknown error"}}),...a&&{abortSignal:a},fetch:this.config.fetch});return i=fA(s),o=!1,new ReadableStream({async pull(t){if(!o)try{let{value:r,done:a}=await i.next();a?t.close():t.enqueue(r)}catch(r){t.error(r)}},async cancel(t){if(o=!0,i.return)try{await i.return(t)}catch(t){}}})}catch(t){if(fC(t))throw t;throw await fp(t,await fx(null!=n?n:{}))}}getBatchUrl(t){return`${this.config.baseURL}/batch/${t}`}};function fS(t){if("data"===t.type){let r=t.data;if(r instanceof Uint8Array)return{...t,data:oF.Buffer.from(r).toString("base64")}}return t}function fC(t){return!!(t instanceof Error||t instanceof DOMException)&&("AbortError"===t.name||"TimeoutError"===t.name)}function fT(t){var r,a,n,i;let o=function({total:t,pending:r,completed:a,failed:n}){if(ho(t)&&ho(r)&&ho(a)&&ho(n)&&r+a+n===t)return{total:t,pending:r,completed:a,failed:n}}({total:null==(r=t.requestCounts)?void 0:r.total,pending:null==(a=t.requestCounts)?void 0:a.pending,completed:null==(n=t.requestCounts)?void 0:n.completed,failed:null==(i=t.requestCounts)?void 0:i.failed});return{status:t.status,...null!=t.rawStatus&&{rawStatus:t.rawStatus},...null!=o&&{requestCounts:o},...null!=t.error&&{error:{message:t.error.message,...null!=t.error.type&&{type:t.error.type},...null!=t.error.code&&{code:t.error.code},...null!=t.error.statusCode&&{statusCode:t.error.statusCode}}},...null!=t.createdAt&&{createdAt:t.createdAt},...null!=t.expiresAt&&{expiresAt:t.expiresAt},...null!=t.providerMetadata&&{providerMetadata:t.providerMetadata}}}async function*fA(t){var r;for await(let a of t){if("succeeded"===a.status){let t=null==(r=a.result)?void 0:r.response;void 0!==t&&"string"==typeof t.timestamp&&(t.timestamp=new Date(t.timestamp))}yield a}}var fI=mi({type:mx("text"),id:pT(),status:mz(["cancelled","expired","failed","succeeded"])}).catchall(p7()),fM=mi({message:pT(),type:pT().nullish(),code:pT().nullish(),statusCode:p1().nullish()}),fP=mi({total:p1().nullish(),pending:p1().nullish(),completed:p1().nullish(),failed:p1().nullish()}),fO=mh(pT(),mh(pT(),p7())),fD=mi({status:mz(["completed","failed","pending"]),rawStatus:pT().nullish(),requestCounts:fP.nullish(),error:fM.nullish(),createdAt:pT().nullish(),expiresAt:pT().nullish(),providerMetadata:fO.nullish()}),fR=fD.extend({batchId:pT(),warnings:m$(mi({requestId:pT().nullish(),warning:p7()}).catchall(p7())).nullish()}),f$=fD,fz=class t{constructor(t,r){this.modelId=t,this.config=r,this.specificationVersion="v4",this.supportedUrls={"*/*":[/.*/]}}static[uS](t){return pe({modelId:t.modelId,config:t.config})}static[uC](r){return new t(r.modelId,r.config)}get provider(){return this.config.provider}async getArgs(t){let{abortSignal:r,...a}=t;return{args:this.maybeEncodeFileParts(a),warnings:[]}}async doGenerate(t){var r;let{args:a,warnings:n}=await this.getArgs(t),{abortSignal:i}=t,o=this.config.headers?await hQ(this.config.headers):void 0;try{let{responseHeaders:s,value:l,rawValue:d}=await hG({url:this.getUrl(),headers:uT(o,t.headers,this.getModelConfigHeaders(this.modelId,!1),await hQ(this.config.o11yHeaders)),body:a,successfulResponseHandler:h5(mR()),failedResponseHandler:h2({errorSchema:mR(),errorToMessage:t=>{var r;return null!=(r=o1(t))?r:"unknown error"}}),...i&&{abortSignal:i},fetch:this.config.fetch});return{...l,request:{body:a},response:{headers:s,body:d},warnings:[...null!=(r=l.warnings)?r:[],...n]}}catch(t){throw await fp(t,await fx(null!=o?o:{}))}}async doStream(t){let{args:r,warnings:a}=await this.getArgs(t),{abortSignal:n}=t,i=this.config.headers?await hQ(this.config.headers):void 0;try{let o,{value:s,responseHeaders:l}=await hG({url:this.getUrl(),headers:uT(i,t.headers,this.getModelConfigHeaders(this.modelId,!0),await hQ(this.config.o11yHeaders)),body:r,successfulResponseHandler:(o=mR(),async({response:t,url:r,requestBodyValues:a})=>{let n=uz(t);if(null==t.body)throw new o0({});return{responseHeaders:n,value:hZ({stream:function({stream:t,url:r,requestBodyValues:a,statusCode:n,responseHeaders:i}){let o=t.getReader(),s=!1,l=()=>{s||(o.releaseLock(),s=!0)};return new ReadableStream({async pull(t){try{let{done:r,value:a}=await o.read();r?(l(),t.close()):t.enqueue(a)}catch(o){if(l(),uW(o))return void t.error(o);t.error(uF({error:new oG({message:"Failed to process successful response",cause:o,statusCode:n,url:r,responseHeaders:i,requestBodyValues:a}),url:r,requestBodyValues:a}))}},async cancel(t){try{await o.cancel(t)}finally{l()}}})}({stream:t.body,url:r,requestBodyValues:a,statusCode:t.status,responseHeaders:n}),schema:o})}}),failedResponseHandler:h2({errorSchema:mR(),errorToMessage:t=>{var r;return null!=(r=o1(t))?r:"unknown error"}}),...n&&{abortSignal:n},fetch:this.config.fetch});
91return{stream:s.pipeThrough(new TransformStream({start(t){a.length>0&&t.enqueue({type:"stream-start",warnings:a})},transform(r,a){if(r.success){let n=r.value;("raw"!==n.type||t.includeRawChunks)&&("response-metadata"===n.type&&n.timestamp&&"string"==typeof n.timestamp&&(n.timestamp=new Date(n.timestamp)),a.enqueue(n))}else a.error(r.error)}})),request:{body:r},response:{headers:l}}}catch(t){throw await fp(t,await fx(null!=i?i:{}))}}maybeEncodeFileParts(t){for(let r of t.prompt)if(Array.isArray(r.content)){for(let t of r.content)if("file"===t.type||"reasoning-file"===t.type)t.data=fL(t.data);else if("tool-result"===t.type&&"content"===t.output.type)for(let r of t.output.value)"file"===r.type&&(r.data=fL(r.data))}return t}getUrl(){return`${this.config.baseURL}/language-model`}getModelConfigHeaders(t,r){return{"ai-language-model-specification-version":"4","ai-language-model-id":t,"ai-language-model-streaming":String(r)}}};function fL(t){if("data"===t.type){let r=t.data;if(r instanceof Uint8Array)return{...t,data:oF.Buffer.from(r).toString("base64")}}return t}var fW=class t{constructor(t,r){this.modelId=t,this.config=r,this.specificationVersion="v4",this.maxEmbeddingsPerCall=2048,this.supportsParallelCalls=!0}static[uS](t){return pe({modelId:t.modelId,config:t.config})}static[uC](r){return new t(r.modelId,r.config)}get provider(){return this.config.provider}async doEmbed({values:t,headers:r,abortSignal:a,providerOptions:n}){var i,o;let s=this.config.headers?await hQ(this.config.headers):void 0;try{let{responseHeaders:l,value:d,rawValue:c}=await hG({url:this.getUrl(),headers:uT(s,null!=r?r:{},this.getModelConfigHeaders(),await hQ(this.config.o11yHeaders)),body:{values:t,...n?{providerOptions:n}:{}},successfulResponseHandler:h5(fB),failedResponseHandler:h2({errorSchema:mR(),errorToMessage:t=>{var r;return null!=(r=o1(t))?r:"unknown error"}}),...a&&{abortSignal:a},fetch:this.config.fetch});return{embeddings:d.embeddings,usage:null!=(i=d.usage)?i:void 0,providerMetadata:d.providerMetadata,response:{headers:l,body:c},warnings:null!=(o=d.warnings)?o:[]}}catch(t){throw await fp(t,await fx(null!=s?s:{}))}}getUrl(){return`${this.config.baseURL}/embedding-model`}getModelConfigHeaders(){return{"ai-embedding-model-specification-version":"4","ai-model-id":this.modelId}}},fU=md("type",[mi({type:mx("unsupported"),feature:pT(),details:pT().optional()}),mi({type:mx("compatibility"),feature:pT(),details:pT().optional()}),mi({type:mx("deprecated"),setting:pT(),message:pT()}),mi({type:mx("other"),message:pT()})]),fB=hW(()=>hF(mi({embeddings:m$(m$(p1())),usage:mi({tokens:p1()}).nullish(),warnings:m$(fU).optional(),providerMetadata:mh(pT(),mh(pT(),p7())).optional()}))),fF=class t{constructor(t,r){this.modelId=t,this.config=r,this.specificationVersion="v4",this.maxImagesPerCall=Number.MAX_SAFE_INTEGER}static[uS](t){return pe({modelId:t.modelId,config:t.config})}static[uC](r){return new t(r.modelId,r.config)}get provider(){return this.config.provider}async doGenerate({prompt:t,n:r,size:a,aspectRatio:n,seed:i,files:o,mask:s,providerOptions:l,headers:d,abortSignal:c}){var u,h,p,m;let f=this.config.headers?await hQ(this.config.headers):void 0;try{let{responseHeaders:x,value:g}=await hG({url:this.getUrl(),headers:uT(f,null!=d?d:{},this.getModelConfigHeaders(),await hQ(this.config.o11yHeaders)),body:{prompt:t,n:r,...a&&{size:a},...n&&{aspectRatio:n},...i&&{seed:i},...l&&{providerOptions:l},...o&&{files:o.map(t=>fY(t))},...s&&{mask:fY(s)}},successfulResponseHandler:h5(fZ),failedResponseHandler:h2({errorSchema:mR(),errorToMessage:t=>{var r;return null!=(r=o1(t))?r:"unknown error"}}),...c&&{abortSignal:c},fetch:this.config.fetch});return{images:g.images,...null!=g.isRetryable&&{isRetryable:g.isRetryable},warnings:null!=(u=g.warnings)?u:[],providerMetadata:g.providerMetadata,response:{timestamp:new Date,modelId:this.modelId,headers:x},...null!=g.usage&&{usage:{inputTokens:null!=(h=g.usage.inputTokens)?h:void 0,outputTokens:null!=(p=g.usage.outputTokens)?p:void 0,totalTokens:null!=(m=g.usage.totalTokens)?m:void 0}}}}catch(t){throw await fp(t,await fx(null!=f?f:{}))}}getUrl(){return`${this.config.baseURL}/image-model`}getModelConfigHeaders(){return{"ai-image-model-specification-version":"4","ai-model-id":this.modelId}}};function fY(t){return"file"===t.type&&t.data instanceof Uint8Array?{...t,data:u$(t.data)}:t}var fV=mi({images:m$(p7()).optional()}).catchall(p7()),fq=md("type",[mi({type:mx("unsupported"),feature:pT(),details:pT().optional()}),mi({type:mx("compatibility"),feature:pT(),details:pT().optional()}),mi({type:mx("deprecated"),setting:pT(),message:pT()}),mi({type:mx("other"),message:pT()})]),fH=mi({inputTokens:p1().nullish(),outputTokens:p1().nullish(),totalTokens:p1().nullish()}),fZ=mi({images:m$(pT()),isRetryable:p3().optional(),warnings:m$(fq).optional(),providerMetadata:mh(pT(),fV).optional(),usage:fH.optional()}),fK=class{constructor(t,r){this.modelId=t,this.config=r,this.specificationVersion="v4",this.maxVideosPerCall=Number.MAX_SAFE_INTEGER}get provider(){return this.config.provider}async doGenerate(t){var r,a;let{headers:n,abortSignal:i}=t,o=this.config.headers?await hQ(this.config.headers):void 0;try{let{responseHeaders:s,value:l}=await hG({url:this.getUrl(),headers:uT(o,null!=n?n:{},this.getModelConfigHeaders(),await hQ(this.config.o11yHeaders),{accept:"text/event-stream"}),body:this.buildRequestBody(t),successfulResponseHandler:async({response:t,url:r,requestBodyValues:a})=>{if(null==t.body)throw new oG({message:"SSE response body is empty",url:r,requestBodyValues:a,statusCode:t.status});let n=hZ({stream:t.body,schema:f0}).getReader(),{done:i,value:o}=await n.read();if(n.releaseLock(),i||!o)throw new oG({message:"SSE stream ended without a data event",url:r,requestBodyValues:a,statusCode:t.status});if(!o.success)throw new oG({message:"Failed to parse video SSE event",cause:o.error,url:r,requestBodyValues:a,statusCode:t.status});let s=o.value;if("error"===s.type)throw new oG({message:s.message,statusCode:s.statusCode,url:r,requestBodyValues:a,responseHeaders:Object.fromEntries([...t.headers]),responseBody:JSON.stringify(s),data:{error:{message:s.message,type:s.errorType,param:s.param}}});return{value:{videos:s.videos,warnings:s.warnings,providerMetadata:s.providerMetadata},responseHeaders:Object.fromEntries([...t.headers])}},failedResponseHandler:h2({errorSchema:mR(),errorToMessage:t=>{var r;return null!=(r=o1(t))?r:"unknown error"}}),...i&&{abortSignal:i},fetch:this.config.fetch});return{videos:l.videos,warnings:null!=(r=l.warnings)?r:[],providerMetadata:null!=(a=l.providerMetadata)?a:void 0,response:{timestamp:new Date,modelId:this.modelId,headers:s}}}catch(t){throw await fp(t,await fx(null!=o?o:{}))}}async handleWebhookOption({webhook:t}){let{url:r,received:a}=await t();return{webhookUrl:r,received:a}}async doStart(t){var r,a;let{headers:n,abortSignal:i,webhookUrl:o}=t,s=this.config.headers?await hQ(this.config.headers):void 0;try{let{responseHeaders:l,value:d}=await hG({url:this.getStartUrl(),headers:uT(s,null!=n?n:{},this.getModelConfigHeaders(),await hQ(this.config.o11yHeaders)),body:{...this.buildRequestBody(t),...o&&{callbackUrl:o}},successfulResponseHandler:h5(f1),failedResponseHandler:h2({errorSchema:mR(),errorToMessage:t=>{var r;return null!=(r=o1(t))?r:"unknown error"}}),...i&&{abortSignal:i},fetch:this.config.fetch});return{operation:d.operation,warnings:null!=(r=d.warnings)?r:[],providerMetadata:null!=(a=d.providerMetadata)?a:void 0,response:{timestamp:new Date,modelId:this.modelId,headers:l}}}catch(t){throw await fp(t,await fx(null!=s?s:{}))}}async doStatus({operation:t,abortSignal:r,headers:a}){var n,i,o,s,l,d;let c=this.config.headers?await hQ(this.config.headers):void 0;try{let{responseHeaders:u,value:h}=await hG({url:this.getStatusUrl(),headers:uT(c,null!=a?a:{},this.getModelConfigHeaders(),await hQ(this.config.o11yHeaders)),body:{operation:t},successfulResponseHandler:h5(f2),failedResponseHandler:h2({errorSchema:mR(),errorToMessage:t=>{var r;return null!=(r=o1(t))?r:"unknown error"}}
91),...r&&{abortSignal:r},fetch:this.config.fetch}),p={timestamp:new Date,modelId:this.modelId,headers:u};if("completed"===h.status)return{status:"completed",videos:h.videos,warnings:null!=(n=h.warnings)?n:[],providerMetadata:null!=(i=h.providerMetadata)?i:void 0,response:p};if("error"===h.status)return{status:"error",error:h.error,providerMetadata:null!=(o=h.providerMetadata)?o:void 0,response:p};if("cancelled"===h.status)return{status:"error",error:"Video generation was cancelled.",providerMetadata:null!=(s=h.providerMetadata)?s:void 0,response:p};return{status:"pending",warnings:null!=(l=h.warnings)?l:[],providerMetadata:null!=(d=h.providerMetadata)?d:void 0,response:p}}catch(t){throw await fp(t,await fx(null!=c?c:{}))}}buildRequestBody({prompt:t,n:r,aspectRatio:a,resolution:n,duration:i,fps:o,seed:s,generateAudio:l,image:d,frameImages:c,inputReferences:u,providerOptions:h}){return{prompt:t,n:r,...a&&{aspectRatio:a},...n&&{resolution:n},...i&&{duration:i},...o&&{fps:o},...s&&{seed:s},...void 0!==l&&{generateAudio:l},...h&&{providerOptions:h},...d&&{image:fG(d)},...c&&{frameImages:c.map(t=>({...t,image:fG(t.image)}))},...u&&{inputReferences:u.map(t=>fG(t))}}}getUrl(){return`${this.config.baseURL}/video-model`}getStartUrl(){return`${this.config.baseURL}/video-model/start`}getStatusUrl(){return`${this.config.baseURL}/video-model/status`}getModelConfigHeaders(){return{"ai-video-model-specification-version":"4","ai-model-id":this.modelId}}};function fG(t){return"file"===t.type&&t.data instanceof Uint8Array?{...t,data:u$(t.data)}:t}var fJ=mi({videos:m$(p7()).optional()}).catchall(p7()),fX=mL([mi({type:mx("url"),url:pT(),mediaType:pT()}),mi({type:mx("base64"),data:pT(),mediaType:pT()})]),fQ=md("type",[mi({type:mx("unsupported"),feature:pT(),details:pT().optional()}),mi({type:mx("compatibility"),feature:pT(),details:pT().optional()}),mi({type:mx("deprecated"),setting:pT(),message:pT()}),mi({type:mx("other"),message:pT()})]),f0=md("type",[mi({type:mx("result"),videos:m$(fX),warnings:m$(fQ).optional(),providerMetadata:mh(pT(),fJ).optional()}),mi({type:mx("error"),message:pT(),errorType:pT(),statusCode:p1(),param:p7().nullable()})]),f1=mi({operation:p7(),warnings:m$(fQ).nullish(),providerMetadata:mh(pT(),fJ).nullish()}),f2=md("status",[mi({status:mx("pending"),warnings:m$(fQ).nullish(),providerMetadata:mh(pT(),fJ).nullish()}),mi({status:mx("completed"),videos:m$(fX),warnings:m$(fQ).nullish(),providerMetadata:mh(pT(),fJ).nullish()}),mi({status:mx("error"),error:pT(),providerMetadata:mh(pT(),fJ).nullish()}),mi({status:mx("cancelled"),providerMetadata:mh(pT(),fJ).nullish()})]),f5=class{constructor(t,r){this.modelId=t,this.config=r,this.specificationVersion="v4"}get provider(){return this.config.provider}async doRerank({documents:t,query:r,topN:a,headers:n,abortSignal:i,providerOptions:o}){var s;let l=this.config.headers?await hQ(this.config.headers):void 0;try{let{responseHeaders:d,value:c,rawValue:u}=await hG({url:this.getUrl(),headers:uT(l,null!=n?n:{},this.getModelConfigHeaders(),await hQ(this.config.o11yHeaders)),body:{documents:t,query:r,...null!=a?{topN:a}:{},...o?{providerOptions:o}:{}},successfulResponseHandler:h5(f3),failedResponseHandler:h2({errorSchema:mR(),errorToMessage:t=>{var r;return null!=(r=o1(t))?r:"unknown error"}}),...i&&{abortSignal:i},fetch:this.config.fetch});return{ranking:c.ranking,providerMetadata:c.providerMetadata,response:{headers:d,body:u},warnings:null!=(s=c.warnings)?s:[]}}catch(t){throw await fp(t,await fx(null!=l?l:{}))}}getUrl(){return`${this.config.baseURL}/reranking-model`}getModelConfigHeaders(){return{"ai-reranking-model-specification-version":"4","ai-model-id":this.modelId}}},f4=md("type",[mi({type:mx("unsupported"),feature:pT(),details:pT().optional()}),mi({type:mx("compatibility"),feature:pT(),details:pT().optional()}),mi({type:mx("deprecated"),setting:pT(),message:pT()}),mi({type:mx("other"),message:pT()})]),f3=hW(()=>hF(mi({ranking:m$(mi({index:p1(),relevanceScore:p1()})),warnings:m$(f4).optional(),providerMetadata:mh(pT(),mh(pT(),p7())).optional()}))),f6=class{constructor(t,r){this.modelId=t,this.config=r,this.specificationVersion="v4"}get provider(){return this.config.provider}async doGenerate({text:t,voice:r,outputFormat:a,instructions:n,speed:i,language:o,providerOptions:s,headers:l,abortSignal:d}){var c;let u=this.config.headers?await hQ(this.config.headers):void 0;try{let{responseHeaders:h,value:p,rawValue:m}=await hG({url:this.getUrl(),headers:uT(u,null!=l?l:{},this.getModelConfigHeaders(),await hQ(this.config.o11yHeaders)),body:{text:t,...r&&{voice:r},...a&&{outputFormat:a},...n&&{instructions:n},...null!=i&&{speed:i},...o&&{language:o},...s&&{providerOptions:s}},successfulResponseHandler:h5(f7),failedResponseHandler:h2({errorSchema:mR(),errorToMessage:t=>{var r;return null!=(r=o1(t))?r:"unknown error"}}),...d&&{abortSignal:d},fetch:this.config.fetch});return{audio:p.audio,warnings:null!=(c=p.warnings)?c:[],providerMetadata:p.providerMetadata,response:{timestamp:new Date,modelId:this.modelId,headers:h,body:m}}}catch(t){throw await fp(t,await fx(null!=u?u:{}))}}getUrl(){return`${this.config.baseURL}/speech-model`}getModelConfigHeaders(){return{"ai-speech-model-specification-version":"4","ai-model-id":this.modelId}}},f8=mi({}).catchall(p7()),f9=md("type",[mi({type:mx("unsupported"),feature:pT(),details:pT().optional()}),mi({type:mx("compatibility"),feature:pT(),details:pT().optional()}),mi({type:mx("deprecated"),setting:pT(),message:pT()}),mi({type:mx("other"),message:pT()})]),f7=mi({audio:pT(),warnings:m$(f9).optional(),providerMetadata:mh(pT(),f8).optional()}),xe=class{constructor(t,r){this.modelId=t,this.config=r,this.specificationVersion="v4"}get provider(){return this.config.provider}async doGenerate({audio:t,mediaType:r,providerOptions:a,headers:n,abortSignal:i}){var o,s,l,d;let c=this.config.headers?await hQ(this.config.headers):void 0;try{let{responseHeaders:u,value:h,rawValue:p}=await hG({url:this.getUrl(),headers:uT(c,null!=n?n:{},this.getModelConfigHeaders(),await hQ(this.config.o11yHeaders)),body:{audio:t instanceof Uint8Array?u$(t):t,mediaType:r,...a&&{providerOptions:a}},successfulResponseHandler:h5(xn),failedResponseHandler:h2({errorSchema:mR(),errorToMessage:t=>{var r;return null!=(r=o1(t))?r:"unknown error"}}),...i&&{abortSignal:i},fetch:this.config.fetch});return{text:h.text,segments:null!=(o=h.segments)?o:[],language:null!=(s=h.language)?s:void 0,durationInSeconds:null!=(l=h.durationInSeconds)?l:void 0,warnings:null!=(d=h.warnings)?d:[],providerMetadata:h.providerMetadata,response:{timestamp:new Date,modelId:this.modelId,headers:u,body:p}}}catch(t){throw await fp(t,await fx(null!=c?c:{}))}}async doStream(t){var r,a,n,i,o;let s,l,d,c=null!=(n=null==(a=null==(r=this.config._internal)?void 0:r.currentDate)?void 0:a.call(r))?n:new Date,u=uT(await hQ(null!=(i=this.config.headers)?i:{}),null!=(o=t.headers)?o:{},this.getModelConfigHeaders(),await hQ(this.config.o11yHeaders)),h=await fx(u),p={type:"transcription-stream.start",inputAudioFormat:t.inputAudioFormat,...null!=t.providerOptions&&{providerOptions:t.providerOptions},...null!=t.includeRawChunks&&{includeRawChunks:t.includeRawChunks}};
91return{stream:function({webSocket:t,url:r,protocols:a,headers:n,startFrame:i,audio:o,abortSignal:s,authMethod:l}){let d=!1,c=()=>{};return new ReadableStream({start:u=>{let h,p,m,f=!1,x=!1;c=t=>{null!=h?h.cancel().catch(()=>{}):o.cancel().catch(()=>{}),null==m||m.close(t)};let g=t=>{d||(d=!0,c(),xi(u,t,l))},y=async t=>{let r=o.getReader();h=r;try{for(;;){let{done:a,value:n}=await r.read();if(a||d)break;let i="string"==typeof n?function(t){let r=uR(t.replace(/-/g,"+").replace(/_/g,"/"));return Uint8Array.from(r,t=>t.codePointAt(0))}(n):n;for(let r=0;r<i.length&&!d;r+=65536)t.send(i.subarray(r,r+65536)),await uO(t)}}finally{r.releaseLock(),h===r&&(h=void 0)}d||x||t.send(JSON.stringify({type:"transcription-stream.audio-done"}))};m=function({url:t,protocols:r,headers:a,webSocket:n,abortSignal:i,onOpen:o,onMessageText:s,onProcessingError:l,onSocketError:d,onClose:c,onAbort:u}){var h,p;let m,f,x=t=>{null!=f&&(null==i||i.removeEventListener("abort",f),f=void 0);try{null==m||m.close(t)}catch(t){}};if(null==i?void 0:i.aborted)return null==u||u(null!=(h=i.reason)?h:Error("Aborted")),{socket:void 0,close:x};try{m=new(function(t){let r=null!=t?t:globalThis.WebSocket;if(null==r)throw Error("No WebSocket implementation available.");return r}(n))(t,r,{headers:(p=null!=a?a:{},Object.fromEntries(Object.entries(p).filter(([t,r])=>null!=r)))})}catch(t){return l(t),{socket:void 0,close:x}}null!=i&&null!=u&&(f=()=>{var t;return u(null!=(t=i.reason)?t:Error("Aborted"))},i.addEventListener("abort",f,{once:!0}));let g=m;m.onopen=()=>{try{null==o||o(g)}catch(t){l(t)}};let y=Promise.resolve();return m.onmessage=t=>{y=y.then(()=>uP(t.data)).then(t=>s(t)).catch(l)},m.onerror=()=>{y=y.then(()=>null==d?void 0:d()).catch(l)},m.onclose=t=>{let r="number"==typeof(null==t?void 0:t.code)?t.code:void 0,a="string"==typeof(null==t?void 0:t.reason)?t.reason:void 0;y=y.then(()=>null==c?void 0:c({code:r,reason:a})).catch(l)},{socket:m,close:x}}({url:r,protocols:a,headers:n,webSocket:t,abortSignal:s,onAbort:t=>{d||(d=!0,c(),u.error(t))},onProcessingError:g,onOpen:t=>
91{t.send(JSON.stringify(i)),y(t).catch(g)},onMessageText:t=>{if(d)return;let r=function(t){let r;try{r=hc(t)}catch(t){return}if(null==r||"object"!=typeof r||Array.isArray(r))return;let a=r;switch(a.type){case"stream-start":return Array.isArray(a.warnings)&&a.warnings.every(pn)?a:void 0;case"transcript-delta":return pt(a.delta)&&pa(a.id,pt)&&pa(a.providerMetadata,hn)?a:void 0;case"transcript-partial":return pt(a.text)&&pa(a.id,pt)&&pa(a.startSecond,pr)&&pa(a.durationInSeconds,pr)&&pa(a.channelIndex,pr)&&pa(a.providerMetadata,hn)?a:void 0;case"transcript-final":return pt(a.text)&&pa(a.id,pt)&&pa(a.startSecond,pr)&&pa(a.endSecond,pr)&&pa(a.channelIndex,pr)&&pa(a.providerMetadata,hn)?a:void 0;case"finish":return pt(a.text)&&Array.isArray(a.segments)&&a.segments.every(pi)&&pa(a.language,pt)&&pa(a.durationInSeconds,pr)&&pa(a.providerMetadata,hn)?a:void 0;case"response-metadata":{if(!(pa(a.modelId,pt)&&pa(a.headers,hn)))return;let t=a.timestamp;if(null==t)return{...a,timestamp:void 0};if("string"!=typeof t)return;let r=new Date(t);return Number.isNaN(r.getTime())?void 0:{...a,timestamp:r}}case"raw":return"rawValue"in a?a:void 0;case"error":return"error"in a?a:void 0;default:return}}(t);if(null!=r){if("finish"===r.type){d=!0,u.enqueue(r),u.close(),c(1e3);return}"error"===r.type&&(f=!0,p=r.error,x=!0,null!=h?(h.cancel().catch(()=>{}),h=void 0):o.cancel().catch(()=>{})),u.enqueue(r)}},onSocketError:()=>{g(Error("Connection error on AI Gateway transcription stream"))},onClose:()=>{if(f){if(d)return;xs(p,l).then(g);return}g(Error("AI Gateway transcription stream closed before a finish part was received"))}})},cancel:()=>{d||(d=!0,c())}})}({webSocket:this.config.webSocket,url:xt(this.config.baseURL,this.modelId),protocols:null==(d=(null==(l=(s=uV(u)).authorization)?void 0:l.startsWith("Bearer "))?l.slice(7):void 0)?[mO]:mD(mO,d,{teamIdOrSlug:s[ff]}),headers:u,startFrame:p,audio:t.audio,abortSignal:t.abortSignal,authMethod:h}),request:{body:p},response:{timestamp:c,modelId:this.modelId}}}getUrl(){return`${this.config.baseURL}/transcription-model`}getModelConfigHeaders(){return{"ai-transcription-model-specification-version":"4","ai-model-id":this.modelId}}};function xt(t,r){let a=new URL(`${t.replace(/^http/,"ws")}/transcription-model`);return a.searchParams.set("ai-model-id",r),a.toString()}var xr=mi({}).catchall(p7()),xa=md("type",[mi({type:mx("unsupported"),feature:pT(),details:pT().optional()}),mi({type:mx("compatibility"),feature:pT(),details:pT().optional()}),mi({type:mx("deprecated"),setting:pT(),message:pT()}),mi({type:mx("other"),message:pT()})]),xn=mi({text:pT(),segments:m$(mi({text:pT(),startSecond:p1(),endSecond:p1()})).optional(),language:pT().nullish(),durationInSeconds:p1().nullish(),warnings:m$(xa).optional(),providerMetadata:mh(pT(),xr).optional()});async function xi(t,r,a){t.error(await fp(r,a))}var xo={authentication_error:401,failed_dependency:424,forbidden:403,internal_server_error:500,invalid_request_error:400,model_not_found:404,rate_limit_exceeded:429};async function xs(t,r){return"object"==typeof t&&null!=t&&"message"in t&&"string"==typeof t.message&&"type"in t&&"string"==typeof t.type&&t.type in xo?fs({response:{error:{message:t.message,type:t.type}},statusCode:xo[t.type],authMethod:r}):Error(`AI Gateway transcription stream failed: ${null!=t&&"object"==typeof t&&"message"in t&&"string"==typeof t.message?t.message:o1(t)}`)}var xl=class{constructor(t,r){this.specificationVersion="v4",this.modelId=t,this.provider=r.provider,this.config=r}async doCreateClientSecret(t){var r,a;let n,i=await this.config.createClientSecret({modelId:this.modelId,...(null==t?void 0:t.expiresAfterSeconds)!=null&&{expiresAfterSeconds:t.expiresAfterSeconds}});return{token:i.token,url:(r=this.config.baseURL,a=this.modelId,(n=new URL(`${r.replace(/^http/,"ws")}/realtime-model`)).searchParams.set("ai-model-id",a),n.toString()),...null!=i.expiresAt&&{expiresAt:i.expiresAt}}}getWebSocketConfig(t){return{url:t.url,protocols:mD("ai-gateway-realtime.v1",t.token,{teamIdOrSlug:this.config.teamIdOrSlug})}}parseServerEvent(t){return t}serializeClientEvent(t){return t}buildSessionConfig(t){return t}},xd=hX({id:"gateway.exa_search",inputSchema:hW(()=>hF(mi({query:pT().describe("Natural-language web search query. This is required."),type:mz(["auto","fast","instant"]).optional().describe("Search method. Use auto for the default balance of speed and quality."),num_results:p1().optional().describe("Maximum number of results to return (1-100, default: 10)."),category:mz(["company","people","research paper","news","personal site","financial report"]).optional().describe("Optional content category to focus results."),user_location:pT().optional().describe("Two-letter ISO country code such as 'US'."),include_domains:m$(pT()).optional().describe("Only return results from these domains."),exclude_domains:m$(pT()).optional().describe("Exclude results from these domains."),start_published_date:pT().optional().describe("Only return links published after this ISO 8601 date."),end_published_date:pT().optional().describe("Only return links published before this ISO 8601 date."),contents:mi({text:mL([p3(),mi({max_characters:p1().optional(),include_html_tags:p3().optional(),verbosity:mz(["compact","standard","full"]).optional(),include_sections:m$(mz(["header","navigation","banner","body","sidebar","footer","metadata"])).optional(),exclude_sections:m$(mz(["header","navigation","banner","body","sidebar","footer","metadata"])).optional()})]).optional(),highlights:mL([p3(),mi({query:pT().optional(),max_characters:p1().optional()})]).optional(),max_age_hours:p1().optional(),livecrawl_timeout:p1().optional(),subpages:p1().optional(),subpage_target:mL([pT(),m$(pT())]).optional(),extras:mi({links:p1().optional(),image_links:p1().optional()}).optional()}).optional().describe("Controls extracted page content and freshness.")}
vendor: 5,092 bytes, line 91
91))),outputSchema:hW(()=>hF(mL([mi({requestId:pT(),searchType:pT().optional(),resolvedSearchType:pT().optional(),results:m$(mi({title:pT(),url:pT(),id:pT(),publishedDate:pT().nullable().optional(),author:pT().nullable().optional(),image:pT().nullable().optional(),favicon:pT().nullable().optional(),text:pT().optional(),highlights:m$(pT()).optional(),highlightScores:m$(p1()).optional(),summary:pT().optional(),subpages:m$(mR()).optional(),extras:mi({links:m$(pT()).optional(),imageLinks:m$(pT()).optional()}).optional()})),costDollars:mi({total:p1().optional(),search:mh(pT(),p1()).optional()}).optional()}),mi({error:mz(["api_error","rate_limit","timeout","invalid_input","configuration_error","execution_error","unknown"]),statusCode:p1().optional(),message:pT()})])))}),xc=hX({id:"gateway.parallel_search",inputSchema:hW(()=>hF(mi({objective:pT().describe("Natural-language description of the web research goal, including source or freshness guidance and broader context from the task. Maximum 5000 characters."),search_queries:m$(pT()).optional().describe("Optional search queries to supplement the objective. Maximum 200 characters per query."),mode:mz(["one-shot","agentic"]).optional().describe('Mode preset: "one-shot" for comprehensive results with longer excerpts (default), "agentic" for concise, token-efficient results for multi-step workflows.'),max_results:p1().optional().describe("Maximum number of results to return (1-20). Defaults to 10 if not specified."),source_policy:mi({include_domains:m$(pT()).optional().describe("Limit results to these domains. Use plain domain names only â e.g. example.com or sub.example.gov, or a bare extension like .edu. Do not include a scheme, path, or port (e.g. not https://example.com/page)."),exclude_domains:m$(pT()).optional().describe("Exclude results from these domains. Use plain domain names only â e.g. example.com or sub.example.gov, or a bare extension like .edu. Do not include a scheme, path, or port (e.g. not https://example.com/page)."),after_date:pT().optional().describe("Only include results published after this date. Use an ISO 8601 calendar date formatted YYYY-MM-DD (e.g. 2025-01-01); do not include a time.")}).optional().describe("Source policy for controlling which domains to include/exclude and freshness."),excerpts:mi({max_chars_per_result:p1().optional().describe("Maximum characters per result."),max_chars_total:p1().optional().describe("Maximum total characters across all results.")}).optional().describe("Excerpt configuration for controlling result length."),fetch_policy:mi({max_age_seconds:p1().optional().describe("Maximum age in seconds for cached content. Set to 0 to always fetch fresh content.")}).optional().describe("Fetch policy for controlling content freshness.")}))),outputSchema:hW(()=>hF(mL([mi({searchId:pT(),results:m$(mi({url:pT(),title:pT(),excerpt:pT(),publishDate:pT().nullable().optional(),relevanceScore:p1().optional()}))}),mi({error:mz(["api_error","rate_limit","timeout","invalid_input","configuration_error","unknown"]),statusCode:p1().optional(),message:pT()})])))}),xu=hX({id:"gateway.perplexity_search",inputSchema:hW(()=>hF(mi({query:mL([pT(),m$(pT())]).describe("Search query (string) or multiple queries (array of up to 5 strings). Multi-query searches return combined results from all queries."),max_results:p1().optional().describe("Maximum number of search results to return (1-20, default: 10)"),max_tokens_per_page:p1().optional().describe("Maximum number of tokens to extract per search result page (256-2048, default: 2048)"),max_tokens:p1().optional().describe("Maximum total tokens across all search results (default: 25000, max: 1000000)"),country:pT().optional().describe("Two-letter ISO 3166-1 alpha-2 country code for regional search results (e.g., 'US', 'GB', 'FR')"),search_domain_filter:m$(pT()).optional().describe("List of domains to include or exclude from search results (max 20). To include: ['nature.com', 'science.org']. To exclude: ['-example.com', '-spam.net']"),search_language_filter:m$(pT()).optional().describe("List of ISO 639-1 language codes to filter results (max 10, lowercase). Examples: ['en', 'fr', 'de']"),search_after_date:pT().optional().describe("Include only results published after this date. Format: 'MM/DD/YYYY' (e.g., '3/1/2025'). Cannot be used with search_recency_filter."),search_before_date:pT().optional().describe("Include only results published before this date. Format: 'MM/DD/YYYY' (e.g., '3/15/2025'). Cannot be used with search_recency_filter."),last_updated_after_filter:pT().optional().describe("Include only results last updated after this date. Format: 'MM/DD/YYYY' (e.g., '3/1/2025'). Cannot be used with search_recency_filter."),last_updated_before_filter:pT().optional().describe("Include only results last updated before this date. Format: 'MM/DD/YYYY' (e.g., '3/15/2025'). Cannot be used with search_recency_filter."),search_recency_filter:mz(["day","week","month","year"]).optional().describe("Filter results by relative time period. Cannot be used with search_after_date or search_before_date.")}
91))),outputSchema:hW(()=>hF(mL([mi({results:m$(mi({title:pT(),url:pT(),snippet:pT(),date:pT().optional(),lastUpdated:pT().optional()})),id:pT()}),mi({error:mz(["api_error","rate_limit","timeout","invalid_input","unknown"]),statusCode:p1().optional(),message:pT()})])))}),xh=mi({count:p1().optional().describe("Maximum number of data results to return (1-20). When include_contents is true, each additional result adds its own data surcharge."),include_contents:p3().optional().describe("Inline rows for each data result. This adds a data surcharge based on row count and dataset source. To estimate cost, search with include_contents disabled and inspect cards.content.export_pricing. This applies to every returned card; limit sources.data.count and sources.data.max_rows to control cost."),mode:mz(["inline","url"]).optional().describe("Requested data delivery mode. Search card data is always inline."),content_format:mz(["card_json","csv","json_compact","json_records"]).optional().describe("Serialization for inlined card data."),max_rows:p1().optional().describe("Maximum rows to inline per result. Omit to use the allowance in cards.content.export_pricing. A data surcharge applies per 1,000 exported rows; lower values reduce cost."),node_ids:m$(pT()).optional().describe("Data Graph node IDs to prioritize. Maximum 20."),strict:p3().optional().describe("Only return cards matching node_ids. Requires a non-empty node_ids.")}),xp=mi({count:p1().optional().describe("Maximum number of web results to return (1-20)."),include_contents:p3().optional().describe("Inline extracted web page text. This can add a data charge."),category:mz(["finance","news","sports"]).optional().describe("Optional web-result category filter."),include_domains:m$(pT()).optional().describe("Only return results from these bare domains."),exclude_domains:m$(pT()).optional().describe("Exclude results from these bare domains."),snippet_max_chars:p1().optional().describe("Maximum characters in each web-result snippet."),highlights:p3().optional().describe("Include highlighted passages in web results. Defaults to true in AI Gateway."),article_content_max_chars:p1().optional().describe("Maximum extracted characters per web page when including contents."),published_after:pT().optional().describe("Keep results published on or after this ISO date (YYYY-MM-DD)."),published_before:pT().optional().describe("Keep results published on or before this ISO date (YYYY-MM-DD).")}),xm=hW(()=>hF(mi({query:pT().describe('Natural-language search query. Include the entity, metric, and time period. Quote a phrase to force it to one entity, for example "Tesla":PRODUCT price.'),effort:mz(["deep","fast","instant"]).optional().describe("Search effort. fast is the balanced default, instant favors cached results and low latency, and deep broadens retrieval with reranking at higher cost and latency."),sources:mi({data:xh.optional(),web:xp.optional()}).optional().describe("Sources to search. Omit to search both curated data and the web. When provided, only keys present are searched."),location:mi({latitude:p1().describe("Latitude between -90 and 90."),longitude:p1().describe("Longitude between -180 and 180.")}).optional().describe("End-user coordinates for localized results."),country_code:pT().optional().describe("Two-letter ISO 3166-1 country code, such as 'US'."),locale:pT().optional().describe("BCP-47 locale, such as 'en-US'."),timezone:pT().optional().describe("IANA timezone, such as 'America/New_York'."),output_settings:mi({image_dark_mode:p3().optional().describe("Render card preview images in dark mode."),force_refresh:p3().optional().describe("Instant-effort only. Request a refreshed instant result.")}).optional().describe("Controls card rendering in the search response."),include_related:p1().optional().describe("Maximum related search suggestions to include (1-20).")}))),xf=mL([p3(),p1(),pT()]).nullable(),xx=mi({content_format:mz(["card_json","csv","json_compact","json_records"]).nullish(),cost:p1().optional(),data:pT().nullish(),records:m$(mh(pT(),xf)).nullish(),dataset:mi({columns:m$(mi({name:pT(),type:mz(["boolean","date","datetime","number","string"]),unit:pT().nullish()}
91)),rows:m$(m$(xf)),total_rows:p1(),truncated:p3(),ref:pT(),sources:m$(mi({name:pT(),index:mz(["data","web"]).optional()})),provenance:mz(["query","web_extraction"]).optional()}).nullish(),card_data:mi({}).passthrough().nullish(),card_data_schema:mi({}).passthrough().nullish(),url:pT().nullish(),expires_at:pT().nullish(),total_rows:p1().nullish(),truncated:p3().optional(),export_pricing:mi({baseline_usd:p1(),free_rows:p1(),max_rows_ceiling:p1(),row_cpm_usd:p1()}).nullish(),manifest:m$(mi({dtype:mz(["boolean","date","datetime","number","string"]).nullish(),entity:pT().nullish(),metric:pT().nullish(),name:pT().nullish(),unit:pT().nullish()})).nullish()}).passthrough(),xg=mi({card_id:pT().nullish(),title:pT().nullish(),description:pT().nullish(),semantic_description:pT().nullish(),webpage_url:pT().nullish(),image_url:pT().nullish(),embed_url:pT().nullish(),sources:m$(mi({source_name:pT().nullish(),source_description:pT().nullish(),source_index:mz(["data","web"]),source_text:pT().nullish(),url:pT().nullish()})).nullish(),methodologies:m$(mi({methodology_name:pT().nullable(),methodology_description:pT().nullable()})).nullish(),source_indexes:m$(mz(["data","web"])).nullish(),card_type:pT().nullish(),relevance:mz(["High","Low","Medium"]).nullish(),content:xx.nullish(),exportable:p3().optional(),nodes:m$(mi({id:pT(),type:mz(["entity","metric"]),name:pT(),description:pT().nullish()})).nullish(),metric_definitions:m$(mi({name:pT(),definition:pT()})).nullish(),data_freshness:mi({coverage_end:pT().nullish(),data_as_of:pT().nullish(),last_updated:pT().nullish()}).nullish()}).passthrough(),xy=mi({title:pT(),url:pT(),snippet:pT().nullish(),source_name:pT().nullish(),publish_date:pT().nullish(),content:xx.nullish()}).passthrough(),xb=hX({id:"gateway.tako_search",inputSchema:xm,outputSchema:hW(()=>hF(mL([mi({request_id:pT(),cards:m$(xg).optional(),web_results:m$(xy).optional(),usage:mi({total_cost_usd:p1(),compute:mi({cost_usd:p1()}).nullish(),data:mi({cost_usd:p1(),datasets:p1()}).nullish()}).nullish(),related:m$(mi({}).passthrough()).nullish()}).passthrough(),mi({error:mz(["api_error","configuration_error","execution_error","invalid_input","rate_limit","timeout","unknown_tool"]),statusCode:p1().optional(),message:pT()})])))}),xv={exaSearch:(t={})=>xd(t),parallelSearch:(t={})=>xc(t),perplexitySearch:(t={})=>xu(t),takoSearch:(t={})=>xb(t)};async function xw(){var t;return null==(t=(0,mP.getContext)().headers)?void 0:t["x-vercel-id"]}var xk=mi({token:pT(),expiresAt:p1().nullish()});async function xj(t){let r=hi({settingValue:t.apiKey,environmentVariableName:"AI_GATEWAY_API_KEY"});return r?{token:r,authMethod:"api-key"}:{token:await (0,mP.getVercelOidcToken)(),authMethod:"oidc"}}!function(t={}){var r,a,n;let i=null,o=null,s=null!=(r=t.metadataCacheRefreshMillis)?r:3e5,l=0,d=null!=(a=null==(n=t.baseURL)?void 0:n.replace(/\/$/,""))?a:"https://ai-gateway.vercel.sh/v4/ai",c=r=>uq({Authorization:`Bearer ${r.token}`,"ai-gateway-protocol-version":"0.0.1",[fm]:r.authMethod,...null!=t.teamIdOrSlug?{[ff]:t.teamIdOrSlug}:{},...t.headers},"ai-sdk/gateway/4.0.81"),u=async()=>{try{return c(await xj(t))}catch(t){throw mY.createContextualError({apiKeyProvided:!1,oidcTokenProvided:!1,statusCode:401,cause:t})}},h=async()=>{try{return await xj(t)}catch(t){throw mY.createContextualError({apiKeyProvided:!1,oidcTokenProvided:!1,statusCode:401,cause:t})}},p=async r=>{if(void 0!==globalThis.window)throw Error("AI Gateway client secrets must be minted server-side: minting needs your Gateway credential, which must never reach the browser. Call gateway.experimental_realtime.getToken() or gateway.experimental_transcription.getToken() from your server and pass the returned token to the client.");let a=c(await h()),n=new URL("/v1/realtime/client-secrets",d).toString();try{let{value:i}=await hG({url:n,headers:a,body:{model:r.modelId,...null!=r.routeKind&&{routeKind:r.routeKind},...null!=r.expiresAfterSeconds&&{expiresIn:r.expiresAfterSeconds}},successfulResponseHandler:h5(xk),failedResponseHandler:h2({errorSchema:mR(),errorToMessage:t=>{var r;return null!=(r=o1(t))?r:"unknown error"}}),fetch:t.fetch});return{token:i.token,...null!=i.expiresAt&&{expiresAt:i.expiresAt}}}catch(t){throw await fp(t,await fx(a))}},m=()=>{let t=hi({settingValue:void 0,environmentVariableName:"VERCEL_DEPLOYMENT_ID"}),r=hi({settingValue:void 0,environmentVariableName:"VERCEL_ENV"}),a=hi({settingValue:void 0,environmentVariableName:"VERCEL_REGION"}),n=hi({settingValue:void 0,environmentVariableName:"VERCEL_PROJECT_ID"});return async()=>{let i=await xw();return{...t&&{"ai-o11y-deployment-id":t},...r&&{"ai-o11y-environment":r},...a&&{"ai-o11y-region":a},...i&&{"ai-o11y-request-id":i},...n&&{"ai-o11y-project-id":n}}}},f=r=>new fz(r,{provider:"gateway",baseURL:d,headers:u,fetch:t.fetch,o11yHeaders:m()}),x=async()=>{var r,a,n;let c=null!=(n=null==(a=null==(r=t._internal)?void 0:r.currentDate)?void 0:a.call(r).getTime())?n:Date.now();return(!i||c-l>s)&&(l=c,i=new fb({baseURL:d,headers:u,fetch:t.fetch}).getAvailableModels().then(t=>(o=t,t)).catch(async t=>{throw await fp(t,await fx(await u()))}
91)),o?Promise.resolve(o):i},g=async()=>new fb({baseURL:d,headers:u,fetch:t.fetch}).getCredits().catch(async t=>{throw await fp(t,await fx(await u()))}),y=async r=>new fk({baseURL:d,headers:u,fetch:t.fetch}).getSpendReport(r).catch(async t=>{throw await fp(t,await fx(await u()))}),b=async r=>new fN({baseURL:d,headers:u,fetch:t.fetch}).getGenerationInfo(r).catch(async t=>{throw await fp(t,await fx(await u()))}),v=function(t){if(new.target)throw Error("The Gateway Provider model function cannot be called with the new keyword.");return f(t)};v.specificationVersion="v4",v.getAvailableModels=x,v.getCredits=g,v.getSpendReport=y,v.getGenerationInfo=b,v.imageModel=r=>new fF(r,{provider:"gateway",baseURL:d,headers:u,fetch:t.fetch,o11yHeaders:m()}),v.languageModel=f,v.experimental_batch=()=>new fE({provider:"gateway",baseURL:d,headers:u,fetch:t.fetch,o11yHeaders:m()});let w=r=>new fW(r,{provider:"gateway",baseURL:d,headers:u,fetch:t.fetch,o11yHeaders:m()});v.embeddingModel=w,v.textEmbeddingModel=w,v.videoModel=r=>new fK(r,{provider:"gateway",baseURL:d,headers:u,fetch:t.fetch,o11yHeaders:m()});let k=r=>new f5(r,{provider:"gateway",baseURL:d,headers:u,fetch:t.fetch,o11yHeaders:m()});v.rerankingModel=k,v.reranking=k;let j=r=>new f6(r,{provider:"gateway",baseURL:d,headers:u,fetch:t.fetch,o11yHeaders:m()});v.speechModel=j,v.speech=j;let N=r=>new xe(r,{provider:"gateway",baseURL:d,headers:u,fetch:t.fetch,o11yHeaders:m(),webSocket:t.webSocket});v.transcriptionModel=N,v.transcription=N,v.experimental_transcription=Object.assign(t=>N(t),{getToken:async t=>{let r=await p({modelId:t.model,routeKind:"transcription",...null!=t.expiresAfterSeconds&&{expiresAfterSeconds:t.expiresAfterSeconds}});return{token:r.token,url:xt(d,t.model),...null!=r.expiresAt&&{expiresAt:r.expiresAt}}}});let _=r=>new xl(r,{provider:"gateway.realtime",baseURL:d,teamIdOrSlug:t.teamIdOrSlug,createClientSecret:p});v.experimental_realtime=Object.assign(t=>_(t),{getToken:async t=>{let{model:r,...a}=t,n=_(r),i=await n.doCreateClientSecret(a);return{token:i.token,url:i.url,...null!=i.expiresAt&&{expiresAt:i.expiresAt}}}}),v.chat=v.languageModel,v.embedding=v.embeddingModel,v.image=v.imageModel,v.video=v.videoModel,v.tools=xv}();var xN=Object.defineProperty,x_="AI_InvalidArgumentError",xE=`vercel.ai.error.${x_}`,xS=Symbol.for(xE),xC=class extends(ef=oq,em=xS,ef){constructor({parameter:t,value:r,message:a}){super({name:x_,message:`Invalid argument for parameter ${t}: ${a}`}),this[em]=!0,this.parameter=t,this.value=r}static isInstance(t){return oq.hasMarker(t,xE)}},xT=Symbol.for("vercel.ai.error.AI_InvalidStreamPartError");Symbol.for("vercel.ai.error.AI_InvalidToolApprovalError");Symbol.for("vercel.ai.error.AI_InvalidToolApprovalSignatureError");Symbol.for("vercel.ai.error.AI_InvalidToolInputError");Symbol.for("vercel.ai.error.AI_ToolCallNotFoundForApprovalError");Symbol.for("vercel.ai.error.AI_MissingToolResultsError");Symbol.for("vercel.ai.error.AI_NoImageGeneratedError");var xA="AI_NoObjectGeneratedError",xI=`vercel.ai.error.${xA}`,xM=Symbol.for(xI),xP=class extends(eg=oq,ex=xM,eg){constructor({message:t="No object generated.",cause:r,text:a,response:n,usage:i,finishReason:o}){super({name:xA,message:t,cause:r}),this[ex]=!0,this.text=a,this.response=n,this.usage=i,this.finishReason=o}static isInstance(t){return oq.hasMarker(t,xI)}},xO=Symbol.for("vercel.ai.error.AI_NoOutputGeneratedError");Symbol.for("vercel.ai.error.AI_NoSpeechGeneratedError");Symbol.for("vercel.ai.error.AI_NoTranscriptGeneratedError");Symbol.for("vercel.ai.error.AI_NoTranslationGeneratedError");Symbol.for("vercel.ai.error.AI_NoVideoGeneratedError");Symbol.for("vercel.ai.error.AI_NoSuchToolError");Symbol.for("vercel.ai.error.AI_StreamProviderError");Symbol.for("vercel.ai.error.AI_ToolCallRepairError");Symbol.for("vercel.ai.error.AI_ToolChoiceViolationError");Symbol.for("vercel.ai.error.AI_UIMessageStreamError");Symbol.for("vercel.ai.error.AI_InvalidDataContentError");Symbol.for("vercel.ai.error.AI_InvalidMessageRoleError");Symbol.for("vercel.ai.error.AI_MessageConversionError");Symbol.for("vercel.ai.error.AI_RetryError");var xD=async({url:t,maxBytes:r,abortSignal:a})=>{var n;let i=t.toString();try{let t=uq({},"ai-sdk/7.0.101",uL()),o=await he({url:i,headers:t,abortSignal:a});if(!o.ok)throw await uH(o),new uJ({url:i,statusCode:o.status,statusText:o.statusText});return{data:await ht({response:o,url:i,maxBytes:null!=r?r:0x80000000}),mediaType:null!=(n=o.headers.get("content-type"))?n:void 0}}catch(t){if(uJ.isInstance(t))throw t;throw new uJ({url:i,cause:t})}},xR=ma,x$=function(t,r){var a;let n;return a=t??(()=>!0),(n=i0(r)).abort??(n.abort=!0),new mI({type:"custom",check:"custom",fn:a,...n})},xz=mm,xL=function(t,r={}){let a=new mM({type:"custom",check:"custom",fn:r=>r instanceof t,abort:!0,...pN.normalizeParams(r)});return a._zod.bag.Class=t,a._zod.check=r=>{r.value instanceof t||r.issues.push({code:"invalid_type",expected:t.name,input:r.value,inst:a,path:[...a._zod.def.path??[]]})},a},xW=function(t,r){return new mn({type:"object",shape:t,catchall:p7(),...pN.normalizeParams(r)})},xU=ms,xB=new mA({type:"lazy",getter:()=>xU([new p6({type:"null",...i0(void 0)}),pT(),p1(),p3(),mh(pT(),xB.optional()),xR(xB)])}),xF=mh(pT(),mh(pT(),xB.optional())),xY=xU([pT(),xL(Uint8Array),xL(ArrayBuffer),x$(function(t){var r,a;return null!=(a=null==(r=globalThis.Buffer)?void 0:r.isBuffer(t))&&a},{message:"Must be a Buffer"})]),xV=mh(pT(),pT()),xq=mi({type:mx("text"),text:pT(),providerOptions:xF.optional()}),xH=mi({type:mx("image"),image:xU([xY,xL(URL),xV]),mediaType:pT().optional(),providerOptions:xF.optional()}),xZ=md("type",[mi({type:mx("data"),data:xY}),mi({type:mx("url"),url:xL(URL)}),mi({type:mx("reference"),reference:xV}),mi({type:mx("text"),text:pT()})]),xK=md("type",[mi({type:mx("data"),data:xY}),mi({type:mx("url"),url:xL(URL)})]),xG=mi({type:mx("file"),data:xU([xZ,xY,xL(URL),xV]),filename:pT().optional(),mediaType:pT(),providerOptions:xF.optional()}),xJ=mi({type:mx("reasoning"),text:pT(),providerOptions:xF.optional()}),xX=mi({type:mx("custom"),kind:pT().transform(t=>t),providerOptions:xF.optional()}),xQ=mi({type:mx("reasoning-file"),data:xU([xK,xY,xL(URL)]),mediaType:pT(),providerOptions:xF.optional()}),x0=mi({type:mx("tool-call"),toolCallId:pT(),toolName:pT(),input
91:p7(),providerOptions:xF.optional(),providerExecuted:p3().optional()}),x1=md("type",[mi({type:mx("text"),value:pT(),providerOptions:xF.optional()}),mi({type:mx("json"),value:xB,providerOptions:xF.optional()}),mi({type:mx("execution-denied"),reason:pT().optional(),providerOptions:xF.optional()}),mi({type:mx("error-text"),value:pT(),providerOptions:xF.optional()}),mi({type:mx("error-json"),value:xB,providerOptions:xF.optional()}),mi({type:mx("content"),value:xR(xU([mi({type:mx("text"),text:pT(),providerOptions:xF.optional()}),mi({type:mx("file"),data:xZ,mediaType:pT(),filename:pT().optional(),providerOptions:xF.optional()}),mi({type:mx("file-data"),data:pT(),mediaType:pT(),filename:pT().optional(),providerOptions:xF.optional()}),mi({type:mx("file-url"),url:pT(),mediaType:pT().optional(),providerOptions:xF.optional()}),mi({type:mx("file-id"),fileId:xU([pT(),mh(pT(),pT())]),providerOptions:xF.optional()}),mi({type:mx("file-reference"),providerReference:mh(pT(),pT()),providerOptions:xF.optional()}),mi({type:mx("image-data"),data:pT(),mediaType:pT(),providerOptions:xF.optional()}),mi({type:mx("image-url"),url:pT(),providerOptions:xF.optional()}),mi({type:mx("image-file-id"),fileId:xU([pT(),mh(pT(),pT())]),providerOptions:xF.optional()}),mi({type:mx("image-file-reference"),providerReference:mh(pT(),pT()),providerOptions:xF.optional()}),mi({type:mx("custom"),providerOptions:xF.optional()})]))})]),x2=mi({type:mx("tool-result"),toolCallId:pT(),toolName:pT(),output:x1,providerOptions:xF.optional()}),x5=mi({type:mx("tool-approval-request"),approvalId:pT(),toolCallId:pT(),reason:pT().optional()}),x4=mi({type:mx("tool-approval-response"),approvalId:pT(),approved:p3(),reason:pT().optional()}),x3=mi({role:mx("system"),content:pT(),providerOptions:xF.optional()}),x6=mi({role:mx("user"),content:xU([pT(),xR(xU([xq,xH,xG]))]),providerOptions:xF.optional()}),x8=mi({role:mx("assistant"),content:xU([pT(),xR(xU([xq,xX,xG,xJ,xQ,x0,x2,x5]))]),providerOptions:xF.optional()}),x9=mi({role:mx("tool"),content:xR(xU([x2,x4])),providerOptions:xF.optional()});xU([x3,x6,x8,x9]);var x7={},ge={array:()=>gi,choice:()=>gl,json:()=>gd,object:()=>gn,text:()=>ga};for(var gt in ge)xN(x7,gt,{get:ge[gt],enumerable:!0});async function gr(t){if(void 0===t)return{value:void 0,state:"undefined-input"};let r=await hH({text:t});return r.success?{value:r.value,state:"successful-parse"}:(r=await hH({text:function(t){let r=["ROOT"],a=-1,n=null,i=0;function o(t,i,o){switch(t){case'"':a=i,r.pop(),r.push(o),r.push("INSIDE_STRING");break;case"f":case"t":case"n":a=i,n=i,r.pop(),r.push(o),r.push("INSIDE_LITERAL");break;case"-":r.pop(),r.push(o),r.push("INSIDE_NUMBER");break;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":a=i,r.pop(),r.push(o),r.push("INSIDE_NUMBER");break;case"{":a=i,r.pop(),r.push(o),r.push("INSIDE_OBJECT_START");break;case"[":a=i,r.pop(),r.push(o),r.push("INSIDE_ARRAY_START")}}function s(t,n){switch(t){case",":r.pop(),r.push("INSIDE_OBJECT_AFTER_COMMA");break;case"}":a=n,r.pop()}}function l(t,n){switch(t){case",":r.pop(),r.push("INSIDE_ARRAY_AFTER_COMMA");break;case"]":a=n,r.pop()}}for(let d=0;d<t.length;d++){let c=t[d];switch(r[r.length-1]){case"ROOT":o(c,d,"FINISH");break;case"INSIDE_OBJECT_START":switch(c){case'"':r.pop(),r.push("INSIDE_OBJECT_KEY");break;case"}":a=d,r.pop()}break;case"INSIDE_OBJECT_AFTER_COMMA":'"'===c&&(r.pop(),r.push("INSIDE_OBJECT_KEY"));break;case"INSIDE_OBJECT_KEY":'"'===c&&(r.pop(),r.push("INSIDE_OBJECT_AFTER_KEY"));break;case"INSIDE_OBJECT_AFTER_KEY":":"===c&&(r.pop(),r.push("INSIDE_OBJECT_BEFORE_VALUE"));break;case"INSIDE_OBJECT_BEFORE_VALUE":o(c,d,"INSIDE_OBJECT_AFTER_VALUE");break;case"INSIDE_OBJECT_AFTER_VALUE":s(c,d);break;case"INSIDE_STRING":switch(c){case'"':r.pop(),a=d;break;case"\\":r.push("INSIDE_STRING_ESCAPE");break;default:a=d}break;case"INSIDE_ARRAY_START":"]"===c?(a=d,r.pop()):(a=d,o(c,d,"INSIDE_ARRAY_AFTER_VALUE"));break;case"INSIDE_ARRAY_AFTER_VALUE":switch(c){case",":r.pop(),r.push("INSIDE_ARRAY_AFTER_COMMA");break;case"]":a=d,r.pop();break;default:a=d}break;case"INSIDE_ARRAY_AFTER_COMMA":o(c,d,"INSIDE_ARRAY_AFTER_VALUE");break;case"INSIDE_STRING_ESCAPE":r.pop(),"u"===c?(i=0,r.push("INSIDE_STRING_UNICODE_ESCAPE")):a=d;break;case"INSIDE_STRING_UNICODE_ESCAPE":(c>="0"&&c<="9"||c>="A"&&c<="F"||c>="a"&&c<="f")&&4==++i&&(r.pop(),a=d);break;case"INSIDE_NUMBER":switch(c){case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":a=d;break;case"e":case"E":case"-":case".":break;case",":r.pop(),"INSIDE_ARRAY_AFTER_VALUE"===r[r.length-1]&&l(c,d),"INSIDE_OBJECT_AFTER_VALUE"===r[r.length-1]&&s(c,d);break;case"}":r.pop(),"INSIDE_OBJECT_AFTER_VALUE"===r[r.length-1]&&s(c,d);break;case"]":r.pop(),"INSIDE_ARRAY_AFTER_VALUE"===r[r.length-1]&&l(c,d);break;default:r.pop()}break;case"INSIDE_LITERAL":{let i=t.substring(n,d+1);"false".startsWith(i)||"true".startsWith(i)||"null".startsWith(i)?a=d:(r.pop(),"INSIDE_OBJECT_AFTER_VALUE"===r[r.length-1]?s(c,d):"INSIDE_ARRAY_AFTER_VALUE"===r[r.length-1]&&l(c,d))}}}let d=t.slice(0,a+1);for(let a=r.length-1;a>=0;a--)switch(r[a]){case"INSIDE_STRING":d+='"';break;case"INSIDE_OBJECT_KEY":case"INSIDE_OBJECT_AFTER_KEY":case"INSIDE_OBJECT_AFTER_COMMA":case"INSIDE_OBJECT_START":case"INSIDE_OBJECT_BEFORE_VALUE":case"INSIDE_OBJECT_AFTER_VALUE":d+="}";break;case"INSIDE_ARRAY_START":case"INSIDE_ARRAY_AFTER_COMMA":case"INSIDE_ARRAY_AFTER_VALUE":d+="]";break;case"INSIDE_LITERAL":{let r=t.substring(n,t.length);"true".startsWith(r)?d+="true".slice(r.length):"false".startsWith(r)?d+="false".slice(r.length):"null".startsWith(r)&&(d+="null".slice(r.length))}}return d}(t)})).success?{value:r.value,state:"repaired-parse"}:{value:void 0,state:"failed-parse"}}var ga=()=>({name:"text",responseFormat:Promise.resolve({type:"text"}),parseCompleteOutput:async({text:t})=>t,parsePartialOutput:async({text:t})=>({partial:t}),createElementStreamTransform(){}}),gn=({schema:t,name:r,description:a})=>{let n=hB(t);return{name:"object",responseFormat:hQ(n.jsonSchema).then(t=>({type:"json",schema:t,...null!=r&&{name:r},...null!=a&&{description:a}})),async parseCompleteOutput({text:t},r){let a=await hH({text:t});if(!a.success)throw new xP({message:"No object generated: could not parse the response.",cause:a.error,text:t,response:r.response,usage:r.usage,finishReason:r.finishReason});let i=await hV({value:a.value,schema:n});if(!i.success)throw new xP({message:"No object generated: response did not match sc
91hema.",cause:i.error,text:t,response:r.response,usage:r.usage,finishReason:r.finishReason});return i.value},async parsePartialOutput({text:t}){let r=await gr(t);switch(r.state){case"failed-parse":case"undefined-input":return;case"repaired-parse":case"successful-parse":return{partial:r.value}}},createElementStreamTransform(){}}},gi=({element:t,minItems:r,maxItems:a,name:n,description:i})=>{if(go({name:"minItems",value:r}),go({name:"maxItems",value:a}),null!=r&&null!=a&&r>a)throw new xC({parameter:"minItems",value:r,message:"minItems must be less than or equal to maxItems"});let o=hB(t);return{name:"array",responseFormat:hQ(o.jsonSchema).then(t=>{let{$schema:o,definitions:s,$defs:l,...d}=t;return{type:"json",schema:{$schema:"http://json-schema.org/draft-07/schema#",...null!=s&&{definitions:s},...null!=l&&{$defs:l},type:"object",properties:{elements:{type:"array",items:d,...null!=r&&{minItems:r},...null!=a&&{maxItems:a}}},required:["elements"],additionalProperties:!1},...null!=n&&{name:n},...null!=i&&{description:i}}}),async parseCompleteOutput({text:t},n){let i=await hH({text:t});if(!i.success)throw new xP({message:"No object generated: could not parse the response.",cause:i.error,text:t,response:n.response,usage:n.usage,finishReason:n.finishReason});let s=i.value;if(null==s||"object"!=typeof s||!("elements"in s)||!Array.isArray(s.elements))throw new xP({message:"No object generated: response did not match schema.",cause:new sc({value:s,cause:"response must be an object with an elements array"}),text:t,response:n.response,usage:n.usage,finishReason:n.finishReason});let l=gs({value:s.elements,minItems:r,maxItems:a});if(null!=l)throw new xP({message:"No object generated: response did not match schema.",cause:l,text:t,response:n.response,usage:n.usage,finishReason:n.finishReason});let d=[];for(let r of s.elements){let a=await hV({value:r,schema:o});if(!a.success)throw new xP({message:"No object generated: response did not match schema.",cause:a.error,text:t,response:n.response,usage:n.usage,finishReason:n.finishReason});d.push(a.value)}return d},async parsePartialOutput({text:t}){let r=await gr(t);switch(r.state){case"failed-parse":case"undefined-input":return;case"repaired-parse":case"successful-parse":{let t=r.value;if(null==t||"object"!=typeof t||!("elements"in t)||!Array.isArray(t.elements))return;let a="repaired-parse"===r.state&&t.elements.length>0?t.elements.slice(0,-1):t.elements,n=[];for(let t of a){let r=await hV({value:t,schema:o});r.success&&n.push(r.value)}return{partial:n}}}},createElementStreamTransform(){let t=0;return new TransformStream({transform({partialOutput:r},n){if(null!=r)for(;t<r.length;t++){if(null!=a&&t>=a)return void n.error(gs({value:r,maxItems:a}));n.enqueue(r[t])}}})}}};function go({name:t,value:r}){if(null!=r){if(!Number.isInteger(r))throw new xC({parameter:t,value:r,message:`${t} must be an integer`});if(r<0)throw new xC({parameter:t,value:r,message:`${t} must be greater than or equal to 0`})}}function gs({value:t,minItems:r,maxItems:a}){return null!=r&&t.length<r?new sc({value:t,cause:`elements array must contain at least ${r} items`}):null!=a&&t.length>a?new sc({value:t,cause:`elements array must contain at most ${a} items`}):void 0}var gl=({options:t,name:r,description:a})=>({name:"choice",responseFormat:Promise.resolve({type:"json",schema:{$schema:"http://json-schema.org/draft-07/schema#",type:"object",properties:{result:{type:"string",enum:t}},required:["result"],additionalProperties:!1},...null!=r&&{name:r},...null!=a&&{description:a}}),async parseCompleteOutput({text:r},a){let n=await hH({text:r});if(!n.success)throw new xP({message:"No object generated: could not parse the response.",cause:n.error,text:r,response:a.response,usage:a.usage,finishReason:a.finishReason});let i=n.value;if(null==i||"object"!=typeof i||!("result"in i)||"string"!=typeof i.result||!t.includes(i.result))throw new xP({message:"No object generated: response did not match schema.",cause:new sc({value:i,cause:"response must be an object that contains a choice value."}),text:r,response:a.response,usage:a.usage,finishReason:a.finishReason});return i.result},async parsePartialOutput({text:r}){let a=await gr(r);switch(a.state){case"failed-parse":case"undefined-input":return;case"repaired-parse":case"successful-parse":{let r=a.value;if(null==r||"object"!=typeof r||!("result"in r)||"string"!=typeof r.result)return;let n=t.filter(t=>t.startsWith(r.result));if("successful-parse"===a.state)return n.includes(r.result)?{partial:r.result}:void 0;return 1===n.length?{partial:n[0]}:void 0}}},createElementStreamTransform(){}}),gd=({name:t,description:r}={})=>({name:"json",responseFormat:Promise.resolve({type:"json",...null!=t&&{name:t},...null!=r&&{description:r}}),async parseCompleteOutput({text:t},r){let a=await hH({text:t});if(!a.success)throw new xP({message:"No object generated: could not parse the response.",cause:a.error,text:t,response:r.response,usage:r.usage,finishReason:r.finishReason});return a.value},async parsePartialOutput({text:t}){let r=await gr(t);switch(r.state){case"failed-parse":case"undefined-input":return;case"repaired-parse":case"successful-parse":return void 0===r.value?void 0:{partial:r.value}}},createElementStreamTransform(){}});new TextEncoder,new TextEncoder,hr({prefix:"aitxt",size:24}),hr({prefix:"call",size:24}),TransformStream;var gc=mh(pT(),xB.optional());hW(()=>hF(xU([xW({type:mx("text-start"),id:pT(),providerMetadata:xF.optional()}),xW({type:mx("text-delta"),id:pT(),delta:pT(),providerMetadata:xF.optional()}),xW({type:mx("text-end"),id:pT(),providerMetadata:xF.optional()}),xW({type:mx("error"),errorText:pT()}),xW({type:mx("tool-input-start"),toolCallId:pT(),toolName:pT(),providerExecuted:p3().optional(),providerMetadata:xF.optional(),toolMetadata:gc.optional(),dynamic:
91p3().optional(),title:pT().optional()}),xW({type:mx("tool-input-delta"),toolCallId:pT(),inputTextDelta:pT()}),xW({type:mx("tool-input-available"),toolCallId:pT(),toolName:pT(),input:p7(),providerExecuted:p3().optional(),providerMetadata:xF.optional(),toolMetadata:gc.optional(),dynamic:p3().optional(),title:pT().optional()}),xW({type:mx("tool-input-error"),toolCallId:pT(),toolName:pT(),input:p7(),providerExecuted:p3().optional(),providerMetadata:xF.optional(),toolMetadata:gc.optional(),dynamic:p3().optional(),errorText:pT(),title:pT().optional()}),xW({type:mx("tool-approval-request"),approvalId:pT(),toolCallId:pT(),approvalDescriptor:p7().optional(),reason:pT().optional(),isAutomatic:p3().optional(),signature:pT().optional()}),xW({type:mx("tool-approval-response"),approvalId:pT(),approved:p3(),reason:pT().optional(),providerExecuted:p3().optional(),providerMetadata:xF.optional()}),xW({type:mx("tool-output-available"),toolCallId:pT(),output:p7(),providerExecuted:p3().optional(),providerMetadata:xF.optional(),toolMetadata:gc.optional(),dynamic:
91p3().optional(),preliminary:p3().optional()}),xW({type:mx("tool-output-error"),toolCallId:pT(),errorText:pT(),providerExecuted:p3().optional(),providerMetadata:xF.optional(),toolMetadata:gc.optional(),dynamic:p3().optional()}),xW({type:mx("tool-output-denied"),toolCallId:pT()}),xW({type:mx("reasoning-start"),id:pT(),providerMetadata:xF.optional()}),xW({type:mx("reasoning-delta"),id:pT(),delta:pT(),providerMetadata:xF.optional()}),xW({type:mx("reasoning-end"),id:pT(),providerMetadata:xF.optional()}),xW({type:mx("custom"),kind:pT().transform(t=>t),providerMetadata:xF.optional()}),xW({type:mx("source-url"),sourceId:pT(),url:pT(),title:pT().optional(),providerMetadata:xF.optional()}),xW({type:mx("source-document"),sourceId:pT(),mediaType:pT(),title:pT(),filename:pT().optional(),providerMetadata:xF.optional()}),xW({type:mx("file"),url:pT(),mediaType:pT(),providerMetadata:xF.optional()}),xW({type:mx("reasoning-file"),url:pT(),mediaType:pT(),providerMetadata:xF.optional()}),xW({type:x$(t=>"string"==typeof t&&t.startsWith("data-"),{message:'Type must start with "data-"'}),id:pT().optional(),data:p7(),transient:p3().optional()}),xW({type:mx("start-step")}),xW({type:mx("finish-step")}),xW({type:mx("reset-step")}),xW({type:mx("start"),messageId:pT().optional(),messageMetadata:p7().optional()}),xW({type:mx("finish"),finishReason:xz(["stop","length","content-filter","tool-calls","error","other"]).optional(),messageMetadata:p7().optional()}),xW({type:mx("abort"),reason:pT().optional()}),xW({type:mx("message-metadata"),messageMetadata:p7()})]))),hr({prefix:"aitxt",size:24}),hr({prefix:"call",size:24}),hr({prefix:"aitxt",size:24}),hr({prefix:"call",size:24});var gu=mh(pT(),xB.optional()),gh=mh(pT(),pT());function gp(t){return({url:r,abortSignal:a})=>xD({url:r,maxBytes:null==t?void 0:t.maxBytes,abortSignal:a})}hW(()=>hF(xR(mi({id:pT(),role:xz(["system","user","assistant"]),metadata:p7().optional(),parts:xR(xU([mi({type:mx("text"),text:pT(),state:xz(["streaming","done"]).optional(),providerMetadata:xF.optional()}),mi({type:mx("reasoning"),id:pT().optional(),text:pT(),state:xz(["streaming","done"]).optional(),providerMetadata:xF.optional()}),mi({type:mx("custom"),kind:pT(),providerMetadata:xF.optional()}),mi({type:mx("source-url"),sourceId:pT(),url:pT(),title:pT().optional(),providerMetadata:xF.optional()}),mi({type:mx("source-document"),sourceId:pT(),mediaType:pT(),title:pT(),filename:pT().optional(),providerMetadata:xF.optional()}),mi({type:mx("file"),mediaType:pT(),filename:pT().optional(),url:pT(),providerReference:gh.optional(),providerMetadata:xF.optional()}),mi({type:mx("reasoning-file"),mediaType:pT(),url:pT(),providerMetadata:xF.optional()}),mi({type:mx("step-start")}),mi({type:pT().startsWith("data-"),id:pT().optional(),data:p7()}),mi({type:mx("dynamic-tool"),toolName:pT(),toolCallId:pT(),title:pT().optional(),toolMetadata:gu.optional(),state:mx("input-streaming"),input:p7().optional(),providerExecuted:p3().optional(),callProviderMetadata:xF.optional(),output:mt().optional(),errorText:mt().optional(),approval:mt().optional()}),mi({type:mx("dynamic-tool"),toolName:pT(),toolCallId:pT(),title:pT().optional(),toolMetadata:gu.optional(),state:mx("input-available"),input:p7(),providerExecuted:p3().optional(),output:mt().optional(),errorText:mt().optional(),callProviderMetadata:xF.optional(),approval:mt().optional()}),mi({type:mx("dynamic-tool"),toolName:pT(),toolCallId:pT(),title:pT().optional(),toolMetadata:gu.optional(),state:mx("approval-requested"),input:p7(),providerExecuted:p3().optional(),output:mt().optional(),errorText:mt().optional(),callProviderMetadata:xF.optional(),approval:mi({id:pT(),approved:mt().optional(),descriptor:p7().optional(),requestReason:pT().optional(),reason:mt().optional(),isAutomatic:p3().optional(),signature:pT().optional()})}),mi({type:mx("dynamic-tool"),toolName:pT(),toolCallId:pT(),title:pT().optional(),toolMetadata:gu.optional(),state:mx("approval-responded"),input:p7(),providerExecuted:p3().optional(),output:mt().optional(),errorText:mt().optional(),callProviderMetadata:xF.optional(),approval:mi({id:pT(),approved:p3(),descriptor:p7().optional(),requestReason:pT().optional(),reason:pT().optional(),isAutomatic:p3().optional(),signature:pT().optional()})}),mi({type:mx("dynamic-tool"),toolName:pT(),toolCallId:pT(),title:pT().optional(),toolMetadata:gu.optional(),state:mx("output-available"),input:p7(),providerExecuted:p3().optional(),output:p7(),errorText:mt().optional(),callProviderMetadata:xF.optional(),resultProviderMetadata:xF.optional(),preliminary:p3().optional(),approval:mi({id:pT(),approved:mx(!0),descriptor:p7().optional(),requestReason:pT().optional(),reason:pT().optional(),isAutomatic:p3().optional(),signature:pT().optional()}).optional()}),mi({type:mx("dynamic-tool"),toolName:pT(),toolCallId:pT(),title:pT().optional(),toolMetadata:gu.optional(),state:mx("output-error"),input:p7().optional(),rawInput:p7().optional(),providerExecuted:p3().optional(),output:mt().optional(),errorText:pT(),callProviderMetadata:xF.optional(),resultProviderMetadata:xF.optional(),approval:mi({id:pT(),approved:mx(!0),descriptor:p7().optional(),requestReason:pT().optional(),reason:pT().optional(),isAutomatic:p3().optional(),signature:pT().optional()}).optional()}),mi({type:mx("dynamic-tool"),toolName:pT(),toolCallId:pT(),title:pT().optional(),toolMetadata:gu.optional(),state:mx("output-denied"),input:p7(),providerExecuted:p3().optional(),output:mt().optional(),errorText:mt().optional(),callProviderMetadata:xF.optional(),approval:mi({id:pT(),approved:mx(!1),descriptor:p7().optional(),requestReason:pT().optional(),reason:pT().optional(),isAutomatic:p3().optional(),signature:pT().optional()})}),mi({type:pT().startsWith("tool-"),toolCallId:pT(),title:pT().optional(),toolMetadata:gu.optional(),state:mx("input-streaming"),providerExecuted:p3().optional(),callProviderMetadata:xF.optional(),input
91:p7().optional(),output:mt().optional(),errorText:mt().optional(),approval:mt().optional()}),mi({type:pT().startsWith("tool-"),toolCallId:pT(),title:pT().optional(),toolMetadata:gu.optional(),state:mx("input-available"),providerExecuted:p3().optional(),input:p7(),output:mt().optional(),errorText:mt().optional(),callProviderMetadata:xF.optional(),approval:mt().optional()}),mi({type:pT().startsWith("tool-"),toolCallId:pT(),title:pT().optional(),toolMetadata:gu.optional(),state:mx("approval-requested"),input:p7(),providerExecuted:p3().optional(),output:mt().optional(),errorText:mt().optional(),callProviderMetadata:xF.optional(),approval:mi({id:pT(),approved:mt().optional(),descriptor:p7().optional(),requestReason:pT().optional(),reason:mt().optional(),isAutomatic:p3().optional(),signature:pT().optional()})}),mi({type:pT().startsWith("tool-"),toolCallId:pT(),title:pT().optional(),toolMetadata:gu.optional(),state:mx("approval-responded"),input:p7(),providerExecuted:p3().optional(),output:mt().optional(),errorText:mt().optional(),callProviderMetadata:xF.optional(),approval:mi({id:pT(),approved:p3(),descriptor:p7().optional(),requestReason:pT().optional(),reason:pT().optional(),isAutomatic:p3().optional(),signature:pT().optional()})}),mi({type:pT().startsWith("tool-"),toolCallId:pT(),title:pT().optional(),toolMetadata:gu.optional(),state:mx("output-available"),providerExecuted:p3().optional(),input:p7(),output:p7(),errorText:mt().optional(),callProviderMetadata:xF.optional(),resultProviderMetadata:xF.optional(),preliminary:p3().optional(),approval:mi({id:pT(),approved:mx(!0),descriptor:p7().optional(),requestReason:pT().optional(),reason:pT().optional(),isAutomatic:p3().optional(),signature:pT().optional()}).optional()}),mi({type:pT().startsWith("tool-"),toolCallId:pT(),title:pT().optional(),toolMetadata:gu.optional(),state:mx("output-error"),providerExecuted:p3().optional(),input:p7().optional(),rawInput:p7().optional(),output:mt().optional(),errorText:pT(),callProviderMetadata:xF.optional(),resultProviderMetadata:xF.optional(),approval:mi({id:pT(),approved:mx(!0),descriptor:p7().optional(),requestReason:pT().optional(),reason:pT().optional(),isAutomatic:p3().optional(),signature:pT().optional()}).optional()}),mi({type:pT().startsWith("tool-"),toolCallId:pT(),title:pT().optional(),toolMetadata:gu.optional(),state:mx("output-denied"),providerExecuted:p3().optional(),input:p7(),output:mt().optional(),errorText:mt().optional(),callProviderMetadata:xF.optional(),approval:mi({id:pT(),approved:mx(!1),descriptor:p7().optional(),requestReason:pT().optional(),reason:pT().optional(),isAutomatic:p3().optional(),signature:pT().optional()})})]))}).superRefine((t,r)=>{"assistant"!==t.role&&0===t.parts.length&&r.addIssue({origin:"array",code:"too_small",minimum:1,inclusive:!0,input:t.parts,path:["parts"],message:"Message must contain at least one part"})})).nonempty("Messages array must not be empty"))),hr({prefix:"call",size:24}),hr({prefix:"call",size:24}),new TextEncoder,hr({prefix:"aiobj",size:24});var{atob:gm}=globalThis;hr({prefix:"aiobj",size:24}),gp();Symbol.for("vercel.ai.error.AI_NoSuchProviderError");hr({prefix:"call",size:24}),gp();let gf=t=>"string"==typeof t?t:"";function gx(t){let r=t??{},a=(Array.isArray(r.sections)?r.sections:[]).map(t=>{let r=t??{};return{h:gf(r.h),bullets:(Array.isArray(r.bullets)?r.bullets:[]).map(t=>{let r=t??{};return{term:gf(r.term),text:gf(r.text)}}).filter(t=>t.term)}}).filter(t=>t.h),n=(Array.isArray(r.followups)?r.followups:[]).map(t=>t??{}).filter(t=>"string"==typeof t.q&&t.q.length>0&&("pedia"===t.kind||"chart"===t.kind)).map(t=>({q:t.q,kind:t.kind}));return{lead:gf(r.lead),sections:a,followup:gf(r.followup),followups:n,crosssell:ic.crosssell}}async function gg(t,r,a,n){let i=await fetch("/api/astropedia",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({question:t,deviceId:(0,iu.getDeviceId)(),threadId:n?.threadId,turnIndex:n?.turnIndex}),signal:a});if(501===i.status)throw new is.ApiNotConfiguredError;if(!i.ok){let t,r=await i.json().catch(()=>null);if(403===i.status&&(0,il.isFreeUseRefusal)(r))throw new il.FreeUseExhaustedError("astropedia");if(429===i.status)throw new is.ApiRateLimitError;
91let a=422===i.status?"needs_chart"===(t=r?.code)?"guidance":"off_topic"===t?"off_topic":null:null;if(a)throw new io(a);throw Error(r?.error??`The answer failed (${i.status}).`)}if(!i.body)throw Error("The server returned an empty stream.");let o=i.body.getReader(),s=new TextDecoder,l="",d=gx(null);try{for(;;){let{done:t,value:a}=await o.read();if(t)break;l+=s.decode(a,{stream:!0});let{value:n}=await gr(l);d=gx(n),r(d)}}finally{o.releaseLock()}if(!d.lead)throw Error("The answer came back empty.");return d}var gy=t.i(20928);function gb(t,r){let a=(0,ek.forwardRef)(({size:t=24,strokeWidth:a=1.5,absoluteStrokeWidth:n,...i},o)=>(0,ey.jsx)("svg",{ref:o,xmlns:"http://www.w3.org/2000/svg",width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:a,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...i,children:r}));return a.displayName=t,a}let gv=gb("MarriageMark",(0,ey.jsxs)(ey.Fragment,{children:[(0,ey.jsx)("circle",{cx:"8.6",cy:"14",r:"5.4"}),(0,ey.jsx)("circle",{cx:"15.4",cy:"14",r:"5.4"}),(0,ey.jsx)("path",{d:"M12 2.6c.35 1.2.8 1.65 2 2-1.2.35-1.65.8-2 2-.35-1.2-.8-1.65-2-2 1.2-.35 1.65-.8 2-2Z",fill:"currentColor",stroke:"none"})]})),gw=gb("LoveArrangeMark",(0,ey.jsxs)(ey.Fragment,{children:[(0,ey.jsx)("path",{d:"M12 20.8v-6.6"}),(0,ey.jsx)("path",{d:"M12 14.2c0-3.8-1.5-5.8-5-7.1"}),(0,ey.jsx)("path",{d:"M12 14.2c0-3.8 1.5-5.8 5-7.1"}),(0,ey.jsx)("circle",{cx:"4.6",cy:"6.2",r:"2.1",fill:"currentColor",stroke:"none"}),(0,ey.jsx)("circle",{cx:"19.4",cy:"6.2",r:"2.1"})]})),gk=gb("SpouseMark",(0,ey.jsxs)(ey.Fragment,{children:[(0,ey.jsx)("circle",{cx:"11.4",cy:"8.4",r:"3.4"}),(0,ey.jsx)("path",{d:"M5.2 20c.8-3.5 3.2-5.3 6.2-5.3s5.4 1.8 6.2 5.3"}),(0,ey.jsx)("path",{d:"M19.4 2.4c.28 1.05.67 1.44 1.72 1.72-1.05.28-1.44.67-1.72 1.72-.28-1.05-.67-1.44-1.72-1.72 1.05-.28 1.44-.67 1.72-1.72Z",fill:"currentColor",stroke:"none"})]})),gj=gb("InLawsMark",(0,ey.jsxs)(ey.Fragment,{children:[(0,ey.jsx)("path",{d:"M2.4 11.4 12 4.1l9.6 7.3"}),(0,ey.jsx)("path",{d:"M4.9 12.3v7.6h14.2v-7.6"}),(0,ey.jsx)("path",{d:"M3.2 19.9h17.6"}),(0,ey.jsx)("circle",{cx:"8.3",cy:"16.1",r:"1.6"}),(0,ey.jsx)("circle",{cx:"12",cy:"16.1",r:"1.6",fill:"currentColor",stroke:"none"}),(0,ey.jsx)("circle",{cx:"15.7",cy:"16.1",r:"1.6"})]})),gN=gb("LoveStyleMark",(0,ey.jsxs)(ey.Fragment,{children:[(0,ey.jsx)("ellipse",{cx:"12",cy:"12",rx:"10.4",ry:"4.7",transform:"rotate(-24 12 12)"}),(0,ey.jsx)("path",{d:"M12 17.8 7.3 13.3c-.9-.9-1.4-1.9-1.4-3.1a3.3 3.3 0 0 1 3.3-3.3c1.1 0 2.1.5 2.8 1.3.7-.8 1.7-1.3 2.8-1.3a3.3 3.3 0 0 1 3.3 3.3c0 1.2-.5 2.2-1.4 3.1Z"})]})),g_=gb("IdealPartnerMark",(0,ey.jsxs)(ey.Fragment,{children:[(0,ey.jsx)("circle",{cx:"12",cy:"12",r:"8.8"}),(0,ey.jsx)("path",{d:"M12 3.2a4.4 4.4 0 0 1 0 8.8 4.4 4.4 0 0 0 0 8.8"}),(0,ey.jsx)("circle",{cx:"12",cy:"7.6",r:"1.3",fill:"currentColor",stroke:"none"}),(0,ey.jsx)("circle",{cx:"12",cy:"16.4",r:"1.3"})]})),gE=gb("BillionaireMark",(0,ey.jsxs)(ey.Fragment,{children:[(0,ey.jsx)("path",{d:"M4.2 18.4 3.3 8.6l4.9 3.9L12 5.8l3.8 6.7 4.9-3.9-.9 9.8Z"}),(0,ey.jsx)("circle",{cx:"12",cy:"3.4",r:"1.2",fill:"currentColor",stroke:"none"})]})),gS=gb("WealthMark",(0,ey.jsxs)(ey.Fragment,{children:[(0,ey.jsx)("ellipse",{cx:"12",cy:"6.9",rx:"7.4",ry:"3.1"}),(0,ey.jsx)("path",{d:"M4.6 6.9v4.6c0 1.71 3.31 3.1 7.4 3.1s7.4-1.39 7.4-3.1V6.9"}),(0,ey.jsx)("path",{d:"M4.6 11.5v4.6c0 1.71 3.31 3.1 7.4 3.1s7.4-1.39 7.4-3.1v-4.6"})]})),gC=gb("CareerMark",(0,ey.jsxs)(ey.Fragment,{children:[(0,ey.jsx)("path",{d:"M3.2 20.4h4.7v-4.5h4.7v-4.5h4.7V6.9h3.5"}),(0,ey.jsx)("path",{d:"M19 2c.26.94.6 1.28 1.54 1.54-.94.26-1.28.6-1.54 1.54-.26-.94-.6-1.28-1.54-1.54.94-.26 1.28-.6 1.54-1.54Z",fill:"currentColor",stroke:"none"})]})),gT=gb("GovtJobMark",(0,ey.jsxs)(ey.Fragment,{children:[(0,ey.jsx)("path",{d:"M2.6 9.6 12 4.3l9.4 5.3"}),(0,ey.jsx)("path",{d:"M5.4 9.9v7.7M9.8 9.9v7.7M14.2 9.9v7.7M18.6 9.9v7.7"}),(0,ey.jsx)("path",{d:"M3.6 17.9h16.8"}),(0,ey.jsx)("path",{d:"M2.6 20.5h18.8"})]})),gA=gb("FirstJobMark",(0,ey.jsxs)(ey.Fragment,{children:[(0,ey.jsx)("path",{d:"M3 18.6h18"}),(0,ey.jsx)("path",{d:"M6.6 18.6a5.4 5.4 0 0 1 10.8 0"}),(0,ey.jsx)("path",{d:"M12 12.2V9.4M7.9 14.5 5.9 12.5M16.1 14.5l2-2"})]})),gI=gb("JobSearchMark",(0,ey.jsxs)(ey.Fragment,{children:[(0,ey.jsx)("circle",{cx:"10.6",cy:"10.6",r:"6.4"}),(0,ey.jsx)("path",{d:"m15.4 15.4 5.2 5.2"}),(0,ey.jsx)("path",{d:"M10.6 7.6c.36 1.6 1 2.24 2.6 2.6-1.6.36-2.24 1-2.6 2.6-.36-1.6-1-2.24-2.6-2.6 1.6-.36 2.24-1 2.6-2.6Z",fill:"currentColor",stroke:"none"})]})),gM=gb("BusinessMark",(0,ey.jsxs)(ey.Fragment,{children:[(0,ey.jsx)("path",{d:"m3.4 17.6 5.8-5.8 3.6 3.6 7.8-7.8"}),(0,ey.jsx)("path",{d:"M15.6 7.6h5v5"}),(0,ey.jsx)("path",{d:"M3.4 20.8h17.2"})]})),gP=gb("JobOrBusinessMark",(0,ey.jsxs)(ey.Fragment,{children:[(0,ey.jsx)("path",{d:"M12 4.8v14.8"}),(0,ey.jsx)("path",{d:"M8.6 19.6h6.8"}),(0,ey.jsx)("path",{d:"M4.4 8.6h15.2"}),(0,ey.jsx)("path",{d:"M4.4 8.6v1.6M19.6 8.6v1.6"}),(0,ey.jsx)("path",{d:"M1.4 10.2a3 3 0 0 0 6 0"}),(0,ey.jsx)("path",{d:"M16.6 10.2a3 3 0 0 0 6 0"})]}));gb("LifeGuidanceMark",(0,ey.jsxs)(ey.Fragment,{children:[(0,ey.jsx)("circle",{cx:"12",cy:"12",r:"8.2"}),(0,ey.jsx)("path",{d:"M12 1.4v1.8M12 20.8v1.8M1.4 12h1.8M20.8 12h1.8"}),(0,ey.jsx)("path",{d:"M12 6.4l1.6 4 4 1.6-4 1.6-1.6 4-1.6-4-4-1.6 4-1.6Z",fill:"currentColor",stroke:"none"})]}));let gO=gb("PersonalityMark",(0,ey.jsxs)(ey.Fragment,{children:[(0,ey.jsx)("circle",{cx:"12",cy:"8.6",r:"5.2"}),(0,ey.jsx)("circle",{cx:"8.2",cy:"15",r:"5.2"}),(0,ey.jsx)("circle",{cx:"15.8",cy:"15",r:"5.2"}),(0,ey.jsx)("circle",{cx:"12",cy:"12.9",r:"1.1",fill:"currentColor",stroke:"none"})]})),gD=gb("IntelligenceMark",(0,ey.jsxs)(ey.Fragment,{children:[(0,ey.jsx)("path",{d:"M12 15.2c-2.8-1.6-3.6-3.6-2.4-5.8.7-1.3 1.5-2.4 2.4
91-3.4.9 1 1.7 2.1 2.4 3.4 1.2 2.2.4 4.2-2.4 5.8Z"}),(0,ey.jsx)("path",{d:"M4.6 16.5h14.8"}),(0,ey.jsx)("path",{d:"M5.8 16.5c.7 2.7 3.1 4.2 6.2 4.2s5.5-1.5 6.2-4.2"})]})),gR=gb("EducationMark",(0,ey.jsxs)(ey.Fragment,{children:[(0,ey.jsx)("path",{d:"M12 7.4C10 5.9 7 5.2 3.4 5.6v12.2c3.6-.4 6.6.3 8.6 1.8 2-1.5 5-2.2 8.6-1.8V5.6c-3.6-.4-6.6.3-8.6 1.8Z"}),(0,ey.jsx)("path",{d:"M12 7.4v12.2"})]})),g$=gb("ArthaMark",(0,ey.jsxs)(ey.Fragment,{children:[(0,ey.jsx)("circle",{cx:"12",cy:"8.4",r:"4.4"}),(0,ey.jsx)("path",{d:"M10.2 6.6h3.6M10.2 8.6h3.6M13 6.6c0 1.33-.9 2-2.8 2l2.8 2.6"}),(0,ey.jsx)("path",{d:"M3.4 15.4c2.6 0 4.6.9 5.8 2.6 1.2-1.7 2.1-3.4 2.8-5.2.7 1.8 1.6 3.5 2.8 5.2 1.2-1.7 3.2-2.6 5.8-2.6-.4 3.6-3.3 5.8-8.6 5.8s-8.2-2.2-8.6-5.8Z"})]})),gz=[{name:"Silver",count:7,mrp:1399,price:664,off:53,code:"PAYNOW"},{name:"Gold",count:12,mrp:2399,price:799,off:67,code:"GOLDNOW",badge:"Popular"},{name:"Diamond",count:20,mrp:3999,price:1139,off:72,code:"PAYNOW",badge:"Best Value"}],gL=[{name:"Silver",count:1,mrp:2999,price:1424,off:53,code:"PAYNOW"},{name:"Gold",count:2,mrp:5999,price:1614,off:73,code:"PAYNOW",badge:"Popular"},{name:"Diamond",count:4,mrp:11999,price:1899,off:84,code:"PAYNOW",badge:"Best Value"}],gW={kind:"artha",name:"Artha Sutram",count:1,unit:"Reports",mrp:19999,price:9499,off:53,code:"PAYNOW"},gU={kind:"pack",title:"12 Questions Pack",qty:12,price:"â¹799",mrp:"â¹2,399",perUnit:"â¹67",off:"67% off",timerSec:600,blurb:"Add your birth details once and Vaani answers from your natal placements: houses, lords and daÅÄ cited, the way this answer would have been."},gB=[{id:"demo-3",description:"Gold · Questions",at:Date.now()-3456e5,amount:799,currency:null,state:"success"},{id:"demo-2",description:"Silver · Reports",at:Date.now()-22464e5,amount:1424,currency:null,state:"success"},{id:"demo-1",description:"Silver · Questions",at:Date.now()-80352e5,amount:664,currency:null,state:"success"}],gF=[["Maharashtra","MH"],["Delhi","DL"],["Karnataka","KA"],["Tamil Nadu","TN"],["Telangana","TG"],["Uttar Pradesh","UP"],["Gujarat","GJ"],["West Bengal","WB"],["Rajasthan","RJ"],["Kerala","KL"],["Madhya Pradesh","MP"],["Punjab","PB"]],gY={mumbai:"Maharashtra",pune:"Maharashtra",nagpur:"Maharashtra",nashik:"Maharashtra",thane:"Maharashtra","navi mumbai":"Maharashtra",bombay:"Maharashtra","new delhi":"Delhi",bengaluru:"Karnataka",bangalore:"Karnataka",mysuru:"Karnataka",mysore:"Karnataka",mangaluru:"Karnataka",chennai:"Tamil Nadu",madras:"Tamil Nadu",coimbatore:"Tamil Nadu",madurai:"Tamil Nadu",hyderabad:"Telangana",warangal:"Telangana",lucknow:"Uttar Pradesh",kanpur:"Uttar Pradesh",varanasi:"Uttar Pradesh",agra:"Uttar Pradesh",noida:"Uttar Pradesh",ghaziabad:"Uttar Pradesh",prayagraj:"Uttar Pradesh",allahabad:"Uttar Pradesh",ahmedabad:"Gujarat",surat:"Gujarat",vadodara:"Gujarat",rajkot:"Gujarat",kolkata:"West Bengal",calcutta:"West Bengal",howrah:"West Bengal",siliguri:"West Bengal",jaipur:"Rajasthan",jodhpur:"Rajasthan",udaipur:"Rajasthan",kota:"Rajasthan",kochi:"Kerala",cochin:"Kerala",thiruvananthapuram:"Kerala",trivandrum:"Kerala",kozhikode:"Kerala",thrissur:"Kerala",indore:"Madhya Pradesh",bhopal:"Madhya Pradesh",jabalpur:"Madhya Pradesh",gwalior:"Madhya Pradesh",ludhiana:"Punjab",amritsar:"Punjab",jalandhar:"Punjab",chandigarh:"Punjab"},gV=[{cat:"Love and Marriage",items:[{id:"marriage",name:"Marriage",icon:gv,art:"/reports/marriage.png",tag:"Trending",blurb:"When marriage is likely, what your married life looks like, and the timing windows that matter.",seoTitle:"Marriage Report: Kundli Marriage Prediction & Timing | Melooha",meta:"Know when marriage is likely in your Kundli, what married life looks like, and the exact timing windows, read from your D1, D9 and D10 charts.",keyword:"marriage prediction report by date of birth",quick:"A Vedic marriage report reads the seventh house, its lord, Venus and the Navamsa (D9) to say when marriage is most likely and what the marriage itself will feel like. Melooha prepares it from your own birth chart, naming the Dasha and transit windows that carry the strongest marriage yoga rather than one fixed date."},{id:"love-arrange",name:"Love or Arrange",icon:gw,art:"/reports/love-arrange.png",blurb:"Whether love or an arranged match is written for you, and which path runs smoother.",seoTitle:"Love or Arranged Marriage Prediction Report | Melooha",meta:"Find out whether love or an arranged marriage is written in your chart, which path runs smoother for you, and the timing for each.",keyword:"love or arranged marriage prediction by birth chart",quick:"Whether marriage arrives through love or an arrangement is read from the fifth and seventh houses and their lords, with Venus, Mars and Rahu shading the answer. Melooha weighs both routes in your chart, says which one it supports more strongly, and gives the peri
91ods each is most likely to open."},{id:"spouse",name:"Spouse",icon:gk,art:"/reports/spouse.png",blurb:"The nature, background and direction of your future partner, read from your chart.",seoTitle:"Future Spouse Prediction Report by Birth Chart | Melooha",meta:"The nature, background, work and direction your future partner comes from, read from the seventh house and the Navamsa.",keyword:"future spouse prediction from kundli",quick:"Your chart describes a future spouse through the seventh house, its lord and the Navamsa lagna: temperament, likely background, the direction they arrive from and how you meet. Melooha reads all of it from your birth details and sets it beside the windows when the meeting is most likely."},{id:"in-laws",name:"In-Laws",icon:gj,art:"/reports/in-laws.png",tag:"Trending",blurb:"How your married family life unfolds, and how to keep it harmonious.",seoTitle:"In-Laws & Married Family Life Astrology Report | Melooha",meta:"How your married family life unfolds, where friction with in-laws is likely, and the practical remedies that keep the house harmonious.",keyword:"in-laws relationship prediction in astrology",quick:"Married family life is read from the second, fourth and tenth houses counted from the seventh, which describe the family you marry into. Melooha maps where support comes from, where friction is likely, and the periods the household is under the most pressure, with a remedy for each."},{id:"love-style",name:"Love Style",icon:gN,art:"/reports/love-style.png",blurb:"How you love, what you need in a partner, and your emotional patterns.",seoTitle:"Love Style Astrology Report: How You Love | Melooha",meta:"How you love, what you need from a partner, and the emotional patterns your chart keeps repeating, with what to do about them.",keyword:"love style and emotional patterns in astrology",quick:"How you attach, what you need to feel secure and the patterns you repeat in relationships are read from Venus, the Moon and the fifth house. Melooha names your love style from your own chart, the kind of partner it works best beside, and the habits that quietly cost you."},{id:"ideal-partner",name:"Ideal Partner",icon:g_,art:"/reports/ideal-partner.png",blurb:"The qualities and type of person your chart is most compatible with.",seoTitle:"Ideal Partner & Compatibility Report by Kundli | Melooha",meta:"The qualities, temperament and type of person your chart is most compatible with, and the traits to avoid in a match.",keyword:"ideal partner qualities from birth chart",quick:"Compatibility in Jyotish is not only Guna Milan. The seventh lord, Venus, the Navamsa and your Moon together describe the partner your chart actually settles with. Melooha names those qualities plainly, along with the traits that reliably go wrong for a chart like yours."}]},{cat:"Money",items:[{id:"billionaire",name:"Billionaire",icon:gE,art:"/reports/billionaire.png",tag:"Trending",blurb:"Whether your chart carries the yogas for extraordinary wealth, and how to activate them.",seoTitle:"Billionaire Yoga Report: Wealth Yogas in Kundli | Melooha",meta:"Whether your chart carries the rare yogas for extraordinary wealth, how strong they really are, and what activates them.",keyword:"billionaire yoga in kundli check",quick:"Extraordinary wealth in Jyotish rests on specific combinations, the Dhana yogas, a strong eleventh lord, Lakshmi and Maha yogas, and on whether any Dasha ever activates them. Melooha checks your chart for each, scores how strong it is, and names the period that would bring it to life."},{id:"wealth",name:"Wealth",icon:gS,art:"/reports/wealth.png",tag:"New",blurb:"Your wealth pillars, earning patterns and the years money flows to you.",seoTitle:"Wealth Report: Dhana Yogas, Income & Timing | Melooha",meta:"Your wealth pillars, how money is likely to reach you, and the years it flows most, read from the D1 and D2 charts.",keyword:"wealth prediction report by date of birth",quick:"Wealth is read from the second and eleventh houses, their lords, and the Hora (D2) chart that splits your money between self-made and inherited channels. Melooha maps your earning pattern, the pillars holding it up, and the dated windows when income rises."}]},{cat:"Work",items:[{id:"career",name:"Career",icon:gC,art:"/reports/career.png",tag:"Trending",blurb:"Your ideal career direction, growth windows and the work that suits your chart.",seoTitle:"Career Report: Best Career by Date of Birth | Melooha",meta:"Your ideal career direction, growth windows and the work your chart is built for, read from the D1, D9 and D10.",keyword:"career prediction report by date of birth",quick:"Career in Jyotish is read from the tenth house, its lord, the Dasamsa (D10) and the strongest planet in your chart. Melooha names the fields your chart supports, the ones it resists, and the Dasha periods when a move or a promotion is best attempted."},{id:"govt-job",name:"Govt Job",icon:gT,art:"/reports/govt-job.png",blurb:"Whether a government job is favoured for you, and the timing to pursue it.",seoTitle:"Government Job Prediction Report in Astrology | Melooha",meta:"Whether a government job is favoured in your chart, how strong the yoga is, and the timing to pursue it.",keyword:"government job yoga in kundli",quick:"A government job is indicated by the Sun, the tenth house and the sixth lord, and is confirmed when the Dasamsa agrees. Melooha checks whether the combination is present in your chart, how it weighs against private-sector indications, and the peri
91ods when selection is most likely."},{id:"first-job",name:"First Job",icon:gA,art:"/reports/first-job.png",blurb:"The right start to your career and what to look for in your first role.",seoTitle:"First Job Astrology Report: Career Start & Timing | Melooha",meta:"When your working life is likely to begin, what to look for in a first role, and the start that suits your chart.",keyword:"first job timing prediction astrology",quick:"The start of a career is timed by the Dasha running as education ends, read against the tenth house and its lord. Melooha names the window your first job is most likely to land in, and the kind of role your chart begins best with."},{id:"job-search",name:"Job Search",icon:gI,art:"/reports/job-search.png",tag:"Trending",blurb:"Timing and direction for landing your next role.",seoTitle:"Job Search Report: When Will I Get a Job | Melooha",meta:"Timing and direction for landing your next role, with the Dasha periods and transits that actually open doors.",keyword:"when will i get a job astrology prediction",quick:"Whether a job comes quickly is a timing question: the running Dasha, Jupiter and Saturn moving over the tenth and eleventh houses, and the strength of the sixth lord. Melooha gives you the dated windows worth applying in and the direction to aim at."},{id:"business",name:"Business",icon:gM,art:"/reports/business.png",blurb:"Whether business suits you, which kind, and when to start.",seoTitle:"Business Astrology Report: Yoga, Type & Timing | Melooha",meta:"Whether business suits your chart, which kind, and when to start, read from the seventh, tenth and eleventh houses.",keyword:"business yoga in kundli and best business",quick:"Business is read from the seventh and tenth houses, from Mercury, and from the eleventh lord that turns effort into gain. Melooha says whether your chart supports running your own venture, the kind of trade it favours, and the periods to launch or expand in."},{id:"job-or-business",name:"Job or Business",icon:gP,art:"/reports/job-or-business.png",blurb:"The clearer path for you between a steady job and running your own venture.",seoTitle:"Job or Business? Career Path Report by Kundli | Melooha",meta:"The clearer path for you between a steady job and your own venture, settled from your chart rather than from temperament.",keyword:"job or business which is better astrology",quick:"Job and business are read from different parts of the chart: the tenth lord and the Sun for service, the seventh and eleventh for enterprise. Melooha weighs the two against each other in your chart and names which is stronger, by how much, and when the weaker one becomes viable."}]},{cat:"Self and Growth",items:[{id:"personality",name:"Personality",icon:gO,art:"/reports/personality.png",blurb:"Who you are at the core, your strengths, and your blind spots.",seoTitle:"Personality Report: Who You Are in Your Kundli | Melooha",meta:"Your core nature, strengths and blind spots, read from the Lagna, the Moon and the planets that shape them.",keyword:"personality analysis by date of birth",quick:"Personality in Jyotish is a three-way reading: the Lagna for how you meet the world, the Moon for how you feel, and the Sun for what you are at the core. Melooha reads all three from your chart and names the strengths you can lean on and the blind spots that repeat."},{id:"intelligence",name:"Intelligence",icon:gD,art:"/reports/intelligence.png",blurb:"How your mind works, how you learn, and where your genius lies.",seoTitle:"Intelligence Report: How Your Mind Works | Melooha",meta:"How your mind works, how you learn best, and where your genius lies, read from Mercury, Jupiter and the fifth house.",keyword:"intelligence and learning style in astrology",quick:"The fifth house, Mercury and Jupiter describe intelligence in Jyotish: how quickly you take things in, how deeply you hold them, and the subjects your mind opens to. Melooha reads them from your chart and names the way you learn best."},{id:"education",name:"Education",icon:gR,art:"/reports/education.png",tag:"Trending",blurb:"Your best fields of study and the timing for academic success.",seoTitle:"Education Report: Best Field of Study & Timing | Melooha",meta:"Your strongest fields of study, the streams your chart supports, and the timing for academic success.",keyword:"education astrology prediction best stream",quick:"Education is read from the fourth house for schooling, the fifth for aptitude and the ninth for higher study, with Mercury and Jupiter as the signifiers. Melooha names the streams your chart supports, the ones it does not, and the peri
91ods that carry academic success."}]}],gq=[{q:"How is this different from a generic astrology report?",a:"This is read from your own birth chart across the D1, D9 and D10, section by section. It is personal, not a template, and it does not stop at prediction, it gives you timing and remedies."},{q:"What if I do not know my exact birth time?",a:"You can still proceed. The reading stays accurate on the broad themes, and you can add a precise time later from your profile to sharpen the timing windows."},{q:"How accurate is it?",a:"It is built on classical Bhrigu and Parashari methods with modern Swiss Ephemeris calculations, then written in plain language. Thousands of readers report the patterns matching their real lives."},{q:"Does it end at the report?",a:"No. After your report you can keep asking Vaani about it, so it becomes an ongoing conversation about your chart rather than a static PDF."}],gH=[{q:"What is Artha Sutram?",a:"In Vedic tradition, Artha is one of the four Purusharthas, the four goals of a complete human life. It means prosperity, livelihood, and material wellbeing. Not just money, but the full architecture of a meaningful working life. Sutram means thread. In Sanskrit, a Sutra is a condensed thread of wisdom that ties complex knowledge into something you can hold and actually use. The Yoga Sutras of Patanjali. The Brahma Sutras. A Sutram is not a summary. It is a precise guide. Artha Sutram is exactly that. A precise thread of wealth wisdom pulled from your Vedic birth chart. It has 23 sections. Each one looks at a different part of your financial life. Your active wealth yogas and when each one peaks. Your strongest planets for money, the income paths that suit your chart. The pattern that keeps your savings from growing. Your complete Dasha timeline with what each period is asking you to do. Gemstones and mantras prescribed for your specific chart. And a personal letter from Vaani at the end. Everything in it is specific to you. Nothing applies to anyone else."},{q:"How is this different from a regular astrology reading?",a:"Artha Sutram translates your Vedic birth chart into decisions you can actually make. It tells you which income paths your chart supports, based on the strength of your specific houses and planetary positions. It shows you who belongs close to you professionally and who does not. It maps your Mahadasha and Antardasha timeline so you know which years to push hard and which years to protect what you have built. The section called What Works Against You is where most people say it gets real. It finds the one pattern in your chart that quietly resets your savings. It shows you exactly what that looks like in your day to day financial decisions. And it gives you one fix you can put in place right now to multiply your current income. Every section is built to answer one question: given your chart, what do you actually do?"},{q:"I have consulted astrologers before. Will this tell me something new?",a:"What most astrologers tell you is what is in your chart. Artha Sutram tells you what to do with it. You may already know you have a strong Jupiter or a Dhan Yoga. What you probably have not been told is which income path that Jupiter actually supports for your specific chart, which Antardasha window activates that Dhan Yoga, and what pattern in your chart is quietly working against it. That gap between knowing your chart and knowing what to do with it is exactly what Artha Sutram is built to close."},{q:"Do I need to believe in astrology?",a:"The chart either describes your life or it does not. You will know within the first few sections. Artha Sutram does not ask you to accept anything upfront. It shows you patterns drawn from your specific planetary positions. Read it. If what it says about your earning patterns, your professional relationships, and your wealth blocks feels true, the rest of the report will land accordingly. If it does not, nothing is lost. Most people find they do not have a belief problem by the time they finish."},{q:"23 sections sounds like a lot. How should I read it?",a:"Slowly. With intention. Maybe with a cup of chai. Artha Sutram is not just about money. Because Artha never was. It covers the meaning behind your work, the people who belong in your professional life, the patterns shaping your decisions, and the timing the universe has
91written into your chart. That takes time. Each section builds on the one before it. Some of it you will absorb immediately. Some of it you will come back to a week later and see differently. That is the point. A Sutram is a thread you carry with you, not something you consume once. Read it at your own pace. Return to it. The report lives in your Melooha account whenever you need it."},{q:"I do not know my exact birth time. Can I still get it?",a:"Yes. If you do not know your birth time, we use 12:00 PM as the default. This is standard practice in Vedic astrology. The Sun is at its highest point at noon, which gives a balanced and accurate map of your planetary positions for that day. Your major planet placements, zodiac signs, and most wealth-related sections will still be accurate. The sections that depend on the exact Ascendant and precise house cusps may have some variation, since houses shift roughly one degree every four minutes. The report can still be deeply meaningful even without an exact birth time. Many of our users have gotten it this way."},{q:"Is this prepared by AI or a human astrologer?",a:"Both. The chart calculations and section generation are done by Vaani, our AI system built on classical Vedic principles and validated by Dr. Vineeta Chandrashekhar Phatak, Meloohaâs Chief Astrologer. Every rule, every yoga detection, every interpretation framework has been reviewed and approved by her before it goes into any report. The output is AI-generated. The knowledge behind it is human and classical."},{q:"Does it end at the report?",a:"No. After Artha Sutram you can keep asking Vaani about your money decisions, so it stays a living guide rather than a one-time PDF."},{q:"Is my data safe?",a:"Your birth details are used only to compute your chart and generate your report. We do not share your information with anyone outside Melooha."},{q:"Something does not feel right. How do I reach you?",a:"Write to us at [email protected] or WhatsApp us at +91 94038 90249. We read every message. If something in the report did not resonate, we want to know. If it did, we want to hear that too. We are building more Sutrams and every piece of feedback shapes what comes next."}],gZ=gV.flatMap(t=>t.items),gK=t=>gZ.find(r=>r.id===t),gG=t=>`/reports/${t}`;function gJ(t){if("artha"===t)return gW.name;for(let r of gV){let a=r.items.find(r=>r.id===t);if(a)return a.name}return"report"}function gX(t){if("artha"===t)return"Wealth blueprint";let r=gV.find(r=>r.items.some(r=>r.id===t));return r?r.cat:"Vedic reading"}let gQ=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function g0(t){if(!t)return"";let r=/^(\d{4})-(\d{2})-(\d{2})/.exec(t);if(!r)return t;let a=gQ[Number(r[2])-1];return a?`${Number(r[3])} ${a} ${r[1]}`:t}function g1(t){let r=t.trim();if(!r)return null;if(/^\d{4}-\d{2}-\d{2}$/.test(r))return r;let a=/^(\d{1,2})\s+([A-Za-z]{3,})\s+(\d{4})$/.exec(r);if(a){let t=gQ.findIndex(t=>t.toLowerCase()===a[2].slice(0,3).toLowerCase());if(t>=0)return`${a[3]}-${String(t+1).padStart(2,"0")}-${a[1].padStart(2,"0")}`}return null}function g2(t){let r=t.trim();if(!r||/not known/i.test(r))return null;let a=/^(\d{1,2}):(\d{2})/.exec(r);return a?`${a[1].padStart(2,"0")}:${a[2]}`:null}function g5(t){return!!t?.born.date}function g4(t,r){let a,n=[t.firstName,t.lastName].filter(Boolean).join(" ").trim()||"Friend";return{...t.id?{id:t.id}:{},...t.groupId?{groupId:t.groupId}:{},name:n,gender:((a=t.gender)?a[0].toUpperCase()+a.slice(1).toLowerCase():a)||"Other",language:"English",phone:[t.countryCode,t.mobile].filter(Boolean).join(" "),...t.countryCode?{countryCode:t.countryCode}:{},dob:g0(t.born.date),tob:t.born.time??"Not known",pob:t.born.place??"",plan:r?.planName??"Free"}}function g3(t,r){let[a="",...n]=t.name.trim().split(/\s+/),i=g1(t.dob),o=r?.label??t.pob.trim();return{firstName:a,lastName:n.join(" "),gender:t.gender.toUpperCase(),isOnboarded:!0,born:{...i?{date:i}:{},time:g2(t.tob),...o?{place:o}:{},...r?.lat!=null?{lat:r.lat}:{},...r?.long!=null?{long:r.long}:{}}}}function g6(t){return{planId:t.planId,name:t.name,count:t.count,mrp:t.mrp,price:t.price,...t.currency?{currency:t.currency}:{},off:t.off,code:t.code??"",...t.badge?{badge:t.badge}:{}}}let g8=t=>t.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-|-$/g,""),g9=new Map(gZ.flatMap(t=>[[g8(t.name),t.id],[t.id,t.id]])),g7={"artha-sutram":"artha",artha:"artha","billionaire-potential":"billionaire"};function ye(t){let r=g8(t),a=g9.get(r)??g7[r];return a||(/(^|-)artha(-|$)/.test(r)?"artha":r)}function yt(t){let r=new Map;return t.forEach((t,a)=>{let n=t.uuid??`q${t.answerId??a}`,i=r.get(n);i?i.push(t):r.set(n,[t])}),[...r.entries()].map(([t,r])=>{let a=[...r].sort((t,r)=>(t.askedAt??0)-(r.askedAt??0)),n=a[0],i=a[a.length-1].askedAt??0;return{newest:i,thread:{id:`h:${t}`,title:n.question,messages:a.flatMap((t,r)=>(function(t,r){let{answer:a,astroReference:n,offer:i}=(0,gy.project)(t.content),o=`h:${t.answerId??`i${r}`}`;return[{role:"user",kind:"chart",text:t.question,id:`${o}:q`},{role:"vaani",kind:"chart",id:`${o}:a`,stream:{...(0,gy.emptyStream)(),status:"done",answerId:t.answerId,content:t.content,answer:a,astroReference:n,offer:i,isComplete:!0,isError:t.answerId===gy.ERROR_ANSWER_ID,acknowledged:!0,feedback:t.verdict}}]})(t,r)),mode:"chart",kind:"chart",uuid:n.uuid,...i?{at:i}:{}}}}).sort((t,r)=>
91r.newest-t.newest).map(t=>t.thread)}function yr(t){let r=new Map;for(let a of t){let t=a.threadId??`e${a.id}`,n=r.get(t);n?n.push(a):r.set(t,[a])}return[...r.entries()].map(([t,r])=>{let a=[...r].sort((t,r)=>(t.turnIndex??0)-(r.turnIndex??0)),n=a.flatMap(ya);if(!n.length)return null;let i=a[0],o=Math.max(...a.map(t=>t.askedAt??0));return{newest:o,thread:{id:`p:${t}`,title:i.question,messages:n,mode:"astropedia",kind:"pedia",uuid:null,...r[0].threadId?{analyticsId:r[0].threadId}:{},...o?{at:o}:{}}}}).filter(t=>null!==t).sort((t,r)=>r.newest-t.newest).map(t=>t.thread)}function ya(t){let r=function(t){let r;try{r=JSON.parse(t)}catch{return null}let a=gx(r);return a.lead||a.sections.length?a:null}(t.answer);if(!r)return[];let a=`p:${t.id}`;return[{role:"user",kind:"pedia",text:t.question,id:`${a}:q`},{role:"vaani",kind:"pedia",id:`${a}:a`,structured:r}]}let yn=(0,eO.default)("calendar-days",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 18h.01",key:"lrp35t"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M16 18h.01",key:"kzsmim"}]]),yi=t=>`${t.getFullYear()}-${String(t.getMonth()+1).padStart(2,"0")}-${String(t.getDate()).padStart(2,"0")}`;function yo({value:t,onChange:r,placeholder:a="Pick a date",className:n="",disabled:i=!1,ariaLabel:o="Date",fromYear:s=1900,toYear:l=new Date().getFullYear()+10}){let[d,c]=(0,ek.useState)(!1),u=function(t){let r=/^(\d{4})-(\d{2})-(\d{2})$/.exec(t.trim());if(!r)return;let a=new Date(Number(r[1]),Number(r[2])-1,Number(r[3]));return Number.isNaN(a.getTime())?void 0:a}(t);return(0,ey.jsxs)(ir,{open:d,onOpenChange:c,children:[(0,ey.jsx)(ia,{asChild:!0,children:(0,ey.jsxs)("button",{type:"button",disabled:i,"aria-label":o,className:`flex cursor-pointer items-center justify-between gap-3 text-left disabled:cursor-not-allowed ${n}`,children:[(0,ey.jsx)("span",{className:`min-w-0 truncate ${u?"":"text-mlh-faint"}`,children:u?g0(yi(u)):a}),(0,ey.jsx)(yn,{size:16,"aria-hidden":!0,className:"text-mlh-faint flex-none"})]})}),(0,ey.jsx)(ii,{className:"w-auto p-2.5",children:(0,ey.jsx)(nT,{mode:"single",autoFocus:!0,captionLayout:"dropdown",selected:u,defaultMonth:u,startMonth:new Date(s,0),endMonth:new Date(l,11),onSelect:t=>{t&&(r(yi(t)),c(!1))}})})]})}let ys="w-full rounded-xl border border-mlh-border bg-mlh-bg px-[15px] py-[13px] text-[15px] text-mlh-text outline-none transition placeholder:text-mlh-faint hover:border-mlh-border-hi focus:border-mlh-plum-400 focus:ring-4 focus:ring-mlh-plum/25 [color-scheme:dark]";function yl({label:t,children:r}){return(0,ey.jsxs)("div",{className:"space-y-1.5",children:[(0,ey.jsx)("label",{className:"text-mlh-faint block font-mono text-[9px] tracking-[0.2em] uppercase",children:t}),r]})}function yd({options:t,value:r,onChange:a}){return(0,ey.jsx)("div",{className:"flex flex-wrap gap-2",children:t.map(t=>(0,ey.jsx)("button",{type:"button",onClick:()=>a(t),className:`cursor-pointer rounded-xl border px-3.5 py-2 text-[13px] font-semibold transition ${r===t?"bg-mlh-plum/20 text-mlh-plum-300 border-mlh-plum":"bg-mlh-bg text-mlh-text border-mlh-border hover:border-mlh-border-hi"}`,children:t},t))})}let yc=(0,eO.default)("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]),yu=(0,eO.default)("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]),yh=(0,eO.default)("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);var yp=t.i(44208),yp=yp,ym=t.i(99060);let yf={error:{icon:yc,hue:"var(--mlh-danger)",label:"Error"},warning:{icon:yp.default,hue:"var(--mlh-amber)",label:"Warning"},info:{icon:yh,hue:"var(--mlh-info)",label:"Note"},success:{icon:yu,hue:"var(--mlh-success)",label:"Done"}},yx=(t,r="transparent")=>`color-mix(in srgb, var(--mlh-notice-hue) ${t}%, ${r})`;function yg({notice:t,onDismiss:r}){let{icon:a,hue:n,label:i}=yf[t.tone],[o,s]=(0,ek.useState)(!1),[l,d]=(0,ek.useState)(!1),c=(0,ek.useRef)(0),u=(0,ek.useRef)(0);return(0,ek.useEffect)(()=>
91{if(0===t.ttl||o)return;if(l){u.current&&(c.current+=Date.now()-u.current),u.current=0;return}u.current=Date.now();let r=setTimeout(()=>s(!0),Math.max(0,t.ttl-c.current));return()=>clearTimeout(r)},[l,o,t.ttl]),(0,ek.useEffect)(()=>{if(!o)return;let a=setTimeout(()=>r(t.id),180);return()=>clearTimeout(a)},[o,t.id,r]),(0,ey.jsxs)("div",{role:"error"===t.tone?"alert":"status","data-tone":t.tone,onMouseEnter:()=>d(!0),onMouseLeave:()=>d(!1),onFocusCapture:()=>d(!0),onBlurCapture:()=>d(!1),style:{"--mlh-notice-hue":n,borderColor:yx(32,"var(--mlh-border)")},className:`pointer-events-auto relative w-full overflow-hidden rounded-2xl border bg-[color-mix(in_srgb,var(--mlh-surface)_94%,transparent)] shadow-[0_20px_48px_rgba(0,0,0,0.55),inset_0_1px_0_rgba(255,255,255,0.045)] backdrop-blur-xl sm:w-[352px] ${o?"animate-mlh-notice-out":"animate-mlh-notice-in"}`,children:[(0,ey.jsx)("span",{"aria-hidden":!0,className:"absolute inset-y-0 left-0 w-[3px]",style:{background:`linear-gradient(180deg, var(--mlh-notice-hue), ${yx(35)})`}}),(0,ey.jsxs)("div",{className:"flex items-start gap-3 py-3.5 pr-2.5 pl-4",children:[(0,ey.jsx)("span",{"aria-hidden":!0,className:"mt-px grid size-[26px] shrink-0 place-items-center rounded-full",style:{color:"var(--mlh-notice-hue)",background:yx(14),boxShadow:`inset 0 0 0 1px ${yx(28)}`},children:(0,ey.jsx)(a,{size:14})}),(0,ey.jsxs)("div",{className:"min-w-0 flex-1 pt-[3px]",children:[(0,ey.jsx)("p",{className:"font-mono text-[9.5px] font-medium tracking-[0.16em] uppercase",style:{color:yx(82,"white")},children:i}),(0,ey.jsx)("p",{className:"text-mlh-text mt-1 font-sans text-[13.5px] leading-[1.35]",children:t.text}),t.hint&&(0,ey.jsx)("p",{className:"text-mlh-muted mt-1 font-sans text-[12px] leading-[1.4]",children:t.hint})]}),(0,ey.jsx)("button",{type:"button",onClick:()=>s(!0),"aria-label":"Dismiss",className:"text-mlh-faint hover:text-mlh-text focus-visible:ring-mlh-border-hi -mt-0.5 shrink-0 rounded-lg p-1.5 transition-colors focus-visible:ring-2 focus-visible:outline-none",children:(0,ey.jsx)(ym.X,{size:14})})]}),t.ttl>0&&(0,ey.jsx)("span",{"aria-hidden":!0,className:"absolute inset-x-0 bottom-0 h-px origin-left",style:{background:`linear-gradient(90deg, ${yx(70)}, ${yx(22)})`,animation:`mlh-notice-life ${t.ttl}ms linear both`,animationPlayState:l||o?"paused":"running"}})]})}function yy({notices:t,onDismiss:r}){return(0,ey.jsx)("div",{"aria-live":"polite",className:"pointer-events-none fixed inset-x-3 bottom-3 z-[70] flex flex-col-reverse items-end gap-2 sm:inset-x-auto sm:right-4 sm:bottom-4",children:t.map(t=>(0,ey.jsx)(yg,{notice:t,onDismiss:r},t.id))})}function yb({notice:t}){let{icon:r,hue:a}=yf[t.tone];return(0,ey.jsxs)("div",{role:"error"===t.tone?"alert":"status","data-tone":t.tone,style:{"--mlh-notice-hue":a,borderColor:yx(35),background:yx(10)},className:"animate-mlh-rise flex items-start gap-2 rounded-xl border px-3 py-2.5",children:[(0,ey.jsx)(r,{size:14,className:"mt-px shrink-0",style:{color:"var(--mlh-notice-hue)"}}),(0,ey.jsxs)("div",{className:"min-w-0",children:[(0,ey.jsx)("p",{className:"text-[12px] leading-snug",style:{color:yx(86,"white")},children:t.text}),t.hint&&(0,ey.jsx)("p",{className:"text-mlh-muted mt-0.5 text-[11.5px] leading-snug",children:t.hint})]})]})}var yv=t.i(36278),yw=t.i(6217),yk=t.i(26138);function yj({value:t,onChange:r,onEnter:a,autoFocus:n,className:i=""}){let[o,s]=(0,ek.useState)(!1),[l,d]=(0,ek.useState)(""),[c,u]=(0,ek.useState)(!1),[h,p]=(0,ek.useState)(0),m=(0,ek.useRef)(null),f=(0,ek.useRef)(null),x=(0,ek.useRef)(null),g=(0,ek.useRef)(null),y=(0,ek.useRef)(null),b=(0,ek.useRef)(null),[v,w]=(0,ek.useState)(null),k=(0,yv.countryOf)(t.country),j=(0,yv.formatNational)(t),N=(0,yv.isTooLong)({...t,national:`${t.national}0`})||c?(0,yv.phoneProblem)(t):null,_=(0,ek.useMemo)(()=>{let t=l.trim().toLowerCase();if(!t)return yv.COUNTRIES;let r=t.replace(/^\+/,"");return yv.COUNTRIES.filter(a=>a.name.toLowerCase().includes(t)||a.code.toLowerCase()===t||r&&a.dial.slice(1).startsWith(r))},[l]);(0,ek.useEffect)(()=>{if(!o)return;let t=t=>{let r=t.target;m.current?.contains(r)||x.current?.contains(r)||s(!1)};return document.addEventListener("mousedown",t),()=>document.removeEventListener("mousedown",t)},[o]);let E=(0,ek.useCallback)(()=>{let t=f.current?.getBoundingClientRect();if(!t)return;let r=window.innerHeight-t.bottom-8,a=t.top-8,n=r<220&&a>r;w({position:"fixed",left:t.left,width:t.width,maxHeight:Math.min(296,n?a:r),...n?{bottom:window.innerHeight-t.top+8}:{top:t.bottom+8}})},[]);(0,ek.useEffect)(()=>
91{if(o)return window.addEventListener("scroll",E,!0),window.addEventListener("resize",E),()=>{window.removeEventListener("scroll",E,!0),window.removeEventListener("resize",E)}},[o,E]);let S=()=>{E(),d(""),p(Math.max(0,yv.COUNTRIES.indexOf(k))),s(!0)};(0,ek.useEffect)(()=>{o&&b.current?.scrollIntoView({block:"nearest"})},[o,h,l]);let C=a=>{s(!1),d("");let n=t.national;for(;n&&(0,yv.isTooLong)({country:a.code,national:n});)n=n.slice(0,-1);r({country:a.code,national:n}),y.current?.focus()};return(0,ey.jsxs)("div",{ref:m,className:`relative ${i}`,children:[(0,ey.jsxs)("div",{ref:f,className:"border-mlh-border bg-mlh-bg focus-within:border-mlh-plum-400 focus-within:ring-mlh-plum/20 flex items-stretch rounded-xl border transition focus-within:ring-4",children:[(0,ey.jsxs)("button",{ref:g,type:"button",onClick:()=>o?s(!1):S(),onKeyDown:t=>{o||"ArrowDown"!==t.key&&"Enter"!==t.key||(t.preventDefault(),S())},"aria-haspopup":"listbox","aria-expanded":o,"aria-label":`Country code: ${k.name} ${k.dial}`,className:"border-mlh-border text-mlh-plum-300 hover:text-mlh-plum-100 flex flex-none cursor-pointer items-center gap-2 border-r pr-3 pl-[15px] font-mono text-[17px] transition outline-none",children:[(0,ey.jsx)("span",{"aria-hidden":!0,className:"text-[19px] leading-none",children:k.flag}),k.dial,(0,ey.jsx)(tt.ChevronDown,{size:13,"aria-hidden":!0,className:`text-mlh-faint transition-transform duration-200 ${o?"rotate-180":""}`})]}),(0,ey.jsx)("input",{ref:y,value:j,onChange:a=>{var n;let i;(i=(n=a.target.value).replace(/\D/g,""))===t.national&&n.length<j.length?r({...t,national:t.national.slice(0,-1)}):!(i.length>t.national.length&&(0,yv.isTooLong)({...t,national:i}))&&r({...t,national:i})},onKeyDown:t=>{"Enter"===t.key&&a?.()},onBlur:()=>u(!0),placeholder:(0,yv.placeholderFor)(t.country),inputMode:"tel",autoComplete:"tel-national",autoFocus:n,"aria-label":"Mobile number","aria-invalid":!!N||void 0,"aria-describedby":N?"mlh-phone-problem":void 0,className:"text-mlh-text placeholder:text-mlh-faint/70 caret-mlh-plum-300 min-w-0 flex-1 bg-transparent px-4 py-[15p
91x] font-mono text-[17px] tracking-[0.06em] outline-none"})]}),N&&(0,ey.jsx)("p",{id:"mlh-phone-problem",role:"status",className:"animate-mlh-rise text-mlh-danger mt-2 pl-1 text-[12.5px]",children:N}),o&&v&&(0,tP.createPortal)((0,ey.jsxs)("div",{ref:x,onKeyDown:t=>{if("Escape"===t.key){t.preventDefault(),s(!1),d(""),g.current?.focus();return}if("ArrowDown"===t.key||"ArrowUp"===t.key){if(t.preventDefault(),!_.length)return;let r="ArrowDown"===t.key?1:-1;p(t=>(t+r+_.length)%_.length);return}if("Enter"===t.key){t.preventDefault();let r=_[h];r&&C(r)}},style:v,className:"animate-mlh-rise border-mlh-plum/30 bg-mlh-surface-hi z-[60] flex flex-col overflow-hidden rounded-xl border shadow-[0_24px_60px_rgba(0,0,0,0.72)]",children:[(0,ey.jsxs)("div",{className:"border-mlh-border flex flex-none items-center gap-2 border-b px-3",children:[(0,ey.jsx)(yk.Search,{size:14,"aria-hidden":!0,className:"text-mlh-faint flex-none"}),(0,ey.jsx)("input",{value:l,onChange:t=>{d(t.target.value),p(0)},placeholder:"Search country or code",autoFocus:!0,"aria-label":"Search countries",className:"text-mlh-text placeholder:text-mlh-faint min-w-0 flex-1 bg-transparent py-2.5 text-[14px] outline-none"})]}),0===_.length?(0,ey.jsx)("p",{className:"text-mlh-faint px-3.5 py-3 text-[13.5px]",children:"No country matches that."}):(0,ey.jsx)("ul",{role:"listbox","aria-label":"Country code",tabIndex:-1,className:"min-h-0 flex-1 overflow-y-auto p-1",children:_.map((r,a)=>{let n=r.code===t.country;return(0,ey.jsx)("li",{role:"option","aria-selected":n,ref:a===h?b:void 0,children:(0,ey.jsxs)("button",{type:"button",tabIndex:-1,onMouseEnter:()=>p(a),onClick:()=>C(r),className:`flex w-full cursor-pointer items-center gap-3 rounded-lg px-3 py-2 text-left text-[14px] transition ${a===h?"bg-mlh-plum/20 text-white":"text-mlh-muted"}`,children:[(0,ey.jsx)("span",{"aria-hidden":!0,className:"text-[17px] leading-none",children:r.flag}),(0,ey.jsx)("span",{className:"min-w-0 flex-1 truncate",children:r.name}),(0,ey.jsx)("span",{className:"text-mlh-faint flex-none font-mono text-[12px]",children:r.dial}),(0,ey.jsx)(yw.Check,{size:13,"aria-hidden":!0,className:`text-mlh-plum-300 flex-none ${n?"":"opacity-0"}`})]})},r.code)})})]}),document.body)]})}let yN=(0,eO.default)("map-pin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]),y_=new Map;function yE({value:t,onChange:r,onSelect:a,live:n,className:i,placeholder:o="City, State, Country",withIcon:s=!0,menuClassName:l="bg-mlh-surface border-mlh-border mt-1 rounded-xl border py-1 shadow-[0_18px_40px_rgba(0,0,0,0.5)]",optionClassName:d="text-mlh-text hover:bg-mlh-surface-hi block w-full px-3.5 py-2 text-left text-[13.5px]"}){let[c,u]=(0,ek.useState)(!1),[h,p]=(0,ek.useState)(null),[m,f]=(0,ek.useState)(!0),x=t.trim(),g=x.toLowerCase(),y=n&&c&&x.length>=3,b=y?y_.get(g)??[]:[],v=y&&h===g;return(0,ek.useEffect)(()=>{if(!y||y_.has(g))return;let t=new AbortController,r=setTimeout(()=>{p(g),(0,is.searchPlaces)(x,t.signal).then(t=>{y_.set(g,t.slice(0,6))}).catch(()=>{}).finally(()=>{t.signal.aborted||p(null)})},140);return()=>{clearTimeout(r),t.abort()}},[x,g,y]),(0,ey.jsxs)("div",{className:"relative",children:[s&&(0,ey.jsx)(yN,{size:16,className:"text-mlh-faint absolute top-1/2 left-3 -translate-y-1/2"}),(0,ey.jsx)("input",{value:t,onChange:t=>{u(!0),f(!1),r(t.target.value),a(null)},onFocus:()=>f(!1),onBlur:()=>setTimeout(()=>f(!0),120),placeholder:o,autoComplete:"off",className:[i,s?"!pl-[38px]":""].join(" ")}),v&&(0,ey.jsx)(e8.Loader2,{size:15,"aria-hidden":!0,className:"text-mlh-faint absolute top-1/2 right-3 -translate-y-1/2 animate-spin"}),!m&&b.length>0&&(0,ey.jsx)("ul",{className:`absolute top-full right-0 left-0 z-10 max-h-56 overflow-y-auto ${l}`,children:b.map(t=>(0,ey.jsx)("li",{children:(0,ey.jsx)("button",{type:"button",onMouseDown:n=>{n.preventDefault(),u(!1),f(!0),r(t.label),a(t)},className:d,children:t.label})},`${t.label}-${t.lat??""}`))})]})}var yS=t.i(41477);let yC=(0,eO.default)("clock-3",[["path",{d:"M12 6v6h4",key:"135r8i"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]),yT=Array.from({length:12},(t,r)=>String(r+1).padStart(2,"0")),yA=Array.from({length:60},(t,r)=>String(r).padStart(2,"0")),yI=["AM","PM"],yM={hour:"09",minute:"00",meridiem:"AM"};function yP({options:t,value:r,onSelect:a,ariaLabel:n}){let i=(0,ek.useRef)(null),o=(0,ek.useRef)(null);return(0,ek.useEffect)(()=>{let t=i.current,r=o.current;t&&r&&(t.scrollTop=r.offsetTop-t.clientHeight/2+r.clientHeight/2)},[]),(0,ey.jsx)("div",{ref:i,role:"listbox","aria-label":n,className:"mlh-thin-scroll border-mlh-plum-400/12 relative h-[188px] flex-1 overflow-y-auto border-r px-1 last:border-r-0",children:t.map(t=>{let n=t===r;return(0,ey.jsx)("button",{ref:n?o:void 0,type:"button",role:"option","aria-selected":n,onClick:()=>a(t),className:`mb-0.5 block w-full cursor-pointer rounded-lg py-1.5 text-center font-mono text-[14px] transition ${n?"bg-mlh-plum text-white shadow-[inset_0_1px_0_rgba(255,255,255,0.18)]":"text-mlh-muted hover:bg-mlh-plum/22 hover:text-white"}`,children:t},t)})})}function yO({value:t,onChange:r,placeholder:a="Pick a time",className:n="",disabled:i=!1,ariaLabel:o="Time"}){let[s,l]=(0,ek.useState)(!1),d=function(t){let r=/^(\d{1,2}):(\d{2})$/.exec(t.trim());if(!r)return null;let a=Number(r[1]);return a>23||Number(r[2])>59?null:{hour:String(a%12||12).padStart(2,"0"),minute:r[2],meridiem:a<12?"AM":"PM"}}(t),c=t=>r(function({hour:t,minute:r,meridiem:a}){let n=Number(t)%12;return`${String("PM"===a?n+12:n).padStart(2,"0")}:${r}`}({...d??yM,...t}));return(0,ey.jsxs)(ir,{open:s,onOpenChange:l,children:[(0,ey.jsx)(ia,{asChild:!0,children:(0,ey.jsxs)("button",{type:"button",disabled:i,"aria-label":o,className:`flex cursor-pointer items-center justify-between gap-3 text-left disabled:cursor-not-allowed ${n}`,children:[(0,ey.jsx)("span",{className:`min-w-0 truncate ${d?"":"text-mlh-faint"}`,children:d?`${d.hour}:${d.minute} ${d.meridiem}`:a}
91),(0,ey.jsx)(yC,{size:16,"aria-hidden":!0,className:"text-mlh-faint flex-none"})]})}),(0,ey.jsxs)(ii,{className:"w-[230px] p-0",children:[(0,ey.jsxs)("div",{className:"border-mlh-plum-400/15 flex items-center justify-between border-b px-3 py-2",children:[(0,ey.jsx)("span",{className:"text-mlh-faint font-mono text-[9px] tracking-[0.2em] uppercase",children:"Time of day"}),(0,ey.jsx)("span",{className:"text-mlh-plum-300 font-mono text-[12px]",children:d?`${d.hour}:${d.minute} ${d.meridiem}`:"--:--"})]}),(0,ey.jsxs)("div",{className:"flex py-1.5",children:[(0,ey.jsx)(yP,{ariaLabel:"Hour",options:yT,value:d?.hour??null,onSelect:t=>c({hour:t})}),(0,ey.jsx)(yP,{ariaLabel:"Minute",options:yA,value:d?.minute??null,onSelect:t=>c({minute:t})}),(0,ey.jsx)(yP,{ariaLabel:"AM or PM",options:yI,value:d?.meridiem??null,onSelect:t=>c({meridiem:t})})]}),(0,ey.jsxs)("div",{className:"border-mlh-plum-400/15 flex items-center justify-between border-t px-2 py-1.5",children:[(0,ey.jsx)("button",{type:"button",onClick:()=>{r(""),l(!1)},className:"text-mlh-faint hover:text-mlh-plum-300 cursor-pointer rounded-lg px-2 py-1 font-mono text-[9px] tracking-[0.2em] uppercase transition",children:"Clear"}),(0,ey.jsx)("button",{type:"button",onClick:()=>l(!1),className:"bg-mlh-plum hover:bg-mlh-plum-400 cursor-pointer rounded-lg px-3 py-1 font-mono text-[9px] tracking-[0.2em] text-white uppercase shadow-[inset_0_1px_0_rgba(255,255,255,0.18)] transition",children:"Done"})]})]})]})}let yD="otpless-sdk",yR=null,y$=null,yz=new Set(["FAILED","INTERNET_ERR"]);function yL(t){let r=y$;if(!r)return;let a=t?.responseType;if(a===r.accept){y$=null,r.resolve(t.response??{});return}if(a&&yz.has(a)){y$=null;let a=t.response?.errorMessage;r.reject(Error("string"==typeof a&&a?a:"That code was not accepted."))}}function yW(t){let r=()=>{};return{promise:new Promise((a,n)=>{let i=setTimeout(()=>{y$=null,n(Error("The sign-in service did not answer. Please retry."))},3e4),o={accept:t,resolve:t=>{clearTimeout(i),a(t)},reject:t=>{clearTimeout(i),n(t)}};y$=o,r=()=>{clearTimeout(i),y$===o&&(y$=null)}}),cancel:r}}function yU(t){return"string"==typeof t&&t?t:void 0}function yB(t){return t&&!1===t.success?t.response?.errorMessage??"That request was not accepted.":null}var yF=t.i(61363);let yY=(0,eO.default)("sunrise",[["path",{d:"M12 2v8",key:"1q4o3n"}],["path",{d:"m4.93 10.93 1.41 1.41",key:"2a7f42"}],["path",{d:"M2 18h2",key:"j10viu"}],["path",{d:"M20 18h2",key:"wocana"}],["path",{d:"m19.07 10.93-1.41 1.41",key:"15zs5n"}],["path",{d:"M22 22H2",key:"19qnx5"}],["path",{d:"m8 6 4-4 4 4",key:"ybng9g"}],["path",{d:"M16 18a4 4 0 0 0-8 0",key:"1lzouq"}]]),yV=["YOUR NUMBER","VERIFY","ABOUT YOU","BIRTH DETAILS","SNAPSHOT"],yq="12:00",yH=["WE ONLY USE YOUR NUMBER TO SIGN YOU IN","NEVER SHARE THIS CODE WITH ANYONE","YOU CAN CHANGE THIS LATER","YOU CAN REFINE THESE ANY TIME"],yZ=["Readings saved to your chart, not a cookie","Vaani remembers every thread","Astropedia stays free"],yK={background:"radial-gradient(120% 100% at 20% 6%, color-mix(in srgb, var(--mlh-plum) 32%, transparent), color-mix(in srgb, var(--mlh-plum) 8%, transparent) 46%, var(--mlh-bg) 82%)"},yG={"--mlh-ring-dur":"280s"},yJ={"--mlh-ring-dur":"460s",background:"repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--mlh-plum-400) 45%, transparent) 0 0.18deg, transparent 0.18deg 6deg)",WebkitMaskImage:"radial-gradient(circle, transparent calc(50% - 6px), #000 calc(50% - 6px))",maskImage:"radial-gradient(circle, transparent calc(50% - 6px), #000 calc(50% - 6px))"},yX="bg-[linear-gradient(96deg,var(--mlh-plum-100),var(--mlh-plum-300)_58%,var(--mlh-plum-500))] bg-clip-text text-transparent",yQ=["Placing the Moon","Placing the Sun","Placing the ascendant"];function y0({timeUnknown:t}){let r=t?yQ.slice(0,2):yQ,[a,n]=(0,ek.useState)(0);return(0,ek.useEffect)(()=>{let t=setInterval(()=>n(t=>Math.min(t+1,r.length-1)),780);return()=>clearInterval(t)},[r.length]),(0,ey.jsxs)("div",{className:"animate-mlh-rise flex flex-col items-center py-6 text-center",children:[(0,ey.jsxs)("div",{"aria-hidden":!0,className:"relative grid h-[118px] w-[118px] place-items-center",children:[(0,ey.jsx)("span",{style:{"--mlh-ring-dur":"26s"},className:"mlh-ring-spin border-mlh-plum-400/35 absolute inset-0 rounded-full border border-dashed"}),(0,ey.jsx)("span",{style:{"--mlh-ring-dur":"17s"},className:"mlh-ring-spin-rev border-mlh-plum-400/22 absolute inset-[15px] rounded-full border border-dashed"}),(0,ey.jsx)("span",{className:"mlh-plate-lit border-mlh-plum-400/45 text-mlh-plum-300 animate-mlh-breathe grid size-[52px] place-items-center rounded-full border",children:(0,ey.jsx)(yS.PlanetIcon,{size:22})})]}),(0,ey.jsx)("p",{className:"text-mlh-plum-300/90 mt-6 font-mono text-[9.5px] tracking-[0.24em]",children:"DRAWING YOUR SNAPSHOT"}),(0,ey.jsx)("h2",{className:"mt-3 font-serif text-[27px] leading-[1.12] tracking-[-0.015em] text-white",children:"Reading the moment you gave us"}),(0,ey.jsx)("ul",{className:"mt-6 flex flex-col items-start gap-[11px]",children:r.map((t,r)=>(0,ey.jsxs)("li",{className:`flex items-center gap-[11px] font-sans text-[16px] transition-colors duration-500 ${r<a?"text-mlh-text/55":r===a?"text-mlh-text":"text-mlh-text/26"}
91`,children:[(0,ey.jsx)("span",{"aria-hidden":!0,className:`h-[7px] w-[7px] flex-none rounded-full transition-all duration-500 ${r<a?"bg-mlh-success/70":r===a?"bg-mlh-plum-300 animate-mlh-breathe":"bg-mlh-text/16"}`}),t]},t))}),(0,ey.jsx)("div",{className:"bg-mlh-plum-400/15 mt-7 h-[2px] w-[210px] overflow-hidden rounded-full",children:(0,ey.jsx)("div",{className:"animate-mlh-sweep via-mlh-plum-300 h-full w-[40%] rounded-full bg-gradient-to-r from-transparent to-transparent"})}),(0,ey.jsx)("span",{className:"sr-only",role:"status",children:"Drawing your snapshot"})]})}function y1({title:t,children:r}){return(0,ey.jsxs)(ey.Fragment,{children:[(0,ey.jsx)("h2",{className:"font-serif text-[32px] leading-[1.08] tracking-[-0.015em] text-white sm:text-[36px]",children:t}),(0,ey.jsx)("p",{className:"text-mlh-muted mt-2.5 max-w-[440px] font-sans text-[16.5px] leading-[1.45] text-pretty",children:r})]})}function y2(t){let r;return{name:[t?.firstName,t?.lastName].filter(Boolean).join(" ").trim(),gender:(r=t?.gender??"")?r[0].toUpperCase()+r.slice(1).toLowerCase():"",dob:t?.born.date??"",tob:t?.born.time??"",pob:t?.born.place??""}}function y5({onClose:t,onDone:r,reason:a,pedia:n=!1,prefill:i,skipSnapshot:o=!1,live:s=!1,otpless:l=!1,resume:d}){var c;let u=void 0!==d,h=y2(d??null),[p,m]=(0,ek.useState)(2*!!u),[f,x]=(0,ek.useState)({country:yv.DEFAULT_COUNTRY,national:""}),[g,y]=(0,ek.useState)(""),[b,v]=(0,ek.useState)(!1),[w,k]=(0,ek.useState)(null),[j,N]=(0,ek.useState)(d?.id??null),[_,E]=(0,ek.useState)(!1),[S,C]=(0,ek.useState)(null),T=(t,r)=>C((0,t3.resolveNotice)(t,{cause:r})),[A,I]=(0,ek.useState)(h.name),[M,P]=(0,ek.useState)(h.gender),[O,D]=(0,ek.useState)(h.dob),[R,$]=(0,ek.useState)(h.tob),[z,L]=(0,ek.useState)(h.pob),[W,U]=(0,ek.useState)(null),[B,F]=(0,ek.useState)(h.pob),[Y,V]=(0,ek.useState)(d??null),[q,H]=(0,ek.useState)(!!d?.born.date&&!d.born.time),[Z,K]=(0,ek.useState)(i??""),G=function(t){let[r,a]=(0,ek.useState)(!1),n=(0,ek.useRef)(null);return(0,ek.useEffect)(()=>{let r="CLB65W84VGIC731YV78T";if(!t||!r)return;let i=!1;return(yR||(yR=new Promise((t,a)=>{let n=()=>{window.OTPless?t(new window.OTPless(yL)):a(Error("The sign-in service did not load."))},i=document.getElementById(yD);if(i)return void(window.OTPless?n():i.addEventListener("load",n,{once:!0}));let o=document.createElement("script");o.id=yD,o.src="https://otpless.com/v4/headless.js",o.async=!0,o.dataset.appid=r,o.addEventListener("load",n,{once:!0}),o.addEventListener("error",()=>a(Error("The sign-in service could not be reached.")),{once:!0}),document.head.appendChild(o)})).catch(()=>{yR=null}),yR).then(t=>{i||(n.current=t,a(!0))}).catch(()=>{i||a(!1)}),()=>{i=!0}},[t]),{ready:r,initiate:(0,ek.useCallback)(async(t,r="+91")=>{let a=n.current;if(!a)throw Error("The sign-in service is not ready yet.");let i=yW("INITIATE"),o=Promise.resolve(a.initiate({channel:"PHONE",phone:t,countryCode:r})).then(t=>{let r=yB(t);if(r)throw Error(r);return{}});try{await Promise.race([o,i.promise])}finally{o.catch(()=>{}),i.promise.catch(()=>{}),i.cancel()}},[]),verify:(0,ek.useCallback)(async(t,r,a="+91")=>{let i,o=n.current;if(!o)throw Error("The sign-in service is not ready yet.");let s=yW("ONETAP"),l=Promise.resolve(o.verify({channel:"PHONE",phone:t,otp:r,countryCode:a})).then(t=>{let r=yB(t);if(r)throw Error(r);return new Promise(()=>{})});try{i=await Promise.race([s.promise,l])}finally{l.catch(()=>{}),s.promise.catch(()=>{}),s.cancel()}return{idToken:yU(i.idToken),token:yU(i.token)}},[])}}(s&&l),J=s&&l&&G.ready,X=s?J?"otpless":"cognito":"demo",[Q,ee]=(0,ek.useState)(null),[et,er]=(0,ek.useState)(!0),[ea,en]=(0,ek.useState)(!0);(0,ek.useEffect)(()=>{if(4!==p)return;let t=!0,r=new Promise(t=>setTimeout(t,900)),a=setTimeout(()=>{t&&en(!1)},8e3);return(0,is.fetchBirthInsight)().then(async a=>{t&&(ee(a),er(!1),await r,t&&en(!1))}),()=>{t=!1,clearTimeout(a)}},[p]),(0,ek.useEffect)(()=>{let r=r=>{"Escape"===r.key&&((0,eb.track)("AUTH_ABANDONED_WEB_EVENT",{step:p}),t())};return window.addEventListener("keydown",r),()=>window.removeEventListener("keydown",r)},[t,p]);let ei=s?6:4,eo=async()=>
91{if((0,eb.track)("OTP_REQUESTED_WEB_EVENT",{provider:X,country:f.country}),!s)return void m(1);E(!0),C(null);try{J?await G.initiate(f.national,(0,yv.countryOf)(f.country).dial):k(await (0,is.requestOtp)(f,(0,iu.getDeviceId)())),m(1)}catch(t){(0,eb.track)("OTP_REQUEST_FAILED_WEB_EVENT",{provider:X,reason:t instanceof Error?t.message:"unknown"}),T("auth.otp-send-failed",t)}finally{E(!1)}},es=async t=>{N(t);let r=await (0,is.fetchSession)().catch(()=>null),a=r?.signedIn?r.profile:null;if(g5(a)){(0,eb.track)("OTP_VERIFIED_WEB_EVENT",{provider:X,returning:!0}),ec(Z.trim()||null,a,!0);return}if((0,eb.track)("OTP_VERIFIED_WEB_EVENT",{provider:X,returning:!1}),a){let t=y2(a);I(t.name),P(t.gender),D(t.dob),$(t.tob),L(t.pob),F(t.pob),V(a)}m(2)},el=async()=>{if((0,eb.track)("OTP_SUBMITTED_WEB_EVENT",{provider:X}),!s)return void m(2);E(!0),C(null);try{if(J){let t=await G.verify(f.national,g,(0,yv.countryOf)(f.country).dial),{userId:r}=await (0,is.confirmOtpless)(t,{...(0,yv.toWirePhone)(f),deviceId:(0,iu.getDeviceId)()});await es(r)}else{let t=await (0,is.confirmOtp)(f,g,w??"");if(t.retry){t.session&&k(t.session),y(""),(0,eb.track)("OTP_FAILED_WEB_EVENT",{provider:X,reason:"retry"}),T("auth.otp-rejected-retype");return}await es(t.userId)}}catch(t){if((0,eb.track)("OTP_FAILED_WEB_EVENT",{provider:X,reason:t instanceof Error?t.message:"That code was rejected."}),y(""),J)T("auth.otp-rejected-retype",t);else{k(null);try{k(await (0,is.requestOtp)(f,(0,iu.getDeviceId)())),T("auth.otp-rejected",t)}catch(t){T("auth.otp-rejected-restart",t),m(0)}}}finally{E(!1)}},ed=async t=>{let r;if(!s)return void t(null);E(!0),C(null);try{r=await (0,is.resolvePlace)(W,z)}catch(t){T("auth.place-lookup-failed",t),E(!1);return}try{let a=await (0,is.saveProfile)(g3({name:A,gender:M,dob:O,tob:q?yq:R,pob:z},r));V(a),(0,eb.track)("BIRTH_DETAILS_SUBMITTED_WEB_EVENT",{has_tob:!q,place_resolved:!!r}),t(a)}catch(t){(0,eb.track)("BIRTH_DETAILS_FAILED_WEB_EVENT",{reason:t instanceof Error?t.message:"unknown"}),T("profile.save-failed",t)}finally{E(!1)}},ec=(t,a,n=!1)=>{let i=a??Y;return r(i?g4(i):{...j?{id:j}:{},name:A.trim()||"Friend",gender:M||"Other",language:"English",phone:`${(0,yv.countryOf)(f.country).dial} ${(0,yv.formatNational)(f)||"98765 43210"}`,dob:O||"14 Aug 1994",tob:q?yq:R||"09:20",pob:z||"Nagpur, India",plan:"Free tier"},t,n)},eu=s&&!o,eh=(eu?[0,1,2,3,4]:[0,1,2,3]).filter(t=>!u||t>=2),ep=4===p,em=!s||null!==W||!!B.trim()&&z.trim()===B.trim(),ef=[{label:_?"Sendingâ¦":"Continue",disabled:!(0,yv.isValidPhone)(f)||_,onClick:()=>void eo()},{label:_?"Verifyingâ¦":"Verify",disabled:g.length!==ei||_,onClick:()=>void el()},{label:"Continue",disabled:!A.trim()||!M,onClick:()=>{(0,eb.track)("BIRTH_DETAILS_STARTED_WEB_EVENT"),m(3)}},{label:_?"Savingâ¦":eu?"See my snapshot":"Continue",disabled:_||!O||!q&&!R||!z.trim()||!em,onClick:()=>void ed(t=>eu&&t?.signs?m(4):ec(Z.trim()||null,t))}][p],ex=1===p?"Change number":3===p?"Back":null;return(0,ey.jsxs)("div",{role:"dialog","aria-modal":"true","aria-label":"Log in to Melooha",className:"animate-mlh-scrim fixed inset-0 z-50 grid grid-cols-1 place-items-center overflow-y-auto bg-black/82 p-4 backdrop-blur-[10px]",children:[(0,ey.jsx)("div",{"aria-hidden":!0,className:"pointer-events-none fixed inset-0 bg-[radial-gradient(60%_50%_at_50%_42%,color-mix(in_srgb,var(--mlh-plum)_20%,transparent),transparent_70%)]"}),(0,ey.jsxs)("div",{className:"animate-mlh-dialog border-mlh-plum/40 relative flex w-full max-w-[920px] rounded-3xl border bg-[color-mix(in_srgb,var(--mlh-surface)_96%,transparent)] shadow-[0_40px_110px_rgba(0,0,0,0.75),inset_0_1px_0_rgba(255,255,255,0.06)]",children:[(0,ey.jsxs)("aside",{style:yK,className:"border-mlh-plum/20 relative hidden w-[300px] shrink-0 flex-col justify-between overflow-hidden rounded-l-3xl border-r p-8 md:flex",children:[(0,ey.jsx)("span",{"aria-hidden":!0,style:yG,className:"mlh-ring-spin border-mlh-plum-400/25 pointer-events-none absolute -bottom-48 -left-40 h-[520px] w-[520px] rounded-full border border-dashed"}),(0,ey.jsx)("span",{"aria-hidden":!0,style:yJ,className:"mlh-ring-spin-rev pointer-events-none absolute -bottom-56 -left-48 h-[600px] w-[600px] rounded-full opacity-45"}),(0,ey.jsxs)("div",{className:"relative",children:[(0,ey.jsxs)("div",{className:"flex items-center gap-3",children:[(0,ey.jsx)("span",{className:"h-[42px] w-[42px] flex-none overflow-hidden rounded-full",children:(0,ey.jsx)(tq,{className:"h-full w-full object-cover"})}),(0,ey.jsx)("span",{className:"font-serif text-[21px] leading-none text-white",children:"Melooha"})]}),(0,ey.jsx)("h2",{className:"mt-7 font-serif text-[30px] leading-[1.16] text-pretty text-white",children:ep?(0,ey.jsxs)(ey.Fragment,{children:["Your chart is",(0,ey.jsx)("br",{}),(0,ey.jsx)("span",{className:yX,children:"bound to Vaani"})]}):a&&n?(0,ey.jsxs)(ey.Fragment,{children:["Keep asking,",(0,ey.jsx)("br",{}),(0,ey.jsx)("span",{className:yX,children:"it stays free"})]}):a?(0,ey.jsxs)(ey.Fragment,{children:["This needs",(0,ey.jsx)("br",{}),(0,ey.jsx)("span",{className:yX,children:"your birth chart"})]}):(0,ey.jsxs)(ey.Fragment,{children:["Bind the instrument",(0,ey.jsx)("br",{}),(0,ey.jsx)("span",{className:yX,children:"to your chart"})]})}),a&&(0,ey.jsxs)("p",{className:"border-mlh-plum/30 bg-mlh-bg/50 text-mlh-plum-300 mt-4 line-clamp-3 rounded-xl border px-3.5 py-2.5 font-sans text-[15px] leading-snug break-words",children:["â",a,"â"]}
91)]}),(0,ey.jsx)("ul",{className:"relative mt-8 space-y-3",children:yZ.map(t=>(0,ey.jsxs)("li",{className:"text-mlh-muted flex items-start gap-2.5 font-sans text-[15.5px] leading-snug",children:[(0,ey.jsx)(yw.Check,{size:13,className:"text-mlh-success mt-1 shrink-0",strokeWidth:3}),t]},t))})]}),(0,ey.jsxs)("div",{className:"flex max-h-[92vh] min-w-0 flex-1 flex-col overflow-y-auto p-6 sm:p-8",children:[(0,ey.jsxs)("div",{className:"flex flex-none items-center justify-between gap-4",children:[(0,ey.jsxs)("button",{onClick:()=>{1===p&&(0,eb.track)("OTP_NUMBER_CHANGED_WEB_EVENT"),m(p-1)},className:`text-mlh-faint hover:text-mlh-plum-300 cursor-pointer font-mono text-[9.5px] tracking-[0.2em] transition ${ex?"":"invisible"}`,children:["â ",ex??"BACK"]}),(0,ey.jsx)("button",{onClick:()=>{(0,eb.track)("AUTH_ABANDONED_WEB_EVENT",{step:p}),t()},"aria-label":"Close",className:"border-mlh-border text-mlh-muted hover:border-mlh-plum-400/60 hover:bg-mlh-plum/10 hover:text-mlh-plum-300 grid h-[34px] w-[34px] flex-none cursor-pointer place-items-center rounded-full border transition",children:(0,ey.jsx)(ym.X,{size:15})})]}),(0,ey.jsxs)("div",{className:"mt-5 flex flex-none items-baseline justify-between gap-4",children:[(0,ey.jsx)("span",{className:"text-mlh-plum-300/90 font-mono text-[9.5px] tracking-[0.24em]",children:yV[p]}),(0,ey.jsxs)("span",{className:"text-mlh-faint font-mono text-[9.5px] tracking-[0.16em] tabular-nums",children:["STEP ",eh.indexOf(p)+1," OF ",eh.length]})]}),(0,ey.jsx)("div",{className:"mt-2.5 flex flex-none gap-1.5",children:eh.map(t=>(0,ey.jsx)("span",{className:"bg-mlh-plum/14 h-[3px] flex-1 overflow-hidden rounded-full",children:(0,ey.jsx)("span",{className:`from-mlh-plum-500 to-mlh-plum-300 block h-full rounded-full bg-gradient-to-r transition-[width] duration-500 ease-[cubic-bezier(0.22,1,0.36,1)] ${t<=p?"w-full":"w-0"}`})},t))}),(0,ey.jsxs)("div",{className:"animate-mlh-rise flex flex-1 flex-col justify-center py-7",children:[0===p&&(0,ey.jsxs)(ey.Fragment,{children:[(0,ey.jsx)(y1,{title:"What's your number?",children:"We'll text a code to verify it. Your chart and readings stay tied to this number."}),(0,ey.jsx)(yj,{value:f,onChange:x,onEnter:()=>!ef.disabled&&ef.onClick(),autoFocus:!0,className:"mt-6"})]}),1===p&&(0,ey.jsxs)(ey.Fragment,{children:[(0,ey.jsxs)(y1,{title:"Enter the code",children:["Sent to"," ",(0,ey.jsxs)("span",{className:"text-mlh-text",children:[(0,yv.countryOf)(f.country).dial," ",(0,yv.formatNational)(f)]}),"."," ",s?`Enter the ${ei}-digit code.`:`Enter any ${ei} digits for this demo.`]}),(0,ey.jsxs)("div",{className:"relative mt-6",children:[(0,ey.jsx)("input",{value:g,onChange:t=>y(t.target.value.replace(/\D/g,"").slice(0,ei)),onFocus:()=>v(!0),onBlur:()=>v(!1),onKeyDown:t=>"Enter"===t.key&&!ef.disabled&&ef.onClick(),inputMode:"numeric",autoComplete:"one-time-code",autoFocus:!0,"aria-label":"Verification code",className:"absolute inset-0 z-10 h-full w-full cursor-text text-transparent caret-transparent opacity-0 outline-none"}),(0,ey.jsx)("div",{className:"flex gap-2.5",children:Array.from({length:ei},(t,r)=>{let a=b&&(r===g.length||g.length===ei&&r===ei-1);return(0,ey.jsx)("div",{className:`grid h-[60px] min-w-0 flex-1 place-items-center rounded-xl border font-mono text-[24px] transition duration-200 ${a?"border-mlh-plum-400 bg-mlh-plum/10 ring-mlh-plum/20 text-mlh-plum-300 ring-4":g[r]?"border-mlh-plum/60 bg-mlh-plum/10 text-mlh-plum-300":"border-mlh-border bg-mlh-bg text-mlh-faint/40"}`,children:g[r]??(0,ey.jsx)("span",{className:"bg-mlh-faint/40 h-px w-3.5"})},r)})})]})]}),2===p&&(0,ey.jsxs)(ey.Fragment,{children:[(0,ey.jsx)(y1,{title:"A little about you",children:"This helps Vaani address you the right way."}),(0,ey.jsxs)("div",{className:"mt-6 space-y-4",children:[(0,ey.jsx)(yl,{label:"Name",children:(0,ey.jsx)("input",{value:A,onChange:t=>I(t.target.value),placeholder:"Your name",autoFocus:!0,className:ys})}),(0,ey.jsx)(yl,{label:"Gender",children:(0,ey.jsx)(yd,{options:["Female","Male","Other"],value:M,onChange:P})})]})]}),3===p&&(0,ey.jsxs)(ey.Fragment,{children:[(0,ey.jsx)(y1,{title:"Your birth details",children:"Vedic astrology reads your chart from the exact moment and place you were born."}),(0,ey.jsxs)("div",{className:"mt-6 space-y-4",children:[(0,ey.jsxs)("div",{className:"grid gap-3 sm:grid-cols-2",children:[(0,ey.jsx)(yl,{label:"Date of birth",children:(0,ey.jsx)(yo,{value:O,onChange:D,ariaLabel:"Date of birth",placeholder:"Select a date",toYear:new Date().getFullYear(),className:ys})}),(0,ey.jsx)(yl,{label:"Time of birth",children:(0,ey.jsx)(yO,{value:q?yq:R,disabled:q,onCh
91ange:$,ariaLabel:"Time of birth",placeholder:"Select a time",className:`${ys} ${q?"opacity-40":""}`})})]}),(0,ey.jsxs)("button",{type:"button",onClick:()=>{(0,eb.track)("BIRTH_TIME_UNKNOWN_TOGGLED_WEB_EVENT",{unknown:!q}),H(t=>!t)},className:`flex cursor-pointer items-center gap-2 text-[13px] transition hover:text-white ${q?"text-mlh-plum-300":"text-mlh-muted"}`,children:[(0,ey.jsx)("span",{className:`flex h-4 w-4 shrink-0 items-center justify-center rounded-full border-2 transition ${q?"border-mlh-plum-400 bg-mlh-plum":"border-mlh-faint bg-transparent"}`,children:q&&(0,ey.jsx)("span",{className:"h-1.5 w-1.5 rounded-full bg-white"})}),"I don't know my time of birth"]}),(0,ey.jsxs)(yl,{label:"Place of birth",children:[(0,ey.jsx)(yE,{value:z,onChange:L,onSelect:U,live:s,className:ys}),!em&&z.trim()&&(0,ey.jsx)("p",{className:"text-mlh-faint text-[12px] leading-snug",children:"Choose your city from the list so we can place your chart."})]}),q&&(0,ey.jsx)("p",{className:"text-mlh-faint text-[12px] leading-snug",children:"We will use 12:00 PM. Your reading will be approximate. Add an exact time later to sharpen it."})]})]}),ep&&Y?.signs&&ea&&(0,ey.jsx)(y0,{timeUnknown:q}),ep&&Y?.signs&&!ea&&(0,ey.jsxs)(ey.Fragment,{children:[(0,ey.jsxs)(y1,{title:"Your cosmic snapshot",children:["Drawn from the moment you just gave us,"," ",A.trim().split(/\s+/)[0]||"friend","."]}),(0,ey.jsxs)("div",{className:"mt-6 mb-5 space-y-2.5",children:[(c=Y.signs,[{area:"How you think",tag:`Moon \xb7 ${c.moon}`,icon:yF.Moon,body:Q?.moon??null},{area:"How you work",tag:`Sun \xb7 ${c.sun}`,icon:yS.PlanetIcon,body:Q?.sun??null},...q?[]:[{area:"How you come across",tag:`Rising \xb7 ${c.ascendant}`,icon:yY,body:Q?.ascendant??null}]]).map((t,r)=>(0,ey.jsx)("div",{style:{animationDelay:`${.12*r}s`},className:"animate-mlh-reveal border-mlh-plum/22 mlh-card-plum-soft mlh-corner-ticks relative overflow-hidden rounded-[18px] border p-4",children:(0,ey.jsxs)("div",{className:"flex items-start gap-3.5",children:[(0,ey.jsx)("span",{className:"mlh-plate-lit border-mlh-plum-400/45 text-mlh-plum-300 grid size-10 shrink-0 place-items-center rounded-[13px] border",children:(0,ey.jsx)(t.icon,{size:17})}),(0,ey.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,ey.jsxs)("div",{className:"flex flex-wrap items-center gap-x-2.5 gap-y-1",children:[(0,ey.jsx)("span",{className:"text-mlh-text font-serif text-[18px] leading-none",children:t.area}),(0,ey.jsx)("span",{className:"border-mlh-plum-400/30 bg-mlh-plum/12 text-mlh-plum-300 rounded-full border px-2 py-[3px] font-mono text-[9px] tracking-[0.18em] whitespace-nowrap uppercase",children:t.tag})]}),t.body?(0,ey.jsx)("p",{className:"text-mlh-muted mt-1.5 font-sans text-[14.5px] leading-snug",children:t.body}):et&&(0,ey.jsxs)("span",{"aria-hidden":!0,className:"mt-2.5 block",children:[(0,ey.jsx)("span",{className:"mlh-shimmer block h-2 rounded-full"}),(0,ey.jsx)("span",{className:"mlh-shimmer mt-1.5 block h-2 w-[58%] rounded-full"})]})]})]})},t.area)),et&&(0,ey.jsx)("span",{className:"sr-only",role:"status",children:"Reading your chart"}),q&&(0,ey.jsx)("div",{style:{animationDelay:"0.24s"},className:"animate-mlh-reveal border-mlh-border rounded-[18px] border border-dashed p-4",children:(0,ey.jsxs)("div",{className:"flex items-start gap-3.5",children:[(0,ey.jsx)("span",{className:"border-mlh-border text-mlh-faint grid size-10 shrink-0 place-items-center rounded-[13px] border border-dashed",children:(0,ey.jsx)(yY,{size:17})}),(0,ey.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,ey.jsxs)("div",{className:"flex flex-wrap items-center gap-x-2.5 gap-y-1",children:[(0,ey.jsx)("span",{className:"text-mlh-muted font-serif text-[18px] leading-none",children:"How you come across"}),(0,ey.jsx)("span",{className:"border-mlh-border text-mlh-faint rounded-full border px-2 py-[3px] font-mono text-[9px] tracking-[0.18em] whitespace-nowrap uppercase",children:"Rising · needs a time"})]}),(0,ey.jsx)("p",{className:"text-mlh-faint mt-1.5 font-sans text-[14px] leading-snug",children:"Your rising sign turns on the exact minute you were born, so we have left it out rather than guess. Add a birth time in your profile and it fills in."})]})]})})]}),(0,ey.jsxs)("div",{className:"animate-mlh-reveal",style:{animationDelay:"0.5s"},children:[(0,ey.jsx)("div",{className:"text-mlh-faint mb-2 font-mono text-[9px] tracking-[0.2em]",children:"YOUR FIRST QUESTION IS ON US"}),(0,ey.jsxs)("div",{className:"bg-mlh-bg border-mlh-plum focus-within:ring-mlh-plum/20 flex items-center gap-2 rounded-2xl border p-2 pl-4 transition focus-within:ring-4",children:[(0,ey.jsx)("input",{value:Z,onChange:t=>K(t.target.value),onKeyDown:t=>"Enter"===t.key&&Z.trim()&&ec(Z.trim()),placeholder:"e.g. Should I switch jobs this year?",className:"text-mlh-text placeholder:text-mlh-faint caret-mlh-plum-300 min-w-0 flex-1 bg-transparent font-sans text-[17px] outline-none"}),(0,ey.jsx)("button",{onClick:()=>Z.trim()&&ec(Z.trim()),disabled:!Z.trim(),"aria-label":"Ask your first question",className:`grid h-9 w-9 shrink-0 place-items-center rounded-xl transition ${Z.trim()?"mlh-cta-plum cursor-pointer text-white":"bg-mlh-surface-hi text-mlh-faint"}`,children:(0,ey.jsx)(e6,{size:17})})]}),(0,ey.jsx)("button",{onClick:()=>ec(null),className:"text-mlh-faint hover:text-mlh-plum-300 mt-4 w-full cursor-pointer font-mono text-[9.5px] tracking-[0.2em] transition",children:"MAYBE LATER · TAKE ME IN"})]})]})]},p),!ep&&(0,ey.jsxs)("div",{className:"flex-none",children:[S&&(0,ey.jsx)("div",{className:"mb-3",children:(0,ey.jsx)(yb,{notice:S})}),(0,ey.jsxs)("button",{onClick:ef.onClick,disabled:ef.disabled,className:`flex w-full items-center justify-center gap-2 rounded-xl py-[15p
91x] font-sans text-[19px] ${ef.disabled?"bg-mlh-surface-hi text-mlh-faint cursor-not-allowed transition":"mlh-cta-plum cursor-pointer text-white"}`,children:[_&&(0,ey.jsx)(e8.Loader2,{size:16,className:"animate-spin"}),ef.label]}),(0,ey.jsxs)("div",{className:"text-mlh-faint/80 mt-3.5 flex items-center justify-center gap-2.5 font-mono text-[9px] tracking-[0.16em]",children:[(0,ey.jsx)("span",{className:"bg-mlh-success h-[5px] w-[5px] rounded-full"}),yH[p]]})]})]})]})]})}let y4="min-w-0 flex-1 border-none bg-transparent font-sans text-[21px] leading-[1.3] text-mlh-text outline-none placeholder:text-mlh-faint/70",y3=["Female","Male","Other"];function y6({label:t,children:r}){return(0,ey.jsxs)("div",{className:"flex items-center gap-6 border-b border-mlh-plum-400/15 py-[19px] last:border-b-0",children:[(0,ey.jsx)("div",{className:"w-[150px] flex-none font-mono text-[9.5px] font-medium tracking-[0.22em] text-mlh-muted uppercase",children:t}),r]})}function y8({user:t,onClose:r,onSave:a,live:n=!1}){let[i,o]=(0,ek.useState)(t.name),[s,l]=(0,ek.useState)(t.gender||"Other"),[d,c]=(0,ek.useState)(t.dob),[u,h]=(0,ek.useState)(g2(t.tob)??""),[p,m]=(0,ek.useState)(t.pob),[f,x]=(0,ek.useState)(null),[g,y]=(0,ek.useState)(!1),[b,v]=(0,ek.useState)(null),w=!n||null!==f||p.trim()===t.pob.trim(),k=async()=>{v(null);let r={name:i.trim()||t.name,gender:s,dob:d,tob:u||"Not known",pob:p};if(d.trim()&&!g1(d))return void v("Enter the date of birth as DD Mon YYYY, e.g. 30 May 2002.");if(u.trim()&&!g2(u))return void v("Enter the time of birth as HH:MM, e.g. 09:20.");if(!n)return void a(r);y(!0);try{let n=await (0,is.resolvePlace)(f,p.trim()!==t.pob?p:"");await (0,is.saveProfile)(g3(r,n)),(0,eb.track)("BIRTH_DETAILS_UPDATED_WEB_EVENT"),a(r)}catch(t){v((0,t3.resolveNotice)("profile.save-failed",{cause:t}).text)}finally{y(!1)}};return(0,ey.jsxs)("div",{role:"dialog","aria-modal":"true","aria-label":"Birth details",onMouseDown:t=>t.target===t.currentTarget&&r(),className:`${tI.SCRIM} ${tI.SCRIM_PAD}`,children:[(0,ey.jsx)(tI.DialogBloom,{}),(0,ey.jsxs)("div",{style:tI.PANEL_WASH,className:`${tI.PANEL} ${tI.PANEL_FIT} w-full max-w-[640px] overflow-y-auto`,children:[(0,ey.jsxs)("div",{className:"border-mlh-plum-400/22 relative overflow-hidden border-b px-6 pt-7 pb-6 sm:px-9 sm:pt-8",children:[(0,ey.jsx)("div",{"aria-hidden":!0,className:"pointer-events-none absolute -inset-x-8 -top-24 h-64 bg-[radial-gradient(closest-side,color-mix(in_srgb,var(--mlh-plum)_38%,transparent),transparent_72%)]"}),(0,ey.jsxs)("div",{className:"relative flex items-start gap-[18px]",children:[(0,ey.jsx)("div",{className:"border-mlh-plum-400/55 text-mlh-plum-300 grid size-11 flex-none place-items-center rounded-full border bg-[radial-gradient(closest-side,color-mix(in_srgb,var(--mlh-plum)_55%,transparent),transparent)] shadow-[inset_0_0_20px_color-mix(in_srgb,var(--mlh-plum)_60%,transparent),0_0_24px_color-mix(in_srgb,var(--mlh-plum)_30%,transparent)]",children:(0,ey.jsx)(e$.SparkleIcon,{size:18})}),(0,ey.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,ey.jsx)("h2",{className:"font-serif text-[31px] leading-[1.05] tracking-[-0.01em] text-white",children:"Birth details"}),(0,ey.jsx)("p",{className:"text-mlh-muted mt-2.5 max-w-[46ch] text-[13.5px] leading-[1.55] text-pretty",children:"These power every reading Vaani gives you. Keep them accurate for the sharpest chart."})]})]})]}),(0,ey.jsxs)("div",{className:"px-6 py-1 sm:px-9",children:[(0,ey.jsx)(y6,{label:"Full name",children:(0,ey.jsx)("input",{value:i,onChange:t=>o(t.target.value),className:y4})}),(0,ey.jsx)(y6,{label:"Gender",children:(0,ey.jsx)("div",{className:"border-mlh-plum-400/32 bg-mlh-bg/60 flex overflow-hidden rounded-xl border",children:y3.map(t=>(0,ey.jsx)("button",{type:"button",onClick:()=>l(t),"aria-pressed":s===t,className:`cursor-pointer px-[22px] py-2.5 text-[13.5px] font-medium transition ${s===t?"text-mlh-plum-100 bg-[linear-gradient(180deg,color-mix(in_srgb,var(--mlh-plum)_82%,transparent),color-mix(in_srgb,var(--mlh-plum)_44%,transparent))] shadow-[inset_0_1px_0_rgba(255,255,255,0.16)]":"text-mlh-muted hover:text-mlh-text"}`,children:t},t))})}),(0,ey.jsx)(y6,{label:"Date of birth",children:(0,ey.jsx)(yo,{value:g1(d)??"",onChange:t=>c(g0(t)),ariaLabel:"Date of birth",placeholder:"DD Mon YYYY",toYear:new Date().getFullYear(),className:y4})}),(0,ey.jsx)(y6,{label:"Time of birth",children:(0,ey.jsx)(yO,{value:u,onChange:h,ariaLabel:"Time of birth",placeholder:"HH:MM",className:y4})}),(0,ey.jsx)(y6,{label:"Place of birth",children:(0,ey.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,ey.jsx)(yE,{value:p,onChange:m,onSelect:x,live:n,withIcon:!1,className:`w-full ${y4}`,placeholder:"City, country",menuClassName:"border-mlh-plum-400/28 mt-3 rounded-2xl border bg-[color-mix(in_srgb,var(--mlh-surface)_94%,transparent)] backdrop-blur-xl shadow-[0_24px_60px_rgba(0,0,0,0.55)]",optionClassName:"text-mlh-text hover:bg-mlh-plum/22 block w-full truncate px-4 py-3 text-left font-sans text-[16.5px] leading-[1.2] transition"}),!w&&p.trim()&&(0,ey.jsx)("p",{className:"text-mlh-faint mt-1.5 text-[11.5px] leading-[1.5]",children:"Choose your city from the list so we can place your chart."})]})})]}),(0,ey.jsxs)("div",{className:"border-mlh-plum-400/22 flex items-center gap-5 border-t px-6 py-6 sm:px-9",children:[(0,ey.jsx)("p",{className:`max-w-[34ch] flex-1 text-[11.5px] leading-[1.5] ${b?"text-mlh-amber":"text-mlh-faint"}`,children:b??"Don't know your birth time? Leave it blank, your reading stays approximate."}),(0,ey.jsxs)("div",{className:"flex flex-none items-center gap-2.5",children:[(0,ey.jsx)("button",{onClick:r,className:"border-mlh-border-hi text-mlh-muted hover:border-mlh-plum-400/60 hover:text-mlh-text cursor-pointer rounded-xl border px-[22px] py-3 text-[13.5px] font-medium transition",children:"Cancel"}),(0,ey.jsx)("button",{onClick:()=>void k(),disabled:g||!w,className:"mlh-cta-plum cursor-pointer rounded-xl px-[26px] py-3 text-[13.5px] font-semibold text-white disabled:opacity-60",children:g?"Savingâ¦":"Save"})]})]})]})]})}let y9=[{cat:"Getting started",qa:[["What is Melooha?","Melooha is an AI-first Vedic astrology companion. It answers your questions from your own birth chart, gives daily guidance, and prepares deep one-time reports, so you can make decisions with more clarity."],["What is the difference between Astropedia and Vaani?","Astro
91pedia answers general astrology questions for everyone and is free and unlimited. Vaani answers are personal, read from your birth chart, and cover your timing, career, love and more."],["Is it free to use?","Yes to start. Astropedia, blogs, horoscopes and calculators are free. Your first Vaani question is also free. Beyond that, you buy question packs or report packs, one time, and they never expire."],["Do I need to sign up?","Only when you ask a personal question, buy something, or open a report. Everything general stays open without an account."]]},{cat:"Your birth details",qa:[["Why do you need my birth details?","Vedic astrology is read from the exact moment and place you were born. Your date, time and place of birth let Vaani calculate your chart and give answers personal to you."],["What if I do not know my time of birth?","You can proceed without it. Tick the I do not know my time of birth option. Your reading stays accurate on broad themes, and you can add a precise time later to sharpen the timing."],["Can I edit my birth details later?","Yes. Open your profile and choose My birth details to update your name, date, time or place at any time."],["Is my data private?","Your birth details are used only to prepare your readings and are tied to your account. They are not shared."]]},{cat:"Questions and pricing",qa:[["How many free questions do I get?","One free Vaani question. Astropedia questions are always free and unlimited."],["How do question packs work?","You buy a pack of questions once. Silver is 7, Gold is 12, Diamond is 20. The questions never expire, use them whenever you like."],["Do my questions expire?","No. Purchased questions and report credits never expire."],["How do I buy more questions?","Tap Buy more on your balance, or Buy Questions in your profile. You choose a pack, apply any offer, and pay."]]},{cat:"Reports",qa:[["What reports are available?","Reports cover love and marriage, money, work, and self and growth, for example Marriage, Career, Wealth, Personality and more. Artha Sutram is our premium wealth blueprint."],["How do report packs work?","A report pack gives you report credits. Silver is 1 report, Gold is 2, Diamond is 4. You then spend a credit to unlock any report from the catalogue."],["What is Artha Sutram?","Artha Sutram is our premium, individually sold wealth report. It maps the pillars of prosperity in your chart, the years wealth is likely to flow, and practical remedies."],["Does a report end after I read it?","No. After any report you can keep asking Vaani about it, so it stays a living guide rather than a one-time PDF."]]},{cat:"Accuracy and method",qa:[["How accurate are the readings?","They are built on classical Vedic methods with precise ephemeris calculations, then written in plain language. Many readers find the patterns match their real lives closely."],["Which system do you use?","Melooha reads your Rasi chart and divisional charts such as the Navamsa and Dasamsa, your running dasha periods, and current transits, following classical Vedic principles."],["Are horoscopes based on my Sun sign?","No. Melooha horoscopes are based on your Rashi, your Vedic Moon sign at birth, not the Western Sun sign."]]},{cat:"Account and support",qa:[["How do I contact support?","From your profile open Help. You can reach us on WhatsApp or by email, and you can report a bug from there too."],["Which languages are supported?","Answers are available in English, Hindi and Hinglish."],["How do I sign out?","Open your profile menu and choose Sign out."]]}],y7=`<!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><title>Melooha: Frequently Asked Questions</title><meta name="description" content="Answers about Melooha: Astropedia and Vaani, birth details, question and report packs, accuracy, and support."> 92<script type="application/ld+json">${JSON.stringify({"@context":"https://schema.org","@type":"FAQPage",mainEntity:y9.flatMap(t=>t.qa).map(([t,r])=>
92({"@type":"Question",name:t,acceptedAnswer:{"@type":"Answer",text:r}}))})}</script> 93<style> 94:root{--bg:#0F090C;--surface:#12131C;--border:#252637;--plum:#811756;--plum3:#CDA2BB;--amber:#FC9918;--text:#E7E6E7;--muted:#9F9D9E;--faint:#6F6B6D;--white:#fff} 95*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-family:Inter,system-ui,-apple-system,sans-serif;line-height:1.6} 96.wrap{max-width:820px;margin:0 auto;padding:48px 20px 80px} 97.brand{display:flex;align-items:center;gap:10px;margin-bottom:40px} 98.logo{width:34px;height:34px;border-radius:10px;background:linear-gradient(135deg,#9A4578,#4D0E34);display:flex;align-items:center;justify-content:center;color:#fff;font-weight:700} 99.brand span{font-weight:700;font-size:18px;color:var(--white)} 100h1{font-size:38px;line-height:1.15;margin:0 0 8px;color:var(--white)} 101.sub{color:var(--muted);margin:0 0 40px;font-size:16px} 102h2{font-size:13px;text-transform:uppercase;letter-spacing:.08em;color:var(--plum3);margin:40px 0 12px} 103details{background:var(--surface);border:1px solid var(--border);border-radius:16px;margin-bottom:10px;overflow:hidden} 104summary{list-style:none;cursor:pointer;padding:16px 18px;font-weight:600;color:var(--white);display:flex;justify-content:space-between;align-items:center;gap:12px} 105summary::-webkit-details-marker{display:none} 106summary::after{content:"+";color:var(--faint);font-weight:400;font-size:20px} 107details[open] summary::after{content:"â"} 108.ans{padding:0 18px 18px;color:var(--muted);font-size:15px} 109.cta{margin-top:48px;background:linear-gradient(135deg,#811756,#4D0E34);border-radius:20px;padding:28px;text-align:center} 110.cta h3{color:var(--white);margin:0 0 6px;font-size:22px} 111.cta p{color:#F2E8EE;margin:0 0 16px;font-size:14px} 112.foot{margin-top:40px;color:var(--faint);font-size:12px;text-align:center} 113a{color:var(--plum3)} 114</style></head><body> 115<div class="wrap"> 116<div class="brand"><div class="logo">M</div><span>Melooha</span></div> 117<h1>Frequently Asked Questions</h1> 118<p class="sub">Everything about your readings, birth details, questions, reports and support.</p> 119${y9.map(t=>`<h2>${t.cat}</h2>${t.qa.map(([t,r])=>`<details><summary>${t}</summary><div class="ans">${r}</div></details>`).join("")}`).join("")} 120<div class="cta"><h3>Still have a question?</h3><p>Reach us on WhatsApp or email from Help inside your profile.</p></div> 121<div class="foot">\xa9 Melooha. Vedic astrology, read from your own chart.</div> 122</div></body></html>`;e5.SITE_URL,e5.SITE_URL,e5.SITE_URL,e5.SITE_URL,e5.SITE_URL;let be=(0,eO.default)("receipt-text",[["path",{d:"M13 16H8",key:"wsln4y"}],["path",{d:"M14 8H8",key:"1l3xfs"}],["path",{d:"M16 12H8",key:"1fr5h0"}],["path",{d:"M4 3a1 1 0 0 1 1-1 1.3 1.3 0 0 1 .7.2l.933.6a1.3 1.3 0 0 0 1.4 0l.934-.6a1.3 1.3 0 0 1 1.4 0l.933.6a1.3 1.3 0 0 0 1.4 0l.933-.6a1.3 1.3 0 0 1 1.4 0l.934.6a1.3 1.3 0 0 0 1.4 0l.933-.6A1.3 1.3 0 0 1 19 2a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1 1.3 1.3 0 0 1-.7-.2l-.933-.6a1.3 1.3 0 0 0-1.4 0l-.934.6a1.3 1.3 0 0 1-1.4 0l-.933-.6a1.3 1.3 0 0 0-1.4 0l-.933.6a1.3 1.3 0 0 1-1.4 0l-.934-.6a1.3 1.3 0 0 0-1.4 0l-.933.6a1.3 1.3 0 0 1-.7.2 1 1 0 0 1-1-1z",key:"ycz6yz"}]]),bt=(0,eO.default)("shield-alert",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]]),br={"privacy-policy":{id:"privacy-policy",icon:ts,label:"Privacy Policy",title:"Privacy Policy",dek:"What we collect from you, why we collect it, and the rights you hold over it.",updated:"2026-08-05",seoTitle:"Privacy Policy | Melooha",meta:"How Melooha collects, uses, stores and discloses your personal data and birth details, the security we apply to it, and your rights under Indian, EU and UK law.",keyword:"melooha privacy policy",intro:["This Privacy Policy is in continuation of the Term and Conditions on our Platform (as defined below) and shall be read with the same. Please note that all the capitalized terms used in this Policy (as defined herein-below) and not defined here shall have the same meaning as ascribed to it in Terms and Conditions.","M/S. ASTROVERSE TECHNOLOGIES PRIVATE LIMITED, a private company incorporated under provisions of the Companies Act 2013 and having its registered office at Plot No. 63, Flat No. 702, Shivaji Nagar, Shankar Nagar, Dharampeth Extension, Nagpur, Maharashtra, 440010 (âMeloohaâ, âWeâ, âUsâ or âOurâ) is a pioneering cloud-based web platform that enables their customers (âClientsâ, âYouâ, âYourâ or âUserâ) to
122services as provided in our Terms and Conditions. These Services are made available to you through our website âmelooha.comâ, which shall be inclusive of any other website, as well as media channel, mobile website or mobile application related, linked or other connected thereto, which is owned by us (âPlatformâ).","This Privacy Policy (âPolicyâ) outlines our practices and policies, the kinds of information we may collect from you when you access or use the Platform, the reasons for and methods for collection, use and disclose the information we gather from you for your use of the Platform, as well as security practises and procedures for safeguarding your privacy in relation to information shared with us. You agree to be bound by the terms and conditions of this Policy by accessing and using the Platform, which will be deemed to create a legal contract between you and Melooha.",'This Policy must also be read in conjunction with and construed in accordance with all applicable laws of the country from which you access and use the Platform, including the provisions of the EU General Data Protection Regulation, the (Indian) Information Technology Act, 2000 ("IT Act"), and other similar laws as recognised in your jurisdiction. This Policy is officially recognised as an electronic contract between Melooha and you.',"We reserves the right to amend, change or update this Policy to our discretion. You agree to be bound by any updated policies with your continued access and/or use of our Platform and subsequently our Services after any such changes have been duly notified in any form to you. Any such changes to the policy will be notified to your registered email address with us. We recommend you update your details with your active and correct email address for smooth communication. We will not be liable in case the registered email is inactive, incorrect or not updated for any claims regarding and not limited to communication gaps, liabilities and legal claims with regard to this policy."],sections:[{h:"Definitions",clauses:[{plain:!0,t:"In compliance with jurisdictional compliances, we have listed an exhaustive list of information repeatedly defined and referenced in this policy."},{t:'The term "Account" shall have the same meaning as has been provided under the Terms and Conditions.'},{t:'"Non-personal Identification Information" shall include but is not limited to browser name, the type of computer and technical information about your means of connection to the Platform such as the operating system, the Internet service providers utilized and other similar information used in conjecture with the access or use of the Platform and subsequently the Services available thereof.'},{t:"âPersonal Identification Informationâ shall include such information which shall be voluntarily shared by you, in any format whereby such information shall be deemed to ascertain a personâs identity, or can be reasonably ascertained, from the information or opinion including, but not limited to, when you visit the Platform and conduct any such activity whereby you shall share be required to share such information, regardless of whether the information provided is true or not. Further, it shall be inclusive of but not limited to the information such as name, email address, phone number, and residential address disclosed by you pursuant to creation of an Account, use or access of the Platform and further the Services. In the event that you do not consent to share your Personal Identification Information with us, then you shall be freely allowed to do so, but it may prevent us from providing complete and full access and/or use of the Platform and the services thereof."},{t:'"Sensitive personal data or information"/"SPDI" shall mean to include information relating to you, which directly or indirectly, is capable of identifying you including but not limited to: (i) credentials for use of the Platform; (ii) financial information; (iii) physical, physiological and mental health condition; (iv) sexual orientation; (v) medical records and history; (vi) any biometric information; and (vii) any other information which is considered as a sensitive personal data or information under the applicable law in your state.'},{plain:!0,t:'Non-personal Identification Information, Personal Identification Information and SPDI shall together be referred to as "Information".'},{t:'"Third Party" shall refer to any party other than you and Melooha.'}]},{h:"Information Collected",clauses:[{plain:!0,t:"For the access and/or use of the Services, we have listed a list of the information we shall collect from you:"},{t:"Information that you voluntarily provide us: This will include all the information that you provide us when access and/or using the Platform, which will include but shall not be limited to information you might provide us for the creation of your Account, additional Information providing during and/or for the provision of Services."},{t:'Information collected from Third-Party Sites: You may also register for an Account using your existing Instagram, Facebook or Gmail or similar Third Party accounts and log-in credentials (your "Third-Party Site Account"). As part of the functionality of the Platform, you may link your Account with Third Party Site Accounts, by either: (i) providing your Third Party Site Account login information to us through the Platform or (ii) allowing us to access your Third Party Site Account, as is permitted under the applicable terms and conditions that govern your use of each Third Party Site Account. It shall be your responsibility to read and update yourself with the policies of Third Party Site Account from time to time.'}
122,{t:"Cookie Policy: A cookie is a tiny bit of data that a web server stores on a web browser to read it later from that browser. Cookies help the browser remember information that is unique to a particular user. No information that can be used to identify you personally is stored in the cookies. Our cookies aid in extending the functionality of the website and aid in more precise usage analysis. Every time you visit our Platform, we'll check your browser to see if our cookies, which save details like whether you've previously visited the Platform and your preferences for it, are there. You may set your internet browser to reject cookies or to notify you when cookies are being used if you'd prefer not to receive them. However, turning off cookies will prevent the great bulk of our Platform from working, and making your browser \"warn\" you when cookies are used will make you less likely to use our Platform. Melooha does not provide third party access to any cookie and do not disclose information from cookies to third parties except the information previously listed."},{t:"Sensitive Personal Data or Information (âSPDIâ): For the sake of accuracy in providing services on the Platform, you may additionally be asked to reveal or affirm certain SPDI, including but not limited to specifics of your health condition or medical history, etc. Depending on how you engage with the Platform, different types of Information may be gathered from you. The Company promises to protect the information you supply while adhering to reasonable security policies and procedures and any relevant privacy laws."},{plain:!0,t:"The following is the data that may be collected from you based upon your usage and access to the Platform:"},{t:"Aggregated Data: The Company may perform research on its customers' demographics, interests, locations, and usage patterns of the Services based on the Personal Data and other information submitted to us in a continuing attempt to better understand and serve Users of the Services. We may aggregate this research and use it for any reason, including distributing the results to our affiliates, agents, and business partners. Your personal information is not contained in this aggregate data. To describe our services to existing and potential business partners as well as to other third parties for other legitimate objectives, we may also divulge aggregated user statistics."},{t:"Device and Usage Information: While you use the Service, we might gather data about your device. Device type, device family, operating system, carrier, unique device id, time zones, browser type, version, and language are some examples of this data. We might keep track of the things you do when using the Service. The
122se details may include the date and time of logins, the features used or visited, latitude, longitude, and searches conducted through the Service."},{t:"Push Notifications: In relation to your Account or the Platform, we might ask to send you push notifications. You can disable these communications in your device's settings if you prefer not to receive them."},{t:"Verification of Information: We at certain times require you to provide additional information for confirmation of your identity for the access to your own Information as previously may have been provided to us. Upon the exercise of the right remove any and all information provided to us by you, we shall ask for additional information for verification purposes."}]},{h:"Use of Personal Data and Other Collected Information",clauses:[{t:"Melooha adheres to this Policy while using the Personal Data you supply. If you give us personal information for a particular reason, we will use it in connection with that particular reason. For instance, if you email us, we'll use the Personal Data you send to get back to you and see if we can't fix the issue."},{t:"Other than as described above, we will notify you when we wish to provide Information about you to any Third Parties and give you the opportunity to choose not to share that Information. You have the option to allow or deny us to share such Information with a Third-Party, but in event, you deny us such permission, we might not be able to provide the full extent of our Services. It shall be your responsibility to keep us updated and duly informed of any change in email for the receipt of any information as mentioned herein for the purpose of consent."}]},{h:"Disclosure of Collected Information",clauses:[{plain:!0,t:"Melooha hereby represents that it does not sell or involve itself in businesses related to selling information. The company assures you that such disclosure is encrypted to avoid access and leaks and is acceptable under all data privacy and protection laws worldwide. The exceptions are listed as follows:"},{t:"Business Transfers: Your Personal Data and other information may be shared in the diligence process with counterparties and others assisting with the transaction and transferred to a successor or affiliate as part of that transaction. Personal Data may be included in the transferred assets in the event of a corporate sale, merger, reorganisation, dissolution, or another similar event."},{t:'Service Requirements: In order to create personalised insights about you based on astrological positions on a regular basis (referred to as "Personal Readings") the Company may use your Personal Data. Your username and profile photo will be included in your Personal Readings and Compatibility Readings, but your gender, date of birth, or place of birth will not be disclosed. The AI service will have access to all your personal information as previously defined, and will have access to your answers for the best results. Such information will not be disclosed in any way.'},{t:"Communications: You hereby expressly agree to receive communication (including transactional / promotional messages) or by way of SMS/RCS (Rich Communication Services) and/or E-mail or through WhatsApp from the Company or any third party in connection with the Services or your registration on the Platform."},{t:"Requirement under applicable law: The Information may be disclosed to any person, if such disclosure is required for a lawful purpose connected with a function or activity of Platform. The Personal Information may be disclosed, where the disclosure is necessary for compliance of a legal obligation under applicable law."}]},{h:"Security",clauses:[{t:"We work hard to protect your information against unauthorised access, unlawful alteration, disclosure, or destruction. We also work to maintain its security, integrity, and privacy. To protect data and to aid in preventing unauthorised access, we put in place the necessary physical, electronic, and managerial safeguards. As no method of data transmission or protection is 100% safe, we cannot guarantee perfect security. Additionally, we are not liable for any security lapses or the deeds of any Third Parties who obtain your information, due to uncontrollable internal and external factors."},{t:"Password protection is a crucial component of the security of your information. You must take care not to reveal your account login information to any other parties and must keep your login information, including your password, private. You are ultimately in charge of protecting the confidentiality of your Account login details, even though we will take everything to ensure the highest level of security for your information. If you suspect someone else knows your password, you discover unauthorised use of your account, or you become aware of any other security lapses,
122kindly let us know right away."},{t:"We restricts access to personal information to those of its employees who: we need it to fulfil its obligations under this Policy and agreements concluded with us; (ii) have received the necessary and ongoing training on how to process, handle, and care for personal information; and (iii) are subject to confidentiality obligations as required by applicable law. The Company takes measures to make sure that any employees who have access to personal data are trustworthy, capable and regularly trained. We also hold documentation regarding compliances."},{t:"Melooha cannot guarantee security in transfers and transactions of your information through the means of the internet. We suggest you ensure to take adequate safety practices to protect your personal information as information on and through the internet is not fully secure. Any unauthorised use of your personal information or any suspicious activity on your account is not our responsibility and cannot be held against us. By utilising our Platform, you acknowledge and accept that we are not responsible for any disclosure of your information caused by transmission mistakes or unauthorised acts of third parties."}]},{h:"Exclusions",clauses:[{t:"Minors and Users below the age of 18: We reserve the right to terminate accounts of minors who are using our services if we believe the environment around our platform is not safe for a minor, at our discretion. Children under the age of 13 are not deliberately given their personal information by Melooha. Please do not submit any Personal Data through the Services if you are under the age of 13, as you will not be allowed to utilise the Services. Please get in touch with us if you think a child under the age of 13 may have provided Melooha with Personal Data through the Services, and we'll do our best to remove that data from our records."},{t:'Any Personal Data that the company collects other than Personal Data collected through the Services is not covered by this Policy. Any unsolicited information you send to us via the Services or by any other method is not covered by this privacy policy. This includes, but is not limited to, information submitted informally (collectively, "Unsolicited Information") and posted in any public parts of the Services, such as forums, as well as suggestions for brand-new products or improvements to current ones. All unsolicited information will be regarded as non-confidential, and we may be allowed to distribute, disclose, and utilise it without restriction or credit.'}]},{h:"Link to Third Parties",clauses:[{t:'Only the Services are covered by this privacy statement. The Services may link to other Third-Party websites or mobile applications (the "Third-Party Applications") that are not under The companyâs control or operation. Such websites and Third-Party Applications are not covered by this Policy. The privacy policies of any Third-Party Websites or Mobile Applications are not our responsibility and you shall be responsible for reading and updating yourself with the terms and condition and privacy policy of such Third-Party platforms.'},{t:"As previously mentioned, you have the option to login through the Third-Party Site such as Facebook, Gmail, Twitter, etc. Please be informed that by choosing to access our Platform through this Third-Party Sites, you will be provided an option share your information as contained under those Third Parties Site accounts and you have an option to opt out from sharing such information with baring such information which is essential for us to allow you access to use our Services and access our Platform. It shall be your responsibility to update yourself with the terms of use and privacy policy of the Third Party Site for the protection of your data."},{t:"There may be links on the Platform to other programmes or websites. You accept and recognise that these applications and websites, with the exception of other platforms owned by us, are run by Third Parties and are not under our control, affiliated with, or associated with us unless clearly stated. As a result, we have no control over the privacy practises or policies of the softw
122are and websites that can be accessed via links from this Platform. You should get in touch with the organisations in charge of those websites directly if you have any questions about the privacy practises and policies of those Third Party platforms."}]},{h:"Amending or Updating User Information",clauses:[{t:"You have the right to request access to the information we have about you. Even though there may be some exceptions, we shall grant access to the Information in compliance with the relevant legislation. For allowing access to information, we reserve the right to charge a fee. Additionally, we'll make a good-faith effort to accurately capture the data you give us, including any modifications. You have the right to review, modify, and update the information we have on file about you. You may also ask us to remove any of your personal data that is unreliable, irrelevant, or processed unlawfully in light of any applicable laws. Your ability to inspect, correct, and delete your information is also governed by any statutory retention obligations as well as any applicable legislation."}]},{h:"Rights of Users",clauses:[{t:"You fully accept and agree that your Personal Data and other information will be processed in the India and other countries if you are using Meloohaâs Services from outside of India. Laws governing privacy and data security may differ from or be less strict than those in force in your country of residency. You hereby give your explicit approval for this Policy to be followed in the processing of your Personal Data and other data."},{t:"Users have various data protection rights with respect to the personal information about them that businesses and organisations may gather under UK and EU legislation. We value openness and are dedicated to upholding all of its users' privacy rights. Each user of our services has the following rights:",points:["The Right to Access: You have the right to request copies of your personal data, subject to a small fee charged by us.","The Right to Rectification: In the event of any inaccurate or incomplete information, you have the right to rectification or completion of the information, as the case may be.","The Right to Erasure: Subject to certain conditions, upon your request, we allow to erase any information as provided by you.","The Right to Restrict Processing: Upon fulfilment of certain conditions, you can restrict Melooha from processing your information. Please be advised that the same may result in the restriction of the complete services and access to our Platform.","The Right to Notification: You have the right to be notified regarding any rectification or erasure of personal data or restriction of processing, unless this proves impossible or involves disproportionate effort.","The Right to Data Portability: You have the right to request that Melooha transfer the data that we have collected to another organization, or directly to you, under certain conditions.","The Right to Object to Processing: You have the right to object to Melooha processing of your personal data, under certain conditions.","The Right to Certain Protections related to Automated Individual Decision-making, including Profiling: You have the right not to be the subject to a decision based solely on automated processing, including profiling, under certain conditions."]},{t:"You are recognized to exercise your rights as per the applicable law of your respective state."}]},{h:"User Declarations",clauses:[{t:"You understand and have the knowledge that Information is being collected."},{t:"You understand and have the knowledge of the purpose for which your Information is being collected."},{t:"You understand and have the knowledge of the indented recipients of the information."},{t:"You understand that you have the option not to provide the data or information sought to be collected by Company and the Website."},{t:"You understand that your have an option (while availing the services of Melooha or accessing the Platform or otherwise) to withdraw my consent earlier given to Melooha and you understand and accept that such withdrawal of your consent shall be sent in
122writing and in such an event Melooha shall have the right, at its discretion, to not provide the services for which the information was derived / collected."},{t:"You read and have understood this Privacy Policy and all other policies governing the usage of the Platform."}]},{h:"Grievance Redressal",clauses:[{t:"Grievances in relation to this policy can be sent to Vikram Labhe."},{t:"Grievance letters can be mailed at [email protected]."},{plain:!0,t:"BY AGREEING TO THE TERMS OF THIS POLICY, YOU AGREE TO OUR PROCESSING OF YOUR PERSONAL INFORMATION FOR THE PURPOSES GIVEN HEREIN."}]}]},"terms-and-conditions":{id:"terms-and-conditions",icon:ti.FileText,label:"Terms and Conditions",title:"Terms and Conditions",dek:"The agreement between you and Astroverse Technologies for your use of Melooha.",updated:"2026-08-05",seoTitle:"Terms and Conditions | Melooha",meta:"The agreement governing your use of Melooha: registration, the licence to the platform, service fees, prohibited activities, liability, indemnity and governing law.",keyword:"melooha terms and conditions",intro:["This Term and Conditions is, inter alia, drafted in conformity with the Information Technology (Intermediaries Guidelines) Rules, 2011 specified under the Information Technology Act, 2000, the General Data Protection Rules, 2016 etc., in order to regulate the terms and conditions of usage and access to Platform (as defined herein) and the Services (as defined herein). No physical or digital signature is necessitated in order to validate this Agreement.","These Terms and Conditions (âT&Câ) is an agreement between you (âYouâ, âYourâ and âUserâ) and M/S. ASTROVERSE TECHNOLOGIES PRIVATE LIMITED, a private company incorporated under provisions of the Companies Act 2013 and having its registered office at Plot No. 63, Flat No. 702, Shivaji Nagar, Shankar Nagar, Dharampeth Extension, Nagpur, Maharashtra, 440010 (âMeloohaâ, âWeâ, âUsâ and âOurâ). These T&C will govern Your use of âmelooha.comâ, including any other website, as well as media channel, mobile website or mobile application related, linked or other connected thereto (âPlatformâ), which is owned by us, and subsequently the use of Services as available to you through our Platform."],sections:[{h:"Acceptance of the T&C",clauses:[{plain:!0,t:"For You to accept these T&C, You shall be (i) of majority age (18 and above or as may be the age of majority in your jurisdiction). (2) you will only have one account with us which must be in your real name and details as required by us; and (3) you are not already restricted by us from using the Services (as defined below). In the case that You do not accept these T&C, You shall not avail our Services as is provided through Our Platform. You can accept the Agreement by clicking on âI AGREEâ or by actually availing our Service."},{plain:!0,t:"These T&C are subject to modifications, at our sole and absolute discretion. Further, we may from time to time formulate new policies for availing all or any of the Services. The most current version of the T&C will supersede all previous versions. You understand that your continued use of the Services after any changes to the T&C or addition of new policies constitutes your acceptance to be bound by the most recent version of the T&C. If the T&C (including changes and additions thereto) are not acceptable to you, you have the absolute right to terminate your Account by writing to us @ [email protected]."}]},{h:"Description of Services",clauses:[{plain:!0,t:"Our Services provided from the Platform are designed to create automated informational readings about you based on astrological positions. Our Services are intended to provide helpful, and informative materials pertaining to astrology for your entertainment only. It is expressly stated that Melooha does not render psychological, health, or any other kind of personal professional services in connection with the Services. Wherein if you require any personal psychological and/or health related assistance or advice. We recommend that a competent professional to be consulted in this regard. Melooha expressly and specifically disclaims all responsibilities for any liability, loss or risk that is incurred as a consequence, whether directly or indirectly, of availing Our Services, including any actions that you may take or refrain from taking as a result of readings you receive from Our Services. Melooha further disclaims any legal liability for the reliability of any features related to Our Services. You hereby agree to assume full responsibility for any actions you take based on or related to your use of Our Services."},{plain:!0,t:"We believe in continuous development in order to meet the industry standards and provide you with better Services, therefore, we reserve the right to modify, remove or rename our Services at our sole discretion."}]},{h:"Additional Policies",clauses:[{plain:!0,t:"By accepting this T&C, you shall, in addition to the T&C, shall also be bound by Our Privacy Policy (hereinafter, along with T&C, shall be referred to as âPoliciesâ
122) which is duly available on our Platform for your access. The most current version of the Policies, including T&C shall supersede all previous versions. You understand that your use of the Services after any changes to the Policies or addition of new Policies constitutes your acceptance to be bound by the most recent version of the Policies. If the Policies (including changes and additions thereto) are not acceptable to you, you have the absolute right to terminate your Account by writing to us @ [email protected]."}]},{h:"Representations and Warranties by you",clauses:[{t:"You hereby represent and warrant that when using the Services that:",points:["You have the legal capacity and You agree to comply with these T&C.","All information that you submit is true and accurate.","Neither Your use of the Services nor any services made available through Melooha are unlawful under any applicable law or regulation, in other words, You will not use the Platform and/or Our Services for any illegal or unauthorized purpose.","You are at least 18 years old or of legal age to use the service and lastly.","You have the mental and physical capacity and discretion to consent to this electronic contract."]},{t:"If You provide any information that is untrue, inaccurate, not current, or incomplete, we have the right to suspend or terminate Your Account and refuse any and all current or future use of the Platform (or any portion thereof)."}]},{h:"Registration and Onboarding",clauses:[{t:"We believe in providing simple and easy access to our Services. The Platform is offering âFree Servicesâ and âPaid Servicesâ (Collectively referred as âServicesâ). Free Services are easily accessible without subscription or becoming a member however for accessing the personalised astrological services and/or to receive and get access to Paid Services, You are required to register as a member on the portal."},{t:"To access any of Paid Services you can sign-up by using the online sign-up process as provided on the Platform. After taking all the relevant information from You, we will register and create an account (âAccountâ) on the Platform for Your access to the Platform and to avail and use the Services."},{t:"You will be provided with only one Account that will be in Your real name and subject to You not being restricted by Us or applicable laws to use the Platform."},{t:"We will provide a User ID and password (âCredentialsâ) to You for access to the Platform and Services thereof."},{t:"You hereby, expressly consent to receive communications and newsletters from Melooha by SMS, e-mails, phone calls, in-app notifications or any other means. You can restrict such communications and newsletters only by de-registering your Account."},{t:"Any person who is Our competitor and a representative of our competitors in any capacity is not allowed to access or use the Platform in any case."},{t:"You can always choose to disable Your Account by writing to us at [email protected]. Once You disable Your Account, you shall cease to have any access to any of our Services through the Platform."},{t:"You can always choose to disable Your Account by writing to us at [email protected]. Once You disable Your Account, you shall cease to have any access to any of our Services through the Platform."},{plain:!0,t:"With respect to subscribers in California, Arizona, Illinois, Wisconsin, Minnesota, Iowa, Connecticut, New York, North Carolina, Rhode Island, and Ohio, the following terms may apply: You shall be entitled to cancel your subscription, without penalty or obligation, at any time prior to midnight of the third (3rd) business day following the date you subscribed. In the event that you die before the end of your subscription period, your estate shall be entitled to a refund of that portion of any payment you had made for your subscription which is allocable to the peri
122od after your death. In the event that you become disabled (such that you are unable to use the services of The Pattern) before the end of your subscription period, you shall be entitled to a refund of that portion of any payment you had made for your subscription which is allocable to the period after your disability by providing notice along with reasonable proof of such disability."},{plain:!0,t:"Notice to California subscribers: You shall have the right to cancel your subscription for the Paid Services, without penalty or obligation, at any time prior to midnight of the third (3rd) business day following the date you subscribed. You are informed that if you subscribed the Paid Services using iTunes or Google Play, then refunds shall be handled by Apple and Google respectively, and Melooha shall have no liability / obligation with regard to same. Pursuant to Cal. Civ. Code § 1789.3, you may report complaints to the Complaint Assistance Unit of the Division of Consumer Services of the California Department of Consumer Affairs in writing to Consumer Information Division, 1625 North Market Blvd., Suite N112, Sacramento, California 95834 or by phone at (800) 952-5210."},{plain:!0,t:"For subscribers residing in the European Union or European Economic Area: You are entitled to a full refund, within fourteen (14) days from the commencement of subscription. The cancellation period shall start from the initiation of subscription."},{t:"You are responsible for maintaining the confidentiality of Your Credentials, and You are fully responsible for all activities that occur under your Account. In the event that You detect any unauthorised use of Your Account or breach of Your Account, You shall inform Us immediately."},{t:"You will be held responsible for any losses incurred by Melooha or other User due to unauthorized use of the Account which is a consequence of Your inability to secure Your Account."}]},{h:"License to the Platform",clauses:[{t:"Subject to Your compliance with each provision of these Policies, Melooha hereby grants You a limited, non-commercial, revocable, personal, non-sub-licensable, non-transferable, non-exclusive right to access and use the Platform to access the Service in accordance with these T&C. You shall under no circumstances share the access of the Platform with anyone else."},{t:"Except the rights and interests that are provided to You under these T&C, unless otherwise specified, you shall not be entitled to any other rights or interest whatsoever in the use of Platform / Services."}]},{h:"Usage of the Information",clauses:[{t:"The information collected by the Platform may be used for any purpose as may be permissible under the applicable law and shall include but not limited to the following: -",points:["For providing a personalised browsing experience. While guaranteeing the anonymity of the user, the personal information collected in accordance with the Privacy Policy may be used for research purposes, for improving the marketing and promotional efforts, to analyse usage, improve the content of the Platform, and Services offering.","You authorize us to contact you via email or phone or SMS.","With IP tracking details and cookies data, the Platform will use it only for facilitating the usage of the Platform and provide personalised experience and any information which is sensitive in nature will not be provided to any third party without Your consent.","All information (and copies thereof) collected by the Platform, including without limitation personal information and other information related to your access and use of the services offered by Website, may be retained by Platform for such period as necessary, including but not limited to, for purposes such as compliance with statutory or legal obligations, tax laws and potential evidentiary purposes and for other reasonable purposes such as to implement, administer, and manage your access and use of our services, or resolution of any disputes.","To ensure a seamless experience at the Website for you and to ensure your maximum benefit and comfort, the Website may use the data collected through cookies, log file, device identifiers, location data and clear gifs information to: (a) remember information so that you will not have to re-enter it during your visit or the next time you visit the site; (b) provide custom, personalized content and information, including advertising; (c) provide and monitor the effectiveness of Services offered by Website; (d) monitor aggregate metrics such as total number of visitors, traffic, usage, and demographic patterns on the Website and its Services; (e) diagnose or fix technology problems; and (f) otherwise to plan for and enhance the service.","The Platform uses certain third-party analytics tools to measure traffic and usage trends for the Services. These tools collect information, which is not personal or sensitive in nature sent by the Your device, including the web pages visited, add-ons, and other information that assists the Platform in improving the Services. Such information is collected from you in the form of anonymized logs, so that it cannot reasonably be used to identify any particular individual user."]}]},{h:"Services Fee",clauses:[{t:"Pursuant to Your subscription to the Paid
122Service(s), You will be liable to pay such fees as shall be communicated by Melooha on the Platform."},{t:"The payments shall be made by You, via any of the means as available in the Platform including but limited to credit card, debit card, net banking facility, UPI wallets etc. You understand, accept and agree that the payment facility provided by Melooha is neither a banking nor financial service but is merely a facilitator providing an electronic, automated online electronic payment, receiving payment through collection and remittance facility for the transactions on the Platform using the existing authorized banking infrastructure and credit card payment gateway networks."},{t:"You are under an obligation to provide your banking information as and when required. For that purpose, you are obligated as follow : -",points:["You agree that the debit/credit card details provided by you for use of the aforesaid Services must be correct and accurate and that you shall not use a debit/ credit card, that is not lawfully owned by you or the use of which is not authorized by the lawful owner thereof. You further agree and undertake to provide correct and valid debit/credit card details.","The User may pay the fees required, to the Website by using a debit/credit card or through online banking account. The User warrants, agrees and confirms that when he/ she initiates a payment transaction and/or issues an online payment instruction and provides his/ her card / bank details: You are fully and lawfully entitled to use such credit / debit card, bank account for such transactions; You are responsible to ensure that the card/ bank account details provided by you are accurate; You are responsible to ensure sufficient credit is available on the nominated card/ bank account at the time of making the payment to permit the payment of the dues payable or the bill(s) selected by you inclusive of the applicable fee.","While availing any of the payment method/s available on the Platform, we will not be responsible or assume any liability, whatsoever in respect of any loss or damage arising directly or indirectly to You. All payments made against the Services on Platform by You shall be compulsorily in Indian Rupees/ United States Dollar, as the case maybe, acceptable in the Republic of India. Platform will not facilitate transaction with respect to any other form of currency with respect to the purchases made on Platform."]},{t:"While availing any of the payment method/s available on the Platform, we will not be responsible or assume any liability, whatsoever in respect of any loss or damage arising directly or indirectly to You. All payments made against the Services on Platform by You shall be compulsorily in Indian Rupees/ United States Dollar, as the case maybe, acceptable in the Republic of India. Platform will not facilitate transaction with respect to any other form of currency with respect to the purchases made on Platform."},{t:"You hereby expressly agree and acknowledge that the payment made to Melooha with regard to subscription of Paid Services shall be non-refundable and You shall not be entitled to claim refund of any portion of the amount fee paid to Melooha for any reason whatsoever."},{t:'In the event any tax or the like is chargeable by Melooha in accordance with any local, state, provincial or foreign laws with respect to Your use of our Services ("Taxes"), Melooha will invoice You for such Taxes. You agree to pay Melooha such Taxes in addition to the any payments due under the T&C.'}]},{h:"Availability of Services",clauses:[{t:"All or any of the Services offered through the Platform may be temporarily unavailable or may not be offered to You, for various reasons which could include but not limited to Your geographic limitations, or prohibition / restrictions under applicable laws or policies or due to any technical faults or interruptions."}]},{h:"Platform Content",clauses:[{t:"Unless otherwise indicated by Us, the Platform is our proprietary property and all source code, databases, functionality, software, website designs, audio, video, text, photographs, and graphics on the Platform (âContentâ) and the trademarks, service marks, and logos contained therein (âMarksâ) are owned or c
122ontrolled by us or licensed to us, and are protected by copyright and trademark laws and various other intellectual property rights, unfair competition laws and other applicable national and international laws and conventions. We reserve all rights not expressly granted to You in and to the Platform, the Content and the Marks."},{t:"Melooha cannot and does not guarantee or warrant that files available for downloading through the Platform will be free of infection by software viruses or other harmful computer code, files or programs."},{t:"You agree and acknowledge that the unauthorized use of the Content / Platform may violate copyright, trademark, and other applicable laws and shall cause irreplaceable damage to Melooha. Therefore, Melooha shall have right to initiate any proceedings or any other process under applicable law which is available to it and the same shall be in addition to recovery of damages for such unauthorised use of the Content/Platform."},{t:"The Platform and none of the Content shall be reverse-engineered, disassembled, decompiled, reproduced, transcribed, stored in a retrieval system, translated into any language or computer language, re-transmitted in any form or by any means (electronic, mechanical, photo-reproduction, recordation or otherwise), resold or redistributed for any commercial purpose whatsoever, without Our express prior written permission."}]},{h:"Platform Management",clauses:[{t:"We reserve the right, but not the obligation, to: (1) monitor the Platform for violations of these T&C; (2) take appropriate legal action against anyone who, in our sole discretion, violates the applicable law or these T&C, including without limitation, reporting such User to law enforcement authorities; (3) in our sole discretion and without limitation, refuse, restrict access to, limit the availability of, or disable the access of any Services or any portion thereof; (4) in Our sole discretion and without limitation, notice, or liability, to remove from the Platform or otherwise disable all files and content that are excessive in size or are in any way burdensome to Our systems; and (5) otherwise manage the Platform in a manner designed to protect our rights and property and to facilitate the proper functioning of the Platform."}]},{h:"Third Party Applications",clauses:[{t:'Meloohaâs Services integrate with many third party applications ("Third Party Application(s)"). Access and use of the Third Party Applications may require acceptance of terms of service and privacy policies applicable to such Third Party Applications ("Third Party Terms"). You are responsible for reading and understanding the Third Party Terms before accessing or using any Third Party Application. You acknowledge and agree that Melooha is not liable for any Third Party Applications. While we will try to provide You with advance notice, whenever reasonably possible, You acknowledge and agree that Melooha may, at any time and in our sole discretion, and without any notice to You, suspend, restrict or disable access to or remove from Services, any Third Party Application, without any liability to You, including without limitation for any loss of profits, revenue, data, goodwill or other intangible losses.'}]},{h:"Prohibited Activities",clauses:[{t:"You may not access or use the Platform for any purpose other than that for which we make the Platform available. The Platform may not be used in connection with any commercial endeavours except those that are specifically endorsed or approved by us."},{t:"As a user of the Platform, You agree not to:",points:["Systematically retrieve data or other content from the Platform to create or compile, directly or indirectly, a collection, compilation, database, or directory without written permission from Us.","Trick, defraud, or mislead Us and other Users, especially in any attempt to learn sensitive account information such as User Credentials.","Circumvent, disable, or otherwise interfere with security-related features of the Platform, including features that prevent or restrict the use or copying of any Content or enforce limitations on the use of the Platform and/or the Content contained therein.","Disparage, tarnish, or otherwise harm, in our opinion, us and/or the Platform.","Use any information obtained from the Platform in order to harass, abuse, or harm another person.","Make improper use of our support services or submit false reports of abuse or misconduct.","Use the Platform in a manner inconsistent with any applicable laws or regulations.","Use the Platform to advertise or offer to sell goods and services.","Upload or transmit (or attempt to upload or to transmit) viruses, Trojan horses, or other material, including excessive use of capital letters and spamming (continuous posting of repetitive text), that interferes with any partyâs uninterrupted use and enjoyment of the Platform or modifies, impairs, disrupts, alters, or interferes with the use, features, functions, operation, or maintenance of the Platform.","Engage in any automated use of the system, such as using scripts to send comments or messages, or using any data mining, robots, or similar data gathering and extraction tools.","Delete the copyright or other proprietary rights notice from any Content.","Attempt to impersonate another user or person or use the username of another user.","Sell or otherwise transfer Your profile.","Upload or transmit (or attempt to upload or to transmit) any material that acts as a passive or active information collection or transmission mechanism, including without limitation, clear graphics interchange formats (âgifsâ), 1Ã1 pixels, web bugs, cookies, or other similar devices (sometimes referred to as âspywareâ or âpassive collection mechanismsâ or âpcmsâ).","Interfere with, disrupt, or create an undue burden on the Platform or the networks or services connected to the Platform.","Attempt to bypass any measures of the Platform designed to prevent or restrict access to the Platform, or any portion of the Platform.","Copy or adapt the Platformâs software, including but not limited to, PHP, HTML, JavaScript, or other code. Decipher, decompile, disassemble, or reverse engineer any of the softw
122are comprising or in any way jeopardizing any part of the Platform.","Except as may be the result of standard search engine or Internet browser usage, use, launch, develop, or distribute any automated system, including without limitation, any spider, robot, cheat utility, scraper, or offline reader that accesses the Platform, or using or launching any unauthorized script or other software. Make any unauthorized use of the Platform, including collecting Credentials of Users by electronic or other means for the purpose of sending unsolicited email, or creating user accounts by automated means or under false pretences.","Use the Platform as part of any effort to compete with us or otherwise use the Platform for any revenue-generating endeavour or commercial enterprise."]}]},{h:"Privacy Policy",clauses:[{t:"We care about data privacy and security. By using the Platform, you agree to be bound by our Privacy Policy posted on the Platform, which is deemed to be incorporated into these T&C of Use. Please be advised the Platform is hosted in India. If you access the Platform from any other region of the world with laws or other requirements governing personal data collection, use, or disclosure that differ from applicable laws in India, then through your continued use of the Platform, you are transferring your data to India, and you agree to have your data transferred to and processed in India."}]},{h:"Disclaimer and Limitation of Liability",clauses:[{t:"you expressly understand and agree that the use of the services is at your sole risk. the services are provided on an as-is-and-as-available basis. melooha expressly disclaims all warranties of any kind, whether express or implied, including, but not limited to, the implied warranties of merchantability and fitness for a particular purpose. melooha makes no warranty that the services will be uninterrupted, timely, secure, or error free. use of any material downloaded or obtained through the use of the services shall be at your own discretion and risk and you will be solely responsible for any damage to your computer system, mobile telephone, wireless device or data that results from the use of the services or the download of any such material. no advice or information, whether written or oral, obtained by you from melooha, its employees or representatives shall create any warranty not expressly stated in the agreement. to the extent permitted by applicable law, we make no warranties or representations about the accuracy, reliability, timeliness or completeness of the serviceâs content, the content of any site linked to the service, contributions, information or any other items or materials on the service or linked to by the service. we assume no liability or responsibility for any (a) errors, mistakes or inaccuracies of content and materials, (b) personal injury or property damage, of any nature whatsoever, resulting from your access to and use of the service, (c) any unauthorized access to or use of our secure servers and/or any and all personal information stored therein, (d) any interruption or cessation of transmission to or from the service, (e) any bugs, viruses, trojan horses, or the like, which may be transmitted to or through the service by any third party, and/or (f) any errors or omissions in any content and materials or for any loss or damage of any kind incurred as a result of the use of any content posted, transmitted, or otherwise made available via the service."},{t:"you agree that melooha shall, in no event, be liable for any consequential, incidental, indirect, special, punitive, or other loss or damage whatsoever or for loss of business profits, business interruption, computer failure, loss of business information, or other loss arising out of or caused by your use of or inability to use the service and the services of any third-party or service provider so engaged under these t&c, even if melooha has been advised of the possibility of such damage. in no event shall meloohaâs entire liability to you in respect of any service, whether direct or indirect, exceed the fees paid by you."}]},{h:"Indemnity",clauses:[{t:"You agree to indemnify and hold harmless Melooha, its officers, directors, employees, suppliers, and affiliates, from and against any losses, damages, fines and expenses (including attorney's fees and costs) arising out of or relating to any claims that you have used the Services in violation of another party's rights, in violation of any law, in violations of any provisions of the T&C herein, or any other claim related to your use of the Services, except where such use is authorized by Melooha."}]},{h:"Force Majeure",clauses:[{t:"Melooha shall not be liable for any failure to perform any obligations under these T&C, if the performance is barred or deferred by any event arising due to any cause beyond the reasonable control of Melooha and in such case our Services under these T&C shall be suspended for so long as such event continues."}]},{h:"Miscellaneous",clauses:[{t:"We may modify these T&C upon notice to you at any time through a service announcement or by sending email to your primary email address. If we make significant changes to the T&C that affect your rights, you will be provided with a notice of the changes either through the Platform or by email to your primary email address. You may choose to terminate your use of the Services or disable Your Account through the Platform if the T&C are modified in a manner that substantially affects your rights in connection with use of the Services."},{t:"Any violation of this T&C or any indecent action towards third party service provider will not be tolerated and shall attract prompt and punitive disciplinary action as per applicable laws enforced in India and including but not limited to termination of usage rights as well as legal action. In the event of termination, users will not receive any credit or payment or refund from Melooha. Without limiting Melooha of other remedies, You must pay Melooha for all fees owed to us and reimburse Melooha for all losses and costs (including any and all Melooha associate, officers or representatives time) and reasonable expenses (including but not limited to legal fees) related to investigating such breach and collecting such fees. In the event of termination, you will have no claim whatsoever against Melooha in respect of any such suspension or termination of your subscription, but you shall settle all dues owed to Melooha upon the termination."},{t:"You, acknowledges that no joint venture, partnership, employment, or agency or âservice provider-consumerâ relationship is crated or exists between You and Melooha, as a result of the Your use of the Platform."},{t:"Meloohaâs performance under these T&C is subject at all times to existing laws and legal process and nothing contained in these T&C is in derogation of Melooha's right to comply with law enforcement requests or requirements relating to a User's use of Melooha or information provided to or gathered by Melooha with respect to such use."},{t:"You shall not assign any rights or obligations arising under this T&C, whether by operation of law or otherwise, without the prior written consent of Melooha. You agree that Melooha may subcontract certain aspects of the Service to third party service providers for the fulfilment of Services as per these T&C."},{t:"Any claim or controversy that arises out of or relates to this T&C, or the breach of it, the same shall be referred to a person nominated by Melooha whose decision shall be final and binding upon the parties hereto. Such references shall be deemed to be a submission to arbitration in accordance with the provisions of the Indian Arbitration and Conciliation Act 1996 and applicable rules thereto. The seat of arbitration shall be in Nagpur, India and the process shall be in English L
122anguage."},{t:"Notwithstanding the foregoing, if you breach or threaten to breach any provision of this T&C you acknowledge that irreparable harm will result to Melooha if you breach any obligation under this T&C and you acknowledge and agree that such a breach would not be properly compensable by an award of damages. Accordingly, you agree that Melooha shall be entitled to, in addition to other available remedies and damages, injunctive relief or other equitable relief enjoining such breach at the earliest possible date."},{t:"Melooha shall not be liable for any In the event that any provision of this T&C is held to be invalid or unenforceable by a court or regulator of competent jurisdiction, the valid or enforceable portion thereof and the remaining provisions of this T&C will remain in full force and effect. Meloohaâs failure to exercise or enforce any right or provision of these T&C shall not constitute a waiver of such right or provision. Any waiver or failure to enforce any provision of this T&C on one occasion will not be deemed a waiver of any other provision or of such provision on any other occasion. All waivers must be in
122writing. to perform any obligations under these T&C, if the performance is barred or deferred by any event arising due to any cause beyond the reasonable control of Melooha and in such case our Services under these T&C shall be suspended for so long as such event continues."},{t:"These T&C shall be governed by the laws of India and in case of any dispute between you and Melooha, in relation to the Services, the Courts of Nagpur, India shall have exclusive jurisdiction."}]},{h:"Grievance Redressal",clauses:[{t:"In accordance with Information Technology Act 2000, Information Technology (Intermediaries Guidelines) Rules, 2011 and Consumer Protection (E-Commerce) Rules, 2020 made there under, the contact details of the Grievance Officer are provided below in order to contact him when you have some problem or grievance with respect to the Services of the Platform:",points:["Attn: Grievance Officer","Email: [email protected]"]}]}]},"refund-policy":{id:"refund-policy",icon:be,label:"Refund Policy",title:"Cancellation and Refund Policy",dek:"When a purchase can be cancelled, how a refund is requested, and how long it takes to reach you.",updated:"2026-08-05",seoTitle:"Cancellation and Refund Policy | Melooha",meta:"Melooha refunds an eligible cancellation requested within 24 hours of subscribing, back to the original payment method in 5-7 days. How to raise the request, and what happens to a double payment.",keyword:"melooha refund policy",intro:["Our goal is to ensure complete customer satisfaction. Users have the opportunity to explore and try the services by using Free Plan without paying for any services. In the event that the user is dissatisfied with the services provided, Melooha will refund the money within 24 hours of the request."],sections:[{h:"Raising a cancellation",clauses:[{plain:!0,t:"A cancellation request must be conveyed to our support system through email at [email protected] within the defined time frame as mentioned above."},{plain:!0,t:"Any technical delay or glitch reported in receiving emails beyond the cancellation window will not be eligible for a refund."},{plain:!0,t:"No refund shall be processed if a customer requests cancellation after 24 hours from subscribing to the services."}]},{h:"How a refund is processed",clauses:[{plain:!0,t:"Refunds will be processed to the original source of payment within 5-7 days for all cancellations that are eligible."},{plain:!0,t:"If there are any delays in the refund processing from the issuing bank, you can contact the bank directly for more information."}]},{h:"Failed and duplicate payments",clauses:[{plain:!0,t:"In case the Website or Payment gatewayâs webpage, that is linked to the Website, is experiencing any server related issues like âslow downâ or âfailureâ or âsession timeoutâ, the User shall, before initiating the second payment, check whether his/her Bank Account has been debited or not and accordingly resort to one of the following options:",points:["In case the Bank Account appears to be debited, ensure that you do not make the payment twice and immediately thereafter contact the Website via customer care to confirm payment.","In case the Bank Account is not debited, the User may initiate a fresh transaction to make payment.","However, refund for multiple payment, if any, even after the above precaution against the same order shall be refunded in full without deduction of the transaction charges as mentioned above. The Website shall only retain the cost of one single order as intended to be placed by the User."]}]}]},disclaimer:{id:"disclaimer",icon:bt,label:"Disclaimer",title:"Disclaimer",dek:"What astrological guidance on Melooha is, and what it is not.",updated:"2026-09-23",seoTitle:"Disclaimer | Melooha",meta:"Meloohaâs astrology content, predictions and guidance are based on astrological principles and interpretations; their accuracy can vary, and using them is at your discretion.",keyword:"melooha disclaimer",intro:["The astrology-related content, predictions, insights, and guidance offered on the Platform are based on astrological principles, beliefs, and interpretations. The accuracy and reliability of astrological predictions and insights can vary. The use of the Platformâs services and content is at the userâs discretion and risk. For more details please refer to our Term and Conditions and Privacy Policy."],sections:[]}},ba=[br["privacy-policy"],br["terms-and-conditions"],br["refund-policy"],br.disclaimer],bn=t=>`/${t}`;function bi(t){return URL.createObjectURL(new Blob([t],{type:"text/html"}))}function bo(t){let r=bi(t);window.open(r,"_blank","noopener"),setTimeout(()=>URL.revokeObjectURL(r),6e4)}function bs(t,r){let a=bi(t),n=document.createElement("a");n.href=a,n.download=r,n.click(),setTimeout(()=>URL.revokeObjectURL(a),6e4)}ba.reduce((t,r)=>r.updated>t?r.updated:t,ba[0]?.updated??"");var bl=t.i(88198),bd=t.i(65668),bc=t.i(32017);let bu=t=>`/${t}`,bh=t=>`/jobs/${t}`,bp={faq:{id:"faq",title:"Frequently Asked Questions",dek:"Astropedia and Vaani, your birth details, packs and reports, and how to reach us.",seoTitle:"Frequently Asked Questions | Melooha",meta:"Answers about Melooha: the difference between Astropedia and Vaani, why your birth details matter, question and report packs, accuracy, and support.",keyword:"melooha faq"},contact:{id:"contact",title:"Contact Us",dek:"Write to us about anything: an answer, a payment, a report or the product itself.",seoTitle:"Contact Melooha | Melooha",meta:"Reach Melooha at [email protected], or at our office: 702, 63 Shivaji Nagar, Nagpur 440010, India.",keyword:"contact melooha"},jobs:{id:"jobs",title:"Join Us",dek:"Open roles at Melooha, an early-stage B2C company building AI-first Vedic astrology.",seoTitle:"Careers at Melooha: Join Us | Melooha",meta:"Open roles at Melooha. Every full-time team member is a part-owner through our employee stock option plan.",keyword:"melooha careers"},review:{id:"review",title:"Add a Review",dek:"Tell us how Melooha has been for you. We read every one.",seoTitle:"Add a Review | Melooha",meta:"Share your experience of Melooha with the team.",keyword:"melooha review"}},bm="[email protected]",bf=["You can always join Google, or Microsoft, or Amazon, or Apple, or any other tech giant. However, very rarely you get an opportunity to be part of an early stage B2C SaaS startup that has the potential to be the next tech giant! And in the process go through an accelerated learning & growth curve for yourself, while significantly contributing in the âbuildâ and âscaleâ journey of the company.","All full-time team members are part-owners of Melooha, through a very generous employee stock option plan. And thus have dramatic wealth creation opportunities for themselves.","Limited seats available on this boat!"],bx=[{id:"product-leader",title:"Product Leader",summary:"Join Melooha as our Product Leader, where your passion for innovation in B2C SaaS and expertise in astrology and metaphysics will drive the future of our user-centric product strategy. If youâre ready to challenge the 9-5 norm and lead groundbreaking product development, weâre looking for you.",location:"Hybrid / Pune",type:"Full-time",experience:"8+ years",email:"[email protected]",traits:["Entrepreneurial mindset","9am to 5pm is kind of boring","Passionate about your work","Driven to succeed","Solution focussed"],lede:"We are seeking a talented and empathetic Product Leader with B2C product leadership experience to join our team.",responsibilities:["Product Strategy: Develop and execute a comprehensive product strategy aligned with Meloohaâs vision and goals.","Innovation: Lead the ideation and implementation of innovative features and enhancements to ensure Melooha remains at the forefront of the industry.","User Experience: Collaborate with cross-functional teams to optimize the user experience, leveraging user feedback and data-driven insights.","Market Analysis: Stay abreast of market trends, competitor offerings, and user preferences to identify opportunities for differentiation.","Collaboration: Work closely with engineering, design, and data science teams to deliver high-quality and impactful products.","Roadmap Planning: Develop and maintain a clear and prioritized product roadmap, ensuring alignment with business objectives.","User Engagement: Implement strategies to drive user engagement, satisfaction, and retention.","Data-Driven Decision Making: Utilize data analytics and user feedback to make informed decisions and iterate on product features."],qualifications:["8+ years of B2C SaaS experience in product management.","Strong understanding of astrology, metaphysics, or related fields is a plus.","Demonstrated success in launching and evolving successful products.","Exceptional leadership and communication skills.","Ability to thrive in a fast-paced, startup environment."],closing:"If youâre passionate about revolutionizing the astrology industry through technology and have the experience to drive B2C product excellence, we invite you to join Melooha."}],bg=t=>bx.find(r=>
122r.id===t),by={path:"/",title:"Melooha: Ask Vaani, Vedic Astrology From Your Birth Chart",description:"Ask Vaani for answers computed from your own Vedic birth chart, plus free horoscopes by Rashi, Swiss Ephemeris calculators, and personalised astrology reports.",keywords:"vedic astrology ai, ask an astrologer, kundli reading online",card:{title:"Vedic astrology, read from your own birth chart",eyebrow:"Ask Vaani",kind:"home"}},bb={path:"/horoscopes",title:"Horoscope Today by Rashi: Daily, Monthly & Yearly | Melooha",description:"Free Vedic horoscopes for all 12 Rashis, read from your Moon sign: todayâs reading for career, love and health, with tarot, lucky colour and lucky number.",keywords:"horoscope today by moon sign, rashifal, vedic daily horoscope",card:{title:"Horoscope today, for all twelve Rashis",eyebrow:"Free horoscopes",kind:"horoscope"}},bv={path:"/blogs",title:"Vedic Astrology Blog: Doshas, Houses & Remedies | Melooha",description:"Plain-language Vedic astrology guides on Sade Sati, Dashas, house placements and doshas, written and reviewed by Meloohaâs chief astrologer.",keywords:"vedic astrology blog, jyotish guides",card:{title:"Vedic astrology, explained plainly",eyebrow:"Blog",kind:"blog"}},bw={path:"/calculators",title:`${bd.CALC_DATA.length} Free Vedic Astrology Calculators | Melooha`,description:"Kundli, Dasha, Nakshatra, Mangal Dosha and more, computed on Swiss Ephemeris data. Run any instrument free, then hand the result to Vaani.",keywords:"free vedic astrology calculators, kundli calculator",card:{title:`${bd.CALC_DATA.length} free Vedic astrology calculators`,eyebrow:"Calculators",kind:"calculator"}},bk={path:"/reports",title:"Personalised Vedic Astrology Reports by Birth Chart | Melooha",description:"Deep one-time readings prepared from your full chart: marriage, career, wealth, education and more, each read across your D1, D9 and D10 with timing and remedies.",keywords:"vedic astrology report by date of birth, kundli report online",card:{title:"Personalised Vedic astrology reports, read from your chart",eyebrow:"Reports",kind:"report"}},bj={path:"/news",title:"Melooha in the News: Press Coverage and Interviews | Melooha",description:"Every television segment, newspaper feature and founder interview that has covered Melooha, from Shark Tank India to The Times of India, linked to the outlet that ran it.",keywords:"melooha news, melooha press coverage",card:{title:"Melooha in the news",eyebrow:"Press",kind:"blog"}},bN={path:"/invoices",title:"Payments and Invoices | Melooha",description:"Every purchase on your Melooha account â question packs, report credits and Artha Sutram â with the tax invoice for each one."},b_={path:"/artha-sutram",title:"Artha Sutram: Your Vedic Wealth Blueprint | Melooha",description:"Meloohaâs premium wealth blueprint: 23 sections in four parts: your wealth score, your wealth yogas and planets, a mahadasha life map with dated windows, and the remedies and action plan that close it.",keywords:"vedic wealth report, dhana yoga analysis",card:{title:"Artha Sutram: your Vedic wealth blueprint",eyebrow:"Wealth blueprint",kind:"report"}};var bE=t.i(74067),bS=t.i(37698);let bC=(0,eO.default)("life-buoy",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m4.93 4.93 4.24 4.24",key:"1ymg45"}],["path",{d:"m14.83 9.17 4.24-4.24",key:"1cb5xl"}],["path",{d:"m14.83 14.83 4.24 4.24",key:"q42g0n"}],["path",{d:"m9.17 14.83-4.24 4.24",key:"bqpfvv"}],["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}]]);var bT=t.i(7250);let bA=(0,eO.default)("mail",[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]]),bI=(0,eO.default)("message-circle",[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]]),bM=(0,eO.default)("message-square",[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]]),bP=(0,eO.default)("receipt",[["path",{d:"M4 2v20l2-1 2 1 2-1 2 1 2-1 2 1 2-1 2 1V2l-2 1-2-1-2 1-2-1-2 1-2-1-2 1Z",key:"q3az6g"}],["path",{d:"M16 8h-6a2 2 0 1 0 0 4h4a2 2 0 1 1 0 4H8",key:"1h4pet"}],["path",{d:"M12 17.5v-11",key:"1jc1ny"}]]);var bO=t.i(54249);let bD="animate-mlh-rise fixed bottom-[74px] left-3 z-[60] max-h-[74vh] overflow-y-auto rounded-[20px] border border-mlh-plum-400/25 bg-[color-mix(in_srgb,var(--mlh-surface)_94%,transparent)] py-1 shadow-[0_28px_70px_rgba(0,0,0,0.7),inset_0_1px_0_rgba(255,255,255,0.04)] backdrop-blur-xl max-md:top-[62px] max-md:right-3 max-md:bottom-auto max-md:left-auto max-md:max-h-[calc(100dvh-74px)]",bR=()=>
122(0,ey.jsx)("span",{"aria-hidden":!0,className:"mlh-corner-glow mlh-corner-ticks pointer-events-none absolute inset-0 overflow-hidden rounded-[20px]"}),b$=({children:t})=>(0,ey.jsx)("div",{className:"text-mlh-faint font-mono text-[9px] tracking-[0.2em] uppercase",children:t});function bz({icon:t,label:r,value:a,onClick:n,chevron:i=!1,active:o=!1,tone:s="default"}){return(0,ey.jsxs)("button",{onClick:n,className:`hover:bg-mlh-plum-500/10 mx-1.5 flex w-[calc(100%-12px)] cursor-pointer items-center gap-3 rounded-lg px-2.5 py-2 text-left transition ${o?"bg-mlh-plum/12":""}`,children:[(0,ey.jsx)(t,{size:14,className:`shrink-0 ${"accent"===s?"text-mlh-plum-300":"text-mlh-plum-400/85"}`}),(0,ey.jsx)("span",{className:`flex-1 font-sans text-[16px] leading-none ${"accent"===s?"text-mlh-plum-300":"text-mlh-text"}`,children:r}),a&&(0,ey.jsx)("span",{className:"text-mlh-plum-300 font-mono text-[10.5px] tracking-[0.08em]",children:a}),i&&(0,ey.jsx)(bS.ChevronRight,{size:13,className:`text-mlh-faint/70 transition-transform ${o?"rotate-90":""}`})]})}function bL({icon:t,label:r,value:a,href:n,onOpen:i}){return(0,ey.jsxs)("a",{href:n,onClick:i,target:"_blank",rel:"noreferrer",className:"hover:bg-mlh-plum-500/10 mx-1.5 flex w-[calc(100%-12px)] items-center gap-3 rounded-lg px-2.5 py-2 text-left transition",children:[(0,ey.jsx)(t,{size:14,className:"text-mlh-plum-400/85 shrink-0"}),(0,ey.jsx)("span",{className:"text-mlh-text flex-1 font-sans text-[16px] leading-none",children:r}),a&&(0,ey.jsx)("span",{className:"text-mlh-plum-300 font-mono text-[10.5px] tracking-[0.08em]",children:a})]})}function bW({icon:t,label:r,href:a,onOpen:n}){return(0,ey.jsxs)(bO.default,{href:a,prefetch:!1,onClick:t=>{t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||(t.preventDefault(),n())},className:"hover:bg-mlh-plum-500/10 mx-1.5 flex w-[calc(100%-12px)] items-center gap-3 rounded-lg px-2.5 py-2 text-left transition",children:[(0,ey.jsx)(t,{size:14,className:"text-mlh-plum-400/85 shrink-0"}),(0,ey.jsx)("span",{className:"text-mlh-text flex-1 font-sans text-[16px] leading-none",children:r}),(0,ey.jsx)(bS.ChevronRight,{size:13,className:"text-mlh-faint/70"})]})}let bU=()=>(0,ey.jsx)("div",{className:"bg-mlh-border my-1 h-px"});function bB({label:t,value:r,action:a,onAction:n,lit:i=!1}){return(0,ey.jsxs)("div",{className:`mx-2 mb-1.5 flex items-center gap-3 rounded-xl border p-3 ${i?"border-mlh-plum-400/35 bg-mlh-plum/[0.12]":"border-mlh-border bg-mlh-bg/40"}`,children:[(0,ey.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,ey.jsx)(b$,{children:t}),(0,ey.jsx)("div",{className:`mt-1.5 truncate font-sans text-[18px] leading-none ${i?"text-mlh-plum-300":"text-white"}`,children:r})]}),(0,ey.jsx)("button",{onClick:n,className:`flex-none cursor-pointer rounded-full px-3.5 py-1.5 font-sans text-[13.5px] whitespace-nowrap transition ${i?"mlh-cta-plum text-white":"border-mlh-plum-400/45 text-mlh-plum-300 hover:border-mlh-plum-400 hover:bg-mlh-plum/15 border"}`,children:a})]})}function bF({user:t,balance:r,onClose:a,onBuyMore:n,onSignOut:i,onBirth:o,onInvoices:s,onLegal:l,freeUsed:d,balanceKnown:c,reportCredits:u,onBuyReports:h}){let[p,m]=(0,ek.useState)(!1),f=[t.dob,function(t){let r=/^(\d{1,2}):(\d{2})$/.exec(t.trim());if(!r)return t;let a=Number(r[1]);return a>23||Number(r[2])>59?t:`${String(a%12||12).padStart(2,"0")}:${r[2]} ${a<12?"AM":"PM"}`}(t.tob),t.pob.split(",")[0]?.trim()].map(t=>t?.trim()).filter(t=>t&&"Not known"!==t).join(" · ")||"Birth details not set";return(0,ey.jsxs)(ey.Fragment,{children:[(0,ey.jsx)("div",{className:"fixed inset-0 z-50",onClick:a}),(0,ey.jsxs)("div",{className:`${bD} w-[min(340px,calc(100vw-24px))]`,children:[(0,ey.jsx)(bR,{}),(0,ey.jsxs)("div",{className:"relative px-3.5 pt-3 pb-3",children:[(0,ey.jsxs)("div",{className:"flex items-center gap-3",children:[(0,ey.jsx)("span",{className:"mlh-plate-lit border-mlh-plum-400/45 text-mlh-plum-300 grid h-[42px] w-[42px] flex-none place-items-center rounded-full border font-sans text-[16px]",children:t.name[0]}),(0,ey.jsxs)("div",{className:"min-w-0",children:[(0,ey.jsx)("div",{className:"truncate font-sans text-[19px] leading-none text-white",children:t.name}),(0,ey.jsx)("div",{className:"text-mlh-faint mt-1.5 truncate font-mono text-[10px] tracking-[0.12em]",children:t.phone})]})]}),(0,ey.jsxs)("div",{className:"border-mlh-plum-400/25 text-mlh-plum-300/90 mt-3 flex items-center gap-2 rounded-lg border px-2.5 py-2",children:[(0,ey.jsx)(e$.SparkleIcon,{size:11,className:"shrink-0"}),(0,ey.jsx)("span",{className:"truncate font-mono text-[9.5px] tracking-[0.14em] uppercase",children:f})]})]}),(0,ey.jsx)(bU,{}),(0,ey.jsx)(bB,{label:"Vaani questions",value:c?eN(r,d):(0,ey.jsx)("span",{className:"bg-mlh-plum-400/15 my-[3px] block h-3 w-32 animate-pulse rounded"}),action:r>0?"Buy more":"Buy questions",onAction:()=>{(0,eb.track)("BUY_QUESTIONS_CLICKED_WEB_EVENT",{placement:"profile_menu",balance:r}),n()},lit:!0}),(0,ey.jsx)(bB,{label:"Reports",value:`${u} available`,action:"Buy reports",onAction:()=>{(0,eb.track)("BUY_REPORTS_CLICKED_WEB_EVENT",{placement:"profile_menu"}),h()}}),(0,ey.jsx)(bU,{}),(0,ey.jsx)(bz,{icon:bE.Calendar,label:"My birth details",chevron:!0,onClick:()=>{(0,eb.track)("BIRTH_DETAILS_EDIT_OPENED_WEB_EVENT"),o()}}),(0,ey.jsx)(bW,{icon:bP,label:"Payments & invoices",href:bN.path,onOpen:s}),(0,ey.jsx)(bz,{icon:bC,label:"Help",chevron:!0,active:p,onClick:()=>{p||(0,eb.track)("SUPPORT_CLICKED_WEB_EVENT",{channel:"help_menu"}),m(t=>!t)}}),(0,ey.jsx)(bU,{}
122),(0,ey.jsx)(bz,{icon:bT.LogOut,label:"Sign out",tone:"accent",onClick:i})]}),p&&(0,ey.jsxs)("div",{className:`${bD} w-[min(320px,calc(100vw-24px))] md:left-[362px]`,children:[(0,ey.jsx)(bR,{}),(0,ey.jsx)("div",{className:"relative px-4 pt-2.5 pb-1",children:(0,ey.jsx)(b$,{children:"Help"})}),(0,ey.jsx)(bz,{icon:bM,label:"FAQs",onClick:()=>{(0,eb.track)("SUPPORT_CLICKED_WEB_EVENT",{channel:"faq"}),bo(y7)}}),(0,ey.jsx)(bU,{}),(0,ey.jsx)(bL,{icon:bI,label:"WhatsApp us",value:"+91 94038 90249",href:"https://wa.me/919403890249",onOpen:()=>(0,eb.track)("SUPPORT_CLICKED_WEB_EVENT",{channel:"whatsapp"})}),(0,ey.jsx)(bL,{icon:bA,label:"Email us",value:"[email protected]",href:"mailto:[email protected]",onOpen:()=>(0,eb.track)("SUPPORT_CLICKED_WEB_EVENT",{channel:"email"})}),(0,ey.jsx)(bU,{}),ba.map(t=>(0,ey.jsx)(bW,{icon:t.icon,label:t.label,href:bn(t.id),onOpen:()=>{(0,eb.track)("LEGAL_OPENED_WEB_EVENT",{doc:t.id,placement:"profile_menu"}),l(t.id)}},t.id))]})]})}var bY=t.i(99813),bV=t.i(82982);let bq=t=>"number"==typeof t&&Number.isFinite(t)?String(t):"string"==typeof t?t.replace(/\s+/g," ").trim():"",bH=t=>t.filter(t=>"string"==typeof t&&""!==t.trim()),bZ=(t,r)=>{let a=bq(r);return a?`${t}: ${a}`:null};function bK(t,r=120){let a=bq(t),n=a.match(/^.+?[.!?](?=\s|$)/)?.[0]??a;if(n.length<=r)return n;let i=n.slice(0,r),o=i.lastIndexOf(" ");return`${(o>0?i.slice(0,o):i).replace(/[,;:\s]+$/,"")}â¦`}let bG=t=>`H${t.house} ${t.rashi} (${t.value})`;function bJ(t){return t.periods.filter(t=>t.current).map(r=>{let a=[r.start,r.end].filter(Boolean).join(" â ");return`${t.label}: ${r.label}${a?` (${a})`:""}, ${r.mark??"running now"}`})}function bX(t,r){let a=bq(t);return a?`I looked for â${a}â under ${r} on Melooha and found nothing. What does my birth chart say about it?`:"What does my birth chart say about this?"}var bQ=t.i(2389),b0=t.i(53601);let b1={ALL:"All",en:"English",hi:"हिनà¥à¤¦à¥"}
122,b2=[["ARTICLES",String(bl.BLOG_INDEX.length)],["REVIEWED BY","Melooha Astrology Team"],["LAST UPDATED",bl.BLOGS_UPDATED]],b5=[12,24,48,0];function b4({a:t,cta:r}){return(0,ey.jsxs)("div",{className:"text-mlh-muted flex items-center gap-2.5 font-mono text-[10px] tracking-[0.12em]",children:[(0,ey.jsx)("span",{children:t.read.toUpperCase()}),(0,ey.jsx)("span",{className:"bg-mlh-plum-400/45 h-[3px] w-[3px] rounded-full"}),(0,ey.jsxs)("span",{children:["UPDATED ",t.modified]}),(0,ey.jsx)("span",{className:"flex-1"}),(0,ey.jsx)("span",{className:"text-mlh-plum-300 transition group-hover:translate-x-0.5",children:r})]})}function b3({selected:t,body:r,openCalculator:a,onAsk:n}){let[i,o]=(0,ek.useState)(""),[s,l]=(0,ek.useState)("ALL"),[d,c]=(0,ek.useState)(24),[u,h]=(0,ek.useState)(1),[p,m]=(0,ek.useState)(!1);if(t&&r)return(0,ey.jsx)(bY.ArticleDetail,{a:t,body:r,openCalculator:a,onAsk:n});let f=i.trim().toLowerCase(),x="ALL"===s?bl.BLOG_INDEX:bl.BLOG_INDEX.filter(t=>t.lang===s),g=f?x.filter(t=>`${t.title} ${t.dek} ${t.category}`.toLowerCase().includes(f)):x,y=new Set(bl.BLOG_INDEX.map(t=>t.lang)).size>1,b=f?null:g[0],v=b?g.slice(1):g,w=0===d?Math.max(v.length,1):d,k=Math.max(1,Math.ceil(v.length/w)),j=Math.min(u,k),N=(j-1)*w,_=v.slice(N,N+w),E=t=>{m(!0),h(t),window.scrollTo({top:0,behavior:"smooth"})};return(0,ey.jsxs)("div",{className:"relative",children:[(0,ey.jsx)("div",{"aria-hidden":!0,className:"mlh-grid-field pointer-events-none sticky top-0 -mb-[100vh] h-screen"}),(0,ey.jsxs)("div",{className:e5.PAGE_FRAME,children:[(0,ey.jsxs)("header",{className:"border-mlh-plum-500/20 flex flex-wrap items-end justify-between gap-x-8 gap-y-5 border-b pb-4",children:[(0,ey.jsxs)("div",{className:"min-w-0",children:[(0,ey.jsx)("div",{className:"text-mlh-faint mlh-in font-mono text-[10px] tracking-[0.22em] [--mlh-in-delay:40ms] [--mlh-in-y:-6px]",children:"MELOOHA / BLOGS"}),(0,ey.jsx)("h1",{className:"mlh-in mt-3.5 font-serif text-[42px] leading-none tracking-[-0.015em] text-white [--mlh-in-delay:80ms] sm:text-[48px]",children:"Blogs"}),(0,ey.jsxs)("p",{className:"text-mlh-text/75 mlh-in mt-3 max-w-[62ch] text-[15.5px] leading-[1.6] text-pretty [--mlh-in-delay:120ms]",children:["Vedic astrology explained the way you would actually ask about it: what Sade Sati does to your Moon sign, when a Dasha turns, why a dosha cancels."," ",(0,ey.jsx)("span",{className:"text-mlh-text/55",children:"Every article is checked against the classical texts by our astrologer before it goes up."})]})]}),(0,ey.jsx)("dl",{className:"border-mlh-plum-500/25 mlh-in flex w-full flex-none flex-col divide-y divide-[color-mix(in_srgb,var(--mlh-plum-400)_20%,transparent)] rounded-2xl border bg-[linear-gradient(135deg,color-mix(in_srgb,var(--mlh-plum-500)_14%,transparent),rgba(255,255,255,.02))] [--mlh-in-delay:140ms] sm:w-auto sm:flex-row sm:divide-x sm:divide-y-0",children:b2.map(([t,r])=>(0,ey.jsxs)("div",{className:"min-w-0 px-5 py-3 sm:px-4 sm:first:pl-5 sm:last:pr-5",children:[(0,ey.jsx)("dt",{className:"text-mlh-faint font-mono text-[9px] tracking-[0.2em]",children:t}),(0,ey.jsxs)("dd",{className:"mt-1.5 flex items-center gap-2 font-serif text-[18px] leading-none text-white",children:["REVIEWED BY"===t&&(0,ey.jsx)("span",{"aria-hidden":!0,className:"mlh-brand-gradient grid h-[22px] w-[22px] flex-none place-items-center rounded-full text-[11px] text-white",children:"M"}),(0,ey.jsx)("span",{className:"min-w-0",children:r})]})]},t))})]}),(0,ey.jsxs)("div",{className:"mlh-in mt-5 flex flex-wrap items-center gap-3 [--mlh-in-delay:160ms]",children:[y&&(0,ey.jsx)("div",{className:"flex flex-wrap gap-2",children:["ALL","en","hi"].map(t=>{let r=s===t,a="ALL"===t?bl.BLOG_INDEX.length:bl.BLOG_INDEX.filter(r=>r.lang===t).length;return(0,ey.jsxs)("button",{onClick:()=>{(0,eb.track)("BLOG_FILTER_CHANGED_WEB_EVENT",{filter:String(t)}),m(!0),l(t),h(1)},"aria-pressed":r,className:`flex cursor-pointer items-baseline gap-1.5 rounded-full border px-3.5 py-[7px] font-sans text-[15.5px] transition ${r?"border-mlh-plum-400/60 bg-mlh-plum-500/20 text-mlh-plum-300":"border-mlh-border text-mlh-muted hover:border-mlh-plum-400/40 hover:text-mlh-text"}`,children:[b1[t],(0,ey.jsx)("span",{className:"font-mono text-[9.5px] opacity-60",children:a})]},t)})}),(0,ey.jsx)("div",{className:"flex-1"}),(0,ey.jsxs)("div",{className:"border-mlh-plum-500/30 bg-mlh-bg/70 focus-within:border-mlh-plum-400/60 flex max-w-[320px] min-w-[240px] flex-[1_1_240px] items-center gap-2.5 rounded-full border px-4 py-2 transition",children:[(0,ey.jsx)(yk.Search,{size:14,className:"text-mlh-plum-400 shrink-0"}),(0,ey.jsx)("input",{value:i,onChange:t=>{m(!0),o(t.target.value),h(1)},placeholder:"Search Sade Sati, Dasha, Nakshatraâ¦","aria-label":"Search articles",className:"text-mlh-text placeholder:text-mlh-faint caret-mlh-plum-400 min-w-0 flex-1 bg-transparent font-sans text-[16px] outline-none"})]})]}),b&&(0,ey.jsxs)(bO.default,{href:(0,bl.blogPath)(b.id),onClick:()=>
122(0,eb.track)("BLOG_OPENED_WEB_EVENT",{slug:b.id,position:0,source:"featured"}),style:e4(200),className:"group border-mlh-plum-400/45 hover:border-mlh-plum-400/80 mlh-in mt-6 grid grid-cols-1 overflow-hidden rounded-[20px] border bg-[linear-gradient(135deg,color-mix(in_srgb,var(--mlh-plum-500)_34%,transparent),color-mix(in_srgb,var(--mlh-plum)_16%,transparent)_52%,rgba(255,255,255,.02)_100%)] shadow-[0_20px_50px_rgba(0,0,0,.5)] transition duration-200 lg:grid-cols-[minmax(0,1.25fr)_minmax(0,1fr)]",children:[(0,ey.jsxs)("div",{className:"flex min-w-0 flex-col justify-between gap-6 p-7 sm:p-8",children:[(0,ey.jsxs)("div",{children:[(0,ey.jsxs)("div",{className:"mb-4 flex items-center gap-3",children:[(0,ey.jsx)("span",{className:"mlh-brand-gradient rounded-[6px] px-2.5 py-[5px] font-mono text-[9px] font-semibold tracking-[0.22em] text-white shadow-[0_0_18px_color-mix(in_srgb,var(--mlh-plum)_55%,transparent)]",children:"LATEST"}),(0,ey.jsxs)("span",{className:"text-mlh-plum-300 font-mono text-[10px] tracking-[0.16em]",children:[b.category.toUpperCase(),"en"!==b.lang&&` / ${b1[b.lang]??b.lang}`]})]}),(0,ey.jsx)("h2",{className:"font-serif text-[32px] leading-[1.08] tracking-[-0.01em] text-balance text-white sm:text-[38px]",children:b.title}),(0,ey.jsx)("p",{className:"text-mlh-text/75 mt-3.5 max-w-[52ch] text-[15px] leading-[1.7] text-pretty",children:b.dek})]}),(0,ey.jsx)(b4,{a:b,cta:"READ â"})]}),(0,ey.jsx)("div",{className:"border-mlh-plum-500/16 relative order-first lg:order-none lg:border-l",children:(0,ey.jsx)(bV.Thumb,{iconKey:b.iconKey,accent:b.accent,image:b.image,size:"panel",priority:!0})})]}),(0,ey.jsxs)("div",{className:"mt-8 mb-4 flex flex-wrap items-center gap-x-3.5 gap-y-3",children:[(0,ey.jsx)("span",{className:"font-serif text-[20px] leading-none text-white",children:f?"Results":"All articles"}),(0,ey.jsx)("span",{className:"hidden h-px flex-1 bg-[linear-gradient(90deg,color-mix(in_srgb,var(--mlh-plum-400)_28%,transparent),transparent)] sm:block"}),(0,ey.jsx)("span",{className:"text-mlh-faint font-mono text-[9.5px] tracking-[0.18em]",children:0===v.length?"NO ARTICLES":`${N+1}â${N+_.length} OF ${v.length}`}),v.length>b5[0]&&(0,ey.jsxs)("div",{className:"border-mlh-plum-500/25 bg-mlh-bg/60 flex items-center gap-1 rounded-full border p-[3px]",children:[(0,ey.jsx)("span",{className:"text-mlh-faint px-2 font-mono text-[9px] tracking-[0.16em]",children:"SHOW"}),b5.map(t=>(0,ey.jsx)("button",{onClick:()=>{(0,eb.track)("BLOG_FILTER_CHANGED_WEB_EVENT",{filter:`size:${t}`}),m(!0),c(t),h(1)},"aria-pressed":d===t,className:`cursor-pointer rounded-full px-2.5 py-1 font-mono text-[10px] tracking-[0.08em] transition ${d===t?"bg-mlh-plum-500/30 text-mlh-plum-100":"text-mlh-muted hover:text-mlh-text"}`,children:0===t?"All":String(t)},t))]})]}),0===v.length?(0,ey.jsxs)("div",{className:"border-mlh-border text-mlh-muted rounded-2xl border border-dashed px-6 py-10 text-center text-[14px]",children:["Nothing here matches â",i.trim(),"â.",n&&(0,ey.jsx)("button",{onClick:()=>{(0,eb.track)("SEARCH_HANDOFF_CLICKED_WEB_EVENT",{surface:"knowledge",length:i.length}),n(bX(i,"Blogs"))},className:"text-mlh-plum-300 ml-1.5 cursor-pointer underline underline-offset-4 hover:brightness-125",children:"Ask Vaani instead"})]}):(0,ey.jsx)("div",{className:"grid grid-cols-[repeat(auto-fill,minmax(310px,1fr))] gap-x-5 gap-y-6 sm:gap-x-6 sm:gap-y-7",children:_.map((t,r)=>(0,ey.jsxs)(bO.default,{href:(0,bl.blogPath)(t.id),onClick:()=>(0,eb.track)("BLOG_OPENED_WEB_EVENT",{slug:t.id,position:r,source:"grid"}),style:p?void 0:e4(150+26*Math.min(r,8)),className:`group border-mlh-plum-500/25 hover:border-mlh-plum-400/60 flex min-w-0 cursor-pointer flex-col overflow-hidden rounded-[18px] border bg-[linear-gradient(180deg,color-mix(in_srgb,var(--mlh-plum-500)_16%,transparent),rgba(255,255,255,.045))] shadow-[0_10px_26px_rgba(0,0,0,.38)] transition duration-200 ease-out [--mlh-in-y:8px] hover:-translate-y-[3px] hover:bg-[linear-gradient(180deg,color-mix(in_srgb,var(--mlh-plum-500)_26%,transparent),rgba(255,255,255,.06))] hover:shadow-[0_20px_44px_rgba(0,0,0,.55)] ${p?"":"mlh-in"}`,children:[(0,ey.jsx)("div",{className:"border-mlh-plum-500/14 relative border-b",children:(0,ey.jsx)(bV.Thumb,{iconKey:t.iconKey,accent:t.accent,image:t.image})}),(0,ey.jsxs)("div",{className:"flex flex-1 flex-col gap-2 px-4 pt-3.5 pb-4",children:[(0,ey.jsx)("h2",{className:"font-serif text-[20px] leading-[1.15] text-balance text-white",children:t.title}),(0,ey.jsx)("p",{className:"text-mlh-muted line-clamp-2 text-[12.5px] leading-[1.55] text-pretty",children:t.dek}),(0,ey.jsx)("div",{className:"flex-1"}),(0,ey.jsx)("div",{className:"border-mlh-border group-hover:border-mlh-plum-400/25 mt-2.5 border-t pt-2.5 transition-colors",children:(0,ey.jsx)(b4,{a:t,cta:"â"})})]})]},t.id))}),k>1&&(0,ey.jsxs)("nav",{"aria-label":"Pagination",className:"mt-8 flex flex-wrap items-center justify-center gap-1.5",children:[(0,ey.jsx)("button",{onClick:()=>{(0,eb.track)("BLOG_PAGE_CHANGED_WEB_EVENT",{page:j-1}),E(j-1)},disabled:1===j,"aria-label":"Previous page",className:"border-mlh-plum-500/25 text-mlh-muted hover:border-mlh-plum-400/60 hover:text-mlh-text disabled:hover:border-mlh-plum-500/25 grid h-9 w-9 cursor-pointer place-items-center rounded-full border transition disabled:cursor-default disabled:opacity-35",children:(0,ey.jsx)(bQ.ChevronLeft,{size:15})}),(function(t,r){if(r<=7)return Array.from({length:r},(t,r)=>r+1);let a=new Set([1,2,r-1,r,t-1,t,t+1].filter(t=>t>=1&&t<=r)),n=[],i=0;for(let t of[...a].sort((t,r)=>t-r))t-i>1&&n.push(null),n.push(t),i=t;return n})(j,k).map((t,r)=>
122null===t?(0,ey.jsx)("span",{"aria-hidden":!0,className:"text-mlh-faint px-1 font-mono text-[11px]",children:"â¦"},`gap-${r}`):(0,ey.jsx)("button",{onClick:()=>{(0,eb.track)("BLOG_PAGE_CHANGED_WEB_EVENT",{page:t}),E(t)},"aria-label":`Page ${t}`,"aria-current":t===j?"page":void 0,className:`h-9 min-w-9 cursor-pointer rounded-full border px-3 font-mono text-[11px] transition ${t===j?"border-mlh-plum-400/70 bg-mlh-plum-500/28 text-mlh-plum-100":"border-mlh-plum-500/25 text-mlh-muted hover:border-mlh-plum-400/60 hover:text-mlh-text"}`,children:t},t)),(0,ey.jsx)("button",{onClick:()=>{(0,eb.track)("BLOG_PAGE_CHANGED_WEB_EVENT",{page:j+1}),E(j+1)},disabled:j===k,"aria-label":"Next page",className:"border-mlh-plum-500/25 text-mlh-muted hover:border-mlh-plum-400/60 hover:text-mlh-text disabled:hover:border-mlh-plum-500/25 grid h-9 w-9 cursor-pointer place-items-center rounded-full border transition disabled:cursor-default disabled:opacity-35",children:(0,ey.jsx)(bS.ChevronRight,{size:15})})]}),n&&(0,ey.jsxs)("div",{className:"border-mlh-plum-400/50 mlh-in mt-8 flex flex-wrap items-center gap-x-5 gap-y-4 rounded-2xl border bg-[linear-gradient(120deg,color-mix(in_srgb,var(--mlh-plum-500)_22%,transparent),rgba(255,255,255,.02))] px-5 py-[18px] shadow-[0_18px_44px_rgba(0,0,0,.45)] [--mlh-in-delay:320ms]",children:[(0,ey.jsx)("span",{"aria-hidden":!0,className:"border-mlh-plum-400/35 mlh-plate-lit text-mlh-plum-300 grid h-[38px] w-[38px] flex-none place-items-center rounded-full border",children:(0,ey.jsx)(b0.Sparkles,{size:17})}),(0,ey.jsxs)("div",{className:"min-w-[240px] flex-1",children:[(0,ey.jsx)("div",{className:"font-serif text-[21px] leading-tight text-white",children:"Every article, run against your own chart"}),(0,ey.jsx)("p",{className:"text-mlh-muted mt-1.5 font-sans text-[13.5px] leading-[1.55] text-pretty",children:"Ask Vaani what Sade Sati, your Dasha or your Nakshatra actually mean for your birth chart."})]}),(0,ey.jsx)("button",{type:"button",onClick:()=>{(0,eb.track)("ASK_HANDOFF_CLICKED_WEB_EVENT",{from:"knowledge"}),n("I have been reading the Melooha blogs. What does my own birth chart say about the periods running for me now?")},className:"mlh-cta-plum flex-none cursor-pointer rounded-full px-8 py-3 text-center font-sans text-[16.5px] font-semibold whitespace-nowrap text-white transition",children:"Ask Vaani"})]})]})]})}function b6({chart:t,caption:r}){let a=Math.max(...t.houses.map(t=>t.value));return(0,ey.jsxs)("figure",{className:"border-mlh-plum-500/20 bg-mlh-bg/40 rounded-xl border p-4 sm:p-5",children:[(0,ey.jsxs)("svg",{viewBox:"0 0 200 200",className:"border-mlh-plum-500/35 mx-auto block w-full max-w-[300px] border",role:"img","aria-label":`${t.label} by house, ascendant ${t.lagna}, total ${t.total} bindus`,children:[(0,ey.jsx)("line",{x1:"0",y1:"0",x2:"200",y2:"200",stroke:"var(--mlh-plum-400)",strokeOpacity:"0.3",strokeWidth:"1"}),(0,ey.jsx)("line",{x1:"200",y1:"0",x2:"0",y2:"200",stroke:"var(--mlh-plum-400)",strokeOpacity:"0.3",strokeWidth:"1"}),(0,ey.jsx)("polygon",{points:"100,0 200,100 100,200 0,100",fill:"none",stroke:"var(--mlh-plum-400)",strokeOpacity:"0.3",strokeWidth:"1"}),t.houses.map((t,r)=>{let n=tc[r],i=t.value===a;return(0,ey.jsxs)("g",{children:[i&&(0,ey.jsx)("polygon",{points:n.poly,fill:"var(--mlh-plum-400)",fillOpacity:"0.18"}),(0,ey.jsx)("text",{x:n.cx,y:n.cy-5,textAnchor:"middle",fontSize:"6.5",letterSpacing:"0.6",fill:"var(--mlh-text)",fillOpacity:"0.35",fontFamily:"var(--font-mono)",children:t.short.toUpperCase()}),(0,ey.jsx)("text",{x:n.cx,y:n.cy+8,textAnchor:"middle",fontSize:"12",fill:i?"var(--mlh-plum-300)":"var(--mlh-text)",fillOpacity:i?1:.85,fontFamily:"var(--font-mono)",children:t.value})]},t.house)})]}),(0,ey.jsx)("figcaption",{className:"text-mlh-faint mt-4 text-center font-mono text-[10px] tracking-[0.14em]",children:(r??`House 1 \xb7 ${t.lagna} Lagna \xb7 ${t.total} bindus`).toUpperCase()})]})}function b8({tabs:t,calcId:r}){let[a,n]=(0,ek.useState)(0),i=t.charts[a]??t.charts[0];return i?(0,ey.jsxs)("div",{children:[(0,ey.jsx)("div",{role:"tablist","aria-label":t.label,className:"mb-3 flex flex-wrap gap-2",children:t.charts.map((t,i)=>{let o=i===a;return(0,ey.jsx)("button",{type:"button",role:"tab","aria-selected":o,onClick:()=>{(0,eb.track)("CALCULATOR_CHART_TAB_CHANGED_WEB_EVENT",{calc_id:r,tab:t.label}),n(i)}
122,className:`cursor-pointer rounded-full border px-[14px] py-1.5 font-sans text-[14px] leading-[1.4] transition ${o?"border-mlh-plum-400/60 bg-mlh-plum-500/20 text-mlh-plum-100":"border-mlh-border text-mlh-muted hover:border-mlh-plum-400/40 hover:text-mlh-text"}`,children:t.label},t.label)})}),(0,ey.jsx)(b6,{chart:i,caption:`${i.label} \xb7 ${i.total} bindus \xb7 house 1 ${i.lagna}`}),t.note&&(0,ey.jsx)("p",{className:"text-mlh-muted mt-3 font-sans text-[14.5px] leading-[1.6] text-pretty",children:t.note})]}):null}var b9=t.i(30151);function b7({matrix:t}){let r=Math.max(...t.rows.map(t=>t.total));return(0,ey.jsx)("div",{className:"border-mlh-plum-500/20 overflow-hidden rounded-xl border",children:(0,ey.jsx)("div",{className:"overflow-x-auto",children:(0,ey.jsxs)("table",{className:"w-full border-collapse text-right font-mono text-[13px] tabular-nums",children:[(0,ey.jsx)("caption",{className:"sr-only",children:t.label}),(0,ey.jsx)("thead",{children:(0,ey.jsxs)("tr",{className:"border-mlh-plum-500/15 border-b",children:[(0,ey.jsx)("th",{scope:"col",className:"bg-mlh-bg text-mlh-faint sticky left-0 z-10 px-4 py-2.5 text-left text-[9.5px] font-normal tracking-[0.22em]",children:"RASHI"}),t.columns.map(t=>(0,ey.jsx)("th",{scope:"col",className:"text-mlh-faint px-3 py-2.5 text-[9.5px] font-normal tracking-[0.16em] whitespace-nowrap",children:t.toUpperCase()},t)),(0,ey.jsx)("th",{scope:"col",className:"text-mlh-plum-400 px-4 py-2.5 text-[9.5px] font-normal tracking-[0.16em] whitespace-nowrap",children:t.totalLabel.toUpperCase()})]})}),(0,ey.jsx)("tbody",{className:"divide-mlh-plum-500/10 divide-y",children:t.rows.map(a=>{let n=a.total===r;return(0,ey.jsxs)("tr",{className:n?"bg-mlh-plum-500/12":"",children:[(0,ey.jsxs)("th",{scope:"row",className:`sticky left-0 z-10 px-4 py-2 text-left font-sans text-[14.5px] font-normal whitespace-nowrap ${n?"text-mlh-plum-300 bg-[color-mix(in_srgb,var(--mlh-plum-500)_12%,var(--mlh-bg))]":"text-mlh-text bg-mlh-bg"}`,children:[a.label,a.mark&&(0,ey.jsx)("span",{className:"text-mlh-faint ml-2 font-mono text-[9px] tracking-[0.18em]",children:a.mark})]}),a.cells.map((r,a)=>(0,ey.jsx)("td",{className:"text-mlh-muted px-3 py-2",children:r},t.columns[a])),(0,ey.jsx)("td",{className:`px-4 py-2 ${n?"text-mlh-plum-300":"text-mlh-text"}`,children:a.total})]},a.label)})}),(0,ey.jsx)("tfoot",{children:(0,ey.jsxs)("tr",{className:"border-mlh-plum-500/20 bg-mlh-bg/60 border-t",children:[(0,ey.jsx)("th",{scope:"row",className:"bg-mlh-bg text-mlh-faint sticky left-0 z-10 px-4 py-2.5 text-left text-[9.5px] font-normal tracking-[0.22em]",children:"TOTAL"}),t.totals.map((r,a)=>(0,ey.jsx)("td",{className:"text-mlh-faint px-3 py-2.5",children:r},t.columns[a])),(0,ey.jsx)("td",{className:"text-mlh-plum-300 px-4 py-2.5",children:t.grandTotal})]})})]})})})}let ve={A:1,I:1,J:1,Q:1,Y:1,B:2,K:2,R:2,C:3,G:3,L:3,S:3,D:4,M:4,T:4,E:5,H:5,N:5,X:5,U:6,V:6,W:6,O:7,Z:7,F:8,P:8},vt=["","Sun","Moon","Jupiter","Rahu","Mercury","Venus","Ketu","Saturn","Mars"];function vr(t){let r=Math.abs(Math.trunc(t));for(;r>9;)r=String(r).split("").reduce((t,r)=>t+Number(r),0);return r}let va=[["Free to run","Yes","Yes","Yes"],["Swiss Ephemeris precision","Yes","Yes","Partial"],["Reads your own chart, not a sun sign","Yes","Partial","No"],["AI interpretation (Vaani)","Yes","No","No"],["Astrologer-reviewed logic","Yes","Partial","Partial"]],vn="border-mlh-plum-500/25 bg-mlh-bg/70 text-mlh-text placeholder:text-mlh-faint caret-mlh-plum-400 focus:border-mlh-plum-400/60 focus:bg-mlh-bg w-full rounded-xl border px-[13px] py-[11px] font-sans text-[16px] [color-scheme:dark] transition outline-none";function vi(t,r){let a={};for(let n of t.fields){if(!n.key){n.self&&(a[n.label]=function(t){if(!t)return"";let r=t.tob&&!/not known/i.test(t.tob)?t.tob:"";return[t.dob,r,t.pob].filter(Boolean).join(", ")}(r));continue}a[n.key]="date"===n.key?g1(r?.dob??"")??"":"time"===n.key?g2(r?.tob??"")??"":"name"===n.key?r?.name??"":r?.pob??""}return a}function vo({children:t}){return(0,ey.jsxs)("h2",{className:"flex items-center gap-4 font-serif text-[27px] leading-tight tracking-[-0.012em] text-white sm:text-[30px]",children:[(0,ey.jsx)("span",{className:"min-w-0",children:t}
122),(0,ey.jsx)("span",{"aria-hidden":!0,className:"hidden h-px flex-1 bg-[linear-gradient(90deg,color-mix(in_srgb,var(--mlh-plum-400)_40%,transparent),transparent)] sm:block"})]})}function vs({children:t,className:r=""}){return(0,ey.jsx)("span",{className:`block font-mono text-[9.5px] tracking-[0.22em] ${r}`,children:t})}function vl({value:t,own:r=!1}){let a="Yes"===t,n="Partial"===t;return(0,ey.jsxs)("span",{className:"flex items-center gap-2.5",children:[(0,ey.jsx)("span",{className:`grid h-[13px] w-[13px] flex-none place-items-center rounded-full border ${a?"border-mlh-plum-400/75":n?"border-mlh-plum-400/45":"border-mlh-border"}`,children:(0,ey.jsx)("span",{className:`block h-[7px] w-[7px] rounded-full ${a?"bg-mlh-plum-400":n?"bg-mlh-plum-400 [clip-path:inset(0_50%_0_0)]":""}`})}),(0,ey.jsx)("span",{className:r?"text-mlh-plum-100":a?"text-mlh-muted":"text-mlh-faint",children:t})]})}function vd({calc:t,onBack:r,onOpen:a,onAsk:n,live:i=!1,user:o,locked:s=!1,gateReady:l=!0,onRequireAuth:d,onComputed:c}){let[u,h]=(0,ek.useState)("idle"),[p,m]=(0,ek.useState)(()=>vi(t,o)),[f,x]=(0,ek.useState)(null),[g,y]=(0,ek.useState)(null),[b,v]=(0,ek.useState)(null),w=(0,ek.useRef)(null),k=(0,ek.useRef)(new Set);(0,ek.useEffect)(()=>()=>{w.current&&clearTimeout(w.current)},[]),(0,ek.useEffect)(()=>{if(!o)return;let r=vi(t,o);m(t=>{let a={...t},n=!1;for(let[t,i]of Object.entries(r))!i||k.current.has(t)||a[t]?.trim()||(a[t]=i,n=!0);return n?a:t})},[t,o]);let j="numerology"===t.engine,N=j||i&&!!t.engine,_=(t,r)=>{k.current.add(t),m(a=>({...a,[t]:r}))},E=async()=>{if("running"===u)return;if(!N){h("running"),w.current&&clearTimeout(w.current),w.current=setTimeout(()=>h("done"),750);return}if(s||!l){s&&((0,eb.track)("SIGNIN_GATE_SHOWN_WEB_EVENT",{trigger:"calculator"}),d?.());return}(0,eb.track)("CALCULATOR_RUN_WEB_EVENT",{calc_id:t.id,recompute:"done"===u});let r=Date.now();h("running"),v(null);try{if(!p.date)throw Error("Enter your date of birth.");if(j){let a=function(t,r){let a=function(t,r){let a=/^(\d{4})-(\d{2})-(\d{2})$/.exec(t.trim());if(!a)return null;let[n,i,o]=[Number(a[1]),Number(a[2]),Number(a[3])],s=new Date(Date.UTC(n,i-1,o));if(s.getUTCFullYear()!==n||s.getUTCMonth()!==i-1||s.getUTCDate()!==o)return null;let l=`${a[1]}${a[2]}${a[3]}`.split("").reduce((t,r)=>t+Number(r),0),d=r.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toUpperCase().replace(/[^A-Z]/g,""),c=d.length?[...d].reduce((t,r)=>t+(ve[r]??0),0):null,u=vr(l);return{birth:vr(o),life:u,dateTotal:l,name:null===c?null:vr(c),compound:c,ruler:vt[u]??""}}(t,r);if(!a)return null;let n=[{label:"Life path",value:String(a.life)},{label:"Birth number",value:String(a.birth)},...null===a.name?[]:[{label:"Name number",value:String(a.name)}],{label:"Ruling planet",value:a.ruler}],i=`The digits of your birth date total ${a.dateTotal}, reducing to ${a.life}, ruled by ${a.ruler}.`;return{rows:n,note:i+(null===a.compound?" A name in Latin letters is needed for the Chaldean name number.":` Your name totals ${a.compound} in the Chaldean mapping, reducing to ${a.name}.`),groups:[]}}(p.date,p.name??"");if(!a)throw Error("That date is not on the calendar.");o||await (0,il.spendFreeUse)("calculator"),y(a),(0,eb.track)("CALCULATOR_RESULT_SHOWN_WEB_EVENT",{calc_id:t.id,ms:Date.now()-r}),h("done"),c?.();return}let a=await (0,is.resolvePlace)(f,p.place??"");if(a?.lat==null||null==a.long)throw Error("Pick your place of birth from the suggestions so we can locate it.");y(await (0,is.computeCalculator)(t.id,{date:p.date,time:p.time??"",place:a.label,lat:a.lat,lon:a.long,timezone:a.timezone,...o?.gender?{gender:o.gender}:{},userId:o?.id??(0,iu.getDeviceId)()})),(0,eb.track)("CALCULATOR_RESULT_SHOWN_WEB_EVENT",{calc_id:t.id,ms:Date.now()-r}),h("done"),c?.()}catch(r){if(r instanceof il.FreeUseExhaustedError){(0,eb.track)("SIGNIN_GATE_SHOWN_WEB_EVENT",{trigger:"calculator"}),h(g?"done":"idle"),d?.();return}(0,eb.track)("CALCULATOR_FAILED_WEB_EVENT",{calc_id:t.id,reason:r instanceof Error?r.message:"The computation failed."}),v((0,t3.resolveNotice)("calc.run-failed",{cause:r})),h(g?"done":"idle")}},S=g?.rows??t.result,C=g?g.note:t.note,T=()=>((0,eb.track)("ASK_HANDOFF_CLICKED_WEB_EVENT",{from:"calculators",id:t.
122id}),n?.(function({calc:t,output:r,birth:a,user:n}){var i,o;let s,l,d,c,u=t.title.replace(/\s+calculator$/i,"");if(!r)return`What is my ${u}, and what does it mean for me?`;let h=bq(a?.time)||bq(n?.tob),p=bH([bq(a?.date)||bq(n?.dob),/not known/i.test(h)?"":h,bq(a?.place)||bq(n?.pob)]).join(", "),m=bH([...r.rows.map(t=>[bq(t.label),bq(t.value)]).filter(([,t])=>""!==t).slice(0,6).map(([t,r])=>`${t}: ${r}`),r.chart&&((s=[...(i=r.chart).houses].sort((t,r)=>r.value-t.value)).length?`${i.label}: lagna ${i.lagna}, total ${i.total}; strongest ${s.slice(0,2).map(bG).join(", ")}; weakest ${s.slice(-2).reverse().map(bG).join(", ")}`:""),r.matrix&&(d=(l=[...(o=r.matrix).rows].sort((t,r)=>r.total-t.total))[0],c=l[l.length-1],d&&c?`${o.label}: total ${o.grandTotal}; strongest ${d.label} (${d.total}), weakest ${c.label} (${c.total})`:""),r.chartTabs&&`${r.chartTabs.label}: ${r.chartTabs.charts.map(t=>`${t.label} ${t.total}`).join(", ")}`,...r.groups.flatMap(bJ),r.note&&`Note: ${bK(r.note)}`]);return bH([`My ${u} result${p?` (born ${p})`:""}:`,...m.map(t=>`- ${t}`),"What does this mean for me, and what should I do about it?"]).join("\n")}({calc:t,output:g,birth:{date:g0(p.date??"")||(p.date??""),time:p.time??"",place:f?.label??p.place??""},user:o})));return(0,ey.jsxs)("div",{className:"relative",children:[(0,ey.jsx)("div",{"aria-hidden":!0,className:"mlh-grid-field pointer-events-none sticky top-0 -mb-[100vh] h-screen"}),(0,ey.jsxs)("div",{className:`${e5.PAGE_FRAME} w-full max-w-[1560px]`,children:[(0,ey.jsxs)("nav",{"aria-label":"Breadcrumb",className:"mlh-in flex items-center justify-between gap-4 [--mlh-in-delay:40ms] [--mlh-in-y:-6px]",children:[(0,ey.jsxs)("div",{className:"text-mlh-faint flex min-w-0 items-center gap-2.5 font-mono text-[10px] tracking-[0.22em]",children:[(0,ey.jsx)(bO.default,{href:"/calculators",prefetch:!1,onClick:t=>{t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||(t.preventDefault(),r())},className:"text-mlh-plum-400 hover:text-mlh-plum-300 cursor-pointer transition",children:"CALCULATORS"}),(0,ey.jsx)("span",{"aria-hidden":!0,className:"text-mlh-plum-500/60",children:"/"}),(0,ey.jsx)("span",{className:"truncate",children:t.title.toUpperCase()})]}),(0,ey.jsxs)("button",{onClick:r,className:"text-mlh-plum-300 hover:text-mlh-plum-100 hidden flex-none cursor-pointer items-center gap-2 font-sans text-[14.5px] transition sm:flex",children:[(0,ey.jsx)("span",{"aria-hidden":!0,className:"text-[15px] leading-none",children:"â"}),"All calculators"]})]}),(0,ey.jsxs)("header",{className:"border-mlh-plum-500/20 mlh-in mt-5 border-b pb-7 [--mlh-in-delay:80ms]",children:[(0,ey.jsxs)("div",{className:"flex items-start gap-4 sm:gap-5",children:[(0,ey.jsx)("span",{className:"mlh-plate-art grid h-[54px] w-[54px] flex-none place-items-center overflow-hidden rounded-[16px] sm:h-[62px] sm:w-[62px]",children:(0,ey.jsx)(b9.CalcIcon,{calc:t,px:50,priority:!0})}),(0,ey.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,ey.jsx)("h1",{className:"font-serif text-[32px] leading-[1.05] tracking-[-0.015em] text-balance text-white sm:text-[44px]",children:t.title}),(0,ey.jsxs)("div",{className:"text-mlh-faint mt-3.5 flex flex-wrap items-center gap-x-3 gap-y-2 font-mono text-[10px] tracking-[0.16em]",children:[(0,ey.jsx)("span",{children:(0,bd.catLabel)(t.cat).toUpperCase()}),(0,ey.jsx)("span",{"aria-hidden":!0,className:"text-mlh-plum-500/60 hidden sm:inline",children:"·"}),(0,ey.jsx)("span",{children:`UPDATED ${g0(bd.CALC_UPDATED).toUpperCase()}`})]})]})]}),(0,ey.jsx)("p",{className:"quick-answer text-mlh-text mt-6 max-w-[92ch] font-sans text-[17px] leading-[1.6] text-pretty sm:text-[18px]",children:t.quick}),(0,ey.jsxs)("div",{className:"border-mlh-plum-500/15 mt-7 flex items-center gap-3 border-t pt-5",children:[(0,ey.jsx)("span",{className:"border-mlh-plum-400/35 mlh-plate-lit text-mlh-plum-300 grid h-[34px] w-[34px] flex-none place-items-center rounded-full border font-sans text-[15px]",children:"V"}),(0,ey.jsxs)("span",{className:"min-w-0",children:[(0,ey.jsx)("span",{className:"text-mlh-text block font-sans text-[17px] leading-tight",children:"Reviewed by Dr.
122Vineeta Chandrashekhar Phatak"}),(0,ey.jsx)(vs,{className:"text-mlh-faint mt-1.5",children:"CHIEF ASTROLOGER · MELOOHA"})]})]})]}),(0,ey.jsxs)("div",{className:"mt-8 grid grid-cols-1 items-start gap-x-8 gap-y-9 lg:grid-cols-[minmax(0,1fr)_320px] xl:gap-x-10",children:[(0,ey.jsxs)("div",{className:"flex min-w-0 flex-col gap-9",children:[(0,ey.jsxs)("form",{onSubmit:t=>{t.preventDefault(),E()},className:"border-mlh-plum-400/35 mlh-corner-glow mlh-corner-ticks mlh-in relative overflow-hidden rounded-2xl border bg-[linear-gradient(180deg,color-mix(in_srgb,var(--mlh-plum-500)_13%,transparent),rgba(255,255,255,.012))] shadow-[0_22px_54px_rgba(0,0,0,.45)] [--mlh-glow-size:190px] [--mlh-glow-top:-60px] [--mlh-in-delay:140ms]",children:[(0,ey.jsx)("div",{className:"border-mlh-plum-500/20 border-b px-5 py-3 sm:px-6",children:(0,ey.jsx)(vs,{className:"text-mlh-plum-300",children:"CONSOLE"})}),(0,ey.jsxs)("div",{className:"p-5 sm:p-6",children:[(0,ey.jsx)("div",{className:"grid grid-cols-2 gap-3.5",children:t.fields.map(t=>(0,ey.jsx)("div",{className:`min-w-0 ${1===t.w?"col-span-2 sm:col-span-1":"col-span-2"}`,children:"place"===t.key?(0,ey.jsxs)("div",{children:[(0,ey.jsx)(vs,{className:"text-mlh-faint mb-1.5",children:t.label.toUpperCase()}),(0,ey.jsx)(yE,{value:p.place??"",onChange:t=>_("place",t),onSelect:x,live:i,withIcon:!1,placeholder:t.placeholder,className:vn})]}):"date"===t.type||"time"===t.type?(0,ey.jsxs)("div",{children:[(0,ey.jsx)(vs,{className:"text-mlh-faint mb-1.5",children:t.label.toUpperCase()}),"date"===t.type?(0,ey.jsx)(yo,{value:p[t.key??t.label]??"",onChange:r=>_(t.key??t.label,r),ariaLabel:t.label,placeholder:t.placeholder,className:vn}):(0,ey.jsx)(yO,{value:p[t.key??t.label]??"",onChange:r=>_(t.key??t.label,r),ariaLabel:t.label,placeholder:t.placeholder,className:vn})]}):(0,ey.jsxs)("label",{className:"block",children:[(0,ey.jsx)(vs,{className:"text-mlh-faint mb-1.5",children:t.label.toUpperCase()}),(0,ey.jsx)("input",{type:"text",placeholder:t.placeholder,value:p[t.key??t.label]??"",onChange:r=>_(t.key??t.label,r.target.value),className:vn})]})},t.label))}),(0,ey.jsx)("button",{type:"submit","aria-busy":"running"===u,className:`mt-[18px] w-full cursor-pointer rounded-full py-3 text-center font-sans text-[16.5px] font-semibold transition ${"running"===u?"bg-mlh-plum-500/20 text-mlh-plum-300 animate-pulse":"mlh-cta-plum text-white"}`,children:"running"===u?"Computingâ¦":s?"Sign in to compute":l?"done"===u?"Recompute":"Compute":"Checkingâ¦"}),b&&(0,ey.jsx)("div",{className:"mt-3",children:(0,ey.jsx)(yb,{notice:b})})]}),"done"===u&&(0,ey.jsxs)("section",{className:"border-mlh-plum-500/20 bg-mlh-bg/50 animate-mlh-reveal border-t",children:[(0,ey.jsxs)("div",{className:"border-mlh-plum-500/12 flex items-center justify-between gap-4 border-b px-5 py-3 sm:px-6",children:[(0,ey.jsx)(vs,{className:"text-mlh-plum-300",children:"YOUR RESULT"}),(0,ey.jsxs)("span",{className:`inline-flex flex-none items-center gap-2 rounded-full border px-2.5 py-[5px] font-mono text-[9.5px] tracking-[0.22em] ${g?"border-mlh-success/35 bg-mlh-success/10 text-mlh-success":"border-mlh-border text-mlh-faint"}`,children:[(0,ey.jsx)("span",{"aria-hidden":!0,className:`h-[5px] w-[5px] flex-none rounded-full ${g?"bg-mlh-success":"bg-mlh-faint"}`}),g?"COMPUTED":"SAMPLE OUTPUT"]})]}),S.length>0&&(0,ey.jsxs)("div",{className:"bg-mlh-plum-500/15 grid grid-cols-1 gap-px sm:grid-cols-2",children:[S.map(t=>(0,ey.jsxs)("div",{className:"bg-mlh-bg flex min-h-[92px] flex-col justify-center px-5 py-4",children:[(0,ey.jsxs)("span",{className:"flex items-center gap-2",children:[(0,ey.jsx)("span",{"aria-hidden":!0,className:"bg-mlh-plum-400/70 h-[9px] w-px flex-none"}),(0,ey.jsx)(vs,{className:"text-mlh-faint",children:t.label.toUpperCase()})]}),(0,ey.jsx)("div",{className:"mt-2 font-sans text-[20px] leading-tight tracking-[-0.01em] text-white",children:t.value})]},t.label)),S.length%2==1&&(0,ey.jsx)("div",{"aria-hidden":!0,className:"bg-mlh-bg hidden sm:block"})]}),(0,ey.jsxs)("div",{className:"px-5 py-4 sm:px-6",children:[C&&(0,ey.jsx)("p",{className:"border-mlh-plum-400/45 text-mlh-muted border-l-2 pl-3.5 font-sans text-[15px] leading-[1.6] text-pretty",children:C}),g?.chart&&(0,ey.jsxs)("div",{className:"mt-5",children:[(0,ey.jsx)(vs,{className:"text-mlh-plum-400 mb-2",children:`${g.chart.label} by house`.toUpperCase()}),(0,ey.jsx)(b6,{chart:g.chart})]}),g?.matrix&&(0,ey.jsxs)("div",{className:"mt-5",children:[(0,ey.jsx)(vs,{className:"text-mlh-plum-400 mb-2",children:g.matrix.label.toUpperCase()}),(0,ey.jsx)(b7,{matrix:g.matrix})]}),g?.chartTabs&&(0,ey.jsxs)("div",{className:"mt-5",children:[(0,ey.jsx)(vs,{className:"text-mlh-plum-400 mb-2",children:g.chartTabs.label.toUpperCase()}),(0,ey.jsx)(b8,{tabs:g.chartTabs,calcId:t.id})]}),g?.groups.map(t=>(0,ey.jsxs)("div",{className:"mt-5",children:[(0,ey.jsx)(vs,{className:"text-mlh-plum-400 mb-2",children:t.label.toUpperCase()}),(0,ey.jsx)("div",{className:"border-mlh-plum-500/20 divide-mlh-plum-500/10 divide-y overflow-hidden rounded-xl border",children:t.periods.map(t=>(0,ey.jsxs)("div",{className:`flex flex-wrap items-baseline justify-between gap-x-4 gap-y-1 px-4 py-2.5 ${t.current?"bg-mlh-plum-500/12":""}`,children:[(0,ey.jsxs)("span",{className:`font-sans text-[15px] ${t.current?"text-mlh-plum-300":"text-mlh-text"}`,children:[t.label,t.current&&(0,ey.jsx)("span",{className:"ml-2 font-mono text-[9px] tracking-[0.18em]",children:t.mark??"RUNNING"})]}),(0,ey.jsx)("span",{className:"text-mlh-faint font-mono text-[10px] tracking-[0.14em]",children:[t.start,t.end].filter(
122Boolean).join(" â ")})]},`${t.label}-${t.start}`))})]},t.label)),n&&(0,ey.jsxs)("div",{className:"border-mlh-plum-500/20 mt-5 flex flex-col gap-3.5 border-t pt-4 sm:flex-row sm:items-center sm:justify-between sm:gap-6",children:[(0,ey.jsx)("p",{className:"text-mlh-muted max-w-[48ch] font-sans text-[14.5px] leading-[1.55] text-pretty",children:"You have the numbers, and the meaning is the good part. Vaani reads this beside everything else in your chart and tells you what it means for you right now."}),(0,ey.jsxs)("button",{type:"button",onClick:T,className:"mlh-cta-plum inline-flex w-full flex-none cursor-pointer items-center justify-center gap-2 rounded-full px-6 py-3 font-sans text-[15.5px] font-semibold text-white sm:w-auto",children:["Show me what this means",(0,ey.jsx)("span",{"aria-hidden":!0,className:"font-mono text-[12px]",children:"â"})]})]})]})]})]}),(0,ey.jsxs)("section",{children:[(0,ey.jsx)(vo,{children:"How it works"}),(0,ey.jsx)("ol",{className:"mt-4",children:t.how.map((t,r)=>(0,ey.jsxs)("li",{className:"border-mlh-plum-500/12 grid grid-cols-[26px_minmax(0,1fr)] gap-x-3 border-b py-3 first:pt-0 last:border-b-0 last:pb-0",children:[(0,ey.jsx)("span",{className:"text-mlh-plum-300 pt-[5px] font-mono text-[10.5px] tracking-[0.16em]",children:String(r+1).padStart(2,"0")}),(0,ey.jsx)("p",{className:"text-mlh-text max-w-[72ch] font-sans text-[16.5px] leading-[1.55] text-pretty",children:t})]},r))})]}),(0,ey.jsxs)("section",{children:[(0,ey.jsx)(vo,{children:`Understanding ${t.title}`}),(0,ey.jsx)("div",{className:"mt-4",children:t.faqs.map(t=>(0,ey.jsxs)("div",{className:"border-mlh-plum-500/12 border-b py-4 first:pt-0 last:border-b-0 last:pb-0",children:[(0,ey.jsx)("h3",{className:"font-serif text-[19px] leading-snug text-white sm:text-[20px]",children:t.q}),(0,ey.jsx)("p",{className:"text-mlh-muted mt-2 max-w-[78ch] font-sans text-[16.5px] leading-[1.6] text-pretty",children:t.a})]},t.q))})]}),(0,ey.jsxs)("section",{children:[(0,ey.jsx)(vo,{children:"How Melooha compares"}),(0,ey.jsx)("div",{className:"border-mlh-plum-500/20 mt-6 overflow-x-auto rounded-2xl border",children:(0,ey.jsxs)("div",{className:"min-w-[520px]",children:[(0,ey.jsxs)("div",{className:"text-mlh-faint bg-mlh-plum-500/12 grid grid-cols-[minmax(180px,2fr)_repeat(3,minmax(104px,1fr))] font-mono text-[9.5px] tracking-[0.14em]",children:[(0,ey.jsx)("span",{className:"px-4 py-3",children:"FEATURE"}),(0,ey.jsx)("span",{className:"text-mlh-plum-100 bg-mlh-plum-500/20 px-4 py-3",children:"MELOOHA"}),(0,ey.jsx)("span",{className:"px-4 py-3",children:"ASTROSAGE"}),(0,ey.jsx)("span",{className:"px-4 py-3",children:"ASTROTALK"})]}),va.map(t=>(0,ey.jsxs)("div",{className:"border-mlh-plum-500/10 grid grid-cols-[minmax(180px,2fr)_repeat(3,minmax(104px,1fr))] border-t font-sans text-[15px]",children:[(0,ey.jsx)("span",{className:"text-mlh-text px-4 py-3.5",children:t[0]}),(0,ey.jsx)("span",{className:"bg-mlh-plum-500/8 px-4 py-3.5",children:(0,ey.jsx)(vl,{value:t[1],own:!0})}),(0,ey.jsx)("span",{className:"px-4 py-3.5",children:(0,ey.jsx)(vl,{value:t[2]})}),(0,ey.jsx)("span",{className:"px-4 py-3.5",children:(0,ey.jsx)(vl,{value:t[3]})})]},t[0]))]})})]}),(0,ey.jsxs)("section",{children:[(0,ey.jsx)(vo,{children:"Related Astrology Calculators"}),(0,ey.jsx)("div",{className:"mt-6 grid grid-cols-[repeat(auto-fill,minmax(265px,1fr))] gap-3",children:t.related.map((t,r)=>{let n=(0,bd.byCalcId)(t);return n?(0,ey.jsxs)(bO.default,{href:(0,bd.calcPath)(n.id),prefetch:!1,onClick:t=>{t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||(t.preventDefault(),a(n))},style:e4(40*r),className:"group border-mlh-plum-500/20 bg-mlh-plum-500/5 hover:border-mlh-plum-400/55 hover:bg-mlh-plum-500/12 mlh-in flex cursor-pointer items-center gap-3.5 rounded-2xl border p-3.5 text-left transition hover:-translate-y-[2px]",children:[(0,ey.jsx)("span",{className:"border-mlh-plum-400/30 mlh-plate-art group-hover:border-mlh-plum-400/65 relative grid h-[42px] w-[42px] flex-none place-items-center overflow-hidden rounded-[12px] border transition duration-200",children:(0,ey.jsx)(b9.CalcIcon,{calc:n,px:34,className:"transition duration-200 ease-out group-hover:scale-110"})}),(0,ey.jsxs)("span",{className:"min-w-0 flex-1",children:[(0,ey.jsx)("span",{className:"text-mlh-text block font-serif text-[17px] leading-tight",children:n.title}),(0,ey.jsx)("span",{className:"text-mlh-plum-400 mt-1 block font-mono text-[9px] tracking-[0.16em]",children:(0,bd.
122catLabel)(n.cat)})]}),(0,ey.jsx)("span",{"aria-hidden":!0,className:"text-mlh-plum-400 flex-none font-mono text-[12px] transition group-hover:translate-x-0.5",children:"â"})]},t):null})})]})]}),(0,ey.jsxs)("aside",{className:"flex flex-col gap-5 lg:sticky lg:top-4",children:[(0,ey.jsxs)("div",{className:"border-mlh-plum-400/35 mlh-corner-glow mlh-in relative overflow-hidden rounded-2xl border bg-[linear-gradient(180deg,color-mix(in_srgb,var(--mlh-plum-500)_20%,transparent),rgba(255,255,255,.015))] px-5 py-5 [--mlh-glow-size:150px] [--mlh-glow-top:-50px] [--mlh-in-delay:200ms]",children:[(0,ey.jsx)("div",{className:"text-mlh-plum-300 font-serif text-[36px] leading-none",children:t.stat.value}),(0,ey.jsx)("p",{className:"text-mlh-text mt-2.5 font-sans text-[15.5px] leading-[1.45] text-pretty",children:t.stat.label})]}),(0,ey.jsxs)("div",{className:"border-mlh-plum-400/50 mlh-in rounded-2xl border bg-[linear-gradient(180deg,color-mix(in_srgb,var(--mlh-plum-500)_22%,transparent),rgba(255,255,255,.02))] px-5 py-[18px] shadow-[0_18px_44px_rgba(0,0,0,.45)] [--mlh-in-delay:280ms]",children:[(0,ey.jsxs)("div",{className:"flex items-start gap-3.5",children:[(0,ey.jsx)("span",{className:"border-mlh-plum-400/35 mlh-plate-lit text-mlh-plum-300 grid h-[38px] w-[38px] flex-none place-items-center rounded-full border",children:(0,ey.jsx)(e$.SparkleIcon,{size:17})}),(0,ey.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,ey.jsx)("span",{className:"block font-serif text-[19px] leading-tight text-white",children:"Want it interpreted?"}),(0,ey.jsx)("span",{className:"text-mlh-muted mt-1.5 block font-sans text-[13.5px] leading-[1.55] text-pretty",children:"Vaani reads this result against the rest of your chart, not in isolation."})]})]}),(0,ey.jsx)("button",{type:"button",onClick:T,className:"mlh-cta-plum mt-4 w-full cursor-pointer rounded-full py-3 text-center font-sans text-[16.5px] font-semibold text-white transition",children:"Ask Vaani"})]})]})]})]})]})}function vc({selected:t,setSelected:r,onAsk:a,live:n=!1,user:i,locked:o=!1,gateReady:s=!0,onRequireAuth:l,onComputed:d}){let[c,u]=(0,ek.useState)(""),[h,p]=(0,ek.useState)("ALL");if(t)return(0,ey.jsx)(vd,{calc:t,onBack:()=>r(null),onOpen:t=>r(t),onAsk:a,live:n,user:i,locked:o,gateReady:s,...l?{onRequireAuth:l}:{},...d?{onComputed:d}:{}},t.id);let m=c.trim().toLowerCase(),f=bd.CALC_DATA.filter(t=>("ALL"===h||t.cat===h)&&(!m||`${t.title} ${t.desc} ${(0,bd.catLabel)(t.cat)}`.toLowerCase().includes(m))),x=["ALL",...bd.CALC_CATEGORIES];return(0,ey.jsxs)("div",{className:e5.PAGE_FRAME,children:[(0,ey.jsxs)("header",{className:"min-w-0",children:[(0,ey.jsx)("div",{className:"text-mlh-faint mlh-in font-mono text-[10px] tracking-[0.22em] [--mlh-in-delay:40ms] [--mlh-in-y:-6px]",children:"MELOOHA / CALCULATORS"}),(0,ey.jsx)("h1",{className:"mlh-in mt-3.5 font-serif text-[42px] leading-none tracking-[-0.015em] text-white [--mlh-in-delay:80ms] sm:text-[48px]",children:"Vedic calculators"}),(0,ey.jsxs)("p",{className:"text-mlh-muted mlh-in mt-2.5 max-w-[640px] text-[15px] leading-snug text-pretty [--mlh-in-delay:120ms]",children:[bd.CALC_DATA.length," instruments on the same Swiss Ephemeris the readings run on. Compute here, then hand the result to Vaani."]})]}),(0,ey.jsxs)("div",{className:"mlh-in mt-6 mb-5 flex flex-wrap items-center gap-x-3.5 gap-y-2.5 [--mlh-in-delay:160ms]",children:[(0,ey.jsxs)("div",{className:"border-mlh-plum-500/30 bg-mlh-bg/70 focus-within:border-mlh-plum-400/60 flex max-w-[290px] min-w-[180px] flex-[1_1_200px] items-center gap-2.5 rounded-full border px-4 py-2 transition",children:[(0,ey.jsx)(yk.Search,{size:14,className:"text-mlh-plum-400 shrink-0"}),(0,ey.jsx)("input",{value:c,onChange:t=>u(t.target.value),placeholder:"Search instrumentsâ¦","aria-label":"Search calculators",className:"text-mlh-text placeholder:text-mlh-faint caret-mlh-plum-400 min-w-0 flex-1 bg-transparent font-sans text-[16px] outline-none"})]}),(0,ey.jsx)("div",{className:"flex flex-wrap gap-2",children:x.map(t=>{let r=h===t,a="ALL"===t?bd.CALC_DATA.length:bd.CALC_DATA.filter(r=>r.cat===t).length;return(0,ey.jsxs)("button",{onClick:()=>{(0,eb.track)("CALCULATOR_FILTER_CHANGED_WEB_EVENT",{category:String(t)}),p(t)},"aria-pressed":r,className:`flex cursor-pointer items-baseline gap-1.5 rounded-full border px-3.5 py-[7px] font-sans text-[15.5px] transition ${r?"border-mlh-plum-400/60 bg-mlh-plum-500/20 text-mlh-plum-300":"border-mlh-border text-mlh-muted hover:border-mlh-plum-400/40 hover:text-mlh-text"}`,children:["ALL"===t?"All":(0,bd.catLabel)(t),(0,ey.jsx)("span",{className:"font-mono text-[9.5px] opacity-60",children:a})]},t)})})]}),(0,ey.jsx)("div",{className:"grid grid-cols-[repeat(auto-fill,minmax(300px,1fr))] gap-4 sm:gap-5",children:f.map((t,a)=>(0,ey.jsxs)(bO.default,{href:(0,bd.calcPath)(t.id),prefetch:!1,onClick:a=>{a.metaKey||a.ctrlKey||a.shiftKey||a.altKey||(a.preventDefault(),(0,eb.track)("CALCULATOR_OPENED_WEB_EVENT",{calc_id:t.id,from:"index"}),r(t))},style:e4(160+34*a),className:"group mlh-swap-host border-mlh-plum-500/20 from-mlh-plum-500/10 hover:from-mlh-plum-500/[0.18] hover:border-mlh-plum-400/55 mlh-corner-glow mlh-in relative flex min-w-0 cursor-pointer flex-col overflow-hidden rounded-2xl border bg-gradient-to-b to-w
122hite/[0.012] p-4 text-left transition duration-200 ease-out [--mlh-in-y:8px] hover:-translate-y-[3px] hover:shadow-[0_16px_38px_rgba(0,0,0,.45)] sm:p-[18px]",children:[(0,ey.jsxs)("span",{className:"mb-3.5 flex items-start gap-3.5",children:[(0,ey.jsx)("span",{className:"border-mlh-plum-400/30 mlh-plate-art group-hover:border-mlh-plum-400/65 relative grid h-[42px] w-[42px] flex-none place-items-center overflow-hidden rounded-[12px] border transition duration-200",children:(0,ey.jsx)(b9.CalcIcon,{calc:t,px:34,className:"transition duration-200 ease-out group-hover:scale-110"})}),(0,ey.jsx)("span",{className:"line-clamp-2 min-w-0 flex-1 font-serif text-[19px] leading-[1.25] text-white sm:text-[20px]",children:t.title})]}),(0,ey.jsx)("span",{className:"border-mlh-plum-500/15 group-hover:border-mlh-plum-400/30 mt-auto block border-t pt-3 transition-colors duration-200",children:(0,ey.jsxs)("span",{className:"mlh-swap block [--mlh-swap-h:36px]",children:[(0,ey.jsx)("span",{className:"mlh-swap-hover block",children:(0,ey.jsx)("span",{className:"text-mlh-muted line-clamp-2 text-[13px] leading-[18px]",children:t.desc})}),(0,ey.jsxs)("span",{className:"mlh-swap-rest flex items-center justify-between gap-2.5",children:[(0,ey.jsxs)("span",{className:"border-mlh-plum-500/25 bg-mlh-plum-500/10 text-mlh-plum-300 inline-flex items-center gap-1.5 rounded-[6px] border px-[7px] py-[4px] font-mono text-[9px] leading-none tracking-[0.12em]",children:[(0,ey.jsx)("span",{className:"bg-mlh-plum-400/70 h-[3px] w-[3px] rounded-full"}),(0,bd.catLabel)(t.cat)]}),(0,ey.jsx)("span",{className:"text-mlh-plum-300 font-mono text-[9px] tracking-[0.18em]",children:"OPEN â"})]})]})})]},t.id))}),0===f.length&&(0,ey.jsxs)("p",{className:"text-mlh-faint py-16 text-center font-sans text-[19px] text-balance",children:["No instrument by that name. Try âdashaâ, âdoshaâ, or"," ",a?(0,ey.jsx)("button",{type:"button",onClick:()=>{(0,eb.track)("SEARCH_HANDOFF_CLICKED_WEB_EVENT",{surface:"calculators",length:c.length}),a(bX(c,"calculators"))},className:"text-mlh-plum-300 hover:text-mlh-plum-100 cursor-pointer underline decoration-dotted underline-offset-4 transition",children:"ask Vaani directly"}):"ask Vaani directly","."]})]})}let vu=(0,eO.default)("download",[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]]),vh={success:{label:"Paid",tint:"text-mlh-success border-mlh-success/30"},pending:{label:"Pending",tint:"text-mlh-amber border-mlh-amber/35"},failed:{label:"Failed",tint:"text-mlh-danger border-mlh-danger/35"},cancelled:{label:"Cancelled",tint:"text-mlh-danger border-mlh-danger/35"},unknown:{label:"Unconfirmed",tint:"text-mlh-amber border-mlh-amber/35"}},vp="text-mlh-faint px-4 py-3 text-left font-mono text-[9.5px] font-medium tracking-[0.18em] uppercase whitespace-nowrap",vm="px-4 py-3.5 align-middle";function vf(t){return t?new Date(t).toLocaleDateString("en-IN",{day:"numeric",month:"short",year:"numeric"}):"â"}function vx({state:t}){let r=vh[t]??vh.unknown;return(0,ey.jsx)("span",{className:`inline-block rounded-full border px-2 py-[3px] font-mono text-[8.5px] tracking-[0.16em] whitespace-nowrap uppercase ${r.tint}`,children:r.label})}async function vg(t){let r=await fetch(`/api/invoices/${encodeURIComponent(t)}`,{cache:"no-store"});if(!r.ok)throw Error(`Download failed (${r.status}).`);let a=URL.createObjectURL(await r.blob()),n=document.createElement("a");n.href=a,n.download=`Melooha invoice ${t}.pdf`,n.click(),setTimeout(()=>URL.revokeObjectURL(a),6e4)}function vy({ready:t,live:r=!1,signedIn:a,onSignIn:n}){let i=t&&!r,[o,s]=(0,ek.useState)(null),[l,d]=(0,ek.useState)(null),[c,u]=(0,ek.useState)(null),[h,p]=(0,ek.useState)(0),m=(0,ek.useRef)(null);(0,ek.useEffect)(()=>{if(!t)return;if(i){s(gB),(0,eb.track)("INVOICES_OPENED_WEB_EVENT",{placement:"page",count:gB.length});return}if(!a)return void s(null);let r=!1;return(0,is.fetchInvoices)().then(t=>{r||(s(t),(0,eb.track)("INVOICES_OPENED_WEB_EVENT",{placement:"page",count:t.length}))}).catch(t=>{r||(s([]),d((0,t3.resolveNotice)("invoices.load-failed",{cause:t})),(0,eb.track)("INVOICES_OPENED_WEB_EVENT",{placement:"page",count:-1}))}),()=>{r=!0}},[t,i,a]);let f=async t=>{u(t.id),d(null);try{await vg(t.id),(0,eb.track)("INVOICE_DOWNLOADED_WEB_EVENT",{ok:!0})}catch(t){d((0,t3.resolveNotice)("invoice.download-failed",{cause:t})),(0,eb.track)("INVOICE_DOWNLOADED_WEB_EVENT",{ok:!1})}finally{u(null)}},x=o?function(t){let r=t.filter(t=>"success"===t.state&&null!==t.amount);if(0===r.length||1!==new Set(r.map(t=>(0,ev.currencyCode)(t.currency??void 0))).size)return null;let a=r.reduce((t,r)=>t+(r.amount??0),0);return(0,ev.money)(a,r[0].currency??void 0)}(o):null,g=t&&r&&!a,y=Math.max(1,Math.ceil((o?.length??0)/10)),b=Math.min(h,y-1),v=10*b,w=o?.slice(v,v+10)??[],k=t=>{p(Math.max(0,Math.min(t,y-1))),m.current?.scrollIntoView({block:"start",behavior:"smooth"})};return(0,ey.jsxs)("div",{className:"relative",children:[(0,ey.jsx)("div",{"aria-hidden":!0,
122className:"mlh-grid-field pointer-events-none sticky top-0 -mb-[100vh] h-screen"}),(0,ey.jsxs)("div",{className:e5.PAGE_FRAME,children:[(0,ey.jsxs)("header",{className:"border-mlh-plum-500/20 flex flex-wrap items-end justify-between gap-x-8 gap-y-5 border-b pb-4",children:[(0,ey.jsxs)("div",{className:"min-w-0",children:[(0,ey.jsx)("div",{className:"text-mlh-faint mlh-in font-mono text-[10px] tracking-[0.22em] [--mlh-in-delay:40ms] [--mlh-in-y:-6px]",children:"MELOOHA / INVOICES"}),(0,ey.jsx)("h1",{className:"mlh-in mt-3.5 font-serif text-[42px] leading-none tracking-[-0.015em] text-white [--mlh-in-delay:80ms] sm:text-[48px]",children:"Payments & invoices"}),(0,ey.jsxs)("p",{className:"text-mlh-text/75 mlh-in mt-3 max-w-[62ch] text-[15.5px] leading-[1.6] text-pretty [--mlh-in-delay:120ms]",children:["Every purchase on this account, newest first."," ",(0,ey.jsx)("span",{className:"text-mlh-text/55",children:"Each one carries its own tax invoice, issued by Astroverse Technologies Pvt Ltd."})]})]}),o&&o.length>0&&(0,ey.jsxs)("dl",{className:"border-mlh-plum-500/25 mlh-in flex flex-none divide-x divide-[color-mix(in_srgb,var(--mlh-plum-400)_20%,transparent)] rounded-2xl border bg-[linear-gradient(135deg,color-mix(in_srgb,var(--mlh-plum-500)_14%,transparent),rgba(255,255,255,.02))] [--mlh-in-delay:140ms]",children:[(0,ey.jsx)(vk,{label:"PAYMENTS",value:String(o.length)}),x&&(0,ey.jsx)(vk,{label:"TOTAL PAID",value:x}),o[0]?.at&&(0,ey.jsx)(vk,{label:"LAST PAYMENT",value:vf(o[0].at)})]})]}),i&&(0,ey.jsx)("p",{className:"text-mlh-faint mlh-in mt-5 font-mono text-[9px] tracking-[0.2em] uppercase [--mlh-in-delay:150ms]",children:"Sample history · this deployment holds no credentials"}),l&&(0,ey.jsx)("div",{className:"mt-5 max-w-xl",children:(0,ey.jsx)(yb,{notice:l})}),g?(0,ey.jsx)(vw,{title:"Sign in to see your payments",body:"Your question packs, report credits and their invoices are kept against your account.",action:(0,ey.jsxs)("button",{onClick:n,className:"mlh-cta-plum mt-5 inline-flex cursor-pointer items-center gap-2 rounded-full px-5 py-2.5 font-sans text-[14px] text-white",children:[(0,ey.jsx)(eD,{size:14,"aria-hidden":!0}),"Sign in"]})}):null===o?(0,ey.jsx)(vv,{}):0===o.length?(0,ey.jsx)(vw,{title:"No purchases yet",body:"Question packs, report credits and Artha Sutram will be listed here the moment you buy one."}):(0,ey.jsxs)(ey.Fragment,{children:[(0,ey.jsx)("div",{ref:m,className:"border-mlh-border bg-mlh-surface mt-6 scroll-mt-6 overflow-hidden rounded-xl border",children:(0,ey.jsx)("div",{className:"overflow-x-auto",children:(0,ey.jsxs)("table",{className:"w-full min-w-[560px] border-collapse",children:[(0,ey.jsx)("thead",{children:(0,ey.jsxs)("tr",{className:"border-mlh-border bg-mlh-bg/30 border-b",children:[(0,ey.jsx)("th",{scope:"col",className:vp,children:"Date"}),(0,ey.jsx)("th",{scope:"col",className:vp,children:"Item"}),(0,ey.jsx)("th",{scope:"col",className:`${vp} hidden md:table-cell`,children:"Transaction"}),(0,ey.jsx)("th",{scope:"col",className:`${vp} text-right`,children:"Amount"}),(0,ey.jsx)("th",{scope:"col",className:`${vp} hidden sm:table-cell`,children:"Status"}),(0,ey.jsx)("th",{scope:"col",className:`${vp} text-right`,children:(0,ey.jsx)("span",{className:"sr-only",children:"Invoice"})})]})}),(0,ey.jsx)("tbody",{children:w.map(t=>(0,ey.jsxs)("tr",{className:"border-mlh-border hover:bg-mlh-plum/[0.06] border-b transition last:border-b-0",children:[(0,ey.jsx)("td",{className:`${vm} text-mlh-muted font-mono text-[11px] tracking-[0.06em] whitespace-nowrap tabular-nums`,children:vf(t.at)}),(0,ey.jsxs)("td",{className:`${vm} min-w-0`,children:[(0,ey.jsx)("div",{className:"text-mlh-text font-sans text-[15px] leading-tight",children:t.description??"Melooha purchase"}),(0,ey.jsxs)("div",{className:"mt-1.5 flex items-center gap-2 md:hidden",children:[(0,ey.jsxs)("span",{className:"text-mlh-faint font-mono text-[9px] tracking-[0.14em] uppercase",children:["Txn ",t.id]}),(0,ey.jsx)("span",{className:"sm:hidden",children:(0,ey.jsx)(vx,{state:t.state})})]})]}),(0,ey.jsx)("td",{className:`${vm} text-mlh-faint hidden font-mono text-[11px] tracking-[0.06em] tabular-nums md:table-cell`,children:t.id}),(0,ey.jsx)("td",{className:`${vm} text-right font-sans text-[15px] whitespace-nowrap text-white tabular-nums`,children:null===t.amount?"â":(0,ev.money)(t.amount,t.currency??void 0)}),(0,ey.jsx)("td",{className:`${vm} hidden sm:table-cell`,children:(0,ey.jsx)(vx,{state:t.state})}),(0,ey.jsx)("td",{className:`${vm} text-right`,children:i?(0,ey.jsx)("span",{className:"text-mlh-faint font-mono text-[9px] tracking-[0.16em] uppercase",children:"â"}):(0,ey.jsxs)("button",{onClick:()=>void f(t),disabled:null!==c,"aria-label":`Download the invoice for transaction ${t.id}`,className:"border-mlh-plum-400/45 text-mlh-plum-300 hover:border-mlh-plum-400 hover:bg-mlh-plum/15 inline-flex cursor-pointer items-center gap-1.5 rounded-full border px-3 py-1.5 font-sans text-[12.5px] whitespace-nowrap transition disabled:cursor-not-allowed disabled:opacity-45",children:[c===t.id?(0,ey.jsx)(e8.Loader2,{size:12,className:"animate-spin"}):(0,ey.jsx)(vu,{size:12,"aria-hidden":!0}),(0,ey.jsx)("span",{className:"hidden sm:inline",children:"Invoice"})]})})]},t.id))})]})})}),(0,ey.jsxs)("div",{className:"mt-4 flex flex-wrap items-center justify-between gap-4",children:[(0,ey.jsx)("p",{className:"text-mlh-faint font-mono text-[10px] tracking-[0.16em] uppercase tabular-nums",children:y>1?`${v+1}â${v+w.length} of ${o.length}`:`${o.length} payment${1===o.length?"":"s"}`}),y>1&&(0,ey.jsxs)("nav",{"aria-label":"Payment history pages",className:"flex items-center gap-1",children:[(0,ey.jsx)(vb,{label:"Previous page",glyph:"â¹",onClick:()=>k(b-1),off:0===b}),(function(t,r){if(r<=7)return Array.from({length:r},(t,r)=>r);let a=new Set([0,r-1,t,t-1,t+1]);t<=2&&[1,2,3].forEach(t=>a.add(t)),t>=r-3&&[r-2,r-3,r-4].forEach(t=>a.add(t));let n=[],i=-1;for(let t of Array.from(a).filter(t=>t>=0&&t<r).sort((t,r)=>t-r))i>=0&&t-i>1&&n.push(null),n.push(t),i=t;return n})(b,y).map((t,r)=>
122null===t?(0,ey.jsx)("span",{"aria-hidden":!0,className:"text-mlh-faint px-1 text-[12px]",children:"â¦"},`gap-${r}`):(0,ey.jsx)("button",{type:"button",onClick:()=>k(t),"aria-label":`Page ${t+1}`,"aria-current":t===b?"page":void 0,className:`inline-flex h-8 min-w-[32px] cursor-pointer items-center justify-center rounded-full px-2.5 font-sans text-[13px] tabular-nums transition ${t===b?"bg-mlh-plum/30 border-mlh-plum-400/60 text-mlh-plum-100 border":"text-mlh-muted hover:bg-mlh-plum/12 hover:text-mlh-text border border-transparent"}`,children:t+1},t)),(0,ey.jsx)(vb,{label:"Next page",glyph:"âº",onClick:()=>k(b+1),off:b===y-1})]})]}),(0,ey.jsxs)("p",{className:"text-mlh-faint mt-6 text-[12px] leading-[1.6]",children:["If an invoice is missing or looks wrong, send us the transaction number beside it at"," ",(0,ey.jsx)("a",{href:"mailto:[email protected]",className:"text-mlh-plum-300 hover:underline",children:"[email protected]"}),"."]})]})]})]})}function vb({label:t,glyph:r,onClick:a,off:n}){return(0,ey.jsx)("button",{type:"button",onClick:a,disabled:n,"aria-label":t,className:"text-mlh-muted hover:bg-mlh-plum/12 hover:text-mlh-text inline-flex h-8 min-w-[32px] cursor-pointer items-center justify-center rounded-full border border-transparent px-2.5 text-[15px] leading-none transition disabled:cursor-not-allowed disabled:opacity-30 disabled:hover:bg-transparent",children:(0,ey.jsx)("span",{"aria-hidden":!0,children:r})})}function vv(){return(0,ey.jsx)("div",{className:"border-mlh-border bg-mlh-surface overflow-hidden rounded-xl border",children:[0,1,2,3,4].map(t=>(0,ey.jsxs)("div",{className:"border-mlh-border flex items-center gap-4 border-b px-4 py-4 last:border-b-0",children:[(0,ey.jsx)("span",{className:"bg-mlh-plum-400/12 h-3 w-24 animate-pulse rounded"}),(0,ey.jsx)("span",{className:"bg-mlh-plum-400/12 h-3 flex-1 animate-pulse rounded"}),(0,ey.jsx)("span",{className:"bg-mlh-plum-400/12 h-3 w-16 animate-pulse rounded"})]},t))})}function vw({title:t,body:r,action:a}){return(0,ey.jsxs)("div",{className:"border-mlh-border bg-mlh-bg/40 rounded-xl border px-6 py-14 text-center",children:[(0,ey.jsx)(ti.FileText,{size:20,"aria-hidden":!0,className:"text-mlh-plum-400/70 mx-auto"}),(0,ey.jsx)("p",{className:"text-mlh-text mt-4 font-sans text-[17px]",children:t}),(0,ey.jsx)("p",{className:"text-mlh-muted mx-auto mt-2 max-w-[46ch] text-[13.5px] leading-[1.55]",children:r}),a]})}function vk({label:t,value:r}){return(0,ey.jsxs)("div",{className:"px-4 py-3 first:pl-5 last:pr-5",children:[(0,ey.jsx)("dt",{className:"text-mlh-faint font-mono text-[9px] tracking-[0.2em]",children:t}),(0,ey.jsx)("dd",{className:"mt-1.5 font-serif text-[18px] leading-none whitespace-nowrap text-white tabular-nums",children:r})]})}let vj=(0,eO.default)("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]),vN={WebkitMaskImage:"radial-gradient(90% 120% at 96% -6%, #000, transparent 62%)",maskImage:"radial-gradient(90% 120% at 96% -6%, #000, transparent 62%)"},v_={"--mlh-ring-dur":"280s"},vE={"--mlh-ring-dur":"460s",background:"repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--mlh-plum-400) 34%, transparent) 0 0.14deg, transparent 0.14deg 7deg)",WebkitMaskImage:"radial-gradient(circle, transparent calc(50% - 5px), #000 calc(50% - 5px))",maskImage:"radial-gradient(circle, transparent calc(50% - 5px), #000 calc(50% - 5px))"},vS={background:"radial-gradient(circle, color-mix(in srgb, var(--mlh-plum-400) 30%, transparent), transparent 70%)"},vC=(t,r)=>null!==r.off?Math.floor(t*(1-r.off/100)):null!==r.amount?t-r.amount:null;function vT({kind:t,plans:r,onClose:a,onChoose:n}){let i="questions"===t?gz:gL,o=r?.length?r:i,s="questions"===t?"Questions":"Reports",l=s.toLowerCase(),d=l.replace(/s$/,""),c=o.findIndex(t=>"Best Value"===t.badge),[u,h]=(0,ek.useState)(c<0?o.length-1:c),[p,m]=(0,ek.useState)({}),f=o.map(t=>t.planId).filter(t=>"number"==typeof t).join(",");(0,ek.useEffect)(()=>{if(!f)return;let t=!1,r=async t=>{let r=o.find(r=>r.planId===t);if(!r)return null;let a=null,n=r.price;for(let i of(await (0,is.fetchPromos)(t))){let t=vC(r.mrp,i);null!==t&&t<n&&(n=t,a=i.code)}if(!a)return null;let i=await (0,is.applyPromo)(t,a);return!i.ok||null===i.price||i.price>=r.price?null:[t,{code:a,price:i.price}]};return Promise.all(f.split(",").map(t=>r(Number(t)).catch(()=>null))).then(r=>{if(t)return;let a={};for(let t of r)t&&(a[t[0]]=t[1]);Object.keys(a).length>0&&m(a)}),()=>{t=!0}},[f]);let x=o.map(t=>{let r="number"==typeof t.planId?p[t.planId]:void 0;return r?{...t,price:r.price,code:r.code,off:Math.round((t.mrp-r.price)/Math.max(1,t.mrp)*100)}:t}),g=x[u],y=new Set(x.map(t=>
122t.code).filter(Boolean)),b=1===y.size&&x.every(t=>t.code)?[...y][0]:null;return(0,ey.jsxs)("div",{role:"dialog","aria-modal":"true","aria-label":`Buy more ${l}`,onMouseDown:t=>t.target===t.currentTarget&&a(),className:`${tI.SCRIM} ${tI.SCRIM_PAD}`,children:[(0,ey.jsx)(tI.DialogBloom,{}),(0,ey.jsxs)("div",{style:tI.PANEL_WASH,className:`${tI.PANEL} ${tI.PANEL_FIT} flex w-full max-w-[920px] flex-col overflow-hidden`,children:[(0,ey.jsxs)("div",{"aria-hidden":!0,style:vN,className:"pointer-events-none absolute inset-0 overflow-hidden",children:[(0,ey.jsx)("span",{style:v_,className:"mlh-ring-spin border-mlh-plum-400/20 absolute -top-[180px] -right-[150px] h-[520px] w-[520px] rounded-full border border-dashed"}),(0,ey.jsx)("span",{style:vE,className:"mlh-ring-spin-rev absolute -top-[220px] -right-[190px] h-[620px] w-[620px] rounded-full opacity-25"}),(0,ey.jsx)("span",{className:"absolute -top-[150px] -right-[120px] h-[460px] w-[460px] rounded-full bg-[radial-gradient(circle,color-mix(in_srgb,var(--mlh-plum-400)_14%,transparent),transparent_66%)]"})]}),(0,ey.jsxs)("header",{className:"relative flex flex-none items-start justify-between gap-4 px-5 pt-6 sm:gap-5 sm:px-[30px] sm:pt-7",children:[(0,ey.jsxs)("div",{className:"min-w-0",children:[(0,ey.jsxs)("h2",{className:"font-serif text-[27px] leading-[1.05] tracking-[-0.015em] text-white sm:text-[34px]",children:["Buy more ",l]}),(0,ey.jsx)("p",{className:"text-mlh-muted mt-2 font-sans text-[14.5px] leading-[1.45] sm:text-[15.5px] sm:leading-[1.5]",children:"questions"===t?"One-time purchase · never expires · every answer stays chart-bound.":"One-time purchase · never expires · unlock any report from the catalogue."})]}),(0,ey.jsx)("button",{onClick:()=>{(0,eb.track)("PACK_SHEET_DISMISSED_WEB_EVENT",{kind:t}),a()},"aria-label":"Close",className:"text-mlh-muted hover:border-mlh-plum/60 hover:text-mlh-plum-300 hover:bg-mlh-plum/10 grid h-9 w-9 flex-none place-items-center rounded-full border border-white/15 transition",children:(0,ey.jsx)(ym.X,{size:15})})]}),b&&(0,ey.jsxs)("div",{className:"border-mlh-success/35 bg-mlh-success/[0.06] relative mx-5 mt-5 flex flex-none items-center gap-2.5 rounded-xl border border-dashed px-3.5 py-[11px] sm:mx-[30px] sm:mt-[22px]",children:[(0,ey.jsx)("span",{className:"border-mlh-success/50 bg-mlh-success/15 text-mlh-success grid h-[19px] w-[19px] flex-none place-items-center rounded-full border",children:(0,ey.jsx)(yw.Check,{size:10,strokeWidth:3})}),(0,ey.jsxs)("p",{className:"text-mlh-success/90 font-sans text-[13.5px] leading-[1.4] text-pretty",children:[(0,ey.jsx)("span",{className:"text-mlh-success font-mono text-[11.5px] font-semibold tracking-[0.12em] uppercase",children:b})," ","applied â every price below is already discounted."]})]}),(0,ey.jsx)("div",{role:"radiogroup","aria-label":`${s} packs`,className:"relative grid min-h-0 flex-1 auto-rows-min grid-cols-[repeat(auto-fit,minmax(216px,1fr))] content-start gap-3 overflow-x-hidden overflow-y-auto px-5 pt-5 pb-6 sm:px-[30px] sm:pt-6 sm:pb-7",children:x.map((r,a)=>{let n=a===u,i=(0,ev.unitPrice)(r.price,r.count,r.currency);return(0,ey.jsxs)("button",{role:"radio","aria-checked":n,onClick:()=>{(0,eb.track)("PLAN_SELECTED_WEB_EVENT",{kind:t,plan_id:r.planId??null,price:r.price,currency:(0,ev.currencyCode)(r.currency)}),h(a)},className:`group focus-visible:ring-mlh-plum-400/70 relative overflow-hidden rounded-2xl border px-4 pb-4 text-left transition duration-200 outline-none hover:-translate-y-0.5 focus-visible:ring-2 ${r.badge?"pt-8":"pt-4"} ${n?"border-mlh-plum/75 bg-[linear-gradient(180deg,color-mix(in_srgb,var(--mlh-plum)_28%,transparent),rgba(255,255,255,0.03))] shadow-[0_0_34px_color-mix(in_srgb,var(--mlh-plum)_26%,transparent),inset_0_1px_0_rgba(255,255,255,0.09)]":"border-mlh-plum/20 bg-[linear-gradient(180deg,color-mix(in_srgb,var(--mlh-plum)_9%,transparent),rgba(255,255,255,0.02))] hover:border-mlh-plum/55"}`,children:[(0,ey.jsx)("span",{"aria-hidden":!0,style:vS,className:`pointer-events-none absolute -top-14 -right-10 h-36 w-36 rounded-full blur-2xl transition-opacity duration-300 ${n?"opacity-100":"opacity-0 group-hover:opacity-70"}`}),r.badge&&(0,ey.jsx)("span",{className:"bg-mlh-amber text-mlh-plum-800 absolute top-0 left-4 rounded-b-lg px-2.5 pt-1.5 pb-[6px] font-mono text-[9px] font-semibold tracking-[0.18em] whitespace-nowrap uppercase shadow-[0_6px_18px_color-mix(in_srgb,var(--mlh-amber)_28%,transparent)]",children:r.badge}),(0,ey.jsxs)("div",{className:"relative flex items-center justify-between gap-2.5",children:[(0,ey.jsx)("span",{className:`font-mono text-[11px] leading-none font-medium tracking-[0.22em] uppercase ${n?"text-mlh-plum-300":"text-mlh-muted"}`,children:(0,ev.tierName)(r.name)}),(0,ey.jsx)("span",{className:`grid h-[22px] w-[22px] flex-none place-items-center rounded-full border transition ${n?"mlh-cta-plum border-transparent text-white":"border-mlh-faint/60 group-hover:border-mlh-plum-400/70 text-transparent"}`,children:(0,ey.jsx)(yw.Check,{size:12,strokeWidth:3})})]}),(0,ey.jsx)("div",{className:"relative mt-3 font-serif text-[34px] leading-[0.95] tracking-[-0.01em] text-white tabular-nums sm:mt-4 sm:text-[42px]",children:r.count}),(0,ey.jsx)("div",{className:"text-mlh-muted relative mt-1 font-sans text-[12.5px] leading-none sm:text-[13px]",children:1===r.count?d:l}),(0,ey.jsx)("div",{className:"relative my-3.5 h-px bg-white/[0.09] sm:my-[18px]"}),(0,ey.jsxs)("div",{className:"relative flex flex-wrap items-baseline gap-x-2.5 gap-y-1",children:[(0,ey.jsx)("span",{className:"font-sans text-[22px] leading-none font-semibold tracking-[-0.01em] text-white tabular-nums",children:(0,ev.money)(r.price,r.currency)}),(0,ey.jsx)("span",{className:"text-mlh-faint decoration-mlh-faint/70 font-mono text-[12px] leading-none tabular-nums line-through",children:(0,ev.money)(r.mrp,r.currency)})]}),r.count>1&&(0,ey.jsxs)("span",{className:`relative mt-1.5 block font-sans text-[12.5px] leading-none tabular-nums ${n?"text-mlh-plum-300/90":"text-mlh-muted"}`,children:[i," per ",d]}),!b&&r.code&&(0,ey.jsxs)("div",{className:"text-mlh-faint relative mt-2.5 flex items-center gap-1.5 font-mono text-[10px] tracking-[0.14em] uppercase sm:mt-3",children:[(0,ey.jsx)("span",{className:"text-mlh-faint/70",children:"Code"}),(0,ey.jsx)("span",{className:n?"text-mlh-plum-300":"text-mlh-muted",children:r.code})]})]},r.name)})}),(0,ey.jsxs)("footer",{className:"border-mlh-plum/25 relative flex flex-none flex-col items-stretch gap-3 border-t bg-[color-mix(in_srgb,var(--mlh-plum)_16%,transparent)] px-5 pt-4 pb-5 sm:flex-row sm:flex-wrap sm:items-center sm:justify-between sm:gap-x-6 sm:gap-y-4 sm:px-[30px] sm:pt-5 sm:pb-[22px]",children:[(0,ey.jsxs)("div",{className:"text-mlh-faint min-w-0 font-mono text-[10px] tracking-[0.16em] uppercase",children:["Secure payment · ",(0,ev.isRupees)(g.currency)?"GST invoice · ":"","Instant credit"]}),(0,ey.jsxs)("button",{onClick:()=>{(0,eb.track)("CHECKOUT_OPENED_WEB_EVENT",{kind:t,plan_id:g.planId??null,price:g.price,mrp:g.mrp,currency:(0,ev.currencyCode)(g.currency)}),n({...g,kind:t,unit:s})},className:"mlh-cta-plum flex w-full items-center justify-between gap-2 rounded-full px-5 py-3.5 font-sans text-[16px] text-white sm:w-auto
122sm:justify-center sm:px-[26px] sm:text-[16.5px]",children:[(0,ey.jsxs)("span",{className:"min-w-0",children:["Continue with ",(0,ev.unitLabel)(g.count,l)]}),(0,ey.jsxs)("span",{className:"flex flex-none items-center gap-2",children:[(0,ey.jsx)("span",{"aria-hidden":!0,className:"hidden opacity-60 sm:inline",children:"·"}),(0,ey.jsx)("span",{className:"tabular-nums",children:(0,ev.money)(g.price,g.currency)}),(0,ey.jsx)(vj,{size:17})]})]})]})]})]})}function vA({value:t,options:r,onChange:a,ariaLabel:n,className:i=""}){let[o,s]=(0,ek.useState)(!1),l=Math.max(0,r.findIndex(r=>r.value===t)),[d,c]=(0,ek.useState)(l),u=(0,ek.useRef)(null),h=(0,ek.useRef)(null),p=(0,ek.useRef)(null),m=r[l];(0,ek.useEffect)(()=>{if(!o)return;let t=t=>{u.current?.contains(t.target)||s(!1)};return document.addEventListener("mousedown",t),()=>document.removeEventListener("mousedown",t)},[o]),(0,ek.useEffect)(()=>{o&&p.current?.scrollIntoView({block:"nearest"})},[o,d]);let f=t=>{a(t),s(!1),h.current?.focus()};return(0,ey.jsxs)("div",{ref:u,onKeyDown:t=>{if("Escape"===t.key){if(!o)return;t.preventDefault(),s(!1),h.current?.focus();return}if(!o){("ArrowDown"===t.key||"ArrowUp"===t.key||"Enter"===t.key)&&(t.preventDefault(),c(l),s(!0));return}if("ArrowDown"===t.key||"ArrowUp"===t.key){t.preventDefault();let a="ArrowDown"===t.key?1:-1;c(t=>(t+a+r.length)%r.length);return}if("Home"===t.key||"End"===t.key){t.preventDefault(),c("Home"===t.key?0:r.length-1);return}if("Enter"===t.key||" "===t.key){t.preventDefault();let a=r[d];a&&f(a.value)}},className:`relative ${i}`,children:[(0,ey.jsxs)("button",{ref:h,type:"button",onClick:()=>{c(l),s(t=>!t)},"aria-haspopup":"listbox","aria-expanded":o,"aria-label":n,className:"group hover:text-mlh-plum-100 focus-visible:ring-mlh-plum/40 flex w-full cursor-pointer items-center justify-between gap-2 rounded-lg py-1 text-left font-sans text-[19px] text-white transition outline-none focus-visible:ring-2",children:[(0,ey.jsx)("span",{className:"truncate",children:m?.label??t}),(0,ey.jsx)(tt.ChevronDown,{size:14,"aria-hidden":!0,className:`text-mlh-faint group-hover:text-mlh-plum-300 flex-none transition-transform duration-200 ${o?"rotate-180":""}`})]}),o&&(0,ey.jsx)("ul",{role:"listbox","aria-label":n,tabIndex:-1,className:"animate-mlh-rise border-mlh-plum/30 bg-mlh-surface-hi absolute top-[calc(100%+8px)] right-0 left-0 z-20 max-h-[228px] overflow-y-auto rounded-xl border p-1 shadow-[0_24px_60px_rgba(0,0,0,0.72)]",children:r.map((r,a)=>{let n=r.value===t;return(0,ey.jsx)("li",{role:"option","aria-selected":n,ref:a===d?p:void 0,children:(0,ey.jsxs)("button",{type:"button",tabIndex:-1,onMouseEnter:()=>c(a),onClick:()=>f(r.value),className:`flex w-full cursor-pointer items-center justify-between gap-3 rounded-lg px-3 py-2 text-left font-sans text-[16px] transition ${a===d?"bg-mlh-plum/20 text-white":"text-mlh-muted"}`,children:[(0,ey.jsx)("span",{className:"truncate",children:r.label}),(0,ey.jsxs)("span",{className:"flex flex-none items-center gap-2",children:[r.hint&&(0,ey.jsx)("span",{className:"text-mlh-faint font-mono text-[9px] tracking-[0.14em] uppercase",children:r.hint}),(0,ey.jsx)(yw.Check,{size:13,"aria-hidden":!0,className:`text-mlh-plum-300 ${n?"":"opacity-0"}`})]})]})},r.value)})})]})}var vI=t.i(68361);let vM={WebkitMaskImage:"radial-gradient(90% 120% at 96% -6%, #000, transparent 62%)",maskImage:"radial-gradient(90% 120% at 96% -6%, #000, transparent 62%)"},vP={"--mlh-ring-dur":"280s"},vO={"--mlh-ring-dur":"460s",background:"repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--mlh-plum-400) 34%, transparent) 0 0.14deg, transparent 0.14deg 7deg)",WebkitMaskImage:"radial-gradient(circle, transparent calc(50% - 5px), #000 calc(50% - 5px))",maskImage:"radial-gradient(circle, transparent calc(50% - 5px), #000 calc(50% - 5px))"},vD="font-mono text-[10px] tracking-[0.18em] uppercase",vR="font-mono text-[10px] tracking-[0.12em] uppercase",v$="flex items-baseline justify-between gap-3 font-sans text-[13.5px]",vz="grid h-8 w-8 flex-none place-items-center rounded-full border border-white/15 transition hover:border-mlh-plum/60 hover:bg-mlh-plum/10 hover:text-mlh-plum-300",vL=gF.map(([t,r])=>({value:t,label:t,hint:r}));function vW({plan:t,onBack:r,onClose:a,onComplete:n,live:i=!1,userId:o,groupId:s,reportId:l,birthPlace:d,countryCode:c}){let u=(0,ev.isRupees)(t.currency),h=(0,yv.countryFromDial)(c),[p,m]=(0,ek.useState)(()=>(t=>{if(!t)return null;let r=t.split(",").map(t=>
122t.trim().toLowerCase()).filter(Boolean);for(let t of r){let r=gF.find(([r])=>r.toLowerCase()===t);if(r)return r[0]}for(let t of r){let r=gY[t];if(r)return r}return null})(d)??"Maharashtra"),[f,x]=(0,ek.useState)(t.code),[g,y]=(0,ek.useState)(!1),[b,v]=(0,ek.useState)(!1),[w,k]=(0,ek.useState)(null),[j,N]=(0,ek.useState)(null),[_,E]=(0,ek.useState)(null),[S,C]=(0,ek.useState)(""),[T,A]=(0,ek.useState)(null),[I,M]=(0,ek.useState)(null),[P,O]=(0,ek.useState)(!1),[D,R]=(0,ek.useState)(null),$=null!==f,z=i&&"number"==typeof t.planId;(0,ek.useEffect)(()=>{if(!z||!f)return;let r=!1;return(0,is.applyPromo)(t.planId,f).then(t=>{r||(t.ok?N(t.price):x(null))}).catch(()=>void 0),()=>{r=!0}},[z,f,t.planId]),(0,ek.useEffect)(()=>{if(!P||!z||null!==D)return;let r=!1;return(0,is.fetchPromos)(t.planId).then(t=>{r||R(t)}).catch(()=>{r||R([])}),()=>{r=!0}},[P,z,D,t.planId]);let L=j??t.price,W=t.mrp-L,U=$?L:t.mrp,B=D&&D.length>0?D:t.code?[{code:t.code,title:null,off:t.off,amount:null}]:[],F={questions:{title:"Payment successful",body:`${t.count} questions added to your account. They never expire.`,cta:"Start asking"},reports:{title:"Payment successful",body:`${(0,ev.unitLabel)(t.count,t.unit)} added. Pick which reports to unlock.`,cta:"Choose reports"},artha:{title:"Artha Sutram unlocked",body:"Your Artha Sutram is being prepared. We will let you know
122when it is ready.",cta:"Done"}}[t.kind],Y="artha"===t.kind?t.name:`${(0,ev.tierName)(t.name)} \xb7 ${(0,ev.unitLabel)(t.count,t.unit).toLowerCase()}`,V="artha"===t.kind?"Our premium wealth blueprint, prepared from your chart":"Never expires · added to your account instantly",q=async r=>{let a=r.trim().toUpperCase();if(a){if(!z)return void(t.code&&a===t.code.toUpperCase()?(x(t.code),C(""),A(null),O(!1),(0,eb.track)("PROMO_APPLIED_WEB_EVENT",{kind:t.kind,ok:!0,price_before:t.mrp,price_after:t.price,currency:(0,ev.currencyCode)(t.currency)})):(A(`${a} is not valid for this plan.`),(0,eb.track)("PROMO_APPLIED_WEB_EVENT",{kind:t.kind,ok:!1,price_before:L,price_after:L,currency:(0,ev.currencyCode)(t.currency)})));M(a),A(null);try{let r=await (0,is.applyPromo)(t.planId,a);(0,eb.track)("PROMO_APPLIED_WEB_EVENT",{kind:t.kind,ok:r.ok,price_before:L,price_after:r.ok?r.price??L:L,currency:(0,ev.currencyCode)(t.currency)}),r.ok?(x(a),N(r.price),C(""),O(!1)):(A(r.message??`${a} is not valid for this plan.`),O(!0))}catch{A(`${a} could not be checked. Please try again.`)}finally{M(null)}}},H=async()=>{if(i&&!z)return void k((0,t3.resolveNotice)("commerce.plan-unavailable",{cause:t}));if(!z){n(t),y(!0);return}v(!0),k(null),(0,eb.track)("CHECKOUT_SUBMITTED_WEB_EVENT",{kind:t.kind,plan_id:t.planId??null,price:L,currency:(0,ev.currencyCode)(t.currency),has_promo:!!f});try{let r=await (0,is.subscribePlan)({planId:t.planId,...o?{userId:o}:{},...s?{groupId:s}:{},...u?{stateAlpha:gF.find(([t])=>t===p)?.[1]??"MH"}:{},...h?{countryAlpha:h}:{},...f?{promoCode:f}:{}}),a=(0,t2.safeHttpUrl)(r.paymentUrl);a?((0,vI.savePaymentIntent)({kind:t.kind,name:t.name,returnTo:window.location.pathname+window.location.search,...l?{reportId:l}:{}}),E(a),(0,eb.track)("PAYMENT_REDIRECTED_WEB_EVENT",{kind:t.kind}),await Promise.race([(0,eb.flushAnalytics)(),new Promise(t=>setTimeout(t,400))]),window.location.assign(a)):((0,eb.track)("CHECKOUT_FAILED_WEB_EVENT",{kind:t.kind,reason:r.message??"The purchase could not be started."}),k((0,t3.resolveNotice)("commerce.subscribe-failed",{cause:r})))}catch(r){(0,eb.track)("CHECKOUT_FAILED_WEB_EVENT",{kind:t.kind,reason:r instanceof Error?r.message:"The payment failed."}),k((0,t3.resolveNotice)("commerce.subscribe-failed",{cause:r}))}finally{v(!1)}};return _?(0,ey.jsxs)("div",{role:"dialog","aria-modal":"true","aria-label":"Taking you to payment",className:`${tI.SCRIM} ${tI.SCRIM_PAD}`,children:[(0,ey.jsx)(tI.DialogBloom,{}),(0,ey.jsxs)("div",{style:tI.PANEL_WASH,className:`${tI.PANEL} ${tI.PANEL_FIT} w-full max-w-md overflow-y-auto px-6 pt-6 pb-5 text-center sm:px-7 sm:pt-7 sm:pb-6`,children:[(0,ey.jsx)("div",{className:`${vD} text-mlh-plum-300/90`,children:"Checkout"}),(0,ey.jsx)("h2",{className:"mt-2 font-serif text-[27px] leading-[1.1] tracking-[-0.01em] text-white",children:"Taking you to payment"}),(0,ey.jsx)("p",{className:"text-mlh-muted mt-2 mb-6 font-sans text-[16px] text-pretty",children:"artha"===t.kind?`${t.name} is unlocked on your account as soon as the payment clears.`:`${(0,ev.unitLabel)(t.count,t.unit)} will be added to your account as soon as the payment clears.`}),(0,ey.jsxs)("a",{href:_,className:"mlh-cta-plum flex w-full items-center justify-center gap-2 rounded-xl py-3.5 font-sans text-[18px] text-white",children:["Continue to payment ",(0,ey.jsx)(vj,{size:17})]})]})]}):g?(0,ey.jsxs)("div",{role:"dialog","aria-modal":"true","aria-label":F.title,className:`${tI.SCRIM} ${tI.SCRIM_PAD}`,children:[(0,ey.jsx)(tI.DialogBloom,{}),(0,ey.jsxs)("div",{style:tI.PANEL_WASH,className:`${tI.PANEL} ${tI.PANEL_FIT} w-full max-w-md overflow-y-auto px-6 pt-6 pb-5 text-center sm:px-7 sm:pt-7 sm:pb-6`,children:[(0,ey.jsx)("span",{className:"mlh-plate-lit border-mlh-plum-400/45 text-mlh-plum-300 mx-auto mb-4 grid h-[52px] w-[52px] place-items-center rounded-2xl border",children:(0,ey.jsx)(yw.Check,{size:22,strokeWidth:2.4})}),(0,ey.jsx)("div",{className:`${vD} text-mlh-plum-300/90`,children:"Confirmed"}),(0,ey.jsx)("h2",{className:"mt-2 font-serif text-[27px] leading-[1.1] tracking-[-0.01em] text-white",children:F.title}),(0,ey.jsx)("p",{className:"text-mlh-muted mt-2 mb-6 font-sans text-[16px] text-pretty",children:F.body}),(0,ey.jsxs)("button",{onClick:a,className:"mlh-cta-plum flex w-full items-center justify-center gap-2 rounded-xl py-3.5 font-sans text-[18px] text-white",children:[F.cta," ",(0,ey.jsx)(vj,{size:17})]})]})]}):(0,ey.jsxs)("div",{role:"dialog","aria-modal":"true","aria-label":"Payment summary",onMouseDown:t=>t.target===t.currentTarget&&a(),className:`${tI.SCRIM} ${tI.SCRIM_PAD}`,children:[(0,ey.jsx)(tI.DialogBloom,{}),(0,ey.jsxs)("div",{style:tI.PANEL_WASH,className:`${tI.PANEL} ${tI.PANEL_FIT} flex w-full max-w-[920px] flex-col overflow-hidden`,children:[(0,ey.jsxs)("div",{"aria-hidden":!0,style:vM,className:"pointer-events-none absolute inset-0 overflow-hidden",children:[(0,ey.jsx)("span",{style:vP,className:"mlh-ring-spin border-mlh-plum-400/20 absolute -top-[180px] -right-[150px] h-[520px] w-[520px] rounded-full border border-dashed"}),(0,ey.jsx)("span",{style:vO,className:"mlh-ring-spin-rev absolute -top-[220px] -right-[190px] h-[620px] w-[620px] rounded-full opacity-25"}),(0,ey.jsx)("span",{className:"absolute -top-[150px] -right-[120px] h-[460px] w-[460px] rounded-full bg-[radial-gradient(circle,color-mix(in_srgb,var(--mlh-plum-400)_14%,transparent),transparent_66%)]"})]}),(0,ey.jsxs)("header",{className:"border-mlh-plum/20 relative flex flex-none items-center gap-3 border-b px-4 py-[15p
122x] sm:gap-3.5 sm:px-[30px] sm:py-[18px]",children:[(0,ey.jsx)("button",{onClick:r,"aria-label":"Back",className:`text-mlh-muted ${vz}`,children:(0,ey.jsx)(bQ.ChevronLeft,{size:16})}),(0,ey.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,ey.jsx)("div",{className:`${vD} text-mlh-plum-300/90`,children:"Step 2 of 2"}),(0,ey.jsx)("h2",{className:"mt-1 font-serif text-[22px] leading-none tracking-[-0.015em] text-white sm:mt-1.5 sm:text-[28px]",children:"Payment summary"})]}),(0,ey.jsx)("button",{onClick:a,"aria-label":"Close",className:`text-mlh-faint ${vz}`,children:(0,ey.jsx)(ym.X,{size:15})})]}),(0,ey.jsxs)("div",{className:"relative grid min-h-0 flex-1 grid-cols-1 overflow-y-auto md:grid-cols-[1fr_336px]",children:[(0,ey.jsxs)("div",{className:"border-mlh-plum/15 border-b px-4 pt-4 pb-5 sm:px-[26px] sm:pt-5 sm:pb-6 md:border-r md:border-b-0",children:[(0,ey.jsxs)("div",{className:"mb-[11px] flex items-baseline justify-between gap-3",children:[(0,ey.jsx)("span",{className:`${vD} text-mlh-muted`,children:"Your pack"}),(0,ey.jsxs)("button",{onClick:r,className:`${vR} text-mlh-plum-300/80 hover:text-mlh-plum-300 flex items-center gap-1 transition`,children:["Change ",(0,ey.jsx)(bS.ChevronRight,{size:11})]})]}),(0,ey.jsxs)("div",{className:"border-mlh-plum/50 bg-[linear-gradient(180deg,color-mix(in_srgb,var(--mlh-plum)_20%,transparent),rgba(255,255,255,0.02))] flex items-center gap-3.5 rounded-2xl border p-4 shadow-[inset_0_1px_0_rgba(255,255,255,0.05)]",children:[(0,ey.jsx)("span",{className:"mlh-plate-lit border-mlh-plum-400/45 text-mlh-plum-300 grid h-[38px] w-[38px] flex-none place-items-center rounded-[11px] border",children:(0,ey.jsx)(tH,{className:"h-[15px] w-[15px]"})}),(0,ey.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,ey.jsx)("div",{className:"font-serif text-[22px] leading-[1.05] text-white",children:Y}),(0,ey.jsx)("div",{className:"text-mlh-muted mt-[6px] font-sans text-[12.5px] leading-none",children:V})]})]}),u&&(0,ey.jsxs)("div",{className:"border-mlh-plum/15 mt-[22px] border-y py-[18px]",children:[(0,ey.jsxs)("div",{className:"mb-2.5 flex items-baseline justify-between gap-3",children:[(0,ey.jsx)("span",{className:`${vD} text-mlh-muted`,children:"Billing state"}),(0,ey.jsx)("span",{className:"text-mlh-faint font-sans text-[12px]",children:"Required on your GST invoice"})]}),(0,ey.jsx)("div",{className:"border-mlh-border-hi focus-within:border-mlh-plum/60 hover:border-mlh-plum/45 rounded-xl border px-3.5 py-1.5 transition",children:(0,ey.jsx)(vA,{value:p,onChange:m,options:vL,ariaLabel:"Billing state",className:"min-w-0"})})]}),(0,ey.jsxs)("div",{className:u?"pt-4":"border-mlh-plum/15 mt-[22px] border-t pt-[18px]",children:[(0,ey.jsxs)("div",{className:"mb-2.5 flex items-baseline justify-between gap-3",children:[(0,ey.jsx)("span",{className:`${vD} ${$?"text-mlh-success":"text-mlh-muted"}`,children:"Promo code"}),(0,ey.jsxs)("button",{onClick:()=>{P||(0,eb.track)("PROMO_DRAWER_OPENED_WEB_EVENT",{kind:t.kind}),O(t=>!t)},className:`${vR} text-mlh-plum-300/80 hover:text-mlh-plum-300 flex items-center gap-1 transition`,children:[P?"Hide coupons":"View all coupons",(0,ey.jsx)(bS.ChevronRight,{size:11,className:`transition-transform duration-200 ${P?"rotate-90":""}`})]})]}),$?(0,ey.jsxs)("div",{className:"border-mlh-success/30 bg-mlh-success/[0.06] flex items-center gap-3 rounded-xl border px-3.5 py-3",children:[(0,ey.jsx)("span",{className:"border-mlh-success/50 bg-mlh-success/15 text-mlh-success grid h-5 w-5 flex-none place-items-center rounded-full border",children:(0,ey.jsx)(yw.Check,{size:11,strokeWidth:3})}),(0,ey.jsx)("div",{className:"min-w-0 flex-1 font-mono text-[13px] font-semibold tracking-[0.1em] text-white uppercase",children:f}),(0,ey.jsx)("span",{className:"text-mlh-faint flex-none font-sans text-[12.5px]",children:"Applied"}),(0,ey.jsx)("button",{onClick:()=>{(0,eb.track)("PROMO_REMOVED_WEB_EVENT",{kind:t.kind}),x(null),N(null),A(null)},"aria-label":"Remove promo code",className:"text-mlh-faint hover:text-mlh-text flex-none transition",children:(0,ey.jsx)(ym.X,{size:14})})]}):(0,ey.jsxs)("div",{className:"border-mlh-border-hi focus-within:border-mlh-plum/60 flex items-center gap-2.5 rounded-xl border border-dashed px-3.5 py-[11px] transition",children:[(0,ey.jsx)("input",{value:S,onChange:t=>{C(t.target.value.toUpperCase()),A(null)},onKeyDown:t=>{"Enter"===t.key&&q(S)},placeholder:"Enter code","aria-label":"Promo code",className:"text-mlh-text placeholder:text-mlh-faint min-w-0 flex-1 bg-transparent font-mono text-[13px] tracking-[0.12em] uppercase outline-none placeholder:tracking-normal placeholder:normal-case"}),(0,ey.jsx)("button",{onClick:()=>void q(S),disabled:null!==I,className:`${vR} text-mlh-plum-300 hover:text-mlh-plum-100 flex-none transition disabled:opacity-60`,children:I===S.trim().toUpperCase()?"Checkingâ¦":"Apply"})]}),T&&(0,ey.jsx)("div",{role:"status",className:"text-mlh-amber mt-1.5 font-sans text-[12px] leading-[1.35] text-pretty",children:T}),P&&(0,ey.jsx)("div",{className:"animate-mlh-rise border-mlh-plum/25 mt-2.5 divide-y divide-white/[0.06] overflow-hidden rounded-xl border",children:0===B.length?(0,ey.jsx)("div",{className:"text-mlh-faint px-3.5 py-3 font-sans text-[12.5px]",children:null===D?"Loading couponsâ¦":"No coupons apply to this plan."}):B.map(r=>{let a=f===r.code;return(0,ey.jsxs)("button",{onClick:()=>{(0,eb.track)("PROMO_SUGGESTION_CLICKED_WEB_EVENT",{kind:t.kind}),C(""),q(r.code)},disabled:null!==I||a,className:`flex w-full items-center gap-3 px-3.5 py-3 text-left transition hover:bg-white/[0.03] disabled:hover:bg-transparent ${a?"bg-mlh-success/[0.05]":""}`,children:[(0,ey.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,ey.jsx)("div",{className:"font-mono text-[12px] font-semibold tracking-[0.12em] text-white uppercase",children:r.code}),(0,ey.jsx)("div",{className:"text-mlh-muted mt-[3px] font-sans text-[12.5px]",children:r.title??`${r.off??t.off}% off this plan`})]}),(0,ey.jsx)("span",{className:`${vR} flex-none ${a?"text-mlh-success":"text-mlh-plum-300"}
122`,children:I===r.code?"Checkingâ¦":a?"Applied":"Apply"})]},r.code)})})]})]}),(0,ey.jsxs)("div",{className:"flex flex-col px-4 pt-4 pb-5 sm:px-[26px] sm:pt-5 sm:pb-6",children:[(0,ey.jsx)("div",{className:`${vD} text-mlh-muted mb-4`,children:"Order"}),(0,ey.jsxs)("div",{className:"grid gap-3",children:[(0,ey.jsxs)("div",{className:v$,children:[(0,ey.jsx)("span",{className:"text-mlh-muted",children:(0,ev.unitLabel)(t.count,t.unit)}),(0,ey.jsx)("span",{className:"text-mlh-text tabular-nums",children:(0,ev.money)(t.mrp,t.currency)})]}),$&&(0,ey.jsxs)("div",{className:`${v$} text-mlh-success`,children:[(0,ey.jsxs)("span",{className:"min-w-0 truncate",children:[f," discount"]}),(0,ey.jsxs)("span",{className:"flex-none tabular-nums",children:["â ",(0,ev.money)(W,t.currency)]})]}),(0,ey.jsxs)("div",{className:`${v$} text-mlh-faint`,children:[(0,ey.jsx)("span",{children:"Taxes and fees"}),(0,ey.jsx)("span",{children:"Included"})]})]}),(0,ey.jsxs)("div",{className:"border-mlh-plum/25 mt-[18px] flex items-end justify-between gap-3 border-t pt-4",children:[(0,ey.jsxs)("div",{className:"min-w-0",children:[(0,ey.jsx)("div",{className:`${vD} text-mlh-muted`,children:"Total"}),u&&(0,ey.jsx)("div",{className:"text-mlh-faint mt-[7px] font-sans text-[12px] leading-none",children:"GST included"})]}),(0,ey.jsx)("div",{className:"font-serif text-[36px] leading-[0.95] tracking-[-0.02em] text-white tabular-nums",children:(0,ev.money)(U,t.currency)})]}),(0,ey.jsx)("div",{className:"min-h-4 flex-1"}),(0,ey.jsx)("button",{onClick:()=>void H(),disabled:b,className:"mlh-cta-plum mt-5 flex w-full items-center justify-center gap-2 rounded-xl py-3.5 font-sans text-[19px] text-white disabled:pointer-events-none disabled:opacity-60",children:b?"Startingâ¦":(0,ey.jsxs)(ey.Fragment,{children:["Proceed to Pay ",(0,ey.jsx)(vj,{size:17})]})}),w&&(0,ey.jsx)("div",{className:"mt-3",children:(0,ey.jsx)(yb,{notice:w})}),(0,ey.jsxs)("div",{className:`${vR} text-mlh-faint mt-3 flex items-center justify-center gap-2`,children:[(0,ey.jsx)(ts,{size:10,"aria-hidden":!0})," Razorpay secured"]})]})]})]})]})}var vU=t.i(89176),vB=t.i(37590),vF=t.i(32236);function vY({page:t,jobId:r,onOpen:a}){let n=t=>r=>{r.metaKey||r.ctrlKey||r.shiftKey||r.altKey||(r.preventDefault(),a(t))},i="jobs"===t&&r?bg(r):void 0,o=bp[t];return(0,ey.jsxs)("div",{className:"mx-auto max-w-[760px] px-4 py-8 sm:px-8 sm:py-10",children:[(0,ey.jsxs)("nav",{className:"text-mlh-faint mb-6 flex items-center gap-2 text-[13px]",children:[(0,ey.jsx)(bO.default,{href:"/",prefetch:!1,onClick:n("/"),className:"text-mlh-muted hover:brightness-150",children:"Melooha"}),(0,ey.jsx)(bS.ChevronRight,{size:13}),i?(0,ey.jsxs)(ey.Fragment,{children:[(0,ey.jsx)(bO.default,{href:bu("jobs"),prefetch:!1,onClick:n(bu("jobs")),className:"text-mlh-muted hover:brightness-150",children:o.title}),(0,ey.jsx)(bS.ChevronRight,{size:13}),(0,ey.jsx)("span",{className:"text-mlh-plum-300",children:i.title})]}):(0,ey.jsx)("span",{className:"text-mlh-plum-300",children:o.title})]}),i?(0,ey.jsx)(vJ,{job:i}):(0,ey.jsxs)(ey.Fragment,{children:[(0,ey.jsx)("h1",{className:"mb-8 font-serif text-3xl leading-tight font-bold text-white sm:text-4xl",children:o.title}),"faq"===t&&(0,ey.jsx)(vV,{}),"contact"===t&&(0,ey.jsx)(vH,{}),"jobs"===t&&(0,ey.jsx)(vZ,{inPlace:n}),"review"===t&&(0,ey.jsx)(vX,{})]})]})}function vV(){return(0,ey.jsx)("div",{className:"space-y-9",children:y9.map(t=>(0,ey.jsxs)("section",{children:[(0,ey.jsx)("h2",{className:"mb-4 font-serif text-xl font-bold text-white",children:t.cat}),(0,ey.jsx)("div",{className:"space-y-2.5",children:t.qa.map(([t,r])=>(0,ey.jsxs)("details",{className:"group bg-mlh-surface border-mlh-border rounded-xl border",children:[(0,ey.jsxs)("summary",{className:"text-mlh-text flex cursor-pointer list-none items-center justify-between gap-4 px-5 py-4 text-[15px] font-semibold [&::-webkit-details-marker]:hidden",children:[t,(0,ey.jsx)(tt.ChevronDown,{size:16,className:"text-mlh-plum-400 flex-none transition-transform group-open:rotate-180"})]}),(0,ey.jsx)("p",{className:"text-mlh-muted px-5 pb-5 text-[14.5px] leading-relaxed",children:r})]},t))})]},t.cat))})}function vq({children:t}){return(0,ey.jsx)("div",{className:"bg-mlh-surface border-mlh-border rounded-2xl border p-6",children:t})}function vH(){return(0,ey.jsxs)("div",{className:"grid grid-cols-1 gap-4 sm:grid-cols-2",children:[(0,ey.jsxs)(vq,{children:[(0,ey.jsx)("span",{className:"border-mlh-plum-400/30 text-mlh-plum-300 mb-4 grid h-10 w-10 place-items-center rounded-xl border",children:(0,ey.jsx)(bA,{size:17})}),(0,ey.jsx)("a",{href:`mailto:${bm}`,className:"hover:text-mlh-plum-300 text-[16px] text-white",children:bm})]}),(0,ey.jsxs)(vq,{children:[(0,ey.jsx)("span",{className:"border-mlh-plum-400/30 text-mlh-plum-300 mb-4 grid h-10 w-10 place-items-center rounded-xl border",children:(0,ey.jsx)(yN,{size:17})}),(0,ey.jsx)("address",{className:"text-[16px] leading-relaxed text-white not-italic",children:"702, 63 Shivaji Nagar, Nagpur 440010, India"})]})]})}function vZ({inPlace:t}){return(0,ey.jsxs)(ey.Fragment,{children:[(0,ey.jsx)("div",{className:"bg-mlh-plum/12 border-mlh-plum mb-8 space-y-4 rounded-2xl border p-6",children:bf.map((t,r)=>(0,ey.jsx)("p",{className:"text-mlh-text text-[15px] leading-relaxed",children:t},r))}),(0,ey.jsx)("div",{className:"space-y-4",children:bx.map(r=>(0,ey.jsxs)(bO.default,{href:bh(r.id),prefetch:!1,onClick:t(bh(r.id)),className:"bg-mlh-surface border-mlh-border block rounded-2xl border p-6 transition hover:brightness-125",children:[(0,ey.jsx)("h2",{className:"mb-2 font-serif text-xl font-bold text-white",children:r.title}),(0,ey.jsx)("p",{className:"text-mlh-muted mb-4 text-[14.5px] leading-relaxed",children:r.summary}),(0,ey.jsxs)("div",{className:"text-mlh-faint flex flex-wrap gap-x-5 gap-y-2 text-[13px]",children:[(0,ey.jsxs)("span",{className:"flex items-center gap-1.5",children:[(0,ey.jsx)(yN,{size:13})," ",r.location]}),(0,ey.jsxs)("span",{className:"flex items-center gap-1.5",children:[(0,ey.jsx)(vF.Clock,{size:13})," ",r.type]})]}),(0,ey.jsxs)("span",{className:"text-mlh-plum-300 mt-4 inline-flex items-center gap-1 text-[14px] font-semibold",children:["Apply Now ",(0,ey.jsx)(vU.ArrowUpRight,{size:14})]})]},r.id))})]})}function vK({job:t}){let r=[[yN,"Location",t.location],[vF.Clock,"Type",t.type],[vB.Briefcase,"Experience",t.experience]];return(0,ey.jsx)("dl",{className:"bg-mlh-surface border-mlh-border grid grid-cols-1 gap-4 roun
122ded-2xl border p-5 sm:grid-cols-3",children:r.map(([t,r,a])=>(0,ey.jsxs)("div",{className:"flex items-start gap-3",children:[(0,ey.jsx)(t,{size:15,className:"text-mlh-plum-400 mt-[3px] flex-none"}),(0,ey.jsxs)("div",{children:[(0,ey.jsx)("dt",{className:"text-mlh-faint text-[12px]",children:r}),(0,ey.jsx)("dd",{className:"text-[15px] text-white",children:a})]})]},r))})}function vG({items:t}){return(0,ey.jsx)("ul",{className:"space-y-3",children:t.map(t=>{let r=t.indexOf(": "),a=r>0&&r<40?t.slice(0,r+1):null;return(0,ey.jsxs)("li",{className:"text-mlh-muted flex gap-3 text-[15px] leading-relaxed",children:[(0,ey.jsx)("span",{"aria-hidden":!0,className:"bg-mlh-plum-400/70 mt-[10px] h-[5px] w-[5px] flex-none rounded-full"}),(0,ey.jsx)("span",{className:"min-w-0",children:a?(0,ey.jsxs)(ey.Fragment,{children:[(0,ey.jsx)("strong",{className:"text-mlh-text font-semibold",children:a}),t.slice(r+1)]}):t})]},t)})})}function vJ({job:t}){let r=`mailto:${t.email}?subject=${encodeURIComponent(`Application: ${t.title}`)}`;return(0,ey.jsxs)(ey.Fragment,{children:[(0,ey.jsx)("h1",{className:"mb-6 font-serif text-3xl leading-tight font-bold text-white sm:text-4xl",children:t.title}),(0,ey.jsx)(vK,{job:t}),(0,ey.jsxs)("div",{className:"mt-10 space-y-10",children:[(0,ey.jsxs)("section",{children:[(0,ey.jsx)("h2",{className:"mb-4 font-serif text-xl font-bold text-white",children:"Does the following resonate with you?"}),(0,ey.jsx)(vG,{items:t.traits}),(0,ey.jsx)("p",{className:"text-mlh-text mt-4 text-[15px]",children:"If so, consider joining Melooha!"}),(0,ey.jsx)("p",{className:"text-mlh-muted mt-4 text-[15px] leading-relaxed",children:t.lede})]}),(0,ey.jsxs)("section",{children:[(0,ey.jsx)("h2",{className:"mb-4 font-serif text-xl font-bold text-white",children:"Responsibilities"}),(0,ey.jsx)(vG,{items:t.responsibilities})]}),(0,ey.jsxs)("section",{children:[(0,ey.jsx)("h2",{className:"mb-4 font-serif text-xl font-bold text-white",children:"Qualifications"}),(0,ey.jsx)(vG,{items:t.qualifications})]}),(0,ey.jsx)("p",{className:"text-mlh-muted text-[15px] leading-relaxed",children:t.closing})]}),(0,ey.jsxs)("div",{className:"bg-mlh-plum/12 border-mlh-plum mt-10 flex flex-wrap items-center gap-x-4 gap-y-3 rounded-2xl border p-5",children:[(0,ey.jsx)(bA,{size:16,className:"text-mlh-plum-300 flex-none"}),(0,ey.jsx)("a",{href:`mailto:${t.email}`,className:"hover:text-mlh-plum-300 text-[15px] text-white",children:t.email}),(0,ey.jsx)("a",{href:r,className:"bg-mlh-plum mlh-focus-ring ml-auto rounded-xl px-5 py-2.5 text-[15px] font-semibold text-white hover:brightness-110",children:"Apply"})]})]})}function vX(){let[t,r]=(0,ek.useState)(""),[a,n]=(0,ek.useState)(""),[i,o]=(0,ek.useState)(""),[s,l]=(0,ek.useState)("");return(0,ey.jsxs)("form",{onSubmit:r=>{r.preventDefault();let n=[t,a].map(t=>t.trim()).filter(Boolean).join(" "),o=[s.trim(),"",...n?[`Name: ${n}`]:[],`Location: ${i.trim()}`].join("\n");window.location.href=`mailto:${bm}?subject=${encodeURIComponent("A review of Melooha")}&body=${encodeURIComponent(o)}`},className:"space-y-4",children:[(0,ey.jsxs)("div",{className:"grid grid-cols-1 gap-4 sm:grid-cols-2",children:[(0,ey.jsx)("input",{"aria-label":"First name",placeholder:"First Name",maxLength:256,value:t,onChange:t=>r(t.target.value),className:ys}),(0,ey.jsx)("input",{"aria-label":"Last name",placeholder:"Last Name",maxLength:256,value:a,onChange:t=>n(t.target.value),className:ys})]}),(0,ey.jsx)("input",{"aria-label":"Location",placeholder:"Location",maxLength:256,required:!0,value:i,onChange:t=>o(t.target.value),className:ys}),(0,ey.jsx)("textarea",{"aria-label":"Your review",placeholder:"Start typing your message here...",maxLength:5e3,required:!0,rows:7,value:s,onChange:t=>l(t.target.value),className:`${ys} resize-y`}),(0,ey.jsxs)("div",{className:"flex flex-wrap items-center gap-x-4 gap-y-3",children:[(0,ey.jsx)("button",{type:"submit",className:"bg-mlh-plum mlh-focus-ring rounded-xl px-5 py-3 text-[15px] font-semibold text-white hover:brightness-110",children:"Submit"}),(0,ey.jsxs)("span",{className:"text-mlh-faint text-[13px]",children:["Opens your email app, addressed to ",bm,"."]})]})]})}let vQ=["96%","89%","58%"];function v0({w:t,className:r=""}){return(0,ey.jsx)("div",{style:{width:t},className:`mlh-shimmer h-[11px] rounded-full ${r}`})}function v1({lines:t=vQ}){return(0,ey.jsxs)("div",{className:"border-mlh-plum-500/12 grid grid-cols-1 gap-x-4 gap-y-2.5 border-b py-4 sm:grid-cols-[100px_minmax(0,1fr)]",children:[(0,ey.jsx)(v0,{w:"62px",className:"h-[9px] sm:mt-[6px]"}),(0,ey.jsx)("div",{className:"flex flex-col gap-[9px]",children:t.map((t,r)=>(0,ey.jsx)(v0,{w:t},r))})]})}function v2({rows:t=5}){return(0,ey.jsxs)("div",{className:"mt-3.5",children:[(0,ey.jsx)("p",{className:"sr-only",role:"status",children:"Loading this reading."}
122),(0,ey.jsx)("div",{"aria-hidden":!0,children:Array.from({length:t},(t,r)=>(0,ey.jsx)(v1,{},r))})]})}function v5(){return(0,ey.jsxs)("div",{"aria-hidden":!0,className:"border-mlh-plum-500/20 mt-4 flex gap-5 rounded-2xl border bg-[linear-gradient(180deg,color-mix(in_srgb,var(--mlh-plum-500)_9%,transparent),transparent)] p-5",children:[(0,ey.jsx)("div",{className:"mlh-shimmer hidden h-[110px] w-[68px] flex-none rounded-[10px] sm:block"}),(0,ey.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col gap-2.5",children:[(0,ey.jsx)(v0,{w:"70px",className:"h-[9px]"}),(0,ey.jsx)(v0,{w:"180px",className:"h-[17px]"}),(0,ey.jsx)("div",{className:"mt-1 flex flex-col gap-[9px]",children:vQ.map((t,r)=>(0,ey.jsx)(v0,{w:t},r))})]})]})}function v4(){return(0,ey.jsx)("div",{"aria-hidden":!0,className:"mt-3.5",children:[0,1,2].map(t=>(0,ey.jsxs)("div",{className:"border-mlh-plum-500/12 flex items-center justify-between gap-4 border-b py-3.5 last:border-b-0 last:pb-0",children:[(0,ey.jsx)(v0,{w:"78px",className:"h-[9px]"}),(0,ey.jsx)(v0,{w:"52px",className:"h-[13px]"})]},t))})}function v3(){return(0,ey.jsxs)("span",{"aria-hidden":!0,className:"mt-2.5 flex flex-col gap-[7px]",children:[(0,ey.jsx)(v0,{w:"94%",className:"h-[9px]"}),(0,ey.jsx)(v0,{w:"61%",className:"h-[9px]"})]})}function v6({sign:t,period:r,onReadDaily:a,onAsk:n}){let i=bc.PERIOD_LABEL[r].toLowerCase(),o="daily"===r;return(0,ek.useEffect)(()=>{(0,eb.track)("HOROSCOPE_GAP_SHOWN_WEB_EVENT",{sign:t.id,period:r})},[t.id,r]),(0,ey.jsx)("section",{className:"mlh-in [--mlh-in-delay:140ms]","aria-labelledby":"period-unavailable-heading",children:(0,ey.jsxs)("div",{className:"border-mlh-plum-500/20 rounded-2xl border bg-[linear-gradient(180deg,color-mix(in_srgb,var(--mlh-plum-500)_9%,transparent),transparent)] px-6 py-8 sm:px-8 sm:py-10",children:[(0,ey.jsx)("span",{className:"border-mlh-plum-400/30 mlh-plate-lit text-mlh-plum-300 font-symbols grid h-[44px] w-[44px] place-items-center rounded-full border text-[18px] leading-none",children:"â»"}),(0,ey.jsxs)("h2",{id:"period-unavailable-heading",className:"mt-5 font-serif text-[26px] leading-tight text-white sm:text-[30px]",children:[t.name,"âs ",i," reading isnât published yet"]}),(0,ey.jsxs)("p",{className:"text-mlh-muted mt-3 max-w-[560px] text-[15px] leading-[1.6] text-pretty",children:["We publish a reading only once it has been written and checked, and the ",i," forecast for ",t.rashi," Rashi is not through that yet. Rather than fill the space with something generated, we have left it empty: you would have no way of telling the difference, and that is precisely the problem."]}),(0,ey.jsx)("p",{className:"text-mlh-muted mt-3 max-w-[560px] text-[15px] leading-[1.6] text-pretty",children:o?(0,ey.jsx)(ey.Fragment,{children:"Vaani can still read your day, and does it from your whole birth chart rather than the Moon sign alone â which is a closer answer than this page was going to give you."}):(0,ey.jsxs)(ey.Fragment,{children:[t.name,"âs reading for ",bc.WORD.daily," is live now, and Vaani can answer a ",i," question from your full birth chart rather than the Moon sign alone."]})}),(0,ey.jsxs)("div",{className:"mt-6 flex flex-wrap gap-3",children:[!o&&(0,ey.jsx)("button",{onClick:a,className:"border-mlh-plum-400/55 bg-mlh-plum-500/18 text-mlh-plum-100 hover:bg-mlh-plum-500/28 hover:border-mlh-plum-400/80 cursor-pointer rounded-full border px-5 py-2.5 font-sans text-[15px] transition",children:"Read todayâs instead"}),(0,ey.jsxs)("button",{onClick:n,className:`cursor-pointer rounded-full border px-5 py-2.5 font-sans text-[15px] transition ${o?"border-mlh-plum-400/55 bg-mlh-plum-500/18 text-mlh-plum-100 hover:bg-mlh-plum-500/28 hover:border-mlh-plum-400/80":"border-mlh-border text-mlh-muted hover:border-mlh-plum-400/45 hover:text-mlh-text"}`,children:["Ask Vaani about ",bc.WORD[r]]})]})]})})}function v8({period:t}){return(0,ey.jsxs)("p",{className:"text-mlh-faint mt-3.5 text-[13px] leading-[1.6] text-pretty",children:["The lucky colour and number are published with the reading itself, so they arrive when the ",bc.PERIOD_LABEL[t].toLowerCase()," forecast does."]})}function v9({sign:t,px:r,className:a="",priority:n=!1}){return(0,ey.jsx)(tU.default,{src:t.art,alt:"","aria-hidden":!0,width:r,height:r,quality:92,priority:n,draggable:!1,
122className:`pointer-events-none object-contain select-none ${a}`})}function v7({children:t,className:r=""}){return(0,ey.jsx)("span",{className:`block font-mono text-[9.5px] tracking-[0.22em] ${r}`,children:t})}function we({children:t}){return(0,ey.jsx)("h2",{className:"font-serif text-[26px] leading-none text-white sm:text-[30px]",children:t})}function wt({name:t,role:r}){return(0,ey.jsxs)("div",{className:"border-mlh-plum-500/15 flex items-center gap-3 border-b pb-3.5",children:[(0,ey.jsx)("span",{className:"border-mlh-plum-400/35 mlh-plate-lit text-mlh-plum-300 grid h-[34px] w-[34px] flex-none place-items-center rounded-full border font-sans text-[15px]",children:t.replace(/^Dr\.\s*/,"")[0]}),(0,ey.jsxs)("span",{className:"min-w-0",children:[(0,ey.jsx)("span",{className:"text-mlh-text block font-sans text-[17px] leading-tight",children:t}),(0,ey.jsx)(v7,{className:"text-mlh-faint mt-1",children:r})]})]})}function wr({label:t,text:r}){return(0,ey.jsxs)("div",{className:"border-mlh-plum-500/12 grid grid-cols-1 gap-x-4 gap-y-1.5 border-b py-4 sm:grid-cols-[100px_minmax(0,1fr)]",children:[(0,ey.jsx)(v7,{className:"text-mlh-plum-400 sm:pt-[5px]",children:t}),(0,ey.jsx)("p",{className:"text-mlh-muted text-[15px] leading-[1.6] text-pretty",children:r})]})}function wa({sign:t,period:r,setPeriod:a,onBack:n,onOpen:i,onAsk:o,user:s,openCalculator:l,state:d,feedConfigured:c,asOf:u}){let h=(0,bc.isLivePeriod)(r),p=h&&"loading"===d.status,m=(0,bc.isPeriodicPeriod)(r),f=d.reading&&(0,bc.isPeriodicReading)(d.reading)?d.reading:null,x=d.reading&&!(0,bc.isPeriodicReading)(d.reading)?d.reading:(0,bc.buildHoroscope)(t,r),g=!h||!p&&(m?!f:c&&!d.reading),y=bc.WORD[r],{label:b,range:v}=(0,bc.periodRange)(r,{asOf:u,readingDate:m?f?.periodStart:g||p?void 0:x.readingDate}),w=[["LUCKY COLOUR",x.lucky.color],["LUCKY NUMBER",x.lucky.number?String(x.lucky.number):""],["LUCKY TIME",x.lucky.time??""]].filter(([,t])=>""!==t.trim()),k=[["CAREER",x.tarotCareer??""],["LOVE",x.tarotLove??""],["HEALTH",x.tarotHealth??""]].filter(([,t])=>""!==t.trim()),j=()=>((0,eb.track)("ASK_HANDOFF_CLICKED_WEB_EVENT",{from:"horoscopes",id:t.id}),o?.(function({sign:t,period:r,reading:a}){let n=bc.WORD[r],i=`How much of this applies to me ${n}, going by my own birth chart?`;if(!a)return`My Moon sign is ${t.name} (${t.rashi}). How does ${n} look for me, from my own birth chart?`;let o=(0,bc.isPeriodicReading)(a)?(0,bc.orderedSections)(a).slice(0,5).map(([t,r])=>{let a;return bZ((a=bc.SECTION_LABEL[t],`${a.charAt(0)}${a.slice(1).toLowerCase()}`),bK(r))}):[bZ("Good",bK(a.positive)),bZ("Watch out",bK(a.negative)),bZ("Career",bK(a.career)),bZ("Love",bK(a.love)),bZ("Health",bK(a.health))];return bH([`My ${t.name} (${t.rashi}) horoscope for ${n} says:`,...bH(o).map(t=>`- ${t}`),i]).join("\n")}({sign:t,period:r,...p||g?{}:m?{reading:f}:{reading:x}})));return(0,ey.jsxs)("div",{className:"mx-auto max-w-6xl px-4 pt-5 pb-16 sm:px-8 sm:pt-6",children:[(0,ey.jsxs)("nav",{"aria-label":"Breadcrumb",className:"text-mlh-faint mlh-in flex min-w-0 items-center gap-2.5 font-mono text-[10px] tracking-[0.2em] [--mlh-in-delay:40ms]",children:[(0,ey.jsx)(bO.default,{href:"/horoscopes",prefetch:!1,onClick:t=>{t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||(t.preventDefault(),n())},className:"text-mlh-plum-400 hover:text-mlh-plum-300 cursor-pointer transition",children:"HOROSCOPES"}),(0,ey.jsx)("span",{"aria-hidden":!0,children:"âº"}),(0,ey.jsx)("span",{className:"truncate",children:t.name.toUpperCase()})]}),(0,ey.jsxs)("header",{className:"border-mlh-plum-500/20 mlh-in mt-4 border-b pb-6 [--mlh-in-delay:80ms]",children:[(0,ey.jsx)("span",{className:"mlh-plate-art grid h-[56px] w-[56px] place-items-center overflow-hidden rounded-[18px]",children:(0,ey.jsx)(v9,{sign:t,px:46,priority:!0})}),(0,ey.jsxs)("h1",{className:"mt-4 font-serif text-[32px] leading-[1.05] tracking-[-0.015em] text-balance text-white sm:text-[46px]",children:[t.name," horoscope"," ",(0,ey.jsx)("span",{className:"text-mlh-plum-300 italic",children:y})]}),(0,ey.jsx)("div",{className:"text-mlh-faint mt-4 flex flex-wrap items-center gap-x-3 gap-y-1.5 font-mono text-[10px] tracking-[0.16em]",children:[`${t.rashi.toUpperCase()} RASHI`,`RULED BY ${t.ruler.toUpperCase()}`].map((t,r)=>(0,ey.jsxs)("span",{className:"flex items-center gap-3",children:[r>
1220&&(0,ey.jsx)("span",{"aria-hidden":!0,className:"text-mlh-plum-500/60",children:"·"}),t]},t))}),(0,ey.jsxs)("p",{className:"text-mlh-muted mt-4 flex items-baseline gap-3 font-sans text-[16px] leading-[1.55]",children:[(0,ey.jsx)("span",{"aria-hidden":!0,className:"text-mlh-plum-400 font-symbols flex-none text-[13px] leading-none",children:"â¾"}),(0,ey.jsxs)("span",{className:"min-w-0",children:["For those with the Moon in ",t.name," (",t.rashi,") at birth. Not sure of your Rashi?"," ",(0,ey.jsx)("button",{onClick:()=>{(0,eb.track)("CROSS_SURFACE_CLICKED_WEB_EVENT",{from:"horoscopes",to:"calculators",id:"moon-sign-calculator"}),l("moon-sign-calculator")},className:"text-mlh-plum-300 decoration-mlh-plum-400/50 hover:text-mlh-plum-100 cursor-pointer underline underline-offset-4 transition",children:"Find your Moon sign"})]})]}),(0,ey.jsxs)("div",{className:"mlh-in mt-6 flex flex-wrap items-center gap-2 [--mlh-in-delay:110ms]",children:[(0,ey.jsx)("nav",{"aria-label":"Reading period",className:"flex flex-wrap gap-2",children:bc.PERIODS.map(([n,i])=>{let o=r===n;return(0,ey.jsx)(bO.default,{href:(0,bc.signPath)(t.id,n),prefetch:!1,onClick:r=>{r.metaKey||r.ctrlKey||r.shiftKey||r.altKey||(r.preventDefault(),(0,eb.track)("HOROSCOPE_PERIOD_CHANGED_WEB_EVENT",{period:n,sign:t.id}),a(n))},"aria-current":o?"page":void 0,className:`cursor-pointer rounded-full border px-[18px] py-2 font-sans text-[15px] leading-[1.4] transition ${o?"border-mlh-plum-400/60 bg-mlh-plum-500/20 text-mlh-plum-100":"border-mlh-border text-mlh-muted hover:border-mlh-plum-400/40 hover:text-mlh-text"}`,children:i},n)})}),v&&(0,ey.jsxs)("div",{className:"border-mlh-border flex items-center gap-2.5 rounded-full border px-[18px] py-2 font-sans text-[15px] leading-[1.4]",children:[(0,ey.jsx)("span",{className:"text-mlh-plum-400 font-mono text-[10px] tracking-[0.2em]",children:b.toUpperCase()}),(0,ey.jsx)("span",{"aria-hidden":!0,className:"text-mlh-plum-500/60",children:"·"}),(0,ey.jsx)("span",{className:"text-mlh-text",children:v})]})]})]}),(0,ey.jsxs)("div",{className:"mt-8 grid grid-cols-1 items-start gap-x-8 gap-y-7 lg:grid-cols-[minmax(0,1fr)_320px] xl:gap-x-10",children:[(0,ey.jsxs)("div",{className:"flex min-w-0 flex-col gap-9",children:[g?(0,ey.jsx)(v6,{sign:t,period:r,onReadDaily:()=>a("daily"),onAsk:j}):m?(0,ey.jsxs)("section",{className:"quick-answer mlh-in [--mlh-in-delay:140ms]",children:[(0,ey.jsx)(wt,{name:"Melooha Astrology Team",role:"VEDIC ASTROLOGERS · MELOOHA"}),(0,ey.jsxs)("div",{className:"mt-6",children:[(0,ey.jsx)(we,{children:"According to your Moon sign"}),p||!f?(0,ey.jsx)(v2,{rows:6}):(0,ey.jsx)("div",{className:"mt-3.5",children:(0,bc.orderedSections)(f).map(([t,r])=>(0,ey.jsx)(wr,{label:bc.SECTION_LABEL[t],text:r},t))})]})]}):(0,ey.jsxs)(ey.Fragment,{children:[(0,ey.jsxs)("section",{className:"quick-answer mlh-in [--mlh-in-delay:140ms]",children:[(0,ey.jsx)(wt,{name:"Melooha Astrology Team",role:"VEDIC ASTROLOGERS · MELOOHA"}),(0,ey.jsxs)("div",{className:"mt-6",children:[(0,ey.jsx)(we,{children:"According to your Moon sign"}),p?(0,ey.jsx)(v2,{}):(0,ey.jsxs)("div",{className:"mt-3.5",children:[(0,ey.jsx)(wr,{label:"POSITIVE",text:x.positive}),(0,ey.jsx)(wr,{label:"NEGATIVE",text:x.negative}),(0,ey.jsx)(wr,{label:"CAREER",text:x.career}),(0,ey.jsx)(wr,{label:"LOVE",text:x.love}),(0,ey.jsx)(wr,{label:"HEALTH",text:x.health})]})]})]}),(0,ey.jsxs)("section",{children:[(0,ey.jsx)(wt,{name:"Anjali",role:"TAROT READER · MELOOHA"}),(0,ey.jsxs)("div",{className:"mt-6",children:[(0,ey.jsx)(we,{children:"Tarot horoscope"}),p?(0,ey.jsx)(v5,{}):(0,ey.jsxs)("div",{className:"border-mlh-plum-500/20 mt-4 rounded-2xl border bg-[linear-gradient(180deg,color-mix(in_srgb,var(--mlh-plum-500)_9%,transparent),transparent)] p-5",children:[(0,ey.jsxs)("div",{className:"flex gap-5",children:[(0,ey.jsx)("span",{"aria-hidden":!0,className:"border-mlh-plum-400/35 text-mlh-plum-300 font-symbols hidden h-[110px] w-[68px] flex-none place-items-center rounded-[10px] border bg-[linear-gradient(160deg,color-mix(in_srgb,var(--mlh-plum-500)_38%,transparent),color-mix(in_srgb,var(--mlh-plum-500)_8%,transparent))] text-[22px] leading-none shadow-[inset_0_0_18px_color-mix(in_srgb,var(--mlh-plum-400)_20%,transparent)] sm:grid",children:"â»"}),(0,ey.jsxs)("div",{className:"min-w-0",children:[(0,ey.jsx)(v7,{className:"text-mlh-faint",children:"CARD DRAWN"}),(0,ey.jsx)("div",{className:"mt-2 font-sans text-[23px] leading-tight text-white",children:x.tarotCard}),(0,ey.jsx)("p",{className:"text-mlh-muted mt-2.5 text-[15px] leading-[1.6] text-pretty",children:x.tarotBody})]})]}),k.length>0&&(0,ey.jsx)("div",{className:"border-mlh-plum-500/15 mt-5 border-t pt-1",children:k.map(([t,r])=>(0,ey.jsx)(wr,{label:t,text:r},t))})]})]})]})]}),(0,ey.jsxs)("section",{children:[(0,ey.jsx)(we,{children:"Other signs"}),(0,ey.jsx)("div",{className:"mt-4 grid grid-cols-1 gap-3 sm:grid-cols-2 xl:grid-cols-3",children:bc.RASHIS.filter(r=>r.id!==t.id).map((t,a)=>(0,ey.jsxs)(bO.default,{href:(0,bc.signPath)(t.id,r),prefetch:!1,onClick:a=>{a.metaKey||a.ctrlKey||a.shiftKey||a.altKey||(a.preventDefault(),(0,eb.track)("HOROSCOPE_SIGN_OPENED_WEB_EVENT",{sign:t.id,period:r,from:"detail_cluster"}),i(t))},style:e4(26*a),className:"group border-mlh-plum-500/20 bg-mlh-plum-500/5 hover:border-mlh-plum-400/55 hover:bg-mlh-plum-500/12 mlh-in flex cursor-pointer items-center gap-2.5 rounded-xl border px-3.5 py-3 text-left transition",children:[(0,ey.jsx)("span",{className:"mlh-plate-art grid h-[30px] w-[30px] flex-none place-items-center overflow-hidden rounded-[9px]",children:(0,ey.jsx)(v9,{sign:t,px:24})}),(0,ey.jsx)("span",{className:"text-mlh-text min-w-0 flex-1 truncate font-sans text-[18px] leading-tight",children:t.name}
122),(0,ey.jsx)("span",{"aria-hidden":!0,className:"text-mlh-plum-400 flex-none font-mono text-[12px] transition group-hover:translate-x-0.5",children:"â"})]},t.id))})]})]}),(0,ey.jsxs)("aside",{className:"flex flex-col gap-3.5 lg:sticky lg:top-4",children:[!m&&(0,ey.jsxs)("div",{className:"border-mlh-plum-500/20 bg-mlh-plum-500/5 mlh-in rounded-2xl border px-5 py-[18px] [--mlh-in-delay:200ms]",children:[(0,ey.jsx)(v7,{className:"text-mlh-plum-400",children:`${y.toUpperCase()} AT A GLANCE`}),g?(0,ey.jsx)(v8,{period:r}):p?(0,ey.jsx)(v4,{}):(0,ey.jsx)("div",{className:"mt-3.5",children:w.map(([t,r])=>(0,ey.jsxs)("div",{className:"border-mlh-plum-500/12 flex items-baseline justify-between gap-4 border-b py-3 last:border-b-0 last:pb-0",children:[(0,ey.jsx)(v7,{className:"text-mlh-faint",children:t}),(0,ey.jsx)("span",{className:"text-mlh-text text-right font-sans text-[19px] leading-none",children:r})]},t))})]}),!m&&!g&&!p&&x.remedy&&(0,ey.jsxs)("div",{className:"border-mlh-plum-400/40 mlh-in rounded-2xl border bg-[linear-gradient(180deg,color-mix(in_srgb,var(--mlh-plum-500)_16%,transparent),rgba(255,255,255,.015))] px-5 py-[18px] [--mlh-in-delay:240ms]",children:[(0,ey.jsxs)("div",{className:"text-mlh-plum-400 flex items-center gap-2.5",children:[(0,ey.jsx)("span",{"aria-hidden":!0,className:"font-symbols text-[13px] leading-none",children:"â"}),(0,ey.jsx)(v7,{children:`REMEDY FOR ${y.toUpperCase()}`})]}),(0,ey.jsx)("p",{className:"mt-3 font-sans text-[19px] leading-[1.4] text-pretty text-white",children:x.remedy}),(0,ey.jsx)("p",{className:"text-mlh-faint mt-2.5 text-[13px] leading-[1.55] text-pretty",children:"Traditional Chandra remedy, offered because the Moon rules the sign this reading is cast from."})]}),(0,ey.jsxs)("div",{className:"border-mlh-plum-400/50 mlh-in w-full rounded-2xl border bg-[linear-gradient(180deg,color-mix(in_srgb,var(--mlh-plum-500)_22%,transparent),rgba(255,255,255,.02))] px-5 py-[18px] shadow-[0_18px_44px_rgba(0,0,0,.45)] [--mlh-in-delay:280ms]",children:[(0,ey.jsxs)("div",{className:"flex items-start gap-3.5",children:[(0,ey.jsx)("span",{className:"border-mlh-plum-400/35 mlh-plate-lit text-mlh-plum-300 grid h-[38px] w-[38px] flex-none place-items-center rounded-full border",children:(0,ey.jsx)(e$.SparkleIcon,{size:17})}),(0,ey.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,ey.jsx)("span",{className:"block font-serif text-[20px] leading-tight text-white",children:"Want more than your Rashi?"}),(0,ey.jsx)("span",{className:"text-mlh-muted mt-1.5 block text-[13.5px] leading-[1.55] text-pretty",children:"Ask Vaani for guidance computed from your full birth chart, not the Moon sign alone."})]})]}),(0,ey.jsx)("button",{onClick:j,className:"mlh-cta-plum mt-4 flex w-full cursor-pointer items-center justify-center gap-2 rounded-xl py-3 font-sans text-[15px] font-bold text-white",children:"Ask Vaani"})]})]})]})]})}let wn={status:"loading",reading:null},wi={status:"unavailable",reading:null},wo=(t,r)=>`${t}:${r}`,ws=[{key:"Fire",tattva:"Agni",trait:"INITIATING · TRANSFORMATIVE",signs:["aries","leo","sagittarius"]},{key:"Earth",tattva:"Prithvi",trait:"STEADY · ACCUMULATIVE",signs:["taurus","virgo","capricorn"]},{key:"Air",tattva:"Vayu",trait:"RELATIONAL · MOBILE",signs:["gemini","libra","aquarius"]},{key:"Water",tattva:"Jala",trait:"RECEPTIVE · CYCLIC",signs:["cancer","scorpio","pisces"]}];function wl({className:t}){return(0,ey.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":!0,className:t,children:(0,ey.jsx)("path",{d:"M18.75 4.21a9 9 0 1 0 0 15.58 7.95 7.95 0 1 1 0-15.58Z"})})}function wd(){let t=document.querySelector("main");t?t.scrollTop=0:window.scrollTo({top:0})}function wc({selected:t,setSelected:r,period:a,setPeriod:n,onAsk:i,user:o,openCalculator:s,initialReadings:l,initialPeriod:d="daily",initialReadingsComplete:c=!1,initialVersions:u,feedConfigured:h=!1,asOf:p}){let[m,f]=(0,ek.useState)(""),{get:x,state:g,ensure:y,ensureAll:b,asOf:v}=function({initial:t,initialPeriod:r,initialComplete:a=!1,initialVersions:n,initialAsOf:i,enabled:o}){let[s,l]=(0,ek.useState)(0),[d,c]=(0,ek.useState)(()=>Object.fromEntries(Object.entries(t??{}).map(([t,a])=>[wo(t,r),{status:"ready",reading:a,gen:0}]))),[u,h]=(0,ek.useState)(i),[p,m]=(0,ek.useState)({}),f=(0,ek.useRef)(new Map),x=(0,ek.useRef)(new Map(a&&Object.keys(t??{}).length?[[r,0]]:[])),g=(0,ek.useRef)(0),y=(0,ek.useRef)(n&&Object.keys(n).length?JSON.stringify(n):null),b=(0,ek.useRef)(0),v=(0,ek.useCallback)((t,r)=>{if(!o||!(0,bc.isLivePeriod)(r))return;let a=wo(t,r),n=d[a];n&&n.gen===s||f.current.get(a)===s||(f.current.set(a,s),n||c(t=>({...t,[a]:{...wn,gen:s}})),(0,is.fetchHoroscope)(t,r).then(t=>{g.current===s&&c(r=>({...r,[a]:t?{status:"ready",reading:t,gen:s}:{...wi,gen:s}}))}).catch(()=>{g.current===s&&c(t=>({...t,[a]:{...wi,gen:s}}))}).finally(()=>{f.current.get(a)===s&&f.current.delete(a)}))},[d,o,s]),w=(0,ek.useCallback)(t=>{o&&(0,bc.isLivePeriod)(t)&&x.current.get(t)!==s&&(x.current.set(t,s),m(r=>void 0===r[t]?r:{...r,[t]:void 0}),(0,is.fetchHoroscopes)(t).then(r=>{g.current===s&&c(a=>{let n={...a};for(let a of bc.RASHIS){let i=wo(a.id,t),o=n[i];if(o&&o.gen===s||f.current.get(i)===s)continue;let l=r[a.id];n[i]=l?{status:"ready",reading:l,gen:s}:{...wi,gen:s}}return n})}).catch(()=>{x.current.delete(t),g.current===s&&m(r=>({...r,[t]:s}))}))},[o,s]);(0,ek.useEffect)(()=>
122{if(!o)return;let t=()=>{let t=Date.now();t-b.current<6e4||(b.current=t,(0,is.fetchFeedVersions)(y.current).then(({versions:t,asOf:r})=>{if(r&&h(r),!Object.keys(t).length)return;if(null===y.current){y.current=JSON.stringify(t);return}let a=JSON.parse(y.current),n=Object.entries(a).some(([r,a])=>void 0!==t[r]&&t[r]!==a);y.current=JSON.stringify({...a,...t}),n&&((0,eb.track)("HOROSCOPE_STALE_REFETCHED_WEB_EVENT"),g.current+=1,l(g.current))}))};t();let r=()=>{"visible"===document.visibilityState&&t()};return document.addEventListener("visibilitychange",r),window.addEventListener("focus",r),()=>{document.removeEventListener("visibilitychange",r),window.removeEventListener("focus",r)}},[o]);let k=(0,ek.useCallback)((t,r)=>{if(!o||!(0,bc.isLivePeriod)(r))return wi;let a=d[wo(t,r)];return a||(p[r]===s?wi:wn)},[d,p,o,s]);return{get:(0,ek.useCallback)((t,r)=>k(t,r).reading,[k]),state:k,ensure:v,ensureAll:w,asOf:u}}({initial:l,initialPeriod:d,initialComplete:c,initialVersions:u,initialAsOf:p,enabled:h});(0,ek.useEffect)(()=>{t?y(t.id,a):b(a)},[t,a,y,b]);let w=v??p??(0,bc.todayInIndia)();if(t)return(0,ey.jsx)(wa,{sign:t,period:a,setPeriod:n,onBack:()=>r(null),onOpen:t=>{r(t),wd()},onAsk:i,user:o,openCalculator:s,state:g(t.id,a),feedConfigured:h,asOf:w});let k=(0,bc.isLivePeriod)(a),j=(0,bc.isPeriodicPeriod)(a),N=t=>k?x(t.id,a)??(j||h?null:(0,bc.buildHoroscope)(t,a)):null,_=m.trim().toLowerCase(),E=ws.map(t=>({...t,rashis:t.signs.map(t=>bc.RASHIS.find(r=>r.id===t)).filter(t=>!!t).filter(t=>!_||t.name.toLowerCase().includes(_)||t.rashi.toLowerCase().includes(_))})).filter(t=>t.rashis.length>0),S=0;return(0,ey.jsxs)("div",{className:e5.PAGE_FRAME,children:[(0,ey.jsxs)("header",{className:"min-w-0",children:[(0,ey.jsx)("div",{className:"text-mlh-faint mlh-in font-mono text-[10px] tracking-[0.22em] [--mlh-in-delay:40ms] [--mlh-in-y:-6px]",children:"MELOOHA / HOROSCOPES"}),(0,ey.jsx)("h1",{className:"mlh-in mt-3.5 font-serif text-[42px] leading-none tracking-[-0.015em] text-white [--mlh-in-delay:80ms] sm:text-[48px]",children:"Horoscopes"}),(0,ey.jsx)("p",{className:"text-mlh-muted mlh-in mt-2.5 max-w-[620px] text-[15px] leading-snug text-pretty [--mlh-in-delay:120ms]",children:"Daily, monthly and yearly readings by Rashi (your Vedic Moon sign), grouped by the four elements Jyotish classifies them under."})]}),(0,ey.jsxs)("div",{className:"mlh-in mt-6 flex flex-wrap items-center gap-x-3.5 gap-y-2.5 [--mlh-in-delay:160ms]",children:[(0,ey.jsx)("div",{className:"border-mlh-plum-500/25 bg-mlh-bg/60 flex overflow-hidden rounded-full border",children:bc.PERIODS.map(([t,r])=>{let i=a===t;return(0,ey.jsx)("button",{onClick:()=>{(0,eb.track)("HOROSCOPE_PERIOD_CHANGED_WEB_EVENT",{period:t}),n(t)},"aria-pressed":i,className:`cursor-pointer px-4 py-[9px] text-[12.5px] font-medium transition sm:px-5 ${i?"bg-mlh-plum-500/25 text-mlh-plum-100 shadow-[inset_0_1px_0_color-mix(in_srgb,var(--mlh-plum-300)_18%,transparent)]":"text-mlh-muted hover:text-mlh-text"}`,children:r},t)})}),(0,ey.jsx)("div",{className:"flex-1"}),(0,ey.jsxs)("div",{className:"border-mlh-plum-500/30 bg-mlh-bg/70 focus-within:border-mlh-plum-400/60 flex max-w-[290px] min-w-[210px] flex-[1_1_210px] items-center gap-2.5 rounded-full border px-4 py-2 transition",children:[(0,ey.jsx)(yk.Search,{size:14,className:"text-mlh-plum-400 shrink-0"}),(0,ey.jsx)("input",{value:m,onChange:t=>f(t.target.value),placeholder:"Search a sign or Rashiâ¦","aria-label":"Search signs",className:"text-mlh-text placeholder:text-mlh-faint caret-mlh-plum-400 min-w-0 flex-1 bg-transparent font-sans text-[16px] outline-none"})]})]}),(0,ey.jsxs)("div",{className:"border-mlh-plum-500/25 mlh-in mt-5 mb-7 flex flex-wrap items-center gap-x-4 gap-y-3 rounded-2xl border bg-[linear-gradient(100deg,color-mix(in_srgb,var(--mlh-plum-500)_15%,transparent),transparent_60%)] px-4 py-3 [--mlh-in-delay:200ms] sm:px-5",children:[(0,ey.jsx)("span",{"aria-hidden":!0,className:"border-mlh-plum-400/40 mlh-plate-lit text-mlh-plum-300 grid h-[34px] w-[34px] flex-none place-items-center rounded-full border",children:(0,ey.jsx)(wl,{className:"h-[22px] w-[22px]"})}),(0,ey.jsxs)("p",{className:"text-mlh-text min-w-[240px] flex-1 text-[13.5px] leading-[1.5] text-pretty",children:["Melooha reads by your"," ",(0,ey.jsx)("span",{className:"text-mlh-plum-300 font-semibold",children:"Rashi"}),", where the Moon sat at your birth, not your Western Sun sign."]}),(0,ey.jsxs)("button",{onClick:()=>{(0,eb.track)("CROSS_SURFACE_CLICKED_WEB_EVENT",{from:"horoscopes",to:"calculators",id:"moon-sign-calculator"}),s("moon-sign-calculator")},className:"border-mlh-plum-400/45 bg-mlh-plum-500/18 text-mlh-plum-100 hover:bg-mlh-plum-500/32 hover:border-mlh-plum-400/75 group flex flex-none cursor-pointer items-center gap-1.5 rounded-full border px-4 py-2 text-[13px] font-semibold whitespace-nowrap transition",children:["Find my Rashi",(0,ey.jsx)(vj,{size:14,className:"transition-transform duration-200 group-hover:translate-x-0.5"})]})]}),(0,ey.jsx)("div",{className:"space-y-7",children:E.map(t=>(0,ey.jsxs)("section",{children:[(0,ey.jsxs)("div",{className:"mb-3.5 flex items-center gap-3.5",children:[(0,ey.jsx)("span",{className:"bg-mlh-plum-400 h-1.5 w-1.5 flex-none rounded-full shadow-[0_0_10px_color-mix(in_srgb,var(--mlh-plum-400)_70%,transparent)]"}),(0,ey.jsx)("span",{className:"font-serif text-[20px] leading-none text-white",children:t.key}),(0,ey.jsx)("span",{className:"text-mlh-faint font-mono text-[10px] tracking-[0.22em]",children:t.tattva}),(0,ey.jsx)("span",{className:"h-px flex-1 bg-[linear-gradient(90deg,color-mix(in_srgb,var(--mlh-plum-400)_45%,transparent),transparent)]"}),(0,ey.jsx)("span",{className:"text-mlh-faint hidden font-mono text-[9.5px] tracking-[0.18em] whitespace-nowrap sm:block",children:t.trait})]}),(0,ey.jsx)("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3",children:t.rashis.map(t=>{var n;let i,o="taurus"===t.id;return(0,ey.jsxs)(bO.default,{href:(0,bc.signPath)(t.id,a),prefetch:!1,onClick:n=>{n.metaKey||n.ctrlKey||n.shiftKey||n.altKey||(n.preventDefault(),(0,eb.track)("HOROSCOPE_SIGN_OPENED_WEB_EVENT",{sign:t.id,period:a,from:"index"}),r(t),wd())},style:e4(200+28*S++),className:`group mlh-corner-glow mlh-in relative flex min-w-0 cursor-pointer gap-3.5 overflow-hidden rounded-2xl border p-4 text-left transition duration-200 ease-out [--mlh-in-y:8px] hover:-translate-y-[3px] hover:shadow-[0_16px_38px_rgba(0,0,0,.45)] ${o?"border-mlh-plum-400/50 from-mlh-plum-500/[0.18] hover:from-mlh-plum-500/25 hover:border-mlh-plum-400/70 bg-gradient-to-b to-w
122hite/[0.015]":"border-mlh-plum-500/20 from-mlh-plum-500/10 hover:from-mlh-plum-500/[0.18] hover:border-mlh-plum-400/55 bg-gradient-to-b to-white/[0.012]"}`,children:[(0,ey.jsx)("span",{"aria-hidden":!0,className:"text-mlh-plum-400/10 font-symbols pointer-events-none absolute right-3 -bottom-5 text-[78px] leading-none",children:t.glyph}),(0,ey.jsx)("span",{className:"mlh-plate-art relative grid h-[42px] w-[42px] flex-none place-items-center overflow-hidden rounded-[12px]",children:(0,ey.jsx)(v9,{sign:t,px:34,className:"transition duration-200 ease-out group-hover:scale-110"})}),(0,ey.jsxs)("span",{className:"relative min-w-0 flex-1",children:[(0,ey.jsxs)("span",{className:"flex flex-wrap items-baseline gap-x-2.5 gap-y-1",children:[(0,ey.jsx)("span",{className:"font-serif text-[21px] leading-tight text-white",children:t.name}),(0,ey.jsx)("span",{className:"text-mlh-plum-300/85 font-sans text-[15px] italic",children:t.rashi})]}),"loading"===g(t.id,a).status?(0,ey.jsx)(v3,{}):N(t)?(0,ey.jsx)("span",{className:"text-mlh-muted mt-1.5 block text-[12.5px] leading-relaxed text-pretty",children:-1===(i=(n=(0,bc.leadText)(N(t))).indexOf(". "))?n:n.slice(0,i+1)}):(0,ey.jsxs)("span",{className:"text-mlh-faint mt-1.5 block text-[12.5px] leading-relaxed",children:[bc.PERIOD_LABEL[a]," reading not published yet."]}),(0,ey.jsxs)("span",{className:"text-mlh-plum-400 mt-2.5 flex items-center justify-between gap-2.5 font-mono text-[9.5px] tracking-[0.16em]",children:[(0,ey.jsxs)("span",{children:["RULED BY ",t.ruler.toUpperCase()]}),(0,ey.jsx)("span",{className:"text-mlh-plum-300 transition group-hover:translate-x-0.5",children:"READ â"})]})]})]},t.id)})})]},t.key))}),0===E.length&&(0,ey.jsxs)("p",{className:"text-mlh-faint py-16 text-center font-sans text-[19px] text-balance",children:["No sign by that name. Try âMeshaâ, âKarkaâ, or"," ",i?(0,ey.jsx)("button",{type:"button",onClick:()=>{(0,eb.track)("SEARCH_HANDOFF_CLICKED_WEB_EVENT",{surface:"horoscopes",length:m.length}),i(bX(m,"horoscopes"))},className:"text-mlh-plum-300 hover:text-mlh-plum-100 cursor-pointer underline decoration-dotted underline-offset-4 transition",children:"ask Vaani directly"}):"ask Vaani directly","."]})]})}let wu=(0,eO.default)("list",[["path",{d:"M3 5h.01",key:"18ugdj"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 19h.01",key:"noohij"}],["path",{d:"M8 5h13",key:"1pao27"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 19h13",key:"m83p4d"}]]);function wh({doc:t,onOpen:r}){let a,n=0,i=ba.filter(r=>r.id!==t.id);return(0,ey.jsxs)("div",{className:"mx-auto max-w-[760px] px-4 py-8 sm:px-8 sm:py-10",children:[(0,ey.jsxs)("nav",{className:"text-mlh-faint mb-6 flex items-center gap-2 text-[13px]",children:[(0,ey.jsx)(bO.default,{href:"/",prefetch:!1,className:"text-mlh-muted hover:brightness-150",children:"Melooha"}),(0,ey.jsx)(bS.ChevronRight,{size:13}),(0,ey.jsx)("span",{className:"text-mlh-plum-300",children:"Legal"})]}),(0,ey.jsx)("h1",{className:"mb-3 font-serif text-3xl leading-tight font-bold text-white",children:t.title}),(0,ey.jsx)("p",{className:"text-mlh-muted mb-4 text-[15px] leading-relaxed",children:t.dek}),(0,ey.jsxs)("div",{className:"text-mlh-faint mb-8 flex flex-wrap items-center gap-x-4 gap-y-2 text-[13px]",children:[(0,ey.jsxs)("span",{className:"flex items-center gap-1.5",children:[(0,ey.jsx)(bE.Calendar,{size:13})," Last updated ",(a=t.updated,new Date(`${a}T00:00:00Z`).toLocaleDateString("en-IN",{day:"numeric",month:"long",year:"numeric",timeZone:"UTC"}))]}),(0,ey.jsx)("span",{className:"border-mlh-plum-400/30 text-mlh-plum-300 rounded-full border px-2.5 py-0.5 font-mono text-[9.5px] tracking-[0.14em] uppercase",children:"Astroverse Technologies Pvt. Ltd."})]}),t.intro.length>0&&(0,ey.jsx)("div",{className:"bg-mlh-plum/12 border-mlh-plum mb-8 space-y-4 rounded-2xl border p-6",children:t.intro.map((t,r)=>(0,ey.jsx)("p",{className:"text-mlh-text text-[15px] leading-relaxed",children:t},r))}),t.sections.length>0&&(0,ey.jsxs)("div",{className:"bg-mlh-surface border-mlh-border mb-8 rounded-xl border p-4",children:[(0,ey.jsxs)("div",{className:"text-mlh-faint mb-3 flex items-center gap-2 text-[11px] font-bold tracking-wider up
122percase",children:[(0,ey.jsx)(wu,{size:13})," On this page"]}),(0,ey.jsx)("div",{className:"space-y-1.5",children:t.sections.map((r,a)=>(0,ey.jsx)("button",{onClick:()=>{let r;return r=`${t.id}-s${a}`,document.getElementById(r)?.scrollIntoView({behavior:"smooth",block:"start"})},className:"text-mlh-plum-300 block text-left text-[13px] hover:brightness-150",children:r.h},a))})]}),(0,ey.jsx)("div",{className:"space-y-9",children:t.sections.map((r,a)=>(0,ey.jsxs)("section",{children:[(0,ey.jsx)("h2",{id:`${t.id}-s${a}`,className:"mb-4 scroll-mt-6 font-serif text-xl font-bold text-white",children:r.h}),(0,ey.jsx)("div",{className:"space-y-4",children:r.clauses.map((t,r)=>{let a=t.plain?null:++n;return(0,ey.jsxs)("div",{className:a?"flex gap-3":void 0,children:[null!==a&&(0,ey.jsxs)("span",{className:"text-mlh-plum-400 w-6 flex-none pt-[3px] text-right font-mono text-[12px] tabular-nums",children:[a,"."]}),(0,ey.jsxs)("div",{className:"min-w-0",children:[(0,ey.jsx)("p",{className:"text-mlh-muted text-[15px] leading-relaxed",children:t.t}),t.points&&(0,ey.jsx)("ul",{className:"mt-3 space-y-2.5",children:t.points.map((t,r)=>(0,ey.jsxs)("li",{className:"text-mlh-muted flex gap-2.5 text-[14px] leading-relaxed",children:[(0,ey.jsx)("span",{"aria-hidden":!0,className:"bg-mlh-plum-400/60 mt-[9px] h-[5px] w-[5px] flex-none rounded-full"}),(0,ey.jsx)("span",{className:"min-w-0",children:t})]},r))})]})]},r)})})]},a))}),(0,ey.jsxs)("div",{className:"bg-mlh-surface border-mlh-border mt-10 flex flex-wrap items-center gap-x-4 gap-y-2 rounded-2xl border p-5",children:[(0,ey.jsx)(bA,{size:15,className:"text-mlh-plum-400 flex-none"}),(0,ey.jsx)("span",{className:"text-mlh-muted text-[14px]",children:"Questions about this policy?"}),(0,ey.jsx)("a",{href:"mailto:[email protected]",className:"text-mlh-plum-300 text-[14px] hover:brightness-125",children:"[email protected]"})]}),(0,ey.jsxs)("section",{className:"mt-10",children:[(0,ey.jsx)("h2",{className:"mb-5 font-serif text-xl font-bold text-white",children:"The other policies"}),(0,ey.jsx)("div",{className:"grid grid-cols-1 gap-4 sm:grid-cols-2",children:i.map(t=>{let a=t.icon;return(0,ey.jsxs)(bO.default,{href:bn(t.id),prefetch:!1,onClick:a=>{a.metaKey||a.ctrlKey||a.shiftKey||a.altKey||(a.preventDefault(),r(t.id))},className:"bg-mlh-surface border-mlh-border flex gap-3 rounded-xl border p-4 transition hover:brightness-125",children:[(0,ey.jsx)("span",{className:"border-mlh-plum-400/30 text-mlh-plum-300 grid h-9 w-9 flex-none place-items-center rounded-[11px] border",children:(0,ey.jsx)(a,{size:15})}),(0,ey.jsxs)("span",{className:"min-w-0",children:[(0,ey.jsx)("span",{className:"block text-[14px] leading-snug font-semibold text-white",children:t.title}),(0,ey.jsx)("span",{className:"text-mlh-muted mt-1 block text-[12.5px] leading-snug",children:t.dek})]})]},t.id)})})]})]})}let wp=[{id:"deccanherald-love-finance-and-career-advice-young-indians",url:"https://www.deccanherald.com/lifestyle/love-finance-and-career-advice-young-indians-are-seeking-life-answers-on-astrology-apps-4115347",kind:"article",outlet:"Deccan Herald",domain:"deccanherald.com",title:"Love, finance, and career advice: Young Indians are seeking life answers on astrology apps",dek:"Young Indians turn to astrology apps for love, finance & career guidance amid social media stress. Gen Z & millennials drive Indiaâs $8bn astrology boom, with AI platforms likeâ¦",published:"2026-08-18",note:"MENTION",meta:"",image:"/news/deccanherald-love-finance-and-career-advice-young-indians.webp"},{id:"dnaindia-report-decoding-destiny-how-melooha-s-ai",url:"https://www.dnaindia.com/insights/report-decoding-destiny-how-melooha-s-ai-pinpoints-your-luck-in-saturn-s-500-year-diwali-shift-3184019",kind:"article",outlet:"DNA India",domain:"dnaindia.com",title:"Decoding Destiny: How Meloohaâs AI Pinpoints Your Luck in Saturnâs 500-Year Diwali Shift",dek:"Melooha's AI decodes Saturn's rare 500-year Diwali transit in Pisces to provide personalized, precise wealth/career predictions, benefiting Taurus, Gemini, Leo, Aquarius, andâ¦",published:"2025-10-14",n
122ote:"FEATURE",meta:"",image:"/news/dnaindia-report-decoding-destiny-how-melooha-s-ai.jpg"},{id:"timesofindia-124559029",url:"https://timesofindia.indiatimes.com/move-over-family-panditji-this-ai-app-is-now-the-most-trusted-astrologer-in-town/articleshow/124559029.cms",kind:"article",outlet:"The Times of India",domain:"timesofindia.indiatimes.com",title:"Move over family panditji, this AI app is now the most trusted astrologer in town",dek:"For centuries, a trusted family Panditjiâthe local astrologerâheld the authority on lifeâs biggest decisions, from auspicious wedding dates to career.",published:"2025-10-14",note:"FEATURE",meta:"",image:"/news/timesofindia-124559029.png"},{id:"business-standard-from-vision-to-impact-10-startups-powering",url:"https://www.business-standard.com/content/press-releases-ani/from-vision-to-impact-10-startups-powering-india-s-transformation-125100300783_1.html",kind:"article",outlet:"Business Standard",domain:"business-standard.com",title:"From Vision to Impact: 10 Startups Powering India's Transformation",dek:"Bengaluru (Karnataka) [India], October 3: India's startup ecosystem is changing very quickly, with new companies driving progress in education, healthcare, finance, andâ¦",published:"2025-10-03",note:"MENTION",meta:"",image:"/news/business-standard-from-vision-to-impact-10-startups-powering.jpg"},{id:"theprint-2739149",url:"https://theprint.in/ani-press-releases/written-in-the-stars-powered-by-ai-how-melooha-guides-lifes-choices/2739149/",kind:"article",outlet:"ThePrint",domain:"theprint.in",title:"Written in the Stars, Powered by AI: How Melooha Guides Life's Choices",dek:"VMPL New Delhi [India], September 9: For centuries, men have looked to the stars for direction. In a world wide-open with possibilitiesâlove, careers, marriageâastrology is beingâ¦",published:"2025-09-09",note:"FEATURE",meta:"",image:"/news/theprint-2739149.jpg"},{id:"republicworld-venus-transit-in-cancer-melooha-explains-what",url:"https://www.republicworld.com/initiatives/venus-transit-in-cancer-melooha-explains-what-it-means-for-love-and-relationships",kind:"article",outlet:"Republic World",domain:"republicworld.com",title:"Venus Transit in Cancer: Melooha Explains What It Means for Love and Relationships",dek:"Venus enters Cancer on Aug 21, 2025--Meloohaâs AI-powered astrology predicts emotional shifts, soulmate encounters, and twists in love and relationships.",published:"2025-08-22",note:"FEATURE",meta:"",image:"/news/republicworld-venus-transit-in-cancer-melooha-explains-what.jpg"},{id:"indianstartuptimes-bridging-stars-and-science-vikram-labhes-mission",url:"https://www.indianstartuptimes.com/interviews/bridging-stars-and-science-vikram-labhes-mission-to-redefine-astrology-with-melooha/",kind:"interview",outlet:"Indian Startup Times",domain:"indianstartuptimes.com",title:"Bridging Stars and Science: Vikram Labheâs Mission to Redefine Astrology with Melooha",dek:"In a quiet corner of the bustling Indian startup ecosystem, something extraordinary is unfoldingâwhere ancient wisdom meets modern technology, and where",published:"2025-06-17",note:"VIKRAM LABHE · FOUNDER",meta:"",image:"/news/indianstartuptimes-bridging-stars-and-science-vikram-labhes-mission.jpg"},{id:"youtube-r4b0xee3qaq",url:"https://www.youtube.com/watch?v=r4b0XeE3qaQ",kind:"video",outlet:"CNBC Awaaz",domain:"youtube.com",title:"Astrology Startups In India | Faith Market मà¥à¤ à¤à¤à¥ à¤à¥à¤¯à¤¾ हॠOpportunities? | Prediction Accuracy",dek:"Astrology Startups In India | Prediction Accuracy, à¤à¤°à¥à¤¸à¤¾, à¤à¤¿à¤«à¤¾à¤¯à¤¤à¥ à¤à¥à¤ à¤à¤«à¤°à¤¿à¤à¤à¥à¤¸ à¤à¤¾ वादा à¤à¤°à¤¨à¥ वालॠà¤à¤¸à¥à¤à¥à¤°à¥à¤²à¥à¤à¥ सà¥à¤à¤¾à¤°à¥à¤à¤
पà¥à¤¸ à¤à¥ à¤à¤®à¤ रहॠसà¥à¤à¤¾à¤°à¥à¤à¤
प à¤à¥ सितारà¥, à¤à¤¾à¤°à¤¤...",published:"2024-06-01",note:"FOUNDER PANEL",meta:"23:40",image:"/news/youtube-r4b0xee3qaq.jpg"},{id:"youtube-vpsudke-umi",url:"https://www.youtube.com/watch?v=vpSudKE-uMI",kind:"video",outlet:"SET India",domain:"youtube.com",title:"Shark Tank India 3 | 'Melooha' à¤à¥ Founders à¤à¥ Facts सà¥à¤¨à¤à¤° Sharks हà¥à¤°à¤¾à¤¨ रह à¤à¤ | Pitches",dek:"Melooha pitches on Shark Tank India: AI-powered Vedic astrology built on a family practice, and the founders' numbers that stopped the Sharks mid-question.",published:"2024-03-28",note:"SHARK TANK INDIA",meta:"13:19",image:"/news/youtube-vpsudke-umi.jpg"},{id:"zeebiz-news-ai-powered-astrology-startup-melooha-gets",url:"https://www.zeebiz.com/startups/news-ai-powered-astrology-startup-melooha-gets-angel-funding-led-by-us-based-streak-ventures-254281",kind:"funding",outlet:"Zee Business",domain:"zeebiz.com",title:"AI-powered astrology startup Melooha gets angel funding led by US-based Streak Ventures",dek:"Founded by Vikram Labhe and Bhalchandra Patil, Melooha provides personalised guid
122ance based on an individual's unique birth details, including their specific date, place, and timeâ¦",published:"2023-09-15",note:"ANGEL ROUND",meta:"",image:"/news/zeebiz-news-ai-powered-astrology-startup-melooha-gets.jpg"}].sort((t,r)=>t.published<r.published?1:-1),wm={video:{label:"Video",cta:"WATCH",accent:"var(--mlh-orrery-hi)",poster:!0},article:{label:"Article",cta:"READ",accent:"var(--mlh-plum-300)",poster:!1},interview:{label:"Interview",cta:"READ",accent:"var(--mlh-iris-hi)",poster:!1},podcast:{label:"Podcast",cta:"LISTEN",accent:"var(--mlh-iris-hi)",poster:!0},funding:{label:"Funding",cta:"READ",accent:"var(--mlh-success)",poster:!1}},wf=Object.keys(wm).filter(t=>wp.some(r=>r.kind===t));wp[0]?.published;let wx=(0,eO.default)("play",[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]]),wg=t=>({"--k":wm[t].accent}),wy="border-white/[0.13]";function wb({item:t,priority:r=!1}){return(0,ey.jsxs)("div",{className:"relative h-full w-full overflow-hidden bg-[color-mix(in_srgb,var(--k)_10%,var(--mlh-surface))]",children:[t.image&&(0,ey.jsx)(tU.default,{src:t.image,alt:"",fill:!0,priority:r,sizes:"(min-width: 1280px) 460px, (min-width: 768px) 45vw, 92vw",className:"object-cover transition duration-500 group-hover:scale-[1.03]"}),(0,ey.jsx)("span",{"aria-hidden":!0,className:"absolute inset-0 bg-[linear-gradient(180deg,rgba(15,9,12,.3)_0%,rgba(15,9,12,0)_34%,rgba(15,9,12,0)_66%,rgba(15,9,12,.38)_100%)]"})]})}function wv({top:t}){return(0,ey.jsx)("span",{"aria-hidden":!0,style:{top:t},className:"absolute left-1/2 z-10 grid h-[44px] w-[44px] -translate-x-1/2 -translate-y-1/2 place-items-center rounded-full border border-[color-mix(in_srgb,var(--k)_55%,transparent)] bg-[rgba(15,9,12,.66)] text-[var(--k)] backdrop-blur-[2px] transition duration-200 group-hover:scale-110 group-hover:bg-[color-mix(in_srgb,var(--k)_22%,rgba(15,9,12,.72))]",children:(0,ey.jsx)(wx,{size:15,fill:"currentColor",className:"ml-[2px]"})})}function ww({item:t}){return t.note?(0,ey.jsx)("span",{className:"absolute top-2 right-2 z-10 max-w-[62%] truncate border border-white/15 bg-[rgba(15,9,12,.92)] px-2 py-[4px] font-mono text-[8.5px] tracking-[0.18em] text-white/85",children:t.note}):null}function wk({item:t}){return(0,ey.jsx)("span",{className:"bg-[var(--k)] px-2 py-[4px] font-mono text-[8.5px] font-semibold tracking-[0.2em] text-[#0f090c]",children:wm[t.kind].label.toUpperCase()})}function wj({item:t,onArt:r=!1}){return(0,ey.jsxs)("div",{className:`flex items-center gap-2 font-mono text-[9px] tracking-[0.15em] ${r?"text-white/75":"text-mlh-faint"}`,children:[(0,ey.jsx)("span",{className:"truncate text-[var(--k)]",children:t.outlet.toUpperCase()}),(0,ey.jsx)("span",{className:"flex-1"}),t.published&&(0,ey.jsx)("span",{className:"flex-none",children:(t=>{if(!t)return"";let[r,a,n]=t.split("-"),i=["JAN","FEB","MAR","APR","MAY","JUN","JUL","AUG","SEP","OCT","NOV","DEC"][Number(a)-1];return`${n} ${i} ${r}`})(t.published)})]})}function wN({item:t,onArt:r=!1}){return(0,ey.jsxs)("div",{className:`mt-3.5 flex items-center gap-2.5 border-t pt-3 font-mono text-[8.5px] tracking-[0.14em] ${r?"border-white/25 text-white/70":`${wy} text-mlh-faint`}`,children:[(0,ey.jsx)("span",{className:"min-w-0 truncate",children:t.domain}),(0,ey.jsx)("span",{className:"flex-1"}),(0,ey.jsxs)("span",{className:"flex-none text-[var(--k)] transition group-hover:translate-x-0.5",children:[wm[t.kind].cta," â"]})]})}function w_({item:t,index:r,stirred:a}){let n=wm[t.kind].poster,i=`group relative flex min-w-0 flex-col border transition-colors duration-200 ${wy} ${a?"":"mlh-in [--mlh-in-y:6px]"}`,o={...wg(t.kind),...a?{}:e4(140+24*Math.min(r,8))},s=(0,ey.jsx)("span",{"aria-hidden":!0,className:"absolute inset-x-0 top-0 z-20 h-px origin-left scale-x-0 bg-[linear-gradient(90deg,var(--k),transparent)] transition-transform duration-300 group-hover:scale-x-100"});return n?(0,ey.jsxs)("a",{href:t.url,onClick:()=>(0,eb.track)("NEWS_ITEM_CLICKED_WEB_EVENT",{outlet:t.outlet,position:r}),target:"_blank",rel:"noopener noreferrer",style:o,className:`${i} overflow-hidden`,children:[s,t.image&&(0,ey.jsxs)("span",{"aria-hidden":!0,
122className:"absolute inset-0",children:[(0,ey.jsx)(tU.default,{src:t.image,alt:"",fill:!0,sizes:"80px",className:"scale-125 object-cover opacity-45 blur-[26px] saturate-150"}),(0,ey.jsx)("span",{className:"absolute inset-0 bg-[linear-gradient(180deg,rgba(15,9,12,.4),rgba(15,9,12,.82))]"})]}),(0,ey.jsxs)("div",{className:"relative aspect-[16/9] overflow-hidden",children:[(0,ey.jsx)(wb,{item:t,priority:r<2}),(0,ey.jsx)(wv,{top:"50%"}),(0,ey.jsx)("span",{className:"absolute top-2 left-2 z-10",children:(0,ey.jsx)(wk,{item:t})}),(0,ey.jsx)(ww,{item:t}),t.meta&&(0,ey.jsx)("span",{className:"absolute right-2 bottom-2 z-10 bg-[rgba(15,9,12,.86)] px-1.5 py-[3px] font-mono text-[9px] tracking-[0.06em] text-white",children:t.meta})]}),(0,ey.jsxs)("div",{className:"relative z-10 flex min-w-0 flex-1 flex-col px-5 pt-4 pb-5",children:[(0,ey.jsx)(wj,{item:t,onArt:!0}),(0,ey.jsx)("h3",{className:"mt-2.5 font-serif text-[19px] leading-[1.16] text-balance text-white [text-shadow:0_1px_12px_rgba(0,0,0,.6)]",children:t.title}),(0,ey.jsx)("p",{className:"mt-2.5 line-clamp-3 text-[12.5px] leading-[1.55] text-pretty text-white/72",children:t.dek}),(0,ey.jsx)("div",{className:"flex-1"}),(0,ey.jsx)(wN,{item:t,onArt:!0})]})]}):(0,ey.jsxs)("a",{href:t.url,onClick:()=>(0,eb.track)("NEWS_ITEM_CLICKED_WEB_EVENT",{outlet:t.outlet,position:r}),target:"_blank",rel:"noopener noreferrer",style:o,className:`${i} hover:bg-[color-mix(in_srgb,var(--k)_7%,transparent)]`,children:[s,(0,ey.jsxs)("div",{className:"relative aspect-[16/9] overflow-hidden",children:[(0,ey.jsx)(wb,{item:t,priority:r<2}),"article"!==t.kind&&(0,ey.jsx)("span",{className:"absolute top-2 left-2 z-10",children:(0,ey.jsx)(wk,{item:t})}),(0,ey.jsx)(ww,{item:t})]}),(0,ey.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col px-5 pt-4 pb-5",children:[(0,ey.jsx)(wj,{item:t}),(0,ey.jsx)("h3",{className:"mt-2.5 font-serif text-[18.5px] leading-[1.16] text-balance text-white",children:t.title}),(0,ey.jsx)("p",{className:"text-mlh-muted mt-2.5 line-clamp-3 text-[12.5px] leading-[1.55] text-pretty",children:t.dek}),(0,ey.jsx)("div",{className:"flex-1"}),(0,ey.jsx)(wN,{item:t})]})]})}function wE(){let[t,r]=(0,ek.useState)("ALL"),[a,n]=(0,ek.useState)(""),[i,o]=(0,ek.useState)(!1),s=a.trim().toLowerCase(),l=wp.filter(r=>("ALL"===t||r.kind===t)&&(!s||`${r.title} ${r.outlet} ${r.dek}`.toLowerCase().includes(s))),d="ALL"!==t||s?null:l[0],c=d?l.slice(1):l;return(0,ey.jsxs)("div",{className:"relative",children:[(0,ey.jsx)("div",{"aria-hidden":!0,className:"mlh-grid-field pointer-events-none sticky top-0 -mb-[100vh] h-screen"}),(0,ey.jsxs)("div",{className:e5.PAGE_FRAME,children:[(0,ey.jsx)("div",{className:`mlh-in text-mlh-plum-300 border-b pb-2 font-mono text-[9px] tracking-[0.24em] [--mlh-in-delay:40ms] [--mlh-in-y:-6px] ${wy}`,children:"MELOOHA / PRESS WIRE"}),(0,ey.jsxs)("header",{className:"border-mlh-plum-500/35 mt-6 border-b-[3px] border-double pb-5",children:[(0,ey.jsx)("h1",{className:"mlh-in font-serif text-[44px] leading-[0.95] tracking-[-0.02em] text-white [--mlh-in-delay:80ms] sm:text-[54px]",children:"Melooha in the News"}),(0,ey.jsxs)("p",{className:"text-mlh-text/70 mlh-in mt-3.5 max-w-[58ch] text-[15px] leading-[1.6] text-pretty [--mlh-in-delay:120ms]",children:["Every segment, feature and interview that has covered us, from Shark Tank India to the front of the tech pages."," ",(0,ey.jsx)("span",{className:"text-mlh-text/45",children:"Each entry is the outletâs own headline and frame, and every one of them opens on their site, not ours."})]})]}),(0,ey.jsxs)("div",{className:"mlh-in mt-5 flex flex-wrap items-center gap-2.5 [--mlh-in-delay:160ms]",children:[["ALL",...wf].map(a=>{let n=t===a,i="ALL"===a?wp.length:wp.filter(t=>t.kind===a).length;return(0,ey.jsxs)("button",{onClick:()=>{(0,eb.track)("NEWS_FILTER_CHANGED_WEB_EVENT",{filter:String(a)}),o(!0),r(a)},"aria-pressed":n,style:"ALL"===a?void 0:wg(a),className:`flex cursor-pointer items-center gap-2 border px-3.5 py-[7px] font-mono text-[10px] tracking-[0.18em] uppercase transition ${n?"border-mlh-plum-400 bg-mlh-plum-500/25 text-white":`${wy} text-mlh-muted hover:border-mlh-plum-400/45 hover:text-mlh-text`}
122`,children:["ALL"!==a&&(0,ey.jsx)("span",{"aria-hidden":!0,className:"h-[5px] w-[5px] bg-[var(--k)]",style:{opacity:n?1:.65}}),"ALL"===a?"All":wm[a].label,(0,ey.jsx)("span",{className:"text-[9px] tracking-normal opacity-55",children:i})]},a)}),(0,ey.jsx)("span",{className:"hidden flex-1 sm:block"}),(0,ey.jsxs)("div",{className:`focus-within:border-mlh-plum-400/60 flex max-w-[300px] min-w-[220px] flex-[1_1_220px] items-center gap-2.5 border bg-white/[0.02] px-3.5 py-[7px] transition ${wy}`,children:[(0,ey.jsx)(yk.Search,{size:13,className:"text-mlh-plum-400 shrink-0"}),(0,ey.jsx)("input",{value:a,onChange:t=>{o(!0),n(t.target.value)},placeholder:"search headline or outlet","aria-label":"Search press coverage",className:"text-mlh-text placeholder:text-mlh-faint caret-mlh-plum-400 min-w-0 flex-1 bg-transparent font-mono text-[12px] outline-none"})]})]}),d&&(0,ey.jsxs)("a",{href:d.url,onClick:()=>(0,eb.track)("NEWS_ITEM_CLICKED_WEB_EVENT",{outlet:d.outlet,position:-1}),target:"_blank",rel:"noopener noreferrer",style:{...wg(d.kind),...e4(200)},className:`group mlh-in mt-6 grid grid-cols-1 border transition-colors duration-200 hover:bg-[color-mix(in_srgb,var(--k)_6%,transparent)] lg:grid-cols-[minmax(0,1fr)_minmax(0,0.92fr)] ${wy}`,children:[(0,ey.jsxs)("div",{className:"relative aspect-[16/9] overflow-hidden lg:aspect-auto lg:min-h-[300px]",children:[(0,ey.jsx)(wb,{item:d,priority:!0}),(0,ey.jsxs)("span",{className:"absolute top-3 left-3 z-10 flex items-center gap-2",children:[(0,ey.jsx)("span",{className:"mlh-brand-gradient px-2.5 py-[4px] font-mono text-[8.5px] tracking-[0.24em] text-white",children:"LATEST"}),(0,ey.jsx)(wk,{item:d})]}),(0,ey.jsx)(ww,{item:d}),wm[d.kind].poster&&(0,ey.jsx)(wv,{top:"50%"})]}),(0,ey.jsxs)("div",{className:`flex min-w-0 flex-col justify-between gap-7 border-t p-7 sm:p-8 lg:border-t-0 lg:border-l ${wy}`,children:[(0,ey.jsxs)("div",{children:[(0,ey.jsx)(wj,{item:d}),(0,ey.jsx)("h2",{className:"mt-4 font-serif text-[30px] leading-[1.06] tracking-[-0.01em] text-balance text-white sm:text-[36px]",children:d.title}),(0,ey.jsx)("p",{className:"text-mlh-text/70 mt-4 max-w-[50ch] text-[14.5px] leading-[1.7] text-pretty",children:d.dek})]}),(0,ey.jsx)(wN,{item:d})]})]}),(0,ey.jsxs)("div",{className:"mt-9 mb-3.5 flex flex-wrap items-center gap-x-4 gap-y-2",children:[(0,ey.jsx)("span",{className:"font-serif text-[19px] leading-none text-white",children:s?"Results":"The wire"}),(0,ey.jsx)("span",{"aria-hidden":!0,className:"hidden h-px flex-1 bg-[linear-gradient(90deg,rgba(255,255,255,.14),transparent)] sm:block"}),(0,ey.jsx)("span",{className:"text-mlh-faint font-mono text-[9px] tracking-[0.2em]",children:0===l.length?"NO PLACEMENTS":`${l.length} OF ${wp.length}`})]}),0===l.length?(0,ey.jsxs)("div",{className:`text-mlh-muted border border-dashed px-6 py-12 text-center text-[14px] ${wy}`,children:["Nothing on the wire matches â",a.trim(),"â."]}):(0,ey.jsx)("div",{className:"grid grid-cols-[repeat(auto-fill,minmax(288px,1fr))] gap-x-4 gap-y-5 sm:gap-x-5 sm:gap-y-6",children:c.map((t,r)=>(0,ey.jsx)(w_,{item:t,index:r,stirred:i},t.id))})]})]})}let wS=ek.useLayoutEffect,wC="cubic-bezier(0.4, 0, 0.2, 1)";function wT({className:t,classNames:r,images:a,initialIndex:n=0,intervalMs:i=4500,ref:o,...s}){let l=(0,ek.useRef)(null),d=(0,ek.useRef)([]),c=(0,ek.useRef)(null),u=(0,ek.useRef)(null),h=(0,ek.useRef)(null),p=(0,ek.useRef)(null),m=(0,ek.useRef)(null),f=function(){let[t,r]=(0,ek.useState)(!0);return wS(()=>{let t=window.matchMedia("(prefers-reduced-motion: reduce)"),a=()=>{r(t.matches)};return a(),t.addEventListener("change",a),()=>{t.removeEventListener("change",a)}},[]),t}(),x=a.length,g=Math.min(Math.max(n,0),x-1),y=a[g];return((0,ek.useEffect)(()=>{let t=l.current,r=c.current,n=u.current,o=h.current,s=p.current,y=m.current,b=d.current;if(!(t&&r&&n&&o&&s&&y)||x<2||!(b[0]&&b[1]))return;let v=b[0],w=b[1];for(let t of a)new Image().src=t.src;let k=g,j=0,N=!0,_=[],E=null,S="idle",C=!1,T=()=>{let t=0===j?v:w,r=0===j?w:v;t.style.opacity="1",t.style.filter="none",t.style.transform="none",t.style.zIndex="2",r.style.opacity="0",r.style.filter="none",r.style.transform="none",r.style.zIndex="1"},A=()=>{for(let t of _)try{t.cancel()}catch{}_=[]},I=()=>{y.textContent=String(k+1)},M=t=>{let r=(t%x+x)%x;if(r===k)return;A(),T();let n=0===j?v:w,i=0===j?w:v,o=a[r];if(o){if(i.src=o.src,i.alt=o.alt,n.style.zIndex="1",i.style.zIndex="2",f)i.style.opacity="1",n.style.opacity="0";else i.style.opacity="0",_=[n.animate([{filter:"blur(0px)",opacity:1,transform:"scale(1)"},{filter:"blur(10px)",opacity:0,transform:"scale(0.94)"}],{duration:420,easing:wC,fill:"forwards"}),i.animate([{filter:"blur(10px)",opacity:0,transform:"scale(0.94)"},{filter:"blur(0px)",opacity:1,transform:"scale(1)"}],{delay:60,duration:460,easing:wC,fill:"forwards"})];j=+(0===j),k=r,I()}},P=t=>
122{if(f){S="idle",n.style.transform="scaleX(0)",t();return}S="transition",n.style.transformOrigin="right";let r=n.animate([{transform:"scaleX(1)"},{transform:"scaleX(0)"}],{duration:220,easing:"ease-in",fill:"forwards"});E=r,r.onfinish=()=>{n.style.transformOrigin="",C||t()}},O=()=>{E&&(E.onfinish=null,E.cancel()),n.style.transform="scaleX(0)",n.style.transformOrigin="",f?(S="idle",E=n.animate([{opacity:0},{opacity:0}],{duration:i})):(S="growing",E=n.animate([{transform:"scaleX(0)"},{transform:"scaleX(1)"}],{duration:i,easing:"linear",fill:"forwards"})),E.onfinish=()=>{!C&&N&&P(()=>{!C&&N&&(M(k+1),O())})}},D=t=>{N=t,r.classList.toggle("is-paused",!t),r.setAttribute("aria-pressed",String(!t)),r.setAttribute("aria-label",t?"Pause slideshow":"Play slideshow")},R=t=>{M(k+t),N?(t=>{let r=E,a=1;if("growing"===S&&r&&(a=Math.min(1,Math.max(0,("number"==typeof r.currentTime?r.currentTime:i)/i))),r&&(r.onfinish=null,r.cancel()),n.style.transformOrigin="",f){S="idle",n.style.transform="scaleX(0)",t();return}if(a>=1){n.style.transform="scaleX(1)",P(t);return}S="transition";let o=n.animate([{transform:`scaleX(${a})`},{transform:"scaleX(1)"}],{duration:220,easing:"ease-out",fill:"forwards"});E=o,o.onfinish=()=>{C||P(t)}})(()=>{!C&&N&&O()}):(E?.cancel(),E=null,S="idle",n.style.transform="scaleX(0)",n.style.transformOrigin="")},$=()=>R(1),z=t=>{t.stopPropagation(),R(-1)},L=t=>{t.stopPropagation(),R(1)},W=t=>{t.stopPropagation(),N?N&&(D(!1),E?.pause()):N||(D(!0),E&&"paused"===E.playState?E.play():O())},U=t=>{if(t.metaKey||t.ctrlKey||t.altKey)return;let r=t.target;r&&("INPUT"===r.tagName||"TEXTAREA"===r.tagName||"SELECT"===r.tagName||r.isContentEditable)||("ArrowRight"===t.key?(t.preventDefault(),R(1)):"ArrowLeft"===t.key&&(t.preventDefault(),R(-1)))},B=()=>{N&&(document.hidden?E?.pause():E?.play())};return t.addEventListener("click",$),o.addEventListener("click",z),s.addEventListener("click",L),r.addEventListener("click",W),document.addEventListener("keydown",U),document.addEventListener("visibilitychange",B),T(),I(),D(!0),O(),()=>{C=!0,A(),E?.cancel(),t.removeEventListener("click",$),o.removeEventListener("click",z),s.removeEventListener("click",L),r.removeEventListener("click",W),document.removeEventListener("keydown",U),document.removeEventListener("visibilitychange",B)}},[a,i,f,g,x]),y)?(0,ey.jsxs)("div",{className:(0,rf.cn)("relative block h-[320px] w-full overflow-hidden rounded-[16px] bg-[#292929] max-[480px]:h-[280px]",t),ref:o,...s,children:[(0,ey.jsxs)("div",{className:"absolute inset-0 cursor-pointer",ref:l,children:[(0,ey.jsx)("img",{alt:y.alt,className:"absolute inset-0 size-full object-contain [will-change:opacity,transform,filter] select-none [backface-visibility:hidden]",decoding:"async",draggable:!1,loading:"eager",ref:t=>{d.current[0]=t},src:y.src}),(0,ey.jsx)("img",{alt:"","aria-hidden":"true",className:"absolute inset-0 size-full object-contain [will-change:opacity,transform,filter] select-none [backface-visibility:hidden]",decoding:"async",draggable:!1,loading:"lazy",ref:t=>{d.current[1]=t},src:y.src})]}),x>1&&(0,ey.jsxs)("div",{className:"pointer-events-none absolute inset-x-4 top-4 z-3 flex items-center justify-between",children:[(0,ey.jsxs)("button",{"aria-label":"Pause slideshow","aria-pressed":"false",className:(0,rf.cn)("group pointer-events-auto relative inline-flex h-[26px] items-center overflow-hidden rounded-full border-0 bg-[#3e3e3e] px-2.5 font-[inherit] text-xs leading-none text-white transition-colors duration-200 [transition-timing-function:ease] [-webkit-tap-highlight-color:transparent]","hover:bg-[#4a4a4a] focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-white",r?.pill),ref:c,type:"button",children:[(0,ey.jsx)("span",{"aria-hidden":"true",className:"absolute inset-0 z-0 origin-left bg-white/[0.18]",ref:u,style:{transform:"scaleX(0)"}}),(0,ey.jsxs)("span",{className:"relative z-1 inline-flex items-center gap-1.5",children:[(0,ey.jsxs)("span",{"aria-hidden":"true",className:"relative inline-block size-[11px] shrink-0",children:[(0,ey.jsx)("span",{className:"absolute inset-0 bg-white transition-[clip-path] duration-150 [transition-timing-function:cubic-bezier(0.65,0,0.35,1)] [clip-path:polygon(18.75%_12.5%,37.5%_12.5%,37.5%_87.5%,18.75%_87.5%)] group-[.is-paused]:[clip-path:polygon(25%_12.5%,56.25%_31.25%,56.25%_68.75%,25%_87.5%)] motion-reduce:transition-none"}),(0,ey.jsx)("span",{className:"absolute inset-0 bg-white transition-[clip-path] duration-150 [transition-timing-function:cubic-bezier(0.65,0,0.35,1)] [clip-path:polygon(62.5%_12.5%,81.25%_12.5%,81.25%_87.5%,62.5%_87.5%)] group-[.is-paused]:[clip-path:polygon(56.25%_31.25%,87.5%_50%,87.5%_50%,56.25%_68.75%)] motion-reduce:transition-none"})]}),(0,ey.jsxs)("span",{className:"hidden pt-px tracking-[0.02em] tabular-nums",children:[(0,ey.jsx)("span",{ref:m,children:"1"}),"/",(0,ey.jsx)("span",{children:x})]})]})]}),(0,ey.jsxs)("span",{className:"pointer-events-none inline-flex items-center gap-1.5",children:[(0,ey.jsx)("button",{"aria-label":"Previous image",className:(0,rf.cn)("pointer-events-auto inline-flex size-[26px] items-center justify-center rounded-full border-0 bg-[#3e3e3e] text-white transition-colors duration-200 [transition-timing-function:ease] [-webkit-tap-highlight-color:transparent] hover:bg-[#4a4a4a] focu
122s-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-white",r?.chevron),ref:h,type:"button",children:(0,ey.jsx)("svg",{"aria-hidden":"true",fill:"none",height:"14",viewBox:"0 0 14 14",width:"14",children:(0,ey.jsx)("path",{d:"M8.5 3L4.5 7l4 4",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"})})}),(0,ey.jsx)("button",{"aria-label":"Next image",className:(0,rf.cn)("pointer-events-auto inline-flex size-[26px] items-center justify-center rounded-full border-0 bg-[#3e3e3e] text-white transition-colors duration-200 [transition-timing-function:ease] [-webkit-tap-highlight-color:transparent] hover:bg-[#4a4a4a] focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-white",r?.chevron),ref:p,type:"button",children:(0,ey.jsx)("svg",{"aria-hidden":"true",fill:"none",height:"14",viewBox:"0 0 14 14",width:"14",children:(0,ey.jsx)("path",{d:"M5.5 3l4 4-4 4",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"})})})]})]})]}):null}let wA=[{src:"/artha/hero-slide-1.webp",alt:"The Artha Sutram cover: your personal wealth report from your birth chart"},{src:"/artha/hero-slide-2.webp",alt:"A spread: your wealth at a glance, with the wealth score out of 100"},{src:"/artha/hero-slide-3.webp",alt:"A spread: your three wealth pillars, and what drives you financially"},{src:"/artha/hero-slide-4.webp",alt:"A spread: your peak earning years, plotted as a wealth timeline"},{src:"/artha/hero-slide-5.webp",alt:"A spread: your wealth block, and the remedy for it"}];function wI(){return(0,ey.jsx)(wT,{images:wA,initialIndex:0,intervalMs:4500,className:"aspect-[3/2] h-auto bg-transparent max-[480px]:h-auto",classNames:{pill:"border border-mlh-plum-500/40 bg-black/55 backdrop-blur-sm hover:bg-black/70",chevron:"border border-mlh-plum-500/40 bg-black/55 backdrop-blur-sm hover:bg-black/70"}})}function wM({discountPct:t,className:r=""}){let[a,n]=(0,ek.useState)(900);(0,ek.useEffect)(()=>{let t=Date.now(),r=setInterval(()=>{let r=Math.floor((Date.now()-t)/1e3),a=900-r%900;900===a&&r>0&&(0,eb.track)("ARTHA_OFFER_EXPIRED_WEB_EVENT"),n(a)},1e3);return()=>clearInterval(r)},[]);let i=a<=300;return(0,ey.jsxs)("div",{className:`border-mlh-plum-500/35 mlh-card-plum-soft w-fit min-w-[248px] rounded-2xl border p-4 shadow-[0_0_44px_color-mix(in_srgb,var(--mlh-plum-500)_14%,transparent)] ${r}`,children:[(0,ey.jsxs)("span",{className:"border-mlh-plum-400/30 bg-mlh-plum-500/25 text-mlh-plum-100 inline-flex items-center rounded-full border px-3.5 py-1 font-sans text-[14px] font-semibold tracking-[0.01em] uppercase",children:[t,"% OFF"]}),(0,ey.jsx)("p",{className:"text-mlh-muted mt-3 font-sans text-[15px] leading-5 font-light",children:"Offer ends in"}),(0,ey.jsxs)("p",{className:"mt-0.5 flex items-baseline gap-2.5",children:[(0,ey.jsx)("span",{className:`text-mlh-plum-400 font-sans text-[40px] leading-none tabular-nums drop-shadow-[0_0_26px_color-mix(in_srgb,var(--mlh-plum-500)_45%,transparent)] sm:text-[44px] ${i?"animate-mlh-countdown":""}`,children:(0,ev.mmss)(a)}),(0,ey.jsx)("span",{className:"text-mlh-muted font-sans text-[16px] font-light",children:"minutes"})]})]})}function wP({active:t,etaSeconds:r,startedAt:a}){let[,n]=(0,ek.useState)(0),[i,o]=(0,ek.useState)(0),s=t&&!!a&&!!r,l=t=>{let n=Math.max(0,t/1e3-a);return{pct:Math.min(97,Math.max(3,Math.round(n/r*100))),secsLeft:Math.max(0,Math.ceil(r-n))}};(0,ek.useEffect)(()=>{if(!s)return;let t=setInterval(()=>{n(t=>t+1),o(t=>Math.max(t,l(Date.now()).pct))},1e3);return()=>clearInterval(t)},[s,a,r]);let d=s?l(Date.now()):null,c=d?Math.max(d.pct,i):null,u=d?d.secsLeft:null,h=null===u?"This usually takes a few minutes.":0===u?"Any moment nowâ¦":u>90?`About ${Math.ceil(u/60)} min remaining`:`About ${u}s remaining`;return{pct:c,secsLeft:u,label:h}}function wO({pct:t,label:r,title:a="Preparing your report",note:n,className:i=""}){let o=null===t;return(0,ey.jsxs)("div",{className:`w-full max-w-[440px] ${i}`,children:[(0,ey.jsxs)("div",{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,...o?{}:{"aria-valuenow":t},"aria-label":`${a}: ${r}`,className:"border-mlh-plum-400/45 bg-mlh-bg/70 relative isolate flex items-center gap-4 overflow-hidden rounded-full border px-6 py-3.5 shadow-[0_0_30px_color-mix(in_srgb,var(--mlh-plum-500)_20%,transparent)]",children:[o?(0,ey.jsx)("span",{"aria-hidden":!0,
122className:"animate-mlh-sweep absolute inset-y-0 left-0 w-1/3 bg-[linear-gradient(90deg,transparent,color-mix(in_srgb,var(--mlh-plum-500)_55%,transparent),transparent)]"}):(0,ey.jsx)("span",{"aria-hidden":!0,style:{width:`${t}%`,transition:"width 1s cubic-bezier(.4,0,.2,1)"},className:"absolute inset-y-0 left-0 bg-[linear-gradient(90deg,var(--mlh-plum-800),var(--mlh-plum-500))]",children:(0,ey.jsx)("span",{className:"absolute inset-y-0 right-0 w-14 bg-[linear-gradient(90deg,transparent,color-mix(in_srgb,var(--mlh-plum-300)_60%,transparent))]"})}),(0,ey.jsxs)("span",{className:"text-mlh-plum-100 relative flex flex-1 items-center gap-2.5 font-sans text-[17px] leading-none sm:text-[18px]",children:[(0,ey.jsx)("span",{className:"bg-mlh-plum-200 animate-mlh-twinkle h-[6px] w-[6px] flex-none rounded-full"}),a]}),!o&&(0,ey.jsxs)("span",{className:"text-mlh-plum-200 relative font-mono text-[11px] tabular-nums",children:[t,"%"]})]}),(0,ey.jsxs)("div",{className:"text-mlh-faint mt-2 text-[13px] leading-snug",children:[r,n&&(0,ey.jsxs)(ey.Fragment,{children:[(0,ey.jsx)("span",{className:"bg-mlh-plum-400/50 mx-2 inline-block h-[3px] w-[3px] rounded-full align-middle"}),n]})]})]})}function wD({pct:t,hint:r="A few min"}){return(0,ey.jsxs)("div",{className:"w-full",children:[(0,ey.jsxs)("div",{className:"text-mlh-amber flex items-baseline justify-between gap-2",children:[(0,ey.jsx)("span",{children:"Preparing"}),(0,ey.jsx)("span",{className:"tabular-nums",children:null===t?r:`${t}%`})]}),(0,ey.jsx)("div",{className:"bg-mlh-amber/15 mt-1.5 h-[3px] overflow-hidden rounded-full",children:null===t?(0,ey.jsx)("span",{className:"animate-mlh-sweep bg-mlh-amber/60 block h-full w-1/3 rounded-full"}):(0,ey.jsx)("span",{className:"bg-mlh-amber/70 block h-full rounded-full",style:{width:`${t}%`,transition:"width 1s linear"}})})]})}var wR=t.i(78553);let w$=(0,eO.default)("rotate-ccw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]),wz=[{src:"/artha/feature-planet-deep-dive.png",w:292,h:168,t:"Planet Deep Dive",d:"Your whole chart, decoded planet by planet."},{src:"/artha/feature-wealth-yogas.png",w:168,h:168,t:"Wealth Yogas",d:"The rare money combinations you were born with."},{src:"/artha/feature-lifetime-roadmap.png",w:127,h:168,t:"Lifetime Roadmap",d:"Your wealth timeline, with the peak years marked."},{src:"/artha/feature-remedies.png",w:91,h:168,t:"Remedies",d:"A few things to do, a few to stop, to protect whatâs yours."}],wL=["border-b lg:border-b-0","border-b sm:border-l lg:border-b-0","border-b sm:border-b-0 lg:border-l","sm:border-l"],wW=[{src:"/artha/how-it-works-planet-1.png",size:60,t:"Enter your birth details",d:"Your date, time, and place of birth. That is all we need. Nothing to download, no forms to fill."},{src:"/artha/how-it-works-planet-2.png",size:60,t:"Complete your purchase",d:"Secure one-time payment via UPI, credit card, or debit card. The whole thing takes under a minute."},{src:"/artha/how-it-works-planet-3.png",size:60,t:"Your Artha Sutram is prepared",d:"Our system reads your full Vedic birth chart, your planetary placements, current transits, timing windows, and strengths, and builds every section from your chart specifically. This takes about 20 minutes."},{src:"/artha/how-it-works-planet-4.png",size:240,t:"Read it on WhatsApp and here",d:"Your report arrives on WhatsApp the moment it is ready. Your purchase also creates your Melooha account, so you can log in anytime to read it again and revisit sections."}],wU=[{name:"Wealth Potential",v:86},{name:"Luck with Money",v:97},{name:"Savings & Assets",v:83},{name:"Income & Gains",v:91}],wB=[{part:"The Foundation",locked:1,items:[["A Letter From Vaani","For you, with everything I know"],["Artha Twin"],["Wealth Score","How your chart is built for money"],["Wealth Charts","Decoding everything about your money"],["Your Wealth Yogas","The active formations in your chart"],["Planet Deep Dive","Wealth engines, one planet at a time"]]},{part:"The Channels",locked:2,items:[["Your Professional Orbit","Who belongs close, who belongs at the edge"],["Your Income Channels","What your chart rewards and what it resists"],["Who You Are as an Earner","Your wealth identity, decoded"]]},{part:"The Life",locked:1,items:[["Your Life Map","9 mahadashas, birth to 108"],["You Are Here","A deep dive into your current chapter"],["What Works Against You","The pattern is named and solved"],["What Works For You","Your specific advantages, all chart-sourced"],["When to A
122ct","Auspicious timing, chart-specific"]]},{part:"The Action",locked:1,items:[["Your Wealth Remedies","The toolkit that protects your money"],["Numerology for Wealth","Three numbers and their impact"],["Your Action Plan","What the chart is asking, and when"],["Summary Card","Everything that matters, one view"]]}],wF=t=>t.items.length+t.locked,wY=wB.reduce((t,r)=>t+wF(r),0),wV=t=>wB.slice(0,t).reduce((t,r)=>t+wF(r),0),wq=wB.reduce((t,r)=>t+r.locked,0),wH=[["72%","54%"],["58%","66%"],["66%","46%"]],wZ="mt-16 sm:mt-24",wK="text-mlh-plum-100 inline-flex items-center justify-center gap-2 rounded-full bg-[linear-gradient(160deg,var(--mlh-plum-500),var(--mlh-plum-800))] font-sans shadow-[0_0_30px_color-mix(in_srgb,var(--mlh-plum-500)_38%,transparent)] transition duration-250 ease-out",wG="cursor-pointer hover:-translate-y-[2px] hover:brightness-110 hover:shadow-[0_0_44px_color-mix(in_srgb,var(--mlh-plum-500)_70%,transparent)] active:translate-y-0 active:brightness-95";function wJ({children:t,className:r=""}){return(0,ey.jsx)("span",{className:`block font-mono text-[9.5px] tracking-[0.22em] ${r}`,children:t})}function wX({owned:t,credits:r=0,onBuy:a,onUnlock:n,onRead:i,onAsk:o,status:s,price:l=9499,mrp:d=19999,currency:c,etaSeconds:u,unlockedAt:h,accountReady:p=!0}){let m="ready"===s,f=t&&!m,[x,g]=(0,ek.useState)(null),[y,b]=(0,ek.useState)(!1),{pct:v,label:w}=wP({active:f,etaSeconds:u,startedAt:h}),k=!t&&r>0,j=t?[[w$,"Yours to re-read"],[ti.FileText,"PDF + live on web"],[bI,"Ask Vaani any time"]]:k?[[vF.Clock,"About 25 minutes to prepare"],[ti.FileText,"PDF + live on web"],[bI,"Ask Vaani any time"]]:[[ti.FileText,"PDF + live on web"],[bI,"Ask Vaani any time after"],[w$,"Yours to re-read"]],N=p?t?y?"Openingâ¦":"Read Now":k?"Unlock Artha Sutram":"Buy Now":"Checking your accountâ¦",_=y||!p,E=`${wK} px-8 py-3.5 text-[18px] ${_?"cursor-wait opacity-80":wG}`,S=f?(0,ey.jsx)(wO,{pct:v,label:w,note:"Leave the page if you like: it keeps preparing."}):(0,ey.jsxs)("button",{onClick:()=>{if(!f&&!y&&p)if((0,eb.track)("ARTHA_BUY_CLICKED_WEB_EVENT",{credits:+!!k}),t){let t=i?.();t&&(b(!0),t.finally(()=>b(!1)))}else k?n?.():a()},disabled:_,"aria-busy":_,className:E,children:[_&&(0,ey.jsx)(e8.Loader2,{size:15,className:"animate-spin"}),N,!_&&" â"]}),C=(0,ey.jsxs)("a",{href:"https://sutram.melooha.com/api/sample-report-pdf?mode=inline",target:"_blank",rel:"noreferrer",className:"border-mlh-border text-mlh-muted hover:border-mlh-plum-400/60 hover:text-mlh-plum-300 inline-flex items-center gap-2 rounded-full border px-6 py-3.5 font-sans text-[18px] transition",children:[f?"Read a sample while you wait":"View Sample",(0,ey.jsx)(vU.ArrowUpRight,{size:17,className:"flex-none"})]}),T=Math.round((d-l)/d*100),A=t||k?(0,ey.jsxs)("span",{className:"border-mlh-plum-400/45 bg-mlh-plum-500/12 text-mlh-plum-300 inline-flex items-center gap-2.5 rounded-full border px-3.5 py-1.5 font-mono text-[9.5px] tracking-[0.22em]",children:[(0,ey.jsx)("span",{className:"bg-mlh-plum-300 animate-mlh-twinkle h-[5px] w-[5px] rounded-full"}),t?"UNLOCKED ON YOUR ACCOUNT":`ALREADY PAID FOR \xb7 ${r} AVAILABLE`]}):null;return(0,ey.jsxs)("div",{className:`${e5.PAGE_FRAME} mx-auto w-full max-w-[1560px]`,children:[(0,ey.jsxs)("section",{className:"border-mlh-plum-500/40 mlh-in relative overflow-hidden rounded-3xl border bg-[radial-gradient(120%_140%_at_78%_8%,color-mix(in_srgb,var(--mlh-plum-500)_26%,transparent),color-mix(in_srgb,var(--mlh-plum-500)_7%,transparent)_42%,var(--mlh-bg)_78%)] shadow-[0_30px_80px_rgba(0,0,0,.55),inset_0_1px_0_rgba(255,255,255,.055)] [--mlh-in-delay:60ms]",children:[(0,ey.jsx)("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0",style:{backgroundImage:"radial-gradient(1.5px 1.5px at 82% 22%, rgba(205,162,187,.7), transparent), radial-gradient(1px 1px at 68% 68%, rgba(255,255,255,.32), transparent), radial-gradient(1.5px 1.5px at 92% 58%, rgba(205,162,187,.5), transparent)"}}),(0,ey.jsxs)("div",{className:"relative grid grid-cols-1 items-center gap-x-8 gap-y-10 px-6 pt-9 pb-8 sm:px-9 lg:grid-cols-[minmax(0,1fr)_minmax(380px,0.95fr)]",children:[(0,ey.jsxs)("div",{className:"min-w-0",children:[A,(0,ey.jsxs)("div",{className:`flex flex-wrap items-baseline gap-x-4 gap-y-1 ${A?"mt-5":""}`,children:[(0,ey.jsx)("h1",{className:"bg-[linear-gradient(96deg,#fff_8%,var(--mlh-plum-300)_52%,var(--mlh-plum-500)_96%)] bg-clip-text font-serif text-[46px] leading-none tracking-[-0.025em] text-transparent sm:text-[64px]",children:"Artha Sutram"}),(0,ey.jsx)("span",{lang:"sa",className:"text-mlh-plum-400/80 font-serif text-[22px] sm:text-[25px]",children:"à¤
रà¥à¤¥ सà¥à¤¤à¥à¤°à¤®à¥"})]}),(0,ey.jsx)("div",{className:"mt-4 h-px w-[150px] bg-[linear-gradient(90deg,color-mix(in_srgb,var(--mlh-amber)_65%,transparent),var(--mlh-plum-400)_42%,transparent)]"}),(0,ey.jsx)("p",{className:"text-mlh-muted mt-3.5 max-w-[620px] text-[16px] leading-[1.5] text-pretty sm:text-[19px]",children:"Decisions feel lighter when you know
122what's coming. Your complete Vedic wealth blueprint, the pillars of prosperity in your chart and how to activate them."}),(0,ey.jsxs)("div",{className:"border-mlh-plum-500/22 mt-7 border-t pt-6",children:[!t&&!k&&(0,ey.jsxs)("div",{className:"mb-5",children:[(0,ey.jsxs)("div",{className:"flex flex-wrap items-baseline gap-x-3.5 gap-y-2",children:[(0,ey.jsx)("span",{className:"text-mlh-plum-300 font-sans text-[38px] leading-none drop-shadow-[0_0_28px_color-mix(in_srgb,var(--mlh-plum-500)_45%,transparent)] sm:text-[44px]",children:(0,ev.money)(l,c)}),d>l&&(0,ey.jsxs)(ey.Fragment,{children:[(0,ey.jsx)("span",{className:"text-mlh-faint font-sans text-[19px] line-through",children:(0,ev.money)(d,c)}),(0,ey.jsxs)("span",{className:"text-mlh-plum-300 border-mlh-plum-400/45 bg-mlh-plum-500/15 rounded-full border px-2.5 py-[5px] font-mono text-[10px] tracking-[0.18em]",children:["SAVE ",(0,ev.money)(d-l,c)]})]})]}),d>l&&(0,ey.jsx)(wM,{discountPct:T,className:"mt-4.5"})]}),(0,ey.jsxs)("div",{className:"flex flex-wrap items-center gap-3",children:[S,C]}),!f&&(0,ey.jsx)("div",{className:"mt-4.5 flex flex-wrap items-center gap-2",children:j.map(([t,r])=>(0,ey.jsxs)("span",{className:"border-mlh-plum-500/25 bg-mlh-plum-500/[0.07] text-mlh-muted inline-flex items-center gap-2 rounded-full border px-3.5 py-2 font-mono text-[9.5px] tracking-[0.16em] uppercase",children:[(0,ey.jsx)(t,{size:12,className:"text-mlh-plum-300"}),r]},r))})]})]}),(0,ey.jsxs)("div",{className:"mlh-in relative flex w-full flex-col items-center gap-4 [--mlh-in-delay:200ms] [--mlh-in-y:14px]",children:[(0,ey.jsxs)("div",{className:"relative w-full",children:[(0,ey.jsx)("div",{"aria-hidden":!0,className:"animate-mlh-glow pointer-events-none absolute top-[4%] left-1/2 h-[300px] w-[560px] -translate-x-1/2 rounded-full bg-[radial-gradient(circle,color-mix(in_srgb,var(--mlh-plum-400)_52%,transparent),transparent_70%)] blur-[48px]"}),(0,ey.jsx)(wI,{})]}),(0,ey.jsxs)("div",{className:"flex flex-col items-center gap-2.5",children:[(0,ey.jsx)(wJ,{className:"text-mlh-muted",children:"FEATURED ON"}),(0,ey.jsx)(tU.default,{src:"/shark-tank-india.webp",alt:"Shark Tank India",width:360,height:476,quality:92,className:"h-[84px] w-auto drop-shadow-[0_3px_14px_rgba(0,0,0,.55)]"})]})]})]}),(0,ey.jsx)("dl",{className:"border-mlh-plum-500/20 relative grid grid-cols-1 border-t bg-black/20 sm:grid-cols-2 lg:grid-cols-4",children:wz.map((t,r)=>(0,ey.jsxs)("div",{className:`border-mlh-plum-500/15 flex items-center gap-3.5 px-5 py-3.5 ${wL[r]}`,children:[(0,ey.jsx)(tU.default,{src:t.src,alt:"",width:t.w,height:t.h,"aria-hidden":!0,className:"h-[40px] w-auto max-w-[58px] flex-none object-contain"}),(0,ey.jsxs)("div",{className:"min-w-0",children:[(0,ey.jsx)("dt",{className:"font-serif text-[16.5px] leading-tight text-white",children:t.t}),(0,ey.jsx)("dd",{className:"text-mlh-muted mt-1 text-[12.5px] leading-snug text-pretty",children:t.d})]})]},t.t))})]}),(0,ey.jsxs)("div",{className:`mlh-in ${wZ} flex flex-wrap items-baseline justify-between gap-x-6 gap-y-2 [--mlh-in-delay:120ms]`,children:[(0,ey.jsx)("h2",{className:"font-serif text-[28px] leading-none text-white sm:text-[32px]",children:"How it works"}),(0,ey.jsx)(wJ,{className:"text-mlh-plum-300",children:"FOUR STEPS"})]}),(0,ey.jsx)("p",{className:"text-mlh-muted mlh-in mt-3 max-w-[620px] text-[15px] leading-snug text-pretty [--mlh-in-delay:140ms] sm:text-[16px]",children:"A few simple steps, and your Artha Sutram is on its way."}),(0,ey.jsx)("ol",{className:"mt-10 flex flex-col",children:wW.map((t,r)=>{let a=r===wW.length-1;return(0,ey.jsxs)("li",{style:e4(180+60*r),className:"mlh-in relative grid grid-cols-[56px_minmax(0,1fr)] gap-x-5 pb-9 [--mlh-in-y:8px] last:pb-0 sm:grid-cols-[72px_minmax(0,1fr)] sm:gap-x-7",children:[!a&&(0,ey.jsx)("span",{"aria-hidden":!0,className:"absolute top-7 -bottom-7 left-[27px] w-[2px] rounded-full sm:top-9 sm:-bottom-9 sm:left-[35px]",style:{background:"linear-gradient(180deg, color-mix(in srgb, var(--mlh-plum-300) 55%, transparent), color-mix(in srgb, var(--mlh-plum-400) 40%, transparent))",opacity:1-.24*r}}),(0,ey.jsxs)("div",{className:"relative flex h-14 w-14 items-center justify-center sm:h-[72px] sm:w-[72px]",children:[(0,ey.jsx)("span",{"aria-hidden":!0,
122className:"pointer-events-none absolute h-[76px] w-[76px] rounded-full bg-[radial-gradient(circle,color-mix(in_srgb,var(--mlh-plum-400)_32%,transparent),transparent_68%)] blur-[14px]"}),(0,ey.jsx)(tU.default,{src:t.src,alt:"","aria-hidden":!0,width:t.size,height:t.size,quality:92,className:"relative h-[46px] w-[46px] object-contain drop-shadow-[0_4px_16px_rgba(0,0,0,.55)] sm:h-[56px] sm:w-[56px]"})]}),(0,ey.jsxs)("div",{className:"min-w-0 pt-1.5 sm:pt-3 lg:grid lg:grid-cols-[minmax(0,0.46fr)_minmax(0,1fr)] lg:gap-x-12",children:[(0,ey.jsxs)("div",{className:"min-w-0",children:[(0,ey.jsx)(wJ,{className:"text-mlh-plum-300 leading-[14px]",children:`STEP ${r+1}`}),(0,ey.jsx)("h3",{className:"mt-2 font-serif text-[20px] leading-tight text-white sm:text-[23px]",children:t.t})]}),(0,ey.jsx)("p",{className:"text-mlh-muted mt-2 max-w-[660px] text-[15px] leading-[1.55] text-pretty sm:text-[16px] lg:mt-0 lg:max-w-none lg:pt-[22px]",children:t.d})]})]},t.t)})}),(0,ey.jsxs)("div",{className:`mlh-in ${wZ} flex flex-wrap items-baseline justify-between gap-x-6 gap-y-2 [--mlh-in-delay:60ms]`,children:[(0,ey.jsx)("h2",{className:"font-serif text-[28px] leading-none text-white sm:text-[32px]",children:"What's inside Artha Sutram"}),(0,ey.jsx)(wJ,{className:"text-mlh-plum-300",children:`${wY} SECTIONS IN THE REPORT`})]}),(0,ey.jsxs)("section",{className:"border-mlh-plum-500/22 mlh-in mt-8 overflow-hidden rounded-3xl border bg-[linear-gradient(160deg,color-mix(in_srgb,var(--mlh-plum-500)_13%,transparent),rgba(255,255,255,.012))] [--mlh-in-delay:100ms]",children:[(0,ey.jsxs)("div",{className:"border-mlh-plum-500/18 flex flex-wrap items-baseline justify-between gap-x-6 gap-y-1.5 border-b px-6 py-5 sm:px-8",children:[(0,ey.jsx)("h3",{className:"font-serif text-[23px] leading-none text-white sm:text-[25px]",children:"Your Wealth Score"}),(0,ey.jsx)("p",{className:"text-mlh-muted text-[15px] leading-snug sm:text-[16px]",children:"How your chart is built for money"})]}),(0,ey.jsx)("div",{className:"grid grid-cols-1 gap-x-10 gap-y-6 px-6 py-7 sm:grid-cols-2 sm:px-8 lg:grid-cols-4",children:wU.map((t,r)=>(0,ey.jsxs)("div",{style:e4(160+50*r),className:"mlh-in",children:[(0,ey.jsx)("div",{className:"flex items-baseline justify-between gap-3",children:(0,ey.jsxs)("span",{className:"text-mlh-plum-300 font-sans text-[30px] leading-none",children:[t.v,(0,ey.jsx)("span",{className:"text-mlh-faint text-[15px]",children:"/100"})]})}),(0,ey.jsx)("div",{className:"bg-mlh-plum-500/12 mt-3 h-[6px] overflow-hidden rounded-full",children:(0,ey.jsx)("div",{className:"h-full rounded-full bg-[linear-gradient(90deg,var(--mlh-plum-800),var(--mlh-plum-300))]",style:{width:`${t.v}%`,transition:"width .6s cubic-bezier(.22,1,.36,1)"}})}),(0,ey.jsx)("p",{className:"text-mlh-text mt-3 text-[15px] leading-snug text-pretty sm:text-[16px]",children:t.name})]},t.name))}),(0,ey.jsxs)("div",{className:"border-mlh-plum-500/18 border-t px-6 py-5 sm:px-8",children:[(0,ey.jsx)(wJ,{className:"text-mlh-plum-300",children:"HOW TO USE THIS"}),(0,ey.jsx)("p",{className:"text-mlh-muted mt-2 max-w-[820px] text-[15px] leading-[1.55] text-pretty sm:text-[16px]",children:"Income is the loudest part of money, so most people only watch that. Your chart checks four things. The size of wealth you are built for, how often fortune lands in your lap, how much you actually keep, and how steadily it comes in. The weakest of the four is where your wealth is leaking the fastest. Start there."})]})]}),(0,ey.jsxs)("div",{className:"mlh-in mt-12 flex flex-wrap items-baseline justify-between gap-x-6 gap-y-2 [--mlh-in-delay:80ms]",children:[(0,ey.jsx)("h3",{className:"font-serif text-[23px] leading-none text-white sm:text-[25px]",children:"Contents"}),(0,ey.jsx)("p",{className:"text-mlh-muted text-[15px] leading-snug sm:text-[16px]",children:"Every section, in the order the report writes them"})]}),(0,ey.jsx)("ol",{className:"mt-6 grid grid-cols-1 gap-4 sm:grid-cols-2 xl:grid-cols-4",children:wB.map(({part:t,items:r,locked:a},n)=>(0,ey.jsxs)("li",{style:e4(120+60*n),className:"border-mlh-plum-500/20 from-mlh-plum-500/8 hover:border-mlh-plum-400/40 mlh-corner-glow mlh-in relative overflow-hidden rounded-2xl border bg-gradient-to-b to-w
122hite/[0.012] px-5 py-5 transition duration-200 ease-out [--mlh-glow-size:150px] [--mlh-in-y:8px]",children:[(0,ey.jsxs)("div",{className:"border-mlh-plum-500/18 flex items-baseline justify-between gap-3 border-b pb-3",children:[(0,ey.jsx)(wJ,{className:"text-mlh-plum-300",children:t.toUpperCase()}),(0,ey.jsx)("span",{className:"text-mlh-faint font-mono text-[9.5px] tracking-[0.16em]",children:r.length+a})]}),(0,ey.jsxs)("ol",{className:"mt-1 flex flex-col",children:[r.map(([t,r],a)=>(0,ey.jsxs)("li",{className:"border-mlh-plum-500/10 flex gap-3 border-b py-2.5 last:border-b-0",children:[(0,ey.jsx)("span",{className:"text-mlh-plum-400/70 mt-[3px] w-[18px] flex-none font-mono text-[10px] tracking-[0.1em] tabular-nums",children:String(wV(n)+a+1).padStart(2,"0")}),(0,ey.jsxs)("span",{className:"min-w-0",children:[(0,ey.jsx)("span",{className:"text-mlh-text block font-sans text-[16px] leading-tight",children:t}),r&&(0,ey.jsx)("span",{className:"text-mlh-faint mt-1 block text-[13.5px] leading-snug text-pretty",children:r})]})]},t)),Array.from({length:a},(t,a)=>(0,ey.jsxs)("li",{className:"border-mlh-plum-500/10 flex gap-3 border-b py-2.5 last:border-b-0",children:[(0,ey.jsx)("span",{className:"text-mlh-plum-400/40 mt-[3px] w-[18px] flex-none font-mono text-[10px] tracking-[0.1em] tabular-nums",children:String(wV(n)+r.length+a+1).padStart(2,"0")}),(0,ey.jsxs)("span",{className:"min-w-0 flex-1",children:[(0,ey.jsx)("span",{className:"sr-only",children:"Locked â this section is written in your report"}),(0,ey.jsxs)("span",{"aria-hidden":!0,className:"flex items-center gap-2 pt-[3px]",children:[(0,ey.jsx)("span",{className:"bg-mlh-plum-500/16 block h-[10px] rounded-full",style:{width:wH[a%3][0]}}),(0,ey.jsx)(ts,{className:"text-mlh-plum-400/55 size-[11px] flex-none"})]}),(0,ey.jsx)("span",{"aria-hidden":!0,className:"bg-mlh-plum-500/10 mt-[9px] block h-[7px] rounded-full",style:{width:wH[a%3][1]}})]})]},`locked-${a}`))]})]},t))}),(0,ey.jsxs)("p",{className:"text-mlh-faint mt-4 flex items-center gap-2 text-[13.5px] leading-snug",children:[(0,ey.jsx)(ts,{className:"text-mlh-plum-400/55 size-[12px] flex-none"}),`${wq} of the ${wY} are held back here. They are written in full in your copy.`]}),(0,ey.jsxs)("section",{className:`border-mlh-plum-500/38 mlh-in ${wZ} mlh-corner-glow relative flex flex-wrap items-center justify-between gap-x-10 gap-y-6 overflow-hidden rounded-3xl border bg-[linear-gradient(100deg,color-mix(in_srgb,var(--mlh-plum-500)_20%,transparent),transparent_72%)] px-5 py-8 [--mlh-glow-size:220px] [--mlh-in-delay:60ms] sm:px-9 sm:py-9`,children:[(0,ey.jsxs)("div",{className:"max-w-[660px] min-w-[min(280px,100%)] flex-1",children:[(0,ey.jsx)(wJ,{className:"text-mlh-plum-300",children:"AFTER THE READING"}),(0,ey.jsx)("h3",{className:"mt-2.5 font-serif text-[23px] leading-tight text-white sm:text-[26px]",children:"It doesn't end at the report"}),(0,ey.jsx)("p",{className:"text-mlh-muted mt-3 text-[15px] leading-[1.55] text-pretty sm:text-[16px]",children:"After Artha Sutram, keep asking Vaani about your money decisions, timing, and what-ifs, for as long as you like. Every finding stays live here."})]}),o&&(0,ey.jsx)("button",{onClick:()=>{(0,eb.track)("ASK_HANDOFF_CLICKED_WEB_EVENT",{from:"artha"}),o()},className:`${wK} ${wG} w-full flex-none px-5 py-3.5 text-center text-[16px] sm:w-auto sm:px-7 sm:text-[17px]`,children:"Ask Vaani about money first â"})]}),(0,ey.jsx)("h2",{className:`mlh-in ${wZ} font-serif text-[28px] leading-none text-white [--mlh-in-delay:60ms] sm:text-[32px]`,children:"Frequently asked"}),(0,ey.jsx)("div",{className:"mt-6 flex flex-col gap-2.5",children:gH.map((t,r)=>{let a=x===r;return(0,ey.jsxs)("button",{onClick:()=>{a||(0,eb.track)("ARTHA_FAQ_OPENED_WEB_EVENT",{index:r}),g(a?null:r)},"aria-expanded":a,style:e4(100+34*r),className:`mlh-in cursor-pointer rounded-2xl border px-5 py-4 text-left transition [--mlh-in-y:8px] ${a?"border-mlh-plum-400/55 bg-mlh-plum-500/10":"border-mlh-plum-500/16 bg-mlh-plum-500/5 hover:border-mlh-plum-400/35"}`,children:[(0,ey.jsxs)("span",{className:"flex items-center justify-between gap-4",children:[(0,ey.jsx)("span",{className:"font-serif text-[18px] leading-tight text-white sm:text-[19px]",children:t.q}),(0,ey.jsx)(wR.Plus,{size:17,className:`flex-none transition-transform duration-200 ${a?"text-mlh-plum-300 rotate-45":"text-mlh-faint"}`})]}),(0,ey.jsx)("span",{className:"grid overflow-hidden",style:{gridTemplateRows:a?"1fr":"0fr",opacity:+!!a,marginTop:10*!!a,transition:"grid-template-rows .32s ease, opacity .25s ease, margin-top .25s ease"},children:(0,ey.jsx)("span",{className:"text-mlh-muted min-h-0 overflow-hidden text-[15px] leading-[1.55] text-pretty sm:text-[16
122px]",children:t.a})})]},r)})}),(0,ey.jsxs)("section",{className:`border-mlh-plum-500/45 mlh-in ${wZ} relative overflow-hidden rounded-3xl border bg-[var(--mlh-bg)] text-center shadow-[0_30px_80px_rgba(0,0,0,.55)] [--mlh-in-delay:60ms]`,children:[(0,ey.jsx)(tU.default,{src:"/artha/cta-nebula.jpg",alt:"","aria-hidden":!0,fill:!0,sizes:"100vw",quality:75,className:"pointer-events-none object-cover opacity-60"}),(0,ey.jsxs)("div",{className:"relative bg-black/72 px-6 pt-11 pb-10 backdrop-blur-[2px] sm:px-8",children:[(t||k)&&(0,ey.jsxs)("span",{className:"border-mlh-plum-500/40 bg-mlh-bg/55 text-mlh-plum-300 inline-flex items-center gap-2.5 rounded-full border px-4 py-1.5 font-mono text-[9.5px] tracking-[0.24em]",children:[(0,ey.jsx)("span",{className:"bg-mlh-plum-300 animate-mlh-twinkle h-[5px] w-[5px] rounded-full"}),t?"UNLOCKED ON YOUR ACCOUNT":"ALREADY PAID FOR"]}),(0,ey.jsxs)("h2",{className:`mx-auto max-w-[660px] font-serif text-[34px] leading-[1.08] tracking-[-0.018em] text-balance text-white sm:text-[44px] ${t||k?"mt-5":""}`,children:["Know what's coming",(0,ey.jsx)("br",{}),(0,ey.jsx)("span",{className:"bg-[linear-gradient(96deg,#fff,var(--mlh-plum-300)_55%,var(--mlh-plum-500))] bg-clip-text text-transparent",children:"for your wealth"})]}),(0,ey.jsx)("p",{className:"mt-3 text-[16px] text-white/80 [text-shadow:0_1px_10px_rgba(0,0,0,.75)] sm:text-[18px]",children:t?m?"Your Artha Sutram is ready. Open it whenever you like.":"Your chart is being read now. This page opens it the moment it is ready.":k?"Your payment is on your account. Unlock Artha Sutram to start it.":(0,ey.jsxs)(ey.Fragment,{children:["Unlock Artha Sutram for ",(0,ev.money)(l,c)," ",d>l&&(0,ey.jsx)("span",{className:"text-white/45 line-through",children:(0,ev.money)(d,c)})]})}),(0,ey.jsx)("div",{className:"mt-6 flex justify-center",children:S}),(0,ey.jsxs)("div",{className:"mt-5 flex flex-wrap items-center justify-center gap-x-5 gap-y-2 font-mono text-[9.5px] tracking-[0.18em] text-white/60 [text-shadow:0_1px_8px_rgba(0,0,0,.8)]",children:[(0,ey.jsx)("span",{children:"PDF + LIVE ON WEB"}),(0,ey.jsx)("span",{className:"h-[3px] w-[3px] rounded-full bg-white/45"}),(0,ey.jsx)("span",{children:t?"YOURS TO RE-READ":"ASK VAANI ANY TIME AFTER"})]})]})]})]})}function wQ({art:t,px:r,className:a="",priority:n=!1}){return(0,ey.jsx)(tU.default,{src:t,alt:"","aria-hidden":!0,width:r,height:r,quality:92,priority:n,draggable:!1,className:`pointer-events-none object-contain select-none ${a}`})}let w0=[["Generic, one-size predictions","Read from your D1, D9 and D10"],["Future only","Past, present and future"],["No remedies","Clear, practical remedies"],["A static PDF you read once","Ask Vaani follow-ups anytime after"]],w1=[{name:"Rakesh, 34",line:"The reading finally explained why my career kept stalling, and what to do about it."},{name:"Neha, 28",line:"The marriage timing window was specific and it matched. I felt genuinely understood."}],w2=[["1L+","reports read"],["4.8","avg rating"],["Minutes","to prepare"],["Your chart","not a template"]],w5=[["Astrological depth","Planetary positions, strengths and transits across your divisional charts."],["Life themes","What your chart says about this area, in plain language."],["Practical remedies","Specific, doable steps and the timing to act on them."]],w4="repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--mlh-plum-400) 45%, transparent) 0 0.16deg, transparent 0.16deg 5deg)",w3="radial-gradient(circle, transparent calc(50% - 6px), #000 calc(50% - 6px))";function w6({report:t,credits:r,unlocked:a,status:n,etaSeconds:i,unlockedAt:o,onBack:s,onGet:l,onRead:d,onAsk:c,accountReady:u=!0,packCurrency:h}){let p=a.includes(t.id),m=p&&"ready"!==n,[f,x]=(0,ek.useState)(null),[g,y]=(0,ek.useState)(!1),{pct:b,label:v}=wP({active:m,etaSeconds:i,startedAt:o}),w=u?p?g?"Openingâ¦":"Read your report":r>0?"Unlock this report":"Get this report":"Checking your accountâ¦",k=m?(0,ey.jsx)(wO,{pct:b,label:v,note:"You can leave this page: it keeps preparing."}):(0,ey.jsxs)("button",{onClick:()=>{if(!m&&!g&&u)if((0,eb.track)("REPORT_CTA_CLICKED_WEB_EVENT",{report_id:t.id,owned:
122p,credits:r}),p){let t=d?.();t&&(y(!0),t.finally(()=>y(!1)))}else l(t.id)},disabled:g||!u,"aria-busy":g||!u,className:`mlh-cta-plum inline-flex items-center gap-2 rounded-full px-7 py-3.5 text-[15px] font-bold text-white ${g||!u?"cursor-wait opacity-80":"cursor-pointer"}`,children:[(g||!u)&&(0,ey.jsx)(e8.Loader2,{size:15,className:"animate-spin"}),w," ",u&&!p&&(0,ey.jsx)(vj,{size:16})]}),j=p?"Yours to re-read whenever you like":r>0?`Uses 1 of your ${r} report credits`:(0,ev.isRupees)(h)?"Unlock with any report pack · from â¹1,424":"Unlock with any report pack";return(0,ey.jsxs)("div",{className:"relative flex-1 overflow-y-auto",children:[(0,ey.jsx)("div",{"aria-hidden":!0,className:"mlh-grid-field pointer-events-none sticky top-0 -mb-[100vh] h-screen"}),(0,ey.jsxs)("div",{className:e5.PAGE_FRAME,children:[(0,ey.jsxs)(bO.default,{href:"/reports",prefetch:!1,onClick:t=>{t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||(t.preventDefault(),s())},className:"text-mlh-faint hover:text-mlh-plum-300 mlh-in flex cursor-pointer items-center gap-2.5 font-mono text-[10px] tracking-[0.2em] uppercase transition [--mlh-in-delay:40ms] [--mlh-in-y:-6px]",children:[(0,ey.jsx)("span",{children:"â"})," All reports"]}),(0,ey.jsxs)("div",{className:"border-mlh-plum-400/40 mlh-in relative mt-4 overflow-hidden rounded-3xl border bg-[radial-gradient(120%_140%_at_80%_6%,color-mix(in_srgb,var(--mlh-plum)_34%,transparent),color-mix(in_srgb,var(--mlh-plum)_10%,transparent)_44%,var(--mlh-bg)_80%)] shadow-[0_30px_80px_rgba(0,0,0,.6),inset_0_1px_0_rgba(255,255,255,.06)] [--mlh-in-delay:90ms]",children:[(0,ey.jsx)("div",{"aria-hidden":!0,className:"border-mlh-plum-400/25 mlh-ring-spin pointer-events-none absolute -top-[180px] -right-[180px] h-[600px] w-[600px] rounded-full border border-dashed [--mlh-ring-dur:260s]"}),(0,ey.jsx)("div",{"aria-hidden":!0,style:{backgroundImage:w4,maskImage:w3,WebkitMaskImage:w3},className:"mlh-ring-spin-rev pointer-events-none absolute -top-[220px] -right-[220px] h-[720px] w-[720px] rounded-full opacity-45 [--mlh-ring-dur:460s]"}),(0,ey.jsxs)("div",{className:"relative flex flex-wrap items-center gap-9 px-7 pt-8 pb-7 sm:px-9",children:[(0,ey.jsxs)("div",{className:"min-w-[min(300px,100%)] flex-1",children:[(0,ey.jsxs)("div",{className:"text-mlh-plum-300 font-mono text-[9.5px] tracking-[0.24em] uppercase",children:["Premium Vedic reading · ",gX(t.id)]}),(0,ey.jsx)("h1",{className:"mt-3 bg-[linear-gradient(96deg,#fff_8%,var(--mlh-plum-300)_54%,var(--mlh-plum-500)_96%)] bg-clip-text font-serif text-[48px] leading-none tracking-[-0.025em] text-transparent sm:text-[58px]",children:t.name}),(0,ey.jsx)("div",{className:"mt-3.5 h-px w-[110px] bg-[linear-gradient(90deg,var(--mlh-plum-400),transparent)]"}),(0,ey.jsx)("p",{className:"quick-answer text-mlh-text mt-3.5 max-w-[600px] text-[17px] leading-[1.5] text-pretty",children:t.quick}),(0,ey.jsxs)("div",{className:"mt-5 flex flex-wrap items-center gap-3",children:[k,c&&!p&&(0,ey.jsx)("button",{onClick:()=>{(0,eb.track)("ASK_HANDOFF_CLICKED_WEB_EVENT",{from:"reports",id:t.id}),c()},className:"border-mlh-border-hi text-mlh-text hover:border-mlh-plum-400/60 hover:text-mlh-plum-300 cursor-pointer rounded-full border px-7 py-3.5 text-[15px] font-semibold transition",children:"Ask Vaani first"})]}),!m&&(0,ey.jsx)("div",{className:"text-mlh-faint mt-4 font-mono text-[10px] tracking-[0.16em] uppercase",children:j})]}),(0,ey.jsxs)("div",{className:"border-mlh-plum-400/50 relative flex h-[236px] w-[180px] flex-none items-center justify-center overflow-hidden rounded-2xl border bg-[linear-gradient(165deg,color-mix(in_srgb,var(--mlh-plum)_40%,transparent),var(--mlh-surface)_62%)] shadow-[0_24px_56px_rgba(0,0,0,.6),inset_0_0_50px_color-mix(in_srgb,var(--mlh-plum)_18%,transparent)]",children:[(0,ey.jsx)("span",{className:"border-mlh-plum-400/25 absolute inset-2 rounded-xl border"}),(0,ey.jsx)("span",{"aria-hidden":!0,className:"border-mlh-plum-400/20 mlh-ring-spin-rev absolute h-[200px] w-[200px] rounded-full border border-dashed [--mlh-ring-dur:120s]"}),(0,ey.jsx)("span",{className:"border-mlh-plum-400/35 relative grid h-[74px] w-[74px] place-items-center overflow-hidden rounded-[22px] border",children:(0,ey.jsx)(wQ,{art:t.art,px:
12252,priority:!0})})]})]}),(0,ey.jsx)("div",{className:"border-mlh-plum-400/20 bg-mlh-bg/35 relative grid grid-cols-2 border-t sm:grid-cols-[repeat(auto-fit,minmax(150px,1fr))]",children:w2.map(([t,r])=>(0,ey.jsxs)("div",{className:"border-mlh-plum-400/12 border-r border-b px-5 py-4 last:border-r-0 sm:border-b-0",children:[(0,ey.jsx)("div",{className:"font-sans text-[22px] leading-none text-white",children:t}),(0,ey.jsx)("div",{className:"text-mlh-faint mt-1.5 font-mono text-[9px] tracking-[0.2em] uppercase",children:r})]},r))})]}),(0,ey.jsxs)("h2",{className:"mt-10 font-serif text-[30px] leading-none text-white sm:text-[34px]",children:["What's inside your ",t.name," reading"]}),(0,ey.jsx)("div",{className:"mt-4.5 grid grid-cols-[repeat(auto-fit,minmax(280px,1fr))] gap-3.5",children:w5.map(([t,r],a)=>(0,ey.jsxs)("div",{className:"border-mlh-plum-500/20 mlh-card-plum-soft mlh-corner-glow hover:border-mlh-plum-400/50 relative overflow-hidden rounded-2xl border px-6 py-5 transition duration-200 ease-out [--mlh-glow-size:180px] [--mlh-glow-top:-60px] hover:-translate-y-[3px]",children:[(0,ey.jsx)("div",{className:"border-mlh-plum-400/35 bg-mlh-plum-500/12 text-mlh-plum-300 grid h-8 w-8 place-items-center rounded-[10px] border font-mono text-[10px] tracking-[0.1em]",children:String(a+1).padStart(2,"0")}),(0,ey.jsx)("div",{className:"mt-3 font-serif text-[19px] leading-tight text-white",children:t}),(0,ey.jsx)("p",{className:"text-mlh-muted mt-1.5 text-[14px] leading-snug text-pretty",children:r})]},t))}),(0,ey.jsx)("h2",{className:"mt-10 font-serif text-[30px] leading-none text-white sm:text-[34px]",children:"Why this beats a generic report"}),(0,ey.jsxs)("div",{className:"border-mlh-plum-500/20 mt-4.5 overflow-hidden rounded-2xl border",children:[(0,ey.jsxs)("div",{className:"bg-mlh-plum/10 text-mlh-faint grid grid-cols-2 font-mono text-[9.5px] tracking-[0.2em] uppercase",children:[(0,ey.jsx)("div",{className:"px-5 py-3.5",children:"Other reports"}),(0,ey.jsx)("div",{className:"text-mlh-plum-300 px-5 py-3.5",children:"Melooha"})]}),w0.map(([t,r],a)=>(0,ey.jsxs)("div",{className:"border-mlh-plum-500/12 grid grid-cols-2 border-t",children:[(0,ey.jsxs)("div",{className:"text-mlh-muted flex items-baseline gap-3 px-5 py-3.5 text-[14.5px]",children:[(0,ey.jsx)("span",{className:"text-mlh-faint",children:"â"})," ",t]}),(0,ey.jsxs)("div",{className:"text-mlh-text bg-mlh-plum/[0.07] flex items-baseline gap-3 px-5 py-3.5 text-[14.5px]",children:[(0,ey.jsx)("span",{className:"text-mlh-success",children:"â"})," ",r]})]},a))]}),(0,ey.jsxs)("div",{className:"border-mlh-plum-400/38 border-l-mlh-plum-400/80 mlh-card-plum-rail mt-7 flex flex-wrap items-center gap-5 rounded-2xl border border-l-[3px] px-6 py-5",children:[(0,ey.jsxs)("div",{className:"min-w-[280px] flex-1",children:[(0,ey.jsx)("div",{className:"font-serif text-[21px] leading-tight text-white",children:"It doesn't end at the report"}),(0,ey.jsx)("p",{className:"text-mlh-muted mt-1.5 text-[14.5px] leading-snug text-pretty",children:"Unlike a one-time PDF, you can keep asking Vaani about this reading, follow-ups, what-ifs, timing, for as long as you like."})]}),c&&(0,ey.jsx)("button",{onClick:()=>{(0,eb.track)("ASK_HANDOFF_CLICKED_WEB_EVENT",{from:"reports",id:t.id}),c()},className:"border-mlh-plum-400/55 text-mlh-plum-300 hover:bg-mlh-plum/20 flex-none cursor-pointer rounded-full border px-6 py-3 text-[15px] font-semibold transition",children:"Ask Vaani"})]}),(0,ey.jsx)("h2",{className:"mt-10 font-serif text-[30px] leading-none text-white sm:text-[34px]",children:"What readers say"}),(0,ey.jsx)("div",{className:"mt-4.5 grid grid-cols-[repeat(auto-fit,minmax(320px,1fr))] gap-3.5",children:w1.map(t=>(0,ey.jsxs)("div",{className:"border-mlh-plum-500/18 bg-mlh-plum/[0.04] hover:border-mlh-plum-400/42 relative overflow-hidden rounded-2xl border px-6 py-5 transition",children:[(0,ey.jsx)("span",{"aria-hidden":!0,className:"text-mlh-plum-400/10 pointer-events-none absolute top-1 right-4 font-serif text-[110px] leading-none select-none",children:"â"}),(0,ey.jsx)("div",{className:"text-mlh-amber font-symbols relative text-[13px] tracking-[0.34em]",children:"â
â
â
â
â
"}),(0,ey.jsxs)("p",{className:"text-mlh-text relative mt-3 font-sans text-[19px] leading-[1.5] text-pretty italic",children:["â",t.line,"â"]}),(0,ey.jsx)("div",{className:"text-mlh-plum-400 relative mt-3.5 font-mono text-[9.5px] tracking-[0.2em] uppercase",children:t.name})]},t.name))}),(0,ey.jsx)("h2",{className:"mt-10 font-serif text-[30px] leading-none text-white sm:text-[34px]",children:"Frequently asked"}),(0,ey.jsx)("div",{className:"mt-4.5 flex flex-col gap-2.5",children:gq.map((r,a)=>{let n=f===a;return(0,ey.jsxs)("button",{onClick:()=>{n||(0,eb.track)("REPORT_FAQ_OPENED_WEB_EVENT",{report_id:t.id,index:a}),x(n?null:a)}
122,className:`cursor-pointer rounded-2xl border px-6 py-4 text-left transition ${n?"border-mlh-plum-400/45 mlh-card-plum-soft":"border-mlh-plum-500/18 bg-mlh-surface hover:border-mlh-plum-400/35"}`,children:[(0,ey.jsxs)("div",{className:"flex items-center justify-between gap-4",children:[(0,ey.jsx)("span",{className:"font-serif text-[18px] leading-tight text-white",children:r.q}),(0,ey.jsx)(wR.Plus,{size:16,className:`text-mlh-plum-400 shrink-0 transition-transform duration-200 ${n?"rotate-45":""}`})]}),n&&(0,ey.jsx)("p",{className:"text-mlh-muted mt-3 text-[14.5px] leading-relaxed text-pretty",children:r.a})]},a)})}),(0,ey.jsxs)("div",{className:"border-mlh-plum-400/45 relative mt-11 overflow-hidden rounded-3xl border bg-[radial-gradient(120%_170%_at_50%_108%,color-mix(in_srgb,var(--mlh-plum)_42%,transparent),color-mix(in_srgb,var(--mlh-plum)_12%,transparent)_46%,var(--mlh-bg))] px-8 pt-12 pb-10 text-center shadow-[0_30px_80px_rgba(0,0,0,.6),inset_0_1px_0_rgba(255,255,255,.05)]",children:[(0,ey.jsx)("div",{"aria-hidden":!0,className:"border-mlh-plum-400/22 mlh-ring-spin pointer-events-none absolute -bottom-[380px] left-1/2 h-[760px] w-[760px] -translate-x-1/2 rounded-full border border-dashed [--mlh-ring-dur:300s]"}),(0,ey.jsx)("div",{"aria-hidden":!0,style:{backgroundImage:w4,maskImage:w3,WebkitMaskImage:w3},className:"mlh-ring-spin-rev pointer-events-none absolute -bottom-[440px] left-1/2 h-[880px] w-[880px] -translate-x-1/2 rounded-full opacity-45 [--mlh-ring-dur:500s]"}),(0,ey.jsx)("div",{"aria-hidden":!0,className:"animate-mlh-glow pointer-events-none absolute -bottom-6 left-1/2 h-[180px] w-[340px] -translate-x-1/2 rounded-[50%] bg-[radial-gradient(circle,color-mix(in_srgb,var(--mlh-plum)_55%,transparent),transparent_70%)] blur-[28px]"}),(0,ey.jsxs)("h2",{className:"relative mx-auto max-w-[640px] font-serif text-[36px] leading-[1.1] tracking-[-0.018em] text-pretty text-white sm:text-[44px]",children:["Your chart already holds",(0,ey.jsx)("br",{}),(0,ey.jsx)("span",{className:"bg-[linear-gradient(96deg,#fff,var(--mlh-plum-300)_55%,var(--mlh-plum-500))] bg-clip-text text-transparent",children:"the answer"})]}),(0,ey.jsx)("p",{className:"text-mlh-muted relative mt-3 text-[17px]",children:m?`Your ${t.name} reading is being prepared. This page opens it the moment it is ready.`:`Unlock your ${t.name} reading and read it in minutes.`}),(0,ey.jsxs)("div",{className:"relative mt-6 flex flex-wrap items-center justify-center gap-3",children:[k,c&&(0,ey.jsx)("button",{onClick:()=>{(0,eb.track)("ASK_HANDOFF_CLICKED_WEB_EVENT",{from:"reports",id:t.id}),c()},className:"border-mlh-border-hi text-mlh-text hover:border-mlh-plum-400/60 hover:text-mlh-plum-300 cursor-pointer rounded-full border px-7 py-3.5 text-[15px] font-semibold transition",children:"Ask Vaani a question first"})]}),(0,ey.jsxs)("div",{className:"text-mlh-faint relative mt-6 flex flex-wrap items-center justify-center gap-x-5 gap-y-2 font-mono text-[10px] tracking-[0.18em] uppercase",children:[(0,ey.jsx)("span",{children:"Reviewed by Dr. Vineeta Chandrashekhar Phatak · Chief Astrologer"}),(0,ey.jsx)("span",{className:"bg-mlh-plum-400/50 h-[3px] w-[3px] rounded-full"}),(0,ey.jsx)("span",{children:"Read it in minutes"}),(0,ey.jsx)("span",{className:"bg-mlh-plum-400/50 h-[3px] w-[3px] rounded-full"}),(0,ey.jsx)("span",{children:"Ask Vaani anytime after"})]})]})]})]})}function w8(t){return`<!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><title>${t} Report | Melooha</title> 123<style> 124:root{--bg:#0F090C;--surface:#12131C;--border:#252637;--plum:#811756;--plum3:#CDA2BB;--amber:#FC9918;--text:#E7E6E7;--muted:#9F9D9E;--faint:#6F6B6D;--white:#fff} 125*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-family:Inter,system-ui,sans-serif;line-height:1.7} 126.wrap{max-width:760px;margin:0 auto;padding:56px 22px 90px} 127.brand{display:flex;align-items:center;gap:10px;margin-bottom:36px} 128.logo{width:34px;height:34px;border-radius:10px;background:linear-gradient(135deg,#9A4578,#4D0E34);display:flex;align-items:center;justify-content:center;color:#fff;font-weight:700} 129.brand span{font-weight:700;font-size:18px;color:var(--white)} 130.eyebrow{font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:var(--plum3);margin-bottom:6px} 131h1{font-size:34px;margin:0 0 10px;color:var(--white)} 132.meta{color:var(--faint);font-size:13px;margin-bottom:34px} 133h2{font-size:20px;color:var(--white);margin:34px 0 10px} 134p{color:var(--muted);font-size:15px;margin:0 0 12px} 135.card{background:var(--surface);border:1px solid var(--border);border-radius:16px;padding:20px;margin:14px 0} 136.pill{display:inline-block;background:rgba(129,23,86,.2);color:var(--plum3);border-radius:999px;padding:3px 10px;font-size:12px;font-weight:600;margin-right:6px} 137.foot{margin-top:48px;color:var(--faint);font-size:12px;text-align:center;border-top:1px solid var(--border);padding-top:20px} 138</style></head><body><div class="wrap"> 139<div class="brand"><div class="logo">M</div><span>Melooha</span></div> 140<div class="eyebrow">Personalised Vedic report</div> 141<h1>${t}</h1> 142<div class="meta">Prepared from your birth chart \xb7 this is a sample layout for the prototype</div> 143<h2>Overview</h2> 144<p>This section reads your chart across the Rasi, Navamsa and Dasamsa, and sets out the core pattern for this area of your life in plain language.</p> 145<div class="card"><span class="pill">Rasi</span><span class="pill">Navamsa</span><span class="pill">Dasamsa</span>
145<p style="margin-top:12px">Your chart shows a steady, growth-led pattern here, strongest through the windows noted below.</p></div> 146<h2>Key timings</h2> 147<p>The most supportive windows, with the exact dates that matter, so you know when to act and when to wait.</p> 148<h2>What to do</h2> 149<p>Clear, practical remedies and next steps, matched to your chart, that you can begin now.</p> 150<div class="card"><p style="margin:0">This is a placeholder for the full generated report. In production this renders your real reading and is available as a downloadable PDF.</p></div> 151<div class="foot">\xa9 Melooha \xb7 Vedic astrology, read from your own chart.</div> 152</div></body></html>`}let w9={up:5,down:1},w7=t=>`mlh:report-verdict:${t}`;function ke({item:t,userId:r,className:a="",style:n,readyLabel:i="Ready"}){let o=gK(t.key),s=function(t){for(let r of gV){let a=r.items.find(r=>r.id===t);if(a)return a.art}}(t.key),[l,d]=(0,ek.useState)(!1),[c,u]=(0,ek.useState)(null),[h,p]=(0,ek.useState)(null),[m,f]=(0,ek.useState)(null),[x,g]=(0,ek.useState)(!1),[y,b]=(0,ek.useState)(""),[v,w]=(0,ek.useState)(!1),[k,j]=(0,ek.useState)(null),N=(0,ek.useId)(),_=!!(r&&t.generationId),E="ready"===t.status;(0,ek.useEffect)(()=>{_&&p(function(t){if(null==t)return null;try{let r=window.localStorage.getItem(w7(t));return"up"===r||"down"===r?r:null}catch{return null}}(t.generationId))},[_,t.generationId]),(0,ek.useEffect)(()=>{if(!m)return;let t=window.setTimeout(()=>f(null),2200);return()=>window.clearTimeout(t)},[m]);let{pct:S}=wP({active:!E,etaSeconds:t.etaSeconds,startedAt:t.unlockedAt}),C=async a=>{if((0,eb.track)("REPORT_READ_CLICKED_WEB_EVENT",{report_id:t.key,download:a}),!_){let r=w8(t.name);a?bs(r,`${t.name} Report.html`):bo(r);return}let n=t.reportUrl??null,i=null;if(!n){d(!0),u(null);try{let a=await (0,is.fetchUnlockedReport)(r,t.generationId,t.name);n=a.url,i=a.html}catch(r){u((0,t3.resolveNotice)("report.open-failed",{subject:t.name,cause:r}).text),d(!1);return}d(!1)}if(n)if(a){var o,s;let r,a;o=n,s=t.name,r=`/api/reports/download?url=${encodeURIComponent(o)}&name=${encodeURIComponent(s)}`,(a=document.createElement("a")).href=r,a.download=`${s} Report.pdf`,document.body.appendChild(a),a.click(),a.remove()}else window.open(n,"_blank","noopener,noreferrer");else i?a?bs(i,`${t.name} Report.html`):bo(i):u((0,t3.resolveNotice)("report.not-ready",{subject:t.name}).text)},T=(r,a)=>(0,is.sendReportFeedback)(t.generationId,r,a),A=async r=>{if(r!==h&&((0,eb.track)("REPORT_RATED_WEB_EVENT",{report_id:t.key,value:r}),p(r),j(null),"down"===r?(f(null),g(!0)):(g(!1),f("Thanks")),_))try{await T(w9[r]);var a=t.generationId;try{r?window.localStorage.setItem(w7(a),r):window.localStorage.removeItem(w7(a))}catch{}}catch{p(h),f(null),g(!1)}},I=async()=>{let r=y.trim();if(!r)return void g(!1);if((0,eb.track)("REPORT_NOTE_SUBMITTED_WEB_EVENT",{report_id:t.key,length:r.length}),!_){g(!1),b(""),f("Noted");return}w(!0),j(null);try{await T(w9.down,r),g(!1),b(""),f("Noted")}catch{j("That did not send.")}finally{w(!1)}};return(0,ey.jsxs)("div",{style:n,className:`group border-mlh-plum mlh-card-plum-lit mlh-corner-glow mlh-corner-ticks hover:border-mlh-plum-400 relative flex flex-col overflow-hidden rounded-2xl border px-5 pt-[18px] pb-4 transition duration-200 ease-out [--mlh-glow-size:170px] [--mlh-glow-top:-50px] hover:-translate-y-[4px] hover:shadow-[0_18px_42px_rgba(0,0,0,.5)] ${a}`,children:[(0,ey.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[s?(0,ey.jsx)("span",{className:"border-mlh-plum-400/25 group-hover:border-mlh-plum-400/55 relative grid h-[46px] w-[46px] flex-none place-items-center overflow-hidden rounded-[14px] border bg-white transition duration-200 group-hover:bg-white/[0.2]",children:(0,ey.jsx)(wQ,{art:s,px:28,className:"transition duration-200 ease-out group-hover:scale-110"})}):(0,ey.jsx)("span",{className:"border-mlh-plum-500/30 mlh-plate-lit text-mlh-plum-300 group-hover:border-mlh-plum-400/55 group-hover:mlh-plate-lit-hi group-hover:text-mlh-plum-100 grid h-[46px] w-[46px] flex-none place-items-center rounded-[14px] border transition duration-200",children:(0,ek.createElement)(function(t){if("artha"===t)return g$;for(let r of gV){let a=r.items.find(r=>r.id===t);if(a)return a.icon}return ti.FileText}(t.key),{size:24})}),E?(0,ey.jsx)("span",{className:"bg-mlh-plum shrink-0 rounded-full px-2.5 py-1 font-mono text-[8.5px] font-medium tracking-[0.2em] text-white uppercase",children:i}):(0,ey.jsxs)("span",{className:"bg-mlh-amber/[0.16] border-mlh-amber/45 text-mlh-amber inline-flex shrink-0 items-center gap-1.5 rounded-full border px-2.5 py-1 font-mono text-[8.5px] font-medium tracking-[0.2em] uppercase",children:[(0,ey.jsx)("span",{className:"bg-mlh-amber animate-mlh-twinkle h-[5px] w-[5px] rounded-full"}),"Preparing"]})]}),(0,ey.jsx)("div",{className:"mt-3.5 font-serif text-[22px] leading-[1.2] text-white",children:t.name}),o?.blurb?(0,ey.jsx)("p",{className:"text-mlh-muted mt-1.5 flex-1 text-[13.5px] leading-[1.45] text-pretty",children:o.blurb}):(0,ey.jsx)("div",{className:"flex-1"}),(0,ey.jsx)("div",{className:"border-mlh-plum-500/15 mt-4 flex items-center justify-between gap-2 border-t pt-3 font-mono text-[9.5px] tracking-[0.18em] uppercase",children:E?(0,ey.jsxs)(ey.Fragment,{children:[(0,ey.jsxs)("div",{className:"flex items-center gap-3.5",children:[(0,ey.jsxs)("button",{type:"button",onClick:()=>void C(!1),disabled:l,className:"text-mlh-plum-300 hover:text-mlh-plum-100 flex items-center gap-1.5 transition disabled:opacity-60",children:[l?"Openingâ¦":"View",!l&&(0,ey.jsx)(vU.ArrowUpRight,{size:12})]}),(0,ey.jsxs)("button",{type:"button",onClick:()=>void C(!0),disabled:l,className:"text-mlh-plum-400 hover:text-mlh-plum-200 flex items-center gap-1.5 transition disabled:opacity-60",children:[(0,ey.jsx)(vu,{size:12})," PDF"]})]}),m?(0,ey.jsx)("span",{role:"status",className:"text-mlh-plum-300 mlh-in",children:m}):(0,ey.jsxs)("span",{className:"flex items-center gap-0.5",children:[(0,ey.jsx)("button",{type:"button",onClick:()=>void A("up"),"aria-label":"This report was helpful","aria-pressed":"up"===h,className:`hover:text-mlh-plum-300 rounded-full p-1 transition ${"up"===h?"text-mlh-plum-300":"text-mlh-faint"}`,children:(0,ey.jsx)(t$,{size:12,fill:"up"===h?"currentColor":"none"})}),(0,ey.jsx)("button",{type:"button",onClick:()=>void A("down"),"aria-label":"This report missed the mark","aria-pressed":"down"===h,className:`hover:text-mlh-plum-300 rounded-full p-1 transition ${"down"===h?"text-mlh-plum-300":"text-mlh-faint"}`,children:(0,ey.jsx)(tM,{size:12,fill:"down"===h?"currentColor":"none"})})]})]}):c?(0,ey.jsx)("span",{className:"text-mlh-amber flex items-center gap-1.5 normal-case",children:c}):(0,ey.jsx)(wD,{pct:S})}),x&&(0,ey.jsxs)("div",{className:"border-mlh-plum-500/15 mt-3 border-t pt-3",children:[(0,ey.jsx)("label",{htmlFor:N,className:"text-mlh-plum-300 font-mono text-[9.5px] tracking-[0.18em] uppercase",children:"What missed the mark?"}),(0,ey.jsx)("textarea",{id:N,autoFocus:!0,rows:2,maxLength:1e3,value:y,onChange:t=>b(t.target.value),onKeyDown:t=>{(t.metaKey||t.ctrlKey)&&"Enter"===t.key&&I()},placeholder:"A line is plenty.",className:"border-mlh-plum-500/25 bg-mlh-surface/70 text-mlh-text placeholder:text-mlh-faint focus:border-mlh-plum-400/60 mt-2 w-full resize-none rounded-xl border px-3 py-2 text-[13px] leading-[1.4] transition outline-none"}),(0,ey.jsxs)("div",{className:"mt-2 flex items-center justify-between gap-2",children:[(0,ey.jsx)("button",{type:"button",onClick:()=>g(!1),className:"text-mlh-faint hover:text-mlh-muted font-mono text-[9.5px] tracking-[0.18em] uppercase transition",children:"Skip"}),(0,ey.jsx)("button",{type:"button",onClick:()=>void I(),disabled:v||!y.trim(),className:`rounded-full px-4 py-1.5 text-[11px] font-bold transition ${v||!y.trim()?"bg-mlh-surface-hi text-mlh-faint":"mlh-cta-plum text-white"}`,children:v?"Sendingâ¦":"Send"})]}
152),k&&(0,ey.jsx)("p",{className:"text-mlh-amber mt-2 text-[12px]",children:k})]})]})}function kt({label:t}){return(0,ey.jsxs)("div",{className:"mlh-in flex items-center gap-4 [--mlh-in-delay:180ms]",children:[(0,ey.jsx)("span",{className:"text-mlh-plum-300 font-mono text-[9.5px] tracking-[0.24em] whitespace-nowrap uppercase",children:t}),(0,ey.jsx)("span",{className:"h-px flex-1 bg-[linear-gradient(90deg,color-mix(in_srgb,var(--mlh-plum-400)_55%,transparent),transparent)]"})]})}function kr({tab:t,onChange:r,mineCount:a}){return(0,ey.jsx)("div",{className:"border-mlh-plum-500/25 bg-mlh-surface/60 mlh-in mt-7 inline-flex rounded-full border p-1 [--mlh-in-delay:150ms]",children:[{id:"all",label:"All reports"},{id:"mine",label:"Your reports"}].map(n=>{let i=t===n.id;return(0,ey.jsxs)("button",{onClick:()=>{(0,eb.track)("REPORTS_TAB_CHANGED_WEB_EVENT",{tab:n.id}),r(n.id)},className:`inline-flex items-center gap-2 rounded-full px-5 py-2 text-[13px] font-semibold transition duration-200 ${i?"mlh-cta-plum text-white":"text-mlh-muted hover:text-mlh-text"}`,children:[n.label,"mine"===n.id&&a>0&&(0,ey.jsx)("span",{className:`rounded-full px-1.5 py-0.5 font-mono text-[9px] tabular-nums ${i?"bg-white/20 text-white":"bg-mlh-plum-500/20 text-mlh-plum-300"}`,children:a})]},n.id)})})}function ka(){return(0,ey.jsxs)("div",{className:"border-mlh-plum-500/15 bg-mlh-surface/40 flex flex-col rounded-2xl border px-5 pt-[18px] pb-4",children:[(0,ey.jsxs)("div",{className:"flex items-start justify-between",children:[(0,ey.jsx)("div",{className:"bg-mlh-plum-500/15 h-[46px] w-[46px] animate-pulse rounded-[14px]"}),(0,ey.jsx)("div",{className:"bg-mlh-plum-500/10 h-4 w-12 animate-pulse rounded-full"})]}),(0,ey.jsx)("div",{className:"bg-mlh-plum-500/15 mt-4 h-5 w-3/4 animate-pulse rounded"}),(0,ey.jsx)("div",{className:"bg-mlh-plum-500/10 mt-2.5 h-3 w-full animate-pulse rounded"}),(0,ey.jsx)("div",{className:"bg-mlh-plum-500/10 mt-2 h-3 w-2/3 animate-pulse rounded"}),(0,ey.jsxs)("div",{className:"border-mlh-plum-500/10 mt-5 flex items-center justify-between border-t pt-3.5",children:[(0,ey.jsx)("div",{className:"bg-mlh-plum-500/10 h-2.5 w-16 animate-pulse rounded"}),(0,ey.jsx)("div",{className:"bg-mlh-plum-500/10 h-2.5 w-10 animate-pulse rounded"})]})]})}function kn(){return(0,ey.jsxs)("div",{"aria-hidden":!0,children:[(0,ey.jsxs)("div",{className:"border-mlh-plum-500/15 bg-mlh-surface/40 mt-7 flex flex-wrap items-center justify-between gap-5 rounded-2xl border px-6 py-5",children:[(0,ey.jsxs)("div",{className:"flex items-center gap-3.5",children:[(0,ey.jsx)("div",{className:"bg-mlh-plum-500/15 h-9 w-11 animate-pulse rounded-lg"}),(0,ey.jsx)("div",{className:"bg-mlh-plum-500/10 h-4 w-44 animate-pulse rounded"})]}),(0,ey.jsxs)("div",{className:"flex gap-2.5",children:[(0,ey.jsx)("div",{className:"bg-mlh-plum-500/10 h-11 w-24 animate-pulse rounded-full"}),(0,ey.jsx)("div",{className:"bg-mlh-plum-500/15 h-11 w-40 animate-pulse rounded-full"})]})]}),(0,ey.jsxs)("div",{className:"mt-9",children:[(0,ey.jsx)("div",{className:"bg-mlh-plum-500/12 h-2.5 w-32 animate-pulse rounded"}),(0,ey.jsx)("div",{className:"mt-3.5 grid grid-cols-[repeat(auto-fill,minmax(248px,1fr))] gap-3",children:Array.from({length:6}).map((t,r)=>(0,ey.jsx)(ka,{},r))})]})]})}function ki({credits:t,unlocked:r,catalogue:a,history:n=[],userId:i,loading:o=!1,onOpenReport:s,onUnlockMany:l,onBuyReports:d}){let[c,u]=(0,ek.useState)("all"),[h,p]=(0,ek.useState)(!1),[m,f]=(0,ek.useState)([]),[x,g]=(0,ek.useState)(!1),y=()=>{m.length&&(0,eb.track)("REPORT_UNLOCK_CANCELLED_WEB_EVENT",{report_id:m.join(",")}),p(!1),f([]),g(!1)},b=1===t?"":"s",v=new Map(n.map(t=>[t.key,t]));return(0,ey.jsxs)("div",{className:"relative",children:[(0,ey.jsx)("div",{"aria-hidden":!0,className:"mlh-grid-field pointer-events-none sticky top-0 -mb-[100vh] h-screen"}),(0,ey.jsxs)("div",{className:e5.PAGE_FRAME,children:[(0,ey.jsx)("div",{className:"text-mlh-faint mlh-in font-mono text-[10px] tracking-[0.22em] [--mlh-in-delay:40ms] [--mlh-in-y:-6px]",children:"MELOOHA / REPORTS"}),(0,ey.jsx)("h1",{className:"mlh-in mt-3.5 font-serif text-[42px] leading-none tracking-[-0.015em] text-white [--mlh-in-delay:80ms] sm:text-[48px]",children:"Reports"}),(0,ey.jsx)("p",{className:"text-mlh-muted mlh-in mt-2.5 text-[15px] [--mlh-in-delay:120ms]",children:"Deep, one-time readings prepared from your full chart."}),o&&(0,ey.jsx)(kn,{}),!o&&(0,ey.jsxs)(ey.Fragment,{children:[n.length>0&&(0,ey.jsx)(kr,{tab:c,onChange:u,mineCount:n.length}),(0,ey.jsxs)("div",{className:"border-mlh-plum/35 mlh-card-plum-rail mlh-in mt-6 flex flex-wrap items-center justify-between gap-5 rounded-2xl border px-6 py-5 [--mlh-in-delay:160m
152s]",children:[0!==t||h?(0,ey.jsxs)("div",{className:"text-mlh-text flex items-baseline gap-3 text-[16px]",children:[(0,ey.jsx)("span",{className:"text-mlh-plum-300 font-sans text-[34px] leading-none",children:t}),(0,ey.jsx)("span",{children:h?`report${b} you can select`:`report${b} available to unlock`})]}):(0,ey.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,ey.jsx)("span",{className:"text-mlh-text font-serif text-[20px] leading-tight",children:"No report credits left"}),(0,ey.jsx)("span",{className:"text-mlh-muted text-[14px]",children:"Buy a pack to unlock any report below."})]}),(0,ey.jsx)("div",{className:"flex items-center gap-2.5",children:h?(0,ey.jsxs)(ey.Fragment,{children:[(0,ey.jsx)("button",{onClick:y,className:"border-mlh-border text-mlh-text hover:border-mlh-border-hi rounded-full border px-6 py-3 text-[14px] font-semibold transition",children:"Cancel"}),(0,ey.jsxs)("button",{onClick:()=>{if(m.length){(0,eb.track)("REPORT_UNLOCK_CONFIRMED_WEB_EVENT",{report_id:m.join(",")}),l(m),p(!1),f([]),g(!1);return}y()},disabled:!m.length,className:`rounded-full px-6 py-3 text-[14px] font-bold ${m.length?"mlh-cta-plum text-white":"bg-mlh-surface-hi text-mlh-faint"}`,children:["Unlock (",m.length,")"]})]}):(0,ey.jsxs)(ey.Fragment,{children:[t>0&&(0,ey.jsx)("button",{onClick:()=>{(0,eb.track)("REPORT_UNLOCK_CLICKED_WEB_EVENT",{report_id:"bulk",credits:t}),u("all"),p(!0),f([])},className:"border-mlh-plum-400/50 text-mlh-plum-300 hover:bg-mlh-plum/20 rounded-full border px-6 py-3 text-[14px] font-semibold transition",children:"Unlock"}),(0,ey.jsx)("button",{onClick:()=>{(0,eb.track)("BUY_REPORTS_CLICKED_WEB_EVENT",{placement:"reports_header"}),d()},className:"mlh-cta-plum rounded-full px-6 py-3 text-[14px] font-bold text-white",children:"Buy More Reports"})]})})]}),h&&x&&(0,ey.jsxs)("div",{className:"bg-mlh-amber/10 border-mlh-amber/40 text-mlh-amber mt-3 flex items-center gap-2 rounded-xl border px-4 py-2.5 text-[13px]",children:[(0,ey.jsx)(t8.AlertTriangle,{size:14})," You can select up to ",t," ","report",b," on this pack."]}),n.length>0&&"mine"===c?(0,ey.jsx)("div",{className:"mt-8 grid grid-cols-[repeat(auto-fill,minmax(248px,1fr))] gap-3",children:n.map(t=>(0,ey.jsx)(ke,{item:t,userId:i},t.key))}):(0,ey.jsx)(ey.Fragment,{children:(a??gV).map(a=>(0,ey.jsxs)("div",{className:"mt-8",children:[(0,ey.jsx)(kt,{label:a.cat}),(0,ey.jsx)("div",{className:"mt-3.5 grid grid-cols-[repeat(auto-fill,minmax(248px,1fr))] gap-3",children:a.items.map((a,n)=>{let o=r.includes(a.id),l=m.includes(a.id),d=v.get(a.id);return d?(0,ey.jsx)(ke,{item:d,userId:i,readyLabel:"Yours",className:"mlh-in [--mlh-in-y:8px]",style:e4(200+34*n)},a.id):(0,ey.jsxs)(bO.default,{href:gG(a.id),prefetch:!1,onClick:r=>{if(h){var n;r.preventDefault(),o||(n=a.id,m.includes(n)?(f(t=>t.filter(t=>t!==n)),g(!1)):m.length>=t?g(!0):f(t=>[...t,n]));return}r.metaKey||r.ctrlKey||r.shiftKey||r.altKey||(r.preventDefault(),o||((0,eb.track)("REPORT_OPENED_WEB_EVENT",{report_id:a.id}),s(a.id)))},style:e4(200+34*n),className:`group mlh-corner-glow mlh-corner-ticks mlh-in relative flex cursor-pointer flex-col overflow-hidden rounded-2xl border px-5 pt-[18px] pb-4 text-left transition duration-200 ease-out [--mlh-glow-size:170px] [--mlh-glow-top:-50px] [--mlh-in-y:8px] hover:-translate-y-[4px] hover:shadow-[0_18px_42px_rgba(0,0,0,.5)] ${o||l?"border-mlh-plum mlh-card-plum-lit":"border-mlh-plum-500/20 mlh-card-plum-soft hover:border-mlh-plum-400/55 hover:mlh-card-plum-lit"}`,children:[(0,ey.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,ey.jsx)("span",{className:"border-mlh-plum-400/25 group-hover:border-mlh-plum-400/55 relative grid h-[46px] w-[46px] flex-none place-items-center overflow-hidden rounded-[14px] border bg-white transition duration-200 group-hover:bg-white/[0.2]",children:(0,ey.jsx)(wQ,{art:a.art,px:28,className:"backdrop-blur-3xl transition duration-200 ease-out group-hover:scale-110"})}),h&&!o?(0,ey.jsx)("div",{className:`flex h-5 w-5 shrink-0 items-center justify-center rounded-full border-2 ${l?"bg-mlh-plum border-mlh-plum":"border-mlh-faint bg-transparent"}`,children:l&&(0,ey.jsx)(yw.Check,{size:11,className:"text-white"})}):a.tag&&!o&&(0,ey.jsx)("span",{className:`shrink-0 rounded-full px-2.5 py-1 font-mono text-[8.5px] font-medium tracking-[0.2em] uppercase ${"New"===a.tag?"bg-mlh-amber/[0.16] border-mlh-amber/45 text-mlh-amber border":"bg-mlh-plum text-white"}`,children:a.tag})]}),(0,ey.jsx)("div",{className:"mt-3.5 font-serif text-[22px] leading-[1.2] text-white",children:a.name}),(0,ey.jsx)("p",{className:"text-mlh-muted mt-1.5 flex-1 text-[13.5px] leading-[1.45] text-pretty",children:a.blurb}),(0,ey.jsxs)("div",{className:"border-mlh-plum-500/15 mt-4 flex items-center justify-between gap-2 border-t pt-3 font-mono text-[9.5px] tracking-[0.18em] uppercase",children:[o?(0,ey.jsxs)("span",{className:"text-mlh-plum-300 flex items-center gap-1.5",children:[(0,ey.jsx)(yw.Check,{size:11})," Unlocked"]}):(0,ey.jsxs)("span",{className:"text-mlh-faint flex items-center gap-1.5",children:[(0,ey.jsx)(ts,{size:10})," Locked"]}),!h&&(0,ey.jsxs)("span",{className:"text-mlh-plum-400 group-hover:text-mlh-plum-300 flex items-center gap-1.5 transition duration-200 group-hover:translate-x-0.5",children:["Open ",(0,ey.jsx)(vj,{size:11})]})]})]},a.id)})})]},a.cat))})]})]})]})}var ko=t.i(82328);let ks=[{title:"Company",links:[{label:"Join Us",href:bu("jobs")},{label:"Add a Review",href:bu("review")},{label:"Announcements",href:"/news"},{label:"Contact Us",href:bu("contact")}]},{title:"Help & Legal",links:[{label:"FAQs",href:bu("faq")},{label:"Privacy Policy",href:bn("privacy-policy")},{label:"Terms & Conditions",href:bn("terms-and-conditions")},{label:"Refund Policy",href:bn("refund-policy")},{label:"Disclaimer",href:bn("disclaimer")}]}],kl=["LinkedIn","Facebook","Instagram","X","YouTube","Quora"].flatMap(t=>e5.SOCIAL_LINKS.filter(r=>r.label===t)),kd=[{store:"App Store",href:e5.APP_STORE_URL,icon:ko.Apple},{store:"Play Store",href:e5.PLAY_STORE_URL,icon:ko.GooglePlay}];function kc({onOpen:t}){let r=r=>a=>{a.metaKey||a.ctrlKey||a.shiftKey||a.altKey||(a.preventDefault(),t(r))};return(0,ey.jsxs)("footer",{className:"bg-mlh-sidebar border-mlh-border border-t font-sans",children:[(0,ey.jsxs)("div",{className:"grid grid-cols-2 gap-x-6 gap-y-8 px-6 pt-9 pb-8 sm:px-10 lg:grid-cols-[minmax(0,1.4fr)_minmax(0,1fr)_minmax(0,1fr)_auto] lg:gap-x-8 lg:px-14 lg:pt-10 lg:pb-9 xl:px-20",children:[(0,ey.jsxs)("div",{className:"col-span-2 lg:col-span-1",children:[(0,ey.jsx)(bO.default,{href:"/",prefetch:!1,onClick:r("/"),"aria-label":"Melooha home",className:"mlh-focus-ring inline-block rounded text-white",children:(0,ey.jsx)(tY,{className:"h-10 w-auto"})}),(0,ey.jsx)("p",{className:"text-mlh-muted mt-3 text-[14px] leading-relaxed",children:"Worldâs Most Accurate Astrology Engine."}),(0,ey.jsx)("ul",{className:"mt-3 -ml-2 flex flex-wrap items-center gap-0.5",children:kl.map(({label:t,href:r,icon:a})=>(0,ey.jsx)("li",{children:(0,ey.jsx)("a",{href:r,target:"_blank",rel:"noopener noreferrer",onClick:()=>(0,eb.track)("SOCIAL_CLICKED_WEB_EVENT",{network:t}),title:t,"aria-label":`Melooha on ${t}`,className:"text-mlh-text/70 hover:bg-mlh-plum/15 hover:text-mlh-text mlh-focus-ring grid h-9 w-9 place-items-center rounded-lg transition",children:(0,ey.jsx)(a,{className:"h-[15p
152x] w-auto","aria-hidden":!0})})},t))})]}),ks.map(({title:t,links:a})=>(0,ey.jsxs)("nav",{"aria-label":t,children:[(0,ey.jsx)("p",{className:"text-mlh-faint text-[11.5px] font-semibold tracking-[0.14em] uppercase",children:t}),(0,ey.jsx)("ul",{className:"mt-4 space-y-2.5",children:a.map(({label:t,href:a})=>(0,ey.jsx)("li",{children:(0,ey.jsx)(bO.default,{href:a,prefetch:!1,onClick:r(a),className:"text-mlh-text/85 mlh-focus-ring rounded text-[14.5px] transition-colors hover:text-white",children:t})},a))})]},t)),(0,ey.jsxs)("div",{className:"col-span-2 lg:col-span-1 lg:flex lg:items-center lg:gap-3 lg:self-center lg:justify-self-end",children:[(0,ey.jsx)("img",{src:"/app-download-qr.svg",alt:"QR code to download the Melooha app",width:120,height:120,loading:"lazy",className:"hidden h-[120px] w-[120px] flex-none rounded-lg lg:block"}),(0,ey.jsx)("div",{className:"flex flex-wrap gap-2.5 lg:flex-col lg:gap-2",children:kd.map(({store:t,href:r,icon:a})=>(0,ey.jsxs)("a",{href:r,target:"_blank",rel:"noopener noreferrer",onClick:()=>(0,eb.track)("APP_DOWNLOAD_CLICKED_WEB_EVENT",{placement:"footer"}),"aria-label":`Download Melooha from the ${t}`,className:"bg-mlh-plum mlh-focus-ring flex w-[156px] items-center gap-2.5 rounded-lg px-3.5 py-2 transition hover:brightness-110 lg:h-14 lg:w-[172px] lg:gap-3 lg:px-4 lg:py-0",children:[(0,ey.jsx)(a,{className:"h-[22px] w-[22px] flex-none text-white lg:h-[26px] lg:w-[26px]"}),(0,ey.jsxs)("span",{className:"leading-tight",children:[(0,ey.jsx)("span",{className:"text-mlh-plum-100/75 block text-[11px] tracking-[0.02em] lg:text-[12px]",children:"Download From"}),(0,ey.jsx)("span",{className:"block text-[14.5px] font-semibold tracking-[-0.01em] text-white lg:text-[17px] lg:leading-[1.15]",children:t})]})]},t))})]})]}),(0,ey.jsxs)("div",{className:"bg-mlh-plum-800/40 text-mlh-plum-100 px-6 py-3 text-center text-[13px]",children:["© ",new Date().getFullYear()," Astroverse Technologies Private Limited"]})]})}let ku=[{sel:"#cm-ask",title:"Ask Vaani anything",body:"Ask about your own birth chart, career, love, money, timing. Your first question is free.",place:"below"},{sel:"#cm-toggle",title:"Learn unlimited astrology",body:"Switch to Astropedia for general astrology answers, always free and unlimited.",place:"below"},{sel:"#cm-nav-horoscopes",title:"Your daily Rashi horoscope",body:"Read a horoscope by your Vedic Moon sign, refreshed every day.",place:"right"},{sel:"#cm-nav-calculators",title:"Free calculators",body:"Kundli, matching, dosha and more, no sign-in needed.",place:"right"},{sel:"#cm-nav-reports",title:"Go deeper with Reports",body:"Unlock full personalised readings whenever you want more.",place:"right"}];function kh({onClose:t}){let r,[a,n]=(0,ek.useState)(0),[i,o]=(0,ek.useState)(null);if((0,ek.useEffect)(()=>{let r=a,i=null;for(;r<ku.length&&!(i=document.querySelector(ku[r].sel));)r++;if(!i)return void t();if(r!==a)return void n(r);let s=i,l=()=>{let t=s.getBoundingClientRect();o({top:t.top,left:t.left,width:t.width,height:t.height})};return l(),window.addEventListener("resize",l),()=>window.removeEventListener("resize",l)},[a]),!i)return null;let s=ku[a],l=a===ku.length-1,d=window.innerWidth,c=window.innerHeight;if("right"===s.place)r={top:Math.min(i.top,c-170),left:Math.min(i.left+i.width+14,d-280-12)};else{let t=Math.min(Math.max(12,i.left),d-280-12);r=i.top+i.height+170<c?{top:i.top+i.height+14,left:t}:{bottom:c-i.top+14,left:t}}return(0,ey.jsxs)(ey.Fragment,{children:[(0,ey.jsx)("div",{className:"fixed inset-0 z-40"}),(0,ey.jsx)("div",{className:"border-mlh-plum-400 pointer-events-none fixed z-40 rounded-xl border-2 shadow-[0_0_0_9999px_rgba(0,0,0,0.72)]",style:{top:i.top-6,left:i.left-6,width:i.width+12,height:i.height+12}}),(0,ey.jsxs)("div",{className:"bg-mlh-surface border-mlh-plum fixed z-50 rounded-2xl border p-4 shadow-[0_20px_50px_rgba(0,0,0,0.55)]",style:{...r,width:280},children:[(0,ey.jsx)("div",{className:"mb-1 text-[15px] font-bold text-white",children:s.title}),(0,ey.jsx)("p",{className:"text-mlh-muted mb-3 text-[13px] leading-snug",children:s.body}),(0,ey.jsxs)("div",{className:"flex items-center justify-between",children:[(0,ey.jsx)("div",{className:"flex gap-1",children:ku.map((t,r)=>(0,ey.jsx)("span",{className:`h-1.5 w-1.5 rounded-full ${r===a?"bg-mlh-plum-400":"bg-mlh-surface-hi"}`},r))}),(0,ey.jsxs)("div",{className:"flex items-center gap-3",children:[(0,ey.jsx)("button",{onClick:()=>{(0,eb.track)("WALKTHROUGH_DISMISSED_WEB_EVENT",{step:a,completed:!1}),t()},className:"text-mlh-faint text-[12px] font-medium",children:"Skip"}),(0,ey.jsx)("button",{onClick:()=>{l?((0,eb.track)("WALKTHROUGH_DISMISSED_WEB_EVENT",{step:a,completed:!0}),t()):((0,eb.track)("WALKTHROUGH_ADVANCED_WEB_EVENT",{step:a+1}),n(a+1))},className:"bg-mlh-plum rounded-lg px-3.5 py-1.5 text-[12px] font-bold text-white transition hover:brightness-110",children:l?"Done":"Next"})]})]})]})]})}let kp={"should i open a youtube channel according to my d10 chart?":{mirror:"This one has been on your mind for a
152while. Before I answer, let me read what your chart is actually saying right now.",context:["Moon in Karka","Jupiter Dasha","D10 favours public work","Jupiter transiting the 10th"],highlight:[10],chartCaption:"Look at the 10th house, lit up. That is where your career and public image live, and Jupiter is moving through it right now. That is the whole reason the timing works.",computing:["Reading your Rasi chart (D1), Moon in Karka","Checking your Dasamsa (D10), the career division","Cross-checking your Navamsa (D9)","Your running period: Jupiter major to 14 Aug 2027","Factoring current transits: Jupiter over your 10th house","Recalling your earlier question about going public"],answer:"Yes, and the timing is genuinely on your side right now. You are running your Jupiter major period until 14 August 2027, and Jupiter is currently transiting the tenth house of your chart, the part that governs career and how the public sees you. In your Dasamsa, the D10 division Vedic astrology reads for profession, that same Jupiter sits strong, which is why building something public suits you better than staying behind the scenes.\n\nThe part of you that keeps hesitating is real, and worth naming. Your Moon in Karka wants safety before exposure, so this has felt heavier than a simple yes or no. Your Navamsa backs the pattern too, and the current transit will not stay this supportive forever.\n\nThe cleanest window is between now and February 2027, with the strongest stretch from 12 November 2026 to 8 January 2027 while Jupiter holds its aspect on the tenth. My honest read: start now, keep it small and steady, and let it compound through that window. You do not need it perfect. You need it to exist while the sky is still helping.",astro:[{label:"Ascendant (Lagna)",value:"Karka (Cancer)"},{label:"Moon sign (Rashi)",value:"Karka (Cancer)"},{label:"Mahadasha / Antardasha",value:"Jupiter / Mercury, to 14 Aug 2027"},{label:"Rasi (D1)",value:"Jupiter transiting the 10th (career)"},{label:"Dasamsa (D10)",value:"Jupiter strong, favours public work"},{label:"Navamsa (D9)",value:"Supports the same pattern"},{label:"Current transit (Gochar)",value:"Jupiter aspecting the 10th to early 2027"},{label:"Strongest window",value:"12 Nov 2026 to 8 Jan 2027"}],followups:[{q:"If I start now, what timing gives it the best chance?",kind:"chart"},{q:"What should I watch out for while Mercury is running?",kind:"chart"},{q:"Does my D10 lean more to video or to writing?",kind:"chart"}],crosssell:{kind:"report",title:"Career",reportId:"career",blurb:"A full reading of your career path across the D1 and D10, the years that matter, and the exact windows to move."}},"when is the right time for me to get married?":{mirror:"I can feel there is some weight behind this question. Let me look at what your chart says about timing before I give you anything.",context:["Moon in Karka","Jupiter Dasha","D9 supports marriage","Jupiter favouring the 7th"],highlight:[7],chartCaption:"The 7th house is highlighted. That is your house of marriage and partnership, and it is exactly where the current support is landing.",computing:["Reading your Rasi chart (D1), Moon in Karka","Reading your Navamsa (D9), the marriage division","Checking the 7th house and its lord Saturn","Your running period: Jupiter major to 14 Aug 2027","Factoring current transits over the 7th house"],answer:"The timing is closer than it has felt. Jupiter, which carries commitment in your chart, is supporting your seventh house of partnership through your current Jupiter period, which runs until 14 August 2027. More importantly, in your Navamsa, the D9 chart Vedic astrology reads for marriage, the same supportive pattern repeats. That agreement between the D1 and the D9 is what makes a window real rather than hopeful.\n\nIf it felt slow until now, that was not you doing anything wrong. The earlier stretch simply did not carry this support. What you are entering does.\n\nThe strongest window runs from now to about March 2028, with a clear opening between 5 March 2027 and 20 June 2027 while Jupiter transits in favour of the seventh. My read: you do not need to force it. Be open and present through that window, because your chart is finally leaning the same way you are.",astro:[{label:"Ascendant (Lagna)",value:"Karka (Cancer)"},{label:"Moon sign (Rashi)",value:"Karka (Cancer)"},{label:"7th house lord",value:"Saturn, steadying and maturing"},{label:"Mahadasha / Antardasha",value:"Jupiter / Mercury, to 14 Aug 2027"},{label:"Navamsa (D9)",value:"Marriage pattern well supported"},{label:"Current transit (Gochar)",value:"Jupiter favouring the 7th"},{label:"Strongest window",value:"5 Mar 2027 to 20 Jun 2027"}],followups:[{q:"What kind of partner does my D9 point to?",kind:"chart"},{q:"Are some months in this window stronger than others?",kind:"chart"},{q:"Is there anything in my chart to be careful about here?",kind:"chart"}],crosssell:{kind:"report",title:"Marriage",reportId:"marriage",blurb:"Your complete marriage reading from the D1 and D9: partner nature, compatibility and the timing windows that matter."}}},km={mirror:"Good question to bring here. Let me read it against your actual chart rather than answer in general.",context:["Moon in Karka","Jupiter Dasha","D1 and D9 aligned","growth transit"],highlight:[1,10],chartCaption:"The highlighted houses are the ones your question touches. That is
152where I am reading the answer from in your chart.",computing:["Reading your Rasi chart (D1), Moon in Karka","Scanning the relevant divisional charts (D9, D10)","Your running period: Jupiter major to 14 Aug 2027","Factoring current transits (Gochar)","Pulling the thread from what we talked about before"],answer:"Here is what your chart says, not the textbook version. You are in your Jupiter major period until 14 August 2027, and Jupiter tends to widen things and reward patience over force. Across your divisional charts, the D1 and the division that matters for this question, the signal is steady rather than sudden, so the door is open for consistent effort more than a single leap.\n\nThe hesitation you feel is your Moon in Karka wanting safety first. That is not a flaw. You move best when you feel held, so build that footing and then act.\n\nThe supportive window runs through the first half of 2027, strongest around March to May 2027 given the current transits. My read: move, but move deliberately. The support is there for this stretch. Use it while it lasts.",astro:[{label:"Ascendant (Lagna)",value:"Karka (Cancer)"},{label:"Moon sign (Rashi)",value:"Karka (Cancer)"},{label:"Mahadasha / Antardasha",value:"Jupiter / Mercury, to 14 Aug 2027"},{label:"Divisional charts",value:"D1 and D9/D10 in agreement"},{label:"Current transit (Gochar)",value:"Jupiter favouring growth"},{label:"Strongest window",value:"Mar to May 2027"}],followups:[{q:"What is the best timing for this in my chart?",kind:"chart"},{q:"What should I be careful about right now?",kind:"chart"},{q:"How does this connect to what I asked earlier?",kind:"chart"}],crosssell:{kind:"report",title:"Personality",reportId:"personality",blurb:"Who you are at the core, your strengths, and your blind spots."}},kf="mlh:pending-ask";function kx(){try{localStorage.removeItem(kf)}catch{}}let kg="mlh_had_session",ky="mlh_threads",kb=t=>"vaani"!==t.role||("pedia"===t.kind?!!t.structured.lead:!!t.stream||!!t.chart),kv=t=>"vaani"!==t.role?t:"pedia"===t.kind?{...t,streaming:!1}:t.stream?t.stream.content?.length||t.chart?{...t,stream:{...t.stream,status:"done",...(0,gy.project)(t.stream.content)}}:{...t,stream:{...t.stream,status:"error",error:t.stream.error??"ask.answer-failed"}}:t,kw=t=>t.id.startsWith("h:")||t.id.startsWith("p:");function kk(){try{window.localStorage.removeItem(ky)}catch{}}let kj=[25,50,75,100],kN=(0,eO.default)("chevrons-up-down",[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]]),k_=(0,eO.default)("menu",[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]]),kE=(0,eO.default)("panel-left-close",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m16 15-3-3 3-3",key:"14y99z"}]]),kS=(0,eO.default)("panel-left-open",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m14 9 3 3-3 3",key:"8010ee"}]]),kC=(t,r)=>Promise.race([t,new Promise((t,a)=>setTimeout(()=>a(Error(r)),8e3))]),kT=[["TODAY",t=>t<24],["THIS WEEK",t=>t>=24&&t<168],["EARLIER",t=>t>=168]],kA={name:"Guest",gender:"Female",language:"English",phone:"+91 90000 00000",dob:"14 Aug 1994",tob:"06:20",pob:"Mumbai, India",plan:"Free"};function kI(t){let r=new Set;return t.filter(t=>{let a=function(t){let r=[t.id,t.uuid,t.analyticsId].filter(t=>!!t);for(let a of t.messages){if("vaani"!==a.role||"chart"!==a.kind)continue;let t=a.stream?.answerId;null!=t&&r.push(`a${t}`)}return r}(t);return!a.some(t=>r.has(t))&&(a.forEach(t=>r.add(t)),!0)})}function kM(t){let r=Number(t.at??t.id);return Number.isFinite(r)&&r>0?r:0}let kP=t=>!t.authExpired&&t.isComplete&&!t.isError&&null!==t.answerId,kO=["72%","54%","84%","46%","66%"];function kD({width:t="68%"}){return(0,ey.jsxs)("div",{className:"flex w-full items-center gap-2.5 py-[7px] pr-2.5 pl-2",children:[(0,ey.jsx)("span",{className:"w-[26px] flex-none"}),(0,ey.jsx)("span",{className:"mlh-shimmer block h-[9px] rounded-full",style:{width:t}})]})}function kR(){return(0,ey.jsxs)("div",{role:"status","aria-busy":"true","aria-live":"polite",children:[(0,ey.jsx)("span",{className:"sr-only",children:"Loading your recent readingsâ¦"}),kO.map((t,r)=>(0,ey.jsx)(kD,{width:t},r))]})}function k$({icon:t,label:r,on:a,href:n,onClick:i,id:o,delay:s=0,title:l}){return(0,ey.jsxs)(bO.default,{id:o,href:n,title:l,prefetch:!1,onClick:t=>{t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||(t.preventDefault(),i())},"aria-current":a?"page":void 0,style:e4(s),className:"mlh-rail-row mlh-in flex items-center gap-3 rounded-xl py-[5px] text-left [--mlh-in-x:-8px] [--mlh-in-y:0px]",children:[(0,ey.jsx)("span",{"data-on":a,className:"mlh-rail-tile text-mlh-faint grid h-[40p
152x] w-[40px] flex-none place-items-center rounded-xl",children:(0,ey.jsx)(t,{size:20})}),(0,ey.jsx)("span",{className:`mlh-rail-label font-sans text-[16.5px] leading-tight ${a?"text-mlh-text":"text-mlh-muted"}`,children:r})]})}t.s(["MeloohaApp",0,function({initialView:t="ask",initialCalcId:r,initialSignId:a,initialPeriod:n="daily",initialBlogId:i,initialBlogBody:o,initialReportId:s,initialLegalId:l="privacy-policy",initialCompanyPage:d="faq",initialJobId:c,initialReadings:u,initialReadingsComplete:h=!1,initialVersions:p,feedConfigured:m=!1,asOf:f}={}){var x;let g,y,b,v,w,k,[j,N]=(0,ek.useState)(t),[_,E]=(0,ek.useState)(l),[S,C]=(0,ek.useState)(d),[T,A]=(0,ek.useState)(c??null),[I,M]=(0,ek.useState)("chart"),[P,O]=(0,ek.useState)(0),[D,R]=(0,ek.useState)([]),[$,z]=(0,ek.useState)(""),[L,W]=(0,ek.useState)(0),[U,B]=(0,ek.useState)(!1),[F,Y]=(0,ek.useState)(()=>(r?(0,bd.byCalcId)(r):void 0)??null),[V,q]=(0,ek.useState)(()=>(a?(0,bc.bySignId)(a):void 0)??null),[H,Z]=(0,ek.useState)(n),[K,G]=(0,ek.useState)(()=>(i?(0,bl.byBlogId)(i):void 0)??null),[J,X]=(0,ek.useState)(!0),[Q,ee]=(0,ek.useState)(!1),[et,er]=(0,ek.useState)([]),[ea,en]=(0,ek.useState)(null),[ei,eo]=(0,ek.useState)(null),[es,el]=(0,ek.useState)(!1),[ed,ec]=(0,ek.useState)(void 0),[eu,eh]=(0,ek.useState)(!1),[ep,em]=(0,ek.useState)(il.OPEN_LEDGER),[ef,ex]=(0,ek.useState)(!1),[eg,ew]=(0,ek.useState)(!1),[ej,eN]=(0,ek.useState)(!1),[e_,eE]=(0,ek.useState)(null),[eS,eC]=(0,ek.useState)(0),[eT,eA]=(0,ek.useState)(0),[eI,eM]=(0,ek.useState)([]),[eP,eO]=(0,ek.useState)(null),[eR,eL]=(0,ek.useState)(()=>new Map),[eW,eU]=(0,ek.useState)(0),[eB,eF]=(0,ek.useState)(!1),[eY,eV]=(0,ek.useState)([]),[eq,eH]=(0,ek.useState)(()=>(s?gK(s)?.id:void 0)??null),[eZ,eK]=(0,ek.useState)(!1),[eG,eJ]=(0,ek.useState)(!1),[eX,eQ]=(0,ek.useState)(null),[e0,e1]=(0,ek.useState)(null),[e2,e3]=(0,ek.useState)("all"),[e6,e9]=(0,ek.useState)(12),[e7,tt]=(0,ek.useState)(null),[tr,ta]=(0,ek.useState)(null),[tn,ti]=(0,ek.useState)(null),[to,ts]=(0,ek.useState)(null),[tl,td]=(0,ek.useState)(!1),[tc,tu]=(0,ek.useState)([]),[th,tp]=(0,ek.useState)(()=>new Map),[tm,tf]=(0,ek.useState)(!1),[tx,tg]=(0,ek.useState)(!1),ty=(0,ek.useRef)(0),[tb,tv]=(0,ek.useState)(!1),tw=function(){let[t,r]=(0,ek.useState)([]),a=(0,ek.useRef)(!1),n=(0,ek.useCallback)((t,n)=>{let i=(0,t3.resolveNotice)(t,n);(!a.current||t3.NOTICES[t].overDialog)&&r(r=>{let a=r.findIndex(r=>r.code===t);if(-1!==a){let t=[...r];return t[a]=i,t}return[...r,i].slice(-3)})},[]),i=(0,ek.useCallback)(t=>r(r=>r.filter(r=>r.id!==t)),[]);return{visible:t,push:n,dismiss:i,clear:(0,ek.useCallback)(()=>r([]),[]),setDialogOpen:(0,ek.useCallback)(t=>{a.current=t,t&&r(t=>t.filter(t=>t3.NOTICES[t.code].overDialog))},[])}}(),tk=eu||ej||null!==e_||null!==e7,{setDialogOpen:tj}=tw;(0,ek.useEffect)(()=>{tj(tk)},[tk,tj]);let tN=(0,ek.useRef)(null),t_=(0,ek.useRef)(null),tE=(0,ek.useRef)(null),tS=(0,ek.useRef)(null),tC=(0,ek.useRef)(new Map),{configured:tT,otpless:tA,horoscopes:tI}=function(){let[t,r]=(0,ek.useState)({configured:null,otpless:!1,horoscopes:!1});return(0,ek.useEffect)(()=>{let t=!1;return fetch("/api/status",{signal:AbortSignal.timeout(8e3)}).then(t=>t.json()).then(a=>{t||r({configured:!!a?.configured,otpless:!!a?.otpless,horoscopes:!!a?.horoscopes})}).catch(()=>{t||r({configured:!1,otpless:!1,horoscopes:!1})}),()=>{t=!0}},[]),t}(),tM=!0===tT,tP=null!==eX&&D.some(t=>t.id===eX),tO=null!==tT&&es,tD=tO&&ef,tR=tD&&eG,t$=t=>!ei&&(0,il.isSpent)(ep,t),tz=t=>em(r=>{let a=r.remaining[t];return null===a?r:{...r,remaining:{...r.remaining,[t]:Math.max(0,a-1)}}}),tL=tO&&(!tM||tm),tW=eR.size?[...new Set([...eI,...eR.keys()])]:eI,tU=eB||eR.has("artha"),tB=t=>{let r=th.get(t),a=eY.find(r=>r.key===t),n=eR.get(t)??null;return{status:r?.status??a?.status??(n?"preparing":void 0),etaSeconds:r?.etaSeconds??a?.etaSeconds??("artha"===t?1500:180),unlockedAt:r?.unlockedAt??a?.unlockedAt??n}},tF=(0,ek.useRef)(null),tY=(0,ek.useRef)(new Map),tV=(0,ek.useRef)(new Map);(0,ek.useEffect)(()=>()=>{tF.current?.abort(),tY.current.forEach(t=>t.abort())},[]),(0,ek.useEffect)(()=>{!1===tT&&(eo(kA),eJ(!0),tf(!0),tg(!0),el(!0))},[tT]),(0,ek.useEffect)(()=>{let t=!1;return(0,il.fetchFreeUses)().then(r=>{t||(em(r),ex(!0))}),()=>{t=!0}},[]);let tH=()=>{eo(null);try{window.localStorage.removeItem(kg)}catch{}ty.current+=1,kk(),kx(),er([]),en(null),R([]),e9(12),tE.current=null,tS.current=null,em(il.OPEN_LEDGER),ex(!1),(0,il.fetchFreeUses)().then(t=>{em(t),ex(!0)}),O(0),eC(0),eA(0),eK(!1),eJ(!0),eM([]),eF(!1),eV([]),tp(new Map)},tZ=()=>{(0,is.logout)(),tH(),ec(void 0),tw.clear(),tw.push("session.expired"),eh(!0)},tK=t=>t instanceof is.ApiAuthError&&(tZ(),!0),tG=async()=>{try{let t=await (0,is.fetchUsage)();
152O(t.questionsRemaining),eC(t.reportCredits),eA(t.categoryCredits[gy.ARTHA_CATEGORY]??0),eK(t.freeQuestionUsed),eo(r=>r?{...r,plan:t.planName??r.plan}:r)}catch(t){tK(t)||(0,t3.logNotice)("balance.load-failed",{cause:t})}finally{eJ(!0)}await ro()},tJ=async t=>{try{let[r,a]=await Promise.all([(0,is.fetchReports)(t),(0,is.fetchReportHistory)(t)]),n=new Map(r.map(t=>[ye(t.name),t]));tp(n),eU(Date.now()/1e3);let i=r.filter(t=>t.unlocked).map(t=>ye(t.name));eM(i),eF(i.includes("artha"));let o=new Set,s=[];for(let t of r.filter(t=>t.unlocked).sort((t,r)=>(r.unlockedAt??0)-(t.unlockedAt??0))){let r=ye(t.name);o.has(r)||(o.add(r),s.push({key:r,name:t.name,status:t.status??"preparing",...null!==t.generationId?{generationId:t.generationId}:{},...t.reportUrl?{reportUrl:t.reportUrl}:{},etaSeconds:t.etaSeconds,unlockedAt:t.unlockedAt}))}for(let t of a){let r=ye(t.name);o.has(r)||(o.add(r),s.push({key:r,name:t.name,status:t.status,...null!==t.generationId?{generationId:t.generationId}:{},...n.get(r)?.reportUrl?{reportUrl:n.get(r).reportUrl}:{},etaSeconds:n.get(r)?.etaSeconds??null,unlockedAt:n.get(r)?.unlockedAt??null}))}eV(s)}catch(t){if(tK(t))return;tw.push("reports.sync-failed",{cause:t})}finally{tf(!0)}},tX=async t=>{let r=ty.current,a=async t=>{try{let a=await t;if(r!==ty.current)return;a.length&&er(t=>kI([...t,...a]).sort((t,r)=>kM(r)-kM(t)))}catch(t){tK(t)||(0,t3.logNotice)("questions.history-failed",{cause:t})}};await Promise.all([a((0,is.fetchQuestionHistory)(t).then(yt)),a((0,is.fetchAstropediaHistory)().then(yr))]),tg(!0)},tQ=(0,ek.useRef)(null);(0,ek.useEffect)(()=>{tQ.current??=kC((0,is.fetchSession)(),"Could not check your session."),tQ.current.catch(()=>void 0)},[]),(0,ek.useEffect)(()=>{if(!tM)return;let t=!1;return(async()=>{let r;try{r=await (tQ.current??=kC((0,is.fetchSession)(),"Could not check your session."))}catch(r){if(t)return;el(!0),eJ(!0),tf(!0),tg(!0),tw.push("session.check-failed",{cause:r});return}if(t)return;if(!r.signedIn){eo(null),el(!0),eJ(!0),tf(!0),tg(!0);return}let a=r.profile;if(!g5(a)){ec(a),eh(!0),el(!0),eJ(!0),tf(!0),tg(!0);return}a.id?(tX(a.id),tJ(a.id)):(tf(!0),tg(!0)),eo(g4(a)),el(!0);try{window.localStorage.setItem(kg,"1")}catch{}let n=await kC((0,is.fetchUsage)(),"usage timed out").catch(()=>null);t||(n&&(eo(t=>t?{...t,plan:n.planName??t.plan}:t),O(n.questionsRemaining),eC(n.reportCredits),eA(n.categoryCredits[gy.ARTHA_CATEGORY]??0),eK(n.freeQuestionUsed),eJ(!0)),a.id?ro(a.id):eJ(!0))})(),()=>{t=!0}},[tM]);let t0=null!==ei;(0,ek.useEffect)(()=>{if(!tM||!t0)return;let t=!1;return(0,is.fetchPlans)().then(r=>!t&&tu(r)).catch(()=>void 0),()=>{t=!0}},[tM,t0,ei?.id]),(0,ek.useEffect)(()=>{let t=ei?.id;if(!tM||!t)return;let r=eR.size>0;if(!(r||eY.some(t=>"preparing"===t.status)||[...th.values()].some(t=>"preparing"===t.status)))return;let a=setInterval(()=>void tJ(t),r?4e3:3e4);return()=>clearInterval(a)},[tM,ei?.id,eY,th,eR]),(0,ek.useEffect)(()=>{if(!eR.size||!eW)return;let t=[...eR].filter(([t,r])=>eW>r&&(eI.includes(t)||eW-r>20));t.length&&eL(r=>{let a=new Map(r);for(let[r]of t)a.delete(r);return a})},[eR,eW,eI]),(0,ek.useEffect)(()=>{if(null===tT)return;let t=new URL(window.location.href);"1"===t.searchParams.get(vI.PAID_PARAM)&&(t.searchParams.delete(vI.PAID_PARAM),window.history.replaceState(null,"",`${t.pathname}${t.search}`));let r=(0,vI.readPaymentIntent)();r&&((0,vI.clearPaymentIntent)(),r.reportId&&eO(r.reportId),tM&&(tG(),ei?.id&&tJ(ei.id)))},[tT,tM,ei?.id]),(0,ek.useEffect)(()=>{!eP||(eI.includes(eP)?eO(null):("artha"===eP?eT:eS)<1||tM&&ei?.id&&!th.has(eP)||(eO(null),t9([eP])))},[eP,eS,eT,eI,th,tM,ei?.id]),(0,ek.useEffect)(()=>{tN.current?.scrollIntoView({behavior:"smooth"})},[D]),(0,ek.useEffect)(()=>{if(0===D.length)return;let t=D.find(t=>"user"===t.role),r=t?t.text:"New reading",a=t?.kind==="chart"?"chart":"pedia";if(null===ea){let t=String(Date.now());en(t),er(n=>[{id:t,title:r,messages:D,mode:I,kind:a,uuid:tE.current,analyticsId:tS.current},...n])}else er(t=>t.map(t=>t.id===ea?{...t,messages:D,mode:I,uuid:tE.current??t.uuid,analyticsId:tS.current??t.analyticsId}:t))},[D]);let t1=(0,ek.useRef)(!1);(0,ek.useEffect)(()=>{es&&!t1.current&&(er(kI(function(t){try{let r=window.localStorage.getItem(ky);if(!r)return[];let a=JSON.parse(r),n=a&&"object"==typeof a&&!Array.isArray(a)?a:null;if(!n||2!==n.v||!Array.isArray(n.threads)||(n.owner??null)!==t)return kk(),[];let i=Date.now();return n.threads.filter(t=>t&&Array.isArray(t.messages)&&t.messages.length>0).filter(t=>!(t.anonUntil&&t.anonUntil<=i)).map(t=>{let r;return{...t,messages:t.messages.filter(kb).map(kv).map((r=t.id,(t,a)=>t.id?t:{...t,id:`${r}:${a}`}))}}).filter(t=>t.messages.length>0)}catch{return[]}}(ei?.id??null))),t1.current=!0,tv(!0))},[es]),(0,ek.useEffect)(()=>{tb&&function(t,r){try{let a=(function(t){if(t.length<=30)return t;let r=new Set;for(let a of t)!kw(a)&&r.size<30&&r.add(a.id);for(let a of t)r.size<30&&r.add(a.id);return t.filter(t=>r.has(t.id))})(t).map(t=>(function(t,r){if(r){if(void 0===t.anonUntil)return t;let{anonUntil:r,...a}=t;return a}return t.anonUntil?t:{...t,anonUntil:Date.now()+12096e5}})(t,null!==r));window.localStorage.setItem(ky,JSON.stringify({v:2,owner:r,threads:a}))}catch{}}(et,ei?.id??null)},[et,tb,ei]);let t2=(t,r)=>{eV(a=>a.some(r=>r.key===t)?a:[{key:t,name:r,status:"preparing",etaSeconds:7,unlockedAt:Date.now()/1e3},...a]),setTimeout(()=>eV(r=>r.map(r=>r.key===t?{...r,status:"ready"}:r)),7e3)},t5=t=>{eM(r=>r.includes(t)?r:[...r,t]),t2(t,gJ(t))},t4=async t=>{let r=gJ(t),a=th.get(t);if(a?.reportUrl){(0,eb.track)("REPORT_OPEN_RESULT_WEB_EVENT",{report_id:t,via:"url"}),window.open(a.reportUrl,"_blank","noopener,noreferrer");return}let n=eY.find(r=>r.key===t)?.generationId??a?.generationId??null;if(!tM||!ei?.id||null===n){if(!tM){(0,eb.track)("REPORT_OPEN_RESULT_WEB_EVENT",{report_id:t,via:"demo"}),bo(w8(r));return}(0,eb.track)("REPORT_OPEN_RESULT_WEB_EVENT",{report_id:t,via:"not_ready"}),tw.push("report.not-ready",{subject:r});return}try{let a=await (0,is.fetchUnlockedReport)(ei.id,n,r);a.url?((0,eb.track)("REPORT_OPEN_RESULT_WEB_EVENT",{report_id:t,via:"url"}),window.open(a.url,"_blank","noopener,noreferrer")):a.html?((0,eb.track)("REPORT_OPEN_RESULT_WEB_EVENT",{report_id:t,via:"html"}),bo(a.html)):((0,eb.track)("REPORT_OPEN_RESULT_WEB_EVENT",{report_id:t,via:"not_ready"}),tw.push("report.not-ready",{subject:r}))}catch(a){if(tK(a))return;(0,eb.track)("REPORT_OPEN_RESULT_WEB_EVENT",{report_id:t,via:"error"}),tw.push("report.open-failed",{subject:r,cause:a})}},t6=t=>eL(r=>r.has(t)?r:new Map(r).set(t,Date.now()/1e3)),t8=t=>{(0,eb.track)("REPORT_UNLOCK_ROLLED_BACK_WEB_EVENT",{report_id:t}),eL(r=>{if(!r.has(t))return r;let a=new Map(r);return a.delete(t),a}
152)},t9=async t=>{let r=ei?.id;if(!tM||!r){let r=t.slice(0,eS);r.forEach(t5),eC(t=>Math.max(0,t-r.length));return}let a=t.filter(t=>th.has(t));if(a.length){a.forEach(t6);let t=a.filter(t=>"artha"===t).length,r=a.length-t;t&&eA(r=>Math.max(0,r-t)),r&&eC(t=>Math.max(0,t-r))}for(let a of t){let t=th.get(a);if(!t){tw.push("report.not-on-account",{subject:gJ(a)});continue}try{await (0,is.unlockReport)(r,t.id)}catch(t){t8(a),tw.push("report.unlock-failed",{subject:gJ(a),cause:t})}}await Promise.all([tJ(r),tG()])},t7=()=>{let t=tc.find(t=>"artha"===t.kind);return t?{...g6(t),kind:"artha",unit:"Reports"}:{...gW}},re=tc.find(t=>t.currency)?.currency,rt=t=>tL?!!tM&&!ei&&(ts(t),eh(!0),!0):(ts(t),!0),rr=t=>{if("artha"===t.type||"unlock"===t.type&&"artha"===t.id){N("artha"),eT>0?t9(["artha"]):tt(t7());return}N("reports"),"pack"===t.type?eE("reports"):"unlock"===t.type&&t.id&&(eS>0?t9([t.id]):(eO(t.id),eE("reports")))};(0,ek.useEffect)(()=>{tL&&to&&!eu&&(tM&&!ei?eh(!0):(ts(null),rr(to)))},[tL,to,eu,tM,ei]);let ra=(t,r,a)=>{let n=t=>t.map(t=>t.id===r?{...t,stream:a}:t);tE.current===t?R(n):er(r=>r.map(r=>r.uuid===t?{...r,messages:n(r.messages)}:r))},rn=(t,r)=>{er(a=>a.map(a=>({...a,messages:a.messages.map(a=>"vaani"===a.role&&"chart"===a.kind&&a.stream?.answerId===t?{...a,stream:{...a.stream,...r}}:a)}))),R(a=>a.map(a=>"vaani"===a.role&&"chart"===a.kind&&a.stream?.answerId===t?{...a,stream:{...a.stream,...r}}:a))},ri=t=>{if(!t)return;let r=t.remaining_questions,a="number"==typeof r?Math.max(0,r):null;null!==a&&O(a);let n=t.label?.questions;n?eK("FREE"!==n.toUpperCase()):0===a&&eK(!0)},ro=async t=>{let r=t??ei?.id;if(tM&&r)try{ri(await (0,is.fetchChatBalance)({uuid:tE.current??crypto.randomUUID(),source:(0,gy.generalSource)(r)}))}catch(t){tK(t)}finally{eJ(!0)}},rs=t=>eQ(r=>r===t?null:r),rl=async(t,r)=>{tF.current?.abort();let a=new AbortController;tF.current=a;let n=crypto.randomUUID(),i=t=>R(r=>r.map(r=>"vaani"===r.role&&"pedia"===r.kind&&r.id===n?{...r,...t}:r));R(t=>[...t,{role:"vaani",kind:"pedia",id:n,structured:gx(null),streaming:!0}
152]),eQ(n),(0,eb.track)("ANSWER_STARTED_WEB_EVENT",{mode:"pedia",turn_index:r.turnIndex});let o=Date.now();try{let n=await gg(t,t=>i({structured:t}),a.signal,r);i({structured:n,streaming:!1}),(0,eb.track)("ANSWER_COMPLETED_WEB_EVENT",{mode:"pedia",latency_ms:Date.now()-o,sections:n.sections.length}),ei||tz("astropedia")}catch(o){if(a.signal.aborted)return;if(o instanceof is.ApiNotConfiguredError)return void i({structured:id[(0,ev.normQ)(t)]??ic,streaming:!1});if(o instanceof il.FreeUseExhaustedError){(0,eb.track)("SIGNIN_GATE_SHOWN_WEB_EVENT",{trigger:"astropedia_allowance"}),em(t=>({...t,remaining:{...t.remaining,astropedia:0}})),R(r=>{let a=r.filter(t=>t.id!==n),i=a[a.length-1];return i?.role==="user"&&i.text===t?a.slice(0,-1):a}),ta({text:t,kind:"pedia"}),eh(!0);return}if(o instanceof io){(0,eb.track)("ASTROPEDIA_SCOPE_REFUSED_WEB_EVENT",{verdict:o.verdict}),i("guidance"===o.verdict?{streaming:!1,error:"ask.needs-chart",handoff:t}:{streaming:!1,error:"ask.off-topic"});return}(0,eb.track)("ANSWER_FAILED_WEB_EVENT",{mode:"pedia",reason:o instanceof Error?o.message:"That answer could not be written."});let r=o instanceof is.ApiRateLimitError?"net.rate-limited":"ask.answer-failed";(0,t3.logNotice)(r,{cause:o}),i({streaming:!1,error:r})}finally{rs(n)}},rd=(t,r,a=!1)=>{let n=ei?.id;if(!n)return;let i=[...D].reverse().find(t=>"vaani"===t.role&&"chart"===t.kind),o=(!a&&i?.role==="vaani"&&"chart"===i.kind&&i.stream?.isComplete?null:tE.current)??crypto.randomUUID();tE.current=o,tY.current.get(o)?.abort();let s=new AbortController;tY.current.set(o,s);try{localStorage.setItem(kf,JSON.stringify({...{question:t,uuid:o,free:r,owner:n},startedAt:Date.now()}))}catch{}let l=(0,gy.generalSource)(n),d={uuid:o,source:l,deviceId:(0,iu.getDeviceId)()},c=tC.current.get(t),u=crypto.randomUUID();R(t=>[...t,{role:"vaani",kind:"chart",id:u,stream:(0,gy.emptyStream)()}]),eQ(u);let h=D.filter(t=>"user"===t.role).length;
152(0,eb.track)("ANSWER_STARTED_WEB_EVENT",{mode:"chart",turn_index:h}),tV.current.set(o,Date.now()),(0,is.streamChat)({question:t,uuid:o,source:l,deviceId:d.deviceId,...void 0!==c?{promptId:c}:{}},{onUpdate:t=>ra(o,u,t),onBalance:ri},s.signal).then(t=>(kP(t)&&(r?(eK(!0),e1(Date.now())):O(t=>Math.max(0,t-1))),rs(u),rc(t,d).finally(()=>{(t.isComplete||t.isError||t.authExpired||null===t.answerId)&&kx()}))).catch(t=>{(0,eb.track)("ANSWER_FAILED_WEB_EVENT",{mode:"chart",reason:t instanceof Error?t.message:"The reading could not be started."}),rs(u),(0,t3.logNotice)("ask.answer-failed",{cause:t}),ra(o,u,{...(0,gy.emptyStream)(),status:"error",error:"ask.answer-failed"})}).finally(()=>{tY.current.get(o)===s&&(tY.current.delete(o),tV.current.delete(o))})},rc=async(t,r)=>{if(t.authExpired)return void tZ();if(!kP(t)||null===t.answerId)return void(0,eb.track)("ANSWER_FAILED_WEB_EVENT",{mode:"chart",reason:t.isError?t.error??"error":"incomplete"});let a=tV.current.get(r.uuid);(0,eb.track)("ANSWER_COMPLETED_WEB_EVENT",{mode:"chart",latency_ms:a?Date.now()-a:0,sections:t.content.length});let n=t.answerId;try{let t=await (0,is.ackAnswer)(r,n);rn(n,{acknowledged:!0}),ri(t??await (0,is.fetchChatBalance)(r))}catch{tG()}try{let t=await (0,is.fetchPrompts)(r);if(0===t.length)return;t.forEach(t=>tC.current.set(t.question,t.id)),rn(n,{prompts:t})}catch{}},rh=async(t,r)=>{let a=ei?.id;if(!a)return;let n=tE.current??crypto.randomUUID();r&&(0,eb.track)("ANSWER_RATED_WEB_EVENT",{value:r,mode:"chart"});let i=[...D,...et.flatMap(t=>t.messages)].map(t=>"vaani"===t.role&&"chart"===t.kind?t.stream:void 0).find(r=>r?.answerId===t)?.feedback??null;rn(t,{feedback:r});try{await (0,is.sendAnswerFeedback)({uuid:n,source:(0,gy.generalSource)(a)},t,r)||rn(t,{feedback:i})}catch{rn(t,{feedback:i})}},rp=async(t,r,a)=>{let n=ei?.id;if(n){(0,eb.track)("ANSWER_NOTE_SUBMITTED_WEB_EVENT",{value:"dislike",length:a.length}),rn(t,{feedback:"dislike",feedbackRating:r,feedbackNote:a||null});try{await (0,is.sendAnswerFeedback)({uuid:tE.current??crypto.randomUUID(),source:(0,gy.generalSource)(n)},t,"dislike",{rating:r,note:a})}catch{}}},rm=(0,ek.useRef)(!1);(0,ek.useEffect)(()=>{if(rm.current||!tM||!tR||!ei?.id||!tb||tP)return;rm.current=!0;let t=function(t){try{let r=localStorage.getItem(kf);if(!r)return null;let a=JSON.parse(r);if("object"!=typeof a||null===a)return null;let n="string"==typeof a.question?a.question.trim():"",i="string"==typeof a.uuid?a.uuid:"",o="number"==typeof a.startedAt?a.startedAt:0;if(!n||!i||a.owner!==t||Date.now()-o>18e5)return null;return{question:n,uuid:i,free:!0===a.free,owner:t,startedAt:o}}catch{return null}}(ei.id);if(!t)return;kx(),tE.current=t.uuid;let r=et.find(r=>r.uuid===t.uuid);console.info("[ask] resume",{uuid:t.uuid,waitedMs:Date.now()-t.startedAt,thread:r?"rail":"rebuilt"}),r?(en(r.id),M(r.mode),tS.current=r.analyticsId??null,R(r.messages.filter(t=>!("vaani"===t.role&&"chart"===t.kind&&t.stream&&!t.stream.isComplete)))):(en(null),tS.current=null,M("chart"),R([{role:"user",text:t.question,kind:"chart",id:crypto.randomUUID()}])),rd(t.question,t.free,!0)},[tM,tR,ei?.id,tb,tP,et]);let rf=t=>{M("chart"),z(t),B(t.length>0),W(t=>t+1),N("ask"),ee(!1)},rx=t=>{z(t),t||B(!1)},rg=(t,r,a,n="composer")=>{let i=(t??$).trim();if(!i)return;if(tP)return void(0,eb.track)("QUESTION_BLOCKED_WEB_EVENT",{mode:r,reason:"answer_in_flight"});if(!("chart"===r?tR:tD)){(0,eb.track)("QUESTION_DEFERRED_WEB_EVENT",{mode:r}),ti({text:i,kind:r,...void 0!==a?{free:a}:{}});return}if("pedia"===r&&t$("astropedia")){(0,eb.track)("SIGNIN_GATE_SHOWN_WEB_EVENT",{trigger:"astropedia_allowance"}),ta({text:i,kind:r}),eh(!0);return}let o="chart"===r&&(a||!eZ);if("chart"===r){if(tM&&!ei){(0,eb.track)("SIGNIN_GATE_SHOWN_WEB_EVENT",{trigger:"chart_question"}),ta({text:i,kind:r}),eh(!0);return}if(!o&&P<=0){(0,eb.track)("PAYWALL_SHOWN_WEB_EVENT",{kind:"questions",trigger:"zero_balance"}),eE("questions");return}}M("chart"===r?"chart":"astropedia");let s=D.find(t=>"user"===t.role)?.kind,l=!!(s&&s!==r),d=l?0:D.filter(t=>"user"===t.role).length;(0,eb.track)("QUESTION_SUBMITTED_WEB_EVENT",{mode:r,source:n,turn_index:d,is_first_free:!!o,balance_before:P,length:i.length}),l?(en(null),tE.current=null,tS.current=null,R([{role:"user",text:i,kind:r,id:crypto.randomUUID()}])):R(t=>[...t,{role:"user",text:i,kind:r,id:crypto.randomUUID()}]),z(""),B(!1),"pedia"===r?rl(i,{threadId:tS.current??=crypto.randomUUID(),turnIndex:d}):tM?rd(i,o):setTimeout(()=>{R(t=>[...t,{role:"vaani",kind:"chart",id:crypto.randomUUID(),chart:kp[(0,ev.normQ)(i)]??km}]),o?(eK(!0),e1(Date.now())):O(t=>Math.max(0,t-1))},700)};(0,ek.useEffect)(()=>{ei&&tr&&(ta(null),eh(!1),rg(tr.text,tr.kind,tr.free,"resumed"))},[ei,tr]),(0,ek.useEffect)(()=>{tn&&("chart"===tn.kind?tR:tD)&&(ti(null),rg(tn.text,tn.kind,tn.free,"resumed"))},[tR,tD,tn]);let ry=(t="chart")=>{R([]),z(""),B(!1),en(null),tE.current=null,tS.current=null,M(t),N("ask"),ee(!1)},rb=t=>{Y((0,bd.byCalcId)(t)??null),N("calculators")},rv=(()=>{switch(j){case"horoscopes":return V?((t,r,a=!0)=>({path:(0,bc.signPath)(t.id,r),title:`${t.name} ${bc.PERIOD_TITLE[r]}: ${t.rashi} Rashi | Melooha`,description:(0,bc.isLivePeriod)(r)&&a?"daily"===r?`Free ${t.name} horoscope for ${bc.WORD[r]}, read from your Vedic Moon sign (${t.rashi} Rashi): career, love, health, tarot, lucky colour and lucky number.`:`Free ${t.name} ${bc.PERIOD_LABEL[r].toLowerCase()} horoscope for ${t.rashi} Rashi, read from your Vedic Moon sign: career, finance, love, family and health ${bc.WORD[r]}.`:`${t.name} ${bc.PERIOD_LABEL[r].toLowerCase()} horoscope for ${t.rashi} Rashi. Not published yet: read todayâs ${t.name} horoscope, or ask Vaani from your full birth chart.`,keywords:`${t.name.toLowerCase()} ${bc.PERIOD_TITLE[r].toLowerCase()}, ${t.rashi.toLowerCase()} rashifal`,card:(0,bc.horoscopeCard)(t,r)}))(V,H):bb;case"knowledge":return K?{path:(0,bl.blogPath)(K.id),title:`${K.title} | Melooha`,description:K.dek,card:(0,bl.blogCard)(K),locale:"hi"===K.lang?"hi_IN":"en_IN"}:bv;case"calculators":return F?{path:(0,bd.calcPath)(F.id),title:F.seoTitle,de
152scription:F.meta,keywords:F.keyword,card:(0,bd.calcCard)(F)}:bw;case"reports":{let t=eq?gK(eq):void 0;return t?{path:gG(t.id),title:t.seoTitle,description:t.meta,keywords:t.keyword,card:{title:`${t.name} Report`,eyebrow:gX(t.id),kind:"report"}}:bk}case"artha":return b_;case"news":return bj;case"legal":let t;return{path:bn((t=br[_]).id),title:t.seoTitle,description:t.meta,keywords:t.keyword};case"company":{let t,r="jobs"===S&&T?bg(T):void 0;return r?{path:bh(r.id),title:`${r.title}: Careers at Melooha | Melooha`,description:r.summary}:{path:bu((t=bp[S]).id),title:t.seoTitle,description:t.meta,keywords:t.keyword}}case"invoices":return bN;default:return by}})();(0,ek.useEffect)(()=>{window.location.pathname!==rv.path&&(window.history.state?.mlhOverlay?window.history.replaceState(null,"",rv.path):window.history.pushState(null,"",rv.path)),document.title=rv.title,(0,eb.track)("PAGE_VIEWED_WEB_EVENT",{view:j,path:rv.path,title:rv.title,...V?{sign:V.id,period:H}:{},...K?{slug:K.id}:{},...F?{calc_id:F.id}:{},...eq?{report_id:eq}:{}})},[rv.path,rv.title]);let rw=(0,ek.useRef)(!1);(0,ek.useEffect)(()=>{rw.current||null===tT||(rw.current=!0,(0,eb.track)("APP_OPENED_WEB_EVENT",{initial_view:t,demo_mode:!tT,font_theme:document.documentElement.dataset.fontTheme??"unknown"}))},[tT,t]);let rk=(0,ek.useRef)(null);(0,ek.useEffect)(()=>{let t=ei?.id??null;t!==rk.current&&(t?((0,eb.identifyUser)(t,{signed_in:!0,demo_mode:!tM,has_birth_details:!!ei?.dob,artha_owned:eB}),(0,eb.track)("SIGNED_IN_WEB_EVENT")):rk.current&&((0,eb.track)("SIGNED_OUT_WEB_EVENT"),(0,eb.resetUser)()),rk.current=t)},[ei?.id]);let rj=(0,ek.useRef)(new Set);(0,ek.useEffect)(()=>{for(let t of tw.visible)rj.current.has(t.id)||(rj.current.add(t.id),(0,eb.track)("ERROR_SHOWN_WEB_EVENT",{surface:j,reason:t.code}))},[tw.visible]),(0,ek.useEffect)(()=>{(0,eb.setUserTraits)({signed_in:!!ei,demo_mode:!tM,has_birth_details:!!ei?.dob,artha_owned:eB})},[!!ei,tM,!!ei?.dob,eB]);let rN=(0,ek.useRef)(null);(0,ek.useEffect)(()=>{let t=null===rN.current;rN.current!==rv.path&&(rN.current=rv.path,t||t_.current?.scrollTo({top:0}))},[rv.path]),function({container:t,surface:r,path:a,enabled:n}){(0,ek.useEffect)(()=>{if(!1===n)return;let i=t.current;if(!i)return;let o=new Set,s=()=>{let t=i.scrollHeight-i.clientHeight;if(t<=0)return;let n=i.scrollTop/t*100;for(let t of kj)n>=t&&!o.has(t)&&(o.add(t),(0,eb.track)("READING_DEPTH_WEB_EVENT",{surface:r,path:a,percent:t}))};return s(),i.addEventListener("scroll",s,{passive:!0}),()=>i.removeEventListener("scroll",s)},[t,r,a,n])}({container:t_,surface:j,path:rv.path,enabled:"ask"!==j});let r_=t=>{let[r,a,n]=t.split("/").filter(Boolean),i=t=>{N(t),ee(!1)};switch(r){case void 0:i("ask");break;case"horoscopes":q(a?(0,bc.bySignId)(a)??null:null),n&&Z(n),i("horoscopes");break;case"blogs":G(a?(0,bl.byBlogId)(a)??null:null),i("knowledge");break;case"calculators":Y(a?(0,bd.byCalcId)(a)??null:null),i("calculators");break;case"reports":eH(a?gK(a)?.id??null:null),i("reports");break;case"artha-sutram":i("artha");break;case"news":i("news");break;case"invoices":i("invoices");break;case"privacy-policy":case"terms-and-conditions":case"refund-policy":case"disclaimer":E(r),i("legal");break;case"faq":case"contact":case"jobs":case"review":C(r),A("jobs"===r&&a?bg(a)?.id??null:null),i("company")}};(0,ek.useEffect)(()=>{let t=()=>r_(window.location.pathname);return window.addEventListener("popstate",t),()=>window.removeEventListener("popstate",t)},[]);let rE=!!(e_||e7||eu||ej||eg||tl||Q),rS=(0,ek.useRef)(eu);(0,ek.useEffect)(()=>{rS.current=eu},[eu]),(0,ek.useEffect)(()=>{if(!rE)return;let t=Math.random().toString(36).slice(2);window.history.pushState({mlhOverlay:t},"");let r=()=>{eE(null),tt(null),eO(null),rS.current&&(eh(!1),ec(void 0),ta(null),ts(null)),eN(!1),ew(!1),td(!1),ee(!1)};return window.addEventListener("popstate",r),()=>{window.removeEventListener("popstate",r),setTimeout(()=>{window.history.state?.mlhOverlay===t&&window.history.back()},0)}},[rE]);let rC=et.filter(t=>"all"===e2||t.kind===e2),rT=null===tT||!tb||tM&&!tx;return(0,ey.jsxs)("div",{className:"bg-mlh-bg text-mlh-text flex h-[100dvh] w-full overflow-hidden text-sm",children:[Q&&(0,ey.jsx)("div",{onClick:()=>ee(!1),className:"fixed inset-0 z-40 bg-black/60 md:hidden"}),(0,ey.jsxs)("aside",{"data-open":J,className:`mlh-rail mlh-thin-scroll border-mlh-border fixed inset-y-0 left-0 z-50 flex w-[264px] flex-col overflow-x-hidden overflow-y-auto overscroll-contain border-r md:static md:z-auto md:w-[80px] md:translate-x-0 ${Q?"translate-x-0":"-translate-x-full"} ${J?"md:w-[220px]":""}`,children:[(0,ey.jsxs)("div",{className:"mlh-in relative hidden h-[46px] flex-none items-center gap-3 px-4 [--mlh-in-x:-10px] [--mlh-in-y:0px] md:flex md:h-[52px]",children:[(0,ey.jsxs)(bO.default,{href:"/",prefetch:!1,onClick:t=>{t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||(t.preventDefault(),ry(),ee(!1))},"aria-label":"Melooha home",className:"flex items-center gap-3",children:[(0,ey.jsx)("span",{className:`h-[40p
152x] w-[40px] flex-none overflow-hidden rounded-full transition-opacity duration-200 motion-reduce:transition-none ${J?"":"md:opacity-0"}`,children:(0,ey.jsx)(tq,{className:"h-full w-full object-cover"})}),(0,ey.jsx)("span",{className:"mlh-rail-label",children:(0,ey.jsx)("span",{className:"block font-serif text-[21px] leading-none text-white",children:"Melooha"})})]}),(0,ey.jsx)("button",{onClick:()=>{(0,eb.track)("RAIL_TOGGLED_WEB_EVENT",{open:!J}),X(t=>!t)},"aria-label":J?"Collapse navigation":"Expand navigation","aria-expanded":J,title:J?"Collapse navigation":"Expand navigation",className:`text-mlh-faint hover:text-mlh-plum-300 hidden h-[40px] w-[40px] place-items-center rounded-xl transition-[right,color] duration-[280ms] ease-[cubic-bezier(0.22,1,0.36,1)] motion-reduce:transition-none md:absolute md:top-1.5 md:grid ${J?"md:right-3":"md:right-[164px]"}`,children:J?(0,ey.jsx)(kE,{size:20}):(0,ey.jsx)(kS,{size:20})})]}),(0,ey.jsxs)("div",{className:"flex flex-none flex-col gap-1.5 px-4 pt-3 md:pt-0.5",children:[(0,ey.jsxs)(bO.default,{href:"/",prefetch:!1,onClick:t=>{t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||(t.preventDefault(),(0,eb.track)("NEW_READING_CLICKED_WEB_EVENT",{from:j}),ry("chart"),ee(!1))},"aria-current":"ask"===j&&"chart"===I?"page":void 0,title:J?void 0:"Ask Vaani",style:e4(60),className:"mlh-vaani-card mlh-in -mx-1 flex items-center gap-3 rounded-[14px] p-1 text-left [--mlh-in-x:-8px] [--mlh-in-y:0px]",children:[(0,ey.jsx)("span",{className:"grid h-[36px] w-[40px] flex-none place-items-center",children:(0,ey.jsx)(e$.SparkleIcon,{size:18})}),(0,ey.jsx)("span",{className:"mlh-rail-label font-sans text-[16.5px] leading-tight",children:"Ask Vaani"})]}),(0,ey.jsxs)(bO.default,{href:"/",prefetch:!1,onClick:t=>{t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||(t.preventDefault(),ry("astropedia"),ee(!1))},"aria-current":"ask"===j&&"astropedia"===I?"page":void 0,title:J?void 0:"Ask Astropedia",style:e4(80),className:"mlh-pedia-card mlh-in -mx-1 flex items-center gap-3 rounded-[14px] p-1 text-left [--mlh-in-x:-8px] [--mlh-in-y:0px]",children:[(0,ey.jsx)("span",{className:"grid h-[36px] w-[40px] flex-none place-items-center",children:(0,ey.jsx)(ez.BookOpen,{size:18})}),(0,ey.jsx)("span",{className:"mlh-rail-label font-sans text-[16.5px] leading-tight",children:"Ask Astropedia"})]})]}),(0,ey.jsx)("nav",{className:"flex flex-none flex-col gap-1 px-4 pt-2.5",children:e5.NAV.map((t,r)=>(0,ey.jsx)(k$,{id:`cm-nav-${t.id}`,icon:t.icon,label:t.label,title:J?void 0:t.label,delay:100+32*r,href:t.href,on:j===t.id,onClick:()=>{(0,eb.track)("NAV_CLICKED_WEB_EVENT",{to:t.id,from:j,rail_open:J}),"horoscopes"===t.id&&q(null),"knowledge"===t.id&&G(null),"calculators"===t.id&&Y(null),"reports"===t.id&&eH(null),N(t.id),ee(!1)}},t.id))}),(0,ey.jsx)("div",{className:"mlh-rail-reveal mt-1.5",style:{flex:"1 1 auto",minHeight:0},children:(0,ey.jsx)("div",{className:"flex h-full flex-col",children:(0,ey.jsxs)("div",{className:"mlh-in border-mlh-border flex min-h-0 flex-1 flex-col border-t px-3.5 pt-2.5 [--mlh-in-delay:280ms] [--mlh-in-y:6px]",children:[(0,ey.jsx)("div",{role:"group","aria-label":"Filter recent readings",className:"mb-0.5 flex flex-none gap-1",children:[["all","All","border-mlh-border-hi bg-mlh-surface text-mlh-text"],["chart","Vaani","border-mlh-plum-400/45 bg-mlh-plum/20 text-mlh-plum-300"],["pedia","Astropedia","border-mlh-orrery/40 bg-mlh-orrery/12 text-mlh-orrery-hi"]].map(([t,r,a])=>(0,ey.jsx)("button",{onClick:()=>{(0,eb.track)("THREAD_FILTER_CHANGED_WEB_EVENT",{filter:t}),e3(t),e9(12)},className:`cursor-pointer rounded-md border px-2 py-[4px] font-mono text-[8.5px] tracking-[0.1em] whitespace-nowrap uppercase transition ${e2===t?a:"text-mlh-faint hover:bg-mlh-surface/60 hover:text-mlh-text border-transparent"}`,children:r},t))}),(0,ey.jsxs)("div",{onScroll:t=>{let r=t.currentTarget;r.scrollHeight-r.scrollTop-r.clientHeight>48||e9(t=>{if(t>=rC.length)return t;let r=t+12;return(0,eb.track)("THREADS_PAGE_SHOWN_WEB_EVENT",{shown:r}),r})},role:"group","aria-label":"Recent readings",className:"mlh-thin-scroll min-h-0 flex-1 space-y-1 overflow-y-auto overscroll-contain pb-3 md:pb-1",children:[0===rC.length&&(rT?(0,ey.jsx)(kR,{}):(0,ey.jsx)("p",{className:"text-mlh-faint px-2 py-1.5 font-sans text-[15px] leading-snug text-balance",children:"all"===e2?"Your readings will appear here.":`No ${"chart"===e2?"Vaani":"Astropedia"} readings yet.`})),(x=rC.slice(0,e6),g=Date.now(),y=x.map(t=>{let r=Number(t.at??t.id);return{thread:t,hours:Number.isFinite(r)&&r>0?(g-r)/36e5:1/0}}),kT.map(([t,r])=>({label:t,items:y.filter(t=>r(t.hours)).map(t=>t.thread)})).filter(t=>t.items.length>0)).map((t,r)=>(0,ey.jsxs)("div",{children:[(0,ey.jsxs)("div",{className:`flex items-center gap-2 px-1.5 pb-1.5 ${0===r?"pt-0.5":"pt-3"}`,children:[(0,ey.jsx)("span",{className:"text-mlh-faint font-mono text-[8.5px] tracking-[0.22em] whitespace-nowrap",children:t.label}),(0,ey.jsx)("span",{className:"bg-mlh-border h-px flex-1"}),(0,ey.jsx)("span",{className:"text-mlh-faint/70 font-mono text-[8.5px]",children:String(t.items.length).padStart(2,"0")})]}),(0,ey.jsx)("div",{className:"space-y-1",children:t.items.map(t=>{let r=t.id===ea,a="pedia"===t.kind,n=a?ez.BookOpen:e$.SparkleIcon;return(0,ey.jsxs)("button",{onClick:()=>{let r;(0,eb.track)("THREAD_OPENED_WEB_EVENT",{kind:t.kind,turns:t.messages.filter(t=>"user"===t.role).length}),R((r=t.uuid&&!tY.current.has(t.uuid)?(t=>{if(!tM||!ei?.id||!t.uuid)return null;let r=t.messages.findIndex(t=>"vaani"===t.role&&"chart"===t.kind&&!!t.stream&&!t.stream.isComplete&&!t.stream.isError);if(r<0)return null;let a=[...t.messages.slice(0,r)].reverse().find(t=>"user"===t.role);return a&&"user"===a.role&&a.text?{question:a.text,rest:t.messages.filter((t,a)=>a!==r)}:null})(t):null)?r.rest:t.messages),en(t.id),tE.current=t.uuid??null,tS.current=t.analyticsId??null,M(t.mode),z(""),B(!1),N("ask"),ee(!1),r&&((0,eb.track)("ASK_REJOINED_WEB_EVENT"),rd(r.question,!eZ,!0)),ee(!1)},"data-kind":t.kind,className:`group flex w-full cursor-pointer items-start gap-2.5 rounded-lg px-2 py-[6px] text-left transition-[background,box-shadow,color] duration-150 ${r?"mlh-thread-on text-white":a?"text-mlh-muted hover:bg-mlh-plum-500/10 hover:text-white":"mlh-thread-chart text-mlh-text/85 hover:text-white"}
152`,children:[(0,ey.jsx)(n,{size:12,"aria-hidden":!0,className:`mt-[3px] flex-none transition-colors ${a?"text-mlh-orrery-hi group-hover:text-mlh-orrery":"text-mlh-plum-300 group-hover:text-mlh-plum-400"}`}),(0,ey.jsx)("span",{className:"flex-1 font-sans text-[11.5px] leading-[1.4]",children:t.title})]},t.id)})})]},t.label)),rT&&rC.length>0&&e6>=rC.length&&(0,ey.jsx)(kD,{})]})]})})}),(0,ey.jsx)("div",{className:"mlh-in border-mlh-border sticky bottom-0 z-10 mt-auto hidden flex-none border-t bg-[color-mix(in_srgb,var(--mlh-sidebar)_96%,transparent)] px-4 pt-2.5 pb-3 backdrop-blur-[6px] [--mlh-in-delay:320ms] [--mlh-in-y:8px] md:block",children:ei?(0,ey.jsx)(ey.Fragment,{children:(0,ey.jsxs)("button",{onClick:()=>ew(t=>!t),"aria-haspopup":"menu","aria-expanded":eg,className:`hover:bg-mlh-plum-500/12 -mx-4 -mt-2.5 -mb-3 flex w-[calc(100%+32px)] cursor-pointer items-center gap-3 px-4 pt-2.5 pb-3 text-left transition-colors ${eg?"bg-mlh-plum-500/12":""}`,children:[(0,ey.jsx)("span",{className:"mlh-focus-ring border-mlh-plum-400/40 text-mlh-plum-300 grid h-[38px] w-[38px] flex-none place-items-center rounded-full border bg-[radial-gradient(circle_at_35%_30%,rgba(179,116,154,0.35),rgba(179,116,154,0.08))] font-sans text-[15px]",children:ei.name[0]}),(0,ey.jsxs)("span",{className:"mlh-rail-label flex items-center gap-2",children:[(0,ey.jsx)("span",{className:"line-clamp-2 max-w-[104px] min-w-0 flex-1 font-sans text-[16px] leading-tight break-words whitespace-normal text-white",children:ei.name}),(0,ey.jsx)(kN,{size:15,className:"text-mlh-faint"})]})]})}):es?(0,ey.jsxs)("button",{onClick:()=>eh(!0),className:"flex w-full items-center gap-3 text-left",children:[(0,ey.jsx)("span",{className:"mlh-focus-ring border-mlh-plum-400/40 text-mlh-plum-300 grid h-[38px] w-[38px] flex-none place-items-center rounded-full border",children:(0,ey.jsx)(eD,{size:16})}),(0,ey.jsxs)("span",{className:"mlh-rail-label",children:[(0,ey.jsx)("span",{className:"block font-sans text-[16px] leading-tight text-white",children:"Log in"}),(0,ey.jsx)("span",{className:"text-mlh-plum-400 block font-mono text-[8.5px] tracking-[0.16em]",children:"BIND YOUR CHART"})]})]}):(0,ey.jsxs)("div",{className:"flex w-full items-center gap-3",children:[(0,ey.jsx)("span",{className:"border-mlh-border text-mlh-faint grid h-[38px] w-[38px] flex-none place-items-center rounded-full border",children:(0,ey.jsx)(e8.Loader2,{size:15,className:"animate-spin"})}),(0,ey.jsx)("span",{className:"mlh-rail-label text-mlh-faint font-mono text-[8.5px] tracking-[0.16em]",children:"CHECKING SESSION"})]})})]}),ei&&eg&&(0,ey.jsx)(bF,{user:ei,balance:P,onClose:()=>ew(!1),onBuyMore:()=>{ew(!1),eE("questions")},onSignOut:()=>{(ew(!1),tM)?((0,is.logout)(),tH()):eo(kA)},onBirth:()=>{ew(!1),eN(!0)},onInvoices:()=>{ew(!1),ee(!1),N("invoices")},onLegal:t=>{ew(!1),ee(!1),E(t),N("legal")},freeUsed:eZ,balanceKnown:eG,reportCredits:eS,onBuyReports:()=>{ew(!1),eE("reports")}}),(0,ey.jsxs)("main",{ref:t_,className:"relative min-w-0 flex-1 overflow-y-auto",children:[(0,ey.jsxs)("div",{className:"bg-mlh-sidebar border-mlh-border mlh-in sticky top-0 z-30 flex items-center gap-2 border-b px-4 py-3 [--mlh-in-y:-8px] md:hidden",children:[(0,ey.jsx)("div",{className:"flex flex-1 justify-start",children:(0,ey.jsx)("button",{onClick:()=>{(0,eb.track)("MOBILE_NAV_TOGGLED_WEB_EVENT",{open:!0}),ee(!0)},"aria-label":"Open menu",className:"text-mlh-text p-1",children:(0,ey.jsx)(k_,{size:22})})}),(0,ey.jsxs)(bO.default,{href:"/",prefetch:!1,onClick:t=>{t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||(t.preventDefault(),ry())},"aria-label":"Melooha home",className:"flex flex-none items-center gap-2.5",children:[(0,ey.jsx)("span",{className:"h-[30px] w-[30px] flex-none overflow-hidden rounded-full",children:(0,ey.jsx)(tq,{className:"h-full w-full object-cover"})}),(0,ey.jsx)("span",{className:"font-serif text-[19px] leading-none text-white",children:"Melooha"})]}),(0,ey.jsx)("div",{className:"flex flex-1 justify-end",children:ei?(0,ey.jsx)("button",{onClick:()=>{ee(!1),ew(t=>!t)},"aria-haspopup":"menu","aria-expanded":eg,"aria-label":"Account",className:"mlh-focus-ring border-mlh-plum-400/40 text-mlh-plum-300 grid h-8 w-8 flex-none place-items-center rounded-full border bg-[radial-gradient(circle_at_35%_30%,rgba(179,116,
152154,0.35),rgba(179,116,154,0.08))] font-sans text-[13px]",children:ei.name[0]}):es?(0,ey.jsx)("button",{onClick:()=>eh(!0),className:"text-mlh-plum-300 text-[13px] font-semibold",children:"Log in"}):(0,ey.jsx)(e8.Loader2,{size:16,className:"text-mlh-faint animate-spin"})})]}),"ask"===j&&(0===D.length?(0,ey.jsx)(te,{mode:I,setMode:M,input:$,setInput:rx,send:rg,balance:P,onGetMore:()=>eE("questions"),loggedIn:!!ei,freeUsed:eZ,balanceKnown:eG,pediaLocked:t$("astropedia"),onSignIn:()=>eh(!0),queued:tn?.text??null,prefill:L,exempt:U}):(0,ey.jsx)(ru,{messages:D,input:$,setInput:rx,mode:I,balance:P,send:rg,endRef:tN,onGetMore:()=>eE("questions"),onFollowup:(t,r)=>{(0,eb.track)("FOLLOWUP_CLICKED_WEB_EVENT",{mode:r}),rg(t,r,void 0,"followup")},onFeedback:(t,r)=>void rh(t,r),onFeedbackNote:(t,r,a)=>void rp(t,r,a),onBuy:t=>{let r=t.reportId;if(tW.includes(r)){eH(r),N("reports");return}rt({type:"unlock",id:r,reason:`Unlock your ${gJ(r)} report`})||(eS>0?t9([r]):(eO(r),eE("reports")))},onBuyOffer:t=>{let r=tc.find(r=>r.planId===t.planId);r&&"compatibility"!==r.kind?(eE(null),tt({...g6(r),...t.promo?{code:t.promo}:{},kind:r.kind,unit:"questions"===r.kind?"Questions":"Reports"})):window.open(t.href,"_blank","noopener,noreferrer")},onNewThread:()=>ry(),loggedIn:!!ei,freeUsed:eZ,balanceKnown:eG,pediaLocked:t$("astropedia"),onSignIn:()=>eh(!0),queued:tn?.text??null,prefill:L,exempt:U,answering:tP,offerStart:e0,pack:(v=(b=tc.filter(t=>"questions"===t.kind)).find(t=>/popular/i.test(t.badge??""))??b.reduce((t,r)=>t&&t.off>=r.off?t:r,void 0))?{...gU,title:v.name,qty:v.count,price:(0,ev.money)(v.price,v.currency),mrp:(0,ev.money)(v.mrp,v.currency),perUnit:(0,ev.unitPrice)(v.price,v.count,v.currency),off:`${v.off}% off`}:gU})),"horoscopes"===j&&(0,ey.jsx)(wc,{selected:V,setSelected:q,period:H,setPeriod:Z,onAsk:rf,user:ei,openCalculator:rb,initialReadings:u,initialPeriod:n,initialReadingsComplete:h,initialVersions:p,feedConfigured:m||tI,asOf:f}),"knowledge"===j&&(0,ey.jsx)(b3,{selected:K,body:o??null,openCalculator:rb,onAsk:rf}),"calculators"===j&&(0,ey.jsx)(vc,{selected:F,setSelected:Y,live:tM,user:ei,onAsk:rf,locked:t$("calculator"),gateReady:tD,onRequireAuth:()=>{em(t=>({...t,remaining:{...t.remaining,calculator:0}})),eh(!0)},onComputed:()=>!ei&&tz("calculator")}),"reports"===j&&((w=eq?gZ.find(t=>t.id===eq):void 0)?(0,ey.jsx)(w6,{report:w,credits:eS,unlocked:tW,accountReady:tL,packCurrency:re,...tB(w.id),onBack:()=>eH(null),onRead:()=>t4(w.id),onGet:t=>{tW.includes(t)||rt({type:"unlock",id:t,reason:`Unlock your ${gJ(t)} report`})||(eS>0?t9([t]):(eO(t),eE("reports")))},onAsk:()=>{eH(null),rf("")}}):(0,ey.jsx)(ki,{credits:eS,unlocked:tW,catalogue:function(t){let r=new Map;for(let a of t){if(!a.active&&!a.unlocked||!gK(ye(a.name)))continue;let t=a.category??"Reports",n=r.get(t)??{order:a.categoryOrder,items:[]};n.items.push(a),r.set(t,n)}if(!r.size)return null;let a=(t,r)=>t.order-r.order||String(t.id).localeCompare(String(r.id),"en",{numeric:!0});return[...r].sort(([,t],[,r])=>t.order-r.order).map(([t,r])=>({cat:t,items:r.items.sort(a).map(t=>{let{tag:r,...a}=gK(ye(t.name));return{...a,name:t.name,blurb:t.blurb??a.blurb,...t.tag?{tag:t.tag}:{}}})}))}([...th.values()]),history:eY,loading:null===tT||tM&&!tm,...tM&&ei?.id?{userId:ei.id}:{},onOpenReport:t=>eH(t),onUnlockMany:t=>{rt({type:"pack",reason:"Unlock premium reports"})||t9(t)},onBuyReports:()=>{rt({type:"pack",reason:"Unlock premium reports"})||eE("reports")}})),"artha"===j&&(k=t7(),(0,ey.jsx)(wX,{owned:tU,credits:eT,accountReady:tL,onUnlock:()=>{rt({type:"unlock",id:"artha",reason:"Unlock Artha Sutram, your wealth blueprint"})||t9(["artha"])},...tB("artha"),price:k.price,mrp:k.mrp,currency:k.currency,onRead:()=>t4("artha"),onBuy:()=>{rt({type:"artha",reason:"Unlock Artha Sutram, your wealth blueprint"})||tt(k)},onAsk:()=>rf("What does my birth chart say about my money?\n- Which wealth yogas do I have?\n- Which income paths suit me best?\n- When are my strongest periods for earning and saving?")})),"news"===j&&(0,ey.jsx)(wE,{}),"legal"===j&&(0,ey.jsx)(wh,{doc:br[_],onOpen:E}),"company"===j&&(0,ey.jsx)(vY,{page:S,jobId:T,onOpen:r_}),"invoices"===j&&(0,ey.jsx)(vy,{ready:tO,live:tM,signedIn:!!ei,onSignIn:()=>eh(!0)}),!("ask"===j&&D.length>0)&&(0,ey.jsx)(kc,{onOpen:t=>{"/"===t?ry():r_(t)}})]}),eu&&(0,ey.jsx)(y5,{reason:tr?.text??to?.reason,pedia:tr?.kind==="pedia",prefill:tr?.text??"",skipSnapsh
152ot:!!to&&!tr,live:tM,otpless:tA,...void 0!==ed?{resume:ed}:{},onClose:()=>{eh(!1),ec(void 0),ta(null),ts(null)},onDone:(t,r,a)=>{if(eo(t),eh(!1),ec(void 0),tM&&t.id&&(eJ(!1),tG(),tJ(t.id),tg(!1),tX(t.id)),to||a||td(!0),tr){let t=tr.kind;M("chart"===t?"chart":"astropedia"),N("ask"),ta({...tr,text:r?.trim()||tr.text,..."chart"===t?{free:!0}:{}}),ts(null);return}if(r&&r.trim()){M("chart"),N("ask"),R([]),en(null),ta({text:r.trim(),kind:"chart",free:!0}),ts(null);return}if(to){ts(null),ta(null),rr(to);return}ta(null)}}),ej&&ei&&(0,ey.jsx)(y8,{user:ei,live:tM,onClose:()=>eN(!1),onSave:t=>{eo(r=>r?{...r,...t}:r),eN(!1)}}),e_&&(0,ey.jsx)(vT,{kind:e_,plans:tc.filter(t=>t.kind===e_).map(g6),onClose:()=>{eE(null),eO(null)},onChoose:t=>{eE(null),tt(t)}}),e7&&(0,ey.jsx)(vW,{plan:e7,live:tM,...ei?.id?{userId:ei.id}:{},...ei?.groupId?{groupId:ei.groupId}:{},...ei?.pob?{birthPlace:ei.pob}:{},...ei?.countryCode?{countryCode:ei.countryCode}:{},..."artha"===e7.kind?{reportId:"artha"}:eP?{reportId:eP}:{},onBack:()=>{let t=e7.kind;tt(null),("questions"===t||"reports"===t)&&eE(t)},onClose:()=>{tt(null),eO(null)},onComplete:t=>{if(tM){tG(),ei?.id&&tJ(ei.id),"artha"===t.kind&&(eF(!0),t6("artha"));return}"questions"===t.kind?O(r=>r+t.count):"reports"===t.kind?eC(r=>r+t.count):(eF(!0),t2("artha","Artha Sutram"))}}),(0,ey.jsx)(yy,{notices:tw.visible,onDismiss:tw.dismiss}),tl&&(0,ey.jsx)(kh,{onClose:()=>td(!1)})]})}],67178)},89984,(t,r,a)=>{var n={872:function(t,r){"use strict";r.byteLength=function(t){var r=d(t),a=r[0],n=r[1];return(a+n)*3/4-n},r.toByteArray=function(t){var r,a,o=d(t),s=o[0],l=o[1],c=new i((s+l)*3/4-l),u=0,h=l>0?s-4:s;for(a=0;a<h;a+=4)r=n[t.charCodeAt(a)]<<18|n[t.charCodeAt(a+1)]<<12|n[t.charCodeAt(a+2)]<<6|n[t.charCodeAt(a+3)],c[u++]=r>>16&255,c[u++]=r>>8&255,c[u++]=255&r;return 2===l&&(r=n[t.charCodeAt(a)]<<2|n[t.charCodeAt(a+1)]>>4,c[u++]=255&r),1===l&&(r=n[t.charCodeAt(a)]<<10|n[t.charCodeAt(a+1)]<<4|n[t.charCodeAt(a+2)]>>2,c[u++]=r>>8&255,c[u++]=255&r),c},r.fromByteArray=function(t){for(var r,n=t.length,i=n%3,o=[],s=0,l=n-i;s<l;s+=16383)o.push(function(t,r,n){for(var i,o=[],s=r;s<n;s+=3)i=(t[s]<<16&0xff0000)+(t[s+1]<<8&65280)+(255&t[s+2]),o.push(a[i>>18&63]+a[i>>12&63]+a[i>>6&63]+a[63&i]);return o.join("")}(t,s,s+16383>l?l:s+16383));return 1===i?o.push(a[(r=t[n-1])>>2]+a[r<<4&63]+"=="):2===i&&o.push(a[(r=(t[n-2]<<8)+t[n-1])>>10]+a[r>>4&63]+a[r<<2&63]+"="),o.join("")};for(var a=[],n=[],i="u">typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,l=o.length;s<l;++s)a[s]=o[s],n[o.charCodeAt(s)]=s;function d(t){var r=t.length;if(r%4>0)throw Error("Invalid string. Length must be a multiple of 4");var a=t.indexOf("=");-1===a&&(a=r);var n=a===r?0:4-a%4;return[a,n]}n[45]=62,n[95]=63},230:function(t,r,a){"use strict";var n=a(872),i=a(321),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function s(t){if(t>0x7fffffff)throw RangeError('The value "'+t+'" is invalid for option "size"');var r=new Uint8Array(t);return Object.setPrototypeOf(r,l.prototype),r}function l(t,r,a){if("number"==typeof t){if("string"==typeof r)throw TypeError('The "string" argument must be of type string. Received type number');return u(t)}return d(t,r,a)}function d(t,r,a){if("string"==typeof t){var n=t,i=r;if(("string"!=typeof i||""===i)&&(i="utf8"),!l.isEncoding(i))throw TypeError("Unknown encoding: "+i);var o=0|m(n,i),d=s(o),c=d.write(n,i);return c!==o&&(d=d.slice(0,c)),d}if(ArrayBuffer.isView(t))return h(t);if(null==t)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(A(t,ArrayBuffer)||t&&A(t.buffer,ArrayBuffer)||"u">typeof SharedArrayBuffer&&(A(t,SharedArrayBuffer)||t&&A(t.buffer,SharedArrayBuffer)))return function(t,r,a){var n;if(r<0||t.byteLength<r)throw RangeError('"offset" is outside of buffer bounds');if(t.byteLength<r+(a||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(n=void 0===r&&void 0===a?new Uint8Array(t):void 0===a?new Uint8Array(t,r):new Uint8Array(t,r,a),l.prototype),n}(t,r,a);if("number"==typeof t)throw TypeError('The "value" argument must not be of type number. Received type number');var u=t.valueOf&&t.valueOf();if(null!=u&&u!==t)return l.from(u,r,a);var f=function(t){if(l.isBuffer(t)){var r=0|p(t.length),a=s(r);return 0===a.length||t.copy(a,0,0,r),a}return void 0!==t.length?"number"!=typeof t.length||function(t){return t!=t}(t.length)?s(0):h(t):"Buffer"===t.type&&Array.isArray(t.data)?h(t.data):void 0}(t);if(f)return f;if("u">typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return l.from(t[Symbol.toPrimitive]("string"),r,a);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function c(t){if("number"!=typeof t)throw TypeError('"size" argument must be of type number');
vendor: 16,509 bytes, line 152
152if(t<0)throw RangeError('The value "'+t+'" is invalid for option "size"')}function u(t){return c(t),s(t<0?0:0|p(t))}function h(t){for(var r=t.length<0?0:0|p(t.length),a=s(r),n=0;n<r;n+=1)a[n]=255&t[n];return a}r.Buffer=l,r.SlowBuffer=function(t){return+t!=t&&(t=0),l.alloc(+t)},r.INSPECT_MAX_BYTES=50,r.kMaxLength=0x7fffffff,l.TYPED_ARRAY_SUPPORT=function(){try{var t=new Uint8Array(1),r={foo:function(){return 42}};return Object.setPrototypeOf(r,Uint8Array.prototype),Object.setPrototypeOf(t,r),42===t.foo()}catch(t){return!1}}(),!l.TYPED_ARRAY_SUPPORT&&"u">typeof console&&"function"==typeof console.error&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(l.prototype,"parent",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.buffer}}),Object.defineProperty(l.prototype,"offset",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.byteOffset}}),l.poolSize=8192,l.from=function(t,r,a){return d(t,r,a)},Object.setPrototypeOf(l.prototype,Uint8Array.prototype),Object.setPrototypeOf(l,Uint8Array),l.alloc=function(t,r,a){return(c(t),t<=0)?s(t):void 0!==r?"string"==typeof a?s(t).fill(r,a):s(t).fill(r):s(t)},l.allocUnsafe=function(t){return u(t)},l.allocUnsafeSlow=function(t){return u(t)};function p(t){if(t>=0x7fffffff)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|t}function m(t,r){if(l.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||A(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var a=t.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===a)return 0;for(var i=!1;;)switch(r){case"ascii":case"latin1":case"binary":return a;case"utf8":case"utf-8":return E(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*a;case"hex":return a>>>1;case"base64":return C(t).length;default:if(i)return n?-1:E(t).length;r=(""+r).toLowerCase(),i=!0}}function f(t,r,a){var i,o,s,l=!1;if((void 0===r||r<0)&&(r=0),r>this.length||((void 0===a||a>this.length)&&(a=this.length),a<=0||(a>>>=0)<=(r>>>=0)))return"";for(t||(t="utf8");;)switch(t){case"hex":return function(t,r,a){var n=t.length;(!r||r<0)&&(r=0),(!a||a<0||a>n)&&(a=n);for(var i="",o=r;o<a;++o)i+=I[t[o]];return i}(this,r,a);case"utf8":case"utf-8":return b(this,r,a);case"ascii":return function(t,r,a){var n="";a=Math.min(t.length,a);for(var i=r;i<a;++i)n+=String.fromCharCode(127&t[i]);return n}(this,r,a);case"latin1":case"binary":return function(t,r,a){var n="";a=Math.min(t.length,a);for(var i=r;i<a;++i)n+=String.fromCharCode(t[i]);return n}(this,r,a);case"base64":return i=this,o=r,s=a,0===o&&s===i.length?n.fromByteArray(i):n.fromByteArray(i.slice(o,s));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(t,r,a){for(var n=t.slice(r,a),i="",o=0;o<n.length;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}(this,r,a);default:if(l)throw TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),l=!0}}function x(t,r,a){var n=t[r];t[r]=t[a],t[a]=n}function g(t,r,a,n,i){var o;if(0===t.length)return -1;if("string"==typeof a?(n=a,a=0):a>0x7fffffff?a=0x7fffffff:a<-0x80000000&&(a=-0x80000000),(o=a*=1)!=o&&(a=i?0:t.length-1),a<0&&(a=t.length+a),a>=t.length)if(i)return -1;else a=t.length-1;else if(a<0)if(!i)return -1;else a=0;if("string"==typeof r&&(r=l.from(r,n)),l.isBuffer(r))return 0===r.length?-1:y(t,r,a,n,i);if("number"==typeof r){if(r&=255,"function"==typeof Uint8Array.prototype.indexOf)if(i)return Uint8Array.prototype.indexOf.call(t,r,a);else return Uint8Array.prototype.lastIndexOf.call(t,r,a);return y(t,[r],a,n,i)}throw TypeError("val must be string, number or Buffer")}function y(t,r,a,n,i){var o,s=1,l=t.length,d=r.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||r.length<2)return -1;s=2,l/=2,d/=2,a/=2}function c(t,r){return 1===s?t[r]:t.readUInt16BE(r*s)}if(i){var u=-1;for(o=a;o<l;o++)if(c(t,o)===c(r,-1===u?0:o-u)){if(-1===u&&(u=o),o-u+1===d)return u*s}else -1!==u&&(o-=o-u),u=-1}else for(a+d>l&&(a=l-d),o=a;o>=0;o--){for(var h=!0,p=0;p<d;p++)if(c(t,o+p)!==c(r,p)){h=!1;break}if(h)return o}return -1}l.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==l.prototype},l.compare=function(t,r){if(A(t,Uint8Array)&&(t=l.from(t,t.offset,t.byteLength)),A(r,Uint8Array)&&(r=l.from(r,r.offset,r.byteLength)),!l.isBuffer(t)||!l.isBuffer(r))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===r)return 0;for(var a=t.length,n=r.length,i=0,o=Math.min(a,n);i<o;++i)if(t[i]!==r[i]){a=t[i],n=r[i];break}return a<n?-1:+(n<a)},l.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(t,r){if(!Array.isArray(t))throw TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return l.alloc(0);if(void 0===r)for(a=0,r=0;a<t.length;++a)r+=t[a].length;var a,n=l.allocUnsafe(r),i=0;for(a=0;a<t.length;++a){var o=t[a];if(A(o,Uint8Array)&&(o=l.from(o)),!l.isBuffer(o))throw TypeError('"list" argument must be an Array of Buffers');o.copy(n,i),i+=o.length}return n},l.byteLength=m,l.prototype._isBuffer=!0,l.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var r=0;r<t;r+=2)x(this,r,r+1);return this},l.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var r=0;r<t;r+=4)x(this,r,r+3),x(this,r+1,r+2);return this},l.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var r=0;r<t;r+=8)x(this,r,r+7),x(this,r+1,r+6),x(this,r+2,r+5),x(this,r+3,r+4);return this},l.prototype.toString=function(){var t=this.length;return 0===t?"":0==arguments.length?b(this,0,t):f.apply(this,arguments)},l.prototype.toLocaleString=l.prototype.toString,l.prototype.equals=function(t){if(!l.isBuffer(t))throw TypeError("Argument must be a Buffer");return this===t||0===l.compare(this,t)},l.prototype.inspect=function(){var t="",a=r.INSPECT_MAX_BYTES;return t=this.toString("hex",0,a).replace(/(.{2})/g,"$1 ").trim(),this.length>a&&(t+=" ... "),"<Buffer "+t+">"},o&&(l.prototype[o]=l.prototype.inspect),l.prototype.compare=function(t,r,a,n,i){if(A(t,Uint8Array)&&(t=l.from(t,t.offset,t.byteLength)),!l.isBuffer(t))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===r&&(r=0),void 0===a&&(a=t?t.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),r<0||a>t.length||n<0||i>this.length)throw RangeError("out of range index");if(n>=i&&r>=a)return 0;if(n>=i)return -1;if(r>=a)return 1;if(r>>>=0,a>>>=0,n>>>=0,i>>>=0,this===t)return 0;for(var o=i-n,s=a-r,d=Math.min(o,s),c=this.slice(n,i),u=t.slice(r,a),h=0;h<d;++h)if(c[h]!==u[h]){o=c[h],s=u[h];break}return o<s?-1:+(s<o)},l.prototype.includes=function(t,r,a){return -1!==this.indexOf(t,r,a)},l.prototype.indexOf=function(t,r,a){return g(this,t,r,a,!0)},l.prototype.lastIndexOf=function(t,r,a){return g(this,t,r,a,!1)};function b(t,r,a){a=Math.min(t.length,a);for(var n=[],i=r;i<a;){var o,s,l,d,c=t[i],u=null,h=c>239?4:c>223?3:c>191?2:1;if(i+h<=a)switch(h){case 1:c<128&&(u=c);break;case 2:(192&(o=t[i+1]))==128&&(d=(31&c)<<6|63&o)>127&&(u=d);break;case 3:o=t[i+1],s=t[i+2],(192&o)==128&&(192&s)==128&&(d=(15&c)<<12|(63&o)<<6|63&s)>2047&&(d<55296||d>57343)&&(u=d);break;case 4:o=t[i+1],s=t[i+2],l=t[i+3],(192&o)==128&&(192&s)==128&&(192&l)==128&&(d=(15&c)<<18|(63&o)<<12|(63&s)<<6|63&l)>65535&&d<1114112&&(u=d)}null===u?(u=65533,h=1):u>65535&&(u-=65536,n.push(u>>>10&1023|55296),u=56320|1023&u),n.push(u),i+=h}var p=n,m=p.length;if(m<=4096)return String.fromCharCode.apply(String,p);for(var f="",x=0;x<m;)f+=String.fromCharCode.apply(String,p.slice(x,x+=4096));return f}function v(t,r,a){if(t%1!=0||t<0)throw RangeError("offset is not uint");if(t+r>a)throw RangeError("Trying to access beyond buffer length")}function w(t,r,a,n,i,o){if(!l.isBuffer(t))throw TypeError('"buffer" argument must be a Buffer instance');if(r>i||r<o)throw RangeError('"value" argument is out of bounds');if(a+n>t.length)throw RangeError("Index out of range")}function k(t,r,a,n,i,o){if(a+n>t.length||a<0)throw RangeError("Index out of range")}function j(t,r,a,n,o){return r*=1,a>>>=0,o||k(t,r,a,4,34028234663852886e22,-34028234663852886e22),i.write(t,r,a,n,23,4),a+4}function N(t,r,a,n,o){return r*=1,a>>>=0,o||k(t,r,a,8,17976931348623157e292,-17976931348623157e292),i.write(t,r,a,n,52,8),a+8}l.prototype.write=function(t,r,a,n){if(void 0===r)n="utf8",a=this.length,r=0;else if(void 0===a&&"string"==typeof r)n=r,a=this.length,r=0;else if(isFinite(r))r>>>=0,isFinite(a)?(a>>>=0,void 0===n&&(n="utf8")):(n=a,a=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i,o,s,l,d,c,u,h,p=this.length-r;if((void 0===a||a>p)&&(a=p),t.length>0&&(a<0||r<0)||r>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var m=!1;;)switch(n){case"hex":return function(t,r,a,n){a=Number(a)||0;var i=t.length-a;n?(n=Number(n))>i&&(n=i):n=i;var o=r.length;n>o/2&&(n=o/2);for(var s=0;s<n;++s){var l,d=parseInt(r.substr(2*s,2),16);if((l=d)!=l)break;t[a+s]=d}return s}(this,t,r,a);case"utf8":case"utf-8":return i=r,o=a,T(E(t,this.length-i),this,i,o);case"ascii":return s=r,l=a,T(S(t),this,s,l);case"latin1":case"binary":return function(t,r,a,n){return T(S(r),t,a,n)}(this,t,r,a);case"base64":return d=r,c=a,T(C(t),this,d,c);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return u=r,h=a,T(function(t,r){for(var a,n,i=[],o=0;o<t.length&&!((r-=2)<0);++o)n=(a=t.charCodeAt(o))>>8,i.push(a%256),i.push(n);return i}(t,this.length-u),this,u,h);default:if(m)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),m=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},l.prototype.slice=function(t,r){var a=this.length;t=~~t,r=void 0===r?a:~~r,t<0?(t+=a)<0&&(t=0):t>a&&(t=a),r<0?(r+=a)<0&&(r=0):r>a&&(r=a),r<t&&(r=t);var n=this.subarray(t,r);return Object.setPrototypeOf(n,l.prototype),n},l.prototype.readUIntLE=function(t,r,a){t>>>=0,r>>>=0,a||v(t,r,this.length);for(var n=this[t],i=1,o=0;++o<r&&(i*=256);)n+=this[t+o]*i;return n},l.prototype.readUIntBE=function(t,r,a){t>>>=0,r>>>=0,a||v(t,r,this.length);for(var n=this[t+--r],i=1;r>0&&(i*=256);)n+=this[t+--r]*i;return n},l.prototype.readUInt8=function(t,r){return t>>>=0,r||v(t,1,this.length),this[t]},l.prototype.readUInt16LE=function(t,r){return t>>>=0,r||v(t,2,this.length),this[t]|this[t+1]<<8},l.prototype.readUInt16BE=function(t,r){return t>>>=0,r||v(t,2,this.length),this[t]<<8|this[t+1]},l.prototype.readUInt32LE=function(t,r){return t>>>=0,r||v(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+0x1000000*this[t+3]},l.prototype.readUInt32BE=function(t,r){return t>>>=0,r||v(t,4,this.length),0x1000000*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},l.prototype.readIntLE=function(t,r,a){t>>>=0,r>>>=0,a||v(t,r,this.length);for(var n=this[t],i=1,o=0;++o<r&&(i*=256);)n+=this[t+o]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*r)),n},l.prototype.readIntBE=function(t,r,a){t>>>=0,r>>>=0,a||v(t,r,this.length);for(var n=r,i=1,o=this[t+--n];n>0&&(i*=256);)o+=this[t+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*r)),o},l.prototype.readInt8=function(t,r){return(t>>>=0,r||v(t,1,this.length),128&this[t])?-((255-this[t]+1)*1):this[t]},l.prototype.readInt16LE=function(t,r){t>>>=0,r||v(t,2,this.length);var a=this[t]|this[t+1]<<8;return 32768&a?0xffff0000|a:a},l.prototype.readInt16BE=function(t,r){t>>>=0,r||v(t,2,this.length);var a=this[t+1]|this[t]<<8;return 32768&a?0xffff0000|a:a},l.prototype.readInt32LE=function(t,r){return t>>>=0,r||v(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},l.prototype.readInt32BE=function(t,r){return t>>>=0,r||v(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},l.prototype.readFloatLE=function(t,r){return t>>>=0,r||v(t,4,this.length),i.read(this,t,!0,23,4)},l.prototype.readFloatBE=function(t,r){return t>>>=0,r||v(t,4,this.length),i.read(this,t,!1,23,4)},l.prototype.readDoubleLE=function(t,r){return t>>>=0,r||v(t,8,this.length),i.read(this,t,!0,52,8)},l.prototype.readDoubleBE=function(t,r){return t>>>=0,r||v(t,8,this.length),i.read(this,t,!1,52,8)},l.prototype.writeUIntLE=function(t,r,a,n){if(t*=1,r>>>=0,a>>>=0,!n){var i=Math.pow(2,8*a)-1;w(this,t,r,a,i,0)}var o=1,s=0;for(this[r]=255&t;++s<a&&(o*=256);)this[r+s]=t/o&255;return r+a},l.prototype.writeUIntBE=function(t,r,a,n){if(t*=1,r>>>=0,a>>>=0,!n){var i=Math.pow(2,8*a)-1;w(this,t,r,a,i,0)}var o=a-1,s=1;for(this[r+o]=255&t;--o>=0&&(s*=256);)this[r+o]=t/s&255;return r+a},l.prototype.writeUInt8=function(t,r,a){return t*=1,r>>>=0,a||w(this,t,r,1,255,0),this[r]=255&t,r+1},l.prototype.writeUInt16LE=function(t,r,a){return t*=1,r>>>=0,a||w(this,t,r,2,65535,0),this[r]=255&t,this[r+1]=t>>>8,r+2},l.prototype.writeUInt16BE=function(t,r,a){return t*=1,r>>>=0,a||w(this,t,r,2,65535,0),this[r]=t>>>8,this[r+1]=255&t,r+2},l.prototype.writeUInt32LE=function(t,r,a){return t*=1,r>>>=0,a||w(this,t,r,4,0xffffffff,0),this[r+3]=t>>>24,this[r+2]=t>>>16,this[r+1]=t>>>8,this[r]=255&t,r+4},l.prototype.writeUInt32BE=function(t,r,a){return t*=1,r>>>=0,a||w(this,t,r,4,0xffffffff,0),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=255&t,r+4},l.prototype.writeIntLE=function(t,r,a,n){if(t*=1,r>>>=0,!n){var i=Math.pow(2,8*a-1);w(this,t,r,a,i-1,-i)}var o=0,s=1,l=0;for(this[r]=255&t;++o<a&&(s*=256);)t<0&&0===l&&0!==this[r+o-1]&&(l=1),this[r+o]=(t/s|0)-l&255;return r+a},l.prototype.writeIntBE=function(t,r,a,n){if(t*=1,r>>>=0,!n){var i=Math.pow(2,8*a-1);w(this,t,r,a,i-1,-i)}var o=a-1,s=1,l=0;for(this[r+o]=255&t;--o>=0&&(s*=256);)t<0&&0===l&&0!==this[r+o+1]&&(l=1),this[r+o]=(t/s|0)-l&255;return r+a},l.prototype.writeInt8=function(t,r,a){return t*=1,r>>>=0,a||w(this,t,r,1,127,-128),t<0&&(t=255+t+1),this[r]=255&t,r+1},l.prototype.writeInt16LE=function(t,r,a){return t*=1,r>>>=0,a||w(this,t,r,2,32767,-32768),this[r]=255&t,this[r+1]=t>>>8,r+2},l.prototype.writeInt16BE=function(t,r,a){return t*=1,r>>>=0,a||w(this,t,r,2,32767,-32768),this[r]=t>>>8,this[r+1]=255&t,r+2},l.prototype.writeInt32LE=function(t,r,a){return t*=1,r>>>=0,a||w(this,t,r,4,0x7fffffff,-0x80000000),this[r]=255&t,this[r+1]=t>>>8,this[r+2]=t>>>16,this[r+3]=t>>>24,r+4},l.prototype.writeInt32BE=function(t,r,a){return t*=1,r>>>=0,a||w(this,t,r,4,0x7fffffff,-0x80000000),t<0&&(t=0xffffffff+t+1),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=255&t,r+4},l.prototype.writeFloatLE=function(t,r,a){return j(this,t,r,!0,a)},l.prototype.writeFloatBE=function(t,r,a){return j(this,t,r,!1,a)},l.prototype.writeDoubleLE=function(t,r,a){return N(this,t,r,!0,a)},l.prototype.writeDoubleBE=function(t,r,a){return N(this,t,r,!1,a)},l.prototype.copy=function(t,r,a,n){if(!l.isBuffer(t))throw TypeError("argument should be a Buffer");if(a||(a=0),n||0===n||(n=this.length),r>=t.length&&(r=t.length),r||(r=0),n>0&&n<a&&(n=a),n===a||0===t.length||0===this.length)return 0;if(r<0)throw RangeError("targetStart out of bounds");if(a<0||a>=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-r<n-a&&(n=t.length-r+a);var i=n-a;if(this===t&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(r,a,n);else if(this===t&&a<r&&r<n)for(var o=i-1;o>=0;--o)t[o+r]=this[o+a];else Uint8Array.prototype.set.call(t,this.subarray(a,n),r);return i},l.prototype.fill=function(t,r,a,n){if("string"==typeof t){if("string"==typeof r?(n=r,r=0,a=this.length):"string"==typeof a&&(n=a,a=this.length),void 0!==n&&"string"!=typeof n)throw TypeError("encoding must be a string");if("string"==typeof n&&!l.isEncoding(n))throw TypeError("Unknown encoding: "+n);if(1===t.length){var i,o=t.charCodeAt(0);("utf8"===n&&o<128||"latin1"===n)&&(t=o)}}else"number"==typeof t?t&=255:"boolean"==typeof t&&(t=Number(t));if(r<0||this.length<r||this.length<a)throw RangeError("Out of range index");if(a<=r)return this;if(r>>>=0,a=void 0===a?this.length:a>>>0,t||(t=0),"number"==typeof t)for(i=r;i<a;++i)this[i]=t;else{var s=l.isBuffer(t)?t:l.from(t,n),d=s.length;
152if(0===d)throw TypeError('The value "'+t+'" is invalid for argument "value"');for(i=0;i<a-r;++i)this[i+r]=s[i%d]}return this};var _=/[^+/0-9A-Za-z-_]/g;function E(t,r){r=r||1/0;for(var a,n=t.length,i=null,o=[],s=0;s<n;++s){if((a=t.charCodeAt(s))>55295&&a<57344){if(!i){if(a>56319||s+1===n){(r-=3)>-1&&o.push(239,191,189);continue}i=a;continue}if(a<56320){(r-=3)>-1&&o.push(239,191,189),i=a;continue}a=(i-55296<<10|a-56320)+65536}else i&&(r-=3)>-1&&o.push(239,191,189);if(i=null,a<128){if((r-=1)<0)break;o.push(a)}else if(a<2048){if((r-=2)<0)break;o.push(a>>6|192,63&a|128)}else if(a<65536){if((r-=3)<0)break;o.push(a>>12|224,a>>6&63|128,63&a|128)}else if(a<1114112){if((r-=4)<0)break;o.push(a>>18|240,a>>12&63|128,a>>6&63|128,63&a|128)}else throw Error("Invalid code point")}return o}function S(t){for(var r=[],a=0;a<t.length;++a)r.push(255&t.charCodeAt(a));return r}function C(t){return n.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(_,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function T(t,r,a,n){for(var i=0;i<n&&!(i+a>=r.length)&&!(i>=t.length);++i)r[i+a]=t[i];return i}function A(t,r){return t instanceof r||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===r.name}var I=function(){for(var t="0123456789abcdef",r=Array(256),a=0;a<16;++a)for(var n=16*a,i=0;i<16;++i)r[n+i]=t[a]+t[i];return r}()},321:function(t,r){r.read=function(t,r,a,n,i){var o,s,l=8*i-n-1,d=(1<<l)-1,c=d>>1,u=-7,h=a?i-1:0,p=a?-1:1,m=t[r+h];for(h+=p,o=m&(1<<-u)-1,m>>=-u,u+=l;u>0;o=256*o+t[r+h],h+=p,u-=8);for(s=o&(1<<-u)-1,o>>=-u,u+=n;u>0;s=256*s+t[r+h],h+=p,u-=8);if(0===o)o=1-c;else{if(o===d)return s?NaN:1/0*(m?-1:1);s+=Math.pow(2,n),o-=c}return(m?-1:1)*s*Math.pow(2,o-n)},r.write=function(t,r,a,n,i,o){var s,l,d,c=8*o-i-1,u=(1<<c)-1,h=u>>1,p=5960464477539062e-23*(23===i),m=n?0:o-1,f=n?1:-1,x=+(r<0||0===r&&1/r<0);for(isNaN(r=Math.abs(r))||r===1/0?(l=+!!isNaN(r),s=u):(s=Math.floor(Math.log(r)/Math.LN2),r*(d=Math.pow(2,-s))<1&&(s--,d*=2),s+h>=1?r+=p/d:r+=p*Math.pow(2,1-h),r*d>=2&&(s++,d/=2),s+h>=u?(l=0,s=u):s+h>=1?(l=(r*d-1)*Math.pow(2,i),s+=h):(l=r*Math.pow(2,h-1)*Math.pow(2,i),s=0));i>=8;t[a+m]=255&l,m+=f,l/=256,i-=8);for(s=s<<i|l,c+=i;c>0;t[a+m]=255&s,m+=f,s/=256,c-=8);t[a+m-f]|=128*x}}},i={};function o(t){var r=i[t];if(void 0!==r)return r.exports;var a=i[t]={exports:{}},s=!0;try{n[t](a,a.exports,o),s=!1}finally{s&&delete i[t]}return a.exports}o.ab="/ROOT/website/node_modules/next/dist/compiled/buffer/",r.exports=o(230)},67192,(t,r,a)=>{"use strict";var n=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,l={},d={SYMBOL_FOR_REQ_CONTEXT:()=>u,getContext:()=>h};for(var c in d)n(l,c,{get:d[c],enumerable:!0});r.exports=((t,r,a)=>{if(r&&"object"==typeof r||"function"==typeof r)for(let l of o(r))s.call(t,l)||void 0===l||n(t,l,{get:()=>r[l],enumerable:!(a=i(r,l))||a.enumerable});return t})(n({},"__esModule",{value:!0}),l);let u=Symbol.for("@vercel/request-context");function h(){let t=globalThis;return t[u]?.get?.()??{}}},36603,(t,r,a)=>{"use strict";var n=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,l={},d={AccessTokenMissingError:()=>u,RefreshAccessTokenFailedError:()=>h};for(var c in d)n(l,c,{get:d[c],enumerable:!0});r.exports=((t,r,a)=>{if(r&&"object"==typeof r||"function"==typeof r)for(let l of o(r))s.call(t,l)||void 0===l||n(t,l,{get:()=>r[l],enumerable:!(a=i(r,l))||a.enumerable});return t})(n({},"__esModule",{value:!0}),l);class u extends Error{constructor(){super("No authentication found. Please log in with the Vercel CLI (vercel login)."),this.name="AccessTokenMissingError"}}
152class h extends Error{constructor(t){super("Failed to refresh authentication token.",{cause:t}),this.name="RefreshAccessTokenFailedError"}}},54796,(t,r,a)=>{"use strict";var n=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,l={},d={AccessTokenMissingError:()=>h.AccessTokenMissingError,RefreshAccessTokenFailedError:()=>h.RefreshAccessTokenFailedError,getContext:()=>u.getContext,getVercelOidcToken:()=>p,getVercelOidcTokenSync:()=>m,getVercelToken:()=>f};for(var c in d)n(l,c,{get:d[c],enumerable:!0});r.exports=((t,r,a)=>{if(r&&"object"==typeof r||"function"==typeof r)for(let l of o(r))s.call(t,l)||void 0===l||n(t,l,{get:()=>r[l],enumerable:!(a=i(r,l))||a.enumerable});return t})(n({},"__esModule",{value:!0}),l);var u=t.r(67192),h=t.r(36603);async function p(){return""}function m(){return""}async function f(){throw Error("getVercelToken is not supported in browser environments")}}]);
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.