@contember/react-multipass-rendering 1.0.3 → 1.1.0-alpha.10
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/development/ChildrenAnalyzer.js +18 -8
- package/dist/development/ChildrenAnalyzer.js.map +1 -1
- package/dist/development/ChildrenAnalyzerError.js +15 -0
- package/dist/development/ChildrenAnalyzerError.js.map +1 -1
- package/dist/development/helpers/wrapError.js +46 -0
- package/dist/development/helpers/wrapError.js.map +1 -0
- package/dist/production/ChildrenAnalyzer.js +18 -8
- package/dist/production/ChildrenAnalyzer.js.map +1 -1
- package/dist/production/ChildrenAnalyzerError.js +15 -0
- package/dist/production/ChildrenAnalyzerError.js.map +1 -1
- package/dist/production/helpers/wrapError.js +46 -0
- package/dist/production/helpers/wrapError.js.map +1 -0
- package/dist/types/ChildrenAnalyzer.d.ts.map +1 -1
- package/dist/types/ChildrenAnalyzerError.d.ts +6 -0
- package/dist/types/ChildrenAnalyzerError.d.ts.map +1 -1
- package/dist/types/helpers/wrapError.d.ts +3 -0
- package/dist/types/helpers/wrapError.d.ts.map +1 -0
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -1
- package/src/ChildrenAnalyzer.ts +19 -9
- package/src/ChildrenAnalyzerError.ts +12 -1
- package/src/helpers/wrapError.ts +46 -0
|
@@ -6,6 +6,7 @@ var __publicField = (obj, key, value) => {
|
|
|
6
6
|
};
|
|
7
7
|
import { assertNever } from "./assertNever.js";
|
|
8
8
|
import { ChildrenAnalyzerError } from "./ChildrenAnalyzerError.js";
|
|
9
|
+
import { wrapError } from "./helpers/wrapError.js";
|
|
9
10
|
import { getErrorMessage } from "./helpers/getErrorMessage.js";
|
|
10
11
|
const _ChildrenAnalyzer = class {
|
|
11
12
|
constructor(leaves, decider = [], options = {}) {
|
|
@@ -22,11 +23,11 @@ const _ChildrenAnalyzer = class {
|
|
|
22
23
|
this.options = { ..._ChildrenAnalyzer.defaultOptions, ...options };
|
|
23
24
|
}
|
|
24
25
|
processChildren(children, initialStaticContext) {
|
|
25
|
-
const processed = this.processNode(children, initialStaticContext);
|
|
26
|
+
const processed = this.processNode(children, initialStaticContext, []);
|
|
26
27
|
const rawResult = Array.isArray(processed) ? processed : [processed];
|
|
27
28
|
return rawResult.filter((item) => item !== void 0);
|
|
28
29
|
}
|
|
29
|
-
processNode(node, staticContext) {
|
|
30
|
+
processNode(node, staticContext, componentPath) {
|
|
30
31
|
if (!node || typeof node === "string" || typeof node === "number" || typeof node === "boolean") {
|
|
31
32
|
for (const leaf of this.leaves) {
|
|
32
33
|
const specification = leaf.specification;
|
|
@@ -54,7 +55,7 @@ const _ChildrenAnalyzer = class {
|
|
|
54
55
|
if (Array.isArray(node)) {
|
|
55
56
|
let mapped = [];
|
|
56
57
|
for (const subNode of node) {
|
|
57
|
-
const processed = this.processNode(subNode, staticContext);
|
|
58
|
+
const processed = this.processNode(subNode, staticContext, componentPath);
|
|
58
59
|
if (processed !== void 0) {
|
|
59
60
|
if (Array.isArray(processed)) {
|
|
60
61
|
mapped = mapped.concat(processed);
|
|
@@ -67,21 +68,30 @@ const _ChildrenAnalyzer = class {
|
|
|
67
68
|
}
|
|
68
69
|
let children = void 0;
|
|
69
70
|
if (!("type" in node)) {
|
|
70
|
-
return this.processNode(children, staticContext);
|
|
71
|
+
return this.processNode(children, staticContext, componentPath);
|
|
71
72
|
}
|
|
72
73
|
children = node.props.children;
|
|
73
74
|
if (typeof node.type === "symbol") {
|
|
74
|
-
return this.processNode(children, staticContext);
|
|
75
|
+
return this.processNode(children, staticContext, componentPath);
|
|
75
76
|
}
|
|
76
77
|
const treeNode = node.type;
|
|
78
|
+
componentPath = [...componentPath, node];
|
|
77
79
|
if (typeof treeNode !== "string") {
|
|
78
80
|
if (this.options.staticContextFactoryName in treeNode) {
|
|
79
81
|
const staticContextFactory = treeNode[this.options.staticContextFactoryName];
|
|
80
|
-
|
|
82
|
+
try {
|
|
83
|
+
staticContext = staticContextFactory(node.props, staticContext);
|
|
84
|
+
} catch (e) {
|
|
85
|
+
wrapError(e, treeNode.displayName ?? "???", this.options.staticContextFactoryName, componentPath);
|
|
86
|
+
}
|
|
81
87
|
}
|
|
82
88
|
if (this.options.staticRenderFactoryName in treeNode) {
|
|
83
89
|
const factory = treeNode[this.options.staticRenderFactoryName];
|
|
84
|
-
|
|
90
|
+
try {
|
|
91
|
+
children = factory(node.props, staticContext);
|
|
92
|
+
} catch (e) {
|
|
93
|
+
wrapError(e, treeNode.displayName ?? "???", this.options.staticRenderFactoryName, componentPath);
|
|
94
|
+
}
|
|
85
95
|
}
|
|
86
96
|
}
|
|
87
97
|
for (const leaf of this.leaves) {
|
|
@@ -106,7 +116,7 @@ const _ChildrenAnalyzer = class {
|
|
|
106
116
|
return assertNever(specification);
|
|
107
117
|
}
|
|
108
118
|
}
|
|
109
|
-
const processedChildren = this.processNode(children, staticContext);
|
|
119
|
+
const processedChildren = this.processNode(children, staticContext, componentPath);
|
|
110
120
|
for (const branchNode of this.branchNodes) {
|
|
111
121
|
const specification = branchNode.specification;
|
|
112
122
|
switch (specification.type) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChildrenAnalyzer.js","sources":["../../src/ChildrenAnalyzer.ts"],"sourcesContent":["import type { ElementType, ReactNode } from 'react'\nimport { assertNever } from './assertNever'\nimport type { BranchNodeList } from './BranchNodeList'\nimport { ChildrenAnalyzerError } from './ChildrenAnalyzerError'\nimport type { ChildrenAnalyzerOptions } from './ChildrenAnalyzerOptions'\nimport { getErrorMessage } from './helpers'\nimport type { LeafList } from './LeafList'\nimport type {\n\tDeclarationSiteNodeRepresentationFactory,\n\tRawNodeRepresentation,\n\tRepresentationFactorySite,\n\tStaticContextFactory,\n\tSyntheticChildrenFactory,\n\tUnconstrainedLeafRepresentationFactory,\n\tValidFactoryName,\n} from './nodeSpecs'\n\nexport class ChildrenAnalyzer<\n\tAllLeavesRepresentation = any,\n\tAllBranchNodesRepresentation = never,\n\tStaticContext = undefined,\n> {\n\tprivate static defaultOptions: ChildrenAnalyzerOptions = {\n\t\tignoreRenderProps: true,\n\t\trenderPropsErrorMessage: 'Render props (functions as React component children) are not supported.',\n\n\t\tignoreUnhandledNodes: true,\n\t\tunhandledNodeErrorMessage: 'Encountered an unknown child.',\n\n\t\tstaticContextFactoryName: 'getStaticContext',\n\t\tstaticRenderFactoryName: 'staticRender',\n\t}\n\n\tprivate readonly leaves: LeafList<AllLeavesRepresentation, StaticContext>\n\tprivate readonly branchNodes: BranchNodeList<AllLeavesRepresentation, AllBranchNodesRepresentation, StaticContext>\n\tprivate readonly options: ChildrenAnalyzerOptions<StaticContext>\n\n\tpublic constructor(\n\t\tleaves: LeafList<AllLeavesRepresentation, StaticContext>,\n\t\toptions?: Partial<ChildrenAnalyzerOptions>,\n\t)\n\tpublic constructor(\n\t\tleaves: LeafList<AllLeavesRepresentation, StaticContext>,\n\t\tbranchNodes: BranchNodeList<AllLeavesRepresentation, AllBranchNodesRepresentation, StaticContext>,\n\t\toptions?: Partial<ChildrenAnalyzerOptions>,\n\t)\n\tpublic constructor(\n\t\tleaves: LeafList<AllLeavesRepresentation, StaticContext>,\n\t\tdecider:\n\t\t\t| Partial<ChildrenAnalyzerOptions>\n\t\t\t| BranchNodeList<AllLeavesRepresentation, AllBranchNodesRepresentation, StaticContext> = [],\n\t\toptions: Partial<ChildrenAnalyzerOptions> = {},\n\t) {\n\t\tthis.leaves = leaves\n\n\t\tif (Array.isArray(decider)) {\n\t\t\tthis.branchNodes = decider\n\t\t} else {\n\t\t\tthis.branchNodes = []\n\t\t\toptions = decider\n\t\t}\n\t\tthis.options = { ...ChildrenAnalyzer.defaultOptions, ...options }\n\t}\n\n\tpublic processChildren(\n\t\tchildren: ReactNode,\n\t\tinitialStaticContext: StaticContext,\n\t): Array<AllLeavesRepresentation | AllBranchNodesRepresentation> {\n\t\tconst processed = this.processNode(children, initialStaticContext)\n\n\t\tconst rawResult: Array<AllLeavesRepresentation | AllBranchNodesRepresentation | undefined> = Array.isArray(\n\t\t\tprocessed,\n\t\t)\n\t\t\t? processed\n\t\t\t: [processed]\n\n\t\treturn rawResult.filter(\n\t\t\t(item): item is AllLeavesRepresentation | AllBranchNodesRepresentation => item !== undefined,\n\t\t)\n\t}\n\n\tprivate processNode(\n\t\tnode: ReactNode | Function,\n\t\tstaticContext: StaticContext,\n\t): RawNodeRepresentation<AllLeavesRepresentation, AllBranchNodesRepresentation> {\n\t\tif (!node || typeof node === 'string' || typeof node === 'number' || typeof node === 'boolean') {\n\t\t\tfor (const leaf of this.leaves) {\n\t\t\t\tconst specification = leaf.specification\n\t\t\t\tif (specification.type === 'useSite') {\n\t\t\t\t\tconst { ComponentType, factory } = specification\n\t\t\t\t\tif (ComponentType === undefined) {\n\t\t\t\t\t\treturn factory(node, staticContext)\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (node === false || node === undefined || node === null) {\n\t\t\t\t// This adds seamless support for conditionals and such.\n\t\t\t\treturn undefined\n\t\t\t}\n\t\t\tif (!this.options.ignoreUnhandledNodes) {\n\t\t\t\tthrow new ChildrenAnalyzerError(getErrorMessage(this.options.unhandledNodeErrorMessage, node, staticContext))\n\t\t\t}\n\t\t\treturn undefined\n\t\t}\n\n\t\tif (typeof node === 'function') {\n\t\t\tif (this.options.ignoreRenderProps) {\n\t\t\t\treturn undefined\n\t\t\t}\n\t\t\tthrow new ChildrenAnalyzerError(getErrorMessage(this.options.renderPropsErrorMessage, node, staticContext))\n\t\t}\n\n\t\tif (Array.isArray(node)) {\n\t\t\tlet mapped: Array<AllLeavesRepresentation | AllBranchNodesRepresentation> = []\n\n\t\t\tfor (const subNode of node) {\n\t\t\t\tconst processed = this.processNode(subNode, staticContext)\n\n\t\t\t\tif (processed !== undefined) {\n\t\t\t\t\tif (Array.isArray(processed)) {\n\t\t\t\t\t\tmapped = mapped.concat(processed)\n\t\t\t\t\t} else {\n\t\t\t\t\t\tmapped.push(processed)\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn mapped\n\t\t}\n\n\t\tlet children: ReactNode = undefined\n\n\t\tif (!('type' in node)) {\n\t\t\treturn this.processNode(children, staticContext)\n\t\t}\n\t\tchildren = node.props.children\n\n\t\tif (typeof node.type === 'symbol') {\n\t\t\t// Fragment, Portal or other non-component\n\t\t\treturn this.processNode(children, staticContext)\n\t\t}\n\t\t// if (typeof node.type === 'string') {\n\t\t// \t// Typically a host component\n\t\t// \tif (!this.options.ignoreUnhandledNodes) {\n\t\t// \t\tthrow new ChildrenAnalyzerError(getErrorMessage(this.options.unhandledNodeErrorMessage, node, staticContext))\n\t\t// \t}\n\t\t// \treturn this.processNode(children, staticContext)\n\t\t// }\n\n\t\t// Component, PureComponent, FunctionComponent\n\n\t\tconst treeNode = node.type as ElementType &\n\t\t\t{\n\t\t\t\t[staticMethod in ValidFactoryName]:\n\t\t\t\t\t| StaticContextFactory<any, StaticContext>\n\t\t\t\t\t| SyntheticChildrenFactory<any, StaticContext>\n\t\t\t\t\t| UnconstrainedLeafRepresentationFactory<any, AllLeavesRepresentation, StaticContext>\n\t\t\t\t\t| DeclarationSiteNodeRepresentationFactory<any, unknown, AllBranchNodesRepresentation, StaticContext>\n\t\t\t}\n\n\t\tif (typeof treeNode !== 'string') {\n\t\t\tif (this.options.staticContextFactoryName in treeNode) {\n\t\t\t\tconst staticContextFactory = treeNode[this.options.staticContextFactoryName] as StaticContextFactory<\n\t\t\t\t\tany,\n\t\t\t\t\tStaticContext\n\t\t\t\t>\n\t\t\t\tstaticContext = staticContextFactory(node.props, staticContext)\n\t\t\t}\n\n\t\t\tif (this.options.staticRenderFactoryName in treeNode) {\n\t\t\t\tconst factory = treeNode[this.options.staticRenderFactoryName] as SyntheticChildrenFactory<any, StaticContext>\n\t\t\t\tchildren = factory(node.props, staticContext)\n\t\t\t}\n\t\t}\n\n\t\tfor (const leaf of this.leaves) {\n\t\t\tconst specification = leaf.specification\n\t\t\tswitch (specification.type) {\n\t\t\t\tcase 'declarationSite': {\n\t\t\t\t\tconst { factoryMethodName } = specification\n\n\t\t\t\t\tif (typeof treeNode !== 'string' && factoryMethodName in treeNode) {\n\t\t\t\t\t\tconst factory = treeNode[factoryMethodName] as UnconstrainedLeafRepresentationFactory<\n\t\t\t\t\t\t\tany,\n\t\t\t\t\t\t\tAllBranchNodesRepresentation | AllLeavesRepresentation,\n\t\t\t\t\t\t\tStaticContext\n\t\t\t\t\t\t>\n\t\t\t\t\t\treturn factory(node.props, staticContext)\n\t\t\t\t\t}\n\t\t\t\t\tbreak\n\t\t\t\t}\n\t\t\t\tcase 'useSite': {\n\t\t\t\t\tconst { ComponentType, factory } = specification\n\t\t\t\t\tif (ComponentType === undefined || node.type === ComponentType) {\n\t\t\t\t\t\treturn factory(node, staticContext)\n\t\t\t\t\t}\n\t\t\t\t\tbreak\n\t\t\t\t}\n\t\t\t\tdefault:\n\t\t\t\t\treturn assertNever(specification)\n\t\t\t}\n\t\t}\n\n\t\tconst processedChildren = this.processNode(children, staticContext)\n\n\t\tfor (const branchNode of this.branchNodes) {\n\t\t\tconst specification = branchNode.specification\n\t\t\tswitch (specification.type) {\n\t\t\t\tcase 'declarationSite': {\n\t\t\t\t\tconst { factoryMethodName, childrenRepresentationReducer } = specification\n\n\t\t\t\t\tif (typeof treeNode !== 'string' && factoryMethodName in treeNode) {\n\t\t\t\t\t\tif (processedChildren === undefined && !branchNode.options.childrenAreOptional) {\n\t\t\t\t\t\t\tthrow new ChildrenAnalyzerError(branchNode.options.childrenAbsentErrorMessage)\n\t\t\t\t\t\t}\n\t\t\t\t\t\tconst factory = treeNode[factoryMethodName] as DeclarationSiteNodeRepresentationFactory<\n\t\t\t\t\t\t\tany,\n\t\t\t\t\t\t\tunknown,\n\t\t\t\t\t\t\tAllBranchNodesRepresentation | AllLeavesRepresentation,\n\t\t\t\t\t\t\tStaticContext\n\t\t\t\t\t\t>\n\t\t\t\t\t\treturn factory(node.props, childrenRepresentationReducer(processedChildren), staticContext)\n\t\t\t\t\t}\n\t\t\t\t\tbreak\n\t\t\t\t}\n\t\t\t\tcase 'useSite': {\n\t\t\t\t\tconst { factory, ComponentType } = specification\n\t\t\t\t\tif (ComponentType === undefined || node.type === ComponentType) {\n\t\t\t\t\t\tif (processedChildren === undefined && !branchNode.options.childrenAreOptional) {\n\t\t\t\t\t\t\tthrow new ChildrenAnalyzerError(branchNode.options.childrenAbsentErrorMessage)\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn factory(node, processedChildren, staticContext)\n\t\t\t\t\t}\n\t\t\t\t\tbreak\n\t\t\t\t}\n\t\t\t\tdefault:\n\t\t\t\t\treturn assertNever(specification)\n\t\t\t}\n\t\t}\n\n\t\tif (\n\t\t\t!this.options.ignoreUnhandledNodes &&\n\t\t\t!(typeof treeNode !== 'string' && this.options.staticRenderFactoryName in treeNode)\n\t\t) {\n\t\t\tthrow new ChildrenAnalyzerError(getErrorMessage(this.options.unhandledNodeErrorMessage, node, staticContext))\n\t\t}\n\n\t\treturn processedChildren\n\t}\n}\n"],"names":[],"mappings":"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"}
|
|
1
|
+
{"version":3,"file":"ChildrenAnalyzer.js","sources":["../../src/ChildrenAnalyzer.ts"],"sourcesContent":["import type { ElementType, ReactElement, ReactNode } from 'react'\nimport { assertNever } from './assertNever'\nimport type { BranchNodeList } from './BranchNodeList'\nimport { ChildrenAnalyzerError } from './ChildrenAnalyzerError'\nimport type { ChildrenAnalyzerOptions } from './ChildrenAnalyzerOptions'\nimport { getErrorMessage } from './helpers'\nimport type { LeafList } from './LeafList'\nimport type {\n\tDeclarationSiteNodeRepresentationFactory,\n\tRawNodeRepresentation,\n\tStaticContextFactory,\n\tSyntheticChildrenFactory,\n\tUnconstrainedLeafRepresentationFactory,\n\tValidFactoryName,\n} from './nodeSpecs'\nimport { wrapError } from './helpers/wrapError'\n\nexport class ChildrenAnalyzer<\n\tAllLeavesRepresentation = any,\n\tAllBranchNodesRepresentation = never,\n\tStaticContext = undefined,\n> {\n\tprivate static defaultOptions: ChildrenAnalyzerOptions = {\n\t\tignoreRenderProps: true,\n\t\trenderPropsErrorMessage: 'Render props (functions as React component children) are not supported.',\n\n\t\tignoreUnhandledNodes: true,\n\t\tunhandledNodeErrorMessage: 'Encountered an unknown child.',\n\n\t\tstaticContextFactoryName: 'getStaticContext',\n\t\tstaticRenderFactoryName: 'staticRender',\n\t}\n\n\tprivate readonly leaves: LeafList<AllLeavesRepresentation, StaticContext>\n\tprivate readonly branchNodes: BranchNodeList<AllLeavesRepresentation, AllBranchNodesRepresentation, StaticContext>\n\tprivate readonly options: ChildrenAnalyzerOptions<StaticContext>\n\n\tpublic constructor(\n\t\tleaves: LeafList<AllLeavesRepresentation, StaticContext>,\n\t\toptions?: Partial<ChildrenAnalyzerOptions>,\n\t)\n\tpublic constructor(\n\t\tleaves: LeafList<AllLeavesRepresentation, StaticContext>,\n\t\tbranchNodes: BranchNodeList<AllLeavesRepresentation, AllBranchNodesRepresentation, StaticContext>,\n\t\toptions?: Partial<ChildrenAnalyzerOptions>,\n\t)\n\tpublic constructor(\n\t\tleaves: LeafList<AllLeavesRepresentation, StaticContext>,\n\t\tdecider:\n\t\t\t| Partial<ChildrenAnalyzerOptions>\n\t\t\t| BranchNodeList<AllLeavesRepresentation, AllBranchNodesRepresentation, StaticContext> = [],\n\t\toptions: Partial<ChildrenAnalyzerOptions> = {},\n\t) {\n\t\tthis.leaves = leaves\n\n\t\tif (Array.isArray(decider)) {\n\t\t\tthis.branchNodes = decider\n\t\t} else {\n\t\t\tthis.branchNodes = []\n\t\t\toptions = decider\n\t\t}\n\t\tthis.options = { ...ChildrenAnalyzer.defaultOptions, ...options }\n\t}\n\n\tpublic processChildren(\n\t\tchildren: ReactNode,\n\t\tinitialStaticContext: StaticContext,\n\t): Array<AllLeavesRepresentation | AllBranchNodesRepresentation> {\n\t\tconst processed = this.processNode(children, initialStaticContext, [])\n\n\t\tconst rawResult: Array<AllLeavesRepresentation | AllBranchNodesRepresentation | undefined> = Array.isArray(\n\t\t\tprocessed,\n\t\t)\n\t\t\t? processed\n\t\t\t: [processed]\n\n\t\treturn rawResult.filter(\n\t\t\t(item): item is AllLeavesRepresentation | AllBranchNodesRepresentation => item !== undefined,\n\t\t)\n\t}\n\n\tprivate processNode(\n\t\tnode: ReactNode | Function,\n\t\tstaticContext: StaticContext,\n\t\tcomponentPath: ReactElement[],\n\t): RawNodeRepresentation<AllLeavesRepresentation, AllBranchNodesRepresentation> {\n\t\tif (!node || typeof node === 'string' || typeof node === 'number' || typeof node === 'boolean') {\n\t\t\tfor (const leaf of this.leaves) {\n\t\t\t\tconst specification = leaf.specification\n\t\t\t\tif (specification.type === 'useSite') {\n\t\t\t\t\tconst { ComponentType, factory } = specification\n\t\t\t\t\tif (ComponentType === undefined) {\n\t\t\t\t\t\treturn factory(node, staticContext)\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (node === false || node === undefined || node === null) {\n\t\t\t\t// This adds seamless support for conditionals and such.\n\t\t\t\treturn undefined\n\t\t\t}\n\t\t\tif (!this.options.ignoreUnhandledNodes) {\n\t\t\t\tthrow new ChildrenAnalyzerError(getErrorMessage(this.options.unhandledNodeErrorMessage, node, staticContext))\n\t\t\t}\n\t\t\treturn undefined\n\t\t}\n\n\t\tif (typeof node === 'function') {\n\t\t\tif (this.options.ignoreRenderProps) {\n\t\t\t\treturn undefined\n\t\t\t}\n\t\t\tthrow new ChildrenAnalyzerError(getErrorMessage(this.options.renderPropsErrorMessage, node, staticContext))\n\t\t}\n\n\t\tif (Array.isArray(node)) {\n\t\t\tlet mapped: Array<AllLeavesRepresentation | AllBranchNodesRepresentation> = []\n\n\t\t\tfor (const subNode of node) {\n\t\t\t\tconst processed = this.processNode(subNode, staticContext, componentPath)\n\n\t\t\t\tif (processed !== undefined) {\n\t\t\t\t\tif (Array.isArray(processed)) {\n\t\t\t\t\t\tmapped = mapped.concat(processed)\n\t\t\t\t\t} else {\n\t\t\t\t\t\tmapped.push(processed)\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn mapped\n\t\t}\n\n\t\tlet children: ReactNode = undefined\n\n\t\tif (!('type' in node)) {\n\t\t\treturn this.processNode(children, staticContext, componentPath)\n\t\t}\n\t\tchildren = node.props.children\n\n\t\tif (typeof node.type === 'symbol') {\n\t\t\t// Fragment, Portal or other non-component\n\t\t\treturn this.processNode(children, staticContext, componentPath)\n\t\t}\n\t\t// if (typeof node.type === 'string') {\n\t\t// \t// Typically a host component\n\t\t// \tif (!this.options.ignoreUnhandledNodes) {\n\t\t// \t\tthrow new ChildrenAnalyzerError(getErrorMessage(this.options.unhandledNodeErrorMessage, node, staticContext))\n\t\t// \t}\n\t\t// \treturn this.processNode(children, staticContext)\n\t\t// }\n\n\t\t// Component, PureComponent, FunctionComponent\n\n\t\tconst treeNode = node.type as ElementType &\n\t\t\t{\n\t\t\t\t[staticMethod in ValidFactoryName]:\n\t\t\t\t\t| StaticContextFactory<any, StaticContext>\n\t\t\t\t\t| SyntheticChildrenFactory<any, StaticContext>\n\t\t\t\t\t| UnconstrainedLeafRepresentationFactory<any, AllLeavesRepresentation, StaticContext>\n\t\t\t\t\t| DeclarationSiteNodeRepresentationFactory<any, unknown, AllBranchNodesRepresentation, StaticContext>\n\t\t\t}\n\n\t\tcomponentPath = [...componentPath, node]\n\t\tif (typeof treeNode !== 'string') {\n\t\t\tif (this.options.staticContextFactoryName in treeNode) {\n\t\t\t\tconst staticContextFactory = treeNode[this.options.staticContextFactoryName] as StaticContextFactory<\n\t\t\t\t\tany,\n\t\t\t\t\tStaticContext\n\t\t\t\t>\n\t\t\t\ttry {\n\t\t\t\t\tstaticContext = staticContextFactory(node.props, staticContext)\n\t\t\t\t} catch (e) {\n\t\t\t\t\twrapError(e, treeNode.displayName ?? '???', this.options.staticContextFactoryName, componentPath)\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (this.options.staticRenderFactoryName in treeNode) {\n\t\t\t\tconst factory = treeNode[this.options.staticRenderFactoryName] as SyntheticChildrenFactory<any, StaticContext>\n\t\t\t\ttry {\n\t\t\t\t\tchildren = factory(node.props, staticContext)\n\t\t\t\t} catch (e) {\n\t\t\t\t\twrapError(e, treeNode.displayName ?? '???', this.options.staticRenderFactoryName, componentPath)\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor (const leaf of this.leaves) {\n\t\t\tconst specification = leaf.specification\n\t\t\tswitch (specification.type) {\n\t\t\t\tcase 'declarationSite': {\n\t\t\t\t\tconst { factoryMethodName } = specification\n\n\t\t\t\t\tif (typeof treeNode !== 'string' && factoryMethodName in treeNode) {\n\t\t\t\t\t\tconst factory = treeNode[factoryMethodName] as UnconstrainedLeafRepresentationFactory<\n\t\t\t\t\t\t\tany,\n\t\t\t\t\t\t\tAllBranchNodesRepresentation | AllLeavesRepresentation,\n\t\t\t\t\t\t\tStaticContext\n\t\t\t\t\t\t>\n\t\t\t\t\t\treturn factory(node.props, staticContext)\n\t\t\t\t\t}\n\t\t\t\t\tbreak\n\t\t\t\t}\n\t\t\t\tcase 'useSite': {\n\t\t\t\t\tconst { ComponentType, factory } = specification\n\t\t\t\t\tif (ComponentType === undefined || node.type === ComponentType) {\n\t\t\t\t\t\treturn factory(node, staticContext)\n\t\t\t\t\t}\n\t\t\t\t\tbreak\n\t\t\t\t}\n\t\t\t\tdefault:\n\t\t\t\t\treturn assertNever(specification)\n\t\t\t}\n\t\t}\n\n\t\tconst processedChildren = this.processNode(children, staticContext, componentPath)\n\n\t\tfor (const branchNode of this.branchNodes) {\n\t\t\tconst specification = branchNode.specification\n\t\t\tswitch (specification.type) {\n\t\t\t\tcase 'declarationSite': {\n\t\t\t\t\tconst { factoryMethodName, childrenRepresentationReducer } = specification\n\n\t\t\t\t\tif (typeof treeNode !== 'string' && factoryMethodName in treeNode) {\n\t\t\t\t\t\tif (processedChildren === undefined && !branchNode.options.childrenAreOptional) {\n\t\t\t\t\t\t\tthrow new ChildrenAnalyzerError(branchNode.options.childrenAbsentErrorMessage)\n\t\t\t\t\t\t}\n\t\t\t\t\t\tconst factory = treeNode[factoryMethodName] as DeclarationSiteNodeRepresentationFactory<\n\t\t\t\t\t\t\tany,\n\t\t\t\t\t\t\tunknown,\n\t\t\t\t\t\t\tAllBranchNodesRepresentation | AllLeavesRepresentation,\n\t\t\t\t\t\t\tStaticContext\n\t\t\t\t\t\t>\n\t\t\t\t\t\treturn factory(node.props, childrenRepresentationReducer(processedChildren), staticContext)\n\t\t\t\t\t}\n\t\t\t\t\tbreak\n\t\t\t\t}\n\t\t\t\tcase 'useSite': {\n\t\t\t\t\tconst { factory, ComponentType } = specification\n\t\t\t\t\tif (ComponentType === undefined || node.type === ComponentType) {\n\t\t\t\t\t\tif (processedChildren === undefined && !branchNode.options.childrenAreOptional) {\n\t\t\t\t\t\t\tthrow new ChildrenAnalyzerError(branchNode.options.childrenAbsentErrorMessage)\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn factory(node, processedChildren, staticContext)\n\t\t\t\t\t}\n\t\t\t\t\tbreak\n\t\t\t\t}\n\t\t\t\tdefault:\n\t\t\t\t\treturn assertNever(specification)\n\t\t\t}\n\t\t}\n\n\t\tif (\n\t\t\t!this.options.ignoreUnhandledNodes &&\n\t\t\t!(typeof treeNode !== 'string' && this.options.staticRenderFactoryName in treeNode)\n\t\t) {\n\t\t\tthrow new ChildrenAnalyzerError(getErrorMessage(this.options.unhandledNodeErrorMessage, node, staticContext))\n\t\t}\n\n\t\treturn processedChildren\n\t}\n}\n"],"names":[],"mappings":"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"}
|
|
@@ -1,4 +1,19 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
|
+
var __publicField = (obj, key, value) => {
|
|
4
|
+
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
5
|
+
return value;
|
|
6
|
+
};
|
|
1
7
|
class ChildrenAnalyzerError extends Error {
|
|
8
|
+
constructor(message, options) {
|
|
9
|
+
super(message);
|
|
10
|
+
__publicField(this, "cause");
|
|
11
|
+
__publicField(this, "details");
|
|
12
|
+
this.details = options?.details;
|
|
13
|
+
if (typeof options === "object" && "cause" in options) {
|
|
14
|
+
this.cause = options.cause;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
2
17
|
}
|
|
3
18
|
export { ChildrenAnalyzerError };
|
|
4
19
|
//# sourceMappingURL=ChildrenAnalyzerError.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChildrenAnalyzerError.js","sources":["../../src/ChildrenAnalyzerError.ts"],"sourcesContent":["export class ChildrenAnalyzerError extends Error {}\n"],"names":[],"mappings":"AAAO,MAAM,8BAA8B,MAAM;
|
|
1
|
+
{"version":3,"file":"ChildrenAnalyzerError.js","sources":["../../src/ChildrenAnalyzerError.ts"],"sourcesContent":["export class ChildrenAnalyzerError extends Error {\n\tpublic cause?: unknown\n\tpublic details?: string\n\n\tconstructor(message: string, options?: { cause: unknown, details?: string }) {\n\t\tsuper(message)\n\t\tthis.details = options?.details\n\t\tif ((typeof options === 'object' && 'cause' in options)) {\n\t\t\tthis.cause = options.cause\n\t\t}\n\t}\n}\n"],"names":[],"mappings":";;;;;;AAAO,MAAM,8BAA8B,MAAM;AAAA,EAIhD,YAAY,SAAiB,SAAgD;AAC5E,UAAM,OAAO;AAJP;AACA;AAIN,SAAK,UAAU,SAAS;AACxB,QAAK,OAAO,YAAY,YAAY,WAAW,SAAU;AACxD,WAAK,QAAQ,QAAQ;AAAA,IACtB;AAAA,EACD;AACD;;"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { ChildrenAnalyzerError } from "../ChildrenAnalyzerError.js";
|
|
3
|
+
const wrapError = (e, currentComponentName, methodName, path) => {
|
|
4
|
+
if (!(e instanceof Error)) {
|
|
5
|
+
throw e;
|
|
6
|
+
}
|
|
7
|
+
const componentPath = path.map((it, index) => {
|
|
8
|
+
const { children, ...props } = it.props;
|
|
9
|
+
const printProps = (props2) => {
|
|
10
|
+
let result = "";
|
|
11
|
+
for (const [key, value] of Object.entries(props2)) {
|
|
12
|
+
if (value === void 0) {
|
|
13
|
+
continue;
|
|
14
|
+
}
|
|
15
|
+
try {
|
|
16
|
+
const valuePrinted = JSON.stringify(value, (key2, value2) => {
|
|
17
|
+
if (typeof value2 === "function") {
|
|
18
|
+
return "(function)";
|
|
19
|
+
}
|
|
20
|
+
if (React.isValidElement(value2)) {
|
|
21
|
+
return "(react element)";
|
|
22
|
+
}
|
|
23
|
+
return value2;
|
|
24
|
+
});
|
|
25
|
+
result += ` ${key}=${valuePrinted}`;
|
|
26
|
+
} catch {
|
|
27
|
+
result += ` ${key}=(failed to print a value)`;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
return result;
|
|
31
|
+
};
|
|
32
|
+
const componentName = typeof it.type === "object" && "displayName" in it.type ? it.type.displayName : null;
|
|
33
|
+
const propsPrinted = printProps(props);
|
|
34
|
+
const indent = " ".repeat(index);
|
|
35
|
+
return `${indent}<${componentName ?? "???"}${propsPrinted}>`;
|
|
36
|
+
});
|
|
37
|
+
const errorMessage = `Error during static render of ${currentComponentName} in ${methodName}:
|
|
38
|
+
${e.message || "unknown error"}`;
|
|
39
|
+
throw new ChildrenAnalyzerError(errorMessage, {
|
|
40
|
+
cause: e,
|
|
41
|
+
details: `Component path:
|
|
42
|
+
${componentPath.join("\n")}`
|
|
43
|
+
});
|
|
44
|
+
};
|
|
45
|
+
export { wrapError };
|
|
46
|
+
//# sourceMappingURL=wrapError.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wrapError.js","sources":["../../../src/helpers/wrapError.ts"],"sourcesContent":["import React, { ReactElement } from 'react'\nimport { ChildrenAnalyzerError } from '../ChildrenAnalyzerError'\n\nexport const wrapError = (e: unknown, currentComponentName: string, methodName: string, path: ReactElement[]): never => {\n\tif (!(e instanceof Error)) {\n\t\tthrow e\n\t}\n\n\tconst componentPath = path.map((it, index) => {\n\t\tconst { children, ...props } = it.props\n\t\tconst printProps = (props: any) => {\n\t\t\tlet result = ''\n\t\t\tfor (const [key, value] of Object.entries(props)) {\n\t\t\t\tif (value === undefined) {\n\t\t\t\t\tcontinue\n\t\t\t\t}\n\t\t\t\ttry {\n\t\t\t\t\tconst valuePrinted = JSON.stringify(value, (key, value) => {\n\t\t\t\t\t\t\tif (typeof value === 'function') {\n\t\t\t\t\t\t\t\treturn '(function)'\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (React.isValidElement(value)) {\n\t\t\t\t\t\t\t\treturn '(react element)'\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\treturn value\n\t\t\t\t\t\t},\n\t\t\t\t\t)\n\t\t\t\t\tresult += ` ${key}=${valuePrinted}`\n\t\t\t\t} catch {\n\t\t\t\t\tresult += ` ${key}=(failed to print a value)`\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn result\n\t\t}\n\t\tconst componentName = typeof it.type === 'object' && 'displayName' in it.type ? (it.type as any).displayName : null\n\t\tconst propsPrinted = printProps(props)\n\t\tconst indent = ' '.repeat(index)\n\t\treturn `${indent}<${componentName ?? '???'}${propsPrinted}>`\n\t})\n\tconst errorMessage = `Error during static render of ${currentComponentName} in ${methodName}:\\n${e.message || 'unknown error'}`\n\n\tthrow new ChildrenAnalyzerError(errorMessage, {\n\t\tcause: e,\n\t\tdetails: `Component path:\\n${componentPath.join('\\n')}`,\n\t})\n}\n"],"names":[],"mappings":";;AAGO,MAAM,YAAY,CAAC,GAAY,sBAA8B,YAAoB,SAAgC;AACnH,MAAA,eAAe,QAAQ;AACpB,UAAA;AAAA,EACP;AAEA,QAAM,gBAAgB,KAAK,IAAI,CAAC,IAAI,UAAU;AACvC,UAAA,EAAE,aAAa,UAAU,GAAG;AAC5B,UAAA,aAAa,CAAC,WAAe;AAClC,UAAI,SAAS;AACb,iBAAW,CAAC,KAAK,UAAU,OAAO,QAAQ,MAAK,GAAG;AACjD,YAAI,UAAU,QAAW;AACxB;AAAA,QACD;AACI,YAAA;AACH,gBAAM,eAAe,KAAK,UAAU,OAAO,CAAC,MAAK,WAAU;AACrD,gBAAA,OAAO,WAAU,YAAY;AACzB,qBAAA;AAAA,YACR;AACI,gBAAA,MAAM,eAAe,MAAK,GAAG;AACzB,qBAAA;AAAA,YACR;AACO,mBAAA;AAAA,UAAA,CAET;AACA,oBAAU,IAAI,OAAO;AAAA,QAAA,QACpB;AACD,oBAAU,IAAI;AAAA,QACf;AAAA,MACD;AACO,aAAA;AAAA,IAAA;AAEF,UAAA,gBAAgB,OAAO,GAAG,SAAS,YAAY,iBAAiB,GAAG,OAAQ,GAAG,KAAa,cAAc;AACzG,UAAA,eAAe,WAAW,KAAK;AAC/B,UAAA,SAAS,KAAK,OAAO,KAAK;AACzB,WAAA,GAAG,UAAU,iBAAiB,QAAQ;AAAA,EAAA,CAC7C;AACK,QAAA,eAAe,iCAAiC,2BAA2B;AAAA,EAAgB,EAAE,WAAW;AAExG,QAAA,IAAI,sBAAsB,cAAc;AAAA,IAC7C,OAAO;AAAA,IACP,SAAS;AAAA,EAAoB,cAAc,KAAK,IAAI;AAAA,EAAA,CACpD;AACF;;"}
|
|
@@ -6,6 +6,7 @@ var __publicField = (obj, key, value) => {
|
|
|
6
6
|
};
|
|
7
7
|
import { assertNever } from "./assertNever.js";
|
|
8
8
|
import { ChildrenAnalyzerError } from "./ChildrenAnalyzerError.js";
|
|
9
|
+
import { wrapError } from "./helpers/wrapError.js";
|
|
9
10
|
import { getErrorMessage } from "./helpers/getErrorMessage.js";
|
|
10
11
|
const _ChildrenAnalyzer = class {
|
|
11
12
|
constructor(leaves, decider = [], options = {}) {
|
|
@@ -22,11 +23,11 @@ const _ChildrenAnalyzer = class {
|
|
|
22
23
|
this.options = { ..._ChildrenAnalyzer.defaultOptions, ...options };
|
|
23
24
|
}
|
|
24
25
|
processChildren(children, initialStaticContext) {
|
|
25
|
-
const processed = this.processNode(children, initialStaticContext);
|
|
26
|
+
const processed = this.processNode(children, initialStaticContext, []);
|
|
26
27
|
const rawResult = Array.isArray(processed) ? processed : [processed];
|
|
27
28
|
return rawResult.filter((item) => item !== void 0);
|
|
28
29
|
}
|
|
29
|
-
processNode(node, staticContext) {
|
|
30
|
+
processNode(node, staticContext, componentPath) {
|
|
30
31
|
if (!node || typeof node === "string" || typeof node === "number" || typeof node === "boolean") {
|
|
31
32
|
for (const leaf of this.leaves) {
|
|
32
33
|
const specification = leaf.specification;
|
|
@@ -54,7 +55,7 @@ const _ChildrenAnalyzer = class {
|
|
|
54
55
|
if (Array.isArray(node)) {
|
|
55
56
|
let mapped = [];
|
|
56
57
|
for (const subNode of node) {
|
|
57
|
-
const processed = this.processNode(subNode, staticContext);
|
|
58
|
+
const processed = this.processNode(subNode, staticContext, componentPath);
|
|
58
59
|
if (processed !== void 0) {
|
|
59
60
|
if (Array.isArray(processed)) {
|
|
60
61
|
mapped = mapped.concat(processed);
|
|
@@ -67,21 +68,30 @@ const _ChildrenAnalyzer = class {
|
|
|
67
68
|
}
|
|
68
69
|
let children = void 0;
|
|
69
70
|
if (!("type" in node)) {
|
|
70
|
-
return this.processNode(children, staticContext);
|
|
71
|
+
return this.processNode(children, staticContext, componentPath);
|
|
71
72
|
}
|
|
72
73
|
children = node.props.children;
|
|
73
74
|
if (typeof node.type === "symbol") {
|
|
74
|
-
return this.processNode(children, staticContext);
|
|
75
|
+
return this.processNode(children, staticContext, componentPath);
|
|
75
76
|
}
|
|
76
77
|
const treeNode = node.type;
|
|
78
|
+
componentPath = [...componentPath, node];
|
|
77
79
|
if (typeof treeNode !== "string") {
|
|
78
80
|
if (this.options.staticContextFactoryName in treeNode) {
|
|
79
81
|
const staticContextFactory = treeNode[this.options.staticContextFactoryName];
|
|
80
|
-
|
|
82
|
+
try {
|
|
83
|
+
staticContext = staticContextFactory(node.props, staticContext);
|
|
84
|
+
} catch (e) {
|
|
85
|
+
wrapError(e, treeNode.displayName ?? "???", this.options.staticContextFactoryName, componentPath);
|
|
86
|
+
}
|
|
81
87
|
}
|
|
82
88
|
if (this.options.staticRenderFactoryName in treeNode) {
|
|
83
89
|
const factory = treeNode[this.options.staticRenderFactoryName];
|
|
84
|
-
|
|
90
|
+
try {
|
|
91
|
+
children = factory(node.props, staticContext);
|
|
92
|
+
} catch (e) {
|
|
93
|
+
wrapError(e, treeNode.displayName ?? "???", this.options.staticRenderFactoryName, componentPath);
|
|
94
|
+
}
|
|
85
95
|
}
|
|
86
96
|
}
|
|
87
97
|
for (const leaf of this.leaves) {
|
|
@@ -106,7 +116,7 @@ const _ChildrenAnalyzer = class {
|
|
|
106
116
|
return assertNever(specification);
|
|
107
117
|
}
|
|
108
118
|
}
|
|
109
|
-
const processedChildren = this.processNode(children, staticContext);
|
|
119
|
+
const processedChildren = this.processNode(children, staticContext, componentPath);
|
|
110
120
|
for (const branchNode of this.branchNodes) {
|
|
111
121
|
const specification = branchNode.specification;
|
|
112
122
|
switch (specification.type) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChildrenAnalyzer.js","sources":["../../src/ChildrenAnalyzer.ts"],"sourcesContent":["import type { ElementType, ReactNode } from 'react'\nimport { assertNever } from './assertNever'\nimport type { BranchNodeList } from './BranchNodeList'\nimport { ChildrenAnalyzerError } from './ChildrenAnalyzerError'\nimport type { ChildrenAnalyzerOptions } from './ChildrenAnalyzerOptions'\nimport { getErrorMessage } from './helpers'\nimport type { LeafList } from './LeafList'\nimport type {\n\tDeclarationSiteNodeRepresentationFactory,\n\tRawNodeRepresentation,\n\tRepresentationFactorySite,\n\tStaticContextFactory,\n\tSyntheticChildrenFactory,\n\tUnconstrainedLeafRepresentationFactory,\n\tValidFactoryName,\n} from './nodeSpecs'\n\nexport class ChildrenAnalyzer<\n\tAllLeavesRepresentation = any,\n\tAllBranchNodesRepresentation = never,\n\tStaticContext = undefined,\n> {\n\tprivate static defaultOptions: ChildrenAnalyzerOptions = {\n\t\tignoreRenderProps: true,\n\t\trenderPropsErrorMessage: 'Render props (functions as React component children) are not supported.',\n\n\t\tignoreUnhandledNodes: true,\n\t\tunhandledNodeErrorMessage: 'Encountered an unknown child.',\n\n\t\tstaticContextFactoryName: 'getStaticContext',\n\t\tstaticRenderFactoryName: 'staticRender',\n\t}\n\n\tprivate readonly leaves: LeafList<AllLeavesRepresentation, StaticContext>\n\tprivate readonly branchNodes: BranchNodeList<AllLeavesRepresentation, AllBranchNodesRepresentation, StaticContext>\n\tprivate readonly options: ChildrenAnalyzerOptions<StaticContext>\n\n\tpublic constructor(\n\t\tleaves: LeafList<AllLeavesRepresentation, StaticContext>,\n\t\toptions?: Partial<ChildrenAnalyzerOptions>,\n\t)\n\tpublic constructor(\n\t\tleaves: LeafList<AllLeavesRepresentation, StaticContext>,\n\t\tbranchNodes: BranchNodeList<AllLeavesRepresentation, AllBranchNodesRepresentation, StaticContext>,\n\t\toptions?: Partial<ChildrenAnalyzerOptions>,\n\t)\n\tpublic constructor(\n\t\tleaves: LeafList<AllLeavesRepresentation, StaticContext>,\n\t\tdecider:\n\t\t\t| Partial<ChildrenAnalyzerOptions>\n\t\t\t| BranchNodeList<AllLeavesRepresentation, AllBranchNodesRepresentation, StaticContext> = [],\n\t\toptions: Partial<ChildrenAnalyzerOptions> = {},\n\t) {\n\t\tthis.leaves = leaves\n\n\t\tif (Array.isArray(decider)) {\n\t\t\tthis.branchNodes = decider\n\t\t} else {\n\t\t\tthis.branchNodes = []\n\t\t\toptions = decider\n\t\t}\n\t\tthis.options = { ...ChildrenAnalyzer.defaultOptions, ...options }\n\t}\n\n\tpublic processChildren(\n\t\tchildren: ReactNode,\n\t\tinitialStaticContext: StaticContext,\n\t): Array<AllLeavesRepresentation | AllBranchNodesRepresentation> {\n\t\tconst processed = this.processNode(children, initialStaticContext)\n\n\t\tconst rawResult: Array<AllLeavesRepresentation | AllBranchNodesRepresentation | undefined> = Array.isArray(\n\t\t\tprocessed,\n\t\t)\n\t\t\t? processed\n\t\t\t: [processed]\n\n\t\treturn rawResult.filter(\n\t\t\t(item): item is AllLeavesRepresentation | AllBranchNodesRepresentation => item !== undefined,\n\t\t)\n\t}\n\n\tprivate processNode(\n\t\tnode: ReactNode | Function,\n\t\tstaticContext: StaticContext,\n\t): RawNodeRepresentation<AllLeavesRepresentation, AllBranchNodesRepresentation> {\n\t\tif (!node || typeof node === 'string' || typeof node === 'number' || typeof node === 'boolean') {\n\t\t\tfor (const leaf of this.leaves) {\n\t\t\t\tconst specification = leaf.specification\n\t\t\t\tif (specification.type === 'useSite') {\n\t\t\t\t\tconst { ComponentType, factory } = specification\n\t\t\t\t\tif (ComponentType === undefined) {\n\t\t\t\t\t\treturn factory(node, staticContext)\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (node === false || node === undefined || node === null) {\n\t\t\t\t// This adds seamless support for conditionals and such.\n\t\t\t\treturn undefined\n\t\t\t}\n\t\t\tif (!this.options.ignoreUnhandledNodes) {\n\t\t\t\tthrow new ChildrenAnalyzerError(getErrorMessage(this.options.unhandledNodeErrorMessage, node, staticContext))\n\t\t\t}\n\t\t\treturn undefined\n\t\t}\n\n\t\tif (typeof node === 'function') {\n\t\t\tif (this.options.ignoreRenderProps) {\n\t\t\t\treturn undefined\n\t\t\t}\n\t\t\tthrow new ChildrenAnalyzerError(getErrorMessage(this.options.renderPropsErrorMessage, node, staticContext))\n\t\t}\n\n\t\tif (Array.isArray(node)) {\n\t\t\tlet mapped: Array<AllLeavesRepresentation | AllBranchNodesRepresentation> = []\n\n\t\t\tfor (const subNode of node) {\n\t\t\t\tconst processed = this.processNode(subNode, staticContext)\n\n\t\t\t\tif (processed !== undefined) {\n\t\t\t\t\tif (Array.isArray(processed)) {\n\t\t\t\t\t\tmapped = mapped.concat(processed)\n\t\t\t\t\t} else {\n\t\t\t\t\t\tmapped.push(processed)\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn mapped\n\t\t}\n\n\t\tlet children: ReactNode = undefined\n\n\t\tif (!('type' in node)) {\n\t\t\treturn this.processNode(children, staticContext)\n\t\t}\n\t\tchildren = node.props.children\n\n\t\tif (typeof node.type === 'symbol') {\n\t\t\t// Fragment, Portal or other non-component\n\t\t\treturn this.processNode(children, staticContext)\n\t\t}\n\t\t// if (typeof node.type === 'string') {\n\t\t// \t// Typically a host component\n\t\t// \tif (!this.options.ignoreUnhandledNodes) {\n\t\t// \t\tthrow new ChildrenAnalyzerError(getErrorMessage(this.options.unhandledNodeErrorMessage, node, staticContext))\n\t\t// \t}\n\t\t// \treturn this.processNode(children, staticContext)\n\t\t// }\n\n\t\t// Component, PureComponent, FunctionComponent\n\n\t\tconst treeNode = node.type as ElementType &\n\t\t\t{\n\t\t\t\t[staticMethod in ValidFactoryName]:\n\t\t\t\t\t| StaticContextFactory<any, StaticContext>\n\t\t\t\t\t| SyntheticChildrenFactory<any, StaticContext>\n\t\t\t\t\t| UnconstrainedLeafRepresentationFactory<any, AllLeavesRepresentation, StaticContext>\n\t\t\t\t\t| DeclarationSiteNodeRepresentationFactory<any, unknown, AllBranchNodesRepresentation, StaticContext>\n\t\t\t}\n\n\t\tif (typeof treeNode !== 'string') {\n\t\t\tif (this.options.staticContextFactoryName in treeNode) {\n\t\t\t\tconst staticContextFactory = treeNode[this.options.staticContextFactoryName] as StaticContextFactory<\n\t\t\t\t\tany,\n\t\t\t\t\tStaticContext\n\t\t\t\t>\n\t\t\t\tstaticContext = staticContextFactory(node.props, staticContext)\n\t\t\t}\n\n\t\t\tif (this.options.staticRenderFactoryName in treeNode) {\n\t\t\t\tconst factory = treeNode[this.options.staticRenderFactoryName] as SyntheticChildrenFactory<any, StaticContext>\n\t\t\t\tchildren = factory(node.props, staticContext)\n\t\t\t}\n\t\t}\n\n\t\tfor (const leaf of this.leaves) {\n\t\t\tconst specification = leaf.specification\n\t\t\tswitch (specification.type) {\n\t\t\t\tcase 'declarationSite': {\n\t\t\t\t\tconst { factoryMethodName } = specification\n\n\t\t\t\t\tif (typeof treeNode !== 'string' && factoryMethodName in treeNode) {\n\t\t\t\t\t\tconst factory = treeNode[factoryMethodName] as UnconstrainedLeafRepresentationFactory<\n\t\t\t\t\t\t\tany,\n\t\t\t\t\t\t\tAllBranchNodesRepresentation | AllLeavesRepresentation,\n\t\t\t\t\t\t\tStaticContext\n\t\t\t\t\t\t>\n\t\t\t\t\t\treturn factory(node.props, staticContext)\n\t\t\t\t\t}\n\t\t\t\t\tbreak\n\t\t\t\t}\n\t\t\t\tcase 'useSite': {\n\t\t\t\t\tconst { ComponentType, factory } = specification\n\t\t\t\t\tif (ComponentType === undefined || node.type === ComponentType) {\n\t\t\t\t\t\treturn factory(node, staticContext)\n\t\t\t\t\t}\n\t\t\t\t\tbreak\n\t\t\t\t}\n\t\t\t\tdefault:\n\t\t\t\t\treturn assertNever(specification)\n\t\t\t}\n\t\t}\n\n\t\tconst processedChildren = this.processNode(children, staticContext)\n\n\t\tfor (const branchNode of this.branchNodes) {\n\t\t\tconst specification = branchNode.specification\n\t\t\tswitch (specification.type) {\n\t\t\t\tcase 'declarationSite': {\n\t\t\t\t\tconst { factoryMethodName, childrenRepresentationReducer } = specification\n\n\t\t\t\t\tif (typeof treeNode !== 'string' && factoryMethodName in treeNode) {\n\t\t\t\t\t\tif (processedChildren === undefined && !branchNode.options.childrenAreOptional) {\n\t\t\t\t\t\t\tthrow new ChildrenAnalyzerError(branchNode.options.childrenAbsentErrorMessage)\n\t\t\t\t\t\t}\n\t\t\t\t\t\tconst factory = treeNode[factoryMethodName] as DeclarationSiteNodeRepresentationFactory<\n\t\t\t\t\t\t\tany,\n\t\t\t\t\t\t\tunknown,\n\t\t\t\t\t\t\tAllBranchNodesRepresentation | AllLeavesRepresentation,\n\t\t\t\t\t\t\tStaticContext\n\t\t\t\t\t\t>\n\t\t\t\t\t\treturn factory(node.props, childrenRepresentationReducer(processedChildren), staticContext)\n\t\t\t\t\t}\n\t\t\t\t\tbreak\n\t\t\t\t}\n\t\t\t\tcase 'useSite': {\n\t\t\t\t\tconst { factory, ComponentType } = specification\n\t\t\t\t\tif (ComponentType === undefined || node.type === ComponentType) {\n\t\t\t\t\t\tif (processedChildren === undefined && !branchNode.options.childrenAreOptional) {\n\t\t\t\t\t\t\tthrow new ChildrenAnalyzerError(branchNode.options.childrenAbsentErrorMessage)\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn factory(node, processedChildren, staticContext)\n\t\t\t\t\t}\n\t\t\t\t\tbreak\n\t\t\t\t}\n\t\t\t\tdefault:\n\t\t\t\t\treturn assertNever(specification)\n\t\t\t}\n\t\t}\n\n\t\tif (\n\t\t\t!this.options.ignoreUnhandledNodes &&\n\t\t\t!(typeof treeNode !== 'string' && this.options.staticRenderFactoryName in treeNode)\n\t\t) {\n\t\t\tthrow new ChildrenAnalyzerError(getErrorMessage(this.options.unhandledNodeErrorMessage, node, staticContext))\n\t\t}\n\n\t\treturn processedChildren\n\t}\n}\n"],"names":[],"mappings":"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"}
|
|
1
|
+
{"version":3,"file":"ChildrenAnalyzer.js","sources":["../../src/ChildrenAnalyzer.ts"],"sourcesContent":["import type { ElementType, ReactElement, ReactNode } from 'react'\nimport { assertNever } from './assertNever'\nimport type { BranchNodeList } from './BranchNodeList'\nimport { ChildrenAnalyzerError } from './ChildrenAnalyzerError'\nimport type { ChildrenAnalyzerOptions } from './ChildrenAnalyzerOptions'\nimport { getErrorMessage } from './helpers'\nimport type { LeafList } from './LeafList'\nimport type {\n\tDeclarationSiteNodeRepresentationFactory,\n\tRawNodeRepresentation,\n\tStaticContextFactory,\n\tSyntheticChildrenFactory,\n\tUnconstrainedLeafRepresentationFactory,\n\tValidFactoryName,\n} from './nodeSpecs'\nimport { wrapError } from './helpers/wrapError'\n\nexport class ChildrenAnalyzer<\n\tAllLeavesRepresentation = any,\n\tAllBranchNodesRepresentation = never,\n\tStaticContext = undefined,\n> {\n\tprivate static defaultOptions: ChildrenAnalyzerOptions = {\n\t\tignoreRenderProps: true,\n\t\trenderPropsErrorMessage: 'Render props (functions as React component children) are not supported.',\n\n\t\tignoreUnhandledNodes: true,\n\t\tunhandledNodeErrorMessage: 'Encountered an unknown child.',\n\n\t\tstaticContextFactoryName: 'getStaticContext',\n\t\tstaticRenderFactoryName: 'staticRender',\n\t}\n\n\tprivate readonly leaves: LeafList<AllLeavesRepresentation, StaticContext>\n\tprivate readonly branchNodes: BranchNodeList<AllLeavesRepresentation, AllBranchNodesRepresentation, StaticContext>\n\tprivate readonly options: ChildrenAnalyzerOptions<StaticContext>\n\n\tpublic constructor(\n\t\tleaves: LeafList<AllLeavesRepresentation, StaticContext>,\n\t\toptions?: Partial<ChildrenAnalyzerOptions>,\n\t)\n\tpublic constructor(\n\t\tleaves: LeafList<AllLeavesRepresentation, StaticContext>,\n\t\tbranchNodes: BranchNodeList<AllLeavesRepresentation, AllBranchNodesRepresentation, StaticContext>,\n\t\toptions?: Partial<ChildrenAnalyzerOptions>,\n\t)\n\tpublic constructor(\n\t\tleaves: LeafList<AllLeavesRepresentation, StaticContext>,\n\t\tdecider:\n\t\t\t| Partial<ChildrenAnalyzerOptions>\n\t\t\t| BranchNodeList<AllLeavesRepresentation, AllBranchNodesRepresentation, StaticContext> = [],\n\t\toptions: Partial<ChildrenAnalyzerOptions> = {},\n\t) {\n\t\tthis.leaves = leaves\n\n\t\tif (Array.isArray(decider)) {\n\t\t\tthis.branchNodes = decider\n\t\t} else {\n\t\t\tthis.branchNodes = []\n\t\t\toptions = decider\n\t\t}\n\t\tthis.options = { ...ChildrenAnalyzer.defaultOptions, ...options }\n\t}\n\n\tpublic processChildren(\n\t\tchildren: ReactNode,\n\t\tinitialStaticContext: StaticContext,\n\t): Array<AllLeavesRepresentation | AllBranchNodesRepresentation> {\n\t\tconst processed = this.processNode(children, initialStaticContext, [])\n\n\t\tconst rawResult: Array<AllLeavesRepresentation | AllBranchNodesRepresentation | undefined> = Array.isArray(\n\t\t\tprocessed,\n\t\t)\n\t\t\t? processed\n\t\t\t: [processed]\n\n\t\treturn rawResult.filter(\n\t\t\t(item): item is AllLeavesRepresentation | AllBranchNodesRepresentation => item !== undefined,\n\t\t)\n\t}\n\n\tprivate processNode(\n\t\tnode: ReactNode | Function,\n\t\tstaticContext: StaticContext,\n\t\tcomponentPath: ReactElement[],\n\t): RawNodeRepresentation<AllLeavesRepresentation, AllBranchNodesRepresentation> {\n\t\tif (!node || typeof node === 'string' || typeof node === 'number' || typeof node === 'boolean') {\n\t\t\tfor (const leaf of this.leaves) {\n\t\t\t\tconst specification = leaf.specification\n\t\t\t\tif (specification.type === 'useSite') {\n\t\t\t\t\tconst { ComponentType, factory } = specification\n\t\t\t\t\tif (ComponentType === undefined) {\n\t\t\t\t\t\treturn factory(node, staticContext)\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (node === false || node === undefined || node === null) {\n\t\t\t\t// This adds seamless support for conditionals and such.\n\t\t\t\treturn undefined\n\t\t\t}\n\t\t\tif (!this.options.ignoreUnhandledNodes) {\n\t\t\t\tthrow new ChildrenAnalyzerError(getErrorMessage(this.options.unhandledNodeErrorMessage, node, staticContext))\n\t\t\t}\n\t\t\treturn undefined\n\t\t}\n\n\t\tif (typeof node === 'function') {\n\t\t\tif (this.options.ignoreRenderProps) {\n\t\t\t\treturn undefined\n\t\t\t}\n\t\t\tthrow new ChildrenAnalyzerError(getErrorMessage(this.options.renderPropsErrorMessage, node, staticContext))\n\t\t}\n\n\t\tif (Array.isArray(node)) {\n\t\t\tlet mapped: Array<AllLeavesRepresentation | AllBranchNodesRepresentation> = []\n\n\t\t\tfor (const subNode of node) {\n\t\t\t\tconst processed = this.processNode(subNode, staticContext, componentPath)\n\n\t\t\t\tif (processed !== undefined) {\n\t\t\t\t\tif (Array.isArray(processed)) {\n\t\t\t\t\t\tmapped = mapped.concat(processed)\n\t\t\t\t\t} else {\n\t\t\t\t\t\tmapped.push(processed)\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn mapped\n\t\t}\n\n\t\tlet children: ReactNode = undefined\n\n\t\tif (!('type' in node)) {\n\t\t\treturn this.processNode(children, staticContext, componentPath)\n\t\t}\n\t\tchildren = node.props.children\n\n\t\tif (typeof node.type === 'symbol') {\n\t\t\t// Fragment, Portal or other non-component\n\t\t\treturn this.processNode(children, staticContext, componentPath)\n\t\t}\n\t\t// if (typeof node.type === 'string') {\n\t\t// \t// Typically a host component\n\t\t// \tif (!this.options.ignoreUnhandledNodes) {\n\t\t// \t\tthrow new ChildrenAnalyzerError(getErrorMessage(this.options.unhandledNodeErrorMessage, node, staticContext))\n\t\t// \t}\n\t\t// \treturn this.processNode(children, staticContext)\n\t\t// }\n\n\t\t// Component, PureComponent, FunctionComponent\n\n\t\tconst treeNode = node.type as ElementType &\n\t\t\t{\n\t\t\t\t[staticMethod in ValidFactoryName]:\n\t\t\t\t\t| StaticContextFactory<any, StaticContext>\n\t\t\t\t\t| SyntheticChildrenFactory<any, StaticContext>\n\t\t\t\t\t| UnconstrainedLeafRepresentationFactory<any, AllLeavesRepresentation, StaticContext>\n\t\t\t\t\t| DeclarationSiteNodeRepresentationFactory<any, unknown, AllBranchNodesRepresentation, StaticContext>\n\t\t\t}\n\n\t\tcomponentPath = [...componentPath, node]\n\t\tif (typeof treeNode !== 'string') {\n\t\t\tif (this.options.staticContextFactoryName in treeNode) {\n\t\t\t\tconst staticContextFactory = treeNode[this.options.staticContextFactoryName] as StaticContextFactory<\n\t\t\t\t\tany,\n\t\t\t\t\tStaticContext\n\t\t\t\t>\n\t\t\t\ttry {\n\t\t\t\t\tstaticContext = staticContextFactory(node.props, staticContext)\n\t\t\t\t} catch (e) {\n\t\t\t\t\twrapError(e, treeNode.displayName ?? '???', this.options.staticContextFactoryName, componentPath)\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (this.options.staticRenderFactoryName in treeNode) {\n\t\t\t\tconst factory = treeNode[this.options.staticRenderFactoryName] as SyntheticChildrenFactory<any, StaticContext>\n\t\t\t\ttry {\n\t\t\t\t\tchildren = factory(node.props, staticContext)\n\t\t\t\t} catch (e) {\n\t\t\t\t\twrapError(e, treeNode.displayName ?? '???', this.options.staticRenderFactoryName, componentPath)\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor (const leaf of this.leaves) {\n\t\t\tconst specification = leaf.specification\n\t\t\tswitch (specification.type) {\n\t\t\t\tcase 'declarationSite': {\n\t\t\t\t\tconst { factoryMethodName } = specification\n\n\t\t\t\t\tif (typeof treeNode !== 'string' && factoryMethodName in treeNode) {\n\t\t\t\t\t\tconst factory = treeNode[factoryMethodName] as UnconstrainedLeafRepresentationFactory<\n\t\t\t\t\t\t\tany,\n\t\t\t\t\t\t\tAllBranchNodesRepresentation | AllLeavesRepresentation,\n\t\t\t\t\t\t\tStaticContext\n\t\t\t\t\t\t>\n\t\t\t\t\t\treturn factory(node.props, staticContext)\n\t\t\t\t\t}\n\t\t\t\t\tbreak\n\t\t\t\t}\n\t\t\t\tcase 'useSite': {\n\t\t\t\t\tconst { ComponentType, factory } = specification\n\t\t\t\t\tif (ComponentType === undefined || node.type === ComponentType) {\n\t\t\t\t\t\treturn factory(node, staticContext)\n\t\t\t\t\t}\n\t\t\t\t\tbreak\n\t\t\t\t}\n\t\t\t\tdefault:\n\t\t\t\t\treturn assertNever(specification)\n\t\t\t}\n\t\t}\n\n\t\tconst processedChildren = this.processNode(children, staticContext, componentPath)\n\n\t\tfor (const branchNode of this.branchNodes) {\n\t\t\tconst specification = branchNode.specification\n\t\t\tswitch (specification.type) {\n\t\t\t\tcase 'declarationSite': {\n\t\t\t\t\tconst { factoryMethodName, childrenRepresentationReducer } = specification\n\n\t\t\t\t\tif (typeof treeNode !== 'string' && factoryMethodName in treeNode) {\n\t\t\t\t\t\tif (processedChildren === undefined && !branchNode.options.childrenAreOptional) {\n\t\t\t\t\t\t\tthrow new ChildrenAnalyzerError(branchNode.options.childrenAbsentErrorMessage)\n\t\t\t\t\t\t}\n\t\t\t\t\t\tconst factory = treeNode[factoryMethodName] as DeclarationSiteNodeRepresentationFactory<\n\t\t\t\t\t\t\tany,\n\t\t\t\t\t\t\tunknown,\n\t\t\t\t\t\t\tAllBranchNodesRepresentation | AllLeavesRepresentation,\n\t\t\t\t\t\t\tStaticContext\n\t\t\t\t\t\t>\n\t\t\t\t\t\treturn factory(node.props, childrenRepresentationReducer(processedChildren), staticContext)\n\t\t\t\t\t}\n\t\t\t\t\tbreak\n\t\t\t\t}\n\t\t\t\tcase 'useSite': {\n\t\t\t\t\tconst { factory, ComponentType } = specification\n\t\t\t\t\tif (ComponentType === undefined || node.type === ComponentType) {\n\t\t\t\t\t\tif (processedChildren === undefined && !branchNode.options.childrenAreOptional) {\n\t\t\t\t\t\t\tthrow new ChildrenAnalyzerError(branchNode.options.childrenAbsentErrorMessage)\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn factory(node, processedChildren, staticContext)\n\t\t\t\t\t}\n\t\t\t\t\tbreak\n\t\t\t\t}\n\t\t\t\tdefault:\n\t\t\t\t\treturn assertNever(specification)\n\t\t\t}\n\t\t}\n\n\t\tif (\n\t\t\t!this.options.ignoreUnhandledNodes &&\n\t\t\t!(typeof treeNode !== 'string' && this.options.staticRenderFactoryName in treeNode)\n\t\t) {\n\t\t\tthrow new ChildrenAnalyzerError(getErrorMessage(this.options.unhandledNodeErrorMessage, node, staticContext))\n\t\t}\n\n\t\treturn processedChildren\n\t}\n}\n"],"names":[],"mappings":"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"}
|
|
@@ -1,4 +1,19 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
|
+
var __publicField = (obj, key, value) => {
|
|
4
|
+
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
5
|
+
return value;
|
|
6
|
+
};
|
|
1
7
|
class ChildrenAnalyzerError extends Error {
|
|
8
|
+
constructor(message, options) {
|
|
9
|
+
super(message);
|
|
10
|
+
__publicField(this, "cause");
|
|
11
|
+
__publicField(this, "details");
|
|
12
|
+
this.details = options?.details;
|
|
13
|
+
if (typeof options === "object" && "cause" in options) {
|
|
14
|
+
this.cause = options.cause;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
2
17
|
}
|
|
3
18
|
export { ChildrenAnalyzerError };
|
|
4
19
|
//# sourceMappingURL=ChildrenAnalyzerError.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChildrenAnalyzerError.js","sources":["../../src/ChildrenAnalyzerError.ts"],"sourcesContent":["export class ChildrenAnalyzerError extends Error {}\n"],"names":[],"mappings":"AAAO,MAAM,8BAA8B,MAAM;
|
|
1
|
+
{"version":3,"file":"ChildrenAnalyzerError.js","sources":["../../src/ChildrenAnalyzerError.ts"],"sourcesContent":["export class ChildrenAnalyzerError extends Error {\n\tpublic cause?: unknown\n\tpublic details?: string\n\n\tconstructor(message: string, options?: { cause: unknown, details?: string }) {\n\t\tsuper(message)\n\t\tthis.details = options?.details\n\t\tif ((typeof options === 'object' && 'cause' in options)) {\n\t\t\tthis.cause = options.cause\n\t\t}\n\t}\n}\n"],"names":[],"mappings":";;;;;;AAAO,MAAM,8BAA8B,MAAM;AAAA,EAIhD,YAAY,SAAiB,SAAgD;AAC5E,UAAM,OAAO;AAJP;AACA;AAIN,SAAK,UAAU,SAAS;AACxB,QAAK,OAAO,YAAY,YAAY,WAAW,SAAU;AACxD,WAAK,QAAQ,QAAQ;AAAA,IACtB;AAAA,EACD;AACD;;"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { ChildrenAnalyzerError } from "../ChildrenAnalyzerError.js";
|
|
3
|
+
const wrapError = (e, currentComponentName, methodName, path) => {
|
|
4
|
+
if (!(e instanceof Error)) {
|
|
5
|
+
throw e;
|
|
6
|
+
}
|
|
7
|
+
const componentPath = path.map((it, index) => {
|
|
8
|
+
const { children, ...props } = it.props;
|
|
9
|
+
const printProps = (props2) => {
|
|
10
|
+
let result = "";
|
|
11
|
+
for (const [key, value] of Object.entries(props2)) {
|
|
12
|
+
if (value === void 0) {
|
|
13
|
+
continue;
|
|
14
|
+
}
|
|
15
|
+
try {
|
|
16
|
+
const valuePrinted = JSON.stringify(value, (key2, value2) => {
|
|
17
|
+
if (typeof value2 === "function") {
|
|
18
|
+
return "(function)";
|
|
19
|
+
}
|
|
20
|
+
if (React.isValidElement(value2)) {
|
|
21
|
+
return "(react element)";
|
|
22
|
+
}
|
|
23
|
+
return value2;
|
|
24
|
+
});
|
|
25
|
+
result += ` ${key}=${valuePrinted}`;
|
|
26
|
+
} catch {
|
|
27
|
+
result += ` ${key}=(failed to print a value)`;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
return result;
|
|
31
|
+
};
|
|
32
|
+
const componentName = typeof it.type === "object" && "displayName" in it.type ? it.type.displayName : null;
|
|
33
|
+
const propsPrinted = printProps(props);
|
|
34
|
+
const indent = " ".repeat(index);
|
|
35
|
+
return `${indent}<${componentName ?? "???"}${propsPrinted}>`;
|
|
36
|
+
});
|
|
37
|
+
const errorMessage = `Error during static render of ${currentComponentName} in ${methodName}:
|
|
38
|
+
${e.message || "unknown error"}`;
|
|
39
|
+
throw new ChildrenAnalyzerError(errorMessage, {
|
|
40
|
+
cause: e,
|
|
41
|
+
details: `Component path:
|
|
42
|
+
${componentPath.join("\n")}`
|
|
43
|
+
});
|
|
44
|
+
};
|
|
45
|
+
export { wrapError };
|
|
46
|
+
//# sourceMappingURL=wrapError.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wrapError.js","sources":["../../../src/helpers/wrapError.ts"],"sourcesContent":["import React, { ReactElement } from 'react'\nimport { ChildrenAnalyzerError } from '../ChildrenAnalyzerError'\n\nexport const wrapError = (e: unknown, currentComponentName: string, methodName: string, path: ReactElement[]): never => {\n\tif (!(e instanceof Error)) {\n\t\tthrow e\n\t}\n\n\tconst componentPath = path.map((it, index) => {\n\t\tconst { children, ...props } = it.props\n\t\tconst printProps = (props: any) => {\n\t\t\tlet result = ''\n\t\t\tfor (const [key, value] of Object.entries(props)) {\n\t\t\t\tif (value === undefined) {\n\t\t\t\t\tcontinue\n\t\t\t\t}\n\t\t\t\ttry {\n\t\t\t\t\tconst valuePrinted = JSON.stringify(value, (key, value) => {\n\t\t\t\t\t\t\tif (typeof value === 'function') {\n\t\t\t\t\t\t\t\treturn '(function)'\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (React.isValidElement(value)) {\n\t\t\t\t\t\t\t\treturn '(react element)'\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\treturn value\n\t\t\t\t\t\t},\n\t\t\t\t\t)\n\t\t\t\t\tresult += ` ${key}=${valuePrinted}`\n\t\t\t\t} catch {\n\t\t\t\t\tresult += ` ${key}=(failed to print a value)`\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn result\n\t\t}\n\t\tconst componentName = typeof it.type === 'object' && 'displayName' in it.type ? (it.type as any).displayName : null\n\t\tconst propsPrinted = printProps(props)\n\t\tconst indent = ' '.repeat(index)\n\t\treturn `${indent}<${componentName ?? '???'}${propsPrinted}>`\n\t})\n\tconst errorMessage = `Error during static render of ${currentComponentName} in ${methodName}:\\n${e.message || 'unknown error'}`\n\n\tthrow new ChildrenAnalyzerError(errorMessage, {\n\t\tcause: e,\n\t\tdetails: `Component path:\\n${componentPath.join('\\n')}`,\n\t})\n}\n"],"names":[],"mappings":";;AAGO,MAAM,YAAY,CAAC,GAAY,sBAA8B,YAAoB,SAAgC;AACnH,MAAA,eAAe,QAAQ;AACpB,UAAA;AAAA,EACP;AAEA,QAAM,gBAAgB,KAAK,IAAI,CAAC,IAAI,UAAU;AACvC,UAAA,EAAE,aAAa,UAAU,GAAG;AAC5B,UAAA,aAAa,CAAC,WAAe;AAClC,UAAI,SAAS;AACb,iBAAW,CAAC,KAAK,UAAU,OAAO,QAAQ,MAAK,GAAG;AACjD,YAAI,UAAU,QAAW;AACxB;AAAA,QACD;AACI,YAAA;AACH,gBAAM,eAAe,KAAK,UAAU,OAAO,CAAC,MAAK,WAAU;AACrD,gBAAA,OAAO,WAAU,YAAY;AACzB,qBAAA;AAAA,YACR;AACI,gBAAA,MAAM,eAAe,MAAK,GAAG;AACzB,qBAAA;AAAA,YACR;AACO,mBAAA;AAAA,UAAA,CAET;AACA,oBAAU,IAAI,OAAO;AAAA,QAAA,QACpB;AACD,oBAAU,IAAI;AAAA,QACf;AAAA,MACD;AACO,aAAA;AAAA,IAAA;AAEF,UAAA,gBAAgB,OAAO,GAAG,SAAS,YAAY,iBAAiB,GAAG,OAAQ,GAAG,KAAa,cAAc;AACzG,UAAA,eAAe,WAAW,KAAK;AAC/B,UAAA,SAAS,KAAK,OAAO,KAAK;AACzB,WAAA,GAAG,UAAU,iBAAiB,QAAQ;AAAA,EAAA,CAC7C;AACK,QAAA,eAAe,iCAAiC,2BAA2B;AAAA,EAAgB,EAAE,WAAW;AAExG,QAAA,IAAI,sBAAsB,cAAc;AAAA,IAC7C,OAAO;AAAA,IACP,SAAS;AAAA,EAAoB,cAAc,KAAK,IAAI;AAAA,EAAA,CACpD;AACF;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChildrenAnalyzer.d.ts","sourceRoot":"","sources":["../../src/ChildrenAnalyzer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"ChildrenAnalyzer.d.ts","sourceRoot":"","sources":["../../src/ChildrenAnalyzer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAA6B,SAAS,EAAE,MAAM,OAAO,CAAA;AAEjE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAEtD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAA;AAExE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AAW1C,qBAAa,gBAAgB,CAC5B,uBAAuB,GAAG,GAAG,EAC7B,4BAA4B,GAAG,KAAK,EACpC,aAAa,GAAG,SAAS;IAEzB,OAAO,CAAC,MAAM,CAAC,cAAc,CAS5B;IAED,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAkD;IACzE,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAsF;IAClH,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAwC;gBAG/D,MAAM,EAAE,QAAQ,CAAC,uBAAuB,EAAE,aAAa,CAAC,EACxD,OAAO,CAAC,EAAE,OAAO,CAAC,uBAAuB,CAAC;gBAG1C,MAAM,EAAE,QAAQ,CAAC,uBAAuB,EAAE,aAAa,CAAC,EACxD,WAAW,EAAE,cAAc,CAAC,uBAAuB,EAAE,4BAA4B,EAAE,aAAa,CAAC,EACjG,OAAO,CAAC,EAAE,OAAO,CAAC,uBAAuB,CAAC;IAoBpC,eAAe,CACrB,QAAQ,EAAE,SAAS,EACnB,oBAAoB,EAAE,aAAa,GACjC,KAAK,CAAC,uBAAuB,GAAG,4BAA4B,CAAC;IAchE,OAAO,CAAC,WAAW;CAkLnB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChildrenAnalyzerError.d.ts","sourceRoot":"","sources":["../../src/ChildrenAnalyzerError.ts"],"names":[],"mappings":"AAAA,qBAAa,qBAAsB,SAAQ,KAAK;
|
|
1
|
+
{"version":3,"file":"ChildrenAnalyzerError.d.ts","sourceRoot":"","sources":["../../src/ChildrenAnalyzerError.ts"],"names":[],"mappings":"AAAA,qBAAa,qBAAsB,SAAQ,KAAK;IACxC,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,OAAO,CAAC,EAAE,MAAM,CAAA;gBAEX,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE;QAAE,KAAK,EAAE,OAAO,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE;CAO3E"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wrapError.d.ts","sourceRoot":"","sources":["../../../src/helpers/wrapError.ts"],"names":[],"mappings":"AAAA,OAAc,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AAG3C,eAAO,MAAM,SAAS,MAAO,OAAO,wBAAwB,MAAM,cAAc,MAAM,QAAQ,YAAY,EAAE,KAAG,KA0C9G,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"program":{"fileNames":["../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.es5.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.es2015.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.es2016.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.es2017.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.es2018.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.es2019.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.es2020.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.es2021.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.esnext.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.dom.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.dom.iterable.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.es2015.core.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.es2017.object.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.es2017.string.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.es2019.array.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.es2019.object.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.es2019.string.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.es2020.string.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.es2021.string.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.esnext.intl.d.ts","../../../../node_modules/.pnpm/@types+react@17.0.30/node_modules/@types/react/global.d.ts","../../../../node_modules/.pnpm/csstype@3.0.11/node_modules/csstype/index.d.ts","../../../../node_modules/.pnpm/@types+prop-types@15.7.4/node_modules/@types/prop-types/index.d.ts","../../../../node_modules/.pnpm/@types+scheduler@0.16.2/node_modules/@types/scheduler/tracing.d.ts","../../../../node_modules/.pnpm/@types+react@17.0.30/node_modules/@types/react/index.d.ts","../../../../node_modules/.pnpm/@types+react@17.0.30/node_modules/@types/react/jsx-runtime.d.ts","../../src/nodeSpecs/types/ChildrenRepresentationReducer.ts","../../src/nodeSpecs/types/ConstrainedLeafRepresentationFactory.ts","../../src/nodeSpecs/types/DeclarationSiteNodeRepresentationFactory.ts","../../src/nodeSpecs/types/RepresentationFactorySite.ts","../../src/nodeSpecs/types/StaticContextFactory.ts","../../src/nodeSpecs/types/SyntheticChildrenFactory.ts","../../src/nodeSpecs/types/UnconstrainedLeafRepresentationFactory.ts","../../src/nodeSpecs/types/UseSiteBranchNodeRepresentationFactory.ts","../../src/nodeSpecs/types/ValidFactoryName.ts","../../src/nodeSpecs/types/index.ts","../../src/ChildrenAnalyzerError.ts","../../src/nodeSpecs/BranchNodeOptions.ts","../../src/nodeSpecs/BranchNode.ts","../../src/nodeSpecs/Leaf.ts","../../src/nodeSpecs/RawNodeRepresentation.ts","../../src/nodeSpecs/index.ts","../../src/BranchNodeList.ts","../../src/assertNever.ts","../../src/ErrorMessageFactory.ts","../../src/ChildrenAnalyzerOptions.ts","../../src/helpers/getErrorMessage.ts","../../src/helpers/index.ts","../../src/LeafList.ts","../../src/ChildrenAnalyzer.ts","../../src/index.ts","../../../../node_modules/.pnpm/@babel+types@7.15.6/node_modules/@babel/types/lib/index.d.ts","../../../../node_modules/.pnpm/@types+babel__generator@7.6.3/node_modules/@types/babel__generator/index.d.ts","../../../../node_modules/.pnpm/@babel+parser@7.15.8/node_modules/@babel/parser/typings/babel-parser.d.ts","../../../../node_modules/.pnpm/@types+babel__template@7.4.1/node_modules/@types/babel__template/index.d.ts","../../../../node_modules/.pnpm/@types+babel__traverse@7.14.2/node_modules/@types/babel__traverse/index.d.ts","../../../../node_modules/.pnpm/@types+babel__core@7.1.16/node_modules/@types/babel__core/index.d.ts","../../../../node_modules/.pnpm/@types+blueimp-md5@2.18.0/node_modules/@types/blueimp-md5/index.d.ts","../../../../node_modules/.pnpm/@types+chai@4.3.0/node_modules/@types/chai/index.d.ts","../../../../node_modules/.pnpm/@types+chai-subset@1.3.3/node_modules/@types/chai-subset/index.d.ts","../../../../node_modules/.pnpm/@types+classnames@2.2.10/node_modules/@types/classnames/types.d.ts","../../../../node_modules/.pnpm/@types+classnames@2.2.10/node_modules/@types/classnames/index.d.ts","../../../../node_modules/.pnpm/@types+color-name@1.1.1/node_modules/@types/color-name/index.d.ts","../../../../node_modules/.pnpm/@types+color-convert@2.0.0/node_modules/@types/color-convert/conversions.d.ts","../../../../node_modules/.pnpm/@types+color-convert@2.0.0/node_modules/@types/color-convert/route.d.ts","../../../../node_modules/.pnpm/@types+color-convert@2.0.0/node_modules/@types/color-convert/index.d.ts","../../../../node_modules/.pnpm/@types+cookie@0.4.1/node_modules/@types/cookie/index.d.ts","../../../../node_modules/.pnpm/@types+debounce@1.2.0/node_modules/@types/debounce/index.d.ts","../../../../node_modules/.pnpm/@types+geojson@7946.0.8/node_modules/@types/geojson/index.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/assert.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/assert/strict.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/globals.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/async_hooks.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/buffer.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/child_process.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/cluster.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/console.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/constants.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/crypto.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/dgram.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/diagnostics_channel.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/dns.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/dns/promises.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/domain.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/events.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/fs.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/fs/promises.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/http.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/http2.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/https.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/inspector.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/module.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/net.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/os.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/path.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/perf_hooks.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/process.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/punycode.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/querystring.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/readline.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/repl.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/stream.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/stream/promises.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/stream/consumers.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/stream/web.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/string_decoder.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/timers.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/timers/promises.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/tls.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/trace_events.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/tty.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/url.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/util.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/v8.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/vm.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/wasi.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/worker_threads.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/zlib.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/globals.global.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/index.d.ts","../../../../node_modules/.pnpm/@types+minimatch@3.0.5/node_modules/@types/minimatch/index.d.ts","../../../../node_modules/.pnpm/@types+glob@7.2.0/node_modules/@types/glob/index.d.ts","../../../../node_modules/.pnpm/@types+graceful-fs@4.1.5/node_modules/@types/graceful-fs/index.d.ts","../../../../node_modules/.pnpm/@types+unist@2.0.6/node_modules/@types/unist/index.d.ts","../../../../node_modules/.pnpm/@types+hast@2.3.4/node_modules/@types/hast/index.d.ts","../../../../node_modules/.pnpm/@types+html-minifier-terser@5.1.2/node_modules/@types/html-minifier-terser/index.d.ts","../../../../node_modules/.pnpm/@types+is-function@1.0.1/node_modules/@types/is-function/index.d.ts","../../../../node_modules/.pnpm/@types+is-hotkey@0.1.5/node_modules/@types/is-hotkey/index.d.ts","../../../../node_modules/.pnpm/@types+istanbul-lib-coverage@2.0.3/node_modules/@types/istanbul-lib-coverage/index.d.ts","../../../../node_modules/.pnpm/@types+istanbul-lib-report@3.0.0/node_modules/@types/istanbul-lib-report/index.d.ts","../../../../node_modules/.pnpm/@types+istanbul-reports@3.0.1/node_modules/@types/istanbul-reports/index.d.ts","../../../../node_modules/.pnpm/@types+js-levenshtein@1.1.0/node_modules/@types/js-levenshtein/index.d.ts","../../../../node_modules/.pnpm/@types+json-schema@7.0.11/node_modules/@types/json-schema/index.d.ts","../../../../node_modules/.pnpm/@types+leaflet@1.7.5/node_modules/@types/leaflet/index.d.ts","../../../../node_modules/.pnpm/@types+lodash@4.14.175/node_modules/@types/lodash/common/common.d.ts","../../../../node_modules/.pnpm/@types+lodash@4.14.175/node_modules/@types/lodash/common/array.d.ts","../../../../node_modules/.pnpm/@types+lodash@4.14.175/node_modules/@types/lodash/common/collection.d.ts","../../../../node_modules/.pnpm/@types+lodash@4.14.175/node_modules/@types/lodash/common/date.d.ts","../../../../node_modules/.pnpm/@types+lodash@4.14.175/node_modules/@types/lodash/common/function.d.ts","../../../../node_modules/.pnpm/@types+lodash@4.14.175/node_modules/@types/lodash/common/lang.d.ts","../../../../node_modules/.pnpm/@types+lodash@4.14.175/node_modules/@types/lodash/common/math.d.ts","../../../../node_modules/.pnpm/@types+lodash@4.14.175/node_modules/@types/lodash/common/number.d.ts","../../../../node_modules/.pnpm/@types+lodash@4.14.175/node_modules/@types/lodash/common/object.d.ts","../../../../node_modules/.pnpm/@types+lodash@4.14.175/node_modules/@types/lodash/common/seq.d.ts","../../../../node_modules/.pnpm/@types+lodash@4.14.175/node_modules/@types/lodash/common/string.d.ts","../../../../node_modules/.pnpm/@types+lodash@4.14.175/node_modules/@types/lodash/common/util.d.ts","../../../../node_modules/.pnpm/@types+lodash@4.14.175/node_modules/@types/lodash/index.d.ts","../../../../node_modules/.pnpm/@types+mdast@3.0.10/node_modules/@types/mdast/index.d.ts","../../../../node_modules/.pnpm/@types+mime@2.0.3/node_modules/@types/mime/index.d.ts","../../../../node_modules/.pnpm/form-data@3.0.1/node_modules/form-data/index.d.ts","../../../../node_modules/.pnpm/@types+node-fetch@2.5.12/node_modules/@types/node-fetch/externals.d.ts","../../../../node_modules/.pnpm/@types+node-fetch@2.5.12/node_modules/@types/node-fetch/index.d.ts","../../../../node_modules/.pnpm/@types+normalize-package-data@2.4.1/node_modules/@types/normalize-package-data/index.d.ts","../../../../node_modules/.pnpm/@types+npmlog@4.1.3/node_modules/@types/npmlog/index.d.ts","../../../../node_modules/.pnpm/@types+overlayscrollbars@1.12.1/node_modules/@types/overlayscrollbars/index.d.ts","../../../../node_modules/.pnpm/@types+parse-json@4.0.0/node_modules/@types/parse-json/index.d.ts","../../../../node_modules/.pnpm/@types+parse5@5.0.3/node_modules/@types/parse5/index.d.ts","../../../../node_modules/.pnpm/pg-types@2.2.0/node_modules/pg-types/index.d.ts","../../../../node_modules/.pnpm/pg-protocol@1.5.0/node_modules/pg-protocol/dist/messages.d.ts","../../../../node_modules/.pnpm/pg-protocol@1.5.0/node_modules/pg-protocol/dist/serializer.d.ts","../../../../node_modules/.pnpm/pg-protocol@1.5.0/node_modules/pg-protocol/dist/parser.d.ts","../../../../node_modules/.pnpm/pg-protocol@1.5.0/node_modules/pg-protocol/dist/index.d.ts","../../../../node_modules/.pnpm/@types+pg@8.6.5/node_modules/@types/pg/index.d.ts","../../../../node_modules/.pnpm/@types+pretty-hrtime@1.0.1/node_modules/@types/pretty-hrtime/index.d.ts","../../../../node_modules/.pnpm/@types+qs@6.9.7/node_modules/@types/qs/index.d.ts","../../../../node_modules/.pnpm/@types+react-dom@17.0.9/node_modules/@types/react-dom/index.d.ts","../../../../node_modules/.pnpm/@types+react-leaflet@2.8.2/node_modules/@types/react-leaflet/index.d.ts","../../../../node_modules/.pnpm/@types+react-select@4.0.17/node_modules/@types/react-select/src/diacritics.d.ts","../../../../node_modules/.pnpm/@types+react-select@4.0.17/node_modules/@types/react-select/src/filters.d.ts","../../../../node_modules/.pnpm/@types+react-select@4.0.17/node_modules/@types/react-select/src/accessibility/index.d.ts","../../../../node_modules/.pnpm/@types+react-select@4.0.17/node_modules/@types/react-select/src/types.d.ts","../../../../node_modules/.pnpm/@types+react-select@4.0.17/node_modules/@types/react-select/src/utils.d.ts","../../../../node_modules/.pnpm/@types+react-select@4.0.17/node_modules/@types/react-select/src/builtins.d.ts","../../../../node_modules/.pnpm/@emotion+utils@1.0.0/node_modules/@emotion/utils/types/index.d.ts","../../../../node_modules/.pnpm/csstype@3.0.9/node_modules/csstype/index.d.ts","../../../../node_modules/.pnpm/@emotion+serialize@1.0.2/node_modules/@emotion/serialize/types/index.d.ts","../../../../node_modules/.pnpm/@types+react-select@4.0.17/node_modules/@types/react-select/src/theme.d.ts","../../../../node_modules/.pnpm/@types+react-select@4.0.17/node_modules/@types/react-select/src/components/containers.d.ts","../../../../node_modules/.pnpm/@types+react-select@4.0.17/node_modules/@types/react-select/src/components/indicators.d.ts","../../../../node_modules/.pnpm/@types+react-select@4.0.17/node_modules/@types/react-select/src/components/Control.d.ts","../../../../node_modules/.pnpm/@types+react-select@4.0.17/node_modules/@types/react-select/src/components/Group.d.ts","../../../../node_modules/.pnpm/@types+react-select@4.0.17/node_modules/@types/react-select/src/components/Input.d.ts","../../../../node_modules/.pnpm/@types+react-select@4.0.17/node_modules/@types/react-select/src/components/Menu.d.ts","../../../../node_modules/.pnpm/@types+react-select@4.0.17/node_modules/@types/react-select/src/components/MultiValue.d.ts","../../../../node_modules/.pnpm/@types+react-select@4.0.17/node_modules/@types/react-select/src/components/Option.d.ts","../../../../node_modules/.pnpm/@types+react-select@4.0.17/node_modules/@types/react-select/src/components/Placeholder.d.ts","../../../../node_modules/.pnpm/@types+react-select@4.0.17/node_modules/@types/react-select/src/components/SingleValue.d.ts","../../../../node_modules/.pnpm/@types+react-select@4.0.17/node_modules/@types/react-select/src/components/index.d.ts","../../../../node_modules/.pnpm/@types+react-select@4.0.17/node_modules/@types/react-select/src/styles.d.ts","../../../../node_modules/.pnpm/@types+react-select@4.0.17/node_modules/@types/react-select/src/Select.d.ts","../../../../node_modules/.pnpm/@types+react-select@4.0.17/node_modules/@types/react-select/src/stateManager.d.ts","../../../../node_modules/.pnpm/@types+react-select@4.0.17/node_modules/@types/react-select/src/NonceProvider.d.ts","../../../../node_modules/.pnpm/@types+react-select@4.0.17/node_modules/@types/react-select/index.d.ts","../../../../node_modules/.pnpm/@types+react-syntax-highlighter@11.0.5/node_modules/@types/react-syntax-highlighter/index.d.ts","../../../../node_modules/.pnpm/@types+react-test-renderer@17.0.1/node_modules/@types/react-test-renderer/index.d.ts","../../../../node_modules/.pnpm/@types+react-transition-group@4.4.3/node_modules/@types/react-transition-group/Transition.d.ts","../../../../node_modules/.pnpm/@types+react-transition-group@4.4.3/node_modules/@types/react-transition-group/CSSTransition.d.ts","../../../../node_modules/.pnpm/@types+react-transition-group@4.4.3/node_modules/@types/react-transition-group/TransitionGroup.d.ts","../../../../node_modules/.pnpm/@types+react-transition-group@4.4.3/node_modules/@types/react-transition-group/SwitchTransition.d.ts","../../../../node_modules/.pnpm/@types+react-transition-group@4.4.3/node_modules/@types/react-transition-group/config.d.ts","../../../../node_modules/.pnpm/@types+react-transition-group@4.4.3/node_modules/@types/react-transition-group/index.d.ts","../../../../node_modules/.pnpm/@types+react-window@1.8.5/node_modules/@types/react-window/index.d.ts","../../../../node_modules/.pnpm/@types+scheduler@0.16.2/node_modules/@types/scheduler/index.d.ts","../../../../node_modules/.pnpm/@types+source-list-map@0.1.2/node_modules/@types/source-list-map/index.d.ts","../../../../node_modules/.pnpm/@types+stack-utils@2.0.1/node_modules/@types/stack-utils/index.d.ts","../../../../node_modules/.pnpm/@types+tapable@1.0.8/node_modules/@types/tapable/index.d.ts","../../../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/source-map.d.ts","../../../../node_modules/.pnpm/@types+uglify-js@3.13.1/node_modules/@types/uglify-js/index.d.ts","../../../../node_modules/.pnpm/@types+uuid@8.3.1/node_modules/@types/uuid/index.d.ts","../../../../node_modules/.pnpm/anymatch@3.1.2/node_modules/anymatch/index.d.ts","../../../../node_modules/.pnpm/source-map@0.7.3/node_modules/source-map/source-map.d.ts","../../../../node_modules/.pnpm/@types+webpack-sources@3.2.0/node_modules/@types/webpack-sources/lib/Source.d.ts","../../../../node_modules/.pnpm/@types+webpack-sources@3.2.0/node_modules/@types/webpack-sources/lib/CompatSource.d.ts","../../../../node_modules/.pnpm/@types+webpack-sources@3.2.0/node_modules/@types/webpack-sources/lib/ConcatSource.d.ts","../../../../node_modules/.pnpm/@types+webpack-sources@3.2.0/node_modules/@types/webpack-sources/lib/OriginalSource.d.ts","../../../../node_modules/.pnpm/@types+webpack-sources@3.2.0/node_modules/@types/webpack-sources/lib/PrefixSource.d.ts","../../../../node_modules/.pnpm/@types+webpack-sources@3.2.0/node_modules/@types/webpack-sources/lib/RawSource.d.ts","../../../../node_modules/.pnpm/@types+webpack-sources@3.2.0/node_modules/@types/webpack-sources/lib/ReplaceSource.d.ts","../../../../node_modules/.pnpm/@types+webpack-sources@3.2.0/node_modules/@types/webpack-sources/lib/SizeOnlySource.d.ts","../../../../node_modules/.pnpm/@types+webpack-sources@3.2.0/node_modules/@types/webpack-sources/lib/SourceMapSource.d.ts","../../../../node_modules/.pnpm/@types+webpack-sources@3.2.0/node_modules/@types/webpack-sources/lib/index.d.ts","../../../../node_modules/.pnpm/@types+webpack-sources@3.2.0/node_modules/@types/webpack-sources/lib/CachedSource.d.ts","../../../../node_modules/.pnpm/@types+webpack-sources@3.2.0/node_modules/@types/webpack-sources/index.d.ts","../../../../node_modules/.pnpm/@types+webpack@4.41.31/node_modules/@types/webpack/index.d.ts","../../../../node_modules/.pnpm/@types+webpack-env@1.16.3/node_modules/@types/webpack-env/index.d.ts","../../../../node_modules/.pnpm/@types+ws@8.2.0/node_modules/@types/ws/index.d.ts","../../../../node_modules/.pnpm/@types+yargs-parser@20.2.1/node_modules/@types/yargs-parser/index.d.ts","../../../../node_modules/.pnpm/@types+yargs@16.0.4/node_modules/@types/yargs/index.d.ts","../../../../node_modules/.pnpm/@types+yauzl@2.9.2/node_modules/@types/yauzl/index.d.ts"],"fileInfos":[{"version":"ac3a8c4040e183ce38da69d23b96939112457d1936198e6542672b7963cf0fce","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","e6b724280c694a9f588847f754198fb96c43d805f065c3a5b28bbc9594541c84","e21c071ca3e1b4a815d5f04a7475adcaeea5d64367e840dd0154096d705c3940","eb75e89d63b3b72dd9ca8b0cac801cecae5be352307c004adeaa60bc9d6df51f","2cc028cd0bdb35b1b5eb723d84666a255933fffbea607f72cbd0c7c7b4bee144",{"version":"1dad4fe1561d99dfd6709127608b99a76e5c2643626c800434f99c48038567ee","affectsGlobalScope":true},{"version":"a8fe23ae87c3e9d2877032cafeb290f2ebe0c51e216d175a0408b10915ebe9f0","affectsGlobalScope":true},{"version":"cce43d02223f8049864f8568bed322c39424013275cd3bcc3f51492d8b546cb3","affectsGlobalScope":true},{"version":"43fb1d932e4966a39a41b464a12a81899d9ae5f2c829063f5571b6b87e6d2f9c","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"8dff1b4c2df638fcd976cbb0e636f23ab5968e836cd45084cc31d47d1ab19c49","affectsGlobalScope":true},{"version":"2bb4b3927299434052b37851a47bf5c39764f2ba88a888a107b32262e9292b7c","affectsGlobalScope":true},{"version":"810627a82ac06fb5166da5ada4159c4ec11978dfbb0805fe804c86406dab8357","affectsGlobalScope":true},{"version":"62d80405c46c3f4c527ee657ae9d43fda65a0bf582292429aea1e69144a522a6","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"8f4c9f651c8294a2eb1cbd12581fe25bfb901ab1d474bb93cd38c7e2f4be7a30","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"12a310447c5d23c7d0d5ca2af606e3bd08afda69100166730ab92c62999ebb9d","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"df9c8a72ca8b0ed62f5470b41208a0587f0f73f0a7db28e5a1272cf92537518e","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951","affectsGlobalScope":true},{"version":"6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de","affectsGlobalScope":true},{"version":"93544ca2f26a48716c1b6c5091842cad63129daac422dfa4bc52460465f22bb1","affectsGlobalScope":true},{"version":"2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993","affectsGlobalScope":true},{"version":"60761e6ea886034af0f294f025a7199360ce4e2c8ba4ec6408bc049cf9b89799","affectsGlobalScope":true},{"version":"7435b75fdf3509622e79622dbe5091cf4b09688410ee2034e4fc17d0c99d0862","affectsGlobalScope":true},{"version":"e7e8e1d368290e9295ef18ca23f405cf40d5456fa9f20db6373a61ca45f75f40","affectsGlobalScope":true},{"version":"faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e","affectsGlobalScope":true},{"version":"06393d13ea207a1bfe08ec8d7be562549c5e2da8983f2ee074e00002629d1871","affectsGlobalScope":true},{"version":"9f1817f7c3f02f6d56e0f403b927e90bb133f371dcebc36fa7d6d208ef6899da","affectsGlobalScope":true},{"version":"cd6efb9467a8b6338ece2e2855e37765700f2cd061ca54b01b33878cf5c7677e","affectsGlobalScope":true},{"version":"fb4416144c1bf0323ccbc9afb0ab289c07312214e8820ad17d709498c865a3fe","affectsGlobalScope":true},{"version":"5b0ca94ec819d68d33da516306c15297acec88efeb0ae9e2b39f71dbd9685ef7","affectsGlobalScope":true},{"version":"506b80b9951c9381dc5f11897b31fca5e2a65731d96ddefa19687fbc26b23c6e","affectsGlobalScope":true},{"version":"ecf78e637f710f340ec08d5d92b3f31b134a46a4fcf2e758690d8c46ce62cba6","affectsGlobalScope":true},"ea0aa24a32c073b8639aa1f3130ba0add0f0f2f76b314d9ba988a5cb91d7e3c4","f7b46d22a307739c145e5fddf537818038fdfffd580d79ed717f4d4d37249380","f5a8b384f182b3851cec3596ccc96cb7464f8d3469f48c74bf2befb782a19de5",{"version":"414bfceec07e8d48af9dfdac2608a905ddcd1bfd44233907c218de7d4b48a1f1","affectsGlobalScope":true},"af7fd2870746deed40e130fc0a3966de74e8f52a97ec114d0fbb35876ab05ca9","a9c21d8c1022cf7c134e33b95bd38d792b1353749e4312b8bf184baf1c6e6186","a2d99deb45290e2ad3be8e8db687f498eaa5f857ddc0f081045911d2408d6f65","2c4b09e2886389ac8a6fb4a763de72b30fd22b29ad194bd7a7b966f409e2d20c","f46736b4c4956a380050bbe5fc4dc914bfc70e7561cd6a6889d0854bbad6c053","cfb7cbd7db2fb7f997b2cf652191042e72e322b9c04c161cfd8b74f759ab6ab5","09128331d23e062378d0354e5b9cf8da6ff27dd61d1942966d730b1f22e80e7f","b55cca46fb09eaa6a9a211b7bbe8da422a85371ba823a20d5b75ce47159b15be","867982da569cd55c28d3c2178a67e32d2ad58002b815f623a3049aa39a3a6c5c","da33c798c79471b84e7325268e2b07d5659dab29e44e222cec3a4261d75c11a8","457190a697618a8153922ff3142e8a306a6db160b92acee3de08206a4b3659f5","4627365e709c15268839086a5bfdfb320a0188831900b501d116ab041ea7e31d","81d8157c53cd3457cefeee525e509da21a28e61e131d6c23cdb99570d4f171c0","7327aedbd450b22a519aff0b7e4f93553463b578136415764de7727ebddf2d44","cdfa71e29fc4507f0beabef37debe8e361ac525d5b22b0c02588855dea59a948","a24a9885385ca27603b8bdf0f7b19ea2f045cb7e38a85458a7c7908c0cd9b111","bd48adca38f6d32cec918e4dffe5e5b4a71cfe27dd2e26fb5dd07b23fd7ed1f7","795a8d3c1116f076ad63ca53a0e9cc9e37e9a8b3fa87078fdc9cead9819aa9c2","cbc10012d95a4d49ad93e7a8f99749a4861080bc5e8e5ac3b5771eee66e4827f","d1c97f31e1d15d00eb424d8328cef49991ef84cc1415e714bc13c5432a9f2075","6901ceca3adc070f8e77e6e6eff53f44aed701cc191faa75bcf821e8bb6c03d6","d71ec1da745c53611f1b05cd8041e5f3d54764bf6dcecf97b2b2b38438540873","6fd0fb51989798e07e6c10b02d0a72fa3145856d3f38ef8bd193a104c534c9f4","4e7afa7c39db022e830595e3651298ab1971a1495c5ea18b84e6eb6410fe0f6f","20af5c9122b470fb2705234817bfc6f7810fcaf563efed8ad7c4803a42ca8a3d","2d6b75242f3e60cbe3976167258cc323e0d1e39353f870c4037b35d075a3a75f","f82348f8ac4f637d6ad76ef5d45577ccc0c59fbd25d8c44d55349a71a90e195a","8dfed5c91ad36e69e6da6b7e49be929d4e19666db2b651aa839c485170a2902c","4aaf84a5ac87bad3211f041fab85de5cc42e5954c3ed56842faf6f08167e6202","93de1c6dab503f053efe8d304cb522bb3a89feab8c98f307a674a4fae04773e9","3b043cf9a81854a72963fdb57d1884fc4da1cf5be69b5e0a4c5b751e58cb6d88","d0b0a00cf31968a33baeaadf974ce4e5e7edf58cea5288765293f41ba5e72b3a","5ee005d57eb5b0e887f8451463ac412dc22e6868534f51f061166311f6c8baf5",{"version":"c8747693e5872ad5ef3aa016731a06915e1c34dae987829d9aa5bd40c7a2c54b","affectsGlobalScope":true},{"version":"f4c0db3a49cea9babd5d224ba14243a6a6119bf65a65198994033aaea3a60a71","affectsGlobalScope":true},"dc688638e386342faae164e68ac0205274b6731e70ac1a45921f3ce3aa083795","d22e870fef25a052477d24f34356470262881420c8b058c89d86392de6502c42","f0cb4b3ab88193e3e51e9e2622e4c375955003f1f81239d72c5b7a95415dad3e","92450d617e92f96354d281c8ed5613fd16cacea79eb60b1e9736494b3c057e69","8a9086357fe289efb682dc925358f30b6312c7219a5ca92212857a0a79612012","92bc42ed0e2d41559513fd457ee30d834c2f0fedb9ed5004c029cbf0ad2f8bd9","117ffeecf6c55e25b6446f449ad079029b5e7317399b0a693858faaaea5ca73e","8dc552d17d8515805274740c4902367436a73295c4109bc29f897f35b0604da7","8c2e6e491e1a08855b8bf70820184ff66ae0d43f7cf0311fc680e6d860af211c","0d5a2ee1fdfa82740e0103389b9efd6bfe145a20018a2da3c02b89666181f4d9","a69c09dbea52352f479d3e7ac949fde3d17b195abe90b045d619f747b38d6d1a",{"version":"92d63add669d18ebc349efbacd88966d6f2ccdddfb1b880b2db98ae3aa7bf7c4","affectsGlobalScope":true},"ccc94049a9841fe47abe5baef6be9a38fc6228807974ae675fb15dc22531b4be",{"version":"9acfe4d1ff027015151ce81d60797b04b52bffe97ad8310bb0ec2e8fd61e1303","affectsGlobalScope":true},"43978f18d1165eea81040bc9bfac1a551717f5cc9bd0f13b31bf490c5fcdc75f","afc6e96061af46bcff47246158caee7e056f5288783f2d83d6858cd25be1c565",{"version":"34f5bcac12b36d70304b73de5f5aab3bb91bd9919f984be80579ebcad03a624e","affectsGlobalScope":true},"82408ed3e959ddc60d3e9904481b5a8dc16469928257af22a3f7d1a3bc7fd8c4","2f520601649a893e6a49a8851ebfcf4be8ce090dc1281c2a08a871cb04e8251f","f50c975ab7b50e25a69e3d8a3773894125b44e9698924105f23b812bf7488baf","2b8c764f856a1dd0a9a2bf23e5efddbff157de8138b0754010be561ae5fcaa90","ad4b60488fb1e562bf375dac9299815f7028bf667d9b5887b2d01d501b7d1ddd","246341c3a7a2638cf830d690e69de1e6085a102c6a30596435b050e6ac86c11a","6972fca26f6e9bd56197568d4379f99071a90766e06b4fcb5920a0130a9202be",{"version":"4a2628e95962c8ab756121faa3ac2ed348112ff7a87b5c286dd2cc3326546b4c","affectsGlobalScope":true},"aa8fe22e10f78a67b2ffbcc614b45fe258ff9e71d53ddb56e75fa7883c530270","a049a59a02009fc023684fcfaf0ac526fe36c35dcc5d2b7d620c1750ba11b083","fa9859478a480a6dfe625d204d5a3a38810b60933ac2b36ba77126cace1d44d3","b287b810b5035d5685f1df6e1e418f1ca452a3ed4f59fd5cc081dbf2045f0d9b","4b9a003b5c556c96784132945bb41c655ea11273b1917f5c8d0c154dd5fd20dd","a458dc78104cc80048ac24fdc02fe6dce254838094c2f25641b3f954d9721241",{"version":"e8b18c6385ff784228a6f369694fcf1a6b475355ba89090a88de13587a9391d5","affectsGlobalScope":true},"f3e8bcce378a26bc672fce0ec05affabbbbfa18493b76f24c39136dea87100d0","abc1c425b2ad6720433f40f1877abfa4223f0f3dd486c9c28c492179ca183cb6","cd4854d38f4eb5592afd98ab95ca17389a7dfe38013d9079e802d739bdbcc939","94eed4cc2f5f658d5e229ff1ccd38860bddf4233e347bf78edd2154dee1f2b99",{"version":"e51bee3200733b1f58818b5a9ea90fcd61c5b8afa3a0378391991f3696826a65","affectsGlobalScope":true},"9f1069b9e2c051737b1f9b4f1baf50e4a63385a6a89c32235549ae87fc3d5492","ee18f2da7a037c6ceeb112a084e485aead9ea166980bf433474559eac1b46553","e70339a3d63f806c43f24250c42aa0000093923457b0ed7dfc10e0ac910ebca9","0acbf26bf958f9e80c1ffa587b74749d2697b75b484062d36e103c137c562bc3","d7838022c7dab596357a9604b9c6adffe37dc34085ce0779c958ce9545bd7139","1b952304137851e45bc009785de89ada562d9376177c97e37702e39e60c2f1ff",{"version":"806ef4cac3b3d9fa4a48d849c8e084d7c72fcd7b16d76e06049a9ed742ff79c0","affectsGlobalScope":true},"a279435e7813d1f061c0cab6ab77b1b9377e8d96851e5ed4a76a1ce6eb6e628f","c33a6ea7147af60d8e98f1ac127047f4b0d4e2ce28b8f08ff3de07ca7cc00637",{"version":"b42b47e17b8ece2424ae8039feb944c2e3ba4b262986aebd582e51efbdca93dc","affectsGlobalScope":true},"664d8f2d59164f2e08c543981453893bc7e003e4dfd29651ce09db13e9457980","2408611d9b4146e35d1dbd1f443ccd8e187c74614a54b80300728277529dbf11","998a3de5237518c0b3ac00a11b3b4417affb008aa20aedee52f3fdae3cb86151","ad41008ffe077206e1811fc873f4d9005b5fd7f6ab52bb6118fef600815a5cb4","d88ecca73348e7c337541c4b8b60a50aca5e87384f6b8a422fc6603c637e4c21","badae0df9a8016ac36994b0a0e7b82ba6aaa3528e175a8c3cb161e4683eec03e","c3db860bcaaaeb3bbc23f353bbda1f8ab82756c8d5e973bebb3953cb09ea68f2","235a53595bd20b0b0eeb1a29cb2887c67c48375e92f03749b2488fbd46d0b1a0","bc09393cd4cd13f69cf1366d4236fbae5359bb550f0de4e15767e9a91d63dfb1","9c266243b01545e11d2733a55ad02b4c00ecdbda99c561cd1674f96e89cdc958","c71155c05fc76ff948a4759abc1cb9feec036509f500174bc18dad4c7827a60c",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true},"e704d7faa97765900963ac1ef5c675cb4c354f2a7fc9fbc104052e14bd65d614","8841e2aa774b89bd23302dede20663306dc1b9902431ac64b24be8b8d0e3f649","fd326577c62145816fe1acc306c734c2396487f76719d3785d4e825b34540b33","3ebae8c00411116a66fca65b08228ea0cf0b72724701f9b854442100aab55aba","cddf5c26907c0b8378bc05543161c11637b830da9fadf59e02a11e675d11e180","3d2cd8f3047fff04a71e7037a6a4cb9f4accb28dbd8c0d83164d414811025af0","70b34c8420d6226ed565d55f47fe04912d0ca0ad128825c5a06e018a3498db32","de1d6e224048139baf7494237a9231be6bab9e990fb239c7825bfd38b06d8c90","077b139efd1a6318805a8b24f05e7af37946d9bf9426bcb4866b45b61e6aac90","de18acda71730bac52f4b256ce7511bb56cc21f6f114c59c46782eff2f632857","7eb06594824ada538b1d8b48c3925a83e7db792f47a081a62cf3e5c4e23cf0ee","f5638f7c2f12a9a1a57b5c41b3c1ea7db3876c003bab68e6a57afd6bcc169af0","15a58e61533036fb08dfd567fa7b1f799acdedf0cacf5cbc93bbed0f0520e87f","f3e604694b624fa3f83f6684185452992088f5efb2cf136b62474aa106d6f1b6","fc60dd4cc43dfcc885eb2928d7464a32c16b7f1ea89e4d0f02937c18b0a67737","675e702f2032766a91eeadee64f51014c64688525da99dccd8178f0c599f13a8","378df8bbbb9e3f6fca05d58f644aab538e1062eab5e778fb0b83d41125df246d","d88a479cccf787b4aa82362150fbeba5211a32dbfafa7b92ba6995ecaf9a1a89","187119ff4f9553676a884e296089e131e8cc01691c546273b1d0089c3533ce42","c24ad9be9adf28f0927e3d9d9e9cec1c677022356f241ccbbfb97bfe8fb3d1a1","0ec0998e2d085e8ea54266f547976ae152c9dd6cdb9ac4d8a520a230f5ebae84","9364c7566b0be2f7b70ff5285eb34686f83ccb01bda529b82d23b2a844653bfb","00baffbe8a2f2e4875367479489b5d43b5fc1429ecb4a4cc98cfc3009095f52a","82251920b05f30981c9a4109cb5f3169dce4b477effc845c6d781044a30e7672","3c92b6dfd43cc1c2485d9eba5ff0b74a19bb8725b692773ef1d66dac48cda4bd","3e59f00ab03c33717b3130066d4debb272da90eeded4935ff0604c2bc25a5cae","9fa6b83a35e897f340858995ca5d77e901d89fd18644cd4c9e8a4afe0b2e6363",{"version":"0714e2046df66c0e93c3330d30dbc0565b3e8cd3ee302cf99e4ede6220e5fec8","affectsGlobalScope":true},"2a2e2c6463bcf3c59f31bc9ab4b6ef963bbf7dffb049cd017e2c1834e3adca63","be27a64e821a3e5af838650e4aa25805c60f057d0c37a9762c378d19d364b3e6","736097ddbb2903bef918bb3b5811ef1c9c5656f2a73bd39b22a91b9cc2525e50","208bb742e0f201470da121bc73847c74b62cff4172f38ae5949ae77d6c9c6b71","062bd2910098fc059ba93e347649b3e126c555f7b144033d21d3f8ef63d3e39b","6fa0008bf91a4cc9c8963bace4bba0bd6865cbfa29c3e3ccc461155660fb113a","fda7ad096a1619fbae01b3d869cc82e29116f22be50133ac8fb08cee21279acd","9751247ee3bbcf1c63592f0f4dafb44559680b2b3e5736b7f0578c6a737d74c8","2b8264b2fefd7367e0f20e2c04eed5d3038831fe00f5efbc110ff0131aab899b","c555dd691dd05955e99cd93dd99c685a65e5287813ccb5e6bfde951183248e26","f60e3e3060207ac982da13363181fd7ee4beecc19a7c569f0d6bb034331066c2","17230b34bb564a3a2e36f9d3985372ccab4ad1722df2c43f7c5c2b553f68e5db","87ed0f84f0691d5c724b23159db96342e6b04ac69201b02c65936f4281ce1fbe","13868c5792808236b17dfe2803eafce911ea4d09d3b2fda95391891a494f988f","0dfe35191a04e8f9dc7caeb9f52f2ee07402736563d12cbccd15fb5f31ac877f","fa5c2d3fcd8e227e180815df0a0903ed4b116400452af8a75ac5b68e5e1de9da","c0a3ea3aee13c4946a6aefce3a6ab9292a40a29f6622cde0fda0b1067a1a1f5f","ba601641fac98c229ccd4a303f747de376d761babb33229bb7153bed9356c9cc","b4dfafe583b829a382edccbe32303535d0785f0c02ba7f04418e2a81de97af8a","1a37d640c94c0215e62511590bac215dd0b3bfcc287a567fc5fe87ab10894754","9a35088a2d8bccfe3d6b45ca09860cfbdfdb687897ed4157aaf46dde1e6663ae","257e3c38123565a60e14f3e0b3e04ab038813b754af1d20e151e45b13ebe1d0a","04a2120c1e61edf6edb4fcc7928de5a1c46ed57c8d8ff7055956bb11532884bc","50d9ad258fb5acc22a5bccc3fb67933646e7380b1bd9f0958ab5d07392e23729","b0e6af50e231dad4b89b147221c2dc5b46a00b72a616d525222bea9a40f8dd30","39c67c5e8a96d9eb21457b76db4718c94832fd5e225895561fe680318c940b69","4b46f4712ae966996b2cc81949d482063887c55478706e25d942482a44b99b71","5b1d4ebd62d975c7d3826202f8fac290bac0bae6e04d9e84d1707d7047e108df","93b24ca76698e62732d72800da132367639a4426363c821338bbbd7cf6b64443","66130caa4fad97fed286977c2f3e0025f931c39d3b90b2b79f219a31f8633ee7","bcc8b5e4ac6f744309cf0ba8e7d02ae5cfa4a4a16226492fae8b303aeee40779","501aeb0836814c60b5ef07fec594a62695955520379b2414eccb71927162c2a4","4d11c42bc493653fd9b961d152fb8caaa5e3d77afe757e4b6a8e5d330ffe1ad1","baef53b64b0b38975898aaebe8aed128853902da58f053f6665c1405816bcb1d","fd97421592b5779a6439056332fa4b5cd7f215f2477aa1774e795255acd37425","479e4184e501e4bca26b45c3e35f46a2e5d26c706d01f429fd0be086ac56e389","4596aabfb896e0616866f65b2ff496e2915f2b43dd93e737a5cb33d32221b4d1","1ffa82f37feb59162e758d67b9791f79bbd0a1c08398572237ae172529913529","dc1d6f13e95814153c185f7ce693a481235e01b3c3d780581a10b4e9f4066224","75a8f210ee714a42f836128efb60fae474fc7fd08220110cc80e91fd19b1ebc3","5c49ebbdfee00bc32d3f854083eb05bba9614ae84d3465e1974a16a57df4ae44","a274c6c7f66ac24be1e9c37794ee15e99b4e44468585e1373c894997e1fe779d","30791abf180eb09e444904db48cfa57ead92bccf71e29efa7bf1ed67b99db365","2a65cc116bee5e7560c46053653ec36c1a5facb0c232ba212ab052d93797bc6a","f195abfcd86541732f7ce974d22b088ca23e738afc3ee37f1cb859cf719eb621","9cabfd3daa7fbc9a3958d18a09558d402f411dab27f5edabc06e7b9261aaba1e",{"version":"cffd3848b7af4922d70028c805b7df5e8f0eac4a8d2410b0f55b47ca62c6c3a8","affectsGlobalScope":true},"60aaac5fb1858fbd4c4eb40e01706eb227eed9eca5c665564bd146971280dbd3","30688eab034d1aa3bbe4d8f2c7f462ddaec9f30f1a38a306a4728a9a06a58b11","e03334588c63840b7054accd0b90f29c5890db6a6555ac0869a78a23297f1396","42287355b5372067743496816f5dfaf877fad5ce60645209b91db6aee8de898f","c220410b8e956fa157ce4e5e6ac871f0f433aa120c334d906ff1f5e2c7369e95","960a68ced7820108787135bdae5265d2cc4b511b7dcfd5b8f213432a8483daf1","ed3b711f533ddb3a5451f4c4bb0df3a0b95e9d0433b3b7834644dd1718d06d31","f51c2abd01bb55990a6c5758c8ec34ea7802952c40c30c3941c75eea15539842","74b0245c42990ed8a849df955db3f4362c81b13f799ebc981b7bec2d5b414a57","67fc055eb86a0632e2e072838f889ffe1754083cb13c8c80a06a7d895d877aae","b0d10e46cfe3f6c476b69af02eaa38e4ccc7430221ce3109ae84bb9fb8282298","3833c70307dc3d2b46cb6f2a8b6a90e4d7e7367a21ab18c481d7de0909a43e67","2887592574fcdfd087647c539dcb0fbe5af2521270dad4a37f9d17c16190d579","9d74c7330800b325bb19cc8c1a153a612c080a60094e1ab6cfb6e39cf1b88c36","fab58e600970e66547644a44bc9918e3223aa2cbd9e8763cec004b2cfb48827e","4fb0b7d532aa6fb850b6cd2f1ee4f00802d877b5c66a51903bc1fb0624126349","b90c59ac4682368a01c83881b814738eb151de8a58f52eb7edadea2bcffb11b9","8560a87b2e9f8e2c3808c8f6172c9b7eb6c9b08cb9f937db71c285ecf292c81d","ffe3931ff864f28d80ae2f33bd11123ad3d7bad9896b910a1e61504cc093e1f5","083c1bd82f8dc3a1ed6fc9e8eaddf141f7c05df418eca386598821e045253af9","274ebe605bd7f71ce161f9f5328febc7d547a2929f803f04b44ec4a7d8729517","6ca0207e70d985a24396583f55836b10dc181063ab6069733561bfde404d1bad","5908142efeaab38ffdf43927ee0af681ae77e0d7672b956dfb8b6c705dbfe106","f772b188b943549b5c5eb803133314b8aa7689eced80eed0b70e2f30ca07ab9c","0026b816ef05cfbf290e8585820eef0f13250438669107dfc44482bac007b14f","05d64cc1118031b29786632a9a0f6d7cf1dcacb303f27023a466cf3cdc860538","e0fff9119e1a5d2fdd46345734126cd6cb99c2d98a9debf0257047fe3937cc3f","d84398556ba4595ee6be554671da142cfe964cbdebb2f0c517a10f76f2b016c0","e275297155ec3251200abbb334c7f5641fecc68b2a9573e40eed50dff7584762","cd6a7c1c2a6461c6868601ca2144a41f8ee6d4a85d4b4cf1deb651e6c2ebc9e5",{"version":"3a1e422f919c70fca66e94dc641ad8d9732b3d2533ac047b8a9aaca9eea3aa10","affectsGlobalScope":true},"d7a041dfebb4e5ab34e9a6771436bd96e9ad7c42728f89a87a0d77dcab766f56","f7e133b20ee2669b6c0e5d7f0cd510868c57cd64b283e68c7f598e30ce9d76d2","6ba73232c9d3267ca36ddb83e335d474d2c0e167481e3dec416c782894e11438","b2d70a269840a9528db473ac7565442434333a05c1f66801a7a672e82beb903e"],"options":{"allowSyntheticDefaultImports":true,"composite":true,"declaration":true,"declarationMap":true,"emitDeclarationOnly":true,"experimentalDecorators":true,"jsx":4,"module":99,"noEmitOnError":true,"noImplicitOverride":true,"outDir":"./","skipLibCheck":true,"sourceMap":true,"strict":true,"target":6,"useDefineForClassFields":true},"fileIdsList":[[77,138],[138],[138,199,200],[77,78,79,80,81,138],[77,79,138],[84,138],[86,138],[88,138],[89,90,138],[89,138],[110,111,138,145,146],[111,138,145],[138,149],[138,154],[138,155],[94,138],[138,160,162,163,164,165,166,167,168,169,170,171,172],[138,160,161,163,164,165,166,167,168,169,170,171,172],[138,161,162,163,164,165,166,167,168,169,170,171,172],[138,160,161,162,164,165,166,167,168,169,170,171,172],[138,160,161,162,163,165,166,167,168,169,170,171,172],[138,160,161,162,163,164,166,167,168,169,170,171,172],[138,160,161,162,163,164,165,167,168,169,170,171,172],[138,160,161,162,163,164,165,166,168,169,170,171,172],[138,160,161,162,163,164,165,166,167,169,170,171,172],[138,160,161,162,163,164,165,166,167,168,170,171,172],[138,160,161,162,163,164,165,166,167,168,169,171,172],[138,160,161,162,163,164,165,166,167,168,169,170,172],[138,160,161,162,163,164,165,166,167,168,169,170,171],[113,137,138,145,175,176],[95,138],[98,138],[99,104,138],[100,110,111,118,127,137,138],[100,101,110,118,138],[102,138],[103,104,111,119,138],[104,127,134,138],[105,107,110,118,138],[106,138],[107,108,138],[109,110,138],[110,138],[110,111,112,127,137,138],[110,111,112,127,138],[113,118,127,137,138],[110,111,113,114,118,127,134,137,138],[113,115,127,134,137,138],[95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144],[110,116,138],[117,137,138],[107,110,118,127,138],[119,138],[120,138],[98,121,138],[122,136,138,142],[123,138],[124,138],[110,125,138],[125,126,138,140],[110,127,128,129,138],[127,129,138],[127,128,138],[130,138],[131,138],[110,132,133,138],[132,133,138],[104,118,134,138],[135,138],[118,136,138],[99,113,124,137,138],[104,138],[127,138,139],[138,140],[138,141],[99,104,110,112,121,127,137,138,140,142],[127,138,143],[110,127,134,138,145,183,184,187,188],[50,138],[50,138,159],[138,194,196,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217],[50,138,194,195,196,197,198,202,213,214],[50,138,196],[50,138,196,201,202],[50,138,191,196,197,201,202],[50,138,196,201],[50,138,196,201,202,203],[50,138,196,203,204,205,206,207,208,209,210,211,212],[138,193],[50,138,196,215],[138,196,201,203,204,205,206,207,208,209,210,211,212],[138,196],[50,138,215],[50,138,219],[50,138,221],[138,221,222,223,224,225],[46,47,48,49,138],[138,232],[138,145,237,238,239,240,241,242,243,244,245,246,247],[138,236,237,246],[138,237,246],[138,229,236,237,246],[138,237],[104,138,236,246],[138,236,237,238,239,240,241,242,243,244,245,247],[104,138,145,231,232,233,235,248],[110,113,115,118,127,134,137,138,143,145],[138,252],[110,127,138,145],[113,127,138,145],[138,145,184,185,186],[138,145],[127,138,145,184],[51,67,138],[50,51,62,67,68,69,71,73,74,138],[51,138],[51,70,138],[50,51,138],[50,51,70,138],[51,72,138],[51,62,67,71,75,138],[50,51,61,62,63,138],[50,51,61,138],[51,61,63,64,65,66,138],[51,52,53,54,55,56,57,58,59,60,138]],"referencedMap":[[79,1],[77,2],[201,3],[199,2],[82,4],[78,1],[80,5],[81,1],[83,2],[85,6],[84,2],[87,7],[86,2],[89,8],[91,9],[90,10],[88,2],[92,2],[93,2],[94,2],[147,11],[148,12],[150,13],[151,2],[152,2],[153,2],[154,2],[155,14],[156,15],[157,2],[158,2],[159,16],[161,17],[162,18],[160,19],[163,20],[164,21],[165,22],[166,23],[167,24],[168,25],[169,26],[170,27],[171,28],[172,29],[173,13],[174,2],[146,2],[176,2],[177,30],[95,31],[96,31],[98,32],[99,33],[100,34],[101,35],[102,36],[103,37],[104,38],[105,39],[106,40],[107,41],[108,41],[109,42],[110,43],[111,44],[112,45],[97,2],[144,2],[113,46],[114,47],[115,48],[145,49],[116,50],[117,51],[118,52],[119,53],[120,54],[121,55],[122,56],[123,57],[124,58],[125,59],[126,60],[127,61],[129,62],[128,63],[130,64],[131,65],[132,66],[133,67],[134,68],[135,69],[136,70],[137,71],[138,72],[139,73],[140,74],[141,75],[142,76],[143,77],[178,2],[179,43],[180,2],[181,2],[182,2],[188,78],[189,2],[48,2],[190,2],[191,79],[192,80],[218,81],[217,79],[215,82],[195,2],[198,83],[205,84],[206,84],[207,84],[208,85],[209,84],[210,84],[211,86],[212,87],[203,84],[213,88],[204,84],[193,2],[194,89],[216,90],[214,91],[202,92],[196,93],[197,83],[219,94],[220,79],[222,95],[224,79],[221,79],[223,95],[225,2],[226,96],[227,79],[46,2],[50,97],[51,79],[228,2],[49,2],[229,2],[230,2],[231,2],[233,98],[149,2],[234,2],[250,2],[248,99],[247,100],[238,101],[239,102],[240,102],[241,101],[242,101],[243,101],[244,103],[237,104],[245,100],[246,105],[249,106],[251,107],[252,2],[253,108],[254,109],[235,2],[47,2],[200,2],[175,110],[187,111],[184,112],[186,113],[185,112],[183,2],[232,2],[236,2],[10,2],[11,2],[13,2],[12,2],[2,2],[14,2],[15,2],[16,2],[17,2],[18,2],[19,2],[20,2],[21,2],[3,2],[4,2],[25,2],[22,2],[23,2],[24,2],[26,2],[27,2],[28,2],[5,2],[29,2],[30,2],[31,2],[32,2],[6,2],[33,2],[34,2],[35,2],[36,2],[7,2],[41,2],[37,2],[38,2],[39,2],[40,2],[8,2],[42,2],[43,2],[44,2],[1,2],[9,2],[45,2],[68,114],[75,115],[62,116],[71,117],[70,118],[74,114],[69,116],[72,119],[73,120],[76,121],[64,122],[63,116],[65,123],[66,116],[67,124],[52,116],[53,118],[54,116],[55,116],[56,116],[57,118],[58,118],[59,118],[60,116],[61,125]],"exportedModulesMap":[[79,1],[77,2],[201,3],[199,2],[82,4],[78,1],[80,5],[81,1],[83,2],[85,6],[84,2],[87,7],[86,2],[89,8],[91,9],[90,10],[88,2],[92,2],[93,2],[94,2],[147,11],[148,12],[150,13],[151,2],[152,2],[153,2],[154,2],[155,14],[156,15],[157,2],[158,2],[159,16],[161,17],[162,18],[160,19],[163,20],[164,21],[165,22],[166,23],[167,24],[168,25],[169,26],[170,27],[171,28],[172,29],[173,13],[174,2],[146,2],[176,2],[177,30],[95,31],[96,31],[98,32],[99,33],[100,34],[101,35],[102,36],[103,37],[104,38],[105,39],[106,40],[107,41],[108,41],[109,42],[110,43],[111,44],[112,45],[97,2],[144,2],[113,46],[114,47],[115,48],[145,49],[116,50],[117,51],[118,52],[119,53],[120,54],[121,55],[122,56],[123,57],[124,58],[125,59],[126,60],[127,61],[129,62],[128,63],[130,64],[131,65],[132,66],[133,67],[134,68],[135,69],[136,70],[137,71],[138,72],[139,73],[140,74],[141,75],[142,76],[143,77],[178,2],[179,43],[180,2],[181,2],[182,2],[188,78],[189,2],[48,2],[190,2],[191,79],[192,80],[218,81],[217,79],[215,82],[195,2],[198,83],[205,84],[206,84],[207,84],[208,85],[209,84],[210,84],[211,86],[212,87],[203,84],[213,88],[204,84],[193,2],[194,89],[216,90],[214,91],[202,92],[196,93],[197,83],[219,94],[220,79],[222,95],[224,79],[221,79],[223,95],[225,2],[226,96],[227,79],[46,2],[50,97],[51,79],[228,2],[49,2],[229,2],[230,2],[231,2],[233,98],[149,2],[234,2],[250,2],[248,99],[247,100],[238,101],[239,102],[240,102],[241,101],[242,101],[243,101],[244,103],[237,104],[245,100],[246,105],[249,106],[251,107],[252,2],[253,108],[254,109],[235,2],[47,2],[200,2],[175,110],[187,111],[184,112],[186,113],[185,112],[183,2],[232,2],[236,2],[10,2],[11,2],[13,2],[12,2],[2,2],[14,2],[15,2],[16,2],[17,2],[18,2],[19,2],[20,2],[21,2],[3,2],[4,2],[25,2],[22,2],[23,2],[24,2],[26,2],[27,2],[28,2],[5,2],[29,2],[30,2],[31,2],[32,2],[6,2],[33,2],[34,2],[35,2],[36,2],[7,2],[41,2],[37,2],[38,2],[39,2],[40,2],[8,2],[42,2],[43,2],[44,2],[1,2],[9,2],[45,2],[68,114],[75,115],[62,116],[71,117],[70,118],[74,114],[69,116],[72,119],[73,120],[76,121],[64,122],[63,116],[65,123],[66,116],[67,124],[52,116],[53,118],[54,116],[55,116],[56,116],[57,118],[58,118],[59,118],[60,116],[61,125]],"semanticDiagnosticsPerFile":[79,77,201,199,82,78,80,81,83,85,84,87,86,89,91,90,88,92,93,94,147,148,150,151,152,153,154,155,156,157,158,159,161,162,160,163,164,165,166,167,168,169,170,171,172,173,174,146,176,177,95,96,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,97,144,113,114,115,145,116,117,118,119,120,121,122,123,124,125,126,127,129,128,130,131,132,133,134,135,136,137,138,139,140,141,142,143,178,179,180,181,182,188,189,48,190,191,192,218,217,215,195,198,205,206,207,208,209,210,211,212,203,213,204,193,194,216,214,202,196,197,219,220,222,224,221,223,225,226,227,46,50,51,228,49,229,230,231,233,149,234,250,248,247,238,239,240,241,242,243,244,237,245,246,249,251,252,253,254,235,47,200,175,187,184,186,185,183,232,236,10,11,13,12,2,14,15,16,17,18,19,20,21,3,4,25,22,23,24,26,27,28,5,29,30,31,32,6,33,34,35,36,7,41,37,38,39,40,8,42,43,44,1,9,45,68,75,62,71,70,74,69,72,73,76,64,63,65,66,67,52,53,54,55,56,57,58,59,60,61]},"version":"4.3.5"}
|
|
1
|
+
{"program":{"fileNames":["../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.es5.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.es2015.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.es2016.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.es2017.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.es2018.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.es2019.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.es2020.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.es2021.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.esnext.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.dom.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.dom.iterable.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.es2015.core.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.es2017.object.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.es2017.string.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.es2019.array.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.es2019.object.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.es2019.string.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.es2020.string.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.es2021.string.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../../node_modules/.pnpm/typescript@4.3.5/node_modules/typescript/lib/lib.esnext.intl.d.ts","../../../../node_modules/.pnpm/@types+react@17.0.30/node_modules/@types/react/global.d.ts","../../../../node_modules/.pnpm/csstype@3.0.11/node_modules/csstype/index.d.ts","../../../../node_modules/.pnpm/@types+prop-types@15.7.4/node_modules/@types/prop-types/index.d.ts","../../../../node_modules/.pnpm/@types+scheduler@0.16.2/node_modules/@types/scheduler/tracing.d.ts","../../../../node_modules/.pnpm/@types+react@17.0.30/node_modules/@types/react/index.d.ts","../../../../node_modules/.pnpm/@types+react@17.0.30/node_modules/@types/react/jsx-runtime.d.ts","../../src/nodeSpecs/types/ChildrenRepresentationReducer.ts","../../src/nodeSpecs/types/ConstrainedLeafRepresentationFactory.ts","../../src/nodeSpecs/types/DeclarationSiteNodeRepresentationFactory.ts","../../src/nodeSpecs/types/RepresentationFactorySite.ts","../../src/nodeSpecs/types/StaticContextFactory.ts","../../src/nodeSpecs/types/SyntheticChildrenFactory.ts","../../src/nodeSpecs/types/UnconstrainedLeafRepresentationFactory.ts","../../src/nodeSpecs/types/UseSiteBranchNodeRepresentationFactory.ts","../../src/nodeSpecs/types/ValidFactoryName.ts","../../src/nodeSpecs/types/index.ts","../../src/ChildrenAnalyzerError.ts","../../src/nodeSpecs/BranchNodeOptions.ts","../../src/nodeSpecs/BranchNode.ts","../../src/nodeSpecs/Leaf.ts","../../src/nodeSpecs/RawNodeRepresentation.ts","../../src/nodeSpecs/index.ts","../../src/BranchNodeList.ts","../../src/assertNever.ts","../../src/ErrorMessageFactory.ts","../../src/ChildrenAnalyzerOptions.ts","../../src/helpers/getErrorMessage.ts","../../src/helpers/index.ts","../../src/LeafList.ts","../../src/helpers/wrapError.ts","../../src/ChildrenAnalyzer.ts","../../src/index.ts","../../../../node_modules/.pnpm/@types+argparse@1.0.38/node_modules/@types/argparse/index.d.ts","../../../../node_modules/.pnpm/@babel+types@7.15.6/node_modules/@babel/types/lib/index.d.ts","../../../../node_modules/.pnpm/@types+babel__generator@7.6.3/node_modules/@types/babel__generator/index.d.ts","../../../../node_modules/.pnpm/@babel+types@7.17.10/node_modules/@babel/types/lib/index.d.ts","../../../../node_modules/.pnpm/@babel+parser@7.15.8/node_modules/@babel/parser/typings/babel-parser.d.ts","../../../../node_modules/.pnpm/@types+babel__template@7.4.1/node_modules/@types/babel__template/index.d.ts","../../../../node_modules/.pnpm/@types+babel__traverse@7.14.2/node_modules/@types/babel__traverse/index.d.ts","../../../../node_modules/.pnpm/@types+babel__core@7.1.16/node_modules/@types/babel__core/index.d.ts","../../../../node_modules/.pnpm/@types+blueimp-md5@2.18.0/node_modules/@types/blueimp-md5/index.d.ts","../../../../node_modules/.pnpm/@types+chai@4.3.0/node_modules/@types/chai/index.d.ts","../../../../node_modules/.pnpm/@types+chai-subset@1.3.3/node_modules/@types/chai-subset/index.d.ts","../../../../node_modules/.pnpm/@types+classnames@2.2.10/node_modules/@types/classnames/types.d.ts","../../../../node_modules/.pnpm/@types+classnames@2.2.10/node_modules/@types/classnames/index.d.ts","../../../../node_modules/.pnpm/@types+cookie@0.4.1/node_modules/@types/cookie/index.d.ts","../../../../node_modules/.pnpm/@types+debounce@1.2.0/node_modules/@types/debounce/index.d.ts","../../../../node_modules/.pnpm/@types+eslint@8.4.2/node_modules/@types/eslint/helpers.d.ts","../../../../node_modules/.pnpm/@types+json-schema@7.0.11/node_modules/@types/json-schema/index.d.ts","../../../../node_modules/.pnpm/@types+estree@0.0.51/node_modules/@types/estree/index.d.ts","../../../../node_modules/.pnpm/@types+eslint@8.4.2/node_modules/@types/eslint/index.d.ts","../../../../node_modules/.pnpm/@types+eslint-scope@3.7.3/node_modules/@types/eslint-scope/index.d.ts","../../../../node_modules/.pnpm/@types+geojson@7946.0.8/node_modules/@types/geojson/index.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/assert.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/assert/strict.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/globals.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/async_hooks.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/buffer.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/child_process.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/cluster.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/console.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/constants.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/crypto.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/dgram.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/diagnostics_channel.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/dns.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/dns/promises.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/domain.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/events.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/fs.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/fs/promises.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/http.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/http2.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/https.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/inspector.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/module.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/net.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/os.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/path.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/perf_hooks.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/process.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/punycode.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/querystring.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/readline.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/repl.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/stream.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/stream/promises.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/stream/consumers.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/stream/web.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/string_decoder.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/timers.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/timers/promises.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/tls.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/trace_events.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/tty.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/url.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/util.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/v8.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/vm.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/wasi.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/worker_threads.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/zlib.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/globals.global.d.ts","../../../../node_modules/.pnpm/@types+node@16.11.1/node_modules/@types/node/index.d.ts","../../../../node_modules/.pnpm/@types+minimatch@3.0.5/node_modules/@types/minimatch/index.d.ts","../../../../node_modules/.pnpm/@types+glob@7.2.0/node_modules/@types/glob/index.d.ts","../../../../node_modules/.pnpm/@types+graceful-fs@4.1.5/node_modules/@types/graceful-fs/index.d.ts","../../../../node_modules/.pnpm/@types+unist@2.0.6/node_modules/@types/unist/index.d.ts","../../../../node_modules/.pnpm/@types+hast@2.3.4/node_modules/@types/hast/index.d.ts","../../../../node_modules/.pnpm/@types+html-minifier-terser@5.1.2/node_modules/@types/html-minifier-terser/index.d.ts","../../../../node_modules/.pnpm/@types+is-function@1.0.1/node_modules/@types/is-function/index.d.ts","../../../../node_modules/.pnpm/@types+is-hotkey@0.1.5/node_modules/@types/is-hotkey/index.d.ts","../../../../node_modules/.pnpm/@types+istanbul-lib-coverage@2.0.3/node_modules/@types/istanbul-lib-coverage/index.d.ts","../../../../node_modules/.pnpm/@types+istanbul-lib-report@3.0.0/node_modules/@types/istanbul-lib-report/index.d.ts","../../../../node_modules/.pnpm/@types+istanbul-reports@3.0.1/node_modules/@types/istanbul-reports/index.d.ts","../../../../node_modules/.pnpm/@types+js-levenshtein@1.1.0/node_modules/@types/js-levenshtein/index.d.ts","../../../../node_modules/.pnpm/@types+leaflet@1.7.5/node_modules/@types/leaflet/index.d.ts","../../../../node_modules/.pnpm/@types+lodash@4.14.175/node_modules/@types/lodash/common/common.d.ts","../../../../node_modules/.pnpm/@types+lodash@4.14.175/node_modules/@types/lodash/common/array.d.ts","../../../../node_modules/.pnpm/@types+lodash@4.14.175/node_modules/@types/lodash/common/collection.d.ts","../../../../node_modules/.pnpm/@types+lodash@4.14.175/node_modules/@types/lodash/common/date.d.ts","../../../../node_modules/.pnpm/@types+lodash@4.14.175/node_modules/@types/lodash/common/function.d.ts","../../../../node_modules/.pnpm/@types+lodash@4.14.175/node_modules/@types/lodash/common/lang.d.ts","../../../../node_modules/.pnpm/@types+lodash@4.14.175/node_modules/@types/lodash/common/math.d.ts","../../../../node_modules/.pnpm/@types+lodash@4.14.175/node_modules/@types/lodash/common/number.d.ts","../../../../node_modules/.pnpm/@types+lodash@4.14.175/node_modules/@types/lodash/common/object.d.ts","../../../../node_modules/.pnpm/@types+lodash@4.14.175/node_modules/@types/lodash/common/seq.d.ts","../../../../node_modules/.pnpm/@types+lodash@4.14.175/node_modules/@types/lodash/common/string.d.ts","../../../../node_modules/.pnpm/@types+lodash@4.14.175/node_modules/@types/lodash/common/util.d.ts","../../../../node_modules/.pnpm/@types+lodash@4.14.175/node_modules/@types/lodash/index.d.ts","../../../../node_modules/.pnpm/@types+mdast@3.0.10/node_modules/@types/mdast/index.d.ts","../../../../node_modules/.pnpm/@types+mime@2.0.3/node_modules/@types/mime/index.d.ts","../../../../node_modules/.pnpm/form-data@3.0.1/node_modules/form-data/index.d.ts","../../../../node_modules/.pnpm/@types+node-fetch@2.6.1/node_modules/@types/node-fetch/externals.d.ts","../../../../node_modules/.pnpm/@types+node-fetch@2.6.1/node_modules/@types/node-fetch/index.d.ts","../../../../node_modules/.pnpm/@types+normalize-package-data@2.4.1/node_modules/@types/normalize-package-data/index.d.ts","../../../../node_modules/.pnpm/@types+npmlog@4.1.3/node_modules/@types/npmlog/index.d.ts","../../../../node_modules/.pnpm/@types+parse-json@4.0.0/node_modules/@types/parse-json/index.d.ts","../../../../node_modules/.pnpm/@types+parse5@5.0.3/node_modules/@types/parse5/index.d.ts","../../../../node_modules/.pnpm/pg-types@2.2.0/node_modules/pg-types/index.d.ts","../../../../node_modules/.pnpm/pg-protocol@1.5.0/node_modules/pg-protocol/dist/messages.d.ts","../../../../node_modules/.pnpm/pg-protocol@1.5.0/node_modules/pg-protocol/dist/serializer.d.ts","../../../../node_modules/.pnpm/pg-protocol@1.5.0/node_modules/pg-protocol/dist/parser.d.ts","../../../../node_modules/.pnpm/pg-protocol@1.5.0/node_modules/pg-protocol/dist/index.d.ts","../../../../node_modules/.pnpm/@types+pg@8.6.5/node_modules/@types/pg/index.d.ts","../../../../node_modules/.pnpm/@types+pretty-hrtime@1.0.1/node_modules/@types/pretty-hrtime/index.d.ts","../../../../node_modules/.pnpm/@types+qs@6.9.7/node_modules/@types/qs/index.d.ts","../../../../node_modules/.pnpm/@types+react-dom@17.0.9/node_modules/@types/react-dom/index.d.ts","../../../../node_modules/.pnpm/@types+react-leaflet@2.8.2/node_modules/@types/react-leaflet/index.d.ts","../../../../node_modules/.pnpm/@types+react-syntax-highlighter@11.0.5/node_modules/@types/react-syntax-highlighter/index.d.ts","../../../../node_modules/.pnpm/@types+react-test-renderer@17.0.1/node_modules/@types/react-test-renderer/index.d.ts","../../../../node_modules/.pnpm/@types+react-transition-group@4.4.3/node_modules/@types/react-transition-group/Transition.d.ts","../../../../node_modules/.pnpm/@types+react-transition-group@4.4.3/node_modules/@types/react-transition-group/CSSTransition.d.ts","../../../../node_modules/.pnpm/@types+react-transition-group@4.4.3/node_modules/@types/react-transition-group/TransitionGroup.d.ts","../../../../node_modules/.pnpm/@types+react-transition-group@4.4.3/node_modules/@types/react-transition-group/SwitchTransition.d.ts","../../../../node_modules/.pnpm/@types+react-transition-group@4.4.3/node_modules/@types/react-transition-group/config.d.ts","../../../../node_modules/.pnpm/@types+react-transition-group@4.4.3/node_modules/@types/react-transition-group/index.d.ts","../../../../node_modules/.pnpm/@types+scheduler@0.16.2/node_modules/@types/scheduler/index.d.ts","../../../../node_modules/.pnpm/@types+source-list-map@0.1.2/node_modules/@types/source-list-map/index.d.ts","../../../../node_modules/.pnpm/@types+stack-utils@2.0.1/node_modules/@types/stack-utils/index.d.ts","../../../../node_modules/.pnpm/@types+tapable@1.0.8/node_modules/@types/tapable/index.d.ts","../../../../node_modules/.pnpm/source-map@0.6.1/node_modules/source-map/source-map.d.ts","../../../../node_modules/.pnpm/@types+uglify-js@3.13.1/node_modules/@types/uglify-js/index.d.ts","../../../../node_modules/.pnpm/@types+uuid@8.3.1/node_modules/@types/uuid/index.d.ts","../../../../node_modules/.pnpm/anymatch@3.1.2/node_modules/anymatch/index.d.ts","../../../../node_modules/.pnpm/source-map@0.7.3/node_modules/source-map/source-map.d.ts","../../../../node_modules/.pnpm/@types+webpack-sources@3.2.0/node_modules/@types/webpack-sources/lib/Source.d.ts","../../../../node_modules/.pnpm/@types+webpack-sources@3.2.0/node_modules/@types/webpack-sources/lib/CompatSource.d.ts","../../../../node_modules/.pnpm/@types+webpack-sources@3.2.0/node_modules/@types/webpack-sources/lib/ConcatSource.d.ts","../../../../node_modules/.pnpm/@types+webpack-sources@3.2.0/node_modules/@types/webpack-sources/lib/OriginalSource.d.ts","../../../../node_modules/.pnpm/@types+webpack-sources@3.2.0/node_modules/@types/webpack-sources/lib/PrefixSource.d.ts","../../../../node_modules/.pnpm/@types+webpack-sources@3.2.0/node_modules/@types/webpack-sources/lib/RawSource.d.ts","../../../../node_modules/.pnpm/@types+webpack-sources@3.2.0/node_modules/@types/webpack-sources/lib/ReplaceSource.d.ts","../../../../node_modules/.pnpm/@types+webpack-sources@3.2.0/node_modules/@types/webpack-sources/lib/SizeOnlySource.d.ts","../../../../node_modules/.pnpm/@types+webpack-sources@3.2.0/node_modules/@types/webpack-sources/lib/SourceMapSource.d.ts","../../../../node_modules/.pnpm/@types+webpack-sources@3.2.0/node_modules/@types/webpack-sources/lib/index.d.ts","../../../../node_modules/.pnpm/@types+webpack-sources@3.2.0/node_modules/@types/webpack-sources/lib/CachedSource.d.ts","../../../../node_modules/.pnpm/@types+webpack-sources@3.2.0/node_modules/@types/webpack-sources/index.d.ts","../../../../node_modules/.pnpm/@types+webpack@4.41.31/node_modules/@types/webpack/index.d.ts","../../../../node_modules/.pnpm/@types+webpack-env@1.16.3/node_modules/@types/webpack-env/index.d.ts","../../../../node_modules/.pnpm/@types+ws@8.2.0/node_modules/@types/ws/index.d.ts","../../../../node_modules/.pnpm/@types+yargs-parser@20.2.1/node_modules/@types/yargs-parser/index.d.ts","../../../../node_modules/.pnpm/@types+yargs@16.0.4/node_modules/@types/yargs/index.d.ts","../../../../node_modules/.pnpm/@types+yauzl@2.9.2/node_modules/@types/yauzl/index.d.ts","../../../../node_modules/.pnpm/@types+node@15.0.2/node_modules/@types/node/index.d.ts"],"fileInfos":[{"version":"ac3a8c4040e183ce38da69d23b96939112457d1936198e6542672b7963cf0fce","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","e6b724280c694a9f588847f754198fb96c43d805f065c3a5b28bbc9594541c84","e21c071ca3e1b4a815d5f04a7475adcaeea5d64367e840dd0154096d705c3940","eb75e89d63b3b72dd9ca8b0cac801cecae5be352307c004adeaa60bc9d6df51f","2cc028cd0bdb35b1b5eb723d84666a255933fffbea607f72cbd0c7c7b4bee144",{"version":"1dad4fe1561d99dfd6709127608b99a76e5c2643626c800434f99c48038567ee","affectsGlobalScope":true},{"version":"a8fe23ae87c3e9d2877032cafeb290f2ebe0c51e216d175a0408b10915ebe9f0","affectsGlobalScope":true},{"version":"cce43d02223f8049864f8568bed322c39424013275cd3bcc3f51492d8b546cb3","affectsGlobalScope":true},{"version":"43fb1d932e4966a39a41b464a12a81899d9ae5f2c829063f5571b6b87e6d2f9c","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"8dff1b4c2df638fcd976cbb0e636f23ab5968e836cd45084cc31d47d1ab19c49","affectsGlobalScope":true},{"version":"2bb4b3927299434052b37851a47bf5c39764f2ba88a888a107b32262e9292b7c","affectsGlobalScope":true},{"version":"810627a82ac06fb5166da5ada4159c4ec11978dfbb0805fe804c86406dab8357","affectsGlobalScope":true},{"version":"62d80405c46c3f4c527ee657ae9d43fda65a0bf582292429aea1e69144a522a6","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"8f4c9f651c8294a2eb1cbd12581fe25bfb901ab1d474bb93cd38c7e2f4be7a30","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"12a310447c5d23c7d0d5ca2af606e3bd08afda69100166730ab92c62999ebb9d","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"df9c8a72ca8b0ed62f5470b41208a0587f0f73f0a7db28e5a1272cf92537518e","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951","affectsGlobalScope":true},{"version":"6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de","affectsGlobalScope":true},{"version":"93544ca2f26a48716c1b6c5091842cad63129daac422dfa4bc52460465f22bb1","affectsGlobalScope":true},{"version":"2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993","affectsGlobalScope":true},{"version":"60761e6ea886034af0f294f025a7199360ce4e2c8ba4ec6408bc049cf9b89799","affectsGlobalScope":true},{"version":"7435b75fdf3509622e79622dbe5091cf4b09688410ee2034e4fc17d0c99d0862","affectsGlobalScope":true},{"version":"e7e8e1d368290e9295ef18ca23f405cf40d5456fa9f20db6373a61ca45f75f40","affectsGlobalScope":true},{"version":"faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e","affectsGlobalScope":true},{"version":"06393d13ea207a1bfe08ec8d7be562549c5e2da8983f2ee074e00002629d1871","affectsGlobalScope":true},{"version":"9f1817f7c3f02f6d56e0f403b927e90bb133f371dcebc36fa7d6d208ef6899da","affectsGlobalScope":true},{"version":"cd6efb9467a8b6338ece2e2855e37765700f2cd061ca54b01b33878cf5c7677e","affectsGlobalScope":true},{"version":"fb4416144c1bf0323ccbc9afb0ab289c07312214e8820ad17d709498c865a3fe","affectsGlobalScope":true},{"version":"5b0ca94ec819d68d33da516306c15297acec88efeb0ae9e2b39f71dbd9685ef7","affectsGlobalScope":true},{"version":"506b80b9951c9381dc5f11897b31fca5e2a65731d96ddefa19687fbc26b23c6e","affectsGlobalScope":true},{"version":"ecf78e637f710f340ec08d5d92b3f31b134a46a4fcf2e758690d8c46ce62cba6","affectsGlobalScope":true},"ea0aa24a32c073b8639aa1f3130ba0add0f0f2f76b314d9ba988a5cb91d7e3c4","f7b46d22a307739c145e5fddf537818038fdfffd580d79ed717f4d4d37249380","f5a8b384f182b3851cec3596ccc96cb7464f8d3469f48c74bf2befb782a19de5",{"version":"414bfceec07e8d48af9dfdac2608a905ddcd1bfd44233907c218de7d4b48a1f1","affectsGlobalScope":true},"af7fd2870746deed40e130fc0a3966de74e8f52a97ec114d0fbb35876ab05ca9","a9c21d8c1022cf7c134e33b95bd38d792b1353749e4312b8bf184baf1c6e6186","a2d99deb45290e2ad3be8e8db687f498eaa5f857ddc0f081045911d2408d6f65","2c4b09e2886389ac8a6fb4a763de72b30fd22b29ad194bd7a7b966f409e2d20c","f46736b4c4956a380050bbe5fc4dc914bfc70e7561cd6a6889d0854bbad6c053","cfb7cbd7db2fb7f997b2cf652191042e72e322b9c04c161cfd8b74f759ab6ab5","09128331d23e062378d0354e5b9cf8da6ff27dd61d1942966d730b1f22e80e7f","b55cca46fb09eaa6a9a211b7bbe8da422a85371ba823a20d5b75ce47159b15be","867982da569cd55c28d3c2178a67e32d2ad58002b815f623a3049aa39a3a6c5c","da33c798c79471b84e7325268e2b07d5659dab29e44e222cec3a4261d75c11a8","457190a697618a8153922ff3142e8a306a6db160b92acee3de08206a4b3659f5","39d498b6d70eec29dc48196d9afc1e1c9cea5b1816f8e00b9bc5063a99658aec","81d8157c53cd3457cefeee525e509da21a28e61e131d6c23cdb99570d4f171c0","7327aedbd450b22a519aff0b7e4f93553463b578136415764de7727ebddf2d44","cdfa71e29fc4507f0beabef37debe8e361ac525d5b22b0c02588855dea59a948","a24a9885385ca27603b8bdf0f7b19ea2f045cb7e38a85458a7c7908c0cd9b111","bd48adca38f6d32cec918e4dffe5e5b4a71cfe27dd2e26fb5dd07b23fd7ed1f7","795a8d3c1116f076ad63ca53a0e9cc9e37e9a8b3fa87078fdc9cead9819aa9c2","cbc10012d95a4d49ad93e7a8f99749a4861080bc5e8e5ac3b5771eee66e4827f","d1c97f31e1d15d00eb424d8328cef49991ef84cc1415e714bc13c5432a9f2075","6901ceca3adc070f8e77e6e6eff53f44aed701cc191faa75bcf821e8bb6c03d6","d71ec1da745c53611f1b05cd8041e5f3d54764bf6dcecf97b2b2b38438540873","6fd0fb51989798e07e6c10b02d0a72fa3145856d3f38ef8bd193a104c534c9f4","4e7afa7c39db022e830595e3651298ab1971a1495c5ea18b84e6eb6410fe0f6f","0824ca5fd22451f71eaf191d84b6c615fda92ca9f809dc4448109a285fbad977","4be009506533c6c1b7459f91238e0a0a09822fe5f391089aa52c8364529e5679","2d6b75242f3e60cbe3976167258cc323e0d1e39353f870c4037b35d075a3a75f","dc3b172ee27054dbcedcf5007b78c256021db936f6313a9ce9a3ecbb503fd646","f82348f8ac4f637d6ad76ef5d45577ccc0c59fbd25d8c44d55349a71a90e195a","8dfed5c91ad36e69e6da6b7e49be929d4e19666db2b651aa839c485170a2902c","2ff9995137f3e5d68971388ec58af0c79721626323884513f9f5e2e996ac1fdd","4aaf84a5ac87bad3211f041fab85de5cc42e5954c3ed56842faf6f08167e6202","93de1c6dab503f053efe8d304cb522bb3a89feab8c98f307a674a4fae04773e9","3b043cf9a81854a72963fdb57d1884fc4da1cf5be69b5e0a4c5b751e58cb6d88","d0b0a00cf31968a33baeaadf974ce4e5e7edf58cea5288765293f41ba5e72b3a","5ee005d57eb5b0e887f8451463ac412dc22e6868534f51f061166311f6c8baf5",{"version":"c8747693e5872ad5ef3aa016731a06915e1c34dae987829d9aa5bd40c7a2c54b","affectsGlobalScope":true},{"version":"f4c0db3a49cea9babd5d224ba14243a6a6119bf65a65198994033aaea3a60a71","affectsGlobalScope":true},"dc688638e386342faae164e68ac0205274b6731e70ac1a45921f3ce3aa083795","d22e870fef25a052477d24f34356470262881420c8b058c89d86392de6502c42","117ffeecf6c55e25b6446f449ad079029b5e7317399b0a693858faaaea5ca73e","8dc552d17d8515805274740c4902367436a73295c4109bc29f897f35b0604da7",{"version":"64d4b35c5456adf258d2cf56c341e203a073253f229ef3208fc0d5020253b241","affectsGlobalScope":true},"f3e604694b624fa3f83f6684185452992088f5efb2cf136b62474aa106d6f1b6","a1c79f857f5c7754e14c93949dad8cfefcd7df2ecc0dc9dd79a30fd493e28449","8d9d743d7c21d105be24d154834a94557671c0ab0fc7f7329d3076784a80aa93","dc33ce27fbeaf0ea3da556c80a6cc8af9d13eb443088c8f25cdc39fca8e756f6","8c2e6e491e1a08855b8bf70820184ff66ae0d43f7cf0311fc680e6d860af211c","0d5a2ee1fdfa82740e0103389b9efd6bfe145a20018a2da3c02b89666181f4d9","a69c09dbea52352f479d3e7ac949fde3d17b195abe90b045d619f747b38d6d1a",{"version":"92d63add669d18ebc349efbacd88966d6f2ccdddfb1b880b2db98ae3aa7bf7c4","affectsGlobalScope":true},"ccc94049a9841fe47abe5baef6be9a38fc6228807974ae675fb15dc22531b4be",{"version":"9acfe4d1ff027015151ce81d60797b04b52bffe97ad8310bb0ec2e8fd61e1303","affectsGlobalScope":true},"43978f18d1165eea81040bc9bfac1a551717f5cc9bd0f13b31bf490c5fcdc75f","afc6e96061af46bcff47246158caee7e056f5288783f2d83d6858cd25be1c565",{"version":"34f5bcac12b36d70304b73de5f5aab3bb91bd9919f984be80579ebcad03a624e","affectsGlobalScope":true},"82408ed3e959ddc60d3e9904481b5a8dc16469928257af22a3f7d1a3bc7fd8c4","2f520601649a893e6a49a8851ebfcf4be8ce090dc1281c2a08a871cb04e8251f","f50c975ab7b50e25a69e3d8a3773894125b44e9698924105f23b812bf7488baf","2b8c764f856a1dd0a9a2bf23e5efddbff157de8138b0754010be561ae5fcaa90","ad4b60488fb1e562bf375dac9299815f7028bf667d9b5887b2d01d501b7d1ddd","246341c3a7a2638cf830d690e69de1e6085a102c6a30596435b050e6ac86c11a","6972fca26f6e9bd56197568d4379f99071a90766e06b4fcb5920a0130a9202be",{"version":"4a2628e95962c8ab756121faa3ac2ed348112ff7a87b5c286dd2cc3326546b4c","affectsGlobalScope":true},"aa8fe22e10f78a67b2ffbcc614b45fe258ff9e71d53ddb56e75fa7883c530270","a049a59a02009fc023684fcfaf0ac526fe36c35dcc5d2b7d620c1750ba11b083","fa9859478a480a6dfe625d204d5a3a38810b60933ac2b36ba77126cace1d44d3","b287b810b5035d5685f1df6e1e418f1ca452a3ed4f59fd5cc081dbf2045f0d9b","4b9a003b5c556c96784132945bb41c655ea11273b1917f5c8d0c154dd5fd20dd","a458dc78104cc80048ac24fdc02fe6dce254838094c2f25641b3f954d9721241",{"version":"e8b18c6385ff784228a6f369694fcf1a6b475355ba89090a88de13587a9391d5","affectsGlobalScope":true},"f3e8bcce378a26bc672fce0ec05affabbbbfa18493b76f24c39136dea87100d0","abc1c425b2ad6720433f40f1877abfa4223f0f3dd486c9c28c492179ca183cb6","cd4854d38f4eb5592afd98ab95ca17389a7dfe38013d9079e802d739bdbcc939","94eed4cc2f5f658d5e229ff1ccd38860bddf4233e347bf78edd2154dee1f2b99",{"version":"e51bee3200733b1f58818b5a9ea90fcd61c5b8afa3a0378391991f3696826a65","affectsGlobalScope":true},"9f1069b9e2c051737b1f9b4f1baf50e4a63385a6a89c32235549ae87fc3d5492","ee18f2da7a037c6ceeb112a084e485aead9ea166980bf433474559eac1b46553","e70339a3d63f806c43f24250c42aa0000093923457b0ed7dfc10e0ac910ebca9","0acbf26bf958f9e80c1ffa587b74749d2697b75b484062d36e103c137c562bc3","d7838022c7dab596357a9604b9c6adffe37dc34085ce0779c958ce9545bd7139","1b952304137851e45bc009785de89ada562d9376177c97e37702e39e60c2f1ff",{"version":"806ef4cac3b3d9fa4a48d849c8e084d7c72fcd7b16d76e06049a9ed742ff79c0","affectsGlobalScope":true},"a279435e7813d1f061c0cab6ab77b1b9377e8d96851e5ed4a76a1ce6eb6e628f","c33a6ea7147af60d8e98f1ac127047f4b0d4e2ce28b8f08ff3de07ca7cc00637",{"version":"b42b47e17b8ece2424ae8039feb944c2e3ba4b262986aebd582e51efbdca93dc","affectsGlobalScope":true},"664d8f2d59164f2e08c543981453893bc7e003e4dfd29651ce09db13e9457980","2408611d9b4146e35d1dbd1f443ccd8e187c74614a54b80300728277529dbf11","998a3de5237518c0b3ac00a11b3b4417affb008aa20aedee52f3fdae3cb86151","ad41008ffe077206e1811fc873f4d9005b5fd7f6ab52bb6118fef600815a5cb4","d88ecca73348e7c337541c4b8b60a50aca5e87384f6b8a422fc6603c637e4c21","badae0df9a8016ac36994b0a0e7b82ba6aaa3528e175a8c3cb161e4683eec03e","c3db860bcaaaeb3bbc23f353bbda1f8ab82756c8d5e973bebb3953cb09ea68f2","235a53595bd20b0b0eeb1a29cb2887c67c48375e92f03749b2488fbd46d0b1a0","bc09393cd4cd13f69cf1366d4236fbae5359bb550f0de4e15767e9a91d63dfb1","9c266243b01545e11d2733a55ad02b4c00ecdbda99c561cd1674f96e89cdc958","c71155c05fc76ff948a4759abc1cb9feec036509f500174bc18dad4c7827a60c",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true},"e704d7faa97765900963ac1ef5c675cb4c354f2a7fc9fbc104052e14bd65d614","8841e2aa774b89bd23302dede20663306dc1b9902431ac64b24be8b8d0e3f649","fd326577c62145816fe1acc306c734c2396487f76719d3785d4e825b34540b33","3ebae8c00411116a66fca65b08228ea0cf0b72724701f9b854442100aab55aba","cddf5c26907c0b8378bc05543161c11637b830da9fadf59e02a11e675d11e180","3d2cd8f3047fff04a71e7037a6a4cb9f4accb28dbd8c0d83164d414811025af0","70b34c8420d6226ed565d55f47fe04912d0ca0ad128825c5a06e018a3498db32","de1d6e224048139baf7494237a9231be6bab9e990fb239c7825bfd38b06d8c90","077b139efd1a6318805a8b24f05e7af37946d9bf9426bcb4866b45b61e6aac90","de18acda71730bac52f4b256ce7511bb56cc21f6f114c59c46782eff2f632857","7eb06594824ada538b1d8b48c3925a83e7db792f47a081a62cf3e5c4e23cf0ee","f5638f7c2f12a9a1a57b5c41b3c1ea7db3876c003bab68e6a57afd6bcc169af0","15a58e61533036fb08dfd567fa7b1f799acdedf0cacf5cbc93bbed0f0520e87f","fc60dd4cc43dfcc885eb2928d7464a32c16b7f1ea89e4d0f02937c18b0a67737","675e702f2032766a91eeadee64f51014c64688525da99dccd8178f0c599f13a8","378df8bbbb9e3f6fca05d58f644aab538e1062eab5e778fb0b83d41125df246d","d88a479cccf787b4aa82362150fbeba5211a32dbfafa7b92ba6995ecaf9a1a89","187119ff4f9553676a884e296089e131e8cc01691c546273b1d0089c3533ce42","c24ad9be9adf28f0927e3d9d9e9cec1c677022356f241ccbbfb97bfe8fb3d1a1","0ec0998e2d085e8ea54266f547976ae152c9dd6cdb9ac4d8a520a230f5ebae84","9364c7566b0be2f7b70ff5285eb34686f83ccb01bda529b82d23b2a844653bfb","00baffbe8a2f2e4875367479489b5d43b5fc1429ecb4a4cc98cfc3009095f52a","82251920b05f30981c9a4109cb5f3169dce4b477effc845c6d781044a30e7672","3c92b6dfd43cc1c2485d9eba5ff0b74a19bb8725b692773ef1d66dac48cda4bd","3e59f00ab03c33717b3130066d4debb272da90eeded4935ff0604c2bc25a5cae","9fa6b83a35e897f340858995ca5d77e901d89fd18644cd4c9e8a4afe0b2e6363",{"version":"0714e2046df66c0e93c3330d30dbc0565b3e8cd3ee302cf99e4ede6220e5fec8","affectsGlobalScope":true},"2a2e2c6463bcf3c59f31bc9ab4b6ef963bbf7dffb049cd017e2c1834e3adca63","be27a64e821a3e5af838650e4aa25805c60f057d0c37a9762c378d19d364b3e6","736097ddbb2903bef918bb3b5811ef1c9c5656f2a73bd39b22a91b9cc2525e50","208bb742e0f201470da121bc73847c74b62cff4172f38ae5949ae77d6c9c6b71","3663d1b50f356656a314e5df169bb51cb9d5fd75905fa703f75db6bb32030568","6fa0008bf91a4cc9c8963bace4bba0bd6865cbfa29c3e3ccc461155660fb113a","fda7ad096a1619fbae01b3d869cc82e29116f22be50133ac8fb08cee21279acd","2b8264b2fefd7367e0f20e2c04eed5d3038831fe00f5efbc110ff0131aab899b","c555dd691dd05955e99cd93dd99c685a65e5287813ccb5e6bfde951183248e26","f60e3e3060207ac982da13363181fd7ee4beecc19a7c569f0d6bb034331066c2","17230b34bb564a3a2e36f9d3985372ccab4ad1722df2c43f7c5c2b553f68e5db","87ed0f84f0691d5c724b23159db96342e6b04ac69201b02c65936f4281ce1fbe","13868c5792808236b17dfe2803eafce911ea4d09d3b2fda95391891a494f988f","0dfe35191a04e8f9dc7caeb9f52f2ee07402736563d12cbccd15fb5f31ac877f","fa5c2d3fcd8e227e180815df0a0903ed4b116400452af8a75ac5b68e5e1de9da","c0a3ea3aee13c4946a6aefce3a6ab9292a40a29f6622cde0fda0b1067a1a1f5f","ba601641fac98c229ccd4a303f747de376d761babb33229bb7153bed9356c9cc","b4dfafe583b829a382edccbe32303535d0785f0c02ba7f04418e2a81de97af8a","1a37d640c94c0215e62511590bac215dd0b3bfcc287a567fc5fe87ab10894754",{"version":"cffd3848b7af4922d70028c805b7df5e8f0eac4a8d2410b0f55b47ca62c6c3a8","affectsGlobalScope":true},"60aaac5fb1858fbd4c4eb40e01706eb227eed9eca5c665564bd146971280dbd3","30688eab034d1aa3bbe4d8f2c7f462ddaec9f30f1a38a306a4728a9a06a58b11","e03334588c63840b7054accd0b90f29c5890db6a6555ac0869a78a23297f1396","42287355b5372067743496816f5dfaf877fad5ce60645209b91db6aee8de898f","c220410b8e956fa157ce4e5e6ac871f0f433aa120c334d906ff1f5e2c7369e95","960a68ced7820108787135bdae5265d2cc4b511b7dcfd5b8f213432a8483daf1","ed3b711f533ddb3a5451f4c4bb0df3a0b95e9d0433b3b7834644dd1718d06d31","74b0245c42990ed8a849df955db3f4362c81b13f799ebc981b7bec2d5b414a57","67fc055eb86a0632e2e072838f889ffe1754083cb13c8c80a06a7d895d877aae","b0d10e46cfe3f6c476b69af02eaa38e4ccc7430221ce3109ae84bb9fb8282298","3833c70307dc3d2b46cb6f2a8b6a90e4d7e7367a21ab18c481d7de0909a43e67","2887592574fcdfd087647c539dcb0fbe5af2521270dad4a37f9d17c16190d579","9d74c7330800b325bb19cc8c1a153a612c080a60094e1ab6cfb6e39cf1b88c36","fab58e600970e66547644a44bc9918e3223aa2cbd9e8763cec004b2cfb48827e","4fb0b7d532aa6fb850b6cd2f1ee4f00802d877b5c66a51903bc1fb0624126349","b90c59ac4682368a01c83881b814738eb151de8a58f52eb7edadea2bcffb11b9","8560a87b2e9f8e2c3808c8f6172c9b7eb6c9b08cb9f937db71c285ecf292c81d","ffe3931ff864f28d80ae2f33bd11123ad3d7bad9896b910a1e61504cc093e1f5","083c1bd82f8dc3a1ed6fc9e8eaddf141f7c05df418eca386598821e045253af9","274ebe605bd7f71ce161f9f5328febc7d547a2929f803f04b44ec4a7d8729517","6ca0207e70d985a24396583f55836b10dc181063ab6069733561bfde404d1bad","5908142efeaab38ffdf43927ee0af681ae77e0d7672b956dfb8b6c705dbfe106","f772b188b943549b5c5eb803133314b8aa7689eced80eed0b70e2f30ca07ab9c","0026b816ef05cfbf290e8585820eef0f13250438669107dfc44482bac007b14f","05d64cc1118031b29786632a9a0f6d7cf1dcacb303f27023a466cf3cdc860538","e0fff9119e1a5d2fdd46345734126cd6cb99c2d98a9debf0257047fe3937cc3f","d84398556ba4595ee6be554671da142cfe964cbdebb2f0c517a10f76f2b016c0","e275297155ec3251200abbb334c7f5641fecc68b2a9573e40eed50dff7584762","cd6a7c1c2a6461c6868601ca2144a41f8ee6d4a85d4b4cf1deb651e6c2ebc9e5",{"version":"3a1e422f919c70fca66e94dc641ad8d9732b3d2533ac047b8a9aaca9eea3aa10","affectsGlobalScope":true},"d7a041dfebb4e5ab34e9a6771436bd96e9ad7c42728f89a87a0d77dcab766f56","f7e133b20ee2669b6c0e5d7f0cd510868c57cd64b283e68c7f598e30ce9d76d2","6ba73232c9d3267ca36ddb83e335d474d2c0e167481e3dec416c782894e11438","b2d70a269840a9528db473ac7565442434333a05c1f66801a7a672e82beb903e"],"options":{"allowSyntheticDefaultImports":true,"composite":true,"declaration":true,"declarationMap":true,"emitDeclarationOnly":true,"experimentalDecorators":true,"jsx":4,"module":99,"noEmitOnError":true,"noImplicitOverride":true,"outDir":"./","skipLibCheck":true,"sourceMap":true,"strict":true,"target":6,"useDefineForClassFields":true},"fileIdsList":[[81,142],[142],[79,80,82,83,84,142],[79,142],[79,82,142],[87,142],[89,142],[95,96,142],[93,94,95,142],[114,115,142,149,150],[115,142,149],[142,153],[142,158],[142,159],[98,142],[142,163,165,166,167,168,169,170,171,172,173,174,175],[142,163,164,166,167,168,169,170,171,172,173,174,175],[142,164,165,166,167,168,169,170,171,172,173,174,175],[142,163,164,165,167,168,169,170,171,172,173,174,175],[142,163,164,165,166,168,169,170,171,172,173,174,175],[142,163,164,165,166,167,169,170,171,172,173,174,175],[142,163,164,165,166,167,168,170,171,172,173,174,175],[142,163,164,165,166,167,168,169,171,172,173,174,175],[142,163,164,165,166,167,168,169,170,172,173,174,175],[142,163,164,165,166,167,168,169,170,171,173,174,175],[142,163,164,165,166,167,168,169,170,171,172,174,175],[142,163,164,165,166,167,168,169,170,171,172,173,175],[142,163,164,165,166,167,168,169,170,171,172,173,174],[117,141,142,178,179,230],[99,142],[102,142],[103,108,142],[104,114,115,122,131,141,142],[104,105,114,122,142],[106,142],[107,108,115,123,142],[108,131,138,142],[109,111,114,122,142],[110,142],[111,112,142],[113,114,142],[114,142],[114,115,116,131,141,142],[114,115,116,131,142],[117,122,131,141,142],[114,115,117,118,122,131,138,141,142],[117,119,131,138,141,142],[99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148],[114,120,142],[121,141,142],[111,114,122,131,142],[123,142],[124,142],[102,125,142],[126,140,142,146],[127,142],[128,142],[114,129,142],[129,130,142,144],[114,131,132,133,142],[131,133,142],[131,132,142],[134,142],[135,142],[114,136,137,142],[136,137,142],[108,122,138,142],[139,142],[122,140,142],[103,117,128,141,142],[108,142],[131,142,143],[142,144],[142,145],[103,108,114,116,125,131,141,142,144,146],[131,142,147],[114,131,138,142,149,185,186,189,190],[50,142],[50,142,162],[50,142,195],[50,142,197],[142,197,198,199,200,201],[46,47,48,49,142],[142,207],[142,149,212,213,214,215,216,217,218,219,220,221,222],[142,211,212,221],[142,212,221],[142,204,211,212,221],[142,212],[108,142,211,221],[142,211,212,213,214,215,216,217,218,219,220,222],[108,142,149,206,207,208,210,223],[114,117,119,122,131,138,141,142,147,149],[142,227],[114,131,142,149],[117,131,142,149],[142,149,186,187,188],[142,149],[131,142,149,186],[51,67,142],[50,51,62,67,68,69,71,73,74,75,142],[51,142],[51,70,142],[50,51,142],[50,51,70,142],[51,72,142],[50,51,62,142],[51,62,67,71,76,142],[50,51,61,62,63,142],[50,51,61,142],[51,61,63,64,65,66,142],[51,52,53,54,55,56,57,58,59,60,142]],"referencedMap":[[82,1],[79,2],[81,2],[78,2],[85,3],[80,4],[83,5],[84,4],[86,2],[88,6],[87,2],[90,7],[89,2],[91,2],[92,2],[97,8],[93,2],[96,9],[95,2],[98,2],[151,10],[152,11],[154,12],[155,2],[156,2],[157,2],[158,2],[159,13],[160,14],[161,2],[94,2],[162,15],[164,16],[165,17],[163,18],[166,19],[167,20],[168,21],[169,22],[170,23],[171,24],[172,25],[173,26],[174,27],[175,28],[176,12],[177,2],[150,2],[179,2],[180,29],[99,30],[100,30],[102,31],[103,32],[104,33],[105,34],[106,35],[107,36],[108,37],[109,38],[110,39],[111,40],[112,40],[113,41],[114,42],[115,43],[116,44],[101,2],[148,2],[117,45],[118,46],[119,47],[149,48],[120,49],[121,50],[122,51],[123,52],[124,53],[125,54],[126,55],[127,56],[128,57],[129,58],[130,59],[131,60],[133,61],[132,62],[134,63],[135,64],[136,65],[137,66],[138,67],[139,68],[140,69],[141,70],[142,71],[143,72],[144,73],[145,74],[146,75],[147,76],[181,2],[182,42],[183,2],[184,2],[190,77],[191,2],[48,2],[192,2],[193,78],[194,79],[195,80],[196,78],[198,81],[200,78],[197,78],[199,81],[201,2],[202,82],[46,2],[50,83],[51,78],[203,2],[49,2],[204,2],[205,2],[206,2],[208,84],[153,2],[209,2],[225,2],[223,85],[222,86],[213,87],[214,88],[215,88],[216,87],[217,87],[218,87],[219,89],[212,90],[220,86],[221,91],[224,92],[226,93],[227,2],[228,94],[229,95],[210,2],[47,2],[178,96],[189,97],[186,98],[188,99],[187,98],[185,2],[207,2],[211,2],[10,2],[11,2],[13,2],[12,2],[2,2],[14,2],[15,2],[16,2],[17,2],[18,2],[19,2],[20,2],[21,2],[3,2],[4,2],[25,2],[22,2],[23,2],[24,2],[26,2],[27,2],[28,2],[5,2],[29,2],[30,2],[31,2],[32,2],[6,2],[33,2],[34,2],[35,2],[36,2],[7,2],[41,2],[37,2],[38,2],[39,2],[40,2],[8,2],[42,2],[43,2],[44,2],[1,2],[9,2],[45,2],[68,100],[76,101],[62,102],[71,103],[70,104],[74,100],[69,102],[72,105],[73,106],[75,107],[77,108],[64,109],[63,102],[65,110],[66,102],[67,111],[52,102],[53,104],[54,102],[55,102],[56,102],[57,104],[58,104],[59,104],[60,102],[61,112]],"exportedModulesMap":[[82,1],[79,2],[81,2],[78,2],[85,3],[80,4],[83,5],[84,4],[86,2],[88,6],[87,2],[90,7],[89,2],[91,2],[92,2],[97,8],[93,2],[96,9],[95,2],[98,2],[151,10],[152,11],[154,12],[155,2],[156,2],[157,2],[158,2],[159,13],[160,14],[161,2],[94,2],[162,15],[164,16],[165,17],[163,18],[166,19],[167,20],[168,21],[169,22],[170,23],[171,24],[172,25],[173,26],[174,27],[175,28],[176,12],[177,2],[150,2],[179,2],[180,29],[99,30],[100,30],[102,31],[103,32],[104,33],[105,34],[106,35],[107,36],[108,37],[109,38],[110,39],[111,40],[112,40],[113,41],[114,42],[115,43],[116,44],[101,2],[148,2],[117,45],[118,46],[119,47],[149,48],[120,49],[121,50],[122,51],[123,52],[124,53],[125,54],[126,55],[127,56],[128,57],[129,58],[130,59],[131,60],[133,61],[132,62],[134,63],[135,64],[136,65],[137,66],[138,67],[139,68],[140,69],[141,70],[142,71],[143,72],[144,73],[145,74],[146,75],[147,76],[181,2],[182,42],[183,2],[184,2],[190,77],[191,2],[48,2],[192,2],[193,78],[194,79],[195,80],[196,78],[198,81],[200,78],[197,78],[199,81],[201,2],[202,82],[46,2],[50,83],[51,78],[203,2],[49,2],[204,2],[205,2],[206,2],[208,84],[153,2],[209,2],[225,2],[223,85],[222,86],[213,87],[214,88],[215,88],[216,87],[217,87],[218,87],[219,89],[212,90],[220,86],[221,91],[224,92],[226,93],[227,2],[228,94],[229,95],[210,2],[47,2],[178,96],[189,97],[186,98],[188,99],[187,98],[185,2],[207,2],[211,2],[10,2],[11,2],[13,2],[12,2],[2,2],[14,2],[15,2],[16,2],[17,2],[18,2],[19,2],[20,2],[21,2],[3,2],[4,2],[25,2],[22,2],[23,2],[24,2],[26,2],[27,2],[28,2],[5,2],[29,2],[30,2],[31,2],[32,2],[6,2],[33,2],[34,2],[35,2],[36,2],[7,2],[41,2],[37,2],[38,2],[39,2],[40,2],[8,2],[42,2],[43,2],[44,2],[1,2],[9,2],[45,2],[68,100],[76,101],[62,102],[71,103],[70,104],[74,100],[69,102],[72,105],[73,106],[75,107],[77,108],[64,109],[63,102],[65,110],[66,102],[67,111],[52,102],[53,104],[54,102],[55,102],[56,102],[57,104],[58,104],[59,104],[60,102],[61,112]],"semanticDiagnosticsPerFile":[82,79,81,78,85,80,83,84,86,88,87,90,89,91,92,97,93,96,95,98,151,152,154,155,156,157,158,159,160,161,94,162,164,165,163,166,167,168,169,170,171,172,173,174,175,176,177,150,179,180,99,100,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,101,148,117,118,119,149,120,121,122,123,124,125,126,127,128,129,130,131,133,132,134,135,136,137,138,139,140,141,142,143,144,145,146,147,181,182,183,184,190,191,48,192,193,194,195,196,198,200,197,199,201,202,46,50,51,203,49,204,205,206,208,153,209,225,223,222,213,214,215,216,217,218,219,212,220,221,224,226,227,228,229,210,47,178,189,186,188,187,185,207,211,10,11,13,12,2,14,15,16,17,18,19,20,21,3,4,25,22,23,24,26,27,28,5,29,30,31,32,6,33,34,35,36,7,41,37,38,39,40,8,42,43,44,1,9,45,68,76,62,71,70,74,69,72,73,75,77,64,63,65,66,67,52,53,54,55,56,57,58,59,60,61]},"version":"4.3.5"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contember/react-multipass-rendering",
|
|
3
3
|
"license": "Apache-2.0",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.1.0-alpha.10",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"main": "./dist/production/index.js",
|
|
@@ -25,6 +25,8 @@
|
|
|
25
25
|
"build": "pnpm run build:js:dev && pnpm run build:js:prod",
|
|
26
26
|
"build:js:dev": "vite build --mode development",
|
|
27
27
|
"build:js:prod": "vite build --mode production",
|
|
28
|
+
"ae:build": "api-extractor run --local",
|
|
29
|
+
"ae:test": "api-extractor run",
|
|
28
30
|
"test": "vitest"
|
|
29
31
|
}
|
|
30
32
|
}
|
package/src/ChildrenAnalyzer.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ElementType, ReactNode } from 'react'
|
|
1
|
+
import type { ElementType, ReactElement, ReactNode } from 'react'
|
|
2
2
|
import { assertNever } from './assertNever'
|
|
3
3
|
import type { BranchNodeList } from './BranchNodeList'
|
|
4
4
|
import { ChildrenAnalyzerError } from './ChildrenAnalyzerError'
|
|
@@ -8,12 +8,12 @@ import type { LeafList } from './LeafList'
|
|
|
8
8
|
import type {
|
|
9
9
|
DeclarationSiteNodeRepresentationFactory,
|
|
10
10
|
RawNodeRepresentation,
|
|
11
|
-
RepresentationFactorySite,
|
|
12
11
|
StaticContextFactory,
|
|
13
12
|
SyntheticChildrenFactory,
|
|
14
13
|
UnconstrainedLeafRepresentationFactory,
|
|
15
14
|
ValidFactoryName,
|
|
16
15
|
} from './nodeSpecs'
|
|
16
|
+
import { wrapError } from './helpers/wrapError'
|
|
17
17
|
|
|
18
18
|
export class ChildrenAnalyzer<
|
|
19
19
|
AllLeavesRepresentation = any,
|
|
@@ -66,7 +66,7 @@ export class ChildrenAnalyzer<
|
|
|
66
66
|
children: ReactNode,
|
|
67
67
|
initialStaticContext: StaticContext,
|
|
68
68
|
): Array<AllLeavesRepresentation | AllBranchNodesRepresentation> {
|
|
69
|
-
const processed = this.processNode(children, initialStaticContext)
|
|
69
|
+
const processed = this.processNode(children, initialStaticContext, [])
|
|
70
70
|
|
|
71
71
|
const rawResult: Array<AllLeavesRepresentation | AllBranchNodesRepresentation | undefined> = Array.isArray(
|
|
72
72
|
processed,
|
|
@@ -82,6 +82,7 @@ export class ChildrenAnalyzer<
|
|
|
82
82
|
private processNode(
|
|
83
83
|
node: ReactNode | Function,
|
|
84
84
|
staticContext: StaticContext,
|
|
85
|
+
componentPath: ReactElement[],
|
|
85
86
|
): RawNodeRepresentation<AllLeavesRepresentation, AllBranchNodesRepresentation> {
|
|
86
87
|
if (!node || typeof node === 'string' || typeof node === 'number' || typeof node === 'boolean') {
|
|
87
88
|
for (const leaf of this.leaves) {
|
|
@@ -114,7 +115,7 @@ export class ChildrenAnalyzer<
|
|
|
114
115
|
let mapped: Array<AllLeavesRepresentation | AllBranchNodesRepresentation> = []
|
|
115
116
|
|
|
116
117
|
for (const subNode of node) {
|
|
117
|
-
const processed = this.processNode(subNode, staticContext)
|
|
118
|
+
const processed = this.processNode(subNode, staticContext, componentPath)
|
|
118
119
|
|
|
119
120
|
if (processed !== undefined) {
|
|
120
121
|
if (Array.isArray(processed)) {
|
|
@@ -131,13 +132,13 @@ export class ChildrenAnalyzer<
|
|
|
131
132
|
let children: ReactNode = undefined
|
|
132
133
|
|
|
133
134
|
if (!('type' in node)) {
|
|
134
|
-
return this.processNode(children, staticContext)
|
|
135
|
+
return this.processNode(children, staticContext, componentPath)
|
|
135
136
|
}
|
|
136
137
|
children = node.props.children
|
|
137
138
|
|
|
138
139
|
if (typeof node.type === 'symbol') {
|
|
139
140
|
// Fragment, Portal or other non-component
|
|
140
|
-
return this.processNode(children, staticContext)
|
|
141
|
+
return this.processNode(children, staticContext, componentPath)
|
|
141
142
|
}
|
|
142
143
|
// if (typeof node.type === 'string') {
|
|
143
144
|
// // Typically a host component
|
|
@@ -158,18 +159,27 @@ export class ChildrenAnalyzer<
|
|
|
158
159
|
| DeclarationSiteNodeRepresentationFactory<any, unknown, AllBranchNodesRepresentation, StaticContext>
|
|
159
160
|
}
|
|
160
161
|
|
|
162
|
+
componentPath = [...componentPath, node]
|
|
161
163
|
if (typeof treeNode !== 'string') {
|
|
162
164
|
if (this.options.staticContextFactoryName in treeNode) {
|
|
163
165
|
const staticContextFactory = treeNode[this.options.staticContextFactoryName] as StaticContextFactory<
|
|
164
166
|
any,
|
|
165
167
|
StaticContext
|
|
166
168
|
>
|
|
167
|
-
|
|
169
|
+
try {
|
|
170
|
+
staticContext = staticContextFactory(node.props, staticContext)
|
|
171
|
+
} catch (e) {
|
|
172
|
+
wrapError(e, treeNode.displayName ?? '???', this.options.staticContextFactoryName, componentPath)
|
|
173
|
+
}
|
|
168
174
|
}
|
|
169
175
|
|
|
170
176
|
if (this.options.staticRenderFactoryName in treeNode) {
|
|
171
177
|
const factory = treeNode[this.options.staticRenderFactoryName] as SyntheticChildrenFactory<any, StaticContext>
|
|
172
|
-
|
|
178
|
+
try {
|
|
179
|
+
children = factory(node.props, staticContext)
|
|
180
|
+
} catch (e) {
|
|
181
|
+
wrapError(e, treeNode.displayName ?? '???', this.options.staticRenderFactoryName, componentPath)
|
|
182
|
+
}
|
|
173
183
|
}
|
|
174
184
|
}
|
|
175
185
|
|
|
@@ -201,7 +211,7 @@ export class ChildrenAnalyzer<
|
|
|
201
211
|
}
|
|
202
212
|
}
|
|
203
213
|
|
|
204
|
-
const processedChildren = this.processNode(children, staticContext)
|
|
214
|
+
const processedChildren = this.processNode(children, staticContext, componentPath)
|
|
205
215
|
|
|
206
216
|
for (const branchNode of this.branchNodes) {
|
|
207
217
|
const specification = branchNode.specification
|
|
@@ -1 +1,12 @@
|
|
|
1
|
-
export class ChildrenAnalyzerError extends Error {
|
|
1
|
+
export class ChildrenAnalyzerError extends Error {
|
|
2
|
+
public cause?: unknown
|
|
3
|
+
public details?: string
|
|
4
|
+
|
|
5
|
+
constructor(message: string, options?: { cause: unknown, details?: string }) {
|
|
6
|
+
super(message)
|
|
7
|
+
this.details = options?.details
|
|
8
|
+
if ((typeof options === 'object' && 'cause' in options)) {
|
|
9
|
+
this.cause = options.cause
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import React, { ReactElement } from 'react'
|
|
2
|
+
import { ChildrenAnalyzerError } from '../ChildrenAnalyzerError'
|
|
3
|
+
|
|
4
|
+
export const wrapError = (e: unknown, currentComponentName: string, methodName: string, path: ReactElement[]): never => {
|
|
5
|
+
if (!(e instanceof Error)) {
|
|
6
|
+
throw e
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
const componentPath = path.map((it, index) => {
|
|
10
|
+
const { children, ...props } = it.props
|
|
11
|
+
const printProps = (props: any) => {
|
|
12
|
+
let result = ''
|
|
13
|
+
for (const [key, value] of Object.entries(props)) {
|
|
14
|
+
if (value === undefined) {
|
|
15
|
+
continue
|
|
16
|
+
}
|
|
17
|
+
try {
|
|
18
|
+
const valuePrinted = JSON.stringify(value, (key, value) => {
|
|
19
|
+
if (typeof value === 'function') {
|
|
20
|
+
return '(function)'
|
|
21
|
+
}
|
|
22
|
+
if (React.isValidElement(value)) {
|
|
23
|
+
return '(react element)'
|
|
24
|
+
}
|
|
25
|
+
return value
|
|
26
|
+
},
|
|
27
|
+
)
|
|
28
|
+
result += ` ${key}=${valuePrinted}`
|
|
29
|
+
} catch {
|
|
30
|
+
result += ` ${key}=(failed to print a value)`
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
return result
|
|
34
|
+
}
|
|
35
|
+
const componentName = typeof it.type === 'object' && 'displayName' in it.type ? (it.type as any).displayName : null
|
|
36
|
+
const propsPrinted = printProps(props)
|
|
37
|
+
const indent = ' '.repeat(index)
|
|
38
|
+
return `${indent}<${componentName ?? '???'}${propsPrinted}>`
|
|
39
|
+
})
|
|
40
|
+
const errorMessage = `Error during static render of ${currentComponentName} in ${methodName}:\n${e.message || 'unknown error'}`
|
|
41
|
+
|
|
42
|
+
throw new ChildrenAnalyzerError(errorMessage, {
|
|
43
|
+
cause: e,
|
|
44
|
+
details: `Component path:\n${componentPath.join('\n')}`,
|
|
45
|
+
})
|
|
46
|
+
}
|