@perses-dev/prometheus-plugin 0.56.0 → 0.57.0-rc.1

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.
Files changed (316) hide show
  1. package/__mf/js/Prometheus.3cac2d10.js +6 -0
  2. package/__mf/js/async/1233.0ab88b51.js +1 -0
  3. package/__mf/js/async/1324.ce01eced.js +1 -0
  4. package/__mf/js/async/1432.0c3e4ed0.js +1 -0
  5. package/__mf/js/async/1605.dc180cb8.js +110 -0
  6. package/__mf/js/async/1616.7587ce79.js +1 -0
  7. package/__mf/js/async/1728.46efbfb8.js +1 -0
  8. package/__mf/js/async/1969.372d36b8.js +1 -0
  9. package/__mf/js/async/2043.d0fbb886.js +2 -0
  10. package/__mf/js/async/2186.e58838a5.js +38 -0
  11. package/__mf/js/async/2506.1e336b3b.js +1 -0
  12. package/__mf/js/async/3184.6b4ad42e.js +1 -0
  13. package/__mf/js/async/3499.bef2e2e5.js +1 -0
  14. package/__mf/js/async/3652.fc1e5f95.js +7 -0
  15. package/__mf/js/async/392.7cda691a.js +2 -0
  16. package/__mf/js/async/3963.5fef6ffb.js +1 -0
  17. package/__mf/js/async/3996.69a9c1dc.js +1 -0
  18. package/__mf/js/async/{1964.1d168a86.js → 4121.828d661d.js} +2 -2
  19. package/__mf/js/async/425.1ec8867f.js +1 -0
  20. package/__mf/js/async/4626.173e602a.js +1 -0
  21. package/__mf/js/async/4657.e3d53a21.js +2 -0
  22. package/__mf/js/async/4987.c12b89cb.js +1 -0
  23. package/__mf/js/async/{8930.700a5439.js → 5002.e4f54e8e.js} +1 -1
  24. package/__mf/js/async/5071.e1c33fa7.js +1 -0
  25. package/__mf/js/async/529.2303b01b.js +1 -0
  26. package/__mf/js/async/54.f6f480ef.js +22 -0
  27. package/__mf/js/async/5440.8ced5513.js +2 -0
  28. package/__mf/js/async/{6377.c40920f2.js.LICENSE.txt → 5440.8ced5513.js.LICENSE.txt} +3 -3
  29. package/__mf/js/async/{5214.0fca84ed.js → 5587.4d72fc35.js} +1 -1
  30. package/__mf/js/async/5763.4ba478ff.js +1 -0
  31. package/__mf/js/async/5922.d1619ac1.js +1 -0
  32. package/__mf/js/async/6274.478a68f8.js +2 -0
  33. package/__mf/js/async/6283.181cb622.js +2 -0
  34. package/__mf/js/async/6969.b959b6f8.js +1 -0
  35. package/__mf/js/async/{4062.06f48b93.js → 7177.205c9aaf.js} +1 -1
  36. package/__mf/js/async/7192.d835931b.js +1 -0
  37. package/__mf/js/async/7894.9c5245d7.js +1 -0
  38. package/__mf/js/async/7968.6ac0ce96.js +1 -0
  39. package/__mf/js/async/7978.9532d5b8.js +1 -0
  40. package/__mf/js/async/8356.789e1dfb.js +1 -0
  41. package/__mf/js/async/8470.9b14a625.js +2 -0
  42. package/__mf/js/async/873.448eab23.js +1 -0
  43. package/__mf/js/async/8888.59eb50a2.js +1 -0
  44. package/__mf/js/async/9010.15208552.js +2 -0
  45. package/__mf/js/async/9020.662dc353.js +1 -0
  46. package/__mf/js/async/9184.43a8d927.js +1 -0
  47. package/__mf/js/async/9235.36c3cd8c.js +1 -0
  48. package/__mf/js/async/9351.715f25c3.js +1 -0
  49. package/__mf/js/async/941.53b13124.js +2 -0
  50. package/__mf/js/async/9518.38e38a33.js +1 -0
  51. package/__mf/js/async/9588.9081c7de.js +1 -0
  52. package/__mf/js/async/9605.a92ec9c1.js +1 -0
  53. package/__mf/js/async/9836.00da6086.js +1 -0
  54. package/__mf/js/async/__federation_expose_PrometheusDatasource.caac7bfc.js +1 -0
  55. package/__mf/js/async/__federation_expose_PrometheusExplorer.22434cd0.js +1 -0
  56. package/__mf/js/async/__federation_expose_PrometheusLabelNamesVariable.087a9360.js +1 -0
  57. package/__mf/js/async/__federation_expose_PrometheusLabelValuesVariable.f9135d9a.js +1 -0
  58. package/__mf/js/async/__federation_expose_PrometheusPromQLVariable.d3f9f4b7.js +1 -0
  59. package/__mf/js/async/__federation_expose_PrometheusTimeSeriesQuery.95a9abcc.js +1 -0
  60. package/__mf/js/main.8eeb4292.js +6 -0
  61. package/lib/bootstrap.js +2 -2
  62. package/lib/bootstrap.js.map +1 -1
  63. package/lib/cjs/bootstrap.js +1 -1
  64. package/lib/cjs/components/PromQLEditor.js +5 -8
  65. package/lib/cjs/components/TreeNode.js +1 -1
  66. package/lib/cjs/components/index.js +1 -1
  67. package/lib/cjs/components/promql/ast.js +11 -11
  68. package/lib/cjs/components/promql/format.js +4 -4
  69. package/lib/cjs/components/promql/functionSignatures.js +1 -1
  70. package/lib/cjs/components/promql/serialize.js +1 -1
  71. package/lib/cjs/components/promql/utils.js +6 -6
  72. package/lib/cjs/components/query.js +4 -4
  73. package/lib/cjs/env.d.js +1 -1
  74. package/lib/cjs/explore/PrometheusExplorer.js +11 -7
  75. package/lib/cjs/explore/PrometheusMetricsFinder/PrometheusMetricsFinder.js +5 -5
  76. package/lib/cjs/explore/PrometheusMetricsFinder/display/MetricChip.js +1 -1
  77. package/lib/cjs/explore/PrometheusMetricsFinder/display/list/MetricList.js +4 -4
  78. package/lib/cjs/explore/PrometheusMetricsFinder/filter/FilterInputs.js +5 -5
  79. package/lib/cjs/explore/PrometheusMetricsFinder/filter/FinderFilters.js +1 -1
  80. package/lib/cjs/explore/PrometheusMetricsFinder/index.js +1 -1
  81. package/lib/cjs/explore/PrometheusMetricsFinder/overview/MetricOverview.js +4 -4
  82. package/lib/cjs/explore/PrometheusMetricsFinder/overview/tabs/JobTab.js +5 -5
  83. package/lib/cjs/explore/PrometheusMetricsFinder/overview/tabs/OverviewTab.js +5 -5
  84. package/lib/cjs/explore/PrometheusMetricsFinder/overview/tabs/SimilarTab.js +1 -1
  85. package/lib/cjs/explore/PrometheusMetricsFinder/types.js +1 -1
  86. package/lib/cjs/explore/PrometheusMetricsFinder/utils.js +6 -6
  87. package/lib/cjs/explore/index.js +12 -0
  88. package/lib/cjs/getPluginModule.js +12 -0
  89. package/lib/cjs/index-federation.js +12 -12
  90. package/lib/cjs/index.js +12 -0
  91. package/lib/cjs/model/api-types.js +1 -1
  92. package/lib/cjs/model/index.js +1 -1
  93. package/lib/cjs/model/parse-sample-values.js +4 -4
  94. package/lib/cjs/model/prometheus-client.js +30 -20
  95. package/lib/cjs/model/prometheus-selectors.js +6 -6
  96. package/lib/cjs/model/time.js +5 -5
  97. package/lib/cjs/plugins/MatcherEditor.js +1 -1
  98. package/lib/cjs/plugins/PrometheusDatasourceEditor.js +176 -3
  99. package/lib/cjs/plugins/PrometheusLabelNamesVariable.js +12 -0
  100. package/lib/cjs/plugins/PrometheusLabelValuesVariable.js +12 -0
  101. package/lib/cjs/plugins/PrometheusPromQLVariable.js +12 -0
  102. package/lib/cjs/plugins/index.js +12 -0
  103. package/lib/cjs/plugins/prometheus-datasource.js +18 -10
  104. package/lib/cjs/plugins/prometheus-time-series-query/PrometheusTimeSeriesQuery.js +1 -1
  105. package/lib/cjs/plugins/prometheus-time-series-query/PrometheusTimeSeriesQueryEditor.js +37 -2
  106. package/lib/cjs/plugins/prometheus-time-series-query/get-time-series-data.js +1 -1
  107. package/lib/cjs/plugins/prometheus-time-series-query/index.js +1 -1
  108. package/lib/cjs/plugins/prometheus-time-series-query/query-editor-model.js +5 -5
  109. package/lib/cjs/plugins/prometheus-time-series-query/replace-prom-builtin-variables.js +1 -1
  110. package/lib/cjs/plugins/prometheus-time-series-query/time-series-query-model.js +1 -1
  111. package/lib/cjs/plugins/prometheus-variables.js +53 -34
  112. package/lib/cjs/plugins/test/setup-tests.js +1 -1
  113. package/lib/cjs/plugins/types.js +1 -1
  114. package/lib/cjs/plugins/variable.js +1 -1
  115. package/lib/cjs/setup-tests.js +1 -1
  116. package/lib/cjs/utils/index.js +1 -1
  117. package/lib/cjs/utils/utils.js +5 -5
  118. package/lib/components/PromQLEditor.d.ts +5 -1
  119. package/lib/components/PromQLEditor.d.ts.map +1 -1
  120. package/lib/components/PromQLEditor.js +6 -9
  121. package/lib/components/PromQLEditor.js.map +1 -1
  122. package/lib/components/TreeNode.js +2 -2
  123. package/lib/components/TreeNode.js.map +1 -1
  124. package/lib/components/index.js +1 -1
  125. package/lib/components/index.js.map +1 -1
  126. package/lib/components/promql/ast.js +1 -1
  127. package/lib/components/promql/ast.js.map +1 -1
  128. package/lib/components/promql/format.js +2 -2
  129. package/lib/components/promql/format.js.map +1 -1
  130. package/lib/components/promql/functionSignatures.js +1 -1
  131. package/lib/components/promql/functionSignatures.js.map +1 -1
  132. package/lib/components/promql/serialize.js +1 -1
  133. package/lib/components/promql/serialize.js.map +1 -1
  134. package/lib/components/promql/utils.js +1 -1
  135. package/lib/components/promql/utils.js.map +1 -1
  136. package/lib/components/query.js +1 -1
  137. package/lib/components/query.js.map +1 -1
  138. package/lib/env.d.js +1 -1
  139. package/lib/env.d.js.map +1 -1
  140. package/lib/explore/PrometheusExplorer.d.ts.map +1 -1
  141. package/lib/explore/PrometheusExplorer.js +11 -7
  142. package/lib/explore/PrometheusExplorer.js.map +1 -1
  143. package/lib/explore/PrometheusMetricsFinder/PrometheusMetricsFinder.js +2 -2
  144. package/lib/explore/PrometheusMetricsFinder/PrometheusMetricsFinder.js.map +1 -1
  145. package/lib/explore/PrometheusMetricsFinder/display/MetricChip.js +2 -2
  146. package/lib/explore/PrometheusMetricsFinder/display/MetricChip.js.map +1 -1
  147. package/lib/explore/PrometheusMetricsFinder/display/list/MetricList.js +2 -2
  148. package/lib/explore/PrometheusMetricsFinder/display/list/MetricList.js.map +1 -1
  149. package/lib/explore/PrometheusMetricsFinder/filter/FilterInputs.js +2 -2
  150. package/lib/explore/PrometheusMetricsFinder/filter/FilterInputs.js.map +1 -1
  151. package/lib/explore/PrometheusMetricsFinder/filter/FinderFilters.js +2 -2
  152. package/lib/explore/PrometheusMetricsFinder/filter/FinderFilters.js.map +1 -1
  153. package/lib/explore/PrometheusMetricsFinder/index.js +1 -1
  154. package/lib/explore/PrometheusMetricsFinder/index.js.map +1 -1
  155. package/lib/explore/PrometheusMetricsFinder/overview/MetricOverview.js +2 -2
  156. package/lib/explore/PrometheusMetricsFinder/overview/MetricOverview.js.map +1 -1
  157. package/lib/explore/PrometheusMetricsFinder/overview/tabs/JobTab.js +1 -1
  158. package/lib/explore/PrometheusMetricsFinder/overview/tabs/JobTab.js.map +1 -1
  159. package/lib/explore/PrometheusMetricsFinder/overview/tabs/OverviewTab.js +1 -1
  160. package/lib/explore/PrometheusMetricsFinder/overview/tabs/OverviewTab.js.map +1 -1
  161. package/lib/explore/PrometheusMetricsFinder/overview/tabs/SimilarTab.js +1 -1
  162. package/lib/explore/PrometheusMetricsFinder/overview/tabs/SimilarTab.js.map +1 -1
  163. package/lib/explore/PrometheusMetricsFinder/types.js +1 -1
  164. package/lib/explore/PrometheusMetricsFinder/types.js.map +1 -1
  165. package/lib/explore/PrometheusMetricsFinder/utils.js +1 -1
  166. package/lib/explore/PrometheusMetricsFinder/utils.js.map +1 -1
  167. package/lib/explore/index.d.ts.map +1 -1
  168. package/lib/explore/index.js +12 -0
  169. package/lib/explore/index.js.map +1 -1
  170. package/lib/getPluginModule.d.ts.map +1 -1
  171. package/lib/getPluginModule.js +12 -0
  172. package/lib/getPluginModule.js.map +1 -1
  173. package/lib/index-federation.js +1 -1
  174. package/lib/index-federation.js.map +1 -1
  175. package/lib/index.d.ts.map +1 -1
  176. package/lib/index.js +12 -0
  177. package/lib/index.js.map +1 -1
  178. package/lib/model/api-types.js +1 -1
  179. package/lib/model/api-types.js.map +1 -1
  180. package/lib/model/index.js +1 -1
  181. package/lib/model/index.js.map +1 -1
  182. package/lib/model/parse-sample-values.js +1 -1
  183. package/lib/model/parse-sample-values.js.map +1 -1
  184. package/lib/model/prometheus-client.d.ts +1 -0
  185. package/lib/model/prometheus-client.d.ts.map +1 -1
  186. package/lib/model/prometheus-client.js +20 -10
  187. package/lib/model/prometheus-client.js.map +1 -1
  188. package/lib/model/prometheus-selectors.js +1 -1
  189. package/lib/model/prometheus-selectors.js.map +1 -1
  190. package/lib/model/time.js +1 -1
  191. package/lib/model/time.js.map +1 -1
  192. package/lib/plugins/MatcherEditor.js +2 -2
  193. package/lib/plugins/MatcherEditor.js.map +1 -1
  194. package/lib/plugins/PrometheusDatasourceEditor.d.ts.map +1 -1
  195. package/lib/plugins/PrometheusDatasourceEditor.js +136 -4
  196. package/lib/plugins/PrometheusDatasourceEditor.js.map +1 -1
  197. package/lib/plugins/PrometheusLabelNamesVariable.d.ts.map +1 -1
  198. package/lib/plugins/PrometheusLabelNamesVariable.js +12 -0
  199. package/lib/plugins/PrometheusLabelNamesVariable.js.map +1 -1
  200. package/lib/plugins/PrometheusLabelValuesVariable.d.ts.map +1 -1
  201. package/lib/plugins/PrometheusLabelValuesVariable.js +12 -0
  202. package/lib/plugins/PrometheusLabelValuesVariable.js.map +1 -1
  203. package/lib/plugins/PrometheusPromQLVariable.d.ts.map +1 -1
  204. package/lib/plugins/PrometheusPromQLVariable.js +12 -0
  205. package/lib/plugins/PrometheusPromQLVariable.js.map +1 -1
  206. package/lib/plugins/index.d.ts.map +1 -1
  207. package/lib/plugins/index.js +12 -0
  208. package/lib/plugins/index.js.map +1 -1
  209. package/lib/plugins/prometheus-datasource.js +18 -10
  210. package/lib/plugins/prometheus-datasource.js.map +1 -1
  211. package/lib/plugins/prometheus-time-series-query/PrometheusTimeSeriesQuery.js +1 -1
  212. package/lib/plugins/prometheus-time-series-query/PrometheusTimeSeriesQuery.js.map +1 -1
  213. package/lib/plugins/prometheus-time-series-query/PrometheusTimeSeriesQueryEditor.d.ts.map +1 -1
  214. package/lib/plugins/prometheus-time-series-query/PrometheusTimeSeriesQueryEditor.js +40 -5
  215. package/lib/plugins/prometheus-time-series-query/PrometheusTimeSeriesQueryEditor.js.map +1 -1
  216. package/lib/plugins/prometheus-time-series-query/get-time-series-data.d.ts.map +1 -1
  217. package/lib/plugins/prometheus-time-series-query/get-time-series-data.js +1 -1
  218. package/lib/plugins/prometheus-time-series-query/get-time-series-data.js.map +1 -1
  219. package/lib/plugins/prometheus-time-series-query/index.js +1 -1
  220. package/lib/plugins/prometheus-time-series-query/index.js.map +1 -1
  221. package/lib/plugins/prometheus-time-series-query/query-editor-model.js +1 -1
  222. package/lib/plugins/prometheus-time-series-query/query-editor-model.js.map +1 -1
  223. package/lib/plugins/prometheus-time-series-query/replace-prom-builtin-variables.js +1 -1
  224. package/lib/plugins/prometheus-time-series-query/replace-prom-builtin-variables.js.map +1 -1
  225. package/lib/plugins/prometheus-time-series-query/time-series-query-model.js +1 -1
  226. package/lib/plugins/prometheus-time-series-query/time-series-query-model.js.map +1 -1
  227. package/lib/plugins/prometheus-variables.d.ts.map +1 -1
  228. package/lib/plugins/prometheus-variables.js +48 -29
  229. package/lib/plugins/prometheus-variables.js.map +1 -1
  230. package/lib/plugins/test/setup-tests.js +1 -1
  231. package/lib/plugins/test/setup-tests.js.map +1 -1
  232. package/lib/plugins/types.d.ts +1 -0
  233. package/lib/plugins/types.d.ts.map +1 -1
  234. package/lib/plugins/types.js +1 -1
  235. package/lib/plugins/types.js.map +1 -1
  236. package/lib/plugins/variable.js +1 -1
  237. package/lib/plugins/variable.js.map +1 -1
  238. package/lib/setup-tests.js +1 -1
  239. package/lib/setup-tests.js.map +1 -1
  240. package/lib/utils/index.js +1 -1
  241. package/lib/utils/index.js.map +1 -1
  242. package/lib/utils/utils.js +1 -1
  243. package/lib/utils/utils.js.map +1 -1
  244. package/mf-manifest.json +270 -255
  245. package/mf-stats.json +276 -259
  246. package/package.json +7 -7
  247. package/__mf/js/Prometheus.4d0d5812.js +0 -5
  248. package/__mf/js/async/1339.194207db.js +0 -1
  249. package/__mf/js/async/1441.c735f7dd.js +0 -1
  250. package/__mf/js/async/1576.8eac7ce9.js +0 -1
  251. package/__mf/js/async/212.5fcca998.js +0 -1
  252. package/__mf/js/async/2292.57d8fd0d.js +0 -2
  253. package/__mf/js/async/3224.b63f87bf.js +0 -1
  254. package/__mf/js/async/3507.f1653337.js +0 -101
  255. package/__mf/js/async/3749.3ecd9372.js +0 -1
  256. package/__mf/js/async/3863.7192dfdf.js +0 -2
  257. package/__mf/js/async/3960.3eedafbd.js +0 -2
  258. package/__mf/js/async/3980.0b0d272c.js +0 -2
  259. package/__mf/js/async/4075.dab1b7b8.js +0 -1
  260. package/__mf/js/async/4238.c48b1950.js +0 -1
  261. package/__mf/js/async/4421.1fcb466e.js +0 -1
  262. package/__mf/js/async/4535.f24704ea.js +0 -1
  263. package/__mf/js/async/4557.f3eb9456.js +0 -2
  264. package/__mf/js/async/4576.f42daf99.js +0 -1
  265. package/__mf/js/async/4665.cad36935.js +0 -1
  266. package/__mf/js/async/4676.b7a22f90.js +0 -22
  267. package/__mf/js/async/5257.ce463cb7.js +0 -1
  268. package/__mf/js/async/5409.955ffd51.js +0 -1
  269. package/__mf/js/async/5614.cce8ba96.js +0 -1
  270. package/__mf/js/async/5724.794828e3.js +0 -1
  271. package/__mf/js/async/5774.a3fae698.js +0 -1
  272. package/__mf/js/async/5790.a9b31ca8.js +0 -1
  273. package/__mf/js/async/58.1c9a8daa.js +0 -2
  274. package/__mf/js/async/5981.eb502d27.js +0 -2
  275. package/__mf/js/async/6292.2afe0c6d.js +0 -1
  276. package/__mf/js/async/6341.20eccf91.js +0 -7
  277. package/__mf/js/async/6377.c40920f2.js +0 -2
  278. package/__mf/js/async/6770.7099bb3b.js +0 -1
  279. package/__mf/js/async/684.4495f632.js +0 -1
  280. package/__mf/js/async/694.8462a746.js +0 -1
  281. package/__mf/js/async/7272.6fa2f127.js +0 -1
  282. package/__mf/js/async/7376.2e948f2b.js +0 -1
  283. package/__mf/js/async/738.a1ffff79.js +0 -1
  284. package/__mf/js/async/7740.a8777825.js +0 -1
  285. package/__mf/js/async/8045.7f554a45.js +0 -10
  286. package/__mf/js/async/8164.bb3d3363.js +0 -1
  287. package/__mf/js/async/8216.e689c178.js +0 -1
  288. package/__mf/js/async/8488.cbbe542b.js +0 -1
  289. package/__mf/js/async/8587.40df6f5c.js +0 -1
  290. package/__mf/js/async/8706.89677575.js +0 -1
  291. package/__mf/js/async/9010.bdb2ef97.js +0 -1
  292. package/__mf/js/async/9173.915b80af.js +0 -2
  293. package/__mf/js/async/9550.642ce5ad.js +0 -38
  294. package/__mf/js/async/9817.70eae424.js +0 -1
  295. package/__mf/js/async/__federation_expose_PrometheusDatasource.45ee94e2.js +0 -1
  296. package/__mf/js/async/__federation_expose_PrometheusExplorer.b8e555e1.js +0 -1
  297. package/__mf/js/async/__federation_expose_PrometheusLabelNamesVariable.00dfb1dd.js +0 -1
  298. package/__mf/js/async/__federation_expose_PrometheusLabelValuesVariable.956ef2d0.js +0 -1
  299. package/__mf/js/async/__federation_expose_PrometheusPromQLVariable.59f2d170.js +0 -1
  300. package/__mf/js/async/__federation_expose_PrometheusTimeSeriesQuery.d7143352.js +0 -1
  301. package/__mf/js/main.afc2ee60.js +0 -5
  302. /package/__mf/css/async/{1339.d3010b86.css → 1233.d3010b86.css} +0 -0
  303. /package/__mf/css/async/{1576.d3010b86.css → 1324.d3010b86.css} +0 -0
  304. /package/__mf/css/async/{4576.d3010b86.css → 9518.d3010b86.css} +0 -0
  305. /package/__mf/js/async/{8045.7f554a45.js.LICENSE.txt → 1605.dc180cb8.js.LICENSE.txt} +0 -0
  306. /package/__mf/js/async/{2292.57d8fd0d.js.LICENSE.txt → 2043.d0fbb886.js.LICENSE.txt} +0 -0
  307. /package/__mf/js/async/{6341.20eccf91.js.LICENSE.txt → 3652.fc1e5f95.js.LICENSE.txt} +0 -0
  308. /package/__mf/js/async/{5981.eb502d27.js.LICENSE.txt → 392.7cda691a.js.LICENSE.txt} +0 -0
  309. /package/__mf/js/async/{1964.1d168a86.js.LICENSE.txt → 4121.828d661d.js.LICENSE.txt} +0 -0
  310. /package/__mf/js/async/{58.1c9a8daa.js.LICENSE.txt → 4657.e3d53a21.js.LICENSE.txt} +0 -0
  311. /package/__mf/js/async/{4676.b7a22f90.js.LICENSE.txt → 54.f6f480ef.js.LICENSE.txt} +0 -0
  312. /package/__mf/js/async/{3960.3eedafbd.js.LICENSE.txt → 6274.478a68f8.js.LICENSE.txt} +0 -0
  313. /package/__mf/js/async/{3980.0b0d272c.js.LICENSE.txt → 6283.181cb622.js.LICENSE.txt} +0 -0
  314. /package/__mf/js/async/{9173.915b80af.js.LICENSE.txt → 8470.9b14a625.js.LICENSE.txt} +0 -0
  315. /package/__mf/js/async/{4557.f3eb9456.js.LICENSE.txt → 9010.15208552.js.LICENSE.txt} +0 -0
  316. /package/__mf/js/async/{3863.7192dfdf.js.LICENSE.txt → 941.53b13124.js.LICENSE.txt} +0 -0
