@perses-dev/alert-manager-plugin 0.1.1 → 0.2.0-beta.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/__mf/js/AlertManager.42d95b33.js +7 -0
- package/__mf/js/async/1299.d5af4767.js +1 -0
- package/__mf/js/async/1522.04dc197d.js +22 -0
- package/__mf/js/async/1616.0c9baa4c.js +1 -0
- package/__mf/js/async/1871.5e21fb62.js +1 -0
- package/__mf/js/async/1969.e54f3991.js +1 -0
- package/__mf/js/async/2043.4e8f2371.js +2 -0
- package/__mf/js/async/{430.74d85c4b.js.LICENSE.txt → 2043.4e8f2371.js.LICENSE.txt} +1 -41
- package/__mf/js/async/2197.53bcb69e.js +1 -0
- package/__mf/js/async/2218.8b7e30c2.js +2 -0
- package/__mf/js/async/2317.e656eab3.js +2 -0
- package/__mf/js/async/2377.5295b064.js +1 -0
- package/__mf/js/async/2650.0b5955b5.js +3 -0
- package/__mf/js/async/2657.e6a11726.js +1 -0
- package/__mf/js/async/3222.6ad1b128.js +1 -0
- package/__mf/js/async/3514.e71d5cb9.js +2 -0
- package/__mf/js/async/3910.1bd28e15.js +1 -0
- package/__mf/js/async/392.26ae5cc4.js +2 -0
- package/__mf/js/async/3963.181d3782.js +1 -0
- package/__mf/js/async/4077.91abd1da.js +1 -0
- package/__mf/js/async/4121.f9595b70.js +2 -0
- package/__mf/js/async/4133.cc678ae9.js +28 -0
- package/__mf/js/async/4213.005a1a65.js +1 -0
- package/__mf/js/async/{4466.a8145edd.js → 4466.7cca717d.js} +3 -3
- package/__mf/js/async/4481.5bc5aa13.js +2 -0
- package/__mf/js/async/4496.3760da2f.js +1 -0
- package/__mf/js/async/4978.f1550309.js +1 -0
- package/__mf/js/async/5038.b1e9133a.js +2 -0
- package/__mf/js/async/5071.eeb1c9b1.js +1 -0
- package/__mf/js/async/5428.6922d4df.js +1 -0
- package/__mf/js/async/5759.84fc4d0b.js +7 -0
- package/__mf/js/async/{3540.96681482.js.LICENSE.txt → 5759.84fc4d0b.js.LICENSE.txt} +41 -1
- package/__mf/js/async/6274.9f68ee7d.js +2 -0
- package/__mf/js/async/6390.0fd40bd8.js +2 -0
- package/__mf/js/async/6401.7bf2c4c2.js +1 -0
- package/__mf/js/async/6594.b3a19fc1.js +2 -0
- package/__mf/js/async/6854.f05f8da0.js +1 -0
- package/__mf/js/async/6911.bc380f0c.js +37 -0
- package/__mf/js/async/7177.83345474.js +1 -0
- package/__mf/js/async/7192.715c4cb3.js +1 -0
- package/__mf/js/async/733.8bc3bc96.js +1 -0
- package/__mf/js/async/7862.10a19eef.js +2 -0
- package/__mf/js/async/7978.4ca49c3a.js +1 -0
- package/__mf/js/async/8470.7ebe8e66.js +2 -0
- package/__mf/js/async/8697.7b6d10e1.js +1 -0
- package/__mf/js/async/873.fcc6e5b7.js +1 -0
- package/__mf/js/async/8907.5d1f9505.js +1 -0
- package/__mf/js/async/{9040.94717f28.js → 9040.8de751d6.js} +4 -4
- package/__mf/js/async/9184.307e83da.js +1 -0
- package/__mf/js/async/9235.1b0d1de0.js +1 -0
- package/__mf/js/async/941.36858244.js +2 -0
- package/__mf/js/async/9588.31544c69.js +1 -0
- package/__mf/js/async/9836.e4cf02db.js +1 -0
- package/__mf/js/async/__federation_expose_AlertManagerAlertsExplorer.4fbf2fa1.js +2 -0
- package/__mf/js/async/__federation_expose_AlertManagerAlertsQuery.27d99dac.js +1 -0
- package/__mf/js/async/__federation_expose_AlertManagerDatasource.c2b36e70.js +2 -0
- package/__mf/js/async/__federation_expose_AlertManagerSilencesExplorer.65e1901a.js +2 -0
- package/__mf/js/async/__federation_expose_AlertManagerSilencesQuery.f619a448.js +2 -0
- package/__mf/js/async/__federation_expose_AlertTable.6c37126b.js +1 -0
- package/__mf/js/async/__federation_expose_SilenceTable.3a614a2f.js +1 -0
- package/__mf/js/async/lib-router.20ba053c.js +2 -0
- package/__mf/js/{main.259f5b24.js → main.babca431.js} +2 -2
- package/lib/bootstrap.js +2 -2
- package/lib/components/ColumnsEditor.d.ts +1 -1
- package/lib/components/ColumnsEditor.d.ts.map +1 -1
- package/lib/components/ColumnsEditor.js +7 -7
- package/lib/components/ColumnsEditor.js.map +1 -1
- package/lib/components/LazyTextField.d.ts +1 -1
- package/lib/components/LazyTextField.d.ts.map +1 -1
- package/lib/components/LazyTextField.js +2 -2
- package/lib/components/LazyTextField.js.map +1 -1
- package/lib/components/MatcherEditor.d.ts +1 -1
- package/lib/components/MatcherEditor.d.ts.map +1 -1
- package/lib/components/MatcherEditor.js +4 -4
- package/lib/components/MatcherEditor.js.map +1 -1
- package/lib/components/MatchersList.d.ts +2 -2
- package/lib/components/MatchersList.d.ts.map +1 -1
- package/lib/components/MatchersList.js +1 -1
- package/lib/components/MatchersList.js.map +1 -1
- package/lib/components/SilenceForm.d.ts +2 -2
- package/lib/components/SilenceForm.d.ts.map +1 -1
- package/lib/components/SilenceForm.js +4 -4
- package/lib/components/SilenceForm.js.map +1 -1
- package/lib/components/StatusBadge.d.ts +1 -1
- package/lib/components/StatusBadge.d.ts.map +1 -1
- package/lib/components/StatusBadge.js +1 -1
- package/lib/components/StatusBadge.js.map +1 -1
- package/lib/components/index.js +5 -5
- package/lib/components/index.js.map +1 -1
- package/lib/explore/AlertManagerAlertsExplorer.d.ts +1 -1
- package/lib/explore/AlertManagerAlertsExplorer.d.ts.map +1 -1
- package/lib/explore/AlertManagerAlertsExplorer.js +5 -5
- package/lib/explore/AlertManagerAlertsExplorer.js.map +1 -1
- package/lib/explore/AlertManagerSilencesExplorer.d.ts +1 -1
- package/lib/explore/AlertManagerSilencesExplorer.d.ts.map +1 -1
- package/lib/explore/AlertManagerSilencesExplorer.js +10 -10
- package/lib/explore/AlertManagerSilencesExplorer.js.map +1 -1
- package/lib/getPluginModule.d.ts +1 -1
- package/lib/getPluginModule.d.ts.map +1 -1
- package/lib/getPluginModule.js +3 -1
- package/lib/getPluginModule.js.map +1 -1
- package/lib/index-federation.js +1 -1
- package/lib/index.js +4 -4
- package/lib/index.js.map +1 -1
- package/lib/model/alertmanager-client.d.ts +3 -3
- package/lib/model/alertmanager-client.d.ts.map +1 -1
- package/lib/model/alertmanager-client.js +4 -2
- package/lib/model/alertmanager-client.js.map +1 -1
- package/lib/model/alertmanager-selectors.d.ts +2 -2
- package/lib/model/alertmanager-selectors.d.ts.map +1 -1
- package/lib/model/alertmanager-selectors.js +1 -1
- package/lib/model/alertmanager-selectors.js.map +1 -1
- package/lib/model/index.js +3 -3
- package/lib/model/index.js.map +1 -1
- package/lib/plugins/AlertManagerDatasourceEditor.d.ts +2 -2
- package/lib/plugins/AlertManagerDatasourceEditor.d.ts.map +1 -1
- package/lib/plugins/AlertManagerDatasourceEditor.js +1 -1
- package/lib/plugins/AlertManagerDatasourceEditor.js.map +1 -1
- package/lib/plugins/alert-table/AlertTable.d.ts +3 -3
- package/lib/plugins/alert-table/AlertTable.d.ts.map +1 -1
- package/lib/plugins/alert-table/AlertTable.js +5 -5
- package/lib/plugins/alert-table/AlertTable.js.map +1 -1
- package/lib/plugins/alert-table/AlertTableColumnsEditor.d.ts +3 -3
- package/lib/plugins/alert-table/AlertTableColumnsEditor.d.ts.map +1 -1
- package/lib/plugins/alert-table/AlertTableColumnsEditor.js +4 -4
- package/lib/plugins/alert-table/AlertTableColumnsEditor.js.map +1 -1
- package/lib/plugins/alert-table/AlertTableDeduplicationEditor.d.ts +3 -3
- package/lib/plugins/alert-table/AlertTableDeduplicationEditor.d.ts.map +1 -1
- package/lib/plugins/alert-table/AlertTableDeduplicationEditor.js +4 -4
- package/lib/plugins/alert-table/AlertTableDeduplicationEditor.js.map +1 -1
- package/lib/plugins/alert-table/AlertTableLabelsEditor.d.ts +3 -3
- package/lib/plugins/alert-table/AlertTableLabelsEditor.d.ts.map +1 -1
- package/lib/plugins/alert-table/AlertTableLabelsEditor.js +6 -6
- package/lib/plugins/alert-table/AlertTableLabelsEditor.js.map +1 -1
- package/lib/plugins/alert-table/AlertTableOptionsEditor.d.ts +3 -3
- package/lib/plugins/alert-table/AlertTableOptionsEditor.d.ts.map +1 -1
- package/lib/plugins/alert-table/AlertTableOptionsEditor.js +5 -5
- package/lib/plugins/alert-table/AlertTableOptionsEditor.js.map +1 -1
- package/lib/plugins/alert-table/AlertTablePanel.d.ts +4 -4
- package/lib/plugins/alert-table/AlertTablePanel.d.ts.map +1 -1
- package/lib/plugins/alert-table/AlertTablePanel.js +21 -21
- package/lib/plugins/alert-table/AlertTablePanel.js.map +1 -1
- package/lib/plugins/alert-table/alert-table-model.d.ts +1 -1
- package/lib/plugins/alert-table/alert-table-model.d.ts.map +1 -1
- package/lib/plugins/alert-table/alert-table-model.js +2 -2
- package/lib/plugins/alert-table/alert-table-model.js.map +1 -1
- package/lib/plugins/alert-table/alert-table-sorting.d.ts +2 -2
- package/lib/plugins/alert-table/alert-table-sorting.d.ts.map +1 -1
- package/lib/plugins/alert-table/alert-table-sorting.js +1 -1
- package/lib/plugins/alert-table/alert-table-sorting.js.map +1 -1
- package/lib/plugins/alert-table/label-colors.d.ts +1 -1
- package/lib/plugins/alert-table/label-colors.d.ts.map +1 -1
- package/lib/plugins/alert-table/label-colors.js.map +1 -1
- package/lib/plugins/alertmanager-alerts-query/AlertManagerAlertsQuery.d.ts +2 -2
- package/lib/plugins/alertmanager-alerts-query/AlertManagerAlertsQuery.d.ts.map +1 -1
- package/lib/plugins/alertmanager-alerts-query/AlertManagerAlertsQuery.js +3 -3
- package/lib/plugins/alertmanager-alerts-query/AlertManagerAlertsQuery.js.map +1 -1
- package/lib/plugins/alertmanager-alerts-query/AlertManagerAlertsQueryEditor.d.ts +2 -2
- package/lib/plugins/alertmanager-alerts-query/AlertManagerAlertsQueryEditor.d.ts.map +1 -1
- package/lib/plugins/alertmanager-alerts-query/AlertManagerAlertsQueryEditor.js +7 -7
- package/lib/plugins/alertmanager-alerts-query/AlertManagerAlertsQueryEditor.js.map +1 -1
- package/lib/plugins/alertmanager-alerts-query/get-alerts-data.d.ts +3 -3
- package/lib/plugins/alertmanager-alerts-query/get-alerts-data.d.ts.map +1 -1
- package/lib/plugins/alertmanager-alerts-query/get-alerts-data.js +2 -2
- package/lib/plugins/alertmanager-alerts-query/get-alerts-data.js.map +1 -1
- package/lib/plugins/alertmanager-datasource.d.ts +3 -3
- package/lib/plugins/alertmanager-datasource.d.ts.map +1 -1
- package/lib/plugins/alertmanager-datasource.js +2 -2
- package/lib/plugins/alertmanager-datasource.js.map +1 -1
- package/lib/plugins/alertmanager-silences-query/AlertManagerSilencesQuery.d.ts +2 -2
- package/lib/plugins/alertmanager-silences-query/AlertManagerSilencesQuery.d.ts.map +1 -1
- package/lib/plugins/alertmanager-silences-query/AlertManagerSilencesQuery.js +3 -3
- package/lib/plugins/alertmanager-silences-query/AlertManagerSilencesQuery.js.map +1 -1
- package/lib/plugins/alertmanager-silences-query/AlertManagerSilencesQueryEditor.d.ts +2 -2
- package/lib/plugins/alertmanager-silences-query/AlertManagerSilencesQueryEditor.d.ts.map +1 -1
- package/lib/plugins/alertmanager-silences-query/AlertManagerSilencesQueryEditor.js +7 -7
- package/lib/plugins/alertmanager-silences-query/AlertManagerSilencesQueryEditor.js.map +1 -1
- package/lib/plugins/alertmanager-silences-query/get-silences-data.d.ts +3 -3
- package/lib/plugins/alertmanager-silences-query/get-silences-data.d.ts.map +1 -1
- package/lib/plugins/alertmanager-silences-query/get-silences-data.js +2 -2
- package/lib/plugins/alertmanager-silences-query/get-silences-data.js.map +1 -1
- package/lib/plugins/index.js +16 -16
- package/lib/plugins/index.js.map +1 -1
- package/lib/plugins/silence-table/SilenceTable.d.ts +2 -2
- package/lib/plugins/silence-table/SilenceTable.d.ts.map +1 -1
- package/lib/plugins/silence-table/SilenceTable.js +3 -3
- package/lib/plugins/silence-table/SilenceTable.js.map +1 -1
- package/lib/plugins/silence-table/SilenceTableColumnsEditor.d.ts +3 -3
- package/lib/plugins/silence-table/SilenceTableColumnsEditor.d.ts.map +1 -1
- package/lib/plugins/silence-table/SilenceTableColumnsEditor.js +5 -5
- package/lib/plugins/silence-table/SilenceTableColumnsEditor.js.map +1 -1
- package/lib/plugins/silence-table/SilenceTableOptionsEditor.d.ts +3 -3
- package/lib/plugins/silence-table/SilenceTableOptionsEditor.d.ts.map +1 -1
- package/lib/plugins/silence-table/SilenceTableOptionsEditor.js +5 -5
- package/lib/plugins/silence-table/SilenceTableOptionsEditor.js.map +1 -1
- package/lib/plugins/silence-table/SilenceTablePanel.d.ts +4 -4
- package/lib/plugins/silence-table/SilenceTablePanel.d.ts.map +1 -1
- package/lib/plugins/silence-table/SilenceTablePanel.js +13 -13
- package/lib/plugins/silence-table/SilenceTablePanel.js.map +1 -1
- package/lib/plugins/silence-table/silence-table-model.d.ts +1 -1
- package/lib/plugins/silence-table/silence-table-model.d.ts.map +1 -1
- package/lib/plugins/silence-table/silence-table-model.js.map +1 -1
- package/lib/plugins/silence-table/silence-table-sorting.d.ts +2 -2
- package/lib/plugins/silence-table/silence-table-sorting.d.ts.map +1 -1
- package/lib/plugins/silence-table/silence-table-sorting.js +1 -1
- package/lib/plugins/silence-table/silence-table-sorting.js.map +1 -1
- package/lib/plugins/types.d.ts +3 -3
- package/lib/plugins/types.d.ts.map +1 -1
- package/lib/plugins/types.js.map +1 -1
- package/lib/setup-tests.d.ts +1 -1
- package/lib/setup-tests.d.ts.map +1 -1
- package/lib/setup-tests.js +2 -2
- package/lib/setup-tests.js.map +1 -1
- package/mf-manifest.json +302 -308
- package/mf-stats.json +308 -314
- package/package.json +12 -12
- package/__mf/js/AlertManager.377d377b.js +0 -7
- package/__mf/js/async/1616.24f00c9d.js +0 -1
- package/__mf/js/async/1728.8a326412.js +0 -1
- package/__mf/js/async/1871.23ff54b3.js +0 -1
- package/__mf/js/async/1969.a83b1b48.js +0 -1
- package/__mf/js/async/2218.7829c9d9.js +0 -2
- package/__mf/js/async/2377.f8875a4e.js +0 -1
- package/__mf/js/async/2657.fe8dd44f.js +0 -1
- package/__mf/js/async/2842.993baf22.js +0 -1
- package/__mf/js/async/3468.1679f87f.js +0 -1
- package/__mf/js/async/3540.96681482.js +0 -2
- package/__mf/js/async/392.7e11dd69.js +0 -2
- package/__mf/js/async/3963.fb6246d2.js +0 -1
- package/__mf/js/async/3981.84d12fdc.js +0 -4
- package/__mf/js/async/3981.84d12fdc.js.LICENSE.txt +0 -24
- package/__mf/js/async/4121.ec666be2.js +0 -2
- package/__mf/js/async/4133.e94df4f8.js +0 -28
- package/__mf/js/async/4213.a0c4f2eb.js +0 -1
- package/__mf/js/async/430.74d85c4b.js +0 -7
- package/__mf/js/async/4788.49ffeac3.js +0 -1
- package/__mf/js/async/5038.269393e3.js +0 -2
- package/__mf/js/async/5481.cf6703fd.js +0 -2
- package/__mf/js/async/5570.d4dd47e0.js +0 -1
- package/__mf/js/async/573.ce8ce2ef.js +0 -2
- package/__mf/js/async/6274.8c77cb1a.js +0 -2
- package/__mf/js/async/6390.3f6f279d.js +0 -2
- package/__mf/js/async/6401.1a59dbad.js +0 -1
- package/__mf/js/async/6594.b02adfd9.js +0 -2
- package/__mf/js/async/663.5445c7e0.js +0 -1
- package/__mf/js/async/6854.1d628838.js +0 -1
- package/__mf/js/async/7177.27c86137.js +0 -1
- package/__mf/js/async/7192.ede9860b.js +0 -1
- package/__mf/js/async/7283.8c1cb6ee.js +0 -2
- package/__mf/js/async/7984.163a6ddb.js +0 -22
- package/__mf/js/async/804.23da0d30.js +0 -37
- package/__mf/js/async/8470.2df0db71.js +0 -2
- package/__mf/js/async/8697.c13c6603.js +0 -1
- package/__mf/js/async/8711.c7dc09b8.js +0 -2
- package/__mf/js/async/8907.9e3edf43.js +0 -1
- package/__mf/js/async/9184.27a439a4.js +0 -1
- package/__mf/js/async/9235.00f9412f.js +0 -1
- package/__mf/js/async/941.d3bc6208.js +0 -2
- package/__mf/js/async/9537.36ff6f15.js +0 -1
- package/__mf/js/async/9634.3a366799.js +0 -1
- package/__mf/js/async/983.36857235.js +0 -1
- package/__mf/js/async/9836.cc839227.js +0 -1
- package/__mf/js/async/__federation_expose_AlertManagerAlertsExplorer.47ee46dc.js +0 -2
- package/__mf/js/async/__federation_expose_AlertManagerAlertsQuery.22b0e5bc.js +0 -1
- package/__mf/js/async/__federation_expose_AlertManagerDatasource.7ee7440a.js +0 -2
- package/__mf/js/async/__federation_expose_AlertManagerSilencesExplorer.35860f1b.js +0 -2
- package/__mf/js/async/__federation_expose_AlertManagerSilencesQuery.52a24c9e.js +0 -2
- package/__mf/js/async/__federation_expose_AlertTable.5d005bae.js +0 -1
- package/__mf/js/async/__federation_expose_SilenceTable.3fc487a4.js +0 -2
- package/__mf/js/async/__federation_expose_SilenceTable.3fc487a4.js.LICENSE.txt +0 -9
- package/__mf/js/async/lib-router.19f64904.js +0 -2
- package/lib/cjs/bootstrap.js +0 -26
- package/lib/cjs/components/ColumnsEditor.js +0 -271
- package/lib/cjs/components/LazyTextField.js +0 -50
- package/lib/cjs/components/MatcherEditor.js +0 -153
- package/lib/cjs/components/MatchersList.js +0 -46
- package/lib/cjs/components/SilenceForm.js +0 -205
- package/lib/cjs/components/StatusBadge.js +0 -71
- package/lib/cjs/components/index.js +0 -44
- package/lib/cjs/explore/AlertManagerAlertsExplorer.js +0 -79
- package/lib/cjs/explore/AlertManagerSilencesExplorer.js +0 -153
- package/lib/cjs/getPluginModule.js +0 -39
- package/lib/cjs/index-federation.js +0 -55
- package/lib/cjs/index.js +0 -39
- package/lib/cjs/model/alertmanager-client.js +0 -128
- package/lib/cjs/model/alertmanager-selectors.js +0 -66
- package/lib/cjs/model/api-types.js +0 -22
- package/lib/cjs/model/index.js +0 -32
- package/lib/cjs/plugins/AlertManagerDatasourceEditor.js +0 -71
- package/lib/cjs/plugins/alert-table/AlertTable.js +0 -56
- package/lib/cjs/plugins/alert-table/AlertTableColumnsEditor.js +0 -110
- package/lib/cjs/plugins/alert-table/AlertTableDeduplicationEditor.js +0 -138
- package/lib/cjs/plugins/alert-table/AlertTableLabelsEditor.js +0 -277
- package/lib/cjs/plugins/alert-table/AlertTableOptionsEditor.js +0 -128
- package/lib/cjs/plugins/alert-table/AlertTablePanel.js +0 -773
- package/lib/cjs/plugins/alert-table/alert-table-model.js +0 -142
- package/lib/cjs/plugins/alert-table/alert-table-sorting.js +0 -205
- package/lib/cjs/plugins/alert-table/label-colors.js +0 -170
- package/lib/cjs/plugins/alertmanager-alerts-query/AlertManagerAlertsQuery.js +0 -51
- package/lib/cjs/plugins/alertmanager-alerts-query/AlertManagerAlertsQueryEditor.js +0 -138
- package/lib/cjs/plugins/alertmanager-alerts-query/get-alerts-data.js +0 -124
- package/lib/cjs/plugins/alertmanager-datasource.js +0 -69
- package/lib/cjs/plugins/alertmanager-silences-query/AlertManagerSilencesQuery.js +0 -45
- package/lib/cjs/plugins/alertmanager-silences-query/AlertManagerSilencesQueryEditor.js +0 -78
- package/lib/cjs/plugins/alertmanager-silences-query/get-silences-data.js +0 -64
- package/lib/cjs/plugins/index.js +0 -74
- package/lib/cjs/plugins/silence-table/SilenceTable.js +0 -42
- package/lib/cjs/plugins/silence-table/SilenceTableColumnsEditor.js +0 -137
- package/lib/cjs/plugins/silence-table/SilenceTableOptionsEditor.js +0 -63
- package/lib/cjs/plugins/silence-table/SilenceTablePanel.js +0 -345
- package/lib/cjs/plugins/silence-table/silence-table-model.js +0 -116
- package/lib/cjs/plugins/silence-table/silence-table-sorting.js +0 -68
- package/lib/cjs/plugins/types.js +0 -16
- package/lib/cjs/setup-tests.js +0 -18
- /package/__mf/css/async/{430.85c2cbf6.css → 5759.85c2cbf6.css} +0 -0
- /package/__mf/js/async/{7984.163a6ddb.js.LICENSE.txt → 1522.04dc197d.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{2218.7829c9d9.js.LICENSE.txt → 2218.8b7e30c2.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{5038.269393e3.js.LICENSE.txt → 2317.e656eab3.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{6390.3f6f279d.js.LICENSE.txt → 3514.e71d5cb9.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{392.7e11dd69.js.LICENSE.txt → 392.26ae5cc4.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{4121.ec666be2.js.LICENSE.txt → 4121.f9595b70.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{6594.b02adfd9.js.LICENSE.txt → 5038.b1e9133a.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{6274.8c77cb1a.js.LICENSE.txt → 6274.9f68ee7d.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{7283.8c1cb6ee.js.LICENSE.txt → 6390.0fd40bd8.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{8711.c7dc09b8.js.LICENSE.txt → 6594.b3a19fc1.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{5481.cf6703fd.js.LICENSE.txt → 7862.10a19eef.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{8470.2df0db71.js.LICENSE.txt → 8470.7ebe8e66.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{9040.94717f28.js.LICENSE.txt → 9040.8de751d6.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{941.d3bc6208.js.LICENSE.txt → 941.36858244.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{__federation_expose_AlertManagerAlertsExplorer.47ee46dc.js.LICENSE.txt → __federation_expose_AlertManagerAlertsExplorer.4fbf2fa1.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{__federation_expose_AlertManagerDatasource.7ee7440a.js.LICENSE.txt → __federation_expose_AlertManagerDatasource.c2b36e70.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{__federation_expose_AlertManagerSilencesExplorer.35860f1b.js.LICENSE.txt → __federation_expose_AlertManagerSilencesExplorer.65e1901a.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{__federation_expose_AlertManagerSilencesQuery.52a24c9e.js.LICENSE.txt → __federation_expose_AlertManagerSilencesQuery.f619a448.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{lib-router.19f64904.js.LICENSE.txt → lib-router.20ba053c.js.LICENSE.txt} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.chunk_AlertManager=self.chunk_AlertManager||[]).push([["2827"],{50707(e,l,n){n.d(l,{K:()=>C});var t=n(62540),a=n(92890),r=n(91467),s=n(66834),i=n(315),o=n(88091),u=n(7013),c=n(93648),d=n(39750),m=n(86742),p=n(70451),h=n(67987),g=n(54227),x=n(76795),b=n(97653),f=n(47095),j=n(98029);function v(e){let{matcher:l,onChange:n,onRemove:a}=e,r=(0,p.useId)();return(0,t.jsxs)(i.A,{direction:"row",spacing:1,alignItems:"center",children:[(0,t.jsx)(c.A,{label:"Label name",value:l.name,onChange:e=>{n({...l,name:e.target.value})},size:"small",sx:{minWidth:150}}),(0,t.jsxs)(h.A,{size:"small",sx:{minWidth:80},children:[(0,t.jsx)(g.A,{id:r,children:"Match"}),(0,t.jsxs)(x.A,{labelId:r,value:l.isRegex?l.isEqual?"=~":"!~":l.isEqual?"=":"!=",onChange:e=>{let{isEqual:t,isRegex:a}=function(e){switch(e){case"=":return{isEqual:!0,isRegex:!1};case"!=":return{isEqual:!1,isRegex:!1};case"=~":return{isEqual:!0,isRegex:!0};case"!~":return{isEqual:!1,isRegex:!0}}}(e.target.value);n({...l,isEqual:t,isRegex:a})},label:"Match",children:[(0,t.jsx)(b.A,{value:"=",children:"="}),(0,t.jsx)(b.A,{value:"!=",children:"!="}),(0,t.jsx)(b.A,{value:"=~",children:"=~"}),(0,t.jsx)(b.A,{value:"!~",children:"!~"})]})]}),(0,t.jsx)(c.A,{label:"Value",value:l.value,onChange:e=>{n({...l,value:e.target.value})},size:"small",sx:{minWidth:200}}),(0,t.jsx)(f.A,{onClick:a,size:"small","aria-label":"Remove matcher",children:(0,t.jsx)(j.default,{fontSize:"small"})})]})}let A={name:"",value:"",isEqual:!0,isRegex:!1};function y(e){let l=e=>String(e).padStart(2,"0");return`${e.getFullYear()}-${l(e.getMonth()+1)}-${l(e.getDate())}T${l(e.getHours())}:${l(e.getMinutes())}`}function C(e){var l,n,h;let g,{open:x,onClose:b,onSubmit:f,initialSilence:j}=e,[C,k]=(0,p.useState)((null==j||null==(l=j.matchers)?void 0:l.length)?j.matchers.map(e=>({name:e.name,value:e.value,isEqual:e.isEqual,isRegex:e.isRegex})):[{...A}]),[w,M]=(0,p.useState)((null==j||null==(n=j.startsAt)?void 0:n.slice(0,16))??y(new Date)),[S,z]=(0,p.useState)((null==j||null==(h=j.endsAt)?void 0:h.slice(0,16))??((g=new Date).setMinutes(g.getMinutes()+30),y(g))),[N,$]=(0,p.useState)((null==j?void 0:j.createdBy)??""),[O,R]=(0,p.useState)((null==j?void 0:j.comment)??""),E=new Date(w),I=new Date(S),D=!isNaN(E.getTime())&&!isNaN(I.getTime())&&I.getTime()>E.getTime(),K=C.length>0&&C.every(e=>e.name.length>0)&&N.length>0&&D;return(0,t.jsxs)(a.A,{open:x,onClose:b,maxWidth:"md",fullWidth:!0,children:[(0,t.jsx)(r.A,{children:(null==j?void 0:j.id)?"Edit Silence":"Create Silence"}),(0,t.jsx)(s.A,{children:(0,t.jsxs)(i.A,{spacing:2,sx:{mt:1},children:[(0,t.jsx)(o.A,{variant:"subtitle2",children:"Matchers"}),C.map((e,l)=>(0,t.jsx)(v,{matcher:e,onChange:e=>{let n;(n=[...C])[l]=e,k(n)},onRemove:()=>{k(C.filter((e,n)=>n!==l))}},l)),(0,t.jsx)(u.A,{startIcon:(0,t.jsx)(m.default,{}),onClick:()=>{k([...C,{...A}])},variant:"outlined",size:"small",children:"Add Matcher"}),(0,t.jsxs)(i.A,{direction:"row",spacing:2,children:[(0,t.jsx)(c.A,{label:"Start",type:"datetime-local",value:w,onChange:e=>M(e.target.value),size:"small",InputLabelProps:{shrink:!0},sx:{flex:1}}),(0,t.jsx)(c.A,{label:"End",type:"datetime-local",value:S,onChange:e=>z(e.target.value),size:"small",InputLabelProps:{shrink:!0},sx:{flex:1}})]}),(0,t.jsx)(c.A,{label:"Creator",value:N,onChange:e=>$(e.target.value),size:"small",required:!0}),(0,t.jsx)(c.A,{label:"Comment",value:O,onChange:e=>R(e.target.value),size:"small",multiline:!0,rows:2})]})}),(0,t.jsxs)(d.A,{children:[(0,t.jsx)(u.A,{onClick:b,children:"Cancel"}),(0,t.jsx)(u.A,{onClick:()=>{let e=new Date(w),l=new Date(S);isNaN(e.getTime())||isNaN(l.getTime())||f({id:null==j?void 0:j.id,matchers:C.map(e=>({name:e.name,value:e.value,isEqual:e.isEqual,isRegex:e.isRegex})),startsAt:e.toISOString(),endsAt:l.toISOString(),createdBy:N,comment:O})},variant:"contained",disabled:!K,children:(null==j?void 0:j.id)?"Update":"Create"})]})]})}},70376(e,l,n){n.r(l),n.d(l,{AlertTable:()=>eA});var t=n(62540),a=n(93648),r=n(38662),s=n(70451),i=n(17635);let o={alphabetical:"Alphabetical",numeric:"Numeric",severity:"Severity (critical → other)",status:"Status (firing → resolved)"};var u=n(67987),c=n(54227),d=n(76795),m=n(97653),p=n(88091),h=n(5611),g=n(47601),x=n(57072);let b={none:"No deduplication. All alerts from all datasources are shown as-is.",fingerprint:"Alerts with the same fingerprint from different datasources are merged. This is the default.",labels:"Alerts are considered duplicates when all specified label values match."};var f=n(74628),j=n(315),v=n(47095),A=n(10740),y=n(42927),C=n(7013),k=n(6227),w=n(98029),M=n(86742);let S={auto:"Auto (hash-derived colors)",severity:"Severity (built-in defaults)",manual:"Manual (overrides only)"};function z(e){let{mapping:l,index:n,onUpdate:r,onRemove:i}=e,o=(0,s.useCallback)(()=>{r(n,e=>{e.overrides||(e.overrides=[]),e.overrides.push({value:"",isRegex:!1,color:"#1976d2"})})},[n,r]),h=(0,s.useCallback)(e=>{r(n,l=>{var n;null==(n=l.overrides)||n.splice(e,1)})},[n,r]),g=(0,s.useCallback)((e,l,t)=>{r(n,n=>{var a;let r=null==(a=n.overrides)?void 0:a[e];r&&("isRegex"===l?r.isRegex=t:r[l]=t)})},[n,r]);return(0,t.jsx)(f.A,{sx:{border:1,borderColor:"divider",borderRadius:1,p:2},children:(0,t.jsxs)(j.A,{spacing:2,children:[(0,t.jsxs)(j.A,{direction:"row",spacing:1,alignItems:"center",justifyContent:"space-between",children:[(0,t.jsx)(p.A,{variant:"subtitle2",children:l.labelKey||"New label"}),(0,t.jsx)(v.A,{size:"small",onClick:()=>i(n),"aria-label":"Remove label mapping",children:(0,t.jsx)(w.default,{fontSize:"small"})})]}),(0,t.jsx)(a.A,{label:"Label key",value:l.labelKey,onChange:e=>r(n,l=>{l.labelKey=e.target.value}),size:"small",fullWidth:!0}),(0,t.jsxs)(u.A,{size:"small",fullWidth:!0,children:[(0,t.jsx)(c.A,{id:`color-mode-label-${n}`,children:"Mode"}),(0,t.jsx)(d.A,{labelId:`color-mode-label-${n}`,value:l.mode,onChange:e=>r(n,l=>{l.mode=e.target.value}),label:"Mode",children:Object.keys(S).map(e=>(0,t.jsx)(m.A,{value:e,children:S[e]},e))})]}),(0,t.jsxs)(f.A,{children:[(0,t.jsx)(p.A,{variant:"body2",color:"text.secondary",sx:{mb:1},children:"Overrides"}),(0,t.jsxs)(j.A,{spacing:1,children:[(l.overrides??[]).map((e,l)=>(0,t.jsxs)(j.A,{direction:"row",spacing:1,alignItems:"center",children:[(0,t.jsx)(a.A,{label:"Value / Pattern",value:e.value,onChange:e=>g(l,"value",e.target.value),size:"small",sx:{flex:1}}),(0,t.jsx)(A.A,{control:(0,t.jsx)(y.A,{checked:e.isRegex,onChange:e=>g(l,"isRegex",e.target.checked),size:"small"}),label:"Regex"}),(0,t.jsx)("input",{type:"color",value:e.color,onChange:e=>g(l,"color",e.target.value),style:{width:36,height:28,border:"none",cursor:"pointer"}}),(0,t.jsx)(v.A,{size:"small",onClick:()=>h(l),"aria-label":"Remove override",children:(0,t.jsx)(w.default,{fontSize:"small"})})]},l)),(0,t.jsx)(C.A,{size:"small",startIcon:(0,t.jsx)(M.default,{}),onClick:o,children:"Add override"})]})]})]})})}let N={critical:"#d32f2f",error:"#ef6c00",warning:"#f9a825",info:"#0288d1",debug:"#7b1fa2",trace:"#6a1b9a",unknown:"#757575",other:"#9e9e9e"},$={critical:["critical","crit","fatal","emerg","alert","page"],error:["error","err","eror","high","severe"],warning:["warning","warn","medium"],info:["info","inf","information","informational","notice","low"],debug:["debug","dbug"],trace:["trace"],unknown:["unknown"],other:["other","none","minor",""]},O={};for(let[e,l]of Object.entries($)){let n=N[e];for(let e of l)O[e]=n}let R=["critical","error","warning","info","debug","trace","unknown","other"];function E(e){let l=e.toLowerCase();for(let[e,n]of Object.entries($))if(n.includes(l)){let l=R.indexOf(e);return -1===l?R.length:l}return R.length}function I(e){let l=5381;for(let n=0;n<e.length;n++)l=33*l^e.charCodeAt(n);let n=20+(l=Math.abs(l))%340,t=55+l%25,a=45+l%15;return`hsl(${n}, ${t}%, ${a}%)`}let D=new Map;function K(e,l){if(l.overrides){for(let n of l.overrides)if(function(e,l,n){if(n){let n=function(e){if(D.has(e))return D.get(e);D.size>=1e3&&D.clear();try{let l=new RegExp(e);return D.set(e,l),l}catch{return D.set(e,null),null}}(l);return null!==n&&n.test(e)}return e===l}(e,n.value,n.isRegex))return n.color}switch(l.mode){case"severity":return O[e.toLowerCase()]??I(e);case"auto":return I(e);case"manual":return"#9e9e9e"}}let W="__status__",L="__alertname__",G={firing:0,pending:1,suppressed:2,inactive:3,resolved:4};function T(e){return e.suppressed?"suppressed":e.state}function q(e){return"asc"===e?1:-1}function _(e,l){return void 0===e&&void 0===l?0:void 0===e?1:void 0===l?-1:e.localeCompare(l)}function V(e,l){let n=void 0!==e?parseFloat(e):NaN,t=void 0!==l?parseFloat(l):NaN;return isNaN(n)&&isNaN(t)?0:isNaN(n)?1:isNaN(t)?-1:n-t}function F(e){let l,n=0;for(let[t,a]of Object.entries(e))a>n&&(n=a,l=t);return{value:l,count:n}}function B(e){let l=5,n=0;for(let[t,a]of Object.entries(e)){let e=G[t]??5;e<l?(l=e,n=a):e===l&&(n+=a)}return{weight:l,count:n}}function Q(e){let l=R.length,n=0;for(let[t,a]of Object.entries(e)){let e=E(t);e<l?(l=e,n=a):e===l&&(n+=a)}return{weight:l,count:n}}let U=["silence","runbook"];function P(e,l){let n={total:0,firing:0,suppressed:0,pending:0},t={};if(t[W]={},t[L]={},l)for(let e of l)t[e]={};for(let a of e){if(n.total++,a.suppressed)n.suppressed++;else switch(a.state){case"firing":n.firing++;break;case"pending":n.pending++}let e=T(a);if(t[W][e]=(t[W][e]??0)+1,a.name&&(t[L][a.name]=(t[L][a.name]??0)+1),l)for(let e of l){let l=a.labels[e];if(void 0!==l){let n=t[e];n&&(n[l]=(n[l]??0)+1)}}}return n.labelCounts=t,n}let H={silence:"Silence alert",runbook:"View runbook"};var J=n(3399),Y=n(45271),X=n(65211),Z=n(2582),ee=n(347),el=n(91394),en=n(70561),et=n(62636),ea=n(5139),er=n(19848),es=n(91807),ei=n(81238),eo=n(90055),eu=n(87275),ec=n(11061),ed=n(98599),em=n(16979),ep=n(9323),eh=n(50707),eg=n(26734),ex=n(44789);function eb(e){let{summary:l}=e;return(0,t.jsxs)(j.A,{direction:"row",spacing:.5,children:[l.firing>0&&(0,t.jsx)(g.A,{label:`${l.firing} firing`,color:"error",size:"small"}),l.suppressed>0&&(0,t.jsx)(g.A,{label:`${l.suppressed} silenced`,color:"warning",size:"small"}),l.pending>0&&(0,t.jsx)(g.A,{label:`${l.pending} pending`,color:"default",size:"small"})]})}function ef(e){var l;let{summary:n,mapping:a}=e,r=null==(l=n.labelCounts)?void 0:l[a.labelKey];return r&&0!==Object.keys(r).length?(0,t.jsx)(j.A,{direction:"row",spacing:.5,children:Object.entries(r).sort((e,l)=>{let[,n]=e,[,t]=l;return t-n}).map(e=>{let[l,n]=e,r=K(l,a);return(0,t.jsx)(g.A,{label:`${n} ${l}`,size:"small",sx:{backgroundColor:r,color:"#fff",fontWeight:500}},l)})}):null}function ej(e){var l;let{alert:n,allowedActions:a,columnDefs:r,columnKeySet:s,mappingsByKey:i,runbookAnnotationKey:o,onSilence:u,duplicateCount:c,showDuplicates:d}=e,m=null==(l=n.annotations)?void 0:l[o],p=a.length>0;return(0,t.jsxs)(J.A,{hover:!0,children:[(0,t.jsx)(Y.A,{children:(0,t.jsx)(eg.W,{status:n.suppressed?"suppressed":n.state,variant:"alert"})}),(0,t.jsx)(Y.A,{children:n.name}),r.map((e,l)=>{let a=n.labels[e.name],r=i.get(e.name);if(void 0!==a&&r){let e=K(a,r);return(0,t.jsx)(Y.A,{children:(0,t.jsx)(g.A,{label:a,size:"small",sx:{backgroundColor:e,color:"#fff",fontWeight:500}})},l)}return(0,t.jsx)(Y.A,{children:a??""},l)}),d&&(0,t.jsx)(Y.A,{children:void 0!==c&&(0,t.jsx)(g.A,{label:`${c}`,size:"small",variant:"outlined",color:"info"})}),(0,t.jsx)(Y.A,{children:(0,t.jsx)(j.A,{direction:"row",spacing:.5,flexWrap:"wrap",useFlexGap:!0,children:Object.entries(n.labels).filter(e=>{let[l]=e;return"alertname"!==l&&!s.has(l)}).map(e=>{let[l,n]=e,a=i.get(l);if(a){let e=K(n,a);return(0,t.jsx)(g.A,{label:`${l}=${n}`,size:"small",sx:{backgroundColor:e,color:"#fff",fontWeight:500}},l)}return(0,t.jsx)(g.A,{label:`${l}=${n}`,size:"small",variant:"outlined"},l)})})}),p&&(0,t.jsx)(Y.A,{children:(0,t.jsxs)(j.A,{direction:"row",spacing:.5,children:[a.includes("silence")&&!n.suppressed&&(0,t.jsx)(X.A,{title:"Silence this alert",children:(0,t.jsx)(v.A,{size:"small","aria-label":"Silence alert",onClick:()=>u(n),children:(0,t.jsx)(ei.default,{fontSize:"small"})})}),a.includes("runbook")&&m&&(0,t.jsx)(X.A,{title:"View runbook",children:(0,t.jsx)(v.A,{size:"small","aria-label":"View runbook",component:"a",href:m,target:"_blank",rel:"noopener noreferrer",children:(0,t.jsx)(eo.default,{fontSize:"small"})})})]})})]})}function ev(e){let{group:l,expanded:n,allowedActions:a,columnDefs:r,columnKeySet:s,labelColorMappings:i,mappingsByKey:o,runbookAnnotationKey:u,onToggle:c,onSilence:d,duplicateCounts:m,showDuplicates:h}=e,x=a.length>0;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(J.A,{sx:{cursor:"pointer","& > td":{fontWeight:"bold"}},onClick:c,children:[(0,t.jsx)(Y.A,{colSpan:2,children:(0,t.jsxs)(j.A,{direction:"row",spacing:1,alignItems:"center",children:[n?(0,t.jsx)(eu.default,{}):(0,t.jsx)(ec.default,{}),(0,t.jsx)(p.A,{variant:"body2",fontWeight:"bold",children:l.key||"Ungrouped"}),(0,t.jsx)(g.A,{label:`${l.summary.total}`,size:"small",variant:"outlined"})]})}),r.map((e,n)=>{var a;let r=null==(a=l.summary.labelCounts)?void 0:a[e.name],s=o.get(e.name);return r&&s?(0,t.jsx)(Y.A,{children:(0,t.jsx)(ef,{summary:l.summary,mapping:s})},n):r?(0,t.jsx)(Y.A,{children:(0,t.jsx)(j.A,{direction:"row",spacing:.5,children:Object.entries(r).sort((e,l)=>{let[,n]=e,[,t]=l;return t-n}).map(e=>{let[l,n]=e;return(0,t.jsx)(g.A,{label:`${n} ${l}`,size:"small",variant:"outlined"},l)})})},n):(0,t.jsx)(Y.A,{},n)}),h&&(0,t.jsx)(Y.A,{}),(0,t.jsx)(Y.A,{children:(0,t.jsxs)(j.A,{direction:"row",spacing:1,alignItems:"center",flexWrap:"wrap",useFlexGap:!0,children:[(0,t.jsx)(eb,{summary:l.summary}),i.filter(e=>!s.has(e.labelKey)).map(e=>(0,t.jsx)(ef,{summary:l.summary,mapping:e},e.labelKey))]})}),x&&(0,t.jsx)(Y.A,{})]}),n&&l.alerts.map((e,l)=>(0,t.jsx)(ej,{alert:e,allowedActions:a,columnDefs:r,columnKeySet:s,mappingsByKey:o,runbookAnnotationKey:u,onSilence:d,duplicateCount:m.get(e),showDuplicates:h},e.id??String(l)))]})}let eA={PanelComponent:function(e){let{spec:l,queryResults:n,contentDimensions:r}=e,i=(0,s.useMemo)(()=>(0,ex.IU)(n),[n]),{data:o}=(0,er.useDatasourceClient)(i),h=(0,es.useQueryClient)(),[g,b]=(0,s.useState)(null),A=(0,s.useRef)(0),y=(0,s.useCallback)(e=>{A.current++,b(e)},[]),[C,k]=(0,s.useState)(""),[w,M]=(0,s.useState)(new Set),{successSnackbar:S,exceptionSnackbar:z}=(0,x.useSnackbar)(),N=(0,s.useCallback)(async e=>{if(o)try{await o.createSilence(e),b(null),S("Silence created successfully"),h.invalidateQueries({queryKey:["query","AlertsQuery"]}),h.invalidateQueries({queryKey:["query","SilencesQuery"]})}catch(e){z(e)}},[o,h,S,z]),$=(0,s.useMemo)(()=>{if(g)return{matchers:Object.entries(g.labels).map(e=>{let[l,n]=e;return{name:l,value:n,isEqual:!0,isRegex:!1}})}},[g]),O=(0,s.useMemo)(()=>l.defaultGroupBy??["alertname"],[l.defaultGroupBy]),I=(0,s.useMemo)(()=>[...new Set(O.flatMap(e=>(0,er.parseVariables)(e)))],[O]),D=(0,er.useAllVariableValues)(I),K=(0,s.useMemo)(()=>{let e=[];for(let l of O){let n=(0,er.parseVariables)(l);if(0===n.length)e.push(l);else if(1===n.length&&(l===`$${n[0]}`||l===`\${${n[0]}}`)){let l=D[n[0]??""];(null==l?void 0:l.value)&&(Array.isArray(l.value)?e.push(...l.value):e.push(l.value))}else{let n=(0,er.replaceVariablesInString)(l,D);n&&e.push(n)}}return e},[O,D]),[H,ei]=(0,s.useState)(K);(0,s.useEffect)(()=>{ei(K)},[K]);let eo=(0,s.useMemo)(()=>l.allowedActions??U,[l.allowedActions]),eu=eo.length>0,ec=l.runbookAnnotationKey||"runbook_url",eg=(0,s.useMemo)(()=>l.columns??[],[l.columns]),eb=(0,s.useMemo)(()=>new Set(eg.map(e=>e.name)),[eg]),ef=(0,s.useMemo)(()=>l.labelColorMappings??[],[l.labelColorMappings]),ej=(0,s.useMemo)(()=>ef.map(e=>e.labelKey),[ef]),eA=(0,s.useMemo)(()=>new Map(ef.map(e=>[e.labelKey,e])),[ef]),ey=(0,s.useMemo)(()=>[...new Set([...ej,...eg.map(e=>e.name)])],[ej,eg]),eC=(0,s.useMemo)(()=>{let e=eg.find(e=>e.sort&&!1!==e.enableSorting);return(null==e?void 0:e.sort)?{columnName:e.name,direction:e.sort,mode:e.sortMode??"alphabetical"}:null},[eg]),[ek,ew]=(0,s.useState)(eC),eM=(0,s.useCallback)(function(e){let l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"alphabetical";ew(n=>(null==n?void 0:n.columnName)===e?"asc"===n.direction?{...n,direction:"desc"}:null:{columnName:e,direction:"asc",mode:l})},[]),eS=(0,s.useMemo)(()=>n.flatMap(e=>{var l;return(null==(l=e.data)?void 0:l.alerts)??[]}),[n]),ez=(0,s.useMemo)(()=>l.deduplication??{mode:"fingerprint"},[l.deduplication]),eN=(0,s.useMemo)(()=>(function(e,l){if(0===e.length||"none"===l.mode)return{alerts:e,duplicateCounts:new Map};let n=new Map,t=new Map,a=[];for(let r of e){let e;e="labels"===l.mode&&l.labels?l.labels.map(e=>`${e}=${r.labels[e]??""}`).join(","):r.id?r.id:JSON.stringify(r.labels),n.has(e)?t.set(e,(t.get(e)??1)+1):(n.set(e,r),t.set(e,1),a.push(r))}let r=new Map;for(let[e,l]of n){let n=t.get(e)??1;n>1&&r.set(l,n)}return{alerts:a,duplicateCounts:r}})(eS,ez),[eS,ez]),e$=eN.alerts,eO=eN.duplicateCounts,eR=eO.size>0,eE=(0,s.useMemo)(()=>{let e=C.trim().toLowerCase();return e?e$.filter(l=>!!(l.state.toLowerCase().includes(e)||l.suppressed&&("suppressed".includes(e)||"silenced".includes(e))||Object.values(l.labels).some(l=>l.toLowerCase().includes(e))||l.annotations&&Object.values(l.annotations).some(l=>l.toLowerCase().includes(e)))):e$},[e$,C]),eI=(0,s.useMemo)(()=>(function(e){let l=new Set;for(let n of e)for(let e of Object.keys(n.labels))l.add(e);return Array.from(l).sort()})(eE),[eE]),eD=(0,s.useMemo)(()=>{let e;if(0===H.length)e=[{key:"",alerts:[...eE],summary:P(eE,ey)}];else{let l=new Map;for(let e of eE){let n=function(e,l){return l.map(l=>`${l}=${e.labels[l]??""}`).join(",")}(e,H),t=l.get(n)??[];t.push(e),l.set(n,t)}e=Array.from(l.entries()).map(e=>{let[l,n]=e;return{key:l,alerts:n,summary:P(n,ey)}})}if(ek){for(let l of e)l.alerts.sort((e,l)=>(function(e,l,n){var t,a;let r;if(n.columnName===W)return t=T(e),a=T(l),((void 0!==t?G[t]??5:5)-(void 0!==a?G[a]??5:5))*q(n.direction);if(n.columnName===L)return _(e.name,l.name)*q(n.direction);let s=e.labels[n.columnName],i=l.labels[n.columnName];switch(n.mode){case"numeric":r=V(s,i);break;case"severity":r=(void 0!==s?E(s):R.length)-(void 0!==i?E(i):R.length);break;default:r=_(s,i)}return r*q(n.direction)})(e,l,ek));e.sort((e,l)=>{var n,t;return function(e,l,n){let t,a=!e||0===Object.keys(e).length,r=!l||0===Object.keys(l).length;if(a&&r)return 0;if(a)return 1;if(r)return -1;switch(n.mode){case"status":{let n=B(e),a=B(l);0==(t=n.weight-a.weight)&&(t=a.count-n.count);break}case"severity":{let n=Q(e),a=Q(l);0==(t=n.weight-a.weight)&&(t=a.count-n.count);break}case"numeric":{let t=F(e),a=F(l),r=V(t.value,a.value);if(0!==r)return r*q(n.direction);return a.count-t.count}default:{let t=F(e),a=F(l),r=_(t.value,a.value);if(0!==r)return r*q(n.direction);return a.count-t.count}}return t*q(n.direction)}(null==(n=e.summary.labelCounts)?void 0:n[ek.columnName],null==(t=l.summary.labelCounts)?void 0:t[ek.columnName],ek)})}return e},[eE,H,ey,ek]),eK=(0,s.useRef)("");(0,s.useEffect)(()=>{let e=eD.map(e=>e.key).join("\0");e!==eK.current&&(eK.current=e,1===eD.length?M(new Set(eD.map(e=>e.key))):M(new Set))},[eD]);let eW=(0,s.useCallback)(e=>{M(l=>{let n=new Set(l);return n.has(e)?n.delete(e):n.add(e),n})},[]),eL=(0,s.useCallback)(()=>{M(new Set(eD.map(e=>e.key)))},[eD]),eG=(0,s.useCallback)(()=>{M(new Set)},[]);return 0===eS.length?(0,t.jsx)(f.A,{sx:{display:"flex",justifyContent:"center",alignItems:"center",height:(null==r?void 0:r.height)??"100%"},children:(0,t.jsx)(p.A,{children:"No alerts to display"})}):(0,t.jsxs)(j.A,{spacing:1,sx:{height:null==r?void 0:r.height,overflow:"auto"},children:[(0,t.jsxs)(j.A,{direction:"row",spacing:2,alignItems:"center",sx:{px:1,pt:1},children:[(0,t.jsx)(a.A,{size:"small",placeholder:"Search alerts...",value:C,onChange:e=>k(e.target.value),sx:{minWidth:200},slotProps:{htmlInput:{"aria-label":"Search alerts"},input:{startAdornment:(0,t.jsx)(Z.A,{position:"start",children:(0,t.jsx)(ed.default,{fontSize:"small"})})}}}),(0,t.jsxs)(u.A,{size:"small",sx:{minWidth:200},children:[(0,t.jsx)(c.A,{id:"group-by-label",children:"Group by"}),(0,t.jsx)(d.A,{labelId:"group-by-label",multiple:!0,value:H,onChange:e=>{let l=e.target.value;ei("string"==typeof l?l.split(","):l)},label:"Group by",renderValue:e=>e.join(", "),children:eI.map(e=>(0,t.jsx)(m.A,{value:e,children:e},e))})]}),(0,t.jsxs)(p.A,{variant:"body2",color:"text.secondary",sx:{flexGrow:1},children:[eE.length," alert",1!==eE.length?"s":""," in ",eD.length," group",1!==eD.length?"s":""]}),(0,t.jsxs)(j.A,{direction:"row",spacing:.5,children:[(0,t.jsx)(X.A,{title:"Expand all groups",children:(0,t.jsx)(v.A,{size:"small","aria-label":"Expand all groups",onClick:eL,children:(0,t.jsx)(ep.default,{fontSize:"small"})})}),(0,t.jsx)(X.A,{title:"Collapse all groups",children:(0,t.jsx)(v.A,{size:"small","aria-label":"Collapse all groups",onClick:eG,children:(0,t.jsx)(em.default,{fontSize:"small"})})})]})]}),(0,t.jsx)(ee.A,{children:(0,t.jsxs)(el.A,{size:"small",stickyHeader:!0,children:[(0,t.jsx)(en.A,{children:(0,t.jsxs)(J.A,{children:[(0,t.jsx)(Y.A,{sortDirection:(null==ek?void 0:ek.columnName)===W&&ek.direction,children:(0,t.jsx)(et.A,{active:(null==ek?void 0:ek.columnName)===W,direction:(null==ek?void 0:ek.columnName)===W?ek.direction:"asc",onClick:()=>eM(W,"status"),children:"Status"})}),(0,t.jsx)(Y.A,{sortDirection:(null==ek?void 0:ek.columnName)===L&&ek.direction,children:(0,t.jsx)(et.A,{active:(null==ek?void 0:ek.columnName)===L,direction:(null==ek?void 0:ek.columnName)===L?ek.direction:"asc",onClick:()=>eM(L,"alphabetical"),children:"Alert Name"})}),eg.map((e,l)=>(0,t.jsx)(Y.A,{sortDirection:(null==ek?void 0:ek.columnName)===e.name&&ek.direction,children:!1!==e.enableSorting?(0,t.jsx)(et.A,{active:(null==ek?void 0:ek.columnName)===e.name,direction:(null==ek?void 0:ek.columnName)===e.name?ek.direction:"asc",onClick:()=>eM(e.name,e.sortMode),children:e.header??e.name}):e.header??e.name},l)),eR&&(0,t.jsx)(Y.A,{children:"Duplicates"}),(0,t.jsx)(Y.A,{children:"Labels"}),eu&&(0,t.jsx)(Y.A,{children:"Actions"})]})}),(0,t.jsx)(ea.A,{children:0===eE.length?(0,t.jsx)(J.A,{children:(0,t.jsx)(Y.A,{colSpan:99,align:"center",sx:{py:4},children:(0,t.jsx)(p.A,{color:"text.secondary",children:"No matching alerts"})})}):eD.map(e=>(0,t.jsx)(ev,{group:e,expanded:w.has(e.key),allowedActions:eo,columnDefs:eg,columnKeySet:eb,labelColorMappings:ef,mappingsByKey:eA,runbookAnnotationKey:ec,onToggle:()=>eW(e.key),onSilence:y,duplicateCounts:eO,showDuplicates:eR},e.key))})]})}),(0,t.jsx)(eh.K,{open:!!g,onClose:()=>b(null),onSubmit:N,initialSilence:$},A.current)]})},supportedQueryTypes:["AlertsQuery"],panelOptionsEditorComponents:[{label:"General",content:function(e){let{value:l,onChange:n}=e,i=l.allowedActions??U,o=l.defaultGroupBy??["alertname"],u=(0,s.useCallback)((e,t)=>{n((0,r.jM)(l,e=>{e.defaultGroupBy=t.length>0?t:void 0}))},[l,n]),c=(0,s.useCallback)(e=>{n((0,r.jM)(l,l=>{l.runbookAnnotationKey=e.target.value.trim()||void 0}))},[l,n]),d=(0,s.useCallback)((e,t)=>{n((0,r.jM)(l,l=>{let n=l.allowedActions??[...U];if(t)n.includes(e)||n.push(e);else{let l=n.indexOf(e);l>=0&&n.splice(l,1)}l.allowedActions=n}))},[l,n]);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(x.OptionsEditorGroup,{title:"Group By",children:(0,t.jsx)(h.A,{multiple:!0,freeSolo:!0,options:[],value:o,onChange:u,renderTags:(e,l)=>e.map((e,n)=>{let{key:a,...r}=l({index:n}),s=e.includes("$");return(0,t.jsx)(g.A,{label:e,size:"small",variant:s?"filled":"outlined",color:s?"primary":"default",...r},a)}),renderInput:e=>(0,t.jsx)(a.A,{...e,size:"small",placeholder:"Type a label key or $variable and press Enter",helperText:"Label keys to group alerts by. Supports $variable interpolation."})})}),(0,t.jsx)(x.OptionsEditorGroup,{title:"Actions",children:U.map(e=>(0,t.jsx)(A.A,{control:(0,t.jsx)(y.A,{checked:i.includes(e),onChange:l=>d(e,l.target.checked),size:"small"}),label:H[e]},e))}),(0,t.jsx)(x.OptionsEditorGroup,{title:"Runbook",children:(0,t.jsx)(a.A,{size:"small",fullWidth:!0,value:l.runbookAnnotationKey??"",onChange:c,placeholder:"runbook_url",helperText:"Annotation key used to extract the runbook URL. Defaults to runbook_url."})})]})}},{label:"Columns",content:function(e){let{value:l,onChange:n}=e,u=l.columns??[],c=(0,s.useCallback)(()=>{n((0,r.jM)(l,e=>{e.columns||(e.columns=[]),e.columns.push({name:""})}))},[l,n]),d=(0,s.useCallback)(e=>{n((0,r.jM)(l,l=>{var n;null==(n=l.columns)||n.splice(e,1)}))},[l,n]),m=(0,s.useCallback)((e,t)=>{n((0,r.jM)(l,l=>{var n;let a=null==(n=l.columns)?void 0:n[e];a&&t(a)}))},[l,n]),p=(0,s.useCallback)(e=>{e<=0||n((0,r.jM)(l,l=>{if(!l.columns)return;let n=l.columns.splice(e,1)[0];l.columns.splice(e-1,0,n)}))},[l,n]),h=(0,s.useCallback)(e=>{n((0,r.jM)(l,l=>{if(!l.columns||e>=l.columns.length-1)return;let n=l.columns.splice(e,1)[0];l.columns.splice(e+1,0,n)}))},[l,n]);return(0,t.jsx)(i.V,{columns:u,description:"Status and Alert Name are always shown. Add extra columns below.",sortModeLabels:o,defaultSortMode:"alphabetical",getDisplayName:e=>e.header||e.name||"New column",getHeaderPlaceholder:e=>e.name||"Column header",onAdd:c,onRemove:d,onUpdate:m,onMoveUp:p,onMoveDown:h,renderNameField:(e,l,n)=>(0,t.jsx)(a.A,{label:"Label key",value:e.name,onChange:e=>n(l,l=>{l.name=e.target.value}),size:"small",fullWidth:!0})})}},{label:"Labels",content:function(e){let{value:l,onChange:n}=e,a=l.labelColorMappings??[],i=(0,s.useCallback)(()=>{n((0,r.jM)(l,e=>{e.labelColorMappings||(e.labelColorMappings=[]),e.labelColorMappings.push({labelKey:"",mode:"auto"})}))},[l,n]),o=(0,s.useCallback)(e=>{n((0,r.jM)(l,l=>{var n;null==(n=l.labelColorMappings)||n.splice(e,1)}))},[l,n]),u=(0,s.useCallback)((e,t)=>{n((0,r.jM)(l,l=>{var n;let a=null==(n=l.labelColorMappings)?void 0:n[e];a&&t(a)}))},[l,n]);return(0,t.jsx)(x.OptionsEditorGroup,{title:"Label Color Mappings",children:(0,t.jsxs)(j.A,{spacing:2,children:[0===a.length&&(0,t.jsx)(p.A,{variant:"body2",color:"text.secondary",children:"No label color mappings configured. Add one to color label values in the table."}),a.map((e,l)=>(0,t.jsxs)(f.A,{children:[l>0&&(0,t.jsx)(k.A,{sx:{mb:2}}),(0,t.jsx)(z,{mapping:e,index:l,onUpdate:u,onRemove:o})]},l)),(0,t.jsx)(C.A,{variant:"outlined",size:"small",startIcon:(0,t.jsx)(M.default,{}),onClick:i,children:"Add label mapping"})]})})}},{label:"Deduplication",content:function(e){let{value:l,onChange:n}=e,i=l.deduplication??{mode:"fingerprint"},o=(0,s.useCallback)(e=>{n((0,r.jM)(l,l=>{l.deduplication={mode:e},"labels"===e&&(l.deduplication.labels=l.deduplication.labels??[])}))},[l,n]),f=(0,s.useCallback)((e,t)=>{n((0,r.jM)(l,e=>{e.deduplication||(e.deduplication={mode:"labels"}),e.deduplication.labels=t.length>0?t:void 0}))},[l,n]);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(x.OptionsEditorGroup,{title:"Mode",children:[(0,t.jsxs)(u.A,{size:"small",fullWidth:!0,children:[(0,t.jsx)(c.A,{id:"dedup-mode-label",children:"Deduplication Mode"}),(0,t.jsxs)(d.A,{labelId:"dedup-mode-label",value:i.mode,label:"Deduplication Mode",onChange:e=>o(e.target.value),children:[(0,t.jsx)(m.A,{value:"none",children:"None"}),(0,t.jsx)(m.A,{value:"fingerprint",children:"Fingerprint"}),(0,t.jsx)(m.A,{value:"labels",children:"Labels"})]})]}),(0,t.jsx)(p.A,{variant:"body2",color:"text.secondary",sx:{mt:1},children:b[i.mode]})]}),"labels"===i.mode&&(0,t.jsx)(x.OptionsEditorGroup,{title:"Deduplication Labels",children:(0,t.jsx)(h.A,{multiple:!0,freeSolo:!0,options:[],value:i.labels??[],onChange:f,renderTags:(e,l)=>e.map((e,n)=>{let{key:a,...r}=l({index:n});return(0,t.jsx)(g.A,{label:e,size:"small",variant:"outlined",...r},a)}),renderInput:e=>(0,t.jsx)(a.A,{...e,size:"small",placeholder:"Type a label key and press Enter",helperText:"Alerts with identical values for all listed labels are considered duplicates."})})})]})}}],createInitialOptions:()=>({defaultGroupBy:["alertname"]})}}}]);
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! For license information please see __federation_expose_SilenceTable.3fc487a4.js.LICENSE.txt */
|
|
2
|
-
"use strict";(self.chunk_AlertManager=self.chunk_AlertManager||[]).push([["9628"],{74628(e,t,n){n.d(t,{A:()=>A});var a=n(70451),r=n(11750),l=n(41535),s=n(92927),i=n(20523),o=n(26041),c=n(62540),d=n(71027),u=n(9408),m=n(93724);let p=(0,n(29009).A)("MuiBox",["root"]),h=(0,u.A)(),A=function(e={}){let{themeId:t,defaultTheme:n,defaultClassName:d="MuiBox-root",generateClassName:u}=e,m=(0,l.Ay)("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(s.A);return a.forwardRef(function(e,a){let l=(0,o.A)(n),{className:s,component:p="div",...h}=(0,i.A)(e);return(0,c.jsx)(m,{as:p,ref:a,className:(0,r.A)(s,u?u(d):d),theme:t&&l[t]||l,...h})})}({themeId:m.A,defaultTheme:h,defaultClassName:p.root,generateClassName:d.A.generate})},2582(e,t,n){n.d(t,{A:()=>j});var a,r=n(70451),l=n(11750),s=n(81023),i=n(24726),o=n(88091),c=n(88404),d=n(42872),u=n(77308),m=n(23434),p=n(72052),h=n(29009),A=n(46733);function f(e){return(0,A.Ay)("MuiInputAdornment",e)}let x=(0,h.A)("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var v=n(62540);let y=(0,u.A)("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[`position${(0,i.A)(n.position)}`],!0===n.disablePointerEvents&&t.disablePointerEvents,t[n.variant]]}})((0,m.A)(({theme:e})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${x.positionStart}&:not(.${x.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),j=r.forwardRef(function(e,t){let n=(0,p.b)({props:e,name:"MuiInputAdornment"}),{children:u,className:m,component:h="div",disablePointerEvents:A=!1,disableTypography:x=!1,position:j,variant:g,...b}=n,w=(0,d.A)()||{},M=g;g&&w.variant,w&&!M&&(M=w.variant);let S={...n,hiddenLabel:w.hiddenLabel,size:w.size,disablePointerEvents:A,position:j,variant:M},C=(e=>{let{classes:t,disablePointerEvents:n,hiddenLabel:a,position:r,size:l,variant:o}=e,c={root:["root",n&&"disablePointerEvents",r&&`position${(0,i.A)(r)}`,o,a&&"hiddenLabel",l&&`size${(0,i.A)(l)}`]};return(0,s.A)(c,f,t)})(S);return(0,v.jsx)(c.A.Provider,{value:null,children:(0,v.jsx)(y,{as:h,ownerState:S,className:(0,l.A)(C.root,m),ref:t,...b,children:"string"!=typeof u||x?(0,v.jsxs)(r.Fragment,{children:["start"===j?a||(a=(0,v.jsx)("span",{className:"notranslate","aria-hidden":!0,children:""})):null,u]}):(0,v.jsx)(o.A,{color:"textSecondary",children:u})})})})},62636(e,t,n){n.d(t,{A:()=>v});var a=n(81023),r=n(11750),l=n(70451),s=n(1337),i=n(22402),o=n(62540);let c=(0,i.A)((0,o.jsx)("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");var d=n(77308),u=n(23434),m=n(72052),p=n(24726),h=n(85605),A=n(73397);let f=(0,d.A)(s.A,{name:"MuiTableSortLabel",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.active&&t.active]}})((0,u.A)(({theme:e})=>({cursor:"pointer",display:"inline-flex",justifyContent:"flex-start",flexDirection:"inherit",alignItems:"center","&:focus":{color:(e.vars||e).palette.text.secondary},"&:hover":{color:(e.vars||e).palette.text.secondary,[`& .${h.A.icon}`]:{opacity:.5}},[`&.${h.A.active}`]:{color:(e.vars||e).palette.text.primary,[`& .${h.A.icon}`]:{opacity:1,color:(e.vars||e).palette.text.secondary}}}))),x=(0,d.A)("span",{name:"MuiTableSortLabel",slot:"Icon",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.icon,t[`iconDirection${(0,p.A)(n.direction)}`]]}})((0,u.A)(({theme:e})=>({fontSize:18,marginRight:4,marginLeft:4,opacity:0,transition:e.transitions.create(["opacity","transform"],{duration:e.transitions.duration.shorter}),userSelect:"none",variants:[{props:{direction:"desc"},style:{transform:"rotate(0deg)"}},{props:{direction:"asc"},style:{transform:"rotate(180deg)"}}]}))),v=l.forwardRef(function(e,t){let n=(0,m.b)({props:e,name:"MuiTableSortLabel"}),{active:l=!1,children:s,className:i,direction:d="asc",hideSortIcon:u=!1,IconComponent:v=c,slots:y={},slotProps:j={},...g}=n,b={...n,active:l,direction:d,hideSortIcon:u,IconComponent:v},w=(e=>{let{classes:t,direction:n,active:r}=e,l={root:["root",r&&"active",`direction${(0,p.A)(n)}`],icon:["icon",`iconDirection${(0,p.A)(n)}`]};return(0,a.A)(l,h.l,t)})(b),M={slots:y,slotProps:j},[S,C]=(0,A.A)("root",{elementType:f,externalForwardedProps:M,ownerState:b,className:(0,r.A)(w.root,i),ref:t}),[L,N]=(0,A.A)("icon",{elementType:x,externalForwardedProps:M,ownerState:b,className:w.icon});return(0,o.jsxs)(S,{disableRipple:!0,component:"span",...C,...g,children:[s,u&&!l?null:(0,o.jsx)(L,{as:v,...N})]})})},85605(e,t,n){n.d(t,{A:()=>s,l:()=>l});var a=n(29009),r=n(46733);function l(e){return(0,r.Ay)("MuiTableSortLabel",e)}let s=(0,a.A)("MuiTableSortLabel",["root","active","icon","iconDirectionDesc","iconDirectionAsc","directionDesc","directionAsc"])},46001(e,t,n){var a;t.default=void 0,t.default=(0,((a=n(1448))&&a.__esModule?a:{default:a}).default)("M11,4H13V16L18.5,10.5L19.92,11.92L12,19.84L4.08,11.92L5.5,10.5L11,16V4Z","ArrowDown")},65168(e,t,n){var a;t.default=void 0,t.default=(0,((a=n(1448))&&a.__esModule?a:{default:a}).default)("M13,20H11V8L5.5,13.5L4.08,12.08L12,4.16L19.92,12.08L18.5,13.5L13,8V20Z","ArrowUp")},98029(e,t,n){var a;t.default=void 0,t.default=(0,((a=n(1448))&&a.__esModule?a:{default:a}).default)("M19,4H15.5L14.5,3H9.5L8.5,4H5V6H19M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19Z","Delete")},98599(e,t,n){var a;t.default=void 0,t.default=(0,((a=n(1448))&&a.__esModule?a:{default:a}).default)("M9.5,3A6.5,6.5 0 0,1 16,9.5C16,11.11 15.41,12.59 14.44,13.73L14.71,14H15.5L20.5,19L19,20.5L14,15.5V14.71L13.73,14.44C12.59,15.41 11.11,16 9.5,16A6.5,6.5 0 0,1 3,9.5A6.5,6.5 0 0,1 9.5,3M9.5,5C7,5 5,7 5,9.5C5,12 7,14 9.5,14C12,14 14,12 14,9.5C14,7 12,5 9.5,5Z","Magnify")},2192(e,t,n){var a=n(70451),r=Symbol.for("react.element"),l=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,i=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var a,l={},c=null,d=null;for(a in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(d=t.ref),t)s.call(t,a)&&!o.hasOwnProperty(a)&&(l[a]=t[a]);if(e&&e.defaultProps)for(a in t=e.defaultProps)void 0===l[a]&&(l[a]=t[a]);return{$$typeof:r,type:e,key:c,ref:d,props:l,_owner:i.current}}t.Fragment=l,t.jsx=c,t.jsxs=c},62540(e,t,n){e.exports=n(2192)},22157(e,t,n){n.r(t),n.d(t,{SilenceTable:()=>Z});var a=n(62540),r=n(67987),l=n(54227),s=n(76795),i=n(97653),o=n(38662),c=n(70451),d=n(17635);let u=["expire"],m={status:"Status",matchers:"Matchers",createdBy:"Creator",startsAt:"Starts At",endsAt:"Ends At",duration:"Duration",comment:"Comment",updatedAt:"Updated At"},p=[{name:"status",sort:"asc",sortMode:"status"},{name:"matchers",enableSorting:!1},{name:"comment"}];function h(e){switch(e){case"status":return"status";case"startsAt":case"endsAt":case"updatedAt":return"date";default:return"alphabetical"}}function A(e,t){switch(t){case"status":return e.state;case"matchers":return e.matchers.map(e=>`${e.name}=${e.value}`).join(", ");case"createdBy":return e.createdBy;case"startsAt":return e.startsAt;case"endsAt":return e.endsAt;case"duration":return f(e);case"comment":return e.comment??"";case"updatedAt":return e.updatedAt??""}}function f(e){let t=new Date(e.startsAt).getTime(),n=new Date(e.endsAt).getTime()-t;if(n<=0)return"0m";let a=Math.floor(n/6e4),r=Math.floor(a/1440),l=Math.floor(a%1440/60),s=a%60,i=[];return r>0&&i.push(`${r}d`),l>0&&i.push(`${l}h`),s>0&&i.push(`${s}m`),i.join(" ")||"0m"}let x=new Set(p.map(e=>e.name)),v=["status","matchers","createdBy","startsAt","endsAt","duration","comment","updatedAt"].filter(e=>!x.has(e)),y={alphabetical:"Alphabetical",date:"Date (chronological)",status:"Status (active > pending > expired)"};var j=n(10740),g=n(42927),b=n(57072);let w={expire:"Expire silence"};var M=n(65211),S=n(88091),C=n(3399),L=n(45271),N=n(315),D=n(47095),_=n(74628),E=n(347),k=n(93648),$=n(2582),R=n(91394),T=n(70561),I=n(62636),P=n(5139),z=n(19848),H=n(91807),O=n(98029),B=n(98599),F=n(47601);function V(e){let{matchers:t}=e;return(0,a.jsx)(N.A,{direction:"row",spacing:.5,flexWrap:"wrap",useFlexGap:!0,children:t.map((e,t)=>{let n;return(0,a.jsx)(F.A,{label:(n=e.isRegex?e.isEqual??!0?"=~":"!~":e.isEqual??!0?"=":"!=",`${e.name}${n}"${e.value}"`),size:"small",variant:"outlined"},t)})})}var Q=n(26734),U=n(44789);let q={active:0,pending:1,expired:2};function W(e){let{silence:t,columnDefs:n,allowedActions:r,onExpire:l}=e,s=r.length>0,i="expired"===t.state;return(0,a.jsxs)(C.A,{hover:!0,children:[n.map((e,n)=>(0,a.jsx)(L.A,{children:function(e,t){switch(t){case"status":return(0,a.jsx)(Q.W,{status:e.state,variant:"silence"});case"matchers":return(0,a.jsx)(V,{matchers:e.matchers});case"startsAt":case"endsAt":case"updatedAt":{let n="updatedAt"===t?e.updatedAt:e[t];return(0,a.jsx)(a.Fragment,{children:n?new Date(n).toLocaleString():""})}case"duration":return(0,a.jsx)(a.Fragment,{children:f(e)});case"comment":return(0,a.jsx)(M.A,{title:e.comment??"",children:(0,a.jsx)(S.A,{variant:"body2",sx:{maxWidth:200,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:e.comment??""})});case"createdBy":return(0,a.jsx)(a.Fragment,{children:e.createdBy})}}(t,e.name)},n)),s&&(0,a.jsx)(L.A,{children:(0,a.jsx)(N.A,{direction:"row",spacing:.5,children:r.includes("expire")&&(0,a.jsx)(M.A,{title:i?"Already expired":"Expire silence",children:(0,a.jsx)("span",{children:(0,a.jsx)(D.A,{size:"small","aria-label":"Expire silence",onClick:()=>l(t),disabled:i,children:(0,a.jsx)(O.default,{fontSize:"small"})})})})})})]})}let Z={PanelComponent:function(e){let{spec:t,queryResults:n,contentDimensions:r}=e,l=(0,c.useMemo)(()=>(0,U.IU)(n),[n]),{data:s}=(0,z.useDatasourceClient)(l),i=(0,H.useQueryClient)(),[o,d]=(0,c.useState)(null),[f,x]=(0,c.useState)(!1),{successSnackbar:v,exceptionSnackbar:y}=(0,b.useSnackbar)(),j=(0,c.useCallback)(async()=>{if(s&&o){x(!0);try{await s.deleteSilence(o.id),d(null),v("Silence expired successfully"),i.invalidateQueries({queryKey:["query","AlertsQuery"]}),i.invalidateQueries({queryKey:["query","SilencesQuery"]})}catch(e){y(e)}finally{x(!1)}}},[s,o,i,v,y]),[g,w]=(0,c.useState)(""),M=(0,c.useMemo)(()=>(null==t?void 0:t.allowedActions)??u,[null==t?void 0:t.allowedActions]),N=M.length>0,D=(0,c.useMemo)(()=>{if(!t.columns||0===t.columns.length)return p;let e=new Set(p.map(e=>e.name));return[...p,...t.columns.filter(t=>!e.has(t.name))]},[t.columns]),O=(0,c.useMemo)(()=>{let e=D.find(e=>e.sort&&!1!==e.enableSorting);return(null==e?void 0:e.sort)?{fieldName:e.name,direction:e.sort,mode:e.sortMode??h(e.name)}:null},[D]),[F,V]=(0,c.useState)(O),Q=(0,c.useCallback)(e=>{V(t=>(null==t?void 0:t.fieldName)===e.name?"asc"===t.direction?{...t,direction:"desc"}:null:{fieldName:e.name,direction:"asc",mode:e.sortMode??h(e.name)})},[]),Z=(0,c.useMemo)(()=>n.flatMap(e=>{var t;return(null==(t=e.data)?void 0:t.silences)??[]}),[n]),G=(0,c.useMemo)(()=>{let e=g.trim().toLowerCase();return e?Z.filter(t=>{var n;return!!(t.state.toLowerCase().includes(e)||t.createdBy.toLowerCase().includes(e)||(null==(n=t.comment)?void 0:n.toLowerCase().includes(e)))||t.matchers.some(t=>t.name.toLowerCase().includes(e)||t.value.toLowerCase().includes(e))}):Z},[Z,g]),K=(0,c.useMemo)(()=>F?[...G].sort((e,t)=>(function(e,t,n){let a,r,l,s=A(e,n.fieldName),i=A(t,n.fieldName);switch(n.mode){case"date":r=s?new Date(s).getTime():NaN,l=i?new Date(i).getTime():NaN,a=isNaN(r)&&isNaN(l)?0:isNaN(r)?1:isNaN(l)?-1:r-l;break;case"status":a=(q[s]??3)-(q[i]??3);break;default:a=s||i?s?i?s.localeCompare(i):-1:1:0}return a*("asc"===n.direction?1:-1)})(e,t,F)):G,[G,F]);return 0===Z.length?(0,a.jsx)(_.A,{sx:{display:"flex",justifyContent:"center",alignItems:"center",height:(null==r?void 0:r.height)??"100%"},children:(0,a.jsx)(S.A,{children:"No silences to display"})}):(0,a.jsxs)(E.A,{sx:{height:null==r?void 0:r.height,overflow:"auto"},children:[(0,a.jsx)(_.A,{sx:{px:1,py:.5},children:(0,a.jsx)(k.A,{size:"small",placeholder:"Search silences...",value:g,onChange:e=>w(e.target.value),fullWidth:!0,slotProps:{htmlInput:{"aria-label":"Search silences"},input:{startAdornment:(0,a.jsx)($.A,{position:"start",children:(0,a.jsx)(B.default,{fontSize:"small"})})}}})}),(0,a.jsxs)(R.A,{size:"small",stickyHeader:!0,children:[(0,a.jsx)(T.A,{children:(0,a.jsxs)(C.A,{children:[D.map((e,t)=>(0,a.jsx)(L.A,{sortDirection:(null==F?void 0:F.fieldName)===e.name&&F.direction,children:!1!==e.enableSorting?(0,a.jsx)(I.A,{active:(null==F?void 0:F.fieldName)===e.name,direction:(null==F?void 0:F.fieldName)===e.name?F.direction:"asc",onClick:()=>Q(e),children:e.header??m[e.name]}):e.header??m[e.name]},t)),N&&(0,a.jsx)(L.A,{children:"Actions"})]})}),(0,a.jsx)(P.A,{children:0===K.length?(0,a.jsx)(C.A,{children:(0,a.jsx)(L.A,{colSpan:99,align:"center",sx:{py:4},children:(0,a.jsx)(S.A,{color:"text.secondary",children:"No matching silences"})})}):K.map(e=>(0,a.jsx)(W,{silence:e,columnDefs:D,allowedActions:M,onExpire:d},e.id))})]}),(0,a.jsxs)(b.Dialog,{open:!!o,onClose:()=>d(null),children:[(0,a.jsx)(b.Dialog.Header,{onClose:()=>d(null),children:"Expire Silence"}),(0,a.jsx)(b.Dialog.Content,{children:"Are you sure you want to expire this silence? Alerts matching its matchers will start firing again."}),(0,a.jsxs)(b.Dialog.Actions,{children:[(0,a.jsx)(b.Dialog.SecondaryButton,{onClick:()=>d(null),children:"Cancel"}),(0,a.jsx)(b.Dialog.PrimaryButton,{onClick:j,disabled:f,children:f?"Expiring...":"Expire"})]})]})]})},supportedQueryTypes:["SilencesQuery"],panelOptionsEditorComponents:[{label:"General",content:function(e){let{value:t,onChange:n}=e,r=t.allowedActions??u,l=(0,c.useCallback)((e,a)=>{n((0,o.jM)(t,t=>{let n=t.allowedActions??[...u];if(a)n.includes(e)||n.push(e);else{let t=n.indexOf(e);t>=0&&n.splice(t,1)}t.allowedActions=n}))},[t,n]);return(0,a.jsx)(b.OptionsEditorGroup,{title:"Actions",children:u.map(e=>(0,a.jsx)(j.A,{control:(0,a.jsx)(g.A,{checked:r.includes(e),onChange:t=>l(e,t.target.checked),size:"small"}),label:w[e]},e))})}},{label:"Columns",content:function(e){let{value:t,onChange:n}=e,u=t.columns??[],p=(0,c.useCallback)(()=>{n((0,o.jM)(t,e=>{e.columns||(e.columns=[]),e.columns.push({name:v[0]??"updatedAt"})}))},[t,n]),A=(0,c.useCallback)(e=>{n((0,o.jM)(t,t=>{var n;null==(n=t.columns)||n.splice(e,1)}))},[t,n]),f=(0,c.useCallback)((e,a)=>{n((0,o.jM)(t,t=>{var n;let r=null==(n=t.columns)?void 0:n[e];r&&a(r)}))},[t,n]),x=(0,c.useCallback)(e=>{e<=0||n((0,o.jM)(t,t=>{if(!t.columns)return;let n=t.columns.splice(e,1)[0];t.columns.splice(e-1,0,n)}))},[t,n]),j=(0,c.useCallback)(e=>{n((0,o.jM)(t,t=>{if(!t.columns||e>=t.columns.length-1)return;let n=t.columns.splice(e,1)[0];t.columns.splice(e+1,0,n)}))},[t,n]);return(0,a.jsx)(d.V,{columns:u,description:"Status and Matchers are always shown. Add extra columns below.",sortModeLabels:y,defaultSortMode:"alphabetical",getDisplayName:e=>e.header||m[e.name]||"New column",getHeaderPlaceholder:e=>m[e.name]||"Column header",onAdd:p,onRemove:A,onUpdate:f,onMoveUp:x,onMoveDown:j,renderNameField:(e,t,n)=>(0,a.jsxs)(r.A,{size:"small",fullWidth:!0,children:[(0,a.jsx)(l.A,{id:`field-name-label-${t}`,children:"Field"}),(0,a.jsx)(s.A,{labelId:`field-name-label-${t}`,value:e.name,onChange:e=>n(t,t=>{let n=e.target.value;t.name=n,t.sortMode=h(n)}),label:"Field",children:v.map(e=>(0,a.jsx)(i.A,{value:e,children:m[e]},e))})]})})}}],createInitialOptions:()=>({})}}}]);
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! For license information please see lib-router.19f64904.js.LICENSE.txt */
|
|
2
|
-
"use strict";(self.chunk_AlertManager=self.chunk_AlertManager||[]).push([["9535"],{70744(e,t,r){var n,a,o,i;function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}r.d(t,{AO:()=>v,B6:()=>D,G3:()=>ea,Gh:()=>M,HC:()=>J,HS:()=>N,HW:()=>en,Oi:()=>h,Pq:()=>H,RO:()=>L,Rr:()=>y,Sk:()=>q,TM:()=>d,V2:()=>K,VV:()=>Y,aE:()=>es,o1:()=>A,pX:()=>X,pb:()=>k,rc:()=>n,ro:()=>R,sC:()=>u,tH:()=>V,tW:()=>P,ue:()=>E,v6:()=>W,yD:()=>j,zR:()=>c}),(o=n||(n={})).Pop="POP",o.Push="PUSH",o.Replace="REPLACE";let s="popstate";function u(e){let t;void 0===e&&(e={});let{initialEntries:r=["/"],initialIndex:a,v5Compat:o=!1}=e;t=r.map((e,t)=>c(e,"string"==typeof e?null:e.state,0===t?"default":void 0));let i=u(null==a?t.length-1:a),l=n.Pop,s=null;function u(e){return Math.min(Math.max(e,0),t.length-1)}function c(e,r,n){void 0===r&&(r=null);let a=m(t?t[i].pathname:"/",e,r,n);return f("/"===a.pathname.charAt(0),"relative pathnames are not supported in memory history: "+JSON.stringify(e)),a}function d(e){return"string"==typeof e?e:v(e)}return{get index(){return i},get action(){return l},get location(){return t[i]},createHref:d,createURL:e=>new URL(d(e),"http://localhost"),encodeLocation(e){let t="string"==typeof e?y(e):e;return{pathname:t.pathname||"",search:t.search||"",hash:t.hash||""}},push(e,r){l=n.Push;let a=c(e,r);i+=1,t.splice(i,t.length,a),o&&s&&s({action:l,location:a,delta:1})},replace(e,r){l=n.Replace;let a=c(e,r);t[i]=a,o&&s&&s({action:l,location:a,delta:0})},go(e){l=n.Pop;let r=u(i+e),a=t[r];i=r,s&&s({action:l,location:a,delta:e})},listen:e=>(s=e,()=>{s=null})}}function c(e){return void 0===e&&(e={}),g(function(e,t){let{pathname:r,search:n,hash:a}=e.location;return m("",{pathname:r,search:n,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||"default")},function(e,t){return"string"==typeof t?t:v(t)},null,e)}function d(e){return void 0===e&&(e={}),g(function(e,t){let{pathname:r="/",search:n="",hash:a=""}=y(e.location.hash.substr(1));return r.startsWith("/")||r.startsWith(".")||(r="/"+r),m("",{pathname:r,search:n,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||"default")},function(e,t){let r=e.document.querySelector("base"),n="";if(r&&r.getAttribute("href")){let t=e.location.href,r=t.indexOf("#");n=-1===r?t:t.slice(0,r)}return n+"#"+("string"==typeof t?t:v(t))},function(e,t){f("/"===e.pathname.charAt(0),"relative pathnames are not supported in hash history.push("+JSON.stringify(t)+")")},e)}function h(e,t){if(!1===e||null==e)throw Error(t)}function f(e,t){if(!e){"u">typeof console&&console.warn(t);try{throw Error(t)}catch(e){}}}function p(e,t){return{usr:e.state,key:e.key,idx:t}}function m(e,t,r,n){return void 0===r&&(r=null),l({pathname:"string"==typeof e?e:e.pathname,search:"",hash:""},"string"==typeof t?y(t):t,{state:r,key:t&&t.key||n||Math.random().toString(36).substr(2,8)})}function v(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&"?"!==r&&(t+="?"===r.charAt(0)?r:"?"+r),n&&"#"!==n&&(t+="#"===n.charAt(0)?n:"#"+n),t}function y(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function g(e,t,r,a){void 0===a&&(a={});let{window:o=document.defaultView,v5Compat:i=!1}=a,u=o.history,c=n.Pop,d=null,f=y();function y(){return(u.state||{idx:null}).idx}function g(){c=n.Pop;let e=y(),t=null==e?null:e-f;f=e,d&&d({action:c,location:w.location,delta:t})}function b(e){let t="null"!==o.location.origin?o.location.origin:o.location.href,r="string"==typeof e?e:v(e);return h(t,"No window.location.(origin|href) available to create URL for href: "+(r=r.replace(/ $/,"%20"))),new URL(r,t)}null==f&&(f=0,u.replaceState(l({},u.state,{idx:f}),""));let w={get action(){return c},get location(){return e(o,u)},listen(e){if(d)throw Error("A history only accepts one active listener");return o.addEventListener(s,g),d=e,()=>{o.removeEventListener(s,g),d=null}},createHref:e=>t(o,e),createURL:b,encodeLocation(e){let t=b(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){c=n.Push;let a=m(w.location,e,t);r&&r(a,e);let l=p(a,f=y()+1),s=w.createHref(a);try{u.pushState(l,"",s)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;o.location.assign(s)}i&&d&&d({action:c,location:w.location,delta:1})},replace:function(e,t){c=n.Replace;let a=m(w.location,e,t);r&&r(a,e);let o=p(a,f=y()),l=w.createHref(a);u.replaceState(o,"",l),i&&d&&d({action:c,location:w.location,delta:0})},go:e=>u.go(e)};return w}(i=a||(a={})).data="data",i.deferred="deferred",i.redirect="redirect",i.error="error";let b=new Set(["lazy","caseSensitive","path","id","index","children"]);function w(e,t,r,n){return void 0===r&&(r=[]),void 0===n&&(n={}),e.map((e,a)=>{let o=[...r,String(a)],i="string"==typeof e.id?e.id:o.join("-");if(h(!0!==e.index||!e.children,"Cannot specify children on an index route"),h(!n[i],'Found a route id collision on id "'+i+"\". Route id's must be globally unique within Data Router usages"),!0===e.index){let r=l({},e,t(e),{id:i});return n[i]=r,r}{let r=l({},e,t(e),{id:i,children:void 0});return n[i]=r,e.children&&(r.children=w(e.children,t,o,n)),r}})}function E(e,t,r){return void 0===r&&(r="/"),S(e,t,r,!1)}function S(e,t,r,n){let a=k(("string"==typeof t?y(t):t).pathname||"/",r);if(null==a)return null;let o=function e(t,r,n,a){void 0===r&&(r=[]),void 0===n&&(n=[]),void 0===a&&(a="");let o=(t,o,i)=>{var l,s;let u,c,d={relativePath:void 0===i?t.path||"":i,caseSensitive:!0===t.caseSensitive,childrenIndex:o,route:t};d.relativePath.startsWith("/")&&(h(d.relativePath.startsWith(a),'Absolute route path "'+d.relativePath+'" nested under path "'+a+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),d.relativePath=d.relativePath.slice(a.length));let f=N([a,d.relativePath]),p=n.concat(d);t.children&&t.children.length>0&&(h(!0!==t.index,'Index routes must not have child routes. Please remove all child routes from route path "'+f+'".'),e(t.children,r,p,f)),(null!=t.path||t.index)&&r.push({path:f,score:(l=f,s=t.index,c=(u=l.split("/")).length,u.some(C)&&(c+=-2),s&&(c+=2),u.filter(e=>!C(e)).reduce((e,t)=>e+(x.test(t)?3:""===t?1:10),c)),routesMeta:p})};return t.forEach((e,t)=>{var r;if(""!==e.path&&null!=(r=e.path)&&r.includes("?"))for(let r of function e(t){let r=t.split("/");if(0===r.length)return[];let[n,...a]=r,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(0===a.length)return o?[i,""]:[i];let l=e(a.join("/")),s=[];return s.push(...l.map(e=>""===e?i:[i,e].join("/"))),o&&s.push(...l),s.map(e=>t.startsWith("/")&&""===e?"/":e)}(e.path))o(e,t,r);else o(e,t)}),r}(e);o.sort((e,t)=>{var r,n;return e.score!==t.score?t.score-e.score:(r=e.routesMeta.map(e=>e.childrenIndex),n=t.routesMeta.map(e=>e.childrenIndex),r.length===n.length&&r.slice(0,-1).every((e,t)=>e===n[t])?r[r.length-1]-n[n.length-1]:0)});let i=null,l=L(a);for(let e=0;null==i&&e<o.length;++e)i=function(e,t,r){void 0===r&&(r=!1);let{routesMeta:n}=e,a={},o="/",i=[];for(let e=0;e<n.length;++e){let l=n[e],s=e===n.length-1,u="/"===o?t:t.slice(o.length)||"/",c=D({path:l.relativePath,caseSensitive:l.caseSensitive,end:s},u),d=l.route;if(!c&&s&&r&&!n[n.length-1].route.index&&(c=D({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},u)),!c)return null;Object.assign(a,c.params),i.push({params:a,pathname:N([o,c.pathname]),pathnameBase:B(N([o,c.pathnameBase])),route:d}),"/"!==c.pathnameBase&&(o=N([o,c.pathnameBase]))}return i}(o[e],l,n);return i}function R(e,t){let{route:r,pathname:n,params:a}=e;return{id:r.id,pathname:n,params:a,data:t[r.id],handle:r.handle}}let x=/^:[\w-]+$/,C=e=>"*"===e;function P(e,t){void 0===t&&(t={});let r=e;r.endsWith("*")&&"*"!==r&&!r.endsWith("/*")&&(f(!1,'Route path "'+r+'" will be treated as if it were "'+r.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+r.replace(/\*$/,"/*")+'".'),r=r.replace(/\*$/,"/*"));let n=r.startsWith("/")?"/":"",a=e=>null==e?"":"string"==typeof e?e:String(e);return n+r.split(/\/+/).map((e,r,n)=>{if(r===n.length-1&&"*"===e)return a(t["*"]);let o=e.match(/^:([\w-]+)(\??)$/);if(o){let[,e,r]=o,n=t[e];return h("?"===r||null!=n,'Missing ":'+e+'" param'),a(n)}return e.replace(/\?$/g,"")}).filter(e=>!!e).join("/")}function D(e,t){var r,n,a;let o,i;"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[l,s]=(r=e.path,n=e.caseSensitive,a=e.end,void 0===n&&(n=!1),void 0===a&&(a=!0),f("*"===r||!r.endsWith("*")||r.endsWith("/*"),'Route path "'+r+'" will be treated as if it were "'+r.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+r.replace(/\*$/,"/*")+'".'),o=[],i="^"+r.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(e,t,r)=>(o.push({paramName:t,isOptional:null!=r}),r?"/?([^\\/]+)?":"/([^\\/]+)")),r.endsWith("*")?(o.push({paramName:"*"}),i+="*"===r||"/*"===r?"(.*)$":"(?:\\/(.+)|\\/*)$"):a?i+="\\/*$":""!==r&&"/"!==r&&(i+="(?:(?=\\/|$))"),[new RegExp(i,n?void 0:"i"),o]),u=t.match(l);if(!u)return null;let c=u[0],d=c.replace(/(.)\/+$/,"$1"),h=u.slice(1);return{params:s.reduce((e,t,r)=>{let{paramName:n,isOptional:a}=t;if("*"===n){let e=h[r]||"";d=c.slice(0,c.length-e.length).replace(/(.)\/+$/,"$1")}let o=h[r];return a&&!o?e[n]=void 0:e[n]=(o||"").replace(/%2F/g,"/"),e},{}),pathname:c,pathnameBase:d,pattern:e}}function L(e){try{return e.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(t){return f(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function k(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&"/"!==n?null:e.slice(r)||"/"}let O=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function A(e,t){let r;void 0===t&&(t="/");let{pathname:n,search:a="",hash:o=""}="string"==typeof e?y(e):e;if(n){let e;(e=n,O.test(e))?r=n:(n.includes("//")&&f(!1,"Pathnames cannot have embedded double slashes - normalizing "+n+" -> "+(n=F(n))),r=n.startsWith("/")?_(n.substring(1),"/"):_(n,t))}else r=t;return{pathname:r,search:I(a),hash:z(o)}}function _(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(e=>{".."===e?r.length>1&&r.pop():"."!==e&&r.push(e)}),r.length>1?r.join("/"):"/"}function U(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field [")+JSON.stringify(n)+"]. Please separate it out to the `to."+r+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function T(e){return e.filter((e,t)=>0===t||e.route.path&&e.route.path.length>0)}function j(e,t){let r=T(e);return t?r.map((e,t)=>t===r.length-1?e.pathname:e.pathnameBase):r.map(e=>e.pathnameBase)}function M(e,t,r,n){let a,o;void 0===n&&(n=!1),"string"==typeof e?a=y(e):(h(!(a=l({},e)).pathname||!a.pathname.includes("?"),U("?","pathname","search",a)),h(!a.pathname||!a.pathname.includes("#"),U("#","pathname","hash",a)),h(!a.search||!a.search.includes("#"),U("#","search","hash",a)));let i=""===e||""===a.pathname,s=i?"/":a.pathname;if(null==s)o=r;else{let e=t.length-1;if(!n&&s.startsWith("..")){let t=s.split("/");for(;".."===t[0];)t.shift(),e-=1;a.pathname=t.join("/")}o=e>=0?t[e]:"/"}let u=A(a,o),c=s&&"/"!==s&&s.endsWith("/"),d=(i||"."===s)&&r.endsWith("/");return!u.pathname.endsWith("/")&&(c||d)&&(u.pathname+="/"),u}let F=e=>e.replace(/\/\/+/g,"/"),N=e=>F(e.join("/")),B=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),I=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",z=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"",H=function(e,t){void 0===t&&(t={});let r="number"==typeof t?{status:t}:t,n=new Headers(r.headers);return n.has("Content-Type")||n.set("Content-Type","application/json; charset=utf-8"),new Response(JSON.stringify(e),l({},r,{headers:n}))};class V extends Error{}class ${constructor(e,t){let r;this.pendingKeysSet=new Set,this.subscribers=new Set,this.deferredKeys=[],h(e&&"object"==typeof e&&!Array.isArray(e),"defer() only accepts plain objects"),this.abortPromise=new Promise((e,t)=>r=t),this.controller=new AbortController;let n=()=>r(new V("Deferred data aborted"));this.unlistenAbortSignal=()=>this.controller.signal.removeEventListener("abort",n),this.controller.signal.addEventListener("abort",n),this.data=Object.entries(e).reduce((e,t)=>{let[r,n]=t;return Object.assign(e,{[r]:this.trackPromise(r,n)})},{}),this.done&&this.unlistenAbortSignal(),this.init=t}trackPromise(e,t){if(!(t instanceof Promise))return t;this.deferredKeys.push(e),this.pendingKeysSet.add(e);let r=Promise.race([t,this.abortPromise]).then(t=>this.onSettle(r,e,void 0,t),t=>this.onSettle(r,e,t));return r.catch(()=>{}),Object.defineProperty(r,"_tracked",{get:()=>!0}),r}onSettle(e,t,r,n){if(this.controller.signal.aborted&&r instanceof V)return this.unlistenAbortSignal(),Object.defineProperty(e,"_error",{get:()=>r}),Promise.reject(r);if(this.pendingKeysSet.delete(t),this.done&&this.unlistenAbortSignal(),void 0===r&&void 0===n){let r=Error('Deferred data for key "'+t+'" resolved/rejected with `undefined`, you must resolve/reject with a value or `null`.');return Object.defineProperty(e,"_error",{get:()=>r}),this.emit(!1,t),Promise.reject(r)}return void 0===n?(Object.defineProperty(e,"_error",{get:()=>r}),this.emit(!1,t),Promise.reject(r)):(Object.defineProperty(e,"_data",{get:()=>n}),this.emit(!1,t),n)}emit(e,t){this.subscribers.forEach(r=>r(e,t))}subscribe(e){return this.subscribers.add(e),()=>this.subscribers.delete(e)}cancel(){this.controller.abort(),this.pendingKeysSet.forEach((e,t)=>this.pendingKeysSet.delete(t)),this.emit(!0)}async resolveData(e){let t=!1;if(!this.done){let r=()=>this.cancel();e.addEventListener("abort",r),t=await new Promise(t=>{this.subscribe(n=>{e.removeEventListener("abort",r),(n||this.done)&&t(n)})})}return t}get done(){return 0===this.pendingKeysSet.size}get unwrappedData(){return h(null!==this.data&&this.done,"Can only unwrap data on initialized and settled deferreds"),Object.entries(this.data).reduce((e,t)=>{let[r,n]=t;return Object.assign(e,{[r]:function(e){if(!(e instanceof Promise&&!0===e._tracked))return e;if(e._error)throw e._error;return e._data}(n)})},{})}get pendingKeys(){return Array.from(this.pendingKeysSet)}}let W=function(e,t){return void 0===t&&(t={}),new $(e,"number"==typeof t?{status:t}:t)},K=function(e,t){void 0===t&&(t=302);let r=t;"number"==typeof r?r={status:r}:void 0===r.status&&(r.status=302);let n=new Headers(r.headers);return n.set("Location",e),new Response(null,l({},r,{headers:n}))},q=(e,t)=>{let r=K(e,t);return r.headers.set("X-Remix-Reload-Document","true"),r},J=(e,t)=>{let r=K(e,t);return r.headers.set("X-Remix-Replace","true"),r};class Y{constructor(e,t,r,n){void 0===n&&(n=!1),this.status=e,this.statusText=t||"",this.internal=n,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function X(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}let G=["post","put","patch","delete"],Q=new Set(G),Z=new Set(["get",...G]),ee=new Set([301,302,303,307,308]),et=new Set([307,308]),er={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},en={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ea={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},eo=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ei=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),el="remix-router-transitions";function es(e){let t,r,o,i,s,u,c=e.window?e.window:"u">typeof window?window:void 0,d=void 0!==c&&void 0!==c.document&&void 0!==c.document.createElement,p=!d;if(h(e.routes.length>0,"You must provide a non-empty routes array to createRouter"),e.mapRouteProperties)t=e.mapRouteProperties;else if(e.detectErrorBoundary){let r=e.detectErrorBoundary;t=e=>({hasErrorBoundary:r(e)})}else t=ei;let v={},y=w(e.routes,t,void 0,v),g=e.basename||"/",b=e.dataStrategy||eg,x=e.patchRoutesOnNavigation,C=l({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),P=null,D=new Set,L=null,O=null,A=null,_=null!=e.hydrationData,U=E(y,e.history.location,g),T=!1,j=null;if(null==U&&!x){let t=eA(404,{pathname:e.history.location.pathname}),{matches:r,route:n}=eO(y);U=r,j={[n.id]:t}}if(U&&!e.hydrationData&&to(U,y,e.history.location.pathname).active&&(U=null),U)if(U.some(e=>e.route.lazy))o=!1;else if(U.some(e=>e.route.loader))if(C.v7_partialHydration){let t=e.hydrationData?e.hydrationData.loaderData:null,r=e.hydrationData?e.hydrationData.errors:null;if(r){let e=U.findIndex(e=>void 0!==r[e.route.id]);o=U.slice(0,e+1).every(e=>!ef(e.route,t,r))}else o=U.every(e=>!ef(e.route,t,r))}else o=null!=e.hydrationData;else o=!0;else if(o=!1,U=[],C.v7_partialHydration){let t=to(null,y,e.history.location.pathname);t.active&&t.matches&&(T=!0,U=t.matches)}let M={historyAction:e.history.action,location:e.history.location,matches:U,initialized:o,navigation:er,restoreScrollPosition:null==e.hydrationData&&null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||j,fetchers:new Map,blockers:new Map},F=n.Pop,N=!1,B=!1,I=new Map,z=null,H=!1,V=!1,$=[],W=new Set,K=new Map,q=0,J=-1,Y=new Map,G=new Set,Q=new Map,Z=new Map,es=new Set,ed=new Map,ep=new Map;function em(e,t){void 0===t&&(t={}),M=l({},M,e);let r=[],n=[];C.v7_fetcherPersist&&M.fetchers.forEach((e,t)=>{"idle"===e.state&&(es.has(t)?n.push(t):r.push(t))}),es.forEach(e=>{M.fetchers.has(e)||K.has(e)||n.push(e)}),[...D].forEach(e=>e(M,{deletedFetchers:n,viewTransitionOpts:t.viewTransitionOpts,flushSync:!0===t.flushSync})),C.v7_fetcherPersist?(r.forEach(e=>M.fetchers.delete(e)),n.forEach(e=>e4(e))):n.forEach(e=>es.delete(e))}function ey(t,a,o){var i,s;let u,c,{flushSync:d}=void 0===o?{}:o,h=null!=M.actionData&&null!=M.navigation.formMethod&&eB(M.navigation.formMethod)&&"loading"===M.navigation.state&&(null==(i=t.state)?void 0:i._isRedirect)!==!0;u=a.actionData?Object.keys(a.actionData).length>0?a.actionData:null:h?M.actionData:null;let f=a.loaderData?eD(M.loaderData,a.loaderData,a.matches||[],a.errors):M.loaderData,p=M.blockers;p.size>0&&(p=new Map(p)).forEach((e,t)=>p.set(t,ea));let m=!0===N||null!=M.navigation.formMethod&&eB(M.navigation.formMethod)&&(null==(s=t.state)?void 0:s._isRedirect)!==!0;if(r&&(y=r,r=void 0),H||F===n.Pop||(F===n.Push?e.history.push(t,t.state):F===n.Replace&&e.history.replace(t,t.state)),F===n.Pop){let e=I.get(M.location.pathname);e&&e.has(t.pathname)?c={currentLocation:M.location,nextLocation:t}:I.has(t.pathname)&&(c={currentLocation:t,nextLocation:M.location})}else if(B){let e=I.get(M.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),I.set(M.location.pathname,e)),c={currentLocation:M.location,nextLocation:t}}em(l({},a,{actionData:u,loaderData:f,historyAction:F,location:t,initialized:!0,navigation:er,revalidation:"idle",restoreScrollPosition:ta(t,a.matches||M.matches),preventScrollReset:m,blockers:p}),{viewTransitionOpts:c,flushSync:!0===d}),F=n.Pop,N=!1,B=!1,H=!1,V=!1,$=[]}async function ew(t,r){if("number"==typeof t)return void e.history.go(t);let a=eu(M.location,M.matches,g,C.v7_prependBasename,t,C.v7_relativeSplatPath,null==r?void 0:r.fromRouteId,null==r?void 0:r.relative),{path:o,submission:i,error:s}=ec(C.v7_normalizeFormMethod,!1,a,r),u=M.location,c=m(M.location,o,r&&r.state);c=l({},c,e.history.encodeLocation(c));let d=r&&null!=r.replace?r.replace:void 0,h=n.Push;!0===d?h=n.Replace:!1===d||null!=i&&eB(i.formMethod)&&i.formAction===M.location.pathname+M.location.search&&(h=n.Replace);let f=r&&"preventScrollReset"in r?!0===r.preventScrollReset:void 0,p=!0===(r&&r.flushSync),v=te({currentLocation:u,nextLocation:c,historyAction:h});return v?void e9(v,{state:"blocked",location:c,proceed(){e9(v,{state:"proceeding",proceed:void 0,reset:void 0,location:c}),ew(t,r)},reset(){let e=new Map(M.blockers);e.set(v,ea),em({blockers:e})}}):await ex(h,c,{submission:i,pendingError:s,preventScrollReset:f,replace:r&&r.replace,enableViewTransition:r&&r.viewTransition,flushSync:p})}async function ex(t,n,o){var i,u,c,d;let h;s&&s.abort(),s=null,F=t,H=!0===(o&&o.startUninterruptedRevalidation),i=M.location,u=M.matches,L&&A&&(L[tn(i,u)]=A()),N=!0===(o&&o.preventScrollReset),B=!0===(o&&o.enableViewTransition);let f=r||y,p=o&&o.overrideNavigation,m=null!=o&&o.initialHydration&&M.matches&&M.matches.length>0&&!T?M.matches:E(f,n,g),v=!0===(o&&o.flushSync);if(m&&M.initialized&&!V&&(c=M.location,d=n,c.pathname===d.pathname&&c.search===d.search&&(""===c.hash?""!==d.hash:c.hash===d.hash||""!==d.hash||!1))&&!(o&&o.submission&&eB(o.submission.formMethod)))return void ey(n,{matches:m},{flushSync:v});let b=to(m,f,n.pathname);if(b.active&&b.matches&&(m=b.matches),!m){let{error:e,notFoundMatches:t,route:r}=tt(n.pathname);ey(n,{matches:t,loaderData:{},errors:{[r.id]:e}},{flushSync:v});return}s=new AbortController;let w=eR(e.history,n,s.signal,o&&o.submission);if(o&&o.pendingError)h=[ek(m).route.id,{type:a.error,error:o.pendingError}];else if(o&&o.submission&&eB(o.submission.formMethod)){let t=await eC(w,n,o.submission,m,b.active,{replace:o.replace,flushSync:v});if(t.shortCircuited)return;if(t.pendingActionResult){let[e,r]=t.pendingActionResult;if(ej(r)&&X(r.error)&&404===r.error.status){s=null,ey(n,{matches:t.matches,loaderData:{},errors:{[e]:r.error}});return}}m=t.matches||m,h=t.pendingActionResult,p=eK(n,o.submission),v=!1,b.active=!1,w=eR(e.history,w.url,w.signal)}let{shortCircuited:S,matches:R,loaderData:x,errors:C}=await eU(w,n,m,b.active,p,o&&o.submission,o&&o.fetcherSubmission,o&&o.replace,o&&!0===o.initialHydration,v,h);S||(s=null,ey(n,l({matches:R||m},eL(h),{loaderData:x,errors:C})))}async function eC(t,r,o,i,l,s){var u;let c;if(void 0===s&&(s={}),eZ(),em({navigation:{state:"submitting",location:r,formMethod:(u=o).formMethod,formAction:u.formAction,formEncType:u.formEncType,formData:u.formData,json:u.json,text:u.text}},{flushSync:!0===s.flushSync}),l){let e=await ti(i,r.pathname,t.signal);if("aborted"===e.type)return{shortCircuited:!0};if("error"===e.type){let t=ek(e.partialMatches).route.id;return{matches:e.partialMatches,pendingActionResult:[t,{type:a.error,error:e.error}]}}if(e.matches)i=e.matches;else{let{notFoundMatches:e,error:t,route:n}=tt(r.pathname);return{matches:e,pendingActionResult:[n.id,{type:a.error,error:t}]}}}let d=e$(i,r);if(d.route.action||d.route.lazy){if(c=(await eG("action",M,t,[d],i,null))[d.route.id],t.signal.aborted)return{shortCircuited:!0}}else c={type:a.error,error:eA(405,{method:t.method,pathname:r.pathname,routeId:d.route.id})};if(eM(c)){let r;return r=s&&null!=s.replace?s.replace:eS(c.response.headers.get("Location"),new URL(t.url),g,e.history)===M.location.pathname+M.location.search,await eX(t,c,!0,{submission:o,replace:r}),{shortCircuited:!0}}if(eT(c))throw eA(400,{type:"defer-action"});if(ej(c)){let e=ek(i,d.route.id);return!0!==(s&&s.replace)&&(F=n.Push),{matches:i,pendingActionResult:[e.route.id,c]}}return{matches:i,pendingActionResult:[d.route.id,c]}}async function eU(t,n,a,o,i,u,c,d,h,f,p){let m=i||eK(n,u),v=u||c||eW(m),b=!H&&(!C.v7_partialHydration||!h);if(o){if(b){let e=eF(p);em(l({navigation:m},void 0!==e?{actionData:e}:{}),{flushSync:f})}let e=await ti(a,n.pathname,t.signal);if("aborted"===e.type)return{shortCircuited:!0};if("error"===e.type){let t=ek(e.partialMatches).route.id;return{matches:e.partialMatches,loaderData:{},errors:{[t]:e.error}}}if(e.matches)a=e.matches;else{let{error:e,notFoundMatches:t,route:r}=tt(n.pathname);return{matches:t,loaderData:{},errors:{[r.id]:e}}}}let w=r||y,[E,S]=eh(e.history,M,a,v,n,C.v7_partialHydration&&!0===h,C.v7_skipActionErrorRevalidation,V,$,W,es,Q,G,w,g,p);if(tr(e=>!(a&&a.some(t=>t.route.id===e))||E&&E.some(t=>t.route.id===e)),J=++q,0===E.length&&0===S.length){let e=e2();return ey(n,l({matches:a,loaderData:{},errors:p&&ej(p[1])?{[p[0]]:p[1].error}:null},eL(p),e?{fetchers:new Map(M.fetchers)}:{}),{flushSync:f}),{shortCircuited:!0}}if(b){let e={};if(!o){e.navigation=m;let t=eF(p);void 0!==t&&(e.actionData=t)}S.length>0&&(S.forEach(e=>{let t=M.fetchers.get(e.key),r=eq(void 0,t?t.data:void 0);M.fetchers.set(e.key,r)}),e.fetchers=new Map(M.fetchers)),em(e,{flushSync:f})}S.forEach(e=>{e3(e.key),e.controller&&K.set(e.key,e.controller)});let R=()=>S.forEach(e=>e3(e.key));s&&s.signal.addEventListener("abort",R);let{loaderResults:x,fetcherResults:P}=await eQ(M,a,E,S,t);if(t.signal.aborted)return{shortCircuited:!0};s&&s.signal.removeEventListener("abort",R),S.forEach(e=>K.delete(e.key));let D=e_(x);if(D)return await eX(t,D.result,!0,{replace:d}),{shortCircuited:!0};if(D=e_(P))return G.add(D.key),await eX(t,D.result,!0,{replace:d}),{shortCircuited:!0};let{loaderData:L,errors:k}=eP(M,a,x,p,S,P,ed);ed.forEach((e,t)=>{e.subscribe(r=>{(r||e.done)&&ed.delete(t)})}),C.v7_partialHydration&&h&&M.errors&&(k=l({},M.errors,k));let O=e2(),A=e8(J),_=O||A||S.length>0;return l({matches:a,loaderData:L,errors:k},_?{fetchers:new Map(M.fetchers)}:{})}function eF(e){if(e&&!ej(e[1]))return{[e[0]]:e[1].data};if(M.actionData)if(0===Object.keys(M.actionData).length)return null;else return M.actionData}async function eV(t,n,a,o,i,l,u,c,d){var f,p;function m(e){if(!e.route.action&&!e.route.lazy){let e=eA(405,{method:d.formMethod,pathname:a,routeId:n});return e1(t,n,e,{flushSync:u}),!0}return!1}if(eZ(),Q.delete(t),!l&&m(o))return;let v=M.fetchers.get(t);e0(t,(f=d,p=v,{state:"submitting",formMethod:f.formMethod,formAction:f.formAction,formEncType:f.formEncType,formData:f.formData,json:f.json,text:f.text,data:p?p.data:void 0}),{flushSync:u});let b=new AbortController,w=eR(e.history,a,b.signal,d);if(l){let e=await ti(i,new URL(w.url).pathname,w.signal,t);if("aborted"===e.type)return;if("error"===e.type)return void e1(t,n,e.error,{flushSync:u});if(!e.matches)return void e1(t,n,eA(404,{pathname:a}),{flushSync:u});if(m(o=e$(i=e.matches,a)))return}K.set(t,b);let S=q,R=(await eG("action",M,w,[o],i,t))[o.route.id];if(w.signal.aborted){K.get(t)===b&&K.delete(t);return}if(C.v7_fetcherPersist&&es.has(t)){if(eM(R)||ej(R))return void e0(t,eJ(void 0))}else{if(eM(R))return(K.delete(t),J>S)?void e0(t,eJ(void 0)):(G.add(t),e0(t,eq(d)),eX(w,R,!1,{fetcherSubmission:d,preventScrollReset:c}));if(ej(R))return void e1(t,n,R.error)}if(eT(R))throw eA(400,{type:"defer-action"});let x=M.navigation.location||M.location,P=eR(e.history,x,b.signal),D=r||y,L="idle"!==M.navigation.state?E(D,M.navigation.location,g):M.matches;h(L,"Didn't find any matches after fetcher action");let k=++q;Y.set(t,k);let O=eq(d,R.data);M.fetchers.set(t,O);let[A,_]=eh(e.history,M,L,d,x,!1,C.v7_skipActionErrorRevalidation,V,$,W,es,Q,G,D,g,[o.route.id,R]);_.filter(e=>e.key!==t).forEach(e=>{let t=e.key,r=M.fetchers.get(t),n=eq(void 0,r?r.data:void 0);M.fetchers.set(t,n),e3(t),e.controller&&K.set(t,e.controller)}),em({fetchers:new Map(M.fetchers)});let U=()=>_.forEach(e=>e3(e.key));b.signal.addEventListener("abort",U);let{loaderResults:T,fetcherResults:j}=await eQ(M,L,A,_,P);if(b.signal.aborted)return;b.signal.removeEventListener("abort",U),Y.delete(t),K.delete(t),_.forEach(e=>K.delete(e.key));let N=e_(T);if(N)return eX(P,N.result,!1,{preventScrollReset:c});if(N=e_(j))return G.add(N.key),eX(P,N.result,!1,{preventScrollReset:c});let{loaderData:B,errors:I}=eP(M,L,T,void 0,_,j,ed);if(M.fetchers.has(t)){let e=eJ(R.data);M.fetchers.set(t,e)}e8(k),"loading"===M.navigation.state&&k>J?(h(F,"Expected pending action"),s&&s.abort(),ey(M.navigation.location,{matches:L,loaderData:B,errors:I,fetchers:new Map(M.fetchers)})):(em({errors:I,loaderData:eD(M.loaderData,B,L,I),fetchers:new Map(M.fetchers)}),V=!1)}async function eY(t,r,n,a,o,i,l,s,u){let c=M.fetchers.get(t);e0(t,eq(u,c?c.data:void 0),{flushSync:l});let d=new AbortController,f=eR(e.history,n,d.signal);if(i){let e=await ti(o,new URL(f.url).pathname,f.signal,t);if("aborted"===e.type)return;if("error"===e.type)return void e1(t,r,e.error,{flushSync:l});if(!e.matches)return void e1(t,r,eA(404,{pathname:n}),{flushSync:l});a=e$(o=e.matches,n)}K.set(t,d);let p=q,m=(await eG("loader",M,f,[a],o,t))[a.route.id];if(eT(m)&&(m=await eH(m,f.signal,!0)||m),K.get(t)===d&&K.delete(t),!f.signal.aborted){if(es.has(t))return void e0(t,eJ(void 0));if(eM(m))if(J>p)return void e0(t,eJ(void 0));else{G.add(t),await eX(f,m,!1,{preventScrollReset:s});return}if(ej(m))return void e1(t,r,m.error);h(!eT(m),"Unhandled fetcher deferred data"),e0(t,eJ(m.data))}}async function eX(t,r,a,o){let{submission:i,fetcherSubmission:u,preventScrollReset:f,replace:p}=void 0===o?{}:o;r.response.headers.has("X-Remix-Revalidate")&&(V=!0);let v=r.response.headers.get("Location");h(v,"Expected a Location header on the redirect Response"),v=eS(v,new URL(t.url),g,e.history);let y=m(M.location,v,{_isRedirect:!0});if(d){let t=!1;if(r.response.headers.has("X-Remix-Reload-Document"))t=!0;else if(eo.test(v)){let r=e.history.createURL(v);t=r.origin!==c.location.origin||null==k(r.pathname,g)}if(t)return void(p?c.location.replace(v):c.location.assign(v))}s=null;let b=!0===p||r.response.headers.has("X-Remix-Replace")?n.Replace:n.Push,{formMethod:w,formAction:E,formEncType:S}=M.navigation;!i&&!u&&w&&E&&S&&(i=eW(M.navigation));let R=i||u;if(et.has(r.response.status)&&R&&eB(R.formMethod))await ex(b,y,{submission:l({},R,{formAction:v}),preventScrollReset:f||N,enableViewTransition:a?B:void 0});else{let e=eK(y,i);await ex(b,y,{overrideNavigation:e,fetcherSubmission:u,preventScrollReset:f||N,enableViewTransition:a?B:void 0})}}async function eG(e,r,n,o,i,l){let s,u={};try{s=await eb(b,e,r,n,o,i,l,v,t)}catch(e){return o.forEach(t=>{u[t.route.id]={type:a.error,error:e}}),u}for(let[e,t]of Object.entries(s)){var c;if(eN((c=t).result)&&ee.has(c.result.status)){let r=t.result;u[e]={type:a.redirect,response:function(e,t,r,n,a,o){let i=e.headers.get("Location");if(h(i,"Redirects returned/thrown from loaders/actions must have a Location header"),!eo.test(i)){let l=n.slice(0,n.findIndex(e=>e.route.id===r)+1);i=eu(new URL(t.url),l,a,!0,i,o),e.headers.set("Location",i)}return e}(r,n,e,i,g,C.v7_relativeSplatPath)}}else u[e]=await eE(t)}return u}async function eQ(t,r,n,o,i){let l=t.matches,s=eG("loader",t,i,n,r,null),u=Promise.all(o.map(async r=>{if(!r.matches||!r.match||!r.controller)return Promise.resolve({[r.key]:{type:a.error,error:eA(404,{pathname:r.path})}});{let n=(await eG("loader",t,eR(e.history,r.path,r.controller.signal),[r.match],r.matches,r.key))[r.match.route.id];return{[r.key]:n}}})),c=await s,d=(await u).reduce((e,t)=>Object.assign(e,t),{});return await Promise.all([eI(r,c,i.signal,l,t.loaderData),ez(r,d,o)]),{loaderResults:c,fetcherResults:d}}function eZ(){V=!0,$.push(...tr()),Q.forEach((e,t)=>{K.has(t)&&W.add(t),e3(t)})}function e0(e,t,r){void 0===r&&(r={}),M.fetchers.set(e,t),em({fetchers:new Map(M.fetchers)},{flushSync:!0===(r&&r.flushSync)})}function e1(e,t,r,n){void 0===n&&(n={});let a=ek(M.matches,t);e4(e),em({errors:{[a.route.id]:r},fetchers:new Map(M.fetchers)},{flushSync:!0===(n&&n.flushSync)})}function e7(e){return Z.set(e,(Z.get(e)||0)+1),es.has(e)&&es.delete(e),M.fetchers.get(e)||en}function e4(e){let t=M.fetchers.get(e);K.has(e)&&!(t&&"loading"===t.state&&Y.has(e))&&e3(e),Q.delete(e),Y.delete(e),G.delete(e),C.v7_fetcherPersist&&es.delete(e),W.delete(e),M.fetchers.delete(e)}function e3(e){let t=K.get(e);t&&(t.abort(),K.delete(e))}function e5(e){for(let t of e){let e=eJ(e7(t).data);M.fetchers.set(t,e)}}function e2(){let e=[],t=!1;for(let r of G){let n=M.fetchers.get(r);h(n,"Expected fetcher: "+r),"loading"===n.state&&(G.delete(r),e.push(r),t=!0)}return e5(e),t}function e8(e){let t=[];for(let[r,n]of Y)if(n<e){let e=M.fetchers.get(r);h(e,"Expected fetcher: "+r),"loading"===e.state&&(e3(r),Y.delete(r),t.push(r))}return e5(t),t.length>0}function e6(e){M.blockers.delete(e),ep.delete(e)}function e9(e,t){let r=M.blockers.get(e)||ea;h("unblocked"===r.state&&"blocked"===t.state||"blocked"===r.state&&"blocked"===t.state||"blocked"===r.state&&"proceeding"===t.state||"blocked"===r.state&&"unblocked"===t.state||"proceeding"===r.state&&"unblocked"===t.state,"Invalid blocker state transition: "+r.state+" -> "+t.state);let n=new Map(M.blockers);n.set(e,t),em({blockers:n})}function te(e){let{currentLocation:t,nextLocation:r,historyAction:n}=e;if(0===ep.size)return;ep.size>1&&f(!1,"A router only supports one blocker at a time");let a=Array.from(ep.entries()),[o,i]=a[a.length-1],l=M.blockers.get(o);if((!l||"proceeding"!==l.state)&&i({currentLocation:t,nextLocation:r,historyAction:n}))return o}function tt(e){let t=eA(404,{pathname:e}),{matches:n,route:a}=eO(r||y);return tr(),{notFoundMatches:n,route:a,error:t}}function tr(e){let t=[];return ed.forEach((r,n)=>{(!e||e(n))&&(r.cancel(),t.push(n),ed.delete(n))}),t}function tn(e,t){return O&&O(e,t.map(e=>R(e,M.loaderData)))||e.key}function ta(e,t){if(L){let r=L[tn(e,t)];if("number"==typeof r)return r}return null}function to(e,t,r){if(x){if(!e)return{active:!0,matches:S(t,r,g,!0)||[]};else if(Object.keys(e[0].params).length>0)return{active:!0,matches:S(t,r,g,!0)}}return{active:!1,matches:null}}async function ti(e,n,a,o){if(!x)return{type:"success",matches:e};let i=e;for(;;){let e=null==r,l=r||y,s=v;try{await x({signal:a,path:n,matches:i,fetcherKey:o,patch:(e,r)=>{a.aborted||ev(e,r,l,s,t)}})}catch(e){return{type:"error",error:e,partialMatches:i}}finally{e&&!a.aborted&&(y=[...y])}if(a.aborted)return{type:"aborted"};let u=E(l,n,g);if(u)return{type:"success",matches:u};let c=S(l,n,g,!0);if(!c||i.length===c.length&&i.every((e,t)=>e.route.id===c[t].route.id))return{type:"success",matches:null};i=c}}return i={get basename(){return g},get future(){return C},get state(){return M},get routes(){return y},get window(){return c},initialize:function(){if(P=e.history.listen(t=>{let{action:r,location:n,delta:a}=t;if(u){u(),u=void 0;return}f(0===ep.size||null!=a,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let o=te({currentLocation:M.location,nextLocation:n,historyAction:r});if(o&&null!=a){let t=new Promise(e=>{u=e});e.history.go(-1*a),e9(o,{state:"blocked",location:n,proceed(){e9(o,{state:"proceeding",proceed:void 0,reset:void 0,location:n}),t.then(()=>e.history.go(a))},reset(){let e=new Map(M.blockers);e.set(o,ea),em({blockers:e})}});return}return ex(r,n)}),d){var t=c,r=I;try{let e=t.sessionStorage.getItem(el);if(e){let t=JSON.parse(e);for(let[e,n]of Object.entries(t||{}))n&&Array.isArray(n)&&r.set(e,new Set(n||[]))}}catch(e){}let e=()=>(function(e,t){if(t.size>0){let r={};for(let[e,n]of t)r[e]=[...n];try{e.sessionStorage.setItem(el,JSON.stringify(r))}catch(e){f(!1,"Failed to save applied view transitions in sessionStorage ("+e+").")}}})(c,I);c.addEventListener("pagehide",e),z=()=>c.removeEventListener("pagehide",e)}return M.initialized||ex(n.Pop,M.location,{initialHydration:!0}),i},subscribe:function(e){return D.add(e),()=>D.delete(e)},enableScrollRestoration:function(e,t,r){if(L=e,A=t,O=r||null,!_&&M.navigation===er){_=!0;let e=ta(M.location,M.matches);null!=e&&em({restoreScrollPosition:e})}return()=>{L=null,A=null,O=null}},navigate:ew,fetch:function(e,t,n,a){if(p)throw Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");e3(e);let o=!0===(a&&a.flushSync),i=r||y,l=eu(M.location,M.matches,g,C.v7_prependBasename,n,C.v7_relativeSplatPath,t,null==a?void 0:a.relative),s=E(i,l,g),u=to(s,i,l);if(u.active&&u.matches&&(s=u.matches),!s)return void e1(e,t,eA(404,{pathname:l}),{flushSync:o});let{path:c,submission:d,error:h}=ec(C.v7_normalizeFormMethod,!0,l,a);if(h)return void e1(e,t,h,{flushSync:o});let f=e$(s,c),m=!0===(a&&a.preventScrollReset);d&&eB(d.formMethod)?eV(e,t,c,f,s,u.active,o,m,d):(Q.set(e,{routeId:t,path:c}),eY(e,t,c,f,s,u.active,o,m,d))},revalidate:function(){if(eZ(),em({revalidation:"loading"}),"submitting"!==M.navigation.state){if("idle"===M.navigation.state)return void ex(M.historyAction,M.location,{startUninterruptedRevalidation:!0});ex(F||M.historyAction,M.navigation.location,{overrideNavigation:M.navigation,enableViewTransition:!0===B})}},createHref:t=>e.history.createHref(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:e7,deleteFetcher:function(e){let t=(Z.get(e)||0)-1;t<=0?(Z.delete(e),es.add(e),C.v7_fetcherPersist||e4(e)):Z.set(e,t),em({fetchers:new Map(M.fetchers)})},dispose:function(){P&&P(),z&&z(),D.clear(),s&&s.abort(),M.fetchers.forEach((e,t)=>e4(t)),M.blockers.forEach((e,t)=>e6(t))},getBlocker:function(e,t){let r=M.blockers.get(e)||ea;return ep.get(e)!==t&&ep.set(e,t),r},deleteBlocker:e6,patchRoutes:function(e,n){let a=null==r;ev(e,n,r||y,v,t),a&&(y=[...y],em({}))},_internalFetchControllers:K,_internalActiveDeferreds:ed,_internalSetRoutes:function(e){r=w(e,t,void 0,v={})}}}function eu(e,t,r,n,a,o,i,l){let s,u;if(i){for(let e of(s=[],t))if(s.push(e),e.route.id===i){u=e;break}}else s=t,u=t[t.length-1];let c=M(a||".",j(s,o),k(e.pathname,r)||e.pathname,"path"===l);if(null==a&&(c.search=e.search,c.hash=e.hash),(null==a||""===a||"."===a)&&u){let e=eV(c.search);if(u.route.index&&!e)c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index";else if(!u.route.index&&e){let e=new URLSearchParams(c.search),t=e.getAll("index");e.delete("index"),t.filter(e=>e).forEach(t=>e.append("index",t));let r=e.toString();c.search=r?"?"+r:""}}return n&&"/"!==r&&(c.pathname="/"===c.pathname?r:N([r,c.pathname])),v(c)}function ec(e,t,r,n){var a;let o,i;if(!n||!(null!=n&&("formData"in n&&null!=n.formData||"body"in n&&void 0!==n.body)))return{path:r};if(n.formMethod&&(a=n.formMethod,!Z.has(a.toLowerCase())))return{path:r,error:eA(405,{method:n.formMethod})};let l=()=>({path:r,error:eA(400,{type:"invalid-body"})}),s=n.formMethod||"get",u=e?s.toUpperCase():s.toLowerCase(),c=eU(r);if(void 0!==n.body){if("text/plain"===n.formEncType){if(!eB(u))return l();let e="string"==typeof n.body?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((e,t)=>{let[r,n]=t;return""+e+r+"="+n+"\n"},""):String(n.body);return{path:r,submission:{formMethod:u,formAction:c,formEncType:n.formEncType,formData:void 0,json:void 0,text:e}}}else if("application/json"===n.formEncType){if(!eB(u))return l();try{let e="string"==typeof n.body?JSON.parse(n.body):n.body;return{path:r,submission:{formMethod:u,formAction:c,formEncType:n.formEncType,formData:void 0,json:e,text:void 0}}}catch(e){return l()}}}if(h("function"==typeof FormData,"FormData is not available in this environment"),n.formData)o=ex(n.formData),i=n.formData;else if(n.body instanceof FormData)o=ex(n.body),i=n.body;else if(n.body instanceof URLSearchParams)i=eC(o=n.body);else if(null==n.body)o=new URLSearchParams,i=new FormData;else try{o=new URLSearchParams(n.body),i=eC(o)}catch(e){return l()}let d={formMethod:u,formAction:c,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:i,json:void 0,text:void 0};if(eB(d.formMethod))return{path:r,submission:d};let f=y(r);return t&&f.search&&eV(f.search)&&o.append("index",""),f.search="?"+o,{path:v(f),submission:d}}function ed(e,t,r){void 0===r&&(r=!1);let n=e.findIndex(e=>e.route.id===t);return n>=0?e.slice(0,r?n+1:n):e}function eh(e,t,r,n,a,o,i,s,u,c,d,h,f,p,m,v){let y=v?ej(v[1])?v[1].error:v[1].data:void 0,g=e.createURL(t.location),b=e.createURL(a),w=r;o&&t.errors?w=ed(r,Object.keys(t.errors)[0],!0):v&&ej(v[1])&&(w=ed(r,v[0]));let S=v?v[1].statusCode:void 0,R=i&&S&&S>=400,x=w.filter((e,r)=>{var a,i,c;let d,h,{route:f}=e;if(f.lazy)return!0;if(null==f.loader)return!1;if(o)return ef(f,t.loaderData,t.errors);if(a=t.loaderData,i=t.matches[r],c=e,d=!i||c.route.id!==i.route.id,h=void 0===a[c.route.id],d||h||u.some(t=>t===e.route.id))return!0;let p=t.matches[r];return em(e,l({currentUrl:g,currentParams:p.params,nextUrl:b,nextParams:e.params},n,{actionResult:y,actionStatus:S,defaultShouldRevalidate:!R&&(s||g.pathname+g.search===b.pathname+b.search||g.search!==b.search||ep(p,e))}))}),C=[];return h.forEach((e,a)=>{if(o||!r.some(t=>t.route.id===e.routeId)||d.has(a))return;let i=E(p,e.path,m);if(!i)return void C.push({key:a,routeId:e.routeId,path:e.path,matches:null,match:null,controller:null});let u=t.fetchers.get(a),h=e$(i,e.path),v=!1;f.has(a)?v=!1:c.has(a)?(c.delete(a),v=!0):v=u&&"idle"!==u.state&&void 0===u.data?s:em(h,l({currentUrl:g,currentParams:t.matches[t.matches.length-1].params,nextUrl:b,nextParams:r[r.length-1].params},n,{actionResult:y,actionStatus:S,defaultShouldRevalidate:!R&&s})),v&&C.push({key:a,routeId:e.routeId,path:e.path,matches:i,match:h,controller:new AbortController})}),[x,C]}function ef(e,t,r){if(e.lazy)return!0;if(!e.loader)return!1;let n=null!=t&&void 0!==t[e.id],a=null!=r&&void 0!==r[e.id];return(!!n||!a)&&("function"==typeof e.loader&&!0===e.loader.hydrate||!n&&!a)}function ep(e,t){let r=e.route.path;return e.pathname!==t.pathname||null!=r&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function em(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if("boolean"==typeof r)return r}return t.defaultShouldRevalidate}function ev(e,t,r,n,a){var o;let i;if(e){let t=n[e];h(t,"No route found to patch children into: routeId = "+e),t.children||(t.children=[]),i=t.children}else i=r;let l=w(t.filter(e=>!i.some(t=>(function e(t,r){return"id"in t&&"id"in r&&t.id===r.id||t.index===r.index&&t.path===r.path&&t.caseSensitive===r.caseSensitive&&((!t.children||0===t.children.length)&&(!r.children||0===r.children.length)||t.children.every((t,n)=>{var a;return null==(a=r.children)?void 0:a.some(r=>e(t,r))}))})(e,t))),a,[e||"_","patch",String((null==(o=i)?void 0:o.length)||"0")],n);i.push(...l)}async function ey(e,t,r){if(!e.lazy)return;let n=await e.lazy();if(!e.lazy)return;let a=r[e.id];h(a,"No route found in manifest");let o={};for(let e in n){let t=void 0!==a[e]&&"hasErrorBoundary"!==e;f(!t,'Route "'+a.id+'" has a static property "'+e+'" defined but its lazy function is also returning a value for this property. The lazy route property "'+e+'" will be ignored.'),t||b.has(e)||(o[e]=n[e])}Object.assign(a,o),Object.assign(a,l({},t(a),{lazy:void 0}))}async function eg(e){let{matches:t}=e,r=t.filter(e=>e.shouldLoad);return(await Promise.all(r.map(e=>e.resolve()))).reduce((e,t,n)=>Object.assign(e,{[r[n].route.id]:t}),{})}async function eb(e,t,r,n,o,i,s,u,c,d){let h=i.map(e=>e.route.lazy?ey(e.route,c,u):void 0),f=i.map((e,r)=>{let i=h[r],s=o.some(t=>t.route.id===e.route.id),u=async r=>(r&&"GET"===n.method&&(e.route.lazy||e.route.loader)&&(s=!0),s?ew(t,n,e,i,r,d):Promise.resolve({type:a.data,result:void 0}));return l({},e,{shouldLoad:s,resolve:u})}),p=await e({matches:f,request:n,params:i[0].params,fetcherKey:s,context:d});try{await Promise.all(h)}catch(e){}return p}async function ew(e,t,r,n,o,i){let l,s,u=n=>{let a,l=new Promise((e,t)=>a=t);s=()=>a(),t.signal.addEventListener("abort",s);let u=a=>"function"!=typeof n?Promise.reject(Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: ')+r.route.id+"]")):n({request:t,params:r.params,context:i},...void 0!==a?[a]:[]);return Promise.race([(async()=>{try{let e=await (o?o(e=>u(e)):u());return{type:"data",result:e}}catch(e){return{type:"error",result:e}}})(),l])};try{let o=r.route[e];if(n)if(o){let e,[t]=await Promise.all([u(o).catch(t=>{e=t}),n]);if(void 0!==e)throw e;l=t}else if(await n,o=r.route[e])l=await u(o);else{if("action"!==e)return{type:a.data,result:void 0};let n=new URL(t.url),o=n.pathname+n.search;throw eA(405,{method:t.method,pathname:o,routeId:r.route.id})}else if(o)l=await u(o);else{let e=new URL(t.url),r=e.pathname+e.search;throw eA(404,{pathname:r})}h(void 0!==l.result,"You defined "+("action"===e?"an action":"a loader")+" for route "+('"'+r.route.id+"\" but didn't return anything from your `")+e+"` function. Please return a value or `null`.")}catch(e){return{type:a.error,result:e}}finally{s&&t.signal.removeEventListener("abort",s)}return l}async function eE(e){var t,r,n,o,i,l,s,u,c;let{result:d,type:h}=e;if(eN(d)){let e;try{let t=d.headers.get("Content-Type");e=t&&/\bapplication\/json\b/.test(t)?null==d.body?null:await d.json():await d.text()}catch(e){return{type:a.error,error:e}}return h===a.error?{type:a.error,error:new Y(d.status,d.statusText,e),statusCode:d.status,headers:d.headers}:{type:a.data,data:e,statusCode:d.status,headers:d.headers}}if(h===a.error)return eF(d)?d.data instanceof Error?{type:a.error,error:d.data,statusCode:null==(n=d.init)?void 0:n.status,headers:null!=(o=d.init)&&o.headers?new Headers(d.init.headers):void 0}:{type:a.error,error:new Y((null==(t=d.init)?void 0:t.status)||500,void 0,d.data),statusCode:X(d)?d.status:void 0,headers:null!=(r=d.init)&&r.headers?new Headers(d.init.headers):void 0}:{type:a.error,error:d,statusCode:X(d)?d.status:void 0};return(c=d)&&"object"==typeof c&&"object"==typeof c.data&&"function"==typeof c.subscribe&&"function"==typeof c.cancel&&"function"==typeof c.resolveData?{type:a.deferred,deferredData:d,statusCode:null==(i=d.init)?void 0:i.status,headers:(null==(l=d.init)?void 0:l.headers)&&new Headers(d.init.headers)}:eF(d)?{type:a.data,data:d.data,statusCode:null==(s=d.init)?void 0:s.status,headers:null!=(u=d.init)&&u.headers?new Headers(d.init.headers):void 0}:{type:a.data,data:d}}function eS(e,t,r,n){let a=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];if(eo.test(e)){let n=new URL(e.startsWith("//")?t.protocol+e:e);if(a.includes(n.protocol))throw Error("Invalid redirect location");let o=null!=k(n.pathname,r);if(n.origin===t.origin&&o)return F(n.pathname)+n.search+n.hash}try{let t=n.createURL(e);if(a.includes(t.protocol))throw Error("Invalid redirect location")}catch(e){}return e}function eR(e,t,r,n){let a=e.createURL(eU(t)).toString(),o={signal:r};if(n&&eB(n.formMethod)){let{formMethod:e,formEncType:t}=n;o.method=e.toUpperCase(),"application/json"===t?(o.headers=new Headers({"Content-Type":t}),o.body=JSON.stringify(n.json)):"text/plain"===t?o.body=n.text:"application/x-www-form-urlencoded"===t&&n.formData?o.body=ex(n.formData):o.body=n.formData}return new Request(a,o)}function ex(e){let t=new URLSearchParams;for(let[r,n]of e.entries())t.append(r,"string"==typeof n?n:n.name);return t}function eC(e){let t=new FormData;for(let[r,n]of e.entries())t.append(r,n);return t}function eP(e,t,r,n,a,o,i){let s,u,c,d,f,p,{loaderData:m,errors:v}=(u={},c=null,d=!1,f={},p=n&&ej(n[1])?n[1].error:void 0,t.forEach(e=>{if(!(e.route.id in r))return;let n=e.route.id,a=r[n];if(h(!eM(a),"Cannot handle redirect results in processLoaderData"),ej(a)){let e=a.error;void 0!==p&&(e=p,p=void 0),c=c||{},1;{let r=ek(t,n);null==c[r.route.id]&&(c[r.route.id]=e)}u[n]=void 0,d||(d=!0,s=X(a.error)?a.error.status:500),a.headers&&(f[n]=a.headers)}else eT(a)?(i.set(n,a.deferredData),u[n]=a.deferredData.data,null==a.statusCode||200===a.statusCode||d||(s=a.statusCode)):(u[n]=a.data,a.statusCode&&200!==a.statusCode&&!d&&(s=a.statusCode)),a.headers&&(f[n]=a.headers)}),void 0!==p&&n&&(c={[n[0]]:p},u[n[0]]=void 0),{loaderData:u,errors:c,statusCode:s||200,loaderHeaders:f});return a.forEach(t=>{let{key:r,match:n,controller:a}=t,i=o[r];if(h(i,"Did not find corresponding fetcher result"),!a||!a.signal.aborted)if(ej(i)){let t=ek(e.matches,null==n?void 0:n.route.id);v&&v[t.route.id]||(v=l({},v,{[t.route.id]:i.error})),e.fetchers.delete(r)}else if(eM(i))h(!1,"Unhandled fetcher revalidation redirect");else if(eT(i))h(!1,"Unhandled fetcher deferred data");else{let t=eJ(i.data);e.fetchers.set(r,t)}}),{loaderData:m,errors:v}}function eD(e,t,r,n){let a=l({},t);for(let o of r){let r=o.route.id;if(t.hasOwnProperty(r)?void 0!==t[r]&&(a[r]=t[r]):void 0!==e[r]&&o.route.loader&&(a[r]=e[r]),n&&n.hasOwnProperty(r))break}return a}function eL(e){return e?ej(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function ek(e,t){return(t?e.slice(0,e.findIndex(e=>e.route.id===t)+1):[...e]).reverse().find(e=>!0===e.route.hasErrorBoundary)||e[0]}function eO(e){let t=1===e.length?e[0]:e.find(e=>e.index||!e.path||"/"===e.path)||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function eA(e,t){let{pathname:r,routeId:n,method:a,type:o,message:i}=void 0===t?{}:t,l="Unknown Server Error",s="Unknown @remix-run/router error";return 400===e?(l="Bad Request",a&&r&&n?s="You made a "+a+' request to "'+r+'" but did not provide a `loader` for route "'+n+'", so there is no way to handle the request.':"defer-action"===o?s="defer() is not supported in actions":"invalid-body"===o&&(s="Unable to encode submission body")):403===e?(l="Forbidden",s='Route "'+n+'" does not match URL "'+r+'"'):404===e?(l="Not Found",s='No route matches URL "'+r+'"'):405===e&&(l="Method Not Allowed",a&&r&&n?s="You made a "+a.toUpperCase()+' request to "'+r+'" but did not provide an `action` for route "'+n+'", so there is no way to handle the request.':a&&(s='Invalid request method "'+a.toUpperCase()+'"')),new Y(e||500,l,Error(s),!0)}function e_(e){let t=Object.entries(e);for(let e=t.length-1;e>=0;e--){let[r,n]=t[e];if(eM(n))return{key:r,result:n}}}function eU(e){let t="string"==typeof e?y(e):e;return v(l({},t,{hash:""}))}function eT(e){return e.type===a.deferred}function ej(e){return e.type===a.error}function eM(e){return(e&&e.type)===a.redirect}function eF(e){return"object"==typeof e&&null!=e&&"type"in e&&"data"in e&&"init"in e&&"DataWithResponseInit"===e.type}function eN(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"object"==typeof e.headers&&void 0!==e.body}function eB(e){return Q.has(e.toLowerCase())}async function eI(e,t,r,n,a){let o=Object.entries(t);for(let i=0;i<o.length;i++){let[l,s]=o[i],u=e.find(e=>(null==e?void 0:e.route.id)===l);if(!u)continue;let c=n.find(e=>e.route.id===u.route.id),d=null!=c&&!ep(c,u)&&(a&&a[u.route.id])!==void 0;eT(s)&&d&&await eH(s,r,!1).then(e=>{e&&(t[l]=e)})}}async function ez(e,t,r){for(let n=0;n<r.length;n++){let{key:a,routeId:o,controller:i}=r[n],l=t[a];e.find(e=>(null==e?void 0:e.route.id)===o)&&eT(l)&&(h(i,"Expected an AbortController for revalidating fetcher deferred result"),await eH(l,i.signal,!0).then(e=>{e&&(t[a]=e)}))}}async function eH(e,t,r){if(void 0===r&&(r=!1),!await e.deferredData.resolveData(t)){if(r)try{return{type:a.data,data:e.deferredData.unwrappedData}}catch(e){return{type:a.error,error:e}}return{type:a.data,data:e.deferredData.data}}}function eV(e){return new URLSearchParams(e).getAll("index").some(e=>""===e)}function e$(e,t){let r="string"==typeof t?y(t).search:t.search;if(e[e.length-1].route.index&&eV(r||""))return e[e.length-1];let n=T(e);return n[n.length-1]}function eW(e){let{formMethod:t,formAction:r,formEncType:n,text:a,formData:o,json:i}=e;if(t&&r&&n){if(null!=a)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:void 0,text:a};else if(null!=o)return{formMethod:t,formAction:r,formEncType:n,formData:o,json:void 0,text:void 0};else if(void 0!==i)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:i,text:void 0}}}function eK(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function eq(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function eJ(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}Symbol("deferred")},49348(e,t,r){r.r(t),r.d(t,{AbortedDeferredError:()=>c.tH,Await:()=>u.jD,BrowserRouter:()=>T,Form:()=>z,HashRouter:()=>j,Link:()=>B,MemoryRouter:()=>u.fS,NavLink:()=>I,Navigate:()=>u.C5,NavigationType:()=>c.rc,Outlet:()=>u.sv,Route:()=>u.qh,Router:()=>u.Ix,RouterProvider:()=>_,Routes:()=>u.BV,ScrollRestoration:()=>H,UNSAFE_DataRouterContext:()=>u.sp,UNSAFE_DataRouterStateContext:()=>u.Rq,UNSAFE_ErrorResponseImpl:()=>c.VV,UNSAFE_FetchersContext:()=>P,UNSAFE_LocationContext:()=>u.yN,UNSAFE_NavigationContext:()=>u.jb,UNSAFE_RouteContext:()=>u.UX,UNSAFE_ViewTransitionContext:()=>C,UNSAFE_useRouteId:()=>u.$3,UNSAFE_useScrollRestoration:()=>et,createBrowserRouter:()=>S,createHashRouter:()=>R,createMemoryRouter:()=>u.bg,createPath:()=>c.AO,createRoutesFromChildren:()=>u.AV,createRoutesFromElements:()=>u.Eu,createSearchParams:()=>m,defer:()=>c.v6,generatePath:()=>c.tW,isRouteErrorResponse:()=>c.pX,json:()=>c.Pq,matchPath:()=>c.B6,matchRoutes:()=>c.ue,parsePath:()=>c.Rr,redirect:()=>c.V2,redirectDocument:()=>c.Sk,renderMatches:()=>u.KT,replace:()=>c.HC,resolvePath:()=>c.o1,unstable_HistoryRouter:()=>M,unstable_usePrompt:()=>en,useActionData:()=>u.mP,useAsyncError:()=>u.oI,useAsyncValue:()=>u.J8,useBeforeUnload:()=>er,useBlocker:()=>u.KP,useFetcher:()=>G,useFetchers:()=>Q,useFormAction:()=>X,useHref:()=>u.$P,useInRouterContext:()=>u.Ri,useLinkClickHandler:()=>W,useLoaderData:()=>u.LG,useLocation:()=>u.zy,useMatch:()=>u.RQ,useMatches:()=>u.FE,useNavigate:()=>u.Zp,useNavigation:()=>u.cq,useNavigationType:()=>u.wQ,useOutlet:()=>u.P1,useOutletContext:()=>u.KC,useParams:()=>u.g,useResolvedPath:()=>u.x$,useRevalidator:()=>u.vL,useRouteError:()=>u.r5,useRouteLoaderData:()=>u.Ew,useRoutes:()=>u.Ye,useSearchParams:()=>K,useSubmit:()=>Y,useViewTransitionState:()=>ea});var n,a,o,i,l=r(70451),s=r(20231),u=r(67435),c=r(70744);function d(){return(d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}function h(e,t){if(null==e)return{};var r={};for(var n in e)if(({}).hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}let f="application/x-www-form-urlencoded";function p(e){return null!=e&&"string"==typeof e.tagName}function m(e){return void 0===e&&(e=""),new URLSearchParams("string"==typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,r)=>{let n=e[r];return t.concat(Array.isArray(n)?n.map(e=>[r,e]):[[r,n]])},[]))}let v=null,y=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function g(e){return null==e||y.has(e)?e:null}let b=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],w=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],E=["fetcherKey","navigate","reloadDocument","replace","state","method","action","onSubmit","relative","preventScrollReset","viewTransition"];try{window.__reactRouterVersion="6"}catch(e){}function S(e,t){return(0,c.aE)({basename:null==t?void 0:t.basename,future:d({},null==t?void 0:t.future,{v7_prependBasename:!0}),history:(0,c.zR)({window:null==t?void 0:t.window}),hydrationData:(null==t?void 0:t.hydrationData)||x(),routes:e,mapRouteProperties:u.wE,dataStrategy:null==t?void 0:t.dataStrategy,patchRoutesOnNavigation:null==t?void 0:t.patchRoutesOnNavigation,window:null==t?void 0:t.window}).initialize()}function R(e,t){return(0,c.aE)({basename:null==t?void 0:t.basename,future:d({},null==t?void 0:t.future,{v7_prependBasename:!0}),history:(0,c.TM)({window:null==t?void 0:t.window}),hydrationData:(null==t?void 0:t.hydrationData)||x(),routes:e,mapRouteProperties:u.wE,dataStrategy:null==t?void 0:t.dataStrategy,patchRoutesOnNavigation:null==t?void 0:t.patchRoutesOnNavigation,window:null==t?void 0:t.window}).initialize()}function x(){var e;let t=null==(e=window)?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=d({},t,{errors:function(e){if(!e)return null;let t=Object.entries(e),r={};for(let[e,n]of t)if(n&&"RouteErrorResponse"===n.__type)r[e]=new c.VV(n.status,n.statusText,n.data,!0===n.internal);else if(n&&"Error"===n.__type){if(n.__subType){let t=window[n.__subType];if("function"==typeof t)try{let a=new t(n.message);a.stack="",r[e]=a}catch(e){}}if(null==r[e]){let t=Error(n.message);t.stack="",r[e]=t}}else r[e]=n;return r}(t.errors)})),t}let C=l.createContext({isTransitioning:!1}),P=l.createContext(new Map),D=l.startTransition,L=s.flushSync,k=l.useId;function O(e){L?L(e):e()}class A{constructor(){this.status="pending",this.promise=new Promise((e,t)=>{this.resolve=t=>{"pending"===this.status&&(this.status="resolved",e(t))},this.reject=e=>{"pending"===this.status&&(this.status="rejected",t(e))}})}}function _(e){let{fallbackElement:t,router:r,future:n}=e,[a,o]=l.useState(r.state),[i,s]=l.useState(),[c,d]=l.useState({isTransitioning:!1}),[h,f]=l.useState(),[p,m]=l.useState(),[v,y]=l.useState(),g=l.useRef(new Map),{v7_startTransition:b}=n||{},w=l.useCallback(e=>{if(b)D?D(e):e();else e()},[b]),E=l.useCallback((e,t)=>{let{deletedFetchers:n,flushSync:a,viewTransitionOpts:i}=t;e.fetchers.forEach((e,t)=>{void 0!==e.data&&g.current.set(t,e.data)}),n.forEach(e=>g.current.delete(e));let l=null==r.window||null==r.window.document||"function"!=typeof r.window.document.startViewTransition;if(!i||l)return void(a?O(()=>o(e)):w(()=>o(e)));if(a){O(()=>{p&&(h&&h.resolve(),p.skipTransition()),d({isTransitioning:!0,flushSync:!0,currentLocation:i.currentLocation,nextLocation:i.nextLocation})});let t=r.window.document.startViewTransition(()=>{O(()=>o(e))});t.finished.finally(()=>{O(()=>{f(void 0),m(void 0),s(void 0),d({isTransitioning:!1})})}),O(()=>m(t));return}p?(h&&h.resolve(),p.skipTransition(),y({state:e,currentLocation:i.currentLocation,nextLocation:i.nextLocation})):(s(e),d({isTransitioning:!0,flushSync:!1,currentLocation:i.currentLocation,nextLocation:i.nextLocation}))},[r.window,p,h,g,w]);l.useLayoutEffect(()=>r.subscribe(E),[r,E]),l.useEffect(()=>{c.isTransitioning&&!c.flushSync&&f(new A)},[c]),l.useEffect(()=>{if(h&&i&&r.window){let e=h.promise,t=r.window.document.startViewTransition(async()=>{w(()=>o(i)),await e});t.finished.finally(()=>{f(void 0),m(void 0),s(void 0),d({isTransitioning:!1})}),m(t)}},[w,i,h,r.window]),l.useEffect(()=>{h&&i&&a.location.key===i.location.key&&h.resolve()},[h,p,a.location,i]),l.useEffect(()=>{!c.isTransitioning&&v&&(s(v.state),d({isTransitioning:!0,flushSync:!1,currentLocation:v.currentLocation,nextLocation:v.nextLocation}),y(void 0))},[c.isTransitioning,v]),l.useEffect(()=>{},[]);let S=l.useMemo(()=>({createHref:r.createHref,encodeLocation:r.encodeLocation,go:e=>r.navigate(e),push:(e,t,n)=>r.navigate(e,{state:t,preventScrollReset:null==n?void 0:n.preventScrollReset}),replace:(e,t,n)=>r.navigate(e,{replace:!0,state:t,preventScrollReset:null==n?void 0:n.preventScrollReset})}),[r]),R=r.basename||"/",x=l.useMemo(()=>({router:r,navigator:S,static:!1,basename:R}),[r,S,R]),L=l.useMemo(()=>({v7_relativeSplatPath:r.future.v7_relativeSplatPath}),[r.future.v7_relativeSplatPath]);return l.useEffect(()=>(0,u.V8)(n,r.future),[n,r.future]),l.createElement(l.Fragment,null,l.createElement(u.sp.Provider,{value:x},l.createElement(u.Rq.Provider,{value:a},l.createElement(P.Provider,{value:g.current},l.createElement(C.Provider,{value:c},l.createElement(u.Ix,{basename:R,location:a.location,navigationType:a.historyAction,navigator:S,future:L},a.initialized||r.future.v7_partialHydration?l.createElement(U,{routes:r.routes,future:r.future,state:a}):t))))),null)}let U=l.memo(function(e){let{routes:t,future:r,state:n}=e;return(0,u.ph)(t,void 0,n,r)});function T(e){let{basename:t,children:r,future:n,window:a}=e,o=l.useRef();null==o.current&&(o.current=(0,c.zR)({window:a,v5Compat:!0}));let i=o.current,[s,d]=l.useState({action:i.action,location:i.location}),{v7_startTransition:h}=n||{},f=l.useCallback(e=>{h&&D?D(()=>d(e)):d(e)},[d,h]);return l.useLayoutEffect(()=>i.listen(f),[i,f]),l.useEffect(()=>(0,u.V8)(n),[n]),l.createElement(u.Ix,{basename:t,children:r,location:s.location,navigationType:s.action,navigator:i,future:n})}function j(e){let{basename:t,children:r,future:n,window:a}=e,o=l.useRef();null==o.current&&(o.current=(0,c.TM)({window:a,v5Compat:!0}));let i=o.current,[s,d]=l.useState({action:i.action,location:i.location}),{v7_startTransition:h}=n||{},f=l.useCallback(e=>{h&&D?D(()=>d(e)):d(e)},[d,h]);return l.useLayoutEffect(()=>i.listen(f),[i,f]),l.useEffect(()=>(0,u.V8)(n),[n]),l.createElement(u.Ix,{basename:t,children:r,location:s.location,navigationType:s.action,navigator:i,future:n})}function M(e){let{basename:t,children:r,future:n,history:a}=e,[o,i]=l.useState({action:a.action,location:a.location}),{v7_startTransition:s}=n||{},c=l.useCallback(e=>{s&&D?D(()=>i(e)):i(e)},[i,s]);return l.useLayoutEffect(()=>a.listen(c),[a,c]),l.useEffect(()=>(0,u.V8)(n),[n]),l.createElement(u.Ix,{basename:t,children:r,location:o.location,navigationType:o.action,navigator:a,future:n})}let F="u">typeof window&&void 0!==window.document&&void 0!==window.document.createElement,N=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,B=l.forwardRef(function(e,t){let r,{onClick:n,relative:a,reloadDocument:o,replace:i,state:s,target:f,to:p,preventScrollReset:m,viewTransition:v}=e,y=h(e,b),{basename:g}=l.useContext(u.jb),w=!1;if("string"==typeof p&&N.test(p)&&(r=p,F))try{let e=new URL(window.location.href),t=new URL(p.startsWith("//")?e.protocol+p:p),r=(0,c.pb)(t.pathname,g);t.origin===e.origin&&null!=r?p=r+t.search+t.hash:w=!0}catch(e){}let E=(0,u.$P)(p,{relative:a}),S=W(p,{replace:i,state:s,target:f,preventScrollReset:m,relative:a,viewTransition:v});return l.createElement("a",d({},y,{href:r||E,onClick:w||o?n:function(e){n&&n(e),e.defaultPrevented||S(e)},ref:t,target:f}))}),I=l.forwardRef(function(e,t){let r,{"aria-current":n="page",caseSensitive:a=!1,className:o="",end:i=!1,style:s,to:f,viewTransition:p,children:m}=e,v=h(e,w),y=(0,u.x$)(f,{relative:v.relative}),g=(0,u.zy)(),b=l.useContext(u.Rq),{navigator:E,basename:S}=l.useContext(u.jb),R=null!=b&&ea(y)&&!0===p,x=E.encodeLocation?E.encodeLocation(y).pathname:y.pathname,C=g.pathname,P=b&&b.navigation&&b.navigation.location?b.navigation.location.pathname:null;a||(C=C.toLowerCase(),P=P?P.toLowerCase():null,x=x.toLowerCase()),P&&S&&(P=(0,c.pb)(P,S)||P);let D="/"!==x&&x.endsWith("/")?x.length-1:x.length,L=C===x||!i&&C.startsWith(x)&&"/"===C.charAt(D),k=null!=P&&(P===x||!i&&P.startsWith(x)&&"/"===P.charAt(x.length)),O={isActive:L,isPending:k,isTransitioning:R},A=L?n:void 0;r="function"==typeof o?o(O):[o,L?"active":null,k?"pending":null,R?"transitioning":null].filter(Boolean).join(" ");let _="function"==typeof s?s(O):s;return l.createElement(B,d({},v,{"aria-current":A,className:r,ref:t,style:_,to:f,viewTransition:p}),"function"==typeof m?m(O):m)}),z=l.forwardRef((e,t)=>{let{fetcherKey:r,navigate:n,reloadDocument:a,replace:o,state:i,method:s="get",action:u,onSubmit:c,relative:f,preventScrollReset:p,viewTransition:m}=e,v=h(e,E),y=Y(),g=X(u,{relative:f}),b="get"===s.toLowerCase()?"get":"post";return l.createElement("form",d({ref:t,method:b,action:g,onSubmit:a?c:e=>{if(c&&c(e),e.defaultPrevented)return;e.preventDefault();let t=e.nativeEvent.submitter,a=(null==t?void 0:t.getAttribute("formmethod"))||s;y(t||e.currentTarget,{fetcherKey:r,method:a,navigate:n,replace:o,state:i,relative:f,preventScrollReset:p,viewTransition:m})}},v))});function H(e){let{getKey:t,storageKey:r}=e;return et({getKey:t,storageKey:r}),null}function V(e){let t=l.useContext(u.sp);return t||(0,c.Oi)(!1),t}function $(e){let t=l.useContext(u.Rq);return t||(0,c.Oi)(!1),t}function W(e,t){let{target:r,replace:n,state:a,preventScrollReset:o,relative:i,viewTransition:s}=void 0===t?{}:t,d=(0,u.Zp)(),h=(0,u.zy)(),f=(0,u.x$)(e,{relative:i});return l.useCallback(t=>{0!==t.button||r&&"_self"!==r||t.metaKey||t.altKey||t.ctrlKey||t.shiftKey||(t.preventDefault(),d(e,{replace:void 0!==n?n:(0,c.AO)(h)===(0,c.AO)(f),state:a,preventScrollReset:o,relative:i,viewTransition:s}))},[h,d,f,n,a,r,e,o,i,s])}function K(e){let t=l.useRef(m(e)),r=l.useRef(!1),n=(0,u.zy)(),a=l.useMemo(()=>{var e,a;let o;return e=n.search,a=r.current?null:t.current,o=m(e),a&&a.forEach((e,t)=>{o.has(t)||a.getAll(t).forEach(e=>{o.append(t,e)})}),o},[n.search]),o=(0,u.Zp)(),i=l.useCallback((e,t)=>{let n=m("function"==typeof e?e(a):e);r.current=!0,o("?"+n,t)},[o,a]);return[a,i]}(n=o||(o={})).UseScrollRestoration="useScrollRestoration",n.UseSubmit="useSubmit",n.UseSubmitFetcher="useSubmitFetcher",n.UseFetcher="useFetcher",n.useViewTransitionState="useViewTransitionState",(a=i||(i={})).UseFetcher="useFetcher",a.UseFetchers="useFetchers",a.UseScrollRestoration="useScrollRestoration";let q=0,J=()=>"__"+String(++q)+"__";function Y(){let{router:e}=V(o.UseSubmit),{basename:t}=l.useContext(u.jb),r=(0,u.$3)();return l.useCallback(function(n,a){if(void 0===a&&(a={}),"u"<typeof document)throw Error("You are calling submit during the server render. Try calling submit within a `useEffect` or callback instead.");let{action:o,method:i,encType:l,formData:s,body:u}=function(e,t){let r,n,a,o,i;if(p(e)&&"form"===e.tagName.toLowerCase()){let i=e.getAttribute("action");n=i?(0,c.pb)(i,t):null,r=e.getAttribute("method")||"get",a=g(e.getAttribute("enctype"))||f,o=new FormData(e)}else if(p(e)&&"button"===e.tagName.toLowerCase()||p(e)&&"input"===e.tagName.toLowerCase()&&("submit"===e.type||"image"===e.type)){let i=e.form;if(null==i)throw Error('Cannot submit a <button> or <input type="submit"> without a <form>');let l=e.getAttribute("formaction")||i.getAttribute("action");if(n=l?(0,c.pb)(l,t):null,r=e.getAttribute("formmethod")||i.getAttribute("method")||"get",a=g(e.getAttribute("formenctype"))||g(i.getAttribute("enctype"))||f,o=new FormData(i,e),!function(){if(null===v)try{new FormData(document.createElement("form"),0),v=!1}catch(e){v=!0}return v}()){let{name:t,type:r,value:n}=e;if("image"===r){let e=t?t+".":"";o.append(e+"x","0"),o.append(e+"y","0")}else t&&o.append(t,n)}}else if(p(e))throw Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');else r="get",n=null,a=f,i=e;return o&&"text/plain"===a&&(i=o,o=void 0),{action:n,method:r.toLowerCase(),encType:a,formData:o,body:i}}(n,t);if(!1===a.navigate){let t=a.fetcherKey||J();e.fetch(t,r,a.action||o,{preventScrollReset:a.preventScrollReset,formData:s,body:u,formMethod:a.method||i,formEncType:a.encType||l,flushSync:a.flushSync})}else e.navigate(a.action||o,{preventScrollReset:a.preventScrollReset,formData:s,body:u,formMethod:a.method||i,formEncType:a.encType||l,replace:a.replace,state:a.state,fromRouteId:r,flushSync:a.flushSync,viewTransition:a.viewTransition})},[e,t,r])}function X(e,t){let{relative:r}=void 0===t?{}:t,{basename:n}=l.useContext(u.jb),a=l.useContext(u.UX);a||(0,c.Oi)(!1);let[o]=a.matches.slice(-1),i=d({},(0,u.x$)(e||".",{relative:r})),s=(0,u.zy)();if(null==e){i.search=s.search;let e=new URLSearchParams(i.search),t=e.getAll("index");if(t.some(e=>""===e)){e.delete("index"),t.filter(e=>e).forEach(t=>e.append("index",t));let r=e.toString();i.search=r?"?"+r:""}}return(!e||"."===e)&&o.route.index&&(i.search=i.search?i.search.replace(/^\?/,"?index&"):"?index"),"/"!==n&&(i.pathname="/"===i.pathname?n:(0,c.HS)([n,i.pathname])),(0,c.AO)(i)}function G(e){var t;let{key:r}=void 0===e?{}:e,{router:n}=V(o.UseFetcher),a=$(i.UseFetcher),s=l.useContext(P),h=l.useContext(u.UX),f=null==(t=h.matches[h.matches.length-1])?void 0:t.route.id;s||(0,c.Oi)(!1),h||(0,c.Oi)(!1),null==f&&(0,c.Oi)(!1);let p=k?k():"",[m,v]=l.useState(r||p);r&&r!==m?v(r):m||v(J()),l.useEffect(()=>(n.getFetcher(m),()=>{n.deleteFetcher(m)}),[n,m]);let y=l.useCallback((e,t)=>{f||(0,c.Oi)(!1),n.fetch(m,f,e,t)},[m,f,n]),g=Y(),b=l.useCallback((e,t)=>{g(e,d({},t,{navigate:!1,fetcherKey:m}))},[m,g]),w=l.useMemo(()=>l.forwardRef((e,t)=>l.createElement(z,d({},e,{navigate:!1,fetcherKey:m,ref:t}))),[m]),E=a.fetchers.get(m)||c.HW,S=s.get(m);return l.useMemo(()=>d({Form:w,submit:b,load:y},E,{data:S}),[w,b,y,E,S])}function Q(){return Array.from($(i.UseFetchers).fetchers.entries()).map(e=>{let[t,r]=e;return d({},r,{key:t})})}let Z="react-router-scroll-positions",ee={};function et(e){let{getKey:t,storageKey:r}=void 0===e?{}:e,{router:n}=V(o.UseScrollRestoration),{restoreScrollPosition:a,preventScrollReset:s}=$(i.UseScrollRestoration),{basename:h}=l.useContext(u.jb),f=(0,u.zy)(),p=(0,u.FE)(),m=(0,u.cq)();l.useEffect(()=>(window.history.scrollRestoration="manual",()=>{window.history.scrollRestoration="auto"}),[]),function(e){let{capture:t}={};l.useEffect(()=>{let r=null!=t?{capture:t}:void 0;return window.addEventListener("pagehide",e,r),()=>{window.removeEventListener("pagehide",e,r)}},[e,t])}(l.useCallback(()=>{"idle"===m.state&&(ee[(t?t(f,p):null)||f.key]=window.scrollY);try{sessionStorage.setItem(r||Z,JSON.stringify(ee))}catch(e){}window.history.scrollRestoration="auto"},[r,t,m.state,f,p])),"u">typeof document&&(l.useLayoutEffect(()=>{try{let e=sessionStorage.getItem(r||Z);e&&(ee=JSON.parse(e))}catch(e){}},[r]),l.useLayoutEffect(()=>{let e=t&&"/"!==h?(e,r)=>t(d({},e,{pathname:(0,c.pb)(e.pathname,h)||e.pathname}),r):t,r=null==n?void 0:n.enableScrollRestoration(ee,()=>window.scrollY,e);return()=>r&&r()},[n,h,t]),l.useLayoutEffect(()=>{if(!1!==a){if("number"==typeof a)return void window.scrollTo(0,a);if(f.hash){let e=document.getElementById(decodeURIComponent(f.hash.slice(1)));if(e)return void e.scrollIntoView()}!0!==s&&window.scrollTo(0,0)}},[f,a,s]))}function er(e,t){let{capture:r}=t||{};l.useEffect(()=>{let t=null!=r?{capture:r}:void 0;return window.addEventListener("beforeunload",e,t),()=>{window.removeEventListener("beforeunload",e,t)}},[e,r])}function en(e){let{when:t,message:r}=e,n=(0,u.KP)(t);l.useEffect(()=>{"blocked"===n.state&&(window.confirm(r)?setTimeout(n.proceed,0):n.reset())},[n,r]),l.useEffect(()=>{"blocked"!==n.state||t||n.reset()},[n,t])}function ea(e,t){void 0===t&&(t={});let r=l.useContext(C);null==r&&(0,c.Oi)(!1);let{basename:n}=V(o.useViewTransitionState),a=(0,u.x$)(e,{relative:t.relative});if(!r.isTransitioning)return!1;let i=(0,c.pb)(r.currentLocation.pathname,n)||r.currentLocation.pathname,s=(0,c.pb)(r.nextLocation.pathname,n)||r.nextLocation.pathname;return null!=(0,c.B6)(a.pathname,s)||null!=(0,c.B6)(a.pathname,i)}},67435(e,t,r){r.d(t,{$3:()=>B,$P:()=>v,AV:()=>ed,BV:()=>eo,C5:()=>et,Eu:()=>ed,Ew:()=>$,FE:()=>H,Ix:()=>ea,J8:()=>q,KC:()=>x,KP:()=>X,KT:()=>eh,LG:()=>V,P1:()=>C,RQ:()=>w,Ri:()=>y,Rq:()=>c,UX:()=>p,V8:()=>Q,Ye:()=>L,Zp:()=>S,bg:()=>ep,cq:()=>I,fS:()=>ee,g:()=>P,jD:()=>ei,jb:()=>h,mP:()=>W,oI:()=>J,ph:()=>k,qh:()=>en,r5:()=>K,sp:()=>u,sv:()=>er,vL:()=>z,wE:()=>ef,wQ:()=>b,x$:()=>D,yN:()=>f,zy:()=>g});var n,a,o,i=r(70451),l=r(70744);function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}let u=i.createContext(null),c=i.createContext(null),d=i.createContext(null),h=i.createContext(null),f=i.createContext(null),p=i.createContext({outlet:null,matches:[],isDataRoute:!1}),m=i.createContext(null);function v(e,t){let{relative:r}=void 0===t?{}:t;y()||(0,l.Oi)(!1);let{basename:n,navigator:a}=i.useContext(h),{hash:o,pathname:s,search:u}=D(e,{relative:r}),c=s;return"/"!==n&&(c="/"===s?n:(0,l.HS)([n,s])),a.createHref({pathname:c,search:u,hash:o})}function y(){return null!=i.useContext(f)}function g(){return y()||(0,l.Oi)(!1),i.useContext(f).location}function b(){return i.useContext(f).navigationType}function w(e){y()||(0,l.Oi)(!1);let{pathname:t}=g();return i.useMemo(()=>(0,l.B6)(e,(0,l.RO)(t)),[t,e])}function E(e){i.useContext(h).static||i.useLayoutEffect(e)}function S(){let{isDataRoute:e}=i.useContext(p);return e?function(){let{router:e}=M(T.UseNavigateStable),t=N(j.UseNavigateStable),r=i.useRef(!1);return E(()=>{r.current=!0}),i.useCallback(function(n,a){void 0===a&&(a={}),r.current&&("number"==typeof n?e.navigate(n):e.navigate(n,s({fromRouteId:t},a)))},[e,t])}():function(){y()||(0,l.Oi)(!1);let e=i.useContext(u),{basename:t,future:r,navigator:n}=i.useContext(h),{matches:a}=i.useContext(p),{pathname:o}=g(),s=JSON.stringify((0,l.yD)(a,r.v7_relativeSplatPath)),c=i.useRef(!1);return E(()=>{c.current=!0}),i.useCallback(function(r,a){if(void 0===a&&(a={}),!c.current)return;if("number"==typeof r)return void n.go(r);let i=(0,l.Gh)(r,JSON.parse(s),o,"path"===a.relative);null==e&&"/"!==t&&(i.pathname="/"===i.pathname?t:(0,l.HS)([t,i.pathname])),(a.replace?n.replace:n.push)(i,a.state,a)},[t,n,s,o,e])}()}let R=i.createContext(null);function x(){return i.useContext(R)}function C(e){let t=i.useContext(p).outlet;return t?i.createElement(R.Provider,{value:e},t):t}function P(){let{matches:e}=i.useContext(p),t=e[e.length-1];return t?t.params:{}}function D(e,t){let{relative:r}=void 0===t?{}:t,{future:n}=i.useContext(h),{matches:a}=i.useContext(p),{pathname:o}=g(),s=JSON.stringify((0,l.yD)(a,n.v7_relativeSplatPath));return i.useMemo(()=>(0,l.Gh)(e,JSON.parse(s),o,"path"===r),[e,s,o,r])}function L(e,t){return k(e,t)}function k(e,t,r,n){let a;y()||(0,l.Oi)(!1);let{navigator:o}=i.useContext(h),{matches:u}=i.useContext(p),c=u[u.length-1],d=c?c.params:{};c&&c.pathname;let m=c?c.pathnameBase:"/";c&&c.route;let v=g();if(t){var b;let e="string"==typeof t?(0,l.Rr)(t):t;"/"===m||(null==(b=e.pathname)?void 0:b.startsWith(m))||(0,l.Oi)(!1),a=e}else a=v;let w=a.pathname||"/",E=w;if("/"!==m){let e=m.replace(/^\//,"").split("/");E="/"+w.replace(/^\//,"").split("/").slice(e.length).join("/")}let S=(0,l.ue)(e,{pathname:E}),R=U(S&&S.map(e=>Object.assign({},e,{params:Object.assign({},d,e.params),pathname:(0,l.HS)([m,o.encodeLocation?o.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?m:(0,l.HS)([m,o.encodeLocation?o.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])})),u,r,n);return t&&R?i.createElement(f.Provider,{value:{location:s({pathname:"/",search:"",hash:"",state:null,key:"default"},a),navigationType:l.rc.Pop}},R):R}let O=i.createElement(function(){let e=K(),t=(0,l.pX)(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null;return i.createElement(i.Fragment,null,i.createElement("h2",null,"Unexpected Application Error!"),i.createElement("h3",{style:{fontStyle:"italic"}},t),r?i.createElement("pre",{style:{padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"}},r):null,null)},null);class A extends i.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?i.createElement(p.Provider,{value:this.props.routeContext},i.createElement(m.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function _(e){let{routeContext:t,match:r,children:n}=e,a=i.useContext(u);return a&&a.static&&a.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=r.route.id),i.createElement(p.Provider,{value:t},n)}function U(e,t,r,n){var a,o;if(void 0===t&&(t=[]),void 0===r&&(r=null),void 0===n&&(n=null),null==e){if(!r)return null;if(r.errors)e=r.matches;else{if(null==(o=n)||!o.v7_partialHydration||0!==t.length||r.initialized||!(r.matches.length>0))return null;e=r.matches}}let s=e,u=null==(a=r)?void 0:a.errors;if(null!=u){let e=s.findIndex(e=>e.route.id&&(null==u?void 0:u[e.route.id])!==void 0);e>=0||(0,l.Oi)(!1),s=s.slice(0,Math.min(s.length,e+1))}let c=!1,d=-1;if(r&&n&&n.v7_partialHydration)for(let e=0;e<s.length;e++){let t=s[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(d=e),t.route.id){let{loaderData:e,errors:n}=r,a=t.route.loader&&void 0===e[t.route.id]&&(!n||void 0===n[t.route.id]);if(t.route.lazy||a){c=!0,s=d>=0?s.slice(0,d+1):[s[0]];break}}}return s.reduceRight((e,n,a)=>{var o;let l,h=!1,f=null,p=null;r&&(l=u&&n.route.id?u[n.route.id]:void 0,f=n.route.errorElement||O,c&&(d<0&&0===a?(o="route-fallback",G[o]||(G[o]=!0),h=!0,p=null):d===a&&(h=!0,p=n.route.hydrateFallbackElement||null)));let m=t.concat(s.slice(0,a+1)),v=()=>{let t;return t=l?f:h?p:n.route.Component?i.createElement(n.route.Component,null):n.route.element?n.route.element:e,i.createElement(_,{match:n,routeContext:{outlet:e,matches:m,isDataRoute:null!=r},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||0===a)?i.createElement(A,{location:r.location,revalidation:r.revalidation,component:f,error:l,children:v(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):v()},null)}var T=((n=T||{}).UseBlocker="useBlocker",n.UseRevalidator="useRevalidator",n.UseNavigateStable="useNavigate",n),j=((a=j||{}).UseBlocker="useBlocker",a.UseLoaderData="useLoaderData",a.UseActionData="useActionData",a.UseRouteError="useRouteError",a.UseNavigation="useNavigation",a.UseRouteLoaderData="useRouteLoaderData",a.UseMatches="useMatches",a.UseRevalidator="useRevalidator",a.UseNavigateStable="useNavigate",a.UseRouteId="useRouteId",a);function M(e){let t=i.useContext(u);return t||(0,l.Oi)(!1),t}function F(e){let t=i.useContext(c);return t||(0,l.Oi)(!1),t}function N(e){let t,r=((t=i.useContext(p))||(0,l.Oi)(!1),t),n=r.matches[r.matches.length-1];return n.route.id||(0,l.Oi)(!1),n.route.id}function B(){return N(j.UseRouteId)}function I(){return F(j.UseNavigation).navigation}function z(){let e=M(T.UseRevalidator),t=F(j.UseRevalidator);return i.useMemo(()=>({revalidate:e.router.revalidate,state:t.revalidation}),[e.router.revalidate,t.revalidation])}function H(){let{matches:e,loaderData:t}=F(j.UseMatches);return i.useMemo(()=>e.map(e=>(0,l.ro)(e,t)),[e,t])}function V(){let e=F(j.UseLoaderData),t=N(j.UseLoaderData);return e.errors&&null!=e.errors[t]?void console.error("You cannot `useLoaderData` in an errorElement (routeId: "+t+")"):e.loaderData[t]}function $(e){return F(j.UseRouteLoaderData).loaderData[e]}function W(){let e=F(j.UseActionData),t=N(j.UseLoaderData);return e.actionData?e.actionData[t]:void 0}function K(){var e;let t=i.useContext(m),r=F(j.UseRouteError),n=N(j.UseRouteError);return void 0!==t?t:null==(e=r.errors)?void 0:e[n]}function q(){let e=i.useContext(d);return null==e?void 0:e._data}function J(){let e=i.useContext(d);return null==e?void 0:e._error}let Y=0;function X(e){let{router:t,basename:r}=M(T.UseBlocker),n=F(j.UseBlocker),[a,o]=i.useState(""),u=i.useCallback(t=>{if("function"!=typeof e)return!!e;if("/"===r)return e(t);let{currentLocation:n,nextLocation:a,historyAction:o}=t;return e({currentLocation:s({},n,{pathname:(0,l.pb)(n.pathname,r)||n.pathname}),nextLocation:s({},a,{pathname:(0,l.pb)(a.pathname,r)||a.pathname}),historyAction:o})},[r,e]);return i.useEffect(()=>{let e=String(++Y);return o(e),()=>t.deleteBlocker(e)},[t]),i.useEffect(()=>{""!==a&&t.getBlocker(a,u)},[t,a,u]),a&&n.blockers.has(a)?n.blockers.get(a):l.G3}let G={};function Q(e,t){(null==e||e.v7_startTransition,(null==e?void 0:e.v7_relativeSplatPath)!==void 0||t&&void 0!==t.v7_relativeSplatPath,t)&&(t.v7_fetcherPersist,t.v7_normalizeFormMethod,t.v7_partialHydration,t.v7_skipActionErrorRevalidation)}let Z=i.startTransition;function ee(e){let{basename:t,children:r,initialEntries:n,initialIndex:a,future:o}=e,s=i.useRef();null==s.current&&(s.current=(0,l.sC)({initialEntries:n,initialIndex:a,v5Compat:!0}));let u=s.current,[c,d]=i.useState({action:u.action,location:u.location}),{v7_startTransition:h}=o||{},f=i.useCallback(e=>{h&&Z?Z(()=>d(e)):d(e)},[d,h]);return i.useLayoutEffect(()=>u.listen(f),[u,f]),i.useEffect(()=>Q(o),[o]),i.createElement(ea,{basename:t,children:r,location:c.location,navigationType:c.action,navigator:u,future:o})}function et(e){let{to:t,replace:r,state:n,relative:a}=e;y()||(0,l.Oi)(!1);let{future:o,static:s}=i.useContext(h),{matches:u}=i.useContext(p),{pathname:c}=g(),d=S(),f=JSON.stringify((0,l.Gh)(t,(0,l.yD)(u,o.v7_relativeSplatPath),c,"path"===a));return i.useEffect(()=>d(JSON.parse(f),{replace:r,state:n,relative:a}),[d,f,a,r,n]),null}function er(e){return C(e.context)}function en(e){(0,l.Oi)(!1)}function ea(e){let{basename:t="/",children:r=null,location:n,navigationType:a=l.rc.Pop,navigator:o,static:u=!1,future:c}=e;y()&&(0,l.Oi)(!1);let d=t.replace(/^\/*/,"/"),p=i.useMemo(()=>({basename:d,navigator:o,static:u,future:s({v7_relativeSplatPath:!1},c)}),[d,c,o,u]);"string"==typeof n&&(n=(0,l.Rr)(n));let{pathname:m="/",search:v="",hash:g="",state:b=null,key:w="default"}=n,E=i.useMemo(()=>{let e=(0,l.pb)(m,d);return null==e?null:{location:{pathname:e,search:v,hash:g,state:b,key:w},navigationType:a}},[d,m,v,g,b,w,a]);return null==E?null:i.createElement(h.Provider,{value:p},i.createElement(f.Provider,{children:r,value:E}))}function eo(e){let{children:t,location:r}=e;return k(ed(t),r)}function ei(e){let{children:t,errorElement:r,resolve:n}=e;return i.createElement(eu,{resolve:n,errorElement:r},i.createElement(ec,null,t))}var el=((o=el||{})[o.pending=0]="pending",o[o.success=1]="success",o[o.error=2]="error",o);let es=new Promise(()=>{});class eu extends i.Component{constructor(e){super(e),this.state={error:null}}static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e,t){console.error("<Await> caught the following error during render",e,t)}render(){let{children:e,errorElement:t,resolve:r}=this.props,n=null,a=el.pending;if(r instanceof Promise)if(this.state.error){a=el.error;let e=this.state.error;Object.defineProperty(n=Promise.reject().catch(()=>{}),"_tracked",{get:()=>!0}),Object.defineProperty(n,"_error",{get:()=>e})}else r._tracked?a="_error"in(n=r)?el.error:"_data"in n?el.success:el.pending:(a=el.pending,Object.defineProperty(r,"_tracked",{get:()=>!0}),n=r.then(e=>Object.defineProperty(r,"_data",{get:()=>e}),e=>Object.defineProperty(r,"_error",{get:()=>e})));else a=el.success,Object.defineProperty(n=Promise.resolve(),"_tracked",{get:()=>!0}),Object.defineProperty(n,"_data",{get:()=>r});if(a===el.error&&n._error instanceof l.tH)throw es;if(a===el.error&&!t)throw n._error;if(a===el.error)return i.createElement(d.Provider,{value:n,children:t});if(a===el.success)return i.createElement(d.Provider,{value:n,children:e});throw n}}function ec(e){let{children:t}=e,r=q(),n="function"==typeof t?t(r):t;return i.createElement(i.Fragment,null,n)}function ed(e,t){void 0===t&&(t=[]);let r=[];return i.Children.forEach(e,(e,n)=>{if(!i.isValidElement(e))return;let a=[...t,n];if(e.type===i.Fragment)return void r.push.apply(r,ed(e.props.children,a));e.type!==en&&(0,l.Oi)(!1),e.props.index&&e.props.children&&(0,l.Oi)(!1);let o={id:e.props.id||a.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(o.children=ed(e.props.children,a)),r.push(o)}),r}function eh(e){return U(e)}function ef(e){let t={hasErrorBoundary:null!=e.ErrorBoundary||null!=e.errorElement};return e.Component&&Object.assign(t,{element:i.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:i.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:i.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}function ep(e,t){return(0,l.aE)({basename:null==t?void 0:t.basename,future:s({},null==t?void 0:t.future,{v7_prependBasename:!0}),history:(0,l.sC)({initialEntries:null==t?void 0:t.initialEntries,initialIndex:null==t?void 0:t.initialIndex}),hydrationData:null==t?void 0:t.hydrationData,routes:e,mapRouteProperties:ef,dataStrategy:null==t?void 0:t.dataStrategy,patchRoutesOnNavigation:null==t?void 0:t.patchRoutesOnNavigation}).initialize()}}}]);
|
package/lib/cjs/bootstrap.js
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
// Copyright The Perses Authors
|
|
2
|
-
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
3
|
-
// you may not use this file except in compliance with the License.
|
|
4
|
-
// You may obtain a copy of the License at
|
|
5
|
-
//
|
|
6
|
-
// http://www.apache.org/licenses/LICENSE-2.0
|
|
7
|
-
//
|
|
8
|
-
// Unless required by applicable law or agreed to in writing, software
|
|
9
|
-
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
10
|
-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
11
|
-
// See the License for the specific language governing permissions and
|
|
12
|
-
// limitations under the License.
|
|
13
|
-
"use strict";
|
|
14
|
-
Object.defineProperty(exports, "__esModule", {
|
|
15
|
-
value: true
|
|
16
|
-
});
|
|
17
|
-
const _jsxruntime = require("react/jsx-runtime");
|
|
18
|
-
const _react = /*#__PURE__*/ _interop_require_default(require("react"));
|
|
19
|
-
const _client = /*#__PURE__*/ _interop_require_default(require("react-dom/client"));
|
|
20
|
-
function _interop_require_default(obj) {
|
|
21
|
-
return obj && obj.__esModule ? obj : {
|
|
22
|
-
default: obj
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
const root = _client.default.createRoot(document.getElementById('root'));
|
|
26
|
-
root.render(/*#__PURE__*/ (0, _jsxruntime.jsx)(_react.default.StrictMode, {}));
|