@stackone/malachite 2.94.0 → 2.95.0

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/COMPONENTS.md CHANGED
@@ -34,7 +34,7 @@ The catalog of components exported from `@stackone/malachite`. **Reach for one o
34
34
  ## Feedback & status
35
35
 
36
36
  - **`ChangeReview`** — Reviewing changes a machine made. `ChangeReview.Item` attaches to one changed thing: it names what changed with an `assistant` Tag, shows the value it displaced struck through, and offers approve and deny as two equally reachable icon buttons — a review affordance that made keeping easier than rejecting would not be one. Given `children`, it wraps the field the change is annotating: the tag/label/actions become a header band above it and the before/after line moves below, so "Was …" reads next to the value it describes instead of stacked with the header; without children it renders as the standalone card it always has. `ChangeReview.Summary` counts what is still undecided across the whole form, which is what a per-item control cannot do and what a caller gates a save on; at zero it either says so or collapses to nothing. `ChangeReview.Removed` is for something the assistant took out: a dashed, tinted card listing what would be lost, because a removal that simply vanished would leave nothing to reject. `ChangeReview.Jump` is a chip an assistant turn carries to point at a field it touched. _Key props:_ `Item`: `label`, `before`, `after`, `kind` (`changed` | `added` | `removed`), `origin`, `children`, `onApprove`, `onDeny`, `disabled`, `className`. `Summary`: `count`, `origin`, `onApproveAll`, `onDenyAll`, `disabled`, `settledMessage`, `className`. `Removed`: `title`, `details` (`{label, value}[]`), `onRestore`, `onDiscard`, `restoreLabel`, `discardLabel`, `origin`, `disabled`, `className`. `Jump`: `label`, `onClick`, `disabled`, `className`. `Item` also takes `onPreviewRevert(previewing)`, fired on hover and on focus.
