@techdocs/cli 1.4.7 → 1.5.0-next.2
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/CHANGELOG.md +23 -8
- package/dist/cjs/{generate-d9c4c0d9.cjs.js → generate-5fb2bc8c.cjs.js} +4 -2
- package/dist/cjs/generate-5fb2bc8c.cjs.js.map +1 -0
- package/dist/embedded-app/.config-schema.json +43 -0
- package/dist/embedded-app/index.html +1 -1
- package/dist/embedded-app/static/{1032.5be56bbf.chunk.js → 1032.f8378b05.chunk.js} +1 -1
- package/dist/embedded-app/static/{1032.5be56bbf.chunk.js.map → 1032.f8378b05.chunk.js.map} +1 -1
- package/dist/embedded-app/static/1093.317a4f39.chunk.js +7 -0
- package/dist/embedded-app/static/1093.317a4f39.chunk.js.map +1 -0
- package/dist/embedded-app/static/1105.a5f2c603.chunk.js +3 -0
- package/dist/embedded-app/static/1105.a5f2c603.chunk.js.map +1 -0
- package/dist/embedded-app/static/{184.78d680e0.chunk.js → 184.2d07d6cf.chunk.js} +1 -1
- package/dist/embedded-app/static/{184.78d680e0.chunk.js.map → 184.2d07d6cf.chunk.js.map} +1 -1
- package/dist/embedded-app/static/2440.c513a311.chunk.js +3 -0
- package/dist/embedded-app/static/2440.c513a311.chunk.js.map +1 -0
- package/dist/embedded-app/static/5458.f60ece35.chunk.js +3 -0
- package/dist/embedded-app/static/5458.f60ece35.chunk.js.map +1 -0
- package/dist/embedded-app/static/5837.d9697f2a.chunk.js +3 -0
- package/dist/embedded-app/static/{9323.61727faa.chunk.js.map → 5837.d9697f2a.chunk.js.map} +1 -1
- package/dist/embedded-app/static/6051.9a397327.chunk.js +4 -0
- package/dist/embedded-app/static/{6051.e6ab645f.chunk.js.map → 6051.9a397327.chunk.js.map} +1 -1
- package/dist/embedded-app/static/{732.fb0762a2.chunk.js → 732.b079cbc6.chunk.js} +1 -1
- package/dist/embedded-app/static/{732.fb0762a2.chunk.js.map → 732.b079cbc6.chunk.js.map} +1 -1
- package/dist/embedded-app/static/{7560.8ef9e30a.chunk.js → 7560.f82352d7.chunk.js} +2 -2
- package/dist/embedded-app/static/{7560.8ef9e30a.chunk.js.map → 7560.f82352d7.chunk.js.map} +1 -1
- package/dist/embedded-app/static/{7750.c1a4c4df.chunk.js → 7750.da1a67d5.chunk.js} +2 -2
- package/dist/embedded-app/static/{7750.c1a4c4df.chunk.js.map → 7750.da1a67d5.chunk.js.map} +1 -1
- package/dist/embedded-app/static/{8951.fea20091.chunk.js → 8951.d0edcfcb.chunk.js} +2 -2
- package/dist/embedded-app/static/{8951.fea20091.chunk.js.map → 8951.d0edcfcb.chunk.js.map} +1 -1
- package/dist/embedded-app/static/{9545.dea948d9.chunk.js → 9545.24f95d89.chunk.js} +1 -1
- package/dist/embedded-app/static/{9545.dea948d9.chunk.js.map → 9545.24f95d89.chunk.js.map} +1 -1
- package/dist/embedded-app/static/9770.2fa7c11e.chunk.js +3 -0
- package/dist/embedded-app/static/9770.2fa7c11e.chunk.js.map +1 -0
- package/dist/embedded-app/static/main.2d4c0606.js +522 -0
- package/dist/embedded-app/static/main.2d4c0606.js.map +1 -0
- package/dist/embedded-app/static/module-i18next.3eb80014.js +3 -0
- package/dist/embedded-app/static/module-i18next.3eb80014.js.map +1 -0
- package/dist/embedded-app/static/module-luxon.b1d74b2d.js +3 -0
- package/dist/embedded-app/static/module-luxon.b1d74b2d.js.map +1 -0
- package/dist/embedded-app/static/{module-yaml.aace0584.js → module-yaml.00a97896.js} +6 -5
- package/dist/embedded-app/static/module-yaml.00a97896.js.map +1 -0
- package/dist/embedded-app/static/{runtime.4b61d1bd.js → runtime.2d4c0606.js} +2 -2
- package/dist/embedded-app/static/{runtime.4b61d1bd.js.map → runtime.2d4c0606.js.map} +1 -1
- package/dist/embedded-app/static/vendor.2d4c0606.js +213 -0
- package/dist/embedded-app/static/vendor.2d4c0606.js.map +1 -0
- package/dist/index.cjs.js +6 -2
- package/dist/index.cjs.js.map +1 -1
- package/package.json +6 -6
- package/dist/cjs/generate-d9c4c0d9.cjs.js.map +0 -1
- package/dist/embedded-app/static/1049.e59b8f46.chunk.js +0 -7
- package/dist/embedded-app/static/1049.e59b8f46.chunk.js.map +0 -1
- package/dist/embedded-app/static/1105.cbd84f5c.chunk.js +0 -3
- package/dist/embedded-app/static/1105.cbd84f5c.chunk.js.map +0 -1
- package/dist/embedded-app/static/2440.8f7574d6.chunk.js +0 -3
- package/dist/embedded-app/static/2440.8f7574d6.chunk.js.map +0 -1
- package/dist/embedded-app/static/5458.4a158b26.chunk.js +0 -3
- package/dist/embedded-app/static/5458.4a158b26.chunk.js.map +0 -1
- package/dist/embedded-app/static/6051.e6ab645f.chunk.js +0 -4
- package/dist/embedded-app/static/9323.61727faa.chunk.js +0 -3
- package/dist/embedded-app/static/9770.1e5df227.chunk.js +0 -3
- package/dist/embedded-app/static/9770.1e5df227.chunk.js.map +0 -1
- package/dist/embedded-app/static/main.4b61d1bd.js +0 -522
- package/dist/embedded-app/static/main.4b61d1bd.js.map +0 -1
- package/dist/embedded-app/static/module-luxon.a1854eb9.js +0 -3
- package/dist/embedded-app/static/module-luxon.a1854eb9.js.map +0 -1
- package/dist/embedded-app/static/module-yaml.aace0584.js.map +0 -1
- package/dist/embedded-app/static/vendor.4b61d1bd.js +0 -213
- package/dist/embedded-app/static/vendor.4b61d1bd.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,26 +1,41 @@
|
|
|
1
1
|
# @techdocs/cli
|
|
2
2
|
|
|
3
|
-
## 1.
|
|
3
|
+
## 1.5.0-next.2
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
7
|
- Updated dependencies
|
|
8
|
-
- @backstage/
|
|
9
|
-
- @backstage/
|
|
10
|
-
- @backstage/catalog-model@1.4.1
|
|
8
|
+
- @backstage/config@1.1.0-next.1
|
|
9
|
+
- @backstage/backend-common@0.19.5-next.2
|
|
10
|
+
- @backstage/catalog-model@1.4.2-next.1
|
|
11
|
+
- @backstage/plugin-techdocs-node@1.8.0-next.2
|
|
12
|
+
- @backstage/cli-common@0.1.12
|
|
13
|
+
|
|
14
|
+
## 1.5.0-next.1
|
|
15
|
+
|
|
16
|
+
### Minor Changes
|
|
17
|
+
|
|
18
|
+
- 10a86bd4ae12: Add optional config and cli option for techdocs to specify default mkdocs plugins.
|
|
19
|
+
|
|
20
|
+
### Patch Changes
|
|
21
|
+
|
|
22
|
+
- Updated dependencies
|
|
23
|
+
- @backstage/config@1.1.0-next.0
|
|
24
|
+
- @backstage/plugin-techdocs-node@1.8.0-next.1
|
|
25
|
+
- @backstage/backend-common@0.19.5-next.1
|
|
26
|
+
- @backstage/catalog-model@1.4.2-next.0
|
|
11
27
|
- @backstage/cli-common@0.1.12
|
|
12
|
-
- @backstage/config@1.0.8
|
|
13
28
|
|
|
14
|
-
## 1.4.
|
|
29
|
+
## 1.4.7-next.0
|
|
15
30
|
|
|
16
31
|
### Patch Changes
|
|
17
32
|
|
|
18
33
|
- Updated dependencies
|
|
19
|
-
- @backstage/backend-common@0.19.
|
|
20
|
-
- @backstage/plugin-techdocs-node@1.7.5
|
|
34
|
+
- @backstage/backend-common@0.19.4-next.0
|
|
21
35
|
- @backstage/catalog-model@1.4.1
|
|
22
36
|
- @backstage/cli-common@0.1.12
|
|
23
37
|
- @backstage/config@1.0.8
|
|
38
|
+
- @backstage/plugin-techdocs-node@1.7.6-next.0
|
|
24
39
|
|
|
25
40
|
## 1.4.5
|
|
26
41
|
|
|
@@ -24,6 +24,7 @@ async function generate(opts) {
|
|
|
24
24
|
const dockerImage = opts.dockerImage;
|
|
25
25
|
const pullImage = opts.pull;
|
|
26
26
|
const legacyCopyReadmeMdToIndexMd = opts.legacyCopyReadmeMdToIndexMd;
|
|
27
|
+
const defaultPlugins = opts.defaultPlugin;
|
|
27
28
|
logger.info(`Using source dir ${sourceDir}`);
|
|
28
29
|
logger.info(`Will output generated files in ${outputDir}`);
|
|
29
30
|
logger.verbose("Creating output directory if it does not exist.");
|
|
@@ -39,7 +40,8 @@ async function generate(opts) {
|
|
|
39
40
|
pullImage,
|
|
40
41
|
mkdocs: {
|
|
41
42
|
legacyCopyReadmeMdToIndexMd,
|
|
42
|
-
omitTechdocsCorePlugin
|
|
43
|
+
omitTechdocsCorePlugin,
|
|
44
|
+
defaultPlugins
|
|
43
45
|
}
|
|
44
46
|
}
|
|
45
47
|
}
|
|
@@ -84,4 +86,4 @@ async function generate(opts) {
|
|
|
84
86
|
}
|
|
85
87
|
|
|
86
88
|
exports["default"] = generate;
|
|
87
|
-
//# sourceMappingURL=generate-
|
|
89
|
+
//# sourceMappingURL=generate-5fb2bc8c.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generate-5fb2bc8c.cjs.js","sources":["../../src/commands/generate/generate.ts"],"sourcesContent":["/*\n * Copyright 2020 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { resolve } from 'path';\nimport { OptionValues } from 'commander';\nimport fs from 'fs-extra';\nimport Docker from 'dockerode';\nimport {\n TechdocsGenerator,\n ParsedLocationAnnotation,\n getMkdocsYml,\n} from '@backstage/plugin-techdocs-node';\nimport {\n ContainerRunner,\n DockerContainerRunner,\n} from '@backstage/backend-common';\nimport { ConfigReader } from '@backstage/config';\nimport {\n convertTechDocsRefToLocationAnnotation,\n createLogger,\n getLogStream,\n} from '../../lib/utility';\n\nexport default async function generate(opts: OptionValues) {\n // Use techdocs-node package to generate docs. Keep consistency between Backstage and CI generating docs.\n // Docs can be prepared using actions/checkout or git clone, or similar paradigms on CI. The TechDocs CI workflow\n // will run on the CI pipeline containing the documentation files.\n\n const logger = createLogger({ verbose: opts.verbose });\n\n const sourceDir = resolve(opts.sourceDir);\n const outputDir = resolve(opts.outputDir);\n const omitTechdocsCorePlugin = opts.omitTechdocsCoreMkdocsPlugin;\n const dockerImage = opts.dockerImage;\n const pullImage = opts.pull;\n const legacyCopyReadmeMdToIndexMd = opts.legacyCopyReadmeMdToIndexMd;\n const defaultPlugins = opts.defaultPlugin;\n\n logger.info(`Using source dir ${sourceDir}`);\n logger.info(`Will output generated files in ${outputDir}`);\n\n logger.verbose('Creating output directory if it does not exist.');\n\n await fs.ensureDir(outputDir);\n\n const { path: mkdocsYmlPath, configIsTemporary } = await getMkdocsYml(\n sourceDir,\n );\n\n const config = new ConfigReader({\n techdocs: {\n generator: {\n runIn: opts.docker ? 'docker' : 'local',\n dockerImage,\n pullImage,\n mkdocs: {\n legacyCopyReadmeMdToIndexMd,\n omitTechdocsCorePlugin,\n defaultPlugins,\n },\n },\n },\n });\n\n // Docker client (conditionally) used by the generators, based on techdocs.generators config.\n let containerRunner: ContainerRunner | undefined;\n\n if (opts.docker) {\n const dockerClient = new Docker();\n containerRunner = new DockerContainerRunner({ dockerClient });\n }\n\n let parsedLocationAnnotation = {} as ParsedLocationAnnotation;\n if (opts.techdocsRef) {\n try {\n parsedLocationAnnotation = convertTechDocsRefToLocationAnnotation(\n opts.techdocsRef,\n );\n } catch (err) {\n logger.error(err.message);\n }\n }\n\n // Generate docs using @backstage/plugin-techdocs-node\n const techdocsGenerator = await TechdocsGenerator.fromConfig(config, {\n logger,\n containerRunner,\n });\n\n logger.info('Generating documentation...');\n\n await techdocsGenerator.run({\n inputDir: sourceDir,\n outputDir,\n ...(opts.techdocsRef\n ? {\n parsedLocationAnnotation,\n }\n : {}),\n logger,\n etag: opts.etag,\n logStream: getLogStream(logger),\n siteOptions: { name: opts.siteName },\n });\n\n if (configIsTemporary) {\n process.on('exit', async () => {\n fs.rmSync(mkdocsYmlPath, {});\n });\n }\n\n logger.info('Done!');\n}\n"],"names":["createLogger","resolve","fs","getMkdocsYml","config","ConfigReader","Docker","DockerContainerRunner","convertTechDocsRefToLocationAnnotation","TechdocsGenerator","getLogStream"],"mappings":";;;;;;;;;;;;;;;;;;AAoCA,eAA8B,SAAS,IAAoB,EAAA;AAKzD,EAAA,MAAM,SAASA,oBAAa,CAAA,EAAE,OAAS,EAAA,IAAA,CAAK,SAAS,CAAA,CAAA;AAErD,EAAM,MAAA,SAAA,GAAYC,YAAQ,CAAA,IAAA,CAAK,SAAS,CAAA,CAAA;AACxC,EAAM,MAAA,SAAA,GAAYA,YAAQ,CAAA,IAAA,CAAK,SAAS,CAAA,CAAA;AACxC,EAAA,MAAM,yBAAyB,IAAK,CAAA,4BAAA,CAAA;AACpC,EAAA,MAAM,cAAc,IAAK,CAAA,WAAA,CAAA;AACzB,EAAA,MAAM,YAAY,IAAK,CAAA,IAAA,CAAA;AACvB,EAAA,MAAM,8BAA8B,IAAK,CAAA,2BAAA,CAAA;AACzC,EAAA,MAAM,iBAAiB,IAAK,CAAA,aAAA,CAAA;AAE5B,EAAO,MAAA,CAAA,IAAA,CAAK,CAAoB,iBAAA,EAAA,SAAS,CAAE,CAAA,CAAA,CAAA;AAC3C,EAAO,MAAA,CAAA,IAAA,CAAK,CAAkC,+BAAA,EAAA,SAAS,CAAE,CAAA,CAAA,CAAA;AAEzD,EAAA,MAAA,CAAO,QAAQ,iDAAiD,CAAA,CAAA;AAEhE,EAAM,MAAAC,sBAAA,CAAG,UAAU,SAAS,CAAA,CAAA;AAE5B,EAAA,MAAM,EAAE,IAAA,EAAM,aAAe,EAAA,iBAAA,KAAsB,MAAMC,+BAAA;AAAA,IACvD,SAAA;AAAA,GACF,CAAA;AAEA,EAAM,MAAAC,QAAA,GAAS,IAAIC,mBAAa,CAAA;AAAA,IAC9B,QAAU,EAAA;AAAA,MACR,SAAW,EAAA;AAAA,QACT,KAAA,EAAO,IAAK,CAAA,MAAA,GAAS,QAAW,GAAA,OAAA;AAAA,QAChC,WAAA;AAAA,QACA,SAAA;AAAA,QACA,MAAQ,EAAA;AAAA,UACN,2BAAA;AAAA,UACA,sBAAA;AAAA,UACA,cAAA;AAAA,SACF;AAAA,OACF;AAAA,KACF;AAAA,GACD,CAAA,CAAA;AAGD,EAAI,IAAA,eAAA,CAAA;AAEJ,EAAA,IAAI,KAAK,MAAQ,EAAA;AACf,IAAM,MAAA,YAAA,GAAe,IAAIC,0BAAO,EAAA,CAAA;AAChC,IAAA,eAAA,GAAkB,IAAIC,mCAAA,CAAsB,EAAE,YAAA,EAAc,CAAA,CAAA;AAAA,GAC9D;AAEA,EAAA,IAAI,2BAA2B,EAAC,CAAA;AAChC,EAAA,IAAI,KAAK,WAAa,EAAA;AACpB,IAAI,IAAA;AACF,MAA2B,wBAAA,GAAAC,8CAAA;AAAA,QACzB,IAAK,CAAA,WAAA;AAAA,OACP,CAAA;AAAA,aACO,GAAK,EAAA;AACZ,MAAO,MAAA,CAAA,KAAA,CAAM,IAAI,OAAO,CAAA,CAAA;AAAA,KAC1B;AAAA,GACF;AAGA,EAAA,MAAM,iBAAoB,GAAA,MAAMC,oCAAkB,CAAA,UAAA,CAAWL,QAAQ,EAAA;AAAA,IACnE,MAAA;AAAA,IACA,eAAA;AAAA,GACD,CAAA,CAAA;AAED,EAAA,MAAA,CAAO,KAAK,6BAA6B,CAAA,CAAA;AAEzC,EAAA,MAAM,kBAAkB,GAAI,CAAA;AAAA,IAC1B,QAAU,EAAA,SAAA;AAAA,IACV,SAAA;AAAA,IACA,GAAI,KAAK,WACL,GAAA;AAAA,MACE,wBAAA;AAAA,QAEF,EAAC;AAAA,IACL,MAAA;AAAA,IACA,MAAM,IAAK,CAAA,IAAA;AAAA,IACX,SAAA,EAAWM,qBAAa,MAAM,CAAA;AAAA,IAC9B,WAAa,EAAA,EAAE,IAAM,EAAA,IAAA,CAAK,QAAS,EAAA;AAAA,GACpC,CAAA,CAAA;AAED,EAAA,IAAI,iBAAmB,EAAA;AACrB,IAAQ,OAAA,CAAA,EAAA,CAAG,QAAQ,YAAY;AAC7B,MAAGR,sBAAA,CAAA,MAAA,CAAO,aAAe,EAAA,EAAE,CAAA,CAAA;AAAA,KAC5B,CAAA,CAAA;AAAA,GACH;AAEA,EAAA,MAAA,CAAO,KAAK,OAAO,CAAA,CAAA;AACrB;;;;"}
|
|
@@ -395,7 +395,50 @@
|
|
|
395
395
|
"token": {
|
|
396
396
|
"description": "Token used to authenticate requests.",
|
|
397
397
|
"visibility": "secret",
|
|
398
|
+
"deprecated": "Use `credentials` instead.",
|
|
398
399
|
"type": "string"
|
|
400
|
+
},
|
|
401
|
+
"credential": {
|
|
402
|
+
"description": "The credential to use for requests.\n\nIf no credential is specified anonymous access is used.",
|
|
403
|
+
"visibility": "secret",
|
|
404
|
+
"deprecated": "Use `credentials` instead.",
|
|
405
|
+
"type": "object",
|
|
406
|
+
"properties": {
|
|
407
|
+
"clientId": {
|
|
408
|
+
"type": "string"
|
|
409
|
+
},
|
|
410
|
+
"clientSecret": {
|
|
411
|
+
"type": "string"
|
|
412
|
+
},
|
|
413
|
+
"tenantId": {
|
|
414
|
+
"type": "string"
|
|
415
|
+
},
|
|
416
|
+
"personalAccessToken": {
|
|
417
|
+
"type": "string"
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
},
|
|
421
|
+
"credentials": {
|
|
422
|
+
"description": "The credentials to use for requests. If multiple credentials are specified the first one that matches the organization is used.\nIf not organization matches the first credential without an organization is used.\n\nIf no credentials are specified at all, either a default credential (for Azure DevOps) or anonymous access (for Azure DevOps Server) is used.",
|
|
423
|
+
"visibility": "secret",
|
|
424
|
+
"type": "array",
|
|
425
|
+
"items": {
|
|
426
|
+
"type": "object",
|
|
427
|
+
"properties": {
|
|
428
|
+
"clientId": {
|
|
429
|
+
"type": "string"
|
|
430
|
+
},
|
|
431
|
+
"clientSecret": {
|
|
432
|
+
"type": "string"
|
|
433
|
+
},
|
|
434
|
+
"tenantId": {
|
|
435
|
+
"type": "string"
|
|
436
|
+
},
|
|
437
|
+
"personalAccessToken": {
|
|
438
|
+
"type": "string"
|
|
439
|
+
}
|
|
440
|
+
}
|
|
441
|
+
}
|
|
399
442
|
}
|
|
400
443
|
},
|
|
401
444
|
"required": [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<!doctype html><html lang="en"><head><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Backstage is an open platform for building developer portals"/><link rel="apple-touch-icon" href="/logo192.png"/><link rel="manifest" href="/manifest.json" crossorigin="use-credentials"/><link rel="icon" href="/favicon.ico"/><link rel="shortcut icon" href="/favicon.ico"/><link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png"/><link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png"/><link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png"/><link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5"/><title>Techdocs Preview App</title><script defer="defer" src="/static/runtime.
|
|
1
|
+
<!doctype html><html lang="en"><head><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Backstage is an open platform for building developer portals"/><link rel="apple-touch-icon" href="/logo192.png"/><link rel="manifest" href="/manifest.json" crossorigin="use-credentials"/><link rel="icon" href="/favicon.ico"/><link rel="shortcut icon" href="/favicon.ico"/><link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png"/><link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png"/><link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png"/><link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5"/><title>Techdocs Preview App</title><script defer="defer" src="/static/runtime.2d4c0606.js"></script><script defer="defer" src="/static/module-material-ui.1afbaa53.js"></script><script defer="defer" src="/static/module-lodash.4c9a1319.js"></script><script defer="defer" src="/static/module-date-fns.b8b6c380.js"></script><script defer="defer" src="/static/module-yaml.00a97896.js"></script><script defer="defer" src="/static/module-ajv.be583887.js"></script><script defer="defer" src="/static/module-material-table.1d463a12.js"></script><script defer="defer" src="/static/module-luxon.b1d74b2d.js"></script><script defer="defer" src="/static/module-octokit.7416db07.js"></script><script defer="defer" src="/static/module-react-dom.bd3fd0c6.js"></script><script defer="defer" src="/static/module-react-router.d2e96318.js"></script><script defer="defer" src="/static/module-react-router-dom.ef191c8f.js"></script><script defer="defer" src="/static/module-zod.49079951.js"></script><script defer="defer" src="/static/module-i18next.3eb80014.js"></script><script defer="defer" src="/static/module-react-beautiful-dnd.ad887878.js"></script><script defer="defer" src="/static/vendor.2d4c0606.js"></script><script defer="defer" src="/static/main.2d4c0606.js"></script></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
"use strict";(()=>{(self.webpackChunktechdocs_cli_embedded_app=self.webpackChunktechdocs_cli_embedded_app||[]).push([[1032,732],{81032:function(C,i,n){n.r(i),n.d(i,{DependsOnResourcesCard:function(){return s}});var e=n(52322),c=n(25271),t=n(2784),r=n(732);function s(u){const{variant:a="gridItem",title:l="Depends on resources",columns:m=r.resourceEntityColumns,tableOptions:d={}}=u;return(0,e.jsx)(r.RelatedEntitiesCard,{variant:a,title:l,entityKind:"Resource",relationType:c.nP,columns:m,emptyMessage:"No resource is a dependency of this component",emptyHelpLink:r.componentEntityHelpLink,asRenderableEntities:r.asResourceEntities,tableOptions:d})}},732:function(C,i,n){n.r(i),n.d(i,{RelatedEntitiesCard:function(){return u},asComponentEntities:function(){return m},asResourceEntities:function(){return h},asSystemEntities:function(){return g},componentEntityColumns:function(){return a},componentEntityHelpLink:function(){return l},resourceEntityColumns:function(){return d},resourceEntityHelpLink:function(){return E},systemEntityColumns:function(){return v},systemEntityHelpLink:function(){return R}});var e=n(52322),c=n(90436),t=n(39709),r=n(2784),s=n(53974);function u(o){const{variant:p="gridItem",title:y,columns:j,entityKind:x,relationType:L,emptyMessage:k,emptyHelpLink:H,asRenderableEntities:O,tableOptions:D={}}=o,{entity:K}=(0,t.X2)(),{entities:S,loading:M,error:f}=(0,t.eK)(K,{type:L,kind:x});return M?(0,e.jsx)(s.rJ,{variant:p,title:y,children:(0,e.jsx)(s.Ex,{})}):f?(0,e.jsx)(s.rJ,{variant:p,title:y,children:(0,e.jsx)(s.Gk,{error:f})}):(0,e.jsx)(t.u3,{title:y,variant:p,emptyContent:(0,e.jsxs)("div",{style:{textAlign:"center"},children:[(0,e.jsx)(c.Z,{variant:"body1",children:k}),(0,e.jsx)(c.Z,{variant:"body2",children:(0,e.jsx)(s.rU,{to:H,children:"Learn how to change this."})})]}),columns:j,entities:O(S||[]),tableOptions:D})}const a=[t.u3.columns.createEntityRefColumn({defaultKind:"component"}),t.u3.columns.createOwnerColumn(),t.u3.columns.createSpecTypeColumn(),t.u3.columns.createSpecLifecycleColumn(),t.u3.columns.createMetadataDescriptionColumn()],l="https://backstage.io/docs/features/software-catalog/descriptor-format#kind-component",m=o=>o,d=[t.u3.columns.createEntityRefColumn({defaultKind:"resource"}),t.u3.columns.createOwnerColumn(),t.u3.columns.createSpecTypeColumn(),t.u3.columns.createSpecLifecycleColumn(),t.u3.columns.createMetadataDescriptionColumn()],E="https://backstage.io/docs/features/software-catalog/descriptor-format#kind-resource",h=o=>o,v=[t.u3.columns.createEntityRefColumn({defaultKind:"system"}),t.u3.columns.createOwnerColumn(),t.u3.columns.createMetadataDescriptionColumn()],R="https://backstage.io/docs/features/software-catalog/descriptor-format#kind-system",g=o=>o}}]);})();
|
|
2
2
|
|
|
3
|
-
//# sourceMappingURL=1032.
|
|
3
|
+
//# sourceMappingURL=1032.f8378b05.chunk.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"static/1032.5be56bbf.chunk.js","mappings":"gQAsCO,SAASA,EAAuBC,EAAoC,CACzE,KAAM,CACJC,QAAAA,EAAU,WACVC,MAAAA,EAAQ,uBACRC,QAAAA,EAAUC,EAAAA,sBACVC,aAAAA,EAAe,CAAC,CAAC,EACfL,EACJ,SACE,OAACM,EAAAA,oBAAmBA,CAClBL,QAASA,EACTC,MAAOA,EACPK,WAAW,WACXC,aAAcC,EAAAA,GACdN,QAASA,EACTO,aAAa,gDACbC,cAAeC,EAAAA,wBACfC,qBAAsBC,EAAAA,mBACtBT,aAAcA,C,EAGpB,C,mgBCCO,SAASC,EACdN,EAAkC,CAElC,KAAM,CACJC,QAAAA,EAAU,WACVC,MAAAA,EACAC,QAAAA,EACAI,WAAAA,EACAC,aAAAA,EACAE,aAAAA,EACAC,cAAAA,EACAE,qBAAAA,EACAR,aAAAA,EAAe,CAAC,CAAC,EACfL,EAEE,CAAEe,OAAAA,CAAO,KAAIC,EAAAA,IAAU,EACvB,CAAEC,SAAAA,EAAUC,QAAAA,EAASC,MAAAA,CAAM,KAAIC,EAAAA,IAAmBL,EAAQ,CAC9DM,KAAMb,EACNc,KAAMf,CACR,CAAC,EAED,OAAIW,KAEA,OAACK,EAAAA,GAAQA,CAACtB,QAASA,EAASC,MAAOA,E,YACjC,OAACsB,EAAAA,GAAQA,CAAAA,CAAAA,C,GAKXL,KAEA,OAACI,EAAAA,GAAQA,CAACtB,QAASA,EAASC,MAAOA,E,YACjC,OAACuB,EAAAA,GAAkBA,CAACN,MAAOA,C,QAM/B,OAACO,EAAAA,GAAWA,CACVxB,MAAOA,EACPD,QAASA,EACT0B,gBACE,QAACC,MAAAA,CAAIC,MAAO,CAAEC,UAAW,QAAS,E,aAChC,OAACC,EAAAA,EAAUA,CAAC9B,QAAQ,Q,SAASS,C,MAC7B,OAACqB,EAAAA,EAAUA,CAAC9B,QAAQ,Q,YAClB,OAAC+B,EAAAA,GAAIA,CAACC,GAAItB,E,SAAe,2B,QAI/BR,QAASA,EACTc,SAAUJ,EAAqBI,GAAY,CAAC,CAAC,EAC7CZ,aAAcA,C,EAGpB,CCzFO,MAAM6B,EAAyD,CACpER,EAAAA,GAAYvB,QAAQgC,sBAAsB,CAAEC,YAAa,WAAY,CAAC,EACtEV,EAAAA,GAAYvB,QAAQkC,kBAAkB,EACtCX,EAAAA,GAAYvB,QAAQmC,qBAAqB,EACzCZ,EAAAA,GAAYvB,QAAQoC,0BAA0B,EAC9Cb,EAAAA,GAAYvB,QAAQqC,gCAAgC,C,EAEzC5B,EACX,uFACW6B,EAAuBxB,GAClCA,EAEWb,EAAuD,CAClEsB,EAAAA,GAAYvB,QAAQgC,sBAAsB,CAAEC,YAAa,UAAW,CAAC,EACrEV,EAAAA,GAAYvB,QAAQkC,kBAAkB,EACtCX,EAAAA,GAAYvB,QAAQmC,qBAAqB,EACzCZ,EAAAA,GAAYvB,QAAQoC,0BAA0B,EAC9Cb,EAAAA,GAAYvB,QAAQqC,gCAAgC,C,EAEzCE,EACX,sFACW5B,EAAsBG,GACjCA,EAEW0B,EAAmD,CAC9DjB,EAAAA,GAAYvB,QAAQgC,sBAAsB,CAAEC,YAAa,QAAS,CAAC,EACnEV,EAAAA,GAAYvB,QAAQkC,kBAAkB,EACtCX,EAAAA,GAAYvB,QAAQqC,gCAAgC,C,EAEzCI,EACX,oFACWC,EAAoB5B,GAC/BA,C","sources":["webpack://techdocs-cli-embedded-app/../../plugins/catalog/src/components/DependsOnResourcesCard/DependsOnResourcesCard.tsx","webpack://techdocs-cli-embedded-app/../../plugins/catalog/src/components/RelatedEntitiesCard/RelatedEntitiesCard.tsx","webpack://techdocs-cli-embedded-app/../../plugins/catalog/src/components/RelatedEntitiesCard/presets.ts"],"sourcesContent":["/*\n * Copyright 2020 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { RELATION_DEPENDS_ON, ResourceEntity } from '@backstage/catalog-model';\nimport {\n InfoCardVariants,\n TableColumn,\n TableOptions,\n} from '@backstage/core-components';\nimport React from 'react';\nimport {\n asResourceEntities,\n componentEntityHelpLink,\n RelatedEntitiesCard,\n resourceEntityColumns,\n} from '../RelatedEntitiesCard';\n\n/** @public */\nexport interface DependsOnResourcesCardProps {\n variant?: InfoCardVariants;\n title?: string;\n columns?: TableColumn<ResourceEntity>[];\n tableOptions?: TableOptions;\n}\n\nexport function DependsOnResourcesCard(props: DependsOnResourcesCardProps) {\n const {\n variant = 'gridItem',\n title = 'Depends on resources',\n columns = resourceEntityColumns,\n tableOptions = {},\n } = props;\n return (\n <RelatedEntitiesCard\n variant={variant}\n title={title}\n entityKind=\"Resource\"\n relationType={RELATION_DEPENDS_ON}\n columns={columns}\n emptyMessage=\"No resource is a dependency of this component\"\n emptyHelpLink={componentEntityHelpLink}\n asRenderableEntities={asResourceEntities}\n tableOptions={tableOptions}\n />\n );\n}\n","/*\n * Copyright 2020 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { Entity } from '@backstage/catalog-model';\nimport { Typography } from '@material-ui/core';\nimport {\n EntityTable,\n useEntity,\n useRelatedEntities,\n} from '@backstage/plugin-catalog-react';\nimport React from 'react';\nimport {\n InfoCard,\n InfoCardVariants,\n Link,\n Progress,\n ResponseErrorPanel,\n TableColumn,\n TableOptions,\n} from '@backstage/core-components';\n\n/** @public */\nexport type RelatedEntitiesCardProps<T extends Entity> = {\n variant?: InfoCardVariants;\n title: string;\n columns: TableColumn<T>[];\n entityKind?: string;\n relationType: string;\n emptyMessage: string;\n emptyHelpLink: string;\n asRenderableEntities: (entities: Entity[]) => T[];\n tableOptions?: TableOptions;\n};\n\n/**\n * A low level card component that can be used as a building block for more\n * specific cards.\n *\n * @remarks\n *\n * You probably want to make a dedicated component for your needs, which renders\n * this card as its implementation with some of the props set to the appropriate\n * values.\n *\n * @public\n */\nexport function RelatedEntitiesCard<T extends Entity>(\n props: RelatedEntitiesCardProps<T>,\n) {\n const {\n variant = 'gridItem',\n title,\n columns,\n entityKind,\n relationType,\n emptyMessage,\n emptyHelpLink,\n asRenderableEntities,\n tableOptions = {},\n } = props;\n\n const { entity } = useEntity();\n const { entities, loading, error } = useRelatedEntities(entity, {\n type: relationType,\n kind: entityKind,\n });\n\n if (loading) {\n return (\n <InfoCard variant={variant} title={title}>\n <Progress />\n </InfoCard>\n );\n }\n\n if (error) {\n return (\n <InfoCard variant={variant} title={title}>\n <ResponseErrorPanel error={error} />\n </InfoCard>\n );\n }\n\n return (\n <EntityTable\n title={title}\n variant={variant}\n emptyContent={\n <div style={{ textAlign: 'center' }}>\n <Typography variant=\"body1\">{emptyMessage}</Typography>\n <Typography variant=\"body2\">\n <Link to={emptyHelpLink}>Learn how to change this.</Link>\n </Typography>\n </div>\n }\n columns={columns}\n entities={asRenderableEntities(entities || [])}\n tableOptions={tableOptions}\n />\n );\n}\n","/*\n * Copyright 2021 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport {\n ComponentEntity,\n Entity,\n ResourceEntity,\n SystemEntity,\n} from '@backstage/catalog-model';\nimport { EntityTable } from '@backstage/plugin-catalog-react';\nimport { TableColumn } from '@backstage/core-components';\n\nexport const componentEntityColumns: TableColumn<ComponentEntity>[] = [\n EntityTable.columns.createEntityRefColumn({ defaultKind: 'component' }),\n EntityTable.columns.createOwnerColumn(),\n EntityTable.columns.createSpecTypeColumn(),\n EntityTable.columns.createSpecLifecycleColumn(),\n EntityTable.columns.createMetadataDescriptionColumn(),\n];\nexport const componentEntityHelpLink: string =\n 'https://backstage.io/docs/features/software-catalog/descriptor-format#kind-component';\nexport const asComponentEntities = (entities: Entity[]): ComponentEntity[] =>\n entities as ComponentEntity[];\n\nexport const resourceEntityColumns: TableColumn<ResourceEntity>[] = [\n EntityTable.columns.createEntityRefColumn({ defaultKind: 'resource' }),\n EntityTable.columns.createOwnerColumn(),\n EntityTable.columns.createSpecTypeColumn(),\n EntityTable.columns.createSpecLifecycleColumn(),\n EntityTable.columns.createMetadataDescriptionColumn(),\n];\nexport const resourceEntityHelpLink: string =\n 'https://backstage.io/docs/features/software-catalog/descriptor-format#kind-resource';\nexport const asResourceEntities = (entities: Entity[]): ResourceEntity[] =>\n entities as ResourceEntity[];\n\nexport const systemEntityColumns: TableColumn<SystemEntity>[] = [\n EntityTable.columns.createEntityRefColumn({ defaultKind: 'system' }),\n EntityTable.columns.createOwnerColumn(),\n EntityTable.columns.createMetadataDescriptionColumn(),\n];\nexport const systemEntityHelpLink: string =\n 'https://backstage.io/docs/features/software-catalog/descriptor-format#kind-system';\nexport const asSystemEntities = (entities: Entity[]): SystemEntity[] =>\n entities as SystemEntity[];\n"],"names":["DependsOnResourcesCard","props","variant","title","columns","resourceEntityColumns","tableOptions","RelatedEntitiesCard","entityKind","relationType","RELATION_DEPENDS_ON","emptyMessage","emptyHelpLink","componentEntityHelpLink","asRenderableEntities","asResourceEntities","entity","useEntity","entities","loading","error","useRelatedEntities","type","kind","InfoCard","Progress","ResponseErrorPanel","EntityTable","emptyContent","div","style","textAlign","Typography","Link","to","componentEntityColumns","createEntityRefColumn","defaultKind","createOwnerColumn","createSpecTypeColumn","createSpecLifecycleColumn","createMetadataDescriptionColumn","asComponentEntities","resourceEntityHelpLink","systemEntityColumns","systemEntityHelpLink","asSystemEntities"],"sourceRoot":""}
|
|
1
|
+
{"version":3,"file":"static/1032.f8378b05.chunk.js","mappings":"gQAsCO,SAASA,EAAuBC,EAAoC,CACzE,KAAM,CACJC,QAAAA,EAAU,WACVC,MAAAA,EAAQ,uBACRC,QAAAA,EAAUC,EAAAA,sBACVC,aAAAA,EAAe,CAAC,CAAC,EACfL,EACJ,SACE,OAACM,EAAAA,oBAAmBA,CAClBL,QAASA,EACTC,MAAOA,EACPK,WAAW,WACXC,aAAcC,EAAAA,GACdN,QAASA,EACTO,aAAa,gDACbC,cAAeC,EAAAA,wBACfC,qBAAsBC,EAAAA,mBACtBT,aAAcA,C,EAGpB,C,mgBCCO,SAASC,EACdN,EAAkC,CAElC,KAAM,CACJC,QAAAA,EAAU,WACVC,MAAAA,EACAC,QAAAA,EACAI,WAAAA,EACAC,aAAAA,EACAE,aAAAA,EACAC,cAAAA,EACAE,qBAAAA,EACAR,aAAAA,EAAe,CAAC,CAAC,EACfL,EAEE,CAAEe,OAAAA,CAAO,KAAIC,EAAAA,IAAU,EACvB,CAAEC,SAAAA,EAAUC,QAAAA,EAASC,MAAAA,CAAM,KAAIC,EAAAA,IAAmBL,EAAQ,CAC9DM,KAAMb,EACNc,KAAMf,CACR,CAAC,EAED,OAAIW,KAEA,OAACK,EAAAA,GAAQA,CAACtB,QAASA,EAASC,MAAOA,E,YACjC,OAACsB,EAAAA,GAAQA,CAAAA,CAAAA,C,GAKXL,KAEA,OAACI,EAAAA,GAAQA,CAACtB,QAASA,EAASC,MAAOA,E,YACjC,OAACuB,EAAAA,GAAkBA,CAACN,MAAOA,C,QAM/B,OAACO,EAAAA,GAAWA,CACVxB,MAAOA,EACPD,QAASA,EACT0B,gBACE,QAACC,MAAAA,CAAIC,MAAO,CAAEC,UAAW,QAAS,E,aAChC,OAACC,EAAAA,EAAUA,CAAC9B,QAAQ,Q,SAASS,C,MAC7B,OAACqB,EAAAA,EAAUA,CAAC9B,QAAQ,Q,YAClB,OAAC+B,EAAAA,GAAIA,CAACC,GAAItB,E,SAAe,2B,QAI/BR,QAASA,EACTc,SAAUJ,EAAqBI,GAAY,CAAC,CAAC,EAC7CZ,aAAcA,C,EAGpB,CCzFO,MAAM6B,EAAyD,CACpER,EAAAA,GAAYvB,QAAQgC,sBAAsB,CAAEC,YAAa,WAAY,CAAC,EACtEV,EAAAA,GAAYvB,QAAQkC,kBAAkB,EACtCX,EAAAA,GAAYvB,QAAQmC,qBAAqB,EACzCZ,EAAAA,GAAYvB,QAAQoC,0BAA0B,EAC9Cb,EAAAA,GAAYvB,QAAQqC,gCAAgC,C,EAEzC5B,EACX,uFACW6B,EAAuBxB,GAClCA,EAEWb,EAAuD,CAClEsB,EAAAA,GAAYvB,QAAQgC,sBAAsB,CAAEC,YAAa,UAAW,CAAC,EACrEV,EAAAA,GAAYvB,QAAQkC,kBAAkB,EACtCX,EAAAA,GAAYvB,QAAQmC,qBAAqB,EACzCZ,EAAAA,GAAYvB,QAAQoC,0BAA0B,EAC9Cb,EAAAA,GAAYvB,QAAQqC,gCAAgC,C,EAEzCE,EACX,sFACW5B,EAAsBG,GACjCA,EAEW0B,EAAmD,CAC9DjB,EAAAA,GAAYvB,QAAQgC,sBAAsB,CAAEC,YAAa,QAAS,CAAC,EACnEV,EAAAA,GAAYvB,QAAQkC,kBAAkB,EACtCX,EAAAA,GAAYvB,QAAQqC,gCAAgC,C,EAEzCI,EACX,oFACWC,EAAoB5B,GAC/BA,C","sources":["webpack://techdocs-cli-embedded-app/../../plugins/catalog/src/components/DependsOnResourcesCard/DependsOnResourcesCard.tsx","webpack://techdocs-cli-embedded-app/../../plugins/catalog/src/components/RelatedEntitiesCard/RelatedEntitiesCard.tsx","webpack://techdocs-cli-embedded-app/../../plugins/catalog/src/components/RelatedEntitiesCard/presets.ts"],"sourcesContent":["/*\n * Copyright 2020 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { RELATION_DEPENDS_ON, ResourceEntity } from '@backstage/catalog-model';\nimport {\n InfoCardVariants,\n TableColumn,\n TableOptions,\n} from '@backstage/core-components';\nimport React from 'react';\nimport {\n asResourceEntities,\n componentEntityHelpLink,\n RelatedEntitiesCard,\n resourceEntityColumns,\n} from '../RelatedEntitiesCard';\n\n/** @public */\nexport interface DependsOnResourcesCardProps {\n variant?: InfoCardVariants;\n title?: string;\n columns?: TableColumn<ResourceEntity>[];\n tableOptions?: TableOptions;\n}\n\nexport function DependsOnResourcesCard(props: DependsOnResourcesCardProps) {\n const {\n variant = 'gridItem',\n title = 'Depends on resources',\n columns = resourceEntityColumns,\n tableOptions = {},\n } = props;\n return (\n <RelatedEntitiesCard\n variant={variant}\n title={title}\n entityKind=\"Resource\"\n relationType={RELATION_DEPENDS_ON}\n columns={columns}\n emptyMessage=\"No resource is a dependency of this component\"\n emptyHelpLink={componentEntityHelpLink}\n asRenderableEntities={asResourceEntities}\n tableOptions={tableOptions}\n />\n );\n}\n","/*\n * Copyright 2020 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { Entity } from '@backstage/catalog-model';\nimport { Typography } from '@material-ui/core';\nimport {\n EntityTable,\n useEntity,\n useRelatedEntities,\n} from '@backstage/plugin-catalog-react';\nimport React from 'react';\nimport {\n InfoCard,\n InfoCardVariants,\n Link,\n Progress,\n ResponseErrorPanel,\n TableColumn,\n TableOptions,\n} from '@backstage/core-components';\n\n/** @public */\nexport type RelatedEntitiesCardProps<T extends Entity> = {\n variant?: InfoCardVariants;\n title: string;\n columns: TableColumn<T>[];\n entityKind?: string;\n relationType: string;\n emptyMessage: string;\n emptyHelpLink: string;\n asRenderableEntities: (entities: Entity[]) => T[];\n tableOptions?: TableOptions;\n};\n\n/**\n * A low level card component that can be used as a building block for more\n * specific cards.\n *\n * @remarks\n *\n * You probably want to make a dedicated component for your needs, which renders\n * this card as its implementation with some of the props set to the appropriate\n * values.\n *\n * @public\n */\nexport function RelatedEntitiesCard<T extends Entity>(\n props: RelatedEntitiesCardProps<T>,\n) {\n const {\n variant = 'gridItem',\n title,\n columns,\n entityKind,\n relationType,\n emptyMessage,\n emptyHelpLink,\n asRenderableEntities,\n tableOptions = {},\n } = props;\n\n const { entity } = useEntity();\n const { entities, loading, error } = useRelatedEntities(entity, {\n type: relationType,\n kind: entityKind,\n });\n\n if (loading) {\n return (\n <InfoCard variant={variant} title={title}>\n <Progress />\n </InfoCard>\n );\n }\n\n if (error) {\n return (\n <InfoCard variant={variant} title={title}>\n <ResponseErrorPanel error={error} />\n </InfoCard>\n );\n }\n\n return (\n <EntityTable\n title={title}\n variant={variant}\n emptyContent={\n <div style={{ textAlign: 'center' }}>\n <Typography variant=\"body1\">{emptyMessage}</Typography>\n <Typography variant=\"body2\">\n <Link to={emptyHelpLink}>Learn how to change this.</Link>\n </Typography>\n </div>\n }\n columns={columns}\n entities={asRenderableEntities(entities || [])}\n tableOptions={tableOptions}\n />\n );\n}\n","/*\n * Copyright 2021 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport {\n ComponentEntity,\n Entity,\n ResourceEntity,\n SystemEntity,\n} from '@backstage/catalog-model';\nimport { EntityTable } from '@backstage/plugin-catalog-react';\nimport { TableColumn } from '@backstage/core-components';\n\nexport const componentEntityColumns: TableColumn<ComponentEntity>[] = [\n EntityTable.columns.createEntityRefColumn({ defaultKind: 'component' }),\n EntityTable.columns.createOwnerColumn(),\n EntityTable.columns.createSpecTypeColumn(),\n EntityTable.columns.createSpecLifecycleColumn(),\n EntityTable.columns.createMetadataDescriptionColumn(),\n];\nexport const componentEntityHelpLink: string =\n 'https://backstage.io/docs/features/software-catalog/descriptor-format#kind-component';\nexport const asComponentEntities = (entities: Entity[]): ComponentEntity[] =>\n entities as ComponentEntity[];\n\nexport const resourceEntityColumns: TableColumn<ResourceEntity>[] = [\n EntityTable.columns.createEntityRefColumn({ defaultKind: 'resource' }),\n EntityTable.columns.createOwnerColumn(),\n EntityTable.columns.createSpecTypeColumn(),\n EntityTable.columns.createSpecLifecycleColumn(),\n EntityTable.columns.createMetadataDescriptionColumn(),\n];\nexport const resourceEntityHelpLink: string =\n 'https://backstage.io/docs/features/software-catalog/descriptor-format#kind-resource';\nexport const asResourceEntities = (entities: Entity[]): ResourceEntity[] =>\n entities as ResourceEntity[];\n\nexport const systemEntityColumns: TableColumn<SystemEntity>[] = [\n EntityTable.columns.createEntityRefColumn({ defaultKind: 'system' }),\n EntityTable.columns.createOwnerColumn(),\n EntityTable.columns.createMetadataDescriptionColumn(),\n];\nexport const systemEntityHelpLink: string =\n 'https://backstage.io/docs/features/software-catalog/descriptor-format#kind-system';\nexport const asSystemEntities = (entities: Entity[]): SystemEntity[] =>\n entities as SystemEntity[];\n"],"names":["DependsOnResourcesCard","props","variant","title","columns","resourceEntityColumns","tableOptions","RelatedEntitiesCard","entityKind","relationType","RELATION_DEPENDS_ON","emptyMessage","emptyHelpLink","componentEntityHelpLink","asRenderableEntities","asResourceEntities","entity","useEntity","entities","loading","error","useRelatedEntities","type","kind","InfoCard","Progress","ResponseErrorPanel","EntityTable","emptyContent","div","style","textAlign","Typography","Link","to","componentEntityColumns","createEntityRefColumn","defaultKind","createOwnerColumn","createSpecTypeColumn","createSpecLifecycleColumn","createMetadataDescriptionColumn","asComponentEntities","resourceEntityHelpLink","systemEntityColumns","systemEntityHelpLink","asSystemEntities"],"sourceRoot":""}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";(()=>{(self.webpackChunktechdocs_cli_embedded_app=self.webpackChunktechdocs_cli_embedded_app||[]).push([[1093],{96686:function(Se,qt,pt){pt.d(qt,{O:function(){return Dt}});var st=pt(2784);function at(ct){var et=(0,st.useRef)(ct);return et.current=ct,(0,st.useMemo)(function(){return Object.freeze({get current(){return et.current}})},[])}var Lt=pt(29862);function gt(ct){var et=(0,st.useState)(ct),Et=et[0],Rt=et[1],Nt=(0,Lt.t)(!0);return[Et,(0,st.useCallback)(function(bt){Nt()&&Rt(bt)},[])]}function _t(ct,et){return typeof ct=="function"?ct(et):ct}function Dt(ct,et){ct===void 0&&(ct=!1),et===void 0&&(et=!0);var Et=gt(ct),Rt=Et[0],Nt=Et[1],bt=at(et);return[Rt,(0,st.useCallback)(function(xt){Nt(function(Vt){return xt===void 0||bt.current&&typeof xt=="object"&&(xt.constructor.name==="SyntheticBaseEvent"||typeof xt._reactName=="string")?!Vt:Boolean(_t(xt,Vt))})},[])]}},63494:function(Se,qt,pt){pt.d(qt,{Z:function(){return We}});var st=pt(2784);const at="aaa1rp3barth4b0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0faromeo7ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4vianca6w0s2x0a2z0ure5ba0by2idu3namex3narepublic11d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2ntley5rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re2s2c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y0eats7k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0cast4mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking0channel11l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dabur3d1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t0isalat7u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0at2delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d0network8tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntdoor4ier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0ardian6cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5gtv3iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0eles2s3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6logistics9properties14fh2g1h1i0a1ds2m1nder2le4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3ncaster5ia3d0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4de2k2psy3ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0cys3drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7serati6ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic3tual5v1w1x1y1z2na0b1goya4me2tura4vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rthwesternmutual14on4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9dnavy5lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3ssagens7y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0america6xi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cher3ks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0a1b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp2w2ell3ia1ksha5oes2p0ping5uji3w0time7i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ffany5ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0channel7ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5m\xF6gensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lkswagen7vo3te1ing3o2yage5u0elos6wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4finity6ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2",Lt="\u03B5\u03BB1\u03C52\u0431\u04331\u0435\u043B3\u0434\u0435\u0442\u04384\u0435\u044E2\u043A\u0430\u0442\u043E\u043B\u0438\u043A6\u043E\u043C3\u043C\u043A\u04342\u043E\u043D1\u0441\u043A\u0432\u04306\u043E\u043D\u043B\u0430\u0439\u043D5\u0440\u04333\u0440\u0443\u04412\u04442\u0441\u0430\u0439\u04423\u0440\u04313\u0443\u043A\u04403\u049B\u0430\u04373\u0570\u0561\u05753\u05D9\u05E9\u05E8\u05D0\u05DC5\u05E7\u05D5\u05DD3\u0627\u0628\u0648\u0638\u0628\u064A5\u062A\u0635\u0627\u0644\u0627\u062A6\u0631\u0627\u0645\u0643\u06485\u0644\u0627\u0631\u062F\u06464\u0628\u062D\u0631\u064A\u06465\u062C\u0632\u0627\u0626\u06315\u0633\u0639\u0648\u062F\u064A\u06296\u0639\u0644\u064A\u0627\u06465\u0645\u063A\u0631\u06285\u0645\u0627\u0631\u0627\u062A5\u06CC\u0631\u0627\u06465\u0628\u0627\u0631\u062A2\u0632\u0627\u06314\u064A\u062A\u06433\u06BE\u0627\u0631\u062A5\u062A\u0648\u0646\u06334\u0633\u0648\u062F\u0627\u06463\u0631\u064A\u06295\u0634\u0628\u0643\u06294\u0639\u0631\u0627\u06422\u06282\u0645\u0627\u06464\u0641\u0644\u0633\u0637\u064A\u06466\u0642\u0637\u06313\u0643\u0627\u062B\u0648\u0644\u064A\u06436\u0648\u06453\u0645\u0635\u06312\u0644\u064A\u0633\u064A\u06275\u0648\u0631\u064A\u062A\u0627\u0646\u064A\u06277\u0642\u06394\u0647\u0645\u0631\u0627\u06475\u067E\u0627\u06A9\u0633\u062A\u0627\u06467\u0680\u0627\u0631\u062A4\u0915\u0949\u092E3\u0928\u0947\u091F3\u092D\u093E\u0930\u09240\u092E\u094D3\u094B\u09245\u0938\u0902\u0917\u0920\u09285\u09AC\u09BE\u0982\u09B2\u09BE5\u09AD\u09BE\u09B0\u09A42\u09F0\u09A44\u0A2D\u0A3E\u0A30\u0A244\u0AAD\u0ABE\u0AB0\u0AA44\u0B2D\u0B3E\u0B30\u0B244\u0B87\u0BA8\u0BCD\u0BA4\u0BBF\u0BAF\u0BBE6\u0BB2\u0B99\u0BCD\u0B95\u0BC86\u0B9A\u0BBF\u0B99\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0BC2\u0BB0\u0BCD11\u0C2D\u0C3E\u0C30\u0C24\u0C4D5\u0CAD\u0CBE\u0CB0\u0CA44\u0D2D\u0D3E\u0D30\u0D24\u0D025\u0DBD\u0D82\u0D9A\u0DCF4\u0E04\u0E2D\u0E213\u0E44\u0E17\u0E223\u0EA5\u0EB2\u0EA73\u10D2\u10D42\u307F\u3093\u306A3\u30A2\u30DE\u30BE\u30F34\u30AF\u30E9\u30A6\u30C94\u30B0\u30FC\u30B0\u30EB4\u30B3\u30E02\u30B9\u30C8\u30A23\u30BB\u30FC\u30EB3\u30D5\u30A1\u30C3\u30B7\u30E7\u30F36\u30DD\u30A4\u30F3\u30C84\u4E16\u754C2\u4E2D\u4FE11\u56FD1\u570B1\u6587\u7F513\u4E9A\u9A6C\u900A3\u4F01\u4E1A2\u4F5B\u5C712\u4FE1\u606F2\u5065\u5EB72\u516B\u53662\u516C\u53F81\u76CA2\u53F0\u6E7E1\u70632\u5546\u57CE1\u5E971\u68072\u5609\u91CC0\u5927\u9152\u5E975\u5728\u7EBF2\u5927\u62FF2\u5929\u4E3B\u65593\u5A31\u4E502\u5BB6\u96FB2\u5E7F\u4E1C2\u5FAE\u535A2\u6148\u55842\u6211\u7231\u4F603\u624B\u673A2\u62DB\u80582\u653F\u52A11\u5E9C2\u65B0\u52A0\u57612\u95FB2\u65F6\u5C1A2\u66F8\u7C4D2\u673A\u67842\u6DE1\u9A6C\u95213\u6E38\u620F2\u6FB3\u95802\u70B9\u770B2\u79FB\u52A82\u7EC4\u7EC7\u673A\u67844\u7F51\u57401\u5E971\u7AD91\u7EDC2\u8054\u901A2\u8C37\u6B4C2\u8D2D\u72692\u901A\u8CA92\u96C6\u56E22\u96FB\u8A0A\u76C8\u79D14\u98DE\u5229\u6D663\u98DF\u54C12\u9910\u53852\u9999\u683C\u91CC\u62C93\u6E2F2\uB2F7\uB1371\uCEF42\uC0BC\uC1312\uD55C\uAD6D2",gt=(e,i)=>{for(const n in i)e[n]=i[n];return e},_t="numeric",Dt="ascii",ct="alpha",et="asciinumeric",Et="alphanumeric",Rt="domain",Nt="emoji",bt="scheme",xt="slashscheme",Vt="whitespace";function ut(e,i){return e in i||(i[e]=[]),i[e]}function nt(e,i,n){i[_t]&&(i[et]=!0,i[Et]=!0),i[Dt]&&(i[et]=!0,i[ct]=!0),i[et]&&(i[Et]=!0),i[ct]&&(i[Et]=!0),i[Et]&&(i[Rt]=!0),i[Nt]&&(i[Rt]=!0);for(const l in i){const h=ut(l,n);h.indexOf(e)<0&&h.push(e)}}function wt(e,i){const n={};for(const l in i)i[l].indexOf(e)>=0&&(n[l]=!0);return n}function Q(e){e===void 0&&(e=null),this.j={},this.jr=[],this.jd=null,this.t=e}Q.groups={},Q.prototype={accepts(){return!!this.t},go(e){const i=this,n=i.j[e];if(n)return n;for(let l=0;l<i.jr.length;l++){const h=i.jr[l][0],v=i.jr[l][1];if(v&&h.test(e))return v}return i.jd},has(e,i){return i===void 0&&(i=!1),i?e in this.j:!!this.go(e)},ta(e,i,n,l){for(let h=0;h<e.length;h++)this.tt(e[h],i,n,l)},tr(e,i,n,l){l=l||Q.groups;let h;return i&&i.j?h=i:(h=new Q(i),n&&l&&nt(i,n,l)),this.jr.push([e,h]),h},ts(e,i,n,l){let h=this;const v=e.length;if(!v)return h;for(let g=0;g<v-1;g++)h=h.tt(e[g]);return h.tt(e[v-1],i,n,l)},tt(e,i,n,l){l=l||Q.groups;const h=this;if(i&&i.j)return h.j[e]=i,i;const v=i;let g,T=h.go(e);if(T?(g=new Q,gt(g.j,T.j),g.jr.push.apply(g.jr,T.jr),g.jd=T.jd,g.t=T.t):g=new Q,v){if(l)if(g.t&&typeof g.t=="string"){const P=gt(wt(g.t,l),n);nt(v,P,l)}else n&&nt(v,n,l);g.t=v}return h.j[e]=g,g}};const _=(e,i,n,l,h)=>e.ta(i,n,l,h),lt=(e,i,n,l,h)=>e.tr(i,n,l,h),Tt=(e,i,n,l,h)=>e.ts(i,n,l,h),d=(e,i,n,l,h)=>e.tt(i,n,l,h),dt="WORD",ht="UWORD",zt="LOCALHOST",kt="TLD",z="UTLD",it="SCHEME",J="SLASH_SCHEME",Y="NUM",ft="WS",H="NL",j="OPENBRACE",vt="OPENBRACKET",At="OPENANGLEBRACKET",Pt="OPENPAREN",Mt="CLOSEBRACE",Gt="CLOSEBRACKET",Qt="CLOSEANGLEBRACKET",Zt="CLOSEPAREN",Xt="AMPERSAND",de="APOSTROPHE",he="ASTERISK",Ht="AT",Jt="BACKSLASH",le="BACKTICK",ce="CARET",Ft="COLON",Ie="COMMA",u="DOLLAR",t="DOT",r="EQUALS",o="EXCLAMATION",s="HYPHEN",m="PERCENT",f="PIPE",p="PLUS",S="POUND",O="QUERY",E="QUOTE",R="SEMI",y="SLASH",W="TILDE",B="UNDERSCORE",c="EMOJI",C="SYM";var M=Object.freeze({__proto__:null,WORD:dt,UWORD:ht,LOCALHOST:zt,TLD:kt,UTLD:z,SCHEME:it,SLASH_SCHEME:J,NUM:Y,WS:ft,NL:H,OPENBRACE:j,OPENBRACKET:vt,OPENANGLEBRACKET:At,OPENPAREN:Pt,CLOSEBRACE:Mt,CLOSEBRACKET:Gt,CLOSEANGLEBRACKET:Qt,CLOSEPAREN:Zt,AMPERSAND:Xt,APOSTROPHE:de,ASTERISK:he,AT:Ht,BACKSLASH:Jt,BACKTICK:le,CARET:ce,COLON:Ft,COMMA:Ie,DOLLAR:u,DOT:t,EQUALS:r,EXCLAMATION:o,HYPHEN:s,PERCENT:m,PIPE:f,PLUS:p,POUND:S,QUERY:O,QUOTE:E,SEMI:R,SLASH:y,TILDE:W,UNDERSCORE:B,EMOJI:c,SYM:C});const x=/[a-z]/,k=/\p{L}/u,N=/\p{Emoji}/u,a=/\ufe0f/,I=/\d/,w=/\s/;var b=Object.freeze({__proto__:null,ASCII_LETTER:x,LETTER:k,EMOJI:N,EMOJI_VARIATION:a,DIGIT:I,SPACE:w});const L=`
|
|
2
|
+
`,A="\uFE0F",F="\u200D";let K=null,Z=null;function rt(e){e===void 0&&(e=[]);const i={};Q.groups=i;const n=new Q;K==null&&(K=Ct(at)),Z==null&&(Z=Ct(Lt)),d(n,"'",de),d(n,"{",j),d(n,"[",vt),d(n,"<",At),d(n,"(",Pt),d(n,"}",Mt),d(n,"]",Gt),d(n,">",Qt),d(n,")",Zt),d(n,"&",Xt),d(n,"*",he),d(n,"@",Ht),d(n,"`",le),d(n,"^",ce),d(n,":",Ft),d(n,",",Ie),d(n,"$",u),d(n,".",t),d(n,"=",r),d(n,"!",o),d(n,"-",s),d(n,"%",m),d(n,"|",f),d(n,"+",p),d(n,"#",S),d(n,"?",O),d(n,'"',E),d(n,"/",y),d(n,";",R),d(n,"~",W),d(n,"_",B),d(n,"\\",Jt);const l=lt(n,I,Y,{[_t]:!0});lt(l,I,l);const h=lt(n,x,dt,{[Dt]:!0});lt(h,x,h);const v=lt(n,k,ht,{[ct]:!0});lt(v,x),lt(v,k,v);const g=lt(n,w,ft,{[Vt]:!0});d(n,L,H,{[Vt]:!0}),d(g,L),lt(g,w,g);const T=lt(n,N,c,{[Nt]:!0});lt(T,N,T),d(T,A,T);const P=d(T,F);lt(P,N,T);const $=[[x,h]],tt=[[x,null],[k,v]];for(let U=0;U<K.length;U++)X(n,K[U],kt,dt,$);for(let U=0;U<Z.length;U++)X(n,Z[U],z,ht,tt);nt(kt,{tld:!0,ascii:!0},i),nt(z,{utld:!0,alpha:!0},i),X(n,"file",it,dt,$),X(n,"mailto",it,dt,$),X(n,"http",J,dt,$),X(n,"https",J,dt,$),X(n,"ftp",J,dt,$),X(n,"ftps",J,dt,$),nt(it,{scheme:!0,ascii:!0},i),nt(J,{slashscheme:!0,ascii:!0},i),e=e.sort((U,G)=>U[0]>G[0]?1:-1);for(let U=0;U<e.length;U++){const G=e[U][0],Ot=e[U][1]?{[bt]:!0}:{[xt]:!0};G.indexOf("-")>=0?Ot[Rt]=!0:x.test(G)?I.test(G)?Ot[et]=!0:Ot[Dt]=!0:Ot[_t]=!0,Tt(n,G,G,Ot)}return Tt(n,"localhost",zt,{ascii:!0}),n.jd=new Q(C),{start:n,tokens:gt({groups:i},M)}}function ot(e,i){const n=V(i.replace(/[A-Z]/g,T=>T.toLowerCase())),l=n.length,h=[];let v=0,g=0;for(;g<l;){let T=e,P=null,$=0,tt=null,U=-1,G=-1;for(;g<l&&(P=T.go(n[g]));)T=P,T.accepts()?(U=0,G=0,tt=T):U>=0&&(U+=n[g].length,G++),$+=n[g].length,v+=n[g].length,g++;v-=U,g-=G,$-=U,h.push({t:tt.t,v:i.slice(v-$,v),s:v-$,e:v})}return h}function V(e){const i=[],n=e.length;let l=0;for(;l<n;){let h=e.charCodeAt(l),v,g=h<55296||h>56319||l+1===n||(v=e.charCodeAt(l+1))<56320||v>57343?e[l]:e.slice(l,l+2);i.push(g),l+=g.length}return i}function X(e,i,n,l,h){let v;const g=i.length;for(let T=0;T<g-1;T++){const P=i[T];e.j[P]?v=e.j[P]:(v=new Q(l),v.jr=h.slice(),e.j[P]=v),e=v}return v=new Q(n),v.jr=h.slice(),e.j[i[g-1]]=v,v}function Ct(e){const i=[],n=[];let l=0,h="0123456789";for(;l<e.length;){let v=0;for(;h.indexOf(e[l+v])>=0;)v++;if(v>0){i.push(n.join(""));for(let g=parseInt(e.substring(l,l+v),10);g>0;g--)n.pop();l+=v}else n.push(e[l]),l++}return i}const St={defaultProtocol:"http",events:null,format:Ut,formatHref:Ut,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function It(e,i){i===void 0&&(i=null);let n=gt({},St);e&&(n=gt(n,e instanceof It?e.o:e));const l=n.ignoreTags,h=[];for(let v=0;v<l.length;v++)h.push(l[v].toUpperCase());this.o=n,i&&(this.defaultRender=i),this.ignoreTags=h}It.prototype={o:St,ignoreTags:[],defaultRender(e){return e},check(e){return this.get("validate",e.toString(),e)},get(e,i,n){const l=i!=null;let h=this.o[e];return h&&(typeof h=="object"?(h=n.t in h?h[n.t]:St[e],typeof h=="function"&&l&&(h=h(i,n))):typeof h=="function"&&l&&(h=h(i,n.t,n)),h)},getObj(e,i,n){let l=this.o[e];return typeof l=="function"&&i!=null&&(l=l(i,n.t,n)),l},render(e){const i=e.render(this);return(this.get("render",null,e)||this.defaultRender)(i,e.t,e)}};function Ut(e){return e}var jt=Object.freeze({__proto__:null,defaults:St,Options:It,assign:gt});function Wt(e,i){this.t="token",this.v=e,this.tk=i}Wt.prototype={isLink:!1,toString(){return this.v},toHref(e){return this.toString()},toFormattedString(e){const i=this.toString(),n=e.get("truncate",i,this),l=e.get("format",i,this);return n&&l.length>n?l.substring(0,n)+"\u2026":l},toFormattedHref(e){return e.get("formatHref",this.toHref(e.get("defaultProtocol")),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(e){return e===void 0&&(e=St.defaultProtocol),{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(e),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(e){return{type:this.t,value:this.toFormattedString(e),isLink:this.isLink,href:this.toFormattedHref(e),start:this.startIndex(),end:this.endIndex()}},validate(e){return e.get("validate",this.toString(),this)},render(e){const i=this,n=this.toHref(e.get("defaultProtocol")),l=e.get("formatHref",n,this),h=e.get("tagName",n,i),v=this.toFormattedString(e),g={},T=e.get("className",n,i),P=e.get("target",n,i),$=e.get("rel",n,i),tt=e.getObj("attributes",n,i),U=e.getObj("events",n,i);return g.href=l,T&&(g.class=T),P&&(g.target=P),$&&(g.rel=$),tt&>(g,tt),{tagName:h,attributes:g,content:v,eventListeners:U}}};function yt(e,i){class n extends Wt{constructor(h,v){super(h,v),this.t=e}}for(const l in i)n.prototype[l]=i[l];return n.t=e,n}const Bt=yt("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),fe=yt("text"),me=yt("nl"),$t=yt("url",{isLink:!0,toHref(e){return e===void 0&&(e=St.defaultProtocol),this.hasProtocol()?this.v:`${e}://${this.v}`},hasProtocol(){const e=this.tk;return e.length>=2&&e[0].t!==zt&&e[1].t===Ft}});var be=Object.freeze({__proto__:null,MultiToken:Wt,Base:Wt,createTokenClass:yt,Email:Bt,Text:fe,Nl:me,Url:$t});const mt=e=>new Q(e);function te(e){let{groups:i}=e;const n=i.domain.concat([Xt,he,Ht,Jt,le,ce,u,r,s,Y,m,f,p,S,y,C,W,B]),l=[de,Qt,Mt,Gt,Zt,Ft,Ie,t,o,At,j,vt,Pt,O,E,R],h=[Xt,de,he,Jt,le,ce,Mt,u,r,s,j,m,f,p,S,O,y,C,W,B],v=mt(),g=d(v,W);_(g,h,g),_(g,i.domain,g);const T=mt(),P=mt(),$=mt();_(v,i.domain,T),_(v,i.scheme,P),_(v,i.slashscheme,$),_(T,h,g),_(T,i.domain,T);const tt=d(T,Ht);d(g,Ht,tt),d(P,Ht,tt),d($,Ht,tt);const U=d(g,t);_(U,h,g),_(U,i.domain,g);const G=mt();_(tt,i.domain,G),_(G,i.domain,G);const ie=d(G,t);_(ie,i.domain,G);const Ot=mt(Bt);_(ie,i.tld,Ot),_(ie,i.utld,Ot),d(tt,zt,Ot);const ke=d(G,s);_(ke,i.domain,G),_(Ot,i.domain,G),d(Ot,t,ie),d(Ot,s,ke);const De=d(Ot,Ft);_(De,i.numeric,Bt);const _e=d(T,s),re=d(T,t);_(_e,i.domain,T),_(re,h,g),_(re,i.domain,T);const Kt=mt($t);_(re,i.tld,Kt),_(re,i.utld,Kt),_(Kt,i.domain,T),_(Kt,h,g),d(Kt,t,re),d(Kt,s,_e),d(Kt,Ht,tt);const He=d(Kt,Ft),Ae=mt($t);_(He,i.numeric,Ae);const q=mt($t),Yt=mt();_(q,n,q),_(q,l,Yt),_(Yt,n,q),_(Yt,l,Yt),d(Kt,y,q),d(Ae,y,q);const Le=d(P,Ft),Fe=d($,Ft),Ue=d(Fe,y),Re=d(Ue,y);_(P,i.domain,T),d(P,t,re),d(P,s,_e),_($,i.domain,T),d($,t,re),d($,s,_e),_(Le,i.domain,q),d(Le,y,q),_(Re,i.domain,q),_(Re,n,q),d(Re,y,q);const pe=d(q,j),we=d(q,vt),Ce=d(q,At),ye=d(q,Pt);d(Yt,j,pe),d(Yt,vt,we),d(Yt,At,Ce),d(Yt,Pt,ye),d(pe,Mt,q),d(we,Gt,q),d(Ce,Qt,q),d(ye,Zt,q),d(pe,Mt,q);const ue=mt($t),oe=mt($t),se=mt($t),ae=mt($t);_(pe,n,ue),_(we,n,oe),_(Ce,n,se),_(ye,n,ae);const ve=mt(),Ee=mt(),Te=mt(),Oe=mt();return _(pe,l),_(we,l),_(Ce,l),_(ye,l),_(ue,n,ue),_(oe,n,oe),_(se,n,se),_(ae,n,ae),_(ue,l,ue),_(oe,l,oe),_(se,l,se),_(ae,l,ae),_(ve,n,ve),_(Ee,n,oe),_(Te,n,se),_(Oe,n,ae),_(ve,l,ve),_(Ee,l,Ee),_(Te,l,Te),_(Oe,l,Oe),d(oe,Gt,q),d(se,Qt,q),d(ae,Zt,q),d(ue,Mt,q),d(Ee,Gt,q),d(Te,Qt,q),d(Oe,Zt,q),d(ve,Zt,q),d(v,zt,Kt),d(v,H,me),{start:v,tokens:M}}function ee(e,i,n){let l=n.length,h=0,v=[],g=[];for(;h<l;){let T=e,P=null,$=null,tt=0,U=null,G=-1;for(;h<l&&!(P=T.go(n[h].t));)g.push(n[h++]);for(;h<l&&($=P||T.go(n[h].t));)P=null,T=$,T.accepts()?(G=0,U=T):G>=0&&G++,h++,tt++;if(G<0)h-=tt,h<l&&(g.push(n[h]),h++);else{g.length>0&&(v.push(ge(fe,i,g)),g=[]),h-=G,tt-=G;const ie=U.t,Ot=n.slice(h-tt,h);v.push(ge(ie,i,Ot))}}return g.length>0&&v.push(ge(fe,i,g)),v}function ge(e,i,n){const l=n[0].s,h=n[n.length-1].e,v=i.slice(l,h);return new e(v,n)}const ne=typeof console!="undefined"&&console&&console.warn||(()=>{}),ze="until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.",D={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function je(){Q.groups={},D.scanner=null,D.parser=null,D.tokenQueue=[],D.pluginQueue=[],D.customSchemes=[],D.initialized=!1}function Be(e,i){if(typeof i!="function")throw new Error(`linkifyjs: Invalid token plugin ${i} (expects function)`);for(let n=0;n<D.tokenQueue.length;n++)if(e===D.tokenQueue[n][0]){ne(`linkifyjs: token plugin "${e}" already registered - will be overwritten`),D.tokenQueue[n]=[e,i];return}D.tokenQueue.push([e,i]),D.initialized&&ne(`linkifyjs: already initialized - will not register token plugin "${e}" ${ze}`)}function $e(e,i){if(typeof i!="function")throw new Error(`linkifyjs: Invalid plugin ${i} (expects function)`);for(let n=0;n<D.pluginQueue.length;n++)if(e===D.pluginQueue[n][0]){ne(`linkifyjs: plugin "${e}" already registered - will be overwritten`),D.pluginQueue[n]=[e,i];return}D.pluginQueue.push([e,i]),D.initialized&&ne(`linkifyjs: already initialized - will not register plugin "${e}" ${ze}`)}function Ke(e,i){if(i===void 0&&(i=!1),D.initialized&&ne(`linkifyjs: already initialized - will not register custom scheme "${e}" ${ze}`),!/^[0-9a-z]+(-[0-9a-z]+)*$/.test(e))throw new Error(`linkifyjs: incorrect scheme format.
|
|
3
|
+
1. Must only contain digits, lowercase ASCII letters or "-"
|
|
4
|
+
2. Cannot start or end with "-"
|
|
5
|
+
3. "-" cannot repeat`);D.customSchemes.push([e,i])}function Ne(){D.scanner=rt(D.customSchemes);for(let e=0;e<D.tokenQueue.length;e++)D.tokenQueue[e][1]({scanner:D.scanner});D.parser=te(D.scanner.tokens);for(let e=0;e<D.pluginQueue.length;e++)D.pluginQueue[e][1]({scanner:D.scanner,parser:D.parser});D.initialized=!0}function Me(e){return D.initialized||Ne(),ee(D.parser.start,e,ot(D.scanner.start,e))}function qe(e,i,n){if(i===void 0&&(i=null),n===void 0&&(n=null),i&&typeof i=="object"){if(n)throw Error(`linkifyjs: Invalid link type ${i}; must be a string`);n=i,i=null}const l=new It(n),h=Me(e),v=[];for(let g=0;g<h.length;g++){const T=h[g];T.isLink&&(!i||T.t===i)&&v.push(T.toFormattedObject(l))}return v}function Qe(e,i){i===void 0&&(i=null);const n=Me(e);return n.length===1&&n[0].isLink&&(!i||n[0].t===i)}function Pe(e,i,n){const l=Me(e),h=[];for(let v=0;v<l.length;v++){const g=l[v];if(g.t==="nl"&&i.get("nl2br")){const T=`__linkify-el-${n.elementId++}`;h.push(st.createElement("br",{key:T}))}else if(!g.isLink||!i.check(g))h.push(g.toString());else{let T=i.render(g);if(!("key"in T.props)){const P=`__linkify-el-${n.elementId++}`,$=jt.assign({key:P},T.props);T=st.cloneElement(T,$)}h.push(T)}}return h}function xe(e,i,n){if(st.Children.count(e.props.children)===0)return e;const l=[];st.Children.forEach(e.props.children,g=>{typeof g=="string"?l.push.apply(l,Pe(g,i,n)):st.isValidElement(g)?typeof g.type=="string"&&i.ignoreTags.indexOf(g.type.toUpperCase())>=0?l.push(g):l.push(xe(g,i,n)):l.push(g)});const h=`__linkify-el-${n.elementId++}`,v=jt.assign({key:h},e.props);return st.cloneElement(e,v,l)}const We=e=>{let i=0;const n=P=>{let{tagName:$,attributes:tt,content:U}=P;return tt.key=`__linkify-lnk-${i++}`,tt.class&&(tt.className=tt.class,delete tt.class),st.createElement($,tt,U)},l={key:"__linkify-wrapper"};for(const P in e)P!=="options"&&P!=="as"&&P!=="tagName"&&P!=="children"&&(l[P]=e[P]);const h=new It(e.options,n),v=e.as||e.tagName||st.Fragment||"span",g=e.children,T=st.createElement(v,l,g);return xe(T,h,{elementId:0})}},6738:function(Se,qt,pt){pt.d(qt,{ZP:function(){return Nt}});var st=pt(2784);let at;typeof window!="undefined"?at=window:typeof self!="undefined"?at=self:at=pt.g;let Lt=null,gt=null;const _t=20,Dt=at.clearTimeout,ct=at.setTimeout,et=at.cancelAnimationFrame||at.mozCancelAnimationFrame||at.webkitCancelAnimationFrame,Et=at.requestAnimationFrame||at.mozRequestAnimationFrame||at.webkitRequestAnimationFrame;et==null||Et==null?(Lt=Dt,gt=function(nt){return ct(nt,_t)}):(Lt=function([nt,wt]){et(nt),Dt(wt)},gt=function(nt){const wt=Et(function(){Dt(Q),nt()}),Q=ct(function(){et(wt),nt()},_t);return[wt,Q]});function Rt(ut){let nt,wt,Q,_,lt,Tt,d;const dt=typeof document!="undefined"&&document.attachEvent;if(!dt){Tt=function(H){const j=H.__resizeTriggers__,vt=j.firstElementChild,At=j.lastElementChild,Pt=vt.firstElementChild;At.scrollLeft=At.scrollWidth,At.scrollTop=At.scrollHeight,Pt.style.width=vt.offsetWidth+1+"px",Pt.style.height=vt.offsetHeight+1+"px",vt.scrollLeft=vt.scrollWidth,vt.scrollTop=vt.scrollHeight},lt=function(H){return H.offsetWidth!==H.__resizeLast__.width||H.offsetHeight!==H.__resizeLast__.height},d=function(H){if(H.target.className&&typeof H.target.className.indexOf=="function"&&H.target.className.indexOf("contract-trigger")<0&&H.target.className.indexOf("expand-trigger")<0)return;const j=this;Tt(this),this.__resizeRAF__&&Lt(this.__resizeRAF__),this.__resizeRAF__=gt(function(){lt(j)&&(j.__resizeLast__.width=j.offsetWidth,j.__resizeLast__.height=j.offsetHeight,j.__resizeListeners__.forEach(function(Pt){Pt.call(j,H)}))})};let z=!1,it="";Q="animationstart";const J="Webkit Moz O ms".split(" ");let Y="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),ft="";{const H=document.createElement("fakeelement");if(H.style.animationName!==void 0&&(z=!0),z===!1){for(let j=0;j<J.length;j++)if(H.style[J[j]+"AnimationName"]!==void 0){ft=J[j],it="-"+ft.toLowerCase()+"-",Q=Y[j],z=!0;break}}}wt="resizeanim",nt="@"+it+"keyframes "+wt+" { from { opacity: 0; } to { opacity: 0; } } ",_=it+"animation: 1ms "+wt+"; "}const ht=function(z){if(!z.getElementById("detectElementResize")){const it=(nt||"")+".resize-triggers { "+(_||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',J=z.head||z.getElementsByTagName("head")[0],Y=z.createElement("style");Y.id="detectElementResize",Y.type="text/css",ut!=null&&Y.setAttribute("nonce",ut),Y.styleSheet?Y.styleSheet.cssText=it:Y.appendChild(z.createTextNode(it)),J.appendChild(Y)}};return{addResizeListener:function(z,it){if(dt)z.attachEvent("onresize",it);else{if(!z.__resizeTriggers__){const J=z.ownerDocument,Y=at.getComputedStyle(z);Y&&Y.position==="static"&&(z.style.position="relative"),ht(J),z.__resizeLast__={},z.__resizeListeners__=[],(z.__resizeTriggers__=J.createElement("div")).className="resize-triggers";const ft=J.createElement("div");ft.className="expand-trigger",ft.appendChild(J.createElement("div"));const H=J.createElement("div");H.className="contract-trigger",z.__resizeTriggers__.appendChild(ft),z.__resizeTriggers__.appendChild(H),z.appendChild(z.__resizeTriggers__),Tt(z),z.addEventListener("scroll",d,!0),Q&&(z.__resizeTriggers__.__animationListener__=function(vt){vt.animationName===wt&&Tt(z)},z.__resizeTriggers__.addEventListener(Q,z.__resizeTriggers__.__animationListener__))}z.__resizeListeners__.push(it)}},removeResizeListener:function(z,it){if(dt)z.detachEvent("onresize",it);else if(z.__resizeListeners__.splice(z.__resizeListeners__.indexOf(it),1),!z.__resizeListeners__.length){z.removeEventListener("scroll",d,!0),z.__resizeTriggers__.__animationListener__&&(z.__resizeTriggers__.removeEventListener(Q,z.__resizeTriggers__.__animationListener__),z.__resizeTriggers__.__animationListener__=null);try{z.__resizeTriggers__=!z.removeChild(z.__resizeTriggers__)}catch{}}}}}class Nt extends st.Component{constructor(...nt){super(...nt),this.state={height:this.props.defaultHeight||0,scaledHeight:this.props.defaultHeight||0,scaledWidth:this.props.defaultWidth||0,width:this.props.defaultWidth||0},this._autoSizer=null,this._detectElementResize=null,this._parentNode=null,this._resizeObserver=null,this._timeoutId=null,this._onResize=()=>{this._timeoutId=null;const{disableHeight:wt,disableWidth:Q,onResize:_}=this.props;if(this._parentNode){var lt,Tt,d,dt;const ht=window.getComputedStyle(this._parentNode)||{},zt=parseFloat((lt=ht.paddingLeft)!==null&<!==void 0?lt:"0"),kt=parseFloat((Tt=ht.paddingRight)!==null&&Tt!==void 0?Tt:"0"),z=parseFloat((d=ht.paddingTop)!==null&&d!==void 0?d:"0"),it=parseFloat((dt=ht.paddingBottom)!==null&&dt!==void 0?dt:"0"),J=this._parentNode.getBoundingClientRect(),Y=J.height-z-it,ft=J.width-zt-kt,H=this._parentNode.offsetHeight-z-it,j=this._parentNode.offsetWidth-zt-kt;(!wt&&(this.state.height!==H||this.state.scaledHeight!==Y)||!Q&&(this.state.width!==j||this.state.scaledWidth!==ft))&&(this.setState({height:H,width:j,scaledHeight:Y,scaledWidth:ft}),typeof _=="function"&&_({height:H,scaledHeight:Y,scaledWidth:ft,width:j}))}},this._setRef=wt=>{this._autoSizer=wt}}componentDidMount(){const{nonce:nt}=this.props;this._autoSizer&&this._autoSizer.parentNode&&this._autoSizer.parentNode.ownerDocument&&this._autoSizer.parentNode.ownerDocument.defaultView&&this._autoSizer.parentNode instanceof this._autoSizer.parentNode.ownerDocument.defaultView.HTMLElement&&(this._parentNode=this._autoSizer.parentNode,this._parentNode!=null&&(typeof ResizeObserver!="undefined"?(this._resizeObserver=new ResizeObserver(()=>{this._timeoutId=setTimeout(this._onResize,0)}),this._resizeObserver.observe(this._parentNode)):(this._detectElementResize=Rt(nt),this._detectElementResize.addResizeListener(this._parentNode,this._onResize)),this._onResize()))}componentWillUnmount(){this._parentNode&&(this._detectElementResize&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize),this._timeoutId!==null&&clearTimeout(this._timeoutId),this._resizeObserver&&(this._resizeObserver.observe(this._parentNode),this._resizeObserver.disconnect()))}render(){const{children:nt,defaultHeight:wt,defaultWidth:Q,disableHeight:_=!1,disableWidth:lt=!1,nonce:Tt,onResize:d,style:dt={},tagName:ht="div",...zt}=this.props,{height:kt,scaledHeight:z,scaledWidth:it,width:J}=this.state,Y={overflow:"visible"},ft={};let H=!1;return _||(kt===0&&(H=!0),Y.height=0,ft.height=kt,ft.scaledHeight=z),lt||(J===0&&(H=!0),Y.width=0,ft.width=J,ft.scaledWidth=it),(0,st.createElement)(ht,{ref:this._setRef,style:{...Y,...dt},...zt},!H&&nt(ft))}}function bt(ut){return ut&&ut.disableHeight!==!0&&ut.disableWidth!==!0}function xt(ut){return ut&&ut.disableHeight!==!0&&ut.disableWidth===!0}function Vt(ut){return ut&&ut.disableHeight===!0&&ut.disableWidth!==!0}},50166:function(Se,qt,pt){pt.d(qt,{t7:function(){return Ht}});var st=pt(7896),at=pt(80753),Lt=pt(81665),gt=pt(36631),_t=pt(2784),Dt=typeof performance=="object"&&typeof performance.now=="function",ct=Dt?function(){return performance.now()}:function(){return Date.now()};function et(u){cancelAnimationFrame(u.id)}function Et(u,t){var r=ct();function o(){ct()-r>=t?u.call(null):s.id=requestAnimationFrame(o)}var s={id:requestAnimationFrame(o)};return s}var Rt=-1;function Nt(u){if(u===void 0&&(u=!1),Rt===-1||u){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",document.body.appendChild(t),Rt=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return Rt}var bt=null;function xt(u){if(u===void 0&&(u=!1),bt===null||u){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",r.direction="rtl";var o=document.createElement("div"),s=o.style;return s.width="100px",s.height="100px",t.appendChild(o),document.body.appendChild(t),t.scrollLeft>0?bt="positive-descending":(t.scrollLeft=1,t.scrollLeft===0?bt="negative":bt="positive-ascending"),document.body.removeChild(t),bt}return bt}var Vt=150,ut=function(t){var r=t.columnIndex,o=t.data,s=t.rowIndex;return s+":"+r},nt=null,wt=null,Q=null;function _(u){var t,r=u.getColumnOffset,o=u.getColumnStartIndexForOffset,s=u.getColumnStopIndexForStartIndex,m=u.getColumnWidth,f=u.getEstimatedTotalHeight,p=u.getEstimatedTotalWidth,S=u.getOffsetForColumnAndAlignment,O=u.getOffsetForRowAndAlignment,E=u.getRowHeight,R=u.getRowOffset,y=u.getRowStartIndexForOffset,W=u.getRowStopIndexForStartIndex,B=u.initInstanceProps,c=u.shouldResetStyleCacheOnItemSizeChange,C=u.validateProps;return t=function(M){(0,Lt.Z)(x,M);function x(N){var a;return a=M.call(this,N)||this,a._instanceProps=B(a.props,(0,at.Z)(a)),a._resetIsScrollingTimeoutId=null,a._outerRef=void 0,a.state={instance:(0,at.Z)(a),isScrolling:!1,horizontalScrollDirection:"forward",scrollLeft:typeof a.props.initialScrollLeft=="number"?a.props.initialScrollLeft:0,scrollTop:typeof a.props.initialScrollTop=="number"?a.props.initialScrollTop:0,scrollUpdateWasRequested:!1,verticalScrollDirection:"forward"},a._callOnItemsRendered=void 0,a._callOnItemsRendered=(0,gt.Z)(function(I,w,b,L,A,F,K,Z){return a.props.onItemsRendered({overscanColumnStartIndex:I,overscanColumnStopIndex:w,overscanRowStartIndex:b,overscanRowStopIndex:L,visibleColumnStartIndex:A,visibleColumnStopIndex:F,visibleRowStartIndex:K,visibleRowStopIndex:Z})}),a._callOnScroll=void 0,a._callOnScroll=(0,gt.Z)(function(I,w,b,L,A){return a.props.onScroll({horizontalScrollDirection:b,scrollLeft:I,scrollTop:w,verticalScrollDirection:L,scrollUpdateWasRequested:A})}),a._getItemStyle=void 0,a._getItemStyle=function(I,w){var b=a.props,L=b.columnWidth,A=b.direction,F=b.rowHeight,K=a._getItemStyleCache(c&&L,c&&A,c&&F),Z=I+":"+w,rt;if(K.hasOwnProperty(Z))rt=K[Z];else{var ot=r(a.props,w,a._instanceProps),V=A==="rtl";K[Z]=rt={position:"absolute",left:V?void 0:ot,right:V?ot:void 0,top:R(a.props,I,a._instanceProps),height:E(a.props,I,a._instanceProps),width:m(a.props,w,a._instanceProps)}}return rt},a._getItemStyleCache=void 0,a._getItemStyleCache=(0,gt.Z)(function(I,w,b){return{}}),a._onScroll=function(I){var w=I.currentTarget,b=w.clientHeight,L=w.clientWidth,A=w.scrollLeft,F=w.scrollTop,K=w.scrollHeight,Z=w.scrollWidth;a.setState(function(rt){if(rt.scrollLeft===A&&rt.scrollTop===F)return null;var ot=a.props.direction,V=A;if(ot==="rtl")switch(xt()){case"negative":V=-A;break;case"positive-descending":V=Z-L-A;break}V=Math.max(0,Math.min(V,Z-L));var X=Math.max(0,Math.min(F,K-b));return{isScrolling:!0,horizontalScrollDirection:rt.scrollLeft<A?"forward":"backward",scrollLeft:V,scrollTop:X,verticalScrollDirection:rt.scrollTop<F?"forward":"backward",scrollUpdateWasRequested:!1}},a._resetIsScrollingDebounced)},a._outerRefSetter=function(I){var w=a.props.outerRef;a._outerRef=I,typeof w=="function"?w(I):w!=null&&typeof w=="object"&&w.hasOwnProperty("current")&&(w.current=I)},a._resetIsScrollingDebounced=function(){a._resetIsScrollingTimeoutId!==null&&et(a._resetIsScrollingTimeoutId),a._resetIsScrollingTimeoutId=Et(a._resetIsScrolling,Vt)},a._resetIsScrolling=function(){a._resetIsScrollingTimeoutId=null,a.setState({isScrolling:!1},function(){a._getItemStyleCache(-1)})},a}x.getDerivedStateFromProps=function(a,I){return lt(a,I),C(a),null};var k=x.prototype;return k.scrollTo=function(a){var I=a.scrollLeft,w=a.scrollTop;I!==void 0&&(I=Math.max(0,I)),w!==void 0&&(w=Math.max(0,w)),this.setState(function(b){return I===void 0&&(I=b.scrollLeft),w===void 0&&(w=b.scrollTop),b.scrollLeft===I&&b.scrollTop===w?null:{horizontalScrollDirection:b.scrollLeft<I?"forward":"backward",scrollLeft:I,scrollTop:w,scrollUpdateWasRequested:!0,verticalScrollDirection:b.scrollTop<w?"forward":"backward"}},this._resetIsScrollingDebounced)},k.scrollToItem=function(a){var I=a.align,w=I===void 0?"auto":I,b=a.columnIndex,L=a.rowIndex,A=this.props,F=A.columnCount,K=A.height,Z=A.rowCount,rt=A.width,ot=this.state,V=ot.scrollLeft,X=ot.scrollTop,Ct=Nt();b!==void 0&&(b=Math.max(0,Math.min(b,F-1))),L!==void 0&&(L=Math.max(0,Math.min(L,Z-1)));var St=f(this.props,this._instanceProps),It=p(this.props,this._instanceProps),Ut=It>rt?Ct:0,jt=St>K?Ct:0;this.scrollTo({scrollLeft:b!==void 0?S(this.props,b,w,V,this._instanceProps,jt):V,scrollTop:L!==void 0?O(this.props,L,w,X,this._instanceProps,Ut):X})},k.componentDidMount=function(){var a=this.props,I=a.initialScrollLeft,w=a.initialScrollTop;if(this._outerRef!=null){var b=this._outerRef;typeof I=="number"&&(b.scrollLeft=I),typeof w=="number"&&(b.scrollTop=w)}this._callPropsCallbacks()},k.componentDidUpdate=function(){var a=this.props.direction,I=this.state,w=I.scrollLeft,b=I.scrollTop,L=I.scrollUpdateWasRequested;if(L&&this._outerRef!=null){var A=this._outerRef;if(a==="rtl")switch(xt()){case"negative":A.scrollLeft=-w;break;case"positive-ascending":A.scrollLeft=w;break;default:var F=A.clientWidth,K=A.scrollWidth;A.scrollLeft=K-F-w;break}else A.scrollLeft=Math.max(0,w);A.scrollTop=Math.max(0,b)}this._callPropsCallbacks()},k.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&et(this._resetIsScrollingTimeoutId)},k.render=function(){var a=this.props,I=a.children,w=a.className,b=a.columnCount,L=a.direction,A=a.height,F=a.innerRef,K=a.innerElementType,Z=a.innerTagName,rt=a.itemData,ot=a.itemKey,V=ot===void 0?ut:ot,X=a.outerElementType,Ct=a.outerTagName,St=a.rowCount,It=a.style,Ut=a.useIsScrolling,jt=a.width,Wt=this.state.isScrolling,yt=this._getHorizontalRangeToRender(),Bt=yt[0],fe=yt[1],me=this._getVerticalRangeToRender(),$t=me[0],be=me[1],mt=[];if(b>0&&St)for(var te=$t;te<=be;te++)for(var ee=Bt;ee<=fe;ee++)mt.push((0,_t.createElement)(I,{columnIndex:ee,data:rt,isScrolling:Ut?Wt:void 0,key:V({columnIndex:ee,data:rt,rowIndex:te}),rowIndex:te,style:this._getItemStyle(te,ee)}));var ge=f(this.props,this._instanceProps),ne=p(this.props,this._instanceProps);return(0,_t.createElement)(X||Ct||"div",{className:w,onScroll:this._onScroll,ref:this._outerRefSetter,style:(0,st.Z)({position:"relative",height:A,width:jt,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:L},It)},(0,_t.createElement)(K||Z||"div",{children:mt,ref:F,style:{height:ge,pointerEvents:Wt?"none":void 0,width:ne}}))},k._callPropsCallbacks=function(){var a=this.props,I=a.columnCount,w=a.onItemsRendered,b=a.onScroll,L=a.rowCount;if(typeof w=="function"&&I>0&&L>0){var A=this._getHorizontalRangeToRender(),F=A[0],K=A[1],Z=A[2],rt=A[3],ot=this._getVerticalRangeToRender(),V=ot[0],X=ot[1],Ct=ot[2],St=ot[3];this._callOnItemsRendered(F,K,V,X,Z,rt,Ct,St)}if(typeof b=="function"){var It=this.state,Ut=It.horizontalScrollDirection,jt=It.scrollLeft,Wt=It.scrollTop,yt=It.scrollUpdateWasRequested,Bt=It.verticalScrollDirection;this._callOnScroll(jt,Wt,Ut,Bt,yt)}},k._getHorizontalRangeToRender=function(){var a=this.props,I=a.columnCount,w=a.overscanColumnCount,b=a.overscanColumnsCount,L=a.overscanCount,A=a.rowCount,F=this.state,K=F.horizontalScrollDirection,Z=F.isScrolling,rt=F.scrollLeft,ot=w||b||L||1;if(I===0||A===0)return[0,0,0,0];var V=o(this.props,rt,this._instanceProps),X=s(this.props,V,rt,this._instanceProps),Ct=!Z||K==="backward"?Math.max(1,ot):1,St=!Z||K==="forward"?Math.max(1,ot):1;return[Math.max(0,V-Ct),Math.max(0,Math.min(I-1,X+St)),V,X]},k._getVerticalRangeToRender=function(){var a=this.props,I=a.columnCount,w=a.overscanCount,b=a.overscanRowCount,L=a.overscanRowsCount,A=a.rowCount,F=this.state,K=F.isScrolling,Z=F.verticalScrollDirection,rt=F.scrollTop,ot=b||L||w||1;if(I===0||A===0)return[0,0,0,0];var V=y(this.props,rt,this._instanceProps),X=W(this.props,V,rt,this._instanceProps),Ct=!K||Z==="backward"?Math.max(1,ot):1,St=!K||Z==="forward"?Math.max(1,ot):1;return[Math.max(0,V-Ct),Math.max(0,Math.min(A-1,X+St)),V,X]},x}(_t.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var lt=function(t,r){var o=t.children,s=t.direction,m=t.height,f=t.innerTagName,p=t.outerTagName,S=t.overscanColumnsCount,O=t.overscanCount,E=t.overscanRowsCount,R=t.width,y=r.instance},Tt=50,d=function(t,r){var o=t.rowCount,s=r.rowMetadataMap,m=r.estimatedRowHeight,f=r.lastMeasuredRowIndex,p=0;if(f>=o&&(f=o-1),f>=0){var S=s[f];p=S.offset+S.size}var O=o-f-1,E=O*m;return p+E},dt=function(t,r){var o=t.columnCount,s=r.columnMetadataMap,m=r.estimatedColumnWidth,f=r.lastMeasuredColumnIndex,p=0;if(f>=o&&(f=o-1),f>=0){var S=s[f];p=S.offset+S.size}var O=o-f-1,E=O*m;return p+E},ht=function(t,r,o,s){var m,f,p;if(t==="column"?(m=s.columnMetadataMap,f=r.columnWidth,p=s.lastMeasuredColumnIndex):(m=s.rowMetadataMap,f=r.rowHeight,p=s.lastMeasuredRowIndex),o>p){var S=0;if(p>=0){var O=m[p];S=O.offset+O.size}for(var E=p+1;E<=o;E++){var R=f(E);m[E]={offset:S,size:R},S+=R}t==="column"?s.lastMeasuredColumnIndex=o:s.lastMeasuredRowIndex=o}return m[o]},zt=function(t,r,o,s){var m,f;t==="column"?(m=o.columnMetadataMap,f=o.lastMeasuredColumnIndex):(m=o.rowMetadataMap,f=o.lastMeasuredRowIndex);var p=f>0?m[f].offset:0;return p>=s?kt(t,r,o,f,0,s):z(t,r,o,Math.max(0,f),s)},kt=function(t,r,o,s,m,f){for(;m<=s;){var p=m+Math.floor((s-m)/2),S=ht(t,r,p,o).offset;if(S===f)return p;S<f?m=p+1:S>f&&(s=p-1)}return m>0?m-1:0},z=function(t,r,o,s,m){for(var f=t==="column"?r.columnCount:r.rowCount,p=1;s<f&&ht(t,r,s,o).offset<m;)s+=p,p*=2;return kt(t,r,o,Math.min(s,f-1),Math.floor(s/2),m)},it=function(t,r,o,s,m,f,p){var S=t==="column"?r.width:r.height,O=ht(t,r,o,f),E=t==="column"?dt(r,f):d(r,f),R=Math.max(0,Math.min(E-S,O.offset)),y=Math.max(0,O.offset-S+p+O.size);switch(s==="smart"&&(m>=y-S&&m<=R+S?s="auto":s="center"),s){case"start":return R;case"end":return y;case"center":return Math.round(y+(R-y)/2);case"auto":default:return m>=y&&m<=R?m:y>R||m<y?y:R}},J=_({getColumnOffset:function(t,r,o){return ht("column",t,r,o).offset},getColumnStartIndexForOffset:function(t,r,o){return zt("column",t,o,r)},getColumnStopIndexForStartIndex:function(t,r,o,s){for(var m=t.columnCount,f=t.width,p=ht("column",t,r,s),S=o+f,O=p.offset+p.size,E=r;E<m-1&&O<S;)E++,O+=ht("column",t,E,s).size;return E},getColumnWidth:function(t,r,o){return o.columnMetadataMap[r].size},getEstimatedTotalHeight:d,getEstimatedTotalWidth:dt,getOffsetForColumnAndAlignment:function(t,r,o,s,m,f){return it("column",t,r,o,s,m,f)},getOffsetForRowAndAlignment:function(t,r,o,s,m,f){return it("row",t,r,o,s,m,f)},getRowOffset:function(t,r,o){return ht("row",t,r,o).offset},getRowHeight:function(t,r,o){return o.rowMetadataMap[r].size},getRowStartIndexForOffset:function(t,r,o){return zt("row",t,o,r)},getRowStopIndexForStartIndex:function(t,r,o,s){for(var m=t.rowCount,f=t.height,p=ht("row",t,r,s),S=o+f,O=p.offset+p.size,E=r;E<m-1&&O<S;)E++,O+=ht("row",t,E,s).size;return E},initInstanceProps:function(t,r){var o=t,s=o.estimatedColumnWidth,m=o.estimatedRowHeight,f={columnMetadataMap:{},estimatedColumnWidth:s||Tt,estimatedRowHeight:m||Tt,lastMeasuredColumnIndex:-1,lastMeasuredRowIndex:-1,rowMetadataMap:{}};return r.resetAfterColumnIndex=function(p,S){S===void 0&&(S=!0),r.resetAfterIndices({columnIndex:p,shouldForceUpdate:S})},r.resetAfterRowIndex=function(p,S){S===void 0&&(S=!0),r.resetAfterIndices({rowIndex:p,shouldForceUpdate:S})},r.resetAfterIndices=function(p){var S=p.columnIndex,O=p.rowIndex,E=p.shouldForceUpdate,R=E===void 0?!0:E;typeof S=="number"&&(f.lastMeasuredColumnIndex=Math.min(f.lastMeasuredColumnIndex,S-1)),typeof O=="number"&&(f.lastMeasuredRowIndex=Math.min(f.lastMeasuredRowIndex,O-1)),r._getItemStyleCache(-1),R&&r.forceUpdate()},f},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(t){var r=t.columnWidth,o=t.rowHeight}}),Y=150,ft=function(t,r){return t},H=null,j=null;function vt(u){var t,r=u.getItemOffset,o=u.getEstimatedTotalSize,s=u.getItemSize,m=u.getOffsetForIndexAndAlignment,f=u.getStartIndexForOffset,p=u.getStopIndexForStartIndex,S=u.initInstanceProps,O=u.shouldResetStyleCacheOnItemSizeChange,E=u.validateProps;return t=function(R){(0,Lt.Z)(y,R);function y(B){var c;return c=R.call(this,B)||this,c._instanceProps=S(c.props,(0,at.Z)(c)),c._outerRef=void 0,c._resetIsScrollingTimeoutId=null,c.state={instance:(0,at.Z)(c),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof c.props.initialScrollOffset=="number"?c.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},c._callOnItemsRendered=void 0,c._callOnItemsRendered=(0,gt.Z)(function(C,M,x,k){return c.props.onItemsRendered({overscanStartIndex:C,overscanStopIndex:M,visibleStartIndex:x,visibleStopIndex:k})}),c._callOnScroll=void 0,c._callOnScroll=(0,gt.Z)(function(C,M,x){return c.props.onScroll({scrollDirection:C,scrollOffset:M,scrollUpdateWasRequested:x})}),c._getItemStyle=void 0,c._getItemStyle=function(C){var M=c.props,x=M.direction,k=M.itemSize,N=M.layout,a=c._getItemStyleCache(O&&k,O&&N,O&&x),I;if(a.hasOwnProperty(C))I=a[C];else{var w=r(c.props,C,c._instanceProps),b=s(c.props,C,c._instanceProps),L=x==="horizontal"||N==="horizontal",A=x==="rtl",F=L?w:0;a[C]=I={position:"absolute",left:A?void 0:F,right:A?F:void 0,top:L?0:w,height:L?"100%":b,width:L?b:"100%"}}return I},c._getItemStyleCache=void 0,c._getItemStyleCache=(0,gt.Z)(function(C,M,x){return{}}),c._onScrollHorizontal=function(C){var M=C.currentTarget,x=M.clientWidth,k=M.scrollLeft,N=M.scrollWidth;c.setState(function(a){if(a.scrollOffset===k)return null;var I=c.props.direction,w=k;if(I==="rtl")switch(xt()){case"negative":w=-k;break;case"positive-descending":w=N-x-k;break}return w=Math.max(0,Math.min(w,N-x)),{isScrolling:!0,scrollDirection:a.scrollOffset<k?"forward":"backward",scrollOffset:w,scrollUpdateWasRequested:!1}},c._resetIsScrollingDebounced)},c._onScrollVertical=function(C){var M=C.currentTarget,x=M.clientHeight,k=M.scrollHeight,N=M.scrollTop;c.setState(function(a){if(a.scrollOffset===N)return null;var I=Math.max(0,Math.min(N,k-x));return{isScrolling:!0,scrollDirection:a.scrollOffset<I?"forward":"backward",scrollOffset:I,scrollUpdateWasRequested:!1}},c._resetIsScrollingDebounced)},c._outerRefSetter=function(C){var M=c.props.outerRef;c._outerRef=C,typeof M=="function"?M(C):M!=null&&typeof M=="object"&&M.hasOwnProperty("current")&&(M.current=C)},c._resetIsScrollingDebounced=function(){c._resetIsScrollingTimeoutId!==null&&et(c._resetIsScrollingTimeoutId),c._resetIsScrollingTimeoutId=Et(c._resetIsScrolling,Y)},c._resetIsScrolling=function(){c._resetIsScrollingTimeoutId=null,c.setState({isScrolling:!1},function(){c._getItemStyleCache(-1,null)})},c}y.getDerivedStateFromProps=function(c,C){return At(c,C),E(c),null};var W=y.prototype;return W.scrollTo=function(c){c=Math.max(0,c),this.setState(function(C){return C.scrollOffset===c?null:{scrollDirection:C.scrollOffset<c?"forward":"backward",scrollOffset:c,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},W.scrollToItem=function(c,C){C===void 0&&(C="auto");var M=this.props,x=M.itemCount,k=M.layout,N=this.state.scrollOffset;c=Math.max(0,Math.min(c,x-1));var a=0;if(this._outerRef){var I=this._outerRef;k==="vertical"?a=I.scrollWidth>I.clientWidth?Nt():0:a=I.scrollHeight>I.clientHeight?Nt():0}this.scrollTo(m(this.props,c,C,N,this._instanceProps,a))},W.componentDidMount=function(){var c=this.props,C=c.direction,M=c.initialScrollOffset,x=c.layout;if(typeof M=="number"&&this._outerRef!=null){var k=this._outerRef;C==="horizontal"||x==="horizontal"?k.scrollLeft=M:k.scrollTop=M}this._callPropsCallbacks()},W.componentDidUpdate=function(){var c=this.props,C=c.direction,M=c.layout,x=this.state,k=x.scrollOffset,N=x.scrollUpdateWasRequested;if(N&&this._outerRef!=null){var a=this._outerRef;if(C==="horizontal"||M==="horizontal")if(C==="rtl")switch(xt()){case"negative":a.scrollLeft=-k;break;case"positive-ascending":a.scrollLeft=k;break;default:var I=a.clientWidth,w=a.scrollWidth;a.scrollLeft=w-I-k;break}else a.scrollLeft=k;else a.scrollTop=k}this._callPropsCallbacks()},W.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&et(this._resetIsScrollingTimeoutId)},W.render=function(){var c=this.props,C=c.children,M=c.className,x=c.direction,k=c.height,N=c.innerRef,a=c.innerElementType,I=c.innerTagName,w=c.itemCount,b=c.itemData,L=c.itemKey,A=L===void 0?ft:L,F=c.layout,K=c.outerElementType,Z=c.outerTagName,rt=c.style,ot=c.useIsScrolling,V=c.width,X=this.state.isScrolling,Ct=x==="horizontal"||F==="horizontal",St=Ct?this._onScrollHorizontal:this._onScrollVertical,It=this._getRangeToRender(),Ut=It[0],jt=It[1],Wt=[];if(w>0)for(var yt=Ut;yt<=jt;yt++)Wt.push((0,_t.createElement)(C,{data:b,key:A(yt,b),index:yt,isScrolling:ot?X:void 0,style:this._getItemStyle(yt)}));var Bt=o(this.props,this._instanceProps);return(0,_t.createElement)(K||Z||"div",{className:M,onScroll:St,ref:this._outerRefSetter,style:(0,st.Z)({position:"relative",height:k,width:V,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:x},rt)},(0,_t.createElement)(a||I||"div",{children:Wt,ref:N,style:{height:Ct?"100%":Bt,pointerEvents:X?"none":void 0,width:Ct?Bt:"100%"}}))},W._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var c=this.props.itemCount;if(c>0){var C=this._getRangeToRender(),M=C[0],x=C[1],k=C[2],N=C[3];this._callOnItemsRendered(M,x,k,N)}}if(typeof this.props.onScroll=="function"){var a=this.state,I=a.scrollDirection,w=a.scrollOffset,b=a.scrollUpdateWasRequested;this._callOnScroll(I,w,b)}},W._getRangeToRender=function(){var c=this.props,C=c.itemCount,M=c.overscanCount,x=this.state,k=x.isScrolling,N=x.scrollDirection,a=x.scrollOffset;if(C===0)return[0,0,0,0];var I=f(this.props,a,this._instanceProps),w=p(this.props,I,a,this._instanceProps),b=!k||N==="backward"?Math.max(1,M):1,L=!k||N==="forward"?Math.max(1,M):1;return[Math.max(0,I-b),Math.max(0,Math.min(C-1,w+L)),I,w]},y}(_t.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var At=function(t,r){var o=t.children,s=t.direction,m=t.height,f=t.layout,p=t.innerTagName,S=t.outerTagName,O=t.width,E=r.instance;if(!1)var R},Pt=50,Mt=function(t,r,o){var s=t,m=s.itemSize,f=o.itemMetadataMap,p=o.lastMeasuredIndex;if(r>p){var S=0;if(p>=0){var O=f[p];S=O.offset+O.size}for(var E=p+1;E<=r;E++){var R=m(E);f[E]={offset:S,size:R},S+=R}o.lastMeasuredIndex=r}return f[r]},Gt=function(t,r,o){var s=r.itemMetadataMap,m=r.lastMeasuredIndex,f=m>0?s[m].offset:0;return f>=o?Qt(t,r,m,0,o):Zt(t,r,Math.max(0,m),o)},Qt=function(t,r,o,s,m){for(;s<=o;){var f=s+Math.floor((o-s)/2),p=Mt(t,f,r).offset;if(p===m)return f;p<m?s=f+1:p>m&&(o=f-1)}return s>0?s-1:0},Zt=function(t,r,o,s){for(var m=t.itemCount,f=1;o<m&&Mt(t,o,r).offset<s;)o+=f,f*=2;return Qt(t,r,Math.min(o,m-1),Math.floor(o/2),s)},Xt=function(t,r){var o=t.itemCount,s=r.itemMetadataMap,m=r.estimatedItemSize,f=r.lastMeasuredIndex,p=0;if(f>=o&&(f=o-1),f>=0){var S=s[f];p=S.offset+S.size}var O=o-f-1,E=O*m;return p+E},de=vt({getItemOffset:function(t,r,o){return Mt(t,r,o).offset},getItemSize:function(t,r,o){return o.itemMetadataMap[r].size},getEstimatedTotalSize:Xt,getOffsetForIndexAndAlignment:function(t,r,o,s,m,f){var p=t.direction,S=t.height,O=t.layout,E=t.width,R=p==="horizontal"||O==="horizontal",y=R?E:S,W=Mt(t,r,m),B=Xt(t,m),c=Math.max(0,Math.min(B-y,W.offset)),C=Math.max(0,W.offset-y+W.size+f);switch(o==="smart"&&(s>=C-y&&s<=c+y?o="auto":o="center"),o){case"start":return c;case"end":return C;case"center":return Math.round(C+(c-C)/2);case"auto":default:return s>=C&&s<=c?s:s<C?C:c}},getStartIndexForOffset:function(t,r,o){return Gt(t,o,r)},getStopIndexForStartIndex:function(t,r,o,s){for(var m=t.direction,f=t.height,p=t.itemCount,S=t.layout,O=t.width,E=m==="horizontal"||S==="horizontal",R=E?O:f,y=Mt(t,r,s),W=o+R,B=y.offset+y.size,c=r;c<p-1&&B<W;)c++,B+=Mt(t,c,s).size;return c},initInstanceProps:function(t,r){var o=t,s=o.estimatedItemSize,m={itemMetadataMap:{},estimatedItemSize:s||Pt,lastMeasuredIndex:-1};return r.resetAfterIndex=function(f,p){p===void 0&&(p=!0),m.lastMeasuredIndex=Math.min(m.lastMeasuredIndex,f-1),r._getItemStyleCache(-1),p&&r.forceUpdate()},m},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(t){var r=t.itemSize}}),he=_({getColumnOffset:function(t,r){var o=t.columnWidth;return r*o},getColumnWidth:function(t,r){var o=t.columnWidth;return o},getRowOffset:function(t,r){var o=t.rowHeight;return r*o},getRowHeight:function(t,r){var o=t.rowHeight;return o},getEstimatedTotalHeight:function(t){var r=t.rowCount,o=t.rowHeight;return o*r},getEstimatedTotalWidth:function(t){var r=t.columnCount,o=t.columnWidth;return o*r},getOffsetForColumnAndAlignment:function(t,r,o,s,m,f){var p=t.columnCount,S=t.columnWidth,O=t.width,E=Math.max(0,p*S-O),R=Math.min(E,r*S),y=Math.max(0,r*S-O+f+S);switch(o==="smart"&&(s>=y-O&&s<=R+O?o="auto":o="center"),o){case"start":return R;case"end":return y;case"center":var W=Math.round(y+(R-y)/2);return W<Math.ceil(O/2)?0:W>E+Math.floor(O/2)?E:W;case"auto":default:return s>=y&&s<=R?s:y>R||s<y?y:R}},getOffsetForRowAndAlignment:function(t,r,o,s,m,f){var p=t.rowHeight,S=t.height,O=t.rowCount,E=Math.max(0,O*p-S),R=Math.min(E,r*p),y=Math.max(0,r*p-S+f+p);switch(o==="smart"&&(s>=y-S&&s<=R+S?o="auto":o="center"),o){case"start":return R;case"end":return y;case"center":var W=Math.round(y+(R-y)/2);return W<Math.ceil(S/2)?0:W>E+Math.floor(S/2)?E:W;case"auto":default:return s>=y&&s<=R?s:y>R||s<y?y:R}},getColumnStartIndexForOffset:function(t,r){var o=t.columnWidth,s=t.columnCount;return Math.max(0,Math.min(s-1,Math.floor(r/o)))},getColumnStopIndexForStartIndex:function(t,r,o){var s=t.columnWidth,m=t.columnCount,f=t.width,p=r*s,S=Math.ceil((f+o-p)/s);return Math.max(0,Math.min(m-1,r+S-1))},getRowStartIndexForOffset:function(t,r){var o=t.rowHeight,s=t.rowCount;return Math.max(0,Math.min(s-1,Math.floor(r/o)))},getRowStopIndexForStartIndex:function(t,r,o){var s=t.rowHeight,m=t.rowCount,f=t.height,p=r*s,S=Math.ceil((f+o-p)/s);return Math.max(0,Math.min(m-1,r+S-1))},initInstanceProps:function(t){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(t){var r=t.columnWidth,o=t.rowHeight}}),Ht=vt({getItemOffset:function(t,r){var o=t.itemSize;return r*o},getItemSize:function(t,r){var o=t.itemSize;return o},getEstimatedTotalSize:function(t){var r=t.itemCount,o=t.itemSize;return o*r},getOffsetForIndexAndAlignment:function(t,r,o,s,m,f){var p=t.direction,S=t.height,O=t.itemCount,E=t.itemSize,R=t.layout,y=t.width,W=p==="horizontal"||R==="horizontal",B=W?y:S,c=Math.max(0,O*E-B),C=Math.min(c,r*E),M=Math.max(0,r*E-B+E+f);switch(o==="smart"&&(s>=M-B&&s<=C+B?o="auto":o="center"),o){case"start":return C;case"end":return M;case"center":{var x=Math.round(M+(C-M)/2);return x<Math.ceil(B/2)?0:x>c+Math.floor(B/2)?c:x}case"auto":default:return s>=M&&s<=C?s:s<M?M:C}},getStartIndexForOffset:function(t,r){var o=t.itemCount,s=t.itemSize;return Math.max(0,Math.min(o-1,Math.floor(r/s)))},getStopIndexForStartIndex:function(t,r,o){var s=t.direction,m=t.height,f=t.itemCount,p=t.itemSize,S=t.layout,O=t.width,E=s==="horizontal"||S==="horizontal",R=r*p,y=E?O:m,W=Math.ceil((y+o-R)/p);return Math.max(0,Math.min(f-1,r+W-1))},initInstanceProps:function(t){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(t){var r=t.itemSize}});function Jt(u,t){for(var r in u)if(!(r in t))return!0;for(var o in t)if(u[o]!==t[o])return!0;return!1}var le=null,ce=null;function Ft(u,t){var r=u.style,o=_objectWithoutPropertiesLoose(u,le),s=t.style,m=_objectWithoutPropertiesLoose(t,ce);return!Jt(r,s)&&!Jt(o,m)}function Ie(u,t){return!Ft(this.props,u)||Jt(this.state,t)}},46212:function(Se,qt,pt){pt.d(qt,{Z:function(){return st}});function st({onlyFirst:at=!1}={}){const Lt=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(Lt,at?void 0:"g")}}}]);})();
|
|
6
|
+
|
|
7
|
+
//# sourceMappingURL=1093.317a4f39.chunk.js.map
|