@xyo-network/react-error 2.62.3 → 2.63.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (135) hide show
  1. package/dist/cjs/components/ErrorBoundary/ThrownErrorBoundary.js +43 -0
  2. package/dist/cjs/components/ErrorBoundary/ThrownErrorBoundary.js.map +1 -0
  3. package/dist/cjs/components/ErrorBoundary/index.js +5 -0
  4. package/dist/cjs/components/ErrorBoundary/index.js.map +1 -0
  5. package/dist/cjs/components/ErrorRender/ErrorAlert.js +14 -0
  6. package/dist/cjs/components/ErrorRender/ErrorAlert.js.map +1 -0
  7. package/dist/cjs/components/ErrorRender/Props.js +3 -0
  8. package/dist/cjs/components/ErrorRender/Props.js.map +1 -0
  9. package/dist/cjs/components/ErrorRender/Render.js +30 -0
  10. package/dist/cjs/components/ErrorRender/Render.js.map +1 -0
  11. package/dist/cjs/components/ErrorRender/index.js +7 -0
  12. package/dist/cjs/components/ErrorRender/index.js.map +1 -0
  13. package/dist/cjs/components/index.js +6 -0
  14. package/dist/cjs/components/index.js.map +1 -0
  15. package/dist/cjs/contexts/ErrorReporter/Context.js +6 -0
  16. package/dist/cjs/contexts/ErrorReporter/Context.js.map +1 -0
  17. package/dist/cjs/contexts/ErrorReporter/Provider.js +17 -0
  18. package/dist/cjs/contexts/ErrorReporter/Provider.js.map +1 -0
  19. package/dist/cjs/contexts/ErrorReporter/State.js +3 -0
  20. package/dist/cjs/contexts/ErrorReporter/State.js.map +1 -0
  21. package/dist/cjs/contexts/ErrorReporter/index.js +7 -0
  22. package/dist/cjs/contexts/ErrorReporter/index.js.map +1 -0
  23. package/dist/cjs/contexts/ErrorReporter/useRollbar.js +14 -0
  24. package/dist/cjs/contexts/ErrorReporter/useRollbar.js.map +1 -0
  25. package/dist/cjs/contexts/index.js +5 -0
  26. package/dist/cjs/contexts/index.js.map +1 -0
  27. package/dist/cjs/index.js +6 -0
  28. package/dist/cjs/index.js.map +1 -0
  29. package/dist/docs.json +44 -44
  30. package/dist/esm/components/ErrorBoundary/ThrownErrorBoundary.js +36 -0
  31. package/dist/esm/components/ErrorBoundary/ThrownErrorBoundary.js.map +1 -0
  32. package/dist/{components/ErrorBoundary/index.d.mts → esm/components/ErrorBoundary/index.js} +1 -1
  33. package/dist/esm/components/ErrorBoundary/index.js.map +1 -0
  34. package/dist/esm/components/ErrorRender/ErrorAlert.js +8 -0
  35. package/dist/esm/components/ErrorRender/ErrorAlert.js.map +1 -0
  36. package/dist/esm/components/ErrorRender/Props.js +2 -0
  37. package/dist/esm/components/ErrorRender/Props.js.map +1 -0
  38. package/dist/esm/components/ErrorRender/Render.js +23 -0
  39. package/dist/esm/components/ErrorRender/Render.js.map +1 -0
  40. package/dist/{components/ErrorRender/index.d.mts → esm/components/ErrorRender/index.js} +1 -1
  41. package/dist/esm/components/ErrorRender/index.js.map +1 -0
  42. package/dist/{components/index.d.mts → esm/components/index.js} +1 -1
  43. package/dist/esm/components/index.js.map +1 -0
  44. package/dist/esm/contexts/ErrorReporter/Context.js +3 -0
  45. package/dist/esm/contexts/ErrorReporter/Context.js.map +1 -0
  46. package/dist/esm/contexts/ErrorReporter/Provider.js +14 -0
  47. package/dist/esm/contexts/ErrorReporter/Provider.js.map +1 -0
  48. package/dist/esm/contexts/ErrorReporter/State.js +2 -0
  49. package/dist/esm/contexts/ErrorReporter/State.js.map +1 -0
  50. package/dist/{contexts/ErrorReporter/index.d.mts → esm/contexts/ErrorReporter/index.js} +1 -1
  51. package/dist/esm/contexts/ErrorReporter/index.js.map +1 -0
  52. package/dist/esm/contexts/ErrorReporter/useRollbar.js +11 -0
  53. package/dist/esm/contexts/ErrorReporter/useRollbar.js.map +1 -0
  54. package/dist/esm/contexts/index.js +2 -0
  55. package/dist/esm/contexts/index.js.map +1 -0
  56. package/dist/{index.d.mts → esm/index.js} +1 -1
  57. package/dist/esm/index.js.map +1 -0
  58. package/dist/types/components/ErrorBoundary/ThrownErrorBoundary.d.ts.map +1 -0
  59. package/dist/types/components/ErrorBoundary/index.d.ts.map +1 -0
  60. package/dist/types/components/ErrorRender/ErrorAlert.d.ts.map +1 -0
  61. package/dist/types/components/ErrorRender/Props.d.ts.map +1 -0
  62. package/dist/types/components/ErrorRender/Render.d.ts.map +1 -0
  63. package/dist/types/components/ErrorRender/index.d.ts.map +1 -0
  64. package/dist/types/components/index.d.ts.map +1 -0
  65. package/dist/types/contexts/ErrorReporter/Context.d.ts.map +1 -0
  66. package/dist/types/contexts/ErrorReporter/Provider.d.ts.map +1 -0
  67. package/dist/types/contexts/ErrorReporter/State.d.ts.map +1 -0
  68. package/dist/types/contexts/ErrorReporter/index.d.ts.map +1 -0
  69. package/dist/types/contexts/ErrorReporter/useRollbar.d.ts.map +1 -0
  70. package/dist/types/contexts/index.d.ts.map +1 -0
  71. package/dist/types/index.d.ts.map +1 -0
  72. package/package.json +19 -27
  73. package/dist/components/ErrorBoundary/ThrownErrorBoundary.d.mts +0 -21
  74. package/dist/components/ErrorBoundary/ThrownErrorBoundary.d.mts.map +0 -1
  75. package/dist/components/ErrorBoundary/ThrownErrorBoundary.d.ts.map +0 -1
  76. package/dist/components/ErrorBoundary/ThrownErrorBoundary.stories.d.mts +0 -7
  77. package/dist/components/ErrorBoundary/ThrownErrorBoundary.stories.d.mts.map +0 -1
  78. package/dist/components/ErrorBoundary/ThrownErrorBoundary.stories.d.ts +0 -7
  79. package/dist/components/ErrorBoundary/ThrownErrorBoundary.stories.d.ts.map +0 -1
  80. package/dist/components/ErrorBoundary/index.d.mts.map +0 -1
  81. package/dist/components/ErrorBoundary/index.d.ts.map +0 -1
  82. package/dist/components/ErrorRender/ErrorAlert.d.mts +0 -10
  83. package/dist/components/ErrorRender/ErrorAlert.d.mts.map +0 -1
  84. package/dist/components/ErrorRender/ErrorAlert.d.ts.map +0 -1
  85. package/dist/components/ErrorRender/Props.d.mts +0 -12
  86. package/dist/components/ErrorRender/Props.d.mts.map +0 -1
  87. package/dist/components/ErrorRender/Props.d.ts.map +0 -1
  88. package/dist/components/ErrorRender/Render.d.mts +0 -4
  89. package/dist/components/ErrorRender/Render.d.mts.map +0 -1
  90. package/dist/components/ErrorRender/Render.d.ts.map +0 -1
  91. package/dist/components/ErrorRender/index.d.mts.map +0 -1
  92. package/dist/components/ErrorRender/index.d.ts.map +0 -1
  93. package/dist/components/index.d.mts.map +0 -1
  94. package/dist/components/index.d.ts.map +0 -1
  95. package/dist/contexts/ErrorReporter/Context.d.mts +0 -4
  96. package/dist/contexts/ErrorReporter/Context.d.mts.map +0 -1
  97. package/dist/contexts/ErrorReporter/Context.d.ts.map +0 -1
  98. package/dist/contexts/ErrorReporter/Provider.d.mts +0 -9
  99. package/dist/contexts/ErrorReporter/Provider.d.mts.map +0 -1
  100. package/dist/contexts/ErrorReporter/Provider.d.ts.map +0 -1
  101. package/dist/contexts/ErrorReporter/Provider.stories.d.mts +0 -10
  102. package/dist/contexts/ErrorReporter/Provider.stories.d.mts.map +0 -1
  103. package/dist/contexts/ErrorReporter/Provider.stories.d.ts +0 -10
  104. package/dist/contexts/ErrorReporter/Provider.stories.d.ts.map +0 -1
  105. package/dist/contexts/ErrorReporter/State.d.mts +0 -5
  106. package/dist/contexts/ErrorReporter/State.d.mts.map +0 -1
  107. package/dist/contexts/ErrorReporter/State.d.ts.map +0 -1
  108. package/dist/contexts/ErrorReporter/index.d.mts.map +0 -1
  109. package/dist/contexts/ErrorReporter/index.d.ts.map +0 -1
  110. package/dist/contexts/ErrorReporter/useRollbar.d.mts +0 -3
  111. package/dist/contexts/ErrorReporter/useRollbar.d.mts.map +0 -1
  112. package/dist/contexts/ErrorReporter/useRollbar.d.ts.map +0 -1
  113. package/dist/contexts/index.d.mts +0 -2
  114. package/dist/contexts/index.d.mts.map +0 -1
  115. package/dist/contexts/index.d.ts.map +0 -1
  116. package/dist/index.d.mts.map +0 -1
  117. package/dist/index.d.ts.map +0 -1
  118. package/dist/index.js +0 -159
  119. package/dist/index.js.map +0 -1
  120. package/dist/index.mjs +0 -118
  121. package/dist/index.mjs.map +0 -1
  122. /package/dist/{components → types/components}/ErrorBoundary/ThrownErrorBoundary.d.ts +0 -0
  123. /package/dist/{components → types/components}/ErrorBoundary/index.d.ts +0 -0
  124. /package/dist/{components → types/components}/ErrorRender/ErrorAlert.d.ts +0 -0
  125. /package/dist/{components → types/components}/ErrorRender/Props.d.ts +0 -0
  126. /package/dist/{components → types/components}/ErrorRender/Render.d.ts +0 -0
  127. /package/dist/{components → types/components}/ErrorRender/index.d.ts +0 -0
  128. /package/dist/{components → types/components}/index.d.ts +0 -0
  129. /package/dist/{contexts → types/contexts}/ErrorReporter/Context.d.ts +0 -0
  130. /package/dist/{contexts → types/contexts}/ErrorReporter/Provider.d.ts +0 -0
  131. /package/dist/{contexts → types/contexts}/ErrorReporter/State.d.ts +0 -0
  132. /package/dist/{contexts → types/contexts}/ErrorReporter/index.d.ts +0 -0
  133. /package/dist/{contexts → types/contexts}/ErrorReporter/useRollbar.d.ts +0 -0
  134. /package/dist/{contexts → types/contexts}/index.d.ts +0 -0
  135. /package/dist/{index.d.ts → types/index.d.ts} +0 -0
