@offorte/show-doc 0.0.2 → 0.0.4

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.
package/dist/showdoc.js CHANGED
@@ -15,7 +15,7 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
15
15
  }, l = (n, r, o) => (o = n == null ? {} : e(i(n)), c(r || !n || !n.__esModule || !a.call(n, "default") ? t(o, "default", {
16
16
  value: n,
17
17
  enumerable: !0
18
- }) : o, n)), u = "/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-border-style:solid;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000}}}@layer theme{:root,:host{--spacing:.25rem;--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-base:1rem;--text-base--line-height:calc(1.5 / 1);--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75 / 1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2 / 1.5);--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--radius-lg:.5rem;--radius-xl:.75rem}}@layer utilities{.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline-flex{display:inline-flex}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.gap-2{gap:calc(var(--spacing) * 2)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-6{gap:calc(var(--spacing) * 6)}.gap-8{gap:calc(var(--spacing) * 8)}.rounded-lg{border-radius:var(--radius-lg)}.rounded-xl{border-radius:var(--radius-xl)}.border{border-style:var(--tw-border-style);border-width:1px}.p-2{padding:calc(var(--spacing) * 2)}.p-4{padding:calc(var(--spacing) * 4)}.p-6{padding:calc(var(--spacing) * 6)}.p-8{padding:calc(var(--spacing) * 8)}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}@media (width>=48rem){.md\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}}:where(:root){--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark;--shw-color-page:var(--lightningcss-light,#f3f5f8)var(--lightningcss-dark,#0f1218);--shw-color-surface:var(--lightningcss-light,#fff)var(--lightningcss-dark,#171b24);--shw-color-surface-muted:var(--lightningcss-light,#f8fafc)var(--lightningcss-dark,#1d2330);--shw-color-table-stripe:var(--lightningcss-light,#f8fafc94)var(--lightningcss-dark,#ffffff05);--shw-color-text:var(--lightningcss-light,#293244)var(--lightningcss-dark,#d9deea);--shw-color-heading:var(--lightningcss-light,#101827)var(--lightningcss-dark,#f7f8fb);--shw-color-muted:var(--lightningcss-light,#667085)var(--lightningcss-dark,#9aa4b5);--shw-color-border:var(--lightningcss-light,#dde2ea)var(--lightningcss-dark,#303848);--shw-color-accent:var(--lightningcss-light,#4f46e5)var(--lightningcss-dark,#a5b4fc);--shw-color-accent-soft:var(--lightningcss-light,#eef2ff)var(--lightningcss-dark,#25284a);--shw-color-on-accent:var(--lightningcss-light,#fff)var(--lightningcss-dark,#101827);--shw-color-inline-code:var(--lightningcss-light,#f2f4f7)var(--lightningcss-dark,#242b38);--shw-color-code-background:var(--lightningcss-light,#111827)var(--lightningcss-dark,#0b0e14);--shw-color-code-chrome:var(--lightningcss-light,#1f2937)var(--lightningcss-dark,#111722);--shw-color-code-text:var(--lightningcss-light,#e6eaf2)var(--lightningcss-dark,#e5e7eb);--shw-color-code-muted:var(--lightningcss-light,#9ca3af)var(--lightningcss-dark,#94a3b8);--shw-color-code-border:var(--lightningcss-light,#ffffff1f)var(--lightningcss-dark,#ffffff1a);--shw-color-shadow:var(--lightningcss-light,#0f172a1a)var(--lightningcss-dark,#0000005c);--shw-tone-info:var(--lightningcss-light,#175cd3)var(--lightningcss-dark,#93c5fd);--shw-tone-info-soft:var(--lightningcss-light,#eff8ff)var(--lightningcss-dark,#172554);--shw-tone-success:var(--lightningcss-light,#067647)var(--lightningcss-dark,#6ee7b7);--shw-tone-success-soft:var(--lightningcss-light,#ecfdf3)var(--lightningcss-dark,#12382c);--shw-tone-warning:var(--lightningcss-light,#b54708)var(--lightningcss-dark,#fcd34d);--shw-tone-warning-soft:var(--lightningcss-light,#fffaeb)var(--lightningcss-dark,#3f2d12);--shw-tone-danger:var(--lightningcss-light,#b42318)var(--lightningcss-dark,#fda4af);--shw-tone-danger-soft:var(--lightningcss-light,#fef3f2)var(--lightningcss-dark,#451a22);--shw-tone-neutral:var(--lightningcss-light,#475467)var(--lightningcss-dark,#cbd5e1);--shw-tone-neutral-soft:var(--lightningcss-light,#f2f4f7)var(--lightningcss-dark,#27303d);--shw-radius:1rem;--shw-content-width:76rem;--shw-reading-width:70ch;--shw-font-sans:Inter}@media (prefers-color-scheme:dark){:where(:root){--lightningcss-light: ;--lightningcss-dark:initial}}:where(:root[data-theme=light]){--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}:where(:root[data-theme=dark]){--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}:where(:root[data-shw-theme=light]){--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}:where(:root[data-shw-theme=dark]){--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}html{background:var(--shw-color-page);color:var(--shw-color-text);font-family:var(--shw-font-sans), ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, \"Segoe UI\", sans-serif;text-rendering:optimizelegibility}body{margin:0}shw-doc,shw-header,shw-section,shw-grid,shw-card,shw-callout,shw-code,shw-figure,shw-table,shw-collapsible,shw-markdown,shw-mermaid,shw-summary,shw-stat,shw-steps{display:block}@media print{html{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;background:#fff}}@property --tw-border-style{syntax:\"*\";inherits:false;initial-value:solid}@property --tw-font-weight{syntax:\"*\";inherits:false}@property --tw-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:\"*\";inherits:false}@property --tw-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:\"*\";inherits:false}@property --tw-inset-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:\"*\";inherits:false}@property --tw-ring-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:\"*\";inherits:false}@property --tw-inset-ring-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:\"*\";inherits:false}@property --tw-ring-offset-width{syntax:\"<length>\";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:\"*\";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}", d = "data-shw-styles";
18
+ }) : o, n)), u = "/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-border-style:solid;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000}}}@layer theme{:root,:host{--spacing:.25rem;--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-base:1rem;--text-base--line-height:calc(1.5 / 1);--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75 / 1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2 / 1.5);--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--radius-lg:.5rem;--radius-xl:.75rem}}@layer utilities{.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline-flex{display:inline-flex}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.gap-2{gap:calc(var(--spacing) * 2)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-6{gap:calc(var(--spacing) * 6)}.gap-8{gap:calc(var(--spacing) * 8)}.rounded-lg{border-radius:var(--radius-lg)}.rounded-xl{border-radius:var(--radius-xl)}.border{border-style:var(--tw-border-style);border-width:1px}.p-2{padding:calc(var(--spacing) * 2)}.p-4{padding:calc(var(--spacing) * 4)}.p-6{padding:calc(var(--spacing) * 6)}.p-8{padding:calc(var(--spacing) * 8)}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}@media (width>=48rem){.md\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}}:where(:root){--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--shw-color-page:var(--lightningcss-light,#f3f5f8)var(--lightningcss-dark,#0f1218);--shw-color-surface:var(--lightningcss-light,#fff)var(--lightningcss-dark,#171b24);--shw-color-surface-muted:var(--lightningcss-light,#f8fafc)var(--lightningcss-dark,#1d2330);--shw-color-table-stripe:var(--lightningcss-light,#f8fafc94)var(--lightningcss-dark,#ffffff05);--shw-color-text:var(--lightningcss-light,#293244)var(--lightningcss-dark,#d9deea);--shw-color-heading:var(--lightningcss-light,#101827)var(--lightningcss-dark,#f7f8fb);--shw-color-muted:var(--lightningcss-light,#667085)var(--lightningcss-dark,#9aa4b5);--shw-color-border:var(--lightningcss-light,#dde2ea)var(--lightningcss-dark,#303848);--shw-color-accent:var(--lightningcss-light,#4f46e5)var(--lightningcss-dark,#a5b4fc);--shw-color-accent-soft:var(--lightningcss-light,#eef2ff)var(--lightningcss-dark,#25284a);--shw-color-on-accent:var(--lightningcss-light,#fff)var(--lightningcss-dark,#101827);--shw-color-inline-code:var(--lightningcss-light,#f2f4f7)var(--lightningcss-dark,#242b38);--shw-color-code-background:var(--lightningcss-light,#111827)var(--lightningcss-dark,#0b0e14);--shw-color-code-chrome:var(--lightningcss-light,#1f2937)var(--lightningcss-dark,#111722);--shw-color-code-text:var(--lightningcss-light,#e6eaf2)var(--lightningcss-dark,#e5e7eb);--shw-color-code-muted:var(--lightningcss-light,#9ca3af)var(--lightningcss-dark,#94a3b8);--shw-color-code-border:var(--lightningcss-light,#ffffff1f)var(--lightningcss-dark,#ffffff1a);--shw-color-shadow:var(--lightningcss-light,#0f172a1a)var(--lightningcss-dark,#0000005c);--shw-tone-info:var(--lightningcss-light,#175cd3)var(--lightningcss-dark,#93c5fd);--shw-tone-info-soft:var(--lightningcss-light,#eff8ff)var(--lightningcss-dark,#172554);--shw-tone-success:var(--lightningcss-light,#067647)var(--lightningcss-dark,#6ee7b7);--shw-tone-success-soft:var(--lightningcss-light,#ecfdf3)var(--lightningcss-dark,#12382c);--shw-tone-warning:var(--lightningcss-light,#b54708)var(--lightningcss-dark,#fcd34d);--shw-tone-warning-soft:var(--lightningcss-light,#fffaeb)var(--lightningcss-dark,#3f2d12);--shw-tone-danger:var(--lightningcss-light,#b42318)var(--lightningcss-dark,#fda4af);--shw-tone-danger-soft:var(--lightningcss-light,#fef3f2)var(--lightningcss-dark,#451a22);--shw-tone-neutral:var(--lightningcss-light,#475467)var(--lightningcss-dark,#cbd5e1);--shw-tone-neutral-soft:var(--lightningcss-light,#f2f4f7)var(--lightningcss-dark,#27303d);--shw-radius:1rem;--shw-content-width:76rem;--shw-reading-width:70ch;--shw-font-sans:Inter}:where(:root[data-theme=light]){--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}:where(:root[data-theme=dark]){--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}:where(:root[data-shw-theme=light]){--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}:where(:root[data-shw-theme=dark]){--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}html{background:var(--shw-color-page);color:var(--shw-color-text);font-family:var(--shw-font-sans), ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, \"Segoe UI\", sans-serif;text-rendering:optimizelegibility}body{margin:0}shw-doc,shw-header,shw-section,shw-grid,shw-card,shw-callout,shw-code,shw-figure,shw-table,shw-collapsible,shw-markdown,shw-mermaid,shw-summary,shw-stat,shw-steps{display:block}@media print{html{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;background:#fff}}@property --tw-border-style{syntax:\"*\";inherits:false;initial-value:solid}@property --tw-font-weight{syntax:\"*\";inherits:false}@property --tw-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:\"*\";inherits:false}@property --tw-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:\"*\";inherits:false}@property --tw-inset-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:\"*\";inherits:false}@property --tw-ring-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:\"*\";inherits:false}@property --tw-inset-ring-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:\"*\";inherits:false}@property --tw-ring-offset-width{syntax:\"<length>\";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:\"*\";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}", d = "data-shw-styles";
19
19
  function f() {
20
20
  if (typeof document > "u" || document.head.querySelector(`[${d}]`) !== null) return;
21
21
  let e = document.createElement("style");
@@ -3256,7 +3256,7 @@ function Hr(e) {
3256
3256
  }
3257
3257
  //#endregion
3258
3258
  //#region src/styles/prose.css?inline
3259
- var Ur = "/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-border-style:solid;--tw-outline-style:solid}}}@layer theme{:root,:host{--spacing:.25rem;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1)}}@layer utilities{.collapse{visibility:collapse}.visible{visibility:visible}.fixed{position:fixed}.static{position:static}.prose{color:var(--tw-prose-body);max-width:65ch}.prose :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-lead);margin-top:1.2em;margin-bottom:1.2em;font-size:1.25em;line-height:1.6}.prose :where(a):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-links);font-weight:500;text-decoration:underline}.prose :where(strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-bold);font-weight:600}.prose :where(a strong):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(blockquote strong):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(thead th strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em;list-style-type:decimal}.prose :where(ol[type=A]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=A s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=I]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type=I s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type=\"1\"]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal}.prose :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em;list-style-type:disc}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--tw-prose-counters);font-weight:400}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--tw-prose-bullets)}.prose :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:1.25em;font-weight:600}.prose :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){border-color:var(--tw-prose-hr);border-top-width:1px;margin-top:3em;margin-bottom:3em}.prose :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-quotes);border-inline-start-width:.25rem;border-inline-start-color:var(--tw-prose-quote-borders);quotes:\"“\"\"”\"\"‘\"\"’\";margin-top:1.6em;margin-bottom:1.6em;padding-inline-start:1em;font-style:italic;font-weight:500}.prose :where(blockquote p:first-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:open-quote}.prose :where(blockquote p:last-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:close-quote}.prose :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:0;margin-bottom:.888889em;font-size:2.25em;font-weight:800;line-height:1.11111}.prose :where(h1 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:900}.prose :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:2em;margin-bottom:1em;font-size:1.5em;font-weight:700;line-height:1.33333}.prose :where(h2 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:800}.prose :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:1.6em;margin-bottom:.6em;font-size:1.25em;font-weight:600;line-height:1.6}.prose :where(h3 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:700}.prose :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:1.5em;margin-bottom:.5em;font-weight:600;line-height:1.5}.prose :where(h4 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:700}.prose :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em;display:block}.prose :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-kbd);box-shadow:0 0 0 1px var(--tw-prose-kbd-shadows), 0 3px 0 var(--tw-prose-kbd-shadows);padding-top:.1875em;padding-inline-end:.375em;padding-bottom:.1875em;border-radius:.3125rem;padding-inline-start:.375em;font-family:inherit;font-size:.875em;font-weight:500}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-code);font-size:.875em;font-weight:600}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):before,.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:\"`\"}.prose :where(a code):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h1 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.875em}.prose :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.9em}.prose :where(h4 code):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(blockquote code):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(thead th code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-pre-code);background-color:var(--tw-prose-pre-bg);padding-top:.857143em;padding-inline-end:1.14286em;padding-bottom:.857143em;border-radius:.375rem;margin-top:1.71429em;margin-bottom:1.71429em;padding-inline-start:1.14286em;font-size:.875em;font-weight:400;line-height:1.71429;overflow-x:auto}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:inherit;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit;background-color:#0000;border-width:0;border-radius:0;padding:0}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):before,.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:none}.prose :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){table-layout:auto;width:100%;margin-top:2em;margin-bottom:2em;font-size:.875em;line-height:1.71429}.prose :where(thead):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-th-borders)}.prose :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);vertical-align:bottom;padding-inline-end:.571429em;padding-bottom:.571429em;padding-inline-start:.571429em;font-weight:600}.prose :where(tbody tr):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-td-borders)}.prose :where(tbody tr:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:0}.prose :where(tbody td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:baseline}.prose :where(tfoot):not(:where([class~=not-prose],[class~=not-prose] *)){border-top-width:1px;border-top-color:var(--tw-prose-th-borders)}.prose :where(tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:top}.prose :where(th,td):not(:where([class~=not-prose],[class~=not-prose] *)){text-align:start}.prose :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-captions);margin-top:.857143em;font-size:.875em;line-height:1.42857}.prose{--tw-prose-body:oklch(37.3% .034 259.733);--tw-prose-headings:oklch(21% .034 264.665);--tw-prose-lead:oklch(44.6% .03 256.802);--tw-prose-links:oklch(21% .034 264.665);--tw-prose-bold:oklch(21% .034 264.665);--tw-prose-counters:oklch(55.1% .027 264.364);--tw-prose-bullets:oklch(87.2% .01 258.338);--tw-prose-hr:oklch(92.8% .006 264.531);--tw-prose-quotes:oklch(21% .034 264.665);--tw-prose-quote-borders:oklch(92.8% .006 264.531);--tw-prose-captions:oklch(55.1% .027 264.364);--tw-prose-kbd:oklch(21% .034 264.665);--tw-prose-kbd-shadows:oklab(21% -.00316127 -.0338527/.1);--tw-prose-code:oklch(21% .034 264.665);--tw-prose-pre-code:oklch(92.8% .006 264.531);--tw-prose-pre-bg:oklch(27.8% .033 256.848);--tw-prose-th-borders:oklch(87.2% .01 258.338);--tw-prose-td-borders:oklch(92.8% .006 264.531);--tw-prose-invert-body:oklch(87.2% .01 258.338);--tw-prose-invert-headings:#fff;--tw-prose-invert-lead:oklch(70.7% .022 261.325);--tw-prose-invert-links:#fff;--tw-prose-invert-bold:#fff;--tw-prose-invert-counters:oklch(70.7% .022 261.325);--tw-prose-invert-bullets:oklch(44.6% .03 256.802);--tw-prose-invert-hr:oklch(37.3% .034 259.733);--tw-prose-invert-quotes:oklch(96.7% .003 264.542);--tw-prose-invert-quote-borders:oklch(37.3% .034 259.733);--tw-prose-invert-captions:oklch(70.7% .022 261.325);--tw-prose-invert-kbd:#fff;--tw-prose-invert-kbd-shadows:#ffffff1a;--tw-prose-invert-code:#fff;--tw-prose-invert-pre-code:oklch(87.2% .01 258.338);--tw-prose-invert-pre-bg:#00000080;--tw-prose-invert-th-borders:oklch(44.6% .03 256.802);--tw-prose-invert-td-borders:oklch(37.3% .034 259.733);font-size:1rem;line-height:1.75}.prose :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;margin-bottom:.5em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.375em}.prose :where(.prose>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(.prose>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(.prose>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;padding-inline-start:1.625em}.prose :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.571429em;padding-inline-end:.571429em;padding-bottom:.571429em;padding-inline-start:.571429em}.prose :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(.prose>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(.prose>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.block{display:block}.contents{display:contents}.flex{display:flex}.grid{display:grid}.inline{display:inline}.table{display:table}.max-w-none{max-width:none}.border-collapse{border-collapse:collapse}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.columns-2{columns:2}.columns-3{columns:3}.columns-4{columns:4}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.gap-2{gap:calc(var(--spacing) * 2)}.border{border-style:var(--tw-border-style);border-width:1px}.text-wrap{text-wrap:wrap}.italic{font-style:italic}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.prose-slate{--tw-prose-body:oklch(37.2% .044 257.287);--tw-prose-headings:oklch(20.8% .042 265.755);--tw-prose-lead:oklch(44.6% .043 257.281);--tw-prose-links:oklch(20.8% .042 265.755);--tw-prose-bold:oklch(20.8% .042 265.755);--tw-prose-counters:oklch(55.4% .046 257.417);--tw-prose-bullets:oklch(86.9% .022 252.894);--tw-prose-hr:oklch(92.9% .013 255.508);--tw-prose-quotes:oklch(20.8% .042 265.755);--tw-prose-quote-borders:oklch(92.9% .013 255.508);--tw-prose-captions:oklch(55.4% .046 257.417);--tw-prose-kbd:oklch(20.8% .042 265.755);--tw-prose-kbd-shadows:oklab(20.8% -.00310889 -.0418848/.1);--tw-prose-code:oklch(20.8% .042 265.755);--tw-prose-pre-code:oklch(92.9% .013 255.508);--tw-prose-pre-bg:oklch(27.9% .041 260.031);--tw-prose-th-borders:oklch(86.9% .022 252.894);--tw-prose-td-borders:oklch(92.9% .013 255.508);--tw-prose-invert-body:oklch(86.9% .022 252.894);--tw-prose-invert-headings:#fff;--tw-prose-invert-lead:oklch(70.4% .04 256.788);--tw-prose-invert-links:#fff;--tw-prose-invert-bold:#fff;--tw-prose-invert-counters:oklch(70.4% .04 256.788);--tw-prose-invert-bullets:oklch(44.6% .043 257.281);--tw-prose-invert-hr:oklch(37.2% .044 257.287);--tw-prose-invert-quotes:oklch(96.8% .007 247.896);--tw-prose-invert-quote-borders:oklch(37.2% .044 257.287);--tw-prose-invert-captions:oklch(70.4% .04 256.788);--tw-prose-invert-kbd:#fff;--tw-prose-invert-kbd-shadows:#ffffff1a;--tw-prose-invert-code:#fff;--tw-prose-invert-pre-code:oklch(86.9% .022 252.894);--tw-prose-invert-pre-bg:#00000080;--tw-prose-invert-th-borders:oklch(44.6% .043 257.281);--tw-prose-invert-td-borders:oklch(37.2% .044 257.287)}}@property --tw-rotate-x{syntax:\"*\";inherits:false}@property --tw-rotate-y{syntax:\"*\";inherits:false}@property --tw-rotate-z{syntax:\"*\";inherits:false}@property --tw-skew-x{syntax:\"*\";inherits:false}@property --tw-skew-y{syntax:\"*\";inherits:false}@property --tw-border-style{syntax:\"*\";inherits:false;initial-value:solid}@property --tw-outline-style{syntax:\"*\";inherits:false;initial-value:solid}", Wr = class extends V {
3259
+ var Ur = "/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-border-style:solid;--tw-outline-style:solid}}}@layer utilities{.\\@container{container-type:inline-size}.collapse{visibility:collapse}.visible{visibility:visible}.fixed{position:fixed}.static{position:static}.container{width:100%}@media (width>=40rem){.container{max-width:40rem}}@media (width>=48rem){.container{max-width:48rem}}@media (width>=64rem){.container{max-width:64rem}}@media (width>=80rem){.container{max-width:80rem}}@media (width>=96rem){.container{max-width:96rem}}.prose{color:var(--tw-prose-body);max-width:65ch}.prose :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-lead);margin-top:1.2em;margin-bottom:1.2em;font-size:1.25em;line-height:1.6}.prose :where(a):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-links);font-weight:500;text-decoration:underline}.prose :where(strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-bold);font-weight:600}.prose :where(a strong):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(blockquote strong):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(thead th strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em;list-style-type:decimal}.prose :where(ol[type=A]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=A s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=I]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type=I s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type=\"1\"]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal}.prose :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em;list-style-type:disc}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--tw-prose-counters);font-weight:400}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--tw-prose-bullets)}.prose :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:1.25em;font-weight:600}.prose :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){border-color:var(--tw-prose-hr);border-top-width:1px;margin-top:3em;margin-bottom:3em}.prose :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-quotes);border-inline-start-width:.25rem;border-inline-start-color:var(--tw-prose-quote-borders);quotes:\"“\"\"”\"\"‘\"\"’\";margin-top:1.6em;margin-bottom:1.6em;padding-inline-start:1em;font-style:italic;font-weight:500}.prose :where(blockquote p:first-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:open-quote}.prose :where(blockquote p:last-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:close-quote}.prose :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:0;margin-bottom:.888889em;font-size:2.25em;font-weight:800;line-height:1.11111}.prose :where(h1 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:900}.prose :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:2em;margin-bottom:1em;font-size:1.5em;font-weight:700;line-height:1.33333}.prose :where(h2 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:800}.prose :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:1.6em;margin-bottom:.6em;font-size:1.25em;font-weight:600;line-height:1.6}.prose :where(h3 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:700}.prose :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:1.5em;margin-bottom:.5em;font-weight:600;line-height:1.5}.prose :where(h4 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:700}.prose :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em;display:block}.prose :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-kbd);box-shadow:0 0 0 1px var(--tw-prose-kbd-shadows), 0 3px 0 var(--tw-prose-kbd-shadows);padding-top:.1875em;padding-inline-end:.375em;padding-bottom:.1875em;border-radius:.3125rem;padding-inline-start:.375em;font-family:inherit;font-size:.875em;font-weight:500}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-code);font-size:.875em;font-weight:600}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):before,.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:\"`\"}.prose :where(a code):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h1 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.875em}.prose :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.9em}.prose :where(h4 code):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(blockquote code):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(thead th code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-pre-code);background-color:var(--tw-prose-pre-bg);padding-top:.857143em;padding-inline-end:1.14286em;padding-bottom:.857143em;border-radius:.375rem;margin-top:1.71429em;margin-bottom:1.71429em;padding-inline-start:1.14286em;font-size:.875em;font-weight:400;line-height:1.71429;overflow-x:auto}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:inherit;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit;background-color:#0000;border-width:0;border-radius:0;padding:0}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):before,.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:none}.prose :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){table-layout:auto;width:100%;margin-top:2em;margin-bottom:2em;font-size:.875em;line-height:1.71429}.prose :where(thead):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-th-borders)}.prose :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);vertical-align:bottom;padding-inline-end:.571429em;padding-bottom:.571429em;padding-inline-start:.571429em;font-weight:600}.prose :where(tbody tr):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-td-borders)}.prose :where(tbody tr:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:0}.prose :where(tbody td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:baseline}.prose :where(tfoot):not(:where([class~=not-prose],[class~=not-prose] *)){border-top-width:1px;border-top-color:var(--tw-prose-th-borders)}.prose :where(tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:top}.prose :where(th,td):not(:where([class~=not-prose],[class~=not-prose] *)){text-align:start}.prose :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-captions);margin-top:.857143em;font-size:.875em;line-height:1.42857}.prose{--tw-prose-body:oklch(37.3% .034 259.733);--tw-prose-headings:oklch(21% .034 264.665);--tw-prose-lead:oklch(44.6% .03 256.802);--tw-prose-links:oklch(21% .034 264.665);--tw-prose-bold:oklch(21% .034 264.665);--tw-prose-counters:oklch(55.1% .027 264.364);--tw-prose-bullets:oklch(87.2% .01 258.338);--tw-prose-hr:oklch(92.8% .006 264.531);--tw-prose-quotes:oklch(21% .034 264.665);--tw-prose-quote-borders:oklch(92.8% .006 264.531);--tw-prose-captions:oklch(55.1% .027 264.364);--tw-prose-kbd:oklch(21% .034 264.665);--tw-prose-kbd-shadows:oklab(21% -.00316127 -.0338527/.1);--tw-prose-code:oklch(21% .034 264.665);--tw-prose-pre-code:oklch(92.8% .006 264.531);--tw-prose-pre-bg:oklch(27.8% .033 256.848);--tw-prose-th-borders:oklch(87.2% .01 258.338);--tw-prose-td-borders:oklch(92.8% .006 264.531);--tw-prose-invert-body:oklch(87.2% .01 258.338);--tw-prose-invert-headings:#fff;--tw-prose-invert-lead:oklch(70.7% .022 261.325);--tw-prose-invert-links:#fff;--tw-prose-invert-bold:#fff;--tw-prose-invert-counters:oklch(70.7% .022 261.325);--tw-prose-invert-bullets:oklch(44.6% .03 256.802);--tw-prose-invert-hr:oklch(37.3% .034 259.733);--tw-prose-invert-quotes:oklch(96.7% .003 264.542);--tw-prose-invert-quote-borders:oklch(37.3% .034 259.733);--tw-prose-invert-captions:oklch(70.7% .022 261.325);--tw-prose-invert-kbd:#fff;--tw-prose-invert-kbd-shadows:#ffffff1a;--tw-prose-invert-code:#fff;--tw-prose-invert-pre-code:oklch(87.2% .01 258.338);--tw-prose-invert-pre-bg:#00000080;--tw-prose-invert-th-borders:oklch(44.6% .03 256.802);--tw-prose-invert-td-borders:oklch(37.3% .034 259.733);font-size:1rem;line-height:1.75}.prose :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;margin-bottom:.5em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.375em}.prose :where(.prose>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(.prose>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(.prose>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;padding-inline-start:1.625em}.prose :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.571429em;padding-inline-end:.571429em;padding-bottom:.571429em;padding-inline-start:.571429em}.prose :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(.prose>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(.prose>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.contents{display:contents}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.table{display:table}.max-w-none{max-width:none}.columns-2{columns:2}.columns-3{columns:3}.columns-4{columns:4}.border{border-style:var(--tw-border-style);border-width:1px}.text-wrap{text-wrap:wrap}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.prose-slate{--tw-prose-body:oklch(37.2% .044 257.287);--tw-prose-headings:oklch(20.8% .042 265.755);--tw-prose-lead:oklch(44.6% .043 257.281);--tw-prose-links:oklch(20.8% .042 265.755);--tw-prose-bold:oklch(20.8% .042 265.755);--tw-prose-counters:oklch(55.4% .046 257.417);--tw-prose-bullets:oklch(86.9% .022 252.894);--tw-prose-hr:oklch(92.9% .013 255.508);--tw-prose-quotes:oklch(20.8% .042 265.755);--tw-prose-quote-borders:oklch(92.9% .013 255.508);--tw-prose-captions:oklch(55.4% .046 257.417);--tw-prose-kbd:oklch(20.8% .042 265.755);--tw-prose-kbd-shadows:oklab(20.8% -.00310889 -.0418848/.1);--tw-prose-code:oklch(20.8% .042 265.755);--tw-prose-pre-code:oklch(92.9% .013 255.508);--tw-prose-pre-bg:oklch(27.9% .041 260.031);--tw-prose-th-borders:oklch(86.9% .022 252.894);--tw-prose-td-borders:oklch(92.9% .013 255.508);--tw-prose-invert-body:oklch(86.9% .022 252.894);--tw-prose-invert-headings:#fff;--tw-prose-invert-lead:oklch(70.4% .04 256.788);--tw-prose-invert-links:#fff;--tw-prose-invert-bold:#fff;--tw-prose-invert-counters:oklch(70.4% .04 256.788);--tw-prose-invert-bullets:oklch(44.6% .043 257.281);--tw-prose-invert-hr:oklch(37.2% .044 257.287);--tw-prose-invert-quotes:oklch(96.8% .007 247.896);--tw-prose-invert-quote-borders:oklch(37.2% .044 257.287);--tw-prose-invert-captions:oklch(70.4% .04 256.788);--tw-prose-invert-kbd:#fff;--tw-prose-invert-kbd-shadows:#ffffff1a;--tw-prose-invert-code:#fff;--tw-prose-invert-pre-code:oklch(86.9% .022 252.894);--tw-prose-invert-pre-bg:#00000080;--tw-prose-invert-th-borders:oklch(44.6% .043 257.281);--tw-prose-invert-td-borders:oklch(37.2% .044 257.287)}}@property --tw-border-style{syntax:\"*\";inherits:false;initial-value:solid}@property --tw-outline-style{syntax:\"*\";inherits:false;initial-value:solid}", Wr = class extends V {
3260
3260
  static {
3261
3261
  this.styles = [
3262
3262
  v(Ur),
@@ -3389,7 +3389,7 @@ var Gr = class extends V {
3389
3389
  background: var(--shw-callout-background);
3390
3390
  border: 1px solid color-mix(in srgb, var(--shw-callout-accent) 24%, transparent);
3391
3391
  border-left: 0.3rem solid var(--shw-callout-accent);
3392
- border-radius: 0.75rem;
3392
+ border-radius: calc(var(--shw-radius, 1rem) * 0.75);
3393
3393
  display: grid;
3394
3394
  gap: 0.45rem;
3395
3395
  padding: 1rem 1.15rem;
@@ -3418,8 +3418,8 @@ var Gr = class extends V {
3418
3418
  };
3419
3419
  H("shw-callout", Gr);
3420
3420
  //#endregion
3421
- //#region src/components/shw-card.ts
3422
- var Kr = class extends V {
3421
+ //#region src/styles/card.css?inline
3422
+ var Kr = ":host{min-width:0;display:block}article{background:linear-gradient(145deg, var(--shw-color-surface,#fff) 35%, var(--shw-color-surface-muted,#f8fafc));border:1px solid var(--shw-color-border,#dde2ea);border-radius:calc(var(--shw-radius,1rem) * .85);box-shadow:0 .2rem .75rem color-mix(in srgb, var(--shw-color-shadow,#0f172a1a) 35%, transparent);align-content:start;gap:.8rem;height:100%;padding:clamp(1rem,3vw,1.35rem);display:grid}.heading{font-size:1.08rem;line-height:1.35}shw-badge{justify-self:start}shw-markdown{--shw-reading-width:none}@media print{article{background:var(--shw-color-surface,#fff);box-shadow:none;break-inside:avoid}}", qr = class extends V {
3423
3423
  constructor(...e) {
3424
3424
  super(...e), this.heading = "", this.label = "", this.tone = "neutral", this.#e = new W(this);
3425
3425
  }
@@ -3437,36 +3437,7 @@ var Kr = class extends V {
3437
3437
  this.styles = [
3438
3438
  U,
3439
3439
  Le,
3440
- y`
3441
- :host {
3442
- display: block;
3443
- min-width: 0;
3444
- }
3445
-
3446
- article {
3447
- background: var(--shw-color-surface, #ffffff);
3448
- border: 1px solid var(--shw-color-border, #dde2ea);
3449
- border-radius: 0.85rem;
3450
- box-shadow: 0 1px 2px var(--shw-color-shadow, rgb(15 23 42 / 3%));
3451
- display: grid;
3452
- gap: 0.8rem;
3453
- height: 100%;
3454
- padding: clamp(1rem, 3vw, 1.35rem);
3455
- }
3456
-
3457
- .heading {
3458
- font-size: 1.08rem;
3459
- line-height: 1.35;
3460
- }
3461
-
3462
- shw-badge {
3463
- justify-self: start;
3464
- }
3465
-
3466
- shw-markdown {
3467
- --shw-reading-width: none;
3468
- }
3469
- `
3440
+ v(Kr)
3470
3441
  ];
3471
3442
  }
3472
3443
  #e;
@@ -3480,15 +3451,16 @@ var Kr = class extends V {
3480
3451
  `;
3481
3452
  }
3482
3453
  };
3483
- H("shw-card", Kr);
3454
+ H("shw-card", qr);
3484
3455
  //#endregion
3485
- //#region src/components/shw-collapsible.ts
3486
- var qr = class extends V {
3456
+ //#region src/styles/collapsible.css?inline
3457
+ var Jr = ":host{min-width:0;display:block}details{background:color-mix(in srgb, var(--shw-color-surface,#fff) 82%, var(--shw-color-surface-muted,#f8fafc));border:1px solid var(--shw-color-border,#dde2ea);border-radius:var(--shw-radius,1rem);overflow:clip}summary{color:var(--shw-color-heading,#101827);cursor:pointer;-webkit-user-select:none;user-select:none;align-items:center;gap:.75rem;padding:1rem 1.15rem;font-weight:700;line-height:1.4;list-style:none;display:flex}summary::-webkit-details-marker{display:none}summary:before{content:\"\";border-bottom:.12rem solid;border-right:.12rem solid;flex:none;width:.45rem;height:.45rem;margin-left:.15rem;transition:transform .16s;transform:rotate(-45deg)}details[open] summary:before{transform:rotate(45deg)translate(-.1rem,-.1rem)}summary:focus-visible{outline:3px solid color-mix(in srgb, var(--shw-color-accent,#4f46e5) 30%, transparent);outline-offset:-3px}.content{border-top:1px solid var(--shw-color-border,#dde2ea);min-width:0;padding:1rem 1.15rem 1.15rem}slot{gap:1.25rem;display:grid}::slotted(*){min-width:0}shw-markdown{--shw-reading-width:none}@media (prefers-reduced-motion:reduce){summary:before{transition:none}}@media print{details::details-content{content-visibility:visible;display:block}details{overflow:visible}summary{break-after:avoid}summary:before{display:none}}", Yr = class extends V {
3487
3458
  constructor(...e) {
3488
- super(...e), this.open = !1, this.summary = "Details", this.#e = new W(this);
3459
+ super(...e), this.open = !1, this.summary = "Details", this.content = "markdown", this.#e = new W(this);
3489
3460
  }
3490
3461
  static {
3491
3462
  this.properties = {
3463
+ content: { type: String },
3492
3464
  open: {
3493
3465
  type: Boolean,
3494
3466
  reflect: !0
@@ -3497,75 +3469,7 @@ var qr = class extends V {
3497
3469
  };
3498
3470
  }
3499
3471
  static {
3500
- this.styles = [U, y`
3501
- :host {
3502
- display: block;
3503
- }
3504
-
3505
- details {
3506
- background: color-mix(
3507
- in srgb,
3508
- var(--shw-color-surface, #ffffff) 82%,
3509
- var(--shw-color-surface-muted, #f8fafc)
3510
- );
3511
- border: 1px solid var(--shw-color-border, #dde2ea);
3512
- border-radius: 0.8rem;
3513
- overflow: clip;
3514
- }
3515
-
3516
- summary {
3517
- align-items: center;
3518
- color: var(--shw-color-heading, #101827);
3519
- cursor: pointer;
3520
- display: flex;
3521
- font-weight: 700;
3522
- gap: 0.75rem;
3523
- line-height: 1.4;
3524
- list-style: none;
3525
- padding: 1rem 1.15rem;
3526
- user-select: none;
3527
- }
3528
-
3529
- summary::-webkit-details-marker {
3530
- display: none;
3531
- }
3532
-
3533
- summary::before {
3534
- border-bottom: 0.12rem solid currentcolor;
3535
- border-right: 0.12rem solid currentcolor;
3536
- content: "";
3537
- flex: 0 0 auto;
3538
- height: 0.45rem;
3539
- margin-left: 0.15rem;
3540
- transform: rotate(-45deg);
3541
- transition: transform 160ms ease;
3542
- width: 0.45rem;
3543
- }
3544
-
3545
- details[open] summary::before {
3546
- transform: rotate(45deg) translate(-0.1rem, -0.1rem);
3547
- }
3548
-
3549
- summary:focus-visible {
3550
- outline: 3px solid color-mix(in srgb, var(--shw-color-accent, #4f46e5) 30%, transparent);
3551
- outline-offset: -3px;
3552
- }
3553
-
3554
- .content {
3555
- border-top: 1px solid var(--shw-color-border, #dde2ea);
3556
- padding: 1rem 1.15rem 1.15rem;
3557
- }
3558
-
3559
- shw-markdown {
3560
- --shw-reading-width: none;
3561
- }
3562
-
3563
- @media (prefers-reduced-motion: reduce) {
3564
- summary::before {
3565
- transition: none;
3566
- }
3567
- }
3568
- `];
3472
+ this.styles = [U, v(Jr)];
3569
3473
  }
3570
3474
  #e;
3571
3475
  render() {
@@ -3573,7 +3477,7 @@ var qr = class extends V {
3573
3477
  <details ?open=${this.open} @toggle=${this.#t}>
3574
3478
  <summary>${this.summary}</summary>
3575
3479
  <div class="content">
3576
- <shw-markdown>${this.#e.source}</shw-markdown>
3480
+ ${this.content === "blocks" ? R`<slot></slot>` : R`<shw-markdown>${this.#e.source}</shw-markdown>`}
3577
3481
  </div>
3578
3482
  </details>
3579
3483
  `;
@@ -3583,10 +3487,94 @@ var qr = class extends V {
3583
3487
  t instanceof HTMLDetailsElement && this.open !== t.open && (this.open = t.open);
3584
3488
  }
3585
3489
  };
3586
- H("shw-collapsible", qr);
3490
+ H("shw-collapsible", Yr);
3491
+ //#endregion
3492
+ //#region src/internal/code-details.ts
3493
+ function Xr(e, t) {
3494
+ return typeof e == "number" && Number.isSafeInteger(e) && e >= 1 && e <= t;
3495
+ }
3496
+ function Zr(e, t, n) {
3497
+ if (Xr(e, n) && Xr(t, n) && e <= t) return {
3498
+ start: e,
3499
+ end: t
3500
+ };
3501
+ }
3502
+ function Qr(e, t) {
3503
+ return e.trim() === "" ? [] : e.split(",").map((e) => {
3504
+ let [, n, r = n] = e.trim().match(/^(\d+)(?:-(\d+))?$/u) ?? [], i = Zr(Number(n), Number(r), t);
3505
+ if (i === void 0) throw Error("Invalid highlight. Use source line numbers such as 2,4-6 within this code block.");
3506
+ return i;
3507
+ });
3508
+ }
3509
+ function $r(e) {
3510
+ return /* @__PURE__ */ Error(`Annotation ${e + 1} needs valid source line numbers (start and optional end) and nonempty text.`);
3511
+ }
3512
+ function ei(e, t, n) {
3513
+ let { start: r, end: i = r, text: a } = e, o = Zr(r, i, n);
3514
+ if (o === void 0 || typeof a != "string" || a.trim() === "") throw $r(t);
3515
+ return {
3516
+ ...o,
3517
+ text: a
3518
+ };
3519
+ }
3520
+ function ti(e, t) {
3521
+ if (e.trim() === "") return [];
3522
+ let n = JSON.parse(e);
3523
+ if (!Array.isArray(n)) throw Error("Annotations must be a JSON array.");
3524
+ return n.map((e, n) => {
3525
+ if (typeof e != "object" || !e) throw $r(n);
3526
+ return ei(e, n, t);
3527
+ });
3528
+ }
3529
+ function ni(e, t, n) {
3530
+ let r = [], i = [], a = [];
3531
+ try {
3532
+ r = Qr(e, n);
3533
+ } catch (e) {
3534
+ a.push(e.message);
3535
+ }
3536
+ try {
3537
+ i = ti(t, n);
3538
+ } catch (e) {
3539
+ a.push(e instanceof SyntaxError ? "Annotations must contain valid JSON." : e.message);
3540
+ }
3541
+ return {
3542
+ ranges: r,
3543
+ notes: i,
3544
+ errors: a
3545
+ };
3546
+ }
3547
+ function ri(e) {
3548
+ let t = e.match(/^@@ -\d+(?:,(\d+))? \+\d+(?:,(\d+))? @@/u);
3549
+ return t === null ? void 0 : {
3550
+ old: Number(t[1] ?? 1),
3551
+ next: Number(t[2] ?? 1)
3552
+ };
3553
+ }
3554
+ function ii(e, t) {
3555
+ switch (e[0]) {
3556
+ case "+": return --t.next, "added";
3557
+ case "-": return --t.old, "removed";
3558
+ case " ": return --t.old, --t.next, "context";
3559
+ default: return;
3560
+ }
3561
+ }
3562
+ function ai(e) {
3563
+ return /^(?:diff |index |--- |\+\+\+ |\\ No newline)/u.test(e) ? "metadata" : e.startsWith("+") ? "added" : e.startsWith("-") ? "removed" : "context";
3564
+ }
3565
+ function oi(e) {
3566
+ let t = {
3567
+ old: 0,
3568
+ next: 0
3569
+ };
3570
+ return e.map((e) => {
3571
+ let n = ri(e);
3572
+ return n === void 0 ? Math.max(t.old, t.next) > 0 ? ii(e, t) ?? ai(e) : ai(e) : (t = n, "hunk");
3573
+ });
3574
+ }
3587
3575
  //#endregion
3588
3576
  //#region src/internal/highlight-code.ts
3589
- var Jr = /* @__PURE__ */ l((/* @__PURE__ */ o(((e, t) => {
3577
+ var si = /* @__PURE__ */ l((/* @__PURE__ */ o(((e, t) => {
3590
3578
  var n = function(e) {
3591
3579
  var t = /(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i, n = 0, r = {}, i = {
3592
3580
  manual: e.Prism && e.Prism.manual,
@@ -4231,159 +4219,132 @@ var Jr = /* @__PURE__ */ l((/* @__PURE__ */ o(((e, t) => {
4231
4219
  f ||= (console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."), !0), n.plugins.fileHighlight.highlight.apply(this, arguments);
4232
4220
  };
4233
4221
  })();
4234
- })))(), 1), Yr = {
4222
+ })))(), 1), ci = {
4235
4223
  html: "markup",
4236
4224
  js: "javascript",
4237
4225
  json: "javascript",
4238
4226
  ts: "javascript"
4239
4227
  };
4240
- function Xr(e) {
4228
+ function li(e) {
4241
4229
  return e.replaceAll("&", "&amp;").replaceAll("<", "&lt;").replaceAll(">", "&gt;").replaceAll("\"", "&quot;").replaceAll("'", "&#039;");
4242
4230
  }
4243
- function Zr(e, t) {
4244
- let n = Yr[t] ?? t, r = Jr.default.languages[n];
4245
- return r === void 0 ? Xr(e) : Jr.default.highlight(e, r, n);
4231
+ function ui(e) {
4232
+ let t = ci[e] ?? e, n = si.default.languages[t];
4233
+ return {
4234
+ language: t,
4235
+ grammar: typeof n == "object" && n ? n : void 0
4236
+ };
4237
+ }
4238
+ function di(e, t) {
4239
+ let { language: n, grammar: r } = ui(t);
4240
+ return r === void 0 ? li(e) : si.default.highlight(e, r, n);
4241
+ }
4242
+ function fi(e, t, n) {
4243
+ for (let [r, i] of t.split("\n").entries()) r > 0 && e.push(""), e[e.length - 1] += n.join("") + li(i) + "</span>".repeat(n.length);
4244
+ }
4245
+ function pi(e, t) {
4246
+ if (e === "") return [];
4247
+ let { grammar: n } = ui(t), r = n === void 0 ? [e] : si.default.tokenize(e, n), i = [""];
4248
+ function a(e, t) {
4249
+ if (typeof e == "string") {
4250
+ fi(i, e, t);
4251
+ return;
4252
+ }
4253
+ let n = [
4254
+ "token",
4255
+ e.type,
4256
+ e.alias ?? []
4257
+ ].flat().join(" "), r = [...t, `<span class="${li(n)}">`];
4258
+ for (let t of [e.content].flat()) a(t, r);
4259
+ }
4260
+ for (let e of r) a(e, []);
4261
+ return i;
4246
4262
  }
4247
4263
  //#endregion
4264
+ //#region src/styles/code.css?inline
4265
+ var mi = ":host{min-width:0;display:block}figure{background:var(--shw-color-code-background,#111827);border:1px solid var(--shw-color-code-border,#ffffff1f);border-radius:var(--shw-radius,.8rem);box-shadow:0 .75rem 2rem var(--shw-color-shadow,#0f172a1a);color:var(--shw-color-code-text,#e6eaf2);margin:0;overflow:hidden}figcaption{background:var(--shw-color-code-chrome,#1f2937);border-bottom:1px solid var(--shw-color-code-border,#ffffff1f);color:var(--shw-color-code-muted,#9ca3af);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.5rem 1rem;padding:.65rem 1rem;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:.75rem;line-height:1.4;display:flex}.language{letter-spacing:.06em;text-transform:uppercase}.caption-meta{flex-wrap:wrap;align-items:center;gap:.75rem;display:flex}pre{margin:0;padding:1rem 1.15rem;overflow-x:auto}code{tab-size:2;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:.84rem;line-height:1.7}code.lines{width:max-content;min-width:100%;display:block}.code-line{vertical-align:top;border-left:2px solid #0000;grid-template-columns:minmax(0,1fr) auto;min-width:100%;padding-inline:.65rem;display:inline-grid}.numbered .code-line{grid-template-columns:auto minmax(0,1fr) auto}.line-number{color:var(--shw-color-code-muted,#9ca3af);text-align:right;-webkit-user-select:none;user-select:none;width:var(--code-number-width,3ch);margin-right:1rem}[data-number]:before{content:attr(data-number)}.code-line.focused{background:color-mix(in srgb, var(--shw-code-keyword,#c4b5fd) 12%, transparent);border-left-color:var(--shw-code-keyword,#c4b5fd)}.code-line.added{background:color-mix(in srgb, var(--shw-code-string,#86efac) 10%, transparent);color:var(--shw-code-string,#86efac)}.code-line.removed{background:color-mix(in srgb, var(--shw-code-value,#fda4af) 10%, transparent);color:var(--shw-code-value,#fda4af)}.code-line.hunk,.code-line.metadata{color:var(--shw-color-code-muted,#9ca3af)}.code-line.hunk{background:var(--shw-color-code-chrome,#1f2937)}.note-markers{-webkit-user-select:none;user-select:none;gap:.3rem;padding-left:1rem;display:inline-flex}.note-marker{color:var(--shw-code-keyword,#c4b5fd);text-align:center;border:1px solid;border-radius:50%;align-self:center;min-width:1.45em;font-size:.7rem;font-weight:700;line-height:1.45}.notes,.error{background:var(--shw-color-surface,#fff);border-top:1px solid var(--shw-color-border,#dde2ea);color:var(--shw-color-text,#18212f);padding:.9rem 1.15rem;font-size:.875rem}.error{color:var(--shw-tone-danger,#b42318);margin:0}.notes ol{gap:.8rem;margin:0;padding-left:1.3rem;display:grid}.notes li::marker{color:var(--shw-color-accent,#4f46e5);font-weight:700}.note-lines{color:var(--shw-color-muted,#667085);margin-bottom:.2rem;font-size:.75rem;display:block}shw-markdown{--shw-reading-width:none}.token.comment,.token.prolog,.token.doctype,.token.cdata{color:var(--shw-code-comment,#94a3b8)}.token.punctuation{color:var(--shw-code-punctuation,#cbd5e1)}.token.property,.token.tag,.token.boolean,.token.number,.token.constant,.token.symbol,.token.deleted{color:var(--shw-code-value,#fda4af)}.token.selector,.token.attr-name,.token.string,.token.char,.token.builtin,.token.inserted{color:var(--shw-code-string,#86efac)}.token.operator,.token.entity,.token.url,.token.variable{color:var(--shw-code-operator,#67e8f9)}.token.atrule,.token.attr-value,.token.function,.token.class-name{color:var(--shw-code-function,#fde68a)}.token.keyword{color:var(--shw-code-keyword,#c4b5fd)}.token.regex,.token.important{color:var(--shw-code-important,#fdba74)}.token.important,.token.bold{font-weight:700}.token.italic{font-style:italic}@media print{figure,figcaption,.notes,.error{box-shadow:none;color:#111827;background:#fff;border-color:#b8bec8}pre{white-space:pre-wrap;padding:.75rem;overflow:visible}code.lines,.code-line{width:100%}.code-source{overflow-wrap:anywhere;white-space:pre-wrap}.code-line.added,.code-line.removed,.code-line.hunk,.code-line.metadata,.line-number,.note-marker,.note-lines,.token[class]{color:#111827}.notes li::marker{color:#111827}.code-line.hunk{background:#eef0f4}.code-line.focused{border-left-color:#475467}.notes li{break-inside:avoid}}";
4266
+ //#endregion
4248
4267
  //#region src/components/shw-code.ts
4249
- var Qr = class extends V {
4268
+ function hi(e) {
4269
+ let t = /* @__PURE__ */ new Map();
4270
+ for (let [n, r] of e.entries()) {
4271
+ let e = t.get(r.start) ?? [];
4272
+ e.push(n + 1), t.set(r.start, e);
4273
+ }
4274
+ return t;
4275
+ }
4276
+ var gi = class extends V {
4250
4277
  constructor(...e) {
4251
- super(...e), this.filename = "", this.language = "text", this.#e = new W(this);
4278
+ super(...e), this.filename = "", this.language = "text", this.lineNumbers = !1, this.highlight = "", this.annotations = "", this.#e = new W(this);
4252
4279
  }
4253
4280
  static {
4254
4281
  this.properties = {
4255
4282
  filename: { type: String },
4256
- language: { type: String }
4283
+ language: { type: String },
4284
+ lineNumbers: {
4285
+ type: Boolean,
4286
+ attribute: "line-numbers"
4287
+ },
4288
+ highlight: { type: String },
4289
+ annotations: { type: String }
4257
4290
  };
4258
4291
  }
4259
4292
  static {
4260
- this.styles = [U, y`
4261
- :host {
4262
- display: block;
4263
- min-width: 0;
4264
- }
4265
-
4266
- figure {
4267
- background: var(--shw-color-code-background, #111827);
4268
- border: 1px solid var(--shw-color-code-border, rgb(255 255 255 / 12%));
4269
- border-radius: 0.8rem;
4270
- box-shadow: 0 0.75rem 2rem var(--shw-color-shadow, rgb(15 23 42 / 10%));
4271
- color: var(--shw-color-code-text, #e6eaf2);
4272
- margin: 0;
4273
- overflow: hidden;
4274
- }
4275
-
4276
- figcaption {
4277
- align-items: center;
4278
- background: var(--shw-color-code-chrome, #1f2937);
4279
- border-bottom: 1px solid var(--shw-color-code-border, rgb(255 255 255 / 12%));
4280
- color: var(--shw-color-code-muted, #9ca3af);
4281
- display: flex;
4282
- font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
4283
- font-size: 0.75rem;
4284
- justify-content: space-between;
4285
- line-height: 1.4;
4286
- padding: 0.65rem 1rem;
4287
- }
4288
-
4289
- .language {
4290
- letter-spacing: 0.06em;
4291
- text-transform: uppercase;
4292
- }
4293
-
4294
- pre {
4295
- margin: 0;
4296
- overflow-x: auto;
4297
- padding: 1rem 1.15rem;
4298
- }
4299
-
4300
- code {
4301
- font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
4302
- font-size: 0.84rem;
4303
- line-height: 1.7;
4304
- tab-size: 2;
4305
- }
4306
-
4307
- .token.comment,
4308
- .token.prolog,
4309
- .token.doctype,
4310
- .token.cdata {
4311
- color: var(--shw-code-comment, #94a3b8);
4312
- }
4313
-
4314
- .token.punctuation {
4315
- color: var(--shw-code-punctuation, #cbd5e1);
4316
- }
4317
-
4318
- .token.property,
4319
- .token.tag,
4320
- .token.boolean,
4321
- .token.number,
4322
- .token.constant,
4323
- .token.symbol,
4324
- .token.deleted {
4325
- color: var(--shw-code-value, #fda4af);
4326
- }
4327
-
4328
- .token.selector,
4329
- .token.attr-name,
4330
- .token.string,
4331
- .token.char,
4332
- .token.builtin,
4333
- .token.inserted {
4334
- color: var(--shw-code-string, #86efac);
4335
- }
4336
-
4337
- .token.operator,
4338
- .token.entity,
4339
- .token.url,
4340
- .token.variable {
4341
- color: var(--shw-code-operator, #67e8f9);
4342
- }
4343
-
4344
- .token.atrule,
4345
- .token.attr-value,
4346
- .token.function,
4347
- .token.class-name {
4348
- color: var(--shw-code-function, #fde68a);
4349
- }
4350
-
4351
- .token.keyword {
4352
- color: var(--shw-code-keyword, #c4b5fd);
4353
- }
4354
-
4355
- .token.regex,
4356
- .token.important {
4357
- color: var(--shw-code-important, #fdba74);
4358
- }
4359
-
4360
- .token.important,
4361
- .token.bold {
4362
- font-weight: 700;
4363
- }
4364
-
4365
- .token.italic {
4366
- font-style: italic;
4367
- }
4368
- `];
4293
+ this.styles = [U, v(mi)];
4369
4294
  }
4370
4295
  #e;
4371
4296
  render() {
4372
- return R`
4373
- <figure>
4374
- ${this.filename !== "" || this.language !== "text" ? R`<figcaption>
4375
- <span>${this.filename}</span>
4376
- <span class="language">${this.language}</span>
4377
- </figcaption>` : z}
4378
- <pre><code>${We(Zr(this.#e.source, this.language))}</code></pre>
4379
- </figure>
4380
- `;
4297
+ let e = this.#e.source, t = this.#t(), n = t ? pi(e, this.language === "diff" ? "text" : this.language) : [], r = ni(this.highlight, this.annotations, n.length), i = this.lineNumbers || r.notes.length + r.ranges.length > 0;
4298
+ return R`<figure>
4299
+ ${this.#n(t, i)}
4300
+ ${this.#i(e, t, n, r)}
4301
+ ${r.errors.map((e) => R`<p class="error" role="alert">${e}</p>`)}
4302
+ ${this.#o(r.notes)}
4303
+ </figure>`;
4304
+ }
4305
+ #t() {
4306
+ return this.lineNumbers || this.language === "diff" || this.highlight !== "" || this.annotations !== "";
4307
+ }
4308
+ #n(e, t) {
4309
+ return this.filename === "" && this.language === "text" && !e ? z : R`<figcaption>
4310
+ <span>${this.filename}</span>
4311
+ ${this.#r(t)}
4312
+ </figcaption>`;
4313
+ }
4314
+ #r(e) {
4315
+ return R`<span class="caption-meta"
4316
+ >${e ? R`<span>Source lines</span>` : z}<span class="language"
4317
+ >${this.language}</span
4318
+ ></span
4319
+ >`;
4320
+ }
4321
+ #i(e, t, n, r) {
4322
+ if (!t) return R`<pre><code>${We(di(e, this.language))}</code></pre>`;
4323
+ let i = this.language === "diff" ? oi(e.split("\n")) : [], a = hi(r.notes);
4324
+ return R`<pre><code class=${this.lineNumbers ? "lines numbered" : "lines"} style=${`--code-number-width: ${Math.max(2, String(n.length).length)}ch`}>${n.map((e, t) => this.#a(e, t + 1, r.ranges, i[t] ?? "", a.get(t + 1) ?? [], t === n.length - 1))}</code></pre>`;
4325
+ }
4326
+ #a(e, t, n, r, i, a) {
4327
+ return R`<span class=${`code-line ${r}${n.some((e) => t >= e.start && t <= e.end) ? " focused" : ""}`}
4328
+ >${this.lineNumbers ? R`<span class="line-number" data-number=${t} aria-hidden="true"></span>` : z}<span
4329
+ class="code-source"
4330
+ >${We(e)}</span
4331
+ ><span class="note-markers" aria-hidden="true"
4332
+ >${i.map((e) => R`<span class="note-marker" data-number=${e}></span>`)}</span
4333
+ ></span
4334
+ >${a ? z : "\n"}`;
4335
+ }
4336
+ #o(e) {
4337
+ return e.length === 0 ? z : R`<div class="notes">
4338
+ <ol aria-label="Code annotations">
4339
+ ${e.map((e) => R`<li><span class="note-lines">Source ${e.start === e.end ? `line ${e.start}` : `lines ${e.start}–${e.end}`}</span><shw-markdown>${e.text}</shw-markdown></li>`)}
4340
+ </ol>
4341
+ </div>`;
4381
4342
  }
4382
4343
  };
4383
- H("shw-code", Qr);
4344
+ H("shw-code", gi);
4384
4345
  //#endregion
4385
4346
  //#region src/components/shw-doc.ts
4386
- var $r = class extends V {
4347
+ var _i = class extends V {
4387
4348
  static {
4388
4349
  this.styles = [U, y`
4389
4350
  :host {
@@ -4450,10 +4411,10 @@ var $r = class extends V {
4450
4411
  return R`<main class="document"><slot></slot></main>`;
4451
4412
  }
4452
4413
  };
4453
- H("shw-doc", $r);
4414
+ H("shw-doc", _i);
4454
4415
  //#endregion
4455
4416
  //#region src/components/shw-figure.ts
4456
- var ei = class extends V {
4417
+ var vi = class extends V {
4457
4418
  constructor(...e) {
4458
4419
  super(...e), this.caption = "";
4459
4420
  }
@@ -4475,7 +4436,7 @@ var ei = class extends V {
4475
4436
  align-items: center;
4476
4437
  background: var(--shw-color-surface-muted, #f8fafc);
4477
4438
  border: 1px solid var(--shw-color-border, #dde2ea);
4478
- border-radius: 0.8rem;
4439
+ border-radius: calc(var(--shw-radius, 1rem) * 0.85);
4479
4440
  display: flex;
4480
4441
  justify-content: center;
4481
4442
  min-height: 4rem;
@@ -4495,8 +4456,16 @@ var ei = class extends V {
4495
4456
  color: var(--shw-color-muted, #667085);
4496
4457
  font-size: 0.84rem;
4497
4458
  line-height: 1.55;
4498
- margin-top: 0.65rem;
4499
- text-align: center;
4459
+ margin-top: 0.75rem;
4460
+ max-width: var(--shw-reading-width, 70ch);
4461
+ padding-inline: 0.25rem;
4462
+ text-wrap: pretty;
4463
+ }
4464
+
4465
+ @media print {
4466
+ figure {
4467
+ break-inside: avoid;
4468
+ }
4500
4469
  }
4501
4470
  `];
4502
4471
  }
@@ -4509,10 +4478,10 @@ var ei = class extends V {
4509
4478
  `;
4510
4479
  }
4511
4480
  };
4512
- H("shw-figure", ei);
4481
+ H("shw-figure", vi);
4513
4482
  //#endregion
4514
4483
  //#region src/components/shw-grid.ts
4515
- var ti = class extends V {
4484
+ var yi = class extends V {
4516
4485
  constructor(...e) {
4517
4486
  super(...e), this.columns = 2;
4518
4487
  }
@@ -4525,6 +4494,7 @@ var ti = class extends V {
4525
4494
  static {
4526
4495
  this.styles = [U, y`
4527
4496
  :host {
4497
+ container: shw-grid / inline-size;
4528
4498
  display: block;
4529
4499
  min-width: 0;
4530
4500
  }
@@ -4539,7 +4509,7 @@ var ti = class extends V {
4539
4509
  min-width: 0;
4540
4510
  }
4541
4511
 
4542
- @media (min-width: 44rem) {
4512
+ @container shw-grid (min-width: 38rem) {
4543
4513
  .columns-2 {
4544
4514
  grid-template-columns: repeat(2, minmax(0, 1fr));
4545
4515
  }
@@ -4553,7 +4523,7 @@ var ti = class extends V {
4553
4523
  }
4554
4524
  }
4555
4525
 
4556
- @media (min-width: 68rem) {
4526
+ @container shw-grid (min-width: 58rem) {
4557
4527
  .columns-4 {
4558
4528
  grid-template-columns: repeat(4, minmax(0, 1fr));
4559
4529
  }
@@ -4564,10 +4534,10 @@ var ti = class extends V {
4564
4534
  return R`<div class="grid columns-${Math.min(4, Math.max(1, Number.isFinite(this.columns) ? Math.trunc(this.columns) : 2))}"><slot></slot></div>`;
4565
4535
  }
4566
4536
  };
4567
- H("shw-grid", ti);
4537
+ H("shw-grid", yi);
4568
4538
  //#endregion
4569
- //#region src/components/shw-header.ts
4570
- var ni = class extends V {
4539
+ //#region src/styles/header.css?inline
4540
+ var bi = ":host{display:block}header{border-bottom:1px solid var(--shw-color-border,#dde2ea);padding-bottom:clamp(1.5rem,4vw,3rem)}.eyebrow{color:var(--shw-color-accent,#4f46e5);letter-spacing:.12em;text-transform:uppercase;align-items:center;gap:.75rem;margin:0 0 1.25rem;font-size:.75rem;font-weight:750;display:flex}.eyebrow:before{content:\"\";background:currentColor;flex:0 0 2rem;height:2px}.heading{letter-spacing:-.045em;max-width:16ch;font-size:clamp(2.25rem,7vw,4.75rem);line-height:1.08}shw-markdown{--shw-reading-width:62ch;margin-top:1.25rem}", xi = class extends V {
4571
4541
  constructor(...e) {
4572
4542
  super(...e), this.eyebrow = "", this.heading = "", this.#e = new W(this);
4573
4543
  }
@@ -4581,35 +4551,7 @@ var ni = class extends V {
4581
4551
  this.styles = [
4582
4552
  U,
4583
4553
  Le,
4584
- y`
4585
- :host {
4586
- display: block;
4587
- }
4588
-
4589
- header {
4590
- border-bottom: 1px solid var(--shw-color-border, #dde2ea);
4591
- padding-bottom: clamp(1.5rem, 4vw, 3rem);
4592
- }
4593
-
4594
- .eyebrow {
4595
- color: var(--shw-color-accent, #4f46e5);
4596
- font-size: 0.75rem;
4597
- font-weight: 750;
4598
- letter-spacing: 0.12em;
4599
- margin: 0 0 0.75rem;
4600
- text-transform: uppercase;
4601
- }
4602
-
4603
- .heading {
4604
- font-size: clamp(2.25rem, 7vw, 4.75rem);
4605
- max-width: 16ch;
4606
- }
4607
-
4608
- shw-markdown {
4609
- margin-top: 1.25rem;
4610
- --shw-reading-width: 62ch;
4611
- }
4612
- `
4554
+ v(bi)
4613
4555
  ];
4614
4556
  }
4615
4557
  #e;
@@ -4623,10 +4565,10 @@ var ni = class extends V {
4623
4565
  `;
4624
4566
  }
4625
4567
  };
4626
- H("shw-header", ni);
4568
+ H("shw-header", xi);
4627
4569
  //#endregion
4628
- //#region src/components/shw-section.ts
4629
- var ri = class extends V {
4570
+ //#region src/styles/section.css?inline
4571
+ var Si = ":host{min-width:0;display:block;container:shw-section/inline-size}section,.section-header{gap:1.5rem;display:grid}.section-header{border-bottom:1px solid var(--shw-color-border,#dde2ea);gap:.6rem;padding-bottom:1rem}.heading{overflow-wrap:anywhere;font-size:clamp(1.5rem,3.5cqi,2.15rem)}.intro{color:var(--shw-color-muted,#667085);text-wrap:pretty;max-width:54ch;margin:0;line-height:1.55}slot{gap:1.5rem;min-width:0;display:grid}@container shw-section (width>=44rem){.section-header[data-with-intro]{grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);align-items:end;gap:2rem}}@media print{.section-header{break-after:avoid}}", Ci = class extends V {
4630
4572
  constructor(...e) {
4631
4573
  super(...e), this.heading = "", this.intro = "", this.level = 2;
4632
4574
  }
@@ -4641,50 +4583,7 @@ var ri = class extends V {
4641
4583
  this.styles = [
4642
4584
  U,
4643
4585
  Le,
4644
- y`
4645
- :host {
4646
- display: block;
4647
- min-width: 0;
4648
- }
4649
-
4650
- section,
4651
- .section-header {
4652
- display: grid;
4653
- gap: 1.25rem;
4654
- }
4655
-
4656
- .section-header {
4657
- border-bottom: 1px solid var(--shw-color-border, #dde2ea);
4658
- gap: 0.6rem;
4659
- padding-bottom: 0.75rem;
4660
- }
4661
-
4662
- .heading {
4663
- font-size: clamp(1.5rem, 4vw, 2.15rem);
4664
- }
4665
-
4666
- .intro {
4667
- color: var(--shw-color-muted, #667085);
4668
- line-height: 1.55;
4669
- margin: 0;
4670
- max-width: 54ch;
4671
- text-wrap: pretty;
4672
- }
4673
-
4674
- slot {
4675
- display: grid;
4676
- gap: 1.25rem;
4677
- min-width: 0;
4678
- }
4679
-
4680
- @media (min-width: 52rem) {
4681
- .section-header[data-with-intro] {
4682
- align-items: end;
4683
- gap: clamp(2rem, 5vw, 4rem);
4684
- grid-template-columns: minmax(12rem, 0.75fr) minmax(18rem, 1.25fr);
4685
- }
4686
- }
4687
- `
4586
+ v(Si)
4688
4587
  ];
4689
4588
  }
4690
4589
  render() {
@@ -4704,10 +4603,10 @@ var ri = class extends V {
4704
4603
  return this.intro === "" ? z : R`<p class="intro">${this.intro}</p>`;
4705
4604
  }
4706
4605
  };
4707
- H("shw-section", ri);
4606
+ H("shw-section", Ci);
4708
4607
  //#endregion
4709
- //#region src/components/shw-stat.ts
4710
- var ii = class extends V {
4608
+ //#region src/styles/stat.css?inline
4609
+ var wi = ":host{--shw-stat-accent:var(--shw-tone-neutral,#475467);min-width:0;display:block}:host([tone=info]){--shw-stat-accent:var(--shw-tone-info,#175cd3)}:host([tone=success]){--shw-stat-accent:var(--shw-tone-success,#067647)}:host([tone=warning]){--shw-stat-accent:var(--shw-tone-warning,#b54708)}:host([tone=danger]){--shw-stat-accent:var(--shw-tone-danger,#b42318)}article{background:color-mix(in srgb, var(--shw-stat-accent) 4%, var(--shw-color-surface,#fff));border:1px solid var(--shw-color-border,#dde2ea);border-top:3px solid color-mix(in srgb, var(--shw-stat-accent) 45%, var(--shw-color-border,#dde2ea));border-radius:calc(var(--shw-radius,1rem) * .85);align-content:start;gap:.25rem;height:100%;padding:clamp(1rem,3vw,1.35rem);display:grid}.label{color:var(--shw-color-muted,#667085);letter-spacing:.05em;text-transform:uppercase;margin:0;font-size:.78rem;font-weight:700}.value{color:var(--shw-color-heading,#101827);font-variant-numeric:tabular-nums;letter-spacing:-.04em;overflow-wrap:anywhere;margin:.2rem 0 0;font-size:clamp(1.85rem,5vw,2.65rem);font-weight:750;line-height:1.1}.change{color:var(--shw-stat-accent);margin:.35rem 0 0;font-size:.85rem;font-weight:700}@media print{article{break-inside:avoid}}", Ti = class extends V {
4711
4610
  constructor(...e) {
4712
4611
  super(...e), this.change = "", this.label = "", this.tone = "neutral", this.value = "";
4713
4612
  }
@@ -4723,66 +4622,7 @@ var ii = class extends V {
4723
4622
  };
4724
4623
  }
4725
4624
  static {
4726
- this.styles = [U, y`
4727
- :host {
4728
- --shw-stat-accent: var(--shw-tone-neutral, #475467);
4729
- display: block;
4730
- min-width: 0;
4731
- }
4732
-
4733
- :host([tone="info"]) {
4734
- --shw-stat-accent: var(--shw-tone-info, #175cd3);
4735
- }
4736
-
4737
- :host([tone="success"]) {
4738
- --shw-stat-accent: var(--shw-tone-success, #067647);
4739
- }
4740
-
4741
- :host([tone="warning"]) {
4742
- --shw-stat-accent: var(--shw-tone-warning, #b54708);
4743
- }
4744
-
4745
- :host([tone="danger"]) {
4746
- --shw-stat-accent: var(--shw-tone-danger, #b42318);
4747
- }
4748
-
4749
- article {
4750
- background: var(--shw-color-surface, #ffffff);
4751
- border: 1px solid var(--shw-color-border, #dde2ea);
4752
- border-radius: 0.8rem;
4753
- box-shadow: 0 1px 2px var(--shw-color-shadow, rgb(15 23 42 / 3%));
4754
- display: grid;
4755
- gap: 0.25rem;
4756
- height: 100%;
4757
- padding: clamp(1rem, 3vw, 1.35rem);
4758
- }
4759
-
4760
- .label {
4761
- color: var(--shw-color-muted, #667085);
4762
- font-size: 0.78rem;
4763
- font-weight: 700;
4764
- letter-spacing: 0.05em;
4765
- margin: 0;
4766
- text-transform: uppercase;
4767
- }
4768
-
4769
- .value {
4770
- color: var(--shw-color-heading, #101827);
4771
- font-size: clamp(1.85rem, 5vw, 2.65rem);
4772
- font-weight: 750;
4773
- letter-spacing: -0.04em;
4774
- line-height: 1.1;
4775
- margin: 0.2rem 0 0;
4776
- overflow-wrap: anywhere;
4777
- }
4778
-
4779
- .change {
4780
- color: var(--shw-stat-accent);
4781
- font-size: 0.85rem;
4782
- font-weight: 700;
4783
- margin: 0.35rem 0 0;
4784
- }
4785
- `];
4625
+ this.styles = [U, v(wi)];
4786
4626
  }
4787
4627
  render() {
4788
4628
  return R`
@@ -4794,42 +4634,42 @@ var ii = class extends V {
4794
4634
  `;
4795
4635
  }
4796
4636
  };
4797
- H("shw-stat", ii);
4637
+ H("shw-stat", Ti);
4798
4638
  //#endregion
4799
4639
  //#region src/internal/parse-steps.ts
4800
- var ai = /(?:^\s*|\s+)(\d+)[.)]\s+/gu;
4801
- function oi(e) {
4640
+ var Ei = /(?:^\s*|\s+)(\d+)[.)]\s+/gu;
4641
+ function Di(e) {
4802
4642
  let t = Number(e[0]?.[1]);
4803
4643
  return e.every((e, n) => Number(e[1]) === t + n);
4804
4644
  }
4805
- function si(e, t) {
4645
+ function Oi(e, t) {
4806
4646
  return t.map((n, r) => {
4807
4647
  let i = (n.index ?? 0) + n[0].length, a = t[r + 1]?.index ?? e.length;
4808
4648
  return e.slice(i, a).trim();
4809
4649
  });
4810
4650
  }
4811
- function ci(e) {
4812
- let t = [...e.matchAll(ai)], [n] = t;
4813
- if (n?.index === 0) return oi(t) ? si(e, t) : [e.slice(n[0].length)];
4651
+ function ki(e) {
4652
+ let t = [...e.matchAll(Ei)], [n] = t;
4653
+ if (n?.index === 0) return Di(t) ? Oi(e, t) : [e.slice(n[0].length)];
4814
4654
  }
4815
- function li(e, t) {
4655
+ function Ai(e, t) {
4816
4656
  let n = e.pop();
4817
4657
  n !== void 0 && e.push(`${n}\n${t}`.trimEnd());
4818
4658
  }
4819
- function ui(e, t) {
4659
+ function ji(e, t) {
4820
4660
  return e.length === 0 && t !== "" ? [t] : e;
4821
4661
  }
4822
- function di(e) {
4662
+ function Mi(e) {
4823
4663
  let t = [];
4824
4664
  for (let n of e.split("\n")) {
4825
- let e = ci(n);
4826
- e === void 0 ? li(t, n) : t.push(...e);
4665
+ let e = ki(n);
4666
+ e === void 0 ? Ai(t, n) : t.push(...e);
4827
4667
  }
4828
- return ui(t, e);
4668
+ return ji(t, e);
4829
4669
  }
4830
4670
  //#endregion
4831
4671
  //#region src/components/shw-steps.ts
4832
- var fi = class extends V {
4672
+ var Ni = class extends V {
4833
4673
  static {
4834
4674
  this.styles = [U, y`
4835
4675
  :host {
@@ -4888,7 +4728,7 @@ var fi = class extends V {
4888
4728
  render() {
4889
4729
  return R`
4890
4730
  <ol>
4891
- ${di(this.#e.source).map((e, t) => R`
4731
+ ${Mi(this.#e.source).map((e, t) => R`
4892
4732
  <li>
4893
4733
  <span class="marker" aria-hidden="true">${t + 1}</span>
4894
4734
  <shw-markdown>${e}</shw-markdown>
@@ -4898,10 +4738,10 @@ var fi = class extends V {
4898
4738
  `;
4899
4739
  }
4900
4740
  };
4901
- H("shw-steps", fi);
4741
+ H("shw-steps", Ni);
4902
4742
  //#endregion
4903
- //#region src/components/shw-summary.ts
4904
- var pi = class extends V {
4743
+ //#region src/styles/summary.css?inline
4744
+ var Pi = ":host{min-width:0;display:block;container:shw-summary/inline-size}section{background:color-mix(in srgb, var(--shw-color-accent-soft,#eef2ff) 72%, var(--shw-color-surface,#fff));border:1px solid color-mix(in srgb, var(--shw-color-accent,#4f46e5) 18%, transparent);border-radius:calc(var(--shw-radius,1rem) * .85);gap:.75rem;padding:clamp(1.15rem,3vw,1.75rem);display:grid}.heading{color:var(--shw-color-accent,#4f46e5);letter-spacing:.09em;text-transform:uppercase;padding-top:.35rem;font-size:.78rem;font-weight:750}shw-markdown{min-width:0}@container shw-summary (width>=44rem){section:has(.heading){grid-template-columns:minmax(0,.25fr) minmax(0,1fr);gap:2rem}}@media print{section{break-inside:avoid}}", Fi = class extends V {
4905
4745
  constructor(...e) {
4906
4746
  super(...e), this.heading = "Summary", this.#e = new W(this);
4907
4747
  }
@@ -4912,37 +4752,7 @@ var pi = class extends V {
4912
4752
  this.styles = [
4913
4753
  U,
4914
4754
  Le,
4915
- y`
4916
- :host {
4917
- display: block;
4918
- }
4919
-
4920
- section {
4921
- background: color-mix(
4922
- in srgb,
4923
- var(--shw-color-accent-soft, #eef2ff) 62%,
4924
- var(--shw-color-surface, #ffffff)
4925
- );
4926
- border: 1px solid color-mix(in srgb, var(--shw-color-accent, #4f46e5) 18%, transparent);
4927
- border-left: 0.3rem solid var(--shw-color-accent, #4f46e5);
4928
- border-radius: 0.8rem;
4929
- display: grid;
4930
- gap: 0.55rem;
4931
- padding: clamp(1rem, 3vw, 1.4rem);
4932
- }
4933
-
4934
- .heading {
4935
- color: var(--shw-color-accent, #4f46e5);
4936
- font-size: 0.78rem;
4937
- font-weight: 750;
4938
- letter-spacing: 0.09em;
4939
- text-transform: uppercase;
4940
- }
4941
-
4942
- shw-markdown {
4943
- --shw-reading-width: none;
4944
- }
4945
- `
4755
+ v(Pi)
4946
4756
  ];
4947
4757
  }
4948
4758
  #e;
@@ -4955,35 +4765,35 @@ var pi = class extends V {
4955
4765
  `;
4956
4766
  }
4957
4767
  };
4958
- H("shw-summary", pi);
4768
+ H("shw-summary", Fi);
4959
4769
  //#endregion
4960
4770
  //#region src/internal/table-parser.ts
4961
- function mi(e) {
4771
+ function Ii(e) {
4962
4772
  let t = e.trim().split(/(?<!\\)\|/u).map((e) => e.replaceAll("\\|", "|").trim()), n = +(t[0] === ""), r = t.at(-1) === "" ? -1 : void 0;
4963
4773
  return t.slice(n, r);
4964
4774
  }
4965
- function hi(e) {
4775
+ function Li(e) {
4966
4776
  return e.length > 0 && e.every((e) => /^:?-{3,}:?$/u.test(e));
4967
4777
  }
4968
- function gi(e) {
4778
+ function Ri(e) {
4969
4779
  let t = e[0];
4970
- return t !== void 0 && hi(t) ? e.slice(1) : e;
4780
+ return t !== void 0 && Li(t) ? e.slice(1) : e;
4971
4781
  }
4972
- function _i(e) {
4973
- let t = e.split("\n").map((e) => e.trim()).filter(Boolean).map(mi).filter((e) => e.length > 0), n = t.shift();
4782
+ function zi(e) {
4783
+ let t = e.split("\n").map((e) => e.trim()).filter(Boolean).map(Ii).filter((e) => e.length > 0), n = t.shift();
4974
4784
  if (n === void 0) return {
4975
4785
  headers: [],
4976
4786
  rows: []
4977
4787
  };
4978
- let r = gi(t), i = Math.max(n.length, ...r.map((e) => e.length));
4788
+ let r = Ri(t), i = Math.max(n.length, ...r.map((e) => e.length));
4979
4789
  return {
4980
4790
  headers: Array.from({ length: i }, (e, t) => n[t] ?? `Column ${t + 1}`),
4981
4791
  rows: r.map((e) => Array.from({ length: i }, (t, n) => e[n] ?? ""))
4982
4792
  };
4983
4793
  }
4984
4794
  //#endregion
4985
- //#region src/components/shw-table.ts
4986
- var vi = class extends V {
4795
+ //#region src/styles/table.css?inline
4796
+ var Bi = ":host{min-width:0;display:block}.scroller{border:1px solid var(--shw-color-border,#dde2ea);border-radius:calc(var(--shw-radius,1rem) * .85);overflow-x:auto}table{border-collapse:collapse;text-align:left;min-width:100%;font-size:.925rem;line-height:1.5}caption{color:var(--shw-color-heading,#101827);text-align:left;padding:.9rem 1rem;font-size:1rem;font-weight:700}th,td{border-top:1px solid var(--shw-color-border,#dde2ea);vertical-align:top;padding:.75rem 1rem}th{background:var(--shw-color-surface-muted,#f8fafc);color:var(--shw-color-heading,#101827);letter-spacing:.04em;text-transform:uppercase;white-space:nowrap;font-size:.78rem;font-weight:750}tbody tr:nth-child(2n){background:var(--shw-color-table-stripe,#f8fafc94)}td :where(p,ul,ol){margin-block:0 .5rem}td :where(p,ul,ol):last-child{margin-bottom:0}td :where(ul,ol){padding-left:1.2rem}td :where(a){color:var(--shw-color-accent,#4f46e5);text-underline-offset:.16em;text-decoration-thickness:.08em}td :where(code){background:var(--shw-color-inline-code,#f2f4f7);color:var(--shw-color-heading,#101827);border-radius:.25rem;padding:.1em .3em;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:.85em}.empty{color:var(--shw-color-muted,#667085);margin:0;padding:1rem}@media (width<=40rem){.scroller{overflow-x:hidden}thead{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}tbody,tr,td{display:block}tbody tr{border-top:1px solid var(--shw-color-border,#dde2ea);padding-block:.4rem}td{overflow-wrap:anywhere;border:0;grid-template-columns:minmax(6.5rem,36%) 1fr;gap:.75rem;padding-block:.55rem;display:grid}td:before{color:var(--shw-color-muted,#667085);content:attr(data-label);letter-spacing:.04em;text-transform:uppercase;font-size:.72rem;font-weight:750}}", Vi = class extends V {
4987
4797
  constructor(...e) {
4988
4798
  super(...e), this.caption = "", this.#e = new W(this);
4989
4799
  }
@@ -4991,136 +4801,11 @@ var vi = class extends V {
4991
4801
  this.properties = { caption: { type: String } };
4992
4802
  }
4993
4803
  static {
4994
- this.styles = [U, y`
4995
- :host {
4996
- display: block;
4997
- min-width: 0;
4998
- }
4999
-
5000
- .scroller {
5001
- border: 1px solid var(--shw-color-border, #dde2ea);
5002
- border-radius: 0.8rem;
5003
- overflow-x: auto;
5004
- }
5005
-
5006
- table {
5007
- border-collapse: collapse;
5008
- font-size: 0.925rem;
5009
- line-height: 1.5;
5010
- min-width: 100%;
5011
- text-align: left;
5012
- }
5013
-
5014
- caption {
5015
- color: var(--shw-color-heading, #101827);
5016
- font-size: 1rem;
5017
- font-weight: 700;
5018
- padding: 0.9rem 1rem;
5019
- text-align: left;
5020
- }
5021
-
5022
- th,
5023
- td {
5024
- border-top: 1px solid var(--shw-color-border, #dde2ea);
5025
- padding: 0.75rem 1rem;
5026
- vertical-align: top;
5027
- }
5028
-
5029
- th {
5030
- background: var(--shw-color-surface-muted, #f8fafc);
5031
- color: var(--shw-color-heading, #101827);
5032
- font-size: 0.78rem;
5033
- font-weight: 750;
5034
- letter-spacing: 0.04em;
5035
- text-transform: uppercase;
5036
- white-space: nowrap;
5037
- }
5038
-
5039
- tbody tr:nth-child(even) {
5040
- background: var(--shw-color-table-stripe, rgb(248 250 252 / 58%));
5041
- }
5042
-
5043
- td :where(p, ul, ol) {
5044
- margin-block: 0 0.5rem;
5045
- }
5046
-
5047
- td :where(p, ul, ol):last-child {
5048
- margin-bottom: 0;
5049
- }
5050
-
5051
- td :where(ul, ol) {
5052
- padding-left: 1.2rem;
5053
- }
5054
-
5055
- td :where(a) {
5056
- color: var(--shw-color-accent, #4f46e5);
5057
- text-decoration-thickness: 0.08em;
5058
- text-underline-offset: 0.16em;
5059
- }
5060
-
5061
- td :where(code) {
5062
- background: var(--shw-color-inline-code, #f2f4f7);
5063
- border-radius: 0.25rem;
5064
- color: var(--shw-color-heading, #101827);
5065
- font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
5066
- font-size: 0.85em;
5067
- padding: 0.1em 0.3em;
5068
- }
5069
-
5070
- .empty {
5071
- color: var(--shw-color-muted, #667085);
5072
- margin: 0;
5073
- padding: 1rem;
5074
- }
5075
-
5076
- @media (max-width: 40rem) {
5077
- .scroller {
5078
- overflow-x: hidden;
5079
- }
5080
-
5081
- thead {
5082
- clip-path: inset(50%);
5083
- height: 1px;
5084
- overflow: hidden;
5085
- position: absolute;
5086
- white-space: nowrap;
5087
- width: 1px;
5088
- }
5089
-
5090
- tbody,
5091
- tr,
5092
- td {
5093
- display: block;
5094
- }
5095
-
5096
- tbody tr {
5097
- border-top: 1px solid var(--shw-color-border, #dde2ea);
5098
- padding-block: 0.4rem;
5099
- }
5100
-
5101
- td {
5102
- border: 0;
5103
- display: grid;
5104
- gap: 0.75rem;
5105
- grid-template-columns: minmax(6.5rem, 36%) 1fr;
5106
- overflow-wrap: anywhere;
5107
- padding-block: 0.55rem;
5108
- }
5109
-
5110
- td::before {
5111
- color: var(--shw-color-muted, #667085);
5112
- content: attr(data-label);
5113
- font-size: 0.72rem;
5114
- font-weight: 750;
5115
- letter-spacing: 0.04em;
5116
- text-transform: uppercase;
5117
- }
5118
- }
5119
- `];
4804
+ this.styles = [U, v(Bi)];
5120
4805
  }
5121
4806
  #e;
5122
4807
  render() {
5123
- let e = _i(this.#e.source);
4808
+ let e = zi(this.#e.source);
5124
4809
  return e.headers.length === 0 ? R`<div class="scroller"><p class="empty">No table data.</p></div>` : R`
5125
4810
  <div class="scroller">
5126
4811
  <table>
@@ -5148,6 +4833,6 @@ var vi = class extends V {
5148
4833
  };
5149
4834
  //#endregion
5150
4835
  //#region src/index.ts
5151
- H("shw-table", vi), f();
4836
+ H("shw-table", Vi), f();
5152
4837
  //#endregion
5153
- export { Re as ShwBadge, Gr as ShwCallout, Kr as ShwCard, Qr as ShwCode, qr as ShwCollapsible, $r as ShwDoc, ei as ShwFigure, ti as ShwGrid, ni as ShwHeader, Wr as ShwMarkdown, ri as ShwSection, ii as ShwStat, fi as ShwSteps, pi as ShwSummary, vi as ShwTable };
4838
+ export { Re as ShwBadge, Gr as ShwCallout, qr as ShwCard, gi as ShwCode, Yr as ShwCollapsible, _i as ShwDoc, vi as ShwFigure, yi as ShwGrid, xi as ShwHeader, Wr as ShwMarkdown, Ci as ShwSection, Ti as ShwStat, Ni as ShwSteps, Fi as ShwSummary, Vi as ShwTable };