37
- - **`Alert`** — Inline alert/callout. Four severities (info, success, warning, error) plus `assistant` — a violet, sparkle-marked ground that says a machine wrote the message rather than that anything is wrong, so provenance never has to borrow a severity colour. `action` puts a control at the end — the link or button that resolves what the alert reports — and `icon` replaces the status icon; an svg that paints with `currentColor` (a CustomIcon) is drawn in the colour and size of the built-in one. _Key props:_ `type`, `message`, `lead` (a bold sentence the message runs on from; plain text), `address` (`{ text, emphasis? }`: an address the message runs on into, whole and in mono; `emphasis`, an optional substring to bold wherever it occurs, often the registrable domain) and `addressSuffix` (markdown after the address, joined without a space when it opens with any punctuation character), `layout` (`inline` | `banner` — a 48px page-wide band with a 16px icon, for `WizardLayout`'s `banner` slot; an expandable alert stays inline), `align` (`start` | `center`, the banner icon and text gathered mid-band), `action`, `icon`, `hasMargin`, `live` (makes the message a live region — `role="alert"` for error/warning, announced as it mounts; `status` otherwise, announced when its `message` changes, so keep it mounted; off by default), `renderLink` (routes root-relative links in `message` through the app’s router, as `MarkdownBlock` does), `children` (expandable body), `isExpanded`, `onToggle`, `className`.
37
+ - **`Alert`** — Inline alert/callout. Four severities (info, success, warning, error) plus `assistant` — a violet, sparkle-marked ground that says a machine wrote the message rather than that anything is wrong, so provenance never has to borrow a severity colour. A markdown link in the message takes the colour of the alert, underlined. `action` puts a control at the end — the link or button that resolves what the alert reports — and `icon` replaces the status icon; an svg that paints with `currentColor` (a CustomIcon) is drawn in the colour and size of the built-in one. _Key props:_ `type`, `message`, `lead` (a bold sentence the message runs on from; plain text), `address` (`{ text, emphasis? }`: an address the message runs on into, whole and in mono; `emphasis`, an optional substring to bold wherever it occurs, often the registrable domain) and `addressSuffix` (markdown after the address, joined without a space when it opens with any punctuation character), `layout` (`inline` | `banner` — a 48px page-wide band with a 16px icon, for `WizardLayout`'s `banner` slot; an expandable alert stays inline), `align` (`start` | `center`, the banner icon and text gathered mid-band), `action`, `icon`, `hasMargin`, `live` (makes the message a live region — `role="alert"` for error/warning, announced as it mounts; `status` otherwise, announced when its `message` changes, so keep it mounted; off by default), `renderLink` (routes root-relative links in `message` through the app’s router, as `MarkdownBlock` does), `children` (expandable body), `isExpanded`, `onToggle`, `className`.
38
38
  - **`IconIndicator`** — A non-interactive icon that carries a meaning, such as a capability shown on a page that cannot switch it on. Same square as an icon-only `Button` at each `size`, so it lines up where a sibling view shows the button. Renders `role="img"`, named by `aria-label`; with a `tooltip` it takes focus so the tooltip is reachable by keyboard. Reach for it instead of a hand-sized `<span>` around an icon. _Key props:_ `icon`, `aria-label`, `tooltip`, `size`.
39
39
  - **`IconBadge`** — A small filled tile carrying a 12px glyph, for a dialog or panel header such as `SidePanel`’s `icon`. Decorative and always `aria-hidden`: the title beside it carries the meaning, so reach for `IconIndicator` when the icon itself has to say something. `variant` picks a semantic fill (`default` neutral, `accent` the interaction colour, `warning`, `destructive`, `success`) rather than taking a colour, and the glyph is drawn in the card background. `ConfirmationDialog` draws its badge with it. _Key props:_ `icon`, `variant` (`default` | `accent` | `warning` | `destructive` | `success`), `className`.
40
40
  - **`StatusBadge`** — Large status indicator (e.g. success checkmark) for terminal/confirmation screens. _Key props:_ `type`.
@@ -1,18 +1,22 @@
1
- import { jsx as t, jsxs as b, Fragment as y } from "react/jsx-runtime";
2
- import { FOCUS_RING as m } from "./focusRing.js";
3
- const $ = ({
1
+ import { jsx as a, jsxs as p, Fragment as M } from "react/jsx-runtime";
2
+ import { FOCUS_RING as $ } from "./focusRing.js";
3
+ const k = {
4
+ default: "var(--malachite-accent-background, rgb(0, 175, 102))",
5
+ warning: "var(--malachite-warning-foreground, rgb(150, 88, 10))"
6
+ }, C = ({
4
7
  checked: o,
5
- indeterminate: a = !1,
6
- onChange: e,
7
- disabled: l = !1,
8
+ indeterminate: t = !1,
9
+ onChange: l,
10
+ disabled: e = !1,
8
11
  size: r = 14,
9
- presentational: u = !1,
10
- "aria-label": p,
11
- "aria-labelledby": x,
12
- className: i = "",
13
- id: g
12
+ tone: i = "default",
13
+ presentational: x = !1,
14
+ "aria-label": f,
15
+ "aria-labelledby": g,
16
+ className: d = "",
17
+ id: y
14
18
  }) => {
15
- const c = o && !a, n = Math.max(3, Math.round(r * 0.36)), d = Math.round(r * 0.57), f = a || o ? "var(--malachite-accent-background, rgb(0, 175, 102))" : "var(--malachite-text-placeholder, rgb(187, 187, 187))", h = {
19
+ const c = o && !t, s = Math.max(3, Math.round(r * 0.36)), h = Math.round(r * 0.57), n = k[i], m = t || o || i !== "default" ? n : "var(--malachite-text-placeholder, rgb(187, 187, 187))", u = {
16
20
  position: "relative",
17
21
  flexShrink: 0,
18
22
  display: "inline-flex",
@@ -21,16 +25,16 @@ const $ = ({
21
25
  width: `${r}px`,
22
26
  height: `${r}px`,
23
27
  padding: 0,
24
- borderRadius: `${n}px`,
28
+ borderRadius: `${s}px`,
25
29
  borderWidth: "1px",
26
30
  borderStyle: "solid",
27
- borderColor: f,
28
- backgroundColor: c ? "var(--malachite-accent-background, rgb(0, 175, 102))" : "transparent",
31
+ borderColor: m,
32
+ backgroundColor: c ? n : "transparent",
29
33
  color: "#fff",
30
- opacity: l ? 0.5 : 1,
34
+ opacity: e ? 0.5 : 1,
31
35
  transition: "background-color 150ms ease, border-color 150ms ease"
32
- }, s = /* @__PURE__ */ b(y, { children: [
33
- c && /* @__PURE__ */ b(
36
+ }, b = /* @__PURE__ */ p(M, { children: [
37
+ c && /* @__PURE__ */ p(
34
38
  "svg",
35
39
  {
36
40
  width: Math.round(r * 0.78),
@@ -38,42 +42,42 @@ const $ = ({
38
42
  viewBox: "0 0 24 24",
39
43
  "aria-hidden": "true",
40
44
  children: [
41
- /* @__PURE__ */ t("title", { children: "checked" }),
42
- /* @__PURE__ */ t("path", { d: "M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z" })
45
+ /* @__PURE__ */ a("title", { children: "checked" }),
46
+ /* @__PURE__ */ a("path", { d: "M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z" })
43
47
  ]
44
48
  }
45
49
  ),
46
- a && /* @__PURE__ */ t(
50
+ t && /* @__PURE__ */ a(
47
51
  "span",
48
52
  {
49
53
  style: {
50
- width: `${d}px`,
51
- height: `${d}px`,
52
- borderRadius: `${Math.max(2, Math.round(n * 0.6))}px`,
53
- backgroundColor: "var(--malachite-accent-background, rgb(0, 175, 102))"
54
+ width: `${h}px`,
55
+ height: `${h}px`,
56
+ borderRadius: `${Math.max(2, Math.round(s * 0.6))}px`,
57
+ backgroundColor: n
54
58
  }
55
59
  }
56
60
  )
57
61
  ] });
58
- return u ? /* @__PURE__ */ t("span", { "aria-hidden": "true", className: i, style: h, children: s }) : /* @__PURE__ */ t(
62
+ return x ? /* @__PURE__ */ a("span", { "aria-hidden": "true", className: d, style: u, children: b }) : /* @__PURE__ */ a(
59
63
  "button",
60
64
  {
61
65
  type: "button",
62
66
  role: "checkbox",
63
- id: g,
64
- "aria-checked": a ? "mixed" : o,
65
- "aria-label": p,
66
- "aria-labelledby": x,
67
- disabled: l,
68
- onClick: () => e == null ? void 0 : e(a ? !0 : !o),
69
- className: `${m} ${i}`,
70
- style: { ...h, cursor: l ? "not-allowed" : "pointer" },
71
- children: s
67
+ id: y,
68
+ "aria-checked": t ? "mixed" : o,
69
+ "aria-label": f,
70
+ "aria-labelledby": g,
71
+ disabled: e,
72
+ onClick: () => l == null ? void 0 : l(t ? !0 : !o),
73
+ className: `${$} ${d}`,
74
+ style: { ...u, cursor: e ? "not-allowed" : "pointer" },
75
+ children: b
72
76
  }
73
77
  );
74
78
  };
75
79
  export {
76
- $ as Checkbox,
77
- $ as default
80
+ C as Checkbox,
81
+ C as default
78
82
  };
79
83
  //# sourceMappingURL=Checkbox.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Checkbox.js","sources":["../../src/components/Checkbox.tsx"],"sourcesContent":["import React from 'react';\nimport { FOCUS_RING } from './focusRing';\n\ninterface CheckboxProps {\n checked: boolean;\n /** Tri-state \"partial\" look — overrides the checked tick with a square. */\n indeterminate?: boolean;\n /** Optional when `presentational` — a presentational checkbox is a visual indicator only. */\n onChange?: (checked: boolean) => void;\n disabled?: boolean;\n size?: number;\n /**\n * Render a visual-only indicator (a non-interactive, non-focusable `<span>`,\n * `aria-hidden`) instead of an interactive checkbox. Use this inside a clickable\n * row/card whose wrapper is the real control, so there's a single tab stop.\n */\n presentational?: boolean;\n 'aria-label'?: string;\n 'aria-labelledby'?: string;\n className?: string;\n id?: string;\n}\n\nconst Checkbox: React.FC<CheckboxProps> = ({\n checked,\n indeterminate = false,\n onChange,\n disabled = false,\n size = 14,\n presentational = false,\n 'aria-label': ariaLabel,\n 'aria-labelledby': ariaLabelledBy,\n className = '',\n id,\n}) => {\n const isFilled = checked && !indeterminate;\n const radius = Math.max(3, Math.round(size * 0.36));\n const innerSize = Math.round(size * 0.57);\n\n // Indeterminate shares the checked border rather than a fainter one, so \"some selected\"\n // never reads weaker than \"nothing selected\"; the transparent fill separates the states.\n const borderColor =\n indeterminate || checked\n ? 'var(--malachite-accent-background, rgb(0, 175, 102))'\n : 'var(--malachite-text-placeholder, rgb(187, 187, 187))';\n\n const boxStyle: React.CSSProperties = {\n position: 'relative',\n flexShrink: 0,\n display: 'inline-flex',\n alignItems: 'center',\n justifyContent: 'center',\n width: `${size}px`,\n height: `${size}px`,\n padding: 0,\n borderRadius: `${radius}px`,\n borderWidth: '1px',\n borderStyle: 'solid',\n borderColor,\n backgroundColor: isFilled\n ? 'var(--malachite-accent-background, rgb(0, 175, 102))'\n : 'transparent',\n color: '#fff',\n opacity: disabled ? 0.5 : 1,\n transition: 'background-color 150ms ease, border-color 150ms ease',\n };\n\n const glyph = (\n <>\n {isFilled && (\n <svg\n width={Math.round(size * 0.78)}\n height={Math.round(size * 0.78)}\n viewBox=\"0 0 24 24\"\n aria-hidden=\"true\"\n >\n <title>checked</title>\n {/* Filled glyph — the library forces `svg path { fill: currentColor }` */}\n <path d=\"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z\" />\n </svg>\n )}\n {indeterminate && (\n <span\n style={{\n width: `${innerSize}px`,\n height: `${innerSize}px`,\n borderRadius: `${Math.max(2, Math.round(radius * 0.6))}px`,\n backgroundColor: 'var(--malachite-accent-background, rgb(0, 175, 102))',\n }}\n />\n )}\n </>\n );\n\n if (presentational) {\n return (\n <span aria-hidden=\"true\" className={className} style={boxStyle}>\n {glyph}\n </span>\n );\n }\n\n return (\n <button\n type=\"button\"\n role=\"checkbox\"\n id={id}\n aria-checked={indeterminate ? 'mixed' : checked}\n aria-label={ariaLabel}\n aria-labelledby={ariaLabelledBy}\n disabled={disabled}\n onClick={() => onChange?.(indeterminate ? true : !checked)}\n className={`${FOCUS_RING} ${className}`}\n style={{ ...boxStyle, cursor: disabled ? 'not-allowed' : 'pointer' }}\n >\n {glyph}\n </button>\n );\n};\n\nexport default Checkbox;\nexport { Checkbox };\nexport type { CheckboxProps };\n"],"names":["Checkbox","checked","indeterminate","onChange","disabled","size","presentational","ariaLabel","ariaLabelledBy","className","id","isFilled","radius","innerSize","borderColor","boxStyle","glyph","jsxs","Fragment","jsx","FOCUS_RING"],"mappings":";;AAuBA,MAAMA,IAAoC,CAAC;AAAA,EACvC,SAAAC;AAAA,EACA,eAAAC,IAAgB;AAAA,EAChB,UAAAC;AAAA,EACA,UAAAC,IAAW;AAAA,EACX,MAAAC,IAAO;AAAA,EACP,gBAAAC,IAAiB;AAAA,EACjB,cAAcC;AAAA,EACd,mBAAmBC;AAAA,EACnB,WAAAC,IAAY;AAAA,EACZ,IAAAC;AACJ,MAAM;AACF,QAAMC,IAAWV,KAAW,CAACC,GACvBU,IAAS,KAAK,IAAI,GAAG,KAAK,MAAMP,IAAO,IAAI,CAAC,GAC5CQ,IAAY,KAAK,MAAMR,IAAO,IAAI,GAIlCS,IACFZ,KAAiBD,IACX,yDACA,yDAEJc,IAAgC;AAAA,IAClC,UAAU;AAAA,IACV,YAAY;AAAA,IACZ,SAAS;AAAA,IACT,YAAY;AAAA,IACZ,gBAAgB;AAAA,IAChB,OAAO,GAAGV,CAAI;AAAA,IACd,QAAQ,GAAGA,CAAI;AAAA,IACf,SAAS;AAAA,IACT,cAAc,GAAGO,CAAM;AAAA,IACvB,aAAa;AAAA,IACb,aAAa;AAAA,IACb,aAAAE;AAAA,IACA,iBAAiBH,IACX,yDACA;AAAA,IACN,OAAO;AAAA,IACP,SAASP,IAAW,MAAM;AAAA,IAC1B,YAAY;AAAA,EAAA,GAGVY,IACF,gBAAAC,EAAAC,GAAA,EACK,UAAA;AAAA,IAAAP,KACG,gBAAAM;AAAA,MAAC;AAAA,MAAA;AAAA,QACG,OAAO,KAAK,MAAMZ,IAAO,IAAI;AAAA,QAC7B,QAAQ,KAAK,MAAMA,IAAO,IAAI;AAAA,QAC9B,SAAQ;AAAA,QACR,eAAY;AAAA,QAEZ,UAAA;AAAA,UAAA,gBAAAc,EAAC,WAAM,UAAA,UAAA,CAAO;AAAA,UAEd,gBAAAA,EAAC,QAAA,EAAK,GAAE,oDAAA,CAAoD;AAAA,QAAA;AAAA,MAAA;AAAA,IAAA;AAAA,IAGnEjB,KACG,gBAAAiB;AAAA,MAAC;AAAA,MAAA;AAAA,QACG,OAAO;AAAA,UACH,OAAO,GAAGN,CAAS;AAAA,UACnB,QAAQ,GAAGA,CAAS;AAAA,UACpB,cAAc,GAAG,KAAK,IAAI,GAAG,KAAK,MAAMD,IAAS,GAAG,CAAC,CAAC;AAAA,UACtD,iBAAiB;AAAA,QAAA;AAAA,MACrB;AAAA,IAAA;AAAA,EACJ,GAER;AAGJ,SAAIN,sBAEK,QAAA,EAAK,eAAY,QAAO,WAAAG,GAAsB,OAAOM,GACjD,UAAAC,GACL,IAKJ,gBAAAG;AAAA,IAAC;AAAA,IAAA;AAAA,MACG,MAAK;AAAA,MACL,MAAK;AAAA,MACL,IAAAT;AAAA,MACA,gBAAcR,IAAgB,UAAUD;AAAA,MACxC,cAAYM;AAAA,MACZ,mBAAiBC;AAAA,MACjB,UAAAJ;AAAA,MACA,SAAS,MAAMD,KAAA,gBAAAA,EAAWD,IAAgB,KAAO,CAACD;AAAA,MAClD,WAAW,GAAGmB,CAAU,IAAIX,CAAS;AAAA,MACrC,OAAO,EAAE,GAAGM,GAAU,QAAQX,IAAW,gBAAgB,UAAA;AAAA,MAExD,UAAAY;AAAA,IAAA;AAAA,EAAA;AAGb;"}
1
+ {"version":3,"file":"Checkbox.js","sources":["../../src/components/Checkbox.tsx"],"sourcesContent":["import React from 'react';\nimport { FOCUS_RING } from './focusRing';\n\ntype CheckboxTone = 'default' | 'warning';\n\ninterface CheckboxProps {\n checked: boolean;\n /** Tri-state \"partial\" look — overrides the checked tick with a square. */\n indeterminate?: boolean;\n /** Optional when `presentational` — a presentational checkbox is a visual indicator only. */\n onChange?: (checked: boolean) => void;\n disabled?: boolean;\n size?: number;\n /**\n * `warning` draws attention to this box in every state, unchecked included, for a choice\n * that needs a second look such as an unsaved change.\n */\n tone?: CheckboxTone;\n /**\n * Render a visual-only indicator (a non-interactive, non-focusable `<span>`,\n * `aria-hidden`) instead of an interactive checkbox. Use this inside a clickable\n * row/card whose wrapper is the real control, so there's a single tab stop.\n */\n presentational?: boolean;\n 'aria-label'?: string;\n 'aria-labelledby'?: string;\n className?: string;\n id?: string;\n}\n\n// `warning` takes the foreground token: white on the warning background is under 3:1.\nconst TONE_COLOR: Record<CheckboxTone, string> = {\n default: 'var(--malachite-accent-background, rgb(0, 175, 102))',\n warning: 'var(--malachite-warning-foreground, rgb(150, 88, 10))',\n};\n\nconst Checkbox: React.FC<CheckboxProps> = ({\n checked,\n indeterminate = false,\n onChange,\n disabled = false,\n size = 14,\n tone = 'default',\n presentational = false,\n 'aria-label': ariaLabel,\n 'aria-labelledby': ariaLabelledBy,\n className = '',\n id,\n}) => {\n const isFilled = checked && !indeterminate;\n const radius = Math.max(3, Math.round(size * 0.36));\n const innerSize = Math.round(size * 0.57);\n\n // Indeterminate shares the checked border rather than a fainter one, so \"some selected\"\n // never reads weaker than \"nothing selected\"; the transparent fill separates the states.\n const toneColor = TONE_COLOR[tone];\n const borderColor =\n indeterminate || checked || tone !== 'default'\n ? toneColor\n : 'var(--malachite-text-placeholder, rgb(187, 187, 187))';\n\n const boxStyle: React.CSSProperties = {\n position: 'relative',\n flexShrink: 0,\n display: 'inline-flex',\n alignItems: 'center',\n justifyContent: 'center',\n width: `${size}px`,\n height: `${size}px`,\n padding: 0,\n borderRadius: `${radius}px`,\n borderWidth: '1px',\n borderStyle: 'solid',\n borderColor,\n backgroundColor: isFilled ? toneColor : 'transparent',\n color: '#fff',\n opacity: disabled ? 0.5 : 1,\n transition: 'background-color 150ms ease, border-color 150ms ease',\n };\n\n const glyph = (\n <>\n {isFilled && (\n <svg\n width={Math.round(size * 0.78)}\n height={Math.round(size * 0.78)}\n viewBox=\"0 0 24 24\"\n aria-hidden=\"true\"\n >\n <title>checked</title>\n {/* Filled glyph — the library forces `svg path { fill: currentColor }` */}\n <path d=\"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z\" />\n </svg>\n )}\n {indeterminate && (\n <span\n style={{\n width: `${innerSize}px`,\n height: `${innerSize}px`,\n borderRadius: `${Math.max(2, Math.round(radius * 0.6))}px`,\n backgroundColor: toneColor,\n }}\n />\n )}\n </>\n );\n\n if (presentational) {\n return (\n <span aria-hidden=\"true\" className={className} style={boxStyle}>\n {glyph}\n </span>\n );\n }\n\n return (\n <button\n type=\"button\"\n role=\"checkbox\"\n id={id}\n aria-checked={indeterminate ? 'mixed' : checked}\n aria-label={ariaLabel}\n aria-labelledby={ariaLabelledBy}\n disabled={disabled}\n onClick={() => onChange?.(indeterminate ? true : !checked)}\n className={`${FOCUS_RING} ${className}`}\n style={{ ...boxStyle, cursor: disabled ? 'not-allowed' : 'pointer' }}\n >\n {glyph}\n </button>\n );\n};\n\nexport default Checkbox;\nexport { Checkbox };\nexport type { CheckboxProps, CheckboxTone };\n"],"names":["TONE_COLOR","Checkbox","checked","indeterminate","onChange","disabled","size","tone","presentational","ariaLabel","ariaLabelledBy","className","id","isFilled","radius","innerSize","toneColor","borderColor","boxStyle","glyph","jsxs","Fragment","jsx","FOCUS_RING"],"mappings":";;AA+BA,MAAMA,IAA2C;AAAA,EAC7C,SAAS;AAAA,EACT,SAAS;AACb,GAEMC,IAAoC,CAAC;AAAA,EACvC,SAAAC;AAAA,EACA,eAAAC,IAAgB;AAAA,EAChB,UAAAC;AAAA,EACA,UAAAC,IAAW;AAAA,EACX,MAAAC,IAAO;AAAA,EACP,MAAAC,IAAO;AAAA,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