package/dist/index.mjs DELETED
@@ -1,118 +0,0 @@
1
- // src/components/ErrorBoundary/ThrownErrorBoundary.tsx
2
- import { ModuleErrorSchema } from "@xyo-network/payload-model";
3
- import { Component } from "react";
4
-
5
- // src/components/ErrorRender/ErrorAlert.tsx
6
- import ExitIcon from "@mui/icons-material/ExitToApp";
7
- import { Alert, AlertTitle, Typography } from "@mui/material";
8
- import { ButtonEx } from "@xylabs/react-button";
9
- import { jsx, jsxs } from "react/jsx-runtime";
10
- var ErrorAlert = ({ onCancel, error, errorContext, ...props }) => {
11
- return /* @__PURE__ */ jsxs(Alert, { severity: "error", ...props, children: [
12
- /* @__PURE__ */ jsx(AlertTitle, { children: "Whoops! Something went wrong" }),
13
- errorContext ? /* @__PURE__ */ jsx(Typography, { variant: "caption", my: 0.5, lineHeight: "1", display: "block", children: errorContext }) : null,
14
- /* @__PURE__ */ jsx(Typography, { variant: "caption", mr: 0.5, fontWeight: "bold", children: "Error:" }),
15
- /* @__PURE__ */ jsx(Typography, { variant: "caption", children: error?.message }),
16
- onCancel ? /* @__PURE__ */ jsx(ButtonEx, { variant: "outlined", size: "small", onClick: onCancel, position: "absolute", style: { right: 8, top: 8 }, children: /* @__PURE__ */ jsx(ExitIcon, { fontSize: "small" }) }) : null
17
- ] });
18
- };
19
-
20
- // src/components/ErrorRender/Render.tsx
21
- import { FlexCol } from "@xylabs/react-flexbox";
22
- import { useEffect } from "react";
23
- import { useLocation } from "react-router-dom";
24
- import { Fragment, jsx as jsx2 } from "react/jsx-runtime";
25
- var ErrorRender = ({
26
- onCancel,
27
- error,
28
- noErrorDisplay = false,
29
- customError = null,
30
- children,
31
- errorContext,
32
- ...props
33
- }) => {
34
- const location = useLocation();
35
- useEffect(() => {
36
- location.state = {
37
- from: {
38
- pathname: window.location.pathname
39
- }
40
- };
41
- }, [location]);
42
- if (error) {
43
- return /* @__PURE__ */ jsx2(FlexCol, { alignItems: "stretch", ...props, children: noErrorDisplay ? customError : /* @__PURE__ */ jsx2(FlexCol, { alignItems: "center", ...props, children: /* @__PURE__ */ jsx2(ErrorAlert, { error, errorContext, onCancel }) }) });
44
- } else {
45
- return /* @__PURE__ */ jsx2(Fragment, { children }) ?? null;
46
- }
47
- };
48
-
49
- // src/components/ErrorBoundary/ThrownErrorBoundary.tsx
50
- import { jsx as jsx3 } from "react/jsx-runtime";
51
- var ThrownErrorBoundary = class _ThrownErrorBoundary extends Component {
52
- state = {
53
- xyoError: void 0
54
- };
55
- static getDerivedStateFromError(error) {
56
- return { hasError: true, xyoError: _ThrownErrorBoundary.normalizeError(error) };
57
- }
58
- static normalizeError(error) {
59
- return error.schema === ModuleErrorSchema ? error : { message: error.message, schema: ModuleErrorSchema, sources: [] };
60
- }
61
- componentDidCatch(error, errorInfo) {
62
- const { rethrow, rollbar } = this.props;
63
- const { xyoError } = this.state;
64
- rollbar?.error(error);
65
- console.error("Error:", xyoError, errorInfo);
66
- if (rethrow) {
67
- throw error;
68
- }
69
- }
70
- render() {
71
- const { xyoError } = this.state;
72
- const { children, boundaryName, errorComponent } = this.props;
73
- if (xyoError) {
74
- if (errorComponent) {
75
- return errorComponent(xyoError);
76
- }
77
- return /* @__PURE__ */ jsx3(ErrorRender, { error: xyoError, errorContext: `${boundaryName} Boundary` });
78
- }
79
- return children;
80
- }
81
- };
82
-
83
- // src/contexts/ErrorReporter/Provider.tsx
84
- import { useEffect as useEffect2, useState } from "react";
85
-
86
- // src/contexts/ErrorReporter/Context.ts
87
- import { createContext } from "react";
88
- var ErrorReporterContext = createContext({});
89
-
90
- // src/contexts/ErrorReporter/Provider.tsx
91
- import { jsx as jsx4 } from "react/jsx-runtime";
92
- var ErrorReporterProvider = ({ children, rollbar }) => {
93
- const [rollbarInstance, setRollBarInstance] = useState();
94
- useEffect2(() => {
95
- if (rollbarInstance) {
96
- setRollBarInstance(rollbarInstance);
97
- }
98
- }, [rollbar, rollbarInstance]);
99
- return /* @__PURE__ */ jsx4(ErrorReporterContext.Provider, { value: { rollbar }, children });
100
- };
101
-
102
- // src/contexts/ErrorReporter/useRollbar.tsx
103
- import { useContext } from "react";
104
- var useRollbar = () => {
105
- const context = useContext(ErrorReporterContext);
106
- if (context === void 0) {
107
- console.warn("useRollbar must be used within a ErrorReporterContext");
108
- }
109
- return context ?? {};
110
- };
111
- export {
112
- ErrorAlert,
113
- ErrorRender,
114
- ErrorReporterProvider,
115
- ThrownErrorBoundary,
116
- useRollbar
117
- };
118
- //# sourceMappingURL=index.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/components/ErrorBoundary/ThrownErrorBoundary.tsx","../src/components/ErrorRender/ErrorAlert.tsx","../src/components/ErrorRender/Render.tsx","../src/contexts/ErrorReporter/Provider.tsx","../src/contexts/ErrorReporter/Context.ts","../src/contexts/ErrorReporter/useRollbar.tsx"],"sourcesContent":["import { ModuleError, ModuleErrorSchema } from '@xyo-network/payload-model'\nimport { Component, ErrorInfo, ReactNode } from 'react'\nimport Rollbar from 'rollbar'\n\nimport { ErrorRender } from '../ErrorRender'\n\nexport interface ThrownErrorBoundaryProps {\n boundaryName?: string\n children: ReactNode\n errorComponent?: (e: ModuleError, boundaryName?: string) => ReactNode\n rethrow?: boolean\n rollbar?: Rollbar\n}\n\nexport interface ThrownErrorBoundaryState {\n xyoError?: ModuleError\n}\n\nexport class ThrownErrorBoundary extends Component<ThrownErrorBoundaryProps, ThrownErrorBoundaryState> {\n public override state: ThrownErrorBoundaryState = {\n xyoError: undefined,\n }\n\n static getDerivedStateFromError(error: Error) {\n return { hasError: true, xyoError: ThrownErrorBoundary.normalizeError(error) } as ThrownErrorBoundaryState\n }\n\n public static normalizeError(error: Error | ModuleError): ModuleError {\n return (\n (error as ModuleError).schema === ModuleErrorSchema ? error : { message: error.message, schema: ModuleErrorSchema, sources: [] }\n ) as ModuleError\n }\n\n public override componentDidCatch(error: Error, errorInfo: ErrorInfo) {\n const { rethrow, rollbar } = this.props\n const { xyoError } = this.state\n\n rollbar?.error(error)\n\n console.error('Error:', xyoError, errorInfo)\n if (rethrow) {\n throw error\n }\n }\n\n public override render() {\n const { xyoError } = this.state\n const { children, boundaryName, errorComponent } = this.props\n if (xyoError) {\n if (errorComponent) {\n return errorComponent(xyoError)\n }\n return <ErrorRender error={xyoError} errorContext={`${boundaryName} Boundary`} />\n }\n\n return children\n }\n}\n","import ExitIcon from '@mui/icons-material/ExitToApp'\nimport { Alert, AlertProps, AlertTitle, Typography } from '@mui/material'\nimport { ButtonEx } from '@xylabs/react-button'\nimport { ModuleError } from '@xyo-network/payload-model'\n\nexport interface ErrorAlertProps extends AlertProps {\n error?: ModuleError | Error\n errorContext?: string\n onCancel?: () => void\n}\n\nexport const ErrorAlert: React.FC<ErrorAlertProps> = ({ onCancel, error, errorContext, ...props }) => {\n return (\n <Alert severity=\"error\" {...props}>\n <AlertTitle>Whoops! Something went wrong</AlertTitle>\n {errorContext ? (\n <Typography variant=\"caption\" my={0.5} lineHeight=\"1\" display=\"block\">\n {errorContext}\n </Typography>\n ) : null}\n <Typography variant=\"caption\" mr={0.5} fontWeight=\"bold\">\n Error:\n </Typography>\n <Typography variant=\"caption\">{error?.message}</Typography>\n {onCancel ? (\n <ButtonEx variant=\"outlined\" size=\"small\" onClick={onCancel} position=\"absolute\" style={{ right: 8, top: 8 }}>\n <ExitIcon fontSize=\"small\" />\n </ButtonEx>\n ) : null}\n </Alert>\n )\n}\n","import { FlexCol } from '@xylabs/react-flexbox'\nimport { useEffect } from 'react'\nimport { useLocation } from 'react-router-dom'\n\nimport { ErrorAlert } from './ErrorAlert'\nimport { ErrorRenderProps } from './Props'\n\nexport const ErrorRender: React.FC<ErrorRenderProps> = ({\n onCancel,\n error,\n noErrorDisplay = false,\n customError = null,\n children,\n errorContext,\n ...props\n}) => {\n const location = useLocation()\n useEffect(() => {\n // ensure we end up at the same place we are now after logging in\n location.state = {\n from: {\n pathname: window.location.pathname,\n },\n }\n }, [location])\n\n if (error) {\n return (\n <FlexCol alignItems=\"stretch\" {...props}>\n {noErrorDisplay ? (\n customError\n ) : (\n <FlexCol alignItems=\"center\" {...props}>\n <ErrorAlert error={error} errorContext={errorContext} onCancel={onCancel} />\n </FlexCol>\n )}\n </FlexCol>\n )\n } else {\n return <>{children}</> ?? null\n }\n}\n","import { WithChildren } from '@xylabs/react-shared'\nimport { useEffect, useState } from 'react'\nimport Rollbar from 'rollbar'\n\nimport { ErrorReporterContext } from './Context'\n\nexport interface ErrorReporterProviderProps {\n rollbar: Rollbar\n}\n\nconst ErrorReporterProvider: React.FC<WithChildren<ErrorReporterProviderProps>> = ({ children, rollbar }) => {\n const [rollbarInstance, setRollBarInstance] = useState<Rollbar>()\n\n useEffect(() => {\n if (rollbarInstance) {\n setRollBarInstance(rollbarInstance)\n }\n }, [rollbar, rollbarInstance])\n\n return <ErrorReporterContext.Provider value={{ rollbar }}>{children}</ErrorReporterContext.Provider>\n}\n\nexport { ErrorReporterProvider }\n","import { createContext } from 'react'\n\nimport { ErrorReporterContextState } from './State'\n\nexport const ErrorReporterContext = createContext<ErrorReporterContextState>({})\n","import { useContext } from 'react'\n\nimport { ErrorReporterContext } from './Context'\n\nconst useRollbar = () => {\n const context = useContext(ErrorReporterContext)\n if (context === undefined) {\n console.warn('useRollbar must be used within a ErrorReporterContext')\n }\n\n return context ?? {}\n}\n\nexport { useRollbar }\n"],"mappings":";AAAA,SAAsB,yBAAyB;AAC/C,SAAS,iBAAuC;;;ACDhD,OAAO,cAAc;AACrB,SAAS,OAAmB,YAAY,kBAAkB;AAC1D,SAAS,gBAAgB;AAWrB,SACE,KADF;AAFG,IAAM,aAAwC,CAAC,EAAE,UAAU,OAAO,cAAc,GAAG,MAAM,MAAM;AACpG,SACE,qBAAC,SAAM,UAAS,SAAS,GAAG,OAC1B;AAAA,wBAAC,cAAW,0CAA4B;AAAA,IACvC,eACC,oBAAC,cAAW,SAAQ,WAAU,IAAI,KAAK,YAAW,KAAI,SAAQ,SAC3D,wBACH,IACE;AAAA,IACJ,oBAAC,cAAW,SAAQ,WAAU,IAAI,KAAK,YAAW,QAAO,oBAEzD;AAAA,IACA,oBAAC,cAAW,SAAQ,WAAW,iBAAO,SAAQ;AAAA,IAC7C,WACC,oBAAC,YAAS,SAAQ,YAAW,MAAK,SAAQ,SAAS,UAAU,UAAS,YAAW,OAAO,EAAE,OAAO,GAAG,KAAK,EAAE,GACzG,8BAAC,YAAS,UAAS,SAAQ,GAC7B,IACE;AAAA,KACN;AAEJ;;;AC/BA,SAAS,eAAe;AACxB,SAAS,iBAAiB;AAC1B,SAAS,mBAAmB;AA+BhB,SAMD,UANC,OAAAA,YAAA;AA1BL,IAAM,cAA0C,CAAC;AAAA,EACtD;AAAA,EACA;AAAA,EACA,iBAAiB;AAAA,EACjB,cAAc;AAAA,EACd;AAAA,EACA;AAAA,EACA,GAAG;AACL,MAAM;AACJ,QAAM,WAAW,YAAY;AAC7B,YAAU,MAAM;AAEd,aAAS,QAAQ;AAAA,MACf,MAAM;AAAA,QACJ,UAAU,OAAO,SAAS;AAAA,MAC5B;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