@@ -0,0 +1,2 @@
1
+ /*! For license information please see 5440.8ced5513.js.LICENSE.txt */
2
+ "use strict";(self.chunk_Prometheus=self.chunk_Prometheus||[]).push([["5440"],{53299:function(e,t,r){r.r(t),r.d(t,{useFetchers:()=>rT,unstable_HistoryRouter:()=>rv,useLoaderData:()=>tL,ScrollRestoration:()=>rS,Route:()=>tW,MemoryRouter:()=>tz,useMatches:()=>tD,redirect:()=>ee,useOutletContext:()=>tu,createRoutesFromElements:()=>tG,useLinkClickHandler:()=>rC,useRouteError:()=>tA,generatePath:()=>M,replace:()=>er,useHref:()=>tt,useParams:()=>td,UNSAFE_ViewTransitionContext:()=>ro,useRoutes:()=>tf,useSubmit:()=>rk,UNSAFE_NavigationContext:()=>e6,Navigate:()=>tI,UNSAFE_ErrorResponseImpl:()=>en,UNSAFE_FetchersContext:()=>ri,useAsyncError:()=>tU,createRoutesFromChildren:()=>tG,unstable_usePrompt:()=>rF,useFetcher:()=>rA,useBlocker:()=>tM,createHashRouter:()=>rn,UNSAFE_useRouteId:()=>tx,useMatch:()=>to,useNavigation:()=>tC,HashRouter:()=>rm,useFormAction:()=>r_,useResolvedPath:()=>th,defer:()=>Z,Router:()=>t$,Routes:()=>tV,useActionData:()=>t_,useRouteLoaderData:()=>tk,Await:()=>tJ,matchPath:()=>O,UNSAFE_DataRouterContext:()=>e2,BrowserRouter:()=>rp,NavigationType:()=>c,Form:()=>rE,UNSAFE_RouteContext:()=>e8,createSearchParams:()=>t5,RouterProvider:()=>rh,UNSAFE_LocationContext:()=>e9,parsePath:()=>P,Outlet:()=>tH,createMemoryRouter:()=>t0,UNSAFE_useScrollRestoration:()=>rM,useNavigate:()=>tl,matchRoutes:()=>_,createPath:()=>C,resolvePath:()=>z,useInRouterContext:()=>tr,useOutlet:()=>tc,useAsyncValue:()=>tT,useViewTransitionState:()=>rN,Link:()=>rb,AbortedDeferredError:()=>G,renderMatches:()=>tQ,NavLink:()=>rw,UNSAFE_DataRouterStateContext:()=>e5,json:()=>X,useSearchParams:()=>rP,redirectDocument:()=>et,useBeforeUnload:()=>rO,useLocation:()=>tn,createBrowserRouter:()=>rr,isRouteErrorResponse:()=>ea,useNavigationType:()=>ta,useRevalidator:()=>tP});var n,a,o,i,l,s,u,c,d,h,f,p=r(70451),m=r(20231);function v(){return(v=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}(n=c||(c={})).Pop="POP",n.Push="PUSH",n.Replace="REPLACE";let y="popstate";function g(e){let t;void 0===e&&(e={});let{initialEntries:r=["/"],initialIndex:n,v5Compat:a=!1}=e;t=r.map((e,t)=>u(e,"string"==typeof e?null:e.state,0===t?"default":void 0));let o=s(null==n?t.length-1:n),i=c.Pop,l=null;function s(e){return Math.min(Math.max(e,0),t.length-1)}function u(e,r,n){void 0===r&&(r=null);let a=x(t?t[o].pathname:"/",e,r,n);return S("/"===a.pathname.charAt(0),"relative pathnames are not supported in memory history: "+JSON.stringify(e)),a}function d(e){return"string"==typeof e?e:C(e)}return{get index(){return o},get action(){return i},get location(){return t[o]},createHref:d,createURL:e=>new URL(d(e),"http://localhost"),encodeLocation(e){let t="string"==typeof e?P(e):e;return{pathname:t.pathname||"",search:t.search||"",hash:t.hash||""}},push(e,r){i=c.Push;let n=u(e,r);o+=1,t.splice(o,t.length,n),a&&l&&l({action:i,location:n,delta:1})},replace(e,r){i=c.Replace;let n=u(e,r);t[o]=n,a&&l&&l({action:i,location:n,delta:0})},go(e){i=c.Pop;let r=s(o+e),n=t[r];o=r,l&&l({action:i,location:n,delta:e})},listen:e=>(l=e,()=>{l=null})}}function b(e){return void 0===e&&(e={}),D(function(e,t){let{pathname:r,search:n,hash:a}=e.location;return x("",{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:C(t)},null,e)}function w(e){return void 0===e&&(e={}),D(function(e,t){let{pathname:r="/",search:n="",hash:a=""}=P(e.location.hash.substr(1));return r.startsWith("/")||r.startsWith(".")||(r="/"+r),x("",{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:C(t))},function(e,t){S("/"===e.pathname.charAt(0),"relative pathnames are not supported in hash history.push("+JSON.stringify(t)+")")},e)}function E(e,t){if(!1===e||null==e)throw Error(t)}function S(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw Error(t)}catch(e){}}}function R(e,t){return{usr:e.state,key:e.key,idx:t}}function x(e,t,r,n){return void 0===r&&(r=null),v({pathname:"string"==typeof e?e:e.pathname,search:"",hash:""},"string"==typeof t?P(t):t,{state:r,key:t&&t.key||n||Math.random().toString(36).substr(2,8)})}function C(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 P(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 D(e,t,r,n){void 0===n&&(n={});let{window:a=document.defaultView,v5Compat:o=!1}=n,i=a.history,l=c.Pop,s=null,u=d();function d(){return(i.state||{idx:null}).idx}function h(){l=c.Pop;let e=d(),t=null==e?null:e-u;u=e,s&&s({action:l,location:p.location,delta:t})}function f(e){let t="null"!==a.location.origin?a.location.origin:a.location.href,r="string"==typeof e?e:C(e);return E(t,"No window.location.(origin|href) available to create URL for href: "+(r=r.replace(/ $/,"%20"))),new URL(r,t)}null==u&&(u=0,i.replaceState(v({},i.state,{idx:u}),""));let p={get action(){return l},get location(){return e(a,i)},listen(e){if(s)throw Error("A history only accepts one active listener");return a.addEventListener(y,h),s=e,()=>{a.removeEventListener(y,h),s=null}},createHref:e=>t(a,e),createURL:f,encodeLocation(e){let t=f(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){l=c.Push;let n=x(p.location,e,t);r&&r(n,e);let h=R(n,u=d()+1),f=p.createHref(n);try{i.pushState(h,"",f)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;a.location.assign(f)}o&&s&&s({action:l,location:p.location,delta:1})},replace:function(e,t){l=c.Replace;let n=x(p.location,e,t);r&&r(n,e);let a=R(n,u=d()),h=p.createHref(n);i.replaceState(a,"",h),o&&s&&s({action:l,location:p.location,delta:0})},go:e=>i.go(e)};return p}(a=d||(d={})).data="data",a.deferred="deferred",a.redirect="redirect",a.error="error";let L=new Set(["lazy","caseSensitive","path","id","index","children"]);function k(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(E(!0!==e.index||!e.children,"Cannot specify children on an index route"),E(!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=v({},e,t(e),{id:i});return n[i]=r,r}{let r=v({},e,t(e),{id:i,children:void 0});return n[i]=r,e.children&&(r.children=k(e.children,t,o,n)),r}})}function _(e,t,r){return void 0===r&&(r="/"),A(e,t,r,!1)}function A(e,t,r,n){let a=N(("string"==typeof t?P(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("/")&&(E(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 h=J([a,d.relativePath]),f=n.concat(d);t.children&&t.children.length>0&&(E(!0!==t.index,'Index routes must not have child routes. Please remove all child routes from route path "'+h+'".'),e(t.children,r,f,h)),(null!=t.path||t.index)&&r.push({path:h,score:(l=h,s=t.index,c=(u=l.split("/")).length,u.some(j)&&(c+=-2),s&&(c+=2),u.filter(e=>!j(e)).reduce((e,t)=>e+(U.test(t)?3:""===t?1:10),c)),routesMeta:f})};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;for(let e=0;null==i&&e<o.length;++e){let t=F(a);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=O({path:l.relativePath,caseSensitive:l.caseSensitive,end:s},u),d=l.route;if(!c&&s&&r&&!n[n.length-1].route.index&&(c=O({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},u)),!c)return null;Object.assign(a,c.params),i.push({params:a,pathname:J([o,c.pathname]),pathnameBase:K(J([o,c.pathnameBase])),route:d}),"/"!==c.pathnameBase&&(o=J([o,c.pathnameBase]))}return i}(o[e],t,n)}return i}function T(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 U=/^:[\w-]+$/,j=e=>"*"===e;function M(e,t){void 0===t&&(t={});let r=e;r.endsWith("*")&&"*"!==r&&!r.endsWith("/*")&&(S(!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 E("?"===r||null!=n,'Missing ":'+e+'" param'),a(n)}return e.replace(/\?$/g,"")}).filter(e=>!!e).join("/")}function O(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),S("*"===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 F(e){try{return e.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(t){return S(!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 N(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 B=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function z(e,t){let r;void 0===t&&(t="/");let{pathname:n,search:a="",hash:o=""}="string"==typeof e?P(e):e;if(n){let e;(e=n,B.test(e))?r=n:(n.includes("//")&&S(!1,"Pathnames cannot have embedded double slashes - normalizing "+n+" -> "+(n=n.replace(/\/\/+/g,"/"))),r=n.startsWith("/")?I(n.substring(1),"/"):I(n,t))}else r=t;return{pathname:r,search:Y(a),hash:q(o)}}function I(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 H(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 W(e){return e.filter((e,t)=>0===t||e.route.path&&e.route.path.length>0)}function $(e,t){let r=W(e);return t?r.map((e,t)=>t===r.length-1?e.pathname:e.pathnameBase):r.map(e=>e.pathnameBase)}function V(e,t,r,n){let a,o;void 0===n&&(n=!1),"string"==typeof e?a=P(e):(E(!(a=v({},e)).pathname||!a.pathname.includes("?"),H("?","pathname","search",a)),E(!a.pathname||!a.pathname.includes("#"),H("#","pathname","hash",a)),E(!a.search||!a.search.includes("#"),H("#","search","hash",a)));let i=""===e||""===a.pathname,l=i?"/":a.pathname;if(null==l)o=r;else{let e=t.length-1;if(!n&&l.startsWith("..")){let t=l.split("/");for(;".."===t[0];)t.shift(),e-=1;a.pathname=t.join("/")}o=e>=0?t[e]:"/"}let s=z(a,o),u=l&&"/"!==l&&l.endsWith("/"),c=(i||"."===l)&&r.endsWith("/");return!s.pathname.endsWith("/")&&(u||c)&&(s.pathname+="/"),s}let J=e=>e.join("/").replace(/\/\/+/g,"/"),K=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Y=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",q=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"",X=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),v({},r,{headers:n}))};class G extends Error{}class Q{constructor(e,t){let r;this.pendingKeysSet=new Set,this.subscribers=new Set,this.deferredKeys=[],E(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 G("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 G)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 E(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 Z=function(e,t){return void 0===t&&(t={}),new Q(e,"number"==typeof t?{status:t}:t)},ee=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,v({},r,{headers:n}))},et=(e,t)=>{let r=ee(e,t);return r.headers.set("X-Remix-Reload-Document","true"),r},er=(e,t)=>{let r=ee(e,t);return r.headers.set("X-Remix-Replace","true"),r};class en{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 ea(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}let eo=["post","put","patch","delete"],ei=new Set(eo),el=new Set(["get",...eo]),es=new Set([301,302,303,307,308]),eu=new Set([307,308]),ec={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ed={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},eh={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},ef=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ep=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),em="remix-router-transitions";function ev(e){let t,r,n,a,o,i,l=e.window?e.window:"undefined"!=typeof window?window:void 0,s=void 0!==l&&void 0!==l.document&&void 0!==l.document.createElement,u=!s;if(E(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=ep;let h={},f=k(e.routes,t,void 0,h),p=e.basename||"/",m=e.dataStrategy||eP,y=e.patchRoutesOnNavigation,g=v({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),b=null,w=new Set,R=null,C=null,P=null,D=null!=e.hydrationData,L=_(f,e.history.location,p),U=!1,j=null;if(null==L&&!y){let t=eB(404,{pathname:e.history.location.pathname}),{matches:r,route:n}=eN(f);L=r,j={[n.id]:t}}if(L&&!e.hydrationData&&to(L,f,e.history.location.pathname).active&&(L=null),L)if(L.some(e=>e.route.lazy))n=!1;else if(L.some(e=>e.route.loader))if(g.v7_partialHydration){let t=e.hydrationData?e.hydrationData.loaderData:null,r=e.hydrationData?e.hydrationData.errors:null;if(r){let e=L.findIndex(e=>void 0!==r[e.route.id]);n=L.slice(0,e+1).every(e=>!eE(e.route,t,r))}else n=L.every(e=>!eE(e.route,t,r))}else n=null!=e.hydrationData;else n=!0;else if(n=!1,L=[],g.v7_partialHydration){let t=to(null,f,e.history.location.pathname);t.active&&t.matches&&(U=!0,L=t.matches)}let M={historyAction:e.history.action,location:e.history.location,matches:L,initialized:n,navigation:ec,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},O=c.Pop,F=!1,B=!1,z=new Map,I=null,H=!1,W=!1,$=[],V=new Set,J=new Map,K=0,Y=-1,q=new Map,X=new Set,G=new Map,Q=new Map,Z=new Set,ee=new Map,et=new Map;function er(e,t){void 0===t&&(t={}),M=v({},M,e);let r=[],n=[];g.v7_fetcherPersist&&M.fetchers.forEach((e,t)=>{"idle"===e.state&&(Z.has(t)?n.push(t):r.push(t))}),Z.forEach(e=>{M.fetchers.has(e)||J.has(e)||n.push(e)}),[...w].forEach(e=>e(M,{deletedFetchers:n,viewTransitionOpts:t.viewTransitionOpts,flushSync:!0===t.flushSync})),g.v7_fetcherPersist?(r.forEach(e=>M.fetchers.delete(e)),n.forEach(e=>e4(e))):n.forEach(e=>Z.delete(e))}function en(t,n,a){var o,i;let l,s,{flushSync:u}=void 0===a?{}:a,d=null!=M.actionData&&null!=M.navigation.formMethod&&eK(M.navigation.formMethod)&&"loading"===M.navigation.state&&(null==(o=t.state)?void 0:o._isRedirect)!==!0;l=n.actionData?Object.keys(n.actionData).length>0?n.actionData:null:d?M.actionData:null;let h=n.loaderData?eM(M.loaderData,n.loaderData,n.matches||[],n.errors):M.loaderData,p=M.blockers;p.size>0&&(p=new Map(p)).forEach((e,t)=>p.set(t,eh));let m=!0===F||null!=M.navigation.formMethod&&eK(M.navigation.formMethod)&&(null==(i=t.state)?void 0:i._isRedirect)!==!0;if(r&&(f=r,r=void 0),H||O===c.Pop||(O===c.Push?e.history.push(t,t.state):O===c.Replace&&e.history.replace(t,t.state)),O===c.Pop){let e=z.get(M.location.pathname);e&&e.has(t.pathname)?s={currentLocation:M.location,nextLocation:t}:z.has(t.pathname)&&(s={currentLocation:t,nextLocation:M.location})}else if(B){let e=z.get(M.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),z.set(M.location.pathname,e)),s={currentLocation:M.location,nextLocation:t}}er(v({},n,{actionData:l,loaderData:h,historyAction:O,location:t,initialized:!0,navigation:ec,revalidation:"idle",restoreScrollPosition:ta(t,n.matches||M.matches),preventScrollReset:m,blockers:p}),{viewTransitionOpts:s,flushSync:!0===u}),O=c.Pop,F=!1,B=!1,H=!1,W=!1,$=[]}async function eo(t,r){if("number"==typeof t)return void e.history.go(t);let n=ey(M.location,M.matches,p,g.v7_prependBasename,t,g.v7_relativeSplatPath,null==r?void 0:r.fromRouteId,null==r?void 0:r.relative),{path:a,submission:o,error:i}=eg(g.v7_normalizeFormMethod,!1,n,r),l=M.location,s=x(M.location,a,r&&r.state);s=v({},s,e.history.encodeLocation(s));let u=r&&null!=r.replace?r.replace:void 0,d=c.Push;!0===u?d=c.Replace:!1===u||null!=o&&eK(o.formMethod)&&o.formAction===M.location.pathname+M.location.search&&(d=c.Replace);let h=r&&"preventScrollReset"in r?!0===r.preventScrollReset:void 0,f=!0===(r&&r.flushSync),m=te({currentLocation:l,nextLocation:s,historyAction:d});return m?void e8(m,{state:"blocked",location:s,proceed(){e8(m,{state:"proceeding",proceed:void 0,reset:void 0,location:s}),eo(t,r)},reset(){let e=new Map(M.blockers);e.set(m,eh),er({blockers:e})}}):await ei(d,s,{submission:o,pendingError:i,preventScrollReset:h,replace:r&&r.replace,enableViewTransition:r&&r.viewTransition,flushSync:f})}async function ei(t,n,a){var i,l,s,u;let c;o&&o.abort(),o=null,O=t,H=!0===(a&&a.startUninterruptedRevalidation),i=M.location,l=M.matches,R&&P&&(R[tn(i,l)]=P()),F=!0===(a&&a.preventScrollReset),B=!0===(a&&a.enableViewTransition);let h=r||f,m=a&&a.overrideNavigation,y=null!=a&&a.initialHydration&&M.matches&&M.matches.length>0&&!U?M.matches:_(h,n,p),g=!0===(a&&a.flushSync);if(y&&M.initialized&&!W&&(s=M.location,u=n,s.pathname===u.pathname&&s.search===u.search&&(""===s.hash?""!==u.hash:s.hash===u.hash||""!==u.hash||!1))&&!(a&&a.submission&&eK(a.submission.formMethod)))return void en(n,{matches:y},{flushSync:g});let b=to(y,h,n.pathname);if(b.active&&b.matches&&(y=b.matches),!y){let{error:e,notFoundMatches:t,route:r}=tt(n.pathname);en(n,{matches:t,loaderData:{},errors:{[r.id]:e}},{flushSync:g});return}o=new AbortController;let w=eA(e.history,n,o.signal,a&&a.submission);if(a&&a.pendingError)c=[eF(y).route.id,{type:d.error,error:a.pendingError}];else if(a&&a.submission&&eK(a.submission.formMethod)){let t=await el(w,n,a.submission,y,b.active,{replace:a.replace,flushSync:g});if(t.shortCircuited)return;if(t.pendingActionResult){let[e,r]=t.pendingActionResult;if(eW(r)&&ea(r.error)&&404===r.error.status){o=null,en(n,{matches:t.matches,loaderData:{},errors:{[e]:r.error}});return}}y=t.matches||y,c=t.pendingActionResult,m=e0(n,a.submission),g=!1,b.active=!1,w=eA(e.history,w.url,w.signal)}let{shortCircuited:E,matches:S,loaderData:x,errors:C}=await ev(w,n,y,b.active,m,a&&a.submission,a&&a.fetcherSubmission,a&&a.replace,a&&!0===a.initialHydration,g,c);E||(o=null,en(n,v({matches:S||y},eO(c),{loaderData:x,errors:C})))}async function el(t,r,n,a,o,i){var l;let s;if(void 0===i&&(i={}),eU(),er({navigation:{state:"submitting",location:r,formMethod:(l=n).formMethod,formAction:l.formAction,formEncType:l.formEncType,formData:l.formData,json:l.json,text:l.text}},{flushSync:!0===i.flushSync}),o){let e=await ti(a,r.pathname,t.signal);if("aborted"===e.type)return{shortCircuited:!0};if("error"===e.type){let t=eF(e.partialMatches).route.id;return{matches:e.partialMatches,pendingActionResult:[t,{type:d.error,error:e.error}]}}if(e.matches)a=e.matches;else{let{notFoundMatches:e,error:t,route:n}=tt(r.pathname);return{matches:e,pendingActionResult:[n.id,{type:d.error,error:t}]}}}let u=eQ(a,r);if(u.route.action||u.route.lazy){if(s=(await eL("action",M,t,[u],a,null))[u.route.id],t.signal.aborted)return{shortCircuited:!0}}else s={type:d.error,error:eB(405,{method:t.method,pathname:r.pathname,routeId:u.route.id})};if(e$(s)){let r;return r=i&&null!=i.replace?i.replace:e_(s.response.headers.get("Location"),new URL(t.url),p,e.history)===M.location.pathname+M.location.search,await eC(t,s,!0,{submission:n,replace:r}),{shortCircuited:!0}}if(eH(s))throw eB(400,{type:"defer-action"});if(eW(s)){let e=eF(a,u.route.id);return!0!==(i&&i.replace)&&(O=c.Push),{matches:a,pendingActionResult:[e.route.id,s]}}return{matches:a,pendingActionResult:[u.route.id,s]}}async function ev(t,n,a,i,l,s,u,c,d,h,m){let y=l||e0(n,s),b=s||u||eZ(y),w=!H&&(!g.v7_partialHydration||!d);if(i){if(w){let e=eb(m);er(v({navigation:y},void 0!==e?{actionData:e}:{}),{flushSync:h})}let e=await ti(a,n.pathname,t.signal);if("aborted"===e.type)return{shortCircuited:!0};if("error"===e.type){let t=eF(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 E=r||f,[S,R]=ew(e.history,M,a,b,n,g.v7_partialHydration&&!0===d,g.v7_skipActionErrorRevalidation,W,$,V,Z,G,X,E,p,m);if(tr(e=>!(a&&a.some(t=>t.route.id===e))||S&&S.some(t=>t.route.id===e)),Y=++K,0===S.length&&0===R.length){let e=e3();return en(n,v({matches:a,loaderData:{},errors:m&&eW(m[1])?{[m[0]]:m[1].error}:null},eO(m),e?{fetchers:new Map(M.fetchers)}:{}),{flushSync:h}),{shortCircuited:!0}}if(w){let e={};if(!i){e.navigation=y;let t=eb(m);void 0!==t&&(e.actionData=t)}R.length>0&&(R.forEach(e=>{let t=M.fetchers.get(e.key),r=e1(void 0,t?t.data:void 0);M.fetchers.set(e.key,r)}),e.fetchers=new Map(M.fetchers)),er(e,{flushSync:h})}R.forEach(e=>{e2(e.key),e.controller&&J.set(e.key,e.controller)});let x=()=>R.forEach(e=>e2(e.key));o&&o.signal.addEventListener("abort",x);let{loaderResults:C,fetcherResults:P}=await eT(M,a,S,R,t);if(t.signal.aborted)return{shortCircuited:!0};o&&o.signal.removeEventListener("abort",x),R.forEach(e=>J.delete(e.key));let D=ez(C);if(D)return await eC(t,D.result,!0,{replace:c}),{shortCircuited:!0};if(D=ez(P))return X.add(D.key),await eC(t,D.result,!0,{replace:c}),{shortCircuited:!0};let{loaderData:L,errors:k}=ej(M,a,C,m,R,P,ee);ee.forEach((e,t)=>{e.subscribe(r=>{(r||e.done)&&ee.delete(t)})}),g.v7_partialHydration&&d&&M.errors&&(k=v({},M.errors,k));let _=e3(),A=e6(Y),T=_||A||R.length>0;return v({matches:a,loaderData:L,errors:k},T?{fetchers:new Map(M.fetchers)}:{})}function eb(e){if(e&&!eW(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 eS(t,n,a,i,l,s,u,c,d){var h,m;function v(e){if(!e.route.action&&!e.route.lazy){let e=eB(405,{method:d.formMethod,pathname:a,routeId:n});return eV(t,n,e,{flushSync:u}),!0}return!1}if(eU(),G.delete(t),!s&&v(i))return;let y=M.fetchers.get(t);eI(t,(h=d,m=y,{state:"submitting",formMethod:h.formMethod,formAction:h.formAction,formEncType:h.formEncType,formData:h.formData,json:h.json,text:h.text,data:m?m.data:void 0}),{flushSync:u});let b=new AbortController,w=eA(e.history,a,b.signal,d);if(s){let e=await ti(l,new URL(w.url).pathname,w.signal,t);if("aborted"===e.type)return;if("error"===e.type)return void eV(t,n,e.error,{flushSync:u});if(!e.matches)return void eV(t,n,eB(404,{pathname:a}),{flushSync:u});if(v(i=eQ(l=e.matches,a)))return}J.set(t,b);let S=K,R=(await eL("action",M,w,[i],l,t))[i.route.id];if(w.signal.aborted){J.get(t)===b&&J.delete(t);return}if(g.v7_fetcherPersist&&Z.has(t)){if(e$(R)||eW(R))return void eI(t,e7(void 0))}else{if(e$(R))return(J.delete(t),Y>S)?void eI(t,e7(void 0)):(X.add(t),eI(t,e1(d)),eC(w,R,!1,{fetcherSubmission:d,preventScrollReset:c}));if(eW(R))return void eV(t,n,R.error)}if(eH(R))throw eB(400,{type:"defer-action"});let x=M.navigation.location||M.location,C=eA(e.history,x,b.signal),P=r||f,D="idle"!==M.navigation.state?_(P,M.navigation.location,p):M.matches;E(D,"Didn't find any matches after fetcher action");let L=++K;q.set(t,L);let k=e1(d,R.data);M.fetchers.set(t,k);let[A,T]=ew(e.history,M,D,d,x,!1,g.v7_skipActionErrorRevalidation,W,$,V,Z,G,X,P,p,[i.route.id,R]);T.filter(e=>e.key!==t).forEach(e=>{let t=e.key,r=M.fetchers.get(t),n=e1(void 0,r?r.data:void 0);M.fetchers.set(t,n),e2(t),e.controller&&J.set(t,e.controller)}),er({fetchers:new Map(M.fetchers)});let U=()=>T.forEach(e=>e2(e.key));b.signal.addEventListener("abort",U);let{loaderResults:j,fetcherResults:F}=await eT(M,D,A,T,C);if(b.signal.aborted)return;b.signal.removeEventListener("abort",U),q.delete(t),J.delete(t),T.forEach(e=>J.delete(e.key));let N=ez(j);if(N)return eC(C,N.result,!1,{preventScrollReset:c});if(N=ez(F))return X.add(N.key),eC(C,N.result,!1,{preventScrollReset:c});let{loaderData:B,errors:z}=ej(M,D,j,void 0,T,F,ee);if(M.fetchers.has(t)){let e=e7(R.data);M.fetchers.set(t,e)}e6(L),"loading"===M.navigation.state&&L>Y?(E(O,"Expected pending action"),o&&o.abort(),en(M.navigation.location,{matches:D,loaderData:B,errors:z,fetchers:new Map(M.fetchers)})):(er({errors:z,loaderData:eM(M.loaderData,B,D,z),fetchers:new Map(M.fetchers)}),W=!1)}async function eR(t,r,n,a,o,i,l,s,u){let c=M.fetchers.get(t);eI(t,e1(u,c?c.data:void 0),{flushSync:l});let d=new AbortController,h=eA(e.history,n,d.signal);if(i){let e=await ti(o,new URL(h.url).pathname,h.signal,t);if("aborted"===e.type)return;if("error"===e.type)return void eV(t,r,e.error,{flushSync:l});if(!e.matches)return void eV(t,r,eB(404,{pathname:n}),{flushSync:l});a=eQ(o=e.matches,n)}J.set(t,d);let f=K,p=(await eL("loader",M,h,[a],o,t))[a.route.id];if(eH(p)&&(p=await eX(p,h.signal,!0)||p),J.get(t)===d&&J.delete(t),!h.signal.aborted){if(Z.has(t))return void eI(t,e7(void 0));if(e$(p))if(Y>f)return void eI(t,e7(void 0));else{X.add(t),await eC(h,p,!1,{preventScrollReset:s});return}if(eW(p))return void eV(t,r,p.error);E(!eH(p),"Unhandled fetcher deferred data"),eI(t,e7(p.data))}}async function eC(t,r,n,a){let{submission:i,fetcherSubmission:u,preventScrollReset:d,replace:h}=void 0===a?{}:a;r.response.headers.has("X-Remix-Revalidate")&&(W=!0);let f=r.response.headers.get("Location");E(f,"Expected a Location header on the redirect Response"),f=e_(f,new URL(t.url),p,e.history);let m=x(M.location,f,{_isRedirect:!0});if(s){let t=!1;if(r.response.headers.has("X-Remix-Reload-Document"))t=!0;else if(ef.test(f)){let r=e.history.createURL(f);t=r.origin!==l.location.origin||null==N(r.pathname,p)}if(t)return void(h?l.location.replace(f):l.location.assign(f))}o=null;let y=!0===h||r.response.headers.has("X-Remix-Replace")?c.Replace:c.Push,{formMethod:g,formAction:b,formEncType:w}=M.navigation;!i&&!u&&g&&b&&w&&(i=eZ(M.navigation));let S=i||u;if(eu.has(r.response.status)&&S&&eK(S.formMethod))await ei(y,m,{submission:v({},S,{formAction:f}),preventScrollReset:d||F,enableViewTransition:n?B:void 0});else{let e=e0(m,i);await ei(y,m,{overrideNavigation:e,fetcherSubmission:u,preventScrollReset:d||F,enableViewTransition:n?B:void 0})}}async function eL(e,r,n,a,o,i){let l,s={};try{l=await eD(m,e,r,n,a,o,i,h,t)}catch(e){return a.forEach(t=>{s[t.route.id]={type:d.error,error:e}}),s}for(let[e,t]of Object.entries(l)){var u;if(eJ((u=t).result)&&es.has(u.result.status)){let r=t.result;s[e]={type:d.redirect,response:function(e,t,r,n,a,o){let i=e.headers.get("Location");if(E(i,"Redirects returned/thrown from loaders/actions must have a Location header"),!ef.test(i)){let l=n.slice(0,n.findIndex(e=>e.route.id===r)+1);i=ey(new URL(t.url),l,a,!0,i,o),e.headers.set("Location",i)}return e}(r,n,e,o,p,g.v7_relativeSplatPath)}}else s[e]=await ek(t)}return s}async function eT(t,r,n,a,o){let i=t.matches,l=eL("loader",t,o,n,r,null),s=Promise.all(a.map(async r=>{if(!r.matches||!r.match||!r.controller)return Promise.resolve({[r.key]:{type:d.error,error:eB(404,{pathname:r.path})}});{let n=(await eL("loader",t,eA(e.history,r.path,r.controller.signal),[r.match],r.matches,r.key))[r.match.route.id];return{[r.key]:n}}})),u=await l,c=(await s).reduce((e,t)=>Object.assign(e,t),{});return await Promise.all([eY(r,u,o.signal,i,t.loaderData),eq(r,c,a)]),{loaderResults:u,fetcherResults:c}}function eU(){W=!0,$.push(...tr()),G.forEach((e,t)=>{J.has(t)&&V.add(t),e2(t)})}function eI(e,t,r){void 0===r&&(r={}),M.fetchers.set(e,t),er({fetchers:new Map(M.fetchers)},{flushSync:!0===(r&&r.flushSync)})}function eV(e,t,r,n){void 0===n&&(n={});let a=eF(M.matches,t);e4(e),er({errors:{[a.route.id]:r},fetchers:new Map(M.fetchers)},{flushSync:!0===(n&&n.flushSync)})}function eG(e){return Q.set(e,(Q.get(e)||0)+1),Z.has(e)&&Z.delete(e),M.fetchers.get(e)||ed}function e4(e){let t=M.fetchers.get(e);J.has(e)&&!(t&&"loading"===t.state&&q.has(e))&&e2(e),G.delete(e),q.delete(e),X.delete(e),g.v7_fetcherPersist&&Z.delete(e),V.delete(e),M.fetchers.delete(e)}function e2(e){let t=J.get(e);t&&(t.abort(),J.delete(e))}function e5(e){for(let t of e){let e=e7(eG(t).data);M.fetchers.set(t,e)}}function e3(){let e=[],t=!1;for(let r of X){let n=M.fetchers.get(r);E(n,"Expected fetcher: "+r),"loading"===n.state&&(X.delete(r),e.push(r),t=!0)}return e5(e),t}function e6(e){let t=[];for(let[r,n]of q)if(n<e){let e=M.fetchers.get(r);E(e,"Expected fetcher: "+r),"loading"===e.state&&(e2(r),q.delete(r),t.push(r))}return e5(t),t.length>0}function e9(e){M.blockers.delete(e),et.delete(e)}function e8(e,t){let r=M.blockers.get(e)||eh;E("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),er({blockers:n})}function te(e){let{currentLocation:t,nextLocation:r,historyAction:n}=e;if(0===et.size)return;et.size>1&&S(!1,"A router only supports one blocker at a time");let a=Array.from(et.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=eB(404,{pathname:e}),{matches:n,route:a}=eN(r||f);return tr(),{notFoundMatches:n,route:a,error:t}}function tr(e){let t=[];return ee.forEach((r,n)=>{(!e||e(n))&&(r.cancel(),t.push(n),ee.delete(n))}),t}function tn(e,t){return C&&C(e,t.map(e=>T(e,M.loaderData)))||e.key}function ta(e,t){if(R){let r=R[tn(e,t)];if("number"==typeof r)return r}return null}function to(e,t,r){if(y){if(!e)return{active:!0,matches:A(t,r,p,!0)||[]};else if(Object.keys(e[0].params).length>0)return{active:!0,matches:A(t,r,p,!0)}}return{active:!1,matches:null}}async function ti(e,n,a,o){if(!y)return{type:"success",matches:e};let i=e;for(;;){let e=null==r,l=r||f,s=h;try{await y({signal:a,path:n,matches:i,fetcherKey:o,patch:(e,r)=>{a.aborted||ex(e,r,l,s,t)}})}catch(e){return{type:"error",error:e,partialMatches:i}}finally{e&&!a.aborted&&(f=[...f])}if(a.aborted)return{type:"aborted"};let u=_(l,n,p);if(u)return{type:"success",matches:u};let c=A(l,n,p,!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 a={get basename(){return p},get future(){return g},get state(){return M},get routes(){return f},get window(){return l},initialize:function(){if(b=e.history.listen(t=>{let{action:r,location:n,delta:a}=t;if(i){i(),i=void 0;return}S(0===et.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=>{i=e});e.history.go(-1*a),e8(o,{state:"blocked",location:n,proceed(){e8(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,eh),er({blockers:e})}});return}return ei(r,n)}),s){var t=l,r=z;try{let e=t.sessionStorage.getItem(em);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(em,JSON.stringify(r))}catch(e){S(!1,"Failed to save applied view transitions in sessionStorage ("+e+").")}}})(l,z);l.addEventListener("pagehide",e),I=()=>l.removeEventListener("pagehide",e)}return M.initialized||ei(c.Pop,M.location,{initialHydration:!0}),a},subscribe:function(e){return w.add(e),()=>w.delete(e)},enableScrollRestoration:function(e,t,r){if(R=e,P=t,C=r||null,!D&&M.navigation===ec){D=!0;let e=ta(M.location,M.matches);null!=e&&er({restoreScrollPosition:e})}return()=>{R=null,P=null,C=null}},navigate:eo,fetch:function(e,t,n,a){if(u)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.");e2(e);let o=!0===(a&&a.flushSync),i=r||f,l=ey(M.location,M.matches,p,g.v7_prependBasename,n,g.v7_relativeSplatPath,t,null==a?void 0:a.relative),s=_(i,l,p),c=to(s,i,l);if(c.active&&c.matches&&(s=c.matches),!s)return void eV(e,t,eB(404,{pathname:l}),{flushSync:o});let{path:d,submission:h,error:m}=eg(g.v7_normalizeFormMethod,!0,l,a);if(m)return void eV(e,t,m,{flushSync:o});let v=eQ(s,d),y=!0===(a&&a.preventScrollReset);h&&eK(h.formMethod)?eS(e,t,d,v,s,c.active,o,y,h):(G.set(e,{routeId:t,path:d}),eR(e,t,d,v,s,c.active,o,y,h))},revalidate:function(){if(eU(),er({revalidation:"loading"}),"submitting"!==M.navigation.state){if("idle"===M.navigation.state)return void ei(M.historyAction,M.location,{startUninterruptedRevalidation:!0});ei(O||M.historyAction,M.navigation.location,{overrideNavigation:M.navigation,enableViewTransition:!0===B})}},createHref:t=>e.history.createHref(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:eG,deleteFetcher:function(e){let t=(Q.get(e)||0)-1;t<=0?(Q.delete(e),Z.add(e),g.v7_fetcherPersist||e4(e)):Q.set(e,t),er({fetchers:new Map(M.fetchers)})},dispose:function(){b&&b(),I&&I(),w.clear(),o&&o.abort(),M.fetchers.forEach((e,t)=>e4(t)),M.blockers.forEach((e,t)=>e9(t))},getBlocker:function(e,t){let r=M.blockers.get(e)||eh;return et.get(e)!==t&&et.set(e,t),r},deleteBlocker:e9,patchRoutes:function(e,n){let a=null==r;ex(e,n,r||f,h,t),a&&(f=[...f],er({}))},_internalFetchControllers:J,_internalActiveDeferreds:ee,_internalSetRoutes:function(e){r=k(e,t,void 0,h={})}}}function ey(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=V(a||".",$(s,o),N(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=eG(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:J([r,c.pathname])),C(c)}function eg(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,!el.has(a.toLowerCase())))return{path:r,error:eB(405,{method:n.formMethod})};let l=()=>({path:r,error:eB(400,{type:"invalid-body"})}),s=n.formMethod||"get",u=e?s.toUpperCase():s.toLowerCase(),c=eI(r);if(void 0!==n.body){if("text/plain"===n.formEncType){if(!eK(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(!eK(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(E("function"==typeof FormData,"FormData is not available in this environment"),n.formData)o=eT(n.formData),i=n.formData;else if(n.body instanceof FormData)o=eT(n.body),i=n.body;else if(n.body instanceof URLSearchParams)i=eU(o=n.body);else if(null==n.body)o=new URLSearchParams,i=new FormData;else try{o=new URLSearchParams(n.body),i=eU(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(eK(d.formMethod))return{path:r,submission:d};let h=P(r);return t&&h.search&&eG(h.search)&&o.append("index",""),h.search="?"+o,{path:C(h),submission:d}}function eb(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 ew(e,t,r,n,a,o,i,l,s,u,c,d,h,f,p,m){let y=m?eW(m[1])?m[1].error:m[1].data:void 0,g=e.createURL(t.location),b=e.createURL(a),w=r;o&&t.errors?w=eb(r,Object.keys(t.errors)[0],!0):m&&eW(m[1])&&(w=eb(r,m[0]));let E=m?m[1].statusCode:void 0,S=i&&E&&E>=400,R=w.filter((e,r)=>{var a,i,u;let c,d,{route:h}=e;if(h.lazy)return!0;if(null==h.loader)return!1;if(o)return eE(h,t.loaderData,t.errors);if(a=t.loaderData,i=t.matches[r],u=e,c=!i||u.route.id!==i.route.id,d=void 0===a[u.route.id],c||d||s.some(t=>t===e.route.id))return!0;let f=t.matches[r];return eR(e,v({currentUrl:g,currentParams:f.params,nextUrl:b,nextParams:e.params},n,{actionResult:y,actionStatus:E,defaultShouldRevalidate:!S&&(l||g.pathname+g.search===b.pathname+b.search||g.search!==b.search||eS(f,e))}))}),x=[];return d.forEach((e,a)=>{if(o||!r.some(t=>t.route.id===e.routeId)||c.has(a))return;let i=_(f,e.path,p);if(!i)return void x.push({key:a,routeId:e.routeId,path:e.path,matches:null,match:null,controller:null});let s=t.fetchers.get(a),d=eQ(i,e.path),m=!1;h.has(a)?m=!1:u.has(a)?(u.delete(a),m=!0):m=s&&"idle"!==s.state&&void 0===s.data?l:eR(d,v({currentUrl:g,currentParams:t.matches[t.matches.length-1].params,nextUrl:b,nextParams:r[r.length-1].params},n,{actionResult:y,actionStatus:E,defaultShouldRevalidate:!S&&l})),m&&x.push({key:a,routeId:e.routeId,path:e.path,matches:i,match:d,controller:new AbortController})}),[R,x]}function eE(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 eS(e,t){let r=e.route.path;return e.pathname!==t.pathname||null!=r&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function eR(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if("boolean"==typeof r)return r}return t.defaultShouldRevalidate}function ex(e,t,r,n,a){var o;let i;if(e){let t=n[e];E(t,"No route found to patch children into: routeId = "+e),t.children||(t.children=[]),i=t.children}else i=r;let l=k(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 eC(e,t,r){if(!e.lazy)return;let n=await e.lazy();if(!e.lazy)return;let a=r[e.id];E(a,"No route found in manifest");let o={};for(let e in n){let t=void 0!==a[e]&&"hasErrorBoundary"!==e;S(!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||L.has(e)||(o[e]=n[e])}Object.assign(a,o),Object.assign(a,v({},t(a),{lazy:void 0}))}async function eP(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 eD(e,t,r,n,a,o,i,l,s,u){let c=o.map(e=>e.route.lazy?eC(e.route,s,l):void 0),h=o.map((e,r)=>{let o=c[r],i=a.some(t=>t.route.id===e.route.id),l=async r=>(r&&"GET"===n.method&&(e.route.lazy||e.route.loader)&&(i=!0),i?eL(t,n,e,o,r,u):Promise.resolve({type:d.data,result:void 0}));return v({},e,{shouldLoad:i,resolve:l})}),f=await e({matches:h,request:n,params:o[0].params,fetcherKey:i,context:u});try{await Promise.all(c)}catch(e){}return f}async function eL(e,t,r,n,a,o){let i,l,s=n=>{let i,s=new Promise((e,t)=>i=t);l=()=>i(),t.signal.addEventListener("abort",l);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:o},...void 0!==a?[a]:[]);return Promise.race([(async()=>{try{let e=await (a?a(e=>u(e)):u());return{type:"data",result:e}}catch(e){return{type:"error",result:e}}})(),s])};try{let a=r.route[e];if(n)if(a){let e,[t]=await Promise.all([s(a).catch(t=>{e=t}),n]);if(void 0!==e)throw e;i=t}else if(await n,a=r.route[e])i=await s(a);else{if("action"!==e)return{type:d.data,result:void 0};let n=new URL(t.url),a=n.pathname+n.search;throw eB(405,{method:t.method,pathname:a,routeId:r.route.id})}else if(a)i=await s(a);else{let e=new URL(t.url),r=e.pathname+e.search;throw eB(404,{pathname:r})}E(void 0!==i.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:d.error,result:e}}finally{l&&t.signal.removeEventListener("abort",l)}return i}async function ek(e){var t,r,n,a,o,i,l,s,u;let{result:c,type:h}=e;if(eJ(c)){let e;try{let t=c.headers.get("Content-Type");e=t&&/\bapplication\/json\b/.test(t)?null==c.body?null:await c.json():await c.text()}catch(e){return{type:d.error,error:e}}return h===d.error?{type:d.error,error:new en(c.status,c.statusText,e),statusCode:c.status,headers:c.headers}:{type:d.data,data:e,statusCode:c.status,headers:c.headers}}if(h===d.error)return eV(c)?c.data instanceof Error?{type:d.error,error:c.data,statusCode:null==(n=c.init)?void 0:n.status,headers:null!=(a=c.init)&&a.headers?new Headers(c.init.headers):void 0}:{type:d.error,error:new en((null==(t=c.init)?void 0:t.status)||500,void 0,c.data),statusCode:ea(c)?c.status:void 0,headers:null!=(r=c.init)&&r.headers?new Headers(c.init.headers):void 0}:{type:d.error,error:c,statusCode:ea(c)?c.status:void 0};return(u=c)&&"object"==typeof u&&"object"==typeof u.data&&"function"==typeof u.subscribe&&"function"==typeof u.cancel&&"function"==typeof u.resolveData?{type:d.deferred,deferredData:c,statusCode:null==(o=c.init)?void 0:o.status,headers:(null==(i=c.init)?void 0:i.headers)&&new Headers(c.init.headers)}:eV(c)?{type:d.data,data:c.data,statusCode:null==(l=c.init)?void 0:l.status,headers:null!=(s=c.init)&&s.headers?new Headers(c.init.headers):void 0}:{type:d.data,data:c}}function e_(e,t,r,n){let a=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];if(ef.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!=N(n.pathname,r);if(n.origin===t.origin&&o)return 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 eA(e,t,r,n){let a=e.createURL(eI(t)).toString(),o={signal:r};if(n&&eK(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=eT(n.formData):o.body=n.formData}return new Request(a,o)}function eT(e){let t=new URLSearchParams;for(let[r,n]of e.entries())t.append(r,"string"==typeof n?n:n.name);return t}function eU(e){let t=new FormData;for(let[r,n]of e.entries())t.append(r,n);return t}function ej(e,t,r,n,a,o,i){let l,s,u,c,d,h,{loaderData:f,errors:p}=(s={},u=null,c=!1,d={},h=n&&eW(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(E(!e$(a),"Cannot handle redirect results in processLoaderData"),eW(a)){let e=a.error;void 0!==h&&(e=h,h=void 0),u=u||{},1;{let r=eF(t,n);null==u[r.route.id]&&(u[r.route.id]=e)}s[n]=void 0,c||(c=!0,l=ea(a.error)?a.error.status:500),a.headers&&(d[n]=a.headers)}else eH(a)?(i.set(n,a.deferredData),s[n]=a.deferredData.data,null==a.statusCode||200===a.statusCode||c||(l=a.statusCode)):(s[n]=a.data,a.statusCode&&200!==a.statusCode&&!c&&(l=a.statusCode)),a.headers&&(d[n]=a.headers)}),void 0!==h&&n&&(u={[n[0]]:h},s[n[0]]=void 0),{loaderData:s,errors:u,statusCode:l||200,loaderHeaders:d});return a.forEach(t=>{let{key:r,match:n,controller:a}=t,i=o[r];if(E(i,"Did not find corresponding fetcher result"),!a||!a.signal.aborted)if(eW(i)){let t=eF(e.matches,null==n?void 0:n.route.id);p&&p[t.route.id]||(p=v({},p,{[t.route.id]:i.error})),e.fetchers.delete(r)}else if(e$(i))E(!1,"Unhandled fetcher revalidation redirect");else if(eH(i))E(!1,"Unhandled fetcher deferred data");else{let t=e7(i.data);e.fetchers.set(r,t)}}),{loaderData:f,errors:p}}function eM(e,t,r,n){let a=v({},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 eO(e){return e?eW(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function eF(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 eN(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 eB(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 en(e||500,l,Error(s),!0)}function ez(e){let t=Object.entries(e);for(let e=t.length-1;e>=0;e--){let[r,n]=t[e];if(e$(n))return{key:r,result:n}}}function eI(e){let t="string"==typeof e?P(e):e;return C(v({},t,{hash:""}))}function eH(e){return e.type===d.deferred}function eW(e){return e.type===d.error}function e$(e){return(e&&e.type)===d.redirect}function eV(e){return"object"==typeof e&&null!=e&&"type"in e&&"data"in e&&"init"in e&&"DataWithResponseInit"===e.type}function eJ(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"object"==typeof e.headers&&void 0!==e.body}function eK(e){return ei.has(e.toLowerCase())}async function eY(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&&!eS(c,u)&&(a&&a[u.route.id])!==void 0;eH(s)&&d&&await eX(s,r,!1).then(e=>{e&&(t[l]=e)})}}async function eq(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)&&eH(l)&&(E(i,"Expected an AbortController for revalidating fetcher deferred result"),await eX(l,i.signal,!0).then(e=>{e&&(t[a]=e)}))}}async function eX(e,t,r){if(void 0===r&&(r=!1),!await e.deferredData.resolveData(t)){if(r)try{return{type:d.data,data:e.deferredData.unwrappedData}}catch(e){return{type:d.error,error:e}}return{type:d.data,data:e.deferredData.data}}}function eG(e){return new URLSearchParams(e).getAll("index").some(e=>""===e)}function eQ(e,t){let r="string"==typeof t?P(t).search:t.search;if(e[e.length-1].route.index&&eG(r||""))return e[e.length-1];let n=W(e);return n[n.length-1]}function eZ(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 e0(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 e1(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 e7(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function e4(){return(e4=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}Symbol("deferred");let e2=p.createContext(null),e5=p.createContext(null),e3=p.createContext(null),e6=p.createContext(null),e9=p.createContext(null),e8=p.createContext({outlet:null,matches:[],isDataRoute:!1}),te=p.createContext(null);function tt(e,t){let{relative:r}=void 0===t?{}:t;tr()||E(!1);let{basename:n,navigator:a}=p.useContext(e6),{hash:o,pathname:i,search:l}=th(e,{relative:r}),s=i;return"/"!==n&&(s="/"===i?n:J([n,i])),a.createHref({pathname:s,search:l,hash:o})}function tr(){return null!=p.useContext(e9)}function tn(){return tr()||E(!1),p.useContext(e9).location}function ta(){return p.useContext(e9).navigationType}function to(e){tr()||E(!1);let{pathname:t}=tn();return p.useMemo(()=>O(e,F(t)),[t,e])}function ti(e){p.useContext(e6).static||p.useLayoutEffect(e)}function tl(){let{isDataRoute:e}=p.useContext(e8);return e?function(){let{router:e}=tE(tb.UseNavigateStable),t=tR(tw.UseNavigateStable),r=p.useRef(!1);return ti(()=>{r.current=!0}),p.useCallback(function(n,a){void 0===a&&(a={}),r.current&&("number"==typeof n?e.navigate(n):e.navigate(n,e4({fromRouteId:t},a)))},[e,t])}():function(){tr()||E(!1);let e=p.useContext(e2),{basename:t,future:r,navigator:n}=p.useContext(e6),{matches:a}=p.useContext(e8),{pathname:o}=tn(),i=JSON.stringify($(a,r.v7_relativeSplatPath)),l=p.useRef(!1);return ti(()=>{l.current=!0}),p.useCallback(function(r,a){if(void 0===a&&(a={}),!l.current)return;if("number"==typeof r)return void n.go(r);let s=V(r,JSON.parse(i),o,"path"===a.relative);null==e&&"/"!==t&&(s.pathname="/"===s.pathname?t:J([t,s.pathname])),(a.replace?n.replace:n.push)(s,a.state,a)},[t,n,i,o,e])}()}let ts=p.createContext(null);function tu(){return p.useContext(ts)}function tc(e){let t=p.useContext(e8).outlet;return t?p.createElement(ts.Provider,{value:e},t):t}function td(){let{matches:e}=p.useContext(e8),t=e[e.length-1];return t?t.params:{}}function th(e,t){let{relative:r}=void 0===t?{}:t,{future:n}=p.useContext(e6),{matches:a}=p.useContext(e8),{pathname:o}=tn(),i=JSON.stringify($(a,n.v7_relativeSplatPath));return p.useMemo(()=>V(e,JSON.parse(i),o,"path"===r),[e,i,o,r])}function tf(e,t){return tp(e,t)}function tp(e,t,r,n){let a;tr()||E(!1);let{navigator:o}=p.useContext(e6),{matches:i}=p.useContext(e8),l=i[i.length-1],s=l?l.params:{};l&&l.pathname;let u=l?l.pathnameBase:"/";l&&l.route;let d=tn();if(t){var h;let e="string"==typeof t?P(t):t;"/"===u||(null==(h=e.pathname)?void 0:h.startsWith(u))||E(!1),a=e}else a=d;let f=a.pathname||"/",m=f;if("/"!==u){let e=u.replace(/^\//,"").split("/");m="/"+f.replace(/^\//,"").split("/").slice(e.length).join("/")}let v=_(e,{pathname:m}),y=tg(v&&v.map(e=>Object.assign({},e,{params:Object.assign({},s,e.params),pathname:J([u,o.encodeLocation?o.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?u:J([u,o.encodeLocation?o.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])})),i,r,n);return t&&y?p.createElement(e9.Provider,{value:{location:e4({pathname:"/",search:"",hash:"",state:null,key:"default"},a),navigationType:c.Pop}},y):y}let tm=p.createElement(function(){let e=tA(),t=ea(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null;return p.createElement(p.Fragment,null,p.createElement("h2",null,"Unexpected Application Error!"),p.createElement("h3",{style:{fontStyle:"italic"}},t),r?p.createElement("pre",{style:{padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"}},r):null,null)},null);class tv extends p.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?p.createElement(e8.Provider,{value:this.props.routeContext},p.createElement(te.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function ty(e){let{routeContext:t,match:r,children:n}=e,a=p.useContext(e2);return a&&a.static&&a.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=r.route.id),p.createElement(e8.Provider,{value:t},n)}function tg(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 i=e,l=null==(a=r)?void 0:a.errors;if(null!=l){let e=i.findIndex(e=>e.route.id&&(null==l?void 0:l[e.route.id])!==void 0);e>=0||E(!1),i=i.slice(0,Math.min(i.length,e+1))}let s=!1,u=-1;if(r&&n&&n.v7_partialHydration)for(let e=0;e<i.length;e++){let t=i[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(u=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){s=!0,i=u>=0?i.slice(0,u+1):[i[0]];break}}}return i.reduceRight((e,n,a)=>{var o;let c,d=!1,h=null,f=null;r&&(c=l&&n.route.id?l[n.route.id]:void 0,h=n.route.errorElement||tm,s&&(u<0&&0===a?(o="route-fallback",tO[o]||(tO[o]=!0),d=!0,f=null):u===a&&(d=!0,f=n.route.hydrateFallbackElement||null)));let m=t.concat(i.slice(0,a+1)),v=()=>{let t;return t=c?h:d?f:n.route.Component?p.createElement(n.route.Component,null):n.route.element?n.route.element:e,p.createElement(ty,{match:n,routeContext:{outlet:e,matches:m,isDataRoute:null!=r},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||0===a)?p.createElement(tv,{location:r.location,revalidation:r.revalidation,component:h,error:c,children:v(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):v()},null)}var tb=((o=tb||{}).UseBlocker="useBlocker",o.UseRevalidator="useRevalidator",o.UseNavigateStable="useNavigate",o),tw=((i=tw||{}).UseBlocker="useBlocker",i.UseLoaderData="useLoaderData",i.UseActionData="useActionData",i.UseRouteError="useRouteError",i.UseNavigation="useNavigation",i.UseRouteLoaderData="useRouteLoaderData",i.UseMatches="useMatches",i.UseRevalidator="useRevalidator",i.UseNavigateStable="useNavigate",i.UseRouteId="useRouteId",i);function tE(e){let t=p.useContext(e2);return t||E(!1),t}function tS(e){let t=p.useContext(e5);return t||E(!1),t}function tR(e){let t,r=((t=p.useContext(e8))||E(!1),t),n=r.matches[r.matches.length-1];return n.route.id||E(!1),n.route.id}function tx(){return tR(tw.UseRouteId)}function tC(){return tS(tw.UseNavigation).navigation}function tP(){let e=tE(tb.UseRevalidator),t=tS(tw.UseRevalidator);return p.useMemo(()=>({revalidate:e.router.revalidate,state:t.revalidation}),[e.router.revalidate,t.revalidation])}function tD(){let{matches:e,loaderData:t}=tS(tw.UseMatches);return p.useMemo(()=>e.map(e=>T(e,t)),[e,t])}function tL(){let e=tS(tw.UseLoaderData),t=tR(tw.UseLoaderData);return e.errors&&null!=e.errors[t]?void console.error("You cannot `useLoaderData` in an errorElement (routeId: "+t+")"):e.loaderData[t]}function tk(e){return tS(tw.UseRouteLoaderData).loaderData[e]}function t_(){let e=tS(tw.UseActionData),t=tR(tw.UseLoaderData);return e.actionData?e.actionData[t]:void 0}function tA(){var e;let t=p.useContext(te),r=tS(tw.UseRouteError),n=tR(tw.UseRouteError);return void 0!==t?t:null==(e=r.errors)?void 0:e[n]}function tT(){let e=p.useContext(e3);return null==e?void 0:e._data}function tU(){let e=p.useContext(e3);return null==e?void 0:e._error}let tj=0;function tM(e){let{router:t,basename:r}=tE(tb.UseBlocker),n=tS(tw.UseBlocker),[a,o]=p.useState(""),i=p.useCallback(t=>{if("function"!=typeof e)return!!e;if("/"===r)return e(t);let{currentLocation:n,nextLocation:a,historyAction:o}=t;return e({currentLocation:e4({},n,{pathname:N(n.pathname,r)||n.pathname}),nextLocation:e4({},a,{pathname:N(a.pathname,r)||a.pathname}),historyAction:o})},[r,e]);return p.useEffect(()=>{let e=String(++tj);return o(e),()=>t.deleteBlocker(e)},[t]),p.useEffect(()=>{""!==a&&t.getBlocker(a,i)},[t,a,i]),a&&n.blockers.has(a)?n.blockers.get(a):eh}let tO={},tF=(e,t,r)=>{};function tN(e,t){(null==e?void 0:e.v7_startTransition)===void 0&&tF("v7_startTransition","React Router will begin wrapping state updates in `React.startTransition` in v7","https://reactrouter.com/v6/upgrading/future#v7_starttransition"),(null==e?void 0:e.v7_relativeSplatPath)!==void 0||t&&void 0!==t.v7_relativeSplatPath||tF("v7_relativeSplatPath","Relative route resolution within Splat routes is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath"),t&&(void 0===t.v7_fetcherPersist&&tF("v7_fetcherPersist","The persistence behavior of fetchers is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_fetcherpersist"),void 0===t.v7_normalizeFormMethod&&tF("v7_normalizeFormMethod","Casing of `formMethod` fields is being normalized to uppercase in v7","https://reactrouter.com/v6/upgrading/future#v7_normalizeformmethod"),void 0===t.v7_partialHydration&&tF("v7_partialHydration","`RouterProvider` hydration behavior is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_partialhydration"),void 0===t.v7_skipActionErrorRevalidation&&tF("v7_skipActionErrorRevalidation","The revalidation behavior after 4xx/5xx `action` responses is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_skipactionerrorrevalidation"))}let tB=p.startTransition;function tz(e){let{basename:t,children:r,initialEntries:n,initialIndex:a,future:o}=e,i=p.useRef();null==i.current&&(i.current=g({initialEntries:n,initialIndex:a,v5Compat:!0}));let l=i.current,[s,u]=p.useState({action:l.action,location:l.location}),{v7_startTransition:c}=o||{},d=p.useCallback(e=>{c&&tB?tB(()=>u(e)):u(e)},[u,c]);return p.useLayoutEffect(()=>l.listen(d),[l,d]),p.useEffect(()=>tN(o),[o]),p.createElement(t$,{basename:t,children:r,location:s.location,navigationType:s.action,navigator:l,future:o})}function tI(e){let{to:t,replace:r,state:n,relative:a}=e;tr()||E(!1);let{future:o,static:i}=p.useContext(e6),{matches:l}=p.useContext(e8),{pathname:s}=tn(),u=tl(),c=JSON.stringify(V(t,$(l,o.v7_relativeSplatPath),s,"path"===a));return p.useEffect(()=>u(JSON.parse(c),{replace:r,state:n,relative:a}),[u,c,a,r,n]),null}function tH(e){return tc(e.context)}function tW(e){E(!1)}function t$(e){let{basename:t="/",children:r=null,location:n,navigationType:a=c.Pop,navigator:o,static:i=!1,future:l}=e;tr()&&E(!1);let s=t.replace(/^\/*/,"/"),u=p.useMemo(()=>({basename:s,navigator:o,static:i,future:e4({v7_relativeSplatPath:!1},l)}),[s,l,o,i]);"string"==typeof n&&(n=P(n));let{pathname:d="/",search:h="",hash:f="",state:m=null,key:v="default"}=n,y=p.useMemo(()=>{let e=N(d,s);return null==e?null:{location:{pathname:e,search:h,hash:f,state:m,key:v},navigationType:a}},[s,d,h,f,m,v,a]);return null==y?null:p.createElement(e6.Provider,{value:u},p.createElement(e9.Provider,{children:r,value:y}))}function tV(e){let{children:t,location:r}=e;return tp(tG(t),r)}function tJ(e){let{children:t,errorElement:r,resolve:n}=e;return p.createElement(tq,{resolve:n,errorElement:r},p.createElement(tX,null,t))}var tK=((l=tK||{})[l.pending=0]="pending",l[l.success=1]="success",l[l.error=2]="error",l);let tY=new Promise(()=>{});class tq extends p.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=tK.pending;if(r instanceof Promise)if(this.state.error){a=tK.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)?tK.error:"_data"in n?tK.success:tK.pending:(a=tK.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=tK.success,Object.defineProperty(n=Promise.resolve(),"_tracked",{get:()=>!0}),Object.defineProperty(n,"_data",{get:()=>r});if(a===tK.error&&n._error instanceof G)throw tY;if(a===tK.error&&!t)throw n._error;if(a===tK.error)return p.createElement(e3.Provider,{value:n,children:t});if(a===tK.success)return p.createElement(e3.Provider,{value:n,children:e});throw n}}function tX(e){let{children:t}=e,r=tT(),n="function"==typeof t?t(r):t;return p.createElement(p.Fragment,null,n)}function tG(e,t){void 0===t&&(t=[]);let r=[];return p.Children.forEach(e,(e,n)=>{if(!p.isValidElement(e))return;let a=[...t,n];if(e.type===p.Fragment)return void r.push.apply(r,tG(e.props.children,a));e.type!==tW&&E(!1),e.props.index&&e.props.children&&E(!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=tG(e.props.children,a)),r.push(o)}),r}function tQ(e){return tg(e)}function tZ(e){let t={hasErrorBoundary:null!=e.ErrorBoundary||null!=e.errorElement};return e.Component&&Object.assign(t,{element:p.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:p.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:p.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}function t0(e,t){return ev({basename:null==t?void 0:t.basename,future:e4({},null==t?void 0:t.future,{v7_prependBasename:!0}),history:g({initialEntries:null==t?void 0:t.initialEntries,initialIndex:null==t?void 0:t.initialIndex}),hydrationData:null==t?void 0:t.hydrationData,routes:e,mapRouteProperties:tZ,dataStrategy:null==t?void 0:t.dataStrategy,patchRoutesOnNavigation:null==t?void 0:t.patchRoutesOnNavigation}).initialize()}function t1(){return(t1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function t7(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}let t4="application/x-www-form-urlencoded";function t2(e){return null!=e&&"string"==typeof e.tagName}function t5(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 t3=null,t6=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function t9(e){return null==e||t6.has(e)?e:null}let t8=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],re=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],rt=["fetcherKey","navigate","reloadDocument","replace","state","method","action","onSubmit","relative","preventScrollReset","viewTransition"];try{window.__reactRouterVersion="6"}catch(e){}function rr(e,t){return ev({basename:null==t?void 0:t.basename,future:t1({},null==t?void 0:t.future,{v7_prependBasename:!0}),history:b({window:null==t?void 0:t.window}),hydrationData:(null==t?void 0:t.hydrationData)||ra(),routes:e,mapRouteProperties:tZ,dataStrategy:null==t?void 0:t.dataStrategy,patchRoutesOnNavigation:null==t?void 0:t.patchRoutesOnNavigation,window:null==t?void 0:t.window}).initialize()}function rn(e,t){return ev({basename:null==t?void 0:t.basename,future:t1({},null==t?void 0:t.future,{v7_prependBasename:!0}),history:w({window:null==t?void 0:t.window}),hydrationData:(null==t?void 0:t.hydrationData)||ra(),routes:e,mapRouteProperties:tZ,dataStrategy:null==t?void 0:t.dataStrategy,patchRoutesOnNavigation:null==t?void 0:t.patchRoutesOnNavigation,window:null==t?void 0:t.window}).initialize()}function ra(){var e;let t=null==(e=window)?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=t1({},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 en(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 ro=p.createContext({isTransitioning:!1}),ri=p.createContext(new Map),rl=p.startTransition,rs=m.flushSync,ru=p.useId;function rc(e){rs?rs(e):e()}class rd{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 rh(e){let{fallbackElement:t,router:r,future:n}=e,[a,o]=p.useState(r.state),[i,l]=p.useState(),[s,u]=p.useState({isTransitioning:!1}),[c,d]=p.useState(),[h,f]=p.useState(),[m,v]=p.useState(),y=p.useRef(new Map),{v7_startTransition:g}=n||{},b=p.useCallback(e=>{if(g)rl?rl(e):e();else e()},[g]),w=p.useCallback((e,t)=>{let{deletedFetchers:n,flushSync:a,viewTransitionOpts:i}=t;e.fetchers.forEach((e,t)=>{void 0!==e.data&&y.current.set(t,e.data)}),n.forEach(e=>y.current.delete(e));let s=null==r.window||null==r.window.document||"function"!=typeof r.window.document.startViewTransition;if(!i||s)return void(a?rc(()=>o(e)):b(()=>o(e)));if(a){rc(()=>{h&&(c&&c.resolve(),h.skipTransition()),u({isTransitioning:!0,flushSync:!0,currentLocation:i.currentLocation,nextLocation:i.nextLocation})});let t=r.window.document.startViewTransition(()=>{rc(()=>o(e))});t.finished.finally(()=>{rc(()=>{d(void 0),f(void 0),l(void 0),u({isTransitioning:!1})})}),rc(()=>f(t));return}h?(c&&c.resolve(),h.skipTransition(),v({state:e,currentLocation:i.currentLocation,nextLocation:i.nextLocation})):(l(e),u({isTransitioning:!0,flushSync:!1,currentLocation:i.currentLocation,nextLocation:i.nextLocation}))},[r.window,h,c,y,b]);p.useLayoutEffect(()=>r.subscribe(w),[r,w]),p.useEffect(()=>{s.isTransitioning&&!s.flushSync&&d(new rd)},[s]),p.useEffect(()=>{if(c&&i&&r.window){let e=c.promise,t=r.window.document.startViewTransition(async()=>{b(()=>o(i)),await e});t.finished.finally(()=>{d(void 0),f(void 0),l(void 0),u({isTransitioning:!1})}),f(t)}},[b,i,c,r.window]),p.useEffect(()=>{c&&i&&a.location.key===i.location.key&&c.resolve()},[c,h,a.location,i]),p.useEffect(()=>{!s.isTransitioning&&m&&(l(m.state),u({isTransitioning:!0,flushSync:!1,currentLocation:m.currentLocation,nextLocation:m.nextLocation}),v(void 0))},[s.isTransitioning,m]),p.useEffect(()=>{},[]);let E=p.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]),S=r.basename||"/",R=p.useMemo(()=>({router:r,navigator:E,static:!1,basename:S}),[r,E,S]),x=p.useMemo(()=>({v7_relativeSplatPath:r.future.v7_relativeSplatPath}),[r.future.v7_relativeSplatPath]);return p.useEffect(()=>tN(n,r.future),[n,r.future]),p.createElement(p.Fragment,null,p.createElement(e2.Provider,{value:R},p.createElement(e5.Provider,{value:a},p.createElement(ri.Provider,{value:y.current},p.createElement(ro.Provider,{value:s},p.createElement(t$,{basename:S,location:a.location,navigationType:a.historyAction,navigator:E,future:x},a.initialized||r.future.v7_partialHydration?p.createElement(rf,{routes:r.routes,future:r.future,state:a}):t))))),null)}let rf=p.memo(function(e){let{routes:t,future:r,state:n}=e;return tp(t,void 0,n,r)});function rp(e){let{basename:t,children:r,future:n,window:a}=e,o=p.useRef();null==o.current&&(o.current=b({window:a,v5Compat:!0}));let i=o.current,[l,s]=p.useState({action:i.action,location:i.location}),{v7_startTransition:u}=n||{},c=p.useCallback(e=>{u&&rl?rl(()=>s(e)):s(e)},[s,u]);return p.useLayoutEffect(()=>i.listen(c),[i,c]),p.useEffect(()=>tN(n),[n]),p.createElement(t$,{basename:t,children:r,location:l.location,navigationType:l.action,navigator:i,future:n})}function rm(e){let{basename:t,children:r,future:n,window:a}=e,o=p.useRef();null==o.current&&(o.current=w({window:a,v5Compat:!0}));let i=o.current,[l,s]=p.useState({action:i.action,location:i.location}),{v7_startTransition:u}=n||{},c=p.useCallback(e=>{u&&rl?rl(()=>s(e)):s(e)},[s,u]);return p.useLayoutEffect(()=>i.listen(c),[i,c]),p.useEffect(()=>tN(n),[n]),p.createElement(t$,{basename:t,children:r,location:l.location,navigationType:l.action,navigator:i,future:n})}function rv(e){let{basename:t,children:r,future:n,history:a}=e,[o,i]=p.useState({action:a.action,location:a.location}),{v7_startTransition:l}=n||{},s=p.useCallback(e=>{l&&rl?rl(()=>i(e)):i(e)},[i,l]);return p.useLayoutEffect(()=>a.listen(s),[a,s]),p.useEffect(()=>tN(n),[n]),p.createElement(t$,{basename:t,children:r,location:o.location,navigationType:o.action,navigator:a,future:n})}let ry="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,rg=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,rb=p.forwardRef(function(e,t){let r,{onClick:n,relative:a,reloadDocument:o,replace:i,state:l,target:s,to:u,preventScrollReset:c,viewTransition:d}=e,h=t7(e,t8),{basename:f}=p.useContext(e6),m=!1;if("string"==typeof u&&rg.test(u)&&(r=u,ry))try{let e=new URL(window.location.href),t=new URL(u.startsWith("//")?e.protocol+u:u),r=N(t.pathname,f);t.origin===e.origin&&null!=r?u=r+t.search+t.hash:m=!0}catch(e){}let v=tt(u,{relative:a}),y=rC(u,{replace:i,state:l,target:s,preventScrollReset:c,relative:a,viewTransition:d});return p.createElement("a",t1({},h,{href:r||v,onClick:m||o?n:function(e){n&&n(e),e.defaultPrevented||y(e)},ref:t,target:s}))}),rw=p.forwardRef(function(e,t){let r,{"aria-current":n="page",caseSensitive:a=!1,className:o="",end:i=!1,style:l,to:s,viewTransition:u,children:c}=e,d=t7(e,re),h=th(s,{relative:d.relative}),f=tn(),m=p.useContext(e5),{navigator:v,basename:y}=p.useContext(e6),g=null!=m&&rN(h)&&!0===u,b=v.encodeLocation?v.encodeLocation(h).pathname:h.pathname,w=f.pathname,E=m&&m.navigation&&m.navigation.location?m.navigation.location.pathname:null;a||(w=w.toLowerCase(),E=E?E.toLowerCase():null,b=b.toLowerCase()),E&&y&&(E=N(E,y)||E);let S="/"!==b&&b.endsWith("/")?b.length-1:b.length,R=w===b||!i&&w.startsWith(b)&&"/"===w.charAt(S),x=null!=E&&(E===b||!i&&E.startsWith(b)&&"/"===E.charAt(b.length)),C={isActive:R,isPending:x,isTransitioning:g},P=R?n:void 0;r="function"==typeof o?o(C):[o,R?"active":null,x?"pending":null,g?"transitioning":null].filter(Boolean).join(" ");let D="function"==typeof l?l(C):l;return p.createElement(rb,t1({},d,{"aria-current":P,className:r,ref:t,style:D,to:s,viewTransition:u}),"function"==typeof c?c(C):c)}),rE=p.forwardRef((e,t)=>{let{fetcherKey:r,navigate:n,reloadDocument:a,replace:o,state:i,method:l="get",action:s,onSubmit:u,relative:c,preventScrollReset:d,viewTransition:h}=e,f=t7(e,rt),m=rk(),v=r_(s,{relative:c}),y="get"===l.toLowerCase()?"get":"post";return p.createElement("form",t1({ref:t,method:y,action:v,onSubmit:a?u:e=>{if(u&&u(e),e.defaultPrevented)return;e.preventDefault();let t=e.nativeEvent.submitter,a=(null==t?void 0:t.getAttribute("formmethod"))||l;m(t||e.currentTarget,{fetcherKey:r,method:a,navigate:n,replace:o,state:i,relative:c,preventScrollReset:d,viewTransition:h})}},f))});function rS(e){let{getKey:t,storageKey:r}=e;return rM({getKey:t,storageKey:r}),null}function rR(e){let t=p.useContext(e2);return t||E(!1),t}function rx(e){let t=p.useContext(e5);return t||E(!1),t}function rC(e,t){let{target:r,replace:n,state:a,preventScrollReset:o,relative:i,viewTransition:l}=void 0===t?{}:t,s=tl(),u=tn(),c=th(e,{relative:i});return p.useCallback(t=>{0!==t.button||r&&"_self"!==r||t.metaKey||t.altKey||t.ctrlKey||t.shiftKey||(t.preventDefault(),s(e,{replace:void 0!==n?n:C(u)===C(c),state:a,preventScrollReset:o,relative:i,viewTransition:l}))},[u,s,c,n,a,r,e,o,i,l])}function rP(e){let t=p.useRef(t5(e)),r=p.useRef(!1),n=tn(),a=p.useMemo(()=>{var e,a;let o;return e=n.search,a=r.current?null:t.current,o=t5(e),a&&a.forEach((e,t)=>{o.has(t)||a.getAll(t).forEach(e=>{o.append(t,e)})}),o},[n.search]),o=tl(),i=p.useCallback((e,t)=>{let n=t5("function"==typeof e?e(a):e);r.current=!0,o("?"+n,t)},[o,a]);return[a,i]}(s=h||(h={})).UseScrollRestoration="useScrollRestoration",s.UseSubmit="useSubmit",s.UseSubmitFetcher="useSubmitFetcher",s.UseFetcher="useFetcher",s.useViewTransitionState="useViewTransitionState",(u=f||(f={})).UseFetcher="useFetcher",u.UseFetchers="useFetchers",u.UseScrollRestoration="useScrollRestoration";let rD=0,rL=()=>"__"+String(++rD)+"__";function rk(){let{router:e}=rR(h.UseSubmit),{basename:t}=p.useContext(e6),r=tx();return p.useCallback(function(n,a){if(void 0===a&&(a={}),"undefined"==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(t2(e)&&"form"===e.tagName.toLowerCase()){let i=e.getAttribute("action");n=i?N(i,t):null,r=e.getAttribute("method")||"get",a=t9(e.getAttribute("enctype"))||t4,o=new FormData(e)}else if(t2(e)&&"button"===e.tagName.toLowerCase()||t2(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?N(l,t):null,r=e.getAttribute("formmethod")||i.getAttribute("method")||"get",a=t9(e.getAttribute("formenctype"))||t9(i.getAttribute("enctype"))||t4,o=new FormData(i,e),!function(){if(null===t3)try{new FormData(document.createElement("form"),0),t3=!1}catch(e){t3=!0}return t3}()){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(t2(e))throw Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');else r="get",n=null,a=t4,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||rL();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 r_(e,t){let{relative:r}=void 0===t?{}:t,{basename:n}=p.useContext(e6),a=p.useContext(e8);a||E(!1);let[o]=a.matches.slice(-1),i=t1({},th(e||".",{relative:r})),l=tn();if(null==e){i.search=l.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:J([n,i.pathname])),C(i)}function rA(e){var t;let{key:r}=void 0===e?{}:e,{router:n}=rR(h.UseFetcher),a=rx(f.UseFetcher),o=p.useContext(ri),i=p.useContext(e8),l=null==(t=i.matches[i.matches.length-1])?void 0:t.route.id;o||E(!1),i||E(!1),null==l&&E(!1);let s=ru?ru():"",[u,c]=p.useState(r||s);r&&r!==u?c(r):u||c(rL()),p.useEffect(()=>(n.getFetcher(u),()=>{n.deleteFetcher(u)}),[n,u]);let d=p.useCallback((e,t)=>{l||E(!1),n.fetch(u,l,e,t)},[u,l,n]),m=rk(),v=p.useCallback((e,t)=>{m(e,t1({},t,{navigate:!1,fetcherKey:u}))},[u,m]),y=p.useMemo(()=>p.forwardRef((e,t)=>p.createElement(rE,t1({},e,{navigate:!1,fetcherKey:u,ref:t}))),[u]),g=a.fetchers.get(u)||ed,b=o.get(u);return p.useMemo(()=>t1({Form:y,submit:v,load:d},g,{data:b}),[y,v,d,g,b])}function rT(){return Array.from(rx(f.UseFetchers).fetchers.entries()).map(e=>{let[t,r]=e;return t1({},r,{key:t})})}let rU="react-router-scroll-positions",rj={};function rM(e){let{getKey:t,storageKey:r}=void 0===e?{}:e,{router:n}=rR(h.UseScrollRestoration),{restoreScrollPosition:a,preventScrollReset:o}=rx(f.UseScrollRestoration),{basename:i}=p.useContext(e6),l=tn(),s=tD(),u=tC();p.useEffect(()=>(window.history.scrollRestoration="manual",()=>{window.history.scrollRestoration="auto"}),[]),function(e,t){let{capture:r}={};p.useEffect(()=>{let t=null!=r?{capture:r}:void 0;return window.addEventListener("pagehide",e,t),()=>{window.removeEventListener("pagehide",e,t)}},[e,r])}(p.useCallback(()=>{"idle"===u.state&&(rj[(t?t(l,s):null)||l.key]=window.scrollY);try{sessionStorage.setItem(r||rU,JSON.stringify(rj))}catch(e){}window.history.scrollRestoration="auto"},[r,t,u.state,l,s])),"undefined"!=typeof document&&(p.useLayoutEffect(()=>{try{let e=sessionStorage.getItem(r||rU);e&&(rj=JSON.parse(e))}catch(e){}},[r]),p.useLayoutEffect(()=>{let e=t&&"/"!==i?(e,r)=>t(t1({},e,{pathname:N(e.pathname,i)||e.pathname}),r):t,r=null==n?void 0:n.enableScrollRestoration(rj,()=>window.scrollY,e);return()=>r&&r()},[n,i,t]),p.useLayoutEffect(()=>{if(!1!==a){if("number"==typeof a)return void window.scrollTo(0,a);if(l.hash){let e=document.getElementById(decodeURIComponent(l.hash.slice(1)));if(e)return void e.scrollIntoView()}!0!==o&&window.scrollTo(0,0)}},[l,a,o]))}function rO(e,t){let{capture:r}=t||{};p.useEffect(()=>{let t=null!=r?{capture:r}:void 0;return window.addEventListener("beforeunload",e,t),()=>{window.removeEventListener("beforeunload",e,t)}},[e,r])}function rF(e){let{when:t,message:r}=e,n=tM(t);p.useEffect(()=>{"blocked"===n.state&&(window.confirm(r)?setTimeout(n.proceed,0):n.reset())},[n,r]),p.useEffect(()=>{"blocked"!==n.state||t||n.reset()},[n,t])}function rN(e,t){void 0===t&&(t={});let r=p.useContext(ro);null==r&&E(!1);let{basename:n}=rR(h.useViewTransitionState),a=th(e,{relative:t.relative});if(!r.isTransitioning)return!1;let o=N(r.currentLocation.pathname,n)||r.currentLocation.pathname,i=N(r.nextLocation.pathname,n)||r.nextLocation.pathname;return null!=O(a.pathname,i)||null!=O(a.pathname,o)}}}]);
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @remix-run/router v1.23.0
2
+ * @remix-run/router v1.23.2
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -10,7 +10,7 @@
10
10
  */
11
11
 
12
12
  /**
13
- * React Router DOM v6.30.0
13
+ * React Router DOM v6.30.3
14
14
  *
15
15
  * Copyright (c) Remix Software Inc.
16
16
  *
@@ -21,7 +21,7 @@
21
21
  */
22
22
 
23
23
  /**
24
- * React Router v6.30.0
24
+ * React Router v6.30.3
25
25
  *
26
26
  * Copyright (c) Remix Software Inc.
27
27
  *
@@ -1 +1 @@
1
- "use strict";(self.chunk_Prometheus=self.chunk_Prometheus||[]).push([["5214"],{81228:function(e,t,s){s.r(t),s.d(t,{toNestErrors:()=>f,validateFieldsNatively:()=>l});var i=s(57576);let r=(e,t,s)=>{if(e&&"reportValidity"in e){let r=(0,i.get)(s,t);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},l=(e,t)=>{for(let s in t.fields){let i=t.fields[s];i&&i.ref&&"reportValidity"in i.ref?r(i.ref,s,e):i.refs&&i.refs.forEach(t=>r(t,s,e))}},f=(e,t)=>{t.shouldUseNativeValidation&&l(e,t);let s={};for(let r in e){let l=(0,i.get)(t.fields,r),f=Object.assign(e[r]||{},{ref:l&&l.ref});if(a(t.names||Object.keys(e),r)){let e=Object.assign({},(0,i.get)(s,r));(0,i.set)(e,"root",f),(0,i.set)(s,r,e)}else(0,i.set)(s,r,f)}return s},a=(e,t)=>e.some(e=>e.startsWith(t+"."))}}]);
1
+ "use strict";(self.chunk_Prometheus=self.chunk_Prometheus||[]).push([["5587"],{75150:function(e,t,s){s.r(t),s.d(t,{toNestErrors:()=>f,validateFieldsNatively:()=>l});var i=s(72694);let r=(e,t,s)=>{if(e&&"reportValidity"in e){let r=(0,i.get)(s,t);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},l=(e,t)=>{for(let s in t.fields){let i=t.fields[s];i&&i.ref&&"reportValidity"in i.ref?r(i.ref,s,e):i.refs&&i.refs.forEach(t=>r(t,s,e))}},f=(e,t)=>{t.shouldUseNativeValidation&&l(e,t);let s={};for(let r in e){let l=(0,i.get)(t.fields,r),f=Object.assign(e[r]||{},{ref:l&&l.ref});if(a(t.names||Object.keys(e),r)){let e=Object.assign({},(0,i.get)(s,r));(0,i.set)(e,"root",f),(0,i.set)(s,r,e)}else(0,i.set)(s,r,f)}return s},a=(e,t)=>e.some(e=>e.startsWith(t+"."))}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.chunk_Prometheus=self.chunk_Prometheus||[]).push([["5763"],{315:function(e,t,n){n.d(t,{A:()=>u});var o=n(68335),r=n(77308),i=n(72052);let u=(0,o.A)({createStyledComponent:(0,r.A)("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>(0,i.b)({props:e,name:"MuiStack"})})},8072:function(e,t,n){n.d(t,{A:()=>a});var o=n(70451),r=n(31789),i=n(70320),u=n(45827);let l={...o}.useSyncExternalStore;function c(e={}){let{themeId:t}=e;return function(e,n={}){let c=(0,u.A)();c&&t&&(c=c[t]||c);let a="undefined"!=typeof window&&void 0!==window.matchMedia,{defaultMatches:s=!1,matchMedia:d=a?window.matchMedia:null,ssrMatchMedia:f=null,noSsr:m=!1}=(0,i.A)({name:"MuiUseMediaQuery",props:n,theme:c}),p="function"==typeof e?e(c):e;return(void 0!==l?function(e,t,n,r,i){let u=o.useCallback(()=>t,[t]),c=o.useMemo(()=>{if(i&&n)return()=>n(e).matches;if(null!==r){let{matches:t}=r(e);return()=>t}return u},[u,e,r,i,n]),[a,s]=o.useMemo(()=>{if(null===n)return[u,()=>()=>{}];let t=n(e);return[()=>t.matches,e=>(t.addEventListener("change",e),()=>{t.removeEventListener("change",e)})]},[u,n,e]);return l(s,a,c)}:function(e,t,n,i,u){let[l,c]=o.useState(()=>u&&n?n(e).matches:i?i(e).matches:t);return(0,r.A)(()=>{if(!n)return;let t=n(e),o=()=>{c(t.matches)};return o(),t.addEventListener("change",o),()=>{t.removeEventListener("change",o)}},[e,n]),l})(p=p.replace(/^@media( ?)/m,""),s,d,f,m)}}c();let a=c({themeId:n(93724).A})},68335:function(e,t,n){n.d(t,{A:()=>k});var o=n(70451),r=n(11750),i=n(6121),u=n(46733),l=n(81023),c=n(7939),a=n(51327),s=n(20523),d=n(80787),f=n(85351),m=n(89187),p=n(62540);let v=(0,d.A)(),h=(0,c.A)("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function A(e){return(0,a.A)({props:e,name:"MuiStack",defaultTheme:v})}let y=({ownerState:e,theme:t})=>{let n={display:"flex",flexDirection:"column",...(0,f.NI)({theme:t},(0,f.kW)({values:e.direction,breakpoints:t.breakpoints.values}),e=>({flexDirection:e}))};if(e.spacing){let o=(0,m.LX)(t),r=Object.keys(t.breakpoints.values).reduce((t,n)=>(("object"==typeof e.spacing&&null!=e.spacing[n]||"object"==typeof e.direction&&null!=e.direction[n])&&(t[n]=!0),t),{}),u=(0,f.kW)({values:e.direction,base:r}),l=(0,f.kW)({values:e.spacing,base:r});"object"==typeof u&&Object.keys(u).forEach((e,t,n)=>{if(!u[e]){let o=t>0?u[n[t-1]]:"column";u[e]=o}}),n=(0,i.A)(n,(0,f.NI)({theme:t},l,(t,n)=>e.useFlexGap?{gap:(0,m._W)(o,t)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[n?u[n]:e.direction]}`]:(0,m._W)(o,t)}}))}return(0,f.iZ)(t.breakpoints,n)};function k(e={}){let{createStyledComponent:t=h,useThemeProps:n=A,componentName:i="MuiStack"}=e,c=t(y);return o.forwardRef(function(e,t){let a,d=n(e),{component:f="div",direction:m="column",spacing:v=0,divider:h,children:A,className:y,useFlexGap:k=!1,...g}=(0,s.A)(d),b=(0,l.A)({root:["root"]},e=>(0,u.Ay)(i,e),{});return(0,p.jsx)(c,{as:f,ownerState:{direction:m,spacing:v,useFlexGap:k},ref:t,className:(0,r.A)(b.root,y),...g,children:h?(a=o.Children.toArray(A).filter(Boolean)).reduce((e,t,n)=>(e.push(t),n<a.length-1&&e.push(o.cloneElement(h,{key:`separator-${n}`})),e),[]):A})})}},7939:function(e,t,n){n.d(t,{A:()=>o});let o=(0,n(57867).Ay)()},70320:function(e,t,n){n.d(t,{A:()=>r});var o=n(52215);function r(e){let{theme:t,name:n,props:r}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?(0,o.A)(t.components[n].defaultProps,r):r}},51327:function(e,t,n){n.d(t,{A:()=>i});var o=n(70320),r=n(26041);function i({props:e,name:t,defaultTheme:n,themeId:i}){let u=(0,r.A)(n);return i&&(u=u[i]||u),(0,o.A)({theme:u,name:t,props:e})}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.chunk_Prometheus=self.chunk_Prometheus||[]).push([["5922"],{5611:function(e,t,r){r.d(t,{A:()=>X});var o,a,n=r(70451),l=r(11750),i=r(81023),s=r(59238),c=r(81227),p=r(48865),d=r(77308),u=r(23434),g=r(72052),f=r(24726),m=r(29009),h=r(46733);function v(e){return(0,h.Ay)("MuiListSubheader",e)}(0,m.A)("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);var b=r(62540);let y=(0,d.A)("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,"default"!==r.color&&t[`color${(0,f.A)(r.color)}`],!r.disableGutters&&t.gutters,r.inset&&t.inset,!r.disableSticky&&t.sticky]}})((0,u.A)(({theme:e})=>({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14),variants:[{props:{color:"primary"},style:{color:(e.vars||e).palette.primary.main}},{props:{color:"inherit"},style:{color:"inherit"}},{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:72}},{props:({ownerState:e})=>!e.disableSticky,style:{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper}}]}))),A=n.forwardRef(function(e,t){let r=(0,g.b)({props:e,name:"MuiListSubheader"}),{className:o,color:a="default",component:n="li",disableGutters:s=!1,disableSticky:c=!1,inset:p=!1,...d}=r,u={...r,color:a,component:n,disableGutters:s,disableSticky:c,inset:p},m=(e=>{let{classes:t,color:r,disableGutters:o,inset:a,disableSticky:n}=e,l={root:["root","default"!==r&&`color${(0,f.A)(r)}`,!o&&"gutters",a&&"inset",!n&&"sticky"]};return(0,i.A)(l,v,t)})(u);return(0,b.jsx)(y,{as:n,className:(0,l.A)(m.root,o),ref:t,ownerState:u,...d})});A&&(A.muiSkipListHighlight=!0);var x=r(11502),$=r(47095),C=r(47601),k=r(63095),S=r(35931),I=r(8323),w=r(52131),R=r(17834),P=r(94886);function L(e){return(0,h.Ay)("MuiAutocomplete",e)}let O=(0,m.A)("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]);var M=r(73397);let T=(0,d.A)("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e,{fullWidth:o,hasClearIcon:a,hasPopupIcon:n,inputFocused:l,size:i}=r;return[{[`& .${O.tag}`]:t.tag},{[`& .${O.tag}`]:t[`tagSize${(0,f.A)(i)}`]},{[`& .${O.inputRoot}`]:t.inputRoot},{[`& .${O.input}`]:t.input},{[`& .${O.input}`]:l&&t.inputFocused},t.root,o&&t.fullWidth,n&&t.hasPopupIcon,a&&t.hasClearIcon]}})({[`&.${O.focused} .${O.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${O.clearIndicator}`]:{visibility:"visible"}},[`& .${O.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${O.inputRoot}`]:{[`.${O.hasPopupIcon}&, .${O.hasClearIcon}&`]:{paddingRight:30},[`.${O.hasPopupIcon}.${O.hasClearIcon}&`]:{paddingRight:56},[`& .${O.input}`]:{width:0,minWidth:30}},[`& .${k.A.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${k.A.root}.${S.A.sizeSmall}`]:{[`& .${k.A.input}`]:{padding:"2px 4px 3px 0"}},[`& .${I.A.root}`]:{padding:9,[`.${O.hasPopupIcon}&, .${O.hasClearIcon}&`]:{paddingRight:39},[`.${O.hasPopupIcon}.${O.hasClearIcon}&`]:{paddingRight:65},[`& .${O.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${O.endAdornment}`]:{right:9}},[`& .${I.A.root}.${S.A.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${O.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${w.A.root}`]:{paddingTop:19,paddingLeft:8,[`.${O.hasPopupIcon}&, .${O.hasClearIcon}&`]:{paddingRight:39},[`.${O.hasPopupIcon}.${O.hasClearIcon}&`]:{paddingRight:65},[`& .${w.A.input}`]:{padding:"7px 4px"},[`& .${O.endAdornment}`]:{right:9}},[`& .${w.A.root}.${S.A.sizeSmall}`]:{paddingBottom:1,[`& .${w.A.input}`]:{padding:"2.5px 4px"}},[`& .${S.A.hiddenLabel}`]:{paddingTop:8},[`& .${w.A.root}.${S.A.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${O.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${w.A.root}.${S.A.hiddenLabel}.${S.A.sizeSmall}`]:{[`& .${O.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${O.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${O.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${O.input}`]:{opacity:1}}},{props:{multiple:!0},style:{[`& .${O.inputRoot}`]:{flexWrap:"wrap"}}}]}),z=(0,d.A)("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),D=(0,d.A)($.A,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),N=(0,d.A)($.A,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.popupIndicator,r.popupOpen&&t.popupIndicatorOpen]}})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:"rotate(180deg)"}}]}),j=(0,d.A)(p.A,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[{[`& .${O.option}`]:t.option},t.popper,r.disablePortal&&t.popperDisablePortal]}})((0,u.A)(({theme:e})=>({zIndex:(e.vars||e).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]}))),V=(0,d.A)(x.A,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})((0,u.A)(({theme:e})=>({...e.typography.body1,overflow:"auto"}))),B=(0,d.A)("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})((0,u.A)(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),E=(0,d.A)("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})((0,u.A)(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),F=(0,d.A)("ul",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})((0,u.A)(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${O.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${O.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${O.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,s.X4)(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${O.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,s.X4)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${O.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,s.X4)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}}))),H=(0,d.A)(A,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})((0,u.A)(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8}))),W=(0,d.A)("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${O.option}`]:{paddingLeft:24}}),X=n.forwardRef(function(e,t){let r,s=(0,g.b)({props:e,name:"MuiAutocomplete"}),{autoComplete:d=!1,autoHighlight:u=!1,autoSelect:m=!1,blurOnSelect:h=!1,ChipProps:v,className:y,clearIcon:A=o||(o=(0,b.jsx)(R.A,{fontSize:"small"})),clearOnBlur:$=!s.freeSolo,clearOnEscape:k=!1,clearText:S="Clear",closeText:I="Close",componentsProps:w,defaultValue:O=s.multiple?[]:null,disableClearable:X=!1,disableCloseOnSelect:q=!1,disabled:K=!1,disabledItemsFocusable:U=!1,disableListWrap:G=!1,disablePortal:_=!1,filterOptions:Z,filterSelectedOptions:J=!1,forcePopupIcon:Q="auto",freeSolo:Y=!1,fullWidth:ee=!1,getLimitTagsText:et=e=>`+${e}`,getOptionDisabled:er,getOptionKey:eo,getOptionLabel:ea,isOptionEqualToValue:en,groupBy:el,handleHomeEndKeys:ei=!s.freeSolo,id:es,includeInputInList:ec=!1,inputValue:ep,limitTags:ed=-1,ListboxComponent:eu,ListboxProps:eg,loading:ef=!1,loadingText:em="Loading…",multiple:eh=!1,noOptionsText:ev="No options",onChange:eb,onClose:ey,onHighlightChange:eA,onInputChange:ex,onOpen:e$,open:eC,openOnFocus:ek=!1,openText:eS="Open",options:eI,PaperComponent:ew,PopperComponent:eR,popupIcon:eP=a||(a=(0,b.jsx)(P.A,{})),readOnly:eL=!1,renderGroup:eO,renderInput:eM,renderOption:eT,renderTags:ez,selectOnFocus:eD=!s.freeSolo,size:eN="medium",slots:ej={},slotProps:eV={},value:eB,...eE}=s,{getRootProps:eF,getInputProps:eH,getInputLabelProps:eW,getPopupIndicatorProps:eX,getClearProps:eq,getTagProps:eK,getListboxProps:eU,getOptionProps:eG,value:e_,dirty:eZ,expanded:eJ,id:eQ,popupOpen:eY,focused:e0,focusedTag:e1,anchorEl:e2,setAnchorEl:e4,inputValue:e3,groupedOptions:e7}=(0,c.A)({...s,componentName:"Autocomplete"}),e5=!X&&!K&&eZ&&!eL,e9=(!Y||!0===Q)&&!1!==Q,{onMouseDown:e6}=eH(),{ref:e8,...te}=eU(),tt=ea||(e=>e.label??e),tr={...s,disablePortal:_,expanded:eJ,focused:e0,fullWidth:ee,getOptionLabel:tt,hasClearIcon:e5,hasPopupIcon:e9,inputFocused:-1===e1,popupOpen:eY,size:eN},to=(e=>{let{classes:t,disablePortal:r,expanded:o,focused:a,fullWidth:n,hasClearIcon:l,hasPopupIcon:s,inputFocused:c,popupOpen:p,size:d}=e,u={root:["root",o&&"expanded",a&&"focused",n&&"fullWidth",l&&"hasClearIcon",s&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",c&&"inputFocused"],tag:["tag",`tagSize${(0,f.A)(d)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",p&&"popupIndicatorOpen"],popper:["popper",r&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return(0,i.A)(u,L,t)})(tr),ta={slots:{paper:ew,popper:eR,...ej},slotProps:{chip:v,listbox:eg,...w,...eV}},[tn,tl]=(0,M.A)("listbox",{elementType:F,externalForwardedProps:ta,ownerState:tr,className:to.listbox,additionalProps:te,ref:e8}),[ti,ts]=(0,M.A)("paper",{elementType:x.A,externalForwardedProps:ta,ownerState:tr,className:to.paper}),[tc,tp]=(0,M.A)("popper",{elementType:p.A,externalForwardedProps:ta,ownerState:tr,className:to.popper,additionalProps:{disablePortal:_,style:{width:e2?e2.clientWidth:null},role:"presentation",anchorEl:e2,open:eY}});if(eh&&e_.length>0){let e=e=>({className:to.tag,disabled:K,...eK(e)});r=ez?ez(e_,e,tr):e_.map((t,r)=>{let{key:o,...a}=e({index:r});return(0,b.jsx)(C.A,{label:tt(t),size:eN,...a,...ta.slotProps.chip},o)})}if(ed>-1&&Array.isArray(r)){let e=r.length-ed;!e0&&e>0&&(r=r.splice(0,ed)).push((0,b.jsx)("span",{className:to.tag,children:et(e)},r.length))}let td=eO||(e=>(0,b.jsxs)("li",{children:[(0,b.jsx)(H,{className:to.groupLabel,ownerState:tr,component:"div",children:e.group}),(0,b.jsx)(W,{className:to.groupUl,ownerState:tr,children:e.children})]},e.key)),tu=eT||((e,t)=>{let{key:r,...o}=e;return(0,b.jsx)("li",{...o,children:tt(t)},r)}),tg=(e,t)=>{let r=eG({option:e,index:t});return tu({...r,className:to.option},e,{selected:r["aria-selected"],index:t,inputValue:e3},tr)},tf=ta.slotProps.clearIndicator,tm=ta.slotProps.popupIndicator;return(0,b.jsxs)(n.Fragment,{children:[(0,b.jsx)(T,{ref:t,className:(0,l.A)(to.root,y),ownerState:tr,...eF(eE),children:eM({id:eQ,disabled:K,fullWidth:!0,size:"small"===eN?"small":void 0,InputLabelProps:eW(),InputProps:{ref:e4,className:to.inputRoot,startAdornment:r,onMouseDown:e=>{e.target===e.currentTarget&&e6(e)},...(e5||e9)&&{endAdornment:(0,b.jsxs)(z,{className:to.endAdornment,ownerState:tr,children:[e5?(0,b.jsx)(D,{...eq(),"aria-label":S,title:S,ownerState:tr,...tf,className:(0,l.A)(to.clearIndicator,tf?.className),children:A}):null,e9?(0,b.jsx)(N,{...eX(),disabled:K,"aria-label":eY?I:eS,title:eY?I:eS,ownerState:tr,...tm,className:(0,l.A)(to.popupIndicator,tm?.className),children:eP}):null]})}},inputProps:{className:to.input,disabled:K,readOnly:eL,...eH()}})}),e2?(0,b.jsx)(j,{as:tc,...tp,children:(0,b.jsxs)(V,{as:ti,...ts,children:[ef&&0===e7.length?(0,b.jsx)(B,{className:to.loading,ownerState:tr,children:em}):null,0!==e7.length||Y||ef?null:(0,b.jsx)(E,{className:to.noOptions,ownerState:tr,role:"presentation",onMouseDown:e=>{e.preventDefault()},children:ev}),e7.length>0?(0,b.jsx)(tn,{as:eu,...tl,children:e7.map((e,t)=>el?td({key:e.key,group:e.group,children:e.options.map((t,r)=>tg(t,e.index+r))}):tg(e,t))}):null]})}):null]})})},47601:function(e,t,r){r.d(t,{A:()=>k});var o=r(70451),a=r(11750),n=r(81023),l=r(59238),i=r(22402),s=r(62540);let c=(0,i.A)((0,s.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");var p=r(29424),d=r(24726),u=r(1337),g=r(77308),f=r(23434),m=r(26952),h=r(72052),v=r(29009),b=r(46733);function y(e){return(0,b.Ay)("MuiChip",e)}let A=(0,v.A)("MuiChip",["root","sizeSmall","sizeMedium","colorDefault","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),x=(0,g.A)("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e,{color:o,iconColor:a,clickable:n,onDelete:l,size:i,variant:s}=r;return[{[`& .${A.avatar}`]:t.avatar},{[`& .${A.avatar}`]:t[`avatar${(0,d.A)(i)}`]},{[`& .${A.avatar}`]:t[`avatarColor${(0,d.A)(o)}`]},{[`& .${A.icon}`]:t.icon},{[`& .${A.icon}`]:t[`icon${(0,d.A)(i)}`]},{[`& .${A.icon}`]:t[`iconColor${(0,d.A)(a)}`]},{[`& .${A.deleteIcon}`]:t.deleteIcon},{[`& .${A.deleteIcon}`]:t[`deleteIcon${(0,d.A)(i)}`]},{[`& .${A.deleteIcon}`]:t[`deleteIconColor${(0,d.A)(o)}`]},{[`& .${A.deleteIcon}`]:t[`deleteIcon${(0,d.A)(s)}Color${(0,d.A)(o)}`]},t.root,t[`size${(0,d.A)(i)}`],t[`color${(0,d.A)(o)}`],n&&t.clickable,n&&"default"!==o&&t[`clickableColor${(0,d.A)(o)})`],l&&t.deletable,l&&"default"!==o&&t[`deletableColor${(0,d.A)(o)}`],t[s],t[`${s}${(0,d.A)(o)}`]]}})((0,f.A)(({theme:e})=>{let t="light"===e.palette.mode?e.palette.grey[700]:e.palette.grey[300];return{maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:16,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${A.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${A.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${A.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${A.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${A.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${A.icon}`]:{marginLeft:5,marginRight:-6},[`& .${A.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:(0,l.X4)(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:(0,l.X4)(e.palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${A.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${A.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter((0,m.A)(["contrastText"])).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main,color:(e.vars||e).palette[t].contrastText,[`& .${A.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t].contrastTextChannel} / 0.7)`:(0,l.X4)(e.palette[t].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t].contrastText}}}})),{props:e=>e.iconColor===e.color,style:{[`& .${A.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:e=>e.iconColor===e.color&&"default"!==e.color,style:{[`& .${A.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${A.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,l.X4)(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}},...Object.entries(e.palette).filter((0,m.A)(["dark"])).map(([t])=>({props:{color:t,onDelete:!0},style:{[`&.${A.focusVisible}`]:{background:(e.vars||e).palette[t].dark}}})),{props:{clickable:!0},style:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,l.X4)(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${A.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,l.X4)(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter((0,m.A)(["dark"])).map(([t])=>({props:{color:t,clickable:!0},style:{[`&:hover, &.${A.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t].dark}}})),{props:{variant:"outlined"},style:{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${"light"===e.palette.mode?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${A.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${A.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${A.avatar}`]:{marginLeft:4},[`& .${A.avatarSmall}`]:{marginLeft:2},[`& .${A.icon}`]:{marginLeft:4},[`& .${A.iconSmall}`]:{marginLeft:2},[`& .${A.deleteIcon}`]:{marginRight:5},[`& .${A.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter((0,m.A)()).map(([t])=>({props:{variant:"outlined",color:t},style:{color:(e.vars||e).palette[t].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t].mainChannel} / 0.7)`:(0,l.X4)(e.palette[t].main,.7)}`,[`&.${A.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,l.X4)(e.palette[t].main,e.palette.action.hoverOpacity)},[`&.${A.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.focusOpacity})`:(0,l.X4)(e.palette[t].main,e.palette.action.focusOpacity)},[`& .${A.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t].mainChannel} / 0.7)`:(0,l.X4)(e.palette[t].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t].main}}}}))]}})),$=(0,g.A)("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{let{ownerState:r}=e,{size:o}=r;return[t.label,t[`label${(0,d.A)(o)}`]]}})({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap",variants:[{props:{variant:"outlined"},style:{paddingLeft:11,paddingRight:11}},{props:{size:"small"},style:{paddingLeft:8,paddingRight:8}},{props:{size:"small",variant:"outlined"},style:{paddingLeft:7,paddingRight:7}}]});function C(e){return"Backspace"===e.key||"Delete"===e.key}let k=o.forwardRef(function(e,t){let r=(0,h.b)({props:e,name:"MuiChip"}),{avatar:l,className:i,clickable:g,color:f="default",component:m,deleteIcon:v,disabled:b=!1,icon:A,label:k,onClick:S,onDelete:I,onKeyDown:w,onKeyUp:R,size:P="medium",variant:L="filled",tabIndex:O,skipFocusWhenDisabled:M=!1,...T}=r,z=o.useRef(null),D=(0,p.A)(z,t),N=e=>{e.stopPropagation(),I&&I(e)},j=!1!==g&&!!S||g,V=j||I?u.A:m||"div",B={...r,component:V,disabled:b,size:P,color:f,iconColor:o.isValidElement(A)&&A.props.color||f,onDelete:!!I,clickable:j,variant:L},E=(e=>{let{classes:t,disabled:r,size:o,color:a,iconColor:l,onDelete:i,clickable:s,variant:c}=e,p={root:["root",c,r&&"disabled",`size${(0,d.A)(o)}`,`color${(0,d.A)(a)}`,s&&"clickable",s&&`clickableColor${(0,d.A)(a)}`,i&&"deletable",i&&`deletableColor${(0,d.A)(a)}`,`${c}${(0,d.A)(a)}`],label:["label",`label${(0,d.A)(o)}`],avatar:["avatar",`avatar${(0,d.A)(o)}`,`avatarColor${(0,d.A)(a)}`],icon:["icon",`icon${(0,d.A)(o)}`,`iconColor${(0,d.A)(l)}`],deleteIcon:["deleteIcon",`deleteIcon${(0,d.A)(o)}`,`deleteIconColor${(0,d.A)(a)}`,`deleteIcon${(0,d.A)(c)}Color${(0,d.A)(a)}`]};return(0,n.A)(p,y,t)})(B),F=V===u.A?{component:m||"div",focusVisibleClassName:E.focusVisible,...I&&{disableRipple:!0}}:{},H=null;I&&(H=v&&o.isValidElement(v)?o.cloneElement(v,{className:(0,a.A)(v.props.className,E.deleteIcon),onClick:N}):(0,s.jsx)(c,{className:(0,a.A)(E.deleteIcon),onClick:N}));let W=null;l&&o.isValidElement(l)&&(W=o.cloneElement(l,{className:(0,a.A)(E.avatar,l.props.className)}));let X=null;return A&&o.isValidElement(A)&&(X=o.cloneElement(A,{className:(0,a.A)(E.icon,A.props.className)})),(0,s.jsxs)(x,{as:V,className:(0,a.A)(E.root,i),disabled:!!j&&!!b||void 0,onClick:S,onKeyDown:e=>{e.currentTarget===e.target&&C(e)&&e.preventDefault(),w&&w(e)},onKeyUp:e=>{e.currentTarget===e.target&&I&&C(e)&&I(e),R&&R(e)},ref:D,tabIndex:M&&b?-1:O,ownerState:B,...F,...T,children:[W||X,(0,s.jsx)($,{className:(0,a.A)(E.label),ownerState:B,children:k}),H]})})},6227:function(e,t,r){r.d(t,{A:()=>m});var o=r(70451),a=r(11750),n=r(81023),l=r(59238),i=r(77308),s=r(23434),c=r(72052),p=r(30119),d=r(62540);let u=(0,i.A)("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.absolute&&t.absolute,t[r.variant],r.light&&t.light,"vertical"===r.orientation&&t.vertical,r.flexItem&&t.flexItem,r.children&&t.withChildren,r.children&&"vertical"===r.orientation&&t.withChildrenVertical,"right"===r.textAlign&&"vertical"!==r.orientation&&t.textAlignRight,"left"===r.textAlign&&"vertical"!==r.orientation&&t.textAlignLeft]}})((0,s.A)(({theme:e})=>({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin",variants:[{props:{absolute:!0},style:{position:"absolute",bottom:0,left:0,width:"100%"}},{props:{light:!0},style:{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:(0,l.X4)(e.palette.divider,.08)}},{props:{variant:"inset"},style:{marginLeft:72}},{props:{variant:"middle",orientation:"horizontal"},style:{marginLeft:e.spacing(2),marginRight:e.spacing(2)}},{props:{variant:"middle",orientation:"vertical"},style:{marginTop:e.spacing(1),marginBottom:e.spacing(1)}},{props:{orientation:"vertical"},style:{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"}},{props:{flexItem:!0},style:{alignSelf:"stretch",height:"auto"}},{props:({ownerState:e})=>!!e.children,style:{display:"flex",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}},{props:({ownerState:e})=>e.children&&"vertical"!==e.orientation,style:{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}},{props:({ownerState:e})=>"vertical"===e.orientation&&e.children,style:{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}},{props:({ownerState:e})=>"right"===e.textAlign&&"vertical"!==e.orientation,style:{"&::before":{width:"90%"},"&::after":{width:"10%"}}},{props:({ownerState:e})=>"left"===e.textAlign&&"vertical"!==e.orientation,style:{"&::before":{width:"10%"},"&::after":{width:"90%"}}}]}))),g=(0,i.A)("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.wrapper,"vertical"===r.orientation&&t.wrapperVertical]}})((0,s.A)(({theme:e})=>({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`,whiteSpace:"nowrap",variants:[{props:{orientation:"vertical"},style:{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}}]}))),f=o.forwardRef(function(e,t){let r=(0,c.b)({props:e,name:"MuiDivider"}),{absolute:o=!1,children:l,className:i,orientation:s="horizontal",component:f=l||"vertical"===s?"div":"hr",flexItem:m=!1,light:h=!1,role:v="hr"!==f?"separator":void 0,textAlign:b="center",variant:y="fullWidth",...A}=r,x={...r,absolute:o,component:f,flexItem:m,light:h,orientation:s,role:v,textAlign:b,variant:y},$=(e=>{let{absolute:t,children:r,classes:o,flexItem:a,light:l,orientation:i,textAlign:s,variant:c}=e;return(0,n.A)({root:["root",t&&"absolute",c,l&&"light","vertical"===i&&"vertical",a&&"flexItem",r&&"withChildren",r&&"vertical"===i&&"withChildrenVertical","right"===s&&"vertical"!==i&&"textAlignRight","left"===s&&"vertical"!==i&&"textAlignLeft"],wrapper:["wrapper","vertical"===i&&"wrapperVertical"]},p.K,o)})(x);return(0,d.jsx)(u,{as:f,className:(0,a.A)($.root,i),role:v,ref:t,ownerState:x,"aria-orientation":"separator"===v&&("hr"!==f||"vertical"===s)?s:void 0,...A,children:l?(0,d.jsx)(g,{className:$.wrapper,ownerState:x,children:l}):null})});f&&(f.muiSkipListHighlight=!0);let m=f},30119:function(e,t,r){r.d(t,{A:()=>l,K:()=>n});var o=r(29009),a=r(46733);function n(e){return(0,a.Ay)("MuiDivider",e)}let l=(0,o.A)("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"])},10740:function(e,t,r){r.d(t,{A:()=>x});var o=r(70451),a=r(11750),n=r(81023),l=r(42872),i=r(77308),s=r(23434),c=r(72052),p=r(88091),d=r(24726),u=r(29009),g=r(46733);function f(e){return(0,g.Ay)("MuiFormControlLabel",e)}let m=(0,u.A)("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]);var h=r(87842),v=r(73397),b=r(62540);let y=(0,i.A)("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[{[`& .${m.label}`]:t.label},t.root,t[`labelPlacement${(0,d.A)(r.labelPlacement)}`]]}})((0,s.A)(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${m.disabled}`]:{cursor:"default"},[`& .${m.label}`]:{[`&.${m.disabled}`]:{color:(e.vars||e).palette.text.disabled}},variants:[{props:{labelPlacement:"start"},style:{flexDirection:"row-reverse",marginRight:-11}},{props:{labelPlacement:"top"},style:{flexDirection:"column-reverse"}},{props:{labelPlacement:"bottom"},style:{flexDirection:"column"}},{props:({labelPlacement:e})=>"start"===e||"top"===e||"bottom"===e,style:{marginLeft:16}}]}))),A=(0,i.A)("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})((0,s.A)(({theme:e})=>({[`&.${m.error}`]:{color:(e.vars||e).palette.error.main}}))),x=o.forwardRef(function(e,t){let r=(0,c.b)({props:e,name:"MuiFormControlLabel"}),{checked:i,className:s,componentsProps:u={},control:g,disabled:m,disableTypography:x,inputRef:$,label:C,labelPlacement:k="end",name:S,onChange:I,required:w,slots:R={},slotProps:P={},value:L,...O}=r,M=(0,l.A)(),T=m??g.props.disabled??M?.disabled,z=w??g.props.required,D={disabled:T,required:z};["checked","name","onChange","value","inputRef"].forEach(e=>{void 0===g.props[e]&&void 0!==r[e]&&(D[e]=r[e])});let N=(0,h.A)({props:r,muiFormControl:M,states:["error"]}),j={...r,disabled:T,labelPlacement:k,required:z,error:N.error},V=(e=>{let{classes:t,disabled:r,labelPlacement:o,error:a,required:l}=e,i={root:["root",r&&"disabled",`labelPlacement${(0,d.A)(o)}`,a&&"error",l&&"required"],label:["label",r&&"disabled"],asterisk:["asterisk",a&&"error"]};return(0,n.A)(i,f,t)})(j),B={slots:R,slotProps:{...u,...P}},[E,F]=(0,v.A)("typography",{elementType:p.A,externalForwardedProps:B,ownerState:j}),H=C;return null==H||H.type===p.A||x||(H=(0,b.jsx)(E,{component:"span",...F,className:(0,a.A)(V.label,F?.className),children:H})),(0,b.jsxs)(y,{className:(0,a.A)(V.root,s),ownerState:j,ref:t,...O,children:[o.cloneElement(g,D),z?(0,b.jsxs)("div",{children:[H,(0,b.jsxs)(A,{ownerState:j,"aria-hidden":!0,className:V.asterisk,children:[" ","*"]})]}):H]})})},85397:function(e,t,r){r.d(t,{A:()=>l,b:()=>n});var o=r(29009),a=r(46733);function n(e){return(0,a.Ay)("MuiListItemText",e)}let l=(0,o.A)("MuiListItemText",["root","multiline","dense","inset","primary","secondary"])},97653:function(e,t,r){r.d(t,{A:()=>k});var o=r(70451),a=r(11750),n=r(81023),l=r(59238),i=r(83926),s=r(77308),c=r(23434),p=r(72052),d=r(67214),u=r(1337),g=r(54382),f=r(29424),m=r(30119),h=r(29009);let v=(0,h.A)("MuiListItemIcon",["root","alignItemsFlexStart"]);var b=r(85397),y=r(46733);function A(e){return(0,y.Ay)("MuiMenuItem",e)}let x=(0,h.A)("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);var $=r(62540);let C=(0,s.A)(u.A,{shouldForwardProp:e=>(0,i.A)(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]}})((0,c.A)(({theme:e})=>({...e.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${x.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,l.X4)(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${x.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,l.X4)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${x.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,l.X4)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,l.X4)(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${x.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${x.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${m.A.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${m.A.inset}`]:{marginLeft:52},[`& .${b.A.root}`]:{marginTop:0,marginBottom:0},[`& .${b.A.inset}`]:{paddingLeft:36},[`& .${v.root}`]:{minWidth:36},variants:[{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>e.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:e})=>!e.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:e})=>e.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${v.root} svg`]:{fontSize:"1.25rem"}}}]}))),k=o.forwardRef(function(e,t){let r,l=(0,p.b)({props:e,name:"MuiMenuItem"}),{autoFocus:i=!1,component:s="li",dense:c=!1,divider:u=!1,disableGutters:m=!1,focusVisibleClassName:h,role:v="menuitem",tabIndex:b,className:y,...x}=l,k=o.useContext(d.A),S=o.useMemo(()=>({dense:c||k.dense||!1,disableGutters:m}),[k.dense,c,m]),I=o.useRef(null);(0,g.A)(()=>{i&&I.current&&I.current.focus()},[i]);let w={...l,dense:S.dense,divider:u,disableGutters:m},R=(e=>{let{disabled:t,dense:r,divider:o,disableGutters:a,selected:l,classes:i}=e,s=(0,n.A)({root:["root",r&&"dense",t&&"disabled",!a&&"gutters",o&&"divider",l&&"selected"]},A,i);return{...i,...s}})(l),P=(0,f.A)(I,t);return l.disabled||(r=void 0!==b?b:-1),(0,$.jsx)(d.A.Provider,{value:S,children:(0,$.jsx)(C,{ref:P,role:v,tabIndex:r,component:s,focusVisibleClassName:(0,a.A)(R.focusVisible,h),className:(0,a.A)(R.root,y),...x,ownerState:w,classes:R})})})},32560:function(e,t,r){r.d(t,{A:()=>b});var o=r(70451),a=r(81023),n=r(24726),l=r(83926),i=r(77308),s=r(2203),c=r(42872),p=r(1337),d=r(29009),u=r(46733);function g(e){return(0,u.Ay)("PrivateSwitchBase",e)}(0,d.A)("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);var f=r(73397),m=r(62540);let h=(0,i.A)(p.A)({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:e,ownerState:t})=>"start"===e&&"small"!==t.size,style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:e,ownerState:t})=>"end"===e&&"small"!==t.size,style:{marginRight:-12}}]}),v=(0,i.A)("input",{shouldForwardProp:l.A})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),b=o.forwardRef(function(e,t){let{autoFocus:r,checked:o,checkedIcon:l,defaultChecked:i,disabled:p,disableFocusRipple:d=!1,edge:u=!1,icon:b,id:y,inputProps:A,inputRef:x,name:$,onBlur:C,onChange:k,onFocus:S,readOnly:I,required:w=!1,tabIndex:R,type:P,value:L,slots:O={},slotProps:M={},...T}=e,[z,D]=(0,s.A)({controlled:o,default:!!i,name:"SwitchBase",state:"checked"}),N=(0,c.A)(),j=p;N&&void 0===j&&(j=N.disabled);let V="checkbox"===P||"radio"===P,B={...e,checked:z,disabled:j,disableFocusRipple:d,edge:u},E=(e=>{let{classes:t,checked:r,disabled:o,edge:l}=e,i={root:["root",r&&"checked",o&&"disabled",l&&`edge${(0,n.A)(l)}`],input:["input"]};return(0,a.A)(i,g,t)})(B),F={slots:O,slotProps:{input:A,...M}},[H,W]=(0,f.A)("root",{ref:t,elementType:h,className:E.root,shouldForwardComponentProp:!0,externalForwardedProps:{...F,component:"span",...T},getSlotProps:e=>({...e,onFocus:t=>{e.onFocus?.(t),S&&S(t),N&&N.onFocus&&N.onFocus(t)},onBlur:t=>{e.onBlur?.(t),C&&C(t),N&&N.onBlur&&N.onBlur(t)}}),ownerState:B,additionalProps:{centerRipple:!0,focusRipple:!d,disabled:j,role:void 0,tabIndex:null}}),[X,q]=(0,f.A)("input",{ref:x,elementType:v,className:E.input,externalForwardedProps:F,getSlotProps:e=>({onChange:t=>{e.onChange?.(t),(e=>{if(e.nativeEvent.defaultPrevented)return;let t=e.target.checked;D(t),k&&k(e,t)})(t)}}),ownerState:B,additionalProps:{autoFocus:r,checked:o,defaultChecked:i,disabled:j,id:V?y:void 0,name:$,readOnly:I,required:w,tabIndex:R,type:P,..."checkbox"===P&&void 0===L?{}:{value:L}}});return(0,m.jsxs)(H,{...W,children:[(0,m.jsx)(X,{...q}),z?l:b]})})},17834:function(e,t,r){r.d(t,{A:()=>n}),r(70451);var o=r(22402),a=r(62540);let n=(0,o.A)((0,a.jsx)("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close")},81227:function(e,t,r){r.d(t,{A:()=>f,Z:()=>c});var o=r(70451),a=r(54553),n=r(89369),l=r(83183),i=r(71849);function s(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function c(e={}){let{ignoreAccents:t=!0,ignoreCase:r=!0,limit:o,matchFrom:a="any",stringify:n,trim:l=!1}=e;return(e,{inputValue:i,getOptionLabel:c})=>{let p=l?i.trim():i;r&&(p=p.toLowerCase()),t&&(p=s(p));let d=p?e.filter(e=>{let o=(n||c)(e);return r&&(o=o.toLowerCase()),t&&(o=s(o)),"start"===a?o.startsWith(p):o.includes(p)}):e;return"number"==typeof o?d.slice(0,o):d}}let p=c(),d=e=>null!==e.current&&e.current.parentElement?.contains(document.activeElement),u=[];function g(e,t,r){if(t||null==e)return"";let o=r(e);return"string"==typeof o?o:""}let f=function(e){var t;let r,{unstable_isActiveElementInListbox:s=d,unstable_classNamePrefix:c="Mui",autoComplete:f=!1,autoHighlight:m=!1,autoSelect:h=!1,blurOnSelect:v=!1,clearOnBlur:b=!e.freeSolo,clearOnEscape:y=!1,componentName:A="useAutocomplete",defaultValue:x=e.multiple?u:null,disableClearable:$=!1,disableCloseOnSelect:C=!1,disabled:k,disabledItemsFocusable:S=!1,disableListWrap:I=!1,filterOptions:w=p,filterSelectedOptions:R=!1,freeSolo:P=!1,getOptionDisabled:L,getOptionKey:O,getOptionLabel:M=e=>e.label??e,groupBy:T,handleHomeEndKeys:z=!e.freeSolo,id:D,includeInputInList:N=!1,inputValue:j,isOptionEqualToValue:V=(e,t)=>e===t,multiple:B=!1,onChange:E,onClose:F,onHighlightChange:H,onInputChange:W,onOpen:X,open:q,openOnFocus:K=!1,options:U,readOnly:G=!1,selectOnFocus:_=!e.freeSolo,value:Z}=e,J=(0,a.A)(D),Q=M;Q=e=>{let t=M(e);return"string"!=typeof t?String(t):t};let Y=o.useRef(!1),ee=o.useRef(!0),et=o.useRef(null),er=o.useRef(null),[eo,ea]=o.useState(null),[en,el]=o.useState(-1),ei=m?0:-1,es=o.useRef(ei),ec=o.useRef(g(x,B,Q)).current,[ep,ed]=(0,n.A)({controlled:Z,default:x,name:A}),[eu,eg]=(0,n.A)({controlled:j,default:ec,name:A,state:"inputValue"}),[ef,em]=o.useState(!1),eh=o.useCallback((e,t,r)=>{if(!(B?ep.length<t.length:null!==t)&&!b)return;let o=g(t,B,Q);eu!==o&&(eg(o),W&&W(e,o,r))},[Q,eu,B,W,eg,b,ep]),[ev,eb]=(0,n.A)({controlled:q,default:!1,name:A,state:"open"}),[ey,eA]=o.useState(!0),ex=!B&&null!=ep&&eu===Q(ep),e$=ev&&!G,eC=e$?w(U.filter(e=>!(R&&(B?ep:[ep]).some(t=>null!==t&&V(e,t)))),{inputValue:ex&&ey?"":eu,getOptionLabel:Q}):[],ek=(t={filteredOptions:eC,value:ep,inputValue:eu},r=o.useRef({}),o.useEffect(()=>{r.current=t}),r.current);o.useEffect(()=>{let e=ep!==ek.value;ef&&!e||(!P||e)&&eh(null,ep,"reset")},[ep,eh,ef,ek.value,P]);let eS=ev&&eC.length>0&&!G,eI=(0,l.A)(e=>{-1===e?et.current.focus():eo.querySelector(`[data-tag-index="${e}"]`).focus()});o.useEffect(()=>{B&&en>ep.length-1&&(el(-1),eI(-1))},[ep,B,en,eI]);let ew=(0,l.A)(({event:e,index:t,reason:r="auto"})=>{if(es.current=t,-1===t?et.current.removeAttribute("aria-activedescendant"):et.current.setAttribute("aria-activedescendant",`${J}-option-${t}`),H&&H(e,-1===t?null:eC[t],r),!er.current)return;let o=er.current.querySelector(`[role="option"].${c}-focused`);o&&(o.classList.remove(`${c}-focused`),o.classList.remove(`${c}-focusVisible`));let a=er.current;if("listbox"!==er.current.getAttribute("role")&&(a=er.current.parentElement.querySelector('[role="listbox"]')),!a)return;if(-1===t){a.scrollTop=0;return}let n=er.current.querySelector(`[data-option-index="${t}"]`);if(n&&(n.classList.add(`${c}-focused`),"keyboard"===r&&n.classList.add(`${c}-focusVisible`),a.scrollHeight>a.clientHeight&&"mouse"!==r&&"touch"!==r)){let e=a.clientHeight+a.scrollTop,t=n.offsetTop+n.offsetHeight;t>e?a.scrollTop=t-a.clientHeight:n.offsetTop-n.offsetHeight*(1.3*!!T)<a.scrollTop&&(a.scrollTop=n.offsetTop-n.offsetHeight*(1.3*!!T))}}),eR=(0,l.A)(({event:e,diff:t,direction:r="next",reason:o="auto"})=>{if(!e$)return;let a=function(e,t){if(!er.current||e<0||e>=eC.length)return -1;let r=e;for(;;){let o=er.current.querySelector(`[data-option-index="${r}"]`),a=!S&&(!o||o.disabled||"true"===o.getAttribute("aria-disabled"));if(o&&o.hasAttribute("tabindex")&&!a)return r;if((r="next"===t?(r+1)%eC.length:(r-1+eC.length)%eC.length)===e)return -1}}((()=>{let e=eC.length-1;if("reset"===t)return ei;if("start"===t)return 0;if("end"===t)return e;let r=es.current+t;return r<0?-1===r&&N?-1:I&&-1!==es.current||Math.abs(t)>1?0:e:r>e?r===e+1&&N?-1:I||Math.abs(t)>1?e:0:r})(),r);if(ew({index:a,reason:o,event:e}),f&&"reset"!==t)if(-1===a)et.current.value=eu;else{let e=Q(eC[a]);et.current.value=e,0===e.toLowerCase().indexOf(eu.toLowerCase())&&eu.length>0&&et.current.setSelectionRange(eu.length,e.length)}}),eP=o.useCallback(()=>{if(!e$)return;let e=(()=>{var e;if(-1!==es.current&&ek.filteredOptions&&ek.filteredOptions.length!==eC.length&&ek.inputValue===eu&&(B?ep.length===ek.value.length&&ek.value.every((e,t)=>Q(ep[t])===Q(e)):(e=ek.value,(e?Q(e):"")===(ep?Q(ep):"")))){let e=ek.filteredOptions[es.current];if(e)return eC.findIndex(t=>Q(t)===Q(e))}return -1})();if(-1!==e){es.current=e;return}let t=B?ep[0]:ep;if(0===eC.length||null==t)return void eR({diff:"reset"});if(er.current){if(null!=t){let e=eC[es.current];if(B&&e&&-1!==ep.findIndex(t=>V(e,t)))return;let r=eC.findIndex(e=>V(e,t));-1===r?eR({diff:"reset"}):ew({index:r});return}if(es.current>=eC.length-1)return void ew({index:eC.length-1});ew({index:es.current})}},[eC.length,!B&&ep,R,eR,ew,e$,eu,B]),eL=(0,l.A)(e=>{(0,i.A)(er,e),e&&eP()});o.useEffect(()=>{eP()},[eP]);let eO=e=>{!ev&&(eb(!0),eA(!0),X&&X(e))},eM=(e,t)=>{ev&&(eb(!1),F&&F(e,t))},eT=(e,t,r,o)=>{if(B){if(ep.length===t.length&&ep.every((e,r)=>e===t[r]))return}else if(ep===t)return;E&&E(e,t,r,o),ed(t)},ez=o.useRef(!1),eD=(e,t,r="selectOption",o="options")=>{let a=r,n=t;if(B){let e=(n=Array.isArray(ep)?ep.slice():[]).findIndex(e=>V(t,e));-1===e?n.push(t):"freeSolo"!==o&&(n.splice(e,1),a="removeOption")}eh(e,n,a),eT(e,n,a,{option:t}),C||e&&(e.ctrlKey||e.metaKey)||eM(e,a),(!0===v||"touch"===v&&ez.current||"mouse"===v&&!ez.current)&&et.current.blur()},eN=(e,t)=>{if(!B)return;""===eu&&eM(e,"toggleInput");let r=en;-1===en?""===eu&&"previous"===t&&(r=ep.length-1):((r+="next"===t?1:-1)<0&&(r=0),r===ep.length&&(r=-1)),el(r=function(e,t){if(-1===e)return -1;let r=e;for(;;){if("next"===t&&r===ep.length||"previous"===t&&-1===r)return -1;let e=eo.querySelector(`[data-tag-index="${r}"]`);if(e&&e.hasAttribute("tabindex")&&!e.disabled&&"true"!==e.getAttribute("aria-disabled"))return r;r+="next"===t?1:-1}}(r,t)),eI(r)},ej=e=>{Y.current=!0,eg(""),W&&W(e,"","clear"),eT(e,B?[]:null,"clear")},eV=e=>{em(!0),K&&!Y.current&&eO(e)},eB=e=>{s(er)?et.current.focus():(em(!1),ee.current=!0,Y.current=!1,h&&-1!==es.current&&e$?eD(e,eC[es.current],"blur"):h&&P&&""!==eu?eD(e,eu,"blur","freeSolo"):b&&eh(e,ep,"blur"),eM(e,"blur"))},eE=e=>{let t=e.target.value;eu!==t&&(eg(t),eA(!1),W&&W(e,t,"input")),""===t?$||B||eT(e,null,"clear"):eO(e)},eF=e=>{let t=Number(e.currentTarget.getAttribute("data-option-index"));es.current!==t&&ew({event:e,index:t,reason:"mouse"})},eH=e=>{ew({event:e,index:Number(e.currentTarget.getAttribute("data-option-index")),reason:"touch"}),ez.current=!0},eW=e=>{let t=Number(e.currentTarget.getAttribute("data-option-index"));eD(e,eC[t],"selectOption"),ez.current=!1},eX=e=>{ev?eM(e,"toggleInput"):eO(e)},eq=e=>{e.currentTarget.contains(e.target)&&e.target.getAttribute("id")!==J&&e.preventDefault()},eK=e=>{e.currentTarget.contains(e.target)&&(et.current.focus(),_&&ee.current&&et.current.selectionEnd-et.current.selectionStart==0&&et.current.select(),ee.current=!1)},eU=e=>{k||""!==eu&&ev||eX(e)},eG=P&&eu.length>0;eG=eG||(B?ep.length>0:null!==ep);let e_=eC;return T&&(e_=eC.reduce((e,t,r)=>{let o=T(t);return e.length>0&&e[e.length-1].group===o?e[e.length-1].options.push(t):e.push({key:r,index:r,group:o,options:[t]}),e},[])),k&&ef&&eB(),{getRootProps:(e={})=>({...e,onKeyDown:t=>{if(e.onKeyDown&&e.onKeyDown(t),!t.defaultMuiPrevented&&(-1===en||["ArrowLeft","ArrowRight"].includes(t.key)||(el(-1),eI(-1)),229!==t.which))switch(t.key){case"Home":e$&&z&&(t.preventDefault(),eR({diff:"start",direction:"next",reason:"keyboard",event:t}));break;case"End":e$&&z&&(t.preventDefault(),eR({diff:"end",direction:"previous",reason:"keyboard",event:t}));break;case"PageUp":t.preventDefault(),eR({diff:-5,direction:"previous",reason:"keyboard",event:t}),eO(t);break;case"PageDown":t.preventDefault(),eR({diff:5,direction:"next",reason:"keyboard",event:t}),eO(t);break;case"ArrowDown":t.preventDefault(),eR({diff:1,direction:"next",reason:"keyboard",event:t}),eO(t);break;case"ArrowUp":t.preventDefault(),eR({diff:-1,direction:"previous",reason:"keyboard",event:t}),eO(t);break;case"ArrowLeft":eN(t,"previous");break;case"ArrowRight":eN(t,"next");break;case"Enter":if(-1!==es.current&&e$){let e=eC[es.current],r=!!L&&L(e);if(t.preventDefault(),r)return;eD(t,e,"selectOption"),f&&et.current.setSelectionRange(et.current.value.length,et.current.value.length)}else P&&""!==eu&&!1===ex&&(B&&t.preventDefault(),eD(t,eu,"createOption","freeSolo"));break;case"Escape":e$?(t.preventDefault(),t.stopPropagation(),eM(t,"escape")):y&&(""!==eu||B&&ep.length>0)&&(t.preventDefault(),t.stopPropagation(),ej(t));break;case"Backspace":if(B&&!G&&""===eu&&ep.length>0){let e=-1===en?ep.length-1:en,r=ep.slice();r.splice(e,1),eT(t,r,"removeOption",{option:ep[e]})}break;case"Delete":if(B&&!G&&""===eu&&ep.length>0&&-1!==en){let e=ep.slice();e.splice(en,1),eT(t,e,"removeOption",{option:ep[en]})}}},onMouseDown:eq,onClick:eK}),getInputLabelProps:()=>({id:`${J}-label`,htmlFor:J}),getInputProps:()=>({id:J,value:eu,onBlur:eB,onFocus:eV,onChange:eE,onMouseDown:eU,"aria-activedescendant":e$?"":null,"aria-autocomplete":f?"both":"list","aria-controls":eS?`${J}-listbox`:void 0,"aria-expanded":eS,autoComplete:"off",ref:et,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:k}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:ej}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:eX}),getTagProps:({index:e})=>({key:e,"data-tag-index":e,tabIndex:-1,...!G&&{onDelete:t=>{let r=ep.slice();r.splice(e,1),eT(t,r,"removeOption",{option:ep[e]})}}}),getListboxProps:()=>({role:"listbox",id:`${J}-listbox`,"aria-labelledby":`${J}-label`,ref:eL,onMouseDown:e=>{e.preventDefault()}}),getOptionProps:({index:e,option:t})=>{let r=(B?ep:[ep]).some(e=>null!=e&&V(t,e)),o=!!L&&L(t);return{key:O?.(t)??Q(t),tabIndex:-1,role:"option",id:`${J}-option-${e}`,onMouseMove:eF,onClick:eW,onTouchStart:eH,"data-option-index":e,"aria-disabled":o,"aria-selected":r}},id:J,inputValue:eu,value:ep,dirty:eG,expanded:e$&&eo,popupOpen:e$,focused:ef||-1!==en,anchorEl:eo,setAnchorEl:ea,focusedTag:en,groupedOptions:e_}}},86742:function(e,t,r){var o;t.default=void 0,t.default=(0,((o=r(1448))&&o.__esModule?o:{default:o}).default)("M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z","Plus")},85180:function(e,t,r){r.r(t),r.d(t,{default:()=>n});var o=r(70451);function a(e,t,r){return e[t]?e[t][0]?e[t][0][r]:e[t][r]:"contentBoxSize"===t?e.contentRect["inlineSize"===r?"width":"height"]:void 0}function n(e){void 0===e&&(e={});var t,r,n,l,i,s,c=e.onResize,p=(0,o.useRef)(void 0);p.current=c;var d=e.round||Math.round,u=(0,o.useRef)(),g=(0,o.useState)({width:void 0,height:void 0}),f=g[0],m=g[1],h=(0,o.useRef)(!1);(0,o.useEffect)(function(){return h.current=!1,function(){h.current=!0}},[]);var v=(0,o.useRef)({width:void 0,height:void 0}),b=(t=(0,o.useCallback)(function(t){return u.current&&u.current.box===e.box&&u.current.round===d||(u.current={box:e.box,round:d,instance:new ResizeObserver(function(t){var r=t[0],o="border-box"===e.box?"borderBoxSize":"device-pixel-content-box"===e.box?"devicePixelContentBoxSize":"contentBoxSize",n=a(r,o,"inlineSize"),l=a(r,o,"blockSize"),i=n?d(n):void 0,s=l?d(l):void 0;if(v.current.width!==i||v.current.height!==s){var c={width:i,height:s};v.current.width=i,v.current.height=s,p.current?p.current(c):h.current||m(c)}})}),u.current.instance.observe(t,{box:e.box}),function(){u.current&&u.current.instance.unobserve(t)}},[e.box,d]),r=e.ref,n=(0,o.useRef)(null),(l=(0,o.useRef)(null)).current=r,i=(0,o.useRef)(null),(0,o.useEffect)(function(){s()}),s=(0,o.useCallback)(function(){var e=i.current,r=l.current,o=e||(r?r instanceof Element?r:r.current:null);n.current&&n.current.element===o&&n.current.subscriber===t||(n.current&&n.current.cleanup&&n.current.cleanup(),n.current={element:o,subscriber:t,cleanup:o?t(o):void 0})},[t]),(0,o.useEffect)(function(){return function(){n.current&&n.current.cleanup&&(n.current.cleanup(),n.current=null)}},[]),(0,o.useCallback)(function(e){i.current=e,s()},[s]));return(0,o.useMemo)(function(){return{ref:b,width:f.width,height:f.height}},[b,f.width,f.height])}}}]);
@@ -0,0 +1,2 @@
1
+ /*! For license information please see 6274.478a68f8.js.LICENSE.txt */
2
+ "use strict";(self.chunk_Prometheus=self.chunk_Prometheus||[]).push([["6274"],{67449:function(e,t,r){r.r(t),r.d(t,{ThemeProvider:()=>eo,keyframes:()=>ev,withEmotionCache:()=>en,useTheme:()=>es,Global:()=>ey,__unsafe_useEmotionCache:()=>er,CacheProvider:()=>et,withTheme:()=>ei,ClassNames:()=>e$,ThemeContext:()=>ea,createElement:()=>ed,css:()=>em,jsx:()=>ed});var n,a,s=r(70451),c=function(){function e(e){var t=this;this._insertTag=function(e){var r;r=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,r),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(((t=document.createElement("style")).setAttribute("data-emotion",this.key),void 0!==this.nonce&&t.setAttribute("nonce",this.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t));var t,r=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(r);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else r.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),this.tags=[],this.ctr=0},e}(),o=Math.abs,i=String.fromCharCode,u=Object.assign;function f(e,t,r){return e.replace(t,r)}function l(e,t){return e.indexOf(t)}function p(e,t){return 0|e.charCodeAt(t)}function h(e,t,r){return e.slice(t,r)}function d(e){return e.length}function y(e,t){return t.push(e),e}var m=1,v=1,g=0,b=0,$=0,k="";function w(e,t,r,n,a,s,c){return{value:e,root:t,parent:r,type:n,props:a,children:s,line:m,column:v,length:c,return:""}}function S(e,t){return u(w("",null,null,"",null,null,0),e,{length:-e.length},t)}function x(){return $=b<g?p(k,b++):0,v++,10===$&&(v=1,m++),$}function C(){return p(k,b)}function E(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function P(e){return m=v=1,g=d(k=e),b=0,[]}function A(e){var t,r;return(t=b-1,r=function e(t){for(;x();)switch($){case t:return b;case 34:case 39:34!==t&&39!==t&&e($);break;case 40:41===t&&e(t);break;case 92:x()}return b}(91===e?e+2:40===e?e+1:e),h(k,t,r)).trim()}var _="-ms-",T="-moz-",O="-webkit-",N="comm",M="rule",j="decl",F="@keyframes";function R(e,t){for(var r="",n=e.length,a=0;a<n;a++)r+=t(e[a],a,e,t)||"";return r}function z(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case j:return e.return=e.return||e.value;case N:return"";case F:return e.return=e.value+"{"+R(e.children,n)+"}";case M:e.value=e.props.join(",")}return d(r=R(e.children,n))?e.return=e.value+"{"+r+"}":""}function J(e,t,r,n,a,s,c,i,u,l,p){for(var d=a-1,y=0===a?s:[""],m=y.length,v=0,g=0,b=0;v<n;++v)for(var $=0,k=h(e,d+1,d=o(g=c[v])),S=e;$<m;++$)(S=(g>0?y[$]+" "+k:f(k,/&\f/g,y[$])).trim())&&(u[b++]=S);return w(e,t,r,0===a?M:i,u,l,p)}function D(e,t,r,n){return w(e,t,r,j,h(e,0,n),h(e,n+1,-1),n)}var L=function(e,t,r){for(var n=0,a=0;n=a,a=C(),38===n&&12===a&&(t[r]=1),!E(a);)x();return h(k,e,b)},q=function(e,t){var r=-1,n=44;do switch(E(n)){case 0:38===n&&12===C()&&(t[r]=1),e[r]+=L(b-1,t,r);break;case 2:e[r]+=A(n);break;case 4:if(44===n){e[++r]=58===C()?"&\f":"",t[r]=e[r].length;break}default:e[r]+=i(n)}while(n=x());return e},I=function(e,t){var r;return r=q(P(e),t),k="",r},W=new WeakMap,X=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;"rule"!==r.type;)if(!(r=r.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||W.get(r))&&!n){W.set(e,!0);for(var a=[],s=I(t,a),c=r.props,o=0,i=0;o<s.length;o++)for(var u=0;u<c.length;u++,i++)e.props[i]=a[o]?s[o].replace(/&\f/g,c[u]):c[u]+" "+s[o]}}},B=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},G=[function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case j:e.return=function e(t,r){switch(45^p(t,0)?(((r<<2^p(t,0))<<2^p(t,1))<<2^p(t,2))<<2^p(t,3):0){case 5103:return O+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return O+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return O+t+T+t+_+t+t;case 6828:case 4268:return O+t+_+t+t;case 6165:return O+t+_+"flex-"+t+t;case 5187:return O+t+f(t,/(\w+).+(:[^]+)/,O+"box-$1$2"+_+"flex-$1$2")+t;case 5443:return O+t+_+"flex-item-"+f(t,/flex-|-self/,"")+t;case 4675:return O+t+_+"flex-line-pack"+f(t,/align-content|flex-|-self/,"")+t;case 5548:return O+t+_+f(t,"shrink","negative")+t;case 5292:return O+t+_+f(t,"basis","preferred-size")+t;case 6060:return O+"box-"+f(t,"-grow","")+O+t+_+f(t,"grow","positive")+t;case 4554:return O+f(t,/([^-])(transform)/g,"$1"+O+"$2")+t;case 6187:return f(f(f(t,/(zoom-|grab)/,O+"$1"),/(image-set)/,O+"$1"),t,"")+t;case 5495:case 3959:return f(t,/(image-set\([^]*)/,O+"$1$`$1");case 4968:return f(f(t,/(.+:)(flex-)?(.*)/,O+"box-pack:$3"+_+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+O+t+t;case 4095:case 3583:case 4068:case 2532:return f(t,/(.+)-inline(.+)/,O+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(d(t)-1-r>6)switch(p(t,r+1)){case 109:if(45!==p(t,r+4))break;case 102:return f(t,/(.+:)(.+)-([^]+)/,"$1"+O+"$2-$3$1"+T+(108==p(t,r+3)?"$3":"$2-$3"))+t;case 115:return~l(t,"stretch")?e(f(t,"stretch","fill-available"),r)+t:t}break;case 4949:if(115!==p(t,r+1))break;case 6444:switch(p(t,d(t)-3-(~l(t,"!important")&&10))){case 107:return f(t,":",":"+O)+t;case 101:return f(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+O+(45===p(t,14)?"inline-":"")+"box$3$1"+O+"$2$3$1"+_+"$2box$3")+t}break;case 5936:switch(p(t,r+11)){case 114:return O+t+_+f(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return O+t+_+f(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return O+t+_+f(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return O+t+_+t+t}return t}(e.value,e.length);break;case F:return R([S(e,{value:f(e.value,"@","@"+O)})],n);case M:if(e.length){var a,s;return a=e.props,s=function(t){var r;switch(r=t,(r=/(::plac\w+|:read-\w+)/.exec(r))?r[0]:r){case":read-only":case":read-write":return R([S(e,{props:[f(t,/:(read-\w+)/,":"+T+"$1")]})],n);case"::placeholder":return R([S(e,{props:[f(t,/:(plac\w+)/,":"+O+"input-$1")]}),S(e,{props:[f(t,/:(plac\w+)/,":"+T+"$1")]}),S(e,{props:[f(t,/:(plac\w+)/,_+"input-$1")]})],n)}return""},a.map(s).join("")}}}],H=r(68102),U=function(e){var t=new WeakMap;return function(r){if(t.has(r))return t.get(r);var n=e(r);return t.set(r,n),n}},V=r(58486),Y=r.n(V),K=r(309),Q=r(37696),Z=r(60755),ee=s.createContext("undefined"!=typeof HTMLElement?function(e){var t,r,n,a,s,o=e.key;if("css"===o){var u=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(u,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var g=e.stylisPlugins||G,S={},_=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+o+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),r=1;r<t.length;r++)S[t[r]]=!0;_.push(e)});var T=(r=(t=[X,B].concat(g,[z,(n=function(e){s.insert(e)},function(e){!e.root&&(e=e.return)&&n(e)})])).length,function(e,n,a,s){for(var c="",o=0;o<r;o++)c+=t[o](e,n,a,s)||"";return c}),O=function(e){var t,r;return R((r=function e(t,r,n,a,s,c,o,u,g){for(var S,P=0,_=0,T=o,O=0,M=0,j=0,F=1,R=1,z=1,L=0,q="",I=s,W=c,X=a,B=q;R;)switch(j=L,L=x()){case 40:if(108!=j&&58==p(B,T-1)){-1!=l(B+=f(A(L),"&","&\f"),"&\f")&&(z=-1);break}case 34:case 39:case 91:B+=A(L);break;case 9:case 10:case 13:case 32:B+=function(e){for(;$=C();)if($<33)x();else break;return E(e)>2||E($)>3?"":" "}(j);break;case 92:B+=function(e,t){for(var r;--t&&x()&&!($<48)&&!($>102)&&(!($>57)||!($<65))&&(!($>70)||!($<97)););return r=b+(t<6&&32==C()&&32==x()),h(k,e,r)}(b-1,7);continue;case 47:switch(C()){case 42:case 47:y((S=function(e,t){for(;x();)if(e+$===57)break;else if(e+$===84&&47===C())break;return"/*"+h(k,t,b-1)+"*"+i(47===e?e:x())}(x(),b),w(S,r,n,N,i($),h(S,2,-2),0)),g);break;default:B+="/"}break;case 123*F:u[P++]=d(B)*z;case 125*F:case 59:case 0:switch(L){case 0:case 125:R=0;case 59+_:-1==z&&(B=f(B,/\f/g,"")),M>0&&d(B)-T&&y(M>32?D(B+";",a,n,T-1):D(f(B," ","")+";",a,n,T-2),g);break;case 59:B+=";";default:if(y(X=J(B,r,n,P,_,s,u,q,I=[],W=[],T),c),123===L)if(0===_)e(B,r,X,X,I,c,T,u,W);else switch(99===O&&110===p(B,3)?100:O){case 100:case 108:case 109:case 115:e(t,X,X,a&&y(J(t,X,X,0,0,s,u,q,s,I=[],T),W),s,W,T,u,a?I:W);break;default:e(B,X,X,X,[""],W,0,u,W)}}P=_=M=0,F=z=1,q=B="",T=o;break;case 58:T=1+d(B),M=j;default:if(F<1){if(123==L)--F;else if(125==L&&0==F++&&125==($=b>0?p(k,--b):0,v--,10===$&&(v=1,m--),$))continue}switch(B+=i(L),L*F){case 38:z=_>0?1:(B+="\f",-1);break;case 44:u[P++]=(d(B)-1)*z,z=1;break;case 64:45===C()&&(B+=A(x())),O=C(),_=T=d(q=B+=function(e){for(;!E(C());)x();return h(k,e,b)}(b)),L++;break;case 45:45===j&&2==d(B)&&(F=0)}}return c}("",null,null,null,[""],t=P(t=e),0,[0],t),k="",r),T)},M={key:o,sheet:new c({key:o,container:a,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:S,registered:{},insert:function(e,t,r,n){s=r,O(e?e+"{"+t.styles+"}":t.styles),n&&(M.inserted[t.name]=!0)}};return M.sheet.hydrate(_),M}({key:"css"}):null),et=ee.Provider,er=function(){return(0,s.useContext)(ee)},en=function(e){return(0,s.forwardRef)(function(t,r){return e(t,(0,s.useContext)(ee),r)})},ea=s.createContext({}),es=function(){return s.useContext(ea)},ec=U(function(e){return U(function(t){return"function"==typeof t?t(e):(0,H.A)({},e,t)})}),eo=function(e){var t=s.useContext(ea);return e.theme!==t&&(t=ec(t)(e.theme)),s.createElement(ea.Provider,{value:t},e.children)};function ei(e){var t=e.displayName||e.name||"Component",r=s.forwardRef(function(t,r){var n=s.useContext(ea);return s.createElement(e,(0,H.A)({theme:n,ref:r},t))});return r.displayName="WithTheme("+t+")",Y()(r,e)}var eu={}.hasOwnProperty,ef="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",el=function(e,t){var r={};for(var n in t)eu.call(t,n)&&(r[n]=t[n]);return r[ef]=e,r},ep=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return(0,K.SF)(t,r,n),(0,Z.s)(function(){return(0,K.sk)(t,r,n)}),null},eh=en(function(e,t,r){var n=e.css;"string"==typeof n&&void 0!==t.registered[n]&&(n=t.registered[n]);var a=e[ef],c=[n],o="";"string"==typeof e.className?o=(0,K.Rk)(t.registered,c,e.className):null!=e.className&&(o=e.className+" ");var i=(0,Q.J)(c,void 0,s.useContext(ea));o+=t.key+"-"+i.name;var u={};for(var f in e)eu.call(e,f)&&"css"!==f&&f!==ef&&(u[f]=e[f]);return u.className=o,r&&(u.ref=r),s.createElement(s.Fragment,null,s.createElement(ep,{cache:t,serialized:i,isStringTag:"string"==typeof a}),s.createElement(a,u))}),ed=function(e,t){var r=arguments;if(null==t||!eu.call(t,"css"))return s.createElement.apply(void 0,r);var n=r.length,a=Array(n);a[0]=eh,a[1]=el(e,t);for(var c=2;c<n;c++)a[c]=r[c];return s.createElement.apply(null,a)};n=ed||(ed={}),a||(a=n.JSX||(n.JSX={}));var ey=en(function(e,t){var r=e.styles,n=(0,Q.J)([r],void 0,s.useContext(ea)),a=s.useRef();return(0,Z.i)(function(){var e=t.key+"-global",r=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),s=!1,c=document.querySelector('style[data-emotion="'+e+" "+n.name+'"]');return t.sheet.tags.length&&(r.before=t.sheet.tags[0]),null!==c&&(s=!0,c.setAttribute("data-emotion",e),r.hydrate([c])),a.current=[r,s],function(){r.flush()}},[t]),(0,Z.i)(function(){var e=a.current,r=e[0];if(e[1]){e[1]=!1;return}if(void 0!==n.next&&(0,K.sk)(t,n.next,!0),r.tags.length){var s=r.tags[r.tags.length-1].nextElementSibling;r.before=s,r.flush()}t.insert("",n,r,!1)},[t,n.name]),null});function em(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,Q.J)(t)}function ev(){var e=em.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var eg=function e(t){for(var r=t.length,n=0,a="";n<r;n++){var s=t[n];if(null!=s){var c=void 0;switch(typeof s){case"boolean":break;case"object":if(Array.isArray(s))c=e(s);else for(var o in c="",s)s[o]&&o&&(c&&(c+=" "),c+=o);break;default:c=s}c&&(a&&(a+=" "),a+=c)}}return a},eb=function(e){var t=e.cache,r=e.serializedArr;return(0,Z.s)(function(){for(var e=0;e<r.length;e++)(0,K.sk)(t,r[e],!1)}),null},e$=en(function(e,t){var r=!1,n=[],a=function(){for(var e=arguments.length,r=Array(e),a=0;a<e;a++)r[a]=arguments[a];var s=(0,Q.J)(r,t.registered);return n.push(s),(0,K.SF)(t,s,!1),t.key+"-"+s.name},c={css:a,cx:function(){for(var e,r,n,s,c=arguments.length,o=Array(c),i=0;i<c;i++)o[i]=arguments[i];return e=t.registered,r=eg(o),n=[],s=(0,K.Rk)(e,n,r),n.length<2?r:s+a(n)},theme:s.useContext(ea)},o=e.children(c);return r=!0,s.createElement(s.Fragment,null,s.createElement(eb,{cache:t,serializedArr:n}),o)})},60755:function(e,t,r){r.d(t,{i:()=>c,s:()=>s});var n=r(70451),a=!!n.useInsertionEffect&&n.useInsertionEffect,s=a||function(e){return e()},c=a||n.useLayoutEffect},309:function(e,t,r){function n(e,t,r){var n="";return r.split(" ").forEach(function(r){void 0!==e[r]?t.push(e[r]+";"):r&&(n+=r+" ")}),n}r.d(t,{Rk:()=>n,SF:()=>a,sk:()=>s});var a=function(e,t,r){var n=e.key+"-"+t.name;!1===r&&void 0===e.registered[n]&&(e.registered[n]=t.styles)},s=function(e,t,r){a(e,t,r);var n=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var s=t;do e.insert(t===s?"."+n:"",s,e.sheet,!0),s=s.next;while(void 0!==s)}}},58486:function(e,t,r){var n=r(89360),a={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},s={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},c={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};function i(e){return n.isMemo(e)?c:o[e.$$typeof]||a}o[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o[n.Memo]=c;var u=Object.defineProperty,f=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,d=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(d){var a=h(r);a&&a!==d&&e(t,a,n)}var c=f(r);l&&(c=c.concat(l(r)));for(var o=i(t),y=i(r),m=0;m<c.length;++m){var v=c[m];if(!s[v]&&!(n&&n[v])&&!(y&&y[v])&&!(o&&o[v])){var g=p(r,v);try{u(t,v,g)}catch(e){}}}}return t}},92332:function(e,t){var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,a=r?Symbol.for("react.portal"):60106,s=r?Symbol.for("react.fragment"):60107,c=r?Symbol.for("react.strict_mode"):60108,o=r?Symbol.for("react.profiler"):60114,i=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,f=r?Symbol.for("react.async_mode"):60111,l=r?Symbol.for("react.concurrent_mode"):60111,p=r?Symbol.for("react.forward_ref"):60112,h=r?Symbol.for("react.suspense"):60113,d=r?Symbol.for("react.suspense_list"):60120,y=r?Symbol.for("react.memo"):60115,m=r?Symbol.for("react.lazy"):60116,v=r?Symbol.for("react.block"):60121,g=r?Symbol.for("react.fundamental"):60117,b=r?Symbol.for("react.responder"):60118,$=r?Symbol.for("react.scope"):60119;function k(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case f:case l:case s:case o:case c:case h:return e;default:switch(e=e&&e.$$typeof){case u:case p:case m:case y:case i:return e;default:return t}}case a:return t}}}function w(e){return k(e)===l}t.AsyncMode=f,t.ConcurrentMode=l,t.ContextConsumer=u,t.ContextProvider=i,t.Element=n,t.ForwardRef=p,t.Fragment=s,t.Lazy=m,t.Memo=y,t.Portal=a,t.Profiler=o,t.StrictMode=c,t.Suspense=h,t.isAsyncMode=function(e){return w(e)||k(e)===f},t.isConcurrentMode=w,t.isContextConsumer=function(e){return k(e)===u},t.isContextProvider=function(e){return k(e)===i},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return k(e)===p},t.isFragment=function(e){return k(e)===s},t.isLazy=function(e){return k(e)===m},t.isMemo=function(e){return k(e)===y},t.isPortal=function(e){return k(e)===a},t.isProfiler=function(e){return k(e)===o},t.isStrictMode=function(e){return k(e)===c},t.isSuspense=function(e){return k(e)===h},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===s||e===l||e===o||e===c||e===h||e===d||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===y||e.$$typeof===i||e.$$typeof===u||e.$$typeof===p||e.$$typeof===g||e.$$typeof===b||e.$$typeof===$||e.$$typeof===v)},t.typeOf=k},89360:function(e,t,r){e.exports=r(92332)}}]);
@@ -0,0 +1,2 @@
1
+ /*! For license information please see 6283.181cb622.js.LICENSE.txt */
2
+ "use strict";(self.chunk_Prometheus=self.chunk_Prometheus||[]).push([["6283"],{32473:function(t,e,s){var i=s(70451),r="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},n=i.useState,u=i.useEffect,a=i.useLayoutEffect,o=i.useDebugValue;function l(t){var e=t.getSnapshot;t=t.value;try{var s=e();return!r(t,s)}catch(t){return!0}}var h="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(t,e){return e()}:function(t,e){var s=e(),i=n({inst:{value:s,getSnapshot:e}}),r=i[0].inst,h=i[1];return a(function(){r.value=s,r.getSnapshot=e,l(r)&&h({inst:r})},[t,s,e]),u(function(){return l(r)&&h({inst:r}),t(function(){l(r)&&h({inst:r})})},[t]),o(s),s};e.useSyncExternalStore=void 0!==i.useSyncExternalStore?i.useSyncExternalStore:h},43676:function(t,e,s){t.exports=s(32473)},52854:function(t,e,s){let i,r,n,u,a,o;s.r(e),s.d(e,{isError:()=>F,IsRestoringProvider:()=>tC,dehydrate:()=>th,isServer:()=>h,parseFilterArgs:()=>m,parseMutationFilterArgs:()=>b,queryOptions:()=>tz,useSuspenseQuery:()=>tK,QueriesObserver:()=>tn,defaultContext:()=>tp,QueryClient:()=>$,Query:()=>_,Hydrate:()=>tj,useInfiniteQuery:()=>t_,useIsMutating:()=>tB,CancelledError:()=>L,useQueryClient:()=>tm,isCancelledError:()=>j,matchQuery:()=>g,MutationCache:()=>V,MutationObserver:()=>ta,defaultShouldDehydrateQuery:()=>tl,notifyManager:()=>N,QueryCache:()=>z,useQueries:()=>tI,parseQueryArgs:()=>y,replaceEqualDeep:()=>Q,defaultShouldDehydrateMutation:()=>to,hydrate:()=>tc,useHydrate:()=>tL,useQuery:()=>tT,onlineManager:()=>T,InfiniteQueryObserver:()=>tu,QueryClientProvider:()=>tb,hashQueryKey:()=>R,QueryObserver:()=>tt,useIsRestoring:()=>tO,useSuspenseQueries:()=>tk,parseMutationArgs:()=>v,focusManager:()=>I,useIsFetching:()=>tH,useMutation:()=>tN,useQueryErrorResetBoundary:()=>tQ,QueryErrorResetBoundary:()=>tE});class l{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){let e={listener:t};return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}let h="undefined"==typeof window||"Deno"in window;function c(){}function d(t){return"number"==typeof t&&t>=0&&t!==1/0}function f(t,e){return t.filter(t=>!e.includes(t))}function p(t,e){return Math.max(t+(e||0)-Date.now(),0)}function y(t,e,s){return M(t)?"function"==typeof e?{...s,queryKey:t,queryFn:e}:{...e,queryKey:t}:t}function v(t,e,s){return M(t)?"function"==typeof e?{...s,mutationKey:t,mutationFn:e}:{...e,mutationKey:t}:"function"==typeof t?{...e,mutationFn:t}:{...t}}function m(t,e,s){return M(t)?[{...e,queryKey:t},s]:[t||{},e]}function b(t,e,s){return M(t)?[{...e,mutationKey:t},s]:[t||{},e]}function g(t,e){let{type:s="all",exact:i,fetchStatus:r,predicate:n,queryKey:u,stale:a}=t;if(M(u))if(i){if(e.queryHash!==C(u,e.options))return!1}else{var o;if(o=e.queryKey,!S(o,u))return!1}if("all"!==s){let t=e.isActive();if("active"===s&&!t||"inactive"===s&&t)return!1}return("boolean"!=typeof a||e.isStale()===a)&&(void 0===r||r===e.state.fetchStatus)&&(!n||!!n(e))}function O(t,e){let{exact:s,fetching:i,predicate:r,mutationKey:n}=t;if(M(n)){if(!e.options.mutationKey)return!1;if(s){if(R(e.options.mutationKey)!==R(n))return!1}else{var u;if(u=e.options.mutationKey,!S(u,n))return!1}}return("boolean"!=typeof i||"loading"===e.state.status===i)&&(!r||!!r(e))}function C(t,e){return((null==e?void 0:e.queryKeyHashFn)||R)(t)}function R(t){return JSON.stringify(t,(t,e)=>w(e)?Object.keys(e).sort().reduce((t,s)=>(t[s]=e[s],t),{}):e)}function S(t,e){return t===e||typeof t==typeof e&&!!t&&!!e&&"object"==typeof t&&"object"==typeof e&&!Object.keys(e).some(s=>!S(t[s],e[s]))}function Q(t,e){if(t===e)return t;let s=q(t)&&q(e);if(s||w(t)&&w(e)){let i=s?t.length:Object.keys(t).length,r=s?e:Object.keys(e),n=r.length,u=s?[]:{},a=0;for(let i=0;i<n;i++){let n=s?i:r[i];u[n]=Q(t[n],e[n]),u[n]===t[n]&&a++}return i===n&&a===i?t:u}return e}function E(t,e){if(t&&!e||e&&!t)return!1;for(let s in t)if(t[s]!==e[s])return!1;return!0}function q(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function w(t){if(!P(t))return!1;let e=t.constructor;if(void 0===e)return!0;let s=e.prototype;return!!P(s)&&!!s.hasOwnProperty("isPrototypeOf")}function P(t){return"[object Object]"===Object.prototype.toString.call(t)}function M(t){return Array.isArray(t)}function F(t){return t instanceof Error}function x(t){return new Promise(e=>{setTimeout(e,t)})}function D(t){x(0).then(t)}function A(t,e,s){return null!=s.isDataEqual&&s.isDataEqual(t,e)?t:"function"==typeof s.structuralSharing?s.structuralSharing(t,e):!1!==s.structuralSharing?Q(t,e):e}let I=new class extends l{constructor(){super(),this.setup=t=>{if(!h&&window.addEventListener){let e=()=>t();return window.addEventListener("visibilitychange",e,!1),window.addEventListener("focus",e,!1),()=>{window.removeEventListener("visibilitychange",e),window.removeEventListener("focus",e)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;null==(t=this.cleanup)||t.call(this),this.cleanup=void 0}}setEventListener(t){var e;this.setup=t,null==(e=this.cleanup)||e.call(this),this.cleanup=t(t=>{"boolean"==typeof t?this.setFocused(t):this.onFocus()})}setFocused(t){this.focused!==t&&(this.focused=t,this.onFocus())}onFocus(){this.listeners.forEach(({listener:t})=>{t()})}isFocused(){return"boolean"==typeof this.focused?this.focused:"undefined"==typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)}},U=["online","offline"],T=new class extends l{constructor(){super(),this.setup=t=>{if(!h&&window.addEventListener){let e=()=>t();return U.forEach(t=>{window.addEventListener(t,e,!1)}),()=>{U.forEach(t=>{window.removeEventListener(t,e)})}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;null==(t=this.cleanup)||t.call(this),this.cleanup=void 0}}setEventListener(t){var e;this.setup=t,null==(e=this.cleanup)||e.call(this),this.cleanup=t(t=>{"boolean"==typeof t?this.setOnline(t):this.onOnline()})}setOnline(t){this.online!==t&&(this.online=t,this.onOnline())}onOnline(){this.listeners.forEach(({listener:t})=>{t()})}isOnline(){return"boolean"==typeof this.online?this.online:"undefined"==typeof navigator||void 0===navigator.onLine||navigator.onLine}};function K(t){return Math.min(1e3*2**t,3e4)}function k(t){return(null!=t?t:"online")!=="online"||T.isOnline()}class L{constructor(t){this.revert=null==t?void 0:t.revert,this.silent=null==t?void 0:t.silent}}function j(t){return t instanceof L}function H(t){let e,s,i,r=!1,n=0,u=!1,a=new Promise((t,e)=>{s=t,i=e}),o=()=>!I.isFocused()||"always"!==t.networkMode&&!T.isOnline(),l=i=>{u||(u=!0,null==t.onSuccess||t.onSuccess(i),null==e||e(),s(i))},h=s=>{u||(u=!0,null==t.onError||t.onError(s),null==e||e(),i(s))},c=()=>new Promise(s=>{e=t=>{let e=u||!o();return e&&s(t),e},null==t.onPause||t.onPause()}).then(()=>{e=void 0,u||null==t.onContinue||t.onContinue()}),d=()=>{let e;if(!u){try{e=t.fn()}catch(t){e=Promise.reject(t)}Promise.resolve(e).then(l).catch(e=>{var s,i;if(u)return;let a=null!=(s=t.retry)?s:3,l=null!=(i=t.retryDelay)?i:K,f="function"==typeof l?l(n,e):l,p=!0===a||"number"==typeof a&&n<a||"function"==typeof a&&a(n,e);r||!p?h(e):(n++,null==t.onFail||t.onFail(n,e),x(f).then(()=>{if(o())return c()}).then(()=>{r?h(e):d()}))})}};return k(t.networkMode)?d():c().then(d),{promise:a,cancel:e=>{u||(h(new L(e)),null==t.abort||t.abort())},continue:()=>(null==e?void 0:e())?a:Promise.resolve(),cancelRetry:()=>{r=!0},continueRetry:()=>{r=!1}}}let B=console,N=(i=[],r=0,n=t=>{t()},u=t=>{t()},a=t=>{r?i.push(t):D(()=>{n(t)})},o=()=>{let t=i;i=[],t.length&&D(()=>{u(()=>{t.forEach(t=>{n(t)})})})},{batch:t=>{let e;r++;try{e=t()}finally{--r||o()}return e},batchCalls:t=>(...e)=>{a(()=>{t(...e)})},schedule:a,setNotifyFunction:t=>{n=t},setBatchNotifyFunction:t=>{u=t}});class G{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),d(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(t){this.cacheTime=Math.max(this.cacheTime||0,null!=t?t:h?1/0:3e5)}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class _ extends G{constructor(t){super(),this.abortSignalConsumed=!1,this.defaultOptions=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.cache=t.cache,this.logger=t.logger||B,this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.initialState=t.state||function(t){let e="function"==typeof t.initialData?t.initialData():t.initialData,s=void 0!==e,i=s?"function"==typeof t.initialDataUpdatedAt?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:s?null!=i?i:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:s?"success":"loading",fetchStatus:"idle"}}(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(t){this.options={...this.defaultOptions,...t},this.updateCacheTime(this.options.cacheTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.cache.remove(this)}setData(t,e){let s=A(this.state.data,t,this.options);return this.dispatch({data:s,type:"success",dataUpdatedAt:null==e?void 0:e.updatedAt,manual:null==e?void 0:e.manual}),s}setState(t,e){this.dispatch({type:"setState",state:t,setStateOptions:e})}cancel(t){var e;let s=this.promise;return null==(e=this.retryer)||e.cancel(t),s?s.then(c).catch(c):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some(t=>!1!==t.options.enabled)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(t=>t.getCurrentResult().isStale)}isStaleByTime(t=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!p(this.state.dataUpdatedAt,t)}onFocus(){var t;let e=this.observers.find(t=>t.shouldFetchOnWindowFocus());e&&e.refetch({cancelRefetch:!1}),null==(t=this.retryer)||t.continue()}onOnline(){var t;let e=this.observers.find(t=>t.shouldFetchOnReconnect());e&&e.refetch({cancelRefetch:!1}),null==(t=this.retryer)||t.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(e=>e!==t),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(t,e){var s,i,r,n;if("idle"!==this.state.fetchStatus){if(this.state.dataUpdatedAt&&null!=e&&e.cancelRefetch)this.cancel({silent:!0});else if(this.promise)return null==(r=this.retryer)||r.continueRetry(),this.promise}if(t&&this.setOptions(t),!this.options.queryFn){let t=this.observers.find(t=>t.options.queryFn);t&&this.setOptions(t.options)}let u=function(){if("function"==typeof AbortController)return new AbortController}(),a={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},o=t=>{Object.defineProperty(t,"signal",{enumerable:!0,get:()=>{if(u)return this.abortSignalConsumed=!0,u.signal}})};o(a);let l=()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(a)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'"),h={fetchOptions:e,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:l};o(h),null==(s=this.options.behavior)||s.onFetch(h),this.revertState=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==(null==(i=h.fetchOptions)?void 0:i.meta))&&this.dispatch({type:"fetch",meta:null==(n=h.fetchOptions)?void 0:n.meta});let c=t=>{if(j(t)&&t.silent||this.dispatch({type:"error",error:t}),!j(t)){var e,s,i,r;null==(e=(s=this.cache.config).onError)||e.call(s,t,this),null==(i=(r=this.cache.config).onSettled)||i.call(r,this.state.data,t,this)}this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=H({fn:h.fetchFn,abort:null==u?void 0:u.abort.bind(u),onSuccess:t=>{var e,s,i,r;void 0===t?c(Error(this.queryHash+" data is undefined")):(this.setData(t),null==(e=(s=this.cache.config).onSuccess)||e.call(s,t,this),null==(i=(r=this.cache.config).onSettled)||i.call(r,t,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1)},onError:c,onFail:(t,e)=>{this.dispatch({type:"failed",failureCount:t,error:e})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:h.options.retry,retryDelay:h.options.retryDelay,networkMode:h.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(t){let e=e=>{var s,i;switch(t.type){case"failed":return{...e,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...e,fetchStatus:"paused"};case"continue":return{...e,fetchStatus:"fetching"};case"fetch":return{...e,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null!=(s=t.meta)?s:null,fetchStatus:k(this.options.networkMode)?"fetching":"paused",...!e.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...e,data:t.data,dataUpdateCount:e.dataUpdateCount+1,dataUpdatedAt:null!=(i=t.dataUpdatedAt)?i:Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":let r=t.error;if(j(r)&&r.revert&&this.revertState)return{...this.revertState,fetchStatus:"idle"};return{...e,error:r,errorUpdateCount:e.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:e.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:"idle",status:"error"};case"invalidate":return{...e,isInvalidated:!0};case"setState":return{...e,...t.state}}};this.state=e(this.state),N.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate(t)}),this.cache.notify({query:this,type:"updated",action:t})})}}class z extends l{constructor(t){super(),this.config=t||{},this.queries=[],this.queriesMap={}}build(t,e,s){var i;let r=e.queryKey,n=null!=(i=e.queryHash)?i:C(r,e),u=this.get(n);return u||(u=new _({cache:this,logger:t.getLogger(),queryKey:r,queryHash:n,options:t.defaultQueryOptions(e),state:s,defaultOptions:t.getQueryDefaults(r)}),this.add(u)),u}add(t){this.queriesMap[t.queryHash]||(this.queriesMap[t.queryHash]=t,this.queries.push(t),this.notify({type:"added",query:t}))}remove(t){let e=this.queriesMap[t.queryHash];e&&(t.destroy(),this.queries=this.queries.filter(e=>e!==t),e===t&&delete this.queriesMap[t.queryHash],this.notify({type:"removed",query:t}))}clear(){N.batch(()=>{this.queries.forEach(t=>{this.remove(t)})})}get(t){return this.queriesMap[t]}getAll(){return this.queries}find(t,e){let[s]=m(t,e);return void 0===s.exact&&(s.exact=!0),this.queries.find(t=>g(s,t))}findAll(t,e){let[s]=m(t,e);return Object.keys(s).length>0?this.queries.filter(t=>g(s,t)):this.queries}notify(t){N.batch(()=>{this.listeners.forEach(({listener:e})=>{e(t)})})}onFocus(){N.batch(()=>{this.queries.forEach(t=>{t.onFocus()})})}onOnline(){N.batch(()=>{this.queries.forEach(t=>{t.onOnline()})})}}class W extends G{constructor(t){super(),this.defaultOptions=t.defaultOptions,this.mutationId=t.mutationId,this.mutationCache=t.mutationCache,this.logger=t.logger||B,this.observers=[],this.state=t.state||J(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options={...this.defaultOptions,...t},this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(t){this.dispatch({type:"setState",state:t})}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.observers=this.observers.filter(e=>e!==t),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.observers.length||("loading"===this.state.status?this.scheduleGc():this.mutationCache.remove(this))}continue(){var t,e;return null!=(t=null==(e=this.retryer)?void 0:e.continue())?t:this.execute()}async execute(){var t,e,s,i,r,n,u,a,o,l,h,c,d,f,p,y,v,m,b,g;let O=()=>{var t;return this.retryer=H({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(t,e)=>{this.dispatch({type:"failed",failureCount:t,error:e})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:null!=(t=this.options.retry)?t:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},C="loading"===this.state.status;try{if(!C){this.dispatch({type:"loading",variables:this.options.variables}),await (null==(o=(l=this.mutationCache.config).onMutate)?void 0:o.call(l,this.state.variables,this));let t=await (null==(h=(c=this.options).onMutate)?void 0:h.call(c,this.state.variables));t!==this.state.context&&this.dispatch({type:"loading",context:t,variables:this.state.variables})}let d=await O();return await (null==(t=(e=this.mutationCache.config).onSuccess)?void 0:t.call(e,d,this.state.variables,this.state.context,this)),await (null==(s=(i=this.options).onSuccess)?void 0:s.call(i,d,this.state.variables,this.state.context)),await (null==(r=(n=this.mutationCache.config).onSettled)?void 0:r.call(n,d,null,this.state.variables,this.state.context,this)),await (null==(u=(a=this.options).onSettled)?void 0:u.call(a,d,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:d}),d}catch(t){try{throw await (null==(d=(f=this.mutationCache.config).onError)?void 0:d.call(f,t,this.state.variables,this.state.context,this)),await (null==(p=(y=this.options).onError)?void 0:p.call(y,t,this.state.variables,this.state.context)),await (null==(v=(m=this.mutationCache.config).onSettled)?void 0:v.call(m,void 0,t,this.state.variables,this.state.context,this)),await (null==(b=(g=this.options).onSettled)?void 0:b.call(g,void 0,t,this.state.variables,this.state.context)),t}finally{this.dispatch({type:"error",error:t})}}}dispatch(t){let e=e=>{switch(t.type){case"failed":return{...e,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...e,isPaused:!0};case"continue":return{...e,isPaused:!1};case"loading":return{...e,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!k(this.options.networkMode),status:"loading",variables:t.variables};case"success":return{...e,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...e,data:void 0,error:t.error,failureCount:e.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"};case"setState":return{...e,...t.state}}};this.state=e(this.state),N.batch(()=>{this.observers.forEach(e=>{e.onMutationUpdate(t)}),this.mutationCache.notify({mutation:this,type:"updated",action:t})})}}function J(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}class V extends l{constructor(t){super(),this.config=t||{},this.mutations=[],this.mutationId=0}build(t,e,s){let i=new W({mutationCache:this,logger:t.getLogger(),mutationId:++this.mutationId,options:t.defaultMutationOptions(e),state:s,defaultOptions:e.mutationKey?t.getMutationDefaults(e.mutationKey):void 0});return this.add(i),i}add(t){this.mutations.push(t),this.notify({type:"added",mutation:t})}remove(t){this.mutations=this.mutations.filter(e=>e!==t),this.notify({type:"removed",mutation:t})}clear(){N.batch(()=>{this.mutations.forEach(t=>{this.remove(t)})})}getAll(){return this.mutations}find(t){return void 0===t.exact&&(t.exact=!0),this.mutations.find(e=>O(t,e))}findAll(t){return this.mutations.filter(e=>O(t,e))}notify(t){N.batch(()=>{this.listeners.forEach(({listener:e})=>{e(t)})})}resumePausedMutations(){var t;return this.resuming=(null!=(t=this.resuming)?t:Promise.resolve()).then(()=>{let t=this.mutations.filter(t=>t.state.isPaused);return N.batch(()=>t.reduce((t,e)=>t.then(()=>e.continue().catch(c)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}}function X(){return{onFetch:t=>{t.fetchFn=()=>{var e,s,i,r,n,u;let a,o=null==(e=t.fetchOptions)||null==(s=e.meta)?void 0:s.refetchPage,l=null==(i=t.fetchOptions)||null==(r=i.meta)?void 0:r.fetchMore,h=null==l?void 0:l.pageParam,c=(null==l?void 0:l.direction)==="forward",d=(null==l?void 0:l.direction)==="backward",f=(null==(n=t.state.data)?void 0:n.pages)||[],p=(null==(u=t.state.data)?void 0:u.pageParams)||[],y=p,v=!1,m=t.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+t.options.queryHash+"'")),b=(t,e,s,i)=>(y=i?[e,...y]:[...y,e],i?[s,...t]:[...t,s]),g=(e,s,i,r)=>{if(v)return Promise.reject("Cancelled");if(void 0===i&&!s&&e.length)return Promise.resolve(e);let n={queryKey:t.queryKey,pageParam:i,meta:t.options.meta};return Object.defineProperty(n,"signal",{enumerable:!0,get:()=>{var e,s;return null!=(e=t.signal)&&e.aborted?v=!0:null==(s=t.signal)||s.addEventListener("abort",()=>{v=!0}),t.signal}}),Promise.resolve(m(n)).then(t=>b(e,i,t,r))};if(f.length)if(c){let e=void 0!==h,s=e?h:Y(t.options,f);a=g(f,e,s)}else if(d){let e=void 0!==h,s=e?h:Z(t.options,f);a=g(f,e,s,!0)}else{y=[];let e=void 0===t.options.getNextPageParam;a=!o||!f[0]||o(f[0],0,f)?g([],e,p[0]):Promise.resolve(b([],p[0],f[0]));for(let s=1;s<f.length;s++)a=a.then(i=>{if(!o||!f[s]||o(f[s],s,f)){let r=e?p[s]:Y(t.options,i);return g(i,e,r)}return Promise.resolve(b(i,p[s],f[s]))})}else a=g([]);return a.then(t=>({pages:t,pageParams:y}))}}}}function Y(t,e){return null==t.getNextPageParam?void 0:t.getNextPageParam(e[e.length-1],e)}function Z(t,e){return null==t.getPreviousPageParam?void 0:t.getPreviousPageParam(e[0],e)}class ${constructor(t={}){this.queryCache=t.queryCache||new z,this.mutationCache=t.mutationCache||new V,this.logger=t.logger||B,this.defaultOptions=t.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,1===this.mountCount&&(this.unsubscribeFocus=I.subscribe(()=>{I.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=T.subscribe(()=>{T.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())}))}unmount(){var t,e;this.mountCount--,0===this.mountCount&&(null==(t=this.unsubscribeFocus)||t.call(this),this.unsubscribeFocus=void 0,null==(e=this.unsubscribeOnline)||e.call(this),this.unsubscribeOnline=void 0)}isFetching(t,e){let[s]=m(t,e);return s.fetchStatus="fetching",this.queryCache.findAll(s).length}isMutating(t){return this.mutationCache.findAll({...t,fetching:!0}).length}getQueryData(t,e){var s;return null==(s=this.queryCache.find(t,e))?void 0:s.state.data}ensureQueryData(t,e,s){let i=y(t,e,s),r=this.getQueryData(i.queryKey);return r?Promise.resolve(r):this.fetchQuery(i)}getQueriesData(t){return this.getQueryCache().findAll(t).map(({queryKey:t,state:e})=>[t,e.data])}setQueryData(t,e,s){let i=this.queryCache.find(t),r=null==i?void 0:i.state.data,n="function"==typeof e?e(r):e;if(void 0===n)return;let u=y(t),a=this.defaultQueryOptions(u);return this.queryCache.build(this,a).setData(n,{...s,manual:!0})}setQueriesData(t,e,s){return N.batch(()=>this.getQueryCache().findAll(t).map(({queryKey:t})=>[t,this.setQueryData(t,e,s)]))}getQueryState(t,e){var s;return null==(s=this.queryCache.find(t,e))?void 0:s.state}removeQueries(t,e){let[s]=m(t,e),i=this.queryCache;N.batch(()=>{i.findAll(s).forEach(t=>{i.remove(t)})})}resetQueries(t,e,s){let[i,r]=m(t,e,s),n=this.queryCache,u={type:"active",...i};return N.batch(()=>(n.findAll(i).forEach(t=>{t.reset()}),this.refetchQueries(u,r)))}cancelQueries(t,e,s){let[i,r={}]=m(t,e,s);return void 0===r.revert&&(r.revert=!0),Promise.all(N.batch(()=>this.queryCache.findAll(i).map(t=>t.cancel(r)))).then(c).catch(c)}invalidateQueries(t,e,s){let[i,r]=m(t,e,s);return N.batch(()=>{var t,e;if(this.queryCache.findAll(i).forEach(t=>{t.invalidate()}),"none"===i.refetchType)return Promise.resolve();let s={...i,type:null!=(t=null!=(e=i.refetchType)?e:i.type)?t:"active"};return this.refetchQueries(s,r)})}refetchQueries(t,e,s){let[i,r]=m(t,e,s),n=Promise.all(N.batch(()=>this.queryCache.findAll(i).filter(t=>!t.isDisabled()).map(t=>{var e;return t.fetch(void 0,{...r,cancelRefetch:null==(e=null==r?void 0:r.cancelRefetch)||e,meta:{refetchPage:i.refetchPage}})}))).then(c);return null!=r&&r.throwOnError||(n=n.catch(c)),n}fetchQuery(t,e,s){let i=y(t,e,s),r=this.defaultQueryOptions(i);void 0===r.retry&&(r.retry=!1);let n=this.queryCache.build(this,r);return n.isStaleByTime(r.staleTime)?n.fetch(r):Promise.resolve(n.state.data)}prefetchQuery(t,e,s){return this.fetchQuery(t,e,s).then(c).catch(c)}fetchInfiniteQuery(t,e,s){let i=y(t,e,s);return i.behavior=X(),this.fetchQuery(i)}prefetchInfiniteQuery(t,e,s){return this.fetchInfiniteQuery(t,e,s).then(c).catch(c)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(t){this.defaultOptions=t}setQueryDefaults(t,e){let s=this.queryDefaults.find(e=>R(t)===R(e.queryKey));s?s.defaultOptions=e:this.queryDefaults.push({queryKey:t,defaultOptions:e})}getQueryDefaults(t){if(!t)return;let e=this.queryDefaults.find(e=>S(t,e.queryKey));return null==e?void 0:e.defaultOptions}setMutationDefaults(t,e){let s=this.mutationDefaults.find(e=>R(t)===R(e.mutationKey));s?s.defaultOptions=e:this.mutationDefaults.push({mutationKey:t,defaultOptions:e})}getMutationDefaults(t){if(!t)return;let e=this.mutationDefaults.find(e=>S(t,e.mutationKey));return null==e?void 0:e.defaultOptions}defaultQueryOptions(t){if(null!=t&&t._defaulted)return t;let e={...this.defaultOptions.queries,...this.getQueryDefaults(null==t?void 0:t.queryKey),...t,_defaulted:!0};return!e.queryHash&&e.queryKey&&(e.queryHash=C(e.queryKey,e)),void 0===e.refetchOnReconnect&&(e.refetchOnReconnect="always"!==e.networkMode),void 0===e.useErrorBoundary&&(e.useErrorBoundary=!!e.suspense),e}defaultMutationOptions(t){return null!=t&&t._defaulted?t:{...this.defaultOptions.mutations,...this.getMutationDefaults(null==t?void 0:t.mutationKey),...t,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}class tt extends l{constructor(t,e){super(),this.client=t,this.options=e,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(e)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.currentQuery.addObserver(this),te(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return ts(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return ts(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(t,e){let s=this.options,i=this.currentQuery;if(this.options=this.client.defaultQueryOptions(t),E(s,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled)throw Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=s.queryKey),this.updateQuery();let r=this.hasListeners();r&&ti(this.currentQuery,i,this.options,s)&&this.executeFetch(),this.updateResult(e),r&&(this.currentQuery!==i||this.options.enabled!==s.enabled||this.options.staleTime!==s.staleTime)&&this.updateStaleTimeout();let n=this.computeRefetchInterval();r&&(this.currentQuery!==i||this.options.enabled!==s.enabled||n!==this.currentRefetchInterval)&&this.updateRefetchInterval(n)}getOptimisticResult(t){var e,s,i;let r=this.client.getQueryCache().build(this.client,t),n=this.createResult(r,t);return e=this,s=n,(i=t).keepPreviousData||(void 0!==i.placeholderData?!s.isPlaceholderData:E(e.getCurrentResult(),s))||(this.currentResult=n,this.currentResultOptions=this.options,this.currentResultState=this.currentQuery.state),n}getCurrentResult(){return this.currentResult}trackResult(t){let e={};return Object.keys(t).forEach(s=>{Object.defineProperty(e,s,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(s),t[s])})}),e}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:t,...e}={}){return this.fetch({...e,meta:{refetchPage:t}})}fetchOptimistic(t){let e=this.client.defaultQueryOptions(t),s=this.client.getQueryCache().build(this.client,e);return s.isFetchingOptimistic=!0,s.fetch().then(()=>this.createResult(s,e))}fetch(t){var e;return this.executeFetch({...t,cancelRefetch:null==(e=t.cancelRefetch)||e}).then(()=>(this.updateResult(),this.currentResult))}executeFetch(t){this.updateQuery();let e=this.currentQuery.fetch(this.options,t);return null!=t&&t.throwOnError||(e=e.catch(c)),e}updateStaleTimeout(){if(this.clearStaleTimeout(),h||this.currentResult.isStale||!d(this.options.staleTime))return;let t=p(this.currentResult.dataUpdatedAt,this.options.staleTime);this.staleTimeoutId=setTimeout(()=>{this.currentResult.isStale||this.updateResult()},t+1)}computeRefetchInterval(){var t;return"function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.currentResult.data,this.currentQuery):null!=(t=this.options.refetchInterval)&&t}updateRefetchInterval(t){this.clearRefetchInterval(),this.currentRefetchInterval=t,!h&&!1!==this.options.enabled&&d(this.currentRefetchInterval)&&0!==this.currentRefetchInterval&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||I.isFocused())&&this.executeFetch()},this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(t,e){let s,i=this.currentQuery,r=this.options,n=this.currentResult,u=this.currentResultState,a=this.currentResultOptions,o=t!==i,l=o?t.state:this.currentQueryInitialState,h=o?this.currentResult:this.previousQueryResult,{state:c}=t,{dataUpdatedAt:d,error:f,errorUpdatedAt:p,fetchStatus:y,status:v}=c,m=!1,b=!1;if(e._optimisticResults){let s=this.hasListeners(),n=!s&&te(t,e),u=s&&ti(t,i,e,r);(n||u)&&(y=k(t.options.networkMode)?"fetching":"paused",d||(v="loading")),"isRestoring"===e._optimisticResults&&(y="idle")}if(e.keepPreviousData&&!c.dataUpdatedAt&&null!=h&&h.isSuccess&&"error"!==v)s=h.data,d=h.dataUpdatedAt,v=h.status,m=!0;else if(e.select&&void 0!==c.data)if(n&&c.data===(null==u?void 0:u.data)&&e.select===this.selectFn)s=this.selectResult;else try{this.selectFn=e.select,s=e.select(c.data),s=A(null==n?void 0:n.data,s,e),this.selectResult=s,this.selectError=null}catch(t){this.selectError=t}else s=c.data;if(void 0!==e.placeholderData&&void 0===s&&"loading"===v){let t;if(null!=n&&n.isPlaceholderData&&e.placeholderData===(null==a?void 0:a.placeholderData))t=n.data;else if(t="function"==typeof e.placeholderData?e.placeholderData():e.placeholderData,e.select&&void 0!==t)try{t=e.select(t),this.selectError=null}catch(t){this.selectError=t}void 0!==t&&(v="success",s=A(null==n?void 0:n.data,t,e),b=!0)}this.selectError&&(f=this.selectError,s=this.selectResult,p=Date.now(),v="error");let g="fetching"===y,O="loading"===v,C="error"===v;return{status:v,fetchStatus:y,isLoading:O,isSuccess:"success"===v,isError:C,isInitialLoading:O&&g,data:s,dataUpdatedAt:d,error:f,errorUpdatedAt:p,failureCount:c.fetchFailureCount,failureReason:c.fetchFailureReason,errorUpdateCount:c.errorUpdateCount,isFetched:c.dataUpdateCount>0||c.errorUpdateCount>0,isFetchedAfterMount:c.dataUpdateCount>l.dataUpdateCount||c.errorUpdateCount>l.errorUpdateCount,isFetching:g,isRefetching:g&&!O,isLoadingError:C&&0===c.dataUpdatedAt,isPaused:"paused"===y,isPlaceholderData:b,isPreviousData:m,isRefetchError:C&&0!==c.dataUpdatedAt,isStale:tr(t,e),refetch:this.refetch,remove:this.remove}}updateResult(t){let e=this.currentResult,s=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,E(s,e))return;this.currentResult=s;let i={cache:!0},r=()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,s="function"==typeof t?t():t;if("all"===s||!s&&!this.trackedProps.size)return!0;let i=new Set(null!=s?s:this.trackedProps);return this.options.useErrorBoundary&&i.add("error"),Object.keys(this.currentResult).some(t=>this.currentResult[t]!==e[t]&&i.has(t))};(null==t?void 0:t.listeners)!==!1&&r()&&(i.listeners=!0),this.notify({...i,...t})}updateQuery(){let t=this.client.getQueryCache().build(this.client,this.options);if(t===this.currentQuery)return;let e=this.currentQuery;this.currentQuery=t,this.currentQueryInitialState=t.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(null==e||e.removeObserver(this),t.addObserver(this))}onQueryUpdate(t){let e={};"success"===t.type?e.onSuccess=!t.manual:"error"!==t.type||j(t.error)||(e.onError=!0),this.updateResult(e),this.hasListeners()&&this.updateTimers()}notify(t){N.batch(()=>{var e,s,i,r,n,u,a,o;t.onSuccess?(null==(e=(s=this.options).onSuccess)||e.call(s,this.currentResult.data),null==(i=(r=this.options).onSettled)||i.call(r,this.currentResult.data,null)):t.onError&&(null==(n=(u=this.options).onError)||n.call(u,this.currentResult.error),null==(a=(o=this.options).onSettled)||a.call(o,void 0,this.currentResult.error)),t.listeners&&this.listeners.forEach(({listener:t})=>{t(this.currentResult)}),t.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}}function te(t,e){return!1!==e.enabled&&!t.state.dataUpdatedAt&&("error"!==t.state.status||!1!==e.retryOnMount)||t.state.dataUpdatedAt>0&&ts(t,e,e.refetchOnMount)}function ts(t,e,s){if(!1!==e.enabled){let i="function"==typeof s?s(t):s;return"always"===i||!1!==i&&tr(t,e)}return!1}function ti(t,e,s,i){return!1!==s.enabled&&(t!==e||!1===i.enabled)&&(!s.suspense||"error"!==t.state.status)&&tr(t,s)}function tr(t,e){return t.isStaleByTime(e.staleTime)}class tn extends l{constructor(t,e){super(),this.client=t,this.queries=[],this.result=[],this.observers=[],this.observersMap={},e&&this.setQueries(e)}onSubscribe(){1===this.listeners.size&&this.observers.forEach(t=>{t.subscribe(e=>{this.onUpdate(t,e)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.observers.forEach(t=>{t.destroy()})}setQueries(t,e){this.queries=t,N.batch(()=>{let t=this.observers,s=this.findMatchingObservers(this.queries);s.forEach(t=>t.observer.setOptions(t.defaultedQueryOptions,e));let i=s.map(t=>t.observer),r=Object.fromEntries(i.map(t=>[t.options.queryHash,t])),n=i.map(t=>t.getCurrentResult()),u=i.some((e,s)=>e!==t[s]);t.length===i.length&&!u||(this.observers=i,this.observersMap=r,this.result=n,this.hasListeners()&&(f(t,i).forEach(t=>{t.destroy()}),f(i,t).forEach(t=>{t.subscribe(e=>{this.onUpdate(t,e)})}),this.notify()))})}getCurrentResult(){return this.result}getQueries(){return this.observers.map(t=>t.getCurrentQuery())}getObservers(){return this.observers}getOptimisticResult(t){return this.findMatchingObservers(t).map(t=>t.observer.getOptimisticResult(t.defaultedQueryOptions))}findMatchingObservers(t){let e=this.observers,s=new Map(e.map(t=>[t.options.queryHash,t])),i=t.map(t=>this.client.defaultQueryOptions(t)),r=i.flatMap(t=>{let e=s.get(t.queryHash);return null!=e?[{defaultedQueryOptions:t,observer:e}]:[]}),n=new Set(r.map(t=>t.defaultedQueryOptions.queryHash)),u=i.filter(t=>!n.has(t.queryHash)),a=new Set(r.map(t=>t.observer)),o=e.filter(t=>!a.has(t)),l=t=>{let e=this.client.defaultQueryOptions(t),s=this.observersMap[e.queryHash];return null!=s?s:new tt(this.client,e)},h=u.map((t,e)=>{if(t.keepPreviousData){let s=o[e];if(void 0!==s)return{defaultedQueryOptions:t,observer:s}}return{defaultedQueryOptions:t,observer:l(t)}});return r.concat(h).sort((t,e)=>i.indexOf(t.defaultedQueryOptions)-i.indexOf(e.defaultedQueryOptions))}onUpdate(t,e){let s=this.observers.indexOf(t);if(-1!==s){var i;let t;this.result=(i=this.result,(t=i.slice(0))[s]=e,t),this.notify()}}notify(){N.batch(()=>{this.listeners.forEach(({listener:t})=>{t(this.result)})})}}class tu extends tt{constructor(t,e){super(t,e)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(t,e){super.setOptions({...t,behavior:X()},e)}getOptimisticResult(t){return t.behavior=X(),super.getOptimisticResult(t)}fetchNextPage({pageParam:t,...e}={}){return this.fetch({...e,meta:{fetchMore:{direction:"forward",pageParam:t}}})}fetchPreviousPage({pageParam:t,...e}={}){return this.fetch({...e,meta:{fetchMore:{direction:"backward",pageParam:t}}})}createResult(t,e){var s,i,r,n,u,a;let{state:o}=t,l=super.createResult(t,e),{isFetching:h,isRefetching:c}=l,d=h&&(null==(s=o.fetchMeta)||null==(i=s.fetchMore)?void 0:i.direction)==="forward",f=h&&(null==(r=o.fetchMeta)||null==(n=r.fetchMore)?void 0:n.direction)==="backward";return{...l,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:function(t,e){if(t.getNextPageParam&&Array.isArray(e)){let s=Y(t,e);return null!=s&&!1!==s}}(e,null==(u=o.data)?void 0:u.pages),hasPreviousPage:function(t,e){if(t.getPreviousPageParam&&Array.isArray(e)){let s=Z(t,e);return null!=s&&!1!==s}}(e,null==(a=o.data)?void 0:a.pages),isFetchingNextPage:d,isFetchingPreviousPage:f,isRefetching:c&&!d&&!f}}}class ta extends l{constructor(t,e){super(),this.client=t,this.setOptions(e),this.bindMethods(),this.updateResult()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){var e;let s=this.options;this.options=this.client.defaultMutationOptions(t),E(s,this.options)||this.client.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.currentMutation,observer:this}),null==(e=this.currentMutation)||e.setOptions(this.options)}onUnsubscribe(){if(!this.hasListeners()){var t;null==(t=this.currentMutation)||t.removeObserver(this)}}onMutationUpdate(t){this.updateResult();let e={listeners:!0};"success"===t.type?e.onSuccess=!0:"error"===t.type&&(e.onError=!0),this.notify(e)}getCurrentResult(){return this.currentResult}reset(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})}mutate(t,e){return this.mutateOptions=e,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,{...this.options,variables:void 0!==t?t:this.options.variables}),this.currentMutation.addObserver(this),this.currentMutation.execute()}updateResult(){let t=this.currentMutation?this.currentMutation.state:J(),e="loading"===t.status,s={...t,isLoading:e,isPending:e,isSuccess:"success"===t.status,isError:"error"===t.status,isIdle:"idle"===t.status,mutate:this.mutate,reset:this.reset};this.currentResult=s}notify(t){N.batch(()=>{if(this.mutateOptions&&this.hasListeners()){var e,s,i,r,n,u,a,o;t.onSuccess?(null==(e=(s=this.mutateOptions).onSuccess)||e.call(s,this.currentResult.data,this.currentResult.variables,this.currentResult.context),null==(i=(r=this.mutateOptions).onSettled)||i.call(r,this.currentResult.data,null,this.currentResult.variables,this.currentResult.context)):t.onError&&(null==(n=(u=this.mutateOptions).onError)||n.call(u,this.currentResult.error,this.currentResult.variables,this.currentResult.context),null==(a=(o=this.mutateOptions).onSettled)||a.call(o,void 0,this.currentResult.error,this.currentResult.variables,this.currentResult.context))}t.listeners&&this.listeners.forEach(({listener:t})=>{t(this.currentResult)})})}}function to(t){return t.state.isPaused}function tl(t){return"success"===t.state.status}function th(t,e={}){let s=[],i=[];if(!1!==e.dehydrateMutations){let i=e.shouldDehydrateMutation||to;t.getMutationCache().getAll().forEach(t=>{i(t)&&s.push({mutationKey:t.options.mutationKey,state:t.state})})}if(!1!==e.dehydrateQueries){let s=e.shouldDehydrateQuery||tl;t.getQueryCache().getAll().forEach(t=>{s(t)&&i.push({state:t.state,queryKey:t.queryKey,queryHash:t.queryHash})})}return{mutations:s,queries:i}}function tc(t,e,s){if("object"!=typeof e||null===e)return;let i=t.getMutationCache(),r=t.getQueryCache(),n=e.mutations||[],u=e.queries||[];n.forEach(e=>{var r;i.build(t,{...null==s||null==(r=s.defaultOptions)?void 0:r.mutations,mutationKey:e.mutationKey},e.state)}),u.forEach(({queryKey:e,state:i,queryHash:n})=>{var u;let a=r.get(n);if(a){if(a.state.dataUpdatedAt<i.dataUpdatedAt){let{fetchStatus:t,...e}=i;a.setState(e)}return}r.build(t,{...null==s||null==(u=s.defaultOptions)?void 0:u.queries,queryKey:e,queryHash:n},{...i,fetchStatus:"idle"})})}var td=s(70451);let tf=s(43676).useSyncExternalStore,tp=td.createContext(void 0),ty=td.createContext(!1);function tv(t,e){return t||(e&&"undefined"!=typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=tp),window.ReactQueryClientContext):tp)}let tm=({context:t}={})=>{let e=td.useContext(tv(t,td.useContext(ty)));if(!e)throw Error("No QueryClient set, use QueryClientProvider to set one");return e},tb=({client:t,children:e,context:s,contextSharing:i=!1})=>{td.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]);let r=tv(s,i);return td.createElement(ty.Provider,{value:!s&&i},td.createElement(r.Provider,{value:t},e))},tg=td.createContext(!1),tO=()=>td.useContext(tg),tC=tg.Provider;function tR(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}let tS=td.createContext(tR()),tQ=()=>td.useContext(tS),tE=({children:t})=>{let[e]=td.useState(()=>tR());return td.createElement(tS.Provider,{value:e},"function"==typeof t?t(e):t)};function tq(t,e){return"function"==typeof t?t(...e):!!t}let tw=(t,e)=>{(t.suspense||t.useErrorBoundary)&&!e.isReset()&&(t.retryOnMount=!1)},tP=t=>{td.useEffect(()=>{t.clearReset()},[t])},tM=({result:t,errorResetBoundary:e,useErrorBoundary:s,query:i})=>t.isError&&!e.isReset()&&!t.isFetching&&tq(s,[t.error,i]),tF=t=>{t.suspense&&"number"!=typeof t.staleTime&&(t.staleTime=1e3)},tx=(t,e)=>t.isLoading&&t.isFetching&&!e,tD=(t,e,s)=>(null==t?void 0:t.suspense)&&tx(e,s),tA=(t,e,s)=>e.fetchOptimistic(t).then(({data:e})=>{null==t.onSuccess||t.onSuccess(e),null==t.onSettled||t.onSettled(e,null)}).catch(e=>{s.clearReset(),null==t.onError||t.onError(e),null==t.onSettled||t.onSettled(void 0,e)});function tI({queries:t,context:e}){let s=tm({context:e}),i=tO(),r=tQ(),n=td.useMemo(()=>t.map(t=>{let e=s.defaultQueryOptions(t);return e._optimisticResults=i?"isRestoring":"optimistic",e}),[t,s,i]);n.forEach(t=>{tF(t),tw(t,r)}),tP(r);let[u]=td.useState(()=>new tn(s,n)),a=u.getOptimisticResult(n);tf(td.useCallback(t=>i?()=>void 0:u.subscribe(N.batchCalls(t)),[u,i]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),td.useEffect(()=>{u.setQueries(n,{listeners:!1})},[n,u]);let o=a.some((t,e)=>tD(n[e],t,i))?a.flatMap((t,e)=>{let s=n[e],a=u.getObservers()[e];if(s&&a)if(tD(s,t,i))return tA(s,a,r);else tx(t,i)&&tA(s,a,r);return[]}):[];if(o.length>0)throw Promise.all(o);let l=u.getQueries(),h=a.find((t,e)=>{var s,i;return tM({result:t,errorResetBoundary:r,useErrorBoundary:null!=(s=null==(i=n[e])?void 0:i.useErrorBoundary)&&s,query:l[e]})});if(null!=h&&h.error)throw h.error;return a}function tU(t,e){let s=tm({context:t.context}),i=tO(),r=tQ(),n=s.defaultQueryOptions(t);n._optimisticResults=i?"isRestoring":"optimistic",n.onError&&(n.onError=N.batchCalls(n.onError)),n.onSuccess&&(n.onSuccess=N.batchCalls(n.onSuccess)),n.onSettled&&(n.onSettled=N.batchCalls(n.onSettled)),tF(n),tw(n,r),tP(r);let[u]=td.useState(()=>new e(s,n)),a=u.getOptimisticResult(n);if(tf(td.useCallback(t=>{let e=i?()=>void 0:u.subscribe(N.batchCalls(t));return u.updateResult(),e},[u,i]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),td.useEffect(()=>{u.setOptions(n,{listeners:!1})},[n,u]),tD(n,a,i))throw tA(n,u,r);if(tM({result:a,errorResetBoundary:r,useErrorBoundary:n.useErrorBoundary,query:u.getCurrentQuery()}))throw a.error;return n.notifyOnChangeProps?a:u.trackResult(a)}function tT(t,e,s){return tU(y(t,e,s),tt)}function tK(t){return tU({...t,enabled:!0,useErrorBoundary:!0,suspense:!0,placeholderData:void 0,networkMode:"always"},tt)}function tk({queries:t,context:e}){return tI({queries:t.map(t=>({...t,enabled:!0,useErrorBoundary:!0,suspense:!0,placeholderData:void 0,networkMode:"always"})),context:e})}function tL(t,e={}){let s=tm({context:e.context}),i=td.useRef(e);i.current=e,td.useMemo(()=>{t&&tc(s,t,i.current)},[s,t])}let tj=({children:t,options:e,state:s})=>(tL(s,e),t);function tH(t,e,s){let[i,r={}]=m(t,e,s),n=tm({context:r.context}),u=n.getQueryCache();return tf(td.useCallback(t=>u.subscribe(N.batchCalls(t)),[u]),()=>n.isFetching(i),()=>n.isFetching(i))}function tB(t,e,s){let[i,r={}]=b(t,e,s),n=tm({context:r.context}),u=n.getMutationCache();return tf(td.useCallback(t=>u.subscribe(N.batchCalls(t)),[u]),()=>n.isMutating(i),()=>n.isMutating(i))}function tN(t,e,s){let i=v(t,e,s),r=tm({context:i.context}),[n]=td.useState(()=>new ta(r,i));td.useEffect(()=>{n.setOptions(i)},[n,i]);let u=tf(td.useCallback(t=>n.subscribe(N.batchCalls(t)),[n]),()=>n.getCurrentResult(),()=>n.getCurrentResult()),a=td.useCallback((t,e)=>{n.mutate(t,e).catch(tG)},[n]);if(u.error&&tq(n.options.useErrorBoundary,[u.error]))throw u.error;return{...u,mutate:a,mutateAsync:u.mutate}}function tG(){}function t_(t,e,s){return tU(y(t,e,s),tu)}function tz(t){return t}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.chunk_Prometheus=self.chunk_Prometheus||[]).push([["6969"],{37856:function(t,s,e){async function o(...t){let s=await globalThis.fetch(...t);if(!1===s.ok){let t=s.headers.get("content-type");if(t?.includes("application/json")){let t=await s.clone().json();if(t.error)throw new n(t.error,s.status);if(t.message)throw new n(t.message,s.status)}let e=await s.clone().text();if(e)throw new n(e,s.status);throw new a(s)}return s}async function r(...t){let s=await o(...t);if(!s.ok)throw new a(s);return await s.json()}e.d(s,{P7:()=>n,fk:()=>a,hd:()=>o,x6:()=>r});class a extends Error{status;constructor(t){super(`${t.status} ${t.statusText}`),this.status=t.status,Object.setPrototypeOf(this,a.prototype)}}class n extends Error{status;constructor(t,s){super(t),this.status=s,Object.setPrototypeOf(this,n.prototype)}}}}]);
@@ -1 +1 @@
1
- "use strict";(self.chunk_Prometheus=self.chunk_Prometheus||[]).push([["4062"],{56050:function(){}}]);
1
+ "use strict";(self.chunk_Prometheus=self.chunk_Prometheus||[]).push([["7177"],{23712:function(){}}]);