@mavea/mavea 2.2.0 → 2.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (105) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/dist/.vite/manifest.json +354 -354
  3. package/dist/assets/{AnnotationLayer-HanjTRYY.js → AnnotationLayer-CzXCVZCu.js} +1 -1
  4. package/dist/assets/{AppCommandPalette-DBiuHUNL.js → AppCommandPalette-D6904cc9.js} +1 -1
  5. package/dist/assets/{CheckLogRail-CfoGgTqv.js → CheckLogRail-CeRhbIwa.js} +1 -1
  6. package/dist/assets/{ConversationVideoStudio-CEi_cgBR.js → ConversationVideoStudio-Cyu-M9Us.js} +1 -1
  7. package/dist/assets/{CourseLessonReader-CaLT_Y6N.js → CourseLessonReader-BvTabDPT.js} +2 -2
  8. package/dist/assets/{CoursesApp-IfWCeml5.js → CoursesApp-B8kZ6pFr.js} +2 -2
  9. package/dist/assets/{DashPresent-T7I-lAng.js → DashPresent-Dr0LLNnz.js} +1 -1
  10. package/dist/assets/{DashboardDetail-BhRSDenD.js → DashboardDetail-B5JZ6fRz.js} +2 -2
  11. package/dist/assets/{DashboardLoopGate-DBVAR7IS.js → DashboardLoopGate-UHcbTCXN.js} +2 -2
  12. package/dist/assets/DashboardLoopRuntime-BZutKupS.js +1 -0
  13. package/dist/assets/{DashboardsApp-C_awJ3hM.js → DashboardsApp-DzVa4Nqd.js} +2 -2
  14. package/dist/assets/{DeepZoomApp-C-66OasV.js → DeepZoomApp-CN8ZKeS4.js} +1 -1
  15. package/dist/assets/{DelegatePanel-DaJTDkYu.js → DelegatePanel-DO7J_rk_.js} +1 -1
  16. package/dist/assets/{DemoGallery-B9F7SUzp.js → DemoGallery-DMQP4JAa.js} +1 -1
  17. package/dist/assets/{DropSelect-IBjV5Ol1.js → DropSelect-BVDNR47E.js} +1 -1
  18. package/dist/assets/{ExportModal-gckBiikq.js → ExportModal-BVsirsNU.js} +1 -1
  19. package/dist/assets/{ExtractionPreview-DDOkCH9u.js → ExtractionPreview-872OE2ZI.js} +1 -1
  20. package/dist/assets/{FeatureUseNotice-BfnZH8Vt.js → FeatureUseNotice-BNDajs0p.js} +1 -1
  21. package/dist/assets/{FlagshipCommandPalette-CYQdl3Zu.js → FlagshipCommandPalette-mKkMVsza.js} +1 -1
  22. package/dist/assets/{FlagshipShowcase-CFMmbeff.js → FlagshipShowcase-CL_KWgKn.js} +1 -1
  23. package/dist/assets/{FlashcardsApp-KJ1bmlbp.js → FlashcardsApp-COYviD1h.js} +1 -1
  24. package/dist/assets/GalleryApp-B5z9rsrO.css +1 -0
  25. package/dist/assets/{GalleryApp-Dh8Nc_So.js → GalleryApp-D96R7Hdy.js} +2 -2
  26. package/dist/assets/{HonestByDesign-C3LTj4Bx.js → HonestByDesign-DOg91fEf.js} +1 -1
  27. package/dist/assets/{HowItWorks-C5Dqqvl-.js → HowItWorks-D4lHSwEb.js} +1 -1
  28. package/dist/assets/{LegalApp-DYVJIUyF.js → LegalApp-BSPhYvKz.js} +1 -1
  29. package/dist/assets/{LegalMarkdownDocument-CbuQ-pLN.js → LegalMarkdownDocument-DDUOgn72.js} +1 -1
  30. package/dist/assets/{LegalPageShell-CoEyiZGz.js → LegalPageShell-DSbe8dTr.js} +1 -1
  31. package/dist/assets/{LibraryOverlay-TQnxY9R8.js → LibraryOverlay-CEhVoSyv.js} +1 -1
  32. package/dist/assets/{LiveApp-DRnphsFA.js → LiveApp-DtpM4tO0.js} +4 -4
  33. package/dist/assets/{LiveSettings-Cz3XSqv8.js → LiveSettings-C7luyoWU.js} +1 -1
  34. package/dist/assets/{MindMapViewerDrawer-AUJlLC2R.js → MindMapViewerDrawer-DxcjLJzB.js} +1 -1
  35. package/dist/assets/{MindShape-BbuVOTaR.js → MindShape-DhEmAQeq.js} +1 -1
  36. package/dist/assets/{PinToDashboard-BdXI7oo9.js → PinToDashboard-CQHDENt1.js} +1 -1
  37. package/dist/assets/{PlanReview-CGRvSRAt.js → PlanReview-f7EY7XTc.js} +1 -1
  38. package/dist/assets/{PresentationDeck-CoPmOr2f.js → PresentationDeck-Bo1BVx73.js} +1 -1
  39. package/dist/assets/{PrismApp-DPECS285.js → PrismApp-CBr8XpUt.js} +2 -2
  40. package/dist/assets/{PrismBriefingPlayer-BvpG7oZs.js → PrismBriefingPlayer-qNjVbmUq.js} +2 -2
  41. package/dist/assets/{PrismOverlay-c8rcvt4V.js → PrismOverlay-L_lLIH_1.js} +3 -3
  42. package/dist/assets/{PrismWorkbench-BEaD7Arj.js → PrismWorkbench-DK-1IY4A.js} +1 -1
  43. package/dist/assets/{PrivacyApp-_O_MR088.js → PrivacyApp-DT8wZumn.js} +1 -1
  44. package/dist/assets/{ReplayCard-IN-ilb2E.js → ReplayCard-BQr6DWYi.js} +2 -2
  45. package/dist/assets/{ReplayOverlay-ZRjFP-zf.js → ReplayOverlay-CRVixwg2.js} +1 -1
  46. package/dist/assets/{RippleApp-D_Gd8Lw8.js → RippleApp-CMY2OCRm.js} +2 -2
  47. package/dist/assets/{RippleOverlay-vP2KxTiI.js → RippleOverlay-Dwi8Ir43.js} +2 -2
  48. package/dist/assets/{SeeDontRead-BmUyUai5.js → SeeDontRead-BkeAv1Jd.js} +1 -1
  49. package/dist/assets/{ShareModal-_KYCohqO.js → ShareModal-DVwc57KT.js} +2 -2
  50. package/dist/assets/{ShipCourse--ajDej06.js → ShipCourse-BNEPgsV5.js} +1 -1
  51. package/dist/assets/{SignatureLoop-DDw2gtQ_.js → SignatureLoop-C9GvENvP.js} +1 -1
  52. package/dist/assets/{SynthesisApp-CilzogOF.js → SynthesisApp-BPAT6v7a.js} +2 -2
  53. package/dist/assets/{SynthesisOverlay-CAK5h0hB.js → SynthesisOverlay-u_W105hD.js} +1 -1
  54. package/dist/assets/{TemplatePicker-3w18ViSc.js → TemplatePicker-CAC4ggbJ.js} +1 -1
  55. package/dist/assets/{TermsApp-BfTGOTq6.js → TermsApp-BlyUsTrJ.js} +1 -1
  56. package/dist/assets/{TopicCanvas-DSCNWNjv.js → TopicCanvas-CyBGLgb0.js} +2 -2
  57. package/dist/assets/{TourPrism-Y47m-KGq.js → TourPrism-Cn2YHIwh.js} +1 -1
  58. package/dist/assets/{TrackerTile-LXFQXcvH.js → TrackerTile-Ds3ks6Bh.js} +2 -2
  59. package/dist/assets/{TwoSurfaces-CSpKrgfJ.js → TwoSurfaces-cdP8bAG9.js} +1 -1
  60. package/dist/assets/{WorldOverlay-D5FWgYe3.js → WorldOverlay-DPkQobVE.js} +1 -1
  61. package/dist/assets/{WowFeatures-e6mkftpD.js → WowFeatures-BBtcWAOz.js} +1 -1
  62. package/dist/assets/{ZoomDeck-CC9zXPxF.js → ZoomDeck-Cdvkvo2H.js} +1 -1
  63. package/dist/assets/{audioTrack-w1tZwSoU.js → audioTrack-W_18XwGZ.js} +1 -1
  64. package/dist/assets/canvas-BX595EVB.js +1 -0
  65. package/dist/assets/{capture-Bomj_Egy.js → capture-Dyff_zSz.js} +1 -1
  66. package/dist/assets/{confirmAdd-CUFiPNWz.js → confirmAdd-D_hDIeaD.js} +1 -1
  67. package/dist/assets/{dashboardEvents-PktCbV72.js → dashboardEvents-BV0Ly6No.js} +1 -1
  68. package/dist/assets/{deepen-Dz4yTyJs.js → deepen-D8kPrlU5.js} +1 -1
  69. package/dist/assets/docs-6X4Ki_cV.js +1 -0
  70. package/dist/assets/{effort-BKGxLYoq.js → effort-QeWrMtZt.js} +1 -1
  71. package/dist/assets/{generateBeats-BjWC2fwl.js → generateBeats-Da9RmZke.js} +1 -1
  72. package/dist/assets/{generateLive-BLajGcNK.js → generateLive-CDIkclO4.js} +1 -1
  73. package/dist/assets/{index-CKRjGbeR.js → index-BMeoXWPR.js} +3 -3
  74. package/dist/assets/{kokoro-B-rc224u.js → kokoro-DcP-u0Tl.js} +1 -1
  75. package/dist/assets/{loader-BiYFMeRS.js → loader-BRfSnl9t.js} +2 -2
  76. package/dist/assets/{notes-nfocTnUv.js → notes-BDCTTA87.js} +1 -1
  77. package/dist/assets/{perfProbe-BqMK4N56.js → perfProbe-ssw0AtWX.js} +1 -1
  78. package/dist/assets/{pin-IyE46GaQ.js → pin-Bic4-gim.js} +1 -1
  79. package/dist/assets/{portal-C2b5NoMN.js → portal-Dpb34d3-.js} +1 -1
  80. package/dist/assets/{prewarm-Pvdu5Jt0.js → prewarm-xdXDmF8B.js} +1 -1
  81. package/dist/assets/{quietHours-lWcjQ2Iu.js → quietHours-uFS7n8N6.js} +1 -1
  82. package/dist/assets/{registry-BD1Zyd46.js → registry-BV02ROnH.js} +1 -1
  83. package/dist/assets/{registry-OUL5YJry.js → registry-BWx2f_wi.js} +1 -1
  84. package/dist/assets/{registry-BJFqryP_.js → registry-Bs5HUWIJ.js} +1 -1
  85. package/dist/assets/registry-CdPShFc3.js +1 -0
  86. package/dist/assets/{registry-BiT0eNZb.js → registry-DNIasVGX.js} +1 -1
  87. package/dist/assets/{registry-BTUHr4mQ.js → registry-DueizAoA.js} +1 -1
  88. package/dist/assets/{registry-CnmuVlAA.js → registry-PAcazQzL.js} +1 -1
  89. package/dist/assets/{relate-ZHm-ZvaR.js → relate-BHJl3RaA.js} +1 -1
  90. package/dist/assets/{replay-DBeCo_vn.js → replay-DoRQJHjZ.js} +1 -1
  91. package/dist/assets/{select-CejTsgpx.js → select-StjZ4ZRN.js} +1 -1
  92. package/dist/assets/shard010-Bal9PeRL.js +1 -0
  93. package/dist/assets/shard049-C4_IyApZ.js +1 -0
  94. package/dist/assets/{useDashboardLoop-SPlr1Mrm.js → useDashboardLoop-DEE_sLT0.js} +1 -1
  95. package/dist/assets/{walkSync-BtO3jsqQ.js → walkSync-CRhkAQFu.js} +1 -1
  96. package/dist/demo-assets/CREDITS.md +36 -0
  97. package/dist/index.html +1 -1
  98. package/package.json +1 -1
  99. package/dist/assets/DashboardLoopRuntime-B55z8L4b.js +0 -1
  100. package/dist/assets/GalleryApp-B4KBdNyu.css +0 -1
  101. package/dist/assets/canvas-BRGFkCD-.js +0 -1
  102. package/dist/assets/docs-B2aDtm5K.js +0 -1
  103. package/dist/assets/registry-BmjYillB.js +0 -1
  104. package/dist/assets/shard010-CQfR6lnk.js +0 -1
  105. package/dist/assets/shard049-hPaNN2sL.js +0 -1
@@ -1 +1 @@
1
- import{r as e}from"./rolldown-runtime-DkW27tQK.js";import{t}from"./react-BZJXY1be.js";import{t as n}from"./compiler-runtime-qQQXpJgv.js";import{t as r}from"./jsx-runtime-DeHZSEgm.js";import{n as i}from"./icons-gLFQTv74.js";import{t as a}from"./richText-BkxJhl9N.js";import{t as o}from"./safeImageUrl-BINWXOTz.js";import{r as s}from"./lib-Dkb5WBRc.js";import{t as c}from"./registry-types-D3q_LrlV.js";import{r as l,s as u,t as d}from"./kokoro-B-rc224u.js";import{t as f}from"./safeCssColor-di93BXgG.js";var p=t(),m=r(),h=480,g=90,_=240,v=390,y=120,b=38,x=14;function S(e){let t=typeof e==`string`?e.toLowerCase():``;return t.includes(`proto`)||t.includes(`pie`)||t.includes(`indo`)?`var(--text-muted)`:t.includes(`latin`)||t.includes(`greek`)||t.includes(`ancient`)?`var(--presence)`:t.includes(`french`)||t.includes(`romance`)||t.includes(`spanish`)||t.includes(`italian`)?`var(--insight)`:t.includes(`german`)||t.includes(`dutch`)||t.includes(`nordic`)||t.includes(`norse`)?`var(--warning)`:t.includes(`arabic`)||t.includes(`persian`)||t.includes(`sanskrit`)?`var(--danger)`:`var(--text-secondary)`}var C=18,w=22;function T(e,t){return e.length>t?e.slice(0,t-1).trimEnd()+`…`:e}function E(e){return typeof e==`string`?e:``}function D({word:e,roots:t,descendants:n,note:r,footer:i,delay:o}){let s=E(e)||`Word`,{vbH:c,wordY:l,wordCY:u,rootBoxes:d,descBoxes:f}=(0,p.useMemo)(()=>{let e=t??[],r=n??[],i=e.length,a=r.length,o=Math.max(i,a,1)*52-x+32+12,s=Math.max(o,120),c=s/2,l=c-b/2,u=c-(i*52-(i>0?x:0))/2,d=e.map((e,t)=>({r:e,x:g-y/2,y:u+t*52,cy:u+t*52+b/2,color:S(e.lang)})),f=c-(a*52-(a>0?x:0))/2;return{vbH:s,wordY:l,wordCY:c,rootBoxes:d,descBoxes:r.map((e,t)=>({d:e,x:v-y/2,y:f+t*52,cy:f+t*52+b/2,color:S(e.lang??``)}))}},[t,n]),D=(e,t,n,r)=>{let i=(e+n)/2;return`M ${e.toFixed(1)},${t.toFixed(1)} C ${i.toFixed(1)},${t.toFixed(1)} ${i.toFixed(1)},${r.toFixed(1)} ${n.toFixed(1)},${r.toFixed(1)}`};return(0,m.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(o??0)+`ms`},children:[(0,m.jsx)(`div`,{className:`et-wrap`,children:(0,m.jsxs)(`svg`,{className:`et-svg`,viewBox:`0 0 ${h} ${c}`,role:`img`,"aria-label":`Etymology of "${s}"`,preserveAspectRatio:`xMidYMid meet`,children:[d.map((e,t)=>(0,m.jsx)(`path`,{d:D(150,e.cy,_-y/2,u),fill:`none`,stroke:e.color,strokeWidth:`1.5`,opacity:`0.75`},`rc${t}`)),f.map((e,t)=>(0,m.jsx)(`path`,{d:D(300,u,v-y/2,e.cy),fill:`none`,stroke:e.color,strokeWidth:`1.5`,opacity:`0.75`},`dc${t}`)),d.map(({r:e,x:t,y:n,cy:r,color:i},a)=>{let o=E(e.form),s=E(e.lang),c=E(e.gloss),l=s+(c?` · ${c}`:``);return(0,m.jsxs)(`g`,{children:[(0,m.jsx)(`rect`,{x:t,y:n,width:y,height:b,rx:6,className:`et-box`,style:{stroke:i}}),(0,m.jsxs)(`text`,{x:g,y:r-7,textAnchor:`middle`,className:`et-form`,children:[o.length>C&&(0,m.jsx)(`title`,{children:o}),T(o,C)]}),(0,m.jsxs)(`text`,{x:g,y:r+9,textAnchor:`middle`,className:`et-lang`,style:{fill:i},children:[l.length>w&&(0,m.jsx)(`title`,{children:l}),T(l,w)]})]},`r${a}`)}),(0,m.jsx)(`rect`,{x:_-y/2,y:l,width:y,height:b,rx:8,className:`et-word-box`}),(0,m.jsx)(`text`,{x:_,y:u+5,textAnchor:`middle`,className:`et-word`,children:s}),f.map(({d:e,x:t,y:n,cy:r,color:i},a)=>{let o=E(e.form),s=E(e.lang),c=E(e.gloss),l=s?`${s}${c?` · ${c}`:``}`:c;return(0,m.jsxs)(`g`,{children:[(0,m.jsx)(`rect`,{x:t,y:n,width:y,height:b,rx:6,className:`et-box`,style:{stroke:i}}),(0,m.jsxs)(`text`,{x:v,y:r-7,textAnchor:`middle`,className:`et-form`,children:[o.length>C&&(0,m.jsx)(`title`,{children:o}),T(o,C)]}),(0,m.jsxs)(`text`,{x:v,y:r+9,textAnchor:`middle`,className:`et-lang`,style:{fill:i},children:[l.length>w&&(0,m.jsx)(`title`,{children:l}),T(l,w)]})]},`d${a}`)}),(0,m.jsx)(`text`,{x:g,y:12,textAnchor:`middle`,className:`et-col-hdr`,children:`Roots`}),f.length>0&&(0,m.jsx)(`text`,{x:v,y:12,textAnchor:`middle`,className:`et-col-hdr`,children:`Descendants`})]})}),r&&(0,m.jsx)(`div`,{className:`et-note`,children:r}),i&&(0,m.jsx)(`div`,{className:`insight-summary`,dangerouslySetInnerHTML:a(i),style:{marginTop:12}})]})}function ee({title:e,icon:t=`doc`,iconColor:n=`var(--presence)`,subject:r,tagline:o,facts:s,body:c,footer:l,delay:u}){let d=i[t]??i.doc,f=s??[];return(0,m.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(u??0)+`ms`},children:[(0,m.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,m.jsx)(d,{className:`ic`,style:{color:n}}),` `,e]}),(0,m.jsx)(`div`,{className:`fs-subject`,children:r}),o&&(0,m.jsx)(`div`,{className:`fs-tagline`,children:o}),f.length>0&&(0,m.jsx)(`div`,{className:`fs-facts`,children:f.map((e,t)=>(0,m.jsxs)(`div`,{className:`fs-row`,children:[(0,m.jsx)(`span`,{className:`fs-label`,children:e.label}),(0,m.jsxs)(`span`,{className:`fs-value`,...t===0?{"data-mark":`underline`}:{},children:[e.value,e.note&&(0,m.jsxs)(`span`,{className:`fs-note`,children:[` `,e.note]})]})]},t))}),c&&(0,m.jsx)(`div`,{className:`fs-body`,dangerouslySetInnerHTML:a(c)}),l&&(0,m.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(l)})]})}var O=n(),k={flammable:`Flammable`,corrosive:`Corrosive`,toxic:`Toxic`,irritant:`Irritant`,oxidizer:`Oxidizer`,healthHazard:`Health hazard`,environment:`Environment`,explosive:`Explosive`,compressedGas:`Compressed gas`},te=`12,1.6 22.4,12 12,22.4 1.6,12`,A={flammable:()=>(0,m.jsx)(`path`,{className:`ghs-symbol-fill`,d:`M12 6c1.9 2.4 2.9 4.2 2.9 6a2.9 2.9 0 0 1-5.8 0c0-.7.15-1.3.45-1.85-.05.5.1.9.5 1.15-.15-1.7.3-3.4 1.95-5.3Z`}),corrosive:()=>(0,m.jsxs)(`g`,{className:`ghs-symbol`,children:[(0,m.jsx)(`line`,{x1:`5.6`,y1:`13.4`,x2:`18.4`,y2:`13.4`}),(0,m.jsx)(`path`,{d:`M9 6.6v3.6q0 1.7-1.1 3.2`}),(0,m.jsx)(`path`,{d:`M15 6.6v3.6q0 1.7 1.1 3.2`}),(0,m.jsx)(`path`,{d:`M7.6 15.4q.6 1.2 0 2.4`}),(0,m.jsx)(`path`,{d:`M16.4 15.4q.6 1.4-.2 2.6`})]}),toxic:()=>(0,m.jsxs)(`g`,{className:`ghs-symbol`,children:[(0,m.jsx)(`circle`,{cx:`12`,cy:`10.1`,r:`3.15`}),(0,m.jsx)(`circle`,{className:`ghs-symbol-fill`,cx:`10.6`,cy:`9.8`,r:`0.55`}),(0,m.jsx)(`circle`,{className:`ghs-symbol-fill`,cx:`13.4`,cy:`9.8`,r:`0.55`}),(0,m.jsx)(`path`,{d:`M10.6 12.3q1.4 1 2.8 0`}),(0,m.jsx)(`path`,{d:`M8.1 17.1 15.9 13.7`}),(0,m.jsx)(`path`,{d:`M8.1 13.7 15.9 17.1`})]}),irritant:()=>(0,m.jsxs)(`g`,{className:`ghs-symbol-fill`,children:[(0,m.jsx)(`rect`,{x:`11.05`,y:`6.4`,width:`1.9`,height:`6.6`,rx:`0.95`}),(0,m.jsx)(`circle`,{cx:`12`,cy:`15.9`,r:`1.1`})]}),oxidizer:()=>(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(`circle`,{className:`ghs-symbol`,cx:`12`,cy:`15.1`,r:`3.05`}),(0,m.jsx)(`path`,{className:`ghs-symbol-fill`,d:`M12 6c1.5 2 2.3 3.5 2.3 5a2.3 2.3 0 0 1-4.6 0c0-.55.1-1 .3-1.45-.05.4.1.7.4.9-.1-1.35.35-2.7 1.6-4.45Z`})]}),healthHazard:()=>(0,m.jsxs)(`g`,{className:`ghs-symbol`,children:[(0,m.jsx)(`circle`,{cx:`12`,cy:`7.5`,r:`1.75`}),(0,m.jsx)(`path`,{d:`M8.3 17c.1-3.15 1.7-5.1 3.7-5.1s3.6 1.95 3.7 5.1`}),(0,m.jsx)(`path`,{d:`M12 12.6v3.4`}),(0,m.jsx)(`path`,{d:`M10.5 14.3h3`}),(0,m.jsx)(`path`,{d:`M10.8 13.15l2.4 2.4`}),(0,m.jsx)(`path`,{d:`M13.2 13.15l-2.4 2.4`})]}),environment:()=>(0,m.jsxs)(`g`,{className:`ghs-symbol`,children:[(0,m.jsx)(`path`,{d:`M8.7 7.4v6.2`}),(0,m.jsx)(`path`,{d:`M8.7 9.7 7 8.2`}),(0,m.jsx)(`path`,{d:`M8.7 8.9l1.9-1.6`}),(0,m.jsx)(`path`,{d:`M8.7 11.7 7 13`}),(0,m.jsx)(`path`,{d:`M6 15.9c1.35.85 2.85.85 4.2 0`}),(0,m.jsx)(`path`,{d:`M13.6 15.9c1.35.85 2.85.85 4.2 0`}),(0,m.jsx)(`path`,{className:`ghs-symbol-fill`,d:`M14.9 12.6c1.7-.35 3.05.2 3.7 1.15-.7.95-2.1 1.5-3.7 1.15.35-.5.35-1.8 0-2.3Z`})]}),explosive:()=>(0,m.jsxs)(`g`,{children:[(0,m.jsx)(`circle`,{className:`ghs-symbol-fill`,cx:`12`,cy:`12`,r:`1.55`}),(0,m.jsxs)(`g`,{className:`ghs-symbol`,children:[(0,m.jsx)(`path`,{d:`M12 6.5v2.3`}),(0,m.jsx)(`path`,{d:`M12 15.2v2.3`}),(0,m.jsx)(`path`,{d:`M6.5 12h2.3`}),(0,m.jsx)(`path`,{d:`M15.2 12h2.3`}),(0,m.jsx)(`path`,{d:`M8.3 8.3l1.6 1.6`}),(0,m.jsx)(`path`,{d:`M14.1 14.1l1.6 1.6`}),(0,m.jsx)(`path`,{d:`M15.7 8.3l-1.6 1.6`}),(0,m.jsx)(`path`,{d:`M9.9 14.1l-1.6 1.6`})]})]}),compressedGas:()=>(0,m.jsxs)(`g`,{className:`ghs-symbol`,children:[(0,m.jsx)(`rect`,{x:`9.3`,y:`9.1`,width:`5.4`,height:`8.4`,rx:`1.3`}),(0,m.jsx)(`rect`,{x:`10.55`,y:`6.35`,width:`2.9`,height:`2.4`,rx:`0.5`}),(0,m.jsx)(`line`,{x1:`9.6`,y1:`12.6`,x2:`14.4`,y2:`12.6`})]})};function j(e){let t=(0,O.c)(7),{kind:n,className:r}=e,i=A[n],a=k[n],o;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,m.jsx)(`polygon`,{className:`ghs-diamond`,points:te}),t[0]=o):o=t[0];let s;t[1]===i?s=t[2]:(s=(0,m.jsx)(i,{}),t[1]=i,t[2]=s);let c;return t[3]!==r||t[4]!==a||t[5]!==s?(c=(0,m.jsxs)(`svg`,{viewBox:`0 0 24 24`,role:`img`,"aria-label":a,className:r,children:[o,s]}),t[3]=r,t[4]=a,t[5]=s,t[6]=c):c=t[6],c}function ne({title:e,icon:t=`alert`,iconColor:n=`var(--danger)`,cas:r,signalWord:o,pictograms:s,hazards:c,precautions:l,footer:u,delay:d}){let f=i[t]??i.alert,p=o===`Warning`,h=p?`var(--warning)`:`var(--danger)`,g=(s??[]).filter(e=>e in k),_=c??[],v=l??[];return(0,m.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(d??0)+`ms`},children:[(0,m.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,m.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),r&&(0,m.jsxs)(`div`,{className:`hc-cas`,children:[`CAS `,r]}),(0,m.jsxs)(`div`,{className:`hc-signal`,style:{"--hc-c":h},role:`status`,children:[(0,m.jsx)(`span`,{className:`hc-signal-icon`,children:(0,m.jsx)(i.alert,{})}),(0,m.jsx)(`span`,{className:`hc-signal-word`,children:p?`Warning`:`Danger`})]}),g.length>0&&(0,m.jsx)(`div`,{className:`hc-pictograms`,children:g.map((e,t)=>(0,m.jsxs)(`div`,{className:`hc-pic m-stagger-item m-scale-in`,style:{"--i":t},children:[(0,m.jsx)(j,{kind:e,className:`hc-pic-glyph`}),(0,m.jsx)(`span`,{className:`hc-pic-label`,children:k[e]})]},t))}),_.length>0&&(0,m.jsxs)(`div`,{className:`hc-section`,children:[(0,m.jsx)(`div`,{className:`hc-section-label`,children:`Hazards`}),(0,m.jsx)(`div`,{className:`hc-codes`,children:_.map((e,t)=>(0,m.jsxs)(`div`,{className:`hc-code-row m-stagger-item m-fade-rise`,style:{"--i":t},children:[(0,m.jsx)(`span`,{className:`hc-code`,children:e.code}),(0,m.jsx)(`span`,{className:`hc-code-text`,children:e.text})]},t))})]}),v.length>0&&(0,m.jsxs)(`div`,{className:`hc-section`,children:[(0,m.jsx)(`div`,{className:`hc-section-label`,children:`Precautions`}),(0,m.jsx)(`div`,{className:`hc-codes`,children:v.map((e,t)=>(0,m.jsxs)(`div`,{className:`hc-code-row m-stagger-item m-fade-rise`,style:{"--i":t},children:[(0,m.jsx)(`span`,{className:`hc-code`,children:e.code}),(0,m.jsx)(`span`,{className:`hc-code-text`,children:e.text})]},t))})]}),u&&(0,m.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(u)})]})}function re({title:e,icon:t=`globe`,iconColor:n=`var(--presence)`,topic:r,asOf:o,items:s,footer:c,delay:l}){let u=i[t]??i.globe,d=s??[];return(0,m.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(l??0)+`ms`},children:[(0,m.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,m.jsx)(u,{className:`ic`,style:{color:n}}),` `,e]}),(0,m.jsxs)(`div`,{className:`nd-meta`,children:[r&&(0,m.jsx)(`span`,{className:`nd-topic`,children:r}),(0,m.jsx)(`span`,{className:`nd-asof`,children:o})]}),(0,m.jsx)(`div`,{className:`nd-items`,children:d.map((e,t)=>(0,m.jsxs)(`div`,{className:`nd-item`,children:[(0,m.jsx)(`div`,{className:`nd-headline`,...t===0?{"data-mark":`underline`}:{},children:e.headline}),(e.source||e.time||e.category)&&(0,m.jsxs)(`div`,{className:`nd-item-meta`,children:[e.source&&(0,m.jsx)(`span`,{className:`nd-source`,children:e.source}),e.time&&(0,m.jsx)(`span`,{className:`nd-time`,children:e.time}),e.category&&(0,m.jsx)(`span`,{className:`nd-cat`,children:e.category})]}),e.summary&&(0,m.jsx)(`div`,{className:`nd-summary`,children:e.summary})]},t))}),c&&(0,m.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(c)})]})}function ie({title:e,icon:t=`globe`,iconColor:n=`var(--presence)`,fromLang:r,toLang:o,text:c,result:l,pairs:u,footer:d,delay:f}){let p=i[t]??i.globe,h=u??[];return(0,m.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(f??0)+`ms`},children:[(0,m.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,m.jsx)(p,{className:`ic`,style:{color:n}}),` `,e]}),(0,m.jsxs)(`div`,{className:`tl-langs`,children:[(0,m.jsx)(`span`,{className:`tl-from`,children:r}),(0,m.jsx)(`span`,{className:`tl-arrow`,children:`→`}),(0,m.jsx)(`span`,{className:`tl-to`,children:o})]}),(0,m.jsxs)(`div`,{className:`tl-pair`,children:[(0,m.jsx)(`div`,{className:`tl-source`,children:(0,m.jsx)(`div`,{className:`tl-text`,style:{color:`var(--text-secondary)`},children:c})}),(0,m.jsx)(`div`,{className:`tl-result`,children:(0,m.jsx)(`div`,{className:`tl-text`,style:{fontWeight:600},"data-mark":`underline`,children:l})})]}),(0,m.jsx)(`div`,{style:{display:`flex`,justifyContent:`flex-end`,marginTop:6},children:(0,m.jsx)(s,{text:l,label:`Copy ${o} translation`})}),h.length>0&&(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(`div`,{style:{fontSize:`var(--fs-xs, 11px)`,fontWeight:700,color:`var(--text-muted)`,textTransform:`uppercase`,letterSpacing:`0.07em`,marginTop:14,marginBottom:4},children:`Breakdown`}),(0,m.jsx)(`div`,{className:`tl-breakdowns`,children:h.map((e,t)=>(0,m.jsxs)(`div`,{className:`tl-bp`,children:[(0,m.jsx)(`span`,{className:`tl-bp-orig`,children:e.original}),(0,m.jsxs)(`span`,{className:`tl-bp-trans`,children:[e.translated,e.note&&(0,m.jsx)(`span`,{className:`tl-bp-note`,style:{display:`block`,marginTop:2},children:e.note})]})]},t))})]}),d&&(0,m.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(d)})]})}function ae({title:e,icon:t=`globe`,iconColor:n=`var(--presence)`,word:r,ipa:o,syllables:s,tips:c,footer:l,delay:u}){let d=i[t]??i.doc,f=c??[],p=(()=>{if(!s)return[];let e=s.split(`·`);if(!o)return e.map(e=>({text:e,stressed:!1}));let t=(()=>{let t=o.indexOf(`ˈ`);if(t===-1)return-1;let n=o.replace(/[/[\]]/g,``),r=t/Math.max(n.length,1);return Math.min(Math.round(r*e.length),e.length-1)})();return e.map((e,n)=>({text:e,stressed:n===t}))})();return(0,m.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(u??0)+`ms`},children:[(0,m.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,m.jsx)(d,{className:`ic`,style:{color:n}}),` `,e]}),(0,m.jsx)(`div`,{className:`pr-word`,children:r}),o&&(0,m.jsx)(`div`,{className:`pr-ipa`,style:{display:`inline-block`,fontFamily:`var(--font-mono, monospace)`,fontStyle:`normal`,background:`var(--grid-line)`,borderRadius:`var(--r-sm, 4px)`,padding:`2px 8px`,marginTop:6,fontSize:`var(--fs-sm, 14px)`,color:`var(--text-primary)`,letterSpacing:`0.04em`},children:o}),p.length>0&&(0,m.jsx)(`div`,{className:`pr-syllables`,children:p.map((e,t)=>(0,m.jsxs)(`span`,{children:[t>0&&(0,m.jsx)(`span`,{"aria-hidden":`true`,style:{color:`var(--text-muted)`},children:`·`}),(0,m.jsx)(`span`,{style:e.stressed?{fontWeight:800,color:`var(--presence)`}:{fontWeight:400,color:`var(--text-secondary)`},...e.stressed?{"data-mark":`underline`}:{},children:e.text})]},t))}),f.length>0&&(0,m.jsx)(`div`,{className:`pr-tips`,children:f.map((e,t)=>(0,m.jsx)(`div`,{className:`pr-tip`,children:e},t))}),l&&(0,m.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(l)})]})}function oe({title:e,icon:t=`doc`,iconColor:n=`var(--presence)`,word:r,phonetic:o,senses:s,etymology:c,footer:l,delay:u}){let d=i[t]??i.doc,f=s??[];return(0,m.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(u??0)+`ms`},children:[(0,m.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,m.jsx)(d,{className:`ic`,style:{color:n}}),` `,e]}),(0,m.jsx)(`div`,{className:`dc-word`,children:r}),o&&(0,m.jsx)(`div`,{className:`dc-phonetic`,style:{fontFamily:`monospace`,fontStyle:`normal`},children:o}),f.length>0&&(0,m.jsx)(`ol`,{className:`dc-senses`,style:{listStyle:`none`,padding:0,margin:0},children:f.map((e,t)=>(0,m.jsxs)(`li`,{className:`dc-sense`,children:[(0,m.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:8,marginBottom:4},children:[(0,m.jsxs)(`span`,{style:{fontSize:`var(--fs-xs, 11px)`,fontWeight:700,color:`var(--text-faint)`,minWidth:`1.4em`},children:[t+1,`.`]}),(0,m.jsx)(`span`,{className:`dc-pos`,children:e.pos})]}),(0,m.jsx)(`div`,{className:`dc-def`,style:{paddingLeft:`calc(1.4em + 8px)`},...t===0?{"data-mark":`underline`}:{},children:e.definition}),e.example&&(0,m.jsx)(`div`,{className:`dc-example`,style:{marginLeft:`calc(1.4em + 8px)`},children:e.example}),(e.synonyms??[]).length>0&&(0,m.jsxs)(`div`,{className:`dc-synonyms`,style:{display:`flex`,flexWrap:`wrap`,alignItems:`center`,gap:4,marginLeft:`calc(1.4em + 8px)`},children:[(0,m.jsx)(`span`,{style:{color:`var(--text-faint)`,marginRight:2},children:`syn.`}),(e.synonyms??[]).map((e,t)=>(0,m.jsx)(`span`,{style:{fontSize:`var(--fs-xs, 11px)`,padding:`1px 7px`,borderRadius:999,background:`var(--track)`,color:`var(--text-secondary)`,lineHeight:1.7},children:e},t))]})]},t))}),c&&(0,m.jsxs)(`div`,{className:`dc-etymology`,children:[(0,m.jsx)(`span`,{style:{fontWeight:600,fontStyle:`normal`,color:`var(--text-muted)`},children:`Etymology `}),c]}),l&&(0,m.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(l)})]})}function se({title:e,icon:t=`doc`,iconColor:n=`var(--presence)`,domain:r,entries:o,footer:s,delay:c}){let l=i[t]??i.doc,u=(0,p.useMemo)(()=>[...o??[]].sort((e,t)=>e.term.localeCompare(t.term,void 0,{sensitivity:`base`})),[o]);return(0,m.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(c??0)+`ms`},children:[(0,m.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,m.jsx)(l,{className:`ic`,style:{color:n}}),` `,e]}),r&&(0,m.jsx)(`div`,{className:`gl-domain`,children:r}),(0,m.jsx)(`div`,{className:`gl-entries`,children:u.map((e,t)=>{let n=e.term.charAt(0).toUpperCase(),r=n!==(t===0?null:u[t-1].term.charAt(0).toUpperCase());return(0,m.jsxs)(`div`,{children:[r&&(0,m.jsx)(`div`,{className:`gl-letter-divider`,"aria-hidden":`true`,children:n}),(0,m.jsxs)(`div`,{className:`gl-entry`,children:[(0,m.jsx)(`div`,{className:`gl-term`,children:e.term}),(0,m.jsx)(`div`,{className:`gl-def`,children:e.definition}),e.see&&(0,m.jsxs)(`div`,{className:`gl-see`,children:[`See also: `,(0,m.jsx)(`span`,{style:{fontStyle:`italic`},children:e.see})]})]})]},t)})}),s&&(0,m.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(s)})]})}function ce({title:e,icon:t=`layers`,iconColor:n=`var(--presence)`,value:r,unit:o,comparisons:s,footer:c,delay:l}){let u=i[t]??i.layers,d=s??[],f=e=>{let t=typeof e.howMany==`number`?e.howMany:Number(String(e.howMany).trim());return Number.isFinite(t)&&t>0?t:null},p=d.reduce((e,t)=>{let n=f(t);return n!==null&&n>e?n:e},0);return(0,m.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(l??0)+`ms`},children:[(0,m.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,m.jsx)(u,{className:`ic`,style:{color:n}}),` `,e]}),(0,m.jsxs)(`div`,{className:`scf-figure`,"data-mark":`underline`,children:[(0,m.jsx)(`span`,{className:`scf-value`,children:r}),o&&(0,m.jsx)(`span`,{className:`scf-unit`,children:o})]}),d.length>0&&(0,m.jsx)(`div`,{className:`scf-rows`,children:d.map((e,t)=>{let n=f(e),r=n!==null&&p>0?Math.max(n/p*100,4):0;return(0,m.jsxs)(`div`,{className:`scf-row`,children:[(0,m.jsxs)(`div`,{className:`scf-line`,children:[(0,m.jsx)(`span`,{className:`scf-count`,children:e.howMany}),(0,m.jsx)(`span`,{className:`scf-to`,children:e.to})]}),r>0&&(0,m.jsx)(`div`,{className:`scf-track`,"aria-hidden":`true`,children:(0,m.jsx)(`div`,{className:`scf-bar`,style:{width:r+`%`}})}),e.note&&(0,m.jsx)(`div`,{className:`scf-note`,children:e.note})]},t)})}),c&&(0,m.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(c)})]})}var M=typeof window<`u`?window.AudioContext??window.webkitAudioContext:void 0,le={C:0,"C#":1,DB:1,D:2,"D#":3,EB:3,E:4,FB:4,F:5,"E#":5,"F#":6,GB:6,G:7,"G#":8,AB:8,A:9,"A#":10,BB:10,B:11,CB:11};function ue(e){let t=/^([A-Ga-g])([#b]?)(-?\d{1,2})$/.exec(e.trim());if(!t)return null;let n=le[t[1].toUpperCase()+(t[2]===`#`?`#`:t[2]===`b`?`B`:``)];return n===void 0?null:440*2**((n+(Number(t[3])+1)*12-69)/12)}function N(e){if(typeof e==`number`)return Number.isFinite(e)?e:null;let t=e.trim(),n=Number(t);return t!==``&&Number.isFinite(n)?n:ue(t)}var P={word:`chat`,note:`speaker`,tone:`speaker`};function F({title:e,icon:t=`speaker`,iconColor:n=`var(--presence)`,items:r,footer:o,delay:s}){let c=i[t]??i.speaker,f=r??[],[h,g]=(0,p.useState)(null),[_,v]=(0,p.useState)(!1),y=(0,p.useRef)(null),b=(0,p.useRef)(null),x=(0,p.useCallback)(()=>{if(b.current!==null&&(clearTimeout(b.current),b.current=null),y.current){let e=y.current;y.current=null,e.close().catch(()=>{})}d()},[]);(0,p.useEffect)(()=>x,[x]);let S=(0,p.useCallback)((e,t)=>{g(t),u(e,`mavea`).then(e=>{g(e=>e===t?null:e),!e&&l()===!1&&v(!0)})},[]),C=(0,p.useCallback)((e,t)=>{if(!M)return;let n=new M;y.current=n;let r=n.currentTime,i=.6,a=n.createOscillator();a.type=`sine`,a.frequency.setValueAtTime(e,r);let o=n.createGain();o.gain.setValueAtTime(1e-4,r),o.gain.exponentialRampToValueAtTime(.22,r+.04),o.gain.exponentialRampToValueAtTime(1e-4,r+i),a.connect(o).connect(n.destination),a.start(r),a.stop(r+i),g(t),a.onended=()=>{g(e=>e===t?null:e),y.current===n&&(y.current=null,n.close().catch(()=>{}))},b.current=setTimeout(()=>{y.current===n&&(y.current=null,n.close().catch(()=>{}),g(e=>e===t?null:e))},750)},[]),w=(0,p.useCallback)((e,t)=>{if(x(),e.kind===`word`){S(String(e.value),t);return}let n=N(e.value);n===null||n<=0||C(n,t)},[x,S,C]),T=e=>e.kind===`word`||!!M&&N(e.value)!==null,E=M?`This note can’t be played`:`Audio playback is unavailable in this browser`;return(0,m.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(s||0)+`ms`},children:[(0,m.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,m.jsx)(c,{className:`ic`,style:{color:n}}),` `,e]}),(0,m.jsx)(`ul`,{className:`hri-rows`,children:f.map((e,t)=>{let n=T(e),r=h===t,a=i[P[e.kind]]??i.speaker;return(0,m.jsxs)(`li`,{className:`hri-row`,"data-playing":r||void 0,children:[(0,m.jsx)(`button`,{type:`button`,className:`hri-play`,onClick:()=>w(e,t),disabled:!n,title:n?`Play ${e.label}`:E,"aria-label":n?`Play ${e.label}`:`${e.label} — ${E}`,children:r?(0,m.jsxs)(`span`,{className:`hri-wave`,"aria-hidden":`true`,children:[(0,m.jsx)(`span`,{}),(0,m.jsx)(`span`,{}),(0,m.jsx)(`span`,{})]}):(0,m.jsx)(i.play,{className:`ic hri-play-ic`,style:{width:13,height:13}})}),(0,m.jsxs)(`div`,{className:`hri-body`,children:[(0,m.jsx)(`div`,{className:`hri-label`,children:e.label}),e.sub&&(0,m.jsx)(`div`,{className:`hri-sub`,children:e.sub})]}),(0,m.jsxs)(`span`,{className:`hri-kind`,children:[(0,m.jsx)(a,{className:`ic hri-kind-ic`,style:{width:12,height:12}}),e.kind]})]},t)})}),_&&(0,m.jsx)(`p`,{className:`insight-summary`,role:`status`,style:{marginTop:12},children:`Voice is off — start the local voice service to hear this.`}),o&&(0,m.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(o)})]})}var I=[{s:`i`,back:0,high:0},{s:`y`,back:0,high:0,rounded:!0},{s:`ɨ`,back:.5,high:0},{s:`u`,back:1,high:0,rounded:!0},{s:`ɪ`,back:.18,high:.18},{s:`ʊ`,back:.82,high:.18,rounded:!0},{s:`e`,back:0,high:.34},{s:`ø`,back:0,high:.34,rounded:!0},{s:`ə`,back:.5,high:.5},{s:`o`,back:1,high:.34,rounded:!0},{s:`ɛ`,back:.08,high:.66},{s:`ɜ`,back:.5,high:.66},{s:`ʌ`,back:.78,high:.66},{s:`ɔ`,back:1,high:.66,rounded:!0},{s:`a`,back:.06,high:1},{s:`æ`,back:.16,high:.84},{s:`ɑ`,back:.9,high:1},{s:`ɒ`,back:1,high:1,rounded:!0}],L=[`Plosive`,`Nasal`,`Fricative`,`Approx.`,`Lateral`],R=[`Bilab.`,`Labiod.`,`Dental`,`Alveolar`,`Postalv.`,`Velar`,`Glottal`],z={"Plosive|Bilab.":[`p`,`b`],"Plosive|Alveolar":[`t`,`d`],"Plosive|Velar":[`k`,`g`],"Plosive|Glottal":[`ʔ`,``],"Nasal|Bilab.":[``,`m`],"Nasal|Alveolar":[``,`n`],"Nasal|Velar":[``,`ŋ`],"Fricative|Labiod.":[`f`,`v`],"Fricative|Dental":[`θ`,`ð`],"Fricative|Alveolar":[`s`,`z`],"Fricative|Postalv.":[`ʃ`,`ʒ`],"Fricative|Glottal":[`h`,``],"Approx.|Postalv.":[``,`ɹ`],"Approx.|Velar":[``,`w`],"Lateral|Alveolar":[``,`l`]};function B(e){return e.replace(/[ː/[\].ˈˌ]/g,``).trim()}function V({title:e,icon:t=`globe`,iconColor:n=`var(--presence)`,kind:r=`vowels`,highlight:o,examples:s,caption:c,footer:l,delay:u}){let d=i[t]??i.globe,f=s??[],p=new Set((o??[]).map(B)),h=e=>p.has(B(e));return(0,m.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(u??0)+`ms`},children:[(0,m.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,m.jsx)(d,{className:`ic`,style:{color:n}}),` `,e]}),r===`consonants`?(0,m.jsx)(de,{isHot:h}):(0,m.jsx)(H,{isHot:h}),c&&(0,m.jsx)(`div`,{className:`ipa-caption`,children:c}),f.length>0&&(0,m.jsx)(`ul`,{className:`ipa-examples`,children:f.map((e,t)=>(0,m.jsxs)(`li`,{className:`ipa-ex`,...h(e.symbol)?{"data-hot":``}:{},children:[(0,m.jsx)(`span`,{className:`ipa-ex-sym`,children:e.symbol}),(0,m.jsx)(`span`,{className:`ipa-ex-word`,children:e.word})]},t))}),l&&(0,m.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(l)})]})}function H(e){let t=(0,O.c)(31),{isHot:n}=e,r,i,a,o,s,c,l,u,d,f,p,h;if(t[0]!==n){let e={x:12,y:14},g={x:92,y:14},_={x:34,y:86},v={x:80,y:86},y=U,b=(t,n)=>{let r=y(e.x,_.x,n),i=y(g.x,v.x,n),a=y(e.y,_.y,n);return{x:y(r,i,t),y:a}};o=`ipa-quad`,r=`0 0 104 100`,s=`100%`,c=`img`,l=`IPA vowel quadrilateral`;let x=`${e.x},${e.y} ${g.x},${g.y} ${v.x},${v.y} ${_.x},${_.y}`;t[13]===x?u=t[14]:(u=(0,m.jsx)(`polygon`,{points:x,fill:`none`,stroke:`var(--line-strong)`,strokeWidth:.8}),t[13]=x,t[14]=u),d=[.34,.5,.66].map((e,t)=>{let n=b(0,e),r=b(1,e);return(0,m.jsx)(`line`,{x1:n.x,y1:n.y,x2:r.x,y2:r.y,stroke:`var(--grid-line)`,strokeWidth:.5},t)}),f=(0,m.jsx)(`line`,{x1:b(.5,0).x,y1:b(.5,0).y,x2:b(.5,1).x,y2:b(.5,1).y,stroke:`var(--grid-line)`,strokeWidth:.5}),p=(0,m.jsx)(`text`,{x:e.x,y:9,className:`ipa-axis`,textAnchor:`start`,children:`Front`}),h=(0,m.jsx)(`text`,{x:g.x,y:9,className:`ipa-axis`,textAnchor:`end`,children:`Back`}),t[15]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,m.jsx)(`text`,{className:`ipa-axis`,transform:`translate(6, 50) rotate(-90)`,textAnchor:`middle`,children:`Close → Open`}),t[15]=i):i=t[15],a=I.map(e=>{let t=b(e.back,e.high),r=e.rounded?3:0,i=n(e.s);return(0,m.jsxs)(`g`,{transform:`translate(${t.x+r}, ${t.y})`,children:[i&&(0,m.jsx)(`circle`,{r:4.4,className:`ipa-vowel-halo`}),(0,m.jsx)(`text`,{className:`ipa-vowel`,textAnchor:`middle`,dominantBaseline:`central`,...i?{"data-hot":``}:{},children:e.s})]},e.s)}),t[0]=n,t[1]=r,t[2]=i,t[3]=a,t[4]=o,t[5]=s,t[6]=c,t[7]=l,t[8]=u,t[9]=d,t[10]=f,t[11]=p,t[12]=h}else r=t[1],i=t[2],a=t[3],o=t[4],s=t[5],c=t[6],l=t[7],u=t[8],d=t[9],f=t[10],p=t[11],h=t[12];let g;t[16]!==r||t[17]!==i||t[18]!==a||t[19]!==s||t[20]!==c||t[21]!==l||t[22]!==u||t[23]!==d||t[24]!==f||t[25]!==p||t[26]!==h?(g=(0,m.jsxs)(`svg`,{viewBox:r,width:s,role:c,"aria-label":l,children:[u,d,f,p,h,i,a]}),t[16]=r,t[17]=i,t[18]=a,t[19]=s,t[20]=c,t[21]=l,t[22]=u,t[23]=d,t[24]=f,t[25]=p,t[26]=h,t[27]=g):g=t[27];let _;return t[28]!==o||t[29]!==g?(_=(0,m.jsx)(`div`,{className:o,children:g}),t[28]=o,t[29]=g,t[30]=_):_=t[30],_}function U(e,t,n){return e+(t-e)*n}function de(e){let t=(0,O.c)(7),{isHot:n}=e,r;t[0]===n?r=t[1]:(r=e=>{let{s:t}=e;return t?(0,m.jsx)(`span`,{className:`ipa-cgrid-sym`,...n(t)?{"data-hot":``}:{},children:t}):(0,m.jsx)(`span`,{className:`ipa-cgrid-empty`,children:`·`})},t[0]=n,t[1]=r);let i=r,a;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,m.jsx)(`thead`,{children:(0,m.jsxs)(`tr`,{children:[(0,m.jsx)(`th`,{className:`ipa-cgrid-corner`}),R.map(fe)]})}),t[2]=a):a=t[2];let o;t[3]===i?o=t[4]:(o=L.map(e=>(0,m.jsxs)(`tr`,{children:[(0,m.jsx)(`th`,{className:`ipa-cgrid-manner`,scope:`row`,children:e}),R.map(t=>{let n=z[`${e}|${t}`];return(0,m.jsx)(`td`,{className:`ipa-cgrid-cell`,children:n?(0,m.jsxs)(`span`,{className:`ipa-cgrid-pair`,children:[(0,m.jsx)(i,{s:n[0]}),(0,m.jsx)(i,{s:n[1]})]}):(0,m.jsx)(`span`,{className:`ipa-cgrid-na`,"aria-hidden":`true`})},t)})]},e)),t[3]=i,t[4]=o);let s;return t[5]===o?s=t[6]:(s=(0,m.jsx)(`div`,{className:`ipa-cgrid-wrap`,children:(0,m.jsxs)(`table`,{className:`ipa-cgrid`,children:[a,(0,m.jsx)(`tbody`,{children:o})]})}),t[5]=o,t[6]=s),s}function fe(e){return(0,m.jsx)(`th`,{className:`ipa-cgrid-place`,scope:`col`,children:e},e)}function pe(e){let t=e.match(/-?\d*\.?\d+/g);if(!t||t.length<2)return null;let n=Number(t[0]),r=Number(t[1]);return!Number.isFinite(n)||!Number.isFinite(r)?null:{x:n,y:r}}function me({title:e,icon:t=`edit`,iconColor:n=`var(--presence)`,glyph:r,strokes:o,grid:s=`mi`,romanization:c,meaning:l,caption:u,footer:d,delay:f}){let p=i[t]??i.edit,h=[...o??[]].sort((e,t)=>e.order-t.order),g=h.some(e=>e.path&&e.path.trim().length>0);return(0,m.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(f??0)+`ms`},children:[(0,m.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,m.jsx)(p,{className:`ic`,style:{color:n}}),` `,e]}),(0,m.jsxs)(`div`,{className:`ss-stage`,children:[(0,m.jsx)(`div`,{className:`ss-square`,children:(0,m.jsxs)(`svg`,{viewBox:`0 0 100 100`,width:`100%`,role:`img`,"aria-label":`Writing guide for ${r}`,children:[(0,m.jsx)(`rect`,{x:1,y:1,width:98,height:98,rx:2,fill:`none`,stroke:`var(--line-strong)`,strokeWidth:.8}),s!==`none`&&(0,m.jsxs)(`g`,{stroke:`var(--grid-line)`,strokeWidth:.6,strokeDasharray:`3 2.5`,children:[(0,m.jsx)(`line`,{x1:50,y1:1,x2:50,y2:99}),(0,m.jsx)(`line`,{x1:1,y1:50,x2:99,y2:50}),s===`mi`&&(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(`line`,{x1:1,y1:1,x2:99,y2:99}),(0,m.jsx)(`line`,{x1:99,y1:1,x2:1,y2:99})]})]}),g?(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(`text`,{x:50,y:54,className:`ss-ghost`,textAnchor:`middle`,dominantBaseline:`central`,children:r}),h.map((e,t)=>e.path?(0,m.jsx)(`path`,{d:e.path,className:`ss-stroke`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`,style:{"--i":t}},`p${t}`):null),h.map((e,t)=>{let n=e.path?pe(e.path):null;return n?(0,m.jsxs)(`g`,{transform:`translate(${n.x}, ${n.y})`,children:[(0,m.jsx)(`circle`,{r:4.6,className:`ss-badge-bg`}),(0,m.jsx)(`text`,{className:`ss-badge-num`,textAnchor:`middle`,dominantBaseline:`central`,children:e.order})]},`b${t}`):null})]}):(0,m.jsx)(`text`,{x:50,y:54,className:`ss-glyph`,textAnchor:`middle`,dominantBaseline:`central`,children:r})]})}),(0,m.jsxs)(`div`,{className:`ss-meta`,children:[(0,m.jsx)(`div`,{className:`ss-glyph-sm`,"aria-hidden":`true`,children:r}),c&&(0,m.jsxs)(`div`,{className:`ss-romanization`,children:[(0,m.jsx)(`span`,{className:`ss-meta-k`,children:`Reading`}),(0,m.jsx)(`span`,{className:`ss-meta-v`,children:c})]}),l&&(0,m.jsxs)(`div`,{className:`ss-meaning`,children:[(0,m.jsx)(`span`,{className:`ss-meta-k`,children:`Meaning`}),(0,m.jsx)(`span`,{className:`ss-meta-v`,children:l})]}),(0,m.jsxs)(`div`,{className:`ss-count`,children:[h.length,` `,h.length===1?`stroke`:`strokes`]})]})]}),h.length>0&&(0,m.jsx)(`ol`,{className:`ss-steps`,children:h.map((e,t)=>(0,m.jsxs)(`li`,{className:`ss-step`,children:[(0,m.jsx)(`span`,{className:`ss-step-num`,children:e.order}),(0,m.jsx)(`span`,{className:`ss-step-hint`,children:e.hint??`Stroke ${e.order}`})]},t))}),u&&(0,m.jsx)(`div`,{className:`ipa-caption`,children:u}),d&&(0,m.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(d)})]})}var he=`silent`;function ge({title:e,icon:t=`captions`,iconColor:n=`var(--presence)`,word:r,chunks:o,rhymes:s,caption:c,footer:f,delay:h}){let g=i[t]??i.captions,_=(o??[]).filter(e=>e&&e.text),v=(s??[]).filter(Boolean),[y,b]=(0,p.useState)(null),[x,S]=(0,p.useState)(!1);(0,p.useEffect)(()=>()=>d(),[]);let C=(0,p.useCallback)((e,t)=>{d(),b(t),u(e,`mavea`).then(e=>{b(e=>e===t?null:e),!e&&l()===!1&&S(!0)})},[]);return(0,m.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(h??0)+`ms`},children:[e&&(0,m.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,m.jsx)(g,{className:`ic`,style:{color:n}}),` `,e]}),(0,m.jsx)(`div`,{className:`pw-word`,role:`group`,"aria-label":`Sound out ${r}`,children:_.map((e,t)=>{let n=e.kind??`grapheme`,r=n===he;return(0,m.jsxs)(`button`,{type:`button`,className:`pw-chunk`,"data-kind":n,"data-playing":y===t||void 0,disabled:r,onClick:()=>C(e.text,t),title:r?`"${e.text}" is silent`:`Hear "${e.text}"`,"aria-label":r?`${e.text}, silent`:`Hear ${e.text}${e.sound?`, ${e.sound}`:``}`,children:[(0,m.jsx)(`span`,{className:`pw-chunk-text`,children:e.text}),e.sound&&(0,m.jsx)(`span`,{className:`pw-chunk-sound`,children:e.sound})]},t)})}),(0,m.jsxs)(`button`,{type:`button`,className:`pw-blend`,"data-playing":y===-1||void 0,onClick:()=>C(r,-1),title:`Hear "${r}"`,"aria-label":`Hear the whole word, ${r}`,children:[y===-1?(0,m.jsxs)(`span`,{className:`pw-wave`,"aria-hidden":`true`,children:[(0,m.jsx)(`span`,{}),(0,m.jsx)(`span`,{}),(0,m.jsx)(`span`,{})]}):(0,m.jsx)(i.play,{className:`ic pw-blend-ic`,style:{width:12,height:12}}),(0,m.jsx)(`span`,{className:`pw-blend-word`,children:r})]}),x&&(0,m.jsx)(`p`,{className:`insight-summary`,role:`status`,style:{marginTop:10},children:`Voice is off — start the local voice service to hear this.`}),c&&(0,m.jsx)(`div`,{className:`ipa-caption`,children:c}),v.length>0&&(0,m.jsxs)(`div`,{className:`pw-rhymes`,children:[(0,m.jsx)(`span`,{className:`pw-rhymes-k`,children:`Rhymes with`}),(0,m.jsx)(`ul`,{className:`pw-rhyme-list`,children:v.map((e,t)=>(0,m.jsx)(`li`,{className:`pw-rhyme`,children:e},t))})]}),f&&(0,m.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(f)})]})}var _e=[`noun`,`verb`,`adjective`,`adverb`,`pronoun`,`preposition`,`conjunction`,`determiner`,`interjection`],W={noun:`n.`,verb:`v.`,adjective:`adj.`,adverb:`adv.`,pronoun:`pron.`,preposition:`prep.`,conjunction:`conj.`,determiner:`det.`,interjection:`interj.`},ve=e=>typeof e==`string`&&Object.prototype.hasOwnProperty.call(W,e),ye=/^[¿¡([{«‹“‘]+$/;function be({title:e,icon:t=`captions`,iconColor:n=`var(--presence)`,tokens:r,sentence:o,translation:s,footer:c,delay:l}){let u=i[t]??i.captions,{groups:d,legend:f,notes:h}=(0,p.useMemo)(()=>{let e=Array.isArray(r)?r:[],t=0,n=[];for(let r of e){if(typeof r==`string`){r.trim()&&n.push({word:r});continue}if(!r||typeof r!=`object`)continue;let e=r;if(typeof e.word!=`string`||!e.word.trim())continue;if(e.pos===`punctuation`){n.push({word:e.word,punct:!0});continue}let i=typeof e.note==`string`&&e.note.trim()?e.note:void 0;n.push({word:e.word,pos:ve(e.pos)?e.pos:void 0,note:i,noteIdx:i?++t:void 0})}let i=[],a=[];for(let e of n)if(e.punct){let t=i[i.length-1];t&&!ye.test(e.word)?t.trail.push(e):a.push(e)}else i.push({lead:a,word:e,trail:[]}),a=[];if(a.length){let e=i[i.length-1];e?e.trail.push(...a):i.push({lead:a,trail:[]})}let o=new Map;for(let e of n)e.pos&&o.set(e.pos,(o.get(e.pos)??0)+1);return{groups:i,legend:_e.filter(e=>o.has(e)).map(e=>({pos:e,count:o.get(e)??0})),notes:n.filter(e=>e.noteIdx!==void 0)}},[r]),[g,_]=(0,p.useState)(null),v=g&&f.some(e=>e.pos===g)?g:null,y=(e,t)=>(0,m.jsx)(`span`,{className:`psb-punct`,"data-dim":!!v||void 0,children:e.word},t);return(0,m.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(l??0)+`ms`},children:[(0,m.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,m.jsx)(u,{className:`ic`,style:{color:n}}),` `,e]}),d.length>0?(0,m.jsx)(`div`,{className:`psb-flow`,children:d.map((e,t)=>(0,m.jsxs)(`span`,{className:`psb-group`,children:[e.lead.map((e,t)=>y(e,`l${t}`)),e.word&&(0,m.jsxs)(`span`,{className:`psb-token`,"data-pos":e.word.pos,"data-dim":!!v&&e.word.pos!==v||void 0,title:e.word.note?`${e.word.word} — ${e.word.note}`:void 0,children:[(0,m.jsxs)(`span`,{className:`psb-word`,children:[e.word.word,e.word.noteIdx!==void 0&&(0,m.jsx)(`sup`,{className:`psb-note-mark`,"aria-hidden":`true`,children:e.word.noteIdx})]}),e.word.pos&&(0,m.jsx)(`span`,{className:`psb-abbr`,"aria-hidden":`true`,children:W[e.word.pos]})]}),e.trail.map((e,t)=>y(e,`t${t}`))]},t))}):o?(0,m.jsx)(`p`,{className:`psb-plain`,children:o}):(0,m.jsx)(`div`,{className:`psb-empty`,children:`Nothing to break down yet.`}),s&&(0,m.jsx)(`div`,{className:`psb-translation`,children:s}),f.length>0&&(0,m.jsx)(`div`,{className:`psb-legend`,role:`group`,"aria-label":`Word classes in this sentence`,children:f.map(({pos:e,count:t})=>(0,m.jsxs)(`button`,{type:`button`,className:`psb-leg`,"data-pos":e,"aria-pressed":v===e,onClick:()=>_(t=>t===e?null:e),title:v===e?`Show every word`:`Spotlight every ${e}`,children:[(0,m.jsx)(`span`,{className:`psb-leg-dot`,"aria-hidden":`true`}),e,t>1&&(0,m.jsxs)(`span`,{className:`psb-leg-n`,children:[`×`,t]})]},e))}),h.length>0&&(0,m.jsx)(`ul`,{className:`psb-notes`,children:h.map(e=>(0,m.jsxs)(`li`,{className:`psb-note`,children:[(0,m.jsx)(`sup`,{className:`psb-note-num`,children:e.noteIdx}),(0,m.jsxs)(`span`,{className:`psb-note-text`,children:[(0,m.jsx)(`span`,{className:`psb-note-word`,children:e.word}),` — `,e.note]})]},e.noteIdx))}),c&&(0,m.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(c)})]})}function xe({title:e,icon:t=`globe`,iconColor:n=`var(--presence)`,commonName:r,scientificName:s,image:c,marks:l,lookalikes:u,status:d,caption:p,footer:h,delay:g}){let _=i[t]??i.globe,v=f(c?.from,`var(--presence-deep)`),y=f(c?.to,`var(--presence-soft)`),b=o(c?.src),x=l??[],S=u??[];return(0,m.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(g??0)+`ms`},children:[e&&(0,m.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,m.jsx)(_,{className:`ic`,style:{color:n}}),` `,e]}),(0,m.jsxs)(`div`,{className:`sp-banner`,style:{background:`linear-gradient(150deg, ${v}, ${y})`},children:[b&&(0,m.jsx)(`img`,{className:`me-img-fill`,src:b,alt:``,loading:`lazy`,decoding:`async`,referrerPolicy:`no-referrer`,onError:e=>{e.currentTarget.style.display=`none`}}),d&&(0,m.jsx)(`span`,{className:`sp-status`,children:d})]}),(0,m.jsx)(`div`,{className:`sp-common`,"data-mark":`underline`,children:r}),s&&(0,m.jsx)(`div`,{className:`sp-scientific`,children:s}),p&&(0,m.jsx)(`div`,{className:`sp-caption`,children:p}),x.length>0&&(0,m.jsx)(`div`,{className:`sp-marks`,children:x.map((e,t)=>(0,m.jsxs)(`div`,{className:`sp-mark`,children:[(0,m.jsx)(`span`,{className:`sp-mark-label`,children:e.label}),(0,m.jsx)(`span`,{className:`sp-mark-value`,children:e.value})]},t))}),S.length>0&&(0,m.jsxs)(`div`,{className:`sp-lookalikes`,children:[(0,m.jsxs)(`span`,{className:`sp-lookalikes-k`,children:[(0,m.jsx)(i.layers,{className:`ic sp-lookalikes-ic`}),` Easily confused with`]}),(0,m.jsx)(`ul`,{className:`sp-lookalike-list`,children:S.map((e,t)=>(0,m.jsx)(`li`,{className:`sp-lookalike`,children:e},t))})]}),h&&(0,m.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(h)})]})}function Se({title:e,icon:t=`table`,iconColor:n=`var(--presence)`,terms:r,footer:o,delay:s}){let c=i[t]??i.table,l=e=>typeof e==`string`&&e.trim()?e.trim():`—`,{rows:u,langs:d}=(0,p.useMemo)(()=>{let e=r??[],t=[],n=new Set;return{rows:e.map(e=>{let r=new Map;for(let i of e.translations??[]){if(!i||typeof i!=`object`)continue;let e=l(i.lang);n.has(e)||(n.add(e),t.push(e)),r.has(e)||r.set(e,i)}return{term:e,cells:r}}),langs:t}},[r]),f=e=>{if(e===`preferred`)return`var(--insight)`;if(e===`deprecated`)return`var(--warning)`;if(e===`avoid`)return`var(--danger)`};return(0,m.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(s??0)+`ms`},children:[(0,m.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,m.jsx)(c,{className:`ic`,style:{color:n}}),` `,e]}),u.length===0?(0,m.jsx)(`div`,{className:`tb-empty`,children:`No terms yet.`}):d.length===0?(0,m.jsx)(`ul`,{className:`tb-flat`,children:u.map(({term:e},t)=>(0,m.jsx)(`li`,{className:`tb-flat-term m-stagger-item m-fade-rise`,style:{"--i":t},children:e.term},t))}):(0,m.jsx)(`div`,{className:`tb-wrap`,children:(0,m.jsxs)(`table`,{className:`tb-table`,children:[(0,m.jsx)(`thead`,{children:(0,m.jsxs)(`tr`,{children:[(0,m.jsx)(`th`,{scope:`col`,children:`Term`}),d.map(e=>(0,m.jsx)(`th`,{scope:`col`,children:e},e))]})}),(0,m.jsx)(`tbody`,{children:u.map(({term:e,cells:t},n)=>(0,m.jsxs)(`tr`,{className:`m-stagger-item m-fade-rise`,style:{"--i":n},children:[(0,m.jsx)(`td`,{className:`tb-term-col`,children:e.term}),d.map(e=>{let n=t.get(e),r=n&&typeof n.text==`string`?n.text:``,i=f(n?.status);return(0,m.jsx)(`td`,{className:`tb-cell`,children:r?(0,m.jsxs)(`span`,{className:`tb-cell-text`,children:[i&&(0,m.jsx)(`span`,{className:`tb-dot`,style:{"--tb-c":i},title:n?.status}),r]}):(0,m.jsx)(`span`,{className:`tb-dash`,children:`—`})},e)})]},n))})]})}),o&&(0,m.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(o)})]})}var G={whale:{w:240,h:70,orient:`horizontal`},bus:{w:200,h:90,orient:`horizontal`},generic:{w:90,h:70,orient:`horizontal`},human:{w:40,h:100,orient:`vertical`},building:{w:70,h:160,orient:`vertical`}};function Ce(e){return typeof e==`string`&&e in G}function we(e){let t=(0,O.c)(21),n,r;t[0]===e?(n=t[1],r=t[2]):({shape:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i=G[n],a=`0 0 ${i.w} ${i.h}`,o;t[3]===n?o=t[4]:(o=n===`human`&&(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(`circle`,{cx:`20`,cy:`11`,r:`10`}),(0,m.jsx)(`path`,{d:`M8 30 Q20 22 32 30 L34 62 Q27 68 20 68 Q13 68 6 62 Z`}),(0,m.jsx)(`path`,{d:`M11 66 L8 100 L17 100 L19 70 Z`}),(0,m.jsx)(`path`,{d:`M29 66 L32 100 L23 100 L21 70 Z`})]}),t[3]=n,t[4]=o);let s;t[5]===n?s=t[6]:(s=n===`bus`&&(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(`path`,{d:`M6 20 Q6 8 18 8 H172 Q188 8 188 24 V58 Q188 66 180 66 H16 Q6 66 6 56 Z`}),(0,m.jsx)(`rect`,{x:`18`,y:`17`,width:`152`,height:`19`,rx:`3`,className:`szc-glyph-cut`,fill:`var(--surface-elevated)`}),(0,m.jsx)(`circle`,{cx:`46`,cy:`70`,r:`13`}),(0,m.jsx)(`circle`,{cx:`154`,cy:`70`,r:`13`})]}),t[5]=n,t[6]=s);let c;t[7]===n?c=t[8]:(c=n===`whale`&&(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(`path`,{d:`M4 40 C4 20 40 10 100 9 C170 8 210 20 224 32 L236 26 L232 42 L236 56 L224 50 C214 60 170 66 100 65 C40 64 4 56 4 40 Z`}),(0,m.jsx)(`path`,{d:`M60 12 C64 2 76 2 78 12 C72 14 66 14 60 12 Z`}),(0,m.jsx)(`path`,{d:`M18 46 C22 54 34 56 40 50 C34 46 24 44 18 46 Z`})]}),t[7]=n,t[8]=c);let l;t[9]===n?l=t[10]:(l=n===`building`&&(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(`rect`,{x:`10`,y:`6`,width:`50`,height:`154`,rx:`2`}),Array.from({length:8},Te)]}),t[9]=n,t[10]=l);let u;t[11]===n?u=t[12]:(u=n===`generic`&&(0,m.jsx)(`path`,{d:`M8 55 Q2 30 28 18 Q46 4 66 14 Q86 22 82 42 Q90 52 78 58 Q55 68 30 64 Q12 62 8 55 Z`}),t[11]=n,t[12]=u);let d;return t[13]!==r||t[14]!==a||t[15]!==o||t[16]!==s||t[17]!==c||t[18]!==l||t[19]!==u?(d=(0,m.jsxs)(`svg`,{viewBox:a,preserveAspectRatio:`xMidYMax meet`,fill:`currentColor`,"aria-hidden":`true`,...r,children:[o,s,c,l,u]}),t[13]=r,t[14]=a,t[15]=o,t[16]=s,t[17]=c,t[18]=l,t[19]=u,t[20]=d):d=t[20],d}function Te(e,t){return Array.from({length:3},(e,n)=>(0,m.jsx)(`rect`,{x:17+n*13,y:16+t*17,width:`8`,height:`9`,rx:`1`,className:`szc-glyph-cut`,fill:`var(--surface-elevated)`},`${t}-${n}`))}var Ee=190,K=16;function De(e,t){if(typeof e!=`number`||!Number.isFinite(e))return`—`;let n=e.toLocaleString(void 0,{maximumFractionDigits:2});return t?`${n} ${t}`:n}function Oe({title:e,icon:t=`layers`,iconColor:n=`var(--presence)`,unit:r,subjects:o,footer:s,delay:c}){let l=i[t]??i.layers,u=o??[],d=u.reduce((e,t)=>{let n=typeof t.length==`number`&&Number.isFinite(t.length)?t.length:-1/0;return n>e?n:e},0),f=d>0?Ee/d:0,p=u.map(e=>{let t=Ce(e.shape)?e.shape:`generic`,n=G[t],r=typeof e.length==`number`&&Number.isFinite(e.length)&&e.length>0&&f>0?Math.max(e.length*f,K):K;return{subject:e,shape:t,width:n.orient===`horizontal`?r:r*(n.w/n.h),height:n.orient===`vertical`?r:r*(n.h/n.w)}}),h=Math.max(...p.map(e=>e.height),K);return(0,m.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(c??0)+`ms`},children:[(0,m.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,m.jsx)(l,{className:`ic`,style:{color:n}}),` `,e]}),p.length===0?(0,m.jsx)(`div`,{className:`szc-empty`,children:`No subjects yet.`}):(0,m.jsx)(`div`,{className:`szc-scroll`,children:(0,m.jsx)(`div`,{className:`szc-row`,style:{"--szc-track-h":h+`px`},children:p.map(({subject:e,shape:t,width:i,height:a},o)=>(0,m.jsxs)(`div`,{className:`szc-item m-stagger-item m-scale-in`,style:{"--i":o,color:n},children:[(0,m.jsx)(`div`,{className:`szc-shape-box`,children:(0,m.jsx)(we,{shape:t,style:{width:i,height:a}})}),(0,m.jsx)(`div`,{className:`szc-item-label`,...o===0?{"data-mark":`underline`}:{},children:e.label}),(0,m.jsx)(`div`,{className:`szc-item-value`,children:De(e.length,r)})]},o))})}),s&&(0,m.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(s)})]})}function ke(e){let t=Array.from(e),n=t.length;return t.map((e,t)=>({ch:e,group:Math.floor((n-1-t)/4)}))}function Ae({title:e,icon:t=`chart`,iconColor:n=`var(--presence)`,value:r,bases:o,footer:s,delay:c}){let l=i[t]??i.chart,u=o??[],d=typeof r==`string`||typeof r==`number`?String(r):``;return(0,m.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(c??0)+`ms`},children:[(0,m.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,m.jsx)(l,{className:`ic`,style:{color:n}}),` `,e]}),d&&(0,m.jsx)(`div`,{className:`bcv-value`,"data-mark":`underline`,children:d}),u.length>0?(0,m.jsx)(`div`,{className:`bcv-rows`,children:u.map((e,t)=>{let n=typeof e.digits==`string`?e.digits.trim():``,r=typeof e.radix==`number`&&Number.isFinite(e.radix)?e.radix:null;return(0,m.jsxs)(`div`,{className:`bcv-row m-stagger-item m-fade-rise`,style:{"--i":t},children:[(0,m.jsxs)(`div`,{className:`bcv-row-head`,children:[(0,m.jsx)(`span`,{className:`bcv-label`,children:e.label}),r!==null&&(0,m.jsxs)(`span`,{className:`bcv-radix`,children:[`base `,r]})]}),n?(0,m.jsx)(`div`,{className:`bcv-digits`,children:ke(n).map((e,t)=>(0,m.jsx)(`span`,{className:`bcv-digit`,"data-group":e.group%2==0?`a`:`b`,children:e.ch},t))}):(0,m.jsx)(`span`,{className:`bcv-dash`,children:`—`})]},t)})}):(0,m.jsx)(`div`,{className:`bcv-empty`,children:`No bases yet.`}),s&&(0,m.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(s)})]})}function je(e){let t=e.trim().split(/\s+/).filter(Boolean);return t.length===0?`?`:t.length===1?t[0][0]?.toUpperCase()??`?`:((t[0][0]??``)+(t[t.length-1][0]??``)).toUpperCase()}function Me(e){return typeof e==`string`&&e.trim()||typeof e==`number`&&Number.isFinite(e)?String(e):`—`}function Ne({title:e,icon:t=`doc`,iconColor:n=`var(--presence)`,name:r,era:o,born:s,died:c,knownFor:l,facts:u,lifeEvents:d,legacy:f,footer:p,delay:h}){let g=i[t]??i.doc,_=u??[],v=d??[];return(0,m.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(h??0)+`ms`},children:[(0,m.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,m.jsx)(g,{className:`ic`,style:{color:n}}),` `,e]}),(0,m.jsxs)(`div`,{className:`hp-head`,children:[(0,m.jsx)(`div`,{className:`hp-medallion`,"aria-hidden":`true`,children:je(r)}),(0,m.jsxs)(`div`,{className:`hp-headline`,children:[(0,m.jsx)(`div`,{className:`hp-name`,"data-mark":`underline`,children:r}),o&&(0,m.jsx)(`div`,{className:`hp-era`,children:o}),l&&(0,m.jsx)(`div`,{className:`hp-known`,children:l})]})]}),(s||c)&&(0,m.jsxs)(`div`,{className:`hp-dates`,children:[s&&(0,m.jsxs)(`div`,{className:`hp-date`,children:[(0,m.jsx)(`span`,{className:`hp-date-k`,children:`Born`}),(0,m.jsx)(`span`,{className:`hp-date-v`,children:s})]}),c&&(0,m.jsxs)(`div`,{className:`hp-date`,children:[(0,m.jsx)(`span`,{className:`hp-date-k`,children:`Died`}),(0,m.jsx)(`span`,{className:`hp-date-v`,children:c})]})]}),v.length>0&&(0,m.jsx)(`div`,{className:`hp-beats`,children:v.map((e,t)=>(0,m.jsxs)(`div`,{className:`hp-beat m-stagger-item m-fade-rise`,style:{"--i":t},children:[(0,m.jsx)(`span`,{className:`hp-beat-year`,children:Me(e.year)}),(0,m.jsx)(`span`,{className:`hp-beat-label`,children:e.label})]},t))}),_.length>0&&(0,m.jsx)(`div`,{className:`hp-facts`,children:_.map((e,t)=>(0,m.jsxs)(`div`,{className:`hp-fact-row`,children:[(0,m.jsx)(`span`,{className:`hp-fact-label`,children:e.label}),(0,m.jsx)(`span`,{className:`hp-fact-value`,children:e.value})]},t))}),f&&(0,m.jsx)(`div`,{className:`hp-legacy`,children:f}),p&&(0,m.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(p)})]})}function q(e){return typeof e==`string`&&e.trim()||typeof e==`number`&&Number.isFinite(e)?String(e):`—`}function Pe({title:e,icon:t=`clock`,iconColor:n=`var(--presence)`,date:r,events:o,born:s,died:c,footer:l,delay:u}){let d=i[t]??i.clock,f=o??[],p=s??[],h=c??[];return(0,m.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(u??0)+`ms`},children:[(0,m.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,m.jsx)(d,{className:`ic`,style:{color:n}}),` `,e]}),(0,m.jsx)(`div`,{className:`otd-date`,children:r}),f.length>0?(0,m.jsx)(`div`,{className:`otd-events`,children:f.map((e,t)=>(0,m.jsxs)(`div`,{className:`otd-event m-stagger-item m-fade-rise`,style:{"--i":t},children:[(0,m.jsx)(`span`,{className:`otd-year-chip`,children:q(e.year)}),(0,m.jsxs)(`div`,{className:`otd-event-body`,children:[(0,m.jsx)(`div`,{className:`otd-label`,...t===0?{"data-mark":`underline`}:{},children:e.label}),e.category&&(0,m.jsx)(`span`,{className:`otd-cat`,children:e.category})]})]},t))}):(0,m.jsx)(`div`,{className:`otd-empty`,children:`No events yet.`}),(p.length>0||h.length>0)&&(0,m.jsxs)(`div`,{className:`otd-people`,children:[p.length>0&&(0,m.jsxs)(`div`,{className:`otd-people-col`,children:[(0,m.jsx)(`span`,{className:`otd-people-k`,children:`Born`}),p.map((e,t)=>(0,m.jsxs)(`div`,{className:`otd-person`,children:[(0,m.jsx)(`span`,{className:`otd-person-year`,children:q(e.year)}),(0,m.jsx)(`span`,{className:`otd-person-name`,children:e.name})]},t))]}),h.length>0&&(0,m.jsxs)(`div`,{className:`otd-people-col`,children:[(0,m.jsx)(`span`,{className:`otd-people-k`,children:`Died`}),h.map((e,t)=>(0,m.jsxs)(`div`,{className:`otd-person`,children:[(0,m.jsx)(`span`,{className:`otd-person-year`,children:q(e.year)}),(0,m.jsx)(`span`,{className:`otd-person-name`,children:e.name})]},t))]})]}),l&&(0,m.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(l)})]})}function Fe({title:e,icon:t=`globe`,iconColor:n=`var(--presence)`,name:r,flag:o,capital:s,population:c,area:l,officialLanguages:u,currency:d,facts:f,footer:p,delay:h}){let g=i[t]??i.globe,_=Array.isArray(f)?f:[],v=(Array.isArray(u)?u:[]).filter(e=>typeof e==`string`&&e.trim().length>0),y=[{label:`Capital`,value:s},{label:`Population`,value:c},{label:`Area`,value:l},{label:`Currency`,value:d}].filter(e=>typeof e.value==`string`&&!!e.value);return(0,m.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(h??0)+`ms`},children:[e&&(0,m.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,m.jsx)(g,{className:`ic`,style:{color:n}}),` `,e]}),(0,m.jsx)(`div`,{className:`cc-banner`,children:(0,m.jsx)(`span`,{className:`cc-flag`,role:`img`,"aria-label":`Flag of ${r}`,children:typeof o==`string`&&o.trim()?o:`🌐`})}),(0,m.jsx)(`div`,{className:`cc-name`,"data-mark":`underline`,children:r}),y.length>0&&(0,m.jsx)(`div`,{className:`cc-marks`,children:y.map((e,t)=>(0,m.jsxs)(`div`,{className:`cc-mark`,children:[(0,m.jsx)(`span`,{className:`cc-mark-label`,children:e.label}),(0,m.jsx)(`span`,{className:`cc-mark-value`,children:e.value})]},t))}),v.length>0&&(0,m.jsx)(`div`,{className:`cc-langs`,children:v.map((e,t)=>(0,m.jsx)(`span`,{className:`cc-lang-chip`,children:e},t))}),_.length>0&&(0,m.jsx)(`div`,{className:`cc-facts`,children:_.map((e,t)=>(0,m.jsxs)(`div`,{className:`cc-fact-row`,children:[(0,m.jsx)(`span`,{className:`cc-fact-label`,children:e.label}),(0,m.jsx)(`span`,{className:`cc-fact-value`,children:e.value})]},t))}),p&&(0,m.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(p)})]})}function Ie({title:e,icon:t=`globe`,iconColor:n=`var(--presence)`,countries:r,footer:o,delay:s}){let c=i[t]??i.globe,l=Array.isArray(r)?r:[];return(0,m.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(s??0)+`ms`},children:[(0,m.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,m.jsx)(c,{className:`ic`,style:{color:n}}),` `,e]}),l.length===0?(0,m.jsx)(`div`,{className:`wg-empty`,children:`No countries yet.`}):(0,m.jsx)(`div`,{className:`wg-grid`,children:l.map((e,t)=>(0,m.jsxs)(`div`,{className:`wg-tile m-stagger-item m-scale-in`,style:{"--i":t},children:[(0,m.jsx)(`span`,{className:`wg-flag`,role:`img`,"aria-label":`Flag of ${e.name}`,children:typeof e.flag==`string`&&e.flag.trim()?e.flag:`🌐`}),(0,m.jsx)(`div`,{className:`wg-name`,children:e.name}),e.capital&&(0,m.jsxs)(`div`,{className:`wg-row`,children:[(0,m.jsx)(`span`,{className:`wg-row-k`,children:`Capital`}),(0,m.jsx)(`span`,{className:`wg-row-v`,children:e.capital})]}),e.currency&&(0,m.jsxs)(`div`,{className:`wg-row`,children:[(0,m.jsx)(`span`,{className:`wg-row-k`,children:`Currency`}),(0,m.jsx)(`span`,{className:`wg-row-v`,children:e.currency})]}),e.language&&(0,m.jsxs)(`div`,{className:`wg-row`,children:[(0,m.jsx)(`span`,{className:`wg-row-k`,children:`Language`}),(0,m.jsx)(`span`,{className:`wg-row-v`,children:e.language})]})]},t))}),o&&(0,m.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(o)})]})}var J=[`var(--presence)`,`var(--danger)`,`var(--warning)`,`var(--text-muted)`],Le=new Set(J);function Re(e,t){return typeof e.color==`string`&&Le.has(e.color)?e.color:J[t%J.length]}function Y({title:e,icon:t=`shield`,iconColor:n=`var(--danger)`,dates:r,sides:o,keyBattles:s,casualties:c,outcome:l,footer:u,delay:d}){let f=i[t]??i.shield,p=Array.isArray(o)?o:[],h=Array.isArray(s)?s:[];return(0,m.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(d??0)+`ms`},children:[(0,m.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,m.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),r&&(0,m.jsx)(`div`,{className:`wc-dates`,children:r}),p.length>0&&(0,m.jsx)(`div`,{className:`wc-sides`,children:p.map((e,t)=>{let n=Re(e,t),r=Array.isArray(e.leaders)?e.leaders:[];return(0,m.jsxs)(`div`,{className:`wc-side m-stagger-item m-fade-rise`,style:{"--i":t,"--wc-c":n},children:[(0,m.jsx)(`div`,{className:`wc-side-name`,children:e.name}),r.length>0&&(0,m.jsx)(`ul`,{className:`wc-leaders`,children:r.filter(e=>typeof e==`string`&&e.trim().length>0).map((e,t)=>(0,m.jsx)(`li`,{className:`wc-leader`,children:e},t))})]},t)})}),h.length>0&&(0,m.jsx)(`div`,{className:`wc-battles`,children:h.map((e,t)=>(0,m.jsxs)(`div`,{className:`wc-battle`,children:[(0,m.jsx)(`span`,{className:`wc-battle-dot`,"aria-hidden":`true`}),(0,m.jsx)(`span`,{className:`wc-battle-label`,children:e.label}),e.at&&(0,m.jsx)(`span`,{className:`wc-battle-at`,children:e.at})]},t))}),c&&(0,m.jsxs)(`div`,{className:`wc-stat-row`,children:[(0,m.jsx)(`span`,{className:`wc-stat-k`,children:`Casualties`}),(0,m.jsx)(`span`,{className:`wc-stat-v`,children:c})]}),l&&(0,m.jsx)(`div`,{className:`wc-outcome`,children:l}),u&&(0,m.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(u)})]})}var X=[`var(--presence)`,`var(--insight)`,`var(--warning)`,`var(--text-muted)`],ze=new Set([`var(--presence)`,`var(--presence-soft)`,`var(--presence-deep)`,`var(--insight)`,`var(--insight-soft)`,`var(--warning)`,`var(--warning-soft)`,`var(--danger)`,`var(--text-muted)`]);function Be(e,t){return typeof e.color==`string`&&ze.has(e.color)?e.color:X[t%X.length]}var Z=3;function Ve(e){return e<=Z?Math.max(e,1):Math.ceil(e/Math.ceil(e/Z))}function Q(e){return typeof e==`string`&&e.trim().length>0}function He({title:e,icon:t=`proof`,iconColor:n=`var(--presence)`,terms:r,discriminator:o,discriminatorLabel:s,commonMistake:c,footer:l,delay:u}){let d=i[t]??i.proof,f=(Array.isArray(r)?r:[]).filter(e=>!!e&&Q(e.term)),p=Ve(f.length),h=Q(o),g=Q(s)?s:`The test`;return(0,m.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(u??0)+`ms`},children:[(0,m.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,m.jsx)(d,{className:`ic`,style:{color:n}}),` `,e]}),f.length>0&&(0,m.jsx)(`div`,{className:`dcd-terms`,style:{"--dcd-cols":p,"--dcd-cols-narrow":Math.min(p,2)},children:f.map((e,t)=>(0,m.jsxs)(`div`,{className:`dcd-term m-stagger-item m-fade-rise`,style:{"--i":t,"--dcd-c":Be(e,t)},children:[(0,m.jsxs)(`div`,{className:`dcd-term-head`,children:[(0,m.jsx)(`span`,{className:`dcd-term-name`,children:e.term}),Q(e.tag)&&(0,m.jsx)(`span`,{className:`dcd-term-tag`,children:e.tag})]}),Q(e.gist)&&(0,m.jsx)(`p`,{className:`dcd-gist`,children:e.gist}),Q(e.example)&&(0,m.jsxs)(`p`,{className:`dcd-example`,children:[(0,m.jsx)(`span`,{className:`dcd-example-k`,children:`e.g.`}),e.example]})]},t))}),h&&(0,m.jsxs)(`div`,{className:`dcd-rule m-stagger-item m-fade-rise`,style:{"--i":f.length},children:[(0,m.jsxs)(`div`,{className:`dcd-rule-label`,children:[(0,m.jsx)(i.spark,{className:`ic`,"aria-hidden":`true`}),g]}),(0,m.jsx)(`p`,{className:`dcd-rule-text`,"data-mark":`underline`,children:o})]}),Q(c)&&(0,m.jsxs)(`p`,{className:`dcd-mistake`,children:[(0,m.jsx)(i.alert,{className:`ic`,"aria-hidden":`true`}),(0,m.jsxs)(`span`,{className:`dcd-mistake-text`,children:[(0,m.jsx)(`span`,{className:`dcd-mistake-k`,children:`Common slip `}),c]})]}),f.length===0&&!h&&(0,m.jsx)(`div`,{className:`dcd-empty`,children:`No terms to tell apart yet.`}),l&&(0,m.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(l)})]})}var Ue=e({referenceRegistry:()=>$}),$={factsheet:c(ee),newsdigest:c(re),dictionary:c(oe),translation:c(ie),pronunciation:c(ae),gloss:c(se),scalefelt:c(ce),hearit:c(F),ipachart:c(V),scriptstroke:c(me),phonicsword:c(ge),speciescard:c(xe),etymtree:c(D),hazardcard:c(ne),termbase:c(Se),sizecompare:c(Oe),baseconversion:c(Ae),historicalperson:c(Ne),onthisday:c(Pe),countrycard:c(Fe),worldgrid:c(Ie),warconflict:c(Y),posbreakdown:c(be),distinctioncard:c(He)};export{Ue as n,$ as t};
1
+ import{r as e}from"./rolldown-runtime-DkW27tQK.js";import{t}from"./react-BZJXY1be.js";import{t as n}from"./compiler-runtime-qQQXpJgv.js";import{t as r}from"./jsx-runtime-DeHZSEgm.js";import{n as i}from"./icons-gLFQTv74.js";import{t as a}from"./richText-BkxJhl9N.js";import{t as o}from"./safeImageUrl-BINWXOTz.js";import{r as s}from"./lib-Dkb5WBRc.js";import{t as c}from"./registry-types-D3q_LrlV.js";import{r as l,s as u,t as d}from"./kokoro-DcP-u0Tl.js";import{t as f}from"./safeCssColor-di93BXgG.js";var p=t(),m=r(),h=480,g=90,_=240,v=390,y=120,b=38,x=14;function S(e){let t=typeof e==`string`?e.toLowerCase():``;return t.includes(`proto`)||t.includes(`pie`)||t.includes(`indo`)?`var(--text-muted)`:t.includes(`latin`)||t.includes(`greek`)||t.includes(`ancient`)?`var(--presence)`:t.includes(`french`)||t.includes(`romance`)||t.includes(`spanish`)||t.includes(`italian`)?`var(--insight)`:t.includes(`german`)||t.includes(`dutch`)||t.includes(`nordic`)||t.includes(`norse`)?`var(--warning)`:t.includes(`arabic`)||t.includes(`persian`)||t.includes(`sanskrit`)?`var(--danger)`:`var(--text-secondary)`}var C=18,w=22;function T(e,t){return e.length>t?e.slice(0,t-1).trimEnd()+`…`:e}function E(e){return typeof e==`string`?e:``}function D({word:e,roots:t,descendants:n,note:r,footer:i,delay:o}){let s=E(e)||`Word`,{vbH:c,wordY:l,wordCY:u,rootBoxes:d,descBoxes:f}=(0,p.useMemo)(()=>{let e=t??[],r=n??[],i=e.length,a=r.length,o=Math.max(i,a,1)*52-x+32+12,s=Math.max(o,120),c=s/2,l=c-b/2,u=c-(i*52-(i>0?x:0))/2,d=e.map((e,t)=>({r:e,x:g-y/2,y:u+t*52,cy:u+t*52+b/2,color:S(e.lang)})),f=c-(a*52-(a>0?x:0))/2;return{vbH:s,wordY:l,wordCY:c,rootBoxes:d,descBoxes:r.map((e,t)=>({d:e,x:v-y/2,y:f+t*52,cy:f+t*52+b/2,color:S(e.lang??``)}))}},[t,n]),D=(e,t,n,r)=>{let i=(e+n)/2;return`M ${e.toFixed(1)},${t.toFixed(1)} C ${i.toFixed(1)},${t.toFixed(1)} ${i.toFixed(1)},${r.toFixed(1)} ${n.toFixed(1)},${r.toFixed(1)}`};return(0,m.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(o??0)+`ms`},children:[(0,m.jsx)(`div`,{className:`et-wrap`,children:(0,m.jsxs)(`svg`,{className:`et-svg`,viewBox:`0 0 ${h} ${c}`,role:`img`,"aria-label":`Etymology of "${s}"`,preserveAspectRatio:`xMidYMid meet`,children:[d.map((e,t)=>(0,m.jsx)(`path`,{d:D(150,e.cy,_-y/2,u),fill:`none`,stroke:e.color,strokeWidth:`1.5`,opacity:`0.75`},`rc${t}`)),f.map((e,t)=>(0,m.jsx)(`path`,{d:D(300,u,v-y/2,e.cy),fill:`none`,stroke:e.color,strokeWidth:`1.5`,opacity:`0.75`},`dc${t}`)),d.map(({r:e,x:t,y:n,cy:r,color:i},a)=>{let o=E(e.form),s=E(e.lang),c=E(e.gloss),l=s+(c?` · ${c}`:``);return(0,m.jsxs)(`g`,{children:[(0,m.jsx)(`rect`,{x:t,y:n,width:y,height:b,rx:6,className:`et-box`,style:{stroke:i}}),(0,m.jsxs)(`text`,{x:g,y:r-7,textAnchor:`middle`,className:`et-form`,children:[o.length>C&&(0,m.jsx)(`title`,{children:o}),T(o,C)]}),(0,m.jsxs)(`text`,{x:g,y:r+9,textAnchor:`middle`,className:`et-lang`,style:{fill:i},children:[l.length>w&&(0,m.jsx)(`title`,{children:l}),T(l,w)]})]},`r${a}`)}),(0,m.jsx)(`rect`,{x:_-y/2,y:l,width:y,height:b,rx:8,className:`et-word-box`}),(0,m.jsx)(`text`,{x:_,y:u+5,textAnchor:`middle`,className:`et-word`,children:s}),f.map(({d:e,x:t,y:n,cy:r,color:i},a)=>{let o=E(e.form),s=E(e.lang),c=E(e.gloss),l=s?`${s}${c?` · ${c}`:``}`:c;return(0,m.jsxs)(`g`,{children:[(0,m.jsx)(`rect`,{x:t,y:n,width:y,height:b,rx:6,className:`et-box`,style:{stroke:i}}),(0,m.jsxs)(`text`,{x:v,y:r-7,textAnchor:`middle`,className:`et-form`,children:[o.length>C&&(0,m.jsx)(`title`,{children:o}),T(o,C)]}),(0,m.jsxs)(`text`,{x:v,y:r+9,textAnchor:`middle`,className:`et-lang`,style:{fill:i},children:[l.length>w&&(0,m.jsx)(`title`,{children:l}),T(l,w)]})]},`d${a}`)}),(0,m.jsx)(`text`,{x:g,y:12,textAnchor:`middle`,className:`et-col-hdr`,children:`Roots`}),f.length>0&&(0,m.jsx)(`text`,{x:v,y:12,textAnchor:`middle`,className:`et-col-hdr`,children:`Descendants`})]})}),r&&(0,m.jsx)(`div`,{className:`et-note`,children:r}),i&&(0,m.jsx)(`div`,{className:`insight-summary`,dangerouslySetInnerHTML:a(i),style:{marginTop:12}})]})}function ee({title:e,icon:t=`doc`,iconColor:n=`var(--presence)`,subject:r,tagline:o,facts:s,body:c,footer:l,delay:u}){let d=i[t]??i.doc,f=s??[];return(0,m.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(u??0)+`ms`},children:[(0,m.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,m.jsx)(d,{className:`ic`,style:{color:n}}),` `,e]}),(0,m.jsx)(`div`,{className:`fs-subject`,children:r}),o&&(0,m.jsx)(`div`,{className:`fs-tagline`,children:o}),f.length>0&&(0,m.jsx)(`div`,{className:`fs-facts`,children:f.map((e,t)=>(0,m.jsxs)(`div`,{className:`fs-row`,children:[(0,m.jsx)(`span`,{className:`fs-label`,children:e.label}),(0,m.jsxs)(`span`,{className:`fs-value`,...t===0?{"data-mark":`underline`}:{},children:[e.value,e.note&&(0,m.jsxs)(`span`,{className:`fs-note`,children:[` `,e.note]})]})]},t))}),c&&(0,m.jsx)(`div`,{className:`fs-body`,dangerouslySetInnerHTML:a(c)}),l&&(0,m.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(l)})]})}var O=n(),k={flammable:`Flammable`,corrosive:`Corrosive`,toxic:`Toxic`,irritant:`Irritant`,oxidizer:`Oxidizer`,healthHazard:`Health hazard`,environment:`Environment`,explosive:`Explosive`,compressedGas:`Compressed gas`},te=`12,1.6 22.4,12 12,22.4 1.6,12`,A={flammable:()=>(0,m.jsx)(`path`,{className:`ghs-symbol-fill`,d:`M12 6c1.9 2.4 2.9 4.2 2.9 6a2.9 2.9 0 0 1-5.8 0c0-.7.15-1.3.45-1.85-.05.5.1.9.5 1.15-.15-1.7.3-3.4 1.95-5.3Z`}),corrosive:()=>(0,m.jsxs)(`g`,{className:`ghs-symbol`,children:[(0,m.jsx)(`line`,{x1:`5.6`,y1:`13.4`,x2:`18.4`,y2:`13.4`}),(0,m.jsx)(`path`,{d:`M9 6.6v3.6q0 1.7-1.1 3.2`}),(0,m.jsx)(`path`,{d:`M15 6.6v3.6q0 1.7 1.1 3.2`}),(0,m.jsx)(`path`,{d:`M7.6 15.4q.6 1.2 0 2.4`}),(0,m.jsx)(`path`,{d:`M16.4 15.4q.6 1.4-.2 2.6`})]}),toxic:()=>(0,m.jsxs)(`g`,{className:`ghs-symbol`,children:[(0,m.jsx)(`circle`,{cx:`12`,cy:`10.1`,r:`3.15`}),(0,m.jsx)(`circle`,{className:`ghs-symbol-fill`,cx:`10.6`,cy:`9.8`,r:`0.55`}),(0,m.jsx)(`circle`,{className:`ghs-symbol-fill`,cx:`13.4`,cy:`9.8`,r:`0.55`}),(0,m.jsx)(`path`,{d:`M10.6 12.3q1.4 1 2.8 0`}),(0,m.jsx)(`path`,{d:`M8.1 17.1 15.9 13.7`}),(0,m.jsx)(`path`,{d:`M8.1 13.7 15.9 17.1`})]}),irritant:()=>(0,m.jsxs)(`g`,{className:`ghs-symbol-fill`,children:[(0,m.jsx)(`rect`,{x:`11.05`,y:`6.4`,width:`1.9`,height:`6.6`,rx:`0.95`}),(0,m.jsx)(`circle`,{cx:`12`,cy:`15.9`,r:`1.1`})]}),oxidizer:()=>(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(`circle`,{className:`ghs-symbol`,cx:`12`,cy:`15.1`,r:`3.05`}),(0,m.jsx)(`path`,{className:`ghs-symbol-fill`,d:`M12 6c1.5 2 2.3 3.5 2.3 5a2.3 2.3 0 0 1-4.6 0c0-.55.1-1 .3-1.45-.05.4.1.7.4.9-.1-1.35.35-2.7 1.6-4.45Z`})]}),healthHazard:()=>(0,m.jsxs)(`g`,{className:`ghs-symbol`,children:[(0,m.jsx)(`circle`,{cx:`12`,cy:`7.5`,r:`1.75`}),(0,m.jsx)(`path`,{d:`M8.3 17c.1-3.15 1.7-5.1 3.7-5.1s3.6 1.95 3.7 5.1`}),(0,m.jsx)(`path`,{d:`M12 12.6v3.4`}),(0,m.jsx)(`path`,{d:`M10.5 14.3h3`}),(0,m.jsx)(`path`,{d:`M10.8 13.15l2.4 2.4`}),(0,m.jsx)(`path`,{d:`M13.2 13.15l-2.4 2.4`})]}),environment:()=>(0,m.jsxs)(`g`,{className:`ghs-symbol`,children:[(0,m.jsx)(`path`,{d:`M8.7 7.4v6.2`}),(0,m.jsx)(`path`,{d:`M8.7 9.7 7 8.2`}),(0,m.jsx)(`path`,{d:`M8.7 8.9l1.9-1.6`}),(0,m.jsx)(`path`,{d:`M8.7 11.7 7 13`}),(0,m.jsx)(`path`,{d:`M6 15.9c1.35.85 2.85.85 4.2 0`}),(0,m.jsx)(`path`,{d:`M13.6 15.9c1.35.85 2.85.85 4.2 0`}),(0,m.jsx)(`path`,{className:`ghs-symbol-fill`,d:`M14.9 12.6c1.7-.35 3.05.2 3.7 1.15-.7.95-2.1 1.5-3.7 1.15.35-.5.35-1.8 0-2.3Z`})]}),explosive:()=>(0,m.jsxs)(`g`,{children:[(0,m.jsx)(`circle`,{className:`ghs-symbol-fill`,cx:`12`,cy:`12`,r:`1.55`}),(0,m.jsxs)(`g`,{className:`ghs-symbol`,children:[(0,m.jsx)(`path`,{d:`M12 6.5v2.3`}),(0,m.jsx)(`path`,{d:`M12 15.2v2.3`}),(0,m.jsx)(`path`,{d:`M6.5 12h2.3`}),(0,m.jsx)(`path`,{d:`M15.2 12h2.3`}),(0,m.jsx)(`path`,{d:`M8.3 8.3l1.6 1.6`}),(0,m.jsx)(`path`,{d:`M14.1 14.1l1.6 1.6`}),(0,m.jsx)(`path`,{d:`M15.7 8.3l-1.6 1.6`}),(0,m.jsx)(`path`,{d:`M9.9 14.1l-1.6 1.6`})]})]}),compressedGas:()=>(0,m.jsxs)(`g`,{className:`ghs-symbol`,children:[(0,m.jsx)(`rect`,{x:`9.3`,y:`9.1`,width:`5.4`,height:`8.4`,rx:`1.3`}),(0,m.jsx)(`rect`,{x:`10.55`,y:`6.35`,width:`2.9`,height:`2.4`,rx:`0.5`}),(0,m.jsx)(`line`,{x1:`9.6`,y1:`12.6`,x2:`14.4`,y2:`12.6`})]})};function j(e){let t=(0,O.c)(7),{kind:n,className:r}=e,i=A[n],a=k[n],o;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,m.jsx)(`polygon`,{className:`ghs-diamond`,points:te}),t[0]=o):o=t[0];let s;t[1]===i?s=t[2]:(s=(0,m.jsx)(i,{}),t[1]=i,t[2]=s);let c;return t[3]!==r||t[4]!==a||t[5]!==s?(c=(0,m.jsxs)(`svg`,{viewBox:`0 0 24 24`,role:`img`,"aria-label":a,className:r,children:[o,s]}),t[3]=r,t[4]=a,t[5]=s,t[6]=c):c=t[6],c}function ne({title:e,icon:t=`alert`,iconColor:n=`var(--danger)`,cas:r,signalWord:o,pictograms:s,hazards:c,precautions:l,footer:u,delay:d}){let f=i[t]??i.alert,p=o===`Warning`,h=p?`var(--warning)`:`var(--danger)`,g=(s??[]).filter(e=>e in k),_=c??[],v=l??[];return(0,m.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(d??0)+`ms`},children:[(0,m.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,m.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),r&&(0,m.jsxs)(`div`,{className:`hc-cas`,children:[`CAS `,r]}),(0,m.jsxs)(`div`,{className:`hc-signal`,style:{"--hc-c":h},role:`status`,children:[(0,m.jsx)(`span`,{className:`hc-signal-icon`,children:(0,m.jsx)(i.alert,{})}),(0,m.jsx)(`span`,{className:`hc-signal-word`,children:p?`Warning`:`Danger`})]}),g.length>0&&(0,m.jsx)(`div`,{className:`hc-pictograms`,children:g.map((e,t)=>(0,m.jsxs)(`div`,{className:`hc-pic m-stagger-item m-scale-in`,style:{"--i":t},children:[(0,m.jsx)(j,{kind:e,className:`hc-pic-glyph`}),(0,m.jsx)(`span`,{className:`hc-pic-label`,children:k[e]})]},t))}),_.length>0&&(0,m.jsxs)(`div`,{className:`hc-section`,children:[(0,m.jsx)(`div`,{className:`hc-section-label`,children:`Hazards`}),(0,m.jsx)(`div`,{className:`hc-codes`,children:_.map((e,t)=>(0,m.jsxs)(`div`,{className:`hc-code-row m-stagger-item m-fade-rise`,style:{"--i":t},children:[(0,m.jsx)(`span`,{className:`hc-code`,children:e.code}),(0,m.jsx)(`span`,{className:`hc-code-text`,children:e.text})]},t))})]}),v.length>0&&(0,m.jsxs)(`div`,{className:`hc-section`,children:[(0,m.jsx)(`div`,{className:`hc-section-label`,children:`Precautions`}),(0,m.jsx)(`div`,{className:`hc-codes`,children:v.map((e,t)=>(0,m.jsxs)(`div`,{className:`hc-code-row m-stagger-item m-fade-rise`,style:{"--i":t},children:[(0,m.jsx)(`span`,{className:`hc-code`,children:e.code}),(0,m.jsx)(`span`,{className:`hc-code-text`,children:e.text})]},t))})]}),u&&(0,m.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(u)})]})}function re({title:e,icon:t=`globe`,iconColor:n=`var(--presence)`,topic:r,asOf:o,items:s,footer:c,delay:l}){let u=i[t]??i.globe,d=s??[];return(0,m.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(l??0)+`ms`},children:[(0,m.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,m.jsx)(u,{className:`ic`,style:{color:n}}),` `,e]}),(0,m.jsxs)(`div`,{className:`nd-meta`,children:[r&&(0,m.jsx)(`span`,{className:`nd-topic`,children:r}),(0,m.jsx)(`span`,{className:`nd-asof`,children:o})]}),(0,m.jsx)(`div`,{className:`nd-items`,children:d.map((e,t)=>(0,m.jsxs)(`div`,{className:`nd-item`,children:[(0,m.jsx)(`div`,{className:`nd-headline`,...t===0?{"data-mark":`underline`}:{},children:e.headline}),(e.source||e.time||e.category)&&(0,m.jsxs)(`div`,{className:`nd-item-meta`,children:[e.source&&(0,m.jsx)(`span`,{className:`nd-source`,children:e.source}),e.time&&(0,m.jsx)(`span`,{className:`nd-time`,children:e.time}),e.category&&(0,m.jsx)(`span`,{className:`nd-cat`,children:e.category})]}),e.summary&&(0,m.jsx)(`div`,{className:`nd-summary`,children:e.summary})]},t))}),c&&(0,m.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(c)})]})}function ie({title:e,icon:t=`globe`,iconColor:n=`var(--presence)`,fromLang:r,toLang:o,text:c,result:l,pairs:u,footer:d,delay:f}){let p=i[t]??i.globe,h=u??[];return(0,m.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(f??0)+`ms`},children:[(0,m.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,m.jsx)(p,{className:`ic`,style:{color:n}}),` `,e]}),(0,m.jsxs)(`div`,{className:`tl-langs`,children:[(0,m.jsx)(`span`,{className:`tl-from`,children:r}),(0,m.jsx)(`span`,{className:`tl-arrow`,children:`→`}),(0,m.jsx)(`span`,{className:`tl-to`,children:o})]}),(0,m.jsxs)(`div`,{className:`tl-pair`,children:[(0,m.jsx)(`div`,{className:`tl-source`,children:(0,m.jsx)(`div`,{className:`tl-text`,style:{color:`var(--text-secondary)`},children:c})}),(0,m.jsx)(`div`,{className:`tl-result`,children:(0,m.jsx)(`div`,{className:`tl-text`,style:{fontWeight:600},"data-mark":`underline`,children:l})})]}),(0,m.jsx)(`div`,{style:{display:`flex`,justifyContent:`flex-end`,marginTop:6},children:(0,m.jsx)(s,{text:l,label:`Copy ${o} translation`})}),h.length>0&&(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(`div`,{style:{fontSize:`var(--fs-xs, 11px)`,fontWeight:700,color:`var(--text-muted)`,textTransform:`uppercase`,letterSpacing:`0.07em`,marginTop:14,marginBottom:4},children:`Breakdown`}),(0,m.jsx)(`div`,{className:`tl-breakdowns`,children:h.map((e,t)=>(0,m.jsxs)(`div`,{className:`tl-bp`,children:[(0,m.jsx)(`span`,{className:`tl-bp-orig`,children:e.original}),(0,m.jsxs)(`span`,{className:`tl-bp-trans`,children:[e.translated,e.note&&(0,m.jsx)(`span`,{className:`tl-bp-note`,style:{display:`block`,marginTop:2},children:e.note})]})]},t))})]}),d&&(0,m.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(d)})]})}function ae({title:e,icon:t=`globe`,iconColor:n=`var(--presence)`,word:r,ipa:o,syllables:s,tips:c,footer:l,delay:u}){let d=i[t]??i.doc,f=c??[],p=(()=>{if(!s)return[];let e=s.split(`·`);if(!o)return e.map(e=>({text:e,stressed:!1}));let t=(()=>{let t=o.indexOf(`ˈ`);if(t===-1)return-1;let n=o.replace(/[/[\]]/g,``),r=t/Math.max(n.length,1);return Math.min(Math.round(r*e.length),e.length-1)})();return e.map((e,n)=>({text:e,stressed:n===t}))})();return(0,m.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(u??0)+`ms`},children:[(0,m.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,m.jsx)(d,{className:`ic`,style:{color:n}}),` `,e]}),(0,m.jsx)(`div`,{className:`pr-word`,children:r}),o&&(0,m.jsx)(`div`,{className:`pr-ipa`,style:{display:`inline-block`,fontFamily:`var(--font-mono, monospace)`,fontStyle:`normal`,background:`var(--grid-line)`,borderRadius:`var(--r-sm, 4px)`,padding:`2px 8px`,marginTop:6,fontSize:`var(--fs-sm, 14px)`,color:`var(--text-primary)`,letterSpacing:`0.04em`},children:o}),p.length>0&&(0,m.jsx)(`div`,{className:`pr-syllables`,children:p.map((e,t)=>(0,m.jsxs)(`span`,{children:[t>0&&(0,m.jsx)(`span`,{"aria-hidden":`true`,style:{color:`var(--text-muted)`},children:`·`}),(0,m.jsx)(`span`,{style:e.stressed?{fontWeight:800,color:`var(--presence)`}:{fontWeight:400,color:`var(--text-secondary)`},...e.stressed?{"data-mark":`underline`}:{},children:e.text})]},t))}),f.length>0&&(0,m.jsx)(`div`,{className:`pr-tips`,children:f.map((e,t)=>(0,m.jsx)(`div`,{className:`pr-tip`,children:e},t))}),l&&(0,m.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(l)})]})}function oe({title:e,icon:t=`doc`,iconColor:n=`var(--presence)`,word:r,phonetic:o,senses:s,etymology:c,footer:l,delay:u}){let d=i[t]??i.doc,f=s??[];return(0,m.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(u??0)+`ms`},children:[(0,m.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,m.jsx)(d,{className:`ic`,style:{color:n}}),` `,e]}),(0,m.jsx)(`div`,{className:`dc-word`,children:r}),o&&(0,m.jsx)(`div`,{className:`dc-phonetic`,style:{fontFamily:`monospace`,fontStyle:`normal`},children:o}),f.length>0&&(0,m.jsx)(`ol`,{className:`dc-senses`,style:{listStyle:`none`,padding:0,margin:0},children:f.map((e,t)=>(0,m.jsxs)(`li`,{className:`dc-sense`,children:[(0,m.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:8,marginBottom:4},children:[(0,m.jsxs)(`span`,{style:{fontSize:`var(--fs-xs, 11px)`,fontWeight:700,color:`var(--text-faint)`,minWidth:`1.4em`},children:[t+1,`.`]}),(0,m.jsx)(`span`,{className:`dc-pos`,children:e.pos})]}),(0,m.jsx)(`div`,{className:`dc-def`,style:{paddingLeft:`calc(1.4em + 8px)`},...t===0?{"data-mark":`underline`}:{},children:e.definition}),e.example&&(0,m.jsx)(`div`,{className:`dc-example`,style:{marginLeft:`calc(1.4em + 8px)`},children:e.example}),(e.synonyms??[]).length>0&&(0,m.jsxs)(`div`,{className:`dc-synonyms`,style:{display:`flex`,flexWrap:`wrap`,alignItems:`center`,gap:4,marginLeft:`calc(1.4em + 8px)`},children:[(0,m.jsx)(`span`,{style:{color:`var(--text-faint)`,marginRight:2},children:`syn.`}),(e.synonyms??[]).map((e,t)=>(0,m.jsx)(`span`,{style:{fontSize:`var(--fs-xs, 11px)`,padding:`1px 7px`,borderRadius:999,background:`var(--track)`,color:`var(--text-secondary)`,lineHeight:1.7},children:e},t))]})]},t))}),c&&(0,m.jsxs)(`div`,{className:`dc-etymology`,children:[(0,m.jsx)(`span`,{style:{fontWeight:600,fontStyle:`normal`,color:`var(--text-muted)`},children:`Etymology `}),c]}),l&&(0,m.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(l)})]})}function se({title:e,icon:t=`doc`,iconColor:n=`var(--presence)`,domain:r,entries:o,footer:s,delay:c}){let l=i[t]??i.doc,u=(0,p.useMemo)(()=>[...o??[]].sort((e,t)=>e.term.localeCompare(t.term,void 0,{sensitivity:`base`})),[o]);return(0,m.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(c??0)+`ms`},children:[(0,m.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,m.jsx)(l,{className:`ic`,style:{color:n}}),` `,e]}),r&&(0,m.jsx)(`div`,{className:`gl-domain`,children:r}),(0,m.jsx)(`div`,{className:`gl-entries`,children:u.map((e,t)=>{let n=e.term.charAt(0).toUpperCase(),r=n!==(t===0?null:u[t-1].term.charAt(0).toUpperCase());return(0,m.jsxs)(`div`,{children:[r&&(0,m.jsx)(`div`,{className:`gl-letter-divider`,"aria-hidden":`true`,children:n}),(0,m.jsxs)(`div`,{className:`gl-entry`,children:[(0,m.jsx)(`div`,{className:`gl-term`,children:e.term}),(0,m.jsx)(`div`,{className:`gl-def`,children:e.definition}),e.see&&(0,m.jsxs)(`div`,{className:`gl-see`,children:[`See also: `,(0,m.jsx)(`span`,{style:{fontStyle:`italic`},children:e.see})]})]})]},t)})}),s&&(0,m.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(s)})]})}function ce({title:e,icon:t=`layers`,iconColor:n=`var(--presence)`,value:r,unit:o,comparisons:s,footer:c,delay:l}){let u=i[t]??i.layers,d=s??[],f=e=>{let t=typeof e.howMany==`number`?e.howMany:Number(String(e.howMany).trim());return Number.isFinite(t)&&t>0?t:null},p=d.reduce((e,t)=>{let n=f(t);return n!==null&&n>e?n:e},0);return(0,m.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(l??0)+`ms`},children:[(0,m.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,m.jsx)(u,{className:`ic`,style:{color:n}}),` `,e]}),(0,m.jsxs)(`div`,{className:`scf-figure`,"data-mark":`underline`,children:[(0,m.jsx)(`span`,{className:`scf-value`,children:r}),o&&(0,m.jsx)(`span`,{className:`scf-unit`,children:o})]}),d.length>0&&(0,m.jsx)(`div`,{className:`scf-rows`,children:d.map((e,t)=>{let n=f(e),r=n!==null&&p>0?Math.max(n/p*100,4):0;return(0,m.jsxs)(`div`,{className:`scf-row`,children:[(0,m.jsxs)(`div`,{className:`scf-line`,children:[(0,m.jsx)(`span`,{className:`scf-count`,children:e.howMany}),(0,m.jsx)(`span`,{className:`scf-to`,children:e.to})]}),r>0&&(0,m.jsx)(`div`,{className:`scf-track`,"aria-hidden":`true`,children:(0,m.jsx)(`div`,{className:`scf-bar`,style:{width:r+`%`}})}),e.note&&(0,m.jsx)(`div`,{className:`scf-note`,children:e.note})]},t)})}),c&&(0,m.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(c)})]})}var M=typeof window<`u`?window.AudioContext??window.webkitAudioContext:void 0,le={C:0,"C#":1,DB:1,D:2,"D#":3,EB:3,E:4,FB:4,F:5,"E#":5,"F#":6,GB:6,G:7,"G#":8,AB:8,A:9,"A#":10,BB:10,B:11,CB:11};function ue(e){let t=/^([A-Ga-g])([#b]?)(-?\d{1,2})$/.exec(e.trim());if(!t)return null;let n=le[t[1].toUpperCase()+(t[2]===`#`?`#`:t[2]===`b`?`B`:``)];return n===void 0?null:440*2**((n+(Number(t[3])+1)*12-69)/12)}function N(e){if(typeof e==`number`)return Number.isFinite(e)?e:null;let t=e.trim(),n=Number(t);return t!==``&&Number.isFinite(n)?n:ue(t)}var P={word:`chat`,note:`speaker`,tone:`speaker`};function F({title:e,icon:t=`speaker`,iconColor:n=`var(--presence)`,items:r,footer:o,delay:s}){let c=i[t]??i.speaker,f=r??[],[h,g]=(0,p.useState)(null),[_,v]=(0,p.useState)(!1),y=(0,p.useRef)(null),b=(0,p.useRef)(null),x=(0,p.useCallback)(()=>{if(b.current!==null&&(clearTimeout(b.current),b.current=null),y.current){let e=y.current;y.current=null,e.close().catch(()=>{})}d()},[]);(0,p.useEffect)(()=>x,[x]);let S=(0,p.useCallback)((e,t)=>{g(t),u(e,`mavea`).then(e=>{g(e=>e===t?null:e),!e&&l()===!1&&v(!0)})},[]),C=(0,p.useCallback)((e,t)=>{if(!M)return;let n=new M;y.current=n;let r=n.currentTime,i=.6,a=n.createOscillator();a.type=`sine`,a.frequency.setValueAtTime(e,r);let o=n.createGain();o.gain.setValueAtTime(1e-4,r),o.gain.exponentialRampToValueAtTime(.22,r+.04),o.gain.exponentialRampToValueAtTime(1e-4,r+i),a.connect(o).connect(n.destination),a.start(r),a.stop(r+i),g(t),a.onended=()=>{g(e=>e===t?null:e),y.current===n&&(y.current=null,n.close().catch(()=>{}))},b.current=setTimeout(()=>{y.current===n&&(y.current=null,n.close().catch(()=>{}),g(e=>e===t?null:e))},750)},[]),w=(0,p.useCallback)((e,t)=>{if(x(),e.kind===`word`){S(String(e.value),t);return}let n=N(e.value);n===null||n<=0||C(n,t)},[x,S,C]),T=e=>e.kind===`word`||!!M&&N(e.value)!==null,E=M?`This note can’t be played`:`Audio playback is unavailable in this browser`;return(0,m.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(s||0)+`ms`},children:[(0,m.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,m.jsx)(c,{className:`ic`,style:{color:n}}),` `,e]}),(0,m.jsx)(`ul`,{className:`hri-rows`,children:f.map((e,t)=>{let n=T(e),r=h===t,a=i[P[e.kind]]??i.speaker;return(0,m.jsxs)(`li`,{className:`hri-row`,"data-playing":r||void 0,children:[(0,m.jsx)(`button`,{type:`button`,className:`hri-play`,onClick:()=>w(e,t),disabled:!n,title:n?`Play ${e.label}`:E,"aria-label":n?`Play ${e.label}`:`${e.label} — ${E}`,children:r?(0,m.jsxs)(`span`,{className:`hri-wave`,"aria-hidden":`true`,children:[(0,m.jsx)(`span`,{}),(0,m.jsx)(`span`,{}),(0,m.jsx)(`span`,{})]}):(0,m.jsx)(i.play,{className:`ic hri-play-ic`,style:{width:13,height:13}})}),(0,m.jsxs)(`div`,{className:`hri-body`,children:[(0,m.jsx)(`div`,{className:`hri-label`,children:e.label}),e.sub&&(0,m.jsx)(`div`,{className:`hri-sub`,children:e.sub})]}),(0,m.jsxs)(`span`,{className:`hri-kind`,children:[(0,m.jsx)(a,{className:`ic hri-kind-ic`,style:{width:12,height:12}}),e.kind]})]},t)})}),_&&(0,m.jsx)(`p`,{className:`insight-summary`,role:`status`,style:{marginTop:12},children:`Voice is off — start the local voice service to hear this.`}),o&&(0,m.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(o)})]})}var I=[{s:`i`,back:0,high:0},{s:`y`,back:0,high:0,rounded:!0},{s:`ɨ`,back:.5,high:0},{s:`u`,back:1,high:0,rounded:!0},{s:`ɪ`,back:.18,high:.18},{s:`ʊ`,back:.82,high:.18,rounded:!0},{s:`e`,back:0,high:.34},{s:`ø`,back:0,high:.34,rounded:!0},{s:`ə`,back:.5,high:.5},{s:`o`,back:1,high:.34,rounded:!0},{s:`ɛ`,back:.08,high:.66},{s:`ɜ`,back:.5,high:.66},{s:`ʌ`,back:.78,high:.66},{s:`ɔ`,back:1,high:.66,rounded:!0},{s:`a`,back:.06,high:1},{s:`æ`,back:.16,high:.84},{s:`ɑ`,back:.9,high:1},{s:`ɒ`,back:1,high:1,rounded:!0}],L=[`Plosive`,`Nasal`,`Fricative`,`Approx.`,`Lateral`],R=[`Bilab.`,`Labiod.`,`Dental`,`Alveolar`,`Postalv.`,`Velar`,`Glottal`],z={"Plosive|Bilab.":[`p`,`b`],"Plosive|Alveolar":[`t`,`d`],"Plosive|Velar":[`k`,`g`],"Plosive|Glottal":[`ʔ`,``],"Nasal|Bilab.":[``,`m`],"Nasal|Alveolar":[``,`n`],"Nasal|Velar":[``,`ŋ`],"Fricative|Labiod.":[`f`,`v`],"Fricative|Dental":[`θ`,`ð`],"Fricative|Alveolar":[`s`,`z`],"Fricative|Postalv.":[`ʃ`,`ʒ`],"Fricative|Glottal":[`h`,``],"Approx.|Postalv.":[``,`ɹ`],"Approx.|Velar":[``,`w`],"Lateral|Alveolar":[``,`l`]};function B(e){return e.replace(/[ː/[\].ˈˌ]/g,``).trim()}function V({title:e,icon:t=`globe`,iconColor:n=`var(--presence)`,kind:r=`vowels`,highlight:o,examples:s,caption:c,footer:l,delay:u}){let d=i[t]??i.globe,f=s??[],p=new Set((o??[]).map(B)),h=e=>p.has(B(e));return(0,m.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(u??0)+`ms`},children:[(0,m.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,m.jsx)(d,{className:`ic`,style:{color:n}}),` `,e]}),r===`consonants`?(0,m.jsx)(de,{isHot:h}):(0,m.jsx)(H,{isHot:h}),c&&(0,m.jsx)(`div`,{className:`ipa-caption`,children:c}),f.length>0&&(0,m.jsx)(`ul`,{className:`ipa-examples`,children:f.map((e,t)=>(0,m.jsxs)(`li`,{className:`ipa-ex`,...h(e.symbol)?{"data-hot":``}:{},children:[(0,m.jsx)(`span`,{className:`ipa-ex-sym`,children:e.symbol}),(0,m.jsx)(`span`,{className:`ipa-ex-word`,children:e.word})]},t))}),l&&(0,m.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(l)})]})}function H(e){let t=(0,O.c)(31),{isHot:n}=e,r,i,a,o,s,c,l,u,d,f,p,h;if(t[0]!==n){let e={x:12,y:14},g={x:92,y:14},_={x:34,y:86},v={x:80,y:86},y=U,b=(t,n)=>{let r=y(e.x,_.x,n),i=y(g.x,v.x,n),a=y(e.y,_.y,n);return{x:y(r,i,t),y:a}};o=`ipa-quad`,r=`0 0 104 100`,s=`100%`,c=`img`,l=`IPA vowel quadrilateral`;let x=`${e.x},${e.y} ${g.x},${g.y} ${v.x},${v.y} ${_.x},${_.y}`;t[13]===x?u=t[14]:(u=(0,m.jsx)(`polygon`,{points:x,fill:`none`,stroke:`var(--line-strong)`,strokeWidth:.8}),t[13]=x,t[14]=u),d=[.34,.5,.66].map((e,t)=>{let n=b(0,e),r=b(1,e);return(0,m.jsx)(`line`,{x1:n.x,y1:n.y,x2:r.x,y2:r.y,stroke:`var(--grid-line)`,strokeWidth:.5},t)}),f=(0,m.jsx)(`line`,{x1:b(.5,0).x,y1:b(.5,0).y,x2:b(.5,1).x,y2:b(.5,1).y,stroke:`var(--grid-line)`,strokeWidth:.5}),p=(0,m.jsx)(`text`,{x:e.x,y:9,className:`ipa-axis`,textAnchor:`start`,children:`Front`}),h=(0,m.jsx)(`text`,{x:g.x,y:9,className:`ipa-axis`,textAnchor:`end`,children:`Back`}),t[15]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,m.jsx)(`text`,{className:`ipa-axis`,transform:`translate(6, 50) rotate(-90)`,textAnchor:`middle`,children:`Close → Open`}),t[15]=i):i=t[15],a=I.map(e=>{let t=b(e.back,e.high),r=e.rounded?3:0,i=n(e.s);return(0,m.jsxs)(`g`,{transform:`translate(${t.x+r}, ${t.y})`,children:[i&&(0,m.jsx)(`circle`,{r:4.4,className:`ipa-vowel-halo`}),(0,m.jsx)(`text`,{className:`ipa-vowel`,textAnchor:`middle`,dominantBaseline:`central`,...i?{"data-hot":``}:{},children:e.s})]},e.s)}),t[0]=n,t[1]=r,t[2]=i,t[3]=a,t[4]=o,t[5]=s,t[6]=c,t[7]=l,t[8]=u,t[9]=d,t[10]=f,t[11]=p,t[12]=h}else r=t[1],i=t[2],a=t[3],o=t[4],s=t[5],c=t[6],l=t[7],u=t[8],d=t[9],f=t[10],p=t[11],h=t[12];let g;t[16]!==r||t[17]!==i||t[18]!==a||t[19]!==s||t[20]!==c||t[21]!==l||t[22]!==u||t[23]!==d||t[24]!==f||t[25]!==p||t[26]!==h?(g=(0,m.jsxs)(`svg`,{viewBox:r,width:s,role:c,"aria-label":l,children:[u,d,f,p,h,i,a]}),t[16]=r,t[17]=i,t[18]=a,t[19]=s,t[20]=c,t[21]=l,t[22]=u,t[23]=d,t[24]=f,t[25]=p,t[26]=h,t[27]=g):g=t[27];let _;return t[28]!==o||t[29]!==g?(_=(0,m.jsx)(`div`,{className:o,children:g}),t[28]=o,t[29]=g,t[30]=_):_=t[30],_}function U(e,t,n){return e+(t-e)*n}function de(e){let t=(0,O.c)(7),{isHot:n}=e,r;t[0]===n?r=t[1]:(r=e=>{let{s:t}=e;return t?(0,m.jsx)(`span`,{className:`ipa-cgrid-sym`,...n(t)?{"data-hot":``}:{},children:t}):(0,m.jsx)(`span`,{className:`ipa-cgrid-empty`,children:`·`})},t[0]=n,t[1]=r);let i=r,a;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,m.jsx)(`thead`,{children:(0,m.jsxs)(`tr`,{children:[(0,m.jsx)(`th`,{className:`ipa-cgrid-corner`}),R.map(fe)]})}),t[2]=a):a=t[2];let o;t[3]===i?o=t[4]:(o=L.map(e=>(0,m.jsxs)(`tr`,{children:[(0,m.jsx)(`th`,{className:`ipa-cgrid-manner`,scope:`row`,children:e}),R.map(t=>{let n=z[`${e}|${t}`];return(0,m.jsx)(`td`,{className:`ipa-cgrid-cell`,children:n?(0,m.jsxs)(`span`,{className:`ipa-cgrid-pair`,children:[(0,m.jsx)(i,{s:n[0]}),(0,m.jsx)(i,{s:n[1]})]}):(0,m.jsx)(`span`,{className:`ipa-cgrid-na`,"aria-hidden":`true`})},t)})]},e)),t[3]=i,t[4]=o);let s;return t[5]===o?s=t[6]:(s=(0,m.jsx)(`div`,{className:`ipa-cgrid-wrap`,children:(0,m.jsxs)(`table`,{className:`ipa-cgrid`,children:[a,(0,m.jsx)(`tbody`,{children:o})]})}),t[5]=o,t[6]=s),s}function fe(e){return(0,m.jsx)(`th`,{className:`ipa-cgrid-place`,scope:`col`,children:e},e)}function pe(e){let t=e.match(/-?\d*\.?\d+/g);if(!t||t.length<2)return null;let n=Number(t[0]),r=Number(t[1]);return!Number.isFinite(n)||!Number.isFinite(r)?null:{x:n,y:r}}function me({title:e,icon:t=`edit`,iconColor:n=`var(--presence)`,glyph:r,strokes:o,grid:s=`mi`,romanization:c,meaning:l,caption:u,footer:d,delay:f}){let p=i[t]??i.edit,h=[...o??[]].sort((e,t)=>e.order-t.order),g=h.some(e=>e.path&&e.path.trim().length>0);return(0,m.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(f??0)+`ms`},children:[(0,m.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,m.jsx)(p,{className:`ic`,style:{color:n}}),` `,e]}),(0,m.jsxs)(`div`,{className:`ss-stage`,children:[(0,m.jsx)(`div`,{className:`ss-square`,children:(0,m.jsxs)(`svg`,{viewBox:`0 0 100 100`,width:`100%`,role:`img`,"aria-label":`Writing guide for ${r}`,children:[(0,m.jsx)(`rect`,{x:1,y:1,width:98,height:98,rx:2,fill:`none`,stroke:`var(--line-strong)`,strokeWidth:.8}),s!==`none`&&(0,m.jsxs)(`g`,{stroke:`var(--grid-line)`,strokeWidth:.6,strokeDasharray:`3 2.5`,children:[(0,m.jsx)(`line`,{x1:50,y1:1,x2:50,y2:99}),(0,m.jsx)(`line`,{x1:1,y1:50,x2:99,y2:50}),s===`mi`&&(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(`line`,{x1:1,y1:1,x2:99,y2:99}),(0,m.jsx)(`line`,{x1:99,y1:1,x2:1,y2:99})]})]}),g?(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(`text`,{x:50,y:54,className:`ss-ghost`,textAnchor:`middle`,dominantBaseline:`central`,children:r}),h.map((e,t)=>e.path?(0,m.jsx)(`path`,{d:e.path,className:`ss-stroke`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`,style:{"--i":t}},`p${t}`):null),h.map((e,t)=>{let n=e.path?pe(e.path):null;return n?(0,m.jsxs)(`g`,{transform:`translate(${n.x}, ${n.y})`,children:[(0,m.jsx)(`circle`,{r:4.6,className:`ss-badge-bg`}),(0,m.jsx)(`text`,{className:`ss-badge-num`,textAnchor:`middle`,dominantBaseline:`central`,children:e.order})]},`b${t}`):null})]}):(0,m.jsx)(`text`,{x:50,y:54,className:`ss-glyph`,textAnchor:`middle`,dominantBaseline:`central`,children:r})]})}),(0,m.jsxs)(`div`,{className:`ss-meta`,children:[(0,m.jsx)(`div`,{className:`ss-glyph-sm`,"aria-hidden":`true`,children:r}),c&&(0,m.jsxs)(`div`,{className:`ss-romanization`,children:[(0,m.jsx)(`span`,{className:`ss-meta-k`,children:`Reading`}),(0,m.jsx)(`span`,{className:`ss-meta-v`,children:c})]}),l&&(0,m.jsxs)(`div`,{className:`ss-meaning`,children:[(0,m.jsx)(`span`,{className:`ss-meta-k`,children:`Meaning`}),(0,m.jsx)(`span`,{className:`ss-meta-v`,children:l})]}),(0,m.jsxs)(`div`,{className:`ss-count`,children:[h.length,` `,h.length===1?`stroke`:`strokes`]})]})]}),h.length>0&&(0,m.jsx)(`ol`,{className:`ss-steps`,children:h.map((e,t)=>(0,m.jsxs)(`li`,{className:`ss-step`,children:[(0,m.jsx)(`span`,{className:`ss-step-num`,children:e.order}),(0,m.jsx)(`span`,{className:`ss-step-hint`,children:e.hint??`Stroke ${e.order}`})]},t))}),u&&(0,m.jsx)(`div`,{className:`ipa-caption`,children:u}),d&&(0,m.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(d)})]})}var he=`silent`;function ge({title:e,icon:t=`captions`,iconColor:n=`var(--presence)`,word:r,chunks:o,rhymes:s,caption:c,footer:f,delay:h}){let g=i[t]??i.captions,_=(o??[]).filter(e=>e&&e.text),v=(s??[]).filter(Boolean),[y,b]=(0,p.useState)(null),[x,S]=(0,p.useState)(!1);(0,p.useEffect)(()=>()=>d(),[]);let C=(0,p.useCallback)((e,t)=>{d(),b(t),u(e,`mavea`).then(e=>{b(e=>e===t?null:e),!e&&l()===!1&&S(!0)})},[]);return(0,m.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(h??0)+`ms`},children:[e&&(0,m.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,m.jsx)(g,{className:`ic`,style:{color:n}}),` `,e]}),(0,m.jsx)(`div`,{className:`pw-word`,role:`group`,"aria-label":`Sound out ${r}`,children:_.map((e,t)=>{let n=e.kind??`grapheme`,r=n===he;return(0,m.jsxs)(`button`,{type:`button`,className:`pw-chunk`,"data-kind":n,"data-playing":y===t||void 0,disabled:r,onClick:()=>C(e.text,t),title:r?`"${e.text}" is silent`:`Hear "${e.text}"`,"aria-label":r?`${e.text}, silent`:`Hear ${e.text}${e.sound?`, ${e.sound}`:``}`,children:[(0,m.jsx)(`span`,{className:`pw-chunk-text`,children:e.text}),e.sound&&(0,m.jsx)(`span`,{className:`pw-chunk-sound`,children:e.sound})]},t)})}),(0,m.jsxs)(`button`,{type:`button`,className:`pw-blend`,"data-playing":y===-1||void 0,onClick:()=>C(r,-1),title:`Hear "${r}"`,"aria-label":`Hear the whole word, ${r}`,children:[y===-1?(0,m.jsxs)(`span`,{className:`pw-wave`,"aria-hidden":`true`,children:[(0,m.jsx)(`span`,{}),(0,m.jsx)(`span`,{}),(0,m.jsx)(`span`,{})]}):(0,m.jsx)(i.play,{className:`ic pw-blend-ic`,style:{width:12,height:12}}),(0,m.jsx)(`span`,{className:`pw-blend-word`,children:r})]}),x&&(0,m.jsx)(`p`,{className:`insight-summary`,role:`status`,style:{marginTop:10},children:`Voice is off — start the local voice service to hear this.`}),c&&(0,m.jsx)(`div`,{className:`ipa-caption`,children:c}),v.length>0&&(0,m.jsxs)(`div`,{className:`pw-rhymes`,children:[(0,m.jsx)(`span`,{className:`pw-rhymes-k`,children:`Rhymes with`}),(0,m.jsx)(`ul`,{className:`pw-rhyme-list`,children:v.map((e,t)=>(0,m.jsx)(`li`,{className:`pw-rhyme`,children:e},t))})]}),f&&(0,m.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(f)})]})}var _e=[`noun`,`verb`,`adjective`,`adverb`,`pronoun`,`preposition`,`conjunction`,`determiner`,`interjection`],W={noun:`n.`,verb:`v.`,adjective:`adj.`,adverb:`adv.`,pronoun:`pron.`,preposition:`prep.`,conjunction:`conj.`,determiner:`det.`,interjection:`interj.`},ve=e=>typeof e==`string`&&Object.prototype.hasOwnProperty.call(W,e),ye=/^[¿¡([{«‹“‘]+$/;function be({title:e,icon:t=`captions`,iconColor:n=`var(--presence)`,tokens:r,sentence:o,translation:s,footer:c,delay:l}){let u=i[t]??i.captions,{groups:d,legend:f,notes:h}=(0,p.useMemo)(()=>{let e=Array.isArray(r)?r:[],t=0,n=[];for(let r of e){if(typeof r==`string`){r.trim()&&n.push({word:r});continue}if(!r||typeof r!=`object`)continue;let e=r;if(typeof e.word!=`string`||!e.word.trim())continue;if(e.pos===`punctuation`){n.push({word:e.word,punct:!0});continue}let i=typeof e.note==`string`&&e.note.trim()?e.note:void 0;n.push({word:e.word,pos:ve(e.pos)?e.pos:void 0,note:i,noteIdx:i?++t:void 0})}let i=[],a=[];for(let e of n)if(e.punct){let t=i[i.length-1];t&&!ye.test(e.word)?t.trail.push(e):a.push(e)}else i.push({lead:a,word:e,trail:[]}),a=[];if(a.length){let e=i[i.length-1];e?e.trail.push(...a):i.push({lead:a,trail:[]})}let o=new Map;for(let e of n)e.pos&&o.set(e.pos,(o.get(e.pos)??0)+1);return{groups:i,legend:_e.filter(e=>o.has(e)).map(e=>({pos:e,count:o.get(e)??0})),notes:n.filter(e=>e.noteIdx!==void 0)}},[r]),[g,_]=(0,p.useState)(null),v=g&&f.some(e=>e.pos===g)?g:null,y=(e,t)=>(0,m.jsx)(`span`,{className:`psb-punct`,"data-dim":!!v||void 0,children:e.word},t);return(0,m.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(l??0)+`ms`},children:[(0,m.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,m.jsx)(u,{className:`ic`,style:{color:n}}),` `,e]}),d.length>0?(0,m.jsx)(`div`,{className:`psb-flow`,children:d.map((e,t)=>(0,m.jsxs)(`span`,{className:`psb-group`,children:[e.lead.map((e,t)=>y(e,`l${t}`)),e.word&&(0,m.jsxs)(`span`,{className:`psb-token`,"data-pos":e.word.pos,"data-dim":!!v&&e.word.pos!==v||void 0,title:e.word.note?`${e.word.word} — ${e.word.note}`:void 0,children:[(0,m.jsxs)(`span`,{className:`psb-word`,children:[e.word.word,e.word.noteIdx!==void 0&&(0,m.jsx)(`sup`,{className:`psb-note-mark`,"aria-hidden":`true`,children:e.word.noteIdx})]}),e.word.pos&&(0,m.jsx)(`span`,{className:`psb-abbr`,"aria-hidden":`true`,children:W[e.word.pos]})]}),e.trail.map((e,t)=>y(e,`t${t}`))]},t))}):o?(0,m.jsx)(`p`,{className:`psb-plain`,children:o}):(0,m.jsx)(`div`,{className:`psb-empty`,children:`Nothing to break down yet.`}),s&&(0,m.jsx)(`div`,{className:`psb-translation`,children:s}),f.length>0&&(0,m.jsx)(`div`,{className:`psb-legend`,role:`group`,"aria-label":`Word classes in this sentence`,children:f.map(({pos:e,count:t})=>(0,m.jsxs)(`button`,{type:`button`,className:`psb-leg`,"data-pos":e,"aria-pressed":v===e,onClick:()=>_(t=>t===e?null:e),title:v===e?`Show every word`:`Spotlight every ${e}`,children:[(0,m.jsx)(`span`,{className:`psb-leg-dot`,"aria-hidden":`true`}),e,t>1&&(0,m.jsxs)(`span`,{className:`psb-leg-n`,children:[`×`,t]})]},e))}),h.length>0&&(0,m.jsx)(`ul`,{className:`psb-notes`,children:h.map(e=>(0,m.jsxs)(`li`,{className:`psb-note`,children:[(0,m.jsx)(`sup`,{className:`psb-note-num`,children:e.noteIdx}),(0,m.jsxs)(`span`,{className:`psb-note-text`,children:[(0,m.jsx)(`span`,{className:`psb-note-word`,children:e.word}),` — `,e.note]})]},e.noteIdx))}),c&&(0,m.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(c)})]})}function xe({title:e,icon:t=`globe`,iconColor:n=`var(--presence)`,commonName:r,scientificName:s,image:c,marks:l,lookalikes:u,status:d,caption:p,footer:h,delay:g}){let _=i[t]??i.globe,v=f(c?.from,`var(--presence-deep)`),y=f(c?.to,`var(--presence-soft)`),b=o(c?.src),x=l??[],S=u??[];return(0,m.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(g??0)+`ms`},children:[e&&(0,m.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,m.jsx)(_,{className:`ic`,style:{color:n}}),` `,e]}),(0,m.jsxs)(`div`,{className:`sp-banner`,style:{background:`linear-gradient(150deg, ${v}, ${y})`},children:[b&&(0,m.jsx)(`img`,{className:`me-img-fill`,src:b,alt:``,loading:`lazy`,decoding:`async`,referrerPolicy:`no-referrer`,onError:e=>{e.currentTarget.style.display=`none`}}),d&&(0,m.jsx)(`span`,{className:`sp-status`,children:d})]}),(0,m.jsx)(`div`,{className:`sp-common`,"data-mark":`underline`,children:r}),s&&(0,m.jsx)(`div`,{className:`sp-scientific`,children:s}),p&&(0,m.jsx)(`div`,{className:`sp-caption`,children:p}),x.length>0&&(0,m.jsx)(`div`,{className:`sp-marks`,children:x.map((e,t)=>(0,m.jsxs)(`div`,{className:`sp-mark`,children:[(0,m.jsx)(`span`,{className:`sp-mark-label`,children:e.label}),(0,m.jsx)(`span`,{className:`sp-mark-value`,children:e.value})]},t))}),S.length>0&&(0,m.jsxs)(`div`,{className:`sp-lookalikes`,children:[(0,m.jsxs)(`span`,{className:`sp-lookalikes-k`,children:[(0,m.jsx)(i.layers,{className:`ic sp-lookalikes-ic`}),` Easily confused with`]}),(0,m.jsx)(`ul`,{className:`sp-lookalike-list`,children:S.map((e,t)=>(0,m.jsx)(`li`,{className:`sp-lookalike`,children:e},t))})]}),h&&(0,m.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(h)})]})}function Se({title:e,icon:t=`table`,iconColor:n=`var(--presence)`,terms:r,footer:o,delay:s}){let c=i[t]??i.table,l=e=>typeof e==`string`&&e.trim()?e.trim():`—`,{rows:u,langs:d}=(0,p.useMemo)(()=>{let e=r??[],t=[],n=new Set;return{rows:e.map(e=>{let r=new Map;for(let i of e.translations??[]){if(!i||typeof i!=`object`)continue;let e=l(i.lang);n.has(e)||(n.add(e),t.push(e)),r.has(e)||r.set(e,i)}return{term:e,cells:r}}),langs:t}},[r]),f=e=>{if(e===`preferred`)return`var(--insight)`;if(e===`deprecated`)return`var(--warning)`;if(e===`avoid`)return`var(--danger)`};return(0,m.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(s??0)+`ms`},children:[(0,m.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,m.jsx)(c,{className:`ic`,style:{color:n}}),` `,e]}),u.length===0?(0,m.jsx)(`div`,{className:`tb-empty`,children:`No terms yet.`}):d.length===0?(0,m.jsx)(`ul`,{className:`tb-flat`,children:u.map(({term:e},t)=>(0,m.jsx)(`li`,{className:`tb-flat-term m-stagger-item m-fade-rise`,style:{"--i":t},children:e.term},t))}):(0,m.jsx)(`div`,{className:`tb-wrap`,children:(0,m.jsxs)(`table`,{className:`tb-table`,children:[(0,m.jsx)(`thead`,{children:(0,m.jsxs)(`tr`,{children:[(0,m.jsx)(`th`,{scope:`col`,children:`Term`}),d.map(e=>(0,m.jsx)(`th`,{scope:`col`,children:e},e))]})}),(0,m.jsx)(`tbody`,{children:u.map(({term:e,cells:t},n)=>(0,m.jsxs)(`tr`,{className:`m-stagger-item m-fade-rise`,style:{"--i":n},children:[(0,m.jsx)(`td`,{className:`tb-term-col`,children:e.term}),d.map(e=>{let n=t.get(e),r=n&&typeof n.text==`string`?n.text:``,i=f(n?.status);return(0,m.jsx)(`td`,{className:`tb-cell`,children:r?(0,m.jsxs)(`span`,{className:`tb-cell-text`,children:[i&&(0,m.jsx)(`span`,{className:`tb-dot`,style:{"--tb-c":i},title:n?.status}),r]}):(0,m.jsx)(`span`,{className:`tb-dash`,children:`—`})},e)})]},n))})]})}),o&&(0,m.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(o)})]})}var G={whale:{w:240,h:70,orient:`horizontal`},bus:{w:200,h:90,orient:`horizontal`},generic:{w:90,h:70,orient:`horizontal`},human:{w:40,h:100,orient:`vertical`},building:{w:70,h:160,orient:`vertical`}};function Ce(e){return typeof e==`string`&&e in G}function we(e){let t=(0,O.c)(21),n,r;t[0]===e?(n=t[1],r=t[2]):({shape:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i=G[n],a=`0 0 ${i.w} ${i.h}`,o;t[3]===n?o=t[4]:(o=n===`human`&&(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(`circle`,{cx:`20`,cy:`11`,r:`10`}),(0,m.jsx)(`path`,{d:`M8 30 Q20 22 32 30 L34 62 Q27 68 20 68 Q13 68 6 62 Z`}),(0,m.jsx)(`path`,{d:`M11 66 L8 100 L17 100 L19 70 Z`}),(0,m.jsx)(`path`,{d:`M29 66 L32 100 L23 100 L21 70 Z`})]}),t[3]=n,t[4]=o);let s;t[5]===n?s=t[6]:(s=n===`bus`&&(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(`path`,{d:`M6 20 Q6 8 18 8 H172 Q188 8 188 24 V58 Q188 66 180 66 H16 Q6 66 6 56 Z`}),(0,m.jsx)(`rect`,{x:`18`,y:`17`,width:`152`,height:`19`,rx:`3`,className:`szc-glyph-cut`,fill:`var(--surface-elevated)`}),(0,m.jsx)(`circle`,{cx:`46`,cy:`70`,r:`13`}),(0,m.jsx)(`circle`,{cx:`154`,cy:`70`,r:`13`})]}),t[5]=n,t[6]=s);let c;t[7]===n?c=t[8]:(c=n===`whale`&&(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(`path`,{d:`M4 40 C4 20 40 10 100 9 C170 8 210 20 224 32 L236 26 L232 42 L236 56 L224 50 C214 60 170 66 100 65 C40 64 4 56 4 40 Z`}),(0,m.jsx)(`path`,{d:`M60 12 C64 2 76 2 78 12 C72 14 66 14 60 12 Z`}),(0,m.jsx)(`path`,{d:`M18 46 C22 54 34 56 40 50 C34 46 24 44 18 46 Z`})]}),t[7]=n,t[8]=c);let l;t[9]===n?l=t[10]:(l=n===`building`&&(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(`rect`,{x:`10`,y:`6`,width:`50`,height:`154`,rx:`2`}),Array.from({length:8},Te)]}),t[9]=n,t[10]=l);let u;t[11]===n?u=t[12]:(u=n===`generic`&&(0,m.jsx)(`path`,{d:`M8 55 Q2 30 28 18 Q46 4 66 14 Q86 22 82 42 Q90 52 78 58 Q55 68 30 64 Q12 62 8 55 Z`}),t[11]=n,t[12]=u);let d;return t[13]!==r||t[14]!==a||t[15]!==o||t[16]!==s||t[17]!==c||t[18]!==l||t[19]!==u?(d=(0,m.jsxs)(`svg`,{viewBox:a,preserveAspectRatio:`xMidYMax meet`,fill:`currentColor`,"aria-hidden":`true`,...r,children:[o,s,c,l,u]}),t[13]=r,t[14]=a,t[15]=o,t[16]=s,t[17]=c,t[18]=l,t[19]=u,t[20]=d):d=t[20],d}function Te(e,t){return Array.from({length:3},(e,n)=>(0,m.jsx)(`rect`,{x:17+n*13,y:16+t*17,width:`8`,height:`9`,rx:`1`,className:`szc-glyph-cut`,fill:`var(--surface-elevated)`},`${t}-${n}`))}var Ee=190,K=16;function De(e,t){if(typeof e!=`number`||!Number.isFinite(e))return`—`;let n=e.toLocaleString(void 0,{maximumFractionDigits:2});return t?`${n} ${t}`:n}function Oe({title:e,icon:t=`layers`,iconColor:n=`var(--presence)`,unit:r,subjects:o,footer:s,delay:c}){let l=i[t]??i.layers,u=o??[],d=u.reduce((e,t)=>{let n=typeof t.length==`number`&&Number.isFinite(t.length)?t.length:-1/0;return n>e?n:e},0),f=d>0?Ee/d:0,p=u.map(e=>{let t=Ce(e.shape)?e.shape:`generic`,n=G[t],r=typeof e.length==`number`&&Number.isFinite(e.length)&&e.length>0&&f>0?Math.max(e.length*f,K):K;return{subject:e,shape:t,width:n.orient===`horizontal`?r:r*(n.w/n.h),height:n.orient===`vertical`?r:r*(n.h/n.w)}}),h=Math.max(...p.map(e=>e.height),K);return(0,m.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(c??0)+`ms`},children:[(0,m.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,m.jsx)(l,{className:`ic`,style:{color:n}}),` `,e]}),p.length===0?(0,m.jsx)(`div`,{className:`szc-empty`,children:`No subjects yet.`}):(0,m.jsx)(`div`,{className:`szc-scroll`,children:(0,m.jsx)(`div`,{className:`szc-row`,style:{"--szc-track-h":h+`px`},children:p.map(({subject:e,shape:t,width:i,height:a},o)=>(0,m.jsxs)(`div`,{className:`szc-item m-stagger-item m-scale-in`,style:{"--i":o,color:n},children:[(0,m.jsx)(`div`,{className:`szc-shape-box`,children:(0,m.jsx)(we,{shape:t,style:{width:i,height:a}})}),(0,m.jsx)(`div`,{className:`szc-item-label`,...o===0?{"data-mark":`underline`}:{},children:e.label}),(0,m.jsx)(`div`,{className:`szc-item-value`,children:De(e.length,r)})]},o))})}),s&&(0,m.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(s)})]})}function ke(e){let t=Array.from(e),n=t.length;return t.map((e,t)=>({ch:e,group:Math.floor((n-1-t)/4)}))}function Ae({title:e,icon:t=`chart`,iconColor:n=`var(--presence)`,value:r,bases:o,footer:s,delay:c}){let l=i[t]??i.chart,u=o??[],d=typeof r==`string`||typeof r==`number`?String(r):``;return(0,m.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(c??0)+`ms`},children:[(0,m.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,m.jsx)(l,{className:`ic`,style:{color:n}}),` `,e]}),d&&(0,m.jsx)(`div`,{className:`bcv-value`,"data-mark":`underline`,children:d}),u.length>0?(0,m.jsx)(`div`,{className:`bcv-rows`,children:u.map((e,t)=>{let n=typeof e.digits==`string`?e.digits.trim():``,r=typeof e.radix==`number`&&Number.isFinite(e.radix)?e.radix:null;return(0,m.jsxs)(`div`,{className:`bcv-row m-stagger-item m-fade-rise`,style:{"--i":t},children:[(0,m.jsxs)(`div`,{className:`bcv-row-head`,children:[(0,m.jsx)(`span`,{className:`bcv-label`,children:e.label}),r!==null&&(0,m.jsxs)(`span`,{className:`bcv-radix`,children:[`base `,r]})]}),n?(0,m.jsx)(`div`,{className:`bcv-digits`,children:ke(n).map((e,t)=>(0,m.jsx)(`span`,{className:`bcv-digit`,"data-group":e.group%2==0?`a`:`b`,children:e.ch},t))}):(0,m.jsx)(`span`,{className:`bcv-dash`,children:`—`})]},t)})}):(0,m.jsx)(`div`,{className:`bcv-empty`,children:`No bases yet.`}),s&&(0,m.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(s)})]})}function je(e){let t=e.trim().split(/\s+/).filter(Boolean);return t.length===0?`?`:t.length===1?t[0][0]?.toUpperCase()??`?`:((t[0][0]??``)+(t[t.length-1][0]??``)).toUpperCase()}function Me(e){return typeof e==`string`&&e.trim()||typeof e==`number`&&Number.isFinite(e)?String(e):`—`}function Ne({title:e,icon:t=`doc`,iconColor:n=`var(--presence)`,name:r,era:o,born:s,died:c,knownFor:l,facts:u,lifeEvents:d,legacy:f,footer:p,delay:h}){let g=i[t]??i.doc,_=u??[],v=d??[];return(0,m.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(h??0)+`ms`},children:[(0,m.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,m.jsx)(g,{className:`ic`,style:{color:n}}),` `,e]}),(0,m.jsxs)(`div`,{className:`hp-head`,children:[(0,m.jsx)(`div`,{className:`hp-medallion`,"aria-hidden":`true`,children:je(r)}),(0,m.jsxs)(`div`,{className:`hp-headline`,children:[(0,m.jsx)(`div`,{className:`hp-name`,"data-mark":`underline`,children:r}),o&&(0,m.jsx)(`div`,{className:`hp-era`,children:o}),l&&(0,m.jsx)(`div`,{className:`hp-known`,children:l})]})]}),(s||c)&&(0,m.jsxs)(`div`,{className:`hp-dates`,children:[s&&(0,m.jsxs)(`div`,{className:`hp-date`,children:[(0,m.jsx)(`span`,{className:`hp-date-k`,children:`Born`}),(0,m.jsx)(`span`,{className:`hp-date-v`,children:s})]}),c&&(0,m.jsxs)(`div`,{className:`hp-date`,children:[(0,m.jsx)(`span`,{className:`hp-date-k`,children:`Died`}),(0,m.jsx)(`span`,{className:`hp-date-v`,children:c})]})]}),v.length>0&&(0,m.jsx)(`div`,{className:`hp-beats`,children:v.map((e,t)=>(0,m.jsxs)(`div`,{className:`hp-beat m-stagger-item m-fade-rise`,style:{"--i":t},children:[(0,m.jsx)(`span`,{className:`hp-beat-year`,children:Me(e.year)}),(0,m.jsx)(`span`,{className:`hp-beat-label`,children:e.label})]},t))}),_.length>0&&(0,m.jsx)(`div`,{className:`hp-facts`,children:_.map((e,t)=>(0,m.jsxs)(`div`,{className:`hp-fact-row`,children:[(0,m.jsx)(`span`,{className:`hp-fact-label`,children:e.label}),(0,m.jsx)(`span`,{className:`hp-fact-value`,children:e.value})]},t))}),f&&(0,m.jsx)(`div`,{className:`hp-legacy`,children:f}),p&&(0,m.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(p)})]})}function q(e){return typeof e==`string`&&e.trim()||typeof e==`number`&&Number.isFinite(e)?String(e):`—`}function Pe({title:e,icon:t=`clock`,iconColor:n=`var(--presence)`,date:r,events:o,born:s,died:c,footer:l,delay:u}){let d=i[t]??i.clock,f=o??[],p=s??[],h=c??[];return(0,m.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(u??0)+`ms`},children:[(0,m.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,m.jsx)(d,{className:`ic`,style:{color:n}}),` `,e]}),(0,m.jsx)(`div`,{className:`otd-date`,children:r}),f.length>0?(0,m.jsx)(`div`,{className:`otd-events`,children:f.map((e,t)=>(0,m.jsxs)(`div`,{className:`otd-event m-stagger-item m-fade-rise`,style:{"--i":t},children:[(0,m.jsx)(`span`,{className:`otd-year-chip`,children:q(e.year)}),(0,m.jsxs)(`div`,{className:`otd-event-body`,children:[(0,m.jsx)(`div`,{className:`otd-label`,...t===0?{"data-mark":`underline`}:{},children:e.label}),e.category&&(0,m.jsx)(`span`,{className:`otd-cat`,children:e.category})]})]},t))}):(0,m.jsx)(`div`,{className:`otd-empty`,children:`No events yet.`}),(p.length>0||h.length>0)&&(0,m.jsxs)(`div`,{className:`otd-people`,children:[p.length>0&&(0,m.jsxs)(`div`,{className:`otd-people-col`,children:[(0,m.jsx)(`span`,{className:`otd-people-k`,children:`Born`}),p.map((e,t)=>(0,m.jsxs)(`div`,{className:`otd-person`,children:[(0,m.jsx)(`span`,{className:`otd-person-year`,children:q(e.year)}),(0,m.jsx)(`span`,{className:`otd-person-name`,children:e.name})]},t))]}),h.length>0&&(0,m.jsxs)(`div`,{className:`otd-people-col`,children:[(0,m.jsx)(`span`,{className:`otd-people-k`,children:`Died`}),h.map((e,t)=>(0,m.jsxs)(`div`,{className:`otd-person`,children:[(0,m.jsx)(`span`,{className:`otd-person-year`,children:q(e.year)}),(0,m.jsx)(`span`,{className:`otd-person-name`,children:e.name})]},t))]})]}),l&&(0,m.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(l)})]})}function Fe({title:e,icon:t=`globe`,iconColor:n=`var(--presence)`,name:r,flag:o,capital:s,population:c,area:l,officialLanguages:u,currency:d,facts:f,footer:p,delay:h}){let g=i[t]??i.globe,_=Array.isArray(f)?f:[],v=(Array.isArray(u)?u:[]).filter(e=>typeof e==`string`&&e.trim().length>0),y=[{label:`Capital`,value:s},{label:`Population`,value:c},{label:`Area`,value:l},{label:`Currency`,value:d}].filter(e=>typeof e.value==`string`&&!!e.value);return(0,m.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(h??0)+`ms`},children:[e&&(0,m.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,m.jsx)(g,{className:`ic`,style:{color:n}}),` `,e]}),(0,m.jsx)(`div`,{className:`cc-banner`,children:(0,m.jsx)(`span`,{className:`cc-flag`,role:`img`,"aria-label":`Flag of ${r}`,children:typeof o==`string`&&o.trim()?o:`🌐`})}),(0,m.jsx)(`div`,{className:`cc-name`,"data-mark":`underline`,children:r}),y.length>0&&(0,m.jsx)(`div`,{className:`cc-marks`,children:y.map((e,t)=>(0,m.jsxs)(`div`,{className:`cc-mark`,children:[(0,m.jsx)(`span`,{className:`cc-mark-label`,children:e.label}),(0,m.jsx)(`span`,{className:`cc-mark-value`,children:e.value})]},t))}),v.length>0&&(0,m.jsx)(`div`,{className:`cc-langs`,children:v.map((e,t)=>(0,m.jsx)(`span`,{className:`cc-lang-chip`,children:e},t))}),_.length>0&&(0,m.jsx)(`div`,{className:`cc-facts`,children:_.map((e,t)=>(0,m.jsxs)(`div`,{className:`cc-fact-row`,children:[(0,m.jsx)(`span`,{className:`cc-fact-label`,children:e.label}),(0,m.jsx)(`span`,{className:`cc-fact-value`,children:e.value})]},t))}),p&&(0,m.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(p)})]})}function Ie({title:e,icon:t=`globe`,iconColor:n=`var(--presence)`,countries:r,footer:o,delay:s}){let c=i[t]??i.globe,l=Array.isArray(r)?r:[];return(0,m.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(s??0)+`ms`},children:[(0,m.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,m.jsx)(c,{className:`ic`,style:{color:n}}),` `,e]}),l.length===0?(0,m.jsx)(`div`,{className:`wg-empty`,children:`No countries yet.`}):(0,m.jsx)(`div`,{className:`wg-grid`,children:l.map((e,t)=>(0,m.jsxs)(`div`,{className:`wg-tile m-stagger-item m-scale-in`,style:{"--i":t},children:[(0,m.jsx)(`span`,{className:`wg-flag`,role:`img`,"aria-label":`Flag of ${e.name}`,children:typeof e.flag==`string`&&e.flag.trim()?e.flag:`🌐`}),(0,m.jsx)(`div`,{className:`wg-name`,children:e.name}),e.capital&&(0,m.jsxs)(`div`,{className:`wg-row`,children:[(0,m.jsx)(`span`,{className:`wg-row-k`,children:`Capital`}),(0,m.jsx)(`span`,{className:`wg-row-v`,children:e.capital})]}),e.currency&&(0,m.jsxs)(`div`,{className:`wg-row`,children:[(0,m.jsx)(`span`,{className:`wg-row-k`,children:`Currency`}),(0,m.jsx)(`span`,{className:`wg-row-v`,children:e.currency})]}),e.language&&(0,m.jsxs)(`div`,{className:`wg-row`,children:[(0,m.jsx)(`span`,{className:`wg-row-k`,children:`Language`}),(0,m.jsx)(`span`,{className:`wg-row-v`,children:e.language})]})]},t))}),o&&(0,m.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(o)})]})}var J=[`var(--presence)`,`var(--danger)`,`var(--warning)`,`var(--text-muted)`],Le=new Set(J);function Re(e,t){return typeof e.color==`string`&&Le.has(e.color)?e.color:J[t%J.length]}function Y({title:e,icon:t=`shield`,iconColor:n=`var(--danger)`,dates:r,sides:o,keyBattles:s,casualties:c,outcome:l,footer:u,delay:d}){let f=i[t]??i.shield,p=Array.isArray(o)?o:[],h=Array.isArray(s)?s:[];return(0,m.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(d??0)+`ms`},children:[(0,m.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,m.jsx)(f,{className:`ic`,style:{color:n}}),` `,e]}),r&&(0,m.jsx)(`div`,{className:`wc-dates`,children:r}),p.length>0&&(0,m.jsx)(`div`,{className:`wc-sides`,children:p.map((e,t)=>{let n=Re(e,t),r=Array.isArray(e.leaders)?e.leaders:[];return(0,m.jsxs)(`div`,{className:`wc-side m-stagger-item m-fade-rise`,style:{"--i":t,"--wc-c":n},children:[(0,m.jsx)(`div`,{className:`wc-side-name`,children:e.name}),r.length>0&&(0,m.jsx)(`ul`,{className:`wc-leaders`,children:r.filter(e=>typeof e==`string`&&e.trim().length>0).map((e,t)=>(0,m.jsx)(`li`,{className:`wc-leader`,children:e},t))})]},t)})}),h.length>0&&(0,m.jsx)(`div`,{className:`wc-battles`,children:h.map((e,t)=>(0,m.jsxs)(`div`,{className:`wc-battle`,children:[(0,m.jsx)(`span`,{className:`wc-battle-dot`,"aria-hidden":`true`}),(0,m.jsx)(`span`,{className:`wc-battle-label`,children:e.label}),e.at&&(0,m.jsx)(`span`,{className:`wc-battle-at`,children:e.at})]},t))}),c&&(0,m.jsxs)(`div`,{className:`wc-stat-row`,children:[(0,m.jsx)(`span`,{className:`wc-stat-k`,children:`Casualties`}),(0,m.jsx)(`span`,{className:`wc-stat-v`,children:c})]}),l&&(0,m.jsx)(`div`,{className:`wc-outcome`,children:l}),u&&(0,m.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(u)})]})}var X=[`var(--presence)`,`var(--insight)`,`var(--warning)`,`var(--text-muted)`],ze=new Set([`var(--presence)`,`var(--presence-soft)`,`var(--presence-deep)`,`var(--insight)`,`var(--insight-soft)`,`var(--warning)`,`var(--warning-soft)`,`var(--danger)`,`var(--text-muted)`]);function Be(e,t){return typeof e.color==`string`&&ze.has(e.color)?e.color:X[t%X.length]}var Z=3;function Ve(e){return e<=Z?Math.max(e,1):Math.ceil(e/Math.ceil(e/Z))}function Q(e){return typeof e==`string`&&e.trim().length>0}function He({title:e,icon:t=`proof`,iconColor:n=`var(--presence)`,terms:r,discriminator:o,discriminatorLabel:s,commonMistake:c,footer:l,delay:u}){let d=i[t]??i.proof,f=(Array.isArray(r)?r:[]).filter(e=>!!e&&Q(e.term)),p=Ve(f.length),h=Q(o),g=Q(s)?s:`The test`;return(0,m.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(u??0)+`ms`},children:[(0,m.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,m.jsx)(d,{className:`ic`,style:{color:n}}),` `,e]}),f.length>0&&(0,m.jsx)(`div`,{className:`dcd-terms`,style:{"--dcd-cols":p,"--dcd-cols-narrow":Math.min(p,2)},children:f.map((e,t)=>(0,m.jsxs)(`div`,{className:`dcd-term m-stagger-item m-fade-rise`,style:{"--i":t,"--dcd-c":Be(e,t)},children:[(0,m.jsxs)(`div`,{className:`dcd-term-head`,children:[(0,m.jsx)(`span`,{className:`dcd-term-name`,children:e.term}),Q(e.tag)&&(0,m.jsx)(`span`,{className:`dcd-term-tag`,children:e.tag})]}),Q(e.gist)&&(0,m.jsx)(`p`,{className:`dcd-gist`,children:e.gist}),Q(e.example)&&(0,m.jsxs)(`p`,{className:`dcd-example`,children:[(0,m.jsx)(`span`,{className:`dcd-example-k`,children:`e.g.`}),e.example]})]},t))}),h&&(0,m.jsxs)(`div`,{className:`dcd-rule m-stagger-item m-fade-rise`,style:{"--i":f.length},children:[(0,m.jsxs)(`div`,{className:`dcd-rule-label`,children:[(0,m.jsx)(i.spark,{className:`ic`,"aria-hidden":`true`}),g]}),(0,m.jsx)(`p`,{className:`dcd-rule-text`,"data-mark":`underline`,children:o})]}),Q(c)&&(0,m.jsxs)(`p`,{className:`dcd-mistake`,children:[(0,m.jsx)(i.alert,{className:`ic`,"aria-hidden":`true`}),(0,m.jsxs)(`span`,{className:`dcd-mistake-text`,children:[(0,m.jsx)(`span`,{className:`dcd-mistake-k`,children:`Common slip `}),c]})]}),f.length===0&&!h&&(0,m.jsx)(`div`,{className:`dcd-empty`,children:`No terms to tell apart yet.`}),l&&(0,m.jsx)(`div`,{className:`insight-summary`,style:{marginTop:12},dangerouslySetInnerHTML:a(l)})]})}var Ue=e({referenceRegistry:()=>$}),$={factsheet:c(ee),newsdigest:c(re),dictionary:c(oe),translation:c(ie),pronunciation:c(ae),gloss:c(se),scalefelt:c(ce),hearit:c(F),ipachart:c(V),scriptstroke:c(me),phonicsword:c(ge),speciescard:c(xe),etymtree:c(D),hazardcard:c(ne),termbase:c(Se),sizecompare:c(Oe),baseconversion:c(Ae),historicalperson:c(Ne),onthisday:c(Pe),countrycard:c(Fe),worldgrid:c(Ie),warconflict:c(Y),posbreakdown:c(be),distinctioncard:c(He)};export{Ue as n,$ as t};
@@ -1 +1 @@
1
- import{r as e}from"./rolldown-runtime-DkW27tQK.js";import{t}from"./react-BZJXY1be.js";import{t as n}from"./jsx-runtime-DeHZSEgm.js";import{n as r}from"./icons-gLFQTv74.js";import{t as i}from"./useFocusTrap-CJmpNZv2.js";import{t as a}from"./richText-BkxJhl9N.js";import{t as o}from"./registry-types-D3q_LrlV.js";import{t as s}from"./portal-C2b5NoMN.js";var c=t(),l=n();function u({title:e,icon:t=`layers`,iconColor:n=`var(--presence)`,trigger:o=`Open dialog`,triggerIcon:u=`external`,description:d=`A centered modal dialog with a focus ring, backdrop, and Escape&#8209;to&#8209;close.`,heading:f=`Publish this version?`,body:p=`Publishing makes <strong>Revision 12</strong> the live version everyone sees. You can roll back to any earlier revision at any time.`,confirm:m=`Publish`,cancel:h=`Cancel`,color:g=`var(--presence)`,delay:_}){let v=r[t]||r.layers,y=r[u]||r.external,[b,x]=(0,c.useState)(!1),[S,C]=(0,c.useState)(!1),w=(0,c.useRef)(null);return i(w,{active:b}),(0,c.useEffect)(()=>{if(!b)return;let e=e=>{e.key===`Escape`&&x(!1)};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[b]),(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(_||0)+`ms`,"--ov-c":g},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(v,{className:`ic`,style:{color:n}}),` `,e]}),(0,l.jsxs)(`div`,{className:`ov-trigger-wrap`,children:[(0,l.jsxs)(`button`,{type:`button`,className:`ov-trigger`,onClick:()=>x(!0),children:[(0,l.jsx)(y,{className:`ic`}),` `,o]}),(0,l.jsx)(`p`,{className:`ov-desc`,dangerouslySetInnerHTML:a(S?`Published — <strong>Revision 12</strong> is now live.`:d)})]}),b&&(0,l.jsx)(s,{accent:g,children:(0,l.jsxs)(`div`,{className:`ov-portal`,children:[(0,l.jsx)(`div`,{className:`ov-backdrop`,onClick:()=>x(!1),role:`button`,tabIndex:0,"aria-label":`Close`,onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),x(!1))}}),(0,l.jsxs)(`div`,{className:`ov-dialog`,ref:w,tabIndex:-1,role:`dialog`,"aria-modal":`true`,"aria-label":f,children:[(0,l.jsxs)(`div`,{className:`ov-dialog-head`,children:[(0,l.jsx)(`div`,{className:`ov-dialog-title`,children:f}),(0,l.jsx)(`button`,{type:`button`,className:`ov-x`,"aria-label":`Close`,onClick:()=>x(!1),children:(0,l.jsx)(r.x,{className:`ic`})})]}),(0,l.jsx)(`div`,{className:`ov-dialog-body`,dangerouslySetInnerHTML:a(p)}),(0,l.jsxs)(`div`,{className:`ov-dialog-foot`,children:[(0,l.jsx)(`button`,{type:`button`,className:`ov-btn ghost`,onClick:()=>x(!1),children:h}),(0,l.jsx)(`button`,{type:`button`,className:`ov-btn solid`,onClick:()=>{C(!0),x(!1)},children:m})]})]})]})})]})}function d({title:e,icon:t=`alert`,iconColor:n=`var(--danger)`,trigger:i=`Delete project`,triggerIcon:o=`x`,description:u=`A destructive&#8209;action confirm with a warning badge, Cancel, and Confirm.`,heading:d=`Delete “Q3 Forecast”?`,body:f=`This permanently removes the project and all <strong>34 documents</strong> inside it. This action cannot be undone.`,alertIcon:p=`alert`,confirm:m=`Delete forever`,cancel:h=`Cancel`,color:g=`var(--danger)`,delay:_}){let v=r[t]||r.alert,y=r[o]||r.x,b=r[p]||r.alert,[x,S]=(0,c.useState)(!1),[C,w]=(0,c.useState)(!1);return(0,c.useEffect)(()=>{if(!x)return;let e=e=>e.key===`Escape`&&S(!1);return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[x]),(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(_||0)+`ms`,"--ov-c":g},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(v,{className:`ic`,style:{color:n}}),` `,e]}),(0,l.jsxs)(`div`,{className:`ov-trigger-wrap`,children:[(0,l.jsxs)(`button`,{type:`button`,className:`ov-trigger danger`+(C?` is-done`:``),onClick:()=>!C&&S(!0),children:[C?(0,l.jsx)(r.check,{className:`ic`}):(0,l.jsx)(y,{className:`ic`}),` `,C?`Deleted`:i]}),(0,l.jsx)(`p`,{className:`ov-desc`,dangerouslySetInnerHTML:a(C?`Project deleted. <strong>34 documents</strong> removed.`:u)})]}),x&&(0,l.jsx)(s,{accent:g,children:(0,l.jsxs)(`div`,{className:`ov-portal`,children:[(0,l.jsx)(`div`,{className:`ov-backdrop`,onClick:()=>S(!1),role:`button`,tabIndex:0,"aria-label":`Close`,onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),S(!1))}}),(0,l.jsxs)(`div`,{className:`ov-dialog ov-alert`,role:`alertdialog`,"aria-modal":`true`,"aria-label":d,children:[(0,l.jsx)(`div`,{className:`ov-alert-badge`,children:(0,l.jsx)(b,{className:`ic`})}),(0,l.jsx)(`div`,{className:`ov-dialog-title ov-alert-title`,children:d}),(0,l.jsx)(`div`,{className:`ov-dialog-body ov-alert-body`,dangerouslySetInnerHTML:a(f)}),(0,l.jsxs)(`div`,{className:`ov-dialog-foot`,children:[(0,l.jsx)(`button`,{type:`button`,className:`ov-btn ghost`,onClick:()=>S(!1),children:h}),(0,l.jsxs)(`button`,{type:`button`,className:`ov-btn solid danger`,onClick:()=>{w(!0),S(!1)},children:[(0,l.jsx)(r.x,{className:`ic`}),` `,m]})]})]})]})})]})}var f=[{label:`Status`,value:`In review`,icon:`clock`},{label:`Owner`,value:`Maya Chen`,icon:`mail`},{label:`Pages`,value:`24`,icon:`doc`},{label:`Last edited`,value:`2h ago`,icon:`edit`},{label:`Visibility`,value:`Team`,icon:`eye`},{label:`Sources`,value:`8 linked`,icon:`link`},{label:`Confidence`,value:`Strong`,icon:`shield`}];function p({title:e,icon:t=`layers`,iconColor:n=`var(--presence)`,trigger:o=`View details`,triggerIcon:u=`external`,description:d=`A right&#8209;side drawer slides in with a header, scrollable body, and footer.`,heading:p=`Q3 Forecast.pdf`,subhead:m=`Document properties`,rows:h=f,confirm:g=`Open document`,cancel:_=`Close`,color:v=`var(--presence)`,delay:y}){let b=r[t]||r.layers,x=r[u]||r.external,[S,C]=(0,c.useState)(!1),w=(0,c.useRef)(null);return i(w,{active:S}),(0,c.useEffect)(()=>{if(!S)return;let e=e=>{e.key===`Escape`&&C(!1)};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[S]),(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(y||0)+`ms`,"--ov-c":v},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(b,{className:`ic`,style:{color:n}}),` `,e]}),(0,l.jsxs)(`div`,{className:`ov-trigger-wrap`,children:[(0,l.jsxs)(`button`,{type:`button`,className:`ov-trigger`,onClick:()=>C(!0),children:[(0,l.jsx)(x,{className:`ic`}),` `,o]}),(0,l.jsx)(`p`,{className:`ov-desc`,dangerouslySetInnerHTML:a(d)})]}),S&&(0,l.jsx)(s,{accent:v,children:(0,l.jsxs)(`div`,{className:`ov-portal`,children:[(0,l.jsx)(`div`,{className:`ov-backdrop`,onClick:()=>C(!1),role:`button`,tabIndex:0,"aria-label":`Close`,onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),C(!1))}}),(0,l.jsxs)(`div`,{className:`ov-drawer`,ref:w,tabIndex:-1,role:`dialog`,"aria-modal":`true`,"aria-label":p,children:[(0,l.jsxs)(`div`,{className:`ov-drawer-head`,children:[(0,l.jsxs)(`div`,{className:`ov-drawer-titles`,children:[(0,l.jsx)(`div`,{className:`ov-drawer-sub`,children:m}),(0,l.jsx)(`div`,{className:`ov-drawer-title`,children:p})]}),(0,l.jsx)(`button`,{type:`button`,className:`ov-x`,"aria-label":`Close`,onClick:()=>C(!1),children:(0,l.jsx)(r.x,{className:`ic`})})]}),(0,l.jsx)(`div`,{className:`ov-drawer-body`,children:h.map(e=>{let t=e.icon?r[e.icon]:null;return(0,l.jsxs)(`div`,{className:`ov-drawer-row`,children:[(0,l.jsxs)(`span`,{className:`ov-drawer-row-l`,children:[t&&(0,l.jsx)(t,{className:`ic`}),` `,e.label]}),(0,l.jsx)(`span`,{className:`ov-drawer-row-v`,children:e.value})]},e.label)})}),(0,l.jsxs)(`div`,{className:`ov-drawer-foot`,children:[(0,l.jsx)(`button`,{type:`button`,className:`ov-btn ghost`,onClick:()=>C(!1),children:_}),(0,l.jsxs)(`button`,{type:`button`,className:`ov-btn solid`,onClick:()=>C(!1),children:[(0,l.jsx)(r.external,{className:`ic`}),` `,g]})]})]})]})})]})}var m=[{label:`Copy link`,icon:`link`,meta:`Anyone with the link`},{label:`Share to team`,icon:`share`,meta:`12 members`,selected:!0},{label:`Email a copy`,icon:`mail`},{label:`Export as PDF`,icon:`export`}];function h({title:e,icon:t=`share`,iconColor:n=`var(--presence)`,trigger:i=`Share`,triggerIcon:o=`share`,description:u=`A bottom sheet slides up with a grabber handle — mobile&#8209;style.`,heading:d=`Share this report`,subhead:f=`Choose how you want to send it`,options:p=m,color:h=`var(--presence)`,delay:g}){let _=r[t]||r.share,v=r[o]||r.share,[y,b]=(0,c.useState)(!1),x=Math.max(0,p.findIndex(e=>e.selected)),[S,C]=(0,c.useState)(x===-1?0:x);return(0,c.useEffect)(()=>{if(!y)return;let e=e=>e.key===`Escape`&&b(!1);return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[y]),(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(g||0)+`ms`,"--ov-c":h},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(_,{className:`ic`,style:{color:n}}),` `,e]}),(0,l.jsxs)(`div`,{className:`ov-trigger-wrap`,children:[(0,l.jsxs)(`button`,{type:`button`,className:`ov-trigger`,onClick:()=>b(!0),children:[(0,l.jsx)(v,{className:`ic`}),` `,i]}),(0,l.jsx)(`p`,{className:`ov-desc`,dangerouslySetInnerHTML:a(u)})]}),y&&(0,l.jsx)(s,{accent:h,children:(0,l.jsxs)(`div`,{className:`ov-portal`,children:[(0,l.jsx)(`div`,{className:`ov-backdrop`,onClick:()=>b(!1),role:`button`,tabIndex:0,"aria-label":`Close`,onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),b(!1))}}),(0,l.jsxs)(`div`,{className:`ov-sheet`,role:`dialog`,"aria-modal":`true`,"aria-label":d,children:[(0,l.jsx)(`div`,{className:`ov-sheet-grab`}),(0,l.jsxs)(`div`,{className:`ov-sheet-head`,children:[(0,l.jsx)(`div`,{className:`ov-sheet-title`,children:d}),(0,l.jsx)(`div`,{className:`ov-sheet-sub`,children:f})]}),(0,l.jsx)(`div`,{className:`ov-sheet-list`,children:p.map((e,t)=>{let n=e.icon?r[e.icon]:r.chevR;return(0,l.jsxs)(`button`,{type:`button`,className:`ov-sheet-opt`+(S===t?` on`:``),onClick:()=>C(t),children:[(0,l.jsx)(`span`,{className:`ov-sheet-opt-ic`,children:(0,l.jsx)(n,{className:`ic`})}),(0,l.jsxs)(`span`,{className:`ov-sheet-opt-meta`,children:[(0,l.jsx)(`span`,{className:`ov-sheet-opt-label`,children:e.label}),e.meta&&(0,l.jsx)(`span`,{className:`ov-sheet-opt-sub`,children:e.meta})]}),(0,l.jsx)(`span`,{className:`ov-sheet-radio`,children:S===t&&(0,l.jsx)(r.check,{className:`ic`})})]},e.label)})}),(0,l.jsxs)(`button`,{type:`button`,className:`ov-btn solid ov-sheet-cta`,onClick:()=>b(!1),children:[(0,l.jsx)(r.send,{className:`ic`}),` Continue`]})]})]})})]})}function g({title:e,icon:t=`bell`,iconColor:n=`var(--presence)`,trigger:i=`Notifications`,triggerIcon:o=`bell`,description:s=`An anchored panel opens beside the trigger with a pointer arrow.`,heading:u=`What's new`,body:d=`3 sources finished syncing and <strong>2 new findings</strong> are ready to review in your workspace.`,stat:f=`+2`,statLabel:p=`new findings`,action:m=`Review now`,color:h=`var(--presence)`,delay:g}){let _=r[t]||r.bell,v=r[o]||r.bell,[y,b]=(0,c.useState)(!1),x=(0,c.useRef)(null);return(0,c.useEffect)(()=>{if(!y)return;let e=e=>e.key===`Escape`&&b(!1),t=e=>{x.current&&!x.current.contains(e.target)&&b(!1)};return window.addEventListener(`keydown`,e),window.addEventListener(`mousedown`,t),()=>{window.removeEventListener(`keydown`,e),window.removeEventListener(`mousedown`,t)}},[y]),(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(g||0)+`ms`,"--ov-c":h},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(_,{className:`ic`,style:{color:n}}),` `,e]}),(0,l.jsxs)(`div`,{className:`ov-anchor`,ref:x,children:[(0,l.jsxs)(`button`,{type:`button`,className:`ov-trigger`+(y?` active`:``),"aria-expanded":y,onClick:()=>b(e=>!e),children:[(0,l.jsx)(v,{className:`ic`}),` `,i,(0,l.jsx)(`span`,{className:`ov-trigger-badge`,children:f})]}),(0,l.jsx)(`p`,{className:`ov-desc`,dangerouslySetInnerHTML:a(s)}),y&&(0,l.jsxs)(`div`,{className:`ov-pop`,role:`dialog`,"aria-label":u,children:[(0,l.jsx)(`div`,{className:`ov-pop-arrow`}),(0,l.jsx)(`div`,{className:`ov-pop-head`,children:u}),(0,l.jsxs)(`div`,{className:`ov-pop-stat`,children:[(0,l.jsx)(`span`,{className:`ov-pop-stat-val tab-num`,children:f}),(0,l.jsx)(`span`,{className:`ov-pop-stat-label`,children:p})]}),(0,l.jsx)(`div`,{className:`ov-pop-body`,dangerouslySetInnerHTML:a(d)}),(0,l.jsxs)(`button`,{type:`button`,className:`ov-pop-action`,onClick:()=>b(!1),children:[m,` `,(0,l.jsx)(r.chevR,{className:`ic`})]})]})]})]})}var _=[{label:`Reports`,value:`47`},{label:`Sources`,value:`312`},{label:`Followers`,value:`1.2k`}];function v({title:e,icon:t=`chat`,iconColor:n=`var(--presence)`,mention:i=`@maya.chen`,lead:o=`Reviewed and approved by `,name:s=`Maya Chen`,handle:u=`@maya.chen`,bio:d=`Lead research analyst. Covers macro &amp; market intelligence for the strategy team.`,avatar:f=`MC`,stats:p=_,action:m=`Follow`,color:h=`var(--presence)`,delay:g}){let v=r[t]||r.chat,[y,b]=(0,c.useState)(!1),[x,S]=(0,c.useState)(!1),C=(0,c.useRef)(null),w=()=>{C.current&&clearTimeout(C.current),C.current=setTimeout(()=>b(!0),320)},T=()=>{C.current&&clearTimeout(C.current),C.current=setTimeout(()=>b(!1),140)};return(0,c.useEffect)(()=>()=>{C.current&&clearTimeout(C.current)},[]),(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(g||0)+`ms`,"--ov-c":h},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(v,{className:`ic`,style:{color:n}}),` `,e]}),(0,l.jsxs)(`p`,{className:`ov-hc-lead`,children:[(0,l.jsx)(`span`,{dangerouslySetInnerHTML:a(o)}),(0,l.jsxs)(`span`,{className:`ov-hc-anchor`,onMouseEnter:w,onMouseLeave:T,children:[(0,l.jsx)(`button`,{type:`button`,className:`ov-mention`+(y?` active`:``),onClick:()=>b(e=>!e),children:i}),y&&(0,l.jsxs)(`span`,{className:`ov-hc-card`,role:`dialog`,"aria-label":s,onMouseEnter:w,onMouseLeave:T,children:[(0,l.jsxs)(`span`,{className:`ov-hc-top`,children:[(0,l.jsx)(`span`,{className:`ov-hc-avatar`,children:f}),(0,l.jsxs)(`span`,{className:`ov-hc-names`,children:[(0,l.jsx)(`span`,{className:`ov-hc-name`,children:s}),(0,l.jsx)(`span`,{className:`ov-hc-handle`,children:u})]}),(0,l.jsx)(`button`,{type:`button`,className:`ov-hc-follow`+(x?` on`:``),onClick:()=>S(e=>!e),children:x?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(r.check,{className:`ic`}),` Following`]}):m})]}),(0,l.jsx)(`span`,{className:`ov-hc-bio`,dangerouslySetInnerHTML:a(d)}),(0,l.jsx)(`span`,{className:`ov-hc-stats`,children:p.map(e=>(0,l.jsxs)(`span`,{className:`ov-hc-stat`,children:[(0,l.jsx)(`span`,{className:`ov-hc-stat-val tab-num`,children:e.value}),(0,l.jsx)(`span`,{className:`ov-hc-stat-label`,children:e.label})]},e.label))})]})]}),(0,l.jsx)(`span`,{children:` after a full source audit.`})]}),(0,l.jsx)(`p`,{className:`ov-desc ov-hc-hint`,children:`Hover the mention to preview the profile card.`})]})}var y=[{label:`Share`,icon:`share`,tip:`Share with your team`,placement:`top`},{label:`Export`,icon:`export`,tip:`Download as PDF or CSV`,placement:`bottom`},{label:`Sources`,icon:`link`,tip:`8 verified sources linked`,placement:`left`},{label:`Lock`,icon:`lock`,tip:`Restrict editing to owners`,placement:`right`}];function b({title:e,icon:t=`spark`,iconColor:n=`var(--presence)`,prompt:i=`Hover any control to see a placed tooltip.`,targets:o=y,color:s=`var(--presence)`,delay:u}){let d=r[t]||r.spark,[f,p]=(0,c.useState)(null);return(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(u||0)+`ms`,"--ov-c":s},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(d,{className:`ic`,style:{color:n}}),` `,e]}),(0,l.jsx)(`p`,{className:`ov-desc ov-tip-prompt`,dangerouslySetInnerHTML:a(i)}),(0,l.jsx)(`div`,{className:`ov-tip-grid`,children:o.map((e,t)=>{let n=e.icon?r[e.icon]:r.spark,i=e.placement||`top`;return(0,l.jsxs)(`div`,{className:`ov-tip-cell`,children:[(0,l.jsxs)(`button`,{type:`button`,className:`ov-tip-target`+(f===t?` on`:``),onMouseEnter:()=>p(t),onMouseLeave:()=>p(e=>e===t?null:e),onFocus:()=>p(t),onBlur:()=>p(e=>e===t?null:e),children:[(0,l.jsx)(n,{className:`ic`}),(0,l.jsx)(`span`,{children:e.label})]}),f===t&&(0,l.jsxs)(`span`,{className:`ov-tip-bubble place-`+i,role:`tooltip`,children:[e.tip,(0,l.jsx)(`span`,{className:`ov-tip-arrow`})]})]},e.label)})})]})}var x=[{label:`Edit report`,icon:`edit`,shortcut:`⌘E`},{label:`Duplicate`,icon:`layers`,shortcut:`⌘D`},{label:`Add to favorites`,icon:`spark`},{label:`Share`,icon:`share`,shortcut:`⌘⇧S`,separator:!0},{label:`Export PDF`,icon:`export`},{label:`Delete`,icon:`x`,danger:!0,separator:!0}];function S({title:e,icon:t=`layers`,iconColor:n=`var(--presence)`,trigger:i=`Options`,triggerIcon:o=`plus`,description:s=`A dropdown menu with icons, shortcut hints, separators, and a destructive item.`,menuLabel:u=`Q3 Forecast.pdf`,items:d=x,color:f=`var(--presence)`,delay:p}){let m=r[t]||r.layers,h=r[o]||r.plus,[g,_]=(0,c.useState)(!1),[v,y]=(0,c.useState)(null),b=(0,c.useRef)(null);return(0,c.useEffect)(()=>{if(!g)return;let e=e=>e.key===`Escape`&&_(!1),t=e=>{b.current&&!b.current.contains(e.target)&&_(!1)};return window.addEventListener(`keydown`,e),window.addEventListener(`mousedown`,t),()=>{window.removeEventListener(`keydown`,e),window.removeEventListener(`mousedown`,t)}},[g]),(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(p||0)+`ms`,"--ov-c":f},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(m,{className:`ic`,style:{color:n}}),` `,e]}),(0,l.jsxs)(`div`,{className:`ov-anchor`,ref:b,children:[(0,l.jsxs)(`button`,{type:`button`,className:`ov-trigger`+(g?` active`:``),"aria-haspopup":`menu`,"aria-expanded":g,onClick:()=>_(e=>!e),children:[(0,l.jsx)(h,{className:`ic`}),` `,i,(0,l.jsx)(r.chevR,{className:`ic ov-trigger-caret`+(g?` up`:``)})]}),(0,l.jsx)(`p`,{className:`ov-desc`,dangerouslySetInnerHTML:a(s)}),g&&(0,l.jsxs)(`div`,{className:`ov-menu`,role:`menu`,children:[u&&(0,l.jsx)(`div`,{className:`ov-menu-label`,children:u}),d.map((e,t)=>{let n=e.icon?r[e.icon]:null;return(0,l.jsxs)(`div`,{children:[e.separator&&(0,l.jsx)(`div`,{className:`ov-menu-sep`}),(0,l.jsxs)(`button`,{type:`button`,role:`menuitem`,className:`ov-menu-item`+(e.danger?` danger`:``)+(v===t?` on`:``),onMouseEnter:()=>y(t),onClick:()=>_(!1),children:[n&&(0,l.jsx)(n,{className:`ic ov-menu-ic`}),(0,l.jsx)(`span`,{className:`ov-menu-text`,children:e.label}),e.shortcut&&(0,l.jsx)(`kbd`,{className:`ov-kbd`,children:e.shortcut})]})]},e.label)})]})]})]})}var C=196,w=[{label:`Open`,icon:`external`,shortcut:`↵`},{label:`Rename`,icon:`edit`,shortcut:`F2`},{label:`Copy link`,icon:`link`,shortcut:`⌘C`},{label:`Download`,icon:`export`,separator:!0},{label:`Move to trash`,icon:`x`,danger:!0,separator:!0}];function T({title:e,icon:t=`table`,iconColor:n=`var(--presence)`,target:i=`Right-click this file`,targetIcon:o=`doc`,description:s=`Right&#8209;click (or click) the target to open a context menu at the pointer.`,items:u=w,color:d=`var(--presence)`,delay:f}){let p=r[t]||r.table,m=r[o]||r.doc,[h,g]=(0,c.useState)(null),[_,v]=(0,c.useState)(null),y=(0,c.useRef)(null),b=e=>{e.preventDefault();let t=y.current?.getBoundingClientRect(),n=t?Math.min(e.clientX-t.left,t.width-C):12,r=t?e.clientY-t.top:12;g({x:Math.max(8,n),y:Math.max(8,r)})};return(0,c.useEffect)(()=>{if(!h)return;let e=e=>e.key===`Escape`&&g(null),t=e=>{let t=y.current?.querySelector(`.ov-ctx`);t&&!t.contains(e.target)&&g(null)};return window.addEventListener(`keydown`,e),window.addEventListener(`mousedown`,t),()=>{window.removeEventListener(`keydown`,e),window.removeEventListener(`mousedown`,t)}},[h]),(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(f||0)+`ms`,"--ov-c":d},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(p,{className:`ic`,style:{color:n}}),` `,e]}),(0,l.jsxs)(`div`,{className:`ov-ctx-host`,ref:y,children:[(0,l.jsxs)(`button`,{type:`button`,className:`ov-ctx-zone`+(h?` active`:``),onContextMenu:b,onClick:b,children:[(0,l.jsx)(m,{className:`ic ov-ctx-zone-ic`}),(0,l.jsx)(`span`,{children:i})]}),h&&(0,l.jsx)(`div`,{className:`ov-ctx`,role:`menu`,style:{left:h.x,top:h.y,maxWidth:C},children:u.map((e,t)=>{let n=e.icon?r[e.icon]:null;return(0,l.jsxs)(`div`,{children:[e.separator&&(0,l.jsx)(`div`,{className:`ov-menu-sep`}),(0,l.jsxs)(`button`,{type:`button`,role:`menuitem`,className:`ov-menu-item`+(e.danger?` danger`:``)+(_===t?` on`:``),onMouseEnter:()=>v(t),onClick:()=>g(null),children:[n&&(0,l.jsx)(n,{className:`ic ov-menu-ic`}),(0,l.jsx)(`span`,{className:`ov-menu-text`,style:{whiteSpace:`nowrap`,overflow:`hidden`,textOverflow:`ellipsis`},children:e.label}),e.shortcut&&(0,l.jsx)(`kbd`,{className:`ov-kbd`,children:e.shortcut})]})]},e.label)})})]}),(0,l.jsx)(`p`,{className:`ov-desc`,dangerouslySetInnerHTML:a(s)})]})}var E=[{label:`Actions`,commands:[{label:`New report`,icon:`plus`,shortcut:`⌘N`,hint:`Start a blank canvas`},{label:`Import sources`,icon:`upload`,shortcut:`⌘I`},{label:`Share workspace`,icon:`share`}]},{label:`Navigate`,commands:[{label:`Go to dashboard`,icon:`chart`,shortcut:`G D`},{label:`Open documents`,icon:`doc`,shortcut:`G O`},{label:`Search sources`,icon:`globe`}]},{label:`Preferences`,commands:[{label:`Toggle theme`,icon:`moon`,shortcut:`⌘\\`},{label:`Notification settings`,icon:`bell`}]}];function D({title:e,icon:t=`spark`,iconColor:n=`var(--presence)`,trigger:o=`Search commands`,triggerIcon:u=`spark`,description:d=`A ⌘K command palette — search, ↑/↓ to highlight, Enter to run.`,placeholder:f=`Type a command or search…`,groups:p=E,color:m=`var(--presence)`,delay:h}){let g=r[t]||r.spark,_=r[u]||r.spark,[v,y]=(0,c.useState)(!1),[b,x]=(0,c.useState)(``),[S,C]=(0,c.useState)(0),w=(0,c.useRef)(null),T=(0,c.useRef)(null);i(T,{active:v});let D=(0,c.useMemo)(()=>p.flatMap(e=>e.commands.map(t=>({...t,group:e.label}))),[p]),O=(0,c.useMemo)(()=>{let e=b.trim().toLowerCase();return e?D.filter(t=>t.label.toLowerCase().includes(e)||(t.hint||``).toLowerCase().includes(e)):D},[D,b]),k=(0,c.useMemo)(()=>{let e=new Map;for(let t of O)e.has(t.group)||e.set(t.group,[]),e.get(t.group).push(t);return Array.from(e.entries())},[O]);(0,c.useEffect)(()=>{if(v){C(0);let e=setTimeout(()=>w.current?.focus(),30);return()=>clearTimeout(e)}},[v]),(0,c.useEffect)(()=>C(0),[b]),(0,c.useEffect)(()=>{if(!v)return;let e=e=>{e.key===`Escape`?y(!1):e.key===`ArrowDown`?(e.preventDefault(),C(e=>Math.max(0,Math.min(O.length-1,e+1)))):e.key===`ArrowUp`?(e.preventDefault(),C(e=>Math.max(0,e-1))):e.key===`Enter`&&(e.preventDefault(),y(!1))};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[v,O.length]);let A=-1;return(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(h||0)+`ms`,"--ov-c":m},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(g,{className:`ic`,style:{color:n}}),` `,e]}),(0,l.jsxs)(`div`,{className:`ov-trigger-wrap`,children:[(0,l.jsxs)(`button`,{type:`button`,className:`ov-trigger ov-ck-trigger`,onClick:()=>y(!0),children:[(0,l.jsx)(_,{className:`ic`}),` `,o,(0,l.jsx)(`kbd`,{className:`ov-kbd ov-ck-kbd`,children:`⌘K`})]}),(0,l.jsx)(`p`,{className:`ov-desc`,dangerouslySetInnerHTML:a(d)})]}),v&&(0,l.jsx)(s,{accent:m,children:(0,l.jsxs)(`div`,{className:`ov-portal`,children:[(0,l.jsx)(`div`,{className:`ov-backdrop`,onClick:()=>y(!1),role:`button`,tabIndex:0,"aria-label":`Close`,onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),y(!1))}}),(0,l.jsxs)(`div`,{className:`ov-ck`,ref:T,tabIndex:-1,role:`dialog`,"aria-modal":`true`,"aria-label":`Command palette`,children:[(0,l.jsxs)(`div`,{className:`ov-ck-search`,children:[(0,l.jsx)(r.globe,{className:`ic ov-ck-search-ic`}),(0,l.jsx)(`input`,{ref:w,className:`ov-ck-input`,placeholder:f,value:b,onChange:e=>x(e.target.value),spellCheck:!1}),(0,l.jsx)(`kbd`,{className:`ov-kbd`,children:`esc`})]}),(0,l.jsxs)(`div`,{className:`ov-ck-list`,children:[k.length===0&&(0,l.jsxs)(`div`,{className:`ov-ck-empty`,children:[`No commands match “`,(0,l.jsx)(`strong`,{children:b}),`”`]}),k.map(([e,t])=>(0,l.jsxs)(`div`,{className:`ov-ck-group`,children:[(0,l.jsx)(`div`,{className:`ov-ck-group-label`,children:e}),t.map(e=>{A+=1;let t=A,n=e.icon?r[e.icon]:r.chevR;return(0,l.jsxs)(`button`,{type:`button`,className:`ov-ck-item`+(S===t?` on`:``),onMouseEnter:()=>C(t),onClick:()=>y(!1),children:[(0,l.jsx)(`span`,{className:`ov-ck-item-ic`,children:(0,l.jsx)(n,{className:`ic`})}),(0,l.jsxs)(`span`,{className:`ov-ck-item-meta`,children:[(0,l.jsx)(`span`,{className:`ov-ck-item-label`,children:e.label}),e.hint&&(0,l.jsx)(`span`,{className:`ov-ck-item-hint`,children:e.hint})]}),e.shortcut&&(0,l.jsx)(`kbd`,{className:`ov-kbd`,children:e.shortcut}),(0,l.jsx)(r.chevR,{className:`ic ov-ck-item-go`})]},e.label)})]},e))]}),(0,l.jsxs)(`div`,{className:`ov-ck-foot`,children:[(0,l.jsxs)(`span`,{className:`ov-ck-foot-hint`,children:[(0,l.jsx)(`kbd`,{className:`ov-kbd`,children:`↑`}),(0,l.jsx)(`kbd`,{className:`ov-kbd`,children:`↓`}),` navigate`]}),(0,l.jsxs)(`span`,{className:`ov-ck-foot-hint`,children:[(0,l.jsx)(`kbd`,{className:`ov-kbd`,children:`↵`}),` select`]}),(0,l.jsxs)(`span`,{className:`ov-ck-foot-count`,children:[O.length,` commands`]})]})]})]})})]})}var O=e({overlaysRegistry:()=>k}),k={modal:o(u),confirmdialog:o(d),drawer:o(p),sheet:o(h),popover:o(g),hovercard:o(v),tooltip:o(b),menu:o(S),contextmenu:o(T),commandk:o(D)};export{O as n,k as t};
1
+ import{r as e}from"./rolldown-runtime-DkW27tQK.js";import{t}from"./react-BZJXY1be.js";import{t as n}from"./jsx-runtime-DeHZSEgm.js";import{n as r}from"./icons-gLFQTv74.js";import{t as i}from"./useFocusTrap-CJmpNZv2.js";import{t as a}from"./richText-BkxJhl9N.js";import{t as o}from"./registry-types-D3q_LrlV.js";import{t as s}from"./portal-Dpb34d3-.js";var c=t(),l=n();function u({title:e,icon:t=`layers`,iconColor:n=`var(--presence)`,trigger:o=`Open dialog`,triggerIcon:u=`external`,description:d=`A centered modal dialog with a focus ring, backdrop, and Escape&#8209;to&#8209;close.`,heading:f=`Publish this version?`,body:p=`Publishing makes <strong>Revision 12</strong> the live version everyone sees. You can roll back to any earlier revision at any time.`,confirm:m=`Publish`,cancel:h=`Cancel`,color:g=`var(--presence)`,delay:_}){let v=r[t]||r.layers,y=r[u]||r.external,[b,x]=(0,c.useState)(!1),[S,C]=(0,c.useState)(!1),w=(0,c.useRef)(null);return i(w,{active:b}),(0,c.useEffect)(()=>{if(!b)return;let e=e=>{e.key===`Escape`&&x(!1)};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[b]),(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(_||0)+`ms`,"--ov-c":g},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(v,{className:`ic`,style:{color:n}}),` `,e]}),(0,l.jsxs)(`div`,{className:`ov-trigger-wrap`,children:[(0,l.jsxs)(`button`,{type:`button`,className:`ov-trigger`,onClick:()=>x(!0),children:[(0,l.jsx)(y,{className:`ic`}),` `,o]}),(0,l.jsx)(`p`,{className:`ov-desc`,dangerouslySetInnerHTML:a(S?`Published — <strong>Revision 12</strong> is now live.`:d)})]}),b&&(0,l.jsx)(s,{accent:g,children:(0,l.jsxs)(`div`,{className:`ov-portal`,children:[(0,l.jsx)(`div`,{className:`ov-backdrop`,onClick:()=>x(!1),role:`button`,tabIndex:0,"aria-label":`Close`,onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),x(!1))}}),(0,l.jsxs)(`div`,{className:`ov-dialog`,ref:w,tabIndex:-1,role:`dialog`,"aria-modal":`true`,"aria-label":f,children:[(0,l.jsxs)(`div`,{className:`ov-dialog-head`,children:[(0,l.jsx)(`div`,{className:`ov-dialog-title`,children:f}),(0,l.jsx)(`button`,{type:`button`,className:`ov-x`,"aria-label":`Close`,onClick:()=>x(!1),children:(0,l.jsx)(r.x,{className:`ic`})})]}),(0,l.jsx)(`div`,{className:`ov-dialog-body`,dangerouslySetInnerHTML:a(p)}),(0,l.jsxs)(`div`,{className:`ov-dialog-foot`,children:[(0,l.jsx)(`button`,{type:`button`,className:`ov-btn ghost`,onClick:()=>x(!1),children:h}),(0,l.jsx)(`button`,{type:`button`,className:`ov-btn solid`,onClick:()=>{C(!0),x(!1)},children:m})]})]})]})})]})}function d({title:e,icon:t=`alert`,iconColor:n=`var(--danger)`,trigger:i=`Delete project`,triggerIcon:o=`x`,description:u=`A destructive&#8209;action confirm with a warning badge, Cancel, and Confirm.`,heading:d=`Delete “Q3 Forecast”?`,body:f=`This permanently removes the project and all <strong>34 documents</strong> inside it. This action cannot be undone.`,alertIcon:p=`alert`,confirm:m=`Delete forever`,cancel:h=`Cancel`,color:g=`var(--danger)`,delay:_}){let v=r[t]||r.alert,y=r[o]||r.x,b=r[p]||r.alert,[x,S]=(0,c.useState)(!1),[C,w]=(0,c.useState)(!1);return(0,c.useEffect)(()=>{if(!x)return;let e=e=>e.key===`Escape`&&S(!1);return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[x]),(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(_||0)+`ms`,"--ov-c":g},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(v,{className:`ic`,style:{color:n}}),` `,e]}),(0,l.jsxs)(`div`,{className:`ov-trigger-wrap`,children:[(0,l.jsxs)(`button`,{type:`button`,className:`ov-trigger danger`+(C?` is-done`:``),onClick:()=>!C&&S(!0),children:[C?(0,l.jsx)(r.check,{className:`ic`}):(0,l.jsx)(y,{className:`ic`}),` `,C?`Deleted`:i]}),(0,l.jsx)(`p`,{className:`ov-desc`,dangerouslySetInnerHTML:a(C?`Project deleted. <strong>34 documents</strong> removed.`:u)})]}),x&&(0,l.jsx)(s,{accent:g,children:(0,l.jsxs)(`div`,{className:`ov-portal`,children:[(0,l.jsx)(`div`,{className:`ov-backdrop`,onClick:()=>S(!1),role:`button`,tabIndex:0,"aria-label":`Close`,onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),S(!1))}}),(0,l.jsxs)(`div`,{className:`ov-dialog ov-alert`,role:`alertdialog`,"aria-modal":`true`,"aria-label":d,children:[(0,l.jsx)(`div`,{className:`ov-alert-badge`,children:(0,l.jsx)(b,{className:`ic`})}),(0,l.jsx)(`div`,{className:`ov-dialog-title ov-alert-title`,children:d}),(0,l.jsx)(`div`,{className:`ov-dialog-body ov-alert-body`,dangerouslySetInnerHTML:a(f)}),(0,l.jsxs)(`div`,{className:`ov-dialog-foot`,children:[(0,l.jsx)(`button`,{type:`button`,className:`ov-btn ghost`,onClick:()=>S(!1),children:h}),(0,l.jsxs)(`button`,{type:`button`,className:`ov-btn solid danger`,onClick:()=>{w(!0),S(!1)},children:[(0,l.jsx)(r.x,{className:`ic`}),` `,m]})]})]})]})})]})}var f=[{label:`Status`,value:`In review`,icon:`clock`},{label:`Owner`,value:`Maya Chen`,icon:`mail`},{label:`Pages`,value:`24`,icon:`doc`},{label:`Last edited`,value:`2h ago`,icon:`edit`},{label:`Visibility`,value:`Team`,icon:`eye`},{label:`Sources`,value:`8 linked`,icon:`link`},{label:`Confidence`,value:`Strong`,icon:`shield`}];function p({title:e,icon:t=`layers`,iconColor:n=`var(--presence)`,trigger:o=`View details`,triggerIcon:u=`external`,description:d=`A right&#8209;side drawer slides in with a header, scrollable body, and footer.`,heading:p=`Q3 Forecast.pdf`,subhead:m=`Document properties`,rows:h=f,confirm:g=`Open document`,cancel:_=`Close`,color:v=`var(--presence)`,delay:y}){let b=r[t]||r.layers,x=r[u]||r.external,[S,C]=(0,c.useState)(!1),w=(0,c.useRef)(null);return i(w,{active:S}),(0,c.useEffect)(()=>{if(!S)return;let e=e=>{e.key===`Escape`&&C(!1)};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[S]),(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(y||0)+`ms`,"--ov-c":v},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(b,{className:`ic`,style:{color:n}}),` `,e]}),(0,l.jsxs)(`div`,{className:`ov-trigger-wrap`,children:[(0,l.jsxs)(`button`,{type:`button`,className:`ov-trigger`,onClick:()=>C(!0),children:[(0,l.jsx)(x,{className:`ic`}),` `,o]}),(0,l.jsx)(`p`,{className:`ov-desc`,dangerouslySetInnerHTML:a(d)})]}),S&&(0,l.jsx)(s,{accent:v,children:(0,l.jsxs)(`div`,{className:`ov-portal`,children:[(0,l.jsx)(`div`,{className:`ov-backdrop`,onClick:()=>C(!1),role:`button`,tabIndex:0,"aria-label":`Close`,onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),C(!1))}}),(0,l.jsxs)(`div`,{className:`ov-drawer`,ref:w,tabIndex:-1,role:`dialog`,"aria-modal":`true`,"aria-label":p,children:[(0,l.jsxs)(`div`,{className:`ov-drawer-head`,children:[(0,l.jsxs)(`div`,{className:`ov-drawer-titles`,children:[(0,l.jsx)(`div`,{className:`ov-drawer-sub`,children:m}),(0,l.jsx)(`div`,{className:`ov-drawer-title`,children:p})]}),(0,l.jsx)(`button`,{type:`button`,className:`ov-x`,"aria-label":`Close`,onClick:()=>C(!1),children:(0,l.jsx)(r.x,{className:`ic`})})]}),(0,l.jsx)(`div`,{className:`ov-drawer-body`,children:h.map(e=>{let t=e.icon?r[e.icon]:null;return(0,l.jsxs)(`div`,{className:`ov-drawer-row`,children:[(0,l.jsxs)(`span`,{className:`ov-drawer-row-l`,children:[t&&(0,l.jsx)(t,{className:`ic`}),` `,e.label]}),(0,l.jsx)(`span`,{className:`ov-drawer-row-v`,children:e.value})]},e.label)})}),(0,l.jsxs)(`div`,{className:`ov-drawer-foot`,children:[(0,l.jsx)(`button`,{type:`button`,className:`ov-btn ghost`,onClick:()=>C(!1),children:_}),(0,l.jsxs)(`button`,{type:`button`,className:`ov-btn solid`,onClick:()=>C(!1),children:[(0,l.jsx)(r.external,{className:`ic`}),` `,g]})]})]})]})})]})}var m=[{label:`Copy link`,icon:`link`,meta:`Anyone with the link`},{label:`Share to team`,icon:`share`,meta:`12 members`,selected:!0},{label:`Email a copy`,icon:`mail`},{label:`Export as PDF`,icon:`export`}];function h({title:e,icon:t=`share`,iconColor:n=`var(--presence)`,trigger:i=`Share`,triggerIcon:o=`share`,description:u=`A bottom sheet slides up with a grabber handle — mobile&#8209;style.`,heading:d=`Share this report`,subhead:f=`Choose how you want to send it`,options:p=m,color:h=`var(--presence)`,delay:g}){let _=r[t]||r.share,v=r[o]||r.share,[y,b]=(0,c.useState)(!1),x=Math.max(0,p.findIndex(e=>e.selected)),[S,C]=(0,c.useState)(x===-1?0:x);return(0,c.useEffect)(()=>{if(!y)return;let e=e=>e.key===`Escape`&&b(!1);return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[y]),(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(g||0)+`ms`,"--ov-c":h},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(_,{className:`ic`,style:{color:n}}),` `,e]}),(0,l.jsxs)(`div`,{className:`ov-trigger-wrap`,children:[(0,l.jsxs)(`button`,{type:`button`,className:`ov-trigger`,onClick:()=>b(!0),children:[(0,l.jsx)(v,{className:`ic`}),` `,i]}),(0,l.jsx)(`p`,{className:`ov-desc`,dangerouslySetInnerHTML:a(u)})]}),y&&(0,l.jsx)(s,{accent:h,children:(0,l.jsxs)(`div`,{className:`ov-portal`,children:[(0,l.jsx)(`div`,{className:`ov-backdrop`,onClick:()=>b(!1),role:`button`,tabIndex:0,"aria-label":`Close`,onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),b(!1))}}),(0,l.jsxs)(`div`,{className:`ov-sheet`,role:`dialog`,"aria-modal":`true`,"aria-label":d,children:[(0,l.jsx)(`div`,{className:`ov-sheet-grab`}),(0,l.jsxs)(`div`,{className:`ov-sheet-head`,children:[(0,l.jsx)(`div`,{className:`ov-sheet-title`,children:d}),(0,l.jsx)(`div`,{className:`ov-sheet-sub`,children:f})]}),(0,l.jsx)(`div`,{className:`ov-sheet-list`,children:p.map((e,t)=>{let n=e.icon?r[e.icon]:r.chevR;return(0,l.jsxs)(`button`,{type:`button`,className:`ov-sheet-opt`+(S===t?` on`:``),onClick:()=>C(t),children:[(0,l.jsx)(`span`,{className:`ov-sheet-opt-ic`,children:(0,l.jsx)(n,{className:`ic`})}),(0,l.jsxs)(`span`,{className:`ov-sheet-opt-meta`,children:[(0,l.jsx)(`span`,{className:`ov-sheet-opt-label`,children:e.label}),e.meta&&(0,l.jsx)(`span`,{className:`ov-sheet-opt-sub`,children:e.meta})]}),(0,l.jsx)(`span`,{className:`ov-sheet-radio`,children:S===t&&(0,l.jsx)(r.check,{className:`ic`})})]},e.label)})}),(0,l.jsxs)(`button`,{type:`button`,className:`ov-btn solid ov-sheet-cta`,onClick:()=>b(!1),children:[(0,l.jsx)(r.send,{className:`ic`}),` Continue`]})]})]})})]})}function g({title:e,icon:t=`bell`,iconColor:n=`var(--presence)`,trigger:i=`Notifications`,triggerIcon:o=`bell`,description:s=`An anchored panel opens beside the trigger with a pointer arrow.`,heading:u=`What's new`,body:d=`3 sources finished syncing and <strong>2 new findings</strong> are ready to review in your workspace.`,stat:f=`+2`,statLabel:p=`new findings`,action:m=`Review now`,color:h=`var(--presence)`,delay:g}){let _=r[t]||r.bell,v=r[o]||r.bell,[y,b]=(0,c.useState)(!1),x=(0,c.useRef)(null);return(0,c.useEffect)(()=>{if(!y)return;let e=e=>e.key===`Escape`&&b(!1),t=e=>{x.current&&!x.current.contains(e.target)&&b(!1)};return window.addEventListener(`keydown`,e),window.addEventListener(`mousedown`,t),()=>{window.removeEventListener(`keydown`,e),window.removeEventListener(`mousedown`,t)}},[y]),(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(g||0)+`ms`,"--ov-c":h},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(_,{className:`ic`,style:{color:n}}),` `,e]}),(0,l.jsxs)(`div`,{className:`ov-anchor`,ref:x,children:[(0,l.jsxs)(`button`,{type:`button`,className:`ov-trigger`+(y?` active`:``),"aria-expanded":y,onClick:()=>b(e=>!e),children:[(0,l.jsx)(v,{className:`ic`}),` `,i,(0,l.jsx)(`span`,{className:`ov-trigger-badge`,children:f})]}),(0,l.jsx)(`p`,{className:`ov-desc`,dangerouslySetInnerHTML:a(s)}),y&&(0,l.jsxs)(`div`,{className:`ov-pop`,role:`dialog`,"aria-label":u,children:[(0,l.jsx)(`div`,{className:`ov-pop-arrow`}),(0,l.jsx)(`div`,{className:`ov-pop-head`,children:u}),(0,l.jsxs)(`div`,{className:`ov-pop-stat`,children:[(0,l.jsx)(`span`,{className:`ov-pop-stat-val tab-num`,children:f}),(0,l.jsx)(`span`,{className:`ov-pop-stat-label`,children:p})]}),(0,l.jsx)(`div`,{className:`ov-pop-body`,dangerouslySetInnerHTML:a(d)}),(0,l.jsxs)(`button`,{type:`button`,className:`ov-pop-action`,onClick:()=>b(!1),children:[m,` `,(0,l.jsx)(r.chevR,{className:`ic`})]})]})]})]})}var _=[{label:`Reports`,value:`47`},{label:`Sources`,value:`312`},{label:`Followers`,value:`1.2k`}];function v({title:e,icon:t=`chat`,iconColor:n=`var(--presence)`,mention:i=`@maya.chen`,lead:o=`Reviewed and approved by `,name:s=`Maya Chen`,handle:u=`@maya.chen`,bio:d=`Lead research analyst. Covers macro &amp; market intelligence for the strategy team.`,avatar:f=`MC`,stats:p=_,action:m=`Follow`,color:h=`var(--presence)`,delay:g}){let v=r[t]||r.chat,[y,b]=(0,c.useState)(!1),[x,S]=(0,c.useState)(!1),C=(0,c.useRef)(null),w=()=>{C.current&&clearTimeout(C.current),C.current=setTimeout(()=>b(!0),320)},T=()=>{C.current&&clearTimeout(C.current),C.current=setTimeout(()=>b(!1),140)};return(0,c.useEffect)(()=>()=>{C.current&&clearTimeout(C.current)},[]),(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(g||0)+`ms`,"--ov-c":h},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(v,{className:`ic`,style:{color:n}}),` `,e]}),(0,l.jsxs)(`p`,{className:`ov-hc-lead`,children:[(0,l.jsx)(`span`,{dangerouslySetInnerHTML:a(o)}),(0,l.jsxs)(`span`,{className:`ov-hc-anchor`,onMouseEnter:w,onMouseLeave:T,children:[(0,l.jsx)(`button`,{type:`button`,className:`ov-mention`+(y?` active`:``),onClick:()=>b(e=>!e),children:i}),y&&(0,l.jsxs)(`span`,{className:`ov-hc-card`,role:`dialog`,"aria-label":s,onMouseEnter:w,onMouseLeave:T,children:[(0,l.jsxs)(`span`,{className:`ov-hc-top`,children:[(0,l.jsx)(`span`,{className:`ov-hc-avatar`,children:f}),(0,l.jsxs)(`span`,{className:`ov-hc-names`,children:[(0,l.jsx)(`span`,{className:`ov-hc-name`,children:s}),(0,l.jsx)(`span`,{className:`ov-hc-handle`,children:u})]}),(0,l.jsx)(`button`,{type:`button`,className:`ov-hc-follow`+(x?` on`:``),onClick:()=>S(e=>!e),children:x?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(r.check,{className:`ic`}),` Following`]}):m})]}),(0,l.jsx)(`span`,{className:`ov-hc-bio`,dangerouslySetInnerHTML:a(d)}),(0,l.jsx)(`span`,{className:`ov-hc-stats`,children:p.map(e=>(0,l.jsxs)(`span`,{className:`ov-hc-stat`,children:[(0,l.jsx)(`span`,{className:`ov-hc-stat-val tab-num`,children:e.value}),(0,l.jsx)(`span`,{className:`ov-hc-stat-label`,children:e.label})]},e.label))})]})]}),(0,l.jsx)(`span`,{children:` after a full source audit.`})]}),(0,l.jsx)(`p`,{className:`ov-desc ov-hc-hint`,children:`Hover the mention to preview the profile card.`})]})}var y=[{label:`Share`,icon:`share`,tip:`Share with your team`,placement:`top`},{label:`Export`,icon:`export`,tip:`Download as PDF or CSV`,placement:`bottom`},{label:`Sources`,icon:`link`,tip:`8 verified sources linked`,placement:`left`},{label:`Lock`,icon:`lock`,tip:`Restrict editing to owners`,placement:`right`}];function b({title:e,icon:t=`spark`,iconColor:n=`var(--presence)`,prompt:i=`Hover any control to see a placed tooltip.`,targets:o=y,color:s=`var(--presence)`,delay:u}){let d=r[t]||r.spark,[f,p]=(0,c.useState)(null);return(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(u||0)+`ms`,"--ov-c":s},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(d,{className:`ic`,style:{color:n}}),` `,e]}),(0,l.jsx)(`p`,{className:`ov-desc ov-tip-prompt`,dangerouslySetInnerHTML:a(i)}),(0,l.jsx)(`div`,{className:`ov-tip-grid`,children:o.map((e,t)=>{let n=e.icon?r[e.icon]:r.spark,i=e.placement||`top`;return(0,l.jsxs)(`div`,{className:`ov-tip-cell`,children:[(0,l.jsxs)(`button`,{type:`button`,className:`ov-tip-target`+(f===t?` on`:``),onMouseEnter:()=>p(t),onMouseLeave:()=>p(e=>e===t?null:e),onFocus:()=>p(t),onBlur:()=>p(e=>e===t?null:e),children:[(0,l.jsx)(n,{className:`ic`}),(0,l.jsx)(`span`,{children:e.label})]}),f===t&&(0,l.jsxs)(`span`,{className:`ov-tip-bubble place-`+i,role:`tooltip`,children:[e.tip,(0,l.jsx)(`span`,{className:`ov-tip-arrow`})]})]},e.label)})})]})}var x=[{label:`Edit report`,icon:`edit`,shortcut:`⌘E`},{label:`Duplicate`,icon:`layers`,shortcut:`⌘D`},{label:`Add to favorites`,icon:`spark`},{label:`Share`,icon:`share`,shortcut:`⌘⇧S`,separator:!0},{label:`Export PDF`,icon:`export`},{label:`Delete`,icon:`x`,danger:!0,separator:!0}];function S({title:e,icon:t=`layers`,iconColor:n=`var(--presence)`,trigger:i=`Options`,triggerIcon:o=`plus`,description:s=`A dropdown menu with icons, shortcut hints, separators, and a destructive item.`,menuLabel:u=`Q3 Forecast.pdf`,items:d=x,color:f=`var(--presence)`,delay:p}){let m=r[t]||r.layers,h=r[o]||r.plus,[g,_]=(0,c.useState)(!1),[v,y]=(0,c.useState)(null),b=(0,c.useRef)(null);return(0,c.useEffect)(()=>{if(!g)return;let e=e=>e.key===`Escape`&&_(!1),t=e=>{b.current&&!b.current.contains(e.target)&&_(!1)};return window.addEventListener(`keydown`,e),window.addEventListener(`mousedown`,t),()=>{window.removeEventListener(`keydown`,e),window.removeEventListener(`mousedown`,t)}},[g]),(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(p||0)+`ms`,"--ov-c":f},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(m,{className:`ic`,style:{color:n}}),` `,e]}),(0,l.jsxs)(`div`,{className:`ov-anchor`,ref:b,children:[(0,l.jsxs)(`button`,{type:`button`,className:`ov-trigger`+(g?` active`:``),"aria-haspopup":`menu`,"aria-expanded":g,onClick:()=>_(e=>!e),children:[(0,l.jsx)(h,{className:`ic`}),` `,i,(0,l.jsx)(r.chevR,{className:`ic ov-trigger-caret`+(g?` up`:``)})]}),(0,l.jsx)(`p`,{className:`ov-desc`,dangerouslySetInnerHTML:a(s)}),g&&(0,l.jsxs)(`div`,{className:`ov-menu`,role:`menu`,children:[u&&(0,l.jsx)(`div`,{className:`ov-menu-label`,children:u}),d.map((e,t)=>{let n=e.icon?r[e.icon]:null;return(0,l.jsxs)(`div`,{children:[e.separator&&(0,l.jsx)(`div`,{className:`ov-menu-sep`}),(0,l.jsxs)(`button`,{type:`button`,role:`menuitem`,className:`ov-menu-item`+(e.danger?` danger`:``)+(v===t?` on`:``),onMouseEnter:()=>y(t),onClick:()=>_(!1),children:[n&&(0,l.jsx)(n,{className:`ic ov-menu-ic`}),(0,l.jsx)(`span`,{className:`ov-menu-text`,children:e.label}),e.shortcut&&(0,l.jsx)(`kbd`,{className:`ov-kbd`,children:e.shortcut})]})]},e.label)})]})]})]})}var C=196,w=[{label:`Open`,icon:`external`,shortcut:`↵`},{label:`Rename`,icon:`edit`,shortcut:`F2`},{label:`Copy link`,icon:`link`,shortcut:`⌘C`},{label:`Download`,icon:`export`,separator:!0},{label:`Move to trash`,icon:`x`,danger:!0,separator:!0}];function T({title:e,icon:t=`table`,iconColor:n=`var(--presence)`,target:i=`Right-click this file`,targetIcon:o=`doc`,description:s=`Right&#8209;click (or click) the target to open a context menu at the pointer.`,items:u=w,color:d=`var(--presence)`,delay:f}){let p=r[t]||r.table,m=r[o]||r.doc,[h,g]=(0,c.useState)(null),[_,v]=(0,c.useState)(null),y=(0,c.useRef)(null),b=e=>{e.preventDefault();let t=y.current?.getBoundingClientRect(),n=t?Math.min(e.clientX-t.left,t.width-C):12,r=t?e.clientY-t.top:12;g({x:Math.max(8,n),y:Math.max(8,r)})};return(0,c.useEffect)(()=>{if(!h)return;let e=e=>e.key===`Escape`&&g(null),t=e=>{let t=y.current?.querySelector(`.ov-ctx`);t&&!t.contains(e.target)&&g(null)};return window.addEventListener(`keydown`,e),window.addEventListener(`mousedown`,t),()=>{window.removeEventListener(`keydown`,e),window.removeEventListener(`mousedown`,t)}},[h]),(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(f||0)+`ms`,"--ov-c":d},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(p,{className:`ic`,style:{color:n}}),` `,e]}),(0,l.jsxs)(`div`,{className:`ov-ctx-host`,ref:y,children:[(0,l.jsxs)(`button`,{type:`button`,className:`ov-ctx-zone`+(h?` active`:``),onContextMenu:b,onClick:b,children:[(0,l.jsx)(m,{className:`ic ov-ctx-zone-ic`}),(0,l.jsx)(`span`,{children:i})]}),h&&(0,l.jsx)(`div`,{className:`ov-ctx`,role:`menu`,style:{left:h.x,top:h.y,maxWidth:C},children:u.map((e,t)=>{let n=e.icon?r[e.icon]:null;return(0,l.jsxs)(`div`,{children:[e.separator&&(0,l.jsx)(`div`,{className:`ov-menu-sep`}),(0,l.jsxs)(`button`,{type:`button`,role:`menuitem`,className:`ov-menu-item`+(e.danger?` danger`:``)+(_===t?` on`:``),onMouseEnter:()=>v(t),onClick:()=>g(null),children:[n&&(0,l.jsx)(n,{className:`ic ov-menu-ic`}),(0,l.jsx)(`span`,{className:`ov-menu-text`,style:{whiteSpace:`nowrap`,overflow:`hidden`,textOverflow:`ellipsis`},children:e.label}),e.shortcut&&(0,l.jsx)(`kbd`,{className:`ov-kbd`,children:e.shortcut})]})]},e.label)})})]}),(0,l.jsx)(`p`,{className:`ov-desc`,dangerouslySetInnerHTML:a(s)})]})}var E=[{label:`Actions`,commands:[{label:`New report`,icon:`plus`,shortcut:`⌘N`,hint:`Start a blank canvas`},{label:`Import sources`,icon:`upload`,shortcut:`⌘I`},{label:`Share workspace`,icon:`share`}]},{label:`Navigate`,commands:[{label:`Go to dashboard`,icon:`chart`,shortcut:`G D`},{label:`Open documents`,icon:`doc`,shortcut:`G O`},{label:`Search sources`,icon:`globe`}]},{label:`Preferences`,commands:[{label:`Toggle theme`,icon:`moon`,shortcut:`⌘\\`},{label:`Notification settings`,icon:`bell`}]}];function D({title:e,icon:t=`spark`,iconColor:n=`var(--presence)`,trigger:o=`Search commands`,triggerIcon:u=`spark`,description:d=`A ⌘K command palette — search, ↑/↓ to highlight, Enter to run.`,placeholder:f=`Type a command or search…`,groups:p=E,color:m=`var(--presence)`,delay:h}){let g=r[t]||r.spark,_=r[u]||r.spark,[v,y]=(0,c.useState)(!1),[b,x]=(0,c.useState)(``),[S,C]=(0,c.useState)(0),w=(0,c.useRef)(null),T=(0,c.useRef)(null);i(T,{active:v});let D=(0,c.useMemo)(()=>p.flatMap(e=>e.commands.map(t=>({...t,group:e.label}))),[p]),O=(0,c.useMemo)(()=>{let e=b.trim().toLowerCase();return e?D.filter(t=>t.label.toLowerCase().includes(e)||(t.hint||``).toLowerCase().includes(e)):D},[D,b]),k=(0,c.useMemo)(()=>{let e=new Map;for(let t of O)e.has(t.group)||e.set(t.group,[]),e.get(t.group).push(t);return Array.from(e.entries())},[O]);(0,c.useEffect)(()=>{if(v){C(0);let e=setTimeout(()=>w.current?.focus(),30);return()=>clearTimeout(e)}},[v]),(0,c.useEffect)(()=>C(0),[b]),(0,c.useEffect)(()=>{if(!v)return;let e=e=>{e.key===`Escape`?y(!1):e.key===`ArrowDown`?(e.preventDefault(),C(e=>Math.max(0,Math.min(O.length-1,e+1)))):e.key===`ArrowUp`?(e.preventDefault(),C(e=>Math.max(0,e-1))):e.key===`Enter`&&(e.preventDefault(),y(!1))};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[v,O.length]);let A=-1;return(0,l.jsxs)(`div`,{className:`card reveal`,style:{"--delay":(h||0)+`ms`,"--ov-c":m},children:[(0,l.jsxs)(`div`,{className:`card-eyebrow`,children:[(0,l.jsx)(g,{className:`ic`,style:{color:n}}),` `,e]}),(0,l.jsxs)(`div`,{className:`ov-trigger-wrap`,children:[(0,l.jsxs)(`button`,{type:`button`,className:`ov-trigger ov-ck-trigger`,onClick:()=>y(!0),children:[(0,l.jsx)(_,{className:`ic`}),` `,o,(0,l.jsx)(`kbd`,{className:`ov-kbd ov-ck-kbd`,children:`⌘K`})]}),(0,l.jsx)(`p`,{className:`ov-desc`,dangerouslySetInnerHTML:a(d)})]}),v&&(0,l.jsx)(s,{accent:m,children:(0,l.jsxs)(`div`,{className:`ov-portal`,children:[(0,l.jsx)(`div`,{className:`ov-backdrop`,onClick:()=>y(!1),role:`button`,tabIndex:0,"aria-label":`Close`,onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),y(!1))}}),(0,l.jsxs)(`div`,{className:`ov-ck`,ref:T,tabIndex:-1,role:`dialog`,"aria-modal":`true`,"aria-label":`Command palette`,children:[(0,l.jsxs)(`div`,{className:`ov-ck-search`,children:[(0,l.jsx)(r.globe,{className:`ic ov-ck-search-ic`}),(0,l.jsx)(`input`,{ref:w,className:`ov-ck-input`,placeholder:f,value:b,onChange:e=>x(e.target.value),spellCheck:!1}),(0,l.jsx)(`kbd`,{className:`ov-kbd`,children:`esc`})]}),(0,l.jsxs)(`div`,{className:`ov-ck-list`,children:[k.length===0&&(0,l.jsxs)(`div`,{className:`ov-ck-empty`,children:[`No commands match “`,(0,l.jsx)(`strong`,{children:b}),`”`]}),k.map(([e,t])=>(0,l.jsxs)(`div`,{className:`ov-ck-group`,children:[(0,l.jsx)(`div`,{className:`ov-ck-group-label`,children:e}),t.map(e=>{A+=1;let t=A,n=e.icon?r[e.icon]:r.chevR;return(0,l.jsxs)(`button`,{type:`button`,className:`ov-ck-item`+(S===t?` on`:``),onMouseEnter:()=>C(t),onClick:()=>y(!1),children:[(0,l.jsx)(`span`,{className:`ov-ck-item-ic`,children:(0,l.jsx)(n,{className:`ic`})}),(0,l.jsxs)(`span`,{className:`ov-ck-item-meta`,children:[(0,l.jsx)(`span`,{className:`ov-ck-item-label`,children:e.label}),e.hint&&(0,l.jsx)(`span`,{className:`ov-ck-item-hint`,children:e.hint})]}),e.shortcut&&(0,l.jsx)(`kbd`,{className:`ov-kbd`,children:e.shortcut}),(0,l.jsx)(r.chevR,{className:`ic ov-ck-item-go`})]},e.label)})]},e))]}),(0,l.jsxs)(`div`,{className:`ov-ck-foot`,children:[(0,l.jsxs)(`span`,{className:`ov-ck-foot-hint`,children:[(0,l.jsx)(`kbd`,{className:`ov-kbd`,children:`↑`}),(0,l.jsx)(`kbd`,{className:`ov-kbd`,children:`↓`}),` navigate`]}),(0,l.jsxs)(`span`,{className:`ov-ck-foot-hint`,children:[(0,l.jsx)(`kbd`,{className:`ov-kbd`,children:`↵`}),` select`]}),(0,l.jsxs)(`span`,{className:`ov-ck-foot-count`,children:[O.length,` commands`]})]})]})]})})]})}var O=e({overlaysRegistry:()=>k}),k={modal:o(u),confirmdialog:o(d),drawer:o(p),sheet:o(h),popover:o(g),hovercard:o(v),tooltip:o(b),menu:o(S),contextmenu:o(T),commandk:o(D)};export{O as n,k as t};
@@ -1 +1 @@
1
- import{c as e}from"./useDashboardLoop-SPlr1Mrm.js";function t(e){return e.toLowerCase().replace(/[^a-z0-9 ]/g,` `).replace(/\s+/g,` `).trim()}function n(n,r){if(r.topic){let e=t(r.topic),i=n.find(n=>n.topic&&t(n.topic)===e);if(i)return i}let i=e(r.text);if(i.size===0)return null;let a=null,o=0;for(let t of n){let n=e([t.title,t.thesis.text,...t.metrics.map(e=>e.label)].join(` `)),r=0;for(let e of i)n.has(e)&&r++;r>o&&(o=r,a=t)}return o>=2?a:null}export{n as t};
1
+ import{c as e}from"./useDashboardLoop-DEE_sLT0.js";function t(e){return e.toLowerCase().replace(/[^a-z0-9 ]/g,` `).replace(/\s+/g,` `).trim()}function n(n,r){if(r.topic){let e=t(r.topic),i=n.find(n=>n.topic&&t(n.topic)===e);if(i)return i}let i=e(r.text);if(i.size===0)return null;let a=null,o=0;for(let t of n){let n=e([t.title,t.thesis.text,...t.metrics.map(e=>e.label)].join(` `)),r=0;for(let e of i)n.has(e)&&r++;r>o&&(o=r,a=t)}return o>=2?a:null}export{n as t};
@@ -1 +1 @@
1
- import{t as e}from"./generateBeats-BjWC2fwl.js";function t(e){let t=[];for(let n of e.tour){let r=e.spec.blocks[n.index]?.id;r&&t.push({spot:r,...n.say?{say:n.say}:{},marks:n.marks??(n.mark?[n.mark]:[])})}return t}function n(n){let r=t(n),i=e(n.spec.blocks,{opener:n.narration,...r.length?{tour:r.map(({spot:e,say:t})=>t?{spot:e,say:t}:{spot:e})}:{}});return{spec:n.spec,say:n.spoken??n.narration,beats:i,cues:r}}function r(e,t=0){let r=Math.max(0,Math.min(t,e.length));return e.slice(r).map(n)}export{r as n,n as t};
1
+ import{t as e}from"./generateBeats-Da9RmZke.js";function t(e){let t=[];for(let n of e.tour){let r=e.spec.blocks[n.index]?.id;r&&t.push({spot:r,...n.say?{say:n.say}:{},marks:n.marks??(n.mark?[n.mark]:[])})}return t}function n(n){let r=t(n),i=e(n.spec.blocks,{opener:n.narration,...r.length?{tour:r.map(({spot:e,say:t})=>t?{spot:e,say:t}:{spot:e})}:{}});return{spec:n.spec,say:n.spoken??n.narration,beats:i,cues:r}}function r(e,t=0){let r=Math.max(0,Math.min(t,e.length));return e.slice(r).map(n)}export{r as n,n as t};
@@ -1,3 +1,3 @@
1
- import{n as e,t}from"./preload-helper-CiWYd9n-.js";import{n,t as r}from"./catalog-vLsIS_Na.js";import{n as i,t as a}from"./facts-CNQz8OQz.js";import{t as o}from"./liveSchema-eKgFc5D0.js";import{a as s,i as c,n as l,t as u}from"./shapes-BwXCYTlu.js";var d=`insight.scorecard.trendtile.waterfall.funnel.flightchart.deltacascade.bulletkpi.bulletchart.comparebars.bcgmatrix.pivot.groupedbars.leaderboard.datatable.roadmap.gantt.kanban.plandag.milestones.progressbar.statustimeline.healthgrid.kpidashboard.issuetree.meetingnotes.sparkstat.counter.herostat.streamgraph.scorebadge.radar.smallmultiples.arearange.waffle.histogram.boxplot.sparktable.percentilebar.statpair.calibration.ratinginput.sliderinput.segmented.rangefilter.stepindicator.pregnancyweek.cycletrack.contractiontimer.reasoning.routing.agenttrace.toolcalls.retrieval.embedmap.tokenstream.modelcompare.whatchanged.factcheck.confidencemeter.citationchain.sourcelist.claimgrid.highlightsnippet.redline.annotateddoc.docoutline.network.sunburst.researchsummary.hypothesiscard.dotplot.controlchart.errorbars.kpi.plot.matrix.diagram.diagramflow.docview.pdfreader.datastructure.bigo.complexitysummary.confusionmatrix.protocolstack.logicgates.algorithmtrace.sortingviz.graphtrace.binarytree.dptable.hashtable.trie.gridtrace.sysarchdiagram.recursiontree.sequencealign.compare.timeline.clinicaltimeline.medicationschedule.clearancematrix.anatomyfigure.odontogram.ecgstrip.vitalstrip.careplan.triageboard.mentalhealthscreen.callout.casebrief.discoverytracker.patentclaimchart.litigationtimeline.billtracker.immigrationcase.caseload.verdictcard.scenarioset.divider.wizard.goaltree.candlestick.lollipop.decisiontree.slopegraph.dumbbell.powersample.abtestresult.orgchart.treemap.processflow.journeymap.userpersona.swimlane.bubble.matrixgrid.treetable.footnotetable.tabs.deflist.faq.accordion.riskmatrix.threatmodel.pricingtable.raci.dimensiondrawing.explodedview.weldsymbol.cutlist.linebalance.moodboard.palette.photo.geomap.bars.storystrip.carousel.lightbox.beforeafter.imagecallouts.annotcallouts.videoembed.waveform.sankey.proscons.casestudy.pullquote.takeaways.skeleton.emptystate.mediacard.voicestyle.exposuretriangle.colorwheel.artanalysis.shotlist.runofshow.beatsheet.craftchart.patternpiece.storyarc.castmap.devicemark.creativetest.brandguide.musicstaff.flashcard.chronologicaltimeline.chorddiagram.mixerboard.pianokeys.fretboardmap.circleoffifths.practicelog.gallery.togglegroup.radiogroup.svgblock.scalefelt.moonphase.skychart.orbitdiagram.sizecompare.donut.foodweb.taxonrank.list.speciescard.scoreboard.ring.standings.bump.scoutingreport.tournamentbracket.banner.checklist.epicurve.web.positioncard.differential.growthcurve.painscale.badgeset.livescore.gameboard.boardgamescore.tierlist.seatingchart.checkboxgroup.numberstepper.picturesequence.vaxschedule.vetpatientchart.stickerchart.avatar.avatargroup.chipset.kbd.codeblock.toaststack.spinner.notification.tooltip.hovercard.a11yaudit.usabilityfindings.typespec.navbar.sidenav.treeview.breadcrumb.menubar.toolbar.megamenu.commandbar.pagination.commandk.modal.drawer.bottomnav.screenmap.wireframe.textfield.fileupload.textarea.combobox.formpanel.select.buttonbar.switchset.actionchecklist.otp.trustmap.datepicker.calendarpick.timepicker.daterange.colorpicker.tagsinput.searchselect.sheet.menu.popover.contextmenu.confirmdialog.roomblockdashboard.messagedraft.chatthread.dialogue.variants.verse.slidedeck.screenplay.socialpost.storystructure.ideaboard.longread.variantswitch.forecast.agenda.picks.transitroute.timezones.lifewheel.promptset.prayertimes.amortization.receipt.settleup.bracketbar.stackedbars.budgetallocator.paystub.taxbracket.taxreturnsummary.siteplan.zoningmap.factsheet.newsdigest.dictionary.translation.pronunciation.gloss.stacktrace.syntaxbreakdown.codewalk.hearit.ipachart.scriptstroke.paralleltext.comparematrix.toulmin.etymtree.rollcall.termbase.historicalperson.onthisday.countrycard.worldgrid.warconflict.distinctioncard.chart.stack.messagescriptset.eligibilitycheck.bridge.supplydemand.payoffdiagram.yieldcurve.efficientfrontier.bondladder.collectiontracker.cma.claimagecompare.scatter.companionnote.breathpacer.sleepcycle.heat.bodymap.calheat.workoutplan.macrobreakdown.runninglog.zoneladder.streakgrid.copingmenu.thoughtrecord.habittracker.readinglist.maproute.packlist.weathernow.pictogramchart.menucard.quadrant.venn.recipecard.cocktailcard.ingredientmatrix.plangrid.nutritionlabel.unitconvert.seasonband.worthit.reviewsynth.sizechart.breakdown.gauge.countdown.blanks.reframecard.talktrack.resume.understand.schema.buildprog.sponsorshiptracker.contentcalendar.podcastplanner.marimekko.timeseriesdecomposition.financialstatement.pareto.flowchord.evidencetrace.cohortgrid.fivewhychain.pipeline.quotes.emotionwheel.livecompute.captable.vestingschedule.termsheet.fundraisingrounds.saferterms.dilutionwaterfall.threestatementlink.tamsam.trainingcurve.burnrunway.ridgeplot.correlationheatmap.scatterplotmatrix.roccurve.precisionrecallcurve.biasvariance.gradientdescent.nnarchitecture.datadictionary.datapipeline.ablationtable.interviewscorecard.paybandchart.headcountplan.dosdonts.breakeven.depreciationschedule.logicmodel.fiveforces.cvssscorecard.changelog.lessonplan.equationblock.numberline.workedexample.quiz.quizsession.piedonut.distributioncurve.dualaxis.scatterregression.molecularstructure.sequencediagram.diffviewer.sensitivitytable.periodictable.elementcard.circuitdiagram.statemachine.erdiagram.labpanel.geometrycanvas.freebodydiagram.vectorspace.reactionmechanism.synthesisroute.hazardcard.labprotocol.argumentmap.teachdiagram.fractionbar.gridmatrix.conjugation.probabilitytree.mindshape.world.areaplot.wave.energydiagram.phylotree.parsetree.eratimeline.celldiagram.raydiagram.interferencepattern.vectorfield.phasediagram.particlemodel.bohrmodel.orbitaldiagram.pedigree.indifferencecurve.causationchain.equationbalancer.yieldcalc.vseprmolecule.titrationcurve.unitcircle.solidfigure.crosssection.loaddiagram.scansionmark.clockface.moneytray.placevaluechart.columnarithmetic.pictograph.populationpyramid.shapecard.letterform.toolscale.cyclewheel.phonicsword.sightwordlist.alphabetchart.morphemebreakdown.skilltree.violinplot.stemleafplot.surfaceplot.qqplot.samplingdistribution.gridtransform.phaseportrait.twocolumnproof.polarplot.taylorseries.areamodel.dnahelix.plasmidmap.linespectrum.pyramidtiers.rubric.gradebook.spectrumtable.fmeatable.billofmaterials.chromatogram.stressstraincurve.gatingplot.expressionheatmap.gellane.parallelcoordinates.primefactortree.numbersequence.constantcard.baseconversion.doseladder.flow.analogymap.logstream.gitgraph.queryplan.flamegraph.regexscope.terminal.httpexchange.latencydist.ecdf.codemap.checks.diff.componentapi.sportspitch.developmentmilestone.dentaltreatmentplan.estateplanchecklist.subtextdecode.rehearsal.caregivercoord.allocatepeople.lifeline.familytree.relationshipmap.vendortracker.wiringdiagram.pipingschematic.controlblockdiagram.floorplan.howtosteps.spacefit.thesis.alignmentgauge.standingalerts.sourceslineage.preflightchecklist.inventoryreorder.visachecklist.hrdiagram.ternaryplot.parliamentseats.prooftree.fishbone.classdiagram.energybarchart.karyotype.numberbond.posbreakdown.frayermodel.forestplot.cashflowtimeline.businesscanvas.guitartab.pianoroll.stitchchart.wordsearch.playingcards.statblock.decisionrecord.assumptionledger.requirementboard.experimentplan.negotiationplan.stakeholdermap.serviceblueprint.approvalflow.resourceplan.maintenanceplan.contactdirectory.tripbudget.careinstructions.clausecompare.incidentbrief.coveragecheck.offerbreakdown`.split(`.`);e();var f=[()=>t(()=>import(`./shard000-Bx6Nmt0m.js`),[]),()=>t(()=>import(`./shard001-CL6O9SLr.js`),[]),()=>t(()=>import(`./shard002-vLQ0Ss-O.js`),[]),()=>t(()=>import(`./shard003-kKZdpzuh.js`),[]),()=>t(()=>import(`./shard004-CdVohAu1.js`),[]),()=>t(()=>import(`./shard005-CMzF_uJB.js`),[]),()=>t(()=>import(`./shard006-DQoDWuoN.js`),[]),()=>t(()=>import(`./shard007-Ck0N0IUk.js`),[]),()=>t(()=>import(`./shard008-Dt395x0Q.js`),[]),()=>t(()=>import(`./shard009-D_z8Lhqh.js`),[]),()=>t(()=>import(`./shard010-CQfR6lnk.js`),[]),()=>t(()=>import(`./shard011-l-w2t2Ie.js`),[]),()=>t(()=>import(`./shard012-BTw_UO1C.js`),[]),()=>t(()=>import(`./shard013-D8ZjKKYb.js`),[]),()=>t(()=>import(`./shard014-Cth_76It.js`),[]),()=>t(()=>import(`./shard015-DdYJVsHx.js`),[]),()=>t(()=>import(`./shard016-BdlBf9uZ.js`),[]),()=>t(()=>import(`./shard017-C3HTxh6t.js`),[]),()=>t(()=>import(`./shard018-Mf4wvqVk.js`),[]),()=>t(()=>import(`./shard019-Dpcy1Arx.js`),[]),()=>t(()=>import(`./shard020-BNvKfQld.js`),[]),()=>t(()=>import(`./shard021-D0kpI_PQ.js`),[]),()=>t(()=>import(`./shard022-Cjms7kAe.js`),[]),()=>t(()=>import(`./shard023-Bdwci7fy.js`),[]),()=>t(()=>import(`./shard024-BBoyPtpP.js`),[]),()=>t(()=>import(`./shard025-lMGpgN_0.js`),[]),()=>t(()=>import(`./shard026-Bp3UVI4_.js`),[]),()=>t(()=>import(`./shard027-C4HTpdeT.js`),[]),()=>t(()=>import(`./shard028-BsFTH3Sf.js`),[]),()=>t(()=>import(`./shard029-B3dEcXPy.js`),[]),()=>t(()=>import(`./shard030-DWwA-fNs.js`),[]),()=>t(()=>import(`./shard031-RhqA_0nH.js`),[]),()=>t(()=>import(`./shard032-BlZdG1Yi.js`),[]),()=>t(()=>import(`./shard033-Dmx2lOjI.js`),[]),()=>t(()=>import(`./shard034-BLOFKJT4.js`),[]),()=>t(()=>import(`./shard035-DMXdH733.js`),[]),()=>t(()=>import(`./shard036-DzOiEn23.js`),[]),()=>t(()=>import(`./shard037-BcHfVaYM.js`),[]),()=>t(()=>import(`./shard038-KozOx-Jh.js`),[]),()=>t(()=>import(`./shard039-apdILQwC.js`),[]),()=>t(()=>import(`./shard040-BrNXGaBi.js`),[]),()=>t(()=>import(`./shard041-D6eq9h1u.js`),[]),()=>t(()=>import(`./shard042-M-L34DbY.js`),[]),()=>t(()=>import(`./shard043-Ct6_C2pN.js`),[]),()=>t(()=>import(`./shard044-Bo0iaVHx.js`),[]),()=>t(()=>import(`./shard045-9ccZ4Y_N.js`),[]),()=>t(()=>import(`./shard046-eXoP478L.js`),[]),()=>t(()=>import(`./shard047-N56r6Lsz.js`),[]),()=>t(()=>import(`./shard048-BeKX7cI8.js`),[]),()=>t(()=>import(`./shard049-hPaNN2sL.js`),[]),()=>t(()=>import(`./shard050-B-YpP0B6.js`),[]),()=>t(()=>import(`./shard051-Bww5_KB2.js`),[]),()=>t(()=>import(`./shard052-DErwF8Df.js`),[]),()=>t(()=>import(`./shard053-C-qGH4jz.js`),[]),()=>t(()=>import(`./shard054-kcSxZrSj.js`),[]),()=>t(()=>import(`./shard055-CsETBTqa.js`),[]),()=>t(()=>import(`./shard056-CdBR4qTC.js`),[]),()=>t(()=>import(`./shard057-yRUG8B9e.js`),[]),()=>t(()=>import(`./shard058-DeDAnECG.js`),[]),()=>t(()=>import(`./shard059-Dh6jbDnW.js`),[]),()=>t(()=>import(`./shard060-B5kpWrhW.js`),[]),()=>t(()=>import(`./shard061-BTnj5LZA.js`),[]),()=>t(()=>import(`./shard062-DC7LTaNc.js`),[]),()=>t(()=>import(`./shard063-C8SIGCfd.js`),[]),()=>t(()=>import(`./shard064-DLyASocW.js`),[]),()=>t(()=>import(`./shard065-Cy_yV4ry.js`),[]),()=>t(()=>import(`./shard066-BmjVQqFX.js`),[]),()=>t(()=>import(`./shard067-uZUJsqtF.js`),[]),()=>t(()=>import(`./shard068-CXVjyJU4.js`),[]),()=>t(()=>import(`./shard069-CyfmjAm-.js`),[]),()=>t(()=>import(`./shard070-CxN3xiuY.js`),[]),()=>t(()=>import(`./shard071-CP1WrYC-.js`),[]),()=>t(()=>import(`./shard072-D6L5Yr05.js`),[]),()=>t(()=>import(`./shard073-DFEzkwg2.js`),[]),()=>t(()=>import(`./shard074-BSv3rvRL.js`),[]),()=>t(()=>import(`./shard075-Bt0OjGVd.js`),[]),()=>t(()=>import(`./shard076-b5-2mnEN.js`),[]),()=>t(()=>import(`./shard077-DGa0bRNk.js`),[]),()=>t(()=>import(`./shard078-CI97pFkb.js`),[])],p=new Map(d.map((e,t)=>[e,Math.floor(t/8)])),m=new Set,h=new Map,g=new Map;f.length;function _(e){return p.get(e)??-1}function v(e){if(m.has(e))return Promise.resolve();let t=h.get(e);if(t)return t;let n=f[e];if(!n)return Promise.resolve();let r=n().then(({E:t})=>{for(let[e,n]of Object.entries(t))g.set(e,n);m.add(e)}).catch(()=>{}).finally(()=>h.delete(e));return h.set(e,r),r}async function ee(e){let t=new Set;for(let n of e){let e=_(n);e>=0&&!m.has(e)&&t.add(e)}t.size&&await Promise.all([...t].map(v))}function y(e){let t=g.get(e);return t&&typeof t==`object`&&!Array.isArray(t)?t:null}var b={maxStr:48,maxArray:2},x={maxStr:90,maxArray:5};function S(e,t){if(typeof e==`string`)return e.length>t.maxStr?`${e.slice(0,t.maxStr-1)}…`:e;if(Array.isArray(e))return e.slice(0,t.maxArray).map(e=>S(e,t));if(e&&typeof e==`object`){let n={};for(let[r,i]of Object.entries(e))n[r]=S(i,t);return n}return e}var C=new Map;function w(e,t=!1){let n=`${t?`d`:`c`}:${e}`,r=C.get(n);if(r!==void 0)return r;let i=y(e),a=_(e);if(i===null&&a>=0&&!m.has(a))return null;let o=null;if(i!==null)try{o=JSON.stringify(S(i,t?x:b))}catch{o=null}return C.set(n,o),o}var T=[`insight`,`chart`,`breakdown`,`list`,`timeline`,`compare`,`kpi`,`ring`],E=new Set([...T,`bars`,`stack`,`donut`,`gauge`]),D=new Set([`diagramflow`,`composite`,`svgblock`]),O=new Set([...T,`bars`,`stack`,`donut`,`gauge`,`diagramflow`,`composite`]),k=new Set([`map`,`markermap`,`choropleth`]),te=new Set(a.filter(e=>(e.coercer===`generic`||O.has(e.type))&&!k.has(e.type)).map(e=>e.type)),A={small:new Set([`base`,`frontier`]),mid:new Set([`base`,`frontier`,`cutting`]),frontier:new Set([`base`,`frontier`,`cutting`])};function j(e,t){return A[t].has(e.tier)}function ne(e){return a.filter(t=>j(t,e))}var re={stat:`kpi`,trend:`chart`,bar:`bars`,composition:`breakdown`,distribution:`bars`,scatter:`chart`,matrix:`breakdown`,table:`datatable`,compare:`compare`,list:`list`,steps:`list`,timeline:`timeline`,graph:`diagramflow`,tree:`breakdown`,flow:`diagramflow`,map:`geomap`,prose:`insight`,code:`codeblock`};function M(e){let t=i(e);if(t)return{min:t.colMin??Math.max(3,Math.round(t.colDefault*.7)),pref:t.colDefault}}var N=[{d:`math`,re:/\b(eigen\w*|matrix|matrices|vector|scalar|linear algebra|calculus|derivative|integral|theorem|polynomial|trigonometr\w*|algebra|geometry|equation|probabilit\w*|statistic\w*|logarithm|factorial)\b/i},{d:`science`,re:/\b(physic\w*|chemistr\w*|chemical|molecul\w*|atoms?|reaction|biolog\w*|dna|genes?|enzyme|quantum|thermodynamic\w*|electron|photosynthesis|periodic table|velocity|acceleration|momentum|voltage|circuit)\b/i},{d:`health`,re:/\b(symptom\w*|disease|diagnos\w*|medicine|medication|doctor|clinical|injur\w*|surgery|treatment|dosage|prescription|anatomy|therap\w*|illness|fever|rash|nausea|migraine)\b/i},{d:`fitness`,re:/\b(workout|exercise|gym|reps?|sets?|lift(ing|s)?|cardio|run(ning)?|marathon|muscles?|strength|hypertrophy|stretch\w*|weight loss)\b/i},{d:`money`,re:/\b(budget\w*|salary|income|invest\w*|savings?|debt|loans?|mortgage|tax(es)?|expenses?|spending|paycheck|retirement|portfolio|afford|finances?)\b/i},{d:`business`,re:/\b(revenue|profit|margins?|\bkpi\b|churn|pipeline|startup|funnel|\broi\b|b2b|saas|stakeholders?|quarterly|forecast|go-to-market)\b/i},{d:`sports`,re:/\b(soccer|football|basketball|baseball|tennis|hockey|golf|\bnba\b|\bnfl\b|\bmlb\b|playoffs?|tournament|standings|quarterback|inning|free throw|offside)\b/i},{d:`cooking`,re:/\b(recipe\w*|cook\w*|bak(e|ing)|ingredient\w*|meals?|dinner|lunch|breakfast|dish(es)?|cuisine|saute|simmer|roast|grill|kitchen)\b/i},{d:`travel`,re:/\b(trips?|travel\w*|flights?|itinerar\w*|hotels?|vacation|destinations?|tourist|visa|sightsee\w*|layover|airport)\b/i},{d:`tech`,re:/\b(wi-?fi|router|laptop|smartphone|software|devices?|install\w*|settings|browser|bluetooth|operating system|hard drive)\b/i},{d:`code`,re:/\b(code|functions?|api|algorithm\w*|debug\w*|compile\w*|syntax|typescript|javascript|python|repository|regex|database|query)\b/i},{d:`music`,re:/\b(chord\w*|melody|guitar|piano|instruments?|key signature|tempo|octave|musical scale|fret\w*|sheet music)\b/i},{d:`art`,re:/\b(painting|drawing|sketch\w*|sculpture|artists?|palette|illustration|portrait)\b/i},{d:`home`,re:/\b(apartment|rent(al|ing)?|lease|renovat\w*|furniture|plumb\w*|repair|toilet|sink|drain|garden\w*|appliances?|tenant|landlord)\b/i},{d:`legal`,re:/\b(legal|laws?|contracts?|clause|lawsuit|attorney|lawyer|liabilit\w*|statute|compliance|terms of service)\b/i},{d:`education`,re:/\b(stud(y|ying)|exams?|quiz\w*|homework|college|lecture|curriculum|flashcards?|syllabus|coursework)\b/i},{d:`nature`,re:/\b(animals?|plants?|trees?|weather|climate|ocean|mountains?|rivers?|ecosystem|species|dinosaur\w*|planets?|wildlife|geolog\w*)\b/i},{d:`history`,re:/\b(histor\w*|ancient|centur\w*|\bwar\b|empires?|civilization|dynast\w*|revolution|medieval)\b/i},{d:`language`,re:/\b(translat\w*|pronounc\w*|pronunciation|grammar|vocabular\w*|conjugat\w*|spanish|french|japanese|mandarin|verb tense)\b/i},{d:`data`,re:/\b(datasets?|data ?(science|scientist|analy\w*|pipeline|engineering|warehouse|lake|model(ing|ling)?)|\betl\b|\bsql\b|bigquery|tableau|power ?bi|spreadsheets?|\bcsv\b|pivot tables?|dataframe\w*|pandas)\b/i},{d:`design`,re:/\b(design system|\bux\b|\bui\b|user (experience|interface)|wireframe\w*|figma|prototyp\w*|mockups?|usability|visual hierarchy|component library|brand(ing| guidelines?)|typograph\w*|type ?scale)\b/i},{d:`photo`,re:/\b(photograph\w*|photos?|camera|aperture|shutter speed|\biso\b|exposure|\blens(es)?\b|\bf-?stops?\b|depth of field|lightroom|bokeh)\b/i},{d:`media`,re:/\b(videos?|films?|movies?|footage|podcasts?|youtube|streaming|cinematograph\w*|shot ?lists?|storyboard\w*|b-?roll|screenplay\w*)\b/i},{d:`productivity`,re:/\b(productivit\w*|to-?do\w*|task ?lists?|workflows?|habits?|routines?|time ?management|\bgtd\b|pomodoro|prioriti[sz]\w*|backlog|getting things done)\b/i},{d:`relationship`,re:/\b(relationships?|partner\w*|spouse|husband|wife|boyfriend|girlfriend|marriage|married|dating|breakups?|broke up|divorce\w*|friendships?|in-?laws?|coworkers?|my (boss|friend|mom|dad|family))\b/i},{d:`news`,re:/\b(news|headlines?|current events|breaking|press release|journalis\w*|newspapers?|world events|latest (on|news)|what'?s happening)\b/i},{d:`parenting`,re:/\b(parent\w*|toddler\w*|infants?|newborns?|\bbaby\b|babies|nursery|diaper\w*|tantrum\w*|potty training|bedtime|my (kid|child|son|daughter|baby)|developmental milestones?)\b/i},{d:`writing`,re:/\b(write|writing|rewrite|essays?|paragraphs?|\bdrafts?\b|cover letters?|poems?|poetry|short stor(y|ies)|novels?|screenplay\w*|proofread|prose|narrative|copywrit\w*)\b/i},{d:`decision`,re:/\b(decide|decisions?|choose|choosing|which (one|option|should)|pros and cons|trade-?offs?|should i (buy|get|choose|pick|go)|\bvs\.?\b|versus|compare (these|the|my|two|options))\b/i},{d:`shopping`,re:/\b(buy|buying|purchas\w*|shopping|gifts?|deals?|discount\w*|coupons?|product reviews?|wishlists?|add to cart)\b/i},{d:`reference`,re:/\b(define|definition of|meaning of|look ?up|dictionary|thesaurus|encyclopedia|glossary|translat\w*|spell(ing)? of|synonyms?|antonyms?)\b/i},{d:`lifestyle`,re:/\b(collectibles?|my collection|stamp collection|coin collection|card collection|vinyl collection|collecting (?:stamps|coins|cards|vinyl|memorabilia)|hobby collection|memorabilia)\b/i}];function P(e,t){let n=(t??[]).slice(-2).map(e=>typeof e?.content==`string`?e.content:``).join(` `);return(e+` `+n).toLowerCase()}function ie(e,t){let n=P(e||``,t),r=new Set;for(let{d:e,re:t}of N)t.test(n)&&r.add(e);return r}function ae(e,t){if(!e||e.length===0||t.size===0)return!0;for(let n of e)if(t.has(n))return!0;return!1}var F={circuitdiagram:[`science`,`tech`],molecularstructure:[`science`,`health`],periodictable:[`science`],reactionmechanism:[`science`],bodymap:[`health`,`fitness`],labpanel:[`health`],medicationschedule:[`health`],musicstaff:[`music`],chorddiagram:[`music`],sportspitch:[`sports`]};function oe(e){return e.domains??F[e.type]}var I=/\b(kill (myself|him|her|them)|killing myself|end (my|his|her|their) life|ending my life|take my (own )?life|don'?t want to (be here|live|wake up|exist)|want(ing)? to die|wanna die|suicid\w*|self.?harm|harm myself|hurt(ing)? myself|cut(ting)? myself|no reason to (live|go on)|better off dead|overdos\w*)\b/i;function se(e,t){return I.test(P(e||``,t))}var L=[{test:/\b(state machine|finite[- ]state|\bfsm\b|state diagram|state transitions?|states? and transitions?)\b/,type:`statemachine`,over:`diagram`},{test:/\b(sequence diagram|interaction diagram|message sequence|request[- ]response (?:flow|cycle)|handshake (?:between|sequence)|who calls whom)\b/,type:`sequencediagram`,over:`diagram`},{test:/\b(er[- ]?diagram|entity[- ]relationship|database schema|data model\b|tables? and (?:their )?(?:keys|relationships?))\b/,type:`erdiagram`,over:`diagram`},{test:/\b(risk matrix|probability[- ](?:and[- ]|x[- ]|by[- ])?impact|likelihood[- ](?:and[- ]|x[- ]|vs[- ])?impact|impact[- ](?:and[- ])?likelihood|risk (?:heat ?map|grid))\b/,type:`riskmatrix`,over:`matrixgrid`},{test:/\b(confusion matrix|true positives?|false positives?|precision and recall grid)\b/,type:`confusionmatrix`,over:`matrix`},{test:/\b(magic quadrant|2\s?[x×]\s?2(?: matrix| grid)?|four[- ]quadrant|positioning (?:map|matrix)|priority matrix|eisenhower (?:matrix|box))\b/,type:`quadrant`,over:`compare`},{test:/\b(?:plot|graph|sketch) (?:the )?(?:function|equation|curve|y\s*=|f\(x\))|\bgraph of (?:y|f|the function)\b|\b(?:sine|cosine|tangent) (?:curve|wave|graph)\b|\bparabola\b/,type:`plot`,over:`scatter`},{test:/\bperiodic table\b/,type:`periodictable`,over:`datatable`},{test:/\b(?:timeline|chronology|history) of\b.{0,48}\b(?:\d{3,4}s?|\d{1,2}(?:th|st|nd|rd) century|\bbce?\b|\bad\b|war|empire|dynasty|revolution|civili[sz]ation)\b/,type:`chronologicaltimeline`,over:`timeline`},{test:/\bcompare and contrast\b|\bcomparison (?:table|grid|matrix|chart)\b|\b(?:differences?|distinctions?) between\b|\bhow do\b.{0,40}\bdiffer\b|\b[\w-]+ vs\.? [\w-]+ vs\.? [\w-]+\b/,type:`comparematrix`,over:`compare`},{test:/\b(?:bfs|dfs|breadth[- ]first|depth[- ]first)\b.{0,60}\b(?:graph|node|vertex|vertices)\b|\btrace\b.{0,40}\b(?:bfs|dfs|breadth[- ]first|depth[- ]first)\b|\b(?:bfs|dfs) (?:step|traversal|from)\b/,type:`graphtrace`,over:`datastructure`},{test:/\b(?:dp|dynamic[- ]programming|memoiz[ae]tion|memoization)\s+table\b|\b(?:fill|filling)[- ](?:in )?(?:the )?(?:dp|dynamic[- ]programming)\b|\b(?:lcs|edit[- ]distance|knapsack|coin[- ]change)\b.{0,60}\btable\b/,type:`dptable`,over:`algorithmtrace`},{test:/\bhash\s+(?:table|map)\b.{0,60}\b(?:collision|chaining|bucket|separate[- ]chaining|linear[- ]probing)\b|\bseparate[- ]chaining\b|\bhash function\b.{0,50}\bbucket\b/,type:`hashtable`,over:`datastructure`},{test:/\b(?:prefix[- ]tree|trie\b|autocompletion? (?:using|with|via) (?:a )?trie|insert.{0,30}\btrie\b|search.{0,30}\btrie\b)/,type:`trie`,over:`datastructure`},{test:/\b(?:inorder|preorder|postorder|level[- ]order)\s+traversal\b|\btrace\b.{0,40}\b(?:binary[- ]tree|bst)\b|\bwalk[- ]?(?:me[- ])?through\b.{0,50}\b(?:binary[- ]tree|bst)\b|\bbst\s+(?:insert|search|delete)\b/,type:`binarytree`,over:`datastructure`},{test:/\b(?:bubble|merge|quick|insertion|selection|heap)\s+sort\b|\bsort(?:ing)?\s+algorithm\b.{0,50}\b(?:step|animate|visual|trace)\b|\bvisuali[sz]e\b.{0,40}\bsort\b|\banimated?\b.{0,30}\bsort\b/,type:`sortingviz`,over:`algorithmtrace`},{test:/\b(?:toulmin\b|grounds?\s+and\s+warrant|warrant\s+and\s+(?:grounds?|backing)|claim[\s,]+grounds?[\s,]+warrant)\b/i,type:`toulmin`,over:`argumentmap`},{test:/\b(?:character\s+(?:map|web|network|relationships?)|relationship\s+(?:map|web|diagram)\b.{0,50}\bcharacter|who(?:'s| is)\s+(?:who|friends?|rivals?)|cast\s+of\s+characters?|factions?\s+and\s+alliances?|allies?\s+and\s+rivals?)\b/i,type:`castmap`,over:`network`},{test:/\b(?:freytag|three[- ]act\s+structure|hero(?:'s)?\s+journey|save\s+the\s+cat|plot\s+structure\b|story\s+arc\b|narrative\s+arc\b|story\s+structure\b)\b/i,type:`storyarc`,over:`beatsheet`},{test:/\b(?:rhetorical\s+devices?|literary\s+devices?|figures?\s+of\s+speech|identify\s+the\s+(?:devices?|techniques?|metaphors?)|highlight\s+the\s+(?:metaphors?|similes?|alliteration)|mark\s+the\s+(?:devices?|techniques?))\b/i,type:`devicemark`,over:`annotateddoc`},{test:/\b(?:etymology\b|word\s+origin\b|roots?\s+of\s+the\s+word|where\s+does\s+(?:the\s+word\s+)?[a-z]+\s+come\s+from|latin\s+(?:and\s+greek\s+)?roots?\s+of|word\s+history)\b/i,type:`etymtree`,over:`dictionary`}];function R(e){let t=e.toLowerCase(),n=[],r=new Set;for(let e of L)e.test.test(t)&&!r.has(e.type)&&(r.add(e.type),n.push({type:e.type,over:e.over}));return n}function z(e){return e.length?`BEST-FIT COMPONENT — the content maps to a purpose-built block: prefer ${e.map(e=>`${e.type} (not ${e.over})`).join(`, `)}. The specialist renders this exact structure correctly where the generic only approximates it.`:``}var B={small:8,mid:24,frontier:30},ce=3,V=2,H=2,U=1.6,W=1.2,G=1,le=.6,K=2,ue=.8,q={base:1,frontier:1.3,cutting:1.6},J=1.2,Y=.3,X=2.5,Z=.3,de=new Set,fe=.2,pe=[`teachdiagram`,`workedexample`,`quiz`,`flashcard`],me=1.4,he=new Set([`nav`,`forms`,`pickers`,`overlays`]),ge=new Set([`kbd`,`spinner`,`skeleton`,`sliderinput`,`rangefilter`,`ratinginput`,`emptystate`,`segmented`,`toaststack`,`divider`,`spacer`]);function _e(e){return he.has(e.family)||ge.has(e.type)}function ve(e,t){let n=0;for(let r of e.dataShapes)n+=t[r]??0;return n}function ye(e){return e.shapeFit+G*e.intentPts+K*e.semFit}function be(e,t,n,r=de,i=de,a=!1){let o=ve(e,t),s=1+U*o,c=Math.max(0,e.wowWeight)**+W,l=(q[e.tier]??1)*(e.interactive?J:1),u=n.has(e.type)&&o===0?Y:1,d=r.has(e.type)?X:i.has(e.type)?Z:1,f=a&&e.family===`learn`?me:1;return s*c*l*u*d*f}function xe(e){let t=e>>>0;return()=>{t|=0,t=t+1831565813|0;let e=Math.imul(t^t>>>15,1|t);return e=e+Math.imul(e^e>>>7,61|e)^e,((e^e>>>14)>>>0)/4294967296}}function Se(e){let t=2166136261;for(let n=0;n<e.length;n++)t^=e.charCodeAt(n),t=Math.imul(t,16777619);return t>>>0}var Ce=class{pool;tree;size;highBit;total=0;live;constructor(e){this.pool=e,this.size=e.length,this.live=e.length,this.tree=new Float64Array(this.size+1);for(let t=0;t<this.size;t++)this.add(t,e[t].weight),this.total+=e[t].weight;this.highBit=this.size>0?1<<31-Math.clz32(this.size):0}add(e,t){for(let n=e+1;n<=this.size;n+=n&-n)this.tree[n]+=t}locate(e){let t=0,n=0;for(let r=this.highBit;r>0;r>>=1){let i=t+r;i<=this.size&&n+this.tree[i]<e&&(t=i,n+=this.tree[i])}return Math.min(t,this.size-1)}take(e){let t=this.locate(e),n=this.pool[t];return this.add(t,-n.weight),this.total-=n.weight,this.live--,n}};function we(e,t,n,r){let i=new Ce(e),a=[];for(;a.length<t&&i.live>0&&!(i.total<=0);){let e=i.take(n()*i.total).meta,t=r.family.get(e.family)??0;if(t>=V)continue;let o=r.archetype.get(e.archetype)??0;o>=H||(a.push(e),r.family.set(e.family,t+1),r.archetype.set(e.archetype,o+1))}return a}function Q(e){return Math.max(.5,.15*e)}function Te(e){return[...e].sort((e,t)=>t.fit-e.fit||(e.meta.type<t.meta.type?-1:1))}var Ee=2;function De(e,t,n,r){let i=Te(e),a=[],o=0;for(;o<i.length&&a.length<t;){let e=i[o].fit,s=e-Q(e),c=o;for(;c<i.length&&i[c].fit>=s;)c++;a.push(...we(i.slice(o,c),t-a.length,n,r)),o=c}return a}var Oe=5;function ke(e){let t=e.itemShapes??[],n=e.stringItems??[];if(!t.length&&!n.length)return``;let r=e=>{let t=[e.text,...(e.requiredFields??[]).filter(t=>t!==e.text),e.children?r(e.children):void 0].filter(Boolean).join(`, `);return`${e.prop}[]: {${t}}`};return` · ${[...t.map(r),...n.map(e=>`${e}[]: plain strings`)].join(`, `)}`}function Ae(e){let t=e.propHints;if(!t)return``;let n=Object.entries(t);return n.length?` · hints: ${n.map(([e,t])=>`${e}=${t}`).join(`, `)}`:``}function je(e){return e.requiredPaths?.length?` · required nested: ${e.requiredPaths.join(`, `)}`:``}function $(e,t=!1,n=!1){let r=e.requires.length?e.requires.join(`, `):`—`,i=t?w(e.type,n):null;if(i)return`- ${e.type} — ${e.blurb} · needs: ${r}${ke(e)}${je(e)}${o(e)}${Ae(e)} · example: ${i}`;let a=e.optional.slice(0,Oe),s=a.length?` · richer with: ${a.join(`, `)}`:``;return`- ${e.type} — ${e.blurb} · needs: ${r}${ke(e)}${je(e)}${o(e)}${Ae(e)}${s}`}function Me(){return T.map(r).filter(e=>!!e).map(e=>$(e)).join(`
1
+ import{n as e,t}from"./preload-helper-CiWYd9n-.js";import{n,t as r}from"./catalog-vLsIS_Na.js";import{n as i,t as a}from"./facts-CNQz8OQz.js";import{t as o}from"./liveSchema-eKgFc5D0.js";import{a as s,i as c,n as l,t as u}from"./shapes-BwXCYTlu.js";var d=`insight.scorecard.trendtile.waterfall.funnel.flightchart.deltacascade.bulletkpi.bulletchart.comparebars.bcgmatrix.pivot.groupedbars.leaderboard.datatable.roadmap.gantt.kanban.plandag.milestones.progressbar.statustimeline.healthgrid.kpidashboard.issuetree.meetingnotes.sparkstat.counter.herostat.streamgraph.scorebadge.radar.smallmultiples.arearange.waffle.histogram.boxplot.sparktable.percentilebar.statpair.calibration.ratinginput.sliderinput.segmented.rangefilter.stepindicator.pregnancyweek.cycletrack.contractiontimer.reasoning.routing.agenttrace.toolcalls.retrieval.embedmap.tokenstream.modelcompare.whatchanged.factcheck.confidencemeter.citationchain.sourcelist.claimgrid.highlightsnippet.redline.annotateddoc.docoutline.network.sunburst.researchsummary.hypothesiscard.dotplot.controlchart.errorbars.kpi.plot.matrix.diagram.diagramflow.docview.pdfreader.datastructure.bigo.complexitysummary.confusionmatrix.protocolstack.logicgates.algorithmtrace.sortingviz.graphtrace.binarytree.dptable.hashtable.trie.gridtrace.sysarchdiagram.recursiontree.sequencealign.compare.timeline.clinicaltimeline.medicationschedule.clearancematrix.anatomyfigure.odontogram.ecgstrip.vitalstrip.careplan.triageboard.mentalhealthscreen.callout.casebrief.discoverytracker.patentclaimchart.litigationtimeline.billtracker.immigrationcase.caseload.verdictcard.scenarioset.divider.wizard.goaltree.candlestick.lollipop.decisiontree.slopegraph.dumbbell.powersample.abtestresult.orgchart.treemap.processflow.journeymap.userpersona.swimlane.bubble.matrixgrid.treetable.footnotetable.tabs.deflist.faq.accordion.riskmatrix.threatmodel.pricingtable.raci.dimensiondrawing.explodedview.weldsymbol.cutlist.linebalance.moodboard.palette.photo.geomap.bars.storystrip.carousel.lightbox.beforeafter.imagecallouts.annotcallouts.videoembed.waveform.sankey.proscons.casestudy.pullquote.takeaways.skeleton.emptystate.mediacard.voicestyle.exposuretriangle.colorwheel.artanalysis.shotlist.runofshow.beatsheet.craftchart.patternpiece.storyarc.castmap.devicemark.creativetest.brandguide.musicstaff.flashcard.chronologicaltimeline.chorddiagram.mixerboard.pianokeys.fretboardmap.circleoffifths.practicelog.gallery.togglegroup.radiogroup.svgblock.scalefelt.moonphase.skychart.orbitdiagram.sizecompare.donut.foodweb.taxonrank.list.speciescard.scoreboard.ring.standings.bump.scoutingreport.tournamentbracket.banner.checklist.epicurve.web.positioncard.differential.growthcurve.painscale.badgeset.livescore.gameboard.boardgamescore.tierlist.seatingchart.checkboxgroup.numberstepper.picturesequence.vaxschedule.vetpatientchart.stickerchart.avatar.avatargroup.chipset.kbd.codeblock.toaststack.spinner.notification.tooltip.hovercard.a11yaudit.usabilityfindings.typespec.navbar.sidenav.treeview.breadcrumb.menubar.toolbar.megamenu.commandbar.pagination.commandk.modal.drawer.bottomnav.screenmap.wireframe.textfield.fileupload.textarea.combobox.formpanel.select.buttonbar.switchset.actionchecklist.otp.trustmap.datepicker.calendarpick.timepicker.daterange.colorpicker.tagsinput.searchselect.sheet.menu.popover.contextmenu.confirmdialog.roomblockdashboard.messagedraft.chatthread.dialogue.variants.verse.slidedeck.screenplay.socialpost.storystructure.ideaboard.longread.variantswitch.forecast.agenda.picks.transitroute.timezones.lifewheel.promptset.prayertimes.amortization.receipt.settleup.bracketbar.stackedbars.budgetallocator.paystub.taxbracket.taxreturnsummary.siteplan.zoningmap.factsheet.newsdigest.dictionary.translation.pronunciation.gloss.stacktrace.syntaxbreakdown.codewalk.hearit.ipachart.scriptstroke.paralleltext.comparematrix.toulmin.etymtree.rollcall.termbase.historicalperson.onthisday.countrycard.worldgrid.warconflict.distinctioncard.chart.stack.messagescriptset.eligibilitycheck.bridge.supplydemand.payoffdiagram.yieldcurve.efficientfrontier.bondladder.collectiontracker.cma.claimagecompare.scatter.companionnote.breathpacer.sleepcycle.heat.bodymap.calheat.workoutplan.macrobreakdown.runninglog.zoneladder.streakgrid.copingmenu.thoughtrecord.habittracker.readinglist.maproute.packlist.weathernow.pictogramchart.menucard.quadrant.venn.recipecard.cocktailcard.ingredientmatrix.plangrid.nutritionlabel.unitconvert.seasonband.worthit.reviewsynth.sizechart.breakdown.gauge.countdown.blanks.reframecard.talktrack.resume.understand.schema.buildprog.sponsorshiptracker.contentcalendar.podcastplanner.marimekko.timeseriesdecomposition.financialstatement.pareto.flowchord.evidencetrace.cohortgrid.fivewhychain.pipeline.quotes.emotionwheel.livecompute.captable.vestingschedule.termsheet.fundraisingrounds.saferterms.dilutionwaterfall.threestatementlink.tamsam.trainingcurve.burnrunway.ridgeplot.correlationheatmap.scatterplotmatrix.roccurve.precisionrecallcurve.biasvariance.gradientdescent.nnarchitecture.datadictionary.datapipeline.ablationtable.interviewscorecard.paybandchart.headcountplan.dosdonts.breakeven.depreciationschedule.logicmodel.fiveforces.cvssscorecard.changelog.lessonplan.equationblock.numberline.workedexample.quiz.quizsession.piedonut.distributioncurve.dualaxis.scatterregression.molecularstructure.sequencediagram.diffviewer.sensitivitytable.periodictable.elementcard.circuitdiagram.statemachine.erdiagram.labpanel.geometrycanvas.freebodydiagram.vectorspace.reactionmechanism.synthesisroute.hazardcard.labprotocol.argumentmap.teachdiagram.fractionbar.gridmatrix.conjugation.probabilitytree.mindshape.world.areaplot.wave.energydiagram.phylotree.parsetree.eratimeline.celldiagram.raydiagram.interferencepattern.vectorfield.phasediagram.particlemodel.bohrmodel.orbitaldiagram.pedigree.indifferencecurve.causationchain.equationbalancer.yieldcalc.vseprmolecule.titrationcurve.unitcircle.solidfigure.crosssection.loaddiagram.scansionmark.clockface.moneytray.placevaluechart.columnarithmetic.pictograph.populationpyramid.shapecard.letterform.toolscale.cyclewheel.phonicsword.sightwordlist.alphabetchart.morphemebreakdown.skilltree.violinplot.stemleafplot.surfaceplot.qqplot.samplingdistribution.gridtransform.phaseportrait.twocolumnproof.polarplot.taylorseries.areamodel.dnahelix.plasmidmap.linespectrum.pyramidtiers.rubric.gradebook.spectrumtable.fmeatable.billofmaterials.chromatogram.stressstraincurve.gatingplot.expressionheatmap.gellane.parallelcoordinates.primefactortree.numbersequence.constantcard.baseconversion.doseladder.flow.analogymap.logstream.gitgraph.queryplan.flamegraph.regexscope.terminal.httpexchange.latencydist.ecdf.codemap.checks.diff.componentapi.sportspitch.developmentmilestone.dentaltreatmentplan.estateplanchecklist.subtextdecode.rehearsal.caregivercoord.allocatepeople.lifeline.familytree.relationshipmap.vendortracker.wiringdiagram.pipingschematic.controlblockdiagram.floorplan.howtosteps.spacefit.thesis.alignmentgauge.standingalerts.sourceslineage.preflightchecklist.inventoryreorder.visachecklist.hrdiagram.ternaryplot.parliamentseats.prooftree.fishbone.classdiagram.energybarchart.karyotype.numberbond.posbreakdown.frayermodel.forestplot.cashflowtimeline.businesscanvas.guitartab.pianoroll.stitchchart.wordsearch.playingcards.statblock.decisionrecord.assumptionledger.requirementboard.experimentplan.negotiationplan.stakeholdermap.serviceblueprint.approvalflow.resourceplan.maintenanceplan.contactdirectory.tripbudget.careinstructions.clausecompare.incidentbrief.coveragecheck.offerbreakdown`.split(`.`);e();var f=[()=>t(()=>import(`./shard000-Bx6Nmt0m.js`),[]),()=>t(()=>import(`./shard001-CL6O9SLr.js`),[]),()=>t(()=>import(`./shard002-vLQ0Ss-O.js`),[]),()=>t(()=>import(`./shard003-kKZdpzuh.js`),[]),()=>t(()=>import(`./shard004-CdVohAu1.js`),[]),()=>t(()=>import(`./shard005-CMzF_uJB.js`),[]),()=>t(()=>import(`./shard006-DQoDWuoN.js`),[]),()=>t(()=>import(`./shard007-Ck0N0IUk.js`),[]),()=>t(()=>import(`./shard008-Dt395x0Q.js`),[]),()=>t(()=>import(`./shard009-D_z8Lhqh.js`),[]),()=>t(()=>import(`./shard010-Bal9PeRL.js`),[]),()=>t(()=>import(`./shard011-l-w2t2Ie.js`),[]),()=>t(()=>import(`./shard012-BTw_UO1C.js`),[]),()=>t(()=>import(`./shard013-D8ZjKKYb.js`),[]),()=>t(()=>import(`./shard014-Cth_76It.js`),[]),()=>t(()=>import(`./shard015-DdYJVsHx.js`),[]),()=>t(()=>import(`./shard016-BdlBf9uZ.js`),[]),()=>t(()=>import(`./shard017-C3HTxh6t.js`),[]),()=>t(()=>import(`./shard018-Mf4wvqVk.js`),[]),()=>t(()=>import(`./shard019-Dpcy1Arx.js`),[]),()=>t(()=>import(`./shard020-BNvKfQld.js`),[]),()=>t(()=>import(`./shard021-D0kpI_PQ.js`),[]),()=>t(()=>import(`./shard022-Cjms7kAe.js`),[]),()=>t(()=>import(`./shard023-Bdwci7fy.js`),[]),()=>t(()=>import(`./shard024-BBoyPtpP.js`),[]),()=>t(()=>import(`./shard025-lMGpgN_0.js`),[]),()=>t(()=>import(`./shard026-Bp3UVI4_.js`),[]),()=>t(()=>import(`./shard027-C4HTpdeT.js`),[]),()=>t(()=>import(`./shard028-BsFTH3Sf.js`),[]),()=>t(()=>import(`./shard029-B3dEcXPy.js`),[]),()=>t(()=>import(`./shard030-DWwA-fNs.js`),[]),()=>t(()=>import(`./shard031-RhqA_0nH.js`),[]),()=>t(()=>import(`./shard032-BlZdG1Yi.js`),[]),()=>t(()=>import(`./shard033-Dmx2lOjI.js`),[]),()=>t(()=>import(`./shard034-BLOFKJT4.js`),[]),()=>t(()=>import(`./shard035-DMXdH733.js`),[]),()=>t(()=>import(`./shard036-DzOiEn23.js`),[]),()=>t(()=>import(`./shard037-BcHfVaYM.js`),[]),()=>t(()=>import(`./shard038-KozOx-Jh.js`),[]),()=>t(()=>import(`./shard039-apdILQwC.js`),[]),()=>t(()=>import(`./shard040-BrNXGaBi.js`),[]),()=>t(()=>import(`./shard041-D6eq9h1u.js`),[]),()=>t(()=>import(`./shard042-M-L34DbY.js`),[]),()=>t(()=>import(`./shard043-Ct6_C2pN.js`),[]),()=>t(()=>import(`./shard044-Bo0iaVHx.js`),[]),()=>t(()=>import(`./shard045-9ccZ4Y_N.js`),[]),()=>t(()=>import(`./shard046-eXoP478L.js`),[]),()=>t(()=>import(`./shard047-N56r6Lsz.js`),[]),()=>t(()=>import(`./shard048-BeKX7cI8.js`),[]),()=>t(()=>import(`./shard049-C4_IyApZ.js`),[]),()=>t(()=>import(`./shard050-B-YpP0B6.js`),[]),()=>t(()=>import(`./shard051-Bww5_KB2.js`),[]),()=>t(()=>import(`./shard052-DErwF8Df.js`),[]),()=>t(()=>import(`./shard053-C-qGH4jz.js`),[]),()=>t(()=>import(`./shard054-kcSxZrSj.js`),[]),()=>t(()=>import(`./shard055-CsETBTqa.js`),[]),()=>t(()=>import(`./shard056-CdBR4qTC.js`),[]),()=>t(()=>import(`./shard057-yRUG8B9e.js`),[]),()=>t(()=>import(`./shard058-DeDAnECG.js`),[]),()=>t(()=>import(`./shard059-Dh6jbDnW.js`),[]),()=>t(()=>import(`./shard060-B5kpWrhW.js`),[]),()=>t(()=>import(`./shard061-BTnj5LZA.js`),[]),()=>t(()=>import(`./shard062-DC7LTaNc.js`),[]),()=>t(()=>import(`./shard063-C8SIGCfd.js`),[]),()=>t(()=>import(`./shard064-DLyASocW.js`),[]),()=>t(()=>import(`./shard065-Cy_yV4ry.js`),[]),()=>t(()=>import(`./shard066-BmjVQqFX.js`),[]),()=>t(()=>import(`./shard067-uZUJsqtF.js`),[]),()=>t(()=>import(`./shard068-CXVjyJU4.js`),[]),()=>t(()=>import(`./shard069-CyfmjAm-.js`),[]),()=>t(()=>import(`./shard070-CxN3xiuY.js`),[]),()=>t(()=>import(`./shard071-CP1WrYC-.js`),[]),()=>t(()=>import(`./shard072-D6L5Yr05.js`),[]),()=>t(()=>import(`./shard073-DFEzkwg2.js`),[]),()=>t(()=>import(`./shard074-BSv3rvRL.js`),[]),()=>t(()=>import(`./shard075-Bt0OjGVd.js`),[]),()=>t(()=>import(`./shard076-b5-2mnEN.js`),[]),()=>t(()=>import(`./shard077-DGa0bRNk.js`),[]),()=>t(()=>import(`./shard078-CI97pFkb.js`),[])],p=new Map(d.map((e,t)=>[e,Math.floor(t/8)])),m=new Set,h=new Map,g=new Map;f.length;function _(e){return p.get(e)??-1}function v(e){if(m.has(e))return Promise.resolve();let t=h.get(e);if(t)return t;let n=f[e];if(!n)return Promise.resolve();let r=n().then(({E:t})=>{for(let[e,n]of Object.entries(t))g.set(e,n);m.add(e)}).catch(()=>{}).finally(()=>h.delete(e));return h.set(e,r),r}async function ee(e){let t=new Set;for(let n of e){let e=_(n);e>=0&&!m.has(e)&&t.add(e)}t.size&&await Promise.all([...t].map(v))}function y(e){let t=g.get(e);return t&&typeof t==`object`&&!Array.isArray(t)?t:null}var b={maxStr:48,maxArray:2},x={maxStr:90,maxArray:5};function S(e,t){if(typeof e==`string`)return e.length>t.maxStr?`${e.slice(0,t.maxStr-1)}…`:e;if(Array.isArray(e))return e.slice(0,t.maxArray).map(e=>S(e,t));if(e&&typeof e==`object`){let n={};for(let[r,i]of Object.entries(e))n[r]=S(i,t);return n}return e}var C=new Map;function w(e,t=!1){let n=`${t?`d`:`c`}:${e}`,r=C.get(n);if(r!==void 0)return r;let i=y(e),a=_(e);if(i===null&&a>=0&&!m.has(a))return null;let o=null;if(i!==null)try{o=JSON.stringify(S(i,t?x:b))}catch{o=null}return C.set(n,o),o}var T=[`insight`,`chart`,`breakdown`,`list`,`timeline`,`compare`,`kpi`,`ring`],E=new Set([...T,`bars`,`stack`,`donut`,`gauge`]),D=new Set([`diagramflow`,`composite`,`svgblock`]),O=new Set([...T,`bars`,`stack`,`donut`,`gauge`,`diagramflow`,`composite`]),k=new Set([`map`,`markermap`,`choropleth`]),te=new Set(a.filter(e=>(e.coercer===`generic`||O.has(e.type))&&!k.has(e.type)).map(e=>e.type)),A={small:new Set([`base`,`frontier`]),mid:new Set([`base`,`frontier`,`cutting`]),frontier:new Set([`base`,`frontier`,`cutting`])};function j(e,t){return A[t].has(e.tier)}function ne(e){return a.filter(t=>j(t,e))}var re={stat:`kpi`,trend:`chart`,bar:`bars`,composition:`breakdown`,distribution:`bars`,scatter:`chart`,matrix:`breakdown`,table:`datatable`,compare:`compare`,list:`list`,steps:`list`,timeline:`timeline`,graph:`diagramflow`,tree:`breakdown`,flow:`diagramflow`,map:`geomap`,prose:`insight`,code:`codeblock`};function M(e){let t=i(e);if(t)return{min:t.colMin??Math.max(3,Math.round(t.colDefault*.7)),pref:t.colDefault}}var N=[{d:`math`,re:/\b(eigen\w*|matrix|matrices|vector|scalar|linear algebra|calculus|derivative|integral|theorem|polynomial|trigonometr\w*|algebra|geometry|equation|probabilit\w*|statistic\w*|logarithm|factorial)\b/i},{d:`science`,re:/\b(physic\w*|chemistr\w*|chemical|molecul\w*|atoms?|reaction|biolog\w*|dna|genes?|enzyme|quantum|thermodynamic\w*|electron|photosynthesis|periodic table|velocity|acceleration|momentum|voltage|circuit)\b/i},{d:`health`,re:/\b(symptom\w*|disease|diagnos\w*|medicine|medication|doctor|clinical|injur\w*|surgery|treatment|dosage|prescription|anatomy|therap\w*|illness|fever|rash|nausea|migraine)\b/i},{d:`fitness`,re:/\b(workout|exercise|gym|reps?|sets?|lift(ing|s)?|cardio|run(ning)?|marathon|muscles?|strength|hypertrophy|stretch\w*|weight loss)\b/i},{d:`money`,re:/\b(budget\w*|salary|income|invest\w*|savings?|debt|loans?|mortgage|tax(es)?|expenses?|spending|paycheck|retirement|portfolio|afford|finances?)\b/i},{d:`business`,re:/\b(revenue|profit|margins?|\bkpi\b|churn|pipeline|startup|funnel|\broi\b|b2b|saas|stakeholders?|quarterly|forecast|go-to-market)\b/i},{d:`sports`,re:/\b(soccer|football|basketball|baseball|tennis|hockey|golf|\bnba\b|\bnfl\b|\bmlb\b|playoffs?|tournament|standings|quarterback|inning|free throw|offside)\b/i},{d:`cooking`,re:/\b(recipe\w*|cook\w*|bak(e|ing)|ingredient\w*|meals?|dinner|lunch|breakfast|dish(es)?|cuisine|saute|simmer|roast|grill|kitchen)\b/i},{d:`travel`,re:/\b(trips?|travel\w*|flights?|itinerar\w*|hotels?|vacation|destinations?|tourist|visa|sightsee\w*|layover|airport)\b/i},{d:`tech`,re:/\b(wi-?fi|router|laptop|smartphone|software|devices?|install\w*|settings|browser|bluetooth|operating system|hard drive)\b/i},{d:`code`,re:/\b(code|functions?|api|algorithm\w*|debug\w*|compile\w*|syntax|typescript|javascript|python|repository|regex|database|query)\b/i},{d:`music`,re:/\b(chord\w*|melody|guitar|piano|instruments?|key signature|tempo|octave|musical scale|fret\w*|sheet music)\b/i},{d:`art`,re:/\b(painting|drawing|sketch\w*|sculpture|artists?|palette|illustration|portrait)\b/i},{d:`home`,re:/\b(apartment|rent(al|ing)?|lease|renovat\w*|furniture|plumb\w*|repair|toilet|sink|drain|garden\w*|appliances?|tenant|landlord)\b/i},{d:`legal`,re:/\b(legal|laws?|contracts?|clause|lawsuit|attorney|lawyer|liabilit\w*|statute|compliance|terms of service)\b/i},{d:`education`,re:/\b(stud(y|ying)|exams?|quiz\w*|homework|college|lecture|curriculum|flashcards?|syllabus|coursework)\b/i},{d:`nature`,re:/\b(animals?|plants?|trees?|weather|climate|ocean|mountains?|rivers?|ecosystem|species|dinosaur\w*|planets?|wildlife|geolog\w*)\b/i},{d:`history`,re:/\b(histor\w*|ancient|centur\w*|\bwar\b|empires?|civilization|dynast\w*|revolution|medieval)\b/i},{d:`language`,re:/\b(translat\w*|pronounc\w*|pronunciation|grammar|vocabular\w*|conjugat\w*|spanish|french|japanese|mandarin|verb tense)\b/i},{d:`data`,re:/\b(datasets?|data ?(science|scientist|analy\w*|pipeline|engineering|warehouse|lake|model(ing|ling)?)|\betl\b|\bsql\b|bigquery|tableau|power ?bi|spreadsheets?|\bcsv\b|pivot tables?|dataframe\w*|pandas)\b/i},{d:`design`,re:/\b(design system|\bux\b|\bui\b|user (experience|interface)|wireframe\w*|figma|prototyp\w*|mockups?|usability|visual hierarchy|component library|brand(ing| guidelines?)|typograph\w*|type ?scale)\b/i},{d:`photo`,re:/\b(photograph\w*|photos?|camera|aperture|shutter speed|\biso\b|exposure|\blens(es)?\b|\bf-?stops?\b|depth of field|lightroom|bokeh)\b/i},{d:`media`,re:/\b(videos?|films?|movies?|footage|podcasts?|youtube|streaming|cinematograph\w*|shot ?lists?|storyboard\w*|b-?roll|screenplay\w*)\b/i},{d:`productivity`,re:/\b(productivit\w*|to-?do\w*|task ?lists?|workflows?|habits?|routines?|time ?management|\bgtd\b|pomodoro|prioriti[sz]\w*|backlog|getting things done)\b/i},{d:`relationship`,re:/\b(relationships?|partner\w*|spouse|husband|wife|boyfriend|girlfriend|marriage|married|dating|breakups?|broke up|divorce\w*|friendships?|in-?laws?|coworkers?|my (boss|friend|mom|dad|family))\b/i},{d:`news`,re:/\b(news|headlines?|current events|breaking|press release|journalis\w*|newspapers?|world events|latest (on|news)|what'?s happening)\b/i},{d:`parenting`,re:/\b(parent\w*|toddler\w*|infants?|newborns?|\bbaby\b|babies|nursery|diaper\w*|tantrum\w*|potty training|bedtime|my (kid|child|son|daughter|baby)|developmental milestones?)\b/i},{d:`writing`,re:/\b(write|writing|rewrite|essays?|paragraphs?|\bdrafts?\b|cover letters?|poems?|poetry|short stor(y|ies)|novels?|screenplay\w*|proofread|prose|narrative|copywrit\w*)\b/i},{d:`decision`,re:/\b(decide|decisions?|choose|choosing|which (one|option|should)|pros and cons|trade-?offs?|should i (buy|get|choose|pick|go)|\bvs\.?\b|versus|compare (these|the|my|two|options))\b/i},{d:`shopping`,re:/\b(buy|buying|purchas\w*|shopping|gifts?|deals?|discount\w*|coupons?|product reviews?|wishlists?|add to cart)\b/i},{d:`reference`,re:/\b(define|definition of|meaning of|look ?up|dictionary|thesaurus|encyclopedia|glossary|translat\w*|spell(ing)? of|synonyms?|antonyms?)\b/i},{d:`lifestyle`,re:/\b(collectibles?|my collection|stamp collection|coin collection|card collection|vinyl collection|collecting (?:stamps|coins|cards|vinyl|memorabilia)|hobby collection|memorabilia)\b/i}];function P(e,t){let n=(t??[]).slice(-2).map(e=>typeof e?.content==`string`?e.content:``).join(` `);return(e+` `+n).toLowerCase()}function ie(e,t){let n=P(e||``,t),r=new Set;for(let{d:e,re:t}of N)t.test(n)&&r.add(e);return r}function ae(e,t){if(!e||e.length===0||t.size===0)return!0;for(let n of e)if(t.has(n))return!0;return!1}var F={circuitdiagram:[`science`,`tech`],molecularstructure:[`science`,`health`],periodictable:[`science`],reactionmechanism:[`science`],bodymap:[`health`,`fitness`],labpanel:[`health`],medicationschedule:[`health`],musicstaff:[`music`],chorddiagram:[`music`],sportspitch:[`sports`]};function oe(e){return e.domains??F[e.type]}var I=/\b(kill (myself|him|her|them)|killing myself|end (my|his|her|their) life|ending my life|take my (own )?life|don'?t want to (be here|live|wake up|exist)|want(ing)? to die|wanna die|suicid\w*|self.?harm|harm myself|hurt(ing)? myself|cut(ting)? myself|no reason to (live|go on)|better off dead|overdos\w*)\b/i;function se(e,t){return I.test(P(e||``,t))}var L=[{test:/\b(state machine|finite[- ]state|\bfsm\b|state diagram|state transitions?|states? and transitions?)\b/,type:`statemachine`,over:`diagram`},{test:/\b(sequence diagram|interaction diagram|message sequence|request[- ]response (?:flow|cycle)|handshake (?:between|sequence)|who calls whom)\b/,type:`sequencediagram`,over:`diagram`},{test:/\b(er[- ]?diagram|entity[- ]relationship|database schema|data model\b|tables? and (?:their )?(?:keys|relationships?))\b/,type:`erdiagram`,over:`diagram`},{test:/\b(risk matrix|probability[- ](?:and[- ]|x[- ]|by[- ])?impact|likelihood[- ](?:and[- ]|x[- ]|vs[- ])?impact|impact[- ](?:and[- ])?likelihood|risk (?:heat ?map|grid))\b/,type:`riskmatrix`,over:`matrixgrid`},{test:/\b(confusion matrix|true positives?|false positives?|precision and recall grid)\b/,type:`confusionmatrix`,over:`matrix`},{test:/\b(magic quadrant|2\s?[x×]\s?2(?: matrix| grid)?|four[- ]quadrant|positioning (?:map|matrix)|priority matrix|eisenhower (?:matrix|box))\b/,type:`quadrant`,over:`compare`},{test:/\b(?:plot|graph|sketch) (?:the )?(?:function|equation|curve|y\s*=|f\(x\))|\bgraph of (?:y|f|the function)\b|\b(?:sine|cosine|tangent) (?:curve|wave|graph)\b|\bparabola\b/,type:`plot`,over:`scatter`},{test:/\bperiodic table\b/,type:`periodictable`,over:`datatable`},{test:/\b(?:timeline|chronology|history) of\b.{0,48}\b(?:\d{3,4}s?|\d{1,2}(?:th|st|nd|rd) century|\bbce?\b|\bad\b|war|empire|dynasty|revolution|civili[sz]ation)\b/,type:`chronologicaltimeline`,over:`timeline`},{test:/\bcompare and contrast\b|\bcomparison (?:table|grid|matrix|chart)\b|\b(?:differences?|distinctions?) between\b|\bhow do\b.{0,40}\bdiffer\b|\b[\w-]+ vs\.? [\w-]+ vs\.? [\w-]+\b/,type:`comparematrix`,over:`compare`},{test:/\b(?:bfs|dfs|breadth[- ]first|depth[- ]first)\b.{0,60}\b(?:graph|node|vertex|vertices)\b|\btrace\b.{0,40}\b(?:bfs|dfs|breadth[- ]first|depth[- ]first)\b|\b(?:bfs|dfs) (?:step|traversal|from)\b/,type:`graphtrace`,over:`datastructure`},{test:/\b(?:dp|dynamic[- ]programming|memoiz[ae]tion|memoization)\s+table\b|\b(?:fill|filling)[- ](?:in )?(?:the )?(?:dp|dynamic[- ]programming)\b|\b(?:lcs|edit[- ]distance|knapsack|coin[- ]change)\b.{0,60}\btable\b/,type:`dptable`,over:`algorithmtrace`},{test:/\bhash\s+(?:table|map)\b.{0,60}\b(?:collision|chaining|bucket|separate[- ]chaining|linear[- ]probing)\b|\bseparate[- ]chaining\b|\bhash function\b.{0,50}\bbucket\b/,type:`hashtable`,over:`datastructure`},{test:/\b(?:prefix[- ]tree|trie\b|autocompletion? (?:using|with|via) (?:a )?trie|insert.{0,30}\btrie\b|search.{0,30}\btrie\b)/,type:`trie`,over:`datastructure`},{test:/\b(?:inorder|preorder|postorder|level[- ]order)\s+traversal\b|\btrace\b.{0,40}\b(?:binary[- ]tree|bst)\b|\bwalk[- ]?(?:me[- ])?through\b.{0,50}\b(?:binary[- ]tree|bst)\b|\bbst\s+(?:insert|search|delete)\b/,type:`binarytree`,over:`datastructure`},{test:/\b(?:bubble|merge|quick|insertion|selection|heap)\s+sort\b|\bsort(?:ing)?\s+algorithm\b.{0,50}\b(?:step|animate|visual|trace)\b|\bvisuali[sz]e\b.{0,40}\bsort\b|\banimated?\b.{0,30}\bsort\b/,type:`sortingviz`,over:`algorithmtrace`},{test:/\b(?:toulmin\b|grounds?\s+and\s+warrant|warrant\s+and\s+(?:grounds?|backing)|claim[\s,]+grounds?[\s,]+warrant)\b/i,type:`toulmin`,over:`argumentmap`},{test:/\b(?:character\s+(?:map|web|network|relationships?)|relationship\s+(?:map|web|diagram)\b.{0,50}\bcharacter|who(?:'s| is)\s+(?:who|friends?|rivals?)|cast\s+of\s+characters?|factions?\s+and\s+alliances?|allies?\s+and\s+rivals?)\b/i,type:`castmap`,over:`network`},{test:/\b(?:freytag|three[- ]act\s+structure|hero(?:'s)?\s+journey|save\s+the\s+cat|plot\s+structure\b|story\s+arc\b|narrative\s+arc\b|story\s+structure\b)\b/i,type:`storyarc`,over:`beatsheet`},{test:/\b(?:rhetorical\s+devices?|literary\s+devices?|figures?\s+of\s+speech|identify\s+the\s+(?:devices?|techniques?|metaphors?)|highlight\s+the\s+(?:metaphors?|similes?|alliteration)|mark\s+the\s+(?:devices?|techniques?))\b/i,type:`devicemark`,over:`annotateddoc`},{test:/\b(?:etymology\b|word\s+origin\b|roots?\s+of\s+the\s+word|where\s+does\s+(?:the\s+word\s+)?[a-z]+\s+come\s+from|latin\s+(?:and\s+greek\s+)?roots?\s+of|word\s+history)\b/i,type:`etymtree`,over:`dictionary`}];function R(e){let t=e.toLowerCase(),n=[],r=new Set;for(let e of L)e.test.test(t)&&!r.has(e.type)&&(r.add(e.type),n.push({type:e.type,over:e.over}));return n}function z(e){return e.length?`BEST-FIT COMPONENT — the content maps to a purpose-built block: prefer ${e.map(e=>`${e.type} (not ${e.over})`).join(`, `)}. The specialist renders this exact structure correctly where the generic only approximates it.`:``}var B={small:8,mid:24,frontier:30},ce=3,V=2,H=2,U=1.6,W=1.2,G=1,le=.6,K=2,ue=.8,q={base:1,frontier:1.3,cutting:1.6},J=1.2,Y=.3,X=2.5,Z=.3,de=new Set,fe=.2,pe=[`teachdiagram`,`workedexample`,`quiz`,`flashcard`],me=1.4,he=new Set([`nav`,`forms`,`pickers`,`overlays`]),ge=new Set([`kbd`,`spinner`,`skeleton`,`sliderinput`,`rangefilter`,`ratinginput`,`emptystate`,`segmented`,`toaststack`,`divider`,`spacer`]);function _e(e){return he.has(e.family)||ge.has(e.type)}function ve(e,t){let n=0;for(let r of e.dataShapes)n+=t[r]??0;return n}function ye(e){return e.shapeFit+G*e.intentPts+K*e.semFit}function be(e,t,n,r=de,i=de,a=!1){let o=ve(e,t),s=1+U*o,c=Math.max(0,e.wowWeight)**+W,l=(q[e.tier]??1)*(e.interactive?J:1),u=n.has(e.type)&&o===0?Y:1,d=r.has(e.type)?X:i.has(e.type)?Z:1,f=a&&e.family===`learn`?me:1;return s*c*l*u*d*f}function xe(e){let t=e>>>0;return()=>{t|=0,t=t+1831565813|0;let e=Math.imul(t^t>>>15,1|t);return e=e+Math.imul(e^e>>>7,61|e)^e,((e^e>>>14)>>>0)/4294967296}}function Se(e){let t=2166136261;for(let n=0;n<e.length;n++)t^=e.charCodeAt(n),t=Math.imul(t,16777619);return t>>>0}var Ce=class{pool;tree;size;highBit;total=0;live;constructor(e){this.pool=e,this.size=e.length,this.live=e.length,this.tree=new Float64Array(this.size+1);for(let t=0;t<this.size;t++)this.add(t,e[t].weight),this.total+=e[t].weight;this.highBit=this.size>0?1<<31-Math.clz32(this.size):0}add(e,t){for(let n=e+1;n<=this.size;n+=n&-n)this.tree[n]+=t}locate(e){let t=0,n=0;for(let r=this.highBit;r>0;r>>=1){let i=t+r;i<=this.size&&n+this.tree[i]<e&&(t=i,n+=this.tree[i])}return Math.min(t,this.size-1)}take(e){let t=this.locate(e),n=this.pool[t];return this.add(t,-n.weight),this.total-=n.weight,this.live--,n}};function we(e,t,n,r){let i=new Ce(e),a=[];for(;a.length<t&&i.live>0&&!(i.total<=0);){let e=i.take(n()*i.total).meta,t=r.family.get(e.family)??0;if(t>=V)continue;let o=r.archetype.get(e.archetype)??0;o>=H||(a.push(e),r.family.set(e.family,t+1),r.archetype.set(e.archetype,o+1))}return a}function Q(e){return Math.max(.5,.15*e)}function Te(e){return[...e].sort((e,t)=>t.fit-e.fit||(e.meta.type<t.meta.type?-1:1))}var Ee=2;function De(e,t,n,r){let i=Te(e),a=[],o=0;for(;o<i.length&&a.length<t;){let e=i[o].fit,s=e-Q(e),c=o;for(;c<i.length&&i[c].fit>=s;)c++;a.push(...we(i.slice(o,c),t-a.length,n,r)),o=c}return a}var Oe=5;function ke(e){let t=e.itemShapes??[],n=e.stringItems??[];if(!t.length&&!n.length)return``;let r=e=>{let t=[e.text,...(e.requiredFields??[]).filter(t=>t!==e.text),e.children?r(e.children):void 0].filter(Boolean).join(`, `);return`${e.prop}[]: {${t}}`};return` · ${[...t.map(r),...n.map(e=>`${e}[]: plain strings`)].join(`, `)}`}function Ae(e){let t=e.propHints;if(!t)return``;let n=Object.entries(t);return n.length?` · hints: ${n.map(([e,t])=>`${e}=${t}`).join(`, `)}`:``}function je(e){return e.requiredPaths?.length?` · required nested: ${e.requiredPaths.join(`, `)}`:``}function $(e,t=!1,n=!1){let r=e.requires.length?e.requires.join(`, `):`—`,i=t?w(e.type,n):null;if(i)return`- ${e.type} — ${e.blurb} · needs: ${r}${ke(e)}${je(e)}${o(e)}${Ae(e)} · example: ${i}`;let a=e.optional.slice(0,Oe),s=a.length?` · richer with: ${a.join(`, `)}`:``;return`- ${e.type} — ${e.blurb} · needs: ${r}${ke(e)}${je(e)}${o(e)}${Ae(e)}${s}`}function Me(){return T.map(r).filter(e=>!!e).map(e=>$(e)).join(`
2
2
  `)}var Ne=3;function Pe(e,t){let n=[...e.map(e=>r(e.type)).filter(e=>!!e)].sort((e,n)=>{let r=+((t.get(e.type)??0)>0),i=+((t.get(n.type)??0)>0);return r===i?n.wowWeight-e.wowWeight:i-r}).map((e,t)=>$(e,t<Ne,!0)),i=[];return n.length&&i.push(`HERO COMPONENTS for THIS answer — your most impressive options, best first. Build the`,`canvas AROUND two or three of these (a demo-grade reply leads with the cool visuals), and`,`fill in the rest with the common blocks below. Pick only components that genuinely FIT this`,`answer's content — a striking visual used for data it wasn't meant for reads as a mistake;`,`when in doubt prefer the clearer block. Use the exact prop NAMES and printed limits shown.`,`Treat every needs/item-shape/required-nested/hints clause as an executable contract: all`,`required strings are nonblank, ids are unique, references resolve to an existing id, and`,`closed values match exactly. If you cannot satisfy a contract, omit that block and use a`,`simpler offered type; never send a partial or placeholder-shaped component.`,`The example shows SHAPE and DENSITY, not the answer. Prioritize the highest-value real items`,`that fit; summarize any remainder and offer it as a follow-up instead of cramming, shrinking,`,`or overflowing the card. Use the ANSWER'S OWN real values — never copy example values:`,...n,``),i.push(`ALWAYS AVAILABLE — the reliable staples. Use these freely alongside the hero components`,`(every good canvas mixes both); fall back to a plain insight/list/breakdown only when`,`nothing richer fits:`,Me()),i.join(`
3
3
  `)}function Fe(e){try{let t=l(e.userText,e.history),n=e.attachments??[],r=[];(n.some(e=>e.kind===`sheet`)||n.some(e=>e.kind===`image`)&&/\b(receipt|itemi[sz]e|line items?|breakdown|invoice|bill|expenses?|subtotal|totals?|tax)\b/i.test(e.userText))&&r.push(`datatable`),r.length&&(t.tabular=(t.tabular??0)+1.2);let i=new Set(e.recent??[]),a=new Set(e.lessons?.prefer??[]),o=new Set(e.lessons?.avoid??[]),d=e.exclude,f=ie(e.userText,e.history),p=new Set(u(e.userText)),m=R(e.userText);for(let e of m)p.add(e.type);for(let e of r)p.add(e);let h=!!e.teaching&&e.tier!==`small`;if(h)for(let e of pe)p.add(e);let g=se(e.userText,e.history),_=g?new Set([`companionnote`,`reframecard`,`breathpacer`,`copingmenu`]):null,v=new Set(s(c(e.userText,e.history))),ee=e=>{let t=0;for(let n of e.intents??[])v.has(n)&&(t+=1);return t},y=e.semanticFit,b=e=>y?.get(e.type)??0,x=ne(e.tier).filter(e=>te.has(e.type)&&!T.includes(e.type)&&!_e(e)&&!(d&&d.has(e.type))&&(p.has(e.type)||ae(oe(e),f))&&!(_&&_.has(e.type))&&!(e.type===`lifeline`&&!g)).map(e=>{let n=ee(e),r=b(e);return{meta:e,ip:n,sem:r,fit:ye({shapeFit:ve(e,t),intentPts:n,semFit:r})}}),S=x.some(e=>e.fit>0),C=x.map(({meta:e,ip:n,sem:r,fit:s})=>({meta:e,fit:s,weight:be(e,t,i,a,o,h)*(1+le*n+ue*r)*(S&&s===0?fe:1)})),w=e.complexity===`lean`||e.complexity===`brief`,E=e.speedTier===`slow`?Math.max(6,Math.round(B[e.tier]*.45)):B[e.tier],D=w?ce:E,O=xe((Se(e.userText)^Math.imul((e.rotation??0)+1,2654435761))>>>0),k=new Map(C.map(e=>[e.meta.type,e.meta])),A=[...u(e.userText),...r].map(e=>k.get(e)).filter(e=>!!e),j=m.map(e=>k.get(e.type)).filter(e=>!!e),M=g?k.get(`lifeline`):void 0,N=h?pe.map(e=>k.get(e)).filter(e=>!!e):[],P=new Set([...A,...j,...N].map(e=>e.type));M&&P.add(`lifeline`);let F=C.filter(e=>e.fit>0&&!P.has(e.meta.type)).sort((e,t)=>t.fit-e.fit).slice(0,w?1:2).map(e=>e.meta);for(let e of F)P.add(e.type);let I=Te(C.filter(e=>e.fit>0)),L=I.length?I[0].fit-Q(I[0].fit):0,z=[];for(let e of I){if(e.fit<L||z.length>=Ee)break;let t=re[e.meta.archetype];if(!t||T.includes(t)||P.has(t))continue;let n=k.get(t);n&&(P.add(t),z.push(n))}let V=[...M?[M]:[],...A,...j,...N,...F,...z],H=new Set,U=V.filter(e=>!H.has(e.type)&&(H.add(e.type),!0)),W=C.filter(e=>!P.has(e.meta.type)),G={family:new Map,archetype:new Map},K=Math.max(0,D-U.length),q=De(W.filter(e=>e.fit>0),K,O,G),J=we(W.filter(e=>e.fit===0),K-q.length,O,G),Y=[...U,...q,...J],X=Array.from(new Set([...T,...Y.map(e=>e.type)])),Z=C.reduce((e,t)=>Math.max(e,t.fit),0);return{types:X,chosen:Y,fitOf:new Map(C.map(e=>[e.meta.type,e.fit])),allowed:new Set(X),bestFit:Z}}catch{return{types:[...E],chosen:[],fitOf:new Map,allowed:new Set(E),bestFit:0}}}function Ie(e){return e.chosen.length||T.length?Pe(e.chosen,e.fitOf):``}async function Le(e){let t=Fe(e);return await Promise.all([n([...t.types,...T]),ee(t.types)]),{types:t.types,promptSnippet:Ie(t),allowed:t.allowed,bestFit:t.bestFit}}export{M as a,D as i,R as n,z as r,Le as t};
@@ -0,0 +1 @@
1
+ var e={pdfreader:{title:`The reference, in full`,icon:`doc`,iconColor:`var(--text-muted)`,source:`NASA TM 108834 · Holst, 1994 · public domain`,file:`/demo-assets/pdf/cfd-primer.pdf`,footer:`The actual report, embedded, scroll the real PDF for the derivations behind the scheme.`},datastructure:{title:`Binary search tree — searching for 40`,icon:`share`,iconColor:`var(--presence)`,kind:`bst`,nodes:[{id:`a`,value:50,left:`b`,right:`c`},{id:`b`,value:30,left:`d`,right:`e`},{id:`c`,value:70,left:`f`,right:`g`},{id:`d`,value:20},{id:`e`,value:40}],highlight:`e`,footer:`Search visits <b>50 → 30 → 40</b>: 40 &lt; 50 go left, 40 &gt; 30 go right, match. Three …`},bigo:{title:`How algorithm cost grows with input`,icon:`chart`,iconColor:`var(--presence)`,classes:[`o-1`,`o-logn`,`o-n`,`o-nlogn`,`o-n2`],maxN:16,highlight:`o-nlogn`,algorithm:{name:`merge sort`,complexity:`o-nlogn`},xLabel:`input size (n)`,yLabel:`operations`,footer:`Binary search hugs the floor at O(log n), merge sort scales gracefully at O(n log n), but…`},complexitysummary:{title:`Same lookup, three approaches`,icon:`clock`,iconColor:`var(--presence)`,approaches:[{name:`Linear scan`,timeComplexity:`O(n)`,spaceComplexity:`O(1)`,notes:`No setup cost — fine for a one-off search over unsorted data.`},{name:`Binary search`,timeComplexity:`O(log n)`,spaceComplexity:`O(1)`,notes:`Needs the array sorted first; free here since merge sort already sorted it.`},{name:`Merge sort + binary search`,timeComplexity:`O(n log n)`,spaceComplexity:`O(n)`,notes:`Pays off once the same array is searched many times, not for a single query.`}],footer:`For a single lookup, linear scan wins on simplicity; sort once and binary search pays for…`},confusionmatrix:{title:`Classifier results on the held-out test set`,icon:`table`,iconColor:`var(--presence)`,classes:[`Setosa`,`Versicolor`,`Virginica`],matrix:[[50,0,0],[0,47,3],[0,4,46]],showTotals:!0,readout:`perclass`,countLabel:`samples`,footer:`Setosa separates cleanly; the only confusion is between Versicolor and Virginica, where t…`},protocolstack:{title:`The TCP/IP stack: how a request travels down`,icon:`layers`,iconColor:`var(--presence)`,layers:[{name:`Application`,role:`Your request lives here — the actual message a program speaks.`,protocols:[`HTTP`,`DNS`,`TLS`,`SMTP`]},{name:`Transport`,role:`Splits the message into segments and guarantees order & delivery.`,protocols:[`TCP`,`UDP`]},{name:`Internet`,role:`Wraps each segment in a packet and routes it across networks by IP address.`,protocols:[`IP`,`ICMP`]},{name:`Link`,role:`Frames the packet for the local wire and addresses the next hop by MAC.`,protocols:[`Ethernet`,`Wi-Fi`,`ARP`]}],packet:[{header:`Ethernet`,layer:`Link`},{header:`IP`,layer:`Internet`},{header:`TCP`,layer:`Transport`},{header:`HTTP`,layer:`Application`},{header:`Your request`,layer:`Application`}],caption:`Each layer adds its own header on the way down, then the receiver peels them off in rever…`},logicgates:{title:`Half Adder`,icon:`share`,iconColor:`var(--presence)`,inputs:[{id:`A`,label:`A`,value:1},{id:`B`,label:`B`,value:0}],gates:[{id:`sum`,kind:`XOR`,inputs:[`A`,`B`]},{id:`carry`,kind:`AND`,inputs:[`A`,`B`]}],output:{from:`sum`,label:`Sum`},truth:[{row:[0,0],out:0},{row:[0,1],out:1},{row:[1,0],out:1},{row:[1,1],out:0}],caption:`A half adder sums two bits: the XOR gate produces the sum, the AND gate produces the carr…`,footer:`The truth table row matching the live inputs is highlighted; flip A or B in your head and…`},algorithmtrace:{title:`Bubble Sort — First Pass`,icon:`layers`,iconColor:`var(--presence)`,values:[5,1,4,2,8],steps:[{caption:`Start the pass: compare the first adjacent pair, 5 and 1.`,compare:[0,1],pointer:{i:0,j:1}},{caption:`5 > 1, so swap them — the larger value bubbles right.`,swapped:[0,1],pointer:{i:0,j:1}},{caption:`Advance the window and compare 5 and 4.`,compare:[1,2],pointer:{i:1,j:2}},{caption:`5 > 4, swap again.`,swapped:[1,2],pointer:{i:1,j:2}},{caption:`Compare 5 and 2.`,compare:[2,3],pointer:{i:2,j:3}}],caption:`Step through one full pass: each comparison either holds or swaps, walking the largest re…`,footer:`After this pass the maximum (8) is locked in its final position; bubble sort repeats over…`}};export{e as E};