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,EACb3C,EAAI,OAAS,EACZwC,EAAE,MAAMxC,EAAI,MAAM,eAAeyC,CAAG,EAAGE,CAAM,EAC7C,GAGL,OAAIJ,IAAW,MAAQxC,EAAgBC,CAAG,EAClC,CACN,MAAO,GAAG6C,CAAS,uDACnB,YACCL,EAAE,KAAKM,EAAMC,EAAOnD,EAAGqC,EAAUjC,CAAG,CAAC,EAAG2C,CAAM,EAC9CK,EACA,2DAAA,EAGI,CACN,MAAOR,EAAE,MAAMK,CAAS,EACxB,YAAaL,EAAE,KAAKM,EAAMC,EAAOnD,EAAGqC,EAAUjC,CAAG,CAAC,EAAG2C,CAAM,EAAIK,EAASR,EAAE,IAAA,CAE5E,CAGO,SAASS,EAAmBV,EAA6C,CAC/E,MAAMW,EAAOX,IAAW,KAAO,CAAC,GAAGf,EAAe,GAAGE,CAAa,EAAIA,EACtE,OAAO,OAAO,YAAYwB,EAAK,IAAKtB,GAAM,CAACC,EAAaD,CAAC,EAAGU,EAAYV,EAAGW,CAAM,CAAC,CAAC,CAAC,CACrF","names":["sculptPrefillQuery","lengthCm","girthCm","unit","q","SCULPT_TEST_SIZES","DIR","GIRTH_CM","BJU_2015","n1","v","n2","isSculptTestRow","row","sculptSet","base","girthIn","avgIn","sculptOgForPath","path","m","sculptHref","PREFERENCE_STUDY","sculptFaq","n","looks","f","oneTimeIn","longTermIn","study","gap","answer","SIZE_PAGE_BASE","SIZE_PAGE_INCHES","SIZE_PAGE_CM","_","i","SIZE_PAGES_IN","chartRow","SIZE_PAGES_CM","BY_SLUG","r","sizePagePath","sizePageBySlug","slug","sizePageFor","sideShare","WORDS","o","p","l","sizePageSeo","locale","w","tag","LOCALE_INFO","longer","inch","titleSize","size","other","rarity","sizePageSeoEntries","rows"],"sources":["../../../../../../src/lib/sculpt/prefill.ts","../../../../../../src/lib/tools/size-sculpt.ts","../../../../../../src/lib/tools/size-pages.ts"],"sourcesContent":["// A size tool's numbers carried to the editor (RAT-651): /sculpt?length=<cm>&girth=<cm>, plus\n// unit=in when the tool was showing inches. Centimetres in the address, as every size tool link\n// carries them (lib/tools/size-scale); `unit` only picks what the editor shows. Pure: the link is\n// written on the tool pages, read by the editor's load, and clamped there by sanitizeSculptParams.\n\nexport type PrefillUnit = 'cm' | 'in';\n\nexport interface SculptPrefill {\n\t/** erect length, cm, as given (not clamped yet) */\n\tlength?: number;\n\t/** erect girth, cm, as given (not clamped yet) */\n\tgirth?: number;\n\tunit?: PrefillUnit;\n}\n\nconst num = (raw: string | null) => {\n\tif (raw === null || raw.trim() === '') return undefined;\n\tconst v = Number(raw);\n\treturn Number.isFinite(v) ? v : undefined;\n};\n\n/** The numbers in the address, or null when it carries none. Garbage is left out. */\nexport function readSculptPrefill(q: URLSearchParams): SculptPrefill | null {\n\tconst length = num(q.get('length'));\n\tconst girth = num(q.get('girth'));\n\tif (length === undefined && girth === undefined) return null;\n\tconst unit = q.get('unit');\n\tconst out: SculptPrefill = {};\n\tif (length !== undefined) out.length = length;\n\tif (girth !== undefined) out.girth = girth;\n\tif (unit === 'cm' || unit === 'in') out.unit = unit;\n\treturn out;\n}\n\n/** `length=…&girth=…` (one decimal, cm), with `&unit=in` for a tool showing inches. */\nexport function sculptPrefillQuery(lengthCm: number, girthCm: number, unit: PrefillUnit = 'cm') {\n\tconst q = new URLSearchParams({ length: lengthCm.toFixed(1), girth: girthCm.toFixed(1) });\n\tif (unit === 'in') q.set('unit', 'in');\n\treturn q.toString();\n}\n","// RAT-654: Sculpt renders on three size pages, to win the searches that want a picture.\n//\n// \"6.5 inch dick\" is the biggest query on those pages and clicks at 0.7% from position 8.4\n// (GSC 10-30–11-26): the searcher wants to see it, and the page had a bar chart. These pages\n// now show the length as a 3D sculpture next to a ruler and next to the average, rendered with\n// the real Sculpt engine (/dev/sculpt-shots) and committed as static files, so a crawler gets\n// them like anyone else. Marble and bronze, not skin: a statue, so the page stays a tools page.\n//\n// A test: 5.5 / 6.5 / 7.5 in carry it, 5 / 6 / 7 in are the control (weekly-seo-watch).\n// Kept light on purpose: seo.ts reads this through size-pages.ts on every page.\nimport type { ChartRow } from './size-chart';\nimport { BJU_2015 } from '$lib/data/size-stats';\nimport { sculptPrefillQuery } from '$lib/sculpt/prefill';\n\nexport const SCULPT_TEST_SIZES: readonly number[] = [5.5, 6.5, 7.5];\nexport const SCULPT_CONTROL_SIZES: readonly number[] = [5, 6, 7];\n\nconst DIR = '/tools/penis-size/sculpt';\n/** The renders' girth: the average, so the pictures show length and nothing else. */\nconst GIRTH_CM = Math.round(BJU_2015.erectCircumference.meanCm * 10) / 10;\n\nconst n1 = (v: number) => v.toLocaleString('en-US', { maximumFractionDigits: 1 });\nconst n2 = (v: number) => v.toLocaleString('en-US', { maximumFractionDigits: 2 });\n\nexport function isSculptTestRow(row: Pick<ChartRow, 'unit' | 'value'>): boolean {\n\treturn row.unit === 'in' && SCULPT_TEST_SIZES.includes(row.value);\n}\n\nexport type SculptImage = {\n\tsrc: string;\n\t/** the narrower copy for phones, `smallW` px wide */\n\tsmall: string;\n\tsmallW: number;\n\twidth: number;\n\theight: number;\n\talt: string;\n\tcaption: string;\n};\n\nexport type SculptSet = { toScale: SculptImage; vsAverage: SculptImage; og: string };\n\n/** The renders of a test page, or null for every other page. */\nexport function sculptSet(row: Pick<ChartRow, 'unit' | 'value'>): SculptSet | null {\n\tif (!isSculptTestRow(row)) return null;\n\tconst n = n1(row.value);\n\tconst base = `${DIR}/${n}-inch-penis`;\n\tconst girthIn = n1(GIRTH_CM / 2.54);\n\tconst avgIn = n2(BJU_2015.erectLength.meanIn);\n\treturn {\n\t\ttoScale: {\n\t\t\tsrc: `${base}-to-scale.webp`,\n\t\t\tsmall: `${base}-to-scale-640.webp`,\n\t\t\tsmallW: 640,\n\t\t\twidth: 1200,\n\t\t\theight: 1200,\n\t\t\talt: `${n} inch penis (dick) to scale: a 3D marble sculpture next to an inch ruler`,\n\t\t\tcaption: `${n} inches long at an average girth of ${girthIn} inches around, sculpted to scale next to an inch ruler.`\n\t\t},\n\t\tvsAverage: {\n\t\t\tsrc: `${base}-vs-average.webp`,\n\t\t\tsmall: `${base}-vs-average-684.webp`,\n\t\t\tsmallW: 684,\n\t\t\twidth: 1368,\n\t\t\theight: 893,\n\t\t\talt: `${n} inch penis compared with the average ${avgIn} inch penis, side by side on a tape measure`,\n\t\t\tcaption: `${n} inches (white marble) next to the average erect length, ${avgIn} inches (bronze), on the same tape.`\n\t\t},\n\t\tog: `${base}-og.jpg`\n\t};\n}\n\n/** The share card of a size page path (/tools/penis-size/6.5-inches), when it is a test page. */\nexport function sculptOgForPath(path: string): string | null {\n\tconst m = path.match(/^\\/tools\\/penis-size\\/(\\d+(?:\\.\\d+)?)-inches$/);\n\treturn m ? (sculptSet({ unit: 'in', value: Number(m[1]) })?.og ?? null) : null;\n}\n\n/** The page's images for the sitemap, as absolute addresses. */\nexport function sculptSitemapImages(path: string, origin: string): string[] | undefined {\n\tconst m = path.match(/^\\/tools\\/penis-size\\/(\\d+(?:\\.\\d+)?)-inches$/);\n\tconst set = m ? sculptSet({ unit: 'in', value: Number(m[1]) }) : null;\n\treturn set ? [`${origin}${set.toScale.src}`, `${origin}${set.vsAverage.src}`] : undefined;\n}\n\n/** The editor with this page's length and the average girth filled in. */\nexport function sculptHref(row: Pick<ChartRow, 'cm'>): string {\n\treturn `/sculpt?${sculptPrefillQuery(row.cm, GIRTH_CM, 'in')}`;\n}\n\n/** Prause et al., PLoS ONE 2015 (doi 10.1371/journal.pone.0133079): 75 women chose among 33\n *  3D-printed models; mean pick 6.4 in for a one-time partner, 6.3 in for a long-term one. */\nexport const PREFERENCE_STUDY = {\n\turl: 'https://pubmed.ncbi.nlm.nih.gov/26332467/',\n\toneTimeIn: 6.4,\n\tlongTermIn: 6.3\n} as const;\n\n/**\n * The FAQ of a test page: the size page's own questions, with the \"looks like\" one asked the way\n * people search it (\"dick\") and pointing at the sculpture, and one more on what partners prefer.\n */\nexport function sculptFaq(\n\trow: Pick<ChartRow, 'unit' | 'value'>,\n\tbase: { q: string; a: string }[]\n): { q: string; a: string }[] {\n\tif (!isSculptTestRow(row)) return base;\n\tconst n = n1(row.value);\n\tconst looks = base.map((f) =>\n\t\t/^What does .* look like\\?$/.test(f.q)\n\t\t\t? {\n\t\t\t\t\tq: `What does a ${n}-inch dick look like?`,\n\t\t\t\t\ta: `${f.a} The 3D sculpture above shows it to scale, next to an inch ruler and next to the average.`\n\t\t\t\t}\n\t\t\t: f\n\t);\n\tconst { oneTimeIn, longTermIn } = PREFERENCE_STUDY;\n\tconst study = `In a 2015 study, 75 women chose among 33 3D-printed models and picked ${oneTimeIn} inches on average for a one-time partner and ${longTermIn} inches for a long-term one (Prause et al., PLoS ONE).`;\n\tconst gap = Math.round((row.value - oneTimeIn) * 10) / 10;\n\tconst answer =\n\t\trow.value > oneTimeIn + 0.2\n\t\t\t? `Bigger than most women ask for. ${study} ${n} inches is ${n1(gap)} inches more than that.`\n\t\t\t: row.value >= longTermIn - 0.2\n\t\t\t\t? `About what women pick. ${study} ${n} inches sits right in that range.`\n\t\t\t\t: `A little under what women pick on average${row.value > BJU_2015.erectLength.meanIn ? ', and still above the average man' : ''}. ${study} ${n} inches is ${n1(longTermIn - row.value)} inches shorter than the long-term pick.`;\n\treturn [...looks, { q: `Is ${n} inches big for a partner?`, a: answer }];\n}\n","import { chartRow, type ChartRow } from './size-chart';\nimport { LOCALE_INFO, type Locale } from '$lib/i18n/locales';\nimport { isSculptTestRow } from './size-sculpt';\n\n/**\n * One page per erect length (RAT-609, RAT-610): \"7 inch penis\" (12.1K a month,\n * US), \"6 inch penis\" (9.9K), \"pene de 18 cm\" (3.6K, MX) and the rest of the\n * N-inch cluster (~100K a month, KD 25–44, Semrush 2026-10-11) had no page of\n * their own. Inch pages are English; the cm pages exist in every language,\n * since that's how the other markets search. Each page's numbers come from\n * the chart's own row (Veale 2015), so no two pages say the same thing.\n */\n\nexport const SIZE_PAGE_BASE = '/tools/penis-size';\nexport const SIZE_PAGE_INCHES = [4, 4.5, 5, 5.5, 6, 6.5, 7, 7.5, 8, 8.5, 9, 9.5, 10];\nexport const SIZE_PAGE_CM = Array.from({ length: 16 }, (_, i) => 10 + i);\n\nexport const SIZE_PAGES_IN: ChartRow[] = SIZE_PAGE_INCHES.map((v) => chartRow(v, 'in'));\nexport const SIZE_PAGES_CM: ChartRow[] = SIZE_PAGE_CM.map((v) => chartRow(v, 'cm'));\n\nconst BY_SLUG = new Map([...SIZE_PAGES_IN, ...SIZE_PAGES_CM].map((r) => [r.id, r]));\n\nexport const sizePagePath = (row: Pick<ChartRow, 'id'>) => `${SIZE_PAGE_BASE}/${row.id}`;\n\nexport function sizePageBySlug(slug: string): ChartRow | undefined {\n\treturn BY_SLUG.get(slug);\n}\n\n/** The page for a chart row, if that size has one. */\nexport function sizePageFor(row: Pick<ChartRow, 'id'>): string | null {\n\treturn BY_SLUG.has(row.id) ? sizePagePath(row) : null;\n}\n\nexport const SIZE_PAGE_PATHS_IN = SIZE_PAGES_IN.map(sizePagePath);\nexport const SIZE_PAGE_PATHS_CM = SIZE_PAGES_CM.map(sizePagePath);\n\nexport type SizePageSeo = { title: string; description: string };\n\n/** Share of men on the row's side, never rounded up to 100. */\nconst sideShare = (r: ChartRow) => Math.min(99.9, r.side === 'longer' ? r.pct : 100 - r.pct);\n\ntype Words = {\n\t/** \"in\" in the language, after a converted length */\n\tinch: string;\n\ttitle: (n: string) => string;\n\tlead: (n: string, other: string, pct: string, longer: boolean) => string;\n\toneIn: (n: string, longer: boolean) => string;\n\trare: (longer: boolean) => string;\n\ttail: string;\n};\n\n/** Titles and descriptions per language, written for the local search\n *  (\"pene de 18 cm\", \"18 cm Penis\"), not translated from the English line. */\nconst WORDS: Record<Locale, Words> = {\n\ten: {\n\t\tinch: 'in',\n\t\ttitle: (n) => `${n} Penis: Is It Big? Percentile & Rarity | RateMyD`,\n\t\t// \"An 8-inch\", \"An 18 cm\"\n\t\tlead: (n, o, p, l) =>\n\t\t\t`${/^(8|11|18)/.test(n) ? 'An' : 'A'} ${n} (${o}) erect penis is ${l ? 'longer' : 'shorter'} than ${p}% of men`,\n\t\toneIn: (n, l) => `, about 1 in ${n} is ${l ? 'longer' : 'shorter'}`,\n\t\trare: (l) => `, fewer than 1 in 10,000 are ${l ? 'longer' : 'shorter'}`,\n\t\ttail: '. Is it big, how it compares to the average, and how to measure.'\n\t},\n\tde: {\n\t\tinch: 'Zoll',\n\t\ttitle: (n) => `${n} Penis: Ist das groß? Perzentil & Seltenheit | RateMyD`,\n\t\tlead: (n, o, p, l) =>\n\t\t\t`Ein erigierter Penis von ${n} (${o}) ist ${l ? 'länger' : 'kürzer'} als ${p} % der Männer`,\n\t\toneIn: (n, l) => `, etwa 1 von ${n} ist ${l ? 'länger' : 'kürzer'}`,\n\t\trare: (l) => `, unter 1 von 10.000 ist ${l ? 'länger' : 'kürzer'}`,\n\t\ttail: '. Ob das groß ist und wie man richtig misst.'\n\t},\n\tes: {\n\t\tinch: 'pulgadas',\n\t\ttitle: (n) => `Pene de ${n}: ¿es grande? Percentil y rareza | RateMyD`,\n\t\tlead: (n, o, p, l) =>\n\t\t\t`Un pene erecto de ${n} (${o}) es más ${l ? 'largo' : 'corto'} que el ${p} % de los hombres`,\n\t\toneIn: (n, l) => `, más o menos 1 de cada ${n} es más ${l ? 'largo' : 'corto'}`,\n\t\trare: (l) => `, menos de 1 de cada 10.000 es más ${l ? 'largo' : 'corto'}`,\n\t\ttail: '. Si es grande y cómo medirlo bien.'\n\t},\n\tit: {\n\t\tinch: 'pollici',\n\t\ttitle: (n) => `Pene di ${n}: è grande? Percentile e rarità | RateMyD`,\n\t\tlead: (n, o, p, l) =>\n\t\t\t`Un pene eretto di ${n} (${o}) è più ${l ? 'lungo' : 'corto'} del ${p}% degli uomini`,\n\t\toneIn: (n, l) => `, circa 1 su ${n} è più ${l ? 'lungo' : 'corto'}`,\n\t\trare: (l) => `, meno di 1 su 10.000 è più ${l ? 'lungo' : 'corto'}`,\n\t\ttail: '. Se è grande e come misurarlo bene.'\n\t},\n\tfr: {\n\t\tinch: 'pouces',\n\t\ttitle: (n) => `Pénis de ${n} : est-ce grand ? Percentile et rareté | RateMyD`,\n\t\tlead: (n, o, p, l) =>\n\t\t\t`Un pénis en érection de ${n} (${o}) est plus ${l ? 'long' : 'court'} que ${p} % des hommes`,\n\t\toneIn: (n, l) => `, environ 1 sur ${n} est plus ${l ? 'long' : 'court'}`,\n\t\trare: (l) => `, moins de 1 sur 10 000 est plus ${l ? 'long' : 'court'}`,\n\t\ttail: '. S’il est grand et comment bien mesurer.'\n\t},\n\tpt: {\n\t\tinch: 'polegadas',\n\t\ttitle: (n) => `Pênis de ${n}: é grande? Percentil e raridade | RateMyD`,\n\t\tlead: (n, o, p, l) =>\n\t\t\t`Um pênis ereto de ${n} (${o}) é ${l ? 'maior' : 'menor'} que ${p}% dos homens`,\n\t\toneIn: (n, l) => `, cerca de 1 em ${n} é ${l ? 'maior' : 'menor'}`,\n\t\trare: (l) => `, menos de 1 em 10.000 é ${l ? 'maior' : 'menor'}`,\n\t\ttail: '. Se é grande, a comparação com a média e como medir.'\n\t},\n\thu: {\n\t\tinch: 'hüvelyk',\n\t\ttitle: (n) => `${n}-es pénisz: nagynak számít? Percentilis és ritkaság | RateMyD`,\n\t\tlead: (n, o, p, l) =>\n\t\t\t`Egy ${n}-es (${o}) merev pénisz ${l ? 'hosszabb' : 'rövidebb'} a férfiak ${p}%-ánál`,\n\t\toneIn: (n, l) => `; nagyjából minden ${n}. férfié ${l ? 'hosszabb' : 'rövidebb'}`,\n\t\trare: (l) => `; 10 000 férfiból kevesebb mint egyé ${l ? 'hosszabb' : 'rövidebb'}`,\n\t\ttail: '. Nagynak számít-e, és hogyan mérd le pontosan.'\n\t}\n};\n\n/** The page's title and description in a language. Inch pages are English\n *  only; a cm page has one per language. */\nexport function sizePageSeo(row: ChartRow, locale: Locale): SizePageSeo {\n\tconst w = WORDS[locale];\n\tconst tag = LOCALE_INFO[locale].hreflang;\n\tconst n1 = (v: number) => v.toLocaleString(tag, { maximumFractionDigits: 1 });\n\tconst longer = row.side === 'longer';\n\tconst inch = row.unit === 'in';\n\t// \"7 Inch\" in an English title, \"7-inch\" in its sentence; \"18 cm\" everywhere\n\tconst titleSize = inch ? `${n1(row.value)} Inch` : `${n1(row.value)} cm`;\n\tconst size = inch ? `${n1(row.value)}-inch` : `${n1(row.value)} cm`;\n\tconst other = inch ? `${n1(row.cm)} cm` : `${n1(row.cm / 2.54)} ${w.inch}`;\n\tconst rarity =\n\t\trow.oneIn === null\n\t\t\t? w.rare(longer)\n\t\t\t: row.oneIn >= 3\n\t\t\t\t? w.oneIn(row.oneIn.toLocaleString(tag), longer)\n\t\t\t\t: '';\n\t// RAT-654: the test pages show the size as a sculpture, so they say so, and name \"dick\",\n\t// the word most of their searches use (6.5 inch dick: 738 impressions at 0.7%, GSC 10-30–11-26)\n\tif (locale === 'en' && isSculptTestRow(row)) {\n\t\treturn {\n\t\t\ttitle: `${titleSize} Dick or Penis: Is It Big? See It to Scale | RateMyD`,\n\t\t\tdescription:\n\t\t\t\tw.lead(size, other, n1(sideShare(row)), longer) +\n\t\t\t\trarity +\n\t\t\t\t'. See it to scale in 3D, next to a ruler and the average.'\n\t\t};\n\t}\n\treturn {\n\t\ttitle: w.title(titleSize),\n\t\tdescription: w.lead(size, other, n1(sideShare(row)), longer) + rarity + w.tail\n\t};\n}\n\n/** SEO entries for every size page in a language, keyed by path. */\nexport function sizePageSeoEntries(locale: Locale): Record<string, SizePageSeo> {\n\tconst rows = locale === 'en' ? [...SIZE_PAGES_IN, ...SIZE_PAGES_CM] : SIZE_PAGES_CM;\n\treturn Object.fromEntries(rows.map((r) => [sizePagePath(r), sizePageSeo(r, locale)]));\n}\n"],"version":3}