PageSourceSearch

https://periodcalculator.info/_next/static/chunks/6121.1b99635fd735e9c6.js

js periodcalculator.info collected 2026-10-07 04:34:17 UTC 27,979 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6121],{96121:function(e,t,n){n.r(t),n.d(t,{PcosPeriodCalculatorShell:function(){return y}});var a=n(57437),r=n(2265),i=n(27648),l=n(58278);function s(e){return e.map(e=>Math.round(e)).filter(e=>e>=20&&e<=180).slice(0,6)}function o(e,t,n){return{predictedDate:(0,l.E4)(e,t),earliestDate:(0,l.E4)(e,Math.max(1,t-n)),latestDate:(0,l.E4)(e,t+n)}}let c=[{id:"periods",question:"How would you describe your periods?",options:[{id:"infrequent",label:"Infrequent — I get 4–9 periods per year"},{id:"rare",label:"Very rare — fewer than 4 periods per year, or none"},{id:"frequent",label:"Irregular but frequent — I never know when they'll come"},{id:"unpredictable",label:"I have periods but they're unpredictable in timing or flow"}]},{id:"symptoms",question:"Do you have any of these physical symptoms?",options:[{id:"androgen",label:"Acne, especially jawline/chin, or unwanted facial/body hair"},{id:"insulin",label:"Weight gain around the middle, skin tags, or dark skin patches"},{id:"hair",label:"Thinning hair on the scalp"},{id:"none",label:"None of the above"}]},{id:"tests",question:"Have you had any of these test results?",options:[{id:"testosterone",label:"High testosterone or DHEA-S"},{id:"lh",label:"High LH:FSH ratio"},{id:"insulin",label:"High fasting insulin or blood sugar"},{id:"ultrasound",label:"Polycystic ovaries on ultrasound"},{id:"unknown",label:"I haven't been tested / don't know"}]},{id:"weight",question:"How is your weight / BMI?",options:[{id:"normal",label:"Normal weight or underweight"},{id:"overweight",label:"Overweight or obese"},{id:"gained",label:"I've gained significant weight in the last 1–2 years"},{id:"lost",label:"I've lost significant weight recently"}]},{id:"conditions",question:"Do you have any of these conditions?",options:[{id:"insulin",label:"Diagnosed insulin resistance or pre-diabetes"},{id:"diabetes",label:"Type 2 diabetes"},{id:"thyroid",label:"Thyroid condition"},{id:"none",label:"None of the above"}]}];function d(e){return(0,l.p6)(e,{month:"short",day:"numeric",year:"numeric"})}function u(e){let{values:t,onChange:n}=e;return(0,a.jsxs)("div",{className:"rounded-[1.5rem] border border-brand-100 bg-white/70 p-4",children:[(0,a.jsx)("p",{className:"text-sm font-semibold text-ink",children:"Recent cycle lengths"}),(0,a.jsx)("p",{className:"mt-2 text-sm leading-6 text-ink/55",children:"Optional. Enter your last few cycle lengths in days, if known."}),(0,a.jsx)("div",{className:"mt-4 grid gap-3 sm:grid-cols-3",children:t.map((e,r)=>(0,a.jsx)("input",{type:"number",min:20,max:180,value:e,onChange:e=>n(t.map((t,n)=>n===r?e.target.value:t)),placeholder:"Cycle ".concat(r+1),className:"min-w-0 rounded-2xl border border-brand-100 bg-white px-4 py-3 text-ink outline-none ring-brand-300 transition focus:ring-2","aria-label":"Cycle ".concat(r+1," length")},r))})]})}function m(){let[e,t]=(0,r.useState)({}),n=function(e){if(c.some(t=>!e[t.id]))return null;let t="non-classic";"insulin"===e.symptoms&&("overweight"===e.weight||"gained"===e.weight)&&("insulin"===e.conditions||"diabetes"===e.conditions)?t="insulin-resistant":"androgen"===e.symptoms&&"testosterone"===e.tests?t="hyperandrogenic":"ultrasound"===e.tests&&"androgen"===e.symptoms&&"unpredictable"===e.periods&&(t="ovulatory");let n=Object.entries(e).map(e=>{let[t,n]=e;return"".concat(t,": ").concat(n)});return({"insulin-resistant":{type:t,title:"Insulin-Resistant PCOS",colorClass:"border-sky-200 bg-sky-50 text-sky-950",features:n,cyclePattern:"Typically long cycles, often 35–90+ days, with unpredictable ovulation and heavier periods when bleeding finally arrives.",whatMayHelp:"Lower-glycemic meals, regular exercise, metformin when prescribed, and inositol may improve insulin sensitivity and cycle regularity.",trackingTip:"Standard OPKs may be misleading. Digital monitors that track estrogen plus LH, or BBT confirmation, are often more useful."},hyperandrogenic:{type:t,title:"Hyperandrogenic PCOS",colorClass:"border-orange-200 bg-orange-50 text-orange-950",features:n,cyclePattern:"Irregular or absent periods with acne, unwanted hair, or hair thinning caused by androgen excess that can disrupt ovulation.",whatMayHelp:"Combined oral contraceptives, anti-androgen medications when appropriate, and weight loss when applicable may reduce androgen symptoms.",trackingTip:"BBT is more reliable for confirming ovulation than OPKs when LH or androgen patterns make strips confusing."},ovulatory:{type:t,title:"Ovulatory PCOS",colorClass:"border-emerald-200 bg-emerald-50 text-emerald-950",features:n,cyclePattern:"Periods may be closer to regular, but androgen symptoms or ultrasound findings still suggest PCOS. This pattern is often missed.",whatMayHelp:"Metabolic 
1screening and symptom management still matter, even when periods are more regular.",trackingTip:"Standard OPKs and BBT often work better here than in anovulatory PCOS, but confirm with patterns over several cycles."},"non-classic":{type:t,title:"Non-Classic / Lean PCOS",colorClass:"border-slate-200 bg-slate-50 text-slate-950",features:n,cyclePattern:"Cycles may be irregular but not extreme. Normal weight can make PCOS harder to recognize, especially if LH is chronically elevated.",whatMayHelp:"Ask about androgen labs, LH/FSH pattern, metabolic screening, and ultrasound if symptoms and cycles fit.",trackingTip:"BBT plus cervical mucus is often useful because standard LH strips may stay positive or show multiple unclear peaks."}})[t]}(e);return(0,a.jsxs)("section",{className:"article-card",children:[(0,a.jsx)("p",{className:"eyebrow",children:"PCOS Type Identifier"}),(0,a.jsx)("h2",{className:"mt-4 font-display text-4xl text-ink",children:"Which Type of PCOS Do You Have?"}),(0,a.jsx)("p",{className:"mt-3 text-lg leading-8 text-ink/70",children:"PCOS has several patterns. This educational tool can help you understand which pattern sounds most like yours."}),(0,a.jsx)("div",{className:"mt-8 grid gap-5",children:c.map(n=>(0,a.jsxs)("article",{className:"rounded-[1.6rem] border border-brand-100 bg-white/85 p-5",children:[(0,a.jsx)("h3",{className:"font-display text-3xl text-ink",children:n.question}),(0,a.jsx)("div",{className:"mt-5 grid gap-3 md:grid-cols-2",children:n.options.map(r=>(0,a.jsxs)("label",{className:"flex cursor-pointer items-start gap-3 rounded-2xl border border-brand-100 bg-white px-4 py-3 text-sm leading-6 text-ink/75",children:[(0,a.jsx)("input",{type:"radio",name:n.id,checked:e[n.id]===r.id,onChange:()=>t(e=>({...e,[n.id]:r.id})),className:"mt-1"}),r.label]},r.id))})]},n.id))}),n?(0,a.jsxs)("div",{className:"mt-8 rounded-[1.8rem] border p-6 ".concat(n.colorClass),children:[(0,a.jsx)("h3",{className:"font-display text-3xl",children:n.title}),(0,a.jsxs)("div",{className:"mt-4 grid gap-5 lg:grid-cols-[0.85fr_1.15fr]",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-sm font-semibold uppercase tracking-[0.16em]",children:"Key features in your answers"}),(0,a.jsx)("ul",{className:"mt-3 list-disc space-y-2 pl-5 text-sm leading-7",children:n.features.map(e=>(0,a.jsx)("li",{children:e},e))})]}),(0,a.jsxs)("div",{className:"space-y-3 text-sm leading-7",children:[(0,a.jsxs)("p",{children:[(0,a.jsx)("strong",{children:"Cycle pattern:"})," ",n.cyclePattern]}),(0,a.jsxs)("p",{children:[(0,a.jsx)("strong",{children:"What may help:"})," ",n.whatMayHelp]}),(0,a.jsxs)("p",{children:[(0,a.jsx)("strong",{children:"Tracking tip:"})," ",n.trackingTip]}),(0,a.jsxs)("div",{className:"flex flex-wrap gap-3 pt-2",children:[(0,a.jsx)("a",{href:"#pcos-tracking",className:"rounded-full bg-white/80 px-4 py-2 font-semibold text-brand-700",children:"PCOS ovulation tracking guide"}),(0,a.jsx)(i.default,{href:"/period-calculator-for-irregular-periods",className:"rounded-full bg-white/80 px-4 py-2 font-semibold text-brand-700",children:"Irregular period calculator"})]})]})]})]}):null]})}function h(){return(0,a.jsxs)("section",{className:"article-card",id:"pcos-tracking",children:[(0,a.jsx)("p",{className:"eyebrow",children:"PCOS Ovulation Tracking"}),(0,a.jsx)("h2",{className:"mt-4 font-display text-4xl text-ink",children:"Tracking Ovulation with PCOS — Why Standard OPKs Often Don't Work"}),(0,a.jsx)("p",{className:"mt-3 text-lg leading-8 text-ink/70",children:"Standard OPKs often fail for PCOS because baseline LH may be elevated all cycle. Here are better options."}),(0,a.jsxs)("div",{className:"mt-8 rounded-[1.5rem] border border-rose-200 bg-rose-50 px-5 py-4 text-base leading-8 text-rose-950",children:[(0,a.jsx)("strong",{children:"The OPK problem with PCOS:"})," strips may show positive every day, show multiple peaks, or miss the true surge because baseline LH is already high."]}),(0,a.jsx)("div",{className:"mt-6 grid gap-4 lg:grid-cols-2",children:[["\uD83C\uDFC6 Digital Fertility Monitors","Recommended for most PCOS patients. Monitors that track estrogen plus LH can establish a personal baseline and distinguish a true surge better than LH-only strips.","$100–150 monitor; $40–60/month sticks","PCOS patients with confusing OPK results"],["Basal Body Temperature (BBT)","BBT cannot predict ovulation in advance, but a sustained temperature rise can confirm ovulation happened. This is especially useful when you are unsure whether cycles are anovulatory.","$10–20 thermometer","Confirming ovulation"],["Progesterone Blood Test","A progesterone blood test 7 days after suspected ovulation is the most reliable way to confirm ovulation. For long PCOS cycles, do not assume Day 21 is the right day.","Usually clinician ordered","Definitive confirmation"],["Cervical Mucus Observation","Mucus changes in response to estrogen regardless of cycle length. Egg-white mucus can help identify a possible fertile window, especially when combined with BBT.","Free","Supplementary tracking"]].map(e=>{let[t,n,r,i]=e;return(0,a.jsxs)("details",{className:"group rounded-[1.6rem] border border-brand-100 bg-white/85 p-5",children:[(0,a.jsxs)("summary",{className:"cursor-pointer list-none font-display text-3xl text-ink",children:[t,(0,a.jsx)("span",{className:"float-right text-base font-sans text-brand-700",children:"⌄"})]}),(0,a.jsxs)("div",{className:"mt-4 text-sm leading-7 text-ink/72",children:[(0,a.jsx)("p",{children:n}),(0,a.jsxs)("p",{className:"mt-3",children:[(0,a.jsx)("strong",{children:"Cost:"})," ",r]}),(0,a.jsxs)("p",{children:[(0,a.jsx)("strong",{children:"Best for:"})," ",i]})]})]},t)})})]})}function p(e){let{highlighted:t}=e;return(0,a.jsxs)("section",{className:"article-card ".concat(t?"border-emerald-100 bg-emerald-50/60":""),children:[(0,a.jsx)("p",{className:"eyebrow",children:"Trying to Conceive with PCOS"}),(0,a.jsx)("h2",{className:"mt-4 font-display text-4xl text-ink",children:"Trying to Conceive with PCOS"}),(0,a.jsx)("p",{className:"mt-3 text-lg leading-8 text-ink/70",children:"PCOS is one of the most treatable causes of infertility. The main challenge is confirming when, or if, ovulation is occurring."}),(0,a.jsxs)("div",{className:"mt-8 grid gap-4 lg:grid-cols-3",children:[(0,a.jsxs)("article",{className:"rounded-[1.6rem] border border-brand-100 bg-white/85 p-5",children:[(0,a.jsx)("h3",{className:"font-display text-3xl text-ink",children:"The Good News"}),(0,a.jsx)("p",{className:"mt-4 text-base leading-8 text-ink/72",children:"Many people with PCOS conceive naturally or with help. Clomiphene can induce ovulation in about 80% of patients, with roughly half conceiving within several cycles. Letrozole is widely used as first-line treatment and has shown higher live-birth rates than clomiphene in major PCOS infertility research."})]}),(0,a.jsxs)("article",{className:"rounded-[1.6rem] border border-brand-100 bg-white/85 p-5",children:[(0,a.jsx)("h3",{className:"font-display text-3xl text-ink",children:"TTC Strategy"}),(0,a.jsx)("p",{className:"mt-4 text-base leading-8 text-ink/72",children:"Confirm ovulation first with BBT and/or progesterone testing. Use digital monitoring rather than standard OPKs when strips stay positive, and do not stop trying after Day 14 because PCOS ovulation can happen much later."})]}),(0,a.jsxs)("article",{className:"rounded-[1.6rem] border border-brand-100 bg-white/85 p-5",children:[(0,a.jsx)("h3",{className:"font-display text-3xl text-ink",children:"Medical Options"}),(0,a.jsx)("p",{className:"mt-4 text-base leading-8 text-ink/72",children:"Letrozole is often preferred for ovulation induction; clomiphene can help many patients ovulate; metformin may restore ovulation when insulin resistance is part of the picture; lifestyle changes can support insulin sensitivity. Weight loss of 5–10% can restore ovulation for some people with insulin-resistant PCOS."})]})]})]})}function g(){return(0,a.jsxs)("section",{className:"article-card",children:[(0,a.jsx)("p",{className:"eyebrow",children:"Long-Term Health"}),(0,a.jsx)("h2",{className:"mt-4 font-display text-4xl text-ink",children:"Managing Your Cycle with PCOS — Long-Term Health"}),(0,a.jsxs)("div",{className:"mt-8 grid gap-4 lg:grid-cols-2",children:[(0,a.jsxs)("article",{className:"rounded-[1.6rem] border border-yellow-200 bg-yellow-50 p-5 text-yellow-950",children:[(0,a.jsx)("h3",{className:"font-display text-3xl",children:"Endometrial health"}),(0,a.jsx)("p",{className:"mt-4 leading-8",children:"Going long periods without ovulation or bleeding can allow the uterine lining to build up. NHS guidance notes that having at least 3–4 periods per year helps protect endometrial health."})]}),(0,a.jsxs)("article",{className:"rounded-[1.6rem] border border-brand-100 bg-white/85 p-5",children:[(0,a.jsx)("h3",{className:"font-display text-3xl text-ink",children:"Metabolic health"}),(0,a.jsx)("p",{className:"mt-4 leading-8 text-ink/72",children:"PCOS is linked with higher risk of type 2 diabetes, cardiovascular risk factors, sleep apnea, depression, and anxiety. Annual glucose, lipids, and blood pressure checks are commonly recommended."})]})]})]})}function x(){return(0,a.jsxs)("section",{className:"article-card",children:[(0,a.jsx)("p",{className:"eyebrow",children:"When to See a Doctor"}),(0,a.jsx)("h2",{className:"mt-4 font-display text-4xl text-ink",children:"When to See a Doctor About PCOS and Your Period"}),(0,a.jsxs)("div",{className:"mt-8 grid gap-4 lg:grid-cols-2",children:[(0,a.jsxs)("article",{className:"rounded-[1.6rem] border border-rose-200 bg-rose-50 p-5 text-rose-950",children:[(0,a.jsx)("h3",{className:"font-display text-3xl",children:"See a doctor if"}),(0,a.jsxs)("ul",{className:"mt-4 list-disc space-y-2 pl-5 leading-7",children:[(0,a.jsx)("li",{children:"You have gone more than 90 days without a period."}),(0,a.jsx)("li",{children:"You have irregular periods plus acne or unwanted hair growth."}),(0,a.jsx)("li",{children:"You are trying to conceive for 12+ months, or 6+ months if over 35."}),(0,a.jsx)("li",{children:"Your OPK strips are always positive."})]})]}),(0,a.jsxs)("article",{className:"rounded-[1.6rem] border border-brand-100 bg-white/85 p-5",children:[(0,a.jsx)("h3",{className:"font-display text-3xl text-ink",children:"Rotterdam Criteria"}),(0,a.jsx)("p",{className:"mt-4 leading-8 text-ink/72",children:"PCOS diagnosis generally requires 2 of 3: irregular or absent ovulation, clinical or biochemical high androgens, and polycystic ovaries on ultrasound. You do not need all three."})]})]})]})}function y(){var e,t;let[n,i]=(0,r.useState)((0,l.sS)(new Date)),[c,y]=(0,r.useState)("diagnosed"),[b,f]=(0,r.useState)("long-predictable"),[v,w]=(0,r.useState)(["45","52","","","",""]),[j,N]=(0,r.useState)(!1),k=(0,r.useMemo)(()=>s(v.map(e=>Number(e))),[v]),C=(0,r.useMemo)(()=>(function(e){var t;let n=(0,l.P9)(e.lastPeriodDate),a=s(e.recentCycleLengths),r=a.length?Math.round(a.reduce((e,t)=>
1e+t,0)/a.length):null,i=a.length?Math.min(...a):null,c=a.length?Math.max(...a):null,d=null!==i&&null!==c?c-i:null;if("long-predictable"===e.cyclePattern){let s=null!=r?r:45,u=o(n,s,a.length?Math.max(10,Math.ceil((null!=d?d:14)/2)+7):14),m=(t=u.predictedDate)?{ovulationStart:(0,l.E4)(t,-21),ovulationEnd:(0,l.E4)(t,-7)}:{ovulationStart:null,ovulationEnd:null};return{lastPeriodDate:n,cyclePattern:e.cyclePattern,tryingToConceive:e.tryingToConceive,averageCycle:s,shortestCycle:i,longestCycle:c,variabilityDays:d,nextPeriodLabel:"Around ".concat(s," days after your last period"),nextPeriodDetail:"With PCOS, this is a wider estimate than standard calculators provide.",...u,ovulationLabel:"Estimated from the wider PCOS period range",...m,reliability:"moderate",ovulationStatus:s<=60?"possible":"unlikely"}}if("very-unpredictable"===e.cyclePattern){let t=r?o(n,r,Math.max(21,Math.ceil((null!=d?d:30)/2)+14)):{predictedDate:null,earliestDate:(0,l.E4)(n,30),latestDate:(0,l.E4)(n,90)};return{lastPeriodDate:n,cyclePattern:e.cyclePattern,tryingToConceive:e.tryingToConceive,averageCycle:r,shortestCycle:i,longestCycle:c,variabilityDays:d,nextPeriodLabel:r?"Difficult to predict precisely":"Too variable to predict precisely",nextPeriodDetail:"For PCOS cycles this variable, tracking ovulation directly is more useful than calendar prediction.",...t,ovulationLabel:"Cannot be reliably estimated from calendar alone",ovulationStart:null,ovulationEnd:null,reliability:"very-low",ovulationStatus:r&&r<=60?"possible":"unlikely"}}return"skipped"===e.cyclePattern?{lastPeriodDate:n,cyclePattern:e.cyclePattern,tryingToConceive:e.tryingToConceive,averageCycle:r,shortestCycle:i,longestCycle:c,variabilityDays:d,nextPeriodLabel:"Unpredictable — could be 30–90+ days away",nextPeriodDetail:"With infrequent periods, calendar prediction is not reliable. Track whether ovulation is occurring at all.",predictedDate:null,earliestDate:null,latestDate:null,ovulationLabel:"Cannot be estimated from calendar timing",ovulationStart:null,ovulationEnd:null,reliability:"not-reliable",ovulationStatus:"unlikely",medicalNote:"Going more than 90 days without a period is worth discussing with your doctor because treatments can help regulate your cycle if you want that."}:{lastPeriodDate:n,cyclePattern:e.cyclePattern,tryingToConceive:e.tryingToConceive,averageCycle:r,shortestCycle:i,longestCycle:c,variabilityDays:d,nextPeriodLabel:"Irregular bleeding pattern — calendar prediction is not reliable",nextPeriodDetail:"Frequent spotting, short cycles, or unpredictable bleeding should be discussed with a clinician rather than predicted by a calendar.",predictedDate:null,earliestDate:null,latestDate:null,ovulationLabel:"Cannot be reliably estimated",ovulationStart:null,ovulationEnd:null,reliability:"medical",ovulationStatus:"unlikely",medicalNote:"Bring your bleeding dates, flow pattern, pain level, acne/hair symptoms, medications, and pregnancy test status to your appointment."}})({lastPeriodDate:(0,l.P9)(n),diagnosisStatus:c,cyclePattern:b,recentCycleLengths:k,tryingToConceive:j}),[k,b,c,n,j]),P="appears"===(t=C.ovulationStatus)?{label:"Ovulation appears to be occurring",body:"Your pattern suggests ovulation is occurring, though timing may vary. Continue tracking to identify your personal pattern."}:"possible"===t?{label:"Possibly ovulating, but timing is unpredictable",body:"Women with PCOS can ovulate, but often later than Day 14. OPK plus BBT can help confirm when or if ovulation occurs."}:{label:"Ovulation may not be occurring regularly",body:"Cycles longer than 60 days or absent periods often indicate anovulation. A progesterone blood test can help confirm whether ovulation occurred."};return(0,a.jsxs)("div",{className:"space-y-8",children:[(0,a.jsxs)("div",{className:"grid min-w-0 gap-6 xl:grid-cols-[minmax(0,0.95fr)_minmax(0,1.05fr)]",children:[(0,a.jsxs)("section",{className:"glass-panel min-w-0 rounded-[2rem] p-6 sm:p-8",children:[(0,a.jsxs)("div",{className:"flex min-w-0 flex-wrap items-center justify-between gap-4",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"metric-kicker",children:"Your Inputs"}),(0,a.jsx)("h2",{className:"mt-2 font-display text-3xl text-ink",children:"PCOS cycle pattern"})]}),(0,a.jsx)("div",{className:"rounded-full bg-white/80 px-4 py-2 text-sm font-semibold text-brand-700",children:"Private"})]}),(0,a.jsxs)("div",{className:"mt-8 space-y-5",children:[(0,a.jsxs)("div",{className:"rounded-[1.5rem] border border-brand-100 bg-white/70 p-4",children:[(0,a.jsx)("label",{htmlFor:"pcos-lmp",className:"text-sm font-semibold text-ink",children:"Last period start date"}),(0,a.jsx)("input",{id:"pcos-lmp",type:"date",value:n,onChange:e=>i(e.target.value),className:"mt-3 w-full rounded-2xl border border-brand-100 bg-white px-4 py-3 text-ink outline-none ring-brand-300 transition focus:ring-2"})]}),(0,a.jsxs)("div",{className:"rounded-[1.5rem] border border-brand-100 bg-white/70 p-4",children:[(0,a.jsx)("p",{className:"text-sm font-semibold text-ink",children:"Have you been diagnosed with PCOS?"}),(0,a.jsx)("div",{className:"mt-3 grid gap-3",children:[["diagnosed","Diagnosed with PCOS"],["suspected","Suspected / undiagnosed"],["
1irregular","Not diagnosed but cycles are very irregular"]].map(e=>{let[t,n]=e;return(0,a.jsxs)("label",{className:"flex cursor-pointer gap-3 rounded-2xl border border-brand-100 bg-white px-4 py-3 text-sm text-ink/75",children:[(0,a.jsx)("input",{type:"radio",name:"diagnosis",checked:c===t,onChange:()=>y(t)}),n]},t)})})]}),(0,a.jsxs)("div",{className:"rounded-[1.5rem] border border-brand-100 bg-white/70 p-4",children:[(0,a.jsx)("p",{className:"text-sm font-semibold text-ink",children:"Your typical cycle pattern"}),(0,a.jsx)("div",{className:"mt-3 grid gap-3",children:[["long-predictable","Long but somewhat predictable (usually 35–60 days)"],["very-unpredictable","Very unpredictable (30 to 90+ days, no real pattern)"],["skipped","I skip periods entirely"],["irregular-bleeding","Frequent or irregular bleeding"]].map(e=>{let[t,n]=e;return(0,a.jsxs)("label",{className:"flex cursor-pointer gap-3 rounded-2xl border border-brand-100 bg-white px-4 py-3 text-sm text-ink/75",children:[(0,a.jsx)("input",{type:"radio",name:"pattern",checked:b===t,onChange:()=>f(t)}),n]},t)})})]}),(0,a.jsx)(u,{values:v,onChange:w}),(0,a.jsxs)("div",{className:"rounded-[1.5rem] border border-brand-100 bg-white/70 p-4",children:[(0,a.jsx)("p",{className:"text-sm font-semibold text-ink",children:"Are you currently trying to conceive?"}),(0,a.jsx)("div",{className:"mt-3 flex flex-wrap gap-3",children:[[!0,"Yes"],[!1,"No"]].map(e=>{let[t,n]=e;return(0,a.jsx)("button",{type:"button",onClick:()=>N(!!t),className:"rounded-full px-4 py-2 text-sm font-semibold ".concat(j===t?"bg-brand-500 text-white":"bg-white text-brand-700"),children:n},String(t))})})]}),(0,a.jsx)("p",{className:"rounded-[1.25rem] border border-brand-100 bg-white/70 px-4 py-3 text-sm leading-7 text-ink/72",children:"\uD83D\uDD12 All data stays in your browser. Nothing is stored or shared."})]})]}),(0,a.jsxs)("section",{className:"grid min-w-0 grid-cols-[minmax(0,1fr)] gap-4 sm:grid-cols-[minmax(0,1fr)_minmax(0,1fr)]","aria-labelledby":"pcos-results",children:[(0,a.jsxs)("div",{className:"min-w-0 sm:col-span-2",children:[(0,a.jsx)("p",{className:"metric-kicker",children:"Your Results"}),(0,a.jsx)("h2",{id:"pcos-results",className:"mt-2 font-display text-3xl text-ink",children:"Your Results"})]}),(0,a.jsxs)("article",{className:"glass-panel min-w-0 rounded-[1.75rem] p-5 sm:col-span-2",children:[(0,a.jsx)("p",{className:"metric-kicker",children:"Next Period Estimate"}),(0,a.jsx)("p",{className:"mt-3 font-display text-3xl text-ink",children:"long-predictable"===C.cyclePattern&&C.predictedDate?"Around ".concat(d(C.predictedDate)):C.nextPeriodLabel}),C.earliestDate&&C.latestDate?(0,a.jsxs)("p",{className:"mt-2 text-sm leading-6 text-ink/65",children:["Likely range: ",d(C.earliestDate)," – ",d(C.latestDate)]}):null,(0,a.jsx)("p",{className:"mt-4 border-t border-brand-100 pt-4 text-sm leading-7 text-ink/70",children:C.nextPeriodDetail}),C.medicalNote?(0,a.jsx)("p",{className:"mt-4 rounded-[1.2rem] border border-orange-200 bg-orange-50 px-4 py-3 text-sm leading-7 text-orange-950",children:C.medicalNote}):null]}),(0,a.jsxs)("article",{className:"glass-panel min-w-0 rounded-[1.75rem] p-5",children:[(0,a.jsx)("p",{className:"metric-kicker",children:"Ovulation Estimate"}),(0,a.jsx)("p",{className:"mt-3 font-display text-2xl text-ink",children:C.ovulationStart&&C.ovulationEnd?"".concat(d(C.ovulationStart)," – ").concat(d(C.ovulationEnd)):C.ovulationLabel}),(0,a.jsx)("p",{className:"mt-4 rounded-[1.2rem] border border-rose-200 bg-rose-50 px-4 py-3 text-sm leading-7 text-rose-950",children:"⚠️ PCOS-specific note: elevated baseline LH can make OPK strips positive throughout the cycle, not just at ovulation. If your OPKs are always positive, see the PCOS tracking guide below."})]}),(0,a.jsxs)("article",{className:"glass-panel min-w-0 rounded-[1.75rem] p-5",children:[(0,a.jsx)("p",{className:"metric-kicker",children:"Cycle Pattern Analysis"}),(0,a.jsxs)("p",{className:"mt-3 text-sm leading-7 text-ink/72",children:["Average cycle: ",(0,a.jsx)("strong",{children:null!==(e=C.averageCycle)&&void 0!==e?e:"Not enough data"}),(0,a.jsx)("br",{}),"Range: ",(0,a.jsx)("strong",{children:C.shortestCycle&&C.longestCycle?"".concat(C.shortestCycle,"–").concat(C.longestCycle," days"):"Not entered"}),(0,a.jsx)("br",{}),"Variability: ",(0,a.jsx)("strong",{children:null!==C.variabilityDays?"".concat(C.variabilityDays," days"):"Unknown"})]}),null!==C.variabilityDays&&C.variabilityDays>14?(0,a.jsx)("p",{className:"mt-4 rounded-[1.2rem] border border-yellow-200 bg-yellow-50 px-4 py-3 text-sm leading-7 text-yellow-950",children:"Cycles varying by more than 14 days can fit PCOS-related menstrual irregularity, especially with acne, unwanted hair growth, or difficulty conceiving."}):null]}),(0,a.jsxs)("article",{className:"glass-panel min-w-0 rounded-[1.75rem] p-5 sm:col-span-2",children:[(0,a.jsx)("p",{className:"metric-kicker",children:"Are You Likely Ovulating?"}),(0,a.jsx)("p",{className:"mt-3 font-display text-3xl text-ink",children:P.label}),(0,a.jsx)("p",{className:"mt-4 text-sm leading-7 text-ink/70",children:P.body})]})]})]}),(0,a.jsx)(m,{}),(0,a.jsx)(h,{}),(0,a.jsx)(p,{highlighted:j}),(0,a.jsx)(g,{}),(0,a.jsx)(x,{})]})}},58278:function(e,t,n){function a(e){if(e instanceof Date)return new Date(e.getFullYear(),e.getMonth(),e.getDate());let[t,n,a]=e.split("-").map(Number);return new Date(t,n-1,a)}function r(e){let t=e.getFullYear(),n="".concat(e.getMonth()+1).padStart(2,"0"),a="".concat(e.getDate()).padStart(2,"0");return"".concat(t,"-").concat(n,"-").concat(a)}function i(e){return"string"==typeof e&&/^\d{4}-\d{2}-\d{2}$/.test(e)}function l(e,t){let n=a(e);return n.setDate(n.getDate()+t),n}function s(e,t){let n=a(e),r=n.getDate();n.setDate(1),n.setMonth(n.getMonth()+t);let i=new Date(n.getFullYear(),n.getMonth()+1,0).getDate();return n.setDate(Math.min(r,i)),n}function o(e,t){return Math.round((a(e).getTime()-a(t).getTime())/864e5)}function c(e){return new Date(e.getFullYear(),e.getMonth(),1)}function d(e){return new Date(e.getFullYear(),e.getMonth()+1,0)}function u(e){return l(e,-e.getDay())}function m(e){return l(e,6-e.getDay())}function h(e,t){return e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate()}function p(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{month:"long",day:"numeric",year:"numeric"};return new Intl.DateTimeFormat("en-US",t).format(e)}function g(e){return new Intl.DateTimeFormat("en-US",{month:"long",year:"numeric"}).format(e)}function x(e,t,n){return Math.min(Math.max(e,t),n)}n.d(t,{E4:function(){return l},KC:function(){return h},Nm:function(){return c},P9:function(){return a},Vf:function(){return d},bh:function(){return g},p6:function(){return p},sS:function(){return r},uZ:function(){return x},v8:function(){return i},vV:function(){return m},wY:function(){return o},zI:function(){return s},zJ:function(){return u}})},27648:function(e,t,n){n.d(t,{default:function(){return r.a}});var a=n(72972),r=n.n(a)}}]);

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.